Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Data from an Edge edge device publishing MQTT payloads with binary data can be parsed at Ignition using an MQTT Engine Custom Namespace and an Ignition script.

...

Follow the steps in the MQTT Publishing via Transmission to publish an MQTT message with a topic of a/b and a payload of [30, 32, 32, 34, 41]

...

When using the default MQTT module configuration for MQTT Distributor and MQTT Engine, you your arguments will look like:

...

When the MQTT message is received and parsed by MQTT Engine, a tag folder tree will be created create containing the binary data as shown below:


Create a Value Changed script on the tag

To parse the binary tag data we will now create a Value Changed script on the tag.

Follow the steps in the Ignition Tag Event Scripts documentation to create a Value Change script on the tag and copy the code below which will parse through the binary data and make the bytes available for use as needed.  

...

Code Block
system.cirruslink.transmission.publish("Chariot SCADA", "a/b", [1, 2, 3, 4, 5, 6], 0, False)






Excerpt Include
CLD80:FAQ: Ignition Modules
CLD80:FAQ: Ignition Modules
nopaneltrue

...