In process the udf field is now set to false if dol is

not a constant link and dbGetLink returns success.
Changes made to modify DB_LINK test on rdbl field to
allow type CA_LINK.
This commit is contained in:
Janet B. Anderson
1996-10-30 17:41:12 +00:00
parent 49da47700d
commit 19cc8098dc

View File

@@ -777,7 +777,7 @@ struct steppermotorRecord *psm;
if (psm->omsl == CLOSED_LOOP) {
status=dbGetLink(&(psm->dol),DBR_FLOAT, &(psm->val),0,0);
if (!RTN_SUCCESS(status)) return;
psm->udf = FALSE;
if (psm->dol.type != CONSTANT) psm->udf = FALSE;
}
/* check drive limits */
@@ -834,7 +834,7 @@ struct steppermotorRecord *psm;
if (psm->omsl == CLOSED_LOOP){
status=dbGetLink(&(psm->dol),DBR_FLOAT, &(psm->val),0,0);
if (!RTN_SUCCESS(status)) return;
psm->udf = FALSE;
if (psm->dol.type != CONSTANT) psm->udf = FALSE;
}
/* Motor not at desired velocity */
@@ -904,7 +904,7 @@ struct steppermotorRecord *psm;
float new_pos,delta;
/* get readback position */
if (psm->rdbl.type == DB_LINK){
if (psm->rdbl.type != CONSTANT){
/* when readback comes from another field of this record */
/* the fetch will fail if the record is uninitialized */
/* also - prdl (process readback location) should be set */