Delta AS Series Programming Manual page 1066

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
3.
If the value in S
deletes the characters in S
stores 16#00 in D.
b15
S1
16#32(2)
S1
+1
16#
S1
+2
16#
16#
S1
+3
S1
+4
16#
Ignored
S1
+5
S2
S3
4.
If the value in S
Example
When M0 is ON, the data in D0–D3 is "1234567". When the $DEL instruction executes, it deletes the characters in D0–
D3 starting from the character indicated by the value in D11. The number of characters to delete is indicated by the value
in D10, and the instruction stores the result in D20–D23.
_6
If the values in D10 and D11 are 3 and 4 respectively, the execution result is as follows.
D0
D1
D2
D3
D10
D11
If the values in D10 and D11 are 5 and 4 respectively, the execution result is as follows. Note that the number of
characters to delete exceeds the range, the instruction deletes the characters in D0–D3 starting from the fourth character
to the last character.
6 - 7 8 6
is larger than the number of characters which can be deleted in the string in S
2
starting from the character indicated by the value in S
1
b8
b7
b0
16#31(1)
34(4)
16#
33(3)
36(6)
16#
35(5)
After the instruction
38(8)
16#
37(7)
is executed
30(0)
16#
39(9)
16#
00
10
3
is equal to 0, the instruction is not executed.
2
b15
b8
b7
16#32(2)
16#31( 1)
16#
34(4)
16#
33(3)
16#
36(6)
16#
35(5)
16#
37(7)
16#
00
3
4
b15
b8
16#
32(2)
16#
Larger than the number of charac ter s
which can be deleted i n the str ing in S1
b0
b15
16#
16#
After the instruction
is executed
, the instruction
1
to the last character in S
3
b7
b0
16#31(1)
D
D
+1
0000
b8
b7
b0
D20
32(2)
16#31( 1)
D21
37(7)
16#
33(3)
D22
16#
00
, and
1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents