clear
Short summary
This method removes a given event from the active events queue.
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| message | CNM_MessageInterfaces.IMessage | - | input |
Code
Declaration
METHOD clear
VAR_INPUT
message : CNM_MessageInterfaces.IMessage;
END_VAR
VAR
alarm :CNM_MessageInterfaces.IAlarm;
END_VAR
Implementation
IF(__QUERYINTERFACE(message, alarm))THEN
THIS^.activeAlarmList.remove(alarm);
THIS^.activeAlarm := THIS^.activeAlarmList.hasElement;
END_IF