F_GetSystemTime
This function can be used to read the operating system time stamp. The time stamp is a 64 bit integer value, with a precision of 100ns, which is updated with every call of the PLC. Amongst other uses, it can be utilized for timing tasks or time measurements. One unit corresponds to 100 ns. The time represents the number of 100 ns intervals since 1 January 1601.
Outputs
VAR_OUTPUT
F_GetSystemTime : ULINT;
END_VAR
The return value contains the timestamp.
Requirements
Development environment | Target platform | PLC libraries to be integrated (category group) |
---|---|---|
TwinCAT v3.1 | PC or CX (x86, x64, ARM) | Tc2_System (system) |