Oc_downloadio configuration, Oc_downloadioconfiguration -9 – Rockwell Automation 1747-PCIS API Software - Open Controller User Manual
Page 69

Publication 1747-UM002A-US-P - June 2000
Library of Routines 6-9
Return Value:
Considerations:
Supported in the DOS API library and the Windows NT API library
Example:
HANDLE
Handle;
int
retcode;
retcode = OC_DemandOutputScan( Handle, OCWAIT );
OC_DownloadIO
Configuration
OC_DownloadIOConfiguration downloads an I/O configuration to
the scanner.
Syntax:
int
OC_DownloadIOConfiguration(HANDLE handle,
OCIOCFG *iocfg);
Parameters:
Description:
The scanner must be in Idle mode to receive an I/O configuration.
This function forces the scanner to Idle mode to download the
configuration.
The scanner checks the downloaded I/O configuration for validity,
and if there are any errors, an extended error might be generated. If
an error is generated, the scanner will fault.
The
OCIOCFG
structure is defined as:
typedef struct tagOCIOCFG
{
Name:
Value:
Description:
SUCCESS
0
demand output request was successful
ERR_OCACCESS
2
handle
does not have access to scanner
ERR_OCRESPONSE
10
scanner did not respond to request
ERR_OCSCANCFG
14
scanner has not been configured
Parameter:
Description:
handle
Must be a valid handle returned from OC_OpenScanner
iocfg
Specifies the rack sizes and installed modules