Can AI Program a PLC?  I Tested It Live in the ACC PLC Simulator! @ACCautomation
Can AI Program a PLC?  I Tested It Live in the ACC PLC Simulator!  @ACCautomation
Uploaded September 2026 | Updated November 2026, 3 hours ago
AI PLC programming tested in the ACC PLC simulator: a conveyor state machine in structured text, a one shot, fail-safe stop, and every test passing.

โšก QUICK ANSWER
AI PLC programming was given one task: write a complete conveyor control program in Structured Text for the ACC PLC simulator, with six I/O points โ€” X1 start normally open, X2 stop normally closed and true at rest, X3 and X4 proximity sensors, Y1 motor run and Y2 direction. What came back was not two lines of boolean logic. Claude produced a full state machine with variable declarations, a one shot on the start button, stop priority that runs before everything else, and a CASE statement handling three states โ€” idle, forward and reverse โ€” with the outputs derived from the state variable at the bottom. It arrived commented, with an I/O table and a sequence description. In the simulator it ran every cycle correctly, survived stop during forward and reverse travel, rapid start presses and power-up. Every test passed. Verifying it still took twenty minutes.

๐Ÿ”Œ THE CONVEYOR SCENE I/O
X1 - Start (normally open)
X2 - Stop (normally closed, true at rest)
X3 - Left proximity sensor
X4 - Right proximity sensor
Y1 - Motor run
Y2 - Direction (off is forward, on is reverse)

๐Ÿ“– FULL WRITE-UP + THE CODE
accautomation.ca/can-ai-program-a-plc-i-tested-it-live-in-the-acc-plc-simulator

โฑ๏ธ TIMESTAMPS
00:00 Can AI Program a PLC?
00:49 The Setup
01:15 What the AI Produced
01:48 The One-Shot
02:14 Stop Priority
02:41 State Transitions
03:09 The Test Results
04:17 Where the Human Is Still Needed
05:00 The Golden Rule
05:34 Try It Yourself

๐Ÿ“š WHAT YOU'LL LEARN
โœ… Write a specification precise enough that an AI can answer it โ€” six I/O points, contact types and the sequence you want
โœ… Read a Structured Text state machine: variable declarations, a CASE statement, and outputs derived from the state at the end
โœ… Understand the one shot โ€” Start_Pulse fires for exactly one scan on the false to true transition, so holding start cannot restart the cycle
โœ… Follow why NOT X2 means stop is pressed, and why running that check first gives correct fail-safe behaviour on a broken wire
โœ… Trace scan order in step mode until you can explain every line, which is the part the AI cannot do for you

โ“ FREQUENTLY ASKED
Q: Can AI program a PLC?
A: It can draft genuinely good code. In this test it produced a commented state machine with a one shot, stop priority and correct fail-safe behaviour, and every simulator test passed. What it cannot do is know your machine or your company standards, or stand behind the result.

Q: Why does NOT X2 mean the stop button is pressed?
A: Because X2 is a normally closed stop, so it reads true while everything is healthy. Press stop, or break the wire, and X2 goes false โ€” which makes NOT X2 true and drops the state to idle. A programmer who misreads that line will misread the whole program.

Q: Did the AI code have any flaws?
A: One worth discussing. If start and stop are pressed in the same scan, the outcome depends on scan order. In most applications you want stop to win unconditionally, which is the kind of thing you only find by tracing the code.

๐Ÿ‘‰ Full write-up and the complete code: accautomation.ca/can-ai-program-a-plc-i-tested-it-live-in-the-acc-plc-simulator

๐Ÿ” THE OTHER SIDE OF THIS TEST
When I ran the same kind of experiment on a Click PLC, the AI got the stop button WRONG โ€” it assumed a normally open stop on normally closed wiring. Worth watching alongside this one: accautomation.ca/using-chatgpt-ai-to-program-a-click-plc

๐Ÿ”— MORE RESOURCES
โ–ถ Try the free simulator: accautomation.ca/simulator
โ–ถ Structured Text in the ACC PLC Simulator: youtu.be/B0UDgJnE3DQ
โ–ถ All 22 rules for AI in PLC programming: accautomation.ca/do-not-use-ai-in-plcs-until-you-see-this
โ–ถ 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 about the results? Drop a comment below.

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

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

Regards,
Garry
ACC Automation
accautomation.ca
Can AI Program a PLC?  I Tested It Live in the ACC PLC Simulator!Is This the Best Browser PLC Sim? #engineering #techWhen wife brings up the past #husbandwifeHow to Set Up Inputs and Outputs Correctly! #plc #automation #tutorialWhen a 3D Scene and Your Gamepad Fight โ€” the Scene Wins!Setting up the AI Conveyor Program Challenge!PLC Start/Stop: The Seal-In Latch Explained!I/O Allocation Problems: The Real Reason Your System Isnt WorkingWhat is a normally closed contact?Stop Button Test Catches the Hidden Problem! ๐Ÿ›‘ #plcprogramming #automationWhy You Need to Use a Drum Sequencer for Traffic Lights #PLC #automation #codingPLC Programming Tutorial: Build a Conveyor System (ACC Simulator)!
ACC Automation: PLC & Industrial Control Learning |

Can AI Program a PLC? I Tested It Live in the ACC PLC Simulator!

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER