Version 1.0, August 31, 2001, Copyright, Hugh Jack 1993-2001

24.2.9 Block Transfer Functions

 

· Certain PLC cards only have a single address (eg. O:001 or I:001) but multiple data values need to be read or written to it. To do this the block transfer functions are used.

 

· These will be used in the labs for analog input/output cards.

 

· These functions will take more than a single scan, and so once activated they will require a delay until they finish.

 

· To use the write functions we set up a block of memory, the function shows this starting at N9:0, and it is 10 words long (this is determined by the special purpose card). The block transfer function also needs a control block of memory, this is BT10:1

 

 

· To read values we use a similar method. In the example below 9 values will be read from the card and be placed in memory locations from N9:4 to N9:11.