#!/bin/sh  
# \
  exec oagtclsh "$0" "$@"

set auto_path [linsert $auto_path 0  /usr/local/oag/apps/lib/$env(HOST_ARCH)]
set auto_path [linsert $auto_path 0 /usr/local/oag/lib_patch/$env(HOST_ARCH)]

APSStandardSetup

set runControlPV OAG121RC

if {[catch {exec cavget -list=${runControlPV}.RUN} results]} {
    APSSendEMail -address soliday -message "PSSGlobalWatchdog failure: Unable to check runControl state: $results" -subject "PSSGlobalWatchdog Error"
    exit
}
if {$results == 1} {
    exit
}
if {$results == "?"} {
    exit
}
catch {exec cavput -list=${runControlPV}.CLR=1}

set seconds [clock seconds]
set oneDay [expr 60 * 60 * 24 + $seconds - 20]

proc DefineReasons {} {
    global pssFaults


    set pssFaults(gen1upgraded,1) "Power up"
    set pssFaults(gen1upgraded,2) "Cross trip received from other Chain"
    set pssFaults(gen1upgraded,21) "DIW flow 1 below set point"
    set pssFaults(gen1upgraded,22) "DIW flow 2 below set point"
    set pssFaults(gen1upgraded,23) "DIW flow 3 below set point"
    set pssFaults(gen1upgraded,24) "DIW flow 4 below set point"
    set pssFaults(gen1upgraded,25) "DIW flow 5 below set point"
    set pssFaults(gen1upgraded,26) "DIW flow 6 below set point"
    set pssFaults(gen1upgraded,27) "DIW flow 7 below set point"
    set pssFaults(gen1upgraded,28) "DIW flow 8 below set point"
    set pssFaults(gen1upgraded,33) "Processor fault detected"
    set pssFaults(gen1upgraded,34) "Checksum"
    set pssFaults(gen1upgraded,35) "Watchdog stopped"
    set pssFaults(gen1upgraded,36) "Genius Communication Fault"
    set pssFaults(gen1upgraded,37) "I/O Communications Fault"
    set pssFaults(gen1upgraded,41) "DIW Loop 1 Over Flow"
    set pssFaults(gen1upgraded,42) "DIW Loop 2 Over Flow"
    set pssFaults(gen1upgraded,43) "DIW Loop 3 Over Flow"
    set pssFaults(gen1upgraded,44) "DIW Loop 4 Over Flow"
    set pssFaults(gen1upgraded,45) "DIW Loop 5 Over Flow"
    set pssFaults(gen1upgraded,46) "DIW Loop 6 Over Flow"
    set pssFaults(gen1upgraded,47) "DIW Loop 7 Over Flow"
    set pssFaults(gen1upgraded,48) "DIW Loop 8 Over Flow"
    set pssFaults(gen1upgraded,91) "Program Key not in Run"
    set pssFaults(gen1upgraded,92) "Forces present"
    set pssFaults(gen1upgraded,101) "Crash button 1 pressed while beam in Station A"
    set pssFaults(gen1upgraded,101,09ID) "Sta A Zone2 CB 1 w/Beam"
    set pssFaults(gen1upgraded,102) "Crash button 2 pressed while beam in Station A"
    set pssFaults(gen1upgraded,103) "Crash button 3 pressed while beam in Station A"
    set pssFaults(gen1upgraded,104) "Crash button 4 pressed while beam in Station A"
    set pssFaults(gen1upgraded,111) "Door 1 opened with beam in Station A"
    set pssFaults(gen1upgraded,111,09ID) "Sta A Zone2 Dr 1 w/Beam"
    set pssFaults(gen1upgraded,112) "Door 2 opened with beam in Station A"
    set pssFaults(gen1upgraded,113) "Door 3 opened with beam in Station A"
    set pssFaults(gen1upgraded,114) "Door 4 opened with beam in Station A"
    set pssFaults(gen1upgraded,121) "Crash button 1 pressed while Station A searched"
    set pssFaults(gen1upgraded,121,09ID) "Sta A Zone2 CB 1 w/Search"
    set pssFaults(gen1upgraded,122) "Crash button 2 pressed while Station A searched"
    set pssFaults(gen1upgraded,123) "Crash button 3 pressed while Station A searched"
    set pssFaults(gen1upgraded,124) "Crash button 4 pressed while Station A searched"
    set pssFaults(gen1upgraded,131) "Station A Remote Block 1 Communication loss"
    set pssFaults(gen1upgraded,132) "Station A Remote Block 2 Communication loss"
    set pssFaults(gen1upgraded,133) "Station A Remote Block 3 Communication loss"
    set pssFaults(gen1upgraded,134) "Station A Remote Block 4 Communication loss"
    set pssFaults(gen1upgraded,141) "Front End Photon Shutter 1 Close Switch Fail (while Photon Shutter 2 closed)"
    set pssFaults(gen1upgraded,142) "Front End Photon Shutter 1 Both Switch (without possible Safety Shutter exposure)"
    set pssFaults(gen1upgraded,143) "Front End Photon Shutter 1 Fail to Close Fault"
    set pssFaults(gen1upgraded,144) "Front End Photon Shutter 1 Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,145) "Front End Photon Shutter 2 Close Switch Fail (while Photon Shutter 1 closed)"
    set pssFaults(gen1upgraded,145,35BM) "PS2/A Close Switch Fail wo/Exposure"
    set pssFaults(gen1upgraded,146) "Front End Photon Shutter 2 Both Switch (without possible Safety Shutter exposure)"
    set pssFaults(gen1upgraded,146,35BM) "PS2/A Both Switch No Exposure"
    set pssFaults(gen1upgraded,147) "Front End Photon Shutter 2 Fail to Close Fault"
    set pssFaults(gen1upgraded,147,35BM) "PS2/A Fail to Close"
    set pssFaults(gen1upgraded,148) "Front End Photon Shutter 2 Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,148,35BM) "PS2/A Fail to Fully Close"
    set pssFaults(gen1upgraded,149) "Front End Safety Shutter 1 Close Switch Fail (while Personnel Excluded)"
    set pssFaults(gen1upgraded,149,35BM) "SS1/A Close Switch Fail wo/Exposure"
    set pssFaults(gen1upgraded,150) "Front End Safety Shutter 1 Both Switch (while Beam Ready and Safety Shutter protected)"
    set pssFaults(gen1upgraded,150,35BM) "SS1/A Both Switch No Exposure"
    set pssFaults(gen1upgraded,151) "Front End Safety Shutter 1 Fail to Close Fault"
    set pssFaults(gen1upgraded,151,35BM) "SS1/A Fail to Close"
    set pssFaults(gen1upgraded,152) "Front End Safety Shutter 1 Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,152,35BM) "SS1/A Fail to Fully Close"
    set pssFaults(gen1upgraded,153) "Front End Safety Shutter 2 Close Switch Fail (while Personnel Excluded)"
    set pssFaults(gen1upgraded,153,35BM) "SS2/A Close Switch Fail wo/Exposure"
    set pssFaults(gen1upgraded,154) "Front End Safety Shutter 2 Both Switch (while Beam Ready and Safety Shutter protected)"
    set pssFaults(gen1upgraded,154,35BM) "SS2/A Both Switch No Exposure"
    set pssFaults(gen1upgraded,155) "Front End Safety Shutter 2 Fail to Close Fault"
    set pssFaults(gen1upgraded,155,35BM) "SS2/A Fail to Close"
    set pssFaults(gen1upgraded,156) "Front End Safety Shutter 2 Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,156,35BM) "SS2/A Fail to Fully Close"
    set pssFaults(gen1upgraded,171) "Front End Photon Shutter 1 Close Switch Fail (with possible Personnel or Safety Shutter exposure)"
    set pssFaults(gen1upgraded,172) "Front End Photon Shutter 1 Both Switch (with possible Safety Shutter exposure)"
    set pssFaults(gen1upgraded,173) "Front End Photon Shutter 2 Close Switch Fail (with possible Personnel or Safety Shutter exposure)"
    set pssFaults(gen1upgraded,173,35BM) "PS2/A Close Switch Fail w/Exposure"
    set pssFaults(gen1upgraded,174) "Front End Photon Shutter 2 Both Switch (with possible Safety Shutter exposure)"
    set pssFaults(gen1upgraded,174,35BM) "PS2/A Both Switch w/Exposure"
    set pssFaults(gen1upgraded,176) "Front End Safety Shutter 1 Close Switch Fail (with possible Personnel exposure)"
    set pssFaults(gen1upgraded,176,35BM) "SS1/A Close Switch Fail w/Exposure"
    set pssFaults(gen1upgraded,177) "Front End Safety Shutter 1 Both Switch (with possible Personnel or Safety Shutter exposure)"
    set pssFaults(gen1upgraded,177,35BM) "SS1/A Both Switch w/Exposure"
    set pssFaults(gen1upgraded,178) "Front End Safety Shutter 1 Beam Exposure"
    set pssFaults(gen1upgraded,178,35BM) "SS1/A Beam Exposure"
    set pssFaults(gen1upgraded,179) "Front End Safety Shutter 2 Close Switch Fail (with possible Personnel exposure)"
    set pssFaults(gen1upgraded,179,35BM) "SS2/A Close Switch Fail w/Exposure"
    set pssFaults(gen1upgraded,180) "Front End Safety Shutter 2 Both Switch (with possible Personnel or Safety Shutter exposure)"
    set pssFaults(gen1upgraded,180,35BM) "SS2/A Both Switch w/Exposure"
    set pssFaults(gen1upgraded,181) "Front End Safety Shutter 2 Beam Exposure"
    set pssFaults(gen1upgraded,181,35BM) "SS2/A Beam Exposure"
    set pssFaults(gen1upgraded,201) "Crash button 1 pressed while beam in Station B"
    set pssFaults(gen1upgraded,201,17ID) "Sta B Zone1 CB 3 w/Beam"
    set pssFaults(gen1upgraded,202) "Crash button 2 pressed while beam in Station B"
    set pssFaults(gen1upgraded,202,17ID) "Sta B Zone1 CB 4 w/Beam"
    set pssFaults(gen1upgraded,203) "Crash button 3 pressed while beam in Station B"
    set pssFaults(gen1upgraded,204) "Crash button 4 pressed while beam in Station B"
    set pssFaults(gen1upgraded,211) "Door 1 opened with beam in Station B"
    set pssFaults(gen1upgraded,211,17ID) "Sta B Zone1 Dr 3 w/Beam"
    set pssFaults(gen1upgraded,212) "Door 2 opened with beam in Station B"
    set pssFaults(gen1upgraded,213) "Door 3 opened with beam in Station B"
    set pssFaults(gen1upgraded,214) "Door 4 opened with beam in Station B"
    set pssFaults(gen1upgraded,221) "Crash button 1 pressed while Station B searched"
    set pssFaults(gen1upgraded,221,17ID) "Sta B Zone1 CB 3 w/Search"
    set pssFaults(gen1upgraded,222) "Crash button 2 pressed while Station B searched"
    set pssFaults(gen1upgraded,222,17ID) "Sta B Zone1 CB 4 w/Search"
    set pssFaults(gen1upgraded,223) "Crash button 3 pressed while Station B searched"
    set pssFaults(gen1upgraded,224) "Crash button 4 pressed while Station B searched"
    set pssFaults(gen1upgraded,231) "Station B Remote Block 1 Communication loss"
    set pssFaults(gen1upgraded,232) "Station B Remote Block 2 Communication loss"
    set pssFaults(gen1upgraded,233) "Station B Remote Block 3 Communication loss"
    set pssFaults(gen1upgraded,234) "Station B Remote Block 4 Communication loss"
    set pssFaults(gen1upgraded,241) "Station B Photon Stop Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,242) "Station B Photon Stop Both Switch (without possible Safety Shutter exposure)"
    set pssFaults(gen1upgraded,243) "Station B Photon Shutter Fail to Close Fault"
    set pssFaults(gen1upgraded,244) "Station B Photon Shutter Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,245) "Station B Safety Stop Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,246) "Station B Safety Stop Both Switch (while Beam Ready and Safety Shutter protected)"
    set pssFaults(gen1upgraded,247) "Station B Safety Shutter Fail to Close Fault"
    set pssFaults(gen1upgraded,248) "Station B Safety Shutter Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,249) "Station B Safety Shutter/Mono Shutter 1 Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,250) "Station B Mono Shutter 1 Both Switch (while not Beam Present)"
    set pssFaults(gen1upgraded,251) "Station B Safety Shutter/Mono Stop 1 Fail to Close Fault"
    set pssFaults(gen1upgraded,252) "Station B Safety Shutter/Mono Stop 1 Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,253) "Station B Safety Shutter/Mono Shutter 2 Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,254) "Station B Mono Shutter 2 Both Switch (while not Beam Present)"
    set pssFaults(gen1upgraded,255) "Station B Safety Shutter/Mono Stop 2 Fail to Close Fault"
    set pssFaults(gen1upgraded,256) "Station B Safety Shutter/Mono Stop 2 Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,257) "Station B Safety Shutter 1 Both Switch (while Beam Ready and Safety Shutter protected)"
    set pssFaults(gen1upgraded,258) "Station B Safety Shutter 2 Both Switch (while Beam Ready and Safety Shutter protected)"
    set pssFaults(gen1upgraded,259) "Station B Manual Beam Stop Close Switch Fail (while searched)"
    set pssFaults(gen1upgraded,260) "Station B Manual Beam Stop Both Switch (while not Beam Present)"
    set pssFaults(gen1upgraded,261) "Station B Manual Beam stop open switch fail while searched"
    set pssFaults(gen1upgraded,262) "Station B Manual Beam stop close switch make while searched"
    set pssFaults(gen1upgraded,263) "Station B BLSIE not under PSS control"
    set pssFaults(gen1upgraded,271) "Station B Photon Shutter Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,272) "Station B Photon Shutter Both Switch (with possible Safety Shutter exposure)"
    set pssFaults(gen1upgraded,273) "Station B Safety Shutter Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,274) "Station B Safety Shutter Both Switch (with possible Personnel or Safety Shutter exposure)"
    set pssFaults(gen1upgraded,275) "Station B Safety Shutter Beam Exposure"
    set pssFaults(gen1upgraded,276) "Station B Safety Shutter/Mono Stop 1 Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,277) "Station B Safety Shutter 1 Both Switch (with possible Personnel or Safety Shutter exposure)"
    set pssFaults(gen1upgraded,278) "Station B Safety Shutter 1 Beam Exposure"
    set pssFaults(gen1upgraded,279) "Station B Safety Shutter/Mono Stop 2 Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,280) "Station B Safety Shutter 2 Both Switch (with possible Personnel or Safety Shutter exposure)"
    set pssFaults(gen1upgraded,281) "Station B Safety Shutter 2 Beam Exposure"
    set pssFaults(gen1upgraded,282) "Station B Mono Stop 1 Both Switch (while Beam Present)"
    set pssFaults(gen1upgraded,283) "Station B Mono Stop 2 Both Switch (while Beam Present)"
    set pssFaults(gen1upgraded,284) "Station B Manual Beam Stop Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,285) "Station B Manual Beam Stop Both Switch (while Beam Present)"
    set pssFaults(gen1upgraded,301) "Crash button 1 pressed while beam in Station C"
    set pssFaults(gen1upgraded,301,05BM) "Sta C Zone2 CB 1 w/Beam"
    set pssFaults(gen1upgraded,301,17ID) "Sta B Zone2 CB 1 w/Beam"
    set pssFaults(gen1upgraded,301,23ID) "Sta C Zone1 CB 1 w/Beam"
    set pssFaults(gen1upgraded,302) "Crash button 2 pressed while beam in Station C"
    set pssFaults(gen1upgraded,302,17ID) "Sta B Zone2 CB 2 w/Beam"
    set pssFaults(gen1upgraded,303) "Crash button 3 pressed while beam in Station C"
    set pssFaults(gen1upgraded,304) "Crash button 4 pressed while beam in Station C"
    set pssFaults(gen1upgraded,311) "Door 1 opened with beam in Station C"
    set pssFaults(gen1upgraded,311,05BM) "Sta C Zone2 Dr 2 w/Beam"
    set pssFaults(gen1upgraded,311,17ID) "Sta B Zone2 Dr 1 w/Beam"
    set pssFaults(gen1upgraded,311,23ID) "Sta C Zone1 Dr 1 w/Beam"
    set pssFaults(gen1upgraded,312) "Door 2 opened with beam in Station C"
    set pssFaults(gen1upgraded,312,17ID) "Sta B Zone2 Dr 2 w/Beam"
    set pssFaults(gen1upgraded,313) "Door 3 opened with beam in Station C"
    set pssFaults(gen1upgraded,314) "Door 4 opened with beam in Station C"
    set pssFaults(gen1upgraded,321) "Crash button 1 pressed while Station C searched"
    set pssFaults(gen1upgraded,321,05BM) "Sta C Zone2 CB 1 w/Search"
    set pssFaults(gen1upgraded,321,17ID) "Sta B Zone2 CB 1 w/Search"
    set pssFaults(gen1upgraded,321,23ID) "Sta C Zone1 CB 1 w/Search"
    set pssFaults(gen1upgraded,322) "Crash button 2 pressed while Station C searched"
    set pssFaults(gen1upgraded,322,17ID) "Sta B Zone2 CB 2 w/Search"
    set pssFaults(gen1upgraded,323) "Crash button 3 pressed while Station C searched"
    set pssFaults(gen1upgraded,324) "Crash button 4 pressed while Station C searched"
    set pssFaults(gen1upgraded,331) "Station C Remote Block 1 Communication loss"
    set pssFaults(gen1upgraded,332) "Station C Remote Block 2 Communication loss"
    set pssFaults(gen1upgraded,333) "Station C Remote Block 3 Communication loss"
    set pssFaults(gen1upgraded,334) "Station C Remote Block 4 Communication loss"
    set pssFaults(gen1upgraded,341) "Station C Photon Stop Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,341,35BM) "PS2/C Close Switch Fail"
    set pssFaults(gen1upgraded,342) "Station C Photon Stop Both Switch (without possible Safety Shutter exposure)"
    set pssFaults(gen1upgraded,342,35BM) "PS2/C Both Switch"
    set pssFaults(gen1upgraded,343) "Station C Photon Shutter Fail to Close Fault"
    set pssFaults(gen1upgraded,343,35BM) "PS2/C Fail to Close"
    set pssFaults(gen1upgraded,344) "Station C Photon Shutter Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,344,35BM) "PS2/C Fail to Fully Close"
    set pssFaults(gen1upgraded,345) "Station C Safety Stop Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,346) "Station C Safety Stop Both Switch (while Beam Ready and Safety Shutter protected)"
    set pssFaults(gen1upgraded,347) "Station C Safety Shutter Fail to Close Fault"
    set pssFaults(gen1upgraded,348) "Station C Safety Shutter Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,349) "Station C Safety Shutter/Mono Shutter 1 Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,349,35BM) "SS1/C Close Switch Fail"
    set pssFaults(gen1upgraded,350) "Station C Mono Shutter 1 Both Switch (while not Beam Present)"
    set pssFaults(gen1upgraded,351) "Station C Safety Shutter/Mono Stop 1 Fail to Close Fault"
    set pssFaults(gen1upgraded,351,35BM) "SS1/C Fail to Close"
    set pssFaults(gen1upgraded,352) "Station C Safety Shutter/Mono Stop 1 Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,352,35BM) "SS1/C Fail to Fully Close"
    set pssFaults(gen1upgraded,353) "Station C Safety Shutter/Mono Shutter 2 Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,353,35BM) "SS2/C Close Switch"
    set pssFaults(gen1upgraded,354) "Station C Mono Shutter 2 Both Switch (while not Beam Present)"
    set pssFaults(gen1upgraded,355) "Station C Safety Shutter/Mono Stop 2 Fail to Close Fault"
    set pssFaults(gen1upgraded,355,35BM) "SS2/C Fail to Close"
    set pssFaults(gen1upgraded,356) "Station C Safety Shutter/Mono Stop 2 Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,356,35BM) "SS2/C Fail to Fully Close"
    set pssFaults(gen1upgraded,357) "Station C Safety Shutter 1 Both Switch (while Beam Ready and Safety Shutter protected)"
    set pssFaults(gen1upgraded,357,35BM) "SS1/C Both Switch"
    set pssFaults(gen1upgraded,358) "Station C Safety Shutter 2 Both Switch (while Beam Ready and Safety Shutter protected)"
    set pssFaults(gen1upgraded,358,35BM) "SS2/C Both Switch"
    set pssFaults(gen1upgraded,359) "Station C Manual Beam Stop Close Switch Fail (while searched)"
    set pssFaults(gen1upgraded,360) "Station C Manual Beam Stop Both Switch (while not Beam Present)"
    set pssFaults(gen1upgraded,361) "Station C Manual Beam stop open switch fail while searched"
    set pssFaults(gen1upgraded,362) "Station C Manual Beam stop close switch make while searched"
    set pssFaults(gen1upgraded,363) "Station C BLSIE not under PSS control"
    set pssFaults(gen1upgraded,371) "Station C Photon Shutter Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,371,35BM) "PS2/C Close Switch Fail"
    set pssFaults(gen1upgraded,372) "Station C Photon Shutter Both Switch (with possible Safety Shutter exposure)"
    set pssFaults(gen1upgraded,372,35BM) "PS2/C Both Switch"
    set pssFaults(gen1upgraded,373) "Station C Safety Shutter Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,374) "Station C Safety Shutter Both Switch (with possible Personnel or Safety Shutter exposure)"
    set pssFaults(gen1upgraded,375) "Station C Safety Shutter Beam Exposure"
    set pssFaults(gen1upgraded,376) "Station C Safety Shutter/Mono Stop 1 Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,376,35BM) "SS1/C Close Switch Fault"
    set pssFaults(gen1upgraded,377) "Station C Safety Shutter 1 Both Switch (with possible Personnel or Safety Shutter exposure)"
    set pssFaults(gen1upgraded,377,35BM) "SS1/C Both Switch"
    set pssFaults(gen1upgraded,378) "Station C Safety Shutter 1 Beam Exposure"
    set pssFaults(gen1upgraded,378,35BM) "SS1/C Exposure"
    set pssFaults(gen1upgraded,379) "Station C Safety Shutter/Mono Stop 2 Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,379,35BM) "SS2/C Close Switch Fault"
    set pssFaults(gen1upgraded,380) "Station C Safety Shutter 2 Both Switch (with possible Personnel or Safety Shutter exposure)"
    set pssFaults(gen1upgraded,380,35BM) "SS2/C Both Switch"
    set pssFaults(gen1upgraded,381) "Station C Safety Shutter 2 Beam Exposure"
    set pssFaults(gen1upgraded,381,35BM) "SS2/C Exposure"
    set pssFaults(gen1upgraded,382) "Station C Mono Stop 1 Both Switch (while Beam Present)"
    set pssFaults(gen1upgraded,383) "Station C Mono Stop 2 Both Switch (while Beam Present)"
    set pssFaults(gen1upgraded,384) "Station C Manual Beam Stop Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,385) "Station C Manual Beam Stop Both Switch (while Beam Present)"
    set pssFaults(gen1upgraded,401) "Crash button 1 pressed while beam in Station D"
    set pssFaults(gen1upgraded,401,09ID) "Sta SOE1 CB 1 w/Beam"
    set pssFaults(gen1upgraded,402) "Crash button 2 pressed while beam in Station D"
    set pssFaults(gen1upgraded,403) "Crash button 3 pressed while beam in Station D"
    set pssFaults(gen1upgraded,404) "Crash button 4 pressed while beam in Station D"
    set pssFaults(gen1upgraded,411) "Door 1 opened with beam in Station D"
    set pssFaults(gen1upgraded,411,09ID) "Sta SOE1 Dr 1 w/Beam"
    set pssFaults(gen1upgraded,412) "Door 2 opened with beam in Station D"
    set pssFaults(gen1upgraded,413) "Door 3 opened with beam in Station D"
    set pssFaults(gen1upgraded,414) "Door 4 opened with beam in Station D"
    set pssFaults(gen1upgraded,421) "Crash button 1 pressed while Station D searched"
    set pssFaults(gen1upgraded,421,09ID) "Sta SOE1 CB 1 w/Search"
    set pssFaults(gen1upgraded,422) "Crash button 2 pressed while Station D searched"
    set pssFaults(gen1upgraded,423) "Crash button 3 pressed while Station D searched"
    set pssFaults(gen1upgraded,424) "Crash button 4 pressed while Station D searched"
    set pssFaults(gen1upgraded,431) "Station D Remote Block 1 Communication loss"
    set pssFaults(gen1upgraded,432) "Station D Remote Block 2 Communication loss"
    set pssFaults(gen1upgraded,433) "Station D Remote Block 3 Communication loss"
    set pssFaults(gen1upgraded,434) "Station D Remote Block 4 Communication loss"
    set pssFaults(gen1upgraded,441) "Station D Photon Stop Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,442) "Station D Photon Stop Both Switch (without possible Safety Shutter exposure)"
    set pssFaults(gen1upgraded,443) "Station D Photon Shutter Fail to Close Fault"
    set pssFaults(gen1upgraded,444) "Station D Photon Shutter Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,445) "Station D Safety Stop Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,446) "Station D Safety Stop Both Switch (while Beam Ready and Safety Shutter protected)"
    set pssFaults(gen1upgraded,447) "Station D Safety Shutter Fail to Close Fault"
    set pssFaults(gen1upgraded,448) "Station D Safety Shutter Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,449) "Station D Safety Shutter/Mono Shutter 1 Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,450) "Station D Mono Shutter 1 Both Switch (while not Beam Present)"
    set pssFaults(gen1upgraded,451) "Station D Safety Shutter/Mono Stop 1 Fail to Close Fault"
    set pssFaults(gen1upgraded,452) "Station D Safety Shutter/Mono Stop 1 Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,453) "Station D Safety Shutter/Mono Shutter 2 Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,454) "Station D Mono Shutter 2 Both Switch (while not Beam Present)"
    set pssFaults(gen1upgraded,455) "Station D Safety Shutter/Mono Stop 2 Fail to Close Fault"
    set pssFaults(gen1upgraded,456) "Station D Safety Shutter/Mono Stop 2 Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,457) "Station D Safety Shutter 1 Both Switch (while Beam Ready and Safety Shutter protected)"
    set pssFaults(gen1upgraded,458) "Station D Safety Shutter 2 Both Switch (while Beam Ready and Safety Shutter protected)"
    set pssFaults(gen1upgraded,459) "Station D Manual Beam Stop Close Switch Fail (while searched)"
    set pssFaults(gen1upgraded,460) "Station D Manual Beam Stop Both Switch (while not Beam Present)"
    set pssFaults(gen1upgraded,461) "Station D Manual Beam stop open switch fail while searched"
    set pssFaults(gen1upgraded,462) "Station D Manual Beam stop close switch make while searched"
    set pssFaults(gen1upgraded,463) "Station D BLSIE not under PSS control"
    set pssFaults(gen1upgraded,471) "Station D Photon Shutter Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,472) "Station D Photon Shutter Both Switch (with possible Safety Shutter exposure)"
    set pssFaults(gen1upgraded,473) "Station D Safety Shutter Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,474) "Station D Safety Shutter Both Switch (with possible Personnel or Safety Shutter exposure)"
    set pssFaults(gen1upgraded,475) "Station D Safety Shutter Beam Exposure"
    set pssFaults(gen1upgraded,476) "Station D Safety Shutter/Mono Stop 1 Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,477) "Station D Safety Shutter 1 Both Switch (with possible Personnel or Safety Shutter exposure)"
    set pssFaults(gen1upgraded,478) "Station D Safety Shutter 1 Beam Exposure"
    set pssFaults(gen1upgraded,479) "Station D Safety Shutter/Mono Stop 2 Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,480) "Station D Safety Shutter 2 Both Switch (with possible Personnel or Safety Shutter exposure)"
    set pssFaults(gen1upgraded,481) "Station D Safety Shutter 2 Beam Exposure"
    set pssFaults(gen1upgraded,482) "Station D Mono Stop 1 Both Switch (while Beam Present)"
    set pssFaults(gen1upgraded,483) "Station D Mono Stop 2 Both Switch (while Beam Present)"
    set pssFaults(gen1upgraded,484) "Station D Manual Beam Stop Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,485) "Station D Manual Beam Stop Both Switch (while Beam Present)"
    set pssFaults(gen1upgraded,501) "Crash button 1 pressed while beam in Station E"
    set pssFaults(gen1upgraded,501,05BM) "Sta C Zone1 CB 1 w/Beam"
    set pssFaults(gen1upgraded,501,09ID) "Sta SOE2 CB 1 w/Beam"
    set pssFaults(gen1upgraded,501,23ID) "Sta C Zone2 CB 2 w/Beam"
    set pssFaults(gen1upgraded,502) "Crash button 2 pressed while beam in Station E"
    set pssFaults(gen1upgraded,503) "Crash button 3 pressed while beam in Station E"
    set pssFaults(gen1upgraded,504) "Crash button 4 pressed while beam in Station E"
    set pssFaults(gen1upgraded,511) "Door 1 opened with beam in Station E"
    set pssFaults(gen1upgraded,511,05BM) "Sta C Zone1 Dr 1 w/Beam"
    set pssFaults(gen1upgraded,511,09ID) "Sta SOE2 Dr 1 w/Beam"
    set pssFaults(gen1upgraded,511,23ID) "Sta C Zone2 Dr 2 w/Beam"
    set pssFaults(gen1upgraded,512) "Door 2 opened with beam in Station E"
    set pssFaults(gen1upgraded,513) "Door 3 opened with beam in Station E"
    set pssFaults(gen1upgraded,514) "Door 4 opened with beam in Station E"
    set pssFaults(gen1upgraded,521) "Crash button 1 pressed while Station E searched"
    set pssFaults(gen1upgraded,521,05BM) "Sta C Zone1 CB 1 w/Search"
    set pssFaults(gen1upgraded,521,09ID) "Sta SOE2 CB 1 w/Search"
    set pssFaults(gen1upgraded,521,23ID) "Sta C Zone2 CB 2 w/Search"
    set pssFaults(gen1upgraded,522) "Crash button 2 pressed while Station E searched"
    set pssFaults(gen1upgraded,523) "Crash button 3 pressed while Station E searched"
    set pssFaults(gen1upgraded,524) "Crash button 4 pressed while Station E searched"
    set pssFaults(gen1upgraded,531) "Station E Remote Block 1 Communication loss"
    set pssFaults(gen1upgraded,532) "Station E Remote Block 2 Communication loss"
    set pssFaults(gen1upgraded,533) "Station E Remote Block 3 Communication loss"
    set pssFaults(gen1upgraded,534) "Station E Remote Block 4 Communication loss"
    set pssFaults(gen1upgraded,541) "Station E Photon Stop Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,542) "Station E Photon Stop Both Switch (without possible Safety Shutter exposure)"
    set pssFaults(gen1upgraded,543) "Station E Photon Shutter Fail to Close Fault"
    set pssFaults(gen1upgraded,544) "Station E Photon Shutter Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,545) "Station E Safety Stop Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,546) "Station E Safety Stop Both Switch (while Beam Ready and Safety Shutter protected)"
    set pssFaults(gen1upgraded,547) "Station E Safety Shutter Fail to Close Fault"
    set pssFaults(gen1upgraded,548) "Station E Safety Shutter Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,549) "Station E Safety Shutter/Mono Shutter 1 Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,550) "Station E Mono Shutter 1 Both Switch (while not Beam Present)"
    set pssFaults(gen1upgraded,551) "Station E Safety Shutter/Mono Stop 1 Fail to Close Fault"
    set pssFaults(gen1upgraded,552) "Station E Safety Shutter/Mono Stop 1 Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,553) "Station E Safety Shutter/Mono Shutter 2 Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,554) "Station E Mono Shutter 2 Both Switch (while not Beam Present)"
    set pssFaults(gen1upgraded,555) "Station E Safety Shutter/Mono Stop 2 Fail to Close Fault"
    set pssFaults(gen1upgraded,556) "Station E Safety Shutter/Mono Stop 2 Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,557) "Station E Safety Shutter 1 Both Switch (while Beam Ready and Safety Shutter protected)"
    set pssFaults(gen1upgraded,558) "Station E Safety Shutter 2 Both Switch (while Beam Ready and Safety Shutter protected)"
    set pssFaults(gen1upgraded,559) "Station E Manual Beam Stop Close Switch Fail (while searched)"
    set pssFaults(gen1upgraded,560) "Station E Manual Beam Stop Both Switch (while not Beam Present)"
    set pssFaults(gen1upgraded,561) "Station E Manual Beam stop open switch fail while searched"
    set pssFaults(gen1upgraded,562) "Station E Manual Beam stop close switch make while searched"
    set pssFaults(gen1upgraded,563) "Station E BLSIE not under PSS control"
    set pssFaults(gen1upgraded,571) "Station E Photon Shutter Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,572) "Station E Photon Shutter Both Switch (with possible Safety Shutter exposure)"
    set pssFaults(gen1upgraded,573) "Station E Safety Shutter Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,574) "Station E Safety Shutter Both Switch (with possible Personnel or Safety Shutter exposure)"
    set pssFaults(gen1upgraded,575) "Station E Safety Shutter Beam Exposure"
    set pssFaults(gen1upgraded,576) "Station E Safety Shutter/Mono Stop 1 Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,577) "Station E Safety Shutter 1 Both Switch (with possible Personnel or Safety Shutter exposure)"
    set pssFaults(gen1upgraded,578) "Station E Safety Shutter 1 Beam Exposure"
    set pssFaults(gen1upgraded,579) "Station E Safety Shutter/Mono Stop 2 Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,580) "Station E Safety Shutter 2 Both Switch (with possible Personnel or Safety Shutter exposure)"
    set pssFaults(gen1upgraded,581) "Station E Safety Shutter 2 Beam Exposure"
    set pssFaults(gen1upgraded,582) "Station E Mono Stop 1 Both Switch (while Beam Present)"
    set pssFaults(gen1upgraded,583) "Station E Mono Stop 2 Both Switch (while Beam Present)"
    set pssFaults(gen1upgraded,584) "Station E Manual Beam Stop Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,585) "Station E Manual Beam Stop Both Switch (while Beam Present)"
    set pssFaults(gen1upgraded,601) "Crash button 1 pressed while beam in Station F"
    set pssFaults(gen1upgraded,601,08ID) "Sta I CB 1 w/Beam"
    set pssFaults(gen1upgraded,601,09ID) "Sta A Zone1 CB 1 w/Beam"
    set pssFaults(gen1upgraded,602) "Crash button 2 pressed while beam in Station F"
    set pssFaults(gen1upgraded,602,08ID) "Sta I CB 2 w/Beam"
    set pssFaults(gen1upgraded,603) "Crash button 3 pressed while beam in Station F"
    set pssFaults(gen1upgraded,604) "Crash button 4 pressed while beam in Station F"
    set pssFaults(gen1upgraded,611) "Door 1 opened with beam in Station F"
    set pssFaults(gen1upgraded,611,08ID) "Sta I Dr 1 w/Beam"
    set pssFaults(gen1upgraded,611,09ID) "Sta A Zone1 Dr 1 w/Beam"
    set pssFaults(gen1upgraded,612) "Door 2 opened with beam in Station F"
    set pssFaults(gen1upgraded,612,08ID) "Sta I Dr 2 w/Beam"
    set pssFaults(gen1upgraded,613) "Door 3 opened with beam in Station F"
    set pssFaults(gen1upgraded,614) "Door 4 opened with beam in Station F"
    set pssFaults(gen1upgraded,621) "Crash button 1 pressed while Station F searched"
    set pssFaults(gen1upgraded,621,08ID) "Sta I CB 1 w/Search"
    set pssFaults(gen1upgraded,621,09ID) "Sta A Zone1 CB 1 w/Search"
    set pssFaults(gen1upgraded,622) "Crash button 2 pressed while Station F searched"
    set pssFaults(gen1upgraded,622,08ID) "Sta I CB 2 w/Search"
    set pssFaults(gen1upgraded,623) "Crash button 3 pressed while Station F searched"
    set pssFaults(gen1upgraded,624) "Crash button 4 pressed while Station F searched"
    set pssFaults(gen1upgraded,631) "Station F Remote Block 1 Communication loss"
    set pssFaults(gen1upgraded,631,08ID) "Sta I I/O Block 1"
    set pssFaults(gen1upgraded,632) "Station F Remote Block 2 Communication loss"
    set pssFaults(gen1upgraded,632,08ID) "Sta I I/O Block 2"
    set pssFaults(gen1upgraded,633) "Station F Remote Block 3 Communication loss"
    set pssFaults(gen1upgraded,633,08ID) "Sta I I/O Block 3"
    set pssFaults(gen1upgraded,634) "Station F Remote Block 4 Communication loss"
    set pssFaults(gen1upgraded,641) "Station F Photon Stop Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,642) "Station F Photon Stop Both Switch (without possible Safety Shutter exposure)"
    set pssFaults(gen1upgraded,643) "Station F Photon Shutter Fail to Close Fault"
    set pssFaults(gen1upgraded,644) "Station F Photon Shutter Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,645) "Station F Safety Stop Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,646) "Station F Safety Stop Both Switch (while Beam Ready and Safety Shutter protected)"
    set pssFaults(gen1upgraded,647) "Station F Safety Shutter Fail to Close Fault"
    set pssFaults(gen1upgraded,648) "Station F Safety Shutter Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,649) "Station F Safety Shutter/Mono Shutter 1 Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,649,08ID) "SIS MS1 Close Sw Fail"
    set pssFaults(gen1upgraded,650) "Station F Mono Shutter 1 Both Switch (while not Beam Present)"
    set pssFaults(gen1upgraded,650,08ID) "SIS MS1 Both Switch"
    set pssFaults(gen1upgraded,651) "Station F Safety Shutter/Mono Stop 1 Fail to Close Fault"
    set pssFaults(gen1upgraded,651,08ID) "SIS MS1 Fail to Close"
    set pssFaults(gen1upgraded,652) "Station F Safety Shutter/Mono Stop 1 Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,652,08ID) "SIS MS1 Fail to Fully Cl"
    set pssFaults(gen1upgraded,653) "Station F Safety Shutter/Mono Shutter 2 Close Switch Fail (while not Beam Present)"
    set pssFaults(gen1upgraded,653,08ID) "SIS MS2 Close Sw Fail"
    set pssFaults(gen1upgraded,654) "Station F Mono Shutter 2 Both Switch (while not Beam Present)"
    set pssFaults(gen1upgraded,654,08ID) "SIS MS2 Both Switch"
    set pssFaults(gen1upgraded,655) "Station F Safety Shutter/Mono Stop 2 Fail to Close Fault"
    set pssFaults(gen1upgraded,655,08ID) "SIS MS2 Fail to Close"
    set pssFaults(gen1upgraded,656) "Station F Safety Shutter/Mono Stop 2 Fail to Fully Close Fault"
    set pssFaults(gen1upgraded,656,08ID) "SIS MS2 Fail to Fully Cl"
    set pssFaults(gen1upgraded,657) "Station F Safety Shutter 1 Both Switch (while Beam Ready and Safety Shutter protected)"
    set pssFaults(gen1upgraded,658) "Station F Safety Shutter 2 Both Switch (while Beam Ready and Safety Shutter protected)"
    set pssFaults(gen1upgraded,659) "Station F Manual Beam Stop Close Switch Fail (while searched)"
    set pssFaults(gen1upgraded,660) "Station F Manual Beam Stop Both Switch (while not Beam Present)"
    set pssFaults(gen1upgraded,661) "Station F Manual Beam stop open switch fail while searched"
    set pssFaults(gen1upgraded,662) "Station F Manual Beam stop close switch make while searched"
    set pssFaults(gen1upgraded,663) "Station F BLSIE not under PSS control"
    set pssFaults(gen1upgraded,663,08ID) "Sta I BLSIE not PSS"
    set pssFaults(gen1upgraded,671) "Station F Photon Shutter Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,672) "Station F Photon Shutter Both Switch (with possible Safety Shutter exposure)"
    set pssFaults(gen1upgraded,673) "Station F Safety Shutter Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,674) "Station F Safety Shutter Both Switch (with possible Personnel or Safety Shutter exposure)"
    set pssFaults(gen1upgraded,675) "Station F Safety Shutter Beam Exposure"
    set pssFaults(gen1upgraded,676) "Station F Safety Shutter/Mono Stop 1 Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,676,08ID) "SIS MS1/SS1 Close Sw Fl"
    set pssFaults(gen1upgraded,677) "Station F Safety Shutter 1 Both Switch (with possible Personnel or Safety Shutter exposure)"
    set pssFaults(gen1upgraded,678) "Station F Safety Shutter 1 Beam Exposure"
    set pssFaults(gen1upgraded,679) "Station F Safety Shutter/Mono Stop 2 Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,679,08ID) "SIS MS2/SS2 Close Sw Fl"
    set pssFaults(gen1upgraded,680) "Station F Safety Shutter 2 Both Switch (with possible Personnel or Safety Shutter exposure)"
    set pssFaults(gen1upgraded,681) "Station F Safety Shutter 2 Beam Exposure"
    set pssFaults(gen1upgraded,682) "Station F Mono Stop 1 Both Switch (while Beam Present)"
    set pssFaults(gen1upgraded,682,08ID) "SIS MS1 Both Switch"
    set pssFaults(gen1upgraded,683) "Station F Mono Stop 2 Both Switch (while Beam Present)"
    set pssFaults(gen1upgraded,683,08ID) "SIS MS2 Both Switch"
    set pssFaults(gen1upgraded,684) "Station F Manual Beam Stop Close Switch Fail (while Beam Present)"
    set pssFaults(gen1upgraded,685) "Station F Manual Beam Stop Both Switch (while Beam Present)"
    set pssFaults(gen1upgraded,1001) "Processor battery dead"
    set pssFaults(gen1upgraded,1002) "Beamline was taken Global Offline while beam active causes a ring dump."
    set pssFaults(gen1upgraded,1003) "Global offline did not disable air manifold"
    set pssFaults(gen1upgraded,1004) "FE Air pressure low"
    set pssFaults(gen1upgraded,1011) "DIW channel 1 Flow below set point"
    set pssFaults(gen1upgraded,1012) "DIW channel 2 Flow below set point"
    set pssFaults(gen1upgraded,1013) "DIW channel 3 Flow below set point"
    set pssFaults(gen1upgraded,1014) "DIW channel 4 Flow below set point"
    set pssFaults(gen1upgraded,1015) "DIW channel 5 Flow below set point"
    set pssFaults(gen1upgraded,1016) "DIW channel 6 Flow below set point"
    set pssFaults(gen1upgraded,1017) "DIW channel 7 Flow below set point"
    set pssFaults(gen1upgraded,1018) "DIW channel 8 Flow below set point"
    set pssFaults(gen1upgraded,1021) "Analog Channel 1 detected Overflow or Underflow"
    set pssFaults(gen1upgraded,1022) "Analog Channel 2 detected Overflow or Underflow"
    set pssFaults(gen1upgraded,1023) "Analog Channel 3 detected Overflow or Underflow"
    set pssFaults(gen1upgraded,1024) "Analog Channel 4 detected Overflow or Underflow"
    set pssFaults(gen1upgraded,1025) "Analog Channel 5 detected Overflow or Underflow"
    set pssFaults(gen1upgraded,1026) "Analog Channel 6 detected Overflow or Underflow"
    set pssFaults(gen1upgraded,1027) "Analog Channel 7 detected Overflow or Underflow"
    set pssFaults(gen1upgraded,1028) "Analog Channel 8 detected Overflow or Underflow"
    set pssFaults(gen1upgraded,1101) "Front End Photon Shutter 1 Open Switch Fail"
    set pssFaults(gen1upgraded,1102) "Front End Photon Shutter 1 Fail to close when commanded"
    set pssFaults(gen1upgraded,1103) "Front End Photon Shutter 1 Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1104) "Front End Photon Shutter 1 Fail to open when commanded"
    set pssFaults(gen1upgraded,1105) "Front End Photon Shutter 1 Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1106) "Front End Photon Shutter 2 Open Switch Fail"
    set pssFaults(gen1upgraded,1106,35BM) "PS2/A Open Switch Fail"
    set pssFaults(gen1upgraded,1107) "Front End Photon Shutter 2 Fail to close when commanded"
    set pssFaults(gen1upgraded,1107,35BM) "PS2/A Fail to Close "
    set pssFaults(gen1upgraded,1108) "Front End Photon Shutter 2 Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1108,35BM) "PS2/A Fail to Fully Close "
    set pssFaults(gen1upgraded,1109) "Front End Photon Shutter 2 Fail to open when commanded"
    set pssFaults(gen1upgraded,1109,35BM) "PS2/A Fail to Open "
    set pssFaults(gen1upgraded,1110) "Front End Photon Shutter 2 Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1110,35BM) "PS2/A Fail to Fully Open "
    set pssFaults(gen1upgraded,1111) "Front End Safety Shutter 1 Open Switch Fail"
    set pssFaults(gen1upgraded,1111,35BM) "SS1/A Open Switch Fail"
    set pssFaults(gen1upgraded,1112) "Front End Safety Shutter 1 Fail to close when commanded"
    set pssFaults(gen1upgraded,1112,35BM) "SS1/A Fail to Close "
    set pssFaults(gen1upgraded,1113) "Front End Safety Shutter 1 Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1113,35BM) "SS1/A Fail to Fully Close "
    set pssFaults(gen1upgraded,1114) "Front End Safety Shutter 1 Fail to open when commanded"
    set pssFaults(gen1upgraded,1114,35BM) "SS1/A Fail to Open "
    set pssFaults(gen1upgraded,1115) "Front End Safety Shutter 1 Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1115,35BM) "SS1/A Fail to Fully Open"
    set pssFaults(gen1upgraded,1116) "Front End Safety Shutter 2 Open Switch Fail"
    set pssFaults(gen1upgraded,1116,35BM) "SS2/A Open Switch Fail"
    set pssFaults(gen1upgraded,1117) "Front End Safety Shutter 2 Fail to close when commanded"
    set pssFaults(gen1upgraded,1117,35BM) "SS2/A Fail to Close "
    set pssFaults(gen1upgraded,1118) "Front End Safety Shutter 2 Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1118,35BM) "SS2/A Fail to Fully Close"
    set pssFaults(gen1upgraded,1119) "Front End Safety Shutter 2 Fail to open when commanded"
    set pssFaults(gen1upgraded,1119,35BM) "SS2/A Fail to Open "
    set pssFaults(gen1upgraded,1120) "Front End Safety Shutter 2 Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1120,35BM) "SS2/A Fail to Fully Open"
    set pssFaults(gen1upgraded,1121) "Front End Photon Shutter 1 No Switch Warning"
    set pssFaults(gen1upgraded,1122) "Front End Photon Shutter 2 No Switch Warning"
    set pssFaults(gen1upgraded,1122,35BM) "PS2/A No Switch"
    set pssFaults(gen1upgraded,1123) "Front End Safety Shutter 1 No Switch Warning"
    set pssFaults(gen1upgraded,1123,35BM) "SS1/A No Switch"
    set pssFaults(gen1upgraded,1124) "Front End Safety Shutter 2 No Switch Warning"
    set pssFaults(gen1upgraded,1124,35BM) "SS2/A No Switch"
    set pssFaults(gen1upgraded,1127) "Front End Remote Shutter Interface Open request stuck on"
    set pssFaults(gen1upgraded,1128) "Front End Remote Shutter Interface Close request stuck on"
    set pssFaults(gen1upgraded,1129) "FES Air pressure low"
    set pssFaults(gen1upgraded,1130) "Station A Manual Door Egresses Pressed"
    set pssFaults(gen1upgraded,1141) "Station A Door 1 close switch failure"
    set pssFaults(gen1upgraded,1142) "Station A Door 2 close switch failure"
    set pssFaults(gen1upgraded,1143) "Station A Door 3 close switch failure"
    set pssFaults(gen1upgraded,1144) "Station A Door 4 close switch failure"
    set pssFaults(gen1upgraded,1151) "Station A searched for Chain A, but not for Chain B"
    set pssFaults(gen1upgraded,1151,09ID) "Sta A Zone2 search match"
    set pssFaults(gen1upgraded,1201) "Station B Photon Shutter Open Switch Fail"
    set pssFaults(gen1upgraded,1202) "Station B Photon Shutter Fail to close when commanded"
    set pssFaults(gen1upgraded,1203) "Station B Photon Shutter Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1204) "Station B Photon Shutter Fail to open when commanded"
    set pssFaults(gen1upgraded,1205) "Station B Photon Shutter Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1206) "Station B Safety Shutter Open Switch Fail"
    set pssFaults(gen1upgraded,1207) "Station B Safety Shutter Fail to close when commanded"
    set pssFaults(gen1upgraded,1208) "Station B Safety Shutter Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1209) "Station B Safety Shutter Fail to open when commanded"
    set pssFaults(gen1upgraded,1210) "Station B Safety Shutter Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1211) "Station B Safety Shutter/Mono Stop 1 Open Switch Fail"
    set pssFaults(gen1upgraded,1212) "Station B Safety Shutter/Mono Stop 1 Fail to close when commanded"
    set pssFaults(gen1upgraded,1213) "Station B Safety Shutter/Mono Stop 1 Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1214) "Station B Safety Shutter/Mono Stop 1 Fail to open when commanded"
    set pssFaults(gen1upgraded,1215) "Station B Safety Shutter/Mono Stop 1 Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1216) "Station B Safety Shutter/Mono Stop 2 Open Switch Fail"
    set pssFaults(gen1upgraded,1217) "Station B Safety Shutter/Mono Stop 2 Fail to close when commanded"
    set pssFaults(gen1upgraded,1218) "Station B Safety Shutter/Mono Stop 2 Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1219) "Station B Safety Shutter/Mono Stop 2 Fail to open when commanded"
    set pssFaults(gen1upgraded,1220) "Station B Safety Shutter/Mono Stop 2 Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1221) "Station B Photon Shutter No Switch Warning"
    set pssFaults(gen1upgraded,1221,32ID) "SBS Mode Table in Transition"
    set pssFaults(gen1upgraded,1222) "Station B Safety Shutter No Switch Warning"
    set pssFaults(gen1upgraded,1222,32ID) "SBS Mode Table in Transition"
    set pssFaults(gen1upgraded,1223) "Station B Safety Shutter/Mono Stop 1 No Switch Warning"
    set pssFaults(gen1upgraded,1224) "Station B Safety Shutter/Mono Stop 2 No Switch Warning"
    set pssFaults(gen1upgraded,1227) "Station B Remote Shutter Interface Open request stuck on"
    set pssFaults(gen1upgraded,1228) "Station B Remote Shutter Interface Close request stuck on"
    set pssFaults(gen1upgraded,1229) "Station B Shutter Air pressure low"
    set pssFaults(gen1upgraded,1230) "Station B Manual Door Egresses Pressed"
    set pssFaults(gen1upgraded,1231) "Station B Shutter BLSIE in Local"
    set pssFaults(gen1upgraded,1241) "Station B Door 1 close switch failure"
    set pssFaults(gen1upgraded,1242) "Station B Door 2 close switch failure"
    set pssFaults(gen1upgraded,1243) "Station B Door 3 close switch failure"
    set pssFaults(gen1upgraded,1244) "Station B Door 4 close switch failure"
    set pssFaults(gen1upgraded,1251) "Station B searched for Chain A, but not for Chain B"
    set pssFaults(gen1upgraded,1251,17ID) "Sta B Zone1 search match"
    set pssFaults(gen1upgraded,1301) "Station C Photon Shutter Open Switch Fail"
    set pssFaults(gen1upgraded,1301,35BM) "PS2/C Open Switch Fail"
    set pssFaults(gen1upgraded,1302) "Station C Photon Shutter Fail to close when commanded"
    set pssFaults(gen1upgraded,1302,35BM) "PS2/C Fail to Close"
    set pssFaults(gen1upgraded,1303) "Station C Photon Shutter Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1303,35BM) "PS2/C Fail to Fully Close "
    set pssFaults(gen1upgraded,1304) "Station C Photon Shutter Fail to open when commanded"
    set pssFaults(gen1upgraded,1304,35BM) "PS2/C Fail to Open"
    set pssFaults(gen1upgraded,1305) "Station C Photon Shutter Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1305,35BM) "PS2/C Fail to Fully Open "
    set pssFaults(gen1upgraded,1306) "Station C Safety Shutter Open Switch Fail"
    set pssFaults(gen1upgraded,1307) "Station C Safety Shutter Fail to close when commanded"
    set pssFaults(gen1upgraded,1308) "Station C Safety Shutter Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1309) "Station C Safety Shutter Fail to open when commanded"
    set pssFaults(gen1upgraded,1310) "Station C Safety Shutter Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1311) "Station C Safety Shutter/Mono Stop 1 Open Switch Fail"
    set pssFaults(gen1upgraded,1311,35BM) "SS1/C Open Switch Fail"
    set pssFaults(gen1upgraded,1312) "Station C Safety Shutter/Mono Stop 1 Fail to close when commanded"
    set pssFaults(gen1upgraded,1312,35BM) "SS1/C Fail to Close"
    set pssFaults(gen1upgraded,1313) "Station C Safety Shutter/Mono Stop 1 Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1313,35BM) "SS1/C Fail to Fully Close "
    set pssFaults(gen1upgraded,1314) "Station C Safety Shutter/Mono Stop 1 Fail to open when commanded"
    set pssFaults(gen1upgraded,1314,35BM) "SS1/C Fail to Open"
    set pssFaults(gen1upgraded,1315) "Station C Safety Shutter/Mono Stop 1 Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1315,35BM) "SS1/C Fail to Fully Open "
    set pssFaults(gen1upgraded,1316) "Station C Safety Shutter/Mono Stop 2 Open Switch Fail"
    set pssFaults(gen1upgraded,1316,35BM) "SS2/C Open Switch Fail"
    set pssFaults(gen1upgraded,1317) "Station C Safety Shutter/Mono Stop 2 Fail to close when commanded"
    set pssFaults(gen1upgraded,1317,35BM) "SS2/C Fail to Close"
    set pssFaults(gen1upgraded,1318) "Station C Safety Shutter/Mono Stop 2 Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1318,35BM) "SS2/C Fail to Fully Close "
    set pssFaults(gen1upgraded,1319) "Station C Safety Shutter/Mono Stop 2 Fail to open when commanded"
    set pssFaults(gen1upgraded,1319,35BM) "SS2/C Fail to Open"
    set pssFaults(gen1upgraded,1320) "Station C Safety Shutter/Mono Stop 2 Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1320,35BM) "SS2/C Fail to Fully Open "
    set pssFaults(gen1upgraded,1321) "Station C Photon Shutter No Switch Warning"
    set pssFaults(gen1upgraded,1321,35BM) "PS2/C No Switch"
    set pssFaults(gen1upgraded,1322) "Station C Safety Shutter No Switch Warning"
    set pssFaults(gen1upgraded,1323) "Station C Safety Shutter/Mono Stop 1 No Switch Warning"
    set pssFaults(gen1upgraded,1323,35BM) "SS1/C No Switch"
    set pssFaults(gen1upgraded,1324) "Station C Safety Shutter/Mono Stop 2 No Switch Warning"
    set pssFaults(gen1upgraded,1324,35BM) "SS2/C No Switch"
    set pssFaults(gen1upgraded,1327) "Station C Remote Shutter Interface Open request stuck on"
    set pssFaults(gen1upgraded,1328) "Station C Remote Shutter Interface Close request stuck on"
    set pssFaults(gen1upgraded,1329) "Station C Shutter Air pressure low"
    set pssFaults(gen1upgraded,1330) "Station C Manual Door Egresses Pressed"
    set pssFaults(gen1upgraded,1331) "Station C Shutter BLSIE in Local"
    set pssFaults(gen1upgraded,1341) "Station C Door 1 close switch failure"
    set pssFaults(gen1upgraded,1342) "Station C Door 2 close switch failure"
    set pssFaults(gen1upgraded,1343) "Station C Door 3 close switch failure"
    set pssFaults(gen1upgraded,1344) "Station C Door 4 close switch failure"
    set pssFaults(gen1upgraded,1351) "Station C searched for Chain A, but not for Chain B"
    set pssFaults(gen1upgraded,1351,05BM) "Sta C Zone2 search match"
    set pssFaults(gen1upgraded,1351,17ID) "Sta B Zone2 search match"
    set pssFaults(gen1upgraded,1351,23ID) "Sta C Zone1 search match"
    set pssFaults(gen1upgraded,1401) "Station D Photon Shutter Open Switch Fail"
    set pssFaults(gen1upgraded,1402) "Station D Photon Shutter Fail to close when commanded"
    set pssFaults(gen1upgraded,1403) "Station D Photon Shutter Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1404) "Station D Photon Shutter Fail to open when commanded"
    set pssFaults(gen1upgraded,1405) "Station D Photon Shutter Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1406) "Station D Safety Shutter Open Switch Fail"
    set pssFaults(gen1upgraded,1407) "Station D Safety Shutter Fail to close when commanded"
    set pssFaults(gen1upgraded,1408) "Station D Safety Shutter Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1409) "Station D Safety Shutter Fail to open when commanded"
    set pssFaults(gen1upgraded,1410) "Station D Safety Shutter Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1411) "Station D Safety Shutter/Mono Stop 1 Open Switch Fail"
    set pssFaults(gen1upgraded,1412) "Station D Safety Shutter/Mono Stop 1 Fail to close when commanded"
    set pssFaults(gen1upgraded,1413) "Station D Safety Shutter/Mono Stop 1 Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1414) "Station D Safety Shutter/Mono Stop 1 Fail to open when commanded"
    set pssFaults(gen1upgraded,1415) "Station D Safety Shutter/Mono Stop 1 Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1416) "Station D Safety Shutter/Mono Stop 2 Open Switch Fail"
    set pssFaults(gen1upgraded,1417) "Station D Safety Shutter/Mono Stop 2 Fail to close when commanded"
    set pssFaults(gen1upgraded,1418) "Station D Safety Shutter/Mono Stop 2 Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1419) "Station D Safety Shutter/Mono Stop 2 Fail to open when commanded"
    set pssFaults(gen1upgraded,1420) "Station D Safety Shutter/Mono Stop 2 Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1421) "Station D Photon Shutter No Switch Warning"
    set pssFaults(gen1upgraded,1422) "Station D Safety Shutter No Switch Warning"
    set pssFaults(gen1upgraded,1423) "Station D Safety Shutter/Mono Stop 1 No Switch Warning"
    set pssFaults(gen1upgraded,1424) "Station D Safety Shutter/Mono Stop 2 No Switch Warning"
    set pssFaults(gen1upgraded,1427) "Station D Remote Shutter Interface Open request stuck on"
    set pssFaults(gen1upgraded,1428) "Station D Remote Shutter Interface Close request stuck on"
    set pssFaults(gen1upgraded,1429) "Station D Shutter Air pressure low"
    set pssFaults(gen1upgraded,1430) "Station D Manual Door Egresses Pressed"
    set pssFaults(gen1upgraded,1431) "Station D Shutter BLSIE in Local"
    set pssFaults(gen1upgraded,1441) "Station D Door 1 close switch failure"
    set pssFaults(gen1upgraded,1442) "Station D Door 2 close switch failure"
    set pssFaults(gen1upgraded,1443) "Station D Door 3 close switch failure"
    set pssFaults(gen1upgraded,1444) "Station D Door 4 close switch failure"
    set pssFaults(gen1upgraded,1451) "Station D searched for Chain A, but not for Chain B"
    set pssFaults(gen1upgraded,1451,09ID) "Sta SOE1 search match"
    set pssFaults(gen1upgraded,1501) "Station E Photon Shutter Open Switch Fail"
    set pssFaults(gen1upgraded,1502) "Station E Photon Shutter Fail to close when commanded"
    set pssFaults(gen1upgraded,1503) "Station E Photon Shutter Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1504) "Station E Photon Shutter Fail to open when commanded"
    set pssFaults(gen1upgraded,1505) "Station E Photon Shutter Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1506) "Station E Safety Shutter Open Switch Fail"
    set pssFaults(gen1upgraded,1507) "Station E Safety Shutter Fail to close when commanded"
    set pssFaults(gen1upgraded,1508) "Station E Safety Shutter Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1509) "Station E Safety Shutter Fail to open when commanded"
    set pssFaults(gen1upgraded,1510) "Station E Safety Shutter Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1511) "Station E Safety Shutter/Mono Stop 1 Open Switch Fail"
    set pssFaults(gen1upgraded,1512) "Station E Safety Shutter/Mono Stop 1 Fail to close when commanded"
    set pssFaults(gen1upgraded,1513) "Station E Safety Shutter/Mono Stop 1 Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1514) "Station E Safety Shutter/Mono Stop 1 Fail to open when commanded"
    set pssFaults(gen1upgraded,1515) "Station E Safety Shutter/Mono Stop 1 Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1516) "Station E Safety Shutter/Mono Stop 2 Open Switch Fail"
    set pssFaults(gen1upgraded,1517) "Station E Safety Shutter/Mono Stop 2 Fail to close when commanded"
    set pssFaults(gen1upgraded,1518) "Station E Safety Shutter/Mono Stop 2 Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1519) "Station E Safety Shutter/Mono Stop 2 Fail to open when commanded"
    set pssFaults(gen1upgraded,1520) "Station E Safety Shutter/Mono Stop 2 Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1521) "Station E Photon Shutter No Switch Warning"
    set pssFaults(gen1upgraded,1522) "Station E Safety Shutter No Switch Warning"
    set pssFaults(gen1upgraded,1523) "Station E Safety Shutter/Mono Stop 1 No Switch Warning"
    set pssFaults(gen1upgraded,1524) "Station E Safety Shutter/Mono Stop 2 No Switch Warning"
    set pssFaults(gen1upgraded,1527) "Station E Remote Shutter Interface Open request stuck on"
    set pssFaults(gen1upgraded,1528) "Station E Remote Shutter Interface Close request stuck on"
    set pssFaults(gen1upgraded,1529) "Station E Shutter Air pressure low"
    set pssFaults(gen1upgraded,1530) "Station E Manual Door Egresses Pressed"
    set pssFaults(gen1upgraded,1531) "Station E Shutter BLSIE in Local"
    set pssFaults(gen1upgraded,1541) "Station E Door 1 close switch failure"
    set pssFaults(gen1upgraded,1542) "Station E Door 2 close switch failure"
    set pssFaults(gen1upgraded,1543) "Station E Door 3 close switch failure"
    set pssFaults(gen1upgraded,1544) "Station E Door 4 close switch failure"
    set pssFaults(gen1upgraded,1551) "Station E searched for Chain A, but not for Chain B"
    set pssFaults(gen1upgraded,1551,05BM) "Sta C Zone1 search match"
    set pssFaults(gen1upgraded,1551,09ID) "Sta SOE2 search match"
    set pssFaults(gen1upgraded,1551,23ID) "Sta C Zone2 search match"
    set pssFaults(gen1upgraded,1601) "Station F Photon Shutter Open Switch Fail"
    set pssFaults(gen1upgraded,1602) "Station F Photon Shutter Fail to close when commanded"
    set pssFaults(gen1upgraded,1603) "Station F Photon Shutter Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1604) "Station F Photon Shutter Fail to open when commanded"
    set pssFaults(gen1upgraded,1605) "Station F Photon Shutter Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1606) "Station F Safety Shutter Open Switch Fail"
    set pssFaults(gen1upgraded,1607) "Station F Safety Shutter Fail to close when commanded"
    set pssFaults(gen1upgraded,1608) "Station F Safety Shutter Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1609) "Station F Safety Shutter Fail to open when commanded"
    set pssFaults(gen1upgraded,1610) "Station F Safety Shutter Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1611) "Station F Safety Shutter/Mono Stop 1 Open Switch Fail"
    set pssFaults(gen1upgraded,1611,08ID) "SIS MS1 Open Sw Fail"
    set pssFaults(gen1upgraded,1612) "Station F Safety Shutter/Mono Stop 1 Fail to close when commanded"
    set pssFaults(gen1upgraded,1612,08ID) "SIS MS1 Fail to Close"
    set pssFaults(gen1upgraded,1613) "Station F Safety Shutter/Mono Stop 1 Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1613,08ID) "SIS MS1 Fail to Ful Cls"
    set pssFaults(gen1upgraded,1614) "Station F Safety Shutter/Mono Stop 1 Fail to open when commanded"
    set pssFaults(gen1upgraded,1614,08ID) "SIS MS1 Fail to Open"
    set pssFaults(gen1upgraded,1615) "Station F Safety Shutter/Mono Stop 1 Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1615,08ID) "SIS MS1 Fail to Ful Opn"
    set pssFaults(gen1upgraded,1616) "Station F Safety Shutter/Mono Stop 2 Open Switch Fail"
    set pssFaults(gen1upgraded,1616,08ID) "SIS MS2 Opn Sw Fail"
    set pssFaults(gen1upgraded,1617) "Station F Safety Shutter/Mono Stop 2 Fail to close when commanded"
    set pssFaults(gen1upgraded,1617,08ID) "SIS MS2 Fail to Close"
    set pssFaults(gen1upgraded,1618) "Station F Safety Shutter/Mono Stop 2 Fail to fully close when commanded"
    set pssFaults(gen1upgraded,1618,08ID) "SIS MS2 Fail to Ful Cls"
    set pssFaults(gen1upgraded,1619) "Station F Safety Shutter/Mono Stop 2 Fail to open when commanded"
    set pssFaults(gen1upgraded,1619,08ID) "SIS MS2 Fail to Open"
    set pssFaults(gen1upgraded,1620) "Station F Safety Shutter/Mono Stop 2 Fail to fully open when commanded"
    set pssFaults(gen1upgraded,1620,08ID) "SIS MS2 Fail to Ful Opn"
    set pssFaults(gen1upgraded,1621) "Station F Photon Shutter No Switch Warning"
    set pssFaults(gen1upgraded,1621,08ID) "SIS PS No Sw"
    set pssFaults(gen1upgraded,1622) "Station F Safety Shutter No Switch Warning"
    set pssFaults(gen1upgraded,1622,08ID) "SIS SS No Sw"
    set pssFaults(gen1upgraded,1623) "Station F Safety Shutter/Mono Stop 1 No Switch Warning"
    set pssFaults(gen1upgraded,1623,08ID) "SIS MS1 No Sw"
    set pssFaults(gen1upgraded,1624) "Station F Safety Shutter/Mono Stop 2 No Switch Warning"
    set pssFaults(gen1upgraded,1624,08ID) "SIS MS2 No Sw"
    set pssFaults(gen1upgraded,1627) "Station F Remote Shutter Interface Open request stuck on"
    set pssFaults(gen1upgraded,1628) "Station F Remote Shutter Interface Close request stuck on"
    set pssFaults(gen1upgraded,1629) "Station F Shutter Air pressure low"
    set pssFaults(gen1upgraded,1629,08ID) "Sta I Air Pressure"
    set pssFaults(gen1upgraded,1630) "Station F Manual Door Egresses Pressed"
    set pssFaults(gen1upgraded,1631) "Station F Shutter BLSIE in Local"
    set pssFaults(gen1upgraded,1641) "Station F Door 1 close switch failure"
    set pssFaults(gen1upgraded,1642) "Station F Door 2 close switch failure"
    set pssFaults(gen1upgraded,1643) "Station F Door 3 close switch failure"
    set pssFaults(gen1upgraded,1644) "Station F Door 4 close switch failure"
    set pssFaults(gen1upgraded,1651) "Station F searched for Chain A, but not for Chain B"
    set pssFaults(gen1upgraded,1651,08ID) "Sta I search match"
    set pssFaults(gen1upgraded,1651,09ID) "Sta A Zone1 search match"
    set pssFaults(gen1upgraded,1727) "Station G Remote Shutter Interface Open request stuck on"
    set pssFaults(gen1upgraded,1728) "Station G Remote Shutter Interface Close request stuck on"
    set pssFaults(gen1upgraded,1730) "Station G Manual Door Egresses Pressed"
    set pssFaults(gen1upgraded,1731) "Station G Shutter BLSIE in Local"
    set pssFaults(gen1upgraded,1827) "Station H Remote Shutter Interface Open request stuck on"
    set pssFaults(gen1upgraded,1828) "Station H Remote Shutter Interface Close request stuck on"
    set pssFaults(gen1upgraded,1830) "Station H Manual Door Egresses Pressed"
    set pssFaults(gen1upgraded,1831) "Station H Shutter BLSIE in Local"
    set pssFaults(gen1upgraded,1927) "Station I Remote Shutter Interface Open request stuck on"
    set pssFaults(gen1upgraded,1928) "Station I Remote Shutter Interface Close request stuck on"
    set pssFaults(gen1upgraded,1930) "Station I Manual Door Egresses Pressed"
    set pssFaults(gen1upgraded,1931) "Station I Shutter BLSIE in Local"


    set pssFaults(gen3upgraded,FAULT,31) "PLC Program Key in Remote Shutter Permit Fault (31)"
    set pssFaults(gen3upgraded,FAULT,32) "Forces Present Shutter Permit Fault (32)"
    set pssFaults(gen3upgraded,FAULT,33) "Major Processor Shutter Permit Fault (33)"
    set pssFaults(gen3upgraded,FAULT,34) "PLC Software Audit Value Changed Shutter Permit Fault (34)"
    set pssFaults(gen3upgraded,FAULT,35) "Watchdog from other ESD chain stopped Shutter Permit Fault (35)"
    set pssFaults(gen3upgraded,FAULT,36) "Communications Shutter Permit Fault (36)"
    set pssFaults(gen3upgraded,FAULT,37) "SR Permit Output Point Fail (37)"
    set pssFaults(gen3upgraded,FAULT,40) "Software Version Does Not Match Hardwired Key (40)"
    set pssFaults(gen3upgraded,FAULT,141) "Front End Photon Shutter 1 Closed Switch Shutter Permit Fault (141)"
    set pssFaults(gen3upgraded,FAULT,142) "Front End Photon Shutter 1 Both Switch Shutter Permit Fault (142)"
    set pssFaults(gen3upgraded,FAULT,143) "Front End Photon Shutter 1 Fail to Close Shutter Permit Fault (143)"
    set pssFaults(gen3upgraded,FAULT,144) "Front End Photon Shutter 1 Fail to Fully Close Shutter Permit Fault (144)"
    set pssFaults(gen3upgraded,FAULT,145) "Front End Photon Shutter 2 Closed Switch Shutter Permit Fault (145)"
    set pssFaults(gen3upgraded,FAULT,146) "Front End Photon Shutter 2 Both Switch Shutter Permit Fault (146)"
    set pssFaults(gen3upgraded,FAULT,147) "Front End Photon Shutter 2 Fail to Close Shutter Permit Fault (147)"
    set pssFaults(gen3upgraded,FAULT,148) "Front End Photon Shutter 2 Fail to Fully Close Shutter Permit Fault (148)"
    set pssFaults(gen3upgraded,FAULT,149) "Front End Safety Shutter 1 Closed Switch Shutter Permit Fault (149)"
    set pssFaults(gen3upgraded,FAULT,150) "Front End Safety Shutter 1 Both Switch Shutter Permit Fault (150)"
    set pssFaults(gen3upgraded,FAULT,151) "Front End Safety Shutter 1 Fail to Close Shutter Permit Fault (151)"
    set pssFaults(gen3upgraded,FAULT,152) "Front End Safety Shutter 1 Fail to Fully Close Shutter Permit Fault (152)"
    set pssFaults(gen3upgraded,FAULT,153) "Front End Safety Shutter 2 Closed Switch Shutter Permit Fault (153)"
    set pssFaults(gen3upgraded,FAULT,154) "Front End Safety Shutter 2 Both Switch Shutter Permit Fault (154)"
    set pssFaults(gen3upgraded,FAULT,155) "Front End Safety Shutter 2 Fail to Close Shutter Permit Fault (155)"
    set pssFaults(gen3upgraded,FAULT,156) "Front End Safety Shutter 2 Fail to Fully Close Shutter Permit Fault (156)"
    set pssFaults(gen3upgraded,FAULT,164) "Front End Photon Shutter 1 Output Point Shutter Permit Fault (164)"
    set pssFaults(gen3upgraded,FAULT,165) "Front End Photon Shutter 2 Output Point Shutter Permit Fault (165)"
    set pssFaults(gen3upgraded,FAULT,166) "Front End Safety Shutter 1 Output Point Shutter Permit Fault (166)"
    set pssFaults(gen3upgraded,FAULT,167) "Front End Safety Shutter 2 Output Point Shutter Permit Fault (167)"
    set pssFaults(gen3upgraded,FAULT,171) "Front End Photon Shutter 1 Closed Switch Storage Ring Fault (171)"
    set pssFaults(gen3upgraded,FAULT,172) "Front End Photon Shutter 1 Both Switch Storage Ring Fault (172)"
    set pssFaults(gen3upgraded,FAULT,173) "Front End Photon Shutter 2 Closed Switch Storage Ring Fault (173)"
    set pssFaults(gen3upgraded,FAULT,174) "Front End Photon Shutter 2 Both Switch Storage Ring Fault (174)"
    set pssFaults(gen3upgraded,FAULT,176) "Front End Safety Shutter 1 Closed Switch Storage Ring Fault (176)"
    set pssFaults(gen3upgraded,FAULT,177) "Front End Safety Shutter 1 Both Switch Storage Ring Fault (177)"
    set pssFaults(gen3upgraded,FAULT,178) "Front End Safety Shutter 1 Beam Exposure Storage Ring Fault (178)"
    set pssFaults(gen3upgraded,FAULT,179) "Front End Safety Shutter 2 Closed Switch Storage Ring Fault (179)"
    set pssFaults(gen3upgraded,FAULT,180) "Front End Safety Shutter 2 Both Switch Storage Ring Fault (180)"
    set pssFaults(gen3upgraded,FAULT,181) "Front End Safety Shutter 2 Beam Exposure Storage Ring Fault (181)"
    set pssFaults(gen3upgraded,FAULT,241) "Station B Photon Shutter Closed Switch Shutter Permit Fault (241)"
    set pssFaults(gen3upgraded,FAULT,242) "Station B Photon Shutter Both Switch Shutter Permit Fault (242)"
    set pssFaults(gen3upgraded,FAULT,243) "Station B Photon Shutter Fail to Close Shutter Permit Fault (243)"
    set pssFaults(gen3upgraded,FAULT,244) "Station B Photon Shutter Fail to Fully Close Shutter Permit Fault (244)"
    set pssFaults(gen3upgraded,FAULT,245) "Station B Safety Shutter Closed Switch Shutter Permit Fault (245)"
    set pssFaults(gen3upgraded,FAULT,246) "Station B Safety Shutter Both Switch Shutter Permit Fault (246)"
    set pssFaults(gen3upgraded,FAULT,247) "Station B Safety Shutter Fail to Close Shutter Permit Fault (247)"
    set pssFaults(gen3upgraded,FAULT,248) "Station B Safety Shutter Fail to Fully Close Shutter Permit Fault (248)"
    set pssFaults(gen3upgraded,FAULT,249) "Station B Safety/Mono Shutter 1 Closed Switch Shutter Permit Fault (249)"
    set pssFaults(gen3upgraded,FAULT,250) "Station B Mono Shutter 1 Both Switch Shutter Permit Fault (250)"
    set pssFaults(gen3upgraded,FAULT,251) "Station B Safety/Mono Shutter 1 Fail to Close Shutter Permit Fault (251)"
    set pssFaults(gen3upgraded,FAULT,252) "Station B Safety/Mono Shutter 1 Fail to Fully Close Shutter Permit Fault (252)"
    set pssFaults(gen3upgraded,FAULT,253) "Station B Safety/Mono Shutter 2 Closed Switch Shutter Permit Fault (253)"
    set pssFaults(gen3upgraded,FAULT,254) "Station B Mono Shutter 2 Both Switch Shutter Permit Fault (254)"
    set pssFaults(gen3upgraded,FAULT,255) "Station B Safety/Mono Shutter 2 Fail to Close Shutter Permit Fault (255)"
    set pssFaults(gen3upgraded,FAULT,256) "Station B Safety/Mono Shutter 2 Fail to Fully Close Shutter Permit Fault (256)"
    set pssFaults(gen3upgraded,FAULT,257) "Station B Safety Shutter 1 Both Switch Shutter Permit Fault (257)"
    set pssFaults(gen3upgraded,FAULT,258) "Station B Safety Shutter 2 Both Switch Shutter Permit Fault (258)"
    set pssFaults(gen3upgraded,FAULT,259) "Station B Manual Beam Stop Closed Switch Shutter Permit Fault (259)"
    set pssFaults(gen3upgraded,FAULT,262) "Station B Manual Beam stop Close Switch Make Shutter Permit Fault (262)"
    set pssFaults(gen3upgraded,FAULT,263) "Station B BLSIE Not Under PSS Control Shutter Permit Fault (263)"
    set pssFaults(gen3upgraded,FAULT,264) "Station B Shutter No Mode Shutter Permit Fault (264)"
    set pssFaults(gen3upgraded,FAULT,265) "Station B Shutter Both Mode Shutter Permit Fault (265)"
    set pssFaults(gen3upgraded,FAULT,271) "Station B Photon Shutter Closed Switch Storage Ring Fault (271)"
    set pssFaults(gen3upgraded,FAULT,272) "Station B Photon Shutter Both Switch Storage Ring Fault (272)"
    set pssFaults(gen3upgraded,FAULT,273) "Station B Safety Shutter Closed Switch Storage Ring Fault (273)"
    set pssFaults(gen3upgraded,FAULT,274) "Station B Safety Shutter Both Switch Storage Ring Fault (274)"
    set pssFaults(gen3upgraded,FAULT,275) "Station B Safety Shutter Beam Exposure Storage Ring Fault (275)"
    set pssFaults(gen3upgraded,FAULT,276) "Station B Safety/Mono Shutter 1 Closed Switch Storage Ring Fault (276)"
    set pssFaults(gen3upgraded,FAULT,277) "Station B Safety Shutter 1 Both Switch Storage Ring Fault (277)"
    set pssFaults(gen3upgraded,FAULT,278) "Station B Safety Shutter 1 Beam Exposure Storage Ring Fault (278)"
    set pssFaults(gen3upgraded,FAULT,279) "Station B Safety/Mono Shutter 2 Closed Switch Storage Ring Fault (279)"
    set pssFaults(gen3upgraded,FAULT,280) "Station B Safety Shutter 2 Both Switch Storage Ring Fault (280)"
    set pssFaults(gen3upgraded,FAULT,281) "Station B Safety Shutter 2 Beam Exposure Storage Ring Fault (281)"
    set pssFaults(gen3upgraded,FAULT,282) "Station B Mono Shutter 1 Both Switch Storage Ring Fault (282)"
    set pssFaults(gen3upgraded,FAULT,283) "Station B Mono Shutter 2 Both Switch Storage Ring Fault (283)"
    set pssFaults(gen3upgraded,FAULT,284) "Station B Manual Beam Stop Closed Switch Storage Ring Fault (284)"
    set pssFaults(gen3upgraded,FAULT,341) "Station C Photon Shutter Closed Switch Shutter Permit Fault (341)"
    set pssFaults(gen3upgraded,FAULT,342) "Station C Photon Shutter Both Switch Shutter Permit Fault (342)"
    set pssFaults(gen3upgraded,FAULT,343) "Station C Photon Shutter Fail to Close Shutter Permit Fault (343)"
    set pssFaults(gen3upgraded,FAULT,344) "Station C Photon Shutter Fail to Fully Close Shutter Permit Fault (344)"
    set pssFaults(gen3upgraded,FAULT,345) "Station C Safety Shutter Closed Switch Shutter Permit Fault (345)"
    set pssFaults(gen3upgraded,FAULT,346) "Station C Safety Shutter Both Switch Shutter Permit Fault (346)"
    set pssFaults(gen3upgraded,FAULT,347) "Station C Safety Shutter Fail to Close Shutter Permit Fault (347)"
    set pssFaults(gen3upgraded,FAULT,348) "Station C Safety Shutter Fail to Fully Close Shutter Permit Fault (348)"
    set pssFaults(gen3upgraded,FAULT,349) "Station C Safety/Mono Shutter 1 Closed Switch Shutter Permit Fault (349)"
    set pssFaults(gen3upgraded,FAULT,350) "Station C Mono Shutter 1 Both Switch Shutter Permit Fault (350)"
    set pssFaults(gen3upgraded,FAULT,351) "Station C Safety/Mono Shutter 1 Fail to Close Shutter Permit Fault (351)"
    set pssFaults(gen3upgraded,FAULT,352) "Station C Safety/Mono Shutter 1 Fail to Fully Close Shutter Permit Fault (352)"
    set pssFaults(gen3upgraded,FAULT,353) "Station C Safety/Mono Shutter 2 Closed Switch Shutter Permit Fault (353)"
    set pssFaults(gen3upgraded,FAULT,354) "Station C Mono Shutter 2 Both Switch Shutter Permit Fault (354)"
    set pssFaults(gen3upgraded,FAULT,355) "Station C Safety/Mono Shutter 2 Fail to Close Shutter Permit Fault (355)"
    set pssFaults(gen3upgraded,FAULT,356) "Station C Safety/Mono Shutter 2 Fail to Fully Close Shutter Permit Fault (356)"
    set pssFaults(gen3upgraded,FAULT,357) "Station C Safety Shutter 1 Both Switch Shutter Permit Fault (357)"
    set pssFaults(gen3upgraded,FAULT,358) "Station C Safety Shutter 2 Both Switch Shutter Permit Fault (358)"
    set pssFaults(gen3upgraded,FAULT,359) "Station C Manual Beam Stop Closed Switch Shutter Permit Fault (359)"
    set pssFaults(gen3upgraded,FAULT,362) "Station C Manual Beam stop Close Switch Make Shutter Permit Fault (362)"
    set pssFaults(gen3upgraded,FAULT,363) "Station C BLSIE Not Under PSS Control Shutter Permit Fault (363)"
    set pssFaults(gen3upgraded,FAULT,364) "Station C Shutter No Mode Shutter Permit Fault (364)"
    set pssFaults(gen3upgraded,FAULT,365) "Station C Shutter Both Mode Shutter Permit Fault (365)"
    set pssFaults(gen3upgraded,FAULT,371) "Station C Photon Shutter Closed Switch Storage Ring Fault (371)"
    set pssFaults(gen3upgraded,FAULT,372) "Station C Photon Shutter Both Switch Storage Ring Fault (372)"
    set pssFaults(gen3upgraded,FAULT,373) "Station C Safety Shutter Closed Switch Storage Ring Fault (373)"
    set pssFaults(gen3upgraded,FAULT,374) "Station C Safety Shutter Both Switch Storage Ring Fault (374)"
    set pssFaults(gen3upgraded,FAULT,375) "Station C Safety Shutter Beam Exposure Storage Ring Fault (375)"
    set pssFaults(gen3upgraded,FAULT,376) "Station C Safety/Mono Shutter 1 Closed Switch Storage Ring Fault (376)"
    set pssFaults(gen3upgraded,FAULT,377) "Station C Safety Shutter 1 Both Switch Storage Ring Fault (377)"
    set pssFaults(gen3upgraded,FAULT,378) "Station C Safety Shutter 1 Beam Exposure Storage Ring Fault (378)"
    set pssFaults(gen3upgraded,FAULT,379) "Station C Safety/Mono Shutter 2 Closed Switch Storage Ring Fault (379)"
    set pssFaults(gen3upgraded,FAULT,380) "Station C Safety Shutter 2 Both Switch Storage Ring Fault (380)"
    set pssFaults(gen3upgraded,FAULT,381) "Station C Safety Shutter 2 Beam Exposure Storage Ring Fault (381)"
    set pssFaults(gen3upgraded,FAULT,382) "Station C Mono Shutter 1 Both Switch Storage Ring Fault (382)"
    set pssFaults(gen3upgraded,FAULT,383) "Station C Mono Shutter 2 Both Switch Storage Ring Fault (383)"
    set pssFaults(gen3upgraded,FAULT,384) "Station C Manual Beam Stop Closed Switch Storage Ring Fault (384)"
    set pssFaults(gen3upgraded,FAULT,441) "Station D Photon Shutter Closed Switch Shutter Permit Fault (441)"
    set pssFaults(gen3upgraded,FAULT,442) "Station D Photon Shutter Both Switch Shutter Permit Fault (442)"
    set pssFaults(gen3upgraded,FAULT,443) "Station D Photon Shutter Fail to Close Shutter Permit Fault (443)"
    set pssFaults(gen3upgraded,FAULT,444) "Station D Photon Shutter Fail to Fully Close Shutter Permit Fault (444)"
    set pssFaults(gen3upgraded,FAULT,445) "Station D Safety Shutter Closed Switch Shutter Permit Fault (445)"
    set pssFaults(gen3upgraded,FAULT,446) "Station D Safety Shutter Both Switch Shutter Permit Fault (446)"
    set pssFaults(gen3upgraded,FAULT,447) "Station D Safety Shutter Fail to Close Shutter Permit Fault (447)"
    set pssFaults(gen3upgraded,FAULT,448) "Station D Safety Shutter Fail to Fully Close Shutter Permit Fault (448)"
    set pssFaults(gen3upgraded,FAULT,449) "Station D Safety/Mono Shutter 1 Closed Switch Shutter Permit Fault (449)"
    set pssFaults(gen3upgraded,FAULT,450) "Station D Mono Shutter 1 Both Switch Shutter Permit Fault (450)"
    set pssFaults(gen3upgraded,FAULT,451) "Station D Safety/Mono Shutter 1 Fail to Close Shutter Permit Fault (451)"
    set pssFaults(gen3upgraded,FAULT,452) "Station D Safety/Mono Shutter 1 Fail to Fully Close Shutter Permit Fault (452)"
    set pssFaults(gen3upgraded,FAULT,453) "Station D Safety/Mono Shutter 2 Closed Switch Shutter Permit Fault (453)"
    set pssFaults(gen3upgraded,FAULT,454) "Station D Mono Shutter 2 Both Switch Shutter Permit Fault (454)"
    set pssFaults(gen3upgraded,FAULT,455) "Station D Safety/Mono Shutter 2 Fail to Close Shutter Permit Fault (455)"
    set pssFaults(gen3upgraded,FAULT,456) "Station D Safety/Mono Shutter 2 Fail to Fully Close Shutter Permit Fault (456)"
    set pssFaults(gen3upgraded,FAULT,457) "Station D Safety Shutter 1 Both Switch Shutter Permit Fault (457)"
    set pssFaults(gen3upgraded,FAULT,458) "Station D Safety Shutter 2 Both Switch Shutter Permit Fault (458)"
    set pssFaults(gen3upgraded,FAULT,459) "Station D Manual Beam Stop Closed Switch Shutter Permit Fault (459)"
    set pssFaults(gen3upgraded,FAULT,462) "Station D Manual Beam stop Close Switch Make Shutter Permit Fault (462)"
    set pssFaults(gen3upgraded,FAULT,463) "Station D BLSIE Not Under PSS Control Shutter Permit Fault (463)"
    set pssFaults(gen3upgraded,FAULT,464) "Station D Shutter No Mode Shutter Permit Fault (464)"
    set pssFaults(gen3upgraded,FAULT,465) "Station D Shutter Both Mode Shutter Permit Fault (465)"
    set pssFaults(gen3upgraded,FAULT,471) "Station D Photon Shutter Closed Switch Storage Ring Fault (471)"
    set pssFaults(gen3upgraded,FAULT,472) "Station D Photon Shutter Both Switch Storage Ring Fault (472)"
    set pssFaults(gen3upgraded,FAULT,473) "Station D Safety Shutter Closed Switch Storage Ring Fault (473)"
    set pssFaults(gen3upgraded,FAULT,474) "Station D Safety Shutter Both Switch Storage Ring Fault (474)"
    set pssFaults(gen3upgraded,FAULT,475) "Station D Safety Shutter Beam Exposure Storage Ring Fault (475)"
    set pssFaults(gen3upgraded,FAULT,476) "Station D Safety/Mono Shutter 1 Closed Switch Storage Ring Fault (476)"
    set pssFaults(gen3upgraded,FAULT,477) "Station D Safety Shutter 1 Both Switch Storage Ring Fault (477)"
    set pssFaults(gen3upgraded,FAULT,478) "Station D Safety Shutter 1 Beam Exposure Storage Ring Fault (478)"
    set pssFaults(gen3upgraded,FAULT,479) "Station D Safety/Mono Shutter 2 Closed Switch Storage Ring Fault (479)"
    set pssFaults(gen3upgraded,FAULT,480) "Station D Safety Shutter 2 Both Switch Storage Ring Fault (480)"
    set pssFaults(gen3upgraded,FAULT,481) "Station D Safety Shutter 2 Beam Exposure Storage Ring Fault (481)"
    set pssFaults(gen3upgraded,FAULT,482) "Station D Mono Shutter 1 Both Switch Storage Ring Fault (482)"
    set pssFaults(gen3upgraded,FAULT,483) "Station D Mono Shutter 2 Both Switch Storage Ring Fault (483)"
    set pssFaults(gen3upgraded,FAULT,484) "Station D Manual Beam Stop Closed Switch Storage Ring Fault (484)"
    set pssFaults(gen3upgraded,FAULT,541) "Station E Photon Shutter Closed Switch Shutter Permit Fault (541)"
    set pssFaults(gen3upgraded,FAULT,542) "Station E Photon Shutter Both Switch Shutter Permit Fault (542)"
    set pssFaults(gen3upgraded,FAULT,543) "Station E Photon Shutter Fail to Close Shutter Permit Fault (543)"
    set pssFaults(gen3upgraded,FAULT,544) "Station E Photon Shutter Fail to Fully Close Shutter Permit Fault (544)"
    set pssFaults(gen3upgraded,FAULT,545) "Station E Safety Shutter Closed Switch Shutter Permit Fault (545)"
    set pssFaults(gen3upgraded,FAULT,546) "Station E Safety Shutter Both Switch Shutter Permit Fault (546)"
    set pssFaults(gen3upgraded,FAULT,547) "Station E Safety Shutter Fail to Close Shutter Permit Fault (547)"
    set pssFaults(gen3upgraded,FAULT,548) "Station E Safety Shutter Fail to Fully Close Shutter Permit Fault (548)"
    set pssFaults(gen3upgraded,FAULT,549) "Station E Safety/Mono Shutter 1 Closed Switch Shutter Permit Fault (549)"
    set pssFaults(gen3upgraded,FAULT,550) "Station E Mono Shutter 1 Both Switch Shutter Permit Fault (550)"
    set pssFaults(gen3upgraded,FAULT,551) "Station E Safety/Mono Shutter 1 Fail to Close Shutter Permit Fault (551)"
    set pssFaults(gen3upgraded,FAULT,552) "Station E Safety/Mono Shutter 1 Fail to Fully Close Shutter Permit Fault (552)"
    set pssFaults(gen3upgraded,FAULT,553) "Station E Safety/Mono Shutter 2 Closed Switch Shutter Permit Fault (553)"
    set pssFaults(gen3upgraded,FAULT,554) "Station E Mono Shutter 2 Both Switch Shutter Permit Fault (554)"
    set pssFaults(gen3upgraded,FAULT,555) "Station E Safety/Mono Shutter 2 Fail to Close Shutter Permit Fault (555)"
    set pssFaults(gen3upgraded,FAULT,556) "Station E Safety/Mono Shutter 2 Fail to Fully Close Shutter Permit Fault (556)"
    set pssFaults(gen3upgraded,FAULT,557) "Station E Safety Shutter 1 Both Switch Shutter Permit Fault (557)"
    set pssFaults(gen3upgraded,FAULT,558) "Station E Safety Shutter 2 Both Switch Shutter Permit Fault (558)"
    set pssFaults(gen3upgraded,FAULT,559) "Station E Manual Beam Stop Closed Switch Shutter Permit Fault (559)"
    set pssFaults(gen3upgraded,FAULT,562) "Station E Manual Beam stop Close Switch Make Shutter Permit Fault (562)"
    set pssFaults(gen3upgraded,FAULT,563) "Station E BLSIE Not Under PSS Control Shutter Permit Fault (563)"
    set pssFaults(gen3upgraded,FAULT,564) "Station E Shutter No Mode Shutter Permit Fault (564)"
    set pssFaults(gen3upgraded,FAULT,565) "Station E Shutter Both Mode Shutter Permit Fault (565)"
    set pssFaults(gen3upgraded,FAULT,571) "Station E Photon Shutter Closed Switch Storage Ring Fault (571)"
    set pssFaults(gen3upgraded,FAULT,572) "Station E Photon Shutter Both Switch Storage Ring Fault (572)"
    set pssFaults(gen3upgraded,FAULT,573) "Station E Safety Shutter Closed Switch Storage Ring Fault (573)"
    set pssFaults(gen3upgraded,FAULT,574) "Station E Safety Shutter Both Switch Storage Ring Fault (574)"
    set pssFaults(gen3upgraded,FAULT,575) "Station E Safety Shutter Beam Exposure Storage Ring Fault (575)"
    set pssFaults(gen3upgraded,FAULT,576) "Station E Safety/Mono Shutter 1 Closed Switch Storage Ring Fault (576)"
    set pssFaults(gen3upgraded,FAULT,577) "Station E Safety Shutter 1 Both Switch Storage Ring Fault (577)"
    set pssFaults(gen3upgraded,FAULT,578) "Station E Safety Shutter 1 Beam Exposure Storage Ring Fault (578)"
    set pssFaults(gen3upgraded,FAULT,579) "Station E Safety/Mono Shutter 2 Closed Switch Storage Ring Fault (579)"
    set pssFaults(gen3upgraded,FAULT,580) "Station E Safety Shutter 2 Both Switch Storage Ring Fault (580)"
    set pssFaults(gen3upgraded,FAULT,581) "Station E Safety Shutter 2 Beam Exposure Storage Ring Fault (581)"
    set pssFaults(gen3upgraded,FAULT,582) "Station E Mono Shutter 1 Both Switch Storage Ring Fault (582)"
    set pssFaults(gen3upgraded,FAULT,583) "Station E Mono Shutter 2 Both Switch Storage Ring Fault (583)"
    set pssFaults(gen3upgraded,FAULT,584) "Station E Manual Beam Stop Closed Switch Storage Ring Fault (584)"
    set pssFaults(gen3upgraded,FAULT,641) "Station F Photon Shutter Closed Switch Shutter Permit Fault (641)"
    set pssFaults(gen3upgraded,FAULT,642) "Station F Photon Shutter Both Switch Shutter Permit Fault (642)"
    set pssFaults(gen3upgraded,FAULT,643) "Station F Photon Shutter Fail to Close Shutter Permit Fault (643)"
    set pssFaults(gen3upgraded,FAULT,644) "Station F Photon Shutter Fail to Fully Close Shutter Permit Fault (644)"
    set pssFaults(gen3upgraded,FAULT,645) "Station F Safety Shutter Closed Switch Shutter Permit Fault (645)"
    set pssFaults(gen3upgraded,FAULT,646) "Station F Safety Shutter Both Switch Shutter Permit Fault (646)"
    set pssFaults(gen3upgraded,FAULT,647) "Station F Safety Shutter Fail to Close Shutter Permit Fault (647)"
    set pssFaults(gen3upgraded,FAULT,648) "Station F Safety Shutter Fail to Fully Close Shutter Permit Fault (648)"
    set pssFaults(gen3upgraded,FAULT,649) "Station F Safety/Mono Shutter 1 Closed Switch Shutter Permit Fault (649)"
    set pssFaults(gen3upgraded,FAULT,650) "Station F Mono Shutter 1 Both Switch Shutter Permit Fault (650)"
    set pssFaults(gen3upgraded,FAULT,651) "Station F Safety/Mono Shutter 1 Fail to Close Shutter Permit Fault (651)"
    set pssFaults(gen3upgraded,FAULT,652) "Station F Safety/Mono Shutter 1 Fail to Fully Close Shutter Permit Fault (652)"
    set pssFaults(gen3upgraded,FAULT,653) "Station F Safety/Mono Shutter 2 Closed Switch Shutter Permit Fault (653)"
    set pssFaults(gen3upgraded,FAULT,654) "Station F Mono Shutter 2 Both Switch Shutter Permit Fault (654)"
    set pssFaults(gen3upgraded,FAULT,655) "Station F Safety/Mono Shutter 2 Fail to Close Shutter Permit Fault (655)"
    set pssFaults(gen3upgraded,FAULT,656) "Station F Safety/Mono Shutter 2 Fail to Fully Close Shutter Permit Fault (656)"
    set pssFaults(gen3upgraded,FAULT,657) "Station F Safety Shutter 1 Both Switch Shutter Permit Fault (657)"
    set pssFaults(gen3upgraded,FAULT,658) "Station F Safety Shutter 2 Both Switch Shutter Permit Fault (658)"
    set pssFaults(gen3upgraded,FAULT,659) "Station F Manual Beam Stop Closed Switch Shutter Permit Fault (659)"
    set pssFaults(gen3upgraded,FAULT,662) "Station F Manual Beam stop Close Switch Make Shutter Permit Fault (662)"
    set pssFaults(gen3upgraded,FAULT,663) "Station F BLSIE Not Under PSS Control Shutter Permit Fault (663)"
    set pssFaults(gen3upgraded,FAULT,664) "Station F Shutter No Mode Shutter Permit Fault (664)"
    set pssFaults(gen3upgraded,FAULT,665) "Station F Shutter Both Mode Shutter Permit Fault (665)"
    set pssFaults(gen3upgraded,FAULT,671) "Station F Photon Shutter Closed Switch Storage Ring Fault (671)"
    set pssFaults(gen3upgraded,FAULT,672) "Station F Photon Shutter Both Switch Storage Ring Fault (672)"
    set pssFaults(gen3upgraded,FAULT,673) "Station F Safety Shutter Closed Switch Storage Ring Fault (673)"
    set pssFaults(gen3upgraded,FAULT,674) "Station F Safety Shutter Both Switch Storage Ring Fault (674)"
    set pssFaults(gen3upgraded,FAULT,675) "Station F Safety Shutter Beam Exposure Storage Ring Fault (675)"
    set pssFaults(gen3upgraded,FAULT,676) "Station F Safety/Mono Shutter 1 Closed Switch Storage Ring Fault (676)"
    set pssFaults(gen3upgraded,FAULT,677) "Station F Safety Shutter 1 Both Switch Storage Ring Fault (677)"
    set pssFaults(gen3upgraded,FAULT,678) "Station F Safety Shutter 1 Beam Exposure Storage Ring Fault (678)"
    set pssFaults(gen3upgraded,FAULT,679) "Station F Safety/Mono Shutter 2 Closed Switch Storage Ring Fault (679)"
    set pssFaults(gen3upgraded,FAULT,680) "Station F Safety Shutter 2 Both Switch Storage Ring Fault (680)"
    set pssFaults(gen3upgraded,FAULT,681) "Station F Safety Shutter 2 Beam Exposure Storage Ring Fault (681)"
    set pssFaults(gen3upgraded,FAULT,682) "Station F Mono Shutter 1 Both Switch Storage Ring Fault (682)"
    set pssFaults(gen3upgraded,FAULT,683) "Station F Mono Shutter 2 Both Switch Storage Ring Fault (683)"
    set pssFaults(gen3upgraded,FAULT,684) "Station F Manual Beam Stop Closed Switch Storage Ring Fault (684)"
    set pssFaults(gen3upgraded,FAULT,741) "Station G Photon Shutter Closed Switch Shutter Permit Fault (741)"
    set pssFaults(gen3upgraded,FAULT,742) "Station G Photon Shutter Both Switch Shutter Permit Fault (742)"
    set pssFaults(gen3upgraded,FAULT,743) "Station G Photon Shutter Fail to Close Shutter Permit Fault (743)"
    set pssFaults(gen3upgraded,FAULT,744) "Station G Photon Shutter Fail to Fully Close Shutter Permit Fault (744)"
    set pssFaults(gen3upgraded,FAULT,745) "Station G Safety Shutter Closed Switch Shutter Permit Fault (745)"
    set pssFaults(gen3upgraded,FAULT,746) "Station G Safety Shutter Both Switch Shutter Permit Fault (746)"
    set pssFaults(gen3upgraded,FAULT,747) "Station G Safety Shutter Fail to Close Shutter Permit Fault (747)"
    set pssFaults(gen3upgraded,FAULT,748) "Station G Safety Shutter Fail to Fully Close Shutter Permit Fault (748)"
    set pssFaults(gen3upgraded,FAULT,749) "Station G Safety/Mono Shutter 1 Closed Switch Shutter Permit Fault (749)"
    set pssFaults(gen3upgraded,FAULT,750) "Station G Mono Shutter 1 Both Switch Shutter Permit Fault (750)"
    set pssFaults(gen3upgraded,FAULT,751) "Station G Safety/Mono Shutter 1 Fail to Close Shutter Permit Fault (751)"
    set pssFaults(gen3upgraded,FAULT,752) "Station G Safety/Mono Shutter 1 Fail to Fully Close Shutter Permit Fault (752)"
    set pssFaults(gen3upgraded,FAULT,753) "Station G Safety/Mono Shutter 2 Closed Switch Shutter Permit Fault (753)"
    set pssFaults(gen3upgraded,FAULT,754) "Station G Mono Shutter 2 Both Switch Shutter Permit Fault (754)"
    set pssFaults(gen3upgraded,FAULT,755) "Station G Safety/Mono Shutter 2 Fail to Close Shutter Permit Fault (755)"
    set pssFaults(gen3upgraded,FAULT,756) "Station G Safety/Mono Shutter 2 Fail to Fully Close Shutter Permit Fault (756)"
    set pssFaults(gen3upgraded,FAULT,757) "Station G Safety Shutter 1 Both Switch Shutter Permit Fault (757)"
    set pssFaults(gen3upgraded,FAULT,758) "Station G Safety Shutter 2 Both Switch Shutter Permit Fault (758)"
    set pssFaults(gen3upgraded,FAULT,759) "Station G Manual Beam Stop Closed Switch Shutter Permit Fault (759)"
    set pssFaults(gen3upgraded,FAULT,762) "Station G Manual Beam stop Close Switch Make Shutter Permit Fault (762)"
    set pssFaults(gen3upgraded,FAULT,763) "Station G BLSIE Not Under PSS Control Shutter Permit Fault (763)"
    set pssFaults(gen3upgraded,FAULT,764) "Station G Shutter No Mode Shutter Permit Fault (764)"
    set pssFaults(gen3upgraded,FAULT,765) "Station G Shutter Both Mode Shutter Permit Fault (765)"
    set pssFaults(gen3upgraded,FAULT,771) "Station G Photon Shutter Closed Switch Storage Ring Fault (771)"
    set pssFaults(gen3upgraded,FAULT,772) "Station G Photon Shutter Both Switch Storage Ring Fault (772)"
    set pssFaults(gen3upgraded,FAULT,773) "Station G Safety Shutter Closed Switch Storage Ring Fault (773)"
    set pssFaults(gen3upgraded,FAULT,774) "Station G Safety Shutter Both Switch Storage Ring Fault (774)"
    set pssFaults(gen3upgraded,FAULT,775) "Station G Safety Shutter Beam Exposure Storage Ring Fault (775)"
    set pssFaults(gen3upgraded,FAULT,776) "Station G Safety/Mono Shutter 1 Closed Switch Storage Ring Fault (776)"
    set pssFaults(gen3upgraded,FAULT,777) "Station G Safety Shutter 1 Both Switch Storage Ring Fault (777)"
    set pssFaults(gen3upgraded,FAULT,778) "Station G Safety Shutter 1 Beam Exposure Storage Ring Fault (778)"
    set pssFaults(gen3upgraded,FAULT,779) "Station G Safety/Mono Shutter 2 Closed Switch Storage Ring Fault (779)"
    set pssFaults(gen3upgraded,FAULT,780) "Station G Safety Shutter 2 Both Switch Storage Ring Fault (780)"
    set pssFaults(gen3upgraded,FAULT,781) "Station G Safety Shutter 2 Beam Exposure Storage Ring Fault (781)"
    set pssFaults(gen3upgraded,FAULT,782) "Station G Mono Shutter 1 Both Switch Storage Ring Fault (782)"
    set pssFaults(gen3upgraded,FAULT,783) "Station G Mono Shutter 2 Both Switch Storage Ring Fault (783)"
    set pssFaults(gen3upgraded,FAULT,784) "Station G Manual Beam Stop Closed Switch Storage Ring Fault (784)"
    set pssFaults(gen3upgraded,FAULT,841) "Station H Photon Shutter Closed Switch Shutter Permit Fault (841)"
    set pssFaults(gen3upgraded,FAULT,842) "Station H Photon Shutter Both Switch Shutter Permit Fault (842)"
    set pssFaults(gen3upgraded,FAULT,843) "Station H Photon Shutter Fail to Close Shutter Permit Fault (843)"
    set pssFaults(gen3upgraded,FAULT,844) "Station H Photon Shutter Fail to Fully Close Shutter Permit Fault (844)"
    set pssFaults(gen3upgraded,FAULT,845) "Station H Safety Shutter Closed Switch Shutter Permit Fault (845)"
    set pssFaults(gen3upgraded,FAULT,846) "Station H Safety Shutter Both Switch Shutter Permit Fault (846)"
    set pssFaults(gen3upgraded,FAULT,847) "Station H Safety Shutter Fail to Close Shutter Permit Fault (847)"
    set pssFaults(gen3upgraded,FAULT,848) "Station H Safety Shutter Fail to Fully Close Shutter Permit Fault (848)"
    set pssFaults(gen3upgraded,FAULT,849) "Station H Safety/Mono Shutter 1 Closed Switch Shutter Permit Fault (849)"
    set pssFaults(gen3upgraded,FAULT,850) "Station H Mono Shutter 1 Both Switch Shutter Permit Fault (850)"
    set pssFaults(gen3upgraded,FAULT,851) "Station H Safety/Mono Shutter 1 Fail to Close Shutter Permit Fault (851)"
    set pssFaults(gen3upgraded,FAULT,852) "Station H Safety/Mono Shutter 1 Fail to Fully Close Shutter Permit Fault (852)"
    set pssFaults(gen3upgraded,FAULT,853) "Station H Safety/Mono Shutter 2 Closed Switch Shutter Permit Fault (853)"
    set pssFaults(gen3upgraded,FAULT,854) "Station H Mono Shutter 2 Both Switch Shutter Permit Fault (854)"
    set pssFaults(gen3upgraded,FAULT,855) "Station H Safety/Mono Shutter 2 Fail to Close Shutter Permit Fault (855)"
    set pssFaults(gen3upgraded,FAULT,856) "Station H Safety/Mono Shutter 2 Fail to Fully Close Shutter Permit Fault (856)"
    set pssFaults(gen3upgraded,FAULT,857) "Station H Safety Shutter 1 Both Switch Shutter Permit Fault (857)"
    set pssFaults(gen3upgraded,FAULT,858) "Station H Safety Shutter 2 Both Switch Shutter Permit Fault (858)"
    set pssFaults(gen3upgraded,FAULT,859) "Station H Manual Beam Stop Closed Switch Shutter Permit Fault (859)"
    set pssFaults(gen3upgraded,FAULT,862) "Station H Manual Beam stop Close Switch Make Shutter Permit Fault (862)"
    set pssFaults(gen3upgraded,FAULT,863) "Station H BLSIE Not Under PSS Control Shutter Permit Fault (863)"
    set pssFaults(gen3upgraded,FAULT,864) "Station H Shutter No Mode Shutter Permit Fault (864)"
    set pssFaults(gen3upgraded,FAULT,865) "Station H Shutter Both Mode Shutter Permit Fault (865)"
    set pssFaults(gen3upgraded,FAULT,871) "Station H Photon Shutter Closed Switch Storage Ring Fault (871)"
    set pssFaults(gen3upgraded,FAULT,872) "Station H Photon Shutter Both Switch Storage Ring Fault (872)"
    set pssFaults(gen3upgraded,FAULT,873) "Station H Safety Shutter Closed Switch Storage Ring Fault (873)"
    set pssFaults(gen3upgraded,FAULT,874) "Station H Safety Shutter Both Switch Storage Ring Fault (874)"
    set pssFaults(gen3upgraded,FAULT,875) "Station H Safety Shutter Beam Exposure Storage Ring Fault (875)"
    set pssFaults(gen3upgraded,FAULT,876) "Station H Safety/Mono Shutter 1 Closed Switch Storage Ring Fault (876)"
    set pssFaults(gen3upgraded,FAULT,877) "Station H Safety Shutter 1 Both Switch Storage Ring Fault (877)"
    set pssFaults(gen3upgraded,FAULT,878) "Station H Safety Shutter 1 Beam Exposure Storage Ring Fault (878)"
    set pssFaults(gen3upgraded,FAULT,879) "Station H Safety/Mono Shutter 2 Closed Switch Storage Ring Fault (879)"
    set pssFaults(gen3upgraded,FAULT,880) "Station H Safety Shutter 2 Both Switch Storage Ring Fault (880)"
    set pssFaults(gen3upgraded,FAULT,881) "Station H Safety Shutter 2 Beam Exposure Storage Ring Fault (881)"
    set pssFaults(gen3upgraded,FAULT,882) "Station H Mono Shutter 1 Both Switch Storage Ring Fault (882)"
    set pssFaults(gen3upgraded,FAULT,883) "Station H Mono Shutter 2 Both Switch Storage Ring Fault (883)"
    set pssFaults(gen3upgraded,FAULT,884) "Station H Manual Beam Stop Closed Switch Storage Ring Fault (884)"
    set pssFaults(gen3upgraded,FAULT,941) "Station I Photon Shutter Closed Switch Shutter Permit Fault (941)"
    set pssFaults(gen3upgraded,FAULT,942) "Station I Photon Shutter Both Switch Shutter Permit Fault (942)"
    set pssFaults(gen3upgraded,FAULT,943) "Station I Photon Shutter Fail to Close Shutter Permit Fault (943)"
    set pssFaults(gen3upgraded,FAULT,944) "Station I Photon Shutter Fail to Fully Close Shutter Permit Fault (944)"
    set pssFaults(gen3upgraded,FAULT,945) "Station I Safety Shutter Closed Switch Shutter Permit Fault (945)"
    set pssFaults(gen3upgraded,FAULT,946) "Station I Safety Shutter Both Switch Shutter Permit Fault (946)"
    set pssFaults(gen3upgraded,FAULT,947) "Station I Safety Shutter Fail to Close Shutter Permit Fault (947)"
    set pssFaults(gen3upgraded,FAULT,948) "Station I Safety Shutter Fail to Fully Close Shutter Permit Fault (948)"
    set pssFaults(gen3upgraded,FAULT,949) "Station I Safety/Mono Shutter 1 Closed Switch Shutter Permit Fault (949)"
    set pssFaults(gen3upgraded,FAULT,950) "Station I Mono Shutter 1 Both Switch Shutter Permit Fault (950)"
    set pssFaults(gen3upgraded,FAULT,951) "Station I Safety/Mono Shutter 1 Fail to Close Shutter Permit Fault (951)"
    set pssFaults(gen3upgraded,FAULT,952) "Station I Safety/Mono Shutter 1 Fail to Fully Close Shutter Permit Fault (952)"
    set pssFaults(gen3upgraded,FAULT,953) "Station I Safety/Mono Shutter 2 Closed Switch Shutter Permit Fault (953)"
    set pssFaults(gen3upgraded,FAULT,954) "Station I Mono Shutter 2 Both Switch Shutter Permit Fault (954)"
    set pssFaults(gen3upgraded,FAULT,955) "Station I Safety/Mono Shutter 2 Fail to Close Shutter Permit Fault (955)"
    set pssFaults(gen3upgraded,FAULT,956) "Station I Safety/Mono Shutter 2 Fail to Fully Close Shutter Permit Fault (956)"
    set pssFaults(gen3upgraded,FAULT,957) "Station I Safety Shutter 1 Both Switch Shutter Permit Fault (957)"
    set pssFaults(gen3upgraded,FAULT,958) "Station I Safety Shutter 2 Both Switch Shutter Permit Fault (958)"
    set pssFaults(gen3upgraded,FAULT,959) "Station I Manual Beam Stop Closed Switch Shutter Permit Fault (959)"
    set pssFaults(gen3upgraded,FAULT,962) "Station I Manual Beam stop Close Switch Make Shutter Permit Fault (962)"
    set pssFaults(gen3upgraded,FAULT,963) "Station I BLSIE Not Under PSS Control Shutter Permit Fault (963)"
    set pssFaults(gen3upgraded,FAULT,964) "Station I Shutter No Mode Shutter Permit Fault (964)"
    set pssFaults(gen3upgraded,FAULT,965) "Station I Shutter Both Mode Shutter Permit Fault (965)"
    set pssFaults(gen3upgraded,FAULT,971) "Station I Photon Shutter Closed Switch Storage Ring Fault (971)"
    set pssFaults(gen3upgraded,FAULT,972) "Station I Photon Shutter Both Switch Storage Ring Fault (972)"
    set pssFaults(gen3upgraded,FAULT,973) "Station I Safety Shutter Closed Switch Storage Ring Fault (973)"
    set pssFaults(gen3upgraded,FAULT,974) "Station I Safety Shutter Both Switch Storage Ring Fault (974)"
    set pssFaults(gen3upgraded,FAULT,975) "Station I Safety Shutter Beam Exposure Storage Ring Fault (975)"
    set pssFaults(gen3upgraded,FAULT,976) "Station I Safety/Mono Shutter 1 Closed Switch Storage Ring Fault (976)"
    set pssFaults(gen3upgraded,FAULT,977) "Station I Safety Shutter 1 Both Switch Storage Ring Fault (977)"
    set pssFaults(gen3upgraded,FAULT,978) "Station I Safety Shutter 1 Beam Exposure Storage Ring Fault (978)"
    set pssFaults(gen3upgraded,FAULT,979) "Station I Safety/Mono Shutter 2 Closed Switch Storage Ring Fault (979)"
    set pssFaults(gen3upgraded,FAULT,980) "Station I Safety Shutter 2 Both Switch Storage Ring Fault (980)"
    set pssFaults(gen3upgraded,FAULT,981) "Station I Safety Shutter 2 Beam Exposure Storage Ring Fault (981)"
    set pssFaults(gen3upgraded,FAULT,982) "Station I Mono Shutter 1 Both Switch Storage Ring Fault (982)"
    set pssFaults(gen3upgraded,FAULT,983) "Station I Mono Shutter 2 Both Switch Storage Ring Fault (983)"
    set pssFaults(gen3upgraded,FAULT,984) "Station I Manual Beam Stop Closed Switch Storage Ring Fault (984)"
    set pssFaults(gen3upgraded,FAULT,1041) "Station J Photon Shutter Closed Switch Shutter Permit Fault (1041)"
    set pssFaults(gen3upgraded,FAULT,1042) "Station J Photon Shutter Both Switch Shutter Permit Fault (1042)"
    set pssFaults(gen3upgraded,FAULT,1043) "Station J Photon Shutter Fail to Close Shutter Permit Fault (1043)"
    set pssFaults(gen3upgraded,FAULT,1044) "Station J Photon Shutter Fail to Fully Close Shutter Permit Fault (1044)"
    set pssFaults(gen3upgraded,FAULT,1045) "Station J Safety Shutter Closed Switch Shutter Permit Fault (1045)"
    set pssFaults(gen3upgraded,FAULT,1046) "Station J Safety Shutter Both Switch Shutter Permit Fault (1046)"
    set pssFaults(gen3upgraded,FAULT,1047) "Station J Safety Shutter Fail to Close Shutter Permit Fault (1047)"
    set pssFaults(gen3upgraded,FAULT,1048) "Station J Safety Shutter Fail to Fully Close Shutter Permit Fault (1048)"
    set pssFaults(gen3upgraded,FAULT,1049) "Station J Safety/Mono Shutter 1 Closed Switch Shutter Permit Fault (1049)"
    set pssFaults(gen3upgraded,FAULT,1050) "Station J Mono Shutter 1 Both Switch Shutter Permit Fault (1050)"
    set pssFaults(gen3upgraded,FAULT,1051) "Station J Safety/Mono Shutter 1 Fail to Close Shutter Permit Fault (1051)"
    set pssFaults(gen3upgraded,FAULT,1052) "Station J Safety/Mono Shutter 1 Fail to Fully Close Shutter Permit Fault (1052)"
    set pssFaults(gen3upgraded,FAULT,1053) "Station J Safety/Mono Shutter 2 Closed Switch Shutter Permit Fault (1053)"
    set pssFaults(gen3upgraded,FAULT,1054) "Station J Mono Shutter 2 Both Switch Shutter Permit Fault (1054)"
    set pssFaults(gen3upgraded,FAULT,1055) "Station J Safety/Mono Shutter 2 Fail to Close Shutter Permit Fault (1055)"
    set pssFaults(gen3upgraded,FAULT,1056) "Station J Safety/Mono Shutter 2 Fail to Fully Close Shutter Permit Fault (1056)"
    set pssFaults(gen3upgraded,FAULT,1057) "Station J Safety Shutter 1 Both Switch Shutter Permit Fault (1057)"
    set pssFaults(gen3upgraded,FAULT,1058) "Station J Safety Shutter 2 Both Switch Shutter Permit Fault (1058)"
    set pssFaults(gen3upgraded,FAULT,1059) "Station J Manual Beam Stop Closed Switch Shutter Permit Fault (1059)"
    set pssFaults(gen3upgraded,FAULT,1062) "Station J Manual Beam stop Close Switch Make Shutter Permit Fault (1062)"
    set pssFaults(gen3upgraded,FAULT,1063) "Station J BLSIE Not Under PSS Control Shutter Permit Fault (1063)"
    set pssFaults(gen3upgraded,FAULT,1064) "Station J Shutter No Mode Shutter Permit Fault (1064)"
    set pssFaults(gen3upgraded,FAULT,1065) "Station J Shutter Both Mode Shutter Permit Fault (1065)"
    set pssFaults(gen3upgraded,FAULT,1071) "Station J Photon Shutter Closed Switch Storage Ring Fault (1071)"
    set pssFaults(gen3upgraded,FAULT,1072) "Station J Photon Shutter Both Switch Storage Ring Fault (1072)"
    set pssFaults(gen3upgraded,FAULT,1073) "Station J Safety Shutter Closed Switch Storage Ring Fault (1073)"
    set pssFaults(gen3upgraded,FAULT,1074) "Station J Safety Shutter Both Switch Storage Ring Fault (1074)"
    set pssFaults(gen3upgraded,FAULT,1075) "Station J Safety Shutter Beam Exposure Storage Ring Fault (1075)"
    set pssFaults(gen3upgraded,FAULT,1076) "Station J Safety/Mono Shutter 1 Closed Switch Storage Ring Fault (1076)"
    set pssFaults(gen3upgraded,FAULT,1077) "Station J Safety Shutter 1 Both Switch Storage Ring Fault (1077)"
    set pssFaults(gen3upgraded,FAULT,1078) "Station J Safety Shutter 1 Beam Exposure Storage Ring Fault (1078)"
    set pssFaults(gen3upgraded,FAULT,1079) "Station J Safety/Mono Shutter 2 Closed Switch Storage Ring Fault (1079)"
    set pssFaults(gen3upgraded,FAULT,1080) "Station J Safety Shutter 2 Both Switch Storage Ring Fault (1080)"
    set pssFaults(gen3upgraded,FAULT,1081) "Station J Safety Shutter 2 Beam Exposure Storage Ring Fault (1081)"
    set pssFaults(gen3upgraded,FAULT,1082) "Station J Mono Shutter 1 Both Switch Storage Ring Fault (1082)"
    set pssFaults(gen3upgraded,FAULT,1083) "Station J Mono Shutter 2 Both Switch Storage Ring Fault (1083)"
    set pssFaults(gen3upgraded,FAULT,1084) "Station J Manual Beam Stop Closed Switch Storage Ring Fault (1084)"
    set pssFaults(gen3upgraded,FAULT,1141) "Station K Photon Shutter Closed Switch Shutter Permit Fault (1141)"
    set pssFaults(gen3upgraded,FAULT,1142) "Station K Photon Shutter Both Switch Shutter Permit Fault (1142)"
    set pssFaults(gen3upgraded,FAULT,1143) "Station K Photon Shutter Fail to Close Shutter Permit Fault (1143)"
    set pssFaults(gen3upgraded,FAULT,1144) "Station K Photon Shutter Fail to Fully Close Shutter Permit Fault (1144)"
    set pssFaults(gen3upgraded,FAULT,1145) "Station K Safety Shutter Closed Switch Shutter Permit Fault (1145)"
    set pssFaults(gen3upgraded,FAULT,1146) "Station K Safety Shutter Both Switch Shutter Permit Fault (1146)"
    set pssFaults(gen3upgraded,FAULT,1147) "Station K Safety Shutter Fail to Close Shutter Permit Fault (1147)"
    set pssFaults(gen3upgraded,FAULT,1148) "Station K Safety Shutter Fail to Fully Close Shutter Permit Fault (1148)"
    set pssFaults(gen3upgraded,FAULT,1149) "Station K Safety/Mono Shutter 1 Closed Switch Shutter Permit Fault (1149)"
    set pssFaults(gen3upgraded,FAULT,1150) "Station K Mono Shutter 1 Both Switch Shutter Permit Fault (1150)"
    set pssFaults(gen3upgraded,FAULT,1151) "Station K Safety/Mono Shutter 1 Fail to Close Shutter Permit Fault (1151)"
    set pssFaults(gen3upgraded,FAULT,1152) "Station K Safety/Mono Shutter 1 Fail to Fully Close Shutter Permit Fault (1152)"
    set pssFaults(gen3upgraded,FAULT,1153) "Station K Safety/Mono Shutter 2 Closed Switch Shutter Permit Fault (1153)"
    set pssFaults(gen3upgraded,FAULT,1154) "Station K Mono Shutter 2 Both Switch Shutter Permit Fault (1154)"
    set pssFaults(gen3upgraded,FAULT,1155) "Station K Safety/Mono Shutter 2 Fail to Close Shutter Permit Fault (1155)"
    set pssFaults(gen3upgraded,FAULT,1156) "Station K Safety/Mono Shutter 2 Fail to Fully Close Shutter Permit Fault (1156)"
    set pssFaults(gen3upgraded,FAULT,1157) "Station K Safety Shutter 1 Both Switch Shutter Permit Fault (1157)"
    set pssFaults(gen3upgraded,FAULT,1158) "Station K Safety Shutter 2 Both Switch Shutter Permit Fault (1158)"
    set pssFaults(gen3upgraded,FAULT,1159) "Station K Manual Beam Stop Closed Switch Shutter Permit Fault (1159)"
    set pssFaults(gen3upgraded,FAULT,1162) "Station K Manual Beam stop Close Switch Make Shutter Permit Fault (1162)"
    set pssFaults(gen3upgraded,FAULT,1163) "Station K BLSIE Not Under PSS Control Shutter Permit Fault (1163)"
    set pssFaults(gen3upgraded,FAULT,1164) "Station K Shutter No Mode Shutter Permit Fault (1164)"
    set pssFaults(gen3upgraded,FAULT,1165) "Station K Shutter Both Mode Shutter Permit Fault (1165)"
    set pssFaults(gen3upgraded,FAULT,1171) "Station K Photon Shutter Closed Switch Storage Ring Fault (1171)"
    set pssFaults(gen3upgraded,FAULT,1172) "Station K Photon Shutter Both Switch Storage Ring Fault (1172)"
    set pssFaults(gen3upgraded,FAULT,1173) "Station K Safety Shutter Closed Switch Storage Ring Fault (1173)"
    set pssFaults(gen3upgraded,FAULT,1174) "Station K Safety Shutter Both Switch Storage Ring Fault (1174)"
    set pssFaults(gen3upgraded,FAULT,1175) "Station K Safety Shutter Beam Exposure Storage Ring Fault (1175)"
    set pssFaults(gen3upgraded,FAULT,1176) "Station K Safety/Mono Shutter 1 Closed Switch Storage Ring Fault (1176)"
    set pssFaults(gen3upgraded,FAULT,1177) "Station K Safety Shutter 1 Both Switch Storage Ring Fault (1177)"
    set pssFaults(gen3upgraded,FAULT,1178) "Station K Safety Shutter 1 Beam Exposure Storage Ring Fault (1178)"
    set pssFaults(gen3upgraded,FAULT,1179) "Station K Safety/Mono Shutter 2 Closed Switch Storage Ring Fault (1179)"
    set pssFaults(gen3upgraded,FAULT,1180) "Station K Safety Shutter 2 Both Switch Storage Ring Fault (1180)"
    set pssFaults(gen3upgraded,FAULT,1181) "Station K Safety Shutter 2 Beam Exposure Storage Ring Fault (1181)"
    set pssFaults(gen3upgraded,FAULT,1182) "Station K Mono Shutter 1 Both Switch Storage Ring Fault (1182)"
    set pssFaults(gen3upgraded,FAULT,1183) "Station K Mono Shutter 2 Both Switch Storage Ring Fault (1183)"
    set pssFaults(gen3upgraded,FAULT,1184) "Station K Manual Beam Stop Closed Switch Storage Ring Fault (1184)"


    set pssFaults(gen3upgraded,TRIP,1) "Power Up Storage Ring Trip (1)"
    set pssFaults(gen3upgraded,TRIP,2) "Cross Trip Received From Other Chain Storage Ring Trip (2)"
    set pssFaults(gen3upgraded,TRIP,11) "DIW Flow 1 Below Set Point Shutter Permit Trip (11)"
    set pssFaults(gen3upgraded,TRIP,12) "DIW Flow 2 Below Set Point Shutter Permit Trip (12)"
    set pssFaults(gen3upgraded,TRIP,13) "DIW Flow 3 Below Set Point Shutter Permit Trip (13)"
    set pssFaults(gen3upgraded,TRIP,14) "DIW Flow 4 Below Set Point Shutter Permit Trip (14)"
    set pssFaults(gen3upgraded,TRIP,15) "DIW Flow 5 Below Set Point Shutter Permit Trip (15)"
    set pssFaults(gen3upgraded,TRIP,16) "DIW Flow 6 Below Set Point Shutter Permit Trip (16)"
    set pssFaults(gen3upgraded,TRIP,17) "DIW Flow 7 Below Set Point Shutter Permit Trip (17)"
    set pssFaults(gen3upgraded,TRIP,18) "DIW Flow 8 Below Set Point Shutter Permit Trip (18)"
    set pssFaults(gen3upgraded,TRIP,21) "DIW Flow 1 Over Range Shutter Permit Trip (21)"
    set pssFaults(gen3upgraded,TRIP,22) "DIW Flow 2 Over Range Shutter Permit Trip (22)"
    set pssFaults(gen3upgraded,TRIP,23) "DIW Flow 3 Over Range Shutter Permit Trip (23)"
    set pssFaults(gen3upgraded,TRIP,24) "DIW Flow 4 Over Range Shutter Permit Trip (24)"
    set pssFaults(gen3upgraded,TRIP,25) "DIW Flow 5 Over Range Shutter Permit Trip (25)"
    set pssFaults(gen3upgraded,TRIP,26) "DIW Flow 6 Over Range Shutter Permit Trip (26)"
    set pssFaults(gen3upgraded,TRIP,27) "DIW Flow 7 Over Range Shutter Permit Trip (27)"
    set pssFaults(gen3upgraded,TRIP,28) "DIW Flow 8 Over Range Shutter Permit Trip (28)"
    set pssFaults(gen3upgraded,TRIP,101) "Crash Button 1 Pressed While Beam In Station A Storage Ring Trip (101)"
    set pssFaults(gen3upgraded,TRIP,102) "Crash Button 2 Pressed While Beam In Station A Storage Ring Trip (102)"
    set pssFaults(gen3upgraded,TRIP,103) "Crash Button 3 Pressed While Beam In Station A Storage Ring Trip (103)"
    set pssFaults(gen3upgraded,TRIP,104) "Crash Button 4 Pressed While Beam In Station A Storage Ring Trip (104)"
    set pssFaults(gen3upgraded,TRIP,105) "Crash Button 5 Pressed While Beam In Station A Storage Ring Trip (105)"
    set pssFaults(gen3upgraded,TRIP,106) "Crash Button 6 Pressed While Beam In Station A Storage Ring Trip (106)"
    set pssFaults(gen3upgraded,TRIP,107) "Crash Button 7 Pressed While Beam In Station A Storage Ring Trip (107)"
    set pssFaults(gen3upgraded,TRIP,108) "Crash Button 8 Pressed While Beam In Station A Storage Ring Trip (108)"
    set pssFaults(gen3upgraded,TRIP,111) "Door 1 Opened While Beam In Station A Storage Ring Trip (111)"
    set pssFaults(gen3upgraded,TRIP,112) "Door 2 Opened While Beam In Station A Storage Ring Trip (112)"
    set pssFaults(gen3upgraded,TRIP,113) "Door 3 Opened While Beam In Station A Storage Ring Trip (113)"
    set pssFaults(gen3upgraded,TRIP,114) "Door 4 Opened While Beam In Station A Storage Ring Trip (114)"
    set pssFaults(gen3upgraded,TRIP,115) "Door 5 Opened While Beam In Station A Storage Ring Trip (115)"
    set pssFaults(gen3upgraded,TRIP,116) "Door 6 Opened While Beam In Station A Storage Ring Trip (116)"
    set pssFaults(gen3upgraded,TRIP,117) "Door 7 Opened While Beam In Station A Storage Ring Trip (117)"
    set pssFaults(gen3upgraded,TRIP,118) "Door 8 Opened While Beam In Station A Storage Ring Trip (118)"
    set pssFaults(gen3upgraded,TRIP,121) "Crash Button 1 Pressed While Station A Searched Shutter Permit Trip (121)"
    set pssFaults(gen3upgraded,TRIP,122) "Crash Button 2 Pressed While Station A Searched Shutter Permit Trip (122)"
    set pssFaults(gen3upgraded,TRIP,123) "Crash Button 3 Pressed While Station A Searched Shutter Permit Trip (123)"
    set pssFaults(gen3upgraded,TRIP,124) "Crash Button 4 Pressed While Station A Searched Shutter Permit Trip (124)"
    set pssFaults(gen3upgraded,TRIP,125) "Crash Button 5 Pressed While Station A Searched Shutter Permit Trip (125)"
    set pssFaults(gen3upgraded,TRIP,126) "Crash Button 6 Pressed While Station A Searched Shutter Permit Trip (126)"
    set pssFaults(gen3upgraded,TRIP,127) "Crash Button 7 Pressed While Station A Searched Shutter Permit Trip (127)"
    set pssFaults(gen3upgraded,TRIP,128) "Crash Button 8 Pressed While Station A Searched Shutter Permit Trip (128)"
    set pssFaults(gen3upgraded,TRIP,201) "Crash Button 1 Pressed While Beam In Station B Storage Ring Trip (201)"
    set pssFaults(gen3upgraded,TRIP,202) "Crash Button 2 Pressed While Beam In Station B Storage Ring Trip (202)"
    set pssFaults(gen3upgraded,TRIP,203) "Crash Button 3 Pressed While Beam In Station B Storage Ring Trip (203)"
    set pssFaults(gen3upgraded,TRIP,204) "Crash Button 4 Pressed While Beam In Station B Storage Ring Trip (204)"
    set pssFaults(gen3upgraded,TRIP,205) "Crash Button 5 Pressed While Beam In Station B Storage Ring Trip (205)"
    set pssFaults(gen3upgraded,TRIP,206) "Crash Button 6 Pressed While Beam In Station B Storage Ring Trip (206)"
    set pssFaults(gen3upgraded,TRIP,207) "Crash Button 7 Pressed While Beam In Station B Storage Ring Trip (207)"
    set pssFaults(gen3upgraded,TRIP,208) "Crash Button 8 Pressed While Beam In Station B Storage Ring Trip (208)"
    set pssFaults(gen3upgraded,TRIP,211) "Door 1 Opened While Beam In Station B Storage Ring Trip (211)"
    set pssFaults(gen3upgraded,TRIP,212) "Door 2 Opened While Beam In Station B Storage Ring Trip (212)"
    set pssFaults(gen3upgraded,TRIP,213) "Door 3 Opened While Beam In Station B Storage Ring Trip (213)"
    set pssFaults(gen3upgraded,TRIP,214) "Door 4 Opened While Beam In Station B Storage Ring Trip (214)"
    set pssFaults(gen3upgraded,TRIP,215) "Door 5 Opened While Beam In Station B Storage Ring Trip (215)"
    set pssFaults(gen3upgraded,TRIP,216) "Door 6 Opened While Beam In Station B Storage Ring Trip (216)"
    set pssFaults(gen3upgraded,TRIP,217) "Door 7 Opened While Beam In Station B Storage Ring Trip (217)"
    set pssFaults(gen3upgraded,TRIP,218) "Door 8 Opened While Beam In Station B Storage Ring Trip (218)"
    set pssFaults(gen3upgraded,TRIP,221) "Crash Button 1 Pressed While Station B Searched Shutter Permit Trip (221)"
    set pssFaults(gen3upgraded,TRIP,222) "Crash Button 2 Pressed While Station B Searched Shutter Permit Trip (222)"
    set pssFaults(gen3upgraded,TRIP,223) "Crash Button 3 Pressed While Station B Searched Shutter Permit Trip (223)"
    set pssFaults(gen3upgraded,TRIP,224) "Crash Button 4 Pressed While Station B Searched Shutter Permit Trip (224)"
    set pssFaults(gen3upgraded,TRIP,225) "Crash Button 5 Pressed While Station B Searched Shutter Permit Trip (225)"
    set pssFaults(gen3upgraded,TRIP,226) "Crash Button 6 Pressed While Station B Searched Shutter Permit Trip (226)"
    set pssFaults(gen3upgraded,TRIP,227) "Crash Button 7 Pressed While Station B Searched Shutter Permit Trip (227)"
    set pssFaults(gen3upgraded,TRIP,228) "Crash Button 8 Pressed While Station B Searched Shutter Permit Trip (228)"
    set pssFaults(gen3upgraded,TRIP,265) "Station B PBS Low Pressure Shutter Permit Trip (265)"
    set pssFaults(gen3upgraded,TRIP,266) "Station B PBS Over Pressure Shutter Permit Trip (266)"
    set pssFaults(gen3upgraded,TRIP,301) "Crash Button 1 Pressed While Beam In Station C Storage Ring Trip (301)"
    set pssFaults(gen3upgraded,TRIP,302) "Crash Button 2 Pressed While Beam In Station C Storage Ring Trip (302)"
    set pssFaults(gen3upgraded,TRIP,303) "Crash Button 3 Pressed While Beam In Station C Storage Ring Trip (303)"
    set pssFaults(gen3upgraded,TRIP,304) "Crash Button 4 Pressed While Beam In Station C Storage Ring Trip (304)"
    set pssFaults(gen3upgraded,TRIP,305) "Crash Button 5 Pressed While Beam In Station C Storage Ring Trip (305)"
    set pssFaults(gen3upgraded,TRIP,306) "Crash Button 6 Pressed While Beam In Station C Storage Ring Trip (306)"
    set pssFaults(gen3upgraded,TRIP,307) "Crash Button 7 Pressed While Beam In Station C Storage Ring Trip (307)"
    set pssFaults(gen3upgraded,TRIP,308) "Crash Button 8 Pressed While Beam In Station C Storage Ring Trip (308)"
    set pssFaults(gen3upgraded,TRIP,311) "Door 1 Opened While Beam In Station C Storage Ring Trip (311)"
    set pssFaults(gen3upgraded,TRIP,312) "Door 2 Opened While Beam In Station C Storage Ring Trip (312)"
    set pssFaults(gen3upgraded,TRIP,313) "Door 3 Opened While Beam In Station C Storage Ring Trip (313)"
    set pssFaults(gen3upgraded,TRIP,314) "Door 4 Opened While Beam In Station C Storage Ring Trip (314)"
    set pssFaults(gen3upgraded,TRIP,315) "Door 5 Opened While Beam In Station C Storage Ring Trip (315)"
    set pssFaults(gen3upgraded,TRIP,316) "Door 6 Opened While Beam In Station C Storage Ring Trip (316)"
    set pssFaults(gen3upgraded,TRIP,317) "Door 7 Opened While Beam In Station C Storage Ring Trip (317)"
    set pssFaults(gen3upgraded,TRIP,318) "Door 8 Opened While Beam In Station C Storage Ring Trip (318)"
    set pssFaults(gen3upgraded,TRIP,321) "Crash Button 1 Pressed While Station C Searched Shutter Permit Trip (321)"
    set pssFaults(gen3upgraded,TRIP,322) "Crash Button 2 Pressed While Station C Searched Shutter Permit Trip (322)"
    set pssFaults(gen3upgraded,TRIP,323) "Crash Button 3 Pressed While Station C Searched Shutter Permit Trip (323)"
    set pssFaults(gen3upgraded,TRIP,324) "Crash Button 4 Pressed While Station C Searched Shutter Permit Trip (324)"
    set pssFaults(gen3upgraded,TRIP,325) "Crash Button 5 Pressed While Station C Searched Shutter Permit Trip (325)"
    set pssFaults(gen3upgraded,TRIP,326) "Crash Button 6 Pressed While Station C Searched Shutter Permit Trip (326)"
    set pssFaults(gen3upgraded,TRIP,327) "Crash Button 7 Pressed While Station C Searched Shutter Permit Trip (327)"
    set pssFaults(gen3upgraded,TRIP,328) "Crash Button 8 Pressed While Station C Searched Shutter Permit Trip (328)"
    set pssFaults(gen3upgraded,TRIP,365) "Station C PBS Low Pressure Shutter Permit Trip (365)"
    set pssFaults(gen3upgraded,TRIP,366) "Station C PBS Over Pressure Shutter Permit Trip (366)"
    set pssFaults(gen3upgraded,TRIP,401) "Crash Button 1 Pressed While Beam In Station D Storage Ring Trip (401)"
    set pssFaults(gen3upgraded,TRIP,402) "Crash Button 2 Pressed While Beam In Station D Storage Ring Trip (402)"
    set pssFaults(gen3upgraded,TRIP,403) "Crash Button 3 Pressed While Beam In Station D Storage Ring Trip (403)"
    set pssFaults(gen3upgraded,TRIP,404) "Crash Button 4 Pressed While Beam In Station D Storage Ring Trip (404)"
    set pssFaults(gen3upgraded,TRIP,405) "Crash Button 5 Pressed While Beam In Station D Storage Ring Trip (405)"
    set pssFaults(gen3upgraded,TRIP,406) "Crash Button 6 Pressed While Beam In Station D Storage Ring Trip (406)"
    set pssFaults(gen3upgraded,TRIP,407) "Crash Button 7 Pressed While Beam In Station D Storage Ring Trip (407)"
    set pssFaults(gen3upgraded,TRIP,408) "Crash Button 8 Pressed While Beam In Station D Storage Ring Trip (408)"
    set pssFaults(gen3upgraded,TRIP,411) "Door 1 Opened While Beam In Station D Storage Ring Trip (411)"
    set pssFaults(gen3upgraded,TRIP,412) "Door 2 Opened While Beam In Station D Storage Ring Trip (412)"
    set pssFaults(gen3upgraded,TRIP,413) "Door 3 Opened While Beam In Station D Storage Ring Trip (413)"
    set pssFaults(gen3upgraded,TRIP,414) "Door 4 Opened While Beam In Station D Storage Ring Trip (414)"
    set pssFaults(gen3upgraded,TRIP,415) "Door 5 Opened While Beam In Station D Storage Ring Trip (415)"
    set pssFaults(gen3upgraded,TRIP,416) "Door 6 Opened While Beam In Station D Storage Ring Trip (416)"
    set pssFaults(gen3upgraded,TRIP,417) "Door 7 Opened While Beam In Station D Storage Ring Trip (417)"
    set pssFaults(gen3upgraded,TRIP,418) "Door 8 Opened While Beam In Station D Storage Ring Trip (418)"
    set pssFaults(gen3upgraded,TRIP,421) "Crash Button 1 Pressed While Station D Searched Shutter Permit Trip (421)"
    set pssFaults(gen3upgraded,TRIP,422) "Crash Button 2 Pressed While Station D Searched Shutter Permit Trip (422)"
    set pssFaults(gen3upgraded,TRIP,423) "Crash Button 3 Pressed While Station D Searched Shutter Permit Trip (423)"
    set pssFaults(gen3upgraded,TRIP,424) "Crash Button 4 Pressed While Station D Searched Shutter Permit Trip (424)"
    set pssFaults(gen3upgraded,TRIP,425) "Crash Button 5 Pressed While Station D Searched Shutter Permit Trip (425)"
    set pssFaults(gen3upgraded,TRIP,426) "Crash Button 6 Pressed While Station D Searched Shutter Permit Trip (426)"
    set pssFaults(gen3upgraded,TRIP,427) "Crash Button 7 Pressed While Station D Searched Shutter Permit Trip (427)"
    set pssFaults(gen3upgraded,TRIP,428) "Crash Button 8 Pressed While Station D Searched Shutter Permit Trip (428)"
    set pssFaults(gen3upgraded,TRIP,465) "Station D PBS Low Pressure Shutter Permit Trip (465)"
    set pssFaults(gen3upgraded,TRIP,466) "Station D PBS Over Pressure Shutter Permit Trip (466)"
    set pssFaults(gen3upgraded,TRIP,501) "Crash Button 1 Pressed While Beam In Station E Storage Ring Trip (501)"
    set pssFaults(gen3upgraded,TRIP,502) "Crash Button 2 Pressed While Beam In Station E Storage Ring Trip (502)"
    set pssFaults(gen3upgraded,TRIP,503) "Crash Button 3 Pressed While Beam In Station E Storage Ring Trip (503)"
    set pssFaults(gen3upgraded,TRIP,504) "Crash Button 4 Pressed While Beam In Station E Storage Ring Trip (504)"
    set pssFaults(gen3upgraded,TRIP,505) "Crash Button 5 Pressed While Beam In Station E Storage Ring Trip (505)"
    set pssFaults(gen3upgraded,TRIP,506) "Crash Button 6 Pressed While Beam In Station E Storage Ring Trip (506)"
    set pssFaults(gen3upgraded,TRIP,507) "Crash Button 7 Pressed While Beam In Station E Storage Ring Trip (507)"
    set pssFaults(gen3upgraded,TRIP,508) "Crash Button 8 Pressed While Beam In Station E Storage Ring Trip (508)"
    set pssFaults(gen3upgraded,TRIP,511) "Door 1 Opened While Beam In Station E Storage Ring Trip (511)"
    set pssFaults(gen3upgraded,TRIP,512) "Door 2 Opened While Beam In Station E Storage Ring Trip (512)"
    set pssFaults(gen3upgraded,TRIP,513) "Door 3 Opened While Beam In Station E Storage Ring Trip (513)"
    set pssFaults(gen3upgraded,TRIP,514) "Door 4 Opened While Beam In Station E Storage Ring Trip (514)"
    set pssFaults(gen3upgraded,TRIP,515) "Door 5 Opened While Beam In Station E Storage Ring Trip (515)"
    set pssFaults(gen3upgraded,TRIP,516) "Door 6 Opened While Beam In Station E Storage Ring Trip (516)"
    set pssFaults(gen3upgraded,TRIP,517) "Door 7 Opened While Beam In Station E Storage Ring Trip (517)"
    set pssFaults(gen3upgraded,TRIP,518) "Door 8 Opened While Beam In Station E Storage Ring Trip (518)"
    set pssFaults(gen3upgraded,TRIP,521) "Crash Button 1 Pressed While Station E Searched Shutter Permit Trip (521)"
    set pssFaults(gen3upgraded,TRIP,522) "Crash Button 2 Pressed While Station E Searched Shutter Permit Trip (522)"
    set pssFaults(gen3upgraded,TRIP,523) "Crash Button 3 Pressed While Station E Searched Shutter Permit Trip (523)"
    set pssFaults(gen3upgraded,TRIP,524) "Crash Button 4 Pressed While Station E Searched Shutter Permit Trip (524)"
    set pssFaults(gen3upgraded,TRIP,525) "Crash Button 5 Pressed While Station E Searched Shutter Permit Trip (525)"
    set pssFaults(gen3upgraded,TRIP,526) "Crash Button 6 Pressed While Station E Searched Shutter Permit Trip (526)"
    set pssFaults(gen3upgraded,TRIP,527) "Crash Button 7 Pressed While Station E Searched Shutter Permit Trip (527)"
    set pssFaults(gen3upgraded,TRIP,528) "Crash Button 8 Pressed While Station E Searched Shutter Permit Trip (528)"
    set pssFaults(gen3upgraded,TRIP,565) "Station E PBS Low Pressure Shutter Permit Trip (565)"
    set pssFaults(gen3upgraded,TRIP,566) "Station E PBS Over Pressure Shutter Permit Trip (566)"
    set pssFaults(gen3upgraded,TRIP,601) "Crash Button 1 Pressed While Beam In Station F Storage Ring Trip (601)"
    set pssFaults(gen3upgraded,TRIP,602) "Crash Button 2 Pressed While Beam In Station F Storage Ring Trip (602)"
    set pssFaults(gen3upgraded,TRIP,603) "Crash Button 3 Pressed While Beam In Station F Storage Ring Trip (603)"
    set pssFaults(gen3upgraded,TRIP,604) "Crash Button 4 Pressed While Beam In Station F Storage Ring Trip (604)"
    set pssFaults(gen3upgraded,TRIP,605) "Crash Button 5 Pressed While Beam In Station F Storage Ring Trip (605)"
    set pssFaults(gen3upgraded,TRIP,606) "Crash Button 6 Pressed While Beam In Station F Storage Ring Trip (606)"
    set pssFaults(gen3upgraded,TRIP,607) "Crash Button 7 Pressed While Beam In Station F Storage Ring Trip (607)"
    set pssFaults(gen3upgraded,TRIP,608) "Crash Button 8 Pressed While Beam In Station F Storage Ring Trip (608)"
    set pssFaults(gen3upgraded,TRIP,611) "Door 1 Opened While Beam In Station F Storage Ring Trip (611)"
    set pssFaults(gen3upgraded,TRIP,612) "Door 2 Opened While Beam In Station F Storage Ring Trip (612)"
    set pssFaults(gen3upgraded,TRIP,613) "Door 3 Opened While Beam In Station F Storage Ring Trip (613)"
    set pssFaults(gen3upgraded,TRIP,614) "Door 4 Opened While Beam In Station F Storage Ring Trip (614)"
    set pssFaults(gen3upgraded,TRIP,615) "Door 5 Opened While Beam In Station F Storage Ring Trip (615)"
    set pssFaults(gen3upgraded,TRIP,616) "Door 6 Opened While Beam In Station F Storage Ring Trip (616)"
    set pssFaults(gen3upgraded,TRIP,617) "Door 7 Opened While Beam In Station F Storage Ring Trip (617)"
    set pssFaults(gen3upgraded,TRIP,618) "Door 8 Opened While Beam In Station F Storage Ring Trip (618)"
    set pssFaults(gen3upgraded,TRIP,621) "Crash Button 1 Pressed While Station F Searched Shutter Permit Trip (621)"
    set pssFaults(gen3upgraded,TRIP,622) "Crash Button 2 Pressed While Station F Searched Shutter Permit Trip (622)"
    set pssFaults(gen3upgraded,TRIP,623) "Crash Button 3 Pressed While Station F Searched Shutter Permit Trip (623)"
    set pssFaults(gen3upgraded,TRIP,624) "Crash Button 4 Pressed While Station F Searched Shutter Permit Trip (624)"
    set pssFaults(gen3upgraded,TRIP,625) "Crash Button 5 Pressed While Station F Searched Shutter Permit Trip (625)"
    set pssFaults(gen3upgraded,TRIP,626) "Crash Button 6 Pressed While Station F Searched Shutter Permit Trip (626)"
    set pssFaults(gen3upgraded,TRIP,627) "Crash Button 7 Pressed While Station F Searched Shutter Permit Trip (627)"
    set pssFaults(gen3upgraded,TRIP,628) "Crash Button 8 Pressed While Station F Searched Shutter Permit Trip (628)"
    set pssFaults(gen3upgraded,TRIP,701) "Crash Button 1 Pressed While Beam In Station G Storage Ring Trip (701)"
    set pssFaults(gen3upgraded,TRIP,702) "Crash Button 2 Pressed While Beam In Station G Storage Ring Trip (702)"
    set pssFaults(gen3upgraded,TRIP,703) "Crash Button 3 Pressed While Beam In Station G Storage Ring Trip (703)"
    set pssFaults(gen3upgraded,TRIP,704) "Crash Button 4 Pressed While Beam In Station G Storage Ring Trip (704)"
    set pssFaults(gen3upgraded,TRIP,705) "Crash Button 5 Pressed While Beam In Station G Storage Ring Trip (705)"
    set pssFaults(gen3upgraded,TRIP,706) "Crash Button 6 Pressed While Beam In Station G Storage Ring Trip (706)"
    set pssFaults(gen3upgraded,TRIP,707) "Crash Button 7 Pressed While Beam In Station G Storage Ring Trip (707)"
    set pssFaults(gen3upgraded,TRIP,708) "Crash Button 8 Pressed While Beam In Station G Storage Ring Trip (708)"
    set pssFaults(gen3upgraded,TRIP,711) "Door 1 Opened While Beam In Station G Storage Ring Trip (711)"
    set pssFaults(gen3upgraded,TRIP,712) "Door 2 Opened While Beam In Station G Storage Ring Trip (712)"
    set pssFaults(gen3upgraded,TRIP,713) "Door 3 Opened While Beam In Station G Storage Ring Trip (713)"
    set pssFaults(gen3upgraded,TRIP,714) "Door 4 Opened While Beam In Station G Storage Ring Trip (714)"
    set pssFaults(gen3upgraded,TRIP,715) "Door 5 Opened While Beam In Station G Storage Ring Trip (715)"
    set pssFaults(gen3upgraded,TRIP,716) "Door 6 Opened While Beam In Station G Storage Ring Trip (716)"
    set pssFaults(gen3upgraded,TRIP,717) "Door 7 Opened While Beam In Station G Storage Ring Trip (717)"
    set pssFaults(gen3upgraded,TRIP,718) "Door 8 Opened While Beam In Station G Storage Ring Trip (718)"
    set pssFaults(gen3upgraded,TRIP,721) "Crash Button 1 Pressed While Station G Searched Shutter Permit Trip (721)"
    set pssFaults(gen3upgraded,TRIP,722) "Crash Button 2 Pressed While Station G Searched Shutter Permit Trip (722)"
    set pssFaults(gen3upgraded,TRIP,723) "Crash Button 3 Pressed While Station G Searched Shutter Permit Trip (723)"
    set pssFaults(gen3upgraded,TRIP,724) "Crash Button 4 Pressed While Station G Searched Shutter Permit Trip (724)"
    set pssFaults(gen3upgraded,TRIP,725) "Crash Button 5 Pressed While Station G Searched Shutter Permit Trip (725)"
    set pssFaults(gen3upgraded,TRIP,726) "Crash Button 6 Pressed While Station G Searched Shutter Permit Trip (726)"
    set pssFaults(gen3upgraded,TRIP,727) "Crash Button 7 Pressed While Station G Searched Shutter Permit Trip (727)"
    set pssFaults(gen3upgraded,TRIP,728) "Crash Button 8 Pressed While Station G Searched Shutter Permit Trip (728)"
    set pssFaults(gen3upgraded,TRIP,801) "Crash Button 1 Pressed While Beam In Station H Storage Ring Trip (801)"
    set pssFaults(gen3upgraded,TRIP,802) "Crash Button 2 Pressed While Beam In Station H Storage Ring Trip (802)"
    set pssFaults(gen3upgraded,TRIP,803) "Crash Button 3 Pressed While Beam In Station H Storage Ring Trip (803)"
    set pssFaults(gen3upgraded,TRIP,804) "Crash Button 4 Pressed While Beam In Station H Storage Ring Trip (804)"
    set pssFaults(gen3upgraded,TRIP,805) "Crash Button 5 Pressed While Beam In Station H Storage Ring Trip (805)"
    set pssFaults(gen3upgraded,TRIP,806) "Crash Button 6 Pressed While Beam In Station H Storage Ring Trip (806)"
    set pssFaults(gen3upgraded,TRIP,807) "Crash Button 7 Pressed While Beam In Station H Storage Ring Trip (807)"
    set pssFaults(gen3upgraded,TRIP,808) "Crash Button 8 Pressed While Beam In Station H Storage Ring Trip (808)"
    set pssFaults(gen3upgraded,TRIP,811) "Door 1 Opened While Beam In Station H Storage Ring Trip (811)"
    set pssFaults(gen3upgraded,TRIP,812) "Door 2 Opened While Beam In Station H Storage Ring Trip (812)"
    set pssFaults(gen3upgraded,TRIP,813) "Door 3 Opened While Beam In Station H Storage Ring Trip (813)"
    set pssFaults(gen3upgraded,TRIP,814) "Door 4 Opened While Beam In Station H Storage Ring Trip (814)"
    set pssFaults(gen3upgraded,TRIP,815) "Door 5 Opened While Beam In Station H Storage Ring Trip (815)"
    set pssFaults(gen3upgraded,TRIP,816) "Door 6 Opened While Beam In Station H Storage Ring Trip (816)"
    set pssFaults(gen3upgraded,TRIP,817) "Door 7 Opened While Beam In Station H Storage Ring Trip (817)"
    set pssFaults(gen3upgraded,TRIP,818) "Door 8 Opened While Beam In Station H Storage Ring Trip (818)"
    set pssFaults(gen3upgraded,TRIP,821) "Crash Button 1 Pressed While Station H Searched Shutter Permit Trip (821)"
    set pssFaults(gen3upgraded,TRIP,822) "Crash Button 2 Pressed While Station H Searched Shutter Permit Trip (822)"
    set pssFaults(gen3upgraded,TRIP,823) "Crash Button 3 Pressed While Station H Searched Shutter Permit Trip (823)"
    set pssFaults(gen3upgraded,TRIP,824) "Crash Button 4 Pressed While Station H Searched Shutter Permit Trip (824)"
    set pssFaults(gen3upgraded,TRIP,825) "Crash Button 5 Pressed While Station H Searched Shutter Permit Trip (825)"
    set pssFaults(gen3upgraded,TRIP,826) "Crash Button 6 Pressed While Station H Searched Shutter Permit Trip (826)"
    set pssFaults(gen3upgraded,TRIP,827) "Crash Button 7 Pressed While Station H Searched Shutter Permit Trip (827)"
    set pssFaults(gen3upgraded,TRIP,828) "Crash Button 8 Pressed While Station H Searched Shutter Permit Trip (828)"
    set pssFaults(gen3upgraded,TRIP,901) "Crash Button 1 Pressed While Beam In Station I Storage Ring Trip (901)"
    set pssFaults(gen3upgraded,TRIP,902) "Crash Button 2 Pressed While Beam In Station I Storage Ring Trip (902)"
    set pssFaults(gen3upgraded,TRIP,903) "Crash Button 3 Pressed While Beam In Station I Storage Ring Trip (903)"
    set pssFaults(gen3upgraded,TRIP,904) "Crash Button 4 Pressed While Beam In Station I Storage Ring Trip (904)"
    set pssFaults(gen3upgraded,TRIP,905) "Crash Button 5 Pressed While Beam In Station I Storage Ring Trip (905)"
    set pssFaults(gen3upgraded,TRIP,906) "Crash Button 6 Pressed While Beam In Station I Storage Ring Trip (906)"
    set pssFaults(gen3upgraded,TRIP,907) "Crash Button 7 Pressed While Beam In Station I Storage Ring Trip (907)"
    set pssFaults(gen3upgraded,TRIP,908) "Crash Button 8 Pressed While Beam In Station I Storage Ring Trip (908)"
    set pssFaults(gen3upgraded,TRIP,911) "Door 1 Opened While Beam In Station I Storage Ring Trip (911)"
    set pssFaults(gen3upgraded,TRIP,912) "Door 2 Opened While Beam In Station I Storage Ring Trip (912)"
    set pssFaults(gen3upgraded,TRIP,913) "Door 3 Opened While Beam In Station I Storage Ring Trip (913)"
    set pssFaults(gen3upgraded,TRIP,914) "Door 4 Opened While Beam In Station I Storage Ring Trip (914)"
    set pssFaults(gen3upgraded,TRIP,915) "Door 5 Opened While Beam In Station I Storage Ring Trip (915)"
    set pssFaults(gen3upgraded,TRIP,916) "Door 6 Opened While Beam In Station I Storage Ring Trip (916)"
    set pssFaults(gen3upgraded,TRIP,917) "Door 7 Opened While Beam In Station I Storage Ring Trip (917)"
    set pssFaults(gen3upgraded,TRIP,918) "Door 8 Opened While Beam In Station I Storage Ring Trip (918)"
    set pssFaults(gen3upgraded,TRIP,921) "Crash Button 1 Pressed While Station I Searched Shutter Permit Trip (921)"
    set pssFaults(gen3upgraded,TRIP,922) "Crash Button 2 Pressed While Station I Searched Shutter Permit Trip (922)"
    set pssFaults(gen3upgraded,TRIP,923) "Crash Button 3 Pressed While Station I Searched Shutter Permit Trip (923)"
    set pssFaults(gen3upgraded,TRIP,924) "Crash Button 4 Pressed While Station I Searched Shutter Permit Trip (924)"
    set pssFaults(gen3upgraded,TRIP,925) "Crash Button 5 Pressed While Station I Searched Shutter Permit Trip (925)"
    set pssFaults(gen3upgraded,TRIP,926) "Crash Button 6 Pressed While Station I Searched Shutter Permit Trip (926)"
    set pssFaults(gen3upgraded,TRIP,927) "Crash Button 7 Pressed While Station I Searched Shutter Permit Trip (927)"
    set pssFaults(gen3upgraded,TRIP,928) "Crash Button 8 Pressed While Station I Searched Shutter Permit Trip (928)"
    set pssFaults(gen3upgraded,TRIP,1001) "Crash Button 1 Pressed While Beam In Station J Storage Ring Trip (1001)"
    set pssFaults(gen3upgraded,TRIP,1002) "Crash Button 2 Pressed While Beam In Station J Storage Ring Trip (1002)"
    set pssFaults(gen3upgraded,TRIP,1003) "Crash Button 3 Pressed While Beam In Station J Storage Ring Trip (1003)"
    set pssFaults(gen3upgraded,TRIP,1004) "Crash Button 4 Pressed While Beam In Station J Storage Ring Trip (1004)"
    set pssFaults(gen3upgraded,TRIP,1005) "Crash Button 5 Pressed While Beam In Station J Storage Ring Trip (1005)"
    set pssFaults(gen3upgraded,TRIP,1006) "Crash Button 6 Pressed While Beam In Station J Storage Ring Trip (1006)"
    set pssFaults(gen3upgraded,TRIP,1007) "Crash Button 7 Pressed While Beam In Station J Storage Ring Trip (1007)"
    set pssFaults(gen3upgraded,TRIP,1008) "Crash Button 8 Pressed While Beam In Station J Storage Ring Trip (1008)"
    set pssFaults(gen3upgraded,TRIP,1011) "Door 1 Opened While Beam In Station J Storage Ring Trip (1011)"
    set pssFaults(gen3upgraded,TRIP,1012) "Door 2 Opened While Beam In Station J Storage Ring Trip (1012)"
    set pssFaults(gen3upgraded,TRIP,1013) "Door 3 Opened While Beam In Station J Storage Ring Trip (1013)"
    set pssFaults(gen3upgraded,TRIP,1014) "Door 4 Opened While Beam In Station J Storage Ring Trip (1014)"
    set pssFaults(gen3upgraded,TRIP,1015) "Door 5 Opened While Beam In Station J Storage Ring Trip (1015)"
    set pssFaults(gen3upgraded,TRIP,1016) "Door 6 Opened While Beam In Station J Storage Ring Trip (1016)"
    set pssFaults(gen3upgraded,TRIP,1017) "Door 7 Opened While Beam In Station J Storage Ring Trip (1017)"
    set pssFaults(gen3upgraded,TRIP,1018) "Door 8 Opened While Beam In Station J Storage Ring Trip (1018)"
    set pssFaults(gen3upgraded,TRIP,1021) "Crash Button 1 Pressed While Station J Searched Shutter Permit Trip (1021)"
    set pssFaults(gen3upgraded,TRIP,1022) "Crash Button 2 Pressed While Station J Searched Shutter Permit Trip (1022)"
    set pssFaults(gen3upgraded,TRIP,1023) "Crash Button 3 Pressed While Station J Searched Shutter Permit Trip (1023)"
    set pssFaults(gen3upgraded,TRIP,1024) "Crash Button 4 Pressed While Station J Searched Shutter Permit Trip (1024)"
    set pssFaults(gen3upgraded,TRIP,1025) "Crash Button 5 Pressed While Station J Searched Shutter Permit Trip (1025)"
    set pssFaults(gen3upgraded,TRIP,1026) "Crash Button 6 Pressed While Station J Searched Shutter Permit Trip (1026)"
    set pssFaults(gen3upgraded,TRIP,1027) "Crash Button 7 Pressed While Station J Searched Shutter Permit Trip (1027)"
    set pssFaults(gen3upgraded,TRIP,1028) "Crash Button 8 Pressed While Station J Searched Shutter Permit Trip (1028)"
    set pssFaults(gen3upgraded,TRIP,1101) "Crash Button 1 Pressed While Beam In Station K Storage Ring Trip (1101)"
    set pssFaults(gen3upgraded,TRIP,1102) "Crash Button 2 Pressed While Beam In Station K Storage Ring Trip (1102)"
    set pssFaults(gen3upgraded,TRIP,1103) "Crash Button 3 Pressed While Beam In Station K Storage Ring Trip (1103)"
    set pssFaults(gen3upgraded,TRIP,1104) "Crash Button 4 Pressed While Beam In Station K Storage Ring Trip (1104)"
    set pssFaults(gen3upgraded,TRIP,1105) "Crash Button 5 Pressed While Beam In Station K Storage Ring Trip (1105)"
    set pssFaults(gen3upgraded,TRIP,1106) "Crash Button 6 Pressed While Beam In Station K Storage Ring Trip (1106)"
    set pssFaults(gen3upgraded,TRIP,1107) "Crash Button 7 Pressed While Beam In Station K Storage Ring Trip (1107)"
    set pssFaults(gen3upgraded,TRIP,1108) "Crash Button 8 Pressed While Beam In Station K Storage Ring Trip (1108)"
    set pssFaults(gen3upgraded,TRIP,1111) "Door 1 Opened While Beam In Station K Storage Ring Trip (1111)"
    set pssFaults(gen3upgraded,TRIP,1112) "Door 2 Opened While Beam In Station K Storage Ring Trip (1112)"
    set pssFaults(gen3upgraded,TRIP,1113) "Door 3 Opened While Beam In Station K Storage Ring Trip (1113)"
    set pssFaults(gen3upgraded,TRIP,1114) "Door 4 Opened While Beam In Station K Storage Ring Trip (1114)"
    set pssFaults(gen3upgraded,TRIP,1115) "Door 5 Opened While Beam In Station K Storage Ring Trip (1115)"
    set pssFaults(gen3upgraded,TRIP,1116) "Door 6 Opened While Beam In Station K Storage Ring Trip (1116)"
    set pssFaults(gen3upgraded,TRIP,1117) "Door 7 Opened While Beam In Station K Storage Ring Trip (1117)"
    set pssFaults(gen3upgraded,TRIP,1118) "Door 8 Opened While Beam In Station K Storage Ring Trip (1118)"
    set pssFaults(gen3upgraded,TRIP,1121) "Crash Button 1 Pressed While Station K Searched Shutter Permit Trip (1121)"
    set pssFaults(gen3upgraded,TRIP,1122) "Crash Button 2 Pressed While Station K Searched Shutter Permit Trip (1122)"
    set pssFaults(gen3upgraded,TRIP,1123) "Crash Button 3 Pressed While Station K Searched Shutter Permit Trip (1123)"
    set pssFaults(gen3upgraded,TRIP,1124) "Crash Button 4 Pressed While Station K Searched Shutter Permit Trip (1124)"
    set pssFaults(gen3upgraded,TRIP,1125) "Crash Button 5 Pressed While Station K Searched Shutter Permit Trip (1125)"
    set pssFaults(gen3upgraded,TRIP,1126) "Crash Button 6 Pressed While Station K Searched Shutter Permit Trip (1126)"
    set pssFaults(gen3upgraded,TRIP,1127) "Crash Button 7 Pressed While Station K Searched Shutter Permit Trip (1127)"
    set pssFaults(gen3upgraded,TRIP,1128) "Crash Button 8 Pressed While Station K Searched Shutter Permit Trip (1128)"


    set pssFaults(gen3upgraded,AB,WARN,1) "PLC Battery Dead Warning (1)"
    set pssFaults(gen3upgraded,AB,WARN,11) "DIW Flow 1 Below Set Point Warning (11)"
    set pssFaults(gen3upgraded,AB,WARN,12) "DIW Flow 2 Below Set Point Warning (12)"
    set pssFaults(gen3upgraded,AB,WARN,13) "DIW Flow 3 Below Set Point Warning (13)"
    set pssFaults(gen3upgraded,AB,WARN,14) "DIW Flow 4 Below Set Point Warning (14)"
    set pssFaults(gen3upgraded,AB,WARN,15) "DIW Flow 5 Below Set Point Warning (15)"
    set pssFaults(gen3upgraded,AB,WARN,16) "DIW Flow 6 Below Set Point Warning (16)"
    set pssFaults(gen3upgraded,AB,WARN,17) "DIW Flow 7 Below Set Point Warning (17)"
    set pssFaults(gen3upgraded,AB,WARN,18) "DIW Flow 8 Below Set Point Warning (18)"
    set pssFaults(gen3upgraded,AB,WARN,31) "DIW Flow 1 Over/Under Range Warning (31)"
    set pssFaults(gen3upgraded,AB,WARN,32) "DIW Flow 3 Over/Under Range Warning (32)"
    set pssFaults(gen3upgraded,AB,WARN,33) "DIW Flow 3 Over/Under Range Warning (33)"
    set pssFaults(gen3upgraded,AB,WARN,34) "DIW Flow 4 Over/Under Range Warning (34)"
    set pssFaults(gen3upgraded,AB,WARN,35) "DIW Flow 5 Over/Under Range Warning (35)"
    set pssFaults(gen3upgraded,AB,WARN,36) "DIW Flow 6 Over/Under Range Warning (36)"
    set pssFaults(gen3upgraded,AB,WARN,37) "DIW Flow 7 Over/Under Range Warning (37)"
    set pssFaults(gen3upgraded,AB,WARN,38) "DIW Flow 8 Over/Under Range Warning (38)"
    set pssFaults(gen3upgraded,AB,WARN,101) "Front End Shutter Photon Shutter 1 No Switch Warning (101)"
    set pssFaults(gen3upgraded,AB,WARN,102) "Front End Shutter Photon Shutter 2 No Switch Warning (102)"
    set pssFaults(gen3upgraded,AB,WARN,103) "Front End Shutter Safety Shutter 1 No Switch Warning (103)"
    set pssFaults(gen3upgraded,AB,WARN,104) "Front End Shutter Safety Shutter 2 No Switch Warning (104)"
    set pssFaults(gen3upgraded,AB,WARN,111) "Station A Search Out Of Sync Warning (111)"
    set pssFaults(gen3upgraded,AB,WARN,201) "Station B Photon Shutter No Switch Warning (201)"
    set pssFaults(gen3upgraded,AB,WARN,202) "Station B Safety/Mono Shutter 1 No Switch Warning (202)"
    set pssFaults(gen3upgraded,AB,WARN,203) "Station B Safety/Mono Shutter 2 No Switch Warning (203)"
    set pssFaults(gen3upgraded,AB,WARN,204) "Station B Safety Shutter No Switch Warning (204)"
    set pssFaults(gen3upgraded,AB,WARN,211) "Station B Search Out Of Sync Warning (211)"
    set pssFaults(gen3upgraded,AB,WARN,231) "Station B Shutter BLSIE in Local (231)"
    set pssFaults(gen3upgraded,AB,WARN,265) "Station B PBS Low Pressure Warning (265)"
    set pssFaults(gen3upgraded,AB,WARN,266) "Station B PBS Over/Under Pressure Warning (266)"
    set pssFaults(gen3upgraded,AB,WARN,301) "Station C Photon Shutter No Switch Warning (301)"
    set pssFaults(gen3upgraded,AB,WARN,302) "Station C Safety/Mono Shutter 1 No Switch Warning (302)"
    set pssFaults(gen3upgraded,AB,WARN,303) "Station C Safety/Mono Shutter 2 No Switch Warning (303)"
    set pssFaults(gen3upgraded,AB,WARN,304) "Station C Safety Shutter No Switch Warning (304)"
    set pssFaults(gen3upgraded,AB,WARN,311) "Station C Search Out Of Sync Warning (311)"
    set pssFaults(gen3upgraded,AB,WARN,331) "Station C Shutter BLSIE in Local (331)"
    set pssFaults(gen3upgraded,AB,WARN,365) "Station C PBS Low Pressure Warning (365)"
    set pssFaults(gen3upgraded,AB,WARN,366) "Station C PBS Over/Under Pressure Warning (366)"
    set pssFaults(gen3upgraded,AB,WARN,401) "Station D Photon Shutter No Switch Warning (401)"
    set pssFaults(gen3upgraded,AB,WARN,402) "Station D Safety/Mono Shutter 1 No Switch Warning (402)"
    set pssFaults(gen3upgraded,AB,WARN,403) "Station D Safety/Mono Shutter 2 No Switch Warning (403)"
    set pssFaults(gen3upgraded,AB,WARN,404) "Station D Safety Shutter No Switch Warning (404)"
    set pssFaults(gen3upgraded,AB,WARN,411) "Station D Search Out Of Sync Warning (411)"
    set pssFaults(gen3upgraded,AB,WARN,431) "Station D Shutter BLSIE in Local (431)"
    set pssFaults(gen3upgraded,AB,WARN,465) "Station D PBS Low Pressure Warning (465)"
    set pssFaults(gen3upgraded,AB,WARN,466) "Station D PBS Over/Under Pressure Warning (466)"
    set pssFaults(gen3upgraded,AB,WARN,501) "Station E Photon Shutter No Switch Warning (501)"
    set pssFaults(gen3upgraded,AB,WARN,502) "Station E Safety/Mono Shutter 1 No Switch Warning (502)"
    set pssFaults(gen3upgraded,AB,WARN,503) "Station E Safety/Mono Shutter 2 No Switch Warning (503)"
    set pssFaults(gen3upgraded,AB,WARN,504) "Station E Safety Shutter No Switch Warning (504)"
    set pssFaults(gen3upgraded,AB,WARN,511) "Station E Search Out Of Sync Warning (511)"
    set pssFaults(gen3upgraded,AB,WARN,531) "Station E Shutter BLSIE in Local (531)"
    set pssFaults(gen3upgraded,AB,WARN,565) "Station E PBS Low Pressure Warning (565)"
    set pssFaults(gen3upgraded,AB,WARN,566) "Station E PBS Over/Under Pressure Warning (566)"
    set pssFaults(gen3upgraded,AB,WARN,601) "Station F Photon Shutter No Switch Warning (601)"
    set pssFaults(gen3upgraded,AB,WARN,602) "Station F Safety/Mono Shutter 1 No Switch Warning (602)"
    set pssFaults(gen3upgraded,AB,WARN,603) "Station F Safety/Mono Shutter 2 No Switch Warning (603)"
    set pssFaults(gen3upgraded,AB,WARN,604) "Station F Safety Shutter No Switch Warning (604)"
    set pssFaults(gen3upgraded,AB,WARN,611) "Station F Search Out Of Sync Warning (611)"
    set pssFaults(gen3upgraded,AB,WARN,631) "Station F Shutter BLSIE in Local (631)"
    set pssFaults(gen3upgraded,AB,WARN,701) "Station G Photon Shutter No Switch Warning (701)"
    set pssFaults(gen3upgraded,AB,WARN,702) "Station G Safety/Mono Shutter 1 No Switch Warning (702)"
    set pssFaults(gen3upgraded,AB,WARN,703) "Station G Safety/Mono Shutter 2 No Switch Warning (703)"
    set pssFaults(gen3upgraded,AB,WARN,704) "Station G Safety Shutter No Switch Warning (704)"
    set pssFaults(gen3upgraded,AB,WARN,711) "Station G Search Out Of Sync Warning (711)"
    set pssFaults(gen3upgraded,AB,WARN,731) "Station G Shutter BLSIE in Local (731)"
    set pssFaults(gen3upgraded,AB,WARN,801) "Station H Photon Shutter No Switch Warning (801)"
    set pssFaults(gen3upgraded,AB,WARN,802) "Station H Safety/Mono Shutter 1 No Switch Warning (802)"
    set pssFaults(gen3upgraded,AB,WARN,803) "Station H Safety/Mono Shutter 2 No Switch Warning (803)"
    set pssFaults(gen3upgraded,AB,WARN,804) "Station H Safety Shutter No Switch Warning (804)"
    set pssFaults(gen3upgraded,AB,WARN,811) "Station H Search Out Of Sync Warning (811)"
    set pssFaults(gen3upgraded,AB,WARN,831) "Station H Shutter BLSIE in Local (831)"
    set pssFaults(gen3upgraded,AB,WARN,901) "Station I Photon Shutter No Switch Warning (901)"
    set pssFaults(gen3upgraded,AB,WARN,902) "Station I Safety/Mono Shutter 1 No Switch Warning (902)"
    set pssFaults(gen3upgraded,AB,WARN,903) "Station I Safety/Mono Shutter 2 No Switch Warning (903)"
    set pssFaults(gen3upgraded,AB,WARN,904) "Station I Safety Shutter No Switch Warning (904)"
    set pssFaults(gen3upgraded,AB,WARN,911) "Station I Search Out Of Sync Warning (911)"
    set pssFaults(gen3upgraded,AB,WARN,931) "Station I Shutter BLSIE in Local (931)"
    set pssFaults(gen3upgraded,AB,WARN,1001) "Station J Photon Shutter No Switch Warning (1001)"
    set pssFaults(gen3upgraded,AB,WARN,1002) "Station J Safety/Mono Shutter 1 No Switch Warning (1002)"
    set pssFaults(gen3upgraded,AB,WARN,1003) "Station J Safety/Mono Shutter 2 No Switch Warning (1003)"
    set pssFaults(gen3upgraded,AB,WARN,1004) "Station J Safety Shutter No Switch Warning (1004)"
    set pssFaults(gen3upgraded,AB,WARN,1011) "Station J Search Out Of Sync Warning (1011)"
    set pssFaults(gen3upgraded,AB,WARN,1031) "Station J Shutter BLSIE in Local (1031)"
    set pssFaults(gen3upgraded,AB,WARN,1101) "Station K Photon Shutter No Switch Warning (1101)"
    set pssFaults(gen3upgraded,AB,WARN,1102) "Station K Safety/Mono Shutter 1 No Switch Warning (1102)"
    set pssFaults(gen3upgraded,AB,WARN,1103) "Station K Safety/Mono Shutter 2 No Switch Warning (1103)"
    set pssFaults(gen3upgraded,AB,WARN,1104) "Station K Safety Shutter No Switch Warning (1104)"
    set pssFaults(gen3upgraded,AB,WARN,1111) "Station K Search Out Of Sync Warning (1111)"
    set pssFaults(gen3upgraded,AB,WARN,1131) "Station K Shutter BLSIE in Local (1131)"


    set pssFaults(gen3upgraded,C,WARN,1) "PLC Battery Dead Warning (1)"
    set pssFaults(gen3upgraded,C,WARN,2) "ESD A Field Power Dead Warning (2)"
    set pssFaults(gen3upgraded,C,WARN,3) "ESD B Field Power Dead Warning (3)"
    set pssFaults(gen3upgraded,C,WARN,4) "C&C Field Power Dead Warning (4)"
    set pssFaults(gen3upgraded,C,WARN,5) "Strobe & Lock Power Dead Warning (5)"
    set pssFaults(gen3upgraded,C,WARN,6) "HMI Power Dead Warning (6)"
    set pssFaults(gen3upgraded,C,WARN,7) "Communications Warning (7)"
    set pssFaults(gen3upgraded,C,WARN,8) "Power Up Warning (8)"
    set pssFaults(gen3upgraded,C,WARN,9) "PLC Processor Major Fault Warning (9)"
    set pssFaults(gen3upgraded,C,WARN,10) "Beamline Taken Global Offline While Beam Active Warning (10)"
    set pssFaults(gen3upgraded,C,WARN,11) "Global Offline Did Not Disable Front End Air Warning (11)"
    set pssFaults(gen3upgraded,C,WARN,31) "PLC In Remote Warning (31)"
    set pssFaults(gen3upgraded,C,WARN,32) "PLC Forces Present Warning (32)"
    set pssFaults(gen3upgraded,C,WARN,100) "Front End Shutter Air Pressure Low Warning (100)"
    set pssFaults(gen3upgraded,C,WARN,101) "ESD A Front End Photon Shutter 1 Open Switch Fail Warning (101)"
    set pssFaults(gen3upgraded,C,WARN,102) "ESD A Front End Photon Shutter 1 Fail To Close Warning (102)"
    set pssFaults(gen3upgraded,C,WARN,103) "ESD A Front End Photon Shutter 1 Fail To Fully Close Warning (103)"
    set pssFaults(gen3upgraded,C,WARN,104) "ESD A Front End Photon Shutter 1 Fail To Open Warning (104)"
    set pssFaults(gen3upgraded,C,WARN,105) "ESD A Front End Photon Shutter 1 Fail To Fully Open Warning (105)"
    set pssFaults(gen3upgraded,C,WARN,106) "ESD A Front End Photon Shutter 2 Open Switch Fail Warning (106)"
    set pssFaults(gen3upgraded,C,WARN,107) "ESD A Front End Photon Shutter 2 Fail To Close Warning (107)"
    set pssFaults(gen3upgraded,C,WARN,108) "ESD A Front End Photon Shutter 2 Fail To Fully Close Warning (108)"
    set pssFaults(gen3upgraded,C,WARN,109) "ESD A Front End Photon Shutter 2 Fail To Open Warning (109)"
    set pssFaults(gen3upgraded,C,WARN,110) "ESD A Front End Photon Shutter 2 Fail To Fully Open Warning (110)"
    set pssFaults(gen3upgraded,C,WARN,111) "ESD A Front End Safety Shutter 1 Open Switch Fail Warning (111)"
    set pssFaults(gen3upgraded,C,WARN,112) "ESD A Front End Safety Shutter 1 Fail To Close Warning (112)"
    set pssFaults(gen3upgraded,C,WARN,113) "ESD A Front End Safety Shutter 1 Fail To Fully Close Warning (113)"
    set pssFaults(gen3upgraded,C,WARN,114) "ESD A Front End Safety Shutter 1 Fail To Open Warning (114)"
    set pssFaults(gen3upgraded,C,WARN,115) "ESD A Front End Safety Shutter 1 Fail To Fully Open Warning (115)"
    set pssFaults(gen3upgraded,C,WARN,116) "ESD A Front End Safety Shutter 2 Open Switch Fail Warning (116)"
    set pssFaults(gen3upgraded,C,WARN,117) "ESD A Front End Safety Shutter 2 Fail To Close Warning (117)"
    set pssFaults(gen3upgraded,C,WARN,118) "ESD A Front End Safety Shutter 2 Fail To Fully Close Warning (118)"
    set pssFaults(gen3upgraded,C,WARN,119) "ESD A Front End Safety Shutter 2 Fail To Open Warning (119)"
    set pssFaults(gen3upgraded,C,WARN,120) "ESD A Front End Safety Shutter 2 Fail To Fully Open Warning (120)"
    set pssFaults(gen3upgraded,C,WARN,151) "ESD B Front End Photon Shutter 1 Open Switch Fail Warning (151)"
    set pssFaults(gen3upgraded,C,WARN,152) "ESD B Front End Photon Shutter 1 Fail To Close Warning (152)"
    set pssFaults(gen3upgraded,C,WARN,153) "ESD B Front End Photon Shutter 1 Fail To Fully Close Warning (153)"
    set pssFaults(gen3upgraded,C,WARN,154) "ESD B Front End Photon Shutter 1 Fail To Open Warning (154)"
    set pssFaults(gen3upgraded,C,WARN,155) "ESD B Front End Photon Shutter 1 Fail To Fully Open Warning (155)"
    set pssFaults(gen3upgraded,C,WARN,156) "ESD B Front End Photon Shutter 2 Open Switch Fail Warning (156)"
    set pssFaults(gen3upgraded,C,WARN,157) "ESD B Front End Photon Shutter 2 Fail To Close Warning (157)"
    set pssFaults(gen3upgraded,C,WARN,158) "ESD B Front End Photon Shutter 2 Fail To Fully Close Warning (158)"
    set pssFaults(gen3upgraded,C,WARN,159) "ESD B Front End Photon Shutter 2 Fail To Open Warning (159)"
    set pssFaults(gen3upgraded,C,WARN,160) "ESD B Front End Photon Shutter 2 Fail To Fully Open Warning (160)"
    set pssFaults(gen3upgraded,C,WARN,161) "ESD B Front End Safety Shutter 1 Open Switch Fail Warning (161)"
    set pssFaults(gen3upgraded,C,WARN,162) "ESD B Front End Safety Shutter 1 Fail To Close Warning (162)"
    set pssFaults(gen3upgraded,C,WARN,163) "ESD B Front End Safety Shutter 1 Fail To Fully Close Warning (163)"
    set pssFaults(gen3upgraded,C,WARN,164) "ESD B Front End Safety Shutter 1 Fail To Open Warning (164)"
    set pssFaults(gen3upgraded,C,WARN,165) "ESD B Front End Safety Shutter 1 Fail To Fully Open Warning (165)"
    set pssFaults(gen3upgraded,C,WARN,166) "ESD B Front End Safety Shutter 2 Open Switch Fail Warning (166)"
    set pssFaults(gen3upgraded,C,WARN,167) "ESD B Front End Safety Shutter 2 Fail To Close Warning (167)"
    set pssFaults(gen3upgraded,C,WARN,168) "ESD B Front End Safety Shutter 2 Fail To Fully Close Warning (168)"
    set pssFaults(gen3upgraded,C,WARN,169) "ESD B Front End Safety Shutter 2 Fail To Open Warning (169)"
    set pssFaults(gen3upgraded,C,WARN,170) "ESD B Front End Safety Shutter 2 Fail To Fully Open Warning (170)"
    set pssFaults(gen3upgraded,C,WARN,200) "Station B Air Pressure Low Warning (200)"
    set pssFaults(gen3upgraded,C,WARN,201) "ESD A Station B Photon Shutter Open Switch Fail Warning (201)"
    set pssFaults(gen3upgraded,C,WARN,202) "ESD A Station B Photon Shutter Fail To Close Warning (202)"
    set pssFaults(gen3upgraded,C,WARN,203) "ESD A Station B Photon Shutter Fail To Fully Close Warning (203)"
    set pssFaults(gen3upgraded,C,WARN,204) "ESD A Station B Photon Shutter Fail To Open Warning (204)"
    set pssFaults(gen3upgraded,C,WARN,205) "ESD A Station B Photon Shutter Fail To Fully Open Warning (205)"
    set pssFaults(gen3upgraded,C,WARN,206) "ESD A Station B Safety Shutter Open Switch Fail Warning (206)"
    set pssFaults(gen3upgraded,C,WARN,207) "ESD A Station B Safety Shutter Fail To Close Warning (207)"
    set pssFaults(gen3upgraded,C,WARN,208) "ESD A Station B Safety Shutter Fail To Fully Close Warning (208)"
    set pssFaults(gen3upgraded,C,WARN,209) "ESD A Station B Safety Shutter Fail To Open Warning (209)"
    set pssFaults(gen3upgraded,C,WARN,210) "ESD A Station B Safety Shutter Fail To Fully Open Warning (210)"
    set pssFaults(gen3upgraded,C,WARN,211) "ESD A Station B Safety/Mono Shutter 1 Open Switch Fail Warning (211)"
    set pssFaults(gen3upgraded,C,WARN,212) "ESD A Station B Safety/Mono Shutter 1 Fail To Close Warning (212)"
    set pssFaults(gen3upgraded,C,WARN,213) "ESD A Station B Safety/Mono Shutter 1 Fail To Fully Close Warning (213)"
    set pssFaults(gen3upgraded,C,WARN,214) "ESD A Station B Safety/Mono Shutter 1 Fail To Open Warning (214)"
    set pssFaults(gen3upgraded,C,WARN,215) "ESD A Station B Safety/Mono Shutter 1 Fail To Fully Open Warning (215)"
    set pssFaults(gen3upgraded,C,WARN,216) "ESD A Station B Safety/Mono Shutter 2 Open Switch Fail Warning (216)"
    set pssFaults(gen3upgraded,C,WARN,217) "ESD A Station B Safety/Mono Shutter 2 Fail To Close Warning (217)"
    set pssFaults(gen3upgraded,C,WARN,218) "ESD A Station B Safety/Mono Shutter 2 Fail To Fully Close Warning (218)"
    set pssFaults(gen3upgraded,C,WARN,219) "ESD A Station B Safety/Mono Shutter 2 Fail To Open Warning (219)"
    set pssFaults(gen3upgraded,C,WARN,220) "ESD A Station B Safety/Mono Shutter 2 Fail To Fully Open Warning (220)"
    set pssFaults(gen3upgraded,C,WARN,231) "SBS BLSIE in Local (231)"
    set pssFaults(gen3upgraded,C,WARN,251) "ESD B Station B Photon Shutter Open Switch Fail Warning (251)"
    set pssFaults(gen3upgraded,C,WARN,252) "ESD B Station B Photon Shutter Fail To Close Warning (252)"
    set pssFaults(gen3upgraded,C,WARN,253) "ESD B Station B Photon Shutter Fail To Fully Close Warning (253)"
    set pssFaults(gen3upgraded,C,WARN,254) "ESD B Station B Photon Shutter Fail To Open Warning (254)"
    set pssFaults(gen3upgraded,C,WARN,255) "ESD B Station B Photon Shutter Fail To Fully Open Warning (255)"
    set pssFaults(gen3upgraded,C,WARN,256) "ESD B Station B Safety Shutter Open Switch Fail Warning (256)"
    set pssFaults(gen3upgraded,C,WARN,257) "ESD B Station B Safety Shutter Fail To Close Warning (257)"
    set pssFaults(gen3upgraded,C,WARN,258) "ESD B Station B Safety Shutter Fail To Fully Close Warning (258)"
    set pssFaults(gen3upgraded,C,WARN,259) "ESD B Station B Safety Shutter Fail To Open Warning (259)"
    set pssFaults(gen3upgraded,C,WARN,260) "ESD B Station B Safety Shutter Fail To Fully Open Warning (260)"
    set pssFaults(gen3upgraded,C,WARN,261) "ESD B Station B Safety/Mono Shutter 1 Open Switch Fail Warning (261)"
    set pssFaults(gen3upgraded,C,WARN,262) "ESD B Station B Safety/Mono Shutter 1 Fail To Close Warning (262)"
    set pssFaults(gen3upgraded,C,WARN,263) "ESD B Station B Safety/Mono Shutter 1 Fail To Fully Close Warning (263)"
    set pssFaults(gen3upgraded,C,WARN,264) "ESD B Station B Safety/Mono Shutter 1 Fail To Open Warning (264)"
    set pssFaults(gen3upgraded,C,WARN,265) "ESD B Station B Safety/Mono Shutter 1 Fail To Fully Open Warning (265)"
    set pssFaults(gen3upgraded,C,WARN,266) "ESD B Station B Safety/Mono Shutter 2 Open Switch Fail Warning (266)"
    set pssFaults(gen3upgraded,C,WARN,267) "ESD B Station B Safety/Mono Shutter 2 Fail To Close Warning (267)"
    set pssFaults(gen3upgraded,C,WARN,268) "ESD B Station B Safety/Mono Shutter 2 Fail To Fully Close Warning (268)"
    set pssFaults(gen3upgraded,C,WARN,269) "ESD B Station B Safety/Mono Shutter 2 Fail To Open Warning (269)"
    set pssFaults(gen3upgraded,C,WARN,270) "ESD B Station B Safety/Mono Shutter 2 Fail To Fully Open Warning (270)"
    set pssFaults(gen3upgraded,C,WARN,280) "Station B Emergency Egress Button Pressed Warning (280)"
    set pssFaults(gen3upgraded,C,WARN,281) "Station B Door 1 Emergency Egress Button Pressed Warning (281)"
    set pssFaults(gen3upgraded,C,WARN,282) "Station B Door 2 Emergency Egress Button Pressed Warning (282)"
    set pssFaults(gen3upgraded,C,WARN,283) "Station B Door 3 Emergency Egress Button Pressed Warning (283)"
    set pssFaults(gen3upgraded,C,WARN,284) "Station B Door 4 Emergency Egress Button Pressed Warning (284)"
    set pssFaults(gen3upgraded,C,WARN,285) "Station B Door 5 Emergency Egress Button Pressed Warning (285)"
    set pssFaults(gen3upgraded,C,WARN,286) "Station B Door 6 Emergency Egress Button Pressed Warning (286)"
    set pssFaults(gen3upgraded,C,WARN,287) "Station B Door 7 Emergency Egress Button Pressed Warning (287)"
    set pssFaults(gen3upgraded,C,WARN,288) "Station B Door 8 Emergency Egress Button Pressed Warning (288)"
    set pssFaults(gen3upgraded,C,WARN,300) "Station C Air Pressure Low Warning (300)"
    set pssFaults(gen3upgraded,C,WARN,301) "ESD A Station C Photon Shutter Open Switch Fail Warning (301)"
    set pssFaults(gen3upgraded,C,WARN,302) "ESD A Station C Photon Shutter Fail To Close Warning (302)"
    set pssFaults(gen3upgraded,C,WARN,303) "ESD A Station C Photon Shutter Fail To Fully Close Warning (303)"
    set pssFaults(gen3upgraded,C,WARN,304) "ESD A Station C Photon Shutter Fail To Open Warning (304)"
    set pssFaults(gen3upgraded,C,WARN,305) "ESD A Station C Photon Shutter Fail To Fully Open Warning (305)"
    set pssFaults(gen3upgraded,C,WARN,306) "ESD A Station C Safety Shutter Open Switch Fail Warning (306)"
    set pssFaults(gen3upgraded,C,WARN,307) "ESD A Station C Safety Shutter Fail To Close Warning (307)"
    set pssFaults(gen3upgraded,C,WARN,308) "ESD A Station C Safety Shutter Fail To Fully Close Warning (308)"
    set pssFaults(gen3upgraded,C,WARN,309) "ESD A Station C Safety Shutter Fail To Open Warning (309)"
    set pssFaults(gen3upgraded,C,WARN,310) "ESD A Station C Safety Shutter Fail To Fully Open Warning (310)"
    set pssFaults(gen3upgraded,C,WARN,311) "ESD A Station C Safety/Mono Shutter 1 Open Switch Fail Warning (311)"
    set pssFaults(gen3upgraded,C,WARN,312) "ESD A Station C Safety/Mono Shutter 1 Fail To Close Warning (312)"
    set pssFaults(gen3upgraded,C,WARN,313) "ESD A Station C Safety/Mono Shutter 1 Fail To Fully Close Warning (313)"
    set pssFaults(gen3upgraded,C,WARN,314) "ESD A Station C Safety/Mono Shutter 1 Fail To Open Warning (314)"
    set pssFaults(gen3upgraded,C,WARN,315) "ESD A Station C Safety/Mono Shutter 1 Fail To Fully Open Warning (315)"
    set pssFaults(gen3upgraded,C,WARN,316) "ESD A Station C Safety/Mono Shutter 2 Open Switch Fail Warning (316)"
    set pssFaults(gen3upgraded,C,WARN,317) "ESD A Station C Safety/Mono Shutter 2 Fail To Close Warning (317)"
    set pssFaults(gen3upgraded,C,WARN,318) "ESD A Station C Safety/Mono Shutter 2 Fail To Fully Close Warning (318)"
    set pssFaults(gen3upgraded,C,WARN,319) "ESD A Station C Safety/Mono Shutter 2 Fail To Open Warning (319)"
    set pssFaults(gen3upgraded,C,WARN,320) "ESD A Station C Safety/Mono Shutter 2 Fail To Fully Open Warning (320)"
    set pssFaults(gen3upgraded,C,WARN,331) "SCS BLSIE in Local (331)"
    set pssFaults(gen3upgraded,C,WARN,351) "ESD B Station C Photon Shutter Open Switch Fail Warning (351)"
    set pssFaults(gen3upgraded,C,WARN,352) "ESD B Station C Photon Shutter Fail To Close Warning (352)"
    set pssFaults(gen3upgraded,C,WARN,353) "ESD B Station C Photon Shutter Fail To Fully Close Warning (353)"
    set pssFaults(gen3upgraded,C,WARN,354) "ESD B Station C Photon Shutter Fail To Open Warning (354)"
    set pssFaults(gen3upgraded,C,WARN,355) "ESD B Station C Photon Shutter Fail To Fully Open Warning (355)"
    set pssFaults(gen3upgraded,C,WARN,356) "ESD B Station C Safety Shutter Open Switch Fail Warning (356)"
    set pssFaults(gen3upgraded,C,WARN,357) "ESD B Station C Safety Shutter Fail To Close Warning (357)"
    set pssFaults(gen3upgraded,C,WARN,358) "ESD B Station C Safety Shutter Fail To Fully Close Warning (358)"
    set pssFaults(gen3upgraded,C,WARN,359) "ESD B Station C Safety Shutter Fail To Open Warning (359)"
    set pssFaults(gen3upgraded,C,WARN,360) "ESD B Station C Safety Shutter Fail To Fully Open Warning (360)"
    set pssFaults(gen3upgraded,C,WARN,361) "ESD B Station C Safety/Mono Shutter 1 Open Switch Fail Warning (361)"
    set pssFaults(gen3upgraded,C,WARN,362) "ESD B Station C Safety/Mono Shutter 1 Fail To Close Warning (362)"
    set pssFaults(gen3upgraded,C,WARN,363) "ESD B Station C Safety/Mono Shutter 1 Fail To Fully Close Warning (363)"
    set pssFaults(gen3upgraded,C,WARN,364) "ESD B Station C Safety/Mono Shutter 1 Fail To Open Warning (364)"
    set pssFaults(gen3upgraded,C,WARN,365) "ESD B Station C Safety/Mono Shutter 1 Fail To Fully Open Warning (365)"
    set pssFaults(gen3upgraded,C,WARN,366) "ESD B Station C Safety/Mono Shutter 2 Open Switch Fail Warning (366)"
    set pssFaults(gen3upgraded,C,WARN,367) "ESD B Station C Safety/Mono Shutter 2 Fail To Close Warning (367)"
    set pssFaults(gen3upgraded,C,WARN,368) "ESD B Station C Safety/Mono Shutter 2 Fail To Fully Close Warning (368)"
    set pssFaults(gen3upgraded,C,WARN,369) "ESD B Station C Safety/Mono Shutter 2 Fail To Open Warning (369)"
    set pssFaults(gen3upgraded,C,WARN,370) "ESD B Station C Safety/Mono Shutter 2 Fail To Fully Open Warning (370)"
    set pssFaults(gen3upgraded,C,WARN,380) "Station C Emergency Egress Button Pressed Warning (380)"
    set pssFaults(gen3upgraded,C,WARN,381) "Station C Door 1 Emergency Egress Button Pressed Warning (381)"
    set pssFaults(gen3upgraded,C,WARN,382) "Station C Door 2 Emergency Egress Button Pressed Warning (382)"
    set pssFaults(gen3upgraded,C,WARN,383) "Station C Door 3 Emergency Egress Button Pressed Warning (383)"
    set pssFaults(gen3upgraded,C,WARN,384) "Station C Door 4 Emergency Egress Button Pressed Warning (384)"
    set pssFaults(gen3upgraded,C,WARN,385) "Station C Door 5 Emergency Egress Button Pressed Warning (385)"
    set pssFaults(gen3upgraded,C,WARN,386) "Station C Door 6 Emergency Egress Button Pressed Warning (386)"
    set pssFaults(gen3upgraded,C,WARN,387) "Station C Door 7 Emergency Egress Button Pressed Warning (387)"
    set pssFaults(gen3upgraded,C,WARN,388) "Station C Door 8 Emergency Egress Button Pressed Warning (388)"
    set pssFaults(gen3upgraded,C,WARN,400) "Station D Air Pressure Low Warning (400)"
    set pssFaults(gen3upgraded,C,WARN,401) "ESD A Station D Photon Shutter Open Switch Fail Warning (401)"
    set pssFaults(gen3upgraded,C,WARN,402) "ESD A Station D Photon Shutter Fail To Close Warning (402)"
    set pssFaults(gen3upgraded,C,WARN,403) "ESD A Station D Photon Shutter Fail To Fully Close Warning (403)"
    set pssFaults(gen3upgraded,C,WARN,404) "ESD A Station D Photon Shutter Fail To Open Warning (404)"
    set pssFaults(gen3upgraded,C,WARN,405) "ESD A Station D Photon Shutter Fail To Fully Open Warning (405)"
    set pssFaults(gen3upgraded,C,WARN,406) "ESD A Station D Safety Shutter Open Switch Fail Warning (406)"
    set pssFaults(gen3upgraded,C,WARN,407) "ESD A Station D Safety Shutter Fail To Close Warning (407)"
    set pssFaults(gen3upgraded,C,WARN,408) "ESD A Station D Safety Shutter Fail To Fully Close Warning (408)"
    set pssFaults(gen3upgraded,C,WARN,409) "ESD A Station D Safety Shutter Fail To Open Warning (409)"
    set pssFaults(gen3upgraded,C,WARN,410) "ESD A Station D Safety Shutter Fail To Fully Open Warning (410)"
    set pssFaults(gen3upgraded,C,WARN,411) "ESD A Station D Safety/Mono Shutter 1 Open Switch Fail Warning (411)"
    set pssFaults(gen3upgraded,C,WARN,412) "ESD A Station D Safety/Mono Shutter 1 Fail To Close Warning (412)"
    set pssFaults(gen3upgraded,C,WARN,413) "ESD A Station D Safety/Mono Shutter 1 Fail To Fully Close Warning (413)"
    set pssFaults(gen3upgraded,C,WARN,414) "ESD A Station D Safety/Mono Shutter 1 Fail To Open Warning (414)"
    set pssFaults(gen3upgraded,C,WARN,415) "ESD A Station D Safety/Mono Shutter 1 Fail To Fully Open Warning (415)"
    set pssFaults(gen3upgraded,C,WARN,416) "ESD A Station D Safety/Mono Shutter 2 Open Switch Fail Warning (416)"
    set pssFaults(gen3upgraded,C,WARN,417) "ESD A Station D Safety/Mono Shutter 2 Fail To Close Warning (417)"
    set pssFaults(gen3upgraded,C,WARN,418) "ESD A Station D Safety/Mono Shutter 2 Fail To Fully Close Warning (418)"
    set pssFaults(gen3upgraded,C,WARN,419) "ESD A Station D Safety/Mono Shutter 2 Fail To Open Warning (419)"
    set pssFaults(gen3upgraded,C,WARN,420) "ESD A Station D Safety/Mono Shutter 2 Fail To Fully Open Warning (420)"
    set pssFaults(gen3upgraded,C,WARN,431) "SDS BLSIE in Local (431)"
    set pssFaults(gen3upgraded,C,WARN,451) "ESD B Station D Photon Shutter Open Switch Fail Warning (451)"
    set pssFaults(gen3upgraded,C,WARN,452) "ESD B Station D Photon Shutter Fail To Close Warning (452)"
    set pssFaults(gen3upgraded,C,WARN,453) "ESD B Station D Photon Shutter Fail To Fully Close Warning (453)"
    set pssFaults(gen3upgraded,C,WARN,454) "ESD B Station D Photon Shutter Fail To Open Warning (454)"
    set pssFaults(gen3upgraded,C,WARN,455) "ESD B Station D Photon Shutter Fail To Fully Open Warning (455)"
    set pssFaults(gen3upgraded,C,WARN,456) "ESD B Station D Safety Shutter Open Switch Fail Warning (456)"
    set pssFaults(gen3upgraded,C,WARN,457) "ESD B Station D Safety Shutter Fail To Close Warning (457)"
    set pssFaults(gen3upgraded,C,WARN,458) "ESD B Station D Safety Shutter Fail To Fully Close Warning (458)"
    set pssFaults(gen3upgraded,C,WARN,459) "ESD B Station D Safety Shutter Fail To Open Warning (459)"
    set pssFaults(gen3upgraded,C,WARN,460) "ESD B Station D Safety Shutter Fail To Fully Open Warning (460)"
    set pssFaults(gen3upgraded,C,WARN,461) "ESD B Station D Safety/Mono Shutter 1 Open Switch Fail Warning (461)"
    set pssFaults(gen3upgraded,C,WARN,462) "ESD B Station D Safety/Mono Shutter 1 Fail To Close Warning (462)"
    set pssFaults(gen3upgraded,C,WARN,463) "ESD B Station D Safety/Mono Shutter 1 Fail To Fully Close Warning (463)"
    set pssFaults(gen3upgraded,C,WARN,464) "ESD B Station D Safety/Mono Shutter 1 Fail To Open Warning (464)"
    set pssFaults(gen3upgraded,C,WARN,465) "ESD B Station D Safety/Mono Shutter 1 Fail To Fully Open Warning (465)"
    set pssFaults(gen3upgraded,C,WARN,466) "ESD B Station D Safety/Mono Shutter 2 Open Switch Fail Warning (466)"
    set pssFaults(gen3upgraded,C,WARN,467) "ESD B Station D Safety/Mono Shutter 2 Fail To Close Warning (467)"
    set pssFaults(gen3upgraded,C,WARN,468) "ESD B Station D Safety/Mono Shutter 2 Fail To Fully Close Warning (468)"
    set pssFaults(gen3upgraded,C,WARN,469) "ESD B Station D Safety/Mono Shutter 2 Fail To Open Warning (469)"
    set pssFaults(gen3upgraded,C,WARN,470) "ESD B Station D Safety/Mono Shutter 2 Fail To Fully Open Warning (470)"
    set pssFaults(gen3upgraded,C,WARN,480) "Station D Emergency Egress Button Pressed Warning (480)"
    set pssFaults(gen3upgraded,C,WARN,481) "Station D Door 1 Emergency Egress Button Pressed Warning (481)"
    set pssFaults(gen3upgraded,C,WARN,482) "Station D Door 2 Emergency Egress Button Pressed Warning (482)"
    set pssFaults(gen3upgraded,C,WARN,483) "Station D Door 3 Emergency Egress Button Pressed Warning (483)"
    set pssFaults(gen3upgraded,C,WARN,484) "Station D Door 4 Emergency Egress Button Pressed Warning (484)"
    set pssFaults(gen3upgraded,C,WARN,485) "Station D Door 5 Emergency Egress Button Pressed Warning (485)"
    set pssFaults(gen3upgraded,C,WARN,486) "Station D Door 6 Emergency Egress Button Pressed Warning (486)"
    set pssFaults(gen3upgraded,C,WARN,487) "Station D Door 7 Emergency Egress Button Pressed Warning (487)"
    set pssFaults(gen3upgraded,C,WARN,488) "Station D Door 8 Emergency Egress Button Pressed Warning (488)"
    set pssFaults(gen3upgraded,C,WARN,500) "Station E Air Pressure Low Warning (500)"
    set pssFaults(gen3upgraded,C,WARN,501) "ESD A Station E Photon Shutter Open Switch Fail Warning (501)"
    set pssFaults(gen3upgraded,C,WARN,502) "ESD A Station E Photon Shutter Fail To Close Warning (502)"
    set pssFaults(gen3upgraded,C,WARN,503) "ESD A Station E Photon Shutter Fail To Fully Close Warning (503)"
    set pssFaults(gen3upgraded,C,WARN,504) "ESD A Station E Photon Shutter Fail To Open Warning (504)"
    set pssFaults(gen3upgraded,C,WARN,505) "ESD A Station E Photon Shutter Fail To Fully Open Warning (505)"
    set pssFaults(gen3upgraded,C,WARN,506) "ESD A Station E Safety Shutter Open Switch Fail Warning (506)"
    set pssFaults(gen3upgraded,C,WARN,507) "ESD A Station E Safety Shutter Fail To Close Warning (507)"
    set pssFaults(gen3upgraded,C,WARN,508) "ESD A Station E Safety Shutter Fail To Fully Close Warning (508)"
    set pssFaults(gen3upgraded,C,WARN,509) "ESD A Station E Safety Shutter Fail To Open Warning (509)"
    set pssFaults(gen3upgraded,C,WARN,510) "ESD A Station E Safety Shutter Fail To Fully Open Warning (510)"
    set pssFaults(gen3upgraded,C,WARN,511) "ESD A Station E Safety/Mono Shutter 1 Open Switch Fail Warning (511)"
    set pssFaults(gen3upgraded,C,WARN,512) "ESD A Station E Safety/Mono Shutter 1 Fail To Close Warning (512)"
    set pssFaults(gen3upgraded,C,WARN,513) "ESD A Station E Safety/Mono Shutter 1 Fail To Fully Close Warning (513)"
    set pssFaults(gen3upgraded,C,WARN,514) "ESD A Station E Safety/Mono Shutter 1 Fail To Open Warning (514)"
    set pssFaults(gen3upgraded,C,WARN,515) "ESD A Station E Safety/Mono Shutter 1 Fail To Fully Open Warning (515)"
    set pssFaults(gen3upgraded,C,WARN,516) "ESD A Station E Safety/Mono Shutter 2 Open Switch Fail Warning (516)"
    set pssFaults(gen3upgraded,C,WARN,517) "ESD A Station E Safety/Mono Shutter 2 Fail To Close Warning (517)"
    set pssFaults(gen3upgraded,C,WARN,518) "ESD A Station E Safety/Mono Shutter 2 Fail To Fully Close Warning (518)"
    set pssFaults(gen3upgraded,C,WARN,519) "ESD A Station E Safety/Mono Shutter 2 Fail To Open Warning (519)"
    set pssFaults(gen3upgraded,C,WARN,520) "ESD A Station E Safety/Mono Shutter 2 Fail To Fully Open Warning (520)"
    set pssFaults(gen3upgraded,C,WARN,531) "SES BLSIE in Local (531)"
    set pssFaults(gen3upgraded,C,WARN,551) "ESD B Station E Photon Shutter Open Switch Fail Warning (551)"
    set pssFaults(gen3upgraded,C,WARN,552) "ESD B Station E Photon Shutter Fail To Close Warning (552)"
    set pssFaults(gen3upgraded,C,WARN,553) "ESD B Station E Photon Shutter Fail To Fully Close Warning (553)"
    set pssFaults(gen3upgraded,C,WARN,554) "ESD B Station E Photon Shutter Fail To Open Warning (554)"
    set pssFaults(gen3upgraded,C,WARN,555) "ESD B Station E Photon Shutter Fail To Fully Open Warning (555)"
    set pssFaults(gen3upgraded,C,WARN,556) "ESD B Station E Safety Shutter Open Switch Fail Warning (556)"
    set pssFaults(gen3upgraded,C,WARN,557) "ESD B Station E Safety Shutter Fail To Close Warning (557)"
    set pssFaults(gen3upgraded,C,WARN,558) "ESD B Station E Safety Shutter Fail To Fully Close Warning (558)"
    set pssFaults(gen3upgraded,C,WARN,559) "ESD B Station E Safety Shutter Fail To Open Warning (559)"
    set pssFaults(gen3upgraded,C,WARN,560) "ESD B Station E Safety Shutter Fail To Fully Open Warning (560)"
    set pssFaults(gen3upgraded,C,WARN,561) "ESD B Station E Safety/Mono Shutter 1 Open Switch Fail Warning (561)"
    set pssFaults(gen3upgraded,C,WARN,562) "ESD B Station E Safety/Mono Shutter 1 Fail To Close Warning (562)"
    set pssFaults(gen3upgraded,C,WARN,563) "ESD B Station E Safety/Mono Shutter 1 Fail To Fully Close Warning (563)"
    set pssFaults(gen3upgraded,C,WARN,564) "ESD B Station E Safety/Mono Shutter 1 Fail To Open Warning (564)"
    set pssFaults(gen3upgraded,C,WARN,565) "ESD B Station E Safety/Mono Shutter 1 Fail To Fully Open Warning (565)"
    set pssFaults(gen3upgraded,C,WARN,566) "ESD B Station E Safety/Mono Shutter 2 Open Switch Fail Warning (566)"
    set pssFaults(gen3upgraded,C,WARN,567) "ESD B Station E Safety/Mono Shutter 2 Fail To Close Warning (567)"
    set pssFaults(gen3upgraded,C,WARN,568) "ESD B Station E Safety/Mono Shutter 2 Fail To Fully Close Warning (568)"
    set pssFaults(gen3upgraded,C,WARN,569) "ESD B Station E Safety/Mono Shutter 2 Fail To Open Warning (569)"
    set pssFaults(gen3upgraded,C,WARN,570) "ESD B Station E Safety/Mono Shutter 2 Fail To Fully Open Warning (570)"
    set pssFaults(gen3upgraded,C,WARN,580) "Station E Emergency Egress Button Pressed Warning (580)"
    set pssFaults(gen3upgraded,C,WARN,581) "Station E Door 1 Emergency Egress Button Pressed Warning (581)"
    set pssFaults(gen3upgraded,C,WARN,582) "Station E Door 2 Emergency Egress Button Pressed Warning (582)"
    set pssFaults(gen3upgraded,C,WARN,583) "Station E Door 3 Emergency Egress Button Pressed Warning (583)"
    set pssFaults(gen3upgraded,C,WARN,584) "Station E Door 4 Emergency Egress Button Pressed Warning (584)"
    set pssFaults(gen3upgraded,C,WARN,585) "Station E Door 5 Emergency Egress Button Pressed Warning (585)"
    set pssFaults(gen3upgraded,C,WARN,586) "Station E Door 6 Emergency Egress Button Pressed Warning (586)"
    set pssFaults(gen3upgraded,C,WARN,587) "Station E Door 7 Emergency Egress Button Pressed Warning (587)"
    set pssFaults(gen3upgraded,C,WARN,588) "Station E Door 8 Emergency Egress Button Pressed Warning (588)"
    set pssFaults(gen3upgraded,C,WARN,600) "Station F Air Pressure Low Warning (600)"
    set pssFaults(gen3upgraded,C,WARN,601) "ESD A Station F Photon Shutter Open Switch Fail Warning (601)"
    set pssFaults(gen3upgraded,C,WARN,602) "ESD A Station F Photon Shutter Fail To Close Warning (602)"
    set pssFaults(gen3upgraded,C,WARN,603) "ESD A Station F Photon Shutter Fail To Fully Close Warning (603)"
    set pssFaults(gen3upgraded,C,WARN,604) "ESD A Station F Photon Shutter Fail To Open Warning (604)"
    set pssFaults(gen3upgraded,C,WARN,605) "ESD A Station F Photon Shutter Fail To Fully Open Warning (605)"
    set pssFaults(gen3upgraded,C,WARN,606) "ESD A Station F Safety Shutter Open Switch Fail Warning (606)"
    set pssFaults(gen3upgraded,C,WARN,607) "ESD A Station F Safety Shutter Fail To Close Warning (607)"
    set pssFaults(gen3upgraded,C,WARN,608) "ESD A Station F Safety Shutter Fail To Fully Close Warning (608)"
    set pssFaults(gen3upgraded,C,WARN,609) "ESD A Station F Safety Shutter Fail To Open Warning (609)"
    set pssFaults(gen3upgraded,C,WARN,610) "ESD A Station F Safety Shutter Fail To Fully Open Warning (610)"
    set pssFaults(gen3upgraded,C,WARN,611) "ESD A Station F Safety/Mono Shutter 1 Open Switch Fail Warning (611)"
    set pssFaults(gen3upgraded,C,WARN,612) "ESD A Station F Safety/Mono Shutter 1 Fail To Close Warning (612)"
    set pssFaults(gen3upgraded,C,WARN,613) "ESD A Station F Safety/Mono Shutter 1 Fail To Fully Close Warning (613)"
    set pssFaults(gen3upgraded,C,WARN,614) "ESD A Station F Safety/Mono Shutter 1 Fail To Open Warning (614)"
    set pssFaults(gen3upgraded,C,WARN,615) "ESD A Station F Safety/Mono Shutter 1 Fail To Fully Open Warning (615)"
    set pssFaults(gen3upgraded,C,WARN,616) "ESD A Station F Safety/Mono Shutter 2 Open Switch Fail Warning (616)"
    set pssFaults(gen3upgraded,C,WARN,617) "ESD A Station F Safety/Mono Shutter 2 Fail To Close Warning (617)"
    set pssFaults(gen3upgraded,C,WARN,618) "ESD A Station F Safety/Mono Shutter 2 Fail To Fully Close Warning (618)"
    set pssFaults(gen3upgraded,C,WARN,619) "ESD A Station F Safety/Mono Shutter 2 Fail To Open Warning (619)"
    set pssFaults(gen3upgraded,C,WARN,620) "ESD A Station F Safety/Mono Shutter 2 Fail To Fully Open Warning (620)"
    set pssFaults(gen3upgraded,C,WARN,631) "SFS BLSIE in Local (631)"
    set pssFaults(gen3upgraded,C,WARN,651) "ESD B Station F Photon Shutter Open Switch Fail Warning (651)"
    set pssFaults(gen3upgraded,C,WARN,652) "ESD B Station F Photon Shutter Fail To Close Warning (652)"
    set pssFaults(gen3upgraded,C,WARN,653) "ESD B Station F Photon Shutter Fail To Fully Close Warning (653)"
    set pssFaults(gen3upgraded,C,WARN,654) "ESD B Station F Photon Shutter Fail To Open Warning (654)"
    set pssFaults(gen3upgraded,C,WARN,655) "ESD B Station F Photon Shutter Fail To Fully Open Warning (655)"
    set pssFaults(gen3upgraded,C,WARN,656) "ESD B Station F Safety Shutter Open Switch Fail Warning (656)"
    set pssFaults(gen3upgraded,C,WARN,657) "ESD B Station F Safety Shutter Fail To Close Warning (657)"
    set pssFaults(gen3upgraded,C,WARN,658) "ESD B Station F Safety Shutter Fail To Fully Close Warning (658)"
    set pssFaults(gen3upgraded,C,WARN,659) "ESD B Station F Safety Shutter Fail To Open Warning (659)"
    set pssFaults(gen3upgraded,C,WARN,660) "ESD B Station F Safety Shutter Fail To Fully Open Warning (660)"
    set pssFaults(gen3upgraded,C,WARN,661) "ESD B Station F Safety/Mono Shutter 1 Open Switch Fail Warning (661)"
    set pssFaults(gen3upgraded,C,WARN,662) "ESD B Station F Safety/Mono Shutter 1 Fail To Close Warning (662)"
    set pssFaults(gen3upgraded,C,WARN,663) "ESD B Station F Safety/Mono Shutter 1 Fail To Fully Close Warning (663)"
    set pssFaults(gen3upgraded,C,WARN,664) "ESD B Station F Safety/Mono Shutter 1 Fail To Open Warning (664)"
    set pssFaults(gen3upgraded,C,WARN,665) "ESD B Station F Safety/Mono Shutter 1 Fail To Fully Open Warning (665)"
    set pssFaults(gen3upgraded,C,WARN,666) "ESD B Station F Safety/Mono Shutter 2 Open Switch Fail Warning (666)"
    set pssFaults(gen3upgraded,C,WARN,667) "ESD B Station F Safety/Mono Shutter 2 Fail To Close Warning (667)"
    set pssFaults(gen3upgraded,C,WARN,668) "ESD B Station F Safety/Mono Shutter 2 Fail To Fully Close Warning (668)"
    set pssFaults(gen3upgraded,C,WARN,669) "ESD B Station F Safety/Mono Shutter 2 Fail To Open Warning (669)"
    set pssFaults(gen3upgraded,C,WARN,670) "ESD B Station F Safety/Mono Shutter 2 Fail To Fully Open Warning (670)"
    set pssFaults(gen3upgraded,C,WARN,680) "Station F Emergency Egress Button Pressed Warning (680)"
    set pssFaults(gen3upgraded,C,WARN,681) "Station F Door 1 Emergency Egress Button Pressed Warning (681)"
    set pssFaults(gen3upgraded,C,WARN,682) "Station F Door 2 Emergency Egress Button Pressed Warning (682)"
    set pssFaults(gen3upgraded,C,WARN,683) "Station F Door 3 Emergency Egress Button Pressed Warning (683)"
    set pssFaults(gen3upgraded,C,WARN,684) "Station F Door 4 Emergency Egress Button Pressed Warning (684)"
    set pssFaults(gen3upgraded,C,WARN,685) "Station F Door 5 Emergency Egress Button Pressed Warning (685)"
    set pssFaults(gen3upgraded,C,WARN,686) "Station F Door 6 Emergency Egress Button Pressed Warning (686)"
    set pssFaults(gen3upgraded,C,WARN,687) "Station F Door 7 Emergency Egress Button Pressed Warning (687)"
    set pssFaults(gen3upgraded,C,WARN,688) "Station F Door 8 Emergency Egress Button Pressed Warning (688)"
    set pssFaults(gen3upgraded,C,WARN,700) "Station G Air Pressure Low Warning (700)"
    set pssFaults(gen3upgraded,C,WARN,701) "ESD A Station G Photon Shutter Open Switch Fail Warning (701)"
    set pssFaults(gen3upgraded,C,WARN,702) "ESD A Station G Photon Shutter Fail To Close Warning (702)"
    set pssFaults(gen3upgraded,C,WARN,703) "ESD A Station G Photon Shutter Fail To Fully Close Warning (703)"
    set pssFaults(gen3upgraded,C,WARN,704) "ESD A Station G Photon Shutter Fail To Open Warning (704)"
    set pssFaults(gen3upgraded,C,WARN,705) "ESD A Station G Photon Shutter Fail To Fully Open Warning (705)"
    set pssFaults(gen3upgraded,C,WARN,706) "ESD A Station G Safety Shutter Open Switch Fail Warning (706)"
    set pssFaults(gen3upgraded,C,WARN,707) "ESD A Station G Safety Shutter Fail To Close Warning (707)"
    set pssFaults(gen3upgraded,C,WARN,708) "ESD A Station G Safety Shutter Fail To Fully Close Warning (708)"
    set pssFaults(gen3upgraded,C,WARN,709) "ESD A Station G Safety Shutter Fail To Open Warning (709)"
    set pssFaults(gen3upgraded,C,WARN,710) "ESD A Station G Safety Shutter Fail To Fully Open Warning (710)"
    set pssFaults(gen3upgraded,C,WARN,711) "ESD A Station G Safety/Mono Shutter 1 Open Switch Fail Warning (711)"
    set pssFaults(gen3upgraded,C,WARN,712) "ESD A Station G Safety/Mono Shutter 1 Fail To Close Warning (712)"
    set pssFaults(gen3upgraded,C,WARN,713) "ESD A Station G Safety/Mono Shutter 1 Fail To Fully Close Warning (713)"
    set pssFaults(gen3upgraded,C,WARN,714) "ESD A Station G Safety/Mono Shutter 1 Fail To Open Warning (714)"
    set pssFaults(gen3upgraded,C,WARN,715) "ESD A Station G Safety/Mono Shutter 1 Fail To Fully Open Warning (715)"
    set pssFaults(gen3upgraded,C,WARN,716) "ESD A Station G Safety/Mono Shutter 2 Open Switch Fail Warning (716)"
    set pssFaults(gen3upgraded,C,WARN,717) "ESD A Station G Safety/Mono Shutter 2 Fail To Close Warning (717)"
    set pssFaults(gen3upgraded,C,WARN,718) "ESD A Station G Safety/Mono Shutter 2 Fail To Fully Close Warning (718)"
    set pssFaults(gen3upgraded,C,WARN,719) "ESD A Station G Safety/Mono Shutter 2 Fail To Open Warning (719)"
    set pssFaults(gen3upgraded,C,WARN,720) "ESD A Station G Safety/Mono Shutter 2 Fail To Fully Open Warning (720)"
    set pssFaults(gen3upgraded,C,WARN,731) "SGS BLSIE in Local (731)"
    set pssFaults(gen3upgraded,C,WARN,751) "ESD B Station G Photon Shutter Open Switch Fail Warning (751)"
    set pssFaults(gen3upgraded,C,WARN,752) "ESD B Station G Photon Shutter Fail To Close Warning (752)"
    set pssFaults(gen3upgraded,C,WARN,753) "ESD B Station G Photon Shutter Fail To Fully Close Warning (753)"
    set pssFaults(gen3upgraded,C,WARN,754) "ESD B Station G Photon Shutter Fail To Open Warning (754)"
    set pssFaults(gen3upgraded,C,WARN,755) "ESD B Station G Photon Shutter Fail To Fully Open Warning (755)"
    set pssFaults(gen3upgraded,C,WARN,756) "ESD B Station G Safety Shutter Open Switch Fail Warning (756)"
    set pssFaults(gen3upgraded,C,WARN,757) "ESD B Station G Safety Shutter Fail To Close Warning (757)"
    set pssFaults(gen3upgraded,C,WARN,758) "ESD B Station G Safety Shutter Fail To Fully Close Warning (758)"
    set pssFaults(gen3upgraded,C,WARN,759) "ESD B Station G Safety Shutter Fail To Open Warning (759)"
    set pssFaults(gen3upgraded,C,WARN,760) "ESD B Station G Safety Shutter Fail To Fully Open Warning (760)"
    set pssFaults(gen3upgraded,C,WARN,761) "ESD B Station G Safety/Mono Shutter 1 Open Switch Fail Warning (761)"
    set pssFaults(gen3upgraded,C,WARN,762) "ESD B Station G Safety/Mono Shutter 1 Fail To Close Warning (762)"
    set pssFaults(gen3upgraded,C,WARN,763) "ESD B Station G Safety/Mono Shutter 1 Fail To Fully Close Warning (763)"
    set pssFaults(gen3upgraded,C,WARN,764) "ESD B Station G Safety/Mono Shutter 1 Fail To Open Warning (764)"
    set pssFaults(gen3upgraded,C,WARN,765) "ESD B Station G Safety/Mono Shutter 1 Fail To Fully Open Warning (765)"
    set pssFaults(gen3upgraded,C,WARN,766) "ESD B Station G Safety/Mono Shutter 2 Open Switch Fail Warning (766)"
    set pssFaults(gen3upgraded,C,WARN,767) "ESD B Station G Safety/Mono Shutter 2 Fail To Close Warning (767)"
    set pssFaults(gen3upgraded,C,WARN,768) "ESD B Station G Safety/Mono Shutter 2 Fail To Fully Close Warning (768)"
    set pssFaults(gen3upgraded,C,WARN,769) "ESD B Station G Safety/Mono Shutter 2 Fail To Open Warning (769)"
    set pssFaults(gen3upgraded,C,WARN,770) "ESD B Station G Safety/Mono Shutter 2 Fail To Fully Open Warning (770)"
    set pssFaults(gen3upgraded,C,WARN,780) "Station G Emergency Egress Button Pressed Warning (780)"
    set pssFaults(gen3upgraded,C,WARN,781) "Station G Door 1 Emergency Egress Button Pressed Warning (781)"
    set pssFaults(gen3upgraded,C,WARN,782) "Station G Door 2 Emergency Egress Button Pressed Warning (782)"
    set pssFaults(gen3upgraded,C,WARN,783) "Station G Door 3 Emergency Egress Button Pressed Warning (783)"
    set pssFaults(gen3upgraded,C,WARN,784) "Station G Door 4 Emergency Egress Button Pressed Warning (784)"
    set pssFaults(gen3upgraded,C,WARN,785) "Station G Door 5 Emergency Egress Button Pressed Warning (785)"
    set pssFaults(gen3upgraded,C,WARN,786) "Station G Door 6 Emergency Egress Button Pressed Warning (786)"
    set pssFaults(gen3upgraded,C,WARN,787) "Station G Door 7 Emergency Egress Button Pressed Warning (787)"
    set pssFaults(gen3upgraded,C,WARN,788) "Station G Door 8 Emergency Egress Button Pressed Warning (788)"
    set pssFaults(gen3upgraded,C,WARN,800) "Station H Air Pressure Low Warning (800)"
    set pssFaults(gen3upgraded,C,WARN,801) "ESD A Station H Photon Shutter Open Switch Fail Warning (801)"
    set pssFaults(gen3upgraded,C,WARN,802) "ESD A Station H Photon Shutter Fail To Close Warning (802)"
    set pssFaults(gen3upgraded,C,WARN,803) "ESD A Station H Photon Shutter Fail To Fully Close Warning (803)"
    set pssFaults(gen3upgraded,C,WARN,804) "ESD A Station H Photon Shutter Fail To Open Warning (804)"
    set pssFaults(gen3upgraded,C,WARN,805) "ESD A Station H Photon Shutter Fail To Fully Open Warning (805)"
    set pssFaults(gen3upgraded,C,WARN,806) "ESD A Station H Safety Shutter Open Switch Fail Warning (806)"
    set pssFaults(gen3upgraded,C,WARN,807) "ESD A Station H Safety Shutter Fail To Close Warning (807)"
    set pssFaults(gen3upgraded,C,WARN,808) "ESD A Station H Safety Shutter Fail To Fully Close Warning (808)"
    set pssFaults(gen3upgraded,C,WARN,809) "ESD A Station H Safety Shutter Fail To Open Warning (809)"
    set pssFaults(gen3upgraded,C,WARN,810) "ESD A Station H Safety Shutter Fail To Fully Open Warning (810)"
    set pssFaults(gen3upgraded,C,WARN,811) "ESD A Station H Safety/Mono Shutter 1 Open Switch Fail Warning (811)"
    set pssFaults(gen3upgraded,C,WARN,812) "ESD A Station H Safety/Mono Shutter 1 Fail To Close Warning (812)"
    set pssFaults(gen3upgraded,C,WARN,813) "ESD A Station H Safety/Mono Shutter 1 Fail To Fully Close Warning (813)"
    set pssFaults(gen3upgraded,C,WARN,814) "ESD A Station H Safety/Mono Shutter 1 Fail To Open Warning (814)"
    set pssFaults(gen3upgraded,C,WARN,815) "ESD A Station H Safety/Mono Shutter 1 Fail To Fully Open Warning (815)"
    set pssFaults(gen3upgraded,C,WARN,816) "ESD A Station H Safety/Mono Shutter 2 Open Switch Fail Warning (816)"
    set pssFaults(gen3upgraded,C,WARN,817) "ESD A Station H Safety/Mono Shutter 2 Fail To Close Warning (817)"
    set pssFaults(gen3upgraded,C,WARN,818) "ESD A Station H Safety/Mono Shutter 2 Fail To Fully Close Warning (818)"
    set pssFaults(gen3upgraded,C,WARN,819) "ESD A Station H Safety/Mono Shutter 2 Fail To Open Warning (819)"
    set pssFaults(gen3upgraded,C,WARN,820) "ESD A Station H Safety/Mono Shutter 2 Fail To Fully Open Warning (820)"
    set pssFaults(gen3upgraded,C,WARN,831) "SHS BLSIE in Local (831)"
    set pssFaults(gen3upgraded,C,WARN,851) "ESD B Station H Photon Shutter Open Switch Fail Warning (851)"
    set pssFaults(gen3upgraded,C,WARN,852) "ESD B Station H Photon Shutter Fail To Close Warning (852)"
    set pssFaults(gen3upgraded,C,WARN,853) "ESD B Station H Photon Shutter Fail To Fully Close Warning (853)"
    set pssFaults(gen3upgraded,C,WARN,854) "ESD B Station H Photon Shutter Fail To Open Warning (854)"
    set pssFaults(gen3upgraded,C,WARN,855) "ESD B Station H Photon Shutter Fail To Fully Open Warning (855)"
    set pssFaults(gen3upgraded,C,WARN,856) "ESD B Station H Safety Shutter Open Switch Fail Warning (856)"
    set pssFaults(gen3upgraded,C,WARN,857) "ESD B Station H Safety Shutter Fail To Close Warning (857)"
    set pssFaults(gen3upgraded,C,WARN,858) "ESD B Station H Safety Shutter Fail To Fully Close Warning (858)"
    set pssFaults(gen3upgraded,C,WARN,859) "ESD B Station H Safety Shutter Fail To Open Warning (859)"
    set pssFaults(gen3upgraded,C,WARN,860) "ESD B Station H Safety Shutter Fail To Fully Open Warning (860)"
    set pssFaults(gen3upgraded,C,WARN,861) "ESD B Station H Safety/Mono Shutter 1 Open Switch Fail Warning (861)"
    set pssFaults(gen3upgraded,C,WARN,862) "ESD B Station H Safety/Mono Shutter 1 Fail To Close Warning (862)"
    set pssFaults(gen3upgraded,C,WARN,863) "ESD B Station H Safety/Mono Shutter 1 Fail To Fully Close Warning (863)"
    set pssFaults(gen3upgraded,C,WARN,864) "ESD B Station H Safety/Mono Shutter 1 Fail To Open Warning (864)"
    set pssFaults(gen3upgraded,C,WARN,865) "ESD B Station H Safety/Mono Shutter 1 Fail To Fully Open Warning (865)"
    set pssFaults(gen3upgraded,C,WARN,866) "ESD B Station H Safety/Mono Shutter 2 Open Switch Fail Warning (866)"
    set pssFaults(gen3upgraded,C,WARN,867) "ESD B Station H Safety/Mono Shutter 2 Fail To Close Warning (867)"
    set pssFaults(gen3upgraded,C,WARN,868) "ESD B Station H Safety/Mono Shutter 2 Fail To Fully Close Warning (868)"
    set pssFaults(gen3upgraded,C,WARN,869) "ESD B Station H Safety/Mono Shutter 2 Fail To Open Warning (869)"
    set pssFaults(gen3upgraded,C,WARN,870) "ESD B Station H Safety/Mono Shutter 2 Fail To Fully Open Warning (870)"
    set pssFaults(gen3upgraded,C,WARN,880) "Station H Emergency Egress Button Pressed Warning (880)"
    set pssFaults(gen3upgraded,C,WARN,881) "Station H Door 1 Emergency Egress Button Pressed Warning (881)"
    set pssFaults(gen3upgraded,C,WARN,882) "Station H Door 2 Emergency Egress Button Pressed Warning (882)"
    set pssFaults(gen3upgraded,C,WARN,883) "Station H Door 3 Emergency Egress Button Pressed Warning (883)"
    set pssFaults(gen3upgraded,C,WARN,884) "Station H Door 4 Emergency Egress Button Pressed Warning (884)"
    set pssFaults(gen3upgraded,C,WARN,885) "Station H Door 5 Emergency Egress Button Pressed Warning (885)"
    set pssFaults(gen3upgraded,C,WARN,886) "Station H Door 6 Emergency Egress Button Pressed Warning (886)"
    set pssFaults(gen3upgraded,C,WARN,887) "Station H Door 7 Emergency Egress Button Pressed Warning (887)"
    set pssFaults(gen3upgraded,C,WARN,888) "Station H Door 8 Emergency Egress Button Pressed Warning (888)"
    set pssFaults(gen3upgraded,C,WARN,900) "Station I Air Pressure Low Warning (900)"
    set pssFaults(gen3upgraded,C,WARN,901) "ESD A Station I Photon Shutter Open Switch Fail Warning (901)"
    set pssFaults(gen3upgraded,C,WARN,902) "ESD A Station I Photon Shutter Fail To Close Warning (902)"
    set pssFaults(gen3upgraded,C,WARN,903) "ESD A Station I Photon Shutter Fail To Fully Close Warning (903)"
    set pssFaults(gen3upgraded,C,WARN,904) "ESD A Station I Photon Shutter Fail To Open Warning (904)"
    set pssFaults(gen3upgraded,C,WARN,905) "ESD A Station I Photon Shutter Fail To Fully Open Warning (905)"
    set pssFaults(gen3upgraded,C,WARN,906) "ESD A Station I Safety Shutter Open Switch Fail Warning (906)"
    set pssFaults(gen3upgraded,C,WARN,907) "ESD A Station I Safety Shutter Fail To Close Warning (907)"
    set pssFaults(gen3upgraded,C,WARN,908) "ESD A Station I Safety Shutter Fail To Fully Close Warning (908)"
    set pssFaults(gen3upgraded,C,WARN,909) "ESD A Station I Safety Shutter Fail To Open Warning (909)"
    set pssFaults(gen3upgraded,C,WARN,910) "ESD A Station I Safety Shutter Fail To Fully Open Warning (910)"
    set pssFaults(gen3upgraded,C,WARN,911) "ESD A Station I Safety/Mono Shutter 1 Open Switch Fail Warning (911)"
    set pssFaults(gen3upgraded,C,WARN,912) "ESD A Station I Safety/Mono Shutter 1 Fail To Close Warning (912)"
    set pssFaults(gen3upgraded,C,WARN,913) "ESD A Station I Safety/Mono Shutter 1 Fail To Fully Close Warning (913)"
    set pssFaults(gen3upgraded,C,WARN,914) "ESD A Station I Safety/Mono Shutter 1 Fail To Open Warning (914)"
    set pssFaults(gen3upgraded,C,WARN,915) "ESD A Station I Safety/Mono Shutter 1 Fail To Fully Open Warning (915)"
    set pssFaults(gen3upgraded,C,WARN,916) "ESD A Station I Safety/Mono Shutter 2 Open Switch Fail Warning (916)"
    set pssFaults(gen3upgraded,C,WARN,917) "ESD A Station I Safety/Mono Shutter 2 Fail To Close Warning (917)"
    set pssFaults(gen3upgraded,C,WARN,918) "ESD A Station I Safety/Mono Shutter 2 Fail To Fully Close Warning (918)"
    set pssFaults(gen3upgraded,C,WARN,919) "ESD A Station I Safety/Mono Shutter 2 Fail To Open Warning (919)"
    set pssFaults(gen3upgraded,C,WARN,920) "ESD A Station I Safety/Mono Shutter 2 Fail To Fully Open Warning (920)"
    set pssFaults(gen3upgraded,C,WARN,931) "SIS BLSIE in Local (931)"
    set pssFaults(gen3upgraded,C,WARN,951) "ESD B Station I Photon Shutter Open Switch Fail Warning (951)"
    set pssFaults(gen3upgraded,C,WARN,952) "ESD B Station I Photon Shutter Fail To Close Warning (952)"
    set pssFaults(gen3upgraded,C,WARN,953) "ESD B Station I Photon Shutter Fail To Fully Close Warning (953)"
    set pssFaults(gen3upgraded,C,WARN,954) "ESD B Station I Photon Shutter Fail To Open Warning (954)"
    set pssFaults(gen3upgraded,C,WARN,955) "ESD B Station I Photon Shutter Fail To Fully Open Warning (955)"
    set pssFaults(gen3upgraded,C,WARN,956) "ESD B Station I Safety Shutter Open Switch Fail Warning (956)"
    set pssFaults(gen3upgraded,C,WARN,957) "ESD B Station I Safety Shutter Fail To Close Warning (957)"
    set pssFaults(gen3upgraded,C,WARN,958) "ESD B Station I Safety Shutter Fail To Fully Close Warning (958)"
    set pssFaults(gen3upgraded,C,WARN,959) "ESD B Station I Safety Shutter Fail To Open Warning (959)"
    set pssFaults(gen3upgraded,C,WARN,960) "ESD B Station I Safety Shutter Fail To Fully Open Warning (960)"
    set pssFaults(gen3upgraded,C,WARN,961) "ESD B Station I Safety/Mono Shutter 1 Open Switch Fail Warning (961)"
    set pssFaults(gen3upgraded,C,WARN,962) "ESD B Station I Safety/Mono Shutter 1 Fail To Close Warning (962)"
    set pssFaults(gen3upgraded,C,WARN,963) "ESD B Station I Safety/Mono Shutter 1 Fail To Fully Close Warning (963)"
    set pssFaults(gen3upgraded,C,WARN,964) "ESD B Station I Safety/Mono Shutter 1 Fail To Open Warning (964)"
    set pssFaults(gen3upgraded,C,WARN,965) "ESD B Station I Safety/Mono Shutter 1 Fail To Fully Open Warning (965)"
    set pssFaults(gen3upgraded,C,WARN,966) "ESD B Station I Safety/Mono Shutter 2 Open Switch Fail Warning (966)"
    set pssFaults(gen3upgraded,C,WARN,967) "ESD B Station I Safety/Mono Shutter 2 Fail To Close Warning (967)"
    set pssFaults(gen3upgraded,C,WARN,968) "ESD B Station I Safety/Mono Shutter 2 Fail To Fully Close Warning (968)"
    set pssFaults(gen3upgraded,C,WARN,969) "ESD B Station I Safety/Mono Shutter 2 Fail To Open Warning (969)"
    set pssFaults(gen3upgraded,C,WARN,970) "ESD B Station I Safety/Mono Shutter 2 Fail To Fully Open Warning (970)"
    set pssFaults(gen3upgraded,C,WARN,980) "Station I Emergency Egress Button Pressed Warning (980)"
    set pssFaults(gen3upgraded,C,WARN,981) "Station I Door 1 Emergency Egress Button Pressed Warning (981)"
    set pssFaults(gen3upgraded,C,WARN,982) "Station I Door 2 Emergency Egress Button Pressed Warning (982)"
    set pssFaults(gen3upgraded,C,WARN,983) "Station I Door 3 Emergency Egress Button Pressed Warning (983)"
    set pssFaults(gen3upgraded,C,WARN,984) "Station I Door 4 Emergency Egress Button Pressed Warning (984)"
    set pssFaults(gen3upgraded,C,WARN,985) "Station I Door 5 Emergency Egress Button Pressed Warning (985)"
    set pssFaults(gen3upgraded,C,WARN,986) "Station I Door 6 Emergency Egress Button Pressed Warning (986)"
    set pssFaults(gen3upgraded,C,WARN,987) "Station I Door 7 Emergency Egress Button Pressed Warning (987)"
    set pssFaults(gen3upgraded,C,WARN,988) "Station I Door 8 Emergency Egress Button Pressed Warning (988)"
    set pssFaults(gen3upgraded,C,WARN,1000) "Station J Air Pressure Low Warning (1000)"
    set pssFaults(gen3upgraded,C,WARN,1001) "ESD A Station J Photon Shutter Open Switch Fail Warning (1001)"
    set pssFaults(gen3upgraded,C,WARN,1002) "ESD A Station J Photon Shutter Fail To Close Warning (1002)"
    set pssFaults(gen3upgraded,C,WARN,1003) "ESD A Station J Photon Shutter Fail To Fully Close Warning (1003)"
    set pssFaults(gen3upgraded,C,WARN,1004) "ESD A Station J Photon Shutter Fail To Open Warning (1004)"
    set pssFaults(gen3upgraded,C,WARN,1005) "ESD A Station J Photon Shutter Fail To Fully Open Warning (1005)"
    set pssFaults(gen3upgraded,C,WARN,1006) "ESD A Station J Safety Shutter Open Switch Fail Warning (1006)"
    set pssFaults(gen3upgraded,C,WARN,1007) "ESD A Station J Safety Shutter Fail To Close Warning (1007)"
    set pssFaults(gen3upgraded,C,WARN,1008) "ESD A Station J Safety Shutter Fail To Fully Close Warning (1008)"
    set pssFaults(gen3upgraded,C,WARN,1009) "ESD A Station J Safety Shutter Fail To Open Warning (1009)"
    set pssFaults(gen3upgraded,C,WARN,1010) "ESD A Station J Safety Shutter Fail To Fully Open Warning (1010)"
    set pssFaults(gen3upgraded,C,WARN,1011) "ESD A Station J Safety/Mono Shutter 1 Open Switch Fail Warning (1011)"
    set pssFaults(gen3upgraded,C,WARN,1012) "ESD A Station J Safety/Mono Shutter 1 Fail To Close Warning (1012)"
    set pssFaults(gen3upgraded,C,WARN,1013) "ESD A Station J Safety/Mono Shutter 1 Fail To Fully Close Warning (1013)"
    set pssFaults(gen3upgraded,C,WARN,1014) "ESD A Station J Safety/Mono Shutter 1 Fail To Open Warning (1014)"
    set pssFaults(gen3upgraded,C,WARN,1015) "ESD A Station J Safety/Mono Shutter 1 Fail To Fully Open Warning (1015)"
    set pssFaults(gen3upgraded,C,WARN,1016) "ESD A Station J Safety/Mono Shutter 2 Open Switch Fail Warning (1016)"
    set pssFaults(gen3upgraded,C,WARN,1017) "ESD A Station J Safety/Mono Shutter 2 Fail To Close Warning (1017)"
    set pssFaults(gen3upgraded,C,WARN,1018) "ESD A Station J Safety/Mono Shutter 2 Fail To Fully Close Warning (1018)"
    set pssFaults(gen3upgraded,C,WARN,1019) "ESD A Station J Safety/Mono Shutter 2 Fail To Open Warning (1019)"
    set pssFaults(gen3upgraded,C,WARN,1020) "ESD A Station J Safety/Mono Shutter 2 Fail To Fully Open Warning (1020)"
    set pssFaults(gen3upgraded,C,WARN,1031) "SJS BLSIE in Local (1031)"
    set pssFaults(gen3upgraded,C,WARN,1051) "ESD B Station J Photon Shutter Open Switch Fail Warning (1051)"
    set pssFaults(gen3upgraded,C,WARN,1052) "ESD B Station J Photon Shutter Fail To Close Warning (1052)"
    set pssFaults(gen3upgraded,C,WARN,1053) "ESD B Station J Photon Shutter Fail To Fully Close Warning (1053)"
    set pssFaults(gen3upgraded,C,WARN,1054) "ESD B Station J Photon Shutter Fail To Open Warning (1054)"
    set pssFaults(gen3upgraded,C,WARN,1055) "ESD B Station J Photon Shutter Fail To Fully Open Warning (1055)"
    set pssFaults(gen3upgraded,C,WARN,1056) "ESD B Station J Safety Shutter Open Switch Fail Warning (1056)"
    set pssFaults(gen3upgraded,C,WARN,1057) "ESD B Station J Safety Shutter Fail To Close Warning (1057)"
    set pssFaults(gen3upgraded,C,WARN,1058) "ESD B Station J Safety Shutter Fail To Fully Close Warning (1058)"
    set pssFaults(gen3upgraded,C,WARN,1059) "ESD B Station J Safety Shutter Fail To Open Warning (1059)"
    set pssFaults(gen3upgraded,C,WARN,1060) "ESD B Station J Safety Shutter Fail To Fully Open Warning (1060)"
    set pssFaults(gen3upgraded,C,WARN,1061) "ESD B Station J Safety/Mono Shutter 1 Open Switch Fail Warning (1061)"
    set pssFaults(gen3upgraded,C,WARN,1062) "ESD B Station J Safety/Mono Shutter 1 Fail To Close Warning (1062)"
    set pssFaults(gen3upgraded,C,WARN,1063) "ESD B Station J Safety/Mono Shutter 1 Fail To Fully Close Warning (1063)"
    set pssFaults(gen3upgraded,C,WARN,1064) "ESD B Station J Safety/Mono Shutter 1 Fail To Open Warning (1064)"
    set pssFaults(gen3upgraded,C,WARN,1065) "ESD B Station J Safety/Mono Shutter 1 Fail To Fully Open Warning (1065)"
    set pssFaults(gen3upgraded,C,WARN,1066) "ESD B Station J Safety/Mono Shutter 2 Open Switch Fail Warning (1066)"
    set pssFaults(gen3upgraded,C,WARN,1067) "ESD B Station J Safety/Mono Shutter 2 Fail To Close Warning (1067)"
    set pssFaults(gen3upgraded,C,WARN,1068) "ESD B Station J Safety/Mono Shutter 2 Fail To Fully Close Warning (1068)"
    set pssFaults(gen3upgraded,C,WARN,1069) "ESD B Station J Safety/Mono Shutter 2 Fail To Open Warning (1069)"
    set pssFaults(gen3upgraded,C,WARN,1070) "ESD B Station J Safety/Mono Shutter 2 Fail To Fully Open Warning (1070)"
    set pssFaults(gen3upgraded,C,WARN,1080) "Station J Emergency Egress Button Pressed Warning (1080)"
    set pssFaults(gen3upgraded,C,WARN,1081) "Station J Door 1 Emergency Egress Button Pressed Warning (1081)"
    set pssFaults(gen3upgraded,C,WARN,1082) "Station J Door 2 Emergency Egress Button Pressed Warning (1082)"
    set pssFaults(gen3upgraded,C,WARN,1083) "Station J Door 3 Emergency Egress Button Pressed Warning (1083)"
    set pssFaults(gen3upgraded,C,WARN,1084) "Station J Door 4 Emergency Egress Button Pressed Warning (1084)"
    set pssFaults(gen3upgraded,C,WARN,1085) "Station J Door 5 Emergency Egress Button Pressed Warning (1085)"
    set pssFaults(gen3upgraded,C,WARN,1086) "Station J Door 6 Emergency Egress Button Pressed Warning (1086)"
    set pssFaults(gen3upgraded,C,WARN,1087) "Station J Door 7 Emergency Egress Button Pressed Warning (1087)"
    set pssFaults(gen3upgraded,C,WARN,1088) "Station J Door 8 Emergency Egress Button Pressed Warning (1088)"
    set pssFaults(gen3upgraded,C,WARN,1100) "Station K Air Pressure Low Warning (1100)"
    set pssFaults(gen3upgraded,C,WARN,1101) "ESD A Station K Photon Shutter Open Switch Fail Warning (1101)"
    set pssFaults(gen3upgraded,C,WARN,1102) "ESD A Station K Photon Shutter Fail To Close Warning (1102)"
    set pssFaults(gen3upgraded,C,WARN,1103) "ESD A Station K Photon Shutter Fail To Fully Close Warning (1103)"
    set pssFaults(gen3upgraded,C,WARN,1104) "ESD A Station K Photon Shutter Fail To Open Warning (1104)"
    set pssFaults(gen3upgraded,C,WARN,1105) "ESD A Station K Photon Shutter Fail To Fully Open Warning (1105)"
    set pssFaults(gen3upgraded,C,WARN,1106) "ESD A Station K Safety Shutter Open Switch Fail Warning (1106)"
    set pssFaults(gen3upgraded,C,WARN,1107) "ESD A Station K Safety Shutter Fail To Close Warning (1107)"
    set pssFaults(gen3upgraded,C,WARN,1108) "ESD A Station K Safety Shutter Fail To Fully Close Warning (1108)"
    set pssFaults(gen3upgraded,C,WARN,1109) "ESD A Station K Safety Shutter Fail To Open Warning (1109)"
    set pssFaults(gen3upgraded,C,WARN,1110) "ESD A Station K Safety Shutter Fail To Fully Open Warning (1110)"
    set pssFaults(gen3upgraded,C,WARN,1111) "ESD A Station K Safety/Mono Shutter 1 Open Switch Fail Warning (1111)"
    set pssFaults(gen3upgraded,C,WARN,1112) "ESD A Station K Safety/Mono Shutter 1 Fail To Close Warning (1112)"
    set pssFaults(gen3upgraded,C,WARN,1113) "ESD A Station K Safety/Mono Shutter 1 Fail To Fully Close Warning (1113)"
    set pssFaults(gen3upgraded,C,WARN,1114) "ESD A Station K Safety/Mono Shutter 1 Fail To Open Warning (1114)"
    set pssFaults(gen3upgraded,C,WARN,1115) "ESD A Station K Safety/Mono Shutter 1 Fail To Fully Open Warning (1115)"
    set pssFaults(gen3upgraded,C,WARN,1116) "ESD A Station K Safety/Mono Shutter 2 Open Switch Fail Warning (1116)"
    set pssFaults(gen3upgraded,C,WARN,1117) "ESD A Station K Safety/Mono Shutter 2 Fail To Close Warning (1117)"
    set pssFaults(gen3upgraded,C,WARN,1118) "ESD A Station K Safety/Mono Shutter 2 Fail To Fully Close Warning (1118)"
    set pssFaults(gen3upgraded,C,WARN,1119) "ESD A Station K Safety/Mono Shutter 2 Fail To Open Warning (1119)"
    set pssFaults(gen3upgraded,C,WARN,1120) "ESD A Station K Safety/Mono Shutter 2 Fail To Fully Open Warning (1120)"
    set pssFaults(gen3upgraded,C,WARN,1131) "SKS BLSIE in Local (1131)"
    set pssFaults(gen3upgraded,C,WARN,1151) "ESD B Station K Photon Shutter Open Switch Fail Warning (1151)"
    set pssFaults(gen3upgraded,C,WARN,1152) "ESD B Station K Photon Shutter Fail To Close Warning (1152)"
    set pssFaults(gen3upgraded,C,WARN,1153) "ESD B Station K Photon Shutter Fail To Fully Close Warning (1153)"
    set pssFaults(gen3upgraded,C,WARN,1154) "ESD B Station K Photon Shutter Fail To Open Warning (1154)"
    set pssFaults(gen3upgraded,C,WARN,1155) "ESD B Station K Photon Shutter Fail To Fully Open Warning (1155)"
    set pssFaults(gen3upgraded,C,WARN,1156) "ESD B Station K Safety Shutter Open Switch Fail Warning (1156)"
    set pssFaults(gen3upgraded,C,WARN,1157) "ESD B Station K Safety Shutter Fail To Close Warning (1157)"
    set pssFaults(gen3upgraded,C,WARN,1158) "ESD B Station K Safety Shutter Fail To Fully Close Warning (1158)"
    set pssFaults(gen3upgraded,C,WARN,1159) "ESD B Station K Safety Shutter Fail To Open Warning (1159)"
    set pssFaults(gen3upgraded,C,WARN,1160) "ESD B Station K Safety Shutter Fail To Fully Open Warning (1160)"
    set pssFaults(gen3upgraded,C,WARN,1161) "ESD B Station K Safety/Mono Shutter 1 Open Switch Fail Warning (1161)"
    set pssFaults(gen3upgraded,C,WARN,1162) "ESD B Station K Safety/Mono Shutter 1 Fail To Close Warning (1162)"
    set pssFaults(gen3upgraded,C,WARN,1163) "ESD B Station K Safety/Mono Shutter 1 Fail To Fully Close Warning (1163)"
    set pssFaults(gen3upgraded,C,WARN,1164) "ESD B Station K Safety/Mono Shutter 1 Fail To Open Warning (1164)"
    set pssFaults(gen3upgraded,C,WARN,1165) "ESD B Station K Safety/Mono Shutter 1 Fail To Fully Open Warning (1165)"
    set pssFaults(gen3upgraded,C,WARN,1166) "ESD B Station K Safety/Mono Shutter 2 Open Switch Fail Warning (1166)"
    set pssFaults(gen3upgraded,C,WARN,1167) "ESD B Station K Safety/Mono Shutter 2 Fail To Close Warning (1167)"
    set pssFaults(gen3upgraded,C,WARN,1168) "ESD B Station K Safety/Mono Shutter 2 Fail To Fully Close Warning (1168)"
    set pssFaults(gen3upgraded,C,WARN,1169) "ESD B Station K Safety/Mono Shutter 2 Fail To Open Warning (1169)"
    set pssFaults(gen3upgraded,C,WARN,1170) "ESD B Station K Safety/Mono Shutter 2 Fail To Fully Open Warning (1170)"
    set pssFaults(gen3upgraded,C,WARN,1180) "Station K Emergency Egress Button Pressed Warning (1180)"
    set pssFaults(gen3upgraded,C,WARN,1181) "Station K Door 1 Emergency Egress Button Pressed Warning (1181)"
    set pssFaults(gen3upgraded,C,WARN,1182) "Station K Door 2 Emergency Egress Button Pressed Warning (1182)"
    set pssFaults(gen3upgraded,C,WARN,1183) "Station K Door 3 Emergency Egress Button Pressed Warning (1183)"
    set pssFaults(gen3upgraded,C,WARN,1184) "Station K Door 4 Emergency Egress Button Pressed Warning (1184)"
    set pssFaults(gen3upgraded,C,WARN,1185) "Station K Door 5 Emergency Egress Button Pressed Warning (1185)"
    set pssFaults(gen3upgraded,C,WARN,1186) "Station K Door 6 Emergency Egress Button Pressed Warning (1186)"
    set pssFaults(gen3upgraded,C,WARN,1187) "Station K Door 7 Emergency Egress Button Pressed Warning (1187)"
    set pssFaults(gen3upgraded,C,WARN,1188) "Station K Door 8 Emergency Egress Button Pressed Warning (1188)"

}

set sectors(Gen1Upgraded) "01BM 01ID 02BM 02ID 03ID 05BM 05ID 06BM 06ID 07BM 07ID 08BM 09BM 10BM 10ID 11ID 12BM 12ID 13BM 13ID 14BM 14ID 16ID 17BM 17ID 18ID 19BM 20BM 23ID 24ID 32ID 33BM 33ID 35BM"
set sectors(Gen3Upgraded) "04ID 11BM 21ID 23BM 26ID 27ID 29ID 30ID 35ID"
set sectors(Gen4Upgraded) "08ID 09ID 15ID 16BM 19ID 20ID 22ID 25ID 28ID 31ID 34ID"
set sectors(Gen4Upgraded) "08ID 09ID 15ID 16BM 19ID 20ID 22ID 25ID      31ID"


set sectors(FEEPS) "01BM 01ID 02BM 02ID 03ID 04ID 05BM 05ID 06BM 06ID 07BM 07ID 08BM 08ID 09BM 09ID 10BM 10ID 11BM 11ID 12BM 12ID 13BM 13ID 14BM 14ID 15ID 16BM 16ID 17BM 17ID 18ID 19BM 19ID 20BM 20ID 21ID 22ID 23BM 23ID 24ID 25ID 26ID 27ID 28ID 29ID 30ID 31ID 32ID 33BM 33ID 34ID 35BM 35ID"

set acisElements "LU LP BOO RF SR"

if {[catch {exec cavget -list=S:ActualMode -num -printErrors} srmode]} {
    set srmode 0
}

proc ConnectToACIS {args} {
    global acisElements ACISemailCount srmode
    foreach element $acisElements {
        set ACISemailCount($element) ""
        set break 0
        foreach chain "ACIS" {
            if {$element == "SR"} {
                set categories "AaTrip CaTrip Inhibit Warn InputFlt"
            } elseif {$element == "LP"} {
                set categories "AaTrip AaTripIts CaTrip Inhibit Warn WarnIts InputFlt InputFltIts OutputFlt"
            } elseif {$element == "RF"} {
                set categories "AaTrip AaTripRfTs CaTrip Inhibit Warn WarnRfTs InputFlt InputFltRfTs OutputFlt"
            } else {
                set categories "AaTrip CaTrip Inhibit Warn InputFlt OutputFlt"
            }
            foreach category $categories {
                set controlNames ""
                foreach type "Number Year Month Day Hour Minute Second Desc" {
                    foreach num "01 02 03 04 05 06 07 08 09 10 11 12 13 14 15" {
                        lappend controlNames ${element}-${chain}:${category}:${type}${num}M
                    }
                }
                eval global $controlNames
                if {[catch {pv linkw $controlNames $controlNames 2} results]} {
                    if {$srmode} {
                        APSSendEMail -address soliday -message "PSSGlobalWatchdog failure (${element}): $results" -subject "PSSGlobalWatchdog Error"
                    }
                    puts "PSSGlobalWatchdog failure (${element}): $results"
                    #exit
                    set break 1
                } else {
                    pv mon $controlNames "ACISEventSeen $element $chain $category"
                }
                if {$break} { break }
            }
            if {$break} { break }
        }
    }
}





proc ConnectToFEEPS {args} {
    global sectors FEEPSemailCount srmode
    foreach sector $sectors(FEEPS) {
        set FEEPSemailCount($sector) ""
        set controlNames ""
        foreach num "01 02 03 04 05 06 07 08 09 10" {
            lappend controlNames S${sector}-FEEPS:Faults${num}:NumberM
            lappend controlNames S${sector}-FEEPS:Faults${num}:YearM
            lappend controlNames S${sector}-FEEPS:Faults${num}:MonthM
            lappend controlNames S${sector}-FEEPS:Faults${num}:DayM
            lappend controlNames S${sector}-FEEPS:Faults${num}:HourM
            lappend controlNames S${sector}-FEEPS:Faults${num}:MinuteM
            lappend controlNames S${sector}-FEEPS:Faults${num}:SecondM
            lappend controlNames S${sector}-FEEPS:Faults${num}:DescriptionM
        }
        eval global $controlNames
        if {[catch {pv linkw $controlNames $controlNames 2} results]} {
            if {$srmode} {
                APSSendEMail -address soliday -message "PSSGlobalWatchdog failure (${sector}): $results" -subject "PSSGlobalWatchdog Error"
            }
            puts "PSSGlobalWatchdog failure: ${sector}-FEEPS:Faults $results"
        } else {
            pv mon $controlNames "FEEPSEventSeen $sector Faults"
        }
    }
    foreach sector $sectors(FEEPS) {
        set FEEPSemailCount($sector) ""
        set controlNames ""
        foreach num "01 02 03 04 05 06 07 08 09 10" {
            lappend controlNames S${sector}-FEEPS:Trips${num}:NumberM
            lappend controlNames S${sector}-FEEPS:Trips${num}:YearM
            lappend controlNames S${sector}-FEEPS:Trips${num}:MonthM
            lappend controlNames S${sector}-FEEPS:Trips${num}:DayM
            lappend controlNames S${sector}-FEEPS:Trips${num}:HourM
            lappend controlNames S${sector}-FEEPS:Trips${num}:MinuteM
            lappend controlNames S${sector}-FEEPS:Trips${num}:SecondM
            lappend controlNames S${sector}-FEEPS:Trips${num}:DescriptionM
        }
        eval global $controlNames
        if {[catch {pv linkw $controlNames $controlNames 2} results]} {
            if {$srmode} {
                APSSendEMail -address soliday -message "PSSGlobalWatchdog failure (${sector}): $results" -subject "PSSGlobalWatchdog Error"
            }
            puts "PSSGlobalWatchdog failure: ${sector}-FEEPS:Trips $results"
        } else {
            pv mon $controlNames "FEEPSEventSeen $sector Trips"
        }
    }
    foreach sector $sectors(FEEPS) {
        set FEEPSemailCount($sector) ""
        set controlNames ""
        foreach num "01 02 03 04 05 06 07 08 09 10" {
            lappend controlNames S${sector}-FEEPS:Warn${num}:NumberM
            lappend controlNames S${sector}-FEEPS:Warn${num}:YearM
            lappend controlNames S${sector}-FEEPS:Warn${num}:MonthM
            lappend controlNames S${sector}-FEEPS:Warn${num}:DayM
            lappend controlNames S${sector}-FEEPS:Warn${num}:HourM
            lappend controlNames S${sector}-FEEPS:Warn${num}:MinuteM
            lappend controlNames S${sector}-FEEPS:Warn${num}:SecondM
            lappend controlNames S${sector}-FEEPS:Warn${num}:DescriptionM
        }
        eval global $controlNames
        if {[catch {pv linkw $controlNames $controlNames 2} results]} {
            if {$srmode} {
                APSSendEMail -address soliday -message "PSSGlobalWatchdog failure (${sector}): $results" -subject "PSSGlobalWatchdog Error"
            }
            puts "PSSGlobalWatchdog failure: ${sector}-FEEPS:Warn $results"
        } else {
            pv mon $controlNames "FEEPSEventSeen $sector Warn"
        }
    }
}

proc ConnectToGen1Upgraded {args} {
    global sectors emailCount srmode
    foreach sector $sectors(Gen1Upgraded) {
        set emailCount($sector) ""
        set break 0
        foreach chain "PA PB" {
            foreach category "FAULT TRIP WARN" {
                set controlNames ""
                foreach type "NUM YEAR MONTH DAY HOUR MINUTE SECOND FRACT_SEC" {
                    foreach num "01 02 03 04 05 06 07 08 09 10" {
                        lappend controlNames ${chain}:${sector}:${category}_${type}_${num}
                    }
                }
                eval global $controlNames
                if {[catch {pv linkw $controlNames $controlNames 2} results]} {
                    if {$srmode} {
                        APSSendEMail -address soliday -message "PSSGlobalWatchdog failure (${sector}): $results" -subject "PSSGlobalWatchdog Error"
                    }
                    puts "PSSGlobalWatchdog failure (${sector}): $results"
                    #exit
                    set break 1
                } else {
                    pv mon $controlNames "Gen1UpgradedEventSeen $sector $chain $category"
                }
                if {$break} { break }
            }
            if {$break} { break }
        }
    }
}


proc ConnectToGen3Upgraded {args} {
    global sectors srmode
    foreach sector $sectors(Gen3Upgraded) {
        set break 0
        foreach chain "PA PB" {
            foreach category "FAULT TRIP WARN" {
                set controlNames ""
                foreach type "NUM YEAR MONTH DAY HOUR MINUTE SECOND" {
                    foreach num "01 02 03 04 05 06 07 08 09 10" {
                        lappend controlNames ${chain}:${sector}:${category}_${type}_${num}
                    }
                }
                eval global $controlNames
                if {[catch {pv linkw $controlNames $controlNames 2} results]} {
                    if {$srmode} {
                        APSSendEMail -address soliday -message "PSSGlobalWatchdog failure (${sector}): $results" -subject "PSSGlobalWatchdog Error"
                    }
                    puts "PSSGlobalWatchdog failure: ${chain}:${sector}:${category}: $results"
                    #exit
                    set break 1
                } else {
                    pv mon $controlNames "Gen3UpgradedEventSeen $sector $chain $category"
                }
                if {$break} { break }
            }
            if {$break} { break }
        }
        if {$break} { continue }

        foreach chain "PC" {
            foreach category "WARN" {
                set controlNames ""
                foreach type "NUM YEAR MONTH DAY HOUR MINUTE SECOND" {
                    foreach num "01 02 03 04 05 06 07 08 09 10" {
                        lappend controlNames ${chain}:${sector}:${category}_${type}_${num}
                    }
                }
                eval global $controlNames
                if {[catch {pv linkw $controlNames $controlNames 2} results]} {
                    if {$srmode} {
                        APSSendEMail -address soliday -message "PSSGlobalWatchdog failure (${sector}): $results" -subject "PSSGlobalWatchdog Error"
                    }
                    puts "PSSGlobalWatchdog failure: ${chain}:${sector}:${category}: $results"
                    #exit
                    set break 1
                } else {
                    pv mon $controlNames "Gen3UpgradedEventSeen $sector $chain $category"
                }
                if {$break} { break }
            }
            if {$break} { break }
        }
    }
}

proc ConnectToGen4Upgraded {args} {
    global sectors srmode
    foreach sector $sectors(Gen4Upgraded) {
        set break 0
        foreach chain "PSS" {
            foreach category "Faults Trips Warn" {
                set controlNames ""
                foreach type "Number Year Month Day Hour Minute Second Description" {
                    foreach num "01 02 03 04 05 06 07 08 09 10" {
                        lappend controlNames S${sector}-${chain}:${category}${num}:${type}M
                    }
                }
                eval global $controlNames
                if {[catch {pv linkw $controlNames $controlNames 2} results]} {
                    if {$srmode} {
                        APSSendEMail -address soliday -message "PSSGlobalWatchdog failure (${sector}): $results" -subject "PSSGlobalWatchdog Error"
                    }
                    puts "PSSGlobalWatchdog failure: S${sector}-${chain}:${category} $results"
                    set break 1
                } else {
                    pv mon $controlNames "Gen4UpgradedEventSeen $sector $chain $category"
                }
                if {$break} { break }
            }
            if {$break} { break }
        }
        if {$break} { continue }
    }
    foreach sector $sectors(Gen4Upgraded) {
        set break 0
        foreach chain "PSS" {
            foreach category "IOFaults" {
                set controlNames ""
                foreach type "Code Year Month Day Hour Minute Second Description" {
                    foreach num "01 02 03 04 05 06 07 08 09 10" {
                        lappend controlNames S${sector}-${chain}:${category}${num}:${type}M
                    }
                }
                eval global $controlNames
                if {[catch {pv linkw $controlNames $controlNames 2} results]} {
                    if {$srmode} {
                        APSSendEMail -address soliday -message "PSSGlobalWatchdog failure (${sector}): $results" -subject "PSSGlobalWatchdog Error"
                    }
                    puts "PSSGlobalWatchdog failure: S${sector}-${chain}:${category} $results"
                    set break 1
                } else {
                    pv mon $controlNames "Gen4UpgradedEventSeen $sector $chain $category"
                }
                if {$break} { break }
            }
            if {$break} { break }
        }
        if {$break} { continue }
    }
}

proc ACISEventSeen {element chain category} {
    global ACISEventVar
    if {![info exists ACISEventVar(${chain}:${element}:${category})]} {
        set ACISEventVar(${chain}:${element}:${category}) 0
    }
    if {$ACISEventVar(${chain}:${element}:${category}) == 0} {
        set ACISEventVar(${chain}:${element}:${category}) 1
        after 10000 ACISEvent $element $chain $category
    }
}

proc FEEPSEventSeen {sector category} {
    global FEEPSEventVar
    if {![info exists FEEPSEventVar(${sector}:${category})]} {
        set FEEPSEventVar(${sector}:${category}) 0
    }
    if {$FEEPSEventVar(${sector}:${category}) == 0} {
        set FEEPSEventVar(${sector}:${category}) 1
        after 10000 FEEPSEvent $sector $category
    }
}

proc Gen1UpgradedEventSeen {sector chain category} {
    global Gen1UpgradedEventVar
    if {![info exists Gen1UpgradedEventVar(${chain}:${sector}:${category})]} {
        set Gen1UpgradedEventVar(${chain}:${sector}:${category}) 0
    }
    if {$Gen1UpgradedEventVar(${chain}:${sector}:${category}) == 0} {
        set Gen1UpgradedEventVar(${chain}:${sector}:${category}) 1
        after 10000 Gen1UpgradedEvent $sector $chain $category
    }
}

proc Gen3UpgradedEventSeen {sector chain category} {
    global Gen3UpgradedEventVar
    if {![info exists Gen3UpgradedEventVar(${chain}:${sector}:${category})]} {
        set Gen3UpgradedEventVar(${chain}:${sector}:${category}) 0
    }
    if {$Gen3UpgradedEventVar(${chain}:${sector}:${category}) == 0} {
        set Gen3UpgradedEventVar(${chain}:${sector}:${category}) 1
        after 10000 Gen3UpgradedEvent $sector $chain $category
    }
}

proc Gen4UpgradedEventSeen {sector chain category} {
    global Gen4UpgradedEventVar
    if {![info exists Gen4UpgradedEventVar(${chain}:${sector}:${category})]} {
        set Gen4UpgradedEventVar(${chain}:${sector}:${category}) 0
    }
    if {$Gen4UpgradedEventVar(${chain}:${sector}:${category}) == 0} {
        set Gen4UpgradedEventVar(${chain}:${sector}:${category}) 1
        after 10000 Gen4UpgradedEvent $sector $chain $category
    }
}







proc ACISEvent {element chain category} {
    global ACISEventVar ACISemailCount ACISemailPause
    set ACISEventVar(${chain}:${element}:${category}) 0

    if {[catch {exec cavget -list=S:DesiredMode -num} mode]} {
        set mode 0
    }
    if {($mode != 1) && ($mode != 2) && ($mode != 4)} {
        return
    }

    #set c ${chain}:${element}:${category}
    set c ${element}-${chain}:${category}
    set controlNames ""
    foreach type "Number Year Month Day Hour Minute Second Desc" {
        foreach num "01 02 03 04 05 06 07 08 09 10 11 12 13 14 15" {
            #lappend controlNames ${c}_${type}_${num}
            lappend controlNames ${c}:${type}${num}M
        }
    }
    eval global $controlNames
    
    set lastNum 01
    set faultTime 0
    foreach num "01 02 03 04 05 06 07 08 09 10 11 12 13 14 15" {
        set time($num) [clock scan "[expr int([set ${c}:Month${num}M])]/[expr int([set ${c}:Day${num}M])]/[expr int([set ${c}:Year${num}M])] [expr int([set ${c}:Hour${num}M])]:[expr int([set ${c}:Minute${num}M])]:[expr int([set ${c}:Second${num}M])]"]
        if {$time($num) >= $faultTime} {
            set lastNum $num
            set faultTime $time($num)
        }
    }
    set faultNumber [expr int([set ${c}:Number${lastNum}M])]
    if {$faultNumber == 0} {
        return
    }
    set description [set ${c}:Desc${lastNum}M]
    set timeNow [expr [clock seconds] - 10]
    set out " $element $chain $category\n"
    append out " \#${faultNumber}: ${description}\n"
    append out " [clock format [expr int($faultTime)]]\n"
    set addresses "soliday"
    if {$faultTime < [clock seconds] - 8100} {
        foreach address $addresses {
            APSSendEMail -address $address -message "$out \nOld date on event" -subject "$element ACIS Problem. Old date on event."
        }
        return
    }
    if {([llength $ACISemailCount($element)] >= 2)} {
        if {[lindex $ACISemailCount($element) 0] > [expr [clock seconds] - 3600]} {
            set messageTail "\nPausing emails for $element"
            if {$ACISemailPause($element) == 1} {
                set sendEmail 0
            } else {
                set sendEmail 1
            }
            set ACISemailPause($element) 1
        } else {
            set messageTail ""
            set ACISemailPause($element) 0
            set sendEmail 1
        }
    } else {
        set messageTail ""
        set ACISemailPause($element) 0
        set sendEmail 1
    }

    set addresses "soliday sigroup@aps.anl.gov jedelen@anl.gov"
#    set addresses "soliday"
    if {$sendEmail} {
        foreach address $addresses {
            APSSendEMail -address $address -message "$out \nVerify before resetting $messageTail" -subject "$element ACIS Event. Please investigate."
        }
        if {([llength $ACISemailCount($element)] >= 5)} {
            set ACISemailCount($element) [lrange $ACISemailCount($element) end-3 end]
        }
        lappend ACISemailCount($element) [clock seconds]
    }

    set tmpname /home/helios/oagData/glitchLogs/ACIS/[APSTmpString]
    set filename /home/helios/oagData/glitchLogs/ACIS/ACIS-${element}-FaultsAndWarnings.sdds
    if {[catch {exec sddsmakedataset $tmpname \
                  -column=ActualTime,type=double -data=$timeNow \
                  -column=TimeDisplayed,type=double -data=$faultTime \
                  -column=Category,type=string -data=$category \
                  -column=Code,type=long -data=$faultNumber \
                  -column=Description,type=string "-data=[join [split $description ,]]"} results]} {
        APSSendEMail -address soliday -message "$results" -subject "PSSGlobalWatchdog error while writing ACIS file."
        return
    }

    if {[file exists $filename]} {
        if {[catch {exec sddscombine $filename $tmpname $tmpname.2 -merge} results]} {
            APSSendEMail -address soliday -message "$results" -subject "PSSGlobalWatchdog error while writing ACIS file."
            return
        }
        file rename -force $tmpname.2 $filename
        file delete $tmpname
    } else {
        file rename $tmpname $filename
    }
}



proc FEEPSEvent {sector category} {
    set chain FEEPS
    global FEEPSEventVar FEEPSemailCount FEEPSemailPause
    set FEEPSEventVar(${sector}:${category}) 0

    if {[catch {exec cavget -list=S:DesiredMode -num} mode]} {
        set mode 0
    }
    if {($mode != 1) && ($mode != 2) && ($mode != 4)} {
        return
    }

    set controlNames ""
    set c S${sector}-${chain}:${category}
    foreach num "01 02 03 04 05 06 07 08 09 10" {
        lappend controlNames ${c}${num}:NumberM
        lappend controlNames ${c}${num}:YearM
        lappend controlNames ${c}${num}:MonthM
        lappend controlNames ${c}${num}:DayM
        lappend controlNames ${c}${num}:HourM
        lappend controlNames ${c}${num}:MinuteM
        lappend controlNames ${c}${num}:SecondM
        lappend controlNames ${c}${num}:DescriptionM
    }
    eval global $controlNames

    set lastNum 1
    set faultTime 0
    foreach num "01 02 03 04 05 06 07 08 09 10" {
        set time($num) [clock scan "[expr int([set ${c}${num}:MonthM])]/[expr int([set ${c}${num}:DayM])]/[expr int([set ${c}${num}:YearM])] [expr int([set ${c}${num}:HourM])]:[expr int([set ${c}${num}:MinuteM])]:[expr int([set ${c}${num}:SecondM])]"]
        if {$time($num) >= $faultTime} {
            set lastNum $num
            set faultTime $time($num)
        }
    }

    set faultNumber [expr int([set ${c}${lastNum}:NumberM])]
    if {$faultNumber == 0} {
        return
    }
    if {($sector == "16BM") && ($category == "Warn") && ($faultNumber == 26)} {
        return
    }
    if {[clock seconds] < 1734711556} {
        if {($sector == "07BM") && ($category == "Warn") && ($faultNumber == 26)} {
            return
        }
    }
    set description [set ${c}${lastNum}:DescriptionM]
    set timeNow [expr [clock seconds] - 10]
    if {($sector == "02BM") && ($category == "Warn") && ([string match "*Ion*Pump*6*" $description])} {
        return
    }
    if {($sector == "02BM") && ($category == "Warn") && ([string match "*Ion*Pump*7*" $description])} {
        return
    }
    if {($sector == "05BM") && ($category == "Warn") && ([string match "*Ion*Pump*6*" $description])} {
        return
    }
    if {($sector == "07BM") && ($category == "Warn") && ([string match "*Ion*Pump*6*" $description])} {
        return
    }
    if {($sector == "08BM") && ($category == "Warn") && ([string match "*Ion*Pump*6*" $description])} {
        return
    }
    #Remove after March 25, 2025 per Claybourne White teams chat
    if {($sector == "06ID") && ($category == "Warn") && ([string match "*Ion*Pump*" $description])} {
        return
    }
    if {($sector == "06ID") && ($category == "Warn") && ($faultNumber == 25)} {
        return
    }
    if {($sector == "02BM") && ($category == "Warn") && ($faultNumber == 26)} {
        return
    }
    if {($sector == "02BM") && ($category == "Warn") && ($faultNumber == 27)} {
        return
    }
    if {($sector == "05BM") && ($category == "Warn") && ($faultNumber == 26)} {
        return
    }
    if {($sector == "07BM") && ($category == "Warn") && ($faultNumber == 26)} {
        return
    }
    if {($sector == "08BM") && ($category == "Warn") && ($faultNumber == 26)} {
        return
    }
    if {($category == "Warn") && ($faultNumber == 5)} {
        return
    }
    if {($category == "Warn") && ($faultNumber == 6)} {
        return
    }

    set out "$sector FEEPS $category \#${faultNumber}: $description \n"
    append out " [clock format [expr int($faultTime)]]\n"

    set addresses "soliday"
    if {$faultTime < [clock seconds] - 8100} {
        foreach address $addresses {
            APSSendEMail -address $address -message "$out \nOld date on event" -subject "$sector FEEPS Problem. Old date on event."
        }
        return
    }
    if {([llength $FEEPSemailCount($sector)] >= 1)} {
            #This should pause emails until we get a whole hour problem free
        if {[lindex $FEEPSemailCount($sector) end] > [expr [clock seconds] - 3600]} {
            set messageTail "\nPausing emails for $sector"
            if {$FEEPSemailPause($sector) == 1} {
                set sendEmail 0
            } else {
                set sendEmail 1
            }
            set FEEPSemailPause($sector) 1
        } else {
            set messageTail ""
            set FEEPSemailPause($sector) 0
            set sendEmail 1
        }
    } else {
        set messageTail ""
        set FEEPSemailPause($sector) 0
        set sendEmail 1
    }

    set addresses "soliday wiemer flcoord@aps.anl.gov sigroup@aps.anl.gov mom-vac@aps.anl.gov jedelen clute"
    if {([string first "FES SS2 FTC on command" $description] == -1) && \
          ([string first "BLEPS Shutter Permit" $description] == -1) && \
          ([string first "BLEPS Vacuum Permit" $description] == -1) && \
          ([string first "Ion Pump" $description] == -1) && \
          ([string first "Station # Door" $description] == -1) && \
          ([string first "Air Pressure Low" $description] == -1) && \
          ([string first "Beam Exposure" $description] == -1)} {
        append addresses " mom-me@aps.anl.gov"
    }
    if {$category != "Warn"} {
        append addresses " 0101@page.anl.gov 20101@aps.anl.gov"
    }
    #if {$category == "Warn"} {
    #    set addresses "soliday"
    #}
    if {$sendEmail} {
        foreach address $addresses {
            APSSendEMail -address $address -message "$out \nVerify before resetting $messageTail" -subject "$sector FEEPS Event. Please investigate."
        }
        if {([llength $FEEPSemailCount($sector)] >= 5)} {
            set FEEPSemailCount($sector) [lrange $FEEPSemailCount($sector) end-3 end]
        }
        lappend FEEPSemailCount($sector) [clock seconds]
    }
    set tmpname /home/helios/oagData/glitchLogs/FE-EPS/[APSTmpString]
    set filename /home/helios/oagData/glitchLogs/FE-EPS/EPS-[join [split ${sector} ":"] ""]-FaultsAndWarnings.sdds

    if {[catch {exec sddsmakedataset $tmpname \
                  -column=ActualTime,type=double -data=$timeNow \
                  -column=TimeDisplayed,type=double -data=$faultTime \
                  -column=Sector,type=string -data=[string range $sector 0 1] \
                  -column=Beamline,type=string -data=[string range $sector 3 4] \
                  -column=Category,type=string -data=$category \
                  -column=Code,type=long -data=$faultNumber \
                  -column=Description,type=string "-data=[join [split $description ,]]"} results]} {
        APSSendEMail -address soliday -message "$results" -subject "PSSGlobalWatchdog error while writing FEEPS file."
        return
    }

    if {[file exists $filename]} {
        if {[catch {exec sddscombine $filename $tmpname $tmpname.2 -merge} results]} {
            APSSendEMail -address soliday -message "$results" -subject "PSSGlobalWatchdog error while writing FEEPS file."
            return
        }
        file rename -force $tmpname.2 $filename
        file delete $tmpname
    } else {
        file rename $tmpname $filename
    }
}

proc Gen1UpgradedEvent {sector chain category} {
    global Gen1UpgradedEventVar pssFaults emailCount emailPause
    set Gen1UpgradedEventVar(${chain}:${sector}:${category}) 0

    if {[catch {exec cavget -list=S:DesiredMode -num} mode]} {
        set mode 0
    }
    if {($mode != 1) && ($mode != 2) && ($mode != 4)} {
        return
    }
    if {[string range $sector 0 1] == "35"} {
        if {[catch {exec cavget -list=RF-ACIS:${sector}:GolPermitM -num -printErrors} key]} {
            set key 0
        }
    } else {
        if {[catch {exec cavget -list=SR-ACIS:[string trimleft $sector 0]:GolPermitM -num -printErrors} key]} {
            set key 0
        }
    }
    if {$key == 0} {
        return
    }

    set c ${chain}:${sector}:${category}
    set controlNames ""
    foreach type "NUM YEAR MONTH DAY HOUR MINUTE SECOND FRACT_SEC" {
        foreach num "01 02 03 04 05 06 07 08 09 10" {
            lappend controlNames ${c}_${type}_${num}
        }
    }
    eval global $controlNames
    
    set lastNum 01
    set faultTime 0
    foreach num "01 02 03 04 05 06 07 08 09 10" {
        set time($num) [clock scan "[expr int([set ${c}_MONTH_${num}])]/[expr int([set ${c}_DAY_${num}])]/[expr int([set ${c}_YEAR_${num}])] [expr int([set ${c}_HOUR_${num}])]:[expr int([set ${c}_MINUTE_${num}])]:[expr int([set ${c}_SECOND_${num}])]"].[expr int([set ${c}_FRACT_SEC_${num}])]
        if {$time($num) >= $faultTime} {
            set lastNum $num
            set faultTime $time($num)
        }
    }
    set faultNumber [expr int([set ${c}_NUM_${lastNum}])]
    if {$faultNumber == 0} {
        return
    }
    set timeNow [expr [clock seconds] - 10]
#    set out "PSS event seen ([clock format $timeNow])\n"
#    append out "  Sector=$sector Chain=[string range $chain 1 1] Category=$category\n"
    set out " $sector Chain [string range $chain 1 1] $category\n"
    if {[info exists pssFaults(gen1upgraded,${faultNumber},${sector})]} {
#        append out "  Fault \#${faultNumber} : [set pssFaults(gen1upgraded,${faultNumber},${sector})]\n"
        append out " \#${faultNumber}: [set pssFaults(gen1upgraded,${faultNumber},${sector})]\n"
        set description [set pssFaults(gen1upgraded,${faultNumber},${sector})]
    } elseif {[info exists pssFaults(gen1upgraded,${faultNumber})]} {
#        append out "  Fault \#${faultNumber} : [set pssFaults(gen1upgraded,${faultNumber})]\n"
        append out " \#${faultNumber}: [set pssFaults(gen1upgraded,${faultNumber})]\n"
        set description [set pssFaults(gen1upgraded,${faultNumber})]
    } else {
#        append out "  Fault \#${faultNumber}\n"
        append out " \#${faultNumber}\n"
        set description ""
    }
#    append out "  Fault Time [clock format [expr int($faultTime)]]\n"
    append out " [clock format [expr int($faultTime)]]\n"
    #puts $out
    set addresses "soliday"
    if {$faultTime < [clock seconds] - 8100} {
        if {($sector == "16BM") || ($sector == "17BM")} {
            return
        }
        foreach address $addresses {
            APSSendEMail -address $address -message "$out \nOld date on event" -subject "GEN1UPGRADED $sector PSS Problem. Old date on event."
        }
        return
    }
    if {([llength $emailCount($sector)] >= 2)} {
        if {[lindex $emailCount($sector) 0] > [expr [clock seconds] - 3600]} {
            set messageTail "\nPausing emails for $sector"
            if {$emailPause($sector) == 1} {
                set sendEmail 0
            } else {
                set sendEmail 1
            }
            set emailPause($sector) 1
        } else {
            set messageTail ""
            set emailPause($sector) 0
            set sendEmail 1
        }
    } else {
        set messageTail ""
        set emailPause($sector) 0
        set sendEmail 1
    }
    if {($sector == "02BM") && ([clock seconds] < [clock scan "Dec 1 8:00:00 2021"])} {
        set sendEmail 0
    }
    if {($sector == "14ID") && ([clock seconds] < [clock scan "Nov 10 8:00:00 2021"])} {
        set sendEmail 0
    }
    if {($sector == "15ID") && ([clock seconds] < [clock scan "Nov 10 8:00:00 2021"])} {
        set sendEmail 0
    }
    if {($sector == "16ID") && ([clock seconds] < [clock scan "Aug 13 00:00:00 2024"])} {
        set sendEmail 0
    }
    if {($sector == "16ID") && ($category == "WARN")} {
        if {([info exists pssFaults(gen1upgraded,${faultNumber},${sector})])} {
            if {[lsearch -exact [set pssFaults(gen1upgraded,${faultNumber},${sector})] 3] >= 0} {
                set sendEmail 0
            }
            if {[lsearch -exact [set pssFaults(gen1upgraded,${faultNumber},${sector})] 4] >= 0} {
                set sendEmail 0
            }
            if {[lsearch -exact [set pssFaults(gen1upgraded,${faultNumber},${sector})] 5] >= 0} {
                set sendEmail 0
            }
        } elseif {([info exists pssFaults(gen1upgraded,${faultNumber})])} {
            if {[lsearch -exact [set pssFaults(gen1upgraded,${faultNumber})] 3] >= 0} {
                set sendEmail 0
            }
            if {[lsearch -exact [set pssFaults(gen1upgraded,${faultNumber})] 4] >= 0} {
                set sendEmail 0
            }
            if {[lsearch -exact [set pssFaults(gen1upgraded,${faultNumber})] 5] >= 0} {
                set sendEmail 0
            }
        }
   }
    set addresses "soliday flcoord@aps.anl.gov sigroup@aps.anl.gov mom-me@aps.anl.gov mom-vac@aps.anl.gov jedelen clute"
    if {$category != "WARN"} {
        append addresses " 0101@page.anl.gov 20101@aps.anl.gov"
    }

    #set addresses "soliday"
    if {$sendEmail} {
        foreach address $addresses {
            APSSendEMail -address $address -message "$out \nVerify before resetting $messageTail" -subject "$sector PSS Event. Please investigate."
        }
        if {([llength $emailCount($sector)] >= 5)} {
            set emailCount($sector) [lrange $emailCount($sector) end-3 end]
        }
        lappend emailCount($sector) [clock seconds]
    }

    set tmpname /home/helios/oagData/glitchLogs/FE-PSS/[APSTmpString]
    set filename /home/helios/oagData/glitchLogs/FE-PSS/PSS-${sector}-FaultsAndWarnings.sdds
    if {[catch {exec sddsmakedataset $tmpname \
                  -column=ActualTime,type=double -data=$timeNow \
                  -column=TimeDisplayed,type=double -data=$faultTime \
                  -column=Sector,type=string -data=[string range $sector 0 1] \
                  -column=Beamline,type=string -data=[string range $sector 2 3] \
                  -column=Chain,type=string -data=$chain \
                  -column=Category,type=string -data=$category \
                  -column=Code,type=long -data=$faultNumber \
                  -column=Description,type=string "-data=[join [split $description ,]]"} results]} {
        APSSendEMail -address soliday -message "$results" -subject "PSSGlobalWatchdog error while writing PSS file."
        return
    }

    if {[file exists $filename]} {
        if {[catch {exec sddscombine $filename $tmpname $tmpname.2 -merge} results]} {
            APSSendEMail -address soliday -message "$results" -subject "PSSGlobalWatchdog error while writing PSS file."
            return
        }
        file rename -force $tmpname.2 $filename
        file delete $tmpname
    } else {
        file rename $tmpname $filename
    }
}

proc Gen3UpgradedEvent {sector chain category} {
    global emailHistory
    global Gen3UpgradedEventVar pssFaults
    set Gen3UpgradedEventVar(${chain}:${sector}:${category}) 0

    if {[catch {exec cavget -list=S:DesiredMode -num} mode]} {
        set mode 0
    }
    if {($mode != 1) && ($mode != 2) && ($mode != 4)} {
        return
    }
    if {[string range $sector 0 1] == "35"} {
        if {[catch {exec cavget -list=RF-ACIS:${sector}:GolPermitM -num -printErrors} key]} {
            set key 0
        }
    } else {
        if {[catch {exec cavget -list=SR-ACIS:[string trimleft $sector 0]:GolPermitM -num -printErrors} key]} {
            set key 0
        }
    }
    if {$key == 0} {
        return
    }

    set c ${chain}:${sector}:${category}
    set controlNames ""
    foreach type "NUM YEAR MONTH DAY HOUR MINUTE SECOND" {
        foreach num "01 02 03 04 05 06 07 08 09 10" {
            lappend controlNames ${chain}:${sector}:${category}_${type}_${num}
        }
    }
    eval global $controlNames
    
    set lastNum 01
    set faultTime 0
    foreach num "01 02 03 04 05 06 07 08 09 10" {
        set time($num) [clock scan "[expr int([set ${c}_MONTH_${num}])]/[expr int([set ${c}_DAY_${num}])]/[expr int([set ${c}_YEAR_${num}])] [expr int([set ${c}_HOUR_${num}])]:[expr int([set ${c}_MINUTE_${num}])]:[expr int([set ${c}_SECOND_${num}])]"]
        if {$time($num) >= $faultTime} {
            set lastNum $num
            set faultTime $time($num)
        }
    }
    set faultNumber [expr int([set ${c}_NUM_${lastNum}])]
    if {$faultNumber == 0} {
        return
    }

    set timeNow [expr [clock seconds] - 10]
#    set out "PSS event seen ([clock format $timeNow])\n"
#    append out "  Sector=$sector Chain=[string range $chain 1 1] Category=$category\n"
    set out " $sector Chain [string range $chain 1 1] $category\n"
    if {$category == "WARN"} {
        if {$chain == "PC"} {
            set l "C"
        } else {
            set l "AB"
        }
        if {[info exists pssFaults(gen3upgraded,${l},${category},${faultNumber})]} {
#            append out "  Fault \#${faultNumber} : [set pssFaults(gen3upgraded,${l},${category},${faultNumber})]\n"
            append out " \#${faultNumber}: [set pssFaults(gen3upgraded,${l},${category},${faultNumber})]\n"
            set description [set pssFaults(gen3upgraded,${l},${category},${faultNumber})]
        } else {
#            append out "  Fault \#${faultNumber}\n"
            append out " \#${faultNumber}\n"
            set description ""
        }
    } else {
        if {[info exists pssFaults(gen3upgraded,${category},${faultNumber})]} {
#            append out "  Fault \#${faultNumber} : [set pssFaults(gen3upgraded,${category},${faultNumber})]\n"
            append out " \#${faultNumber}: [set pssFaults(gen3upgraded,${category},${faultNumber})]\n"
            set description [set pssFaults(gen3upgraded,${category},${faultNumber})]
        } else {
#            append out "  Fault \#${faultNumber}\n"
            append out " \#${faultNumber}\n"
            set description ""
        }
    }
#    append out "  Fault Time [clock format [expr int($faultTime)]]\n"
    append out " [clock format [expr int($faultTime)]]\n"
    #puts $out
    set addresses "soliday"
    if {$faultTime < [clock seconds] - 8100} {
        if {($sector == "23BM")} {
            return
        }
        foreach address $addresses {
            APSSendEMail -address $address -message "$out \nOld date on event" -subject "GEN3UPGRADED $sector PSS Problem. Old date on event."
        }
        return
    }
    
    
    if {([info exists emailHistory(${sector}${chain}${category}${faultNumber})])} {
        set timeStampList ""
        foreach timeStamp $emailHistory(${sector}${chain}${category}${faultNumber}) {
            if {$timeStamp > [expr [clock seconds] - (60 * 30)]} {
                lappend timeStampList $timeStamp
            }
        }
        if {[llength $timeStampList] < 2} {
            lappend timeStampList [clock seconds]
            set emailHistory(${sector}${chain}${category}${faultNumber}) $timeStampList
            set sendEmail [llength $timeStampList]
        } else {
            set sendEmail 0
        }
    } else {
        set emailHistory(${sector}${chain}${category}${faultNumber}) [clock seconds]
        set sendEmail 1
    }

    set addresses "soliday flcoord@aps.anl.gov sigroup@aps.anl.gov mom-me@aps.anl.gov mom-vac@aps.anl.gov jedelen clute"
    if {$category != "WARN"} {
        append addresses " 0101@page.anl.gov 20101@aps.anl.gov"
    }

#    set addresses "soliday"
    foreach address $addresses {
        if {$sendEmail == 1} {
            APSSendEMail -address $address -message "$out \nVerify before resetting" -subject "$sector PSS Event. Please investigate."
        } elseif {$sendEmail == 2} {
            APSSendEMail -address $address -message "$out \nVerify before resetting\nPausing for 30 minutes" -subject "$sector PSS Event. Please investigate."
        }
    }

    set tmpname /home/helios/oagData/glitchLogs/FE-PSS/[APSTmpString]
    set filename /home/helios/oagData/glitchLogs/FE-PSS/PSS-${sector}-FaultsAndWarnings.sdds
    if {[catch {exec sddsmakedataset $tmpname \
                  -column=ActualTime,type=double -data=$timeNow \
                  -column=TimeDisplayed,type=double -data=$faultTime \
                  -column=Sector,type=string -data=[string range $sector 0 1] \
                  -column=Beamline,type=string -data=[string range $sector 2 3] \
                  -column=Chain,type=string -data=$chain \
                  -column=Category,type=string -data=$category \
                  -column=Code,type=long -data=$faultNumber \
                  -column=Description,type=string "-data=[join [split $description ,]]"} results]} {
        APSSendEMail -address soliday -message "$results" -subject "PSSGlobalWatchdog error while writing PSS file."
        return
    }

    if {[file exists $filename]} {
        if {[catch {exec sddscombine $filename $tmpname $tmpname.2 -merge} results]} {
            APSSendEMail -address soliday -message "$results" -subject "PSSGlobalWatchdog error while writing PSS file."
            return
        }
        file rename -force $tmpname.2 $filename
        file delete $tmpname
    } else {
        file rename $tmpname $filename
    }
}

proc Gen4UpgradedEvent {sector chain category} {
    global emailHistory
    global Gen4UpgradedEventVar pssFaults
    set Gen4UpgradedEventVar(${chain}:${sector}:${category}) 0
    if {[catch {exec cavget -list=S:DesiredMode -num} mode]} {
        set mode 0
    }
    if {($mode != 1) && ($mode != 2) && ($mode != 4)} {
        return
    }
    if {[string range $sector 0 1] == "35"} {
        if {[catch {exec cavget -list=RF-ACIS:${sector}:GolPermitM -num -printErrors} key]} {
            set key 0
        }
    } else {
        if {[catch {exec cavget -list=SR-ACIS:[string trimleft $sector 0]:GolPermitM -num -printErrors} key]} {
            set key 0
        }
    }
    if {$key == 0} {
        return
    }
    
    if {($category == "IOFaults")} {
        set c S${sector}-${chain}:${category}
        set controlNames ""
        foreach type "Code Year Month Day Hour Minute Second Description" {
            foreach num "01 02 03 04 05 06 07 08 09 10" {
                lappend controlNames S${sector}-${chain}:${category}${num}:${type}M
            }
        }
        eval global $controlNames
        
        set lastNum 01
        set faultTime 0
        foreach num "01 02 03 04 05 06 07 08 09 10" {
            set time($num) [clock scan "[expr int([set ${c}${num}:MonthM])]/[expr int([set ${c}${num}:DayM])]/[expr int([set ${c}${num}:YearM])] [expr int([set ${c}${num}:HourM])]:[expr int([set ${c}${num}:MinuteM])]:[expr int([set ${c}${num}:SecondM])]"]
            if {$time($num) >= $faultTime} {
                set lastNum $num
                set faultTime $time($num)
            }
        }
        set faultNumber [expr int([set ${c}${lastNum}:CodeM])]
    } else {
        set c S${sector}-${chain}:${category}
        set controlNames ""
        foreach type "Number Year Month Day Hour Minute Second Description" {
            foreach num "01 02 03 04 05 06 07 08 09 10" {
                lappend controlNames S${sector}-${chain}:${category}${num}:${type}M
           }
        }
        eval global $controlNames
        
        set lastNum 01
        set faultTime 0
        foreach num "01 02 03 04 05 06 07 08 09 10" {
            set time($num) [clock scan "[expr int([set ${c}${num}:MonthM])]/[expr int([set ${c}${num}:DayM])]/[expr int([set ${c}${num}:YearM])] [expr int([set ${c}${num}:HourM])]:[expr int([set ${c}${num}:MinuteM])]:[expr int([set ${c}${num}:SecondM])]"]
            if {$time($num) >= $faultTime} {
                set lastNum $num
                set faultTime $time($num)
            }
        }
        set faultNumber [expr int([set ${c}${lastNum}:NumberM])]
    }
    if {$faultNumber == 0} {
        return
    }
    
    set description [set ${c}${lastNum}:DescriptionM]
    set timeNow [expr [clock seconds] - 10]
    set out " $sector $category\n"
    append out " \#${faultNumber}: [set ${c}${lastNum}:DescriptionM]\n"
    append out " [clock format [expr int($faultTime)]]\n"
    
    set addresses "soliday"
    if {$faultTime < [clock seconds] - 8100} {
        foreach address $addresses {
            APSSendEMail -address $address -message "$out \nOld date on event" -subject "GEN4UPGRADED $sector PSS Problem. Old date on event."
        }
        return
    }
    
    
    if {([info exists emailHistory(${sector}${chain}${category}${faultNumber})])} {
        set timeStampList ""
        foreach timeStamp $emailHistory(${sector}${chain}${category}${faultNumber}) {
            if {$timeStamp > [expr [clock seconds] - (60 * 30)]} {
                lappend timeStampList $timeStamp
            }
        }
        if {[llength $timeStampList] < 2} {
            lappend timeStampList [clock seconds]
            set emailHistory(${sector}${chain}${category}${faultNumber}) $timeStampList
            set sendEmail [llength $timeStampList]
        } else {
            set sendEmail 0
        }
    } else {
        set emailHistory(${sector}${chain}${category}${faultNumber}) [clock seconds]
        set sendEmail 1
    }

    set addresses "soliday flcoord@aps.anl.gov sigroup@aps.anl.gov mom-me@aps.anl.gov mom-vac@aps.anl.gov jedelen clute"
    if {$category != "Warn"} {
        append addresses " 0101@page.anl.gov 20101@aps.anl.gov"
    }
    #set addresses "soliday"
    foreach address $addresses {
        if {$sendEmail == 1} {
            APSSendEMail -address $address -message "$out \nVerify before resetting" -subject "$sector PSS Event. Please investigate."
        } elseif {$sendEmail == 2} {
            APSSendEMail -address $address -message "$out \nVerify before resetting\nPausing for 30 minutes" -subject "$sector PSS Event. Please investigate."
        }
    }

    set tmpname /home/helios/oagData/glitchLogs/FE-PSS/[APSTmpString]
    set filename /home/helios/oagData/glitchLogs/FE-PSS/PSS-${sector}-FaultsAndWarnings.sdds
    if {[catch {exec sddsmakedataset $tmpname \
                  -column=ActualTime,type=double -data=$timeNow \
                  -column=TimeDisplayed,type=double -data=$faultTime \
                  -column=Sector,type=string -data=[string range $sector 0 1] \
                  -column=Beamline,type=string -data=[string range $sector 2 3] \
                  -column=Chain,type=string -data=$chain \
                  -column=Category,type=string -data=$category \
                  -column=Code,type=long -data=$faultNumber \
                  -column=Description,type=string "-data=[join [split $description ,]]"} results]} {
        APSSendEMail -address soliday -message "$results" -subject "PSSGlobalWatchdog error while writing PSS file."
        return
    }

    if {[file exists $filename]} {
        if {[catch {exec sddscombine $filename $tmpname $tmpname.2 -merge} results]} {
            APSSendEMail -address soliday -message "$results" -subject "PSSGlobalWatchdog error while writing PSS file."
            return
        }
        file rename -force $tmpname.2 $filename
        file delete $tmpname
    } else {
        file rename $tmpname $filename
    }
}


DefineReasons

pv toggleErrorMode
ConnectToFEEPS
ConnectToGen1Upgraded
ConnectToGen3Upgraded
ConnectToGen4Upgraded
ConnectToACIS
pv toggleErrorMode

if {[catch {APSRunControlInit -pv $runControlPV -description "PSSGlobalWatchdog" -timeout 30000} results]} {
    APSSendEMail -address soliday -message "PSSGlobalWatchdog failure: Unable to get runControl access: $results" -subject "PSSGlobalWatchdog Error"
    exit
}
while {1} {
    if {[clock seconds] >= $oneDay} {
        catch {APSRunControlExit}
        exit
    }
    after 15000 set timeToPing 1
    
    vwait timeToPing
    if {[catch {APSRunControlPing} results]} {
        APSSendEMail -address soliday -message "PSSGlobalWatchdog failure: Unable ping runControl: $results" -subject "PSSGlobalWatchdog Error"
        exit
    }
}
