(b) Request data (a user sets all)
Device
Item
(S2)+0
Request type
Sub-request
(S2)+1
type
Change
pattern, clock
(S2)+2
data to be
changed
(S2)+3
Clock data to
(S2)+4
be changed
(continued)
(S2)+5
• When system protection is applied to the target station CPU, clock data cannot be written in.
• In the clock data write by the REQ instruction, the first two digits of the year cannot be changed. To change the
first two digits of the year, use GX Works2 to change the clock data.
322
0001
: Clock data read
H
0011
: Clock data write (when station number is specified by (S1)+5)
H
0031
: Clock data write (when all stations or groups are specified by
H
(S1)+5)
0002
: Clock data read
H
0001
: Clock data write
H
1) Change pattern (bit 0 to 7)
From ((S2)+2 upper byte) to ((S2)+5), specify the item to be changed.
0 : Do not change
1 : Change
b7
b6
b5
b4
0
2) Change year (bit 8 to 15)
Use BCD format to specify the year (lower 2 digits of the year).
b15
Year (00
Use BCD format to specify the clock data to be changed.
b15
(S2)+3
Day (01
H
(S2)+4
Minute (00
(S2)+5
Day of week (00
Setting data
b3
b2
b1
b0
Yeah (last 2 digits)
Month
Day
Hour
Minute
Second
Day of week
b8
to 99
), last 2 digits
H
H
b8 b7
to 31
)
Month (01
to 12
H
H
to 59
)
Hour (00
to 23
H
H
H
to 06
)
Second (00
to 59
H
H
H
00
(Sun.) to 06
H
Clock data
read
b0
)
H
)
H
)
H
(Sat.)
H
: Sets : Does not set
Clock data
write