F_SecondsToTime()

F_SecondsToTime() 1:

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

Syntax:

FUNCTION F_SecondsToTime : TIME
VAR_INPUT
    fTime:        LREAL;
END_VAR

F_SecondsToTime() 2: Inputs

Name

Type

Description

fTime

LREAL

Time value in seconds as floating point number

F_SecondsToTime() 3: Outputs

Name

Type

Description

F_SecondsToTime

TIME

Time value in milliseconds

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)