JPH08329175A - Method and device for reading out bar code - Google Patents

Method and device for reading out bar code

Info

Publication number
JPH08329175A
JPH08329175A JP7130358A JP13035895A JPH08329175A JP H08329175 A JPH08329175 A JP H08329175A JP 7130358 A JP7130358 A JP 7130358A JP 13035895 A JP13035895 A JP 13035895A JP H08329175 A JPH08329175 A JP H08329175A
Authority
JP
Japan
Prior art keywords
bar code
add
data
barcode
main
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.)
Granted
Application number
JP7130358A
Other languages
Japanese (ja)
Other versions
JP3198232B2 (en
Inventor
Toshihiro Ichinohe
敏浩 一戸
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.)
TEC CORP
Original Assignee
TEC 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 TEC CORP filed Critical TEC CORP
Priority to JP13035895A priority Critical patent/JP3198232B2/en
Publication of JPH08329175A publication Critical patent/JPH08329175A/en
Application granted granted Critical
Publication of JP3198232B2 publication Critical patent/JP3198232B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE: To surely distinguishably decode a normal bar code label and a bar code label to which an ad-on bar code is affixed even when both the labels are mixed and to transfer both the decoded data to a master device. CONSTITUTION: When decoded data are obtained from a main bar code, whether both right and left data are set up in a buffer or not is checked in S16, and when both the data are set up, whether an ad-on bar code has been already saved in the buffer or not is checked in S17. When the ad-on bar code has not been saved yet, possibility of no scanning of the ad-on bar code part is supposed, a main decoding flag is set up in S20 and a timer is started in S21. When the ad-on bar code is decoded before the timer counts a fixed period, the main decoding flag is cleared in S24 and both the data of the main bar code and the ad-on bar code are outputted to the master device in S25.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、商品等に印刷又は貼付
されているバーコードラベルからバーコードを読取り、
そのデータをECR(電子キャッシュレジスタ)、PO
S(Point ofSales) ターミナルあるいはパーソナルコ
ンピュータ等の上位装置に転送する場合のバーコード読
取方法及び読取装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention reads a bar code from a bar code label printed or affixed to a product or the like,
ECR (electronic cash register), PO
The present invention relates to a bar code reading method and a bar code reading device for transferring to an upper device such as an S (Point of Sales) terminal or a personal computer.

【0002】[0002]

【従来の技術】現在、小売店のチェックアウト業務、在
庫管理、生産ラインにおける工程管理等、各種用途にお
いてバーコード認識技術が利用されている。このような
バーコード認識技術に使用されるバーコード読取装置と
しては、バーコードラベルをレーザビーム等の照射光に
より走査し、その反射光を受光してバーコードを読取る
もの、LED光をバーコードラベルに照射し、その反射
光を1次元ラインセンサにより走査してバーコードを読
取るもの、あるいは発光素子、受光素子を備えたペンタ
イプのスキャナを手で走査し、その反射光によりバーコ
ードを読取るもの等がある。バーコード読取装置では、
受光した反射光を光電変換し、この光電変換出力を2値
化回路によりデジタル信号に変換し、その後デコード回
路或いはマイクロプロセッサにより英数字或いは記号等
のキャラクタにデコード(復調)する。
2. Description of the Related Art Currently, bar code recognition technology is used in various applications such as check-out operations at retail stores, inventory management, and process management in production lines. As a bar code reading device used for such bar code recognition technology, a bar code label is scanned by irradiation light such as a laser beam and the reflected light is received to read a bar code. LED light is a bar code. A bar code is read by irradiating a label and the reflected light is scanned by a one-dimensional line sensor, or a pen-type scanner equipped with a light emitting element and a light receiving element is manually scanned and the bar code is read by the reflected light. There are things. With bar code readers,
The received reflected light is photoelectrically converted, the photoelectric conversion output is converted into a digital signal by a binarization circuit, and then decoded (demodulated) into characters such as alphanumeric characters or symbols by a decoding circuit or a microprocessor.

【0003】通常、小売店で販売される商品には、図5
の(a) に示すEAN−13、図5の(b) に示すUPC−
A、図5の(c) ,(d) に示すUPC−E等のワールド・
プロダクト・コード(以下、WPCと称する。)系バー
コードが印刷又はラベルとして貼付されている場合が多
い。EAN−13のバーコードは、13桁からなり、こ
の13桁のうち、最初の2桁「49」が国コードを示
し、次の5桁「12345」がメーカコードを示し、次
の5桁「67890」が商品アイテムコードを示し、最
後の1桁「4」がチェックディジットを示している。ま
た、UPC−Aのバーコードは、12桁からなり、この
12桁のうち、最初の1桁「0」がナンバーシステムキ
ャラクタを示し、次の5桁「12345」がメーカコー
ドを示し、次の5桁「67890」が商品アイテムコー
ドを示し、最後の1桁「5」がチェックディジットを示
している。また、UPC−Eのバーコードは、UPC−
Aのデータ中のいくつかの「0」を省略して4種類の公
式のいずれかに従って6桁のデータに圧縮したものであ
る。従って、そのデータの意味はUPC−Aに復元した
ときのフォーマットに準ずる。
Usually, the products sold at retail stores are shown in FIG.
EAN-13 shown in (a) and UPC-shown in (b) of FIG.
A, a world such as UPC-E shown in (c) and (d) of FIG.
In many cases, a product code (hereinafter referred to as WPC) type bar code is printed or attached as a label. The EAN-13 bar code consists of 13 digits. Of these 13 digits, the first 2 digits "49" indicate the country code, the next 5 digits "12345" indicate the manufacturer code, and the next 5 digits ""67890" indicates the product item code, and the last digit "4" indicates the check digit. The UPC-A bar code consists of 12 digits. Of these 12 digits, the first 1 digit “0” indicates the number system character, the next 5 digits “12345” indicates the manufacturer code, and the next The 5-digit “67890” indicates the product item code, and the last 1-digit “5” indicates the check digit. Also, the UPC-E barcode is UPC-
Some of the "0" s in the data of A are omitted, and the data is compressed into 6-digit data according to one of the four formulas. Therefore, the meaning of the data conforms to the format when it is restored to UPC-A.

【0004】そして、その中で書籍等には図6の(a) 、
(b) に示すような、メインバーコードaの右側にアドオ
ン(Add-On)バーコードbが付随したバーコードが印刷
されている場合がある。なお、アドオンバーコードはサ
プリメンタル(Supplemental)コードとも呼ばれる。ア
ドオンバーコードは通常のWPCのメインコードの右側
に所定のマージンをおいて2桁あるいは5桁のキャラク
タを付加したものであり、左から特殊ガードバー、キャ
ラクタ、区切りバー、キャラクタ、…という構成になっ
ていて右側にガードバーは無い。アドオンバーコードの
キャラクタは通常のバーコードと共通であるが、ガード
バーやキャラクタ間の構成が異なるため、このようなア
ドオンバーコード付きのバーコードをデコードするため
には通常のバーコードをデコードする機能に加えてアド
オンバーコードをデコードする機能が必要となる。
Then, among them, a book or the like is shown in FIG.
There is a case where a bar code accompanied by an add-on bar code b is printed on the right side of the main bar code a as shown in (b). The add-on barcode is also called a supplemental code. The add-on bar code is formed by adding a 2-digit or 5-digit character to the right side of the main code of a normal WPC with a predetermined margin, and from the left, a special guard bar, a character, a delimiter bar, a character, and so on. There is no guard bar on the right side. The characters of add-on barcodes are the same as those of ordinary barcodes, but because the configuration between guard bars and characters is different, the ability to decode ordinary barcodes is required to decode such barcodes with add-on barcodes. In addition to that, the function to decode the add-on barcode is required.

【0005】図8はこのようなアドオンバーコード付き
のバーコードもデコードするバーコード読取装置の一例
を示すもので、バーコードラベルからの反射光を光電変
換器1で光電変換した後、このアナログ信号を2値化回
路2で2値化してデジタル信号に変換し、デコーダLS
I3に供給する。デコーダLSI3は、メインバーコー
ドのハーフセグメント(ガードバーとセンターバーに挟
まれた半分のデータ)やアドオンバーコードをデコード
すると、CPU(Central Processing Unit )4に割込
み信号を供給する。CPU4は割込み信号を受けると、
ROM(リード・オンリー・メモリ)5のプログラムデ
ータに基づいてRAM(ランダム・アクセス・メモリ)
6を使用してデコード割込処理を行う。
FIG. 8 shows an example of a bar code reading apparatus which also decodes a bar code with such an add-on bar code. After the reflected light from the bar code label is photoelectrically converted by the photoelectric converter 1, this analog code is read. The signal is binarized by the binarization circuit 2 to be converted into a digital signal, and the decoder LS
Supply to I3. The decoder LSI 3 supplies an interrupt signal to a CPU (Central Processing Unit) 4 when it decodes a half segment of a main bar code (half the data sandwiched between a guard bar and a center bar) and an add-on bar code. When the CPU 4 receives the interrupt signal,
RAM (random access memory) based on program data in ROM (read only memory) 5
6 is used to perform a decode interrupt process.

【0006】そして、従来のデコード割込処理は、図9
に示すように、先ずS1 にて以前に同一コードがすでに
デコードされているかを調べ、デコードされていなけれ
ば、S2 にてデコードデータをRAM6上に割り当てら
れたバッファにセーブすると共にデータカウンタのカウ
ント値を1にセットする。また、すでにデコードされて
いればデータカウンタのカウント値を1つインクリメン
トする。
The conventional decode interrupt processing is shown in FIG.
As shown in, first, it is checked in S1 whether the same code has been previously decoded. If not, the decoded data is saved in the buffer allocated on the RAM 6 and the count value of the data counter is checked in S2. Set to 1. If it has already been decoded, the count value of the data counter is incremented by one.

【0007】次に、S4 にてデコードデータがメインバ
ーコードかアドオンバーコードかを判断する。もし、ア
ドオンバーコードであればこの割込処理を終了する。ま
た、メインバーコードであれば、続いてS5 にて左右の
データが揃っているか否かを調べる。もし、左右のデー
タが揃っていなければこの割込処理を終了する。また、
左右のデータが揃っていれば、続いてS6 にてアドオン
バーコードがデコードされているか否かを調べ、アドオ
ンバーコードがデコードされていれば、S7 にてメイン
バーコードとアドオンバーコードの両データを上位装置
に出力する。また、アドオンバーコードがデコードされ
ていなければ、アドオンバーコードの付随していないラ
ベルと見做し、S8 にてメインバーコードのみを上位装
置に出力する。そして、最後にS9 にて、LED(発光
ダイオード)やブザー等によりオペレータに対して読取
り終了報知を行って、この割込処理を終了する。
Next, in S4, it is determined whether the decoded data is a main bar code or an add-on bar code. If it is an add-on barcode, this interrupt processing is terminated. If it is the main bar code, it is then checked in S5 whether the left and right data are complete. If the left and right data are not available, this interrupt process is terminated. Also,
If the left and right data are complete, then it is checked in S6 whether the add-on barcode is decoded. If the add-on barcode is decoded, in S7 both the main barcode and add-on barcode data are checked. Is output to the host device. If the add-on barcode is not decoded, it is regarded as a label without an add-on barcode, and only the main barcode is output to the host device in S8. Finally, in S9, the operator is notified of the completion of reading by means of an LED (light emitting diode), a buzzer, etc., and this interrupt processing is terminated.

【0008】メインバーコードはそれ自体で完結してお
り、単独でデコード可能である。例えば、レーザ走査式
の固定スキャナでバーコードラベルを読み取るとき、図
7に示すように、アドオンバーコードbを走査線が横切
らずにメインバーコードaのみを横切ってデコードした
場合、メインバーコードaにはアドオンバーコードbが
付随しているか否かの情報が無いので、装置としてはア
ドオンバーコードの付随していないバーコードであると
判断するしかない。従って、このような場合にはメイン
バーコードのデータのみが上位装置に転送されることに
なる。
The main bar code is complete by itself and can be decoded independently. For example, when a bar code label is read by a laser scanning type fixed scanner, as shown in FIG. 7, when the add-on bar code b is decoded by crossing only the main bar code a without crossing the scanning line, the main bar code a Since there is no information on whether or not the add-on barcode b is attached to the device, the device has no choice but to judge that the barcode is not the add-on barcode. Therefore, in such a case, only the main bar code data is transferred to the host device.

【0009】しかし、実際にはこのラベルにはアドオン
バーコードが付随しているので、上位装置では受取った
データにより商品ファイルを検索した時、商品ファイル
に登録しているデータはアドオンバーコードが付随して
いるデータとなっているため、受取ったデータは商品フ
ァイルにない未登録データと見做されて読取りエラーと
なる。このような読取りエラーを避けるために、メイン
バーコードにアドオンバーコードが付随しているラベル
のみを専用に読取る装置もある。この装置ではメインバ
ーコードを先に読取ってデコードしてもアドオンバーコ
ードがデコードされるまでデータを上位装置には転送せ
ず、メインバーコードとアドオンバーコードの両方がデ
コードされたとき初めて両データを上位装置に転送する
ことになる。従って、アドオンバーコードが読取られな
いままメインバーコードのデータのみが上位装置に転送
されるという問題は発生しないが、逆にアドオンバーコ
ードが付随していない通常のバーコードラベルを読取る
ことができない。従って、通常のバーコードラベルとア
ドオンバーコードが付随しているバーコードラベルが混
在している商品を販売する店舗では使用できないという
問題が生じる。
However, since the label actually has an add-on bar code attached thereto, when the host device searches for a product file based on the received data, the data registered in the product file comes with an add-on bar code. The received data is regarded as unregistered data that does not exist in the product file and a read error occurs. In order to avoid such a reading error, there is a device that exclusively reads only a label in which an add-on barcode is attached to a main barcode. With this device, even if the main bar code is read and decoded first, the data is not transferred to the host device until the add-on bar code is decoded, and when both the main bar code and the add-on bar code are decoded, both data will not be transferred. Will be transferred to the host device. Therefore, the problem that only the main bar code data is transferred to the upper device without the add-on bar code being read does not occur, but on the contrary, it is not possible to read the normal bar code label without the add-on bar code. . Therefore, there arises a problem that it cannot be used in a store that sells a product in which a normal barcode label and a barcode label accompanied by an add-on barcode are mixed.

【0010】[0010]

【発明が解決しようとする課題】このように従来では、
通常のバーコードラベルとアドオンバーコードが付随し
ているバーコードラベルの両方を読取ることができる装
置の場合は、アドオンバーコードが付随しているバーコ
ードラベルを読取っているにもかかわらずメインバーコ
ードのデータのみが上位装置に転送されることが生じ、
この場合に上位装置では読取りエラーとなって再度ラベ
ルの読取り作業を行わなければならない面倒があり、ま
た、アドオンバーコードが付随しているラベルのみを専
用に読取る装置では通常のバーコードラベルとアドオン
バーコードが付随しているバーコードラベルが混在して
いる場合には使用できないという問題があった。
As described above, conventionally,
For devices that can read both normal barcode labels and barcode labels with add-on barcodes, the main barcode can be read even though the barcode label with add-on barcodes is being read. It may happen that only the code data is transferred to the host device,
In this case, there is a read error in the host device and it is troublesome to read the label again.In the device that only reads the label with the add-on barcode, the normal barcode label and add-on label are added. There is a problem that it cannot be used when there are a mixture of barcode labels accompanied by barcodes.

【0011】そこで、本発明は、通常のバーコードラベ
ルとアドオンバーコードが付随しているバーコードラベ
ルが混在している場合に、通常のバーコードラベルとア
ドオンバーコードが付随しているバーコードラベルとを
確実に区別してデコードすることができ、通常のバーコ
ードラベルの場合には上位装置に対してメインバーコー
ドのデコードデータのみを確実に転送でき、アドオンバ
ーコードが付随しているバーコードラベルの場合には上
位装置に対してメインバーコードのデコードデータとア
ドオンバーコードのデコードデータの両データを確実に
転送できるバーコード読取方法及び読取装置を提供す
る。
Therefore, according to the present invention, when a normal bar code label and a bar code label accompanied by an add-on bar code are mixed, a normal bar code label and a bar code accompanied by an add-on bar code are provided. It is possible to reliably distinguish and decode the label, and in the case of a normal barcode label, only the decoded data of the main barcode can be reliably transferred to the host device, and the barcode with an add-on barcode is attached. In the case of a label, there is provided a barcode reading method and a barcode reading device capable of reliably transferring both the main barcode decoded data and the add-on barcode decoded data to a higher-level device.

【0012】[0012]

【課題を解決するための手段】請求項1対応の発明は、
EAN−13、UPC−A、UPC−E等のワールド・
プロダクト・コード系のメインバーコード及びこのメイ
ンバーコードの右側に付随したアドオンバーコードを読
取って上位装置へ転送する場合に、メインバーコードの
データをデコードしたとき、アドオンバーコードがデコ
ードされていなければ、タイマーをスタートさせ、この
タイマーのスタート後、一定時間内にアドオンバーコー
ドをデコードしたときは、メインバーコードとアドオン
バーコードの両データを上位装置へ転送し、一定時間内
にアドオンバーコードをデコードしなかったときは、メ
インバーコードのデータのみを上位装置へ転送すること
にある。
The invention according to claim 1 is
World of EAN-13, UPC-A, UPC-E, etc.
When the main bar code of the product code system and the add-on bar code attached to the right side of this main bar code are read and transferred to the host device, when the main bar code data is decoded, the add-on bar code must be decoded. For example, when the timer is started and the add-on bar code is decoded within a certain time after this timer starts, both the main bar code and the add-on bar code data are transferred to the host device, and the add-on bar code is When is not decoded, only the data of the main bar code is transferred to the host device.

【0013】請求項2対応の発明は、EAN−13、U
PC−A、UPC−E等のワールド・プロダクト・コー
ド系のメインバーコード及びこのメインバーコードの右
側に付随したアドオンバーコードを読取って上位装置へ
転送するバーコード読取装置において、メインバーコー
ドのデータ及びアドオンバーコードのデータをデコード
するデコード手段と、タイマーと、メインバーコードの
データがデコード手段にてデコードされたか否かを検出
する第1のデコード検出手段と、アドオンバーコードの
データがデコード手段にてデコードされたか否かを検出
する第2のデコード検出手段と、第1のデコード検出手
段がメインバーコードのデータのデコードを検出したと
き、第2のデコードチェック手段がすでにアドオンバー
コードのデータのデコードを検出していると、メインバ
ーコードとアドオンバーコードの両データを上位装置へ
転送する第1の転送手段と、第1のデコード検出手段が
メインバーコードのデータのデコードを検出したとき、
第2のデコード検出手段がアドオンバーコードのデータ
のデコードを検出していなければ、タイマーをスタート
させ、このタイマーのスタート後、一定時間内に第2の
デコード検出手段がアドオンバーコードのデータのデコ
ードを検出すると、メインバーコードとアドオンバーコ
ードの両データを上位装置へ転送し、また、一定時間内
に第2のデコード検出手段がアドオンバーコードのデー
タのデコードを検出しなければ、メインバーコードのデ
ータのみを上位装置へ転送する第2の転送手段とを設け
たものである。
The invention according to claim 2 is EAN-13, U
In a bar code reading device that reads the main bar code of the world product code system such as PC-A and UPC-E and the add-on bar code attached to the right side of this main bar code and transfers it to the host device, Decoding means for decoding the data and the data of the add-on barcode, a timer, a first decoding detecting means for detecting whether or not the data of the main barcode is decoded by the decoding means, and the data of the add-on barcode is decoded. When the second decoding detecting means for detecting whether or not the decoding has been performed by the means and the first decoding detecting means detect the decoding of the data of the main bar code, the second decoding checking means has already detected the add-on bar code. If it detects that the data has been decoded, it will When the first transfer means for transferring both data of the bar code to the higher-level device, the first decoding detecting means has detected the decoding of data of the main bar code,
If the second decode detecting means does not detect the decode of the add-on barcode data, the timer is started, and after the timer is started, the second decode detecting means decodes the add-on barcode data. Is detected, both the main bar code data and the add-on bar code data are transferred to the host device, and if the second decoding detection means does not detect the decoding of the add-on bar code data within the fixed time, the main bar code And a second transfer means for transferring only the above data to the higher-level device.

【0014】請求項3対応の発明は、EAN−13、U
PC−A、UPC−E等のワールド・プロダクト・コー
ド系のメインバーコード及びこのメインバーコードの右
側に付随したアドオンバーコードを読取って上位装置へ
転送する場合に、予め、アドオンバーコードが付随して
いるメインバーコードに含まれるメーカコードを登録し
ておき、メインバーコードのデータをデコードしたと
き、アドオンバーコードがデコードされていなければ、
デコードしたメインバーコードのメーカコードを登録し
たメーカコードと比較して、アドオンバーコードが付随
しているか否かを判断し、アドオンバーコードが付随し
ていると判断したときには、アドオンバーコードをデコ
ードするまでデータの上位装置へ転送を禁止し、アドオ
ンバーコードをデコードするとメインバーコードとアド
オンバーコードの両データを上位装置へ転送し、アドオ
ンバーコードが付随していないことを判断したときに
は、メインバーコードのデータのみを上位装置へ転送す
ることにある。
The invention corresponding to claim 3 is EAN-13, U
When the main bar code of the world product code system such as PC-A and UPC-E and the add-on bar code attached to the right side of this main bar code are read and transferred to the host device, the add-on bar code is attached in advance. If the add-on barcode is not decoded when the manufacturer code included in the main barcode is registered and the data of the main barcode is decoded,
Compare the manufacturer code of the decoded main barcode with the registered manufacturer code to determine whether the add-on barcode is attached. If it is determined that the add-on barcode is attached, decode the add-on barcode. Until the data is transferred to the host device and the add-on barcode is decoded, both the main bar code and add-on bar code data are transferred to the host device, and when it is determined that the add-on bar code is not The purpose is to transfer only the barcode data to the host device.

【0015】請求項4対応の発明は、EAN−13、U
PC−A、UPC−E等のワールド・プロダクト・コー
ド系のメインバーコード及びこのメインバーコードの右
側に付随したアドオンバーコードを読取って上位装置へ
転送するバーコード読取装置において、メインバーコー
ドのデータ及びアドオンバーコードのデータをデコード
するデコード手段と、アドオンバーコードが付随してい
るメインバーコードに含まれるメーカコードを登録した
登録手段と、メインバーコードのデータがデコード手段
にてデコードされたか否かを検出する第1のデコード検
出手段と、アドオンバーコードのデータがデコード手段
にてデコードされたか否かを検出する第2のデコード検
出手段と、メインバーコードのメーカコードと登録手段
に登録してあるメーカコードを比較してアドオンバーコ
ードが付随しているか否かを判断する判断手段と、第1
のデコード検出手段がメインバーコードのデータのデコ
ードを検出したとき、第2のデコードチェック手段がす
でにアドオンバーコードのデータのデコードを検出して
いると、メインバーコードとアドオンバーコードの両デ
ータを上位装置へ転送する第1の転送手段と、第1のデ
コード検出手段がメインバーコードのデータのデコード
を検出したとき、第2のデコード検出手段がアドオンバ
ーコードのデータのデコードを検出していなければ、判
断手段にメインバーコードにアドオンバーコードが付随
しているか否かの判断を行わせ、判断手段がアドオンバ
ーコードが付随していることを判断すると、第2のデコ
ード検出手段がアドオンバーコードのデータのデコード
を検出するまでデータの上位装置へ転送を禁止し、第2
のデコード検出手段がアドオンバーコードをデコードす
るとメインバーコードとアドオンバーコードの両データ
を上位装置へ転送し、また、判断手段がアドオンバーコ
ードが付随していないことを判断すると、メインバーコ
ードのデータのみを上位装置へ転送する第2の転送手段
とを設けたものである。
The invention corresponding to claim 4 is EAN-13, U
In a bar code reading device that reads the main bar code of the world product code system such as PC-A and UPC-E and the add-on bar code attached to the right side of this main bar code and transfers it to the host device, Decoding means for decoding data and add-on barcode data, registration means for registering the manufacturer code included in the main barcode accompanied by the add-on barcode, and whether the main barcode data was decoded by the decoding means Registered in the first decoding detecting means for detecting whether or not the second decoding detecting means for detecting whether or not the data of the add-on barcode is decoded by the decoding means, the manufacturer code of the main barcode and the registration means. Compare the manufacturer's code that has been added and add-on barcode is attached. Determining means for determining whether the first
When the second decoding check means has already detected the decoding of the add-on barcode data when the decoding detection means of 1 detects the decoding of the main barcode data, both the main barcode and the add-on barcode data are detected. When the first transfer means for transferring to the host device and the first decoding detection means detect the decoding of the main bar code data, the second decoding detection means must detect the decoding of the add-on bar code data. For example, if the determining means determines whether or not the add-on barcode is attached to the main barcode, and the determining means determines that the add-on barcode is attached, the second decoding detecting means causes the add-on barcode to be added. The transfer of the data to the host device is prohibited until the decoding of the code data is detected.
When the decoding detection means of the decodes the add-on barcode and transfers both the main barcode and the add-on barcode data to the host device, and when the determining means determines that the add-on barcode is not attached, the main barcode The second transfer means for transferring only the data to the host device is provided.

【0016】請求項5対応の発明は、バーコードを読取
って上位装置へ転送する場合に、メインバーコードのデ
ータをデコードしたとき、アドオンバーコードがデコー
ドされていなければ、デコードしたメインバーコードの
先頭3桁のデータが「977」又は「978」であれ
ば、このメインバーコードはISBNコードであり、ア
ドオンバーコードが付随していると判断してアドオンバ
ーコードをデコードするまでデータの上位装置へ転送を
禁止し、アドオンバーコードをデコードするとメインバ
ーコードとアドオンバーコードの両データを上位装置へ
転送し、デコードしたメインバーコードの先頭3桁のデ
ータが「977」又は「978」以外であれば、アドオ
ンバーコードが付随していないと判断してメインバーコ
ードのデータのみを上位装置へ転送することにある。
According to a fifth aspect of the present invention, when the bar code is read and transferred to the host device, when the main bar code data is decoded and the add-on bar code is not decoded, the decoded main bar code is If the data of the first three digits is "977" or "978", this main bar code is an ISBN code, and it is determined that the add-on bar code is attached, and the higher order device of the data is decoded until the add-on bar code is decoded. When the add-on bar code is decoded and both the main bar code and the add-on bar code are transferred to the host device, the first 3 digits of the decoded main bar code are other than "977" or "978". If so, it is determined that the add-on barcode is not attached and only the main barcode data is It is to transfer to the position apparatus.

【0017】[0017]

【作用】請求項1及び2対応の発明においては、メイン
バーコードのデータをデコードしたときにアドオンバー
コードがまだデコードされていなければ、この後一定時
間内にアドオンバーコードをデコードすればメインバー
コードとアドオンバーコードの両データを上位装置へ転
送し、また、一定時間内にアドオンバーコードをデコー
ドしなければメインバーコードのデータのみを上位装置
へ転送する。
In the inventions according to claims 1 and 2, if the add-on bar code is not yet decoded when the data of the main bar code is decoded, if the add-on bar code is decoded within a certain time thereafter, the main bar code is decoded. Both the code and the add-on bar code data are transferred to the host device, and if the add-on bar code is not decoded within a fixed time, only the main bar code data is transferred to the host device.

【0018】請求項3及び4対応の発明においては、メ
インバーコードのデータをデコードしたときにアドオン
バーコードがまだデコードされていなければ、メインバ
ーコードのメーカコードを登録したメーカコードと比較
してアドオンバーコードが付随しているか否かを判断
し、アドオンバーコードが付随しているときには、アド
オンバーコードをデコードするまで待ち、アドオンバー
コードをデコードすると、メインバーコードとアドオン
バーコードの両データを上位装置へ転送し、アドオンバ
ーコードが付随していないときには、直ちにメインバー
コードのデータのみを上位装置へ転送する。
In the inventions corresponding to claims 3 and 4, if the add-on barcode is not yet decoded when the data of the main barcode is decoded, the manufacturer code of the main barcode is compared with the registered manufacturer code. Determine whether the add-on barcode is attached, and if the add-on barcode is attached, wait until the add-on barcode is decoded, and then decode the add-on barcode. Is transferred to the host device, and when the add-on bar code is not attached, only the data of the main bar code is immediately transferred to the host device.

【0019】請求項5対応の発明においては、メインバ
ーコードのデータをデコードしたときにアドオンバーコ
ードがまだデコードされていなければ、メインバーコー
ドの先頭3桁のデータをチェックし、このデータが「9
77」又は「978」のときにはこのメインバーコード
はISBNコードであり、アドオンバーコードが付随し
ていると判断する。そこでアドオンバーコードをデコー
ドするまで待ち、アドオンバーコードをデコードすると
メインバーコードとアドオンバーコードの両データを上
位装置へ転送する。また、メインバーコードの先頭3桁
のデータが「977」又は「978」以外であれば、直
ちにメインバーコードのデータのみを上位装置へ転送す
る。
In the invention according to claim 5, if the add-on barcode is not yet decoded when the data of the main barcode is decoded, the data of the first three digits of the main barcode is checked and this data is " 9
When it is "77" or "978", it is determined that this main bar code is an ISBN code and an add-on bar code is attached. Therefore, wait until the add-on bar code is decoded, and when the add-on bar code is decoded, both the main bar code and the add-on bar code data are transferred to the host device. If the data of the first three digits of the main bar code is other than "977" or "978", only the main bar code data is immediately transferred to the host device.

【0020】[0020]

【実施例】以下、本発明の実施例を図面を参照して説明
する。なお、各実施例のハード構成は図8のハード構成
と同一である。すなわち、バーコードラベルからの反射
光を光電変換器1で光電変換した後、このアナログ信号
を2値化回路2で2値化してデジタル信号に変換し、デ
コーダLSI3に供給する。デコーダLSI3は、メイ
ンバーコードのハーフセグメントやアドオンバーコード
をデコードすると、CPU4に割込み信号を供給する。
CPU4は割込み信号を受けると、ROM5のプログラ
ムデータに基づいてRAM6を使用してデコード割込処
理を行う構成になっている。
Embodiments of the present invention will be described below with reference to the drawings. The hardware configuration of each embodiment is the same as the hardware configuration of FIG. That is, after the reflected light from the bar code label is photoelectrically converted by the photoelectric converter 1, this analog signal is binarized by the binarization circuit 2 to be converted into a digital signal and supplied to the decoder LSI 3. The decoder LSI 3 supplies an interrupt signal to the CPU 4 when decoding the half segment of the main bar code or the add-on bar code.
When the CPU 4 receives the interrupt signal, the RAM 6 is used to perform the decode interrupt processing based on the program data of the ROM 5.

【0021】(第1の実施例)この実施例は、請求項1
及び2に対応した実施例である。本実施例ではCPU4
は、図1に示すデコード割込処理を行うようにプログラ
ム設定されている。先ずS11にてメインデコードフラグ
がセットされているか否かを調べる。このメインデコー
ドフラグは、メインバーコードが左右ともデコードされ
た場合にセットされるフラグであり、初期値は「0」で
ある。
(First Embodiment) This embodiment is characterized by claim 1.
This is an example corresponding to Nos. 2 and 2. In this embodiment, the CPU 4
Are programmed to perform the decode interrupt processing shown in FIG. First, in S11, it is checked whether or not the main decode flag is set. This main decode flag is a flag that is set when the left and right main bar codes are decoded, and the initial value is "0".

【0022】メインデコードフラグがセットされていな
ければ、続いてS12にてデコードデータと同一の同一コ
ードが以前にデコードされているかを調べ、デコードさ
れていなければ、S13にてデコードデータをRAM6上
に割り当てられたバッファにセーブする。また、すでに
デコードされていればS14にてRAM6上に割り当てら
れたデータカウンタのカウント値を1つインクリメント
する。
If the main decode flag is not set, it is then checked in S12 whether the same code as the decode data has been previously decoded. If not, the decode data is stored in the RAM 6 in S13. Save to the allocated buffer. If already decoded, the count value of the data counter allocated on the RAM 6 is incremented by 1 in S14.

【0023】次に、S15にてデコードデータがメインバ
ーコードかアドオンバーコードかを調べる。もし、アド
オンバーコードであればこの割込処理を終了する。ま
た、メインバーコードであれば、続いてS16にてバッフ
ァ中に左右のデータが揃っているか否かを調べる。そし
て、左右のデータが揃っていなければこの割込処理を終
了する。また、左右のデータが揃っていれば、続いてS
17にてバッファ中にアドオンバーコードがすでにデコー
ドされてセーブされているか否かを調べ、アドオンバー
コードがすでにセーブされていれば、S18にてメインバ
ーコードとアドオンバーコードの両データを上位装置に
出力する。そして、S19にてLED(発光ダイオード)
やブザー等によりオペレータに対して読取り終了報知を
行ってこの割込処理を終了する。
Next, in S15, it is checked whether the decoded data is the main bar code or the add-on bar code. If it is an add-on barcode, this interrupt processing is terminated. If it is the main bar code, then in S16, it is checked whether or not the left and right data are available in the buffer. Then, if the left and right data are not complete, this interrupt processing is ended. If the left and right data are available, then S
At 17 it is checked whether the add-on barcode has already been decoded and saved in the buffer. If the add-on barcode has already been saved, at S18 both main barcode and add-on barcode data are sent to the host device. Output to. Then, in S19, an LED (light emitting diode)
A read end notification is given to the operator by a buzzer, a buzzer or the like, and the interrupt process is ended.

【0024】また、アドオンバーコードがまだセーブさ
れていなければ、まだアドオンバーコードの部分が走査
されていない可能性があるものと見做して、一定期間の
ウエイトを開始するために、S20にてメインデコードフ
ラグをセットし、さらにS21にてタイマーをスタートさ
せてこの割込処理を終了する。
If the add-on bar code is not yet saved, it is considered that the part of the add-on bar code may not be scanned yet, and S20 is started in order to start weighting for a certain period. Then, the main decode flag is set, and the timer is started in S21 to end the interrupt processing.

【0025】また、前記S11における判断にてメインデ
コーダフラグがセットされていると判断したときには、
S22にてデコードデータがメインバーコードかアドオン
バーコードかを調べる。もし、メインバーコードであれ
ば、S23にてRAM6上のデータカウンタのカウント値
を1つインクリメントしてこの割込処理を終了する。ま
た、アドオンバーコードであれば、S24にてメインデコ
ードフラグをクリアし、S25にてメインバーコードとア
ドオンバーコードの両データを上位装置に出力する。そ
して、S26にてLEDやブザー等によりオペレータに対
して読取り終了報知を行ってこの割込処理を終了する。
If it is determined that the main decoder flag is set in the determination in S11,
At S22, it is checked whether the decoded data is the main bar code or the add-on bar code. If it is the main bar code, the count value of the data counter on the RAM 6 is incremented by 1 in S23 and the interrupt process is ended. If it is an add-on bar code, the main decode flag is cleared in S24, and both the main bar code and the add-on bar code data are output to the host device in S25. Then, in S26, the operator is notified of the completion of reading by means of the LED, the buzzer or the like, and the interrupt process is terminated.

【0026】前記S21にてタイマーをスタートさせる
と、CPU4は一定時間経過毎に図2に示すタイマー割
込処理を行う。このタイマー割込処理では、先ず、S31
にてメインデコードフラグがセットされているか否かを
調べる。もし、メインデコードフラグがセットされてい
なければタイマー処理を行う必要がないのでこの割込処
理を直ちに終了する。また、メインデコードフラグがセ
ットされている場合は、S32にてタイマ値をデクリメン
トする。
When the timer is started in S21, the CPU 4 performs the timer interrupt process shown in FIG. 2 every time a fixed time elapses. In this timer interrupt process, first, S31
Check to see if the main decode flag is set. If the main decode flag is not set, there is no need to perform timer processing, so this interrupt processing is immediately terminated. If the main decode flag is set, the timer value is decremented in S32.

【0027】続いて、S33にてタイマー値を調べ、タイ
マー値が「0」になっていなければこの割込処理を終了
する。また、タイマー値が「0」になればタイマー設定
した一定期間が経過したということで、この期間内にア
ドオンバーコードがデコードされなかったことになり、
S34にてメインデコードフラグをクリアし、S35にてメ
インバーコードのデータのみを上位装置に出力し、S36
にてLED、ブザー等によりオペレータに読取り終了を
報知し、この割込処理を終了する。
Subsequently, in S33, the timer value is checked, and if the timer value is not "0", this interrupt processing is ended. Also, if the timer value becomes "0", it means that the fixed period set by the timer has elapsed, so it means that the add-on barcode was not decoded within this period.
The main decode flag is cleared in S34, only the main bar code data is output to the host device in S35, and S36
At this point, the operator is notified of the end of reading by means of an LED, a buzzer, etc., and this interrupt processing is ended.

【0028】CPU4がこのようなデコード割込処理を
行う本実施例では、メインバーコードがデコードされた
ときすでにアドオンバーコードがデコードされていれ
ば、直ちに、メインバーコードとアドオンバーコードの
両データを上位装置へ転送する。また、メインバーコー
ドがデコードされたとき、まだアドオンバーコードがデ
コードされていないときには、アドオンバーコードの部
分が走査されていない可能性があると見做して、タイマ
ーにより一定期間のウエイトを行い、この間にアドオン
バーコードがデコードされるとメインバーコードとアド
オンバーコードの両データを上位装置へ転送する。ま
た、タイマーによる一定期間内にアドオンバーコードが
デコードされなければ、そのとき初めてこのバーコード
ラベルはアドオンバーコードのないラベルであると判断
してメインバーコードのデータのみを上位装置へ転送す
る。
In the present embodiment in which the CPU 4 performs such decode interrupt processing, if the add-on bar code is already decoded when the main bar code is decoded, both the main bar code and the add-on bar code data are immediately output. To the host device. When the main bar code is decoded and the add-on bar code is not yet decoded, it is considered that the part of the add-on bar code may not be scanned, and the timer waits for a certain period. If the add-on bar code is decoded during this time, both the main bar code and the add-on bar code data are transferred to the host device. If the add-on bar code is not decoded within a certain period of time by the timer, the bar code label is first judged to be a label without the add-on bar code, and only the main bar code data is transferred to the host device.

【0029】このように、メインバーコードがデコード
されたとき、アドオンバーコードがデコードされていな
くても、直ちにメインバーコードのみであると判断せず
に、タイマーにより一定期間のウエイトをおき、この期
間内にアドオンバーコードがデコードされればメインバ
ーコードとアドオンバーコードの両データを上位装置へ
転送し、また、この期間内にアドオンバーコードがデコ
ードされなければメインバーコードのデータのみを上位
装置へ転送するようにしているので、通常のバーコード
ラベルとアドオンバーコードが付随しているバーコード
ラベルがたとえ混在していても、通常のバーコードラベ
ルとアドオンバーコードが付随しているバーコードラベ
ルを確実に区別してデコードすることができる。従っ
て、上位装置に対して、通常のバーコードラベルの場合
にはメインバーコードのデコードデータのみを確実に転
送でき、アドオンバーコードが付随しているバーコード
ラベルの場合にはメインバーコードのデコードデータと
アドオンバーコードのデコードデータの両データを確実
に転送できることになる。
In this way, when the main bar code is decoded, even if the add-on bar code is not decoded, it is not immediately determined that the main bar code is the only main bar code, and a wait time is set by the timer. If the add-on bar code is decoded within the period, both the main bar code and the add-on bar code data are transferred to the host device.If the add-on bar code is not decoded within this period, only the main bar code data is transferred to the upper level. Since it is transferred to the device, even if the barcode label with the normal barcode label and the barcode label with the add-on barcode are mixed, the barcode with the normal barcode label and the add-on barcode is attached. Code labels can be reliably distinguished and decoded. Therefore, in the case of a normal barcode label, only the decoded data of the main barcode can be reliably transferred to the host device, and in the case of a barcode label accompanied by an add-on barcode, the decoding of the main barcode is possible. Both the data and the decoded data of the add-on barcode can be reliably transferred.

【0030】(第2の実施例)この実施例は、請求項3
及び4に対応した実施例である。本実施例ではCPU4
は、図3に示すデコード割込処理を行うようにプログラ
ム設定されている。先ずS41にてデコードデータと同一
のコードが以前にデコードされているかを調べ、デコー
ドされていなければ、S42にてデコードデータをRAM
6上に割り当てられたバッファにセーブする。また、す
でにデコードされていれば、S43にてRAM6上に割り
当てられたデータカウンタのカウント値を1つインクリ
メントする。
(Second Embodiment) In this embodiment, claim 3
4 is an example corresponding to Nos. 4 and 4. In this embodiment, the CPU 4
Are programmed to perform the decode interrupt processing shown in FIG. First, in S41, it is checked whether the same code as the decoded data has been previously decoded. If not, in S42, the decoded data is stored in the RAM.
Save to the buffer allocated above. If already decoded, the count value of the data counter allocated on the RAM 6 is incremented by 1 in S43.

【0031】次に、S44にてデコードデータがメインバ
ーコードかアドオンバーコードかを調べる。もし、メイ
ンバーコードであれば、続いてS45にてバッファ中に左
右のデータが揃っているか否かを調べる。もし、左右の
データが揃っていなければこの割込処理を終了する。ま
た、左右のデータが揃っていれば、続いてS46にてメイ
ンバーコードのメーカコードを予めRAM6に登録した
アドオンバーコードを付随したラベルを印刷または貼付
した商品の製造元であるメーカコードと比較する。これ
は、アドオンバーコードを付随したラベルは書籍等、決
められた商品に印刷または貼付されているためメインバ
ーコードのメーカコードからアドオンバーコードを付随
したラベルであるか否かを調べることになる。なお、登
録するメーカコードとしては、全桁でも、これよりも少
ない桁数であってもよい。
Next, in S44, it is checked whether the decoded data is the main bar code or the add-on bar code. If it is the main bar code, it is then checked in S45 whether the left and right data are available in the buffer. If the left and right data are not available, this interrupt process is terminated. If the left and right data are available, then in S46, the manufacturer code of the main barcode is compared with the manufacturer code of the manufacturer of the product with the label attached with the add-on barcode registered in the RAM 6 in advance. . This is because the label with the add-on barcode is printed or affixed to a predetermined product such as a book, so it is checked from the manufacturer code of the main barcode whether the label is with the add-on barcode. . The manufacturer code to be registered may be all digits or a number of digits smaller than this.

【0032】メインバーコードのメーカコードがRAM
6に登録されていなければ、アドオンバーコードを付随
していないラベルであると判断し、S47にてデコードし
たメインバーコードのデータのみを上位装置へ出力し、
S48にてLED、ブザー等によりオペレータに読取り終
了を報知し、この割込処理を終了する。また、メインバ
ーコードのメーカコードがRAM6に登録されていれ
ば、S49にてアドオンバーコードがすでにデコードされ
てセーブされているか否かを調べ、アドオンバーコード
がセーブされていなければ、この割込処理を終了する。
また、アドオンバーコードがすでにセーブされていれ
ば、S50にてメインバーコードとアドオンバーコードの
両データを上位装置に出力し、S48にてLED、ブザー
等によりオペレータに読取り終了を報知し、この割込処
理を終了する。
The manufacturer code of the main bar code is RAM
If it is not registered in 6, it is determined that the label does not have an add-on barcode attached, and only the main barcode data decoded in S47 is output to the host device.
At S48, the operator is notified of the end of reading by means of the LED, buzzer, etc., and this interrupt processing is ended. If the manufacturer code of the main bar code is registered in the RAM 6, it is checked in S49 whether the add-on bar code has already been decoded and saved. If the add-on bar code has not been saved, this interrupt The process ends.
If the add-on bar code has already been saved, both main bar code and add-on bar code data are output to the host device in S50, and the operator is informed of the end of reading by the LED and buzzer in S48. Terminate the interrupt process.

【0033】また、S44のチェックにてデコードデータ
がアドオンバーコードであれば、S51にてメインバーコ
ードの左右データがすでにデコードされてバッファにセ
ーブされているか否かを調べ、デコードされていなけれ
ば、この割込処理を終了する。また、デコードされてバ
ッファにセーブされていれば、S52にてメインバーコー
ドとアドオンバーコードの両データを上位装置に出力
し、S48にてLED、ブザー等によりオペレータに読取
り終了を報知し、この割込処理を終了する。
If the decoded data is an add-on bar code in the check of S44, it is checked in S51 whether the left and right data of the main bar code is already decoded and saved in the buffer. , This interrupt processing is ended. If it is decoded and saved in the buffer, both the main bar code and add-on bar code data are output to the host device in S52, and the operator is informed of the end of reading by the LED, buzzer, etc. in S48. Terminate the interrupt process.

【0034】CPU4がこのようなデコード割込処理を
行う本実施例では、メインバーコードがデコードされる
と、このメインバーコードのメーカコードがRAM6に
予め登録したアドオンバーコードを付随したラベルに対
応するメーカコードに存在するか否かを調べ、メーカコ
ードがRAM6に登録されていればアドオンバーコード
がデコードされるまで待ち、アドオンバーコードがデコ
ードされた時点でメインバーコードとアドオンバーコー
ドの両データを上位装置へ転送し、また、メーカコード
がRAM6に登録されていなければ、直ちにメインバー
コードのデータのみを上位装置へ転送する。
In the present embodiment in which the CPU 4 performs such decode interrupt processing, when the main bar code is decoded, the maker code of this main bar code corresponds to the label with the add-on bar code previously registered in the RAM 6. Check whether the manufacturer code exists in the RAM 6, and if the manufacturer code is registered in the RAM 6, wait until the add-on barcode is decoded. At the time when the add-on barcode is decoded, both the main barcode and the add-on barcode are The data is transferred to the host device, and if the manufacturer code is not registered in the RAM 6, the data of the main bar code is immediately transferred to the host device.

【0035】従って、本実施例においても、通常のバー
コードラベルとアドオンバーコードが付随しているバー
コードラベルがたとえ混在していても、通常のバーコー
ドラベルとアドオンバーコードが付随しているバーコー
ドラベルを確実に区別してデコードすることができ、上
位装置に対して、通常のバーコードラベルの場合にはメ
インバーコードのデコードデータのみを確実に転送で
き、アドオンバーコードが付随しているバーコードラベ
ルの場合にはメインバーコードのデコードデータとアド
オンバーコードのデコードデータの両データを確実に転
送できることになる。
Therefore, also in this embodiment, even if the ordinary bar code label and the bar code label accompanied by the add-on bar code are mixed, the ordinary bar code label and the add-on bar code are attached. The barcode label can be reliably distinguished and decoded, and in the case of a normal barcode label, only the decoded data of the main barcode can be reliably transferred to the host device, and an add-on barcode is attached. In the case of the bar code label, both the main bar code decode data and the add-on bar code decode data can be reliably transferred.

【0036】(第3の実施例)この実施例は、請求項5
に対応した実施例である。本実施例ではCPU4は、図
4に示すデコード割込処理を行うようにプログラム設定
されている。先ずS61にてデコードデータと同一のコー
ドが以前にデコードされているかを調べ、デコードされ
ていなければ、S62にてデコードデータをRAM6上に
割り当てられたバッファにセーブする。また、すでにデ
コードされていれば、S63にてRAM6上に割り当てら
れたデータカウンタのカウント値を1つインクリメント
する。
(Third Embodiment) This embodiment is characterized by claim 5.
It is an embodiment corresponding to. In this embodiment, the CPU 4 is programmed to perform the decode interrupt processing shown in FIG. First, in S61, it is checked whether the same code as the decoded data has been previously decoded, and if not decoded, the decoded data is saved in the buffer allocated on the RAM 6 in S62. If already decoded, the count value of the data counter allocated on the RAM 6 is incremented by 1 in S63.

【0037】次に、S64にてデコードデータがメインバ
ーコードかアドオンバーコードかを調べる。もし、メイ
ンバーコードであれば、続いてS65にてバッファ中に左
右のデータが揃っているか否かを調べる。もし、左右の
データが揃っていなければこの割込処理を終了する。ま
た、左右のデータが揃っていれば、続いてS66にてメイ
ンバーコードの先頭3桁が予めRAM6に登録したコー
ド「977」又は「978」であるか否かを調べる。こ
れは、アドオンバーコードを付随したラベルとしてIS
BNコードからなるメインバーコードを使用した場合
は、図6の(a) 及び(b) に示すようにメインバーコード
の先頭3桁は「977」又は「978」となっているの
で、アドオンバーコードを付随したラベルとしてISB
Nコードからなるメインバーコードを使用する場合には
このような処理を行えばよい。なお、「977」の場合
は付随するアドオンバーコードが2桁であり、「97
8」の場合は付随するアドオンバーコードが5桁であ
る。
Next, in S64, it is checked whether the decoded data is the main bar code or the add-on bar code. If it is the main bar code, then in S65, it is checked whether or not the left and right data are available in the buffer. If the left and right data are not available, this interrupt process is terminated. If the left and right data are available, it is then checked in S66 whether the leading three digits of the main bar code are the code "977" or "978" registered in the RAM 6 in advance. This is an IS label with an add-on barcode.
When the main bar code consisting of the BN code is used, the first three digits of the main bar code are “977” or “978” as shown in (a) and (b) of FIG. ISB as label with code
Such processing may be performed when the main bar code consisting of N codes is used. In the case of "977", the accompanying add-on barcode is a 2-digit number, and "97"
In the case of “8”, the accompanying add-on barcode has 5 digits.

【0038】メインバーコードの先頭3桁が「977」
又は「978」でなければ、アドオンバーコードを付随
していない通常のラベルであると判断し、S67にてデコ
ードしたメインバーコードのデータのみを上位装置へ出
力し、S68にてLED、ブザー等によりオペレータに読
取り終了を報知し、この割込処理を終了する。また、メ
インバーコードの先頭3桁が「977」又は「978」
であれば、続いてS69にてアドオンバーコードがすでに
デコードされてセーブされているか否かを調べ、アドオ
ンバーコードがセーブされていなければ、この割込処理
を終了する。また、アドオンバーコードがすでにセーブ
されていれば、S70にてメインバーコードとアドオンバ
ーコードの両データを上位装置に出力し、S68にてLE
D、ブザー等によりオペレータに読取り終了を報知し、
この割込処理を終了する。
The first three digits of the main bar code are "977"
Or if it is not "978", it is determined that the label is a normal label without an add-on barcode, and only the data of the main barcode decoded in S67 is output to the host device, and the LED, buzzer, etc. are output in S68. By this, the operator is notified of the end of reading, and this interrupt processing is ended. Also, the first three digits of the main barcode are "977" or "978".
If so, then in S69, it is checked whether or not the add-on barcode has already been decoded and saved, and if the add-on barcode has not been saved, this interrupt processing ends. If the add-on bar code has already been saved, both main bar code and add-on bar code data are output to the host device in S70, and LE is executed in S68.
D, buzzer, etc. inform the operator of the end of reading,
This interrupt processing ends.

【0039】また、S64のチェックにてデコードデータ
がアドオンバーコードであれば、S71にてメインバーコ
ードの左右データがすでにデコードされてバッファにセ
ーブされているか否かを調べ、デコードされていなけれ
ば、この割込処理を終了する。また、デコードされてバ
ッファにセーブされていれば、S72にてメインバーコー
ドとアドオンバーコードの両データを上位装置に出力
し、S68にてLED、ブザー等によりオペレータに読取
り終了を報知し、この割込処理を終了する。
If the decoded data is an add-on bar code in the check of S64, it is checked in S71 whether the left and right data of the main bar code is already decoded and saved in the buffer, and if it is not decoded. , This interrupt processing is ended. If it is decoded and saved in the buffer, both main bar code and add-on bar code data are output to the host device in S72, and the operator is informed of the end of reading by the LED, buzzer, etc. in S68. Terminate the interrupt process.

【0040】CPU4がこのようなデコード割込処理を
行う本実施例では、メインバーコードがデコードされる
と、このメインバーコードの先頭3桁がRAM6に予め
登録したコード「977]又は「978」になっている
か否かを調べ、「977]又は「978」になっていれ
ばアドオンバーコードを付随したラベルであると判断し
てアドオンバーコードがデコードされるまで待ち、アド
オンバーコードがデコードされた時点でメインバーコー
ドとアドオンバーコードの両データを上位装置へ転送
し、また、メインバーコードの先頭3桁が「977]又
は「978」になっていなければ、通常のラベルである
と判断してメインバーコードのデータのみを上位装置へ
転送する。
In the present embodiment in which the CPU 4 performs such decode interrupt processing, when the main bar code is decoded, the first three digits of this main bar code are the code "977" or "978" registered in the RAM 6 in advance. If it is "977" or "978", it is judged that it is a label with an add-on barcode, wait until the add-on barcode is decoded, and the add-on barcode is decoded. At this point, both the main bar code and add-on bar code data are transferred to the host device, and if the first three digits of the main bar code are not "977" or "978", it is judged as a normal label. Then, only the main bar code data is transferred to the host device.

【0041】従って、本実施例においても、通常のバー
コードラベルとアドオンバーコードが付随しているバー
コードラベルがたとえ混在していても、通常のバーコー
ドラベルとアドオンバーコードが付随しているバーコー
ドラベルを確実に区別してデコードすることができ、上
位装置に対して、通常のバーコードラベルの場合にはメ
インバーコードのデコードデータのみを確実に転送で
き、アドオンバーコードが付随しているバーコードラベ
ルの場合にはメインバーコードのデコードデータとアド
オンバーコードのデコードデータの両データを確実に転
送できることになる。
Therefore, also in this embodiment, even if the normal bar code label and the bar code label accompanied by the add-on bar code are mixed, the normal bar code label and the add-on bar code are accompanied. The barcode label can be reliably distinguished and decoded, and in the case of a normal barcode label, only the decoded data of the main barcode can be reliably transferred to the host device, and an add-on barcode is attached. In the case of the bar code label, both the main bar code decode data and the add-on bar code decode data can be reliably transferred.

【0042】[0042]

【発明の効果】以上、本発明によれば、通常のバーコー
ドラベルとアドオンバーコードが付随しているバーコー
ドラベルが混在している場合に、通常のバーコードラベ
ルとアドオンバーコードが付随しているバーコードラベ
ルとを確実に区別してデコードすることができ、通常の
バーコードラベルの場合には上位装置に対してメインバ
ーコードのデコードデータのみを確実に転送でき、アド
オンバーコードが付随しているバーコードラベルの場合
には上位装置に対してメインバーコードのデコードデー
タとアドオンバーコードのデコードデータの両データを
確実に転送できる。
As described above, according to the present invention, when a normal bar code label and a bar code label accompanied by an add-on bar code are mixed, the normal bar code label and the add-on bar code are accompanied. It is possible to reliably distinguish and decode the bar code label that is present, and in the case of a normal bar code label, only the decoded data of the main bar code can be reliably transferred to the host device, and the add-on bar code is attached. In the case of the bar code label having the above, both the main bar code decode data and the add-on bar code decode data can be reliably transferred to the host device.

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

【図1】本発明の第1の実施例を示すCPUによるデコ
ード割込処理の流れ図。
FIG. 1 is a flow chart of a decode interrupt processing by a CPU showing a first embodiment of the present invention.

【図2】同第1の実施例を示すCPUによるタイマー割
込処理の流れ図。
FIG. 2 is a flow chart of timer interrupt processing by the CPU showing the first embodiment.

【図3】本発明の第2の実施例を示すCPUによるデコ
ード割込処理の流れ図。
FIG. 3 is a flow chart of a decode interrupt processing by a CPU showing a second embodiment of the present invention.

【図4】本発明の第3の実施例を示すCPUによるデコ
ード割込処理の流れ図。
FIG. 4 is a flow chart of decode interrupt processing by a CPU showing a third embodiment of the present invention.

【図5】EAN−13、UPC−A、UPC−Eの各バ
ーコード例を示す図。
FIG. 5 is a diagram showing bar code examples of EAN-13, UPC-A, and UPC-E.

【図6】メインバーコードにアドオンバーコードを付随
したバーコード例を示す図。
FIG. 6 is a diagram showing a barcode example in which an add-on barcode is attached to a main barcode.

【図7】走査線がメインバーコードのみを横切っている
状態を示す図。
FIG. 7 is a diagram showing a state in which a scanning line crosses only a main bar code.

【図8】バーコード読取装置のハード構成を示すブロッ
ク図。
FIG. 8 is a block diagram showing a hardware configuration of a barcode reading device.

【図9】従来のCPUによるデコード割込処理を示す流
れ図。
FIG. 9 is a flowchart showing a decode interrupt processing by a conventional CPU.

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

4…CPU(Central Processing Unit ) 5…ROM(リード・オンリー・メモリ) 6…RAM(ランダム・アクセス・メモリ) 4 ... CPU (Central Processing Unit) 5 ... ROM (Read Only Memory) 6 ... RAM (Random Access Memory)

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 EAN−13、UPC−A、UPC−E
等のワールド・プロダクト・コード系のメインバーコー
ド及びこのメインバーコードの右側に付随したアドオン
バーコードを読取って上位装置へ転送する場合に、 メインバーコードのデータをデコードしたとき、アドオ
ンバーコードがデコードされていなければ、タイマーを
スタートさせ、このタイマーのスタート後、一定時間内
にアドオンバーコードをデコードしたときは、メインバ
ーコードとアドオンバーコードの両データを前記上位装
置へ転送し、一定時間内にアドオンバーコードをデコー
ドしなかったときは、メインバーコードのデータのみを
前記上位装置へ転送することを特徴とするバーコード読
取方法。
1. EAN-13, UPC-A, UPC-E
When reading the main bar code of the world product code such as etc. and the add-on bar code attached to the right side of this main bar code and transferring it to the upper device, when the main bar code data is decoded, the add-on bar code is If it is not decoded, start the timer, and when the add-on bar code is decoded within a certain time after starting this timer, transfer both the main bar code and the add-on bar code data to the host device, A bar code reading method, wherein only the main bar code data is transferred to the higher-level device when the add-on bar code is not decoded.
【請求項2】 EAN−13、UPC−A、UPC−E
等のワールド・プロダクト・コード系のメインバーコー
ド及びこのメインバーコードの右側に付随したアドオン
バーコードを読取って上位装置へ転送するバーコード読
取装置において、 メインバーコードのデータ及びアドオンバーコードのデ
ータをデコードするデコード手段と、タイマーと、メイ
ンバーコードのデータが前記デコード手段にてデコード
されたか否かを検出する第1のデコード検出手段と、ア
ドオンバーコードのデータが前記デコード手段にてデコ
ードされたか否かを検出する第2のデコード検出手段
と、前記第1のデコード検出手段がメインバーコードの
データのデコードを検出したとき、前記第2のデコード
チェック手段がすでにアドオンバーコードのデータのデ
コードを検出していると、メインバーコードとアドオン
バーコードの両データを前記上位装置へ転送する第1の
転送手段と、前記第1のデコード検出手段がメインバー
コードのデータのデコードを検出したとき、前記第2の
デコード検出手段がアドオンバーコードのデータのデコ
ードを検出していなければ、前記タイマーをスタートさ
せ、このタイマーのスタート後、一定時間内に前記第2
のデコード検出手段がアドオンバーコードのデータのデ
コードを検出すると、メインバーコードとアドオンバー
コードの両データを前記上位装置へ転送し、また、一定
時間内に前記第2のデコード検出手段がアドオンバーコ
ードのデータのデコードを検出しなければ、メインバー
コードのデータのみを前記上位装置へ転送する第2の転
送手段とを設けたことを特徴とするバーコード読取装
置。
2. EAN-13, UPC-A, UPC-E
In the barcode reader that reads the main barcode of the world product code such as and the add-on barcode attached to the right side of this main barcode and transfers it to the host device, the main barcode data and the add-on barcode data Decoding means for decoding the data, a timer, a first decode detecting means for detecting whether or not the main bar code data is decoded by the decoding means, and the add-on bar code data is decoded by the decoding means. When the second decode detecting means for detecting whether or not the first decode detecting means detects the decode of the main bar code data, the second decode checking means already decodes the add-on bar code data. Is detected, the main bar code and add-on bar First transfer means for transferring both data of the barcode to the upper device, and the second decode detecting means of the add-on barcode when the first decode detecting means detects decoding of the main barcode data. If the decoding of the data is not detected, the timer is started and the second timer is started within a certain time after the timer is started.
When the decode detecting means detects the decode of the add-on bar code data, both the main bar code and the add-on bar code data are transferred to the higher-level device, and the second decode detecting means moves the add-on bar code within a predetermined time. A bar code reading apparatus comprising: a second transfer unit that transfers only the main bar code data to the higher-level device if the decoding of the code data is not detected.
【請求項3】 EAN−13、UPC−A、UPC−E
等のワールド・プロダクト・コード系のメインバーコー
ド及びこのメインバーコードの右側に付随したアドオン
バーコードを読取って上位装置へ転送する場合に、 予め、アドオンバーコードが付随しているメインバーコ
ードに含まれるメーカコードを登録しておき、メインバ
ーコードのデータをデコードしたとき、アドオンバーコ
ードがデコードされていなければ、デコードしたメイン
バーコードのメーカコードを登録したメーカコードと比
較して、アドオンバーコードが付随しているか否かを判
断し、アドオンバーコードが付随していると判断したと
きには、アドオンバーコードをデコードするまでデータ
の前記上位装置へ転送を禁止し、アドオンバーコードを
デコードするとメインバーコードとアドオンバーコード
の両データを前記上位装置へ転送し、アドオンバーコー
ドが付随していないことを判断したときには、メインバ
ーコードのデータのみを前記上位装置へ転送することを
特徴とするバーコード読取方法。
3. EAN-13, UPC-A, UPC-E
When reading the main bar code of the world product code such as and the add-on bar code attached to the right side of this main bar code and transferring it to the host device, the main bar code attached with the add-on bar code When the manufacturer code included is registered and the main bar code data is decoded, if the add-on bar code is not decoded, the manufacturer code of the decoded main bar code is compared with the registered manufacturer code, and the add-on bar code is compared. If it is determined that the code is attached, and if it is determined that the add-on barcode is attached, the transfer of data to the host device is prohibited until the add-on barcode is decoded, and the add-on barcode is decoded. Both bar code and add-on bar code data above A bar code reading method, wherein when the data is transferred to a device and it is determined that the add-on bar code is not attached, only the data of the main bar code is transferred to the host device.
【請求項4】 EAN−13、UPC−A、UPC−E
等のワールド・プロダクト・コード系のメインバーコー
ド及びこのメインバーコードの右側に付随したアドオン
バーコードを読取って上位装置へ転送するバーコード読
取装置において、 メインバーコードのデータ及びアドオンバーコードのデ
ータをデコードするデコード手段と、アドオンバーコー
ドが付随しているメインバーコードに含まれるメーカコ
ードを登録した登録手段と、メインバーコードのデータ
が前記デコード手段にてデコードされたか否かを検出す
る第1のデコード検出手段と、アドオンバーコードのデ
ータが前記デコード手段にてデコードされたか否かを検
出する第2のデコード検出手段と、前記メインバーコー
ドのメーカコードと前記登録手段に登録してあるメーカ
コードを比較してアドオンバーコードが付随しているか
否かを判断する判断手段と、前記第1のデコード検出手
段がメインバーコードのデータのデコードを検出したと
き、前記第2のデコードチェック手段がすでにアドオン
バーコードのデータのデコードを検出していると、メイ
ンバーコードとアドオンバーコードの両データを前記上
位装置へ転送する第1の転送手段と、前記第1のデコー
ド検出手段がメインバーコードのデータのデコードを検
出したとき、前記第2のデコード検出手段がアドオンバ
ーコードのデータのデコードを検出していなければ、前
記判断手段にメインバーコードにアドオンバーコードが
付随しているか否かの判断を行わせ、前記判断手段がア
ドオンバーコードが付随していることを判断すると、前
記第2のデコード検出手段がアドオンバーコードのデー
タのデコードを検出するまでデータの前記上位装置へ転
送を禁止し、前記第2のデコード検出手段がアドオンバ
ーコードをデコードするとメインバーコードとアドオン
バーコードの両データを前記上位装置へ転送し、また、
前記判断手段がアドオンバーコードが付随していないこ
とを判断すると、メインバーコードのデータのみを前記
上位装置へ転送する第2の転送手段とを設けたことを特
徴とするバーコード読取装置。
4. EAN-13, UPC-A, UPC-E
In the barcode reader that reads the main barcode of the world product code such as and the add-on barcode attached to the right side of this main barcode and transfers it to the host device, the main barcode data and the add-on barcode data A decoding means for decoding the main bar code, a registration means for registering the manufacturer code included in the main bar code accompanied by the add-on bar code, and a detecting means for detecting whether or not the data of the main bar code is decoded by the decoding means. The first decoding detecting means, the second decoding detecting means for detecting whether or not the data of the add-on barcode is decoded by the decoding means, the manufacturer code of the main barcode and the registration means are registered. Compare maker codes and add-on barcode is attached When the judging means for judging whether or not the first decoding detecting means detects the decoding of the main bar code data, the second decoding checking means has already detected the decoding of the add-on bar code data. A first transfer means for transferring both the main bar code data and the add-on bar code data to the higher-level device; and the second bar code when the first decoding detection means detects decoding of the main bar code data. If the decoding detection means does not detect the decoding of the add-on barcode data, it causes the determination means to determine whether or not the main barcode is accompanied by the add-on barcode, and the determination means determines that the add-on barcode is When it is determined that it is attached, the second decoding detecting means detects the decoding of the add-on barcode data. Prohibits the transfer to the host device data until, transfers both data of the main bar code and add-ons barcode when said second decoding detecting means decodes the add-on bar code to the host device, also,
The bar code reading device, further comprising: second transfer means for transferring only the main bar code data to the upper level device when the judging means judges that the add-on bar code is not attached.
【請求項5】 バーコードを読取って上位装置へ転送す
る場合に、メインバーコードのデータをデコードしたと
き、アドオンバーコードがデコードされていなければ、
デコードしたメインバーコードの先頭3桁のデータが
「977」又は「978」であれば、このメインバーコ
ードはISBNコードであり、アドオンバーコードが付
随していると判断してアドオンバーコードをデコードす
るまでデータの前記上位装置へ転送を禁止し、アドオン
バーコードをデコードするとメインバーコードとアドオ
ンバーコードの両データを前記上位装置へ転送し、デコ
ードしたメインバーコードの先頭3桁のデータが「97
7」又は「978」以外であれば、アドオンバーコード
が付随していないと判断してメインバーコードのデータ
のみを前記上位装置へ転送することを特徴とするバーコ
ード読取方法。
5. When the barcode is read and transferred to a host device, when the data of the main barcode is decoded and the add-on barcode is not decoded,
If the first three-digit data of the decoded main bar code is "977" or "978", the main bar code is an ISBN code, and it is determined that the add-on bar code is attached and the add-on bar code is decoded. Until the above, the transfer of data to the host device is prohibited, and when the add-on barcode is decoded, both the main bar code and the add-on bar code data are transferred to the host device, and the first three digits of the decoded main bar code are 97
If it is other than "7" or "978", it is determined that the add-on barcode is not attached, and only the data of the main barcode is transferred to the host device.
JP13035895A 1995-05-29 1995-05-29 Barcode reading method and reader Expired - Lifetime JP3198232B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13035895A JP3198232B2 (en) 1995-05-29 1995-05-29 Barcode reading method and reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13035895A JP3198232B2 (en) 1995-05-29 1995-05-29 Barcode reading method and reader

Related Child Applications (2)

Application Number Title Priority Date Filing Date
JP2001072287A Division JP2001243416A (en) 2001-03-14 2001-03-14 Bar code reading method
JP2001072288A Division JP2001243417A (en) 2001-03-14 2001-03-14 Bar code reading method

Publications (2)

Publication Number Publication Date
JPH08329175A true JPH08329175A (en) 1996-12-13
JP3198232B2 JP3198232B2 (en) 2001-08-13

Family

ID=15032480

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13035895A Expired - Lifetime JP3198232B2 (en) 1995-05-29 1995-05-29 Barcode reading method and reader

Country Status (1)

Country Link
JP (1) JP3198232B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6299063B1 (en) * 1998-12-04 2001-10-09 Impresse Corporation Method and apparatus for automated data entry
US6550682B2 (en) 2001-03-02 2003-04-22 Nec Infrontia Corporation Bar code reading method, bar code reading apparatus, and program thereof
CN109255414A (en) * 2018-07-06 2019-01-22 广东数相智能科技有限公司 A kind of colour barcode made an inventory for books, books recognition methods, electronic equipment and storage medium
CN112241639A (en) * 2019-07-18 2021-01-19 神讯电脑(昆山)有限公司 Multi-code scanning method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6299063B1 (en) * 1998-12-04 2001-10-09 Impresse Corporation Method and apparatus for automated data entry
US6550682B2 (en) 2001-03-02 2003-04-22 Nec Infrontia Corporation Bar code reading method, bar code reading apparatus, and program thereof
CN109255414A (en) * 2018-07-06 2019-01-22 广东数相智能科技有限公司 A kind of colour barcode made an inventory for books, books recognition methods, electronic equipment and storage medium
CN112241639A (en) * 2019-07-18 2021-01-19 神讯电脑(昆山)有限公司 Multi-code scanning method and system

Also Published As

Publication number Publication date
JP3198232B2 (en) 2001-08-13

Similar Documents

Publication Publication Date Title
KR100271245B1 (en) Bar code reading apparatus
US5128527A (en) Apparatus for reading a bar code
JPH01500937A (en) Barcode data automatic discrimination method and device
US20040004124A1 (en) Add-on capture rate in a barcode scanning system
US5311000A (en) Bar code scanner and method of scanning
JP3514982B2 (en) Barcode reading device and barcode reading method
JP3198232B2 (en) Barcode reading method and reader
US5923022A (en) Method and apparatus for identifying bar code symbols using reading gates
JP3064632B2 (en) Barcode reader
JP4154871B2 (en) Bar code reading method and bar code reading apparatus
JP2001243416A (en) Bar code reading method
JP2001243417A (en) Bar code reading method
US6761314B2 (en) Bar code symbology for consumer scanning applications
JPH08263585A (en) Bar code reading device
GB2284916A (en) Bar code reader
JP2853357B2 (en) Barcode reader
US20010006192A1 (en) Bar code reader and bar code reading method
JPH0765105A (en) Bar code reader
JP2725221B2 (en) Barcode reader
JP2730273B2 (en) Barcode reading device and barcode reading method
JP2641991B2 (en) Data processing method of bar code reader
JP2783234B2 (en) Barcode reader
JP2778870B2 (en) Barcode decoder
JP2655758B2 (en) Barcode reader and barcode reading method
JPH03122782A (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: 20080608

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090608

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090608

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100608

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100608

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110608

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120608

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20130608

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20130608

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20140608

Year of fee payment: 13

EXPY Cancellation because of completion of term