Industrial software · PLC · Robotics · Commissioningmail@fiwatec.com
Technical knowledge

Modbus RTU over RS-485: robust commissioning and diagnostics

Technical guide to Modbus RTU on RS-485: serial parameters, two-wire bus, termination, node addresses, function codes, timing, timeouts and troubleshooting.

Start with the physical layer

RS-485 faults often sit below the protocol. A/B polarity, common reference, shielding, bus topology and termination need to match the real installation.

Serial parameters must match

Baud rate, data bits, parity and stop bits must be identical on master and slave. One mismatched parameter can look like an addressing or device fault.

Addressing and function codes

Device manuals may distinguish logical register numbers from transmitted offsets. The function code must also match the data type, such as coils, discrete inputs, holding registers or input registers.

Timing and timeouts

A serial bus needs sufficient time between requests and for the slave response. Polling too aggressively can create timeouts even when wiring and addresses are correct.

Build diagnostics step by step

A useful test starts with one known device and one small documented request. Only then should more addresses, registers and devices be added.

From the first telegram to stable polling

1. Make the physical layer unambiguous

RS-485 is robust but not arbitrary. Bus topology, termination at both ends, correct A/B polarity and a defined reference between devices form the basis. Shielding and cable routing must suit the installation. If the electrical layer is unstable, changing register addresses only creates different symptoms.

2. Separate telegram structure from the register model

Check slave address, function code, start address, quantity and data format independently. Vendor manuals often use 4xxxx notation as a logical label while the transmitted offset is different. WORD, INT, DWORD, REAL and byte/word order must also match the device.

3. Use realistic timing

A serial bus needs time for request transmission, direction switching, response and bus idle. Timeouts or polling cycles that are too aggressive can make a valid device appear unstable. During commissioning, one known request with generous timing is better than a fast full scan.

4. Diagnose reproducibly

Distinguish no electrical response, Modbus exception, valid response with wrong data and correct raw data interpreted incorrectly in the PLC. This separation identifies whether wiring, protocol, register model or application logic is responsible.

Practical check sequence

This sequence helps isolate faults from the basic layer through to application logic.

  • Check RS-485 topology and termination
  • Compare baud rate, parity, data bits and stop bits
  • Confirm a unique slave address
  • Start with a small known register range
  • Verify function code and offset against vendor documentation
  • Use timeout and cycle margins
  • Inspect raw values before scaling/type conversion
  • Log protocol exceptions separately from timeouts
This article is general technical information and does not replace the machine-specific risk assessment, current standards or manufacturer documentation.

Related

01

Industrial communication

Modbus, PROFINET and OPC UA overview.

Learn more →
E-MailProject enquiry