M_AcknowledgeAllAlarms

M_AcknowledgeAllAlarms 1:

This method acknowledges all alarms in the admin tags. Alarm[].Trigger is set to FALSE and the value from Admin.PlcDateTime is entered in Alarm[].AckDateTime. If all alarms have been acknowledged, the method returns TRUE. Acknowledging the alarms does not delete them. The alarms remain in the alarm array until an M_ClearAlarm or M_ClearAllAlarms call has also been made, at which point the alarms in question are moved to the AlarmHistory array. If the AlarmHistory array is already full of entries, the oldest entries are deleted as a result.

M_AcknowledgeAllAlarms 2:

So that a valid timestamp can be entered, the PML_AdminTime function block should be called cyclically in the program.

Syntax

METHOD M_AcknowledgeAllAlarms : BOOL
VAR_IN_OUT
  stAdmin          : ST_PMLa;
END_VAR

Example call:

AllAlarmsAcknowledged := fbAdminAlarm.M_AcknowledgeAllAlarms(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