Appendix B Task Codes Specifications
Task code
H18
Calendar clock set/read
Classification
CPU control
Function
Sets data to or reads data from the internal calendar clock of the CPU module.
Execution condition
When EH-CPU104 is used, the execution not-possible (H03) response task code will be returned as this task code becomes
invalid.
Request
H18
(a)
(b)
(c)
(d)
(e)
(f)
(g)
(h)
(b) to (h) are added when the function selection is H01.
(a) Function selection (subcommand)
1]
H00: Read calendar clock
2]
H01: Set calendar clock
3]
H02: 30 second adjustment (Less than 30 seconds
→
0 second, 30 seconds or more
→
+1 minute and 0 second)
(b) Year (4 digits in BCD)
(c) Month (H01 to H12 in BCD)
(d) Day (H01 to H31 in BCD)
(e) Week (H00: Sunday, H01: Monday, H02: Tuesday, H03: Wednesday, H04: Thursday, H05: Friday, H06: Saturday)
(f)
Time (H00 to H23 in BCD)
(g) Minutes (H00 to H59 in BCD)
(h) Seconds (H00 to H59 in BCD)
Response
(a)
H18
(b)
(c)
(d)
(e)
(f)
(g)
(h)
*1 : Added as response data only when the function selection is H00.
(a) Response task code (H00 when executed normally)
For task codes other than the normal task codes, refer to the “response list by task code” at the end of this chapter.
*1: The contents of (b) to (h) are the same as the request task code.
Description
1]
Read calendar clock (subcommand H00)
Reads the calendar time data in the CPU module.
2]
Set calendar clock (subcommand H01)
Sets the calendar time data in the CPU module.
3]
30 second adjustment (subcommand H02)
Performs second adjustment of the calendar time in the CPU module.
0 to 29 seconds
→
00 second
30 to 59 seconds
→
+ 1 minute and 00 second
B-16