Date and time instructions
297
Part II IEC Instructions
SPLIT_DT_INT
Split a date and time into INTEGER values
To add an enable input and enable output to the instruction, select [With EN/ENO] from the
"Instructions" pane (LD, FBD or IL editor). To reuse an instruction select "Recently used" from the
context menu or press <Ctrl>+<Shift>+<v> in the programming window.
Inverse instruction: CONCAT_DT_INT (see page 285)
PLC types Availability of SPLIT_DT_INT (see page 1331)
Data type I/O Function
DATE_AND_TIME input date and time
INT
1st output
2nd output
3rd output
4th output
5th output
6th output
7th output
year
month
day
hour
minute
second
millisecond
Description
SPLIT_DT_INT splits a value of the data type DATE_AND_TIME into INT values for year, month,
day, hour, minute, second, and millisecond.
Data types
Example
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
POU header
All input and output variables used for programming this function have been declared in the POU
header.