JPS62274427A - Electronic equipment - Google Patents

Electronic equipment

Info

Publication number
JPS62274427A
JPS62274427A JP61117632A JP11763286A JPS62274427A JP S62274427 A JPS62274427 A JP S62274427A JP 61117632 A JP61117632 A JP 61117632A JP 11763286 A JP11763286 A JP 11763286A JP S62274427 A JPS62274427 A JP S62274427A
Authority
JP
Japan
Prior art keywords
macro
cartridge
information
connector
electronic device
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
JP61117632A
Other languages
Japanese (ja)
Inventor
Yutaka Murakami
裕 村上
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP61117632A priority Critical patent/JPS62274427A/en
Publication of JPS62274427A publication Critical patent/JPS62274427A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To property facilitate using plural kinds of macro information by executing the processing in accordance with macro information in a macro cartridge when a discriminating means discriminates that the macro cartridge is set but executing the processing in accordance with macro information in a macro information storage means when the discriminating means does not discriminate that the macro cartridge is set. CONSTITUTION:It is checked whether a macro cartridge 3 is set to a connector 24 or not. For example, it is discriminated by a control part 21 whether pins 36 corresponding to two prescribed terminals of the connector 24 are short- circuited by loading of the cartridge 3 or not to easily discriminate whether the cartridge 3 is set to the connector 24 or not. If the cartridge 3 is not set, incorporated macro information 22 is used. If the macro cartridge 3 is set, it is checked whether the value obtained by decoding the output of a dip switch 32 is zero or not, and a ROM 0 is selected if it is zero. That is, upper four bits of the ROM address are set to '1000' to select macro information in the ROM 0.

Description

【発明の詳細な説明】 3、発明の詳細な説明 [産業上の利用分野] 本発明は用途別マ゛クロ情報に従って処理を実行する電
子機器に関する。
Detailed Description of the Invention 3. Detailed Description of the Invention [Field of Industrial Application] The present invention relates to an electronic device that executes processing according to application-specific micro information.

[従来の技術] 例えば、電子タイプライタ又はプリンタ装置で代表され
るような電子機器には印刷のための行ピッチや文字ピッ
チ等を任意設定したり、所望のフォントを選択したり、
紙にケイ線を引いたりすることの可能なものが普及し始
めている。しかし、これら多様な用途に応じるにはそれ
相当のメモリが必要であるから、従来はこれを用途別マ
クロにまとめ、1つ1つのROMカートリッジに納めて
使用していた。即ち、これらのROMカートリッジを自
在に交換することによって用途別の要求に応゛じるもの
であった。しかし、使用者の要求は多様であるから、い
ちいち要求にあわせて多種類のROMカートリッジを用
意するのは不経済である。また、同一使用者でも使用す
るマクロが常に同じというわけではないから、別のマク
ロを必要とする度にROMカートリッジを差し換えるの
は、はなはだ不便である。
[Prior Art] For example, in electronic devices such as electronic typewriters and printers, it is possible to arbitrarily set the line pitch, character pitch, etc. for printing, select a desired font, etc.
Devices that allow you to draw lines on paper are starting to become popular. However, since a corresponding amount of memory is required to meet these various uses, conventionally, these have been grouped into application-specific macros and stored in each ROM cartridge for use. In other words, these ROM cartridges can be freely replaced to meet the needs of different uses. However, since the requirements of users are diverse, it is uneconomical to prepare many types of ROM cartridges to meet each requirement. Furthermore, even the same user does not always use the same macros, so it is very inconvenient to replace the ROM cartridge every time a different macro is needed.

[発明が解決しようとする問題点] 本発明は上述した従来技術の欠点に鑑みて成されたもの
であって、その目的とする所は、複数種のマクロを容易
に使い分けられる電子機器を提供することにある。
[Problems to be Solved by the Invention] The present invention has been made in view of the above-mentioned drawbacks of the prior art, and its purpose is to provide an electronic device that can easily use multiple types of macros. It's about doing.

[問題点を解決するための手段] 本発明の電子機器は上記問題点を解決するために、電子
機器本体に常備しているマクロ情報記憶手段と、外部の
マクロカートリッジを着脱自在に支持するコネクタ手段
と、前記コネクタ手段に装着されるべきマクロカートリ
ッジの着状態及び脱状態を判別する判別手段と、前記判
別手段がマクロカートリッジの着状態を判別していると
きは前記マクロカートリッジ内のマクロ情報に従ってを
処理を実行せしめ、かつマクロカートリッジの脱状態を
判別しているときは前記マクロ情報記憶手段のマクロ情
報に従って処理を実行せしめる制御手段を備える。
[Means for Solving the Problems] In order to solve the above-mentioned problems, the electronic device of the present invention has a macro information storage means that is always provided in the main body of the electronic device, and a connector that removably supports an external macro cartridge. means, a determining means for determining whether a macro cartridge to be attached to the connector means is attached or detached, and when the determining means is determining the attached condition of the macro cartridge, according to macro information in the macro cartridge. The apparatus further includes a control means for executing the process according to the macro information in the macro information storage means when determining whether the macro cartridge is in the removed state.

[作用] かかる構成において、電子機器本体は例えばユーザが最
もよく使用するマクロ情報を記憶したマクロ情報記憶手
段を常備する。また、外部のマクロカートリッジを着脱
自在に支持するコネクタ手段を備えており、判別手段は
前記コネクタ手段に装着されるべきマクロカートリッジ
の着状態及び脱状態を判別する。そして制御手段は前記
判別手段がマクロカートリッジの着状態を判別している
ときは前記マクロカートリッジ内のマクロ情報に従って
を処理を実行せしめ、かつマクロカートリッジの脱状態
を判別しているときは前記マクロ情報記憶手段のマクロ
情報に従ってを処理を実行せしめる。
[Function] In such a configuration, the main body of the electronic device is always equipped with a macro information storage means that stores, for example, macro information that is most often used by the user. The apparatus further includes a connector means for detachably supporting an external macro cartridge, and a determining means determines whether the macro cartridge to be attached to the connector means is attached or detached. The control means causes the determining means to execute processing according to the macro information in the macro cartridge when the determining means determines the installed state of the macro cartridge, and causes the determining means to execute the process according to the macro information in the macro cartridge when determining the dismounted state of the macro cartridge. The process is executed according to the macro information in the storage means.

[実施例] 以下、添付図面に従って本発明の実施例を詳細に説明す
る。
[Examples] Examples of the present invention will be described in detail below with reference to the accompanying drawings.

第1図は実施例のプリンタ装置のブロック構成図である
0図において、1は外部においてプリントデータ及び印
刷コマンド等を出力するホストコンピュータ、2は実施
例のプリンタ装置本体、3は複数種のマクロを格納して
いる外部のマクロカートリッジである。
FIG. 1 is a block configuration diagram of a printer device according to an embodiment. In FIG. This is an external macro cartridge containing a .

ここにおいて、マクロとは、例えば印刷のための行ピッ
チや文字ピッチ等を任意設定した情報の集まりでもよい
し、あるいは紙にケイ線を引くようなプログラムでもよ
い。
Here, the macro may be, for example, a collection of information that arbitrarily sets the line pitch, character pitch, etc. for printing, or it may be a program that draws lines on paper.

本体2は、CPU (図示せず)のプログラム実行によ
って印刷制御を掌る制御部21と、本体2に常備すべき
内蔵マクロを記憶した内蔵マクロ(ROM)22と、出
力情報を用紙上に永久可視像形成するドツトプリンタ装
置部23を備えている。
The main body 2 includes a control unit 21 that controls printing by executing programs on a CPU (not shown), a built-in macro (ROM) 22 that stores built-in macros that should always be stored in the main body 2, and a memory that stores output information permanently on paper. It is equipped with a dot printer unit 23 for forming a visible image.

また制御部21はプリントの主制御を行うためのプログ
ラムの他、例えば第4図に示すような実施例のマクロ選
択処理のプログラムを内蔵するROM211と、前記プ
ログラムを実行するセントラルブロセツシングユニット
(CPU)210とを備えている。
In addition to the program for main control of printing, the control unit 21 also includes a ROM 211 containing a program for macro selection processing of the embodiment shown in FIG. 4, and a central processing unit ( CPU) 210.

第2図はマクロカートリッジ3の外観斜視図である。図
において、32はマクロカートリッジ3内に設けた複数
マクロの選択信号を形成するためのディツブスイッチ、
31は本体2のコネクタ24に対して着脱自在に嵌号し
、前記選択信号を含む各種信号を電気的に接続するとこ
ろのコネクタである。
FIG. 2 is an external perspective view of the macro cartridge 3. FIG. In the figure, 32 is a dip switch provided in the macro cartridge 3 for forming selection signals for a plurality of macros;
A connector 31 is detachably fitted into the connector 24 of the main body 2 and is used to electrically connect various signals including the selection signal.

第3図はマクロカートリッジ3のブロック構成図である
。図において、マクロは用途に応じi fffi類ずつ
ROMチップに格納されている。これらのマクロに番号
を付せば、マクロ“0′はROM0に、マクロ″1″は
ROM 1に・・・、の如くしてマクロ“7”までが各
ROM7までに格納されている。例えば、アドレスバス
34にROM0をアドレスするデータが与えられると、
ROM0のマクロデータがデータバス33に出力される
。各ROMを選択するアドレスの上位4ビツトの組合わ
せは固有の値をもっている。例えばROM0の上位4ビ
ツトアドレスは“1000”、ROM1の上位4ビツト
アドレスは“toot”、・・・、そしてROM7の上
位4ビツトアドレスは1111″の如くである。またア
ドレスの下位Nビットは全てのROMに共通である。デ
イツブスイチ32はオペレータが何れのマクロ(ROM
n)を使用するかについて設定した情報をライン35を
介して制御部21に与える。具体的には、各スイッチの
ON10 F Fレベルはコネクタ31の対応端子を通
して与えられ、該信号は制御部21のI10ボート(図
示せず)を介してCPU内に読み取られる。
FIG. 3 is a block diagram of the macro cartridge 3. As shown in FIG. In the figure, macros are stored in a ROM chip, one by one, i fffi, depending on the purpose. If these macros are numbered, macro "0" is stored in ROM 0, macro "1" is stored in ROM 1, etc. Up to macro "7" is stored in each ROM 7. For example, , when data addressing ROM0 is given to the address bus 34,
Macro data in ROM0 is output to data bus 33. The combination of the upper 4 bits of the address that selects each ROM has a unique value. For example, the upper 4-bit address of ROM0 is "1000", the upper 4-bit address of ROM1 is "toot", etc., and the upper 4-bit address of ROM7 is 1111". Also, the lower N bits of the address are all This is common to all ROMs.
Information set regarding whether to use n) is provided to the control unit 21 via line 35. Specifically, the ON10FF level of each switch is given through the corresponding terminal of the connector 31, and the signal is read into the CPU via the I10 port (not shown) of the control unit 21.

第4図は制御部21のCPUが特定マクロを選択して実
行するまでの処理を示すフローチャートである。この処
理にはプリンタ装置の電源投入時成るいはプリンタ装置
のシステムリセットボタンが押されたような場合に入力
する。ステップS2ではマクロカートリッジ3がコネク
タ24に装着されているか否かを調べる。装着有無の状
態は、例えば制御部21より、コネクタ24の所定の2
個の端子に対応するビン36がカートリッジ3の装填に
より短絡されているか否かを判別することで容易に知る
ことができる。カートリッジ3が装着されていないとき
はステップS16に進み、内蔵マクロ22を使用する。
FIG. 4 is a flowchart showing the process by which the CPU of the control unit 21 selects and executes a specific macro. This process is input when the power of the printer is turned on or when the system reset button of the printer is pressed. In step S2, it is checked whether the macro cartridge 3 is attached to the connector 24 or not. For example, the control unit 21 determines whether the connector 24 is attached or not.
This can be easily determined by determining whether or not the bin 36 corresponding to each terminal is short-circuited due to the loading of the cartridge 3. If the cartridge 3 is not installed, the process advances to step S16 and the built-in macro 22 is used.

これが常用マクロを使用する条件であり、このためには
オペレータは車にマクロカートリッジ3を装着しなけれ
ばよい。
This is the condition for using the regular macro, and for this purpose, the operator does not need to install the macro cartridge 3 in the car.

常用マクロ22の上位4ビツトアドレスは“0nnn”
である。ここで、′n″は“On又は′1″である。尚
、ROM211との関係では、ROM211の上位4ビ
ツトアドレスは例えば“0000”〜“0100″であ
り、常用マクロ22の上位4ビツトアドレスは“010
1”〜″0111”である。ステップS20では選択し
たマクロ情報を使用し、あるいは選択したマクロを実行
して、例えばプリントの初期設定をなし、あるいはケイ
線を発生する。そしてステップS21の印字プログラム
に進み、印刷を実行する。
The upper 4-bit address of the common macro 22 is “0nnn”
It is. Here, 'n' is 'On' or '1'. In relation to the ROM 211, the upper 4 bit addresses of the ROM 211 are, for example, '0000' to '0100', and the upper 4 bit addresses of the common macro 22 are is “010
1" to "0111". In step S20, the selected macro information is used or the selected macro is executed to perform, for example, initial settings for printing or to generate a line. Then, in step S21, the printing program Proceed to and print.

また、マクロカートリッジ3が装着されているときはス
テップS3でディツブスイッチ32の出力をデコードし
た値が“0”か否かを調べる。
Further, when the macro cartridge 3 is installed, it is checked in step S3 whether the value obtained by decoding the output of the dip switch 32 is "0".

“0″ならばステップS8に進みROM0を選択する。If it is "0", the process advances to step S8 and ROM0 is selected.

即ち、ROMアドレスの上位4ビツトを“1000”と
し、ROM0のマクロを選択する。ステップS20では
、ROMoのマクロが実行され、必要な初期設定等が行
なわれた後にステップS21の印字プログラムルーチン
へと進む。
That is, the upper 4 bits of the ROM address are set to "1000" and the macro of ROM0 is selected. In step S20, the ROMo macro is executed, and after necessary initial settings and the like are performed, the process proceeds to the printing program routine in step S21.

ディップスイッチ32の出力が“O”でないときはステ
ップS4に進む。ステップS4では同様にしてディップ
スイッチ32の出力が“1”か否かを調べる。“1”な
らばステップS9に進みROM1を選択する。以後、ス
テップS15におけるディツブスイッチ32の出力が“
7”か否かを調べるところまでの処理は同様である。ス
テップS21の印字プログラムルーチンでは選択したマ
クロに従ってドツトプリンタ部23による印字の実行を
行う。
If the output of the dip switch 32 is not "O", the process advances to step S4. In step S4, it is similarly checked whether the output of the dip switch 32 is "1". If it is "1", the process advances to step S9 and ROM1 is selected. Thereafter, the output of the ditub switch 32 in step S15 is “
The processing up to the point where it is checked whether or not it is 7'' is the same. In the printing program routine of step S21, printing is executed by the dot printer section 23 according to the selected macro.

尚、本実施例ではマクロカートリッジ内のマクロをディ
ツブスイッチにより選択する場合を説明したが、本体2
内に複数のマクロを格納し、本体2に設けた選択スイッ
チにより同様の選択をすることも可能である。
In this embodiment, the case where the macro in the macro cartridge is selected by the dip switch has been explained, but the main body 2
It is also possible to store a plurality of macros in the main body 2 and make similar selections using a selection switch provided on the main body 2.

[効果] 以上述べた如く本発明によれば、マクロカートリッジを
機器本体に装着するか否か、更にはスイッチ等の簡単な
操作により、従来のようにマクロカートリッジをいちい
ち差し替えることもなく、多くのマクロの中から適当な
マクロを選択し、該選択したマクロに従って、例えば実
施例のようにドツトプリンタ部23による印字の実行を
行うことができる。
[Effects] As described above, according to the present invention, it is possible to determine whether or not to install the macro cartridge in the main body of the device, and by simply operating a switch or the like, without having to replace the macro cartridge one by one as in the past. An appropriate macro can be selected from among the macros, and printing can be performed by the dot printer section 23 according to the selected macro, for example, as in the embodiment.

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

第1図は本発明に係る実施例のプリンタ装置のブロック
構成図、 第2図はマクロカートリッジ3の外観斜視図、 第3図はマクロカートリッジ3のブロック構成図、 第4図は制御部21のCPUが特定マクロを選択して実
行するまでの処理を示すフローチャートである。 図中、1・・・ホストコンピュータ、2・・・電子機器
本体、3・・・マクロカートリッジ、21・・・制御部
、22・・・内蔵マクロ、23・・・ドツトプリンタ装
置部、220・CPU、221・ROMである。 特許出願人   キャノン株式会社 第1図 第2図 第3図
1 is a block configuration diagram of a printer device according to an embodiment of the present invention, FIG. 2 is an external perspective view of the macro cartridge 3, FIG. 3 is a block configuration diagram of the macro cartridge 3, and FIG. 4 is a block diagram of the control unit 21. 3 is a flowchart illustrating processing until the CPU selects and executes a specific macro. In the figure, 1... host computer, 2... electronic device body, 3... macro cartridge, 21... control section, 22... built-in macro, 23... dot printer device section, 220... CPU , 221・ROM. Patent applicant Canon Co., Ltd. Figure 1 Figure 2 Figure 3

Claims (2)

【特許請求の範囲】[Claims] (1)用途別マクロ情報に従って処理を実行する電子機
器において、前記電子機器本体に常備しているマクロ情
報記憶手段と、外部のマクロカートリッジを着脱自在に
支持するコネクタ手段と、前記コネクタ手段に装着され
るべきマクロカートリッジの着状態及び脱状態を判別す
る判別手段と、前記判別手段がマクロカートリッジの着
状態を判別しているときは前記マクロカートリッジ内の
マクロ情報に従って処理を実行せしめ、かつマクロカー
トリッジの脱状態を判別しているときは前記マクロ情報
記憶手段のマクロ情報に従ってを処理を実行せしめる制
御手段を備えることを特徴する電子機器。
(1) In an electronic device that executes processing according to application-specific macro information, a macro information storage means always provided in the main body of the electronic device, a connector means for removably supporting an external macro cartridge, and a connector attached to the connector means. a determining means for determining whether the macro cartridge is attached or removed; and when the determining means determines the attached condition of the macro cartridge, a process is executed according to the macro information in the macro cartridge; 1. An electronic device comprising: control means for executing processing according to the macro information in the macro information storage means when determining whether the electronic device is out of the state.
(2)マクロカートリッジ内で設定するマクロ選択信号
を読み取る読取手段を備え、判別手段がマクロカートリ
ッジの着状態を判別しているときは、制御手段は前記読
取手段で読み取ったマクロ選択信号に対応するマクロ情
報に従って処理を実行せしめることを特徴とする特許請
求の範囲第1項記載の電子機器。
(2) A reading means is provided for reading a macro selection signal set in the macro cartridge, and when the determining means determines the wearing state of the macro cartridge, the control means corresponds to the macro selection signal read by the reading means. 2. The electronic device according to claim 1, wherein the electronic device executes processing according to macro information.
JP61117632A 1986-05-23 1986-05-23 Electronic equipment Pending JPS62274427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61117632A JPS62274427A (en) 1986-05-23 1986-05-23 Electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61117632A JPS62274427A (en) 1986-05-23 1986-05-23 Electronic equipment

Publications (1)

Publication Number Publication Date
JPS62274427A true JPS62274427A (en) 1987-11-28

Family

ID=14716517

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61117632A Pending JPS62274427A (en) 1986-05-23 1986-05-23 Electronic equipment

Country Status (1)

Country Link
JP (1) JPS62274427A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55124863A (en) * 1979-03-19 1980-09-26 Toshiba Corp Print format designation system in word processor
JPS60232974A (en) * 1984-05-07 1985-11-19 Canon Inc Printer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55124863A (en) * 1979-03-19 1980-09-26 Toshiba Corp Print format designation system in word processor
JPS60232974A (en) * 1984-05-07 1985-11-19 Canon Inc Printer

Similar Documents

Publication Publication Date Title
JPS61287776A (en) Laser beam printer system
JPH0737155B2 (en) Printer
EP0205767A2 (en) Printer having a font memory
JPS6127071B2 (en)
EP0689158B1 (en) Information processing apparatus with switchable program
JPH01183729A (en) Printer containing automatic initializing function of memory
US5332320A (en) Printing apparatus with mode selection
JP2745669B2 (en) Printer
JPS60232974A (en) Printer
JPS62274427A (en) Electronic equipment
US4432056A (en) Programmable electronic computer
US5321839A (en) Electronic equipment including non-volatile memory means for storing control information
JP2593007B2 (en) Program embedded device
JPS623971A (en) Data processor with auxiliary memory
JP3817747B2 (en) Typeface information setting device
JPH0818444B2 (en) Printing equipment
JPS61179756A (en) Pattern converting apparatus
JP3097721B2 (en) Terminal printer
JP2995064B2 (en) Image forming device
JPS61179751A (en) Pattern converting apparatus
JPS61179755A (en) Pattern converting apparatus
US5742299A (en) Printing apparatus using a control program and font data from different external memory cartridges
JPH07106653B2 (en) Information processing method
JP2502619B2 (en) Electronics
JPH07106654B2 (en) Information processing method