Definitions

Definitions allow you to reference blocks from within a commissioning file. While they share similarities with parameters, definitions are designed for internal use only.

You can define values of any data type, including object types. These values can be referenced using the !ref or !merge functions.

Example

In this example, we create a definition for default Modbus endpoint settings that we want to reference.

modbusEndpointDefaults:
    connectionId: !ref modbusConnection
    operation: subscribe
    interval: 1000
    address:
        fc: 3
        length: 2

When you reference this definition using !ref modbusEndpointDefaults, you get the following value:

connectionId: !ref modbusConnection
  operation: subscribe
  interval: 1000
  address:
    fc: 3
    length: 2

Last updated