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

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

PLC trainer in a PC tower case: clearances and wiring that matter

A full-tower PC case works as a bench-top PLC trainer enclosure only as an unrated practice box: keep the control wiring 2 in [50 mm] from the 120 V AC side, size the supply at 1.25 times the summed load — 5 A covers most trainers — and bond the case with 14 AWG green/yellow. On a dry bench that is the whole spec; on a plant wall it needs a rated enclosure.

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

A full-tower PC case makes a solid bench-top PLC trainer, and it costs almost nothing. Wire it as what it is: an unrated steel box for a dry bench. Three numbers carry the build. Keep the 24 V DC wiring 2 in [50 mm] away from the 120 V AC side, size the supply at 1.25 times the summed I/O and interface current — a 5 A supply covers most trainers — and bond the case to protective earth with 14 AWG green/yellow. The top two 5.25 in drive bays give you a 146 x 82.6 mm [5.75 x 3.25 in] opening for a small operator interface. The sections below cover the cutout, the layout, the supply sizing and the bond, and the point where the tower stops being the right box.

What a tower case gives you, and what it lacks

A big tower hands you depth, steel and standardized openings. Full towers carry 9 to 11 external 5.25 in bays, and each bay is a 146 x 41.3 mm [5.75 x 1.625 in] opening by the drive-bay standard. Two stacked bays take a compact operator interface almost exactly, which is the swap that makes the case feel purpose-built. The steel skin also bonds and shields well once you scrape the paint off a contact point.

What the case lacks is a rating. It carries no enclosure type number and no IP code, because its maker never designed or tested it against NEMA 250 or IEC 60529. On a dry bench that costs you nothing. The moment the trainer mounts to a wall, sees washdown water or controls a live process, it is an industrial control panel: NEC 409.2 counts an assembly of two or more power or control circuit components as one, and a panel in service follows the listing path the UL 50E versus NEMA 250 guide explains. For learning ladder logic, wiring practice and program testing, the unrated case is the right tool.

What you need

  • Full tower with at least 9 external 5.25 in bays
  • Compact PLC CPU with two or three I/O cards on DIN rail
  • Operator interface sized for two stacked bays; its installation drawing sets the cutout
  • DIN-rail DC supply, sized by the worked example below; 5 A covers the typical set
  • 4-position distribution terminal block and 2 A branch fuses, one per I/O feed
  • 18 AWG red and black for the DC distribution, blue for analog pairs, 14 AWG green/yellow for the bond; the 16 versus 18 AWG choice is worked through in the control wiring article
  • Ring lug and toothed washer for the bond
  • Nibbler, or jigsaw with a metal-cutting blade; 1/4 in [6 mm] drill bit; flat file
  • Label maker

Cut the two-bay interface opening

  1. Remove the covers from two adjacent bays at seated eye level, usually the top pair. Keep the screws; the thread often matches the interface brackets.
  2. Mark the cutout from the interface's installation drawing. Two stacked bays give you a 146 x 82.6 mm [5.75 x 3.25 in] region to work inside, and the cutouts, glands and HMI windows guide covers the same geometry in a rated door.
  3. Drill a 1/4 in [6 mm] pilot hole inside the waste area and start the nibbler there. A jigsaw with a metal-cutting blade cuts faster but throws more burrs.
  4. Deburr both faces with a file. A burr on the front scores the bezel, and one on the back cuts insulation later.
  5. Test-fit, then file tight spots in 0.5 mm steps until the bezel drops in with no daylight around it. Bezel brackets absorb about 1 mm of oversize; bolt through the side holes with M3 or #6-32 hardware and stop at snug.

Mount the rail, the supply and the bond

  1. Bolt DIN rail to the case floor at the rear-bottom. Twelve in [305 mm] of rail holds the supply, the distribution block and the CPU in most layouts.
  2. Scrape the paint off both bond points, because NEC 250.12 requires nonconductive coatings removed from threads and contact surfaces at grounding connections. Bolt a 14 AWG green/yellow lead, ring lug on a toothed washer, from bare case metal to the supply's PE terminal. Under NEC 250.119, green or green/yellow insulation belongs to equipment grounding conductors 6 AWG and smaller. The grounding and bonding guide covers the same bond in a rated enclosure.
  3. Feed the supply from the case's own IEC inlet, switch and fuse, and keep everything at line voltage on that one side. Unplug the cord and check the inlet pins dead with a meter before you work here; the power supply enclosure safety article lists the mains-side checks that go with it.
  4. Run 18 AWG red and black from the supply output to the distribution block, fuse each branch at 2 A, and tap the interface, CPU and each I/O card from there. Hold the low-voltage wiring 2 in [50 mm] from the mains side, and cross at right angles where a crossing is unavoidable; running 24 V control wire beside power wiring shows what the separation buys you.
  5. Label both ends of every wire before the dress-up pass, and leave a 3 in [76 mm] service loop at the interface cable.

Sizing the 24 V supply for a five-card trainer

The inputs are the typical DC draws for the hardware a five-card trainer carries; confirm each on the nameplate before you buy.

24 V DC load Typical current Where the number comes from
Compact PLC CPU 0.5 A mid of the 0.3-0.8 A nameplate range common to compact CPUs
Operator interface, backlight on 0.5 A mid of the 0.4-0.7 A range typical of small color touch units
16-point digital input card 0.15 A card datasheet, logic plus field-side draw
16-point digital output card 0.05 A logic-side draw; the switched load carries its own current
4-in/2-out analog card 0.25 A mid of the 0.20-0.30 A range typical of analog cards

The rule: add every steady DC load, then multiply the sum by 1.25. Supply-sizing tools for 24 V control work carry a 20-30% design margin for tolerance, backlight inrush and headroom, and 1.25 sits inside it.

The arithmetic: 0.5 A + 0.5 A + 0.15 A + 0.05 A + 0.25 A = 1.45 A. Then 1.45 A x 1.25 = 1.81 A, the smallest supply the set can use.

The decision: the 2.5 A frame clears 1.81 A, but it holds only a 2.0 A sum at the same margin (2.5 / 1.25 = 2.0), and one spare digital pair plus an expansion CPU — 0.2 A plus 0.5 A — passes that. Fit the 5 A frame. A summed load above 4 A fills that frame exactly at the margin, so past 4 A buy the 10 A frame. Check the supply's derating curve against the warmest air you expect in the case: most compact electronics are specified at 40 C (104 F) unless the datasheet allows more, and a fan-ventilated tower on a bench sits well below that.

Checks before you power up

  • Bond: measure from the inlet's ground pin to bare case metal, and again to the supply's PE terminal. Expect the same low reading at both, under 1 ohm across runs this short.
  • Volts: energize and measure the DC rail at the distribution block with every branch fuse seated.
  • Separation: sight down both routes. The 2 in [50 mm] gap holds everywhere, and every crossing sits at 90 degrees.
  • Heat: switch every output on for 30 minutes. You want a warm case, a cool CPU, and air by the electronics at or below 40 C (104 F).
  • Mains: no exposed line-voltage metal, a working inlet fuse and switch, and a cord grip that holds a firm pull.

Mistakes that sink a trainer build

  • Green or green/yellow wire as a switched DC conductor. NEC 250.119 reserves that insulation for grounding, so pull it and re-run the leg in red or black.
  • One supply for the PC motherboard and the field gear. Keep the PC on its own supply so a field fault cannot drop your programming link mid-download.
  • Blocking every vent to fight dust. The tower's fan is its cooling system, and a sealed interior climbs past the 40 C the electronics expect; the enclosure heat calculation guide runs the same arithmetic for sealed boxes.
  • Mains and DC sharing one bundle or one duct. That is the noise complaint the separation exists to prevent.
  • Assuming the case travels. On a plant wall it is a panel with no type rating, and it fails the first inspection that asks for one.

When the tower stops being the right box

Where the trainer lives The box to use
Dry bench, practice programs and wiring The PC tower as built above: unrated, bonded, labeled
Shared classroom or lab bench Same build, plus the switched and fused inlet checked before each session
Plant wall, washdown, dust or outdoors A rated stainless wall-mount enclosure, Type 4X

For the third row, a 16 x 16 x 8 in [406 x 406 x 203 mm] stainless wall-mount enclosure takes the same DIN rail and the same two-bay interface behind a hinged, gasketed door: 16 x 16 x 8 in 304 stainless wall-mount enclosure for indoor washdown and most outdoor sites, or 16 x 16 x 8 in 316L stainless wall-mount enclosure for salt air, brine and chemical mist. Both are rated NEMA 4X / IP66 by the manufacturer; not UL listed. Because the box is built to your drawing, the installation drawing that set the bay cutout sets the door cutout too; the custom enclosure builder takes it from there, delivered in 10 business days from your approval of the drawing. Size the new box with spare space the way the rated PLC enclosure article works it, and the trainer moves to the wall with nothing rewired.

Enclosures in this article

EnclosureMaterialOutside H x W x D / displayRating
16 × 16 × 8 in304 stainless16 x 16 x 8 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
16 × 16 × 8 in316L stainless16 x 16 x 8 inRated NEMA 4X / IP66 by the manufacturer; not UL listed

Questions

Can a PC tower case serve as a PLC trainer enclosure?

Yes, for bench practice. The case carries no enclosure type rating and no IP code, so it belongs on a dry bench. Keep the DC wiring 2 in [50 mm] from the 120 V AC side and bond the case to protective earth. Once the trainer mounts to a wall or meets dust, water or washdown, move it into a manufacturer-rated Type 4X enclosure; the tower is never that box.

What size supply does a trainer with one CPU, one interface and three I/O cards need?

Sum the loads first: 0.5 A CPU, 0.5 A interface, 0.15 A digital input card, 0.05 A digital output card and 0.25 A analog card give 1.45 A. Multiply by 1.25 for margin and you get 1.81 A. Fit a 24 V DC, 5 A DIN-rail supply so a spare card slot costs nothing; step to 10 A once the summed load passes 4 A.

How do you cut an operator-interface opening in the drive bays?

Two stacked 5.25 in bays provide a 146 x 82.6 mm [5.75 x 3.25 in] region to work in. Mark the cutout from the interface's installation drawing, drill a 1/4 in [6 mm] pilot hole and nibble to the line, then deburr both faces. Bezel brackets absorb about 1 mm of oversize, so file tight cuts open in 0.5 mm steps until the bezel drops in.

Does a PC-case trainer need a grounding bond?

Yes. Run 14 AWG green/yellow from bare case metal to the supply's PE terminal under a toothed washer, and scrape the paint off both surfaces first, as NEC 250.12 requires. The steel skin then acts as shield and fault path; unbonded, it floats at whatever potential stray leakage puts on it. Measure under 1 ohm from the inlet ground pin to the case.

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.

Build it from 16 × 16 × 8 inRequest 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