A-1-5 Comparison Instructions - Omron CJ2 CPU - REV 10-2010 User Manual

Cj2 cpu unit software
Table of Contents

Advertisement

Appendices
A-1-5
Comparison Instructions
Instruction
Mnemonic
Symbol Com-
LD, AND,
300 (=)
parison
OR + =, <>,
305 (<>)
(Unsigned)
<, <=, >, >=
310 (<)
315 (<=)
320 (>)
325(>=)
Symbol Com-
LD, AND,
301 (=)
parison (Dou-
OR + =, <>,
306 (<>)
ble-word,
<, <=, >, >=
311 (<)
unsigned)
+ L
316 (<=)
321 (>)
326 (>=)
Symbol Com-
LD, AND,
302 (=)
parison
OR + =, <>,
307 (<>)
(Signed)
<, <=, >, >=
312 (<)
+S
317 (<=)
322 (>)
327 (>=)
Symbol Com-
LD, AND,
303 (=)
parison (Dou-
OR + =, <>,
308 (<>)
ble-word,
<, <=, >, >=
313 (<)
signed)
+SL
318 (<=)
323 (>)
328 (>=)
A-14
Code
Symbol/Operand
LD
Symbol and option
S
1
S
2
AND
Symbol and option
S
1
S
2
OR
Symbol and option
S
1
S
2
S1: Comparison data 1
S2: Comparison data 2
S
: Comparison data 1
1
S
: Comparison data 2
2
S
: Comparison data 1
1
S
: Comparison data 2
2
S
: Comparison data 1
1
S
: Comparison data 2
2
Function
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
LD
comparison result is true.
<
AND
<
OR
<
ON execution condition when
comparison result is true.
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.
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.
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.
Execution
Location
condition
LD:
LD: Not
Logic
required
start
AND, OR:
AND,
Required
OR:
Contin-
ues on
rung
ON execution
condition when
comparison result
is true.
LD:
LD: Not
Logic
required
start
AND, OR:
AND,
Required
OR:
Contin-
ues on
rung
LD:
LD: Not
Logic
required
start
AND, OR:
AND,
Required
OR:
Contin-
ues on
rung
LD:
LD: Not
Logic
required
start
AND, OR:
AND,
Required
OR:
Contin-
ues on
rung
CJ2 CPU Unit Software User's Manual

Advertisement

Table of Contents
loading

Table of Contents