EasyManua.ls Logo

Omron SYSMAC CV Series - Data Exchange: Xchg(034)

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...
191
5-15-5 DATA EXCHANGE: XCHG(034)
(034)
XCHG E
1
E
2
E
2
: 2
nd
Exchange word CIO, G, A, T, C, DM, DR, IR
E
1
: 1
st
Exchange word CIO, G, A, T, C, DM, DR, IR
Operand Data AreasLadder Symbol
Variations
j XCHG(034)
When the execution condition is OFF, XCHG(034) is not executed. When the
execution condition is ON, XCHG(034) exchanges the content of E
1
and E
2
.
E
2
E
1
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 2Data 1
Buffer
Step 1
Step 2
Step 3
Flags ER (A50003): Content of *DM word is not BCD when set for BCD.
Example 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.
Address Instruction Operands
00000 LD 000000
00001 XCHG(034)
0001
D00010
ABCDBefore execution 1234
D00010
1234After execution ABCD
D00010
CIO 0001
CIO 0001
Description
Data Movement Instructions Section 5-15
(034)
XCHG 0001 D00010
0000
00

Table of Contents

Related product manuals