|
Type
| Function |
|
Description
| Concatenates (combines) the integer values (ANY_INT) for days, hours, minutes, seconds, milliseconds, microseconds and nanoseconds to build a duration. The result is stored to the output of the data type LTIME.The function is an overloaded function. It can operate on all ANY_INT input data types. |
|
Parameters
| Inputs
DAYS, HOURS, MINUTES, SECONDS, MILLISECONDS, MICROSECONDS, NANOSECONDS
Output
OUT
| Data type: | LTIME |
| Description: | Duration |
|
|
Error behavior
| If the resulted value is greater than LINT_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_LTIME(1, 0, 70, 15, 1, 0, 0); (* results in LTIME#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.
|