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
AI for PLC Programming: Structured Text, TIA Portal and Siemens Eigen course cover
AI for PLC Programming: Structured Text, TIA Portal and Siemens Eigen course cover

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

  1. Watch the lessons

    Short video lessons, one module at a time, at your own pace.

  2. Read the notes

    Open the Reading tab for the written notes and diagrams of the module.

  3. Practise in the 3D labOptional

    Try the module in the free 3D lab, in your browser.

  4. Check yourself

    Answer the questions to see what stuck before you move on.

  5. Final assessment

    Pass the final once you have been through the modules.

  6. 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.

  1. 1What AI can and cannot do for a PLC programmer23m
  2. 2Structured Text refresher for AI work: types, function blocks and CASE state machines49m
  3. 3Writing a PLC specification an AI can follow: I/O list, sequence and interlocks, with lab practice: 34m
  4. 4Generating SCL for TIA Portal with ChatGPT or Claude, then importing and compiling1h 0m
  5. 5Ladder, FBD and legacy code: translation, explanation and migration with AI, with lab practice: 1h 15m
  6. 6Siemens AI in TIA Portal: Engineering Copilot TIA and the Eigen Engineering Agent1h 11m
  7. 7CODESYS and TwinCAT with AI: object-oriented function blocks and interfaces1h 38m
  8. 8AI for tag lists, alarms, comments and documentation41m
Show the other 5 modules
  1. 9Simulate before the machine: PLCSIM, CODESYS and Factory I/O, with lab practice: 41m
  2. 10Unit tests for PLC code: TcUnit and test-driven work with AI1h 11m
  3. 11Code review checklist: scan time, race conditions, retentive data and safety, with lab practice: 1h 3m
  4. 12A prompt library and a confidentiality policy, with local models as an option47m
  5. 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.

  1. 01

    CODESYS Development System V3

    CODESYS GmbH

    Free
    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.

    Official download pagestore.codesys.com
  2. 02

    SIMATIC STEP 7 Professional and WinCC (TIA Portal) V21 Trial

    Siemens

    Free trial: 21 days
    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.

    Official download pagesupport.industry.siemens.com

    Alternatives

    • 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.

  1. 03

    ChatGPT

    OpenAI, in the browser

    Free plan with limits
    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.

    Open ChatGPTchatgpt.com
  2. 04

    Claude

    Anthropic, in the browser

    Free plan with limits
    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.

    Open Claudeclaude.com
  3. 05

    Ollama

    Ollama Inc.

    Free
    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.

Optional

Useful, not needed to finish the course.

  1. 06

    S7-PLCSIM V21 (TIA Portal) Trial

    Siemens

    Free trial: 21 days
    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.

    Official download pagesupport.industry.siemens.com
  2. 07

    TwinCAT 3 Engineering (XAE)

    Beckhoff Automation

    Free
    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.

  3. 08

    Factory I/O

    Real Games

    Free trial: 30 days
    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.

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.

Build a ladder rungWatch

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.

This project at a glance
  1. 5documents in the pack
  2. 6steps to follow
  3. Laboptional: in the 3D lab
  4. 7things to hand in
  5. 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.

Sample EDWartens Certificate of Completion for AI for PLC Programming: Structured Text, TIA Portal and Siemens Eigen

Sample. The issued certificate carries your name, your final score, a certificate ID and a QR code that opens its verification page.

Optional

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.

Hands typing on a laptop at a wooden desk with a notebook, glasses and coffee.
Free · 4 weeks · free certificate

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 internship

More 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.