JPH01307882A - Code reader - Google Patents

Code reader

Info

Publication number
JPH01307882A
JPH01307882A JP63138537A JP13853788A JPH01307882A JP H01307882 A JPH01307882 A JP H01307882A JP 63138537 A JP63138537 A JP 63138537A JP 13853788 A JP13853788 A JP 13853788A JP H01307882 A JPH01307882 A JP H01307882A
Authority
JP
Japan
Prior art keywords
data
memory
comparator
bar
stored
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
JP63138537A
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 JP63138537A priority Critical patent/JPH01307882A/en
Publication of JPH01307882A publication Critical patent/JPH01307882A/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 distinguish equal bar codes different in position by comparing a decoded bar code and the counted value of a bar code space with preceding data to control bar code transfer. CONSTITUTION:An optically read and decoded bar code is stored in a first data memory 62 and is compared with the preceding decoded bar code in a second data memory 64 by a first comparator 65. Meanwhile, the clock counted value which is stored in a bar space counter memory 72 and corresponds to the width between adjacent edges due to edge detection of bars spaces of the bar code counted by a bar space counter circuit 71 is compared with the counted value, which is obtained by dividing the preceding counted value in a preceding bar space counter memory 74 in a divider 76 by a constant, by a second comparator 77. Outputs of circuits 65 and 77 are supplied to an AND gate 70, and a transfer permission signal is outputted from the gate 70 only when the decoded bar code is different from preceding that or is equal to preceding that but is different from that in position, and thus, the burden on the information processor is reduced.

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 can distinguish and process barcodes placed at different positions even if the barcode symbols are the same.

[従来の技術] 電子計算機などの情報処理装置へのデータ入力手段とし
て、データを黒地のバーと白地のスペースでバーコード
符号を作成し、このバーコード符号を光電変換器で読み
取るバーコード符号入カシステムが知られている。この
種のバーコード符号入カシステムは、キーボードなどに
よる入力に比してデータの入力時間が大幅に短縮され、
入力操作が簡単で入力ミスが少なく、入力装置である光
電変換器に機構部がないために故障が少ないという特長
を有するので、その適用範囲は日増しに拡大している。
[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 the input operation is 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.

例えば、商品の種類9価格、売上数、販売地域。For example, product type, price, sales volume, 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出版発行。
The barcode code standard used in the barcode code input system is Japanese Industrial Standard JIS, B9550-
Published by CQ Publishing on July 1, 1978 or 1984.

トランジスタ技術別冊[センサ、インターフェーシング
J NO4、第179〜199頁「バーコード・システ
ムの製作」などに詳しく説明されている。
It is explained in detail in Transistor Technology Special Issue [Sensor, Interfacing J NO4, pp. 179-199, "Production of Barcode System", etc.

第3図はこのバーコード符号とその読取波形の説明図で
あり、(a)は表示されたバーコードのシンボル、(b
)は(a)のバーコードを光電変換器で矢印方向に走査
して得た読取波形図である。なお、(a)においてSは
スタートコード或いはストップコードであり、符号読取
装置の初期状態セット、或はバー/スペースの判定基準
のために用いられる。そして、(a)においてCはこの
バーコードの情報(メツセージ)を示すメツセージコー
ドであす、(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. Incidentally, in (a), S is a start code or a stop code, which is used for setting the initial state of the code reading device or for bar/space determination criteria. In (a), C is a message code indicating the information (message) of this barcode. In (a), an arrow and a code configured to be read in the opposite direction to the arrow are shown.

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

[発明が解決しようとする課題] 自己走査型の光電変換器を用いたこの種の符号読取装置
では、1つのバーコード符号を数千回から数百回の多数
回走査してデコードしている。しかし、読み取ったコー
ドが正しくデコードされた後に、さらに同じコードを送
出することは、徒に情報処理装置側に負担をかけること
になり、該情報処理装置の資源を無駄にするという問題
がある。
[Problem to be solved by the invention] In this type of code reading device using a self-scanning photoelectric converter, one barcode symbol is scanned many times, from several thousand to several hundred times, to decode it. . 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.

さらに、バーコードを用いて、例えば商品の種類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. 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, barcodes with different and identical configurations of this type of information may be arranged in the vertical direction of the data table, for example.
Differences in information are distinguished and processed based on their arrangement position or order.

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

本発明の目的は、上記した従来技術の問題を解決し、デ
コードしたデータを処理する情報処理装置側の負担を軽
減し、異なる位置にある同一構成のバーコードを区別し
て処理するように構成した符号読取装置を提供すること
にある。
An object of the present invention is to solve the above-mentioned problems of the prior art, reduce the burden on the information processing device that processes decoded data, and provide a system configured to distinguish and process barcodes with the same configuration located at different positions. An object of the present invention is to provide a code reading device.

[課題を解決するための手段] 上記目的を達成するために、本発明はデコード部の出力
側に、現在復号したデータを記憶する第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;
and a second comparator that detects that the number of bars and/or spaces is less than a certain ratio with respect to a predetermined value. an output control unit is provided, and when the comparison by the first comparator is different, 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 The present invention is characterized in that when the ratio is below the certain ratio, the barcode symbol is transferred as separate information.

[作用] 自己走査型光電変換部が媒体上に表示されたバーコード
符号の読取りを開始すると、この自己走査型光電変換部
の出力信号に基づいて、エツジ検出部とカウンタ部が作
動し、これらのエツジ検出部とカウンタ部の出力信号に
基づいて、デコード部によってバーコード符号がデコー
ドされる。
[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 are activated 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 pars and/or spaces is set to a predetermined value by a second comparator provided in the output control unit. compared to

そして、第1の比較器による比較で第1のデータメモリ
の記憶データと第2のデータメモリの記憶データとが一
致しないと、第1のデータメモリの記憶データが復号デ
ータとして情報処理装置に転送される。また、第2の比
較器の比較結果が所定値以下であるとき、仮に同一構成
のバーコード符号でも、それを別情報として区別して転
送処理される。
If the data stored in the first data memory and the data stored in the second data memory do not match in the comparison by the first comparator, the data stored in the first data memory is transferred to the information processing device as decoded data. be done. Furthermore, when the comparison result of the second comparator is less than or equal to a predetermined value, even if the barcode codes have the same configuration, they are distinguished as separate information and transferred.

このようにして、本発明では、同一構成のバーコードで
も表示位置が異なると、別情報として区別して高精度の
読取動作が行なわれると共に、得られた復号データは情
報処理装置の負担を軽減するようにして情報処理装置に
供給される。
In this way, in the present invention, barcodes with the same configuration but displayed at different positions are distinguished as different information and a highly accurate reading operation is performed, 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.

[実施例コ 以下、本発明の実施例を図面を参照して説明する。[Example code] Embodiments of the present invention will be described below with reference to the drawings.

第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.

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

カウンタ部3は、このエツジ検出信号すの入力で0クリ
アされ、図示しないクロック信号発生手段からのクロッ
ク信号CLを、エツジ検出部2から入力する相隣る二つ
のエツジ信号間でカウントし、そのカウント値を示すカ
ウント信号Cをスタート・ストップ判定部4とデコード
部5に与える。
The counter section 3 is cleared to 0 by the input of this edge detection signal S, counts the clock signal CL from a clock signal generation means (not shown) between two adjacent edge signals input 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をデコード部5に与える。そし
て、スタート判定後に入力するメツセージコード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 5. 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, the decoding section 5 clears the count signal C captured and stored from the counter section 3.

そして、後述するように出力制御部6は、第2図に示し
た第1の比較器65の比較によって、第1のデータメモ
リ62の記憶データと第2のデータメモリ64の記憶デ
ータが異なり、第2の比較器77によって、バー及び/
またはスペースの数が予め設定した所定値に対して一定
比率以下であることが検出されると、第1のデータメモ
リ62の記憶データを復号データとして、情報処理装置
に転送する。第1の比較器65の比較が一致していると
、情報処理装置へのデータの転送は行なわれない。
Then, as will be described later, the output control unit 6 determines that the data stored in the first data memory 62 and the data stored in the second data memory 64 are different due to the comparison by the first comparator 65 shown in FIG. By the second comparator 77, bar and/or
Alternatively, if it is detected that the number of spaces is less than a certain ratio with respect to a predetermined value, the data stored in the first data memory 62 is transferred to the information processing device as decoded data. If the comparison by the first comparator 65 is a match, no data is transferred to the information processing device.

すなわち、出力制御部6は、第2図に示すような具体的
構成を有するものであり、61.63は切替器、62は
現在復号したデータを記憶する第1のデータメモリ、6
4は前回復号したデータを記憶する第2のデータメモリ
、65は第1のデータメモリ62の記憶データと第2の
データメモリ64の記憶データとを比較する第1の比較
器、7゜はAND回路、71はエツジ信号すをカウント
するバー・スペースカウンタ回路、72はバー・スペー
スカウンタ回路71のカウント値を記憶するバー・スペ
ースカウンタメモリ、73は切替器、74は前回のバー
・スペースカウンタメモリ72のカウント値を記憶する
前回バー・スペースカウンタメモリ、75は所定値(〉
1)が設定される定数レジスタ、76は前回バー・スペ
ースカウンタメモリ74のカウント値を定数レジスタ7
5の設定所定値で割る除算器;77はバー・スペースカ
ウンタメモリ72の記憶カウント値と除算値76の演算
値を比較する第2の比較器である。
That is, the output control unit 6 has a specific configuration as shown in FIG.
4 is a second data memory for storing previously decoded data; 65 is a first comparator for comparing the data stored in the first data memory 62 and the data stored in the second data memory 64; 7° is a second data memory for storing previously decoded data; 71 is a bar/space counter circuit that counts edge signals; 72 is a bar/space counter memory that stores the count value of the bar/space counter circuit 71; 73 is a switch; 74 is the previous bar/space counter. The previous bar/space counter memory stores the count value of the memory 72, and 75 is a predetermined value (>
1) is set in the constant register 76, the count value of the previous bar/space counter memory 74 is set in the constant register 7.
77 is a second comparator that compares the stored count value of the bar/space counter memory 72 and the calculated value of the division value 76;

第2図に示すように、切替器61には第1のデータメモ
リ62が接続され、この切替器61はデコード成功を示
す信号iによりON状態となり。
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.

デコード結果のデータdを入力データd2として第1の
データメモリ62に入力させる。第1のデータメモリ6
2は、入力される入力データd2を記憶し、この記憶し
たデータd2を第1のデータメモリ62に接続されてい
る第1の比較器65と切替器63に、出力データd3と
して与える。
The data d resulting from the decoding is input to the first data memory 62 as input data d2. first data memory 6
2 stores the input data d2 that is input, and supplies the stored data d2 to the first comparator 65 and switch 63 connected to the first data memory 62 as output data d3.

切替器63の出力側には、第2のデータメモリ64が接
続され、第2のデータメモリ64の出力端子と前述の第
1のデータメモリ62の出力端子とが、第1の比較器6
5に接続されている。そして、第1の比較器65の一方
の出力端子と第2の比較器77の出力端子がAND回路
70の入力端子に接続され、AND回路70の出力端子
が、切替器63と切替器73に接続され、AND回路7
0からON信号gが出力されると、切替器63と切替器
73とがON状態となる。
A second data memory 64 is connected to the output side of the switch 63, and the output terminal of the second data memory 64 and the output terminal of the first data memory 62 are connected to the first comparator 6.
5. One output terminal of the first comparator 65 and the output terminal of the second comparator 77 are connected to the input terminal of the AND circuit 70, and the output terminal of the AND circuit 70 is connected to the switch 63 and the switch 73. connected, AND circuit 7
When the ON signal g is output from 0, the switch 63 and the switch 73 are turned on.

このように切替器63がON状態になると、切替器63
を介して、第1のデータメモリ62のデータd3が第2
のデータメモリ64にデータd4として入力される。
When the switch 63 is in the ON state in this way, the switch 63
The data d3 of the first data memory 62 is transferred to the second data memory 62 via
The data is inputted to the data memory 64 as data d4.

第2のデータメモリ64に記憶されたデータd4は前回
復号データd5として、第1の比較器65に入力され、
第1の比較器65において、このデータd5と第1のデ
ータメモリ62から入力される現在復号データd3とが
比較される。この比較の結果、データd3とデータd5
とが一致すると、第1の比較器65からはOFF信号り
が出力される。また、第1の比較器65の比較で、デー
タd3とデータd5とが一致しないと、第1の比較器6
5からは信号cp3がAND回路70に与えられる。
The data d4 stored in the second data memory 64 is input to the first comparator 65 as previously decoded data d5,
In the first comparator 65, this data d5 is compared with the currently decoded data d3 inputted from the first data memory 62. As a result of this comparison, data d3 and data d5
If they match, the first comparator 65 outputs an OFF signal. Further, if the data d3 and the data d5 do not match in the comparison by the first comparator 65, the first comparator 65
5, the signal cp3 is applied to the AND circuit 70.

一方、バー・スペースカウンタ回路71は第1図のエツ
ジ検出部2からのエツジ信号すをカウントし、バー・ス
ペースカウンタ回路71に接続されているバー・スペー
スカウンタメモリ72にカウント値bclとして与えら
れて記憶される。また、バー・スペースカウンタメモリ
72の出力端子には、第2の比較器77と切替器73と
が接続され、バー・スペースカウンタメモリ72からは
、記憶されたカウント値bclを信号bc2として、第
2の比較器77と切替器73に与える。
On the other hand, the bar/space counter circuit 71 counts the edge signals from the edge detection section 2 shown in FIG. is memorized. A second comparator 77 and a switch 73 are connected to the output terminal of the bar/space counter memory 72, and the bar/space counter memory 72 outputs the stored count value bcl as a signal bc2. 2 comparator 77 and switch 73.

この切替器73がONとなっていると、切替器73に接
続されている前回バー・スペースカウンタメモリ74に
、切替器73からの信号bc2を信号bc3として与え
られる。この前回バー・スペースカウンタメモリ74の
出力端子と、定数レジスタ75の出力端子とが除算器7
6の入力端子に接続されており、除算器76の出力端子
が、前述の第2の比較器77の入力端子に接続され、第
2の比較器77の出力端子が前述のAND回路70の入
力端子に接続されている。
When this switch 73 is ON, the signal bc2 from the switch 73 is given to the previous bar/space counter memory 74 connected to the switch 73 as a signal bc3. The output terminal of the previous bar/space counter memory 74 and the output terminal of the constant register 75 are connected to the divider 7.
The output terminal of the divider 76 is connected to the input terminal of the second comparator 77, and the output terminal of the second comparator 77 is connected to the input terminal of the AND circuit 70. connected to the terminal.

そして、前回バー・スペースカウンタメモリ74のカウ
ンタ値に対応する出力信号bc4が、定数レジスタ75
に予め設定された所定値で除算器76によって除され、
その演算値rslとバー・スペースカウンタメモリ72
の出力信号bc2とが、第2の比較器77で比較される
。この比較で、バー・スペースカウンタメモリ72のカ
ウンタ値に対応する出力信号bc2が、除算器76の演
算値rslよりも小さいと、第2の比較器77からは信
号cp4が、AND回路70に与えられる。このように
して、AND回路70に信号cp3及び信号cp4が与
えられると、AND回路70からON信号gが出力され
る。
Then, the output signal bc4 corresponding to the previous counter value of the bar/space counter memory 74 is sent to the constant register 75.
is divided by a predetermined value set in advance by a divider 76,
The calculated value rsl and the bar/space counter memory 72
The second comparator 77 compares the output signal bc2 with the output signal bc2. 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 second comparator 77 outputs the signal cp4 to the AND circuit 70. It will be done. In this way, when the signal cp3 and the signal cp4 are applied to the AND circuit 70, the ON signal g is output from the AND circuit 70.

このON信号gによって、切替器63と切替器73とが
ON状態となると共に、第1図に示す切替器7がON状
態となって、デコード部5からのデコード結果のデータ
dが、切替器7からデータd1として情報処理装置に転
送される。切替器7にOFF信号りが与えられると、切
替器7はOFF状態となるので、デコード部5からのデ
ータの転送は行なわれない。また、本実施例では第2の
比較器77から信号cp4が出力されない限り、AND
回路70からはON信号gは出力されない。
This ON signal g turns on the switch 63 and the switch 73, and also turns the switch 7 shown in FIG. 7, the data is transferred to the information processing device as data d1. When the OFF signal is applied to the switch 7, the switch 7 is turned off, so that no data is transferred from the decoder 5. Furthermore, in this embodiment, unless the second comparator 77 outputs the signal cp4, the AND
The circuit 70 does not output the ON signal g.

なお、第2の比較器77から信号cp4が出力されると
、第2のデータメモリ64は記憶していたデータをクリ
アする。
Note that when the second comparator 77 outputs the signal cp4, the second data memory 64 clears the stored data.

前回バー・スペースカウンタメモリ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 barcodes arranged vertically at intervals.

本実施例では、この場合に第2のデータメモリ64をク
リアして、新しい記憶データを取り込んで新たな比較動
作を行ない、バーコードの情報が変化したという処理を
する。このために、同一構成のバーコード符号であって
も情報の区分を明確に行なうことが出来る。
In this embodiment, in this case, the second data memory 64 is cleared, new stored data is taken in, and a new comparison operation is performed, thereby processing that the barcode information has changed. For this reason, even if barcode codes have the same configuration, information can be clearly classified.

また、本実施例では、第2の比較器77から信号cp4
が発せられる時に、デコード部5からのデータが情報処
理装置に転送されるので、情報処理装置の負担は大幅に
軽減される。
Further, in this embodiment, the signal cp4 is output from the second comparator 77.
Since the data from the decoding unit 5 is transferred to the information processing device when the is issued, the burden on the information processing device is significantly reduced.

なお、第1の比較器65が第1のデータメモリ62の記
憶データと第2のデータメモリ64の記憶データが異な
る場合は上記第1のデータメモリのデータを情報処理装
置に転送し、第2の比較器77がバー及び/またはスペ
ースの数が所定値の一定比率以下であることを検出する
と、デコードされたデータを別情報として情報処理装置
に転送する構成のものを説明したが、本発明は実施例に
限定されるものでなく、上記第2の比較器がバーまたは
スペースの数を比較する構成としてもよく、また、第1
の比較器65の不一致検出で転送を行ない、第2の比較
器77の検出信号でその度ごとに転送とは別に、情報変
化の処理を行なわせる構成とすることも出来る。
Note that if the data stored in the first data memory 62 and the data stored in the second data memory 64 are different, the first comparator 65 transfers the data in the first data memory to the information processing device and transfers the data in the first data memory 62 to the second data memory 64. Although a configuration has been described in which when the comparator 77 detects that the number of bars and/or spaces is less than a certain ratio of a predetermined value, the decoded data is transferred to the information processing device as separate information. is not limited to the embodiment, and the second comparator may be configured to compare the number of bars or spaces;
It is also possible to adopt a configuration in which the transfer is performed when the second comparator 65 detects a discrepancy, and the information change process is performed each time, in addition to the transfer, based on the detection signal of the second comparator 77.

[発明の効果] 以上説明したように、本発明によれば、自己走査型光電
変換部を有し、数千回から数百回の走査により読み取り
を行なう符号読取装置において、情報処理装置側の負担
を減少させて、情報処理装置の資源を無駄にすることな
くデータの転送が行なわれると共に1表示位置を異にし
て配列されるバーコードは、仮に符号構成が同一であっ
ても別情報として区別して転送処理できるので、バーコ
ードを利用した情報の集計処理や解析作業を効率的に行
なうことができる。
[Effects of the Invention] As explained above, according to the present invention, in a code reading device that has a self-scanning photoelectric conversion section and performs reading by scanning several thousand to several hundred times, the information processing device side Data is transferred without wasting the resources of the information processing device by reducing the load.Barcodes that are arranged in different display positions can be treated as different information even if the code structure is the same. Since information can be transferred separately, information aggregation processing and analysis using barcodes can be performed efficiently.

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

第1図は本発明による符号読取装置の一実施例の構成を
示すブロック図、第2図は第1図における出力制御部の
具体的構成を示すブロック図、第3図はバーコード符号
とその読取波形の説明図である。 1・・・・・・光電変換部、2・・・・・・エツジ検出
部、3・・・・・・カウンタ部、4・・・・・・スター
ト・ストップ判定部、5・・・・・・デコード部、6・
・・・・・出力制御部、70・・・・・・AND回路、
71・・・・・・バー・スペースカウンタ回路、72・
・・・・・バー・スペースカウンタメモリ、74・・・
・・・前回バー・スペースカウンタメモリ、75・・・
・・・定数レジスタ、76・・・・・・除算器、77・
・・・・・第2の比較器。
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. FIG. 3 is an explanatory diagram of a read waveform. 1...Photoelectric conversion unit, 2...Edge detection unit, 3...Counter unit, 4...Start/stop determination unit, 5... ...Decoding section, 6.
...Output control section, 70...AND circuit,
71...Bar space counter circuit, 72...
...Bar/space counter memory, 74...
...Previous bar/space counter memory, 75...
...constant register, 76...divider, 77.
...Second comparator.

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; and a second comparator for detecting that the value stored in the memory is less than or equal to a predetermined ratio set in advance, and when the comparison by the first comparator is different, the first transfer the data stored in the data memory as decoded data to the information processing device, and when the comparison result by the second comparator is less than or equal to the predetermined ratio, transfer the barcode code to the information processing device as separate information. A code reading device characterized by having a configuration in which:
JP63138537A 1988-05-13 1988-06-07 Code reader Pending JPH01307882A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP63138537A JPH01307882A (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
JP63138537A JPH01307882A (en) 1988-06-07 1988-06-07 Code reader

Publications (1)

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

Family

ID=15224472

Family Applications (1)

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

Country Status (1)

Country Link
JP (1) JPH01307882A (en)

Similar Documents

Publication Publication Date Title
US5216231A (en) Self-scanning code reading device
KR940007728A (en) Barcode reader
US8511572B2 (en) Encoded information reading terminal with data formatting functionality
JP2748257B2 (en) Barcode reader for 2D code reading
JPH01319884A (en) Code reader
JPH0354388B2 (en)
EP0464713A2 (en) Bar-code reading apparatus
JPH01307882A (en) Code reader
JPH01307883A (en) Code reader
JPH01307885A (en) Code reader
JPS6210781A (en) Bar code reader
JPH01297778A (en) Code reader
JP2677806B2 (en) Code reader
JP2677805B2 (en) Code reader
JPH01286091A (en) Code reader
JPH01307884A (en) Code reader
JP2732909B2 (en) Barcode reader
JPS62256095A (en) Bar code reader
JP2587918Y2 (en) Mobile terminal device
JPH01269187A (en) Code reader
JPS6038753B2 (en) color bar code reader
JPH07175632A (en) Bar code reader
JP3069817B2 (en) Barcode reader
JP4401107B2 (en) Bar code reader
JPH03164884A (en) Handy type bar code scanner