Mitsubishi Electric M800VW Series Programming Manual page 368

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
LEFT
 Stores n number of characters from the left of the character string (the beginning of the character string) that is stored in the
area starting from the device number designated by (S), in the area starting from the device number designated by (D).
b15
ASCII code for the 2nd
S
character
ASCII code for the 4th
S+1
character
ASCII code for the (last - n + 2)th
character
ASCII code for the (last - n + 4)th
character
ASCII code for the (last - 1)th
character
00H
When n=7
b15
S
42H (B)
44H (D)
S+1
S+2
46H (F)
S+3
32H (2)
S+4
34H (4)
S+5
00H
"ABCDEF12345"
 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 n is "0", the NULL code (00H) will be stored at (D).
b8b7
b0
ASCII code for the 1st
character
ASCII code for the 3rd
character
ASCII code for the (last - n + 1)th
character
ASCII code for the (last - n + 3)th
character
ASCII code for the (last - 2)th
character
ASCII code for the last
character
b8b7
b0
41H ( A)
43H (C)
45H (E)
31H (1)
33H (3)
35H (5)
b15
ASCII code for the 2nd
D
character
ASCII code for the 4th
D+1
character
ASCII code for the (n - 1)th
character
00H
b15
b8b7
42H (B)
D
44H (D)
D+1
46H (F)
D+2
D+3
00H
"ABCDEF1"
ASCII code for the 7th character
347
b8b7
b0
ASCII code for the 1st
character
ASCII code for the 3rd
character
ASCII code for the (n - 2)th
character
ASCII code for the nth
character
b0
41H (A)
43H (C)
45H (E)
31H (1)
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents