Example: Ignition MQTT Module
Overview
A common use case may be to integrate data from TilliT into Ignition, where any event created in TilliT will be added to your Ignition system as a tag. This allows TilliT and Ignition to work seamlessly together, easily sharing data as it becomes relevant to each other. For instance, you can setup Ignition to require a TilliT Activity to be completed before allowing a user to start an equipment. Due to the customisability of Ignition, there is endless potential in using the MQTT modules provided by Ignition. For more information about the IIoT and Ignition, see here(external)
Video Tutorial<In Progress>
Installing the MQTT Engine Module
Get the download for the Ignition MQTT Engine Module here(external)
Follow the installation guide by Cirrus Link here(external)
Connect to the TilliT MQTT Broker
It is recommended you restart your ignition server after you install the MQTT Engine Module. Many problems can be resolved with a restart, do not waste time troubleshooting before doing this step first.
It's now time to connect your Ignition Server with the TilliT MQTT Broker.
- 1
-
Naviagte to Config -> MQTT Engine -> Settings
- 2
-
Navigate to Servers -> Certificates -> Create new Certificate. Upload each certificate provided to you until you have the following showing.
- 3
-
Now configure the MQTT Server settings by navigating to Servers -> Settings -> Create new MQTT Server Setting
- 4
-
Fill out the server settings like with endpoint
ssl://iot.tillit.cloud:8883
- 5
-
Click Create. Observe that your connection status is Connected
Subscribe to the Tenant Namespace
Now that you are securely connected to the TilliT Broker, you need to specify the topic you will subscribe to and receive updates from TilliT
- 1
-
Navigate to Namespace -> Custom -> Create new Custom Namespace
- 2
-
The namespace is the subscription you are going to make to the TilliT Broker, for simplicity we will subscribe to
tenant/#
(here tenant is bottling) and specify that it's a JSON payload - 3
- Click Create and you are ready for the next steps
See Data from TilliT Populate Your Ignition Tags
For this step you will require Ignition's Designer Software and the TilliT MQTT Integration setup step completed (The Integration can be seen here)
- 1
-
Open a project in Ignition Designer and browse to the MQTT Engine Tags
- 2
-
Go to TilliT and raise an Equipment Stopped on an asset and order.
- 3
-
Come back to your Ignition Project and see that a new tag has appeared in the Tag Browser under tillit. Expanding this shows that each tag level is a part of the topic, until we reach the payload body.
What next?
That's up to you! We are no experts in Ignition so this article doesn't represent all aspects of what can be done. Please explore the MQTT module and share your experiences with us!