# ROSENBERG\_FAN\_EC\_MOTOR

## `ROSENBERG_FAN_EC_MOTOR` (FB)

FUNCTION\_BLOCK ROSENBERG\_FAN\_EC\_MOTOR

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' and<br>'stErrorCodeDev' to the error-free state (on each<br>rising edge)</p>                                           |
| Input       | `xEnFan`                | `BOOL`                         | FALSE                                                        | Enable / disable of the fan ( FALSE = disabled )                                                                                                                          |
| Input       | `rSetp`                 | `REAL`                         | 0.0                                                          | <p>Setpoint - fan (Control: 0.0% - 100.0% (=<br>Register 14) // Regulation: 0.0 - 100.0% (= maximum<br>actual value of the sensor at AE2))</p>                            |
| Inout       | `ModbusClient`          | `ModbusClientBase`             |                                                              | Client of the device                                                                                                                                                      |
| Output      | `wSerialNum`            | `WORD`                         |                                                              | Fan serial number                                                                                                                                                         |
| Output      | `wIdentNum`             | `WORD`                         |                                                              | Identification number of the fan                                                                                                                                          |
| Output      | `rSpeedMax`             | `REAL`                         |                                                              | Maximum number of revolutions per minute                                                                                                                                  |
| Output      | `eRotation`             | FAN\_EC\_MOTOR\_ROTATION\_MODE | FAN\_EC\_MOTOR\_ROTATION\_MODE.CLOCKWISE                     | Rotation direction                                                                                                                                                        |
| Output      | `eState`                | FAN\_EC\_MOTOR\_STATE\_CODE    | FAN\_EC\_MOTOR\_STATE\_CODE.FAN\_IN\_BUS\_MODE\_NOT\_ENABLED | Status of the fan                                                                                                                                                         |
| Output      | `wFirmware`             | `WORD`                         |                                                              | Fan firmware                                                                                                                                                              |
| Output      | `xOperationFan`         | `BOOL`                         |                                                              | Fan operation message ( FALSE = Off )                                                                                                                                     |
| Output      | `rSpeed`                | `REAL`                         |                                                              | Number of revolutions per minute                                                                                                                                          |
| Output      | `rAE1`                  | `REAL`                         |                                                              | <p>Signal at analog input 1 (voltage) (AE1, 0.0 - 100.0<br>%)</p>                                                                                                         |
| Output      | `rAE2`                  | `REAL`                         |                                                              | <p>Signal at analog input 2 (voltage) (AE2, 0.0 - 100.0<br>%)</p>                                                                                                         |
| 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 | `rAE2Offset`            | `REAL`                         | 0.0                                                          | <p>Constant measurement offset for the transmitted voltage<br>actual value at AE2</p>                                                                                     |
| Input Const | `rAE1Offset`            | `REAL`                         | 0.0                                                          | <p>Constant measurement offset for the transmitted voltage<br>actual value at AE1</p>                                                                                     |
| Input Const | `rAE2_Setp_2`           | `REAL`                         | 100.0                                                        | Analog input 2: setpoint 2 (0.0 - 100.0%)                                                                                                                                 |
| Input Const | `rAE2_Voltage_2`        | `REAL`                         | 10.0                                                         | Analog input 2: voltage for setpoint 2                                                                                                                                    |
| Input Const | `rAE2_Setp_1`           | `REAL`                         | 0.0                                                          | Analog input 2: setpoint 1 (0.0 - 100.0%)                                                                                                                                 |
| Input Const | `rAE2_Voltage_1`        | `REAL`                         | 0.0                                                          | Analog input 2: voltage for setpoint 1                                                                                                                                    |
| Input Const | `rAE2_Setp_0`           | `REAL`                         | 0.0                                                          | Analog input 2: setpoint 0 (0.0 - 100.0%)                                                                                                                                 |
| Input Const | `rAE1_Setp_2`           | `REAL`                         | 100.0                                                        | Analog input 1: setpoint 2 (0.0 - 100.0%)                                                                                                                                 |
| Input Const | `rAE1_Voltage_2`        | `REAL`                         | 10.0                                                         | Analog input 1: voltage for setpoint 2                                                                                                                                    |
| Input Const | `rAE1_Setp_1`           | `REAL`                         | 0.0                                                          | Analog input 1: setpoint 1 (0.0 - 100.0%)                                                                                                                                 |
| Input Const | `rAE1_Voltage_1`        | `REAL`                         | 0.0                                                          | Analog input 1: voltage for setpoint 1                                                                                                                                    |
| Input Const | `rAE1_Setp_0`           | `REAL`                         | 0.0                                                          | Analog input 1: setpoint 0 (0.0 - 100.0%)                                                                                                                                 |
| Input Const | `rSpeedMin`             | `REAL`                         | 0.0                                                          | Minimum number of revolutions per minute (with fan locked)                                                                                                                |
| Input Const | `wSetpointSource`       | `WORD`                         | 0                                                            | <p>Source for the setpoint (0 = Modbus // 1 = AE1 (0-10V) //<br>2 = AE1 (4-20mA))</p>                                                                                     |
| Input Const | `wControlMode`          | `WORD`                         | 0                                                            | Control mode                                                                                                                                                              |
| Input Const | `wOperationMode`        | `WORD`                         | 1                                                            | Operating mode (1 = control // 2 = regulation)                                                                                                                            |
| 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>                                                                                          |
