Mitsubishi MELSEC Q Series Programming Manual page 617

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

Advertisement

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 number of characters in the devices specified by
• The value specified by n1 is not within the range. (1 n1 16383)
• The value specified by n1 exceeds the number of characters in the devices specified by
.
D
• The value specified by n2 exceeds the number of characters in the devices starting from
n1th to the last devices position.
• The value specified by n2 is negative.
Program Example
(1) 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.
[Ladder Mode]
[Operation]
D0
D1
D2
D3
D4
D5
D0 character string
52
(R)
50
(P)
D0
H
H
47
(G)
4F
(O)
D1
H
H
41
(A)
52
(R)
D2
H
H
41
(A)
4D
(M)
D3
H
H
43
(C)
42
(B)
D4
H
H
00
44
(D)
D5
H
H
P R O G R A M A B C D
D0 character string
Fourth character
to be deleted
exceeds 16383.
D
[List Mode]
Instruction
Step
52
(R)
50
(P)
D0
H
H
47
(G)
4F
(O)
D1
H
H
41
(A)
52
(R)
D2
H
H
41
(A)
4D
(M)
H
H
D0 character string
43
(C)
42
(B)
H
H
00
44
(D)
H
H
P R O G R A M A B C D
Seven characters to be deleted
STRDEL(P)
(Error code: 4100)
(Error code: 4100)
(Error code: 4100)
(Error code: 4100)
(Error code: 4100)
Device
52
(R)
50
(P)
H
H
44
(D)
4F
(O)
H
H
00
H
P R O D
7-243
1
2
3
4
6
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents