JP2853450B2 - Bar code reader - Google Patents

Bar code reader

Info

Publication number
JP2853450B2
JP2853450B2 JP4131005A JP13100592A JP2853450B2 JP 2853450 B2 JP2853450 B2 JP 2853450B2 JP 4131005 A JP4131005 A JP 4131005A JP 13100592 A JP13100592 A JP 13100592A JP 2853450 B2 JP2853450 B2 JP 2853450B2
Authority
JP
Japan
Prior art keywords
data
bar code
character
barcode
reading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP4131005A
Other languages
Japanese (ja)
Other versions
JPH05324886A (en
Inventor
剛 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP4131005A priority Critical patent/JP2853450B2/en
Publication of JPH05324886A publication Critical patent/JPH05324886A/en
Application granted granted Critical
Publication of JP2853450B2 publication Critical patent/JP2853450B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、物品に記録されたバー
コードを読取るバーコード読取り装置に係り、特にバー
コードの読取り方向を識別し、識別情報も出力するバー
コード読取り装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bar code reader for reading a bar code recorded on an article, and more particularly to a bar code reader for identifying a reading direction of a bar code and outputting identification information.

【0002】[0002]

【従来の技術】近年POSシステムの導入に伴い、流通
業界を中心に商品の識別情報をバーコードとして商品に
印刷し、取引の合理化を図っている。かかるバーコード
の種類はバーコードが使用される用途により各種実用化
されており、例えば2種類の幅の違いを使用する2値レ
ベルのコード39(Code 3 of 9 )やインターリーブド
25(Interleaved 2 of 5)、JISで規定されるマル
チレベルを使用するJANコード等がその代表例であ
る。
2. Description of the Related Art With the introduction of a POS system in recent years, the identification information of a product is printed as a bar code on the product, mainly in the distribution industry, thereby streamlining transactions. Various types of such barcodes have been put into practical use depending on the application in which the barcode is used. For example, a binary level code 39 (Code 3 of 9) using two types of width differences and an interleaved 25 (Interleaved 2) are used. of 5), a JAN code using a multi-level defined by JIS is a typical example.

【0003】商品に記録されたバーコードからの情報の
読み取りは、バーコード読取り装置により行われるが、
その際バーコードの読み取り方向が一方向とは限らな
い。すなわち、バーコードを一方向からのみではなく、
場合によっては逆方向から読み取ることもある。したが
ってかかる場合、バーコードの端部にスタートビット及
びエンドビットを設け、バーコードの読み取り方向を確
認できるように構成したバーコード(例えばインターリ
ーブド25の場合)や、バーコードの左端、右端、中央
にガードバーを設け、太いバーと細いバーの配列構成を
規定することによってバーコード読取り装置の走査方向
に関係なくバーコード情報の読み取りを可能とするバー
コードもある(例えばJANコードの場合)。
[0003] Reading of information from a barcode recorded on a product is performed by a barcode reader.
At this time, the reading direction of the barcode is not limited to one direction. That is, barcodes are not only from one direction,
In some cases, reading may be performed from the opposite direction. Therefore, in such a case, a start bit and an end bit are provided at the end of the bar code so that the reading direction of the bar code can be confirmed (for example, in the case of interleaved 25), or the left end, right end, and center of the bar code. There is also a bar code that is provided with a guard bar and defines an arrangement configuration of a thick bar and a thin bar so that bar code information can be read regardless of the scanning direction of a bar code reader (for example, in the case of a JAN code).

【0004】[0004]

【発明が解決しようとする課題】したがって、従来のバ
ーコード読取り装置ではスタートビット/エンドビット
を有するインターリーブド25等のバーコードでは、一
方向からしかバーコードの情報を読み取ることができず
バーコード読取り操作が煩雑であった。また、バーコー
ドの左端、右端、中央にガードバーを設けたJANコー
ドの場合には、バーコードの構成が複雑であった。
Therefore, in a conventional bar code reader, a bar code such as an interleaved 25 having a start bit / end bit can read bar code information only from one direction. The reading operation was complicated. Further, in the case of a JAN code having guard bars at the left end, the right end, and the center of the bar code, the configuration of the bar code is complicated.

【0005】本発明の課題は、煩雑なバーコードの読取
り処理を行うことなく、しかも複雑な構成のバーコード
を使用することなくバーコードデータをいずれの方向か
らも読み取ることが可能であり、且つバーコードの読み
取り方向のデータも出力できるバーコード読取り装置を
提供することを目的とする。
An object of the present invention is to enable bar code data to be read from any direction without performing a complicated bar code reading process and without using a bar code having a complicated structure. It is an object of the present invention to provide a bar code reader capable of outputting data in a bar code reading direction.

【0006】[0006]

【課題を解決するための手段】本発明の手段は次の通り
である。バーコードデータ読取り手段1(図1の原理説
明図参照、以下同じ)は、バーコードに照射した光の反
射光を検出し、黒及び白のバーの幅を計数することによ
りバーコードの情報を読み取る。
The means of the present invention are as follows. The bar code data reading means 1 (see the principle explanatory diagram of FIG. 1, the same applies hereinafter) detects reflected light of light applied to the bar code and counts the width of the black and white bars, thereby obtaining the bar code information. read.

【0007】正方向/逆方向キャラクタテーブル2は、
バーコードを正方向(一方方向)から読み取った時のバ
ーコードデータに対する文字を記憶する正方向キャラク
タテーブルと、バーコードを逆方向(上記正方向と反対
の方向)から読み取ったバーコードデータに対する文字
を記憶する逆方向キャラクタテーブルで構成されてい
る。
[0007] The forward / reverse character table 2
A forward-direction character table that stores characters corresponding to barcode data when a barcode is read from a forward direction (one direction), and a character corresponding to barcode data that is read from a reverse direction (a direction opposite to the above-described forward direction). Is stored in the backward character table.

【0008】デコード処理制御手段3は、上記バーコー
ドデータ読取り手段1で読み取ったバーコードの情報に
基づいて、上記正方向/逆方向キャラクタテーブル2を
検索し対応する文字(キャラクタ)データに変換すると
共に、バーコードの情報がいずれのテーブルに記憶され
ていたかにより、バーコードの読み取り方向を判断す
る。
The decoding control means 3 searches the forward / reverse character table 2 based on the bar code information read by the bar code data reading means 1 and converts it into corresponding character data. At the same time, the barcode reading direction is determined based on which table stores the barcode information.

【0009】読取り方向記憶手段4は、上記デコード処
理制御手段3で判断したバーコードの読み取り方向を記
憶する。出力手段5は、デコード処理手段2で文字に変
換されたキャラクタデータ、及びバーコードの読み取り
方向が逆方向であることを示すデータを出力する。
The reading direction storage means 4 stores the reading direction of the bar code determined by the decoding processing control means 3. The output unit 5 outputs the character data converted into characters by the decode processing unit 2 and data indicating that the reading direction of the barcode is in the opposite direction.

【0010】[0010]

【作用】本発明の手段の作用は次の通りである。デコー
ド処理制御手段3は、バーコードデータ読取り手段1か
ら読み取ったデータに基づいて、正方向/逆方向キャラ
クタテーブル2を検索し、バーコードデータを対応する
文字に変換する。その際、バーコードデータが正方向キ
ャラクタテーブルに記憶されていたか、又は逆方向キャ
ラクタテーブルに記憶されていたかにより、バーコード
の読み取り方向を判断し、当該方向を読取り方向記憶手
段4に書き込む。このようにして上記デコード処理制御
手段3により文字に変換されたキャラクタデータは出力
手段5から外部へ出力され、この時読取り方向記憶手段
4に読出り方向が逆方向であるデータが記憶されていれ
ば、この逆方向を示すデータも出力される。このことに
より、文字データと共に逆方向を示すデータも出力する
ことができるものである。
The operation of the means of the present invention is as follows. The decoding processing control means 3 searches the forward / reverse character table 2 based on the data read from the barcode data reading means 1, and converts the barcode data into corresponding characters. At this time, the reading direction of the barcode is determined based on whether the barcode data is stored in the forward direction character table or the backward direction character table, and the direction is written in the reading direction storage unit 4. The character data converted into characters by the decoding processing control means 3 is output from the output means 5 to the outside. At this time, the reading direction storage means 4 stores data whose reading direction is reverse. If so, data indicating the reverse direction is also output. Thus, data indicating the reverse direction can be output together with the character data.

【0011】[0011]

【実施例】以下、本発明の一実施例を図2乃至図7を参
照しながら説明する。図2は、本実施例のバーコード読
取り装置の全体構成を示すシステムブロック図である。
同図において、レーザ光源である投光部6から発振され
るレーザ光は、例えば商品に印刷されたバーコード7上
に照射される。バーコード7に照射されたレーザ光は、
バーコード7を構成する黒、白の各バーで反射し光電変
換部8に入射する。光電変換部8はフォトトランジスタ
等で構成され、バーコード7からの反射光をアナログ電
気信号に変換する。このアナログ信号は二値化変換部9
へ出力され、二値化変換部9でアナログ信号をデジタル
信号に変換する。二値化変換部9でデジタル信号に変換
されたデータはカウンタ10へ出力され、カウンタ10
でバーコードを構成する各バーの白/黒の幅が計数され
る。このようにして計数された黒バー/白バーの幅デー
タはメモリ11へ出力され、メモリ11に順次記憶され
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to FIGS. FIG. 2 is a system block diagram showing the overall configuration of the barcode reader of the present embodiment.
In the figure, a laser beam oscillated from a light projecting unit 6 which is a laser light source is applied to, for example, a bar code 7 printed on a product. The laser beam applied to the bar code 7 is
The light is reflected by the black and white bars constituting the barcode 7 and enters the photoelectric conversion unit 8. The photoelectric conversion unit 8 includes a phototransistor or the like, and converts reflected light from the bar code 7 into an analog electric signal. This analog signal is converted to a binary conversion unit 9.
The analog signal is converted into a digital signal by the binarization conversion unit 9. The data converted into a digital signal by the binarization conversion unit 9 is output to the counter 10 and the counter 10
The white / black width of each bar constituting the barcode is counted. The width data of the black bar / white bar counted in this way is output to the memory 11 and sequentially stored in the memory 11.

【0012】プロセッサ部12は、デコード処理回路1
3、キャラクタテーブル14、フラグ等記憶部15、出
力バッファ16で構成されている。デコード処理回路1
3は不図示のROMに記憶されたプログラムに従ってバ
ーコードデータを文字データに変換する回路である。ま
た、キャラクタテーブル14は正方向キャラクタテーブ
ル14aと、逆方向キャラクタテーブル14bで構成さ
れ、正方向、又は逆方向キャラクタテーブル14a、1
4bには例えば図3に示すデータが記憶される。尚、同
図に記憶されるバーコードのコード体系(コードの種
類)は例えばコード39であり、1文字当たりバーが5
本(“5”ビット)、スペースが4本(“4”ビット)
で構成される。しかし、同図の各キャラクタテーブル1
4a、14bに記憶されるデータはバーエリア及びスペ
ースエリア共8ビットで構成されている為、バーエリア
では下位5ビットがバーの実データであり、スペースエ
リアでは下位4ビットがスペースの実データであり、他
のエリアにはデータ“0”が書き込まれている。また、
同図に示すデータ“1”がバーコードの太いバーに対応
し、データ“0”が細いバーに対応する。この対応はバ
ーエリア及びスペースエリア共に同じである。
The processor section 12 includes a decoding processing circuit 1
3, a character table 14, a flag storage unit 15, and an output buffer 16. Decoding processing circuit 1
A circuit 3 converts barcode data into character data according to a program stored in a ROM (not shown). The character table 14 includes a forward character table 14a and a backward character table 14b.
4b stores, for example, the data shown in FIG. Note that the code system (code type) of the bar code stored in FIG.
Book ("5" bits), 4 spaces ("4" bits)
It consists of. However, each character table 1 in FIG.
Since the data stored in 4a and 14b is composed of 8 bits for both the bar area and the space area, the lower 5 bits are the actual data of the bar in the bar area, and the lower 4 bits are the actual data of the space in the space area. The data "0" is written in other areas. Also,
Data “1” shown in FIG. 4 corresponds to a thick bar code bar, and data “0” corresponds to a thin bar. This correspondence is the same for both the bar area and the space area.

【0013】一方、図2に示すフラグ等記憶部15はコ
ード体系記憶部15a、桁数記憶部15b、エラーフラ
グ記憶部15c、正方向フラグ記憶部15d、逆方向フ
ラグ記憶部15eで構成されている。コード体系記憶部
15aはコードの種類を記憶するエリアであり、例えば
上述のコード39を示すデータや、他のコードとしてJ
ANコードやインターリーブド25等を示すデータが記
憶される。また、桁数記憶部15bは一のバーコードに
含まれる文字の桁数を記憶する。さらに、エラーフラグ
記憶部15cは光電変換部8により読み取られたデータ
がバーコードデータでない場合等にフラグをセットする
エリアである。また、正方向フラグ記憶部15dはバー
コード読取り装置がバーコードに対して正方向に読み取
り処理を行っている時にフラグがセットされるエリアで
あり、逆方向フラグ記憶部15eはバーコードに対して
逆方向に読み取り処理を行っている時にフラグがセット
されるエリアである。
On the other hand, the flag storage unit 15 shown in FIG. 2 comprises a code system storage unit 15a, a digit number storage unit 15b, an error flag storage unit 15c, a forward flag storage unit 15d, and a backward flag storage unit 15e. I have. The code system storage unit 15a is an area for storing the type of code. For example, data indicating the code 39 described above or J
Data indicating an AN code, interleaved 25, and the like are stored. The digit number storage unit 15b stores the number of digits of a character included in one barcode. Further, the error flag storage unit 15c is an area for setting a flag when data read by the photoelectric conversion unit 8 is not barcode data. The forward direction flag storage unit 15d is an area in which a flag is set when the barcode reader is performing a reading process on the barcode in the forward direction. This is an area where a flag is set when reading is performed in the reverse direction.

【0014】尚、出力バッファ16はデコード処理回路
13から出力されるデコードデータ、及びバーコードを
逆方向に読み取っていることを示す逆向き情報を出力す
る回路である。
The output buffer 16 is a circuit that outputs decoded data output from the decoding processing circuit 13 and reverse information indicating that the bar code is being read in the reverse direction.

【0015】以上の構成のバーコード読取り装置におい
て、図4に示すフローチャートを用いてバーコードの読
取り動作を説明する。先ず、デコード処理回路13は始
端検出処理(ステップ(以下STという)1)を実行す
る。この処理は前述の如く、投光部6から発するレーザ
光がバーコード7で反射し、光電変換部8、二値化変換
部9、カウンタ10を介してメモリ11に記憶されるバ
ーコードデータをデコード処理回路13が検索すること
により行われる。すなわち、メモリ11にはバーコード
を読み取った時、カウンタ10で黒バーの幅や白バーの
幅を計数したデータが順次書き込まれ記憶されている。
したがって、デコード処理回路13がメモリ11を一定
時間毎に検索しても、バーコードのデータがメモリ11
に記憶されていない時は(ST2がN(ノー))、エラ
ーフラグ記憶部15cにエラーフラグをセットする(S
T3)。一方、上記処理によりメモリ11にバーコード
が記憶されていればバーデータがあると判断し(ST2
がY(イエス))、処理(ST4)以降を実行する。
The operation of reading a bar code in the bar code reading apparatus having the above-described configuration will be described with reference to a flowchart shown in FIG. First, the decoding processing circuit 13 executes a start detection process (step (hereinafter referred to as ST) 1). In this process, as described above, the laser beam emitted from the light projecting unit 6 is reflected by the bar code 7 and the bar code data stored in the memory 11 via the photoelectric conversion unit 8, the binarization conversion unit 9, and the counter 10 is converted. The decoding is performed by the decoding processing circuit 13. That is, when the barcode is read, data obtained by counting the width of the black bar and the width of the white bar by the counter 10 when the barcode is read is sequentially written and stored.
Therefore, even if the decode processing circuit 13 searches the memory 11 at regular intervals, the bar code data is not stored in the memory 11.
(ST2 is N (No)), an error flag is set in the error flag storage unit 15c (S2).
T3). On the other hand, if a barcode is stored in the memory 11 by the above processing, it is determined that there is bar data (ST2).
Is Y (yes)), and the processing (ST4) and the subsequent steps are executed.

【0016】すなわち、先ずデコード処理回路13はメ
モリ11から1桁分(1文字分)のデータを読み出す
(ST4)。次に、デコード処理回路13は正方向、及
び逆方向キャラクタテーブル14a、14bをサーチし
(ST5)、いずれかのテーブル14a、14bに上記
1桁分のデータと同じデータが記憶されているか判断す
る(ST6)。ここで、メモリ11から読み出した1桁
分のデータと同じデータがいずれかのテーブル14a、
14bにも存在しない場合は(ST6がN)処理(ST
1)に戻る。しかし、同じデータが正方向キャラクタテ
ーブル9a、又は逆方向キャラクタテーブル9bに存在
する場合は(ST6がY)、当該1桁分のデータの解析
処理を実行する(ST7)。この解析処理はデコード処
理回路13に読み出したデータが、上述のバーコード7
の先頭桁であるか否かの解析である。この判断により1
桁目のデータであると判断されると(ST7がY)、次
に上記データがいずれのテーブルに存在していたかによ
り正方向、又は逆方向の読み取り方向の判断を行う(S
T8)。例えば図3に示す例で説明すると、数字“5”
のデータは正方向のバー記憶部にはデータ“00010
100”が記憶され、スペース記憶部にはデータ“00
000100”が記憶され、逆方向のバー記憶部にはデ
ータ“00000101”が記憶され、スペース記憶部
にはデータ“00000010”が記憶されている。し
たがって、メモリ11から読み出したデータのバー対応
部(下位5桁)が“10100”であり、スペース対応
部(下位4桁)が“0100”である時、正方向キャラ
クタテーブル14aに記憶された数字“5”のデータと
同じであるので「正方向」の読み取りであると判断す
る。したがって、この場合は正方向フラグ記憶部15d
にフラグをセットする(ST8→ST9)。一方、メモ
リ11から読み出したデータのバー対応部(5桁)が
“00101”であり、スペース対応部(4桁)が“0
010”である時は逆方向キャラクタテーブル9bに記
憶された数字“5”のデータと同じであるので「逆方
向」の読み取りであると判断する。したがって、この場
合は逆方向フラグ記憶部15eにフラグをセットする
(ST8→ST10)。
That is, first, the decode processing circuit 13 reads one digit (one character) of data from the memory 11 (ST4). Next, the decode processing circuit 13 searches the forward and backward character tables 14a and 14b (ST5), and determines whether one of the tables 14a and 14b stores the same data as the one digit data. (ST6). Here, the same data as the one-digit data read from the memory 11 is stored in one of the tables 14a,
14b does not exist (ST6 is N).
Return to 1). However, if the same data exists in the forward direction character table 9a or the backward direction character table 9b (Y in ST6), the analyzing process of the one digit data is executed (ST7). In this analysis processing, the data read to the decoding processing circuit 13 is converted into the bar code 7 described above.
This is an analysis of whether or not this is the first digit. By this judgment, 1
If it is determined that the data is the digit data (Y in ST7), the forward or reverse reading direction is determined based on which table the data exists in (S7).
T8). For example, in the example shown in FIG.
Is stored in the forward direction bar storage unit as data “00010”.
100 ”is stored, and the data“ 00 ”is stored in the space storage unit.
000100 "is stored, data" 00000010 "is stored in the bar storage unit in the reverse direction, and data" 00000010 "is stored in the space storage unit. When the lower 5 digits are "10100" and the space corresponding portion (lower 4 digits) is "0100", since the data is the same as the data of the numeral "5" stored in the forward character table 14a, the "forward" Is read. Therefore, in this case, the forward direction flag storage unit 15d
Is set to (ST8 → ST9). On the other hand, the bar corresponding portion (five digits) of the data read from the memory 11 is “00101”, and the space corresponding portion (four digits) is “0”.
If it is "010", it is the same as the data of the numeral "5" stored in the backward character table 9b, so that it is determined that the reading is "backward". Therefore, in this case, a flag is set in the backward flag storage unit 15e (ST8 → ST10).

【0017】その後、キャラクタの決定処理を実行する
(ST11)。例えば、上述の例ではこの処理により数
字“5”が決定される。その後、桁数記憶部15bに記
憶された桁数のデータからバーコードの桁数に達してい
るか判断する(ST12)。例えば、バーコード7に含
まれる文字の桁数が6桁であるとすれば、この時点では
まだ1桁目の数字“5”のキャラクタを決定しただけで
あるので判断(ST12)はNである。したがって、こ
の場合はメモリ11に記憶される次の1桁分のデータを
デコード処理回路13に読み出し(ST4)、上述と同
様にキャラクタテーブル14のサーチを実行する(ST
5)。そして、この時のキャラクタは第1のキャラクタ
ではないので(ST7がN)、判断(ST13)を実行
し、前に設定された正方向、又は逆方向と今回読み出し
た方向が一致しているか判断する。具体的には正方向フ
ラグ記憶部15d、又は逆方向フラグ記憶部15eのい
ずれかに記憶されているフラグを読み出し、前のキャラ
クタの読み出し方向と今回のキャラクタの読み出し方向
が一致しているか判断する。ここで、両方向が不一致で
あれば(ST13がN)処理(ST1)に戻る。一方、
両方向が一致していれば(ST13がY)、前述と同様
に読み込んだデータからキャラクタの決定を行い(ST
11)、桁数の確認を行ない(ST12)、桁数が所定
の桁数まで達していなければ上述の処理を繰り返す(S
T12→ST4→ST5→・・・ST12)。
Thereafter, a character determination process is executed (ST11). For example, in the above example, the number “5” is determined by this processing. Thereafter, it is determined from the data of the number of digits stored in the number-of-digits storage section 15b whether the number of digits of the barcode has been reached (ST12). For example, if the number of digits of the characters included in the bar code 7 is six, the determination (ST12) is N because the character of the first digit “5” has only been determined at this point. . Therefore, in this case, the next one digit data stored in the memory 11 is read out to the decode processing circuit 13 (ST4), and the character table 14 is searched in the same manner as described above (ST4).
5). Then, since the character at this time is not the first character (N in ST7), a determination (ST13) is executed to determine whether the previously set forward direction or reverse direction matches the currently read direction. I do. Specifically, the flag stored in either the forward flag storage unit 15d or the backward flag storage unit 15e is read, and it is determined whether the read direction of the previous character matches the read direction of the current character. . If the two directions do not match (N in ST13), the process returns to ST1. on the other hand,
If the two directions match (Y in ST13), a character is determined from the read data in the same manner as described above (ST13).
11) The number of digits is confirmed (ST12), and if the number of digits does not reach the predetermined number of digits, the above processing is repeated (S12).
T12 → ST4 → ST5 →... ST12).

【0018】以上の様にして処理を継続し、所定の桁数
(例えば上述の6桁)のキャラクタの決定処理が終了す
ると(ST12がY)、所定の桁数のキャラクタを出力
する処理を実行する。この処理は図5に示すフローチャ
ートに従って実行され、先ず出力バッファ16に文字デ
ータをセットし(ステップ(以下図5ではSという)
1)、上述の逆方向フラグがセットされているか判断す
る(S2)。ここで、逆方向フラグがセットされていな
ければ(S2がN)、出力バッファ16に設定された上
述の所定桁の文字データを外部へ供給する(S4)。一
方、逆方向フラグがセットされていれば(S2がY)、
出力バッファ16に設定された上述のキャラクタと共
に、逆向き情報を出力バッファ16にセットし(S
3)、外部へ出力する(S4)。
The process is continued as described above, and when the process of determining a character having a predetermined number of digits (for example, the above-described 6 digits) is completed (Y in ST12), a process of outputting a character having a predetermined number of digits is executed. I do. This processing is executed according to the flowchart shown in FIG. 5, and first sets character data in the output buffer 16 (step (hereinafter, referred to as S in FIG. 5)).
1) It is determined whether or not the above-described backward flag is set (S2). Here, if the reverse direction flag is not set (S2: N), the above-mentioned predetermined digit character data set in the output buffer 16 is supplied to the outside (S4). On the other hand, if the reverse direction flag is set (S2 is Y),
The reverse information is set in the output buffer 16 together with the above-mentioned character set in the output buffer 16 (S
3) Output to the outside (S4).

【0019】以上の様に処理することにより、バーコー
ドの読み取り処理が正方向でも、逆方向でも読み取りが
でき、逆方向の読み取りの時には逆方向をであることを
示すデータも出力することができ、極めて効率の良いバ
ーコードの読み取り処理が可能となる。
By performing the above-described processing, the bar code can be read in either the forward direction or the reverse direction, and when reading in the reverse direction, data indicating the reverse direction can also be output. Thus, barcode reading processing can be performed extremely efficiently.

【0020】尚、上述の実施例では正方向キャラクタテ
ーブル14a、及び逆方向キャラクタテーブル14bに
コード39に基づくデータが記憶されている場合につい
て説明したが、例えばJANコードで示せば図6のデー
タ例のように構成される。すなわち、JANコードの場
合1文字当たり固定7桁のデータで構成されている為、
奇数パリティと偶数パリティ共に下位7ビットがバーコ
ードの実データであり、正方向キャラクタテーブル14
aと逆方向キャラクタテーブル14bで逆のデータが記
憶する構成とすればよい。
In the above embodiment, the case where data based on the code 39 is stored in the forward direction character table 14a and the backward direction character table 14b has been described. It is configured as follows. That is, since the JAN code is composed of fixed 7-digit data per character,
The lower 7 bits of both the odd parity and the even parity are the actual data of the bar code.
The opposite data may be stored in the character table 14b in the opposite direction to the data a.

【0021】また図7も同様であり、同図の(a)はイ
ンターリーブド25のバーコード体系の場合であり、正
方向及び逆方向とも1文字当たり下位5ビットに実デー
タが記憶される構成である。また、同図の(b)はコー
ダバーのバーコード体系の場合の例であり、7ビット構
成であるので正方向、逆方向とも実データは下位7ビッ
トである。
FIG. 7A is also the same. FIG. 7A shows the case of an interleaved 25 bar code system, in which the actual data is stored in the lower 5 bits per character in both the forward and reverse directions. It is. FIG. 3B shows an example of the case of a coder bar bar code system, and since it has a 7-bit configuration, the actual data is the lower 7 bits in both the forward and reverse directions.

【0022】[0022]

【発明の効果】本発明によれば、バーコードの読み取り
処理において、1回のデータの読み取り処理毎にデータ
を正方向に読み出した時は読み取り結果のみを出力し、
データを逆方向に読み出した時は読み取り結果と共に、
逆方向であることを示す情報を出力することができる。
According to the present invention, in the bar code reading process, when data is read in the forward direction for each data reading process, only the read result is output,
When reading data in the reverse direction,
The information indicating the reverse direction can be output.

【0023】したがって、例えばバーコードが印刷され
たラベルの向きが逆に貼着されている場合でも、バーコ
ードの向きが正方向か逆方向かという情報を知ることが
でき、ラベルの向きによる仕分け作業を効率良く行うこ
とができる。
Therefore, for example, even if the direction of the label on which the barcode is printed is affixed in reverse, it is possible to know whether the direction of the barcode is forward or reverse, and to sort according to the direction of the label. Work can be performed efficiently.

【0024】また、バーコード自体の構成も簡単化する
ことができ、バーコードの印刷処理が容易になる。
Further, the configuration of the barcode itself can be simplified, and the printing process of the barcode becomes easy.

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

【図1】本発明の原理説明図である。FIG. 1 is a diagram illustrating the principle of the present invention.

【図2】一実施例のバーコード読取り装置のシステムブ
ロック図である。
FIG. 2 is a system block diagram of a barcode reader according to one embodiment.

【図3】正方向キャラクタテーブル及び逆方向キャラク
タテーブルに記憶されたコード39のデータ例を示す図
である。
FIG. 3 is a diagram showing an example of data of a code 39 stored in a forward character table and a backward character table.

【図4】一実施例のバーコード読取り装置のデコード処
理動作を説明するフローチャートである。
FIG. 4 is a flowchart illustrating a decoding processing operation of the barcode reading device according to the embodiment;

【図5】一実施例のバーコード読取り装置のデコード結
果の出力動作を説明するフローチャートである。
FIG. 5 is a flowchart illustrating an operation of outputting a decoding result of the barcode reader according to the embodiment;

【図6】正方向キャラクタテーブル及び逆方向キャラク
タテーブルに記憶されたJANコードのデータ例を示す
図である。
FIG. 6 is a diagram showing an example of JAN code data stored in a forward character table and a backward character table.

【図7】正方向キャラクタテーブル及び逆方向キャラク
タテーブルに記憶されたコード25並びにコーダバーの
データ例を示す図である。
FIG. 7 is a diagram showing an example of data of a code 25 and a coder bar stored in a forward character table and a backward character table.

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

1 バーコードデータ読取り手段 2 正方向/逆方向キャラクタテーブル 3 デコード処理制御手段 4 読取り方向記憶手段 5 出力手段 1 bar code data reading means 2 forward / reverse character table 3 decoding processing control means 4 reading direction storage means 5 output means

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 バーコードの読取り手段と、 正方向からのバーコードの読取りデータに対応する文字
データ、及び逆方向からのバーコードの読取データに対
応する文字データの双方を記憶する正方向/逆方向キャ
ラクタテーブルと、 前記読取り手段で読み取ったバーコードデータに基づい
て、前記正方向/逆方向キャラクタテーブルを検索し、
前記バーコードデータを対応する文字データに変換する
と共に、前記バーコードデータが記憶されていたテーブ
ルが正方向キャラクタテーブルであるか、又は逆方向キ
ャラクタテーブルであるかによりバーコードの読取り方
向を判断するデコード処理制御手段と、 該デコード処理制御手段で判断したバーコードの読み取
り方向が正方向か、又は逆方向かを記憶する読取り方向
記憶手段と、 前記デコード処理制御手段により変換された文字データ
と、前記読取り方向記憶手段に記憶された逆方向データ
を出力する出力手段と、 を有することを特徴とするバーコード読取り装置。
1. A bar code reading means for storing both character data corresponding to bar code read data in the forward direction and character data corresponding to bar code read data in the reverse direction. Searching the forward / reverse character table based on a reverse direction character table and the bar code data read by the reading unit;
The barcode data is converted into corresponding character data, and the barcode reading direction is determined based on whether the table in which the barcode data is stored is a forward character table or a reverse character table. Decoding processing control means; reading direction storage means for storing whether the reading direction of the barcode determined by the decoding processing control means is forward or reverse; and character data converted by the decoding processing control means; Output means for outputting the backward direction data stored in the reading direction storage means.
JP4131005A 1992-05-22 1992-05-22 Bar code reader Expired - Lifetime JP2853450B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4131005A JP2853450B2 (en) 1992-05-22 1992-05-22 Bar code reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4131005A JP2853450B2 (en) 1992-05-22 1992-05-22 Bar code reader

Publications (2)

Publication Number Publication Date
JPH05324886A JPH05324886A (en) 1993-12-10
JP2853450B2 true JP2853450B2 (en) 1999-02-03

Family

ID=15047737

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4131005A Expired - Lifetime JP2853450B2 (en) 1992-05-22 1992-05-22 Bar code reader

Country Status (1)

Country Link
JP (1) JP2853450B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3109971B2 (en) * 1995-02-03 2000-11-20 オリンパス光学工業株式会社 Information reproducing system, information recording system, and recording medium therefor

Also Published As

Publication number Publication date
JPH05324886A (en) 1993-12-10

Similar Documents

Publication Publication Date Title
EP0439682B1 (en) High density two dimensional symbology
US5723853A (en) Bar code reader
EP0390162B1 (en) An apparatus for reading a bar code
US4879456A (en) Method of decoding a binary scan signal
US5777310A (en) Problem reduction with low level information integration in bar code decoding
US20100123005A1 (en) Method of preventing multiple reads when scanning groups of optical codes
JPH021087A (en) Multi-track bar code and association type decoding
US5627358A (en) System and method for reading two-dimensional barcodes
US5237163A (en) Method for scanning a plurality of bar code labels
CA2044935C (en) Bar-code reading apparatus
US4109143A (en) Optical reader
JP2853450B2 (en) Bar code reader
JPH08263585A (en) Bar code reading device
KR940006119B1 (en) Deciphering method of barcode system
JP2623818B2 (en) Barcode reader
US6478224B1 (en) Symbology-independent method and apparatus for identifying potential bar code data
JP2730273B2 (en) Barcode reading device and barcode reading method
JP2001256425A (en) Optical information reader
TW297889B (en)
CA1078061A (en) Multiple code sensing optical reader
JP2750244B2 (en) Barcode decoder decoding method
JPH05135196A (en) Bar code reader
JP3018702B2 (en) Barcode demodulator
JPH03122782A (en) Bar-code reader
JP2912743B2 (en) Barcode decoder

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19981020