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
Summary of Contents for CPU 948
Page 10: ...Contents CPU 948 Programming Guide 1 2 C79000 G8576 C848 04 ...
Page 32: ...Contents CPU 948 Programming Guide 2 2 C79000 G8576 C848 04 ...
Page 72: ...Data Blocks CPU 948 Programming Guide 2 42 C79000 G8576 C848 04 ...
Page 74: ...Contents CPU 948 Programming Guide 3 2 C79000 G8576 C848 04 ...
Page 154: ...Contents CPU 948 Programming Guide 4 2 C79000 G8576 C848 04 ...
Page 200: ...Contents CPU 948 Programming Guide 5 2 C79000 G8576 C848 04 ...
Page 308: ...Contents CPU 948 Programming Guide 7 2 C79000 G8576 C848 04 ...
Page 324: ...Examples of Parameter Assignment CPU 948 Programming Guide 7 18 C79000 G8576 C848 04 ...
Page 326: ...Contents CPU 948 Programming Guide 8 2 C79000 G8576 C848 04 ...
Page 370: ...Addressable System Data Area CPU 948 Programming Guide 8 46 C79000 G8576 C848 04 ...
Page 372: ...Contents CPU 948 Programming Guide 9 2 C79000 G8576 C848 04 ...
Page 486: ...Contents CPU 948 Programming Guide 11 2 C79000 G8576 C848 04 ...
Page 522: ...PG Functions via the S5 Bus CPU 948 Programming Guide 11 38 C79000 G8576 C848 04 ...
Page 524: ...Contents CPU 948 Programming Guide 12 2 C79000 G8576 C848 04 ...
Page 538: ...Contents CPU 948 Programming Guide 13 2 C79000 G8576 C848 04 ...
Page 546: ...List of Key Words CPU 948 Programming Guide Index 6 C79000 G8576 C848 04 ...