Timer instructions
338
Part II IEC Instructions
SPLIT_TIME_INT
Split a 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.
PLC types Availability of SPLIT_TIME_INT (see page 1331)
Data type I/O Function
TIME input time
INT
1st output
2nd output
3rd output
4th output
5th output
days
hours
minutes
seconds
milliseconds
SPLIT_TIME_INT(IN := TIME_value,
DAYS => DAYS_value,
HOURS => HOURS_value,
MINUTES => MINUTES_value,
SECONDS => SECONDS_value,
MILLISECONDS => MILLISECONDS_value);
Description
The highest non-zero time unit may be greater than its apparent limit, e.g. T#25h is a valid time
value whereas T#1d25h is not.
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.
LD
ST
When programming with structured text, enter the following: