EasyManua.ls Logo

Omron SYSMAC CV Series - Block Transfer: Xfer(040)

Omron SYSMAC CV Series
636 pages
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...
197
5-15-10BLOCK TRANSFER: XFER(040)
Variations
j XFER(040)
(040)
XFER N S D
Operand Data AreasLadder 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
345
1
D+1
345
2
D+2
342
2
D+N
645
2
S
345
1
S+1
345
2
S+2
342
2
S+N
645
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. For version-2 CVM1 CPUs, transfer source and destination words can over-
lap. This is not possible for other CPUs.
2. Refer to page 115 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 4D00010
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

Table of Contents

Related product manuals