![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268341.webp)
302
Comparison Instructions
Section 3-7
Previous data comparison instructions compared data in 16-bit units. The
time comparison instructions are limited to comparing 8-bit time values.
The following table shows the structure of the CPU Unit’s internal Calendar/
Clock Area.
The Calendar/Clock Area can be set with a Programming Device (including a
Programming Console), DATE(735) instruction, or “CLOCK WRITE” FINS
command (0702 hex).
Summary of Time Comparison Instructions
The following table shows the function codes, mnemonics, names, and func-
tions of the 18 time comparison instructions.
Addresses
Contents
A35100 to A35107
Second (00 to 59, BCD)
A35108 to A35115
Minute (00 to 59, BCD)
A35200 to A35207
Hour (00 to 23, BCD)
A35208 to A35215
Day of month (01 to 31, BCD)
A35300 to A35307
Month (01 to 12, BCD)
A35308 to A35315
Year (00 to 99, BCD)
Code
Mnemonic
Name
Function
341
LD= DT
LOAD EQUAL
True if
S1 = S2
AND=DT
AND EQUAL
OR=DT
OR EQUAL
342
LD<>DT
LOAD NOT EQUAL
True if
S1
≠
S2
AND<>DT
AND NOT EQUAL
OR<>DT
OR NOT EQUAL
343
LD<DT
LOAD LESS THAN
True if
S1 < S2
AND<DT
AND LESS THAN
OR<DT
OR LESS THAN
344
LD<=DT
LOAD LESS THAN OR EQUAL
True if
S1
≤
S2
AND<=DT
AND LESS THAN OR EQUAL
OR<=DT
OR LESS THAN OR EQUAL
345
LD>DT
LOAD GREATER THAN
True if
S1 > S2
AND>DT
AND GREATER THAN
OR>DT
OR GREATER THAN
346
LD>=DT
LOAD GREATER THAN OR EQUAL
True if
S1
≥
S2
AND>=DT
AND GREATER THAN OR EQUAL
OR>=DT
OR GREATER THAN OR EQUAL
00
07
08
15
S
1
S
1
+1
S
1
+2
00
07
08
15
S
2
S
2
+1
S
2
+2
Present time data
Comparison time data
Compares only hours and
minutes data.
Year, month, day, and seconds
data is masked.
Second (00 to
59, BCD)
Second (00 to
59, BCD)
Minute (00 to
59, BCD)
Minute (00 to
59, BCD)
Hour (00 to
23, BCD)
Hour (00 to
23, BCD)
Day of month
(01 to 31, BCD)
Day of month
(01 to 31, BCD)
Month (01 to
12, BCD)
Month (01 to
12, BCD)
Year (00 to
99, BCD)
Year (00 to
99, BCD)
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...