JPH0581922B2 - - Google Patents

Info

Publication number
JPH0581922B2
JPH0581922B2 JP58042140A JP4214083A JPH0581922B2 JP H0581922 B2 JPH0581922 B2 JP H0581922B2 JP 58042140 A JP58042140 A JP 58042140A JP 4214083 A JP4214083 A JP 4214083A JP H0581922 B2 JPH0581922 B2 JP H0581922B2
Authority
JP
Japan
Prior art keywords
basic unit
reset
cpu
output
circuit
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
JP58042140A
Other languages
Japanese (ja)
Other versions
JPS59168504A (en
Inventor
Tatsuo Fujiwara
Ryoichi Abe
Naohiro Kurokawa
Takeshi Uemura
Yukio Suzuki
Satoru Soga
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP4214083A priority Critical patent/JPS59168504A/en
Publication of JPS59168504A publication Critical patent/JPS59168504A/en
Publication of JPH0581922B2 publication Critical patent/JPH0581922B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/14Plc safety
    • G05B2219/14141Restart

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Safety Devices In Control Systems (AREA)
  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、周辺機器と基本ユニツトの双方に
CPUを持つシーケンス制御装置のリセツト方法
に係り、特に給電中にプログラマの着脱を可能に
したシーケンス制御装置に関する。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention applies to both peripheral devices and basic units.
The present invention relates to a method for resetting a sequence control device having a CPU, and particularly to a sequence control device that allows a programmer to be attached and detached during power supply.

〔従来技術〕[Prior art]

周辺機器と基本ユニツトの双方にCPUを持ち、
基本ユニツトからのみ制御電源を給電されるシー
ケンス制御装置のリセツト回路は第1図の回路が
考案されている。第1図の方式は基本ユニツト1
のCPU3と周辺装置2のCPU4のリセツト端子
が共通接続されており、周辺装置と基本ユニツト
が接続された状態で電源が投入されると、双方の
CPUがイニシヤライズされ正常動作を行う。し
かし周辺機器2を分離し、基本ユニツト1給電中
に周辺機器2を装着すると、第2図電圧波形ホに
示すようにリセツト信号がすでに確立しているた
め、周辺機器のCPU4がイニシヤライズされず、
周辺機器2が誤動作し、給電中の着脱が出来ない
という欠点があつた。
Both peripheral devices and basic unit have CPUs,
As a reset circuit for a sequence control device to which control power is supplied only from the basic unit, the circuit shown in FIG. 1 has been devised. The system shown in Figure 1 is the basic unit 1.
The reset terminals of CPU 3 of the peripheral device 2 and CPU 4 of the peripheral device 2 are commonly connected, and when the power is turned on with the peripheral device and the basic unit connected, both
The CPU is initialized and operates normally. However, if you separate the peripheral device 2 and attach it while power is being supplied to the basic unit 1, the reset signal has already been established as shown in the voltage waveform in Figure 2, so the CPU 4 of the peripheral device will not be initialized.
There was a drawback that the peripheral device 2 malfunctioned and could not be attached or detached while power was being supplied.

一方本発明に至る過程で第3図の構成が検討さ
れた。この構成は基本ユニツト1及び周辺機器2
の双方にリセツト回路5,6を持つているため、
基本ユニツト1に給電中、周辺機器を装着しても
リセツト回路6の抵抗10とコンデンサ12によ
る所定の遅れ時間後CPU4がイニシヤライズさ
れるため着脱による誤動作はない。
On the other hand, in the process of arriving at the present invention, the configuration shown in FIG. 3 was studied. This configuration consists of a basic unit 1 and peripheral devices 2.
Since both have reset circuits 5 and 6,
Even if a peripheral device is attached while power is being supplied to the basic unit 1, the CPU 4 is initialized after a predetermined delay time due to the resistor 10 and capacitor 12 of the reset circuit 6, so there is no malfunction due to attachment or detachment.

ここで基本ユニツトのリセツト回路5の概略動
作を第3図、第4図により説明する。この回路は
交流電源7の瞬断を検出する回路で、交流電源7
が1サイクル以上瞬断すると、コンパレータ8が
動作し、コンデンサ9が抵抗14を通して放電す
る。コンデンサ9の放電が速かに行われるよう抵
抗14は設定されている。コンデンサ9の放電に
より基本ユニツトのCPU3はリセツトする。
Here, the general operation of the reset circuit 5 of the basic unit will be explained with reference to FIGS. 3 and 4. This circuit is a circuit that detects momentary interruption of the AC power supply 7.
When the voltage is interrupted for one cycle or more, the comparator 8 is activated and the capacitor 9 is discharged through the resistor 14. The resistor 14 is set so that the capacitor 9 is quickly discharged. By discharging the capacitor 9, the CPU 3 of the basic unit is reset.

交流電源7の復電後、抵抗15とコンデンサ9
による所定の遅れ時間後、CPU3はリスタート
する。但し、交流電源瞬断1サイクル後は、コン
パレータ8等が正常動作するよう制御電圧Vccは
規定電圧あるように構成されている。
After the AC power supply 7 is restored, the resistor 15 and capacitor 9
After a predetermined delay time, the CPU 3 restarts. However, the control voltage Vcc is configured to be a specified voltage so that the comparator 8 and the like operate normally after one cycle of AC power interruption.

周辺機器と基本ユニツト接続状態で交流電源7
が瞬断すると、基本ユニツトCPU3は上記動作
によりすみやかにリセツトされるが、周辺機器で
はリセツト回路6のコンデンサ12がダイオード
13を通して放電するが、上記制御電源Vccの電
圧低下が遅いため、放電に時間がかかる。コンパ
レータ12の放電が十分に行われない状態で交流
電源7が復電すると、基本ユニツトのCPU3は
イニシヤライズされるが、周辺機器のCPU4は
イニシヤライズされず、誤動作するという欠点が
あつた。
AC power supply 7 when peripheral equipment and basic unit are connected
When the main unit CPU 3 is momentarily interrupted, the basic unit CPU 3 is quickly reset by the above operation, but in the peripheral equipment, the capacitor 12 of the reset circuit 6 discharges through the diode 13, but since the voltage drop of the control power supply Vcc is slow, it takes time for the discharge to occur. It takes. When the AC power supply 7 is restored without sufficient discharge of the comparator 12, the CPU 3 of the basic unit is initialized, but the CPU 4 of the peripheral device is not initialized, resulting in a malfunction.

〔発明の目的〕[Purpose of the invention]

本発明の目的は給電中に周辺機器を着脱できる
シーケンス制御装置を提供することにある。
An object of the present invention is to provide a sequence control device that allows peripheral devices to be attached and detached during power supply.

〔発明の概要〕[Summary of the invention]

本発明は、基本ユニツトと、この基本ユニツト
に着脱自在に構成されて基本ユニツトに装着され
たとき基本ユニツトから電源が供給されて基本ユ
ニツトとの間でデータのやり取りができるよう構
成された周辺機器からなるシーケンス制御装置に
おいて、 基本ユニツトに、第1のCPUと、交流電源に
接続されてその瞬断を検出して第1のCPUをリ
セツトする信号を発生する第1のリセツト回路
と、この第1のリセツト回路の出力に接続された
出力端子を設け、 周辺機器に、出力端子に接続される入力端子
と、第2のCPUと、基本ユニツトへの装着を検
出して第2のCPUをリセツトする信号を発生す
る第2のリセツト回路と、入力の一方が第2のリ
セツト回路の出力に接続され、入力の他方が入力
端子に接続されて第2のリセツト回路の出力と第
1のリセツト回路の出力の論理和をとりその出力
をリセツト信号として第2のCPUに供給する論
理和回路を設け、 交流電源瞬断時の誤動作や、給電中の周辺機器
の着脱による誤動作を防止するようにしたもので
ある。
The present invention relates to a basic unit and a peripheral device configured to be detachably attached to the basic unit so that when it is attached to the basic unit, power is supplied from the basic unit and data can be exchanged with the basic unit. In the sequence control device, the basic unit includes a first CPU, a first reset circuit that is connected to an AC power supply and generates a signal to reset the first CPU by detecting an instantaneous interruption of the AC power supply. An output terminal connected to the output of the first reset circuit is provided, and the peripheral device has an input terminal connected to the output terminal, a second CPU, and resets the second CPU by detecting its attachment to the basic unit. a second reset circuit that generates a signal to reset the output of the second reset circuit; one of its inputs is connected to the output of the second reset circuit; A logical sum circuit is installed to logically sum the outputs of the two CPUs and supply the output as a reset signal to the second CPU to prevent malfunctions caused by instantaneous AC power interruptions or by attaching or detaching peripheral devices while power is being supplied. It is something.

〔発明の実施例〕[Embodiments of the invention]

以下本説明の実施例を第5図、第6図により説
明する。シーケンス制御装置は基本ユニツト1と
周辺機器2で構成される。
An embodiment of this description will be described below with reference to FIGS. 5 and 6. The sequence control device consists of a basic unit 1 and peripheral equipment 2.

基本ユニツト1は、第1図に示す従来のものと
同じ構成で、第1のCPUとしてのCPU3、交流
電源7に接続されてその瞬断を検出してCPU3
をリセツトする信号を発生する第1のリセツト回
路としてのリセツト回路5を有している。周辺機
器2はこの基本ユニツト1に着脱自在でこの基本
ユニツト1に装着されているときに基本ユニツト
1から電源が供給されて基本ユニツト1との間で
データのやり取りができるよう構成されて、第2
のCPUとしてのCPU4、基本ユニツト1から供
給された電源の瞬断を検出してCPU4をリセツ
トする信号を発生する第2のリセツト回路として
のリセツト回路6、リセツト回路6の出力とリセ
ツト回路5の出力の論理和をとりその出力をリセ
ツト信号としてCPU4に供給する論理和回路と
しての2入力ORゲート16で構成される。
The basic unit 1 has the same configuration as the conventional one shown in FIG.
It has a reset circuit 5 as a first reset circuit that generates a signal for resetting the circuit. The peripheral device 2 is detachably attached to the basic unit 1 and is configured so that when it is attached to the basic unit 1, power is supplied from the basic unit 1 and data can be exchanged with the basic unit 1. 2
A CPU 4 as a CPU of the basic unit 1, a reset circuit 6 as a second reset circuit that detects a momentary interruption of the power supply supplied from the basic unit 1 and generates a signal to reset the CPU 4, and an output of the reset circuit 6 and a reset circuit 5. It is composed of a two-input OR gate 16 as a logical sum circuit which takes the logical sum of the outputs and supplies the output to the CPU 4 as a reset signal.

周辺機器を装着した状態で交流電源に瞬断があ
つた時の各部の波形を第6図に示す。即ち交流電
源に第6図イに示すように1サイクル以上の瞬断
(瞬停)があると基本ユニツトのリセツト回路5
が動作し、その出力が反転回路を介して第6図ホ
に示す波形の信号でCPU3のリセツト入力端子
に供給される。CPU3のリセツトは信号の立ち
上がりで行われる。リセツト回路5の出力(第6
図の波形ホの反転波形の信号)は信号線を介して
周辺機器2のORゲート16の入力端子の一方に
供給される。ORゲート16の出力は反転回路を
介してCPU4のリセツト入力端子に供給される。
そのためCPU4にも第6図トに示すように同図
ホと同じ波形の信号が供給され、CPU4のリセ
ツトもこの信号の立ち上がりで行われる。
Figure 6 shows the waveforms of various parts when there is a momentary interruption of the AC power supply with peripheral equipment installed. That is, if there is a momentary interruption (instantaneous power failure) of one cycle or more in the AC power supply as shown in Fig. 6A, the reset circuit 5 of the basic unit is activated.
operates, and its output is supplied to the reset input terminal of the CPU 3 via an inverting circuit as a signal having the waveform shown in FIG. The CPU 3 is reset at the rising edge of the signal. Output of reset circuit 5 (6th
A signal having an inverted waveform of waveform E in the figure) is supplied to one of the input terminals of the OR gate 16 of the peripheral device 2 via the signal line. The output of the OR gate 16 is supplied to the reset input terminal of the CPU 4 via an inverting circuit.
Therefore, the CPU 4 is also supplied with a signal having the same waveform as shown in FIG. 6 (G), and the CPU 4 is reset at the rising edge of this signal.

また基本ユニツト1の給電中に周辺機器2を装
着したときの周辺機器4内の波形を第6図ヘ,ト
に示す。第6図に示す周辺機器(脱)のタイミン
グで周辺機器2を基本ユニツト1から外し、(着)
のタイミングで再び装着すると、基本ユニツト1
のリセツト信号(同図ホ)はすでに確立されてい
るが、周辺機器2は電源供給が一時断たれたため
そのリセツト回路6のコンデンサ12の電圧が同
図ヘに示すようにその間一時的にゼロとなり、装
着後は抵抗10とコンデンサ12の時定数で電圧
が徐々に上昇する。コンデンサ12の出力はシユ
ミツト回路を介してORゲート16の他方の入力
端子に供給される。そのためリセツト回路6の出
力は第6図トの波形に示すように、周辺機器
(脱)時にレベルがLOWとなり、(着)後コンデ
ンサ12の電圧が所定レベルに達した時にHiと
なり、この出力の立ち上がりでCPU4をリセツ
トしてリスタートする。これにより、電源の瞬断
が発生した場合、または基本ユニツト1への給電
時に周辺機器2の着脱を行つた場合でも周辺機器
2のCPU4のイニシヤライズを行うことができ、
周辺機器2の誤動作を防止できる。
Furthermore, waveforms in the peripheral device 4 when the peripheral device 2 is attached while power is being supplied to the basic unit 1 are shown in FIGS. Remove the peripheral device 2 from the basic unit 1 at the timing of removing the peripheral device shown in Figure 6.
If you attach it again at the timing of , basic unit 1
The reset signal (H in the figure) has already been established, but because the power supply to the peripheral device 2 was temporarily cut off, the voltage at the capacitor 12 of the reset circuit 6 temporarily became zero as shown in F in the figure. After installation, the voltage gradually increases with the time constant of the resistor 10 and capacitor 12. The output of capacitor 12 is supplied to the other input terminal of OR gate 16 via a Schmitt circuit. Therefore, as shown in the waveform in Figure 6 (t), the output of the reset circuit 6 becomes LOW when the peripheral device is removed, and becomes Hi when the voltage of the capacitor 12 reaches a predetermined level after the peripheral device is removed. At startup, reset CPU4 and restart. This makes it possible to initialize the CPU 4 of the peripheral device 2 even if a momentary power outage occurs or if the peripheral device 2 is connected or removed while power is being supplied to the basic unit 1.
Malfunctions of the peripheral device 2 can be prevented.

上記実施例ではリセツトをするための基準電圧
がシユミツト回路の入力のスレツシユホールド電
圧だけである。周辺機器の着脱、電源の瞬断等の
電圧の急激な低下にはこの実施例でも対応できる
が、負荷の変動による電源電圧の低下の場合には
以下に詳細に説明するように状況によつては負荷
のON,OFFに伴う電源電圧の下降、上昇を繰り
返す現象が発生することがある。
In the above embodiment, the only reference voltage for resetting is the threshold voltage at the input of the Schmitt circuit. Although this embodiment can cope with sudden drops in voltage such as when peripheral devices are connected or removed or when the power supply is momentarily cut off, in the case of a drop in power supply voltage due to load fluctuations, it is possible to deal with sudden drops in voltage due to attachment/disconnection of peripheral devices, momentary interruption of the power supply, etc. In some cases, the power supply voltage repeatedly drops and rises as the load turns on and off.

この問題を解決するため基本ユニツトのリセツ
ト回路を入力部と、電圧低下検出部と、出力部
と、出力部の信号を電圧低下検出部に正帰還させ
る正帰還回路で構成し、入力部、出力部間にヒス
テリシス特性を持たせた本実施例の変形例を第7
図、第8図により説明する。
To solve this problem, the reset circuit of the basic unit consists of an input section, a voltage drop detection section, an output section, and a positive feedback circuit that positively feeds back the signal of the output section to the voltage drop detection section. A modification of this embodiment in which a hysteresis characteristic is provided between the parts is shown in the seventh example.
This will be explained with reference to FIG.

例えば第7図はそのための検出回路を用いた周
辺機器の回路構成の一例を示す。以下、この回路
の構成および動作を説明する。
For example, FIG. 7 shows an example of a circuit configuration of a peripheral device using a detection circuit for this purpose. The configuration and operation of this circuit will be explained below.

本変形例では電源の入力端子T1,T2が設けら
れる。これらの入力端子T1,T2は第5図に示さ
れた基本ユニツト1と同様に交流電源7に接続さ
れる。交流電源7の電圧Vは整流回路120、コ
ンデンサC1で整流平滑され、安定化用IC101
で安定化されてリセツト回路の入力部、電圧低下
検出部、出力部およびCPUを有する制御回路1
21に定電圧の電源電圧Vccとして供給される。
また本変形例では信号の入力端子T3には電源電
圧の検出信号110が入力される。電源電圧を検
出するためには入力端子T3は整流回路120の
直流出力側、または図示されていない整流器を介
して交流電源7に接続される。本変形例では電源
Vが投入された時、抵抗R10、コンデンサC5の充
電時間により所定時間リセツト信号を発生し制御
回路120のCPUに出力する。
In this modification, power supply input terminals T 1 and T 2 are provided. These input terminals T 1 and T 2 are connected to an AC power source 7 in the same way as the basic unit 1 shown in FIG. The voltage V of the AC power supply 7 is rectified and smoothed by a rectifier circuit 120 and a capacitor C 1 , and then stabilized by a stabilizing IC 101.
A control circuit 1 having an input section, a voltage drop detection section, an output section and a CPU of a reset circuit stabilized by
21 as a constant power supply voltage Vcc.
Further, in this modification, a power supply voltage detection signal 110 is input to the signal input terminal T3 . In order to detect the power supply voltage, the input terminal T3 is connected to the AC power supply 7 via the DC output side of the rectifier circuit 120 or a rectifier (not shown). In this modification, when the power supply V is turned on, a reset signal is generated for a predetermined time depending on the charging time of the resistor R 10 and the capacitor C 5 and is output to the CPU of the control circuit 120.

次に電源を遮断した場合は、端子T3における
検出信号110がOFFとなり抵抗R1,R2で分圧
された比較電圧が、抵抗R3,R4で分圧された基
準電圧より低くなるため比較用IC(以下コンパレ
ータと称す)の特性によりコンパレータIC2の出
力が“HI”レベルとなり次段のコンパレータIC3
に入力される。この時抵抗R7,R8で分圧された
基準電圧より高くなるためコンパレータIC3の出
力が“LOW”レベルとなり、コンデンサC5は抵
抗R9を通じて放電される。ここで抵抗R9は、コ
ンパレータIC3の保護抵抗であるため小さな値で
よいため、急速放電が可能となる。
Next, when the power is cut off, the detection signal 110 at terminal T 3 turns OFF, and the comparison voltage divided by resistors R 1 and R 2 becomes lower than the reference voltage divided by resistors R 3 and R 4 . Therefore, due to the characteristics of the comparison IC (hereinafter referred to as the comparator), the output of comparator IC 2 becomes “HI” level and the output of the next stage comparator IC 3
is input. At this time, since the voltage becomes higher than the reference voltage divided by resistors R 7 and R 8 , the output of comparator IC 3 becomes “LOW” level, and capacitor C 5 is discharged through resistor R 9 . Here, the resistor R 9 is a protection resistor for the comparator IC 3 , so it may have a small value, so that rapid discharge is possible.

また、電源の瞬時停電および急激な低下に対し
ては、コンデンサC2、抵抗R5,6の時定数を選択す
ることにより対応できる。
Furthermore, instantaneous power outages and rapid drops in the power supply can be dealt with by selecting the time constants of the capacitor C 2 and resistors R 5 and 6 .

ところで第8図Bのような電源電圧の低下に伴
なう検出信号の低下で特に低下検出近辺に対して
は、低下検出信号を抵抗R1,R2で分圧した電位
が、抵抗R3,R4による基準電圧よりもわずかに
下がれば、上記遮断時と同様にリセツト信号を出
力できるが、制御回路121によつては、リセツ
トされることにより負荷が軽減され、電源電圧が
上昇する。そのため低下検出信号も上昇し、この
分圧した電位が基準電圧よりわずかに高くなりコ
ンパレータIC2の出力が“LOW”レベルとなり、
さらにコンパレータIC3の出力が“HI”レベルと
なり抵抗R10、コンデンサC5により再び充電され
所定時間後にリセツト信号が解除され、制御回路
121は動作を始める。そこで負荷が重くなり電
源電圧が低下し、第8図Bに示すように上記を繰
り返す現象が生じる。これは、制御回路121に
動力負荷等が接続された場合、きわめて危険であ
る。この現象を防止するため、新たにコンパレー
タIC4、抵抗R11が設けられ、これによれば低下検
出レベル付近での動作は次のようになる。
By the way, when the detection signal drops due to a drop in the power supply voltage as shown in FIG. 8B, especially in the vicinity of the drop detection, the potential obtained by dividing the drop detection signal by the resistors R 1 and R 2 is the voltage at the resistor R 3 . , R4 , a reset signal can be output in the same way as at the time of cutoff, but depending on the control circuit 121, the load is reduced by being reset, and the power supply voltage increases. Therefore, the drop detection signal also rises, and this divided potential becomes slightly higher than the reference voltage, causing the output of comparator IC 2 to become “LOW” level.
Further, the output of the comparator IC 3 becomes "HI" level and is charged again by the resistor R 10 and the capacitor C 5. After a predetermined time, the reset signal is released and the control circuit 121 starts operating. Therefore, the load becomes heavy, the power supply voltage decreases, and the above phenomenon repeats as shown in FIG. 8B. This is extremely dangerous if a power load or the like is connected to the control circuit 121. In order to prevent this phenomenon, a comparator IC 4 and a resistor R 11 are newly provided, and the operation near the drop detection level is as follows.

すなわち抵抗R3,R4による基準電圧より低下
検出信号電圧)抵抗R1,R2の分圧)がわずかで
も下るとコンパレータIC2の出力は“HI”とな
り、コンパレータIC3の基準電圧(抵抗R7,R8
分圧)より高くなりコンパレータIC3の出力が
“LOW”となる。そのためコンデンサC5は急速に
放電し、リセツト信号111が出力される。
In other words, if the detection signal voltage (divided voltage of resistors R 1 and R 2 ) drops even slightly from the reference voltage caused by resistors R 3 and R 4 , the output of comparator IC 2 becomes “HI”, and the reference voltage of comparator IC 3 (resistance (divided voltage of R 7 and R 8 ), and the output of comparator IC 3 becomes “LOW”. Therefore, capacitor C5 is rapidly discharged and a reset signal 111 is output.

これと同時にコンパレータIC6により正帰還が
行なわれ、低下検出信号である比較電圧が基準電
圧(抵抗R7,R8の分圧)より小さくなるため、
コンパレータIC4の出力は“LOW”となる。
At the same time, positive feedback is performed by comparator IC 6 , and the comparison voltage that is the drop detection signal becomes smaller than the reference voltage (divided voltage of resistors R 7 and R 8 ).
The output of comparator IC 4 becomes “LOW”.

そのため、低下検出信号110の電圧は、抵抗
R2,R11の並列抵抗と、抵抗R1による分圧とな
る。
Therefore, the voltage of the drop detection signal 110 is
The voltage is divided by the parallel resistances R 2 and R 11 and the resistor R 1 .

すなわち、並列抵抗回路での抵抗値は、単体時
の値と比べ小さくなるため、低下検出信号電圧を
分圧した値も小さくなる。
That is, since the resistance value in the parallel resistance circuit is smaller than the value in the case of a single resistor circuit, the value obtained by dividing the drop detection signal voltage also becomes smaller.

この結果、最初に低下検出を行なつた電位より
さらに低くなるため検出信号にわずかな変化が生
じてもリセツト信号は安定に保たれる。
As a result, the reset signal is kept stable even if a slight change occurs in the detection signal because the potential is lower than the potential at which the drop was initially detected.

次に電源電圧が所定範囲の電圧に上昇すると同
時に低下検出信号電圧も上昇し、上記した並列抵
抗R2,R11と抵抗R9における分圧された電位も上
昇する。そして、基準電圧(抵抗R3,R4)より
高くなればコンパレータIC2の出力電圧は
“LOW”となりさらにコンパレータIC3の出力は
“HI”となるため抵抗R10およびコンデンサC5
より放電が始まり所定時間後にリセツト信号が解
除されるわけである。この様子を第8図Aに示
す。
Next, when the power supply voltage rises to a voltage within a predetermined range, the drop detection signal voltage also rises, and the divided potential at the parallel resistors R 2 and R 11 and the resistor R 9 also rises. When the voltage becomes higher than the reference voltage (resistors R 3 and R 4 ), the output voltage of comparator IC 2 becomes "LOW" and the output of comparator IC 3 becomes "HI", so that the discharge is caused by resistor R 10 and capacitor C 5 . The reset signal is released a predetermined time after the start. This situation is shown in FIG. 8A.

以上のようにして低下検出にヒステリシス特性
を持たせて負荷変動による低下検出信号に少々変
化が生じても安定したリセツト信号を制御回路1
21に出力することができる。
As described above, the control circuit 1 provides a hysteresis characteristic to the drop detection and provides a stable reset signal even if there is a slight change in the drop detection signal due to load fluctuation.
It can be output to 21.

さて、第7図の実施例では、低下検出信号に正
帰還したものであるが、逆に抵抗R3,R4による
基準電圧を高めるような正帰還回路を構成しても
よく、これによつても同様の効果が得られる。
Now, in the embodiment shown in Fig. 7, positive feedback is provided to the drop detection signal, but a positive feedback circuit that increases the reference voltage using resistors R 3 and R 4 may be configured, and this can be used. The same effect can be obtained even if

また、第7図の実施例では、電源回路を省略し
てあるが、交流電源でも直流電源でも、同じ効果
が得られる。
Further, although the power supply circuit is omitted in the embodiment shown in FIG. 7, the same effect can be obtained with either an AC power source or a DC power source.

また、リセツト回路だけでなくメモリ保護回路
等にも応用できる。
Furthermore, it can be applied not only to reset circuits but also to memory protection circuits and the like.

本実施例によれば、電源電圧が低下検出レベル
近辺の電圧に長時間低下し、負荷に変動があつた
場合でも確実にリセツト信号を出力することがで
きるので、制御回路121をきわめて安全に保護
できる効果がある。
According to this embodiment, even if the power supply voltage drops to a voltage close to the drop detection level for a long time and the load fluctuates, the reset signal can be reliably output, so the control circuit 121 can be extremely safely protected. There is an effect that can be done.

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

本発明によれば、基本ユニツトまたは周辺機器
の少なくともいずれか一方への電源の供給が一時
中断されても復電後周辺機器のCPUを必ずリセ
ツトでき、基本ユニツトへの給電中に周辺機器を
着脱しても誤動作を防止できて信頼性の高いシー
ケンス制御装置を得ることができる。
According to the present invention, even if the power supply to at least one of the basic unit or peripheral devices is temporarily interrupted, the CPU of the peripheral device can always be reset after power is restored, and the peripheral devices can be connected or removed while power is being supplied to the basic unit. Accordingly, it is possible to obtain a highly reliable sequence control device in which malfunctions can be prevented even when

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

第1図、第3図は従来のシーケンス制御装置の
ブロツク図、第2図、第4図は第1図、第3図の
各部の電圧波形を示す波形図、第5図は本発明の
一実施例におけるシーケンス制御装置のブロツク
図、第6図は本発明の一実施例におけるシーケン
ス制御装置の各部の波形を示す波形図、第7図は
本発明の一実施例の変形例における基本ユニツト
のリセツト回路の回路図、第8図Aは第7図の回
路のリセツト信号出力波形を示す波形図、第8図
Bは従来例におけるリセツト信号出力波形を示す
波形図である。 1……基本ユニツト、2……周辺機器、3……
基本ユニツトCPU、4……周辺機器CPU、5…
…基本ユニツトリセツト回路、6……周辺機器リ
セツト回路、7……交流電源、8……コンパレー
タ、9,12……コンデンサ、10,11,14
……抵抗器、13……ダイオード、16……OR
ゲート。
1 and 3 are block diagrams of conventional sequence control devices, FIGS. 2 and 4 are waveform diagrams showing voltage waveforms at various parts in FIGS. 1 and 3, and FIG. FIG. 6 is a waveform diagram showing the waveforms of each part of the sequence control device in an embodiment of the present invention, and FIG. 7 is a block diagram of the basic unit in a modification of the embodiment of the present invention. FIG. 8A is a waveform diagram showing the reset signal output waveform of the circuit of FIG. 7, and FIG. 8B is a waveform diagram showing the reset signal output waveform in the conventional example. 1...Basic unit, 2...Peripheral equipment, 3...
Basic unit CPU, 4...Peripheral device CPU, 5...
... Basic unit reset circuit, 6 ... Peripheral device reset circuit, 7 ... AC power supply, 8 ... Comparator, 9, 12 ... Capacitor, 10, 11, 14
...Resistor, 13...Diode, 16...OR
Gate.

Claims (1)

【特許請求の範囲】 1 基本ユニツトと、この基本ユニツトに着脱自
在に構成されて上記基本ユニツトに装着されたと
き上記基本ユニツトから電源が供給されて上記基
本ユニツトとの間でデータのやり取りができるよ
う構成された周辺機器からなるシーケンス制御装
置において、 上記基本ユニツトは、第1のCPUと、交流電
源に接続されてその瞬断を検出して上記第1の
CPUをリセツトする信号を発生する第1のリセ
ツト回路と、この第1のリセツト回路の出力に接
続された出力端子を備え、 上記周辺機器は上記出力端子に接続される入力
端子と、第2のCPUと、上記基本ユニツトへの
装着を検出して上記第2のCPUをリセツトする
信号を発生する第2のリセツト回路と、入力の一
方が上記第2のリセツト回路の出力に接続され、
入力の他方が上記入力端子に接続されて上記第2
のリセツト回路の出力と上記第1のリセツト回路
の出力の論理和をとりその出力をリセツト信号と
して上記第2のCPUに供給する論理和回路を備
えたことを特徴とするシーケンス制御装置。
[Scope of Claims] 1. A basic unit, which is configured to be detachably attached to the basic unit, and when attached to the basic unit, power is supplied from the basic unit and data can be exchanged with the basic unit. In a sequence control device consisting of peripheral devices configured as such, the basic unit is connected to a first CPU and an AC power supply, detects a momentary interruption of the AC power supply, and operates the first CPU.
The peripheral device includes a first reset circuit that generates a signal to reset the CPU, and an output terminal connected to the output of the first reset circuit, and the peripheral device has an input terminal connected to the output terminal, and a second reset circuit. a second reset circuit that detects attachment to the basic unit and generates a signal to reset the second CPU; one of its inputs is connected to the output of the second reset circuit;
The other input is connected to the input terminal and the second input terminal is connected to the second input terminal.
1. A sequence control device comprising: an OR circuit which logically sums the output of the first reset circuit and the first reset circuit, and supplies the output as a reset signal to the second CPU.
JP4214083A 1983-03-16 1983-03-16 Sequence controller Granted JPS59168504A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4214083A JPS59168504A (en) 1983-03-16 1983-03-16 Sequence controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4214083A JPS59168504A (en) 1983-03-16 1983-03-16 Sequence controller

Publications (2)

Publication Number Publication Date
JPS59168504A JPS59168504A (en) 1984-09-22
JPH0581922B2 true JPH0581922B2 (en) 1993-11-16

Family

ID=12627629

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4214083A Granted JPS59168504A (en) 1983-03-16 1983-03-16 Sequence controller

Country Status (1)

Country Link
JP (1) JPS59168504A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007231767A (en) * 2006-02-28 2007-09-13 Honda Motor Co Ltd Camshaft lubricating device for ohc engine

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53149739A (en) * 1977-06-01 1978-12-27 Mitsubishi Electric Corp Computer system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53149739A (en) * 1977-06-01 1978-12-27 Mitsubishi Electric Corp Computer system

Also Published As

Publication number Publication date
JPS59168504A (en) 1984-09-22

Similar Documents

Publication Publication Date Title
US6862200B2 (en) Methods and apparatus for providing power signals to operating circuitry mounted on circuit boards
US7590890B2 (en) Hot-swap power controller generating sequenced power-good signals
KR970701864A (en) MICROCONTROLLER WITH BROWN-OUT DETECTION
JPH0120777B2 (en)
JP2862591B2 (en) Inrush current prevention circuit
CA2136384A1 (en) Microprocessor watchdog circuit
JPH0581922B2 (en)
CN216052961U (en) Power-down time sequence control circuit
JPH0460245B2 (en)
JP3535520B2 (en) Reset circuit
JP2000083331A (en) Backup power supply circuit and electronic circuit
JP2857442B2 (en) Power supply low voltage detector
JP2976345B2 (en) Power failure detection circuit
JP2556442B2 (en) Power supply monitoring device
JPS5944852B2 (en) power supply
KR0159407B1 (en) Apparatus for sensing power failure in micom
JPS63103311A (en) Processing method for microcomputer system at time of service interruption
JP2592084B2 (en) Data processor in toll collection system
JPS5995625A (en) Resetting circuit
JPH0334689B2 (en)
JPS59133619A (en) Data protecting device
JPH02136024A (en) Service interruption detection circuit
JPH0122367Y2 (en)
KR0112449Y1 (en) Apparatus for terminal error
JPH02189613A (en) Microcomputer power on reset circuit