Oc_pollscanner, Oc_pollscanner -44, Syntax – Rockwell Automation 1747-PCIS API Software - Open Controller User Manual
Page 104: Parameters: description
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