EasyManuals Logo

Mitsubishi MELSEC iQ-F FX5 series User Manual

Mitsubishi MELSEC iQ-F FX5 series
888 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
Page #404 background imageLoading...
Page #404 background image
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) 
*1

(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
b7b8 b15 b0b7b8 b15 b0b7b8
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.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC iQ-F FX5 series and is the answer not in the manual?

Mitsubishi MELSEC iQ-F FX5 series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC iQ-F FX5 series
CategoryController
LanguageEnglish

Related product manuals