compile command - Manual - Hardware Compiler - The AX Hardware Compiler - Hardware Compiler (hwc),tool

Hardware Compiler CLI Tool (hwc)

Portfolio
SIMATIC AX
Product
Hardware Compiler
Software version
1.1.154
Edition
07/2024
Language
English (original)
Package Name
@ax/hwc
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:

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-communication command 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-certificate command must be run at least once with --purpose TLS parameters 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.