SYSTEMTIME_TO_TOD

This function can be used to extract the 'Time of Day' from the Windows system time structure.
FUNCTION SYSTEMTIME_TO_TOD : TOD
 Inputs
VAR_INPUT
    systemTime : TIMESTRUCT;
END_VARName  | Type  | Description  | 
|---|---|---|
systemTime  | The structure with the Windows system time to be converted  | 
Return parameter  | Description  | 
|---|---|
0  | Error, wrong SystemTime parameter value.  | 
> 0  | No error, the time of day is displayed.  | 
Requirements
Development environment  | Target platform  | PLC libraries to be integrated (category group)  | 
|---|---|---|
TwinCAT v3.1.4024.0  | PC or CX (x86, x64, Arm®)  | Tc2_Utilities (System) >= 3.7.3.0  |