PlcBlockInfo Members

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

PlcBlockInfo(IPlcDevice, PlcOperand)

Initializes a new instance of the PlcBlockInfo class using the specified device and operand.

C#

protected PlcBlockInfo(IPlcDevice device, PlcOperand operand)


Parameters

device IPlcDevice

The IPlcDevice to which the PlcBlockInfo does belong.

operand PlcOperand

The PlcOperand which uniquely identifies the block represented.


Exceptions

ArgumentNullException

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

Device

Gets the IPlcDevice to which the PlcBlockInfo belongs.

C#

public IPlcDevice Device { get; }


Property Value

IPlcDevice

The IPlcDevice to which the PlcBlockInfo belongs.

Exists

Gets a value indicating whether the represented block does exist within the memory of the Device.

C#

public abstract bool Exists { get; }


Property Value

Boolean

The value true, if the block does exist; otherwise the value false.

Operand

Gets the PlcOperand which unique identifies the PLC block its information is represented by this PlcBlockInfo.

C#

public PlcOperand Operand { get; }


Property Value

PlcOperand

The PlcOperand of the block.

Size

Gets the size of the PLC block represented.

C#

public abstract int Size { get; }


Property Value

Int32

The physical size (in bytes) of the block in the PLC memory.

Refresh()

When implemented in a derived class, refreshes the information of the block.

C#

public abstract void Refresh()

ToString()

Returns a string that represents the current PlcBlockInfo.

C#

public override string ToString()


Returns

String

A string that represents the current PlcBlockInfo.