Mitsubishi Electric MELSEC-Q/L Programming Manual page 582

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

• If the number of characters designated by (S2)+1 is "-1", stores the data up to the final character designated by (S) starting
from the device designated by (D).
b15
S 1
42
(B)
H
S 1
+1
44
(D)
H
S 1
+2
46
(F)
H
S 1
+3
48
(H)
H
S 1
+4
4A
(J)
H
S 1
+5
00
H
"ABCDEFGHIJK"
5
S2
+1
1
S2
■MIDW
• Extracts the character string data of (S2)+1 characters, starting from the left end of the character string data designated by
(S1), and stores the extracted data to the character string data designated by (D) in the area starting from the position
designated by (S2) from the left end.
b15
S 1
31
(1)
H
S 1
+1
33
(3)
H
S 1
+2
35
(5)
H
S 1
+3
37
(7)
H
+4
S 1
00
H
"012345678"
3
S2
6
+1
S2
• The NULL code (00H) indicating the end of the character string is automatically added to the end of the character string.
Refer to Page 91 Using character string data for the format of the character string data.
• If the number of characters designated by (S2)+1 is "0", the NULL code (00H) is stored at the start of (D).
7 APPLICATION INSTRUCTIONS
580
7.11 Character String Processing Instructions
b8b7
b0
41
(A)
H
43
(C)
H
45
(E)
H
Position of
47
(G)
H
the 5th
49
(I)
character
H
4B
(K)
H
b8b7
b0
30
(0)
H
32
(2)
H
34
(4)
H
36
(6)
H
38
(8)
H
Position counted from the left
end of character string data
designated by
D
Number of characters counted
from the left end of the character
string data designated by
S1
b15
D
46
(F)
H
D
+1
48
(H)
H
D
+2
4A
(J)
H
+3
D
00
H
S2
Before execution
b15
D
42
(B)
H
D
+1
44
(D)
H
D
+2
46
(H)
H
D
+3
48
(H)
H
D
+4
00
H
"ABCDEFGHI"
After execution
b15
D
42
(B)
H
D
+1
31
(1)
H
D
+2
33
(3)
H
D
+3
35
(5)
H
D
+4
00
H
"AB012345I"
b8b7
b0
45
(E)
H
47
(G)
H
49
(I)
H
4B
(K)
H
"EFGHIJK"
b8b7
b0
41
(A)
H
43
(C)
H
45
(E)
H
47
(G)
H
49
(I)
H
b8b7
b0
41
(A)
H
30
(0)
H
32
(2)
H
34
(4)
H
49
(I)
H

Advertisement

Table of Contents
loading

Table of Contents