AI and machine learning
AI for PLC Programming: Structured Text, TIA Portal and Siemens Eigen
Use ChatGPT, Claude and Siemens' TIA Portal agent to write, convert and test PLC code in Structured Text without trusting it blindly.
AI for PLC Programming: Structured Text, TIA Portal and Siemens Eigen is a free, self-paced online course from EDWartens for PLC programmers, automation engineers and technicians who want to use ChatGPT, Claude and Siemens' TIA Portal agent safely worldwide. It has 13 modules and takes about 17.5 hours, with written notes, a practice task per module, a practical project and a final assessment of 15 questions (pass mark 60%). Learning costs nothing and needs only a free account. The optional EDWartens Certificate of Completion, verifiable by code, is a one-off US$28.99 for you; it is not a vendor credential. Updated 1 November 2026.
- Free
- Intermediate
- 17.5 hours
- Self-paced
- Certificate optional
- Lab practice in your browser
No card, no trial. The course is free for good. Certificate US$28.99, optional.
- Who it is for
- PLC programmers, automation engineers and technicians who want to use ChatGPT, Claude and Siemens' TIA Portal agent safely worldwide
- Jobs
- Roles that use this skill: AI engineer, machine learning engineer, data analyst and automation developer. No course guarantees a job.
- Tools
- CODESYS V3.5 (free) with its built-in simulator; the TIA Portal and PLCSIM trial licences from Siemens; Factory I/O (trial); TwinCAT 3 XAE (free download) with the open-source TcUnit library; a free tier of ChatGPT or Claude; Ollama (free) for a local model. The Siemens Eigen Engineering Agent is optional; Siemens has offered free trials for it, so check whether one is open now. Hardware: A Windows PC that runs TIA Portal or CODESYS (16 GB of RAM is comfortable). No PLC is needed; everything runs in simulation. A local model needs more memory or a GPU; a cloud model needs none.
- Updated


After this course you can
By the end you will be able to:
- Write a PLC specification an AI can follow
- Generate SCL, import it into TIA Portal and fix compile errors
- Translate ladder code and prove the conversion with test cases
- Test AI-written code in PLCSIM, CODESYS and Factory I/O
- Review PLC code against a written checklist
Who it is for, and what you need first
Who it is for
PLC programmers, automation engineers and technicians who want to use ChatGPT, Claude and Siemens' TIA Portal agent safely worldwide.
Level: Intermediate. Intermediate. For PLC programmers, automation engineers and technicians who already write ladder logic or basic Structured Text in TIA Portal, CODESYS, TwinCAT or Studio 5000. You do not need to know anything about AI. Take the Siemens SCL Structured Text or CODESYS course first if ST is new to you.
What you need
Software: CODESYS V3.5 (free) with its built-in simulator; the TIA Portal and PLCSIM trial licences from Siemens; Factory I/O (trial); TwinCAT 3 XAE (free download) with the open-source TcUnit library; a free tier of ChatGPT or Claude; Ollama (free) for a local model. The Siemens Eigen Engineering Agent is optional; Siemens has offered free trials for it, so check whether one is open now..
Hardware: A Windows PC that runs TIA Portal or CODESYS (16 GB of RAM is comfortable). No PLC is needed; everything runs in simulation. A local model needs more memory or a GPU; a cloud model needs none.. What to download, and how.
How this course works
Watch the lessons
Short video lessons, one module at a time, at your own pace.
Read the notes
Open the Reading tab for the written notes and diagrams of the module.
Practise in the 3D labOptional
Try the module in the free 3D lab, in your browser.
Check yourself
Answer the questions to see what stuck before you move on.
Final assessment
Pass the final once you have been through the modules.
Certificate, if you want oneOptional
Optional, with a page anyone can use to verify it.
What you learn
13 modules in order, at your own pace. 17.5 hours of video lessons, with written notes and a practice task in each module.
- 1What AI can and cannot do for a PLC programmer23m
- 2Structured Text refresher for AI work: types, function blocks and CASE state machines49m
- 3Writing a PLC specification an AI can follow: I/O list, sequence and interlocks, with lab practice: 34m
- 4Generating SCL for TIA Portal with ChatGPT or Claude, then importing and compiling1h 0m
- 5Ladder, FBD and legacy code: translation, explanation and migration with AI, with lab practice: 1h 15m
- 6Siemens AI in TIA Portal: Engineering Copilot TIA and the Eigen Engineering Agent1h 11m
- 7CODESYS and TwinCAT with AI: object-oriented function blocks and interfaces1h 38m
- 8AI for tag lists, alarms, comments and documentation41m
Show the other 5 modules
- 9Simulate before the machine: PLCSIM, CODESYS and Factory I/O, with lab practice: 41m
- 10Unit tests for PLC code: TcUnit and test-driven work with AI1h 11m
- 11Code review checklist: scan time, race conditions, retentive data and safety, with lab practice: 1h 3m
- 12A prompt library and a confidentiality policy, with local models as an option47m
- 13Final Assessment
Software you need
What to download, where from, what it costs and how to install it. Every link goes to the maker's own site, never a mirror.
CODESYS alone (free, with its simulator) covers every exercise; TIA Portal with PLCSIM is the Siemens route. TcUnit installs as a library inside TwinCAT 3. The Siemens Eigen Engineering Agent is optional and not needed. Siemens sells it as a subscription and has offered free trials, so check whether one is open now.
Show what to download (8 tools)
One PLC environment
Any one is enough.
- 01Free
CODESYS Development System V3
CODESYS GmbH
- Runs on
- Windows 10 or 11, 64-bit (8 GB RAM and 12 GB free disk recommended)
- Account
- A free CODESYS Store account (one-time registration)
The Development System is free in the CODESYS Store. The setup also installs a demo of the CODESYS Control Win SL SoftPLC, which runs for two hours without a licence and then needs a manual restart.
Steps
- 1.Open the CODESYS Development System page in the CODESYS Store.
- 2.Register once for a free CODESYS Store account and sign in.
- 3.Download the 64-bit setup.
- 4.Run the installer as administrator.
- 5.Start CODESYS Control Win SL from the system tray and connect your project to it.
- When the SoftPLC stops after two hours, restart it from the system tray and log in again.
- Allow at least 12 GB of free disk space.
Official download pagestore.codesys.com - 02Free trial: 21 days
SIMATIC STEP 7 Professional and WinCC (TIA Portal) V21 Trial
Siemens
- Runs on
- Windows 11 Pro or Enterprise 64-bit (24H2), Windows 10 Enterprise 2021 LTSC, or Windows Server 2022/2025. Windows 11 Home is supported only for the Basic editions.
- Account
- A free Siemens account registered for Industry Online Support (SiePortal)
- Size
- about 8.1 GB for the main ISO, plus an optional 3.1 GB DVD 2 with hardware support packages
Siemens lets registered users download the V21 trial of STEP 7 (Basic and Professional), STEP 7 Safety and WinCC and test it for 21 days. The same package is used for the full product; after 21 days you need a purchased licence to keep working.
Steps
- 1.Open the Siemens trial page (entry 109989774) and sign in with your Siemens Industry Online Support account.
- 2.Download TIA_Portal_STEP7_Safety_WinCC_V21.iso (8.1 GB).
- 3.Download S7-PLCSIM_V21.iso (2.5 GB) from the same page: PLCSIM is a separate download.
- 4.Right-click each ISO, choose Mount, and run Start.exe as administrator. Install STEP 7 and WinCC first, then PLCSIM.
- 5.Follow the setup, accept the licence terms and restart the PC when asked.
- 6.Open TIA Portal V21 and create a new project to confirm it runs.
- Install from a local drive with plenty of free space; Siemens lists 20 GB free as the minimum and the ISOs alone are over 10 GB.
- You only need DVD 2 if you want extra hardware support packages.
- If you cannot install locally, Siemens also offers a 21-day TIA Portal Cloud trial in the browser (one-hour sessions, not in every country).
Official download pagesupport.industry.siemens.comAlternatives
- TIA Portal Cloud trial: 21 days free in a cloud virtual machine, no install. Sessions are limited to one hour and it is not available in every country.
One AI assistant
Any one is enough.
- 03Free plan with limits
ChatGPT
OpenAI, in the browser
- Runs on
- Any modern web browser, plus mobile and desktop apps
- Account
- A free OpenAI account
The Free plan allows everyday text chats. File uploads, image creation, voice and data analysis have tighter limits than paid plans, and ads may appear in some countries. Paid plans raise the limits.
Steps
- 1.Open chatgpt.com.
- 2.Click Sign up and create an account with your email, or a Google, Microsoft or Apple account.
- 3.Verify your email and confirm your details.
- 4.Type your question in the message box.
- Do not paste personal data, passwords or confidential work files.
- ChatGPT tells you when you reach a limit. Wait for it to reset or switch to a lighter task.
Open ChatGPTchatgpt.com - 04Free plan with limits
Claude
Anthropic, in the browser
- Runs on
- Any modern web browser, plus desktop and mobile apps
- Account
- A free Claude account (you must be 18 or over)
The Free plan covers chat on web, desktop and mobile, web search, file creation and Artifacts. Usage limits reset on a rolling five-hour window and depend on message length and features used. Paid plans give more usage.
Steps
- 1.Open claude.ai (or see the plans at claude.com/pricing).
- 2.Sign up with your email or Google account and confirm your email.
- 3.Confirm you are 18 or over and accept the terms.
- 4.Type your question in the message box.
- Long conversations and large files use up your limit faster. Start a new chat for a new topic.
- Do not paste personal data or confidential work files.
Open Claudeclaude.com - 05Free
Ollama
Ollama Inc.
- Runs on
- macOS 14 Sonoma or later, Windows 10 or later, Linux
- Account
- None needed
Ollama is free and open source (MIT licence). Each model you download has its own licence; check it before commercial use.
Steps
- 1.Open ollama.com/download and pick your system.
- 2.On Windows run OllamaSetup.exe; on macOS open the DMG; on Linux run: curl -fsSL https://ollama.com/install.sh | sh
- 3.Open a terminal and run a small model, for example: ollama run <model name> (browse names on ollama.com).
- 4.Type a question at the prompt. Type /bye to exit.
- Models are several GB each. Check your free disk space first.
- More RAM, or a supported GPU, lets you run larger models faster.
- On Windows you can also install from PowerShell: irm https://ollama.com/install.ps1 | iex
Official download pageollama.com
Optional
Useful, not needed to finish the course.
- 06Free trial: 21 days
S7-PLCSIM V21 (TIA Portal) Trial
Siemens
- Runs on
- Windows 11 Pro or Enterprise 64-bit (24H2), Windows 10 Enterprise 2021 LTSC, or Windows Server 2022/2025. Windows 11 Home is supported only for the Basic editions.
- Account
- A free Siemens account registered for Industry Online Support (SiePortal)
- Size
- about 2.5 GB (ISO)
S7-PLCSIM V21 is offered as a 21-day trial on the same Siemens page as the STEP 7 and WinCC V21 trial. It needs STEP 7 V21 installed on the same PC.
Steps
- 1.Open the Siemens STEP 7 and WinCC V21 trial page (entry 109989774) and sign in.
- 2.Install STEP 7 V21 from the main TIA Portal ISO first.
- 3.Download S7-PLCSIM_V21.iso (2.5 GB) from the section Download S7-PLCSIM Standard V21.
- 4.Mount the ISO, run Start.exe as administrator and follow the setup.
- 5.In TIA Portal, select your CPU and click Start simulation to open PLCSIM.
- Siemens notes that the PLCSIM Standard V21 installation also includes S7-PLCSIM Advanced V8.0.
Official download pagesupport.industry.siemens.com - 07Free
TwinCAT 3 Engineering (XAE)
Beckhoff Automation
- Runs on
- Windows 10 or 11
- Account
- A free myBeckhoff account
The basic version of TwinCAT 3 Engineering is free of charge and can be installed on any number of PCs. Runtime and function licences can be covered by 7-day trial licences created in the engineering tool, which you can renew as often as you need.
Steps
- 1.Register for a free myBeckhoff account on beckhoff.com.
- 2.Download the TwinCAT Package Manager from the Beckhoff download finder.
- 3.Install the Package Manager, sign in with your myBeckhoff account and install TwinCAT 3 Engineering (XAE).
- 4.Create a PLC project and set your own PC as the target.
- 5.When asked, activate a 7-day trial licence and enter the security code shown.
- Trial licences cannot be put on a licence dongle; they bind to the target PC.
- PLC programming works in the free Visual Studio shell; C++ needs a full Visual Studio.
Official download pagebeckhoff.com - 08Free trial: 30 days
Factory I/O
Real Games
- Runs on
- Windows 7 SP1 or newer, with a graphics card from 2006 (NVIDIA, AMD) or 2012 (Intel) onwards
- Account
- Your name and email on the Factory I/O trial form
The 30-day trial includes the full Ultimate Edition. After that you need a paid edition; the Siemens, Allen-Bradley, Modbus and OPC, MHJ, Automgen and Starter editions each support different PLCs.
Steps
- 1.Open the Factory I/O start trial page.
- 2.Enter your name and email and start the trial.
- 3.Download and install Factory I/O.
- 4.Open a sample scene and connect it to your PLC or PLC simulator.
- 5.Before the trial ends, choose the edition that matches your PLC.
- Choose the edition by the PLC you will use: for example the Siemens edition works with S7-PLCSIM.
- The Starter edition has its own built-in PLC simulator if you have no PLC software.
Official download pagefactoryio.com
Checked against each maker's own page on 27 September 2026. Trial lengths and editions change; the maker's page is the final word.
Practise in the 3D lab
Test PLC logic in the PLC lab the way you must test AI-written code: build it, force the inputs and faults, and pass the lab's checks before it goes near a machine.
- Motor start/stop with overloadPLC lab, about 45 minOpen in the lab (opens in a new tab): Motor start/stop with overload
- Forward/reverse conveyorPLC lab, about 60 minOpen in the lab (opens in a new tab): Forward/reverse conveyor
- Batch counter on a packing linePLC lab, about 45 minOpen in the lab (opens in a new tab): Batch counter on a packing line
- Duty and standby pumpsPLC lab, about 75 minOpen in the lab (opens in a new tab): Duty and standby pumps
Optional. Skip it whenever you like: it never blocks your progress or your certificate.
Course project, about 14 hours
Two-pump lead/lag effluent sump: specify, generate with AI, simulate, unit-test and review the PLC code
Write the specification for a two-pump lead/lag sump with alternation, standby and alarms. Have an AI draft the function block in SCL or ST, test it in a simulator and with unit tests, and submit a review log of every defect it introduced.
- 5documents in the pack
- 6steps to follow
- Laboptional: in the 3D lab
- 7things to hand in
- 14 hof work, at your pace
- FDSFunctional specification: effluent sump lead/lag pump control
- I/O listEffluent sump pump control signals
- FATSimulation test record: FB_PumpLeadLag in PLCSIM
- Punch listReview log: defects in the AI draft of FB_PumpLeadLag
- ReportGeneration log and conclusion: was the AI route worth it?
Do it in the lab: 5 steps.
The project is optional practice. The certificate needs only the modules and the final assessment.
After the course, your next step
Show what you can do, then keep going in the same field.
A certificate you can verify
Finish the modules and pass the final assessment (15 questions, pass mark 60%) and you can add a certificate with a public verification page. One-off, US$28.99 for you. It is not a vendor credential.
Want a free certificate? Do the matching Free internship: 4 weeks, nothing to buy, with a free certificate of completion.

Generative AI and Prompt Engineering
Eight short weeks of how language models work, prompting that gets better answers, and the risks to manage: notes, diagrams, a few videos and worked exercises. Finish weeks 1 to 4 and the final, then claim a free Internship Completion Certificate with your real dates and study hours, and a QR code anyone can scan to verify it. Training, not employment.
See the internshipMore free courses
Roles that use this skill
- AI engineer
- Machine learning engineer
- Data analyst
- Automation developer
These are the kinds of roles where the skill is used. We make no promise of a job or an interview.
Plain notes
- Free: the whole course, the notes, the practice tasks, the final assessment and support from practising engineers.
- Paid, and optional: the course certificate, and the Engineer-verified internship (the Free internship costs nothing).
- No job promise: the course teaches a skill. It does not place you in a job.
- Lessons by: ControlByte Automation, Tim Wilborne, ACC Automation, SquishyBrained, RealPars, Hegamurl, Grollmus, Siemens, Siemens Knowledge Hub, PLCskilltree, CODESYS Group, Jakob Sagatowski. Independent creators; the lessons stream from their own channels. EDWartens wrote the study plan, notes, practice tasks and assessments.
ControlByte Automation · Tim Wilborne · ACC Automation: PLC & Industrial Control Learning · SquishyBrained · RealPars · Tohid Alizadeh · Hegamurl · ELSCITECH · PLCskilltree · Grollmus | TIA Portal & Automatisierung · Siemens · Siemens Knowledge Hub · Antomatix · CODESYS Group · Beckhoff Automation USA · zeller automation and plc · Engineering made Easy (Ing ME) · Ngoza Automation Solutions · plcgoods · Jakob Sagatowski · Diligent Automation · S4 Events · Hamed Adefuwa. If you are one of these creators and want a lesson removed or credited differently, write to info@edwartens.com.
Practise what you learn in the free 3D lab
Technical work is judged on what you can do: wiring, commissioning, finding a fault. Doing a task yourself teaches more than watching it a second time, and a lab lets you try it safely before you meet real equipment. It does not replace working on real hardware.
- Practise safely, so a mistake costs nothing.
- The lab checks your work like a site test, so you know when it is right.
- Free, in your browser, with nothing to install.
Why learn with EDWartens
What you get with this course, and what comes after it.
- Free from the first lesson to the final assessment.
- Practice in a free 3D lab in your browser, with nothing to install.
- Video lessons with written notes and a project.
- An optional certificate that anyone can verify online.
- Free internships to keep practising afterwards.
Common questions
Who is this AI for PLC programming course for?
It is for PLC programmers, automation engineers and technicians who already write ladder logic or basic Structured Text in TIA Portal, CODESYS, TwinCAT or Studio 5000 and want to use ChatGPT, Claude or Siemens' TIA Portal agent without risking the machine. Plant and system-integrator engineers worldwide are a large part of the audience. You need no AI background.
Can ChatGPT or Claude write PLC code?
Yes, they can draft Structured Text and SCL quickly. The course shows how convincing and how wrong those drafts can be. Every block is specified first. It is then compiled, simulated, unit-tested and reviewed against a checklist before it goes near a machine. Safety functions are never generated by AI.
What is the Siemens Eigen Engineering Agent?
It is Siemens' AI agent inside TIA Portal and the successor to Engineering Copilot TIA. It has been generally available since April 2026 as a subscription. Siemens has offered free trials, so check whether one is open now. Siemens lists TIA Portal V19, V20 and V21. The course explains what it does, where its data goes and how to trial it fairly. It is optional, and every exercise can be done with free tools.
What software do I need?
CODESYS (free) or the TIA Portal and PLCSIM trial, a free tier of ChatGPT or Claude, and optionally TwinCAT 3 with TcUnit, Factory I/O and Ollama for a local model. No PLC hardware is needed.
Is the course free to learn?
Yes. Every module, the notes, the worked problems, the project and the final assessment are free. Only the certificate is paid, if you want one.
How long does the AI for PLC Programming course take?
About 17 hours of video, notes and practice at your own pace, of which about 11 hours is video. The optional pump-station project takes about 14 hours more.
What certificate does the AI for PLC Programming course give?
An EDWartens Certificate of Completion, issued when you pass the 15-question final at 60 percent, with a number anyone can verify on our site. It is not a Siemens, Beckhoff, CODESYS or Rockwell certification.
What should I take before or after this course?
Take Siemens SCL Structured Text in TIA Portal or CODESYS and IEC 61131-3 Programming first if Structured Text is new to you. AI Coding for Engineers goes deeper into coding agents, and Siemens TIA Portal with Factory I/O gives more virtual commissioning practice.
Do I have to use the lab?
No. The lab is optional practice. You can skip it whenever you like, and it never blocks your progress, the final assessment or your certificate.
Is the lab free?
Yes. Every lab level for this course opens in your browser, free, with nothing to install.
What topics does the AI for PLC Programming course cover, module by module?
The AI for PLC Programming course has 13 modules. It opens with "What AI can and cannot do for a PLC programmer", goes through "Structured Text refresher for AI work: types, function blocks and CASE state machines", "Ladder, FBD and legacy code: translation, explanation and migration with AI", "Simulate before the machine: PLCSIM, CODESYS and Factory I/O" and "A prompt library and a confidentiality policy, with local models as an option" and ends with "Final Assessment". The full list with minutes is under "What you learn" on this page.
What can I do after the AI for PLC Programming course?
After the AI for PLC Programming course: Decide which PLC tasks to give an AI model and which never to, and why safety logic stays out; Write an I/O list, sequence, interlock table and alarm list that an AI can code from without guessing; Generate SCL with ChatGPT or Claude, import it into TIA Portal as an external source and fix its errors. These are the practical outcomes the course is written around, and the final assessment of 15 questions checks them.
What software and hardware do I need for the AI for PLC Programming course, and does it cost anything?
For the AI for PLC Programming course, software: CODESYS V3.5 (free) with its built-in simulator; the TIA Portal and PLCSIM trial licences from Siemens; Factory I/O (trial); TwinCAT 3 XAE (free download) with the open-source TcUnit library; a free tier of ChatGPT or Claude; Ollama (free) for a local model. The Siemens Eigen Engineering Agent is optional; Siemens has offered free trials for it, so check whether one is open now. Hardware: A Windows PC that runs TIA Portal or CODESYS (16 GB of RAM is comfortable). No PLC is needed; everything runs in simulation. A local model needs more memory or a GPU; a cloud model needs none. The course itself is free.
Is the AI for PLC Programming course suitable for me, and what level is it?
AI for PLC Programming is rated intermediate. Intermediate. For PLC programmers, automation engineers and technicians who already write ladder logic or basic Structured Text in TIA Portal, CODESYS, TwinCAT or Studio 5000. You do not need to know anything about AI. Take the Siemens SCL Structured Text or CODESYS course first if ST is new to you. It is written for PLC programmers, automation engineers and technicians who want to use ChatGPT, Claude and Siemens' TIA Portal agent safely worldwide, and takes about 17.5 hours at your own pace.
Which jobs use the skills from the AI for PLC Programming course?
Skills from the AI for PLC Programming course (for example: decide which PLC tasks to give an AI model and which never to, and why safety logic stays out) are used in roles such as AI engineer, machine learning engineer, data analyst and automation developer, and in PLC programmer work. The course gives you practical evidence of the skill; it does not promise a job, and employers decide on experience and interview.
Start free today
AI for PLC Programming: Structured Text, TIA Portal and Siemens Eigen, at your own pace. Add the certificate only if you want one.