Technical data

Table Of Contents
IEC Functions
System Software for S7-300/400 System and Standard Functions - Volume 2/2
26-6
A5E00739858-01
26.4 Time-of-Day Functions
Description FC1 AD_DT_TM
The function FC1 adds a duration (format TIME) to a time (format DT) and provides
a new time (format DT) as the result. The time (parameter T) must be in the range
from DT#1990-01-01-00:00:00.000 to DT#2089-12-31-23:59:59.999. The function
does not run an input check. If the result of the addition is not within the valid
range, the result is limited to the corresponding value and the binary result (BR) bit
of the status word is set to “0".
Parameter Declaration Data Type Memory Area Description
T INPUT DATE_AND_TIME D, L Time in format DT
D INPUT TIME I, Q, M, D, L, Const. Duration in format TIME
RET_VAL OUTPUT DATE_AND_TIME D, L Sum in format DT
You can assign only a symbolically defined variable for the input parameter T and
the output parameter.
Description FC3 D_TOD_DT
The function FC3 combines the data formats DATE and TIME_OF_DAY (TOD)
together and converts these formats to the data type format DATE_AND_TIME
(DT). The input value IN1 must be between the limits DATE#1990-01-01 and
DATE#2089-12-31. (This value is not checked.) The function does not report any
errors.
Parameter Declaration Data Type Memory Area Description
IN1 INPUT DATE I, Q, M, D, L, Const. Input variable in format DATE
IN2 INPUT TIME_OF_DAY I, Q, M, D, L, Const. Input variable in format TOD
RET_VAL OUTPUT DATE_AND_TIME D, L Return value in format DT
You can assign only a symbolically defined variable for the return value.