[MS_MS] Conversion multistate to multistate

Function block MS_MS maps the multistate input to the multistate output with the aid of the mapping list.

MS_MS maps the multistate input to the multistate output with the aid of the mapping list.

MS_MS is used:

Functioning

MS_MS searches the mapping list [MapList] for input value [In] and issues the related value at output [Out]. If the input value [In] is not entered in the mapping list [MapList], the default value [DefVal] is issued at output [Out].

Pins

Input

Description

Data type

Default value
Value range

In

Input

The enumeration must be configured. Else, only values are displayed.

Integer

1: Off

Off…Stage15

DefVal

Default value

Replacement value for [Out] if [In] is not entered in [MapList].

The enumeration must be configured. Else, only values are displayed.

Integer

1: Off

Off…Stage15

MapList

Mapping list

Structure

-

MapList
> Cnt

Counter

Determines the number of defined mapping elements.

Integer

0

MapList
> Ele1…Ele16

Element 1…16

Structure

-

MapList
> Ele1…Ele16
> In

Input

Integer

1

MapList
> Ele1…Ele16
> Out

Output

Integer

1

 

Output

Description

Data type

Default value
Value range

Out

Output

The enumeration must be configured. Else, only values are displayed.

Integer

1

Troubleshooting

If the input value [In] is not entered in the mapping list [MapList], the default value [DefVal] is issued at output [Out].

[Cnt] must be adapted to the correct list length.