Rockwell-automation 1747-PCINT API Software for 1746 I/O Uživatelský manuál Strana 130

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 155
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 129
6–76 Library of Routines OC_SetupPowerFail Action
Publication 1747-6.5.3 June 1998
Return Value:
Considerations:
Supported in the DOS API library only.
Example:
This example is for DOS only.
HANDLE Handle;
BYTE buffer1[100];
BYTE buffer2[100];
int retcode;
void PowerFailSave( void ) /* power fail callback routine */
{
len = 100;
OC_WriteRtcSRAM( buffer2, 0, &len ); /* Put data in protected area */
}
retcode = OC_SetupPowerFailAction( Handle, buffer1, 0, 100, PowerFailSave );
Name: Value: Description:
SUCCESS
0
power fail action was registered successfully
ERR_OCACCESS
2
handle does not have access to scanner
ERR_OCINIT
5
scanner has not been initialized, see OC_InitScanner
ERR_OCPARAM
8
parameter contains invalid value
Zobrazit stránku 129
1 2 ... 125 126 127 128 129 130 131 132 133 134 135 ... 154 155

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

Žádné komentáře