Display alarms in an alarm line

A control element of the type "AlarmLineCollection" is already implemented in the header (Header View.html) in the application frame. You have also already created alarms in the project. To test the alarm function, you must be able to trigger the alarms manually. You can achieve this, for example, with the help of controls of the type "Switch", with which you can set the respective alarm bit individually and thus trigger the alarm.

  • To display alarms in an alarm line:

  1. Add eight Switch controls (StartWcontrol elementsWButtonsWSwitches and buttonsWSwitch) on the MachinePage.html as a trigger for the eight defined alarms.

    • You can place the controls in a row or group them in three columns according to alarm classes. For better orientation, you can label the controls with headings ("Label" control).

  2. Define the triggering variable and the triggering bit for the first switch control element:

    1. In the "Variable" category in the "VariableName" property, select AlarmSource as the triggering variable.

    2. Enter 0 as the triggering bit in the "BitNumber" property.

    3. Select AlarmSource as the triggering variable for the second switch control element and enter 1 as the triggering bit.

    4. Select the triggering variable for the other switch control elements and specify the triggering bit. Increase the bit by 1 in each case.

  3. Start the project to test the application.

    • If you set the bit by clicking on a switch, the corresponding alarm appears in the alarm line.

    • The "AlarmLineCollection" provides an overview of the number of pending alarms in the various alarm classes. More information on the options of the control element can be found under AlarmLineCollection. The "AlarmList" control, which you will add in the next step, provides an overview of all triggered alarms.

  4. Close the application.