# TROX\_FSL\_CONTROL\_3

## `TROX_FSL_CONTROL_3` (FB)

FUNCTION\_BLOCK TROX\_FSL\_CONTROL\_3

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       | `eOpMode`                | TROX\_FSL\_CONTROL\_3\_OP\_MODE           | TROX\_FSL\_CONTROL\_3\_OP\_MODE.OFF                    | Device operating mode — default                                                                               |
| Input       | `eOpType`                | TROX\_FSL\_CONTROL\_3\_OP\_TYPE           | TROX\_FSL\_CONTROL\_3\_OP\_TYPE.STANDBY                | Operating mode of the device — setpoint                                                                       |
| Input       | `eOpTypeOverride`        | TROX\_FSL\_CONTROL\_3\_OP\_TYPE\_OVERRIDE | TROX\_FSL\_CONTROL\_3\_OP\_TYPE\_OVERRIDE.NO\_OVERRIDE | Operating mode override of the device — setpoint                                                              |
| Input       | `rTempOda`               | `REAL`                                    | 0.0                                                    | Current outside temperature in degrees Celsius — setpoint                                                     |
| Input       | `rTempLimitCoolPresence` | `REAL`                                    | 22.2                                                   | <p>Room temperature upper limit - cooling in degrees Celsius in the<br>presence operating mode — setpoint</p> |
| Input       | `rTempLimitHeatPresence` | `REAL`                                    | 21.8                                                   | <p>Room temperature lower limit - heating in degrees Celsius in<br>the presence operating mode — setpoint</p> |
| Input       | `rTempRoom`              | `REAL`                                    | 20.0                                                   | Current room temperature in degrees Celsius — setpoint                                                        |
| Input       | `rSpTempRoom`            | `REAL`                                    | 22.0                                                   | Current room setpoint temperature in degrees Celsius — setpoint                                               |
| Input       | `rSpTempRoomOffset`      | `REAL`                                    | 0.0                                                    | <p>Current room setpoint temperature offset in degrees Celsius —<br>setpoint</p>                              |
| Input       | `rSpTempSupply`          | `REAL`                                    | 22.0                                                   | Current supply air setpoint temperature in degrees Celsius — setpoint                                         |
| Input       | `rSpTempSupplyOffset`    | `REAL`                                    | 0.0                                                    | <p>Current supply air setpoint temperature offset in degrees Celsius —<br>setpoint</p>                        |
| Input       | `rRoomHumidity`          | `REAL`                                    | 50.0                                                   | Relative room humidity in percent — setpoint                                                                  |
| Input       | `xChangeOver`            | `BOOL`                                    | FALSE                                                  | <p>Indication of the present medium ( FALSE = heating medium,<br>TRUE = cooling medium ) — setpoint</p>       |
| Input       | `rSpFanLevel`            | `REAL`                                    | 3.0                                                    | <p>Setpoint for fan level ( 1.0 = level 1, 2.0 = level 2, …<br>5.0 = level 5 ) — setpoint</p>                 |
| Input       | `rRoomAirQuality`        | `REAL`                                    | 700.0                                                  | Room air quality in ppm — setpoint                                                                            |
| Input       | `rOutsAirQuality`        | `REAL`                                    | 400.0                                                  | Outside air quality in ppm — setpoint                                                                         |
| Input       | `rVolumeFlowDiff`        | `REAL`                                    | 0.0                                                    | Volume flow difference in m3/h                                                                                |
| Input       | `xFire`                  | `BOOL`                                    | FALSE                                                  | State of the fire alarm ( TRUE = active ) — setpoint                                                          |
| Input       | `xWindow`                | `BOOL`                                    | FALSE                                                  | State of the window contact ( TRUE = active ) — setpoint                                                      |
| Input       | `xExtraTime`             | `BOOL`                                    | FALSE                                                  | <p>State of the overtime activation ( TRUE = active ) —<br>setpoint</p>                                       |
| Input       | `xFilterReset`           | `BOOL`                                    | FALSE                                                  | State of the filter reset ( TRUE = active ) — setpoint                                                        |
| Input       | `xResError`              | `BOOL`                                    | FALSE                                                  | <p>Reinitialization of the outputs ‘eErrorCodeCom’ to the<br>no-error state (on each rising edge)</p>         |
| Inout       | `ModbusClient`           | `ModbusClientBase`                        |                                                        | Client of the device                                                                                          |
| Output      | `eOpModeFb`              | TROX\_FSL\_CONTROL\_3\_OP\_MODE           |                                                        | Device operating mode — feedback                                                                              |
| Output      | `eOpTypeFb`              | TROX\_FSL\_CONTROL\_3\_OP\_TYPE           |                                                        | Operating mode of the device — feedback                                                                       |
| Output      | `eOpTypeOverrideFb`      | TROX\_FSL\_CONTROL\_3\_OP\_TYPE\_OVERRIDE |                                                        | Operating mode override of the device — feedback                                                              |
| Output      | `eOpStateFB`             | TROX\_FSL\_CONTROL\_3\_OP\_STATE          |                                                        | Operating status of the device — feedback                                                                     |
| Output      | `eVentTypeFb`            | TROX\_FSL\_CONTROL\_3\_VENT\_TYPE         |                                                        | Ventilation type of the device — feedback                                                                     |
| Output      | `rTempSupplyFb`          | `REAL`                                    |                                                        | Current supply air temperature in degrees Celsius — feedback                                                  |
| Output      | `rTempOdaFb`             | `REAL`                                    |                                                        | Current outside temperature in degrees Celsius — feedback                                                     |
| Output      | `rTempRoomFb`            | `REAL`                                    |                                                        | Current room temperature in degrees Celsius — feedback                                                        |
| Output      | `rTempReturnFlowFb`      | `REAL`                                    |                                                        | Current return flow temperature in degrees Celsius — feedback                                                 |
| Output      | `rTempFlowFb`            | `REAL`                                    |                                                        | Current flow temperature in degrees Celsius — feedback                                                        |
| Output      | `rTempOffsetFb`          | `REAL`                                    |                                                        | <p>Current room/supply air temperature offset in degrees Celsius —<br>feedback</p>                            |
| Output      | `xExtraTimeFb`           | `BOOL`                                    |                                                        | <p>State of the overtime activation ( TRUE = active ) —<br>feedback</p>                                       |
| Output      | `rTempLimitCoolFb`       | `REAL`                                    |                                                        | <p>Room temperature upper limit - cooling in degrees Celsius —<br>feedback</p>                                |
| Output      | `rTempLimitHeatFb`       | `REAL`                                    |                                                        | <p>Room temperature lower limit - heating in degrees Celsius —<br>feedback</p>                                |
| Output      | `rTempSetpSupplyFb`      | `REAL`                                    |                                                        | Supply air setpoint temperature in degrees Celsius — feedback                                                 |
| Output      | `eFanLevelFb`            | TROX\_FSL\_CONTROL\_3\_FAN\_LEVEL         |                                                        | Fan level of the device — feedback                                                                            |
| Output      | `rRoomHumidityFb`        | `REAL`                                    |                                                        | Relative room humidity in percent — feedback                                                                  |
| Output      | `rRoomAirQualityFb`      | `REAL`                                    |                                                        | Room air quality in ppm — feedback                                                                            |
| Output      | `rVolumeFlowOdaFb`       | `REAL`                                    |                                                        | Volume flow in the outside air in m3/h — feedback                                                             |
| Output      | `rVolumeFlowExhFb`       | `REAL`                                    |                                                        | Volume flow in the exhaust air in m3/h — feedback                                                             |
| Output      | `xWindowFb`              | `BOOL`                                    |                                                        | State of the window contact ( TRUE = active ) — feedback                                                      |
| Output      | `xFireFb`                | `BOOL`                                    |                                                        | State of the fire alarm ( TRUE = active ) — feedback                                                          |
| Output      | `rSystemDevices`         | `REAL`                                    |                                                        | <p>Number of devices in the network ( 1xMaster and 1xSlave = 2<br>devices )</p>                               |
| Output      | `eDemandRoom`            | TROX\_FSL\_CONTROL\_3\_DEMAND\_ROOM       |                                                        | Display of the heating / cooling demand of the room                                                           |
| Output      | `eDemandSupply`          | TROX\_FSL\_CONTROL\_3\_DEMAND\_SUPPLY     |                                                        | Display of the heating / cooling demand of the supply air                                                     |
| Output      | `rValvePosHeatMas`       | `REAL`                                    |                                                        | Control - heating valve - master in percent                                                                   |
| Output      | `rValvePosCoolMas`       | `REAL`                                    |                                                        | Control - cooling valve - master in percent                                                                   |
| Output      | `arrTempSupplySla`       | ARRAY \[1..10] OF REAL                    |                                                        | <p>Current supply air temperatures of the slaves \[ Slave 1 - Slave 10<br>] in degrees Celsius</p>            |
| Output      | `arrValvePosHeatSla`     | ARRAY \[1..10] OF REAL                    |                                                        | <p>Current controls of the heating valves of the slaves \[ Slave 1<br>- Slave 10 ] in degrees Celsius</p>     |
| Output      | `arrValvePosCoolSla`     | ARRAY \[1..10] OF REAL                    |                                                        | <p>Current controls of the cooling valves of the slaves \[ Slave 1<br>- Slave 10 ] in degrees Celsius</p>     |
| Output      | `sAlarmA`                | `STRING`                                  |                                                        | Collective fault - Alarm A ( partially shutting down )                                                        |
| Output      | `sAlarmB`                | `STRING`                                  |                                                        | Collective fault - Alarm B ( non-shutting down )                                                              |
| 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      | `xBusy`                  | `BOOL`                                    |                                                        | Communication indicator ( TRUE = communication )                                                              |
| Input Const | `diAdrOffset`            | `DINT`                                    | 0                                                      | <p>Offset for calculating Modbus addresses (from the Modbus<br>registers) (permissible range: -1, 0, +1)</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>                              |
