JPH05225374A - Bar code reader - Google Patents

Bar code reader

Info

Publication number
JPH05225374A
JPH05225374A JP4027716A JP2771692A JPH05225374A JP H05225374 A JPH05225374 A JP H05225374A JP 4027716 A JP4027716 A JP 4027716A JP 2771692 A JP2771692 A JP 2771692A JP H05225374 A JPH05225374 A JP H05225374A
Authority
JP
Japan
Prior art keywords
bar code
bar
distance
time width
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
JP4027716A
Other languages
Japanese (ja)
Inventor
Akito Okamoto
炳人 岡本
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.)
Idec Izumi Corp
Original Assignee
Idec Izumi 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 Idec Izumi Corp filed Critical Idec Izumi Corp
Priority to JP4027716A priority Critical patent/JPH05225374A/en
Publication of JPH05225374A publication Critical patent/JPH05225374A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a bar code reader capable of accurately reading out any bar code only by the reader itself independently of a distance up to a bar code to be read out. CONSTITUTION:A distance from the set position of the reader up to a bar code to be read out is detected by a range finder 11. Respective reading time width data of a margin, a thin bar and a thick bar corresponding to the distance detection signal are computed by an operation means and automatically set up. An electric signal obtained by photoelectrically converting reflected light from the bar code by a photodetecting element is converted into a digital signal by a binarizing circuit 18. The bar code is decoded from the digital signal by a decoding means 27 correspondingly to the computed reading time width data. Thereby the single reader is arranged, and even if a reading distance from the reader up to the bar code is changed, margins and thin and thick bars can be accurately read out without requiring any adjusting work.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、主としてトランスファ
マシンに正確に品番情報を送って自動的に段取り替えを
行なう加工段取り替えシステムや、バーコードを読み取
ることにより生産実績をリアルタイムに把握するための
工程管理システム等の用途に使用される据置固定型のバ
ーコードリーダーに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention mainly relates to a machining setup change system for accurately sending product number information to a transfer machine for automatic setup change, and for grasping production results in real time by reading a bar code. The present invention relates to a stationary fixed bar code reader used for process control systems and the like.

【0002】[0002]

【従来の技術】斯かる据置固定型のバーコードリーダー
は、ペンスキャナやタッチスイッチ等のバーコードに当
てるだけで読み取り可能な他のバーコードリーダーと異
なり、離れたバーコードの読み取りが可能である長所を
有することから、例えばコンベア上を移動される製品に
貼付されたバーコードを読み取ることができるので、前
述のような物流分野や生産管理分野に主に採用されてい
る。この種のバーコードリーダーの光源としてレーザー
光が一般的に採用されており、前述のような用途に用い
る場合には、バーコードとバーコードリーダーとの投光
および反射光の受光の位置関係が同一工程において一定
であるため、レーザー光をコリメーターレンズにより集
光したレーザービームが用いられる。
2. Description of the Related Art Such a stationary fixed bar code reader is capable of reading remote bar codes, unlike other bar code readers which can be read only by applying them to bar codes such as pen scanners and touch switches. Since it has the advantage that it can read a bar code attached to a product moved on a conveyor, for example, it is mainly used in the above-mentioned physical distribution field and production control field. Laser light is generally used as the light source of this type of bar code reader, and when used for the above-mentioned applications, the positional relationship between the bar code and the bar code reader for projecting light and receiving reflected light is Since it is constant in the same process, a laser beam obtained by focusing laser light by a collimator lens is used.

【0003】ところで、バーコードは、黒色で記された
太さの異なる太バーおよび細バーとこれらバー間の白色
のスペースとの組み合わせでデータ等を表したバーコー
ドシンボルと、このバーコードシンボルの左右にそれぞ
れ余白として設けられた一対の白色のマージンとにより
構成されており、各マージンは、それぞれ細バーの10
倍以上の幅に形成されており、左側のマージンはデータ
の始まりを表すスタートキャラクタで、右側のマージン
はデータの終わりを表すストップキャラクタである。そ
して、バーコードリーダーにおいてバーコードを読み取
ってデコード処理する場合、余白を一定時間以上読み取
った後に黒色のバー信号を読み取った時点でマージンの
検出であると判別し、バーコードの読み取り信号として
処理を開始するとともに、白黒のバー信号の読み取りの
後に余白を一定時間以上読み取ってマージンの検出であ
ると判別した時点で信号処理を終了する方法が一般に採
用されている。
By the way, a bar code is a bar code symbol that represents data and the like in a combination of a thick bar and a thin bar of different thickness written in black and a white space between these bars, and a bar code symbol of this bar code symbol. Each of the margins is composed of a pair of white margins provided as margins on the left and right sides.
The left margin is a start character that represents the start of data, and the right margin is a stop character that represents the end of data. Then, when the barcode is read and decoded by the barcode reader, it is determined that the margin is detected when the black bar signal is read after the margin is read for a certain period of time or more, and the process is performed as the barcode read signal. A method is generally adopted in which the signal processing is started at the same time as the black-and-white bar signal is read and then the margin is read for a certain period of time or more to determine the margin detection.

【0004】[0004]

【発明が解決しようとする課題】ところで、図4(a)
に実線で示すように、バーコードリーダー(BR)に対
しL1の距離にバコード(B)を対置した場合と、1点
鎖線で示すようにバーコードリーダー(BR)に対し距
離L1よりも長いL2の距離にバーコード(B)を対置
した場合とを比較すると、回転ミラーにより反射したレ
ーザービームで実線位置のバーコード(B)を読み取る
時のD1の距離を走査する時間と、1点鎖線位置のバー
コード(B)を読み取る時のD2の距離を走査する時間
とは同一であるため、それぞれの読み取り時のバーコー
ド(B)のマージン(M)の読み取り時間が相違する。
即ち、図4(b)にMS1で示す実線位置のバーコード
(B)のマージン(M)の読み取り信号に対し、同図
(b)にMS2で示す1点鎖線位置のバーコード(B)
のマージン(M)の読み取り信号は非常に小さなパルス
幅となる。このようにバーコードリーダー(BR)とバ
ーコード(B)との間の距離に応じてマージンさらには
太バー、細バーの各読み取り時間が相違して各々パルス
幅の異なる読み取り信号となるため、同一の据置固定型
のバーコードリーダーおける読み取り可能な距離範囲に
自ずと限定がある。そのため、従来では各工程における
読み取りバーコードまでの距離に応じた多くの機種を生
産しており、非常に不経済である。また、このバーコー
ドリーダーのユーザーにとっては、多くの機種を並設し
てこれらを使い分けるか、或いはバーコードまでの読み
取り距離が変わる毎に機種の取り替えや調整等の面倒な
作業を必要とし、一方、単一の機種しか設置していない
場合には、読み取るべきバーコードを付設した物体の移
送経路をバーコードリーダーの読み取り距離に合わせる
よう変更する作業を必要とする欠点がある。
By the way, FIG. 4 (a)
When the barcode (B) is placed opposite to the barcode reader (BR) at a distance of L1 as shown by the solid line, and when the barcode L (L) is longer than the distance L1 at the barcode reader (BR) as shown by the chain line. Comparing with the case where the barcode (B) is placed at the distance of, the time for scanning the distance D1 when the barcode (B) at the solid line position is read by the laser beam reflected by the rotating mirror, and the one-dot chain line position Since the time for scanning the distance D2 when reading the barcode (B) is the same, the reading time of the margin (M) of the barcode (B) at each reading is different.
That is, the bar code (B) at the alternate long and short dash line position shown by MS2 in FIG. 4 (b) corresponds to the read signal of the margin (M) of the bar code (B) at the solid line position shown by MS1 in FIG. 4 (b).
The margin (M) read signal has a very small pulse width. In this way, since the reading time of the margin and the reading time of the thick bar and the thin bar are different according to the distance between the bar code reader (BR) and the bar code (B), the read signals have different pulse widths. There is naturally a limit to the range of distance that can be read by the same stationary fixed barcode reader. Therefore, conventionally, many models are produced according to the distance to the reading barcode in each process, which is very uneconomical. In addition, for users of this barcode reader, it is necessary to install many models in parallel and use them differently, or to perform troublesome work such as replacement and adjustment of models each time the reading distance to the barcode changes. However, when only a single model is installed, there is a drawback that it is necessary to change the transfer route of the object attached with the barcode to be read so as to match the reading distance of the barcode reader.

【0005】また、図5(a)に示すように、レーザー
ダイオード(LD)からのレーザービームを、矢印方向
に一定速度で回転するポリゴンミラー(PM)でS点か
らE点に走査する場合、レーザービームの走査速度がS
点からE点に向かうに従って除々に遅くなる。そのた
め、図5(a)に示すように一定幅(t)のバーを一定
間隔(T)で配列したバー群を読み取った場合、その読
み取り信号は図5(b)に示すように除々にパルス幅が
大きくなるよう変化するパルス列信号となる。即ち、同
一幅のバーであるにも拘わらずポリゴンミラー(PM)
の回転角度の変化に伴いパルス幅の異なる読み取り信号
となるので、バーコードの読み取りに際して太バーと細
バーとを正確に判別できなくなって誤検出が生じること
がある。
Further, as shown in FIG. 5A, when a laser beam from a laser diode (LD) is scanned from a point S to a point E by a polygon mirror (PM) rotating at a constant speed in the arrow direction, The scanning speed of the laser beam is S
It gradually becomes slower from the point toward the E point. Therefore, when a bar group in which bars having a constant width (t) are arranged at constant intervals (T) is read as shown in FIG. 5A, the read signal is gradually pulsed as shown in FIG. 5B. The pulse train signal changes so that the width becomes larger. That is, although the bars have the same width, a polygon mirror (PM) is used.
Since the read signals with different pulse widths are generated according to the change of the rotation angle, the thick bar and the thin bar cannot be accurately discriminated when the bar code is read, and an erroneous detection may occur.

【0006】そこで本発明は、読み取るべきバーコード
までの距離の相違や回転ミラーの回転角度に拘わらずバ
ーコードを単一機種で正確に読み取ることのできるバー
コードリーダーを提供することを技術的課題とするもの
である。
Therefore, the present invention is to provide a bar code reader capable of accurately reading a bar code with a single model regardless of the difference in the distance to the bar code to be read and the rotation angle of the rotating mirror. It is what

【0007】[0007]

【課題を解決するための手段】本発明は、上記した課題
を達成するための技術的手段として、バーコードリーダ
ーを次のように構成した。即ち、投光レーザービームを
反射させて読み取るべきバーコードに走査させる回転ミ
ラーと、バーコードで反射して光学系を介し入射される
光を電気信号に変換する受光素子と、この電気信号をバ
ーコードのバーとスペースとの別により2値化してデジ
タル信号に変換する2値化回路と、読み取るべきバーコ
ードまでの距離を検出する測距センサと、前記2値化回
路の出力デジタル信号からバーコードによる表示データ
を解読するデコード処理部とを備え、このデコード処理
部に、前記測距センサの距離検出信号によりバーコード
におけるマージン、細バーおよび太バーの各々の読み取
り時間幅を演算する演算手段と、前記2値化回路の出力
デジタル信号をこれの1および0の信号幅を前記演算手
段による読み取り時間幅と対比してデータ化する復号化
手段とを設けたことを特徴として構成されている。
According to the present invention, a bar code reader is constructed as follows as a technical means for achieving the above-mentioned object. That is, a rotating mirror that reflects the projected laser beam to scan the bar code to be read, a light receiving element that converts the light reflected by the bar code and incident through the optical system into an electric signal, and the electric signal to the bar. A binarization circuit that binarizes and converts the code into a digital signal according to the bar and space of the code, a distance measuring sensor that detects the distance to the bar code to be read, and a bar from the digital signal output from the binarization circuit. A decoding processing unit for decoding display data by a code, and the decoding processing unit calculates the reading time width of each of the margin, the thin bar and the thick bar in the bar code by the distance detection signal of the distance measuring sensor. And converting the output digital signal of the binarizing circuit into data by comparing the signal widths of 1 and 0 thereof with the reading time width by the arithmetic means. Is configured as characterized in that the provided decoding means that.

【0008】また、前記回転ミラーの回転角度を検出す
る回転角度検出回路を設け、前記デコード処理部に、前
記演算手段による各読み取り時間幅を前記角度検出回路
から出力される角度検出信号により補正した修正読み取
り時間幅に変更して前記復号化手段に送出する角度補正
手段を設けることが好ましい。
Further, a rotation angle detection circuit for detecting the rotation angle of the rotary mirror is provided, and each reading time width by the arithmetic means is corrected in the decoding processing section by an angle detection signal output from the angle detection circuit. It is preferable to provide angle correction means for changing the corrected reading time width and sending it to the decoding means.

【0009】[0009]

【作用】バーコードの読み取りに先立って、デコード処
理部の演算手段で測距センサからの距離検出信号に基づ
き読み取り距離に適応するマージンの読み取り時間幅、
細バーの読み取り時間幅および太バーの読み取り時間幅
がそれぞれ演算される。そして、バーコードからの反射
光が光学系で集光されて受光素子に入射した光情報は、
バーコードの黒色の太バーおよび細バーと白色のスペー
スに対する光の強弱に応じたアナログ電気信号に変換さ
れ、この電気信号が、2値化回路において例えば黒色を
“1”とし且つ白色を“0”として2値化したデジタル
信号に変換された後にデコード処理部に対し送出され
る。このデコード処理部において、演算手段により算出
したマージン読み取り時間幅データに一致する信号幅の
信号が2値化回路から入力された時点でマージンの検出
であると判断して復号化手段がバーコードのバーコード
シンボルの読み取り処理を開始し、2値化回路から入力
されるバーコードシンボルの読み取りデジタル信号の
“1”の時間幅を、演算手段で算出した細バー読み取り
時間幅および太バー読み取り時間幅の各データと対比
し、バーコードシンボルの解読を行って文字データ化す
る。
Before reading the bar code, the reading time width of the margin adapted to the reading distance based on the distance detection signal from the distance measuring sensor by the calculating means of the decoding processing section,
The reading time width of the thin bar and the reading time width of the thick bar are calculated. Then, the optical information that the reflected light from the barcode is collected by the optical system and is incident on the light receiving element is
It is converted into an analog electric signal according to the intensity of light with respect to the black thick bar and thin bar of the bar code and the white space, and this electric signal sets black as "1" and white as "0" in the binarization circuit. Is converted to a binary digital signal and then sent to the decoding processing unit. In this decoding processing unit, when a signal having a signal width matching the margin reading time width data calculated by the calculating unit is input from the binarizing circuit, it is determined that the margin has been detected, and the decoding unit detects the barcode. The bar code symbol reading process is started, and the time width of "1" of the bar code symbol reading digital signal input from the binarization circuit is calculated by the calculating means to be the thin bar reading time width and the thick bar reading time width. The barcode symbol is decoded and converted into character data by comparing with each data of.

【0010】従って、バーコードまでの距離に対応して
マージン読み取り時間幅、細バー読み取り時間幅および
太バー読み取り時間幅の各データが自動的に設定される
ので、単一のリーダーを設置してこのリーダーからバー
コードまでの読み取り距離が変わった場合にも、調節作
業等を一切要することなくマージン、細バーおよび太バ
ーを高精度に読み取ることができる。
Therefore, since the margin reading time width, the thin bar reading time width and the thick bar reading time width data are automatically set according to the distance to the bar code, a single reader is installed. Even if the reading distance from the reader to the bar code changes, the margin, the thin bar, and the thick bar can be read with high accuracy without any adjustment work or the like.

【0011】また、演算手段で演算したマージン読み取
り時間幅、細バー読み取り時間幅および太バー読み取り
時間幅の各データを、それぞれ角度補正手段により回転
ミラーの回転角度検出信号に基づき補正するようにすれ
ば、回転ミラーの回転角度の変化に対してもマージン、
太バーおよび細バーを更に正確に読み取ることができ
る。
Further, each data of the margin reading time width, the thin bar reading time width and the thick bar reading time width calculated by the calculating means may be corrected by the angle correcting means based on the rotation angle detection signal of the rotating mirror. For example, even if the rotation angle of the rotating mirror changes
The thick and thin bars can be read more accurately.

【0012】[0012]

【実施例】以下、本発明の好適な一実施例について図面
を参照しながら詳述する。図1は本発明の一実施例の概
略構成の斜視図を示し、光源としてのレーザーダイオー
ドからなる投光素子(1)のレーザー光をコリメーター
レンズからなる投光レンズ(2)により集光してレーザ
ービームに変換した後に光走査用の回転ミラー(3)に
投射される。回転ミラー(3)は、8角柱の8側面にそ
れぞれ反射鏡を備えており、中心軸(4)がモータ(図
示せず)により矢印で示す同一方向に等速度で連続回転
されることにより、前述のレーザービームが製品(5)
に貼付のラベル(6)に記されたバーコード(7)面上
に走査される。また、バーコード(7)からの反射光が
受光レンズ(8)で集光されてフォト検出素子等の受光
素子(9)に入射する。尚、投光素子(1)および投光
レンズ(2)が、後述する焦点調整機構部(10)に装
着されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A preferred embodiment of the present invention will be described in detail below with reference to the drawings. FIG. 1 is a perspective view of a schematic configuration of one embodiment of the present invention, in which a laser beam of a light projecting element (1) composed of a laser diode as a light source is condensed by a projecting lens (2) composed of a collimator lens. After being converted into a laser beam, it is projected on a rotating mirror (3) for optical scanning. The rotating mirror (3) is provided with reflecting mirrors on each of eight side surfaces of an octagonal prism, and the central axis (4) is continuously rotated at a constant speed in the same direction indicated by an arrow by a motor (not shown), The above laser beam is a product (5)
The surface of the bar code (7) marked on the label (6) attached to is scanned. The reflected light from the bar code (7) is condensed by the light receiving lens (8) and is incident on the light receiving element (9) such as a photo detection element. The light projecting element (1) and the light projecting lens (2) are attached to a focus adjusting mechanism section (10) described later.

【0013】そして、回転ミラー(3)の近傍箇所に、
本発明のバーコードリーダーの所定の位置に対し順次移
送されてくる製品(5)に貼付のラベル(6)のバーコ
ード(7)までの距離を非接触で測定する測距センサ
(11)が配設されている。この測距センサ(11)と
しては、距離を検知するための被検知物に対してパルス
変調光よりなる投光用ビームを投光する投光部(図示せ
ず)と、この投光部から所定間隔を隔てた側方位置であ
って投光部および被検知物に対して三角測量的に配置さ
れた受光部(図示せず)とにより構成された公知のもの
が用いられている。即ち、受光部において、投光ビーム
の被検知物による反射光を受光レンズで集光した後に入
射される半導体位置検出素子(図示せず)は、フォトダ
イオードを利用した位置検出用センサであって受光面全
面にわたり均一な抵抗値を持つよう形成されているた
め、これに入射した光が光電変換された光電流が、両側
の電極までの距離つまり抵抗値に逆比例して分割出力さ
れるので、この両電極の電流を演算することにより半導
体位置検出素子の受光スポット位置を検知することがで
き、この位置検出素子の受光スポット位置は、投光レン
ズから被検知物までの距離に対応するので、投光ビーム
が反射した物体までの距離を演算により検知できるもの
である。この測距センサ(11)から出力される距離検
出信号が制御回路部(12)の後述のデコード処理部お
よび焦点調整機構部(10)に対しそれぞれ入力され
る。
Then, in the vicinity of the rotating mirror (3),
A distance measuring sensor (11) for contactlessly measuring the distance to the bar code (7) of the label (6) attached to the product (5) sequentially transferred to the predetermined position of the bar code reader of the present invention. It is arranged. The distance measuring sensor (11) includes a light projecting unit (not shown) that projects a beam for projecting light composed of pulse-modulated light onto an object to be detected for detecting a distance, and a light projecting unit from the light projecting unit. A known one is used which is composed of a light projecting portion and a light receiving portion (not shown) arranged in a triangulation manner with respect to an object to be detected, which are laterally spaced apart from each other by a predetermined distance. That is, in the light receiving portion, the semiconductor position detecting element (not shown) which is incident after the reflected light of the projected light from the detected object is condensed by the light receiving lens is a position detecting sensor using a photodiode. Since it is formed to have a uniform resistance value over the entire light receiving surface, the photocurrent obtained by photoelectrically converting the light incident on this is divided and output in inverse proportion to the distance to the electrodes on both sides, that is, the resistance value. , The light receiving spot position of the semiconductor position detecting element can be detected by calculating the currents of the both electrodes, and the light receiving spot position of the position detecting element corresponds to the distance from the light projecting lens to the detected object. The distance to the object reflected by the projection beam can be detected by calculation. A distance detection signal output from the distance measuring sensor (11) is input to a decoding processing unit and a focus adjusting mechanism unit (10), which will be described later, of the control circuit unit (12).

【0014】図2は電気制御系のブロック構成を示し、
図1と同一のものには同一の符号を付してある。そし
て、バーコード(7)の読み取りに先立って、測距セン
サ(11)からの距離検出信号がデコード処理部(1
9)のマージン演算手段(20)、細バー演算手段(2
1)および太バー演算手段(22)にそれぞれ入力され
る。この各演算手段(20)〜(22)において、予め
実験的に求められて各々に記憶されているバーコード
(7)までの距離の変化に対するマージン、細バーおよ
び太バーの各々の読み取り時間幅の変化に関するデータ
と、測距センサ(11)から入力された距離検出信号と
に基づき演算され、マージンの基準読み取り時間幅、細
バーの基準読み取り時間幅および太バーの基準読み取り
時間幅がそれぞれ算出される。
FIG. 2 shows a block configuration of an electric control system.
The same parts as those in FIG. 1 are designated by the same reference numerals. The distance detection signal from the distance measuring sensor (11) is read by the decoding processing unit (1) prior to reading the barcode (7).
9) Margin calculating means (20), Fine bar calculating means (2)
1) and the thick bar calculation means (22), respectively. In each of the calculating means (20) to (22), the margin for the change in the distance to the bar code (7) which is experimentally obtained in advance and is stored in each, the reading time width of each of the thin bar and the thick bar. Is calculated based on the data regarding the change in the distance and the distance detection signal input from the distance measuring sensor (11), and the reference reading time width of the margin, the reference reading time width of the thin bar, and the reference reading time width of the thick bar are calculated. To be done.

【0015】このマージン演算手段(20)、細バー演
算手段(21)および太バー演算手段(22)で各々算
出されたマージン基準読み取り時間幅、細バー基準読み
取り時間幅および太バー基準読み取り時間幅の各データ
が、それぞれ個別の角度補正手段(23),(24),
(25)において補正される。即ち、各角度補正手段
(23)〜(24)は、回転ミラー(3)をモータによ
り正確に等速度で回転駆動するための例えばエンコーダ
の出力信号に基づき回転ミラー(3)の回転角度を検出
する回転角度検出回路(32)からの回転角度検出信号
に基づき、マージン基準読み取り時間幅、細バー基準読
み取り時間幅および太バー基準読み取り時間幅の各デー
タを図5で説明したような変化に関連付けて補正し、マ
ージン修正読み取り時間幅、細バー修正読み取り時間幅
および太バー修正読み取り時間幅の各データを演算す
る。そして、マージン修正読み取り時間幅のデータが一
致判別手段(26)に対し送出され、細バー修正読み取
り時間幅および太バー修正読み取り時間幅の各データが
復号化手段(27)に対し送出される。
The margin reference reading time width, the thin bar reference reading time width and the thick bar reference reading time width calculated by the margin calculating means (20), the thin bar calculating means (21) and the thick bar calculating means (22), respectively. Of the respective data of the respective angle correction means (23), (24),
It is corrected in (25). That is, the angle correction means (23) to (24) detect the rotation angle of the rotating mirror (3) based on the output signal of, for example, an encoder for driving the rotating mirror (3) to rotate accurately at a constant speed by a motor. Based on the rotation angle detection signal from the rotation angle detection circuit (32), each data of the margin reference reading time width, the thin bar reference reading time width and the thick bar reference reading time width is associated with the change as described in FIG. Then, each data of margin correction reading time width, thin bar correction reading time width and thick bar correction reading time width is calculated. Then, the margin correction reading time width data is sent to the coincidence determining means (26), and the thin bar correction reading time width data and the thick bar correction reading time width data are sent to the decoding means (27).

【0016】一方、バーコード(7)からの反射光が受
光レンズ(8)で集光されて受光素子(9)に入射した
光情報は、バーコード(7)の黒色の太バーおよび細バ
ーと白色のスペースに対する光の強弱に応じたアナログ
電気信号に変換され、回転ミラー(3)でバーコード
(7)面上を光で走査した結果得られるバーコード
(7)の白黒の縞模様は細バーと太バーのバー幅に比例
したアナログのリップル電気信号となり、この電気信号
が、増幅回路(17)で増幅された後に、2値化回路
(18)において、例えば黒色を“1”とし且つ白色を
“0”として2値化したデジタル信号に変換された後
に、デコード処理部(19)の一致判別手段(26)お
よび復号化手段(27)に入力される。
On the other hand, the optical information that the reflected light from the bar code (7) is condensed by the light receiving lens (8) and is incident on the light receiving element (9), is the black thick bar and the thin bar of the bar code (7). The black and white striped pattern of the barcode (7) obtained by scanning the barcode (7) surface with the rotating mirror (3) with light is converted into an analog electric signal according to the intensity of light with respect to the white space. It becomes an analog ripple electric signal proportional to the bar width of the thin bar and the thick bar, and after this electric signal is amplified by the amplifier circuit (17), for example, black is set to "1" in the binarization circuit (18). Moreover, after being converted into a binary digital signal with white being "0", it is input to the coincidence determination means (26) and the decoding means (27) of the decoding processing section (19).

【0017】そして、一致判別手段(26)において、
角度補正手段(23)からのマージン修正時間幅データ
に一致する信号幅の信号が2値化回路(18)から入力
されたか否かを判別し、一致する信号が入力された時点
でマージンの検出であると判断して復号化手段(27)
に対しバーコード(7)のバーコードシンボルの読み取
り処理の開始を指令する。ここで、マージン修正読み取
り時間幅データは、バーコード(7)までの距離に対応
したマージンの基準読み取り時間幅を刻々と変化する回
転ミラー(3)の回転角度に伴い補正したものであるた
め、単一のリーダーのみを設置してバーコード(7)ま
での読み取り距離が変わった場合にも、調節作業等を一
切要することなくマージンを高精度に検出することがで
きる。
Then, in the coincidence discriminating means (26),
It is determined whether or not a signal having a signal width matching the margin correction time width data from the angle correction means (23) is input from the binarization circuit (18), and the margin is detected when the matching signal is input. Decoding means (27)
To the bar code (7) to start the reading process of the bar code symbol. Here, the margin-corrected reading time width data is obtained by correcting the reference reading time width of the margin corresponding to the distance to the bar code (7) with the ever-changing rotation angle of the rotating mirror (3). Even if only a single reader is installed and the reading distance to the barcode (7) changes, the margin can be detected with high accuracy without any adjustment work or the like.

【0018】続いて、復号化手段(27)において、2
値化回路(18)から入力されるバーコードシンボルの
読み取りデジタル信号の“1”の時間幅を、両角度補正
手段(24),(25)からそれぞれ入力される細バー
修正読み取り時間幅および太バー修正読み取り時間幅の
各データと対比してバーコードシンボルの解読を行な
い、ASCIIコード等の文字データ化して出力回路
(28)を通じホストコンピュータ等に対し出力され
る。ここで、細バー修正読み取り時間幅および太バー修
正読み取り時間幅の各データは、バーコード(7)まで
の距離に対応した細バーおよび太バーの各々の基準読み
取り時間幅を刻々と変化する回転ミラー(3)の回転角
度に伴いそれぞれ補正したものであるため、単一のリー
ダーでバーコード(7)までの読み取り距離が変わった
場合にも調節作業等を一切要することなく細バーおよび
太バーを高精度に検出することができる。
Then, in the decoding means (27), 2
The time width of “1” of the read digital signal of the bar code symbol input from the binarization circuit (18) is set to the thin bar correction read time width and the thick width which are input from both angle correction means (24) and (25), respectively. The bar code symbol is decoded in comparison with each data of the bar correction reading time width, converted into character data such as ASCII code and output to the host computer or the like through the output circuit (28). Here, each data of the thin bar correction reading time width and the thick bar correction reading time width is a rotation that changes the reference reading time width of each of the thin bar and the thick bar corresponding to the distance to the barcode (7) momentarily. Since it is corrected according to the rotation angle of the mirror (3), even if the reading distance to the bar code (7) changes with a single reader, there is no need for adjustment work, etc. Can be detected with high accuracy.

【0019】ところで、この種のレーザービームを用い
たバーコードリーダーでは、特に半導体レーザーを光源
とする場合、ビームの広がり角が大きく、しかも縦方向
と横方向の広がり角が異なるために広い範囲におけるコ
リメートを行うことが極めて困難である。従って、同一
のバーコードリーダーにおける読み取り可能な距離範囲
に自ずと限度があるため、従来では各工程における読み
取りバーコードまでの距離に応じた多くの機種を生産し
ていた。そこで、前記実施例では、読み取るべきバーコ
ード(7)までの距離に対応して光学系を自動的に変位
させてバーコード(7)までの距離の相違に拘わらず単
一機種で正確に読み取れる焦点調整機構部(10)を設
けてあり、この焦点調整機構部(10)の縦断面図を図
3に、そのブロック構成を図2にそれぞれ示してあり、
これについて説明する。図3において、投光素子(1)
は、ベース板(13)の透孔にレーザー出射部を挿通さ
せて該ベース板(13)に固定されており、このベース
板(13)上に、円筒状の積層型圧電アクチュエータ
(14)が、投光素子(1)を中心部に位置させる状態
で固定されている。この積層型圧電アクチュエータ(1
4)は、最大変位量が50μmのものを三層に積み上げ
たものであって全体の最大変位量が150μmと大きな
ものである。この圧電アクチュエータ(14)内に、有
底円筒状のレンズ取付具(15)が遊挿されているとと
もに、該取付具(15)の上端開口縁部から外方に一体
に突出したフランジ部が圧電アクチュエータ(14)の
上端開口縁部の周面に固着されており、更に、レンズ取
付具(15)の底板下面に、投光レンズ(2)が自体の
レンズ部を底板中心部に穿設された透孔を挿通して固着
され、且つレンズ部が投光素子(1)に対向されてい
る。圧電アクチュエータ(14)には、上端面および下
端面にそれぞれ設けられた一対の電極板(16)を通じ
後述の電圧発生回路に接続されている。
By the way, in a bar code reader using this type of laser beam, especially when a semiconductor laser is used as a light source, the divergence angle of the beam is large, and the divergence angle in the longitudinal direction and the divergence angle in the lateral direction are different from each other. It is extremely difficult to perform collimation. Therefore, since the readable distance range in the same bar code reader is naturally limited, many models have conventionally been produced according to the distance to the read bar code in each process. Therefore, in the above-described embodiment, the optical system is automatically displaced in accordance with the distance to the barcode (7) to be read, and the single model can accurately read regardless of the difference in the distance to the barcode (7). A focus adjustment mechanism section (10) is provided, a vertical cross-sectional view of this focus adjustment mechanism section (10) is shown in FIG. 3, and its block configuration is shown in FIG.
This will be described. In FIG. 3, the light projecting element (1)
Is fixed to the base plate (13) by inserting the laser emitting portion through the through hole of the base plate (13). The cylindrical laminated piezoelectric actuator (14) is mounted on the base plate (13). The light projecting element (1) is fixed in a state of being positioned in the center. This laminated piezoelectric actuator (1
In 4), the maximum displacement amount of 50 μm is piled up in three layers, and the maximum displacement amount of the whole is as large as 150 μm. In the piezoelectric actuator (14), a lens mount (15) having a bottomed cylindrical shape is loosely inserted, and a flange portion integrally protruding outward from an upper edge of the mount (15) is provided. The piezoelectric actuator (14) is fixed to the peripheral surface of the upper edge of the opening, and the projection lens (2) has its own lens portion at the center of the bottom plate on the bottom surface of the bottom plate of the lens fixture (15). The lens portion is opposed to the light projecting element (1) by being inserted through the formed through hole and fixed. The piezoelectric actuator (14) is connected to a voltage generating circuit described later through a pair of electrode plates (16) provided on the upper end surface and the lower end surface, respectively.

【0020】そして、図2において、測距センサ(1
1)からの距離検出信号が補正回路(29)において検
出距離に対し直線性を得られるよう補正され、この補正
された距離検出信号が電圧発生回路(30)に入力さ
れ、電圧発生回路(30)は、入力された距離検出信号
に対し予め設定された値の電圧をそれぞれ発生するとと
もに、この電圧を圧電アクチュエータ(14)に対し供
給する。それにより圧電アクチュエータ(14)が変形
変位し、投光レンズ(2)が投光素子(1)に対し接離
する方向に変位される。変位補正回路(31)は感温素
子から出力される圧電アクチュエータ(14)の温度信
号および各圧電アクチュエータ(14)自体が有するヒ
ステリシス特性に基づき補正回路(29)による補正が
適正になるよう制御する。その結果、圧電アクチュエー
タ(14)つまり投光レンズ(2)が距離検出信号に対
応する変位量に変位され、投光レンズ(2)の投光素子
(1)に対する距離が、バーコード(7)までの距離の
変化に対応してレーザービームのスポット径が適正にな
るよう自動的に補正される。
Then, in FIG. 2, the distance measuring sensor (1
The distance detection signal from 1) is corrected in the correction circuit (29) so as to obtain linearity with respect to the detected distance, and the corrected distance detection signal is input to the voltage generation circuit (30) and the voltage generation circuit (30). ) Generates a voltage having a preset value with respect to the input distance detection signal, and supplies this voltage to the piezoelectric actuator (14). As a result, the piezoelectric actuator (14) is deformed and displaced, and the light projecting lens (2) is displaced in the direction of approaching and separating from the light projecting element (1). The displacement correction circuit (31) controls the correction circuit (29) to correct the correction based on the temperature signal of the piezoelectric actuator (14) output from the temperature sensitive element and the hysteresis characteristic of each piezoelectric actuator (14) itself. .. As a result, the piezoelectric actuator (14), that is, the light projecting lens (2) is displaced by the displacement amount corresponding to the distance detection signal, and the distance of the light projecting lens (2) to the light projecting element (1) becomes the bar code (7). The spot diameter of the laser beam is automatically corrected according to the change in the distance to.

【0021】[0021]

【発明の効果】以上ように本発明のバーコードリーダー
によると、測距センサにより読み取るべきバーコードま
での距離を検出し、その距離検出信号によりバーコード
までの距離に対応したマージン読み取り時間幅、細バー
読み取り時間幅および太バー読み取り時間幅の各データ
を自動的に設定し、バーコードでの反射光を光電変換し
た電気信号の2値化によるデジタル信号を、演算した各
読み取り時間幅データと対比して解読する構成としたの
で、単一のリーダーを設置してこのリーダーからバーコ
ードまでの読み取り距離が変わった場合にも、調節作業
等を一切要することなくマージン、細バーおよび太バー
を高精度に読み取ることができる。
As described above, according to the bar code reader of the present invention, the distance to the bar code to be read is detected by the distance measuring sensor, and the margin reading time width corresponding to the distance to the bar code is detected by the distance detection signal. Each data of the thin bar reading time width and the thick bar reading time width is automatically set, and the digital signal by binarizing the electric signal photoelectrically converted from the reflected light of the bar code is calculated as the calculated reading time width data. Since it is configured to decode in contrast, even if a single reader is installed and the reading distance from this reader to the barcode changes, the margin, thin bar and thick bar can be adjusted without any adjustment work. It can be read with high accuracy.

【0022】また、演算手段で演算したマージン読み取
り時間幅、細バー読み取り時間幅および太バー読み取り
時間幅の各データを、それぞれ角度補正手段により回転
ミラーの回転角度検出信号に基づき補正するようにすれ
ば、回転ミラーの回転角度の変化に対してもマージン、
太バーおよび細バーを更に正確に読み取ることができ
る。
Further, the margin reading time width, the thin bar reading time width and the thick bar reading time width calculated by the calculating means may be corrected by the angle correcting means based on the rotation angle detection signal of the rotating mirror. For example, even if the rotation angle of the rotating mirror changes
The thick and thin bars can be read more accurately.

【0023】従って、ユーザーにとっては、1台を設置
するだけでバーコードまでの種々の読み取り距離に対応
でき、バーコードまでの読み取り距離が変わっても機種
の取り替えや調整等の面倒な作業が一切不要となる大き
な利点があり、一方、メーカーにとっては、生産機種が
少なくなることによりコストダウンできる。
Therefore, for a user, it is possible to cope with various reading distances up to the bar code by installing only one unit, and even if the reading distance up to the bar code is changed, there is no troublesome work such as replacement or adjustment of the model. There is a great advantage that it is not necessary, while the manufacturer can reduce costs by reducing the number of production models.

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

【図1】本発明の一実施例の概略構成の斜視図である。FIG. 1 is a perspective view of a schematic configuration of an embodiment of the present invention.

【図2】同上、信号処理系のブロック構成図である。FIG. 2 is a block diagram of a signal processing system of the above.

【図3】同上、焦点調整機構部の縦断面図である。FIG. 3 is a vertical sectional view of a focus adjusting mechanism section of the above.

【図4】(a)(b)はバーコードまでの距離の相違に
対するマージン読み取り信号の相違を示す説明図であ
る。
FIGS. 4A and 4B are explanatory diagrams showing a difference in margin read signal with respect to a difference in distance to a barcode.

【図5】(a),(b)は回転ミラーの回転角度に対す
るバー読み取り信号の相違を示す説明図である。
5A and 5B are explanatory diagrams showing a difference in bar read signal with respect to a rotation angle of a rotating mirror.

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

3 回転ミラー 7 バーコード 8 受光レンズ(光学系) 9 受光素子 11 測距センサ 18 2値化回路 19 デコード処理部 20 マージン演算手段 21 細バー演算手段 22 太バー演算手段 23〜25 角度補正手段 27 復号化手段 3 rotating mirror 7 bar code 8 light receiving lens (optical system) 9 light receiving element 11 distance measuring sensor 18 binarization circuit 19 decoding processing unit 20 margin calculating means 21 thin bar calculating means 22 thick bar calculating means 23 to 25 angle correcting means 27 Decoding means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 投光レーザービームを反射させて読み取
るべきバーコードに走査させる回転ミラーと、バーコー
ドで反射して光学系を介し入射される光を電気信号に変
換する受光素子と、この電気信号をバーコードのバーと
スペースとの別により2値化してデジタル信号に変換す
る2値化回路と、読み取るべきバーコードまでの距離を
検出する測距センサと、前記2値化回路の出力デジタル
信号からバーコードによる表示データを解読するデコー
ド処理部とを備え、このデコード処理部に、前記測距セ
ンサの距離検出信号によりバーコードにおけるマージ
ン、細バーおよび太バーの各々の読み取り時間幅を演算
する演算手段と、前記2値化回路の出力デジタル信号を
これの1および0の信号幅を前記演算手段による読み取
り時間幅と対比してデータ化する復号化手段とを設けた
ことを特徴とするバーコードリーダー。
1. A rotating mirror for reflecting a projected laser beam to scan a bar code to be read, a light receiving element for converting light reflected by the bar code and incident through an optical system into an electric signal, and this electric element. A binarization circuit that binarizes a signal by converting it into a digital signal by binarizing the bar and space of a bar code, a distance measuring sensor that detects a distance to a bar code to be read, and an output digital of the binarization circuit. A decoding processing unit for decoding display data by a bar code from the signal is provided, and the decoding processing unit calculates the reading time width of each of the margin, the thin bar and the thick bar in the bar code by the distance detection signal of the distance measuring sensor. And the output digital signal of the binarizing circuit by comparing the signal widths of 1 and 0 with the reading time width by the arithmetic means. A bar code reader, characterized in that it is provided with a decoding means for converting the data.
【請求項2】 前記回転ミラーの回転角度を検出する回
転角度検出回路を設け、前記デコード処理部に、前記演
算手段による各読み取り時間幅を前記角度検出回路から
出力される角度検出信号により補正した修正読み取り時
間幅に変更して前記復号化手段に送出する角度補正手段
を設けたことを特徴とする「請求項1」に記載のバーコ
ードリーダ。
2. A rotation angle detection circuit for detecting the rotation angle of the rotary mirror is provided, and each decoding time width by the arithmetic means is corrected in the decoding processing unit by an angle detection signal output from the angle detection circuit. The bar code reader according to claim 1, further comprising angle correction means for changing to a corrected reading time width and sending it to the decoding means.
JP4027716A 1992-02-14 1992-02-14 Bar code reader Pending JPH05225374A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4027716A JPH05225374A (en) 1992-02-14 1992-02-14 Bar code reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4027716A JPH05225374A (en) 1992-02-14 1992-02-14 Bar code reader

Publications (1)

Publication Number Publication Date
JPH05225374A true JPH05225374A (en) 1993-09-03

Family

ID=12228734

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4027716A Pending JPH05225374A (en) 1992-02-14 1992-02-14 Bar code reader

Country Status (1)

Country Link
JP (1) JPH05225374A (en)

Similar Documents

Publication Publication Date Title
US5268565A (en) Compact type bar code reader
US5693930A (en) Optical scanner having a plurality of scanning systems
US5393967A (en) Method and apparatus for non-contact reading of a relief pattern
EP0563130B1 (en) Two-channel xor bar code and optical reader
JPH0524554B2 (en)
US5484990A (en) Multiple depth of field laser optical scanner
KR940001000A (en) Adaptive bar code scanner
US6300645B1 (en) Position sensing device having a single photosensing element
CA2031824C (en) Symbol reader
JPH05225374A (en) Bar code reader
JPH06242391A (en) Optical scanning type picture reader
US5818025A (en) Selective pattern scanner
JP2800262B2 (en) Reader
EP0424096A1 (en) Bar code readers
US7264167B2 (en) Optical scanner having micro-electro-mechanical systems mirror array and associated method
JPH06139393A (en) Projecter and recessed code reader
JP3104455B2 (en) Optical information reader
JPH05181995A (en) Bar code reader
JP3681547B2 (en) Scanning position measuring device for scanning optical system
JP2743732B2 (en) Reader
JPH0373081A (en) Bar code scanner
JPH05181996A (en) Bar code reader
JPH06103392A (en) Bar-code reader
KR930006205Y1 (en) Scanning apparatus for bar-code scanner
JPH062465U (en) Light source control device for barcode reader