Bond the DC-side 0 V to the cabinet ground bar at one point. Then measure with every load running: the two ends of the serial reference should sit under 0.1 V apart. RS-232 decides each bit against its signal common, so cable length is rarely the deciding factor. An 18 in [460 mm] link corrupts frames just the same when the transmitter and receiver commons sit a couple of volts apart. A compact PLC that sends the same short string once a minute, and fails once every 30-40 sends, is the classic floating-DC-common signature. The AC-powered end sits on earth; the DC-powered end drifts until its reference moves by volts. Work the checks below in order — the offset measurement usually hands you the cause.
Symptoms and what each one points to
Each pattern below points to a specific cause, and the first two cover most mixed AC/DC cabinets.
- One bad frame every 30-40 sends, the rest correct. A steady random rate points to a reference offset or an occasional noise burst, not to length: RS-232 holds about 50 ft [15 m] at 19200 baud, far beyond an inside-the-cabinet run.
- Errors cluster when a large load starts. Coupled switching noise or shared return current — expect a drive, a contactor or the computers' power supplies.
- Flexing or reseating the cable changes the error rate. A loose or intermittent signal-ground conductor.
- It works from a bench laptop and fails from the panel PC. The test gear adds its own ground path, which tells you the two ends sit at different potentials.
- The receiver logs framing or parity errors. Levels are landing in the -3 V to +3 V band, where an RS-232 receiver's output is unpredictable.
- Resends and added delays cut the complaints. You are masking the fault, and an automatic retry can execute a command twice.
Why a short link still fails
Ranked from the cause you will meet most often:
- Floating DC common. The supply feeding the DC end is an isolated output. The NEC requires system grounding above 50 VDC, so a 24 VDC circuit sits below that line and most supplies leave the 0 V floating. That floating common drifts on leakage and coupled charge until it sits volts away from the AC-side earth, and the difference shifts every level the receiver sees. The same mechanism strands a PLC's 0 V over USB; bonding the floating 0 V in the panel fixes that variant too.
- Shared return through the signal ground. A reference conductor daisy-chained through device terminals, or one that also carries current for other loads, moves the common by IR drop during each burst. Give the serial ground its own wire and land every ground on the bar, the way signal reference grounding for control and computer panels lays it out.
- Coupled noise on a single-ended signal. RS-232 rejects none of the common-mode disturbance, so eighteen inches of cable pressed beside a 120 V AC conductor or a drive output couples every switching edge.
- A shield floating at both ends. A disconnected shield can pick up more disturbance than no shield at all; treat the shield and the signal ground as separate conductors, never as one wire.
- Misapplied repairs. RS-485 termination changes nothing on a single-ended point-to-point link, and retries only hide the failure count.
Measure before you change anything
Read the offset first. With the link running, measure DC volts from the signal ground pin at the controller end — pin 5 of the 9-pin connector — to the cabinet ground bar, with your meter's common lead on the bar. Repeat the reading at the far end. The difference between the two is the offset that shifts every received level, and it should sit under 0.1 V. Measure again from the supply's 0 V terminal to earth, and note the neutral-to-earth reading at the AC panel for comparison.
Verify the wiring de-energized. Lock out the cabinet and verify absence of voltage before you open a terminal. Check continuity of the signal-ground wire pin to pin, and confirm pins 2, 3 and 5 land where the drawings say.
Time-stamp the failures. Log a few bad frames against drive and contactor starts and against the computers' activity. A cluster on switching confirms a coupling path.
Walk the route. Look at where the serial cable runs. A short cable pressed against an AC duct still couples every edge, so routing matters more than length.
How 2.5 V ruins a 2 V margin
The arithmetic explains the offset target. The RS-232 standard lets a loaded driver deliver as little as 5 V, and a receiver treats anything between -3 V and +3 V as undefined. Suppose the DC end's floating common sits 2.5 V above the controller's earthed common, a reading these measurements produce easily. A mark leaves the transmitter at -5 V and arrives at -5 V + 2.5 V = -2.5 V, inside the undefined band; the receiver's output for that bit is unpredictable, and any switching transient decides it.
Bond both ends and the same mark arrives near its full -5 V swing. With the offset held at the target, that mark keeps about 1.9 V of noise margin above the receiver limit. The offset never needs to reach the data levels — eating 2.5 V of a 2 V margin is enough. That is why the fault is intermittent: only the bits that coincide with a transient flip, so most frames survive.
The fix: one bond, one clean reference
Run one conductor from the supply's 0 V terminal to the cabinet ground bar: the same gauge as the panel's grounding conductors, 12 AWG copper for a small control circuit, short and direct, labelled '0 V bond'. Two supplies in one cabinet bond to that single bar; bonding two supplies to one ground bar covers the arrangement. Make it one bond only — a second path back to the bar forms a loop, and a loop couples every nearby magnetic field. Keep the run short and direct for the same reason a drive panel keeps PE runs short to one star point.
Then clean up the reference. The serial signal ground runs as its own conductor between the two ground pins, and the cable shield drains to the bar at one end — or both ends inside one cabinet, where they land on the same bar. The one-end-or-both trade-off is the shield grounding decision.
Reroute what you can: give the serial cable its own duct section or 6 in [150 mm] of clearance from AC power conductors, and cross unavoidable AC runs at 90°. The bar itself is part of the panel's bonding system, and the enclosure grounding and bonding guide covers the fault-path side your bond must leave intact.
Prove the fix: remeasure the offset with the computers, drives and logger running, hold it at the target, and let the link run for an hour with zero bad frames on the receiver's counter.
Keep it from coming back
- Add the offset measurement to commissioning: a new serial device gets its DC common bonded to the bar before you blame its cable.
- Label the bond at both ends so a future wiring change does not lift it.
- Keep serial wiring in its own duct section, and put splices and pull points in a covered stainless junction box rather than loose in the tray.
- If the device vendor documents a serial noise filter or firmware fix, install it on top of the bond. It is a mitigation; the bond is the cure.
When bonding is not the answer
Bonding fixes one cabinet. A link that leaves it needs a different treatment: RS-485 carries the same data differentially about 4,000 ft [1,200 m] at 100 kbaud, and its common and shield rules differ from RS-232's. Where two cabinets cannot share one earth, galvanically isolated serial converters break the metallic path instead of bridging it; isolated RS-232 ground-potential page walks through that failure and its fix. And when you order the next cabinet for mixed AC and DC gear, build the help in: a ground bar bonded to the mounting plate, separate duct sections for power and signal, and depth enough to keep the two runs apart.
Catalog dimensions to compare
Compare these catalog dimensions with your component layout. Open each enclosure for its rating, material and usable space, then check those specifications against your application.
| Enclosure | Material | Outside H x W x D / display | Rating |
|---|---|---|---|
| 60 × 36 × 16 in | 304 stainless | 60 x 36 x 16 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 48 × 36 × 16 in | 304 stainless | 48 x 36 x 16 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 60 × 36 × 12 in | 304 stainless | 60 x 36 x 12 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 6 × 6 × 4 in | 304 stainless | 6 x 6 x 4 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
Questions
Does an RS-232 link need a ground reference between the two devices?
Yes. The receiver compares every input level with its own signal common, so the signal ground — pin 5 of the 9-pin connector — must run conductor-to-conductor, and the two commons should sit within 0.1 V of each other. A driver is allowed to deliver as little as 5 V, so an offset near 2.5 V lands a mark inside the -3 V to +3 V undefined band, and that bit's level becomes unpredictable to the receiver.
Can an 18 in serial cable really pick up enough noise to corrupt data?
At that length the cable is rarely the limit; RS-232 holds about 50 ft [15 m] at 19200 baud, so an inside-the-cabinet run is short. What corrupts a short link is the reference offset between the two commons, or a switching transient coupled into a single-ended signal — both are grounding problems, not cable problems.
Should the 0 V of a 24 VDC supply be bonded to the cabinet ground?
In a cabinet that also carries AC equipment, yes — once, at the ground bar. The NEC requires system grounding above 50 VDC, so a 24 VDC output may float, and a floating 0 V is what puts the two serial ends at different potentials. One labelled conductor from the supply's 0 V terminal to the bar holds the offset at the target.
Does RS-485 termination help an RS-232 link?
No. Termination suits a differential bus with controlled impedance; RS-232 is single-ended point-to-point with nothing to terminate, so end resistors change nothing on the link. If the run grows past about 50 ft [15 m] or leaves the cabinet, move to RS-485 instead and follow its common and shield rules.





