Chapter 5: AD12-8 Driver Reference
Manual Number: 00650-014-4
Page 5-7
Task 5: Assign Point Addresses to the Point List
Assigns a range of point addresses to the point list.
Notes:
1. All point addresses added to the point list are appended to the end of the point list, after any that
have been previously added, including the default point address. If you desire to start with an
empty list, then use TASK 11, subtask 2 to clear the point list first.
2. If the first point address is larger than the last point address, then the driver will install them in
descending order.
3. Point addresses that are not on a 16 boundary (0, 16, 32 ,48 etc) are only meaningful if one or
more AT16-Ps or LVDT8-Ps are attached.
Input:
params[0]: First point address in range.
params[1]: Last point address in range.
Output:
Data:
None.
Error Codes:
status = 0: No error.
status = 1: Invalid task number, task > 17, or driver not initialized.
status = 4: Point list error, list full.
status = 5: Invalid point address, or index.
Example:
int task,params[5],status;
/* these are globally declared variables */
task = 5;
params[0] = 0;
/* first point address in range*/
params[1] = 31;
/* last point address in range, two AT16-PS */
a12drv(FP_OFF(&task),FP_OFF(params),FP_OFF(&status));
/* call the driver */