VirtualDevice Class

Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll

Represents a single virtual programmable logic controller (PLC).

C#

public class VirtualDevice : PlcDevice, IPlcDevice


Inheritance ObjectPlcDevice › VirtualDevice


Implements IPlcDevice

Remarks

This type of device does provide the same mechanism provided by each PlcDevice but does support to test application and library implementations without the need of an physical PLC device.

Name Description
VirtualDevice Initializes a new instance of the VirtualDevice class.
VirtualDevice(PlcDeviceEndPoint) Initializes a new instance of the VirtualDevice class using the specified endPoint.
Name Description
Blocks Gets a collection of PlcBlockInfo objects associated with the device.
(Inherited from PlcDevice)
EndPoint Gets or sets the PlcDeviceEndPoint of the PLC device.
(Inherited from PlcDevice)
Name Gets or sets the name of the device.
(Inherited from PlcDevice)
Objects Gets a collection of PlcObject objects associated with the device.
(Inherited from PlcDevice)
Types Gets a collection of PlcType objects associated with the device.
(Inherited from PlcDevice)
Values Gets a collection of IPlcValue objects associated with the device.
(Inherited from PlcDevice)
Name Description
CreateConnection Creates a new instance of an object implementing the PlcDeviceConnection class which is associated with the device.
(Inherited from PlcDevice)
CreateConnection(Boolean) Creates a new instance of an object implementing the PlcDeviceConnection class which is associated with the device, if createNew is equals to the value true.
(Inherited from PlcDevice)
CreateConnectionCore Creates a new instance of an object which is an instance of the VirtualDeviceConnection class which is associated with the PlcDevice.
CreateConnectionCore When implemented in a derived class, creates a new instance of an object which is an instance of the PlcDeviceConnection class which is associated with the PlcDevice.
(Inherited from PlcDevice)
GetBlock(PlcOperand) Retrieves the block information for the PLC block accessible by the operand specified.
(Inherited from PlcDevice)
GetBlockCore(PlcOperand) Retrieves the block information for the PLC block accessible by the operand specified.
GetBlockCore(PlcOperand) When implemented in a derived class, retrieves the block information for the PLC block accessible by the operand specified.
(Inherited from PlcDevice)
GetBlocks Retrieves all so far known block information which has been determined by either discovering a block using GetBlock(PlcOperand).
(Inherited from PlcDevice)
GetInfo Retrieves an instance of an object implementing the IPlcDeviceInfo interface which provides additional metadata about the device.
GetInfo When implemented in a derived class, retrieves an instance of an object implementing the IPlcDeviceInfo interface which provides additional metadata about the device.
(Inherited from PlcDevice)
ToString Returns a string that represents the current VirtualDevice.
ToString Returns a string that represents the current PlcDevice.
(Inherited from PlcDevice)