Double Data Exchange: Xcgl(035) - Omron CVM1D Operation Manual

Hide thumbs Also See for CVM1D:
Table of Contents

Advertisement

Data Movement Instructions

5-15-6 DOUBLE DATA EXCHANGE: XCGL(035)

Ladder Symbol
(035)
XCGL E
Variations
j XCGL(035)
Description
Precautions
Flags
Example
0000
00
180
Operand Data Areas
E
: 1
1
E
1
2
E
: 2
2
When the execution condition is OFF, XCGL(035) is not executed. When the ex-
ecution condition is ON, XCGL(035) exchanges the content of E
that of E
and E
+1.
2
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 1
Step 3
Refer to page 101 for general precautions on operand data areas.
Content of *DM word is not BCD when set for BCD.
ER (A50003):
When CIO 000000 is ON in the following example, the contents of CIO 0000 and
CIO 0001 are moved to D01500 and D01501, and the contents D01500 and
D01501 are moved to CIO 0000 and CIO 0001.
(035)
XCGL
1000 D01500
CIO 1001
Before execution
1234
CIO 1001
After execution
9ABC
st
Exchange word CIO, G, A, T, C, DM
nd
Exchange word CIO, G, A, T, C, DM
E
+1
1
Step 2
Buffer
CIO 1000
5678
CIO 1000
DEF0
Section 5-15
and E
+1 with
1
1
E
E
+2
2
2
Data 2
Step 1
Address Instruction
Operands
00000
LD
000000
00001
XCGL(035)
D01500
D01500
D01501
9ABC
DEF0
D01501
D01500
1234
5678
1000

Advertisement

Table of Contents
loading

Table of Contents