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 | 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 |
Output | Type | Description |
⇒ | DT | Output value |