40
Instruction Functions
Section 2-2
Symbol Compari-
son (Double-
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) compare two
values (constants and/or the contents of specified double-word data) in
signed 32-bit binary (8-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: Not
required
AND, OR:
Required
292
Time Compari-
son
LD, AND, OR + =
DT, <> DT, < DT,
<= DT, > DT, >=
DT
341 (= DT)
342 (<> DT)
343 (< DT)
344 (<= DT)
345 (> DT)
346 (>= DT)
(CS/CJ-series
CPU Unit Ver. 2.0
or later only)
Time comparison instructions compare two BCD time values and create
an ON execution condition when the comparison condition is true.
There are three types of time comparison instructions, LD (LOAD),
AND, and OR. Time values (year, month, day, hour, minute, and second)
can be masked/unmasked in the comparison so it is easy to create cal-
endar timer functions.
LD: Not
required
AND, OR:
Required
298
UNSIGNED COM-
PARE
CMP
!CMP
*1
020
Output
Required
304
DOUBLE
UNSIGNED
COMPARE
CMPL
060
Output
Required
307
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
Page
S1
C
S2
LD (LOAD):
AND:
OR:
S1
C
S2
S1
C
S2
Symbol
Symbol
Symbol
C:
Control
word
S1:
1st word of
present time
S2:
1st word of
comparison
time
CMP(020)
S
1
S
2
S
1
:
Comparison
data 1
S
2
:
Comparison
data 2
Compares two unsigned binary values (constants and/or the contents
of specified words) and outputs the result to the Arithmetic Flags in
the Auxiliary Area.
Unsigned binary
comparison
Arithmetic Flags
(>, >=, =, <=, <, <>)
CMPL(060)
S
1
S
2
S
1
:
Comparison
data 1
S
2
:
Comparison
data 2
S1+1
S2+1
Compares two double unsigned binary values (constants and/or the
contents of specified words) and outputs the result to the Arithmetic
Flags in the Auxiliary Area.
Unsigned binary
comparison
Arithmetic Flags
(>, >=, =, <=, <, <>)
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...