Rockwell Automation 1747-PCIS API Software - Open Controller User Manual

Page 164

Advertising
background image

Publication 1747-UM002A-US-P - June 2000

C-16 Header File

* Description:

*

* Scanner status file.

*

*************************************************************/

typedef struct tagSTSFILE

{

WORD wWordNum[OCSTSFILEWSIZE];

} STSFILE;

/************************************************************

* Structure Name: MSGBUF

*

* Description:

*

* Returned by OC_PollScanner().

* MsgID identifies the message type. Type-specific

* data is contained in MsgData[].

*

*************************************************************/

#define OCMSGDATASIZE 4 /* number of bytes of message data */

typedef struct tagMSGBUF

{

BYTE MsgID; /* Message type */

BYTE MsgData[OCMSGDATASIZE]; /* Type-specific data */

} MSGBUF;

/************************************************************

* Structure Name: OCEXTERR

*

* Description:

*

* Returned by OC_GetExtendedError().

* I/O error report from scanner.

*

*************************************************************/

#define OCERRDATASIZE 3 /* number of bytes of error data */

typedef struct tagOCEXTERR

{

BYTE ErrorCode; /* Major error code */

BYTE SlotNum; /* Associated slot number */

BYTE ErrorData[OCERRDATASIZE]; /* Subsystem error data */

} OCEXTERR;

/************************************************************

* Structure Name: OCVERSIONINFO

*

* Description:

*

* Returned by OC_GetVersionInfo().

* Software and hardware version numbers.

*

*************************************************************/

typedef struct tagOCVERSIONINFO

{

WORD APISeries; /* API series */

WORD APIRevision; /* API revision */

WORD ScannerFirmwareSeries; /* Scanner firmware series */

WORD ScannerFirmwareRevision; /* Scanner firmware revision */

WORD OCHardwareSeries; /* Hardware series */

WORD OCHardwareRevision; /* Hardware revision */

WORD OCdriverSeries; /* Device driver series */

Advertising
This manual is related to the following products: