Prosoft-technology MVI56E-LDM Uživatelský manuál Strana 103

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 264
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 102
1 2 ... 98 99 100 101 102 103 104 105 106 107 108 ... 263 264

Komentáře k této Příručce

Žádné komentáře