Strdel, Strdelp; Deletion Of Character String - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

STRDEL, STRDELP

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)
35
H
D1
00
34
H
D0 character string
5 8 4
D20 character string
Inserted between"O"and"G"
7.11.19 STRDEL, STRDELP

Deletion of character string

7.11.19
STRDEL, STRDELP
STRDEL
STRDELP
: Head number (character string) of the devices where character strings to be deleted are stored
D
n1
: Deletion start position (Setting range 1
n2
: Number of characters to be deleted (Setting range 1
Setting
Internal Devices
Data
Bit
Word
––
D
n1
––
n2
––
494
[List Mode]
Step
(5)
D20
52
H
H
D21
47
(4)
H
H
D22
41
H
D23
41
H
D24
43
H
D25
00
D20 character string
P R O G R A M A B C D
D20
52
H
D21
35
H
D22
34
H
D23
52
H
D24
4D
H
42
D25
H
D26
44
H
D27
D20 character string
P R O 5 8 4 G R A M A B C D
Command
Command
n1
16383) (BIN 16 bits)
n2
16384-n1) (BIN 16 bits)
J
\
R, ZR
Bit
Instruction
Device
Befor insertion
(R)
50
(P)
H
(G)
4F
(O)
H
(A)
52
(R)
H
(A)
4D
(M)
H
(C)
42
(B)
H
44
(D)
H
H
Fourth character from the
left (Insert position)
After insertion
(R)
50
(P)
H
(5)
4F
(O)
H
(4)
38
(8)
H
(R)
47
(G)
H
(M)
41
(A)
H
(B)
41
(A)
H
(D)
43
(C)
H
00
H
High
Basic
performance
• QnU(D)(H)CPU, QnUDE(H)CPU: The serial number (first five
digits) is "10102" or later.
STRDEL
D
STRDELP
D
Zn
U
\G
Word
––
Ver.
Process
Redundant
Universal
LCPU
n1
n2
n1
n2
Constants
Other
K, H
––
––
––
––

Advertisement

Table of Contents
loading

Table of Contents