JPH01307885A - Code reader - Google Patents

Code reader

Info

Publication number
JPH01307885A
JPH01307885A JP63138540A JP13854088A JPH01307885A JP H01307885 A JPH01307885 A JP H01307885A JP 63138540 A JP63138540 A JP 63138540A JP 13854088 A JP13854088 A JP 13854088A JP H01307885 A JPH01307885 A JP H01307885A
Authority
JP
Japan
Prior art keywords
data
memory
bar
comparator
signal
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.)
Pending
Application number
JP63138540A
Other languages
Japanese (ja)
Inventor
Junichi Ouchi
純一 大内
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.)
Alps Alpine Co Ltd
Original Assignee
Alps Electric Co Ltd
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 Alps Electric Co Ltd filed Critical Alps Electric Co Ltd
Priority to JP63138540A priority Critical patent/JPH01307885A/en
Publication of JPH01307885A publication Critical patent/JPH01307885A/en
Priority to US07/745,989 priority patent/US5216231A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the burden on an information processor and to read a code with a high precision by outputting a bar code in accordance with the number of times of continuous coincidence between present and preceding decoded bar codes and regarding equal bar codes different in position as different codes based on a bar space counted value. CONSTITUTION:Outputs of first and second data memories 62 and 64 are supplied to a first comparator 65, and this comparator 65 detects coincidence between present and preceding decoded bar codes. When the number of times of continuous coincidence counted by a data counter circuit 66 reaches a prescribed value, a signal (g) to supply the present decoded bar code to the information processor is outputted from a data counter comparator 68. When the ratio of the present bar space counted value to the preceding bar space counted value is a prescribed value or lower, a signal to regard equal bar codes different in position as different bar codes is outputted from a second comparator 77 to which outputs of a bar space counter memory 72, a preceding bar space counter memory 74, and a constant divider 76 are supplied; and thus, the burden on the information processor is reduced, and erroneous read is prevented to improve the bar code read precision.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、媒体上に表示されたバーコード符号を光電変
換器により電気信号に変換して、情報処理装置で処理可
能なデータに復号して出力する符号読取装置に係り、特
に自己走査型の光電変換器を用いた符号読取装置の出力
データ量を低減して、この出力データを受は取る情報処
理装置側の負担を軽減すると共に、表示位置を異にする
同一構成のバーコード符号を自動的に区別して読み取れ
るようにした符号読取装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention converts a barcode symbol displayed on a medium into an electrical signal using a photoelectric converter, and decodes it into data that can be processed by an information processing device. Reducing the amount of output data of a code reading device that uses a self-scanning photoelectric converter, in particular, reducing the burden on the information processing device that receives and receives this output data, The present invention relates to a code reading device that is capable of automatically distinguishing and reading barcode codes of the same configuration but at different display positions.

[従来の技術] 電子計算機などの情報処理装置へのデータ入力手段とし
て、データを黒地のバーと白地のスペースでバーコード
符号を作成し、このバーコード符号を光電変換器で読み
取るバーコード符号入カシステムが知られている。この
種のバーコード符号入カシステムは、キーボードなどに
よる入力に比してデータの入力時間が大幅に短縮され、
入力操作が簡単で入力ミスが少なく、入力装置である光
電変換器に機構部がないために故障が少ないという特長
を有するので、その適用範囲は日増しに拡大している。
[Prior Art] As a means of inputting data into an information processing device such as a computer, a barcode code input method is used in which a barcode code is created using black bars and white spaces, and this barcode code is read by a photoelectric converter. Ka system is known. This type of barcode entry system significantly reduces data entry time compared to input using a keyboard, etc.
The field of application is expanding day by day because input operations are easy, there are few input errors, and there are no mechanical parts in the photoelectric converter that is the input device, so there are fewer failures.

例えば、商品の種類2価格、売上数、販売地域。For example, product type, price, number of sales, and sales region.

などを主なデータとする販売管理や、VTRの番組予約
、ルームクーラの制御など、各種のデータによる種々の
情報管理、産業用及び民生用の各種機器の操作や機能チ
エツクに、このバーコード符号入カシステムが広く使用
されている。
This barcode code is used for various information management using various data such as sales management mainly using data such as VTR program reservations and room cooler control, and for operating and checking the functions of various industrial and consumer equipment. Input systems are widely used.

バーコード符号入カシステムに用いら九るバーコード符
号の規格は、日本工業規格J I S 、B9550−
1978、或は1984年7月1日CQ出版発行、トラ
ンジスタ技術別冊「センサ、インターフェーシングJ 
N04.第179〜199頁「バーコード・システムの
製作」などに詳しく説明されている。
The barcode code standard used in the barcode code input system is the Japanese Industrial Standard JIS, B9550-
1978, or July 1, 1984, published by CQ Publishing, Transistor Technology Special Issue “Sensors, Interfacing J”
N04. This is explained in detail on pages 179 to 199, ``Production of Barcode System.''

第3図はこのバーコード符号とその読取波形の説明図で
あり、(a)は表示されたバーコードのシンボル、(b
)は(a)のバーコードを光電変換器で矢印方向に走査
して得た読取波形図である。なお。
FIG. 3 is an explanatory diagram of this barcode symbol and its read waveform, where (a) is the displayed barcode symbol, (b)
) is a read waveform diagram obtained by scanning the barcode in (a) in the direction of the arrow with a photoelectric converter. In addition.

(a)においてSはスタートコード或いはストップコー
ドであり、符号読取装置の初期状態セット、或はバー/
スペースの判定基準のために用いられる。そして、(a
)においてCはこのバーコードの情報(メツセージ)を
示すメツセージコードであり、(a)には矢印及びこの
矢印と逆方向にも読取れる構成とされたコードが示され
ている。
In (a), S is a start code or a stop code, and is the initial state set of the code reader or the bar/stop code.
Used for space criteria. And (a
), C is a message code indicating the information (message) of this barcode, and (a) shows an arrow and a code that can be read in the opposite direction to the arrow.

このようなコードを読み取る符号読取装置は、光電変換
器で電気信号に変換された第3図(b)に示すit H
n 、  u L IIの2レベルの波形の相隣る各変
化点(エツジ)間の幅をクロック信号の数としてカウン
トし、そのカウント値に基づいてバーコードの情報Cを
復号(以下、デコードと称する)するもので、光電変換
器としては例えば自己走査型の光電変換器が用いられ、
この符号読取装置からバーコードの情報Cがデコードさ
れたバイナリデータが情報処理装置に供給される。そし
て、自己走査型の光電変換器を用いた符号読取装置では
A code reading device that reads such a code uses an IT H signal as shown in FIG.
The width between adjacent changing points (edges) of the two-level waveforms n and u L II is counted as the number of clock signals, and information C of the barcode is decoded based on the count value (hereinafter referred to as decoding). For example, a self-scanning photoelectric converter is used as the photoelectric converter.
Binary data in which information C of the barcode is decoded is supplied from this code reading device to an information processing device. And code reading devices using self-scanning photoelectric converters.

1つのバーコード符号を数千回から数百回走査し。One barcode symbol is scanned thousands to hundreds of times.

デコードすることにより読取確率とその精度を高くして
いる。
By decoding, the reading probability and accuracy are increased.

[発明が解決しようとする課題] 上記した自己走査型の光電変換器を用いたこの種の符号
読取装置では、1つのバーコード符号を数千回から数百
回の多数回走査し、デコードしている。しかし、読み取
ったコードが正しくデコードされた後に、さらに同じコ
ードを送出することは、徒に情報処理装置側に負担をか
けることになり、該情報処理装置の資源を無駄にすると
いう問題がある。
[Problems to be Solved by the Invention] This type of code reading device using the self-scanning photoelectric converter described above scans one barcode code many times, ranging from several thousand times to several hundred times, and then decodes it. ing. However, transmitting the same code after the read code has been correctly decoded unnecessarily places a burden on the information processing device and wastes the resources of the information processing device.

一方で、バーコード符号入カシステムに用いられるバー
コード符号は、汚れの付着によってコード誤りを生じ易
く、また、印刷品質により白バーの光の反射率が低下し
たり、バーの幅の明確度が変化したり、黒バー内にボイ
ドが或は白バー内にスポットが生じたりすることがあり
、これらもコード誤りの原因になり易い。また、バーコ
ード符号入カシステムに用いられる符号読取装置は、電
源投入直後は動作が不安定であり、これらが原因で誤動
作することがあり、或は操作が不適切で入射角が変動し
このために誤動作することがある。
On the other hand, the barcode codes used in barcode code input systems are prone to code errors due to the adhesion of dirt, and the light reflectance of the white bar may decrease depending on the printing quality, or the clarity of the bar width may be affected. may change, or there may be voids within the black bars or spots within the white bars, which are also likely to cause code errors. In addition, code reading devices used in barcode code entry systems are unstable immediately after power is turned on, and this may cause malfunctions, or improper operation may cause the angle of incidence to fluctuate. This may cause malfunctions.

このため、この種の符号読取装置では、高い読取精度で
デコード誤りのない読取動作を行なわせることが必要で
ある。
Therefore, in this type of code reading device, it is necessary to perform a reading operation with high reading accuracy and without decoding errors.

さらに、バーコードを用いて、例えば商品の種類2価格
、売上数、販売先などのデータ表を作成し、このデータ
表を読取り処理して営業業績の解析と次期の営業計画の
立案を行なう場合などには。
Furthermore, barcodes are used to create data tables such as product type, price, sales volume, sales destination, etc., and this data table is read and processed to analyze sales performance and formulate the next sales plan. etc.

多種類の情報を取り扱うために、或は便宜上の理由で同
一構成で情報の異なるバーコード符号をデータに使用し
て処理を行なうことがある。このような場合には、デー
タ表の例えば縦方向にこの種の情報の異なる同一構成の
バーコード符号を配列し、その配列位置で情報の差を区
別して処理している。
In order to handle many types of information or for reasons of convenience, barcode codes with the same configuration but different information may be used for data processing. In such a case, barcode codes having the same structure and different types of information are arranged, for example, in the vertical direction of the data table, and the difference in information is distinguished and processed depending on the arrangement position.

この場合、データ表の異なる位置(例えば縦方向の異な
る行位置)にある同一構成のバーコード符号の情報の差
の区別を、符号読取装置自体で行なえれば、処理が能率
的に行なわれて便利である。
In this case, if the code reading device itself could distinguish between the differences in information between barcode codes with the same structure located at different positions in the data table (for example, different row positions in the vertical direction), processing would be more efficient. It's convenient.

本発明の目的は、上記した従来技術の問題を解決し、高
読取精度でバーコード符号を読取り、デコードしたデー
タを処理する情報処理装置側の負担を軽減し、異なる位
置にある同一構成のバーコードを区別して処理するよう
に構成した符号読取装置を提供することにある。
It is an object of the present invention to solve the problems of the prior art described above, to read barcode symbols with high reading accuracy, to reduce the burden on the information processing device side for processing decoded data, and to reduce the burden on information processing equipment that processes decoded data. An object of the present invention is to provide a code reading device configured to distinguish and process codes.

[課題を解決するための手段] 上記目的を達成するために、本発明はデコード部の出力
側に、現在復号したデータを記憶する第1のデータメモ
リと、前回復号したデータを記憶する第2のデータメモ
リと、前記第1のデータメモリの記憶データと前記第2
のデータメモリの記憶データとを比較する第1の比較器
と、バー及び/またはスペースの数が予め設定した所定
値に対して一定比率以下であることを検出する第2の比
較器と、上記第1の比較器による比較が連続して一致し
、予め設定した所定回数に達するとき、上記第1のデー
タメモリの記憶データを復号データとして情報処理装置
に転送し、上記第2の比較器による比較が、上記一定比
率以下となるとき、当該バーコード符号を別情報として
情報処理装置に転送する手段を備えた出力制御部を設け
たことを特徴とする。
[Means for Solving the Problems] In order to achieve the above object, the present invention includes a first data memory for storing currently decoded data and a first data memory for storing previously decoded data on the output side of the decoding unit. 2 data memory, the data stored in the first data memory and the second data memory;
a first comparator that compares the data stored in the data memory of the data memory; a second comparator that detects that the number of bars and/or spaces is less than or equal to a certain ratio with respect to a predetermined value; When the comparison by the first comparator successively matches and reaches a predetermined number of times, the data stored in the first data memory is transferred to the information processing device as decoded data, and the data stored in the first data memory is transferred to the information processing device as decoded data. The present invention is characterized in that an output control unit is provided that includes means for transmitting the barcode symbol as separate information to the information processing device when the comparison is below the above-mentioned certain ratio.

[作用] 自己走査型光電変換部が、媒体上に表示されたバーコー
ド符号の読取りを開始すると、この自己走査型光電変換
部の出力信号に基づいて、エツジ検出部とカウンタ部が
作動し、これらのエツジ検出部とカウンタ部の出力信号
に基づいて、デコード部によってバーコード符号がデコ
ードされる。
[Operation] When the self-scanning photoelectric conversion section starts reading the barcode symbol displayed on the medium, the edge detection section and the counter section operate based on the output signal of this self-scanning photoelectric conversion section. The barcode symbol is decoded by the decoding section based on the output signals of the edge detection section and the counter section.

デコード部でデコードされたデータは出力制御部に入力
され、出力制御部の第1のデータメモリには現在復号し
たデータが記憶され、第2のデータメモリには前回復号
したデータが記憶される。
The data decoded by the decoding section is input to the output control section, the first data memory of the output control section stores the currently decoded data, and the second data memory stores the previously decoded data. .

また、出力制御部に設けられた第1の比較器によって、
第1のデータメモリの記憶データと第2のデータメモリ
の記憶データとが比較され、第2の比較器によって、バ
ー及び/またはスペースの数が予め設定された所定値に
基づく値と比較される。
In addition, the first comparator provided in the output control section allows
The data stored in the first data memory and the data stored in the second data memory are compared, and the number of bars and/or spaces is compared with a value based on a predetermined value set in advance by a second comparator. .

そして、第1の比較器による比較で第1のデータメモリ
の記憶データと第2のデータメモリの記憶データとが、
連続して一致して予め設定した所定回数に達すると、第
゛1のデータメモリの記憶データが復号データとして情
報処理装置に転送される。また、第2の比較器の比較が
所定値以下となるとき、仮に同一構成のバーコード符号
でもそれを別情報として自動的に区別して転送処理され
る。
Then, the data stored in the first data memory and the data stored in the second data memory are compared by the first comparator.
When a predetermined number of consecutive matches is reached, the data stored in the first data memory is transferred to the information processing device as decoded data. Furthermore, when the comparison by the second comparator is less than or equal to a predetermined value, even if the barcode codes have the same structure, they are automatically distinguished as separate information and transferred.

このようにして、本発明では、同一構成のバーコードで
も配列位置が異なると、別情報として区別して搗精度の
読取動作が行なわれると共に、得られた復号データは情
報処理装置の負担を軽減するようにして情報処理装置に
供給される。
In this way, in the present invention, even if barcodes have the same structure but have different arrangement positions, they are distinguished as separate information and read with high accuracy, and the obtained decoded data reduces the burden on the information processing device. In this way, the information is supplied to the information processing device.

[実施例コ 以下9本発明の実施例を第1図及び第2図を参照して説
明する。
[Embodiments] Nine embodiments of the present invention will be described below with reference to FIGS. 1 and 2.

第1図は本発明による符号読取装置の一実施例の構成を
示すブロック図、第2図は第1図における出力制御部の
具体的構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of an embodiment of a code reading device according to the present invention, and FIG. 2 is a block diagram showing the specific configuration of the output control section in FIG. 1.

第1図において、1は光電変換部、2はエツジ検出部、
3はカウンタ部、4はスタート・ストップ判定部、5は
デコード部、6は出力制御部、7は切替器である。
In FIG. 1, 1 is a photoelectric conversion section, 2 is an edge detection section,
3 is a counter section, 4 is a start/stop determination section, 5 is a decoding section, 6 is an output control section, and 7 is a switch.

同図において、光電変換部1はCCD等の光電変換素子
列からなる自己走査型のラインセンサ。
In the figure, a photoelectric conversion unit 1 is a self-scanning line sensor consisting of a photoelectric conversion element array such as a CCD.

結像光学系、デジタイザ、等を具備し、媒体上に表示さ
れたバーコードを光電変換して“H”又はII L I
Iの2値しベル信号aとして、エツジ検出部2に与える
。このエツジ検出部2は、2値しベル信号aが、“HI
T→(tL“又はRL”→“H”となる変化点を検出し
、これをエツジ検出信号すとしてカウンタ部3、スター
ト・ストップ判定部4及びデコード部5に与える。
Equipped with an imaging optical system, a digitizer, etc., it photoelectrically converts the barcode displayed on the medium into "H" or II L I
It is given to the edge detection section 2 as a binary signal a of I. This edge detection unit 2 detects that the binary bell signal a is “HI”.
A change point where T→(tL" or RL"→"H") is detected and this is applied as an edge detection signal to the counter section 3, start/stop determination section 4, and decoding section 5.

カウンタ部3は、このエツジ検出信号すの入力でOクリ
アされ、図示しないクロック信号発生手段からのクロッ
ク信号CLを、エツジ検出部2から入力する相隣る二つ
のエツジ信号間でカウントし、そのカウント値を示すカ
ウント信号Cをスタート・ストップ判定部4とデコード
部5に与える。
The counter section 3 is cleared to O by the input of this edge detection signal S, and counts the clock signal CL from a clock signal generation means (not shown) between two adjacent edge signals inputted from the edge detection section 2, A count signal C indicating a count value is given to the start/stop determining section 4 and the decoding section 5.

このスタート・ストップ判定部4は、エツジ検出信号す
とカウント信号Cとから、第3図に示したスタートコー
ドSを検知してスタート判定を行ない、スタート判定が
満足されないと、信号fをデコード部に与える。そして
、スタート判定後に入力するメツセージコードCに続く
ストップコードSを検知し、ストップ条件が満足される
と信号eをデコード部5に与える。
The start/stop determination unit 4 detects the start code S shown in FIG. 3 from the edge detection signal and the count signal C to perform a start determination. If the start determination is not satisfied, the signal give to Then, the stop code S following the message code C input after the start determination is detected, and when the stop condition is satisfied, a signal e is given to the decoding section 5.

また、デコード部5は、エツジ検出信号すの入力により
、カウンタ部3からのカウント信号Cを取り込んでデコ
ード処理を行ない、デコードが正しく行なわれた時には
、デコードの成功を示す信号iを出力制御部6に与える
と共に、デコード結果のデータdを出力制御部6と切替
器7に供給する。デコード部5でデコードが正確に行な
われなかった場合は、デコード失敗を示す信号rをカウ
ンタ部3とスタート・ストップ判定部4に与えこれらを
リセットする。なお、デコード部5にスタート・ストッ
プ判定部4から信号fが入力された場合には、カウンタ
部3から取り込み記憶したカウント信号Cをクリアする
Furthermore, upon receiving the edge detection signal S, the decoding section 5 takes in the count signal C from the counter section 3 and performs decoding processing, and when the decoding is performed correctly, outputs a signal i indicating success of the decoding to the control section. 6, and also supplies the decoding result data d to the output control section 6 and the switch 7. If decoding is not performed accurately in the decoding section 5, a signal r indicating decoding failure is given to the counter section 3 and the start/stop determining section 4 to reset them. Note that when the signal f is input from the start/stop determining section 4 to the decoding section 5, the count signal C taken in and stored from the counter section 3 is cleared.

そして、後述するように出力制御部6は、第1の比較器
65の比較によって、第1のデータメモリ62の記憶デ
ータと第2のデータメモリ64の記憶データが、連続し
て予め設定した所定回数−致すると、第1のデータメモ
リ62の記憶データを復号データとして、情報処理装置
に転送する。
Then, as will be described later, the output control unit 6 causes the first comparator 65 to compare the data so that the data stored in the first data memory 62 and the data stored in the second data memory 64 are consecutively stored at a predetermined level. If the decoded data matches the number of times, the data stored in the first data memory 62 is transferred to the information processing device as decoded data.

第1の比較器65での比較が、連続して所定回数一致し
ないと、情報処理装置へのデータの転送は行なわれない
If the comparison by the first comparator 65 does not match a predetermined number of consecutive times, the data is not transferred to the information processing device.

出力制御部6は、第2図に示すような具体的構成を有し
ている。第2図において、61.63は切替器、62は
現在復号したデータを記憶する第1のデータメモリ、6
4は前回復号したデータを記憶する第2のデータメモリ
、65は第1のデータメモリ62の記憶データと第2の
データメモリ64の記憶データとを比較する比較器、6
6は比較器65の比較が一致した回数をカウントするデ
ータカウンタ回路、67は予め所定の回数値の設定を行
なう定数レジスタ、68はデータカウンタ66の出力と
定数レジスタ67の設定回数値とを比較するデータカウ
ンタ比較器、69はOR回路である。また、第2図にお
いて、71はエツジ信号すをカウントするバー・スペー
スカウンタ回路、72はバー・スペースカウンタ回路7
1のカウント値を記憶するバー・スペースカウンタメモ
リ、73は切替器、74は前回のバー・スペースカウン
タメモリ72のカウント値を記憶する前回バー・スペー
スカウンタメモリ、75は所定値(〉1)が設定される
定数レジスタ、76は前回バー・スペースカウンタメモ
リ74のカウント値を定数レジスタ75の設定所定値で
割る除算器、77はバー・スペースカウンタメモリ72
の記憶カウント値と除算値76の演算値を比較する第2
の比較器である。
The output control section 6 has a specific configuration as shown in FIG. In FIG. 2, 61 and 63 are switching devices, 62 is a first data memory that stores currently decoded data, and 6
4 is a second data memory for storing previously decoded data; 65 is a comparator for comparing the data stored in the first data memory 62 and the data stored in the second data memory 64; 6;
6 is a data counter circuit that counts the number of times that the comparison of the comparator 65 matches, 67 is a constant register that sets a predetermined number of times in advance, and 68 is a comparison between the output of the data counter 66 and the set number of times of the constant register 67. 69 is an OR circuit. Further, in FIG. 2, 71 is a bar/space counter circuit for counting edge signals, and 72 is a bar/space counter circuit 7.
73 is a switch, 74 is a previous bar/space counter memory that stores the count value of the previous bar/space counter memory 72, and 75 is a bar/space counter memory that stores a count value of 1. A constant register to be set; 76 is a divider that divides the count value of the previous bar/space counter memory 74 by a predetermined value set in the constant register 75; 77 is a bar/space counter memory 72;
The second step compares the stored count value of 76 with the calculated value of the division value 76.
It is a comparator.

第2図に示すように、切替器61には第1のデータメモ
リ62が接続され、この切替器61はデコード成功を示
す信号iによりON状態となり、デコード結果のデータ
dを入力データd2として第1のデータメモリ62に入
力させる。第1のデータメモリ62は、入力される入力
データd2を記憶し、これを第1のデータメモリ62に
接続されている第1の比較器65と切替器63に、出力
データd3として与える。
As shown in FIG. 2, a first data memory 62 is connected to the switch 61, and this switch 61 is turned on by a signal i indicating successful decoding, and the data d resulting from the decoding is used as the input data d2. 1 data memory 62. The first data memory 62 stores input data d2 that is input, and provides this to a first comparator 65 and a switch 63 connected to the first data memory 62 as output data d3.

切替器63には、第2のデータメモリ64が接続され、
第2のデータメモリ64の出力端子と第1のデータメモ
リ62の出力端子とが、比較器65の入力端子に接続さ
れている。そして、第1の比較器65の一方の出力端子
が、切替器63とOR回路69の一方の入力端子に接続
され、この一方の出力端子から信号aplが切替器63
に与えられると、切替器63はON状態となって、第1
のデータメモリ62からの出力データd3に対応したデ
ータd4が第2のデータメモリ64に入力される。
A second data memory 64 is connected to the switch 63,
An output terminal of the second data memory 64 and an output terminal of the first data memory 62 are connected to an input terminal of a comparator 65. One output terminal of the first comparator 65 is connected to one input terminal of the switch 63 and the OR circuit 69, and the signal apl is transmitted from this one output terminal to the switch 63.
When the switch 63 is turned on, the first
Data d4 corresponding to the output data d3 from the data memory 62 is input to the second data memory 64.

第2のデータメモリ64にデータd4(第1のデータメ
モリ62からのデータd3)が入力して前回デコードデ
ータとして記憶された後、このデータd4はデータd5
として、比較器65に入力され、比較器65において、
このデータd5(前回のデコードデータ)と第1のデー
タメモリ62からの出力データd3(現在のデコードデ
ータ)とが比較される。この比較の結果、データd3と
データd5とが一致すると、第1の比較器65の他方の
出力端子から信号cp2が出力され、この信号cp2は
比較器65に接続されているデータカウンタ回路66に
与えられ、比較の結果が不一致であると、第1の比較器
65の一方の出力端子からは信号aplが出力される。
After data d4 (data d3 from the first data memory 62) is input to the second data memory 64 and stored as decoded data last time, this data d4 is changed to data d5.
is input to the comparator 65, and in the comparator 65,
This data d5 (previous decoded data) is compared with output data d3 (current decoded data) from the first data memory 62. As a result of this comparison, if data d3 and data d5 match, a signal cp2 is output from the other output terminal of the first comparator 65, and this signal cp2 is sent to a data counter circuit 66 connected to the comparator 65. If the comparison result is a mismatch, a signal apl is output from one output terminal of the first comparator 65.

そして、前述したようにOR回路69の一方の入力端子
に第1の比較器65の一方の出力端子が接続されている
が、このOR回路69の出力端子がデータカウンタ回路
66に接続されている。このために、第1の比較器65
での比較が一致しないで信号aplが出力されると、O
R回路69から信号jがデータカウンタ回路66に与え
られ、この信号jによってデータカウンタ回路66はリ
セットされる。
As described above, one output terminal of the first comparator 65 is connected to one input terminal of the OR circuit 69, and the output terminal of this OR circuit 69 is connected to the data counter circuit 66. . For this purpose, the first comparator 65
If the comparison at O does not match and the signal apl is output, O
A signal j is applied from the R circuit 69 to the data counter circuit 66, and the data counter circuit 66 is reset by this signal j.

また、データカウンタ回路66には、デコード成功を示
す信号iが入力されているので、データカウンタ回路6
6は信号cp2が入力されている間、デコード成功を示
す信号iを連続してカウントし、そのカウント信号dc
lがデートカウンタ回路66に接続されているデータカ
ウンタ比較器68に入力される。
Furthermore, since the signal i indicating successful decoding is input to the data counter circuit 66, the data counter circuit 66
6 continuously counts the signal i indicating successful decoding while the signal cp2 is input, and outputs the count signal dc.
l is input to a data counter comparator 68 which is connected to a date counter circuit 66.

一方、データカウンタ比較器68には、定数レジスタ6
7から予め設定された回数信号r1が入力されており、
データカウンタ比較器68は力、ラント信号delと回
数信号r工とを比較して、del<rtであればOFF
信号りを出力し、del≧r工であれば○N信号gを出
力する。このON信号gによって、第1図の切替器7が
ON状態となり、デコード部5からのデコード結果のデ
ータdが、切替器7からデータd1として情報処理装置
に転送される。切替器7にOFF信号11が与えられる
と、切替器7はOFF状態となるので、デコード部5か
らのデータの転送は行なわれない。
On the other hand, the data counter comparator 68 includes a constant register 6
A preset number of times signal r1 is input from 7,
The data counter comparator 68 compares the force, runt signal del and the number of times signal r, and turns OFF if del<rt.
If del≧r, it outputs the ○N signal g. This ON signal g turns on the switch 7 shown in FIG. 1, and the data d resulting from the decoding from the decoder 5 is transferred from the switch 7 to the information processing device as data d1. When the OFF signal 11 is applied to the switch 7, the switch 7 is turned off, so that no data is transferred from the decoder 5.

データカウンタ回路66は、第1の比較器65での比較
が一致しないとリセットされるので、データカウンタ比
較器68では第1のデータメモリ62の出力データd3
と第2のデータメモリ64のデータd5が、連続して予
め設定された所定回数(例えば10回)同一データであ
る場合にON信号gを出力する。
Since the data counter circuit 66 is reset when the comparison by the first comparator 65 does not match, the data counter comparator 68 selects the output data d3 of the first data memory 62.
When the data d5 in the second data memory 64 are the same data consecutively a predetermined number of times (for example, 10 times), an ON signal g is output.

一方、バー・スペースカウンタ回路71は第1図のエツ
ジ検出部2からのエツジ信号すをカウントし、スタート
ストップ判定部4からストップ判定条件の満足を示す信
号eが入力されると、バー・スペースカウンタ回路71
に接続されているバー・スペースカウンタメモリ72に
カウント値bclがグ太られて記憶される。また、バー
・スペースカウンタメモリ72には、第2の比較器77
と切替器73とが接続され、バー・スペースカウンタメ
モリ72からは、カウント値bclに対応する出力信号
bc2が、第2の比較器77と切替器73に与えられる
。この切替器73に、前述のデータカウンタ比較器68
から、ON信号gが与えられると、切替器73はON状
態となって、バー・スペースカウンタメモリ72の出力
信号bc2が信号bc3として、前回バー・スペースカ
ウンタメモリ74に与えられる。
On the other hand, the bar/space counter circuit 71 counts the edge signals from the edge detection section 2 shown in FIG. Counter circuit 71
The count value bcl is incremented and stored in a bar/space counter memory 72 connected to the bar/space counter memory 72. The bar/space counter memory 72 also includes a second comparator 77.
and a switch 73 are connected, and the bar/space counter memory 72 provides an output signal bc2 corresponding to the count value bcl to the second comparator 77 and the switch 73. This switch 73 is connected to the data counter comparator 68 described above.
When the ON signal g is applied, the switch 73 is turned on, and the output signal bc2 of the bar/space counter memory 72 is applied as the signal bc3 to the previous bar/space counter memory 74.

この前回バー・スペースカウンタメモリ74の出力端子
と、定数レジスタ75の出力端子とが。
The output terminal of the previous bar/space counter memory 74 and the output terminal of the constant register 75.

除算器76の入力端子に接続され、この除算器76の出
力端子が第2の比較器77の入力端子に接続され、第2
の比較器77の出力端子が、前述のOR回路69の入力
端子に接続されている。
The output terminal of this divider 76 is connected to the input terminal of a second comparator 77, and the second
The output terminal of the comparator 77 is connected to the input terminal of the aforementioned OR circuit 69.

そして、前回バー・スペースカウンタメモリ74のカウ
ンタ値に対応する出力信号bc4が、予め設定される所
定値で除算器76によって除され、その演算値rslと
バー・スペースカウンタメモリ72の出力信号b c 
2.とが、第2の比較器77で比較される。この比較で
、バー・スペースカウンタメモリ72のカウンタ値に対
応する出力信号bc2が、除算器76の演算値rslよ
りも小さいと、第2の比較器77からは信号cp4がO
R回路69と第2のデータメモリ64に与えられる。
Then, the output signal bc4 corresponding to the previous counter value of the bar/space counter memory 74 is divided by a predetermined value set in advance by the divider 76, and the calculated value rsl and the output signal bc of the bar/space counter memory 72 are divided by a predetermined value set in advance.
2. are compared by the second comparator 77. In this comparison, if the output signal bc2 corresponding to the counter value of the bar/space counter memory 72 is smaller than the calculated value rsl of the divider 76, the signal cp4 is output from the second comparator 77.
R circuit 69 and second data memory 64.

この信号cp4によって、OR回路69からは信号jが
データカウンタ回路66に与えられるので、データカウ
ンタ回路66はリセットされると共に第2のデータメモ
リ64はクリアされる。
In response to this signal cp4, the signal j is applied from the OR circuit 69 to the data counter circuit 66, so that the data counter circuit 66 is reset and the second data memory 64 is cleared.

前回バー・スペースカウンタメモリ74に記憶されるは
、デコード成功時のバー及び/またはスペースのカウン
ト値であるから、このカウント値の一定比率以下にバー
・スペースカウンタ回路71のカウント値が低下するの
は、バー及び/またはスペースの数が異常に少ないとい
うことである。
Since what is stored in the previous bar/space counter memory 74 is the bar and/or space count value at the time of successful decoding, the count value of the bar/space counter circuit 71 will decrease below a certain ratio of this count value. means that the number of bars and/or spaces is abnormally small.

これは例えば間隔を保って縦に配列されているバーコー
ドを連続走査しているような場合に、バーコード間の空
白スペースを読取ることにより生じる。
This can occur, for example, by reading blank spaces between barcodes when sequentially scanning vertically spaced barcodes.

本実施例では、この場合に第2のデータメモリ64をク
リアし、データカウンタ回路66をリセットして、新し
い記憶データを取り込んで新たな動作を開始し、バーコ
ードの情報が変化したという処理をする。これにより、
例えば同一構成のバーコード符号であっても、情報の区
分を明確に行なうことが出来る。
In this embodiment, in this case, the second data memory 64 is cleared, the data counter circuit 66 is reset, new stored data is taken in and a new operation is started, and the process that the barcode information has changed is performed. do. This results in
For example, even if barcode symbols have the same configuration, information can be clearly classified.

このようにして、本実施例によると、デコード部5から
出力されるデコード結果のデータdが。
In this way, according to this embodiment, the data d of the decoding result output from the decoding section 5 is.

予め設定された所定回数(例えば10回)連続して同一
データであるという安定な読取条件下で、高精度の読取
がデコード誤りなしに行なわれ、且つ間隔を保って異な
る位置に配設されるバーコードを、バーコード符号の構
成が同一であっても、区別して処理し情報処理装置にデ
ータd1として転送される。
High-precision reading is performed without decoding errors under stable reading conditions in which the same data is continuously read a preset number of times (for example, 10 times), and the readings are placed at different positions with an interval maintained. Even if the barcode symbols have the same structure, the barcodes are processed separately and transferred to the information processing device as data d1.

このため、情報処理装置の負担が大幅に軽減されるよう
にデータd1が転送されると共に、高い読取精度でデコ
ードの誤りのない符号読取を、配設位置の異なるバーコ
ードを自動的に区別して行なうことが出来る。
Therefore, the data d1 is transferred so as to significantly reduce the burden on the information processing device, and the code reading is performed with high reading accuracy without decoding errors, and barcodes placed in different positions are automatically distinguished. It can be done.

なお、上記では第2の比較器77がバー及び/またはス
ペースの数をカウントするものとして説明したが、本発
明はこれに限らず、バー又はスペースをカウントする構
成としてもよいものである。
Note that although the second comparator 77 is described above as counting the number of bars and/or spaces, the present invention is not limited to this, and may be configured to count bars or spaces.

[発明の効果] 以上説明したように、本発明によれば、自己走査型光電
変換部を有し、数千回から数百回の走査により読み取り
を行なう符号読取装置において。
[Effects of the Invention] As described above, the present invention provides a code reading device that has a self-scanning photoelectric conversion section and performs reading by scanning several thousand to several hundred times.

情報処理装置側の負担を減少させるような、データの転
送が行なわれる。また、バーコード符号の読取りも所定
回数連続してデータが一致するという安定読取条件下で
、高読取精度でデコード誤りのない信頼性の高い動作で
行なわれ、且つ位置を異にするバーコードは、符号構成
が同一であっても旧情報として区別して転送処理するの
で、バーコードを利用した情報の集計処理や解析作業を
効率的に行なうことができる。
Data is transferred in such a way as to reduce the burden on the information processing device. In addition, barcode reading is performed under stable reading conditions in which data matches a predetermined number of times in a row, with high reading accuracy and highly reliable operation with no decoding errors. Even if the code structure is the same, the information is transferred as old information, so it is possible to efficiently aggregate and analyze information using barcodes.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、本発明による符号読取装置の一実施例の構成
を示すブロック図、第2図は第1図における出力制御部
の具体的構成を示すブロック図、第3図はバーコード符
号とその読取波形の説明図である。 1・・・・・・光電変換部、2・・・・・・エツジ検出
部、3・・・・・・カウンタ部、4・・・・・・スター
ト・ストップ判定部、5・・・・・・デコード部、6・
・・・・・出力制御部、62・・−・・・第1のデータ
メモリ、64・・・・・・第2のデータメモリ、65・
・・・・・第1の比較器、66・・・・・・データカウ
ンタ回路、67・・・・・・定数レジスタ、68・・・
・・・データカウンタ比較器、71・・・・・・バー・
スペースカウンタ回路、72・・・・・・バー・スペー
スカウンタメモリ、74・・・・・・前回バー・スペー
スカウンタメモリ、75・・・・・・定数レジスタ、7
6・・・・・・除算器、77・・・・・・第2の比較器
。 第3図
FIG. 1 is a block diagram showing the configuration of an embodiment of the code reading device according to the present invention, FIG. 2 is a block diagram showing the specific configuration of the output control section in FIG. 1, and FIG. It is an explanatory diagram of the read waveform. 1...Photoelectric conversion unit, 2...Edge detection unit, 3...Counter unit, 4...Start/stop determination unit, 5... ...Decoding section, 6.
...Output control unit, 62...First data memory, 64...Second data memory, 65...
...First comparator, 66... Data counter circuit, 67... Constant register, 68...
...Data counter comparator, 71...Bar...
Space counter circuit, 72...Bar/space counter memory, 74...Previous bar/space counter memory, 75...Constant register, 7
6...Divider, 77...Second comparator. Figure 3

Claims (1)

【特許請求の範囲】[Claims] 媒体上に表示されたバーコード符号を電気信号に変換す
る自己走査型光電変換部と、この自己走査型光電変換部
の出力信号から上記バーコード符号のバー/スペースの
エッジを示す信号を検出するエッジ検出部と、このエッ
ジ検出部で検出した相隣り合うエッジ間の幅をクロック
信号のカウント値として出力するカウンタ部と、このカ
ウンタ部からのカウント値をもとに前記バーコード符号
の持つ情報を情報処理装置で処理可能なデータに復号す
るデコード部とを有する符号読取装置において、前記デ
コード部の出力側に、現在復号したデータを記憶する第
1のデータメモリと、前回復号したデータを記憶する第
2のデータメモリと、上記第1のデータメモリの記憶デ
ータと上記第2のデータメモリの記憶データとを比較す
る第1の比較器と、現在の復号に使われたエッジ信号に
基づくバー及び/またはスペースの数を記憶するバー・
スペースカウンタメモリと、前回の復号に使われたエッ
ジ信号に基づくバー及び/またはスペースの数を記憶す
る前回バー・スペースカウンタメモリと、上記バー・ス
ペースカウンタメモリの記憶値が上記前回バー・スペー
スカウンタメモリの記憶値に対して予め設定した所定比
率以下であることを検出する第2の比較器と、上記第1
の比較器による比較が連続して一致し、予め設定した所
定回数に達すると、上記第1のデータメモリの記憶デー
タを復号データとして前記情報処理装置に転送し、上記
第2の比較器による比較が上記所定比率以下となるとき
、当該バーコード符号を別情報として前記情報処理装置
に転送する手段とを備えた出力制御部を設けたことを特
徴とする符号読取装置。
A self-scanning photoelectric conversion section that converts the barcode symbol displayed on the medium into an electrical signal, and a signal indicating the edge of the bar/space of the barcode symbol is detected from the output signal of the self-scanning photoelectric conversion section. an edge detection section, a counter section that outputs the width between adjacent edges detected by the edge detection section as a count value of a clock signal, and information possessed by the barcode symbol based on the count value from this counter section. A code reading device having a decoding unit that decodes data into data that can be processed by an information processing device, the output side of the decoding unit having a first data memory that stores currently decoded data and a first data memory that stores previously decoded data. a second data memory for storing; a first comparator for comparing stored data in the first data memory and stored data in the second data memory; and a first comparator for comparing data stored in the first data memory and data stored in the second data memory; A bar that remembers the number of bars and/or spaces.
a space counter memory, a previous bar/space counter memory that stores the number of bars and/or spaces based on the edge signal used in the previous decoding, and a memory value of the bar/space counter memory that is stored in the previous bar/space counter memory; a second comparator that detects that the value is less than or equal to a predetermined ratio with respect to the value stored in the memory;
When the comparison by the comparator successively matches a predetermined number of times, the data stored in the first data memory is transferred to the information processing device as decoded data, and the comparison by the second comparator is performed. 1. A code reading device comprising: an output control section having means for transmitting the barcode symbol as separate information to the information processing device when the barcode symbol is equal to or less than the predetermined ratio.
JP63138540A 1988-05-13 1988-06-07 Code reader Pending JPH01307885A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP63138540A JPH01307885A (en) 1988-06-07 1988-06-07 Code reader
US07/745,989 US5216231A (en) 1988-05-13 1991-08-08 Self-scanning code reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63138540A JPH01307885A (en) 1988-06-07 1988-06-07 Code reader

Publications (1)

Publication Number Publication Date
JPH01307885A true JPH01307885A (en) 1989-12-12

Family

ID=15224543

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63138540A Pending JPH01307885A (en) 1988-05-13 1988-06-07 Code reader

Country Status (1)

Country Link
JP (1) JPH01307885A (en)

Similar Documents

Publication Publication Date Title
US5216231A (en) Self-scanning code reading device
US5414252A (en) High speed scan bar code reader which can read more than one type of bar code
US6764011B2 (en) Graphics code system
US5036182A (en) Bar code reading and decoding apparatus
US5245167A (en) Bar-code reading apparatus
JPH01307885A (en) Code reader
JPH01307883A (en) Code reader
JPH01307882A (en) Code reader
JPH07230522A (en) Method and device for demodulating bar code
JP2677806B2 (en) Code reader
JP2677805B2 (en) Code reader
JPH01307884A (en) Code reader
US5952643A (en) Bar code decoder for a lightpen
JP3785527B2 (en) Bar code reader and storage medium
JPH01297778A (en) Code reader
JPH1091715A (en) Bar code reader
JPH01116777A (en) Final display deciding circuit
JPH01269187A (en) Code reader
JP2587918Y2 (en) Mobile terminal device
JPH07175632A (en) Bar code reader
JPH01286091A (en) Code reader
JPS62256095A (en) Bar code reader
JPH03164884A (en) Handy type bar code scanner
JP3069817B2 (en) Barcode reader
JPH01290092A (en) Bar width discriminating method for bar code