XPS Unified Programmer’s Manual
7.2.1.315 SpindleSlaveModeDisable
Name
SpindleSlaveModeDisable – Disables the slave-master mode.
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 group name: (-19)
- Group state must be "SLAVE”: (-22)
Description
This function disables the master-slave mode for a spindle group. If a motion is in
progress then it is aborted.
To use this function, the group state must be SLAVE (46). If it’s not the case then (-22)
error is returned.
Prototype
int SpindleSlaveModeDisable(
int SocketID,
char * GroupName
)
Input parameters
SocketID int Socket identifier gets by the
“TCP_ConnectToServer” function.
GroupName char * Spindle group name.
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.
• -18: Positioner Name doesn't exist or unknown command.
• -19: GroupName doesn't exist or unknown command.
• -22: Not allowed action.
461 EDH0373En1023 — 01/18