FUNCTION_BLOCK FB_LEFT

Upon the occurrence of an event at the REQ input, an instance of this FB type sets the OUT value to the leftmost L characters of the value of the IN input, and then issues an event at the CNF output.

If L ≥ N , where N is the number of characters in IN , the result is the same as setting the value of OUT to the value of IN.