Skip to content

Commit

Permalink
Merge pull request epics-modules#99 from EuropeanSpallationSource/JOG…
Browse files Browse the repository at this point in the history
…_LVIO_JOG_nolockup

motorRecord.cc: Jogging against to LVIO in LVIO

This change resets the JOGF/JOGR fields to zero when a limit violation occurs, rather than when the JOGF/JOGR fields get reset to zero by the user.
  • Loading branch information
kmpeters authored Aug 20, 2018
2 parents c09b49c + 9e5b543 commit a21b1cc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions motorApp/MotorSrc/motorRecord.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2011,6 +2011,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;
Expand Down

0 comments on commit a21b1cc

Please sign in to comment.