The FmodErr procedure, shown in Figure 1, consists in:
* RFC open
1) open the RFC loop
2) switch the IMC AA to drift control
3) turn on the 1111Hz excitation line
* FMODERR_TUNING
1) check the linearity of the region
a 100 u step is performed, MOVE_MC_Z_FIXED, and the FmodErr signal delta from the red and the blue region is measured to check if the system is in the error signal linear region (if the Delta signal / Delta MC Z ~ calibration)
if not the system goes in the old saved position and check again the linearity
if yes it goes to FMODERR TUNING
2) compute the tuned position
the tuned position is computed by measuring the FmodErr signal (blue region) and using the calibration the final position and the relative ramp (green one) is computed.
3) if the green region is within the accuracy requirement (1e-5) the procedure is finished, otherwise other cycles are applied
4) restoring the IMC configuration (RFC on, 1111Hz line off and IMC AA on).