Technical data

Table Of Contents
IEC Functions
System Software for S7-300/400 System and Standard Functions - Volume 2/2
A5E00739858-01
26-7
Description FC6 DT_DATE
The function FC6 extracts the data type format DATE from the format
DATE_AND_TIME. The DATE value must be between the limits DATE#1990-1-1
and DATE#2089-12-31. The function does not report any errors.
Parameter Declaration Data Type Memory Area Description
IN INPUT DATE_AND_TIME D, L Input variable in format DT
RET_VAL OUTPUT DATE I, Q, M, D, L Return value in format DATE
You can assign only a symbolically defined variable for this input.
Description FC7 DT_DAY
The function FC7 extracts the day of the week from the format DATE_AND_TIME.
The day of the week is available in the data type format INTEGER:
1 = Sunday
2 = Monday
3 = Tuesday
4 = Wednesday
5 = Thursday
6 = Friday
7 = Saturday
The function does not report any errors.
Parameter Declaration Data Type Memory Area Description
IN INPUT DATE_AND_TIME D, L Input variable in format DT
RET_VAL OUTPUT INT I, Q, M, D, L Return value in format INT
You can assign only a symbolically defined variable for this input.