Rockwell-automation 1747-PCIS API Software - Open Controller Manual de usuario Pagina 138

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 174
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 137
Publication 1747-UM002A-US-P - June 2000
6-78 Library of Routines
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library
Example:
HANDLE Handle;
WORD filedata[2];
int retcode;
filedata[0] = 0x55AA;
filedata[1] = 0xAA55;
retcode = OC_WriteModuleFile( Handle, FILTYP_M0, filedata,
6, 3, 2 );
/* Writes words 3 and 4 from module in slot 6 */
OC_WriteOutputImage
OC_WriteOutputImage updates the output image on the scanner.
Syntax:
int OC_WriteOutputImage(HANDLE handle,
WORD *outimgcpy, int slotnum, WORD offset,
WORD len, WORD *imagebuf);
Name: Value: Description:
SUCCESS 0 file was read successfully
ERR_OCACCESS 2
handle does not have access to scanner
ERR_OCPARAM 8 parameter contains invalid value
ERR_OCRESPONSE 10 scanner did not respond to request
ERR_OCSCANCFG 14 scanner has not been configured
ERR_OCSLOT 12 slot number is invalid
Vista de pagina 137
1 2 ... 133 134 135 136 137 138 139 140 141 142 143 ... 173 174

Comentarios a estos manuales

Sin comentarios