Manual Number: 00650-014-4
Page 5-4
AD12-8 Manual
Task 1: Check A/D Operations
This task checks for proper operation of the analog-to-digital converter.
Notes:
1. This task is called internally by the driver when TASK 0 is called.
Input:
None
Output:
Data:
None
Error Codes:
status = 0: No error.
status = 1: Invalid task number, task > 17, or driver not initialized.
status = 3: Card does not respond.
Example:
int task,params[5],status;
/* these are globally declared variables */
task = 1;
a12drv(FP_OFF(&task),FP_OFF(params),FP_OFF(&status));
/* call the driver */
Task 2: Fetch Gain Code for a Point Address
Returns a previously assigned gain code for a given point address.
Notes:
None.
Input:
params[0]: Point address.
Output:
Data
:
params[1]:
Gain code for the given point address.
Error Codes:
status = 0: No error.
status = 1: Invalid task number, task > 17, or driver not initialized.
status = 5: Invalid point address, or index.