Mitsubishi Electric M800VW Series Programming Manual page 372

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.10 Character String Processing Instructions
 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
31H (1)
S1
33H (3)
S1+1
S1+2
35H (5)
S1+3
37H (7)
S1+4
00H
"012345678"
Position counted from the left end of
S2
5
character string data designated by D
S2+1
8
Number of characters counted from the left end of
the character string data designated by S1
 If the number of characters designated by (S2+1) is "-1", the data up to the final character designated by (S1) is stored at
the area starting from the device designated by (D).
b15
b8b7
31H (1)
S1
33H (3)
S1+1
S1+2
35H (5)
S1+3
"012345"
Position counted from the left end of character
string data designated by D
S2
2
Number of characters counted from the left
S2+1
-1
end of the character string data designated by
S1
b8b7
b0
30H (0)
32H (2)
34H (4)
36H (6)
38H (8)
b0
30H (0)
32H (2)
34H (4)
00H
Before execution
b15
D
42H (B)
44H (D)
D+1
D+2
46H (F)
D+3
48H (H)
D+4
00H
"ABCDEFGHI"
After execution
b15
42H (B)
D
44H (D)
D+1
D+2
31H (1)
D+3
33H (3)
D+4
00H
Characters "35H" (5) to "37H" (7) are not stored.
Before execution
b15
42H (B)
D
44H (D)
D+1
D+2
46H (F)
D+3
48H (H)
D+4
4AH (J)
D+5
00H
"ABCDEFGHIJK"
After execution
b15
30H (0)
D
32H (2)
D+1
D+2
34H (4)
D+3
48H (H)
D+4
4AH (J)
D+5
4AH (J)
351
b8b7
b0
41H ( A)
43H (C)
45H (E)
47H (G)
49H (I)
b8b7
b0
41H (A)
43H (C)
30H (0)
32H (2)
34H (4)
"ABCD01234"
b8b7
b0
41H (A)
43H (C)
45H (E)
47H (G)
49H (I)
4BH (K)
b8b7
b0
41H (A)
31H (1)
33H (3)
35H (5)
49H (I)
49H (I)
"A012345HIJK"
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents