Connectors

Modbus TCP

Configure Modbus TCP connectors for device communication.

Modbus TCP is a widely used industrial protocol for communicating with PLCs, sensors, and other field devices over TCP/IP networks.

Configuration fields

FieldDefaultDescription
HostIP address or hostname of the Modbus server
Port502TCP port number. The standard Modbus TCP port is 502.
Slave ID1The Modbus unit/slave identifier (1–247). Identifies the target device on the network.
Timeout (ms)Optional connection timeout in milliseconds

Endpoint format

The connector endpoint is formatted as host:port:

192.168.1.50:502
10.0.0.100:502
modbus-server.local:502

Register types

Modbus devices organize data into four register types:

Register TypeAddress RangeAccessData
Coils00001–09999Read/WriteSingle bit (on/off)
Discrete Inputs10001–19999Read onlySingle bit (on/off)
Input Registers30001–39999Read only16-bit word
Holding Registers40001–49999Read/Write16-bit word

Data formats

Modbus registers store 16-bit values. Multi-register values are assembled from consecutive registers:

FormatRegistersDescription
16-bit integer1Single register, signed or unsigned
32-bit integer2Two consecutive registers
32-bit float2IEEE 754 single-precision floating point
StringNMultiple registers, 2 ASCII characters per register

Connector configuration form

When creating or editing a Modbus TCP connector, the protocol-specific configuration form includes:

FieldDefaultDescription
HostIP address or hostname of the Modbus server
Port502TCP port number
Unit ID1The Modbus unit/slave identifier (1--247)
Timeout (ms)Optional connection timeout in milliseconds

Using with bindings

When binding variables to Modbus data points, the binding editor provides a protocol-specific address form with the following fields:

FieldDescription
Register TypeHolding Register, Input Register, Coil, or Discrete Input
Start AddressThe register address number (for example, 40001)
Data FormatHow to interpret the register value: 16-bit integer, 32-bit integer, 32-bit float, or string
Byte OrderFor multi-register values: Big Endian or Little Endian
Word OrderFor multi-register values: High Word First or Low Word First

Byte order and word order fields appear only when the selected data format spans multiple registers (for example, 32-bit float or 32-bit integer).

Modbus register addressing and byte order can vary between device manufacturers. Consult your device documentation for the correct register map and data format.

On this page