Class TcoSequencer
Inheritance
Inherited Members
Namespace: PlcDocu.TcoCore
Assembly: TcoCoreConnector.dll
Syntax
public abstract class TcoSequencer : TcoSequencerBase
Constructors
| Improve this Doc View SourceTcoSequencer()
Prevents creating instance of this class via public constructor
Declaration
public TcoSequencer()
Methods
| Improve this Doc View SourceCompleteSequence()
Completes the sequencer, and return the sequencer pointer to the first step in the seuqence. Method is typically called inside the last step of the sequence.
Declaration
[IgnoreReflection]
protected void CompleteSequence()
CompleteStep()
Completes the execution of the current step and moves the sequencer pointer to the next step in order of execution.
The call returns ITcoObjectRestorer
that allows to restore object upon step completition.
Declaration
[IgnoreReflection]
protected dynamic CompleteStep()
Returns
Type | Description |
---|---|
System.Object |
RequestStep(Object)
Terminates the currently executed step and set the sequencer's pointer to the step with Id that corresponds to inRequestedStepID
parameter.
When the order of the requested step is higher than the order of the currently finished step (the requested step is "after" the current one)
the requested step is started in the same context cycle.
When the order of the requested step is lower than the order of the currently finished step (the requested step is "before" the current one)
the requested step is started in the next context cycle.
If the requested step is not found even in the next context cycle, the sequencer enters error state StepWithRequestedIdDoesNotExists
.
See
Declaration
[IgnoreReflection]
protected dynamic RequestStep(dynamic inRequestedStepID)
Parameters
Type | Name | Description |
---|---|---|
System.Object | inRequestedStepID | Plc type : INT [VAR_INPUT]; Twin type : Vortex.Connector.ValueTypes.OnlinerInt
|
Returns
Type | Description |
---|---|
System.Object | Plc type ITcoSequencer; Twin type: |
Run()
Ensures calling the Open(), Main() and Close() methods in the desired order. This method is final, so it cannot be overloaded. The **Instance.Run()** needs to be called cyclically inside the appropriate context.
Declaration
[IgnoreReflection]
public void Run()
StepCompleteWhen(Object)
Completes the actually running step, when the inCondition
parameter is TRUE
.
Method is typically called inside a step as the transition method.
Declaration
[IgnoreReflection]
protected void StepCompleteWhen(dynamic inCondition)
Parameters
Type | Name | Description |
---|---|---|
System.Object | inCondition | Plc type : BOOL [VAR_INPUT]; Twin type : Vortex.Connector.ValueTypes.OnlinerBool
|