XPS Unified Programmer’s Manual
7.2.1.317 SpindleSlaveParametersGet
Name
SpindleSlaveParametersGet – Gets the spindle slave parameters.
Input tests
- Refer to section 7.1: “Input Tests Common to all XPS Functions”.
- Checks the group type (must be a Spindle group): (-8)
- Checks the positioner name: (-18)
- Checks the slave parameters (must be configured): (-22)
Description
This function returns the slave parameters: the master positioner name and the master-
slave ratio.
Prototype
int SpindleSlaveParametersGet(
int SocketID,
char * GroupName,
int NbPositioners,
char * MasterPositionerName ,
double * Ratio
)
Input parameters
SocketID int Socket identifier gets by the
“TCP_ConnectToServer” function.
GroupName char * Spindle group name.
Output parameters
MasterPositionerName char * Master positioner name from any group.
Ratio double * Gear ratio between the master and the slave.
Return (In addition to the results of “Input Tests Common to all XPS
Functions”)
• 0: No error.
• -8: Wrong object type for this command.
• -18: Positioner Name doesn't exist or unknown command.
• -19: GroupName doesn't exist or unknown command.
• -22: Not allowed action.
463 EDH0373En1023 — 01/18