runService
Short Summary
This method contains instructions and sequences for the service mode. This mode is intended for supporting the maintanence of a machine, e.g. move components to a maintanence position, display and perform maintenance steps. If the node should do nothing, return a 'SUCCESS'. It should run until all servie requirements are done or 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 runService : CNM_ReturnTypes.SingleExecutionState
VAR_INPUT
execute : BOOL;
pause :BOOL;
END_VAR
Implementation
runService := CNM_ReturnTypes.SingleExecutionState.SUCCESS;