7 APPLICATION INSTRUCTIONS
7.11 Character String Processing Instructions
589
7
• 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 following program deletes the fourth to the seventh characters in the character string data stored in the devices D0 and
up, when M0 is turned on.
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100 The number of characters in the devices specified by (D) exceeds 16383.
The value specified by n1 is not within the range. (1n116383)
The value specified by n1 exceeds the number of characters in the devices
specified by (D).
The value specified in n2 exceeds the number of characters between n1 and
the last character in (D).
The value specified in n2 is negative.
[Ladder Mode] [List Mode]
[Operation]
D0 50
H
(P)52
H
(R)
4F
H
(O)47
H
(G)
52
H
(R)41
H
(A)
4D
H
(M)41
H
(A)
42
H
(B)43
H
(C)
00
H
44
H
(D)
D1
D2
D3
D4
D5
Fourth character
to be deleted
D0 character string D0 character string
D0 character string
P R O G R A M A B C D
D0 50
H
(P)52
H
(R)
4F
H
(O)47
H
(G)
52
H
(R)41
H
(A)
4D
H
(M)41
H
(A)
42
H
(B)43
H
(C)
00
H
44
H
(D)
D1
D2
D3
D4
D5
D0 50
H
(P)52
H
(R)
4F
H
(O)
00
H
44
H
(D)D1
D2
P R O D
Seven characters to be deleted
P R O G R A M A B C D