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

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

5v relay not switching: tie the signal commons, not chassis ground

Your relay is probably fine: the input reads dead because the controller and the separate 5 V supply share no 0 V reference, so the command never reaches the input. Run one 18 AWG conductor from the controller's signal common to relay -V, a direct wire and not a chassis screw, then confirm full voltage at the input under load before replacing anything.

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

Short answer: the relay is probably fine, and your three measurements already name the fault. The relay's input stage reads between the signal terminal and its own -V, and it sees nothing there, while the same signal reads 5 V against the controller's reference. That means the two devices share no common: the supply feeding the relay floats on its own. The fix is one 18 AWG [0.82 mm²] conductor from the controller's signal common to the relay's -V terminal. That is a direct wire, ten minutes of work, and full voltage at the input when you are done.

Why does the relay read dead when the controller is switching?

Because every voltage is measured between two points, and the relay trusts only one of them. Its input stage reads between the signal terminal and its own -V, so a signal referenced to the controller's zero is just a number until the two negatives become one node. A floating supply holds its output across its own two terminals and answers to nothing else. Neither terminal has a defined potential relative to the controller.

The fans run happily because their circuit never leaves the supply's own domain. The relay input does leave it, since the command starts at the controller, so the loop dies at the domain boundary. Your meter reads nothing there because only stray leakage relates the two negatives, and the meter's own 10 MΩ input pulls them together. The same missing common silences a drive run input on bigger panels; the loop is bigger, the fault is identical.

What do your three measurements prove?

All three readings are correct, and together they clear the controller, the relay supply and the signal wiring. The fault left standing is the missing reference conductor between the two supplies.

Probes Reading What it proves
Relay +V to relay -V 5 V The module supply is up and holding voltage under its load.
Controller 0 V to the spindle-CW signal, command on 5 V The controller's output driver switches, measured against its own reference.
Relay -V to the spindle-CW signal, command on 0 V The input loop never closes: no shared zero, no input current, no pull-in.

The third reading governs the relay, because the relay's input stage sits between that signal terminal and -V. Ranked by likelihood, the causes behind this signature are:

  • Missing common between two supplies, the cause in the great majority of these panels, and your dead reading is its fingerprint.
  • Input wired for the wrong trigger type: a module that triggers low sits silent even with the reference in place.
  • Output too weak for the input, so the voltage collapses under load once the loop closes.
  • A dead module input, last on the list, and the jumper test further down proves or clears it in one minute.

Where does the input current actually flow?

Around one loop: out of the controller's supply, through its output transistor, down the signal wire, through the module's input stage, out of the module common, and back to the negative of whichever supply owns the loop. Classic sinking-and-sourcing walkthroughs draw it the same way: start at the input terminal, pass through the sensing circuit, leave at the common terminal, land on the supply negative. Break any leg of that loop and the current stops. Your panel is missing the final leg.

The loop is small. A module input built as an optocoupler LED behind a 1.0 kΩ resistor draws about 4 mA at 5 V, and the loop still has to carry it. On most small modules the input common is the same -V terminal that feeds the coil. On modules with a separate input COM, the bond lands there instead.

Polarity rides on the same loop. A sourcing controller output feeds a high-trigger module, while a low-trigger module wants its common on the positive rail and its input pulled low, which needs an output that sinks. Wire to the trigger type printed on the module and the loop logic follows.

Do you fix it with chassis ground or a direct wire?

With a direct wire between the two negatives. Protective earth exists to clear faults on the AC side, it carries nothing in a signal loop, and a painted chassis screw is a poor stand-in for a conductor you can trace end to end. The code takes the same view of the earth as a current path: NEC 250.4(A)(5) names the effective ground-fault current path and leaves the earth out of it, and that path is about amps of fault current, not milliamps of signal. NEC 250.12 also requires paint, lacquer and enamel to be removed from threads and contact surfaces at grounding and bonding connections, which tells you what a bolt through a painted wall is worth as a conductor.

Change you were considering Effect on the missing reference
One wire, controller common to relay -V Closes the loop. This is the fix.
Chassis or PE stud as the common Adds painted joints and shares the path with fault and fan noise.
A different standalone 5 V supply Still floating; the dead reading comes back unchanged.
24 V-to-5 V converter off the main supply The reference usually arrives with it; measure after the swap.
A new relay module Switches nothing until the reference exists; test the old one first.

Whether the joined common should also bond to protective earth is a separate, one-point policy, and most industrial panels bond DC common to PE at a single stud. Bonding 0 V to ground in an enclosure with mixed supplies lays out that decision, and the practice of bonding DC commons in industrial panels goes deeper on it. Making the relay work needs neither answer; it needs the wire.

How do you wire the common, step by step?

Power down first, then run one 18 AWG [0.82 mm²] conductor from the controller terminal that gave you the working signal reading straight to the relay's -V. Confirm full voltage between input and -V before you close the box. One safety note before the steps: the SSR side switches line voltage to the router, so lock that supply out and prove it dead with a meter before touching anything on that side.

  1. Power down the 24 V control circuit and the relay supply; lock out the line-voltage feed to the SSR and prove it dead at its terminals.
  2. Identify the controller's signal common, marked 0 V or COM on most controllers. It is the terminal your meter used as reference for the working reading.
  3. Run the new conductor from that terminal to the module's -V (or input COM), dressed alongside the signal wire so the pair stays together.
  4. Leave the signal on the module input and the module's +V on the supply positive, exactly as wired today.
  5. Restore the low-voltage supplies, command the spindle on, and read between module input and -V. Expect 4.75-5.25 V on a healthy rail.
  6. Cycle the command ten times and watch the relay change state every time, the contact and not just the indicator LED.

Done right, the repair passes three checks: the input reads full voltage with the module connected, it falls to zero with the command off, and the rail holds with the fans running.

When is the relay itself the problem?

After the commons are tied, jumper the module's input to the module's own +V with the correct polarity. A healthy module pulls in from its own supply, and one that stays dead with full voltage across input and -V is the unit you replace. Do this with the reference wire already in place, or a good module will look bad.

Then run the numbers on drive capacity. Take an opto input built as an LED with a 1.2 V forward drop behind a 1.0 kΩ series resistor, a common module design:

I = (5 V − 1.2 V) / 1.0 kΩ = 3.8 mA

Controller transistor outputs are commonly rated from about 20 mA up, so that pairing fits with margin. A bare coil is the case that breaks it. A signal-relay coil drawing 70 mA on this rail works out to R = 5 V / 0.07 A ≈ 71 Ω, and a 20 mA output current-limits into it, sagging below the 3.5-4 V pickup typical of small coils. Drive the module, and let its contact switch the coil side or the SSR.

If the jumper test pulls the relay in but the controller still cannot, read the input under load. A healthy reading that collapses to 2 V with the module connected means the output cannot supply the input current, a drive-capacity problem wearing a grounding costume.

Should you replace the USB supply with a 24 V to 5 V converter?

Yes, one converter off the main 24 V rail is the cleaner build, and with a non-isolated buck the reference usually comes with it. The converter's negative connects internally to the 24 V negative that already feeds the controller. That holds when the controller runs from the same 24 V supply, the common case in a CNC-style box. Two measurements still follow the swap: full output from converter + to converter − with the fans running, and full signal from module input to −V with the command on.

An isolated DC-DC converter keeps its output floating, so it needs the same bonding wire the USB supply did. Isolation is a feature for splitting domains on purpose, never a fix for a missing reference. Size the converter for the real load: fans at, say, 0.5 A plus the module at 0.1 A leaves a 1 A unit loafing, which is good margin. The pattern of one power input feeding multiple devices inside an enclosure covers the distribution side of that build.

How do you keep a two-supply panel from doing this again?

Give the box one common point and land every DC negative on it. Use a short terminal strip or a small bus bar inside the enclosure, dress the signal and its return as a pair, and keep protective earth on its own bar. Every new device then earns the same two measurements before it is trusted: supply to its own negative, signal to the shared common. Keeping DC common, shield earth and protective earth on separate bars that meet at one point is how panel earth and shield earth as one grounding system with separate bars keeps loops quiet.

For where the supplies, duct and terminals sit on the plate, the backplate and DIN rail layout guide and CNC control box layout: power supply, heat, e-stop and cable routing do the planning. Working in a box that mixes low-voltage control with line voltage has its own rules, covered in mixed-voltage control panel safety for troubleshooting. When the terminal strip and the new wiring outgrow the box, size the next one with the enclosure selector; a custom build is delivered in 10 business days, counted from your approval of the drawing.

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

Will tying the two supply negatives together short anything out?

No. You join negative to negative, a point both supplies already call zero, not one rail's positive to another's. Each supply keeps regulating its own output across its own load. Make the bond at one point so the two supplies share exactly one zero node, which also keeps loop currents out of the signal wiring.

Why do the fans work from the same 5 V supply that fails to switch the relay?

The fans' whole circuit lives inside one domain: positive rail, fan motor, negative rail. The relay input circuit starts at the controller, crosses into that domain, and must return to the controller's zero, a loop two supplies wide. Until the negatives are joined, that loop is open at one leg, and the 4 mA it needs never flows.

Do I still need the common wire if the 5 V negative is already earthed?

Yes. Earthing one negative fixes its potential relative to the building; it does nothing for the relation between two DC rails unless both land on the same stud. Even then the signal return runs through joints you never designed for it. Run the direct conductor and measure: full voltage at the input with the command on settles it.

Can I drive the relay coil straight from the controller output?

Only if the coil's current fits the output's datasheet rating. A coil near 71 Ω needs about 70 mA, while transistor outputs commonly start around a 20 mA rating; the output current-limits and the terminal sags below the 3.5-4 V pickup. Keep the module in between, whose roughly 4 mA input fits comfortably, and let the contact do the heavy switching.

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

Related engineering answers

All articles

Buying guides

The guides behind this answer

All guides