- Inno Setup
- TwinCAT XAE Shell 15.0 properly installed and configured (see TwinCAT Setup Guide)
msbuild /p:Configuration=Release TcAutomation.csproj- Open the TcAutomationInstaller.iss file within the Inno Setup.
- Click the "Build/Compile" button (or press Ctrl+F9)."
- The installer will be created in the output folder.
Note: You typically don't call TcAutomation.exe directly. Instead, use the BCS Engineering DSL CLI tool:
bcs-engineering-cli beckhoff deploy <file>The deploy command internally invokes TcAutomation.exe with the appropriate parameters. However, if you need to call it manually, the following options are available:
| Option | Required | Default | Description |
|---|---|---|---|
--workspace |
Yes | - | Path to your project root (where generated/ lives) |
--solution-name |
No | MyGeneratedSolution |
Name of the TwinCAT solution |
--project-name |
No | MyTwinCATProject |
Name of the Visual Studio project |
--plc-name |
No | MyPlcProject |
PLC project name |
--template-path |
No | C:\TwinCAT\3.1\Components\Base\PrjTemplate\TwinCAT Project.tsproj |
Path to your .tsproj template |
--prog-id |
No | TcXaeShell.DTE.15.0 |
ProgID to use when launching TwinCAT |
--ads-username |
No | Administrator |
ADS username for remote connection |
--ads-password |
No | 1 |
ADS password for remote connection |
Note: If you're using a different TwinCAT version, you need to adjust the --prog-id parameter accordingly.
TcAutomation.exe --workspace "C:\Projects\MyProject"TcAutomation.exe --workspace "C:\Projects\MyProject" --solution-name "MySolution" --plc-name "MainPLC"