MuxString4BinFun

MuxString4BinFun (FUN)

FUNCTION MuxString4BinFun : STRING

Short description

Multiplexer for strings with binary selection (4 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 xEn4 (FALSE = not active, TRUE = active )selected string ( sValue1 to sValue4 ) 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

MuxString4BinFun

STRING

Input

xEn1

BOOL

Input

xEn2

BOOL

Input

xEn3

BOOL

Input

xEn4

BOOL

Input

sValue1

STRING

Input

sValue2

STRING

Input

sValue3

STRING

Input

sValue4

STRING

Last updated