STRING_TO_DCTIME64
![STRING_TO_DCTIME64 1:](Images/png/2267456395__Web.png)
The function converts a string to a distributed clock system time variable of type T_DCTIME64.
FUNCTION STRING_TO_DCTIME64: T_DCTIME64
Inputs
VAR_INPUT
in : STRING(29);
END_VAR
Name | Type | Description |
---|---|---|
in | STRING | The string to be converted The string must have the following format: 'YYYY-MM-DD-hh:mm:ss:nnnnnnnnn'
|
Sample:
See description of the function F_GetCurDcTickTime64.
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.0 | PC or CX (x86, x64, ARM) | Tc2_EtherCAT |