2-531
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Text String Instructions
2
DELETE
DELETE
The DELETE instruction deletes all or part of a text string.
The DELETE string deletes the number of characters specified by L from the position specified by P
from In. A NULL character is placed at the end of deletion result Out.
Instruction Name FB/FUN Graphic expression ST expression
DELETE Delete String FUN Out:=DELETE(In, L, P);
Variables
Name Meaning I/O Description Valid range Unit Default
In String for
deletion
Input
Text string for deletion Depends on data type.
---
''
L Number of
characters
Number of characters to
delete
0 to 1985
1
P Deletion start
position
Deletion start position 1 to 1985
Out Deletion
result
Output Text string after deletion Depends on data type.
--- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In OK
LOK
POK
Out OK
Function
(@)DELETE
EN ENO
In Out
L
P