Recently we implemented the automatic misalignment of SR in TX+ while acquiring the lock of the DRMI, with the consequent realignment once the PR AA loop is engaged in full-bandwidth. This is done in the LOCKING_DRMI_1F state of DRMI_LOCK, and reverted in the ENGAGING_ASC_FULL_BAND state. A global variable follows whether the SR is misaligned in this way or not. In ACQUIRE_DRMI_1F (the state before LOCKING_) we also realign SR (if needed) to avoid stacking-up these deltas and to facilitate the cross pre-alignment (the same happens in DOWN).
An issue has been found when the node enters the ACQUIRE_DRMI_1F state with the SR misaligned: here SR gets realigned, but the automation is too fast and moves forward in misaligning it again in LOCKING_ before the ramp is over. So an intermediate setpoint is read and a fraction of the delta is stacking on the standard +5. This happened today thrice in a row (Figure), resulting in ~+4 urad of additional delta.
Today I implemented two timers in ACQUIRE_DRMI_1F: one after the SR realignment, to overcome this issue waiting until this is over before moving to LOCKING_. Another timer has been put before the SR realignment, just in case the same happens the other way around if we should unlock during the realignment ramp in ENGAGING_ASC_FULL_BAND (which should happen less often to begin with). To be evaluated if the same is also needed in DOWN (which should be even more unlikely).
I updated the DRMI_LOCK code and made a rough check via graph generation, but I did not reload the node not to disturb the ongoing activity. This should be possibly done tomorrow morning during the ISC shift and this feature checked.