From 713452aac6fcaa2aabc3a4ebcc1c4718f5911adc Mon Sep 17 00:00:00 2001 From: Ferdi Franceschini Date: Wed, 18 Jun 2014 16:52:20 +1000 Subject: [PATCH] Added sap ten position virtual motor for sample aperture. --- .../bilby/config/motors/motor_configuration.tcl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/site_ansto/instrument/bilby/config/motors/motor_configuration.tcl b/site_ansto/instrument/bilby/config/motors/motor_configuration.tcl index 7e6e43b5..ae7bd720 100644 --- a/site_ansto/instrument/bilby/config/motors/motor_configuration.tcl +++ b/site_ansto/instrument/bilby/config/motors/motor_configuration.tcl @@ -23,9 +23,14 @@ make_gap_motors ss1hg gap ss1ho offset ss1r ss1l mm first/horizontal make_gap_motors ss1vg gap ss1vo offset ss1u ss1d mm first/vertical # Sample aperture positions -# D2.5 is at 0 and D40 is at 333 -sapmot positions 333 288 248 213 179 146 114 84 55 27 0 +# D40 is at 0mm and D2.5 is at 306mm +foreach pos {27 55 84 114 146 179 213 248 288 333} { + lappend poslist [expr 333 - $pos] +} +sapmot positions {*}$poslist +# sap is a 10 position virtual motor for sapmot. D2.5 is at position 1 make_coll_motor_1 sap sap sapmot count +sapmot precision 0.001 ## Time of flight calculation # Length of a guide