VA Motion Controller Programming Manual
220
Note : IL, ST language programming needs to insert variables IN, L, P and OUT or use
constants in the variable worksheet of the current POU
数据 Data type processed by DELETE instruction
Enter a string or use a constant string
The number of characters to be deleted, L can be 0, 1, 2...
In the input string, the position of the first character to be
deleted,
P
must be an integer greater than
0 ;
the first
character position in the string is
1
, and the following
characters are
2, 3...
The output input string is not affected by the deletion. In fact,
this instructioNSelects several strings in the input string to
form a new string. The output does not allow the same name
as the input.
Funtion and Action examples
Delete the third character "C" in the
string "PLC"
When the contact
C 191
contact is
O N
, the
execution of the instruction; delete
address
V 385
string in the third character, in an
amount of
. 1
a; where
L
is the number of
characters to be deleted,
P
is the first to be
deleted Several characters
Execution result:
P LC----PL