Skip to main content

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

CONCAT_TOD

Parameter description

Interface variableDeclarationData typeDescription
HOURVar_IntDINTHour
MINUTEVar_IntDINTMinute
SECONDVar_IntDINTSecond
MILLISECONDVar_IntDINTMillisecond
Function nameReturn valueTODTime 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:

CONCAT_TOD_GIF

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