Short answer: put the transformer and the power supply on the bottom row of the backplate, keep every signal bundle 4 in [100 mm] from AC line and motor wiring, and put the e-stop at the machine, where you stand while it cuts. Heat decides this layout before anything else does. A 24 V, 150 W supply loses about 15 W at full output, and a sealed 20 x 16 x 8 in stainless wall-mount box sheds that heat through 0.578 m² of wall with a 7 C rise inside, so the box holds sealed with no fan and no dust opening. Work the heat math first; the rest of the placement follows from it.
What you need
Everything on this list goes on the drawing before any metal is cut, because each item moves a component or a hole:
- A backplate drawing at full scale, or your size and cutouts already laid out in the 3D enclosure builder
- One heat figure per part: the supply's efficiency from its datasheet, the transformer's VA rating, each drive's loss at your motor current
- A cable schedule: what enters the box, from where, and each cable's outside diameter for the gland schedule
- The spot at the machine where you stand during a cut, measured to the floor
Then work the steps below. The numbers come from that parts list, not from habit.
Lay out the backplate in eight steps
-
Mark the heat sources first and write one watt figure beside each: 15 W for the supply at full load, 2.5-7.5 W for a 250 VA transformer (dry-type transformers lose about 1-3% of their rating), and each drive's datasheet loss at your motor current. The transformer heat and layout article shows how those watts land on the plate.
-
Sit the transformer and the supply on the bottom row, fins upright, with the airflow clearance their datasheets call for. The bottom of the box holds the coolest air, and heavy parts low keep the plate steady on the wall.
-
Put the drives in a row above with 1 in [25 mm] of bare backplate between cases, so the rising air washes each one. The component layout article for sealed boxes covers the stacking order.
-
Run signal wiring in duct down one side of the plate and AC line and motor wiring down the other. Hold the bundles 4 in [100 mm] apart for the whole run, and cross them at right angles where a crossing is unavoidable. Keep duct fill at or under 50% of the duct's cross-section, the cap the wire-duct fill tables use (they cite NFPA 79 section 13.5.2); the backplate and DIN rail layout guide works the fill out in full.
-
Keep 20-30% of the rail and duct spare for the relays, filters and fuses you will add in year two. The CNC enclosure sizing article budgets that spare room.
-
Draw every gland on the same drawing, each sized to its cable's outside diameter, entering the bottom face or a lower side face. The cutout designer checks the spacing and exports the plate layout with the quote request.
-
Put the e-stop mushroom at the operator position on the machine, its center about 4 ft [1.2 m] above the floor. A red pilot on the enclosure front is a convenience, not the stop itself.
-
Bond the door and the backplate to the main ground stud. The door bonding article sizes the jumper and its test.
Sizing the wall for a 150 W supply in a 20 x 16 x 8 in box at 32 C shop air
The inputs, with their sources:
- Heat to shed: 15 W. The method comes from the supply datasheet: loss equals input power minus output power. Assume 91% efficiency at full output — a worked assumption, and the number to read off your unit's datasheet before you trust the result: loss = 150 × (1/0.91 - 1) = 150 × 0.0989 = 14.8 W. At half load it drops to about 7 W.
- Wall conductance: k = 3.7 W/m² of wall per C, the value this site's heat guides use for stainless. Conductive cooling through the wall explains the model.
- Limits: drives and most electronics take 40 C ambient. The example shop peaks at 32 C on a summer afternoon, so the allowed rise is 8 C.
- The box: 20 x 16 x 8 in stainless, wall-mounted, back flat against the wall.
The rule in words: a sealed box in still air rises by the heat fed in, divided by wall conductance times exposed wall area — rise = P / (k × A). Turned around, the area that holds a given rise is A = P / (k × rise).
The arithmetic: A = 15 / (3.7 × 8) = 15 / 29.6 = 0.51 m² of exposed stainless wall. The box offers front 20 × 16 = 320 in², sides 2 × (16 × 8) = 256 in², and top and bottom 2 × (20 × 8) = 320 in², so 896 in² × 0.000645 m²/in² = 0.578 m² with the back excluded. That clears the 0.51 m² needed.
Run it the other way to see the rise. Wall conductance is k × A = 3.7 × 0.578 = 2.14 W per C. The rise is 15 / 2.14 = 7.0 C, putting the inside at 32 + 7 = 39 C — under the 40 C limit with a degree to spare.
The decision: this box holds sealed up to 2.14 × 8 = 17.1 W of internal heat. Add the 250 VA transformer at its worst 3% loss, 7.5 W, and the total is 22.5 W. The rise becomes 22.5 / 2.14 = 10.5 C, so the inside sits at 42.5 C and the layout fails. Past 17 W you need a bigger wall, a lower heat load, a filter fan or a sealed heat exchanger. Each 1 C hotter shop cuts the heat the box holds by 2.1 W — that is k × A again. The 91% efficiency and the 32 C shop are the two assumptions you replace with your own figures; everything else is geometry.
Fan or no fan: the dust decision
A fan fixes heat and opens the box at the same time, so the choice is about the rating. A fan-filter kit carries its own rating, and the weakest part sets the assembly's rating: a filtered fan on a Type 4X box leaves the whole assembly rated at the kit's figure, not the box's. Read that figure on the kit's datasheet before you promise anyone a Type.
Positive pressure is the arrangement that keeps dust down. The fan pushes filtered air in, and the box leaks outward at the door seam instead of drawing dusty air inward. Wash the mesh on a schedule; a clogged filter chokes the airflow long before it looks dirty.
The decision, case by case:
- Dry bench shop, no washdown, no hose: fit a filter fan on positive pressure and give the assembly the kit's rating. The fan, air conditioner and heat exchanger comparison lays out where each option wins, and the fan placement article puts the inlet low and the outlet high.
- Coolant mist, washdown or outdoor duty: keep the box sealed at Type 4X and move the heat through the wall as the worked example does, or fit a sealed air-to-air heat exchanger. The 17 W line from the example tells you which side your box sits on.
- An internal stir fan with no cutout changes nothing about the rating. It evens out hot spots in a sealed box; where internal fans send the heat explains what it can and cannot move.
Where the e-stop goes and what it kills
NFPA 79 requires industrial machinery to carry an emergency stop that removes the hazardous motion and sits within reach of every operator station. The machine-safety standards it aligns with fix the hardware too: red mushroom head on a yellow background, latching, and resetting it never restarts the machine — restart takes a separate start command.
Mount it where you stand during a cut, mushroom center about 4 ft [1.2 m] above the floor, inside the 0.6-1.7 m standing-reach band the ergonomic guides use. A panel on the wall 10 ft away is not an operator station; if the enclosure sits that far off, the mushroom rides the machine.
Give the mushroom two normally closed contact blocks and split the job. Block one drops the coil of the contactor feeding the router, so spindle power dies in hardware with no PC in the path. Size the contactor for the router; the block carries only coil current. Block two opens the drive-enable line, so the controller stops sending steps while the drives stay powered and enabled. The steppers then hold torque and a vertical axis does not drop. Cutting drive power on an e-stop is the classic stepper mistake: released motors, a falling head, a ruined part.
Treat a software stop through the PC as a convenience layer; the two hardware contacts do the stopping alone. If your build gates every load through the PC's own supply, the shutdown logic changes, and that rackmount CNC box build with the PC supply gating everything walks the architecture.
Prove the chain at first power-up: spindle dead, axes holding, twist-release resets, and nothing moves until start is pressed again. The fuse sizing and the contactor wiring live in the CNC enclosure wiring article; keep it open beside this one.
Routing signal, AC and motor cable
Inside the box, short signal hops need no shield; the 4 in [100 mm] separation and the right-angle crossings from step 4 do that work. Shield belongs on the run from drive to motor: continuous over the full length, landed on the panel ground stud at the drive end, clamped 360 degrees around where the gland allows it. For what a switching supply's edges do to the wiring around it, the switching-supply noise article gives the mechanism and the layout fixes.
Keep the router's mains run out of the box when the mounting allows: control wiring in, power direct to the contactor. When it must pass through, give it its own gland, route it low along the AC side, and keep the run short. A long router line draped past the signal duct undoes the separation you built in step 4.
Bond the ground path for real. NEC 250.12 requires paint, lacquer and enamel removed from threads and contact surfaces at grounding and bonding connections, so every ground stud sits on bare metal. The trap is a coated washer or an anodized spacer under the lug. The grounding and bonding guide covers conductor sizing and the fault path.
Checks before the plate goes to the drill
- Every heat source carries a watt figure on the drawing, and you have run the rise math once with your own efficiency and shop temperatures
- Signal and power bundles hold 4 in [100 mm] end to end, and every crossing sits at 90 degrees
- Duct fill is at or under 50%, and 20-30% of rail and duct is spare
- Every hole is on the drawing, with glands matched to cable outside diameters
- The commissioning list includes the e-stop test: spindle off, axes holding, no restart on reset
Mistakes that cost the rating
- A fan cutout with an unrated kit turns a Type 4X box into whatever the kit is; the weakest part sets the rating, and it is rarely the box
- A field-cut hole with the burr left under the gasket lip leaks at the first hose-down; holes belong on the drawing, deburred and dressed before the gasket goes on
- A gland whose sealing ring sits outside its cable clamping range leaks the same way; match the gland to the cable's outside diameter
- A ground lug on a coated surface adds resistance to the fault path; bare metal under every lug
What goes on the order
- Material: 304 stainless for a dry bench shop; 316L where coolant mist, washdown or salt air reaches the box, because 304 pits under chloride deposits even at room temperature and water-based coolant dries to a chloride-bearing film
- Rating: the sealed route from the worked example is a Type 4X box, rated NEMA 4X / IP66 by the manufacturer; not UL listed — a specification that demands a listing needs that settled before the order
- Size: from your backplate drawing with the spare space included; custom builds run from a single piece, and the 20 x 16 x 8 in class of the worked example is where most bench rigs land
- Cutouts: every gland, the fan position if you fit one, and any display opening, all on the drawing before the order
- Delivery: 10 business days from your approval of the drawing, shipped anywhere in the world; start from custom stainless enclosures and send the exported layout with the quote request
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 |
| 16 × 12 × 8 in | 304 stainless | 16 x 12 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 24 × 20 × 8 in | 304 stainless | 24 x 20 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 30 × 24 × 10 in | 304 stainless | 30 x 24 x 10 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
Questions
How much heat does a 24 V, 150 W power supply add inside the box?
About 15 W at full output: 150 × (1/0.91 - 1) = 14.8 W at the 91% efficiency the datasheet states. Rerun that line with your unit's figure, and at half load the loss drops to about 7 W. A fan on the supply itself only stirs the box air; the watts still end up inside the enclosure.
Do I need shielded cable for the wiring inside a CNC control box?
Short internal runs do fine unshielded: hold bundles 4 in [100 mm] from AC line and motor wiring, and cross at right angles. The shield belongs on the drive-to-motor run: land it on the panel ground stud, and keep any pigtail under about 1 in [25 mm] where a 360-degree clamp will not fit.
Can I run two 24 V fan kits in series across a 45 V supply?
As a bench fix, yes: two identical 24 V brushless fans share about 22.5 V each and run slightly slow, which suits gentle cooling. They share the voltage only while both draw the same current, and one failed fan stops the whole chain, so a small 24 V DC-DC converter is the dependable route.
Where should the e-stop sit on a CNC machine?
On the machine itself, at the operator station: mushroom center about 4 ft [1.2 m] up, inside the 0.6-1.7 m standing-reach band the ergonomic guides use. Wire a second mushroom on the enclosure front in series — any stop in the chain breaks the circuit, and each one latches on its own.





