Enum eTaskState
Describes the state of the respective task.
Namespace: TcoCore
Assembly: TcoCoreConnector.dll
Syntax
public enum eTaskState
Fields
Name | Description |
---|---|
Busy | When the task is in Busy state, Execute() method returns TRUE. Leaving this state is possible as follows: 1.) By calling the Abort() task gets into the Idle state. 2.) By calling the DoneWhen(true) task gets into the Done state. 3.) By calling the Restore() task gets into the Idle state. 4.) By calling the ThrowWhen(true) task gets into the Error state. |
Done | Task is in Done state, Execute() method returns FALSE. To be able to start the task again '''rising edge''' of the calling of the Invoke() method needs to be performed. Analogously to the xExecute signal of the PLCopen motion function blocks. |
Error | Task is in Error state. To be able to start the task again the error state has to be reseted by calling the Restore() method. |
Ready | Task is in Ready state, the Execute() method returns FALSE. Task can be started by calling the Invoke() method. |
Requested | Task is in Requested state, if Invoke() method has been called and the Execute() method has not been called yet. The first following call of the method Execute() change the task state to Executing and returns TRUE, until Done or Error state is reached. |