Versions Compared

Key

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

...

When done with the steps above, you should have a folder/tag structure as shown below.

Note additional tags could be added to the 'Device 1' folder as well.  These could be OPC tags, UDTs, or other types of tags.  Also, additional folders could be added below this level as well.  The structure of the 'default transmitter' requires that the first three folder levels represent the Sparkplug Group ID, Edge Node ID, and Device ID respectively.

At this point, we can start the Transmitter by writing to the 'Transmission Control/Refresh' boolean tag.  Writing to this tag tells MQTT Transmission to rescan the entire tag tree, detect the folders and tags present, and then begin publishing Sparkplug messages to the MQTT Server.  The location of the tag to write to is shown below.

...

Step 6: Verify MQTT Transmission is Connected

...

Open the Ignition Edge MQTT Web UI and browse to 'Configure → MQTT Transmission → Settings → Servers' and verify the connected status shows '1 of 1'.  If it does not, double check the firewall and antivirus settings on the Central Ignition Gateway and ensure port 1883 is open.

Image Added

Step 7: Verify Data Flowing into MQTT Engine

With MQTT Transmission now connected, open Ignition Designer on the Central Ignition Gateway.  Expand the Tag Browser and look expand the folder tree as shown below.  You should see the 'My Tag' tag published from the Ignition Edge MQTT Edge Node.

Image Added

Extra Activities

At this point you have a fully functional system that can be expanded or modified as required.  Below are some additional activities you may want to try on your own.

  • Modify the MQTT Transmission default transmitter tag tree to add additional tags and get them to show up in the Central Ignition Gateway
  • Write to a tag in MQTT Engine to show it update in MQTT Transmission
  • Disable MQTT Transmission in Ignition Edge MQTT to see the tags go stale in MQTT Engine
  • Set up store and forward in MQTT Transmission to show data being saved in Ignition Edge MQTT when the connection goes down
  • Use a Custom Transmitter rather than the Default Transmitter to provide more flexibility on the MQTT Transmission side in terms of tag tree/arrangement
  • Add a second or more Ignition Edge MQTT instances pointed at the same MQTT Distirbutor instance that was set up in this tutorial