7.13.3 CONCAT_TOD
Function
Combine integer hours, minutes, seconds, and milliseconds data and convert them into TOD type data and return them
LD graphics

Parameter description
| Interface variable | Declaration | Data type | Description |
|---|---|---|---|
| HOUR | Var_Int | DINT | Hour |
| MINUTE | Var_Int | DINT | Minute |
| SECOND | Var_Int | DINT | Second |
| MILLISECOND | Var_Int | DINT | Millisecond |
| Function name | Return value | TOD | Time type: Hour + Minute + Second + Millisecond |
- Input value range HOUR:0-23; MINUTE:0-59; SECOND: 0-59; MILLISECOND: 0-999. If the input value exceeds the range, the return value is 16#0000
Example
- An LD example is shown in the following animation:

- ST example is shown in the following code:
OUT:=CONCAT_TOD(
HOUR:=IN1,
MINUTE:=IN2,
SECOND:=IN3,
MILLISECOND:=IN4
)