Table of Contents

DATE_TO_LDT

Function name

DATE_TO_LDT

ST call

PROGRAM DATE_TO_LDT_DEMO
    VAR
           DATE1: DATE; 
       LDT1: LDT;
    END_VAR
    LDT1:=DATE_TO_LDT(DATE1);
END_PROGRAM

Description

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

Inputs

InputTypeDescription
in1 DATEInput value

Outputy

OutputTypeDescription
LDT Output value

Application example