M_ClearAllAlarms

M_ClearAllAlarms 1:

This method deletes all alarms in the Admin-Tags. Alarm[].Trigger is set to FALSE. If the alarms were successfully deleted, the method returns TRUE. The alarms remain in the alarm array until an M_AcknowledgeAlarm or M_AcknowledgeAllAlarms call has also been made, at which point they are moved to the AlarmHistory array. If the AlarmHistory array is already full of entries, the oldest entries are deleted as a result.

Syntax

METHOD M_ClearAllAlarms : BOOL
VAR_IN_OUT
  stAdmin          : ST_PMLa;
END_VAR

Example call:

AllAlarmsCleared := fbAdminAlarm.M_ClearAllAlarms(stAdmin := PackTags.Admin);

Requirements

Development Environment

Target platform

PLC library to include

From TwinCAT

  • 3.1 Build 4024.63

PC (i386)

From Tc3_PackML_ V3 1.0.3