Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3554867B2 - Barcode data processing device - Google Patents
[go: Go Back, main page]

JP3554867B2 - Barcode data processing device - Google Patents

Barcode data processing device Download PDF

Info

Publication number
JP3554867B2
JP3554867B2 JP35003393A JP35003393A JP3554867B2 JP 3554867 B2 JP3554867 B2 JP 3554867B2 JP 35003393 A JP35003393 A JP 35003393A JP 35003393 A JP35003393 A JP 35003393A JP 3554867 B2 JP3554867 B2 JP 3554867B2
Authority
JP
Japan
Prior art keywords
barcode
bar code
data
barcode data
processing device
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.)
Expired - Fee Related
Application number
JP35003393A
Other languages
Japanese (ja)
Other versions
JPH08101877A (en
Inventor
明仁 硲
哲治 福田
一朗 田淵
弘一 角淵
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 JP35003393A priority Critical patent/JP3554867B2/en
Publication of JPH08101877A publication Critical patent/JPH08101877A/en
Application granted granted Critical
Publication of JP3554867B2 publication Critical patent/JP3554867B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【産業上の利用分野】
本発明は、測定対象のバーコードから得たバーコードデータを処理するバーコードデータ処理装置に関する。
【0002】
【従来の技術】
バーコードは、バーコードシンボルと呼ばれる棒状の画像を並べて数字等の文字を表す符号であり、流通情報システムに利用するために開発されたものである。バーコードリーダは、バーコードシンボルの中心付近をレーザ光線で横断走査し、バーコードシンボルの幅を測定してコードを読み取る。このバーコードリーダは、通常、レーザ光を発射するレーザ光源及びポリゴンミラーを有する走査部と、測定対象のバーコードから反射したレーザ光を受光し電気信号に変換する受信部と、受信部で得られた電気信号を解読するデコーダとを備えている。
【0003】
前記バーコードリーダは、測定対象のバーコードから反射したレーザ光に基づくバーコードデータを、デコーダにおいて全て解読し、上位のホストコンピュータやプログラマブルコントローラ等に出力する。バーコードデータを受けた上位のホストコンピュータやプログラマブルコントローラでは、全バーコードデータから不必要なデータ部分を除く処理を行い、残りの必要なバーコードデータ部分を用いて後続の処理を行う。
【0004】
【発明が解決しようとする課題】
前記従来のバーコードリーダでは、獲得したバーコードデータを必要・不必要にかかわらず全て上位の装置へ出力するので、上位の装置側で不必要部分を除去し必要部分を残す処理が必要となり、上位の装置側のソフトの負担が大きい。また、不必要なバーコードデータ部分をも通信するので、通信処理における負担も大きい。
【0005】
本発明の目的は、バーコードデータの不要部分に要する処理の無駄を省くことにある。
【0006】
【課題を解決するための手段】
前記の目的を達成するため、請求項1記載の発明に係るバーコードデータ処理装置は、バーコードデータの有効桁の指定を受け付ける有効桁受付手段と、前記指定された有効桁を記憶する有効桁記憶手段と、入力されたバーコードデータを前記有効桁記憶手段に記憶された有効桁に基づいて処理する解析処理手段とを備え、入力されたバーコードデータを有効桁の指定に基づいて有効桁部分とそれ以外の部分とに振り分けて有効桁部分のみ解読処理を行うように構成している。
この構成により、指定された有効桁が記憶されて、その記憶された有効桁部分のみのバーコードデータの処理が可能となる。そして、有効桁以外の部分のバーコードデータの処理を不要とすることができる。
【0007】
請求項2記載の発明に係るバーコードデータ処理装置は、基準のバーコードデータを記憶する基準バーコードデータ記憶手段を備える。
基準バーコードデータ記憶手段には、入力されるバーコードデータと比較される基準となるバーコードデータが記憶される。
【0008】
請求項3記載の発明に係るバーコードデータ処理装置は、前記基準バーコードデータおよび前記有効桁を読み出す手段を備える。こうして、基準バーコードデータの有効桁部分が用意される。
【0009】
請求項4記載の発明に係るバーコードデータ処理装置は、入力されたバーコードデータの有効桁範囲に対応する部分と前記基準バーコードデータの有効桁範囲に対応する部分とを比較し、比較した結果を出力する比較処理手段を備える。
こうして、有効桁部分についてのみ、入力されたバーコードデータと基準バーコードデータとを比較して出力処理することが可能となる。そのため、後段のホストコンピュータ等の信号処理の負担が大幅に軽減される。
【0010】
請求項5記載の発明に係るバーコードデータ処理装置は、前記比較処理手段による比較結果を表示可能な表示手段を備える。
これにより、比較結果が表示可能となる。
【0011】
請求項6記載の発明に係るバーコードデータ処理装置は、前記有効桁を設定するための操作手順を表示可能な表示手段を備える。
これにより、表示にしたがって有効桁を設定する操作が可能になる。
【0012】
請求項7記載の発明に係るバーコードデータ処理装置は、前記入力されたバーコードデータの読み取り可否を判断する判断手段を備える。
これにより、バーコードデータの読み取り動作が可能かどうかの状況が把握できる。
【0013】
以上のように、請求項1ないし7記載の発明に係るバーコードデータ処理装置は、バーコードデータの有効桁部分のみのバーコードデータの処理が可能となる構成を備えており、バーコードデータの不要部分の処理を省略できる。
【0014】
【発明の実施の形態】
本発明に係るバーコードデータ処理装置の概略構成を図1(b)に示す。図1(b)において、バーコードデータ処理装置1は、バーコードデータの有効桁の指定を受け付ける有効桁受付手段7cと、前記有効桁を記憶する有効桁記憶部31aと、バーコードデータを処理する解析処理手段30Aとを備えている。前記解析処理手段30Aは、前記有効桁記憶部31aに記憶された有効桁に基づいて、バーコードデータを処理する。
【0015】
【作用】
本発明に係るバーコードデータ処理装置1では、有効桁受付手段7cがバーコードデータの有効桁の指定を受け付け、有効桁記憶部31aに記憶される。有効桁が記憶されている状態で、バーコードデータを得ると、解析処理手段30Aが、有効桁記憶部31aから有効桁を読み出し、この有効桁の指定に基づいてバーコードデータを処理する。この結果、バーコードデータを有効桁の指定に基づいて必要部分と不要部分とに振り分けることが可能となり、バーコードデータの不要部分に要する処理の無駄を省くことができるようになる。
【0016】
【実施例】
図1ないし図12は本発明の第1実施例を示す。図1(a)において、バーコードデータ処理装置1は、バーコードリーダ部20(図2)を備えており、測定対象物2に貼付されたバーコードラベル3のバーコードシンボル4に向けてレーザ光5を照射するようになっている。測定対象物2は、載置台(図示せず)に載置されていても良く、またベルトコンベア(図示せず)等により移動可能となっていても良い。
【0017】
バーコードデータ処理装置1の前面には、表示用のLCD6と、ティーチモード指定用のティーチキー7a及び出力コード入力用のコード入力キー7b等を含むスイッチ群(有効桁受付手段)7とが配置されている。また、バーコードデータ処理装置1の側面には、外部接続用の第1〜第3コネクタ11〜13が設けられている。第1コネクタ11には、ケーブル9を介してプログラマブルコントローラ10(信号出力対象の一例)が接続されている。また、第3コネクタ13には、ケーブル14を介してハンディバーコードリーダ15が接続されている。ハンディバーコードリーダ15は、操作者が手で握って、ケーブル14の許容範囲内において、その向き及び位置を自由に変更し得るものである。
【0018】
なお、プログラマブルコントローラ10に代えて、パーソナルコンピュータの入力端子や、作業者に報知するためのランプ群等の駆動ドライバ回路(いずれも図示せず)が必要に応じて接続され得る。図2に示すように、バーコードリーダ部20は、バーコード4に対してレーザ光5を照射するための半導体レーザダイオード21を有している。半導体レーザダイオード21はレーザ点灯回路22によって駆動され、半導体レーザダイオード21からのレーザ光5が、ポリゴンミラー23を有する走査部24を介してバーコードシンボル4を走査するようになっている。バーコードシンボル4で反射したレーザ光5は、フォトダイオード等の光電変換素子からなる受光素子25で受光される。受光素子25の出力信号は、信号成形等のアナログ処理を行う受光回路26に入力される。
【0019】
レーザ点灯回路22及び走査部24は、読取処理部27により駆動される。また、読取処理部27には、受光回路26からの検出信号(アナログ信号)が入力される。読取処理部27では、所定タイミングでレーザ点灯回路22及び走査部24を駆動するとともに、受光回路26からの入力信号をディジタル化する。ディジタル化されたバーコード信号(バーコードデータ)は、解析処理部(CPU)30に出力される。
【0020】
解析処理部30には、LCD6及びスイッチ群7からなる操作パネルと、メモリ31と、第1〜第3コネクタ11〜13を有する第1〜第3インターフェイス32〜34とが接続されている。メモリ31は、比較の基準となる基準バーコードや出力コードの基準テーブル領域と、有効桁記憶領域(有効桁記憶部)と、入力されたバーコードデータを一時的に記憶するバッファ領域とを含んでいる。前記スイッチ群(操作パネル)7は、バーコードデータのうちの必要な部分を指定する有効桁の指定を行うことができるようになっている。このスイッチ群(操作パネル)7から入力された有効桁は、メモリ31の有効桁記憶領域に記憶される。解析処理部30は、入力されたバーコードデータを、上記メモリ31に記憶された有効桁に基づいて処理する。本明細書におけるバーコードデータとは、バーコードの明暗を2値化(ディジタル化)した情報、英数字化(解読)した情報、あるいは、英数字化した情報から有効桁のみを抽出した情報などをいう。また、バーコードデータの処理とは、2値化情報を英数字化(解読)したり、有効桁を抽出したり、バーコードデータから出力コードを読み出す処理などをいう。
【0021】
解析処理部30は、解読処理手段30aおよび比較処理手段30bを備えている。解読処理手段30aは、読出処理部27からの2値化情報を取り込んで解読し、英数字化したバーコードデータに変換するものであり、後述する図5の測定処理および図6のプリセット処理においては、メモリ31に記憶された有効桁を読み出し、有効桁の部分についてのみ解読処理を行う。一方、図2の比較処理手段30bは、予めメモリ31に記憶された基準のバーコードデータ(英数字化情報)と、メモリ31に記憶された有効桁とを読み出し、英数字化情報のうちの有効桁の部分のみと、解読処理手段30aにより解読処理された有効桁の部分のみのバーコードデータ(英数字化情報)とを比較し、比較結果を出力する(図10のステップS73)。処理結果として、測定バーコードと基準バーコードとの比較結果等の信号が、第1インターフェイス32を介してプログラマブルコントローラ10等に出力される。また、第2インターフェイス33にも、測定バーコード情報が出力される。したがって、第2コネクタ12にパーソナルコンピュータ等の情報機器(図示せず)が接続されている場合には、その制御装置にバーコード情報が転送されることになる。
【0022】
第3インターフェース34には、第3コネクタ13を介してハンディバーコードリーダ15からのバーコードデータが入力される。ハンディバーコードリーダ15内には、バーコードリーダ部20と同様の構成が装備されている。なお、ハンディバーコードリーダ15に代えて、設定器15a、別のバーコードリーダ15bまたはパーソナルコンピュータ15cを接続することで、それらの機器からバーコードデータを解析処理部30に出力することもできる。
【0023】
次に、上述の実施例の動作を、測定モードとティーチモードとテストモードとに分け、解析処理部30の制御フローチャート(図3〜図10)を参照して説明する。
測定モード解析処理部30では、図3のステップS1においてタイミング信号TIMがONしているか否かを判断する。また、ステップS2では、スイッチ群7のティーチキー7aが操作者により押されることでティーチモード指令TCHがなされているか否かを判断する。ステップS3では、コード入力キー7bが操作されることで出力コードの入力が指令されたか否かを判断する。
【0024】
続いて図4のステップS4では、スイッチ群7を操作することで、読み取ったバーコードの有効桁部分を設定するための桁設定指令がなされたか否かを判断する。ステップS5では、スイッチ群7を操作することで、測定対象を移動させながら読取テストを行う移動テストの実行が指令されたか否かを判断する。また、ステップS6では、測定対象を静止させた状態で読取テストを行う静止テストの指令がなされたか否かを判断する。ステップS7では、その他の処理を実行し、その処理が終了すれば図3のステップS1に戻る。
【0025】
ステップS1において、タイミング信号TIMがONすると、プログラムはステップS8に移行する。ステップS8では、ティーチモード指令TCHがなされているか否かを判断する。測定モードにおいては、ティーチモード指令がなされていないので、ステップS9に移行して図5に示す測定処理を行う。図5の測定処理において、ステップS21では、測定対象物2のバーコードシンボル4の読み取りを行う。ここでは、図2の半導体レーザダイオード21が発光し、ポリゴンミラー23が回転することで、バーコードシンボル4に対するレーザ光5による走査が行われる。受光素子25に入射したバーコードシンボル4からの反射光にしたがって、受光素子25は出力信号を受光回路26に出力する。受光回路26では、入力信号を成形増幅し、読取処理部27に出力する。読取処理部27では、入力信号をディジタル化し、解析処理部30に出力する。
【0026】
図5の前記ステップS21の読取が完了すると、ステップS22に進む。ステップS22では、読取データ(バーコードデータ)に基づいてバーコードデータの解読を行う。ここでは、後述する桁設定動作(図4のステップS4及びステップS18)で設定された有効桁の部分に関してバーコードデータの解読を行う。すなわち、ここでは、2値化されたバーコードデータを予め設定された有効桁の部分についてのみ英数字の情報に変換する解読処理を行うので、解読処理が迅速化かつ簡略化される。なお、解読は、図2の解読処理手段30aが行う。
【0027】
図5のステップS22での解読処理が終われば、ステップS23においてバーコードシンボル4の読み取りが可能であったか否かを判断する。読み取り可能であった場合にはステップS24に移行する。ステップS24では、解読データを一旦メモリ31のバッファに出力する。このとき、読み取り可能であったことを示すため、先頭アドレスを「1」にセットする。ステップS24での処理が終われば図3及び図4のメインルーチンに戻る。
【0028】
図5のステップS23において解読不能であったと判断した場合にはステップS25に移行する。ステップS25では、タイミング信号TIMが依然としてONしているか否かを判断する。タイミング信号TIMがONしている間は、ステップS21に戻り、バーコードシンボル4の読取動作を繰り返す。バーコードシンボル4の解読が不能状態のまま、タイミング信号TIMがOFFすれば、ステップS25からステップS26に移行する。ステップS26では、解読不能であったことを示すエラーデータをメモリ31のバッファに出力する。ここでは、解読不能のまま読取動作を終えるので、先頭アドレスには「0」を書き込む。ステップS26での処理が終われば図3及び図4のメインルーチンに戻る。
【0029】
一方、図2の第3コネクタ13に外部からのデータ入力があったか否かを図9のステップS61で判断する。外部からの入力があれば、ステップS61からステップS62に移行する。ステップS62では、ティーチモードであるか否かを判断する。ここでは、ティーチモードではないので、ステップS63に移行する。ステップS63では、入力されたデータを、メモリ31のバッファに出力する。ここでは、データの読み取りが可能であったことを示す先頭番地を「1」にセットする。すなわち、ステップS63でのバッファへの出力処理は、図5のステップS24での出力処理と同一であり、両者のバッファ内での記憶状態に本質的な相違はない。
【0030】
さらに、出力処理を示す図10において、ステップS71では、メモリ31のバッファにバーコードデータが書き込まれたか否かを判断する。バッファにバーコードデータが書き込まれれば、ステップS72に移行する。ステップS72では、読取データが、解読可能なデータであったか否かを判断する。この判断は、バッファの先頭番地が「1」であるか否かに基づく。解読可能な読取データであった場合には、ステップS73に移行する。ステップS73では、予め設定された有効桁の部分(図4のステップS4及びステップS18)に関して、メモリ31のプリセット領域に記憶された基準バーコード(プリセット値)と、バッファ内の読取データとを比較する。この比較は、図2の比較処理手段30bが行う。ここでは、予め設定された有効桁の部分についてのみ比較動作を行うので、比較処理量が少なく、処理完了までに要する時間を短くできる。
【0031】
次に、図10のステップS75において、読み取りが可能であったことを意味するOK出力を第1インターフェイス32を介して出力する。またLCD6にもOK表示を行う。ステップS76では、有効桁の部分に関して読取データが基準バーコードと一致したか否かを判断する。一致した場合には、ステップS77で、どの基準バーコードと一致したかを示す比較結果(具体的には1〜31の数値)を、後述する基準テーブル(図11及び図12)を基準にして、第1インターフェイス32を介して出力する。また、LCD6にも比較結果を表示する。
【0032】
一方、ステップS76において読取データが基準テーブル内のどの基準バーコードにも一致しなかったと判断した場合には、ステップS78に移行する。ステップS78では、図12のプリセットテーブルのうちプリセットアドレスApが「0」のときの出力コードCo(図12の例では「0」)を出力する。図10のステップS72において、メモリ31のバッファの先頭番地が「0」であった場合には、ステップS74に移行する。ステップS74ではNG出力を第1インターフェイス32及びLCD6に出力する。
【0033】
ステップS77,ステップS78またはステップS74での処理が終われば、ステップS79に移行する。ステップS79では、読み取ったバーコード自体を第1インターフェイス32を介して出力する。また、LCD6にも出力コードCoとともに表示する。
ティーチモードティーチキー7aが押されると、ティーチモードに入る。ここでは、タイミング信号TIMがONすれば、図3のステップS1からステップS8を介してステップS10に移行し、図6に示すプリセット処理を行う。
【0034】
図6において、ステップS27〜ステップS29での処理はステップS21〜ステップS23(図5)と同一である。また、ステップS31での処理はステップS25(図5)と同一である。ステップS30では、読取データがメモリ31の基準テーブル領域に記憶される。ここでは、図11に示すように、記憶アドレスはプリセットアドレスApの値(1〜31)である。ティーチモードに入った当初は、プリセットアドレスApが「1」であるので、アドレス「1」に読取データが記憶される。一方、ステップS32では、読取エラーが発生したものと考えられるので、当該プリセットアドレスApのデータをクリアする。ステップS30またはステップS32での処理が終われば、図3のステップS11に移行する。ステップS11では、プリセットアドレスApをインクリメントする。なお、プリセットアドレスApが「31」の場合には「1」にセットする。
【0035】
ティーチキー7aの押下が解除されれば、図3のステップS2からステップS12に移行して、プリセットアドレスApが「1」にリセットされる。一方、ティーチキー7aの押下を続ければ、31個の基準バーコード(プリセット値)をメモリ31に記憶できる。図9のステップS61において第3コネクタ13を介して外部からポート入力があったと判断された場合に、ティーチモードのときには、ステップS62からステップS64に移行する。ステップS64では、入力データをメモリ31の基準テーブル領域のプリセットアドレスApに記憶する。このステップS64での処理においては、ステップS32(図6)での処理と、メモリ31への記憶に関しては区別されない。すなわち、第3コネクタ13を介した外部からの入力データをバーコードデータ処理装置1自体による測定データと同一に扱いつつ、基準バーコードを記憶できる。
【0036】
図10のステップS77及びステップS78において出力される出力コードCoを変更する場合には、スイッチ群7を操作して出力コード変更モードに設定する。この結果、プログラムは図3のステップS3からステップS13に移行する。ステップS13では、リセット指令がなされたか否かを判断する。また、ステップS15では、出力コード変更モードの終了が指令されたか否かを判断する。さらに、ステップS16では、「1」〜「31」のプリセットアドレスApが入力されたか否かを判断する。
【0037】
プリセットアドレスApが入力されれば、ステップS16からステップS17に移行する。ステップS17では、当該プリセットアドレスApに関連付ける出力コードCoを受け付ける。ここで入力可能な出力コードCoは「0」〜「31」の範囲である。出力コードCoが受け付けられれば、メモリ31の基準テーブルに、その内容が書き込まれる。この場合の基準テーブルの例を図12に示す。図12の例(A)では、読取データがプリセット値以外のものであった場合の出力コードが「0」であり、プリセットアドレスApが「1」、「2」及び「3」の場合には出力コードが「1」であり…というように、プリセットアドレスApが6種類のグループに分けられている。一方、図12の例(B)では、読取データがプリセット値以外のものであった場合の出力コードCoが「0」であり、読取データがいずれかのプリセット値に一致した場合の出力コードCoが「5」となるように設定されている。
【0038】
図12の例(A)または例(B)に示すように、設定された基準テーブルに基づいて、図10のステップS77またはステップS78では出力コードCoが出力されるので、読取データに基づく出力コードCoの変更が自在に行え、出力コードCoの自由度が高い。したがって、グループ単位の仕分け制御や、読取データのプリセット値に対する一致/不一致出力を自在に行うことができるようになり、図2の第1インターフェイス32に接続される外部機器(プログラマブルコントローラ10等)におけるプログラムの簡素化が図れるようになる。また、プログラマブルコントローラ10を接続せずに直接ランプ等を接続することで、ランプの点灯制御を行うことも可能となる。
【0039】
一方、図3のステップS13においてリセット指令がなされれば、ステップS14に移行する。ステップS14では、図12に示す基準テーブルの設定をデフォルト値に戻す。ここでは、出力コードCoがプリセットアドレスApと同一(すなわち「0」〜「31」)となる。また、ステップS15において、終了指令がなされればメインルーチンに戻る。
【0040】
ステップS22(図5)、ステップS28(図6)及びステップS73(図10)において用いられる設定桁の設定指令がスイッチ群7を操作することで実行されれば、プログラムは図4のステップS4からステップS18に移行する。ステップS18では、LCD6に「桁設定をして下さい。何桁から?」と表示を行い、操作者に桁入力を促しつつ所望の桁数の入力を受け付ける。操作者が桁数を入力すれば、次にLCD6に「桁数を入力して下さい。何桁まで?」と表示を行い、所望桁数の入力を待つ。比較対象となる桁範囲の入力を操作者から受ければ、設定された桁をメモリ31に記憶した後、メインルーチンに戻る。
【0041】
ここで設定された有効桁が図5のステップS22等において利用されるので、バーコードデータの不要部分に要する処理の無駄を省くことができる。たとえば、JANコードでは、国コード、メーカーコード、商品コード及びチェックディジットからバーコードが構成されるが、そのうち商品コードのみを処理対象としたい場合が多い。その場合には、商品コードに相当するバーコードの桁範囲(有効桁の範囲)を図4のステップS18で設定することにより、商品コードに関するバーコードのみを用いた効率の良いバーコードデータの解読処理が実行できる。
テストモード図4のステップS5において、スイッチ群7を操作することで移動テストモードが指令されると、ステップS19に移行し、図7の移動テスト処理を実行する。
【0042】
ステップS41では、変数iを「0」にセットする。また、ステップS42では、タイマーTをリセットする。ステップS43では、ステップS21(図5)と同様に対象読み取り動作を行う。ステップS44では、ステップS22と同様に解読処理を行うが、ここでは読み取ったバーコードの全てのシンボル(有効桁以外の部分も含む)について解読が可能であるか否かを判断する。
【0043】
ステップS45では、ステップS44における解読処理に基づき、全てのバーコードシンボルについて解読が可能であったか否かを判断する。解読が可能であった場合には、ステップS49に移行して、変数iをインクリメントする。また、ステップS49Aにおいて、タイマーTをリセットする。ステップS45においてバーコードが読めなかったと判断した場合、またはステップS49Aでの処理が終了した場合には、ステップS46に移行する。ステップS46では、タイマーTが0.3秒以上になったか否かを判断する。ここで0.3秒は、1秒間に300回の読み取り動作が可能であるとした場合に、1つの測定対象におけるバーコードと次の測定対象におけるバーコードとの区切りを判断するのに適切な時間である。タイマーTが0.3秒に達していない間は、1つのバーコードからバーコードデータを読み取っていると判断できるので、ステップS46からステップS43に戻り、ステップS43以下のバーコード読取,解読動作を繰り返す。
【0044】
ステップS46において、タイマーTが0.3秒を超え、1つのバーコードの読み取りが終了したと判断されれば、ステップS47に移行する。ステップS47では、1つのバーコードに対する可読回数を示す変数iと読み取れたバーコードとを、LCD6に表示するとともに、第2インターフェース33に出力する。ステップS48では、操作者により移動テストの終了が指令されたか否かを判断する。終了の指令がなされるまではステップS41に戻り、ステップS41以下の測定動作を繰り返す。終了が指令されればステップS48から図3及び図4のメインルーチンに戻る。
【0045】
上述の移動テストにおいては、測定対象物2を移動させながらバーコードシンボル4の読み取りを行うことで、移動状態における読取回数をカウントできる。したがって、実際の測定動作により近い読取テストを行えるようになり、読取テストの精度が向上する。なお、第1インターフェース32を介して出力されたカウント値(変数i)及びバーコードは、外部機器により統計処理が施され、たとえば読取回数の平均値の計算やヒストグラムの作成がなされる。
【0046】
これにより、測定対象物2を移動させた状態での読み取りの安定性が認識できるようになるので、バーコードラベル3の印刷及び貼付位置の見直し、搬送ガタ及び搬送スピードの見直し等の修正の必要性の判断が可能となる。また、カウント値(変数i)及びバーコードがLCD6に表示されるだけでなく、第2インターフェース33を介して外部に出力されるので、適切な外部機器を接続することで、高速の繰り返し読取テストに対応できるようになる。
【0047】
図4のステップS6において、スイッチ群7を操作することで静止テストモードが指定されている場合には、ステップS20に移行し、図8の静止テスト処理を実行する。図8のステップS50では、変数i及び変数jを「0」にセットする。ステップS51〜ステップS53での処理は、図7のステップS43〜ステップS45での処理と同一である。
【0048】
図8のステップS54では、バーコードの読み取り可能回数をカウントするべく変数iをインクリメントし、ステップS55に移行する。一方、ステップS53での判断がNoの場合には、ステップS54での処理を行わずにステップS55に移行する。ステップS55では、全体の読取回数をカウントするべく変数jをインクリメントする。そして、ステップS56において変数jが「100」になったか否かを判断する。変数jが「100」になる前までは、ステップS51に戻り、ステップS51以下の読取処理を繰り返す。ステップS56において変数jが「100」になれば、ステップS57に移行する。
【0049】
ステップS57では、読取回数を示す変数iと読み取ったバーコードとをLCD6に表示するとともに、第2インターフェース33に出力する。ここでの処理は実質的にステップS47(図7)と同一である。ステップS57での処理が終われば図3及び図4に示すメインルーチンに戻る。ここでは、測定対象物2の実際の測定条件により近い状態となるようにテスト条件(移動テストと静止テスト)を切り換えることができる。したがって、この実施例では、実際の測定動作により近い読取テストを行えるようになり、読取テストの精度が向上する。
【0050】
上記第1実施例では、図2のバーコードデータ処理装置1が、バーコードリーダ部20を一体に備えていたが、本発明では、バーコードデータ処理装置1がバーコードリーダ部20を備えている必要はない。この一例を図13および図14の第2実施例を用いて説明する。
【0051】
図13において、本実施例では、表示部6は、プリセット値を表示する第1表示部6aと、出力コードやバーコードを表示する第2表示部6bとからなる。第3コネクタ13には、ハンディバーコードリーダ15や、設定器15a、定置型バーコードリーダ15b、上位のパーソナルコンピュータ15c、表示器15d、シリアルプリンタ15e、PLC10または別のバーコードデータ処理装置1Aが接続される。
【0052】
図14において、第2コネクタ12を有する第2インターフェイス33には、定置型バーコードリーダ15bまたはハンディバーコードリーダ15が接続されている。上記両バーコードリーダ15,15bは、図2のバーコードリーダ部20に相当する機能に加え、解読処理手段30a(図2)に相当するデコーダを有しており、全ての桁を英数字化したバーコードデータを第2インターフェイス33を介して解析処理部30に出力する。解析処理部30は、前述の第1実施例と同様の構成であり、比較処理手段30bの他に、制御処理手段30c、I/F第1処理手段30dおよびI/F第2処理手段30eを有しているが、解読処理手段30a(図2)を備えていない。
【0053】
制御処理手段30cは、表示部6の表示処理の制御を行う。I/F第1処理手段30dは、RS232Cで構成される第2インターフェイス33から入力されたバーコードデータを取り込んで、このデータを解読処理手段30aに出力するものである。I/F第2処理手段30eは、RS232Cで構成される第3インターフェイス34から入力されたバーコードデータを取り込んで、このデータを解読処理手段30aに出力したり、上位のパーソナルコンピュータ15cが接続されている場合は、バーコードデータを第3インターフェイス34を介してパーソナルコンピュータ15cに出力するものである。また、前記I/F第2処理手段30eは、第1インターフェイス32を介して、ON・OFFのスイッチング動作(接点制御)によりプログラマブルコントローラ10との信号の授受を行う。
本実施例に係るバーコードデータ処理装置では、バーコードデータの有効桁の指定を受け付け、受け付けた有効桁に基づいてバーコードデータを処理するので、バーコードデータの不要部分に要する処理の無駄を省くことが可能となる。
【0054】
【発明の効果】
本発明に係るバーコードデータ処理装置によれば、バーコードデータについての指定された有効桁が記憶され、その記憶された有効桁部分のみのバーコードデータの処理が可能となるので、有効桁以外の部分のバーコードデータの処理を不要とすることができ、バーコードデータの不要部分に要する処理の無駄を省くことが可能となる。
【図面の簡単な説明】
【図1】(a)は本発明の第1実施例にかかるバーコードデータ処理システムの使用状態を示す斜視概略図、(b)は本発明のバーコードデータ処理装置の概略ブロック図。
【図2】同バーコードデータ処理装置の内部構成を示す概略ブロック図。
【図3】解析処理部の制御機能を示すフローチャート。
【図4】解析処理部の制御機能を示すフローチャート。
【図5】解析処理部の制御機能を示すフローチャート。
【図6】解析処理部の制御機能を示すフローチャート。
【図7】解析処理部の制御機能を示すフローチャート。
【図8】解析処理部の制御機能を示すフローチャート。
【図9】解析処理部の制御機能を示すフローチャート。
【図10】解析処理部の制御機能を示すフローチャート。
【図11】プリセットアドレスと基準バーコードとの対応関係を示す基準テーブルの概略図。
【図12】プリセットアドレスと出力コードとの対応関係を示す基準テーブルの概念図。
【図13】第2実施例にかかるバーコードデータ処理装置の斜視概略図。
【図14】第2実施例を示すバーコードデータ処理装置の概略ブロック図。
【符号の説明】
1:バーコードデータ処理装置
7:スイッチ群
7c:有効桁受付手段
30(30A):解析処理部(解析処理手段)
30a:解読処理手段(解析処理手段)
30b:比較処理手段(解析処理手段)
31(31a):メモリ(有効桁記憶部)
[0001]
[Industrial applications]
The present invention relates to a barcode data processing device that processes barcode data obtained from a barcode to be measured.
[0002]
[Prior art]
The barcode is a code representing characters such as numbers by arranging bar-shaped images called barcode symbols, and has been developed for use in a distribution information system. The bar code reader scans the vicinity of the center of the bar code symbol with a laser beam and reads the code by measuring the width of the bar code symbol. This bar code reader is generally obtained by a scanning unit having a laser light source that emits laser light and a polygon mirror, a receiving unit that receives laser light reflected from a bar code to be measured and converts it into an electric signal, and a receiving unit. And a decoder for decoding the obtained electric signal.
[0003]
The bar code reader decodes all the bar code data based on the laser beam reflected from the bar code to be measured by a decoder, and outputs the decoded data to a host computer, a programmable controller, or the like. The host computer or the programmable controller receiving the barcode data performs a process for removing unnecessary data portions from all barcode data, and performs a subsequent process using the remaining necessary barcode data portions.
[0004]
[Problems to be solved by the invention]
In the conventional barcode reader, all acquired barcode data is output to a higher-order device regardless of whether it is necessary or unnecessary.Therefore, processing for removing unnecessary portions and leaving necessary portions on the higher-order device side is required, The load on the software of the host device is large. In addition, since unnecessary barcode data portions are also communicated, the burden on communication processing is large.
[0005]
SUMMARY OF THE INVENTION An object of the present invention is to eliminate waste of processing required for unnecessary portions of barcode data.
[0006]
[Means for Solving the Problems]
In order to achieve the above object, a bar code data processing device according to the first aspect of the present invention includes a significant digit receiving unit for receiving designation of a significant digit of bar code data, and a significant digit for storing the designated significant digit. Storage means, and analysis processing means for processing the input barcode data based on the significant digits stored in the significant digit storage means, and converting the input barcode data into significant digits based on designation of significant digits. It is configured such that the decoding process is performed only on the significant digit portion by dividing the portion into a portion and the other portion.
With this configuration, the designated effective digits are stored, and the bar code data of only the stored effective digits can be processed. Then, it is not necessary to process the bar code data in a portion other than the effective digits.
[0007]
According to a second aspect of the present invention, there is provided a barcode data processing device including a reference barcode data storage unit for storing reference barcode data.
The reference barcode data storage means stores barcode data as a reference to be compared with the input barcode data.
[0008]
According to a third aspect of the present invention, there is provided a barcode data processing device, comprising: means for reading the reference barcode data and the effective digits. Thus, an effective digit portion of the reference barcode data is prepared.
[0009]
The bar code data processing device according to the fourth aspect of the present invention compares and compares the portion corresponding to the significant digit range of the input bar code data with the portion corresponding to the significant digit range of the reference bar code data. A comparison processing means for outputting a result is provided.
In this way, it is possible to compare the input barcode data with the reference barcode data and output the data only for the significant digits. Therefore, the load of signal processing on the host computer and the like at the subsequent stage is greatly reduced.
[0010]
A bar code data processing device according to a fifth aspect of the present invention includes a display unit capable of displaying a comparison result by the comparison processing unit.
Thereby, the comparison result can be displayed.
[0011]
A bar code data processing device according to a sixth aspect of the present invention includes a display unit capable of displaying an operation procedure for setting the effective digit.
Thereby, the operation of setting the significant digit according to the display becomes possible.
[0012]
The bar code data processing device according to the invention of claim 7 includes a determination unit that determines whether or not the input bar code data can be read.
This makes it possible to grasp the status of whether or not the barcode data reading operation is possible.
[0013]
As described above, the bar code data processing device according to the first to seventh aspects of the present invention has a configuration that enables processing of bar code data only in the effective digit portion of bar code data. Unnecessary processing can be omitted.
[0014]
BEST MODE FOR CARRYING OUT THE INVENTION
FIG. 1B shows a schematic configuration of a barcode data processing device according to the present invention. In FIG. 1 (b), a bar code data processing device 1 includes a significant digit receiving unit 7c for receiving designation of a significant digit of bar code data, a significant digit storage unit 31a for storing the significant digits, and a process for bar code data. And analysis processing means 30A for performing the processing. The analysis processing means 30A processes the bar code data based on the significant digits stored in the significant digit storage unit 31a.
[0015]
[Action]
In the barcode data processing device 1 according to the present invention, the significant digit receiving unit 7c receives designation of a significant digit of the barcode data and stores the designation in the significant digit storage unit 31a. When bar code data is obtained in a state where the significant digits are stored, the analysis processing means 30A reads the significant digits from the significant digit storage unit 31a and processes the bar code data based on the designation of the significant digits. As a result, it is possible to sort the barcode data into a necessary part and an unnecessary part based on the designation of the effective digits, and it is possible to eliminate waste of processing required for the unnecessary part of the barcode data.
[0016]
【Example】
1 to 12 show a first embodiment of the present invention. In FIG. 1A, a barcode data processing device 1 includes a barcode reader unit 20 (FIG. 2), and a laser beam is directed toward a barcode symbol 4 of a barcode label 3 attached to an object 2 to be measured. Light 5 is irradiated. The measurement object 2 may be mounted on a mounting table (not shown), or may be movable by a belt conveyor (not shown) or the like.
[0017]
On the front surface of the barcode data processing device 1, an LCD 6 for display and a switch group (effective digit receiving means) 7 including a teach key 7a for designating a teach mode and a code input key 7b for inputting an output code are arranged. Have been. Further, on the side surface of the barcode data processing device 1, first to third connectors 11 to 13 for external connection are provided. A programmable controller 10 (an example of a signal output target) is connected to the first connector 11 via a cable 9. In addition, a handy barcode reader 15 is connected to the third connector 13 via a cable 14. The handy bar code reader 15 can be freely changed in its orientation and position within an allowable range of the cable 14 by an operator holding the hand.
[0018]
Note that, instead of the programmable controller 10, an input terminal of a personal computer or a drive driver circuit (neither is shown) such as a lamp group for notifying an operator may be connected as necessary. As shown in FIG. 2, the barcode reader section 20 has a semiconductor laser diode 21 for irradiating the barcode 4 with the laser beam 5. The semiconductor laser diode 21 is driven by a laser lighting circuit 22, and the laser light 5 from the semiconductor laser diode 21 scans the barcode symbol 4 via a scanning unit 24 having a polygon mirror 23. The laser beam 5 reflected by the barcode symbol 4 is received by a light receiving element 25 including a photoelectric conversion element such as a photodiode. The output signal of the light receiving element 25 is input to a light receiving circuit 26 that performs analog processing such as signal shaping.
[0019]
The laser lighting circuit 22 and the scanning unit 24 are driven by the reading processing unit 27. Further, a detection signal (analog signal) from the light receiving circuit 26 is input to the reading processing unit 27. The reading processing unit 27 drives the laser lighting circuit 22 and the scanning unit 24 at a predetermined timing, and digitizes an input signal from the light receiving circuit 26. The digitized barcode signal (barcode data) is output to the analysis processing unit (CPU) 30.
[0020]
The analysis processing unit 30 is connected to an operation panel including the LCD 6 and the switch group 7, a memory 31, and first to third interfaces 32 to 34 having first to third connectors 11 to 13. The memory 31 includes a reference table area for a reference barcode or an output code serving as a reference for comparison, an effective digit storage area (effective digit storage unit), and a buffer area for temporarily storing input barcode data. In. The switch group (operation panel) 7 is capable of designating an effective digit for designating a necessary portion of the barcode data. The significant digits input from the switch group (operation panel) 7 are stored in a significant digit storage area of the memory 31. The analysis processing unit 30 processes the input barcode data based on the significant digits stored in the memory 31. The barcode data in the present specification refers to information obtained by binarizing (digitizing) the brightness of a barcode, information obtained by alphanumeric (decoding), information obtained by extracting only significant digits from the alphanumeric information, and the like. . Further, the processing of the barcode data refers to a process of converting the binary information into alphanumeric characters (decoding), extracting significant digits, reading an output code from the barcode data, and the like.
[0021]
The analysis processing unit 30 includes a decryption processing unit 30a and a comparison processing unit 30b. The decoding processing means 30a takes in the binary information from the reading processing section 27, decodes the converted information, and converts it into alphanumeric bar code data. In the measurement processing shown in FIG. 5 and the preset processing shown in FIG. The effective digit stored in the memory 31 is read out, and the decoding process is performed only on the effective digit portion. On the other hand, the comparison processing means 30b of FIG. 2 reads out the reference bar code data (alphanumeric information) stored in the memory 31 in advance and the significant digits stored in the memory 31, and reads the significant digits of the alphanumeric information. Is compared with the bar code data (alphanumeric information) of only the significant digits decoded by the decoding processing means 30a, and the comparison result is output (step S73 in FIG. 10). As a processing result, a signal such as a comparison result between the measurement barcode and the reference barcode is output to the programmable controller 10 or the like via the first interface 32. The measurement barcode information is also output to the second interface 33. Therefore, when an information device (not shown) such as a personal computer is connected to the second connector 12, the barcode information is transferred to the control device.
[0022]
Bar code data from the handy bar code reader 15 is input to the third interface 34 via the third connector 13. The handy barcode reader 15 has the same configuration as the barcode reader unit 20. By connecting a setting device 15a, another barcode reader 15b, or a personal computer 15c instead of the handy barcode reader 15, the barcode data can be output to the analysis processing unit 30 from those devices.
[0023]
Next, the operation of the above-described embodiment is divided into a measurement mode, a teach mode, and a test mode, and will be described with reference to control flowcharts of the analysis processing unit 30 (FIGS. 3 to 10).
The measurement mode analysis processing section 30 determines whether or not the timing signal TIM is ON in step S1 of FIG. In step S2, it is determined whether or not the teach mode command TCH has been issued by pressing the teach key 7a of the switch group 7 by the operator. In step S3, it is determined whether an input of an output code has been instructed by operating the code input key 7b.
[0024]
Subsequently, in step S4 of FIG. 4, by operating the switch group 7, it is determined whether or not a digit setting command for setting the effective digit portion of the read barcode has been issued. In step S5, by operating the switch group 7, it is determined whether or not execution of a movement test for performing a reading test while moving the measurement target has been instructed. In step S6, it is determined whether or not an instruction for a static test for performing a reading test while the measurement target is stationary has been issued. In step S7, other processing is executed, and when the processing ends, the flow returns to step S1 in FIG.
[0025]
When the timing signal TIM is turned on in step S1, the program proceeds to step S8. In step S8, it is determined whether or not the teach mode command TCH has been issued. In the measurement mode, since the teach mode command has not been issued, the process proceeds to step S9 to perform the measurement process shown in FIG. In the measurement processing of FIG. 5, in step S21, the barcode symbol 4 of the measurement object 2 is read. Here, the semiconductor laser diode 21 shown in FIG. 2 emits light and the polygon mirror 23 rotates, whereby the bar code symbol 4 is scanned with the laser light 5. The light receiving element 25 outputs an output signal to the light receiving circuit 26 according to the reflected light from the bar code symbol 4 that has entered the light receiving element 25. The light receiving circuit 26 forms and amplifies the input signal and outputs the amplified signal to the reading processing unit 27. The read processing unit 27 digitizes the input signal and outputs the digitized signal to the analysis processing unit 30.
[0026]
When the reading in step S21 in FIG. 5 is completed, the process proceeds to step S22. In step S22, barcode data is decoded based on the read data (barcode data). Here, the barcode data is decoded for the effective digits set in the digit setting operation (steps S4 and S18 in FIG. 4) described later. That is, in this case, since the decoding process for converting the binarized barcode data into the alphanumeric information only for the portion of the preset effective digit is performed, the decoding process is speeded up and simplified. The decryption is performed by the decryption processing means 30a in FIG.
[0027]
When the decoding process in step S22 in FIG. 5 is completed, it is determined in step S23 whether or not the barcode symbol 4 can be read. If readable, the process proceeds to step S24. In step S24, the decrypted data is temporarily output to the buffer of the memory 31. At this time, the start address is set to "1" to indicate that the reading was possible. Upon completion of the process in the step S24, the process returns to the main routine of FIGS.
[0028]
If it is determined in step S23 in FIG. 5 that the decryption has failed, the process proceeds to step S25. In step S25, it is determined whether or not the timing signal TIM is still ON. While the timing signal TIM is ON, the process returns to step S21, and the reading operation of the barcode symbol 4 is repeated. If the timing signal TIM is turned off while the barcode symbol 4 cannot be decoded, the process proceeds from step S25 to step S26. In step S26, error data indicating that decoding was impossible is output to the buffer of the memory 31. Here, since the reading operation is finished without being able to decode, “0” is written in the head address. Upon completion of the process in the step S26, the process returns to the main routine of FIGS.
[0029]
On the other hand, it is determined in step S61 in FIG. 9 whether or not data has been externally input to the third connector 13 in FIG. If there is an external input, the process proceeds from step S61 to step S62. In step S62, it is determined whether or not the teaching mode is set. Here, since it is not the teach mode, the process proceeds to step S63. In step S63, the input data is output to the buffer of the memory 31. Here, the start address indicating that the data can be read is set to “1”. That is, the output processing to the buffer in step S63 is the same as the output processing in step S24 in FIG. 5, and there is no essential difference in the storage state between the two buffers.
[0030]
Further, in FIG. 10 showing the output process, in a step S71, it is determined whether or not the barcode data is written in the buffer of the memory 31. If the barcode data has been written to the buffer, the process proceeds to step S72. In step S72, it is determined whether or not the read data is readable data. This determination is based on whether or not the head address of the buffer is “1”. If the read data is readable, the process proceeds to step S73. In step S73, the reference bar code (preset value) stored in the preset area of the memory 31 and the read data in the buffer are compared with respect to the preset effective digit portion (steps S4 and S18 in FIG. 4). I do. This comparison is performed by the comparison processing means 30b of FIG. Here, since the comparison operation is performed only for the portion of the significant digits set in advance, the amount of comparison processing is small, and the time required to complete the processing can be shortened.
[0031]
Next, in step S75 of FIG. 10, an OK output indicating that reading is possible is output via the first interface 32. An OK display is also performed on the LCD 6. In step S76, it is determined whether or not the read data matches the reference bar code for the significant digit portion. If they match, in step S77, a comparison result (specifically, a numerical value of 1 to 31) indicating which reference barcode matched, based on a later-described reference table (FIGS. 11 and 12). , Via the first interface 32. The comparison result is also displayed on the LCD 6.
[0032]
On the other hand, if it is determined in step S76 that the read data does not match any reference barcode in the reference table, the process proceeds to step S78. In step S78, the output code Co (“0” in the example of FIG. 12) when the preset address Ap in the preset table of FIG. 12 is “0” is output. If the start address of the buffer in the memory 31 is “0” in step S72 of FIG. 10, the process proceeds to step S74. In step S74, an NG output is output to the first interface 32 and the LCD 6.
[0033]
Upon completion of the process in the step S77, the step S78, or the step S74, the process shifts to a step S79. In step S79, the read barcode itself is output via the first interface 32. The output code Co is also displayed on the LCD 6 together with the output code Co.
When the teach mode teach key 7a is pressed, the teaching mode is entered. Here, if the timing signal TIM is turned on, the process proceeds from step S1 in FIG. 3 to step S10 via step S8, and performs the preset processing shown in FIG.
[0034]
6, the processes in steps S27 to S29 are the same as those in steps S21 to S23 (FIG. 5). Further, the processing in step S31 is the same as step S25 (FIG. 5). In step S30, the read data is stored in the reference table area of the memory 31. Here, as shown in FIG. 11, the storage address is the value (1 to 31) of the preset address Ap. Since the preset address Ap is “1” when the teaching mode is entered, the read data is stored at the address “1”. On the other hand, in step S32, since it is considered that a reading error has occurred, the data of the preset address Ap is cleared. Upon completion of the process in the step S30 or the step S32, the process shifts to a step S11 in FIG. In step S11, the preset address Ap is incremented. If the preset address Ap is "31", it is set to "1".
[0035]
If the depression of the teach key 7a is released, the process moves from step S2 of FIG. 3 to step S12, and the preset address Ap is reset to “1”. On the other hand, if the teach key 7a is kept pressed, 31 reference bar codes (preset values) can be stored in the memory 31. When it is determined in step S61 of FIG. 9 that a port input has been received from the outside via the third connector 13, in the teach mode, the process proceeds from step S62 to step S64. In step S64, the input data is stored at the preset address Ap in the reference table area of the memory 31. In the processing in step S64, no distinction is made between the processing in step S32 (FIG. 6) and the storage in the memory 31. That is, the reference barcode can be stored while the input data from the outside via the third connector 13 is treated the same as the measurement data by the barcode data processing device 1 itself.
[0036]
To change the output code Co output in steps S77 and S78 in FIG. 10, the switch group 7 is operated to set the output code change mode. As a result, the program shifts from step S3 of FIG. 3 to step S13. In step S13, it is determined whether a reset command has been issued. In step S15, it is determined whether the end of the output code change mode has been instructed. Further, in step S16, it is determined whether preset addresses Ap of "1" to "31" have been input.
[0037]
If the preset address Ap is input, the process moves from step S16 to step S17. In step S17, an output code Co associated with the preset address Ap is received. Here, the output code Co that can be input is in the range of “0” to “31”. When the output code Co is accepted, its contents are written in the reference table of the memory 31. FIG. 12 shows an example of the reference table in this case. In the example (A) of FIG. 12, the output code is “0” when the read data is other than the preset value, and when the preset address Ap is “1”, “2” and “3”, The preset addresses Ap are divided into six types, such as the output code is “1” and so on. On the other hand, in the example (B) of FIG. 12, the output code Co when the read data is other than the preset value is “0”, and the output code Co when the read data matches any of the preset values. Is set to “5”.
[0038]
As shown in the example (A) or (B) of FIG. 12, the output code Co is output in step S77 or step S78 of FIG. 10 based on the set reference table. Co can be freely changed, and the output code Co has a high degree of freedom. Therefore, it is possible to freely perform sorting control in units of groups and to output match / mismatch with respect to preset values of read data, and to control external devices (such as the programmable controller 10) connected to the first interface 32 in FIG. The program can be simplified. Further, by directly connecting a lamp or the like without connecting the programmable controller 10, it is also possible to control the lighting of the lamp.
[0039]
On the other hand, if a reset command is issued in step S13 in FIG. 3, the process proceeds to step S14. In step S14, the setting of the reference table shown in FIG. 12 is returned to the default value. Here, the output code Co is the same as the preset address Ap (that is, “0” to “31”). If an end command is issued in step S15, the process returns to the main routine.
[0040]
If the set digit setting command used in step S22 (FIG. 5), step S28 (FIG. 6) and step S73 (FIG. 10) is executed by operating the switch group 7, the program starts from step S4 in FIG. Move to step S18. In step S18, a message "Please set a digit. From what digit?" Is displayed on the LCD 6, and an input of a desired number of digits is accepted while prompting the operator to input a digit. After the operator inputs the number of digits, the LCD 6 displays "Please enter the number of digits. How many digits?" And waits for the input of the desired number of digits. When the input of the digit range to be compared is received from the operator, the set digit is stored in the memory 31, and then the process returns to the main routine.
[0041]
Since the significant digits set here are used in step S22 and the like in FIG. 5, it is possible to eliminate waste of processing required for unnecessary portions of barcode data. For example, in the JAN code, a bar code is composed of a country code, a maker code, a product code, and a check digit. Often, only the product code is to be processed. In this case, by setting the digit range (effective digit range) of the bar code corresponding to the product code in step S18 in FIG. 4, efficient decoding of bar code data using only the bar code related to the product code is performed. Processing can be performed.
Test Mode In step S5 in FIG. 4, when the movement test mode is commanded by operating the switch group 7, the process proceeds to step S19, and the movement test processing in FIG. 7 is executed.
[0042]
In a step S41, a variable i is set to “0”. In step S42, the timer T is reset. In step S43, the target reading operation is performed as in step S21 (FIG. 5). In step S44, the decoding process is performed in the same manner as in step S22. Here, it is determined whether or not all the symbols (including portions other than the effective digits) of the read barcode can be decoded.
[0043]
In step S45, it is determined based on the decryption processing in step S44 whether or not all the barcode symbols can be decrypted. If the decryption is possible, the process proceeds to step S49, and the variable i is incremented. In step S49A, the timer T is reset. If it is determined in step S45 that the barcode could not be read, or if the process in step S49A has been completed, the process proceeds to step S46. In step S46, it is determined whether or not the timer T has reached 0.3 seconds or more. Here, 0.3 seconds is appropriate for judging a separation between a barcode in one measurement target and a barcode in the next measurement target, assuming that 300 reading operations can be performed per second. Time. While the timer T has not reached 0.3 seconds, it can be determined that barcode data has been read from one barcode, so the process returns from step S46 to step S43, and the barcode reading and decoding operations from step S43 onward are performed. repeat.
[0044]
If it is determined in step S46 that the timer T has exceeded 0.3 seconds and one barcode has been read, the process proceeds to step S47. In step S47, a variable i indicating the number of times of reading for one barcode and the read barcode are displayed on the LCD 6 and output to the second interface 33. In step S48, it is determined whether or not the end of the movement test has been instructed by the operator. Until a termination command is issued, the process returns to step S41, and the measurement operation from step S41 is repeated. If the end is instructed, the process returns from the step S48 to the main routine of FIGS.
[0045]
In the above-described movement test, the number of readings in the moving state can be counted by reading the barcode symbol 4 while moving the measurement object 2. Therefore, a reading test closer to the actual measurement operation can be performed, and the accuracy of the reading test is improved. The count value (variable i) and the barcode output via the first interface 32 are subjected to statistical processing by an external device, for example, calculation of an average value of the number of readings and creation of a histogram.
[0046]
As a result, it is possible to recognize the stability of reading while the measuring object 2 is moved, and it is necessary to correct the printing and sticking position of the barcode label 3 and review the transport play and the transport speed. Sex determination is possible. In addition, since the count value (variable i) and the barcode are not only displayed on the LCD 6 but output to the outside via the second interface 33, by connecting an appropriate external device, a high-speed repetitive reading test can be performed. Will be able to respond to
[0047]
In step S6 of FIG. 4, when the still test mode is designated by operating the switch group 7, the process proceeds to step S20, and the still test process of FIG. 8 is executed. In step S50 in FIG. 8, the variables i and j are set to “0”. The processing in steps S51 to S53 is the same as the processing in steps S43 to S45 in FIG.
[0048]
In step S54 of FIG. 8, the variable i is incremented so as to count the number of times the barcode can be read, and the process proceeds to step S55. On the other hand, if the determination in step S53 is No, the process proceeds to step S55 without performing the process in step S54. In step S55, the variable j is incremented to count the total number of readings. Then, it is determined whether or not the variable j has become “100” in step S56. Until the variable j becomes “100”, the process returns to step S51, and the reading process from step S51 is repeated. If the variable j becomes “100” in step S56, the process proceeds to step S57.
[0049]
In step S57, a variable i indicating the number of readings and the read barcode are displayed on the LCD 6 and output to the second interface 33. The processing here is substantially the same as step S47 (FIG. 7). Upon completion of the process in the step S57, the process returns to the main routine shown in FIGS. Here, the test conditions (moving test and stationary test) can be switched so as to be closer to the actual measurement conditions of the measurement target 2. Therefore, in this embodiment, a reading test closer to the actual measurement operation can be performed, and the accuracy of the reading test is improved.
[0050]
In the first embodiment, the barcode data processing device 1 of FIG. 2 includes the barcode reader unit 20 integrally. However, in the present invention, the barcode data processing device 1 includes the barcode reader unit 20. You don't need to be. This example will be described with reference to the second embodiment shown in FIGS.
[0051]
In FIG. 13, in the present embodiment, the display unit 6 includes a first display unit 6a for displaying a preset value and a second display unit 6b for displaying an output code or a bar code. The third connector 13 includes a handy barcode reader 15, a setting device 15a, a stationary barcode reader 15b, an upper personal computer 15c, a display 15d, a serial printer 15e, a PLC 10, or another barcode data processing device 1A. Connected.
[0052]
In FIG. 14, a stationary bar code reader 15b or a handy bar code reader 15 is connected to a second interface 33 having a second connector 12. Each of the bar code readers 15 and 15b has a function corresponding to the bar code reader unit 20 in FIG. 2 and a decoder corresponding to the decryption processing means 30a (FIG. 2). The barcode data is output to the analysis processing unit 30 via the second interface 33. The analysis processing unit 30 has the same configuration as that of the first embodiment described above, and includes a control processing unit 30c, an I / F first processing unit 30d, and an I / F second processing unit 30e in addition to the comparison processing unit 30b. But does not include the decryption processing means 30a (FIG. 2).
[0053]
The control processing unit 30c controls display processing of the display unit 6. The I / F first processing unit 30d takes in bar code data input from the second interface 33 composed of the RS232C, and outputs this data to the decryption processing unit 30a. The second I / F processing unit 30e takes in the bar code data input from the third interface 34 composed of the RS232C and outputs this data to the decryption processing unit 30a, or is connected to the upper personal computer 15c. If it is, the barcode data is output to the personal computer 15c via the third interface 34. Further, the I / F second processing unit 30 e exchanges signals with the programmable controller 10 via an ON / OFF switching operation (contact control) via the first interface 32.
In the barcode data processing apparatus according to the present embodiment, the designation of the significant digits of the barcode data is accepted, and the barcode data is processed based on the accepted significant digits. It can be omitted.
[0054]
【The invention's effect】
ADVANTAGE OF THE INVENTION According to the barcode data processing apparatus which concerns on this invention, the designated effective digit about the barcode data is memorize | stored, and it becomes possible to process the barcode data of only the memorized effective digit part. It is possible to eliminate the need for processing of the bar code data of the portion, and it is possible to eliminate waste of the processing required for the unnecessary portion of the bar code data.
[Brief description of the drawings]
FIG. 1A is a schematic perspective view showing a use state of a barcode data processing system according to a first embodiment of the present invention, and FIG. 1B is a schematic block diagram of a barcode data processing device of the present invention.
FIG. 2 is a schematic block diagram showing an internal configuration of the barcode data processing device.
FIG. 3 is a flowchart illustrating a control function of an analysis processing unit.
FIG. 4 is a flowchart illustrating a control function of an analysis processing unit.
FIG. 5 is a flowchart illustrating a control function of an analysis processing unit.
FIG. 6 is a flowchart illustrating a control function of an analysis processing unit.
FIG. 7 is a flowchart illustrating a control function of an analysis processing unit.
FIG. 8 is a flowchart illustrating a control function of an analysis processing unit.
FIG. 9 is a flowchart illustrating a control function of an analysis processing unit.
FIG. 10 is a flowchart illustrating a control function of an analysis processing unit.
FIG. 11 is a schematic diagram of a reference table showing the correspondence between preset addresses and reference barcodes.
FIG. 12 is a conceptual diagram of a reference table showing the correspondence between preset addresses and output codes.
FIG. 13 is a schematic perspective view of a barcode data processing apparatus according to a second embodiment.
FIG. 14 is a schematic block diagram of a barcode data processing apparatus according to a second embodiment.
[Explanation of symbols]
1: Bar code data processing device
7: Switch group
7c: valid digit receiving means
30 (30A): analysis processing unit (analysis processing means)
30a: decryption processing means (analysis processing means)
30b: comparison processing means (analysis processing means)
31 (31a): Memory (effective digit storage unit)

Claims (7)

バーコードデータの有効桁の指定を受け付ける有効桁受付手段と、前記指定された有効桁を記憶する有効桁記憶手段と、入力されたバーコードデータを前記有効桁記憶手段に記憶された有効桁に基づいて処理する解析処理手段とを備え、入力されたバーコードデータを有効桁の指定に基づいて有効桁部分とそれ以外の部分とに振り分けて有効桁部分のみ解読処理を行うように構成したことを特徴とするバーコードデータ処理装置 Significant digit receiving means for receiving designation of significant digits of bar code data, significant digit storage means for storing the designated significant digits, and input bar code data to the significant digits stored in the significant digit storage means. Analysis means for processing the input barcode data based on the designation of the significant digits, and dividing the input barcode data into significant digits and other portions based on the designation of the significant digits, and performing decoding processing only on the significant digits. A bar code data processing device characterized by the above-mentioned . 請求項1記載のバーコードデータ処理装置において、基準バーコードデータを記憶する基準バーコードデータ記憶手段を備えたことを特徴とするバーコードデータ処理装置 2. The barcode data processing device according to claim 1, further comprising a reference barcode data storage unit for storing reference barcode data . 請求項2記載のバーコードデータ処理装置において、前記基準バーコードデータおよび前記有効桁を読み出す手段を備えたことを特徴とするバーコードデータ処理装置 3. The barcode data processing device according to claim 2, further comprising: a unit that reads the reference barcode data and the effective digits . 請求項3記載のバーコードデータ処理装置において、前記入力されたバーコードデータの有効桁範囲に対応する部分と前記基準バーコードデータの有効桁範囲に対応する部分とを比較し、比較した結果を出力する比較処理手段を備えたことを特徴とするバーコードデータ処理装置 4. The bar code data processing device according to claim 3, wherein a portion corresponding to the effective digit range of the input bar code data is compared with a portion corresponding to the effective digit range of the reference bar code data, and a result of the comparison is compared. A bar code data processing device comprising a comparison processing means for outputting . 請求項4記載のバーコードデータ処理装置において、前記比較処理手段による比較結果を表示可能な表示手段を備えたことを特徴とするバーコードデータ処理装置 5. The barcode data processing device according to claim 4, further comprising display means for displaying a comparison result by said comparison processing means . 請求項1ないし5のいずれか1項記載のバーコードデータ処理装置において、前記有効桁を設定するための操作手順を表示可能な表示手段を備えたことを特徴とするバーコードデータ処理装置 6. The barcode data processing device according to claim 1, further comprising a display unit capable of displaying an operation procedure for setting the effective digit . 請求項1ないし6のいずれか1項記載のバーコードデータ処理装置において、前記入力されたバーコードデータの読み取り可否を判断する判断手段を備えたことを特徴とするバーコードデータ処理装置 7. The barcode data processing apparatus according to claim 1, further comprising a determination unit configured to determine whether the input barcode data is readable .
JP35003393A 1993-04-09 1993-12-29 Barcode data processing device Expired - Fee Related JP3554867B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP35003393A JP3554867B2 (en) 1993-04-09 1993-12-29 Barcode data processing device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP8296193 1993-04-09
JP5-82961 1993-04-09
JP35003393A JP3554867B2 (en) 1993-04-09 1993-12-29 Barcode data processing device

Publications (2)

Publication Number Publication Date
JPH08101877A JPH08101877A (en) 1996-04-16
JP3554867B2 true JP3554867B2 (en) 2004-08-18

Family

ID=26423989

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35003393A Expired - Fee Related JP3554867B2 (en) 1993-04-09 1993-12-29 Barcode data processing device

Country Status (1)

Country Link
JP (1) JP3554867B2 (en)

Also Published As

Publication number Publication date
JPH08101877A (en) 1996-04-16

Similar Documents

Publication Publication Date Title
US8397992B2 (en) Optical reader having image sensor for reading decodable indicia
US20040206821A1 (en) Autodiscriminating bar code reading apparatus having solid state image sensor
US20040262394A1 (en) Optical reader having solid-state image sensor
US5627358A (en) System and method for reading two-dimensional barcodes
JP3554867B2 (en) Barcode data processing device
JP3557420B2 (en) Barcode reader
JP3500540B2 (en) Barcode data processing device
JP3485592B2 (en) Bar code reading device and its reading test device
JPH08263585A (en) Code reader
JPH07325877A (en) Reader for mark
JPH07319993A (en) Mark reader
JPS60214087A (en) Bar code reader
JP2004355451A (en) Barcode reader and barcode reading method

Legal Events

Date Code Title Description
A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040422

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20100521

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130521

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees