> For the complete documentation index, see [llms.txt](https://support.powerio.com/hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.powerio.com/hub/codesys-hvac/en/hvac-library/funktionen/muxbin10fun.md).

# MuxBin10Fun

## `MuxBin10Fun` (FUN)

FUNCTION MuxBin10Fun : REAL

### Short description

> Multiplexer for numeric input values with binary selection (10 binary inputs)\
> Typical application: Switching of temperature sensors

### Function description

This function returns the numeric input selected by the binary inputs *xEn1* (FALSE = not active, TRUE = active) up to *xEn10* (FALSE = not active, TRUE = active) selected numeric input value (*rValue1* to *rValue10*) in REAL format. The input *xEn1* always has the highest priority, the input *xEn2* has the second highest, etc… If no input is active, the value 0.0 is returned.

### 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://support.powerio.com/hub/codesys-hvac/en/hvac-library/funktionen/muxbin10fun.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
