342
Data Movement Instructions Section 3-8
Examples of C
The following diagram shows examples of data transfers for various values of
C.
3-8-7 MULTIPLE BIT TRANSFER: XFRB(062)
Purpose Transfers the specified number of consecutive bits.
Ladder Symbol
Variations
Applicable Program Areas
Operands C: Control Word
The first three digits of C indicate the first destination bit (m), the number of
bits to transfer (n), and the first source digit (l), as shown in the following dia-
gram.
S: First Source Word
Specifies the first source word. Bits are read from right to left, continuing with
consecutive words (up to S+16) when necessary.
Note The source words must be in the same data area.
Digit 0
Digit 1
Digit 2
Digit 3
Digit 0
Digit 1
Digit 2
Digit 3
Digit 0
Digit 1
Digit 2
Digit 3
Digit 0
Digit 1
Digit 2
Digit 3
Digit 0
Digit 1
Digit 2
Digit 3
Digit 0
Digit 1
Digit 2
Digit 3
Digit 0
Digit 1
Digit 2
Digit 3
Digit 0
Digit 1
Digit 2
Digit 3
C
S
D
XFRB(062)
C: Control word
S: First source word
D: First destination word
Variations Executed Each Cycle for ON Condition XFRB(062)
Executed Once for Upward Differentiation @XFRB(062)
Executed Once for Downward Differentiation Not supported
Immediate Refreshing Specification Not supported
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
15 8 037 4
C
l
nm
First bit in S (l