You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Open the [TcAutomationInstaller.iss](TcAutomationInstaller.iss) file within the Inno Setup.
16
16
- Click the "Build/Compile" button (or press Ctrl+F9)."
17
17
- The installer will be created in the [output](output) folder.
18
+
19
+
## 4 CLI Usage
20
+
21
+
**Note:** You typically don't call `TcAutomation.exe` directly. Instead, use the BCS Engineering DSL CLI tool:
22
+
23
+
```bash
24
+
bcs-engineering-cli beckhoff deploy <file>
25
+
```
26
+
27
+
The `deploy` command internally invokes `TcAutomation.exe` with the appropriate parameters. However, if you need to call it manually, the following options are available:
-`--solution-name <name>` - Solution name (default: `MyGeneratedSolution`)
75
+
-`--project-name <name>` - Project name (default: `MyTwinCATProject`)
76
+
-`--plc-name <name>` - PLC project name (default: `MyPlcProject`)
77
+
-`--tc-exe <path>` - Path to TcAutomation executable (default: `TcAutomation.exe`, resolved from PATH)
78
+
-`--ads-username <username>` - ADS username for remote connection (default: `Administrator`)
79
+
-`--ads-password <password>` - ADS password for remote connection (default: `1`)
80
+
-`-d, --destination <dir>` - Output directory for generated files
81
+
-`-q, --quiet` - Suppress output (default: false)
82
+
66
83
**NOTE:** The working directory will be set to the root of the provided file. This means that the .bcsctrl file can contain cross-references to other files in the same directory.
67
84
68
85
### 3.3 Supported Target Platforms
@@ -76,6 +93,7 @@ In addition to the standard libraries provided by Beckhoff, the following librar
76
93
-`Tc3_DALI`: Please note that this library integration is not fully tested.
77
94
78
95
## 4 Future Work
96
+
79
97
- Add support for more target platforms (e.g., Siemens, Codesys)
80
98
- Add and test support for more bus systems (e.g., EtherCAT, Profinet)
81
99
- Add a more sophisticated module system (e.g., support multiple files, packages, imports, etc.)
@@ -86,4 +104,4 @@ In addition to the standard libraries provided by Beckhoff, the following librar
86
104
- Support UseStmt within FB logic
87
105
- Look into debugging DSLs
88
106
- Look into moving the framework to a web-based solution (both the DSL and the deployment tool)
0 commit comments