How are multiple input files processed? - References - SIMATIC AX - AX Hardware Engineering documentation - Hardware Engineering,

Hardware Engineering reference

Portfolio
SIMATIC AX
Product
SIMATIC AX
Software version
2.0.0-alpha1.56
Edition
08/2025
Language
English (original)
Package Name
@ax/hw-docs

When using multiple hardware declaration files as input, Hardware Compiler internally treats the configuration the same as a single file.

The list of elements declared in the individual files are combined into a single list.

For example, consider two modules named "Module1" and "Module2" declared in two different files:

Module1.hwl.json:

{
  "Modules": [
    {
      "Name": "Module1",
      ...
    }
  ]
}

Module2.hwl.json:

{
  "Modules": [
    {
      "Name": "Module2",
      ...
    }
  ]
}

This is equivalent to declaring both modules in the same file:

AllModules.hwl.json:

{
  "Modules": [
    {
      "Name": "Module1",
      ...
    },
    {
      "Name": "Module2",
      ...
    }
  ]
}

This is supported for:

  • Modules
  • Devices
  • IoSystems
  • PortInterconnections
  • Templates