Table of Contents

SUB_DT_DT

Function name

SUB_DT_DT

ST call

PROGRAM SUB_DT_DT_DEMO
 VAR
     DT1,DT2: DT;
        TIME1: TIME;
    END_VAR
 TIME1:= SUB_DT_DT(IN1:=DT1, IN2:=DT2);
END_PROGRAM

Description

Subtracts the input variables, OUT = IN1 - IN2.

Inputs

InputTypeDescription
IN1 DT Input value
IN2 DT Input value

Outputs

OutputTypeDescription
TIMEOutput value

Application example