Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The PlcCounterOperand type exposes the following members.
Initializes a new instance of the PlcCounterOperand class with serialized data.
C#
protected PlcCounterOperand(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
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).
Compares the current PlcCounterOperand with the other
.
C#
public override int CompareTo(object other)
Parameters
other
Object
The PlcCounterOperand to compare with this PlcCounterOperand.
Returns
A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(Object)).
Compares the current PlcCounterOperand with another PlcCounterOperand.
C#
public int CompareTo(PlcCounterOperand other)
Parameters
other
PlcCounterOperand
The PlcCounterOperand to compare with this PlcCounterOperand.
Returns
A 32-bit signed integer that indicates the relative order of the objects being compared (CompareTo(0)).
Determines whether the specified other
is equal to this PlcCounterOperand.
C#
public override bool Equals(object other)
Parameters
other
Object
The PlcCounterOperand to compare to the current PlcCounterOperand.
Returns
The value true if the specified PlcCounterOperand is equal to the current PlcCounterOperand; otherwise the value false.
Determines whether the specified other
is equal to this PlcCounterOperand.
C#
public bool Equals(PlcCounterOperand other)
Parameters
other
PlcCounterOperand
The PlcCounterOperand to compare to the current PlcCounterOperand.
Returns
The value true if the specified PlcCounterOperand is equal to the current PlcCounterOperand; otherwise the value false.
Retrieves a hash code for this PlcCounterOperand.
C#
public override int GetHashCode()
Returns
An Int32 that contains the hash code for the PlcCounterOperand.
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
The info
parameter is a null reference (Nothing in Visual Basic).
Creates a new PlcWordAddress from this PlcCounterOperand 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
A new PlcWordAddress which refers to this operand and to the byteNumber
specified.
Exceptions
The byteNumber
is out of the bounds defined by MinByteNumber or MaxByteNumber.
Returns a value indicating whether two instance of PlcCounterOperand are equal.
C#
public static bool operator ==(PlcCounterOperand left, PlcCounterOperand right)
Determines whether the first specified PlcCounterOperand object is greater than the second specified PlcCounterOperand object.
C#
public static bool operator>(PlcCounterOperand left, PlcCounterOperand right)
Determines whether the first specified PlcCounterOperand object is greater than or equal to the second specified PlcCounterOperand object.
C#
public static bool operator >=(PlcCounterOperand left, PlcCounterOperand right)
Converts a string formatted as operand to an PlcCounterOperand object.
C#
public static implicit operator PlcCounterOperand(string value)
Exceptions
The value
is not a valid PLC operand.
Returns a value indicating whether two instances of PlcCounterOperand are not equal.
C#
public static bool operator !=(PlcCounterOperand left, PlcCounterOperand right)
Determines whether the first specified PlcCounterOperand object is less than the second specified PlcCounterOperand object.
C#
public static bool operator <(PlcCounterOperand left, PlcCounterOperand right)
Exceptions
The left
is a null reference (Nothing in Visual Basic).
Determines whether the first specified PlcCounterOperand object is less than or equal to the second PlcCounterOperand object.
C#
public static bool operator <=(PlcCounterOperand left, PlcCounterOperand right)
Exceptions
The left
is a null reference (Nothing in Visual Basic).