[CMP_MS] Compare of multistate

Function block CMP_MS compares two Multistate values and supplies a Boolean value at the output.

CMP_MS compares two Multistate values and supplies a Boolean value at the output.

Functioning

CMP_MS compares the two input values [In1] and [In2] and sets either '1' or '0' at the beginning of the output in dependence of the result [Eq].

 

Result

Condition

Eq

In1 = In2

1

In1In2

0

Pins

Input

Description

Data type

Default value
Value range

In1In2

Input 1Input 2

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

Integer

1

 

Output

Description

Data type

Default value
Value range

Eq

In1 equals In2

Boolean

0

0 - In1 is not equal to In2.
1 - In1 is equal to In2.