7.13.7 SPLIT_DT
Function
Split the DT type data into six integer type data outputs, respectively output YEAR, MONTH, DAY, HOUR, MINUTE, SECOND six integer type data
LD graphics

Parameter description
| Interface variable | Declaration | Data type | Description |
|---|---|---|---|
| DT | Var_Dt | DT | Date + Time |
| YEAR | Out_Put | INT | Year |
| MONTH | Out_Put | INT | Month |
| DAY | Out_Put | INT | Someday |
| HOUR | Out_Put | INT | Hour |
| MINUTE | Out_Put | INT | Minute |
| SECOND | Out_Put | INT | Second |
Example
- An LD example is shown in the following animation:

- ST example is shown in the following code:
SPLIT_DT(
IN:=IN1,
YEAR=>OUT,
MONTH=>OUT2,
DAY=>OUT3,
HOUR=>OUT4,
MINUTE=>OUT5,
SECOND=>OUT6
);