Hitachi EH-150 Applications Manual page 141

Ethernet module 2 eh-eth2
Hide thumbs Also See for EH-150:
Table of Contents

Advertisement

Task code
H18
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)
(a)
Function selection (subcommand)
1]
H00: Read calendar clock
2]
H01: Set calendar clock
H02: 30 second adjustment (Less than 30 seconds → 0 second, 30 seconds or more → +1 minute and 0 second)
3]
(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)
*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
Calendar clock set/read
(c)
(d)
(e)
(b) to (h) are added when the function selection is H01.
(c)
(d)
(e)
Appendix B Task Codes Specifications
(f)
(g)
(h)
(f)
(g)
(h)
B-16
Classification
CPU control

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents