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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 174
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 68
Publication 1747-UM002A-US-P - June 2000
Library of Routines 6-9
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library
Example:
HANDLE Handle;
int retcode;
retcode = OC_DemandOutputScan( Handle, OCWAIT );
OC_DownloadIO
Configuration
OC_DownloadIOConfiguration downloads an I/O configuration to
the scanner.
Syntax:
int OC_DownloadIOConfiguration(HANDLE handle,
OCIOCFG *iocfg);
Parameters:
Description:
The scanner must be in Idle mode to receive an I/O configuration.
This function forces the scanner to Idle mode to download the
configuration.
The scanner checks the downloaded I/O configuration for validity,
and if there are any errors, an extended error might be generated. If
an error is generated, the scanner will fault.
The OCIOCFG structure is defined as:
typedef struct tagOCIOCFG
{
Name: Value: Description:
SUCCESS 0 demand output request was successful
ERR_OCACCESS 2
handle does not have access to scanner
ERR_OCRESPONSE 10 scanner did not respond to request
ERR_OCSCANCFG 14 scanner has not been configured
Parameter: Description:
handle Must be a valid handle returned from OC_OpenScanner
iocfg Specifies the rack sizes and installed modules
Vista de pagina 68
1 2 ... 64 65 66 67 68 69 70 71 72 73 74 ... 173 174

Comentarios a estos manuales

Sin comentarios