
Upon the occurrence of an event at the
REQ
input, an instance of this Simple FB type sets the
OUT
value to the result of removing the characters in positions
{P..P+L-1}
from the value of the
IN
input and issues an event at the
CNF
output.
- Following the IEC
61131-3 convention, the index of the leftmost character position is
1
. - If
P = 0
, the result is the same as ifP = 1
. - If
P > N
, whereN
is the number of characters inIN
, the value ofIN
is just copied toOUT
. - If the values of
P
andL
are such that deletion would proceed beyond the end of theIN
string, deletion just proceeds to the end of the string.