MQTT Modules v4.0.23 and above

In MQTT Transmission and MQTT Engine support was added to transmit alarm events from the Edge (MQTT Transmission) to the Central Gateway (MQTT Engine) . They also now support acknowledgements from the Central Gateway (MQTT Engine) back to the Edge (MQTT Transmission).

To configure alarm event propagation from Transmission to Engine, follow these steps:

Ignition

  1. Stop the Ignition instances for both MQTT Transmission and MQTT Engine 

  2. Add a line similar to the following to the data/ignition.conf file on each Ignition instance replacing the 'XX' with the proper index per the wrapper.java.additional statements. 

    wrapper.java.additional.XX=--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
  3. Restart the Ignition instances

MQTT Transmission

  1. Ensure that Alarm Event Enable has been set under the Transmitter Alarm Settings configuration

  2. Ensure that a Disk Backed History Store has been configured and that the Transmitter has been configured under History Settings to use this history store

MQTT Engine

  1. Ensure that the Alarm Event Enable has been set under the General Alarm Settings configuration

Testing

  1. Set up a tag on the Transmission side with an alarm. 

    The Ack Mode must be set to Manual or Auto

    The alarm properties that are currently propagated are: Name, Priority and Notes


    Below is an example that will generate an event if the value of the tag goes above 100:

  2. Trigger the alarm.
    In this example, we set the value of the memory tag to 101. This resulted in an alarm event at the Edge as shown below in the Alarm Status Table:



  3. Because the alarm event was published via MQTT, we can also see it on the Central Gateway running MQTT Engine:



  4. At this point, we can acknowledge the alarm at either the Edge or the MQTT Engine side via the Alarm Status Table by clicking the 'Acknowledge' button as shown below. Once acknowledged, it will be reflected as so on both the Edge and the MQTT Engine sides.


    In order for the alarm to be acknowledged from MQTT Engine, the Edge must be in an active Sparkplug session with MQTT Engine

    If the Edge node is offline, the following will be displayed in the Alarm Status Table and Ignition logs at MQTT Engine: 



    Once the Edge node comes online, any new alarm acknowledgement will be successful from MQTT Engine.

  5. After doing so, you can see the acknowledged alarm on the Central Gateway (MQTT Engine side) :



    and the Edge (MQTT Transmission side) :






MQTT Modules v4.0.16 to v4.0.22

In MQTT Transmission and MQTT Engine v4.0.16 support was added to propagate triggered alarm events from the Edge to a Central Ignition Gateway. This can be used to insert alarm events into Ignition's alarm journal on the MQTT Engine side. Currently, these alarm events on the MQTT Engine side can not be currently be used in alarm pipelines, and they can not be remotely acknowledged from MQTT Engine back to MQTT Transmission.

To configure alarm event propagation from Transmission to Engine to insert them into the Engine side alarm journal, follow these steps.

  1. Add a line similar to the following to the data/ignition.conf file but replace the 'XX' with the proper index per the wrapper.java.additional statements. This must be done on both the MQTT Transmission side as well as the MQTT Engine side.

    wrapper.java.additional.XX=--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
  2. Restart Ignition.
  3. Set 'Alarm Event Enable' in the MQTT Transmission Transmitter configuration to true.
  4. Set up an Alarm Journal in Ignition on the MQTT Engine side.
  5. Set up a tag on the Transmission side with an alarm.
  6. Trigger the alarm
  7. After doing so, you should see something similar to the following in the alarm journal on the MQTT Engine side:


Additional Resources

  • No labels