F_GetActualDcTime64

F_GetActualDcTime64 1:

This function returns the current time in TwinCAT distributed clock system time format (T_DCTIME64).

FUNCTION F_GetActaulDCTime: T_DCTIME64

F_GetActualDcTime64 2: Inputs

VAR_INPUT
(*none*)
END_VAR

Sample in ST:

PROGRAM MAIN
VAR
    actDC : T_DCTIME64;
    sAct  : STRING;
END_VAR

actDC := F_GetActualDcTime64();
sAct  := DCTIME64_TO_STRING( actDC );

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.0

PC or CX (x86, x64, ARM)

Tc2_EtherCAT