ModbusTcpSlaveNetwork

This component is the base container for all Tcp Slave components (devices and proxy points). It resides under the station Driver container. Its default view is the Modbus Tcp Slave Device Manager. In the property sheet of the ModbusTcpSlaveNetwork, you review the default global values for Modbus device data, and specify other TCP connection settings. You can specify many ranges of Modbus data items (coils, inputs, input registers, holding registers) in any or all ModbusTcpSlaveDevice components.
Figure 30.   ModbusTcpSlaveNetwork property sheet
Image

You can access these properties by double-clicking Driver > ModbusTcpSlaveNetwork.

The ModbusTcpSlaveNetwork has the standard collection of network components, such as for status, health, monitor, tuning policies, and poll scheduler.

In addition, the following properties have special importance.

Property Value Description
Float Byte Order drop-down list Specifies the byte-order used to assemble or receive floating-point (32-bit) values in messages. Choices reflect two alternate methods, where numerals 0, 1, 2, and 3 represent the least significant byte to most significant byte:
  • Order3210 – Most significant byte first, or big-endian, it is the default.
  • Order1032 – Bytes transmitted in a 1,0,3,2 order, or little–endian.
Long Byte Order drop-down list

Specifies the byte-order used to assemble or receive long integer (32-bit) values in messages. Choices reflect two alternate methods, where numerals 0, 1, 2, and 3 represent the least significant byte to most significant byte:

  • Order3210 - Most significant byte first, or big-endian, it is the default.
  • Order1032 - Bytes transmitted in a 1,0,3,2 order, or little-endian.

 NOTE: Float or long values received in incorrect byte order may appear abnormally big, or not at all. 
Port number (defaults to 502) Specifies the TCP port used by Modbus message transactions. 502 is the standard Modbus TCP port. Leave at the default (502) unless the Modbus TCP master uses another TCP port.
Socket Timeout In Millis defaults to 30000 (milliseconds, or 30 seconds—the minimum). You can adjust upwards if necessary.
Maximum Connections number Specifies the maximum connection.