Pullback from Taipan 2015-02-19

This commit is contained in:
Douglas Clowes
2015-02-19 10:34:12 +11:00
parent 042119898d
commit fbdd46e258
8 changed files with 2684 additions and 1205 deletions

View File

@@ -4,9 +4,6 @@
# FastShutter is currently set on Quokka only
#::utility::mkVar FastShutter text manager FastShutter false instrument true false
# SET TO 1 TO USE THE TILT STAGE ie sample phi and chi
set use_tiltstage 0
set animal taipan
set sim_mode [SplitReply [motor_simulation]]
@@ -93,6 +90,75 @@ set move_count 100
############################
#
# CHOOSE HERE for sample stage configuration
##########################################
# Set axis_config as follows to use different axis configurations
# 0: normal stage configuration
# 1: Oxford magnet sample stick
set axis_config 0
if { [ info exists ::config_dict ] } {
if { [ dict exists $::config_dict sample_stage implementation ] } {
set implementation [ dict get $::config_dict sample_stage implementation ]
if {$implementation == "normal_sample_stage"} {
set axis_config 0
} elseif {$implementation == "12tmagnet_sample_insert"} {
set axis_config 1
} elseif {$implementation == "eulerian_cradle"} {
set axis_config 2
} else {
set axis_config 0
}
}
if { [ dict exists $::config_dict m2s2 implementation ] } {
set implementation [ dict get $::config_dict m2s2 implementation ]
if {$implementation == "normal_m2s2"} {
set m2_speed 0.4
set m2_accel 0.04
set m2_decel 0.04
set s2_speed 0.8
set s2_accel 0.2
set s2_decel 0.2
} elseif {$implementation == "extended_m2s2"} {
set m2_speed 0.1
set m2_accel 0.025
set m2_decel 0.025
set s2_speed 0.4
set s2_accel 0.1
set s2_decel 0.1
} else {
set m2_speed 0.4
set m2_accel 0.04
set m2_decel 0.04
set s2_speed 0.8
set s2_accel 0.2
set s2_decel 0.2
}
}
}
switch $axis_config {
0 {
set use_s1_stage "true"
set tilt_motor_driver_type $motor_driver_type
fileeval $cfPath(motors)/tilt_configuration.tcl
}
1 {
set magmot s1
set magmot_aq "mc2"
set magmot_axis "A"
set use_s1_stage "false"
set tilt_motor_driver_type asim
fileeval $cfPath(motors)/tilt_configuration.tcl
fileeval $cfPath(motors)/magnet_configuration.tcl
}
2 {
set use_s1_stage "true"
fileeval $cfPath(motors)/euler_configuration.tcl
}
}
# Dummy translation motor, useful for testing scans
Motor dummy_motor asim [params \
@@ -138,36 +204,6 @@ dummy_s1 softupperlim 180
dummy_s1 precision 0.02
dummy_s1 home 0
if { [ info exists ::config_dict ] && [ dict get $::config_dict s1_sample_insert enabled ] } {
set samp_stage_name "s1ss"
set tilt_motor_driver_type asim
Motor s1 $motor_driver_type [params \
asyncqueue mc2\
host mc2-taipan\
port pmc2-taipan\
axis A\
units degrees\
hardlowerlim -1440\
hardupperlim 1440\
maxSpeed 1\
maxAccel 1\
maxDecel 1\
stepsPerX [expr 67.0 * 25000 / 360]\
absEnc 1\
absEncHome 31275743\
cntsPerX [expr 67.0 * 8192 / 360]]
s1 part sample
s1 long_name s1
s1 softlowerlim -180
s1 softupperlim 180
s1 home 0
} else {
set samp_stage_name "s1"
set tilt_motor_driver_type $motor_driver_type
}
#if $use_tiltstage {
# mc1: Monochromator crystal selection rotation/Tilt
Motor mtilt $motor_driver_type [params \
asyncqueue mc1\
@@ -182,16 +218,14 @@ Motor mtilt $motor_driver_type [params \
maxDecel 1\
stepsPerX 25000\
absEnc 1\
absEncHome 79650\
absEncHome 27115\
cntsPerX 4096]
mtilt part crystal
mtilt long_name mtilt
mtilt softlowerlim -5
mtilt softupperlim 5
mtilt home 0
#}
set atest mtilt
# mc1: Monochromator Linear (Translate)
Motor mtrans $motor_driver_type [params \
@@ -207,7 +241,7 @@ Motor mtrans $motor_driver_type [params \
maxDecel 1\
stepsPerX 25000\
absEnc 1\
absEncHome 469388\
absEncHome 859242\
cntsPerX 4096]
mtrans part crystal
mtrans long_name mtrans
@@ -249,9 +283,9 @@ m2 motOffDelay 0
m2 backlash_offset -0.5
m2 creep_offset 0.1
m2 creep_precision 0.0
m2 speed 0.4
m2 accel 0.04
m2 decel 0.04
m2 speed $m2_speed
m2 accel $m2_accel
m2 decel $m2_decel
# mc1: Detector Rotate
Motor a2 $motor_driver_type [params \
@@ -291,120 +325,31 @@ a2 decel 0.2
############################
#
# mc2: Sample Tilt 1
Motor sgu $tilt_motor_driver_type [params \
asyncqueue mc2\
host mc2-taipan\
port pmc2-taipan\
axis A\
units degrees\
hardlowerlim -13\
hardupperlim 16.5\
maxSpeed 2\
maxAccel 1\
maxDecel 1\
stepsPerX 25000\
absEnc 1\
absEncHome 7745478\
cntsPerX 8192]
sgu part sample
sgu long_name sgu
sgu softlowerlim -13
sgu softupperlim 16.5
sgu home 0
sgu backlash_offset -0.2
# mc2: Sample Tilt 2
Motor sgl $tilt_motor_driver_type [params \
asyncqueue mc2\
host mc2-taipan\
port pmc2-taipan\
axis B\
units degrees\
hardlowerlim -16.5\
hardupperlim 17.5\
maxSpeed 2\
maxAccel 1\
maxDecel 1\
stepsPerX 25000\
absEnc 1\
absEncHome 7499135\
cntsPerX 8192]
sgl part sample
sgl long_name sgl
sgl softlowerlim -16.5
sgl softupperlim 17.5
sgl home 0
sgl backlash_offset -0.2
# mc2: Sample Up Tanslation
Motor stu $motor_driver_type [params \
asyncqueue mc2\
host mc2-taipan\
port pmc2-taipan\
axis C\
units mm\
hardlowerlim -15\
hardupperlim 15\
maxSpeed 2\
maxAccel 1\
maxDecel 1\
stepsPerX -25000\
absEnc 1\
absEncHome 7392933\
cntsPerX -8192]
stu part sample
stu long_name stu
stu softlowerlim -15
stu softupperlim 15
stu home 0.0
stu backlash_offset -0.2
# mc2: Sample Lower Tanslation
Motor stl $motor_driver_type [params \
asyncqueue mc2\
host mc2-taipan\
port pmc2-taipan\
axis D\
units mm\
hardlowerlim -15\
hardupperlim 15\
maxSpeed 2\
maxAccel 1\
maxDecel 1\
stepsPerX 25000\
absEnc 1\
absEncHome 7582773\
cntsPerX 8192]
stl part sample
stl long_name stl
stl softlowerlim -15
stl softupperlim 15
stl home 0.0
stl backlash_offset -0.2
# mc2: Sample Rotate
Motor $samp_stage_name $motor_driver_type [params \
asyncqueue mc2\
host mc2-taipan\
port pmc2-taipan\
axis E\
units degrees\
hardlowerlim -194\
hardupperlim 134\
maxSpeed 4\
maxAccel 2\
maxDecel 2\
stepsPerX 12495\
absEnc 1\
absEncHome 10695068\
cntsPerX 4096]
$samp_stage_name part sample
$samp_stage_name long_name $samp_stage_name
$samp_stage_name softlowerlim -170
$samp_stage_name softupperlim 120
$samp_stage_name home 35.997
$samp_stage_name backlash_offset -0.2
if {$use_s1_stage == "true"} {
Motor s1 $motor_driver_type [params \
asyncqueue mc2\
host mc2-taipan\
port pmc2-taipan\
axis E\
units degrees\
hardlowerlim -194\
hardupperlim 134\
maxSpeed 4\
maxAccel 2\
maxDecel 2\
stepsPerX 12495\
absEnc 1\
absEncHome 10695068\
cntsPerX 4096]
s1 part sample
s1 long_name s1
s1 softlowerlim -170
s1 softupperlim 120
s1 home 35.997
s1 backlash_offset -0.2
}
# mc2: Analyser Detector Rotate -- Sample Scattering Angle
# absEncHome 20728908\ at -50
@@ -437,9 +382,9 @@ s2 backlash_offset 0.5
s2 blockage_thresh 1
s2 creep_offset 0.015
s2 creep_precision 0.005
s2 speed 0.8
s2 accel 0.2
s2 decel 0.2
s2 speed $s2_speed
s2 accel $s2_accel
s2 decel $s2_decel
# mc2: Analyser Horizontal Focus
Motor ahfocus $motor_driver_type [params \
@@ -517,9 +462,10 @@ mvfocus long_name mvfocus
mvfocus softlowerlim 0
mvfocus softupperlim 300
mvfocus home 0.0
mvfocus Blockage_Thresh 2
mvfocus Blockage_Thresh 4
mvfocus Blockage_Check_Interval 2
mvfocus creep_offset 0.2
mvfocus backlash_offset -4
# mc3: Monochromator Horizontal Focus
Motor mhfocus $motor_driver_type [params \
asyncqueue mc3\
@@ -528,25 +474,26 @@ Motor mhfocus $motor_driver_type [params \
axis B\
units degrees\
precision 0.2\
hardlowerlim -80\
hardupperlim 240\
hardlowerlim -10\
hardupperlim 280\
maxSpeed 3.6\
maxAccel 1.728\
maxDecel 1.728\
stepsPerX [expr 25000.0 * 50.0 / 360.0]\
absEnc 1\
bias_bits 12\
bias_bias 1540\
absEncHome 2788\
cntsPerX [expr -4096.0 / 360.0]]
bias_bias 1300\
absEncHome 243\
cntsPerX [expr 4096.0 / 360.0]]
mhfocus part crystal
mhfocus long_name mhfocus
mhfocus softlowerlim -75
mhfocus softupperlim 235
mhfocus softlowerlim -10
mhfocus softupperlim 280
mhfocus home 0
mhfocus Blockage_Thresh 2
mhfocus Blockage_Thresh 4
mhfocus Blockage_Check_Interval 2
mhfocus creep_offset 0.2
mhfocus backlash_offset -4
# mc3: Monochromator Rotate
Motor m1 $motor_driver_type [params \
@@ -563,13 +510,13 @@ Motor m1 $motor_driver_type [params \
maxDecel 0.25\
stepsPerX 100000\
absEnc 1\
absEncHome 16323070\
absEncHome 16189898\
cntsPerX -2048]
m1 part crystal
m1 long_name m1
m1 softlowerlim 5
m1 softupperlim 40
m1 home 20.45933
m1 home 0
m1 backlash_offset -1.0
# mc4: Analyzer Tilt 1 -- Two-theta Angle