Contents
Cirrus Link Resources
Cirrus Link Website
Contact Us (Sales/Support)
Inductive Resources
Ignition User Manual
Knowledge Base Articles
Inductive University
Forum
...
Central Ignition Gateway Setup
MQTT Distributor can be left in its default configuration. Note in a production system you would likely want to set up TLS especially if MQTT connections are using the Internet.
MQTT Engine can also be left in its default configuration.
MQTT Recorder requires that a Database be set up in Ignition. That can be done as described here. Note Ignition supports additional database types. For more detailed information about supported types, take a look at the information provided here. Once a database is set up, MQTT Recorder can be configured. Do so by opening the Ignition Gateway Web UI and browsing to the Configure tab at the top of the screen and then selecting 'MQTT Recorder Settings' as shown in the lower left below.
Once there, select a Datasource as shown in the image below. This drop-down will be populated with any database connections you have set up in Ignition. Optionally you can select a Partition Period if you would like tables segregated by time blocks.
At this point, the Central Ignition Gateway with MQTT Distributor, MQTT Engine, and MQTT Recorder is fully configured and ready to receive MQTT Sparkplug messages from the Remote/Edge Ignition Gateway. MQTT Distributor listens on TCP port 1883 by default for inbound MQTT connections. Make sure your Operating System's Firewall, Antivirus, and Malware protection services allow inbound connections on port 1883/TCP before proceeding.
Remote/Edge Ignition Gateway Setup
With the Central Ignition Gateway ready to receive MQTT/Sparkplug RECORD objects, we can set up the EFM Emerson ROC and MQTT Transmission modules on the Remote/Edge Ignition Gateway. Start by configuring the EFM Emerson ROC module. This is done as described in the Emerson ROC Configuration manual. In going through the basic setup and configuration for Alarm confguration you must perform the following steps at a minimum.
These steps can be skipped if you will not be configuring the driver to poll for TLP data.
At this point the EFM Emerson ROC driver is configured and is polling for alarm data at the rate specified in the EFM Emerson ROC device configuration. The next step is to configure MQTT Transmission. Do so by opening Ignition Designer and creating a tag structure similar to what is shown below.
Note this structure is based on usage of the 'Default Transmitter' in MQTT Transmission. So, the directory structure is very important. Note the structure.
In the example below this implies the following definitions:
These values must match the EFM Emerson ROC connection Sparkplug parameters exactly. This tells the EFM Emerson ROC which MQTT Transmission Transmitter configuration to use and in turn, which MQTT connection to use to send the alarm data on.
Note at least one tag is also required below the Sparkplug Device ID level. Often times there would be TLP tags at this level.