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

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

Wiring a Class II 24VDC supply to a PLC and modem in one enclosure

Feed the CPU L+ and M terminals at X10 and the modem from the supply's own 24 V DC, 2.5 A output terminals, each with its own conductors; land the mains PE on the DIN rail because the Class II supply has no PE terminal; leave unused I/O bare. Bond each DIN rail to PE with at least 10 mm² wire.

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

Short answer: land the mains PE on the DIN rail, feed the CPU's L+ and M at X10, and feed the modem straight from the supply's own output terminals. Leave every unused I/O terminal bare. The Class II supply carries double insulation and has no PE terminal, so the earth conductor never lands on it. The output is 24 V DC at 2.5 A, and the example loads below leave 1.0 A spare. This is the wiring sequence for a 6EP1332-1SH43 supply feeding a 6ES7214-1AG31-0XB0 CPU and a 6GK7242-7KX30-0XE0 modem in one enclosure, with the checks that prove each decision.

What you need

  • LOGO!POWER 6EP1332-1SH43: input 100-240 V AC single phase or DC 110-300 V, output 24 V DC / 2.5 A
  • CPU 6ES7214-1AG31-0XB0 (S7-1214C DC/DC/DC) and modem 6GK7242-7KX30-0XE0, each with its wiring page open
  • DIN rail bond wire, 10 mm² (about 8 AWG), green or green-and-yellow if insulated
  • 1.5 mm² (16 AWG) stranded for the 24 V runs
  • The branch breaker or fuse value the datasheet's input-current line calls for
  • Ferrules, a crimper, and a meter that reads volts and ohms

Lay the rail row out before the first ferrule goes on: supply, CPU, modem, one row, with plug clearance around each device. The spacing and duct rules live in the backplate and DIN rail layout guide, and the space to reserve around plugs and connectors is the subject of the DIN rail controller clearance article. A single row serves all three devices in a small wall-mount box.

Read the input ratings before the first wire

The rating block beside the unit lists two windows, and they are separate lines. On AC the 6EP1332-1SH43 takes 100-240 V AC, single phase, up to 264 V AC maximum, at 50/60 Hz. On DC it takes 110-300 V, printed in its own block of the datasheet. Read the DC block before you hang this supply on a DC control bus. A 125 V DC battery set floating near 135 V DC sits comfortably inside the window. A nominal 110 V DC bus runs closest to the floor, so read the bus at its highest condition before you connect.

Protect the AC input at the breaker or fuse the datasheet's input-current line implies. Keep the mains bundle separate from the 24 V pair on the rail. The mains side follows the same enclosure rules as any panel; the power supply enclosure safety article walks them through.

Where the mains PE lands on a Class II supply

Class II means double or reinforced insulation between the mains side and the 24 V output. Safety never depended on a PE conductor, and the supply has no PE terminal.

Land the mains PE on the DIN rail or the mounting plate instead, and let the cabinet bonding path carry it to the PE bar. NEC 250.12 asks for paint, lacquer and enamel removed from threads and contact surfaces at grounding connections. Brush the point under the rail clip to bare metal before the clip goes back. NEC 250.96(A) makes the same point at panel scale: metal parts serving as grounding conductors are bonded to carry the fault current likely imposed on them.

Panel EMC assembly guidance sets the rail-to-PE bond wire at 10 mm² (about 8 AWG) minimum. Run it as the shortest clean path to the PE bar. The DIN rail as grounding conductor article shows the bond points on a rail, and the mounting plate grounding article covers the plate path.

The CPU and the modem each carry a functional-earth point, drawn as a ground symbol at the module. It drains EMC filter currents, not fault current, so a short lead to the rail does the job. The 24 V return stays out of this: leave M unbonded for this build. A floating system rides out its first ground fault, and it keeps noise loops out when a remote device is earthed at its own site; a modem antenna qualifies. The when-and-how of grounding the 0 V is its own decision, and the 24 VDC 0 V grounding article carries it.

Wiring sequence

Isolate first: open the branch breaker, lock it, and prove the supply's input terminals dead with a meter.

  1. Land L and N on the supply input through that branch protection.
  2. Land the mains PE on the DIN rail or the mounting plate; the supply has no terminal for it.
  3. Bond the rail to the PE bar with the 10 mm² wire, over brushed contact points.
  4. Snap the CPU and the modem onto the rail and run each functional-earth point to the rail with a short lead.
  5. Feed the CPU from the supply output: + to L+ and - to M at X10. Polarity matters on a DC/DC/DC CPU; reversed, it will not run.
  6. Feed the modem from the same output terminals with its own pair of conductors, or from a small terminal bar fed by them. Take the modem feed from the supply, not from any CPU terminal.
  7. Leave M unbonded to the rail.
  8. Leave the unused digital and analog I/O terminals bare, with no jumpers.
  9. Dress the 24 V pair away from the mains bundle and give the modem antenna lead the same courtesy.

Copper at 1.5 mm² runs about 12 mΩ per metre. Carrying the example's 1.5 A over a 2 m loop, that is 1.5 × 0.024 = 36 mV, about 0.15 % of the rail voltage, which no device on this row notices.

The load budget in numbers

The two manuals print the real current values; assume 0.5 A for the CPU and 0.3 A idle for the modem in this example. Assume 1.0 A at modem transmit burst. Worst simultaneous load: 0.5 + 1.0 = 1.5 A against the rated 2.5 A output. That leaves 1.0 A spare, 40 % of the rating, in hand for the CPU's startup and coincident bursts. Power checks out too: 1.5 A × 24 V = 36 W against the 60 W the supply makes at full output.

The CPU's sensor-supply output beside X10 is the terminal set to refuse for this job. The S7-1200 system manual gives it a current limit of its own, sized for sensors; the modem takes its own pair from the supply instead. Whether you were eyeing that sensor-supply set or another block such as X12, the decision is the same.

When expansion modules join the rail later, the same discipline holds, and the 24VDC expansion-module wiring article shows the supply-side split.

Leave the unused I/O bare

A CPU working as a Modbus master needs no digital or analog channel wired. Leave the terminals empty on both sides. A floating digital input simply reads 0 and changes nothing in the program. A jumper to L+ would hold that input at 1, and it could fire an interrupt or a diagnostic event if one is configured. Unwired transistor outputs draw nothing and raise no fault. When field I/O arrives later, the terminal row above the CPU becomes its interface, and the terminal-blocks-above-a-PLC article lays that row out.

Checks after power-up

  • Supply output at its own terminals, no load: 24 V DC nominal, inside the datasheet tolerance.
  • The same points under load, CPU and modem running: a small drop from the terminal reading; a big drop means a loose ferrule.
  • M to rail on the ohms scale: floating, not a dead short, since you left it unbonded.
  • Rail to mains PE: continuity at low resistance, which confirms the bond path.
  • CPU RUN LED steady, and the modem status LED at its normal power state per its manual.
  • Diagnostic buffer clean in the engineering software after the modem has pushed a transmit cycle.

Mistakes that undo this wiring

  • Landing the mains earth on the 24 V output because the supply has no PE screw.
  • Bonding M at this panel while a remote device is earthed at its own site; that loop circulates noise.
  • Feeding the modem from the CPU's sensor-supply terminals, a set sized for sensors.
  • Jumpering unused inputs to L+ or M out of habit.
  • Reading the AC window onto a DC bus: the AC limit is 264 V AC, the DC window is 110-300 V, and they are separate lines in the datasheet.

The box around this wiring

A metal wall-mount box makes this grounding scheme almost free: the rail and the mounting plate are the bonding path, and every bond lands on bare metal. A polycarbonate box has no metal path to borrow. NEC 314.3 allows a nonmetallic box with metal raceways only where the metal parts are bonded together inside the box. So add a PE terminal block and bond the rail and each functional-earth point to it.

For a washdown or outdoor spot, our wall-mount boxes come in 304 or 316L stainless, rated NEMA 4X / IP66 by the manufacturer; not UL listed. Configure the box in the enclosure builder with the rail layout you just wired and gland cutouts on the wall the cables enter. Custom sizes and cutouts start from one piece through the custom enclosures page, delivered in 10 business days from your drawing approval.

The decisions, case by case: on AC mains, land PE on the rail and follow the sequence above. On a DC bus, connect only inside the measured 110-300 V window. Feed the modem from the supply, not the CPU. Keep M floating unless a device instruction demands a grounded common, and then bond it at one point only.

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.

EnclosureMaterialOutside H x W x D / displayRating
6 × 6 × 4 in304 stainless6 x 6 x 4 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
8 × 6 × 4 in304 stainless8 x 6 x 4 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
10 × 8 × 4 in304 stainless10 x 8 x 4 inRated NEMA 4X / IP66 by the manufacturer; not UL listed

Questions

Can I bond the negative (M) to the DIN rail anyway?

You can, and some device instructions demand a grounded common. When one does, bond M at exactly one point, at the supply, and keep every remote earth out of the circuit: an antenna mast, an instrument in another panel. Left unbonded, the 2.5 A system floats and rides out its first ground fault without tripping anything, which is the default this build uses.

What happens when a wire touches the enclosure wall while M floats?

Nothing trips. With no return path the fault draws no current, and a meter from M to the rail shows the shifted potential instead. Fix the wire promptly, because a second fault on the opposite polarity completes the loop and trips the branch protection with real fault current. On a floating system your multimeter is the diagnostic tool.

How much current does the 6EP1332-1SH43 draw from a 230 V AC supply?

Screening figure only: assume 85 % efficiency at full output, so 60 W takes 60 ÷ 230 ÷ 0.85 = 0.31 A from 230 V AC and 60 ÷ 100 ÷ 0.85 = 0.71 A from 100 V AC. Pick the branch device from the datasheet's input-current line instead; its value already carries the real power factor and efficiency.

What colour does the DIN rail bond wire use?

An insulated equipment grounding conductor of 6 AWG and smaller is green, or green with one or more yellow stripes; the 10 mm² (about 8 AWG) rail bond falls inside that range. Keep the colour distinct from the control wiring so the bonding path reads at a glance.

Do unused outputs need power on a DC/DC/DC CPU?

An unwired transistor output draws no current and raises no fault, so an empty output group is a normal state on this CPU. Before you close the panel, look at the output block's terminal drawing for any group supply terminal; where the drawing shows one, power it as the system manual's wiring diagram shows.

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.

Start a junction box from 6 × 6 × 4 inRequest a custom quote

Stainless junction boxes: sizes for this job

Keep reading

More on layout and installation

All articles

Buying guides

The guides behind this answer

All guides