Table of Contents

DIVTIME

Function name

DIVTIME

ST call

PROGRAM DIVTIME_DEMO
   VAR
     TIME1,TIME2: TIME;
      REAL1: REAL;
    END_VAR
 TIME2:= DIVTIME(IN1:=TIME1, IN2:=REAL1);
END_PROGRAM

Description

Returns value of input time divided by the IN2 value.

Inputs

InputType Description
IN1 TIME Input value
IN2 ANY_NUMInput value

Outputs

OutputTypeDescription
TIMEOutput value

Application example