AH500 Programming Manual 
6-248 
API 
Instruction code  Operand  Function 
1107    SFDEL  P 
S, D, n 
Deleting the data from the data list 
Device 
X  Y  M  S  T  C  HC  D  L  SM  SR  E  PR  K 
16#
“$”  DF 
16-bit instruction (7 steps) 
Symbol: 
S
Initial device  Word 
D
Device in which the data is stored  Word 
n 
Device in which the data is deleted  Word 
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. 
 
D20 D9 D8 D7 D6 D5 D4 D3 D2
D1
D0
The length of the data
9
S
D
The data is deleted.
D20
D8 D7 D6 D5 D4 D3 D2
D1
D0
22
8
4712 857 123 100 111
22
48 5
799
4712 857 123 100 111
48 5
799
n=4
D9
0
The length of the data