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

  • 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 73
Publication 1747-UM002A-US-P - June 2000
6-14 Library of Routines
Description:
This function enables or disables the scanner from scanning the
module in a specific
slotnum. This applies to both the input and
output scan. Slots that are disabled are not included in the I/O scan.
By default, all slots are enabled.
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library
Example:
HANDLE Handle;
int retcode;
retcode = OC_EnableSlot( Handle, 6, SLOT_DISABLE ); /*
Exclude slot 6 */
OC_ErrorMsg
OC_ErrorMsg returns a descriptive text message associated with the
API return value errcode.
Syntax:
int OC_ErrorMsg(int errcode, char **msg);
Description:
The null-terminated message string is placed in a static buffer that is
reused each time this function is called. A pointer to this buffer is
returned in msg.
Name: Value: Description:
SUCCESS 0 module was updated successfully
ERR_OCACCESS 2
handle does not have access to scanner
ERR_OCNOFORCES 15 no forces installed, scanner cannot enable forces
ERR_OCPARAM 8 parameter contains invalid value
ERR_OCRESPONSE 10 scanner did not respond to request
ERR_OCSCANCFG 14 scanner has not been configured
Zobrazit stránku 73
1 2 ... 69 70 71 72 73 74 75 76 77 78 79 ... 173 174

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

Žádné komentáře