Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 292

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Data Movement Instructions
Description
Flags
Precautions
Examples
0.00
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.
Name
Label
Error Flag
ER
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.
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.
D100
Operation
OFF
C: D100
20 bits
Section 3-7
259

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents