Delta AH500 Programming Manual page 658

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
b15
S1
16#32(2)
S1
+1
16#
34(4)
S1
+2
16#
36(6)
S1
+3
16#
38(8)
S1
+4
16#
30(0)
Ignored
S1
+5
S2
S3
4.
If the value in S
is equal to 0, the instruction is not executed.
2
Example:
When M0 is ON, the data in D0~D3 is "1234567". When the instruction $DEL is executed, the
characters in D0~D3 starting from the character indicated by the value in D11 are deleted. The
number of characters which are deleted is indicated by the value in D10, and the result is stored in
D20~D22.
If the values in D10 and D11 are 3 and 4 respectively, the execution result is as follows.
b15
D0
16#32(2)
D1
16#
34(4)
D2
16#
36(6)
D3
16#
00
D10
D11
If the values in D10 and D11 are 5 and 4 respectively, the execution result is as follows. Owing to the
fact that the number of characters which are deleted exceeds the range, the characters in D0~D3
starting from the fourth character to the last character are deleted.
b15
b8
D0
16#32(2)
D1
16#
34(4)
D2
16#
36(6)
D3
16#
00
D10
D11
6 - 4 9 0
b0
b8
b7
16#31(1)
16#
33(3)
16#
35(5)
After the instruction
16#
37(7)
is executed
16#
39(9)
16#
00
10
3
b8
b7
b0
16#31( 1)
16#
33(3)
16#
35(5)
16#
37(7)
After the instruction
is executed
3
4
b7
b0
16#31( 1)
16#
33(3)
16#
35(5)
After the instruction
16#
37(7)
is executed
Ex ceeding the range
5
4
b15
b8
b7
16#
32(2)
16#
0000
Larger than the number of charac ter s
which can be deleted i n the str ing in S1
b15
b8
b7
16#
32(2)
16#
37(7)
16#
b15
b8
16#
32(2)
16#
00
b0
16#31(1)
D
D
+1
b0
D20
16#31( 1)
D21
16#
33(3)
D22
00
b7
b0
D20
16#31( 1)
D21
16#
33(3)

Advertisement

Table of Contents
loading

Table of Contents