Omron SYSMAC CP Series Instruction & Reference Manual page 162

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

2 Instructions
Function
COLL(081) copies the source word (calculated
by adding Of to Bs) to the destination word.
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.
0.00
COLL
Bs
D100
Of
D200
D
D300
2-126
Bs+n
Bs:D100
D101
Offset +10 words
D110
CP1E CPU Unit Instructions Reference Manual(W483)
Bs
Of
n
D
D200 0
0
0
4-digit hexadecimal
Copied by COLL(081).
D300
n
A

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents