MuxBin2Fun

MuxBin2Fun (FUN)

FUNCTION MuxBin2Fun : REAL

Short description

Multiplexer for numeric input quantities with binary selection (2 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) or xEn2 (FALSE = not active, TRUE = active) selected numeric input variable ( rValue1 or rValue2 ) 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