GETTASKTIME
This function supplies the task target start time. The returned time is the target time of the task where the function block instance is called. The time stamp is a 64 bit integer value, with a precision of 100ns. Amongst other uses, it can be utilised for timing tasks or time measurements. One unit is equivalent to 100ns and epresents number of 100ns since 1 January 1601.
VAR_INPUT
(*none*)
VAR_OUTPUT
VAR_OUTPUT
timeLoDW : UDINT;
timeHiDW : UDINT;
END_VAR
timeLoDW : Contains the low-value 4 bytes of the time stamp.
timeHiDW : Contains the high-value 4 bytes of the time stamp.
Requirements
Development environment |
Target system type |
PLC libraries to include |
---|---|---|
TwinCAT v2.11.0 Build >= 1524 |
PC or CX (x86, ARM) |
TcSystem.Lib |