Rio block transfer general functional overview -10, Rio block transfer general functional overview – Rockwell Automation 1747-BSN Backup Scanner Module User Manual

Page 122

Advertising
background image

Publication 1747-UM010B-EN-P - September 2003

7-10 RIO Block Transfer

A false-to-true rung transition initiates a BTW or BTR instruction. The
BTW instruction tells the processor to write data stored in the BTW
Data File to a device at the specified RIO rack/group/slot address. The
BTR instruction tells the processor to read data from a device at the
specified RIO rack/group/slot address and store it in the BT Data File.
A total of 32 block transfer buffers are available; you can execute a
maximum of 32 different block transfers. The processor runs each
block transfer request in the order it is requested. When the processor
changes to Program mode, all pending block transfers are cancelled.

A BTR or BTW instruction writes information into its control structure
address (a three-word integer Control Block) when the instruction is
entered. The processor uses these values to execute the transfer.

You must enter an M1 file address into BTR Instructions and an M0 file
address into BTW Instructions. However, each instruction uses both
the M0 and M1 file for that buffer number (1 through 32). For
example, to use the first available buffer (1) for a BTR, enter M1:e.100
into the “Buffer File” field. However, M0:e.100 is also used by this
BTR. So, the next BT instruction must use another M-file buffer
(2 through 32).

RIO Block Transfer General Functional Overview

The RIO scanner performs block transfers through control/status
buffers allocated in the scanner’s M0 and M1 files. For BTW’s, the data
stored in the File is copied into the M0 block transfer buffer, the M0
block transfer buffer is then transferred to the RIO device. The
corresponding M1 block transfer buffer contains only BTW status
information. For BTR’s, the M0 block transfer buffer contains only BTR
control information. The actual data read from the remote device is
received in the scanner’s M1 block transfer buffer. This data is then
copied into the BTR Data File. A total of 32 block transfer
control/status buffers exist in the M0 (output/control) and the M1
(input/status) files.

EN

DN

ER

BTR

Block Transfer Read
Rack

0

Group

0

Slot

0

Control Block

N10:140

Data File

N21:100

Buffer File

M1:1.3200

Requested Word Count

0

Transmitted Word Count

0

EN

DN

ER

BTW

Block Transfer Write
Rack

0

Group

0

Slot

0

Control Block

N10:10

Data File

N20:0

Buffer File

M0:1.100

Requested Word Count

0

Transmitted Word Count

0

BTW

Advertising