2 Instructions
2-126 CP1E CPU Unit Instructions Reference Manual(W483)
Function
Hint
The same COLL(081) instruction can be used to collect data from various source words in the data
area by changing the value of Of.
Precautions
Be sure that the offset does not exceed the end of the data area, i.e., Bs and Bs+Of are in the same
data area.
Sample program
When CIO 0.00 is ON in the following example, the contents of D110 (D100 + 10) will be copied to
D300 if the content of D200 is 10 (0A hexadecimal). The contents of other words can be copied to D300
by changing the offset in D200.
COLL(081) copies the source word (calculated
by adding Of to Bs) to the destination word. Bs
Bs+n
Of
D
n
n
COLL
D100
D200
D300
0.00
Bs
Of
D
D300
Bs:D100
D101
D110
D200 000A
4-digit hexadecimal
Offset +10 words
Copied by COLL(081).