beautypg.com

A - error codes, Introduction, Error code returned by api functions – Rockwell Automation 1747-PCIS API Software - Open Controller User Manual

Page 143: Appendix a, Error codes, Appendix

background image

1

Publication 1747-UM002A-US-P - June 2000

Appendix

A

Error Codes

Introduction

This appendix describes the error code data.

Error Code Returned by API
Functions

Most of the API functions return values (see chapter 6). These are the
values returned by the API functions to indicate success or possible
error conditions (but not all are returned by each function).

The table below lists API Function values:

Name:

Return Value:

Description:

SUCCESS

0

function returned successfully

ERR_OCACCESS

2

handle does not have access to scanner

ERR_OCEXTERR

11

scanner responded with an extended error message

ERR_OCFAULT

13

request denied because scanner faulted

ERR_OCFILERROR

19

error occurred while reading/writing disk file

ERR_OCINIT

5

scanner has not been initialized

ERR_OCIOCFG

9

I/O configuration is invalid

ERR_OCMEM

3

shared memory cannot be found

ERR_OCNOFORCES

15

no forces installed, cannot enable forces

ERR_OCOPEN

1

scanner already open

ERR_OCOUTOFME
M

17

memory allocate failed

ERR_OCOVERRUN

16

DII, I/O initialization, or error report message overrun

ERR_OCPAR

6

initialization failed due to invalid partition
information

ERR_OCPARAM

8

parameter contains invalid value

ERR_OCPOST

7

scanner POST failure

ERR_OCREINIT

4

scanner has already been initialized

ERR_OCRESPONSE

10

scanner did not respond to request successfully

ERR_OCSCANCFG

14

scanner I/O configuration not downloaded

ERR_OCSLOT

12

slot number is invalid

ERR_OCUNKNOWN

18

unknown module type

ERR_OCNOTSUPP

20

function not supported on this platform

This manual is related to the following products: