beautypg.com

7 mask compare (msk) – Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 86

background image

4Ć26

4.7

Mask Compare (MSK)

Use this instruction to apply a bitĆmask to two variables and then have them compared

to determine if the values are equal.
While EN is true, the value of Mask is logically ANDED with the variables In1 and In2.

After applying the bitĆmask, the instruction then compares In1 and In2 to determine if

they are equal. If the variables are equal, Q is true.
In1, In2, and Mask are treated as unsigned integers. If any of these parameters is

converted to double integers, the most significant 16 bits are set to zero.