Prosoft-technology MVI56E-LDM Manuel d'utilisateur Page 103

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 264
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 102
1 2 ... 98 99 100 101 102 103 104 105 106 107 108 ... 263 264

Commentaires sur ces manuels

Pas de commentaire