JPH03278201A - Protection device for control system - Google Patents

Protection device for control system

Info

Publication number
JPH03278201A
JPH03278201A JP2079496A JP7949690A JPH03278201A JP H03278201 A JPH03278201 A JP H03278201A JP 2079496 A JP2079496 A JP 2079496A JP 7949690 A JP7949690 A JP 7949690A JP H03278201 A JPH03278201 A JP H03278201A
Authority
JP
Japan
Prior art keywords
clock signal
circuit
stop
control clock
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2079496A
Other languages
Japanese (ja)
Inventor
Hiroyuki Karakawa
唐川 弘幸
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2079496A priority Critical patent/JPH03278201A/en
Publication of JPH03278201A publication Critical patent/JPH03278201A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Safety Devices In Control Systems (AREA)

Abstract

PURPOSE:To inhibit a driving device from driving a target to be controlled, to protect plural driving devices and plural targets to be controlled and to prevent the generation of a failure by detecting the stop of a control clock signal by a stop detecting means based upon a reference clock signal. CONSTITUTION:When a control clock signal phi is stopped, a decision circuit 50 decides the stop of the control clock signal phi based upon the reference clock CLK and outputs a stop signal to a stopping circuit 52 to stop the operation of respective driving circuits 40, 42, 44, so that respective driving circuits 40, 42, 44 and the targets (a printing head 6, a CR motor 7 and an LF motor 9) to be driven are protected and the generation of parts damage or overheat can surely be prevented. Since the circuit 50 is constituted so as to be driven synchronously with the reference clock CLK, the circuit 50 can be continuously normally driven even when the control clock signal phi is stopped and an electronic control part 5 and a printing mechanism 3 can be protected.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、中央処理装置とその制御の下で作動する駆動
装置とを備えた制御システムを保護する制御システムの
保護装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a control system protection device that protects a control system that includes a central processing unit and a drive device that operates under the control of the central processing unit.

[従来の技術] 従来より、中央処理装置(c p u)とその制御下に
ある駆動装置とを備えた制御システムでは、例えば、C
PUが、駆動装置の動作状態を検出する検出器から所定
周期で検出信号が入力されているか否かを判定し、所定
周期で入力されていないときには、タイマが所定時間を
計時した後に駆動装置を停止させて駆動装置の故障を未
然に防ぐ保護機能を備えている(特開昭55−1014
88号公報)。
[Prior Art] Conventionally, in a control system equipped with a central processing unit (CPU) and a drive device under the control of the central processing unit (CPU), for example,
The PU determines whether or not a detection signal is input at a predetermined period from a detector that detects the operating state of the drive device, and if the detection signal is not input at a predetermined period, the PU starts the drive device after the timer has counted a predetermined time. It has a protection function that prevents the drive unit from malfunctioning by stopping it (Japanese Patent Laid-Open No. 55-1014
Publication No. 88).

この種の制御システムでは、CPU自体に異常が起こっ
たときには、上記の保護機能は行使されず駆動装置の故
障を防止できないので、CPUが正常に動作しているか
否かを常時監視して、異常が起こったときにはCPUに
リセット信号を出力してCPUを初期状態に戻す装置(
ウォッチ・ドッグ・タイマと称されている)が設けられ
ていることが多い。例えば、外部から所定周期で割り込
み信号が入力される毎に、CPUが所定の割り込み処理
を実行してパルス信号を出力するように制御プログラム
を構成すると共に、そのパルス信号の周期が所定範囲を
超えて変化するとCPUのリセット端子にリセット信号
を出力するマルチバイブレータ回路を付設して制御シス
テムを保護することが考えられている(特公昭58−3
5291号公報)。
In this type of control system, if an abnormality occurs in the CPU itself, the above protection function is not activated and failure of the drive unit cannot be prevented. When this occurs, a device that outputs a reset signal to the CPU to return the CPU to its initial state (
A watch dog timer (also called a watch dog timer) is often provided. For example, a control program may be configured so that the CPU executes a predetermined interrupt process and outputs a pulse signal every time an interrupt signal is input from the outside at a predetermined period, and when the period of the pulse signal exceeds a predetermined range. It has been considered to protect the control system by attaching a multivibrator circuit that outputs a reset signal to the reset terminal of the CPU when the CPU changes.
5291).

[発明が解決しようとする課題] しかし、上記の保護装置では、CPUの生成する制御ク
ロック信号によらず独自のタイミングで駆動装置が動作
する非同期式制御システムの場合には、保護機能を発揮
できるものの、制御クロック信号に基づいて駆動装置の
動作タイミングが決定される同期式システムの場合には
、保護機能を発揮できない。例えば、CPUが省電力モ
ードに移行すべく自からの動作を停止する命令(例えば
、HALT命令)を実行したときや、CPUがノイズを
制御クロック信号の停止命令信号として受け一 取って誤動作したときは、CPU自体が動作を停止する
と共に制御クロック信号も停止してしまうので、駆動装
置が制御不能状態となるばかりでなく、駆動装置として
、発熱装置や高トルクのモタ等を用いた場合には故障を
起こすことになる。
[Problems to be Solved by the Invention] However, the above-mentioned protection device can perform the protection function in the case of an asynchronous control system in which the drive device operates at its own timing without depending on the control clock signal generated by the CPU. However, in the case of a synchronous system in which the operating timing of the drive device is determined based on a control clock signal, the protection function cannot be achieved. For example, when the CPU executes an instruction to stop its own operation (for example, a HALT instruction) in order to enter a power saving mode, or when the CPU receives noise as a stop command signal of the control clock signal and malfunctions. In this case, the CPU itself stops operating and the control clock signal also stops, so not only will the drive unit become uncontrollable, but if a heat generating device, high torque motor, etc. is used as the drive unit, This will cause a malfunction.

そこで、本発明は、中央処理装置の制御クロック信号が
停止しても制御システムを保護できる制御システムの保
護装置を提供することを目的としてなされた。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a control system protection device that can protect the control system even if the control clock signal of the central processing unit stops.

[課題を解決するための手段] 本発明の要旨とするところは、 基準クロック信号を発生する発振回路と、該発振回路か
らの基準クロック信号に基づき制御対象を駆動制御する
ための制御クロック信号を生成する中央処理装置と、該
中央処理装置にて生成された制御クロック信号に基づき
制御対象を駆動する駆動装置とを備えた制御システムを
保護する制御システムの保護装置であって、基準クロッ
ク信号に基づき制御クロック信号の停止を検出する停止
検出手段と、停止検出手段にて上記制御クロック4− 信号の停止が検出されると、駆動装置による制御対象の
駆動を禁止する駆動禁止手段とを備えたことを特徴とす
る制御システムの保護装置にある。
[Means for Solving the Problems] The gist of the present invention is to provide an oscillation circuit that generates a reference clock signal, and a control clock signal that drives and controls a controlled object based on the reference clock signal from the oscillation circuit. A protection device for a control system that protects a control system including a central processing unit that generates a control clock signal and a drive device that drives a controlled object based on a control clock signal generated by the central processing unit, a stop detecting means for detecting a stop of the control clock signal based on the stop detecting means; and a drive inhibiting means for prohibiting the drive device from driving the controlled object when the stop detecting means detects the stop of the control clock signal. A control system protection device characterized by:

[作用] 以上のように構成された本発明の制御システムの保護装
置によれば、停止検出手段が、基準クロック信号に基づ
き制御クロック信号の停止を検出すると、駆動禁止手段
が、駆動装置による制御対象の駆動を禁止する。つまり
、制御クロック信号が停止すると駆動装置の動作タイミ
ングが取れなくなるが、このときには、駆動装置の駆動
動作を禁止して駆動装置及び制御対象を保護する。
[Operation] According to the control system protection device of the present invention configured as described above, when the stop detection means detects the stop of the control clock signal based on the reference clock signal, the drive prohibition means prevents the drive device from controlling the control clock signal. Prohibits driving of target. That is, when the control clock signal stops, the operation timing of the drive device cannot be determined, but at this time, the drive operation of the drive device is prohibited to protect the drive device and the controlled object.

[実施例] 以下に本発明の実施例を図面と共に説明する。[Example] Embodiments of the present invention will be described below with reference to the drawings.

まず、第1図は本発明を適用したプリンタの電気構成を
表すブロック図である。
First, FIG. 1 is a block diagram showing the electrical configuration of a printer to which the present invention is applied.

プリンタは、ドツトインパクト方式のシリアルプリンタ
であって、印字機構部3と電子制御部5とを主要部とし
て備えている。
The printer is a dot-impact type serial printer, and includes a printing mechanism section 3 and an electronic control section 5 as main parts.

印字(幾構部3には、キャリッジ(図示路)に搭載され
た印字ヘッド6と、キャリッジを駆動するステッピング
モータ(以下、CRモータという)7と、プラテン(図
示路)を駆動するステッピングモータ(以下、LFモー
タと呼ぶ)9とが備えられている。尚、印字機構部3の
機械的構成は周知であるので、詳細は省略する。
The printing section 3 includes a print head 6 mounted on a carriage (path shown), a stepping motor (hereinafter referred to as CR motor) 7 that drives the carriage, and a stepping motor (hereinafter referred to as CR motor) 7 that drives the platen (path shown). 9 (hereinafter referred to as an LF motor) is provided.The mechanical configuration of the printing mechanism section 3 is well known, so the details will be omitted.

印字ヘッド6は、移動方向を同じにしてマトリックス状
に配列されたドツトワイヤ(図示路)と、各ドツトワイ
ヤを印字方向へ駆動するソレノイド1]とを備え、各ソ
レノイド1]は電子制御部5内の印字ヘッド駆動回路4
0によって通電制御される。
The print head 6 includes dot wires (paths shown) arranged in a matrix in the same direction of movement, and a solenoid 1 which drives each dot wire in the printing direction. Print head drive circuit 4
The energization is controlled by 0.

電子制御部5は、相互にバス30で接続されたCPU3
2、ROM34、RAM36、及び入出力回路38を中
心に論理演算回路として構成され、入出力回路38には
、印字ヘッド駆動回路40、CRモータ駆動回路42、
LFモータ駆動回路44が接続されている。さらに、電
子制御部5には、基準クロック信号CLKを出力する発
振回路46と、CPLI32の作成する制御クロック信
号(後述する)φが停止したか否かを判定する判定回路
50と、判定回路50の判定結果に基づいて各駆動回路
40.42.44を停止させる停止回路52が備えられ
ている。
The electronic control unit 5 has CPUs 3 connected to each other via a bus 30.
2. It is configured as a logical operation circuit mainly including ROM 34, RAM 36, and input/output circuit 38, and the input/output circuit 38 includes a print head drive circuit 40, a CR motor drive circuit 42,
An LF motor drive circuit 44 is connected. Further, the electronic control unit 5 includes an oscillation circuit 46 that outputs a reference clock signal CLK, a determination circuit 50 that determines whether a control clock signal (described later) φ generated by the CPLI 32 has stopped, and a determination circuit 50 A stop circuit 52 is provided that stops each drive circuit 40, 42, 44 based on the determination result.

尚、本実施例では判定回路50が停止検出手段に、停止
回路52が駆動禁止手段に夫々相当する。
In this embodiment, the determination circuit 50 corresponds to stop detection means, and the stop circuit 52 corresponds to drive prohibition means.

CPLI32は、C−MOS(相補形の金属酸化物半導
体)タイプのマイクロプロツセサで、基準クロック信号
CLKから制御クロック信号φを作成して入出力回路3
8・印字ヘッド駆動回路40・判定回路50へ出力する
。又、CPU32は、電力消費を抑えるために、動作停
止命令(たとえば、HALT命令)を実行することで、
或はST○P端子に外部から停止信号が入力されること
で、制御クロック信号φを停止する機能(低消費電力モ
ードとかパワーダウンモードとか呼ばれている)を有し
ている。
The CPLI 32 is a C-MOS (complementary metal oxide semiconductor) type microprocessor that generates a control clock signal φ from the reference clock signal CLK and outputs it to the input/output circuit 3.
8. Output to print head drive circuit 40 and determination circuit 50. Furthermore, in order to reduce power consumption, the CPU 32 executes an operation stop command (for example, a HALT command).
Alternatively, it has a function (referred to as low power consumption mode or power down mode) of stopping the control clock signal φ by inputting a stop signal from the outside to the ST○P terminal.

ROM34には、各種処理のプログラムのほか、各文字
・図形に対応したドツトパターン、CRモモ−7の励磁
タイミングデータ(パルスレート)、一 ソレノイド11の通電時間データなどが格納されている
The ROM 34 stores various processing programs as well as dot patterns corresponding to each character and figure, excitation timing data (pulse rate) of the CR momo-7, energization time data of one solenoid 11, and the like.

印字ヘッド駆動回路40は、ドツトパターンブタラッチ
60と通電回路62とを備え、通電回路62には各ソレ
ノイド1]を通電するパワートランジスタ64とそのベ
ース端子に接続されたアンドゲート66とからなる。印
字ヘッド駆動回路40は、入出力回路38から、停止回
路52を介して、アンドゲート66の一方の入力端子T
1に入力される通電指令信号Sdrと、ドツトパターン
データラッチ60を介して、他方の入力端子T2二人力
されるドツトパターンデータとに基づいて、CRモモ−
7の階動に同期した印字ヘッド6の印字方向への移動ス
テップ毎に、ソレノイド11を選択的に所定時間通電し
て、所定の印字データに応じたパターンを記録する。通
電指令信号Sdrは、制御クロック信号φに基づいて計
られる所定時間の間、Highレベルとなり、その聞咎
ソレノイド11の通電が可能になり、ドツトパターンデ
ータにより指定されたソレノイド11が実際に通電さ=
8− れる。  そして、上記の移動ステップに伴う通電を所
定回数行うことによって所定サイズのマトリックスに文
字や図形を印字する。
The print head drive circuit 40 includes a dot pattern latch 60 and an energizing circuit 62, and the energizing circuit 62 includes a power transistor 64 that energizes each solenoid 1 and an AND gate 66 connected to its base terminal. The print head drive circuit 40 is connected to one input terminal T of the AND gate 66 from the input/output circuit 38 via the stop circuit 52.
The CR module is activated based on the energization command signal Sdr inputted to the input terminal T1 and the dot pattern data inputted to the other input terminal T2 via the dot pattern data latch 60.
At each step of movement of the print head 6 in the printing direction in synchronization with the stepwise movement of step 7, the solenoid 11 is selectively energized for a predetermined period of time to record a pattern corresponding to predetermined print data. The energization command signal Sdr remains at High level for a predetermined period of time measured based on the control clock signal φ, and the solenoid 11 becomes energized, and the solenoid 11 specified by the dot pattern data is actually energized. =
8- I can do it. Characters and figures are printed on a matrix of a predetermined size by performing energization a predetermined number of times in conjunction with the above-mentioned moving step.

ドツトパターンデータラッチ60は、入出力回路38か
ら入力されるドツトパターンデータを、通電回路62に
供給する。
The dot pattern data latch 60 supplies the dot pattern data input from the input/output circuit 38 to the energization circuit 62.

CRモータ駆動回路42は、入出力回路38から、停止
回路52を介して、入力されるパルス信号Spcに基づ
いて所定のシーケンスで、CRモモ−7の各相への通電
を行う。即ち、入出力回路38にて、ROM34の励磁
タイミングデータに基づき所定レートのパルス信号Sp
cが作成さ粗制御クロック信号φに同期してCRモータ
駆動回路42へ出力される。このパルス信号Spcに基
づいて、CRモータ駆動回路42がCRモモ−7を所定
速度で駆動する。LFモータ駆動回路44も、入出力回
路38から、停止回路52を介して、入力されるパルス
信号Splに基づいてし「モータ9を駆動する。
The CR motor drive circuit 42 energizes each phase of the CR motor 7 in a predetermined sequence based on the pulse signal Spc input from the input/output circuit 38 via the stop circuit 52. That is, the input/output circuit 38 generates a pulse signal Sp at a predetermined rate based on the excitation timing data of the ROM 34.
c is generated and output to the CR motor drive circuit 42 in synchronization with the coarse control clock signal φ. Based on this pulse signal Spc, the CR motor drive circuit 42 drives the CR momo-7 at a predetermined speed. The LF motor drive circuit 44 also drives the motor 9 based on the pulse signal Spl input from the input/output circuit 38 via the stop circuit 52.

発振回路46は、周知の水晶発振器であって、所定周波
数の基準クロック信号(方形波)をCPU32及び判定
回路50へ出力する。
The oscillation circuit 46 is a well-known crystal oscillator, and outputs a reference clock signal (square wave) of a predetermined frequency to the CPU 32 and the determination circuit 50.

第2図に示すように、判定回路50は、停止回路52と
共にゲートアレイとして一つのLSIチップに集積化さ
れているもので、5個の1ビツトカウンタ(以下、単に
カウンタという)70〜74、フリップフロップ75、
論理回路素子76〜80で構成されている。そして、カ
ウンタ70及びフリップフロップ75が、発振回路46
から入力される基準クロック信号CLKの立ち上がり及
び立ち下がりのタイミング(こ夫々同期して入力データ
をラッチし、カウンタ7]・73が基準クロック信号C
LKを1/4に分周した信号を、カウンタ72・74が
1/8に分周した信号を夫々出力すると共にカウンタ7
1・72及び73・74が制御クロックφのLowレベ
ル及び゛Highレベルのときに夫々リセットされるよ
うに回路構成されている。
As shown in FIG. 2, the determination circuit 50 is integrated into one LSI chip as a gate array together with a stop circuit 52, and includes five 1-bit counters (hereinafter simply referred to as counters) 70 to 74, flip flop 75,
It is composed of logic circuit elements 76 to 80. The counter 70 and the flip-flop 75 are connected to the oscillation circuit 46.
The rising and falling timings of the reference clock signal CLK input from
The counters 72 and 74 each output a signal obtained by dividing the frequency of LK into 1/4 and the counter 7 outputs a signal obtained by dividing the frequency into 1/8.
The circuit is configured such that signals 1, 72, 73, and 74 are reset when the control clock φ is at the low level and the high level, respectively.

判定回路50は、基準クロック信号CLKに基づいてC
PU32から制御クロック信号φが所定周期で入力され
ているか否かを判定し、制御クロック信号ψが停止した
と判定すると(信号レベルがHigh又はLowの一定
レベルに固定されると)、出力信号SemのレベルをH
ighからLowに切り換えて、停止回路52へ出力す
る。
The determination circuit 50 determines C based on the reference clock signal CLK.
It is determined whether the control clock signal φ is input from the PU 32 at a predetermined period, and when it is determined that the control clock signal φ has stopped (when the signal level is fixed at a constant level of High or Low), the output signal Sem level of H
It switches from high to low and outputs it to the stop circuit 52.

すなわち、第3図に示すように、制御クロックφが正常
なときには、カウンタ71・72及び73・74は制御
クロックφにより周期的に交互にリセットされるので、
カウンタ72及び74の出力レベルは常にLowになる
(図の(d)欄及び(f)欄)。従って、フリップフロ
ップ75の出力はHghレベルにラッチされたままなの
で(図の(1)欄)、判定回路50の出力信号Semの
レベルはHghになっている。
That is, as shown in FIG. 3, when the control clock φ is normal, the counters 71, 72 and 73, 74 are reset periodically and alternately by the control clock φ.
The output levels of the counters 72 and 74 are always Low (columns (d) and (f) in the figure). Therefore, since the output of the flip-flop 75 remains latched at the Hgh level (column (1) in the figure), the level of the output signal Sem of the determination circuit 50 is at the Hgh level.

しかし、制御クロック信号φが停止して(tl)Low
レベル状態に固定されると、カウンタ73及び74はリ
セットされないので、制御クロック信号φの停止(tl
)後、カウンタ70の出力信号(図の(b)欄)の立ち
上がりの時点(t2)で、カウンタ74の出力信号がH
ighになる。すると、カ1 ウンタ74のHigh時点(t2)以降の基準クロック
信号CLKの2回目の立ち下がり時点(t3)で、フリ
ップフロップ75の出力レベルはLowになるので、判
定回路50の出力信号SemはLowレベルとなる。カ
ウンタ74の出力信号は、Highレベルになった後、
基準クロック信号CLKの4周期目の立ち下がり時点(
t4)で再びLowレベルとなるが、フリップフロップ
75の出力がLowとなっているものがゲート77にフ
ィードバックされているので(図の(i)欄)、フリッ
プフロップ75の出力レベルはLow状態に保持され判
定回路50の出力信号SemはLowレベルのままであ
る。
However, the control clock signal φ stops and goes low (tl).
When the level state is fixed, the counters 73 and 74 are not reset, so the control clock signal φ is stopped (tl
), at the time (t2) when the output signal of the counter 70 (column (b) in the figure) rises, the output signal of the counter 74 becomes H.
Become intense. Then, at the second fall point (t3) of the reference clock signal CLK after the High point (t2) of the counter 74, the output level of the flip-flop 75 becomes Low, so the output signal Sem of the determination circuit 50 becomes It becomes Low level. After the output signal of the counter 74 becomes High level,
At the falling edge of the fourth cycle of the reference clock signal CLK (
At t4), the output level of the flip-flop 75 becomes low again, but since the low output of the flip-flop 75 is fed back to the gate 77 (column (i) in the figure), the output level of the flip-flop 75 becomes low. The output signal Sem of the determination circuit 50 remains at the Low level.

尚、第2図には示していないが、プリンタの起動時及び
CPU32のリセット時には、全カウンタ70〜74及
びフリップフロップ75がリセットされるように構成さ
れている。
Although not shown in FIG. 2, all the counters 70 to 74 and the flip-flop 75 are configured to be reset when the printer is started and when the CPU 32 is reset.

停止回路52は、3個のアンドゲート52a、52c、
52cで構成され2判定回路50からの入力信号Sem
のレベルがHighのときには、入出力回路38から入
力される信号のレベルを、その2 まま各駆動回路40.42.44へ出力する。
The stop circuit 52 includes three AND gates 52a, 52c,
52c, the input signal Sem from the 2 judgment circuit 50
When the level of is High, the level of the signal inputted from the input/output circuit 38 is output to each drive circuit 40, 42, and 44 as is.

方、入力信号SemのレベルがLowのときには、判定
回路50からの入力信号のレベルにかかわらず、Low
レベルの信号を、各駆動回路40.42.44へ出力す
る。つまり、判定回路50からの入力信号Semのレベ
ルがLowのときには、ソレノイド]1の通電は停止さ
れると共にCRモモ−7及びLFモータ9の駆動は停止
される。
On the other hand, when the level of the input signal Sem is Low, regardless of the level of the input signal from the determination circuit 50,
A level signal is output to each drive circuit 40, 42, 44. That is, when the level of the input signal Sem from the determination circuit 50 is Low, the energization of the solenoid 1 is stopped, and the driving of the CR motor 7 and the LF motor 9 is also stopped.

ここで、上記のように構成された電子制御部5において
、CPU32が印字のための処理を実行しているときに
、何らかの原因で5TOP端子からノイズ(NOIsE
)が入り制御クロック信号φが停止したとする。或は、
印字処理プログラム中に誤ってCPU停止命令が書き込
まれており(いわゆる、プログラムバグがあり)、この
命令を実行したため制御クロック信号φが停止したとす
る。ずなわち 印字ヘッド6ではソレノイド11(X−
通電中であり、CRモモ−7も回転しているときに、制
御クロック信号φが停止すると、制御り[−コックφに
よ−って通電時間を計測し、所定時間が経過したところ
でソレノイド]1への通電を停止する印字ヘッド駆動回
路40は、所定時間が経過していないとして通電し続け
る。CRモータ駆動回路42もCRモモ−7への通電タ
イミングがとれなくなりCRモモ−7を通電したままと
なる場合がある。そのためパワートランジスタが破壊さ
れたリソレノイド]1やCRモモ−7が過熱する。
Here, in the electronic control unit 5 configured as described above, when the CPU 32 is executing processing for printing, noise (NOIsE) is generated from the 5TOP terminal for some reason.
) is input and the control clock signal φ is stopped. Or,
Assume that a CPU stop command is written in the print processing program by mistake (there is a so-called program bug), and that the control clock signal φ is stopped because this command is executed. In the print head 6, the solenoid 11 (X-
When the control clock signal φ stops while the CR momo-7 is energized and is also rotating, the control starts [-The energization time is measured by the cock φ, and when a predetermined time elapses, the solenoid] The print head drive circuit 40, which stops energizing the print head 1, continues to energize the print head 1, assuming that the predetermined time has not elapsed. The CR motor drive circuit 42 may also fail to timely energize the CR momo-7, and the CR momo-7 may remain energized. As a result, the resolenoid 1 whose power transistor was destroyed and the CR momo 7 overheat.

しかし、電子制御部5では、制御クロック信号φが停止
すると、判定回路50が停止回路52に停止信号(信号
SemのレベルがHigh)を出力し、それを受けて停
止回路52が印字ヘッド駆動回路40の通電動作を停止
し、かつCRモータ駆動回路42によるCRモモ−7の
駆動を停止する(LFモータ9は駆動されていないが、
[Fモータ駆動回路44が作動できないようにする)。
However, in the electronic control unit 5, when the control clock signal φ stops, the determination circuit 50 outputs a stop signal (the level of the signal Sem is High) to the stop circuit 52, and in response, the stop circuit 52 outputs a stop signal to the print head drive circuit. 40 is stopped, and the driving of the CR momo-7 by the CR motor drive circuit 42 is stopped (although the LF motor 9 is not driven,
[Prevent the F motor drive circuit 44 from operating].

以上説明したように、本実施例は制御クロック信号φが
停止すると、判定回路50が基準クロックCL Kに基
づいて制御クロックφが停止したと判定し、停止回路5
2に停止信号を出力して、各駆動回路40.42.44
の作動を停止させるので、各駆動回路40.42.44
及び駆動対象(印字ヘッド6・CRモモ−7・LFモー
タ9)が保護さね部品破壊や過熱を確実に防ぐことがで
きる。
As explained above, in this embodiment, when the control clock signal φ stops, the determination circuit 50 determines that the control clock φ has stopped based on the reference clock CLK, and the stop circuit 50 determines that the control clock signal φ has stopped based on the reference clock CLK.
2 and output a stop signal to each drive circuit 40, 42, 44.
Each drive circuit 40.42.44
And the objects to be driven (print head 6, CR motor 7, LF motor 9) can be reliably prevented from being damaged or overheated.

さらに、判定回路50は、基準クロックCLKに同期し
て動作するように構成されているので、制御クロックφ
が停止しても正常に動作することができ、電子制御部5
及び印字機構3を保護することができる。
Furthermore, since the determination circuit 50 is configured to operate in synchronization with the reference clock CLK, the control clock φ
can operate normally even if the electronic control unit 5 stops.
And the printing mechanism 3 can be protected.

本実施例では、プリンタの電子制御部3を例に説明した
が、このほか、本発明は、中央処理装置の制御クロック
信号に基づき制御対象を駆動する駆動装置とを備えた制
御システムならば、様々な形態のシステムに適用できる
In this embodiment, the electronic control unit 3 of a printer has been described as an example, but the present invention can also be applied to a control system including a drive device that drives a controlled object based on a control clock signal of a central processing unit. Applicable to various types of systems.

[発明の効果] 以上詳述したように、本発明によれば停止検出手段が基
準クロック信号に基づき制御クロック信号の停止を検出
すると、駆動禁止手段が駆動装置による制御対象の駆動
を禁止するので、駆動装置及び制御対象を保護して、そ
れらの故障を未然に15− 防ぐことができる。
[Effects of the Invention] As detailed above, according to the present invention, when the stop detection means detects the stop of the control clock signal based on the reference clock signal, the drive prohibition means prohibits the drive device from driving the controlled object. 15- It is possible to protect the drive device and the controlled object and prevent their failure.

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

第1図はプリンタの電気的構成を表すブロック図、第2
図は判定回路の電子回路図、第3図は判定回路の動作を
表すタイミングチャートである。 3・・・印字機構部 5・・・電子制御部32・・・C
PU 40・・・印字ヘッド駆動回路 42・・・CRモータ駆動回路 44・・・LFモータ駆動回路 46・・・発振回路 50・・・判定回路52・・・停
止回路
Figure 1 is a block diagram showing the electrical configuration of the printer, Figure 2 is a block diagram showing the electrical configuration of the printer.
The figure is an electronic circuit diagram of the determination circuit, and FIG. 3 is a timing chart showing the operation of the determination circuit. 3... Printing mechanism section 5... Electronic control section 32...C
PU 40... Print head drive circuit 42... CR motor drive circuit 44... LF motor drive circuit 46... Oscillation circuit 50... Judgment circuit 52... Stop circuit

Claims (1)

【特許請求の範囲】 基準クロック信号を発生する発振回路と、該発振回路か
らの基準クロック信号に基づき制御対象を駆動制御する
ための制御クロック信号を生成する中央処理装置と、該
中央処理装置にて生成された制御クロック信号に基づき
制御対象を駆動する駆動装置と、を備えた制御システム
を保護する制御システムの保護装置であつて、 上記基準クロック信号に基づき制御クロック信号の停止
を検出する停止検出手段と、 該停止検出手段にて上記制御クロック信号の停止が検出
されると、上記駆動装置による制御対象の駆動を禁止す
る駆動禁止手段と、 を備えたことを特徴とする制御システムの保護装置。
[Scope of Claims] An oscillation circuit that generates a reference clock signal, a central processing unit that generates a control clock signal for driving and controlling a controlled object based on the reference clock signal from the oscillation circuit, and A drive device that drives a controlled object based on a control clock signal generated by a control system, and a stop that detects a stop of the control clock signal based on the reference clock signal. Protection of a control system, comprising: a detection means; and a drive prohibition means for prohibiting the drive device from driving a controlled object when the stop detection means detects a stop of the control clock signal. Device.
JP2079496A 1990-03-28 1990-03-28 Protection device for control system Pending JPH03278201A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2079496A JPH03278201A (en) 1990-03-28 1990-03-28 Protection device for control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2079496A JPH03278201A (en) 1990-03-28 1990-03-28 Protection device for control system

Publications (1)

Publication Number Publication Date
JPH03278201A true JPH03278201A (en) 1991-12-09

Family

ID=13691528

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2079496A Pending JPH03278201A (en) 1990-03-28 1990-03-28 Protection device for control system

Country Status (1)

Country Link
JP (1) JPH03278201A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0412001U (en) * 1990-05-18 1992-01-31
JP2012118686A (en) * 2010-11-30 2012-06-21 Fujitsu Ten Ltd Monitoring device and electronic device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0412001U (en) * 1990-05-18 1992-01-31
JP2012118686A (en) * 2010-11-30 2012-06-21 Fujitsu Ten Ltd Monitoring device and electronic device

Similar Documents

Publication Publication Date Title
JPH03278201A (en) Protection device for control system
KR20010104242A (en) Apparatus for controlling a drive mechanism, method for controlling a drive mechanism, method for verifying a drive operation of the drive mechanism, computer program of these methods and record medium for recording the same
JP2005122424A (en) Watchdog timer
JP2616323B2 (en) Line thermal head protection circuit
JP2002243800A (en) Abnormality detecting circuit and abnormality detecting device for semiconductor integrated circuit
JP2633636B2 (en) Printer motor driver protection system
JP2644403B2 (en) IC and its temperature alarm control method
JP2656954B2 (en) Printer print head control method
JP2688750B2 (en) Pachinko machine control device
JP2810219B2 (en) Apparatus for monitoring that predetermined processing is performed on an object that sequentially moves on a passage
JP3043042B2 (en) Thermal printer and print processing method thereof
JPS6369658A (en) Protection system in printer for printing head driver
JP2733395B2 (en) Drive system controller
JP3124881B2 (en) Printer control device
JP4121732B2 (en) Game machine
JPH01291959A (en) Printer
KR940012084A (en) Read-only sequence controller
JPS6274678A (en) Electronic typewriter
JPH07337054A (en) Motor controller
JP2837926B2 (en) Heating element drive circuit device
EP0406442B1 (en) Data write control means
JPH058649U (en) Operation monitoring device
JP2001337838A (en) Device for generating interrupt signal to central processing unit and method of interruption
JPS6371377A (en) Electronic machinery with printer
JPH05127780A (en) Semiconductor integrated circuit