Video thumbnail for Can AI Actually Write PLC Code?  I Put It to the Test...

Can AI Actually Write PLC Code? I Put It to the Test...

Aug 24, 2026
Can AI write PLC code? A hands-on test: ChatGPT and Claude were given the same Click PLC motor control task with a normally-closed wiring gotcha. Both wrote working ladder logic — one with Set/Reset, one with a seal-in. Here is the honest verdict. ⚡ QUICK ANSWER Yes, today's AI can write ladder logic that actually runs. To test it, I gave both ChatGPT and Claude the exact same Click PLC motor control task, with a classic wiring gotcha buried in it: start a motor with the stop and overload wired normally closed (on at rest), plus a two-second warning buzzer before the motor starts. The trap is that a lazy answer uses normally closed contacts in the ladder to match the normally closed buttons, a double negative that would stop the motor from ever starting. Neither AI fell for it. ChatGPT used a Set/Reset latch across seven rungs; Claude used a classic seal-in latch in five rungs. Both handled the wiring correctly, and both produced working programs in two different, valid styles. But there is a catch: they got it right because I gave a clear, specific prompt with the real addresses and the exact sequence. Ask vaguely, and you get generic logic that may not match your wiring. And neither AI thought to hardwire the overload as a backstop, because neither can see your panel. AI can draft correct logic for a task you specify perfectly, but it cannot own the outcome. The full written test and both programs are on the blog below. 📖 FULL WRITTEN TEST + BOTH PROGRAMS + MY RULES FOR AI ON A PLC https://accautomation.ca/can-ai-actually-write-plc-code-i-put-it-to-the-test/ ⏱️ TIMESTAMPS 00:00 Can AI Actually Write PLC Code? I Put It to the Test 00:58 The task I set 01:49 What ChatGPT produced 03:39 What Claude produced 04:29 Both passed — why that matters 04:55 The interesting part: two valid styles 05:37 Why it worked: the prompt 06:12 The one thing I would still add 06:43 I still tested it 07:23 The verdict

View Video Transcript
#Jobs & Education