292
Comparison Instructions
Section 3-7
3-7
Comparison Instructions
This section describes instructions used to compare data of various lengths
and in various ways.
3-7-1
Input Comparison Instructions (300 to 328)
Purpose
Input comparison instructions compare two values (constants and/or the con-
tents of specified words) and create an ON execution condition when the
comparison condition is true. Input comparison instructions are available to
compare signed or unsigned data of one-word or double length data.
Note
Refer to
3-15-24 Single-precision Floating-point Comparison Instructions
for
details on single-precision floating-point input comparison instructions and
3-
16-21 Double-precision Floating-point Input Instructions
for details on double-
precision floating-point input comparison instructions.
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
for Instructions for One-
word Data
Instruction
Mnemonic
Function
code
Page
Input Comparison Instructions
=, <>, <, <=, >, >=
(S, L) (LD, AND, OR)
300 to 328
292
Time Comparison Instructions
=DT, <>DT, <DT, <=DT, >DT,
>=DT (LD, AND, OR)
341 to 346
298
COMPARE
CMP
020
304
DOUBLE COMPARE
CMPL
060
307
SIGNED BINARY COMPARE
CPS
114
310
DOUBLE SIGNED BINARY
COMPARE
CPSL
115
313
MULTIPLE COMPARE
MCMP
019
316
TABLE COMPARE
TCMP
085
318
BLOCK COMPARE
BCMP
068
321
EXPANDED BLOCK COMPARE BCMP2
502
323
AREA RANGE COMPARE
ZCP
088
327
DOUBLE AREA RANGE COM-
PARE
ZCPL
116
330
S
1
S
2
S
1
: Comparison data 1
S
2
: Comparison data 2
Symbol & options
Variations
Creates ON Each Cycle Comparison is True
Input compari-
son instruction
Immediate Refreshing Specification
Not supported
Block program areas
Step program areas
Subroutines
Interrupt tasks
OK
OK
OK
OK
Area
S
1
S
2
CIO Area
CIO 0000 to CIO 6143
Work Area
W000 to W511
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...