![Omron CVM1D Скачать руководство пользователя страница 184](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532184.webp)
179
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 Areas
Ladder 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 2
Data 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
ABCD
Before execution
1234
D00010
1234
After execution
ABCD
D00010
CIO 0001
CIO 0001
Description
Data Movement Instructions
Section 5-15
(034)
XCHG
0001 D00010
0000
00
Содержание CVM1D
Страница 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Страница 463: ...iv...
Страница 465: ...vi...