# AnalogValue

## `AnalogValue` (FB)

FUNCTION\_BLOCK AnalogValue

### Short description

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

### Representation

<figure><img src="https://2592874069-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQR4vCFzt6ixgsqlR3pdR%2Fuploads%2Fgit-blob-2c82d6db56b897af1a469a5bd51cc760247efbb8%2Fimage.png?alt=media" 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                             |
