APPENDICES
APP
−
44
Table 3.2 Special Register List (Continued)
Number
Name
Stored Data
Explanation
D9015
CPU operating
states
Operating states of CPU
!
The CPU operation states indicated in the figure below are stored in D9015.
B15
B12B11
B8 B7
B4 B3
B0
0
1
CPU key switch
RUN
STOP
0
1
2
Remote RUN/STOP by parameter setting
RUN
STOP
PAUSE*
0
1
Status in program
Other than below
STOP instruction execution
0
1
2
Remote RUN/STOP by computer
RUN
STOP
PAUSE*
Remains unchanged in
remote run/stop mode
*: When the CPU is in the RUN status and M9040 is OFF, the CPU remains
in RUN mode even if set to PAUSE.
2
3
PAUSE *
STEP RUN
D9016
Program
number
Sequence program in execution is
stored in BIN.
!
Stores the currently executed sequence program with any of the following code
numbers.
0 : ROM main
3 : RAM sub 2
6 : ROM sub 2
9 : EEP-ROM sub 1
1 : RAM main
4 : RAM sub 3
7 : ROM sub 3
A : EEP-ROM sub 2
2 : RAM sub 1 5 : ROM sub 1
8 : EEP-ROM main
B : EEP-ROM sub 3
D9017
Scan time
Minimum scan time (10 ms units)
!
At each END instruction, if the scan time is shorter than the contents of D9017,
the new value is stored in this register. In other words, the minimum value for
scan time is stored in D9017, in BIN code.
D9018
Scan time
Scan time (10 ms units)
!
The scan time is stored in BIN code at each END instruction and is always
rewritten.
D9019
Scan time
Maximum scan time (10 ms units)
!
At each END instruction, if the scan time is longer than the contents of D9019, the
new value is stored in this register. In other words, the maximum value for scan
time is stored in D9019, in BIN code.
D9020
(Note-2)
Constant scan
Constant scan time
(user-specified in 10 ms units)
!
When user programs are executed at fixed intervals, used to set the execution
intervals, in 10 ms units.
0
: Constant scan function not used
1 to 200 : Constant scan function used
program executed at intervals of (set value)
×
10 ms.
D9021
Scan time
Scan time (1 ms units)
!
The scan time is stored in BIN code at each END instruction and is always
rewritten.
D9022
Time
Time
!
Incremented by 1 per second.
D9025
(Note-2)
Clock data
Clock data
(year, month)
!
The year (last two digits) and month are stored in BCD code in D9025 as shown
below.
B15
B12B11
B8 B7
B4 B3
B0
Month
Year
Example
: July, 1993
H9307