diff --git a/site_ansto/instrument/pelican/config/chopper/fermimot.tcl b/site_ansto/instrument/pelican/config/chopper/fermimot.tcl index 448cbade..105c0985 100644 --- a/site_ansto/instrument/pelican/config/chopper/fermimot.tcl +++ b/site_ansto/instrument/pelican/config/chopper/fermimot.tcl @@ -435,7 +435,7 @@ namespace eval ::chopper { hset $hpath/$node/control/stop 1 hsetprop $hpath/$node abort 1 } - return $SCode(OKOK) + return $SCode(OKOK) } proc imot_SGetError {hpath node addr name} { @@ -546,6 +546,12 @@ namespace eval ::chopper { return $SCode(OKOK) } + proc idle {hpath node addr name} { + global SCode + hset $hpath/$node/control/idle_toggle 1 + hsetprop $hpath/$node abort 1 + return $SCode(OKOK) + } } @@ -565,6 +571,7 @@ proc mkFSpeedMot {fmot hdbroot chnode addr lowlim uplim} { permspd "::chopper::permSpd $hdbroot $chnode $addr"\ start "::chopper::start $hdbroot $chnode $addr"\ stop "::chopper::Sstop $hdbroot $chnode $addr"\ + idle "::chopper::idle $hdbroot $chnode $addr"\ }] hsetprop $hdbroot/$chnode abort 0 $fmot movecount 5000