This training manual is a structured collection of 100 practical programming examples for industrial controllers (PLCs) using Structured Text (ST) in accordance with the IEC 61131-3 standard.
The material follows a "from simple to complex" approach, covering all key automation tasks: from basic logic and timers to advanced algorithms for pumping stations, conveyor systems, and integrated production lines.
Key features:
Fully functional code with variable declarations and comments in Russian.
10 thematic sections covering a complete range of industrial applications.
Adapted for CoDeSys and TwinCAT development environments.
Verified for compliance with the IEC 61131-3 syntax.
Perfect for self-study, course projects, and practical work in industrial automation.
Section 1: Basic Logic and Program Structure (Examples 1-10) — Adders, latches, priority logic, Manual/Auto modes.
Section 2: Timers and Counters (Examples 11-20) — TON/TOF, pulse generators, hour meters, CTU/CTD counters.
Section 3: Mathematics and Analog Signals (Examples 21-30) — 4-20 mA scaling, filters, hysteresis, analog alarms.
Section 4: Arrays and FOR Loops (Examples 31-40) — Circular buffers, sorting, search algorithms, shift registers.
Section 5: Strings and Formatting (Examples 41-50) — Message building, parsing, event logging.
Section 6: Diagnostics and Validation (Examples 51-60) — Sensor validation, stuck detection, Watchdog, voting logic (2oo3), state machines.
Section 7: Function Blocks (FB) (Examples 61-70) — SR latches, debouncers, FIFO buffers, PID with manual mode.
Section 8: Pumping Stations (Examples 71-80) — Pump control, load sharing, dry-run protection, star-delta starting.
Section 9: Conveyors and Transport Systems (Examples 81-90) — Synchronization, sorting, buffering, jam detection.
Section 10: Complex Industrial Systems (Examples 91-100) — Filling stations, car washes, parking garages, heat exchangers, and integrated lines.
No feedback yet