T_DCTIME
Outdated data type This data type is outdated. Use the data type T_DCTIME64 instead. |
The data type T_DCTIME
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 data type is represented as two 32-bit DWORD variables, so that it can easily be processed in the PLC. Operations (addition and subtraction of times) can be executed with ui64 functions from the Tc2_Utilities library.
TYPE T_DCTIME : T_ULARGE_INTEGER;
END_TYPE
Useful distributed clock system time constants | Description |
---|---|
EC_DCTIME_DELTA_OFFSET | Number of 100-nanosecond ticks between 01.01.1601 and 01.01.2000. |
EC_DCTIME_DATEDELTA_OFFSET | Number of days that have passed between the year zero and 1 January 2000 |
EC_DCTIME_TICKSPERMSEC | Number of distributed clock system time nanoseconds per millisecond |
EC_DCTIME_TICKSPERSEC | Number of distributed clock system time nanoseconds per second |
EC_DCTIME_TICKSPERDAY | 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 |