Today we worked on the integration of the DET_MAIN node in ITF_LOCK and the development of automation code related to the SDB* shutters and the OMC:
- DET_MAIN is now managed by ITF_LOCK; therefore, it should not be operated manually anymore, with the exclusion of what will be explained below; the standard state for DET_MAIN in the full lock acquisition until now is SHUTTER_CLOSED; decorators have been spread around in ITF_LOCK taking care of assessing this before starting and during the lock acquisition; the SHUTTER_CLOSED state will be asked as soon as ITF_LOCK will go to DOWN;
- (almost) any state different from SHUTTER_CLOSED will cause an unlock of the ITF;
- instead, in the case that DET_MAIN falls in the FAST_SHUTTER_DEAD state, the following will happen:
- ITF_LOCK will not go in DOWN, as we don't want to unlock if the fast shutter is (possibly) not operational; it is safer to keep the ITF locked; ITF_LOCK will notify this in the GUI, though;
- a manual intervention from an expert is required, who should fix any issue that caused this as first thing;
- then the fast shutter will be operational again, and DET_MAIN should be put manually in INIT (even if the node is managed); this will cause the unlock, so that eventually DET_MAIN will go back to SHUTTER_CLOSED, hence making ITF_LOCK happy again, and the lock acquisition will then resume from scratch;
- while all of this happens, ITF_LOCK itself will take care of closing the slow shutter (via cm command), just in case, and wait for the same timer DET_MAIN would use; in the meantime, the new flag V1:DQ_META_FAST_SHUTTER_DEAD will be raised to 1; it will go back to zero once the situation will be solved;
- IN ANY CASE, DET_MAIN should not be turned off and on again, instead of doing what is described above;
- new states have been added after CARM_NULL_1F, which (will) serve a number of purposes; ALL of them are not requestable and are available only from the full states window:
- SHUTTER_OPENING (index = 109): this state will check that B1p_DC is below a certain level, then it will ask DET_MAIN to open the shutter; such level is configurable and stored in ITF_LOCK.ini, section [SHUTTER]; it has been set to 0.08; in case an update of such threshold is needed when it is too late (once already inside the state), line 3219 of ITF_LOCK.py can be temporarily uncommented (and the node reLOADed) to read this value again; it will read the configuration file every second, so use it with care and revert afterwards;
- SHUTTER_OPEN (index = 110): steady state, nothing is done here; it basically is a CARM_NULL_1F clone but with the shutter open; however, when we are in this state one can ask again CARM_NULL_1F, and the shutter will be closed by going to the following state;
- SHUTTER_CLOSING (index = 108); this will ask DET_MAIN to go to SHUTTER_CLOSED, and then we will fall back to CARM_NULL_1F;
- we tested all of this many times, and everything is working as expected; we profited of these tests to check also the OMC lock and the OMC scan with the OMC_LOCK node:
- we fixed the issue encountered yesterday, which was due to the SDB2_B1* channels being missing from the FDIN_TAG of the OMC_LOCK process in VPM;
- both the lock and the scan are working reliably, paving the way to the forthcoming integration of OMC_LOCK itself to the lock acquisition both for scanning and locking
- a reminder: given that now DET_MAIN is managed, automated OMC scans are no longer possible in the DRMI configuration; a new path will be added, if needed.
The new states layout of ITF_LOCK is attached.