Industrial PLC · TwinCAT 3 · IEC 61131-3

The TwinCAT 3 Academy

Learn industrial PLC programming the fun way — cookie cutters, vending machines, and donut boxes instead of dry manuals. Twelve interactive tracks plus deep dives, zero spaghetti.

🧭

New here? Follow the path

A recommended order — each stage builds on the last.
The path

Twelve tracks, beginner → hero

🍩01

The Donut Box

ARRAY[1..N] OF …

Arrays from scratch — numbered slots, indexing, reading and writing values. A walk-through you scrub step by step with a box full of donuts.

Fundamentals Interactive walk-through ~10 min
New
🤖02

The Robot Factory

FUNCTION_BLOCK

Your gentle on-ramp to object thinking — why OOP, what a function block is, and how instances roll off the line. The mental model before the deep dive.

Beginner Visual explainer ~12 min
New
🦾03

Zero to Hero

The full OOP course

The flagship. Fifteen chapters across Basics → Reuse → Advanced — function blocks, methods, properties, inheritance, interfaces, pointers, patterns — capped by a certified Hero Test.

Core 15 chapters + exam ~90 min
0 / 15 chapters
New
🧰04

Beyond OOP — Part 4

Power tools

The practical toolkit that makes machines run: timers, state machines, pointers & references, error handling, and the IEC languages (LD vs ST vs FBD) side by side.

Advanced 5 chapters ~45 min
0 / 5 chapters
New
⏱️05

The Scan Cycle

read → run → write

How a PLC actually runs your code, cycle after cycle. The process image, cycle-time budgets & the watchdog, multitasking with priorities, and what survives a reboot. The mental model everything else stands on.

Foundation 5 chapters ~35 min
0 / 5 chapters
New
🧱06

Data Structures

STRUCT · ENUM · UNION

Tidy your variables with custom types. Bundle fields into a STRUCT, name states with an ENUM, reinterpret bytes with a UNION, tabulate with arrays of structs — then file it all into POUs, GVLs and libraries.

Organisation 5 chapters ~35 min
0 / 5 chapters
New
⚙️07

Motion & the Real World

PLCopen · MC_*

Where logic finally moves a motor. Enable an axis with MC_Power, command absolute & relative moves, shape the velocity profile, home & jog — then read an analog sensor and scale raw counts to real engineering units.

Hardware 5 chapters ~40 min
0 / 5 chapters
New
🚦08

The PLCopen State Machine

why MC_ blocks behave

The rulebook under every motion command. An axis is always in one state — Disabled, Standstill, Homing, Moving, Stopping, ErrorStop — and you don't memorise the diagram, you drive it. Ends with the coordinated-group version, clickable.

Concepts 5 chapters interactive diagram
0 / 5 chapters
New
🖥️09

HMI & Connectivity

ADS · OPC UA · MQTT

Give the machine a face and open it to the world. The operator panel, polling vs subscription, a deep dive on ADS (routes, handles, notifications, sum commands & TwinCAT-only tricks), then OPC UA across the plant and MQTT to the cloud. All live toys.

Integration 9 chapters ADS deep dive
0 / 9 chapters
New
🧰10

Platform & Architecture

the bigger picture

The world your code runs in. What an AmsNetId really is and how you reach other brands, how libraries deliver features, the hardware family (CX5060, couplers, Panel-PC-as-CPU), TwinCAT 2 vs 3, and every variable scope mapped.

Platform 5 chapters architecture
0 / 5 chapters
New
🩺11

Diagnostics & Debugging

see inside the machine

The capstone skill: the online view, breakpoints & stepping, write vs force, the event logger & ADS error codes, EtherCAT bus diagnostics (find the dropped slave), and the Scope — plus a method that chases any bug to ground.

Operate 6 chapters ~40 min
0 / 6 chapters
New
🛡️12

Safety · TwinSAFE

the system that says no

Functional safety on the same hardware: why it's an independent layer, the yellow safe I/O terminals, the TwinSAFE logic & FSoE, the monitored E-stop circuit, how safe & standard code coexist, and SIL/PL with the safety lifecycle.

Safety 6 chapters ~40 min
0 / 6 chapters
New
🎭13

Simulation & Digital Twin

the laptop dress-rehearsal

Run the runtime with no hardware. A live donut-glazing line you can run, wind to 20× and break on purpose — then the TwinCAT-specific bit: how Activate onto the local runtime (127.0.0.1.1.1) cycles the real task with a simulated EtherCAT bus, and the SIL → HIL → digital-twin ladder.

Commissioning Interactive line ~15 min
New
🍓14

Recipes & Production Data

one machine, many products

The same donut line makes strawberry rings, choc-sprinkles and sugar minis — without touching the code. Pick a recipe and watch the live line reconfigure itself: the recipe STRUCT, the active copy, the stored set, where TwinCAT keeps them (Tc2_RecipeManagement), and why changeover, repeatability and traceability all hang on this.

Production Live recipe selector ~15 min
New
Deep dives

One topic, all the way down

📨D1

ADS & AmsNetId

expands Track 10 · ch.1

The whole ADS world, taken apart: what ADS actually is (message router), AmsNetId anatomy, ports & services, building routes, the raw services & IndexGroup/Offset addressing, and crossing to other brands, sites & the cloud.

Deep dive 6 chapters ADS internals
0 / 6 chapters
New
📚D2

Libraries & Reuse

expands Track 10 · ch.2

Reuse, all the way down: what a library is, the standard set Beckhoff ships, namespaces & versioning, the repository & references, building & publishing your own, and the versioning discipline that keeps a fleet on one codebase.

Deep dive 8 chapters reuse & versioning
0 / 8 chapters
New
🧱D3

The Hardware Family

expands Track 10 · ch.3

Every box, sorted: brain vs dumb I/O, couplers & terminals (build an island), the CX embedded-PC family, IPCs & Panel-PC-as-CPU, the EtherCAT backbone (watch a frame fly the chain), and sizing the right controller.

Deep dive 6 chapters boxes & EtherCAT
0 / 6 chapters
New
🔀D4

TwinCAT 2 vs 3

expands Track 10 · ch.4

The generation gap in full: the big differences, the Visual-Studio IDE, multi-core real-time, OOP & C++/Simulink modules, which hardware runs which, and the reality of coexistence & migrating a project from 2 to 3.

Deep dive 6 chapters editions & migration
0 / 6 chapters
New
🗂️D5

Variable Scope & Memory

expands Track 10 · ch.5

Who sees what, for how long — fully mapped. The three questions, the INPUT/OUTPUT/IN_OUT interface (by value vs by reference), TEMP/STAT/CONSTANT, globals & AT %I* I/O mapping, RETAIN/PERSISTENT lifetimes, and access modifiers.

Deep dive 6 chapters scope & memory
0 / 6 chapters
New
🧬D6

Data Unit Types (DUTs)

expands Track 06

Every custom type, with a real application: STRUCT for recipes, ENUM for machine modes, UNION for decoding fieldbus data, ALIAS & subrange for clarity & range-safety — then composing them all into a whole production-line model.

Deep dive 6 chapters STRUCT · ENUM · UNION · ALIAS
0 / 6 chapters
New
🔢D7

Elementary Data Types

the built-in atoms

Every built-in type, with the gotchas: BOOL & bit-packing, the integer family & silent overflow, REAL vs LREAL precision, STRING & TIME literals, and converting safely (plus pointers & references).

Deep dive 6 chapters bits · ints · reals · strings
0 / 6 chapters
New
📡D8

Communication Protocols

serial · Modbus · EtherCAT

How a PLC talks to the field: the cyclic-vs-acyclic landscape, serial RS232/RS485, Modbus RTU & TCP (the register model), and EtherCAT (the Beckhoff real-time model) — what each is for, when to use it, and how variables move through each.

Deep dive 6 chapters fieldbus & serial
0 / 6 chapters
New
🦾D9

Robotic Slider Security

industrial cyber · IEC 62443

Lock down the robot on rails. The attack surface of a seventh-axis slider, STRIDE threat modelling, then four chapters deep on IEC 62443 — the framework, Security Levels SL1–4, Zones & Conduits and the Foundational Requirements — closing with secure controller code and a live exploit-vs-defence lab.

Deep dive 8 chapters 62443 & secure PLC code
0 / 8 chapters
New
On the workbench

Brewing next

🔔
New ✓ · just shipped

Alarms & Event Logging

Raise, acknowledge and store machine alarms with TcEventLogger, surface them on the HMI, and keep an audit trail of what happened and when. Now live — open it →