Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

MuxBin2Fun

MuxBin2Fun (FUN)

FUNCTION MuxBin2Fun : REAL

Short description

Multiplexer for numerical input variables with binary selection (2 binary inputs) Typical application: switching temperature sensors

Functional description

This function returns the numeric input value selected by the binary inputs xEn1 (FALSE = inactive, TRUE = active) or xEn2 (FALSE = not active, TRUE = active) selected numeric input value (rValue1 or rValue2) is returned in REAL format. The input xEn1 always has the highest priority. If no input is active, the value 0.0 is returned.

CODESYS

InOut:

Scope
Name
Type

Return

MuxBin2Fun

REAL

Input

xEn1

BOOL

Input

xEn2

BOOL

Input

rValue1

REAL

Input

rValue2

REAL

Last updated