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