Converting from the variable type TIME or TIME_OF_DAY to a different type:
The time will be stored internally in a DWORD in milliseconds (beginning with 12:00 A.M. for the TIME_OF_DAY variable). This value will then be converted.
When you perform a type conversion from a larger to a smaller type, you risk losing some information.
For the STRING type variable, the result is a time constant.
Examples in ST:
(* Result is T#12ms *) #str :=TIME_TO_STRING(T#12ms); (* Result is 300000 *) dw:=TIME_TO_DWORD(T#5m); (* Result is 12 *) si:=TOD_TO_SINT(TOD#00:00:00.012);
Examples in FBD:


