Mitsubishi MELSEC Q Series Programming Manual page 615

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
(
+
) after the insertion exceeds 16383 characters.
S
D
• The value specified by n is not within the specified range. (1 n 16383)
• The value specified by n exceeds the number of the devices specified by
• The devices, that store character strings, specified by
devices specified by
• The range of the devices specified by (
inserted exceeds the specified device range.
• The NULL code (00
specified by
• The range of the devices specified by (
inserted overlaps with the range of the devices specified by
string data.
Program Example
(1) 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)
H
D1
00
H
D0 character string
D20 character string
Inserted between"O"and"G"
.
D
) does not exist within the specified device range after the device
H
or
.
S
D
35
(5)
D20
H
D21
34
(4)
H
D22
5 8 4
D23
D24
D25
D20 character string
D20
D21
D22
D23
D24
D25
D26
D27
D20 character string
,
, or the devices specified by
S
D
overlaps with even one of the
S
+
) in which character strings data have been
S
D
+
) in which character strings data have been
S
D
that store the character
S
[List Mode]
Instruction
Step
Befor 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
STRINS(P)
(Error code: 4100)
(Error code: 4100)
plus one.
D
(Error code: 4100)
(Error code: 4101)
(Error code: 4101)
(Error code: 4101)
(Error code: 4101)
Device
Fourth character from the
left (Insert position)
7-241
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