Installation manual

Publication 1747-RM001G-EN-P - November 2008
3-4 Comparison Instructions
Greater Than or Equal (GEQ)
Use the GEQ instruction to test whether one value (source A) is greater than
or equal to another (source B). If the value at source A is greater than or equal
to the value at source B, the instruction is logically true. If the value at source
A is less than the value at source B, the instruction is logically false.
Source A must be an address. Source B can either be a program constant or an
address. Negative integers are stored in two’s complement form.
Masked Comparison for
Equal (MEQ)
Use the MEQ instruction to compare data at a source address with data at a
compare address. Use of this instruction allows portions of the data to be
masked by a separate word.
Entering Parameters
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 also be a hexadecimal value (constant).
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. Bits in the mask word mask
data when reset; they pass data when set.
GEQ
Grtr Than or Eql (A>=B)
Source A N7:10
0<
Source B N7:11
0<
GEQ
Input Instruction
Fixed SLC
5/01
SLC
5/02
SLC
5/03
SLC
5/04
SLC
5/05
•••••
MEQ
Masked Equal
Source N7:12
0<
Mask 00FFh
255<
Compare 255
255<
MEQ
Input Instruction
Fixed SLC
5/01
SLC
5/02
SLC
5/03
SLC
5/04
SLC
5/05
•••••