Delta AS Series Programming Manual page 1062

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
b15
S1
16#32(2)
S1+1
16#
S1+2
16#
S1+3
16#
S1+4
16#
Ignored
S1+5
16#
S2
Ignored
S2+1
S3
S4
3.
If the string in S
4.
If the value in S
instruction replaces the characters in S
character in S
5.
If the value in S
Example
When M0 is ON, the data in D0–D7 is "1234ABAB1234AB", and the data in D10–D11 is "CDEF". When the $RPLC
_6
instruction executes, the instruction replaces the characters in D0–D7 starting from the character indicated by the value
in D51 with the characters in D10–D11. The number of characters to replace is indicated by the value in D50, and the
instruction stores the result in D20–D27.
6 - 7 8 2
b8
b7
b0
16#31( 1)
34(4)
16#33( 3)
36(6)
16#
35(5)
38(8)
16#
37(7)
After the instruction
is executed
30(0)
16#
39(9)
16#
00
4E(N)
16#4D( M)
16#
00
Number of characters which are r eplaced
4
Character which i s r eplaced
6
is 16#00, the instruction deletes the matching characters.
2
is larger than the number of characters that the instruction can replace in the string in S
3
starting from the character indicated by the value in S
1
.
1
is equal to 0, the instruction is not executed.
3
b15
b8
b7
16#
32(2)
16#31( 1)
16#
34(4)
16#
33(3)
16#
4D(M)
16#
35(5)
16#
30(0)
16#
4E(N)
16#
0000
b0
D
D+1
D+2
D+3
D+4
, the
1
to the last
4

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents