stopOpModeHandler
Short Summary
This method stops the runnning operation mode. Depending on the stop category of the event it can enable the stop request flag or stop all nodes immediatly.
parameters
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| stopCategory | CNM_MessageInterfaces.AlarmStopCategory | - | input |
Code
Declaration
METHOD PROTECTED stopOpModeHandler
VAR_INPUT
stopCategory :CNM_MessageInterfaces.AlarmStopCategory;
END_VAR
Implementation
RETURN(THIS^.isObjectNull(THIS^.myHandler));
CASE stopCategory OF
CNM_MessageInterfaces.AlarmStopCategory.DISABLE_MACHINE:
THIS^.myHandler.switchOff();
CNM_MessageInterfaces.AlarmStopCategory.STOP_AT_END_OF_CYCLE:
THIS^.myHandler.stopMode();
CNM_MessageInterfaces.AlarmStopCategory.STOP_IMMEDIATLY:
THIS^.myHandler.stopMode(TRUE);
CNM_MessageInterfaces.AlarmStopCategory.DONT_STOP:
;
ELSE //critical as it is unknown so worst case is assumed
THIS^.myHandler.switchOff();
END_CASE