[go: up one dir, main page]

JPH09300711A - Bar code printer - Google Patents

Bar code printer

Info

Publication number
JPH09300711A
JPH09300711A JP14087296A JP14087296A JPH09300711A JP H09300711 A JPH09300711 A JP H09300711A JP 14087296 A JP14087296 A JP 14087296A JP 14087296 A JP14087296 A JP 14087296A JP H09300711 A JPH09300711 A JP H09300711A
Authority
JP
Japan
Prior art keywords
bar code
width
controller
printer
bar
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
JP14087296A
Other languages
Japanese (ja)
Inventor
Takayuki Ito
孝行 伊藤
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.)
Suzuka Fuji Xerox Manufacturing Co Ltd
Original Assignee
Suzuka Fuji Xerox Manufacturing 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 Suzuka Fuji Xerox Manufacturing Co Ltd filed Critical Suzuka Fuji Xerox Manufacturing Co Ltd
Priority to JP14087296A priority Critical patent/JPH09300711A/en
Publication of JPH09300711A publication Critical patent/JPH09300711A/en
Pending legal-status Critical Current

Links

Landscapes

  • Printers Characterized By Their Purpose (AREA)
  • Electronic Switches (AREA)

Abstract

PROBLEM TO BE SOLVED: To realize constant printing quality and to easily adjust a printing condition. SOLUTION: A bar code printer consists of a sensor 1 reading a printed bar code symbol, an A/D converter 2 converting the analogue signal outputted from the sensor 1 to digital data, a controller 3 storing and operating the digital data of the bar code symbol from the A/D converter 2 to calculate values related to the width and reflectivity of an element and confirming the kind of the element of the bar code symbol to calculate the width of the element to output a printing control signal and a printer 4 controlling a printing condition on the basis of the printing control signal outputted from the controller 3.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、印字したバーコー
ドシンボルを読み取るセンサの出力に基づき、バーコー
ドシンボルのバーおよびスペースの各エレメントの組み
合わせで異なる検出レベルに基づき各エレメントの幅を
算出することにより、エレメントの幅とエレメントの反
射率に基づきコントラスト等の印字品質に関する量を求
めて、印字条件を制御することにより、一定の印字品質
を実現するとともに、印字条件の調整を容易にするバー
コード印字装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention calculates the width of each element on the basis of the output of a sensor that reads a printed barcode symbol and based on the detection level that is different for each combination of the bar and space elements of the barcode symbol. The bar code that achieves a certain print quality and facilitates adjustment of the print conditions by determining the amount related to the print quality such as contrast based on the element width and the reflectance of the element, and controlling the print conditions. Regarding a printing device.

【0002】[0002]

【従来の技術】従来のバーコードシンボル印刷品質検査
装置(特開昭56−72774)は、印刷されたバーコ
ードシンボルラベルを所定位置にセットして、光線を使
いモータにて走査させ、集光レンズで反射光を受光させ
信号処理、演算を行い、黒バー幅(バー幅)と白バー幅
(スペース幅)との比を算出、表示するものであった。
2. Description of the Related Art A conventional bar code symbol print quality inspection apparatus (Japanese Patent Laid-Open No. 56-72774) sets a printed bar code symbol label at a predetermined position, scans it with a light beam by a motor, and condenses it. The reflected light is received by the lens, signal processing and calculation are performed, and the ratio between the black bar width (bar width) and the white bar width (space width) is calculated and displayed.

【0003】従来のバーコード印刷濃度表示プリンタ装
置(特開平2−293178)は、印字したバーコード
を読み取り、読み取りデータからバーの黒レベルとスペ
ースの白レベルを算出し、濃度値(PCS値)を表示す
るものであった。
A conventional bar code print density display printer device (Japanese Patent Laid-Open No. 2-293178) reads a printed bar code, calculates a black level of a bar and a white level of a space from the read data, and outputs a density value (PCS value). Was to be displayed.

【0004】[0004]

【発明が解決しようとする課題】従来のバーコードシン
ボル印刷品質検査装置は、黒バー幅(バー幅)と白バー
幅(スペース幅)との比を算出、表示するだけであり、
そのデータをもとにバーコード印字装置の熱印字装置の
印字条件を自動的に制御するものではないという問題が
あった。
The conventional bar code symbol print quality inspection device only calculates and displays the ratio of the black bar width (bar width) and the white bar width (space width).
There is a problem that the printing conditions of the thermal printing device of the bar code printing device are not automatically controlled based on the data.

【0005】また従来のバーコード印刷濃度表示プリン
タ装置は、読み取ったデータからバーの黒レベルとスペ
ースの白レベルを算出し、濃度値(PCS値)を表示す
るだけであり、そのデータをもとにバーコード印字装置
の熱印字装置の印字条件を自動的に制御するものではな
いという問題があった。
Further, the conventional bar code print density display printer device only calculates the black level of the bar and the white level of the space from the read data and displays the density value (PCS value). In addition, there is a problem that the printing conditions of the thermal printing device of the bar code printing device are not automatically controlled.

【0006】一般に熱転写方式のバーコード印字装置
は、使用するラベルやインクリボンの種類により熱印字
装置の発熱量を制御する必要があるが、従来においては
印字されたバーコードシンボルを目視して手動により発
熱量を調整していた。しかしバーコードの品質を高める
ためには、印字されたバーコードのコントラストやエレ
メントの幅等の情報に基づき、前記熱印字装置の発熱量
を制御する必要がある。
In general, a thermal transfer type bar code printer needs to control the amount of heat generated by the thermal printer depending on the type of label or ink ribbon used. The calorific value was adjusted by. However, in order to improve the quality of the barcode, it is necessary to control the amount of heat generated by the thermal printer based on the information such as the contrast of the printed barcode and the width of the element.

【0007】そこで本発明者らは、印字したバーコード
シンボルを読み取るセンサの出力に基づき、バーコード
シンボルのバーおよびスペースの各エレメントの組み合
わせで異なる検出レベルに基づき各エレメントの幅を算
出することにより、エレメントの幅とエレメントの反射
率に基づきコントラスト等の印字品質に関する量を求め
て、印字条件を制御するという本発明の技術的思想に着
眼し、さらに研究開発を重ねた結果、一定の印字品質を
実現するとともに、印字条件の調整を容易にするという
目的を達成する本発明に到達したものである。
Therefore, the inventors of the present invention calculate the width of each element based on the output of the sensor that reads the printed bar code symbol and the detection level that is different for each combination of the bar and space elements of the bar code symbol. Based on the technical idea of the present invention that the amount of the print quality such as contrast is obtained based on the width of the element and the reflectance of the element, and the print condition is controlled, and further research and development are conducted, the result is that the print quality is constant. In addition to achieving the above, the present invention has achieved the object of facilitating adjustment of printing conditions.

【0008】[0008]

【課題を解決するための手段】本発明(請求項1に記載
の第1発明)のバーコード印字装置は、印字したバーコ
ードシンボルを読み取るセンサの出力に基づきエレメン
トの幅とエレメントの反射率に基づき印字条件が制御さ
れるバーコード印字装置において、バーコードシンボル
のバーおよびスペースの各エレメントの組み合わせで異
なる検出レベルに基づき各エレメントの幅を算出するこ
とにより、印字条件を制御するものである。
A bar code printer according to the present invention (a first invention according to claim 1) determines the width of an element and the reflectance of the element based on the output of a sensor for reading a printed bar code symbol. In a barcode printing apparatus in which printing conditions are controlled based on the printing conditions, the printing conditions are controlled by calculating the width of each element based on the detection level that differs depending on the combination of each element of the bar and the space of the barcode symbol.

【0009】本発明(請求項2に記載の第2発明)のバ
ーコード印字装置は、印字したバーコードシンボルを読
み取るセンサと、該センサから出力されるアナログ信号
をデジタルデータに変換するA/Dコンバータと、該A
/Dコンバータからのバーコードシンボルのデジタルデ
ータを記憶、演算し、エレメントの幅とエレメントの反
射率に関する値の算出を行い、前記バーコードシンボル
の各エレメントの種類を認識するとともに、各エレメン
トの幅を算出して印字制御信号を出力するコントローラ
と、該コントローラから出力される印字制御信号に基づ
き印字条件を制御する印字装置とから成るものである。
A bar code printing apparatus according to the present invention (a second invention according to claim 2) is a sensor for reading a printed bar code symbol and an A / D for converting an analog signal output from the sensor into digital data. Converter and the A
The digital data of the bar code symbol from the A / D converter is stored and operated to calculate the values related to the width of the element and the reflectance of the element, the type of each element of the bar code symbol is recognized, and the width of each element is calculated. And a printing device for controlling printing conditions based on the printing control signal output from the controller.

【0010】本発明(請求項3に記載の第3発明)のバ
ーコード印字装置は、前記第2発明に対して、前記コン
トローラが、予め設定したセンサ出力の最大値と最小値
の中間レベルにおける前記バーコードシンボルの各エレ
メントの幅により該バーコードシンボルの各エレメント
の種類を認識するものである。
In the bar code printing apparatus of the present invention (the third invention according to claim 3), the controller at the intermediate level between the maximum value and the minimum value of the sensor output set in advance by the controller is different from the second invention. The type of each element of the barcode symbol is recognized based on the width of each element of the barcode symbol.

【0011】本発明(請求項4に記載の第4発明)のバ
ーコード印字装置は、前記第3発明において、前記コン
トローラが、前記バーコードシンボルの各エレメントの
組み合わせで異なる検出レベルに基づき各エレメントの
幅を算出して印字制御信号を出力するものである。
In the bar code printing apparatus of the present invention (the fourth invention according to claim 4), in the third invention, the controller is configured so that each element of the bar code symbol is based on a different detection level depending on a combination of the elements. Is calculated and the print control signal is output.

【0012】本発明(請求項5に記載の第5発明)のバ
ーコード印字装置は、前記第4発明において、前記印字
装置が、該コントローラから出力される印字制御信号に
基づき発熱量を制御する熱印字装置によって構成される
ものである。
A bar code printer according to the present invention (a fifth invention according to claim 5) is the bar code printer according to the fourth invention, wherein the printer controls the amount of heat generation based on a print control signal output from the controller. It is composed of a thermal printer.

【0013】本発明(請求項6に記載の第6発明)のバ
ーコード印字装置は、前記第5発明において、前記コン
トローラが、太スペースに続く細バーの幅および太スペ
ースの反射率、細バーの反射率からコントラストに関す
る値を算出するとともに、予め設定したコントラスト値
およびエレメントの幅などの基準データとの比較を行
い、比較結果に基づき印字制御信号を出力するものであ
る。
In the bar code printing apparatus of the present invention (the sixth invention according to claim 6), in the fifth invention, the controller is characterized in that the width of the thin bar following the thick space, the reflectance of the thick space, and the thin bar. A value relating to the contrast is calculated from the reflectance, and the comparison is made with reference data such as a preset contrast value and element width, and a print control signal is output based on the comparison result.

【0014】(作用)上記構成より成る第1発明のバー
コード印字装置は、バーコードシンボルのバーおよびス
ペースの各エレメントの組み合わせで異なる検出レベル
に基づき各エレメントの幅を算出することにより、算出
したエレメントの幅とエレメントの反射率に基づき印字
条件が制御されるものである。
(Operation) In the bar code printing apparatus of the first invention having the above-mentioned configuration, the width of each element is calculated by calculating the width of each element of the bar and the space of the bar code symbol based on different detection levels. The printing conditions are controlled based on the width of the element and the reflectance of the element.

【0015】上記構成より成る第2発明のバーコード印
字装置は、前記センサが印字したバーコードシンボルを
読み取り、前記A/Dコンバータが前記センサから出力
されるアナログ信号をデジタルデータに変換し、前記コ
ントローラが前記A/Dコンバータからのバーコードシ
ンボルのデジタルデータを記憶、演算し、エレメントの
幅とエレメントの反射率に関する値の算出を行い、前記
バーコードシンボルの各エレメントの種類を認識すると
ともに、各エレメントの幅を算出して印字制御信号を出
力し、前記印字装置が前記コントローラから出力される
印字制御信号に基づき印字条件が制御されるものであ
る。
In the bar code printing apparatus of the second invention having the above structure, the bar code symbol printed by the sensor is read, the A / D converter converts an analog signal output from the sensor into digital data, and The controller stores and operates the digital data of the bar code symbol from the A / D converter, calculates the value related to the width of the element and the reflectance of the element, and recognizes the type of each element of the bar code symbol, The width of each element is calculated and a printing control signal is output, and the printing condition is controlled based on the printing control signal output from the controller by the printing device.

【0016】上記構成より成る第3発明のバーコード印
字装置は、前記第2発明において、前記コントローラ
が、予め設定したセンサ出力の最大値と最小値の中間レ
ベルにおける前記バーコードシンボルの各エレメントの
幅により該バーコードシンボルの各エレメントの種類を
認識して印字制御信号を出力するものである。
In the bar code printer according to the third aspect of the present invention having the above structure, in the second aspect of the invention, each element of the bar code symbol at the intermediate level between the maximum value and the minimum value of the sensor output preset by the controller. The print control signal is output by recognizing the type of each element of the barcode symbol based on the width.

【0017】上記構成より成る第4発明のバーコード印
字装置は、前記第3発明において、前記コントローラ
が、前記バーコードシンボルの各エレメントの組み合わ
せで異なる検出レベルに基づき各エレメントの幅を算出
して印字制御信号を出力するものである。
In the bar code printer according to the fourth aspect of the present invention having the above structure, in the third aspect of the invention, the controller calculates the width of each element based on a different detection level for each combination of elements of the bar code symbol. It outputs a print control signal.

【0018】上記構成より成る第5発明のバーコード印
字装置は、前記第4発明において、前記印字装置を構成
する前記熱印字装置が、該コントローラから出力される
印字制御信号に基づき発熱量を制御するものである。
In the bar code printer according to the fifth aspect of the present invention having the above structure, in the fourth aspect, the thermal printer constituting the printer controls the amount of heat generation based on a print control signal output from the controller. To do.

【0019】上記構成より成る第6発明のバーコード印
字装置は、前記第5発明において、前記コントローラ
が、太スペースに続く細バーの幅および太スペースの反
射率、細バーの反射率からコントラストに関する値を算
出するとともに、予め設定したコントラスト値およびエ
レメントの幅などの基準データとの比較を行い、比較結
果に基づき印字制御信号を出力するものである。
In the bar code printer according to the sixth aspect of the present invention having the above structure, in the fifth aspect, the controller relates to the width of the thin bar following the thick space, the reflectance of the thick space, and the contrast from the reflectance of the thin bar. The value is calculated and compared with reference data such as a preset contrast value and element width, and a print control signal is output based on the comparison result.

【0020】[0020]

【発明の効果】上記作用を奏する第1発明のバーコード
印字装置は、バーコードシンボルのバーおよびスペース
の各エレメントの組み合わせで異なる検出レベルに基づ
き各エレメントの幅を算出することにより、算出したエ
レメントの幅とエレメントの反射率に基づき印字条件が
制御されるので、一定の印字品質を実現するとともに、
印字条件の調整を容易にするという効果を奏するもので
ある。
According to the bar code printing apparatus of the first aspect of the present invention, the width of each element of the bar and the space of the bar code symbol is calculated based on different detection levels for each element to calculate the width of each element. Since the printing conditions are controlled based on the width of the element and the reflectance of the element, a certain printing quality is achieved and
This has the effect of facilitating adjustment of printing conditions.

【0021】上記作用を奏する第2発明のバーコード印
字装置は、前記コントローラが前記A/Dコンバータか
らのバーコードシンボルのデジタルデータを記憶、演算
し、エレメントの幅とエレメントの反射率に関する値の
算出を行い、前記バーコードシンボルの各エレメントの
種類を認識するとともに、各エレメントの幅を算出して
印字制御信号を出力し、前記印字装置が前記コントロー
ラから出力される印字制御信号に基づき印字条件が制御
されるので、一定の印字品質を実現するとともに、印字
条件の調整を容易にするという効果を奏するものであ
る。
In the bar code printer according to the second aspect of the present invention, the controller stores and operates the digital data of the bar code symbol from the A / D converter, and calculates the values of the width of the element and the reflectance of the element. The print condition is calculated based on the print control signal output from the controller by calculating the width of each element and recognizing the type of each element of the barcode symbol. Is controlled, so that a certain print quality is realized and the adjustment of the print condition is facilitated.

【0022】上記作用を奏する第3発明のバーコード印
字装置は、前記コントローラが、予め設定したセンサ出
力の最大値と最小値の中間レベルにおける前記バーコー
ドシンボルの各エレメントの幅により該バーコードシン
ボルの各エレメントの種類を認識して印字制御信号を出
力するので、印字品質を向上するという効果を奏する。
In the bar code printer according to the third aspect of the present invention having the above-mentioned operation, the controller determines the bar code symbol according to the width of each element of the bar code symbol at the intermediate level between the maximum value and the minimum value of the sensor output set in advance. Since the print control signal is output by recognizing the type of each element, the print quality is improved.

【0023】上記作用を奏する第4発明のバーコード印
字装置は、前記コントローラが、前記バーコードシンボ
ルの各エレメントの幅により該バーコードシンボルの各
エレメントの種類を認識するとともに、前記バーコード
シンボルの各エレメントの組み合わせで異なる検出レベ
ルに基づき各エレメントの幅を算出して印字制御信号を
出力するので、印字品質を一層向上するという効果を奏
する。
In the bar code printer according to the fourth aspect of the present invention, the controller recognizes the type of each element of the bar code symbol based on the width of each element of the bar code symbol, and Since the width of each element is calculated based on the detection level different for each combination of elements and the print control signal is output, there is an effect that the print quality is further improved.

【0024】上記作用を奏する第5発明のバーコード印
字装置は、前記印字装置を構成する前記熱印字装置が、
該コントローラから出力される前記バーコードシンボル
の各エレメントの種類および組み合わせで異なる検出レ
ベルに基づく各エレメントの幅に基づく印字制御信号に
より発熱量を制御するので、熱印字品質を一層向上する
という効果を奏する。
In the bar code printer according to the fifth aspect of the present invention having the above-mentioned operation, the thermal printer constituting the printer is:
Since the heat generation amount is controlled by the print control signal based on the width of each element based on the detection level that is different depending on the type and combination of each element of the barcode symbol output from the controller, the effect of further improving the thermal print quality can be obtained. Play.

【0025】上記作用を奏する第6発明のバーコード印
字装置は、前記コントローラが、太スペースに続く細バ
ーの幅および太スペースの反射率、細バーの反射率から
コントラストに関する値を算出するとともに、予め設定
したコントラスト値およびエレメントの幅などの基準デ
ータとの比較を行い、比較結果に基づき印字制御信号を
出力して、発熱量を制御するので、熱印字品質をさらに
一層向上するという効果を奏する。
In the bar code printer according to the sixth aspect of the present invention, the controller calculates a value relating to the contrast from the width of the thin bar following the thick space, the reflectance of the thick space, and the reflectance of the thin bar. A comparison is made with reference data such as a preset contrast value and element width, and a print control signal is output based on the comparison result to control the amount of heat generation, which has the effect of further improving thermal print quality. .

【0026】[0026]

【発明の実施の形態】以下本発明の実施の形態につき、
図面を用いて説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention are described below.
This will be described with reference to the drawings.

【0027】(第1実施形態)本第1実施形態のバーコ
ード印字装置は、図1に示されるように印字したバーコ
ードシンボルを読み取るセンサ1と、該センサ1から出
力されるアナログ信号をデジタルデータに変換するA/
Dコンバータ2と、該A/Dコンバータ2からのバーコ
ードシンボルのデジタルデータを記憶、演算し、エレメ
ントの幅とエレメントの反射率に関する値の算出を行
い、前記バーコードシンボルの各エレメントの種類を認
識するとともに、各エレメントの幅を算出して印字制御
信号を出力するコントローラ3と、該コントローラ3か
ら出力される印字制御信号に基づき印字条件を制御する
印字装置4とから成るものである。
(First Embodiment) A bar code printer according to the first embodiment of the present invention digitally outputs a sensor 1 for reading a bar code symbol printed as shown in FIG. 1 and an analog signal output from the sensor 1. A / convert to data
The D converter 2 and the digital data of the bar code symbol from the A / D converter 2 are stored and operated to calculate values relating to the width of the element and the reflectance of the element, and the type of each element of the bar code symbol is determined. The controller 3 includes a controller 3 for recognizing and calculating the width of each element and outputting a print control signal, and a printer 4 for controlling print conditions based on the print control signal output from the controller 3.

【0028】搬送ローラ8は、図1に示されるように前
記印字装置4の下方に配設され、前記バーコードシンボ
ル9が印字されるラベル5が一定間隔で貼着されたラベ
ル台紙6を搬送するものである。
As shown in FIG. 1, the conveying roller 8 is arranged below the printer 4 and conveys the label mount 6 on which the labels 5 on which the bar code symbols 9 are printed are attached at regular intervals. To do.

【0029】インクリボン供給装置70は、インクリボ
ン7が巻装されている送り出しローラ71と、該送り出
しローラ71から送り出された前記インクリボン7が前
記印字装置4と前記ラベル5との間に介挿され印字され
た前記インクリボン7が巻き取られる巻き取りローラ7
2とから成る。
The ink ribbon supply device 70 includes a delivery roller 71 around which the ink ribbon 7 is wound, and the ink ribbon 7 delivered from the delivery roller 71 is interposed between the printing device 4 and the label 5. Take-up roller 7 on which the inserted and printed ink ribbon 7 is taken up
It consists of 2.

【0030】前記印字装置4は、該コントローラから出
力される印字制御信号に基づき発熱量を制御する熱転写
型の熱印字装置によって構成されるものである。
The printing device 4 is composed of a thermal transfer type thermal printing device which controls the amount of heat generation based on a printing control signal output from the controller.

【0031】前記センサ1は、前記バーコードシンボル
9を読み取るアパーチャーがバーコードのエレメントに
比べ比較的大きい場合、隣接するエレメントの影響によ
り出力レベルがバー、スペースの幅により図2(C)に
示されるように変動する。またこの場合、センサ出力の
DCレベルが変動するため、エレメントの幅を算出する
場合の検出レベルも変える必要がある。
In the sensor 1, when the aperture for reading the bar code symbol 9 is relatively larger than the bar code element, the output level is shown in FIG. Fluctuates as shown. Further, in this case, since the DC level of the sensor output fluctuates, it is necessary to change the detection level when calculating the element width.

【0032】エレメントの組み合わせは、例えば太いス
ペース53から細いバー51または細いバー51から太
いスペース53の変化の組み合わせを印字しようとする
バーコードシンボルのエレメントの設定値から、予め検
出レベルを表1に示すように設定しておき、前記コント
ローラ3を構成するCPUのROMに予め記憶させてお
く。
For the combination of elements, for example, the detection levels are shown in Table 1 in advance from the set values of the elements of the bar code symbol for which a combination of changes from the thick space 53 to the thin bar 51 or from the thin bar 51 to the thick space 53 is to be printed. It is set as shown and stored in the ROM of the CPU constituting the controller 3 in advance.

【表1】 [Table 1]

【0033】また熱転写型の熱印字装置では、太いスペ
ース53の後の細いバー51が熱印字装置の蓄熱の関係
から印字されにくいということを考え、この場合の太い
スペース53、細いバー51の反射率と細バー幅を読
み、熱印字装置の発熱量を制御する。
Further, in the thermal transfer type thermal printing apparatus, it is considered that the thin bar 51 after the thick space 53 is hard to print due to the heat accumulation of the thermal printing apparatus. In this case, the reflection of the thick space 53 and the thin bar 51 is reflected. Read the rate and narrow bar width to control the amount of heat generated by the thermal printer.

【0034】上記構成より成る第1実施形態のバーコー
ド印字装置の制御動作について、図3に示されるフロー
チャートに従い2値レベルバーコードのCODE39を
例として説明する。
The control operation of the bar code printer of the first embodiment having the above construction will be described with reference to the flowchart shown in FIG. 3 by taking the CODE 39 of a binary level bar code as an example.

【0035】ステップ101において、前記熱印字装置
4の発熱量は前記コントローラ3を構成する前記CPU
に予め設定し、前記ROMに記憶されている初期値を読
み出す。
In step 101, the amount of heat generated by the thermal printer 4 is determined by the CPU constituting the controller 3.
Is preset and the initial value stored in the ROM is read.

【0036】ステップ102において、読み出された前
記初期値に基づき前記熱印字装置4により、バーコード
シンボル9を前記ラベル5に印字する。
In step 102, the bar code symbol 9 is printed on the label 5 by the thermal printer 4 based on the read initial value.

【0037】ステップ103において、前記センサ1に
より前記バーコードシンボル9を読み、該センサ1から
出力されるバーコードシンボル9のバー(黒)とスペー
ス(白)の光の反射濃度の濃淡に比例したアナログ信号
である光信号(図2(C)における波形10)を前記A
/Dコンバータ2により符号化したデジタルデータに変
換する。
In step 103, the bar code symbol 9 is read by the sensor 1, and the bar code symbol 9 output from the sensor 1 is proportional to the light and shade of the reflection density of the bar (black) and space (white) light. The optical signal (waveform 10 in FIG. 2C) that is an analog signal is the
Converted to digital data encoded by the / D converter 2.

【0038】該バーコードシンボル9のデジタルデータ
を前記CPU3に記憶するとともに、前記センサ1の出
力レベルの最大値と最小値の中間値をエレメントの種類
を認識するために予め前記CPU3に記憶されている認
識レベル13を基準として、エレメントの種類すなわち
細いバー51、太いバー52、太いスペース53、細い
スペース54を認識する。
Digital data of the bar code symbol 9 is stored in the CPU 3, and an intermediate value between the maximum value and the minimum value of the output level of the sensor 1 is stored in advance in the CPU 3 in order to recognize the type of element. The type of element, that is, the thin bar 51, the thick bar 52, the thick space 53, and the thin space 54 are recognized on the basis of the existing recognition level 13.

【0039】ステップ104において、前記ステップ1
03で認識した前記バーコードシンボル9の中の最初の
太いスペース53および細いバー51の組み合わせに
て、太いスペース53の反射率11を算出する。
In step 104, the above step 1
The reflectance 11 of the thick space 53 is calculated by the combination of the first thick space 53 and the thin bar 51 in the barcode symbol 9 recognized in 03.

【0040】ステップ105において、前記ステップ1
03において認識した前記バーコードシンボル9の中の
最初の太いスペース53および細いバー51の組み合わ
せにて、細いバー51の反射率11を算出する。
In step 105, the above step 1
The reflectance 11 of the thin bar 51 is calculated by the combination of the first thick space 53 and the thin bar 51 in the barcode symbol 9 recognized in 03.

【0041】ステップ106において、前記ステップ1
03において認識した前記バーコードシンボル9の中の
最初の太いスペース53および細いバー51の組み合わ
せにて、細いバー51の幅16を求める。
In step 106, the above step 1
The width 16 of the thin bar 51 is obtained by the combination of the first thick space 53 and the thin bar 51 in the barcode symbol 9 recognized in 03.

【0042】前記細いバー51の幅16を求めるには、
太いスペース53および細いバー51の組み合わせの検
出レベルを前記CPU3に記憶さている前記表1のエレ
メントの幅の検出レベルから検出レベルをBの値にして
検出レベル14の位置に設定する。
To obtain the width 16 of the thin bar 51,
The detection level of the combination of the thick space 53 and the thin bar 51 is set to the position of the detection level 14 by setting the detection level of the width of the element of Table 1 stored in the CPU 3 to the value of B.

【0043】同様に細いバー51および細いスペースの
組み合わせの検出レベルを前記表1のAの値にして検出
レベル15の位置に設定する。前記ステップ103にお
いて、前記CPU3に記憶したバーコードシンボル9の
デジタルデータと検出レベル14と検出レベル15の関
係から細いバーの幅16を前記CPU3により算出す
る。
Similarly, the detection level of the combination of the thin bar 51 and the thin space is set to the value of A in Table 1 and set at the position of the detection level 15. In step 103, the CPU 16 calculates the width 16 of the thin bar from the relationship between the digital data of the barcode symbol 9 stored in the CPU 3 and the detection levels 14 and 15.

【0044】ここでバーコードシンボルのコントラスト
の定義にPCS値がある。PCS値は下記の数1で表さ
れる。
The PCS value is used to define the contrast of the bar code symbol. The PCS value is represented by the following expression 1.

【数1】 上記数1において、 RL はスペースの反射率 RD はバーの反射率 である。JISおよびANSIにおいては、上記PCS
値は、75%以上を要求している。
[Equation 1] In the above formula 1, RL is the reflectance of the space and RD is the reflectance of the bar. In JIS and ANSI, the above PCS
The value requires 75% or more.

【0045】ステップ107において、前記ステップ1
04において算出した太いスペースの反射率11と前記
ステップ105において算出した細いバーの反射率12
とからPCS値を前記CPU3により算出する。
In step 107, the above step 1
Thick space reflectance 11 calculated in step 04 and thin bar reflectance 12 calculated in step 105.
From this, the PCS value is calculated by the CPU 3.

【0046】ステップ108において、前記PCS値が
75%以上であれば、前記ステップ106において算出
した細いバー51の幅16と予め設定してある細いバー
51の幅の基準データ(NB)との比較を行う。
If the PCS value is 75% or more in step 108, the width 16 of the thin bar 51 calculated in step 106 is compared with the preset reference data (NB) of the width of the thin bar 51. I do.

【0047】ステップ109において、細いバー51の
幅16が許容最大値NBmax以内であって許容最小値
NBmin以上の基準データ内であれば、ステップ11
0において、前記熱印字装置4の発熱量は変更しない、
ステップ109において、細いバー51の幅16が前記
基準データの前記許容最大値NBmaxより大きい場合
は、ステップ111において、前記熱印字装置4の発熱
量を下げ、ステップ108において、前記PCS値が7
5パーセント未満である場合、またはステップ109に
おいて、細いバー51の幅16が前記基準データの前記
許容最小値NBminより小さい場合は、ステップ11
2において、前記熱印字装置4の発熱量を上げる。
In step 109, if the width 16 of the thin bar 51 is within the allowable maximum value NBmax and within the reference data of the allowable minimum value NBmin or more, step 11
0, the heat generation amount of the thermal printer 4 is not changed,
If the width 16 of the thin bar 51 is larger than the allowable maximum value NBmax of the reference data in step 109, the heat generation amount of the thermal printer 4 is reduced in step 111, and the PCS value is 7 in step 108.
If it is less than 5%, or if the width 16 of the thin bar 51 is smaller than the allowable minimum value NBmin of the reference data in step 109, step 11
In 2, the amount of heat generated by the thermal printer 4 is increased.

【0048】ステップ110、111、112のいずれ
かの処理を終了した後に前記熱印字装置4により次のバ
ーコードの印字を行い、前記ステップ103に戻る。
After the processing in any of steps 110, 111 and 112 is completed, the thermal printer 4 prints the next bar code and the process returns to step 103.

【0049】上記作用を奏する第1実施形態のバーコー
ド印字装置は、前記コントローラ3が前記A/Dコンバ
ータ2からのバーコードシンボルのデジタルデータを記
憶、演算し、エレメントの幅とエレメントの反射率に関
する値の算出を行い、前記バーコードシンボルの各エレ
メントの種類を認識するとともに、各エレメントの幅を
算出して印字制御信号を出力し、前記印字装置4が前記
コントローラから出力される印字制御信号に基づき印字
条件が制御されるので、一定の印字品質を実現するとと
もに、印字条件の調整を容易にするという効果を奏する
ものである。
In the bar code printer according to the first embodiment having the above-described operation, the controller 3 stores and calculates the digital data of the bar code symbol from the A / D converter 2 to calculate the element width and the element reflectance. Value is calculated, the type of each element of the bar code symbol is recognized, the width of each element is calculated and a print control signal is output, and the print control signal output from the controller by the printer 4 Since the printing conditions are controlled based on the above, it is possible to achieve a certain printing quality and facilitate the adjustment of the printing conditions.

【0050】また第1実施形態のバーコード印字装置
は、前記コントローラ3が、予め設定した前記センサ1
の出力の最大値と最小値の中間レベルにおける前記バー
コードシンボル9の各エレメントの幅により該バーコー
ドシンボル9の各エレメントの種類を認識して印字制御
信号を出力するので、印字品質を向上するという効果を
奏する。
In the bar code printing apparatus of the first embodiment, the controller 3 sets the sensor 1 preset.
The type of each element of the bar code symbol 9 is recognized by the width of each element of the bar code symbol 9 at the intermediate level between the maximum value and the minimum value of the output of the above, and the print control signal is output, so that the print quality is improved. Has the effect.

【0051】さらに第1実施形態のバーコード印字装置
は、前記コントローラ3が、前記バーコードシンボル9
の各エレメントの幅により該バーコードシンボル9の各
エレメントの種類を認識するとともに、前記バーコード
シンボル9の各エレメントの組み合わせで異なる検出レ
ベルに基づき各エレメントの幅を算出して印字制御信号
を出力するので、印字品質を一層向上するという効果を
奏する。
Further, in the bar code printing apparatus of the first embodiment, the controller 3 causes the bar code symbol 9
The type of each element of the bar code symbol 9 is recognized based on the width of each element of the bar code symbol 9, and the width of each element is calculated based on the detection level that is different depending on the combination of each element of the bar code symbol 9, and the print control signal is output Therefore, there is an effect that the print quality is further improved.

【0052】また第1実施形態のバーコード印字装置
は、前記印字装置4を構成する前記熱印字装置が、該コ
ントローラ3から出力される前記バーコードシンボル9
の各エレメントの種類および組み合わせで異なる検出レ
ベルに基づく各エレメントの幅に基づく印字制御信号に
より発熱量を制御するので、熱印字品質を一層向上する
という効果を奏する。
Further, in the bar code printing apparatus of the first embodiment, the thermal printing apparatus which constitutes the printing apparatus 4 outputs the bar code symbol 9 output from the controller 3.
Since the heat generation amount is controlled by the print control signal based on the width of each element based on the detection level that differs depending on the type and combination of each element, the effect of further improving the thermal print quality is obtained.

【0053】さらに第1実施形態のバーコード印字装置
は、前記コントローラ3が、太スペースに続く細バーの
幅および太スペースの反射率、細バーの反射率からコン
トラストに関する値を算出するとともに、細いバー51
の幅16が許容最大値NBmax以内であって許容最小
値NBmin以上の基準データの範囲との比較を行い、
比較結果に基づき印字制御信号を出力して、発熱量をフ
ィードバック制御するので、前記ラベル5の種類や前記
インクリボンの種類にかかわらず一定範囲内の印字品質
を実現するという効果を奏する。
Further, in the bar code printing apparatus of the first embodiment, the controller 3 calculates a value relating to the contrast from the width of the thin bar following the thick space, the reflectance of the thick space, and the reflectance of the thin bar, Bar 51
The width 16 is within the maximum allowable value NBmax and is equal to or larger than the minimum allowable value NBmin,
Since the print control signal is output based on the comparison result and the heat generation amount is feedback-controlled, the print quality within a certain range can be achieved regardless of the type of the label 5 and the type of the ink ribbon.

【0054】また第1実施形態のバーコード印字装置
は、上述した図3に示されるように制御動作ソフト上の
設定によって印字条件を制御するものであるため、印字
条件の調整および変更を容易にし、構成をシンプルにし
て,コストの低減を可能にするという効果を奏する。
Further, since the bar code printer of the first embodiment controls the printing conditions by the setting on the control operation software as shown in FIG. 3 described above, it is easy to adjust and change the printing conditions. The advantages are that the configuration is simple and the cost can be reduced.

【0055】また第1実施形態のバーコード印字装置
は、前記コントローラ3が、太スペースに続く細バーの
幅および太スペースの反射率、細バーの反射率からコン
トラストに関する値を算出するとともに、予め設定した
コントラスト値75%との比較を行い、比較結果に基づ
き印字制御信号を出力して、発熱量を制御するので、一
定値以上のコントラストを実現するという効果を奏す
る。
In the bar code printing apparatus of the first embodiment, the controller 3 calculates a value relating to the contrast from the width of the thin bar following the thick space, the reflectance of the thick space, and the reflectance of the thin bar. The comparison with the set contrast value of 75% is performed, and the print control signal is output based on the comparison result to control the heat generation amount, so that the contrast of a certain value or more is achieved.

【0056】上述の実施形態は、説明のために例示した
もので、本発明としてはそれらに限定されるものでは無
く、特許請求の範囲、発明の詳細な説明および図面の記
載から当業者が認識することができる本発明の技術的思
想に反しない限り、変更および付加が可能である。
The above-described embodiments are merely examples for the purpose of explanation, and the present invention is not limited to them. Those skilled in the art will recognize from the claims, the detailed description of the invention and the description of the drawings. Modifications and additions can be made without departing from the technical idea of the present invention.

【0057】また上述の第1実施形態においては、一例
として2値レベルバーコードの最初の太いスペースおよ
び細いバーについてエレメントの幅、エレメントの反射
率からコントラスト(PCS値)を算出したデータに基
づいて熱印字装置の印字条件を制御する例について説明
したが本発明としてはそれらに限定されるものでは無
く、前記バーコードシンボル中の任意の位置および数の
太いスペースまたは細いバーの組み合わせやマルチレベ
ルバーコードに対する同様の制御、バーコードシンボル
の細いエレメント(細いバーおよび細いスペース)と太
いエレメント(太いバーおよび太いスペース)の比や、
バーコードの長さを算出する態様も採用することが出来
るものである。
Further, in the above-described first embodiment, as an example, based on the data obtained by calculating the contrast (PCS value) from the width of the element and the reflectance of the element for the first thick space and thin bar of the binary level barcode. Although the example of controlling the printing conditions of the thermal printing device has been described, the present invention is not limited to them, and any position in the bar code symbol and a combination of a wide space or a thin bar or a multi-level bar. Similar control over the code, the ratio of thin elements (thin bars and spaces) to thick elements (thick bars and spaces) of the barcode symbol,
A mode in which the length of the barcode is calculated can also be adopted.

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

【図1】本発明の第1実施形態のバーコード印字装置を
示すブロック図である。
FIG. 1 is a block diagram showing a barcode printing apparatus according to a first embodiment of the present invention.

【図2】本第1実施形態におけるラベルに印字されたバ
ーコードシンボル、該バーコードシンボルの一部を拡大
したもの、およびセンサから出力されるバーコードシン
ボル9のバー(黒)とスペース(白)の光の反射濃度の
濃淡に比例したアナログ信号である光信号をそれぞれ示
す説明図である。
FIG. 2 is a bar code symbol printed on a label in the first embodiment, an enlarged part of the bar code symbol, and a bar (black) and a space (white) of the bar code symbol 9 output from the sensor. FIG. 4B is an explanatory diagram showing an optical signal that is an analog signal proportional to the density of the reflection density of light.

【図3】本第1実施形態における処理手順を示すチャー
ト図である。
FIG. 3 is a chart showing a processing procedure in the first embodiment.

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

1 センサ 2 A/Dコンバータ 3 コントローラ 4 印字装置 1 sensor 2 A / D converter 3 controller 4 printer

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 印字したバーコードシンボルを読み取る
センサの出力に基づきエレメントの幅とエレメントの反
射率に基づき印字条件が制御されるバーコード印字装置
において、 バーコードシンボルのバーおよびスペースの各エレメン
トの組み合わせで異なる検出レベルに基づき各エレメン
トの幅を算出することにより、印字条件を制御すること
を特徴とするバーコード印字装置。
1. A bar code printing apparatus in which printing conditions are controlled based on the width of an element and the reflectance of the element based on the output of a sensor that reads a printed bar code symbol. A bar code printer characterized in that the printing conditions are controlled by calculating the width of each element based on different detection levels depending on the combination.
【請求項2】 印字したバーコードシンボルを読み取る
センサと、 該センサから出力されるアナログ信号をデジタルデータ
に変換するA/Dコンバータと、 該A/Dコンバータからのバーコードシンボルのデジタ
ルデータを記憶、演算し、エレメントの幅とエレメント
の反射率に関する値の算出を行い、前記バーコードシン
ボルの各エレメントの種類を認識するとともに、各エレ
メントの幅を算出して印字制御信号を出力するコントロ
ーラと、 該コントローラから出力される印字制御信号に基づき印
字条件を制御する印字装置とから成ることを特徴とする
バーコード印字装置。
2. A sensor for reading a printed bar code symbol, an A / D converter for converting an analog signal output from the sensor into digital data, and a digital data of the bar code symbol from the A / D converter is stored. , A controller that calculates the width of the element and a value relating to the reflectance of the element, recognizes the type of each element of the barcode symbol, calculates the width of each element, and outputs a print control signal, A bar code printer comprising: a printer controlling print conditions based on a print control signal output from the controller.
【請求項3】 請求項2において、 前記コントローラが、予め設定したセンサ出力の最大値
と最小値の中間レベルにおける前記バーコードシンボル
の各エレメントの幅により該バーコードシンボルの各エ
レメントの種類を認識することを特徴とするバーコード
印字装置。
3. The controller according to claim 2, wherein the controller recognizes a type of each element of the barcode symbol based on a width of each element of the barcode symbol at a preset intermediate level between the maximum value and the minimum value of the sensor output. A bar code printing device characterized by:
【請求項4】 請求項3において、 前記コントローラが、前記バーコードシンボルの各エレ
メントの組み合わせで異なる検出レベルに基づき各エレ
メントの幅を算出して印字制御信号を出力することを特
徴とするバーコード印字装置。
4. The barcode according to claim 3, wherein the controller calculates a width of each element based on a detection level that is different depending on a combination of the elements of the barcode symbol and outputs a print control signal. Printing device.
【請求項5】 請求項4において、 前記印字装置が、該コントローラから出力される印字制
御信号に基づき発熱量を制御する熱印字装置によって構
成されることを特徴とするバーコード印字装置。
5. The bar code printer according to claim 4, wherein the printer is a thermal printer that controls a heat generation amount based on a print control signal output from the controller.
【請求項6】 請求項5において、 前記コントローラが、太スペースに続く細バーの幅およ
び太スペースの反射率、細バーの反射率からコントラス
トに関する値を算出するとともに、予め設定したコント
ラスト値およびエレメントの幅などの基準データとの比
較を行い、比較結果に基づき印字制御信号を出力するこ
とを特徴とするバーコード印字装置。
6. The controller according to claim 5, wherein the controller calculates a value relating to the contrast from the width of the thin bar following the thick space, the reflectance of the thick space, and the reflectance of the thin bar, and the preset contrast value and element. A bar code printing device characterized by comparing with a reference data such as a width of the print and outputting a print control signal based on the comparison result.
JP14087296A 1996-05-10 1996-05-10 Bar code printer Pending JPH09300711A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14087296A JPH09300711A (en) 1996-05-10 1996-05-10 Bar code printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14087296A JPH09300711A (en) 1996-05-10 1996-05-10 Bar code printer

Publications (1)

Publication Number Publication Date
JPH09300711A true JPH09300711A (en) 1997-11-25

Family

ID=15278727

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14087296A Pending JPH09300711A (en) 1996-05-10 1996-05-10 Bar code printer

Country Status (1)

Country Link
JP (1) JPH09300711A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8599401B2 (en) 2010-11-04 2013-12-03 Fuji Xerox Co., Ltd. Image processing device, image processing system, and computer readable medium
JP2014030946A (en) * 2012-08-02 2014-02-20 Toshiba Tec Corp Electronic device and program
JP2015187853A (en) * 2014-03-14 2015-10-29 株式会社リコー Method for reading optical information code

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8599401B2 (en) 2010-11-04 2013-12-03 Fuji Xerox Co., Ltd. Image processing device, image processing system, and computer readable medium
JP2014030946A (en) * 2012-08-02 2014-02-20 Toshiba Tec Corp Electronic device and program
JP2015187853A (en) * 2014-03-14 2015-10-29 株式会社リコー Method for reading optical information code

Similar Documents

Publication Publication Date Title
US6958829B2 (en) Image reading device, image reading apparatus, and method therefor
US20070013974A1 (en) Image processing apparatus and its program and control method
JP2008305137A (en) Bar-code generation system, bar-code generation program and printer
WO2001015908A1 (en) Medium detecting method and device, and printer
JPH09300711A (en) Bar code printer
US20010026372A1 (en) Image forming apparatus, control apparatus and density correcting method
JP5105176B2 (en) Color image printer and gradation correction method for color image printer
US7136085B2 (en) Image-forming apparatus and optical scanner
JPH043279A (en) image reading device
CN101037051A (en) Accumulated-heat correction apparatus and accumulated-heat correction method for thermal head
JP2010120219A (en) Printer and method for calibrating printer
JPH0872286A (en) Printer device
US6989917B2 (en) Image reading apparatus and its control method
JP4725148B2 (en) Printing apparatus and program
JP2002225344A (en) Imaging method and imaging apparatus
JP3143145B2 (en) Image forming device
JP7587135B2 (en) Printing device
JP4552641B2 (en) Image processing system, image processing method, and image processing program
JPH0619244Y2 (en) Image scanner
US7440716B2 (en) Image copying apparatus and image copying method
JP2002029088A (en) Image recording device
JP2001138563A (en) Two-dimensional code printing apparatus and two-dimensional code printing apparatus adjustment method
JP2001054964A (en) Image forming device
JPS6391790A (en) Optical information reader
JP2008271396A (en) Image reading apparatus and density correction method thereof