6.18 OB 182: Copy Data Area
Function
OB 182 copies a data area of variable length from one data block to
another. The source and destination blocks can be DBs or DXs. The
start of the area in the source and destination blocks can be freely
selected. OB 182 can copy a maximum of 4091 data words.
Note
The source and destination block can be the same. The data areas of
the source and destination can overlap. Even if they overlap, the
original data of the source area are copied unchanged to the
destination area. The area of the overlap in the source is
overwritten after the copy function. You can use this to shift a data
area within a block.
Parameters
1st data field with parameters for copy function
Before calling OB 182 make a data field available with the parameters
for the copy function. This data field can be set up in a DB or DX data
block or in the F or S flag area.
The data field identifies the source and destination blocks, the start
address of the area in both blocks and the number of data words to be
copied. It consists of five words:
Bit no. 15 8 7 0
1st word Source DB type Source DB no.
2nd word No. of 1st transferred data word in source DB
3rd word Destination DB type Destination DB no.
4th word No. of 1st transferred data word in the destination DB
5th word No. of data words
OB 182: Copy Data Area
CPU 948 Programming Guide
C79000-G8576-C848-04
6 - 59