Deletion Of Character String - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Deletion of character string

STRDEL(P)
High
Basic
Process
performance
• QnU(D)(H)CPU, QnUDE(H)CPU: the serial number (first five digits) is "10102" or later
• Q00UJCPU, Q00UCPU, Q01UCPU, QnUDVCPU: Supported
STRDEL
STRDELP
(D): Head number (character string) of the devices where character strings to be deleted are stored
Deletion start position (Setting range 1  n1  16383) (BIN 16 bits)
n1:
Number of characters to be deleted (Setting range 1  n2  16384-n1) (BIN 16 bits)
n2:
Setting
Internal device
data
Bit
(D)
n1
n2
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
b15
b8b7
D
42
(B)
H
D
+1
44
(D)
H
D
+2
46
(F)
H
D
+3
48
(H)
H
D
+4
4A
(J)
H
D
+5
4C
(L)
H
D
+6
00
H
D
+7
31
(1)
H
D
+8
33
(3)
H
D
+9
35
(5)
H
• 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.
7 APPLICATION INSTRUCTIONS
588
7.11 Character String Processing Instructions
Ver.
Redundant
Universal
LCPU
Command
Command
R, ZR
Word
b0
41
(A)
H
Deletes n2 characters from
43
(C)
the n1th device and up
H
45
(E)
H
47
(G)
H
49
(I)
H
4B
(K)
H
30
(0)
H
32
(2)
H
n1th character
34
(4)
H
to be deleted
STRDEL
STRDELP
J\
Bit
Word
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
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
n1
n2
D
n1
n2
D
U\G
Zn
Constant
K, H
Stores the NULL code (00
the empty devices after shifting.
b0
b15
D
42
(B)
H
D
+1
49
(I)
H
D
+2
4B
(K)
H
D
+3
00
H
D
+4
D
+5
D
+6
D
+7
31
(1)
H
D
+8
33
(3)
H
D
+9
35
(5)
H
D
The characters of the devices other than
the shifted devices do not change.
Others
) into
H
b8b7
b0
41
(A)
H
48
(H)
H
4A
(J)
H
4C
(L)
H
00
H
00
H
00
H
30
(0)
H
32
(2)
H
34
(4)
H

Advertisement

Table of Contents
loading

Table of Contents