# MuxString2BinFun

## `MuxString2BinFun` (FUN)

FUNCTION MuxString2BinFun : STRING

### Kurzbeschreibung

> Multiplexer für Strings mit binärer Auswahl (2 binäre Eingänge)\
> Typische Anwendung: Auswahl von Meldungstexten

### Funktionsbeschreibung

Diese Funktion liefert den durch die binären Eingänge *xEn1* (FALSE = nicht aktiv, TRUE = aktiv) bzw. *xEn2* (FALSE = nicht aktiv, TRUE = aktiv) ausgewählten String (*sValue1* bzw. *sValue2*) im Format STRING zurück.\
Der Eingang *xEn1* hat stets die höchste Priorität. Ist kein Eingang aktiv, so wird ein Leerstring (‘’) zurück gegeben.

### CODESYS

InOut:

| Scope  | Name               | Type     |
| ------ | ------------------ | -------- |
| Return | `MuxString2BinFun` | `STRING` |
| Input  | `xEn1`             | `BOOL`   |
| Input  | `xEn2`             | `BOOL`   |
| Input  | `sValue1`          | `STRING` |
| Input  | `sValue2`          | `STRING` |


---

# 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/muxstring2binfun.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.
