JPS59168511A - Detecting system of service interruption for sequencer - Google Patents

Detecting system of service interruption for sequencer

Info

Publication number
JPS59168511A
JPS59168511A JP58043873A JP4387383A JPS59168511A JP S59168511 A JPS59168511 A JP S59168511A JP 58043873 A JP58043873 A JP 58043873A JP 4387383 A JP4387383 A JP 4387383A JP S59168511 A JPS59168511 A JP S59168511A
Authority
JP
Japan
Prior art keywords
service interruption
power outage
memory
flag
time
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
JP58043873A
Other languages
Japanese (ja)
Inventor
Kazuhiko Mitsuo
満尾 一彦
Mamoru Hatakawa
幡川 守
Yasuhisa Masuo
増尾 泰央
Tatsuo Kondo
達夫 近藤
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP58043873A priority Critical patent/JPS59168511A/en
Publication of JPS59168511A publication Critical patent/JPS59168511A/en
Pending 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
    • G05B19/0428Safety, monitoring

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To detect easiy the factor for a service interruption when a sequence operation is wrong by storing the information showing the generation of the service interruption in case a service interruption longer than a prescribed period of time of detected. CONSTITUTION:A processing circuit 1 which receives a signal from an input device 5 and delivers the signal to an output device 6 detects the service interruption of a power supply 2. Then the circuit 1 stores the data on the service interruption to a memory 3 backed up by a battery 4 before the voltage drop of the supply 2 exceeds the working limit of the processor 1. A flag showing the service interruption is set up and stored in the memory 3. When the service interruption lasts longer than a prescribed period of time, e.g., 10ms, the operation of the processor 1 is discontinued until the service interruption is over with the service interruption flag set up. When the service interruption is over within a prescribed period, a normal sequence is reset after the service interruption flag on the memory 3 is reset. A display device 7 displays the state of the service interruption flag on the memory 3 and therefore displays the generation of a service interruption longer than a prescribed period of time.

Description

【発明の詳細な説明】 技術分野 本発明は、シーケンサにおける停電を検出する方式に関
する。
DETAILED DESCRIPTION OF THE INVENTION TECHNICAL FIELD The present invention relates to a method for detecting a power outage in a sequencer.

従来技術 従来からのシーケンサ1d1予め定めた短い時間だけ停
電が発生Qても運転全続行するように構成されているも
のがある。このような先行技術では、その停電中に誤っ
た信号がシーケンサに人力されたとき、誤動作を生じる
。シーケンサの操作者(は、このような誤動作がなぜ生
じたかという原因がわからないという問題があった。
PRIOR ART There is a conventional sequencer 1d1 that is configured to continue full operation even if a power outage occurs for a short predetermined period of time. In such prior art, malfunctions occur when erroneous signals are manually applied to the sequencer during the power outage. The problem was that the sequencer operator did not know the cause of such malfunctions.

目   的 本発明の目的は、停電によって誤った信号全入力するお
それがあるとき、その停電が発生したこと全検出するよ
うにしたシーケンサの停電検出方式を提供することであ
る。
Purpose An object of the present invention is to provide a power outage detection method for a sequencer that detects all occurrences of a power outage when there is a risk that all erroneous signals may be input due to a power outage.

実施例 第1図は本発明の一実施例のブロック図である。Example FIG. 1 is a block diagram of one embodiment of the present invention.

シーケンサは、マイクロコンピュータなど全含む処理回
路゛1を有する。この処理回路1は、電源2によって電
力付勢される。この電12は停電を生じることがあり得
る。処理回路1に含まれているランダムアクセスメモリ
などのメモリ3は、蓄電池4によって電源2の停電時に
おいても記憶状態全保持することができるようにいわば
バックアンプされる。処理回路1には、入力装R5から
信号が入力され、また演算された信号は出力装置6に出
力される。処理回路1には表示装置7が接続される。
The sequencer has a processing circuit 1 including a microcomputer and the like. This processing circuit 1 is powered by a power source 2. This electricity 12 may cause a power outage. A memory 3 such as a random access memory included in the processing circuit 1 is so-called back-amplified by a storage battery 4 so that the entire storage state can be maintained even in the event of a power outage of the power supply 2. A signal is inputted to the processing circuit 1 from an input device R5, and a calculated signal is outputted to an output device 6. A display device 7 is connected to the processing circuit 1 .

処理回路1は、電源2の正常時には人力装置5からの信
号を受信して出力装置6に信号を導出し、これによって
外部機器(図示せず)が動作される。
When the power supply 2 is normal, the processing circuit 1 receives a signal from the human power device 5 and outputs the signal to the output device 6, thereby operating an external device (not shown).

この処理回路1ば、電源2の停電を検出し、この電画2
の異常が差し迫ったときに、実際に電源2が処理回路1
の動作限界を超えるよりも早く、すなわち処理回路1が
正常な動作全持続する期間内において、割込み動作を行
なって第2図に示される動作全行なうように構成される
This processing circuit 1 detects a power outage in the power supply 2, and
When an abnormality is imminent, the power supply 2 actually turns on the processing circuit 1.
It is configured to perform an interrupt operation and perform all the operations shown in FIG. 2 earlier than the operation limit of 1 is exceeded, that is, within the period during which the processing circuit 1 continues its normal operation.

処理回路1のメモリ3には、第3図に示されるメモリマ
ツプのように情報がストアされる。このメモリ3には、
人カヨ妾点XO、Xi 、X2 、・・・と、出力接点
YO、Yl 、Y2 、・・・と、内部リレーCRO、
CRI 、CR2、・・・に関する情報か割当てられて
ストアされる。停電が生じると、内部1ル−〇1つであ
る停電フラグCROが論理「1」とされてセントされる
Information is stored in the memory 3 of the processing circuit 1 as shown in the memory map shown in FIG. In this memory 3,
The contact points XO, Xi, X2,..., the output contacts YO, Yl, Y2,..., and the internal relay CRO,
Information regarding CRI, CR2, . . . is allocated and stored. When a power outage occurs, the power outage flag CRO, which is an internal one, is set to logic "1" and sent.

シーケンサの操作者は、第4図のように電の2が正常で
あるときに実行されるべきジーケンスフ゛ログラムAと
、予め定めた時間たとえば10m5ec以上の停電が生
じた後に停電か復帰したときに行ナワレるべきシーケン
スプログラムBとをメモIJ3にストアしておく。正常
時には、停電フラグCROは論理「0」であり、したが
ってジャンプ命令JMPは実行されない。こうしてシー
ケンスプログラムAの動作が繰返し行なわれる。ジャン
プ命令JMPは、シーケンスプログラムAiステップJ
MPEまで実行しないで、シーケンスプログ・ラムBを
割込んで実行するための命令である。予め定めた時間た
とえば10m5ec  以上の停電が持続し、その後、
停電が復帰したときにはシーケンスプログラムBが実行
される。このシーケンスプログラムBの最後には、内部
リレーCR8が論理「1」になることによって、停電フ
ラグCROが論理「0」にリセットされる。これによっ
て次のサイクルの実行時には、通常のシーケンスプログ
ラムAが実行されることになる。すなわち停電復帰時に
は、シーケンスプログラムB’に1回実行した後に、正
常時における通常のシーケンスプログラムAi繰返し実
行することになる。
The operator of the sequencer must select the sequence program A that should be executed when power supply 2 is normal as shown in Figure 4, and when the power is restored after a power outage of 10m5ec or more, for example, for a predetermined period of time. The sequence program B that should be updated is stored in the memo IJ3. During normal operation, the power outage flag CRO is logic "0", so the jump instruction JMP is not executed. In this way, the operation of sequence program A is repeated. Jump instruction JMP is sequence program Ai step J
This is an instruction to interrupt and execute sequence program B without executing up to MPE. After a power outage continues for a predetermined period of time, for example 10m5ec or more,
When the power outage is restored, sequence program B is executed. At the end of this sequence program B, internal relay CR8 becomes logic "1", and power failure flag CRO is reset to logic "0". As a result, the normal sequence program A will be executed when the next cycle is executed. That is, when the power is restored, the sequence program B' is executed once, and then the normal sequence program Ai during normal operation is repeatedly executed.

第2図において停電が生じると、ステップn1からn2
に移シ、入力接点X1出力接点Y、および内部リレーC
Rのデータ全変化しないようにして保存する。ステップ
n3では、内部リレーの1つである停電フラグCRO’
i論理「1」にセントする。そこでステップn3aでは
、予め定めた時間たとえば10m5ec’(z刻時して
カウントしてゆく。この予め定めた時間経過後に、ステ
ップn4において停電が持続しているか否かを判断する
In FIG. 2, when a power outage occurs, steps n1 to n2
, input contact X1 output contact Y, and internal relay C
Save the R data so that it does not change. In step n3, the power outage flag CRO', which is one of the internal relays, is
Cent to i logical "1". Therefore, in step n3a, a predetermined period of time, for example, 10 m5ec' (z) is counted. After this predetermined period of time has elapsed, it is determined in step n4 whether or not the power outage continues.

停電が持続していなければ、すなわち停電状態が10m
5ec未満だけしか生じなかったときには、ステップn
5に移′シ、停電フラグCROを論理「0」にリセット
し、ステップn6から割込み動作を終了して通常のシー
ケンスプログラムA全続行する。予め定めた時間以上の
停電が持続しているときにjj、、ステップn4からス
テップn7に移り、停電フラグCROをセットした′1
.まの状態で動作が休止する。この停電フラグCROの
セント状態は蓄電池4の働きによって保たれる。予め定
めた時間以上の停電が生じた後に停電が復帰すると、前
述のようにジャンプ命令が実行されて、シーケンスプロ
グラムBが実行される。その後、通常のシーケンスプロ
グラムAが前述のように繰返し実行さCることになる。
If the power outage is not sustained, that is, the power outage state is 10m.
If less than 5 ec occurred, step n
5, the power failure flag CRO is reset to logic "0", the interrupt operation is terminated from step n6, and the normal sequence program A is continued. When the power outage continues for a predetermined time or more, the process moves from step n4 to step n7, and the power outage flag CRO is set.'1
.. The operation stops in the current state. This cent state of the power outage flag CRO is maintained by the action of the storage battery 4. When the power is restored after a power outage lasting longer than a predetermined time, the jump command is executed as described above, and the sequence program B is executed. Thereafter, the normal sequence program A is repeatedly executed as described above.

予め定めた時h、たとえば前述のように10m5ee 
 では、停電が生じてもシーケンサに誤った人力信号が
与えられるおそれがほとんどないと考えられる。したが
って正常な動作全続行することができる。予め定めた時
間以上、停電1が持続したときには、シーケンサは誤っ
た信号全入力するおそれがある。このときには停電フラ
グCROが論理「1」であることを表示装置7によって
表示する。そのためシーケンス動作が誤っているときに
は、その原因が停電に起因したものであるか否か全判断
することが容易である。
At a predetermined time h, for example 10m5ee as mentioned above
Therefore, even if a power outage occurs, there is almost no possibility that an incorrect human input signal will be given to the sequencer. Therefore, normal operation can continue in its entirety. If the power outage 1 continues for a predetermined period of time or longer, there is a risk that the sequencer will receive all incorrect signals. At this time, the display device 7 displays that the power outage flag CRO is logical "1". Therefore, when a sequence operation is erroneous, it is easy to fully determine whether or not the cause is due to a power outage.

効果 以上のように本発明によれば、予め定めた時間以上持続
した停電全検出して停電の発生全表−1わす情報全スト
アするようにしたので、シーケンサが誤った動作音した
ときに、その原因を調べることが容易である。
Effects As described above, according to the present invention, all power outages that have lasted longer than a predetermined time are detected and all information on the occurrence of power outages is stored, so when the sequencer makes an erroneous operating sound, It is easy to investigate the cause.

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

第1図は不党明の一実施例のブロック図、第2図はその
動作を説明するためのフローチャート、第3図はメモリ
3のメモリマツプ全示す図、第4図は停電フラグCRO
を用いた動作全説明するための図である。 1・・・処理回路、2・・・電源、3・・・メモリ、4
・・・蓄電5池、5・・・入力装置、6・・・出力装置
、7・・・表示装置 代理人   弁理士 西教圭一部 第3図 第4図
Fig. 1 is a block diagram of one embodiment of Fukumei, Fig. 2 is a flowchart for explaining its operation, Fig. 3 is a diagram showing the entire memory map of the memory 3, and Fig. 4 is a diagram showing the power outage flag CRO.
FIG. 2 is a diagram for explaining the entire operation using. 1... Processing circuit, 2... Power supply, 3... Memory, 4
...Storage battery 5, 5...Input device, 6...Output device, 7...Display device Agent Patent Attorney Kei Nishi Part 3 Figure 4

Claims (1)

【特許請求の範囲】[Claims] 予め定めた時間以上持続した停電を検出して停電中も記
憶状態ヲ保持するストア手段に停電の発生全表わす情報
全ストアすることを%徴とするシーケンサの停電検出方
式。
A power outage detection method for a sequencer that detects a power outage that lasts for a predetermined period of time or more and stores all information indicating the occurrence of a power outage in a storage means that maintains the memory state even during the power outage.
JP58043873A 1983-03-15 1983-03-15 Detecting system of service interruption for sequencer Pending JPS59168511A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58043873A JPS59168511A (en) 1983-03-15 1983-03-15 Detecting system of service interruption for sequencer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58043873A JPS59168511A (en) 1983-03-15 1983-03-15 Detecting system of service interruption for sequencer

Publications (1)

Publication Number Publication Date
JPS59168511A true JPS59168511A (en) 1984-09-22

Family

ID=12675812

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58043873A Pending JPS59168511A (en) 1983-03-15 1983-03-15 Detecting system of service interruption for sequencer

Country Status (1)

Country Link
JP (1) JPS59168511A (en)

Similar Documents

Publication Publication Date Title
EP1034477B1 (en) Battery-operated device with power failure recovery
JPH11146572A (en) Uninterrupted power supply system, backup object device used for the system and record medium in which program for making computer operate as the backup object device are recorded
CN101206599B (en) Method for diagnosis and insulation of computer mainboard equipment
JP2001014069A (en) Method for automatically stopping power supply and information processor equipped with automatic power, supply stopping device
JPS59168511A (en) Detecting system of service interruption for sequencer
JPH10105422A (en) Control circuit of protecting device
JPH06348535A (en) Abnormality generation history storage device
JP3487127B2 (en) Information processing device, product registration device, and program storage medium
JPH03148719A (en) Power supply without power failure
JPH11183561A (en) Burn-in test system
JPS6057450A (en) Processor in breaking of power supply of electronic equipment
JPS62281781A (en) Monitoring method for accident information
JPH0754947B2 (en) Standby system monitoring method
JPH06308206A (en) Residual power monitoring system for battery
JPH01245322A (en) Power failure control circuit for microprocessor
JPS61265613A (en) Data processing device
JPH0721091A (en) Service interruption processing method for electronic computer
JPH0519897A (en) Resetting control circuit of information processor
JPH05108503A (en) Power failure processing system
JPS6247722A (en) Starting method for terminal equipment
JP3042034B2 (en) Failure handling method
JPS62254222A (en) Protecting device against service interruption
JPS60262229A (en) Lifetime discriminating method of memory backup battery
JPH11265321A (en) Fault restoring method central processing unit and central processing system
JPS61114323A (en) Processing method for abnormality of power supply of information processor