Rockwell-automation 1747-PCIS API Software - Open Controller Manual de usuario Pagina 131

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 174
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 130
Publication 1747-UM002A-US-P - June 2000
Library of Routines 6-71
/* Wait 1 second for the EOS */
rc = OC_WaitForEosDmdIn(handle, 1000);
switch(rc) {
case SUCCESS: /* got EOS*/
/* reset the EOS_DMDIN event*/
OC_PollScanner (handle,OCMSG_EOS_DMDIN,&eosMSG);
/* do logic, etc. synchronized with the I/O scan */
break;
case ERR_OCRESPONSE:/* timed out */
printf(“\nTimed out waiting for EOS\n”);
break;
default;
printf(“\nError!\n”);
break;
}
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.
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
Vista de pagina 130
1 2 ... 126 127 128 129 130 131 132 133 134 135 136 ... 173 174

Comentarios a estos manuales

Sin comentarios