Short answer: split the 33 wires into two connections and keep the power off 26 AWG. Picture a wheeled 12 x 24 x 24 in [300 x 600 x 600 mm] enclosure feeding a tabletop machine: eight wires carry 0.5-0.8 A each, a worst case of 6.4 A together, and the other 25 sit under 0.1 A. You land the power group on a latched multi-pin connector with contacts sized for the heavier conductor, or on two M12 L-coded bulkheads with molded cordsets, and run the signals as their own harness or as one M12 D-code cordset to a remote I/O block on the machine. The arithmetic decides it. Over a 5 m [16 ft] run, one heavy leg on the light wire drops 1.1 V; all 6.4 A on one pair drops 8.6 V, a third of a 24 V supply. Two cords you unplug in a minute beat one custom crimp you make once.
What you need
- A tally of the harness: 33 wires, eight of them at 0.5-0.8 A, 25 under 0.1 A, each with its destination.
- One latched multi-pin rectangular connector set, bulkhead base plus mating hood, eight positions or more, with contacts sized for the heavier conductor. Standard inserts are rated about 10 A per contact by their makers.
- Two M12 L-coded bulkheads and two 4-position molded cordsets for the no-crimp power route.
- One M12 D-coded bulkhead and cordset if the signals move to a remote I/O block on the machine.
- Heavier copper for each power leg and 26-28 AWG for the signal wires.
- Cutouts: most M12 bulkhead fittings want a 12.5 mm [0.49 in] round hole, and the rectangular connector takes the cutout its datasheet prints. Any wall size works, because a 12 x 24 x 24 in stainless box is a one-piece custom build.
- A strain relief on every cord: a P-clip or cord grip 150-200 mm [6-8 in] from the wall, plus the insertion tool for the contacts.
- Labels for both ends of all 33 wires.
Size the conductors before you shop
Voltage drop decides this link, not ampacity. Bundled 26 AWG carries roughly 1 A in published ampacity tables, so the heaviest leg sits within rating; the drop and the contact ratings bite first. Work from a 5 m [16 ft] cordset, which is 10 m of copper out and back. Copper runs 0.134 Ω per metre at the light size, 0.021 Ω at 18 AWG and 0.013 Ω at 16 AWG, all at 20 C. Add about 8% for a box that sits at 40 C, because copper resistance rises 0.39% per K.
| Wire size | Ω/m | Drop at one heavy leg over 10 m | Drop at 6.4 A over 10 m | Verdict on a 24 V supply |
|---|---|---|---|---|
| 26 AWG | 0.134 | 1.1 V (4.5%) | 8.6 V (36%) | Fine per leg, fails as a combined feed |
| 18 AWG | 0.021 | 0.17 V (0.7%) | 1.34 V (5.6%) | Passes per leg, marginal combined |
| 16 AWG | 0.013 | 0.10 V (0.4%) | 0.84 V (3.5%) | Passes both |
Hold every leg under 5% of 24 V, which is a 1.2 V budget. The worked example runs like this: one heavy leg on the light conductor costs 0.8 A x 10 m x 0.134 Ω/m = 1.07 V, nearly half the budget before any contact resistance. The same leg on 18 AWG costs 0.8 x 10 x 0.021 = 0.17 V. One connector rule sits on top of the copper: a cable delivers a connector's rated current only when the cable itself is rated for it, so a power leg belongs in a contact sized for its wire. When several devices share one 24 V feed, the one-power-input layout keeps feed and returns tidy.
Pick the connection for each group
| Connection | Contacts and wire | Current per contact | Best for |
|---|---|---|---|
| 37-pin D-sub | 26-28 AWG; contacts rated about 3 A per pin when only a few pins carry current | about 3 A | Signal-only bundles, never the power group |
| Latched rectangular multi-pin | 16-18 AWG contacts, about 10 A per contact in standard inserts | about 10 A | The eight power wires on a box that parks for weeks |
| M12 L-coded, two bulkheads | Molded 4-pin cordsets rated 16 A per pin at 63 V | 16 A | The power route with zero crimping |
| M12 D-coded | 4-wire molded cordset, contacts rated 4 A | 4 A | Ethernet to a remote I/O block; 25 signals in one cord |
| Bulkhead gland plus terminal blocks | Any cable the gland accepts | Set by the wire, not the gland | One-off builds |
The remote I/O row answers 'fewest cables' properly. Machine builders use remote I/O mainly to cut the field wiring between machine and panel. Put a plug-in valve manifold and an I/O block on the machine itself. Sensors plug in locally on molded pigtails, which come in standard lengths from 0.3 to 10 m. Only two cords cross the floor: L-coded power and D-coded Ethernet.
The steppers still need their phase wires, so the power connector stays either way. If the box rolls in and out weekly, coiled M12 cordset options keep the slack off the floor. Compressed air gets its own quick-disconnect coupling; never share a coupling with wiring.
If you split a harness across two M12s yourself, the M12 splitter pinout design notes keep the pairs straight. For a machine that never moves, glanded entry without connectors is simpler; the stationary cabinet cable entry decisions cover that case, and the controller enclosure cable entry guide lays out the wider options.
Wire it in six steps
- Tally all 33 wires into a power group (the eight legs at 0.5-0.8 A) and a signal group (the 25 light wires), and note each destination.
- Size the power legs: one heavier conductor per leg, or 16 AWG if you parallel the group into a single feed pair; hold every leg inside the 1.2 V budget.
- Pick the connection per group from the table above and buy molded cordsets wherever they exist, because a molded M12 needs no crimping at all.
- Cut the wall. Unplug the enclosure and prove it dead before you cut or drill. Send your hole layout through the cutout designer and it ships with the quote, or cut the 12.5 mm holes for the M12 bulkheads and the datasheet cutout for the rectangular connector. Deburr every hole and leave the gasket face clean; the cutout rules for glands, windows and displays explain sizes and spacing in depth. The box itself is delivered in 10 business days from drawing approval.
- Mount the bulkheads with their gaskets against the wall and bond the shells. Stainless bonds through the mounting nut alone. On a painted panel, NEC 250.12 requires the coating removed from the threads and contact surfaces.
- Land the wires. Label every pin, twist each motor phase pair with its return, run power and signal harnesses on opposite sides of the backplate, and clip each cord 150-200 mm from the wall with a 20 cm [8 in] service loop.
Checks when done
- Ring out all 33 conductors end to end; both ends carry the same label.
- Power up at full load and measure at the machine end. Each leg should sit within 1.2 V of the supply, and a leg on the heavier conductor should read about 0.2 V of drop, matching the worked example.
- Flex each cord by hand 20 cm from the wall while a meter watches continuity. Nothing flickers.
- Mate and unmate each connector ten times. The latch still snaps and continuity holds; connectors of this class are typically tested through 100 mating cycles without defects.
- Wipe the outside of the wall. No swarf, no gaps around any bulkhead.
Mistakes that cost the connection
The common one is the single universal cable. A DB37 carrying everything fails twice over: each power leg loses 1.1 V on 26 AWG, and paralleling the group onto one pair loses 8.6 V. Split the harness and both numbers collapse.
Next comes a shell gripping through paint. Stainless bonds through the nut, but on coated panels NEC 250.12 requires bare metal at the contact surfaces. The protective earth conductor through a connector is sized from the overcurrent device ahead of it, per NEC Table 250.122.
Then sealing. An M12 bulkhead rated IP67 by its maker seals the wall only with its gasket seated and the nut tight; the weakest part sets the assembly rating, so a missing gasket drags the whole wall down to the connector's rating. In a controlled medical room a Type 1 wall already does the job, and the IP67 bulkheads simply buy headroom for a wet washdown later. Ratings here are manufacturer ratings; the enclosures are not UL listed.
For a box you unplug weekly, weigh a bulkhead against a glanded plug-in cable before you cut, and give the cord real strain relief, because flex at the gland is what cracks conductors. The bulkhead vs gland comparison and the small-enclosure strain relief options cover both choices.
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 |
| 16 × 14 × 8 in | 304 stainless | 16 x 14 x 8 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 |
Questions
Can the eight 0.5-0.8 A wires share a 37-pin D-sub with the signals?
Keep them off it. A standard D-sub contact is rated about 3 A per pin only when a few pins carry current at once, and 26 AWG in a full 37-pin bundle is good for roughly 1 A in published ampacity tables. One heavy leg also drops 1.1 V over a 10 m round trip. Give the power group its own latched connector with 18 AWG contacts and the same leg drops 0.17 V.
How much current can an M12 cordset carry?
Sensor and D-coded contacts carry up to 4 A, and L-coded power contacts carry up to 16 A per pin at 63 V — all manufacturer ratings, so read the datasheet of the cordset you buy. The heaviest power leg in the worked example fits either with wide margin, and a 24 V feed for a remote I/O block sits comfortably inside one L-code pair.
Bulkhead connector or cable gland for a machine that is wheeled in and out?
Use a bulkhead. The connector takes the mating wear and the wall gasket stays untouched, while a plug-in glanded cable flexes the seal at the gland every time. Connectors of this class are typically tested through 100 mating cycles without electrical or mechanical defects, which covers years of weekly moves. Leave a 20 cm [8 in] service loop so the flex lands in the cord, not the wall.
Do the 25 sub-0.1 A signal wires need heavier wire for a 5 m run?
No. At 0.1 A, 26 AWG at 0.134 Ω/m drops 0.13 V over a 10 m round trip and 28 AWG drops 0.21 V, under 1% of a 24 V level, so drop is not the constraint on the light wires. Keep them twisted in pairs, out of the motor-phase harness, and land any screen at the enclosure end only.





