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

Duplex system
Hide thumbs Also See for SYSMAC CVM1 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.
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.
ER (A50003):
N is not BCD.
Content of *DM word is not BCD when set for BCD.
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
W: #0003
Operand Data Areas
N: Number of words
CIO, G, A, T, C, #, DM, DR, IR
st
S: 1
source word
CIO, G, A, T, C, DM
st
D: 1
destination word CIO, G, A, T, C, DM
S
3 4 5
2
S+1
3 4 5
1
S+2
3 4 2
2
S+N
6 4 5
2
D00010
CIO 0001
1 2 3 4
CIO 0002
0 0 0 0
F F F F
CIO 0003
Section 5-15
D
3 4 5
2
D+1
3 4 5
1
D+2
3 4 2
2
D+N
6 4 5
2
Address Instruction
Operands
00000
LD
000000
00001
XFER(040)
D00010
D00010
1 2 3 4
0 0 0 0
D00011
F F F F
D00012
#0003
0001
185

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents