XPS Unified
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.
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
FullPositionerName
Output parameters
MaxSinusAmplitude
CurrentSinusAmplitude
MaxCosinusAmplitude
CurrentCosinusAmplitude double * Encoder cosinus signal current amplitude value
Return (In addition to the results of "Input Tests Common to all XPS
Functions")
• 0:
No error.
• -8:
Wrong object type for this command.
NOTE
int
Socket identifier gets by the
"TCP_ConnectToServer" function.
char *
Positioner name.
double * Encoder sinus signal maximum amplitude value
(Volts).
double * Encoder sinus signal current amplitude value
(Volts).
double * Encoder cosinus signal maximum amplitude
value (Volts).
(Volts).
369
Programmer's Manual
EDH0373En1023 — 01/18