Manual Number: 00650-014-4
Page 5-8
AD12-8 Manual
Task 6: Fetch Data from a Point Address
Perform a conversion on the point address indicated.
Notes:
1. This task does not use the point list. If you wish to fetch data from the next point in the point
list then use TASK 7.
2. Point addresses that are not on a 16 boundary (0, 16, 32 ,48 etc) are only meaningful if the
AT16-P or LVDT8-P is being used.
Input:
params[0]: Point address to fetch data from.
Output:
Data:
params[1]:
Resulting conversion
params[2]:
Gain code used.
ERROR CODES:
status = 0: No error.
status = 1: Invalid task number, task > 17, or driver not initialized.
status = 3: Card does not respond.
status = 5: Invalid point address, or index.
Example:
int task,params[5],status;
/* these are globally declared variables */
task =6;
params[0] = 16;
/* fetch data from point address */
a12drv(FP_OFF(&task),FP_OFF(params),FP_OFF(&status));
/* call the driver */
Task 7: Fetch Data from Next Point Address in List
Perform a conversion on the point address in the point list indicated by the point list index.
Notes:
1. Each time a point is fetched from the list, the list index is incremented. The list index can be reset
to the start of the point list by using TASK 11, SUBTASK 1
Input:
None.