Documentation

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

Input Type Description
IN1 DT Input value
IN2 DT Input value

Outputs

Output Type Description
=> TIME Output value

Application example