Delta AH500 Programming Manual page 649

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
2114
$MIDW
Device X
Y
M
S
1
S
2
D
Symbol:
Explanation:
1.
S
: The initial character in D which is replaced
2
S
+1: The number of characters which are retrieved from S
2
2.
The retrieve of the characters in the string in S
S
+1 indicates the number of characters which are retrieved from the string in S
2
characters which are retrieved from the string in S
the character indicated by the value in S
b15
b8
S1
16#32(2)
S1
+1
16#
34(4)
S1
+2
16#
36(6)
S1
+3
16#
38(8)
S1
+4
16#
00
S2
In iti al cha ra cter in D whi ch is r ep la ced
3
Nu mbe r o f cha ra cter s whi ch
6
S2
+1
a re re tri eve d fr om S 1
3.
If the value in S
+1 is 0, the instruction is not executed.
2
4.
If the value in S
+1 is larger than the length of the string in D, the characters in D which are
2
replaced start from the character indicated by the value in S
Operand
P
S
, S
, D
1
2
S
T
C
HC
D
Pulse instruction 16-bit instruction (7-13 steps) 32-bit instruction
AH500
: String
S
1
S
2
D : String which is replaced
.
2
b7
b0
16#31(1)
16#
33(3)
16#
35(5)
16#
37(7)
16#
39(9)
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Replacing a part of the string
L
SM SR
E
AH500
Part of the string which is
replaced
1
begins from the first character, and the value in
1
replace the characters in D starting from
1
b15
b8
b7
16#
46(F )
16#45(E)
16#
48(H)
16#
16#
4A(J )
16#
16#
16#
4C(L)
16#
16#
00
Af ter the in st ruct ion is ex ec ute d
b15
b8
b7
16#
46(F )
16#45(E)
16#
32(2)
16#31(1)
16#
34(4)
16#
16#
36(6)
16#
16#
16#
00
to the last character in D.
2
Function
PR
K
16# "$"
DF
-
Word
Word
Word
. The
1
b0
D
47(G)
D
+1
49(I)
D
+2
4B(K)
+3
D
4D(M)
D
+4
b0
D
D
+1
33(3)
D
+2
35(5)
D
+3
4D(M)
D
+4
6 - 4 8 1

Advertisement

Table of Contents
loading

Table of Contents