JPH04169257A - Printer - Google Patents

Printer

Info

Publication number
JPH04169257A
JPH04169257A JP29749790A JP29749790A JPH04169257A JP H04169257 A JPH04169257 A JP H04169257A JP 29749790 A JP29749790 A JP 29749790A JP 29749790 A JP29749790 A JP 29749790A JP H04169257 A JPH04169257 A JP H04169257A
Authority
JP
Japan
Prior art keywords
memory
code memory
code
program
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
JP29749790A
Other languages
Japanese (ja)
Inventor
Takeshi Yokoe
毅 横江
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 Data Terminal Ltd
Original Assignee
NEC Data Terminal 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 NEC Data Terminal Ltd filed Critical NEC Data Terminal Ltd
Priority to JP29749790A priority Critical patent/JPH04169257A/en
Publication of JPH04169257A publication Critical patent/JPH04169257A/en
Pending legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)

Abstract

PURPOSE:To prevent destruction of command codes stored in a code memory in the case where a CPU becomes runaway by providing a central processing control section which executes program instructions, a code memory, a read only memory, a write-protect control section, an upper interface, a main memory, an image drawing memory, a display unit, a first and a second switch, and a printing mechanism. CONSTITUTION:In a normal printing process, a CPU 2 receives printing data from a host system through a host interface 8, and processes the data by executing the program stored in a code memory 5. Dot patterns are then developed in an image drawing memory 7, and the developed patterns are printed by a printing mechanism 9. When there is error in the program stored in the code memory, or in the processing of the program, and in the case where correct printing cannot be obtained thereby, the instruction codes stored in the code memory are not destructed even in the case where the CPU 2 becomes runaway because writing into the code memory is prohibited by a write-protect control section 4.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプリンタ装置に間し、特に、上位装置から送ら
れくるデータ処理および描画処理を行うためのプログラ
ムを、上位インターフェイスを介してプリンタ装置内の
コードメモリに格納し、そのプログラムによって印字処
理を行うプリンタ装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a printer device, in particular a program for performing data processing and drawing processing sent from a higher-level device, to the printer device via a higher-level interface. The present invention relates to a printer device that stores code in its internal code memory and performs print processing based on the program.

〔従来の技術〕[Conventional technology]

上位装置から送られくるデータ処理および描画処理を行
うためのプログラムを、上位インターフェイスを介して
プリンタ装置内のコードメモリに格納し、そのプログラ
ムによって印字処理を行う従来のプリンタ装置は、中央
処理制御部(CPU)によってコードメモリに格納した
プログラムを用いてデータ処理および描画処理を行い、
その結果を印字機構部において印字を行うという手段が
採用されている。
In conventional printers, a program for data processing and drawing processing sent from a host device is stored in a code memory within the printer device via a host interface, and print processing is performed according to the program. (CPU) performs data processing and drawing processing using programs stored in code memory,
A method is adopted in which the results are printed in a printing mechanism section.

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

上述したような従来のプリンタ装置は、コードメモリに
格納したプログラムが誤って書込まれていた場合や、C
PUがそのプログラムのコードを誤って読出した場合や
、プログラム自体に不具合があった場合は、正しい印字
結果が得られないばかりでなく、CPUが暴走してコー
ドメモリに対して書込み動作を行い、既にコードメモリ
内に格納しである命令コードを破壊し、プリンタ装置の
不具合を解析するためにメインメモリ内に蓄積しである
データを使用することができなくなることがあるという
欠点を有している。
Conventional printer devices such as those described above cannot be used in cases where the program stored in the code memory is written incorrectly or
If the PU reads the program code incorrectly, or if there is a problem with the program itself, not only will the correct print result not be obtained, but the CPU will go out of control and write to the code memory. This method has the disadvantage that it may destroy the instruction code already stored in the code memory, making it impossible to use the data stored in the main memory to analyze malfunctions in the printer device. .

〔課題を解決するための手段〕[Means to solve the problem]

本発明のプリンタ装置は、少なくともプログラム命令を
実行する中央処理制御部と、前記中央処理制御部がデー
タ処理および描画処理を行うためのプログラムを格納す
る書換え可能なコードメモリと、プリンタ装置の立上げ
のときに上位装置から送られてくるプログラムを前記コ
ードメモリにロードするための命令コードを格納してい
る読出し専用メモリと、前記コードメモリに対する書込
み動作を制御するライトプロテクト制御部と、前記上位
装置との間でデータの送受信を行う上位インターフェイ
スと、データ処理を行うためのメインメモリと、データ
処理結果をドツトパターンに展開するための描画メモリ
と、オペレータに対して前記プリンタ装置の状態を表示
する表示部と、前記コードメモリに対して前記プログラ
ムを格納するときに押下する第一のスイッチと、ml記
メインメモリのデータを出力印字するときに押下する第
二のスイッチと、前記描画メモリに展開した前記ドツト
パターンを印字する印字機構部とを備えている。
The printer device of the present invention includes at least a central processing control unit that executes program instructions, a rewritable code memory that stores a program for the central processing control unit to perform data processing and drawing processing, and a a read-only memory storing an instruction code for loading a program sent from a higher-level device into the code memory when an upper interface for transmitting and receiving data to and from the printer; a main memory for data processing; a drawing memory for developing data processing results into dot patterns; and a display for displaying the status of the printer to the operator. a display section, a first switch that is pressed when storing the program in the code memory, a second switch that is pressed when outputting and printing data in the ml main memory, and expansion into the drawing memory. and a printing mechanism section that prints the dot pattern.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

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

第1図に示すプリンタ装置1は、中央処理制御部(CP
U)2と、プリンタ装置1の内部のハードウェアの診断
および立上げ処理を行うためのプログラムを格納してい
る読出し専用メモリ(ROM)3と、上位インターフェ
イス8から送られてきたデータを処理して描画するため
のプログラムを格納する書換え可能なコードメモリ5と
、コードメモリ5に対する書込みを動作を制御するライ
トプロテクト制御部4と、データ処理および描画処理を
行うときに使用するメインメモリ6と、データ処理後に
ドツトパターンに展開するための描画メモリ7と、プリ
ンタ装置1の内部状態を表示してオペレータに知うせる
ための表示部10と、プリンタ装置1の立上げのとき、
オペレータがデータ処理用プログラムをコードメモリ5
に格納するための第一のスイッチ11と、メインメモリ
6に保存しであるデータを出力して印字するときに押下
する第二のスイッチ12と、描画メモリ7に展開したド
ツトパターンを印字する印字W1楕部9とを備えている
The printer device 1 shown in FIG.
U) 2, a read-only memory (ROM) 3 that stores programs for diagnosing and starting up the internal hardware of the printer device 1, and a read-only memory (ROM) 3 that processes data sent from the host interface 8. a rewritable code memory 5 that stores a program for drawing, a write protect control unit 4 that controls writing to the code memory 5, and a main memory 6 that is used when performing data processing and drawing processing; A drawing memory 7 for developing into a dot pattern after data processing, a display unit 10 for displaying the internal state of the printer device 1 to inform the operator, and when starting up the printer device 1,
The operator stores the data processing program in the code memory 5.
a first switch 11 for storing data in the main memory 6, a second switch 12 that is pressed when outputting and printing data stored in the main memory 6, and a printing switch 12 for printing the dot pattern developed in the drawing memory 7. W1 ellipse 9.

次に、上述のように構成したプリンタ装置の動作に次い
て説明する。
Next, the operation of the printer device configured as described above will be explained.

まず、オペレータは、電源投入後第一のスイッチ11を
押下することにより、上位インターフェイス8を介して
から上位装置から送られてくるデータ処理および描画処
理に必要なプログラムをプリンタ装置1のコードメモリ
5に書込む(ロードする)、このとき、ライトプロテク
ト制御部4は、オペレータがスイッチ11を押下したこ
とによってコードメモリ5に対する書込み動作を許可す
る。プログラムのロードのとき、CPU2は、ROM3
から立上げ処理を′行うためのプログラムを読出し、上
位インターフェイス8を介して上位装置との通信を行い
、データ処理および描画処理に必要なプログラムを受取
ってコードメモリ5に格納する。プログラムのロードが
終了すると、プリンタ装置1は、表示部10にそのこと
を表示してオペレータに知らせる。このときオペレータ
は、スイッチ11を再度押下して通常の印字処理を行う
ことができるようにセットする。このスイッチ11の再
度の押下により、ライトプロテクト制御部4は、コード
メモリ5に対する書込み動作を禁止する。
First, by pressing the first switch 11 after turning on the power, the operator transfers the programs necessary for data processing and drawing processing sent from the host device via the host interface 8 to the code memory 5 of the printer device 1. At this time, the write protection control unit 4 permits the write operation to the code memory 5 when the operator presses the switch 11. When loading a program, CPU2
A program for performing start-up processing is read from , communication is performed with the host device via the host interface 8 , and programs necessary for data processing and drawing processing are received and stored in the code memory 5 . When the loading of the program is completed, the printer device 1 displays this on the display unit 10 to notify the operator. At this time, the operator presses the switch 11 again to set it so that normal printing processing can be performed. By pressing the switch 11 again, the write protect control section 4 prohibits the write operation to the code memory 5.

通常の印字処理においては、CPU2は、上位インター
フェイス8を介して上位装置から印字データを受取り、
コードメモリ5内に格納したプログラムを実行してデー
タ処理を行い、描画メモリ7にドツトパターンを展開し
、それを印字機構部9において印字する。
In normal printing processing, the CPU 2 receives print data from the host device via the host interface 8,
A program stored in the code memory 5 is executed to process data, develop a dot pattern in the drawing memory 7, and print it in the printing mechanism section 9.

コードメモリに格納した10グラムに誤まりがあったり
、プログラム処理に誤まりがあって正しい印字結果が得
られない場合に、たとえCPU2が暴走しても、ライト
プロテクト制御部4がコードメモリ5に対する書込み動
作を禁止しているため、コードメモリ内に格納しである
命令コードを破壊することはない、このとき第二のスイ
ッチ12を押下することによって、メインメモリ6に保
存しであるデータを出力して印字することができ、これ
によって不正印字の原因を解明することが可能となる。
If there is an error in the 10 grams stored in the code memory, or if there is an error in the program processing and correct printing results cannot be obtained, the write protection control unit 4 protects the code memory 5 even if the CPU 2 goes out of control. Since the write operation is prohibited, the instruction code stored in the code memory will not be destroyed. At this time, by pressing the second switch 12, the data stored in the main memory 6 will be output. This makes it possible to determine the cause of fraudulent printing.

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

以上説明したように、本発明のプリンタ装置は、データ
処理および描画処理を行うためのプログラムを格納する
コードメモリに対して、上位装置から送られてきたプロ
グラムを書込むときのみライトプロテクト制御部によっ
て書込み動作を許可することにより、CPUが暴走した
ときに、コードメモリ内に格納しである命令コードを破
壊するのを防止することができるという効果があり、ま
た、メインメモリに保存しであるデータを出力して印字
することによって不正印字の原因を解明することが可能
となるという効果がある6
As explained above, in the printer device of the present invention, the write protection control unit protects the code memory that stores programs for data processing and drawing processing only when writing a program sent from a host device. Enabling write operations has the effect of preventing instruction codes stored in code memory from being destroyed when the CPU goes out of control, and also prevents data stored in main memory from being destroyed. By outputting and printing, it is possible to determine the cause of incorrect printing6.

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

第1図は本発明の一実施例を示すブロック図である。 1・・・・・プリンタ装置、2・・・・・・中央処理制
御部(CPU)、3・・・・・・・・・読出し専用メモ
リ(ROM)、4−・・6ライトプロテクト制御部、5
・・・・・・コードメモリ、6・・・・・・メインメモ
リ、7・−・・・・描画メモリ、8・−・・・・上位イ
ンターフェイス、9・・・・・・印字機構部、10・・
・・・・表示部、11・12・・・・・・スイッチ。
FIG. 1 is a block diagram showing one embodiment of the present invention. 1...Printer device, 2...Central processing control unit (CPU), 3...Read-only memory (ROM), 4-...6 Write protection control unit ,5
...... Code memory, 6... Main memory, 7... Drawing memory, 8... Upper interface, 9... Printing mechanism section, 10...
...Display section, 11/12...Switch.

Claims (1)

【特許請求の範囲】[Claims] 少なくともプログラム命令を実行する中央処理制御部と
、前記中央処理制御部がデータ処理および描画処理を行
うためのプログラムを格納する書換え可能なコードメモ
リと、プリンタ装置の立上げのときに上位装置から送ら
れてくるプログラムを前記コードメモリにロードするた
めの命令コードを格納している読出し専用メモリと、前
記コードメモリに対する書込み動作を制御するライトプ
ロテクト制御部と、前記上位装置との間でデータの送受
信を行う上位インターフェイスと、データ処理を行うた
めのメインメモリと、データ処理結果をドットパターン
に展開するための描画メモリと、オペレータに対して前
記プリンタ装置の状態を表示する表示部と、前記コード
メモリに対して前記プログラムを格納するときに押下す
る第一のスイッチと、前記メインメモリのデータを出力
印字するときに押下する第二のスイッチと、前記描画メ
モリに展開した前記ドットパターンを印字する印字機構
部とを備えることを特徴とするプリンタ装置。
At least a central processing control unit that executes program instructions; a rewritable code memory that stores programs for the central processing control unit to perform data processing and drawing processing; data transmission and reception between a read-only memory storing an instruction code for loading an incoming program into the code memory, a write protection control unit that controls write operations to the code memory, and the host device; a main memory for data processing, a drawing memory for developing data processing results into dot patterns, a display section for displaying the status of the printer device to an operator, and the code memory. a first switch that is pressed when storing the program, a second switch that is pressed when outputting and printing the data in the main memory, and a print that prints the dot pattern developed in the drawing memory. A printer device comprising: a mechanism section.
JP29749790A 1990-11-02 1990-11-02 Printer Pending JPH04169257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29749790A JPH04169257A (en) 1990-11-02 1990-11-02 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29749790A JPH04169257A (en) 1990-11-02 1990-11-02 Printer

Publications (1)

Publication Number Publication Date
JPH04169257A true JPH04169257A (en) 1992-06-17

Family

ID=17847275

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29749790A Pending JPH04169257A (en) 1990-11-02 1990-11-02 Printer

Country Status (1)

Country Link
JP (1) JPH04169257A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010080685A (en) * 1999-10-04 2001-08-22 구사마 사부로 Write prohibition circuit, semiconductor integrated circuit containing the same, ink cartridge having this semiconductor integrated circuit, and ink jet recorder
US6734992B1 (en) * 1998-12-28 2004-05-11 Canon Kabushiki Kaisha Image processing apparatus, image processing method and memory medium
US11041811B2 (en) 2008-10-27 2021-06-22 Genalyte, Inc. Biosensors based on optical probing and sensing

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6734992B1 (en) * 1998-12-28 2004-05-11 Canon Kabushiki Kaisha Image processing apparatus, image processing method and memory medium
KR20010080685A (en) * 1999-10-04 2001-08-22 구사마 사부로 Write prohibition circuit, semiconductor integrated circuit containing the same, ink cartridge having this semiconductor integrated circuit, and ink jet recorder
US11041811B2 (en) 2008-10-27 2021-06-22 Genalyte, Inc. Biosensors based on optical probing and sensing

Similar Documents

Publication Publication Date Title
JPS5856143B2 (en) Terminal device test program startup method
JPH04169257A (en) Printer
JP2002254768A (en) Method for controlling image recording apparatus and image recording apparatus
JP3702546B2 (en) Multifunctional peripheral device and storage medium
JP2002019236A (en) Image processor and method of controlling the same and storage medium
JP2716087B2 (en) Output device
JP4400097B2 (en) Printing apparatus, printing control method, program, and recording medium
JPH02289374A (en) Printer
JPH11170668A (en) Image formation apparatus
JPS62102330A (en) Printing device
JP2645165B2 (en) Slip printer
JP2811984B2 (en) Vector overlay restart method
JPH09188010A (en) Image processing apparatus
JPH05221096A (en) Printing device
JPH11348391A (en) Printer controller
JPH11306006A (en) Peripheral device and storage medium
JPH0664252A (en) Printing equipment having emulation mode
JPH09231032A (en) Network interface card for printer
JP2001249738A (en) Electronic equipment, reset control method and storage medium
JPH11191048A (en) Print controller, data processing method in print controller and storage medium storing computer readable program
JPH068534A (en) Printer
JPS63193226A (en) Printing device with manual operation printing function
JPH04290763A (en) Printing device
JPH1139106A (en) Printing controller, printing control method and computer-readable storage medium stored with program
JPH04169925A (en) Vector overlay print control system