Rockwell-automation 1747-PCINT API Software for 1746 I/O Manual de usuario Pagina 104

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 155
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 103
6–50 Library of Routines OC_PollScanner
Publication 1747-6.5.3 June 1998
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;
The MsgID member of the msgbuf structure will be one of the following values:
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
This value: Means:
OCMSG_NONE No message available
OCMSG_IOINIT I/O module interrupt message, see OC_SetModuleInterrupt
OCMSG_DIINT Discrete input interrupt message, see OC_ConfigureDII
OCMSG_EOS_DMDIN
End-of-scan notification message from OC_DemandInputScan command,
see OC_EnableEOSNotify
OCMSG_EOS_DMDOUT
End-of-scan notification message from OC_DemandOutputScan
command, see OC_EnableEOSNotify
OCMSG_EOS
End-of-scan notification message for timed I/O scan, see
OC_EnableEOSNotify
Vista de pagina 103
1 2 ... 99 100 101 102 103 104 105 106 107 108 109 ... 154 155

Comentarios a estos manuales

Sin comentarios