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

  1. Read inputs: the PLC takes a snapshot of every input signal.
  2. Run the program: it executes the logic (ladder, function blocks or structured text) using that snapshot.
  3. Write outputs: it updates every output at once.
  4. 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

PartRole
CPURuns the program and communication
Power supplyUsually 24 V DC for the PLC and I/O
Digital I/OOn/off signals: buttons, limit switches, contactors
Analog I/OMeasured values such as 4–20 mA pressure or level
CommunicationPROFINET, EtherNet/IP, Modbus to HMIs, drives and SCADA
Programming softwareWriting, testing and backing up the program

Related terms

Common questions

What languages are PLCs programmed in?

The IEC 61131-3 languages: ladder diagram, function block diagram, structured text, sequential function chart and instruction list. Ladder is the most common on machines.

How long does a PLC last?

Often 15 years or more; replacement is usually forced by obsolescence and spare-part availability rather than wear.

Have a question about your own system?

Send photos or a short description. An engineer will reply with a clear answer and next step.