CAS.CommServer.DataProvider.MODBUSCore Namespace
CAS.CommServer.DataProvider.TextReader Namespace
CAS.Lib.CommonBus.ApplicationLayer Namespace
N:CAS.Lib.CommonBus.ApplicationLayer.Modbus
CAS.Lib.CommonBus.ApplicationLayer.Modbus Namespace
CAS.Lib.CommonBus.ApplicationLayer.SBUS Namespace
ProcessObserver.DataProviders

TextReaderApplicationLayerMaster..::..ReadData Method

Reads process data from the selected location and device resources.

Namespace:  CAS.CommServer.DataProvider.TextReader
Assembly:  DataProvider.TextReader (in DataProvider.TextReader.dll)

Syntax


public AL_ReadData_Result ReadData(
	IBlockDescription pBlock,
	int pStation,
	out IReadValue pData,
	byte pRetries
)
Public Function ReadData ( _
	pBlock As IBlockDescription, _
	pStation As Integer, _
	<OutAttribute> ByRef pData As IReadValue, _
	pRetries As Byte _
) As AL_ReadData_Result
public:
AL_ReadData_Result^ ReadData(
	IBlockDescription^ pBlock, 
	int^ pStation, 
	[OutAttribute] IReadValue^% pData, 
	unsigned char^ pRetries
)

Parameters

pBlock
Type: IBlockDescription
IBlockDescription selecting the resource containing the data block to be read.
pStation
Type: Int32
Address of the remote station connected to the common field bus. –1 if not applicable.
pData
Type: IReadValue%
The buffer IReadValue containing the requested data.
pRetries
Type: Byte
Number of retries to get data.

Return Value

Result of the operation

Exceptions


ExceptionCondition
ArgumentOutOfRangeException