TIME_TO_OTSTRUCT

TIME_TO_OTSTRUCT 1:

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

VAR_INPUT

VAR_INPUT
    TIN : TIME;
END_VAR

TIN: 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)