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
    OTIN        : OTSTRUCT;
END_VAR

OTIN: the structure to be converted.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v2.7.0 and above

BCxxxx (165)

Standard.Lb6, PlcSystemBC.Lb6, TcPlcUtilitiesBC.Lb6