#============================================================================== # # Abs: LCLS Trigger records for AS01 EV01 # # Name: trigAS01.substitutions # # Associated Display: evnt_????.edl # # Rem: Instantiate one line for every trigger channel including ones not used. # There should be 3 lines for each PMC EVR without a transition module for the 3 front panel triggers. # There should be 4 lines for each VME EVR without a transition module for the 4 front panel triggers. # There should be 14 additional lines for each PMC or VME EVR that has a transition module. # # Macros: # DEV Name of the device being triggered up to and including the 3rd colon. # Add a qualifying name after the 3rd colon, if necessary, to keep name unique. # If the trigger channel is not used, use "TRIG:::" # where is the location of your IOC and is xxyy, where xx = subsystem # and yy is 01, 02, etc. # DESC Description. Include MAD name in the description if applicable. # POL Initial polarity. 0 = normal, 1 = inverted. Normally restored on reboot. # WID Initial pulse width in nsec. Normally restored on reboot. # DES Initial desired delay in nsec. Normally restored on reboot. # Note: the DES value is with respect to IOC TREF (reference time) which is set in # pattern.substitution: # EVR delay = TREF + TDES - event code delay from the fiducial # CTL Initial state. 0 = disabled, 1 = enabled. Normally restored on reboot. # TEC Trigger event code name. To find all available event codes: # lclshome -> Event -> Events... (in the EVG IOC box). # This display brings up all the event that are beam-dependent. # For events that are beam-independent (constant or standby), select # "Time Slot 1 to 6 Event Codes" and find the event that you want to trigger your device. # Use the middle-mouse-button in the Event Code column to find the PV name. TEC is the # part of the name between "IOC:IN20:EV01:" and "EVNT.A". # Also check sharepoint spreadsheet: # Controls -> Timing -> timingEventCodes # LOCA Location of the EVR that triggers the device. It is the second part of the # EVR:::CTRL record instantiated in evr.db. # UNIT Unit number of the EVR instantiated in evr.db. # IOC Name of IOC that contains the EVR, not including the 3rd colon. # DRVL and DRVH Drive low and high limits for the trigger delay in nsec. # TCTL Field in EVR:::CTRL that enables/disables the trigger: # DGxE, where x=0 to 3 for front panel triggers. # OTPx, where x=0 to 0xD for transition module triggers. # TPOL Field in EVR:::CTRL for polarity: # DGxP, where x=0 to 3 for front panel triggers. # OTxP, where x=0 to 0xD for transition module triggers. # TWID Field in EVR:::CTRL for pulse width: # DGxW, where x=0 to 3 for front panel triggers. # OTxW, where x=0 to 0xD for transition module triggers. # TDES Field in EVR:::CTRL for delay: # DGxD, where x=0 to 3 for front panel triggers. # OTxD, where x=0 to 0xD for transition module triggers. #============================================================================== #----------------------------------------------------------------------------- # Mod: # 13-Mar-2012, D. Rogind (DROGIND): # Add EVR, FILE, CONTROL* comment tags to autogenerate # event trigger edl files # #============================================================================== # file evrDevTrig.db { #EVR EVR:AS01:PM01 #FILE evnt_xt01_pm01 #CONTROLPV1 SIOC:SYS6:AL00:MODE #CONTROLPV2 SIOC:SYS6:AL00:TOD # Device , Description ,polarity,width,delay,event , EVR , EVR, IOC # code ,location,unit pattern { DEV , DESC ,POL, WID, DES , TEC , LOCA , UNIT, IOC , DRVL , DRVH , TCTL , TPOL, TWID, TDES, CTL, TOUT, ACTV} { TRIG:AS01:PM01:0:,"cameras beam" , 0 ,4000, 1 , LCLSBEAM , AS01 , PM01, SIOC:AS01:PM01, -2.8E06, 2.8E06 , DG0E , DG0P, DG0W, DG0D, 1, OUT0, 1 } { TRIG:AS01:PM01:1:,"trigger 1" , 0 ,4000, 1 , LCLSBEAM , AS01 , PM01, SIOC:AS01:PM01, -2.8E06, 2.8E06 , DG1E , DG1P, DG1W, DG1D, 1, OUT1, 1 } { TRIG:AS01:PM01:2:,"trigger 2" , 0 ,4000, 1 , LCLSBEAM , AS01 , PM01, SIOC:AS01:PM01, -2.8E06, 2.8E06 , DG2E , DG2P, DG2W, DG2D, 1, OUT2, 1 } # { TRIG:AS01:4 , "trigger 0" , 0 ,1000, 10 , LCLSBEAM , AS01 , PM01, SIOC:AS01:PM01, -2.8E06, 2.8E06 , OTP0 , OT0P, OT0W, OT0D, 1, OUT0, 1 } # { TRIG:AS01:5 , "trigger 1" , 0 ,1000, 10 , LCLSBEAM , AS01 , PM01, SIOC:AS01:PM01, -2.8E06, 2.8E06 , OTP1 , OT1P, OT1W, OT1D, 1, OUT1, 1 } # { TRIG:AS01:6 , "trigger 2" , 0 ,1000, 10 , LCLSBEAM , AS01 , PM01, SIOC:AS01:PM01, -2.8E06, 2.8E06 , OTP2 , OT2P, OT2W, OT2D, 1, OUT2, 1 } # { TRIG:AS01:7 , "trigger 3" , 0 ,1000, 10 , LCLSBEAM , AS01 , PM01, SIOC:AS01:PM01, -2.8E06, 2.8E06 , OTP3 , OT3P, OT3W, OT3D, 1, OUT3, 1 } # { TRIG:AS01:8 , "trigger 4" , 0 ,1000, 10 , LCLSBEAM , AS01 , PM01, SIOC:AS01:PM01, -2.8E06, 2.8E06 , OTP4 , OT4P, OT4W, OT4D, 1, OUT4, 1 } # { TRIG:AS01:9 , "trigger 5" , 0 ,1000, 10 , LCLSBEAM , AS01 , PM01, SIOC:AS01:PM01, -2.8E06, 2.8E06 , OTP5 , OT5P, OT5W, OT5D, 1, OUT5, 1 } # { TRIG:AS01:10 , "trigger 6" , 0 ,1000, 10 , LCLSBEAM , AS01 , PM01, SIOC:AS01:PM01, -2.8E06, 2.8E06 , OTP6 , OT6P, OT6W, OT6D, 1, OUT6, 1 } # { TRIG:AS01:11 , "trigger 7" , 0 ,1000, 10 , LCLSBEAM , AS01 , PM01, SIOC:AS01:PM01, -2.8E06, 2.8E06 , OTP7 , OT7P, OT7W, OT7D, 1, OUT7, 1 } # { TRIG:AS01:12 , "trigger 8" , 0 ,1000, 10 , LCLSBEAM , AS01 , PM01, SIOC:AS01:PM01, -2.8E06, 2.8E06 , OTP8 , OT8P, OT8W, OT8D, 1, OUT8, 1 } # { TRIG:AS01:13 , "trigger 9" , 0 ,1000, 10 , LCLSBEAM , AS01 , PM01, SIOC:AS01:PM01, -2.8E06, 2.8E06 , OTP9 , OT9P, OT9W, OT9D, 1, OUT9, 1 } # { TRIG:AS01:14 , "trigger 10" , 0 ,1000, 10 , LCLSBEAM , AS01 , PM01, SIOC:AS01:PM01, -2.8E06, 2.8E06 , OTPA , OTAP, OTAW, OTAD, 1, OUT10, 1 } # { TRIG:AS01:15 , "trigger 11" , 0 ,1000, 10 , LCLSBEAM , AS01 , PM01, SIOC:AS01:PM01, -2.8E06, 2.8E06 , OTPB , OTBP, OTBW, OTBD, 1, OUT11, 1 } # { TRIG:AS01:16 , "trigger 12" , 0 ,1000, 10 , LCLSBEAM , AS01 , PM01, SIOC:AS01:PM01, -2.8E06, 2.8E06 , OTPC , OTCP, OTCW, OTCD, 1, OUT12, 1 } # { TRIG:AS01:17 , "trigger 13" , 0 ,1000, 10 , LCLSBEAM , AS01 , PM01, SIOC:AS01:PM01, -2.8E06, 2.8E06 , OTPD , OTDP, OTDW, OTDD, 1, OUT13, 1 } }