389
CHAPTER 9 DEDICATED INSTRUCTIONS
9
9.8 J(P)/G(P).REQ (Reading/Writing Clock Data)
(b) Request data (All set by the user)
: Set —: Not set
In clock data writing by the REQ instruction, the first two digits of the year cannot be changed.
To change the first two digits, refer to the following.
• Clock setting from a programming tool: Page 104, Section 4.2.4
• RTMWR (Clock Data Write to Programmable Controllers on Other Stations): Page 467, Section 9.17
Device Item Setting data
Clock data
read
Clock data
write
(S2)+0 Request type
0001
H
: Clock data read
0011
H
: Clock data write (when station No. is specified in (S1)+5)
0031
H
: Clock data write (when all stations or a group is specified in (S1)+5)
(S2)+1
Sub-request
type
0002
H
: Clock data read
0001
H
: Clock data write
(S2)+2
Change
pattern, clock
data to be
changed
1) Change pattern (bits 0 to 7)
Specify which items are to be written to the fields of (high byte of
(S2)+2) to ((S2)+5).
0: Do not change
1: Change
—
2) Year data (bits 8 to 15)
Specify the year (last two digits) as a BCD code.
(S2)+3
Clock data to
be changed
(continued)
Specify new clock data as BCD codes.
—
(S2)+4 —
(S2)+5 —
Year (Last 2 digits)
Month
Day
Hour
Minute
Second
Day of week
b7
0
b6 b5 b4 b3 b2 b1 b0
Year (00H to 99H) First 2 digits
b15 to b8
(S2)+3
(S2)+4
(S2)+5
Month (01H to 12H)
Hour (00
H to 23H)
Second (00
H to 59H)
Day (01H to 31H)
Minute (00
H to 59H)
00
H (Sun.) to 06H (Sat.)
Day of week (00
H to 06H)
b15 b8 b7to b0to