Version control for TIA Portal
TIA Portal Git: version control for PLC code
Treat PLC code like software: built-in Git version control right inside AnyAutomation Studio. Stage, commit, diff, push and pull.
TIA Portal V15-V21 · GitLab, GitHub, Azure DevOps
The Compare Editor compares PLC_1 of the TIA Portal project AnyAutomation_Demo with the export folder: 1 changed block, 17 unchanged items and 1 file that only exists in the folder. The Changed filter narrows the list to FB_ConveyorControl, the comparison shows the current limit raised from 10.0 to 12.0 A plus a new change log line, and Import Selected brings exactly this one change into TIA Portal.
Git for your automation project
Readable block diffs
See line by line what changed in a block between two versions, and review it before you commit.
Tests versioned with the code
SCL unit test suites are plain-text JSON files. You version and review them together with the code.
Branches and any remote
Create, switch and merge branches, then sync with GitLab, GitHub, Azure DevOps or your own server.
Git for TIA Portal means versioning PLC code like software: commit changes, view diffs, manage branches and sync with a remote. AnyAutomation Studio brings a built-in Git source control straight into the IDE, without leaving the editor. Code the AI for PLC programming generates lands in the same history, reviewable as a diff.
How does Git work in AnyAutomation Studio?
Through the source control view you stage and commit changes to blocks and project files, view diffs, manage branches and push, pull or sync with any Git remote: GitLab, GitHub, Azure DevOps or self-hosted. Because SCL unit test suites are plain-text JSON files next to the project, you version tests and code together. Details in the Git client documentation.
How does it fit Openness, tests and CI/CD?
Git is the basis of the end-to-end flow: AI generates → Openness imports → unit tests verify → Git and CI/CD track every change. Studio also works with the version control workspaces of TIA Portal itself, the Version Control Interface (VCI): you manage them from TIA Portal V17 and connect, export and synchronize objects from V20. Teams moving away from a central backup archive find what Studio covers, and what it does not, on the page for teams leaving a central backup archive.
The Test Suite Editor of FB_ConveyorControl_Tests lists all 12 test cases of FB_ConveyorControl as rows. The new case Overload_ShortPeak_NoTrip gets a description, the input rMotorCurrent = 14.0 and two assertions picked from the operator list: bOverloadFault Is False and bMotorRun Is True. Run Case runs it against PLCSim Advanced and the case passes, so all 12 cases are green.
Frequently asked questions
Can you version TIA Portal projects with Git?
Yes. AnyAutomation Studio ships with built-in Git version control that lets you stage, commit, diff blocks and project files and sync with a remote.
How does Git work in AnyAutomation Studio?
Through a source control view in the IDE: stage and commit changes, view diffs, manage branches and push, pull and sync, the familiar Git workflow for PLC code.
What is the difference from the Version Control Interface (VCI)?
VCI is the interface in TIA Portal that links project objects to files in a workspace folder, one file per object. AnyAutomation Studio uses it: in Version Control Workspaces you connect objects, export and import them and see in the Workspace Status which side changed (from TIA Portal V20, changes from Pro). In addition, Studio offers the export folder, the Git client, AI generation and unit tests in the same IDE.
Can I version SCL unit test suites with Git?
Yes. Test suites are plain-text JSON files next to your project file and can be staged, committed, diffed and reviewed like any other code.
Does it work with GitLab and GitHub?
Yes. You can sync with any Git remote: GitLab, GitHub, Azure DevOps or self-hosted.
How do I set up a Git workflow for TIA Portal?
Export the blocks to files, put the export folder under Git, commit each change with a message and review diffs before you import back into the project. The blog post Git workflow for TIA projects walks through it step by step.
Read next
CI/CD for TIA Portal
Test every commit automatically against PLCSIM Advanced, with a JUnit report for your pipeline.
SCL unit tests
Create test cases without code and run them against PLCSIM Advanced or real S7 hardware.
Openness code generation
Import AI-generated code into the TIA project over the Openness API and review it as a diff first.
Try it now
Version and test your PLC code
Try AnyAutomation Studio free for 30 days, no credit card. For TIA Portal V15-V21 and CODESYS 3.5.
Free account required: sign in with your email address and a code, then the download starts.
Questions? support@anyautomation.ch