Short answer: a motion controller and a VFD can share one enclosure. Keep 8 in [200 mm] between them, clamp the motor-cable shield 360° at both ends, and let nothing else draw from the controller's 5 V supply. Dropouts while the spindle runs are PWM noise coupling into your Ethernet and low-voltage wiring, not heat and rarely a bad controller. Work through the checks below in order; most machines come back within an afternoon. If the box is too small for the separation, split the drive into its own enclosure and bond both boxes to the same ground.
What each symptom points to
Match your failure to one of these patterns before you replace a single part.
- The link drops only while the spindle runs. That points at the motor cable: drive PWM edges coupling into whatever runs beside it. It is the most common pattern by a wide margin.
- The link drops at the instant a relay, coolant pump or solenoid switches. That points at a coil transient landing on a shared low-voltage rail.
- E-stop or limit faults appear with no motion. That points at unshielded input wiring beside the motor cable; 1 ms of input debounce swallows most induced spikes.
- The link drops with the drive enabled at 0 Hz. Switching noise is off, so look at supply rails, the Ethernet route and the PC end instead.
- The fault follows the computer, not the box. Laptop network adapters save power in ways a desktop does not; test from a desktop before you blame the enclosure.
Causes in order of likelihood
- No real shield termination on the motor leads. An unshielded cable, a shield cut at the motor end, or a long pigtail all let the edges through. A small drive switches at a carrier of 2 to 16 kHz, and every edge drives common-mode current into the shield, the motor frame and anything nearby.
- Signal and network wiring beside the motor cable. Coupling falls fast with spacing. A parallel run held 2 in [50 mm] away picks up what a run at 8 in [200 mm] mostly does not.
- The controller's 5 V rail doing other jobs. Relay coils, lamps or probe circuits on the controller's own supply drag the rail around and inject release spikes straight into the logic.
- An unfiltered 0-10 V speed command. The analog line runs controller to drive and returns through ground, so drive noise rides it straight back into the controller.
- The PC adapter. Energy-Efficient Ethernet (IEEE 802.3az) and similar adapter settings drop links a desktop holds; this is the cause that survives a perfectly clean enclosure.
How to check each cause
You need no oscilloscope; a ladder of substitution tests names the path. Run the steps in order and note when the fault appears.
- Jog only, spindle off, drive powered. Hours of clean running here point away from the box.
- Command a spindle speed. If the link now falls over within minutes, you have named the motor cable as the source.
- Feed the controller from a bench supply outside the box. Controller and supply on the bench, long Ethernet lead, machine wiring mostly disconnected. Dropouts that stop here point at the enclosure side.
- Reroute the Ethernet lead. Lay it across the shop floor, away from the motor cable, with no other change. A fault that stops names the routing.
- Swap the computer. Same controller, same cables, desktop PC instead of the laptop. A fault that vanishes names the adapter, not the box.
Check the shield while you are in there. A DMM reads under 1 Ω from the drive's protective earth (PE) terminal to the motor frame on a healthy cable. Inspect each clamp; a screw-through pigtail longer than 1 in [25 mm] is a shield in name only.
Heat gets one check while the covers are off. If you cannot hold a palm on the controller's case for 5 s, measure the temperature and compare it with the datasheet. The worked example below puts numbers on that check.
The fix, in order
| Rule | Value |
|---|---|
| Drive-to-controller air gap | 8 in [200 mm] minimum |
| Parallel signal run to motor cable | 12 in [300 mm] |
| Signal-to-motor-cable crossing | 90° |
| Shield termination | 360° clamp, both ends |
| Longest acceptable pigtail | under 1 in [25 mm] |
| Analog input filter | 100 Ω series, 1 µF to analog ground (1.6 kHz) |
- Terminate the shield both ends, 360°. Use shielded motor cable and clamp the shield full-circle to the drive's PE bar and to the motor's junction box, on bare metal. NEC 250.12 requires paint, lacquer and enamel off the contact surfaces at grounding and bonding connections, so strip the landing area under each clamp; the grounding and bonding guide covers those surfaces. Cable makers' termination notes state the same two rules: shield at both ends, large-surface clamps. The guide to one-end versus both-end shield grounding explains why drives differ from instrumentation shields. How the cable physically enters the box is its own decision; the VFD motor cable entry article compares the connector and conduit routes.
- Separate the routes. Keep 8 in [200 mm] between drive and controller, and 12 in [300 mm] where a signal run must travel parallel to the motor cable. Cross paths at 90° when they must meet. Exit the motor leads from the cutout nearest the drive and the network lead from one on the far side; the controller enclosure cable entry article shows how to plan that, and the USB and ethernet waterproofing piece covers sealing the port side. The servo-drive and computer wiring separation article works the same split at bigger scale.
- Clean the low-voltage supply. The controller's 5 V rail powers the controller and nothing else. Move relay and pump coils onto the 24 V rail and fit a flyback diode across each coil; the diode clamps the release spike to about 1 V above the rail. Route limit and probe leads with the low-voltage bundle, away from the motor cable, and set 1 ms of input debounce. If several loads share one switching supply, the supply-noise article explains the coupling paths.
- Filter the analog command. Fit 100 Ω in series with a 0-10 V command and 1 µF from the drive's analog input to its analog ground, at the drive end. The corner sits at f = 1/(2πRC) = 1/(2π × 100 Ω × 0.000001 F) ≈ 1.6 kHz. A speed command moves over tens of milliseconds, so the filter costs you nothing, and a 100 kHz edge is cut about 60-fold (100 kHz ÷ 1.6 kHz). Where the drive offers 4-20 mA, take it; a current loop shrugs off the ground noise that ruins 0-10 V.
- Add a ferrite to the Ethernet lead. Two turns through a clip-on ferrite roughly quadruple the choke impedance, because inductance rises with the square of the turns. Treat this as the final polish once the shield and routing are right.
- Set the PC side. Switch off Energy-Efficient Ethernet and any green-ethernet option on the adapter. On Windows, the multimedia profile's NetworkThrottlingIndex setting throttles packet processing while media runs; the documented fix sets it to 0xFFFFFFFF, which disables the throttle. Keep the link wired and direct.
A worked layout, with numbers
Take a bench CNC router: one 2.2 kW (3 hp) 230 V spindle drive, an Ethernet motion controller and 24 V I/O, all in a single stainless box 20 x 16 x 8 in (508 x 406 x 203 mm).
Separation. Give the drive the lower left of the backplate, an 8 x 8 in zone, and the controller the upper right, a 6 x 8 in zone. The zone centers sit at (4, 4) and (15, 13) inches from the corner, so their distance is √(11² + 9²) = √202 ≈ 14 in. That clears the 8 in [200 mm] minimum with room to spare. The motor cable leaves through a cutout 3 in from the drive terminals; the network lead leaves at the top edge, and the two paths cross once, at 90°.
Heat. Drive losses run 2-3 % of rating, so 44-66 W; take 55 W. The box surface is 2 × (20×16 + 16×8 + 20×8) = 1,216 in² = 0.78 m². Stainless walls pass heat at k = 3.7 W/m²K, so the rise is 55 W ÷ (3.7 W/m²K × 0.78 m²) ≈ 19 K. At a 30 °C shop the walls settle near 49 °C. Typical controller datasheets allow 0 to 55 °C, so the layout holds a 6 K margin. It still sits over the 40 °C (104 °F) figure to use before reading the datasheet. At a 40 °C summer shop the same box reaches 59 °C and fails. Go up one size or add airflow there; the VFD enclosure sizing article carries the full method.
Everything above passes: 14 in of separation, one 90° crossing, shield clamped at both ends, a dedicated 5 V rail, walls under the datasheet limit at 30 °C.
Stop it coming back
- Put the terminations on your drawing. Order each cutout sized to its EMC gland and note the bare-metal landing areas; the cutout, gland and window guide shows what to dimension. Match gland ratings to the enclosure: a gland rated below the box pulls the whole assembly down to that gland's rating.
- Label the 5 V rail controller-only. Land nothing else on those terminals for the life of the machine.
- Rerun the substitution ladder after any rewiring. Half an hour of cutting at speed proves the fix before you call the job done.
When to split the enclosure
Split the box when the backplate cannot hold 8 in [200 mm] of separation plus a 90° crossing, or when the drive is genuinely large. Drive makers' selection guides put machines above roughly 200 hp (150 kW) in enclosures of their own with dedicated cooling; a 2.2 kW spindle drive does not ask for that. Two enclosures, one for the drive and one for the controls, work well when both bond to the same equipment grounding conductor; the grounding and bonding guide covers that path.
For the hardware, a 304 stainless box suits most shops and washdown areas, and 316L earns its keep near salt, brine or chlorides. Our wall-mount enclosures are rated NEMA 4X / IP66 by the manufacturer; they are not UL listed. You set the material, the size and every cutout, so gland positions and clearances land where this layout needs them. Delivery is 10 business days from drawing approval, anywhere in the world. Start at the stainless enclosure size finder or send your layout to the custom enclosure builder.
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 |
|---|---|---|---|
| 20 × 16 × 8 in | 304 stainless | 20 x 16 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 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 |
Questions
Can a motion controller and a VFD share one enclosure?
Yes. Keep 8 in [200 mm] between drive and controller, run the motor leads in shielded cable clamped 360° at both ends, cross signal paths over the motor cable at 90°, and keep the 5 V rail dedicated. Drive makers put machines above roughly 200 hp (150 kW) in enclosures of their own with dedicated cooling; a 2.2 kW spindle drive shares a box happily when those rules hold.
How much separation does the controller need from the drive?
Plan on 8 in [200 mm] of air between the drive's terminals and the controller, and 12 in [300 mm] where a signal run must travel parallel to the motor cable. Both are panel-layout rules of thumb for coupling at PWM edge frequencies. Doubling them costs nothing on a backplate you are laying out anyway.
Why does the Ethernet link drop only while the spindle runs?
The noise source switches on with the spindle. Motor leads carry PWM edges at a 2 to 16 kHz carrier, and each edge drives common-mode current down the shield and into nearby wiring. The telling test: with the drive enabled at 0 Hz the machine runs clean for hours, and the link starts dropping within minutes of commanding a speed. That pattern names the motor cable.
Does an Ethernet ferrite fix the dropouts?
A clip-on ferrite is the last step, not the first. Two turns through the ring roughly quadruple the choke impedance, because inductance scales with the square of the turns. It trims megahertz hash on the Ethernet lead but does nothing for a shield cut at the motor end or a 2 in [50 mm] parallel run. Fix the shield and the routing first, then try the ferrite.





