JPH02114315A - Printer device - Google Patents

Printer device

Info

Publication number
JPH02114315A
JPH02114315A JP63268623A JP26862388A JPH02114315A JP H02114315 A JPH02114315 A JP H02114315A JP 63268623 A JP63268623 A JP 63268623A JP 26862388 A JP26862388 A JP 26862388A JP H02114315 A JPH02114315 A JP H02114315A
Authority
JP
Japan
Prior art keywords
program
printer control
control command
printer
host
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
JP63268623A
Other languages
Japanese (ja)
Inventor
Masahiro Takahashi
正弘 高橋
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP63268623A priority Critical patent/JPH02114315A/en
Publication of JPH02114315A publication Critical patent/JPH02114315A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To more inexpensively distribute a new printer control command after delivery by providing a printer device with a program storing memory and loading down an extended printer control program. CONSTITUTION:An interpreting program for interpreting an extended printer control command in the program storing memory 17 executes a corresponding command when the command exists, and at the time of absence, returns control to a printer control command interpreting routine consisting of two bytes or more stored in a ROM 15. Thereby, it is also possible to substitute an existing printer control command supplied to the ROM 15 in addition to the simple addition of a new control command. Consequently, an extended printer control program can be distributed by using an FED device included in a host or a communication line.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、プリンタ装置、特にホストから印刷データお
よびプリンタ制御コマンドを受信し印刷を実行するプリ
ンタ装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a printer device, and particularly to a printer device that receives print data and printer control commands from a host and executes printing.

〔従来の技術〕[Conventional technology]

従来のプリンタ装置は、第3図に示すように、CPU部
32はマイクロプロセッサ、作業用RAM等から構成さ
れ、ROM35上の基本制御プログラムおよび制御コマ
ンド解釈プログラムを実行する。基本制御プログラムは
、電源投入およびリセット時の装置初期化や故障診断時
の装置の基本的な制御および管理を行なう、プリンタ制
御コマンド解釈プログラムは、ホスト・インターフェー
ス31から受信した印字データやプリンタ制御コマンド
を解釈し、フォントメモリ上のフォント情報を参照し、
イメージメモリ33上に印字イメージを展開し、I10
プロセッサ部36に適切な印字指令を発信し印字を行な
わせる。高速性を重視する装置ではこのI10プロセッ
サ部36を複数のスレーブマイクロプロセッサで実現す
るが、価格を重視する装置ではROM35上のプログラ
ムで実現することもある。コマンド解釈プログラムはプ
リンタ装置内のROMで供給されるため、製品出荷後の
プリンタ制御コマンドの拡張および修正は甚だ困難であ
る。
In the conventional printer device, as shown in FIG. 3, a CPU section 32 is composed of a microprocessor, a working RAM, etc., and executes a basic control program and a control command interpretation program on a ROM 35. The basic control program performs basic control and management of the device during initialization of the device at power-on and reset, and during failure diagnosis.The printer control command interpretation program performs print data and printer control commands received from the host interface 31. and refer to the font information in the font memory,
Expand the print image on the image memory 33 and I10
An appropriate print command is sent to the processor unit 36 to cause it to print. In devices where high speed is important, the I10 processor unit 36 is implemented by a plurality of slave microprocessors, but in devices where cost is important, it may be implemented by a program on the ROM 35. Since the command interpretation program is supplied in the ROM within the printer device, it is extremely difficult to extend or modify the printer control commands after the product is shipped.

第4図は製品出荷後のプリンタ制御コマンドの拡張や修
正を容易にした従来のプリンタ装置のブロック図である
。プリンタ装置本体にROMカセットホルダー38を設
け、新しいプリンタ制御コマンド解釈プログラムをRO
Mカセット3つで供給できるようにしたものである。こ
の構成例では、ROMカセット39の着脱により比軸的
簡単にプリンタ制御コマンドの拡張や修正ができる。
FIG. 4 is a block diagram of a conventional printer device that facilitates expansion and modification of printer control commands after the product is shipped. A ROM cassette holder 38 is provided in the main body of the printer device, and a new printer control command interpretation program can be read by RO.
It is designed so that it can be supplied with three M cassettes. In this configuration example, printer control commands can be expanded and modified relatively easily by attaching and detaching the ROM cassette 39.

同様にROMカセットの代りにRAMカードや磁気記録
媒体を用いる場合もある。
Similarly, a RAM card or a magnetic recording medium may be used instead of a ROM cassette.

、C発明が解決しようとする課題〕 第]図に示した従来のプリンタ装置では、製品出荷後の
プリンタ制御コマンドの拡張や修正は甚だ困難である。
, C Problems to be Solved by the Invention In the conventional printer shown in FIG. 1, it is extremely difficult to extend or modify the printer control commands after the product is shipped.

したがって、新たにプリンタ制御コマンドを拡充した新
製品が投入された場合、その拡張された部分については
旧製品では対処できず、新旧の製品間でプリンタ制御コ
マンドの完全な互換性が実現できないという問題点があ
る。
Therefore, when a new product with expanded printer control commands is introduced, the old product cannot deal with the expanded part, resulting in the problem that full compatibility of printer control commands cannot be achieved between the old and new products. There is a point.

また、第4図に示したプリンタ装置では、ROMカセッ
トを用いて新規のプリンタ制御コマンドを配布できるが
、ROMカセットのような媒体そのもののコストが無視
できず、大量配布には向かないという問題点がある。
In addition, the printer shown in Figure 4 can distribute new printer control commands using a ROM cassette, but the cost of the medium itself, such as the ROM cassette, cannot be ignored, making it unsuitable for mass distribution. There is.

したがって、本発明の目的は、ブリタ装置出荷後の新規
プリンタ制御コマンドのより低価格な配布を可能ならし
めるプリンタ装置を提供することである。
Accordingly, an object of the present invention is to provide a printer device that allows new printer control commands to be distributed at a lower cost after the Brita device is shipped.

1課題を解決するための手段〕 本発明によれば、 「ホストから受信する印字データおよびプリンタ制御コ
マンドを解釈し印刷を実行するプリンタ装置において、 リード・ライト可能なプログラム格納用メモリと、 前記プログラム格納用メモリに既に格納されているプロ
グラムと新たにホストから送信されるプログラムとの版
番号を比較するプログラム版番号比較手段と、 前記プログラム版番号比較手段からの信号により版番号
が更新されるときのみ、ホストから送信されるプリンタ
制御コマンド解釈プログラムを前記プログラム格納用メ
モリにロードするプリンタ制御コマンド解釈プログラム
ロード手段と、前記プリンタ制御コマンド解釈プログラ
ムに適宜制御を渡す分岐手段とを 有することを特徴とするプリンタ装置」が得られる。
Means for Solving 1 Problem] According to the present invention, in a printer device that interprets print data and printer control commands received from a host and executes printing, a readable/writable program storage memory; program version number comparison means for comparing the version numbers of a program already stored in a storage memory and a program newly transmitted from the host; and when the version number is updated by a signal from the program version number comparison means. The present invention is characterized by comprising a printer control command interpretation program loading means for loading a printer control command interpretation program transmitted from a host into the program storage memory, and a branching means for appropriately passing control to the printer control command interpretation program. A "printer device" is obtained.

〔実施例〕〔Example〕

次に、本発明の一実施例を示した図面を参照して、本発
明をより詳細に説明する。
Next, the present invention will be described in more detail with reference to the drawings showing one embodiment of the present invention.

第1図を参照すると、本発明の一実施例は、通常の基本
制御プログラムおよびプリンタ制御コマンド解釈プログ
ラムの搭載されたROM15の他に、プログラム格納用
メモリ17を持っている。
Referring to FIG. 1, one embodiment of the present invention has a program storage memory 17 in addition to a ROM 15 loaded with a normal basic control program and a printer control command interpretation program.

基本制御プログラムは、電源投入時およびリセット時の
装置初期化や故障診断など、装置の基本的な制御および
管理を行なう、プリンタ制御コマンド解釈プログラムは
、ホスト・インターフェース11から受信した印字デー
タやプリンタ制御コマンドを解釈し、フォントメモリ1
4上のフォント情報を参照し、イメージメモリ13上に
印字イメージを展開し、I10プロセッサ部16に適切
な印字指令を発信し印字を行なわせる。さらに、プリン
タ制御コマンド解釈プログラムは、ホストから拡張プリ
ンタ制御コマンド解釈プログラムのダウンロード命令お
よび拡張プリンタ制御コマンド解釈プログラムを受信し
た場合、既にプログラム格納用メモリ17に格納されて
いる拡張プリンタ制御コマンド解釈プログラムとホスト
がら受信した拡張用制御コマンド解釈プログラムの版番
号を比較し、ホストからのプログラムの版の方が新しい
ときだけ、このプログラムをプログラム格納用メモリに
ロードする。このため、新しい版が古い版に置き換えら
れるという不都合が回避される。
The basic control program performs basic control and management of the device, such as device initialization and failure diagnosis at power-on and reset.The printer control command interpretation program handles print data received from the host interface 11 and printer control. Interpret the command and save font memory 1
4, a print image is developed on the image memory 13, and an appropriate print command is sent to the I10 processor unit 16 to print. Furthermore, when the printer control command interpretation program receives an extended printer control command interpretation program download instruction and an extended printer control command interpretation program from the host, the printer control command interpretation program is configured to combine the extended printer control command interpretation program already stored in the program storage memory 17. The version numbers of the expansion control command interpretation program received from the host are compared, and only when the version of the program from the host is newer, this program is loaded into the program storage memory. This avoids the inconvenience of a new version replacing an old version.

また、ホストからのコマンドのうち自分自身に対するも
のでないコマンドを検出し、このコマンドの処理をフロ
グラム格納用メモリ7上の拡張プリンタ制御コマンド解
釈プログラムに制御を移行し実行させる。
It also detects a command that is not directed to itself among commands from the host, and transfers control to the extended printer control command interpretation program on the program storage memory 7 to execute the processing of this command.

上記の機能を実現するプリンタ制御コマンド解釈プログ
ラムの一例を第2図のフローチャートで説明する。RO
M15上のプリンタ制御コマンド解釈プログラムは、ホ
ストからホストインターフェース11を介してホストデ
ータを受信する。
An example of a printer control command interpretation program that implements the above functions will be explained with reference to the flowchart in FIG. R.O.
The printer control command interpretation program on the M15 receives host data from the host via the host interface 11.

このホストデータが印字データなら、該当する印字デー
タのフォントパターンをイメージメモリ13上に展開す
ると言った印字データの処理を行なう、また、CR(キ
ャリッジリターン)、LF(ラインフィード)と言った
1バイトの基本的な制御コマンドの場合、それに対応す
る印字実行や改行実行等の処理分行なう。
If this host data is print data, it processes the print data by developing the font pattern of the corresponding print data on the image memory 13, and also performs 1-byte processing such as CR (carriage return) and LF (line feed). In the case of a basic control command, the corresponding processes such as printing and line feed execution are performed.

ホストデータが印字データでも1バイトの基本的な制御
コマンドでもない場合、2バイト以上のプリンタ制御コ
マンドかコマンドエラーである。
If the host data is neither print data nor a 1-byte basic control command, it is either a 2-byte or more printer control command or a command error.

プログラム格納メモリ7上に拡張プリンタ制御コマンド
解釈プログラムがロードされているか否かを判断し、こ
のプログラムがロードされている場合は、このプログラ
ムに制御を移行し、プリンタ制御コマンドの解釈と処理
を任せる。
Determines whether an extended printer control command interpretation program is loaded on the program storage memory 7, and if this program is loaded, transfers control to this program and entrusts it with interpretation and processing of printer control commands. .

このプログラムが存在しない場合、は、自分自身の、す
なわちROM15上のプリンタ制御コマンドとして解釈
を行ない、該当するコマンドの処理を行ない、該当コマ
ンドの存在しないときは、コマンドエラーとしてエラー
処理を行なう。
If this program does not exist, it interprets it as its own printer control command, that is, on the ROM 15, and processes the corresponding command. If the corresponding command does not exist, it performs error processing as a command error.

呼び出されたプログラム格納用メモリ17上の拡張プリ
ンタ制御コマンド解釈プログラムでは、該当するコマン
ドが存在すれば、このコマンドを実行し、存在しない場
合はROM上の2バイト以上のプリンタ制御コマンド解
釈ルーチンに制御を戻す、このような構成により、単に
新しい制御コマンドを追加するだけでなく、ROM上に
供給される既存のプリンタ制御コマンドを置き換えるこ
とも可能である。
The extended printer control command interpretation program in the called program storage memory 17 executes the corresponding command if it exists, and if it does not exist, the extended printer control command interpretation program in the ROM stores 2 bytes or more. With such a configuration, it is possible not only to add new control commands, but also to replace existing printer control commands provided on the ROM.

プログラム格納用メモリ14が揮発性の場合、本プリン
タ装置の電源投入の度に拡張コマンドのダウンロードを
実行せねばならずホストの負担が大きい、したがって、
プログラム格納用メモリには、不揮発性のメモリを用い
る方が望ましい、不揮発性メモリとしては、EEPRO
Mや電池でバックアップされたRAMの他に、廉価な揮
発性RAMとハードディスクに代表される磁気記録媒体
の組合わせも利用できる。後者の場合、磁気記録媒体上
にプログラムを記憶しておき本装置の電源投入時にこの
プログラムを揮発性RAM上にロードすることにより、
実質上不揮発性メモリとして使用できる。
If the program storage memory 14 is volatile, the extension commands must be downloaded every time the printer device is powered on, which places a heavy burden on the host.
It is preferable to use non-volatile memory as the program storage memory.
In addition to RAM backed up by M or a battery, a combination of an inexpensive volatile RAM and a magnetic recording medium such as a hard disk can also be used. In the latter case, by storing the program on a magnetic recording medium and loading this program onto volatile RAM when the device is powered on,
It can be used as virtually non-volatile memory.

〔発明の効果〕 以上説明したように、本発明によれば、装置内部にプロ
グラム格納用メモリを具備しホストがら拡張プリンタ制
御プログラムをダウンロードすることにより、容易にプ
リンタ制御コマンドの拡張およびバージョンアップが可
能であり、装置内部でこの拡張プリンタ制御プログラム
の版番号を管理しているため版の新しいプログラムが古
いプログラムに置き換えられる危険の無いプリンタ装置
で通常、このプリンタ装置のホストはコンピュータや通
信端末であり、ホストの装備しているFDD装置や通信
回線を用いて、この拡張プリンタ制御プログラムを配布
することができるので、ROMカセットより安価なフロ
ッピーディスクやネットワークの回線使用料で済み経済
的である。
[Effects of the Invention] As described above, according to the present invention, printer control commands can be easily extended and upgraded by providing a program storage memory inside the device and downloading an extended printer control program from the host. This is a printer device that can manage the version number of this extended printer control program inside the device, so there is no risk of a newer version of the program being replaced by an older program.Usually, the host of this printer device is a computer or communication terminal. Since this extended printer control program can be distributed using the FDD device and communication line installed in the host, it is economical because it requires less expensive floppy disks and network line usage fees than ROM cassettes.

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

第1図は本発明の一実施例のブロック図、第2図(a)
および(b)は本実施例の動作を示すフローチャート、
第3図は従来のプリンタ装置のブロック図、第4図は従
来の他のプリンタ装置のブロック図である。 11・・・ホストインターフェース、12・・・CPU
部、13・・・イメージメモリ、14・・・フォントメ
モリ、15・ ROM、16・ l107’Oセツサ、
17・・・プログラム格納用メモリ、38・・・・RO
Mカセットホルダー 39・・・ROMカセット。 (み) 第2図 第1 ω) 第2図
Fig. 1 is a block diagram of an embodiment of the present invention, Fig. 2(a)
and (b) is a flowchart showing the operation of this embodiment,
FIG. 3 is a block diagram of a conventional printer device, and FIG. 4 is a block diagram of another conventional printer device. 11...Host interface, 12...CPU
Part, 13... Image memory, 14... Font memory, 15. ROM, 16. l107'O setter,
17...Memory for program storage, 38...RO
M cassette holder 39...ROM cassette. (see) Figure 2 1 ω) Figure 2

Claims (1)

【特許請求の範囲】 ホストから受信する印字データおよびプリンタ制御コマ
ンドを解釈し印刷を実行するプリンタ装置において、 リード・ライト可能なプログラム格納用メモリと、 前記プログラム格納用メモリに既に格納されているプロ
グラムと新たにホストから送信されるプログラムとの版
番号を比較するプログラム版番号比較手段と、 前記プログラム版番号比較手段からの信号により版番号
が更新されるときのみ、ホストから送信されるプリンタ
制御コマンド解釈プログラムを前記プログラム格納用メ
モリにロードするプリンタ制御コマンド解釈プログラム
ロード手段と、前記プリンタ制御コマンド解釈プログラ
ムに適宜制御を渡す分岐手段とを 有することを特徴とするプリンタ装置。
[Scope of Claim] A printer device that executes printing by interpreting print data and printer control commands received from a host, comprising: a readable/writable program storage memory; and a program already stored in the program storage memory. program version number comparison means for comparing the version numbers of the program and a new program transmitted from the host; and a printer control command transmitted from the host only when the version number is updated by a signal from the program version number comparison means. A printer device comprising: printer control command interpretation program loading means for loading an interpretation program into the program storage memory; and branching means for appropriately passing control to the printer control command interpretation program.
JP63268623A 1988-10-24 1988-10-24 Printer device Pending JPH02114315A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63268623A JPH02114315A (en) 1988-10-24 1988-10-24 Printer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63268623A JPH02114315A (en) 1988-10-24 1988-10-24 Printer device

Publications (1)

Publication Number Publication Date
JPH02114315A true JPH02114315A (en) 1990-04-26

Family

ID=17461117

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63268623A Pending JPH02114315A (en) 1988-10-24 1988-10-24 Printer device

Country Status (1)

Country Link
JP (1) JPH02114315A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08310059A (en) * 1995-05-24 1996-11-26 Nec Corp Printer and document creating device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08310059A (en) * 1995-05-24 1996-11-26 Nec Corp Printer and document creating device

Similar Documents

Publication Publication Date Title
JP2002297389A (en) Image forming device, installed program, computer readable recording medium recording installed program and installing method
JPH113223A (en) Information processor and information storage method
US7395357B2 (en) Information processing apparatus and computer readable medium
JPH02114315A (en) Printer device
KR100503484B1 (en) Image forming device
JPH09114614A (en) Printer
JPH11134135A (en) Printer control system
JP2593007B2 (en) Program embedded device
JPH07219865A (en) Image input device, image output device and information processor
JP2002307718A (en) Peripheral and its controlling method
JPH01204132A (en) Printer device
JPH05274157A (en) Image generating device
JP3308920B2 (en) Information processing device
JPS6215898B2 (en)
JP4366207B2 (en) PRINT CONTROL DEVICE, PRINT DEVICE, PROGRAM START METHOD, AND PROGRAM
JP2745360B2 (en) Printer device
JPH04113865A (en) Printer
JP2004259224A (en) Peripheral device
US20060101448A1 (en) Printing device
JPH06219021A (en) Image forming device
JP2004302870A (en) Write-protect method for media reader/writer
JPH01112424A (en) Electronic equipment
JP3043525B2 (en) Printing apparatus and print control method
JP2000020262A (en) Printer device
JPH0511984A (en) Printer and updating method for its program