XPS Unified Programmer’s Manual
7.2.1.318 SpindleSlaveParametersSet
Name
SpindleSlaveParametersSet – Sets the spindle slave parameters.
Input tests
- Refer to section 7.1: “Input Tests Common to all XPS Functions”.
- Checks the master group type: (-8)
- Checks the ratio value (Ratio >0): (-17)
- Checks the master positioner name: (-18)
- Checks the slave parameters (must be configured): (-22)
- Checks the base velocity value (must be null): (-48)
Description
This function configures the slave parameters only for a Spindle group.
The slave is a master copy and a ratio can be applied: Slave = Ratio * Master.
The slave-master mode is activated only after calling of “SingleAxisSlaveModeEnable”
function.
The master can be a positioner from a spindle group only. If the master group is another
group type then (-22) error is returned. The master positioner must be different from the
slave positioner else (-8) error is returned.
NOTE
After an emergency stop, the master group and the slave group are in “NOTINIT”
state. To restart a master-slave relation, the slave group(s) must be reinitialized
before the master group.
Prototype
int SpindleSlaveParametersSet(
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.
MasterPositionerName char * Master positioner name from any group.
Ratio double Gear ratio between the master and the slave.
Output parameters
None.
EDH0373En1023 — 01/18 464