Email us

Este artículo está en inglés. Ver el sitio en español

Cet article est en anglais. Voir le site en français

Dieser Artikel ist auf Englisch. Website auf Deutsch ansehen

Este artigo está em inglês. Ver o site em português

本文为英文。 查看中文网站

Grounding a computer to a machine control panel

Feed the shop computer from a receptacle on the machine control panel so both chassis share one protective earth, and land low-level signal shields at the enclosure end only. In the worked example, a 1 V earth offset drives 0.2 A through a 5 Ω shield bonded at both ends and halves the receiver margin; remove the offset and the loop, and 9600 baud transfers run clean.

NEMA4 Enclosure engineering team · Published November 23, 2026 · 8 min read

Feed the computer from a receptacle on the machine control panel so both chassis share one protective earth, and land the low-level signal shields at the enclosure end only. That pairing fixes the classic shop link: parity errors that force 2400 baud, the odd success at 9600, and a handwheel that scrambles now and then. In the worked example below, a 1 V earth offset drives 0.2 A through a 5 Ω shield bonded at both ends. The same 1 V cuts a serial receiver's noise margin from 2 V to 1 V. Slowing the baud rate hides that; it repairs nothing. Remove the offset with one supply and one earth, open the loop with one shield landing, then prove the result with ten clean transfers at 9600 baud in a row.

Symptoms and what each one points to

Sort the symptoms before you open the cabinet; they separate a reference problem from a parts problem.

  • Parity errors that ease at 2400 baud. Noise is eating the receiver margin. At 2400 baud a bit lasts 417 µs, so a short burst flips one bit and parity catches it; at 9600 baud a bit lasts 104 µs and the same burst spans two, which parity can miss.
  • Occasional success at 9600 baud. One completed 9600 transfer proves the baud, parity and stop-bit settings match, so configuration drops off the list. Intermittent success points at an offset that moves with what the machine is doing.
  • Errors that cluster when contactors or drives switch. Ground bounce or shield loop current is riding the link; look at bonding and shield landing rather than at the data conductors.
  • A handwheel that scrambles and alarms the control. The manual pulse generator talks to the control only, so its path is separate from program transfer. A shared bonding defect can touch both, and a flexed MPG cable or a tired connector fails on its own.
  • Unexpected axis motion from the handwheel. Stop handwheel use and inhibit motion until the cause is found; an erratic MPG commands real movement.

Log each event with its baud rate and the machine state; the pattern picks your first measurement.

Causes in order of likelihood

Work the list top down; the first three cover most links between a shop computer and a machine.

  1. Earth offset between the two chassis. The PC sits on a wall circuit, the machine on its own feed, and the two earths rest at different potentials while drives run. NEC 250.4(A)(5) keeps the earth out of the effective ground-fault current path; the conductors carry faults and the earth is only a reference you measure. A shield bonded at both ends turns that offset into loop current.
  2. A shield landed at both ends. Screening still works, but the second landing closes the loop of cause 1. Low-level signal shields land once, at the cabinet. For a loop hunt across a whole cabinet of signals, the control signal ground loop checks sequence runs the checks.
  3. A dirty supply for the PC. A computer sharing a wall circuit with welders, compressors or a sagging shop feed corrupts transfers even with clean earths. A desktop PC draws 150-300 W, so the machine's clean feed costs the panel about 2 A at 120 V.
  4. Cable, connector or adapter faults. Flex the cable and watch for dropouts; null-modem adapters and gender changers fail more often than the cable itself.
  5. A settings mismatch. Real only when 9600 baud has never completed; match baud, parity, data bits and stop bits at both ends before anything else.

How to check the earth between computer and cabinet

Measure with the machine running and every contactor live; a quiet cabinet hides exactly the fault you are hunting.

Check How Healthy reading What a miss means
Offset, PC to cabinet AC volts from a PC chassis screw to the cabinet earth stud, machine running millivolts, under 0.2 V above 0.2 V AC the offset is eating the margin; fix the reference
Shield landing ohmmeter from shield to stud at each end, cable connected 0 Ω at the cabinet end, open at the PC end continuity at both ends means the loop is closed
Cabinet bonding ohmmeter from earth stud to the plate bonding point near 0 Ω, steady under a tug corrosion or paint; clean to bare metal per NEC 250.12
Supply quality AC volts at the panel receptacle under load 114-126 V for a nominal 120 V circuit (ANSI C84.1 Range A) outside the band the feed sags and corrupts transfers
MPG cable wiggle the cable at the connector with motion inhibited counts move only when the wheel turns dropouts that follow the flex are the cable, not the earth

Isolate the panel, lock off and prove absence of voltage before you open it or land a conductor.

A continuity beep proves little by itself; a bond can beep and still carry noise, so the AC volt reading across the studs is the number that decides. Where the PC end of the shield shows continuity, lift it from pin 1 or the shell and heat-shrink the pigtail.

1 V of earth offset across a 5 Ω shield at 9600 baud

Inputs

Three inputs set the example; measure yours and the arithmetic repeats with your numbers.

  • Offset from PC chassis to cabinet earth stud, machine running: 1.0 V AC at 60 Hz. An illustrative reading for a PC on its own wall circuit; your meter sets the real value.
  • Cable: 5 m shielded serial cable, shield measuring 5 Ω end to end with the cable unplugged. Foil-and-drain shields read higher than braids.
  • EIA/TIA-232 levels: a transmitter drives at least ±5 V into the line, and a receiver must decide between ±3 V. The working noise margin is therefore about 2 V.

The rule and the arithmetic

A shield bonded to earth at both ends, with V volts between those earths, draws a loop current of V ÷ R through the shield, and the same V sits under every signal the far receiver reads.

  • Loop current: 1.0 V ÷ 5 Ω = 0.2 A (200 mA) through braid and pigtails sized for screening, not for current.
  • Heat in the shield: (1.0 V × 1.0 V) ÷ 5 Ω = 0.2 W.
  • Margin left: 5 V − 3 V = 2 V nominal; the 1.0 V offset leaves 2 V − 1 V = 1 V.
  • Bit timing: 1 ÷ 9600 baud = 104 µs per bit; a 10-bit character (start, 7 data, parity, stop) takes 10 × 104 µs ≈ 1.04 ms. At 2400 baud each bit stretches to 417 µs.

Result and decision

A 200 mA loop with half the margin gone. The baud-rate mystery resolves itself: a 200 µs burst from a dropping-out contactor coil flips at most one bit at 2400 baud, parity flags the character and the transfer crawls through. At 9600 baud the same burst spans two bits of one character; two flips pass parity, which only catches odd numbers of flips, and the garbage lands in the program.

Decision: treat any stud-to-stud reading above 0.2 V AC, one tenth of the 2 V margin, as a reference worth fixing. Land the shield at one end and the loop term disappears. Feed the PC from the panel and the offset falls to millivolts. The margin returns to about 2 V, and the link holds 9600 baud with the drives running.

The fix: one supply, one earth, shields landed once

The fundamentals live in the grounding and bonding guide; this is the shop-case version.

Feed the PC from the machine panel. Some machines carry a factory receptacle on the cabinet for exactly this job; use it if yours has one. Otherwise fit a 15 A receptacle inside the cabinet or on its side, wired from the same supply and the same ground conductor as the machine controls. A desktop PC with a monitor draws 150-300 W, about 2 A at 120 V, so a 15 A circuit carries it with room to spare, and NEC Table 250.122 sizes its equipment grounding conductor at 14 AWG copper. Insulated grounding conductors 6 AWG and smaller are green or green with a yellow stripe (NEC 250.119).

Check the source before you land it. If the receptacle would hang off the machine's control transformer, add the PC's volt-amperes to the transformer's measured load; once the sum reaches the rating, feed the receptacle from its own branch circuit out of the same panel. A new breaker's handle, highest position, sits no higher than 2.0 m (6 ft 7 in) above the floor (NEC 240.24(A)). Bond the metal around it, cabinet, raceway and receptacle ground, so the assembly can carry fault current (NEC 250.96(A)), and strip paint and lacquer off every grounding contact surface to bare metal (NEC 250.12).

Land each low-level shield once, at the enclosure, on a shield bar or earth stud; signal common is a reference, never a shield drain. The 24 V electronics inside share a 0 V rail, and that rail takes one deliberate bond to earth so every board reads the same reference. Ten shields on one stud or a dedicated bar is a small decision of its own; the backplate and DIN rail layout guide leaves room for that bar where the grounds arrive. Sensor cables can make the opposite call: RTD and thermocouple shields often land at the sensor end rather than the cabinet end.

The handwheel lives in the same cabinet: land its shield at the cabinet end, keep its cable out of the power duct, and wiggle-test the connector with motion inhibited. If the cabinet seals against coolant or washdown, leave its gasket run alone: put the receptacle, its breaker and the shield bar in a bonded stainless junction box beside the machine and run both earths to the same stud. One reference, no new holes in the cabinet wall.

Stop it coming back

  • Prove the fix with ten transfers of the same program at 9600 baud, contactors cycling and drives running, zero errors.
  • Read the studs again with everything live; millivolts is the number to keep.
  • Label the receptacle for computer and controls only; a welder on it rebuilds the offset in one arc.
  • Route new signal cable away from the power duct, crossing at right angles where runs must meet.
  • Note the shield landing on the panel drawing, so the next cable lands the same way.

When to re-specify the enclosure

Patch only a cabinet that can take it. When the earth studs are corroded, when bonding cannot reach bare metal, or when there is no room for a shield bar and a receptacle, re-specify instead of fighting. Order the next panel with a cutout for the receptacle placed clear of the gasket run — the cutouts and glands guide covers placement for a stationary cabinet — plus a welded earth stud in each zone where grounds arrive, a shield bar sized to the cable count, and plate space for the breaker; the enclosure sizing guide checks the space against the fill limits. For the small bonded jobs beside the machine, a receptacle, a shield bar, a few terminals, our stainless junction boxes take the cutouts you choose and deliver in 10 business days, anywhere in the world.

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.

EnclosureMaterialOutside H x W x D / displayRating
6 × 6 × 4 in304 stainless6 x 6 x 4 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
8 × 6 × 4 in304 stainless8 x 6 x 4 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
10 × 8 × 4 in304 stainless10 x 8 x 4 inRated NEMA 4X / IP66 by the manufacturer; not UL listed

Questions

Can the serial shield land at both ends once the computer shares the panel supply?

Keep the one-end landing even then. With both chassis on one earth the stud-to-stud reading falls to millivolts, and 0.05 V across a 5 Ω shield is only 10 mA, harmless but pointless. One landing preserves the screening while the loop stays open, so a laptop on a different circuit later cannot rebuild the 200 mA loop of the worked example.

What if the computer has to stay on its own wall outlet?

Fit an optically isolated serial link between computer and control. Isolation breaks the metal path, so a 1 V or a 5 V offset drives no loop current at all, and the receiver keeps its full 2 V margin. Prove the result with ten consecutive transfers of the same program at 9600 baud, and land the cable shield at the enclosure end as before.

How long can the serial cable to the control be?

EIA/TIA-232 sets its load limit at 2500 pF of cable capacitance, which works out near 15 m (50 ft) of ordinary cable, the figure most serial guides quote. A 5 m shop cable sits far inside that. Length hurts a marginal link first, so keep the DNC cable short and move the computer to the panel receptacle instead of stretching the cable.

Should I drive a separate earth rod at the machine?

A second rod changes little for noise. NEC 250.54 lets a supplementary electrode exist beside the equipment grounding conductor, but it is never a replacement for it, and two rods driven apart can rest at different potentials, the very offset you are fighting. Spend the effort on one earth, one shared supply and the shield landing instead.

Checklist before you order

Specify it once, built to your drawing

  • Environment and NEMA type: Type 1, Type 3R, Type 4, Type 4X, Type 6P, Type 12, Type 13 (manufacturer ratings, not UL listed)
  • Material: 304 stainless steel, 316L stainless steel, Powder-coated carbon steel, Aluminum, Polycarbonate, Fiberglass (FRP)
  • Size: inside or outside height, width and depth, with the depth your deepest component needs
  • Cutouts, glands and windows, dimensioned from one datum on each face
  • Mounting and access: wall, pole or stand, hinge side, mounting panel
  • Quantity: from one piece

Delivered in 10 business days, anywhere in the world. Counted from your order; for custom work, from your approval of the drawing.

Start a junction box from 6 × 6 × 4 inRequest a custom quote

Stainless junction boxes: sizes for this job

Keep reading

More on layout and installation

All articles

Buying guides

The guides behind this answer

All guides