Technical data

6.17 OB 182: Copying a Data Area
Function
OB 182 copies a data field of variable length from one data block to
another. You can use DB and DX data blocks as the source and
destination blocks. You can select the start of the field in the source
and destination data block as required. OB 182 can copy a maximum
of 4091 data words. It contains pseudo operation boundaries.
Note
The source and destination block can be identical; the data areas
of the source and destination can overlap. The
original data of
the source area are copied unchanged to the
destination area
even if there is an overlap. (The area overlapping in the source
is overwritten following the copying.) You can use this feature in
certain situations, for example to shift a data area within a block.
Parameters
1. Data Field with Parameters for Copying Functions
Before you call OB 182, supply a data field with all the data required
for the copying. 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 defines the source and destination data block, the field
start address in both blocks and the number of data words to be
transferred. It consists of 5 words.
15 8 7 0
Source DB type Source DB no.
No. of 1st data word in source DB to be transferred
Dest. DB type Dest. DB no.
No. of 1st data word to be written in dest. DB
Number of data words
Bit no.
1st word
2nd word
3rd word
4th word
5th word
6
OB 182: Copying a Data Area
CPU 928B Programming Guide
C79000-B8576-C898-01
6 - 65