XPS Unified Programmer’s Manual
Prototype
int PositionerCompensatedPCOPrepare(
int SocketID,
char * PositionerName
int ScanDirection,
double StartPosition1,
double StartPosition2,
double StartPosition3,
…
)
Input parameters
SocketID int Socket identifier gets by the
“TCP_ConnectToServer” function.
PositionerName char * Positioner name.
ScanDirection int Scan direction (1 or -1).
StartPosition1 double Group 1
st positioner start position (units).
StartPosition2 double Group 2
nd positioner start position (units).
StartPosition3 double Group 3
rd positioner start position (units).
….
Output parameters
None.
Return (In addition to the results of “Input Tests Common to all XPS
Functions”)
• 0: No error.
• -8: Wrong object type for this command.
• -17: Parameter out of range or incorrect
• -18: Positioner Name doesn't exist or unknown command.
• -24: Incorrect file name, bad section name, or not available in this
configuration (check hardware or configuration).
• -35: Position is outside of travel limits.
• -115: Function is not supported by current hardware.
• -121: Function is not allowed due to configuration disabled.
• -122: Data incorrect (wrong value, wrong format, wrong order or inexistent).
249 EDH0373En1023 — 01/18