TimeBase.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 long TimeToValue(
    TimeSpan time
)

Parameters

time

Type: System.TimeSpan
The time.

Return Value

Type: Int64

Reference

TimeBase Class

TwinCAT.PlcOpen Namespace