Programming .01Second Timers
Appendix C
C10
Assume the processor is using a 128-word data table and has 1,024 words
of memory. If all memory words are used, the program will contain 896
instructions. A program of this size might typically have the following
distribution:
546 instructions x 18
µ
sec =
9.8 ms
306 instructions x 28
µ
sec =
8.6 ms
44 instructions x 83
µ
sec =
3.7 ms
Total (rounded)
22.0 ms
The I/O scan time adds (approx.)
1.0 ms
The program panel interaction requires about
3.0 ms
Grand Total
26.0 ms
Table C.A
Instruction Execution Times (Approximate)
1
Instructions
Time
-||-
-| / |-
RTR
GET BYTE
18
µ
s
-()-
-( L )-
-( U )-
CTR
GET
MCR
28
µ
s
PUT
EQU
LES
LIMIT TEST
28
µ
s
+
60
µ
s
TOF
TON
RTO
CU
CTD
-
83
µ
s
IMMEDIATE I/O
105
µ
s
ZCL
130
µ
s
1
These execution times are approximate, but are sufficient for the purpose of programming one or more 0.01second timers.
To repeat: if a 10-msec timer is used in a program of this duration, the rung
used to initialize the timer must occur at least 3 times in the program at
evenly spaced intervals. For longer programs, it may be necessary to repeat
the timer instruction and related rungs several more times to assure that
timing is accurate.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com