# TROX\_XM0

## `TROX_XM0` (FB)

FUNCTION\_BLOCK TROX\_XM0

InOut:

| Scope       | Name                    | Type                        | Initial                                   | Comment                                                                                                                                                                   |
| ----------- | ----------------------- | --------------------------- | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`                   | `BOOL`                      | TRUE                                      | Enable / disable communication ( TRUE = enabled )                                                                                                                         |
| Input       | `byUnitId`              | `BYTE`                      | 0                                         | Address of the device                                                                                                                                                     |
| Input       | `xUpdateActual`         | `BOOL`                      | FALSE                                     | <p>Update of actual values (on every rising edge<br>)</p>                                                                                                                 |
| Input       | `xUpdateSetp`           | `BOOL`                      | FALSE                                     | <p>Update of setpoint values (on every rising edge<br>)</p>                                                                                                               |
| Input       | `xResError`             | `BOOL`                      | FALSE                                     | Reinitialization of the outputs 'eErrorCodeCom' and 'xErrorCodeDev' to the error-free state (on each rising edge)                                                         |
| Input       | `rSetpVolFlowPerc`      | `REAL`                      | 0.0                                       | <p>Setpoint - volumetric flow in % (0.0 - 100.0 %) (0.0 % =<br>Vmin, 100.0 % = Vmax)</p>                                                                                  |
| Inout       | `ModbusClient`          | `ModbusClientBase`          |                                           | Client of the device                                                                                                                                                      |
| Output      | `rVnomUnit`             | `REAL`                      |                                           | <p>Nominal volumetric flow in the selected volumetric<br>flow unit</p>                                                                                                    |
| Output      | `rVminUnit`             | `REAL`                      |                                           | <p>Minimum value - volumetric flow in the selected<br>volumetric flow unit</p>                                                                                            |
| Output      | `rVmaxUnit`             | `REAL`                      |                                           | <p>Maximum value - volumetric flow in the selected<br>volumetric flow unit</p>                                                                                            |
| Output      | `rDamperPosPerc`        | `REAL`                      |                                           | <p>Absolute position of the damper in percent (0.0% =<br>Closed, 100.0% = Open)</p>                                                                                       |
| Output      | `rDamperPosDegree`      | `REAL`                      |                                           | Absolute position of the damper in degrees                                                                                                                                |
| Output      | `rVolFlowPerc`          | `REAL`                      |                                           | <p>Actual value of the volumetric flow in percent of the<br>nominal volumetric flow</p>                                                                                   |
| Output      | `rVolFlowUnit`          | `REAL`                      |                                           | <p>Actual value of the volumetric flow in the selected<br>volumetric flow unit</p>                                                                                        |
| Output      | `eSetpSourceFb`         | TROX\_XM0\_SETP\_SOURCE     |                                           | Feedback of the source for the setpoint (2 = bus)                                                                                                                         |
| Output      | `rSensorValue`          | `REAL`                      |                                           | Current actual value of the sensor in mV                                                                                                                                  |
| Output      | `xSensorOffsetInDevice` | `BOOL`                      |                                           | <p>Indicator whether the calibration of the sensors must be<br>performed in the device (TRUE = calibration in device required, FALSE = calibration in<br>FB required)</p> |
| Output      | `xAlarm`                | `BOOL`                      | FALSE                                     | General fault ( TRUE = fault )                                                                                                                                            |
| Output      | `xAlarmCom`             | `BOOL`                      | FALSE                                     | General fault - communication ( TRUE = fault )                                                                                                                            |
| Output      | `eErrorCodeCom`         | ModbusErrorCode             |                                           | Error code - communication ( 0 = no error )                                                                                                                               |
| Output      | `stErrorCodeDev`        | `STRING`                    |                                           | String with the numbers of the active device errors                                                                                                                       |
| Output      | `xBusy`                 | `BOOL`                      |                                           | Communication indicator ( TRUE = communication )                                                                                                                          |
| Input Const | `rSensorValueOffset`    | `REAL`                      | 0.0                                       | <p>Constant measurement offset for the transmitted voltage<br>actual value</p>                                                                                            |
| Input Const | `eSetpSource`           | TROX\_XM0\_SETP\_SOURCE     | TROX\_XM0\_SETP\_SOURCE.BUS\_IN\_BUS\_OUT | <p>Influence: Outputs: rSensorValue<br>Source for the setpoint (2 = bus)</p>                                                                                              |
| Input Const | `eOverrideCon`          | TROX\_XM0\_OVERRIDE\_CON    | TROX\_XM0\_OVERRIDE\_CON.NO\_OVERRIDE     | Forced override of the air damper (0 = none)                                                                                                                              |
| Input Const | `eCommand`              | TROX\_XM0\_COMMAND          | TROX\_XM0\_COMMAND.NO\_COMMAND            | Triggering of test functions (0 = none)                                                                                                                                   |
| Input Const | `eVolumeFlowUnit`       | TROX\_XM0\_VOLUMEFLOW\_UNIT | TROX\_XM0\_VOLUMEFLOW\_UNIT.M3\_PER\_H    | <p>Unit for the absolute volumetric flow values (1 =<br>m3/h)</p>                                                                                                         |
| Input Const | `xSetpVolumeFlowMinMax` | `BOOL`                      | FALSE                                     | <p>Triggering the transmission of the parameters ‘rSetpVolumeFlowMin’<br>and ‘rSetpVolumeFlowMax’ (on every rising edge)</p>                                              |
| Input Const | `rSetpVolumeFlowMax`    | `REAL`                      | 300.0                                     | <p>Setpoint for the maximum volumetric flow in the selected<br>volumetric flow unit (when rSetpVolFlowPerc = 100.0 %)</p>                                                 |
| Input Const | `rSetpVolumeFlowMin`    | `REAL`                      | 100.0                                     | <p>Setpoint for the minimum volumetric flow in the selected<br>volumetric flow unit (when rSetpVolFlowPerc = 0.0 %)</p>                                                   |
| Input Const | `tTimeOut`              | `TIME`                      | TIME#10s0ms                               | <p>Duration for activating the state<br>'communication failure'</p>                                                                                                       |
| Input Const | `eBusFailureCommand`    | TROX\_XM0\_BUS\_FAILURE     | TROX\_XM0\_BUS\_FAILURE.NO\_FAILURE       | <p>Specification of behavior in case of a bus failure (0 = no<br>action)</p>                                                                                              |
| Input Const | `tTimeUpdateSetp`       | `TIME`                      | TIME#45s0ms                               | <p>Update interval for operations influenced by the input<br>'xUpdateSetp'</p>                                                                                            |
| Input Const | `tTimeUpdateActual`     | `TIME`                      | TIME#3s0ms                                | <p>Update interval for operations influenced by the input<br>'xUpdateActual'</p>                                                                                          |
