MuxString5BinFun

MuxString5BinFun (FUN)

FUNCTION MuxString5BinFun : STRING

Short description

Multiplexer for strings with binary selection (5 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 xEn5 (FALSE = not active, TRUE = active) ( sValue1 to sValue5 ) in STRING format. 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

MuxString5BinFun

STRING

Input

xEn1

BOOL

Input

xEn2

BOOL

Input

xEn3

BOOL

Input

xEn4

BOOL

Input

xEn5

BOOL

Input

sValue1

STRING

Input

sValue2

STRING

Input

sValue3

STRING

Input

sValue4

STRING

Input

sValue5

STRING

Last updated