XPS Unified Programmer’s Manual
7.2.1.239 PositionerEncoderCalibrationParametersGet
Name
PositionerEncoderCalibrationParametersGet – Gets the encoder calibration
parameters.
Input tests
- Refer to section 7.1: “Input Tests Common to all XPS Functions”.
- Checks the positioner (must be not a secondary positioner): (-8)
- Checks the encoder type (must be “AnalogInterpolated”): (-8)
Description
After a calibration of the analog encoder input (by the function
“GroupInitializeWithEncoderCalibration”), this function returns the optimum
parameters for the analog encoder interface. To take these parameters into account
(recommended to achieve best performance), these values must be entered manually in
the corresponding section of the stages.ini file. The parameters to set in the stages.ini
file are:
• EncoderSinusOffset = ; Volts
• EncoderCosinusOffset = ; Volts
• EncoderDifferentialGain =
• EncoderPhaseCompensation = ; Deg
NOTE
The encoder type must be “AnalogInterpolated” in the stages.ini file
(“EncoderType” parameter).
Prototype
int PositionerEncoderCalibrationParametersGet(
int SocketID,
char * FullPositionerName,
double * SinusOffset,
double * CosinusOffset,
double * DifferentialGain,
double * PhaseCompensation
)
Input parameters
SocketID int Socket identifier gets by the
“TCP_ConnectToServer” function.
FullPositionerName char * Positioner name.
Output parameters
SinusOffset double * Encoder sinus signal offset (Volts).
CosinusOffset double * Encoder cosinus signal offset (Volts).
DifferentialGain double * Encoder differential gain.
PhaseCompensation double * Encoder phase compensation (Deg).
EDH0373En1023 — 01/18 370