PTRobot API
Page 20 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.
//
// Description:
//
Function to move disc from one bin to another bin
// Params:
//
hRobot
Handle to the robot (from EnumRobots)
//
dwFromLocation
DWORD containing the from location
//
1 = Bin1 (right-most bin)
//
2
=
Bin2
//
...
//
dwToLocation
DWORD containing the "to" location
//
1 = Bin1 (right-most bin)
//
2
=
Bin2
//
...
//
LOCATION_REJECT
=
Reject
//
// 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_LOCATION if the location is invalid
//
///////////////////////////
DWORD WINAPI
PTRobot_MoveDiscBetweenLocations
(HANDLE hRobot, DWORD dwFromLocation, DWORD
dwToLocation)
2.3.7
PTRobot_PrintFile
///////////////////////////
//
// PTRobot_PrintFile
//
// Description:
//
Function to print a Surething image (.STD), raster image (.JPG, .BMP, .TIF,
//
etc.), or .PRN file to the printer.
// Params:
//
hRobot
Handle to the robot (from EnumRobots)
//
tszFile
File to print (.STD, .PRN, .JPG, .BMP)
//
dwPrintIndex
Print index for multiple print jobs.
// Notes:
//
The dwPrintIndex is used when printing an .STD file with merge fields. This
//
value represents which merge record to use for this print.
// 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_PRN_INVALID if the prn file is not valid for the printer
//
PTROBOT_PRINTFILE_NOT_FOUND if the file doesn't exist
//
PTROBOT_PRINTAPP_NOT_INSTALLED if the required print application is not
//
installed.
//
///////////////////////////