IPlcDevice Members

Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The IPlcDevice interface defines the following members.

EndPoint

Gets or sets the PlcDeviceEndPoint of the PLC device.

C#

PlcDeviceEndPoint EndPoint { get; set; }


Property Value

PlcDeviceEndPoint

An instance of the PlcDeviceEndPoint class, which defines the end point information required to establish a connection to the device represented.



Exceptions

ArgumentNullException

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

Name

Gets or sets the name of the device.

C#

string Name { get; set; }


Property Value

String

A String value identifying the device.

Objects

Gets a collection of PlcObject objects associated with the device.

C#

PlcObjectCollection Objects { get; }


Property Value

PlcObjectCollection

An instance of the PlcObjectCollection class.

Types

Gets a collection of PlcType objects associated with the device.

C#

PlcTypeCollection Types { get; }


Property Value

PlcTypeCollection

An instance of the PlcTypeCollection class.

Values

Gets a collection of IPlcValue objects associated with the device.

C#

PlcValueCollection Values { get; }


Property Value

PlcValueCollection

An instance of the PlcValueCollection class.

CreateConnection()

Creates a new instance of an object implementing the PlcDeviceConnection class which is associated with the device.

C#

PlcDeviceConnection CreateConnection()


Returns

PlcDeviceConnection

An instance of the PlcDeviceConnection class which is associated with the device.

CreateConnection(Boolean)

Creates a new instance of an object implementing the PlcDeviceConnection class which is associated with the device.

C#

PlcDeviceConnection CreateConnection(bool createNew)


Parameters

createNew Boolean

A value indicating whether a new instance is to be created (the value true) or if there is already an existing instance of the PlcDeviceConnection class in usable state is to be returned (the value false).


Returns

PlcDeviceConnection

An instance of the PlcDeviceConnection class which is associated with the device.

GetBlock(PlcOperand)

Retrieves the block information for the PLC block accessible by the operand specified.

C#

PlcBlockInfo GetBlock(PlcOperand operand)


Parameters

operand PlcOperand

The PlcOperand for that the according block information is to be retrieved.


Returns

PlcBlockInfo

An instance of the PlcBlockInfo class containing the information of the block requested.



Exceptions

ArgumentNullException

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

GetInfo()

Retrieves an instance of an object implementing the IPlcDeviceInfo interface which provides additional metadata about the device.

C#

IPlcDeviceInfo GetInfo()


Returns

IPlcDeviceInfo

An instance implementing the IPlcDeviceInfo interface which provides additional metadata about the device.