PlcDevice Class

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

Provides an abstract base class which represents a single programmable logic controller (PLC).

C#

public abstract class PlcDevice : IPlcDevice


Inheritance Object › PlcDevice


Derived


Implements IPlcDevice

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