F_GetCurExtTime64

F_GetCurExtTime64 1:

The function returns the external time in TwinCAT distributed clock system time format (T_DCTIME64).

FUNCTION F_GetCurExtTime64: T_DCTIME64

F_GetCurExtTime64 2: Inputs

VAR_INPUT
   DcToExtTimeOffset : ULINT;
   DcToTcTimeOffset  : ULINT;
END_VAR

Name

Type

Description

DcToExtTime
Offset

ULINT

Time offset between the TwinCAT "Distributed Clock" system time and an external time

DcToTcTime
Offset  

ULINT

Time offset between the TwinCAT "Distributed Clock" system time and the TwinCAT system time

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.0

PC or CX (x86, x64, ARM)

Tc2_EtherCAT