How I Learned Structured Text in the ACC Simulator @ACCautomation
How I Learned Structured Text in the ACC Simulator  @ACCautomation
Uploaded September 2026 | Updated November 2026, 4 days ago
Structured Text in the ACC PLC Simulator: click the ST button, use the same X, Y and C registers as ladder, and write IF, CASE, FOR and TON function blocks.

โšก QUICK ANSWER
Structured Text is the IEC 61131-3 text language that reads like Pascal or C, and the ACC PLC Simulator now runs it as a first-class mode beside ladder โ€” nothing to install, just click ST on the Lang toggle in the toolbar. The important part is the shared I/O model: ladder and ST read and write the same memory, so the same X, Y, C, AX and AY registers work in both modes, and every 3D scene, the Modbus bridge and the gamepad all connect unchanged. The default ST program proves it. Two rungs of start/stop/jog ladder become two lines:
Y1 := (X1 OR (Y1 AND NOT C1) OR X3) AND X2;
C1 := X3;
X1 is start, X3 is jog, X2 is the normally closed stop, and C1 blocks the seal-in while jogging. Same addresses, same behaviour, same scene.

๐Ÿ“– FULL WRITTEN TUTORIAL + CODE SAMPLES
accautomation.ca/acc-plc-simulator-how-to-use-structured-text-st-programming
accautomation.ca/simulator

โฑ๏ธ TIMESTAMPS
00:00 ACC PLC Simulator โ€” How to Use Structured Text (ST) Programming
00:47 Why Learn Structured Text
01:19 Switching to ST Mode
01:46 The Shared I/O Model
02:15 Your First ST Program
03:05 Start Stop Jog in ST
03:54 Control Flow
04:23 Function Blocks
05:05 Variable Watch Panel
05:27 Ladder vs ST Side by Side
06:01 Getting Started Tips

๐Ÿ“š WHAT YOU'LL LEARN
โœ… Switch between ladder and Structured Text with the Lang toggle โ€” the I/O panel, run/stop/step, scene connect, Modbus bridge and gamepad all keep working
โœ… Use the shared I/O model: the same X, Y, C, AX and AY registers in both languages, on the same 3D scenes
โœ… Read a two-line start/stop/jog and see exactly how the seal-in and the jog interlock map from ladder
โœ… Write IF, ELSIF, ELSE, CASE and FOR blocks for analog comparisons, state machines and arrays โ€” all far cleaner than the ladder equivalent
โœ… Call function blocks that hold state across scans: TON with IN, PT and Q, CTU for counting, R_TRIG for a one-scan pulse

โš ๏ธ REMEMBER THE SCAN MODEL
Your whole ST program runs top to bottom every scan. Use function block timers for delays. Never loop to wait โ€” a FOR loop that waits will hang the scan.

โ“ FREQUENTLY ASKED
Q: Why learn Structured Text?
A: Because it travels. Allen-Bradley, Siemens, CODESYS-based platforms, Beckhoff and Schneider all support IEC 61131-3 Structured Text, and job postings increasingly list it as a required skill. It also beats ladder for maths-heavy logic, analog scaling and multi-level conditionals.

Q: Do I have to rebuild my program to switch languages?
A: No. Ladder and ST share the same memory and the same addresses, so a scene connected in ladder mode behaves identically in ST mode.

Q: How do I debug an ST program?
A: The variable watch panel. It shows the live value of every variable and function block instance each scan โ€” the elapsed time inside a TON, the current count of a CTU. It is the best debugging tool in the simulator.

๐Ÿ”— MORE RESOURCES
โ–ถ Launch the free simulator: accautomation.ca/simulator
โ–ถ Simulator help: accautomation.ca/simulator/acc-plc-simulator-help.html
โ–ถ Scene guide: accautomation.ca/simulator/acc-scene-help.html
โ–ถ PLC Beginners Guide: accautomation.ca/programming/plc-beginners-guide
โ–ถ Free eBooks: accautomation.ca (subscribe for download)

๐Ÿ›’ RECOMMENDED HARDWARE
โ–ถ Shop: automationdirect.com
โ–ถ Parts Guide: accautomation.ca/purchase-find-parts

๐Ÿ’ฌ What ST program would you like to see built next? Drop a comment below.

๐Ÿ”” New tutorials every Monday โ€” Subscribe and hit the bell!

#PLC #LadderLogic #IndustrialAutomation #PLCProgramming #ACCAutomation #StructuredText #PLCSimulator #IEC61131 #LearnPLC

Regards,
Garry
ACC Automation
accautomation.ca
How I Learned Structured Text in the ACC SimulatorThe Secret to Faster PLC Learning #plc #programming #shortsThis Free Simulator Does What Expensive Training Cant! #PLC #Learning #AutomationThe Backup Strategy! ๐Ÿ˜‚Unlocking PLC Logic: What Are Contacts? ๐Ÿ”“One Wrong Contact Breaks Your Entire Program #plc #mistake #automationThe Troubleshooting Paradox! ๐Ÿ˜‚One Shot Logic Precision with NO Edge Contacts!Everything You Need to Know About One-Shot InstructionsThe Easiest Way to Practice PLC Programming #learning #plc #engineeringThis PLC Fitness Joke Will Make Every Programmer LaughSee How 5-Step PLC Controls This Entire Conveyor! #automation #coding #shorts
ACC Automation: PLC & Industrial Control Learning |

How I Learned Structured Text in the ACC Simulator

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER