Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 330

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

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
changing the offset in D300.
0.00
S
D100
Bs
D200
D300
Of
CS/CJ/NSJ Series Instructions Reference Manual (W474)
S
S: D100
Copied by DIST(080).
Bs:
D200
D201
D00210
D210
3. Instructions
Bs
Of
Bs+n
Of:
0 0 0 A
D300
4-digit hexadecimal
Offset +10 words
3
293

Advertisement

Table of Contents
loading

Table of Contents