Prosoft-technology MVI56E-LDM Manual do Utilizador Página 103

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 264
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 102
ControlLogix Platform "C" Programmable CIP API Functions
Linux Application Development Module Developer's Manual
ProSoft Technology, Inc. Page 97 of 264
March 12, 2014
fatalfault_proc
Syntax
OCXCALLBACK fatalfault_proc( );
Parameters
None
Description
fatalfault_proc is an optional callback function which may be passed to the CIP
API in the OCXcip_RegisterFatalFaultRtn call. If the fatalfault_proc callback
has been registered, it will be called if the backplane device driver detects a fatal
fault condition. This allows the application an opportunity to take appropriate
actions.
Return Value
The fatalfault_proc routine must return OCX_SUCCESS.
Example
OCXHANDLE Handle;
OCXCALLBACK fatalfault_proc( void )
{
// Take whatever action is appropriate for the application:
// - Set local I/O to safe state
// - Log error
// - Attempt recovery (for example, restart module)
return(OCX_SUCCESS);
}
See Also
OCXcip_RegisterFatalFaultRtn
Vista de página 102
1 2 ... 98 99 100 101 102 103 104 105 106 107 108 ... 263 264

Comentários a estes Manuais

Sem comentários