|
Type
| Function |
|
Description
| Concatenates (combines) the integer values (ANY_INT) for days, hours, minutes, seconds and milliseconds to build a duration. The result is stored to the output of the data type TIME.The function is an overloaded function. It can operate on all ANY_INT input data types. |
|
Parameters
| Inputs
DAYS, HOURS, MINUTES, SECONDS, MILLISECONDS
Output
OUT
| Data type: | TIME |
| Description: | Duration |
|
|
Error behavior
| If the resulted value is greater than DINT_MAX (overflow), the overflow value is returned.
Note: Values outside the range of an input data type are allowed (for example, 25 hours). |
|
Examples
| Example in ST
out := CONCAT_TIME(1, 0, 70, 15, 1); (* results in TIME#1d1h10m15.001s *) |
|
Additional information
| EN/ENO behavior
The POU is only executed if TRUE is applied to the EN input. If EN = FALSE, the POU is not executed and ENO = FALSE indicates the inactivity.
If any of the errors listed under "Error behavior" occurs while executing the function, ENO is set to FALSE.
|