Oc_waitforeosdmdout -82 – Rockwell Automation 1747-PCINT API Software for 1746 I/O User Manual
Page 136

6–82
Library of Routines
OC_WaitForEosDmdOut
Publication 1747-6.5.3 June 1998
OC_WaitForEosDmdOut
Blocks the calling thread until a demand output end-of-scan (EOS) notification is
received from the scanner or
msTimeout
milliseconds have elapsed.
Syntax:
int
OC_WaitForEosDmdOut(HANDLE handle, DWORD msTimeout)
Parameters:
Description:
If a demand output EOS message has been received since the last OCMSG_EOS_DMDOUT message was
retrieved with the OC_PollScanner function, OC_WaitForEosDmdOut returns SUCCESS immediately.
You can use this function to synchronize a control application with the I/O scan. See the
OC_EnableEOSNotify and OC_DemandOutputScan functions.
Return Value:
Considerations:
Supported in the Windows NT API library only.
Parameter:
Description:
handle
Must be a valid handle returned from OC_OpenScanner
msTimeout
Specifies the number of milliseconds to wait
Set to INFINITE to wait forever
Name:
Value:
Description:
SUCCESS
0
demand output EOS message was received
ERR_RESPONSE
10
msTimeout
milliseconds elapsed without an EOS
ERR_OCACCESS
2
handle
does not have access to scanner