Appendices
A-14
CJ2 CPU Unit Software User’s Manual
A-1-5 Comparison Instructions
Instruction Mnemonic Code Symbol/Operand Function Location
Execution
condition
Symbol Com-
parison
(Unsigned)
LD, AND,
OR + =, <>,
<, <=, >, >=
300 (=)
305 (<>)
310 (<)
315 (<=)
320 (>)
325(>=)
LD:
Logic
start
AND,
OR:
Contin-
ues on
rung
LD: Not
required
AND, OR:
Required
Symbol Com-
parison (Dou-
ble-word,
unsigned)
LD, AND,
OR + =, <>,
<, <=, >, >=
+ L
301 (=)
306 (<>)
311 (<)
316 (<=)
321 (>)
326 (>=)
S
1
: Comparison data 1
S
2
: Comparison data 2
Symbol comparison instructions (double-word, unsigned)
compare two values (constants and/or the contents of speci-
fied double-word data) in unsigned 32-bit binary data and
create an ON execution condition when the comparison con-
dition is true. There are three types of symbol comparison
instructions, LD (LOAD), AND, and OR.
LD:
Logic
start
AND,
OR:
Contin-
ues on
rung
LD: Not
required
AND, OR:
Required
Symbol Com-
parison
(Signed)
LD, AND,
OR + =, <>,
<, <=, >, >=
+S
302 (=)
307 (<>)
312 (<)
317 (<=)
322 (>)
327 (>=)
S
1
: Comparison data 1
S
2
: Comparison data 2
Symbol comparison instructions (signed) compare two val-
ues (constants and/or the contents of specified words) in
signed 16-bit binary (4-digit hexadecimal) and create an ON
execution condition when the comparison condition is true.
There are three types of symbol comparison instructions, LD
(LOAD), AND, and OR.
LD:
Logic
start
AND,
OR:
Contin-
ues on
rung
LD: Not
required
AND, OR:
Required
Symbol Com-
parison (Dou-
ble-word,
signed)
LD, AND,
OR + =, <>,
<, <=, >, >=
+SL
303 (=)
308 (<>)
313 (<)
318 (<=)
323 (>)
328 (>=)
S
1
: Comparison data 1
S
2
: Comparison data 2
Symbol comparison instructions (double-word, signed) com-
pare two values (constants and/or the contents of specified
double-word data) in signed 32-bit binary (8-digit hexadeci-
mal) and create an ON execution condition when the com-
parison condition is true. There are three types of symbol
comparison instructions, LD (LOAD), AND, and OR.
LD:
Logic
start
AND,
OR:
Contin-
ues on
rung
LD: Not
required
AND, OR:
Required
S
1
S
2
Symbol and option
LD
S
1
S
2
Symbol and option
S
1
S
2
Symbol and option
AND
OR
S1: Comparison data 1
S2: Comparison data 2
<
<
<
LD
AND
OR
Symbol comparison instructions (unsigned) compare
two values (constants and/or the contents of specified
words) in 16-bit binary data and create an ON execution
condition when the comparison condition is true. There
are three types of symbol comparison instructions, LD
(LOAD), AND, and OR.
ON execution condition when
comparison result is true.
ON execution
condition when
comparison result
is true.
ON execution condition when
comparison result is true.