55
Save to memory method (output to OBR buffer)
When a bar code is scanned, its decoded data, including the barcode symbology and data size, are
stored in the OBR buffer, which is a data storage memory area in the driver. The saved data can be
retrieved by a function supplied from the library. This output method has the following features.
–
It can capture the barcode symbology and data size information.
–
It can capture the data at any user-set timing.
–
The length of one data unit is up to 98 characters, and up to 9 labels can be saved.
Any new data scanned after data for 9 labels is already stored in the memory will be discarded.
Data acquisition method
Data can be acquired by a function supplied from the library.
The memory control functions are as follows:
Function
Description
Read data
Read enough data for one label (code) from the data stored in the OBR
buffer, starting from the beginning. When the data is read, the reading
process starts from the oldest scanned data.
Buffer check
Check the status of the data stored in the OBR buffer, and notify how many
labels-worth of data is stored.
Buffer clear
All scanned data held in the OBR buffer is cleared.
(4) Scan completion notification settings
When scanning is complete, notification is provided to the application. There are two notification
methods, and settings can be made to enable or disable each method. This section describes these
notification methods.
Function
Description
Notification by window
message
A window message is issued to the specified window handle when
scanning is complete. Also, the conditions for scanning completion
can be fetched by referring to wParam for the window message.
[Default settings] Notification by window message is enabled.
Notification by event
An event with the required name is issued when scanning is
complete.
Also, the conditions for scanning completion can be fetched by a
function provided by the library.
*1
No notification
No notification is issued when scanning is complete.
*1 For details, refer to the Laser Scanner Library Manual.
[Remarks] Scanning will be terminated when any of the following conditions is met.
- Scan successful
- Timeout.
- OBR buffer overrun
- Module fault detection, etc.