PLC · Lesson 2 of 10
Before any program, the PLC must be wired correctly: a 24V DC supply, buttons and sensors on the inputs, and contactors and lamps on the outputs. Half of the PLC faults on site come from wrong wiring, especially PNP and NPN and the common. Here you will wire it yourself on the bench.
Illustrated explanation, the simulator task solved, and the quiz answered. Made for the phone.
Most PLCs run on 24V DC: positive on terminal L+ and negative (0V) on terminal M.
A CPU marked AC/DC/RLY takes 220V, but its inputs are still 24V DC.
Each input has an LED inside, between the input terminal (like I0.0) and the common 1M. So for the input to light there must be 24V across the two.
If the common is on 0V, the input turns on when it gets +24V, which suits a PNP sensor (European). If the common is on +24V, the input turns on when it gets 0V, which suits an NPN sensor (Japanese and Chinese).
Don't memorise sinking and sourcing: look where the common goes.
The sensor wires: brown BN to +24V, blue BU to 0V, and black BK is the output that goes to I0.0.
Sensors in detail: the digital sensors lesson.
A relay output switches AC or DC up to about 2A, but it is slow and has a limited life. Its common is 1L.
A transistor output switches 24V DC only, up to about 0.5A, but it is fast, so it is used for pulses and steppers. Its terminals are 3L+ and 3M.
Want to drive a 220V AC coil from a transistor output? Use a 24V DC interface relay.
Tap one terminal then the other to add a wire, and tap a wire to remove it. When you finish, press "Test wiring".
Sensor LED is on but the PLC doesn't see it: an NPN sensor on a card with a 0V common, or the reverse. All inputs went off: the 24V dropped, usually brown touched blue in a sensor.
Transistor output burnt: overcurrent, a short, or a DC coil without a diode. Output relay welded: the contactor won't drop, replace the card. And 220V on a 24V card: the worst mistake, so measure before you connect.
Answer at least 5 of 6 correctly to mark the lesson done.
Sensor wire colours follow IEC 60947-5-2. Terminal names (1M, 3L+ and 1L) are examples; every model has its own terminal drawing in the manual. The simulator here is a generic trainer with IEC / Siemens style addresses: the exact addresses and instructions differ from one brand to another, and the manual of your PLC is the reference. Your progress is saved on this device only.
© 2026 LearnElectricals. All rights reserved. This site is not affiliated with any of the companies mentioned (such as Siemens, Allen-Bradley, Delta, Schneider and others); names and trademarks belong to their owners and are used only to explain the devices.