Skip to content

Commit

Permalink
Reverted FLNK change. Except for the condition that DMOV == FALSE, FL…
Browse files Browse the repository at this point in the history
…NK processing was standard.
  • Loading branch information
rsluiter committed Sep 28, 2016
1 parent b867f01 commit c970afb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
11 changes: 6 additions & 5 deletions motorApp/MotorSrc/motorRecord.cc
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,9 @@ USAGE... Motor Record Support.
* .72 03-13-15 rls - Changed RDBL to set RRBV rather than DRBV.
* .73 02-15-16 rls - JOGF/R soft limit error check was using the wrong coordinate sytem limits.
* Changed error checks from dial to user limits.
* .74 09-28-16 rls - Reverted .71 FLNK change. Except for the condition that DMOV == FALSE, FLNK
* processing was standard. If processing is needed on a DMOV false to true
* transition, a new motor record field should be added.
*/

#define VERSION 6.10
Expand Down Expand Up @@ -1163,10 +1166,10 @@ where the motor is in a sequence of movements that comprise a single motion.
Update record timestamp, call recGblGetTimeStamp().
Process alarms, call alarm_sub().
Monitor changes to record fields, call monitor().
IF Done Moving field (DMOV) is TRUE, AND, Last Done Moving (LDMV) was False.
IF Done Moving field (DMOV) is TRUE
Process the forward-scan-link record, call recGblFwdLink().
ENDIF
Update Last Done Moving (LDMV).
Set Processing Active indicator field (PACT) false.
Exit.
Expand Down Expand Up @@ -1406,9 +1409,8 @@ static long process(dbCommon *arg)
alarm_sub(pmr); /* If we've violated alarm limits, yell. */
monitor(pmr); /* If values have changed, broadcast them. */

if (pmr->dmov != 0 && pmr->ldmv == 0) /* Test for False to True transition. */
if (pmr->dmov != 0)
recGblFwdLink(pmr); /* Process the forward-scan-link record. */
pmr->ldmv = pmr->dmov;

pmr->pact = 0;
Debug(4, "process:---------------------- end; motor \"%s\"\n", pmr->name);
Expand Down Expand Up @@ -2450,7 +2452,6 @@ static long special(DBADDR *paddr, int after)
if (pmr->dmov == TRUE)
{
pmr->dmov = FALSE;
pmr->ldmv = pmr->dmov;
db_post_events(pmr, &pmr->dmov, DBE_VAL_LOG);
}
return(OK);
Expand Down
5 changes: 0 additions & 5 deletions motorApp/MotorSrc/motorRecord.dbd
Original file line number Diff line number Diff line change
Expand Up @@ -586,11 +586,6 @@ recordtype(motor) {
special(SPC_NOMOD)
initial("1")
}
field(LDMV,DBF_SHORT) {
prompt("Last Done moving value")
special(SPC_NOMOD)
initial("1")
}
field(MOVN,DBF_SHORT) {
prompt("Motor is moving")
special(SPC_NOMOD)
Expand Down

0 comments on commit c970afb

Please sign in to comment.