T_DCTIME64

The data type T_DCTIME64 represents the distributed clock system time (abbreviated as DC time) as a linear 64-bit integer value. The time is expressed in nanoseconds since 1/1/2000 UTC. The smallest unit is a nanosecond.

TYPE T_DCTIME64 : ULINT;
END_TYPE

Useful distributed clock system time constants

Description

EC_DCTIME_DELTA_OFFSET64

Number of 100-nanosecond ticks between 1601-01-01 and 2000-01-01.
This is the difference between the "Windows File Time" and the "Distributed Clock System Time".

EC_DCTIME_DATEDELTA_OFFSET

Number of days that have passed between the year zero and January 1, 2000

EC_DCTIME_TICKSPERMSEC64

Number of distributed clock system time nanoseconds per millisecond

EC_DCTIME_TICKSPERSEC64

Number of distributed clock system time nanoseconds per second

EC_DCTIME_TICKSPERDAY64

Number of distributed clock system time nanoseconds per day

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.0

PC or CX (x86, x64, ARM)

Tc2_EtherCAT