OTSTRUCT_TO_TIME

OTSTRUCT_TO_TIME 1:

The function "OTSTRUCT_TO_TIME" can be used to convert a structure with resolved milliseconds, seconds, minutes, hours, days and weeks into a TIME variable.

FUNCTION OTSTRUCT_TO_TIME: TIME

VAR_INPUT

VAR_INPUT
    OTIN : OTSTRUCT;
END_VAR

OTIN: The structure to be converted (type: OTSTRUCT).

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)