# MuxString4BinFun

## `MuxString4BinFun` (FUN)

FUNCTION MuxString4BinFun : STRING

### Short description

> Multiplexer for strings with binary selection (4 binary inputs)\
> Typical application: selection of message texts

### Function description

This function returns the string selected by the binary inputs *xEn1* (FALSE = not active, TRUE = active) up to *xEn4* (FALSE = not active, TRUE = active) selected string (*sValue1* to *sValue4*) in STRING format is returned. The input *xEn1* always has the highest priority, the input *xEn2* the second highest, and so on. If no input is active, an empty string ('') is returned.

### CODESYS

InOut:

| Scope  | Name               | Type     |
| ------ | ------------------ | -------- |
| Return | `MuxString4BinFun` | `STRING` |
| Input  | `xEn1`             | `BOOL`   |
| Input  | `xEn2`             | `BOOL`   |
| Input  | `xEn3`             | `BOOL`   |
| Input  | `xEn4`             | `BOOL`   |
| Input  | `sValue1`          | `STRING` |
| Input  | `sValue2`          | `STRING` |
| Input  | `sValue3`          | `STRING` |
| Input  | `sValue4`          | `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/en/hvac-library/funktionen/muxstring4binfun.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.
