Prosoft-technology MVI69-ADM Uživatelský manuál Strana 289

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 342
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 288
MVI-ADM 'C' Programmable CIP Messaging Library Functions
'C' Programmable Application Development Module Developer's Guide
ProSoft Technology, Inc. Page 289 of 342
February 20, 2013
10.7 CIP Special Callback Registration
MVIcip_RegisterFatalFaultRtn
Syntax
int MVIcip_RegisterFatalFaultRtn(MVIHANDLE handle, MVICALLBACK
(*fatalfault_proc)( ) );
Parameters
handle
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.
handle 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; that is, 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
routine was registered successfully
MVI_ERR_NOACCESS
handle does not have access
Example
MVIHANDLE handle;
// Register a fatal fault handler
MVIcip_RegisterFatalFaultRtn(handle, fatalfault_proc);
See Also
fatalfault_proc (page 286)
Zobrazit stránku 288
1 2 ... 284 285 286 287 288 289 290 291 292 293 294 ... 341 342

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

Žádné komentáře