beautypg.com

Rockwell Automation 1772-L8_LW_LWP_LX_LXP,D17726.5.8 User Manual User Manual

Page 283

background image

Block Transfer

Chapter 18

18-18

One technique of buffering data is to store the transferred data in a
temporary buffer file. If the data in the buffer is valid, it is immediately
transferred to another file in the data table where it can be used. If invalid,
it is not transferred but written over in the next transfer.

Another technique uses only one file. The technique prevents invalid data
from being operated upon by preconditioning the rungs that would transfer
data out of a file one word at a time. Diagnostic and/or data-valid bits are
examined in these rungs.

Data can be moved from the buffer word-by-word using Get/Put transfers,
or the entire file can be moved at once using a File-to-File Move
instruction. The choice depends on the kinds of diagnostic and/or
data-valid bits and the objectives of the user program. Generally, when
one diagnostic bit is contained in each word, a get/put transfer is used.
When one is set for the entire file, a File-to-File Move instruction is used.
In either case, the diagnostic bits are examined as conditions for enabling
the file move or word transfer.

The example in Figure 18.8 shows the memory map and ladder diagram
rungs for buffering three words of data that are read from the block transfer
module. The data is read and buffered in the following sequence: