Rockwell Automation 1747-PCINT API Software for 1746 I/O User Manual

Page 82

Advertising
background image

6–28

Library of Routines

OC_GetIOConfiguration

Publication 1747-6.5.3 June 1998

Return Value:

Considerations:

Supported in the DOS API library and the Windows NT API library

Example:

HANDLE

Handle;

OCIOCFG

iocfg;

int

retcode;

retcode = OC_GetIOConfiguration( Handle, &iocfg );

/* Use OC_DownloadIOConfiguration() to download the information */

Name:

Value:

Description:

SUCCESS

0

I/O configuration was read successfully

ERR_OCACCESS

2

handle

does not have access to scanner

ERR_OCINIT

5

scanner has not been initialized, see OC_InitScanner

ERR_OCRESPONSE

10

scanner did not respond to request

Advertising
This manual is related to the following products: