Using Alarm Status Tags

Ignition displays 4 Gateway system Tags that give you the number of alarms that are active and acknowledged, active and unacknowledged, cleared and acknowledged, and cleared and unacknowledged. A quick way to see if any alarms are active and to get a active alarm count is to add a Label component on a navigation window.

Add a Label with Alarm Status

Let's setup an Active Alarm on the Navigation window using a Label component for the Active and UnAcked tag showing how many alarms are currently active and unacknowledged.

  1. In Designer, open your Navigation window, drag in a Label component and place it under the tab strip.

  2. Link the Label component to the Active and Unacked alarm system tag. Right click on the Label component, and select on Customizers > Custom Properties.

  3. Create a new property and name it 'activeAlarms' with an 'Integer' data type.

  4. Click OK.

    images/download/attachments/6034628/Alarm_Status_Tags_Custom_Prop.png

  5. In the Property Editor under Custom Properties, click the binding icon for the 'activeAlarms' property. The property binding window will open.

  6. Next, bind the new custom property 'activeAlarms' to the 'Active and Unacked tag.' In the Tag Browser, under Binding Types, select the Tag radio button, and choose the System > Gateway > Alarming > Active and Unacked Tag

  7. Click OK.

    images/download/attachments/6034628/Alarm_Status_Tags_-_Bind_Custom_Property_3.png

  8. Now we need to display the number of alarms on the Label that are active. Select the Label, and in the Property Editor, click the binding icon images/download/attachments/6034628/Binding_Icon.png for the Text property.
    Under Binding Types, select the Expression radio button and click the Link icon images/download/attachments/6034628/Link_Icon.png in the upper right corner of the window.
    Bind the Text property of the label and combine the expression with the literal string value 'Active Alarms' as shown below. Click OK twice.

    Combine Expression with Literal String Value
    {Root Container.Label.activeAlarms} + " Active Alarms"

    images/download/attachments/6034628/Alarm_Status_Tags_-_Bind_the_Text_Property_of_the_Label_4.png

  9. The last thing to do is setup a style to make the Active Alarms label stand out on the Navigation window. Let's change the color to something bright and make it blink. Right click on the Label and select Customizers > Style Customizer.

  10. For the Driving Property, select 'activeAlarm,' and for the Styled Properties, select Background Color, Foreground Color, Border and Visible, and click on the green arrow pointing to the right images/download/attachments/6034628/Green_Right_Arrow.png and add them to the Used Properties list.

  11. Under the Styles section, click on the green plus icon images/download/attachments/6034628/Green_Plus_Icon.png at the bottom 2 times to add 2 Values. Click the Expand buttons images/download/attachments/6034628/Alarm_Status_Tags_-_Expand_Button_Icon_5.png to open and customize the style for the Active Alarm Label. Set the following values for Styles:

    Value 0
    Background Color: Red
    Border: Etched (Raised)
    Foreground Color: White
    Visible: check the box

    Value 1
    Click the Animate box. Use the green plus icon to add 2 animation steps. Change the values to

    Step 1 Duration: 1000
    Background Color: Red
    Border: Etched (Raised)
    Foreground Color: White
    Visible: check the box

    Step 2 Duration: 1000
    Background Color: Red
    Border: Etched (Raised)
    Foreground Color: White
    Visible: check the box

    Click OK.

. images/download/attachments/6034628/Alarm_Status_Tags_-_Label_Style_Customizer_6.png

Now, you have a label on the Navigation window that blinks when there is an active alarm and provides an active alarm count.

images/download/attachments/6034628/Alarm_Status_Tags_-_Alarm_Label_on_Nav_Screen_7.png