forked from epics_driver_modules/motorBase
motorRecord.cc: Jogging against to LVIO in LVIO
When jogging has stopped because the motor is close to a softlimit, the record seems to be locked up when the same jog button is pressed again. The user must release the jog button, before doing any other action. STOP doesn't help, neither does jog into the opposite direction work. Solution: Clear the JOGF and JOGR button in the record.
This commit is contained in:
@@ -2001,6 +2001,17 @@ static RTN_STATUS do_work(motorRecord * pmr, CALLBACK_VALUE proc_ind)
|
||||
{
|
||||
pmr->lvio = 1;
|
||||
MARK(M_LVIO);
|
||||
/* Prevent record from locking up in mip=JOG_REQ */
|
||||
if (pmr->jogf)
|
||||
{
|
||||
pmr->jogf = 0;
|
||||
MARK_AUX(M_JOGF);
|
||||
}
|
||||
if (pmr->jogr)
|
||||
{
|
||||
pmr->jogr = 0;
|
||||
MARK_AUX(M_JOGR);
|
||||
}
|
||||
return(OK);
|
||||
}
|
||||
pmr->mip = pmr->jogf ? MIP_JOGF : MIP_JOGR;
|
||||
|
||||
Reference in New Issue
Block a user