Table of Contents

LDT_TO_TOD

Function name

LDT_TO_TOD

ST call

PROGRAM LDT_TO_TOD_DEMO
     VAR
           LDT1: LDT; 
     TOD1: TOD;
    END_VAR
    TOD1:=LDT_TO_TOD(LDT1);
END_PROGRAM

Description

The function brings the input value to the output as a time in a day.

Inputs

InputTypeDescription
in1 LDT Input value

Outputy

OutputTypeDescription
TOD Output value

Application example