Interface ITcTask

Query of the timestamp and task-specific information of a TwinCAT task.

Syntax


TCOM_DECL_INTERFACE("02000002-0000-0000-e000-000000000064", ITcTask)
struct __declspec(novtable) ITcTask : public ITcUnknown

Required include: TcRtInterfaces.h

Interface ITcTask 1: Methods

Name

Description

GetCycleCounter

Query number of task cycles since task start.

GetCycleTime

Query of task cycle time in nanoseconds, i.e. time between "begin of task" and next "begin of task".

GetPriority

Querying the task priority.

GetCurrentSysTime

Querying the time when the task cycle starts at intervals of 100 nanoseconds since January 1, 1601 (UTC).

GetCurrentDcTime

Querying the distributed clock time when the task cycle starts in nanoseconds since January 1, 2000.

GetCurPentiumTime

Querying the time when the method is called at intervals of 100 nanoseconds since January 1, 1601 (UTC).

Comments

With the ITcTask interface the time can be measured in real-time context.


Interface ITcTask 2: