213
8.6.4 OBR Library
Overview
The OBR library is used to control the OBRs (Barcode Reader) from application programs
developed by the user with the C language or Visual BASIC. It supports the following two OBRs :
DT-9650BCR : Pen-type barcode reader
DT-9656BCR : CCD barcode reader

Note about the Libraries

This library consists of the following three files. Any application program that uses this library
should include obrlib.h in the corresponding source file. Constants that are passed to the library
functions and their prototypes are defined in the following header files.
OBRLIB.H Header file for the OBR library
LIBOBR.LIB Library to call OBRLIB.DLL from C language.
OBRLIB.DLL OBR library
OBRLIB.DLL is downloaded to the same directory of an application program or to the directory
of Windows when it is used. The type of OBR to use is specified as parameter when OBR_Open is
called.
No. Function Description
216 OBR_Open Initialization of COM port and power on
217 OBR_Close Release of COM port and power off
218 OBR_Send Transmission of command to OBR
219 OBR_Stat Acknowledgment of received data
220 OBR_Read Read of the received data
221 OBR_Clear Invalidation of codes in reception buffer
222 OBR_SetUserEvent Event definition issued when reception is completed.
The OBRLIB.DLL uses the system library (SysCall.DLL) to turn on and off the power supply of the
COM port. To use this library, an environment which allows the use of SysCall.DLL must be
available.