JPH01234926A - Method for controlling printer - Google Patents

Method for controlling printer

Info

Publication number
JPH01234926A
JPH01234926A JP6054988A JP6054988A JPH01234926A JP H01234926 A JPH01234926 A JP H01234926A JP 6054988 A JP6054988 A JP 6054988A JP 6054988 A JP6054988 A JP 6054988A JP H01234926 A JPH01234926 A JP H01234926A
Authority
JP
Japan
Prior art keywords
program
written
rom
ram
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.)
Pending
Application number
JP6054988A
Other languages
Japanese (ja)
Inventor
Satoshi Tsukihara
月原 智
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.)
Alps Alpine Co Ltd
Original Assignee
Alps Electric 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 Alps Electric Co Ltd filed Critical Alps Electric Co Ltd
Priority to JP6054988A priority Critical patent/JPH01234926A/en
Publication of JPH01234926A publication Critical patent/JPH01234926A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To satisfy all requests for printing formats without increasing cost by executing a program (secondary program) which is not written in a program ROM without replacing the program ROM. CONSTITUTION:When printing based upon the secondary program is required, the secondary program is temporarily transferred to a program RAM 16 through the program ROM 12, written in the program RAM 16 and then a command for executing the written secondary program is generated to executed prescribed printing along the secondary program. Thereby the secondary program which is not written in the program ROM 12 can be executed without replacing the program ROM 12. Consequently, all requests for printing formats can be satisfied and the increment of cost satisfying the requests is also unnecessary.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は各種情報処理装置の出力装置の一種であるプリ
ンタの印字動作等を制御するプリンタの制御方法に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a printer control method for controlling printing operations, etc. of a printer, which is a type of output device of various information processing devices.

〔従来の技術〕[Conventional technology]

この種のプリンタはプログラムに従って動作せしめられ
、所定の印字を施すようにされている。
This type of printer is operated according to a program and is designed to perform predetermined printing.

第3図はプリンタへ印字指令を発するCPUがアクセス
する従来のアクセス空間1の一例を示している。このア
クセス空間1はメモリブツブ等によって形成されている
。そして、従来例においては、このアクセス空間1のプ
ログラムROM2部分にプリンタが行なう全印字動作を
司どるプログラムが書込まれている。また、出力すべき
印字データはデータRAM3部分に書込まれるようにな
っている。更に、アクセス空間1には印字する文字のフ
゛オント等のデータを記憶しているキャラクタゼネレー
タ4.や、入出力等を司どるインターフェース部5等も
設けられている。
FIG. 3 shows an example of a conventional access space 1 accessed by a CPU that issues a print command to a printer. This access space 1 is formed by a memory block or the like. In the conventional example, a program for controlling all printing operations performed by the printer is written in the program ROM 2 portion of the access space 1. Further, the print data to be output is written in the data RAM3 portion. Further, in the access space 1, there is a character generator 4 that stores data such as fonts of characters to be printed. Also provided is an interface unit 5 that controls input/output and the like.

このような従来例による印字は次のようにして行なわれ
る。
Printing according to such a conventional example is performed as follows.

先ず、CPLIより印字指令に基づいた」マントをアク
セス空間1のプログラムROM2へ送給する。そして、
プログラムROM2はコマンドに対応したプログラムに
従って、データRAM3に書込まれているデータ内容に
応じた印字動作命令をプリンタの構成各部へ送給し、所
定の印字を行なわせる。
First, a cloak based on a print command is sent from the CPLI to the program ROM 2 in the access space 1. and,
The program ROM 2 sends printing operation commands corresponding to the data contents written in the data RAM 3 to each component of the printer in accordance with a program corresponding to the command, thereby causing predetermined printing to be performed.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

今日のコンピュータを利用した情報処理はあらゆる分野
において行なわれており、利用者による処理情報の出力
態様に対する要請は多種多様なものとなっている。
Today, information processing using computers is performed in all fields, and users have a wide variety of requests regarding output modes of processed information.

しかしながら、前述した従来の方法によれば、文字等の
印字態様はプログラムROM2に書込まれている内容だ
けに限られているので、今日の印字態様に対する多種多
様な要請・を満たすことができない。
However, according to the above-mentioned conventional method, the printing mode of characters etc. is limited to only the contents written in the program ROM 2, so it cannot meet the various demands of today's printing mode.

そのため従来においては、プログラムROM2に書込ま
れていない態様の印字を行なう場合には、その印字態様
を実行するプログラムを追加したり変更するために、プ
ログラムROM2自身を交換しなければならなかった。
Therefore, conventionally, when printing in a manner not written in the program ROM 2, the program ROM 2 itself had to be replaced in order to add or change a program for executing the printing manner.

このような追加すべき印字態様としては、例えば印字す
べき文字の強調、拡大や、2重打ちやアンダーラインが
挙げられる。
Such additional printing modes include, for example, emphasizing and enlarging characters to be printed, double striking, and underlining.

従って、個々の利用者に固有の印字態様に対1−る要請
を満たすためには、プログラムROM2の交換に時間を
要するとともに、新た°に6価なプログラムROM2を
必要とする等の不都合があった。
Therefore, in order to meet the needs of individual users regarding their unique printing style, it takes time to replace the program ROM 2, and there are inconveniences such as the need for a new hexavalent program ROM 2. Ta.

本発明はこれらの点に鑑みてなされたものであり、プロ
グラムROMに書込まれていないプログラム(以下、2
次プログラムという)を、前記プログラムROMを交換
することなく実行することができ、印字態様に対するあ
らゆる要請を満たすことができるとともに、その要請を
満たづために如何なるコストの増加も不要と覆るプリン
タの制御方法を提供することを目的とする。
The present invention has been made in view of these points, and is a program that is not written in the program ROM (hereinafter referred to as 2).
A printer control system that can execute the following program (referred to as the next program) without replacing the program ROM, and can satisfy all demands regarding printing mode, and eliminates the need for any increase in cost to meet the demands. The purpose is to provide a method.

〔課題を解決するための手段) 本発明のプリンタの制御方法は、プログラムROMに書
込まれていない2次プログラムを実行りる場合に、前記
2次プログラムを前記プログラムROMからプログラム
RAMへ転送してそのプログラムRAMへ書込み、その
後前記プログラムRAMに書込まれた前記2次プログラ
ムを実行することを特徴とする。
[Means for Solving the Problems] In the printer control method of the present invention, when a secondary program not written in the program ROM is executed, the secondary program is transferred from the program ROM to the program RAM. The secondary program is written into the program RAM, and then the secondary program written into the program RAM is executed.

〔作 用〕[For production]

本発明によれば、2次プログラムに基づく印字が必要と
された時には、その2次プログラムを一旦プログラムR
OMを通してプログラムRAMへ転送して同プログラム
RAMに刀込み、その後書込まれた2次プログラムを実
行するコマンドを発することにより、2次プログラムに
沿って所定の印字が施される。
According to the present invention, when printing based on a secondary program is required, the secondary program is first changed to program R.
By transferring the data to the program RAM through the OM, writing the data into the program RAM, and then issuing a command to execute the written secondary program, predetermined printing is performed in accordance with the secondary program.

〔実施例〕〔Example〕

以下、本発明の実施例を第1図および第2図について説
明する。
Embodiments of the present invention will be described below with reference to FIGS. 1 and 2.

第1図43よび第2図は本発明方法を実施するためのア
クセス空間11を示している。
143 and 2 show an access space 11 for carrying out the method of the invention.

本発明に用いられるアクセス空間11は、通常のプログ
ラム(以下、1次プログラムという)が書込まれている
プログラムROM12の他に、2次プログラムを自由に
書込んだり実行したりできるプログラムRAM16を備
えている。また、アクセス空間11には従来と同様に、
印字データを書込むデータRAM13やキャラクタゼネ
レータ14およびインターフェース部15が設けられて
いる。
The access space 11 used in the present invention includes, in addition to a program ROM 12 in which a normal program (hereinafter referred to as a primary program) is written, a program RAM 16 in which a secondary program can be freely written and executed. ing. In addition, in the access space 11, as in the past,
A data RAM 13 in which print data is written, a character generator 14, and an interface section 15 are provided.

次に、このアクセス空間11を用いて行なう本発明の制
御方法を説明する。
Next, a control method of the present invention performed using this access space 11 will be explained.

先ず、印字すべき印字態様がプログラムROM12に書
込まれている1次プログラムに含まれていない場合には
、その印字態様を実行する2次プログラムを作成し、第
1図に示すように、CPU(図示せず)からプログラム
ROM12へ向けて、コマンドに続く2次プログラムを
プログラムR△M16へ出込む内容のコマンド1とその
2次プログラムを共に送給する。プログラムROM12
へ送給されて来た2次プログラムは、プログラムROM
12のコマンド処理1によりプログラムRΔM16へ転
送処理されるとともに、同プログラムRAM16内へ書
込まれて、既書込み2次プログラムP1となる。
First, if the printing mode to be printed is not included in the primary program written in the program ROM 12, a secondary program for executing the printing mode is created, and as shown in FIG. (not shown) toward the program ROM 12, both command 1 and its secondary program are sent to the program RΔM16 for the secondary program following the command. Program ROM12
The secondary program sent to the program ROM
By the command processing 1 of No. 12, the data is transferred to the program RΔM16 and written into the program RAM 16, becoming the already written secondary program P1.

その後、プログラムRAM16に書込まれた既書込み2
次プログラムP1を実行するには、CPUより同2次プ
ログラムP1を実行するコマンド2をプログラムRAM
16に向けて指令し、2次プログラムP1に従った内容
の印字を行なわせる。
After that, the already written 2 written in the program RAM 16
To execute the next program P1, the CPU sends command 2 to execute the same secondary program P1 to the program RAM.
16 to print the contents according to the secondary program P1.

更に、具体例によって説明する。Further, a specific example will be explained.

先ず、プ[1グラムROM12に書込まれている1次プ
ログラム以外の印字態様を示す2次プログラムを、例え
ばd  、d2.、、、、、、、dn2X 256+n
1として作成する。このプログラムを実行する印字態様
としては、例えば文字の強調、拡大等の指令や、2′t
i!打ち、アンダーライン秀の指令が挙げられる。
First, a secondary program indicating a printing mode other than the primary program written in the 1-gram ROM 12 is written as, for example, d, d2. ,,,,,,dn2X 256+n
Create as 1. Printing modes for executing this program include, for example, commands such as character emphasis and enlargement, and 2't
i! The command of Underline Hide is mentioned.

次に、CPUよりコマンド1としてプログラムROfV
112へ、 ”ESC,x、 nl 、 n2 、 d  d  ・
−・d、2X256.。1”112゜ を送給する。
Next, the program ROfV is sent as command 1 from the CPU.
To 112, "ESC, x, nl, n2, dd ・
-・d, 2X256. . Feed 1”112°.

このコマンド1を受けたプログラムROM12は、2次
プログラムd、d2.・・・・・・。
Upon receiving this command 1, the program ROM 12 stores secondary programs d, d2. .......

dn2x 256+nlをプログラムRAM16へ転送
して、プログラムRAM16内に既書込み2次プログラ
ムP1として書込ませる。このプログラムRAM16の
占込み容量は多種多様な2次プログラムの占込みを可能
とするために、十分に大きなものとしておくとよい。
dn2x 256+nl is transferred to the program RAM 16 and written in the program RAM 16 as the already written secondary program P1. The program RAM 16 should preferably have a sufficiently large capacity to accommodate a wide variety of secondary programs.

次に、既書込み2次プログラムP1内から必要とするプ
ログラムを実行する場合に、CPUよりコマンド2とし
てプログラムRAM16へ、”ESC,y、e  、e
2. ・−−−−・、eo”を送給する。
Next, when executing a necessary program from the already written secondary program P1, the CPU sends command 2 to the program RAM 16 as "ESC, y, e, e.
2.・----・, eo'' is sent.

このコマンド2を受【)たプログラムRAM16は、既
書込み2次プログラムP の内から、el。
Upon receiving this command 2, the program RAM 16 selects el from among the already written secondary programs P.

02、・・・・・・、eoの実行処理を行なう。このよ
うにして行なわれる印字態様は、2次プログラムd1.
d2・・・・・・に対応した文字の強調、拡大等の内容
とされる。
02, . . . , performs the execution process of eo. The printing mode performed in this way is the secondary program d1.
d2... The text is emphasized, enlarged, etc. corresponding to the text.

このように本実施例に従って、プリンタの動作を制御す
れば、プログラムROM12に書込まれていない印字態
様も、プログラムRAM16へ2次プログラムを占込み
、それを実行づるだけで、極めて簡単に実現することが
でき、しかも、従来のようにメモリーチップ等を追加す
る必要がなく、コストの増加を必要としない。従って、
工場から出荷され、利用者にプリンタが提供された段階
において、各利用者の1次プログラムに係る印字態様以
外に必要とする印字態様の追加、変更を極めて、容易に
しかも迅速に遂行づることができる。
By controlling the operation of the printer according to this embodiment, printing modes not written in the program ROM 12 can be realized extremely easily by simply loading the secondary program into the program RAM 16 and executing it. Moreover, there is no need to add a memory chip or the like as in the past, and there is no need for an increase in cost. Therefore,
At the stage when the printer is shipped from the factory and provided to the user, it is possible to extremely easily and quickly add or change necessary printing modes other than the printing mode related to each user's primary program. can.

なお、本発明は前記実施例に限定されるものではなく、
必要に応じて変更することができる。
Note that the present invention is not limited to the above embodiments,
It can be changed as necessary.

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

このように本発明のプリンタの制御方法は、プログラム
ROMに書込まれていない2次プログラムを実行する場
合に、前記2次プログラムを前記プログラムROMから
プログラムRAMへ転送してそのプログラムRAMへ書
込み、その後前記プログラムRAMに書込まれた前記2
次プログラムを実行するように形成しているので、プロ
グラムROMに書込まれCいない2次プログラムを、前
記プログラムROMを交換することなく実行することが
でき、印字態様に対するあらゆる要請を満たりことがで
きるとともに、その要請を満たりために如何なるコスト
の増加も不要である等の効果を秦する。
In this way, the printer control method of the present invention, when executing a secondary program not written in the program ROM, transfers the secondary program from the program ROM to the program RAM and writes it to the program RAM; After that, the above-mentioned 2 written in the program RAM
Since it is configured to execute the next program, it is possible to execute the secondary program written in the program ROM without replacing the program ROM, and it is possible to satisfy all demands regarding the printing mode. In addition to being able to do so, it also has the effect of not requiring any increase in costs to meet that request.

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

第1図および第2図は本発明のプリンタの制御方法の実
施に利用されるCPLIがアクヒス可能なアクセス空間
の概略図であり、第1図はコマンド1を実行している状
態および第2図はコマンド2を実行している状態をそれ
ぞれ示しており、第3図は従来方法に利用されるアクセ
ス空間の概略図である。 11・・・アクセス空間、12・・・プログラムROM
。 13・・・データRAM、14・・・キャラクタぜネレ
ータ、15・・・インターフェース部、16・・・プロ
グラムRAM。 出願人代理人  中  尾  俊  輔第1図 第2図
1 and 2 are schematic diagrams of the access space that can be accessed by the CPLI used to implement the printer control method of the present invention, and FIG. 1 shows the state in which command 1 is being executed, and FIG. 3 shows a state in which command 2 is being executed, and FIG. 3 is a schematic diagram of an access space used in the conventional method. 11...Access space, 12...Program ROM
. 13...Data RAM, 14...Character generator, 15...Interface section, 16...Program RAM. Applicant's agent Shunsuke Nakao Figure 1 Figure 2

Claims (1)

【特許請求の範囲】[Claims] プログラムROMに書込まれていない2次プログラムを
実行する場合に、前記2次プログラムを前記プログラム
ROMからプログラムRAMへ転送してそのプログラム
RAMへ書込み、その後前記プログラムRAMに書込ま
れた前記2次プログラムを実行することを特徴とするプ
リンタの制御方法。
When executing a secondary program that has not been written to the program ROM, the secondary program is transferred from the program ROM to the program RAM and written to the program RAM, and then the secondary program written to the program RAM is A printer control method characterized by executing a program.
JP6054988A 1988-03-16 1988-03-16 Method for controlling printer Pending JPH01234926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6054988A JPH01234926A (en) 1988-03-16 1988-03-16 Method for controlling printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6054988A JPH01234926A (en) 1988-03-16 1988-03-16 Method for controlling printer

Publications (1)

Publication Number Publication Date
JPH01234926A true JPH01234926A (en) 1989-09-20

Family

ID=13145479

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6054988A Pending JPH01234926A (en) 1988-03-16 1988-03-16 Method for controlling printer

Country Status (1)

Country Link
JP (1) JPH01234926A (en)

Similar Documents

Publication Publication Date Title
JPH06342416A (en) Method and equipment for distributed processing of display-screen information
JPS6049424A (en) Document input system
JPH01234926A (en) Method for controlling printer
EP0200222A2 (en) Word processor with automatic typewriter mode
US6894795B1 (en) Method and apparatus for enhancing the perceptual performance of a post-printing application environment
JP2001260498A (en) Printer and its control method
JPH0522933B2 (en)
JP2726408B2 (en) Help information display device
JPH10114127A (en) Printer
JP2544452B2 (en) Multitasking processor
JP2899103B2 (en) Information processing apparatus and method
JPH03161828A (en) Printer controller
Withington Computer technology: State of the art
JPS6151264A (en) Document processing device
JPH0525334B2 (en)
JPH10283349A (en) Document preparing device and recording medium
JPS62205418A (en) Document layout device
JPH06161688A (en) Printer
JPS62118382A (en) Document format alteration system
JP2000148439A (en) Information printing method for network
JP2005107613A (en) Character-input support module
JPH03126152A (en) Electronic equipment
JPH03220623A (en) Printer system
JPH02191035A (en) Information processor with software register function
JPH04111159A (en) Character font controller