Deletion Of Character String (Strdel(P)) - Mitsubishi MELSEC Q Series Programming Manual

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

Advertisement

STRDEL(P)
7.11.19

Deletion of character string (STRDEL(P))

STRDEL(P)
STRDEL
STRDELP
Setting
Data
D
n1
n2
Function
(1) This instruction deletes n2 characters data in the devices specified by
device (insert position) specified by n1.
Device position where character string data to be deleted: n1
Number of characters to be deleted: n2
b15
D
D
+1
D
+2
D
+3
D
+4
D
+5
D
+6
D
+7
D
+8
D
+9
(2) This instruction stores the NULL code (00
the last device that stores the character string data when the character string data specified
by
D
(3) This instruction stores the NULL code (00
character string data when the character string data specified by
characters are deleted.
(4) This instruction shifts the characters stored in the devices that position after the deleted
devices by n2 characters to the right, and then stores the NULL code (00
device.
7-242
Command
Command
: 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
Internal Devices
R, ZR
Bit
Word
––
––
––
b8b7
b0
42
(B)
41
(A)
H
H
Deletes n2 characters from
44
(D)
43
(C)
H
H
the n1th device and up
46
(F)
45
(E)
H
H
48
(H)
47
(G)
H
H
4A
(J)
49
(I)
H
H
4C
(L)
4B
(K)
H
H
00
H
31
(1)
30
(0)
H
H
33
(3)
32
(2)
H
H
n1th character
35
(5)
34
(4)
H
H
to be deleted
is even, after the characters are deleted.
High
Basic
performance
QnU(D)(H)CPU: The serial number (first five digits) is "10102" or later.
QnUDE(H)CPU: The serial number (first five digits) is "10102" or later.
STRDEL
STRDELP
n1
16383) (BIN 16 bits)
n2
J
\
U
\G
Bit
Word
––
5
Shifts the n1+n2th characters and up,
which are stored after the devices whose characters
were deleted, by n2 characters to the right
b15
b8b7
b0
D
42
(B)
41
(A)
H
H
D
+1
D
+2
D
+3
48
(H)
H
D
+4
4A
(J)
49
(I)
H
H
D
+5
4C
(L)
4B
(K)
H
H
D
+6
00
H
D
+7
31
(1)
30
(0)
H
H
D
+8
33
(3)
32
(2)
H
H
D
+9
35
(5)
34
(4)
H
H
) into the device (one word) that positions after
H
) into the last device (high 8 bits) that stores the
H
Ver.
Process
Redundant
Universal
n1
n2
D
n1
n2
D
16384-n1) (BIN 16 bits)
Constants
Zn
Other
K, H
––
starting from the
D
3
Stores the NULL code (00
) into
H
the empty devices after shifting.
b15
b8b7
b0
D
42
(B)
41
(A)
H
H
D
+1
49
(I)
48
(H)
H
H
D
+2
4B
(K)
4A
(J)
H
H
D
+3
00
4C
(L)
H
H
D
+4
00
H
D
+5
00
H
D
+6
00
H
D
+7
31
(1)
30
(0)
H
H
D
+8
33
(3)
32
(2)
H
H
D
+9
35
(5)
34
(4)
H
H
D
The characters of the devices other than
the shifted devices do not change.
is odd, after the
D
) into the empty
H
LCPU
––
––
––

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents