Delta AH500 Programming Manual page 656

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
If the values in D50 and D51 are 4 and 4 respectively, the execution result is as follows.
b15
D0
16#32(2)
D1
16#
34(4)
D2
16#
42(B)
D3
16#
42(B)
D4
16#
32(2)
D5
16#
34(4)
D6
16#
42(B)
Ignored
D7
16#
44(D)
D10
16#
45(F )
D11
Ignored
D12
D50
D51
If the values in D50 and D51 are 20 and 4 respectively, the execution result is as follows.
b15
D0
16#32(2)
D1
16#
34(4)
D2
16#
42(B)
D3
16#
42(B)
D4
16#
32(2)
D5
16#
34(4)
D6
16#
42(B)
Ignored
D7
16#
44(D)
D10
16#
45(F )
D11
Ignored
D12
D50
D51
If the values in D50, D51, and D10 are 3, 4, and 16#00 respectively, the execution result is as
follows. The three characters in D0~D7 starting from the fourth character are deleted.
b15
D0
16#32(2)
D1
16#
D2
16#
D3
16#
D4
16#
D5
16#
D6
16#
D7
D10
D50
D51
Additional remark:
1.
If the string in S
does not end with -S
1
6 - 4 8 8
b8
b7
b0
16#31( 1)
16#
33(3)
16#
41(A)
16#
41(A)
After the instruction
16#
31(1)
is executed
16#
33(3)
16#
41(A)
16#00
16#
43(C)
16#
45(E)
16#00
4
Number of characters which are r eplaced
Character which is r epl ac ed
4
b8
b7
b0
16#31(1)
16#
33(3)
16#
41(A)
After the instruction
16#
41(A)
is executed
16#
31(1)
16#
33(3)
16#
41(A)
16#
00
16#
43(C)
16#
45(E)
16#
00
Number of characters which are replaced
20
Character which i s r eplaced
4
b8
b7
b0
16#31(1)
34(4)
16#
33(3)
42(B)
16#
41(A)
After the instruction
42(B)
16#
41(A)
is executed
32(2)
16#
31(1)
16#
33(3)
34(4)
42(B)
16#
41(A)
16#
00
16#
00
Number of character s which are replaced
3
Character which i s r eplaced
4
, SM0 is ON, and the error code in SR0 is 16#2003.
1
b15
b8
b7
16#
32(2)
16#31( 1)
16#
43(C)
16#
33(3)
16#
45(E)
16#
44(D)
16#
42(B)
16#
46(F )
16#32
(2)
16#31
(1)
16#
33(3)
16#
34(4)
16#
42(B)
16#41
(A)
16#
0000
b15
b8
b7
16#
32(2)
16#31(1)
16#
43(C)
16#
33(3)
16#
45(E)
16#
44(D)
16#
46(F )
16#
00
b15
b8
b7
b0
16#
32(2)
16#31(1)
16#
41(A)
16#
33(3)
16#
31(1)
16#
42(B)
16#
33(3)
16#
32(2)
16#
34(4)
16#
41(A)
16#
00
16#42(B)
b0
D20
D21
D22
D23
D24
D25
D26
D27
b0
D20
D21
D22
D23
D20
D21
D22
D23
D24
D25

Advertisement

Table of Contents
loading

Table of Contents