EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 303

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...
270
Data Movement Instructions Section 3-7
Description COLL(081) copies the source word (calculated by adding Of to Bs) to the des-
tination word. 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.
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 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.
3-7-14 MOVE TO REGISTER: MOVR(560)
Purpose Sets the PLC memory address of the specified word, bit, or timer/counter
Completion Flag in the specified Index Register. (Use MOVRW(561) to set the
PLC memory address of a timer/counter PV in an Index Register.)
Ladder Symbol
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 Bs Of D
Bs
Bs+n
Of
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.
D110
D100
0
D
00
A
D200
D101
0.00
D100
D200
D300
D300
4-digit hexadecimal
Offset +10 words
Copied by COLL(081).
Bs:
Bs
Of
MOVR(560)
S
D
S: Source (desired word or bit)
D: Destination (Index Register)

Table of Contents

Related product manuals