COMPOSEDATETIME

COMPOSEDATETIME

PROGRAM COMPOSEDATETIME_DEMO
   VAR
     DT1: DT;
        Y,MILIS:INT;
        M,D,H,MI,S:SINT;
    END_VAR
 DT := COMPOSEDATETIME(YEAR := Y, MONTH := M, DAY := D, HOURS := H, MINUTES := MI, SECONDS := S, MILISECONDS := MILIS);
END_PROGRAM

Returns value of DATETIME type, corresponding to combination of input time values entered as integers.

Input TypeDescription
YEAR INT Input value
MONTH SINTInput value
DAY SINTInput value
HOURS SINTInput value
MINUTES SINTInput value
SECONDS SINTInput value
MILISECONDSINT Input value
OutputTypeDescription
DT Output value

  • © Energocentrum Plus, s.r.o. 2017 - 2024