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

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Data Movement Instructions

5-15-10 BLOCK TRANSFER: XFER(040)

Ladder Symbol
(040)
XFER
N
Variations
j XFER(040)
Description
Precautions
Flags
Example
0000
00
S
D
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.
S
3 4 5
2
S+1
3 4 5
1
S+2
3 4 2
2
S+N
6 4 5
2
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.
ER (A50003):
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).
(040)
XFER
#0003
0001
CIO 0001
W: #0003
CIO 0002
CIO 0003
Operand Data Areas
N: Number of words
st
S: 1
source word
st
D: 1
destination word CIO, G, A, T, C, DM
D
3 4 5
2
D+1
3 4 5
1
D+2
3 4 2
2
D+N
6 4 5
2
N is not BCD.
Content of *DM word is not BCD when set for BCD.
D00010
1 2 3 4
D00010
0 0 0 0
D00011
F F F F
D00012
Section 5-15
CIO, G, A, T, C, #, DM, DR, IR
CIO, G, A, T, C, DM
Address Instruction
00000
LD
00001
XFER(040)
1 2 3 4
0 0 0 0
F F F F
Operands
000000
#0003
0001
D00010
197

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents