JP2552830B2 - Printer device with bar code printing function - Google Patents
Printer device with bar code printing functionInfo
- Publication number
- JP2552830B2 JP2552830B2 JP60270047A JP27004785A JP2552830B2 JP 2552830 B2 JP2552830 B2 JP 2552830B2 JP 60270047 A JP60270047 A JP 60270047A JP 27004785 A JP27004785 A JP 27004785A JP 2552830 B2 JP2552830 B2 JP 2552830B2
- Authority
- JP
- Japan
- Prior art keywords
- dot
- bar code
- interrupt
- time
- printing
- 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
- 238000000034 method Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 9
- 230000000694 effects Effects 0.000 description 2
- 230000000740 bleeding effect Effects 0.000 description 1
- 230000000873 masking effect Effects 0.000 description 1
Landscapes
- Printers Characterized By Their Purpose (AREA)
- Dot-Matrix Printers And Others (AREA)
Description
【発明の詳細な説明】 〔概要〕 ドット割込みが発生してから実際にドットを印字する
までの時間を調整するためのカウンタを持ち、バー・コ
ードのバー印字を行う場合、上記カウンタにセットする
値を変化させることにより、バーを構成するドット列が
重なり合って印字されるようにしたものである。DETAILED DESCRIPTION OF THE INVENTION [Outline] A counter for adjusting the time from the occurrence of a dot interrupt until the actual printing of dots is provided. When performing bar printing of bar codes, the counter is set to the above counter. By changing the value, the dot rows composing the bar are overlapped and printed.
本発明は、バーを構成するドット列を重なりあって印
字するようにしたバー・コード印字機能を持つプリンタ
装置に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer device having a bar code printing function that prints dot rows forming a bar by overlapping them.
〔従来技術と問題点〕 第5図は従来のバー・コード印字結果と印字結果をイ
メージ・センサ等で読み取ったときのセンサ出力とを示
す図である。従来のバー・コード印字方式ではドット・
インパクトの間隔が一定であるため、イメージ・センサ
等でバー・コードを読み取る際にリボン・インクのにじ
みやセンサの特性などにより、同じドット数でもバーの
幅がスペースの幅より広く見えてしまい、誤読され易い
欠点があった。[Prior Art and Problems] FIG. 5 is a diagram showing a conventional bar code printing result and a sensor output when the printing result is read by an image sensor or the like. With the conventional bar code printing method, dots
Since the intervals of impacts are constant, when reading a bar code with an image sensor etc., the width of the bar will appear wider than the width of the space even if the number of dots is the same due to ribbon ink bleeding and sensor characteristics. It had the drawback of being easily misread.
本発明は、上記の欠点を除去するものであって、バー
・コードを印字する際にバーの幅を補正することによ
り、イメージ・センサ等でバー・コードを読み取る際の
バー・コード読取り率を向上させ得るようになったバー
・コード印字機能を持つプリンタ装置を提供することを
目的としている。The present invention eliminates the above-mentioned drawbacks, and by correcting the width of the bar when printing the bar code, the bar code reading rate when the bar code is read by an image sensor or the like is improved. It is an object of the present invention to provide a printer device having a bar code printing function which can be improved.
そしてそのため、本発明のバー・コード印字機能を持
つプリンタ装置は、 プリント・ヘッドを搭載したキャリアと、 キャリアが一定距離移動するごとにドット割込みを生
成する手段と、 ドット割込みが発生したときに起動されるドット割込
み処理手段およびドット割込み発生から実際に印字が行
われるまでの時間を調整するためのカウンタを有するプ
リンタ制御装置と を具備するバー・コード印字機能を持つプリンタ装置で
あって、 ドット割込み処理手段は、バー・コードのバーを構成
する第i番目(iは1,2,3,…)のドット列の印字の場合
は、カウンタにカウンタ値Ci(ただし、C1>C2>C3>
…)をセットし、セットされた時を基準にしてカウンタ
値で指定された時間が経過した時に、プリント・ヘッド
でドット列を印字するように構成されている ことを特徴とするものである。Therefore, the printer device having the bar code printing function of the present invention has a carrier equipped with a print head, a means for generating a dot interrupt each time the carrier moves a certain distance, and a start-up when a dot interrupt occurs. A dot interrupt processing means and a printer controller having a counter for adjusting the time from the dot interrupt occurrence until the actual printing is performed. In the case of printing the i-th (i is 1,2,3, ...) Dot row forming the bar of the bar code, the processing means displays a counter value C i (where C 1 > C 2 >). C 3 >
...) is set, and when the time designated by the counter value has elapsed with reference to the set time, the print head prints a dot row.
以下、本発明を図面を参照しつつ説明する。 Hereinafter, the present invention will be described with reference to the drawings.
第4図は本発明によるバー・コード印字結果と印字結
果をイメージ・センサで読み取ったときのセンサ出力を
示す図である。第4図に示すように、バーを構成する部
分においては、第1列と第2列が重なり合い、第2列と
第3列も重なりあっている。このようなバー・コード印
字結果をイメージ・センサで読み取ると、バー幅とスペ
ース幅が等しいように見える。FIG. 4 is a diagram showing a bar code printing result according to the present invention and a sensor output when the printing result is read by an image sensor. As shown in FIG. 4, in the portion forming the bar, the first row and the second row overlap, and the second row and the third row also overlap. When such a bar code print result is read by the image sensor, the bar width and the space width appear to be equal.
第1図は本発明で使用されるドット・インパクト型プ
リンタ装置の1例を示す図である。第1図において、1
はプリント・ヘッド、2はキャリア、3はキャリア移動
用モータ、4はハンマ・ドライバ、5はモータ・ドライ
バ、6はアドレス・デコーダ、7はタイマ、8はROM、
9はRAM、10はマイクロプロセッサ、11はインタフェー
ス回路をそれぞれ示している。プリント・ヘッド1はキ
ャリア2に取り付けられている。キャリア2はプラテン
上を左右に移動する。ハンマ・ドライバ4は、プリント
・ヘッド1のハンマを駆動するための電流を供給するも
のである。モータ・ドライバ5は、モータ3に駆動電流
を供給するものである。アドレス・デコーダ6はアドレ
ス・バス上のアドレスを解読し、対応する回路を起動す
るものである。タイマ7は、プリント・タイミング(ド
ット・インパクト割込み)等を生成するものである。RO
M8の中には各種の制御プログラムや文字発生器が格納さ
れている。RAM9の中にはデータが格納される。マイクロ
プロセッサ10は、ROM8内の制御プログラムを実行するも
のである。インタフェース回路11は、本体装置との間の
データ転送を制御するものであり、本体装置から送られ
てきたデータをRAM9の中に格納したり、RAM9内のデータ
を本体装置に送ったりする機能を持つものである。FIG. 1 is a diagram showing an example of a dot impact type printer device used in the present invention. In FIG. 1, 1
Is a print head, 2 is a carrier, 3 is a carrier moving motor, 4 is a hammer driver, 5 is a motor driver, 6 is an address decoder, 7 is a timer, 8 is a ROM,
Reference numeral 9 is a RAM, 10 is a microprocessor, and 11 is an interface circuit. The print head 1 is attached to the carrier 2. The carrier 2 moves left and right on the platen. The hammer driver 4 supplies a current for driving the hammer of the print head 1. The motor driver 5 supplies a drive current to the motor 3. The address decoder 6 decodes the address on the address bus and activates the corresponding circuit. The timer 7 is for generating print timing (dot impact interrupt) and the like. RO
Various control programs and character generators are stored in M8. Data is stored in the RAM 9. The microprocessor 10 executes the control program in the ROM 8. The interface circuit 11 controls data transfer with the main body device, and has a function of storing data sent from the main body device in the RAM 9 and sending data in the RAM 9 to the main body device. To have.
第2図はドット・インパクト割込みが発生した時の処
理を説明する図である。キャリアが1ドット移動する毎
に割込みが発生する。ドット・インパクト割込みが発生
すると、ROM8内のドット・インパクト割込み処理プログ
ラムが実行され、次のような処理が行われる。FIG. 2 is a diagram for explaining the processing when a dot impact interrupt occurs. An interrupt is generated each time the carrier moves by one dot. When a dot impact interrupt occurs, the dot impact interrupt processing program in ROM8 is executed and the following processing is performed.
カウンタに初期値をセットする。初期値とは、通常文
字を印字するときのカウンタ値である。Set the initial value in the counter. The initial value is a counter value when printing a normal character.
バー・コード印字か否かを調べる。Yesのときはの
処理を行い、Noのときはの処理を行う。Check whether the bar code is printed. If Yes, perform the process, and if No, perform the process.
ハンマ・マスクを解除し、印字ができるようにする。Release the hammer mask to enable printing.
バー印字か否かを調べる。Yesのときはの処理を行
い、Noのときはの処理を行う。Check whether the bar prints. If Yes, perform the process, and if No, perform the process.
カウンタ値をセットする。カウンタ値とは、ドット・
インパクト割込みが発生してから実際にインパクトする
までの時間調整用のカウンタの値である。Set the counter value. What is a counter value?
This is the value of the counter for adjusting the time from the occurrence of the impact interrupt to the actual impact.
カウンタの値を−1する。Decrement the value of the counter by -1.
カウンタの値が0か否かを調べる。Yesのときはの
処理を行い、Noのときはの処理に戻る。Check whether the counter value is 0 or not. If Yes, the process is performed. If No, the process returns to.
ドット・インパクト(バー印字)を行う。Dot impact (bar printing).
ハンマ・マスクを解除し、印字できるようにする。Release the hammer mask to enable printing.
カウンタを−1する。Decrement the counter by -1.
カウンタの値が0か否かを調べる。Yesのときはの
処理を行い、Noのときはの処理に戻る。Check whether the counter value is 0 or not. If Yes, the process is performed. If No, the process returns to.
ドット・インパクト(文字印字)を行う。次にの処
理を行う。Dot impact (character printing). The following processing is performed.
印字が終了したか否かを調べる。Yesのときはの処
理を行い、Noのときはの処理を行う。Check whether printing is completed. If Yes, perform the process, and if No, perform the process.
ハンマ・マスクをセットする。ハンマ・マスクをセッ
トするとは、ヘッド・ピンがインパクトしないようにヘ
ッド・ピンをマスクすることを意味する。Set the hammer mask. Setting the hammer mask means masking the head pins so that the head pins do not impact.
タイマをセットする。即ち、1ドット移動する毎にタ
イマ割込みが発生するように、タイマに値をセットす
る。このタイマ割込みとドット・インパクト割込みは同
義である。キャリアが一定速度で移動しているので、最
初のタイマ割込みと次のタイマ割込みの間にキャリアが
走行する距離は一定となる。Set the timer. That is, a value is set in the timer so that a timer interrupt is generated every time one dot is moved. The timer interrupt and the dot impact interrupt are synonymous. Since the carrier is moving at a constant speed, the distance traveled by the carrier between the first timer interrupt and the next timer interrupt is constant.
第3図はドット・インパクト割込みと実際のドット・
インパクトの関係を示すものである。バー印字が第1列
のものである場合にはドット・インパクト割込みがあっ
てからt1時間後に実際のドット・インパクトが行われ、
バー印字が第2列のものである場合にはドット・インパ
クト割込みがあってからt2時間後に実際のドット・イン
パクトが行われ、バー印字が第3列のものである場合に
はドット・インパクト割込みがあってからt3時間後に実
際のドット・インパクトが行われる。なお、t1>t2>t3
になるようにカウンタ値が設定される。Figure 3 shows the dot impact interrupt and the actual dot
It shows the relationship of impact. If the bar print is for the first line, the actual dot impact will be performed 1 hour after the dot impact interrupt.
If the bar print is for the second line, the actual dot impact is performed t 2 hours after the dot impact interrupt, and if the bar print is for the third line, the dot impact is performed. The actual dot impact occurs 3 hours after the interruption. Note that t 1 > t 2 > t 3
The counter value is set so that
第3図に示すように、ドット・インパクト発生間隔は
一定であるが、ドット・インパクト割込みから実際のイ
ンパクトまでの時間を変えていくことによって、第4図
に示すようにドット列が重なりあって印字されるように
することが出来る。これについて説明する。ドット・イ
ンパクト割込みの発生間隔をTとし、t1>t2>t3であ
り、Tが1ドット幅だけ移動するための時間であると仮
定する。第1番目のドット列は時刻t1で印字され、第2
番目のドット列は時刻T+t2で印字され、第3番目のド
ット列は時刻2T+t3で印字される。第2番目のドット列
の印字時刻と第1番目のドット列の印字時刻の差はT+
t2−t1<Tとなり、第3番目のドット列の印字時刻と第
2番目のドット列の印字時刻の差はT+t3−t2<Tとな
る。すなわち、第2番目のドット列は第1番目のドット
列と重なり合うように印字され、第3番目のドット列は
第2番目のドット列と重なり合うように印字される。As shown in FIG. 3, the dot impact occurrence interval is constant, but by changing the time from the dot impact interrupt to the actual impact, the dot rows overlap as shown in FIG. It can be printed. This will be described. It is assumed that the interval of occurrence of dot impact interruption is T, t 1 > t 2 > t 3 , and that T is the time for moving by one dot width. The first dot row is printed at time t 1
The third dot row is printed at time T + t 2 and the third dot row is printed at time 2T + t 3 . The difference between the print time of the second dot row and the print time of the first dot row is T +
t 2 −t 1 <T, and the difference between the print time of the third dot row and the print time of the second dot row is T + t 3 −t 2 <T. That is, the second dot row is printed so as to overlap with the first dot row, and the third dot row is printed so as to overlap with the second dot row.
以上の説明から明らかなように、本発明によれば、バ
ー・コードの誤読を防止できるという顕著な効果を奏す
ることが出来る。すなわち、カウンタにセットする値に
よってドット列と次のドット列の距離を調整できるの
で、インク・リボンやセンサの特性などを考慮して、バ
ーの幅を調整することが可能となる。As is clear from the above description, according to the present invention, it is possible to achieve a remarkable effect of preventing erroneous reading of bar codes. That is, since the distance between the dot row and the next dot row can be adjusted by the value set in the counter, the width of the bar can be adjusted in consideration of the characteristics of the ink ribbon and the sensor.
第1図は本発明で使用されるドット・インパクト型プリ
ンタ装置の1例を示す図、第2図はドット・インパクト
割込みが発生した時の処理を説明する図、第3図はドッ
ト・インパクト割込みと実際のドット・インパクトの関
係を示す図、第4図は本発明によるバー・コード印字結
果とバー・コード印字結果をイメージ・センサで読み取
った時のセンサ出力を示す図、第5図は従来のバー・コ
ード印字結果とバー・コード印字結果をイメージ・セン
サで読み取った時のセンサ出力を示す図である。 1……プリント・ヘッド、2……キャリア、3……キャ
リア移動用モータ、4……ハンマ・ドライバ、5……モ
ータ・ドライバ、6……アドレス・デコーダ、7……タ
イマ、8……ROM、9……RAM、10……マイクロプロセッ
サ、11……インタフェース回路。FIG. 1 is a diagram showing an example of a dot impact type printer used in the present invention, FIG. 2 is a diagram for explaining processing when a dot impact interrupt occurs, and FIG. 3 is a dot impact interrupt. And FIG. 4 is a diagram showing the relationship between the dot impact and the actual dot impact. FIG. 4 is a diagram showing a bar code printing result according to the present invention and a sensor output when the bar code printing result is read by an image sensor. FIG. FIG. 7 is a diagram showing a bar code printing result of the above and a sensor output when the bar code printing result is read by an image sensor. 1 ... Print head, 2 ... Carrier, 3 ... Carrier moving motor, 4 ... Hammer driver, 5 ... Motor driver, 6 ... Address decoder, 7 ... Timer, 8 ... ROM , 9 ... RAM, 10 ... Microprocessor, 11 ... Interface circuit.
Claims (1)
する手段と、 ドット割込みが発生したときに起動されるドット割込み
処理手段およびドット割込み発生から実際に印字が行わ
れるまでの時間を調整するためのカウンタを有するプリ
ンタ制御装置と を具備するバー・コード印字機能を持つプリンタ装置で
あって、 ドット割込み処理手段は、バー・コードのバーを構成す
る第i番目(iは1,2,3,…)のドット列の印字の場合
は、カウンタにカウンタ値Ci(ただし、C1>C2>C3>
…)をセットし、セットされた時を基準にして上記カウ
ンタ値で指定された時間が経過した時に、プリント・ヘ
ッドでドット列を印字するように構成されている ことを特徴とするバー・コード印字機能を持つプリンタ
装置。1. A carrier equipped with a print head, a means for generating a dot interrupt each time the carrier moves a fixed distance, a dot interrupt processing means activated when a dot interrupt occurs, and an actual dot interrupt generation. A printer device having a bar code printing function, comprising a printer control device having a counter for adjusting the time until printing is performed on the printer, and the dot interrupt processing means constitutes a bar of the bar code. In the case of printing the i-th (i is 1, 2, 3, ...) Dot row, the counter value C i (where C 1 > C 2 > C 3 >
...) is set, and when the time specified by the above counter value has elapsed with reference to the time when it was set, the print head prints a dot row, and the bar code is characterized in that Printer device with printing function.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60270047A JP2552830B2 (en) | 1985-11-30 | 1985-11-30 | Printer device with bar code printing function |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60270047A JP2552830B2 (en) | 1985-11-30 | 1985-11-30 | Printer device with bar code printing function |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62128760A JPS62128760A (en) | 1987-06-11 |
| JP2552830B2 true JP2552830B2 (en) | 1996-11-13 |
Family
ID=17480784
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60270047A Expired - Lifetime JP2552830B2 (en) | 1985-11-30 | 1985-11-30 | Printer device with bar code printing function |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2552830B2 (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0755566B2 (en) * | 1988-06-01 | 1995-06-14 | 株式会社ピーエフユー | Serial printer with bar code printing function |
| JPH0588952U (en) * | 1992-05-15 | 1993-12-03 | 日立工機株式会社 | Dot printer |
| JPH0991395A (en) * | 1996-02-27 | 1997-04-04 | Teiriyou Sangyo Kk | Identification code paper |
| JP3557512B2 (en) * | 1997-12-03 | 2004-08-25 | ミヤチテクノス株式会社 | Laser marking method for 2D barcode |
| JP5778918B2 (en) * | 2010-11-30 | 2015-09-16 | 株式会社沖データ | Bar code printer |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS60110478A (en) * | 1983-11-21 | 1985-06-15 | Sony Corp | Bar code printing apparatus |
| JPH0666666B2 (en) * | 1984-07-03 | 1994-08-24 | 沖電気工業株式会社 | Pulse interval converter |
-
1985
- 1985-11-30 JP JP60270047A patent/JP2552830B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62128760A (en) | 1987-06-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4224869A (en) | Parallel line printer | |
| JP2552830B2 (en) | Printer device with bar code printing function | |
| JPH0242356B2 (en) | ||
| EP1413448B1 (en) | Tape printer | |
| US4810113A (en) | Print head driving system | |
| KR0123531B1 (en) | Optimal carriage control of serial printer | |
| JPH0219795B2 (en) | ||
| JPH0356549B2 (en) | ||
| EP0199185B1 (en) | Printing device | |
| EP0298660B1 (en) | Printing apparatus operated by means of thermal energy | |
| JP2645170B2 (en) | Line printer printing method | |
| JPH0655758A (en) | Thermal printer | |
| JPH0632953B2 (en) | Dot printer printing method | |
| JP2903669B2 (en) | Recording device | |
| JP2973634B2 (en) | Serial printer | |
| JP2872136B2 (en) | Serial dot printer | |
| JPH0550395B2 (en) | ||
| KR910009064B1 (en) | How to correct character size for printer | |
| JPH0588675B2 (en) | ||
| JPH0577495A (en) | Printer device | |
| JPH0755566B2 (en) | Serial printer with bar code printing function | |
| JPS6266980A (en) | Ribbon feed system | |
| JPH02274584A (en) | Thermal transfer serial printer | |
| JPS639988B2 (en) | ||
| JPH11198450A (en) | Printing method of inkjet printer |