Delta AH500 Programming Manual page 277

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
0219
D
COLM
Device X
Y
M
S
n
D
Symbol:
Explanation:
1.
The operand D used in the 16-bit instruction occupies sixteen 16-bit registers, i.e. D~D+15.
2.
The operand D used in the 32-bit instruction occupies thirty-two 32-bit registers, i.e. D~D+31.
3.
The operand n indicates that the values of the bits in the operand S are stored in the n
the operand D. Besides, the operand n used in the 16-bit instruction should be within the
range between 0 and 15, and the operand n used in the 32-bit instruction should be within the
range between 0 and 31.
4.
The operand n used in the 16-bit instruction indicates that the values of the bits in S are stored
in the n
th
bits in D~D+15 in order.
5.
The operand n used in the 32-bit instruction indicates that the values of the bits in S are stored
in the n
th
bits in D~D+31 in order.
6.
Only the 32-bit instructions can use the 32-bit counter.
7.
Take the 16-bit instruction for example.
Operand
S, n, D
P
S
T
C
HC
D
Pulse instruction 16-bit instruction (7 steps) 32-bit instruction (7 steps)
AH500
S : Data source
n : Number of bits
D : Data destination
b 15
. .. . . . .
S
0
1
0
b 15
D
D+1
D+2
.
.
.
.
.
.
.
.
.
D+1 3
D+1 4
D+1 5
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Converting a line of data into a
column of data
L
SM SR
E
PR
AH500
Word/Double word
Word/Double word
Word/Double word
b 0
.
1
0
1
N
b 0
1
0
1
.
.
.
0
1
0
Function
K
16# "$" DF
AH500
th
bits in
6 - 1 0 9

Advertisement

Table of Contents
loading

Table of Contents