# AnalogValue

## `AnalogValue` (FB)

FUNCTION\_BLOCK AnalogValue

### Short description

> Handling of a raw value\
> Typical application: Reading the raw value from an analog input.

### Representation

<figure><img src="/files/b4e68cc8d2bc393666956f98aa82082e72569431" alt=""><figcaption></figcaption></figure>

### Function description

#### General

This function block consists of the functions of the four individual FBs:

* TwoPoint
* Offset
* Limiter
* DampingT1

\
Processing is carried out in this order.

### Codesys

InOut:

| Scope       | Name                      | Type         | Initial                       |
| ----------- | ------------------------- | ------------ | ----------------------------- |
| Input       | `rIn`                     | `REAL`       |                               |
| Output      | `rOut`                    | `REAL`       |                               |
| Output      | `xErr`                    | `BOOL`       |                               |
| Input Const | `tInitDelayFilter`        | `TIME`       | TIME#10s0ms                   |
| Input Const | `rInitValueFilter`        | `REAL`       | 100                           |
| Input Const | `eInitialFilter`          | eInit        | eInit.InputValueDelayed       |
| Input Const | `tTimeConstantFilter`     | `TIME`       | TIME#10s0ms                   |
| Input Const | `xFilterActive`           | `BOOL`       | TRUE                          |
| Input Const | `rReplacementValueLimit`  | `REAL`       | -50                           |
| Input Const | `eReplacementOptionLimit` | eLimiterMode | eLimiterMode.ReplacementValue |
| Input Const | `rMaxLimit`               | `REAL`       | 150                           |
| Input Const | `rMinLimit`               | `REAL`       | -50                           |
| Input Const | `xLimitAktiv`             | `BOOL`       | TRUE                          |
| Input Const | `rOffset`                 | `REAL`       | 0                             |
| Input Const | `iMinMaxOffsetTwoPoint`   | `INT`        | 0                             |
| Input Const | `xMinMaxLimitTwoPoint`    | `BOOL`       | FALSE                         |
| Input Const | `rY2TwoPoint`             | `REAL`       | 100                           |
| Input Const | `rY1TwoPoint`             | `REAL`       | 0                             |
| Input Const | `rX2TwoPoint`             | `REAL`       | 100                           |
| Input Const | `rX1TwoPoint`             | `REAL`       | 0                             |


---

# 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-library/functionblocks/numeric/analogvalue.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.
