Table of Contents

ADD_LTOD_LTIME

Function name

ADD_LTOD_LTIME

ST call

PROGRAM ADD_LTOD_LTIME_DEMO
 VAR
 LTIME1: LTIME;
 LTOD1,LTOD2: LTOD;
 END_VAR
 LTOD2:= ADD_LTOD_LTIME(IN1:=LTOD1, IN2:=LTIME1);
END_PROGRAM

Description

Returns the sum of the input values (dates). Used to add relative time to time of day.

Inputs

InputType Description
IN1 LTOD Input value
IN2 LTIMEInput value

Outputs

OutputTypeDescription
LTODOutput value

Application example