#============================================================================== # Abs: LCLS EVR records for IN20 RF02 # # Name: IOC-IN20-RF02evr.substitutions # # Macros: evrWithDelays.db - instantiates an EVR record. # Associated display is evrDiags.edl. # DEV Name of EVR - EVR:: # CARD EVR card number starting at 0 (matches card number in ErConfigure). # DELAY0 to D Initial delay in ticks for normal delay triggers (one tick = 8.4 nsec) # WIDTH Initial pulse width in ticks # # evrEventCtrl.db - instantiates a record for an EVR event. # Associated display is evrTriggerDiags.edl. # DEV Name of EVR - EVR:: # CARD EVR card number starting at 0 (matches card number in ErConfigure). # NAME EVENT1 to EVENT14 - instantiate all 14 records even if you only use a few events. # ID Event code number. 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". Find the event that you want to trigger one or # more devices connected to the EVR. Use number in the Event Code column. # Also check sharepoint spreadsheet: # Controls -> Timing -> timingEventCodes # NOTE: There is a dependency on event code assignments and triggers. # When changing event code assignments below, also change the appropriate # trig.substitutions file! # NOTE: If you don't need to use all 14 event codes, populate the spare records # with other event codes from the "Time Slot 1 to 6 Event Codes" display. # P0 to P13 - trigger state for channels 0 to 13 # (0 = disabled for the event code, 1 = enabled for the event code) # Channels 0 to 3 are used for the front panel triggers. # Channels 0 to 13 are used for the transition module triggers. # The assignments here must match the field selections in trig.substitution. # VME Controls whether an IRQ happens when this event code occurs. # (0 = no IRQ, 1 = IRQ) # Must be set to 1 if you want event record processing using the event code. # Must be set to 1 if you have records with TSE fields set to the event code. # #============================================================================== # file evrWithDelays.db { # Pulse # Device Card Width Channel Delays (clock ticks) pattern { DEV , CARD , WIDTH , DELAY0, DELAY1, DELAY2, DELAY3, DELAY4, DELAY5, DELAY6, DELAY7, DELAY8, DELAY9, DELAYA, DELAYB, DELAYC, DELAYD } { EVR:IN20:RF04, 0 , 12 , 110000, 110000, 110000, 110000, 110000, 110000, 110000, 110000, 110700, 110000, 110000, 110000, 110000, 110000 } } file evrEventCtrl.db { # Device Card <---------------------------- Event --------------------------> pattern { DEV , CARD , NAME , ID ,P0,P1,P2,P3,P4,P5,P6,P7,P8,P9,P10,P11,P12,P13,VME} { EVR:IN20:RF04, 0 , EVENT1 , 32 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0 , 0 , 0 , 0 } { EVR:IN20:RF04, 0 , EVENT2 , 41 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0 , 0 , 0 , 0 } { EVR:IN20:RF04, 0 , EVENT3 , 42 , 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1 , 1 , 1 , 0 , 0 } { EVR:IN20:RF04, 0 , EVENT4 , 43 , 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0 , 0 , 0 , 0 } { EVR:IN20:RF04, 0 , EVENT5 ,140 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0 , 0 , 1 , 0 } { EVR:IN20:RF04, 0 , EVENT6 ,141 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0 , 0 , 0 , 0 } { EVR:IN20:RF04, 0 , EVENT7 ,142 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0 , 0 , 0 , 0 } { EVR:IN20:RF04, 0 , EVENT8 ,143 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0 , 0 , 0 , 0 } { EVR:IN20:RF04, 0 , EVENT9 ,151 , 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 , 0 , 0 , 0 , 0 } { EVR:IN20:RF04, 0 , EVENT10 ,152 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0 , 0 , 0 , 0 } { EVR:IN20:RF04, 0 , EVENT11 ,153 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0 , 0 , 0 , 0 } { EVR:IN20:RF04, 0 , EVENT12 ,154 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0 , 0 , 0 , 0 , 0 } { EVR:IN20:RF04, 0 , EVENT13 ,155 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0 , 0 , 0 , 0 } { EVR:IN20:RF04, 0 , EVENT14 ,149 , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 , 0 , 0 , 0 , 0 } }