**Linear parent logic unless otherwise noted**
Logic    2012-10-a5-a
---------------------
* Add new logic to set lower limit of Beam Energy for Undulator per R. Iverson. 
	Interlocks monitors BEND:DMP1:400:INTOL_BLIM and will prevent E<2.3 GeV from
	Undulator.



Logic    2012-09-30-a
---------------------
* Modify logic for SXR:GMD:VGC_01, add S2 Stopper to ignore logic and renamed 
	logic table to include NEH at the beginning like the rest of NEH tables.
* Included upstream beam destinations to BCS PIC/LION inputs per HVS,
	and changed the logic name to BCS PIC/LION Raw Charge Threshold


Logic   2012-09-25-a from 2012-09-18-a
------------
* add new NEH SXR GMD Vacuum valve per Photon controls

Logic   2012-09-25-a DO NOT USE THIS VERSION
------------
* add new Dump PICMs 380, 381 at X-TCAV
* add new NEH SXR GMD Vacuum valve per Photon controls

Logic   2012-09-18-a
------------
* add new Dump Vacuum valve 355 at X-TCAV
* add new NEH XPP SH3 stopper status (no logic yet) per Photon controls

Logic   2012-06-29-a
------------
* Fixed bug in SL10 IS IN state, state # is 15 (ie 1111) not 4.
* Fixed a bug in HXRSS Mode Logic (is code=True) became false in Logic 2012-06-25-a, 
	Logic 2012-06-25-a should NO Longer be used!!

Logic   2012-06-25-a
------------
* De-activate some BSYA logic  per R. Iverson and C. hast
* Added PPS STOPPER Inputs	
* De-Activated A-Line Profile Monitor Summary logic per R. Iverson 

Logic   2012-06-05-a
------------
* De-activate some BSY PICS in Logic per R. Iverson
	PIC Unit numbers:
	LCLS  SLC 
	65	145	Trips often if PM1 is on-bypassed			
	67	155				
	69	165				
	71	175				
	73	185				
	75	195				
	76	205	

2012-05-21-a
------------
* Changes for CXI and MEC
* Logic for A-Line, removed unused inputs


2012-05-05-a
------------
    Add A-line FAST Valve VVFS:BSYA:2855 logic (past SL10)
    De-Activate 20-9 Slow Valve logic CATER # 99890
    A-Line_PICM_Logic_patch.json
    A-Line_Patch_Logic_Past_SL10_Apr2012_r1.json
    A-Line_Patch_Logic_Past_SL10_Apr2012_2_r1.json
    A-Line_Patch_Logic_Past_SL10_Apr2012_3_r1.json
    A-Line_Patch_Logic_Pre_SL10_Apr2012_r1.json
    MEC_XRT_Patch_Logic_File_May2012_R1.json
    XCOR BSYA  database input and logic
       
    A-LINE Devices that have not been implemented in Logic
    ######################################################
    #VGFS_BSYA_1410_FSG22_OK_STATE
    #VGFS_BSYA_3320_FSG29_OK_STATE  



2012-03-20-b
------------
* based on 2012-03-20-a and includes new CXI valve logic

2012-03-20-a
------------
* same logic as 2012-01-06-a but includes the config typo fix

2012-01-03-b
------------
* Added VVFS:DMP1:107 Fast Shutter
* New MEC Stopper XRT S6 Is In ignore device and logic


2011-11-29-b
------------
Same as 2011-11-29-a but all HXRSS logic Active.

2011-11-29-a
------------
* Logic Based of 2011-11-15-b, but De-Activated HXRSS not installed device logic
* Added new MEC Logic per Mark Arndt
* Add veto condition "M3H Mirror Is In Beam" to the following logic sections:
	** CXI KB2 VGC 02 Gate Valve Position
	** HF4 LAM VGC 01 Gate Valve Position

*And make one change to a description:
	* The logic in Section 18.2 of the 2011-11-15a version of the logic doc should be retitled "MEC XRT Attenuator Inspection Mirror Position".


2011-11-15-b
------------
*Same as 2011-11-07-b, but added CXI_MEC logic patch from 2011-11-15-a
*New devices inputs for A-LINK Kicker included in database 2011-11-15-a was not added to logic input list

2011-11-15-a
------------
*Same as 2011-11-07-a, but added new CXI_MEC logic patch 
*New devices inputs for A-LINK Kicker included in database 2011-11-15-a was not added to logic input list

2011-11-07-b
------------
*Same as 2011-10-31-b, 
*corrects "BXG is On" 0 bit input error which was set to BEND_IN20_751_OFF, corrected it to be BEND_IN20_231_OFF.
* Add new CXI and MEC inputs, but no associated logic.
* De-Activated TIU Sub-booster Ready for LI23 and LI24 per Stanek, these are now solid state and logic is not needed.

2011-11-07-a
------------
Same as 2011-10-31-a but HXRSS logic is all Activate
*corrects "BXG is On" 0 bit input error which was set to BEND_IN20_751_OFF, corrected it to be BEND_IN20_231_OFF.
* Add new CXI and MEC inputs, but no associated logic.
* De-Activated TIU Sub-booster Ready for LI23 and LI24 per Stanek, these are now solid state and logic is not needed.

2011-10-31-b
------------
Same as 2011-10-31-a but HXRSS logic is all Activate

2011-10-31-a
------------
Add HXRSS logic, but De-Activate all logic expect Raft (BMLN) IN/OUT logic table and Chicane Bend ON/OFF

2011-09-19-a
------------
Per Mark Arndt:
* New logic patch file for one new MEC logic loop.

* A diamond window was put in on XPP. We need to change the logic in "XPP SB2 VGC 01 Gate Valve Position" such that beam is allowed up to 120 Hz when the valve is Open or Closed, but dumped when Moving or Broken.


2011-08-10-a
------------
Fixed error in M3H Ignore logic definitions. 

2011-08-09-a
------------
* Per Mark Arndt, made lots of edits to CXI, XPP,MEC logic tables and added new ignore devices M3H Mirror Is In Beam and M3H Mirror Is Out of Beam. See 2011-08-09-a/logic_log for details.


2011-08-01-a
------------
* Per Iverson, updated logic for "BYKIK Readback Signal" to be ignored when D2 is IN
* Updated the following logic table names to fix typo
	DG2 Diagnostic Stopper Position  from	DG2 Diagnostic Stopper Poistion
	UM6 Diagnostic Stopper Position	 from	UM6 Diagnostic Stopper Poistion
	PPS Stopper S5B Position	 from 	PPS Stopper S5B Poistion

2011-07-12-a
------------
* Per Mark Arndt, 
Config and Logic changes are:

Link Node 40 card 1, channel 16  is now CXI_DSU_MMM_07_B_POSITION 
	becomes   CXI_DSD_MMS_07_B_POSITION
Link Node 40 card 6, channel 2   is now XCS_DG3_VGC_01_OPN_DI_POSITION
	becomes   CXI_DSU_MMS_07_B_POSITION

*XCS_DG3_VGC_01_OPN_DI_POSITION is removed from configuration 
	DB and logic DB device list. It was not used on any
	logic tables.

* Add new device (rename a junk name to new device
	CXI_DSD_MMS_07_B_POSITION)
* Change name of CXI_DSU_MMM_07_B_POSITION to CXI_DSU_MMS_07_B_POSITION
* Add revised CXI_Config4 logic C code
* Update CXI_Config5 with name modification (CXI_DSU_MMM_07_B_POSITION 
	to CXI_DSU_MMS_07_B_POSITION)


2011-07-05-a
------------
* Per Mark Arndt, add ignore devices:

  to "UM6 Diagnostic Stopper Poistion" [sic]:
    "Stopper SH1 Is In",
    "Stopper SH2 Is In",
    "TD11 Is In",
    "TDUND Is In",
    "ST1/ST2 Are In"  

  to "DG2 Diagnostic Stopper Poistion" [sic]:
    "Stopper SH1 Is In",
    "Stopper SH2 Is In",
    "TD11 Is In",
    "TDUND Is In",
    "ST1/ST2 Are In",
    "Diag Stopper HFX UM6 Is In"  

  to "XCS SB1 VGC 01 Gate Valve Position":
    "Stopper XRT S5 Is In"

  to "XCS SB1 VGC 02 Gate Valve Position":
    "Stopper XRT S5 Is In"

  to "XCS SB2 VGC 01 Gate Valve Position":
    "Stopper XRT S5 Is In"

  to "XCS SB1 Diagnostic Stopper Position":
    "Stopper XRT S5 Is In"

  and add new devices:

    HXX_HXM_MMS_01_B_POSITION
    HXX_MPS_PLC_01_OK_STATUS
    STPR_XRT1_1_S4IN_POSITION
    STPR_XRT1_1_S4OUT_POSITION
    STPR_XRT1_1_S6IN_POSITION
    STPR_XRT1_1_S6OUT_POSITION
    XCS_MPS_PLC_01_OK_STATUS
    XPP_MPS_PLC_01_OK_STATUS

2011-06-28-a
------------
* Per Mark Arndt, add logic tables:

"XCS SB1 VGC 01 Gate Valve Position"
"XCS SB1 VGC 02 Gate Valve Position"
"XCS SB2 VGC 01 Gate Valve Position"
"XCS SB1 Diagnostic Stopper Position"

  and remove logic tables:

"NEH AMO Beam Shutter Summary"
"HFX:MON:VGC:03 Gate Valve Position"

  and add ignore devices:

"Diag Stopper XCS SB1 Is In"
"XCS Is Not In Main Line"

2011-06-17-a
------------
* Fix bug introduced in 2011-06-15-a:
  Remove ignore condition XPP SB2 VGC 01 Gate Valve Position

2011-06-16-a **Bug in this version; DO NOT USE**
------------
* Fix bug introduced in 2011-06-15-a:
  Restored ignore condition XPP-NH3-POS-00 Beamline Is In, which had been inadvertently deleted.
   

2011-06-15-a **Bug in this version; DO NOT USE**
------------
* Per Mark Arndt
* Add XPP logic table:
  "XPP SB2 BGC 01 Gate Valve Position"
* Add ignore condition:
  "XPP-NH3-POS0-00 Beamline Is Not In" 
* Remove obsolete CXI logic table:
  "CXI CS PAD Damage Fault"

2011-05-31-a
------------
* Per Mark Arndt and XPP, add logic tables:
"HX3 MON VGC 01 Gate Valve Position" 
"HX2 UVD VGC 01 Gate Valve Position"

2011-05-25-b
------------
* Per Mark Arndt and CXI request, added new CXI inputs. 
*Added D2 stopper inputs,  Add D2 as ignore logic device.
*RTD past D2.
*ADD TD11 to Ignore logic for BSY valves per Iverson.

2011-05-25-a
------------
*IMPORTANT IMPORTANT IMPORTANT 
	NOTE: reverted back to logic 2010-09-28-a because 
	everything in logic sqlite files from then till 
	now was malformed. Recreated all logic changes 
	so that logic 2011-02-26-a and 2011-05-25-a 
	are equivalent, but 2011-05-25-a has db issues 
	resolve and extra S5 Position Logic. Added 
	AutoIncroment to sqlite Mpslogic.mpl tables.

2011-02-26-a
------------
* Per Mark Arndt and CXI request, reverted back to CXI MPS CFG 4 CONFID logic from "CXI Configuration 4 Summary". Created new logic for "CXI CS-PAD-Damge Fault" based on EPICS input. After down input should move to hardwired. This logic is based on parent logic 2011-02-02-a.

2011-02-25-a
------------
* Per Mark Arndt and CXI request, temporarily changed CXI MPS CFG 4 CONFID logic from "CXI Configuration 4 Summary" to "CXI CS-PAD-Damge Fault". Changes should be backed out when CXI changes can support a proper protection design.

2011-02-02-a
------------
* Deactivate "PR1_2 Prof Summary" and "Dev 50PR3 Prof" from active logic per R. Iverson Jan 2011.

2011-01-08-a
------------
* Changed logic table for  table "Gun RF Peak Power 20-6", signal is OK in the low state and FAULTED in high state.

2010-12-06-a
------------
* Add logic for CXI Config 1-7 and PLC_OK Status logic 


2010-12-01-a
------------
* Removed extra HXX:MXT:VGC_01:OPN_DI Position input and removed from logic 


2010-11-29-a
------------
* Added CXI logic per Mark Arndt,
* De-activated logic table TIU:PLIC Summary in LI29

2010-09-28-a
------------
* Changed name of input TRHZ:DMP1:310 to THZR:DMP1:350

2010-09-24-a
------------
* Add new VVMG:DMP1:743
* UnActivate Logic for, BSY Fast Gauges G1, G10, G12, G4 
* UnActivate Logic for, BSY BEND B11 (new supple not connected)

2010-08-30-a
------------
* Modified "NEH2 HXRAY StrongBack 1 Isolation Valve HX2:SB1:VGC:01" to inactive 
* Added "NEH AMO End Station Ready AMO-EXP-MPS-01"

2010-08-17-a
------------
* Added BYKICK Watchdog (no logic added, only device)

2010-08-11-a
------------
* Added BSYA PICS 1701A and 1701B

2010-08-09-a
------------
* Modified BSYA device logic to ignore BYKICK rates.

2010-08-05-a
------------
* Modified LN25 BSYA PIC truth tables to be ignored when BSYA B1/B2 is NOT_ON
* Added BSYA Prof Summary

2010-07-09-b
------------
* Added LN25 PIC truth tables

2010-07-09-a
------------
* Added LN11 and LN22 PIC truth tables

2010-07-06-a
------------
* Added LN16 PIC truth tables

2010-06-30-a
------------
* !!! Parent: 2010-06-21-a
* !!! Does not include updates from 2010-06-22-a
* Corrects "Flowswitch CE11" logic

2010-06-22-a
------------
* Added PIC truth tables for LNs 11, 16, and 22

2010-06-21-a
------------
* Renamed truth tables

2010-06-14-a
------------
* Combined toroid comparator logic tables.
* Updated toroid comparator logic table and state names.
* Ignoring IM02/IM03 when BX01/BX02 is off.

2010-05-25-a
------------
* Reversed "MPS Mechanical Shutter Position" logic.  Device is not fail-safe.

2010-05-20-a
------------
* Applied patch patch-bsy.json

2010-05-19-b
------------
* Added BLM:UND1:4 timing check

2010-05-19-a
------------
* Wakefield shield straight ahead is ignored when BXG is on

2010-05-18-b
------------
* Corrected toroid logic polarity

2010-05-18-a
------------
* Added patch patch-in20-li24

2010-05-17-a
------------
* Added BX01/BX02 and BXG on/off ignore conditions and rate limiting

2010-05-12-a
------------
* Removed "Fast Valve VVFS LI20 Position"
