Add 'idle' subcommand to fermi motors.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user