Use the Next / Previous buttons above, or press ← → arrow keys. Click the page edges to flip. Each chapter builds on the previous.
A Programmable Logic Controller (PLC) is an industrial digital computer designed for real-time control of manufacturing processes and automated systems. Invented in 1968 by Dick Morley for General Motors, PLCs replaced relay-based control panels. They withstand −20 to +70°C, 95% humidity, 3.5g vibration, and severe electromagnetic interference.
PLCs execute a deterministic scan cycle — reading inputs, running logic, updating outputs — with guaranteed 1–100ms timing, essential for safety-critical control.
| Industry | Application | Key Requirement |
|---|---|---|
| Automotive | Welding robots, assembly lines | <5ms scan, high I/O |
| Oil & Gas | Pipeline, compressor control | SIL 2/3, ATEX rated |
| Water Treatment | Pump control, filtration | SCADA, remote I/O |
| Food & Beverage | Filling, packaging, CIP | IP69K, washdown |
| Building Automation | HVAC, lighting, access | BACnet/Modbus |
| Module | Function | Spec |
|---|---|---|
| CPU | Program execution, memory, comms | 300MHz, 1–4MB RAM |
| Power Supply | 120/240VAC to 24VDC | 24VDC / 5–20A |
| Digital Input | Read ON/OFF from sensors | 16–64 ch, 3ms filter |
| Digital Output | Drive contactors, solenoids | 16–32 ch, 0.5A/ch |
| Analog Input | Read 4-20mA or 0-10V | 8 ch, 16-bit ±0.1% |
| Analog Output | Control VFDs, valves | 4–8 ch, 12–16 bit |
| Comm Module | PROFINET, PROFIBUS, Modbus | 100Mbps, dual-port |
Ladder Logic (LD) is the most-used PLC language, standardized in IEC 61131-3. It looks like relay circuits — contacts are input conditions, coils are outputs, evaluated left-to-right on each rung. Electrical engineers find it immediately familiar.
| Instruction | Symbol | Function |
|---|---|---|
| Normally Open | --| |-- | TRUE when bit=1 (closed) |
| Normally Closed | --|/|-- | TRUE when bit=0 (open) |
| Output Coil | --( )-- | Sets bit TRUE when rung TRUE |
| Latch Coil | --(L)-- | Set and hold until unlatched |
| Unlatch Coil | --(U)-- | Reset a latched bit |
| Rising Edge | --(P)-- | One scan pulse on 0→1 |
Never assign the same output (Q0.0) to two Output Coils. The last rung evaluated wins — earlier assignments are silently overwritten. Use M-bits for intermediate logic.
FBD shows data flowing left-to-right through connected function blocks — ideal for analog processing, PID loops, and signal chains. ST (SCL in TIA Portal) is a high-level Pascal-like language ideal for complex math, state machines, and algorithms.
| Block | Name | Behaviour | Use Case |
|---|---|---|---|
| TON | On-Delay | Q TRUE after IN=TRUE for PT | Motor start delay |
| TOF | Off-Delay | Q stays TRUE for PT after IN=FALSE | Fan run-on |
| TP | Pulse | Q TRUE for exactly PT on rising edge | Fixed pulses |
| CTU | Count Up | CV++ on CU pulse; Q when CV≥PV | Part counting |
| CTD | Count Down | CV-- on CD pulse; Q when CV≤0 | Batch quantity |
| Panel | Screen | Tags | Best For |
|---|---|---|---|
| KTP700 Basic | 7" touch | 500 | Small machines |
| KTP900 Basic | 9" touch | 800 | Mid machines |
| TP1200 Comfort | 12" touch | 2048 | Complex, recipes |
| WinCC Runtime PC | PC | 512K+ | Full plant SCADA |
| Protocol | Speed | Cycle | Best Application |
|---|---|---|---|
| PROFINET IRT | 100Mbps | <1ms | Motion control, high-speed sync |
| PROFINET RT | 100Mbps | 1–10ms | Standard automation |
| PROFIBUS-DP | 1.5Mbps | 2–10ms | Legacy field devices |
| Modbus TCP | 100Mbps | 10–100ms | Third-party, energy meters |
| OPC-UA | 1Gbps | 100ms+ | MES / ERP / Cloud / IIoT |
Only poll at 500ms or faster what operators genuinely need live. Excessive fast polling significantly increases PLC scan time. Audit your HMI tag list regularly.
| SIL | PFD | Applications |
|---|---|---|
| SIL 1 | 10⁻¹–10⁻² | General machinery, light curtains |
| SIL 2 | 10⁻²–10⁻³ | Industrial automation, chemical |
| SIL 3 | 10⁻³–10⁻⁴ | Oil & gas, nuclear, railway |
SIL 2+ requires a certified safety CPU (e.g. S7-1500F). Standard PLCs cannot fulfil SIL 2 regardless of software approach.
| Step | Action |
|---|---|
| 1 — Hardware | Devices & Networks → add CPU, assign IP |
| 2 — Program | OB1 → write Ladder / FBD / SCL |
| 3 — Simulate | PLCSIM → force I/O, test HMI |
| 4 — Download | Online → Download → Run mode |
PLC programming is one of the highest-demand skills in industrial automation. A global shortage of certified automation engineers means strong salaries and rapid promotion for those who invest in proper training.
| Role | Experience | Salary (USD/yr) |
|---|---|---|
| PLC Technician | 0–2 yrs | $42,000 – $62,000 |
| PLC Programmer | 2–5 yrs | $62,000 – $90,000 |
| Automation Engineer | 5–10 yrs | $85,000 – $120,000 |
| Senior Controls Engr. | 10–15 yrs | $110,000 – $150,000 |
| Automation Consultant | 15+ yrs | $130,000 – $200,000+ |
| Certification | Provider | Focus |
|---|---|---|
| Siemens SCCM | Siemens | TIA Portal, S7-1200/1500 |
| CAP | ISA International | Vendor-neutral automation |
| TÜV FS Engineer | TÜV Rheinland | Functional Safety SIL 2/3 |
Days 1–30: Ladder Logic basics, TIA Portal setup. Days 31–60: FBD, ST, HMI, timers. Days 61–90: PROFINET, PID, safety overview, first project. Start at ayetechub.com/courses