PlcTimerOperand Members

Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The PlcTimerOperand type exposes the following members.

PlcTimerOperand(SerializationInfo, StreamingContext)

Initializes a new instance of the PlcTimerOperand class with serialized data.

C#

protected PlcTimerOperand(SerializationInfo info, StreamingContext context)


Parameters

info Serialization.SerializationInfo

The Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.

context Serialization.StreamingContext

The Serialization.StreamingContext that contains contextual information about the source or destination.


Exceptions

ArgumentNullException

The info parameter is null reference (Nothing in Visual Basic).

Serialization.SerializationException

The class name is null reference (Nothing in Visual Basic) or HResult is zero (0).

CompareTo(Object)

Compares the current PlcTimerOperand with the other.

C#

public override int CompareTo(object other)


Parameters

other Object

The PlcTimerOperand to compare with this PlcTimerOperand.


Returns

Int32

A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(Object)).

CompareTo(PlcTimerOperand)

Compares the current PlcTimerOperand with another PlcTimerOperand.

C#

public int CompareTo(PlcTimerOperand other)


Parameters

other PlcTimerOperand

The PlcTimerOperand to compare with this PlcTimerOperand.


Returns

Int32

A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(0)).

Equals(Object)

Determines whether the specified other is equal to this PlcTimerOperand.

C#

public override bool Equals(object other)


Parameters

other Object

The PlcTimerOperand to compare to the current PlcTimerOperand.


Returns

Boolean

The value true if the specified PlcTimerOperand is equal to the current PlcTimerOperand; otherwise the value false.

Equals(PlcTimerOperand)

Determines whether the specified other is equal to this PlcTimerOperand.

C#

public bool Equals(PlcTimerOperand other)


Parameters

other PlcTimerOperand

The PlcTimerOperand to compare to the current PlcTimerOperand.


Returns

Boolean

The value true if the specified PlcTimerOperand is equal to the current PlcTimerOperand; otherwise the value false.

GetHashCode()

Retrieves a hash code for this PlcTimerOperand.

C#

public override int GetHashCode()


Returns

Int32

An Int32 that contains the hash code for the PlcTimerOperand.

GetObjectData(SerializationInfo, StreamingContext)

Sets the Serialization.SerializationInfo with information about the exception.

C#

[SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)


Parameters

info Serialization.SerializationInfo

The Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.

context Serialization.StreamingContext

The Serialization.StreamingContext that contains contextual information about the source or destination.



Exceptions

ArgumentNullException

The info parameter is a null reference (Nothing in Visual Basic).

Word(Int32)

Creates a new PlcWordAddress from this PlcTimerOperand using the byteNumber specified.

C#

public PlcWordAddress Word(int byteNumber)


Parameters

byteNumber Int32

The number of the byte to that the new PlcWordAddress refers.


Returns

PlcWordAddress

A new PlcWordAddress which refers to this operand and to the byteNumber specified.



Exceptions

ArgumentOutOfRangeException

The byteNumber is out of the bounds defined by MinByteNumber or MaxByteNumber.

Equality(PlcTimerOperand, PlcTimerOperand)

Returns a value indicating whether two instance of PlcTimerOperand are equal.

C#

public static bool operator ==(PlcTimerOperand left, PlcTimerOperand right)

GreaterThan(PlcTimerOperand, PlcTimerOperand)

Determines whether the first specified PlcTimerOperand object is greater than the second specified PlcTimerOperand object.

C#

public static bool operator>(PlcTimerOperand left, PlcTimerOperand right)

GreaterThanOrEqual(PlcTimerOperand, PlcTimerOperand)

Determines whether the first specified PlcTimerOperand object is greater than or equal to the second specified PlcTimerOperand object.

C#

public static bool operator >=(PlcTimerOperand left, PlcTimerOperand right)

Implicit(String to PlcTimerOperand)

Converts a string formatted as operand to an PlcTimerOperand object.

C#

public static implicit operator PlcTimerOperand(string value)


Exceptions

FormatException

The value is not a valid PLC operand.

Inequality(PlcTimerOperand, PlcTimerOperand)

Returns a value indicating whether two instances of PlcTimerOperand are not equal.

C#

public static bool operator !=(PlcTimerOperand left, PlcTimerOperand right)

LessThan(PlcTimerOperand, PlcTimerOperand)

Determines whether the first specified PlcTimerOperand object is less than the second specified PlcTimerOperand object.

C#

public static bool operator <(PlcTimerOperand left, PlcTimerOperand right)


Exceptions

ArgumentNullException

The left is a null reference (Nothing in Visual Basic).

LessThanOrEqual(PlcTimerOperand, PlcTimerOperand)

Determines whether the first specified PlcTimerOperand object is less than or equal to the second PlcTimerOperand object.

C#

public static bool operator <=(PlcTimerOperand left, PlcTimerOperand right)


Exceptions

ArgumentNullException

The left is a null reference (Nothing in Visual Basic).