JPH06195497A - Bar code decoder - Google Patents

Bar code decoder

Info

Publication number
JPH06195497A
JPH06195497A JP5146238A JP14623893A JPH06195497A JP H06195497 A JPH06195497 A JP H06195497A JP 5146238 A JP5146238 A JP 5146238A JP 14623893 A JP14623893 A JP 14623893A JP H06195497 A JPH06195497 A JP H06195497A
Authority
JP
Japan
Prior art keywords
code
bar
supplemental
character
parity
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
JP5146238A
Other languages
Japanese (ja)
Inventor
Yoshihiro Takayama
義弘 高山
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.)
Toshiba TEC Corp
Original Assignee
Tokyo 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 Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP5146238A priority Critical patent/JPH06195497A/en
Publication of JPH06195497A publication Critical patent/JPH06195497A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve versatile applicability by enabling the decode by the bidirectional reading for the bar code in which a supplemental code is attached to a standard code. CONSTITUTION:This decoder is provided with a decode processing means 11 inputting binary video signals showing bar code digital signals, bars space, outputting the character and parity of a standard code by decoding them and outputting various kinds of signals expressing a supplemental code by decoding the supplemental code and a sequence controller 14 detecting the character and parity of the standard code, determining a code type from a set parity pattern based on the parity pattern, detecting the character and the parity of the supplemental code and determining the code type from the set parity pattern based on the parity pattern.

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 decoder for bar codes consisting of standard codes and supplemental codes.

【0002】[0002]

【従来の技術】バーコード読取装置は、図10に示すよ
うに、レーザ発生器等の光ビーム発生器1からの光ビー
ムをポリゴンミラーや振動ミラー等の偏向器2に照射し
て偏向し、その偏向光でバーコードラベル3上を走査す
る。そしてバーコードラベル3からの反射光を光検出器
4で検出した後、アナログ回路5で光電変換、信号増
幅、A/D変換等の処理を行ってバーコードの各バー幅
に対応した時間幅を持つバーコードデジタル信号及びバ
ーとスペースを表わす2値のビデオ信号を出力してい
る。
2. Description of the Related Art A bar code reader, as shown in FIG. 10, irradiates a light beam from a light beam generator 1 such as a laser generator onto a deflector 2 such as a polygon mirror or a vibrating mirror to deflect the light beam. The deflected light scans the barcode label 3. After the reflected light from the barcode label 3 is detected by the photodetector 4, the analog circuit 5 performs processes such as photoelectric conversion, signal amplification, A / D conversion, etc., and a time width corresponding to each bar width of the barcode. And a binary video signal representing a bar and a space are output.

【0003】このバーコードデジタル信号及びビデオ信
号はデコーダ6に入力し、そのデコーダ6で各信号によ
るコード符号をデコードするようになっている。すなわ
ちバー及びスペースの変遷を所定の期間(間隔)として
遅延処理させ、後述する所定の関係を満足するときはい
つでもキャラクタとして発生させるようになっている。
The bar code digital signal and the video signal are input to a decoder 6, and the decoder 6 decodes the code code of each signal. That is, the transition of the bar and the space is delayed for a predetermined period (interval) and is generated as a character whenever a predetermined relationship described later is satisfied.

【0004】デコーダ6においては、4つの隣合うバー
コードデジタル信号の和と先行する4つの隣合うバーコ
ードデジタル信号の和との割合によってキャラクタを判
断し、理論値で85%(27/32)を満足する場合に
キャラクタとして判断する。
In the decoder 6, the character is judged by the ratio of the sum of four adjacent bar code digital signals and the sum of the preceding four adjacent bar code digital signals, and the theoretical value is 85% (27/32). If the above is satisfied, it is judged as a character.

【0005】キャラクタとバーコードデジタル信号及び
ビデオ信号との関係は以下の条件で決定されるようにな
っている。
The relationship between the character and the bar code digital signal and the video signal is determined under the following conditions.

【0006】なお、0〜9の数として表わされるキャラ
クタは一般的なモジュール(バー幅又はスペース幅の最
小単位)による判定法があり、またパリティの決定も同
様な方法で行われるようになっている。。
Characters represented by the numbers 0 to 9 can be judged by a general module (bar width or space width minimum unit), and parity can be determined by the same method. There is. .

【0007】例えばUPCコードは右マージン及びガー
ドバー、左マージン及びガードバー、左右のキャラクタ
コードを分断する中央バーを持っている。
For example, the UPC code has a right margin and a guard bar, a left margin and a guard bar, and a central bar dividing the left and right character codes.

【0008】このようなUPCコードに対して、現在の
デコード位置をi、バーコードデジタル信号をD
(i)、4つの隣合うバーコードデジタル信号の和、す
なわち{D(i−3)+D(i−2)+D(i−1)+
D(i)}をS(i)、ビデオ信号としてバーのときは
正論理V(i)、スペースのときは負論理V(i)とし
て条件決定について述べる。
For such a UPC code, the current decoding position is i and the bar code digital signal is D
(I) Sum of four adjacent barcode digital signals, that is {D (i-3) + D (i-2) + D (i-1) +
The condition determination will be described by setting D (i)} to S (i), positive logic V (i) for a bar as a video signal, and negative logic V (i) for a space.

【0009】左マージン及びガードバーは左マージンが
5モジュール以上、ガードバーは1モジュールのバー・
スペース・バーが条件となる。
The left margin and the guard bar have a left margin of 5 modules or more, and the guard bar has a module of 1 module.
Space bar is a requirement.

【0010】これを満足する式として、 負論理V(i−1)&正論理V(i)&[S(i+4)
<85%×S(i)]&[31.25%×{D(i−
3)+D(i−2)}>D(i−1)+D(i)]を設
定する。
As an expression that satisfies this, negative logic V (i-1) & positive logic V (i) & [S (i + 4)
<85% x S (i)] & [31.25% x {D (i-
3) + D (i-2)}> D (i-1) + D (i)].

【0011】次に中央バーを左中央バーと右中央バーと
に区別して左右のキャラクタを分割する。
Next, the left and right characters are divided by distinguishing the center bar into a left center bar and a right center bar.

【0012】左中央バーは1モジュールのバー、スペー
スが条件となる。これを満足する式として、 負論理V(i−1)&正論理V(i)&[S(i)<8
5%×S(i−4)]&[負論理V(i−7)が右マー
ジン及びガードバーではない。]&[正論理V(i)が
左マージン及びガードバーではない。]&[正論理V
(i−4)が左マージン及びガードバーではない。]&
[S(i+1)が数1か2か7か8である。]&[S
(i)が数1か2か7か8である。] を設定する。
The left center bar requires a bar of one module and a space. As an expression that satisfies this, negative logic V (i-1) & positive logic V (i) & [S (i) <8
5% x S (i-4)] & [negative logic V (i-7) is not the right margin and guard bar. ] & [Positive logic V (i) is not the left margin and guard bar. ] & [Positive logic V
(I-4) is neither the left margin nor the guard bar. ] &
[S (i + 1) is the number 1 or 2 or 7 or 8. ] & [S
(I) is the number 1 or 2 or 7 or 8. ] Is set.

【0013】右中央バーは1モジュールのスペース、バ
ー、スペース、バーが条件となる。これを満足する式と
して、 負論理V(i)&正論理V(i−1)&[S(i)<8
5%×S(i+4)]&[負論理V(i+4)が右マー
ジン及びガードバーではない。]&[負論理V(i)が
右マージン及びガードバーではない。]&[S(i−
1)が数1か2か7か8である。]&[S(i)が数1
か2か7か8である。] を設定する。
The right center bar is subject to a space of one module, a bar, a space, and a bar. As an expression that satisfies this, negative logic V (i) & positive logic V (i-1) & [S (i) <8
5% × S (i + 4)] & [negative logic V (i + 4) is not the right margin and guard bar. ] & [Negative logic V (i) is not the right margin and guard bar. ] & [S (i-
1) is the number 1 or 2 or 7 or 8. ] & [S (i) is number 1
Or 2 or 7 or 8. ] Is set.

【0014】右マージン及びガードバーは右マージが5
モジュール以上、ガードバーは1モジュールのバー、ス
ペースが条件となる。これを満足する式として、 負論理V(i−2)&正論理V(i−3)&[S(i−
4)<85%×S(i)]&[31.25%×{D
(i)+D(i−1)}>D(i−1)+D(i−
2)]を設定する。
The right margin and guard bar have a right merge of 5
For modules and above, the guard bar requires one module bar and space. As an expression that satisfies this, negative logic V (i-2) & positive logic V (i-3) & [S (i-
4) <85% x S (i)] & [31.25% x {D
(I) + D (i-1)}> D (i-1) + D (i-
2)] is set.

【0015】前記デコーダ6からの有効キャラクタ及び
パリティデータは、シーケンス制御装置7に入力する。
The valid character and parity data from the decoder 6 are input to the sequence controller 7.

【0016】このシーケンス制御装置7は、変遷間隔が
4であることに着目した4シーケンス制御を行い、有効
キャラクタの左マージン及びガードバーをスタートキャ
ラクタ、左中央バーをストップキャラクタとして左側ハ
ーフセグメントの数データ及びパリティデータを格納す
る。同様に有効キャラクタの右中央バーをスタートキャ
ラクタ、右マージン及びガードバーをストップキャラク
タとして右側ハーフセグメントの数データ及びパリティ
データを格納する。なお、コードタイプテーブルを設
け、パリティデータのパターンからコードタイプも判定
できる。
The sequence control device 7 performs a four-sequence control focusing on the fact that the transition interval is 4, and uses the left margin of the effective character and the guard bar as the start character and the left center bar as the stop character to determine the number data of the left half segment. And store parity data. Similarly, the right center bar of the effective character is used as a start character, and the right margin and guard bar are used as stop characters to store the right half segment number data and parity data. A code type table can be provided to determine the code type from the pattern of parity data.

【0017】またラベルデータの中に図11に示すよう
なサプリメンタルコードがあると、シーケンス制御装置
7では右側ハーフセグメントのパリティ配列が「E,
E,E,E,E,E」であった場合に、以下に連続する
データの中にサプリメンタルコードが存在すると仮定し
て図11のタイミングチャートで示すサプリメンタルシ
ーケンスを起動してキャラクタを格納するようになって
いる。
If there is a supplemental code as shown in FIG. 11 in the label data, the sequence controller 7 determines that the parity array of the right half segment is "E,
E, E, E, E, E ”, it is assumed that there is a supplemental code in the following continuous data, and the supplemental sequence shown in the timing chart of FIG. 11 is activated to store the character. It is supposed to do.

【0018】すなわちガードバー信号により右マージン
及びガードバーを検出すると、ステップ7(変遷間隔
7)まで変遷してLOAD-P信号を第1のサプリメンタルキ
ャラクタの位置でハイレベルにする。そしてLOAD-P信号
のハイレベルにより第1のサプリメンタルキャラクタを
格納し、サプリメンタルカウンタのカウント動作を開始
しそのカウンタを1カウントする。
That is, when the right margin and the guard bar are detected by the guard bar signal, the process transitions to step 7 (transition interval 7) and the LOAD-P signal is set to the high level at the position of the first supplemental character. Then, the first supplemental character is stored according to the high level of the LOAD-P signal, the counting operation of the supplemental counter is started, and the counter is counted by one.

【0019】次にステップ6(変遷間隔6)の6シーケ
ンス制御を行い、変遷時のキャラクタを格納する。そし
てサプリメンタルカウンタが6カウントするまで6シー
ケンス制御を実行し、図11における相当する2キャラ
クタ及び図示しない何等かのキャラクタの合計6キャラ
クタをCPU8に転送する。
Next, 6 sequence control of step 6 (transition interval 6) is performed to store the character at the time of transition. Then, 6 sequence control is executed until the supplemental counter counts 6, and a total of 6 characters of the corresponding 2 characters in FIG. 11 and some character not shown are transferred to the CPU 8.

【0020】[0020]

【発明が解決しようとする課題】このようなデコーダ及
びシーケンス制御装置を使用したものでは、図12に示
すサプリメンタルコード(08の部分)を含むバーコー
ドに対して順方向(図中左側から右側への読取り)に対
するデコードはできるが逆方向(図中右側から左側への
読取り)に対するデコードはできなかった。しかしなが
らバーコードに対して順方向に走査しても逆方向に走査
してもデコードが可能でなければバーコード読取装置と
しては実際上は使用できないため、従来のバーコードデ
コーダはサプリメンタルコードを含むバーコードに対し
て使用できないという問題があった。
In the case of using such a decoder and sequence control device, a forward direction (from the left side to the right side in the figure) with respect to the bar code including the supplemental code (portion 08) shown in FIG. However, decoding in the opposite direction (reading from the right side to the left side in the figure) was not possible. However, a bar code reader cannot be practically used as a bar code reader unless the bar code can be scanned in the forward direction or in the reverse direction, and thus the conventional bar code decoder includes a supplemental code. There was a problem that it could not be used for barcodes.

【0021】そこで本発明は、サプリメンタルコードを
含むバーコードに対して双方向の読取りに対するデコー
ドができ、汎用性を向上できるバーコードデコーダを提
供しようとするものである。
Therefore, the present invention is intended to provide a bar code decoder capable of bidirectionally decoding a bar code including a supplemental code and improving versatility.

【0022】[0022]

【課題を解決するための手段】本発明は、少なくとも2
種類の幅値を有するバー及びスペースからなるバーコー
ドを、各バー及びスペースの幅に対応したバーコードデ
ジタル信号及びバー、スペースを表わす2値のビデオ信
号として入力し、その入力信号のコード符号をデコード
するバーコードデコーダにおいて、入力するバーコード
デジタル信号及びビデオ信号により標準コードのキャラ
クタデータ及びパリティデータをデコードするととも
に、標準コードとは独立してサプリメンタルコードのガ
ードバー及びマージンをデコードしサプリメンタルコー
ドを表わす各種信号を出力するデコード処理手段と、標
準コード及びサプリメンタルコードのパリティパターン
を設定したパリティパターン設定手段と、デコード処理
手段からのキャラクタデータ、パリティデータ及びサプ
リメンタルコードを表わす各種信号を取込み、サプリメ
ンタルコードを表わす各種信号をパリティパターン設定
手段に設定したサプリメンタルコードのパリティパター
ンと比較し、各種信号がサプリメンタルコードのパリテ
ィパターンに対して所定の関係が満足しているときバー
コードを有効と判定するバーコード判定手段を設けたも
のである。
The present invention comprises at least two aspects.
A bar code consisting of bars and spaces having different width values is input as a bar code digital signal corresponding to the width of each bar and space and a binary video signal representing the bar and space, and the code sign of the input signal is input. Bar code decoder for decoding In addition to decoding the character data and parity data of the standard code by the input bar code digital signal and video signal, the supplementary code by decoding the guard bar and margin of the supplemental code independently from the standard code. Decoding processing means for outputting various signals indicating the, the parity pattern setting means for setting the parity pattern of the standard code and the supplemental code, and the character data, the parity data and the supplemental code from the decoding processing means. The various signals representing the supplemental code are compared with the parity pattern of the supplemental code set in the parity pattern setting means, and the various signals satisfy the predetermined relationship with the parity pattern of the supplemental code. When the bar code is present, the bar code judging means for judging that the bar code is valid is provided.

【0023】[0023]

【作用】このような構成の本発明においては、入力する
バーコードデジタル信号及びビデオ信号によりデコード
処理手段は、標準コードのキャラクタデータ及びパリテ
ィデータをデコードするとともに、標準コードとは独立
してサプリメンタルコードのガードバー及びマージンを
デコードしサプリメンタルコードを表わす各種信号を出
力する。バーコード判定手段はデコード処理手段からの
キャラクタデータ、パリティデータ及びサプリメンタル
コードを表わす各種信号を取込むと、サプリメンタルコ
ードを表わす各種信号をパリティパターン設定手段に設
定したサプリメンタルコードのパリティパターンと比較
し、各種信号がサプリメンタルコードのパリティパター
ンに対して所定の関係が満足しているときバーコードを
有効と判定する。
In the present invention having such a structure, the decoding processing means decodes the character data and the parity data of the standard code by the input bar code digital signal and video signal, and supplements the standard code independently of the standard code. It decodes the guard bar and margin of the code and outputs various signals representing the supplemental code. When the bar code determination means fetches character data, parity data, and various signals representing the supplemental code from the decoding processing means, the various signals representing the supplemental code and the parity pattern of the supplemental code set in the parity pattern setting means are obtained. By comparison, the bar code is determined to be valid when various signals satisfy a predetermined relationship with the parity pattern of the supplemental code.

【0024】[0024]

【実施例】以下、本発明の一実施例を図面を参照して説
明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0025】図1に示すように、アナログ回路(図示せ
ず)からの各バー及びスペースの幅に対応したバーコー
ドデジタル信号及びバー、スペースを表わす2値のビデ
オ信号をデコード処理手段11に入力している。前記デ
コード処理手段11は標準コード用のデコード処理部1
2とサプリメンタルコード用のデコード処理部13を設
け、デコード処理部12で標準コードのキャラクタデー
タ及びパリティデータをデコードしてキャラクタデータ
及びパリティデータを出力し、またデコード処理部13
でサプリメンタルコードのガードバー及びマージンをデ
コードしサプリメンタルコードを表わす各種信号を出力
するようになっている。
As shown in FIG. 1, a bar code digital signal corresponding to the width of each bar and space and a binary video signal representing the bar and space from an analog circuit (not shown) are input to the decoding processing means 11. is doing. The decoding processing means 11 is a decoding processing unit 1 for standard codes.
2 and a decoding processing unit 13 for supplemental code are provided, and the decoding processing unit 12 decodes the character data and parity data of the standard code and outputs the character data and parity data.
It decodes the guard bar and margin of the supplemental code and outputs various signals representing the supplemental code.

【0026】前記デコード処理手段11からのキャラク
タデータ、パリティデータ、サプリメンタルコードを表
わす各種信号をシーケンス制御装置14に供給してい
る。
Various signals representing character data, parity data, and supplemental codes from the decoding processing means 11 are supplied to the sequence controller 14.

【0027】前記デコード処理手段11は各バー幅に対
応した時間幅を持つバーコードデジタル信号及びバー及
びスペースを表わす2値のビデオ信号に対して充分な値
のセットアップホールド時間が保証されたラッチタイミ
ングのクロックによって遅延処理し、後述する所定の関
係を満足するとキャラクタデータを発生し、条件を満足
しないときにはエラー信号を発生するようになってい
る。
The decoding processing means 11 is a latch timing for which a sufficient setup / hold time is guaranteed for a bar code digital signal having a time width corresponding to each bar width and a binary video signal representing a bar and a space. The clock is used to perform delay processing, and character data is generated when a predetermined relationship described later is satisfied, and an error signal is generated when the condition is not satisfied.

【0028】なお、各キャラクタに対して、0〜9は1
6進数、左マージン及びガードバーはAh、右マージン
及びガードバーはBh、左中央バーはDh、右中央バー
はEh、エラー信号はFhで示す。
For each character, 0-9 is 1
Hexadecimal, Ah for the left margin and guard bar, Bh for the right margin and guard bar, Dh for the left center bar, Eh for the right center bar, and Fh for the error signal.

【0029】またサプリメンタルコードに対して、入力
サプリメンタルガードバーはINAD、出力サプリメン
タルガードバーはOUTAD、入力サプリメンタルキャ
ラクタはINCH、出力サプリメンタルキャラクタはO
UTCHで示す。
For the supplemental code, the input supplemental guard bar is INAD, the output supplemental guard bar is OUTAD, the input supplemental character is INCH, and the output supplemental character is O.
Indicated by UTCH.

【0030】4つの隣合うバーコードデジタル信号の和
と先行する4つの隣合うバーコードデジタル信号の和と
の割合によってキャラクタを判断し、理論値で85%
(27/32)を満足する場合にキャラクタとして判断
するようになっている。
The character is judged by the ratio of the sum of the four adjacent bar code digital signals and the sum of the preceding four adjacent bar code digital signals, and the theoretical value is 85%.
When (27/32) is satisfied, the character is judged.

【0031】キャラクタとバーコードデジタル信号及び
ビデオ信号との関係は以下の条件で決定されるようにな
っている。但し、サプリメンタルキャラクタについては
この限りではない。
The relationship between the character and the bar code digital signal and the video signal is determined under the following conditions. However, this does not apply to supplementary characters.

【0032】サプリメンタルキャラクタの場合は隣合う
キャラクタの間に1モジュールのスペース及びバーがキ
ャラクタの区切りとして挿入されているため、この区切
りにおいてADEQL信号を発生させるようになってい
る。
In the case of supplementary characters, one module space and bar are inserted between adjacent characters as character delimiters, so that the ADEQL signal is generated at these delimiters.

【0033】ADEQL信号は4つの隣合うバーコード
デジタル信号の和とスペース及びバーの変遷相当分を先
行する4つの隣合うバーコードデジタル信号の和との割
合によって判断し、理論値で85%を満足するときは有
効であることを示す。
The ADEQL signal is judged by the ratio of the sum of four adjacent bar code digital signals and the transitional amount of space and bar to the sum of the preceding four adjacent bar code digital signals, and the theoretical value is 85%. When satisfied, it is effective.

【0034】ここで現在のデコード位置をi、バーコー
ドデジタル信号をD(i)、4つの隣合うバーコードデ
ジタル信号の和、すなわち{D(i−3)+D(i−
2)+D(i−1)+D(i)}をS(i)、ビデオ信
号としてバーのときは正論理V(i)、スペースのとき
は負論理V(i)として表わす。キャラクタAhは左マ
ージンが5モジュール以上、ガードバーは1モジュール
のバー・スペース・バーが条件となる。これを満足する
式として、 負論理V(i−1)&正論理V(i)&[S(i+4)
<85%×S(i)]&[31.25%×{D(i−
3)+D(i−2)}>D(i−1)+D(i)]を設
定する。
Here, the current decoding position is i, the bar code digital signal is D (i), and the sum of four adjacent bar code digital signals, that is, {D (i-3) + D (i-
2) + D (i-1) + D (i)} is represented as S (i), a positive logic V (i) when the video signal is a bar, and a negative logic V (i) when the video signal is a space. The character Ah must have a left margin of 5 modules or more, and the guard bar must be 1 module of bar space bar. As an expression that satisfies this, negative logic V (i-1) & positive logic V (i) & [S (i + 4)
<85% x S (i)] & [31.25% x {D (i-
3) + D (i-2)}> D (i-1) + D (i)].

【0035】キャラクタBhは右マージンが5モジュー
ル以上、ガードバーは1モジュールのバー・スペース・
バーが条件となる。これを満足する式として、 負論理V(i−2)&正論理V(i−3)&[S(i−
4)<85%×S(i)]&[31.25%×{D
(i)+D(i−1)}>D(i−1)+D(i−
2)]を設定する。
The character Bh has a right margin of 5 modules or more, and the guard bar has 1 module of bar space.
Bar is a requirement. As an expression that satisfies this, negative logic V (i-2) & positive logic V (i-3) & [S (i-
4) <85% x S (i)] & [31.25% x {D
(I) + D (i-1)}> D (i-1) + D (i-
2)] is set.

【0036】キャラクタDhは1モジュールのスペース
・バー・スペース・バーが条件となる。これを満足する
式として、 負論理V(i−1)&正論理V(i)&[S(i)<8
5%×S(i−4)]&[負論理V(i−7)がBhで
はない。]&[正論理V(i)がAhではない。]&
[正論理V(i−4)がAhではない。]&[S(i+
1)が数1か2か7か8である。]&[S(i)が数1
か2か7か8である。] を設定する。
The character Dh requires a space bar space bar of one module. As an expression that satisfies this, negative logic V (i-1) & positive logic V (i) & [S (i) <8
5% × S (i-4)] & [negative logic V (i-7) is not Bh. ] & [Positive logic V (i) is not Ah. ] &
[Positive logic V (i-4) is not Ah. ] & [S (i +
1) is the number 1 or 2 or 7 or 8. ] & [S (i) is number 1
Or 2 or 7 or 8. ] Is set.

【0037】キャラクタEhは1モジュールのバー・ス
ペース・バー・スペースが条件となる。これを満足する
式として、 負論理V(i)&正論理V(i−1)&[S(i)<8
5%×S(i+4)]&[負論理V(i+4)がBhで
はない。]&[負論理V(i)がBhではない。]&
[S(i−1)が数1か2か7か8である。]&[S
(i)が数1か2か7か8である。] を設定する。
The character Eh is required to have a bar space bar space of one module. As an expression that satisfies this, negative logic V (i) & positive logic V (i-1) & [S (i) <8
5% × S (i + 4)] & [negative logic V (i + 4) is not Bh. ] & [Negative logic V (i) is not Bh. ] &
[S (i-1) is the number 1 or 2 or 7 or 8. ] & [S
(I) is the number 1 or 2 or 7 or 8. ] Is set.

【0038】次にサプリメンタルコードを表わす各種信
号として、INADは7〜10モジュールのスペース及
び1モジュールのバー・スペース及び2モジュールのバ
ーが条件となる。これを満足する式として、 負論理V(i−1)&正論理V(i)&[40.6%×
{D(i−3)+D(i−2)}>D(i−1)+D
(i)]&[25.0%×{D(i−3)+D(i−
2)}<D(i−1)+D(i)] を設定する。
Next, as various signals representing supplemental codes, INAD requires a space of 7 to 10 modules, a bar space of 1 module and a bar of 2 modules. As an expression that satisfies this, negative logic V (i-1) & positive logic V (i) & [40.6% x
{D (i-3) + D (i-2)}> D (i-1) + D
(I)] & [25.0% x {D (i-3) + D (i-
2)} <D (i-1) + D (i)] is set.

【0039】OUTADは2モジュールのバー及び1モ
ジュールのスペース・バー及び7〜10モジュールのス
ペースが条件となる。これを満足する式として、 負論理V(i−2)&正論理V(i−3)&[40.6
%×{D(i)+D(i−1)}>D(i−2)+D
(i−3)]&[25.0%×{D(i)+D(i−
1)}<D(i−2)+D(i−3)] を設定する。
OUTAD is subject to a bar of 2 modules, a space bar of 1 module and a space of 7 to 10 modules. As an expression that satisfies this, negative logic V (i-2) & positive logic V (i-3) & [40.6
% × {D (i) + D (i-1)}> D (i-2) + D
(I-3)] & [25.0% x {D (i) + D (i-
1)} <D (i-2) + D (i-3)].

【0040】INCHは5モジュール以上のスペース及
びキャラクタを構成する2つのバー及びスペースが条件
となる。これを満足する式として、 負論理V(i)&正論理V(i−1)&[62.5%×
S(i)>D(i−4)] を設定する。
The INCH is required to have a space of 5 modules or more and two bars and spaces forming a character. As an expression that satisfies this, negative logic V (i) & positive logic V (i-1) & [62.5% x
S (i)> D (i-4)] is set.

【0041】OUTCHはキャラクタを構成する2つの
スペース、バー及び5モジュール以上のスペースが条件
となる。これを満足する式として、 負論理V(i−1)&正論理V(i)&[62.5%×
S(i)>D(i+1)] を設定する。
OUTCH is required to have two spaces forming a character, a bar, and a space of 5 modules or more. As an expression that satisfies this, negative logic V (i-1) & positive logic V (i) & [62.5% x
S (i)> D (i + 1)] is set.

【0042】前記シーケンス制御装置14は、標準コー
ドシーケンス部15、バーコードラベル判定手段16及
びパリティパターン設定手段としてのパリティパターン
テーブル17を設け、変遷間隔が4であることに着目し
た4シーケンス制御を行い、有効キャラクタのAhをス
タートキャラクタ、Dhをストップキャラクタとして左
側ハーフセグメントの数データ及びパリティデータを格
納する。同様に有効キャラクタのEhをスタートキャラ
クタ、Bhをストップキャラクタとして右側ハーフセグ
メントの数データ及びパリティデータを格納する。
The sequence control device 14 is provided with a standard code sequence section 15, a bar code label determining means 16 and a parity pattern table 17 as a parity pattern setting means, and carries out a four sequence control focusing on a transition interval of 4. Then, the number data and the parity data of the left half segment are stored with the effective character Ah as the start character and Dh as the stop character. Similarly, with the valid character Eh as the start character and Bh as the stop character, the right half segment number data and parity data are stored.

【0043】例えば図12に示すサプリメンタルコード
を含むバーコードラベルを図中矢印で示すように走査し
たときには、デコード処理手段11では各バー及び各ス
ペースの変遷毎に前述したキャラクタ決定条件により判
定する。
For example, when the bar code label including the supplemental code shown in FIG. 12 is scanned as shown by the arrow in the figure, the decoding processing means 11 makes a determination according to the above-mentioned character determination condition for each transition of each bar and each space. .

【0044】スタートキャラクタであるキャラクタ(右
中央バー)Ehがシーケンス制御装置14の標準コード
シーケンス部15によりサイクル1で捕獲されたとする
と、サイクル1で捕獲される有効キャラクタは図2の
(a) に示すキャラクタとなる。
Assuming that the character (right center bar) Eh which is the start character is captured in the cycle 1 by the standard code sequence unit 15 of the sequence controller 14, the effective character captured in the cycle 1 is shown in FIG.
It becomes the character shown in (a).

【0045】前記シーケンス制御装置14はキャラクタ
Bh、すなわち右マージン及びガードバーを認識した時
点で、1つのハーフセグメントを得られたことを知る。
またこのとき有効キャラクタデータと同時にパリティデ
ータも捕獲することになる。
The sequence control device 14 recognizes that one half segment has been obtained when the character Bh, that is, the right margin and the guard bar are recognized.
At this time, the parity data is captured at the same time as the valid character data.

【0046】そしてシーケンス制御装置14はスタート
及びストップキャラクタに囲まれた数を表わすキャラク
タデータ及びパリティデータを記憶し、さらにパリティ
パターン(EEEEEE)に基づいてコードタイプを前
記パリティパターンテーブル17を参照して決定する。
The sequence controller 14 stores the character data and the parity data representing the number surrounded by the start and stop characters, and further refers to the parity pattern table 17 to determine the code type based on the parity pattern (EEEEEE). decide.

【0047】前記シーケンス制御装置14は続いてデコ
ード処理手段11から図3に示すサプリメンタルラベル
を取り込みバーコードラベル判定手段16で判定する。
すなわちサプリメンタルコードのスタートキャラクタと
なるINADをストップキャラクタ、すなわちキャラク
タBhの検知後変遷間隔3の位置で検出すると、サプリ
メンタルキャラクタを捕獲する。
The sequence controller 14 subsequently takes in the supplemental label shown in FIG. 3 from the decoding processing means 11 and makes a judgment by the bar code label judging means 16.
That is, when INAD which is the start character of the supplemental code is detected at the position of the stop character, that is, the transition interval 3 after the detection of the character Bh, the supplementary character is captured.

【0048】INADを検出した後、第1捕獲は変遷間
隔4、第2捕獲は変遷間隔6で順次キャラクタを捕獲
し、OUTCHを検出するまで捕獲処理を実行し、この
とき標準コードと同様に有効キャラクタを捕獲するため
にADEQL信号が成立するときのキャラクタのみを有
効キャラクタとみなして捕獲する。このときキャラクタ
データとともにパリティデータ(00)も捕獲する。
After detecting INAD, the first capture sequentially captures characters at the transition interval 4 and the second capture at the transition interval 6 and the capture process is executed until OUTCH is detected. At this time, it is effective as in the standard code. Only the character when the ADEQL signal is established to capture the character is regarded as the valid character and is captured. At this time, the parity data (00) is captured together with the character data.

【0049】前記シーケンス制御装置14は、OUTC
Hを認識した時点でハーフセグメントに付随したサプリ
メンタルラベルを得たことを知る。なお、このときサプ
リメンタルカウンタを使用して捕獲したサプリメンタル
キャラクタ数「2」をカウントすればサプリメンタルキ
ャラクタの捕獲処理がより確実となる。
The sequence controller 14 controls the OUTC
When H is recognized, the supplemental label attached to the half segment is obtained. At this time, if the number of supplemental characters “2” captured using the supplemental counter is counted, the supplemental character capturing process becomes more reliable.

【0050】前記シーケンス制御装置14は、INAD
及びOUTCHで囲まれ、かつOUTCHを含む数を表
わすキャラクタデータ及びパリティデータを記憶し、さ
らにパリティパターン(00)に基づいて有効パリティ
であるか、すなわち有効ラベルであるかの判定を表1に
示すような前記パリティパターンテーブル17のサプリ
メンタルコード用テーブルを参照して決定する。
The sequence controller 14 uses INAD
Character data and parity data that represent a number including OUTCH and OUTCH are stored, and Table 1 shows the determination whether the parity is valid parity, that is, the valid label, based on the parity pattern (00). The determination is made by referring to the supplemental code table of the parity pattern table 17 as described above.

【0051】また例えば図12に示すサプリメンタルコ
ードを含むバーコードラベルを図中矢印で示す方向とは
逆の方向に走査したときには、前記シーケンス制御装置
14は先ずデコード処理手段11から図4に示すサプリ
メンタルラベルを取り込みバーコードラベル判定手段1
6で判定する。すなわち第1サプリメンタルキャラクタ
であるINCHを検出すると、第2キャラクタを変遷間
隔6で捕獲し、さらにOUTADを検出する。そして有
効キャラクタを捕獲するためにADEQL信号が成立す
るときのキャラクタのみを有効キャラクタとみなす。
Further, for example, when the bar code label including the supplemental code shown in FIG. 12 is scanned in the direction opposite to the direction shown by the arrow in the figure, the sequence control device 14 first causes the decoding processing means 11 to show in FIG. Bar code label determination means 1 that takes in supplemental labels
Judge at 6. That is, when INCH which is the first supplemental character is detected, the second character is captured at the transition interval 6 and OUTAD is further detected. Then, only the character when the ADEQL signal is established to capture the effective character is regarded as the effective character.

【0052】このときサプリメンタルカウンタを使用し
て捕獲したサプリメンタルキャラクタ数「2」をカウン
トする。この逆方向読取り時にサプリメンタルカウンタ
てサプリメンタルキャラクタ数をカウントすることはき
わめて有効となる。これはINCH及びOUTADで囲
まれたサプリメンタルコードの後には必ず標準バーコー
ドラベルが存在し、これを確認するのに必要となる。す
なわちサプリメンタルカウンタが「2」以外のカウント
を行っている状態でOUTADを検出しても有効ラベル
として認めないという条件で処理ができる。
At this time, the supplemental counter is used to count the number of supplementary characters “2” captured. It is very effective to count the number of supplemental characters by the supplemental counter at the time of reading in the reverse direction. This is necessary to confirm the standard bar code label that always exists after the supplemental code surrounded by INCH and OUTAD. That is, processing can be performed under the condition that OUTAD is not recognized as a valid label even when OUTAD is detected while the supplemental counter is counting other than "2".

【0053】そしてOUTADを検出した後、変遷間隔
3でキャラクタAh(左マージン及びガードバー)を確
認した時点でサプリメンタルコードを捕獲できたと判定
すればよいことになる。
Then, after detecting OUTAD, when the character Ah (left margin and guard bar) is confirmed at the transition interval 3, it is determined that the supplemental code can be captured.

【0054】これらの条件を満足して捕獲される有効キ
ャラクタは図4に示すキャラクタとなる。このとき有効
キャラクタデータとともにパリティデータ(00)も捕
獲することになる。
An effective character that is captured while satisfying these conditions is the character shown in FIG. At this time, the parity data (00) is captured together with the valid character data.

【0055】前記シーケンス制御装置14は、INCH
及びOUTADに囲まれ、かつINCH0含む数を表わ
すキャラクタデータ及びパリティデータを記憶し、さら
にパリティパターン(00)に基づいて有効パリティで
あるか、すなわち有効ラベルであるかを表1に示すよう
なパリティパターンテーブル17のサプリメンタルコー
ド用テーブルを参照して決定する。
The sequence controller 14 uses the INCH
Character data and parity data that represent a number including INCH0 and are surrounded by OUTAD and OUTAD, and whether parity is valid parity, that is, valid label, based on the parity pattern (00), as shown in Table 1. It is determined by referring to the supplemental code table of the pattern table 17.

【0056】前記シーケンス制御装置14は、キャラク
タAhを確認した時点で引き続き標準コードのバーコー
ドラベルを標準コードシーケンス部15で捕獲する。す
なわちスタートキャラクタであるキャラクタAhがサイ
クル2で捕獲すると、サイクル2で捕獲した有効キャラ
クタは図2の(b) に示すキャラクタとなる。
The sequence control device 14 continuously captures the bar code label of the standard code by the standard code sequence section 15 when the character Ah is confirmed. That is, when the character Ah, which is the start character, is captured in cycle 2, the effective character captured in cycle 2 becomes the character shown in FIG. 2 (b).

【0057】前記シーケンス制御装置14はキャラクタ
Dh、すなわち左中央バーを認識した時点で、1つのハ
ーフセグメントを得られたことを知る。またこのとき有
効キャラクタデータと同時にパリティデータも捕獲する
ことになる。
The sequence controller 14 recognizes that one half segment has been obtained when the character Dh, that is, the left center bar is recognized. At this time, the parity data is captured at the same time as the valid character data.

【0058】そしてシーケンス制御装置14はスタート
及びストップキャラクタに囲まれた数を表わすキャラク
タデータ及びパリティデータを記憶し、さらにパリティ
パターン(EEEEEE)に基づいてコードタイプを前
記パリティパターンテーブル17を参照して決定する。
The sequence controller 14 stores the character data and the parity data representing the number surrounded by the start and stop characters, and further refers to the parity pattern table 17 for the code type based on the parity pattern (EEEEEE). decide.

【0059】[0059]

【表1】 このようにサプリメンタルラベルについては読み取った
サプリメンタルコードからデコード処理手段11がIN
AD、OUTCH、INCH、OUTAD等のサプリメ
ンタルコードを表わす各種信号を発生し、その各種信号
からシーケンス制御装置14が有効キャラクタ及びその
パリティパターンを検出し、さらにパリティパターンを
パリティパターンテーブル17のサプリメンタルコード
用テーブルを参照して有効ラベルか否かを決定するよう
にしているので、サプリメンタルラベルに対しても標準
ラベルと同様に双方向の読取り走査が可能となる。
[Table 1] As described above, for the supplemental label, the decoding processing means 11 makes an IN from the read supplemental code.
Various signals representing supplemental codes such as AD, OUTCH, INCH, OUTAD are generated, the sequence controller 14 detects the valid character and its parity pattern from the various signals, and the parity pattern is supplemented by the parity pattern table 17. Since it is determined whether the label is a valid label or not by referring to the code table, it is possible to perform bidirectional reading scanning for the supplemental label as well as the standard label.

【0060】従って標準ラベルのみからなるバーコード
ラベルのデコードは勿論、標準ラベルにサプリメンタル
ラベルが付随したバーコードラベルに対するデコードが
可能となり、汎用性を向上できる。
Therefore, it is possible to decode a bar code label consisting only of standard labels, as well as a bar code label in which a supplemental label is attached to a standard label, and it is possible to improve versatility.

【0061】なお、上記ではサプリメンタルラベルのキ
ャラクタ数が2個の場合について述べたが、図5及び図
6に示すようなキャラクタ数が5個の場合であっても同
様の処理により双方向読取りに対するデコードが可能と
なる。
Although the case where the number of characters of the supplemental label is two has been described above, even when the number of characters of the supplemental label is five as shown in FIGS. 5 and 6, bidirectional reading is performed by the same processing. Can be decoded.

【0062】すなわち図5は順方向読取り時のサプリメ
ンタルラベルのキャラクタとパリティパターン及び各種
信号のタイミングを示し、また図6は逆方向読取り時の
サプリメンタルラベルのキャラクタとパリティパターン
及び各種信号のタイミングを示している。そしてこのサ
プリメンタルラベルが有効ラベルか否かを決定するサプ
リメンタルコード用テーブルとしては表2のテーブルを
使用すればよい。
That is, FIG. 5 shows the supplemental label character and parity pattern and various signal timings during forward reading, and FIG. 6 shows the supplemental label character and parity pattern and various signal timings during backward reading. Is shown. Then, the table of Table 2 may be used as a supplemental code table for determining whether or not this supplemental label is an effective label.

【0063】[0063]

【表2】 次に本発明の他の実施例を図面を参照して説明する。[Table 2] Next, another embodiment of the present invention will be described with reference to the drawings.

【0064】これは図7に示すように、各バー及びスペ
ースの幅に対応したバーコードデジタル信号及びバー、
スペースを表わす2値のビデオ信号をバーコード読取部
21に入力している。
As shown in FIG. 7, this is a bar code digital signal and bar corresponding to the width of each bar and space,
A binary video signal representing a space is input to the barcode reading unit 21.

【0065】前記バーコード読取部21は、標準コード
のデコードを実行する標準コード用デコードアルゴリズ
ム実行手段22、サプリメンタルコードのデコードを実
行するサプリメンタルコード用デコードアルゴリズム実
行手段23、この各実行手段22,23の結果及びパリ
ティパターンテーブル17により標準コードラベルか標
準コードとサプリメンタルコードが対となったラベルか
を判定するラベル判定部24を設けている。前記各アル
ゴリズム実行手段22,23はデコード処理手段を構成
し、ラベル判定部24はバーコード判定手段を構成して
いる。
The bar code reading section 21 includes standard code decoding algorithm executing means 22 for executing standard code decoding, supplemental code decoding algorithm executing means 23 for executing supplemental code decoding, and each executing means 22. , 23 and the parity pattern table 17 are provided with a label determination unit 24 for determining whether the label is a standard code label or a label in which a standard code and a supplemental code are paired. Each of the algorithm executing means 22 and 23 constitutes a decoding processing means, and the label judging section 24 constitutes a bar code judging means.

【0066】前記ラベル判定部24で判定した結果、す
なわちキャラクタデータとコードタイプを記憶部25に
転送し記憶している。前記記憶部25はキャラクタデー
タとコードタイプを記憶するとCPU26に知らせるよ
うになっている。これによりCPU25はバーコードラ
ベルが読み取られたことを知り、その後いつでも記憶部
25からバーコードデータを得ることができる。
The result determined by the label determination unit 24, that is, the character data and the code type are transferred to the storage unit 25 and stored therein. The storage unit 25 notifies the CPU 26 that it stores character data and code type. As a result, the CPU 25 knows that the barcode label has been read and can always obtain the barcode data from the storage unit 25 thereafter.

【0067】例えば現在のデコード位置をi、バーコー
ドデジタル信号をD(i)、隣合うバーコードデジタル
信号の和、すなわち{D(i−1)+D(i)}をT
(i)、4つの隣合うバーコードデジタル信号の和、す
なわち{T(i−2)+T(i)}をS(i)、ビデオ
信号としてバーのときは正論理V(i)、スペースのと
きは負論理V(i)として表わすとすれば、前記標準コ
ード用デコードアルゴリズム実行手段22は、以下のア
ルゴリズムを実行する。
For example, the current decoding position is i, the bar code digital signal is D (i), the sum of adjacent bar code digital signals, that is, {D (i-1) + D (i)} is T.
(I) The sum of four adjacent bar code digital signals, that is, {T (i-2) + T (i)} is S (i), positive logic V (i) when a bar is used as a video signal, space If it is expressed as negative logic V (i), the standard code decoding algorithm executing means 22 executes the following algorithm.

【0068】入力マージンは、 正論理V(i−2)&負論理V(i−1)&正論理V
(i)&[S(i+4)<85%×S(i)]&[3
1.25%×T(i)>T(i−2)]&[31.25
%×T(i)>T(i−1)]を設定する。
The input margin is positive logic V (i-2) & negative logic V (i-1) & positive logic V
(I) & [S (i + 4) <85% × S (i)] & [3
1.25% x T (i)> T (i-2)] & [31.25
% × T (i)> T (i-1)] is set.

【0069】出力マージンは、 正論理V(i−3)&負論理V(i−2)&正論理V
(i−1)&負論理V(i)&[S(i−4)<85%
×S(i)]&[31.25%×T(i)>T(i−
2)]&[31.25%×T(i)>T(i−1)]を
設定する。
The output margin is as follows: positive logic V (i-3) & negative logic V (i-2) & positive logic V
(I-1) & negative logic V (i) & [S (i-4) <85%
XS (i)] & [31.25% x T (i)> T (i-
2)] & [31.25% × T (i)> T (i-1)].

【0070】入力中央バーは、 負論理V(i−4)&正論理V(i−3)&負論理V
(i−2)&正論理V(i−1)&負論理V(i)&
[S(i+4)が出力マージンではない。]&[42.
97%×S(i+4)<S(i)<78.91%S(i
+4)]&[S(i−1)が数1か2か7か8であ
る。]を設定する。
The input center bar is: negative logic V (i-4) & positive logic V (i-3) & negative logic V
(I-2) & positive logic V (i-1) & negative logic V (i) &
[S (i + 4) is not the output margin. ] & [42.
97% × S (i + 4) <S (i) <78.91% S (i
+4)] & [S (i-1) is the number 1 or 2 or 7 or 8. ] Is set.

【0071】出力中央バーは、 正論理V(i−3)&負論理V(i−2)&正論理V
(i)&負論理V(i−1)&[S(i−4)が入力マ
ージンではない。]&[42.97%×S(i−4)<
S(i)<78.91%S(i−4)]&[S(i−
1)が数1か2か7か8である。]を設定する。
The output center bar has positive logic V (i-3) & negative logic V (i-2) & positive logic V
(I) & negative logic V (i-1) & [S (i-4) is not an input margin. ] & [42.97% × S (i-4) <
S (i) <78.91% S (i-4)] & [S (i-
1) is the number 1 or 2 or 7 or 8. ] Is set.

【0072】各設定値は、変遷間隔が4であることに着
目した4シーケンス制御を行い、入力マージンをスター
ト、出力中央バーをストップとして左側ハーフセグメン
トのキャラクタデータ及びパリティデータを捕獲する。
For each set value, four sequence control is performed with attention paid to the transition interval of 4, and character data and parity data of the left half segment are captured with the input margin as the start and the output center bar as the stop.

【0073】同様に、入力中央バーをスタート、出力マ
ージンをストップとして右ハーフセグメントのキャラク
タデータ及びパリティデータを捕獲する。
Similarly, the character data and parity data of the right half segment are captured using the input center bar as the start and the output margin as the stop.

【0074】そして前記標準コード用デコードアルゴリ
ズム実行手段22は、捕獲したキャラクタ及びコードタ
イプを前記ラベル判定部24に出力する。
The standard code decoding algorithm executing means 22 outputs the captured character and code type to the label determining section 24.

【0075】また、前記サプリメンタルコード用デコー
ドアルゴリズム実行手段23は、以下の以下のアルゴリ
ズムを実行する。
The decoding algorithm executing means 23 for supplemental code executes the following algorithm.

【0076】入力サプリメンタルマージンは、 負論理V(i−3)&正論理V(i−2)&正論理V
(i−1)&負論理V(i)&[40.6%×T(i−
2)>T(i)]&[25.0%×T(i)≦T(i−
2)]を設定する。
The input supplemental margin is as follows: negative logic V (i-3) & positive logic V (i-2) & positive logic V
(I-1) & negative logic V (i) & [40.6% x T (i-
2)> T (i)] & [25.0% × T (i) ≦ T (i−
2)] is set.

【0077】出力サプリメンタルマージンは、 正論理V(i−3)&負論理V(i−2)&正論理V
(i−1)&負論理V(i)&[40.6%×T(i)
>T(i−2)]&[25.0%×T(i−2)≦T
(i)]を設定する。
The output supplemental margin is as follows: positive logic V (i-3) & negative logic V (i-2) & positive logic V
(I-1) & negative logic V (i) & [40.6% x T (i)
> T (i-2)] & [25.0% × T (i-2) ≦ T
(I)] is set.

【0078】入力キャラクタは、 負論理V(i)&正論理V(i−1)&[62.5%×
S(i)<D(i−4)]を設定する。
The input character is: negative logic V (i) & positive logic V (i-1) & [62.5% ×
S (i) <D (i-4)] is set.

【0079】出力キャラクタは、 負論理V(i+1)&正論理V(i)&[62.5%×
S(i)<D(i+1)]を設定する。
The output character is: negative logic V (i + 1) & positive logic V (i) & [62.5% ×
S (i) <D (i + 1)] is set.

【0080】各設定値は、入力サプリメンタルマージン
をスタート、出力キャラクタをストップとして順方向の
サプリメンタルコードのキャラクタデータ及びパリティ
データを捕獲する。
Each set value captures the character data and the parity data of the supplemental code in the forward direction with the input supplemental margin as the start and the output character as the stop.

【0081】同様に、入力キャラクタをスタート、出力
サプリメンタルマージンをストップとして逆方向のサプ
リメンタルコードのキャラクタデータ及びパリティデー
タを捕獲する。
Similarly, the character data and the parity data of the supplementary code in the opposite direction are captured with the input character as the start and the output supplemental margin as the stop.

【0082】そして前記サプリメンタルコード用デコー
ドアルゴリズム実行手段23は、捕獲したキャラクタ及
びコードタイプを前記ラベル判定部24に出力する。
The supplemental code decoding algorithm executing means 23 outputs the captured character and code type to the label determining section 24.

【0083】前記ラベル判定部24は、前記標準コード
用デコードアルゴリズム実行手段22からのパリティデ
ータに基づいて前記パリティパターンテーブル17を参
照してバーコードラベルを判定する。
The label judging section 24 judges the bar code label by referring to the parity pattern table 17 based on the parity data from the standard code decoding algorithm executing means 22.

【0084】このような構成の実施例では、サプリメン
タルコード付きのバーコードラベルを例えば右側のハー
フセグメントとサプリメンタルコードを走査すると、先
ず標準コード用デコードアルゴリズム実行手段22は、
図2の(a) に示すように、スタートとなる入力中央バー
Eがトリガーとなり、変遷間隔4でキャラクタを捕獲す
る。そして出力マージンBを認識した時点で右側のハー
フセグメントを得たことを知る。このとき同時にパリテ
ィデータも捕獲する。
In the embodiment having such a configuration, when the bar code label with the supplemental code is scanned, for example, on the right half segment and the supplemental code, the standard code decoding algorithm executing means 22 first
As shown in FIG. 2 (a), the input center bar E which is the start triggers to capture the character at the transition interval 4. Then, when the output margin B is recognized, it is known that the right half segment has been obtained. At this time, the parity data is also captured at the same time.

【0085】ラベル判定部24は、スタート及びストッ
プで囲まれたキャラクタデータ及びパリティデータを記
憶し、さらにパリティパターン(EEEEEE)に基づ
いてコードタイプをパリティパターンテーブル17を参
照して決定する。このコードタイプはサプリメンタルコ
ードが付随する可能性があるため、キャラクタコード及
びコードタイプを記憶部24に転送すると同時に内部に
設けられたフラグメモリFをセットする。このフラグメ
モリFのセット状態は次の標準コードが入力するか、サ
プリメンタルコードが入力するまで保持し、前記記憶部
24はフラグメモリFのセット状態を知るとCPU25
に対するラベル読取りを知らせない。この状態はフラグ
メモリFがリセット状態になるまで継続する。
The label determining unit 24 stores the character data and the parity data surrounded by the start and stop, and further determines the code type based on the parity pattern (EEEEEE) by referring to the parity pattern table 17. Since this code type may be accompanied by a supplemental code, the character code and the code type are transferred to the storage unit 24, and at the same time, the flag memory F provided inside is set. The set state of the flag memory F is held until the next standard code is input or the supplemental code is input, and when the storage section 24 knows the set state of the flag memory F, the CPU 25
Do not notify the label reading for. This state continues until the flag memory F is reset.

【0086】次にサプリメンタルコード用デコードアル
ゴリズム実行手段23は、図8に示すように、スタート
となる入力サプリメンタルマージンがトリガーとなり、
変遷間隔4で第1キャラクタを捕獲し、キャラクタ間に
挿入しているバーとスペースを含む変遷間隔6で第2の
キャラクタ以降を順次捕獲する。そして出力キャラクタ
を認識した時点で1つの順方向サプリメンタルコードを
得たことを知る。このとき同時にパリティデータも捕獲
する。
Next, as shown in FIG. 8, the supplemental code decoding algorithm executing means 23 is triggered by the input supplemental margin which is the start,
The first character is captured at transition intervals 4, and the second and subsequent characters are sequentially captured at transition intervals 6 including the bars and spaces inserted between the characters. Then, when the output character is recognized, it is known that one forward supplemental code is obtained. At this time, the parity data is also captured at the same time.

【0087】ラベル判定部24では、スタート及びスト
ップで囲まれたキャラクタデータ及びパリティデータを
記憶し、さらにパリティパターン「00E0E」に基づ
いてコードタイプをパリティパターンテーブル17を参
照して決定する。すなわち表2を参照して決定する。そ
してフラグメモリFがセットされていることを確認して
記憶部24にキャラクタデータ及びコードタイプを転送
し、同時にフラグメモリFをリセットする。このとき記
憶部24に記憶済みの標準コードのコードタイプをサプ
リメンタルコードが付随していることを示すコードタイ
プに変更する。
The label determining unit 24 stores the character data and the parity data surrounded by the start and stop, and further determines the code type by referring to the parity pattern table 17 based on the parity pattern "00E0E". That is, it is determined with reference to Table 2. Then, after confirming that the flag memory F is set, the character data and the code type are transferred to the storage unit 24, and at the same time, the flag memory F is reset. At this time, the code type of the standard code stored in the storage unit 24 is changed to the code type indicating that the supplemental code is attached.

【0088】また例えばサプリメンタルコードを逆の方
向に走査すると、先ずサプリメンタルコード用デコード
アルゴリズム実行手段23は、図9に示すように、第1
キャラクタである入力キャラクタ「1」を検出すると、
第2キャラクタ以降を変遷間隔6で順次捕獲する。そし
て出力サプリメンタルマージンを認識した時点で1つの
逆方向サプリメンタルコードを得たことを知る。このと
き同時にパリティデータも捕獲する。
Further, for example, when the supplemental code is scanned in the reverse direction, first, the supplemental code decoding algorithm executing means 23, as shown in FIG.
When the input character "1" which is a character is detected,
The second and subsequent characters are sequentially captured at transition intervals 6. Then, at the time when the output supplemental margin is recognized, it is known that one backward supplemental code is obtained. At this time, the parity data is also captured at the same time.

【0089】ラベル判定部24では、入力キャラクタ及
び出力サプリメンタルマージンで囲まれたキャラクタデ
ータ及びパリティデータを記憶し、さらにパリティパタ
ーン「E0E00」に基づいてコードタイプをパリティ
パターンテーブル17を参照して決定する。すなわち表
2を参照して決定する。そしてフラグメモリFがセット
されていることを確認して記憶部24にキャラクタデー
タ及びコードタイプを転送し、同時にフラグメモリFを
セットする。このフラグメモリFのセット状態は次の標
準コードが入力するまで保持する。
The label determining section 24 stores the character data and the parity data surrounded by the input character and the output supplemental margin, and further determines the code type by referring to the parity pattern table 17 based on the parity pattern "E0E00". To do. That is, it is determined with reference to Table 2. Then, after confirming that the flag memory F is set, the character data and the code type are transferred to the storage unit 24, and at the same time, the flag memory F is set. The set state of the flag memory F is held until the next standard code is input.

【0090】次に標準コード用デコードアルゴリズム実
行手段22は、図2の(b) に示すように、スタートとな
る入力マージンAがトリガーとなり、変遷間隔4でキャ
ラクタを捕獲する。そして出力中央バーDを認識した時
点で右側のハーフセグメントを得たことを知る。このと
き同時にパリティデータも捕獲する。
Next, as shown in FIG. 2B, the standard code decoding algorithm executing means 22 captures the character at the transition interval 4 triggered by the input margin A which is the start. Then, when the output center bar D is recognized, it is known that the right half segment has been obtained. At this time, the parity data is also captured at the same time.

【0091】ラベル判定部24は、スタート及びストッ
プで囲まれたキャラクタデータ及びパリティデータを記
憶し、さらにパリティパターン(EEEEEE)に基づ
いてコードタイプをパリティパターンテーブル17を参
照して決定する。このコードタイプはサプリメンタルコ
ードが付随する可能性があるため、キャラクタコード及
びコードタイプを記憶部24に転送すると同時に内部に
設けられたフラグメモリFがセットされているか否かを
確認する。この場合フラグメモリFはセット状態となっ
ているので、コードタイプにサプリメンタルコードが付
随していることを記憶して記憶部24に転送する。そし
てフラグメモリFをリセットする。
The label determination section 24 stores the character data and the parity data surrounded by the start and stop, and further determines the code type by referring to the parity pattern table 17 based on the parity pattern (EEEEEE). Since this code type may be accompanied by a supplemental code, the character code and the code type are transferred to the storage unit 24, and at the same time, it is confirmed whether or not the flag memory F provided therein is set. In this case, since the flag memory F is in the set state, the fact that the supplemental code is attached to the code type is stored and transferred to the storage unit 24. Then, the flag memory F is reset.

【0092】このように本実施例においても、サプリメ
ンタルラベルに対して標準ラベルと同様に双方向の読取
り走査が可能となる。従って標準ラベルのみからなるバ
ーコードラベルのデコードは勿論、標準ラベルにサプリ
メンタルラベルが付随したバーコードラベルに対するデ
コードが可能となり、汎用性を向上できる。
As described above, also in the present embodiment, bidirectional reading and scanning can be performed on the supplemental label similarly to the standard label. Therefore, it is possible to decode not only a bar code label consisting of only standard labels, but also bar code labels in which supplementary labels are attached to standard labels, thus improving versatility.

【0093】しかも、デコードしたラベルが標準コード
のみか、サプリメンタルコードを付随した標準コードか
をフラグメモリFがセット状態か否かにより判定できる
ようにし、判定した結果をコードタイプとして記憶部2
4にキャラクタコードとともに記憶しているので、CP
U25はその後どのタイミングでも標準コードのみのラ
ベルについては記憶部24から標準コードのキャラクタ
データを単独で読出して所望の処理を行うことができ、
またサプリメンタルコードが付随した標準コードのラベ
ルについては記憶部24から標準コードのキャラクタデ
ータとサプリメンタルコードのキャラクタデータを対と
して読出して所望の処理を行うことができる。また場合
によってはサプリメンタルコードが付随した標準コード
のラベルであっても、サプリメンタルコードを不要にす
る設定を予め行えば標準コードのみを読出して所望の処
理を行うことが可能となる。従って汎用性をさらに向上
できることになる。
Moreover, it is possible to determine whether the decoded label is only the standard code or the standard code accompanied by the supplemental code, by determining whether the flag memory F is in the set state or not, and the determined result is stored as the code type in the storage unit 2
Since it is stored in 4 with the character code, CP
After that, the U25 can independently read the character data of the standard code from the storage unit 24 for the label having only the standard code at any timing to perform the desired processing.
Further, for the label of the standard code accompanied by the supplementary code, the character data of the standard code and the character data of the supplemental code can be read as a pair from the storage unit 24 to perform desired processing. Further, in some cases, even if the label is a standard code accompanied by a supplemental code, it is possible to read only the standard code and perform desired processing if the setting that makes the supplemental code unnecessary is made in advance. Therefore, versatility can be further improved.

【0094】なお、前記各実施例ではパリティパターン
設定手段としてパリティパターンテーブルを使用したも
のについて述べたが必ずしもこれに限定されるものでは
なく、プログラム設定したものであってもよい。
In each of the embodiments described above, the parity pattern table is used as the parity pattern setting means, but the present invention is not limited to this, and a program may be set.

【0095】[0095]

【発明の効果】以上、本発明によれば、デコード処理手
段からのキャラクタデータ、パリティデータ及びサプリ
メンタルコードを表わす各種信号を取込み、サプリメン
タルコードを表わす各種信号をパリティパターン設定手
段に設定したサプリメンタルコードのパリティパターン
と比較し、各種信号がサプリメンタルコードのパリティ
パターンに対して所定の関係が満足しているときバーコ
ードを有効と判定するようにしているので、標準コード
にサプリメンタルコードが付随したバーコードに対して
双方向の読取りによるデコードができ、汎用性を向上で
きる。
As described above, according to the present invention, various signals representing character data, parity data and a supplemental code from the decoding processing means are taken in, and various signals representing the supplemental code are set in the parity pattern setting means. Compared with the parity code of the mental code, the barcode is judged to be valid when various signals satisfy the predetermined relationship with the parity pattern of the supplemental code, so the supplemental code is added to the standard code. The attached bar code can be decoded by bidirectional reading, improving versatility.

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

【図1】本発明の一実施例を示すブロック図。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】同実施例における標準バーコードの読取処理を
説明するための図。
FIG. 2 is a diagram for explaining a standard bar code reading process in the embodiment.

【図3】同実施例におけるサプリメンタルコードの順方
向読取り時の読取処理を説明するための図。
FIG. 3 is a view for explaining a reading process at the time of reading the supplemental code in the forward direction in the embodiment.

【図4】同実施例におけるサプリメンタルコードの逆方
向読取り時の読取処理を説明するための図。
FIG. 4 is a view for explaining a reading process at the time of reading the supplemental code in the backward direction in the embodiment.

【図5】同実施例において異なる種類のサプリメンタル
コードが付随したときの順方向読取り時の読取処理を説
明するための図。
FIG. 5 is a view for explaining a reading process at the time of forward reading when different types of supplemental codes are added in the same embodiment.

【図6】同実施例において異なる種類のサプリメンタル
コードが付随したときの逆方向読取り時の読取処理を説
明するための図。
FIG. 6 is a diagram for explaining a reading process at the time of backward reading when different types of supplemental codes are added in the embodiment.

【図7】本発明の他の実施例を示すブロック図。FIG. 7 is a block diagram showing another embodiment of the present invention.

【図8】同実施例におけるサプリメンタルコードの順方
向読取り時の読取処理を説明するための図。
FIG. 8 is a view for explaining a reading process at the time of reading the supplemental code in the forward direction in the embodiment.

【図9】同実施例におけるサプリメンタルコードの逆方
向読取り時の読取処理を説明するための図。
FIG. 9 is a view for explaining a reading process at the time of reading the supplemental code in the backward direction in the embodiment.

【図10】バーコード読取装置の構成を示すブロック
図。
FIG. 10 is a block diagram showing a configuration of a barcode reading device.

【図11】従来におけるサプリメンタルコード読取り時
の課題を説明するための図。
FIG. 11 is a view for explaining a conventional problem when reading a supplemental code.

【図12】標準コードにサプリメンタルコードが付随し
たバーコードラベルを示す図。
FIG. 12 is a view showing a barcode label in which a supplemental code is attached to a standard code.

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

11…コード処理手段 14…シーケンス制御装置 17…パリティパターンテーブル 11 ... Code processing means 14 ... Sequence control device 17 ... Parity pattern table

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 少なくとも2種類の幅値を有するバー及
びスペースからなるバーコードを、各バー及びスペース
の幅に対応したバーコードデジタル信号及びバー、スペ
ースを表わす2値のビデオ信号として入力し、その入力
信号のコード符号をデコードするバーコードデコーダに
おいて、 入力するバーコードデジタル信号及びビデオ信号により
標準コードのキャラクタデータ及びパリティデータをデ
コードするとともに、標準コードとは独立してサプリメ
ンタルコードのガードバー及びマージンをデコードしサ
プリメンタルコードを表わす各種信号を出力するデコー
ド処理手段と、標準コード及びサプリメンタルコードの
パリティパターンを設定したパリティパターン設定手段
と、前記デコード処理手段からのキャラクタデータ、パ
リティデータ及びサプリメンタルコードを表わす各種信
号を取込み、サプリメンタルコードを表わす各種信号を
前記パリティパターン設定手段に設定したサプリメンタ
ルコードのパリティパターンと比較し、各種信号がサプ
リメンタルコードのパリティパターンに対して所定の関
係が満足しているときバーコードを有効と判定するバー
コード判定手段を設けたことを特徴とするバーコードデ
コーダ。
1. A bar code consisting of a bar and a space having at least two kinds of width values is inputted as a bar code digital signal corresponding to the width of each bar and space and a binary video signal representing the bar and space. In a bar code decoder that decodes the code code of the input signal, the character data and parity data of the standard code are decoded by the input bar code digital signal and video signal, and the supplementary code guard bar and the standard code are provided independently of the standard code. Decoding processing means for decoding the margin and outputting various signals representing the supplemental code, parity pattern setting means for setting the parity patterns of the standard code and the supplemental code, the character data and the parity data from the decoding processing means. And various signals representing the supplemental code are taken in, the various signals representing the supplemental code are compared with the parity pattern of the supplemental code set in the parity pattern setting means, and the various signals are compared with the parity pattern of the supplemental code. A bar code decoder comprising bar code judging means for judging that a bar code is valid when a predetermined relationship is satisfied.
JP5146238A 1992-11-05 1993-06-17 Bar code decoder Pending JPH06195497A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5146238A JPH06195497A (en) 1992-11-05 1993-06-17 Bar code decoder

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP4-296046 1992-11-05
JP29604692 1992-11-05
JP5146238A JPH06195497A (en) 1992-11-05 1993-06-17 Bar code decoder

Publications (1)

Publication Number Publication Date
JPH06195497A true JPH06195497A (en) 1994-07-15

Family

ID=26477115

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5146238A Pending JPH06195497A (en) 1992-11-05 1993-06-17 Bar code decoder

Country Status (1)

Country Link
JP (1) JPH06195497A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6454168B1 (en) 1998-09-14 2002-09-24 Psc Scanning, Inc. Correlation and stitching techniques in a bar code scanning system
US6513714B1 (en) 1998-09-14 2003-02-04 Psc Scanning, Inc. Character reconstruction and element level processing in bar code scanning system
US6550682B2 (en) 2001-03-02 2003-04-22 Nec Infrontia Corporation Bar code reading method, bar code reading apparatus, and program thereof
US6585157B2 (en) * 1998-09-14 2003-07-01 Psc Scanning, Inc. Symbology determination to aid decoding in a bar code scanning system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6454168B1 (en) 1998-09-14 2002-09-24 Psc Scanning, Inc. Correlation and stitching techniques in a bar code scanning system
US6513714B1 (en) 1998-09-14 2003-02-04 Psc Scanning, Inc. Character reconstruction and element level processing in bar code scanning system
US6585157B2 (en) * 1998-09-14 2003-07-01 Psc Scanning, Inc. Symbology determination to aid decoding in a bar code scanning system
US6550682B2 (en) 2001-03-02 2003-04-22 Nec Infrontia Corporation Bar code reading method, bar code reading apparatus, and program thereof

Similar Documents

Publication Publication Date Title
US5932862A (en) Optical reader having improved scanning-decoding features
US5900613A (en) Optical reader having improved reprogramming features
US5825006A (en) Optical reader having improved autodiscrimination features
US7137555B2 (en) Multi-format bar code reader
EP0262924A2 (en) Method and apparatus for bar code data autodiscrimination
EP0498678A2 (en) High speed scan bar code reader which can read more than one type of bar code
JPH07200719A (en) Stitch of bar-code scanning
JPS61115179A (en) Bar code reader
US5245167A (en) Bar-code reading apparatus
JPS6212558B2 (en)
EP0576220B1 (en) Bar-code reader device
JPH06195497A (en) Bar code decoder
US20020079370A1 (en) Illumination source for optical reading apparatus
WO1990014638A1 (en) Reading method and apparatus for bar code
JP3448404B2 (en) Barcode reading device and barcode reading method
US5686716A (en) Bar code void and spot discrimination
JPH08263585A (en) Bar code reading device
JP2912743B2 (en) Barcode decoder
KR940006119B1 (en) Deciphering method of barcode system
JPH07334609A (en) Bar code reading device
JPH0954810A (en) Data symbol reader
JP3891072B2 (en) Bar code reading method and bar code reading apparatus
JP2839836B2 (en) Barcode reader
JP2923375B2 (en) Barcode reader
JPS6215677A (en) Bar code reader