TIME_TO_OTSTRUCT
The function "TIME_TO_OTSTRUCT" can be used to convert a TIME constant or variable into a structure with the resolved milliseconds, seconds, minutes, hours, days and weeks.
FUNCTION TIME_TO_OTSTRUCT : OTSTRUCT
Inputs
VAR_INPUT
TIN : TIME;
END_VAR
Name | Type | Description |
---|---|---|
TIN | TIME | The TIME variable to be converted |
Requirements
Development environment |
Target platform |
PLC libraries to be integrated (category group) |
---|---|---|
TwinCAT v3.1.0 |
PC or CX (x86, x64, ARM) |
Tc2_Utilities (System) |