Phoenix Contact VL3 PPCS10 2430 handleiding

26 pagina's
PDF beschikbaar

Handleiding

Je bekijkt pagina 18 van 26
PxCeAPI
18/26 Phoenix Contact
4173_en_B
PSB514_Reset = 0,
PSB518_LED = 7,
PSB518_Reset = 0,
};
int GPIO_LOW=0;
int GPIO_HIGH=1;
3.5.2 EApiGPIOGetLevel
This function reads the status of the specified GPIO pin and returns it’s status.
Syntax:
EApiStatus_t EAPI_CALLTYPE EApiGPIOGetLevel (
__IN uint32_t ID,
__IN uint32_t Bitmask,
__IN uint32_t Level
);
Parameters
ID: Id of GPIO index. Only the “Reset” button GPIO pins may be read.
Bitmask: Unused, fill in 0
*pLevel. GPIO_LOW or GPIO_HIGH
Return value
Status codes (EApiStatus_t)
Example (C#)
UInt32 Status = 0;
if (eapi.EApiGPIOGetLevel(GPI_Number, 0, ref Status) !=
eapi.EAPI_STATUS_SUCCESS)
Console.WriteLine("Resetbutton status fail");
else {
if (Status == GPIO_LOW)
Console.WriteLine("Reset button trigger!");
else
Console.WriteLine("Monitor Reset button...");}

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