Table of Contents

ADD_LDT_LTIME

Function name

ADD_LDT_LTIME

ST call

PROGRAM ADD_LDT_LTIME_DEMO
 VAR
 LDT1,LDT2: LDT;
 LTIME1: LTIME;
 END_VAR
 DT2:= ADD_LDT_LTIME(IN1:=LDT1, IN2:=LTIME1);
END_PROGRAM

Description

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

Inputs

InputType Description
IN1 LDT Input value
IN2 LTIMEInput value

Outputs

OutputTypeDescription
LDT Output value

Application example