JPH073669B2 - Barcode reading method and device - Google Patents
Barcode reading method and deviceInfo
- Publication number
- JPH073669B2 JPH073669B2 JP2-507429A JP50742990A JPH073669B2 JP H073669 B2 JPH073669 B2 JP H073669B2 JP 50742990 A JP50742990 A JP 50742990A JP H073669 B2 JPH073669 B2 JP H073669B2
- Authority
- JP
- Japan
- Prior art keywords
- block data
- bar block
- data
- digits
- bar
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Landscapes
- Detection And Correction Of Errors (AREA)
Description
【発明の詳細な説明】 〔技術分野〕 本発明は、バーコード読取方法および装置に関する。[Detailed Description of the Invention] [Technical Field] The present invention relates to a barcode reading method and apparatus.
バーコードを表示したラベルには、例えば、8桁ラベル
と13桁ラベルの2種類のラベルがある。8桁ラベルは左
右の2つのブロックからなり、各ブロックは4桁で構成
されている。13桁ラベルは左右の2つのブロックからな
り、各ブロックは6桁で構成されている。左側のブロッ
クは、図を示すフラグ2桁を含めると7桁となる。
There are two types of labels that display barcodes: 8-digit labels and 13-digit labels. 8-digit labels consist of two blocks, left and right, with each block consisting of 4 digits. 13-digit labels consist of two blocks, left and right, with each block consisting of 6 digits. The left block has 7 digits, including the 2-digit flag indicating the figure.
ところで、13桁ラベルを読み取る際にビームの振りかた
等によっては6桁のブロックを4桁のブロックとして読
み込む場合がある。従来の技術では、後に詳述するよう
に、13桁ラベルを8桁ラベルに誤読するという問題点が
あった。However, when reading a 13-digit label, depending on the way the beam is swung, a 6-digit block may be read as a 4-digit block. As will be described in detail later, conventional technology has had the problem of misreading a 13-digit label as an 8-digit label.
本発明は、このような従来の問題点に鑑みてなされたも
のであって、誤読率を低下させるようにしたバーコード
読取方法および装置を提供することを目的としている。
The present invention has been made in consideration of the above-mentioned conventional problems, and has as its object to provide a barcode reading method and apparatus that reduces the rate of misreading.
第1図は8桁ラベルを示す図、
第2図は13桁ラベルを示す図、
第3図はバッファメモリ内のデータを示す図、
第4図は本発明の一態様の原理を示すブロック図、
第5図は本発明の一実施例を示すブロック図、
第6図は復調部16から出力されるデータの構成を示す
図、
第7図はバッファメモリに格納されるデータの構成を示
す図、
第8図は6桁メモリ及び4桁メモリに格納されるデータ
の構成を示す図、
第9図は第6図に示した中央処理装置の動作を説明する
フローチャート、
第10図は本発明の他の実施例を示すブロック図、そして
第11図は第10図に示した中央処理装置の動作を説明する
フローチャートである。
FIG. 1 is a diagram showing an 8-digit label, FIG. 2 is a diagram showing a 13-digit label, FIG. 3 is a diagram showing data in the buffer memory, FIG. 4 is a block diagram showing the principle of one aspect of the present invention, FIG. 5 is a block diagram showing one embodiment of the present invention, FIG. 6 is a diagram showing the structure of data output from the demodulation unit 16, FIG. 7 is a diagram showing the structure of data stored in the buffer memory, FIG. 8 is a diagram showing the structure of data stored in the 6-digit memory and the 4-digit memory, FIG. 9 is a flowchart explaining the operation of the central processing unit shown in FIG. 6, FIG. 10 is a block diagram showing another embodiment of the present invention, and FIG. 11 is a flowchart explaining the operation of the central processing unit shown in FIG. 10.
本発明をよりよく理解するために、従来のバーコード読
取り方式とそこにおける問題を第1図から第3図によっ
て説明する。
To better understand the present invention, a conventional bar code reading method and the problems therein will be explained with reference to FIGS. 1-3.
バーコードを表示したラベルとしては、第1図に示すよ
うに、8桁ラベル1と、第2図に示すように13桁ラベル
2の2種類のラベルがある。There are two types of labels that display bar codes: an 8-digit label 1 as shown in FIG. 1, and a 13-digit label 2 as shown in FIG.
8桁ラベル1は、第1図に示すように、レフトガードバ
ー(LGB)3、センターバー(CB)4およびライトガー
ドバー(RGB)5を有し、2つのブロック6および7に
より構成されている。そして2つのブロック6及び7は
それぞれ規格値が4桁のデータで構成されている。As shown in Figure 1, the 8-digit label 1 has a left guard bar (LGB) 3, a center bar (CB) 4, and a right guard bar (RGB) 5, and is composed of two blocks 6 and 7. The two blocks 6 and 7 each have a standard value consisting of four digits of data.
一方、13桁ラベル2は第2図に示すように、レフトガー
ドバー3、センターバー4およびライトガードバー5を
有し、2つのブロック8および9により構成され、2つ
のブロック8および9はそれぞれ規格値が6桁のデータ
で構成されている。On the other hand, as shown in Figure 2, the 13-digit label 2 has a left guard bar 3, a center bar 4, and a right guard bar 5, and is composed of two blocks 8 and 9, each of which has a standard value consisting of 6 digits of data.
これらの8桁ラベル1および13桁ラベル2の読み取り
は、次のようにして行なわれる。The 8-digit label 1 and the 13-digit label 2 are read as follows.
すなわち、バーコードリーダによりバーコードをデジタ
ル信号に変換した後に、復調したデータをバッファメモ
リ内に保持する。光ビームの走査速度は高速であるた
め、バーコードリーダによりバーコードを右から左また
は左から右に1回だけなぞる一度の読取り操作により、
バーコードラベルに記されたバーコードを複数回走査し
て読取ることが多い。したがって、前述のバッファメモ
リ10内には、第3図に示すように1回の読取り操作に対
応して左右のブロックのデータを一対とする複数対のデ
ータが格納されており、第3図では13桁ラベル2の1回
の読取り操作で走査がn回行なわれた結果、バッファメ
モリ10内には、n対のデータが格納されている。同図で
○で囲んだ数字は実際に読取られた桁数を表わし、例え
ば、第1回目の走査では、左ブロックは本来6桁である
筈のデータ中の4桁のみが読取られ、右ブロックは6桁
が正しく読取られたことを意味する。なおバッファメモ
リ10内の左、右各ブロックのバーコードデータには、読
取ったデータの桁数を示すフラグが付されている(第7
図参照)。バッファメモリ10内に保持された復調データ
の桁数はCPUがこのフラグに示される桁数を認識するこ
とにより判別され4桁メモリ部および6桁メモリ部にそ
れぞれ区分されて格納される。That is, after the barcode is converted into a digital signal by the barcode reader, the demodulated data is stored in a buffer memory. Because the scanning speed of the light beam is high, the barcode can be read by tracing it from right to left or left to right only once.
Barcodes on barcode labels are often scanned multiple times to read them. Therefore, as shown in Figure 3, the buffer memory 10 stores multiple pairs of data, with left and right blocks of data paired together for each read operation. In Figure 3, n scans are performed in one read operation on a 13-digit label 2, resulting in n pairs of data being stored in the buffer memory 10. The circled numbers in the figure indicate the number of digits actually read. For example, in the first scan, only four digits of the supposedly six-digit data were read in the left block, while six digits were correctly read in the right block. The barcode data in each of the left and right blocks in the buffer memory 10 is assigned a flag indicating the number of digits of the data read (see Figure 7).
(See the figure.) The number of digits of the demodulated data held in the buffer memory 10 is determined by the CPU recognizing the number of digits indicated by this flag, and the data is stored separately in a 4-digit memory section and a 6-digit memory section.
復調部から出力されたデータに4桁および6桁以外の桁
数のデータが存在する場合は、読取りエラーとして左、
右ブロックのデータともCPUにより除去される。CPUは4
桁メモリ部または6桁メモリ部内のデータのモジュラス
チェックおよびパリティチェックを行なってこのチェッ
クをパスしたデータを正しいデータとして取り出す。そ
の後、モジュラスチェックおよびパリティチェックをパ
スしたデータの内、左右の桁数が等しい対になるデータ
(つまり、左ブロックと右ブロックの各データ)をCPU
で検索し、この対のデータはインタフェース部を介して
上位装置(例えばバーコードデータの処理、管理を行な
うプロセッサを有するデータ処理装置)に送られる。If the data output from the demodulator contains data with a number of digits other than 4 or 6, a read error will occur.
The data in the right block is also removed by the CPU.
The data in the digit memory section or the 6-digit memory section is checked for modulus and parity, and data that passes this check is extracted as correct data. After that, among the data that passes the modulus and parity check, data that has the same number of digits on the left and right (i.e., data in the left block and right block) is extracted to the CPU.
The pair of data is sent via the interface to a host device (for example, a data processing device having a processor for processing and managing bar code data).
しかしながら、このような従来のバーコード読取方式に
あっては、13桁ラベルを読み取りする際に、ビームの振
り方によって一対のデータの左右両ブロック共に6桁デ
ータが4桁データとして読み取られて、4桁メモリ部に
格納されることがあり(第3図の第2回目の読取りおよ
び第n回目の読取りの場合)、この結果13桁ラベルを8
桁ラベルと誤読するという問題点があった。However, in such a conventional bar code reading method, when reading a 13-digit label, depending on the way the beam is swung, 6-digit data in both the left and right blocks of a pair of data may be read as 4-digit data and stored in the 4-digit memory section (in the case of the second reading and n-th reading in Figure 3). As a result, it is difficult to read a 13-digit label into 8-digit data.
There was a problem with it being misread as a digit label.
本発明は、上記の問題点にかんがみ、13桁ラベルの読取
り時に、4桁ラベルがバッファメモリに存在している場
合は、その読取り操作によってバッファメモリに格納さ
れたデータのすべてを誤りとして廃棄するという構想に
基づき、バーコードの読取りにおける誤読率を低下させ
ることを目的とする。In consideration of the above problems, the present invention aims to reduce the rate of misreading in barcode reading by discarding all data stored in the buffer memory as an error when reading a 13-digit label if a 4-digit label is present in the buffer memory.
第4図は本発明の一態様によるバーコード読取り方式を
示すブロック図である。FIG. 4 is a block diagram illustrating a bar code reading system according to one aspect of the present invention.
第4図において、11はバーコードの1回の読取り操作に
より複数のバーブロックデータを生成するバーブロック
データ生成手段、21N1,21N2…21Nlはバーコードラベル
のバーコードを構成する左、右ブロックのバーコードデ
ータをその桁数N1,N2,…Nlに応じて格納するバーブロッ
クデータメモリ部、22は桁数検知手段、23は前記バーコ
ードデータメモリ部21N1,21N2…21Nlの内の少なくとも
1つのバーブロックデータ格納領域21Ni(i=1,2…
l)にデータが存在するか否かを検出するデータ有無検
出手段である。In FIG. 4, reference numeral 11 denotes a bar block data generating means for generating a plurality of bar block data by one bar code reading operation, 21N1, 21N2, ... 21N1 denote bar block data memory sections for storing bar code data of left and right blocks constituting the bar code of a bar code label according to the number of digits N1, N2, ... N1, 22 denotes a digit number detecting means, and 23 denotes at least one bar block data storage area 21Ni (i=1, 2...
l) is a data presence/absence detection means for detecting whether data exists or not.
第4図において、バーブロックデータ生成手段11は、桁
数が予め定められた複数の規格値の一つであるバーコー
ドの1回の読取り操作で複数のバーブロックデータを生
成する。In FIG. 4, a bar block data generating means 11 generates a plurality of bar block data in one reading operation of a bar code whose number of digits is one of a plurality of predetermined standard values.
桁数検知手段22は、各バーブロックデータの桁数Ni(i
=1,2,…,l)を検知し、その桁数に対応したバーブロッ
クデータメモリ部21Niにそのバーブロックデータを格納
する。The digit number detection means 22 detects the number of digits Ni (i
= 1, 2, ..., l) and stores the bar block data in the bar block data memory section 21Ni corresponding to the number of digits.
1回の読取り操作で得られた複数のバーブロックデータ
のすべてが、バーブロックデータメモリ部のいずれかに
格納された後に、データ有無検出手段23は、複数のバー
ブロックデータメモリ部にデータが存在するかどうかを
判定する。そして、単一のバーブロックデータメモリ部
にのみデータが存在し、他のバーブロックデータメモリ
部にはデータが存在しないときのみ、正常にデータが読
取られた判定して上位装置に通知し、複数のバーブロッ
クデータメモリ部にデータが存在するときは読取り誤り
としてバーブロックデータメモリ部の内容をクリアす
る。バーブロックデータメモリ部21Niに替えて、それぞ
れの桁数のバーブロックデータ数を格納する手段を設け
てもよい。この場合は、異なる桁数のバーブロックデー
タがバーブロックデータ数格納手段に格納されていると
きは、読取り誤りとしてバーブロックデータ数格納手段
の内容をクリアする。After all of the bar block data obtained in one reading operation are stored in one of the bar block data memory units, the data presence/absence detection means 23 determines whether data exists in the multiple bar block data memory units. Only when data exists in only one bar block data memory unit and not in the others, is the data read successfully determined and notified to the host device. If data exists in multiple bar block data memory units, the contents of the bar block data memory unit are cleared as a read error. Instead of the bar block data memory unit 21Ni, a means for storing the number of bar block data for each number of digits may be provided. In this case, if bar block data with different numbers of digits are stored in the bar block data number storage means, the contents of the bar block data number storage means are cleared as a read error.
したがって、バーコードを表示したラベルが例えば13桁
ラベル又は8桁ラベルのいずれかである場合、第4図の
例ではバーブロックデータ格納領域21Niとして4桁デー
タと6桁データを格納する領域21N1,21N2が設けられ、
バーコード読取り操作時、左又は右ブロックの内の少な
くとも一方のブロックを正常に6桁バーコードデータと
して読み取られると、この6桁バーコードデータは格納
領域21N2にのみ格納され、格納領域21N1には格納されな
いのでデータ有無検出手段23により、格納領域21N1内に
データが存在しないことを検出すれば、読取り対象のバ
ーコードは13桁であることが判明し、このバーコードを
8桁のバーコードとして誤読することは防止され、その
分、誤読率は低減される。Therefore, if the label displaying the barcode is, for example, either a 13-digit label or an 8-digit label, in the example of FIG. 4, areas 21N1 and 21N2 for storing 4-digit data and 6-digit data are provided as the barcode block data storage area 21Ni,
During a barcode reading operation, if at least one of the left or right blocks is correctly read as 6-digit barcode data, this 6-digit barcode data is stored only in storage area 21N2 and not in storage area 21N1. Therefore, if data presence/absence detection means 23 detects that no data exists in storage area 21N1, it is determined that the barcode to be read is 13 digits long, preventing it from being misread as an 8-digit barcode and reducing the misreading rate accordingly.
第5図は第4図に示した態様に対応する本発明の一実施
例を示す図である。FIG. 5 shows an embodiment of the present invention corresponding to the embodiment shown in FIG.
第5図において、11はバーコードリーダ、12はバーコー
ドリーダ11内に設けられた発光部である。発光部12はレ
ーザ光を出力し、レーザ光は図外のポリゴンモータによ
って所定のビームパターンとされ、バーコードに当って
反射される。なお、バーコードは8桁と13桁しかないも
のとする。13は受光部であり、受光部13は集光された反
射光を受光してバーコードを電気信号に変換する。In Figure 5, 11 is a barcode reader and 12 is a light-emitting unit provided within the barcode reader 11. The light-emitting unit 12 outputs laser light, which is shaped into a predetermined beam pattern by a polygon motor (not shown) and is reflected off the barcode. Note that barcodes are assumed to have only 8 or 13 digits. 13 is a light-receiving unit that receives the focused reflected light and converts the barcode into an electrical signal.
14はA/D変換部であって受光部13の出力を微分し、デジ
タル信号に変換する。15は量子化を行なうバー幅カウン
タであって、ディジタル信号で表わされたバーコードの
白黒のバー幅をカウントしてカウント値を出力する。An A/D converter 14 differentiates the output of the light receiving unit 13 and converts it into a digital signal. A bar width counter 15 performs quantization and counts the width of the black and white bars of the bar code represented by a digital signal and outputs the count value.
16は復調部であって、バー幅カウンタ15の出力であるデ
ジタル信号を10進数の数字を表わすディジタル信号に復
調する。17はバー幅構成チェック部であって、復調と同
時にバー幅構成をチェックして、8桁及び13のデータの
みをバッファメモリ18に格納させる。したがって、バッ
ファメモリ18には復調され、かつバー幅構成がチェック
された8桁及び13桁のデータのみが保持される。A demodulator 16 demodulates the digital signal output from the bar width counter 15 into a digital signal representing a decimal number. A bar width configuration checker 17 checks the bar width configuration at the same time as demodulation, and stores only 8-digit and 13-digit data in a buffer memory 18. Therefore, the buffer memory 18 holds only the 8-digit and 13-digit data that have been demodulated and whose bar width configuration has been checked.
発光部13、A/D変換器14、バー幅カウンタ15、復調部1
6、及びバー幅構成チェック部17は、第4図に示したバ
ーコードデータ生成手段を構成する。Light emitting unit 13, A/D converter 14, bar width counter 15, demodulation unit 1
6 and the bar width configuration check unit 17 constitute the bar code data generating means shown in FIG.
19は中央処理装置(CPU)であり、メモリ20内にはCPUの
動作に必要なプログラムの他にモジュラスチェックを行
なうためのプログラム20bが格納されており、またバー
コードデータ格納領域として4桁メモリ部21と6桁メモ
リ部211がそれぞれ設けられている。メモリ20には更
に、本発明によりデータ有無検出プログラム20aが格納
されている。バッファメモリ18から読出されたデータに
付加されている桁数は左又は右ブロック毎にCPU19によ
り判別され、その桁数に応じて、データは4桁メモリ部
21または6桁メモリ部211にそれぞれ格納される。4桁
メモリ部21または6桁メモリ部211に格納されたデータ
に対して、メモリ20に格納されているモジュラスチェッ
ク用プログラム20bを用いてCPU19はデータのモジュラス
チェックを行なって、このチェックをパスしたデータの
みを取り出す。23は4桁用比較部であり、予め4桁分の
データ“0"が格納されているレジスタ24内のデータと4
桁メモリ部21から読出されたデータが格納されるレジス
タ25内のデータでモジュラスチェックを通過したものと
を比較し、全桁が一致すれば、すなわち、4桁メモリ部
21のデータがオール“0"であれば“1"を出力し、1桁で
も異なれば、“0"を出力する。26は6桁用比較部であ
り、予め6桁分のデータ“0"が格納されているレジスタ
27内のデータと6桁メモリ部211から読出されたデータ
が格納されるレジスタ28内のデータでモジュラスチェッ
クをパスしたものとを比較し、全桁が一致すれば“1"を
出力し、1桁でも異なれば“0"を出力する。比較部23、
レジスタ24,25および比較部26、レジスタ27,28を用いて
データ有無検出用プログラム20aによりCPU19は4桁デー
タおよび6桁データの有無を検出する。そして、4桁デ
ータが存在していないときのみ、6桁データを上位装置
に送る。こうして、最終的に正しい6桁データの対を1
対のデータとして、インタフェースを介して上位装置
(例えば、バーコードデータの処理、管理を行なうプロ
セッサを有するデータ処理装置)へ送られる。Reference numeral 19 denotes a central processing unit (CPU), and memory 20 stores programs necessary for CPU operation as well as a program 20b for performing modulus checks, and is also provided with a 4-digit memory section 21 and a 6-digit memory section 211 as barcode data storage areas. Memory 20 also stores a data presence/absence detection program 20a according to the present invention. The number of digits added to the data read from buffer memory 18 is determined by CPU 19 for each left or right block, and the data is stored in the 4-digit memory section 211 according to the number of digits.
The data stored in the 4-digit memory section 21 or the 6-digit memory section 211 is stored in the 4-digit memory section 21 or the 6-digit memory section 211. The CPU 19 performs a modulus check on the data stored in the 4-digit memory section 21 or the 6-digit memory section 211 using a modulus check program 20b stored in the memory 20, and extracts only data that pass this check. 23 is a 4-digit comparison section, which compares the data stored in the 4-digit memory section 21 or the 6-digit memory section 211 with the data stored in the register 24, which has four digits of data "0" stored in advance.
The data read from the digit memory section 21 is compared with the data stored in the register 25 that has passed the modulus check, and if all the digits match, that is, if the 4-digit memory section
If the data in 21 is all "0", it outputs "1", and if even one digit is different, it outputs "0". 26 is a 6-digit comparison unit, and is a register in which 6 digits of data "0" are stored in advance.
The comparator 23 compares the data in the register 27 with the data in the register 28 that stores the data read from the 6-digit memory unit 211 and that has passed the modulus check, and outputs "1" if all digits match, and outputs "0" if even one digit differs.
The CPU 19 detects the presence or absence of 4-digit data and 6-digit data by using the registers 24 and 25, the comparator 26, and the registers 27 and 28 in accordance with the data presence/absence detection program 20a. Only when 4-digit data is not present, the CPU 19 sends 6-digit data to the host device. In this way, the correct 6-digit data pair is finally detected.
The paired data is sent via an interface to a host device (for example, a data processing device having a processor that processes and manages bar code data).
尚、片ブロックが4桁のバーコードの読取り時には、6
桁データが読取られることはありえないので、6桁デー
タの有無の検出は行わなくてもよい。When reading a barcode with four digits in one block,
Since the digit data cannot be read, there is no need to detect whether or not there is six-digit data.
次に、動作を更に詳細に説明する。Next, the operation will be described in more detail.
1回の読取り操作により、バーコードはn回走査され、
バーコードに当ったビームの反射光は受光部13で電気信
号に変換され、A/D変換部14によりデジタル信号に変換
される。このデジタル信号はバー幅カウンタ15によりバ
ー幅がカウントされた後、復調部16で10進数を表わすデ
ィジタル信号に復調されるとともに、バー幅構成チェッ
ク部17によってバー幅構成がチェックされて、片ブロッ
クが4桁または6桁のデータのみがバッファメモリ18内
に格納される。バッファメモリ18に格納されているデー
タの形式は第3図に示したものと同様である。In one reading operation, the barcode is scanned n times,
The reflected light of the beam that strikes the bar code is converted into an electrical signal by the light receiving unit 13, and then converted into a digital signal by the A/D conversion unit 14. After the bar width of this digital signal is counted by the bar width counter 15, it is demodulated into a digital signal representing a decimal number by the demodulation unit 16, and the bar width configuration is checked by the bar width configuration check unit 17, and only data with one block consisting of four or six digits is stored in the buffer memory 18. The format of the data stored in the buffer memory 18 is the same as that shown in Figure 3.
8桁ラベルの読取り操作の場合には、片ブロックが4桁
データで構成されているため、ビームの振らせ方のいか
んにかかわらず6桁データと読み取られることがないの
で、バッファメモリ18に格納されているバーコードデー
タの内、4桁データでモジュラスチェックをパスしたも
のは4桁メモリ部21内にすべて格納される。モジュラス
チェックを行なうに際しては、CPU19は8桁用のモジュ
ラスプログラムを用いる。When reading an 8-digit label, one block is made up of 4-digit data, so regardless of how the beam is swung, it will never be read as 6-digit data, and so all 4-digit data from the bar code data stored in buffer memory 18 that passes the modulus check is stored in 4-digit memory section 21. When performing the modulus check, CPU 19 uses a modulus program for 8 digits.
したがって、6桁メモリ部211にデータが存在しないた
め、比較部26からは、信号“1"が出力される。つまり、
6桁メモリ部211からはレジスタ28へデータが入力され
ないので、レジスタ28には6桁分の初期値“0"が入力さ
れており、レジスタ27に予め予定されている“0"との比
較結果が一致するため比較部26からは6桁データが存在
しないことを意味する信号“1"が出力される。この信号
“1"によ読取られたバーコードは8桁であることが判明
する。Therefore, since there is no data in the 6-digit memory section 211, the comparator 26 outputs a signal "1".
Since no data is input from the 6-digit memory section 211 to the register 28, the initial value "0" for 6 digits is input to the register 28, and since the comparison result matches the "0" previously stored in the register 27, the comparator 26 outputs a signal "1" which means that no 6-digit data exists. This signal "1" indicates that the bar code being read is 8 digits long.
一方、13桁ラベルの読取り操作の場合には、ビームの振
り方により、片ブロックの6桁データが4桁データとし
て読み取られ、4桁メモリ部21内に格納される場合が生
じることがあり、一度の読取り操作により例えば第3図
に示す如くバッファメモリ18に6桁データと4桁データ
が混在して格納されることがある。On the other hand, when reading a 13-digit label, depending on how the beam is swung, it may happen that the 6-digit data in one block is read as 4-digit data and stored in the 4-digit memory section 21, and a single reading operation may result in a mixture of 6-digit data and 4-digit data being stored in the buffer memory 18, as shown in Figure 3, for example.
本実施例では、13桁ラベルの読取り操作時に、4桁メモ
リ部21にデータが存在しているかどうかを検出し、存在
していればバッファメモリ18のデータはすべて誤りとし
てクリアするようにしている。つまり、第3図の例で
は、バッファメモリ18に格納されている第1回目、第4
回目…第n回目の読取りデータには6桁データが存在す
るので、CPU19によりこれら6桁データには6桁メモリ
部211に格納される。データ有無検出プログラム20aを用
いてCPU19は4桁メモリ部21から4桁データを読出し
て、レジスタ25へ格納し、比較部23によりレジスタ24の
値と桁対応に比較する。レジスタ24には予めオール“0"
が格納されている。レジスタ25に格納されている4桁デ
ータには「0」でない値が存在するので、比較結果は一
致せず比較部23から信号「0」が出力されるのでCPU19
は4桁メモリ部21には4桁データが存在していることを
検出できる。In this embodiment, when reading a 13-digit label, it is detected whether data exists in the 4-digit memory section 21, and if so, all data in the buffer memory 18 is cleared as an error.
Since six-digit data exists in the read data from the th...nth times, the CPU 19 stores this six-digit data in the six-digit memory section 211. Using the data presence/absence detection program 20a, the CPU 19 reads the four-digit data from the four-digit memory section 21, stores it in the register 25, and compares it with the value of the register 24 in correspondence with the digits by the comparator 23. The register 24 is previously set to all "0".
Since the four-digit data stored in the register 25 contains a value other than "0", the comparison result is not a match and the comparator 23 outputs a signal "0".
can detect that four-digit data exists in the four-digit memory section 21.
この結果、13桁ラベルのバーコードの読取りは誤りであ
ると判別され、バッファメモリ18、4桁メモリ部21及び
6桁メモリ部211の内容はクリアされる。As a result, it is determined that the reading of the bar code on the 13-digit label is an error, and the contents of the buffer memory 18, the 4-digit memory section 21 and the 6-digit memory section 211 are cleared.
要約すると、CPU19はモジュラスチェックを行なうに際
して4桁メモリ部21内のデータについては8桁用モジュ
ラスプログラムを用い、6桁メモリ部211内のデータに
ついては、13桁用モジュラスプログラム(これらのプロ
グラムはいずれもモジュラスチェックプログラムとして
メモリ20内に格納されている。)を用いる。モジュラス
チェックをパスしたデータの内、4桁のデータをCPU19
で検索するが、前述の如く、4桁メモリ部21にデータが
格納されていることが検出されているので、13桁のバー
コードの読取り操作は誤りであったことが判明している
ため、バッファメモリ18、6桁メモリ部211及び4桁メ
モリ部21内のデータはCPU19によりクリアされる。In summary, when performing a modulus check, the CPU 19 uses an 8-digit modulus program for the data in the 4-digit memory section 21, and a 13-digit modulus program for the data in the 6-digit memory section 211 (both of these programs are stored in the memory 20 as modulus check programs). Of the data that passed the modulus check, the CPU 19 checks the 4-digit data.
However, as described above, since it is detected that data is stored in the 4-digit memory section 21, it is determined that the reading operation of the 13-digit bar code was an error, and the data in the buffer memory 18, the 6-digit memory section 211 and the 4-digit memory section 21 is cleared by the CPU 19.
このようにして8桁ラベルと誤認される恐れのあるデー
タは除外される結果、13桁ラベルのバーコードを8桁ラ
ベルのバーコードとして誤読されることが防止される。In this way, data that may be mistaken for an 8-digit label is excluded, preventing a barcode of a 13-digit label from being mistakenly read as a barcode of an 8-digit label.
第6図はバッファメモリ18に格納されているデータの片
ブロックの形式を詳細に示す図である。同図において、
からの6桁の片ブロックデータがバッファメモリ18
に格納され、そのデータ(データAと称する)の先頭
に、桁数6を示すフラグが配置されている。データAの
中の各桁のデータの構成は、データBとして表わされて
いるように、偶数パリティか奇数パリティかを識別する
パリティフラグと、左ブロックデータか右ブロックデー
タかを識別する左/右フラグと、そのブロックのデータ
数値(1〜9の1つ)をディジタル表示したデータ数値
とからなっている。4桁データの場合のデータAは、桁
数フラグが4で、からのデータが格納される。1回
の読取り操作により、第7図に示したデータAの形式の
データが複数個得られ、それぞれに4桁または6桁の桁
数フラグが付されてバッファメモリ18に格納される。FIG. 6 shows in detail the format of one block of data stored in the buffer memory 18.
The 6-digit block data is stored in buffer memory 18.
The data (referred to as data A) is stored in , and a flag indicating the number of digits is placed at the beginning of the data (referred to as data A). As shown as data B, each digit in data A is composed of a parity flag that identifies even or odd parity, a left/right flag that identifies left block data or right block data, and a data value that is a digital representation of the data value of that block (one of 1 to 9). In the case of four-digit data, data A has a digit number flag of 4, and data from is stored. A single read operation obtains multiple pieces of data in the format of data A shown in Figure 7, each of which is assigned a 4-digit or 6-digit digit number flag and stored in buffer memory 18.
第7図は1回の読取り操作によりバッファメモリ18に格
納されたデータAを示す図である。同図に示すように、
n回の走査の各々について、桁数を示すフラグとその片
ブロックデータとが対応付けられて格納される。FIG. 7 shows data A stored in the buffer memory 18 by one read operation. As shown in the figure,
For each of the n scans, a flag indicating the number of digits and the corresponding half block data are stored in association with each other.
第8図は6桁メモリ211の左右のブロック及び4桁メモ
リ21の左右のブロックの内容を示す図である。図示のよ
うに、各メモリには、偶/奇パリティフラグと、左/右
ブロックを示すフラグと、バーコードデータとが格納さ
れる。8 is a diagram showing the contents of the left and right blocks of the 6-digit memory 211 and the left and right blocks of the 4-digit memory 21. As shown in the figure, each memory stores an even/odd parity flag, a flag indicating the left/right block, and barcode data.
第9図は第5図に示したCPU19の動作を説明するフロー
チャートである。同図において、ステップ101で復調部1
6から1回の読取り操作で得られた全データを読み出
し、ステップ102でバー幅構成チェック部17により片ブ
ロックが4桁または6桁のデータかどうかを判別し、4
桁と6桁のデータ以外はステップ103において廃棄され
る。そしてステップ104では、バッファメモリ18に、片
ブロックが4桁または6桁のデータのみが格納される。
こうして、バッファメモリ18には、左右で合計nブロッ
クのデータが格納される。次いでステップ105で、バッ
ファメモリ18から各ブロック毎にデータを読み出し、ス
テップ106でこのデータが4桁か6桁かを桁フラグによ
り判定する。4桁の場合は、ステップ107で右ブロック
か左ブロックかを左右フラグにより判別し、右ブロック
の場合はステップ108で4桁メモリ部21の右ブロック領
域(R−4データメモリと称する)にこのデータを格納
し、左ブロックの場合はステップ109で4桁メモリ部21
の左ブロック領域(L−4データメモリと称する)にこ
のデータを格納する。次いでステップ110でモジュラス
チェックを行い、ステップ111でパリティチェックを行
う。そしてステップ112でこれらのチェック結果がNGで
あれば、読取り誤りとしてステップ115にてバッファメ
モリ18およびR−4データメモリL−4データメモリの
内容をクリアして再度読取り操作を行う。9 is a flow chart for explaining the operation of the CPU 19 shown in FIG. 5. In the figure, in step 101, the demodulator 1
All data obtained in one reading operation is read from the bar width check unit 17, and in step 102, it is determined whether one block contains four or six digit data.
Data other than the four-digit and six-digit data is discarded in step 103. Then, in step 104, only data with one block of four or six digits is stored in the buffer memory 18.
In this way, a total of n blocks of data are stored on the left and right sides in the buffer memory 18. Next, in step 105, data is read out for each block from the buffer memory 18, and in step 106, it is determined by the digit flag whether the data is four or six digits. If it is four digits, in step 107, it is determined by the left and right flag whether it is a right block or a left block. If it is a right block, in step 108, this data is stored in the right block area (referred to as R-4 data memory) of the four-digit memory section 21, and if it is a left block, in step 109, it is stored in the four-digit memory section 21.
This data is stored in the left block area (referred to as L-4 data memory) of the data buffer 18. Next, a modulus check is performed in step 110, and a parity check is performed in step 111. If the check results in step 112 are NG, it is determined that a read error has occurred, and the contents of the buffer memory 18, R-4 data memory, and L-4 data memory are cleared in step 115, and the read operation is performed again.
ステップ112でチェックOKであると、今読出したデータ
ブロックがメモリ18内のブロックの最後かどうか判定
し、最後でなければ、ステップ105から113を繰り返す。
最後のブロックについてステップ105から113の処理を終
了するとステップ114で6桁メモリ部211にデータがある
かどうかを判別する。4桁データの読取り時には通常は
6桁データが読取られることはあり得ないので、ステッ
プ116に進み4桁メモリ部21の左右のブロックのデータ
を上位装置に通知する。8桁ラベルの読取り時は、ステ
ップ114は省略してもよい。If the check is OK in step 112, it is determined whether the data block just read is the last block in memory 18, and if not, steps 105 to 113 are repeated.
When the processing of steps 105 to 113 for the last block is completed, step 114 determines whether there is data in the 6-digit memory section 211. When reading 4-digit data, it is normally impossible to read 6-digit data, so the process proceeds to step 116 and notifies the host device of the data in the left and right blocks of the 4-digit memory section 21. When reading an 8-digit label, step 114 may be omitted.
ステップ106で6桁データであると判別された時、ステ
ップ117から126が実行される。即ち、ステップ117で左
右いずれのブロックかが判別され、左ブロックなら6桁
メモリ部211の左ブロック領域(L−6データメモリ)
に格納され、右ブロックなら6桁メモリ部211の右ブロ
ック領域(R−6データメモリ)に格納される。そして
モジュラスチェック、パリティチェックをステップ120,
121でそれぞれ行い、ステップ122でチェックがOKかどう
か判別し、チェックNGであればバッファメモリ18及び6
桁メモリ部の内容をクリアする。チェックOKであれば、
ステップ123に進みバッファメモリ18内のデータブロッ
クの終りになる迄ステップ105から123を繰り返す。ブロ
ックの終りになると124でR−4データメモリ又はL−
4データメモリ内にデータが存在するかどうかを調べ
る。4桁データが存在していれば、6桁データの読出し
時に、誤って4桁データがデータA内に存在しているこ
とを意味するので、ステップ125でバッファメモリ18、
6桁メモリ211及び4桁メモリ21をすべてクリアして、
再度読取り操作を行う。ステップ124でR−4データ、
L−4データが存在しない場合にのみ、R−6データ、
L−6データ内の6桁データの対を上位装置に通知す
る。When it is determined in step 106 that the data is six digits, steps 117 to 126 are executed. That is, in step 117, it is determined whether the data is in the left or right block. If it is in the left block, the left block area (L-6 data memory) of the six digit memory section 211 is filled with data.
If it is a right block, it is stored in the right block area (R-6 data memory) of the 6-digit memory section 211. Then, a modulus check and a parity check are performed in step 120.
In step 121, it is checked whether the check is OK or not, and if the check is NG, the buffer memory 18 and 6
Clear the contents of the digit memory section. If the check is OK,
The process proceeds to step 123 and steps 105 to 123 are repeated until the end of the data block in the buffer memory 18 is reached. When the end of the block is reached, the R-4 data memory or the L-
It is checked whether data exists in the 4-digit data memory. If 4-digit data exists, it means that 4-digit data is mistakenly present in data A when 6-digit data is read, so in step 125,
Clear all 6-digit memory 211 and 4-digit memory 21,
The read operation is performed again. In step 124, the R-4 data is read.
R-6 data only if L-4 data is not present,
The 6-digit data pair in the L-6 data is notified to the host device.
なお前述の実施例では4桁メモリ部21、6桁メモリ部21
1を別個に設けたが、1つのメモリ部内に4桁データ、
6桁データを格納してもよい。この場合、4桁データ、
6桁データが格納される格納領域のアドレスを予め定め
ておく。そしてCPU19は、6桁データが格納されている
格納領域のアドレスに基づいて、その格納領域からデー
タを読出し、レジスタ25へ格納し前述の比較を行う。In the above-mentioned embodiment, the 4-digit memory section 21 and the 6-digit memory section 21
1 is provided separately, but 4-digit data is stored in one memory section.
Six-digit data may be stored. In this case, four-digit data,
The address of the storage area where the six-digit data is stored is determined in advance. Then, based on the address of the storage area where the six-digit data is stored, the CPU 19 reads the data from that storage area, stores it in the register 25, and performs the above-mentioned comparison.
また前述の実施例では、4桁メモリ部(又は4桁データ
格納領域)、6桁メモリ部(又は6桁データ格納領域)
を設けたが、本発明はこれに限定させることはなく4桁
データ及び6桁データの数を検知することによってバー
コードの読取り操作が正しいか否かを判定してもよい。In the above-described embodiment, a 4-digit memory section (or a 4-digit data storage area), a 6-digit memory section (or a 6-digit data storage area)
However, the present invention is not limited to this, and it may be possible to determine whether the bar code reading operation is correct by detecting the number of 4-digit data and 6-digit data.
この実施例を第10図に示す。This embodiment is shown in FIG.
第10図において、第5図の実施例と同一部分には同一参
照符号を付してある。第5図と異なるところは、メモリ
201に格納されているプログラムは、第5図のデータ有
無検出プログラム20に代えて、桁数有無検出プログラム
30となっていること、および、第5図の4桁データその
ものの有無および6桁データそのものの有無を判定する
ためのレジスタ24,25,27,28および比較部23,26に代え
て、4桁データの数および6桁データの数の有無を判定
するためのレジスタ31,32,34,35と比較部29,33を設けた
ことである。In Fig. 10, the same parts as those in the embodiment of Fig. 5 are given the same reference numerals. The difference from Fig. 5 is the memory
The program stored in 201 is a digit presence/absence detection program instead of the data presence/absence detection program 20 in FIG.
30, and instead of the registers 24, 25, 27, 28 and the comparators 23, 26 shown in FIG. 5 for determining whether or not there is four-digit data itself and whether or not there is six-digit data itself, registers 31, 32, 34, 35 and comparators 29, 33 are provided for determining the number of four-digit data and the number of six-digit data.
第10図に示した実施例の動作を第11図のフローチャート
により説明する。The operation of the embodiment shown in FIG. 10 will be explained with reference to the flow chart of FIG.
第11図において、ステップ201から206までは第10図のス
テップ101から106と同一である。ステップ206で、4桁
か6桁かの判別に応じてそれぞれ、ステップ207または2
18でデータ数をカウントする。次いでステップ208から2
14、またはステップ219から225を、第9図のステップ10
7から113またはステップ117から123と同様に実行し、読
取ったデータブロックが4桁の場合は、ステップ215
で、6桁データカウンタ35の値が0かどうかを判定す
る。0でなければこの読取り操作による読取りデータは
誤りとして、バッファメモリ等をクリアし、0のときの
み、上位装置に読取りデータを通知する。同様に読取っ
たデータが6桁の場合はステップ226で4桁データカウ
ンタ31の値が0かどうかを判定し、0のときのみ上位装
置に読取りデータを通知する。In Fig. 11, steps 201 to 206 are the same as steps 101 to 106 in Fig. 10. In step 206, depending on whether the number is four digits or six digits, step 207 or step 208 is performed.
The number of data items is counted in step 208.
14, or steps 219 to 225, step 10 of FIG.
Execute steps 7 to 113 or steps 117 to 123, and if the read data block is four digits, proceed to step 215
Then, it is determined whether the value of the 6-digit data counter 35 is 0. If it is not 0, the data read by this read operation is deemed to be an error, and the buffer memory etc. is cleared, and only if it is 0, the read data is notified to the host device. Similarly, if the data read is 6 digits, it is determined in step 226 whether the value of the 4-digit data counter 31 is 0, and only if it is 0, the read data is notified to the host device.
なお、本発明はバーコードとして8桁、13桁バーコード
に限らず、適宜の桁数のバーコードであってもよく、さ
らに、バーコードを構成するブロック数も前述の実施例
の如く2個に限られることはない。The present invention is not limited to 8-digit or 13-digit barcodes, but may be applicable to barcodes of any suitable number of digits, and the number of blocks constituting the barcode is not limited to two as in the above-described embodiment.
以上説明してきたように、本発明によれば、読取られた
バーコードデータの桁数を検出し、この結果に基づいて
バーコードデータを処理するため、バーコードデータの
誤読率が低下する。
As described above, according to the present invention, the number of digits in the read bar code data is detected and the bar code data is processed based on this result, thereby reducing the rate of misreading of the bar code data.
Claims (38)
であるバーコードの1回の読み取り操作により該バーコ
ードについて複数のバーブロックデータを生成するステ
ップ(101−105)、 該複数のバーブロックデータのそれぞれの桁数を検出す
るステップ(102,106)、 検出されたバーブロックデータの桁数に対応する格納領
域に該バーブロックデータを格納するステップ(108,10
9,118,119)、 該格納領域の異なる二つにバーブロックデータが格納さ
れたか否かを検出するステップ(114,124)、および 該格納領域の異なる二つにバーブロックデータが格納さ
れている場合は該バーコードの読み取り操作を誤りであ
ったと判定するステップ(115,125)を備えていること
を特徴とするバーコード読み取り方法。[Claim 1] A method for reading a barcode having one of a plurality of predetermined standard values by a single reading operation of the barcode, the method comprising the steps of generating a plurality of barcode block data for the barcode (101-105), detecting the number of digits of each of the plurality of barcode block data (102, 106), and storing the barcode block data in a storage area corresponding to the number of digits of the detected barcode block data (108, 109).
9, 118, 119), a step of detecting whether or not bar-block data is stored in two different storage areas (114, 124), and a step of determining that the bar-code reading operation was an error if bar-block data is stored in two different storage areas (115, 125).
テップ(101−105)では、複数の左バーブロックデータ
と複数の右バーブロックデータとを生成することを特徴
とする請求項の1に記載のバーコード読み取り方法。2. The barcode reading method according to claim 1, wherein in the step of generating a plurality of bar block data (101-105), a plurality of left bar block data and a plurality of right bar block data are generated.
するステップ(108,109,118,119)では、検出されたバ
ーブロックデータの桁数および生成されたバーブロック
データが左バーブロックデータか右バーブロックデータ
かに応じて対応する桁数の左バーブロックデータ格納領
域及び右バーブロックデータ格納領域に格納するステッ
プを含むことを特徴とする請求項の2に記載のバーコー
ド読み取り方法。[Claim 3] The barcode reading method described in claim 2, characterized in that the step (108, 109, 118, 119) of storing the bar block data in the storage area includes a step of storing the detected bar block data in a left bar block data storage area and a right bar block data storage area of corresponding number of digits depending on the number of digits of the detected bar block data and whether the generated bar block data is left bar block data or right bar block data.
は、該予め定められた複数の規格値のいずれとも不一致
の桁数を有するバーブロックデータを廃棄するステップ
(102,103)を含むことを特徴とする請求項の1に記載
のバーコード読み取り方法。[Claim 4] A barcode reading method as described in claim 1, characterized in that the step (102, 106) of detecting the number of digits includes a step (102, 103) of discarding bar block data having a number of digits that does not match any of the predetermined multiple standard values.
テップ(101−105)では、生成した複数のバーブロック
データをバッファメモリに格納するステップ(104)を
含むことを特徴とする請求項の1に記載のバーコード読
み取り方法。[Claim 5] A barcode reading method as described in claim 1, characterized in that the step (101-105) of generating a plurality of bar block data includes a step (104) of storing the generated plurality of bar block data in a buffer memory.
するステップ(108,109,118,119)の次に、格納された
バーブロックデータについてモジュラス10チェック及び
パリティチェック(110,111,120,121)を行うことを特
徴とする請求項の1に記載のバーコード読み取り方法。[Claim 6] A barcode reading method as described in claim 1, characterized in that after the step (108, 109, 118, 119) of storing the barblock data in the storage area, a modulus 10 check and a parity check (110, 111, 120, 121) are performed on the stored barblock data.
バッファメモリから読み出してその桁数を検出する(10
6)ようにしたことを特徴とする請求項の5に記載のバ
ーコード読み取り方法。7. The plurality of bar block data are read out one by one from the buffer memory and the number of digits is detected (10
6) The bar code reading method according to claim 5, wherein:
応する格納領域に該バーブロックデータを格納するステ
ップ(108,109,118,119)の次に、該バッファメモリ内
の全てのバーブロックデータが読み出されたか否かを判
定するステップ(113)を有し、否であれば該複数のバ
ーブロックデータのそれぞれの桁数を検出するステップ
(106)および該検出されたバーブロックデータの桁数
に対応する格納領域に該バーブロックデータを格納する
ステップ(108,109,118,119)を繰り返し、肯であれば
該格納領域の異なる二つにバーブロックデータが格納さ
れたか否かを検出するステップ(114,124)および該格
納領域の異なる二つにバーブロックデータが格納されて
いる場合は該バーコードの読み取り操作を誤りであった
と判定するステップ(115,125)を実行することを特徴
とする請求項の7に記載のバーコード読み取り方法。[Claim 8] A barcode reading method as described in claim 7, characterized in that after the step (108, 109, 118, 119) of storing the detected barblock data in a storage area corresponding to the number of digits of the barblock data, a step (113) of determining whether all barblock data in the buffer memory have been read out is performed, and if not, the step (106) of detecting the number of digits of each of the plurality of barblock data and the step (108, 109, 118, 119) of storing the barblock data in a storage area corresponding to the number of digits of the detected barblock data are repeated, and if the result is yes, the step (114, 124) of detecting whether barblock data has been stored in two different storage areas is performed, and if barblock data has been stored in two different storage areas, a step (115, 125) of determining that the barcode reading operation was an error is performed.
ータが格納されている場合は該バッファメモリの内容を
クリアするステップ(115,125)を含む請求項の5に記
載のバーコード読み取り方法。9. The bar code reading method according to claim 5, further comprising the step of clearing the contents of said buffer memory when bar block data is stored in two different storage areas.
データが格納されていない場合は、該バーコードの読み
取り操作が正しいと判定して、読み取ったデータを上位
装置に通知するステップ(116,126)を含むことを特徴
とする請求項の5記載のバーコード読み取り方法。[Claim 10] A barcode reading method as described in claim 5, characterized in that it includes a step (116, 126) of determining that the barcode reading operation is correct and notifying the read data to a higher-level device if no barcode block data is stored in the two different storage areas.
つであるバーコードの1回の読み取り操作により該バー
コードについて複数のバーブロックデータを生成するス
テップ(201−205)、 該複数のバーブロックデータのそれぞれの桁数を検出す
るステップ(202,206)、 検出されたバーブロックデータの桁数毎に該バーブロッ
クデータ数をカウントするステップ(207)、 異なる二つの桁数のバーブロックデータ数がカウントさ
れたか否かを検出するステップ(215,226)、および 異なる二つの桁数のバーブロックデータ数がカウントさ
れている場合は該バーコードを読み取り操作を誤りであ
ったと判定するステップを備えていることを特徴とする
バーコード読み取り方法。[Claim 11] A barcode reading method comprising the steps of: generating a plurality of bar block data for a barcode having a number of digits that is one of a plurality of predetermined standard values by a single reading operation of the barcode (201-205); detecting the number of digits of each of the plurality of bar block data (202, 206); counting the number of bar block data for each number of digits of the detected bar block data (207); detecting whether or not the number of bar block data having two different numbers of digits has been counted (215, 226); and determining that the reading operation of the barcode was an error if the number of bar block data having two different numbers of digits has been counted.
ステップ(201−205)では、複数の左バーブロックデー
タと複数の右バーブロックデータとを生成することを特
徴とする請求項の11に記載のバーコード読み取り方法。12. The barcode reading method according to claim 11, wherein the step of generating a plurality of bar block data (201-205) generates a plurality of left bar block data and a plurality of right bar block data.
ステップ(207)では、検出されたバーブロックデータ
の桁数および生成されたバーブロックデータが左バーブ
ロックデータか右バーブロックデータかに応じて対応す
る桁数の左バーブロックデータ数格納領域及び右バーブ
ロックデータ数格納領域にバーブロックデータを格納す
るステップ(209,210,220,221)を含むことを特徴とす
る請求項の12に記載のバーコード読み取り方法。[Claim 13] The barcode reading method described in claim 12, characterized in that the step (207) of counting the number of bar block data includes steps (209, 210, 220, 221) of storing the bar block data in a left bar block data number storage area and a right bar block data number storage area of corresponding digit numbers depending on the number of digits of the detected bar block data and whether the generated bar block data is left bar block data or right bar block data.
では、該予め定められた複数の規格値のいずれとも不一
致の桁数を有するバーブロックデータを廃棄するステッ
プ(203)を含むことを特徴とする請求項の11に記載の
バーコード読み取り方法。14. A step of detecting the number of digits (202, 206).
12. The barcode reading method according to claim 11, further comprising a step (203) of discarding bar block data having a number of digits that does not match any of the plurality of predetermined standard values.
ステップ(201−205)では、生成した複数のバーブロッ
クデータをバッファメモリに格納するステップ(204)
を含むことを特徴とする請求項の11に記載のバーコード
読み取り方法。15. The step of generating a plurality of bar block data (201-205) includes a step of storing the generated plurality of bar block data in a buffer memory (204).
12. The barcode reading method according to claim 11, further comprising:
ステップ(207)の次に、格納されたバーブロックデー
タについてモジュラス10チェック及びパリティチェック
(211,212,222,223)を行うことを特徴とする請求項の1
3に記載のバーコード読み取り方法。16. The method according to claim 1, wherein, after the step (207) of counting the number of bar block data, a modulus 10 check and a parity check (211, 212, 222, 223) are performed on the stored bar block data.
3. A barcode reading method according to claim 3.
該バッファメモリから読み出してその桁数を検出するよ
うにした(205)ことを特徴とする請求項の15に記載の
バーコード読み取り方法。17. The bar code reading method according to claim 15, wherein the plurality of bar block data are read out one by one from the buffer memory and the number of digits is detected (205).
ステップ(207)の次に、該バッファメモリ内の全ての
バーブロックデータが読み出されたか否かを判定するス
テップ(214,225)を有し、否であれば該複数のバーブ
ロックデータのそれぞれの桁数を検出するステップ(20
6)および該検出されたバーブロックデータの桁数に対
応する該バーブロックデータ数をカウントするステップ
を繰り返し、肯であれば異なる二つのバーブロックデー
タ数がカウントされたか否かを検出するステップ(215,
226)および異なる二つのバーブロックデータ数がカウ
ントされている場合は該バーコードの読み取り操作を誤
りであったと判定するステップ(216,227)を実行する
ことを特徴とする請求項の17に記載のバーコード読み取
り方法。18. The method according to claim 18, further comprising the steps of: counting the number of bar block data; determining whether or not all bar block data in the buffer memory have been read; and if not, detecting the number of digits of each of the plurality of bar block data.
6) and the step of counting the number of bar block data corresponding to the number of digits of the detected bar block data, and if yes, detecting whether two different bar block data numbers have been counted (215,
226) and if two different bar block data numbers are counted, determining that the bar code reading operation was an error (216, 227).
ウントされている場合は該バッファメモリの内容をクリ
アするステップ(216,227)を含む請求項の15に記載の
バーコード読み取り方法。19. A bar code reading method according to claim 15, further comprising the step of clearing the contents of said buffer memory when two different bar block data numbers have been counted.
ウントされていない場合は、該バーコードの読み取り操
作が正しいと判定して、読み取ったデータを上位装置に
通知するステップ(217,228)を含むことを特徴とする
請求項の15に記載のバーコード読み取り方法。[Claim 20] A barcode reading method as described in claim 15, characterized in that it includes a step (217, 228) of determining that the barcode reading operation is correct and notifying the read data to a higher-level device if the number of data of two different bar blocks has not been counted.
つであるバーコードの1回の読み取り操作により該バー
コードについて複数のバーブロックデータを生成するバ
ーブロックデータ生成手段(11)、 該バーブロックデータ生成手段により得られた複数のバ
ーブロックデータのそれぞれの桁数を検出する桁数検出
手段(22)、 該複数の規定値にそれぞれ対応して設けられた複数のバ
ーブロックデータ格納手段(21Ni)、および 該複数のバーブロックデータ格納手段の少なくとも異な
る二つにバーブロックデータが存在するか否かを検出す
るデータ有無検出手段(23)を具備し、 該バーブロックデータ生成手段(13)から出力されるバ
ーブロックデータの各々を、該桁数検出手段(22)の出
力に得られる桁数に対応する該バーブロックデータ格納
手段に格納し、 該データ有無検出手段(23)により該複数のバーブロッ
クデータ格納手段の少なくとも異なる二つにバーブロッ
クデータが存在すると判定されたときは該バーコードの
読み取り操作は誤りであると判定するようにしたことを
特徴とするバーコード読み取り装置。[Claim 21] A barcode reading device comprising: bar block data generating means (11) for generating a plurality of bar block data for a barcode by a single reading operation of the barcode whose number of digits is one of a plurality of predetermined standard values; digit number detecting means (22) for detecting the number of digits of each of the plurality of bar block data obtained by the bar block data generating means; a plurality of bar block data storage means (21Ni) provided corresponding to the plurality of specified values, respectively; and data presence/absence detecting means (23) for detecting whether bar block data exists in at least two different ones of the plurality of bar block data storage means, wherein each of the bar block data output from the bar block data generating means (13) is stored in the bar block data storage means corresponding to the number of digits obtained in the output of the digit number detecting means (22); and when the data presence/absence detecting means (23) determines that bar block data exists in at least two different ones of the plurality of bar block data storage means, the barcode reading operation is determined to be an error.
は、検出されたバーブロックデータの桁数に応じて該バ
ーブロックデータを格納するための対応する桁数のレジ
スタ(25,28)と、オール0を予め格納する同一桁数の
レジスタ(24,27)と、比較手段(23,26)とをそれぞれ
の桁数に対応して備えており、該データ有無検出手段
(23)は、各桁数毎にレジスタの内容を比較することに
よりデータの有無を検出するようにしたことを特徴とす
る請求項の21に記載のバーコード読み取り装置。22. The bar block data storage means (21Ni)
22. The barcode reading device according to claim 21, further comprising: registers (25, 28) for storing the barcode data in accordance with the number of digits of the detected barcode data; registers (24, 27) for storing all 0s in advance in the same number of digits; and comparison means (23, 26) for each number of digits, and the data presence/absence detection means (23) detects the presence or absence of data by comparing the contents of the registers for each number of digits.
れた複数の規格値のいずれとも不一致の桁数を有するバ
ーブロックデータを廃棄する手段を含むことを特徴とす
る請求項の21に記載のバーコード読み取り装置。23. The barcode reading device according to claim 21, wherein the digit number detection means (22) includes means for discarding bar block data having a digit number that does not match any of the predetermined standard values.
は、生成した複数のバーブロックデータを格納するバッ
ファメモリ(18)を含むことを特徴とする請求項の21に
記載のバーコード読み取り装置。24. The bar code reader according to claim 21, wherein said plurality of bar block data generating means includes a buffer memory (18) for storing the generated plurality of bar block data.
納した後に、格納されたバーブロックデータについてモ
ジュラスチェック及びパリティチェックを行う手段(20
b)を具備することを特徴とする請求項の21に記載のバ
ーコード読み取り装置。25. A means for performing a modulus check and a parity check on the stored bar block data after storing the bar block data in the storage area.
22. The barcode reading device according to claim 21, further comprising: b).
クデータを1つづつ該バッファメモリ(18)から読み出
してその桁数を検出するものであることを特徴とする請
求項の24に記載のバーコード読み取り装置。26. The bar code reader according to claim 24, wherein said digit number detection means reads out said plurality of bar block data one by one from said buffer memory (18) and detects the number of digits thereof.
リ(18)内の全てのバーブロックデータが読み出された
か否かを判定する手段を有し、否であれば該複数のバー
ブロックデータのそれぞれの桁数を検出し該検出された
バーブロックデータの桁数に対応する格納領域に該バー
ブロックデータを格納することを繰り返す手段と、肯で
あれば該格納領域の異なる二つにバーブロックデータが
格納されたか否かを検出する手段および該格納領域の異
なる二つにバーブロックデータが格納されている場合は
該バーコードの読み取り操作を誤りであったと判定する
手段とを具備することを特徴とする請求項の26に記載の
バーコード読み取り装置。[Claim 27] The barcode reading device described in Claim 26, characterized in that the data presence/absence detection means includes means for determining whether all bar block data in the buffer memory (18) has been read out, and if not, means for detecting the number of digits of each of the multiple bar block data and repeatedly storing the bar block data in a storage area corresponding to the number of digits of the detected bar block data, and if the result is yes, means for detecting whether bar block data has been stored in two different storage areas, and means for determining that the barcode reading operation was an error if bar block data has been stored in two different storage areas.
データが格納されている場合は該バッファメモリの内容
をクリアする手段を含む請求項の24に記載のバーコード
読み取り方法。28. The bar code reading method according to claim 24, further comprising means for clearing the contents of said buffer memory when bar block data is stored in two different storage areas.
データが格納されていない場合は、該バーコードの読み
取り操作が正しいと判定して、読み取ったデータを上位
装置に通知する手段を含むことを特徴とする請求項の24
に記載のバーコード読み取り装置。29. The method according to claim 24, further comprising means for determining that the bar code reading operation is correct and notifying the host device of the read data when no bar code block data is stored in the two different storage areas.
A barcode reading device according to claim 1.
つであるバーコードの1回の読み取り操作により該バー
コードについて複数のバーブロックデータを生成するバ
ーブロックデータ生成手段(11)、 該バーブロックデータ生成手段により得られた複数のバ
ーブロックデータのそれぞれの桁数を検出する桁数検出
手段(22)、 該複数の規定値にそれぞれ対応して設けられた複数のバ
ーブロックデータ数カウンタ手段、および 該複数のバーブロックデータ数カウント手段の少なくと
も異なる二つにバーブロックデータ数が存在するか否か
を検出する桁数有無検出手段(23)を具備し、 該バーブロックデータ生成手段(11)から出力されるバ
ーブロックデータの数の各々を、該桁数有無検出手段
(30)によりカウントする該バーブロックデータ数格納
手段に格納し、 該桁数有無検出手段(30)により異なる桁数の複数のバ
ーブロックデータの少なくとも二つのバーブロックデー
タ数がカウントされていると判定されたときは該バーコ
ードの読み取り操作は誤りであると判定するようにした
ことを特徴とするバーコード読み取り装置。[Claim 30] A barcode reading device comprising: bar block data generating means (11) for generating a plurality of bar block data for a barcode in a single reading operation of the barcode, the number of digits of which is one of a plurality of predetermined standard values; digit number detecting means (22) for detecting the number of digits of each of the plurality of bar block data obtained by the bar block data generating means; a plurality of bar block data number counter means provided corresponding to each of the plurality of specified values; and digit number presence/absence detecting means (23) for detecting whether or not the number of bar block data exists in at least two different ones of the plurality of bar block data number counting means; each number of bar block data output from the bar block data generating means (11) is stored in bar block data number storage means counted by the digit number presence/absence detecting means (30); and when it is determined by the digit number presence/absence detecting means (30) that the number of bar block data has been counted in at least two of the plurality of bar block data having different numbers of digits, it is determined that the reading operation of the barcode is an error.
は、検出されたバーブロックデータの桁数に応じて該バ
ーブロックデータ数を格納するためのレジスタと、オー
ル0を予め格納するレジスタと、比較手段とをそれぞれ
の桁数に対応して備えており、該桁数有無検出手段(3
0)は、各桁数毎にレジスタの内容を比較することによ
り異なる桁数の有無を検出するようにしたことを特徴と
する請求項の30に記載のバーコード読み取り装置。The bar block data number counting means includes a register for storing the number of bar block data according to the number of digits of the detected bar block data, a register for storing all 0s in advance, and a comparison means, each corresponding to the number of digits.
31. The bar code reader according to claim 30, wherein the content of the register is compared for each number of digits to detect whether or not there is a different number of digits.
められた複数の規格値のいずれとも不一致の桁数を有す
るバーブロックデータを廃棄する手段を含むことを特徴
とする請求項の30に記載のバーコード読み取り装置。[Claim 32] A barcode reading device as described in Claim 30, characterized in that the digit number presence/absence detection means (30) includes means for discarding bar block data having a number of digits that does not match any of the predetermined multiple standard values.
は、生成した複数のバーブロックデータを格納するバッ
ファメモリ(18)を含むことを特徴とする請求項の30に
記載のバーコード読み取り装置。33. The bar code reader according to claim 30, wherein said plurality of bar block data generating means includes a buffer memory (18) for storing the generated plurality of bar block data.
ら出力されたバーブロックデータについてモジュラスチ
ェック及びパリティチェックを行う手段(20b)を具備
することを特徴とする請求項の30に記載のバーコード読
み取り装置。34. The bar code reader according to claim 30, further comprising means (20b) for performing a modulus check and a parity check on the bar block data output from said bar block data generating means (13).
クデータを1つづつ該バッファメモリ(18)から読み出
してその桁数を検出するものであることを特徴とする請
求項の33に記載のバーコード読み取り装置。35. The bar code reader according to claim 33, wherein said digit number detection means reads out said plurality of bar block data one by one from said buffer memory (18) and detects the number of digits thereof.
ァメモリ(18)内の全てのバーブロックデータが読み出
されたか否かを判定する手段を有し、否であれば該複数
のバーブロックデータのそれぞれの桁数を検出し該検出
されたバーブロックデータの桁数に対応する該バーブロ
ックデータ数をカウントすることを繰り返す手段と、肯
であれば異なる二つのバーブロックデータ数がカウント
されたか否かを検出する手段および異なる二つにバーブ
ロックデータ数がカウントされている場合は該バーコー
ドの読み取り操作を誤りであったと判定する手段とを具
備することを特徴とする請求項の35に記載のバーコード
読み取り装置。[Claim 36] The barcode reading device described in claim 35, characterized in that the digit presence/absence detection means (30) has means for determining whether all bar block data in the buffer memory (18) have been read out, and if not, means for detecting the number of digits of each of the multiple bar block data and repeatedly counting the number of bar block data corresponding to the number of digits of the detected bar block data, and if the result is yes, means for detecting whether two different numbers of bar block data have been counted, and means for determining that the barcode reading operation was an error if two different numbers of bar block data have been counted.
ウントされている場合は該バッファメモリ(18)の内容
をクリアする手段を含む請求項の33に記載のバーコード
読み取り方法。37. The bar code reading method according to claim 33, further comprising a means for clearing the contents of said buffer memory (18) when two different bar block data numbers have been counted.
ウントされていない場合は、該バーコードの読み取り操
作が正しいと判定して、読み取ったデータを上位装置に
通知する手段を含むことを特徴とする請求項の33に記載
のバーコード読み取り装置。[Claim 38] A barcode reading device as described in claim 33, characterized in that it includes means for determining that the barcode reading operation is correct and notifying a host device of the read data if the number of data of two different bar blocks has not been counted.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2-507429A JPH073669B2 (en) | 1989-05-17 | 1990-05-17 | Barcode reading method and device |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1-123402 | 1989-05-17 | ||
| JP12340289 | 1989-05-17 | ||
| JP2-507429A JPH073669B2 (en) | 1989-05-17 | 1990-05-17 | Barcode reading method and device |
Publications (3)
| Publication Number | Publication Date |
|---|---|
| JPWO1990014638A1 JPWO1990014638A1 (en) | 1991-05-09 |
| JPH073669B2 true JPH073669B2 (en) | 1995-01-18 |
| JPH073669B1 JPH073669B1 (en) | 1995-01-18 |
Family
ID=26460350
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2-507429A Expired - Lifetime JPH073669B2 (en) | 1989-05-17 | 1990-05-17 | Barcode reading method and device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH073669B2 (en) |
-
1990
- 1990-05-17 JP JP2-507429A patent/JPH073669B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH073669B1 (en) | 1995-01-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2616921B2 (en) | Label identification device | |
| EP0043124B1 (en) | Method for decoding bar-coded labels | |
| EP0390162B1 (en) | An apparatus for reading a bar code | |
| JPS6156552B2 (en) | ||
| US5189289A (en) | Distinguishing bar code types by comparing bar block sizes | |
| US5686715A (en) | Add-on bar-code reading apparatus in a bar-code reader | |
| EP0464713B1 (en) | Bar-code reading apparatus | |
| KR100308415B1 (en) | Bar code reading device, bar code reading method and computer readable medium | |
| JPH0449480A (en) | Bar code reading system | |
| EP0895175B1 (en) | Process for scanning a bar-code | |
| JPH073669B2 (en) | Barcode reading method and device | |
| JP3448404B2 (en) | Barcode reading device and barcode reading method | |
| JPWO1990014638A1 (en) | Barcode reading method and device | |
| JPH08263585A (en) | Code reader | |
| JP3404887B2 (en) | Barcode reader | |
| JP3234405B2 (en) | Bar code reader and method | |
| US6478224B1 (en) | Symbology-independent method and apparatus for identifying potential bar code data | |
| JP2730273B2 (en) | Barcode reading device and barcode reading method | |
| JPH06195497A (en) | Bar code decoder | |
| JP3018702B2 (en) | Barcode demodulator | |
| JP2953143B2 (en) | Barcode reading device and barcode reading method | |
| JPH04277887A (en) | Add-on bar code reader | |
| JPH0331979A (en) | System for reading bar code | |
| JP2742920B2 (en) | Barcode reader | |
| JP2786201B2 (en) | Barcode demodulator |