FUNCTION_BLOCK FB_REPLACE

Upon the occurrence of an event at the REQ input, an instance of this FB type sets the OUT value to the result of replacing the characters in positions {P..P+L-1} of IN1 with the value of IN2, and then issues an event at the CNF output.