JPH06333455A - Method for assigning function of operation switch - Google Patents

Method for assigning function of operation switch

Info

Publication number
JPH06333455A
JPH06333455A JP14683593A JP14683593A JPH06333455A JP H06333455 A JPH06333455 A JP H06333455A JP 14683593 A JP14683593 A JP 14683593A JP 14683593 A JP14683593 A JP 14683593A JP H06333455 A JPH06333455 A JP H06333455A
Authority
JP
Japan
Prior art keywords
switch
function
operation switch
assigned
printer 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
JP14683593A
Other languages
Japanese (ja)
Inventor
Shunichi Suzuki
俊一 鈴木
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.)
Shinko Seisakusho KK
Original Assignee
Shinko Seisakusho KK
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 Shinko Seisakusho KK filed Critical Shinko Seisakusho KK
Priority to JP14683593A priority Critical patent/JPH06333455A/en
Publication of JPH06333455A publication Critical patent/JPH06333455A/en
Pending legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Keying Circuit Devices (AREA)

Abstract

PURPOSE:To reduce the number of operation switch, and to prevent the generation of operation error on the basis of the combination of ON/OFF and the operation time of a power switch and an operation switch. CONSTITUTION:A power switch and an operation switch are provided in an electronic equipment. At the time when the power switch is turned on, a judgement that the operation switch is under the operation condition or not is performed (S1). In the case of non-operation condition, the electronic equipment is set at an ordinary mode, and a first function (for example; reset function) is assigned to the operation switch. In the case of the operation condition, the electronic equipment is set at a special mode, and a second function (for example; damping function) is assigned to the operation switch (S6). Furthermore, in this case, a judgement that the operation switch is operated for a predetermined time or not is performed (S9). In the case where the operation time exceeds the predetermined time, the second function is assigned to the operation switch.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、電子機器の操作スイッ
チに複数の機能を割り当てるとともに、その誤操作を防
止する操作スイッチの機能割り当て方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for assigning a plurality of functions to an operation switch of an electronic device and preventing the erroneous operation of the operation switch.

【0002】[0002]

【従来の技術】一般に、電子機器において何等かの障害
が発生した場合、デバッグ作業のために原因解析を行
う。例えば、ホストコンピュータとの間で通信を行うプ
リンタ装置を例にとって説明する。ホストコンピュータ
との間での通信動作中にプリンタ装置に何らかの障害が
発生したとする。このような通信障害の原因を調査する
ためには、上記障害が発生した時点以前にこのプリンタ
装置に対して送信された通信データの履歴であるダンプ
データを取得し、そのデータを解析する必要がある。こ
のようなデバッグ作業のためのデータ解析を行うにあた
っては、一般的には、ダンプデータを印字出力させる機
能を割り当てられた操作スイッチを操作すればよい。
2. Description of the Related Art Generally, when some failure occurs in an electronic device, cause analysis is performed for debugging work. For example, a printer device that communicates with a host computer will be described as an example. It is assumed that some trouble occurs in the printer device during the communication operation with the host computer. In order to investigate the cause of such a communication failure, it is necessary to obtain dump data, which is a history of communication data transmitted to this printer device before the time when the failure occurs, and analyze the data. is there. In performing data analysis for such debugging work, generally, an operation switch assigned with a function for printing and outputting dump data may be operated.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、このよ
うなデバッグ作業は、製品の開発段階やソフトウェアの
テスト段階で行われることが一般的であり、エンドユー
ザが電子機器を使用する段階において、上述したような
デバッグ作業などの特殊作業が行われることはまれであ
る。したがって、ダンプスイッチなどの使用頻度の少な
い特殊な操作スイッチが電子機器の操作部に設けられて
いると、操作部が複雑化して使い勝手が悪くなるばかり
でなく、誤操作を招く可能性があった。
However, such debugging work is generally performed at the product development stage or the software test stage, and it has been described above when the end user uses the electronic device. Special work such as debugging work is rarely performed. Therefore, if a special operation switch, such as a dump switch, which is rarely used, is provided in the operation unit of the electronic device, the operation unit becomes complicated and the usability is deteriorated, and an erroneous operation may be caused.

【0004】また、使用頻度の少ない操作スイッチを設
けることによって、操作部のスペースが増大すること
は、電子機器を小型化にする上でも好ましくないことで
あった。
Further, the increase of the space of the operation portion by providing the operation switch which is not frequently used is not preferable for downsizing the electronic equipment.

【0005】本発明は上記の点に鑑み、誤操作を防止す
るとともに使用頻度の少ない操作スイッチの数を減らす
ことが可能な操作スイッチの機能割り当て方法を提供す
ることを目的とする。
In view of the above points, an object of the present invention is to provide a method of assigning a function of an operation switch which can prevent an erroneous operation and reduce the number of operation switches which are rarely used.

【0006】[0006]

【課題を解決するための手段】前記目的を達成するため
に、本発明では、電源スイッチ及び操作スイッチを有す
る電子機器において、電源スイッチがON状態に操作さ
れた時点で操作スイッチが操作状態にあるか非操作状態
にあるかを判定し、操作スイッチが非操作状態にあると
判定したときは、電子機器を通常モードに設定するとと
もに、操作スイッチに第1機能を割り当て、操作スイッ
チが操作状態であると判定したときは、電子機器を特殊
モードに設定するとともに、操作スイッチに第1機能と
異なる第2機能を割り当て、電子機器が前記特殊モード
に設定されている場合に、前記操作スイッチが所定時間
以上操作されたか否かを判定し、操作スイッチが所定時
間以上操作されたと判定したときは、第2機能を有効と
することを特徴としている。
To achieve the above object, according to the present invention, in an electronic device having a power switch and an operation switch, the operation switch is in the operation state when the power switch is operated in the ON state. When it is determined that the operation switch is in the non-operation state, the electronic device is set to the normal mode, the first function is assigned to the operation switch, and the operation switch is in the operation state. If it is determined that the electronic device is set to the special mode, the operation switch is assigned the second function different from the first function, and the operation switch is set to the predetermined mode when the electronic device is set to the special mode. When it is determined whether the operation switch has been operated for a predetermined time or more and it is determined that the operation switch has been operated for a predetermined time or more, the second function is enabled. To have.

【0007】[0007]

【作用】本発明では、電子機器の電源スイッチをON状
態に設定する時点で操作スイッチを操作状態にしておく
ことにより、この電子機器が特殊モードに設定されて操
作スイッチに第1機能とは別の第2機能が割り当てられ
る。
According to the present invention, when the power switch of the electronic device is set to the ON state, the operating switch is kept in the operating state so that the electronic device is set to the special mode and the operating switch has a function different from the first function. Second function is assigned.

【0008】そして、電子機器が前記特殊モードに設定
されている場合には、操作スイッチが所定時間以上操作
されたときにのみ第2機能を有効となるので、操作スイ
ッチが所定時間以上操作されないときには第2機能が有
効とならない。
When the electronic device is set to the special mode, the second function becomes effective only when the operation switch is operated for a predetermined time or more, so that when the operation switch is not operated for a predetermined time or more. The second function is not effective.

【0009】[0009]

【実施例】以下に、ホストコンピュータとの間で双方向
のデータ通信を行うプリンタ装置に、本発明の操作スイ
ッチの機能割り当て方法を適用した場合の実施例につい
て、図面を参照して説明する。図1はプリンタ装置の概
略構成を示すブロック図、図2はプリンタ装置の操作部
の一例を示す斜視図、図3〜図6はプリンタ装置の動作
フローチャートである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the operation switch function allocation method of the present invention is applied to a printer apparatus for bidirectional data communication with a host computer will be described below with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration of a printer device, FIG. 2 is a perspective view showing an example of an operation unit of the printer device, and FIGS. 3 to 6 are operation flowcharts of the printer device.

【0010】まず、図1のブロック図を参照してプリン
タ装置の構成について説明する。ホストコンピュータ1
0とプリンタ装置16とは、データ線14を含む入出力
インターフェース12を介して接続され、通信データの
やり取りを行う。
First, the configuration of the printer device will be described with reference to the block diagram of FIG. Host computer 1
0 and the printer device 16 are connected via the input / output interface 12 including the data line 14, and exchange communication data.

【0011】上記通信データとしては、次の2種類があ
る。すなわち、1つは、ホストコンピュータ10からプ
リンタ装置16に送信される通信データであって、これ
は、印字データを示す印字コードと、プリンタ装置16
に対して与えられる制御情報を示す制御コードとからな
る。
There are the following two types of communication data. That is, one is communication data transmitted from the host computer 10 to the printer device 16, which includes a print code indicating print data and the printer device 16.
And a control code indicating control information given to.

【0012】もう1つは、プリンタ装置16からホスト
コンピュータ10に送信される通信データであって、こ
れは、上記制御コードが応答要求命令を含んでいたとき
に、これに応じて送信される応答データである。この応
答データは、例えばプリンタ装置16のエラー状況のデ
ータなどである。
The other is communication data transmitted from the printer device 16 to the host computer 10, which is a response transmitted when the control code includes a response request command. The data. This response data is, for example, error status data of the printer device 16.

【0013】プリンタ装置16の構成要素は以下のとお
りである。すなわち、18は全体の制御動作を行うCP
Uであり、20は制御プログラムなどのファームウェア
を格納するプログラムROMであり、22は通信データ
の受信制御を行うデータ受信制御部であり、24はホス
トコンピュータ10から受信した通信データを順次格納
する受信メモリ(図示せず)を含むRAMであり、26
は印字動作を行うメカ制御部であり、28は操作部であ
る。BはCPU18と上述の各構成要素とを接続するバ
スである。
The components of the printer device 16 are as follows. That is, 18 is a CP that performs the entire control operation.
U is a program ROM that stores firmware such as a control program, 22 is a data reception control unit that controls reception of communication data, and 24 is a reception that sequentially stores communication data received from the host computer 10. A RAM including a memory (not shown),
Is a mechanical control unit that performs a printing operation, and 28 is an operation unit. B is a bus that connects the CPU 18 and the above-described components.

【0014】なお、RAM24に含まれる受信メモリ
は、例えば、所定記憶容量のリングバッファで構成され
ており、処理済み及び未処理の通信データを格納してい
るものである。したがって、何らかの障害が発生した時
点で、この受信メモリの内容をダンプ出力して処理済み
の通信データ内容を見れば、通信動作の履歴を解析する
ことが可能である。
The receiving memory included in the RAM 24 is composed of, for example, a ring buffer having a predetermined storage capacity, and stores processed and unprocessed communication data. Therefore, when some trouble occurs, it is possible to analyze the history of the communication operation by dumping the contents of the reception memory and viewing the contents of the processed communication data.

【0015】操作部28は、図2の斜視図に示すように
プリンタ装置16の電源の投入及び切断の機能を割り当
てられた電源スイッチ28aと、紙詰まりなどのエラー
発生時においてそのエラーを解除するリセット動作をプ
リンタ装置16に行わせるリセット機能を割り当てられ
たリセットスイッチ(操作スイッチ)28bとを含む。
また、操作部28は、プリンタ装置10の動作状態、例
えば、電源ON状態、レディ状態、エラー状態などを表
示するためのモニタランプ28c,28d,28eも具
備している。
As shown in the perspective view of FIG. 2, the operation unit 28 has a power switch 28a assigned with the function of turning on and off the power of the printer device 16, and cancels the error when an error such as a paper jam occurs. A reset switch (operation switch) 28b assigned with a reset function for causing the printer device 16 to perform a reset operation is included.
The operation unit 28 also includes monitor lamps 28c, 28d, and 28e for displaying an operating state of the printer device 10, for example, a power ON state, a ready state, and an error state.

【0016】次に、このようなプリンタ装置16の動作
を図3〜図6のフローチャートを参照して説明する。図
3は主要動作の流れを示すメインフロー、図4は通常処
理ルーチンのフロー、図5はリセット処理ルーチンのフ
ロー、図6はダンプ処理ルーチンのフローである。
Next, the operation of the printer device 16 will be described with reference to the flowcharts of FIGS. 3 is a main flow showing the flow of main operations, FIG. 4 is a flow of a normal processing routine, FIG. 5 is a flow of a reset processing routine, and FIG. 6 is a flow of a dump processing routine.

【0017】まず、図3のフローチャートを参照して主
要動作を説明する。電源スイッチ28aのONによりプ
ログラムが起動し、まず、リセットスイッチ(操作スイ
ッチ)28bがONされている(操作状態)か、否(非
操作状態)かを判定する(S1)。電源スイッチ28a
のON時にリセットスイッチ28bがONされていない
場合は、このプリンタ装置16を通常モードに設定する
とともに、リセットスイッチ(操作スイッチ)28bに
リセット機能(第1機能)を割り当てる(S2)。次
に、リセットスイッチ(操作スイッチ)28bがONさ
れたか否かを判定する(S3)、ONされなければ、後
述するようにホストコンピュータ10から受信した通信
データに基づいた動作を行う図4の通常処理ルーチンを
実行する(S4)。通常モード設定中にリセットスイッ
チ28bがONされた場合は、後述するように排紙動作
などを行う図5のリセット処理ルーチンを実行する(S
5)。通常処理及びリセット処理いずれが終了した場合
も、ステップS3に戻り、リセットスイッチ28bがO
Nされなければ、次の通信データの受信を待機する状態
に保持される。
First, the main operation will be described with reference to the flowchart of FIG. The program is started by turning on the power switch 28a, and first, it is determined whether the reset switch (operation switch) 28b is turned on (operation state) or not (non-operation state) (S1). Power switch 28a
If the reset switch 28b is not turned on at the time of ON, the printer device 16 is set to the normal mode and the reset function (first switch) is assigned to the reset switch (operation switch) 28b (S2). Next, it is determined whether or not the reset switch (operation switch) 28b is turned on (S3), and if not turned on, an operation based on communication data received from the host computer 10 is performed as will be described later. A processing routine is executed (S4). When the reset switch 28b is turned on while the normal mode is set, the reset processing routine of FIG. 5 for performing a paper discharge operation or the like is executed as described later (S).
5). Regardless of whether the normal process or the reset process is completed, the process returns to step S3 and the reset switch 28b is turned off
If not, the state of holding the next communication data is held.

【0018】一方、ステップS1において、電源スイッ
チ28aのON時にリセットスイッチ28bがONされ
ていれば、このプリンタ装置16を特殊モードに設定す
るとともに、リセットスイッチ28bにダンプ機能(第
2機能)を割り当てる(S6)。次に、リセットスイッ
チ28bがONされたか否かを判定し(S7)、ONさ
れなければ、後述する図4の通常処理ルーチンを実行す
る(S8)。この通常処理ルーチンの実行が完了する
と、ステップS7に戻り、リセットスイッチ28bがO
Nされたか否かを判定する。リセットスイッチ28bが
ONされたときは、このリセットスイッチ28bが所定
時間以上操作されたか否かを判定する(S9)。上記所
定時間は、正常操作と誤操作とを区別できる時間、例え
ば、5秒程度に設定しておけばよい。所定時間以上操作
されたときは、ダンプ機能を有効として、後述する通信
データをダンプデータとして印字出力する図6のダンプ
処理ルーチンを実行する(S10)。所定時間以上操作
されなかった場合は、前述したステップS5と同様のリ
セット処理ルーチンを実行する(S11)。
On the other hand, in step S1, if the reset switch 28b is turned on when the power switch 28a is turned on, the printer device 16 is set to the special mode and the reset switch 28b is assigned the dump function (second function). (S6). Next, it is determined whether or not the reset switch 28b is turned on (S7), and if it is not turned on, a normal processing routine of FIG. 4 described later is executed (S8). When the execution of this normal processing routine is completed, the process returns to step S7 and the reset switch 28b is turned off.
It is determined whether N has been done. When the reset switch 28b is turned on, it is determined whether the reset switch 28b has been operated for a predetermined time or longer (S9). The predetermined time may be set to a time that allows normal operation and erroneous operation to be distinguished, for example, about 5 seconds. When the operation is performed for a predetermined time or more, the dump function is enabled, and the dump processing routine of FIG. 6 that prints out communication data described below as dump data is executed (S10). When the operation has not been performed for the predetermined time or more, the reset processing routine similar to the above-described step S5 is executed (S11).

【0019】次に、図4のフローチャートを参照して、
前述したステップS4の通常処理ルーチンの動作を説明
する。まず、通信データを受信したか否かを判定し(S
50)、受信していなければ、受信するまで判定を反復
する。受信したときは、受信した通信データを受信メモ
リに格納する(S51)。次に、格納した通信データを
受信メモリから読み出し(S52)、読み出した通信デ
ータに応答要求命令が含まれているか否かを判定し(S
53)、含まれていなければ、読み出した通信データに
含まれいている印字コード及び制御コードに従って通常
の印字動作及び制御動作を実行して(S54)、図3の
メインフローに戻る。一方、読み出した通信データに応
答要求データが含まれいている場合は、上記応答要求デ
ータに対応する応答データをホストコンピュータ10に
送信して(S55)、図3のメインフローに戻る。図1
で前述したように、通信データに含まれる応答要求命令
としては、例えば、プリンタ装置16のエラー状況を問
い合わせるものであり、プリンタ装置16からはこの命
令に対応してエラーの有無を示す応答データを送信する
ようになっている。
Next, referring to the flow chart of FIG.
The operation of the normal processing routine of step S4 described above will be described. First, it is determined whether communication data has been received (S
50) If not received, the determination is repeated until it is received. When received, the received communication data is stored in the reception memory (S51). Next, the stored communication data is read from the reception memory (S52), and it is determined whether the read communication data includes a response request command (S52).
53) If not included, the normal print operation and control operation are executed according to the print code and control code included in the read communication data (S54), and the process returns to the main flow of FIG. On the other hand, when the read communication data includes the response request data, the response data corresponding to the response request data is transmitted to the host computer 10 (S55), and the process returns to the main flow of FIG. Figure 1
As described above, the response request command included in the communication data is, for example, an inquiry about the error status of the printer device 16, and the printer device 16 sends response data indicating the presence or absence of an error in response to this command. It is supposed to be sent.

【0020】さらに、図5のフローチャートを参照して
上記ステップS5のリセット処理ルーチンの動作を説明
する。まず、紙詰まりなどの原因によって発生したエラ
ー状態から正常状態に復帰するために、詰まっている用
紙を排紙する(S60)。次に、エラー状態を表示して
いるモニタランプ28eなどを正常状態に復帰させてエ
ラーを解除し(S61)、図3のメインフローに戻る。
Further, the operation of the reset processing routine of step S5 will be described with reference to the flowchart of FIG. First, in order to recover from the error state caused by the paper jam or the like to the normal state, the jammed paper is discharged (S60). Next, the monitor lamp 28e or the like displaying the error state is returned to the normal state to cancel the error (S61), and the process returns to the main flow of FIG.

【0021】次に、図6のフローチャートを参照して上
記ステップS10のダンプ処理ルーチンの動作を説明す
る。まず、プリンタ装置16にセットされていた用紙を
排出すると共に、モニタランプ28c,28dをダンプ
動作状態を示す点滅表示にするなどの初期設定する(S
70)。次に、ダンプデータを印字するための用紙を吸
入する(S71)。続いて、受信メモリ24からそれに
格納されている通信データを読み出して16進数データ
にヘキサ変換してメカ制御部26に出力し、その後は、
図3のメインフローに戻る。
Next, the operation of the dump processing routine of step S10 will be described with reference to the flowchart of FIG. First, the paper set in the printer device 16 is ejected, and the monitor lamps 28c and 28d are initialized such that the monitor lamps 28c and 28d are made to blink to indicate the dump operation state (S).
70). Next, the paper for printing the dump data is inhaled (S71). Then, the communication data stored therein is read out from the reception memory 24, converted into hexadecimal data in hex, and output to the mechanical control unit 26.
Returning to the main flow of FIG.

【0022】上述の実施例によれば、プリンタ装置16
を通常モード及び特殊モードに設定することにより、リ
セットスイッチ(操作スイッチ)28bにリセット機能
(第1機能)及びダンプ機能(第2機能)を割り当てて
いる。すなわち、1つのリセットスイッチ28bに2種
類の機能を割り当てることができる。このため、ダンプ
機能のための操作スイッチを別に設ける必要がなく、操
作部28のスペースを節約できる。
According to the embodiment described above, the printer device 16
By setting the normal mode and the special mode, the reset function (first switch) and the dump function (second function) are assigned to the reset switch (operation switch) 28b. That is, two types of functions can be assigned to one reset switch 28b. Therefore, it is not necessary to separately provide an operation switch for the dump function, and the space of the operation unit 28 can be saved.

【0023】また、プリンタ装置16を特殊モードに設
定するためには、電源スイッチ28aとリセットスイッ
チ28bとの両方を同時に操作する必要があるため、誤
操作しにくい。したがって、エンドユーザが使用するこ
との少ないダンプ機能を第2機能に設定しておくことに
より、誤ってダンプ操作を実行してしまうことを防止で
きる。
Further, in order to set the printer device 16 in the special mode, it is necessary to operate both the power switch 28a and the reset switch 28b at the same time, and therefore it is difficult to make an erroneous operation. Therefore, by setting the dump function that the end user rarely uses as the second function, it is possible to prevent the dump operation from being accidentally executed.

【0024】さらに、プリンタ装置16が特殊モードに
設定されている場合、リセットスイッチ28bが所定時
間以上操作されたときにのみダンプ機能を有効とする。
したがって、誤ってリセットスイッチ28bに触れてし
まったとしても、リセットスイッチ28bが所定時間以
上操作されなければ、ダンプ機能が有効とならないの
で、誤操作を防止できる。
Further, when the printer device 16 is set to the special mode, the dump function is enabled only when the reset switch 28b is operated for a predetermined time or longer.
Therefore, even if the reset switch 28b is erroneously touched, the dump function is not effective unless the reset switch 28b is operated for a predetermined time or longer, so erroneous operation can be prevented.

【0025】なお、本実施例においては、電子機器とし
てプリンタ装置を例にとって説明を行ったが、これに限
定されるものではなく、電源スイッチ及び操作スイッチ
を有する電子機器において、広く適用できることはいう
までもない。
In this embodiment, the printer has been described as an example of the electronic device, but the present invention is not limited to this, and it can be widely applied to electronic devices having a power switch and an operation switch. There is no end.

【0026】[0026]

【発明の効果】以上述べたように本発明によれば、電源
スイッチと一つの操作スイッチのON,OFFの組み合
わせ及び操作時間によって、二つのスイッチのみで、電
子機器を通常モード及び特殊モードに設定することがで
きるとともに、操作スイッチに第1機能及び第2機能を
割り当てることができる。したがって、電子機器の操作
部に設ける操作スイッチの数を減らすことができるの
で、操作部のスペースを節約して電子機器を小型化する
ことができる。
As described above, according to the present invention, the electronic device can be set to the normal mode and the special mode with only two switches depending on the combination of the power switch and the ON / OFF of one operation switch and the operation time. The operation switch can be assigned the first function and the second function. Therefore, the number of operation switches provided in the operation unit of the electronic device can be reduced, so that the space of the operation unit can be saved and the electronic device can be downsized.

【0027】また、電子機器を特殊モードに設定するた
めには、電源スイッチと操作との両方を同時に操作する
必要があるため、誤操作しにくい。したがって、エンド
ユーザが使用することの少ない特殊機能を第2機能に設
定しておくことにより、誤操作を防止できる。
Further, in order to set the electronic device to the special mode, it is necessary to operate both the power switch and the operation at the same time, and thus it is difficult to make an erroneous operation. Therefore, an erroneous operation can be prevented by setting a special function that the end user rarely uses as the second function.

【0028】さらに、電子機器が特殊モードに設定され
ている場合、操作スイッチが所定時間以上操作されたと
きにのみ第2機能を有効とする。したがって、誤って操
作スイッチに触れてしまっても、操作スイッチが所定時
間以上操作されないときは、第2機能が有効とならない
ので、誤操作を防止できる。
Furthermore, when the electronic device is set to the special mode, the second function is enabled only when the operation switch is operated for a predetermined time or longer. Therefore, even if the operation switch is touched by mistake, if the operation switch is not operated for a predetermined time or longer, the second function is not effective, so that the operation error can be prevented.

【図面の簡単な説明】[Brief description of drawings]

【図1】プリンタ装置の概略構成を示すブロック図であ
る。
FIG. 1 is a block diagram illustrating a schematic configuration of a printer device.

【図2】プリンタ装置の操作部の一例を示す斜視図であ
る。
FIG. 2 is a perspective view illustrating an example of an operation unit of the printer device.

【図3】プリンタ装置の主要動作の流れを示すフローチ
ャートである。
FIG. 3 is a flowchart showing a flow of main operations of the printer device.

【図4】通常処理ルーチンのフローチャートである。FIG. 4 is a flowchart of a normal processing routine.

【図5】リセット処理ルーチンのフローチャートであ
る。
FIG. 5 is a flowchart of a reset processing routine.

【図6】ダンプ処理ルーチンのフローチャートである。FIG. 6 is a flowchart of a dump processing routine.

【符号の説明】[Explanation of symbols]

16 プリンタ装置(電子機器) 28a 電源スイッチ 28b 操作スイッチ(リセットスイッチ) 16 Printer device (electronic device) 28a Power switch 28b Operation switch (reset switch)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 電源スイッチ及び操作スイッチを有する
電子機器において、前記電源スイッチがON状態に操作
された時点で前記操作スイッチが操作状態にあるか非操
作状態にあるかを判定し、前記操作スイッチが非操作状
態にあると判定したときは、前記電子機器を通常モード
に設定するとともに、前記操作スイッチに第1機能を割
り当て、前記操作スイッチが操作状態であると判定した
ときは、前記電子機器を特殊モードに設定するととも
に、前記操作スイッチに前記第1機能と異なる第2機能
を割り当て、前記電子機器が前記特殊モードに設定され
ている場合に、前記操作スイッチが所定時間以上操作さ
れたか否かを判定し、前記操作スイッチが上記所定時間
以上操作されたと判定したときは、前記第2機能を有効
とすることを特徴とする操作スイッチの機能割り当て方
法。
1. An electronic device having a power switch and an operation switch, wherein when the power switch is operated in an ON state, it is determined whether the operation switch is in an operation state or a non-operation state. Is determined to be in a non-operating state, the electronic device is set to the normal mode, the operation switch is assigned the first function, and the operating switch is determined to be in an operating state. Is set to a special mode, a second function different from the first function is assigned to the operation switch, and when the electronic device is set to the special mode, whether the operation switch has been operated for a predetermined time or more. If it is determined that the operation switch has been operated for the predetermined time or more, the second function is enabled. How to assign the function of the operation switch.
JP14683593A 1993-05-25 1993-05-25 Method for assigning function of operation switch Pending JPH06333455A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14683593A JPH06333455A (en) 1993-05-25 1993-05-25 Method for assigning function of operation switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14683593A JPH06333455A (en) 1993-05-25 1993-05-25 Method for assigning function of operation switch

Publications (1)

Publication Number Publication Date
JPH06333455A true JPH06333455A (en) 1994-12-02

Family

ID=15416606

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14683593A Pending JPH06333455A (en) 1993-05-25 1993-05-25 Method for assigning function of operation switch

Country Status (1)

Country Link
JP (1) JPH06333455A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006288798A (en) * 2005-04-12 2006-10-26 Sharp Corp Washing machine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006288798A (en) * 2005-04-12 2006-10-26 Sharp Corp Washing machine
JP4494281B2 (en) * 2005-04-12 2010-06-30 シャープ株式会社 Washing machine

Similar Documents

Publication Publication Date Title
EP0698240B1 (en) Apparatus and method for automatic recognition and configuration of a peripheral device
EP0430219A2 (en) Method and system for controlling a resume process in a computer unit capable of connecting an expansion unit
JPH06333455A (en) Method for assigning function of operation switch
US5412761A (en) Architecture and method for supporting enable/disable of printer panel switching by a host computer
CN1122220C (en) Exception detecting method for keyboard input system
JP3107521B2 (en) Printer control device
JP2698252B2 (en) Printer
JP3217485B2 (en) Printing device
JP2000148544A (en) Dump output system
KR100795341B1 (en) Scale as control system
JP3812281B2 (en) Printing device
KR100460952B1 (en) Printer capable of transmitting data to be printed to substitute printer and printing method using the same
JPH11296022A (en) Printer
JPH06208441A (en) System for controlling printing environment of printer device
JPH07309054A (en) Printer
JPH06214898A (en) Input device
JP2001157235A (en) Storage program control type automatic exchange
JP2003208357A (en) Information processing apparatus and external memory
JPS61156341A (en) Electronic device
JPH0811397A (en) Printer
JPH0221010B2 (en)
KR20040014042A (en) Method and apparatus for prevention of printing error in a printer
JPH0113577B2 (en)
JPH1083264A (en) Printer device
JPS5975308A (en) Data input/output device