Phoenix Contact VL3 PPCS10 2430 handleiding
Handleiding
Je bekijkt pagina 19 van 26

Programming details
4173_en_B Phoenix Contact 19/26
3.5.3 EApiGPIOSetLevel
This function writes the GPIO pins to change the status. The pins can be low or high.
Syntax:
EApiStatus_t EAPI_CALLTYPE EApiGPIOSetLevel (
__IN uint32_t ID,
__IN uint32_t Bitmask,
__IN uint32_t Level
);
Parameters
ID: Id of GPIO index
Bitmask: Unused, fill in 0
Level: Set GPIO status GPIO_LOW or GPIO_HIGH
Return value
Status codes (EApiStatus_t)
Example (C#)
private static UInt32 EapiStatus;
EapiStatus = EApiGPIOSetLevel((uint)GPONumber, 0, GPIO_HIGH); //Set High
if (EapiStatus !=EAPI_STATUS_SUCCESS)
return;
3.6 VL3 BPC DIO only functions
These functions set the VL3 BPC DIO pin state. EApiHWMGetCaps must be called before
calling this function. EApiHWMGetCaps returns the number of DIO pins which can be set.
3.6.1 EApiBoardGetValueWithIndex
Function: To read board information values with index.
Syntax:
EApiStatus_t EAPI_CALLTYPE EApiBoardSetValueWithIndex (
__IN EApiId_t Id,
__IN uint32_t Index,
_OUT uint32_t *pValue
);
Parameters
Id: ID of value information
Index: Index of information
pValue: Value of information
Return value
– Status codes (EApiStatus_t)
Example (C#):
private static UInt32 EapiStatus;
UInt32 u32Status = 0;
UInt32 u32Index = (UInt32)DIO_index;
// Get DIO type
EapiStatus = EApiBoardGetValueWithIndex(EAPI_ID_BOARD_SENSOR_DIO_DIREC-
TION_INTERNAL, u32Index, ref u32Status);
if (EapiStatus == EAPI_STATUS_SUCCESS)
type = (u32Status == 1) ? true : false;
else
return false;
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
Merk | Phoenix Contact |
Model | VL3 PPCS10 2430 |
Categorie | Niet gecategoriseerd |
Taal | Nederlands |
Grootte | 1938 MB |