Ai-Ready Plc Engineering: What's New In Tia Portal V21 And Codesys 4
AI-Ready PLC Engineering: What's New in TIA Portal V21 and CODESYS 4
AI coding tools are changing how software is written – and PLC code is next. AI assistants work with text: they read files, propose changes and explain differences. To use them safely in automation, PLC code has to live in Git, and every change has to be built and tested automatically before it reaches a machine.
In the last year both leading engineering platforms took that step. Siemens TIA Portal V21 adds a Git-ready text export and an AI Engineering Copilot. CODESYS 4 stores the whole project as text and builds it from the command line. This article covers what is new in both development environments, and the controllers that make the most of them: the Siemens SIMATIC S7-1200 G2 and ODOT CODESYS controllers.
TIA Portal V21 – what's new
Siemens presented TIA Portal V21 at SPS in November 2025. Its new export format, in Siemens' words, enables "seamless integration of established version control systems such as Git for the first time."
Git and CI/CD workflows
LAD, FBD, SCL, data blocks, PLC data types and mixed-language blocks can now be exported as text. Changes can be compared line by line, branched, merged and reviewed – the basis for CI/CD pipelines in the Siemens world.
AI Engineering Copilot
The integrated Engineering Copilot generates SCL blocks and HMI screens from natural-language prompts and helps engineers understand existing code and libraries. Together with the Git export, it brings AI-assisted engineering directly into TIA Portal.
Automatic change log
Every change is logged automatically with a timestamp, the user name and a link to the changed object, so teams always know who changed what.
WinCC Unified redundancy and Data Hub
WinCC Unified SCADA can run on redundant servers for higher plant availability, and the new WinCC Unified Data Hub archives production data, alarms and audit trails centrally.
Flexible deployment
TIA Portal V21 is available on-premises, as a subscription and in the cloud.
Siemens SIMATIC S7-1200 G2 – the new compact CPU

The SIMATIC S7-1200 G2 (CPU 1212C, 1214C and fail-safe 1212FC, 1214FC) is the new generation of Siemens compact controllers. It builds on the proven S7-1200 platform with more performance, better connectivity and integrated safety.
Full OPC UA
The most important change for connected applications: the S7-1200 G2 gets full OPC UA. With firmware V4.1 and TIA Portal V21, the compact CPU works as an OPC UA server and client, supports OPC UA methods and an expanded node set, and uses TLS 1.3 by default. This gives a direct, standard connection from a small PLC to SCADA, MES and cloud platforms – without gateways or extra hardware.
S7-1200 G2 at a glance
| S7-1200 (G1) | S7-1200 G2 | |
|---|---|---|
| Bit instruction time | 85 ns | 37 ns |
| OPC UA | Limited | Full OPC UA (server, client, methods) |
| Program / data memory (1214) | – | 250 / 750 kB (F-CPU 300 / 750 kB) |
| PROFINET | Standard | 2 ports, IRT, up to 31 devices |
| Motion | Basic | Typically 4, max. 10 positioning axes |
| Safety | Separate licence | Integrated, no extra safety licence from TIA Portal V20 |
| Diagnostics | Display / web server | NFC readout via smartphone |
| Security | – | IEC 62443-4-2 certified |
Why the G2 is better
- More than twice the bit performance of the first generation
- Full OPC UA for IT/OT and cloud connectivity
- Integrated safety on F-CPUs without an extra licence
- Up to 10 positioning axes for compact motion applications
- NFC diagnostics directly on a smartphone
- Narrower housing for space-saving control cabinets
- Security certified to IEC 62443-4-2
Existing S7-1200 projects move to the G2 with a Siemens migration tool. Firmware V4.1 is configured in TIA Portal V21.
CODESYS 4 – what's new
CODESYS 4 version 1.0.0.0 was released in September 2026. It is designed for Git, automation and AI-assisted workflows from the first file: a project is a folder of JSON, XML and plain-text files, with no proprietary binary format.
Git-native projects
Every change is a readable diff. Branching, merging and code review work with standard tools – and AI assistants can read and edit the code directly.
Reproducible builds
Libraries.json declares library versions and Libraries.lock.json pins exact versions with SHA384 checksums, so the build server compiles exactly what the developer compiled.
Command-line builds on Windows and Linux
The c4 command-line tool compiles libraries and boot applications, manages workspaces and dependencies, and logs in to and resets controllers without a GUI. CODESYS 4 runs on Windows x64, Linux x64 and Linux ARM64, so a build agent can be a simple Linux container.
Web-based IDE, no cloud required
The user interface runs in a browser window against a local service; no internet connection is needed.
Compatible with CODESYS 3.5
CODESYS 4 uses the same compiler, libraries and runtime as CODESYS 3.5, so compiled code runs on controllers with runtime SP19 or later. CODESYS 3.5 continues to be developed in parallel, and no licences are needed for CODESYS engineering.
Version 1.0 focuses on Structured Text library development with command-line builds and on small Modbus TCP device projects; online functions such as online change and breakpoints are still to come. Today's best workflow is to build shared libraries in CODESYS 4 and use them in CODESYS 3.5 device projects.
ODOT CODESYS controllers
ODOT Automation builds compact, modular controllers that run standard CODESYS 3.5. The C4374 runs CODESYS V3.5.19.70 (SP19) – the runtime level CODESYS 4 requires for its compiled code – so libraries built in a CODESYS 4 pipeline run directly on ODOT hardware.
| ODOT C3351 | ODOT C4374 | |
|---|---|---|
| Role | Compact Modbus controller | EtherCAT master controller |
| Programming | CODESYS V3.5, all five IEC 61131-3 languages | CODESYS V3.5.19.70 |
| Memory (program / data) | – | 4 MB / 4 MB |
| Speed | – | Min. cycle 1 ms; bit/word operation 0.10 µs |
| Ports | Ethernet, RS485 | 3 × RJ45, RS485, CAN |
| Protocols | Modbus TCP client + server, Modbus RTU | Modbus TCP/RTU, EtherCAT (32 slaves), CANopen (8 slaves) |
| Local I/O | Up to 32 modules | Up to 32 modules |
Why ODOT for modern applications
- Open standards: IEC 61131-3, Modbus, EtherCAT and CANopen; across the range also PROFINET, OPC UA and MQTT
- No licences needed for the CODESYS toolchain – for every developer and every build agent
- Easy to set up test racks with real hardware for automated pipelines
- Up to 32 I/O modules on the same rail: digital, analog, temperature, counters, pulse outputs
- Built-in web HMI with CODESYS WebVisu
- Industrial design: DIN rail, IP20, 24 V DC, -20 to 60 °C operating temperature (C4374)
From commit to controller: a CI/CD pipeline
With text-based code in Git, both platforms can follow the same pipeline idea. Every change – written by an engineer or suggested by an AI assistant – is built and tested automatically, and only an approved release reaches the machine.
- Push to Git – the change is opened as a merge request and reviewed.
- Build – automatically on a build server: TIA Portal V21 with Openness scripting, or CODESYS with the
c4command line. - Test – logic is checked in simulation or on a virtual runtime before any hardware is touched. If tests fail, the author is notified.
- Release – a Git tag produces a versioned, signed build.
- Deploy – the release is downloaded to the S7-1200 G2 or ODOT controller after manual approval.
Example: CODESYS pipeline for an ODOT controller (.gitlab-ci.yml sketch)
stages: [build, test, release, deploy]
build-libraries:
stage: build
image: registry.example.com/codesys4-cli:1.0 # Linux image with c4 installed
script:
- c4 library save-compiled ... # exact arguments: c4 --help
artifacts:
paths: [out/]
build-app:
stage: build
tags: [windows, codesys-3.5-sp19] # runner with ODOT device package
script:
- CODESYS.exe --profile="CODESYS V3.5 SP19" --noUI --runscript=ci/build_app.py
test:
stage: test
script:
- python ci/run_tests.py # against a virtual runtime
release:
stage: release
rules: [{ if: $CI_COMMIT_TAG }]
script:
- ci/sign_and_publish.sh
deploy-odot:
stage: deploy
rules: [{ if: $CI_COMMIT_TAG }]
when: manual # a person approves the download
script:
- CODESYS.exe --noUI --runscript=ci/deploy_to_odot.py
The script names are placeholders for your own build, test and deploy scripts.
Which platform fits your application?
| TIA Portal V21 + S7-1200 G2 | CODESYS 4 / 3.5 + ODOT | |
|---|---|---|
| Git support | New text export in V21 | Native text projects in CODESYS 4 |
| AI tools | Integrated Engineering Copilot | Text projects ready for any AI assistant |
| Automated build | TIA Portal Openness | c4 command line on Windows or Linux |
| Connectivity | Full OPC UA, PROFINET IRT | Modbus, EtherCAT, CANopen; OPC UA and MQTT across the range |
| Safety and motion | Integrated F-CPUs, up to 10 positioning axes | EtherCAT master for drives and I/O (C4374) |
| Engineering licence | STEP 7 | No licences needed |
| Best for | Siemens-standard plants, integrated safety, PROFINET machines | OEM machines, distributed I/O, open and software-driven projects |
Typical applications
- Packaging machines
- Conveyor systems and material handling
- OEM machine building
- Process and energy automation
- Building and utility systems
- Smart manufacturing and Industry 4.0 applications
Conclusion
PLC engineering is becoming AI-ready. TIA Portal V21 brings Git export and an AI Copilot to the Siemens world, and the S7-1200 G2 – now with full OPC UA – is a fast, safe and connected compact CPU. CODESYS 4 makes the whole project text and the build a command-line job, and ODOT controllers bring that open approach to affordable, modular hardware.
Whichever platform you choose, the first step is the same: put one shared library into Git, build it automatically on every change, and let AI tools help you write and review the code.
Want to try it? Contact us for an S7-1200 G2 or ODOT CODESYS starter kit and a sample pipeline repository.
Sources
Recent searches
Currently popular
Tags
Categories
Popular categories
20% Discount For all new products.

