Special Callback Registration - Rockwell Automation Allen-Bradley ControlLogix 1756-MVI Programming Reference Manual

Multi-vendor interface module
Hide thumbs Also See for Allen-Bradley ControlLogix 1756-MVI:
Table of Contents

Advertisement

Special Callback Registration

MVIcip_RegisterFatalFaultRtn
Syntax:
int
MVIcip_RegisterFatalFaultRtn(
MVIHANDLE apiHandle,
MVICALLBACK (*fatalfault_proc)( ) );
Parameters:
apihandle
handle returned by previous call to MVIcip_Open
fatalfault_proc pointer to fatal fault callback routine
Description:
This function is used by an application to register a fatal fault callback
routine. Once registered, the backplane device driver will call
fatalfault_proc if a fatal fault condition is detected.
apiHandle must be a valid handle returned from MVIcip_Open.
fatalfault_proc must be a pointer to a fatal fault callback function.
A fatal fault condition will result in the module being taken offline; i.e.,
all backplane communications will halt. The application may register a
fatal fault callback in order to perform recovery, safe-state, or diagnostic
actions.
Return Value:
MVI_SUCCESS
MVI_ERR_NOACCESS
Example:
MVIHANDLE
apihandle;
// Register a fatal fault handler
MVIcip_RegisterFatalFaultRtn(apiHandle, fatalfault_proc);
See Also:
fatalfault_proc
routine was registered successfully
apihandle does not have access
Publication 1756-RM004B-EN-P - October 2000
CIP Messaging API
4-25

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents