![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030080.webp)
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
291
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
297
UNSIGNED COM-
PARE
CMP
!CMP
*1
020
Output
Required
303
DOUBLE
UNSIGNED
COMPARE
CMPL
060
Output
Required
306
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
(>, >=, =, <=, <, <>)
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...