SimaticDeviceConnection Members

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

SimaticDeviceConnection(SimaticDevice)

Initializes a new instance of the SimaticDeviceConnection class using the specified device.

C#

public SimaticDeviceConnection(SimaticDevice device)


Parameters

device SimaticDevice

The SimaticDevice associated with the new SimaticDeviceConnection.


Exceptions

ArgumentNullException

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

CreateChannel()

Creates a new immutable channel which is used as the low level access layer of the connection.

C#

protected override PlcDeviceConnectionChannel CreateChannel()


Returns

PlcDeviceConnectionChannel

A new SimaticDeviceConnectionChannel configured with the setup of this PlcDeviceConnection and its Device.

CreateNode(PlcObject)

C#

protected override sealed PlcDataNode CreateNode(PlcObject instance)


Parameters

instance PlcObject



Returns

PlcDataNode

CreateNode(PlcType)

C#

protected override sealed PlcDataNode CreateNode(PlcType type)


Parameters

type PlcType



Returns

PlcDataNode

CreateNode(PlcType, IPlcValue)

C#

protected override sealed PlcDataNode CreateNode(PlcType type, IPlcValue value)


Parameters

type PlcType


value IPlcValue



Returns

PlcDataNode

OpenCore()

Establishes a connection to a device.

C#

protected override void OpenCore()



Exceptions

ArgumentException

The endpoint type of the device associated with the connection is not supported.

ArgumentNullException

The device associated with the connection does not provide endpoint information.

ReadNodesCore(IEnumerable<PlcDataNode>)

Reads the data areas described by the nodes specified.

C#

protected override IEnumerable<object> ReadNodesCore(IEnumerable<PlcDataNode> nodes)


Parameters

nodes IEnumerable<PlcDataNode>

The PlcDataNode's to read.


Returns

IEnumerable<Object>

The sequence of data read.

WriteNodesCore(IEnumerable<PlcDataNode>)

Writes the data areas described by the nodes specified.

C#

protected override void WriteNodesCore(IEnumerable<PlcDataNode> nodes)


Parameters

nodes IEnumerable<PlcDataNode>

The PlcDataNode's to write.