4 Barcode database file
All scanned unique barcodes are stored in a database file with fixed length records. Besides
the barcode data, the quantity, serial number of the OPN2002/3 and a date/time stamp
can be stored.
The default format of each record in the database file is:
<Barcode (40 chrs)>,<Quantity (6 chrs)>,<serial #>,<hh:mm:ss>,<dd/mm/yyyy>
Example:
8710841030181 , 12,003278,14:41:03,23/11/2009
8710841090246 , 2,003278,14:41:04,23/11/2009
9780131103627 , 1,003278,14:41:00,23/11/2009
The file name of the database is 'DATA.TXT', which is stored on the OPN2002/3. Depending
on the selected interface this file can be retrieved from the OPN2002/3 as file from a Mass
Storage Device or transferred by USB-VCP or CRD2000 using the NetO32 application.
When using the NetO32 application to retrieve the barcode data, any transmitted data will
be appended (by default), so all data of multiple OPN2002s will end up in a single database
file.
The resulting database file can be imported in various applications as so-called comma-
separated file.
To customize the output format of the database file, please check Appendix A.
If no quantity field is specified in the output format, then each bar code will be stored in a
separate record.
5 Scanning barcodes
This demo uses the trigger button to enable the laser to scan barcodes.
If a barcode is read using the trigger key and good read beep is produced and a green
goodread LED is shown. The barcode is then stored in the database with a quantity of '1'. If
the same barcode is scanned again the quantity is incremented by one.
To decrement the quantity of a barcode that's already in the database the barcode should
be read using the small delete key. A short good read beep is produced and an orange red
good read LED is shown.