Omron SYSMAC CP Series Instruction & Reference Manual page 130

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

2 Instructions
Precautions
• Time comparison instructions cannot be used as right-hand instructions, i.e., another instruction must
be used between them and the right bus bar.
• E-type CP1E CPU Unit (CP1E-E
The clock data inside the CPU Unit is always 01-01-01 01:01:01.
Sample program
When CIO 0.00 is ON and the time is 13:00:00, CIO 100.00 is turned ON. The contents of A351 to
A353 (the CPU Unit's internal calendar/clock data) are used as the present time data and the contents
of D100 to D102 are used as the comparison time data. The year, month, and day values are masked,
so only the hour, minute, and second data are compared.
2-94
0.00
=DT
D0
C
S
A352
1
S
D100
2
7
6
5
4
3
2
D0
-
-
1
1
1
0
Shaded data is compared.
15
8
7
0
A351
Minute
Second
Hour
A352
Day of month
A353
Year
Month
- ) does not have the clock function.
100.00
1
0
D0 set to 0038 hex
0
0
Seconds compared.
Minutes compared.
Hours compared.
Day masked.
Month masked.
Year masked.
15
8
7
S
:
D100
00
00
2
-
13
S
+1:D101
2
S
+2:D102
-
-
2
Conditions Flags set as soon as
execution condition is turned ON.
CP1E CPU Unit Instructions Reference Manual(W483)
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents