XPS Unified Programmer’s Manual
7.2.1.172 PositionerCompensationDualLoopPhaseCorrectionFilterSet
Name
PositionerCompensationDualLoopPhaseCorrectionFilterSet – Sets the notch mode
filter parameters.
Input tests
- Refer to section 7.1: “Input Tests Common to all XPS Functions”.
- Checks the object type of this command is valid: (-8)
- Checks input parameters value: (-17)
• PhaseCorrectionFn with CorrectorPeriod = 0.0001 s (10 kHz) = >
• PhaseCorrectionFd with CorrectorPeriod = 0.0001 s (10 kHz) = >
• PhaseCorrectionGain ≥0
- Checks the positioner name: (-18)
Description
This function configures the parameters defined for the selected phase correction filter
in dual loop. If the “PhaseCorrectionFn” value = 0 or the “PhaseCorrectionFd”
value = 0 then the phase correction filter is not activated.
Phase correction filter parameters:
- PhaseCorrectionFn.
- PhaseCorrectionFd.
- PhaseCorrectionGain.
Prototype
int PositionerCompensationDualLoopNotchFilterSet(
int SocketID,
char * PositionerName,
int PhaseCorrectionFilterNumber,
double PhaseCorrectionFn,
double PhaseCorrectionFd,
double PhaseCorrectionGain
)
Input parameters
SocketID int Socket identifier gets by the
“TCP_ConnectToServer” function.
PositionerName char * Positioner name.
PhaseCorrectionFilterNumber int Number of the selected selected phase
correction
filter.
PhaseCorrectionFn double Numerator frequency (Hertz) for phase
correction filter.
PhaseCorrectionFd double Denominator frequency (Hertz) for phase
correction filter.
PhaseCorrectionGain double Gain for phase correction filter.