Technical data

Table Of Contents
IEC Functions
System Software for S7-300/400 System and Standard Functions - Volume 2/2
A5E00739858-01
26-19
26.10 Editing STRING Variables
Description FC2 CONCAT
The function FC2 concatenates two STRING variables together to form one string.
If the resulting string is longer than the variable given at the output parameter, the
result string is limited to the maximum set length and the binary result (BR) bit of
the status word set to “0".
Parameter Declaration Data Type Memory Area Description
IN1 INPUT STRING D, L Input variable in format STRING
IN2 INPUT STRING D, L Input variable in format STRING
RET_VAL OUTPUT STRING D, L Combined string
You can assign only a symbolically defined variable for the parameters.
Description FC4 DELETE
The function FC4 deletes a number of characters (L) from the character at position
P (inclusive) in a string. If L and/or P are equal to zero or if P is greater than the
current length of the input string, the input string is returned. If the sum of L and P
is greater than the input string, the string is deleted up to the end. If L and/or P are
negative, a blank string is returned and the binary result (BR) bit of the status word
is set to “0".
Parameter Declaration Data Type Memory Area Description
IN INPUT STRING D, L STRING variable to be deleted in
L INPUT INT I, Q, M, D, L,
Const.
Number of characters to be
deleted
P INPUT INT I, Q, M, D, L,
Const.
Position of first character to be
deleted
RET_VAL OUTPUT STRING D, L Result string
You can assign only a symbolically defined variable for the input parameter IN and
the output parameter.