EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 301

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
268
Data Movement Instructions Section 3-7
Description DIST(080) copies S to the destination word calculated by adding Of to Bs.
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.
Flags
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.
Example When CIO 0.00 is ON in the following 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.
Index Registers ---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047, IR0 to –2048 to +2047, IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –) IR0 to, –(– –) IR15
Area S Bs Of
S
Bs+n
OfBs
Name Label Operation
Error Flag ER OFF
Equals Flag = ON if the source data is 0000.
OFF in all other cases.
Negative Flag N ON if the leftmost bit of the source data is 1.
OFF in all other cases.
S: D100
S
0 0 0 A
0.00
D100
D200
D300
D210
Copied by DIST(080).
Offset +10 words
4-digit hexadecimal
Of: D300
Bs: D200
D201
Bs
Of

Table of Contents

Related product manuals