Delete_E - Mitsubishi Electric MELSEC FX Series Structured Programming Manual

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
5.8.4
DELETE(_E)
Outline
This function deletes a character string.
1. Format
Function name
DELETE

DELETE_E

*1.
Output variable
2. Set data
Variable
EN
_IN (
Input
variable
_L
_P (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
1) This function deletes specified number of characters from an arbitrary position of a character string stored
in devices specified in
in
.
d
The value specified in
The value specified in
Example: When "5" is specified in
2) A character string (data) stored in devices specified in
in units of byte in the range starting from the specified device.
190
FX
3U(C)
Structured ladder
DELETE
Label 1
_IN
D10
_L
D20
_P
X000
DELETE_E
EN
Label 1
_IN
D10
_L
D20
_P
Execution condition
)
Head word device which stores a character string to get deletion
s
Number of characters to be deleted
(
)
n1
Head position to get deletion
)
n2
Execution status
Head word device which will store a character string remaining after
(
)
d
deletion
, and outputs the character string remaining after deletion to devices specified
s
specifies the number of characters to be deleted.
n1
specifies the position from which specified number of characters are deleted.
n2
"ABCDEF12345"
High-order byte Low-order byte
1st word
42H(B)
41H(A)
44H(D)
43H(C)
2nd word
3rd word
46H(F)
45H(E)
4th word
32H(2)
31H(1)
5th word
34H(4)
33H(3)
6th word
00H
35H(5)
FX
3G
FX
2N(C)
Expression in each language
DELETE(_IN,_L ,_P);
Example:
*1
Label 2
Label 2:=
DELETE(Label 1,D10,D20);
DELETE_E(EN,_IN,_L ,_P,
Output label);
ENO
Example:
DELETE_E(X000, Label 1,
*1
Label 2
D10, D20, Label 2);
Description
and
n1
n2
Deletion start
position
n2
= 5th character
Number of characters
to be deleted
n1
s
5.8 Standard Character String Functions
FX
1N(C)
FX
1S
FX
U
/FX
2C
ST
Bit
String
Word [signed]
Word [signed]
Bit
String
"ABCD45"
High-order byte Low-order byte
42H(B)
41H(A)
44H(D)
43H(C)
35H(5)
34H(4)
0000H
= 5
indicates the data until "00H" is detected first
FX
0N
FX
0(S)
Data type
1st word
2nd word
3rd word
4th word

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents