Short answer: reserve the controller body plus 3 in [76 mm] past each end for the plugs and 3/4 to 1 in [19-25 mm] per side for the wiring. The worked example in this article is a plug-in DIN rail controller with a 9 x 5 x 2.25 in [229 x 127 x 57 mm] body, and that body fills a 15 x 7 in [381 x 178 mm] block on the backplate while standing about 2.5 in [64 mm] off it. Take those dimensions as example inputs: measure your device with its connectors installed, keep the same envelope, and the arithmetic below repeats with your numbers.
Why the envelope is bigger than the body
The body outline is the wrong number to lay out from. Plugs sit on the ends of a plug-in controller, and each one leaves its pins in a straight pull along the rail. The end clearance covers the connector shell, the wire leaving it and the stroke of that pull. Side wiring runs parallel to the body instead, so a much smaller band per side covers dressing the bundle and bending it into the duct. The two clearances earn their space for different reasons, so they never trade against each other.
Terminal rows live under the same logic: room for a hand and a tool when someone repairs the panel in the small hours is what the control panel terminal service clearance article lays out, and the block here draws that idea around one device. The side band plays the role that finger duct clearance at terminal rows plays on a terminal rail. Airflow is a separate envelope with its own arithmetic, and the clearance around devices for cooling article sizes that one. Where the two envelopes overlap, the larger value wins at that spot.
The reserved block, dimension by dimension
Rail spacing, duct grouping and the 50% duct fill rule belong to the backplate and DIN rail layout guide. What that guide does not give you is the keep-out around a single plug-in device, and the table below is that keep-out. The end and side figures come from a built panel of this controller class, so read them as the example inputs; your datasheet replaces the body row and the envelope stays.
| Zone on the backplate | Example value | What the space covers |
|---|---|---|
| Body on the rail | 9 x 5 x 2.25 in [229 x 127 x 57 mm] | the datasheet outline, measured with connectors installed |
| End clearance, each end | 3 in [76 mm] | pulling each plug straight off; a straight wire run before the first bend |
| Side clearance, each side | 3/4 to 1 in [19-25 mm] | dressing the bundle and the bend into the duct |
| Depth off the backplate | 2.5 in [64 mm] | body height with 0.25 in [6 mm] of headroom |
| Reserved block on the drawing | 15 x 7 in [381 x 178 mm] | the area every other footprint stops at |
Worked example: the arithmetic that builds the block
Length runs along the rail: 9 in + 3 in + 3 in = 15 in [381 mm]. Width runs across it: 5 in + 0.75 in + 0.75 in = 6.5 in, and holding the block at 7 in [178 mm] uses the 1 in top of the side range and leaves air around the bundle. Depth rounds the 2.25 in shell up to 2.5 in [64 mm], which leaves 0.25 in [6 mm] of headroom above the shell.
That quarter-inch covers connector overhang and almost nothing else. A duct lid, a door-mounted accessory or a cable bending toward the door each takes more, which is why depth gets its own check below. Neighbors such as relays, terminal rows and the power supply add their own footprints beside the block, never inside it. A shared edge is valid only where the neighbor sits outside the withdrawal stroke and outside the wire bend zone.
Bending space for the larger field wires
The envelope above covers the small control wiring that lands on the controller. Larger field conductors landing elsewhere in the same cabinet answer to NEC 312.6, which sets wire-bending space at terminals by conductor size. One of its tables applies where the conductor does not enter or leave through the wall opposite the terminal; the other applies where it does. For scale, 2 AWG with one wire per terminal needs 2.5 in [64 mm] from the end of the lug to the wall under Table 312.6(A). A UL 508A panel evaluation reads the same terminal-to-wall bending space by wire size for field wiring. Draw those inches on the backplate drawing first, then fit the controller block around them.
Depth, duct and the door
Depth failures stay invisible until the door rests on a duct lid, so run the stack in elevation. In the example layout the controller stands 2.25 in [57 mm] off the backplate, a 2 in [50 mm] square finger duct beside it adds its own height, and a 0.5 in [13 mm] door margin finishes the stack: 2.25 + 2 + 0.5 = 4.75 in [121 mm] of clear depth beyond the backplate. Put that layout in a box with 6 in [152 mm] of internal depth and a backplate standing 0.5 in [13 mm] off the wall, and the working depth is 5.5 in. Then 5.5 - 2.25 - 2 leaves 1.25 in ahead of the door, so the example passes with about 0.75 in to spare over the margin. Swap the duct for a 3 in [76 mm] deep profile and the same box fails: 5.5 - 2.25 - 3 leaves 0.25 in, under the 0.5 in margin, so the order grows by the 0.25 in shortfall or the duct drops a profile size. Compare your stack with the internal depth the enclosure size chart lists for the box before you commit the order.
Lay out the backplate in seven steps
- Read the body outline from the datasheet, then measure the physical unit with calipers and the connectors installed; connector shells often reach past the printed outline.
- Fix the DIN rail to the backplate first, following how to mount DIN rail on a backplate, and mark its centerline on the panel drawing.
- Draw the reserved block: datasheet length plus the end clearance at each end, body width plus the side band at each side. Label the block on the drawing so later additions stop at its edge.
- Place the neighbors footprint by footprint, relays and terminal rows and the power supply, outside the block. The keep-out logic is the same one the wire duct placement around contactors article applies to contactors.
- Route the duct so each end wire leaves its plug straight for the full end clearance before the first bend, and keep duct bodies and lids out of the withdrawal stroke.
- Cut a cardboard block to the reserved dimensions and stand it on the marked rail line, then swing the door. A small shipping box of the right size exposes depth conflicts in seconds.
- Lay the same block into the 3D enclosure builder with duct, rail and cutouts, and send it for a quote. When the block plus its neighbors outgrow a stock footprint, custom enclosures take your material, width, height, depth and cutouts from one piece, delivered in 10 business days, counted from your approval of the drawing.
Checks when the panel is built
Isolate the panel and verify absence of voltage before you pull any connector for these checks; the plug pins are live while the panel is energized. Then four checks prove the layout. Each plug pulls straight off along its own axis without touching a neighbor, a duct or a wall. The door closes over the wired panel with no wire contact. The measured body-to-neighbor gap on each side holds at least 0.75 in [19 mm]. Every end wire runs straight through its clearance before the first bend into duct. Record the final block and its dimensions on the panel drawing, so the next revision inherits the service space instead of rediscovering it by feel.
Mistakes that eat the envelope
The envelope disappears in three common ways: duct set flush to a plug end because the gap looked free, the connector shell counted as side clearance when the shell is part of the body, and one gap asked to serve two plug withdrawals, which strands both. Treat the block as occupied from the day the drawing is issued.
Any opening added to an enclosure after the build needs the manufacturer's documented accessories and instructions to hold the rating, and a field-drilled wall is the usual offender. The cutouts, glands and windows guide shows what keeps a hose-down rating through a new hole. Our stainless enclosures are rated NEMA 4X / IP66 by the manufacturer; not UL listed, so the approved gland pattern on the drawing is what carries the rating into the finished panel.
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 |
|---|---|---|---|
| 12 × 10 × 6 in | 304 stainless | 12 x 10 x 6 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 20 × 16 × 8 in | 304 stainless | 20 x 16 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 |
Questions
What if my controller's datasheet outline differs from the example body?
Keep the envelope and swap the body. Add the end clearance, 6 in [152 mm] across both ends for this class of device, to the datasheet length, and the side band to the width, then round the block up to the nearest half inch so it stays easy to draw. When a device ends in terminal blocks rather than plugs, nothing pulls straight off the pins, so the end clearance can come down toward the side band.
Can two plug-ended controllers share the gap between them?
Plan 6 in [152 mm] between the two bodies when both ends carry plugs: each connector needs its own 3 in [76 mm] straight pull, and a gap half that serves one withdrawal and blocks the other. Sharing works when one end is terminal wiring instead of a connector, because the wire can dress up or down while the plug beside it pulls out along the rail.
How deep does the enclosure need to be for this layout?
Stack the projections: the example controller stands 2.25 in [57 mm] off the backplate, a 2 in [50 mm] finger duct adds its height, and a 0.5 in [13 mm] door margin finishes it, so 4.75 in [121 mm] of clear depth beyond the backplate covers the example layout. Compare that sum with the internal depth on the enclosure size chart before you order the box.
Does the reserved block change when the controller mounts on a vertical rail?
Rotate the envelope with the device. The plug-end clearance stays at the ends whichever way the rail runs, and the side bands follow the long faces. Put the withdrawal stroke on the upper end where you can, so a connector drops free of the panel instead of fighting the rail clip below it, and keep the duct corner outside that upper stroke.





