run
Short Summary
This method is calling the operation mode methods for every node depending on the current behaviour.
- Return type: CNM_ReturnTypes.SingleExecutionState
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| execute | BOOL | - | input |
| pause | BOOL | - | input |
| node | CNM_OpModeHandlingInterfaces.IOpModes | - | input |
Code
Declaration
METHOD run :CNM_ReturnTypes.SingleExecutionState
VAR_INPUT
execute :BOOL;
pause :BOOL;
node :CNM_OpModeHandlingInterfaces.IOpModes;
END_VAR
Implementation
run := SEL(execute, CNM_ReturnTypes.SingleExecutionState.IDLE, CNM_ReturnTypes.SingleExecutionState.SUCCESS);