1. TS5065 | TwinCAT Motion Control XFC
  2. PLC-API
  3. TcMC2_XFC
  4. XFC_GetCurDcTaskTime

XFC_GetCurDcTaskTime

XFC_GetCurDcTaskTime 1:

The function XFC_GetCurDcTaskTime determines the start time of the current PLC cycle.

The function optimizes the calls of the system function F_GetCurDcTaskTime by answering several queries within a PLC task cycle with the same time, without calling the system function repeatedly.

Return value

FUNCTION XFCF_GetCurDcTaskTime : T_DCTIME 

Return value of the function

Complete 64-bit distributed clock system time. Start time of the current PLC cycle (cycle of the task that calls this function.)