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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 155
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 36
Developing Applications 3–11
Publication 1747-6.5.3 Junel 1998
/************************************************************************
*
* Name: Ioexit
*
* Description:
*
* Common error handling routine. This routine displays any
* extended error and exits the program.
*
* Arguments:
* retcode : int( input )
* This error code is passed to the exit() routine.
*
* External effects:
* The program is terminated.
*
* Return value:
* none
*
************************************************************************/
void Ioexit( int retcode )
{
OCEXTERR exterr;
char *msg;
if (OC_GetExtendedError(Handle, &exterr) == SUCCESS)
{
if ( exterr.ErrorCode != 0 )
{
OC_ExtendedErrorMsg(Handle, &exterr, &msg);
printf(”\nERROR: %s\n”, msg);
}
}
OC_CloseScanner(Handle);
exit(retcode);
} /* end Ioexit() */
Vista de pagina 36
1 2 ... 32 33 34 35 36 37 38 39 40 41 42 ... 154 155

Comentarios a estos manuales

Sin comentarios