PLC automation
What is a PLC (programmable logic controller) and how does it work?
By the Green Automatica engineering team · Last reviewed
Short answer: A PLC (programmable logic controller) is a rugged industrial computer that controls machines and processes. It reads inputs such as buttons and sensors, runs a program written by an engineer, and switches outputs such as motors, valves and lamps, repeating this cycle many times a second, around the clock.
How a PLC works: the scan cycle
- Read inputs: the PLC takes a snapshot of every input signal.
- Run the program: it executes the logic (ladder, function blocks or structured text) using that snapshot.
- Write outputs: it updates every output at once.
- Housekeeping: communication, diagnostics, then the cycle repeats, typically in milliseconds.
Why industry uses PLCs instead of relays or PCs
PLCs replaced panels of relays because logic can be changed in software, faults can be diagnosed on screen, and one controller can run a whole machine. Unlike office PCs, they tolerate heat, vibration and electrical noise, start in seconds and run for years.
What usually goes wrong
- No backup of the program, so a failed CPU means a long stoppage
- Failing 24 V power supplies and loose I/O connections
- Obsolete models with no spare parts
- Undocumented changes made on site
Main parts of a PLC system
| Part | Role |
|---|---|
| CPU | Runs the program and communication |
| Power supply | Usually 24 V DC for the PLC and I/O |
| Digital I/O | On/off signals: buttons, limit switches, contactors |
| Analog I/O | Measured values such as 4–20 mA pressure or level |
| Communication | PROFINET, EtherNet/IP, Modbus to HMIs, drives and SCADA |
| Programming software | Writing, testing and backing up the program |




