Troubleshooting
Why a CNC spindle relay cycles: software command or contactor noise
Short answer
Watch the control software's diagnostics screen while the contactor slams. If the spindle output stays steady, the fault is downstream: induced noise from the spindle conductors, a coil or economizer problem, or a contact running past its rating. If the output flickers too, fix the control side first.

On this page
Before you replace a board or a relay, split the software command from the electrical event. Put the machine in the state where the fault shows and watch the control software's diagnostics screen while the contactor slams. If the spindle output on the screen stays solid while the relay drops out, the control never lost the command and the fault is downstream: induced noise from the spindle conductors, a coil-side connection or economizer problem, or a control contact carrying more than its documented rating. If the on-screen output blinks along with the contactor, the fault is upstream in the control: the command wiring, the interface board's input, or the software's input filtering. Both branches end in a decision at the bottom of this article.
Run the split test before replacing anything #
Watch two indicators at the same time: the spindle output state on the diagnostics screen and the physical relay or contactor. One benchtop mill with this symptom cycled only after a 5–10 minute warm-up and only while a program ran, so reproduce that state instead of testing from a bench supply; a fault that needs heat or vibration hides from a cold test.
Read the result one of three ways:
- The on-screen output flickers when the relay drops: the control side is at fault. Work through the command wiring from the software's output to the interface board, then the board's input circuit, then the software's input debounce setting (the pulse filter on its inputs), then the software version itself.
- The on-screen output stays solid while the contactor slams: the control never changed state. Move to the downstream checks below, in order.
- A relay board with its own status LEDs is a second witness: an LED that stays lit while the contactor drops puts the fault between the LED's contact and the coil.
The debounce setting only touches the first branch. Raising it cannot fix a downstream fault, and skipping the split test is how that setting gets blamed twice.
What to check downstream, in order #
De-energize, lock out and test for absence of voltage first — the NFPA 70E, 2024 edition, routine for any work that opens the cabinet — then re-energize only for the two checks that need the fault running: watching the diagnostics screen and holding a meter on the coil terminals. Confirm the PPE details with your arc-flash study and the machine's documentation.
- Terminals first. Re-torque every terminal in the coil circuit — board output, interposing relay, contactor coil. A connection that opens for a few milliseconds under vibration drops a seated contactor, and a voltage reading taken at rest looks perfectly normal. Any contact wired into that coil circuit follows the pattern described in wiring overload relay contacts to the coil and the PLC.
- Measure the coil voltage during the slam, not before it. A contactor releases when the coil voltage decays past its release point, well above zero, so a partial collapse that a resting meter never shows is enough to drop it. Hold or clamp a meter on the coil terminals while the fault runs.
- Look for an economy stage on the coil. Larger DC coils and some AC control circuits feed through an economy resistor or economizer that switches in once the armature seats; when that resistor or its switching contact fails, the coil loses its holding supply the moment the contactor closes and the contactor chatters — a failure mode reported in contactor-chattering field cases, where the coil is said to "cut its own throat" as soon as it pulls in.
- Trace the induced-noise path: control wiring running parallel with the spindle conductors, drain wires left ungrounded, and signal and coil wiring sharing one loose multiconductor cable.
- Check the contact rating with the arithmetic in the next section. The control relay switches only the contactor coil — spindle current never passes through it — and both coil currents must fit the contact's rating.
Separate the control wiring from the spindle conductors #
NFPA 70 (the National Electrical Code), 2023 edition, Article 725.136 keeps Class 2 control conductors — the low-voltage signal and relay wiring a PC-based CNC control uses — out of any raceway, cable, cable tray or enclosure shared with power or Class 1 conductors unless a grounded metal barrier or another method that Article lists separates them. Inside the cabinet, run the low-voltage control wiring at least 50 mm (2 in.) from the 240 V spindle conductors, cross at right angles where a crossing is unavoidable, and put a grounded steel barrier between them where distance is impossible. Bond each cable shield to ground at the control end; an ungrounded drain wire is an antenna, not a shield. One reported machine kept about an inch of separation from its power and lighting conductors and still cycled — that little distance, on parallel runs, buys almost nothing. Confirm the exact requirement with your local authority having jurisdiction and the machine's documentation.
Compare the relay contact rating with the contactor coil #
Two datasheets settle it: the contactor's coil table, which lists inrush and sealed (holding) values, and the interface relay's contact rating. Coil current is coil VA divided by coil voltage, and the AC coil's inrush is always the larger number because the armature is open when it pulls in.
Worked example — every input here is an example; read your own datasheets for the real ones. Contactor coil: 240 V AC, 50/60 Hz, coil table listing 70 VA inrush and 7 VA sealed. Interface relay contacts: 6 A at 240 V AC. Inrush current = 70 VA ÷ 240 V = 0.29 A. Sealed current = 7 VA ÷ 240 V = 0.03 A. Both sit far inside 6 A, so on these example numbers the contact is not the constraint and the cycling has to be noise or coil-side.
Three things move that result. First, relay datasheets often publish only a resistive rating, and an inductive coil load earns a lower allowed current — the same resistive-versus-inductive distinction explained in what a contactor's AC-1 rating means for a single-phase load — so use the inductive column when the datasheet has one. Second, a sealed current of 0.03 A is dry-contact territory where contact films matter, the same territory described in why a motor starter feedback signal stays off with low current. Third, if the arithmetic lands outside the rating, stop switching the coil through that board: add an interposing relay whose documented contact rating covers the coil inrush.
The reported case, and the decision #
Reported, for calibration only: a benchtop mill ran accurately for a year, then the spindle relays and contactors began slamming on and off during programs, after a 5–10 minute warm-up. Board voltages read normal, and moving the control wiring about an inch from the power wiring changed nothing. The machine ran clean for two hours only after three changes made together — the control software was reinstalled with its latest update, the input debounce value was raised, and the control wiring was rerouted farther from the spindle conductors. No change was tested alone, so that result proves the combined remedy and does not isolate a root cause.
The decision, case by case:
- On-screen output flickers with the contactor: fix the control side. Command wiring and the interface board's input first, then the debounce setting and the software version — one change per test.
- On-screen output solid while the contactor slams: fix downstream. Apply the 50 mm (2 in.) separation, right-angle crossings, grounded shields and a barrier where needed; measure the coil voltage during the event; check the economy stage; run the rating arithmetic from the two datasheets.
- Rating arithmetic outside the contact's limits: an interposing relay between board and coil, sized from the datasheets — never spindle current through the board.
Log every change and test it alone. A fix that lands after five simultaneous edits proves only the last one you would have made anyway.
Questions asked
The diagnostics screen keeps showing the spindle output on, but the contactor still drops out. Where do I look first?
Downstream. The control never changed state, so work through the coil circuit: re-torque every terminal, measure the coil voltage while the fault is happening, check whether the coil has an economy resistor or economizer stage that fails when the armature seats, trace control wiring that runs parallel with the power conductors, and compare the coil's inrush and sealed currents against the relay contact rating. Fix the wiring separation and the rating question before swapping boards.
How far should low-voltage control wiring stay from the spindle power conductors?
Work to 50 mm (2 in.) of air separation on parallel runs, cross at right angles when a crossing is unavoidable, and use a grounded metal barrier where the cabinet leaves no distance. NFPA 70, the National Electrical Code, 2023 edition, Article 725.136, bars Class 2 control conductors from sharing a raceway, cable, cable tray or enclosure with power conductors unless a grounded barrier or another listed method separates them. Bond each shield at the control end, and confirm the exact requirement with your authority having jurisdiction.
How do I check whether the control board's relay can switch my contactor coil?
Divide the coil VA by the coil voltage and compare both results with the contact rating. For example, a coil table listing 70 VA inrush and 7 VA sealed at 240 V, 50/60 Hz gives 70 ÷ 240 = 0.29 A and 7 ÷ 240 = 0.03 A; against a 6 A contact both fit easily. Use the datasheet's inductive rating if it lists one, because a resistive-only figure overstates what the contact carries into a coil.
One reported fix raised the input debounce value from 500 to 4000. Should I copy that?
Not blindly. That machine also had its control software reinstalled and updated and its control wiring rerouted farther from the power conductors in the same session, and two hours of clean running followed — but no change was tested alone. Raise the debounce value only when the split test shows the on-screen spindle output flickering with the contactor, and change one setting at a time so you know which change actually worked.


