
Description of the DP Functions, Data, and Error Codes
DP Base Programming Interface for CP 5613/CP 5614
78
C79000-G8976-C108-01
4.1.8 DP_get_err_txt
Purpose
This function obtains detailed error information from the return values of the
DP_ERROR_T error structure in plain language.
Syntax
DPR_DWORD DP_get_err_txt (
DP_ERROR_T *error, // in
DPR_STRING *language, // in
DPR_STRING text[DP_ERR_TXT_SIZE] ); // out
Parameters
Name Description
error Address of a structure provided by the user program of the
type DP_ERROR_T. The structure contains the error values
of a previously called DP function (see Section 4.4).
language Language of the error text to be displayed:
"German"
"English"
text Pointer to the data area in which the error text including the
terminating zero byte is stored.
Return Value
Name Description
DP_OK Successful completion of the function
other Unsuccessful completion of the function
Note
If a strin
other than "German" or "En
lish" is entered in the "lan
ua
e" parameter,
the error text is displayed in English.
Kommentare zu diesen Handbüchern