Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 341

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Comparison Instructions
Present time data
15
08
Minute (00 to
S
1
59, BCD)
Day of month
S
+1
1
(01 to 31, BCD)
Year (00 to
S
+2
1
99, BCD)
Compares only hours and
minutes data.
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.
Addresses
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)
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.
Code Mnemonic
341
LD= DT
LOAD EQUAL
AND=DT
AND EQUAL
OR=DT
OR EQUAL
342
LD<>DT
LOAD NOT EQUAL
AND<>DT
AND NOT EQUAL
OR<>DT
OR NOT EQUAL
343
LD<DT
LOAD LESS THAN
AND<DT
AND LESS THAN
OR<DT
OR LESS THAN
344
LD<=DT
LOAD LESS THAN OR EQUAL
AND<=DT
AND LESS THAN OR EQUAL
OR<=DT
OR LESS THAN OR EQUAL
345
LD>DT
LOAD GREATER THAN
AND>DT
AND GREATER THAN
OR>DT
OR GREATER THAN
346
LD>=DT
LOAD GREATER THAN OR EQUAL
AND>=DT
AND GREATER THAN OR EQUAL
OR>=DT
OR GREATER THAN OR EQUAL
Comparison time data
07
00
15
Second (00 to
Minute (00 to
S
2
59, BCD)
59, BCD)
Hour (00 to
Day of month
S
+1
2
23, BCD)
(01 to 31, BCD)
Month (01 to
Year (00 to
S
+2
2
12, BCD)
99, BCD)
Year, month, day, and seconds
data is masked.
Contents
Name
Section 3-7
08
07
00
Second (00 to
59, BCD)
Hour (00 to
23, BCD)
Month (01 to
12, BCD)
Function
True if
S1 = S2
True if
S1
S2
True if
S1 < S2
True if
S1
S2
True if
S1 > S2
True if
S1
S2
301

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents