Rockwell Automation 1336T PLC Comm. Adapter, Series B, FRN 2.xx-3.xx User Manual
Page 61

3–17
Publication 1336 FORCE–5.13 –– September, 1998
The following program is for a PLC 5/20, 5/40, 5/60, or 5/80.
Rung 2:0
14
12
(EN)
(DN)
(ER)
12
15
(EN)
(DN)
(ER)
Rung 2:1
Rung 2:3
00
(CU)
(DN)
Rung 2:2
User
Logic
I:000
BT
Read
Available
BTR_AVAIL
I:020
BTW
BTR
CTU
BTU Error Counter
Group
Rack
Control Block
Data File
Length
Continuous
Module
BLOCK TRANSFER WRITE
02
0
0
N10:10
64
N
BT11:0
Error
BT_ERROR
I:020
BT
Read
Available
BTR_AVAIL
I:020
BT
Write
Available
BTW_AVAIL
I:020
14
BT
Error
BT_ERROR
I:020
Group
Rack
Control Block
Data File
Length
Continuous
Module
BLOCK TRANSFER READ
02
0
0
N10:90
64
N
BT11:1
Preset
Counter
Accum
Count Up
C11:0
32767
0
BT
End of File
The following are additional notes regarding block transfer
programming:
•
You can set up a block transfer subroutine to transfer information
when you need to perform multiple functions or when you need
to transfer more data than a single BTW/BTR pair can handle. If
you use a block transfer subroutine, you need to carefully
sequence the block transfers so that one BTW and one BTR occur
for each portion of the sequence.
•
The status bits from the BTW and BTR control files (EN, DN,
and ER) may change at any time during a program scan. If your
program uses these status bits, you should copy them to a file and
use the copied versions in your program.