F_GetTaskTime

F_GetTaskTime 1:

This function can be used to read the start time of the task (time at which the task should start). The function always returns the start time of the task in which the function 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.

F_GetTaskTime 2: Outputs

VAR_OUTPUT
    F_GetTaskTime : 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)
>= 3.4.17.0