XPS Unified Programmer’s Manual
NOTE
This function can be used only with a position encoder. If no position encoder then
(-24) error is returned.
This function is called automatically at controller reboot and at GroupInitialize()
execution to set the position compare pulse parameters to default values
(PCOPulseWidth to 0.2 µs, EncoderSettlingTime to 0.075 µs).
Prototype
int PositionerPositionComparePulseParametersSet(
int SocketID,
char * FullPositionerName,
double PCOPulseWidth,
double EncoderSettlingTime
)
Input parameters
SocketID int Socket identifier gets by the
“TCP_ConnectToServer” function.
FullPositionerName char * Positioner name.
PCOPulseWidth double Width of PCO pulses (μs).
EncoderSettlingTime double Encoder signal settling time (μs).
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.
• -22: Not allowed action.
• -24: Not available in this configuration (check hardware or configuration).
• -115: Function is not supported by current hardware.
417 EDH0373En1023 — 01/18