Rockwell-automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User M Manual de usuario Pagina 117

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 312
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de 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 );
}
Vista de pagina 116
1 2 ... 112 113 114 115 116 117 118 119 120 121 122 ... 311 312

Comentarios a estos manuales

Sin comentarios