JPH0725073A - Controlling method of portable terminal equipped with bar code printing function - Google Patents

Controlling method of portable terminal equipped with bar code printing function

Info

Publication number
JPH0725073A
JPH0725073A JP16885193A JP16885193A JPH0725073A JP H0725073 A JPH0725073 A JP H0725073A JP 16885193 A JP16885193 A JP 16885193A JP 16885193 A JP16885193 A JP 16885193A JP H0725073 A JPH0725073 A JP H0725073A
Authority
JP
Japan
Prior art keywords
voltage
bar code
dots
ratio
line head
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
JP16885193A
Other languages
Japanese (ja)
Inventor
Yoshiyuki Yokonaga
佳之 横永
Tatsuya Watanabe
達哉 渡辺
Shosaku Okawa
昌作 大川
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP16885193A priority Critical patent/JPH0725073A/en
Publication of JPH0725073A publication Critical patent/JPH0725073A/en
Pending legal-status Critical Current

Links

Landscapes

  • Printers Characterized By Their Purpose (AREA)

Abstract

PURPOSE:To print bar code having a horizontally and perpendicularly correct white-to-black ratio by a method wherein the ratio of the number of dots under voltage is applied to that of dots under no voltage is applied is made to be (1:1) when bar code having the white-to-black ratio of 1:1 is printed horizontally to the feeding direction of paper, while the ratio of the paper feed of column under voltage is applied to that of column under no voltage is applied is made not to be 1:1 when bar code having the white-to-black ratio of 1:1 is printed perpendicular to the feeding direction of the paper. CONSTITUTION:At the printing of bar code having the white-to-black ratio of 1:1, the bar code having the correct white-to-black ratio can be printed by setting the ratio of the number of dots under the condition that voltage is applied to a line head 5 to that of dots under not voltage is applied to be 1:1, since no effect of heat inertia or the like is applied. On the other hand, if the bar code is printed perpendicularly under the condition that the ratio of the paper feed of column under the condition that voltage is applied to the line head 5 to that of the paper feed of column under no voltage is applied set to be 1:1, the percentage of black becomes higher under the effect of heat inertia, especially at a high printing speed. Thus, by decreasing the paper feed of the column under the condition that voltage is applied to the line head 5, the bar code having the correct white-to-black ratio can be printed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、バーコード印字機能を
備えた携帯用端末の制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of controlling a portable terminal having a bar code printing function.

【0002】[0002]

【従来の技術】入力装置と、この入力装置から入力され
た文字コード、表データ、文字フォント、プログラムな
どを格納する記憶装置と、前記入力装置から入力された
文字や記憶内容を表示する表示装置と、これらの装置を
制御する制御装置を備え、表形式に関係なくケイ線情報
を任意に引ける表データ処理装置において、列構成を変
更した際に変更列を対象にして、表中に引かれたケイ線
を補正するものについては、特開平2−18126号公
報で知られている。
2. Description of the Related Art An input device, a storage device for storing a character code, table data, a character font, a program, etc. input from the input device, and a display device for displaying the characters and storage contents input from the input device. In a table data processing device that is equipped with a control device that controls these devices and can arbitrarily draw the key line information regardless of the table format, when the column configuration is changed, the changed column is targeted and is drawn in the table. A technique for correcting the key line is known from Japanese Patent Application Laid-Open No. 2-18126.

【0003】[0003]

【発明が解決しようとする課題】しかし、携帯用端末に
おいてはバーコードの印字を縦、横どちらの方向からも
正しく印字出来るように制御する技術はなかった。従来
の方法ではバーコードを印字する際、紙送り方向に対し
て水平方向に印字する場合と、垂直方向に印字する場合
においてサーマルプリンタ部のドットの制御を同様にす
ると、紙送り方向に対して垂直に印字した場合に、サー
マルヘッドの余熱の影響によりバーコードの白黒の線の
割合が不正となる。
However, there has been no technique for controlling the printing of the bar code in the portable terminal so that the bar code can be printed correctly in both the vertical and horizontal directions. In the conventional method, when printing barcodes, if the dot control of the thermal printer is the same when printing horizontally in the paper feed direction and when printing in the vertical direction. When printed vertically, the proportion of black and white lines in the bar code becomes incorrect due to the effect of residual heat from the thermal head.

【0004】本発明の目的は、バーコードを印字する
際、紙送り方向に対して水平方向に印字する場合と、垂
直方向に印字する場合において正しい白黒比のバーコー
ドを印字するようプリンタを制御することである。
An object of the present invention is to control a printer so as to print a bar code having a correct black-and-white ratio when printing a bar code in the horizontal direction and in the vertical direction with respect to the paper feeding direction. It is to be.

【0005】[0005]

【課題を解決するための手段】携帯用端末によって白黒
比1:1のバーコードを印字する際、紙送り方向に対し
て水平に印字する場合(その状態の例を図3に表す)に
は、該ラインヘッドの電圧を印加するドットと電圧を印
加しないドットの数を1:1にするのに対し、垂直方向
に印字する場合(その状態の例を図4に表す)には該ラ
インヘッドに電圧を印加した行の紙送り量と、電圧を印
加しない行の紙送り量を1:1としない
When a bar code having a black and white ratio of 1: 1 is printed horizontally with respect to the paper feeding direction by a portable terminal (an example of the state is shown in FIG. 3). The number of dots to which voltage is applied and the number of dots to which voltage is not applied are set to 1: 1 in the line head, whereas in the case of printing in the vertical direction (an example of the state is shown in FIG. 4), the line head The paper feed amount of the line to which the voltage is applied and the paper feed amount of the line to which the voltage is not applied are not 1: 1

【0006】。[0006]

【作用】白黒比1:1のバーコードを印字する際、紙送
り方向に対して、バーコードを水平方向に印字する場合
には余熱等の影響を受けないため、該ラインヘッドの電
圧を印加するドットと電圧を印加しないドットの数を
1:1にすれば正しい白黒比のバーコードが印字でき
る。ところが、バーコードを垂直方向に印字する場合に
は、該ラインヘッドに電圧を印加した行の紙送り量と、
電圧を印加しない行の紙送り量を1:1にすると、特に
印字速度が速い場合、余熱の影響を受け黒の比率が高く
なってしまう。そこで該ラインヘッドに電圧を印加した
行の紙送り量を少なくすることにより、正しい白黒比の
バーコードが印字できる。
When a bar code having a black and white ratio of 1: 1 is printed, when the bar code is printed horizontally with respect to the paper feed direction, it is not affected by residual heat and so the voltage of the line head is applied. If the number of dots to be applied and the number of dots to which no voltage is applied are set to 1: 1, a bar code having a correct black and white ratio can be printed. However, in the case of printing a bar code in the vertical direction, the paper feed amount of the line to which a voltage is applied to the line head,
If the paper feed amount of the line to which the voltage is not applied is set to 1: 1 and the printing speed is particularly high, the black ratio is increased due to the influence of the residual heat. Therefore, by reducing the paper feed amount of the line to which the voltage is applied to the line head, it is possible to print a bar code having a correct black and white ratio.

【0007】[0007]

【実施例】以下、本発明の実施例を図面を用いて説明す
る。図1に本発明の実施例の構成を示す。本発明の一実
施例である携帯型データ通信装置は、液晶表示部1、キ
ーボード部2、マイコン制御部3、メモリー部4、ライ
ンヘッド5、感熱紙を駆動する駆動部6、ラインヘッド
5の各ドットに電圧を印加するかを制御するラインヘッ
ド制御部7によって構成される。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows the configuration of an embodiment of the present invention. A portable data communication device according to an embodiment of the present invention includes a liquid crystal display unit 1, a keyboard unit 2, a microcomputer control unit 3, a memory unit 4, a line head 5, a drive unit 6 for driving thermal paper, and a line head 5. The line head controller 7 controls whether to apply a voltage to each dot.

【0008】図2によって本発明のマイコン制御部3の
制御方法を説明する。印字すべきバーコードの種類、紙
送り速度、バーコードの幅及び長さ、紙送り方向につい
ては、予め液晶表示部1のガイダンスによりキーボード
部2より入力され、メモリー部4に格納されており
(8)、印字すべきバーコードの種類については黒白の
比率が1:1:1:1:2:1:2:3:1とし、紙送
り速度5行/秒、バーコードの幅については、紙送り方
向にたいして水平方向、垂直方向に印字する場合、それ
ぞれ最小幅を4ドット、4行とし、バーコードの長さを
それぞれ40行、40ドットとする。バーコードを印字
する際、紙送り方向にたいして水平方向に印字するの
か、垂直方向に印字するのかのチェックを行う(9)。
水平方向に印字を行うのであれば、メモリー部4に格納
されている印字すべきバーコードの種類の白黒の比率に
バーコードの最小幅のドット数を乗じて、該値に対応し
たドットの数だけ黒部分については電圧が印加するよ
う、すなわち電圧を印加するドットと印加しないドット
が4ドット、4ドット、4ドット、4ドット、8ドッ
ト、4ドット、8ドット、12ドット、4ドットとなる
ようラインヘッド制御部7を制御する。次に駆動部6を
制御し、1行紙送りをし、前記ラインヘッド制御をくり
返す。前記動作を40行分くり返すことにより、所定の
バーコードを印字できる。(10) また、紙送り方向に対して垂直方向に印字する場合に
は、メモリー部4に格納されている印字すべきバーコー
ドの種類の白黒比率にバーコードの最小幅の行数を乗じ
た値を補正した値を求める。補正率は印字速度とサーマ
ルラインヘッド5の加熱、放熱特性で決まり、マイコン
制御部1は、印字速度よりプログラム内のテーブルより
補正率を求め、該値を25%とする。黒の行数に補正率
を乗じた行数を減らし、減らした行数分、次の白の行数
を増やす。従って、補正した黒白の行数は、3行、5
行、3行、5行、6行、6行、6行、14行、3行とな
る。次に、バーコードの長さ分、すなわち40ドットだ
け黒を印字するため、40ドット電圧を印加するようラ
インヘッド制御部7を制御する。
A control method of the microcomputer controller 3 of the present invention will be described with reference to FIG. The type of bar code to be printed, the paper feed speed, the width and length of the bar code, and the paper feed direction are input from the keyboard unit 2 in advance by the guidance of the liquid crystal display unit 1 and stored in the memory unit 4 ( 8) Regarding the type of barcode to be printed, the ratio of black and white is 1: 1: 1: 1: 2: 1: 2: 3: 1, the paper feed speed is 5 lines / second, and the width of the barcode is When printing in the horizontal and vertical directions with respect to the paper feed direction, the minimum width is 4 dots and 4 lines, and the barcode length is 40 lines and 40 dots, respectively. When the bar code is printed, it is checked whether the bar code is printed horizontally or vertically (9).
If printing is performed in the horizontal direction, the black-and-white ratio of the type of barcode to be printed stored in the memory unit 4 is multiplied by the number of dots of the minimum width of the barcode, and the number of dots corresponding to the value is multiplied. As for the black portion, the voltage is applied, that is, the dots to which the voltage is applied and the dots to which the voltage is not applied are 4 dots, 4 dots, 4 dots, 4 dots, 8 dots, 4 dots, 8 dots, 12 dots and 4 dots. To control the line head controller 7. Next, the drive unit 6 is controlled to feed the paper by one line, and the line head control is repeated. By repeating the above operation for 40 lines, a predetermined barcode can be printed. (10) When printing in the direction perpendicular to the paper feed direction, the black-and-white ratio of the type of barcode to be printed stored in the memory unit 4 is multiplied by the number of lines of the minimum barcode width. Calculate the corrected value. The correction rate is determined by the printing speed and the heating and heat radiation characteristics of the thermal line head 5, and the microcomputer control unit 1 obtains the correction rate from the table in the program from the printing speed and sets it to 25%. The number of black lines multiplied by the correction factor is reduced, and the number of next white lines is increased by the reduced number of lines. Therefore, the corrected number of black and white lines is 3, 5
Rows, 3 rows, 5 rows, 6 rows, 6 rows, 6 rows, 14 rows, 3 rows. Next, in order to print black for the length of the bar code, that is, for 40 dots, the line head controller 7 is controlled so as to apply a voltage of 40 dots.

【0009】次に駆動部6を制御し、1行紙送りをし、
前記ラインヘッド制御をくり返す。前記動作を最初の黒
の行数分すなわち3行分くり返す。次に駆動部6を制御
し行送りをし、該40ドットを白とするため40ドット
電圧を印加しないようラインヘッド制御部7を制御す
る。前記動作を最初の白の行数分すなわち5行分くり返
す。前記制御を補正した黒白の行数に従い、くり返すこ
とによって所定のバーコードを印字できる。(11)
Next, the drive unit 6 is controlled to feed one line of paper,
The line head control is repeated. The above operation is repeated for the first number of black lines, that is, for three lines. Next, the drive unit 6 is controlled to perform line feed, and the line head control unit 7 is controlled so that the 40 dot voltage is not applied in order to make the 40 dots white. The above operation is repeated for the first number of white lines, that is, for five lines. A predetermined barcode can be printed by repeating the control according to the number of black and white lines corrected. (11)

【0010】[0010]

【発明の効果】紙送り方向に対して、水平にも垂直にも
正しいバーコードが印字できることによって、印字でき
るバーコードのバリエーションが増え、様々な用途に対
応したバーコードの作成が可能となる。
Since the correct bar code can be printed horizontally or vertically with respect to the paper feeding direction, the number of variations of the bar code that can be printed is increased, and the bar code can be created for various purposes.

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

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

【図2】本発明の制御方法を示すフローチャートであ
る。
FIG. 2 is a flowchart showing a control method of the present invention.

【図3】紙送り方向に対して、バーコードを水平に印字
する場合の印字例を示す図である。
FIG. 3 is a diagram showing a printing example in which a barcode is printed horizontally with respect to a paper feeding direction.

【図4】紙送り方向に対して、バーコードを垂直に印字
する場合の印字例を示す図である。
FIG. 4 is a diagram illustrating a printing example in which a barcode is printed vertically with respect to a paper feeding direction.

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

1…液晶表示部、2…キーボード部、3…マイコン制御
部、4…メモリー部、5…サーマルラインヘッド部、6
…ラインヘッド駆動部、7…ラインヘッド制御部。
DESCRIPTION OF SYMBOLS 1 ... Liquid crystal display part, 2 ... Keyboard part, 3 ... Microcomputer control part, 4 ... Memory part, 5 ... Thermal line head part, 6
... line head drive section, 7 ... line head control section.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】入力部と表示部とサーマルラインヘッドと
感熱紙を駆動する駆動部と、該ラインヘッドの各ドット
に電圧を印加するかを制御するラインヘッド制御部を備
えた携帯用端末において、白黒比1:1のバーコードを
印字する際、紙送り方向に対して水平に印字する場合に
は、該ラインヘッドの電圧を印加するドットと電圧を印
加しないドットの数を1:1にするのに対し、垂直方向
に印字する場合には該ラインヘッドに電圧を印加した行
の紙送り量と、電圧を印加しない行の紙送り量を1:1
としないことを特徴としたバーコード印字機能を備えた
携帯用端末の制御方法。
1. A portable terminal comprising an input section, a display section, a drive section for driving a thermal line head, a thermal paper, and a line head control section for controlling whether a voltage is applied to each dot of the line head. When printing a bar code with a black-and-white ratio of 1: 1 when printing horizontally with respect to the paper feed direction, the number of dots to which the voltage of the line head is applied and the number of dots to which the voltage is not applied are set to 1: 1. On the other hand, when printing in the vertical direction, the paper feed amount of the line to which the voltage is applied to the line head and the paper feed amount of the line to which the voltage is not applied are 1: 1.
A method for controlling a portable terminal having a barcode printing function, which is characterized in that
JP16885193A 1993-07-08 1993-07-08 Controlling method of portable terminal equipped with bar code printing function Pending JPH0725073A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16885193A JPH0725073A (en) 1993-07-08 1993-07-08 Controlling method of portable terminal equipped with bar code printing function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16885193A JPH0725073A (en) 1993-07-08 1993-07-08 Controlling method of portable terminal equipped with bar code printing function

Publications (1)

Publication Number Publication Date
JPH0725073A true JPH0725073A (en) 1995-01-27

Family

ID=15875729

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16885193A Pending JPH0725073A (en) 1993-07-08 1993-07-08 Controlling method of portable terminal equipped with bar code printing function

Country Status (1)

Country Link
JP (1) JPH0725073A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0828228A2 (en) * 1996-09-05 1998-03-11 Canon Aptex Kabushiki Kaisha Image forming apparatus and method
US8035672B2 (en) * 2008-06-12 2011-10-11 Toshiba Tec Kabushiki Kaisha Printing apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0828228A2 (en) * 1996-09-05 1998-03-11 Canon Aptex Kabushiki Kaisha Image forming apparatus and method
EP0828228A3 (en) * 1996-09-05 1999-10-06 Canon Aptex Kabushiki Kaisha Image forming apparatus and method
US6236752B1 (en) 1996-09-05 2001-05-22 Canon Aptex Kabushiki Kaisha Image forming apparatus and method for selecting print heads especially for barcodes
US8035672B2 (en) * 2008-06-12 2011-10-11 Toshiba Tec Kabushiki Kaisha Printing apparatus

Similar Documents

Publication Publication Date Title
JP2940404B2 (en) Label making device
EP0267801A2 (en) Electronic typewriter with word correction function
JP2979536B2 (en) Barcode printing device
JPH08183222A (en) Printer and display
EP0573305B1 (en) Bar-code printing device
JPH0725073A (en) Controlling method of portable terminal equipped with bar code printing function
US4749289A (en) Printing device for attribute printing
EP0273738B1 (en) Printer with erasing function
US4951226A (en) Character display device with reversing and underlining effects
JPH0776115A (en) Heat transfer printer
US4983052A (en) Adjusting vertical line length in frame printer
US4998832A (en) Documentation system having page format function
JP2570363B2 (en) How to energize the thermal head in a thermal printer
JPH0752495A (en) Printer
JPH0752496A (en) Printer
EP0333403B1 (en) Printing apparatus with underline function and selectable pitches
JPS63274575A (en) Printer
JP2660092B2 (en) Label printer
JPH0811379A (en) Form-feeding device and controlling method thereof
JP2985530B2 (en) Tape printer
JPH02301460A (en) Document printer
KR100250884B1 (en) Print speed control method of thermal printer
JPS6287359A (en) Printer
JPS6076359A (en) Controlling device of printing
JPH05238044A (en) Thermal printer