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

Publication 1747-UM002A-US-P - June 2000
4-2 Using the API Structures
OCIOCFG
Used by
OC_CreateIOConfiguration,
OC_GetIOConfiguration, and
OC_DownloadIOConfiguratio
n. Configuration information
for a system. 1, 2, or 3 racks
may be configured for up to
30 I/O modules. (Slot 0 is
reserved for the 1746 I/O PCI
Interface.)
typedef struct tagOCIOCFG
{
BYTE
Rack1Size;/* number of slots in Rack 1 */
BYTE
Rack2Size;/* number of slots in Rack 2 */
BYTE
Rack3Size;/* number of slots in Rack 3 */
OCSLOTCFGSlotCfg[OCMAXSLOT];/* configuration for each slot */
} OCIOCFG;
OCSLOTCFG
Configuration information for
a module. The mix and type
codes together form a unique
identification for each
module.
typedef struct tagOCSLOTCFG
{
BYTE
mix;
/* mix code */
BYTE
type;
/* type code */
BYTE
InputSize;
/* number of inputs in bytes */
BYTE
OutputSize;
/* number of outputs in bytes */
WORD
M0Size;
/* size of M0 file in words */
WORD
M1Size;
/* size of M1 file in words */
WORD
GSize;
/* size of G file in words */
WORD
*GData;
/* pointer to array of length GSize words */
char
*Name;
/* pointer to module name string */
} OCSLOTCFG;
OCVERSIONINFO
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
/* OCdriver series - Windows NT only */
WORD
OCdriverRevision
/* Ocdriver reviwion - Windows NT only */
} OCVERSIONINFO;
STSFILE
Scanner status file.
typedef struct tagSTSFILE
{
WORD
wWordNum[OCSTSFILEWSIZE];
} STSFILE;
Structure Name:
Syntax: