-

LEFT_WSTRING

Type Function
Description Extracts the leftmost characters of a string applied to IN. L specifies the number of characters to be extracted from IN.
Notes
  • When the string output is longer than 80 characters and the FU is directly connected to another FU, temporary string variables of size 80 are used. Calculation/usage will fail. If the result of the operation is longer than 80 characters, then a 'String too short' message will be logged and the output is set to an empty string or the last valid value is kept, respectively. Use an intermediate local variable in-between.
  • Problem for calculation of position and length: Characters in WSTRING can have a size of 2 bytes or 4 bytes. Due to this, there may be calculation problems on 4-byte containing character STRINGs with 2-byte oriented position and length.
Parameters Inputs

IN

L

Output

OUT
Error behavior Error behavior
Additional information EN/ENO behavior