Phoenix Contact VL3 PPC handleiding

26 pagina's
PDF beschikbaar

Handleiding

Je bekijkt pagina 15 van 26
Programming details
4173_en_B Phoenix Contact 15/26
Example (C#) private static bool CPU_TEMP = false;
private static UInt32 EapiStatus;
EapiStatus = EApiHWMGetCaps(EAPI_ID_HWMON_CPU_TEMP, ref pValue);
if (EapiStatus == EAPI_STATUS_SUCCESS && pValue !=0)
CPU_TEMP = true;
3.3.4 EApiBoardGetValue
This function reads board values. EApiHWMGetCaps must be called before calling this
function.
Syntax
EApiStatus_t EAPI_CALLTYPE EApiBoardGetValue (
__IN EApiId_t Id,
__OUT uint32_t *pValue
);
Parameters
Id: ID of Value information
*pValue: Value of information
Return value
Status codes (EApiStatus_t)
Example (C#)
private static UInt32 EapiStatus;
UInt32 pValue = 0;
EapiStatus = EApiBoardGetValue(EAPI_ID_HWMON_CPU_TEMP, ref pValue);
if (EapiStatus == EAPI_STATUS_SUCCESS && pValue !=0)
{
ListViewItem TempItem = new ListViewItem();
TempItem.Text = “CPU”;
TempItem.SubItems.Add(((float)pValue).ToString(“fl”) + “ C”);
listView1.Items.Add(TempItem);
}
return true;
3.4 Watchdog timer (WDT)
The watchdog element represents the hardware watchdog on the Industrial PC. The watch-
dog is triggered if the timeout value of the watchdog is not reset within a specified time pe-
riod.
Once the watchdog timer is running, a system reset will occur unless the watchdog is trig-
gered to reset it’s timer using EApiWDogTrigger(). This is often called “petting the dog”.
The watchdog timer can be stopped using EApiWDogStop().

Bekijk gratis de handleiding van Phoenix Contact VL3 PPC, 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 PPC
CategorieNiet gecategoriseerd
TaalNederlands
Grootte1891 MB