Skip to main content

GET

  • Getter: public

Code

Declaration

VAR
END_VAR

Implementation

// just a mapping because both enums are strict
CASE THIS^.myMessage.eSeverity OF
Global.TcEventSeverity.Critical:
stopCategory := CNM_MessageInterfaces.AlarmStopCategory.STOP_IMMEDIATLY;
Global.TcEventSeverity.Error:
stopCategory := CNM_MessageInterfaces.AlarmStopCategory.STOP_AT_END_OF_CYCLE;
ELSE
stopCategory := CNM_MessageInterfaces.AlarmStopCategory.DONT_STOP;
END_CASE