MODBUS::Generic

The “MODBUS :: Generic” (Modbus/TCP master) device adapter allows data to be retrieved from most Modbus/TCP enabled devices or platforms. The Modbus/TCP enabled device must be accessible via a public IP address or a VPN connection.

Data will be retrieved from the remote Modbus/TCP enabled device on a periodic basis (i.e., 5 minutes, 30 minutes, 60 minutes, etc).

Device–Unique Code Formats

ip_or_hostname:port:unitId:connectTimeoutMS

ip_or_hostname

port

unitId

connectTimeoutMS

Device Profile–Naming Conventions of Field Codes

The generic Modbus/TCP device adapter uses the device profile’s field ‘code’ values to build a list of values to retrieve from the remote device.

fieldType

unitid

address

numRegs

dataOrder

Device Profile Examples

Here’s an example of retrieving two ir values from two different unitIds in the same device profile. This means the device’s “device code” value does not contain the unitId value so it must be specified in the field code value in the device profile.

Here’s an example where a timestamp is stored in two 16-bit registers and the device adapter combines them into one value by the field code value having _2 for the numRegs value. This is also an example of a device profile where the unitId is not specified in the field code because the device’s code value defines that value.