
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
Kommentare zu diesen Handbüchern