# ROSENBERG\_FAN\_EC\_MOTOR\_BG5\_6\_GEN3

## `ROSENBERG_FAN_EC_MOTOR_BG5_6_GEN3` (FB)

FUNCTION\_BLOCK ROSENBERG\_FAN\_EC\_MOTOR\_BG5\_6\_GEN3

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                                                            | <p>Reinitialization of the outputs ‘eErrorCodeCom’,<br>‘stErrorCodeDev’ and ‘stWarningCodeDev’ to the error-free<br>state (on every rising edge)</p> |
| Input       | `xResAlarm`         | `BOOL`                                       | FALSE                                                            | Reset of the fan errors ( TRUE = reset )                                                                                                             |
| Input       | `xEnFan`            | `BOOL`                                       | FALSE                                                            | Enable / disable the fan ( TRUE = enable )                                                                                                           |
| Input       | `rSetp`             | `REAL`                                       | 0.0                                                              | Setpoint - fan ( Control: 0.0% - 100.0% )                                                                                                            |
| Inout       | `ModbusClient`      | `ModbusClientBase`                           |                                                                  | Client of the device                                                                                                                                 |
| Output      | `wFirmware`         | `WORD`                                       |                                                                  | Fan firmware                                                                                                                                         |
| Output      | `rSpeed`            | `REAL`                                       |                                                                  | Number of revolutions per minute                                                                                                                     |
| Output      | `rTemp_Internal`    | `REAL`                                       |                                                                  | Internal temperature in °C                                                                                                                           |
| Output      | `rPower_In`         | `REAL`                                       |                                                                  | Input electrical power in W                                                                                                                          |
| Output      | `xOperationFan`     | `BOOL`                                       |                                                                  | Fan operation message ( FALSE = Off )                                                                                                                |
| Output      | `eRotation_Fb`      | FAN\_EC\_MOTOR\_BG5\_6\_GEN3\_ROTATION\_MODE | FAN\_EC\_MOTOR\_BG5\_6\_GEN3\_ROTATION\_MODE.CLOCKWISE           | Rotation direction                                                                                                                                   |
| Output      | `eControlMode_Fb`   | FAN\_EC\_MOTOR\_BG5\_6\_GEN3\_CONTROL\_MODE  | FAN\_EC\_MOTOR\_BG5\_6\_GEN3\_CONTROL\_MODE.MODBUS               | Operating mode ( 0 = Modbus // 1 = AE1 ( 0-10V ))                                                                                                    |
| 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      | `stWarningCodeDev`  | `STRING`                                     |                                                                  | String with the numbers of the active device warnings                                                                                                |
| Output      | `xBusy`             | `BOOL`                                       |                                                                  | Communication indicator ( TRUE = communication )                                                                                                     |
| Input Const | `rLowSpeedLimit`    | `REAL`                                       | 0.0                                                              | <p>Speed that triggers a ‘Speed < Minimum’ error in<br>RPM ( 0 = error disabled, >0 = monitoring active )</p>                                        |
| Input Const | `rAE1_Voltage_Max`  | `REAL`                                       | 9.5                                                              | <p>Analog input 1 - Setpoint: Voltage for the setpoint<br>‘rAE1\_Speed\_Max’ in X.Y V ( 0.0 - 10.0 V )</p>                                           |
| Input Const | `rAE1_Voltage_Min`  | `REAL`                                       | 1.0                                                              | <p>Analog input 1 - Setpoint: Voltage for the setpoint<br>‘rAE1\_Speed\_Min’ in X.Y V ( 0.0 - 10.0 V )</p>                                           |
| Input Const | `rAE1_Speed_Max`    | `REAL`                                       | 1000.0                                                           | <p>Analog input 1 - Setpoint: Speed for the voltage<br>‘rAE1\_Voltage\_2’ in RPM</p>                                                                 |
| Input Const | `rAE1_Speed_Min`    | `REAL`                                       | 200.0                                                            | <p>Analog input 1 - Setpoint: Speed for the voltage<br>‘rAE1\_Voltage\_1’ in RPM</p>                                                                 |
| Input Const | `rAE1_Speed_Low`    | `REAL`                                       | 0.0                                                              | <p>Analog input 1 - Setpoint: Speed for voltages <<br>‘rAE1\_Voltage\_1’ in RPM</p>                                                                  |
| Input Const | `eSetpMode`         | FAN\_EC\_MOTOR\_BG5\_6\_GEN3\_SETP\_MODE     | FAN\_EC\_MOTOR\_BG5\_6\_GEN3\_SETP\_MODE.SETPOINT\_NOT\_VOLATILE | <p>Setpoint volatility ( 0 = volatile // 1 = non-<br>volatile ))</p>                                                                                 |
| Input Const | `eControlMode`      | FAN\_EC\_MOTOR\_BG5\_6\_GEN3\_CONTROL\_MODE  | FAN\_EC\_MOTOR\_BG5\_6\_GEN3\_CONTROL\_MODE.MODBUS               | Operating mode ( 0 = Modbus // 1 = AE1 ( 0-10V ))                                                                                                    |
| Input Const | `eRotation`         | FAN\_EC\_MOTOR\_BG5\_6\_GEN3\_ROTATION\_MODE | FAN\_EC\_MOTOR\_BG5\_6\_GEN3\_ROTATION\_MODE.CLOCKWISE           | Rotation direction                                                                                                                                   |
| 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>                                                                     |
