OnRead

OnRead 1:

Called after an ADS read access has completed. The method can be used in the derived implementation to evaluate or further process the read data record.

Syntax

METHOD PROTECTED OnRead
VAR_INPUT
  nDataSet      : UINT;
  pTarget_Data  : PVOID;
  nTarget_Size  : UDINT;
  bParam        : BOOL;
  nParam        : INT;
END_VAR

OnRead 2: Inputs

Name

Type

Description

nDataSet

UINT

Index of the data record that has been read.

pTarget_Data

PVOID

Address of the buffer containing the read data.

nTarget_Size

UDINT

Size of the data buffer in bytes.

bParam

BOOL

Optional parameter of OnInitData.

nParam

INT

Optional numeric parameter from OnInitData.