Rockwell-automation 1747-PCIS API Software - Open Controller Manual do Utilizador Página 104

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 174
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 103
1 2 ... 99 100 101 102 103 104 105 106 107 108 109 ... 173 174

Comentários a estes Manuais

Sem comentários