Masked Comparison for Equal (MEQ) instruction in Ladder Logics

The Masked Comparison for Equal (MEQ) instruction to compare data at a source address with data at a compare address.

The use of this instruction allows portions of the data to be masked by a separate word.

Masked Comparison for Equal (MEQ)

Masked%20Comparison%20for%20Equal%20(MEQ)%20instruction%20in%20Ladder%20Logics

Source is the address of the value you want to compare.

Mask is the address of the mask through which the instruction moves data.

The mask can be a hexadecimal value.

Compare is an integer value or the address of the reference.

If the 16 bits of data at the source address are equal to the 16 bits of data at the compare address (less masked bits), the instruction is true.

The instruction becomes false as soon as it detects a mismatch.

2 Likes