JPH08287182A - Bar code reader - Google Patents

Bar code reader

Info

Publication number
JPH08287182A
JPH08287182A JP7088315A JP8831595A JPH08287182A JP H08287182 A JPH08287182 A JP H08287182A JP 7088315 A JP7088315 A JP 7088315A JP 8831595 A JP8831595 A JP 8831595A JP H08287182 A JPH08287182 A JP H08287182A
Authority
JP
Japan
Prior art keywords
bar code
information
barcode
read
light
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
JP7088315A
Other languages
Japanese (ja)
Inventor
Ichiro Tabuchi
一朗 田淵
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.)
Keyence Corp
Original Assignee
Keyence 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 Keyence Corp filed Critical Keyence Corp
Priority to JP7088315A priority Critical patent/JPH08287182A/en
Publication of JPH08287182A publication Critical patent/JPH08287182A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To provide a bar code reader which can easily grasp whether a bar code is set in the specific direction or reverse direction. CONSTITUTION: A decoding part 6 detects direction information from binarized data stored in a binarized data storage area in a storage part 4 to decide the direction of the bar code 9, analyzes the binarized data on the basis of the decision result to read the bar code information out, and also stores setting direction information indicating the setting direction of the bar code 9 in a direction information storage area in the storage part 4. After measurement ends, the read bar code information is outputted through a communication part 8 together with the setting direction information stored in the direction information storage area.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はバーコードからバーコー
ド情報を読み取るバーコード読取装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bar code reader for reading bar code information from a bar code.

【0002】[0002]

【従来の技術】バーコード読取装置では、バーコードに
光を照射し、その反射光を受光することによりバーコー
ドの幅情報を時間情報に変換した後、この時間情報を数
値化し、二値化データとしてDMA等の方法で順次メモ
リに格納する。バーコードの1走査分の二値化データが
メモリに取り込まれると、メモリに格納された二値化デ
ータを解析してバーコード情報を読み取る(復号プロセ
ス)。
2. Description of the Related Art In a bar code reader, a bar code is irradiated with light and the reflected light is received to convert the width information of the bar code into time information, which is then digitized and binarized. Data is sequentially stored in the memory by a method such as DMA. When the binarized data for one scan of the barcode is taken into the memory, the binarized data stored in the memory is analyzed to read the barcode information (decoding process).

【0003】このような読取動作は、通常同じバーコー
ド情報が2回読み取られるまで、または強制的に測定の
終了が指示されるまで繰り返し行われる。同じバーコー
ド情報が2回読み取られると、読み取られたバーコード
情報が出力される。測定の終了時点で同じバーコード情
報が2回読み取れなかった場合には、エラー信号が出力
される。
Such a reading operation is usually repeated until the same bar code information is read twice, or until the end of measurement is instructed compulsorily. When the same barcode information is read twice, the read barcode information is output. If the same bar code information cannot be read twice at the end of the measurement, an error signal is output.

【0004】[0004]

【発明が解決しようとする課題】バーコードにはその方
向を示す方向情報が含まれるので、その方向情報に基づ
いて二値化データを解析することによりバーコードを所
定の方向から走査しても逆の方向から走査してもバーコ
ード情報を正しく読み取ることができる。したがって、
商品、包装箱等の対象物にバーコードラベルが所定の方
向に貼られていても逆の方向に貼られていても、バーコ
ード情報を正しく読み取ることができる。その一方、対
象物にバーコードラベルが正しい方向に貼られているか
誤った方向に貼られているかを検出することはできな
い。
Since the bar code contains direction information indicating its direction, even if the bar code is scanned from a predetermined direction by analyzing the binarized data based on the direction information. The bar code information can be read correctly even if scanning is performed from the opposite direction. Therefore,
The barcode information can be correctly read regardless of whether the barcode label is attached in a predetermined direction or the opposite direction on an object such as a product or a packaging box. On the other hand, it is not possible to detect whether the barcode label is attached to the object in the correct direction or the wrong direction.

【0005】そこで、検出された方向情報に基づいてバ
ーコードラベルが所定の方向に貼られているか逆方向に
貼られているかを判定し、バーコードラベルが所定の方
向に貼られている場合にのみ読取動作を許可し、バーコ
ードラベルが逆方向に貼られている場合にはエラー信号
を出力するバーコード読取装置が開発されている。
Therefore, it is determined based on the detected direction information whether the bar code label is affixed in a predetermined direction or the reverse direction, and when the bar code label is affixed in a predetermined direction, Bar code readers have been developed which allow only the reading operation and output an error signal when the bar code label is stuck in the opposite direction.

【0006】しかしながら、このようなバーコード読取
装置によれば、エラー信号が出力された場合には、バー
コードラベルが対象物に逆方向に貼られているのか、あ
るいはバーコード情報が読み取れなかったのかを知るこ
とはできない。
However, according to such a bar code reading apparatus, when the error signal is output, the bar code label is stuck on the object in the reverse direction, or the bar code information cannot be read. I can't know.

【0007】そこで、本発明の目的は、バーコードが所
定の方向に設置されているか逆の方向に設置されている
かを容易に把握することができるバーコード読取装置を
提供することである。
Therefore, an object of the present invention is to provide a bar code reading apparatus which can easily grasp whether the bar code is installed in a predetermined direction or in the opposite direction.

【0008】[0008]

【課題を解決するための手段】第1の発明に係るバーコ
ード読取装置は、投光手段、変換手段、方向判定手段、
解析手段および出力手段を備える。
A bar code reader according to a first aspect of the present invention comprises a light projecting means, a converting means, a direction determining means,
The analysis means and the output means are provided.

【0009】投光手段は、読取対象となるバーコードに
光を照射する。変換手段は、投光手段により光が照射さ
れたバーコードからの反射光を受光して二値化データに
変換する。方向判定手段は、変換手段により得られた二
値化データから方向情報を検出することによりバーコー
ドの設置方向を判定する。解析手段は、方向判定手段の
判定結果に基づいて変換手段により得られた二値化デー
タを解析してバーコード情報を読み取る。出力手段は、
解析手段により読み取られたバーコード情報を方向判定
手段の判定結果とともに出力する。
The light projecting means irradiates the bar code to be read with light. The conversion means receives the reflected light from the bar code illuminated by the light projecting means and converts the reflected light into binary data. The direction determining means determines the installation direction of the barcode by detecting the direction information from the binarized data obtained by the converting means. The analysis unit analyzes the binarized data obtained by the conversion unit based on the determination result of the direction determination unit and reads the barcode information. The output means is
The barcode information read by the analyzing means is output together with the determination result of the direction determining means.

【0010】第2の発明に係るバーコード読取装置は、
投光手段、変換手段、方向判定手段、解析手段、設定手
段、一致判定手段および出力手段を備える。投光手段
は、読取対象となるバーコードに光を照射する。変換手
段は、投光手段により光が照射されたバーコードからの
反射光を受光して二値化データに変換する。方向判定手
段は、変換手段により得られた二値化データから方向情
報を検出することによりバーコードの設置方向を判定す
る。解析手段は、方向判定手段の判定結果に基づいて変
換手段により得られた二値化データを解析してバーコー
ド情報を読み取る。設定手段は、予めバーコード情報を
設定する。一致判定手段は、解析手段により読み取られ
たバーコード情報が設定手段により設定されたバーコー
ド情報と一致するか否かを判定する。出力手段は、一致
判定手段の判定結果を方向判定手段の判定結果とともに
出力する。
A bar code reading apparatus according to the second invention is
A light projecting means, a converting means, a direction determining means, an analyzing means, a setting means, a coincidence determining means and an output means are provided. The light projecting unit irradiates the barcode to be read with light. The conversion means receives the reflected light from the bar code illuminated by the light projecting means and converts the reflected light into binary data. The direction determining means determines the installation direction of the barcode by detecting the direction information from the binarized data obtained by the converting means. The analysis unit analyzes the binarized data obtained by the conversion unit based on the determination result of the direction determination unit and reads the barcode information. The setting means sets the barcode information in advance. The coincidence determining means determines whether or not the barcode information read by the analyzing means matches the barcode information set by the setting means. The output means outputs the determination result of the coincidence determination means together with the determination result of the direction determination means.

【0011】[0011]

【作用】第1および第2の発明に係るバーコード読取装
置においては、読取対象となるバーコードに光が照射さ
れ、その反射光が受光されて二値化データに変換され
る。そして、二値化データから方向情報が検出され、そ
の方向情報に基づいてバーコードの設置方向が判定され
る。さらに、その判定結果に基づいて二値化データが解
析され、バーコード情報が読み取られる。
In the bar code reading apparatus according to the first and second aspects of the invention, the bar code to be read is irradiated with light and the reflected light is received and converted into binary data. Then, the direction information is detected from the binarized data, and the installation direction of the barcode is determined based on the direction information. Further, the binarized data is analyzed based on the determination result, and the barcode information is read.

【0012】特に、第1の発明に係るバーコード読取装
置では、読み取られたバーコード情報がバーコードの設
置方向の判定結果とともに出力される。一方、第2の発
明に係るバーコード読取装置では、読み取られたバーコ
ード情報が予め設定されたバーコード情報と一致するか
否かが判定され、その一致判定結果がバーコードの設置
方向の判定結果とともに出力される。
Particularly, in the bar code reading apparatus according to the first aspect of the present invention, the read bar code information is output together with the determination result of the installation direction of the bar code. On the other hand, in the barcode reading apparatus according to the second aspect of the present invention, it is determined whether the read barcode information matches the preset barcode information, and the matching determination result is the determination of the installation direction of the barcode. It is output together with the result.

【0013】このように、バーコードからバーコード情
報が読み取られた場合にそのバーコード情報または一致
判定結果がバーコードの設置方向の判定結果とともに出
力されるので、ユーザは商品、包装箱等の対象物にバー
コードラベルが所定の方向に貼られているかあるいは逆
の方向に貼られているかを容易に把握することができ
る。
As described above, when the bar code information is read from the bar code, the bar code information or the matching judgment result is output together with the judgment result of the installation direction of the bar code. It is possible to easily grasp whether the barcode label is attached to the target object in a predetermined direction or in the opposite direction.

【0014】[0014]

【実施例】図1は本発明の一実施例によるバーコード読
取装置の構成を示すブロック図である。図1のバーコー
ド読取装置10は、投光部1、受光部2、二値化部3、
記憶部4、制御部5、デコード部6、表示部7および通
信部8を含む。
1 is a block diagram showing the configuration of a bar code reader according to an embodiment of the present invention. The bar code reader 10 of FIG. 1 includes a light projecting unit 1, a light receiving unit 2, a binarizing unit 3,
The storage unit 4, the control unit 5, the decoding unit 6, the display unit 7, and the communication unit 8 are included.

【0015】投光部1は、たとえばLED(発光ダイオ
ード)アレイ、LED駆動回路および投光用レンズから
なり、測定対象となるバーコード9に光を照射する。こ
の場合、LEDアレイから発生される光はバーコード9
の一端から他端に渡って同時に照射される。受光部2
は、たとえば受光用レンズ、CCD(電荷結合素子)イ
メージセンサおよびCCD駆動回路からなり、バーコー
ド9からの反射光を受光し、電気信号に変換する。この
場合、受光部2はバーコード9の一端から他端までの反
射光を同時に受光する。
The light projecting section 1 is composed of, for example, an LED (light emitting diode) array, an LED drive circuit, and a light projecting lens, and irradiates the bar code 9 to be measured with light. In this case, the light emitted from the LED array is the barcode 9
Are simultaneously irradiated from one end to the other end. Light receiving part 2
Is composed of, for example, a light-receiving lens, a CCD (charge-coupled device) image sensor, and a CCD drive circuit, receives the reflected light from the bar code 9 and converts it into an electric signal. In this case, the light receiving unit 2 simultaneously receives the reflected light from one end to the other end of the barcode 9.

【0016】なお、投光部1が半導体レーザ素子、レー
ザ点灯回路および多角形状のポリゴンミラーにより構成
され、受光部2がフォトダイオード等の光電変換素子に
より構成されてもよい。この場合、ポリゴンミラーがモ
ータにより回転され、半導体レーザ素子から出射される
レーザ光が回転するポリゴンミラーの表面で反射し、バ
ーコード9の一端から他端まで走査される。バーコード
の一端から他端まで走査されるレーザ光の反射光が光電
変換素子により順次受光され、電気信号に変換される。
The light projecting unit 1 may be composed of a semiconductor laser device, a laser lighting circuit and a polygonal polygon mirror, and the light receiving unit 2 may be composed of a photoelectric conversion device such as a photodiode. In this case, the polygon mirror is rotated by the motor, and the laser light emitted from the semiconductor laser element is reflected on the surface of the rotating polygon mirror and scanned from one end to the other end of the barcode 9. The reflected light of the laser light scanned from one end to the other end of the barcode is sequentially received by the photoelectric conversion element and converted into an electric signal.

【0017】以下の説明では、バーコード9の一端から
他端まで同時にまたは順次的に光を照射し、その反射光
を同時にまたは順次的に受光することを1走査とよぶ。
二値化部3は、受光部2から出力される電気信号に基づ
いてバーコード9の各バーの幅情報を基準クロックでカ
ウントすることにより時間情報に変換した後、この時間
情報を数値化し、二値化データとして出力する。二値化
部3により得られた二値化データは、DMA(ダイレク
トメモリアクセス)等の方法で順次記憶部4に取り込ま
れる。デコード部6は、記憶部4に記憶された二値化デ
ータから方向情報を検出し、その方向情報に基づいてバ
ーコードの設置方向を判定し、その判定結果に基づいて
二値化データを解析(復号)してバーコード情報を読み
取る。
In the following description, irradiating light from one end to the other end of the bar code 9 simultaneously or sequentially and receiving the reflected light simultaneously or sequentially is called one scanning.
The binarization unit 3 converts the width information of each bar of the barcode 9 into time information by counting with a reference clock based on the electric signal output from the light receiving unit 2, and then digitizes this time information, Output as binary data. The binarized data obtained by the binarization unit 3 is sequentially loaded into the storage unit 4 by a method such as DMA (Direct Memory Access). The decoding unit 6 detects the direction information from the binarized data stored in the storage unit 4, determines the installation direction of the barcode based on the direction information, and analyzes the binarized data based on the determination result. (Decode) to read the barcode information.

【0018】表示部7は、デコード部6によるバーコー
ド情報の読取結果およびバーコードの設置方向の判定結
果を表示する。通信部8は、外部装置から与えられる種
々のコマンドを受信して制御部5に与えるとともにデコ
ード部6によるバーコード情報の読取結果およびバーコ
ードの設置方向の判定結果を外部装置に送信する。制御
部5は外部から与えられるタイミング信号TIMおよび
通信部8を介して与えられるコマンドに基づいてバーコ
ード読取装置10内の各部を制御をする。
The display unit 7 displays the reading result of the barcode information by the decoding unit 6 and the determination result of the installation direction of the barcode. The communication unit 8 receives various commands given from an external device, gives them to the control unit 5, and sends the reading result of the barcode information by the decoding unit 6 and the determination result of the installation direction of the barcode to the external device. The control unit 5 controls each unit in the barcode reading apparatus 10 based on a timing signal TIM given from the outside and a command given via the communication unit 8.

【0019】図2に記憶部4の詳細な構成を示す。図2
に示すように、記憶部4は、二値化データ記憶領域4
1、方向情報記憶領域42、今回読取情報記憶領域43
および前回読取情報記憶領域44を含む。
FIG. 2 shows a detailed structure of the storage unit 4. Figure 2
As shown in FIG.
1, direction information storage area 42, current read information storage area 43
And a previously read information storage area 44.

【0020】二値化データ記憶領域41はn個のDMA
用メモリ領域411,412,…,41nを含み、各メ
モリ領域には二値化部3から1走査分の二値化データが
DMAにより格納される。各メモリ領域は、デコード部
6による二値化データの解析終了後、以後の二値化デー
タの取り込みのために解放される。
The binarized data storage area 41 has n DMAs.
, 41n for each scan, and binarized data for one scan from the binarization unit 3 is stored in each memory region by DMA. After the decoding unit 6 finishes analyzing the binarized data, each memory area is released for subsequent fetching of the binarized data.

【0021】方向情報記憶領域42には、デコード部6
により判定されたバーコードの設置方向を示す設置方向
情報が格納される。今回読取情報記憶領域43には、デ
コード部6による今回の読取動作により得られたバーコ
ード情報が格納される。前回読取情報記憶領域44に
は、デコード部6による前回の読取動作により読み取ら
れたバーコード情報が格納される。
In the direction information storage area 42, the decoding unit 6
Installation direction information indicating the installation direction of the barcode determined by is stored. The currently read information storage area 43 stores the bar code information obtained by the current reading operation by the decoding unit 6. The previously read information storage area 44 stores the barcode information read by the previous reading operation by the decoding unit 6.

【0022】本実施例では、投光部1が投光手段を構成
し、受光部2および二値化部3が変換手段を構成し、記
憶部4内の二値化データ記憶領域41がデータ記憶手段
を構成する。また、デコード部6が方向判定手段および
解析手段を構成し、制御部5が制御手段を構成し、通信
部8または表示部7が出力手段を構成する。
In this embodiment, the light projecting section 1 constitutes the light projecting means, the light receiving section 2 and the binarizing section 3 constitute the converting means, and the binarized data storage area 41 in the storage section 4 stores data. It constitutes a storage means. Further, the decoding unit 6 constitutes a direction determining unit and an analyzing unit, the control unit 5 constitutes a control unit, and the communication unit 8 or the display unit 7 constitutes an output unit.

【0023】次に、図3および図4を参照して図1のバ
ーコード読取装置10の動作を説明する。図3はバーコ
ード読取装置10における測定動作を示すフローチャー
トである。図4は図3の測定動作におけるデータ解析処
理を示すフローチャートである。ここでは、図5のバー
コード9の位置Aから位置Bまで矢印Xの方向に走査す
るものとする。
Next, the operation of the bar code reader 10 of FIG. 1 will be described with reference to FIGS. 3 and 4. FIG. 3 is a flowchart showing the measuring operation in the barcode reading apparatus 10. FIG. 4 is a flowchart showing a data analysis process in the measurement operation of FIG. Here, it is assumed that scanning is performed in the direction of arrow X from the position A to the position B of the barcode 9 in FIG.

【0024】図3に示すように、まず、制御部5は所定
の測定開始条件が満たされているか否かを判定する(ス
テップS1)。ここで、所定の測定開始条件とは、外部
からタイミング信号TIMが与えられたか通信部8を介
して測定開始コマンドが与えられたことである。測定開
始条件が満たされると測定を開始する(ステップS
2)。測定開始にあたっては、投光部1がバーコード9
に光を照射するとともに、記憶部4の二値化データ記憶
領域41にDMAにより二値化データの取り込みを開始
する。
As shown in FIG. 3, the control unit 5 first determines whether or not a predetermined measurement start condition is satisfied (step S1). Here, the predetermined measurement start condition is that a timing signal TIM is externally supplied or a measurement start command is supplied via the communication unit 8. When the measurement start condition is satisfied, the measurement is started (step S
2). When starting the measurement, the light projecting unit 1 sets the barcode 9
At the same time as irradiating with light, the binarized data storage area 41 of the storage unit 4 starts fetching the binarized data by DMA.

【0025】二値化データ記憶領域41に1走査分の二
値化データが取り込まれるまで待機し(ステップS
3)、1走査分の二値化データの取り込みが終了する
と、図4に示すデータ解析処理を行う(ステップS
4)。
It waits until the binarized data for one scan is loaded into the binarized data storage area 41 (step S
3) When the acquisition of the binarized data for one scan is completed, the data analysis process shown in FIG. 4 is performed (step S
4).

【0026】図4に示すように、デコード部6は、前マ
ージンが存在するか否かを判定するとともに(ステップ
S21)、後マージンが存在するか否かを判定する(ス
テップS22)。前マージンおよび後マージンとは、走
査方向に関してバーコードの前後に設けられた所定の長
さの空白をいう。図5の例では、前マージンはM1とな
り、後マージンはM2となる。
As shown in FIG. 4, the decoding unit 6 determines whether or not there is a front margin (step S21), and also determines whether or not a rear margin exists (step S22). The front margin and the rear margin are blanks of a predetermined length provided before and after the barcode in the scanning direction. In the example of FIG. 5, the front margin is M1 and the rear margin is M2.

【0027】前マージンおよび後マージンが存在する場
合には、デコード部6が記憶部4の二値化データ記憶領
域41に記憶された二値化データから方向情報を検出す
ることによりバーコード9の方向判定を行う(ステップ
S23)。バーコード9が正方向に設置されていると判
定された場合には、二値化データを正方向に走査された
データとみなして解析することにより、バーコード情報
を読み取り、読み取ったバーコード情報を今回読取情報
記憶領域43に格納する(ステップS24)。また、正
方向を示す設置方向情報を方向情報記憶領域42に格納
する(ステップS25)。一方、バーコード9が逆方向
に設置されていると判定された場合には、二値化データ
を逆方向に走査されたデータとみなして解析することに
より、バーコード情報を読み取り、読み取ったバーコー
ド情報を今回読取情報記憶領域43に格納する(ステッ
プS26)。また、逆方向を示す設置方向情報を方向情
報記憶領域43に格納する(ステップS27)。
When the front margin and the rear margin exist, the decoding unit 6 detects the direction information from the binarized data stored in the binarized data storage area 41 of the storage unit 4 to detect the direction of the barcode 9. Direction determination is performed (step S23). When it is determined that the barcode 9 is installed in the positive direction, the binary information is regarded as the data scanned in the positive direction and analyzed, thereby reading the barcode information and reading the barcode information. Is stored in the read information storage area 43 this time (step S24). Further, the installation direction information indicating the positive direction is stored in the direction information storage area 42 (step S25). On the other hand, when it is determined that the bar code 9 is installed in the reverse direction, the binarized data is regarded as data scanned in the reverse direction and analyzed, thereby reading the bar code information and reading the bar code information. The code information is stored in the read information storage area 43 this time (step S26). Further, the installation direction information indicating the reverse direction is stored in the direction information storage area 43 (step S27).

【0028】そして、図3のステップS5に進む。ステ
ップS5では、制御部5が、デコード部6によりバーコ
ード情報が認識されたか否かを判定する(ステップS
5)。バーコード情報が認識された場合には、今回読取
情報記憶領域43に記憶されるバーコード情報と前回読
取情報記憶領域44に記憶されるバーコード情報とを比
較することにより、同じバーコード情報が2回認識され
たか否かを判定する(ステップS6)。
Then, the process proceeds to step S5 in FIG. In step S5, the control section 5 determines whether or not the barcode information is recognized by the decoding section 6 (step S5).
5). When the barcode information is recognized, the same barcode information is obtained by comparing the barcode information stored in the read information storage area 43 this time with the barcode information stored in the previous read information storage area 44. It is determined whether or not it has been recognized twice (step S6).

【0029】同じバーコード情報が1回しか認識されて
いない場合には、所定の測定終了条件が満たされている
か否かを判定する(ステップS7)。ここで、所定の測
定終了条件とは、外部からのタイミング信号TIMが与
えられなくなったことまたは通信部8を介して測定終了
コマンドが与えられたことである。
When the same bar code information is recognized only once, it is determined whether or not a predetermined measurement end condition is satisfied (step S7). Here, the predetermined measurement end condition is that the timing signal TIM from the outside is not given or the measurement end command is given via the communication unit 8.

【0030】所定の測定終了条件が満たされない場合に
は、バーコード情報の解析が終了したメモリ領域を以後
のDMAのために解放し(ステップS8)、ステップS
3に戻る。
When the predetermined measurement end condition is not satisfied, the memory area for which the analysis of the bar code information is completed is released for the subsequent DMA (step S8), and step S8.
Return to 3.

【0031】ステップS3〜S8の読取動作を繰り返
し、同じバーコード情報が2回認識されると(ステップ
S6)、測定を終了する(ステップS9)。測定終了に
あたっては、DMAによる記憶部4への二値化データの
取り込みを終了するとともに投光部1によるバーコード
9への光照射を終了する。その後、今回読取情報記憶領
域43に記憶されたバーコード情報を方向情報記憶領域
42に記憶された設置方向情報とともに通信部8を介し
て出力する(ステップS10)。
When the same barcode information is recognized twice (step S6) by repeating the reading operation of steps S3 to S8, the measurement is ended (step S9). At the end of the measurement, the DMA reading of the binarized data into the storage unit 4 is completed, and the light irradiation of the bar code 9 by the light projecting unit 1 is completed. After that, the barcode information stored in the read information storage area 43 this time is output together with the installation direction information stored in the direction information storage area 42 via the communication unit 8 (step S10).

【0032】ステップS7において所定の測定終了条件
が満たされると、測定を終了し(ステップS11)、通
信部8を介してエラー信号を出力する(ステップS1
2)。図6にバーコード情報および設置方向情報の出力
例を示す。バーコード9が所定の方向に設置されている
場合には、図6(a)に示すように正方向を示す設置方
向情報11a、バーコード情報12およびターミネータ
13が出力される。バーコード9が逆方向に設置されて
いる場合には、図6(b)に示すように逆方向を示す設
置方向情報11b、バーコード情報12およびターミネ
ータ13が出力される。このとき、表示部7によりバー
コード情報および設置方向情報が表示される。
When a predetermined measurement end condition is satisfied in step S7, the measurement is ended (step S11), and an error signal is output via the communication section 8 (step S1).
2). FIG. 6 shows an output example of barcode information and installation direction information. When the barcode 9 is installed in a predetermined direction, the installation direction information 11a indicating the positive direction, the barcode information 12, and the terminator 13 are output as shown in FIG. 6A. When the barcode 9 is installed in the reverse direction, the installation direction information 11b indicating the reverse direction, the bar code information 12, and the terminator 13 are output as shown in FIG. 6B. At this time, the display unit 7 displays the barcode information and the installation direction information.

【0033】このように、バーコード情報が読み取られ
た場合には、バーコード情報とともに設置方向情報が出
力されるので、ユーザは、商品、包装箱等の対象物にバ
ーコードラベルが所定の方向に貼られているか誤った方
向に貼られているかを容易に把握することができる。
As described above, when the bar code information is read, the installation direction information is output together with the bar code information, so that the user can set the bar code label on the object such as a product or a packaging box in a predetermined direction. It can be easily grasped whether it is stuck on or on the wrong direction.

【0034】なお、上記実施例では、バーコード情報が
設置方向情報とともに出力されるが、予め通信部8を介
して記憶部4にバーコード情報を設定し、読み取られた
バーコード情報が予め設定されたバーコード情報と一致
するか否かを制御部5が判定し、その判定結果を設置方
向情報とともに出力してもよい。この場合、制御部5が
一致判定手段を構成し、通信部8が設定手段を構成す
る。
In the above embodiment, the bar code information is output together with the installation direction information. However, the bar code information is set in advance in the storage section 4 via the communication section 8 and the read bar code information is set in advance. The control unit 5 may determine whether or not the obtained barcode information matches, and output the determination result together with the installation direction information. In this case, the control section 5 constitutes the coincidence determination means, and the communication section 8 constitutes the setting means.

【0035】[0035]

【発明の効果】第1の発明によれば、バーコードからバ
ーコード情報が読み取られた場合にそのバーコード情報
がバーコードの設置方向の判定結果とともに出力される
ので、ユーザは商品、包装箱等の対象物にバーコードラ
ベルが所定の方向に貼られているか逆方向に貼られてい
るかを容易に把握することができる。
According to the first aspect of the present invention, when the bar code information is read from the bar code, the bar code information is output together with the determination result of the installation direction of the bar code. It is possible to easily grasp whether the barcode label is attached to the target object such as in the predetermined direction or in the opposite direction.

【0036】第2の発明によれば、バーコードからバー
コード情報が読み取られた場合にそのバーコード情報が
予め設定されたバーコード情報と一致するか否かが判定
され、その判定結果がバーコードの設置方向の判定結果
とともに出力されるので、ユーザは商品、包装箱等の対
象物にバーコードラベルが所定の方向に貼られているか
逆方向に貼られているかを容易に把握することができ
る。
According to the second aspect of the invention, when the bar code information is read from the bar code, it is judged whether or not the bar code information matches the preset bar code information, and the judgment result is the bar code information. It is output together with the judgment result of the installation direction of the code, so the user can easily understand whether the barcode label is affixed in the predetermined direction or the reverse direction on the object such as the product or the packaging box. it can.

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

【図1】本発明の一実施例によるバーコード読取装置の
構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a bar code reader according to an embodiment of the present invention.

【図2】図1のバーコード読取装置の記憶部の詳細な構
成を示すブロック図である。
FIG. 2 is a block diagram showing a detailed configuration of a storage unit of the barcode reading device in FIG.

【図3】図1のバーコード読取装置における測定動作を
示すフローチャートである。
FIG. 3 is a flowchart showing a measuring operation in the barcode reading apparatus of FIG.

【図4】図2の測定動作におけるデータ解析処理を示す
フローチャートである。
FIG. 4 is a flowchart showing a data analysis process in the measurement operation of FIG.

【図5】バーコードの一例を示す図である。FIG. 5 is a diagram showing an example of a barcode.

【図6】図1のバーコード読取装置において出力される
バーコード情報および設置方向情報の一例を示す図であ
る。
FIG. 6 is a diagram showing an example of barcode information and installation direction information output by the barcode reading apparatus of FIG.

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

1 投光部 2 受光部 3 二値化部 4 記憶部 5 制御部 6 デコード部 7 表示部 8 通信部 9 バーコード 10 バーコード読取装置 11a,11b 設置方向情報 12 バーコード情報 41 二値化データ記憶領域 42 方向情報記憶領域 1 Light emitting unit 2 Light receiving unit 3 Binarizing unit 4 Storage unit 5 Control unit 6 Decoding unit 7 Display unit 8 Communication unit 9 Bar code 10 Bar code reading device 11a, 11b Installation direction information 12 Bar code information 41 Binary data Storage area 42 Directional information storage area

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 読取対象となるバーコードに光を照射す
る投光手段と、 前記投光手段により光が照射されたバーコードからの反
射光を受光して二値化データに変換する変換手段と、 前記変換手段により得られた二値化データから方向情報
を検出することによりバーコードの設置方向を判定する
方向判定手段と、 前記方向判定手段の判定結果に基づいて前記変換手段に
より得られた二値化データを解析してバーコード情報を
読み取る解析手段と、 前記解析手段により読み取られたバーコード情報を前記
方向判定手段の判定結果とともに出力する出力手段とを
備えたことを特徴とするバーコード読取装置。
1. A light projecting means for irradiating a bar code to be read with light, and a converting means for receiving reflected light from the bar code irradiated with light by the light projecting means and converting it into binarized data. And a direction determining means for determining the installation direction of the barcode by detecting the direction information from the binarized data obtained by the converting means, and obtained by the converting means based on the determination result of the direction determining means. And analyzing means for analyzing the binarized data to read the barcode information, and output means for outputting the barcode information read by the analyzing means together with the determination result of the direction determining means. Bar code reader.
【請求項2】 読取対象となるバーコードに光を照射す
る投光手段と、 前記投光手段により光が照射されたバーコードからの反
射光を受光して二値化データに変換する変換手段と、 前記変換手段により得られた二値化データから方向情報
を検出することによりバーコードの設置方向を判定する
方向判定手段と、 前記方向判定手段の判定結果に基づいて前記変換手段に
より得られた二値化データを解析してバーコード情報を
読み取る解析手段と、 予めバーコード情報を設定する設定手段と、 前記解析手段により読み取られたバーコード情報が前記
設定手段により設定されたバーコード情報と一致するか
否かを判定する一致判定手段と、 前記一致判定手段の判定結果を前記方向判定手段の判定
結果とともに出力する出力手段とを備えたことを特徴と
するバーコード読取装置。
2. A light projecting unit for irradiating a bar code to be read with light, and a converting unit for receiving reflected light from the bar code irradiated with light by the light projecting unit and converting the light into binary data. And a direction determining means for determining the installation direction of the barcode by detecting the direction information from the binarized data obtained by the converting means, and obtained by the converting means based on the determination result of the direction determining means. Analyzing means for reading the barcode information by analyzing the binarized data, setting means for setting the barcode information in advance, barcode information read by the analyzing means, the barcode information set by the setting means It is characterized in that it is provided with a coincidence judging means for judging whether or not the coincidence and the judgment result of the coincidence judging means are output together with the judgment result of the direction judging means. Bar code reader to collect.
JP7088315A 1995-04-13 1995-04-13 Bar code reader Pending JPH08287182A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7088315A JPH08287182A (en) 1995-04-13 1995-04-13 Bar code reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7088315A JPH08287182A (en) 1995-04-13 1995-04-13 Bar code reader

Publications (1)

Publication Number Publication Date
JPH08287182A true JPH08287182A (en) 1996-11-01

Family

ID=13939508

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7088315A Pending JPH08287182A (en) 1995-04-13 1995-04-13 Bar code reader

Country Status (1)

Country Link
JP (1) JPH08287182A (en)

Similar Documents

Publication Publication Date Title
EP1198778B1 (en) Hands free optical scanner trigger
EP0067414B1 (en) Method and apparatus for reading a bar code
US6010070A (en) Code reading device and method with variable light signal storage time
US8403220B2 (en) Optical code detection with image exposure control
JP3629581B2 (en) Bar code reader
JPH08287181A (en) Bar code reader
US5773807A (en) Arrangement for and method of minimizing reading errors in bar code symbol readers
JP2000306036A (en) Device, method and system for optical reading
JPH08287182A (en) Bar code reader
JP2001092916A (en) Recognizing device for optical reflecting element and recognizing device for storage medium
JP2006201921A (en) Bar code reader
JP2789949B2 (en) Barcode reader
JP3104455B2 (en) Optical information reader
JP3760594B2 (en) Optical information reader
JP2741789B2 (en) Barcode reader
JP3526370B2 (en) Barcode reading method and barcode reader
JPH0637475Y2 (en) Stationary barcode reader
WO2001082214A1 (en) Multi-format bar code reader
JPH0637474Y2 (en) Stationary barcode reader
US6098884A (en) Circuit structure of bar code reader capable of reading bar code with decreased power consumption
JPH064849U (en) Barcode reader
JPH11120283A (en) Optical information reader
JPH11110470A (en) Optical reading device
JPS63165981A (en) Bar code reader
JPH01292484A (en) Optical information reader

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040420

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040831