MuxString5Fun

MuxString5Fun (FUN)

FUNCTION MuxString5Fun : STRING

Short description

Multiplexer for strings with numeric selection (5 strings) Typical application: selection of message texts

Function description

This function returns the string selected by the numeric input bIndex (value range: 0 - 5) called selection string (sValue1 to sValue5) in STRING format. If the numeric input contains bIndex the value 0 or a value outside the range, an empty string ('') is returned.

CODESYS

InOut:

Scope
Name
Type
Initial

Return

MuxString5Fun

STRING

Input

bIndex

BYTE

0

Input

sValue1

STRING

Input

sValue2

STRING

Input

sValue3

STRING

Input

sValue4

STRING

Input

sValue5

STRING

Last updated