Common pitfalls when installing a Modbus RS485 network on site

Last week IDX were called to site at a large commercial residence building in Pretoria, South Africa. Where our client was implementing an IoT solution for remote monitoring and control of various HVAC and power systems in the building. The control system the SI chose in this case was a Modbus enabled Industrial Micro PC called the Revolution PI.
The client had Modbus sensors connected to boilers, air conditioning systems, ventilation systems and power meters.

The Modbus communications between the controller and the sensors were intermittently failing due to various installation and implementation faults:


1. Earthing and Shielding


Within any fieldbus communication installation, one of the requirements to ensure uninterrupted operation is to implement adequate grounding and shielding techniques. Effective grounding and Shielding help to prevent electrostatic and electromagnetic pickup, which can lead to failed communications.

Some of the shielding and grounding requirements for a Modbus RS485 Network:

  • Utilising twisted shielded serial cable (120Ω impedance)
  • Ensuring continuity of the shield across the entire segment
  • Grounding the shield at multiple points (preferably at each device)
  • Ensure devices are properly grounded to an appropriate functional earth within cabinets
  • Running a potential equilisation cable between cabinets where necessary

Fig.1 No grounding / shield continuity
The shield surrounding the communication wires will transfer any picked up noise or interference and drain it to ground. It is important to ground the shield as you enter and exit cabinets and at each device, this provides the shortest path to ground for any interference picked up on the network.

What we found on site (Fig.1)

  1. No continuity of the cable shield
  2. No grounding of the shield within the cabinets or devices
  3. No functional earthing of devices within the cabinets


2. Running Modbus cable close to high voltage cabling


High voltage cable and machinery can interfere with bus communications, they do so by electrostatic and electromagnetic injection.
One way to avoid this interference / injection on the bus is to separate your communication cable from the source of interference.

The adequate separation distances between the communication cable (Category 1) and any high voltage cables / devices (Category 2,3 & 4) is displayed below (Fig.2).

  • Category 1 
    • Fig.2 Cable separation diagram
    • Modbus cable, LAN cables, < 25VAC, < 60VDC
  • Category 2
    • AC: 25V - 400V
    • DC: 60V - 400V
  • Category 3
    • AC & DC: >400V
  • Category 4
    • Cable at a risk from lightning strikes (e.g. cables running between buildings)

What we found on site (Fig.3 & .4)

Fig.3 Violation of cable separation requirements
  1. Running close to 400 VAC cables
  2. Severe noise injected on the signal bus
    • Within Figure 4 you can see two scope lines (red and green), this is your B & A lines respectively.
    • RS485 is a balanced  system and carries the same signal on both line A & B, however the exact inverses of each signal on each line. Thus any noise that is picked up should cancel out once the signal is combined.
    • This scope was taken on a Modbus installation that was silent and indicates poor implementation of RS485 protection mechanisms.
  3. Little protection from EMI due to poor earthing and shielding techniques implemented

Fig.4 |EMI picked up on the Modbus cable due to poor shielding and
exposure to high voltage cables



3. Missing end terminators

Fig.5 Installed 120Ω resistor and implemented grounded shielding
Reflections on a fieldbus cable are caused by an impedance mismatch. One of the major contributing factors causing reflections, is at the end of the fieldbus line where the signal waveform 'bounces back' towards to transmitter and disrupts consecutive signals on the bus (Fig.6).





To prevent these reflections, you can absorb the signal waveform at the end of each line within your Modbus network by installing a 120-ohm resistor at the beginning and end of the segment.

As segment lengths are increased, the effect of reflections without effective terminating resistors installed becomes more severe.
Fig.6 Normal operation (left) vs Missing termination (right) scope image


Written by: Kyle Roos (IDX)

Should you seek consulting or professional engineering services to assist you in achieving high network availability on your Modbus installation, then contact IDX Technical Support:
support@idx.co.za
+27 11 548 9960




IDX also offers a one day Modbus overview course which covers Modbus RTU, ASCII & TCP. For more information on this course please visit our training page:
https://www.idx.co.za/Training/Modbus


Popular posts from this blog

IEC61850 to Modbus TCP/IP, EtherNet/IP, M-bus, PROFINET or PROFIBUS

IDX 8 Tag Manager - Managing the unmanagable?