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

Publication 1747-UM002A-US-P - June 2000
6-42 Library of Routines
The shared memory segment address must be set to an address that
does not conflict with other hardware and software. The
recommended segment address is 0xC800. You can use any of the
following shared segment addresses (listed in hex):
•
C000 - D000
•
C200 - D200
•
C400 - D400
•
C600 - D600
•
C800 - D800
•
CA00 - DA00
•
CC00 - DC00
•
CE00 - DE00
irqnum defines the ISA-bus interrupt number assigned to the scanner.
irqnum must be set to one of the values listed in the table below or
the scanner cannot be opened. The MS-DOS API library
communicates with the scanner via interrupts and installs an interrupt
service routine for the interrupt. The application must not service
these interrupts.
The IRQ assignment must be set to an interrupt that does not conflict
with other hardware and software. The recommended interrupt
assignment is IRQ11.
Return Value:
irqnum:
IRQ assignment:
10
IRQ10
11
IRQ11
12
IRQ12
14
IRQ14
15
IRQ15
Name:
Value:
Description:
SUCCESS
0
scanner was opened successfully
ERR_OCOPEN
1
scanner is already open
ERR_OCPARAM
2
invalid value in segaddr or irqnum
ERR_OCMEM
3
shared memory not found