Parameter Declaration Data type Memory area Description
IN1 INPUT ANY I, Q, M, D, L 1. Input value
IN2 INPUT ANY I, Q, M, D, L 2. Input value
IN3 INPUT ANY I, Q, M, D, L 3. Input value
RET_VAL OUTPUT ANY I, Q, M, D, L Smallest of the input values
The admitted data types INT, DINT and REAL must be entered in the
ANY pointer. Such parameters as "MD20" are also admitted, but you
must define the corresponding data type of "MD20" in "Symbol".
CALL FC 27
IN1 := P#M 10.0 DINT 1
IN2 := MD20
IN3 := P#DB1.DBX 0.0 DINT 1
RET_VAL := P#M 40.0 DINT 1
= M 0.0
15.2.29 FC 28 - NE_DT - Compare DT for unequal
The function FC 28 compares the contents of two variables in the format
DATE_AND_TIME to determine if they are unequal and outputs the result of the compar-
ison as a return value. The return value has the signal state "1" if the time at parameter
DT1 is unequal the time at parameter DT2. 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 parameter.
15.2.30 FC 29 - NE_STRNG - Compare STRING for unequal
The function FC 29 compares the contents of two variables in the format STRING to
determine if they are unequal 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 unequal to the
string at parameter S2. The function does not report any errors.
Example in STL:
Description
Parameter
Description
VIPA SPEED7
Standard
IEC > FC 29 - NE_STRNG - Compare STRING for unequal
HB00 | OPL_SP7 | Operation list | en | 18-30 816