![background image](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532190.webp)
185
5-15-10 BLOCK TRANSFER: XFER(040)
Variations
j
XFER(040)
(040)
XFER
N
S
D
Operand Data Areas
Ladder Symbol
N: Number of words
CIO, G, A, T, C, #, DM, DR, IR
D: 1
st
destination word CIO, G, A, T, C, DM
S: 1
st
source word
CIO, G, A, T, C, DM
When the execution condition is OFF, XFER(040) is not executed. When the ex-
ecution condition is ON, XFER(040) copies the contents of S, S+1, ..., S+N to D,
D+1, ..., D+N.
2
D
3 4 5
1
D+1
3 4 5
2
D+2
3 4 2
2
D+N
6 4 5
2
S
3 4 5
1
S+1
3 4 5
2
S+2
3 4 2
2
S+N
6 4 5
Both S and D may be in the same data area, but their respective block areas
must not overlap. S and S+N must be in the same data area, as must D and D+N.
N must be BCD.
Note
1. Transfer source and destination words can overlap, so XFER(040) can be
used for word shift operations.
2. Refer to page 101 for general precautions on operand data areas.
Flags
ER (A50003):
N is not BCD.
Content of
*
DM word is not BCD when set for BCD.
Example
When CIO 000000 is ON in the following example, the contents of CIO 0001
through CIO 0003 are copied into D00010 through D00012, as specified by the
first operand (#0003).
Address
Instruction
Operands
00000
LD
000000
00001
XFER(040)
#0003
0001
D00010
1 2 3 4
0 0 0 0
F F F F
1 2 3 4
D00010
D00011
D00012
0 0 0 0
F F F F
W: #0003
CIO 0001
CIO 0002
CIO 0003
Description
Precautions
Data Movement Instructions
Section 5-15
(040)
XFER
#0003
0001
D00010
0000
00
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...