User manual

Chapter 5 PLC-5 BT Instructions
5-3
20 Gear Drive, Plymouth Ind. Park, Terryville, CT 06786
Tel: (860) 585-1254 Fax: (860) 584-1973
Programming Example
The following example assumes 1-Slot addressing with a 1741 module in I/O Rack 2, I/O
Groups 4 & 5 of the system.
Rung 1: BTR Instruction to the AMCI
module. An Integer file
controls the transfer. Data
transferred every scan with
continuous transfer enabled.
Rung 2: Copy File Instruction buffers
the data from the module. This
insures that the program will
use the same data throughout
each scan.
Rung 3: The BT write is enabled when-
ever CR1 is latched on. A BT
file controls the transfer. Note
that the continuous parameter
is set to NO.
Rung 4: CR1 is latched on when a
BTW request is made.
Rung 5: CR1 is unlatched when the
BTW request is removed and
the BTW Done bit is set.
BLOCK XFER READ
RACK 2
GROUP 5
MODULE 0
CONTROL N7:20
DATA N7:25
LENGTH 0
CONTINUOUS
Y
(L)
(U)
BTW Request CR1
CR1
BTW Request
BTW
DN
(
EN
)
(
DN
)
COP
COPY FILE
SOURCE #N7:25
DEST #N7:30
LENGTH 3
(
ER
)
CR1
BLOCK XFER WRITE
RACK 2
GROUP 5
MODULE 0
CONTROL BT9:0
DATA N14:5
LENGTH 23
CONTINUOUS
N
(
EN
)
(
DN
)
(
ER
)
Figure 5.1 PLC-5 Programming Example