EasyManua.ls Logo

Delta AH500 - Page 661

Delta AH500
749 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Applied Instructions
6-493
API
Instruction code
Operand
Function
2119 $INS P
S
1
, S
2
, S
3
, D
Inserting the string
Device
X Y M S T C HC D L SM SR E PR K 16#
“$” DF
S
1
S
2
S
3
D
Pulse instruction
16-bit instruction (9-15 steps)
32-bit instruction
AH500 AH500 -
Symbol:
S
1
String Word
S
2
String which is inserted Word
S
3
The string is inserted into S
1
after the
character indicated by the value in S
3
.
Word
D
Device in which the execution result is
stored
Word
Explanation:
1. The string in S
2
is inserted into the string in S
1
after the character indicated by the value in S
3
,
and the result is stored in D.
2. If the string in either S
1
or S
2
is a null string, the other string which is not a null string is stored
in D.
3. If the strings in S
1
and S
2
are null strings, 16#0000 is stored in D.
b15
b0
b7 b8
0016#
16#31(1) 16#32(2)
33(3)16# 34(
4)16#
36(6)16#
35(5)16#
37(7)16#
38(8)16#
39(9)16#
b15
b0
b7 b8
0016#
4D(M)16#
4E(N)16#
S1
+1
S1
+2
S1
+3
S1
+4
S1
S2
+1
S2 S2
S3
+5 S1
30(0)16#
6
16#31(1) 32(2)16#
33(3)16# 34(4)16#
36(6)16#
35(5)16#
4D(M)16#
4E(N)16#
0016#
37(7)16#
38(8)16#
39(9)16#
30(0)16#
D
+1 D
+2 D
+3
D
+4 D
+5
D
+6
D D
After the instruction
is executed
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.

Table of Contents

Other manuals for Delta AH500

Related product manuals