Skip to content

TIA Portal Git: Workflow Step by Step

AnyAutomationUpdated 1 min read

PLC code is code, and it belongs under version control. With TIA Portal Git, the built-in Git source control in AnyAutomation Studio, you treat your TIA Portal project like any other software repository.

Why Git for PLC code?

Without version control, "who changed what, and when" is hard to answer. Git gives you history, diffs, branches and reviews: the traceability automation often lacks. If your team is moving away from a central backup archive, the page for teams leaving a central backup archive shows what Studio and Git take over and what they do not.

The workflow

The familiar cycle runs through the source control view:

  1. Stage: select changed blocks and project files.
  2. Commit: capture them with a meaningful message.
  3. Diff: review what changed line by line before committing.
  4. Branch & merge: develop features in isolation, then merge.
  5. Push / pull / sync: with GitLab, GitHub, Azure DevOps or self-hosted.

Version the tests too

The real leverage: SCL unit test suites are plain-text JSON files next to the project. They travel in the same commit: code and its tests stay together, diffable and reviewable.

On the way to the pipeline

Once the code is in Git, the step to CI/CD is small: the pipeline checks out, runs the unit tests and reports back. And at the start of the chain sits the AI for TIA Portal that generates the SCL code Git versions here. More detail in the Git client documentation and on the Git for TIA Portal page.

Try it now

Try AnyAutomation Studio free for 30 days

Try the workflows from these articles in your own TIA Portal or CODESYS project.

Free account required: sign in with your email address and a code, then the download starts.

Questions? support@anyautomation.ch