Rockwell Automation 1772-LS_LSP,D17726.8.6 PROG/OPER MANUAL-MINI PLC-2/05 User Manual

Page 172

Advertising
background image

Block Transfer

Chapter 14

14-17

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 14.8 shows the memory map and ladder diagram
rungs for buffering 3 words of data that are read from the block transfer
module. The data is read and buffered in the following sequence:

Advertising