Parameter Declaration Data type Memory area Description
RET_VAL* OUTPUT STRING D, L Result string
*) You can assign only a symbolically defined variable for the parameter.
15.2.6 FC 5 - DI_STRNG - Convert DINT to STRING
The function FC 5 converts a variable in DINT data format to a string. The string is shown
preceded by a sign. If the variable given at the return parameter is too short, no conver-
sion takes place and the BR bit is set to "0".
Parameter Declaration Data type Memory area Description
I INPUT DINT I, Q, M, D, L
Constant
Input value
RET_VAL* OUTPUT STRING D, L Result string
*) You can assign only a symbolically defined variable for the parameter.
15.2.7 FC 6 - DT_DATE - Extract DATE from DT
The function FC 6 extracts the data format DATE from the format DATE_AND_TIME.
DATE value is 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 the parameter.
15.2.8 FC 7 - DT_DAY - Extract day of the week from DT
The function FC 7 extracts the day of the week from the format DATE_AND_TIME. The
function does not report any errors. The day of the week is returned as INTEGER value.
n 1: Sunday
n 2: Monday
n 3: Tuesday
n 4: Wednesday
n 5: Thursday
n 6: Friday
n 7: Saturday
Description
Parameter
Description
Parameter
Description
Parameter
VIPA SPEED7
Standard
IEC > FC 7 - DT_DAY - Extract day of the week from DT
HB00 | OPL_SP7 | Operation list | en | 18-30 807