Skip to main content

Modbus RTU

The Modbus RTU protocol in InDataX enables communication with industrial devices via serial interfaces such as RS-485 or RS-232. This protocol is the standard for integrating instrumentation, frequency inverters, and "legacy" devices over fieldbus.

Connection Parameters

To configure a Modbus RTU channel, define the following serial parameters:

  • Name: Unique identifier for the protocol.
  • USB Port (Connection Order): InDataX uses the physical connection order of USB-to-Serial adapters (0, 1, 2...) to ensure the system always assigns the same channel to the same hardware, regardless of the port name assigned by the operating system (COM).
  • Baud Rate: Transmission speed (e.g., 9600, 19200, 115200).
  • Parity: Selection between None, Even, or Odd.
  • Data Bits: Usually 8.
  • Stop Bits: Usually 1 or 2.
  • Modbus Slave ID: The device's address on the bus (Station ID).

Variable Configuration

Variable management is identical to Modbus TCP, based on register mapping:

  • Name: Variable identifier.
  • Type: Data format (Real, Integer, Boolean, Long, etc.).
  • Record Value: Enables logging in the historical database.
  • Modbus Address: Numerical address of the register.
  • Length: Number of registers (16 bits each) the variable occupies.
  • Register Type:
    • Coil: Output bits (read/write).
    • Discrete Input: Read-only input bits (e.g., status of a digital sensor).
    • Holding Register: 16-bit registers (read/write).
    • Input Register: 16-bit registers (read-only).
  • Signed: Defines whether the value includes a negative sign.

Configuration Example

VariableTypeAddressLengthRegister TypeApplication
frequency_hzReal40012Holding RegisterReading frequency from an inverter.
start_stopBoolean11CoilRemote motor control.
current_aInteger5001Input RegisterLine current measurement.
door_sensorBoolean201Discrete InputStatus of a limit switch.
Bus Termination

In RS-485 networks, remember to install termination resistors (usually 120Ω) at the ends of the bus to prevent signal reflections and communication errors, especially for long cable runs or high speeds.