JPH01241477A - Printer - Google Patents

Printer

Info

Publication number
JPH01241477A
JPH01241477A JP63067186A JP6718688A JPH01241477A JP H01241477 A JPH01241477 A JP H01241477A JP 63067186 A JP63067186 A JP 63067186A JP 6718688 A JP6718688 A JP 6718688A JP H01241477 A JPH01241477 A JP H01241477A
Authority
JP
Japan
Prior art keywords
drive system
state
microprocessor
drive
movable part
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
JP63067186A
Other languages
Japanese (ja)
Other versions
JP2765849B2 (en
Inventor
Tadao Shimizu
忠雄 清水
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP63067186A priority Critical patent/JP2765849B2/en
Publication of JPH01241477A publication Critical patent/JPH01241477A/en
Application granted granted Critical
Publication of JP2765849B2 publication Critical patent/JP2765849B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism

Abstract

PURPOSE:To prevent the occurrence of a heating or smoke emitting accident of a movable part, by interrupting the supply of a power to the movable part forcibly when a driving system is in a standby state. CONSTITUTION:When a sensor interrupt occurs, a microprocessor 1 judges whether a state flag 1a is in an operating state or not, and makes a return to a main routine when a standby state of a driving system is shown. When an operating state of the driving system is shown, a printing process is conducted by a printing head. When printing is executed normally, an alarm timer 1b is re-started to conduct a prescribed time count every time when a process of the sensor interrupt is conducted. It happens assumedly that output of a sensor signal is stopped with some cause, the sensor interrupt does not occur and the alarm timer 1b conducts the time count up to a prescribed value for a prescribed time. Then an alarm timer interrupt occurs when the prescribed value is reached by the time count. Then a drive signal from the microprocessor 1 is turned OFF, a switch means 7a of a drive circuit 7 is put in an OFF state forcibly, a supply of a power to a space motor is stopped, and thus the occurrence of heating and smoke emitting accidents of the space motor can be prevented.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、コンピュータやワードプロセッサ等の周辺機
器の一つとして多用されているプリンタに関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a printer that is frequently used as one of the peripheral devices for computers, word processors, and the like.

(従来の技術) コンピュータ等の周辺機器の一つとして多用されている
プリンタは、コンピュータ等からデータを受信して、各
種の情報を印字する。
(Prior Art) Printers, which are often used as peripheral devices for computers and the like, receive data from the computer and print out various types of information.

第2図に、このような従来のプリンタのブロック図を示
す。
FIG. 2 shows a block diagram of such a conventional printer.

図は、マイクロプロセッサ1と、これに接続されたリー
ド・オンリ・メモリ(ROM)2と、ランダム・アクセ
ス・メモリ(RAM)3と、制御回路4と、インタフェ
ースドライバ/レシーバ回路5と、駆動系6とから構成
されている。
The figure shows a microprocessor 1, a read-only memory (ROM) 2 connected to it, a random access memory (RAM) 3, a control circuit 4, an interface driver/receiver circuit 5, and a drive system. It consists of 6.

マイクロプロセッサlは、このプリンタ全体を制御管理
する回路である。この回路は、後に説明する駆動系6の
電源供給制御のためのレジスタから成る状態フラグ1a
と、カウンタから成るアラームタイマ1bとを備えてい
る。ROM (リート・オンリ・メモリ)2は、プログ
ラムや文字フォントパターン等が格納された読み出し専
用のメモリである。RAM (ランダム・アクセス・メ
モリ)3は、制御回路4から出力されるデータを一時格
納する書込み及び読み出しを行なうことのできるメモリ
である。制御回路4は、インタフェースドライバ/レシ
ーバ回路5の制御管理及び駆動系6の動作維持を管理す
る回路である。インタフェースドライバ/レシーバ回路
5は、インタフェースを介して図示しないコンピュータ
等とのデータのやり取りを行なう回路である。駆動系6
は、ドライブ回路7と、電源8と、可動部分9とから構
成されている。ドライブ回路7は、可動部分9への電源
の供給を制御する回路である。電源8は、ドライブ回路
7を介して可動部分9へ電源を供給する回路である。可
動部分9は、印字ヘッド10と、スペースモータ11と
、改行モータ12と、センサ部13とから構成されてい
る。
The microprocessor l is a circuit that controls and manages the entire printer. This circuit includes a status flag 1a consisting of a register for controlling power supply to the drive system 6, which will be explained later.
and an alarm timer 1b consisting of a counter. A ROM (read-only memory) 2 is a read-only memory in which programs, character font patterns, etc. are stored. A RAM (Random Access Memory) 3 is a memory in which data output from the control circuit 4 can be temporarily stored and read and written. The control circuit 4 is a circuit that controls and manages the interface driver/receiver circuit 5 and maintains the operation of the drive system 6. The interface driver/receiver circuit 5 is a circuit that exchanges data with a computer (not shown) or the like via an interface. Drive system 6
is composed of a drive circuit 7, a power supply 8, and a movable part 9. The drive circuit 7 is a circuit that controls the supply of power to the movable part 9. The power supply 8 is a circuit that supplies power to the movable part 9 via the drive circuit 7. The movable part 9 includes a print head 10, a space motor 11, a line feed motor 12, and a sensor section 13.

印字ヘッド10は、図示しない印字用紙等の印字媒体に
文字等を印字するものである。スペースモータ11は、
印字ヘッド10を駆動するモータである。センサ部13
は、スリットエンコーダ13aと、センサ13bとから
構成されている。
The print head 10 prints characters and the like on a printing medium such as printing paper (not shown). The space motor 11 is
This is a motor that drives the print head 10. Sensor part 13
is composed of a slit encoder 13a and a sensor 13b.

スリットエンコーダ13aは、スペースモータ11に連
動して回転し、放射状に多数のスリットを開けた円盤状
の板である。センサ13bは、スリットエンコーダ13
aを挟むように対向配置された発光素子と、受光素子と
から構成されている。これらスリットエンコーダ13a
とセンサ13bとにより、スペースモータ11の回転を
、即ち印字ヘッド10の移動量を認識することができる
。最後に、改行モータ12は、図示しないプラテンを駆
動するモータである。
The slit encoder 13a is a disk-shaped plate that rotates in conjunction with the space motor 11 and has a large number of radial slits. The sensor 13b is the slit encoder 13
It is composed of a light emitting element and a light receiving element, which are arranged opposite to each other so as to sandwich a. These slit encoders 13a
The rotation of the space motor 11, that is, the amount of movement of the print head 10 can be recognized by the sensor 13b. Finally, the line feed motor 12 is a motor that drives a platen (not shown).

以上の構成のプリンタの動作を説明する。The operation of the printer with the above configuration will be explained.

まず、マイクロプロセッサ1に電源が投入されると、R
OM2からプログラムを読み出し実行する。このプログ
ラムの実行により、プリンタはイニシャル処理される。
First, when power is turned on to microprocessor 1, R
Read and execute the program from OM2. By executing this program, the printer undergoes initial processing.

即ち、マイクロプロセッサ1は、制御回路4及びドライ
ブ回路7に初期設定動作の指令を出し、インタフェース
ドライバ/レシーバ回路5のチエツクと、駆動系6を何
時でも印字動作が行なえる状態に設定する。この状態を
駆動系待機状態(状態フラグ1aがOの状態)と呼ぶこ
とにする。
That is, the microprocessor 1 issues an initial setting operation command to the control circuit 4 and the drive circuit 7, checks the interface driver/receiver circuit 5, and sets the drive system 6 to a state where printing operation can be performed at any time. This state will be referred to as a drive system standby state (a state in which the status flag 1a is O).

これで、インタフェースドライバ/レシーバ回路5に接
続された図示しないホストシステム等からデータが送ら
れてきた場合、直ちにその印字動作に移ることができる
With this, when data is sent from a host system (not shown) connected to the interface driver/receiver circuit 5, the printing operation can be started immediately.

即ち、インタフェースドライバ/レシーバ回路5を介し
て接続された図示しないホストシステムからのデータを
受信すると、制御回路4を介してRAM3にこのデータ
が格納される。そしてマイクロプロセッサ1は、RAM
3に格納されたデータから印字開始制御コードを認識す
ると、ドライブ回路7に印字動作の指令を出し、駆動系
6を動作させる。この状態を駆動系動作状態(状態フラ
グ1aが1の状態)と呼ぶことにする。この駆動系動作
状態とは、RAM3に格納された印字データに基づいて
まさに印字を行なっている状態ないう。
That is, when data is received from a host system (not shown) connected via the interface driver/receiver circuit 5, this data is stored in the RAM 3 via the control circuit 4. And microprocessor 1 has RAM
When the print start control code is recognized from the data stored in 3, a print operation command is issued to the drive circuit 7, and the drive system 6 is operated. This state will be referred to as the drive system operating state (state where the state flag 1a is 1). This driving system operating state refers to a state in which printing is just being performed based on the print data stored in the RAM 3.

即ち、マイクロプロセッサ1の入出力ボートからドライ
ブ回路7に向けて駆動信号が出力される。そして、ドラ
イブ回路7は、この駆動信号に基づいてスペースモータ
11に電源8からの電源を供給し、印字ヘッド10のス
キャニングを行なう。一方、マイクロプロセッサ1は、
スペースモータ11に連動して回転するスリットエンコ
ーダ13aとセンサ13bからの信号(センサ信号と呼
ぶことにする)により、印字ヘッドIOの位置と、スペ
ースモータ11の回転速度の制御を行なう。同時に、マ
イクロプロセッサ1は、スリットエンコーダ13aとセ
ンサ13bからの信号で、印字タイミングを認識し、R
AM3に格納された印字データに基づいてROM2に格
納された文字フォントパターンから該当するものを読み
出す。そして、ドライブ回路7を介して印字のためのヘ
ッド信号を印字ヘッド10に入力し、順次RAM3に格
納されたデータの印字を行なう。
That is, a drive signal is output from the input/output port of the microprocessor 1 to the drive circuit 7. Then, the drive circuit 7 supplies power from the power supply 8 to the space motor 11 based on this drive signal, and scans the print head 10. On the other hand, microprocessor 1 is
The position of the print head IO and the rotational speed of the space motor 11 are controlled by signals from the slit encoder 13a and the sensor 13b (referred to as sensor signals), which rotate in conjunction with the space motor 11. At the same time, the microprocessor 1 recognizes the printing timing based on the signals from the slit encoder 13a and the sensor 13b, and
Based on the print data stored in AM3, a corresponding character font pattern is read out from the character font patterns stored in ROM2. Then, a head signal for printing is input to the print head 10 via the drive circuit 7, and the data stored in the RAM 3 is sequentially printed.

RAM3に格納された1行分の印字データの印字が終了
すると、マイクロプロセッサ1は、ドライブ回路7への
駆動信号の出力を停止してスペースモータ11を停止さ
せ、改行モータ12により1行分の改行を行なう。
When the printing of one line of print data stored in the RAM 3 is completed, the microprocessor 1 stops outputting the drive signal to the drive circuit 7, stops the space motor 11, and uses the line feed motor 12 to print one line of print data. Perform a line break.

さて、以上の印字動作において、例えば、駆動系6が動
作状態、即ち印字動作を行なっている場合に、印字用紙
のジャムや回路素子の動作不良もしくは配線の接触不良
等の原因で、スペースモータ11の回転が阻止される異
常事態が発生する場合がある。この場合、スリットエン
コーダ13aの回転もスペースモータ11と同様に停止
するため、センサ13bの出力信号をマイクロプロセッ
サ1が検出することができない。この状態を放置すると
スペースモータ11の発熱や、さらに発煙事故等を起こ
すことになる。このため、マイクロプロセッサ1は、ド
ライブ回路7に駆動信号を出力している状態、即ちスペ
ースモータ11に電源が供給された駆動系動作状態中に
、センサ13bからのセンサ信号が所定時間継続して検
出されないことを、マイクロプロセッサ1に設けられた
アラームタイマ1bの計時により認識すると、駆動信号
の出力を停止する。これによりドライブ回路7は、スペ
ースモータ11への電源の供給を遮断することになり、
駆動系6が強制的に待機状態になる。
Now, in the above printing operation, for example, when the drive system 6 is in an operating state, that is, when performing a printing operation, the space motor 11 may An abnormal situation may occur in which the rotation of the machine is blocked. In this case, since the rotation of the slit encoder 13a also stops like the space motor 11, the microprocessor 1 cannot detect the output signal of the sensor 13b. If this state is left unattended, the space motor 11 will generate heat and furthermore, a smoke accident will occur. Therefore, while the microprocessor 1 is outputting a drive signal to the drive circuit 7, that is, the drive system is operating when power is supplied to the space motor 11, the microprocessor 1 is configured to keep the sensor signal from the sensor 13b for a predetermined period of time. When the alarm timer 1b provided in the microprocessor 1 recognizes that the detection is not detected, the output of the drive signal is stopped. As a result, the drive circuit 7 cuts off the power supply to the space motor 11.
The drive system 6 is forced into a standby state.

(発明が解決しようとする課題) さて、従来このように駆動系6が動作状態の場合に異常
事態が発生した場合、マイクロプロセッサ1は、それを
認識して二次的に発生する事故を未然に防いでいた。
(Problem to be Solved by the Invention) Conventionally, when an abnormal situation occurs while the drive system 6 is in an operating state, the microprocessor 1 recognizes it and prevents a secondary accident from occurring. was prevented.

ところが、これらプリンタの設置環境は必ずしも良いと
ころばかりとは言えず、かなり過酷な場所に設置されて
いる場合がある。また、これらのプリンタは、特に入力
電源の雑音電圧や静電気、さらには温湿度や振動等にさ
らされ、マイクロプロセッサ1や周辺回路の誤動作が発
生する場合がある。
However, the environment in which these printers are installed is not always good, and they are sometimes installed in quite harsh locations. Furthermore, these printers are particularly exposed to noise voltage and static electricity from an input power source, as well as temperature, humidity, vibration, etc., which may cause malfunctions of the microprocessor 1 and peripheral circuits.

プリンタは、一般に一度電源が投入されると、その駆動
系6は、待機状態にあるほうが動作状態にあるよりも長
い。しかし従来のプリンタは、異常事態の認識が駆動系
6の動作状態のときのみ行なわれ、待機状態のときはマ
イクロプロセッサ1あるいは、回路素子等の誤動作に対
して無防備であった。
Once a printer is powered on, its drive system 6 is generally in a standby state longer than in an operating state. However, in the conventional printer, an abnormal situation is recognized only when the drive system 6 is in an operating state, and when the printer is in a standby state, it is vulnerable to malfunctions of the microprocessor 1 or circuit elements.

従って、待機状態で駆動系6に誤って電源が供給され、
かつ駆動系6に異常事態が発生した場合、何ら保護手段
が用意されていない。
Therefore, power is erroneously supplied to the drive system 6 in the standby state,
Moreover, if an abnormal situation occurs in the drive system 6, no protection measures are provided.

本発明は、以上の点に着目してなされたもので、駆動系
が待機状態のときに発生した異常事態によって回路素子
等が破損することのないプリンタを提供することを目的
とするものである。
The present invention has been made with attention to the above points, and an object of the present invention is to provide a printer in which circuit elements, etc. are not damaged due to an abnormal situation that occurs when the drive system is in a standby state. .

(課題を解決するための手段) 本発明のプリンタは、機械的可動部分を持つ駆動系を動
作させている駆動系動作状態と、前記駆動系を動作させ
ていない駆動系待機状態とを有するプリンタにおいて、
前記駆動系動作状態と前記駆動系待機状態とを区別して
表示する状態フラグと、前記状態フラグが前記駆動系動
作状態を表示していた場合、前記駆動系の可動部分の動
作が停止してから一定時間経過後に前記駆動系の前記可
動部分への電源の供給を強制的に遮断し、前記状態フラ
グが前記駆動系待機状態を表示していた場合、前記駆動
系の前記可動部分への電源の供給を強制的に遮断する電
源制御手段を有するものである。
(Means for Solving the Problems) A printer of the present invention has a drive system operating state in which a drive system having a mechanically movable part is operating and a drive system standby state in which the drive system is not operating. In,
a status flag that distinguishes and displays the drive system operating state and the drive system standby state; and if the status flag indicates the drive system operating state, after the movable parts of the drive system have stopped operating; If the power supply to the movable parts of the drive system is forcibly cut off after a certain period of time and the status flag indicates the drive system standby state, the power supply to the movable parts of the drive system is cut off. It has power control means for forcibly cutting off the supply.

(作用) 以上のプリンタは、駆動系が待機状態の場合に、繰返し
強制的に可動部分への電源の供給を遮断する動作をさせ
ることにより、駆動系動作状態のときのみでなく、常に
異常事態の回避を行なうことができる。
(Function) When the drive system is in standby mode, the above printer repeatedly forcibly cuts off the power supply to the movable parts. can be avoided.

(実施例) 第1図は、本発明のプリンタに係る要部ブロック図であ
る。
(Embodiment) FIG. 1 is a block diagram of main parts of a printer of the present invention.

第1図のブロック図は、第2図に示した従来のブロック
図のマイクロプロセッサ1と駆動系6に相当する部分を
詳細に示したものである。
The block diagram in FIG. 1 shows in detail the portions corresponding to the microprocessor 1 and drive system 6 in the conventional block diagram shown in FIG.

第1図に示した本発明のプリンタにおいては、第2図を
用いて説明した従来のプリンタに対し、マイクロプロセ
ッサlに状態フラグ認識手段2゜と電源制御手段25を
新たに設けている。その他の部分は、第2図と同様の構
成である。
In the printer of the present invention shown in FIG. 1, a status flag recognition means 2.degree. and a power supply control means 25 are newly provided in the microprocessor l, compared to the conventional printer explained using FIG. The other parts have the same configuration as in FIG. 2.

さて、第1図のプロセッサ1の状態フラグ認識手段20
は、状態フラグ1aの値が0の状態(駆動系待機状態)
を認識して電源制御手段25を動作させる手段で、論理
回路等から構成される。電源制御手段25は、駆動系6
のドライブ回路7をオフ状態、即ちその可動部分9に電
源を供給しない状態に制御するレジスタ等から成る手段
である。
Now, the status flag recognition means 20 of the processor 1 in FIG.
is a state where the value of status flag 1a is 0 (drive system standby state)
It is a means for recognizing the power supply control means 25 and operating the power supply control means 25, and is composed of a logic circuit and the like. The power supply control means 25 is connected to the drive system 6
The drive circuit 7 is controlled to be in an OFF state, that is, a state in which power is not supplied to the movable part 9 thereof.

プロセッサ1には、第2図に示した従来のプリンタと同
様に、状態フラグ1aとアラームタイマ1bが設けられ
ている。
The processor 1 is provided with a status flag 1a and an alarm timer 1b, similar to the conventional printer shown in FIG.

状態フラグ1aは、駆動系6の動作状態及び待機状態を
示すフラグである。アラームタイマ1bは、所定の計時
を行なうカウンタである。
The status flag 1a is a flag indicating the operating status and standby status of the drive system 6. The alarm timer 1b is a counter that measures a predetermined time.

また、駆動系6も同様に、ドライブ回路7と電源8と可
動部分9とから構成されている。ドライブ回路7には、
スイッチ手段7aと電源8が設けられ、スイッチ手段7
aをオン状態もしくはオフ状態にすることにより可動部
分9への電源供給を制御する回路である。可動部分9に
は、図示しない印字ヘッドやスペースモータ及び改行モ
ータが設けられ、さらに図示しないスリットエンコーダ
やセンサから成るセンサ部13が設けられている。
Further, the drive system 6 similarly includes a drive circuit 7, a power source 8, and a movable part 9. In the drive circuit 7,
A switch means 7a and a power source 8 are provided, and the switch means 7
This is a circuit that controls power supply to the movable part 9 by turning on or off a. The movable portion 9 is provided with a print head, a space motor, and a line feed motor (not shown), and is further provided with a sensor section 13 consisting of a slit encoder and a sensor (not shown).

以上の構成のプリンタの動作を第3図を用いて説明する 第3図は、本発明のプリンタの動作を示すフローチャー
トである。
The operation of the printer with the above configuration will be explained using FIG. 3. FIG. 3 is a flowchart showing the operation of the printer of the present invention.

まず、第1図に示したプリンタに電源が投入されると、
状態フラグ1aにOをセットする等のイニシャル処理が
行なわれる(ステップSl)。そして、状態フラグ認識
手段20により、状態フラグ1aの値が1か否かが判断
される(ステップS2)。結果がNoならば、即ち駆動
系6が待機状態ならばステップS3に移る。ステップs
3では、マイクロプロセッサlの電源制御手段25を動
作させて、ドライブ回路7のスイッチ手段7aを強制的
にオフ状態にセットする(ステップS3)。このため、
駆動系6の可動部分9には電源の供給がなされず、その
動作が行なわれることはない0次にステップS4に移り
、インタフェースドライバ/レシーバ回路5(第2図)
にデータの入力(情報受信)があったか否かを判断する
(ステップS4)。ステップS2においてYESならば
、このステップS4にジャンプする。ステップS4の結
果がNOならば、駆動系6を手動で操作するための図示
しない操作スイッチがオンされたか否かが判断される(
ステップS5)。この結果がNoならば、ステップS6
に移る。ステップS6では、RAM3に格納されたデー
タを印字開始するか否かを判断する(ステップS6)。
First, when the power is turned on to the printer shown in Figure 1,
Initial processing such as setting O to the status flag 1a is performed (step Sl). Then, the status flag recognition means 20 determines whether the value of the status flag 1a is 1 (step S2). If the result is No, that is, if the drive system 6 is in a standby state, the process moves to step S3. step s
3, the power supply control means 25 of the microprocessor 1 is operated to forcibly set the switch means 7a of the drive circuit 7 to the OFF state (step S3). For this reason,
No power is supplied to the movable part 9 of the drive system 6, and no operation is performed.Next, the process moves to step S4, and the interface driver/receiver circuit 5 (FIG. 2)
It is determined whether data has been input (information received) (step S4). If YES in step S2, the process jumps to step S4. If the result of step S4 is NO, it is determined whether an operation switch (not shown) for manually operating the drive system 6 has been turned on (
Step S5). If this result is No, step S6
Move to. In step S6, it is determined whether or not to start printing the data stored in the RAM 3 (step S6).

この結果がNoならばステップS2に戻る。よって、駆
動系6が待機状態のときは、ステップS2、S3、S4
、S5、S6、そしてステップS2に戻るといったルー
プを回る。
If the result is No, the process returns to step S2. Therefore, when the drive system 6 is in the standby state, steps S2, S3, and S4
, S5, S6, and returns to step S2.

さて、ステップS4においてYESの結果が出たならば
、即ちインクフェースドライバ/レシーバ回路5(第2
図)にデータの入力があった場合、ステップS7に移る
。ステップS7では、インタフェースドライバ/レシー
バ回路5に入力したデータを制御回路4を介してRAM
3に格納する受信処理を行なった後ステップS2に戻る
。次にステップS5においてYESの結果が出たならば
、即ち操作スイッチがオンされたならばステップS8に
移る。ステップS8では、操作スイッチに対応して制御
回路4により駆動系6を制御し、可動部分9を動作させ
た後ステップS2に移る。
Now, if the result of step S4 is YES, that is, the ink face driver/receiver circuit 5 (second
If there is data input in Figure), the process moves to step S7. In step S7, the data input to the interface driver/receiver circuit 5 is transferred to the RAM via the control circuit 4.
After performing the reception process stored in step S2, the process returns to step S2. Next, if a YES result is obtained in step S5, that is, if the operation switch is turned on, the process moves to step S8. In step S8, the drive system 6 is controlled by the control circuit 4 in response to the operation switch to operate the movable part 9, and then the process moves to step S2.

そして、ステップS6においてYESの結果が出たなら
ばステップS9に移る。ステップS9では、マイクロプ
ロセッサ1からドライブ回路7に駆動信号が出力され、
スイッチ手段7aをオン動作させる。次に、マイクロプ
ロセッサ1のアラームタイマ1bの計時を開始させる。
If the result of step S6 is YES, the process moves to step S9. In step S9, a drive signal is output from the microprocessor 1 to the drive circuit 7,
The switch means 7a is turned on. Next, the alarm timer 1b of the microprocessor 1 is started to measure time.

そして状態フラグ1aに1をセットする。これにより、
駆動系6は動作状態に設定されたことになる。
Then, the status flag 1a is set to 1. This results in
The drive system 6 is now set to the operating state.

以上のような流れにより、プリンタの電源投入時の駆動
系6の待機状態から動作状態までを行なう。
According to the flow described above, the drive system 6 changes from the standby state to the operating state when the power of the printer is turned on.

さて、以上の流れの動作を行なっている場合、可動部分
9のセンサ部13からセンサ信号が出力され、ドライブ
回路7を介してマイクロプロセッサ1に認識された場合
、センサ割り込みが発生する。
Now, when the above flow of operations is performed, a sensor signal is output from the sensor section 13 of the movable part 9, and when it is recognized by the microprocessor 1 via the drive circuit 7, a sensor interrupt occurs.

第4図に、センサ割り込みのフローチャートを示す。FIG. 4 shows a flowchart of sensor interrupt.

以降、第3図において説明したフローチャートの流れを
メインルーチンと呼ぶことにする。
Hereinafter, the flow of the flowchart explained in FIG. 3 will be referred to as the main routine.

センサ割り込みが発生すると、マイクロプロセッサ1は
、状態フラグ1aが1か否かを判断する(ステップ5I
O)。この結果がNoならば、即ち状態フラグ1aが駆
動系待機状態を示していたらメインルーチンに復帰する
。結果がYESならば、即ち状態フラグ1aが駆動系動
作状態を示していたらステップSllに移る。ステップ
Sllでは、RAM3のデータの印字が終了したか否か
が判断される。結果がNoならばステップS12に移る
。ステップS12では、印字ヘッド10により印字用紙
に印字する印字処理を行ない、ステップS13に移る。
When a sensor interrupt occurs, the microprocessor 1 determines whether the status flag 1a is 1 (step 5I).
O). If the result is No, that is, if the status flag 1a indicates the drive system standby state, the process returns to the main routine. If the result is YES, that is, if the status flag 1a indicates the drive system operating status, the process moves to step Sll. In step Sll, it is determined whether printing of the data in the RAM 3 has been completed. If the result is No, the process moves to step S12. In step S12, the print head 10 performs a printing process to print on the print paper, and the process moves to step S13.

ステップS13では、アラームタイマ1bの計時を再ス
タートさせてメインルーチンに復帰する。さて、ステッ
プSllにおいてYESの結果が出たならば、即ちRA
M3のデータの印字が終了したならば、ステップS14
に移る。ステップS14では、アラームタイマ1bの計
時を停止させてリセットする。そして、マイクロプロセ
ッサ1からの駆動信号をオフしてドライブ回路7のスイ
ッチ手段7aをオフ状態にし、スペースモータ11の動
作を停止させ、メインルーチンに復帰する。
In step S13, the alarm timer 1b is restarted to return to the main routine. Now, if the result of step Sll is YES, that is, RA
When printing of the data of M3 is completed, step S14
Move to. In step S14, the alarm timer 1b is stopped and reset. Then, the drive signal from the microprocessor 1 is turned off, the switch means 7a of the drive circuit 7 is turned off, the operation of the space motor 11 is stopped, and the process returns to the main routine.

以後RAM3に印字終了制御コードが格納されて、マイ
クロプロセッサ1により認識されるまで同様の動作が繰
返される。
Thereafter, the print end control code is stored in the RAM 3, and similar operations are repeated until it is recognized by the microprocessor 1.

さて、正常に印字ヘッド10による印字が行なわれてい
る場合には、センサ割り込みの処理を行なう毎にアラー
ムタイマ1bが再スタートされるため、所定の計時を行
なう、即ちリセット状態になることがない。しかし、セ
ンサ割り込みは、センサ部13からのセンサ信号に基づ
いて行なわれる。このため、何らかの原因でスペースモ
ータ11の回転が停止した場合には、スリットエンコー
ダ13aが回転しなくなり、センサ信号が出力されなく
なる。
Now, when printing is being performed normally by the print head 10, the alarm timer 1b is restarted every time a sensor interrupt is processed, so that the predetermined time measurement is performed, that is, the alarm timer 1b is not in a reset state. . However, the sensor interrupt is performed based on a sensor signal from the sensor section 13. Therefore, if the space motor 11 stops rotating for some reason, the slit encoder 13a will stop rotating and no sensor signal will be output.

これによりセンサ割り込みが発生せず、アラームタイマ
1bが所定の値を計時して一定時間経過することになる
。アラームタイマ1bが所定の値を計時すると、アラー
ムタイマ割り込みが発生する。
As a result, no sensor interrupt occurs, and the alarm timer 1b measures a predetermined value for a certain period of time. When the alarm timer 1b measures a predetermined value, an alarm timer interrupt occurs.

第5図に、アラームタイマ割り込みのフローチャートを
示す。
FIG. 5 shows a flowchart of alarm timer interrupt.

図のようにアラームタイマ割り込みが発生すると、マイ
クロプロセッサ1からの駆動信号がオフされる(ステッ
プ515)。これにより、ドライブ回路7のスイッチ手
段7aが強制的にオフ状態になり、スペースモータ11
への電源の供給がストップし、スペースモータ11の発
熱及び発煙事故を防止することができる。
When an alarm timer interrupt occurs as shown in the figure, the drive signal from the microprocessor 1 is turned off (step 515). As a result, the switch means 7a of the drive circuit 7 is forcibly turned off, and the space motor 11
The supply of power to the space motor 11 is stopped, thereby preventing the space motor 11 from overheating and causing smoke.

さて、何らかの原因で状態フラグ1aがOの状態にもか
かわらず、ドライブ回路7のスイッチ手段7aがオン状
態になった場合について説明する。
Now, a case will be described in which the switch means 7a of the drive circuit 7 is turned on even though the status flag 1a is in the O state for some reason.

この状態は、状態フラグ1aによると駆動系6は待機状
態であるが、実際には駆動系6が動作状態になっている
という異常事態を示している。
This state indicates an abnormal situation in which the drive system 6 is in a standby state according to the status flag 1a, but the drive system 6 is actually in an operating state.

この場合、第3図に示したように、ステップS2におい
て状態フラグ1aが1か否かを判断する。この場合、結
果はNoだからステップS3を実行する。ステップS3
では、先に説明したように、ドライブ回路7のスイッチ
手段7aを強制的にオフ状態にするため、スペースモー
タ11への電源の供給が遮断される。これにより、状態
フラグ1aによると駆動系6が待機状態であるはずだが
、実際には駆動系6が動作状態になっている場合に、状
態フラグ1aが示すように速やかに駆動系6のその動作
状態を解除することができる。
In this case, as shown in FIG. 3, it is determined in step S2 whether the status flag 1a is 1 or not. In this case, since the result is No, step S3 is executed. Step S3
Now, as described above, in order to forcibly turn off the switch means 7a of the drive circuit 7, the power supply to the space motor 11 is cut off. As a result, if the drive system 6 is supposed to be in the standby state according to the status flag 1a, but in reality the drive system 6 is in the operating state, the drive system 6 is immediately activated as indicated by the status flag 1a. The state can be canceled.

第3図において説明したように、ドライブ回路7のスイ
ッチ手段7aを強制的にオフする処理(ステップS3)
は、ステップS2、S3、S4、S5、S6、そしてS
2といったループを回る毎に−回行なわれるため、状態
フラグ1aが駆動系6の待機状態を示しているかぎり繰
返し行なわれる。
As explained in FIG. 3, the process of forcibly turning off the switch means 7a of the drive circuit 7 (step S3)
is steps S2, S3, S4, S5, S6, and S
Since the process is repeated - times every time a loop such as 2 is passed, the process is repeated as long as the status flag 1a indicates the standby state of the drive system 6.

本発明のプリンタは、以上の実施例に限定されない。The printer of the present invention is not limited to the above embodiments.

第6図に、本発明に係る他の実施例のフローチャートを
示す。
FIG. 6 shows a flowchart of another embodiment according to the present invention.

通常、プリンタにはマイクロプロセッサ1に設けられた
アラームタイマ1bの他に、可動部分9のスペースモー
タ11や、改行モータ12の駆動時間設定に駆動タイマ
が設けられている。そして第3図に示したメインルーチ
ンの処理を行なっていた場合には、この駆動タイマ割り
込みが発生して、駆動タイマを再スタートさせる処理を
行なう。
Usually, in addition to the alarm timer 1b provided in the microprocessor 1, a printer is provided with a drive timer for setting the drive time of the space motor 11 of the movable part 9 and the line feed motor 12. If the main routine shown in FIG. 3 is being executed, this drive timer interrupt is generated and the drive timer is restarted.

駆動タイマ割り込みが発生すると、マイクロプロセッサ
1は、駆動系6が動作状態か否かを判断する(ステップ
520)。ステップS20によりNoの結果が出ると、
ステップS21に移る。ステップS21では、ドライブ
回路7のスイッチ7aをオフ状態にし、可動部分9への
電源の供給を遮断し、ステップS22に移る。ステップ
S22では、駆動タイマを再スタートさせてメインルー
チンに戻る。ステップS20においてYESの結果が出
ると、ステップS23に移る。
When the drive timer interrupt occurs, the microprocessor 1 determines whether the drive system 6 is in an operating state (step 520). If the result of step S20 is No,
The process moves to step S21. In step S21, the switch 7a of the drive circuit 7 is turned off to cut off the power supply to the movable part 9, and the process moves to step S22. In step S22, the drive timer is restarted and the process returns to the main routine. If the result of step S20 is YES, the process moves to step S23.

ステップ23では、ドライブ回路7を介して可動部分9
電源が供給され、通常の動作を行ないステップS22に
移る。
In step 23, the movable part 9 is
Power is supplied, normal operation is performed, and the process moves to step S22.

以上のように、ドライブ回路7から可動部分9に電源を
供給する都度、駆動系6が動作状態にあるのか否かを判
断することにより、異常事態を回避することができる。
As described above, abnormal situations can be avoided by determining whether or not the drive system 6 is in an operating state each time power is supplied from the drive circuit 7 to the movable part 9.

また、強制的に電源を遮断する媒体はスペースモータ1
1に限らず、可動部分9全体や、マイクロプロセッサ1
等の制御によらずに動作しては困る部分に対しても用い
ることができる。
Also, the medium for forcibly cutting off the power is Space Motor 1.
1, the entire movable part 9, and the microprocessor 1.
It can also be used for parts that would be difficult to operate without such control.

(発明の効果) 以上の構成の本発明のプリンタは、駆動系が待機状態に
あるとき、繰返し強制的に可動部分への電源の供給を遮
断するため、駆動系が動作状態にあるときに発生する障
害に対してのみでなく、如何なる場合においてもその障
害による可動部分の発熱や発煙事故を未然に防ぐことが
できる。
(Effects of the Invention) The printer of the present invention configured as described above repeatedly forcibly cuts off the power supply to the movable parts when the drive system is in a standby state, so that when the drive system is in an operating state, It is possible to prevent accidents such as heat generation and smoke generation of movable parts due to such failures, not only in the case of such failures, but also in any case.

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

第1図は本発明のプリンタに係る要部ブロック図、第2
図は従来のプリンタのブロック図、第3図は本発明のプ
リンタの動作を示すフローチャート、第4図は本発明の
プリンタに係るセンサ割り込みのフローチャートである
、第5図は本発明に係るアラームタイマ割り込みのフロ
ーチャート、第6図は本発明の他の実施例の動作を示す
フローチャートである。 1・・・マイクロプロセッサ、la・・・状態フラグ、
1b・・・アラームタイマ、6・・・駆動系、7・・・
ドライブ回路、7a・・・スイッチ手段、8・・・電源
、20・・・状態フラグ認識手段、25・・・電源制御
手段。 特許出願人 沖電気工業株式会社 第1図 木元明のブリ7り0動作を〒、ナフローチャート第3図 廿ンサWA送Hのフロー升ヤード 第4図 アラームクイマ割込みのフローチャート第5図
FIG. 1 is a block diagram of main parts related to the printer of the present invention, and FIG.
Figure 3 is a block diagram of a conventional printer, Figure 3 is a flowchart showing the operation of the printer of the invention, Figure 4 is a flowchart of sensor interrupts in the printer of the invention, and Figure 5 is an alarm timer according to the invention. Flowchart of Interruption FIG. 6 is a flowchart showing the operation of another embodiment of the present invention. 1... Microprocessor, la... Status flag,
1b...Alarm timer, 6...Drive system, 7...
Drive circuit, 7a... Switch means, 8... Power supply, 20... Status flag recognition means, 25... Power supply control means. Patent applicant: Oki Electric Industry Co., Ltd. Figure 1: Akira Kimoto's flowchart Figure 3: Flowchart of WA transmission H Figure 4: Flowchart of alarm interrupt Figure 5

Claims (1)

【特許請求の範囲】 機械的可動部分を持つ駆動系を動作させている駆動系動
作状態と、 前記駆動系を動作させていない駆動系待機状態とを有す
るプリンタにおいて、 前記駆動系動作状態と前記駆動系待機状態とを区別して
表示する状態フラグと、 前記状態フラグが前記駆動系動作状態を表示していた場
合、 前記駆動系の可動部分の動作が停止してから一定時間経
過後に前記駆動系の前記可動部分への電源の供給を強制
的に遮断し、 前記状態フラグが前記駆動系待機状態を表示していた場
合、 前記駆動系の前記可動部分への電源の供給を強制的に遮
断する電源制御手段を有することを特徴とするプリンタ
[Scope of Claims] A printer having a drive system operating state in which a drive system having a mechanically movable part is operating, and a drive system standby state in which the drive system is not operating, wherein the drive system operating state and the drive system standby state include the following: a status flag that distinguishes and displays a standby state of the drive system; and if the status flag indicates the operating state of the drive system, the drive system is activated after a certain period of time has elapsed since the movable parts of the drive system stopped operating; Forcibly cut off the power supply to the movable part of the drive system, and if the status flag indicates the drive system standby state, forcibly cut off the power supply to the movable part of the drive system. A printer characterized by having a power control means.
JP63067186A 1988-03-23 1988-03-23 Printer Expired - Lifetime JP2765849B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63067186A JP2765849B2 (en) 1988-03-23 1988-03-23 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63067186A JP2765849B2 (en) 1988-03-23 1988-03-23 Printer

Publications (2)

Publication Number Publication Date
JPH01241477A true JPH01241477A (en) 1989-09-26
JP2765849B2 JP2765849B2 (en) 1998-06-18

Family

ID=13337614

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63067186A Expired - Lifetime JP2765849B2 (en) 1988-03-23 1988-03-23 Printer

Country Status (1)

Country Link
JP (1) JP2765849B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56108142A (en) * 1980-01-31 1981-08-27 Sharp Corp Detection/control system for motor locking state of printer
JPS6087083A (en) * 1983-10-20 1985-05-16 Canon Inc Printer-controlling system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56108142A (en) * 1980-01-31 1981-08-27 Sharp Corp Detection/control system for motor locking state of printer
JPS6087083A (en) * 1983-10-20 1985-05-16 Canon Inc Printer-controlling system

Also Published As

Publication number Publication date
JP2765849B2 (en) 1998-06-18

Similar Documents

Publication Publication Date Title
JPH01226374A (en) Electronic type typewriter
EP1806234B9 (en) Printer and printing method
JP3149168B2 (en) Printing device
EP0568765B1 (en) Peripheral unit control panel with smart key
JPH01241477A (en) Printer
US4894798A (en) Automatic stop code insertion feature for a word processing apparatus
EP1324196B1 (en) Method of initializing multiple devices and a control system for controlling multiple devices
JP2733395B2 (en) Drive system controller
JP2008276350A (en) Electronic apparatus, printer, method for setting reset validation in electronic apparatus, and program
JP3124881B2 (en) Printer control device
JP2000010826A (en) Drive controller, and drive control method for drive controller
JPH04169257A (en) Printer
JPH08328681A (en) Information processing unit, printer, print system and power supply control method for print system
JPH04177530A (en) Managing method for electronic apparatus
JPH0557995A (en) Printer
JPH04140180A (en) Terminal printer
JPH01122395A (en) Protective device for drive circuit
JPH01304981A (en) Printer
JPH086811A (en) Self-diagnostic result output control system
JPH0933897A (en) Operation panel display controller for printing device
JPH09131950A (en) Printer system device
JPH03278201A (en) Protection device for control system
JPH08185293A (en) Printer and its print control method
JPH05324226A (en) Printer controller
JPH01242283A (en) Abnormality diagnostic apparatus for microcomputer internally stored machinery

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term