EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 292

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...
259
Data Movement Instructions Section 3-7
Description XFRB(062) transfers up to 255 consecutive bits from the source words (begin-
ning with bit l of S) to the destination words (beginning with bit m of D). Bits in
the destination words that are not overwritten by the source bits are left
unchanged.
The beginning bits and number of bits are specified in C, as shown in the fol-
lowing diagram.
It is possible for the source words and destination words to overlap. By trans-
ferring data overlapping several words, the data can be packed more effi-
ciently in the data area. (This is particularly useful when handling position
data for position control.)
Since the source words and destination words can overlap, XFRB(062) can
be combined with ANDW(034) to shift m bits by n spaces.
Flags
Precautions Up to 255 bits of data can be transferred per execution of XFRB(062).
Be sure that the source words and destination words do not exceed the end of
the data area.
Examples When CIO 0.00 is ON in the following example, the 20 bits beginning with
CIO 200.06 are copied to the 20 bits beginning with CIO 300.00.
Name Label Operation
Error Flag ER OFF
0.00
D100
C: D100
20 bits

Table of Contents

Related product manuals