JPH0335704B2 - - Google Patents
Info
- Publication number
- JPH0335704B2 JPH0335704B2 JP6106984A JP6106984A JPH0335704B2 JP H0335704 B2 JPH0335704 B2 JP H0335704B2 JP 6106984 A JP6106984 A JP 6106984A JP 6106984 A JP6106984 A JP 6106984A JP H0335704 B2 JPH0335704 B2 JP H0335704B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- data
- read
- line
- stop
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/10544—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum
- G06K7/10821—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices
- G06K7/10881—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation by scanning of the records by radiation in the optical part of the electromagnetic spectrum further details of bar or optical code scanning devices constructional details of hand-held scanners
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/01—Details
- G06K7/016—Synchronisation of sensing process
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Electromagnetism (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
Description
本発明はコード化されたデータを読取る装置に
関するものである。特に白黒のパターンよりなる
印字されたデータ(以下バーコードと呼ぶ)を光
学式読取器(以下バーコードリーダと呼ぶ)によ
り読取る場合に適したものである。
バーコードは第1図に示すように、白黒のパタ
ーンの巾により、種々の文字、記号を表わしてい
る。
バーコードは種々標準化されているが、例えば
NW−7HEX(Narrow Wide−7
Hexadecimal)方式では、第1表に示すように、
各文字(キヤラクタ)は、7ケのエレメントすな
わち4ケのバーB1〜B4およびバーとバーの間の
3ケのスペース(S1〜S3)で構成されており、
数文字10ケ(0〜9)と英文字6ケ(A〜F)と
コントロール文字としてスタート/ストツプ文字
(a〜d)の文字種類をもつている。
The present invention relates to a device for reading coded data. It is particularly suitable for reading printed data consisting of a black and white pattern (hereinafter referred to as a barcode) with an optical reader (hereinafter referred to as a barcode reader). As shown in FIG. 1, a barcode represents various characters and symbols by the width of a black and white pattern. Various types of barcodes have been standardized, such as
NW-7HEX (Narrow Wide-7
Hexadecimal) method, as shown in Table 1,
Each character consists of 7 elements, 4 bars B1-B4 and 3 spaces (S1-S3) between the bars.
It has 10 numerical characters (0-9), 6 English characters (A-F), and start/stop characters (a-d) as control characters.
【表】
このように構成されたデータは、第2図に示す
ように複数の行に分割されて記録される。第2図
では3行まで図示し、以下は省略している。この
バーコードを走査式のバーコードリーダで走査す
ることにより、データを読みとるのである。何行
にも渡つて多数のデータを読み取る場合、誤つて
1行飛越して読取つてしまうことがある。また逆
に、既に読んでいる行を繰返して読取つてしまう
こともある。
従来、これらの誤りを防止するため、第2図に
示すように、各行の始めを表わすスタートキヤラ
クタ1aに続けて、行番号1、2、3……を示す
数文字1bを入れ、実際のデータ1cはさらに次
から始まるようにしてある。実際のデータ1cの
次には各行の終りを表わすストツプキヤラクタ1
が入れられる。ストツプキヤラクタ1もスタート
キヤラクタ1aと同一文字、例えばaを使用する
ことが多い。なお第2図のスタートキヤラクタ1
a、次の行番号を示す数文字1bおよびストツプ
キヤラクタ1は、夫々文字a、文字1(=1行、
以下2行以降順に2、3、……)および文字aで
示してあるが、実際には第1図のようにバーコー
ドで記録される。
従来のバーコードでは、第2図に示すように行
番号を表す数文字1bを一連のバーコードのなか
に入れてあるため、バーコードを1文字分以上増
やさなければならないという不都合があつた。そ
のためバーコードの増えた分だけ読取り誤りも増
加する。また、その分だけ実際のデータを入れら
れる余地が少なくなる。
本発明は、従来のように行の番号を表す文字を
付加することなく、データの行の順序を誤りなく
読み取る装置を提供することにある。具体的に
は、NW−7HEX方式でスタート/ストツプ文字
としてあるa〜dまでの4文字を組み合わせて、
データブロツクの順序を誤りなく読取るものであ
る。
上記目的を達成するための本発明を適用するデ
ータの読取装置は、コード化されたデータ群から
なるデータブロツクの複数の行を該データブロツ
クの配列順序にしたがつて読取るデータの読取装
置において、各行の始めに前行の終りのストツプ
コントロールキヤラクタと同一のスタートコント
ロールキヤラクタが配置されたデータブロツクを
走査検出手段で検出した信号のうち、各行の始め
にあるスタートコントロールキヤラクタの信号が
直前に読取つたストツプコントロールキヤラクタ
の信号に一致するか否かの判別手段と、該判別手
段の不一致信号により警告を発する警報手段とを
有することを特徴とする。
以下、第3図〜第7図により本発明の実施例を
詳細に説明する。
第3図は本発明の読取装置に使用するバーコー
ドによりデータを配列した例を示す。
第1行では、スタートキヤラクタ1aとしてa
を配置する。便宜上、このaは文字で示してある
が実際はバーコードで記録されている。次の1b
は実際のデータを表わすバーコードで、1キヤラ
クタ分である。さらに続いて実際のデータ1cが
あり、次には各行の終りを表わすストツプキヤラ
クタ1が入れられる。第1行では、ストツプキヤ
ラクタ1としてbを配置する。第2行ではスター
トキヤラクタ1aをbとしストツプキヤラクタ1
をcとする。以下、第3行ではスタートキヤラク
タ1aをcとしストツプキヤラクタ1をd、第4
行ではスタートキヤラクタ1aをdとし、ストツ
プキヤラクタ1をa、第5行ではスタートキヤラ
クタ1aをaとしてストツプキヤラクタ1をbと
いうように以下順に繰返してゆく。すなわち当該
行のストツプキヤラクタと次の行のスタートキヤ
ラクタを同一文字とし、コントロールキヤラクタ
であるa,b,c,dをくり返し用いるのであ
る。最終行は0D0のコードによりそのデータが終
了であることを示す。
各行の先頭には、操作者に判読可能なように行
番号1dをΦ1,Φ2,Φ3、、、の順に付してあ
る。
以上のように配置されたバーコードを読む装置
のブロツク図が第4図である。
11はバーコードリーダで操作者により手動で
バーコードを走査する。バーコードリーダ11の
出力はコントローラ12に入力し、そこで信号の
検出、誤りの検出が行なわれる。13は表示器
で、読取つた行数又はエラー等を表示する。14
はブザーで、正しく読取られた場合と誤つて読取
られた場合では異なる音声を発する。
コントローラ12は第5図に示すフローチヤー
トに従い動作する。
ステツプS1、S2で初期状態にする。読取フラ
グはスタート文字を読むと「1」ストツプ文字を
読むと「0」となる。ステツプS2ではコントロ
ールレジスタに最初の文字、ここではaを入れ
る。バーコードリーダ11を走査するとバーコー
ドの最初の1文字1aをステツプS3で読む。1
aはコントロールキヤラクタであるからステツプ
S4でyesとなりステツプS5に行く。ステツプS5で
は、読取フラグをチエツクする。ここでは初期状
態で「1」としたからyesとなりステツプS6にゆ
く、ステツプS6では最初に読取つた文字1aが
ステツプS2でaが入つているから文字1aもa
であるから一致するのでyesである。もし誤つて
2行目を走査すると、2行目の最初の文字2aは
bであるから一致しないでNOに行きS11では表
示器13でエラー表示し、エラー音をブザー14
で発声する。
ステツプS6でyesの場合は、ステツプS7で読取
りフラグに「1」を入れ、スタート文字を読み取
つたことを示す。ステツプS8でコントロールレ
ジスタaの次の文字bを入れる。そしてステツプ
S3に戻る。
次にバーコードリーダ11を走査すると、文字
1bを読むステツプS4ではコントロールキヤラ
クタでないからNOとなり、ステツプS9で読取り
フラグが「1」であるのでステツプ10に行き読取
つたデータ1bをテキストエリアにステツプS10
で入れる。ステツプS3−S4−S9−S10を第1行が
終るまでくり返し読まれる。第1行の終わりの文
字、すなわちストツプキヤラクタをステツプS3
で読む。そのストツプキヤラクタはbであるから
ステツプS4でyesとなる。ステツプS5で読取りフ
ラグをチエツクする。読取りフラグは「1」であ
るからNOになりステツプS12でコントロールレ
ジスタの文字と一致をチエツクする。コントロー
ルレジスタにはステツプS8でbを入れてあるか
ら一致し、yesとなりステツプS13に行く。ステ
ツプS13で1行のデータを読取つたことを示すた
め、読取りフラグに「0」を入れる。ステツプ
S14で正しく1行読み取られたことを示すために
表示器13に「φ1」を表示、正常に読取られた
ことを示す。同時にブザー14で正常に読み取つ
た時に音声を発生する。ステツプS15でエンド行
かをチエツクし、NOであるからステツプS3に戻
る。
ステツプS12で、もしバーコードリーダ11の
走査を誤つて次の第2行2を読むと、第2行2の
ストツプキヤラクタはcであるので一致せず、
NOとなりステツプS11でエラー表示を行なう。
次にステツプS3で、次の第2行について前述
と同様にデータを読み取る。もし誤つて第3行を
読むと、ステツプS6でコントロールレジスタに
はbが入つているから、第3行のスタートキヤラ
クタはcであるのでNOとなり、ステツプS11で
エラー表示される。
以上のようにデータ行を次々に読みとり、最後
にエンド行「0D0」を読みとり、ステツプS15で
判定しデータの全ての読取りをステツプS16で終
了し、表示器13に終了を表示するのである。
なお各データ行の先頭には、操作者に判読可能
なように行番号1dをΦ1,Φ2,Φ3、、、の順
に付してあるので、表示器13の表示と一致すれ
ば、正しく読みとられているか否かを常に確認で
きるのである。
スタート、ストツプキヤラクタはa,b,c,
dの4つであるが、これらをくり返し使用しても
4行誤らなければ、行の誤りを検出でき、4行以
上誤ることはないであろう。
以上詳細に説明したように、本発明のデータの
読取装置によれば、複数の行に渡るデータブロツ
クの読取で、行の順序を誤つて読取つたことを容
易に検出することができる。[Table] The data configured in this way is divided into a plurality of lines and recorded as shown in FIG. In FIG. 2, up to three lines are illustrated, and the following are omitted. The data is read by scanning this barcode with a scanning barcode reader. When reading a large amount of data across several lines, it is possible to accidentally read one line over the other. Conversely, you may end up repeatedly reading a line that you have already read. Conventionally, in order to prevent these errors, as shown in Figure 2, a start character 1a indicating the beginning of each line is followed by several characters 1b indicating line numbers 1, 2, 3, etc. The data 1c is arranged to start from the next one. Next to the actual data 1c is a stop character 1 representing the end of each line.
can be entered. The stop character 1 often uses the same character as the start character 1a, for example, a. In addition, start character 1 in Figure 2
a, several characters 1b indicating the next line number, and stop character 1 are respectively character a, character 1 (=1 line,
Although the following lines are indicated by 2, 3, . . . ) and the letter a in order from the second line onwards, they are actually recorded as barcodes as shown in FIG. In conventional barcodes, several characters 1b representing line numbers are included in a series of barcodes, as shown in FIG. 2, so there is an inconvenience that the barcode must be increased by one or more characters. Therefore, the number of reading errors increases as the number of barcodes increases. Additionally, there is less room for entering actual data. SUMMARY OF THE INVENTION An object of the present invention is to provide a device that can read the order of data lines without error, without adding characters representing line numbers as in the prior art. Specifically, by combining the four characters a to d that are used as start/stop characters in the NW-7HEX method,
The data blocks are read in the correct order. A data reading device to which the present invention is applied to achieve the above object is a data reading device that reads a plurality of rows of a data block consisting of a group of coded data according to the arrangement order of the data block. Among the signals detected by the scanning detection means of a data block in which a start control character identical to the stop control character at the end of the previous row is placed at the beginning of each row, the signal of the start control character at the beginning of each row is The present invention is characterized by comprising means for determining whether or not the signal matches the signal of the stop control character read immediately before, and an alarm means for issuing a warning in response to a non-coincidence signal from the determining means. Embodiments of the present invention will be described in detail below with reference to FIGS. 3 to 7. FIG. 3 shows an example of data arranged by barcodes used in the reading device of the present invention. In the first line, a is used as the start character 1a.
Place. For convenience, a is shown as a letter, but it is actually recorded as a bar code. Next 1b
is a barcode representing actual data, and is for one character. Further, there is actual data 1c, and then a stop character 1 indicating the end of each line is entered. In the first line, b is placed as the stop character 1. In the second line, start character 1a is set to b, and stop character 1 is set to b.
Let be c. Hereinafter, in the third line, the start character 1a is c, the stop character 1 is d, and the fourth
In the row, the start character 1a is set to d, the stop character 1 is set to a, and in the fifth row, the start character 1a is set to a, the stop character 1 is set to b, and so on. That is, the stop character of the current line and the start character of the next line are the same character, and the control characters a, b, c, and d are used repeatedly. The last line indicates the end of the data with a code of 0D0. At the beginning of each line, line numbers 1d are given in the order of Φ1, Φ2, Φ3, . . . so that the operator can read them. FIG. 4 is a block diagram of an apparatus for reading bar codes arranged as described above. Reference numeral 11 denotes a barcode reader which allows an operator to manually scan a barcode. The output of the barcode reader 11 is input to the controller 12, where signal detection and error detection are performed. A display 13 displays the number of lines read or errors. 14
is a buzzer that emits different sounds when it is read correctly and when it is read incorrectly. The controller 12 operates according to the flowchart shown in FIG. Set to the initial state in steps S1 and S2. The read flag becomes "1" when the start character is read and "0" when the stop character is read. In step S2, the first character, in this case a, is entered into the control register. When the barcode reader 11 is scanned, the first character 1a of the barcode is read in step S3. 1
Since a is a control character, step
If S4 is yes, go to step S5. In step S5, the read flag is checked. Here, since the initial state is set to "1", the result is yes and the process goes to step S6. In step S6, the first character 1a read in step S2 contains an a, so the character 1a is also an a.
Therefore, it matches, so yes. If you scan the second line by mistake, the first character 2a on the second line is b, so it will not match and you will go to NO, and at S11, an error will be displayed on the display 13, and an error sound will be sounded on the buzzer 14.
Make a sound. If the answer is yes in step S6, "1" is set in the read flag in step S7, indicating that the start character has been read. In step S8, the next character b of control register a is input. and step
Return to S3. Next, when the barcode reader 11 is scanned, in step S4 to read character 1b, NO is returned because it is not a control character, and in step S9, the read flag is ``1'', so the process goes to step 10 and reads the read data 1b into the text area. S10
Enter it with Steps S3-S4-S9-S10 are read repeatedly until the first line is finished. Step S3 the character at the end of the first line, the stop character.
Read at. Since the stop character is b, the answer at step S4 is yes. Check the read flag in step S5. Since the read flag is "1", the result is NO, and in step S12, a check is made to see if it matches the character in the control register. Since b was entered in the control register in step S8, it matches, and the result is yes, and the process goes to step S13. In step S13, "0" is set in the read flag to indicate that one row of data has been read. step
In S14, "φ1" is displayed on the display 13 to indicate that one line has been read correctly, indicating that it has been read normally. At the same time, a buzzer 14 generates a sound when it is read normally. At step S15, the end line is checked, and since the answer is NO, the process returns to step S3. In step S12, if the next second line 2 is read by scanning the barcode reader 11 incorrectly, the stop character of the second line 2 will not match because it is c.
If NO, an error is displayed in step S11. Next, in step S3, data for the next second row is read in the same manner as described above. If the third line is read by mistake, since the control register contains b in step S6 and the start character of the third line is c, the result will be NO, and an error will be displayed in step S11. As described above, data lines are read one after another, and finally the end line "0D0" is read, a determination is made in step S15, and all data reading is completed in step S16, and the end is displayed on the display 13. At the beginning of each data line, a line number 1d is given in the order of Φ1, Φ2, Φ3, etc. so that the operator can read it, so if it matches the display on the display 13, it can be read correctly. You can always check whether the information is correct or not. Start and stop characters are a, b, c,
Regarding the four lines in d, if there are no errors in four lines even if these are used repeatedly, line errors can be detected and there will be no errors in more than four lines. As described above in detail, according to the data reading device of the present invention, it is possible to easily detect when reading a data block spanning a plurality of rows that the rows are read out of order.
第1図はバーコードを示す図、第2図は従来の
バーコードの配列例を示す図、第3図は本発明の
読取装置に使用されるバーコードの配列例を示す
図、第4図は本発明バーコードリーダの制御ブロ
ツク図、第5図はバーコードリーダの制御フロー
チヤートである。
11……バーコードリーダ、12……コントロ
ーラ、13……表示器、14……ブザー。
FIG. 1 is a diagram showing a barcode, FIG. 2 is a diagram showing an example of a conventional barcode arrangement, FIG. 3 is a diagram showing an example of a barcode arrangement used in the reading device of the present invention, and FIG. 5 is a control block diagram of the barcode reader of the present invention, and FIG. 5 is a control flowchart of the barcode reader. 11... Barcode reader, 12... Controller, 13... Display, 14... Buzzer.
Claims (1)
ツクの複数の行を該データブロツクの配列順序に
したがつて読取るデータの読取装置において、各
行の始めに前行の終りのストツプコントロールキ
ヤラクタと同一のスタートコントロールキヤラク
タが配置されたデータブロツクを走査検出手段で
検出した信号のうち、各行の始めにあるスタート
コントロールキヤラクタの信号が直前に読取つた
ストツプコントロールキヤラクタの信号に一致す
るか否かの判別手段と、該判別手段の不一致信号
により警告を発する警報手段とを有することを特
徴とするデータの読取装置。 2 前記警報手段がデイスプレイ装置であること
を特徴とする特許請求の範囲第1項に記載のデー
タの読取装置。 3 前記警報手段が音声警報装置であることを特
徴とする特許請求の範囲第1項に記載のデータの
読取装置。 4 前記警報手段がデイスプレイ装置及び音声警
報装置であることを特徴とする特許請求の範囲第
1項に記載のデータの読取装置。[Scope of Claims] 1. In a data reading device that reads a plurality of rows of a data block consisting of a group of coded data according to the arrangement order of the data block, a stop at the end of the previous row is placed at the beginning of each row. Among the signals detected by the scanning detection means in a data block in which a start control character identical to the control character is arranged, the signal of the stop control character whose signal of the start control character at the beginning of each row was read immediately before. What is claimed is: 1. A data reading device comprising: means for determining whether or not the data match, and an alarm means for issuing a warning in response to a non-coincidence signal from the determining means. 2. The data reading device according to claim 1, wherein the alarm means is a display device. 3. The data reading device according to claim 1, wherein the warning means is an audio warning device. 4. The data reading device according to claim 1, wherein the warning means is a display device and an audio warning device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6106984A JPS60205780A (en) | 1984-03-30 | 1984-03-30 | Method and device for data read |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP6106984A JPS60205780A (en) | 1984-03-30 | 1984-03-30 | Method and device for data read |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60205780A JPS60205780A (en) | 1985-10-17 |
| JPH0335704B2 true JPH0335704B2 (en) | 1991-05-29 |
Family
ID=13160483
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP6106984A Granted JPS60205780A (en) | 1984-03-30 | 1984-03-30 | Method and device for data read |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS60205780A (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH063413Y2 (en) * | 1986-11-14 | 1994-01-26 | 株式会社学習研究社 | Bar-code type learning device |
| JPS63250786A (en) * | 1987-04-07 | 1988-10-18 | Toyota Motor Corp | Information reader |
| JPH0642280Y2 (en) * | 1988-10-13 | 1994-11-02 | トヨタ自動車株式会社 | Bar code reader |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5129031A (en) * | 1974-09-05 | 1976-03-11 | Matsushita Electric Industrial Co Ltd | |
| JPS5596427U (en) * | 1978-12-27 | 1980-07-04 | ||
| JPS5854759U (en) * | 1981-10-05 | 1983-04-14 | カシオ計算機株式会社 | Color barcode display |
-
1984
- 1984-03-30 JP JP6106984A patent/JPS60205780A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60205780A (en) | 1985-10-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4509129A (en) | Electronic calculating machine with facilities of announcing data introduced | |
| JPH01282694A (en) | Optical reading code and information transmitting method | |
| JPH0335704B2 (en) | ||
| JPS5840776B2 (en) | electronic cash register | |
| JPH0421915B2 (en) | ||
| JPS6220027Y2 (en) | ||
| JPH0752473B2 (en) | POS terminal device | |
| JPS6046739B2 (en) | Erroneous information check circuit for card information processing device | |
| JPS5816339A (en) | Printer | |
| JP2990942B2 (en) | Optical character reader | |
| JPH1076711A (en) | Method and apparatus for marking products | |
| JP2761251B2 (en) | Barcode reading method | |
| JPH0442685B2 (en) | ||
| JP2741404B2 (en) | Barcode reader | |
| JP2783234B2 (en) | Barcode reader | |
| CS215317B1 (en) | Connection for the control of record on at least single punched tape | |
| JPS5937882Y2 (en) | error display device | |
| JPH0642280Y2 (en) | Bar code reader | |
| JPS58165129A (en) | Editing device | |
| JPS6139268A (en) | Magnetic card encoder | |
| JPS6120912B2 (en) | ||
| JPH0248754A (en) | Part number reader for rom chip | |
| JPS6269378A (en) | Bar code reader | |
| JPH06259587A (en) | Bar code issuing device | |
| JPS5812081A (en) | Character and code information printing processing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |