CMP_MS: Comparison of multistate
The CMP_MS (FB462) block compares two multistate values and supplies the logical result (Yes, No).
Functionality
The block compares the two input values [In1] and [In2] and sets either 1 (Yes) or 0 (No) at the beginning of the output in dependence of the result [Eq].
| Result |
Condition | Eq |
In1 = In2 | 1 (Yes) |
In1 <> In2 | 0 (No) |
Inputs
Pin | E | Description |
In1 | pa | Input 1 |
In2 | pa | Input 2 |
Outputs
Pin | E | Description |
Eq | a | In1 equals In2 |
Input values
Pin | Description | Data Type | Default value | E.g. Engineering unit or Text group | Min. | Max. |
In1 | Input 1 | Multistate | 1 (Off) | Off...Stage15 |
|
|
In2 | Input 2 | Multistate | 1 (Off) | Off...Stage15 |
|
|
Output values
Pin | Description | Data Type | Default value | E.g. Engineering unit or Text group | Min. | Max. |
Eq | In1 equals In2 | Boolean | 0 (No) | No, Yes |
|
|
Process response
Standard (see General rules and information).
Troubleshooting
Standard (see General rules and information).