CONCAT_LTOD
Type | Function |
Description | Concatenates (combines) the integer values (ANY_INT) for hour, minute, second, millisecond, microsecond and nanosecond to build a time of day. The result is stored to the output of the data type LTIME_OF_DAY.The function is an overloaded function. It can operate on all ANY_INT input data types. |
Parameters | Inputs
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Error behavior | If any of the input values for hour, minute, second, millisecond etc. is outside the permissible range, the function returns LDT#00:00:00. In addition, the 'Argument out of range' error is written to the Online Log in the MESSAGES window. |
Examples | Example in ST out := CONCAT_LTOD(23, 1, 55, 500, 660, 1); (* results in LTOD#23:01:55.500 660 01 *) |
Additional information | ![]() |