Simple methods have neither inputs and outputs nor a return value. They are called once when the respective state has been reached by the state machine. Typically, they are used to update additional output variables. In the state machine diagrams, simple methods are represented by grey boxes (also refer to the chapter Legend of State Machine Diagrams).
The following simple methods are available:
Simple method |
Description |
---|---|
Idle |
The function block execution is in idle state. |
Done |
The function block execution has been completed successfully. |
Aborted |
The function block execution has been finished after the Abort command has been executed. |
Error |
The function block execution has been finished after an error has been detected. |
ErrorExecute |
The execution of the function block FB_EnableExecuteQuit has been finished after an error has been detected. |
Clean |
The status of the function block changes back to the Idle state. |
The table provides an overview of which simple method is provided by which base function block:
Method |
FB_EnableReady |
FB_Execute |
FB_ExecuteAbort |
FB_EnableExecute |
FB_EnableExecuteQuit |
---|---|---|---|---|---|
Idle(1) |
X |
X |
X |
X |
X |
Done |
- |
X |
X |
X |
X |
Aborted |
- |
- |
X |
– |
– |
Error |
X |
X |
X |
X |
X |
ErrorExecute |
- |
- |
- |
- |
X |
Clean |
X |
X |
X |
X |
X |
(1) The method Idle is called as long as the state Idle is active. |