Rockwell-automation 1747-PCIS API Software - Open Controller Manuel d'utilisateur Page 74

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 174
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 73
1 2 ... 69 70 71 72 73 74 75 76 77 78 79 ... 173 174

Commentaires sur ces manuels

Pas de commentaire