Contents
Cirrus Link Resources
Cirrus Link Website
Contact Us (Sales/Support)
Forum
Cirrus Link Modules Docs for Ignition 7.9.x
Inductive Resources
Ignition User Manual
Knowledge Base Articles
Inductive University
Forum
...
Transmission is an MQTT module for Ignition that can publish files using MQTT Sparkplug to be processed by MQTT engine.
...
This tutorial shows how to configure the MQTT modules to publish and receive files from one Ignition system to anotherprocess files.
...
Install the four MQTT
...
modules listed in the pre-requisites onto your
...
Ignition system following the Cirrus Link Module Installation guide.
By default, both MQTT Engine
...
and MQTT Transmission are configured to connect to MQTT Distributor on tcp://localhost:1883 and will show as Connected under
...
their respective Servers configuration setting in the Ignition UI.
...
...
By default, MQTT Transmission is configured to connect to MQTT Distributor on tcp://localhost:1883. As the MQTT Distributor is installed o a different server, we will need to edit the configuration to allow MQTT Transmission to connect to the host server.
Note |
---|
The MQTT Server must be accessible to the Ignition system running MQTT Transmission. In order for this to work port 1883 must be open to outside connections. Make sure this is allowed via your operating system's firewall configuration and any anti-virus software you may have installed. This configuration is not recommended for production systems. If running this in production, you should be using TLS encryption on port 8883. More information on how to configure TLS can be found here. |
Navigate to the MQTT Transmission > Settings in the left side bar of the Ignition Gateway UI and select the Servers tab.
Change the server URL to point to the server IP address or domain name of the Ignition system running MQTT Distributor and save the configuration. When complete, you should see something similar to the following:
Warning |
---|
If you do not see '1 of 1' under the 'Connected' status, check the logs to show what may be going wrong and/or to validate the rest of your configuration |
...
MQTT Transmission will also have an Example Transmitter configured pointing to a set of tags that are configured in the Ignition "default" tag provider.
Tip |
---|
Review the MQTT Transmission Transmitters and Tag Trees tutorial for additional information on how Transmitter configurations interact with Ignition tag trees to create the Sparkplug IDs required. |
Now we have This allows the three modules connected, we can setup the file publish configurationto automatically connect and provide a starting base for the tutorial.
...
Now we can configure the MQTT Engine module to process the published files.
...
Tip |
---|
Review the MQTT Engine Configuration guide for information on all the File properties |
When complete, it should look similar to the following. Save the changes after confirming.
...
Tip |
---|
Review the MQTT Transmission Configuration guide for information on all the File properties |
When complete, it should look similar to the following. Save the changes after confirming.
...
With both files in place, we can now set the 'Publish File Path' tag.
This path must be the full path to the target file to publish over MQTT. In this example, we're using the path of '/tmp/transmission/sample_file.txt'. However, on a Windows system that would look something like 'C:\full\path\to\my\sample_file.txt'. When this is set, you should see something like this
...
By default, MQTT Transmission is configured to connect to MQTT Distributor on tcp://localhost:1883. As the MQTT Distributor is installed on a different server, we will need to edit the configuration to allow MQTT Transmission to connect to the host server.
Note |
---|
The MQTT Server must be accessible to the Ignition system running MQTT Transmission. In order for this to work port 1883 must be open to outside connections. Make sure this is allowed via your operating system's firewall configuration and any anti-virus software you may have installed. This configuration is not recommended for production systems. If running this in production, you should be using TLS encryption on port 8883. More information on how to configure TLS can be found here. |
Navigate to the MQTT Transmission > Settings in the left side bar of the Ignition Gateway UI and select the Servers tab.
Change the server URL to point to the server IP address or domain name of the Ignition system running MQTT Distributor and save the configuration.
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|