Make sample stages configurable and add Oxford magnet sample stick motor as an option.

This commit is contained in:
Ferdi Franceschini
2014-08-05 13:49:10 +10:00
parent 7b6b11eef2
commit 2c753a3f18
5 changed files with 158 additions and 28 deletions

View File

@@ -1,19 +0,0 @@
set magmot "som"
Motor $magmot $motor_driver_type [params \
asyncqueue mc2\
axis D\
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]]
$magmot part sample
$magmot long_name $magmot
$magmot softlowerlim -180
$magmot softupperlim 180
$magmot home 0

View File

@@ -143,7 +143,10 @@ switch $axis_config {
3 {
# Rename the sample stage som to somss because
# som now controls the magnet sample stick
set sample_stage_rotate "somss"
set sample_stage_rotate "som"
set magmot "msom"
set magmot_aq "mc2"
set magmot_axis "D"
fileeval $cfPath(motors)/magnet_configuration.tcl
}
}