# Definitions

Definitions allow you to reference blocks from within a service 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.

{% code lineNumbers="true" %}

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

{% endcode %}

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

{% code lineNumbers="true" %}

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

{% endcode %}
