ADIC Server Server User Manual


 
aci_inventory 4-81
21 Dec 2001
aci_inventory
The aci_inventory function performs a physical inventory of
the AML. See Figure 4-71.
Figure 4-71 aci_inventory Function Call
This command instructs the robot to perform a physical
inventory of the archive and to update the database. The
inventory command is issued to the archive and the function
will not wait for the completion of the inventory operation.
The aci_list() function may be called to determine
whether the inventory command is still active (result for a
running inventory is PINV)
The inventory function is intended for testing and startup.
An error function will be displayed in the AMU log during
operation (and not returned to the calling process). The
entire database will be overwritten with a symbolic volser
“*Ixxxx” if the barcode reader malfunctions.
For additional information, refer to aci_qvolsrange on page
4-98, and aci_view on page 4-123.
Return Values
0: The call was successful.
-1: The call failed.
The external variable d_errno is set to one of the following
DAS error codes:
EPC
ENOVOLUME
EPROBVOL
EAMU
EAMUCOMM
EROBOTCOMM
EDASINT
ERETRYL
EDASINT
ETIMEOUT
ESWITCHINPROG
#include "aci.h"
int aci_inventory( void )
Attentio
n