User`s manual

APPENDICES
Appendix 2 Special Register List
App - 15
9
Device Explanation
10
CPU Module Processing
Time
11
Procedure for Writing
Program to CPU ModuleAppendices
Index
(3) System clocks/counters
(4) Scan information
TableApp.13 Special register
Number Name Meaning Explanation
Set by
(When set)
Corresponding
CPU
SD412
1 second
counter
Number of
counts in 1-
second units
Following programmable controller CPU module RUN, 1 is
added each second
Count repeats from 0 to 32767 to -32768 to 0
S (Status
change)
QS
SD414
2n second
clock setting
2n second
clock units
Stores value n of 2n second clock (Default is 30)
Setting can be made between 1 to 32767
U
SD420 Scan counter
Number of
counts in each
scan
Incremented by 1 for each scan execution after the CPU
module is set to RUN.
Count repeats from 0 to 32767 to -32768 to 0
S (Every END)
TableApp.14 Special register
Number Name Meaning Explanation
Set by
(When set)
Corresponding
CPU
SD520
Current scan
time
Current scan
time (in 1 ms
units)
The current scan time is stored into SD520 and SD521.
(Measurement is made in 100 s units.)
SD520: Stores the value of ms. (Storage range: 0 to 6553)
SD521: Stores the value of s. (Storage range: 0 to 900)
(Example) When the current scan time is 23.6ms, the following
values are stored.
SD520 = 23
SD521 = 600
The accuracy of processing time of scantime is 0.1ms.
S (Every END)
QS
SD521
Current scan
time (in 100 s
units)
SD524
Minimum
scan time
Minimum scan
time (in 1 ms
units)
Stores the minimum value of the scan time into SD524 and
SD525. (Measurement is made in 100 s units.)
SD524: Stores the ms place. (Storage range: 0 to 6553)
SD525: Stores the s place. (Storage range: 0 to 900)
The accuracy of processing time of scantime is 0.1ms.
S (Every END)
SD525
Minimum scan
time (in 100 s
units)
SD526
Maximum
scan time
Maximum scan
time (in 1 ms
units)
Stores the maximum value of the scan time into SD526 and
SD527. (Measurement is made in 100 s units.)
SD526: Stores the ms place. (Storage range: 0 to 6553)
SD527: Stores the s place. (Storage range: 0 to 900)
The accuracy of processing time of scantime is 0.1ms.
S (Every END)
SD527
Maximum scan
time (in 100 s
units)
SD540
END
processing
time
END
processing time
(in 1 ms units)
Stores the time from when the scan program ends until the
next scan starts into SD540 and SD541.
(Measurement is made in 100 s units.)
SD540: Stores the ms place. (Storage range: 0 to 6553)
SD541: Stores the s place. (Storage range: 0 to 900)
The accuracy of NED processing time is 0.1ms.
S (Every END)
SD541
END
processing time
(in 100 s
units)
SD542
Constant
scan wait
time
Constant scan
wait time (in 1
ms units)
Stores the wait time for constant scan setting into SD542 and
SD543.
(Measurement is made in 100 s units.)
SD542: Stores the ms place. (Storage range: 0 to 6553)
SD543: Stores the s place. (Storage range: 0 to 900)
The accuracy of constant scan wait time is 0.1ms.
S (Every END)
SD543
Constant scan
wait time (in
100 s units)
SD548
Scan
program
execution
time
Scan program
execution time
(in 1 ms units)
Stores the execution time of a scan program during one scan
into SD548 and SD549.
(Measurement is made in 100 s units.)
SD548: Stores the ms place. (Storage range: 0 to 6553)
SD549: Stores the s place. (Storage range: 0 to 900)
Stored every scan.
The accuracy of scan program execution time is 0.1ms.
S (Every END)
SD549
Scan program
execution time
(in 100 s
units)