PTRobot API
Page 18 of 41
© 2005, Primera Technology, Inc. Primera is a registered trademark and Bravo is a trademark of Primera Technology, Inc. All other trademarks are the property of
their respective companies.
//
LOCATION_AUTO = Automatically choose the bin
//
1
=
Bin1
(right-most
bin)
//
2
=
Bin2
//
...
//
// Notes:
// Return:
//
PTROBOT_OK if Successful
//
PTROBOT_SEQUENCE if this command is called out of sequence
//
PTROBOT_INTERNAL if an internal error occurred
//
PTROBOT_INVALID_ROBOT if the robot handle is invalid
//
PTROBOT_NO_PRINTER if the robot doesn't have a printer
//
PTROBOT_INVALID_LOCATION if the location is invalid
//
///////////////////////////
DWORD WINAPI
PTRobot_LoadPrinter
(HANDLE hRobot, DWORD dwFromLocation);
2.3.3
PTRobot_LoadPrinterFromDrive
///////////////////////////
//
// PTRobot_LoadPrinterFromDrive
//
// Description:
//
Function to load the printer from a drive
// Params:
//
hRobot
Handle to the robot (from EnumRobots)
//
hDrive
Handle to the drive (from EnumDrives)
// Notes:
// Return:
//
PTROBOT_OK if Successful
//
PTROBOT_SEQUENCE if this command is called out of sequence
//
PTROBOT_INTERNAL if an internal error occurred
//
PTROBOT_INVALID_ROBOT if the robot handle is invalid
//
PTROBOT_INVALID_DRIVE if the drive handle is invalid
//
PTROBOT_NO_PRINTER if the robot doesn't have a printer
//
///////////////////////////
DWORD WINAPI
PTRobot_LoadPrinterFromDrive
(HANDLE hRobot, HANDLE hDrive);
2.3.4
PTRobot_UnLoadDrive
///////////////////////////
//
// PTRobot_UnLoadDrive
//
// Description:
//
Function to unload the drive to an output position.
// Params:
//
hRobot
Handle to the robot (from EnumRobots)
//
hDrive
Handle to the drive (from EnumDrives)
//
dwToLocation
DWORD containing the "to" location