F_ConvExtTimeToDcTime

F_ConvExtTimeToDcTime 1:
F_ConvExtTimeToDcTime 2:

Outdated function

This function is outdated. Use the function F_ConvExtTimeToDcTime64 instead.

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

FUNCTION F_ConvExtTimeToDcTime: T_DCTIME

F_ConvExtTimeToDcTime 3: Inputs

VAR_INPUT
   ExtTime           : T_DCTIME;
   DcToExtTimeOffset : T_LARGE_INTEGER;
END_VAR

Name

Type

Description

ExtTime

T_DCTIME

External time in TwinCAT "Distributed Clock" system time format

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