F_TimeToSeconds()

F_TimeToSeconds() 1:

Converts a time in milliseconds of type TIME to seconds of type LREAL.

Syntax:

FUNCTION F_SecondsToTime : LREAL
VAR_INPUT
    tTime:        TIME;
END_VAR

F_TimeToSeconds() 2: Inputs

Name

Type

Description

tTime

TIME

Time value in milliseconds

F_TimeToSeconds() 3: Outputs

Name

Type

Description

F_TimeToSeconds

LREAL

Time value in seconds as floating point number

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.35

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v3.12.5.0)