Documentation

ADD_DT_TIME

Function name

ADD_DT_TIME

ST call

PROGRAM ADD_DT_TIME_DEMO
VAR
DT1,DT2: DT;
TIME1: TIME;
END_VAR
DT2:= ADD_DT_TIME(IN1:=DT1, IN2:=TIME1);
END_PROGRAM

Description

Returns the sum of input values (dates). Adds date and time together.

Inputs

Input Type Description
IN1 DT Input value
IN2 TIME Input value

Outputs

Output Type Description
=> DT Output value

Application example