F_GetActualDcTime
This function supplies the current time in TwinCAT Distributed Clock time format.
FUNCTION F_GetActualDcTime: T_DCTIME
VAR_INPUT
(*none*)
END_VAR
Example in ST:
PROGRAM MAIN
VAR
actDC : T_DCTIME;
sAct : STRING;
END_VAR
actDC := F_GetActualDcTime();
sAct := DCTIME_TO_STRING( actDC );
Requirements
Development environment | Target system type | PLC libraries to include |
---|---|---|
TwinCAT v2.11.0 Build > 1535 or higher | PC or CX (x86, ARM) | TcEtherCAT.Lib |
See also