How to programatically build and run a Beckhoff TwinCAT soltuion?
05:23 04 Mar 2026

I am trying to set up continuous integration for my TwinCAT3 PLC project, including external tests through Python pytest. For this to work I need a script that does the following:

  1. Build the solution

  2. Activate Configuration (including uploading the PLC program)

  3. Re-start TwinCAT in run mode

How can I program these things for CI?

Some similar questions (that I don't think fully cover mine):

build continuous-integration plc twincat