Omron CP1E-E@@D@-@ Computer Hardware User Manual


 
2 Instructions
2-94
CP1E CPU Unit Instructions Reference Manual(W483)
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-) does not have the clock function.
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.
01234567
- 111000-
D0
0.00
C
S
1
S2
100.00
=DT
D0
A352
D100
A351
A352
A353
07815
S2: D100
S
2+1:D101
S
2+2:D102
00 00
13
07815
-
--
D0 set to 0038 hex
Shaded data is compared.
Minute Second
Day of month
Hour
Year Month
Conditions Flags set as soon as
execution condition is turned ON.
Seconds compared.
Minutes compared.
Hours compared.
Day masked.
Month masked.
Year masked.