F_ConvTcTimeToDcTime64
The function F_ConvTcTimeToDcTime64
converts the TwinCAT system time to the TwinCAT distributed clock system time.
FUNCTION F_ConvTcTimeToDcTime64: T_DCTIME64
Inputs
VAR_INPUT
TcTime : T_DCTIME64;
DcToTcTimeOffset : ULINT;
END_VAR
Name | Type | Description |
---|---|---|
TcTime | T_DCTIME64 | TwinCAT system time in TwinCAT "Distributed Clock" system time format |
DcToTcTimeOffset | 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 |