# ROSENBERG\_FAN\_EC\_MOTOR

## `ROSENBERG_FAN_EC_MOTOR` (FB)

`FUNCTION_BLOCK` ROSENBERG\_FAN\_EC\_MOTOR

### Representation

<figure><img src="/files/47617220301ad1d61dd332ec03cd371d324033a9" alt=""><figcaption></figcaption></figure>

InOut:

| Scope       | Name                    | Type                           | Initial                                                      | Comment                                                                                                                                                             |
| ----------- | ----------------------- | ------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`                   | `BOOL`                         | TRUE                                                         | Enable / disable communication (TRUE = enable)                                                                                                                      |
| Input       | `byUnitId`              | `BYTE`                         | 0                                                            | Device address                                                                                                                                                      |
| Input       | `xUpdateActual`         | `BOOL`                         | FALSE                                                        | <p>Update of actual values (on every rising edge<br>)</p>                                                                                                           |
| Input       | `xUpdateSetp`           | `BOOL`                         | FALSE                                                        | <p>Update of setpoints (on every rising edge<br>)</p>                                                                                                               |
| Input       | `xResError`             | `BOOL`                         | FALSE                                                        | <p>Reinitialization of the outputs <code>eErrorCodeCom</code> and<br><code>stErrorCodeDev</code> to the fault-free state (on every rising edge)</p>                 |
| Input       | `xEnFan`                | `BOOL`                         | FALSE                                                        | Enable / lockout of the fan (FALSE = lockout)                                                                                                                       |
| Input       | `rSetp`                 | `REAL`                         | 0.0                                                          | Setpoint - Fan (Control: 0.0% - 100.0% (=Register 14) // Regulation: 0.0 - 100.0% (= maximum actual value of the sensor on AE2))                                    |
| Inout       | `ModbusClient`          | `ModbusClientBase`             |                                                              | Client of the device                                                                                                                                                |
| Output      | `wSerialNum`            | `WORD`                         |                                                              | Serial number of the fan                                                                                                                                            |
| Output      | `wIdentNum`             | `WORD`                         |                                                              | Fan identification number                                                                                                                                           |
| Output      | `rSpeedMax`             | `REAL`                         |                                                              | Maximum number of revolutions per minute                                                                                                                            |
| Output      | `eRotation`             | FAN\_EC\_MOTOR\_ROTATION\_MODE | FAN\_EC\_MOTOR\_ROTATION\_MODE.CLOCKWISE                     | Direction of rotation                                                                                                                                               |
| Output      | `eState`                | FAN\_EC\_MOTOR\_STATE\_CODE    | FAN\_EC\_MOTOR\_STATE\_CODE.FAN\_IN\_BUS\_MODE\_NOT\_ENABLED | Fan status                                                                                                                                                          |
| Output      | `wFirmware`             | `WORD`                         |                                                              | Firmware of the fan                                                                                                                                                 |
| Output      | `xOperationFan`         | `BOOL`                         |                                                              | Fan operation message (FALSE = Off)                                                                                                                                 |
| Output      | `rSpeed`                | `REAL`                         |                                                              | Number of revolutions per minute                                                                                                                                    |
| Output      | `rAE1`                  | `REAL`                         |                                                              | Signal at analog input 1 (voltage) (AE1, 0.0 - 100.0%)                                                                                                              |
| Output      | `rAE2`                  | `REAL`                         |                                                              | Signal at analog input 2 (voltage) (AE2, 0.0 - 100.0%)                                                                                                              |
| Output      | `xSensorOffsetInDevice` | `BOOL`                         |                                                              | <p>Indication of whether the sensors must be calibrated in the device<br>(TRUE = calibration in the device required, FALSE = calibration in the<br>FB required)</p> |
| Output      | `xAlarm`                | `BOOL`                         | FALSE                                                        | Collective fault (TRUE = fault)                                                                                                                                     |
| Output      | `xAlarmCom`             | `BOOL`                         | FALSE                                                        | Collective 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                                                          | Constant measured value offset for the transmitted voltage actual value at AE2                                                                                      |
| Input Const | `rAE1Offset`            | `REAL`                         | 0.0                                                          | Constant measured value offset for the transmitted voltage actual value at AE1                                                                                      |
| 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 (when the fan is locked)                                                                                                   |
| Input Const | `wSetpointSource`       | `WORD`                         | 0                                                            | Source for the setpoint (0 = Modbus // 1 = AE1 (0-10V) // 2 = AE1 (4-20mA))                                                                                         |
| 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 the processes influenced by the input<br><code>xUpdateSetp</code> influenced</p>                                                             |
| Input Const | `tTimeUpdateActual`     | `TIME`                         | TIME#3s0ms                                                   | <p>Update interval for the processes influenced by the input<br><code>xUpdateActual</code> influenced</p>                                                           |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.powerio.com/hub/codesys-hvac/en/hvac-modbus-library/functionblocks/rosenberg/rosenberg_fan_ec_motor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
