F_GetActualDcTime
Outdated function This function is outdated. Use the function F_GetActualDcTime64 instead. |
This function returns the current time in TwinCAT distributed clock system time format (T_DCTIME).
FUNCTION F_GetActualDcTime: T_DCTIME
Inputs
VAR_INPUT
(*none*)
END_VAR
Sample:
PROGRAM MAIN
VAR
actDC : T_DCTIME;
sAct : STRING;
END_VAR
actDC := F_GetActualDcTime();
sAct := DCTIME_TO_STRING( actDC );
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.0 | PC or CX (x86, x64, ARM) | Tc2_EtherCAT |