![AB Quality ALLEN-BRADLEY 1791 User Manual Download Page 55](http://html2.mh-extra.com/html/ab-quality/allen-bradley-1791/allen-bradley-1791_user-manual_5033580055.webp)
Chapter 6
Programming Your Analog Module
6-5
The following PLC-5 program is very similar to the PLC-3 program with
the following exceptions:
You must use enable bits instead of done bits as the conditions on each
rung.
Rungs 2 and 3 have been replaced with 1 rung.
A separate control file must be selected for each of the block transfer
instructions.
Figure 6.4
PLC5 Family Sample Program Structure
EN
BTR
BLOCK XFER READ
RACK:
GROUP:
MODULE:
CONTROL:
X
X
X
XXX:XX
DN
DATA FILE:
LENGTH:
CONTINUOUS:
XXX:XX
00
N
ER
BTR Enable
1
EN
BTW
BLOCK XFER WRITE
RACK:
GROUP:
MODULE:
CONTROL:
X
X
X
XXX:XX
DN
DATA FILE:
LENGTH:
CONTINUOUS:
XXX:XX
N
ER
BTR
2
BTW
Enable
BTW Enable
Enable
EN
BTW
BLOCK XFER WRITE
RACK:
GROUP:
MODULE:
CONTROL:
X
X
X
XXX:XX
DN
DATA FILE:
LENGTH:
CONTINUOUS:
XXX:XX
00
N
ER
BTW
Enable
Pushbutton
Powerup Bit
Note: In rungs 2 and 3 the BTW instructions would have the same data files, but different control files.
* Length = (number of o 1) words.
*
3
PLC5 Family Processors