runGhostMode
Short Summary
This method contains instructions and sequences for the ghost mode. This mode is intended for running a machine without parts but with real device movements. Make sure to handle the missing part present signals. If the node should do nothing, return a 'SUCCESS'. It should run in an endless loop until the mode is stopped immedtiately or a stop request is raised (THIS^.modeControl.stopRequest). This method is called automatically by the operation mode handler.
Attention: If this method returns the state 'ERROR', the operation mode handler automatically disables the whole machine!
- Return type: CNM_ReturnTypes.SingleExecutionState
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| execute | BOOL | - | input |
| pause | BOOL | - | input |
Code
Declaration
METHOD runGhostMode : CNM_ReturnTypes.SingleExecutionState
VAR_INPUT
execute : BOOL;
pause :BOOL;
END_VAR
Implementation
runGhostMode := CNM_ReturnTypes.SingleExecutionState.SUCCESS;