🧱 The Suspiciously Fun PLC Series · Track 06Data structures:
Data structures:
tidy your variables.
A pile of loose rSpeed1, rSpeed2, bRun1… is a mess waiting to happen. Custom types let you bundle, name and organise data so a hundred-variable project stays readable. STRUCT, ENUM, UNION and ALIAS come first, then how POUs, GVLs and libraries hold the whole thing together.
Custom types (DUTs)
📦 STRUCT bundles · 🏷️ ENUM names · 🔀 UNION & ALIAS · 🗃️ arrays of structs.
Project shape
🗂️ PROGRAM vs FB vs FUNCTION · GVLs for globals · libraries for reuse.
Pairs naturally with Track 01 (arrays) and Track 03 (OOP). Each chapter stands alone too.