JPH0765106A - Bar code reader - Google Patents

Bar code reader

Info

Publication number
JPH0765106A
JPH0765106A JP5210566A JP21056693A JPH0765106A JP H0765106 A JPH0765106 A JP H0765106A JP 5210566 A JP5210566 A JP 5210566A JP 21056693 A JP21056693 A JP 21056693A JP H0765106 A JPH0765106 A JP H0765106A
Authority
JP
Japan
Prior art keywords
bar code
data
storage
bank
read
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
JP5210566A
Other languages
Japanese (ja)
Inventor
Takeshi Sato
剛 佐藤
Hisashi Iwagami
久 岩上
Minoru Tomita
稔 富田
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP5210566A priority Critical patent/JPH0765106A/en
Publication of JPH0765106A publication Critical patent/JPH0765106A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To analyze only data which are effective as a bar code and to improve the processing efficiency by prescribing the maximum number of data which can be written in a storage means. CONSTITUTION:A measured edge number counted by a width measuring counter 110 is inputted to the CPU 141 of a read analyzing process part 140. The CPU 141 does not write bar code data in a file storage part 30 when the inputted measured edge number is less than the lowest edge number. Consequently, the data which are scanned this time and stored in the data storage part 120 are made ineffective. Further, the CPU 141 calculates the number of write bytes from the inputted measured edge number and compares this calculated write byte number with a prescribed byte number (bank capacity) per storage area (bank). Then when the write byte number exceeds the bank capacity, data exceeding the prescribed byte number are not stored in a bank of the file storage part 130 from the data storage part 120.

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, and more particularly to a bar code reader for scanning a bar code, temporarily storing bar code data in synchronization with the scanning, and sequentially analyzing the data. .

【0002】[0002]

【従来の技術】バーコードは、周知のように、線幅や間
隔を組み合せて符号化した一定の高さの棒線群の帯で表
わされ、その代表的なものは世界共通の記号として決め
られており、食品,雑貨などの商品に印刷されている。
図6はバーコードの走査状態の一例を示し、図7は従来
のバーコード読取り装置の構成例を示し、図8はそのバ
ーコード読取り装置の動作例を示す。
2. Description of the Related Art As is well known, a bar code is represented by a band of a group of bar lines having a constant height, which is coded by combining line widths and intervals. It is decided and printed on food, miscellaneous goods, and other products.
FIG. 6 shows an example of the scanning state of the bar code, FIG. 7 shows a configuration example of a conventional bar code reading device, and FIG. 8 shows an operation example of the bar code reading device.

【0003】図6に示すように、ラベル等の被記録材上
に印刷されたバーコードとバーコード読取り装置のバー
コードセンサ(光学センサ、図示せず)の走査ビームと
を相対移動し、その走査ビームの反射光を受光素子で受
光すると、その受光素子の回路(図示せず)からはバー
コードの線幅や間隔に対応したパルス状のバーコード信
号(2値化バーコードデータ)が出力される。
As shown in FIG. 6, a bar code printed on a recording material such as a label and a scanning beam of a bar code sensor (optical sensor, not shown) of a bar code reader are moved relative to each other, and When the reflected light of the scanning beam is received by the light receiving element, a pulsed bar code signal (binarized bar code data) corresponding to the line width and the interval of the bar code is output from the circuit (not shown) of the light receiving element. To be done.

【0004】バーコードを走査して得られた2値化バー
コードデータは図7の幅計測カウンタ10に送られ、こ
こでバー幅情報が生成される。このバー幅情報は2つの
RAM21,22を有するデータ記憶部20に送られ
る。データ記憶部20は読取解析処理部40内のCPU
(中央演算処理ユニット)41がバーコード走査毎に発
生する走査同期信号に同期して、2つのRAM21,2
2を交互に切換え、交互にバー幅情報であるバーコード
データを格納する。同時に、CPU41はバーコードデ
ータを格納中のRAM(例えば21)ではない、もう一
方のRAM(例えば22)からそのバーコードデータを
読出し、ファイル記憶部30に書込む制御を行う。この
ファイル記憶部30は複数の記憶領域、すなわち複数の
バンクから構成されている。
The binarized bar code data obtained by scanning the bar code is sent to the width measuring counter 10 shown in FIG. 7, where bar width information is generated. This bar width information is sent to the data storage unit 20 having two RAMs 21 and 22. The data storage unit 20 is a CPU in the reading analysis processing unit 40.
(Central processing unit) 41 synchronizes with the two RAMs 21 and 2 in synchronization with the scan synchronization signal generated for each barcode scan.
2 is alternately switched, and bar code data, which is bar width information, is stored alternately. At the same time, the CPU 41 controls the reading of the barcode data from the other RAM (for example, 22), which is not the RAM (for example, 21) storing the barcode data, and writing in the file storage unit 30. The file storage unit 30 is composed of a plurality of storage areas, that is, a plurality of banks.

【0005】CPU41は図8に示すような処理を行っ
ている。走査同期信号(スキャン同期信号)により定ま
った周期で発生するスキャン割込処理において、CPU
41はデータ記憶部20のRAM21,22を切換え
(ステップS21)、現在データ格納中でない方のRA
Mからデータを読取り、これをファイル記憶部30内の
いずれかの指定のバンクへ書込む(ステップS24´,
S25,S28)。このデータ転送後、次回の転送先の
バンクを指定し(ステップS30,S31,S32)、
読取解析メイン処理に復帰する。
The CPU 41 performs a process as shown in FIG. In scan interrupt processing that occurs at a cycle determined by the scan synchronization signal (scan synchronization signal), the CPU
Reference numeral 41 switches the RAMs 21 and 22 of the data storage unit 20 (step S21) to determine which RA is currently not storing data
Data is read from M and written in any designated bank in the file storage unit 30 (step S24 ',
S25, S28). After this data transfer, specify the next transfer destination bank (steps S30, S31, S32),
Return to the reading analysis main processing.

【0006】読取解析処理では、CPU41は上記バン
クからバーコードデータを取出し(ステップS3,S
4′,S5)、バーコード信号の規則に従ってデータ解
析を進め(ステップS9)、その解析が終了する毎にバ
ンクを切換える(ステップS10,S11,S13,S
14,S15)。上記の処理動作のさらに詳細について
は例えば本出願人が先に提案した特開平3−20818
8号に記載されている。なお、図8のステップ番号は、
後述の本発明に係る図2のフローチャートと比較参照し
やすいように、対応するものには同一ステップ番号を付
している。
In the reading analysis process, the CPU 41 fetches the bar code data from the bank (steps S3 and S).
4 ', S5), the data analysis proceeds according to the bar code signal rule (step S9), and the bank is switched every time the analysis is completed (steps S10, S11, S13, S).
14, S15). For further details of the above-mentioned processing operation, for example, Japanese Patent Application Laid-Open No. 3-20818 previously proposed by the present applicant.
No. 8. The step numbers in FIG. 8 are
Corresponding parts are designated by the same step numbers for easy comparison and reference with the flowchart of FIG. 2 according to the present invention described later.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上述の
ような従来のバーコード読取り装置では下記のような解
決すべき課題があった。
However, the conventional bar code reader as described above has the following problems to be solved.

【0008】(1)バーコードそのものの2値化データ
のみでなく、太陽光や光電スイッチの投光器の光の直接
光や反射光の入射、またはバーコード印刷やラベルの前
後に印字された文字,図柄により、大量の疑似2値化デ
ータが発生する場合が多い。この場合は、データ数が多
いため、RAM21,22内のデータをファイル記憶部
30に書込んだとき、次の記憶領域(バンク)や別の目
的で使用している記憶(メモリ)領域までデータが侵入
して内容を破壊してしまうことがある。
(1) Not only the binary data of the bar code itself, but also the direct light or reflected light of sunlight or light of the projector of the photoelectric switch, or characters printed before or after bar code printing or a label, Depending on the design, a large amount of pseudo-binarized data often occurs. In this case, since the number of data is large, when the data in the RAMs 21 and 22 are written in the file storage unit 30, the data is stored up to the next storage area (bank) or a storage (memory) area used for another purpose. May invade and destroy the contents.

【0009】(2)図6に示すスキャン動作において、
とのスキャンにはバーコードがないが、そのスキャ
ンの2値化データは記憶領域(バンク)に書込まれ、そ
のデータは読取解析処理部(CPU)40へ転送され、
解析処理される。そのため、バーコードデータでないデ
ータの解析を行うので、全体として処理時間が多くかか
ってしまうことになる。
(2) In the scan operation shown in FIG.
There is no bar code in the scan with, but the binary data of the scan is written in the storage area (bank), and the data is transferred to the reading analysis processing unit (CPU) 40.
It is analyzed. Therefore, since the data other than the barcode data is analyzed, it takes a lot of processing time as a whole.

【0010】(3)読取解析処理時間とスキャン周期に
同期がとれず、スキャン周期よりも解析処理時間の方が
長く要する場合が一般的である。このような場合は、バ
ーコードデータの記憶領域(バンク)への書込みが読取
解析処理に対して先行してしまい、そのためまだ解析の
終了していない領域(バンク)にも、新しいデータを書
込んでしまって、未解析のデータを壊してしまうことが
ある。
(3) It is general that the reading analysis processing time and the scan cycle cannot be synchronized, and the analysis processing time is longer than the scan cycle. In such a case, the writing of barcode data to the storage area (bank) precedes the reading analysis processing, so new data is also written to the area (bank) where analysis has not finished yet. It may destroy unanalyzed data.

【0011】(4)この種のバーコード読取り装置は一
般に一定速度で回転するモータの軸に多面鏡(ポリゴン
ミラー)を取付け、その鏡面にレーザ光を当てて、バー
コード面上をスキャンさせる構造のものであるが、モー
タの回転異常が発生し、スキャン速度が低下してもその
異常が検出できないということがあった。
(4) In this type of bar code reader, a polygon mirror is generally attached to the shaft of a motor that rotates at a constant speed, and a laser beam is applied to the mirror surface to scan the bar code surface. However, there was a case where the motor rotation abnormality occurred and the abnormality could not be detected even if the scan speed decreased.

【0012】(5)記憶領域(バンク)は読取可能な最
大桁数(例えば32桁)に対してバイト数(記憶容量)
を設定している。しかし、実際に読取るバーコードの桁
数が小さい場合は書込むバーコードデータが少ないの
で、記憶領域(バンク)に空きが生じてしまい、記憶容
量の有効利用ができていないことになって無駄である。
(5) The storage area (bank) has the maximum number of readable digits (eg 32 digits) and the number of bytes (storage capacity)
Is set. However, if the number of digits of the bar code that is actually read is small, the bar code data to be written is small, so there will be space in the storage area (bank), and it will be wasteful that the storage capacity cannot be used effectively. is there.

【0013】(6)図6のようにバーコードをスキャン
して読取った場合、6つの記憶領域(バンク)のうち、
図6の,でスキャンした2値化データは不良データ
であり、残りの〜の4回のスキャンのデータがバー
コードをスキャンしたデータとなっている。しかし、バ
ーコード読取り装置の読取結果の出力が読取エラーとな
った場合は、不良データを解析してエラーとなったの
か、あるいは解析処理そのものに問題があってエラーと
なったのか区別がつかないという問題があった。
(6) When the bar code is scanned and read as shown in FIG. 6, of the six storage areas (banks)
The binarized data scanned in FIG. 6 is defective data, and the data of the remaining four scans to is the barcode scanned data. However, if the reading result output from the bar code reading device causes a reading error, it is impossible to distinguish whether the error occurred by analyzing the defective data or the error occurred due to a problem in the analysis process itself. There was a problem.

【0014】本発明の目的は、上述の点に鑑みて、読取
解析処理とスキャン割込処理の周期がとれるようにし、
また読取解析処理ではバーコードとして有効なデータだ
けを解析できるようにして処理効率の向上を図ったバー
コード読取り装置を提供することにある。
In view of the above points, an object of the present invention is to enable a period of reading analysis processing and a scan interrupt processing,
Another object of the present invention is to provide a bar code reading device which improves the processing efficiency by analyzing only valid data as a bar code in the reading analysis process.

【0015】[0015]

【課題を解決するための手段】上記目的を達成するた
め、本発明は、スキャン同期信号に同期して順次にバー
コードから読取られて2値化されたバーコードデータ群
を用いて読取解析処理手段により当該バーコードの内容
を解析するバーコード読取り装置において、複数同期の
前記バーコードデータ群をそれぞれ格納可能な複数の記
憶領域を有する記憶手段と、前記複数の記憶領域の各々
に、順次に読取られた前記バーコードデータ群を一定の
順序で書込む記憶制御手段と、前記読取解析処理手段の
解析処理が終了する毎に前記記憶手段の前記記憶領域に
格納されたバーコードデータ群を前記読取解析処理手段
に順次転送する転送手段とを備え、前記記憶制御手段
は、前記記憶手段の複数の記憶領域に対して書込むこと
のできる最大データ数を規定し、該最大データ数を超え
るデータ数で当該バーコードデータ群が形成されている
ときには、その超過したデータについては前記記憶領域
に格納しないように制限する制御を行うことを特徴とす
る。
In order to achieve the above object, the present invention uses a bar code data group which is sequentially read from a bar code and binarized in synchronization with a scan synchronization signal to perform a reading analysis process. In a bar code reading apparatus for analyzing the contents of the bar code by means, a storage means having a plurality of storage areas each capable of storing a plurality of synchronized bar code data groups, and a plurality of storage areas are sequentially provided in each storage area. The storage control means for writing the read bar code data group in a fixed order, and the bar code data group stored in the storage area of the storage means each time the analysis processing of the reading analysis processing means ends. A storage unit that sequentially transfers data to the reading analysis processing unit, and the storage control unit can write the maximum number of data in a plurality of storage areas of the storage unit. Defined and, when the bar code data group by the number of data exceeding the number of said maximum data is formed, for the excess data is characterized by performing a control for limiting not to store in the storage area.

【0016】また、本発明は好ましくはその一形態とし
て、前記記憶制御手段は、読取り対象の被読取バーコー
ドの種類と桁数が設定されたとき、そのバーコードの種
類と桁数に相当するパルス数を算出し、算出したパルス
数よりも読取って2値化された前記バーコードデータ群
のパルス数の方が少ない場合には当該バーコードデータ
群を前記記憶手段に書込むことを禁止する制御を行うこ
とを特徴とすることができる。
Further, preferably, in one form of the present invention, when the type and the number of digits of the read barcode to be read are set, the storage control means corresponds to the type and the number of digits of the barcode. When the number of pulses is calculated, and the number of pulses of the read and binarized barcode data group is smaller than the calculated number of pulses, writing of the barcode data group into the storage means is prohibited. It can be characterized by performing control.

【0017】また、本発明は好ましくは他の形態とし
て、前記記憶手段からバーコードデータ群を読出して解
析を行うために、前記読取解析処理手段へのデータの転
送が完了したか否かの状態を示すフラグを各前記記憶領
域に対応して記憶しておく解析状態記憶手段をさらに有
し、前記記憶制御手段は前記フラグを参照して解析のた
めのデータの転送が完了していない記憶領域へは新しい
バーコードデータ群の書込みを禁止する制御を行うこと
を特徴とすることができる。
In a preferred embodiment of the present invention, the status of whether or not the data transfer to the reading / analysis processing means is completed in order to read and analyze the bar code data group from the storage means. Storage state storage means for storing a flag indicating a flag corresponding to each storage area, wherein the storage control means refers to the flag and has not completed transfer of data for analysis. Can be controlled to prohibit writing of a new bar code data group.

【0018】また、本発明は好ましくは他の形態とし
て、前記記憶制御手段は前記記憶手段の前記記憶領域
に、前記バーコードデータ群と、さらに前記スキャン同
期信号の現時点のスキャン周期時間とを記憶させ、該ス
キャン周期時間が規定範囲外となった場合は警報を発生
することを特徴とすることができる。
Further, according to another aspect of the present invention, the storage control means stores the bar code data group and the current scan cycle time of the scan synchronization signal in the storage area of the storage means. Then, when the scan cycle time is out of the specified range, an alarm can be issued.

【0019】また、本発明は好ましくは他の形態とし
て、前記記憶制御手段は前記記憶手段の記録領域の数
と、1つの該記憶領域当りに格納可能な最大データ数と
を、読取り対象のバーコードの桁数が設定されたときに
対応してあらかじめ切換えることを特徴とすることがで
きる。
Further, as another aspect of the present invention, preferably, the storage control means indicates the number of recording areas of the storage means and the maximum number of data that can be stored in one storage area as a bar to be read. It can be characterized in that the number of digits of the code is switched in advance corresponding to the setting.

【0020】また、本発明は好ましくは他の形態とし
て、前記転送手段は前記記憶領域に格納された前記バー
コードデータ群を転送する毎に、転送した当該記憶領域
の順位番号を外部へ出力することを特徴とすることがで
きる。
Further, according to another aspect of the present invention, each time the transfer means transfers the bar code data group stored in the storage area, the transfer means outputs the order number of the transferred storage area to the outside. Can be characterized.

【0021】[0021]

【作用】本発明では、上記構成により次のような動作を
行い、顕著な作用が得られる。
In the present invention, the following operations are performed by the above-mentioned structure, and a remarkable operation is obtained.

【0022】(1)スキャン同期信号に同期して、記憶
領域(バンク)に書込むデータのバイト数を算出し、こ
の算出したバイト数が1つの記憶領域(バンク)当りの
あらかじめ規定した最大バイト数を超える場合は、超え
た分のデータは書込まずに切捨てる。従って、バーコー
ドデータでないノイズデータの解析による無駄な処理が
なくなり、処理時間が短縮される。
(1) The number of bytes of data to be written in the storage area (bank) is calculated in synchronization with the scan synchronization signal, and the calculated number of bytes is the maximum number of bytes defined in advance per storage area (bank). When exceeding the number, the excess data is truncated without being written. Therefore, wasteful processing due to analysis of noise data that is not bar code data is eliminated, and processing time is shortened.

【0023】(2)あらかじめ設定された読取るバーコ
ードの種類と桁数により、下記〜に示すように、2
値化バーコードデータのエッジ数(立下りと立上りエッ
ジの合計数)を算出し、この算出したエッジ数よりも実
際の計測エッジ数が少ない場合にはバーコードを正確に
スキャンしたバーコードデータではないので、記憶領域
(バンク)には該当データの書込みを行わない。従っ
て、処理時間が短縮される。
(2) Depending on the type and number of digits of the barcode to be read, which is set in advance, as shown in the following items,
Calculate the number of edges (total number of falling and rising edges) of the digitized barcode data. If the actual number of measured edges is less than the calculated number of edges, the barcode data scanned accurately Since it does not exist, the corresponding data is not written in the storage area (bank). Therefore, the processing time is shortened.

【0024】ITFのエッジの数=10×桁数/2+
8(スタート,ストップコード) コーダーバーのエッジ数=8×桁数 CODE39のエッジ数=10×桁数 JAN標準(13桁)のエッジ数=60、 JAN短縮(8桁)のエッジ数=44 (3)読取解析処理とスキャン割込み処理で共通に使う
ことのできる記憶領域(バンク)の状態を示すバンク状
態フラグを設け、フラグにより未解決か解析終了かをバ
ンク毎に記憶しておき、このフラグの参照により新しい
データの書込みの可否を判断する。従って未解析バンク
に新たなデータが侵入して内容を破壊してしまうことが
防げる。
Number of ITF edges = 10 × number of digits / 2 +
8 (start / stop code) Coder bar edge number = 8 × digit number CODE39 edge number = 10 × digit number JAN standard (13 digit) edge number = 60, JAN shortened (8 digit) edge number = 44 ( 3) A bank status flag indicating the status of a storage area (bank) that can be used in common in the read analysis processing and the scan interrupt processing is provided, and whether the flag is unsolved or the analysis completed is stored for each bank. Whether or not new data can be written is determined by referring to. Therefore, it is possible to prevent new data from entering the unanalyzed bank and destroying the contents.

【0025】(4)スキャン同期信号に同期して発生す
るスキャン割込み処理毎に、カウントされたスキャン周
期(時間)のデータを記憶領域(バンク)へバーコード
データと共に書込む。このスキャン周期が変動許容範囲
から外れていれば、スキャンモータの回転異常が生じた
として警報を発する。このように、スキャン速度の異常
が容易に検出できる。
(4) The data of the counted scan cycle (time) is written to the storage area (bank) together with the bar code data for each scan interrupt processing which is generated in synchronization with the scan synchronization signal. If the scan cycle is out of the variation allowable range, an alarm is issued because the rotation abnormality of the scan motor has occurred. In this way, an abnormal scan speed can be easily detected.

【0026】(5)バーコード読取りに際して、事前に
桁数の設定が行われるが、このとき設定桁数が小さいと
きは記憶領域(バンク)を分割して使用する。これによ
り記憶領域に無駄な空きがなくなり、記憶容量の有効利
用ができる。
(5) When reading a bar code, the number of digits is set in advance. If the number of digits set is small at this time, the storage area (bank) is divided and used. As a result, there is no useless space in the storage area, and the storage capacity can be effectively used.

【0027】(6)ファイル記憶部の記憶領域(バン
ク)から読取解析処理部(CPU)へデータを転送する
度に、そのとき選択した記憶領域(バンク)の番号を外
部へ出力する。このため、例えばバーコード読取結果の
出力が読取エラーとなった場合に、バンク番号を基にエ
ラー原因を判断可能となる。
(6) Each time data is transferred from the storage area (bank) of the file storage section to the reading analysis processing section (CPU), the number of the storage area (bank) selected at that time is output to the outside. Therefore, for example, when the reading of the barcode reading result causes a reading error, the cause of the error can be determined based on the bank number.

【0028】このように、本発明によれば、無効データ
やノイズデータ(エラーデータ)を解析前に除外するの
で、読取解析処理とスキャン割込処理の同期がとれ、読
取解析処理ではバーコードとして有効なデータだけを解
析することになるので処理効率が向上する等の利点があ
る。
As described above, according to the present invention, since invalid data and noise data (error data) are excluded before analysis, the read analysis process and the scan interrupt process can be synchronized, and a bar code is used in the read analysis process. Since only valid data is analyzed, there are advantages such as improved processing efficiency.

【0029】[0029]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0030】図1は本発明の一実施例のバーコード読取
り装置の回路構成を示し、図2は本実施例の動作を示
す。図1において、幅計測カウンタ110,データ記憶
部120およびファイル記憶部130は前述の図2の幅
計測カウンタ10,データ記憶部20およびファイル記
憶部30にそれぞれ対応する。読取解析処理部140の
CPU141は図5に示す処理手順に従ってスキャン割
込および読取解析を実行する。
FIG. 1 shows the circuit configuration of a bar code reader according to one embodiment of the present invention, and FIG. 2 shows the operation of this embodiment. 1, the width measurement counter 110, the data storage unit 120, and the file storage unit 130 respectively correspond to the width measurement counter 10, the data storage unit 20, and the file storage unit 30 of FIG. The CPU 141 of the reading analysis processing unit 140 executes scan interrupt and reading analysis according to the processing procedure shown in FIG.

【0031】幅計測カウンタ110により、図3に示す
ような2値化バーコードデータの立上りエッジと立下り
エッジが共にカウントされ、そのカウントされた計測エ
ッジ数が読取解析処理部140のCPU141に取込ま
れる。CPU141はデータ記憶部120からファイル
記憶部130へ書込むバイト数の制限として、図2のス
キャン割込処理ルーチンにおいて書込みバイト数の制限
処理を行っている。すなわち、CPU141は、取込ま
れた計測エッジ数を基にまず書込みバイト数を算出し
(ステップS25)、算出したこの書込みバイト数と1
つの記憶領域(バンク)当りのあらかじめ規定された最
大バイト数(バンク容量と称する)とを比較する(ステ
ップS26)。書込みバイト数がバンク容量を超えた場
合は、その超えた分は書込まれないようにするために、
書込みバイト数をバンクの最大バイト数とする制限処理
を行う(ステップS27)。CPU141はバーコード
データのバンクへの書込みを伴う後述のステップS28
〜S32の処理を実行した後、メインの読取解析処理に
復帰する。
The width measuring counter 110 counts both the rising edge and the falling edge of the binarized bar code data as shown in FIG. 3, and the counted measurement edge number is stored in the CPU 141 of the reading analysis processing section 140. Get caught. The CPU 141 limits the number of bytes to be written from the data storage unit 120 to the file storage unit 130 by limiting the number of write bytes in the scan interrupt processing routine of FIG. That is, the CPU 141 first calculates the number of written bytes based on the number of measured edges taken in (step S25), and the calculated number of written bytes and 1
A predetermined maximum number of bytes (referred to as bank capacity) per one storage area (bank) is compared (step S26). If the number of written bytes exceeds the bank capacity, to prevent the excess from being written,
A limit process is performed to set the number of written bytes to the maximum number of bytes in the bank (step S27). The CPU 141 writes the bar code data in the bank in step S28 described later.
After executing the processes of to S32, the process returns to the main reading analysis process.

【0032】読取解析処理では、まず読取るバーコード
の種類と桁数により最低限必要なエッジ数をあらかじめ
算出する(ステップS1)。スキャン割込処理ルーチン
ではこの算出されている最低限必要なエッジ数とCPU
141に取込まれたエッジ数とを比較して(ステップS
23)、取込まれた計測エッジ数が最低エッジ数(最低
限必要なエッジ数)よりも少ない場合は、現在のデータ
は正確にスキャンしたバーコードデータでないので、バ
ンクへのバーコードデータの書込みをしないように、た
だちにメインの読取解析処理へ復帰し、これにより今回
走査されてデータ記憶部120に格納されたデータを無
効としている。
In the reading analysis process, first, the minimum required number of edges is calculated in advance according to the type and the number of digits of the barcode to be read (step S1). In the scan interrupt processing routine, the calculated minimum number of edges and CPU
The number of edges captured in 141 is compared (step S
23) If the number of measured edges fetched is less than the minimum number of edges (the minimum required number of edges), the current data is not the accurately scanned barcode data, so writing the barcode data to the bank. Immediately, the main reading / analysis process is returned so that the data stored in the data storage unit 120 is invalidated.

【0033】さらに、読取解析処理部140は、その内
部のレジスタに図4に示すような読取解析とスキャン割
込処理で共通に使う記憶領域(バンク)の状態を把握す
るためのフラグ(バンク状態フラグ)を設けている。図
4において、フラグ領域の番号0〜7はバンクの番号1
〜6に対応し、バンク状態フラグがセット(=1)され
ていれば、そのバンクは未解析(すなわち、バンクにデ
ータが存在している)であることを示し、クリア(=
0)されていれば、そのバンクは解析終了(すなわち、
バンクにデータが存在していない)であることを示す。
Further, the read analysis processing section 140 has a flag (bank state) in its internal register for grasping the state of the storage area (bank) commonly used in the read analysis and scan interrupt processing as shown in FIG. Flag). In FIG. 4, the flag area numbers 0 to 7 are bank numbers 1.
If the bank status flag is set (= 1) corresponding to ~ 6, it indicates that the bank has not been analyzed (that is, data exists in the bank), and clear (=
0) indicates that the bank has finished parsing (ie,
There is no data in the bank).

【0034】読取解析処理部140のCPU141は、
図2の読取解析処理において、上記のバンク状態フラグ
を全て0にクリアした後(ステップS4)、バンク状態
フラグがセットされるまで待つ。すなわち、バンク状態
フラグが全て0であれば、全てのバンクに解析するため
のデータがないため、スキャン割込処理のステップS2
8でバンクにデータが書込まれるまで待機する(ステッ
プS5)。バンク状態フラグがセットされていれば、解
析バンク番号の出力処理等を経て(ステップS6〜S
8)、解析バンク番号に該当のバンクのバーコードデー
タの解析を行う(ステップS9)。この解析が終了し
(ステップS10,S11)、解析バンク番号を切換え
る前に、解析したバンクに該当するビットをクリアし、
解析終了の状態にする(ステップS12)。次いで、解
析バンク番号(解析対象のバンクの番号)を切換えるた
めその番号を1だけインクリメントし(ステップS1
3)、その結果、解析バンク番号が最大数の6を超えた
場合は(ステップS14)、その番号を1に戻し(ステ
ップS15)、上記のステップS5に戻る。解析バンク
番号が6を超えない場合はステップS14からステップ
S5にただちに戻る。
The CPU 141 of the reading analysis processing section 140
In the reading analysis process of FIG. 2, after all the bank status flags are cleared to 0 (step S4), the process waits until the bank status flag is set. That is, if the bank status flags are all 0, there is no data for analysis in all banks, and therefore, step S2 of the scan interrupt process.
It waits until data is written in the bank at step 8 (step S5). If the bank status flag is set, the analysis bank number is output (steps S6 to S6).
8) The bar code data of the bank corresponding to the analysis bank number is analyzed (step S9). This analysis is completed (steps S10 and S11), and the bit corresponding to the analyzed bank is cleared before switching the analysis bank number.
The analysis is completed (step S12). Then, in order to switch the analysis bank number (the number of the bank to be analyzed), the number is incremented by 1 (step S1.
3) As a result, when the analysis bank number exceeds the maximum number of 6 (step S14), the number is returned to 1 (step S15), and the process returns to step S5. If the analysis bank number does not exceed 6, the process immediately returns from step S14 to step S5.

【0035】一方、これに関連してスキャン割込処理で
は、RAMの切換処理の後(ステップS21)、バンク
状態フラグをまず参照して全て1の状態であれば(ステ
ップS22)、バンクの全てにすでにデータがあって未
解決であるので、バンクへのデータ書込みはせずに、そ
のままメインの読取解析処理へ復帰する。バンク状態フ
ラグが全て1ではないとき、すなわちバンクに空きがあ
る場合では、前述のステップS23〜S27の処理を経
てその空きバンクの1つに当る書込みバンク番号のバン
クにバーコードデータを書込んだ後(ステップS2
8)、そのデータを書込んだ該当のバンクのバンク状態
フラグのビットを1にセットし、未解析の状態にする
(ステップS29)。次いで、書込み対象バンクの切換
えのため書込みバンク番号(データ書込み対象のバンク
の番号)を1だけインクリメントし(ステップS3
0)、書込みバンク番号が最大バンク番号6を超えなけ
ればメインの読取解析処理へ復帰し、書込みバンク番号
が最大バンク番号6を超えた場合は(ステップS3
1)、書込みバンク番号を1に戻した後(ステップS3
2)、メイン読取解析処理へ復帰する。
On the other hand, in connection with this, in the scan interrupt processing, after the RAM switching processing (step S21), first referring to the bank status flag, if all are in the 1 state (step S22), all the banks are Since there is data already in the bank and it is unsolved, the data is not written to the bank, and the process directly returns to the main reading analysis process. When the bank status flags are not all 1, that is, when there is an empty bank, the bar code data is written to the bank of the write bank number corresponding to one of the empty banks through the processing of steps S23 to S27 described above. After (Step S2
8) Then, the bit of the bank status flag of the corresponding bank that has written the data is set to 1 to bring it into an unanalyzed state (step S29). Then, the write bank number (number of the data write target bank) is incremented by 1 for switching the write target bank (step S3).
0), if the write bank number does not exceed the maximum bank number 6, the process returns to the main reading analysis process, and if the write bank number exceeds the maximum bank number 6, (step S3
1) After returning the write bank number to 1 (step S3
2) Return to the main reading analysis process.

【0036】また、CPU141は、スキャン割込処理
において、スキャン同期信号の周期データをファイル記
憶部130のバンクに格納する(ステップS24)。そ
して、読取解析処理において、バーコードデータを解析
する前にバンクからスキャン周期データを取出し(ステ
ップS7)、取出した周期の値とあらかじめ決めた所定
の周期変動許容範囲(例えば、基準値から±10%以
内)と比較して、その変動許容範囲から外れていれば
(ステップS8)、スキャンするモータの回転に異常が
生じたとして、警報手段によりその旨を外部へ出力しユ
ーザに知らせる。この警報手段としては、例えば、ブザ
ーまたはビープ音、ランプの点滅、ディスプレイへの警
報メッセージ、あるいはこれらの組合せのいずれでもよ
い。
In the scan interrupt process, the CPU 141 stores the cycle data of the scan synchronization signal in the bank of the file storage unit 130 (step S24). Then, in the reading analysis process, the scan cycle data is taken out from the bank before analyzing the bar code data (step S7), and the value of the taken out cycle and a predetermined predetermined cycle fluctuation allowable range (for example, ± 10 from the reference value). If it is outside the permissible range of fluctuation (step S8), it is determined that an abnormality has occurred in the rotation of the motor to be scanned, and an alarm means is output to the outside to notify the user. The alarm means may be, for example, a buzzer or a beep, a flashing lamp, an alarm message on a display, or a combination thereof.

【0037】さらに、CPU141は、読取解析処理に
おいて桁数の設定値に応じてバンク数を決定する(ステ
ップS2)。例えば、バーコードの読取桁数の最大が3
2桁であり、桁数設定値が16桁の場合は、図5に示す
ように、各バンク131〜136をそれぞれ2つに分割
し、実質的にバンクの数を倍に増やす。これにより、バ
ンクの空き領域が無くなり、有効にデータの蓄積ができ
る。
Further, the CPU 141 determines the number of banks according to the set value of the number of digits in the reading analysis process (step S2). For example, the maximum number of read digits of a barcode is 3
If the number of digits is 2 and the digit number setting value is 16 digits, as shown in FIG. 5, each of the banks 131 to 136 is divided into two, and the number of banks is substantially doubled. As a result, the empty area of the bank is eliminated and data can be effectively accumulated.

【0038】また、CPU141は、読取解析処理のス
テップS6において、解析するバンク番号(現在解析す
るために選択しているバンクの番号)を外部(例えばデ
ィスプレイ)へ出力し、ユーザに知らせる。
Further, in step S6 of the reading analysis processing, the CPU 141 outputs the bank number to be analyzed (the number of the bank currently selected for analysis) to the outside (for example, a display) to notify the user.

【0039】[0039]

【発明の効果】以上説明したように、本発明によれば、
バーコードの読取においての取込みデータの有効性が向
上するので、処理速度の向上が得られる。
As described above, according to the present invention,
Since the effectiveness of the captured data in reading the barcode is improved, the processing speed can be improved.

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

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

【図2】本発明の一実施例の読取解析処理部の動作手順
を示すフローチャートである。
FIG. 2 is a flowchart showing an operation procedure of a reading analysis processing unit according to an embodiment of the present invention.

【図3】図1の幅計測カウンタがエッジ数のカウント対
象とする2値化バーコードデータのエッジを示す波形図
である。
FIG. 3 is a waveform diagram showing the edges of the binarized bar code data for which the width measurement counter of FIG. 1 counts the number of edges.

【図4】本発明の一実施例で使用する6バンクの場合の
バンク状態フラグとフラグ記憶領域の関係を示す模式図
である。
FIG. 4 is a schematic diagram showing a relationship between a bank status flag and a flag storage area in the case of 6 banks used in an embodiment of the present invention.

【図5】本発明の一実施例のバンクの分割とバンク数の
切換えを説明するブロック図である。
FIG. 5 is a block diagram for explaining bank division and bank number switching according to an embodiment of the present invention.

【図6】バーコードの移動方向とレーザ走査光の走査線
の方向とを示す模式図である。
FIG. 6 is a schematic diagram showing a moving direction of a bar code and a scanning line direction of laser scanning light.

【図7】従来のバーコード読取り装置の回路構成例を示
すブロック図である。
FIG. 7 is a block diagram showing a circuit configuration example of a conventional barcode reading device.

【図8】従来装置の読取解析処理部の動作手順を示すフ
ローチャートである。
FIG. 8 is a flowchart showing an operation procedure of a reading analysis processing unit of a conventional device.

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

10,110 幅計測カウンタ 20,120 データ記録部 21,22,121,122 RAM 23,123 反転回路(インバータ) 30,130 ファイル記憶部 131〜136 バンク 40,140 読取解析処理部 41,141 CPU 10,110 Width measurement counter 20,120 Data recording unit 21,22,121,122 RAM 23,123 Inversion circuit (inverter) 30,130 File storage unit 131-136 Bank 40,140 Read analysis processing unit 41,141 CPU

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 スキャン同期信号に同期して順次にバー
コードから読取られて2値化されたバーコードデータ群
を用いて読取解析処理手段により当該バーコードの内容
を解析するバーコード読取り装置において、 複数同期の前記バーコードデータ群をそれぞれ格納可能
な複数の記憶領域を有する記憶手段と、 前記複数の記憶領域の各々に、順次に読取られた前記バ
ーコードデータ群を一定の順序で書込む記憶制御手段
と、 前記読取解析処理手段の解析処理が終了する毎に前記記
憶手段の前記記憶領域に格納されたバーコードデータ群
を前記読取解析処理手段に順次転送する転送手段とを備
え、 前記記憶制御手段は、前記記憶手段の複数の記憶領域に
対して書込むことのできる最大データ数を規定し、該最
大データ数を超えるデータ数で当該バーコードデータ群
が形成されているときには、その超過したデータについ
ては前記記憶領域に格納しないように制限する制御を行
うことを特徴とするバーコード読取り装置。
1. A bar code reader for analyzing the contents of the bar code by a reading analysis processing means using a binarized bar code data group which is sequentially read from a bar code in synchronization with a scan synchronization signal. A storage unit having a plurality of storage areas each capable of storing a plurality of synchronized barcode data groups, and sequentially writing the sequentially read barcode data groups in each of the plurality of storage areas. Storage control means, and transfer means for sequentially transferring to the reading analysis processing means a bar code data group stored in the storage area of the storage means each time the analysis processing of the reading analysis processing means is completed, The storage control unit defines the maximum number of data that can be written in a plurality of storage areas of the storage unit, and the data number exceeds the maximum number of data. Over when the code data group is formed, a bar code reader for the excess data is characterized by performing a control for limiting not to store in the storage area.
【請求項2】 前記記憶制御手段は、読取り対象の被読
取バーコードの種類と桁数が設定されたとき、そのバー
コードの種類と桁数に相当するパルス数を算出し、算出
したパルス数よりも読取って2値化された前記バーコー
ドデータ群のパルス数の方が少ない場合には当該バーコ
ードデータ群を前記記憶手段に書込むことを禁止する制
御を行うことを特徴とする請求項1に記載のバーコード
読取り装置。
2. The storage control means, when the type and the number of digits of the read barcode to be read are set, calculates the number of pulses corresponding to the type and the number of digits of the barcode, and the calculated number of pulses. 7. When the number of pulses of the read and binarized bar code data group is smaller than that of the read bar code, a control for prohibiting writing of the bar code data group in the storage means is performed. 1. The bar code reader according to item 1.
【請求項3】 前記記憶手段からバーコードデータ群を
読出して解析を行うために、前記読取解析処理手段への
データの転送が完了したか否かの状態を示すフラグを各
前記記憶領域に対応して記憶しておく解析状態記憶手段
をさらに有し、前記記憶制御手段は前記フラグを参照し
て解析のためのデータの転送が完了していない記憶領域
へは新しいバーコードデータ群の書込みを禁止する制御
を行うことを特徴とする請求項1または2に記載のバー
コード読取り装置。
3. A flag indicating the status of whether or not the data transfer to the reading / analysis processing means is completed in order to read and analyze the bar code data group from the storage means, corresponding to each of the storage areas. Further, the storage control means refers to the flag to write a new bar code data group to a storage area in which transfer of data for analysis has not been completed. The bar code reader according to claim 1 or 2, wherein the bar code reader performs a prohibition control.
【請求項4】 前記記憶制御手段は前記記憶手段の前記
記憶領域に、前記バーコードデータ群と、さらに前記ス
キャン同期信号の現時点のスキャン周期時間とを記憶さ
せ、該スキャン周期時間が規定範囲外となった場合は警
報を発生することを特徴とする請求項1ないし3のいず
れかに記載のバーコード読取り装置。
4. The storage control means stores the bar code data group and the current scan cycle time of the scan synchronization signal in the storage area of the storage means, and the scan cycle time is out of a specified range. The bar code reader according to any one of claims 1 to 3, wherein an alarm is generated in the case of.
【請求項5】 前記記憶制御手段は前記記憶手段の記録
領域の数と、1つの該記憶領域当りに格納可能な最大デ
ータ数とを、読取り対象のバーコードの桁数が設定され
たときに対応してあらかじめ切換えることを特徴とする
請求項1ないし4のいずれかに記載のバーコード読取り
装置。
5. The storage control means sets the number of recording areas of the storage means and the maximum number of data that can be stored in one storage area when the number of digits of a bar code to be read is set. The bar code reader according to any one of claims 1 to 4, wherein the bar code reader is switched correspondingly in advance.
【請求項6】 前記転送手段は前記記憶領域に格納され
た前記バーコードデータ群を転送する毎に、転送した当
該記憶領域の順位番号を外部へ出力することを特徴とす
る請求項1ないし5のいずれかに記載のバーコード読取
り装置。
6. The transfer means outputs the rank number of the transferred storage area to the outside every time the bar code data group stored in the storage area is transferred. The barcode reader according to any one of 1.
JP5210566A 1993-08-25 1993-08-25 Bar code reader Pending JPH0765106A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5210566A JPH0765106A (en) 1993-08-25 1993-08-25 Bar code reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5210566A JPH0765106A (en) 1993-08-25 1993-08-25 Bar code reader

Publications (1)

Publication Number Publication Date
JPH0765106A true JPH0765106A (en) 1995-03-10

Family

ID=16591448

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5210566A Pending JPH0765106A (en) 1993-08-25 1993-08-25 Bar code reader

Country Status (1)

Country Link
JP (1) JPH0765106A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140061546A (en) 2011-09-28 2014-05-21 제이에프이 스틸 가부시키가이샤 Grain-oriented electrical steel sheet and manufacturing method thereof
KR20140133838A (en) 2012-02-08 2014-11-20 제이에프이 스틸 가부시키가이샤 Grain-oriented electrical steel sheet
US10020101B2 (en) 2011-12-22 2018-07-10 Jfe Steel Corporation Grain-oriented electrical steel sheet and method for producing same
US10147527B2 (en) 2011-12-28 2018-12-04 Jfe Steel Corporation Grain-oriented electrical steel sheet and method for manufacturing same

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140061546A (en) 2011-09-28 2014-05-21 제이에프이 스틸 가부시키가이샤 Grain-oriented electrical steel sheet and manufacturing method thereof
US10020101B2 (en) 2011-12-22 2018-07-10 Jfe Steel Corporation Grain-oriented electrical steel sheet and method for producing same
US10147527B2 (en) 2011-12-28 2018-12-04 Jfe Steel Corporation Grain-oriented electrical steel sheet and method for manufacturing same
KR20140133838A (en) 2012-02-08 2014-11-20 제이에프이 스틸 가부시키가이샤 Grain-oriented electrical steel sheet

Similar Documents

Publication Publication Date Title
JP2750083B2 (en) Scanning device
US5773806A (en) Method and apparatus for capturing a decodable representation of a 2D bar code symbol using a hand-held reader having a 1D image sensor
US6669091B2 (en) Scanner for and method of repetitively scanning a coded symbology
US4782220A (en) Method and apparatus for bar code data autodiscrimination
JP2616921B2 (en) Label identification device
EP0449634B1 (en) Omnidirectional bar code reader
US5414252A (en) High speed scan bar code reader which can read more than one type of bar code
US4414468A (en) Systematic error correction in bar code scanner
US4421978A (en) Decoding method for multicharacter labels
US5821520A (en) Bar code scanning system with the pre-decoding signal processing and method for bar code candidate selection for decoding
KR100309244B1 (en) Barcode reader
JPH0354388B2 (en)
JP2000099620A (en) Bar code reader and bar code reading method
JPH0765106A (en) Bar code reader
CA2364661A1 (en) Bar code scanning system and method
US5481097A (en) Apparatus and method for decoding bar codes
US5548107A (en) Scanner for reconstructing optical codes from a plurality of code fragments
JP3292635B2 (en) Barcode reader
JPS583073A (en) Bar-code read system
CA1151299A (en) Method and apparatus for identifying objects
JP2733951B2 (en) Barcode reader
JP2655758B2 (en) Barcode reader and barcode reading method
JPH0454527Y2 (en)
JPH09259216A (en) Bar code reader
JPH0525029Y2 (en)