M_AcknowledgeAllAlarms
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.
![]() | 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
| PC (i386) | From Tc3_PackML_ V3 1.0.3 |