Rockwell-automation 1747-PCIS API Software - Open Controller Instrukcja Użytkownika Strona 104

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 174
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 103
1 2 ... 99 100 101 102 103 104 105 106 107 108 109 ... 173 174

Komentarze do niniejszej Instrukcji

Brak uwag