Mitsubishi Electric MELSEC-Q/L Programming Manual page 583

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

Advertisement

• If the number of characters designated by (S2)+1 exceeds the final character from the character string data designated by
(D), data will be stored up to the final character.
b15
b8b7
S 1
31
(1)
H
S 1
+1
33
(3)
H
S 1
+2
35
(5)
H
S 1
+3
37
(7)
H
S 1
+4
00
H
"012345678"
Position counted from the left
S2
5
end of character string data
designated by
S2
+1
8
Number of characters counted
from the left end of character
string data designated by
• If the number of characters designated by (S2)+1 is "-1", stores the data up to the final character designated by (S1) to the
area starting from the device designated by (D).
b15
b8b7
S 1
31
(1)
H
S 1
+1
33
(3)
H
S 1
+2
35
(5)
H
S 1
+3
00
H
"012345"
Position counted from the left
2
S2
end of character string data
designated by
1
+1
S2
Number of characters counted
from the left end of character
string data designated by
b0
30
(0)
H
32
(2)
H
34
(4)
H
36
(6)
H
38
(8)
H
D
S1
b0
30
(0)
H
32
(2)
H
34
(4)
H
D
S1
Before execution
b15
b8b7
D
42
(B)
H
D
+1
44
(D)
H
D
+2
46
(F)
H
D
+3
48
(H)
H
D
+4
00
H
"ABCDEFGHI"
After execution
b15
b8b7
D
42
(B)
H
D
+1
44
(D)
H
D
+2
31
(1)
H
D
+3
33
(3)
H
D
+4
00
H
"ABCD01234"
Characters "35
" (5) to "37
H
are not stored.
Before execution
b15
b8b7
D
42
(B)
H
D
+1
44
(D)
H
D
+2
46
(F)
H
D
+3
48
(H)
H
D
+4
4A
(J)
H
D
+5
00
H
"ABCDEFGHIJK"
After execution
b15
b8b7
D
30
(0)
H
D
32
(2)
+1
H
D
+2
34
(4)
H
D
+3
48
(H)
H
D
+4
(J)
4A
H
D
+5
00
H
"A012345HIJK"
7.11 Character String Processing Instructions
b0
41
(A)
H
43
(C)
H
45
(E)
H
47
(G)
H
49
(I)
H
b0
41
(A)
H
43
(C)
H
30
(0)
H
32
(2)
H
34
(4)
H
" (7)
H
b0
41
(A)
H
43
(C)
H
45
(E)
H
47
(G)
H
49
(I)
H
4B
(K)
H
b0
41
(A)
H
31
(1)
H
33
(3)
H
35
(5)
H
49
(I)
H
4B
(K)
H
7 APPLICATION INSTRUCTIONS
7
581

Advertisement

Table of Contents
loading

Table of Contents