JPH03260701A - Fa controller - Google Patents
Fa controllerInfo
- Publication number
- JPH03260701A JPH03260701A JP2059466A JP5946690A JPH03260701A JP H03260701 A JPH03260701 A JP H03260701A JP 2059466 A JP2059466 A JP 2059466A JP 5946690 A JP5946690 A JP 5946690A JP H03260701 A JPH03260701 A JP H03260701A
- Authority
- JP
- Japan
- Prior art keywords
- instantaneous power
- power failure
- signal
- power outage
- cpu
- 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
Links
Landscapes
- Power Sources (AREA)
- Safety Devices In Control Systems (AREA)
- Control By Computers (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
(産業上の利用分野)
この発明は、R5232Cなどの外部機器との交信手段
を有したFAコントローラに関するもので、特に瞬時停
電による誤動作を阻止するものである。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an FA controller having a means for communicating with external equipment such as R5232C, and is particularly intended to prevent malfunctions caused by instantaneous power outages.
(従来の技術〕
第6図は従来のFAコントローラを示すハードウェア構
成図であり、図において、(1)はトランス、(2)
は定電圧回路、(3) はCPII 、(4)はROM
、(5)はRAM 、 (6)は外部機器との交信制御
回路である。なお、その他に表示器とのインターフェー
スやハードディスクなどが接続されるが説明を省略する
。(Prior Art) Fig. 6 is a hardware configuration diagram showing a conventional FA controller. In the figure, (1) is a transformer, (2)
is constant voltage circuit, (3) is CPII, (4) is ROM
, (5) is a RAM, and (6) is a communication control circuit with external equipment. Note that an interface with a display device, a hard disk, etc. are also connected, but their explanation will be omitted.
上記構成おいて、交流電源(図示省略)より供給された
交流電圧は、トランス(1)を介して絶縁された二次電
圧(例えば^C30V )に変換され、定電圧回路(2
)に人力される。上記定電圧回路(2)は、上記二次電
圧より直流の定電圧(例えばDC5V)を生成し、CP
U (3)ないし交信制御回路(6)の電源電圧として
供給する。In the above configuration, an AC voltage supplied from an AC power supply (not shown) is converted to an isolated secondary voltage (for example, 30V) via a transformer (1), and the constant voltage circuit (2
) is done manually. The constant voltage circuit (2) generates a DC constant voltage (for example, DC5V) from the secondary voltage, and
Supplied as the power supply voltage for U (3) or communication control circuit (6).
CPU (3)はROM (4)に書かれている予め決
められた手順に従って交信制御回路(6)及びハードデ
ィスク(図示省略)にデータを書き込んだり、読み出し
たりしてFAコントローラとしての機能を実行する。R
AM (5)は、データを一時的に格納したり、演算結
果を一時的に退避したりする目的に使われるものであり
、また、上記交信制御回路(6)は、外部に接続された
外部機器(図示省略)と交信(例えばR5232C,R
5422などの通信)するためのインターフェース手段
である。The CPU (3) writes and reads data to and from the communication control circuit (6) and hard disk (not shown) according to predetermined procedures written in the ROM (4), thereby performing the function of an FA controller. . R
AM (5) is used for the purpose of temporarily storing data and temporarily saving calculation results, and the communication control circuit (6) is used for the purpose of temporarily storing data and temporarily saving calculation results. Communication with equipment (not shown) (e.g. R5232C, R
5422, etc.).
ここで、上記外部機器が交流信号のON/ OFF信号
を出力する機能を有している場合、上記CPU(3)は
、上記外部機器のON/ OFF信号を上記交信制御回
路(6)を介して人力する。即ち、上記交流入力がON
の場合、上記CPU H)は、例えば”1”を人力して
ONと判定する。しかし、このとき、交流電源に瞬時停
電が発生した場合、上記交流入力がONシているにも拘
わらず、交流電源がないため、上記CPU (3)は”
0”を入力してOFFと判定することがある。Here, if the external device has a function of outputting an ON/OFF signal of an AC signal, the CPU (3) outputs the ON/OFF signal of the external device via the communication control circuit (6). It takes a lot of manpower. That is, the above AC input is ON.
In this case, the CPU H) determines that it is ON by manually setting it to "1", for example. However, at this time, if a momentary power outage occurs in the AC power supply, the CPU (3)
0'' may be input and determined to be OFF.
また、上記外部機器がR5232Cなどのシリアル通信
機能を有した機器の場合は、次のような動作をする。上
記外部機器から送出されるシリアルデータは交信制御回
路(6)で実行される。上記交信制御回路(6)は、デ
ータを受信すると、割込信号(図示省略)を発生してC
PU (3)に知らせ、受信したデータを読み込むよう
要求する。上記CPU(3)は上記割込信号を受は付け
ると、第7図で説明するフローに従った動作を行い、結
果的に上記外部機器からの情報を読み込むことになる。Further, if the external device is a device having a serial communication function such as R5232C, the following operation is performed. Serial data sent from the external device is executed by the communication control circuit (6). When the communication control circuit (6) receives data, it generates an interrupt signal (not shown) and
Notify PU (3) and request it to read the received data. When the CPU (3) accepts the interrupt signal, it performs operations according to the flow described in FIG. 7, and as a result reads information from the external device.
即ち、上記CPU (3)は、通常複数の割込信号が接
続されているため、どのブロックからの割込信号を判別
する判別処理A(ステップSl)を実行する。That is, since a plurality of interrupt signals are normally connected to the CPU (3), the CPU (3) executes determination processing A (step Sl) to determine which block the interrupt signal is from.
そのため、処理A(ステップSt)を実行した結果、上
記交信制御回路(6)が割込発生元であると判断した場
合、上記交信制御回路(6)が正常か否かの判断処理(
ステップS2)を実行する。その結果、正常と判断した
場合には、処理B(ステップS3)を実行し、上記外部
機器からの情報を読み込む、他方、異常と判断した場合
には、処理C(ステップS5)を実行し、(:RT
(図示省略)等に交信エラー表示などを実行する。ここ
で、上記交信エラーの内容は、データなどのオーバフロ
ーによる交信エラーやノイズ等原因不明のエラー さら
には瞬時停電などによるエラーなど種々ある。Therefore, as a result of executing process A (step St), if it is determined that the communication control circuit (6) is the interrupt generation source, the process of determining whether the communication control circuit (6) is normal or not (
Step S2) is executed. As a result, if it is determined to be normal, process B (step S3) is executed and information from the external device is read; on the other hand, if it is determined to be abnormal, process C (step S5) is executed, (:RT
(not shown), etc., displays a communication error. Here, there are various types of communication errors, such as communication errors due to overflow of data, errors with unknown causes such as noise, and errors due to instantaneous power outages.
(発明が解決しようとする課題〕
従来のFAコントローラは以上のように構成されている
ので、交流電源に瞬時停電が生じた場合、誤入力したり
、さらには、瞬時停電によって発生すべく生じたエラー
にも拘わらず、ノイズなど原因不明の現象と同様のエラ
ー表示をするため、エラーによるシステムの停止を長引
かせるなどの問題があった。(Problems to be Solved by the Invention) Conventional FA controllers are configured as described above, so when a momentary power outage occurs in the AC power supply, incorrect input may occur, and furthermore, the problem that should occur due to the momentary power outage may occur. Despite the error, an error display similar to that of an unknown phenomenon such as noise is displayed, resulting in problems such as prolonging system stoppage due to the error.
この発明は上記のような問題を解決するためになされた
ものであり、瞬時停電による誤動作を防止することがで
き、さらには、瞬時停電によるエラー要因を判別してシ
ステムの復旧が用意にできるFAコントローラを得るこ
とを目的とする。This invention was made to solve the above-mentioned problems, and provides an FA that can prevent malfunctions caused by instantaneous power outages, and can also easily restore the system by determining the cause of the error caused by instantaneous power outages. The aim is to get a controller.
(課題を解決するための手段)
この発明に係るFAコントローラは、少なくともCPU
と、プログラム格納用メモリと、演算作業用メモリと、
外部機器と交信する外部機器交信制御回路とを有したF
Aコントローラにおいて、供給される交流電源の瞬時停
電を検出する瞬時停電検出回路と、上記瞬時停電検出回
路より出力される瞬時停電信号を一定時間記憶する瞬時
停電記憶回路と、上記瞬時停電信号を上記CPIIの割
込入力として与え、上記CPUの動作を中断する中断処
理手段と、上記瞬時停電記憶回路より出力される瞬時停
電記憶信号と上記瞬時停電信号を入力する状態読出回路
とを有したものである。(Means for Solving the Problems) The FA controller according to the present invention includes at least a CPU
, a program storage memory, a calculation work memory,
F having an external device communication control circuit that communicates with external devices
In the A controller, a momentary power failure detection circuit detects a momentary power failure of the supplied AC power; a momentary power failure memory circuit stores the instantaneous power failure signal output from the instantaneous power failure detection circuit for a certain period of time; It is provided as an interrupt input of the CPII and has an interruption processing means for interrupting the operation of the CPU, and a status reading circuit that inputs the instantaneous power failure memory signal outputted from the instantaneous power failure memory circuit and the instantaneous power failure signal. be.
また、上記FAコントローラにおいて、瞬時停電が復帰
した直後に上記中断処理手段を中止し、上記CPt1の
上記処理を再開するCPU再開処理手段と、瞬時停電の
前後にエラーが発生した場合、工ラー要因を検索するエ
ラー要因検索処理手段と、瞬時停電信号と瞬時停電記憶
信号により、エラー要因が瞬時停電であると判断する瞬
時停電エラー判定処理手段を有したものである。In addition, in the FA controller, a CPU restart processing means that stops the above-mentioned interruption processing means immediately after the instantaneous power outage is restored and restarts the above-mentioned processing of the CPt1, and a CPU restart processing means that stops the above-mentioned interruption processing means immediately after the instantaneous power outage is restored, and a and an instantaneous power outage error determination processing means that determines that the error cause is an instantaneous power outage based on the instantaneous power outage signal and the instantaneous power outage storage signal.
この発明においては、瞬時停電信号に基づいてCPUの
動作を中断させ、誤入力信号による誤演算を防止し、ま
た、瞬時停電記憶信号により、瞬時停電によるエラー要
因を判別する。In this invention, the operation of the CPU is interrupted based on the instantaneous power outage signal to prevent erroneous calculations due to erroneous input signals, and the cause of the error caused by the instantaneous power outage is determined based on the instantaneous power outage storage signal.
(実施例)
以下、この発明の一実施例を第6図と同一部分は同一符
号を付して示す第1図に基づいて説明する。第1図にお
いて、(7)は電源の瞬時停電を検出する瞬時停電検出
回路、(8)は瞬時停電信号(10)を一定時間記憶す
る瞬時停電記憶回路、(9)は上記瞬時停電信号(lO
)と上記瞬時停電記憶回路(8)から出力される瞬時停
電記憶信号(11)を入力する状態読出回路であり、こ
こで、上記瞬時停電記憶回路(8)は、第2図に示すよ
うに、成形器(81) 、 (82) と、ダイオー
ド(83)と、抵抗(84)。(Embodiment) Hereinafter, an embodiment of the present invention will be described based on FIG. 1, in which the same parts as in FIG. 6 are denoted by the same reference numerals. In FIG. 1, (7) is a momentary power failure detection circuit that detects a momentary power failure, (8) is a momentary power failure memory circuit that stores the instantaneous power failure signal (10) for a certain period of time, and (9) is the momentary power failure signal (10). lO
) and the instantaneous power outage memory signal (11) outputted from the instantaneous power outage memory circuit (8). , shapers (81), (82), diodes (83), and resistors (84).
(85)及びコンデンサ(86)とでなり、検出遅れ時
間t、は、抵抗(84)と抵抗(85)の並列抵抗とコ
ンデンサ(86)の充電時間によって決められ、復帰時
間t4は、抵抗(85)と上記コンデンサ(86)の放
電時間によって決まるものである。(85) and a capacitor (86), the detection delay time t, is determined by the parallel resistance of the resistor (84) and the resistor (85), and the charging time of the capacitor (86), and the recovery time t4 is determined by the charging time of the resistor (86). 85) and the discharge time of the capacitor (86).
次に動作について説明する。交信制御回路(6)に接続
された外部機器が交流信号のON/ OFF信号を出力
する機能を有している場合について説明する。Next, the operation will be explained. A case will be explained in which the external device connected to the communication control circuit (6) has a function of outputting an ON/OFF signal of an AC signal.
CPt1 (3)が上記外部機器の0N10FF信号を
、上記交信制御回路(6)を介して“1”または“0”
の信号として読出し、ON/ OFFと判定するのは、
従来例と同様である。しかし、このとき、交流電源(図
示省略)に瞬時停電が発生した場合、即ち、上記外部機
器の交流入力がONシているにも拘わらず、瞬時停電の
ため上記外部機器の出力が“0”を出力する場合(従っ
て、上記CPLI (3)はOFFと判定するはず)、
瞬時停電検出回路(7)は、これを検出して瞬時停電信
号(10)をアクティブとする。この瞬時停電信号(1
0)は、CPII (3)への割込入力となり、これに
よりCPII (3)は、ROM(4)に予め決められ
ている中断処理を実行する。CPt1 (3) converts the 0N10FF signal from the external device to “1” or “0” via the communication control circuit (6).
It is read as a signal and judged as ON/OFF.
This is the same as the conventional example. However, at this time, if a momentary power outage occurs in the AC power supply (not shown), that is, even though the AC input of the external device is ON, the output of the external device becomes "0" due to the momentary power outage. (Therefore, the above CPLI (3) should be determined to be OFF),
The instantaneous power failure detection circuit (7) detects this and activates the instantaneous power failure signal (10). This instantaneous power outage signal (1
0) becomes an interrupt input to CPII (3), which causes CPII (3) to execute an interrupt process predetermined in ROM (4).
ここで、上記中断処理は、第4図に示すように、「瞬時
停電中か?」の処理プログラムを実行しているたけであ
るため、上記外部機器からの入力情報は、読出されない
。つまり、瞬時停電による誤入力を読出さないことにな
る。Here, as shown in FIG. 4, the interruption process merely executes the processing program "Is there a momentary power outage?", so the input information from the external device is not read out. In other words, erroneous inputs caused by instantaneous power outages will not be read.
次に、上記瞬時停電が復帰すると、上記瞬時停電検出回
路(7)は、瞬時停電信号(10)を非アクティブとし
、従って、上記CPU (3)は中断していた作業を再
開し、例えば、上記外部機器からの情報を読み出す。し
かし、上記外部機器から入力される情報は、瞬時停電が
復帰されているため正常な信号を出力しており、上記C
PII (3)は正常動作を継続することになる。ここ
で、「正常な信号」とは、外部機器の交流入力がONシ
ているにも拘わらず、瞬時停電のため出力が“0”(O
FF)になるような異常状態とはなフていないことを意
味し、誤入力が防げる。Next, when the instantaneous power outage returns, the instantaneous power outage detection circuit (7) deactivates the instantaneous power outage signal (10), and the CPU (3) therefore resumes the interrupted work, e.g. Read information from the above external device. However, the information input from the external device is outputting a normal signal because the instantaneous power outage has been restored, and the information input from the external device is outputting a normal signal.
PII (3) will continue normal operation. Here, a "normal signal" means that even though the AC input of the external device is ON, the output is "0" (O
This means that there is no abnormal state such as FF), and erroneous input can be prevented.
また、上記外部機器がR5232Cなどのシリアル通信
機能を有した機器の場合について説明する。但し、基本
的な動作は従来例と同じであるために省略し、瞬時停電
が生じた場合についての説明を以下にする。即ち、上記
CPU (3)が上記外部機器よりデータを受信中に瞬
時停電が生じた場合について説明する。上記CPU (
3)は、第5図に示す割込処理プログラムにおいて、割
込信号の発生元を判別しくステップSl) 、例えば交
信制御回路(6)が発生元の場合、交信制御回路(6)
が正常か否かの判断(ステップS2)で正常と判断した
場合、[処理BJ (ステップS3)を実行中であり
、このときに瞬時停電が発生すると、上記瞬時停電検出
回路(7)は瞬時停電信号(lO)をアクティブにし、
上記CPU (3)は、上記ROM (4)に予め決め
られている中継処理(第4図参照)を実行する。即ち、
上記「中断処理」は「瞬時停電中か?」の処理プログラ
ムを実行しているだけである。このとき、上記外部機器
からは、上記CPU (3)の中断処理とは、非同期に
データが送信されているため、次のデータが受信された
場合、交信制御回路(6)に内蔵されているバッファ(
図示省略)に−時的に格納される。しかし、上記バッフ
ァは通常1〜2バイト分のデータ容量しかないのが普通
であり、従って、上記瞬時停電がさらに継続した場合、
上記バッファはデータオーバとなりエラー状態となる。Also, a case will be described in which the external device is a device having a serial communication function such as R5232C. However, since the basic operation is the same as that of the conventional example, it will be omitted, and the case where a momentary power outage occurs will be explained below. That is, a case will be described in which a momentary power outage occurs while the CPU (3) is receiving data from the external device. The above CPU (
3) is a step Sl) in which the interrupt signal generation source is determined in the interrupt processing program shown in FIG.
If it is determined to be normal in the judgment (step S2), the process BJ (step S3) is being executed, and if an instantaneous power outage occurs at this time, the instantaneous power outage detection circuit (7) Activate the power outage signal (lO),
The CPU (3) executes relay processing (see FIG. 4) that is predetermined in the ROM (4). That is,
The above-mentioned "interruption processing" merely executes the processing program "Is there a momentary power outage?". At this time, data is sent from the external device asynchronously with the interruption process of the CPU (3), so when the next data is received, the communication control circuit (6) has a built-in buffer(
(not shown). However, the buffer normally has a data capacity of only 1 to 2 bytes, so if the instantaneous power outage continues,
The buffer becomes overloaded with data and enters an error state.
次に、この状態で上記瞬時停電が復帰した場合について
説明する。即ち、上記瞬時停電検出回路(7)は上記瞬
時停電信号(10)を非アクティブにし、従って、上記
CPt1 (3)は上記中断処理から開放され、中断以
前の仕事を再開する。Next, a case will be described in which the instantaneous power outage is restored in this state. That is, the instantaneous power failure detection circuit (7) deactivates the instantaneous power failure signal (10), so that the CPt1 (3) is released from the interruption process and resumes the work it was doing before the interruption.
瞬時停電中に受信した割込信号は通常保持されているの
で、上記CPU (3)は、第5図に示す割込処理を実
行し、上記交信制御回路(6)をアクセスする。このと
き、上述したように、上記交信制御回路(6)はエラー
状態となっているため、割込処理プログラムのステップ
S2でエラー有りの処理を実行する。さらに、ステップ
S4にて、「瞬時停電があったか」の処理プログラムを
実行するわけである。上記ステップS4では、具体的に
は状態読出回路(9)より上記瞬時停電信号(lO)と
瞬時停電記憶信号(11)を読み出して瞬時停電の有無
の判断が可能となっている。Since the interrupt signal received during a momentary power outage is normally held, the CPU (3) executes the interrupt process shown in FIG. 5 and accesses the communication control circuit (6). At this time, as described above, since the communication control circuit (6) is in an error state, an error process is executed in step S2 of the interrupt processing program. Furthermore, in step S4, a processing program for determining whether there was an instantaneous power outage is executed. In step S4, specifically, the instantaneous power outage signal (lO) and the instantaneous power outage storage signal (11) are read out from the status reading circuit (9), thereby making it possible to determine whether or not there is a momentary power outage.
ここで、上記瞬時停電記憶信号(11)について説明す
る。瞬時停電が発生すると、上記瞬時停電検出回路(7
)は瞬時停電信号(10)をアクティブとする。第3図
はそのタイムチャートを示したものであり、図中、遅れ
時間t1は上記瞬時停電検出回路(7)に起因する検出
遅れ時間である。上記瞬時停電信号(10)は、瞬時停
電記憶回路(8)に人力されているため、上記瞬時停電
信号(10)より遅れて瞬時停電記憶信号(11)をア
クティブとする。図中t3は上記瞬時停電記憶信号(1
1)の遅れ時間であり、上記瞬時停電記憶回路(8)に
起因する検出遅れ時間である。Here, the instantaneous power failure storage signal (11) will be explained. When a momentary power failure occurs, the momentary power failure detection circuit (7)
) makes the momentary power outage signal (10) active. FIG. 3 shows the time chart, and in the figure, the delay time t1 is the detection delay time caused by the instantaneous power failure detection circuit (7). Since the instantaneous power outage signal (10) is manually input to the instantaneous power outage storage circuit (8), the instantaneous power outage storage signal (11) becomes active later than the instantaneous power outage signal (10). In the figure, t3 is the instantaneous power failure memory signal (1
1), which is the detection delay time caused by the instantaneous power failure storage circuit (8).
次に、瞬時停電が復帰すると、上記瞬時停電信号(10
)は遅れ時間t2後に復帰する。ここで、上記t2は上
記瞬時停電検出回路(7)に起因する復帰遅れ時間であ
る。さらに、上記瞬時停電信号(lO)の復帰は、上記
瞬時停電記憶信号(11)を非アクテイブ状態に復帰さ
せるが、その復帰時間t4は上記瞬時停電記憶回路(8
)によっである時間に予め決められている。即ち、具体
的には、第5図の割込処理プログラムを実行させ、「瞬
時停電があったか」 (ステップ54)までの処理時間
以上の時間が上記復帰時間t4として設定しである。Next, when the instantaneous power outage returns, the instantaneous power outage signal (10
) returns after a delay time t2. Here, t2 is the recovery delay time caused by the instantaneous power failure detection circuit (7). Further, the restoration of the instantaneous power outage signal (lO) causes the instantaneous power outage storage signal (11) to return to the inactive state, but the restoration time t4 is longer than the instantaneous power outage storage circuit (8).
) at a certain time. Specifically, the interrupt processing program shown in FIG. 5 is executed, and the recovery time t4 is set to be longer than the processing time up to "Is there an instantaneous power outage?" (step 54).
そのため、上記CPU (3)は第3図の状態B、 C
にて中断処理(第4図参照)を実行し、上記状態の終了
時点において、瞬時停電中に受信したデータ処理を実行
(第5図の割込処理を実行)するが、上記説明よりエラ
ー状態となっているため、ステップS4を実行する。Therefore, the CPU (3) is in states B and C in Figure 3.
The interruption process (see Figure 4) is executed at Therefore, step S4 is executed.
ここで、上記CPU (3)は状態読出回路(9)より
瞬時停電信号(lO)がHレベルで、瞬時停電記憶信号
(11)がLレベルとなっていることを読み出して、過
去(または直前)に瞬時停電があったことを判読できる
。そして、処理D(ステップS6)にて、操作者あるい
は外部機器に瞬時停電によるエラーが発生したことを知
らせ処理を終了する。Here, the CPU (3) reads from the status reading circuit (9) that the instantaneous power outage signal (lO) is at H level and the instantaneous power outage memory signal (11) is at L level, and ), it can be seen that there was a momentary power outage. Then, in process D (step S6), the operator or external equipment is informed that an error has occurred due to a momentary power outage, and the process ends.
参考までに瞬時停電によるエラーが発生したことを知っ
た上記操作者あるいは外部機器は、再度通信を行うこと
になる(従来はここでのエラー要因が不明のため、原因
究明に時間がかかつていた)。For reference, when the above operator or external device learns that an error has occurred due to a momentary power outage, they will communicate again (in the past, the cause of the error was unknown, so it took time to investigate the cause. ).
当然のことであるが、第5図のステップS4にて、瞬時
停電によるエラーでない場合には、処理C(ステップS
5)を実行し、上記操作者また外部機器にその主を知ら
せ処理を終了する。Naturally, in step S4 of FIG. 5, if the error is not due to a momentary power outage, then process
5) is executed, the operator or external device is informed of the owner, and the process is completed.
ここでのエラー要因は瞬時停電によるエラー要因を除外
して従来のエラー要因と同じである。The error factors here are the same as the conventional error factors, excluding the error factor due to instantaneous power outage.
また、第5図の処理D(ステップ5fi)にて、瞬時停
電によるエラー発生を外部の操作者にCRTなどの表示
手段(図示省略)を介して「瞬時停電により交信エラー
が発生した」という主旨の情報を表示することも可能で
あると述べたが、さらに、第5図の上記処理D(ステッ
プS6)にて、上記表示手段に表示する代わりに、再度
、外部機器に交信要求を行い再交信することも可能とな
る。ここで、ある情報をCRTなどに表示する手段や外
部機器に交信を要求する手段は、一般的には公知である
ため、説明を省略する。In addition, in process D (step 5fi) of FIG. 5, the occurrence of an error due to a momentary power outage is notified to an external operator via a display means such as a CRT (not shown), indicating that a communication error has occurred due to a momentary power outage. However, in the process D (step S6) of FIG. 5, instead of displaying the information on the display means, it is possible to request the external device to communicate again. It is also possible to communicate. Here, since the means for displaying certain information on a CRT or the like and the means for requesting communication from an external device are generally known, their explanation will be omitted.
尚、上記実施例では、瞬時停電信号と瞬時停電信号をロ
ーアクティブとして説明したが、ハイアクティブとして
も同様の効果があるのは言うまでもない。In the above embodiment, the instantaneous power outage signal and the instantaneous power outage signal have been described as being low active, but it goes without saying that the same effect can be achieved even if they are high active.
また、瞬時停電記憶回路の一実施例として、第2図で説
明したが、ノット素子やアンドゲート素子などで構成し
ても同様の効果があるのは言うまでもない。Furthermore, although an embodiment of the instantaneous power failure memory circuit has been described with reference to FIG. 2, it goes without saying that the same effect can be obtained even if the circuit is constructed using a knot element, an AND gate element, or the like.
さらに、上記第2図では、充電時間と放電時間をダイオ
ードで異なる時間としたが、同一の08時定数としても
問題がないのは言うまでもない。Further, in FIG. 2, the charging time and discharging time are set to be different times depending on the diode, but it goes without saying that there is no problem even if the same 08 time constant is used.
さらに、瞬時停電状態を記憶するのにコンデンサで目的
を達しているが、他の素子、例えばフリップフロップに
よって記憶しても良いし、ソフトウェア的処理を介在し
てRAMなどに記憶しても同様の効果があるのは言うま
でもない。Furthermore, although a capacitor is used to store the instantaneous power outage state, it may be stored using other elements, such as a flip-flop, or it may be stored in a RAM or the like through software processing. Needless to say, it is effective.
(発明の効果)
以上のように、この発明によれば、瞬時停電中に、CP
uを無処理状態としているため、外部からの交流入力を
誤人力することがなく、信頼性の高いシステムを構築可
能とする効果がある。(Effects of the Invention) As described above, according to the present invention, during momentary power outage, the CP
Since u is in an unprocessed state, AC input from the outside is not erroneously inputted manually, and a highly reliable system can be constructed.
さらに、瞬時停電によるエラー要因を判別できるため、
外部より受信するデータのエラー判別か容易になるため
、システムの復旧が容易となる効果がある。Furthermore, it is possible to determine the cause of errors caused by momentary power outages.
This has the effect of making it easier to recover the system because it is easier to identify errors in data received from the outside.
第1図はこの発明の一実施例を示すFAコントローラの
概略構成図、第2図は第1図の瞬時停電記憶回路の一実
施例による回路図、第3図はこの発明を説明するための
出力波形図、第4図と第5図はこの発明における瞬時停
電時の中断処理と割込処理のフローチャート、第6図と
第7図は従来例のFAコントローラの構成図と瞬時停電
時の割込フローチャートである。
図において、(1)はトランス、(2)は定電圧回路、
(3)はCPU 、 (4)はROM、(5)はRAM
、(6)は交信制御回路、(7)は瞬時停電検出回路、
(8)は瞬時停電記憶、(9)は状態読出回路、(lO
)は瞬時停電信号、(11)は瞬時停電記憶信号である
。
図中同一符号は同−又は相当部分を示す。
第5図
5FIG. 1 is a schematic configuration diagram of an FA controller showing an embodiment of the present invention, FIG. 2 is a circuit diagram of an embodiment of the instantaneous power failure memory circuit of FIG. 1, and FIG. 3 is a schematic diagram for explaining the invention. Output waveform diagrams, Figures 4 and 5 are flowcharts of interruption processing and interrupt processing in the event of a momentary power outage in the present invention, and Figures 6 and 7 are block diagrams of a conventional FA controller and interrupt processing in the event of a momentary power outage. This is a flowchart including In the figure, (1) is a transformer, (2) is a constant voltage circuit,
(3) is CPU, (4) is ROM, (5) is RAM
, (6) is a communication control circuit, (7) is a momentary power failure detection circuit,
(8) is a momentary power failure memory, (9) is a status readout circuit, (lO
) is a momentary power failure signal, and (11) is a momentary power failure memory signal. The same reference numerals in the figures indicate the same or corresponding parts. Figure 5 5
Claims (2)
、演算作業用メモリと、外部機器と交信する外部機器交
信制御回路とを有したFAコントローラにおいて、供給
される交流電源の瞬時停電を検出する瞬時停電検出回路
と、上記瞬時停電検出回路より出力される瞬時停電信号
を一定時間記憶する瞬時停電記憶回路と、上記瞬時停電
信号を上記CPUの割込入力として与え、上記CPUの
動作を中断する中断処理手段と、上記瞬時停電記憶回路
より出力される瞬時停電記憶信号と上記瞬時停電信号を
入力する状態読出回路とを有したことを特徴とするFA
コントローラ。(1) Momentary power outage that detects a momentary power outage of the supplied AC power in an FA controller that has at least a CPU, a memory for storing programs, a memory for calculation work, and an external device communication control circuit that communicates with external devices. a detection circuit; an instantaneous power failure memory circuit that stores the instantaneous power failure signal output from the instantaneous power failure detection circuit for a certain period of time; and an interruption process that interrupts the operation of the CPU by giving the instantaneous power failure signal as an interrupt input to the CPU. and a state reading circuit that inputs the instantaneous power failure storage signal outputted from the instantaneous power failure storage circuit and the instantaneous power failure signal.
controller.
おいて、瞬時停電が復帰した直後に上記中断処理手段を
中止し、上記CPUの上記処理を再開するCPU再開処
理手段と、瞬時停電の前後にエラーが発生した場合、エ
ラー要因を検索するエラー要因検索処理手段と、瞬時停
電信号と瞬時停電記憶信号により、エラー要因が瞬時停
電であると判断する瞬時停電エラー判定処理手段を有し
たことを特徴とするFAコントローラ。(2) In the FA controller according to claim 1, there is provided a CPU restart processing means for suspending the interruption processing means immediately after the instantaneous power outage is restored and restarting the above processing of the CPU, and before and after the instantaneous power outage When an error occurs, the present invention is characterized by having an error cause search processing means for searching for the cause of the error, and an instantaneous power failure error determination processing means for determining that the cause of the error is an instantaneous power failure based on the instantaneous power failure signal and the instantaneous power failure memory signal. FA controller.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2059466A JPH03260701A (en) | 1990-03-09 | 1990-03-09 | Fa controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2059466A JPH03260701A (en) | 1990-03-09 | 1990-03-09 | Fa controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03260701A true JPH03260701A (en) | 1991-11-20 |
Family
ID=13114117
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2059466A Pending JPH03260701A (en) | 1990-03-09 | 1990-03-09 | Fa controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03260701A (en) |
-
1990
- 1990-03-09 JP JP2059466A patent/JPH03260701A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6259525B2 (en) | ||
| JPH03260701A (en) | Fa controller | |
| JPH10105422A (en) | Protection device control circuit | |
| CN110018921B (en) | Event logging controller and electronics | |
| JPS6310463B2 (en) | ||
| JPH04266141A (en) | Stack overflow detection system | |
| JPS62106552A (en) | Loop detector | |
| JPS62281781A (en) | Monitoring method for accident information | |
| JPH0120775B2 (en) | ||
| JPH06103480B2 (en) | Blackout processor | |
| JPS62222318A (en) | Information processor | |
| TWM626658U (en) | Computer system | |
| JPH01245322A (en) | Power failure control circuit for microprocessor | |
| JPS60207919A (en) | Microcomputer control device | |
| JPH03204739A (en) | Microcomputer | |
| JPH0394352A (en) | Data destruction area detecting processing system | |
| JPH04181303A (en) | Detecting method for momentary power failure time of programmable controller | |
| JPS59168511A (en) | Detecting system of service interruption for sequencer | |
| JP2002163008A (en) | Circuit and method for detecting run-away of programable controller | |
| JPH1011317A (en) | Digital control device | |
| JPS62217335A (en) | Monitor circuit for cpu runaway | |
| JPS6113350A (en) | Circuit for detecting abnormality of central controller | |
| JPS62271112A (en) | Data protecting system for apparatus equipped with microcomputer | |
| JPH01305410A (en) | Programmable controller | |
| JPH04153754A (en) | Storage control system |