After you have created an alarm class as described in Configuring an Alarm Class, create an alarm group with an alarm for monitoring the PartsShortage
:
Step |
Action |
---|---|
1 |
In the Tools tree, right-click the node and execute the command . Result: The dialog box opens. |
2 |
Enter the Name Results:
|
3 |
In the |
4 |
Double-click the Observation Type column and select the option Digital from the list. |
5 |
Configure the following parameters for the alarm:
|
6 |
In the Digital section of the editor:
Result: The statement |
7 |
From the Archiving list, select DatabaseFileAlarmStorage which you have configured with the alarm storage. |
Results:
If the variable bPart1Empty
switches to TRUE, EcoStruxure Machine Expert triggers a message. The value of the variable iFillLevel
is issued with the message. The acknowledgment response and the display are executed according to the PartsShortage
alarm class. The alarm will be archived.
When you define one or more alarm messages as Message <n>
for an alarm in the alarm group editor, you can also indicate that the value of latch variables is taken over to these messages. To achieve this, insert one or more corresponding placeholders <LATCH1>, <LATCH2>
in the message text. As a result, the alarm message will also contain the value of the latch variables when the alarm becomes active (for example, an error ID or a measurement value).
For further information, refer to Filter alarm events by the contents of the latch variable in the CODESYS Online Help.