> For the complete documentation index, see [llms.txt](https://support.powerio.com/hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.powerio.com/hub/codesys-hvac/en/hvac-modbus-library/functionblocks/danfoss/danfoss_vlt_hvac_drive.md). Agents can also search and read this documentation through its [MCP server](https://support.powerio.com/hub/~gitbook/mcp).

# DANFOSS\_VLT\_HVAC\_DRIVE

## `DANFOSS_VLT_HVAC_DRIVE` (FB)

`FUNCTION_BLOCK` DANFOSS\_VLT\_HVAC\_DRIVE

### Representation

<figure><img src="https://2592874069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2FhI1OVcW8LnjEzJ8VXUu7%2FDANFOSS_VLT_HVAC_DRIVE.png?alt=media&amp;token=73d998b4-a1c9-4d3f-b797-5ddc96de5aee" 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 (1 .. 247)                                                                                           |
| 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       | `xUpdateConfig`     | `BOOL`                                         | FALSE                                              | <p>Configuration update (on every rising<br>edge)</p>                                                               |
| Input       | `xEnDevice`         | `BOOL`                                         | FALSE                                              | Enable / disable the frequency converter (FALSE = Off)                                                              |
| Input       | `rSetp`             | `REAL`                                         | 0.0                                                | <p>Setpoint of the frequency converter (speed, setpoint) (<br>-100.0 - +100.0%)</p>                                 |
| Input       | `xResetShutdown`    | `BOOL`                                         | FALSE                                              | <p>Reset of the device after a shutdown (on every<br>rising edge)</p>                                               |
| Inout       | `ModbusClient`      | `ModbusClientBase`                             |                                                    | Client of the device                                                                                                |
| Output      | `xFb`               | `BOOL`                                         |                                                    | Operating message (FALSE = Off, TRUE = On)                                                                          |
| Output      | `rSetpPercFb`       | `REAL`                                         |                                                    | Feedback - Current setpoint in percent                                                                              |
| Output      | `rOutputFreq`       | `REAL`                                         |                                                    | Current output frequency in Hz                                                                                      |
| Output      | `wControlWordFb`    | `WORD`                                         |                                                    | Feedback - Current control word                                                                                     |
| Output      | `wStatusWord`       | `WORD`                                         |                                                    | Current status word                                                                                                 |
| Output      | `dwOperatingHours`  | `DWORD`                                        |                                                    | Motor operating hours                                                                                               |
| Output      | `dwElecEnergyTota`  | `DWORD`                                        |                                                    | Total electrical energy in kWh                                                                                      |
| Output      | `dwCountSwitchOn`   | `DWORD`                                        |                                                    | Number of switch-ons                                                                                                |
| Output      | `rElecVoltage`      | `REAL`                                         |                                                    | Output voltage in volts                                                                                             |
| Output      | `rElecCurrent`      | `REAL`                                         |                                                    | Output current in amperes                                                                                           |
| Output      | `rThermalProtect`   | `REAL`                                         |                                                    | Thermal motor protection in percent                                                                                 |
| Output      | `xBit0_Control`     | `BOOL`                                         |                                                    | <p>Status of the control unit (FALSE = not ready, TRUE = ready<br>)</p>                                             |
| Output      | `xBit1_FreqConv`    | `BOOL`                                         |                                                    | <p>Status of the frequency converter (FALSE = not ready, TRUE<br>= ready)</p>                                       |
| Output      | `xBit2_FreeRun`     | `BOOL`                                         |                                                    | <p>Status of free run (FALSE = active, TRUE = motor in<br>operation)</p>                                            |
| Output      | `xBit3_AlarmOff`    | `BOOL`                                         |                                                    | <p>Status of the fault with shutdown (FALSE = not active,<br>TRUE = active)</p>                                     |
| Output      | `xBit4_Alarm`       | `BOOL`                                         |                                                    | <p>Status of the fault without shutdown (FALSE = not active,<br>TRUE = active)</p>                                  |
| Output      | `xBit6_AlarmOffBl`  | `BOOL`                                         |                                                    | <p>Status of the fault with shutdown and blocking (FALSE<br>= not active, TRUE = active)</p>                        |
| Output      | `xBit7_Warn`        | `BOOL`                                         |                                                    | Status of the warning (FALSE = not active, TRUE = active)                                                           |
| Output      | `xBit8_SetpActual`  | `BOOL`                                         |                                                    | <p>Status of speed setpoint/actual value (FALSE = different, TRUE =<br>identical)</p>                               |
| Output      | `xBit9_LocalBus`    | `BOOL`                                         |                                                    | <p>Status of local operation/bus control (FALSE = local<br>operation, TRUE = bus control)</p>                       |
| Output      | `xBit10_FreqLimit`  | `BOOL`                                         |                                                    | <p>Status of the frequency limits (FALSE = frequency is<br>outside, TRUE = frequency is inside)</p>                 |
| Output      | `xBit12_OverTInv`   | `BOOL`                                         |                                                    | <p>Status of the inverter overtemperature message (<br>FALSE = Off, TRUE = On)</p>                                  |
| Output      | `xBit13_OverVolt`   | `BOOL`                                         |                                                    | Status of the overvoltage message (FALSE = Off, TRUE = On)                                                          |
| Output      | `xBit14_OverMomen`  | `BOOL`                                         |                                                    | <p>Status of the overtorque message (FALSE = Off, TRUE = On<br>)</p>                                                |
| Output      | `xBit15_OverTherm`  | `BOOL`                                         |                                                    | <p>Status of the thermal protection devices (FALSE = no<br>exceedance, TRUE = limit exceeded)</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      | `dwErrorCode1Dev`   | `DWORD`                                        | 0                                                  | Alarm word 1 - device                                                                                               |
| Output      | `dwErrorCode2Dev`   | `DWORD`                                        | 0                                                  | Alarm word 2 - device                                                                                               |
| Output      | `dwWarnCode1Dev`    | `DWORD`                                        | 0                                                  | Warning word 1 - device                                                                                             |
| Output      | `dwWarnCode2Dev`    | `DWORD`                                        | 0                                                  | Warning word 2 - device                                                                                             |
| Output      | `dwStateCode1Dev`   | `DWORD`                                        | 0                                                  | Extended status word 1 - device                                                                                     |
| Output      | `dwStateCode2Dev`   | `DWORD`                                        | 0                                                  | Extended status word 2 - device                                                                                     |
| Output      | `xBusy`             | `BOOL`                                         |                                                    | Communication indicator (TRUE = communication)                                                                      |
| Input Const | `wControlMode`      | `WORD`                                         | 0                                                  | 0 = speed control, 3 = PID controller                                                                               |
| Input Const | `xCW_Bit15`         | `BOOL`                                         | FALSE                                              | FALSE = No reversing, TRUE = Reversing                                                                              |
| Input Const | `xCW_Bit14`         | `BOOL`                                         | FALSE                                              | <p>Most Significant Bit - selection of parameter set (00 =<br>parameter set 1)</p>                                  |
| Input Const | `xCW_Bit13`         | `BOOL`                                         | FALSE                                              | <p>Least Significant Bit - selection of parameter set (00 =<br>parameter set 1)</p>                                 |
| Input Const | `xCW_Bit12`         | `BOOL`                                         | FALSE                                              | <p>FALSE = Relay 02 not activated, TRUE = Relay 02<br>activated</p>                                                 |
| Input Const | `xCW_Bit11`         | `BOOL`                                         | FALSE                                              | <p>FALSE = Relay 01 not activated, TRUE = Relay 01<br>activated</p>                                                 |
| Input Const | `xCW_Bit10`         | `BOOL`                                         | TRUE                                               | FALSE = Data invalid 1, TRUE = Data valid                                                                           |
| Input Const | `xCW_Bit9`          | `BOOL`                                         | FALSE                                              | FALSE = Ramp 1, TRUE = Ramp 2                                                                                       |
| Input Const | `xCW_Bit8`          | `BOOL`                                         | FALSE                                              | FALSE = No function, TRUE = Fixed-speed JOG                                                                         |
| Input Const | `xCW_Bit5`          | `BOOL`                                         | TRUE                                               | FALSE = Hold frequency output, TRUE = Use ramp                                                                      |
| Input Const | `xCW_Bit1`          | `BOOL`                                         | FALSE                                              | <p>Most Significant Bit - selection of fixed setpoint (00 = setpoint<br>0)</p>                                      |
| Input Const | `xCW_Bit0`          | `BOOL`                                         | FALSE                                              | <p>Least Significant Bit - selection of fixed setpoint (00 = setpoint<br>0)</p>                                     |
| Input Const | `eDisableMode`      | VLT\_HVAC\_DRIVE\_DISABLE\_MODE                | VLT\_HVAC\_DRIVE\_DISABLE\_MODE.FREE\_RUN\_STOP    | Type of shutdown of the frequency converter                                                                         |
| Input Const | `eCWTimeoutMode`    | VLT\_HVAC\_DRIVE\_CONTROL\_WORD\_TIMEOUT\_MODE | VLT\_HVAC\_DRIVE\_CONTROL\_WORD\_TIMEOUT\_MODE.OFF | Function after a control word timeout                                                                               |
| Input Const | `tTimeUpdateCW`     | `TIME`                                         | TIME#30s0ms                                        | <p>Update interval for transmission of the control word (CW =<br>Control word)</p>                                  |
| Input Const | `tTimeUpdateConfig` | `TIME`                                         | TIME#0ms                                           | <p>Update interval for the operations that are influenced by the input<br><code>xUpdateConfig</code> influenced</p> |
| Input Const | `tTimeUpdateSetp`   | `TIME`                                         | TIME#45s0ms                                        | <p>Update interval for the operations that are influenced by the input<br><code>xUpdateSetp</code> influenced</p>   |
| Input Const | `tTimeUpdateActual` | `TIME`                                         | TIME#3s0ms                                         | <p>Update interval for the operations that are influenced by the input<br><code>xUpdateActual</code> influenced</p> |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.powerio.com/hub/codesys-hvac/en/hvac-modbus-library/functionblocks/danfoss/danfoss_vlt_hvac_drive.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
