EasyManuals Logo

Mitsubishi MELSEC Q Series Programming Manual

Mitsubishi MELSEC Q Series
1296 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #617 background imageLoading...
Page #617 background image
7-243
STRDEL(P)
1
2
3
4
6
6
7
8
7.11 Character string processing instructions
7.11.19 Deletion of character string (STRDEL(P))
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 exceeds 16383.
(Error code: 4100)
• The value specified by n1 is not within the range. (1 n1 16383) (Error code: 4100)
• The value specified by n1 exceeds the number of characters in the devices specified by
. (Error code: 4100)
• The value specified by n2 exceeds the number of characters in the devices starting from
n1th to the last devices position. (Error code: 4100)
• The value specified by n2 is negative. (Error code: 4100)
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] [List Mode]
[Operation]
D
D
Step
Instruction
Device
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

Table of Contents

Other manuals for Mitsubishi MELSEC Q Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC Q Series and is the answer not in the manual?

Mitsubishi MELSEC Q Series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC Q Series
CategoryController
LanguageEnglish

Related product manuals