Versions Compared

Key

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

...

Once you save the configuration for the Modbus TCP connection and everything is setup properly on the MGate you should see the “Status” of the connection change to “Connected”. 



********************************************************************************************

How did we get from this connected status to seeing the CLICK devices in Designer?

********************************************************************************************

Configuring Modbus Registers to Use Modbus TCP with Modbus RTU Unit Addresses

As pointed out above, when When you start to configure Ignition tags that want Modbus register information from any of the Modbus RTU devices connected to the MGate unit, you will need to specify the Modbus Address in the OPC tag path. There are

In our example, we have three (3) CLICK PLCs on the RS-485 2-wire serial network connected to the MGate.  The The Modbus register values are in the Ignition folders CLICK 01, CLICK 02, and CLICK 03.

Image Added


Lets review the various datatypes available and how they are mapped in the OPC Item Path configuration.


Image Added


Tip
Reference the Modbus Addressing Inductive Automation document for details on the correct designator to use for the datatype

32-bit Float

Double click on the AI 1 tag under CLICK 01 to open the properties and look at the OPC Item Path configuration:

 Image Added


Here we can see that Analog Input #1 on the CLICK 01 PLC (tag AI 1) is mapped to Modbus Holding Register address 28,674. Also note that the Analog Input is a 32-bit Float data type. In this use case, the OPC Item Path must include the associated Modbus Slave Address for the target PLC.

Image Added

Discrete Input


16-bit Integer

...