Plc 5 family processors, Plcć5 family processors – Rockwell Automation 1791-XXXX ANALOG BLOCK I/O User Manual
Page 55

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
PLCĆ5 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 outputs + 1) words.
*
3
PLCĆ5 Family Processors