# MuxBin10Fun

## `MuxBin10Fun` (FUN)

FUNCTION MuxBin10Fun : REAL

### Kurzbeschreibung

> Multiplexer für nummerische Eingangsgrössen mit binärer Auswahl (10 binäre Eingänge)\
> Typische Anwendung: Umschaltung von Temperaturfühlern

### Funktionsbeschreibung

Diese Funktion liefert die durch die binären Eingänge *xEn1* (FALSE = nicht aktiv, TRUE = aktiv) bis *xEn10* (FALSE = nicht aktiv, TRUE = aktiv) ausgewählte nummerische Eingangsgrösse (*rValue1* bis *rValue10*) im Format REAL zurück. Der Eingang *xEn1* hat stets die höchste Priorität, der Eingang *xEn2* die zweithöchste, usw… Ist kein Eingang aktiv, so wird der Wert 0.0 zurück gegeben.

### CODESYS

InOut:

| Scope  | Name          | Type   |
| ------ | ------------- | ------ |
| Return | `MuxBin10Fun` | `REAL` |
| Input  | `xEn1`        | `BOOL` |
| Input  | `xEn2`        | `BOOL` |
| Input  | `xEn3`        | `BOOL` |
| Input  | `xEn4`        | `BOOL` |
| Input  | `xEn5`        | `BOOL` |
| Input  | `xEn6`        | `BOOL` |
| Input  | `xEn7`        | `BOOL` |
| Input  | `xEn8`        | `BOOL` |
| Input  | `xEn9`        | `BOOL` |
| Input  | `xEn10`       | `BOOL` |
| Input  | `rValue1`     | `REAL` |
| Input  | `rValue2`     | `REAL` |
| Input  | `rValue3`     | `REAL` |
| Input  | `rValue4`     | `REAL` |
| Input  | `rValue5`     | `REAL` |
| Input  | `rValue6`     | `REAL` |
| Input  | `rValue7`     | `REAL` |
| Input  | `rValue8`     | `REAL` |
| Input  | `rValue9`     | `REAL` |
| Input  | `rValue10`    | `REAL` |


---

# 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-library/funktionen/muxbin10fun.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.
