PlcInt16 Members

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

PlcInt16(PlcIdentity)

Initializes a new instance of the PlcInt16 class using the specified identity

C#

public PlcInt16(PlcIdentity identity)


Parameters

identity PlcIdentity

The PlcIdentity of the new PlcInt16 to which the PLC value belongs.


Exceptions

ArgumentException

The identity does not refer to the Word.

ArgumentNullException

The identity is a null reference (Nothing in Visual Basic).

PlcInt16(PlcIdentity, Int16)

Initializes a new instance of the PlcInt16 class using the specified identity and value.

C#

public PlcInt16(PlcIdentity identity, short value)


Parameters

identity PlcIdentity

The PlcIdentity of the new PlcInt16 to which the PLC value belongs.

value Int16

The initial value of the new PlcInt16.


Exceptions

ArgumentException

The identity does not refer to the Word.

ArgumentNullException

The identity is a null reference (Nothing in Visual Basic).

PlcInt16(PlcIdentity, PlcName)

Initializes a new instance of the PlcInt16 class using the specified identity and name.

C#

public PlcInt16(PlcIdentity identity, PlcName name)


Parameters

identity PlcIdentity

The PlcIdentity of the new PlcInt16 to which the PLC value belongs.

name PlcName

The name of the value.


Exceptions

ArgumentException

The identity does not refer to the Word.

ArgumentNullException

The identity or name is a null reference (Nothing in Visual Basic).

PlcInt16(PlcIdentity, PlcName, Int16)

Initializes a new instance of the PlcInt16 class using the specified identity, name and value.

C#

public PlcInt16(PlcIdentity identity, PlcName name, short value)


Parameters

identity PlcIdentity

The PlcIdentity of the new PlcInt16 to which the PLC value belongs.

name PlcName

The name of the value.

value Int16

The initial value of the new PlcInt16.


Exceptions

ArgumentException

The identity does not refer to the Word.

ArgumentNullException

The identity or name is a null reference (Nothing in Visual Basic).

PlcInt16(PlcInt16Type)

Initializes a new instance of the PlcInt16 class using the specified type

C#

public PlcInt16(PlcInt16Type type)


Parameters

type PlcInt16Type

The PlcInt16Type of the new PlcInt16 to which the PLC value belongs.


Exceptions

ArgumentNullException

The type is a null reference (Nothing in Visual Basic).

PlcInt16(PlcInt16Type, Int16)

Initializes a new instance of the PlcInt16 class using the specified type and value.

C#

public PlcInt16(PlcInt16Type type, short value)


Parameters

type PlcInt16Type

The PlcInt16Type of the new PlcInt16 to which the PLC value belongs.

value Int16

The initial value of the new PlcInt16.


Exceptions

ArgumentNullException

The type is a null reference (Nothing in Visual Basic).

PlcInt16(PlcInt16Type, PlcName)

Initializes a new instance of the PlcInt16 class using the specified type and name.

C#

public PlcInt16(PlcInt16Type type, PlcName name)


Parameters

type PlcInt16Type

The PlcInt16Type of the new PlcInt16 to which the PLC value belongs.

name PlcName

The name of the value.


Exceptions

ArgumentNullException

The type or name is a null reference (Nothing in Visual Basic).

PlcInt16(PlcInt16Type, PlcName, Int16)

Initializes a new instance of the PlcInt16 class using the specified type, name and value.

C#

public PlcInt16(PlcInt16Type type, PlcName name, short value)


Parameters

type PlcInt16Type

The PlcInt16Type of the new PlcInt16 to which the PLC value belongs.

name PlcName

The name of the value.

value Int16

The initial value of the new PlcInt16.


Exceptions

ArgumentNullException

The type or name is a null reference (Nothing in Visual Basic).

GetValueCore(PlcDeviceConnection)

Retrieves the current value of the PLC value from a IPlcDevice using the connection specified.

C#

protected override short GetValueCore(PlcDeviceConnection connection)


Parameters

connection PlcDeviceConnection

The PlcDeviceConnection from that the data is to be retrieved.


Returns

Int16

The current value of the PLC value.



Exceptions

InvalidOperationException

The connection is in Faulted state and cannot longer be opened.

ObjectDisposedException

The connection has been disposed of.

RelocateCore(PlcAddress)

Relocates the value to the address specified.

C#

protected override IPlcValue RelocateCore(PlcAddress address)


Parameters

address PlcAddress

The PlcAddress to that the value is to be relocated.


Returns

IPlcValue

A new instance of the same type as this PLC value instance relocated to the address specified.

SetValueCore(PlcDeviceConnection, Int16)

Stores the value in the IPlcDevice assigned to the connection specified.

C#

protected override void SetValueCore(PlcDeviceConnection connection, short value)


Parameters

connection PlcDeviceConnection

The PlcDeviceConnection to use to store the value.

value Int16

The value to be stored.



Exceptions

InvalidOperationException

The connection is in Faulted state and cannot longer be opened.

ObjectDisposedException

The connection has been disposed of.