COMPOSEDATETIME

Function name

COMPOSEDATETIME

ST call

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

Description

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

Inputs

Input Type Description
YEAR INT Input value
MONTH SINT Input value
DAY SINT Input value
HOURS SINT Input value
MINUTES SINT Input value
SECONDS SINT Input value
MILISECONDS INT Input value

Outputs

Output Type Description
=> DT Output value

Application example