************************************ BACK FROM THE DEAD ************** galil should restart automatically for level control These 3 programs will need to be started by hand: (/home/mcfuser/gmeigs/luke/) log_luke.com >& luke.log & (/home/mcfuser/gmeigs/luke/) monitor_luke.com call >& /dev/null & (/home/mcfuser/gmeigs/luke/) monitor_galil.com call >& /dev/null & currently 'log_luke.com' runs on graphics2; 'monitor_luke.com' & 'monitor_galil.com' run on the gateway More info on luke.log at bottom of page ********************************************************************************** Luke Dewar Control Notes ************************************************************************ The dewar which holds the crystals is called the Luke Dewar, or Luke for short. The big white 160 liter dewar which keeps Luke full is called the Supply Dewar, or Supply. Luke has 3 LN2 level sensors, Fill, Full, and OverFull; Supply has 2 LN2 level sensors, Fill and Full. A program loop is running on the galil. It checks the status of the level senors and sends out 24V signals to open Solenoid relays as needed. (The program also reads the TC Voltages 50-100 times, averages the result and multiplies by 100 to convert to degrees C.) Luke has a Fill Solenoid and a Vent Solenoid. Fill Solenoid opens to allow gas flow into Supply to build pressure to increase LN2 flow into Luke. Vent Solenoid opens to vent Supply if Luke is overFull, thus stopping LN2 flow into Luke. Normal there's a small residual pressure in Supply sufficient to keep Luke almost Full. Supply has a Fill Solenoid and a Vent Solenoid. These are opened together to allow Supply to fill with "house" LN2, while keeping Supply vented to atmosphere. If, while Supply is filling, Luke either requests a fill or a vent, both Supply Solenoids close until Luke is in Full state. Level sensors are read by a TTL card in Slot 0 (15-0) of Galil. TTL 0, 1, 2 are Luke Status, Fill Request, Overfull, respectively. TTL 4,5 Luke Supply Status, Fill Request, respectively. 24V Digital OptoOUT Signals to Relay box for Solenoids come from Slot 2 (71-64) of Galil Luke Fill is #67 This signal goes through the Relay Contol Box, directly to the 24VDC gas control Solenoid Valve. Luke OverFull pressure Relief VENT Valve is #68 to SOL 1 on the Relay Control Box Supply Fill is #69 to SOL 3 on Relay Box Supply Vent is #70 to SOL 4 on Relay Box In addition Luke Fill State can be toggled by #32, an internal Galil relay on Slot 1 (35-32). As can the Luke Vent Valve by Galil relay #33. There are 4 Thermocouples for Temperature Monitoring. These are read on Slot 3 (103-96). 96, 97, 98, 99 are TC 1,2,3,4 (Outside Top, Outside Bottom, INside top, INside Bottom. In addition, the Supply Tank Pressure is measure on #100. To find temperatures, pressure, and fill state state of luke, run: /home/mcfuser/gmeigs/luke/luke_status.com (This also checks the temperatures twice and checks that TC readings are different, in order to comfirm that that the Galil is alive.) or tail /home/mcfuser/gmeigs/luke/luke.log ***************************** All of Luke's signals (except the pressure) are available as variables in the Program running on the Galil. Here are some command lines to read these values: ### GET TTL STATUS (Luke: LKS=0=on, LKF=0=Filling, LK0=0=Overfull; Supply (inverted logic): SPS=1=ON, SPF=1=Filling) echo "MG,LKS,LKF,LKO,SPS,SPF\r\n" | sock_exchange.tcl 192.168.4.154 80 1 "\n" 1 | awk '{gsub(":",""); print int($1), int($2), int($3), int($4), int($5)}' | awk '{gsub (" ", ""); print $1}' ### GET 24V Output STATUS (1 = ON, 0 = OFF) echo "MG,LKFPWR,LKVPWR,SPFPWR,SPVPWR, ONLYLUKE\r\n" | sock_exchange.tcl 192.168.4.154 80 1 "\n" 1 | awk '{gsub(":",""); print int($1), int($2), int($3), int($4), int($5)}' | awk '{gsub (" ", ""); print $1}' ### READ PRESSURE in supply tank (this is NOT a Galil programmed variable) echo "MG@AN[100]\r\n" | sock_exchange.tcl 192.168.4.154 80 1 "\n" 1 | awk '{print ($1 + 0.0)}' | awk '{ printf " %10.2f", ( (($1-1.44) * 1.4) + 0)}' ### READ Thermo-Couples echo "MG,T1,T2,T3,T4\r\n" | sock_exchange.tcl 192.168.4.154 80 1 "\n" 1 | awk '{gsub (":","");gsub("\r","");printf "%.2f %.2f %.2f %.2f \n", $1, $2, $3, $4}' ### Close Relay to Open Luke Vent (assumes Galil Program #LUKEST is running) echo "SB 33\r\n" | sock_exchange.tcl 192.168.4.154 80 1 "\n" 1 ### Toggle Luke fill state on and off to Initiate a fill (assumes Galil Program #LUKEST is running) echo "SB 32;WT100;CB 32\r\n" | sock_exchange.tcl 192.168.4.154 80 1 "\n" 1 ### Get State of Luke's Galil Relay echo "MG@OUT[32]\r\n" | sock_exchange.tcl 192.168.4.154 80 1 "\n" 1 ### Open the SUPPLY VENT (Note: If Galil Program is running the valve will immediately close) echo "SB 70\r\n" | sock_exchange.tcl 192.168.4.154 80 1 "\n" 1 ### Open the LUKE VENT (Note: If Galil Program is running the valve will immediately close) echo "SB 68\r\n" | sock_exchange.tcl 192.168.4.154 80 1 "\n" 1 ### STOP the Galil Program "#AUTO" (Could be usefull to over-ride the default relay positions in an emergency?( echo "HX#AUTO\r\n" | sock_exchange.tcl 192.168.4.154 80 1 "\n" 1 ### START the Galil Program "#AUTO" echo "XQ#AUTO\r\n" | sock_exchange.tcl 192.168.4.154 80 1 "\n" 1 ###################################################################### # Prevent filling of Luke SUPPLY dewar by setting a Opto-Output bit echo "SB 64\r\n" | sock_exchange.tcl 192.168.4.154 80 1 "\n" 1 ###################################################################### # Allow filling of Luke SUPPLY dewar by setting a Opto-Output bit echo "CB 64\r\n" | sock_exchange.tcl 192.168.4.154 80 1 "\n" 1 ###################################################################### ************************************ BACK FROM THE DEAD ************** galil should restart automatically for level control The following 3 programs will need to be started by hand: (/home/mcfuser/gmeigs/luke/) log_luke.com >& luke.log & (/home/mcfuser/gmeigs/luke/) monitor_luke.com call >& /dev/null & (/home/mcfuser/gmeigs/luke/) monitor_galil.com call >& /dev/null & currently log_luke.com runs on graphics2; monitor_luke.com & monitor_galil.com run on the gateway ********************************************************************************** (/home/mcfuser/gmeigs/luke/) log_luke.com >& luke.log & Creates a log file Typical entry: Jul 27 16:39:19 2005 711546 0.49 01110 25.03 22.68 -101.69 -144.96 0000 Jul 27 16:39:19 2005 711546 month day time year runtime 0.49 pressure 01110 (TTL 0, 1, 2 Luke Status, Fill Request, Overfull), TTL 4,5 Luke Supply Status, Fill Request 25.03 22.68 -101.69 -144.96 TC1 TC2 TC3 TC4 (Top, Bottom; Inside high, Inside Low) 0000 24V OptoOUT Luke Fill, Luke Vent; Supply Fill, supply Vent