Fixed IXE problems

This commit is contained in:
Marty Kraimer
1994-04-13 16:35:27 +00:00
parent 6bf3affeb2
commit 5448099dd1
2 changed files with 4 additions and 4 deletions
+4 -3
View File
@@ -32,6 +32,7 @@
* -----------------
* .01 08-27-92 mrk Combined all Allen Bradley devive support
* .02 02-08-94 mrk Issue Hardware Errors BUT prevent Error Message Storms
* .02 04-13-94 mrk Fixed IXE problems
* ...
*/
@@ -457,7 +458,7 @@ static long linconv_1771Il(struct aiRecord *pai, int after)
static long init_1771Ixe(struct aiRecord *pai)
{
unsigned short value;
short value;
struct abio *pabio;
short linr;
@@ -519,7 +520,7 @@ static long read_1771Ixe(struct aiRecord *pai)
status = 0;
}
if(status==0) {
if(linr<=1)pai->rval = value;
if(linr<=1)pai->rval = value + 10000;
else {
pai->val = value;
pai->udf = FALSE;
@@ -544,7 +545,7 @@ static long linconv_1771Ixe(struct aiRecord *pai, int after)
}
if(!after) return(0);
/* set linear conversion slope*/
pai->eslo = (pai->eguf -pai->egul)/4095.0;
pai->eslo = (pai->eguf -pai->egul)/20000.0;
return(0);
}
-1
View File
@@ -1025,7 +1025,6 @@ abDoneTask(){
/* data */
*pab_table = pmsg->data[i];
if(pmsg->pol_stat & (sign_bit << 8)) *pab_table = -*pab_table;
*pab_table += 10000;
}
pab_sts++;
pab_table++;