TimeBase Class

Base class for PlcOpen Time types.

Inheritance Hierarchy

System.Object
  TwinCAT.PlcOpen.TimeBase
    TwinCAT.PlcOpen.TIME
    TwinCAT.PlcOpen.TOD
Namespace:  TwinCAT.PlcOpen
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

public abstract class TimeBase : IPlcOpenTimeBase<TimeSpan, uint>, 
    IPlcOpenTimeBase

The TimeBase type exposes the following members.

Constructors

 

Name

Description

TimeBase Class 1:

TimeBase.

Initializes a new instance of the TimeBase class.

TimeBase Class 2:

TimeBase(Int64)

Initializes a new instance of the TimeBase class.

TimeBase Class 3:

TimeBase(UInt32)

Initializes a new instance of the TimeBase class.

Properties

 

Name

Description

TimeBase Class 4:

InternalTimeValue

Gets the internal time value.

TimeBase Class 5:

TimeBase Class 6:

MarshalSize

Gets the marshal size in bytes.

TimeBase Class 7:

Ticks

Returns the number of ticks that represent the value of this TimeBase (uint32 or uint64).

TimeBase Class 8:

Time

Gets the time value.

Methods

 

Name

Description

TimeBase Class 9:

Equals

Determines whether the specified Object is equal to this instance. (Overrides Object.Equals(Object).)

TimeBase Class 10:

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

TimeBase Class 11:

GetHashCode

Gets the HashCode of the Address (Overrides Object.GetHashCode..)

TimeBase Class 12:

GetType

Gets the Type of the current instance. (Inherited from Object.)

TimeBase Class 13:

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

TimeBase Class 14:

TimeBase Class 15:

TimeToValue

Converts the Timespan to PlcOpen ticks.

TimeBase Class 16:

ToString

Returns a string that represents the current object. (Inherited from Object.)

TimeBase Class 17:

TimeBase Class 18:

ValueToTime(Int64)

Converts the timeValue (PlcOpen ticks) to TimeSpan

TimeBase Class 19:

TimeBase Class 20:

ValueToTime(UInt32)

Converts the timeValue (PlcOpen ticks) to TimeSpan

Fields

 

Name

Description

TimeBase Class 21:

internalTimeValue

The internal time value

Reference

TwinCAT.PlcOpen Namespace