7 APPLICATION INSTRUCTIONS
7.11 Character String Processing Instructions
587
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 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.
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
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. (1n16383)
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.
[Ladder Mode] [List Mode]
[Operation]
P R O 5 8 4 G R A M A B C D
50
H
(P)52
H
(R)
4F
H
(O)35
H
(5)
38
H
(8)34
H
(4)
47
H
(G)52
H
(R)
42
H
(B)
44
H
(D)
41
H
(A)
43
4D
H
(M) 41
H
(A)
H
(C)
00
H
D0 character string
D0
35
H
(5)38
H
(8)
D1
34
H
(4)
00
H
D20 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)
D21
D22
D23
D24
D25
D20
D21
D22
D23
D24
D25
D26
D27
5 8 4
D20 character string
Inserted between "O" and "G"
Fourth character from
the left (Insert position)
D20 character string
Before insertion
After insertion
P R O G R A M A B C D
D20 character string