IPlcDevice.CreateConnection Method (Boolean)

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

Namespace: IPS7Lnk.Advanced
Assembly:  IPS7LnkNet.Advanced (in IPS7LnkNet.Advanced.dll) Version: 1.0.0.0 (1.7.2.0)

C#

PlcDeviceConnection CreateConnection(
	bool createNew
)


Parameters

createNew
Type: System.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).

Return Value

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

Reference