Mitsubishi MELSEC Q Series Programming Manual page 606

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

RIGHT(P),LEFT(P)
(2) The NULL code (00
the end of the character string. Refer to 3.2.5 for the format of the character string data.
(3) If the number of characters designated by n is "0", the NULL code (00
LEFT
(1) Stores n number of characters from the left side of the character string (the beginning of the
character string) being stored in devices starting from that whose number is designated by
, in devices starting from that whose number designated by
S
S
S
+1
When n
S
S
+1
S
+2
S
+3
S
+4
S
+5
(2) The NULL code (00
end of the character string.
Refer to 3.2.5 for the format of the character string data.
(3) If the number of characters designated by n is "0", the NULL code (00
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The value of n exceeds the number of characters designated by
• The range of n characters from
7-232
) indicating the end of the character string is automatically appended at
H
b15
b8b7
ASCII code for the 2nd character
ASCII code for the 1st character
ASCII code for the 4th character
ASCII code for the 3rd character
ASCII code for the (n - 1)th character
ASCII code for the (n - 2)th character
ASCII code for the (n + 1)th character
ASCII code for the nth character
00
ASCII code for the last character
H
7
b15
b8b7
42
(B)
41
(A)
H
H
44
(D)
43
(C)
H
H
46
(F)
45
(E)
H
H
32
(2)
31
(1)
H
H
34
(4)
33
(3)
H
H
00
35
(5)
H
H
"ABCDEF12345"
) indicating the end of the character string is automatically added to the
H
b0
b15
D
ASCII code for the 2nd character
D
+1
ASCII code for the 4th character
ASCII code for the (n - 1)th character
00
b0
b15
D
42
H
D
+1
44
H
D
+2
46
H
+3
D
00
ASCII code for the
7th character
exceeds the relevant device.
D
) will be stored at
H
.
D
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
H
b8b7
b0
(B)
41
(A)
H
(D)
43
(C)
H
(F)
45
(E)
H
31
(1)
H
H
"ABCDEF1"
) will be stored at
H
. (Error code: 4101)
S
(Error code: 4101)
.
D
.
D

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents