Rockwell-automation 1747-PCINT API Software for 1746 I/O Instrukcja Użytkownika Strona 1

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Ekwipunek Rockwell-automation 1747-PCINT API Software for 1746 I/O. Rockwell Automation 1747-PCINT API Software for 1746 I/O User Manual Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 155
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów

Podsumowanie treści

Strona 1 - Allen-Bradley

User ManualAPI Software for 1746 I/O PCI Interface(Cat. No. 1747-PCIDOS, -PCINT) Allen-Bradley

Strona 2 - Information

1–2 OverviewPublication 1747-6.5.3 June 1998The 1746 I/O PCI Interface APIUse the 1746 I/O PCI Interface API to develop the software interface between

Strona 3 - Using This Manual

6–46 Library of Routines OC_InitScannerPublication 1747-6.5.3 June 1998OC_InitScanner This function initializes the shared memory interface between th

Strona 4 - Preface–2 Using This Manual

OC_InitScanner Library of Routines 6–47Publication 1747-6.5.3 June 1998Return Value:Considerations:Supported in the DOS API library and the Windows NT

Strona 5 - Table of Contents

OC_OpenScanner Library of Routines 6–48Publication 1747-6.5.3 June 1998OC_OpenScanner OC_OpenScanner acquires access to the scanner device and sets a

Strona 6 - Chapter 5

OC_PetHostWatchdog Library of Routines 6–49Publication 1747-6.5.3 June 1998OC_PetHostWatchdog OC_PetHostWatchdog increments the host-to-scanner watchd

Strona 7 - Error Codes Appendix A

6–50 Library of Routines OC_PollScannerPublication 1747-6.5.3 June 1998OC_PollScanner OC_PollScanner reads module I/O interrupt, discrete input interr

Strona 8

OC_PollScanner Library of Routines 6–51Publication 1747-6.5.3 June 1998The data returned in the MsgData member array depends upon the value in MsgID:S

Strona 9 - Overview

6–52 Library of Routines OC_ReadHostRetentive DataPublication 1747-6.5.3 June 1998OC_ReadHostRetentiveDataOC_ReadHostRetentiveData reads the host-rete

Strona 10 - Interface API

OC_ReadHostRetentive Data Library of Routines 6–53Publication 1747-6.5.3 June 1998Example:HANDLE Handle;BYTE retent_data[500];int retcode;retcode = OC

Strona 11 - Architecture

6–54 Library of Routines OC_ReadInputImagePublication 1747-6.5.3 June 1998OC_ReadInputImage OC_ReadInputImage reads the current input image from the s

Strona 12 - 1–4 Overview

OC_ReadInputImage Library of Routines 6–55Publication 1747-6.5.3 June 1998Return Value:Considerations:Supported in the DOS API library and the Windows

Strona 13 - Installing the

Overview 1–3Publication 1747-6.5.3 June 1998The Windows NT API library is a DLL and must be installed on the system in order to run an application whi

Strona 14 - Windows NT API

6–56 Library of Routines OC_ReadIOConfigFilePublication 1747-6.5.3 June 1998OC_ReadIOConfigFile OC_ReadIOConfigFile reads the configuration data that

Strona 15 - Installation Details

OC_ReadModuleFile Library of Routines 6–57Publication 1747-6.5.3 June 1998OC_ReadModuleFile OC_ReadModuleFile reads a data file from a module.Syntax:i

Strona 16 - 1–8 Overview

6–58 Library of Routines OC_ReadModuleFilePublication 1747-6.5.3 June 1998Example:HANDLE Handle;WORD filedata[2];int retcode;retcode = OC_ReadModuleFi

Strona 17 - Using the API

OC_ReadOutputImage Library of Routines 6–59Publication 1747-6.5.3 June 1998OC_ReadOutputImage OC_ReadOutputImage reads the current output image from t

Strona 18 - DOS Considerations

6–60 Library of Routines OC_ReadOutputImagePublication 1747-6.5.3 June 1998Example:HANDLE Handle;WORD outputdata[2];int retcode;retcode = OC_ReadOutpu

Strona 19

OC_ReadSRAM Library of Routines 6–61Publication 1747-6.5.3 June 1998OC_ReadSRAM OC_ReadSRAM reads data from the battery-backed user memory.Syntax:int

Strona 20 - 2–4 Using the API

6–62 Library of Routines OC_ReadSRAMPublication 1747-6.5.3 June 1998Example:Byte buf[100]; /*buffer of 100 bytes of important data*/HANDLE handle;Word

Strona 21

OC_ResetScanner Library of Routines 6–63Publication 1747-6.5.3 June 1998OC_ResetScanner OC_ResetScanner generates a temporary hard reset to the scanne

Strona 22 - 2–6 Using the API

6–64 Library of Routines OC_SetForcesPublication 1747-6.5.3 June 1998OC_SetForces OC_SetForces installs and removes input and output forces to the sca

Strona 23

OC_SetForces Library of Routines 6–65Publication 1747-6.5.3 June 1998Return Value:Considerations:Supported in the DOS API library and the Windows NT A

Strona 24

1–4 OverviewPublication 1747-6.5.3 June 1998Your application (the code you develop using the API) uses the dual port memory to communicate with the sc

Strona 25

6–66 Library of Routines OC_SetHostWatchdogPublication 1747-6.5.3 June 1998OC_SetHostWatchdog OC_SetHostWatchdog sets the host-to-scanner watchdog del

Strona 26

OC_SetInputUpdate Mode Library of Routines 6–67Publication 1747-6.5.3 June 1998OC_SetInputUpdateModeOC_SetInputUpdateMode controls how the scanner upd

Strona 27 - Developing Applications

6–68 Library of Routines OC_SetIOIdleStatePublication 1747-6.5.3 June 1998OC_SetIOIdleState OC_SetIOIdleState controls the state of I/O when the scann

Strona 28 - Sequence

OC_SetModuleInterrupt Library of Routines 6–69Publication 1747-6.5.3 June 1998OC_SetModuleInterrupt OC_SetModuleInterrupt enables, disables, or acknow

Strona 29 - Configure the scanner

6–70 Library of Routines OC_SetOutputUpdate ModePublication 1747-6.5.3 June 1998OC_SetOutputUpdateModeOC_SetOutputUpdateMode controls how the scanner

Strona 30 - 3–4 Developing Applications

OC_SetOutputUpdate Mode Library of Routines 6–71Publication 1747-6.5.3 June 1998Return Value:Considerations:Supported in the DOS API library and the W

Strona 31 - Scan I/O

6–72 Library of Routines OC_SetScanModePublication 1747-6.5.3 June 1998OC_SetScanMode OC_SetScanMode changes the scan mode of the scanner.Syntax:int O

Strona 32 - Example for DOS

OC_SetScanTime Library of Routines 6–73Publication 1747-6.5.3 June 1998OC_SetScanTime OC_SetScanTime sets the I/O scan time and I/O scan interval of t

Strona 33 - Developing Applications 3–7

6–74 Library of Routines OC_SetUserLEDStatePublication 1747-6.5.3 June 1998OC_SetUserLEDState OC_SetUserLEDState sets the state of a user-defined LEDS

Strona 34 - 3–8 Developing Applications

OC_SetupPowerFail Action Library of Routines 6–75Publication 1747-6.5.3 June 1998OC_SetupPowerFailActionOC_SetupPowerFailAction registers the action t

Strona 35 - Developing Applications 3–9

Overview 1–5Publication 1747-6.5.3 June 1998If a non-recoverable fault occurs, reset the scanner (cycle power). Some possible non-recoverable faults i

Strona 36 - 3–10 Developing Applications

6–76 Library of Routines OC_SetupPowerFail ActionPublication 1747-6.5.3 June 1998Return Value:Considerations:Supported in the DOS API library only.Exa

Strona 37 - Developing Applications 3–11

OC_WaitForDII Library of Routines 6–77Publication 1747-6.5.3 June 1998OC_WaitForDII Blocks the calling thread until a DII interrupt is received from t

Strona 38 - Windows NT

6–78 Library of Routines OC_WaitForEosPublication 1747-6.5.3 June 1998OC_WaitForEos Blocks the calling thread until an end-of-scan (EOS) notification

Strona 39 - Developing Applications 3–13

OC_WaitForEos Library of Routines 6–79Publication 1747-6.5.3 June 1998Example:HANDLE handle;intrc;MSGBUF eosMSG/* Wait for 10 seconds for the EOS */rc

Strona 40 - 3–14 Developing Applications

6–80 Library of Routines OC_WaitForEosDmdInPublication 1747-6.5.3 June 1998OC_WaitForEosDmdIn Blocks the calling thread until a demand input end-of-sc

Strona 41 - Developing Applications 3–15

OC_WaitForEosDmdIn Library of Routines 6–81Publication 1747-6.5.3 June 1998Example:HANDLE handle;intrc;MSGBUF eosMSG/* Request an input scan, but don’

Strona 42 - 3–16 Developing Applications

6–82 Library of Routines OC_WaitForEosDmdOutPublication 1747-6.5.3 June 1998OC_WaitForEosDmdOut Blocks the calling thread until a demand output end-of

Strona 43 - Developing Applications 3–17

OC_WaitForEosDmdOut Library of Routines 6–83Publication 1747-6.5.3 June 1998Example:HANDLE handle;intrc;MSGBUF eosMSG/* Request an output scan, but do

Strona 44 - 3–18 Developing Applications

6–84 Library of Routines OC_WaitForExtErrorPublication 1747-6.5.3 June 1998OC_WaitForExtError Blocks the calling thread until an extended error is rec

Strona 45 - Developing Applications 3–19

OC_WaitForIoInt Library of Routines 6–85Publication 1747-6.5.3 June 1998OC_WaitForIoInt Blocks the calling thread until a module interrupt is received

Strona 46 - 3–20 Developing Applications

1–6 OverviewPublication 1747-6.5.3 June 1998Installing the Windows NT APITo install the Windows NT API, use the setup utility:1. Insert the API disket

Strona 47 - Using the API Structures

6–86 Library of Routines OC_WriteHostRetentive DataPublication 1747-6.5.3 June 1998OC_WriteHostRetentiveDataOC_WriteHostRetentiveData writes data to t

Strona 48

OC_WriteIOConfigFile Library of Routines 6–87Publication 1747-6.5.3 June 1998OC_WriteIOConfigFile OC_WriteIOConfigFile writes the configuration data c

Strona 49 - Configuring I/O Modules

6–88 Library of Routines OC_WriteModuleFilePublication 1747-6.5.3 June 1998OC_WriteModuleFile OC_WriteModuleFile writes a data file to a module.Syntax

Strona 50 - 5–2 Configuring I/O Modules

OC_WriteModuleFile Library of Routines 6–89Publication 1747-6.5.3 June 1998Example:HANDLE Handle;WORD filedata[2];int retcode;filedata[0] = 0x55AA;fil

Strona 51 - Using M0-M1 Files

6–90 Library of Routines OC_WriteOutputImagePublication 1747-6.5.3 June 1998OC_WriteOutputImage OC_WriteOutputImage updates the output image on the sc

Strona 52 - Supported I/O

OC_WriteOutputImage Library of Routines 6–91Publication 1747-6.5.3 June 1998Example:HANDLE Handle;WORD outputdata[2];int retcode;outputdata[0] = 0x55A

Strona 53

6–92 Library of Routines OC_WriteSRAMPublication 1747-6.5.3 June 1998OC_WriteSRAM OC_WriteSRAM wires data to the battery-backed user memorySyntax:int

Strona 54 - 5–6 Configuring I/O Modules

Publication 1747-6.5.3 June 1998AppendixAError CodesIntroduction This appendix describes the error code data.Error Code Returned by API FunctionsMost

Strona 55 - Library of Routines

A–2 Error CodesPublication 1747-6.5.3 June 1998Extended Error CodesThe OC_GetExtendedError function returns error information in a structure of type O

Strona 56

Error Codes A–3Publication 1747-6.5.3 June 1998The error code data provides information specific to the cause of all extended errors, except 0xF0 (see

Strona 57

Overview 1–7Publication 1747-6.5.3 June 1998Installation DetailsThis section describes the actions the setup utility performs to install the API and O

Strona 58

A–4 Error CodesPublication 1747-6.5.3 June 1998If the extended error code is an internal scanner error (0xF0), the slot number is set to 0 and the fir

Strona 59

Publication 1747-6.5.3 June 1998AppendixBTesting Function CallsIntroduction Both the DOS API and the Windows NT API come with a utility program called

Strona 60

B–2 Testing Function CallsPublication 1747-6.5.3 June 1998Notes:

Strona 61 - OCIOCFG structure

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

Strona 62

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

Strona 63

Publication 1747-6.5.3 – June 1998 PN 955132-74Copyright 1998 Allen-Bradley Company, Inc. Printed in USAAllen-Bradley, a Rockwell Automation Business

Strona 64

1–8 OverviewPublication 1747-6.5.3 June 1998Notes:

Strona 65

Publication 1747-6.5.3 June 1998Chapter2Using the APIIntroduction This chapter describes the API and how to use its components. For more information a

Strona 66

2–2 Using the APIPublication 1747-6.5.3 June 1998DOS ConsiderationsThe DOS API is as consistent as possible with APIs for other operating system platf

Strona 67

Using the API 2–3Publication 1747-6.5.3 June 1998Windows NT ConsiderationsDuring development, the application must be linked with an import library th

Strona 68

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

Strona 69

2–4 Using the APIPublication 1747-6.5.3 June 1998Tools to Use The API functions support both Microsoft and Borland C compilers. The API disk includes

Strona 70

Using the API 2–5Publication 1747-6.5.3 June 1998Sample DOS MAKE file for Borland compilersThe following sample file shows how to use a Borland MAKE f

Strona 71

2–6 Using the APIPublication 1747-6.5.3 June 1998Sample DOS MAKE file for Microsoft compilersThe following sample file shows how to use a Microsoft MA

Strona 72

Using the API 2–7Publication 1747-6.5.3 June 1998Sample Windows NT MAKE file for Microsoft compilersThe following sample file shows how to use a Micro

Strona 73

2–8 Using the APIPublication 1747-6.5.3 June 1998!endif#-------------------------------------------# Compiler Options## -W3 Turn on warnings# -GB

Strona 74

Using the API 2–9Publication 1747-6.5.3 June 1998Sample Windows NT MAKE file for Borland compilersThe following sample file shows how to use a Borland

Strona 75

2–10 Using the APIPublication 1747-6.5.3 June 1998|clean: del *.exe del *.obj del *.map del *.librebuild: $(MAKE) -f sampleb.mak clean

Strona 76

Publication 1747-6.5.3 June 1998Chapter 3Developing ApplicationsIntroduction This chapter describes the proper programming sequence for your applicati

Strona 77

3–2 Developing ApplicationsPublication 1747-6.5.3 June 1998Programming SequenceFollow this programming sequence when you develop your application.Acc

Strona 78

Developing Applications 3–3Publication 1747-6.5.3 Junel 1998Initialize the scannerAfter the scanner is reset and performs its POST, the scanner waits

Strona 79

PrefacePublication 1747-6.5.3 June 1998Using This ManualWho Should Use this ManualUse this manual if you are responsible for developing control applic

Strona 80

3–4 Developing ApplicationsPublication 1747-6.5.3 June 1998The application can read the current I/O configuration with the OC_GetIOConfiguration func

Strona 81

Developing Applications 3–5Publication 1747-6.5.3 Junel 1998Scan I/OThe scanner provides two basic methods for scanning I/O: timed scans andon-demand

Strona 82

3–6 Developing ApplicationsPublication 1747-6.5.3 June 1998Programming Example for DOSThe following DOS example (sample.c on your API disk) shows how

Strona 83

Developing Applications 3–7Publication 1747-6.5.3 Junel 1998/*** Open the scanner */retcode = OC_OpenScanner( &Handle, 0, 0);if ( retcode != SUCC

Strona 84

3–8 Developing ApplicationsPublication 1747-6.5.3 June 1998/* ** Read switch position */retcode = OC_GetSwitchPosition( Handle, &swpos );if ( re

Strona 85

Developing Applications 3–9Publication 1747-6.5.3 Junel 1998/* ** Download the configuration to the scanner */retcode = OC_DownloadIOConfiguration( H

Strona 86

3–10 Developing ApplicationsPublication 1747-6.5.3 June 1998/* ** Read first Input word */retcode = OC_ReadInputImage( Handle, NULL, input_slot, 0,

Strona 87

Developing Applications 3–11Publication 1747-6.5.3 Junel 1998/************************************************************************** Name: Ioexit

Strona 88

3–12 Developing ApplicationsPublication 1747-6.5.3 June 1998Programming Example for Windows NTThe following Windows NT example (sample.c on your Wind

Strona 89

Developing Applications 3–13Publication 1747-6.5.3 Junel 1998 if (OC_GetExtendedError(OChandle, &exterr) == SUCCESS) { if ( exterr.E

Strona 90

Preface–2 Using This ManualPublication 1747-6.5.3 June 1998

Strona 91

3–14 Developing ApplicationsPublication 1747-6.5.3 June 1998/************************************************************************ * * Entry p

Strona 92

Developing Applications 3–15Publication 1747-6.5.3 Junel 1998 /* Reset the scanner */ printf("\nResetting the scanner..."); if (S

Strona 93

3–16 Developing ApplicationsPublication 1747-6.5.3 June 1998 /* Read auto-config */ if (SUCCESS != (rc = OC_GetIOConfiguration(OChandle, &

Strona 94

Developing Applications 3–17Publication 1747-6.5.3 Junel 1998 /* Set output update mode to always */ if (SUCCESS != (rc = OC_SetOutputUpdateMod

Strona 95

3–18 Developing ApplicationsPublication 1747-6.5.3 June 1998Handling Interrupt MessagesModules that communicate via discrete input interrupts or modu

Strona 96

Developing Applications 3–19Publication 1747-6.5.3 Junel 1998To determine the input and output image sizes, call OC_CreateIOConfiguration with a confi

Strona 97

3–20 Developing ApplicationsPublication 1747-6.5.3 June 1998Notes:

Strona 98

Publication 1747-6.5.3 June 1998Chapter 4Using the API StructuresIntroduction This chapter describes the structures the API uses. These structures are

Strona 99

4–2 Using the API StructuresPublication 1747-6.5.3 June1998OCSLOTCFGConfiguration information for a module. The mix and type codes together form a uni

Strona 100

Publication 1747-6.5.3 June 1998Chapter 5Configuring I/O ModulesIntroduction This chapter explains how to configure the I/O modules for your 1746 I/O

Strona 101 - Example:

Publication 1747-6.5.3 June 1998Table of ContentsOverview Chapter 1Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Strona 102

5–2 Configuring I/O ModulesPublication 1747-6.5.3 June 1998struct {BYTE mix; /* Module I/O Mix value */BYTE type; /* Module Type */BYTE InputSize; /*

Strona 103

Configuring I/O Modules 5–3Publication 1747-6.5.3 June 1998Using M0-M1 Files and G FilesThe 1746 I/O PCI Interface uses M0-M1 files and G files to dow

Strona 104 - MsgFilter is:

5–4 Configuring I/O ModulesPublication 1747-6.5.3 June 1998Supported I/O ModulesModule Name:aDescription: Class: Mix:bType:AMCI-1561 1 35 141203-SM1 C

Strona 105

Configuring I/O Modules 5–5Publication 1747-6.5.3 June 1998Module Name:aDescription: Class: Mix:bType:1746-IO4 2-Input 100/120 V ac 2-Output [RLY]0 8

Strona 106

5–6 Configuring I/O ModulesPublication 1747-6.5.3 June 1998Notes:

Strona 107

Publication 1747-6.5.3 June 1998Chapter 6Library of RoutinesIntroduction The MS-DOS API is a run-time library that can be linked with most industry st

Strona 108

6–2 Library of Routines OC_CalculateCRCPublication 1747-6.5.3 June 1998OC_CalculateCRC OC_CalculateCRC calculates a 16-bit CRC.Syntax:void OC_Calculat

Strona 109

OC_ClearFault Library of Routines 6–3Publication 1747-6.5.3 June 1998OC_ClearFault OC_ClearFault clears any fault condition of the scanner.Syntax:int

Strona 110

6–4 Library of Routines OC_CloseScannerPublication 1747-6.5.3 June 1998OC_CloseScanner This function must always be called before exiting the applicat

Strona 111 - WORD len);

OC_ConfigureDII Library of Routines 6–5Publication 1747-6.5.3 June 1998OC_ConfigureDII OC_ConfigureDII allows an application to receive a message from

Strona 112

iiPublication 1747-6.5.3 June 1998Configuring I/O ModulesChapter 5Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Strona 113 - and len are ignored

6–6 Library of Routines OC_ConfigureDIIPublication 1747-6.5.3 June 1998Return Value:Considerations:Supported in the DOS API library and the Windows NT

Strona 114

OC_CreateIO Configuration Library of Routines 6–7Publication 1747-6.5.3 June 1998OC_CreateIOConfigurationOC_CreateIOConfiguration creates a scanner co

Strona 115 - Description:

6–8 Library of Routines OC_CreateIO ConfigurationPublication 1747-6.5.3 June 1998Example:OCIOCFG iocfg;int retcode, numslots, i;char module_name[] = ”

Strona 116

OC_DemandInputScan Library of Routines 6–9Publication 1747-6.5.3 June 1998OC_DemandInputScan OC_DemandInputScan forces the scanner to immediately perf

Strona 117

6–10 Library of Routines OC_DemandOutputScanPublication 1747-6.5.3 June 1998OC_DemandOutputScan OC_DemandOutputScan forces the scanner to immediately

Strona 118

OC_DownloadIO Configuration Library of Routines 6–11Publication 1747-6.5.3 June 1998OC_DownloadIOConfigurationOC_DownloadIOConfiguration downloads an

Strona 119

6–12 Library of Routines OC_DownloadIO ConfigurationPublication 1747-6.5.3 June 1998Considerations:Supported in the DOS API library and the Windows NT

Strona 120

OC_EnableEOSNotify Library of Routines 6–13Publication 1747-6.5.3 June 1998OC_EnableEOSNotify OC_EnableEOSNotify controls whether end-of-scan notifica

Strona 121

6–14 Library of Routines OC_EnableEOSNotifyPublication 1747-6.5.3 June 1998Return Value:Considerations:Supported in the DOS API library and the Window

Strona 122

OC_EnableForces Library of Routines 6–15Publication 1747-6.5.3 June 1998OC_EnableForces OC_EnableForces enables/disables forces for all inputs and out

Strona 123

iiiPublication 1747-6.5.3 June 1998OC_InitScanner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-46OC_OpenS

Strona 124

6–16 Library of Routines OC_EnableForcesPublication 1747-6.5.3 June 1998Considerations:Supported in the DOS API library and the Windows NT API library

Strona 125

OC_EnableSlot Library of Routines 6–17Publication 1747-6.5.3 June 1998OC_EnableSlot OC_EnableSlot enables fine tuning of the I/O scanning process.Synt

Strona 126

6–18 Library of Routines OC_ErrorMsgPublication 1747-6.5.3 June 1998OC_ErrorMsg OC_ErrorMsg returns a descriptive text message associated with the API

Strona 127

OC_ExtendedErrorMsg Library of Routines 6–19Publication 1747-6.5.3 June 1998OC_ExtendedErrorMsg OC_ExtendedErrorMsg returns a descriptive text message

Strona 128

6–20 Library of Routines OC_ExtendedErrorMsgPublication 1747-6.5.3 June 1998Example:HANDLE Handle;OCEXTERR exterr;char *msg;int retcode;/* Should alre

Strona 129 - (*callback)() );

OC_GetBatteryStatus Library of Routines 6–21Publication 1747-6.5.3 June 1998OC_GetBatteryStatus OC_GetBatteryStatus gets the current state of the batt

Strona 130 - This example is for DOS only

6–22 Library of Routines OC_GetDeviceInfoPublication 1747-6.5.3 June 1998OC_GetDeviceInfo OC_GeDeviceInfo returns information about the scanner device

Strona 131

OC_GetExtendedError Library of Routines 6–23Publication 1747-6.5.3 June 1998OC_GetExtendedError OC_GetExtendedError reads extended error information f

Strona 132

6–24 Library of Routines OC_GetExtendedErrorPublication 1747-6.5.3 June 1998Considerations:Supported in the DOS API library and the Windows NT API lib

Strona 133

OC_GetInputImage UpdateCounter Library of Routines 6–25Publication 1747-6.5.3 June 1998OC_GetInputImageUpdateCounterOC_GetInputImageUpdateCounter read

Strona 134

ivPublication 1747-6.5.3 June 1998

Strona 135

6–26 Library of Routines OC_GetInputImage UpdateCounterPublication 1747-6.5.3 June 1998

Strona 136

OC_GetIOConfiguration Library of Routines 6–27Publication 1747-6.5.3 June 1998OC_GetIOConfiguration OC_GetIOConfiguration queries the I/O rack about t

Strona 137

6–28 Library of Routines OC_GetIOConfigurationPublication 1747-6.5.3 June 1998Return Value:Considerations:Supported in the DOS API library and the Win

Strona 138

OC_GetLastFaultCause Library of Routines 6–29Publication 1747-6.5.3 June 1998OC_GetLastFaultCause OC_GetLastFaultCause retrieves the cause of the last

Strona 139

6–30 Library of Routines OC_GetMeasuredScan TimePublication 1747-6.5.3 June 1998OC_GetMeasuredScanTimeOC_GetMeasuredScanTime returns the maximum and l

Strona 140

OC_GetScannerInitInfo Library of Routines 6–31Publication 1747-6.5.3 June 1998OC_GetScannerInitInfo This function retrieves current information about

Strona 141

6–32 Library of Routines OC_GetScannerInitInfoPublication 1747-6.5.3 June 1998Example:HANDLE Handle;OCINIT scaninit;int retcode;retcode = OC_GetScanne

Strona 142 - Parameters:

OC_GetScannerStatus Library of Routines 6–33Publication 1747-6.5.3 June 1998OC_GetScannerStatus OC_GetScannerStatus reads the current status of the sc

Strona 143

6–34 Library of Routines OC_GetScannerStatusPublication 1747-6.5.3 June 1998Example:HANDLE Handle;BYTE scansts;int retcode;retcode = OC_GetScannerStat

Strona 144

OC_GetScanner WatchdogCount Library of Routines 6–35Publication 1747-6.5.3 June 1998OC_GetScannerWatchdogCountOC_GetScannerWatchdogCount reads the con

Strona 145

Publication 1747-6.5.3 June 1988Chapter 1OverviewIntroduction This chapter provides an overview of the 1746 I/O PCI Interface and the API software. T

Strona 146

6–36 Library of Routines OC_GetStatusFilePublication 1747-6.5.3 June 1998OC_GetStatusFile OC_GetStatusFile reads a copy of the current scanner system

Strona 147 - Appendix

OC_GetStatusFile Library of Routines 6–37Publication 1747-6.5.3 June 19980/6 statusForces installed bitThis bit is set is forces have been installed.0

Strona 148 - Extended Error

6–38 Library of Routines OC_GetStatusFilePublication 1747-6.5.3 June 19989 to 10 statusI/O interrupt enabledThese two words are bit-mapped to the 30 I

Strona 149

OC_GetStatusFile Library of Routines 6–39Publication 1747-6.5.3 June 1998Return Value:Considerations:Supported in the DOS API library and the Windows

Strona 150

6–40 Library of Routines OC_GetSwitchPositionPublication 1747-6.5.3 June 1998OC_GetSwitchPosition OC_GetSwitchPosition reads the current position of t

Strona 151

OC_GetTemperature Library of Routines 6–41Publication 1747-6.5.3 June 1998OC_GetTemperature OC_GetTemperature reads the current temperature of the 174

Strona 152 - B–2 Testing Function Calls

6–42 Library of Routines OC_GetUserJumper StatePublication 1747-6.5.3 June 1998OC_GetUserJumperStateOC_GetUserJumperState reads the state of the user

Strona 153 - Publication Problem Report

OC_GetUserLEDState Library of Routines 6–43Publication 1747-6.5.3 June 1998OC_GetUserLEDState OC_GetUserLEDState reads the status of one of the four u

Strona 154 - BUSINESS REPLY MAIL

6–44 Library of Routines OC_GetVersionInfoPublication 1747-6.5.3 June 1998OC_GetVersionInfo OC_GetVersionInfo retrieves the current version of the API

Strona 155 - Worldwide representation

OC_GetVersionInfo Library of Routines 6–45Publication 1747-6.5.3 June 1998Example:HANDLE Handle;OCVERSIONINFO verinfo;int retcode;retcode = OC_GetVers

Komentarze do niniejszej Instrukcji

Brak uwag