Minimizing The Scan Time - Allen-Bradley 1747-SN User Manual

Remote i/o scanner
Table of Contents

Advertisement

Minimizing the Scan Time

You can keep the processor scan time to a minimum by economizing
on the use of instructions addressing the M0 or M1 files. For
example, XIC instruction M0:2.1/1 is used in rungs 1 and 2 of the
figure below, adding approximately 2 ms to the scan time if you are
using a SLC 5/02 Series B processor.
M0:2.1
1
] [
1
B3
2
] [
12
XIC instructions in rungs 1 and 2 are addressed to the M0 data file. Each of
these instructions adds approximately 1 ms to the scan time (SLC 5/02
Series B processor).
In the equivalent rungs of the figure below, XIC instruction M0:2.1/1
is used only in rung 1, reducing the SLC 5/02 scan time by
approximately 1 ms.
1
2
These rungs provide equivalent operation to those of figure A by substituting
XIC instruction B3/10 for XIC instruction M0:2.1/1 in rung 2. Scan time is
reduced by approximately 1 ms (Series B processor).
The following figure illustrates another economizing technique. The
COP instruction addresses an M1 file, adding approximately 4.29 ms
to the scan time if you are using a SLC 5/02 Series B processor.
Scan time economy is realized by making this rung true only
periodically, as determined by clock bit S:4/8. (Clock bits are
discussed in appendix B of the SLC 500
Instruction Set Reference Manual, Publication 1747-6.15.) A rung
such as this might be used when you want to monitor the contents of
the M1 file, but monitoring need not be on a continuous basis.
S:4/8 causes the
#M1:4.3 file to update
the #N10:0 file every
2.56 seconds.
M0–M1 Files and G Files
B3
( )
M0:2.1
B3
( )
] [
1
M0:2.1
] [
1
B3
B3
] [
] [
12
10
and MicroLogix
S:4
B11
COPY FILE
] [
[OSR]
Source
0
8
Dest
Length
B–7
10
14
B3
( )
10
B3
( )
14
1000
COP
#M1:4.3
#N10:0
6
Publication 1747 6.6 - July 1996

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents