> 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-library/functionblocks/components/damperanalog.md).

# DamperAnalog

## `DamperAnalog` (FB)

FUNCTION\_BLOCK DamperAnalog

### Short description

> Control of a continuous damper actuator with continuous position feedback\
> \
> Typical application: Continuous recirculation damper of an HVAC system

### Representation

<figure><img src="https://2592874069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2Fgit-blob-4825398b20029ec01a3532b2d60ebf59cc18d334%2FDamperAnalog_FB.png?alt=media" alt=""><figcaption></figcaption></figure>

### Interfaces

#### Inputs

| Name       | Data type         | Value range                                   | Initial value          | Function                                         |
| ---------- | ----------------- | --------------------------------------------- | ---------------------- | ------------------------------------------------ |
| *rY*       | REAL              |                                               |                        | Setpoint - Position                              |
| *xForce*   | BOOL              |                                               | FALSE                  | Forced override according to manual level        |
| *xAlarmIn* | BOOL              |                                               | FALSE                  | Actuator fault message                           |
| *rU*       | REAL              |                                               | 0.0                    | Feedback of the damper position                  |
| *eAO*      | HVACTYPES.eManNum | HVACTYPES.eManNum.Auto, HVACTYPES.eManNum.Man | HVACTYPES.eManBin.Auto | Operating mode of the manual override - hardware |
| *rPoti*    | REAL              |                                               | 0.0                    | Manual value of the manual override - hardware   |

#### Outputs

| Name        | Data type | Value range | Initial value | Function                                                    |
| ----------- | --------- | ----------- | ------------- | ----------------------------------------------------------- |
| *rHA*       | REAL      |             |               | Actuating signal for damper actuator after manual override  |
| *rAA*       | REAL      |             |               | Actuating signal for damper actuator before manual override |
| *xAlarmPos* | BOOL      |             |               | Fault message from position monitoring                      |
| *xAlarm*    | BOOL      |             |               | Collective fault                                            |
| *xAuto*     | BOOL      |             |               | Collective automatic operation message                      |

#### Setpoints / Parameters

| Name               | Data type | Value range               | Initial value | Function                                                                |
| ------------------ | --------- | ------------------------- | ------------- | ----------------------------------------------------------------------- |
| **udiControlTime** | UDINT     | 10s … 600s                | 150s          | Duration of position monitoring                                         |
| **rControlDiff**   | REAL      |                           | 7.0 %         | Maximum permissible deviation between setpoint and actual position in % |
| **xControl**       | BOOL      |                           | TRUE          | Enable position monitoring                                              |
| **xForceOption**   | BOOL      |                           | FALSE         | State of the output *rHA* under forced override                         |
| **rManValue**      | REAL      |                           | 0.0           | Manual value                                                            |
| **eManModeN**      | eMANNUM   | eMANNUM.Auto, eMANNUM.Man | eMANBIN.Auto  | Operating mode of the manual override                                   |

### Functional description

#### Actuating signal for damper actuator before manual override *rAA*

The actuating signal of the damper actuator before manual override *rAA* is passed through unchanged from the input setpoint - position *rY* .

#### Actuating signal for damper actuator after manual override *rHA*

The actuating signal of the damper actuator after manual override *rHA* corresponds to the actuating signal of the damper actuator before manual override *rAA* additionally extended by a manual override module and a forced override.

| *rAA* | **eManModeN** | *xForce* | **xForceOption** | *rHA*         | Notes                                    |
| ----- | ------------- | -------- | ---------------- | ------------- | ---------------------------------------- |
| X     | eMANNUM.Auto  | FALSE    | X                | *rAA*         | Manual override module in automatic mode |
| X     | eMANNUM.Man   | FALSE    | X                | **rManValue** | Manual override module in manual mode    |
| X     | X             | TRUE     | FALSE            | 0.0           | Forced override 0.0                      |
| X     | X             | TRUE     | TRUE             | 100.0         | Forced override 100.0                    |

Legend: X = any

#### Position monitoring

Position monitoring can be enabled (**xControl** = TRUE) or disabled (**xControl** = FALSE).\
When position monitoring is enabled, the magnitude of the difference between the actuating signal after manual override *rHA* and the position feedback from the damper actuator *rU* is determined and compared with the limit value **rControlDiff** compared.\
If this difference continuously exceeds the limit value during a reporting delay **udiControlTime** the limit value, an alarm signal is generated if, at the same time, the feedback - automatic mode *eAO* signals automatic mode (*eAO* = HVACTYPES.eManNum.Auto).\
This alarm signal is transferred to the output *xAlarmPos* transferred (*xAlarmPos* = TRUE).\
The alarm signal is deactivated again (*xAlarmPos* = FALSE) as soon as the difference falls below the limit value again for the first time.

#### Collective fault *xAlarm*

The collective fault *xAlarm* is activated (= TRUE) if *xAlarmPos* or the input *xAlarmIn* is active.\
In all other cases the collective fault is *xAlarm* is not activated (= FALSE).

#### Collective automatic operation message *xAuto*

The collective automatic operation message *xAuto* is activated (= TRUE) if the input *eAO* contains the value HVACTYPES.eManNum.Auto and the setpoint / parameter **eManModeN** contains the value eMANNUM.Auto. In all other cases, the collective message automatic mode *xAuto* is not activated (= FALSE).

#### Forced override *xForce*

The forced override acts directly on the output *rHA*. With the parameter **xForceOption** it is determined which state the output *rHA* assumes when TRUE is at the input *xForce* takes.\
\
With **xForceOption** = FALSE\
If the input *xForce* is TRUE, then the output *rHA* is set to 0.\
\
For **xForceOption** = TRUE\
If the input *xForce* is TRUE, then the output *rHA* set to 100.

### CODESYS

InOut:

| Scope       | Name             | Type    | Initial      |
| ----------- | ---------------- | ------- | ------------ |
| Input       | `rY`             | `REAL`  |              |
| Input       | `xForce`         | `BOOL`  | FALSE        |
| Input       | `xAlarmIn`       | `BOOL`  | FALSE        |
| Input       | `rU`             | `REAL`  | 0            |
| Input       | `eAO`            | eManNum | eManNum.Auto |
| Input       | `rPoti`          | `REAL`  | 0            |
| Output      | `rHA`            | `REAL`  |              |
| Output      | `rAA`            | `REAL`  |              |
| Output      | `xAlarmPos`      | `BOOL`  |              |
| Output      | `xAlarm`         | `BOOL`  |              |
| Output      | `xAuto`          | `BOOL`  |              |
| Input Const | `udiControlTime` | `UDINT` | 200          |
| Input Const | `rControlDiff`   | `REAL`  | 7            |
| Input Const | `xControl`       | `BOOL`  | TRUE         |
| Input Const | `xForceOption`   | `BOOL`  | FALSE        |
| Input Const | `rManValue`      | `REAL`  | 0            |
| Input Const | `eManModeN`      | eMANNUM | eMANNUM.Auto |


---

# 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-library/functionblocks/components/damperanalog.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.
