Arduino Modbus RTU to Ignition

I am trying to learn Ignition for work. I thought hey lets see if I can make an Arduino using a Modbus Serial RTU library talk with Ignition.
I thought it was weird that the Modbus RTU driver is not more heavily advertised, found out that its hidden in the Serial Gateway module from a post.

I used this Arduino Modbus Library
I recommend the user get QModbus or something equivalent to test that they have their Arduino sketch setup correctly.

Once you install the Serial Gateway Module in Ignition and have ability to make a Modbus RTU device.
Go make some OPC tags, just be mindful that the SlaveID that you setup in the Modbus Aruduino Sketch must Match the UnitID when you address your tag.(See the Ignition documents for Setting up UnitID addressing)

If people want sample sketch or sample tags let me know. I atleast wanted to get the concept out that you can use Existing Arduino Modbus Serial Library and over the USB cable get data into Ignition. The tricky part is not forgetting about the SlaveID must match UnitID when you address your tags in the OPC Browser.

1 Like

I for one would be interested in more detail/samples, thanks

Yeah give us an example. Any Modbus TCP/IP libs?

Found this while searching!

I know it is a paid tutorial but it may be worth it if it works. (Arduino Modbus TCP Example)

Hi Guys,
I am going to post an Arduino sketch to a public google drive and I will export some tags from Ignition. This example is not a Modbus TCP example. What I threw together was Modbus RTU or Serial. This Arduino sketch is communicating over its USB as a Comm Port to Ignition. I just took pre-existing components and made them work together.
-Download the Serial Gateway Module from Ignition, this gives you the Modbus RTU driver
-Download this guy’s Modbus Library

Here’s the link to a simple Modbus RTU sketch based on a library example. Just has 1 coil and 2 holding registers. Make sure to pay attention to the Com Port the Aruduino uses and the Serial Settings in the Sketch. You will need these settings when you set up the Device in Ignition.

Also when you go create a tag you will need the SlaveID specified in Sketch to match the UnitID in the OPC tag(its the “10.” number below

If someone tells me how to Export a Device Connection from Ignition I will upload that.