# AnalogValue

## `AnalogValue` (FB)

FUNCTION\_BLOCK AnalogValue

### Kurzbeschreibung

> Behandlung eines Rohwertes\
> Typische Anwendung: Einlesens des Rohwertes von einem analogen Eingang.

### Darstellung

<figure><img src="https://879424349-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>

### Funktionsbeschreibung

#### Allgemeines

Dieser Funktionsbaustein besteht aus den Funktionen der vier einzelnen FB’s:

* TwoPoint
* Offset
* Limiter
* DampingT1

\
Die Abarbeitung erfolgt in dieser Reihenfolge.

### 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 | `xFilterAktiv`            | `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                             |
