9
DEDICATED INSTRUCTIONS
9.8 J(P)/G(P).REQ (Reading/Writing Clock Data)
9
- 69
9
DE
DICA
T
E
D
INS
T
RUCT
IONS
10
T
R
OUB
L
E
S
HO
OT
IN
G
APPENDI
CES
INDEX
(b) Request data (All set by the user)
: Set — : Not set
POINT
In clock data writing by the REQ instruction, the first two digits of the year cannot
be changed.
To change the first two digits of the year data, modify the clock setting from GX
Developer or with the RTMWR instruction.
• Section 4.2.4 Clock setting from GX Developer
• Section 9.17 Z(P).RTMWR
Table 9.36 Request data
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 (00
H
to 99
H
) First 2 digits
b15
to
b8
(S2)+3
(S2)+4
(S2)+5
Month (01
H
to 12
H
)
Hour (00
H
to 23
H
)
Second (00
H
to 59
H
)
Day (01
H
to 31
H
)
Minute (00
H
to 59
H
)
00
H
(Sun.) to 06
H
(Sat.)
Day of week (00
H
to 06
H
)
b15
b8 b7
to
b0
to
Содержание QJ71GP21-SX
Страница 1: ......
Страница 2: ......
Страница 644: ...App 94 Appendix 6 External Dimensions Appendix 6 2 QJ71GP21S SX APPENDICES Memo ...
Страница 649: ......
Страница 650: ......