Delta AH500 Programming Manual page 661

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
2119
$INS
Device X
Y
M
S
1
S
2
S
3
D
Symbol:
Explanation:
1.
The string in S
is inserted into the string in S
2
and the result is stored in D.
2.
If the string in either S
in D.
3.
If the strings in S
and S
1
b15
16#32(2)
S1
16#
34(4)
S1
+1
S1
+2
16#
36(6)
16#
38(8)
S1
+3
16#
30(0)
S1
+4
S1
+5
16#
4E(N)
S2
S2
S2
+1
S3
Example:
When M0 is ON, the data in D0~D3 is "1234567", and the data in D10 is "AB". When the instruction
$INS is executed, "AB" is inserted into the string in D0~D3 after the character indicated by the value
in D30. The result is stored in D20~D24.
Operand
P
S
, S
, S
1
2
S
T
C
HC
D
Pulse instruction 16-bit instruction (9-15 steps) 32-bit instruction
AH500
: String
S
1
: String which is inserted
S
2
S
3
D :
or S
is a null string, the other string which is not a null string is stored
1
2
are null strings, 16#0000 is stored in D.
2
b8
b7
b0
16#31( 1)
16#
33(3)
16#
35(5)
16#
37(7)
After the instruction
16#
39(9)
is executed
16#
00
16#
4D( M)
16#
00
6
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
, D
Inserting the string
3
L
SM SR
E
AH500
The string is inserted into S
character indicated by the value in S
Device in which the execution result is
stored
after the character indicated by the value in S
1
b15
b8
b7
16#
32(2)
16#
34(4)
16#
36(6)
16#
4E(N)
16#
38(8)
16#
30(0)
16#
Function
PR
K
16# "$"
DF
-
Word
Word
after the
1
Word
.
3
Word
3
b0
16#31( 1)
D
16#
33(3)
D
+1
16#
35(5)
D
+2
16#
4D( M)
D
+3
16#
37(7)
D
+4
16#
39(9)
D
+5
+6
00
D D
6 - 4 9 3
,

Advertisement

Table of Contents
loading

Table of Contents