Rockwell-automation 1747-PCIS API Software - Open Controller Uživatelský manuál Strana 70

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 174
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 69
Publication 1747-UM002A-US-P - June 2000
6-10 Library of Routines
BYTE Rack1Size;/* number of slots in Rack 1 */
BYTE Rack2Size;/* number of slots in Rack 2 */
BYTE Rack3Size;/* number of slots in Rack 3 */
OCSLOTCFG SlotCfg[OCMAXSLOT];/* configuration for each
slot */
} OCIOCFG;
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library
Example:
HANDLE Handle;
OCIOCFG iocfg;
int retcode;
/* Either OC_CreateIOConfiguration()
or
OC_GetIOConfiguration() were */
/* called previously to fill in ’iocfg’ structure */
retcode = OC_DownloadIOConfiguration( Handle, &iocfg );
OC_EnableEOSNotify
OC_EnableEOSNotify controls whether end-of-scan notification
messages are generated by the scanner.
Syntax:
int OC_EnableEOSNotify(HANDLE handle, int mode);
Name: Value: Description:
SUCCESS 0 I/O configuration was downloaded successfully
ERR_OCACCESS 2
handle does not have access to scanner
ERR_OCINIT 5 scanner has not been initialized, see OC_InitScanner
ERR_OCOUTOFMEM 17 unable to allocate memory for configuration data
ERR_OCRESPONSE 10 scanner did not respond to request
Zobrazit stránku 69
1 2 ... 65 66 67 68 69 70 71 72 73 74 75 ... 173 174

Komentáře k této Příručce

Žádné komentáře