Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2765849B2 - Printer - Google Patents
[go: Go Back, main page]

JP2765849B2 - Printer - Google Patents

Printer

Info

Publication number
JP2765849B2
JP2765849B2 JP63067186A JP6718688A JP2765849B2 JP 2765849 B2 JP2765849 B2 JP 2765849B2 JP 63067186 A JP63067186 A JP 63067186A JP 6718688 A JP6718688 A JP 6718688A JP 2765849 B2 JP2765849 B2 JP 2765849B2
Authority
JP
Japan
Prior art keywords
drive system
state
sensor
printer
drive
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.)
Expired - Lifetime
Application number
JP63067186A
Other languages
Japanese (ja)
Other versions
JPH01241477A (en
Inventor
忠雄 清水
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

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Character Spaces And Line Spaces In Printers (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、コンピュータやワードプロセッサ等の周辺
機器の一つとして多用されているプリンタに関する。
Description: TECHNICAL FIELD The present invention relates to a printer that is frequently used as one of peripheral devices such as a computer and a word processor.

(従来の技術) コンピュータ等の周辺機器の一つとして多用されてい
るプリンタは、コンピュータ等からデータを受信して、
各種の情報を印字する。
(Prior Art) A printer that is frequently used as one of peripheral devices such as a computer receives data from the computer or the like,
Print various 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, a random access memory (RAM) 3, a control circuit 4, an interface driver / receiver circuit 5, and a drive system connected thereto. 6 is comprised.

マイクロプロセッサ1は、このプリンタ全体を制御管
理する回路である。この回路は、後に説明する駆動系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とから構成されている。印字ヘッド10
は、図示しない印字用紙等の印字媒体に文字等を印字す
るものである。スペースモータ11は、印字ヘッド10を駆
動するモータである。センサ部13は、スリットエンコー
ダ13aと、センサ13bとから構成されている。スリットエ
ンコーダ13aは、スペースモータ11に連動して回転し、
放射状に多数のスリットを開けた円盤状の板である。セ
ンサ13bは、スリットエンコーダ13aを挟むように対向配
置された発光素子と、受光素子とから構成されている。
これらスリットエンコーダ13aとセンサ13bとにより、ス
ペースモータ11の回転を、即ち印字ヘッド10の移動量を
認識することができる。最後に、改行モータ12は、図示
しないプラテンを駆動するモータである。
The microprocessor 1 is a circuit that controls and manages the entire printer. This circuit includes a driving system 6 described later.
Status flag 1a consisting of registers for controlling power supply
And an alarm timer 1b composed of a counter. The ROM (read only memory) 2 is a read-only memory that stores programs, character font patterns, and the like. RAM (random access memory) 3
Is a memory for temporarily storing data output from the control circuit 4 and capable of performing writing and reading.
The control circuit 4 is a circuit that manages control of the interface driver / receiver circuit 5 and maintenance of operation of the drive system 6. The interface driver / receiver circuit 5 is a circuit for exchanging data with a computer (not shown) via an interface. The drive system 6 includes a drive circuit 7, a power supply 8, and a movable part 9. The drive circuit 7 is a circuit that controls 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. Movable part 9
Are the print head 10, the space motor 11, and the line feed motor
12 and a sensor unit 13. Print head 10
Prints characters and the like on a printing medium such as printing paper (not shown). The space motor 11 is a motor that drives the print head 10. The sensor unit 13 includes a slit encoder 13a and a sensor 13b. The slit encoder 13a rotates in conjunction with the space motor 11,
It is a disk-shaped plate with many slits opened radially. The sensor 13b includes a light emitting element and a light receiving element which are arranged to face each other with the slit encoder 13a interposed therebetween.
The rotation of the space motor 11, that is, the amount of movement of the print head 10 can be recognized by the slit encoder 13 a and the sensor 13 b. Finally, the line feed motor 12 is a motor for driving a platen (not shown).

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

まず、マイクロプロセッサ1に電源が投入されると、
ROM2からプログラムを読み出し実行する。このプログラ
ムの実行により、プリンタはイニシャル処理される。即
ち、マイクロプロセッサ1は、制御回路4及びドライブ
回路7に初期設定動作の指令を出し、インタフェースド
ライバ/レシーバ回路5のチェックと、駆動系6を何時
でも印字動作が行なえる状態に設定する。この状態を駆
動系待機状態(状態フラグ1aが0の状態)と呼ぶことに
する。
First, when the power of the microprocessor 1 is turned on,
Read and execute the program from ROM2. By executing this program, the printer is subjected to initial processing. That is, the microprocessor 1 issues an instruction for an initial setting operation 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 the printing operation can be performed at any time. This state is referred to as a drive system standby state (state in which the state flag 1a is 0).

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

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

即ち、マイクロプロセッサ1の入出力ポートからドラ
イブ回路7に向けて駆動信号が出力される。そして、ド
ライブ回路7は、この駆動信号に基づいてスペースモー
タ11に電源8からの電源を供給し、印字ヘッド10のスキ
ャニングを行なう。一方、マイクロプロセッサ1は、ス
ペースモータ11に連動して回転するスリットエンコーダ
13aとセンサ13bからの信号(センサ信号と呼ぶことにす
る)により、印字ヘッド10の位置と、スペースモータ11
の回転速度の制御を行なう。同時に、マイクロプロセッ
サ1は、スリットエンコーダ13aとセンサ13bからの信号
で、印字タイミングを認識し、RAM3に格納された印字デ
ータに基づいてROM2に格納された文字フォントパターン
から該当するものを読み出す。そして、ドライブ回路7
を介して印字のためのヘッド信号を印字ヘッド10に入力
し、順次RAM3に格納されたデータの印字を行なう。RAM3
に格納された1行分の印字データの印字が終了すると、
マイクロプロセッサ1は、ドライブ回路7への駆動信号
の出力を停止してスペースモータ11を停止させ、改行モ
ータ12により1行分の改行を行なう。
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 the drive signal, and scans the print head 10. On the other hand, the microprocessor 1 is a slit encoder that rotates in conjunction with the space motor 11.
13a and a signal from the sensor 13b (referred to as a sensor signal), the position of the print head 10 and the space motor 11
Control of the rotation speed. At the same time, the microprocessor 1 recognizes the print timing based on the signals from the slit encoder 13a and the sensor 13b, and reads a corresponding character from the character font pattern stored in the ROM 2 based on the print data stored in the RAM 3. And the drive circuit 7
The head signal for printing is input to the print head 10 via the printer, and the data stored in the RAM 3 is sequentially printed. RAM3
When printing of one line of print data stored in
The microprocessor 1 stops outputting the drive signal to the drive circuit 7 to stop the space motor 11, and the line feed motor 12 performs a line feed for one line.

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

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

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

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

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

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

(課題を解決するための手段) 本発明のプリンタは、複数の機械的可動部分を持つ駆
動系を動作させている駆動系動作状態と、駆動系を動作
させていない駆動系待機状態を有するプリンタにおい
て、駆動系動作状態と駆動系待機状態とを区別して状態
フラグを格納する状態フラグ格納手段と、少なくとも機
械的可動部分の一つに接続され、機械的可動部分の動作
を制御するためのセンサ信号を出力するセンサ部と、駆
動系の機械的可動部分への電源の供給を制御する電源制
御手段とを有する。
(Means for Solving the Problems) A printer according to the present invention has a drive system operating state in which a drive system having a plurality of mechanically movable parts is operated, and a drive system standby state in which the drive system is not operated. , A state flag storage means for storing a state flag by distinguishing between a drive system operation state and a drive system standby state, and a sensor connected to at least one of the mechanically movable parts for controlling the operation of the mechanically movable part It has a sensor unit for outputting a signal, and power supply control means for controlling supply of power to the mechanically movable part of the drive system.

電源制御手段は、状態フラグ記憶手段に記憶された状
態フラグが駆動系動作状態を示す場合に、駆動系の機械
的可動部分が動作中にセンサ部のセンサ出力が停止した
とき駆動系の機械的可動部分への電源の供給を強制的に
遮断する。
The power supply control means, when the status flag stored in the status flag storage means indicates the drive system operation state, when the sensor output of the sensor unit stops while the mechanically movable part of the drive system is operating, Power supply to moving parts is forcibly shut off.

又、電源制御手段は、状態フラグ記憶手段に記憶され
た状態フラグが駆動系待機状態を示す場合に、駆動系の
機械的可動部分が停止している受信待状態及び受信処理
状態のとき駆動系の機械的駆動部分への電源の供給を強
制的に繰り返し遮断し、センサ部のセンサ出力が発生し
たとき駆動系の機械的可動部分への電源の供給を強制的
に遮断する。
When the status flag stored in the status flag storage means indicates the drive system standby state, the power supply control means controls the drive system when the mechanical movable portion of the drive system is in the reception standby state and the reception processing state. The power supply to the mechanical drive portion of the drive system is forcibly and repeatedly cut off, and the supply of power to the mechanically movable portion of the drive system is forcibly cut off when the sensor output of the sensor section is generated.

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

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

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

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

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

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

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

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

以上の構成のプリンタの動作を第3図を用いて説明す
る。
The operation of the printer having the above configuration will be described with reference to FIG.

第3図は、本発明のプリンタの動作を示すフローチャ
ートである。
FIG. 3 is a flowchart showing the operation of the printer of the present invention.

まず、第1図に示したプリンタに電源が投入される
と、状態フラグ1aに0をセットする等のイニシャル処理
が行なわれる(ステップS1)。そして、状態フラグ認識
手段20により、状態フラグ1aの値が1か否かが判断され
る(ステップS2)。結果がNOならば、即ち駆動系6が待
機状態ならばステップS3に移る。ステップS3では、マイ
クロプロセッサ1の電源制御手段25を動作させて、ドラ
イブ回路7のスイッチ手段7aを強制的にオフ状態にセッ
トする(ステップS3)。このため、駆動系6の可動部分
9には電源の供給がなされず、その動作が行なわれるこ
とはない。次にステップS4に移り、インタフェースドラ
イバ/レシーバ回路5(第2図)にデータの入力(情報
受信)があったか否かを判断する(ステップS4)。ステ
ップS2においてYESならば、このステップS4にジャンプ
する。ステップS4の結果がNOならば、駆動系6を手動で
操作するための図示しない操作スイッチがオンされたか
否かが判断される(ステップS5)。この結果がNOなら
ば、ステップS6に移る。ステップS6では、RAM3に格納さ
れたデータを印字開始するか否かを判断する(ステップ
S6)。この結果がNOならばステップS2に戻る。よって、
駆動系6が待機状態のときは、ステップS2、S3、S4、S
5、S6、そしてステップS2に戻るといったループを回
る。
First, when power is turned on to the printer shown in FIG. 1, initial processing such as setting the status flag 1a to 0 is performed (step S1). Then, the state flag recognizing means 20 determines whether or not the value of the state flag 1a is 1 (step S2). If the result is NO, that is, if the drive system 6 is in the standby state, the process proceeds to step S3. In step S3, 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, power is not supplied to the movable portion 9 of the drive system 6, and the operation is not performed. Next, the process proceeds to step S4, where it is determined whether or not data has been input (information received) to the interface driver / receiver circuit 5 (FIG. 2) (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, the process moves to step S6. In step S6, it is determined whether to start printing the data stored in RAM3 (step S6).
S6). If this result is NO, the process returns to step S2. Therefore,
When the drive system 6 is in the standby state, steps S2, S3, S4, S
The loop goes around 5, 5, and then back to step S2.

さて、ステップS4においてYESの結果が出たならば、
即ちインタフェースドライバ/レシーバ回路5(第2
図)にデータの入力があった場合、ステップS7に移る。
ステップS7では、インタフェースドライバ/レシーバ回
路5に入力したデータを制御回路4を介してRAM3に格納
する受信処理を行なった後ステップS2に戻る。次にステ
ップS5においてYESの結果が出たならば、即ち操作スイ
ッチがオンされたならばステップS8に移る。ステップS8
では、操作スイッチに対応して制御回路4により駆動系
6を制御し、可動部分9を動作させた後ステップS2に移
る。そして、ステップS6においてTESの結果が出たなら
ばステップS9に移る。ステップS9では、マイクロプロセ
ッサ1からドライブ回路7に駆動信号が出力され、スイ
ッチ手段7aをオン動作させる。次に、マイクロプロセッ
サ1のアラームタイマ1bの計時を開始させる。そして状
態フラグ1aに1をセットする。これにより、駆動系6は
動作状態に設定されたことになる。
Now, if a YES result is obtained in step S4,
That is, the interface driver / receiver circuit 5 (second
If there is data input in FIG.
In step S7, a reception process for storing the data input to the interface driver / receiver circuit 5 in the RAM 3 via the control circuit 4 is performed, and then 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 proceeds to step S8. Step S8
Then, the drive system 6 is controlled by the control circuit 4 corresponding to the operation switch, and after the movable portion 9 is operated, the process proceeds to step S2. When the result of TES is obtained in step S6, the process proceeds to step S9. In step S9, a drive signal is output from the microprocessor 1 to the drive circuit 7, and the switch 7a is turned on. Next, the clock of the alarm timer 1b of the microprocessor 1 is started. Then, 1 is set to the state flag 1a. As a result, the drive system 6 is set to the operating state.

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

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

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

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

センサ割り込みが発生すると、マイクロプロセッサ1
は、状態フラグ1aが1か否かを判断する(ステップS1
0)。この結果がNOならば、即ち状態フラグ1aが駆動系
待機状態を示していたらメインルーチンに復帰する。結
果がYESならば、即ち状態フラグ1aが駆動系動作状態を
示していたらステップS11に移る。ステップS11では、RA
M3のデータの印字が終了したか否かが判断される。結果
がNOならばステップS12に移る。ステップS12では、印字
ヘッド10により印字用紙に印字する印字処理を行ない、
ステップS13に移る。ステップS13では、アラームタイマ
1bの計時を再スタートさせてメインルーチンに復帰す
る。さて、ステップS11においてYESの結果が出たなら
ば、即ちRAM3のデータの印字が終了したならば、ステッ
プS14に移る。ステップS14では、アラームタイマ1bの計
時を停止させてリセットする。そして、マイクロプロセ
ッサ1からの駆動信号をオフしてドライブ回路7のスイ
ッチ手段7aをオフ状態にし、スペースモータ11の動作を
停止させ、メインルーチンに復帰する。
When a sensor interrupt occurs, the microprocessor 1
Determines whether the status flag 1a is 1 (step S1).
0). 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 driving system operation state, the process proceeds to step S11. In step S11, RA
It is determined whether the printing of the M3 data has been completed. If the result is NO, the process moves to step S12. In step S12, a printing process for printing on printing paper by the print head 10 is performed.
Move to step S13. In step S13, the alarm timer
Restart the timing of 1b and return to the main routine. If the result of step S11 is YES, that is, if the printing of the data in the RAM 3 has been completed, the process proceeds to step S14. In step S14, the timer of 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 same operation is repeated until the print end control code is stored in the RAM 3 and recognized by the microprocessor 1.

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

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

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

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

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

この状態は、状態フラグ1aによると駆動系6は待機状
態であるが、実際には駆動系6が動作状態になっている
という異常事態を示している。
This state indicates an abnormal situation in which the drive system 6 is in the standby state according to the state flag 1a, but is actually in the 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 whether or not the status flag 1a is 1 in step S2. In this case, since the result is NO, step S3 is executed. In step S3, as described above, the power supply to the space motor 11 is cut off in order to forcibly turn off the switch means 7a of the drive circuit 7, whereby the drive system according to the state flag 1a is turned off. Although the driving system 6 should be in the standby state, when the driving system 6 is actually operating, the operating state of the driving system 6 can be quickly released as indicated by the status flag 1a.

第3図において説明したように、ドライブ回路7のスイ
ッチ手段7aを強制的にオフする処理(ステップS3)は、
ステップS2、S3、S4、S5、S6、そしてS2といったループ
を回る毎に一回行なわれるため、状態フラグ1aが駆動系
6の待機状態を示しているかぎり繰返し行なわれる。
As described with reference to FIG. 3, the processing for forcibly turning off the switch means 7a of the drive circuit 7 (step S3) is as follows.
It is performed once each time the loop of steps S2, S3, S4, S5, S6, and S2 is performed, and thus 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 embodiment.

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

通常、プリンタにはマイクロプロセッサ1に設けられ
たアラームタイマ1bの他に、可動部分9のスペースモー
タ11や、改行モータ12の駆動時間設定に駆動タイマが設
けられている。そして第3図に示したメインルーチンの
処理を行なっていた場合には、この駆動タイマ割り込み
が発生して、駆動タイマを再スタートさせる処理を行な
う。
Normally, the 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 in addition to the alarm timer 1 b provided in the microprocessor 1. When the processing of the main routine shown in FIG. 3 has been performed, this driving timer interrupt is generated, and processing for restarting the driving timer is performed.

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

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

また、強制的に電源を遮断する媒体はスペースモータ
11に限らず、可動部分9全体や、マイクロプロセッサ1
等の制御によらずに動作しては困る部分に対しても用い
ることができる。
The medium for forcibly shutting off the power is a space motor.
Not only 11 but also the entire movable part 9 and the microprocessor 1
It can also be used for parts where it is not necessary to operate without control.

(発明の効果) 以上の構成の本発明のプリンタは、プリンタが受信待
状態及び受信処理中である駆動系待機状態にあるときに
誤って駆動系が動作した場合であっても、繰り返し機械
的可動部分への電源の供給を遮断するため、駆動系が動
作状態にあるときに発生する障害に対してのみだけでな
く、如何なる場合においても障害による機械的可動部分
の発熱や回路素子等の破損を未然に防ぐことができる。
従って、入力電源の雑音電圧や静電気さらには温湿度や
振動等がある過酷な環境条件に設置され待機状態で駆動
系が誤動作した場合であっても、確実に駆動系への電源
供給を遮断できるので安全性の高いプリンタを提供する
ことができる。又、プリンタが受信処理中の場合であっ
ても、繰り返し駆動系への電源供給を遮断しているの
で、受信メモリ容量が大きく受信処理にかなりの時間を
費やすプリンタであっても、駆動系の誤動作を確実に停
止させることができる。即ち、プリンタが如何なる状態
のときでも誤動作によって機械的可動部分へ電源が供給
されることがなく、機械的可動部分の発熱や回路素子等
が破損することのないプリンタを提供することができ
る。
(Effects of the Invention) The printer according to the present invention having the above-described structure can be repeatedly mechanically operated even when the drive system is operated by mistake while the printer is in the reception standby state or the drive system standby state during reception processing. In order to cut off the power supply to the movable parts, not only against failures that occur when the drive system is in the operating state, but also in any case, heat generated by mechanical failures due to failures and damage to circuit elements etc. Can be prevented beforehand.
Therefore, even if the drive system malfunctions in the standby state when the device is installed under severe environmental conditions including noise voltage and static electricity of the input power supply, and furthermore, temperature, humidity, vibration, etc., the power supply to the drive system can be reliably shut off. Therefore, a highly secure printer can be provided. Even when the printer is performing reception processing, since the power supply to the drive system is repeatedly cut off, even if the printer has a large reception memory capacity and spends a considerable amount of time in the reception processing, the drive system cannot be used. Malfunction can be reliably stopped. That is, it is possible to provide a printer in which power is not supplied to a mechanically movable portion due to a malfunction even when the printer is in any state, and heat generated in the mechanically movable portion and circuit elements are not damaged.

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

第1図は本発明のプリンタに係る要部ブロック図、第2
図は従来のプリンタのブロック図、第3図は本発明のプ
リンタの動作を示すフローチャート、第4図は本発明の
プリンタに係るセンサ割り込みのフローチャートであ
る、第5図は本発明に係るアラームタイマ割り込みのフ
ローチャート、第6図は本発明の他の実施例の動作を示
すフローチャートである。 1…マイクロプロセッサ、1a…状態フラグ、1b…アラー
ムタイマ、6…駆動系、7…ドライブ回路、7a…スイッ
チ手段、8…電源、20…状態フラグ認識手段、25…電源
制御手段。
FIG. 1 is a block diagram showing a main part of a printer according to the present invention.
FIG. 3 is a block diagram of a conventional printer, FIG. 3 is a flowchart showing the operation of the printer of the present invention, FIG. 4 is a flowchart of a sensor interrupt of the printer of the present invention, and FIG. 5 is an alarm timer of the present invention. FIG. 6 is a flowchart showing the operation of another embodiment of the present invention. DESCRIPTION OF SYMBOLS 1 ... Microprocessor, 1a ... State flag, 1b ... Alarm timer, 6 ... Drive system, 7 ... Drive circuit, 7a ... Switch means, 8 ... Power supply, 20 ... State flag recognition means, 25 ... Power supply control means.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数の機械的可動部分を持つ駆動系を動作
させている駆動系動作状態と、 前記駆動系を動作させていない駆動系待機状態を有する
プリンタにおいて、 前記駆動系動作状態と前記駆動系待機状態とを区別して
状態フラグを格納する状態フラグ格納手段と、 少なくとも前記機械的可動部分の一つに接続され、該機
械的可動部分の動作を制御するためのセンサ信号を出力
するセンサ部と、 前記駆動系の機械的可動部分への電源の供給を制御する
電源制御手段とを有し、 前記電源制御手段は、 前記状態フラグ記憶手段に記憶された状態フラグが前記
駆動系動作状態を示す場合に、前記駆動系の機械的可動
部分が動作中に前記センサ部のセンサ出力が停止したと
き該駆動系の機械的可動部分への電源の供給を強制的に
遮断し、 前記状態フラグ記憶手段に記憶された状態フラグが前記
駆動系待機状態を示す場合に、前記駆動系の機械的可動
部分が停止している受信待状態及び受信処理状態のとき
該駆動系の機械的可動部分への電源の供給を強制的に繰
り返し遮断し、前記センサ部のセンサ出力が発生したと
き該駆動系の機械的可動部分への電源の供給を強制的に
遮断することを特徴とするプリンタ。
1. A printer having a driving system operating state in which a driving system having a plurality of mechanically movable parts is operated, and a driving system standby state in which the driving system is not operated, wherein the driving system operating state and the driving system State flag storage means for storing a state flag in distinction from the drive system standby state; a sensor connected to at least one of the mechanically movable parts and outputting a sensor signal for controlling the operation of the mechanically movable part And a power control means for controlling the supply of power to the mechanically movable part of the drive system, wherein the power control means is configured so that the status flag stored in the status flag storage means is the drive system operating state. When the sensor output of the sensor unit is stopped while the mechanically movable part of the drive system is operating, the supply of power to the mechanically movable part of the drive system is forcibly cut off, When the status flag stored in the flag storage means indicates the drive system standby state, the mechanical movable portion of the drive system is in the reception standby state and the reception processing state where the mechanical movable portion of the drive system is stopped. A power supply to the mechanically movable portion of the drive system is forcibly cut off when a sensor output of the sensor section is generated.
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 JPH01241477A (en) 1989-09-26
JP2765849B2 true 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)

Family Cites Families (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 control method

Also Published As

Publication number Publication date
JPH01241477A (en) 1989-09-26

Similar Documents

Publication Publication Date Title
US8330987B2 (en) Printing apparatus, data storage medium, interface device, printer control method, and interface control method
EP0027861B1 (en) Typewriter including an apparatus for repositioning a printing element upon power return
JP2765849B2 (en) Printer
JPH041704B2 (en)
EP0249794A2 (en) Automatic stop code insertion feature for a word processing apparatus
JP2009223384A (en) Information processor
JP3124881B2 (en) Printer control device
JP2616323B2 (en) Line thermal head protection circuit
JP3635763B2 (en) Setting value rewriting method for computer peripheral device, computer peripheral device and printer
JP2733395B2 (en) Drive system controller
JPS6271685A (en) printing device
JPS6043528B2 (en) electronic typewriter
JPH03278201A (en) Control system protection device
JP2633636B2 (en) Printer motor driver protection system
KR890004512B1 (en) Printing control method of memory typewriter
JP2573415Y2 (en) Data output switching device
JP2883767B2 (en) Non-volatile memory control circuit
JP2003050712A (en) Microcomputer system
JPH0584750B2 (en)
JPH01122395A (en) Drive circuit protection device
JPH10254502A (en) Execution state control method for program
JPH05151510A (en) Magnetic disk device
JPH0326664B2 (en)
JPH02151914A (en) Memory card supervisory device
JPS6367615A (en) Power supply control system at time of automatic operation

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term