Add new production logic for LTU Dechirper (except for BLF logic, added in previous release). Note that there is a separate temporary version of 'commissioning' logic, 2015-09-08-z. Details can be found here: https://slacspace.slac.stanford.edu/sites/controls/specialprojects/dechirper/Documents/Dechirper%20MPS/Dechirper_MPS.docx [sonya@lcls-dev2 algorithm]$ sdiff -bs 2015-09-08-a/doc/MPSLogicDocumentation.txt 2015-09-04-a/doc/MPSLogicDocumentation.txt .. title:: MPS Logic 2015-09-08-a | .. title:: MPS Logic 2015-09-04-a Ignored when LTU Dechirper Is Out, Stopper: BSY D2 Summary Is < ============================================================= < < LTU Dechirper - Undulators Must Be Out If Dechirper Not Out < ----------------------------------------------------------- < ============ = ==================== ==================== ==== < Name A Pockels Cell Mechanical Shutter < ============ = ==================== ==================== ==== < Unds Not Out F 0 Hz 0 Hz < Unds All Out T 120 Hz 120 Hz < ============ = ==================== ==================== ==== < < Where:: < < A = USEG_UND1_1_ALL_OUT_STATE < < < < Ignored when LTU Dechirper Is Out, Stopper: BSY D2 Summary Is < ============================================================= < < LTU Dechirper - 10 Hz Rate Limit if Dechirper Not Out < ----------------------------------------------------- < The following code assigns the truth table's state number to < < /* < * This logic enforces a 10 Hz rate unless < * < * a. All 4 Dechirper jaws are OUT < * or < * b. An upstream stopper (YAG01, YAG02, TD11, D2) is IN < * < * It's a little unusual because inputs are not used in < * and there is only one state in the truth table. < * < * If you need to bypass this, you must manually bypass t < * jaw(s) that are not out to IS_OUT < * < * These inputs are in Link Node 28, Card 2: < * < * Ch 1 DCHP:LTU1:555:OUT_LIMSW_NEGX < * Ch 2 DCHP:LTU1:555:OUT_LIMSW_POSX < * Ch 3 DCHP:LTU1:545:OUT_LIMSW_NEGY < * Ch 4 DCHP:LTU1:545:OUT_LIMSW_POSY < */ < < state = 1; < ================== ===== ==================== =============== < Name State Pockels Cell Mechanical Shu < ================== ===== ==================== =============== < Dechirpers Not Out 1 10 Hz < ================== ===== ==================== =============== < < < LTU Dechirper - BPM 550 Watchdog < -------------------------------- < ==================== = ==================== ================= < Name A Pockels Cell Mechanical Shutt < ==================== = ==================== ================= < BPM 550 not updating F 0 Hz 0 < Ok T 120 Hz 120 < ==================== = ==================== ================= < < Where:: < < A = DCHP_LTU1_545_WDOG_SUM_STATE < < < LTU Dechirper - BPM 550 X/Y Position < ------------------------------------ < ========== = ==================== ==================== ====== < Name A Pockels Cell Mechanical Shutter < ========== = ==================== ==================== ====== < Out of tol F 0 Hz 0 Hz < Ok T 120 Hz 120 Hz < ========== = ==================== ==================== ====== < < Where:: < < A = DCHP_LTU1_545_BPM_INTOL_THRESHOLD < < < < LTU Dechirper - Horizontal Gap Too Small < ---------------------------------------- < ============= = ==================== ==================== === < Name A Pockels Cell Mechanical Shutter < ============= = ==================== ==================== === < Gap too small F 0 Hz 0 Hz < Gap Ok T 120 Hz 120 Hz < ============= = ==================== ==================== === < < Where:: < < A = DCHP_LTU1_555_GAP_LIMSW_NEGZ_POSITION < < < LTU Dechirper - Vertical Gap Too Small < -------------------------------------- < ============= = ==================== ==================== === < Name A Pockels Cell Mechanical Shutter < ============= = ==================== ==================== === < Gap too small F 0 Hz 0 Hz < Gap Ok T 120 Hz 120 Hz < ============= = ==================== ==================== === < < Where:: < < A = DCHP_LTU1_545_GAP_LIMSW_NEGZ_POSITION < < < LTU Dechirper Is Out < -------------------- < ==== = = = = ==================== ==================== ====== < Name D C B A Pockels Cell Mechanical Shutter < ==== = = = = ==================== ==================== ====== < Out T T T T -- -- < ==== = = = = ==================== ==================== ====== < < Where:: < < A = DCHP_LTU1_545_OUT_LIMSW_NEGY_POSITION < B = DCHP_LTU1_545_OUT_LIMSW_POSY_POSITION < C = DCHP_LTU1_555_OUT_LIMSW_NEGX_POSITION < D = DCHP_LTU1_555_OUT_LIMSW_POSX_POSITION < < <