«It was fine on the bench, but once the machine runs it drops out now and then» is the usual shape of a field communication problem. Noise is invisible, so before clipping on ferrites by instinct, collect «when» the errors happen — that cuts the list of likely causes sharply.
1. Is it noise at all?
| Pattern | Likely causes |
|---|---|
| Never answered even once | Settings or wiring rather than noise — ID, baud, parity, A/B (see the no-reply guide) |
| Always the same device, at the same rate | That device's termination, wiring, duplicate ID, poll spacing |
| Errors bunch up while machines run or at certain times | Noise, or voltage dips on a shared supply |
| Many CRC errors, corrupted bytes | Noise, termination, bias, baud vs length |
| Everything times out for a while, then recovers | Device restart (power), adapter dropout, transceiver protection from ground differences |
2. Record when errors happen
Keep the time of each error down to the second. Then find out what moved at the same time — a drive starting or stopping, a servo accelerating, a welder, a heater, a big solenoid — from the machine's log or the operator, and line them up. A handful of matches is often enough to see a rule like «every time the conveyor drive starts». Also check whether errors cluster by time of day (shift change, lunch, night runs).
Where possible, put the load on the same time axis. If you can read the drive's output frequency or current over Modbus, log it too; if a device streams values over serial, plot them in Plot. Errors bunched in «acceleration» or «high current» stretches point at that machine's wiring first.
3. Near drives and servos, look here first
Drives and servo amplifiers switch their output voltage rapidly (PWM), pushing high-frequency current through the motor cable and earth. When a communication cable runs nearby, check in this order.
- Same duct, same bundle: is there a stretch where motor or drive output cables run alongside the communication cable? Separate routing is the most effective fix. Take the separation distance from the wiring chapter of that drive or servo manual, and cross at right angles.
- Motor cable shield and earth: is the shielded motor cable's shield properly clamped at both ends (drive and motor), and does the motor earth conductor return to the drive? Noise current with no return path finds its way back through communication cables and device grounds.
- Communication shield and SG: see the shield and grounding guide.
- Drive-side filters: are the input EMC filter, output reactor or zero-phase reactor recommended in the manual fitted?
- Carrier frequency: some drive manuals say a lower carrier frequency reduces noise (motor noise may rise). Change it only where the manual covers it.
4. On the communication cable
- Ferrite cores: a clamp-on ferrite near the device end of the communication cable reduces common-mode high-frequency noise. The effect depends on frequency and turns, so compare error counts over the same period before and after.
- Common-mode filtering at the terminator: a TI design guide describes splitting each 120 Ω terminator into two 60 Ω resistors with a capacitor from the centre point, to filter common-mode noise in noisy environments. The two resistors must be well matched (1 % recommended).
- Lower baud rate: the same noise corrupts fewer bits when bits are longer. If the devices allow it, drop from 19200 to 9600, for example, and see whether errors fall.
- Isolation: where ground potentials differ (another panel, another building), split the bus with an isolated RS-485 adapter or isolated repeater.
- Split the bus: with many devices and only some near the noise, separate that segment with a repeater or its own port to limit the damage.
- Retries: once the cause is reduced, absorb rare leftovers with 1–2 retries at the master. Retries that hide the cause also hide a later rise — keep watching the error counts.
5. Things that look like noise
- Power: when valves or motors on the same 24 V supply switch on, the device voltage dips and it restarts — that looks like «timeouts in bursts» (see the 24 V supply guide).
- USB-serial adapter: the adapter on the PC side may drop and reconnect — check Device Manager and the event log at the same times (see the USB-serial disconnect guide).
- A second master: an HMI or another PC polling the same bus causes collisions and CRC errors. There is one master.
- Slow device: a device that answers late when busy produces «timeouts» that follow load — if a longer response timeout makes them go away, it is not noise.
6. Change one thing, compare numbers
Apply several fixes at once and you will not know which one worked. Change one thing, then compare CRC errors and timeouts per request over the same period under the same operating conditions. A table of what changed, when, and the error counts lets the next person carry on.
In PortDock
- Modbus Master counts requests, timeouts, CRC errors and exceptions per table, and timeouts appear in the traffic log as event lines with timestamps. Use «Log to file» to keep a long record and line it up with machine activity.
- Modbus Master «Value log (CSV)»: record values such as drive frequency and current with a timestamp on every poll, to compare with error times on one time axis.
- Plot: live graphs of numbers arriving over serial, TCP or UDP, recorded to CSV while receiving. Use it to overlay load changes and error times when a device streams its own values.
- Serial: leave reception on without sending to see garbage bytes, with timestamps, arriving as machines move.
Sources
- TI SLLA272 — The RS-485 Design Guide — §5 twisted pair and common-mode noise, §6 split 60 Ω termination with capacitor, §11 grounding and isolation
- TI SLLA070D — RS-422 and RS-485 Standards Overview and System Configurations — §4.5 ground loops and isolation
- SEW-EURODRIVE — Shielding and routing bus cables — route bus cables apart from power (motor) cables
Published 2026-10-31