Uploaded October 2026 | Updated November 2026, 3 hours ago
Structured text PLC debugging: a live watch panel shows every variable and function block instance updating each scan - a TON's elapsed time, a CTU's count.
โก QUICK ANSWER
Ladder shows you power flow for free. Text shows you nothing, which is why people end up adding scratch registers or print statements just to see what a program is doing. The ACC PLC Simulator's variable watch panel removes that problem entirely: run a structured text program and it displays the current value of every variable and every function block instance, updating every scan. That includes the internal state that is normally invisible - a TON's elapsed time, a CTU's current count - with no debug code written at all. Syntax errors are caught before Run mode and listed with line numbers, and a runtime error stops the program and reports the line it failed on. Free, in a browser, nothing to install. Full guide on the blog.
๐ FULL WRITTEN GUIDE
accautomation.ca/acc-plc-simulator-how-to-use-structured-text-st-programming
๐ฅ๏ธ OPEN THE SIMULATOR AND PRESS ST
accautomation.ca/simulator
โถ WATCH THE FULL VIDEO
youtu.be/B0UDgJnE3DQ
๐ WHAT YOU'LL LEARN
โ Read the live variable watch panel while a structured text program runs, with every value refreshed each scan
โ See inside a function block instance - a TON's elapsed time and a CTU's current count, which are normally hidden state
โ Debug text based PLC logic without adding scratch registers or print statements to make values visible
โ Catch syntax errors before Run mode, listed with the line number, rather than finding them at runtime
โ Trace a runtime error to the line that caused it, from the status bar
โ FREQUENTLY ASKED
Q: How do you debug structured text in a PLC?
A: You need visibility into the variables, because unlike ladder there is no power flow to watch. A live watch panel that shows every variable and function block instance each scan does that job, and it means no scratch registers or temporary outputs just to see a value.
Q: Can I see inside a TON or a CTU?
A: Yes - the panel shows each function block instance, so a TON's elapsed time and a CTU's count are visible as they change. Those are usually the values you actually need when a sequence is not behaving.
๐ The full guide, with every statement and function block: accautomation.ca/acc-plc-simulator-how-to-use-structured-text-st-programming
๐ MORE RESOURCES
โถ Try the free simulator: accautomation.ca/simulator
โถ How I learned structured text in the simulator: youtu.be/B0UDgJnE3DQ
โถ 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
๐ฌ Questions? Drop a comment below.
๐ New tutorials every Monday โ Subscribe and hit the bell!
#PLC #LadderLogic #IndustrialAutomation #PLCProgramming #ACCAutomation #StructuredText #IEC61131 #PLCSimulator #Troubleshooting #Shorts
Regards,
Garry
ACC Automation
accautomation.ca
Structured text PLC debugging: a live watch panel shows every variable and function block instance updating each scan - a TON's elapsed time, a CTU's count.
โก QUICK ANSWER
Ladder shows you power flow for free. Text shows you nothing, which is why people end up adding scratch registers or print statements just to see what a program is doing. The ACC PLC Simulator's variable watch panel removes that problem entirely: run a structured text program and it displays the current value of every variable and every function block instance, updating every scan. That includes the internal state that is normally invisible - a TON's elapsed time, a CTU's current count - with no debug code written at all. Syntax errors are caught before Run mode and listed with line numbers, and a runtime error stops the program and reports the line it failed on. Free, in a browser, nothing to install. Full guide on the blog.
๐ FULL WRITTEN GUIDE
accautomation.ca/acc-plc-simulator-how-to-use-structured-text-st-programming
๐ฅ๏ธ OPEN THE SIMULATOR AND PRESS ST
accautomation.ca/simulator
โถ WATCH THE FULL VIDEO
youtu.be/B0UDgJnE3DQ
๐ WHAT YOU'LL LEARN
โ Read the live variable watch panel while a structured text program runs, with every value refreshed each scan
โ See inside a function block instance - a TON's elapsed time and a CTU's current count, which are normally hidden state
โ Debug text based PLC logic without adding scratch registers or print statements to make values visible
โ Catch syntax errors before Run mode, listed with the line number, rather than finding them at runtime
โ Trace a runtime error to the line that caused it, from the status bar
โ FREQUENTLY ASKED
Q: How do you debug structured text in a PLC?
A: You need visibility into the variables, because unlike ladder there is no power flow to watch. A live watch panel that shows every variable and function block instance each scan does that job, and it means no scratch registers or temporary outputs just to see a value.
Q: Can I see inside a TON or a CTU?
A: Yes - the panel shows each function block instance, so a TON's elapsed time and a CTU's count are visible as they change. Those are usually the values you actually need when a sequence is not behaving.
๐ The full guide, with every statement and function block: accautomation.ca/acc-plc-simulator-how-to-use-structured-text-st-programming
๐ MORE RESOURCES
โถ Try the free simulator: accautomation.ca/simulator
โถ How I learned structured text in the simulator: youtu.be/B0UDgJnE3DQ
โถ 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
๐ฌ Questions? Drop a comment below.
๐ New tutorials every Monday โ Subscribe and hit the bell!
#PLC #LadderLogic #IndustrialAutomation #PLCProgramming #ACCAutomation #StructuredText #IEC61131 #PLCSimulator #Troubleshooting #Shorts
Regards,
Garry
ACC Automation
accautomation.ca










