GetCamTable
Gets the information of a cam table.
Syntax
KsError GetCamTable(
int Index,
McCamTable* Table,
int Length,
double* MasterPositions,
double* SlavePositions,
double* PointParameters
);
Parameters
Index [in]: the index of a cam table. Indexes are zero based. Aliases affect this parameter.
Table [in]: the cam table to be read. See the McCamTable structure.
Length [in]: the length of the master and slave position buffers.
MasterPositions [out]: the array that stores the master positions in the cam table.
SlavePositions [out]: the array that stores the slave positions in the cam table.
PointParameters [out]: the additional parameter for the table points, depends on the interpolation type.
Linear interpolation: null.
Poly5 interpolation: it has four point types. "!=" means "not equal to."
- StopPoint: Vel = 0; Acc = 0;
- VelocityPoint: Vel != 0; Acc = 0;
- AccelerationPoint: Vel = 0; Acc != 0;
- MovePoint: Vel != 0; Acc != 0;
Return value
If the function succeeds, it returns errNoError, otherwise an error code. For more information about the error code, see the KsError list.
Example
N/A
Requirements
| RT | Win32 | |
|---|---|---|
| Minimum supported version | 4.0 | 4.0 |
| Header | ksmotion.h | ksmotion.h |
| Library | KsApi_Rtss.lib | KsApi.lib |
See also