PlcDeviceConnection.ReadInt32 Method (PlcAddress)

Reads the value stored at the specified address as a Int32 (in PLC a DINT) object.

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

C#

public int ReadInt32(
	PlcAddress address
)


Parameters

address
Type: IPS7Lnk.Advanced.PlcAddress
The address of the data area to read.

Return Value

Type: Int32
The value stored at the area specified by address.

Exception Condition
ArgumentException The address does not refer to the DWord.
ArgumentNullException The address is a null reference (Nothing in Visual Basic).
InvalidOperationException The connection is not in Opened, Connected or Disconnected state and is therefore not ready to use or the connection is in Faulted state and cannot longer be used.
ObjectDisposedException The connection has been disposed of.


Reference