MuxBin5Fun

MuxBin5Fun (FUN)

FUNCTION MuxBin5Fun : REAL

Short description

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

Function description

This function returns the numeric input selected by the binary inputs xEn1 (FALSE = not active, TRUE = active) up to xEn5 (FALSE = not active, TRUE = active) selected numeric input variable ( rValue1 to rValue5 ) 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

MuxBin5Fun

REAL

Input

xEn1

BOOL

Input

xEn2

BOOL

Input

xEn3

BOOL

Input

xEn4

BOOL

Input

xEn5

BOOL

Input

rValue1

REAL

Input

rValue2

REAL

Input

rValue3

REAL

Input

rValue4

REAL

Input

rValue5

REAL

Last updated