App-185
8
8
8
8
A
8
7
8
Appendix 4 SPECIAL REGISTER LIST
*1: The relevant modules are as follows:
• The Universal model QCPU whose serial number (first five digits) is "10102" or later.
• Q00UJCPU, Q00UCPU, Q01UCPU
TableApp.4.13 Special register
ACPU
Special
Register
Special
Register
after
Conversion
Special
Register for
Modification
Name Meaning Details
Corresponding
CPU
D9016 SD1016
Program
number
0: Main program
(ROM)
1: Main program
(RAM)
2: Subprogram 1
(RAM)
3: Subprogram 2
(RAM)
4: Subprogram 3
(RAM)
5: Subprogram 1
(ROM)
6: Subprogram 2
(ROM)
7: Subprogram 3
(ROM)
8: Main program
(E
2
PROM)
9: Subprogram 1
(E
2
PROM)
A: Subprogram 2
(E
2
PROM)
B: Subprogram 3
(E
2
PROM)
• Indicates which sequence program is run presently. One value of 0
to B is stored in BIN code.
Qn(H)
QnPH
D9017 SD1017 SD524 Scan time
Minimum scan time
(10 ms units)
• If scan time is smaller than the content of SD1017, the value is
newly stored at each END. Namely, the minimum value of scan
time is stored into SD1017 in BIN code.
Qn(H)
QnPH
QnU
*1
D9018 SD1018 SD520 Scan time
Scan time
(10 ms units)
• At every END, the scan time is stored in BIN code and always
rewritten.
D9019 SD1019 SD526 Scan time
Maximum scan time
(10 ms units)
• If scan time is larger than the content of SD1019, the value is newly
stored at each END. Namely, the maximum value of scan time is
stored into SD1019 in BIN code.
D9020 SD1020 Constant scan
Constant scan time
(User sets in 10 ms
units)
• Sets the interval between consecutive program starts in multiples
of 10 ms.
0 : No setting
1 to 200 : Set. Program is executed at intervals of (set
value) 10 ms.
Qn(H)
QnPH
D9021 SD1021
–
Scan time
Scan time
(1 ms units)
• At every END, the scan time is stored in BIN code and always
rewritten.
Qn(H)
QnPH
QnU
*1
D9022 SD1022 SD412
1 second
counter
Count in units of 1s.
• When the PC CPU starts running, it starts counting 1 every
second.
• It starts counting up from 0 to 32767, then down to -32768 and
then again up to 0. Counting repeats this routine.
D9025 SD1025
–
Clock data
Clock data
(year, month)
• The year (last two digits) and month are stored as BCD code as
shown below.
D9026 SD1026
–
Clock data
Clock data
(day, hour)
• The day and hour are stored as BCD code as shown below.
D9027 SD1027
–
Clock data
Clock data
(minute, second)
• The minute and second are stored as BCD code as shown below.
b15
b12to b11
b8
to
b7
b4to
b3 b0
to
Example:
1987, July
H8707
Year
Month
b15
b12to b11
b8
to
b7
b4to
b3 b0
to
Example:
31st, 10 a.m.
H3110
Day
Hour
b15
b12to b11
b8
to
b7
b4to
b3 b0
to
Example:
35 min, 48 sec.
H3548
Minute
Second