Timer instructions
331
Part II IEC Instructions
CONCAT_TIME_INT
Concatenate INT values to form a time
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 CONCAT_TIME_INT (see page 1318)
Data type I/O Function
INT
1st input
2nd input
3rd input
4th input
5th input
days
hours
minutes
seconds
milliseconds
TIME output result
BOOL output The Boolean output ERROR is set if the input values are invalid date or time values.
TIME_value := CONCAT_TIME_INT(DAYS := DAYS_value,
HOURS := HOURS_value,
MINUTES := MINUTES_value,
SECONDS := SECONDS_value,
MILLISECONDS := MILLISECONDS_value,
ERROR => ERROR);
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: