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

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

CNC spindle speed control with a VFD: signals and scaling

Wire the CNC's analog speed line to the drive scaled 10 V × (S ÷ full-scale S): at 3000 rpm full scale, S1500 commands 5.00 V and 30 Hz. Add a 24 V DC direction contact and at-speed and zero-speed relay handshake so the program holds until the spindle is within ±2 Hz. Run the pair as shielded twisted pair through its own gland, at least 6 in [150 mm] from drive power wiring.

NEMA4 Enclosure engineering team · Published November 12, 2026 · 7 min read

Short answer: drive the spindle from the VFD's 0-10 V analog input, scaled as 10 V × (S ÷ full-scale S). Add a 24 V DC direction contact, and wire the drive's at-speed and zero-speed relays back to the CNC so the program waits for the spindle. Keep the analog pair as shielded twisted pair through its own gland. Hold it at least 6 in [150 mm] clear of the drive's power terminals and motor cable. On an older belt-stepped machine this is a wiring and scaling job, and the enclosure work is modest: one sealed penetration for the signal pair and room for the roughly 100 W a 5 hp drive sheds. The steps below take you from a meter check at the CNC's analog output to the first programmed cut at speed.

The four signals between CNC and drive

A retrofit needs four signals, and you can confirm the CNC offers them before you order anything. Command an S value with the belt disengaged and put a meter between the analog output and its signal common. At 25% of full-scale S you should read 2.50 V on a 0-10 V output. If the voltage swings negative for reverse, you have a bipolar output and the separate direction contact is unnecessary.

Signal From To Typical form Job
Speed command CNC analog output Drive analog input 0-10 V analog, full span = top speed (or bipolar, sign = direction) Sets output frequency
Direction CNC M-code relay Drive digital input 24 V DC contact Forward and reverse without switching power
At-speed Drive relay output CNC wait input Dry contact Holds the program until the spindle reaches the window
Zero-speed Drive relay output CNC input Dry contact Gates tool changes and gear shifts

The two relays come built into most general-purpose drives and get assigned by parameter to speed-arrival and zero-speed. If the run from CNC to drive exceeds about 25 ft [8 m] and the drive offers a 4-20 mA input, use the current loop. It shrugs off induced noise better than a voltage signal, because the receiver measures current rather than voltage. Keep signals on one side of the backplate and power on the other, the way the backplate and DIN rail layout guide arranges a panel.

Scale the command so S means rpm

Set the drive so the full analog span equals maximum output frequency (60 Hz on a standard machine). Set the CNC's full-scale S to the spindle speed at 60 Hz. Every programmed S word then maps linearly as 10 V × (S ÷ full-scale S).

Example machine: a 2-pole motor at 3600 rpm on 60 Hz, a 1.2:1 belt to the spindle, so 60 Hz gives 3000 rpm at the spindle. Full-scale S is 3000, and the program calls S1500:

  • Command: 10 V × (1500 ÷ 3000) = 5.00 V
  • Frequency: 60 Hz × (5.00 V ÷ 10 V) = 30 Hz
  • Spindle: 3600 rpm × (30 Hz ÷ 60 Hz) ÷ 1.2 = 1500 rpm

If you move the belt to another range, rpm per volt changes. Set full-scale S to that range's top speed and recheck the first cut with a tach. If either device applies an offset, an inversion or a non-linear curve, fix the configuration before running the spindle; the S word must land on the tach.

Size the box for the drive's heat

A drive sheds about 2-3% of the power passing through it. A 5 hp (3.7 kW) spindle drive at full load dissipates roughly 90-110 W, so call it 100 W for the box calculation. In a 20 × 16 × 8 in stainless wall-mount box, the four walls plus the top give about 0.70 m² of surface, and stainless transfers heat at 3.7 W/m²K:

100 W ÷ (3.7 W/m²K × 0.70 m²) = a 39 K rise.

At a 25 C shop ambient, the air at the drive sits near 64 C, past the 40 C (104 F) ambient most drives carry. Add a filtered fan: 24 CFM is 0.0113 m³/s, and moving air carries heat at 1.2 kg/m³ × 1005 J/kgK per m³/s:

100 W ÷ (1.2 kg/m³ × 1005 J/kgK × 0.0113 m³/s) = a 7 K rise,

which holds the box near 32 C. Use a fan-filter unit rated to the enclosure, because the weakest opening sets the rating of the whole assembly. The enclosure sizing guide carries the same heat method for bigger loads and larger panels.

Wire it step by step

  1. Confirm the CNC interface: command S750 (25% of a 3000 full scale) and read 2.50 V at the analog output. Note whether the voltage goes negative for reverse.
  2. Assign the drive I/O by parameter: analog voltage in as the speed source with the full span = 60 Hz, digital inputs for run, direction and enable, and the two relays set to speed-arrival and zero-speed.
  3. Mount the drive low on the backplate with its datasheet clearances above and below (typically 3-4 in [75-100 mm] for airflow). Put power terminals on the supply side and the signal duct on the other side, as in the DIN rail and backplate layout guide.
  4. Feed the drive from the rotary converter sized to the drive's input current, or feed it single-phase at about twice the motor's full-load amps, the usual derate for single-phase input. Bond the drive's earth terminal to the enclosure ground bar; the grounding and bonding guide shows why the earth itself is not a fault-current path.
  5. Run the speed command as shielded twisted pair, 18 AWG, through its own gland. Drain the shield to the ground bar at the drive end and tape the far end. Hold 6 in [150 mm] of air gap from any power wiring, and cross at 90 degrees where paths must meet. Resistance is a non-issue: 25 ft of 18 AWG round trip is 0.32 Ω, about 0.003% of a typical 10 kΩ input.
  6. Wire direction and the two handshake contacts on 24 V DC. Both are low-voltage signal cables, which is exactly when two cables can share one gland. Switch direction through the drive's digital input; a reversing contactor ahead of the drive fights the output stage. Keep the bundle clear of the motor cable.
  7. Run the motor cable in its own gland, shielded, with the shield bonded 360 degrees at the drive and at the motor connection box. The VFD output cable is the loudest wire in the panel, so give it its own path from end to end.
  8. Land the machine e-stop chain on the drive's enable/stop digital input so a stop ramps the output down. Before you open the box again, lock out, wait the drive's stated discharge time, and confirm the DC bus reads zero with a meter: drives hold a charge after power-off.
  9. Enter the scaling: drive full span = 60 Hz, CNC full-scale S = 3000, speed-arrival window ±2 Hz (±100 rpm at 50 rpm per Hz on this machine), zero-speed at about 1 Hz.
  10. Commission by tach at S750, S1500 and S3000, then test M3/M4 and the program wait with the belt engaged.

Checks before the first programmed cut

  • Tach at S1500 reads within ±30 rpm (2%) of command; a couple of percent low under cut load is motor slip, not a scaling error.
  • S3000 shows 60 Hz on the drive display, and the speed-arrival relay closes inside the ±2 Hz window.
  • M4 reverses the spindle with the analog voltage unchanged.
  • At spindle stop, the zero-speed relay opens below about 1 Hz (about 50 rpm) before you allow a tool change.
  • After 30 min at full load with the door shut, inside air sits near 32 C with the 24 CFM fan running in a 25 C shop.
  • Every gland is clamped on its cable and every opening is sealed.

Mistakes that cost the rating

The retrofit usually ends with new penetrations, and that is where sealed boxes lose their rating:

  • Field-drilled gland holes leave burrs and swarf inside and an edge the gland cannot seat on. Order the holes with the box through the cutout designer; the gland and cutout guide covers sizing each hole to the gland's panel diameter and the cable OD.
  • A gland outside its clamping range, whether the cable is too narrow or the hole oversized, is the most common leak path in a washed or hosed panel.
  • An unused knockout without its blanking plug, or an open louver added for cooling, drops the whole enclosure to that part's rating.
  • The rating on our 304 and 316L boxes is a manufacturer rating, NEMA 4X / IP66, not UL listed, and it holds while every penetration stays sealed.

For a shop with coolant mist and washdown, the stainless box is the right call. In a dry toolroom corner, a painted steel box does the job at Type 1.

What to put on the order

Send the gland schedule with each cable's OD and the layout with the quote. The cutout designer lays holes, glands and operators on any face and checks spacing on catalog and custom sizes alike. A 304 stainless wall-mount body suits most shops; 316L buys margin where coolant is chloride-heavy, and custom stainless enclosures with factory cutouts start from your drawing. Custom width, height and depth go through the 3D enclosure builder, and every box is delivered in 10 business days, anywhere in the world: counted from your order, or from your approval of the drawing on custom work. Orders run through the Industrial Monitor Direct checkout.

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
20 × 16 × 8 in304 stainless20 x 16 x 8 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
60 × 36 × 16 in304 stainless60 x 36 x 16 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
48 × 36 × 16 in304 stainless48 x 36 x 16 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
60 × 36 × 12 in304 stainless60 x 36 x 12 inRated NEMA 4X / IP66 by the manufacturer; not UL listed

Questions

Can a 0-10 V output reverse the spindle?

Not by itself: 0 V is zero speed and full span is top speed, so the sign carries no information. Reversal comes from a discrete direction input the CNC's M-code relay switches on 24 V DC, or from a bipolar ± output where a negative voltage reverses. With only a single unipolar line and no direction contact, an M4 program has nothing to act on and the spindle runs one way.

How accurate is a 0-10 V spindle speed command?

Plan on the spindle within 2% of command: a 10-bit CNC output resolves about 10 mV steps, 0.1% of span, and a drive analog input tracks to about 1%. At S1500 with 3000 rpm full scale that is ±30 rpm. Check with a tach at S750, S1500 and S3000, and expect a couple of percent more drop under cut load from motor slip.

Can the drive run on single-phase so the rotary converter goes away?

Usually, yes. Most general-purpose drives accept single-phase input when derated to about twice the motor's full-load amps, so a 5 hp (3.7 kW) spindle motor lands on a 10 hp drive frame. Keeping the converter also works, because a drive rectifies to a DC bus; size the converter for the drive's input current and expect slightly higher bus ripple.

Which enclosure suits a VFD retrofit on a shop CNC?

For coolant mist, washdown or swarf, a 304 stainless wall-mount box rated NEMA 4X / IP66 by the manufacturer; not UL listed. Go 316L where coolant is chloride-heavy, because chloride deposits pit 304 even at room temperature and hot zones near 60 C (140 F) stress both grades. Budget the drive's heat too: about 100 W for a 5 hp motor, held to a 7 K rise with a rated fan-filter.

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 from the plant-floor PLC cabinet buildRequest a custom quote

NEMA 4X enclosures: sizes for this job

Keep reading

More on layout and installation

All articles

Buying guides

The guides behind this answer

All guides