# ZIEHL\_ABEGG\_ECBLUE\_BASIC\_MODBUS

## `ZIEHL_ABEGG_ECBLUE_BASIC_MODBUS` (FB)

FUNCTION\_BLOCK ZIEHL\_ABEGG\_ECBLUE\_BASIC\_MODBUS

InOut:

| Scope       | Name                | Type                                               | Initial                                                                  | Comment                                                                                                                                                |
| ----------- | ------------------- | -------------------------------------------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Input       | `xEn`               | `BOOL`                                             | TRUE                                                                     | Enable / disable of communication ( TRUE = enabled )                                                                                                   |
| Input       | `byUnitId`          | `BYTE`                                             | 0                                                                        | Address of the device                                                                                                                                  |
| Input       | `xUpdateActual`     | `BOOL`                                             | FALSE                                                                    | <p>Update of actual values ( on each rising edge<br>)</p>                                                                                              |
| Input       | `xUpdateSetp`       | `BOOL`                                             | FALSE                                                                    | <p>Update of setpoints ( on each rising edge<br>)</p>                                                                                                  |
| Input       | `xUpdateConfig`     | `BOOL`                                             | FALSE                                                                    | <p>Update configuration ( on each rising<br>edge )</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       | `rSetp`             | `REAL`                                             | 0.0                                                                      | <p>Setpoint - fan ( 0.0 - 100.0% or absolute speed<br>)</p>                                                                                            |
| Input       | `wPinCode`          | `WORD`                                             | 0                                                                        | Pin code to trigger different functions (2143 = Reset, 9095 = Factory configuration)                                                                   |
| Input       | `xK1`               | `BOOL`                                             | FALSE                                                                    | Change of state of K1 (precondition: wK1Function = 17)                                                                                                 |
| Input       | `xMinSpeedOff`      | `BOOL`                                             | FALSE                                                                    | Enable/disable minimum speed lock (FALSE = no minimum speed lock)                                                                                      |
| Input       | `xBypassTemp2`      | `BOOL`                                             | FALSE                                                                    | Enable/disable bypass of temperature management 2 (FALSE = no bypass)                                                                                  |
| Input       | `xBypassTemp1`      | `BOOL`                                             | FALSE                                                                    | Enable/disable bypass of temperature management 1 (FALSE = no bypass)                                                                                  |
| Input       | `xChangeRotation`   | `BOOL`                                             | FALSE                                                                    | Enable/disable direction reversal 1 (FALSE = no reversal)                                                                                              |
| Input       | `xSpeedLimitMode`   | `BOOL`                                             | FALSE                                                                    | Enable/disable limiting of speed to rSpeedLimit (FALSE = no limitation)                                                                                |
| Input       | `xFixedSpeed3`      | `BOOL`                                             | FALSE                                                                    | Enable/disable fixed speed 3 (FALSE = disabled)                                                                                                        |
| Input       | `xFixedSpeed2`      | `BOOL`                                             | FALSE                                                                    | Enable/disable fixed speed 2 (FALSE = disabled)                                                                                                        |
| Input       | `xEnFan`            | `BOOL`                                             | FALSE                                                                    | Enable / disable the fan ( FALSE = disabled )                                                                                                          |
| Inout       | `ModbusClient`      | `ModbusClientBase`                                 |                                                                          | Client of the device                                                                                                                                   |
| Output      | `rSetpFb`           | `REAL`                                             |                                                                          | Feedback - current setpoint                                                                                                                            |
| Output      | `rRatedSpeed`       | `REAL`                                             |                                                                          | Rated speed of the fan                                                                                                                                 |
| Output      | `rFirmwareVers`     | `REAL`                                             |                                                                          | Firmware version of the fan                                                                                                                            |
| Output      | `rProductCode`      | `REAL`                                             |                                                                          | Product identification of the fan                                                                                                                      |
| Output      | `rParamSetID`       | `REAL`                                             |                                                                          | Parameter set identification of the fan                                                                                                                |
| Output      | `rState_1`          | `REAL`                                             |                                                                          | Current operating state (Input register 10)                                                                                                            |
| Output      | `rSpeed`            | `REAL`                                             |                                                                          | Current number of revolutions per minute                                                                                                               |
| Output      | `rCurrent`          | `REAL`                                             |                                                                          | Current motor current in X.XX A                                                                                                                        |
| Output      | `rDCVolt`           | `REAL`                                             |                                                                          | Current DC link voltage in volts                                                                                                                       |
| Output      | `rMainsVolt`        | `REAL`                                             |                                                                          | Current mains voltage (peak value) in volts                                                                                                            |
| Output      | `rIGBTTemp`         | `REAL`                                             |                                                                          | Current temperature of the IGBT in XX.X degrees Celsius                                                                                                |
| Output      | `rInteriorTemp`     | `REAL`                                             |                                                                          | Current electronics temperature in XX.X degrees Celsius                                                                                                |
| Output      | `rMCUTemp`          | `REAL`                                             |                                                                          | Current temperature of the MCU in XX.X degrees Celsius                                                                                                 |
| Output      | `rAI1Value`         | `REAL`                                             |                                                                          | Current value at analog input 1 in percent (0.0 - 100.0%)                                                                                              |
| Output      | `rModLevel`         | `REAL`                                             |                                                                          | Current modulation level ( 0.0 - 100.0% )                                                                                                              |
| Output      | `rPower`            | `REAL`                                             |                                                                          | Current power consumption in watts                                                                                                                     |
| Output      | `rOperatingHours`   | `REAL`                                             |                                                                          | Current number of operating hours                                                                                                                      |
| Output      | `rVolumeFlow`       | `REAL`                                             |                                                                          | Current calculated volumetric flow (precondition: Control Mode = Volumetric flow)                                                                      |
| Output      | `rPasswordLevel`    | `REAL`                                             |                                                                          | Current password level (0 - 3)                                                                                                                         |
| Output      | `rRemainServLife`   | `REAL`                                             |                                                                          | Current calculated remaining service life in hours                                                                                                     |
| Output      | `xOperationFan`     | `BOOL`                                             |                                                                          | Operational signal of the fan ( FALSE = off )                                                                                                          |
| 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_1`  | `STRING`                                           |                                                                          | String 1 with the numbers of active device faults (Input register 12)                                                                                  |
| Output      | `stErrorCodeDev_2`  | `STRING`                                           |                                                                          | String 2 with the numbers of active device faults (Input register 13, bits 15 - 8))                                                                    |
| Output      | `rErrorCodeCause`   | `REAL`                                             |                                                                          | Code for the cause of the highest priority fault                                                                                                       |
| Output      | `stWarningCodeDev`  | `STRING`                                           |                                                                          | String with the numbers of the active device warnings                                                                                                  |
| Output      | `rWarningCodeCause` | `REAL`                                             |                                                                          | Code for the cause of the highest priority warning                                                                                                     |
| Output      | `xBusy`             | `BOOL`                                             |                                                                          | Communication indicator ( TRUE = communication )                                                                                                       |
| Input Const | `rAlarmLifespan`    | `REAL`                                             | 0.0                                                                      | Threshold - fault - remaining lifespan in h (range = 0.0 - 65535.0, 0.0 h = off)                                                                       |
| Input Const | `rWarningLifespan`  | `REAL`                                             | 0.0                                                                      | Threshold - warning - remaining lifespan in h (range = 0.0 - 65535.0, 0.0 h = off)                                                                     |
| Input Const | `rDeviationFanBad`  | `REAL`                                             | 0.0                                                                      | Threshold - control deviation setpoint/actual speed in 1/min (range = 0.0 - 255.0, 0.0 1/min = off)                                                    |
| Input Const | `tDelayFanBad`      | `TIME`                                             | TIME#0ms                                                                 | Reporting delay - control deviation setpoint/actual speed in s (range = 0.0 - 255.0, 0.0 s = off)                                                      |
| Input Const | `rFade3Max`         | `REAL`                                             | 600.0                                                                    | Maximum value - speed fade range 3 in 1/min (range = 0.0 - 9999.0)                                                                                     |
| Input Const | `rFade3Min`         | `REAL`                                             | 500.0                                                                    | Minimum value - speed fade range 3 in 1/min (range = 0.0 - 9999.0)                                                                                     |
| Input Const | `rFade2Max`         | `REAL`                                             | 300.0                                                                    | Maximum value - speed fade range 2 in 1/min (range = 0.0 - 9999.0)                                                                                     |
| Input Const | `rFade2Min`         | `REAL`                                             | 200.0                                                                    | Minimum value - speed fade range 2 in 1/min (range = 0.0 - 9999.0)                                                                                     |
| Input Const | `rFade1Max`         | `REAL`                                             | 100.0                                                                    | Maximum value - speed fade range 1 in 1/min (range = 0.0 - 9999.0)                                                                                     |
| Input Const | `rFade1Min`         | `REAL`                                             | 0.0                                                                      | Minimum value - speed fade range 1 in 1/min (range = 0.0 - 9999.0)                                                                                     |
| Input Const | `rFadeFunction`     | `REAL`                                             | 0.0                                                                      | Enable/disable speed fade ranges (0.0 = no fading)                                                                                                     |
| Input Const | `rSpeedLimit`       | `REAL`                                             | 75.0                                                                     | Speed limitation in percent (if enabled, range: 0.0 - 100.0%)                                                                                          |
| Input Const | `rWatchdogFunction` | `REAL`                                             | 0.0                                                                      | Watchdog function (0.0 = no watchdog function)                                                                                                         |
| Input Const | `tWatchdogTime`     | `TIME`                                             | TIME#0ms                                                                 | Watchdog duration (0 s = no watchdog function)                                                                                                         |
| Input Const | `rControllerSetup`  | `REAL`                                             | 513.0                                                                    | Definition of controller setup flags (functions see manual)                                                                                            |
| Input Const | `rK1Function`       | `REAL`                                             | 2.0                                                                      | Function of relay K1 (0.0 = off, 1.0 = fan operating, 2.0 = fan fault)                                                                                 |
| Input Const | `rD1Function`       | `REAL`                                             | 1.0                                                                      | Function of digital input D1 (0.0 = off, 1.0 = fan enable)                                                                                             |
| Input Const | `rE1Function`       | `REAL`                                             | 0.0                                                                      | Function of analog input E1 (0.0 = 0 - 10V / PWM, 1.0 = fan enable)                                                                                    |
| Input Const | `rE1Max`            | `REAL`                                             | 100.0                                                                    | End value for analog input E1 in percent (range: rE1Min = 100.0)                                                                                       |
| Input Const | `rE1Min`            | `REAL`                                             | 5.0                                                                      | Start value for analog input E1 in percent (range: 0.0 = rE1Max)                                                                                       |
| Input Const | `rInvE1D1K1`        | `REAL`                                             | 0.0                                                                      | Inversion of inputs/outputs E1, D1 and K1 (0.0 = no inversion)                                                                                         |
| Input Const | `rFixedSpeed3`      | `REAL`                                             | 3000.0                                                                   | Fixed speed 3 in 1/min (range rSpeedMin - rSpeedMax)                                                                                                   |
| Input Const | `rSpeedMax`         | `REAL`                                             | 3000.0                                                                   | Absolute maximum speed in 1/min (range rSpeedMin - rRatedSpeed)                                                                                        |
| Input Const | `rSpeedMin`         | `REAL`                                             | 0.0                                                                      | Absolute minimum speed in 1/min (range 0.0 - rRatedSpeed)                                                                                              |
| Input Const | `rFixedSpeed2`      | `REAL`                                             | 2000.0                                                                   | Fixed speed 2 in 1/min (range rSpeedMin - rSpeedMax)                                                                                                   |
| Input Const | `rFixedSpeed1`      | `REAL`                                             | 1000.0                                                                   | Fixed speed 1 in 1/min (range rSpeedMin - rSpeedMax)                                                                                                   |
| Input Const | `xEnEnFan`          | `BOOL`                                             | TRUE                                                                     | Option - enable/disable the fan (FALSE = option disabled)                                                                                              |
| Input Const | `xEnFixedSpeed2`    | `BOOL`                                             | FALSE                                                                    | Option - enable/disable fixed speed 2 (FALSE = option disabled)                                                                                        |
| Input Const | `xEnFixedSpeed3`    | `BOOL`                                             | FALSE                                                                    | Option - enable/disable fixed speed 3 (FALSE = option disabled)                                                                                        |
| Input Const | `xEnLimitMode`      | `BOOL`                                             | FALSE                                                                    | Option - enable/disable limiting speed to rSpeedLimit (FALSE = option disabled)                                                                        |
| Input Const | `xEnChangeRotation` | `BOOL`                                             | FALSE                                                                    | Option - enable/disable direction reversal (FALSE = option disabled)                                                                                   |
| Input Const | `xEnBypassTemp1`    | `BOOL`                                             | FALSE                                                                    | Option - enable/disable bypass of temperature management 1 (FALSE = option disabled)                                                                   |
| Input Const | `xEnBypassTemp2`    | `BOOL`                                             | FALSE                                                                    | Option - enable/disable bypass of temperature management 2 (FALSE = option disabled)                                                                   |
| Input Const | `eControlMode`      | ZIEHL\_ABEGG\_ECBLUE\_BASIC\_MODBUS\_CONTROL\_MODE | ZIEHL\_ABEGG\_ECBLUE\_BASIC\_MODBUS\_CONTROL\_MODE.SPEED\_PERCENT\_RSETP | Definition of operating mode (3 = rSetp - 0.0 - 100.0%)                                                                                                |
| Input Const | `tTimeUpdateConfig` | `TIME`                                             | TIME#0ms                                                                 | <p>Update interval for the processes affected by the input<br>‘xUpdateConfig’</p>                                                                      |
| Input Const | `tTimeUpdateSetp`   | `TIME`                                             | TIME#45s0ms                                                              | <p>Update interval for the processes affected by the input<br>‘xUpdateSetp’</p>                                                                        |
| Input Const | `tTimeUpdateActual` | `TIME`                                             | TIME#3s0ms                                                               | <p>Update interval for the processes affected by the input<br>‘xUpdateActual’</p>                                                                      |
