DCTIME_TO_STRING
Outdated function This function is outdated. Use the function DCTIME64_TO_STRING instead. |
The function converts a string to a distributed clock system time variable of type T_DCTIME.
The string resulting the conversion has the following format: 'YYYY-MM-DD-hh:mm:ss.nnnnnnnnn'
- YYYY: year;
- MM: month;
- DD: day;
- hh: hour;
- mm: minute;
- ss: second;
- nnnnnnnnn: nanoseconds;
FUNCTION DCTIME_TO_STRING: STRING(29)
Inputs
VAR_INPUT
in : T_DCTIME;
END_VAR
Name | Type | Description |
---|---|---|
in | T_DCTIME | The "Distributed Clock System Time" variable to be converted |
Sample:
See description of the function: F_GetCurDcTickTime.
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.0 | PC or CX (x86, x64, ARM) | Tc2_EtherCAT |