JPS62151901A - Mechanism and protecting system for drive circuit - Google Patents

Mechanism and protecting system for drive circuit

Info

Publication number
JPS62151901A
JPS62151901A JP29086085A JP29086085A JPS62151901A JP S62151901 A JPS62151901 A JP S62151901A JP 29086085 A JP29086085 A JP 29086085A JP 29086085 A JP29086085 A JP 29086085A JP S62151901 A JPS62151901 A JP S62151901A
Authority
JP
Japan
Prior art keywords
circuit
drive
program control
lock
abnormality
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
JP29086085A
Other languages
Japanese (ja)
Inventor
Ichiro Urano
一郎 浦野
Tsutomu Fukushima
福嶋 勤
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.)
NEC Corp
NEC Engineering Ltd
Original Assignee
NEC Corp
NEC Engineering 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 NEC Corp, NEC Engineering Ltd filed Critical NEC Corp
Priority to JP29086085A priority Critical patent/JPS62151901A/en
Publication of JPS62151901A publication Critical patent/JPS62151901A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To previously protect a load and a circuit without applying stress to the mechanical load of a printer device and to a drive circuit and to recognize program control abnormalities with the aid of an abnormality display means by providing a means detecting the program control abnormality, a forcible driver lock means and an abnormal content display means. CONSTITUTION:The drive circuit 2 driving the mechanical load 1 such as a motor and a solenoid is controlled by a control circuit 3 mounting a microprocessor. Besides the control circuit 3, the titled system has the circuit 4 for detecting the program control abnormality, a drive lock display circuit 5 showing that the program control abnormality is detected, a drive lock circuit 6 which makes a drive circuit 2 inoperable, receiving an output signal from the detection circuit 4, and a switching circuit 7 invalidating the drive lock function of the drive lock circuit 6 in order to facilitate troubleshooting and program debugging. Thus such detection is made that the program control does not operate properly, and the drive circuit 2 is forcibly set in an action load state (drive locked state), thereby protecting the mechanical load 1 and the drive circuit 2.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、プログラムによる機構制御に関し、特にプロ
グラム制御異常時の機構及びこの機構を駆動する駆動回
路の保護方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to mechanism control by a program, and particularly to a protection system for a mechanism and a drive circuit that drives this mechanism in the event of an abnormality in program control.

〔従来の技術〕[Conventional technology]

近年、プリンタ装置等の各種の装置は、マイクロプロセ
ッサを搭載し、種々の機能を実現している。従ってプロ
グラム開発、デバ・ツク中のノーグ発生及びフィールド
にて稼働している際の外来ノイズ(ACラインノイズ、
静電気等)の影響によりマイクロプロセッサが誤動作し
、正常なプログラム制御が実行できないことがある。こ
のとき各X10制御によりモータ、ソレノイド等の機構
負荷(以下メカ負荷と称する)を駆動回路を介して駆動
させていた場合、異常動作状態となる。又、駆動回路の
励磁時間が規定外となり、破損する恐れがある。
In recent years, various devices such as printer devices are equipped with microprocessors to realize various functions. Therefore, during program development, debugging, noise generation, and external noise (AC line noise,
(Static electricity, etc.) may cause the microprocessor to malfunction and prevent normal program control. At this time, if mechanical loads such as motors and solenoids (hereinafter referred to as mechanical loads) are being driven via the drive circuit by each X10 control, an abnormal operating state will occur. Furthermore, the excitation time of the drive circuit may be outside the specified range, leading to damage.

このような危険性からメカ負荷及び駆動回路を保護する
従来の方式では、駆動回路最終段での電流検知、ヒユー
ズ検知及び温度検知等により異常を検出し、駆動回路又
はメカ負荷が破壊されるのを保護している。
Conventional methods for protecting mechanical loads and drive circuits from such risks detect abnormalities through current detection, fuse detection, temperature detection, etc. at the final stage of the drive circuit, and prevent damage to the drive circuit or mechanical load. is protected.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

このように従来の機構及び駆動回路の保護方式では、メ
カ負荷及び駆動回路にストレスが加わった後に異常を検
知し、破壊を回避している。したがってメカ負荷及び駆
動回路へのストレスが加わる前にこれらを保護すること
は行われていなかった。
As described above, in the conventional mechanism and drive circuit protection system, an abnormality is detected after stress is applied to the mechanical load and drive circuit, and destruction is avoided. Therefore, no attempt has been made to protect the mechanical load and drive circuit before stress is applied to them.

本発明の目的は、プログラム制御が正常に動作していな
いことを検知し、駆動回路を強制的に動作負荷状態(ド
ライブロック状態)にし、メカ負荷及び駆動回路を保護
する方式を提供するこトニある。
An object of the present invention is to provide a method for detecting that program control is not operating normally, forcibly placing the drive circuit in an operating load state (drive lock state), and protecting the mechanical load and drive circuit. be.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、プログラム制御される機構及び前記機構を駆
動する駆動回路の保護方式において、プログラム制御異
常を検出する回路と、前記検出回路がプログラム制御異
常を検出した事を示す表示回路と、前記検出回路からの
出力信号を受けて前記駆動回路を動作不可状態にするド
ライブロック回路と、前記ドライブロック回路のドライ
ブロック機能を有効あるいは無効にする切替え回路とを
有し、前記機構及び駆動回路にストレスを加えることな
く前記駆動回路からの駆動電流を切断することを特徴と
している。
The present invention provides a protection system for a program-controlled mechanism and a drive circuit that drives the mechanism, including: a circuit for detecting a program control abnormality; a display circuit for indicating that the detection circuit has detected a program control abnormality; The drive lock circuit includes a drive lock circuit that receives an output signal from the circuit and disables the drive circuit, and a switching circuit that enables or disables the drive lock function of the drive lock circuit, and prevents stress on the mechanism and drive circuit. The present invention is characterized in that the drive current from the drive circuit is cut off without adding any current.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例を示すブロック図である。モ
ータ、ソレノイド等のメカ負荷1を駆動する駆動回路2
は、マイクロプロセッサを搭載したコントロール回路3
により制御される。本実施例では、コントロール回路3
以外に、プログラム制御異常を検出する回路4と、プロ
グラム制御異常を検出したことを示すドライブロック表
示回路5と、検出回路4からの出力信号を受けて駆動回
路2を動作不可状態にするドライブロック回路6と、プ
ログラム制御異常及び障害原因解析を容易にする為にド
ライブロック回路6のドライブロック機能を無効にする
切替え回路7とを有している。
FIG. 1 is a block diagram showing one embodiment of the present invention. Drive circuit 2 that drives mechanical load 1 such as a motor or solenoid
is a control circuit 3 equipped with a microprocessor.
controlled by In this embodiment, the control circuit 3
In addition, there is a circuit 4 that detects a program control abnormality, a drive lock display circuit 5 that indicates that a program control abnormality has been detected, and a drive lock that disables the drive circuit 2 in response to an output signal from the detection circuit 4. It has a circuit 6 and a switching circuit 7 that disables the drive lock function of the drive lock circuit 6 in order to facilitate program control abnormality and failure cause analysis.

プログラム制御異常を検出する回路4における検出方式
は3つの方式を併用している。第1はプログラマブルタ
イマを使用してプログラム制御の異常を検出する方式で
あり、第2はプログラム制御可能なドライブロックI1
0ボートを設けてプログラム制御の異常を検出する方式
であり、第3はメモリパリティ検出回路を設けてプログ
ラム制御の異常を検出する方式である。このため、プロ
グラム制御異常検出回路4は、プログラマブルタイマ8
.ドライブロックI10ボート9.メモリパリティ検出
回路10を備えている。プログラマブルタイマ8及びド
ライブロックI10ポート9は直接に、メモリパリティ
検出回路10は、フリップフロップ(F/F)回路11
を経てOR回路12にそれぞれ接続されている。OR回
路12は、さらに、ドライブロック表示回路5及び切替
え回路7にそれぞれ接続されている。
The detection method in the circuit 4 for detecting program control abnormality uses three methods in combination. The first method uses a programmable timer to detect abnormalities in program control, and the second method uses program controllable drive lock I1.
A third method is to provide a 0 port to detect an abnormality in program control, and a third method is to provide a memory parity detection circuit to detect an abnormality in program control. Therefore, the program control abnormality detection circuit 4 uses the programmable timer 8
.. Dryblock I10 boat9. A memory parity detection circuit 10 is provided. The programmable timer 8 and drive lock I10 port 9 are connected directly, and the memory parity detection circuit 10 is connected directly to the flip-flop (F/F) circuit 11.
are respectively connected to the OR circuit 12 via the . The OR circuit 12 is further connected to the drive lock display circuit 5 and the switching circuit 7, respectively.

次に、本実施例の動作を説明する。まず、プログラマブ
ルタイマを使用する方式では、プログラム制御上ある一
定時間内に必ず実行するルーチン内にプログラマブルタ
イマ8をセットするI10命令を組込む。このときセッ
トするタイマ値TIは必ず実行するルーチンの時間間隔
T2とは、T1〉T2の関係にあるようにする。第2図
に、プログラマブルタイマを用いた検出方式のタイムチ
ャートを示す。プログラム制御が正常な場合は、プログ
ラマブルタイマ8は、タイムアウトを発生しない。この
ときプログラマブルタイマ8の出力信号13は、“0”
となる。プログラム制御に異常が発生した場合、プログ
ラマブルタイマ8は未セットとなる結果、プログラマブ
ルタイマ8の出力信号13は“1゛(ドライブロック指
定)となり、OR回路12に出力される。
Next, the operation of this embodiment will be explained. First, in a method using a programmable timer, an I10 instruction for setting the programmable timer 8 is incorporated into a routine that is always executed within a certain period of time for program control. The timer value TI set at this time is set in the relationship T1>T2 with the time interval T2 of the routine that is always executed. FIG. 2 shows a time chart of a detection method using a programmable timer. If the program control is normal, the programmable timer 8 will not time out. At this time, the output signal 13 of the programmable timer 8 is “0”
becomes. When an abnormality occurs in the program control, the programmable timer 8 is not set, and as a result, the output signal 13 of the programmable timer 8 becomes "1" (drive lock designation) and is output to the OR circuit 12.

次に、プログラム制御可能なドライブロックI10ボー
トを使用する方式は、プログラム制御上、絶対に実行し
ない番地にR3T命令を組込み、R’ST命令の飛び先
番地にドライブロックI10ポート9を制御するI10
命令を組込む。第3図はそのプログラムの実施の一例を
示しており、第3図(a)はプログラム制御上実行しな
い番地のR8T命令、第3図(b)はR3T命令ジャン
プ先番地のI10ポート制御用OUT命令である。I1
0ポート制御用OUT命令は、ドライブロソク状態を出
力する命令である。プログラム制御が異常となり、R3
T命令が組込まれている番地を実行した場合ドライブロ
ックI10ポート9の出力信号14は“1” (ドライ
ブロック指定)となり、OR回路12に出力される。又
プログラムが各種I10制御上異常を検出した場合も同
様にドライブロックI10ポート9に対しI10命令を
実行し出力信号14を“1”にし、OR回路12に出力
する。
Next, the method of using a program-controllable drive lock I10 port is to include an R3T instruction at an address that is never executed under program control, and place an I10 instruction that controls drive lock I10 port 9 at the jump address of the R'ST instruction.
Incorporate instructions. Figure 3 shows an example of the execution of the program. Figure 3 (a) shows the R8T instruction at an address that is not executed due to program control, and Figure 3 (b) shows the I10 port control OUT at the address to which the R3T instruction jumps. It is a command. I1
The 0 port control OUT command is a command to output the drive candle state. Program control becomes abnormal and R3
When the address in which the T instruction is incorporated is executed, the output signal 14 of the drive lock I10 port 9 becomes "1" (drive lock designation) and is output to the OR circuit 12. Also, when the program detects any abnormality in the I10 control, it similarly executes the I10 command to the drive lock I10 port 9, sets the output signal 14 to "1", and outputs it to the OR circuit 12.

ハードウェアによるメモリパリティ検出回路を用いる場
合には、メモリパリティ検出回路10にてメモリパリテ
ィエラーを検出した場合、プログラム制御は不可状態と
なる。このメモリパリティ検出回路10の出力信号15
をフリップフロップ回路(F/F)11でラッチし、そ
の出力信号16(”1”−ドライブロック指定)をOR
回路12に出力する。
When using a hardware memory parity detection circuit, if the memory parity detection circuit 10 detects a memory parity error, program control becomes disabled. Output signal 15 of this memory parity detection circuit 10
is latched by the flip-flop circuit (F/F) 11, and the output signal 16 ("1" - drive lock designation) is ORed.
Output to circuit 12.

以上の3つのプログラム制御異常検出方式で検出された
出力信号13,14.15をOR回路12で論理ORを
とり、その出力信号17を切替え回路7及びドライブロ
ック表示回路5に出力する。
The output signals 13, 14, and 15 detected by the above three program control abnormality detection methods are logically ORed by the OR circuit 12, and the output signal 17 is outputted to the switching circuit 7 and the drive lock display circuit 5.

切替え回路7は、ドライブロック回路6のドライブロッ
ク機能を有効/無効にする為の回路であり、その出力信
号18はドライブロック回路6に出力される。ドライブ
ロック機能が有効指定の場合、OR回路12の出力信号
17の状態が切替え回路7を介してドライブロック回路
6に通知される。
The switching circuit 7 is a circuit for enabling/disabling the drive lock function of the drive lock circuit 6, and its output signal 18 is output to the drive lock circuit 6. When the drive lock function is designated as valid, the state of the output signal 17 of the OR circuit 12 is notified to the drive lock circuit 6 via the switching circuit 7.

ドライブロック機能が有効状態でOR回路12の出力信
号17が“1”状態にあるとき、ドライブロック回路6
は出力信号19により駆動回路2を動作不可状態(ドラ
イブロック状態)にし駆動電流を切断し、メカ負荷1及
び駆動回路2を保護する。一方、ドライブロック表示回
路5は、OR回路12の出力信号17の状態を表示し、
プログラム制御の異常状態を外部に通知する。
When the drive lock function is enabled and the output signal 17 of the OR circuit 12 is in the “1” state, the drive lock circuit 6
The output signal 19 disables the drive circuit 2 (drive lock state), cuts off the drive current, and protects the mechanical load 1 and the drive circuit 2. On the other hand, the drive lock display circuit 5 displays the state of the output signal 17 of the OR circuit 12,
Notifies the outside of abnormal conditions of program control.

又、切替え回路7をドライブロック無効指定にすること
により、駆動回路2は常に動作可能状態となり、プログ
ラム制御異常及び障害原因解析が容易となる。
Further, by setting the switching circuit 7 to disable the drive lock, the drive circuit 2 is always in an operable state, which facilitates program control abnormality and failure cause analysis.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明は、プログラム制御異常を
検出する手段と強制ドライバーロック手段及び異常内容
表示手段を設けることによりプリンタ装置等のメカ負荷
及び駆動回路にストレスを加えることなく、事前に保護
することができ、又異常表示手段によりプログラム制御
異常状態を確認できる効果がある。
As explained above, the present invention provides a means for detecting a program control abnormality, a forced driver locking means, and an abnormality content display means, thereby providing advance protection without adding stress to the mechanical load and drive circuit of a printer device, etc. It is also possible to confirm the program control abnormal state using the abnormality display means.

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

第1図は、本発明の一実施例を示すブロック図、第2図
はプログラマブルタイマによるプログラム制御異常検出
方式のタイムチャート、第3図はドライブロックI10
ポートによるプログラム制御異常検出のプログラム例を
示す図である。 l・・・・・メカ負荷 2・・・・・駆動回路 3・・・・・コントロール回路 4・・・・・プログラム制御異常検出回路5°・・・・
・ドライブロック表示回路6・・・・・ドライブロック
回路 7・・・・・切替え回路 8・・・・・プログラマブルタイマ 9・・・・・ドライブロック■/○ポート10・・・・
メモリパリティ検出回路 11・・・・フリップフロップ回路 12・・・・OR回路
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a time chart of a program control abnormality detection method using a programmable timer, and FIG. 3 is a drive lock I10
FIG. 3 is a diagram illustrating an example of a program for program control abnormality detection by a port. l...Mechanical load 2...Drive circuit 3...Control circuit 4...Program control abnormality detection circuit 5°...
・Drive lock display circuit 6... Drive lock circuit 7... Switching circuit 8... Programmable timer 9... Drive lock ■/○ port 10...
Memory parity detection circuit 11...Flip-flop circuit 12...OR circuit

Claims (1)

【特許請求の範囲】[Claims] (1)プログラム制御される機構及び前記機構を駆動す
る駆動回路の保護方式において、プログラム制御異常を
検出する回路と、前記検出回路がプログラム制御異常を
検出した事を示す表示回路と、前記検出回路からの出力
信号を受けて前記駆動回路を動作不可状態にするドライ
ブロック回路と、前記ドライブロック回路のドライブロ
ック機能を有効あるいは無効にする切替え回路とを有し
、前記機構及び駆動回路にストレスを加えることなく前
記駆動回路からの駆動電流を切断することを特徴とする
機構及び駆動回路の保護方式。
(1) In a protection system for a program-controlled mechanism and a drive circuit that drives the mechanism, a circuit for detecting a program control abnormality, a display circuit indicating that the detection circuit has detected a program control abnormality, and the detection circuit a drive lock circuit that disables the drive circuit in response to an output signal from the drive lock circuit; and a switching circuit that enables or disables the drive lock function of the drive lock circuit, and prevents stress from being applied to the mechanism and the drive circuit. A mechanism and a protection method for a drive circuit, characterized in that the drive current from the drive circuit is cut off without adding any drive current to the drive circuit.
JP29086085A 1985-12-25 1985-12-25 Mechanism and protecting system for drive circuit Pending JPS62151901A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29086085A JPS62151901A (en) 1985-12-25 1985-12-25 Mechanism and protecting system for drive circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29086085A JPS62151901A (en) 1985-12-25 1985-12-25 Mechanism and protecting system for drive circuit

Publications (1)

Publication Number Publication Date
JPS62151901A true JPS62151901A (en) 1987-07-06

Family

ID=17761428

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29086085A Pending JPS62151901A (en) 1985-12-25 1985-12-25 Mechanism and protecting system for drive circuit

Country Status (1)

Country Link
JP (1) JPS62151901A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015108944A (en) * 2013-12-04 2015-06-11 株式会社デンソー Vehicular electronic controller

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55154604A (en) * 1979-05-18 1980-12-02 Tsubakimoto Chain Co Sequence controller
JPS6015701A (en) * 1983-07-07 1985-01-26 Toshiba Corp Control interface device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55154604A (en) * 1979-05-18 1980-12-02 Tsubakimoto Chain Co Sequence controller
JPS6015701A (en) * 1983-07-07 1985-01-26 Toshiba Corp Control interface device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015108944A (en) * 2013-12-04 2015-06-11 株式会社デンソー Vehicular electronic controller

Similar Documents

Publication Publication Date Title
EP1724915B1 (en) Independent safety processor for disabling the operation of high power devices
JPS62151901A (en) Mechanism and protecting system for drive circuit
JPH10307635A (en) Computer system and temperature monitoring method applied to the same system
JP3256639B2 (en) Digital relay device
JPH02193520A (en) Power source interrupting method with excess current detector
JP2672861B2 (en) Drive control circuit
JPS61102171A (en) Retry controller for inverter
JPH1118430A (en) Temperature failure detection protection circuit
JPS6235917A (en) On-vehicle electronic controller
JP2580673B2 (en) Power control device
JP2024044801A (en) Microcontrollers and Electronic Circuits
JPH0624882Y2 (en) Fail-safe circuit
JP3117604B2 (en) Electrical equipment
JPH08147001A (en) Fail-safe device
JPS6266341A (en) Runaway detecting circuit for cpu
JPH05158750A (en) Malfunction preventing circuit for microcomputer
JPH02196341A (en) Fault restoring system for information processor
JPH05127932A (en) Data processor
JPS6118046A (en) Microcomputer
JPH08152942A (en) Electronic computer system
JPH09219985A (en) Protecting method for motor control
JPH10320239A (en) Firmware monitor system
JP2000003208A (en) Output method and device for output unit at abnormity
JPH0458727A (en) Overvoltage protective device
JPH04172911A (en) Protective relay