Before a line of logic runs, someone wires the panel โ and the single thing that confuses every newcomer is sinking vs sourcing: which way the current actually flows through a 24 V input or output. Get it backwards and nothing works (or worse, it shorts). This lesson makes the current visible: pick PNP or NPN, watch the electrons, and see exactly why the common terminal goes where it goes.
Control panels run on 24 V DC โ low enough to be safe to touch, high enough to push signals down long cables and shrug off electrical noise. Two rails do all the work: +24 V (often labelled V+ or L+) and 0 V (the DC common, Vโ or M). Every input and output is just a switch deciding whether to connect a terminal to one rail or the other. Master that and wiring stops being mysterious.
โ +24 V rail โ the source of current. A "high" or "true" signal usually means this rail is connected to the terminal.
โ 0 V rail (DC common) โ the return path. Current must always have a complete loop back to here, or nothing flows.
๐ A circuit is a loop. Current leaves +24 V, does work (lights an input, drives a coil), and returns to 0 V. Break the loop anywhere and it stops.
This is the concept that trips up everyone. A sensor and a PLC input must agree on which direction current flows. Pick the sensor type and PLC wiring below โ when they match, current flows and the input reads ON (green). When they don't, the loop is broken (red) and the input stays dead no matter what the sensor does. Watch where the current enters and leaves.
The rule of thumb: a PNP (sourcing) sensor pushes +24 V out when active, so it pairs with a sinking input (common tied to 0 V). An NPN (sinking) sensor pulls its output down to 0 V, so it pairs with a sourcing input (common tied to +24 V). PNP is the European default; NPN is common in Asia โ mixing them is the classic "the sensor's fine, the input's fine, but it doesn't work" ticket.
A PLC output is tiny โ a few hundred milliamps at 24 V. To switch a 400 V, 30 A motor you need an amplifier: a relay (small loads) or a contactor (motors). The PLC energises a small coil; the coil's magnetic field slams a big set of contacts closed. Low-power logic commands high-power reality.
๐งฒ Relay
A coil + contacts in a small package. NO (normally-open) contacts close when energised; NC (normally-closed) open. An interposing relay lets a 24 V output switch a different voltage, and isolates the PLC from the load.
๐ Contactor
A heavy-duty relay built for motor current, with arc-quenching contacts and often an overload relay bolted on. The 24 V coil is what your PLC output actually drives; the contactor does the heavy lifting.
โก Flyback / snubber
A coil is an inductor โ switch it off and it kicks back a voltage spike that can destroy the output. A flyback diode (DC) or RC snubber (AC) across the coil absorbs it. Skip it and outputs fail mysteriously over time.
๐ก๏ธ Why isolate?
Interposing relays keep dangerous voltages and inductive spikes away from the controller, and let one logic level switch many. They're cheap insurance the controller will thank you for.
Most "random glitch" faults are grounding faults. Earth ground is the safety reference โ fault current flows to earth and trips protection instead of through a person. Signal ground (0 V) is the measurement reference. Get them tangled and you get ground loops: phantom voltages that corrupt analog readings and crash comms.
| Term | What it is | Gets it wrong โ |
|---|---|---|
| Earth / PE | Protective earth โ the green/yellow wire to the building ground rod. | Shock hazard; protection won't trip on a fault. |
| 0 V / DC common | The return rail for 24 V signals โ the measurement reference. | Floating references; erratic inputs. |
| Ground loop | Two ground points at slightly different potentials, so current sneaks through a signal cable. | Noisy analog, comms dropouts, hum. |
| Shield | A foil/braid around a cable that drains noise to ground. | Grounded both ends โ loop; ungrounded โ useless. Ground one end. |
| Star ground | All grounds meet at one single point. | Daisy-chained grounds build up voltage offsets. |
๐งญ The habits that prevent 90% of noise tickets: ground cable shields at one end only, keep 24 V signal wiring away from motor/VFD power cables, and bring all grounds to a single star point. Separate your earth and your 0 V intentionally โ don't let them meet by accident.