Mitsubishi Electronics MELSEC Q series MELSEC L series Home Theater Server User Manual


 
5-188
5.4 Network Dedicated Instruction
5.4.15 REQ instruction
J_REQ, G_REQ
(2) Reading/writing the clock data
Request data (all set by the user)
*1 : This function cannot change the first two digits of year data.
To change the year data including the first two digits, set the clock data using another function (such as
GX Works2).
Device Item Setting data
Read
clock data
Write
clock data
[0]
Request type
0001H: Clock data read
0011
H: Clock data write (When station number is specified in [5])
0031
H: Clock data write (When all stations or a group is specified in
[5])
[1]
Sub-request type
0002H: Clock data read
0001
H: Clock data write
[2]
Change pattern
Clock data to be
changed
Change pattern (bit 0 to 7)
Specify the items to be written in high-order byte of [2] to [5].
0: Not changed
1: Changed
Year to be changed (bit 8 to 15)
*1
Store the year (last two digits) in BCD format.
[3]
Clock data to be
changed (continued)
High-order 8 bits: Day (01H to 31H), low-order 8 bits: Month (01H to 12H)
[4]
High-order 8 bits: Minute (00H to 59H), low-order 8 bits: Hour (00H to 23H)
[5]
High-order 8 bits: Day of week (00H (Sunday) to 06H (Saturday)), low-order 8
bits: Second (00H to 59H)
s2
s1
s1
s2
s2
s2
s2
b15 b0b1b2b3b4
b5
b6
b7
Year (last two digits)
Day
Hour
Minute
Second
Day of week
Month
b8
Year (00
H to 99H)0
s2
b15
b7
b0b8
Month (01
H to 12H)Day (01H to 31H)
to to
s2
b15 b7
b0
b8
Hour (00
H to 23H)Minute (00H to 59H)
to to
s2
b15 b7 b0b8
Second (00
H to 59H)Day of week (00H to 06H)
00
H (Sun.) to 06H (Sat.)
to to