Logic:
A) Watch H1:PSL-FSS_AUTOLOCK_STATE
if = 4, set H1:IMC-REFL_SERVO_FASTEN = 1 and H1:IMC-REFL_SERVO_COMCOMP = 1
otherwise set H1:IMC-REFL_SERVO_FASTEN = 0 and H1:IMC-REFL_SERVO_COMCOMP = 0
B) Watch H1:IMC-MC2_TRANS_SUM_INMON
if > threshold, set
ezcawrite H1:IMC-REFL_SERVO_IN1GAIN 0
ezcawrite H1:IMC-REFL_SERVO_COMBOOST 1
ezcawrite H1:SUS-MC2_M2_LOCK_L_GAIN 0.2
ezcaswitch H1:SUS-MC2_M2_LOCK_L FM3 ON
ezcawrite H1:SUS-MC2_M1_LOCK_L_GAIN 1
ezcaswitch H1:SUS-MC2_M1_LOCK_L FM1 ON
otherwise set
echo unlocked $MCval $thresh
ezcawrite H1:IMC-REFL_SERVO_IN1GAIN -10
ezcawrite H1:IMC-REFL_SERVO_COMBOOST 0
ezcawrite H1:SUS-MC2_M2_LOCK_L_GAIN 0
ezcaswitch H1:SUS-MC2_M2_LOCK_L FM3 OFF
ezcawrite H1:SUS-MC2_M1_LOCK_L_GAIN 0
ezcaswitch H1:SUS-MC2_M1_LOCK_L FM1 OFF
I used THRESH_ON=1000, THRESH_OFF=900
Note that Ethercat + one command link to trigger the MC2 filters and gains could easily take care of this.
For now, there are two scripts that do this in ioo/h1/scripts/imc/sballmer :
FSSwatch
MClockwatch
Performance: The typical time from FSS in state 4 to full low noise IMC lock is about 1 to 2 sec, + the 3sec ramp time in the MC2 filters. The longest I
have seen is about 7 sec.
PS: The FSS definitively has to be sped up.