Technical data

Table Of Contents
IEC Functions
System Software for S7-300/400 System and Standard Functions - Volume 2/2
26-20
A5E00739858-01
Description FC11 FIND
The function FC11 provides the position of the second string (IN2) within the first
string (IN1). The search starts on the left; the first occurrence of the string is
reported. If the second string is not found in the first, zero is returned. The function
does not report any errors.
Parameter Declaration Data Type Memory Area Description
IN1 INPUT STRING D, L STRING variable to be searched
in
IN2 INPUT STRING D, L STRING variable to be found
RET_VAL OUTPUT INT I, Q, M, D, L Position of the string found
You can assign only a symbolically defined variable for the input parameters IN1
and IN2.
Description FC17 INSERT
The function FC17 inserts a string at parameter IN2 into the string at parameter IN1
after the character at position P. If P equals zero, the second string is inserted
before the first string. If P is greater than the current length of the first string, the
second string is appended to the first, If P is negative, a blank string is output and
the binary result (BR) bit of the status word is set to “0". The binary result bit is also
set to “0" if the resulting string is longer than the variable given at the output
parameter; in this case the result string is limited to the maximum set length.
Parameter Declaration Data Type Memory Area Description
IN1 INPUT STRING D, L STRING variable to be inserted
into
IN2 INPUT STRING D, L STRING variable to be inserted
P INPUT INT I, Q, M, D, L,
Const.
Insert position
RET_VAL OUTPUT STRING D, L Result string
You can assign only a symbolically defined variable for the input parameters IN1
and IN2 and the output parameter.