XPS Unified Programmer’s Manual
7.2.1.238 PositionerEncoderAmplitudeValuesGet
Name
PositionerEncoderAmplitudeValuesGet – Gets the encoder amplitude values.
Input tests
- Refer to section 7.1: “Input Tests Common to all XPS Functions”.
- Checks the positioner: (-8)
- Checks the encoder type (must be “AnalogInterpolated”): (-8)
Description
This function returns the maximum and current amplitudes values (in volts) of the
analog encoder input.
NOTE
The encoder type must be “AnalogInterpolated” in the stages.ini file
(“EncoderType” parameter).
Prototype
int PositionerEncoderAmplitudeValuesGet(
int SocketID,
char * FullPositionerName,
double * MaxSinusAmplitude,
double * CurrentSinusAmplitude,
double * MaxCosinusAmplitude,
double * CurrentCosinusAmplitude
)
Input parameters
SocketID int Socket identifier gets by the
“TCP_ConnectToServer” function.
FullPositionerName char * Positioner name.
Output parameters
MaxSinusAmplitude double * Encoder sinus signal maximum amplitude value
(Volts).
CurrentSinusAmplitude double * Encoder sinus signal current amplitude value
(Volts).
MaxCosinusAmplitude double * Encoder cosinus signal maximum amplitude
value (Volts).
CurrentCosinusAmplitude double * Encoder cosinus signal current amplitude value
(Volts).
Return (In addition to the results of “Input Tests Common to all XPS
Functions”)
• 0: No error.
• -8: Wrong object type for this command.
369 EDH0373En1023 — 01/18