GETTASKTIME
This function block is replaced by the newer function F_GetTaskTime(), which only needs one return value, not two. |
This function block can be used to read the start time of the task (time at which the task should start). The function block always returns the start time of the task in which the function block instance was called. The time stamp is a 64-bit integer value with an accuracy of 100 ns. It can be used for timing tasks or time measurements, among other things. One unit corresponds to 100 ns. The time represents the number of 100 ns intervals since 1 January 1601.
See: F_GetTaskTime
Inputs
VAR_INPUT
(*none*)
END_VAR
Outputs
VAR_OUTPUT
timeLoDW : UDINT;
timeHiDW : UDINT;
END_VAR
Name | Type | Beschreibung |
---|---|---|
timeLoDW | UDINT | Contains the low-value 4 bytes of the time stamp. |
timeHiDW | UDINT | Contains the high-value 4 bytes of the time stamp. |
Requirements
Development environment |
Target system type |
PLC libraries to include (Category group) |
---|---|---|
TwinCAT v3.1.0 |
PC or CX (x86, x64, ARM) |
Tc2_System (System) |