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.
Most industrial PLCs run on 24V DC: a power supply takes 230V AC and gives 24V. The positive terminal is called +24V or L+, and the negative 0V or M. Some CPU models take 230V AC directly (marked AC/DC/RLY, for example), but their inputs are still 24V DC.
Each input inside the card is a resistor and an LED (optocoupler) between the input terminal (I0.0) and the common (1M). For the input to be 1, current must flow through it, so there must be 24V between the two terminals:
| Wire colour | Where it goes |
|---|---|
| BN brown | +24V |
| BU blue | 0V |
| BK black | Output → PLC input (I0.0) |
To learn more about the sensors themselves (inductive, photocell, 2-wire), see the digital sensors lesson in the Instrumentation course.
| Relay | Transistor | |
|---|---|---|
| Voltage | AC or DC (up to 250V AC) | 24V DC only |
| Current per output | About 2A | About 0.5A |
| Speed | Slow (milliseconds) and audible | Very fast; suitable for pulses (stepper, PWM) |
| Life | Limited by the number of switching operations | Very long |
| Common | 1L takes the voltage that will be switched out | 3L+ and 3M power the transistors |
4 exercises. Tap a terminal (it turns yellow), then tap the other terminal to add a wire. Tap a wire to remove it. When you finish, press "Test wiring"; if it is correct, you can try the sensor, the button and the outputs.
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.