Overview 4-5
21 Dec 2001
4-
Overview
All ACI function calls and ACI structures are defined in the
aci.h header file. ACI functions return 0 or -1 for successful
and unsuccessful command execution respectively. A
command failure sets the DAS error code variable d_errno to
the specific error code. In such case, a text error message may
be written to standard error by calling aci_perror, which
accepts a user defined message string and attaches it to the
DAS error message.
aci_barcode
The aci_barcode function switches the barcode reader for the
volser on the robot on or off. See Figure 4-1.
Figure 4-1 aci_barcode Function Call
See Table 4-1 for a description of the parameters for the
aci_barcode function call.
Table 4-1 Parameters for the aci_barcode Function Call
Parameter Description
cRobNum defined the number of the robot (only on AML/2
systems with 2 robots)
1 robot 1 (AML/E, AML/J and robot 1 of
AML/2)
2 robot 2 of AML/2
Action new condition for the following mount and eject
commands from this host
OFF barcode on the cartridge will not be checked
ON barcode on the cartridge will be checked on
each command
#include "aci.h"
int aci_barcode( char *cRobNum,
char *Action)