Chapter 8 Logic Instructions
8.14.2 DELETE
FB/FC
Explanation
FC
DELETE deletes the specified-length string from the specified position from the
string variable or constant.
DVP15MC11T
Parameters
Meaning
Description Valid range
In String for deletion Input String for deletion
Depends on the data type of the
variable that the input parameter is
L
characters to
Input
Number of
characters to delete
0~ maximum length of the string
P
Input
1~ maximum length of the string
Out Deletion result Output String after deletion
Depends on the data type of the
variable that the output parameter is
Boolean
Bit string Integer
Real
number
Time, date
String
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In
●
L
●
P
●
Out
●
Note:
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data type.
8-189