Modbus RTU

Modbus RTU

The Modbus RTU driver is one of the oldest and most widely adopted standards in industrial automation. It is used to communicate with devices that operate over serial communication using the RS485 or RS232 physical layer (Drives, Energy Analyzers, Sensors, PLCs, etc.).

Connection Settings

When you select the protocol name in the tree view (e.g., [1] Network), these settings define the properties of your computer’s serial port.

Warning: The settings here (Baudrate, Parity, Stop Bit) must exactly match the configuration of the field device. Otherwise, communication cannot be established.

ParameterDescriptionExample
Serial PortThe physical COM port to which the PLC is connected on your PC. (Check via Device Manager.)COM1
BaudrateCommunication speed (e.g., 9600, 19200, 115200). Incorrect selection prevents communication.115200
ParityParity bit control (None, Odd, Even).None
Stop BitsNumber of stop bits (One, Two).One
Data BitsNumber of data bits (usually 8).8
Delay (ms)Waiting time between two requests to prevent collisions on RS485 lines.100
Timeout (ms)May need to be increased based on cable length and baudrate.250
Retry CountNumber of retries before the system enters the Fault state in case of communication errors.3

Device Settings

This panel appears when you select Device in the tree view. It defines a specific physical device (Slave) on the RS485 line and how data exchange with it will be handled.

ParameterDescription
AddressStation Number (Slave ID). Each device on the line must have a unique ID.
SymbolSymbolic name assigned to the device (e.g., Device).
EnableDetermines whether the device is active. You can define conditions to dynamically enable/disable communication. Multiple conditions can be added;
if any condition is true, the device becomes active. Leave blank to keep the device always active.
Skip After FailureChecked: If the device does not respond (Timeout), the system stops querying the device and moves to the next one.Unchecked: The system continues attempting to read each tag of the device even after an error. (Recommended to check this to prevent system slowdown if a device on the RS485 line fails.)
Byte OrderingByte order (Endianness) for merging 32-bit values (Real/Float, DInt). If the value appears incorrect or unrealistic, try different modes (LittleEndian, BigEndian, Swap Bytes, etc.).
Use Func. Code 5Checked: FC 05 (Write Single Coil) is used for bit writes. Unchecked: FC 15 (Write Multiple Coils) is used. (Some older devices do not support FC 15.)
Use Func. Code 6Checked: FC 06 (Write Single Register). Unchecked: FC 16 (Write Multiple Registers).
Discrete Max. BlockMaximum number of bits (Coils/Inputs) to read in a single request. Default 2040 is ideal. Can be reduced if addresses are highly scattered.
Analog Max. BlockMaximum number of words (Registers) to read in a single request. Modbus standard allows up to 125.
ConnectedSelected bit becomes True when the device is successfully connected.
FaultSelected bit becomes True when a communication error occurs.
CommentA descriptive note for the device.

RS485 Performance Management

Modbus RTU (Serial Communication) is slower and more sensitive compared to Ethernet. To maximize system performance:

  • Enable “Skip After Failure”

If a device loses power or its cable is disconnected, SCADA will not waste time trying to query it. Other devices (e.g., Device 2, Device 3) continue running without slowdown.

  • Use the Enable Feature

If your network has 20 devices but the operator is viewing only Device 1, disable the other 19 devices using the Enable property.
This increases the data update speed of Device 1 by up to 20×.

Addressing Table

Wise SCADA uses standard Modbus addressing notation.

Address RangeData TypeDescriptionFunction Codes (FC)
000001 – 065536Discrete OutputCoils (Bit): Read/write digital outputs/relays.Read: 01 — Write: 05, 15
100001 – 165536Discrete InputContacts (Bit): Read-only digital inputs.Read: 02
300001 – 365536Analog InputInput Registers (Word): Read-only 16-bit analog values.Read: 04
400001 – 465536Analog OutputHolding Registers (Word): Read/write 16-bit memory areas. The most commonly used type.Read: 03 — Write: 06, 16

Leave a Reply