Installation manual
Publication 1747-RM001G-EN-P - November 2008
Comparison Instructions 3-3
Less Than (LES)
Use the LES instruction to test whether one value (source A) is less than
another (source B). If source A is less than the value at source B, the
instruction is logically true. If the value at source A is greater than or equal to
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.
Less Than or Equal (LEQ)
Use the LEQ instruction to test whether one value (source A) is less than or
equal to another (source B). If the value at source A is less than or equal to the
value at source B, the instruction is logically true. If the value at source A is
greater 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.
Greater Than (GRT)
Use the GRT instruction to test whether one value (source A) is greater than
another (source B). If the value at source A is greater than the value at source
B, the instruction is logically true. If the value at source A is less than or equal
to 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.
LES
Less Than (A<B)
Source A N7:4
0<
Source B N7:5
0<
LES
Input Instruction
Fixed SLC
5/01
SLC
5/02
SLC
5/03
SLC
5/04
SLC
5/05
• •••••
LEQ
Less Than or Eql (A<=B)
Source A N7:6
0<
Source B N7:7
0<
LEQ
Input Instruction
Fixed SLC
5/01
SLC
5/02
SLC
5/03
SLC
5/04
SLC
5/05
• •••••
GRT
Greater Than (A>B)
Source A N7:8
0<
Source B N7:9
0<
GRT
Input Instruction
Fixed SLC
5/01
SLC
5/02
SLC
5/03
SLC
5/04
SLC
5/05
• •••••