TimeBase Class

Time base class

Inheritance Hierarchy

System.Object
  TwinCAT.PlcOpen.TimeBase
    TwinCAT.PlcOpen.TIME
    TwinCAT.PlcOpen.TOD
Namespace:  TwinCAT.PlcOpen
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

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

VB

Public MustInherit Class TimeBase
    Implements IPlcOpenType(Of TimeSpan, UInteger), 
    IPlcOpenType

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:

TimeBase Class 5:

MarshalSize

Gets the marshal size in bytes.

TimeBase Class 6:

Ticks

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

TimeBase Class 7:

Time

Gets the time value.

Methods

 

Name

Description

TimeBase Class 8:

Equals

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

TimeBase Class 9:

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 10:

GetHashCode

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

TimeBase Class 11:

GetType

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

TimeBase Class 12:

MemberwiseClone

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

TimeBase Class 13:

TimeBase Class 14:

TimeToValue

Converts the Timespan to PlcOpen ticks.

TimeBase Class 15:

ToString

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

TimeBase Class 16:

TimeBase Class 17:

ValueToTime(Int64)

Converts the timeValue (PlcOpen ticks) to TimeSpan

TimeBase Class 18:

TimeBase Class 19:

ValueToTime(UInt32)

Converts the timeValue (PlcOpen ticks) to TimeSpan

Fields

 

Name

Description

TimeBase Class 20:

internalTimeValue

The internal time value

Reference

TwinCAT.PlcOpen Namespace