EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Deletion of Character String

Mitsubishi Electric MELSEC-Q/L
1084 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
Loading...
588
7 APPLICATION INSTRUCTIONS
7.11 Character String Processing Instructions
Deletion of character string
STRDEL(P)
Processing details
This instruction deletes n2 characters data in the devices specified by (D) starting from the device (insert position) specified
by n1.
Device position where character string data to be deleted: n1=3
Number of characters to be deleted: n2=5
This instruction stores the NULL code (00H) into the device (one word) that positions after the last device that stores the
character string data when the character string data specified by (D) is even, after the characters are deleted.
This instruction stores the NULL code (00H) into the last device (high 8 bits) that stores the character string data when the
character string data specified by (D) is odd, after the characters are deleted.
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 (00H) into the empty device.
QnU(D)(H)CPU, QnUDE(H)CPU: the serial number (first five digits) is "10102" or later
Q00UJCPU, Q00UCPU, Q01UCPU, QnUDVCPU: Supported
(D): Head number (character string) of the devices where character strings to be deleted are stored
n1: Deletion start position (Setting range 1 n1 16383) (BIN 16 bits)
n2: Number of characters to be deleted (Setting range 1 n2 16384-n1) (BIN 16 bits)
Setting
data
Internal device R, ZR J\ U\G Zn Constant
K, H
Others
Bit Word Bit Word
(D) 
n1  
n2 
Basic
High
performance
Process
Redundant
Universal
LCPU
Ver.
STRDEL
STRDELP
STRDEL
STRDELP
n2
n2
D
n1
n1
D
Command
Command
n1th character
to be deleted
The characters of the devices other than
the shifted devices do not change.
Stores the NULL code (00
H
) into
the empty devices after shifting.
+1
41
H
(A)42
H
(B)
48
H
(H)49
H
(I)
4A
H
(J)4B
H
(K)
4C
H
(L)00
H
00
H
00
H
00
H
31
H
(1) 30
H
(0)
33
H
(3) 32
H
(2)
35
H
(5) 34
H
(4)
+2
+3
+4
+5
b15 b8b7 b0
D
D
D
D
D
D
D
+6
D
+7
D
+8
D
+9
D
Shifts the n1+n2th characters and up,
which are stored after the devices whose characters
were deleted, by n2 characters to the right
+1
41
H
(A)42
H
(B)
49
H
(I)
48
H
(H)
4A
H
(J)
4C
H
(L) 4B
H
(K)
00
H
31
H
(1) 30
H
(0)
33
H
(3) 32
H
(2)
35
H
(5) 34
H
(4)
+2
+3
+4
+5
b15 b8b7 b0
D
D
D
D
D
D
+6
D
+7
D
+8
D
+9
D
Deletes n2 characters from
the n1th device and up
+1
41
H
(A)42
H
(B)
43
H
(C)44
H
(D)
45
H
(E)46
H
(F)
48
H
(H) 47
H
(G)
4A
H
(J) 49
H
(I)
4C
H
(L) 4B
H
(K)
00
H
31
H
(1) 30
H
(0)
33
H
(3) 32
H
(2)
35
H
(5) 34
H
(4)
+2
+3
+4
+5
b15 b8b7 b0
D
D
D
D
D
D
+6
D
+7
D
+8
D
+9
D

Table of Contents

Related product manuals