Table of Contents

SUB_TOD_TIME

Function name

SUB_TOD_TIME

ST call

PROGRAM SUB_TOD_TIME_DEMO
  VAR
     TOD1,TOD2: TOD;
     TIME1: TIME;
    END_VAR
 TOD2:= SUB_TOD_TIME(IN1:=TOD1, IN2:=TIME1);
END_PROGRAM

Description

Subtracts the input variables, OUT = IN1 - IN2.

Inputs

InputTypeDescription
IN1 TOD Input value
IN2 TIMEInput value

Outputs

OutputTypeDescription
TOD Output value

Application example