Release Notes for the Master Pattern Generator (MPG) IOC Application
--------------------------------------------------------------------
mpg-R3-5-2: Carolina Bianchini (carolina) 24-Oct-2016:
        - Changing in file mpgApp/Db/mpg/mpgEventFACET.substitutions : Beam code 10 to 3.
	- Change event code 203 name & PV Name to FACET Electron from Beam.

mpg-R3-5-1: Carolina Bianchini (carolina) 24-Oct-2016:
	- Add databases with SYS7 for ASTA EVG and adjust them for astahome display. (mpgApp/Db/mpg and mpgApp/Db/ioc)
	- Use RESYNC functionality in ioc-as01-ev01 st.cmd file, which required the inclusion of the VMTG.db

mpg-R3-5-0: Stephanie Allison (saa) 09-Aug-2016: 
	- Add 6 more event code sequences and 8 more hutch IDs.

mpg-R3-4-0: Stephanie Allison (saa) 25-Jul-2016: 
	- Add 5 spare event codes (LCUSER1,2,3,4,5).

mpg-R3-3-2: Stephanie Allison (saa) 18-Jun-2016: 
	- Upgrade event-R4-2-5, miscUtils-R2-2-3, devBusMapped-R3-1-1, 
	  udpComm-R2-5-9-BR-3, mps-R1-0-1-branch-R2-3, VMTG-R1-2-2.

mpg-R3-3-1: Stephanie Allison (saa) 07-Jun-2016: 
	- Upgrade event-R4-2-2.
	- Change event RATE records to MEDIUM priority so they are lower
	  priority than the BSA records

mpg-R3-3-0: Stephanie Allison (saa) 25-May-2016: 
	- Add edefAllDone mask to pattern.
	- Upgrade to iocAdmin-R3-1-14_1-0 and event-R4-2-2.
	- Change event RATE records to HIGH priority to prevent rate flickering.

mpg-R3-2-8: Carolina Bianchini (carolina) 01-Mar-2016: For   CATER Id: 	95788	    Job Number:	4
             -Fix bug in event code sequence 10 where statuses are now updated

mpg-R3-2-7: Carolina Bianchini (carolina) 16-Feb-2016: For CATER 95788 Task 15
	     -Add a if condition that is checking if the event sequence dimention is changing and if so it validates the sequence otherwise it is not needed to be validated.
	     -file mpsEventCodeSequence.c got changed.

mpg-R3-2-6: Carolina Bianchini (carolina) 16-Feb-2016: For CATER 95788 Task 12
	     -Add 2 more timing system photon hutch configurable beam delivery patterns (aka event code sequences) file: mpgApp/Db/eventCodeSequence/eventCodeSequence.substitutions
	      mpgApp/src/mpgEventCodeSequence.h
	     -clean up the boot from alias errors, Task 13 file:mpgApp/Db/mpg/mpgEvent.db

mpg-R3-2-5: Carolina Bianchini (carolina) 19-Jan-2016: For CATER 105824
	  -Make a function in mpgPattern to "Abort beam at BYKIK every bykikAbortPeriodInBeamShots beam shots".
	  -Make a call of this function in mpgPatternMod to be able to take measurement at the exact rate while BYKIK_LTU is included/excluded.
           And make possible to schedule this bit.
          -Changed a if instruction in mpgPattern.c to a logic totally unique to LCLS as BYKIK

mpg-R3-2-4: Carolina Bianchini (carolina) 13-Jan-2016: For CATER 129213
        -upgrade to cram mpg application.
	-Adding a VMTG and PNET flag to recognize if the module is present or not.
	-fixing error messages from the bootup and "Diagnostic panel" values.

mpg-R3-2-3: Mike Zelazny (zelazny) 04-May-2015: For CATER 124343.
	Alias Event Code PVs so that, for example, 
	EVNT:SYS0:1:LCLSBEAMCTRL is also known as EVNT:SYS0:140:CTRL.

mpg-R3-2-2: (KHKIM) 11-24-2014

	- add beam acquire bit for positron beam (MOD5 bit # 30)
        background information) BPM system is looking at MOD5 bit #29 for the beam acquiring.
        But, the bit #29 is only for electron beam. FACET BPM system needs to know about the Positron beam also.
        Thus, we are going to allocated MOD5 bit #30 for Positron Beam Acquiring.
        BPM system need to change its BEAM FULL mask to accept both bits
        (ie, MOD5_ANYFULL_MASK = 0x30000000)

	M mpgApp/Db/mpg/mpgPatternFACET.substitutions


mpg-R3-2-1: (KHKIM) 11-11-2014
	- add Positron 2Hz event and Electron 2Hz event for FACET

	M mpgApp/Db/mpg/mpgEventFACET.substitutions


mpg-R3-2-0: (KHKIM) 10-10-2014
        - use mps-R1-0-1-branch-R2-0 to avoid priority inversion issue
        - adjust pnetTask priority to epicsThreadPriorityMax, epics osi doesn't allow to set up epicsThreadPriorityMax+1.
        - adjust mpsCommRscv priority to epicsThreadPriorityMax-1 to avoid bothering 360Hz processing
        - remove the hardcoded ESA_MASK bit broadcasting: MOD2 0x00800000

	M configure/RELEASE
	M mpgApp/src/drvPnet.c
	M mpgApp/src/mpgPattern.c
	M mpgApp/src/mpsCommunication.c


mpg-R3-1-6: (KHKIM) 06-20-2014
       - Automatic configuration for EVG-200 and EVG-230
         EVG-230 (firmware 0x4xx) has different definition for clock confiugration register.
         the new software recongize hardware version and configure the clock configuration register correctly.

mpg-R3-1-5: (KHKIM) 06-09-2014
       - Add up new event codes for the FACET Positron beam

mpg-R3-1-4: (SAA) 06-05-2014
       - Don't validate if an event code sequence array hasn't changed 
	 and previous validation is Ok.
mpg-R3-1-3: (SAA) 10-15-2013
       - Correct event code sequence bugs in previous release.
mpg-R3-1-2: (SAA) 10-11-2013
       - Change event code sequence based on new requirements for
	 repeat sync checking and automatic burst stopping.
mpg-R3-1-1: (SAA) 10-06-2013
       - Correct event code sequence bugs in previous release.
mpg-R3-1-0: (SAA) 09-18-2013
       - Zelazny added SYS2 databases and startup for ioc-b34-ev03
       - Allison added changes for event code sequence rework.
	 Details here:
	 https://slacspace.slac.stanford.edu/sites/controls/Controls%20Operations%20and%20Maintenance%20Documents/Timing/Event%20Sequencer%20User%20Manual.docx


********************  PLEASE READ **********************************
IMPORTANT NOTE - mpg-R3-0-0 and above only works with 
                 PNETSupport-R1-0-0 and above.  If backing out
		 to lower versions of either application, both
		 applications must be backed out and both  
		 EVG and PNET iocs restarted.
********************************************************************
mpg-R3-0-0: (SAA) 08-20-2013
       - edefMask.st, edefReserve.st, and associated PVs moved to 
	 PNET Support application.
       - ECS now only has 201 to 216 additional event codes.
       - Write event code delays to PVs in the PNET Support application.
       - Remove sequencer from RELEASE and src/Makefile.
       - Remove aaoRecord.c from src and use the one from base.
       - Add autosave-req files for reference.
       - Add more macros to automatically start system EDEFs on reboot.
	 Correct beamcode and mask macros from FACET and XTA.

mpg-R2-6-16: (SAA) 06-19-2013
       - Remove modulo36 event codes (201-236).
       - Add 201-232 to ECS for LCLS only.
       - Add event codes 221 to 232 for FACET.

mpg-R2-6-15: (SSTUBBS) 06-19-2013
	- added lines in st.cmd and Makefile related to autosave
	       M mpgApp/Db/ioc/Makefile
	       M iocBoot/ioc-xt01-ev01/st.cmd
	       M iocBoot/ioc-sys1-ev01/st.cmd
	       M iocBoot/ioc-in20-ev02/st.cmd
	       M iocBoot/ioc-in20-ev01/st.cmd
	       M iocBoot/ioc-b34-ev01/st.cmd

mpg-R2-6-14: (KHKIM)
       - doubling the ECS groups
               M iocBoot/ioc-b34-ev01/st.cmd
               M iocBoot/ioc-in20-ev01/st.cmd
               M iocBoot/ioc-xt01-ev01/st.cmd
               M mpgApp/Db/eventCodeSequence/eventCodeSequence.substitutions
               M mpgApp/src/drvEcsSyncedBurst.c
               M mpgApp/src/mpgEventCodeSequence.h


mpg-R2-6-13: (KHKIM) 03-06-2013
       - build against udpComm-R2-4-1 and mps-R1-0-1-branch-R1-10
       - we have decide to drop the branched version for the udpComm and use the main turnk.

mpg-R2-6-12: (KHKIM) 03-05-2013
       - Set up BEAM FULL bit for FACET BPMs
                M mpgApp/Db/ioc/evgPatternLI20.substitutions
                M mpgApp/Db/mpg/Makefile
                A mpgApp/Db/mpg/mpgPatternFACET.substitutions
       - upgrade event module and udpComm
             UDPCOMM_MODULE_VERSION=udpComm-R2-4-0-BR-2-0
             EVENT_MODULE_VERSION=event-R3-2-2-br_generaltime-3-0

#      - Correct Event Definition and EDEFs for the XTA

mpg-R2-6-11: (KHKIM) 02-13-2013
      - Add new event (PMAQ-PM DACQ) for FACET
                M mpgApp/Db/mpg/mpgEventFACET.substitutions
      - Beam code chage for XTA (switch from 10 to 7)
                M mpgApp/Db/mpg/mpgEventXTA.substitutions
      - Set up BEAMFULL bit for XTA BPMs
                M mpgApp/Db/ioc/evgPatternXT01.substitutions
                M mpgApp/Db/mpg/Makefile
                A mpgApp/Db/mpg/mpgPatternXTA.substitutions
      - Update event module and mps module
                M configure/RELEASE

mpg-R2-6-10: (KHKIM) 12-05-2012
      - Event Code Sequencer (ECS) Synced BURST mode
		A README_ECS_Synced_BURST
		M iocBoot/ioc-b34-ev01/st.cmd
		M iocBoot/ioc-in20-ev01/st.cmd
		M iocBoot/ioc-sys1-ev01/st.cmd
		M iocBoot/ioc-xt01-ev01/st.cmd
		A mpgApp/Db/eventCodeSequence/ecsSyncedBurst.db
		M mpgApp/Db/eventCodeSequence/eventCodeSequence.substitutions
		M mpgApp/src/Makefile
		A mpgApp/src/drvEcsSyncedBurst.c
		A mpgApp/src/drvEcsSyncedBurst.dbd
		A mpgApp/src/ecsSyncedBurst.h
		M mpgApp/src/mpgEvent.c

mpg-R2-6-9: (KHKIM) 09-17-2012
      - add new event for LCLS - A-line kicker (162n-1)
      - change code to allow the absent of the PNET module, EVG can run without PNET
      - apply autosave for the event code definitions
      - apply autosave for the pnet sync masks

      - apply new mps module to fix a bug on the mpsCommunication
        we can avoid mpsCommunication deadlock during the initialize.

mpg-R2-6-8: (KHKIM) 05-24-2012
      - add up profile event for the FACET


mpg-R2-6-7: (KHKIM) 05-04-2012
      - remove the pulse id offset between PNET and EVG

mpg-R2-6-6: (KHKIM) 04-18-2012 for FACET
      - add up new events for the FACET
        RF Accel & RF Standby
      - change event definition for beam and scavenger

mpg-R2-6-5:
      - variable name change in the configure/RELEASE file
        to expose ASYN explicitely.

        IP330_ASYN_MODULE_VERSION
        IP440_ASYN_MODULE_VERSION

      - put PINI=YES for the rate selectors: 'KLYS STDBY & NO TACV0' and "KLYS STDBY & NO TACV3'

mpg-R2-6-4:
      - merge the variations from FACET, XTA to LCLS
      - update PABIG software for the error reset
      - build againset latest event module: event-R3-2-2-br_generaltime-2-1
      - rid out the sigle shot mode from the burst control
      - fix burst mode bug (rate double at 120Hz beam operation)
      - add new burst mode rate: pattern rate - sync with MOD2:0x20000 bit. (Stanek's new burst bit)
   
mpg-R2-6-3:
      - Move TMSK PVs to EVG
        TRIG:SYS0:1:BEAMCODEn_TMSK (n=[1..4]) are moved into EVG 
        Update autosave request file to include the new PVs
        Channel Access Security set up for evGUI (new scecurity group: EVGUI)

mpg-R2-6-2: 
      - edefMask.st: Swall NULL PNBN NAMEs

mpg-R2-6-1: (KHKIM) 11-07-2011
      - to fix BSA issues on EVG use new event module: event-R3-2-2-br_generaltime-1-3

mpg-R2-6-0: (KHKIM) 10-25-2011
    * merging PABIG edition (HEAD) + branch for LCLS operation (R2-5-1-5)
      - epics base has been chaged to R3-14-12
      - switch to RTEMS 4.9.4 
Remark) previous rtems path
        >mccfs2:/export/mccfs/usr/local:lcls/rtems/rtems-4.9.1/target/ssrlApps/powerpc-rtems/beatnik/bin/rtems.ralf
        new rtems path
        >mccfs2:/export/mccfs/usr/local:lcls/rtems/rtems-4.9.4/target/ssrlApps/powerpc-rtems/beatnik/bin/rtems.ralf

      - switch to use Autosave from the ChannelWatcher
      - Use caPutLog
                

mpg-R2-5-1-5: (KHKIM)
    * extend the event number for the event sequence code
       - originally, 32 events were allocated (67-98)
       - due to the request from photon group, 32+32 events are allocated in new version
         (67-98, and 167-198)
       - add up new event numbers into the mpgEventAll.substitutions
       - adjust min.max event code for each sequence group: eventCodeSequence.substitutions

    * selectable sync marker for the event code sequence
       -add up new PV $(IOC):ECS_SYNCMARKER
          ".5Hz-(TS4&.5Hz)"
          "1Hz-(TS4&1Hz)"
          "5Hz-(TS4&5Hz)"
          "10Hz-(TS4&10Hz)"
          "30Hz-(TS4&30Hz)"
          "60Hz-(TS4)"
          "120Hz-(TS4|TS1)"

     * sleectable beam pulse request marker for the event code sequence
       - add up new PV $(IOC):ECS_BEAMPULSEREQ
          "TS4|TS1"
          "BeamFull"


mpg-R2-5-1-4: (KHKIM)
    * fix bug on the event code sequence
      - switch sync marker from MODULO720_MASK to (HALFHZ_MASK + TIMELOST4): exactly same as the event number 46
      - change beam counting: TIMESLOT4 + TIMESLOT1 without Pockel Cell Permit (same as the event number 40)

mpg-R2-5-1-3: Preparing for a new release; and this is a test


mpg-R2-5-1-2:
    * fix BSA AO timestamp bug
      mpgApp/Db/mpg/mpgPattern.db a
    * Build with event-R3-2-2-lcls3

mpg-R2-5-1-1: 
    * Branch out from R1-5-1
    * Fix Event Code Sequence: zero beam delay + non-zero beam delay combination

mpg-R2-5-1:

mpg-R2-5-0: Oct 18, 2010 (KHKIM)
    * divide the 32 available codes into 4 sets of 8.
     (DRVH and DRVL in the event sequece code MIN and MAX PVs)

mpg-R2-4-0: Sep 8, 2010 (KHKIM)
    * Add first event skip flag to skip counting the first evnet
    * Adjust record priority to high for the BSA pattern PVs. 

mpg-R2-3-0: May 26, 2010
    * Event code 162 delay < 140 delay.

mpg-R2-2-0: Apr 27, 2010
    * Added BYKIK abort countdown PV.

mpg-R2-1-0: Apr 27, 2010
    * Added BYKIK abort control.

mpg-R2-0-9: Apr 26, 2010
    * Event code sequences start synchronized to TS1's 0.5 Hz
      marker.
    * Release.common added to avoid editing tagged files on dev or
      production machines.

mpg-R2-0-8: Mar 5, 2010
    * Added event code sequences
    * mpgApp/Db/mpg/mpgEventRateDes.db - default standby rates
      to 60 Hz instead of 30 Hz.
    * mpgApp/Db/mpg/mpgEventAll.substitutions - remove 30 Hz bit
      from pockels cell, kicker, and standby event codes.

mpg-R2-0-7: Jan 28, 2010
    * PNBN database moves to PNETSupport soft IOC sioc-sys0-pn00

mpg-R2-0-6: Nov 30, 2009
    * configure/RELEASE - use mpg-R0-0-5.
    * mpgApp/src/mpsCommunication.c - 
      - MPS receiver thread now started by another function call.
      - Print the last error message from MPS when there is a bad status.
      - Create the mutex first before initializing MPS.
      - Add routine to send a message to the link processor on request.
    * mpgApp/Db/mpg/mpgPatternProc.db - add record to send message to
      link processor.

mpg-R2-0-5: Nov 19, 2009
    * configure/RELEASE - use event-R3-0-5.  Add udpComm-R0-0-1 and
      mps-R0-0-3 for MPS communication.
    * mpgApp/src/mpsCommunication.c,.h,.dbd, Makefile - MPS interface.
    * mpsApp/src/drvPnet.c - add MPS interface to get MPS modifier and
      give it to pipeline processing.  Add HW timer to wait for MPS
      input.  Add bsaInit to initialization as now required by event.
    * mpgApp/src/mpgEvent.c,.h,.dbd - Add mpgEventState so that event
      code update diagnostics are separate from pattern diagnostics.
      Remove mpgEventCount* routines that are no longer called by
      mpgPatternState.
    * mpsApp/src/edefReserve.st, edefMask.st - 
      Use 5 inclusion and exclusion modifier masks instead of just 3 so 
      that EDEFs can check modifier 5 (rate bits) and modifier 6 
      (MPS bits).  Replace 2 16 bit A and B modifier masks with just 1
      32 bit mask.  Increase PNBN units from 124 to 140 to name 
      modifier 5 and 6 bits.  Don't initialize inclusion/exclusion
      masks - use the initial values set in the database.
    * mpgApp/src/mpgPattern.c,.h - put the MPS modifier into the
      pipeline.  Add NTP status checks.  Remove event code diagnostics
      and add MPS and NTP diagnostics.  Add MPS to simulator.
    * mpgApp/src/mpgPatternMod.c - add acquisition-only bits to EDEF
      processing so that BPM acquisition can be controlled independent
      of EDEFs.
    * mpgApp/Db/mpg/mpgPnbn.db, mpgPnbnAll.substitutions, Makefile and
      mpgApp/Db/ioc/evgPatternIN20.substitutions -
      Add PNBN (bit description) units for modifier 5 and 6 bits.  
      These supplement the PNBN units provided by the SLC control system.
    * mpgApp/Db/mpg/mpgEvent.db, mpgEventMod.db, mpgPatternMod.db, 
      mpgPatternModOff.db -
      add macros for modifier 6 inclusion and exclusions masks.
    * mpgApp/Db/mpg/bsaEdefMask.db, bsaEdefAll.substitutions -
      Change inclusion/exclusions masks from 2 16 bit records (A and B) 
      to 1 32 bit record.  Give proper initial values to all masks,
      including the TCAV3 exclusion on FBCK2.  Initialize NMEAS to 10 
      for FBCK1.
    * mpgApp/Db/mpg/bsaEdef.db - change count input from J to Y to free
      up J for future extra beam code.  Add beam code macro.  Remove
      control macro since all EDEFs always start Off.  Allow NMEAS to
      be saved/restore on reboot.
    * mpgApp/Db/mpg/mpgEventAll.substitutions, mpgEventRateDes.db -
      Add records to change the rate of the klystron standby event codes.
      Add macros for modifier 6 inclusion and exclusion masks.
      Change LCLSTBD1 to LCLSSTBY for an alternate klystron standby event 
      code (to use instead of 40 to 46).
    * mpgApp/Db/mpg/mpgPatternProc.db - add MPS and event code diagnostic
      records.
    * mpgApp/Db/mpg/mpgPatternModAcq.db, mpgPatternAll.substitutions -
      Add records to set up BPM acquisition bit processing.  Add macros
      for modifier 6 inclusion and exclusion masks.
    * iocBoot/ioc-in20-ev01/st.cmd - added udpComm configuration.

mpg-R2-0-3: Oct 6, 2009
    * configure/RELEASE - use event-R3-0-3.
    * mpgApp/src/edefMask.st - rename 3 EVG_SPAREx bits for burst and
      the 2 kickers.  Hardcode default masks instead of using SLC.
      Correct compiler warnings.
    * mpgApp/src/edefRelease.st - Hardcode default masks instead of 
      using SLC.  Correct compiler warnings.
    * mpgApp/src/mpgPatternMod.c, mpgPattern.dbd - changes for burst
      and single-shot.
    * mpgApp/Db/mpg/mpgEventAll.substitutions - add kicker event codes.
      Change burst event code to use burst bit.
    * mpgApp/Db/mpg/mpgPatternAll.substitutions, mpgPatternMod.db,
      mpgPatternModOff.db - changes for burst and single-shot.

mpg-R2-0-2: July 31, 2009
    * configure/RELEASE - use event-R3-0-2 and iocAdmin-R3-1-1.
      Add calc and sscan to get scalcout record support.
    * mpgApp/Db/ioc/Makefile - install iocAdminSoft.db and 
      iocAdminRTEMS.db.  Add creation of iocRelease.db.
    * iocBoot/*/st.cmd - load iocAdminSoft.db or iocAdminRTEMS.db
      instead of iocAdmin.db.  Load iocRelease.db.  Remove LOGNAME env var.
    * mpgApp/src/mpgPatternMod.c, mpgPattern.dbd:
      Add logic to determine if an EDEF is available or not.  Provide the
      available EDEF count to a record.
    * mpgApp/src/Makefile - add calc and sscan support for scalcout record.
    * mpgApp/Db/mpg/bsaEdef.db, mpgPatternProc.db:
      Add INUSE record per EDEF that goes to 1 when an EDEF is reserved.
      Add EDEFAVAIL to IOC to keep track of the number of available EDEFs.
    * mpgApp/src/mpgEvent.c:  Add event codes to the sequence ram for
      the "seconds" part of the timestamp which is set to the pulse ID.

mpg-R2-0-1: May 25, 2009
    * many files (too many to list here) were changed to remove record 
      processing from critical 360hz processing and to increase priority 
      of 360hz processing.
      Cleanup of pattern checking in multiple places.
      Use event-R3-0-1.  

mpg-R2-0-0: May 14, 2009
    * configure/RELEASE - use rtems 4.9.1 build of base and modules.
    * iocBoot/*/st.cmd - add command by Till Straumann to make the
      PNET module work (set the VME chip into a mode where it 
      surrenders the VME bus after every transaction.
      This means that the master has to rearbitrate for the bus for 
      every cycle (which slows things down).
    * mpgApp/src/mpgPattern.c - SHUTTER_PERM macro no longer provided.
    * mpgApp/Db/mpg/mpgPatternMod.db - add PINI=YES and DOL=0 (full rate)
      for modifier rate selection.

mpg-R1-8-2: Mar 28, 2009
    * mpgApp/Db/mpg/bsaEdef.db - Change CTRL on/off and RESET 
      logic to match changes to PATTERNCHECK logic.  Remove
      now unnecessary records (logic is simpler).
      Update CNT immediately when CTRL is turned on or off.
    * mpgApp/src/mpgPattern.c - patterncheck logic now has 
      EDEF CTRL as input.  It now disables itself, instead of
      setting a flag, if CTRL is off or the measurement is done.
      Shutter permit logic removed.
    * mpgApp/Db/mpg/evg.db, mpgApp/Db/ioc/evgIN20.substitutions -
      process records at iocInit and then disable if specified.
    * mpgApp/Db/mpg/mpgEventAll.substitutions, mpgPatternProc.db -
      replace LCLSSHUT event with LCLSTBD1.
    * configure/RELEASE - use iocAdmin-R2-1-4.

mpg-R1-8-1: Jan 21, 2009
    * mpgApp/Db/mpg/bsaEdef.db - Set MDEL for EDEF:..:CNT from
      -1 to 0. Remove BSA fanouts.  Remove BSA waveform reset.
      Remove FLNK to NAMETOD.  Use better date/time format for TODs.
      To reduce 360hz record lockset:
      - Process CTRLTODON when CTRL is set to ON via CA link.
      - Set CTRL to OFF when EDEF freed using CA link.
      - Move CNT from low priority scan task to high priority 0.5hz event
        callback task.
      - RESET now resets more fields in PATTERNCHECK. 
    * mpgApp/Db/mpg/bsaEdefPattern.db, bsaEdefAll.substitutions - 
      use bsaRecord instead of ai.  Add macro for compress record size.
    * mpgApp/Db/mpg/mpgPatternMod.db - move CNT from low priority 1 second
      task to high priority 0.5hz event callback task. 
    * mpgApp/Db/mpg/mpgPatternProc.db, mpgPattern.db, 
      mpgEventAll.substitutions - Add PATT ao records to provide 
      input to BSA.  These replace the EDEF fanout records.  PATTERNDIAG
      gets input state from PATTERND instead of 360hz pattern.
      Change TCAV and TCV3 red alarm limits.
    * configure/RELEASE - use iocAdmin-R2-1-1 and event-R2-8-1.
    * mpgApp/src/Makefile, 
    * mpgApp/src/drvPnet.c, mpgPattern.c - remove timeout flag logic.  
      No longer needed with newest evrMessage.
    * mpgApp/src/mpgPattern.c, mpgEvent.c - event codes no longer used
      for EDEF initialization.
    * mpsApp/src/mpgPattern.c - Wait longer before turning CTRL off for
      rate-limited EDEFs.
    * edefReserve.st - force processing of NAMETOD when EDEF reserved.
      Set CTRL OFF when EDEF is reserved.

mpg-R1-7-0: Aug 28, 2008
    * mpgApp/Db/mpg/mpgPatternProc.db,mpgEventAll.substitutions - 
      LCLSTBD1 changed to LCTCV3PM.
    * configure/RELEASE - remove sSubRecord dependency.  Use
      event-R2-7-0.
    * mpgApp/Db/mpg/bsaEdef.db,bsaEdefAll.substitutions - 
      replace BUNCHARGE with MODIFIER6.
      Add SEC and NSEC to BSA pattern records.
    * iocBoot/test/st.cmd.* - XL15 loads IN20 databases, XL00 loads
      XL00 databases, changes for the edef simulator.
    * mpgApp/src and Db<many files>:
      - Remove sSubRecord from build.
      - Replace doubles with unsigned longs as needed.
      - Replace sSubRecord and some subRecord with longSubRecord.
      - Changes to share more code between event module and Mpg IOC app.
      - Use 6 element modifier array instead of 4+modifier5+bunchcharge.
      - Move pattern pipelining out of record processing.
      - Some 360hz record processing is now just shells around static data.
      - Simulator logic updated to simulate PNET interrupts.
      - Add PATTERN_NO_DATA to possible pattern states.
      - Don't add events to sequence ram until good timeslot.
      - Correct timestamp-going-back-in-time check.
      - Use VME address as argument to pnetISR so it can be used by the
        simulator.
      - XL00 no longer uses IN20 databases.

mpg-R1-6-4: Jul 16, 2008
    * mpgApp/Db/mpg/mpgPatternMod.db - PINI=YES for CNTMAX.
    * mpgApp/Db/mpg/bsaEdef.db - set VAL instead of DOL for AVGCNT
      so it can be restore by ChannelWatcher.
    * mpgApp/src/edefReserve.st - correct PV names for MEASCNT and AVGCNT.
    * mpgApp/src/mpgEvent.c - correct beam rate-limited event code logic,
      use any beam code is desired beam code is zero (for testing).
    * mpgApp/src/mpgPattern.c - use any beam code for BSA checking if
      desired beam code is zero (for testing).
    * mpgApp/Db/mpgEventBeamCode.db, mpgEventAll.substitutions -
      rate-limited beam event codes depend on time slot - change macro
      and add time slot as input.

mpg-R1-6-3: May 19, 2008
    * configure/RELEASE - Use event-R2-6-3.
    * mpgApp/src/mpgEvent.c - allow multiple condition checks for the
      same event code.
    * mpgApp/src/mpgPattern.c - add user input bits to modifier5.
      Remove shutter or pockels cell permit for a specified number
      of pulses when requested by the user.  Keep count # backward times.
    * mpgApp/Db/mpg/mpgEvent.db, mpgEventAll.substitutions - add
      HIGH and LOW limits for event rates.  Set HIGH limit for TCAV0 
      and TCAV3 so that these rates go yellow when greater than 0.
      Set LOW limit for Pock and Shut so these rates go yellow when
      less than 0.5.
    * mpgApp/Db/mpg/mpgPatternMod.db, mpgEventAll.substitutions - add
      PVs to remove bits from the pattern based on user request.
    * mpgApp/Db/mpg/mpgPatternProc.db, mpgEventAll.substitutions - add 
      new event codes for the pockels cell and profile monitors.  
      Changes to support shutter and pockels cell permit removal.  
    * mpgApp/Db/mpg/mpgEventBeamCode.db, mpgEventAll.substitutions -  
      use hex values for inclusion/exclusion masks.  
    * iocBoot/test - remove EVR and slc-aware startup files.

mpg-R1-6-2: Apr 1, 2008 (never used in production)
    * configure/RELEASE - Use event-R2-6-2.
    * mpgApp/Db/mpg/mpgPatternProc.db - use PATTERNN-3 as input to 
      PATTERNDIAG to be consistent with evrPatternProc.db.
    * mpgApp/src/drvPnet.c - changes based on recent changes to drvEvr.c.
      Add timeout logic.  Don't set pnetTask event in the PNET interrupt
      until the task is ready.
    * mpgApp/src/mpgPattern.c - add timeout logic.  Change to diagnostic
      counters.

mpg-R1-6-0: Mar 4, 2008
    * configure/RELEASE - Use event-R2-6-0.
    * mpgApp/Db/mpg/mpgPatternProc.db - remove <ioc>:RATE record,
      it's replaced by FIDUCIALRATE.
    * mpgApp/Db/mpg/mpgEvent.db - process at init so all RATEs 
      are initialized to 0.
    * mpgApp/Db/mpg/bsaEdef.db - set AVGCNT DRVH from 100 to 1000.
    * mpgApp/src/drvPnet.c - cleanup logic based on changes to drvEvr.c
      in the event package (keep them looking the same).
    * mpgApp/src/mpgPattern.c - add more diagnostic counters.
      Remove unused rate calculation.

mpg-R1-5-0: Feb 20, 2008
    * configure/RELEASE - Use event-R2-5-3.
    * mpgApp/Db/mpg/mpgEvent.db, mpgEventBeamCode.db, 
      mpgEventAll.substitutions, mpgPatternProc.db - change
      event code record names, add event code rate records, add TBD1 to 6.
    * mpgApp/src/drvPnet.c - add timeout processing.
    * mpgApp/src/mpgPattern.c - check for timeout when reading a message.
    * mpgApp/src/mpgEvent.c and mpgEvent.dbd - add subroutine and counter
      increment logic for event code rates.

mpg-R1-4-1: Jan 22, 2008
    * configure/RELEASE - Use event-R2-5-1.
    * configure/RULES.Db removed.
    * mpgApp/Db/*/Makefile - remove RULES.DB inclusion.
    * mpgApp/Db/*/*.substitutions - correction so RULES.Db not needed.
    * mpgApp/Db/mpg/mpgEvent.db - add TICKOFFSET to event processing input.
      Decrease lower delay limit.
    * mpgApp/Db/mpg/mpgEventAll.substitutions - change TBD6 and TBD7 to
      be event codes for TCAV3 and no-TCAV3.
    * mpgApp/Db/mpg/mpgPatternProc.db - add TICKOFFSET record for changing
      all delays by the same amount.
    * mpgApp/src/mpgEvent.c - Change event processing to use internal
      previous values.  Add delay offset in 360hz processing.
    * mpgApp/src/Makefile - Added dbRestore.
    * iocBoot/ioc-in20-ev01/st.cmd - Added dbRestore.

mpg-R1-4-0: Nov 7, 2007
    * configure/RELEASE - Use NFS 3.14.9 base + modules.
    * configure/RULES.Db - Use INSTALL_LOCATION instead of TOP. 
    * iocBoot - added test startup files
    * iocBoot/ioc-in20-ev01/st.cmd - remove lines no longer needed with
      RTEMS 4.7.1.

mpg-R1-3-0: Aug 31, 2007
    * configure/RELEASE - Use event-R2-4-5, restore-R1-0-1, seq-R1-0-0.
    * mpgApp/Db/mpg/bsaEdefall.substitutions - 
      Set NAVG to 10 for FBCK2 EDEF.
    * mpgApp/Db/mpg/mpgPatternProc.db - 
      Add alarm limits to RATE.
    * mpgApp/src/mpgPattern.c - change routine names for getting
      and putting timestamps in the pipeline.

mpg-R1-2-0: Aug 8, 2007
    * Use event-R2-4-2, seq-R1-0-0, generalTime-R1-2-0, 
    * Change LCLSTBD4 beam code to LCACC_10 for klystron acceleration
      limited to 10hz.
    * Add RELEASE_NOTES, README, and iocBoot.

mpg-R1-1-0: Jul 2, 2007
    See CVS log for this release and all prior releases.    
