F_GetSystemTime

This function can be used to read the operating system timestamp. The timestamp is a 64-bit integer value, with an accuracy of 100 ns, which is updated with every call of the PLC. Among other things, it can be used for timing tasks or time measurements. One unit corresponds to 100 ns. The time represents the number of 100 ns intervals since January 1, 1601 (UTC).
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) |