XPS Unified
EDH0373En1023 — 01/18
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 =
• EncoderCosinusOffset =
• EncoderDifferentialGain =
• EncoderPhaseCompensation =
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
FullPositionerName
Output parameters
SinusOffset
CosinusOffset
DifferentialGain
PhaseCompensation
; Volts
; Volts
; Deg
NOTE
int
Socket identifier gets by the
"TCP_ConnectToServer" function.
char *
Positioner name.
double *
Encoder sinus signal offset (Volts).
double *
Encoder cosinus signal offset (Volts).
double *
Encoder differential gain.
double *
Encoder phase compensation (Deg).
370
Programmer's Manual