Delta AS Series Programming Manual page 1065

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
2117
$DEL
Device
X
Y
M
S
1
S
2
S
3
D
Data
type
S
1
S
2
S
3
D
Symbol
Explanation
1.
This instruction deletes the characters in S
characters that are deleted is indicated by the value in S
2.
For example, the instruction deletes the four characters starting from the third character in the string "1234567890"
in S
, and stores the result "127890"in D.
1
b15
S1
16#32(2)
S1
+1
16#
34(4)
S1
+2
16#
36(6)
16#
38(8)
S1
+3
S1
+4
16#
30(0)
Ignored
S1
+5
S2
S3
Operand
P
S
, S
, S
1
2
3
S
T
C
HC
Pulse instruction
: String
S
1
: Number of characters to be deleted
S
2
S
3
D : Device where the execution result is stored
starting from the character indicated by the value in S
1
b8
b7
b0
16#31( 1)
16#
33(3)
16#
35(5)
After the instruction
16#
37(7)
is executed
16#
39(9)
16#
00
4
3
Cha p ter 6 App l ied Ins truc tio ns
, D
Deleting the characters in a string
D
FR
SM
SR
16-bit instruction
AS
AS
Characters in S
are deleted starting from the character
1
indicated by the value in S
.
3
, and the instruction stores the result in D.
2
b15
b8
16#
32(2)
16#
38(8)
16#
30(0)
16#
Function
E
K
16#
"$"
F
32-bit instruction
-
. The number of
3
b7
b0
16#31( 1)
D
16#
37(7)
D
+1
16#
39(9)
D
+2
D
+2
0000
6 - 7 8 5
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents