3. Instructions
1014
CS/CJ/NSJ Series Instructions Reference Manual (W474)
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
internal 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 November
31).
Example Programming
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
00
CPU Unit
Internal clock
New setting
Day of week
Minutes Seconds
Day Hour
Year Month
Second
Hour
Minute
Day of
the month
Year Month
Always
set to
00.
Day of the week
0.00
D100
D100
D101
D102
D103
S: