Table of Contents

DT_TO_TOD

Function name

DT_TO_TOD

ST call

PROGRAM DT_TO_TOD_DEMO
    VAR
        DT1: DT;
        TOD1: TOD;
    END_VAR
 
    TOD1:=DT_TO_TOD(DT1);
END_PROGRAM

Description

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

Inputs

InputTypeDescription
IN1 DT Input value

Outputy

OutputTypeDescription
TOD Output value

Application example