From d872aedbec24b51c280d97c93822a53c35ca4559 Mon Sep 17 00:00:00 2001 From: Ferdi Franceschini Date: Fri, 31 May 2013 11:13:10 +1000 Subject: [PATCH] Don't create Pelican fermichopper motors when loading the configuration file. This should be done in the local extraconfig.tcl --- .../pelican/config/chopper/fermimot.tcl | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/site_ansto/instrument/pelican/config/chopper/fermimot.tcl b/site_ansto/instrument/pelican/config/chopper/fermimot.tcl index 9f4df9d4..69d85ee1 100644 --- a/site_ansto/instrument/pelican/config/chopper/fermimot.tcl +++ b/site_ansto/instrument/pelican/config/chopper/fermimot.tcl @@ -651,8 +651,8 @@ proc mkFPhaseMot {fmot hdbroot chnode addr lowlim uplim} { } ## -# @brief Make the fermichopper driver and speed and phase motors for the master and -# slave choppers. +# @brief Make the fermichopper driver, and speed motors for the master and +# slave choppers. NOTE: You can make just one chopper motor. # # @param mSpdmot, Name of master chopper speed motor # @param sSpdmot, Name of slave chopper speed motor @@ -661,7 +661,6 @@ proc mkFPhaseMot {fmot hdbroot chnode addr lowlim uplim} { # @param maddr, Master chopper modbus address # @param slave, Slave chopper hdb node name # @param saddr, Slave chopper modbus address -#proc mkFermiMotors {mSpdmot sSpdmot master maddr slave saddr} { proc mkFermiMotors { master maddr {slave "EMPTY"} {saddr "EMPTY"} } { set mSpdmot ${master}s set mPhmot ${master}p @@ -680,7 +679,10 @@ proc mkFermiMotors { master maddr {slave "EMPTY"} {saddr "EMPTY"} } { mkFPhaseMot $mPhmot $hdbPath $master $maddr 0 166.6667e6 } -mkFermiMotors mch 2 sch 3 - -mchs mode $fcPHASE -schs mode $fcPHASE +## Example for making a master and slave chopper motor +# mkFermiMotors mch 2 sch 3 +# mchs mode $fcPHASE +# schs mode $fcPHASE +## Example which just makes one chopper motor +# mkFermiMotors mch 2 +# mchs mode $fcPHASE