ReadData
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
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. |
Outputs
|
Name |
Type |
Description |
|---|---|---|
|
NumberOfPointsRead |
UDINT |
The actual number of points read, which can be less than or equal to the specified NumberOfPoints. |
Return value
UDINT