4–2 using the api structures, Stsfile scanner status file, Structure name: syntax – Rockwell Automation 1747-PCINT API Software for 1746 I/O User Manual
Page 48

4–2
Using the API Structures
Publication 1747-6.5.3 June1998
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: