# SimpleWriteValueFloat

## `SimpleWriteValueFloat` (FB)

`FUNCTION_BLOCK` SimpleWriteValueFloat

### Darstellung

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

### Verwendung von Typkonvertierungsoperatoren (z.B. INT\_TO\_REAL) direkt am Eingang `InputValue`

In dieser Konstellation werden Compiler-Fehlermeldungen vom Typ C0032 erzeugt, ein Download ist nicht möglich.

{% hint style="info" %}
Abhilfe:&#x20;

Verwendung einer Zwischenvariablen vom expliziten Typ `REAL` direkt am Ausgang des Typkonvertierungsoperators. Anbindung der Zwischenvariablen am Eingang `InputValue`.
{% endhint %}

### CODESYS

InOut:

| Scope       | Name               | Type                              | Initial                                         | Comment                                                                                                                                                             |
| ----------- | ------------------ | --------------------------------- | ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input       | `xEn`              | `BOOL`                            | TRUE                                            | Freigabe / Sperrung der Kommunikation (TRUE = Freigabe)                                                                                                             |
| Input       | `byUnitId`         | `BYTE`                            | 0                                               | Adresse des Geräts                                                                                                                                                  |
| Input       | `InputValue`       | `__SYSTEM.AnyType`                |                                                 | Eingangsvariable (FC16) (`REAL`, `LREAL`)                                                                                                                           |
| Input       | `rMultiplier`      | `REAL`                            | 1.0                                             | Multiplikator für die Eingangsvariable                                                                                                                              |
| Input       | `xUpdateSetp`      | `BOOL`                            | FALSE                                           | Aktualisierung der Sollwerte (bei jeder ansteigenden Flanke)                                                                                                        |
| Input       | `xResError`        | `BOOL`                            | FALSE                                           | <p>Reinitialisierung der Ausgänge <code>eErrorCodeCom</code> bzw.<br><code>eErrorCodeDev</code> auf den fehlerfreien Zustand (bei jeder<br>ansteigenden Flanke)</p> |
| Inout       | `ModbusClient`     | `ModbusClientBase`                |                                                 | Client des Geräts                                                                                                                                                   |
| Output      | `wRegisterAddrFb`  | `WORD`                            |                                                 | <p>Rückmeldung - Startadresse des Registers für das Modbus-<br>Telegramm</p>                                                                                        |
| Output      | `eFormatFb`        | SIMPLE\_WRITE\_FORMAT\_CODE       |                                                 | Rückmeldung - Format der Gleitkommazahl                                                                                                                             |
| Output      | `eTypeInputValue`  | SIMPLE\_WRITE\_VALUE\_TYPE\_CODE  | SIMPLE\_WRITE\_VALUE\_TYPE\_CODE.STATE\_INVALID | Zustand des Vorzeichens des Werts am Eingang `InputValue`                                                                                                           |
| Output      | `xAlarm`           | `BOOL`                            |                                                 | Sammelstörung (TRUE = Störung)                                                                                                                                      |
| Output      | `xAlarmCom`        | `BOOL`                            |                                                 | Sammelstörung - Kommunikation (TRUE = Störung)                                                                                                                      |
| Output      | `eErrorCodeCom`    | ModbusErrorCode                   |                                                 | Fehlercode - Kommunikation (0 = kein Fehler)                                                                                                                        |
| Output      | `eErrorCodeDev`    | SIMPLE\_WRITE\_VALUE\_ERROR\_CODE |                                                 | Fehlercode - Gerät (0 = kein Fehler)                                                                                                                                |
| Output      | `xBusy`            | `BOOL`                            |                                                 | Kommunikationsanzeige (TRUE = Kommunikation)                                                                                                                        |
| Input Const | `lrDevMinus_64Bit` | `LREAL`                           | 0.0                                             | <p>Maximale negative Wertänderung vor der Auslösung einer<br>Übertragung (64 Bit)</p>                                                                               |
| Input Const | `lrDevPlus_64Bit`  | `LREAL`                           | 0.0                                             | <p>Maximale positive Wertänderung vor der Auslösung einer<br>Übertragung (64 Bit)</p>                                                                               |
| Input Const | `rDevMinus_32Bit`  | `REAL`                            | 0.0                                             | <p>Maximale negative Wertänderung vor der Auslösung einer<br>Übertragung (32 Bit)</p>                                                                               |
| Input Const | `rDevPlus_32Bit`   | `REAL`                            | 0.0                                             | <p>Maximale positive Wertänderung vor der Auslösung einer<br>Übertragung (32 Bit)</p>                                                                               |
| Input Const | `xSwapValue`       | `BOOL`                            | TRUE                                            | <p>Freigabe / Sperrung des Positionswechsels der Bytes eines<br>Registers (16 Bit) (nur relevant für 32 / 64 Bit)</p>                                               |
| Input Const | `xBigEndian`       | `BOOL`                            | TRUE                                            | <p>Position der höchstwertigen 8 Bits in einem Datum (nur<br>relevant für 32 / 64 Bit)</p>                                                                          |
| Input Const | `eFormat`          | SIMPLE\_WRITE\_FORMAT\_CODE       | SIMPLE\_WRITE\_FORMAT\_CODE.IEEE754\_32BIT      | <p>FALSE = höchstwertigsten 8 Bits werden zuletzt gesendet // TRUE = höchstwertigsten 8 Bits werden zuerst gesendet<br>Format der Gleitkommazahl</p>                |
| Input Const | `wRegisterAddr`    | `WORD`                            |                                                 | Startadresse des Registers für das Modbus-Telegramm                                                                                                                 |
| Input Const | `tTimeUpdateSetp`  | `TIME`                            | TIME#0ms                                        | <p>Updateintervall für die Vorgänge, die durch den Eingang<br><code>xUpdateSetp</code> beeinflusst werden</p>                                                       |


---

# 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/hvac-modbus-library/functionblocks/generic/simplewritevaluefloat.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.
