MS_MS: Conversion multistate-multistate

The MS_MS (FB464) block maps the multistate input to the multistate output with the aid of the mapping list.

The block is used for the following purposes:

Functionality

The block looks for the input value [In] in the mapping list [MapList].

If the input value [In] is entered in the mapping list [MapList] in a mapping record [MapRec(i).In], the associated multistate value [MapRec(i).Out] is issued 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].

Inputs

Pin

E

Description

In

pa

Input.

DefVal

pa

Default value.

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

MapList

__Cnt

__Ele1

__ __In

__ __Out

pax

Mapping list.

List counter (Defines the size of the mapping list.)

Mapping element.

Input value.

Output value

Outputs

Pin

E

Description

Out

a

Output.

Input values

Pin

Description

Data type

Default value

E.g. Engineering unit or Text group

Min.

Max.

In

Input.

Multistate

1 (Off)

Off...Stage15

1

16

DefVal

Default value

Multistate

1 (Off)

Off...Stage15

1

16

MapList

Mapping list.

Struct

 

 

 

 

__Cnt

List size

Integer

0

 

 

 

__Ele[x]

List element

Struct

 

 

 

 

____In

 

Integer

 

 

1

16

____Out

 

Integer

 

 

1

16

Output values

Pin

Description

Data type

Default value

E.g. Engineering unit or Text group

Min.

Max.

Out

Output.

Multistate

1 (Off)

Off...Stage15

1

16

 

 

Process response

Standard (see General rules and information).

Troubleshooting

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

Cnt needs to be adjusted to the correct length of the list.