Delta AH500 Programming Manual page 416

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
API
Instruction code
1107
SFDEL
Device
X
Y
M
S
D
n
Symbol:
Explanation:
1.
The value in the device specified by S indicates the length of the data, and the data is in the
devices specified by S+1~S+(The value in S). When the instruction is executed, the data in the
device specified by S+n is stored in D and deleted, the data in the devices specified by
S+n+1~S+(The value in S) is shifted to the right, the data in the device specified by S+(The
value in S) is cleared to 0, and the value in the device specified by S decreases by one. When
the value in the device specified by S is equal to 0, the instruction does not process the
deleting of the data, and the zero flag SM600 is ON.
2.
Generally, the pulse instruction SFDELP is used.
3.
The operand n should be within the range between 1 and 32767.
Example:
Suppose the value in D0 is 9, and n is 4. When X0.0 is ON, the data in D4 is stored in D20. After the
data in D4 is deleted, the data in D5~D9 is shifted to the right, and the value in D0 decreases by
one.
D
D20
D9
D8
4712
857
D9
D8
D20
22
4712
0
6 - 2 4 8
Operand
S, D, n
P
S
T
C
HC
D
Pulse instruction 16-bit instruction (7 steps) 32-bit instruction
AH500
S : Initial device
D : Device in which the data is stored
n : Device in which the data is deleted
n=4
D7
D6
D5
D4
22
123
100
111
T he data is deleted.
D7
D6
D5
D4
857
123
100
111
Function
Deleting the data from the data list
L
SM SR
E
PR
AH500
S
D3
D2
D0
D1
48
5
9
799
T he length of the data
D3
D2
D0
D1
48
5
799
8
T he length of the data
K
16# "$"
DF
-
Word
Word
Word

Advertisement

Table of Contents
loading

Table of Contents