ReadData

ReadData 1:

Reads data points from index StartIndex to StartIndex + NumberOfPoints - 1. The first valid index is 1.

Syntax

Definition:

METHOD ReadData : UDINT
VAR_INPUT
    DestinationAddress : Pointer To MotionFunctionPoint;
    NumberOfPoints     : UDINT;
    StartIndex         : UDINT;
END_VAR
VAR_OUTPUT
    NumberOfPointsRead : UDINT;
END_VAR

ReadData 2: Inputs

Name

Type

Description

DestinationAddress

Pointer To MotionFunctionPoint

Pointer to the destination buffer for the requested data points.

NumberOfPoints

UDINT

Number of points to read.

StartIndex

UDINT

Index of the first point to read.

ReadData 3: Outputs

Name

Type

Description

NumberOfPointsRead

UDINT

The actual number of points read, which can be less than or equal to the specified NumberOfPoints.

ReadData 4: Return value

UDINT