EasyManuals Logo
Home>Mitsubishi>Controller>MELSEC-Q/L

Mitsubishi MELSEC-Q/L User Manual

Mitsubishi MELSEC-Q/L
850 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #488 background imageLoading...
Page #488 background image
486
RIGHT, RIGHTP, LEFT, LEFTP
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 .
When n 7
(2) The NULL code (00
H
) indicating the end of the character string is automatically added to the end of the character string.
Refer to Page 90, Section 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
H
) will be stored at .
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.
Program Example
(1) The following program stores 4 characters of data from the rightmost of the character string stored in the area starting
from R0, and stores it into the area starting from D0 when X0 is turned ON.
[Ladder Mode] [List Mode]
[Operation]
Error
code
Error details
Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4101
The value of n exceeds the number of characters specified by .
The range of the device specified by exceeds the range from to
+ the number of characters specified in n (including ).
––
S
D
+1
ASCII code for the 1st character
ASCII code for the 2nd character
ASCII code for the 3rd characterASCII code for the 4th character
ASCII code for the (n - 2)th character
ASCII code for the (n - 1)th character
ASCII code for the nth character
ASCII code for the (n + 1)th character
ASCII code for the last character
00
H
+1
ASCII code for the 1st characterASCII code for the 2nd character
ASCII code for the 3rd character
ASCII code for the 4th character
ASCII code for the (n - 2)th character
ASCII code for the (n - 1)th character
ASCII code for the nth character
00
H
S
S
D
b15 b8b7 b0
D
b15 b8
b7
b0
+1
41
H
(A)42
H
(B)
43
H
(C)44
H
(D)
+2
45
H
(E)46
H
(F)
ASCII code for the
7th character
"ABCDEF1"
+3
31
H
(1)00
H
+1
41
H
(A)42
H
(B)
43
H
(C)44
H
(D)
45
H
(E)46
H
(F)
31
H
(1)32
H
(2)
33
H
(3)34
H
(4)
35
H
(5)
00
H
+2
+3
+4
+5
"ABCDEF12345"
b15 b8b7 b0
S
S
S
S
S
S
D
D
D
b15 b8b7 b0
D
D
S
D D D
D
Instruction
Device
Step
R1
42
H
(B)41
H
(A)
32
H
(2)31
H
(1)
D1
30
H
(0)45
H
(E)
46
H
(F)41
H
(A)
30
H
(0)45
H
(E)
46
H
(F)41
H
(A)
00
H
R2
R3
R4
D2
00
H
ASCII code for the 4th character
"BA210EFA"
"0EFA"
R0
D0
b15 b8b7 b0
b15 b8b7 b0

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-Q/L and is the answer not in the manual?

Mitsubishi MELSEC-Q/L Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-Q/L
CategoryController
LanguageEnglish

Related product manuals