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

Publication 1747-UM002A-US-P - June 2000
C-6 Header File
* dual-port RAM partition sizes for output image,
* input image, and host retentive data.
*
*************************************************************/
typedef struct tagOCINIT
{
WORD
OutputImageSize; /* size in bytes */
WORD
InputImageSize; /* size in bytes */
WORD
HostRetentiveDataSize; /* size in bytes */
} OCINIT;
/************************************************************
* Structure Name: OCSLOTCFG
*
* Description:
*
* 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;
/************************************************************
* Structure Name: OCIOCFG
*
* Description:
*
* Used by OC_CreateIOConfiguration(), OC_GetIOConfiguration(),
* and OC_DownloadIOConfiguration().
* 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 Open Controller.)
*
*************************************************************/
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 */
OCSLOTCFG SlotCfg[OCMAXSLOT]; /* configuration for each slot */
} OCIOCFG;
/************************************************************
* Structure Name: FORCEDATA
*
* Description:
*
* Passed to OC_SetForces().
* Configures input and output forces.
*
*************************************************************/