Parameter Declaration Data type Memory area Description
RET_VAL OUTPUT BOOL I, Q, M, D, L Comparison result
*) You can assign only a symbolically defined variable for the parameter.
15.2.12 FC 11 - FIND - Find in a STRING variable
The function FC 11 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 parameter.
15.2.13 FC 12 - GE_DT - Compare DT for greater than or equal
The function FC 12 compares the contents of two variables in the data format
DATE_AND_TIME to determine if one is greater or equal to the other and outputs the
result of the comparison as a return value. The return value has the signal state "1" if the
time at parameter DT1 is greater (younger) than the time at parameter DT2 or if both
instants of time are the same. The function does not report any errors.
Parameter Declaration Data type Memory area Description
DT1* INPUT DATE_AND_TIME D, L Input variable in format TD
DT2* INPUT DATE_AND_TIME D, L Input variable in format TD
RET_VAL OUTPUT BOOL I, Q, M, D, L Comparison result
*) You can assign only a symbolically defined variable for the parameters.
15.2.14 FC 13 - GE_STRNG - Compare STRING for greater than or equal
The function FC 13 compares the contents of two variables in the data format STRING to
determine if one is greater or equal to the other and outputs the result of the comparison
as a return value. The return value has the signal state "1" if the string at parameter S1 is
greater than or equal to the string at parameter S2. The characters are compared by their
ASCII code (e.g. 'a' is greater than 'A'), starting from the left. The first character to be dif-
ferent decides the result of the comparison. If the left part of the longer string is identical
to the shorter string, the longer string is considered as greater. The function does not
report any errors.
Description
Parameter
Description
Parameter
Description
VIPA SPEED7
Standard
IEC > FC 13 - GE_STRNG - Compare STRING for greater than or equal
HB00 | OPL_SP7 | Operation list | en | 18-30 809