Technical data

Table Of Contents
IEC Functions
System Software for S7-300/400 System and Standard Functions - Volume 2/2
A5E00739858-01
26-11
Description FC14 GT_DT
The function FC14 compares the contents of two variables in the data type format
DATE_AND_TIME to find out if one is greater than 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 (more recent) than 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 DT
DT2 INPUT DATE_AND_TIME D, L Input variable in format DT
RET_VAL OUTPUT BOOL I, Q, M, D, L Result of comparison
You can assign only a symbolically defined variable for the input parameters.
Description FC18 LE_DT
The function FC18 compares the contents of two variables in the data type format
DATE_AND_TIME to find out if one is smaller than 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 smaller (less recent) than the time at
parameter DT2 or if both times 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 DT
DT2 INPUT DATE_AND_TIME D, L Input variable in format DT
RET_VAL OUTPUT BOOL I, Q, M, D, L Result of comparison
You can assign only a symbolically defined variable for the input parameters.