Rockwell-automation 1747-PCINT API Software for 1746 I/O Instrukcja Użytkownika Strona 133

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 155
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 132
OC_WaitForEos Library of Routines 6–79
Publication 1747-6.5.3 June 1998
Example:
HANDLE handle;
intrc;
MSGBUF eosMSG
/* Wait for 10 seconds for the EOS */
rc = OC_WaitForEos(handle, 10000);
switch(rc) {
case SUCCESS:/* got EOS*/
/* reset the EOS event*/
OC_PollScanner (handle,OCMSG_EOS,&eosMSG);
break;
case ERR_OCRESPONSE:/* timed out */
printf(“\nTimed out waiting for EOS\n”);
break;
default;
printf(“\nError!\n”);
break;
}
Przeglądanie stron 132
1 2 ... 128 129 130 131 132 133 134 135 136 137 138 ... 154 155

Komentarze do niniejszej Instrukcji

Brak uwag