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


 
2 Instructions
2-386
CP1E CPU Unit Instructions Reference Manual(W483)
Related Auxiliary Area Words and Bits
Function
DATE(735) changes the internal clock
setting according to the clock data in
the four source words. The new inter-
nal clock setting is immediately
reflected in the Calendar/Clock Area
(A351 to A354).
Hint
The internal clock setting can also be changed from a Peripheral Device or the CLOCK WRITE FINS
command (0702).
Precaution
An error will not be generated even if the internal clock is set to a non-existent date (such as Novem-
ber 31).
In case this instruction is executed for E-type CPU Unit (CP1E-E-), the error flag will turn
ON and the instruction cannot be executed. For E-type CPU Unit, A351 to A354 is always 01-01-01
01:01:01 Sunday.
Sample program
When CIO 0.00 turns ON in the following example, the internal clock is set to 20:15:30 on Thursday,
October 9, 1998.
Name Address Operation
Clock data A351 to A354 A351.00 to A351.07: Seconds (00 to 59) (BCD)
A351.08 to A351.15: Minutes (00 to 59) (BCD)
A352.00 to A352.07: Hours (00 to 23) (BCD)
A352.08 to A352.15: Day of the month (01 to 31) (BCD)
A353.00 to A353.07: Month (01 to 12) (BCD)
A353.08 to A353.15: Year (00 to 99) (BCD)
A354.00 to A354.07: Day of the week (00 to 06) (BCD)
00: Sunday, 01: Monday, 02: Tuesday, 03: Wednesday, 04: Thursday,
05: Friday, 06: Saturday
S1
S+1
S+2
S+3
Internal clock
New setting
00
Minutes
Day
Year
Day of week
Seconds
Hour
Month
CPU Unit
DATE
D100
0.00
S
S:D100
15 30
15 78
D101 09 20
15 78
D102 98 10
15 78
D103 00 04
15 78
0
0
0
0
Second
Hour
Minute
Day of
the month
Year
Month
Always
set to
00.
Day of the week