Mitsubishi Electric M800VW Series Programming Manual page 371

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
 The NULL code (00H) indicating the end of the character string is automatically added to the end of the character string.
For details on character string data formats, refer to "6.3.5 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).
 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
42H (B)
S1
44H (D)
S1+1
S1+2
46H (F)
S1+3
48H (H)
S1+4
4AH (J)
S1+5
00H
"ABCDEFGHIJK"
S2
5
S2+1
-1
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 des-
ignated by (S2) from the left end.
b15
b8b7
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
3
character string data designated by D
S2+1
6
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 "0", the character string of (D) does not change.
IB-1501667-B
b8b7
b0
41H (A)
43H (C)
45H (E)
47H (G)
49H (I)
4BH (K)
b0
30H (0)
32H (2)
34H (4)
36H (6)
38H (8)
b15
b8b7
46H (F)
D
48H (H)
D+1
D+2
4AH (J)
D+3
00H
"EFGHIJK"
Position of the 5th
character S2
Before execution
b15
42H (B)
D
44H (D)
D+1
D+2
46H (F)
D+3
48H (H)
D+4
00H
After execution
b15
D
42H (B)
31H (1)
D+1
D+2
33H (3)
D+3
35H (5)
D+4
00H
350
b0
45H (E)
47H (G)
49H (I)
4BH (K)
b8b7
b0
41H (A)
43H (C)
45H (E)
47H (G)
49H (I)
"ABCDEFGHI"
b8b7
b0
41H (A)
30H (0)
32H (2)
34H (4)
49H (I)
"AB012345I"

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents