DTSec

 FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Get the seconds from the time stamp.

Inputs

Input

Data Type

Range Unit Default

Description

Time

DINT

0 to 86,399,999

Milliseconds

No default

The number of milliseconds that have passed since midnight.

This value is typically retrieved from DTCurTime.

Outputs

Output

Data Type

Range Unit

Description

Q

DINT

0 to 59

Seconds

Seconds of the time.

Remarks

None

FBD Language Example

Not available.

FFLD Language Example

Not available.

IL Language Example

Not available.

ST Language Example

Q := DTSec (iTime);

See Also