Mitsubishi Electric M800VW Series Programming Manual page 367

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
 Functions
RIGHT
 Stores n number of characters from the right of the character string (the end 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=5
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).
IB-1501667-B
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 (last - n + 2)th
D
character
D+1
ASCII code for the (last - n + 4)th
character
ASCII code for the (last - 1)th
character
00H
b15
b8b7
D
32H (2)
34H (4)
D+1
D+2
00H
"12345"
ASCII code for the 5th character
346
b8b7
b0
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
b0
31H (1)
33H (3)
35H (5)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents