JP2641991B2 - Data processing method of bar code reader - Google Patents

Data processing method of bar code reader

Info

Publication number
JP2641991B2
JP2641991B2 JP3021196A JP2119691A JP2641991B2 JP 2641991 B2 JP2641991 B2 JP 2641991B2 JP 3021196 A JP3021196 A JP 3021196A JP 2119691 A JP2119691 A JP 2119691A JP 2641991 B2 JP2641991 B2 JP 2641991B2
Authority
JP
Japan
Prior art keywords
data
type
bar code
upc
jan
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 - Fee Related
Application number
JP3021196A
Other languages
Japanese (ja)
Other versions
JPH04259087A (en
Inventor
敏浩 一戸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP3021196A priority Critical patent/JP2641991B2/en
Publication of JPH04259087A publication Critical patent/JPH04259087A/en
Application granted granted Critical
Publication of JP2641991B2 publication Critical patent/JP2641991B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、ラベル等からバーコー
ドを読取るバーコード読取装置のデータ処理方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing method for a bar code reader for reading a bar code from a label or the like.

【0002】[0002]

【従来の技術】スーパマーケット等においては商品にバ
ーコードラベルを貼付したり、あるいはバーコードを直
接印刷しておき、商品が購入されたときに商品のバーコ
ードをバーコード読取装置によって読取り商品登録処理
を行うようになっている。このように商品に付されるバ
ーコードのタイプとしてはUPC(Universal Produ
cts Code )、EAN(European Article Number
)、JAN(JapanesArticle Number )が一般に
知られている。そしてUPCはさらにUPC−A、UP
C−E、UPC−Dの3つのタイプがあり、EANとJ
ANは全く同じ構成でEAN/JAN−13とEAN/
JAN−8の2つのタイプがある。これらの各種バーコ
ードのうちUPC−A、UPC−E、EAN/JAN−
13、EAN/JAN−8が最も多く使用されている。
2. Description of the Related Art In a supermarket or the like, a barcode label is attached to a product or a barcode is directly printed, and when a product is purchased, the barcode of the product is read by a barcode reader and registered. Processing is performed. As described above, UPC (Universal Produ
cts Code), EAN (European Article Number)
) And JAN (Japanes Article Number) are generally known. And UPC is UPC-A, UP
There are three types, CE and UPC-D.
AN has exactly the same configuration and EAN / JAN-13 and EAN /
There are two types of JAN-8. UPC-A, UPC-E, EAN / JAN-
13. EAN / JAN-8 is most often used.

【0003】UPC−AとEAN/JAN−13は図5
に示す構成で、全体が13桁で、例えば最初の2桁「0
0」が国コードを示し、次の5桁「12345」が商品
メーカコードを示し、次の5桁「67890」が商品ア
イテムコードを示し、最後の1桁「5」がモジュラチェ
ックキャラクタを示している。またセンターバーを間に
左側に6キャラクタのデータキャラクタ、右側に5キャ
ラクタのデータキャラクタがある。そしてUPC−Aは
左側データキャラクタのパリティがすべて奇数、右側デ
ータキャラクタのパリティがすべて偶数となっているの
に対してEAN/JAN−13はそれ以外となっている
ため両者は区別できるようになっている。またUPC−
Eは図6に示す構成で、5キャラクタのデータキャラク
タと1キャラクタのモジュラチェックキャラクタの6キ
ャラクタのみで構成されている。
[0003] UPC-A and EAN / JAN-13 are shown in FIG.
In the configuration shown in the figure, the whole is 13 digits, for example, the first two digits “0”
"0" indicates a country code, the next five digits "12345" indicate a product maker code, the next five digits "67890" indicates a product item code, and the last one digit "5" indicates a modular check character. I have. In addition, there are 6 data characters on the left side and 5 data characters on the right side of the center bar. In the UPC-A, the parity of the left data character is all odd, and the parity of the right data character is all even, whereas in EAN / JAN-13, the two are distinguishable. ing. UPC-
E has the configuration shown in FIG. 6 and is composed of only six characters, that is, five data characters and one modular check character.

【0004】またEAN/JAN−8は図7に示す構成
で、全体が8桁で、例えば最初の2桁「49」が国コー
ドを示し、次の4桁「1234」が商品メーカコードを
示し、次の1桁「9」が商品アイテムコードを示し、最
後の1桁「4」がモジュラチェックキャラクタを示して
いる。またセンターバーを間に左側に4キャラクタのデ
ータキャラクタ、右側に3キャラクタのデータキャラク
タがある。そして左側データキャラクタのパリティがす
べて奇数、右側データキャラクタのパリティがすべて偶
数となっている。
Further, EAN / JAN-8 has a configuration shown in FIG. 7, in which the whole is eight digits, for example, the first two digits "49" indicate a country code, and the next four digits "1234" indicate a product maker code. The next digit “9” indicates the commodity item code, and the last digit “4” indicates the modular check character. There are four data characters on the left and three data characters on the right with the center bar in between. The parity of the left data character is all odd, and the parity of the right data character is all even.

【0005】このような各種バーコードを読取るバーコ
ード読取装置としては例えば図8に示す定置式バーコー
ド読取装置があり、この装置は読取窓1からレーザビー
ムを各種方向a,b,c,d,eに掃引し、商品2に付
されたバーコードラベル3のバーコードを読取るように
なっている。そしてこのバーコード読取装置はUPC−
A、EAN/JAN−13、EAN/JAN−8のよう
にセンターバーを中心に左右にバーコードがあるものに
ついては左右独立してバーコードをデコードし、その後
左右のデータを組み合わせて1つのバーコード読取デー
タとして出力することも可能である。
[0005] As a bar code reader for reading such various bar codes, for example, there is a stationary bar code reader shown in FIG. 8. This device transmits a laser beam from a reading window 1 in various directions a, b, c, d. , E, and reads the bar code of the bar code label 3 attached to the product 2. And this bar code reader is UPC-
A, such as A, EAN / JAN-13, and EAN / JAN-8, which have barcodes on the left and right around the center bar, decode the barcodes independently on the left and right, and then combine the left and right data to form one bar. It is also possible to output as code reading data.

【0006】[0006]

【発明が解決しようとする課題】このようなバーコード
読取装置において例えばUPC−Aのバーコードをレー
ザビームが図9に実線で示すように掃引した場合を考え
ると、UPC−Aの左側データキャラクタのパリティは
すべて奇数であり、右側データキャラクタのパリティは
すべて偶数である。またEAN/JAN−8も同様に左
側データのパリティはすべて奇数であり、右側データの
パリティはすべて偶数である。
In such a bar code reader, for example, when a laser beam sweeps a bar code of UPC-A as shown by a solid line in FIG. 9, the left data character of UPC-A is considered. Are all odd and the parity of the right data character is all even. Similarly, in EAN / JAN-8, all the parities of the left data are odd, and all the parities of the right data are even.

【0007】従ってUPC−Aのバーコードをレーザビ
ームが図9に実線で示すように掃引すると、左右の外側
のコードが欠落しその結果EAN/JAN−8のバーコ
ードとして成立する可能性があり、さらにEAN/JA
N−8としてのチェックキャラクタが正しい場合にはU
PC−AをEAN/JAN−8として誤読する問題があ
った。
Accordingly, when the UPC-A bar code is swept by a laser beam as shown by a solid line in FIG. , And EAN / JA
If the check character as N-8 is correct, U
There was a problem that PC-A was misread as EAN / JAN-8.

【0008】またUPC−Aのバーコードをレーザビー
ムが図10の(a) に示すように掃引されると左側半分が
EAN/JAN−8としてデコードされ、その後ラベル
の移動によりレーザビームが図10の(b) に示すように
掃引されると右側半分がEAN/JAN−8としてデコ
ードされる。そして左右独立してデコードされたデータ
が組み合わされると同じくUPC−AをEAN/JAN
−8として誤読する問題があった。
When the UPC-A bar code is swept by the laser beam as shown in FIG. 10A, the left half is decoded as EAN / JAN-8. (B), the right half is decoded as EAN / JAN-8. Then, when the left and right independently decoded data are combined, UPC-A is also converted to EAN / JAN.
There was a problem of misreading as -8.

【0009】さらにUPC−EについてはちょうどUP
C−AやEAN/JAN−13を途中で横切ったような
形状をしている。しかしこれらのコードはパリティの並
びが異なるためUPC−Eは区別して認識される。
Further, for UPC-E, just UP
It has a shape that crosses CA and EAN / JAN-13 on the way. However, since these codes have different parities, the UPC-E is distinguished and recognized.

【0010】一方、バーコードをデコードする場合、外
乱光や電気的ノイズの影響によりデコーダに入力される
信号が変形を受けている場合が多く、必ずしも本来のバ
ー幅に完全に対応しているとは言えない。このためUP
C−AやEAN/JAN−13を部分的にビームが横切
り、しかも信号に変形を受けた場合、ときによってバリ
ティ並びがUPC−Eを成立させてしまいUPC−Aや
EAN/JAN−13をUPC−Eと誤読する問題があ
った。
On the other hand, when decoding a bar code, the signal input to the decoder is often deformed due to the influence of disturbance light or electric noise, and it is not always necessary to completely correspond to the original bar width. I can't say. For this reason, UP
When the beam partially traverses CA and EAN / JAN-13 and the signal is deformed, the variability arrangement sometimes establishes UPC-E, and the UPC-A or EAN / JAN-13 becomes UPC-E. There was a problem of misreading as -E.

【0011】このように従来においては、UPC−Aの
バーコードを部分的にビームが横切り、その部分的なデ
ータがEAN−8として成立してしまったり、UPC−
AあるいはEAN/JAN−13のバーコードを部分的
にビームが横切り、さらに、その横切ったときのデータ
がノイズ等の影響で変形することにより、その部分的な
データがUPC−Eとして成立してしまったりして、本
来のバーコードと異なるタイプのバーコードとして認識
して誤読が発生するという問題があった。
As described above, conventionally, the UPC-A
The beam partially traverses the barcode and the partial data
Data is established as EAN-8 or UPC-
Partial A or EAN / JAN-13 barcode
The beam traversed, and the data when it traversed
Is deformed by the influence of noise, etc.
When data is established as UPC-E,
Recognized as a different type of barcode from conventional barcode
There is a problem that misreading occurs .

【0012】そこで本発明は、読取ったバーコードの誤
読を防止でき、従って正確なバーコード読取データを出
力できるバーコード読取装置のデータ処理方法を提供し
ようとするものである。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a data processing method of a bar code reading apparatus which can prevent erroneous reading of a read bar code and can output accurate bar code read data.

【0013】[0013]

【課題を解決するための手段と作用】請求項1対応の発
明は、バーコードを光学的に掃引し、そのデータをバー
コードタイプと共に出力するバーコード読取装置におい
て、1つのバーコードラベルの走査時にUPC−Aタイ
プ又はEAN/JAN−13タイプのバーコードとEA
N/JAN−8タイプ又はUPC−Eタイプのバーコー
ドが成立したときにはUPC−Aタイプ又はEAN/J
AN−13タイプのバーコードデータのみを有効として
出力することにある。
According to a first aspect of the present invention, there is provided a bar code reader which optically sweeps a bar code and outputs the data together with a bar code type. Sometimes UPC-A type or EAN / JAN-13 type barcode and EA
When a bar code of N / JAN-8 type or UPC-E type is established, UPC-A type or EAN / J type
This is to output only barcode data of AN-13 type as valid.

【0014】請求項2対応の発明は、バーコードを光学
的に掃引し、そのデータをバーコードタイプと共に出力
するバーコード読取装置において、1つのバーコードラ
ベルの走査時にデータの古い順に順次タイプを比較し、
タイプが不一致の時は新しい方のデータを残して次のデ
ータとのタイプ比較を行い、タイプが一致しかつまだ比
較していないデータに異なるタイプのデータが無いとき
にはそのデータを有効として出力し、またタイプが一致
しかつまだ比較していないデータに異なるタイプのデー
タが有る場合に、データがUPC−Aタイプ又はEAN
/JAN−13タイプのバーコードとEAN/JAN−
8タイプ又はUPC−Eタイプのバーコードであれば
PC−Aタイプ又はEAN/JAN−13タイプのバー
コードのデータのみを有効として出力することにある。
[0014] Claim 2 compatible invention, a bar code optically swept, in the bar code reading device for outputting the data with the bar code type, the order of older data when scanning a single bar code label Compare the sequential types,
If the types do not match, the type of the data is compared with the next data, leaving the newer data.If there is no data of a different type in the data that matches and has not been compared, the data is output as valid. Also, if there is data of a different type in the data of the same type and not yet compared , the data may be of UPC-A type or EAN.
/ JAN-13 type barcode and EAN / JAN-
8 If the bar code type or UPC-E type U
PC-A type or EAN / JAN-13 type bar
The purpose is to output only code data as valid.

【0015】従って例えば図9においてレーザビームが
点線の位置を掃引し、その後掃引ラインの移動により実
線の位置を掃引したときには、先ず点線の位置の掃引に
よりUPC−Aのデータが取り込まれ、その後実線の位
置の掃引によりUPC−Aの部分的なデータがEAN−
8のデータとして取り込まれ、正しいデータとそれと異
なるタイプの誤読データとの2種類のタイプのデータが
取り込まれることになるが、この場合には、UPC−A
のデータが有効データとして出力されることになる。
Therefore, for example, in FIG. 9, when the laser beam sweeps the position of the dotted line and then sweeps the position of the solid line by moving the sweep line, the data of the UPC-A is first captured by sweeping the position of the dotted line, and then the solid line is swept. Rank
Partial data of UPC-A is changed by EAN-
8 data, and the correct data
And two types of data
In this case, UPC-A
Is output as valid data.

【0016】[0016]

【実施例】以下、本発明の一実施例を図面を参照して説
明する。
An embodiment of the present invention will be described below with reference to the drawings.

【0017】図1において11はバーコード読取装置、
12はこのバーコード読取装置11からバーコード読取
データを受信して商品登録等所望のデータ処理を行うホ
スト装置である。
In FIG. 1, reference numeral 11 denotes a bar code reader,
A host device 12 receives bar code read data from the bar code reader 11 and performs desired data processing such as product registration.

【0018】前記バーコード読取装置11はレーザビー
ムを掃引し、そのビームを例えばバーコードラベルに照
射して得られる反射光を受光し2値化してバーコード信
号を得、そのバーコード信号をデコード回路13に供給
している。このデコード回路13は入力されるバーコー
ド信号をデコード処理するが、例えばUPC−A、EA
N/JAN−13、EAN/JAN−8タイプのように
センターバーを中心に左右にバーコードがあるものにつ
いてはそれぞれ左右独立してバーコードをデコードする
ようになっている。またこのときデータのタイプを判定
するようになっている。そして前記デコード回路13は
デコードしたデータ及びデータのタイプをマイクロプロ
セッサ14に対して割込要求信号とともに送出するよう
になっている。
The bar code reader 11 sweeps a laser beam, irradiates the beam to, for example, a bar code label, receives reflected light, binarizes the reflected light, obtains a bar code signal, and decodes the bar code signal. Circuit 13. The decoding circuit 13 decodes the input bar code signal. For example, UPC-A, EA
Barcodes such as N / JAN-13 and EAN / JAN-8, which have barcodes on the left and right around the center bar, decode the barcodes independently on the left and right. At this time, the type of data is determined. The decoding circuit 13 sends the decoded data and the type of data to the microprocessor 14 together with an interrupt request signal.

【0019】前記マイクロプロセッサ14は前記デコー
ド回路13から割込要求信号を受けるとデータとそのデ
ータのタイプをRAM15に対して図2に示すように順
次格納するようになっている。すなわちバーコードラベ
ルがバーコード読取装置の読取面を通過する間にレーザ
ビームによるバーコード面の掃引は何回も行われるので
RAM15には1回のラベル通過で多数のデータが格納
されることになる。また前記マイクロプロセッサ14は
前記RAM15に対するデータの格納を行うと、図3に
示す編集処理を実行するようになっている。
When the microprocessor 14 receives an interrupt request signal from the decode circuit 13, it sequentially stores data and the type of the data in the RAM 15 as shown in FIG. That is, since the bar code surface is swept many times by the laser beam while the bar code label passes through the reading surface of the bar code reading device, a large amount of data is stored in the RAM 15 in one pass of the label. Become. When storing data in the RAM 15, the microprocessor 14 executes an editing process shown in FIG.

【0020】すなわちRAM15に格納されたデータと
タイプを古い順に順次読み出す。まず1番古いデータと
2番目に古いデータを読出して両データのタイプを比較
する。そしてタイプが同じ、すなわち同種類であれば続
いて両データが左側データと右側データであるかをチェ
ックし、左右のデータであれば左側データと右側データ
を組み合わせ、さらにチェックサムが合っているか否か
をチェックし、合っていれば1つのバーコードについて
の編集を終了しバーコード読取データとしてインターフ
ェース16を介して前記ホスト装置12に出力するよう
になっている。
That is, the data and the type stored in the RAM 15 are sequentially read from the oldest one. First, the oldest data and the second oldest data are read, and the types of both data are compared. Then, if the type is the same, that is, the same type, then it is checked whether both data are left data and right data. If the data is right or left, the left data and right data are combined, and whether the checksum matches This is checked, and if they match, the editing of one barcode is completed and the barcode is output to the host device 12 via the interface 16 as barcode read data.

【0021】また2つのデータが同じタイプでなければ
両データのうち予め設定された優先順位の低いタイプの
データを無効にする。すなわち優先順位は誤読によりバ
ーコードとして成立する確率の高いタイプほど低い優先
順位に設定され、UPC−A、EAN/JAN−13、
EAN/JAN−8、UPC−Eの場合は、優先順位が
UPC−A、EAN/JAN−13>EAN/JAN−
8>UPC−E又はUPC−A>EAN/JAN−13
>EAN/JAN−8>UPC−Eに設定されている。
すなわちUPC−Eタイプが一番誤読によりバーコード
として成立する確率の高いタイプとなる。
If the two data are not of the same type, the data of the type having a lower priority set in advance is invalidated. That is, the priority is set to a lower priority for a type having a higher probability of being established as a barcode due to erroneous reading.
In the case of EAN / JAN-8 and UPC-E, the priority order is UPC-A, EAN / JAN-13> EAN / JAN-
8> UPC-E or UPC-A> EAN / JAN-13
> EAN / JAN-8> UPC-E.
That is, the UPC-E type has the highest probability of being realized as a barcode due to misreading most.

【0022】優先順位の低いデータを無効にするとRA
M15から3番目に古いデータを読出して残っている1
つのデータとタイプを比較する。そしてタイプが同じで
あれば両データが左側データと右側データであるかをチ
ェックし、左右のデータであれば左側データと右側デー
タを組み合わせ、さらにチェックサムが合っているか否
かをチェックし、合っていれば1つのバーコードについ
ての編集を終了しバーコード読取データとしてインター
フェース16を介して前記ホスト装置12に出力するよ
うになっている。
When invalidating low priority data, RA
Reads the third oldest data from M15 and remains 1
Compare two data types. If the types are the same, check whether both data are left data and right data.If left and right data, combine left data and right data, and check whether the checksums match. If so, the editing of one barcode is completed, and the barcode is output to the host device 12 via the interface 16 as barcode read data.

【0023】また2つのデータが同じタイプでなければ
両データのうち優先順位の低いタイプのデータを無効に
しRAM15から4番目に古いデータを読出して残って
いる1つのデータとタイプを比較する。
If the two data are not of the same type, the data of the lower priority type of the two data is invalidated, the fourth oldest data is read from the RAM 15, and the remaining data is compared with the type.

【0024】またタイプが同じでも両データが左側デー
タと右側データでない場合やチェックサムが合っていな
い場合にはいずれか一方のデータを無効にしてRAM1
5から次に古いデータを読出して残っている1つのデー
タとタイプを比較するようになっている。
If both data are not the left data and the right data even if the type is the same, or if the checksums do not match, one of the data is invalidated and the RAM 1
5, the next oldest data is read out and the remaining data is compared with the type.

【0025】このような構成の本実施例においては、例
えばUPC−Aのバーコードラベルをレーザビームが掃
引することによりデコード回路13にバーコード信号が
入力され、これによりデコード回路13はバーコード信
号をデコードするとともにそのタイプを判定する。この
とき左右独立してデコードする。
In the present embodiment having such a configuration, for example, a bar code signal is input to the decoding circuit 13 by sweeping a bar code label of UPC-A with a laser beam, whereby the decoding circuit 13 Is decoded and its type is determined. At this time, decoding is performed independently for the left and right sides.

【0026】そしてデコード回路13からマイクロプロ
セッサ14に割込要求信号が送出されることにより、マ
イクロプロセッサ14はデコード回路13からのデータ
及びタイプをRAM15に順次格納する。
When an interrupt request signal is sent from the decode circuit 13 to the microprocessor 14, the microprocessor 14 sequentially stores the data and the type from the decode circuit 13 in the RAM 15.

【0027】そしてマイクロプロセッサ14はRAM1
5から古い順にデータ及びタイプを読出してタイプを比
較する。タイプが異なれば2つのデータのうち優先順位
の低いタイプのデータを無効にして残ったデータのタイ
プとRAM15から次に読み出されたデータのタイプを
比較する。すなわち一方のデータのタイプがUPC−A
と判定され、他方のデータのタイプが誤ってUPC−E
やEAN/JAN−8と判定されているときにはUPC
−EやEAN/JAN−8のデータが無効にされる。
The microprocessor 14 has the RAM 1
The data and the type are read from 5 in the oldest order and the types are compared. If the types are different, the data of the lower priority type of the two data is invalidated, and the type of the remaining data is compared with the type of the data read next from the RAM 15. That is, one data type is UPC-A
And the type of the other data is incorrectly
Or EAN / JAN-8, if UPC
-E or EAN / JAN-8 data is invalidated.

【0028】そして2つのデータのタイプがともにUP
C−Aで一致すると、続いてその両データが左側データ
と右側データであるか否かがチェックされ、左右のデー
タであれば左右のデータが組み合わされた後チェックサ
ムがチェックされ合っていれば1つのバーコード編集が
終了しバーコード読取データがホスト装置12に出力さ
れる。
Then, both data types are UP
If they match, then it is checked whether the two data are left data and right data. If left and right data, the left and right data are combined and if the checksum is checked, One barcode editing is completed, and the barcode read data is output to the host device 12.

【0029】このようなデータ処理を行うことによって
UPC−Aのデータが誤ってUPC−EやEAN/JA
N−8と判定されてもUPC−EやEAN/JAN−8
のデータはタイプ比較において無効とされるので最終的
には誤読が防止され、UPC−Aの左右のデータの組合
わせによって正確なバーコード読取データを出力できる
ことになる。次に本発明の他の実施例を図面を参照して
説明する。これはマイクロプロセッサ14によるデータ
の編集処理が異なるもので、図4に示す編集処理を行う
ようになっている。
By performing such data processing, UPC-A data is erroneously converted to UPC-E or EAN / JA.
UPC-E or EAN / JAN-8 even if determined to be N-8
Is invalidated in the type comparison, so that erroneous reading is finally prevented, and accurate bar code read data can be output by combining the left and right data of the UPC-A. Next, another embodiment of the present invention will be described with reference to the drawings. This is different from the data editing processing by the microprocessor 14, and the editing processing shown in FIG. 4 is performed.

【0030】すなわちRAM15に格納されたデータと
タイプを古い順に順次読み出す。そしてまず1番古いデ
ータと2番目に古いデータを読出して両データの組合わ
せが可能か否かを判定する。すなわちタイプが同じでか
つ両データが左側データと右側データであるかをチェッ
クする。両データの組合わせが可能で無ければ新しいデ
ータ、すなわち2番目に古いデータを有効としRAM1
5から3番目に古いデータを読出して2番目に古いデー
タとの組合わせが可能か否かを判定する。以上の処理を
2つのデータの組合わせが可能となるまで繰り返す。
That is, the data and the type stored in the RAM 15 are sequentially read from the oldest one. Then, first, the oldest data and the second oldest data are read, and it is determined whether the combination of the two data is possible. That is, it is checked whether the type is the same and both data are left data and right data. If the combination of both data is not possible, the new data, that is, the second oldest data is validated and the RAM 1
The fifth oldest data is read from the fifth, and it is determined whether or not the combination with the second oldest data is possible. The above processing is repeated until the combination of the two data becomes possible.

【0031】2つのデータの組合わせが可能と判定され
ると、左側データと右側データを組み合わせ、さらにチ
ェックサムが合っているか否かをチェックし、合ってい
ればその時点でバーコードについての編集を一応終了す
る。
If it is determined that the combination of the two data is possible, the left data and the right data are combined, and it is checked whether the checksums match. If the checksums match, the bar code is edited at that time. Is temporarily terminated.

【0032】この状態でRAM15に他種、すなわち別
のタイプのデータが格納されているか否かをチェックす
る。もし別のタイプのデータが有ればそのデータのタイ
プと編集されたデータのタイプとどちらのタイプの優先
順位が高いか否かをチェックする。この優先順位は前記
実施例と同様、誤読によりバーコードとして成立する確
率の高いタイプほど低い優先順位に設定され、UPC−
A、EAN/JAN−13、EAN/JAN−8、UP
C−Eの場合は、優先順位がUPC−A、EAN/JA
N−13>EAN/JAN−8>UPC−E又はUPC
−A>EAN/JAN−13>EAN/JAN−8>U
PC−Eに設定されている。
In this state, it is checked whether or not another kind, that is, another type of data is stored in the RAM 15. If there is another type of data, it is checked whether the type of the data or the type of edited data has a higher priority. This priority is set to a lower priority for a type having a higher probability of being established as a barcode due to erroneous reading, as in the above-described embodiment.
A, EAN / JAN-13, EAN / JAN-8, UP
In the case of CE, priority is UPC-A, EAN / JA
N-13> EAN / JAN-8> UPC-E or UPC
-A> EAN / JAN-13> EAN / JAN-8> U
It is set to PC-E.

【0033】そしてもし別のタイプのデータの優先順位
が高ければ編集されたデータを無効にしてデータの編集
をやり直す。また別のタイプのデータの優先順位が低け
れば編集されたデータをバーコード読取データとしてイ
ンターフェース16を介して前記ホスト装置12に出力
するようになっている。
If the priority of another type of data is high, the edited data is invalidated and the data is edited again. If the priority of another type of data is low, the edited data is output to the host device 12 via the interface 16 as bar code read data.

【0034】このような構成の本実施例においては、例
えばUPC−Aのバーコードラベルをレーザビームの掃
引により読取るとデータとタイプがRAM15に順次格
納する。
In this embodiment having such a configuration, for example, when a bar code label of UPC-A is read by sweeping a laser beam, data and type are sequentially stored in the RAM 15.

【0035】そしてマイクロプロセッサ14はRAM1
5から古い順にデータ及びタイプを読出して左右データ
の組合わせを判定する。組合わせができないときには新
しいデータの方を有効とし次のデータとの組合わせを判
定する。
The microprocessor 14 has the RAM 1
Data and types are read out from 5 in the oldest order to determine the combination of left and right data. If the combination cannot be made, the new data is made valid and the combination with the next data is determined.

【0036】そして組合わせの可能が判定されると左右
のデータを組合わせてチェックサムを確認し編集を一応
終了する。その後RAM15に優先順位の高い別のタイ
プのデータがあるか否かをチェックし、有れば編集され
たデータを無効にして改めてデータの編集をやり直す。
When it is determined that the combination is possible, the checksum is confirmed by combining the left and right data, and the editing is temporarily terminated. Thereafter, it is checked whether or not there is another type of data having a higher priority in the RAM 15, and if so, the edited data is invalidated and the data is edited again.

【0037】また編集の終了後にRAM15に優先順位
の高い別のタイプのデータが無ければ編集されたデータ
をバーコード読取データとしてインターフェース16を
介してホスト装置12に出力する。
If there is no data of another type having a higher priority in the RAM 15 after the end of editing, the edited data is output to the host device 12 via the interface 16 as bar code read data.

【0038】従ってUPC−Aのラベルを読み取ったに
もかかわらず一時的に左右のデータが共にEAN/JA
N−8のデータとしてデコードされ、その結果EAN/
JAN−8のデータとして編集されてもRAM15には
UPC−Aのデータも格納されているためEAN/JA
N−8のデータは無効にされて改めて編集し直されるの
で最終的にはUPC−Aのデータが編集されて出力され
ることになる。従って本実施例においても前記実施例と
同様に最終的には誤読が防止され正確なバーコード読取
データを出力できることになる。
Therefore, even though the UPC-A label is read, both the right and left data are temporarily set to EAN / JA.
Decoded as N-8 data, and as a result, EAN /
Even if edited as JAN-8 data, UPC-A data is also stored in the RAM 15 so that EAN / JA
Since the data of N-8 is invalidated and edited again, the data of UPC-A is finally edited and output. Therefore, also in this embodiment, similarly to the above-described embodiment, erroneous reading is finally prevented and accurate bar code read data can be output.

【0039】なお、前記実施例では左右のデータを独立
してデコードし、その後左右のデータを組合わせてバー
コード読取データを得るものに適用したが必ずしもこれ
に限定されるものではなく、左右のデータを同時にデコ
ードしてバーコード読取データを得るものにも適用でき
るものである。
In the above embodiment, the left and right data are independently decoded, and thereafter the left and right data are combined to obtain bar code read data. However, the present invention is not limited to this. The present invention can also be applied to a device that decodes data at the same time to obtain bar code read data.

【0040】[0040]

【発明の効果】以上詳述したように本発明によれば、読
取ったバーコードの誤読を防止でき、従って正確なバー
コード読取データを出力できるバーコード読取装置のデ
ータ処理方法を提供できるものである。
As described above in detail, according to the present invention, it is possible to provide a data processing method of a bar code reading apparatus which can prevent erroneous reading of a read bar code and can output accurate bar code reading data. is there.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施例を示す要部ブロック図。FIG. 1 is a main block diagram showing one embodiment of the present invention.

【図2】同実施例におけるRAMの主なメモリ構成を示
す図。
FIG. 2 is a diagram showing a main memory configuration of a RAM in the embodiment.

【図3】同実施例における編集処理を示す流れ図。FIG. 3 is a flowchart showing editing processing in the embodiment.

【図4】本発明の他の実施例における編集処理を示す流
れ図。
FIG. 4 is a flowchart showing editing processing in another embodiment of the present invention.

【図5】UPC−A及びEAN/JAN−13のバーコ
ード構成を示す図。
FIG. 5 is a diagram showing a barcode configuration of UPC-A and EAN / JAN-13.

【図6】UPC−Eのバーコード構成を示す図。FIG. 6 is a diagram showing a barcode configuration of UPC-E.

【図7】EAN/JAN−8のバーコード構成を示す
図。
FIG. 7 is a diagram showing a bar code configuration of EAN / JAN-8.

【図8】定置式バーコード読取装置の外観図。FIG. 8 is an external view of a stationary bar code reader.

【図9】バーコードラベルに対するレーザビームの掃引
例を示す図。
FIG. 9 is a diagram showing an example of sweeping a laser beam on a barcode label.

【図10】バーコードラベルに対するレーザビームの掃
引例を示す図。
FIG. 10 is a diagram showing an example of sweeping a laser beam on a barcode label.

【符号の説明】[Explanation of symbols]

11…バーコード読取装置、14…マイクロプロセッ
サ、15…RAM。
11 bar code reader, 14 microprocessor, 15 RAM.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 バーコードを光学的に掃引し、そのデー
タをバーコードタイプと共に出力するバーコード読取装
置において、1つのバーコードラベル走査時にUPC
−Aタイプ又はEAN/JAN−13タイプのバーコー
ドとEAN/JAN−8タイプ又はUPC−Eタイプの
バーコードが成立したときにはUPC−Aタイプ又はE
AN/JAN−13タイプのバーコードデータのみを有
効として出力することを特徴とするバーコード読取装置
のデータ処理方法。
1. A sweep a bar code optically, the bar code reading device for outputting the data with the bar code type, UPC during scanning of a single bar code label
-A type or EAN / JAN-13 type bar code
And EAN / JAN-8 type or UPC-E type
When barcode is established, UPC-A type or E
A data processing method for a bar code reader, wherein only bar code data of AN / JAN-13 type is output as valid.
【請求項2】 バーコードを光学的に掃引し、そのデー
タをバーコードタイプと共に出力するバーコード読取装
置において、1つのバーコードラベルの走査時にデータ
の古い順に順次タイプを比較し、タイプが不一致の時は
新しい方のデータを残して次のデータとのタイプ比較を
行い、タイプが一致しかつまだ比較していないデータに
異なるタイプのデータが無いときにはそのデータを有効
として出力し、またタイプが一致しかつまだ比較してい
ないデータに異なるタイプのデータが有る場合に、デー
タがUPC−Aタイプ又はEAN/JAN−13タイプ
のバーコードとEAN/JAN−8タイプ又はUPC−
EタイプのバーコードであればUPC−Aタイプ又はE
AN/JAN−13タイプのバーコードのデータのみを
有効として出力することを特徴とするバーコード読取装
置のデータ処理方法。
2. A sweep a bar code optically and compared in a bar code reader which outputs the data together with the bar code type, the sequential type order of older data during scanning of one bar code label, If the types do not match, the type of the data is compared with the next data, leaving the newer data.If there is no data of a different type in the data that matches and has not been compared, the data is output as valid. Also, if there is a different type of data that has the same type and has not yet been compared ,
Is UPC-A type or EAN / JAN-13 type
Bar code and EAN / JAN-8 type or UPC-
If it is E type barcode , UPC-A type or E
A data processing method for a bar code reader, wherein only data of an AN / JAN-13 type bar code is output as valid.
JP3021196A 1991-02-14 1991-02-14 Data processing method of bar code reader Expired - Fee Related JP2641991B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3021196A JP2641991B2 (en) 1991-02-14 1991-02-14 Data processing method of bar code reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3021196A JP2641991B2 (en) 1991-02-14 1991-02-14 Data processing method of bar code reader

Publications (2)

Publication Number Publication Date
JPH04259087A JPH04259087A (en) 1992-09-14
JP2641991B2 true JP2641991B2 (en) 1997-08-20

Family

ID=12048214

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3021196A Expired - Fee Related JP2641991B2 (en) 1991-02-14 1991-02-14 Data processing method of bar code reader

Country Status (1)

Country Link
JP (1) JP2641991B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013186598A (en) * 2012-03-06 2013-09-19 Toshiba Tec Corp Information processor and program

Also Published As

Publication number Publication date
JPH04259087A (en) 1992-09-14

Similar Documents

Publication Publication Date Title
US4963719A (en) Bar code scanner and method of scanning
US6206289B1 (en) Scanner
JP2750083B2 (en) Scanning device
EP0390162B1 (en) An apparatus for reading a bar code
US5387787A (en) Scanning device for reconstructing a complete code from scanned segments
JPS6156552B2 (en)
US7108187B2 (en) Method of reading a plurality of bar codes during a scanning motion
EP0502440B1 (en) Bar-code reading apparatus and method
WO1990014638A1 (en) Reading method and apparatus for bar code
JP2641991B2 (en) Data processing method of bar code reader
JPH08263585A (en) Bar code reading device
KR940006119B1 (en) Deciphering method of barcode system
JP2760913B2 (en) Barcode reader
JP2730273B2 (en) Barcode reading device and barcode reading method
JP2725221B2 (en) Barcode reader
JP2731610B2 (en) Barcode decoder and barcode decoding method
JP3002601B2 (en) Barcode reader
JP2835275B2 (en) Barcode reader
JP2853357B2 (en) Barcode reader
JP3308931B2 (en) Barcode symbol reader
JP2778870B2 (en) Barcode decoder
JPH0256080A (en) Bar code reader
JP2912743B2 (en) Barcode decoder
JP2750244B2 (en) Barcode decoder decoding method
JPH05108862A (en) Bar code reader

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080502

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090502

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees