Rockwell Automation Allen-Bradley ControlLogix 1756-MVI Programming Reference Manual page 50

Multi-vendor interface module
Hide thumbs Also See for Allen-Bradley ControlLogix 1756-MVI:
Table of Contents

Advertisement

3-28
MVI Backplane API
Publication 1756-RM004B-EN-P - October 2000
MVIbp_ErrorString
Syntax:
int
MVIbp_ErrorString(int errcode, char *buf);
Parameters:
errcode
error code returned from an API function
buf
pointer to user buffer to receive message
Description:
MVIbp_ErrorString returns a text error message associated with the error
code errcode. The null-terminated error message is copied into the
buffer specified by buf. The buffer should be at least 80 characters in
length.
Return Value:
MVI_SUCCESS
MVI_ERR_BADPARAM
Example:
char
buf[80];
int
rc;
/* print error message */
MVIbp_ErrorString(rc, buf);
printf("Error: %s", buf);
message returned in buf
unknown error code

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents