Phoenix Contact VL3 PPCS handleiding

26 pagina's
PDF beschikbaar

Handleiding

Je bekijkt pagina 14 van 26
PxCeAPI
14/26 Phoenix Contact
4173_en_B
3.3.2 EApiBoardGetStringA
This function returns board information strings (see “String information” on page 12).
Syntax
EApiStatus_t EAPI_CALLTYPE EApiBoardGetStringA (
__IN EApiId_t Id,
__OUT char *pBuffer,
__INOUT uint32_t *pBufLen
);
Parameters
Id: ID (see “String information” on page 12)
*pBuffer: Destination Buffer of String
*pBufLen: Length of Buffer
Return Value
Status Codes (EApiStatus_t)
Example (C#)
private static UInt32 EapiStatus;
// M/B Model
byte[] BOARD_MODEL = new byte[64];
UInt32 pBufLen = (UInt32)BOARD_MODEL.Length;
EapiStatus = EApiBoardGetStringA(EAPI_ID_BOARD_NAME_STR, ref BOARD_-
MODEL[0], ref pBufLen);
if (EapiStatus == EAPI_STATUS_SUCCESS)
InfoMB.Text = System.Text.Encoding.Default.GetString(BOARD_-
MODEL).Replace(‘\o, ‘ ‘)
else
InfoMB.Text = “ERC: 0x” + EapiStatus.ToString(“X”);
3.3.3 EApiHWMGetCaps
This function gets the HWMON capabilities.
The function must be called before calling EApiBoardGetValue() or EApiBoardGet-
ValueWithIndex().
If the pValue returns 0, the mainboard does not have the capability for the requested ID and
EApiBoardGetValue() or EApiBoardGetValueWithIndex() should not be called.
Syntax
EApiStatus_t EAPI_CALLTYPE EApiHWMGetCaps (
__IN EApiId_t Id,
__OUT uint32_t *pValue
);
Parameters
Id: ID (see “Value information” on page 12)
*pValue: Destination Value of information; 0 indicates the main board does not have the
capability of the EApiBoardGetValue() and EApiBoardGetValueWithIndex() will retun
incorrect values.
Return Value
Status Codes (EApiStatus_t)

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