![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030341.webp)
301
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)
Содержание 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 ...