Rockwell-automation 1747-PCIS API Software - Open Controller Manual de usuario Pagina 1

Busca en linea o descarga Manual de usuario para Equipo Rockwell-automation 1747-PCIS API Software - Open Controller. Rockwell Automation 1747-PCIS API Software - Open Controller User Manual Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 174
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente

Indice de contenidos

Pagina 1 - Controller

API Software for 1746 I/O PCI Interface and 1747-OC Open Controller1747-OCF, -PCISUser Manual

Pagina 2 - Important User Information

Publication 1747-UM002A-US-P - June 2000Table of Contents iiChapter 4Using the API StructuresIntroduction . . . . . . . . . . . . . . . . . . .

Pagina 3 - Directive Compliance

Publication 1747-UM002A-US-P - June 20006-40 Library of RoutinesDescription:If the scanner is executing POST when this function is called, ERR_

Pagina 4

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-41scaninit.InputImageSize = 128; / * 64 words for input image */scaninit.OutputIm

Pagina 5 - Reference Material

Publication 1747-UM002A-US-P - June 20006-42 Library of RoutinesThe shared memory segment address must be set to an address that does not confl

Pagina 6 - Documentation

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-43Considerations:Supported in the DOS API library and the Windows NT API libraryE

Pagina 7 - Preface 3

Publication 1747-UM002A-US-P - June 20006-44 Library of RoutinesOC_PollScannerOC_PollScanner reads module I/O interrupt, discrete input interru

Pagina 8 - Preface 4

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-45The MsgID member of the msgbuf structure will be one of the following values:Th

Pagina 9 - Table of Contents

Publication 1747-UM002A-US-P - June 20006-46 Library of RoutinesExample:HANDLE Handle;MSGBUF msgbuf;int retcode;retcode = OC_PollScanner( Handl

Pagina 10 - Table of Contents ii

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-47Return Value:Considerations:Supported in the DOS API library and the Windows NT

Pagina 11 - Table of Contents iii

Publication 1747-UM002A-US-P - June 20006-48 Library of RoutinesDescription:To guarantee that a series of calls to OC_ReadInputImage read data

Pagina 12 - Table of Contents iv

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-49OC_ReadIOConfigFileOC_ReadIOConfigFile reads the configuration data that is alr

Pagina 13 - Overview

Publication 1747-UM002A-US-P - June 2000Table of Contents iiiOC_OpenScanner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-41O

Pagina 14 - Interface API to

Publication 1747-UM002A-US-P - June 20006-50 Library of RoutinesOC_ReadModuleFileOC_ReadModuleFile reads a data file from a module.Syntax:int O

Pagina 15 - API Software for Windows NT

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-51Example:HANDLE Handle;WORD filedata[2];int retcode;retcode = OC_ReadModuleFile(

Pagina 16 - Controller Architecture

Publication 1747-UM002A-US-P - June 20006-52 Library of RoutinesReturn Value:Considerations:Supported in the DOS API library and the Windows NT

Pagina 17 - Controller Architectures

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-53the offset within the memroy to begin reading. length specifiies the number of

Pagina 18 - Scanner Modes

Publication 1747-UM002A-US-P - June 20006-54 Library of RoutinesOC_ResetScannerOC_ResetScanner generates a hard or soft reset to the scanner.Sy

Pagina 19 - Checking LED Indicators

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-55OC_SetForcesOC_SetForces installs and removes input and output forces tothe sca

Pagina 20 - Windows NT API

Publication 1747-UM002A-US-P - June 20006-56 Library of RoutinesReturn Value:Considerations:Supported in the DOS API library and the Windows NT

Pagina 21 - Installation Details

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-57Parameters:DescriptionOnce the Host Watchdog is enabled, the host application m

Pagina 22 - 1-10 Overview

Publication 1747-UM002A-US-P - June 20006-58 Library of RoutinesExample:HANDLE Handle;int retcode;retcode = OC_SetHostWatchdog(Handle, WATCHDOG

Pagina 23 - Using the API

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-59OC_SetIOIdleStateOC_SetIOIdleState controls the state of I/O when the scanner g

Pagina 24 - Programming Conventions

Publication 1747-UM002A-US-P - June 2000Table of Contents iv

Pagina 25 - Windows NT Considerations

Publication 1747-UM002A-US-P - June 20006-60 Library of RoutinesOC_SetModuleInterruptOC_SetModuleInterrupt enables, disables, or acknowledges t

Pagina 26 - Tools to Use

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-61Example:HANDLE Handle;int retcode;retcode = OC_SetModuleInterrupt( Handle, 6, I

Pagina 27

Publication 1747-UM002A-US-P - June 20006-62 Library of RoutinesSetting the output update mode to OUTUPD_CHANGE allows the host application to

Pagina 28

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-63OC_SetScanModeOC_SetScanMode changes the scan mode of the scanner.Syntax:int OC

Pagina 29

Publication 1747-UM002A-US-P - June 20006-64 Library of RoutinesOC_SetScanTimeOC_SetScanTime sets the I/O scan time and I/O scan interval ofthe

Pagina 30 - <<

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-65OC_SetUserLEDStateOC_SetUserLEDState sets the state of a user-defined LEDSyntax

Pagina 31

Publication 1747-UM002A-US-P - June 20006-66 Library of RoutinesOC_SetupPowerFailActionOC_SetupPowerFailAction registers the action to be taken

Pagina 32 - 2-10 Using the API

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-67A system typically has at least 10 milliseconds, and possibly as much as 50 mil

Pagina 33 - Developing Applications

Publication 1747-UM002A-US-P - June 20006-68 Library of RoutinesOC_WaitForDIIBlocks the calling thread until a DII interrupt is received from t

Pagina 34 - Initialize the scanner

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-69OC_WaitForEosBlocks the calling thread until an end-of-scan (EOS) notification

Pagina 35 - Configure the scanner

1 Publication 1747-UM002A-US-P - June 2000Chapter 1OverviewIntroductionThis chapter provides an overview of the 1746 I/O PCI Interface and the API sof

Pagina 36 - Scan I/O

Publication 1747-UM002A-US-P - June 20006-70 Library of RoutinesOC_WaitForEosDmdInBlocks the calling thread until a demand input end-of-scan (E

Pagina 37 - Programming Example

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-71/* Wait 1 second for the EOS */rc = OC_WaitForEosDmdIn(handle, 1000);switch(rc)

Pagina 38 - Access the

Publication 1747-UM002A-US-P - June 20006-72 Library of RoutinesReturn Value:Considerations:Supported in the Windows NT API library only.Exampl

Pagina 39 - Initialize the

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-73OC_WaitForExtErrorBlocks the calling thread until an extended error is received

Pagina 40

Publication 1747-UM002A-US-P - June 20006-74 Library of RoutinesOC_WaitForIoIntBlocks the calling thread until a module interrupt is received f

Pagina 41 - Control scanner

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-75OC_WriteHostRetentiveDataOC_WriteHostRetentiveData writes data to the host-rete

Pagina 42

Publication 1747-UM002A-US-P - June 20006-76 Library of RoutinesExample:HANDLE Handle;BYTE retent_data[500];int retcode;retcode = OC_WriteHostR

Pagina 43 - Windows NT

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-77Considerations:Supported in the DOS API library and the Windows NT API libraryE

Pagina 44

Publication 1747-UM002A-US-P - June 20006-78 Library of RoutinesReturn Value:Considerations:Supported in the DOS API library and the Windows NT

Pagina 45

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-79Parameters:Description:To guarantee that changes to the output image resulting

Pagina 46

Publication 1747-UM002A-US-P - June 20001-2 OverviewInterface API tothe ScannerYou must develop a software interface between your application a

Pagina 47

Publication 1747-UM002A-US-P - June 20006-80 Library of RoutinesConsiderations:Supported in the DOS API library and the Windows NT API libraryE

Pagina 48

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-81Return Value:Considerations:Supported in the Windows NT API library only.Exampl

Pagina 49 - Handling Errors

Publication 1747-UM002A-US-P - June 20006-82 Library of RoutinesNotes:

Pagina 50 - Determining Partition Sizes

1 Publication 1747-UM002A-US-P - June 2000Appendix AError CodesIntroductionThis appendix describes the error code data.Error Code Returned by API Func

Pagina 51

Publication 1747-UM002A-US-P - June 2000A-2 Error CodesExtended Error CodesThe OC_GetExtendedError function returns error information in a stru

Pagina 52

Publication 1747-UM002A-US-P - June 2000Error Codes A-3The error code data provides information specific to the cause of all extended errors, e

Pagina 53 - Using the API Structures

Publication 1747-UM002A-US-P - June 2000A-4 Error CodesThe third byte of the Error Code Data provides details about the Subsystem Error Codes.I

Pagina 54

1 Publication 1747-UM002A-US-P - June 2000Appendix BTesting Function CallsIntroductionBoth the DOS API and the Windows NT API come with a utility prog

Pagina 55 - Configuring I/O Modules

Publication 1747-UM002A-US-P - June 2000B-2 Testing Function CallsNotes:

Pagina 56

1 Publication 1747-UM002A-US-P - June 2000Appendix CHeader FileIntroductionThe API comes with a header file (ocapi.h) that defines:• error code values

Pagina 57 - Using M0-M1 Files

Publication 1747-UM002A-US-P - June 2000Overview 1-3API Software for Windows NTThe Windows NT API supports any programming languages that use t

Pagina 58 - Supported I/O Modules

Publication 1747-UM002A-US-P - June 2000C-2 Header File#define ERR_OCSLOT 12 /* slot number is invalid */#defin

Pagina 59

Publication 1747-UM002A-US-P - June 2000Header File C-3#define SCAN_PERIODIC 1 /* Select periodic mode - next scan occurs every time*250us

Pagina 60

Publication 1747-UM002A-US-P - June 2000C-4 Header File/* ***** Switch Position ***** *//* These values are returned by the OC_GetSwitchPosit

Pagina 61 - Library of Routines

Publication 1747-UM002A-US-P - June 2000Header File C-5/* ***** Module File Types ***** *//* These values are passed to the OC_WriteModuleFil

Pagina 62 - OC_ClearFault

Publication 1747-UM002A-US-P - June 2000C-6 Header File* dual-port RAM partition sizes for output image,* input image, and host retentive d

Pagina 63 - OC_CloseScanner

Publication 1747-UM002A-US-P - June 2000Header File C-7typedef struct tagFORCEDATA BYTE SlotNum; /* slot number */ WORD WordOffset

Pagina 64 - OC_ConfigureDII

Publication 1747-UM002A-US-P - June 2000C-8 Header File* Description:** Returned by OC_GetExtendedError().* I/O error report from scanner.*

Pagina 65

Publication 1747-UM002A-US-P - June 2000Header File C-9int pascal OC_CloseScanner(HANDLE);int pascal OC_InitScanner(HANDLE, OCINIT *);int pasca

Pagina 66 - Configuration

Publication 1747-UM002A-US-P - June 2000C-10 Header FileWindows NT Header File/****************************************************************

Pagina 67 - OC_DemandInputScan

Publication 1747-UM002A-US-P - June 2000Header File C-11#define EERR_OCWDTIMEOUT 0x40 /* Host Watchdog Timeout occurred

Pagina 68 - OC_DemandOutputScan

Publication 1747-UM002A-US-P - June 20001-4 OverviewUnderstanding the 1746 I/O PCI Interface ArchitectureThe 1746 I/O PCI Interface architectur

Pagina 69 - OC_DownloadIO

Publication 1747-UM002A-US-P - June 2000C-12 Header File/* ***** PollScanner Message ID’s ***** *//* These values are passed to the OC_PollSc

Pagina 70 - OC_EnableEOSNotify

Publication 1747-UM002A-US-P - June 2000Header File C-13#define JUMPER_PRESENT 0 /* User jumper is installed */#define JUMPE

Pagina 71

Publication 1747-UM002A-US-P - June 2000C-14 Header File#define OCSTSFILEWSIZE 25 /* Status file size in words */#define OCRTCSRAMSIZ

Pagina 72 - OC_EnableForces

Publication 1747-UM002A-US-P - June 2000Header File C-15 char *Name; /* pointer to module name string */} OCSLOTCFG;/*******

Pagina 73 - OC_EnableSlot

Publication 1747-UM002A-US-P - June 2000C-16 Header File* Description: ** Scanner status file.***********************************************

Pagina 74 - OC_ErrorMsg

Publication 1747-UM002A-US-P - June 2000Header File C-17 WORD OCdriverRevision; /* Device driver revision */} OCVERSIONINF

Pagina 75 - OC_ExtendedErrorMsg

Publication 1747-UM002A-US-P - June 2000C-18 Header FileDLLENTRY int OCAPI OC_CreateIOConfiguration(OCIOCFG *);DLLENTRY int OCAPI OC_DownloadI

Pagina 76

Publication 1747-UM002A-US-P - June 2000IndexNumerics1746 I/O PCI Interface Architecture 1-4AAccess the ScannerDuring the programming sequence 3-2API

Pagina 77 - OC_GetBatteryStatus

Publication 1747-UM002A-US-P - June 20002 IndexMM0-M1 FilesUsing 5-3Microsoft CompilersSample DOS MAKE file 2-5Sample NT MAKE file 2-6NNon-Reco

Pagina 78 - OC_GetDeviceInfo

Publication 1747-UM002A-US-P - June 2000Index 3RReference Material P-1Relationship Between the 1747-OCF and 1746-PCIS 1-1Removing the NT API 1-

Pagina 79 - OC_GetExtendedError

Publication 1747-UM002A-US-P - June 2000Overview 1-5Common Attributes of the 1746 I/O PCI Interface and 1747 Open Controller ArchitecturesThe f

Pagina 80 - UpdateCounter

Publication 1747-UM002A-US-P - June 20004 IndexTTelephone Support P-3Terminology P-1Testing Function Calls B-1Tools 2-4TroubleshootingLED indic

Pagina 81 - OC_GetIOConfiguration

Allen-BradleyPublication Problem ReportIf you find a problem with our documentation, please complete and return this form.Pub. NameCat. No. Pub. No. P

Pagina 82 - OC_GetLastFaultCause

Other CommentsPLEASE FOLD HERENO POSTAGE NECESSARY IF MAILED IN THE UNITED STATESBUSINESS REPLY MAILFIRST-CLASS MAIL PERMIT NO. 18235 CLEVELAND OHPOST

Pagina 84 - OC_GetMeasuredScan

Publication 1747-UM002A-US-P - June 2000 5 PN 957259-85Supersedes Publication 1747-6.5.3 - June 1998 © 2000 Rockwell International Corporation. Print

Pagina 85 - OC_GetResetCause

Publication 1747-UM002A-US-P - June 20001-6 OverviewIn addition to providing access to the control scanner, the dual port memory also provides

Pagina 86 - OC_GetScannerInitInfo

Publication 1747-UM002A-US-P - June 2000Overview 1-7Checking LED IndicatorsThe graphics below show LED displays. STATUSThe STATUS indicator rep

Pagina 87 - OC_GetScannerStatus

Important User InformationBecause of the variety of uses for the products described in this publication, those responsible for the application and use

Pagina 88

Publication 1747-UM002A-US-P - June 20001-8 OverviewInstalling the DOS APITo install the DOS API, copy the following files to a directory you c

Pagina 89 - WatchdogCount

Publication 1747-UM002A-US-P - June 2000Overview 1-95. Click on Continue.6. If the development files were selected in the last dialog, the next

Pagina 90 - OC_GetStatusFile

Publication 1747-UM002A-US-P - June 20001-10 Overview2. adds this key and these values to the system registry:HKEY_LOCAL_MACHINE\SYSTEM\Current

Pagina 91

1 Publication 1747-UM002A-US-P - June 2000Chapter 2Using the APIIntroductionThis chapter describes the API and how to use its components. For more inf

Pagina 92

Publication 1747-UM002A-US-P - June 20002-2 Using the APIProgramming ConventionsThe API is supplied as an object code library file [DOS (ocapil

Pagina 93

Publication 1747-UM002A-US-P - June 2000Using the API 2-3Windows NT ConsiderationsDuring development, the application must be linked with an im

Pagina 94 - OC_GetSwitchPosition

Publication 1747-UM002A-US-P - June 20002-4 Using the APITools to UseThe API functions support both Microsoft and Borland C compilers. The API

Pagina 95 - OC_GetTemperature

Publication 1747-UM002A-US-P - June 2000Using the API 2-5APIINC = .. # Path to Open Controller API include file#-----------

Pagina 96 - OC_GetUserJumper

Publication 1747-UM002A-US-P - June 20002-6 Using the API# # Note: Modify the following path to# correspond to your environment.##-------------

Pagina 97 - OC_GetUserLEDState

Publication 1747-UM002A-US-P - June 2000Using the API 2-7# Paths to Tools# # Note: Modify the following paths to# correspond to your environmen

Pagina 98 - OC_GetVersionInfo

European Communities (EC) Directive ComplianceIf this product has the CE mark it is approved for installation within the European Union and EEA region

Pagina 99 - OC_InitScanner

Publication 1747-UM002A-US-P - June 20002-8 Using the API#---------------------------------sample.exe : sample.obj $(APILIB) $(LINK) @<&l

Pagina 100 - Considerations:

Publication 1747-UM002A-US-P - June 2000Using the API 2-9# correspond to your environment.##----------------------------------------------CPATH

Pagina 101 - OC_OpenScanner

Publication 1747-UM002A-US-P - June 20002-10 Using the APINotes:

Pagina 102

1 Publication 1747-UM002A-US-P - June 2000Chapter 3Developing ApplicationsIntroductionThis chapter describes the proper programming sequence for your

Pagina 103 - OC_PetHostWatchdog

Publication 1747-UM002A-US-P - June 20003-2 Developing ApplicationsAccess the scannerThe host application must first call OC_OpenScanner to gai

Pagina 104 - OC_PollScanner

Publication 1747-UM002A-US-P - June 2000Developing Applications 3-3The API has a defined constant specifying the total number of bytes availabl

Pagina 105

Publication 1747-UM002A-US-P - June 20003-4 Developing ApplicationsControl scanner operationOnce the scanner has been configured, the applicati

Pagina 106 - OC_ReadHostRetentive

Publication 1747-UM002A-US-P - June 2000Developing Applications 3-5The application can change the behavior of the input and output scans by all

Pagina 107 - OC_ReadInputImage

Publication 1747-UM002A-US-P - June 20003-6 Developing Applications/*========================================================================

Pagina 108

Publication 1747-UM002A-US-P - June 2000Developing Applications 3-7/* ** Reset the scanner */printf( ”\n\n Going to reset OC, takes 6 seconds

Pagina 110 - OC_ReadModuleFile

Publication 1747-UM002A-US-P - June 20003-8 Developing Applications}printf( ”\n\n Switch position: ” );switch( swpos ){case SWITCH_TOP:printf(

Pagina 111 - OC_ReadOutputImage

Publication 1747-UM002A-US-P - June 2000Developing Applications 3-9/* ** Download the configuration to the scanner */retcode = OC_DownloadIOCo

Pagina 112 - OC_ReadSRAM

Publication 1747-UM002A-US-P - June 20003-10 Developing Applications/* ** Read first Input word */retcode = OC_ReadInputImage( Handle, NULL, i

Pagina 113

Publication 1747-UM002A-US-P - June 2000Developing Applications 3-11OC_ExtendedErrorMsg(Handle, &exterr, &msg);printf(”\nERROR: %s\n”,

Pagina 114 - OC_ResetScanner

Publication 1747-UM002A-US-P - June 20003-12 Developing Applications** External effects: *

Pagina 115 - OC_SetForces

Publication 1747-UM002A-US-P - June 2000Developing Applications 3-13/************************************************************************ *

Pagina 116 - OC_SetHostWatchdog

Publication 1747-UM002A-US-P - June 20003-14 Developing Applications /* Reset the scanner */ printf("\nResetting the scanner...&quo

Pagina 117 - Description

Publication 1747-UM002A-US-P - June 2000Developing Applications 3-15 printf("\nERROR: OC_GetTemperature failed: %d\n", rc);

Pagina 118 - OC_SetInputUpdate

Publication 1747-UM002A-US-P - June 20003-16 Developing Applications /* Download the configuration to the scanner */ if (SUCCESS != (rc

Pagina 119 - OC_SetIOIdleState

Publication 1747-UM002A-US-P - June 2000Developing Applications 3-17Handling Interrupt MessagesModules that communicate via discrete input inte

Pagina 120 - OC_SetModuleInterrupt

1 Publication 1747-UM002A-US-P - June 2000PrefaceWho Should Use this ManualUse this manual if you are responsible for developing control applications

Pagina 121 - OC_SetOutputUpdate

Publication 1747-UM002A-US-P - June 20003-18 Developing ApplicationsDetermining Partition Sizes for Shared MemoryThe host application initializ

Pagina 122

Publication 1747-UM002A-US-P - June 2000Developing Applications 3-19Any remaining shared memory can be allocated for host retentive data, which

Pagina 123 - OC_SetScanMode

Publication 1747-UM002A-US-P - June 20003-20 Developing ApplicationsNotes:

Pagina 124 - OC_SetScanTime

1 Publication 1747-UM002A-US-P - June 2000Chapter 4Using the API StructuresIntroductionThis chapter describes the structures the API uses. These struc

Pagina 125 - OC_SetUserLEDState

Publication 1747-UM002A-US-P - June 20004-2 Using the API StructuresOCIOCFGUsed by OC_CreateIOConfiguration, OC_GetIOConfiguration, and OC_Down

Pagina 126 - OC_SetupPowerFail

1 Publication 1747-UM002A-US-P - June 2000Chapter 5Configuring I/O ModulesIntroductionThis chapter explains how to configure the I/O modules for your

Pagina 127

Publication 1747-UM002A-US-P - June 20005-2 Configuring I/O ModulesSlotCfg contains information about each slot in the racks. The 1746 I/O PCI

Pagina 128 - OC_WaitForDII

Publication 1747-UM002A-US-P - June 2000Configuring I/O Modules 5-3Using M0-M1 Filesand G FilesThe 1746 I/O PCI Interface uses M0-M1 files and

Pagina 129 - OC_WaitForEos

Publication 1747-UM002A-US-P - June 20005-4 Configuring I/O ModulesSupported I/O ModulesModule Name:1Description: Class:Mix:2Type:AMCI-1561 1 3

Pagina 130 - OC_WaitForEosDmdIn

Publication 1747-UM002A-US-P - June 2000Configuring I/O Modules 5-5Module Name:1Description: Class:Mix:2Type:1746-IO4 2-Input 100/120 V ac 2-Ou

Pagina 131 - OC_WaitForEosDmdOut

Publication 1747-UM002A-US-P - June 2000Preface 2Additional Open Controller DocumentationThe following documents are available for additional i

Pagina 132

Publication 1747-UM002A-US-P - June 20005-6 Configuring I/O ModulesNotes:

Pagina 133 - OC_WaitForExtError

1 Publication 1747-UM002A-US-P - June 2000Chapter 6Library of RoutinesIntroductionThe MS-DOS API is a run-time library that can be linked with most in

Pagina 134 - OC_WaitForIoInt

Publication 1747-UM002A-US-P - June 20006-2 Library of RoutinesExample:BYTE buffer[100];WORD buffer_crc;int retcode;retcode = OC_CalculateCRC(

Pagina 135 - OC_WriteHostRetentive

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-3OC_CloseScannerThis function must always be called before exiting the applicatio

Pagina 136 - OC_WriteIOConfigFile

Publication 1747-UM002A-US-P - June 20006-4 Library of RoutinesOC_ConfigureDIIOC_ConfigureDII allows an application to receive a message from t

Pagina 137 - OC_WriteModuleFile

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-5The scanner recognizes a match when every bit in the IOIncludeMask has finished

Pagina 138 - OC_WriteOutputImage

Publication 1747-UM002A-US-P - June 20006-6 Library of RoutinesOC_CreateIOConfigurationOC_CreateIOConfiguration creates a scanner configuration

Pagina 139

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-7Example:OCIOCFG iocfg;int retcode, numslots, i;char module_name[] = ”1746-BAS”;i

Pagina 140 - OC_WriteSRAM

Publication 1747-UM002A-US-P - June 20006-8 Library of RoutinesThe scanner updates the input image with data read from the modules. Use OC_Read

Pagina 141

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-9Return Value:Considerations:Supported in the DOS API library and the Windows NT

Pagina 142

Publication 1747-UM002A-US-P - June 2000Preface 3SupportDue to the PC-based architecture of the 1746 I/O PCI Interface and open controller, the

Pagina 143 - Error Codes

Publication 1747-UM002A-US-P - June 20006-10 Library of RoutinesBYTE Rack1Size;/* number of slots in Rack 1 */BYTE Rack2Size;/* number of slots

Pagina 144 - Extended Error Codes

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-11Parameters:Description:There are three types of end-of-scan messages:End-of-sca

Pagina 145 - Error Codes A-3

Publication 1747-UM002A-US-P - June 20006-12 Library of RoutinesExample:HANDLE Handle;int retcode;retcode = OC_EnableEOSNotify( Handle, EOSMSG_

Pagina 146 - A-4 Error Codes

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-13Return Value:Considerations:Supported in the DOS API library and the Windows NT

Pagina 147 - Testing Function Calls

Publication 1747-UM002A-US-P - June 20006-14 Library of RoutinesDescription:This function enables or disables the scanner from scanning the mod

Pagina 148

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-15Return Value:Considerations:Supported in the DOS API library and the Windows NT

Pagina 149 - Header File

Publication 1747-UM002A-US-P - June 20006-16 Library of RoutinesDescription:This function is useful when displaying an error message. You shoul

Pagina 150 - C-2 Header File

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-17OC_GetBatteryStatusOC_GetBatteryStatus gets the current state of the battery of

Pagina 151 - Header File C-3

Publication 1747-UM002A-US-P - June 20006-18 Library of RoutinesOC_GetDeviceInfoOC_GeDeviceInfo returns information about the scanner device.Sy

Pagina 152 - C-4 Header File

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-19OC_GetExtendedErrorOC_GetExtendedError reads extended error information from th

Pagina 153 - Header File C-5

Publication 1747-UM002A-US-P - June 2000Preface 4

Pagina 154 - C-6 Header File

Publication 1747-UM002A-US-P - June 20006-20 Library of RoutinesConsiderations:Supported in the DOS API library and the Windows NT API libraryE

Pagina 155 - Header File C-7

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-21Considerations:Supported in the DOS API library and the Windows NT API libraryE

Pagina 156 - C-8 Header File

Publication 1747-UM002A-US-P - June 20006-22 Library of RoutinesBYTE Rack3Size;/* number of slots in Rack 3 */OCSLOTCFG SlotCfg[OCMAXSLOT];/* c

Pagina 157 - Header File C-9

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-23Description:When the scanner faults, an extended error is generated. The error

Pagina 158 - Windows NT Header File

Publication 1747-UM002A-US-P - June 20006-24 Library of RoutinesOC_GetMeasuredScan TimeOC_GetMeasuredScanTime returns the maximum and last obse

Pagina 159 - Header File C-11

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-25OC_GetResetCauseThis function can only be used on the 1747-OCF controller. The

Pagina 160 - C-12 Header File

Publication 1747-UM002A-US-P - June 20006-26 Library of RoutinesOC_GetScannerInitInfoThis function retrieves current information about the shar

Pagina 161 - Header File C-13

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-27Example:HANDLE Handle;OCINIT scaninit;int retcode;retcode = OC_GetScannerInitIn

Pagina 162 - C-14 Header File

Publication 1747-UM002A-US-P - June 20006-28 Library of RoutinesDescription:If OC_GetScannerStatus returns SUCCESS, scansts has one of these va

Pagina 163 - Header File C-15

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-29OC_GetScannerWatchdogCountOC_GetScannerWatchdogCount reads the contents of the

Pagina 164 - C-16 Header File

i Publication 1747-UM002A-US-P - June 2000Table of ContentsChapter 1OverviewIntroduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Pagina 165 - Header File C-17

Publication 1747-UM002A-US-P - June 20006-30 Library of RoutinesOC_GetStatusFileOC_GetStatusFile reads a copy of the current scanner system sta

Pagina 166 - C-18 Header File

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-310/7 to 0/12 reserved0/13 dynamic configuration Major error halted bitThis bit i

Pagina 167

Publication 1747-UM002A-US-P - June 20006-32 Library of Routines7 to 8 status I/O interrupt pendingThese two words are bit-mapped to the 30 I/O

Pagina 168 - 2 Index

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-3316 dynamic configuration DII compare valueThis word contains a bit-mapped value

Pagina 169 - Index 3

Publication 1747-UM002A-US-P - June 20006-34 Library of RoutinesReturn Value:Considerations:Supported in the DOS API library and the Windows NT

Pagina 170 - 4 Index

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-35Return Value:Considerations:Supported in the DOS API library and the Windows NT

Pagina 171 - Publication Problem Report

Publication 1747-UM002A-US-P - June 20006-36 Library of RoutinesReturn Value:Considerations:Supported in the DOS API library and the Windows NT

Pagina 172 - BUSINESS REPLY MAIL

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-37Return Value:Considerations:Supported in the DOS API library and the Windows NT

Pagina 173

Publication 1747-UM002A-US-P - June 20006-38 Library of RoutinesReturn Value:Considerations:Supported in the DOS API library and the Windows NT

Pagina 174 - Back Cover

Publication 1747-UM002A-US-P - June 2000Library of Routines 6-39WORD OCHardwareRevision; /* Hardware revision */} OCVERSIONINFO;The Windows NT

Comentarios a estos manuales

Sin comentarios