Delta AH500 Programming Manual page 655

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

5.
If the value in S
is equal to 0, the instruction is not executed.
3
Example:
When M0 is ON, the data in D0~D7 is "1234ABAB1234AB", and the data in D10~D11 is "CDEF".
When the instruction $RPLC is executed, the characters in D0~D7 starting from the character
indicated by the value in D51 are replaced by the characters in D10~D11. The number of characters
which are replaced is indicated by the value in D50, and the result is stored in D20~D27.
If the values in D50 and D51 are 3 and 4 respectively, the execution result is as follows.
b 15
D 0
16# 32 (2)
D 1
16#
34 (4)
D2
16#
42(B)
D3
16#
42(B)
D4
1 6#
32(2)
D5
1 6#
34(4)
D6
1 6#
42(B)
忽略
Ig n o r e d
D7
D10
16#
44 (D)
16#
45 (F )
D11
忽略
I g n o r e d
D12
D50
D 51
b8
b7
b 0
16#31(1)
1 6#
33(3)
A f te r t he in st ruct io n
is execu t ed.
16 #
41(A)
16 #
41(A )
執行後
1 6#
31(1)
1 6#
33(3)
16#
41(A)
16 #00
1 6#
43(C)
1 6#
45(E)
16 #00
取代數量
3
N u m b e r o f c h a r a c t e r s w h i c h a r e r e p l a c e d
開始取代的位置
C h a r a c t e r w h i c h i s r e p l a c e d
4
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
b15
b8
b7
1 6#
32(2)
16#31 (1)
1 6#
43(C)
16#
33 (3)
16#45(E)
16#
44(D)
16#
41 (A)
1 6#
46(F)
16#
31 (1)
16#
42 (B)
16#
32 (2)
16#
33 (3)
16#
41(A)
16#
34 (4 )
1 6#
00
16#
42 (B)
b 0
D20
D21
D 22
D23
D 24
D 25
D 26
D 27
6 - 4 8 7

Advertisement

Table of Contents
loading

Table of Contents