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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 155
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 136
OC_WaitForEosDmdOut Library of Routines 6–83
Publication 1747-6.5.3 June 1998
Example:
HANDLE handle;
intrc;
MSGBUF eosMSG
/* Request an output scan, but don’t wait */
OC_DemandOutputScan(handle, OCNOWAIT);
/* Could have other code here */
/* Wait 1 second for the EOS */
rc = OC_WaitForEosDmdOut(handle, 1000);
switch(rc) {
case SUCCESS:/* got EOS*/
/* reset the EOS_DMDOUT event*/
OC_PollScanner (handle,OCMSG_EOS_DMDOUT,&eosMSG);
/* do logic, etc. sychronized with the I/O scan */
break;
case ERR_OCRESPONSE:/* timed out */
printf(“\nTimed out waiting for EOS\n”);
break;
default;
printf(“\nError!\n”);
break;
}
Vista de pagina 136
1 2 ... 132 133 134 135 136 137 138 139 140 141 142 ... 154 155

Comentarios a estos manuales

Sin comentarios