Rockwell-automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User M Manuale Utente Pagina 117

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 312
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 116


7-9
if ( sts != 0 )
{
printf ( “BARCODE::Error parsing barcode!\n” );
exit ( sts );
}
/* Loop back to the “readln()” to get the next tag being read */
}
/* Loop back to the “open()” to try again to open path... */
reopen:
;
}
}
int handle_barcode ( buffer )
char *buffer;
{
if ( ( buffer[0] != ’S’ ) || ( !( isalpha ( buffer[1] ) ) ) )
{
printf ( “BARCODE::Invalid location character in barcode.\n” );
return ( 0x0101 );
}
switch ( buffer[1] )
{
case ’D’:
printf ( “ This is a Dublin product.\n” );
break;
case ’T’:
printf ( “ This is a Twinsburg product.\n” );
break;
default:
printf ( “ I have no idea where this product came from!\n” );
break;
}
return ( 0 );
}
Vedere la pagina 116
1 2 ... 112 113 114 115 116 117 118 119 120 121 122 ... 311 312

Commenti su questo manuale

Nessun commento