Documentation

TIMETOTALSECONDS

Function name

TIMETOTALSECONDS

ST call

PROGRAM TIMETOTALSECONDS_DEMO
VAR
T1: TIME;
LR1:LREAL;
END_VAR
LR1 := TIMETOTALSECONDS(IN1 := T1);
END_PROGRAM

Description

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

Inputs

Input Type Description
IN1 TIME Input value

Outputs

Output Type Description
=> LREAL Output value

Application example