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, whereNis the number of characters inIN, the value ofINis just copied toOUT. - If the values of
PandLare such that deletion would proceed beyond the end of theINstring, deletion just proceeds to the end of the string.