Mitsubishi Electric MELSEC-Q/L Programming Manual page 589

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Operation error
• In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Error
Error details
code
4100
The number of characters in the devices specified by (S), (D), or the devices
specified by ((S)+(D)) after the insertion exceeds 16383 characters.
The value specified in n is not within the specified range. (1n16383)
The value specified in n exceeds the number of characters of the character
string (D)+1.
4101
The devices, that store character strings, specified by (S) overlaps with even
one of the devices specified by (D).
The range of the devices specified by ((S)+(D)) in which character strings
data have been inserted exceeds the specified device range.
There is no NULL code "00H" within the range of the corresponding devices
starting from the device numbers specified by (S) and (D).
The device where the character has been inserted is the same as the device
storing the character strings.
Program example
• The following program inserts the character string data stored in the device D0 and up to the fourth device from the initial
character string data stored in D20 and up, when M0 is turned on.
[Ladder Mode]
[Operation]
D0
38
(8)
35
H
D1
00
34
H
D0 character string
5 8 4
D20 character string
Inserted between "O" and "G"
(5)
D20
H
(4)
D21
H
D22
D23
D24
D25
D20 character string
D20
D21
D22
D23
D24
D25
D26
D27
D20 character string
Q00J/
QnH
Q00/
Q01
[List Mode]
Instruction
Step
Before insertion
52
(R)
50
(P)
H
H
47
(G)
4F
(O)
H
H
41
(A)
52
(R)
H
H
41
(A)
4D
(M)
H
H
43
(C)
42
(B)
H
H
00
44
(D)
H
H
P R O G R A M A B C D
After insertion
52
(R)
50
(P)
H
H
35
(5)
4F
(O)
H
H
34
(4)
38
(8)
H
H
52
(R)
47
(G)
H
H
4D
(M)
41
(A)
H
H
42
(B)
41
(A)
H
H
44
(D)
43
(C)
H
H
00
H
P R O 5 8 4 G R A M A B C D
7 APPLICATION INSTRUCTIONS
7.11 Character String Processing Instructions
QnPH
QnPRH
QnU
LCPU
Device
Fourth character from
the left (Insert position)
7
587

Advertisement

Table of Contents
loading

Table of Contents