What Is a PLC?

A Programmable Logic Controller (PLC) is a ruggedized industrial computer designed to control manufacturing processes, machinery, and equipment. Unlike general-purpose computers, PLCs are built to withstand harsh industrial environments — extreme temperatures, vibration, electrical noise — and to operate continuously without failure. They are the backbone of factory automation, used in everything from conveyor systems and packaging lines to water treatment plants and power distribution.

How PLCs Work: The Scan Cycle

A PLC operates on a continuous scan cycle:

  1. Input Scan: The PLC reads the current state of all connected inputs — sensors, switches, buttons, and signals from field devices.
  2. Program Execution: The processor executes the control program top-to-bottom, evaluating logic conditions against the current input states.
  3. Output Scan: Based on program results, the PLC updates all outputs — activating motors, valves, solenoids, indicators, and other actuators.
  4. Housekeeping: Internal diagnostics, communication handling, and memory updates occur before the next cycle begins.

Scan times typically range from 1 to 10 milliseconds for most industrial applications, enabling fast and reliable response to process changes.

PLC Programming Languages

The IEC 61131-3 standard defines five official PLC programming languages:

  • Ladder Diagram (LD): The most widely used language, resembling electrical relay logic schematics. Ideal for technicians with an electrical background.
  • Function Block Diagram (FBD): A graphical language using interconnected function blocks — well suited for process control and signal routing.
  • Structured Text (ST): A high-level, Pascal-like text language. Excellent for complex math, data manipulation, and algorithms.
  • Instruction List (IL): A low-level, assembly-like language. Less common today but still found in legacy systems.
  • Sequential Function Chart (SFC): Graphically represents sequential processes with steps and transitions — ideal for batch processes and machine cycles.

Core Concepts in Ladder Logic

For most beginners, Ladder Diagram is the starting point. Key elements include:

SymbolElementFunction
—| |—Normally Open ContactPasses power when the associated bit is TRUE (1)
—|/|—Normally Closed ContactPasses power when the associated bit is FALSE (0)
—( )—Output CoilEnergized (set to TRUE) when rung is true
—(S)—Set CoilLatches output ON until explicitly reset
—(R)—Reset CoilTurns OFF a previously set coil

Timer and Counter Instructions

Two of the most essential PLC instructions beyond basic logic are timers and counters.

  • TON (Timer On-Delay): Starts timing when the rung goes true; the output activates after the preset time elapses. Used to introduce delays or minimum run times.
  • TOF (Timer Off-Delay): Output activates immediately when rung is true, but stays on for a set period after the rung goes false.
  • CTU (Count Up Counter): Increments its count each time the input transitions from false to true. Output energizes when the count reaches the preset value.

Getting Started: Practical Advice

The fastest way to develop PLC skills is through simulator software. Most major PLC manufacturers — Allen-Bradley (Rockwell), Siemens, Mitsubishi, Omron — offer free or low-cost simulation environments where you can write, test, and troubleshoot programs without real hardware. Build small practice programs: a motor start/stop circuit, a timed sequence, a parts counter. Complexity grows naturally from these building blocks.

PLC programming is a highly transferable skill. An automation technician who can confidently read, write, and troubleshoot PLC programs is a valuable asset in virtually any industrial setting.