Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The IPDeviceEndPoint type exposes the following members.
Initializes a new instance of the IPDeviceEndPoint class with the specified address
.
C#
public IPDeviceEndPoint(IPAddress address)
Parameters
address
IPAddress
The IPAddress of the endpoint.
Exceptions
The address
is a null reference (Nothing in Visual Basic).
Initializes a new instance of the IPDeviceEndPoint class with the specified address
and rack
number.
C#
public IPDeviceEndPoint(IPAddress address, int rack)
Parameters
address
IPAddress
The IPAddress of the endpoint.
rack
Int32
The rack number associated with the address
.
Exceptions
The address
is a null reference (Nothing in Visual Basic).
The rack
is out of the bounds defined by MinRack or MaxRack.
Initializes a new instance of the IPDeviceEndPoint class with the specified address
, rack
number and slot
number.
C#
public IPDeviceEndPoint(IPAddress address, int rack, int slot)
Parameters
address
IPAddress
The IPAddress of the endpoint.
rack
Int32
The rack number associated with the address
.
slot
Int32
The slot number associated with the address
.
Exceptions
The address
is a null reference (Nothing in Visual Basic).
The rack
or slot
is out of the bounds defined by MinRack, MaxRack, MinSlot or MaxSlot.
Initializes a new instance of the IPDeviceEndPoint class with the specified address
.
C#
public IPDeviceEndPoint(string address)
Parameters
address
String
The string representation of an IPAddress of the endpoint.
Exceptions
The address
is equal to Empty.
The address
is a null reference (Nothing in Visual Basic).
The address
is an invalid string representation of an IPAddress.
Initializes a new instance of the IPDeviceEndPoint class with the specified address
and rack
number.
C#
public IPDeviceEndPoint(string address, int rack)
Parameters
address
String
The string representation of an IPAddress of the endpoint.
rack
Int32
The rack number associated with the address
.
Exceptions
The address
is equal to Empty.
The address
is a null reference (Nothing in Visual Basic).
The rack
is out of the bounds defined by MinRack or MaxRack.
The address
is an invalid string representation of an IPAddress.
Initializes a new instance of the IPDeviceEndPoint class with the specified address
, rack
number and slot
number.
C#
public IPDeviceEndPoint(string address, int rack, int slot)
Parameters
address
String
The string representation of an IPAddress of the endpoint.
rack
Int32
The rack number associated with the address
.
slot
Int32
The slot number associated with the address
.
Exceptions
The address
is equal to Empty.
The address
is a null reference (Nothing in Visual Basic).
The rack
or slot
is out of the bounds defined by MinRack, MaxRack, MinSlot or MaxSlot.
The address
is an invalid string representation of an IPAddress.
Gets or sets the IP address of the endpoint.
C#
public virtual IPAddress Address { get; set; }
Property Value
An instance of the IPAddress class containing the IP address of the endpoint.
Exceptions
The value is a null reference (Nothing in Visual Basic).
Gets the address family to which the endpoint belongs.
C#
public override AddressFamily AddressFamily { get; }
Property Value
One of the members defined by the AddressFamily enumeration. Which specifies the addressing scheme that is used by the endpoint's underlying network protocol.
Gets a value indicating whether a custom rack has been associated with this endpoint.
C#
public bool IsCustomRack { get; }
Property Value
The value true, if there was a custom rack assigned to this endpoint; otherwise the value false.
Remarks
In case there is no custom rack number defined the PLC driver does decide on its own which rack is to be used by default to address the PLC device.
Gets a value indicating whether a custom slot has been associated with this endpoint.
C#
public bool IsCustomSlot { get; }
Property Value
The value true, if there was a custom slot assigned to this endpoint; otherwise the value false.
Remarks
In case there is no custom slot number defined the PLC driver does decide on its own which slot is to be used by default to address the PLC device.
Gets or sets the rack number of the endpoint.
C#
public int Rack { get; set; }
Property Value
An integer value in the range MinRack to MaxRack indicating the rack number of the endpoint.
Exceptions
The value that was specified is less than MinRack or greater than MaxRack.
Remarks
In case there is no custom rack number defined this property does return the most typical default rack number defined by DefaultRack.
Gets or sets the slot number of the endpoint.
C#
public int Slot { get; set; }
Property Value
An integer value in the range MinSlot to MaxSlot indicating the slot number of the endpoint.
Exceptions
The value that was specified is less than MinSlot or greater than MaxSlot.
Remarks
In case there is no custom slot number defined this property does return the most typical default rack number defined by DefaultSlot.
Returns a hash value for an endpoint.
C#
public override int GetHashCode()
Returns
An integer hash value.
Returns a string that represents the current IPDeviceEndPoint.
C#
public override string ToString()
Returns
A string that represents the current IPDeviceEndPoint.