Add 'idle' subcommand to fermi motors.
This commit is contained in:
@@ -546,6 +546,12 @@ namespace eval ::chopper {
|
|||||||
return $SCode(OKOK)
|
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"\
|
permspd "::chopper::permSpd $hdbroot $chnode $addr"\
|
||||||
start "::chopper::start $hdbroot $chnode $addr"\
|
start "::chopper::start $hdbroot $chnode $addr"\
|
||||||
stop "::chopper::Sstop $hdbroot $chnode $addr"\
|
stop "::chopper::Sstop $hdbroot $chnode $addr"\
|
||||||
|
idle "::chopper::idle $hdbroot $chnode $addr"\
|
||||||
}]
|
}]
|
||||||
hsetprop $hdbroot/$chnode abort 0
|
hsetprop $hdbroot/$chnode abort 0
|
||||||
$fmot movecount 5000
|
$fmot movecount 5000
|
||||||
|
|||||||
Reference in New Issue
Block a user