Insert an Alarm configuration in the device tree. Here, the Error,Info andWarning, alarm classes are created automatically, as well as the AlarmStorage object. In addition, an AlarmManagerTaskis created.
Form the alarm classes, set the acknowledgement type to REP_ACK:
Insert two new alarm groups, grpError and rgrpWarning, in the Alarm configuration and configure the alarms as follow:
Adapt the POUPLC_PRGas follows:
Implementation
If xAckAll Then
xAckAll := FALSE;
AlarmManager.g_AlarmHandler.AcknowledgeAll();
END_IF
If xAckErr Then
xAckErr := FALSE;
AlarmManager.g_AlarmHandler.AcknowledgeAllOfGroup(usiAlarmGroupID := Alm_AlarmConfiguration_Alarmgroup_IDs.ID_grpError);
END_IF
The alarm groups which you have created are provided in the SmartCoding view:
Insert a visualization in the device tree. Then the Visualisierung Manager is inserted automatically with the TargetVisu and WebVisuvisualization types. In addition, a VISU_TASK is also created automatically.
In the Visualization, set an Alarm Table element and configure the element as follows: