JPH08224943A - Printer device - Google Patents

Printer device

Info

Publication number
JPH08224943A
JPH08224943A JP7034107A JP3410795A JPH08224943A JP H08224943 A JPH08224943 A JP H08224943A JP 7034107 A JP7034107 A JP 7034107A JP 3410795 A JP3410795 A JP 3410795A JP H08224943 A JPH08224943 A JP H08224943A
Authority
JP
Japan
Prior art keywords
host device
external host
signal
voltage
alarm
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.)
Granted
Application number
JP7034107A
Other languages
Japanese (ja)
Other versions
JP3154913B2 (en
Inventor
Akihiro Nozawa
明弘 野沢
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.)
Star Micronics Co Ltd
Original Assignee
Star Micronics 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 Star Micronics Co Ltd filed Critical Star Micronics Co Ltd
Priority to JP03410795A priority Critical patent/JP3154913B2/en
Publication of JPH08224943A publication Critical patent/JPH08224943A/en
Application granted granted Critical
Publication of JP3154913B2 publication Critical patent/JP3154913B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PURPOSE: To obtain a printer device capable giving an alarm if its power is ON with the connected external host device turned OFF. CONSTITUTION: A printer device comprises a CPU 1, an image-forming part 9, an interface 7 communicating with an external host device 19, an operation panel 8 containing an operation switch and the like, and an alarm circuit 10. In addition, a voltage-monitoring circuit 15 for monitoring a signal level change of a strobe signal from the external host device 19 is provided. When the strobe signal is at an intermediate level between a first reference voltage V1 and a second reference voltage V2, the power source of the external host device 19 is judged to be interrupted, and the alarm circuit 10 is actuated.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、記録媒体に文字や図形
などの画像を形成するためのプリンタ装置に関し、特に
外部ホスト装置の電源状態を監視することができるプリ
ンタ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer device for forming images such as characters and figures on a recording medium, and more particularly to a printer device capable of monitoring the power state of an external host device.

【0002】[0002]

【従来の技術】従来、シリアルドットプリンタ等のプリ
ンタは、ワードプロセッサ等のようにホスト装置と一体
化した内蔵型と、別体のホスト装置と信号ケーブルで接
続される外付け型に大別される。内蔵型のプリンタは、
電源回路を共有しているものが一般的であり、ホスト装
置の電源を切るとプリンタ装置の電源も自動的に遮断さ
れる。一方、外付け型のプリンタは専用の電源回路を内
蔵しており、ホスト装置の電源操作とプリンタの電源操
作とは別個に行う必要があり、ホスト装置をオフにして
もプリンタは自動的にオフにならない。
2. Description of the Related Art Conventionally, a printer such as a serial dot printer is roughly classified into a built-in type integrated with a host device such as a word processor and an external type connected to a separate host device by a signal cable. . The built-in printer is
Generally, the power supply circuit is shared, and when the power of the host device is turned off, the power of the printer device is automatically cut off. On the other hand, the external printer has a dedicated power supply circuit, so it is necessary to perform the power operation of the host device and the power operation of the printer separately, and the printer automatically turns off even when the host device is turned off. do not become.

【0003】プリンタはホスト装置からの指令で動作す
るオンラインモードで運転されることが多く、使用者は
プリンタを直接操作する機会が少ない。そのためホスト
装置の電源オフの際にプリンタの電源切り忘れが多々あ
り、省エネルギーの点で好ましくない。
The printer is often operated in an online mode in which it operates according to a command from the host device, and the user rarely operates the printer directly. Therefore, when the power of the host device is turned off, the printer often forgets to turn off the power, which is not preferable in terms of energy saving.

【0004】このような問題を解決する先行技術とし
て、電力消費の低減を図ったデータ端末装置(特開昭5
7−155633号公報)やプリンタ装置(特開平4−
354017号公報)が開示されている。
As a prior art for solving such a problem, a data terminal device designed to reduce power consumption (Japanese Patent Application Laid-Open No. Sho 5)
No. 7-155633) and a printer device (Japanese Patent Laid-Open No. Hei 4-
No. 354017) is disclosed.

【0005】[0005]

【発明が解決しようとする課題】従来のプリンタにおい
て、外部ホスト装置の電源操作とプリンタの電源操作と
を自動的に連動させる機構を設けるのは可能であるが、
装置の回路構成および制御が複雑になってしまう。
In the conventional printer, it is possible to provide a mechanism for automatically interlocking the power operation of the external host device with the power operation of the printer.
The circuit configuration and control of the device becomes complicated.

【0006】また特開平4−354017号では、スト
ローブ信号を単純にハイレベルまたはローレベルだけで
判断しているが、それだけでは現実の外部ホスト装置に
対応しておらず、実際には電源状態を検知できない。
Further, in Japanese Patent Laid-Open No. 4-354017, the strobe signal is judged simply by the high level or the low level. However, that alone does not correspond to the actual external host device, and the power state is actually changed. Cannot be detected.

【0007】本発明の目的は、外部ホスト装置の電源が
オフになったときに、プリンタ側電源の切り忘れを確実
に防止できるプリンタ装置を提供することである。
An object of the present invention is to provide a printer device capable of reliably preventing forgetting to turn off the power supply on the printer side when the power supply of the external host device is turned off.

【0008】[0008]

【課題を解決するための手段】本発明は、外部ホスト装
置の電源状態を監視するホスト監視手段と、外部ホスト
装置の電源が遮断状態である場合、警報を発する警報手
段とを備えることを特徴とするプリンタ装置である。ま
た本発明は、外部ホスト装置から出力されるホスト側信
号を受信するためのインタフェイス手段と、記録媒体に
画像を形成するための画像形成手段と、インタフェイス
手段および画像形成手段との間で信号を送受し、所定の
プログラムに従って信号処理を行う主制御手段とを備え
たプリンタ装置において、ホスト側信号の電圧を監視す
る電圧監視手段と、該ホスト側信号が第1基準電圧以下
かつ第2基準電圧以上である場合、警報を発する警報手
段とを備えることを特徴とするプリンタ装置である。
The present invention comprises host monitoring means for monitoring the power supply state of an external host device, and alarm means for issuing an alarm when the power supply of the external host device is cut off. Is a printer device. Further, the present invention provides an interface means for receiving a host-side signal output from an external host device, an image forming means for forming an image on a recording medium, and an interface means and an image forming means. In a printer device including a main control unit that transmits and receives a signal and performs signal processing according to a predetermined program, a voltage monitoring unit that monitors a voltage of a host-side signal, and the host-side signal is a first reference voltage or less and a second reference voltage. The printer device is provided with an alarm means for issuing an alarm when the voltage is equal to or higher than the reference voltage.

【0009】[0009]

【作用】本発明に従えば、外部ホスト装置の電源が遮断
状態であることを警報によって使用者に知らせることが
可能になるため、プリンタ装置の電源切忘れを確実に防
止でき、無駄な電力消費を抑えることができる。
According to the present invention, since it is possible to notify the user by an alarm that the power supply of the external host device is in the cut-off state, it is possible to surely prevent the printer device from forgetting to turn off the power supply and waste power consumption. Can be suppressed.

【0010】また本発明に従えば、ホスト側信号の電圧
を監視し、2つの基準電圧と比較することによって、ハ
イレベルおよびローレベル以外の中間電位である場合も
検知可能となる。こうしてホスト側信号が第1基準電圧
以下かつ第2基準電圧以上である場合に警報を発するこ
とによって、外部ホスト装置の電源が遮断状態であるこ
とを使用者に確実に知らせることができる。
Further, according to the present invention, by monitoring the voltage of the signal on the host side and comparing it with two reference voltages, it is possible to detect even an intermediate potential other than the high level and the low level. By thus issuing an alarm when the host-side signal is lower than or equal to the first reference voltage and higher than or equal to the second reference voltage, the user can be surely notified that the power supply of the external host device is in the cutoff state.

【0011】[0011]

【実施例】図1は、本発明の一実施例の電気的構成を示
すブロック図である。このプリンタ装置は、装置全体の
動作を管理するCPU(中央処理装置)1と、不揮発性
メモリであるROM(リードオンリメモリ)2と、デー
タの書替えが可能なRAM(ランダムアクセスメモリ)
3と、外部ホスト装置19と接続するためのインタフェ
イス(I/F)7と、操作スイッチ等の信号入力手段や
表示LED(発光ダイオード)等の信号表示手段が組み
込まれたパネル部8と、記録媒体に画像を形成するため
の画像形成部9と、画像形成部9を制御するための制御
回路4などで構成される。
1 is a block diagram showing the electrical construction of an embodiment of the present invention. This printer device includes a CPU (central processing unit) 1 that manages the operation of the entire device, a ROM (read only memory) 2 that is a non-volatile memory, and a RAM (random access memory) that can rewrite data.
3, an interface (I / F) 7 for connecting to an external host device 19, a panel unit 8 incorporating signal input means such as operation switches and signal display means such as a display LED (light emitting diode), An image forming unit 9 for forming an image on a recording medium, a control circuit 4 for controlling the image forming unit 9, and the like.

【0012】CPU1は、ROM2に格納されたプログ
ラムに従って、データ入出力、データ転送、演算等の信
号処理を行う。ROM2は、CPU1の動作に必要なプ
ログラムおよびデータや文字コードや文字フォントなど
印字に必要なデータを格納している。RAM3は、CP
U1のワークエリア、外部ホスト装置からの受信データ
の一時保管や文書データの展開などに使用される。イン
タフェイス7は、外部ホスト装置19との間でデータの
授受を行う。さらに、インタフェイス7には、ストロー
ブ信号のレベル変化を監視する電圧監視回路15が設け
られる。
The CPU 1 performs signal processing such as data input / output, data transfer, calculation, etc. according to a program stored in the ROM 2. The ROM 2 stores programs and data necessary for the operation of the CPU 1 and data necessary for printing such as character codes and character fonts. RAM3 is CP
It is used for temporary storage of data received from the U1 work area and external host device, development of document data, and the like. The interface 7 exchanges data with the external host device 19. Further, the interface 7 is provided with a voltage monitoring circuit 15 for monitoring the level change of the strobe signal.

【0013】このようなCPU1、ROM2、RAM
3、インタフェイス7、パネル部8および制御回路4は
アドレスバス、データバス、コントロールバス等から成
るバスBUSによって相互に接続されている。
CPU 1, ROM 2, RAM
3, the interface 7, the panel unit 8 and the control circuit 4 are connected to each other by a bus BUS including an address bus, a data bus, a control bus and the like.

【0014】画像形成部9は、駆動部6とドライブ回路
5を有する。駆動部6は、記録媒体に印字を行う印字ヘ
ッドや、印字ヘッドを搭載したキャリッジ(CR)を記
録媒体の幅方向に移送するCRモータや、記録媒体を一
定量ずつ搬送するPF(ペーパフィード)モータなどの
駆動ユニットを有する。ドライブ回路5は、制御回路4
からの制御信号に基づいて画像形成部9の各駆動ユニッ
トを駆動する。
The image forming section 9 has a drive section 6 and a drive circuit 5. The drive unit 6 includes a print head that prints on a recording medium, a CR motor that moves a carriage (CR) equipped with the print head in the width direction of the recording medium, and a PF (paper feed) that conveys the recording medium by a fixed amount. It has a drive unit such as a motor. The drive circuit 5 is the control circuit 4
Each drive unit of the image forming unit 9 is driven based on the control signal from.

【0015】また制御回路4には、使用者に警報を発す
るための警報回路10が接続されている。警報回路10
として、音で知らせるブザーや音声合成回路などが使用
でき、さらに光で知らせるLEDなども使用できる。
An alarm circuit 10 for issuing an alarm to the user is connected to the control circuit 4. Alarm circuit 10
As such, a buzzer or a voice synthesizing circuit that informs by sound can be used, and an LED that informs by light can also be used.

【0016】図2は、図1のインタフェイス7を示すブ
ロック図である。外部ホスト装置19とインタフェイス
7とはコネクタ21を介して接続されており、ここでは
セントロニクス準拠などのパラレルインタフェイス方式
を用いており、代表的な信号線として、データ信号Da
ta1〜8(正論理)、ビジー信号BUSY(正論
理)、ストローブ信号STROBE(負論理)、アクノ
リッジ信号ACK(負論理)等が規定されている。
FIG. 2 is a block diagram showing the interface 7 of FIG. The external host device 19 and the interface 7 are connected via a connector 21. Here, a parallel interface system based on Centronics is used, and a data signal Da is used as a typical signal line.
ta1 to 8 (positive logic), a busy signal BUSY (positive logic), a strobe signal STROBE (negative logic), an acknowledge signal ACK (negative logic), and the like are defined.

【0017】データラッチ回路22は、データ信号Da
ta1〜8を介して外部ホスト装置19から送信される
印字コードや印字制御コードを8ビット単位で格納する
ものであり、ストローブ信号の立下り時にデータをラッ
チする。ラッチされたデータはCPU1の管理下でRA
M3の印字バッファに格納される。ビジーフラグ23
は、フリップフロップ等で構成され、ストローブ信号の
立下りでハイレベルとなり、そのままビジー信号として
外部ホスト装置19へ出力するとともに、汎用入出力回
路(I/O)24を経由してCPU1に取り込まれる。
外部ホスト装置19は、絶えずビジー信号を監視してお
り、ローレベルになるまで次のデータ送信を待機してい
る。データラッチ回路22にラッチされたデータがバス
を介してCPU1に取り込まれると、CPU1は汎用入
出力回路24を介してクリア信号CLEARを出力して
ビジーフラグ23をローレベルに反転させる。
The data latch circuit 22 receives the data signal Da.
The print code and the print control code transmitted from the external host device 19 via ta1 to 8 are stored in 8-bit units, and the data is latched when the strobe signal falls. The latched data is RA under the control of the CPU 1.
It is stored in the print buffer of M3. Busy flag 23
Is composed of a flip-flop or the like, becomes a high level at the falling edge of the strobe signal, and outputs it as a busy signal to the external host device 19 as it is and is taken into the CPU 1 via the general-purpose input / output circuit (I / O) 24. .
The external host device 19 constantly monitors the busy signal and waits for the next data transmission until it becomes a low level. When the data latched in the data latch circuit 22 is taken into the CPU 1 via the bus, the CPU 1 outputs the clear signal CLEAR via the general-purpose input / output circuit 24 to invert the busy flag 23 to the low level.

【0018】図3は、電源監視回路15の各種例を示す
回路図である。図3(a)は2つのコンパレータ15
a、15bから成るウインドウコンパレータを用いた例
であり、図3(b)はアナログ信号をデジタル信号に変
換するAD変換器15cを用いた例である。
FIG. 3 is a circuit diagram showing various examples of the power supply monitoring circuit 15. FIG. 3A shows two comparators 15.
This is an example using a window comparator composed of a and 15b, and FIG. 3B is an example using an AD converter 15c for converting an analog signal into a digital signal.

【0019】図3(a)において、ストローブ信号の電
圧レベル変化を監視するため、第1基準電圧V1と比較
するコンパレータ15aと、第2基準電圧V2と比較す
るコンパレータ15bとが設けられ、各出力はオープン
コレクタ型式で電源ラインにプルアップされている。第
1基準電圧V1および第2基準電圧V2は、図示しない
基準電源から供給され、たとえば4Vおよび1Vにそれ
ぞれ設定される。
In FIG. 3A, in order to monitor the voltage level change of the strobe signal, a comparator 15a for comparing with the first reference voltage V1 and a comparator 15b for comparing with the second reference voltage V2 are provided, and each output is provided. Is an open collector type and is pulled up to the power supply line. The first reference voltage V1 and the second reference voltage V2 are supplied from a reference power source (not shown) and are set to 4V and 1V, respectively.

【0020】ストローブ信号の電圧が、1)第1基準電
圧V1より高い場合はコンパレータ15aの出力はロー
レベルになり、2)第1基準電圧V1より低く第2基準
電圧より高い場合はコンパレータ15a、15bの出力
はハイレベルになり、3)第2基準電圧V2より低い場
合はコンパレータ15bの出力がローレベルになる。こ
うしてウインドウコンパレータが構成され、その出力は
図2の汎用入出力回路24を介してCPU1に読み込ま
れる。
When the voltage of the strobe signal is 1) higher than the first reference voltage V1, the output of the comparator 15a becomes low level. 2) When the voltage of the strobe signal is lower than the first reference voltage V1 and higher than the second reference voltage, the comparator 15a, The output of 15b becomes high level, and 3) when it is lower than the second reference voltage V2, the output of comparator 15b becomes low level. In this way, a window comparator is constructed, and its output is read by the CPU 1 through the general-purpose input / output circuit 24 shown in FIG.

【0021】また図3(b)において、ストローブ信号
の電圧レベル変化を監視するため、たとえば8ビット構
成のAD変換器15cが設けられ、デジタル出力は図2
の汎用入出力回路24を介してCPU1に読み込まれ
る。
Further, in FIG. 3B, in order to monitor the voltage level change of the strobe signal, for example, an 8-bit AD converter 15c is provided, and the digital output is shown in FIG.
It is read into the CPU 1 via the general-purpose input / output circuit 24 of.

【0022】図4は、外部ホスト装置とプリンタ装置と
の接続方式の一例を示す回路図であり、外部ホスト装置
の電源が切られていて、プリンタ装置が通電している場
合の入力信号の等価回路を示す図である。外部ホスト装
置19とプリンタ装置とはコネクタ21を介して接続さ
れ、インタフェイス7の入力側には入力バッファQ1
(たとえばTTL−IC型番「LS14」等)が設けら
れる。信号線は、ノイズ防止のためにプルアップ抵抗R
1(たとえば1.5kΩ〜4.7kΩ)で電源ライン
(たとえば5V)に接続されている。同様に、外部ホス
ト装置の出力側も、各信号線にプルアップ抵抗およびプ
ルダウン抵抗が接続されており、等価回路的にはそれら
を合成インピーダンスZで表すことができる。
FIG. 4 is a circuit diagram showing an example of a connection system between the external host device and the printer device, which is equivalent to the input signal when the external host device is powered off and the printer device is energized. It is a figure which shows a circuit. The external host device 19 and the printer device are connected via a connector 21, and an input buffer Q1 is provided on the input side of the interface 7.
(For example, TTL-IC model number “LS14” or the like) is provided. The signal line has a pull-up resistor R to prevent noise.
1 (for example, 1.5 kΩ to 4.7 kΩ) is connected to the power supply line (for example, 5 V). Similarly, on the output side of the external host device, pull-up resistors and pull-down resistors are connected to the respective signal lines, and they can be represented by the combined impedance Z in terms of an equivalent circuit.

【0023】外部ホスト装置が通電している場合には、
信号線の電圧レベルは外部ホスト装置からの出力によっ
てハイレベルまたはローレベルに安定している。また、
外部ホスト装置と接続していない場合には、プルアップ
抵抗R1の存在によって信号線はハイレベルに安定す
る。しかし、外部ホスト装置が通電しておらず、かつプ
リンタ装置が通電している状態では、図4に示すように
ホスト装置の出力側は合成インピーダンスZを通して接
地されているとみなせる。したがって、信号線の電圧レ
ベルはプルアップ抵抗R1および合成インピーダンスZ
の分圧比で決まるため、ハイレベルとローレベルの中間
的な値となる。
When the external host device is energized,
The voltage level of the signal line is stable at a high level or a low level according to the output from the external host device. Also,
When not connected to the external host device, the signal line is stabilized at a high level due to the presence of the pull-up resistor R1. However, when the external host device is not energized and the printer device is energized, it can be considered that the output side of the host device is grounded through the combined impedance Z as shown in FIG. Therefore, the voltage level of the signal line depends on the pull-up resistor R1 and the combined impedance Z.
Since it is determined by the voltage division ratio of, it becomes an intermediate value between high level and low level.

【0024】図5はストローブ信号の電圧変化の一例を
示すグラフである。外部ホスト装置19とプリンタ装置
が接続された状態で、外部ホスト装置19がデータ送信
を行っていない場合には、ストローブ信号はハイレベル
(たとえば5V)に保持される。この状態で外部ホスト
装置の電源がオフになると、電源電圧の低下に伴ってス
トローブ信号の電圧レベルは指数関数的に減少し、プル
アップ抵抗R1および合成インピーダンスZの分圧比で
決まる中間電位(図5では約3.3V)に落ち着く。次
に、外部ホスト装置19が再び通電すると、信号レベル
は中間電位からハイレベルに向かって上昇し、一定電圧
に安定する。
FIG. 5 is a graph showing an example of the voltage change of the strobe signal. When the external host device 19 and the printer device are connected and the external host device 19 is not transmitting data, the strobe signal is held at a high level (for example, 5V). When the power supply of the external host device is turned off in this state, the voltage level of the strobe signal exponentially decreases as the power supply voltage decreases, and the intermediate potential determined by the voltage division ratio of the pull-up resistor R1 and the combined impedance Z (see FIG. 5 settles down to about 3.3V). Next, when the external host device 19 is energized again, the signal level rises from the intermediate potential toward the high level and stabilizes at a constant voltage.

【0025】このように外部ホスト装置19の電源がオ
フである場合、合成インピーダンスZが一定の値を持つ
ため、中間電位として1.5V〜4Vの範囲内に収まる
のが一般的である。入力バッファQ1がTTL−ICで
ある場合、ローレベルの閾値は0.8V〜1.1Vであ
る。そのため外部ホスト装置19の電源がオフになって
もストローブ信号はローレベルにならず、プリンタ装置
が誤ってデータを受信するという事態は回避できてい
る。本発明では、このような回路特性を利用して、外部
ホスト装置の電源状態を検出している。
As described above, when the power source of the external host device 19 is off, since the combined impedance Z has a constant value, the intermediate potential is generally within the range of 1.5V to 4V. When the input buffer Q1 is a TTL-IC, the low level threshold is 0.8V to 1.1V. Therefore, even if the power of the external host device 19 is turned off, the strobe signal does not become low level, and the situation in which the printer device receives data by mistake can be avoided. In the present invention, the power supply state of the external host device is detected by utilizing such circuit characteristics.

【0026】図6は、プリンタ装置の動作の一例を示す
フローチャートである。ここでは、図3(a)のウイン
ドウコンパレータを使用した例を説明する。まずプリン
タ装置の電源が投入されると、ステップS101におい
てRAM3、インタフェイス7、パネル部8および制御
回路4の初期設定を行って、次のステップS102にお
いて制御回路4を介してドライブ回路5および駆動部6
を動作させ、印字位置や印字条件等を初期化する初期動
作を行って、印字スタンバイの状態になる。この状態で
外部ホスト装置19からの印字命令を受信すると、印字
動作を開始することができる。
FIG. 6 is a flow chart showing an example of the operation of the printer device. Here, an example using the window comparator of FIG. 3A will be described. First, when the printer is powered on, the RAM 3, the interface 7, the panel section 8 and the control circuit 4 are initialized in step S101, and the drive circuit 5 and the drive circuit 5 are driven through the control circuit 4 in the next step S102. Part 6
To perform the initial operation for initializing the printing position, printing conditions, etc., and the printing standby state is entered. When a print command is received from the external host device 19 in this state, the print operation can be started.

【0027】次にステップS103において、図3
(a)のウインドウコンパレータの出力を判定する。外
部ホスト装置19が通電状態であったり、データ転送中
であればウインドウコンパレータの出力はローレベルと
なり、ステップS110へ移行して通常の印字動作ルー
チンに入る。ここで、印字すべきデータがRAM3の印
字バッファに格納されているか否かを判定し、印字デー
タが無ければステップS103へ戻る。印字データがあ
れば、ステップS111で印字開始条件の成立するごと
に画像形成部9を駆動して記録媒体に印字を行う。ステ
ップS112で印字終了が確認されると、ステップS1
03へ戻る。こうして通常の印字処理ルーチンを実行し
ながら、ウインドウコンパレータの出力を絶えず判定し
ている。
Next, in step S103, as shown in FIG.
The output of the window comparator of (a) is determined. If the external host device 19 is energized or data is being transferred, the output of the window comparator becomes low level, and the process proceeds to step S110 to enter a normal print operation routine. Here, it is determined whether or not the data to be printed is stored in the print buffer of the RAM 3, and if there is no print data, the process returns to step S103. If there is print data, the image forming unit 9 is driven to print on the recording medium each time the print start condition is satisfied in step S111. When the completion of printing is confirmed in step S112, step S1
Return to 03. Thus, the output of the window comparator is constantly determined while executing the normal print processing routine.

【0028】一方、ステップS103においてウインド
ウコンパレータの出力がハイレベルであれば、監視して
いるストローブ信号が中間電位であることになり、外部
ホスト装置19の電源が遮断状態であると判断できる。
そこでステップS104以降の警報ルーチンに突入し
て、まずタイマーをスタートし、ステップS105でブ
ザー等の警報回路を動作させ、ステップS106で再び
ウインドウコンパレータの出力を判定して、相変わらず
ハイレベルであればステップS107でタイマーの計時
が終了するまでステップS106の出力判定およびブザ
ー等による警報動作を繰り返す。警報はタイマーによっ
て一定時間動作して、プリンタ装置の電源切忘れを使用
者に対して告知する。
On the other hand, if the output of the window comparator is at high level in step S103, the strobe signal being monitored is at the intermediate potential, and it can be determined that the power supply of the external host device 19 is in the cutoff state.
Therefore, the alarm routine after step S104 is entered, the timer is first started, the alarm circuit such as the buzzer is activated in step S105, the output of the window comparator is judged again in step S106, and if it is still high level, step The output determination in step S106 and the alarm operation by the buzzer or the like are repeated until the timer counts in S107. The alarm operates by a timer for a certain period of time to notify the user of forgetting to turn off the power of the printer.

【0029】ステップS107においてタイマーが計時
オーバーしたり、またはステップS106において警報
動作中にウインドウコンパレータの出力がローレベルに
なると、ステップS108に進んでブザー等による警報
動作を停止する。次にステップS109においてウイン
ドウコンパレータの出力がローレベルになるまでループ
で待機し、必要以上に警報を発するのを防いでいる。こ
の待機中に外部ホスト装置19の電源が投入されると、
ウインドウコンパレータの出力がローレベルになってス
テップS103へ戻る。
When the timer counts over in step S107 or the output of the window comparator becomes low level during the alarm operation in step S106, the process proceeds to step S108 to stop the alarm operation by the buzzer or the like. Next, in step S109, a wait is made in a loop until the output of the window comparator becomes a low level to prevent the alarm from being issued more than necessary. When the external host device 19 is powered on during this standby,
The output of the window comparator becomes low level and the process returns to step S103.

【0030】こうしてストローブ信号の電圧を監視する
ことによって、外部ホスト装置19の電源オフが判定可
能になり、使用者に対してプリンタ装置の電源も切るよ
うに告知することができる。
By monitoring the voltage of the strobe signal in this manner, it is possible to determine the power-off of the external host device 19, and it is possible to notify the user to turn off the power of the printer device.

【0031】上記実施例において、ストローブ信号の電
圧を監視するためウインドウコンパレータを使用する例
を説明したが、図3(b)に示すAD変換器15cを使
用することも可能である。その場合、CPU1がAD変
換器15cの出力とROM2やRAM3に予め記憶され
た第1基準電圧V1および第2基準電圧V2とを比較判
定することによって、ウインドウコンパレータと同様な
結果が得られる。
In the above embodiment, an example in which the window comparator is used to monitor the voltage of the strobe signal has been described, but it is also possible to use the AD converter 15c shown in FIG. 3B. In that case, the CPU 1 compares the output of the AD converter 15c with the first reference voltage V1 and the second reference voltage V2 stored in advance in the ROM 2 or the RAM 3 to obtain the same result as that of the window comparator.

【0032】さらに、外部ホスト装置の電源状態を監視
する手法として、ホスト側信号のうちストローブ信号の
電圧を監視する手法を示したが、その他に外部ホスト装
置が通電状態にあるときハイレベルまたはローレベルで
あることが確実な信号で、電源遮断状態であるとき中間
電位となる信号であれば監視対象として用いることがで
き、さらに外部ホスト装置の電源状態を伝送する専用の
信号ライン(有線でも無線でも可能)を設けても構わな
い。
Further, as a method of monitoring the power supply state of the external host device, a method of monitoring the voltage of the strobe signal of the host side signal has been shown. In addition, when the external host device is in the energized state, it is at high level or low level. A signal that is sure to be at a level and can be used as a monitoring target as long as it is a signal that has an intermediate potential when the power is cut off, and a dedicated signal line (wired or wireless) for transmitting the power status of the external host device. However, it is possible).

【0033】[0033]

【発明の効果】以上詳説したように本発明によれば、外
部ホスト装置の電源が遮断状態であることを警報によっ
て使用者に知らせることが可能になるため、プリンタ装
置の電源切忘れを確実に防止でき、無駄な電力消費を抑
えることができる。
As described above in detail, according to the present invention, it is possible to notify the user by an alarm that the power supply of the external host device is in the cutoff state, so that it is possible to surely forget to turn off the power supply of the printer device. This can be prevented, and wasteful power consumption can be suppressed.

【0034】また、ホスト側信号の電圧を監視し、2つ
の基準電圧と比較することによって、外部ホスト装置の
電源状態を確実に検出することができ、電源オフによる
警報動作が安定に行われる。
Further, by monitoring the voltage of the signal on the host side and comparing it with two reference voltages, the power supply state of the external host device can be reliably detected, and the alarm operation by powering off is performed stably.

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

【図1】本発明の一実施例の電気的構成を示すブロック
図である。
FIG. 1 is a block diagram showing an electrical configuration of an embodiment of the present invention.

【図2】図1のインタフェイス7を示すブロック図であ
る。
2 is a block diagram showing an interface 7 of FIG. 1. FIG.

【図3】電源監視回路15の各種例を示す回路図であ
る。
3 is a circuit diagram showing various examples of a power supply monitoring circuit 15. FIG.

【図4】外部ホスト装置とプリンタ装置との接続方式の
一例を示す回路図である。
FIG. 4 is a circuit diagram showing an example of a connection system between an external host device and a printer device.

【図5】ストローブ信号の電圧変化の一例を示すグラフ
である。
FIG. 5 is a graph showing an example of a voltage change of a strobe signal.

【図6】プリンタ装置の動作の一例を示すフローチャー
トである。
FIG. 6 is a flowchart illustrating an example of operation of the printer device.

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

1 CPU 2 ROM 3 RAM 4 制御回路 5 ドライブ回路 6 駆動部 7 インタフェイス 8 パネル部 9 画像形成部 10 警報回路 15 電圧監視回路 15a、15b コンパレータ 15c AD変換器 19 外部ホスト装置 22 データラッチ回路 23 ビジーフラグ 24 汎用入出力回路 1 CPU 2 ROM 3 RAM 4 control circuit 5 drive circuit 6 drive unit 7 interface 8 panel unit 9 image forming unit 10 alarm circuit 15 voltage monitoring circuit 15a, 15b comparator 15c AD converter 19 external host device 22 data latch circuit 23 busy flag 24 General-purpose input / output circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 外部ホスト装置の電源状態を監視するホ
スト監視手段と、 外部ホスト装置の電源が遮断状態である場合、警報を発
する警報手段とを備えることを特徴とするプリンタ装
置。
1. A printer device, comprising: host monitoring means for monitoring a power supply state of an external host device; and alarm means for issuing an alarm when the power supply of the external host device is cut off.
【請求項2】 外部ホスト装置から出力されるホスト側
信号を受信するためのインタフェイス手段と、 記録媒体に画像を形成するための画像形成手段と、 インタフェイス手段および画像形成手段との間で信号を
送受し、所定のプログラムに従って信号処理を行う主制
御手段とを備えたプリンタ装置において、 ホスト側信号の電圧を監視する電圧監視手段と、 該ホスト側信号が第1基準電圧以下かつ第2基準電圧以
上である場合、警報を発する警報手段とを備えることを
特徴とするプリンタ装置。
2. An interface means for receiving a host-side signal output from an external host device, an image forming means for forming an image on a recording medium, and an interface means and an image forming means. In a printer device including a main control unit that transmits and receives a signal and performs signal processing according to a predetermined program, a voltage monitoring unit that monitors a voltage of a host-side signal, and the host-side signal is a first reference voltage or less and a second reference voltage or less. A printer device, comprising: an alarm unit for issuing an alarm when the voltage is equal to or higher than a reference voltage.
JP03410795A 1995-02-22 1995-02-22 Printer device Expired - Fee Related JP3154913B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03410795A JP3154913B2 (en) 1995-02-22 1995-02-22 Printer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03410795A JP3154913B2 (en) 1995-02-22 1995-02-22 Printer device

Publications (2)

Publication Number Publication Date
JPH08224943A true JPH08224943A (en) 1996-09-03
JP3154913B2 JP3154913B2 (en) 2001-04-09

Family

ID=12405062

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03410795A Expired - Fee Related JP3154913B2 (en) 1995-02-22 1995-02-22 Printer device

Country Status (1)

Country Link
JP (1) JP3154913B2 (en)

Also Published As

Publication number Publication date
JP3154913B2 (en) 2001-04-09

Similar Documents

Publication Publication Date Title
US7428391B2 (en) Image forming device and method of controlling the image forming device
US7283262B2 (en) Image forming apparatus and power control method
US5933581A (en) Communication apparatus for controlling switching between a normal mode and a power saving mode
US5620264A (en) Error control system for a printer
US4933772A (en) Electrophotographic printer with improved timing arrangements
JPS6282768A (en) Electrophotographic printer
JPH0781186A (en) Power-saving device for information-processing system
US20020054319A1 (en) Putput control apparatus, output control method and memory medium storing program readable by computer
JPH08224943A (en) Printer device
US4951235A (en) Option unit detecting apparatus for electronic equipment
US5950037A (en) Image forming apparatus with power conservation in accordance with ambient light
US5720560A (en) Printing apparatus
JP2002178610A (en) Controller of printer
JP3235941B2 (en) Printer device
JP3235940B2 (en) Printer device
JP2004255658A (en) Printer
JP3101963B2 (en) Power off state determination method for communication source device
JP2000131997A (en) Image forming device
KR100341784B1 (en) Method for detecting of toner residual quantity in a laser printer
JPH08187920A (en) Printer controller
JP2007025025A (en) Image forming apparatus
US6804015B1 (en) Page printer and control method thereof
KR100193820B1 (en) Fusing temperature control method in power saving mode
JPH06227096A (en) Picture forming device
JPH037963B2 (en)

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees