Phoenix Contact VL3 PPCS handleiding

26 pagina's
PDF beschikbaar

Handleiding

Je bekijkt pagina 16 van 26
PxCeAPI
16/26 Phoenix Contact
4173_en_B
3.4.1 EApiWDogStart
This function will start the watchdog timer using the specified parameters.
Syntax:
EApiStatus_t EAPI_CALLTYPE EApiWDogStart (
__IN uint32_t Delay,
__IN uint32_t EventTimeout,
__IN uint32_t ResetTimeout
);
Parameters
Delay: Initial delay for the watchdog timeout, in milliseconds. The first trigger must hap-
pen within (Delay + EventTimeout) milliseconds of calling EApiWDogStart.
EventTimeout: Watchdog timeout interval, in milliseconds, to trigger an event.
ResetTimeout: Watchdog timeout interval, in milliseconds, to trigger a reset.
Return value
Status codes (EApiStatus_t)
Example (C#)
private static UInt32 EapiStatus;
//WDT is milliseconds * 1000
if (SecTimer.Checked == true)
EapiStatus = EApiWDogStart(WDTDelay * 1000, WDTEvent * 1000, WDTReset
* 1000); else if (MinTimer.Checked == true)
EapiStatus = EApiWDogStart(WDTDelay * 60000, WDTEvent * 60000,
WDTReset * 60000);
if (EapiStatus != EAPI_STATUS_SUCCESS)
MessageBox.Show(“WDog Start Error”);
3.4.2 EApiWDogTrigger
This function triggers the watchdog and resets the counter. Once the watchdog is triggered,
a system reset will not occur until the EventTimeout and ResetTimeout specified in EApiW-
DogStart() has elapsed. This is often called “petting the dog”.
Syntax:
EApiStatus_t EAPI_CALLTYPE EApiWDogTrigger ()
Parameters
None
Return value
Status codes (EApiStatus_t)
Example (C#)
private static UInt32 EapiStatus;
EapiStatus = EApiWDogTrigger();
if (EapiStatus !=EAPI_STATUS_SUCCESS)
MessageBox.Show(“WDog Trigger Error”;

Bekijk gratis de handleiding van Phoenix Contact VL3 PPCS, stel vragen en lees de antwoorden op veelvoorkomende problemen, of gebruik onze assistent om sneller informatie in de handleiding te vinden of uitleg te krijgen over specifieke functies.

Productinformatie

MerkPhoenix Contact
ModelVL3 PPCS
CategorieNiet gecategoriseerd
TaalNederlands
Grootte1938 MB