F_ConvTcTimeToExtTime

F_ConvTcTimeToExtTime 1:
F_ConvTcTimeToExtTime 2:

Outdated function

This function is outdated. Use the function F_ConvTcTimeToExtTime64 instead.

The function F_ConcTcTimeToExtTime converts the TwinCAT distributed clock system time to an external time.

FUNCTION F_ConvTcTimeToExtTime: T_DCTIME

F_ConvTcTimeToExtTime 3: Inputs

VAR_INPUT
   TcTime            :  T_DCTIME;
   DcToTcTimeOffset  :  T_LARGE_INTEGER;
   DcToExtTimeOffset :  T_LARGE_INTEGER;
END_VAR

Name

Type

Description

TcTime

T_DCTIME

TwinCAT system time in "Distributed Clock" format

DcToTcTime
Offset

T_LARGE_
INTEGER

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

DcToExtTime
Offset

T_LARGE_
INTEGER

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

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.0

PC or CX (x86, x64, ARM)

Tc2_EtherCAT