XPS Unified
EDH0373En1023 — 01/18
7.2.1.258
PositionerHardInterpolatorPositionGet
Name
PositionerHardInterpolatorPositionGet – Gets interpolated position from the encoder
hard interpolator.
Input tests
-
Refer to section 7.1: "Input Tests Common to all XPS Functions".
-
Checks the positioner (must not be a secondary positioner): (-8)
-
Checks the encoder type (must be "AnalogInterpolated"): (-8)
Description
This function returns the position interpolated by the encoder hard interpolator.
The encoder type must be "AnalogInterpolated" or "AnalogInterpolatedTheta" in
the stages.ini file ("EncoderType" parameter).
Prototype
int PositionerHardInterpolatorPositionGet(
int SocketID,
char * FullPositionerName,
double * Position
)
Input parameters
SocketID
FullPositionerName
Output parameters
Position
Return (In addition to the results of "Input Tests Common to all XPS
Functions")
• 0:
No error.
• -8:
Wrong object type for this command.
NOTE
int
Socket identifier gets by the
"TCP_ConnectToServer" function.
char *
Positioner name.
double * Interpolated position.
396
Programmer's Manual