5–8 Using Block Transfer Messages
Figure 5.6 Example for a Logix5550
Notes Regarding Block Transfer 
Programming
• A Block transfer subroutine can be used to transfer more data 
than can be moved in a single block transfer. If this is done, the 
block transfers must be carefully sequenced so that one Block 
Transfer Write and one Block Transfer Read occur for each 
portion of the sequence. One method of doing this is to set a latch 
bit to enable the Block Transfer Write and unlatch this bit when 
the Block Transfer Write is completed. When the Block Transfer 
Read completes, the program can then set up the data for the next 
transfer.
• The status bits from the BTW and BTR Control files (.EN, .DN, 
.ER) may change at any time during a program scan. If they are 
used by the program they should be copied to a file and the 
program should use the copied versions.
Due to the asynchronous nature of the ControlLogix platform, input data may change during a program scan. 
This rung makes a local copy of the Block Transfer Status word to ensure proper synchronization 
between the  ControlLogix program and the RIO Scanner.
0 Move
Source PLUS_IO:I.Data[0]
  2#0000_0000_0000_0000
Dest GD1_LocalCopy
  2#0000_0000_0000_0000
MOV
Make a Local Copy 
of the 1203-GD1's 
Block Transfer 
Status Word
This rung sends a BTW to the drive if the drive's RIO adapter is ready to accept a BTW and no response 
from a previous BTW is available to be read with a BTR.  The data instructs the RIO adapter to send 
a SCANport message to the drive.  When this message has completed, the response can be read with a BTR.  
The BTW Available and BTR Available bits will not be set until the SCANport message has been completed. 
1
 
BTW Available
GD1_LocalCopy.13
BTR Available
GD1_LocalCopy.10
EN
DN
ER
Type - Block Transfer Write
Message Control PLUS_BTW_Control
 ... 
MSG
This rung sends a BTR to the drive whenever the drive's RIO adapter indicates that it has a response 
message available from a previous BTW.  The data read contains the response to the SCANport 
message sent by the previous BTW. 
 
2
 
BTR Available
GD1_LocalCopy.10
EN
DN
ER
Type - Block Transfer Read
Message Control PLUS_BTR_Control
 ... 
MSG
(End)
Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com