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

  • 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 103
Publication 1747-UM002A-US-P - June 2000
6-44 Library of Routines
OC_PollScanner
OC_PollScanner reads module I/O interrupt, discrete input interrupt,
and end-of-scan notification messages from the scanner.
Syntax:
int OC_PollScanner(HANDLE handle, int MsgFilter,
MSGBUF *msgbuf);
Parameters:
Description:
The MSGBUF structure is defined as:
typedef struct {
BYTE MsgID;
BYTE MsgData[4];
} MSGBUF;
Parameter: Description:
handle Must be a valid handle returned from OC_OpenScanner
MsgFilter If
MsgFilter is:
OCMSG_DIINT
OCMSG_IOINT,
OCMSG_EOS, OC_PollScanner returns a message only
OCMSG_EOS_DMDIN of the corresponding type, if any
or
OCMSG_EOS_DMDOUT
OCMSG_ANY OC_PollScanner searches for a
message, in the order OCMSG_DIINT,
OCMSG_IOINT,
OCMSG_EOS_DMDIN,
OCMSG_EOS_DMDOUT, then
OCMSG_EOS, from any of the sources.
msgbuf A structure that contains scanner messages
Vue de la page 103
1 2 ... 99 100 101 102 103 104 105 106 107 108 109 ... 173 174

Commentaires sur ces manuels

Pas de commentaire