Delta AS Series Programming Manual page 416

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
0306
D
XCH
Device
X
Y
M
S
1
S
2
Data
type
S
1
S
2
Symbol
Explanation
1.
This instruction exchanges the data in the device specified by S
2.
Only the 32-bit instructions can use the 32-bit counter, but not the device E.
Example 1
When X0.0 is switched from OFF to ON, the instruction exchanges the data in D20 with the data in D40.
Example 2
When X0.0 switches from OFF to ON, the instruction exchanges the data in D100 with the data in D200.
Operand
S
, S
P
1
2
S
T
C
HC
Pulse instruction
: Data to exchange
S
1
: Data to exchange
S
2
Before the instruction
is executed:
D 20 1 20
D 40
4 0
Before the instruction
is executed:
D 10 0
D 10 1
D 20 0
D 20 1
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
D
FR
SM
SR
16-bit instruction
AS
AS
with the data in the device specified by S
1
After the instruction
is executed:
D 20
4 0
1 20
D 40
After the instruction
is executed:
9
8
2 0
4 0
8
9
4 0
2 0
Function
Exchanging data
E
K
16#
"$"
32-bit instruction
AS
.
2
D 10 0
D 10 1
D 20 0
D 20 1
6 - 1 3 7
F
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents