Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll, IPS7LnkNet.Advanced.dll
The SimaticDeviceConnection type exposes the following members.
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
The device
is a null reference (Nothing in Visual Basic).
Creates a new immutable channel which is used as the low level access layer of the connection.
C#
protected override PlcDeviceConnectionChannel CreateChannel()
Returns
A new SimaticDeviceConnectionChannel configured with the setup of this PlcDeviceConnection and its Device.
C#
protected override sealed PlcDataNode CreateNode(PlcObject instance)
Parameters
instance
PlcObject
Returns
Establishes a connection to a device.
C#
protected override void OpenCore()
Exceptions
The endpoint type of the device associated with the connection is not supported.
The device associated with the connection does not provide endpoint information.
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
The sequence of data read.
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.