apax hwc compile --input <HARDWARE_DECLARATION> --output <OUTPUT_DIRECTORY>
Generates a deployable hardware configuration from a textual hardware declaration.
Options
| Option | Description |
|---|---|
| -i, --input | Path to directory or file of the textual hardware declaration for compile. Mandatory. This parameter can be specified multiple times. |
| -o, --output | Path to output directory for compile. Compile artifacts get put there. Mandatory |
Return codes
The following return codes are possible:
- 0 - Hardware configuration compile successful.
- ≠0 - textual hardware declaration contains errors.
Current limitations
A limited set of devices and properties are available.
Important
- "PLCName".SecurityConfiguration.json file is a mandatory input file for a successful compile of S7-1500 PLCs, therefore
setup-secure-communicationcommand must be run at least once prior to execution of hwc compile command for S7-1500 PLCs. - The TLS certificate is a mandatory input for a successful compile of S7-1500 PLCs as Hardware Engineering @AX only supports TLS communication. Therefore
import-certificatecommand must be run at least once with--purpose TLSparameters prior to execution of hwc compile command for S7-1500 PLCs. - In case AccessLevel is not configured in the hardware declaration, but if there is a configured access protection password which is generated by execution of set-accessprotection-password command, then a warning will be displayed during execution of compile command.