5 MODULE DEDICATED INSTRUCTION
5.4 Network Dedicated Instruction
161
5
■
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
Description
Read clock
data
Write clock
data
(s2)[0]
Request type
0001H: Clock data read
0011H: Clock data write (When station number is specified in (s1)[5])
0031H: Clock data write (When all stations or a group is specified in (s1)[5])
(s2)[1]
Sub-request
type
0002H: Clock data read
0001H: Clock data write
(s2)[2]
Change pattern,
Clock data to be
changed
Change pattern (bit 7 to bit 0)
Specify the items to be written in high-order byte of (s2)[2] to (s2)[5].
0: Not changed
1: Changed
Year to be changed (bit 15 to bit 8)
Store the year (last two digits) in BCD format.
(s2)[3]
Clock data to be
changed
(continued)
High-order 8 bits: Day (01H to 31H), low-order 8 bits: Month (01H to 12H)
(s2)[4]
High-order 8 bits: Minute (00H to 59H), low-order 8 bits: Hour (00H to 23H)
(s2)[5]
High-order 8 bits: Day of week (00H (Sunday) to 06H (Saturday)), low-order 8 bits:
Second (00H to 59H)
b15
b0
b1
b2
b3
b4
b5
b6
b7
Year (last two digits)
Day
Hour
Minute
Second
Day of week
Month
b8
Year (00
H
to 99
H
)
0
b15
b7
b0
b8
Month (01
H
to 12
H
)
Day (01
H
to 31
H
)
to
to
b15
b7
b0
b8
Hour (00
H
to 23
H
)
Minute (00
H
to 59
H
)
to
to
b15
b7
b0
b8
S
e
c
on
d
(00
H
to
59
H
)
Day
o
f w
ee
k
(00
H
to
0
6
H
)
00
H
(
S
un
.
)
to
0
6
H
(
S
at
.
)
to
to
Summary of Contents for MELSEC System Q
Page 1: ...MELSEC Q L Structured Programming Manual Special Instructions ...
Page 2: ......
Page 307: ...10 SFC CONTROL INSTRUCTION 10 2 SFC Transition Condition Comment Read 305 10 MEMO ...
Page 309: ...I 307 MEMO ...
Page 315: ......