JPS6255176A - Line feed control system in printer - Google Patents

Line feed control system in printer

Info

Publication number
JPS6255176A
JPS6255176A JP19502785A JP19502785A JPS6255176A JP S6255176 A JPS6255176 A JP S6255176A JP 19502785 A JP19502785 A JP 19502785A JP 19502785 A JP19502785 A JP 19502785A JP S6255176 A JPS6255176 A JP S6255176A
Authority
JP
Japan
Prior art keywords
line feed
printer control
line
printer
code
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
JP19502785A
Other languages
Japanese (ja)
Inventor
Tadashi Fukunaga
正 福永
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP19502785A priority Critical patent/JPS6255176A/en
Publication of JPS6255176A publication Critical patent/JPS6255176A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Spaces And Line Spaces In Printers (AREA)

Abstract

PURPOSE:To enable line-feed width by one piece of line feed function code to be freely set by unit of business processing program by allowing a printer control to have a printer execute line feeding according to a value set in a memory upon the reception of a line feed command. CONSTITUTION:A memory 11 is provided anew in a printer control 2, and a business processing program 3 sends a required line feed width to the printer control 2 prior to the start up of business. The printer control 2 sets this value in the memory 11. For a line feed during the execution of printing, a line feed command is output to the printer control2 from the business processing program 3. This line feed command is executed by sending out a control code to indicate the necessity of line feeding, e.g. 'NL' code to the printer control 2. When the printer control 2 receives 'NL' code, it reads a preset line feed width referring to the memory 11 and performs controls such as enabling a printer 1 to feed paper by an amount corresponding to the readout value. Thus it is possible to freely select the line feed width by a single line feed code and perform free chit form designing without the overall modification of the existing software.

Description

【発明の詳細な説明】 〔概 要〕 端末装置等における印刷装置の、プリンタ制御部に記憶
部を設け、業務処理プログラムは業務の開始に先立って
所望の改行幅を上記記憶部にセットする。上記プリンタ
制御部は改行命令を受け取ると、印刷装置に上記記憶部
にセットされた値に従って改行を実行させる。
DETAILED DESCRIPTION OF THE INVENTION [Summary] A storage section is provided in a printer control section of a printing device such as a terminal device, and a business processing program sets a desired line feed width in the storage section before starting a business. When the printer control section receives a line feed command, it causes the printing device to execute a line feed according to the value set in the storage section.

〔産業上の利用分野〕[Industrial application field]

本発明は印刷装置における改行機能の制御方式〔従来の
技術〕 端末装置の印刷装置には、必ず改行機能が設けられてい
る。この改行機能は、“NL”  にューライン)コー
ド〔改行ファンクションコード、以下単に改行コードと
略記する〕を印刷装置に送出することにより動作する。
The present invention provides a method for controlling a line feed function in a printing device (prior art) A printing device of a terminal device is always provided with a line feed function. This line feed function operates by sending a line feed function code (hereinafter simply abbreviated as line feed code) to the printing device.

上記“NL’ コードを1個受け取ったときの改行幅と
して、115インチと1/6インチとを選択できる端末
装置が多く使用されている。
Many terminal devices are used in which the line feed width when receiving one "NL" code can be selected from 115 inches and 1/6 inch.

また印刷装置によっては、1個の“NL’ コードによ
る改行幅が、1行分と2行分とを選択するための、ハー
ドウェアスイッチを具備するものもある。
Further, some printing apparatuses are equipped with a hardware switch for selecting between one line and two lines as the line feed width for one "NL" code.

しかし最近の印刷装置は、コスダウンを目的として、上
記ハードウェアスイッチを省略し、1行分のみ改行し得
るようになって来ている。
However, in order to reduce cost, recent printing apparatuses have omitted the hardware switch and are now capable of starting only one line.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

かかる印刷装置を用いて2行分改行するためには“NL
’ コードを2個必要とする。
To insert a line feed by two lines using such a printing device, use “NL
' Requires two codes.

そのため、今まで1個の改行コードで2行分改行してい
た現存ソフト資料は、改行コードを21固に変更せねば
ならないこととなり、大変な手間を必要とする。更に、
このように印刷装置の機能が簡単化されると、帳票設計
が制約され、所望の帳票設計が困難となる場合が生じる
For this reason, existing software materials that used to have two line breaks with one line feed code now have to change the line feed code to 21, which requires a lot of effort. Furthermore,
When the functions of the printing device are simplified in this way, form design is restricted, and it may become difficult to design a desired form.

そこで本発明は、1個の改行ファンクションコードによ
る改行幅を、業務処理プログラム単位に任意に設定し得
る印刷装置における改行制御方式を提供することを目的
とする。
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a line feed control method for a printing device in which the line feed width based on one line feed function code can be arbitrarily set for each business processing program.

〔問題点を解決するための手段〕 図に示す如く、印刷装置1はプリンタ制御部2を有する
。このプリンタ制御部2は業務処理プログラム3から送
出されてくる命令に基づいて、印刷装置の種々の動作を
制御し、所望の印刷を実行する。
[Means for Solving the Problems] As shown in the figure, the printing device 1 includes a printer control section 2. The printer control unit 2 controls various operations of the printing device based on commands sent from the business processing program 3, and executes desired printing.

本発明においては上記プリンタ制御部2に記憶部11を
新たに設け、業務の開始に先立って業務処理プログラム
3は所望の改行幅をプリンタ制御部2に送出する。プリ
ンタ制御部2はこの値を上記記憶部11にセントする。
In the present invention, a storage section 11 is newly provided in the printer control section 2, and the business processing program 3 sends a desired line feed width to the printer control section 2 before starting a business. The printer control section 2 stores this value in the storage section 11.

印刷実行時に改行するに際しては、業務処理プログラム
3から改行命令がプリンタ制御部2に出力される。この
改行命令は、改行すべきことを示す制御コード、例えば
’NL“コード等をプリンタ制御部2Lこ送出すること
によってなされる。
When starting a line during printing, a line break command is output from the business processing program 3 to the printer control unit 2. This line feed command is issued by sending a control code, such as a 'NL'' code, to the printer control unit 2L indicating that a line should be broken.

プリンタ制御部2は“NL” コードを受け取ると、上
記記憶部11を参照して予めセントされた改行幅を読み
出し、印刷装置1にこの値に対応する量だけ紙送りを行
わせる等の制御を行う。
When the printer control section 2 receives the "NL" code, it refers to the storage section 11, reads out the preset line feed width, and controls the printing device 1 to feed the paper by an amount corresponding to this value. conduct.

〔作 用〕[For production]

このように本発明においては、業務処理プログラムごと
に改行幅を予めセットし、このセットされた値に基づい
て実際の改行幅を制御するので、1個の改行コードによ
る改行幅を所望の如く設定することができる。
In this way, in the present invention, the line feed width is set in advance for each business processing program, and the actual line feed width is controlled based on this set value, so the line feed width can be set as desired using one line feed code. can do.

〔実施例〕〔Example〕

上記本発明における一連の処理において、業務開始に先
立ってセットされる改行幅及びその設定方法は、下記の
如く種々の形態を取り得る。
In the series of processes according to the present invention described above, the line feed width and its setting method that are set before the start of a job can take various forms as described below.

まず1行分の改行幅を一定としておく、改行コード1個
により改行する行数を設定するようにすることも可能で
あり、また1個の改行コードで1行のみ改行することと
し、その改行幅を例えば5mmと長さで指定するように
しても良い。
First, it is possible to keep the line feed width for one line constant, and to set the number of lines to break using one line feed code.Also, it is possible to set the line break width for one line to be constant, and to set the number of lines to break with one line feed code. The width may be specified by the length, for example, 5 mm.

更に本発明はホストプロセッサに少なくとも1個の端末
装置が接続されたオンラインシステムにおいても、また
自立型のパソコン或いはインテリジェント端末装置を単
独で使用する場合等、システム構成に関係なく使用し得
るものである。
Furthermore, the present invention can be used regardless of the system configuration, such as in an online system in which at least one terminal device is connected to a host processor, or in cases where a stand-alone personal computer or an intelligent terminal device is used alone. .

前者の場合には、業務処理プログラム3はホストプロセ
ッサ上で動作し、後者の場合には、独立して動作する端
末装置或いはパソコン等の上で動作することとなる。
In the former case, the business processing program 3 runs on a host processor, and in the latter case, it runs on an independently running terminal device, personal computer, or the like.

〔発明の効果〕〔Effect of the invention〕

以上説明した如く本発明によれば、1個の改行コードに
よる改行幅を任意に選択でき、既存ソフトウェアの全面
的な変更を行うことなく、自由な帳票設計が可能となり
、しかも本発明によれば、ハードウェアの構成も簡単と
なり、従ってハードウェアの価格も安価となる。
As explained above, according to the present invention, it is possible to arbitrarily select the width of a line break using a single line feed code, and it is possible to freely design a form without completely changing existing software. , the hardware configuration becomes simple, and therefore the hardware price becomes low.

【図面の簡単な説明】[Brief explanation of the drawing]

図は本発明を示す要部システム構成図である。 図において、1は印刷装置、2はプリンタ制御部、3は
業務処理プログラム、11は記憶部を示す。 不発明めシステム不爺へ(の
The figure is a main system configuration diagram showing the present invention. In the figure, 1 is a printing device, 2 is a printer control unit, 3 is a business processing program, and 11 is a storage unit. To the non-inventive system fuji (of

Claims (1)

【特許請求の範囲】[Claims] 業務処理プログラム(3)からの改行命令に基づいて改
行を行わせる機能を有するプリンタ制御部(2)を具備
せる印刷装置(1)において、前記プリンタ制御部(2
)に改行幅を格納する記憶部(11)を付設し、前記業
務処理プログラム(3)は所定の業務を開始するに先立
って、所望の改行幅を前記プリンタ制御部(2)に送出
し、プリンタ制御部(2)は受け取った値を前記記憶部
(11)にセットしておき、前記プリンタ制御部(2)
は前記業務処理プログラム(3)から送出された改行命
令を受け取ると、前記記憶部(11)にセットされた改
行幅に従って前記印刷装置(1)に改行を行わせること
を特徴とする印刷装置における改行制御方式。
In a printing device (1) equipped with a printer control unit (2) having a function of performing a line feed based on a line feed command from a business processing program (3), the printer control unit (2)
) is attached with a storage unit (11) for storing a line feed width, and the business processing program (3) sends a desired line feed width to the printer control unit (2) before starting a predetermined job; The printer control unit (2) sets the received value in the storage unit (11), and then sets the received value in the storage unit (11).
In the printing device, when receiving a line feed command sent from the business processing program (3), the printing device (1) causes the printing device (1) to perform a line feed according to a line feed width set in the storage unit (11). Line feed control method.
JP19502785A 1985-09-03 1985-09-03 Line feed control system in printer Pending JPS6255176A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19502785A JPS6255176A (en) 1985-09-03 1985-09-03 Line feed control system in printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19502785A JPS6255176A (en) 1985-09-03 1985-09-03 Line feed control system in printer

Publications (1)

Publication Number Publication Date
JPS6255176A true JPS6255176A (en) 1987-03-10

Family

ID=16334314

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19502785A Pending JPS6255176A (en) 1985-09-03 1985-09-03 Line feed control system in printer

Country Status (1)

Country Link
JP (1) JPS6255176A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59140087A (en) * 1983-02-01 1984-08-11 Canon Inc Printer

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59140087A (en) * 1983-02-01 1984-08-11 Canon Inc Printer

Similar Documents

Publication Publication Date Title
JP2551011B2 (en) Printer
JPS60203473A (en) Printer
JPH06139031A (en) Printer controller
US5481756A (en) DMA controller mailing auto-initialize halting unit
JPS6255176A (en) Line feed control system in printer
JPH04364971A (en) Printing apparatus
JPH1097391A (en) Printer system and print control method
JP7283875B2 (en) Numerical controller
JP2780974B2 (en) Printer
JPH0811393A (en) Power apparatus
JPS605331A (en) Line printer
JPH04205226A (en) Printer
JP3508053B2 (en) Printer power control
JP3350699B2 (en) Programmable controller
JPS61180310A (en) Loading system of system control program to numerical controller
JPH01286017A (en) Printing controller
JP5991784B2 (en) Information processing apparatus and information processing program
JP2001010169A (en) Printing control device, its interruption printing control method and storage medium readable by computer storing its control program
JPH05229282A (en) Printing control device
JPH0480074A (en) Page printer
JPH01159726A (en) Data buffer device
JPH01249474A (en) Printing output device control system
JPH08292851A (en) Printer device
JPH03164927A (en) Printer job display system
JPH06110624A (en) Reset controller