LTimeBase.TimeToValue Method

Converts the Timespan to PlcOpen ticks.

Namespace:  TwinCAT.PlcOpen
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

public static ulong TimeToValue(
    TimeSpan time
)

Parameters

time

Type: System.TimeSpan
The time.

Return Value

Type: UInt64

Reference

LTimeBase Class

TwinCAT.PlcOpen Namespace