Data Exchange: Xchg(034) - 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-5 DATA EXCHANGE: XCHG(034)

Ladder Symbol
(034)
XCHG E
Variations
j XCHG(034)
Description
Flags
Example
0000
00
Operand Data Areas
E
: 1
1
E
1
2
E
: 2
2
When the execution condition is OFF, XCHG(034) is not executed. When the
execution condition is ON, XCHG(034) exchanges the content of E
If you want to exchange the content of blocks longer than 2 words, use
XCGL(035) and/or XCHG(034) and use work words as an intermediate buffer to
hold one of the blocks.
Data 1
Step 3
Content of *DM word is not BCD when set for BCD.
ER (A50003):
When CIO 000000 is ON in the following example, the content of CIO 0001 is
moved to D00010 and the content of D00010 is moved to CIO 0001.
(034)
XCHG
0001 D00010
Before execution
After execution
st
Exchange word CIO, G, A, T, C, DM, DR, IR
nd
Exchange word CIO, G, A, T, C, DM, DR, IR
E
1
Step 2
Buffer
CIO 0001
ABCD
CIO 0001
1234
Section 5-15
and E
1
E
2
Data 2
Step 1
Address
Instruction
Operands
00000
LD
00001
XCHG(034)
D00010
D00010
1234
D00010
ABCD
.
2
000000
0001
179

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents