
402
7 APPLICATION INSTRUCTION
7.6 Character string operation instruction
Deleting character string
STRDEL(P)
These instructions delete (n) characters starting from the (s)th character (deletion start position) from the start of the character
string data specified by (d).
Setting data
■
Descriptions, ranges, and data types
■
Applicable devices
*1
T, ST, C cannot be used.
Processing details
• These instructions delete (n) characters starting from the (s)th character (deletion start position) from the start of the
character string data specified by (d).
• When the number of characters after deletion, (d), is even, a NULL code (00H) is stored in the device after the last device
storing the character string.
• When the number of characters after deletion, (d), is odd, a NULL code (00H) is stored in the last device (upper 8 bits) of
the character string.
• The character string after the deleted character string is shifted by (n) characters, a NULL code (00H) is stored in vacant
devices.
Ladder diagram
Structured text
ENO:=STRDEL(EN,s,n,d);
ENO:=STRDELP(EN,s,n,d);
Operand
Description
Range
Data type
Data type (label)
(d)
Head device number storing a character string having characters
to be deleted
Character string
Character string
(s)
Deletion start position
1 to 16383
16-bit unsigned binary
ANY16
(n)
Number of characters to be deleted
0 to 16384 - (n1)
16-bit unsigned binary
ANY16
Operand
Bit
Word
Double word
Indirect
specification
Constant
Others
X, Y, M, L,
SM, F, B, SB
U
\G
T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U
\G
Z
LC
LZ
K, H
E
$
(d)
(s)
(n)
(d)
(s)
(n)
41H (A)
42H (B)
48H (H)
49H (I)
4AH (J)
4BH (K)
4CH (L)
00H
0000H
0000H
0000H
31H (1)
30H (0)
33H (3)
32H (2)
35H (5)
34H (4)
41H (A)
42H (B)
49H (I)
48H (H)
4AH (J)
4CH (L)
4BH (K)
0000H
31H (1)
30H (0)
33H (3)
32H (2)
35H (5)
34H (4)
41H (A)
42H (B)
43H (C)
44H (D)
45H (E)
46H (F)
48H (H)
47H (G)
4AH (J)
49H (I)
4CH (L)
4BH (K)
0000H
31H (1)
30H (0)
33H (3)
32H (2)
35H (5)
34H (4)
(d)
(d)+1
(d)+2
(d)+3
(d)+4
(d)+5
(d)+6
(d)+7
(d)+8
(d)+9
(d)
(d)+1
(d)+2
(d)+3
(d)+4
(d)+5
(d)+6
(d)+7
(d)+8
(d)+9
(d)
(d)+1
(d)+2
(d)+3
(d)+4
(d)+5
(d)+6
(d)+7
(d)+8
(d)+9
b15
b0
b7
b8
b15
b0
b7
b8
b15
b0
b7
b8
3
(s)
Number of
characters to be
deleted (n): 5
Deletion start
position (s):
3rd character
The character string data of the deleted character
and later is shifted rightward by 5 characters.
After shifting, "00H" is stored
in the vacant device.
The character string data of (d)+7
and later does not change.
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......