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

Publication 1747-UM002A-US-P - June 2000
Header File C-15
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.
*
*************************************************************/
typedef struct tagFORCEDATA
{
BYTE SlotNum; /* slot number */
WORD WordOffset; /* offset to word to force */
BYTE IOType; /* selects force inputs or outputs */
WORD ForceMask; /* bits set to 1 are forced, 0 removes forces */
WORD ForceVal; /* selects force state of bits set to 1 in ForceMask */
} FORCEDATA;
/************************************************************
* Structure Name: DII_CFG
*
* Description:
*
* Passed to OC_ConfigureDII().
* Configures a discrete input interrupt for a module.
*
*************************************************************/
typedef struct tagDII_CFG
{
BYTE SlotNum; /* slot number */
BYTE IOIncludeMask; /* declare which Discrete Inputs can cause interrupts */
BYTE IOEdgeType; /* select required transition of each discrete input */
WORD PresetCount; /* set the number of transitions required to cause interrupt */
} DII_CFG;
/************************************************************
* Structure Name: STSFILE
*