Cc_error – Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual

Page 150

Advertising
background image

API Library of Routines

Appendix B

CC_ERROR

B-19

Gets a pointer to a NULL-terminated “canned” error message.

C Syntax

#include <copro.h>

char *CC_ERROR (error)

unsigned error;

Parameters

error

Specifies the error message to print. The number is typically supplied
by the status returned from an API function call or the I/O status
returned in iostat.

Returns

Variable

Value

str_ptr

str_ptr is a pointer to the canned" error message;

see Table B.A for a listof all the error messages

Description

Use the CC_ERROR function to get a pointer to the “canned” error
message corresponding to an error number. This error number is typically
the value of the iostat variable or the return status of an API function. We
recommend that you use this function in a C routine, although you can use
it in a BASIC procedure. See CC_ERRSTR for a BASIC procedure.

CC_ERROR

Advertising