Skip to main content

PLC — Programmable Logic Controllers

CONTROLIEC 61131 · ISA-95 L1 · Fieldbus

Programmable Logic Controllers

A Programmable Logic Controller (PLC) is a ruggedised digital industrial computer designed to continuously monitor inputs and make decisions to control outputs in real time. PLCs are the backbone of ISA-95 Level 1 control — found in virtually every automated production facility worldwide.

IEC 61131-3 Standard
Scan-cycle Architecture
5 Programming Languages

What Is a PLC?

A PLC is a solid-state industrial control system that executes a stored program to control industrial machinery and processes. Unlike a general-purpose PC, it is designed for harsh industrial environments: extreme temperatures, electrical noise, vibration, and humidity. The PLC continuously executes a scan cycle — reading inputs, executing the control program, and updating outputs — hundreds of times per second.

PLCs replaced electromechanical relay panels starting in the late 1960s. They offer the same ladder-logic programming paradigm but with the ability to reprogram without rewiring, self-diagnostics, and communication capabilities.

Brief History

1968

Dick Morley (Bedford Associates) invents the first PLC — Modicon 084 — for General Motors. Replaces relay cabinets.

1973

Modicon introduces Modbus protocol, the first industrial communication standard for PLCs.

1979

Allen-Bradley introduces the PLC-3 with remote I/O capability; Siemens releases the SIMATIC S5 series.

1993

IEC 61131-3 published — standardises 5 PLC programming languages (LD, FBD, ST, IL, SFC).

2003

Ethernet-based fieldbuses (PROFINET, EtherNet/IP) begin displacing serial fieldbus protocols.

2013

IEC 61131-3 3rd edition adds object-oriented extensions; IL language deprecated.

2020s

Software PLCs, cloud-connected edge PLCs, and AI-assisted programming tools emerge (IIoT era).

Hardware Architecture

A modern PLC is a modular system. The core modules communicate over a high-speed internal backplane bus. This modularity allows systems to be sized from a few I/O points (nano PLCs) to thousands of I/O points (rack-based systems).

Power Supply (PSU)
Converts mains AC (120/240 V) or 24 VDC supply into regulated 5 VDC backplane power and 24 VDC for field sensors. Includes short-circuit and overcurrent protection.
CPU Module
The brain of the PLC. Contains the microprocessor (RISC/CISC), program memory (flash/EEPROM), data memory (RAM/NVRAM), real-time clock, and the operating system that executes the scan cycle.
Digital Input (DI)
Reads discrete ON/OFF signals from field devices: push buttons, proximity switches, limit switches, reed contacts. Typical voltage: 24 VDC or 120/240 VAC. Provides galvanic isolation.
Digital Output (DO)
Switches discrete field devices: solenoids, contactor coils, indicator lamps, small relays. Output types: transistor (PNP/NPN), relay, or triac.
Analog Input (AI)
Converts continuous signals to digital values. Accepts: 4–20 mA, 0–10 V, RTD (Pt100/Pt1000), thermocouple (J/K/T types). Typical resolution: 12–16 bit.
Analog Output (AO)
Generates continuous control signals: 4–20 mA or 0–10 V for controlling variable-speed drives, control valves, proportional actuators.
Communications Module
Provides fieldbus (PROFIBUS, DeviceNet), Industrial Ethernet (PROFINET, EtherNet/IP), serial (RS-232/RS-485/Modbus RTU), and USB/OPC-UA connectivity.

IEC 61131-3 Programming Languages

The IEC 61131-3 standard (1993, revised 2013) defines five programming languages for PLCs, enabling code portability across vendors. All five languages can coexist within a single project, each used where it is most appropriate.

LanguageTypeBest ForStatus
Ladder Diagram (LD)GraphicalDiscrete I/O, relay replacement, North American industryActive
Function Block Diagram (FBD)GraphicalProcess control, signal flow, continuous systemsActive
Structured Text (ST)TextualComplex algorithms, data processing, strings, mathsActive
Sequential Function Chart (SFC)GraphicalSequential batch processes, state machinesActive
Instruction List (IL)TextualLow-level mnemonic (legacy only)Deprecated

The PLC Scan Cycle

The PLC executes its program in a continuous, deterministic loop called the scan cycle. Unlike event-driven computing, the PLC processes its entire program every cycle, regardless of whether inputs have changed. This guarantees deterministic behaviour critical for safety and process control.

1
Read Inputs

All physical input states are copied to the Process Image Input (PII) table in RAM. The program works from this snapshot throughout the cycle.

2
Execute Program

The CPU processes all program instructions (ladder rungs, function blocks, ST statements) sequentially, reading from PII and writing results to Process Image Output (PIQ).

3
Write Outputs

The PIQ table is transferred to the physical output modules, activating solenoids, drives, and other actuators.

4
Service Communications

The CPU processes pending communication requests: HMI data exchange, fieldbus messages, remote I/O updates, peer-to-peer messaging.

5
System Diagnostics

The OS checks memory integrity, watchdog timer, module health, and system housekeeping. If a fault is detected, the PLC halts and generates an alarm.

Major PLC Manufacturers

VendorProduct FamilyProtocol EcosystemMarket Strength
SiemensSIMATIC S7-1200 / S7-1500PROFINET · PROFIBUS · OPC-UAEurope, Automotive, Process
Rockwell AutomationAllen-Bradley ControlLogix / CompactLogixEtherNet/IP · DeviceNetNorth America, Discrete Mfg.
Mitsubishi ElectricMELSEC iQ-R / Q / L seriesCC-Link IE · SLMPAsia-Pacific, Automotive
OmronSYSMAC NX / NJ / CP seriesEtherCAT · EtherNet/IPAsia, Packaging, Robotics
ABBAC500 / AC500-S (Safety)PROFINET · Modbus · OPC-UAEnergy, Marine, Process
Schneider ElectricModicon M340 / M580EtherNet/IP · Modbus TCPEMEA, Buildings, Water
BeckhoffCX / EK / TwinCAT Software PLCEtherCAT · OPC-UAMachine builders, IIoT
B&R AutomationX20 / X90 / Power PanelPOWERLINK · OPC-UAMotion, Plastics (ABB Group)

PLC vs DCS vs SCADA — Key Differences

FeaturePLCDCSSCADA
Primary UseDiscrete / sequential controlContinuous process controlSupervisory monitoring & control
Response Time1–100 ms100 ms–1 s1–60 s (operator-driven)
ArchitectureCentralised or distributedDistributed control stationsCentral server with remote RTUs/PLCs
ProgrammingIEC 61131-3 (LD/FBD/ST)Proprietary + IEC 61131-3Graphical scripting (VBA/Python)
I/O ScaleTens to thousands of I/OHundreds to tens of thousandsThousands via remote RTUs
CostLow–MediumHighMedium–High (software)
RedundancyOptional (hot-standby)Built-in by designSoftware/server redundancy
IndustryManufacturing, machine OEMOil & Gas, Chemical, PowerWater/Wastewater, Pipeline, Utilities

Typical PLC Applications

Conveyor Systems
Motor sequencing, speed, jam detection
Packaging Lines
Fill, seal, label, palletise
Automotive Assembly
Robotic welding, paint, press lines
Water Treatment
Pump control, dosing, filtration
Building Automation
HVAC, lifts, fire suppression
Food & Beverage
CIP, batch cooking, filling
Power Generation
Turbine control, switchgear, BOP
Oil & Gas
Pipeline monitoring, compressors
Semiconductor
Cleanroom equipment, wafer handling

Industrial Control Panel Schematic (Technical Descriptions)

Industrial Control Panel Schematic
VFD (Variable Frequency Drive)
Purpose:Regulates motor speed and torque by adjusting the power supply frequency.
Fail-Safe Remote I/O / Safety Gateway (Red unit labeled "PLC")
Purpose:A specialized safety module dedicated to managing safety-related functions (e.g., emergency stop circuits or light curtains). Despite the "PLC" label, it acts as an interface that communicates critical safety data to the main controller via green PROFINET cables. Its distinct red color indicates its role in personnel protection.
Industrial Ethernet Switch (Unit SW1)
Purpose:A PROFINET industrial switch that acts as a network distributor. It links the main controller with other cabinet devices and the external network.
PLC CPU S7-1200 (Unit E1)
Purpose:The central processing unit equipped with integrated I/O cards. It executes the control logic for both standard and safety tasks.
Extension Module SM 1223 (Unit E2)
Purpose:A specific expansion module (SM 1223) providing additional digital input and output channels for sensors and actuators.
XPS1 Safety Relay (Red unit)
Purpose:Hardwired safety monitoring that ensures a direct power cut-off during emergencies.
Connectivity:The XPS1 is physically connected to the emergency stop and the grey/black door interlock (which currently has the key inserted).
Terminal Blocks (Bottom strip X0–X4)
Purpose:Physical termination points for field wiring, using screw clamp terminal bases to ensure secure electrical connections.
Was this page helpful?

PLC Hardware Architecture

POWERSUPPLY24 VDC120/240 VAC→ 5 VDC→ 24 VDCPSUCPU MODULEProcessor (RISC/CISC)Program Memory (Flash)Data Memory (RAM / NVRAM)Real-Time ClockOS / FirmwareScan time: 1–100 msCOMMSEthernet / PROFINETEtherNet/IPPROFIBUS DPModbus RTU/TCPUSB / SerialRemote I/O BusI/O BUS (BACKPLANE)DIDigitalInputDODigitalOutputAIAnalogInputAOAnalogOutputSPLSpecialI/OFIELD DEVICES — Sensors · Actuators · Drives · Valves
Modular PLC hardware architecture — IEC 61131-2 compliant

Modular Design

Modular PLCs allow hot-swap of I/O modules in some product families (e.g. Siemens S7-1500 with I-Device). Safety-rated modules carry TÜV certification and integrate seamlessly with standard modules on the same backplane.