Class TcoSequence
Inheritance
Inherited Members
Namespace: PlcDocu.TcoCore
Assembly: TcoCoreConnector.dll
Syntax
public abstract class TcoSequence : TcoSequencerBase
Constructors
| Improve this Doc View SourceTcoSequence()
Prevents creating instance of this class via public constructor
Declaration
public TcoSequence()
Fields
| Improve this Doc View Source_openingClosingErrorMessenger
Declaration
public TcoMessenger _openingClosingErrorMessenger
Field Value
Type | Description |
---|---|
TcoMessenger |
Methods
| Improve this Doc View SourceClose()
In this TcoSequence
implementation this method must be called after the last step of the sequence.
Declaration
[IgnoreReflection]
public void Close()
CompleteSequence()
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]
public 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]
public dynamic CompleteStep()
Returns
Type | Description |
---|---|
System.Object |
Main()
Main method of the sequener. Custom code needs to be placed here. The sequencer is executed by call of Instance.Run() method. This method is abstract, and it must be overridden in derived block.
Declaration
[IgnoreReflection]
protected dynamic Main()
Returns
Type | Description |
---|---|
System.Object | Plc type BOOL; Twin type: Vortex.Connector.ValueTypes.OnlinerBool |
Open()
In this TcoSequence
implementation this method must be called prior to first step call of the sequence.
Declaration
[IgnoreReflection]
public void Open()
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]
public 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]
public void StepCompleteWhen(dynamic inCondition)
Parameters
Type | Name | Description |
---|---|---|
System.Object | inCondition | Plc type : BOOL [VAR_INPUT]; Twin type : Vortex.Connector.ValueTypes.OnlinerBool
|