Omron SYSMAC CP Series Instruction & Reference Manual page 160

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

Advertisement

2 Instructions
Function
DIST(080) copies S to the destination word
calculated by adding Of to Bs.
Hint
The same DIST(080) instruction can be used to distribute the source word to various 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 this example, the contents of D100 will be copied to D210 (D200 + 10) if the
contents of D300 is 10 (0A hexadecimal). The contents of D100 can be copied to other words by chang-
ing the offset in D300.
0.00
DIST
D100
S
D200
Bs
D300
Of
2-124
S
S:D100
Copied by DIST(080).
Bs:D200
D201
D210
CP1E CPU Unit Instructions Reference Manual(W483)
Bs
n
Bs+n
Of:
0 0 0 A
D300
4-digit hexadecimal
Offset +10 words
n
Of

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents