Table of Contents

TIMETOTALHOURS

Function name

TIMETOTALHOURS

ST call

PROGRAM TIMETOTALHOURS_DEMO
    VAR
     T1: TIME;
       LR1:LREAL;
  END_VAR
 LR1 := DATETOTALHOURS(IN1 := T1);
END_PROGRAM

Description

Returns value corresponding to the number of hours for a particular time interval.

Inputs

InputTypeDescription
IN1 TIMEInput value

Outputs

OutputType Description
LREALOutput value

Application example