EasyManua.ls Logo

Delta AH500 - Page 657

Delta AH500
749 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Applied Instructions
6-489
API Instruction code Operand
Function
2117 $DEL P
S
1
, S
2
, S
3
, D
Deleting the characters in the string
Device
X Y M S T C HC D L SM SR E PR K 16# $” DF
S
1
S
2
S
3
D
Pulse instruction
16-bit instruction (9 steps)
32-bit instruction
AH500 AH500 -
Symbol:
S
1
String Word
S
2
Number of characters which are deleted Word
S
3
The characters in S
1
starting from the
character indicated by the value in S
3
are
deleted.
Word
D
Device in which the execution result is
stored
Word
Explanation:
1. The characters in S
1
starting from the character indicated by the value in S
3
are deleted, the
number of characters which are deleted is indicated by the value in S
2
, and the result is stored
in D.
2. The four characters starting from the third character in the string 1234567890in S
1
are
deleted, and the result 127890is stored in D.
b15
b0
b7 b8
0016#
S1
16#31(1) 16#32(2)
33(3)16# 34(4)16#
36(6)16#
35(5)16#
37(7)16#
38(8)16#
39(9)16#
b15
b0
b7 b8
D
+1 D
+2 D
+1
S1
+2
S1
+3
S1
+4
S1
S2
S3
+5 S1
30(0)16#
4
3
16#31(1) 32(2)16#
37(7)16# 38(8)16#
+2 D
000016#
39(9)16#
30(0)16#
Ignored
After the instruction
is executed
3. If the value in S
2
is larger than the number of characters which can be deleted in the string in
S
1
, the characters in S
1
starting from the character indicated by the value in S
3
to the last
character in S
1
are deleted, and 16#00 is stored in D.

Table of Contents

Other manuals for Delta AH500

Related product manuals