Delta AH500 Programming Manual page 293

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
0306
D
XCH
Device X
Y
M
S
1
S
2
Symbol:
Explanation:
1.
The data in the device specified by S
2.
Only the 32-bit instructions can use the 32-bit counter.
Example 1:
When X0.0 is switched from OFF to ON, the data in D20 is exchanged with the data in D40.
Example 2:
When X0.0 is switched from OFF to ON, the data in D100 is exchanged with the data in D200.
Operand
S
, S
P
1
2
S
T
C
HC
D
Pulse instruction 16-bit instruction (5 steps) 32-bit instruction (5 steps)
AH500
Data which will be
S
1
exchanged
Data which will be
S
2
exchanged
is exchanged with the data in the device specified by S
1
D 20 1 20
D 40
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Exchanging the data
L
SM SR
E
AH500
Before the instruction
is executed:
4 0
Before the instruction
is executed:
D 10 0
9
D 10 1
2 0
D 20 0
8
D 20 1
4 0
Function
PR
K
16# "$"
DF
AH500
Word/Double word
Word/Double word
After the instruction
is executed:
D 20
4 0
1 20
D 40
After the instruction
is executed:
D 10 0
8
4 0
D 10 1
D 20 0
9
D 20 1
2 0
6 - 1 2 5
.
2

Advertisement

Table of Contents
loading

Table of Contents