[go: up one dir, main page]

JPS6388602A - Operating method for sequence control - Google Patents

Operating method for sequence control

Info

Publication number
JPS6388602A
JPS6388602A JP23367086A JP23367086A JPS6388602A JP S6388602 A JPS6388602 A JP S6388602A JP 23367086 A JP23367086 A JP 23367086A JP 23367086 A JP23367086 A JP 23367086A JP S6388602 A JPS6388602 A JP S6388602A
Authority
JP
Japan
Prior art keywords
voltage
program
power source
power supply
execution
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
JP23367086A
Other languages
Japanese (ja)
Inventor
Shinichi Amagasaki
尼崎 新一
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP23367086A priority Critical patent/JPS6388602A/en
Publication of JPS6388602A publication Critical patent/JPS6388602A/en
Pending legal-status Critical Current

Links

Landscapes

  • Safety Devices In Control Systems (AREA)

Abstract

PURPOSE:To smoothly continue to execute a program at the time of an instantaneous power failure or the restarting time after a power source is cut off by storing a program step during the present execution immediately before a power source voltage is reduced to an unoperatable voltage. CONSTITUTION:A microprocessor 8 of a CPU unit 2, while the power source voltage of a power source unit 1 is always monitored by a voltage detecting circuit 7, receives and transmits the control signal of respective interface units 3-6. At the CPU unit 2, a memory 9 to store a step at the time of the power source reduction is provided and at the memory 9, an operating voltage from a back-up power source 10 including a battery, etc., is always supplied. Consequently, even when the power source voltage of the power source unit 1 is reduced, the memory 9 of the CPU unit 2 can store and hold a step instructed by the microprocessor 8. Thus, at the time of restarting the execution of the program, the step immediately before the voltage is reduced is read and from the step, the execution of the program can be restarted.

Description

【発明の詳細な説明】 「産業上の利用分野] 本発明はシーケンスコントローラの運転方法、特に電源
電圧低下時における運転停止及び再開の改良に関するも
のである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method of operating a sequence controller, particularly to an improvement in stopping and restarting operation when the power supply voltage drops.

[[従来の技術] 各種の自動加工ライン、部品組立てラインその他におけ
る多数の機械が組み合わされた生産設備における制御あ
るいはモニタを正確に行うためにシーケンスコントロー
ラが広範囲の産業分野において用いられており、制御対
象のシーケンス制御を自動化して複雑かつ高度な制御を
可能としている。
[[Prior Art] Sequence controllers are used in a wide range of industrial fields to accurately control or monitor production equipment in which many machines are combined, such as various automatic processing lines, parts assembly lines, etc. By automating the sequence control of the target, complex and advanced control is possible.

特に、近年の制御対象においては、コンピュータ、NC
装置あるいはロボットなどが有機的に結合されており、
これ等の機器をシーケンス制御するとともに、全体のラ
インを監視し、異常検出、追跡、位置決めあるいは計測
するための高機能のシーケンス制御が要求されている。
In particular, in recent years, control objects such as computers,
Devices or robots are organically connected,
In addition to sequentially controlling these devices, highly functional sequence control is required for monitoring the entire line, detecting abnormalities, tracking, positioning, and measuring.

前記シーケンスコントロー・うは被制御系の制御工程に
応じて予め複数ステップから成るシーケンスプログラム
が作成され、このプログラムを順次実行することによっ
て所望の制御作用が行われる。
A sequence program consisting of a plurality of steps is created in advance in accordance with the control process of the sequence controller or the controlled system, and a desired control action is performed by sequentially executing this program.

[発明が解決しようとする問題点] しかしながら、従来におけるシー′rンスコントローラ
は電源投入により前記複数ステップから成るシーケンス
プログラムはそのOステップすなわちプログラムの先頭
から必ず実行されていた。
[Problems to be Solved by the Invention] However, in the conventional sequence controller, when the power is turned on, the sequence program consisting of a plurality of steps is always executed from the O step, that is, from the beginning of the program.

このため、プログラムの実行中に、瞬時停電あるいは電
源遮断などの電源電圧低下が生じて一時的に電源がオフ
した場合などには、このような中断されたシーケンスプ
ログラムを電源投入によって再開するときにも必ずシー
ケンスプログラムは初期の先頭0ステツプからその実行
を開始し、このときに被制御系は既に途中の制御工程ま
で進んでいるので、このような場合には瞬時停電の前後
においてシーケンスコントローラの制御が不整となり、
場合によっては全く予期しない制御順序の狂いあるいは
制御不能などが生じてしまうという欠点があった。
Therefore, if the power is temporarily turned off due to a momentary power outage or a drop in the power supply voltage due to a power cut while a program is running, the interrupted sequence program will be restarted when the power is turned on. Also, the sequence program always starts its execution from the initial 0 step, and at this time the controlled system has already progressed to the middle control step, so in such a case, the sequence controller's control will be changed before and after the instantaneous power outage. becomes irregular,
In some cases, there is a drawback that a completely unexpected control sequence or loss of control may occur.

特に、シーケンスプログラムが制御工程の進行に応じた
カウント作用を行うカウンタなどを含むような場合、再
開時に前記カウンタの計数値とプログラムステップとの
間の整合がとれず、プログラムの実行が不可能となる場
合があった。
In particular, if the sequence program includes a counter that counts according to the progress of the control process, the count value of the counter and the program steps may not match when restarting, and the program may not be able to be executed. There were cases where it happened.

本発明は上記従来の課題に鑑みなされたものであり、そ
の目的は、瞬時停電あるいは電源遮断後の再開時におい
ても円滑にプログラムの実行が継続できる改良されたシ
ーケンスコントローラ運転方法を提供することにある。
The present invention has been made in view of the above-mentioned conventional problems, and its purpose is to provide an improved sequence controller operating method that allows program execution to continue smoothly even when restarting after a momentary power outage or power cut. be.

[問題点を解決するための手段〕 上記目的を達成するために、本発明は、CPUユニット
に供給される電源電圧の低下を検出し、電源電圧が作動
不能電圧まで低下する直前に現在実行中のプログラムス
テップを記憶し、次にプログラムの実行を停止し、運転
再開時には前記記憶されたステップを読み出し、CPU
ユニットはこノステップからシーケンスプログラムの実
行を再開することを特徴とする。
[Means for solving the problem] In order to achieve the above object, the present invention detects a drop in the power supply voltage supplied to the CPU unit, and immediately before the power supply voltage drops to an inoperable voltage, the current execution program steps are stored, then execution of the program is stopped, and when the operation is restarted, the stored steps are read out and the CPU
The unit is characterized by restarting execution of the sequence program from this step.

[実施例] 以下図面に基づいて本発明の好適な実施例を説明する。[Example] Preferred embodiments of the present invention will be described below based on the drawings.

第1図には本発明に係る運転方法が適用されたシーケン
スコントローラの全体構成が示されており、周知のごと
く、シーケンスコントローラは電源ユニット(1)、C
PUユニット(2)そして複数の入出カニニット、すな
わちキーボードインターフェース(3)、I10インタ
ーフェース(4)、(5)、(6)を含む。
FIG. 1 shows the overall configuration of a sequence controller to which the operating method according to the present invention is applied, and as is well known, the sequence controller includes a power supply unit (1), a C
It includes a PU unit (2) and a plurality of input/output units, namely a keyboard interface (3), an I10 interface (4), (5), and (6).

従って、CPUユニット(2)は電源ユニット(1)か
ら供給される電源電圧にて予め定められたシーケンスプ
ログラムを実行し、生産設備、加工組立てラインなどの
被制御系に連結されたI10インターフェースユニット
(4)、(5)。
Therefore, the CPU unit (2) executes a predetermined sequence program using the power supply voltage supplied from the power supply unit (1), and the I10 interface unit ( 4), (5).

(6)との信号授受を行い、またキーボードユニット(
3)からの操作信号にて所望のプログラム制御を行う。
(6), and also exchanges signals with the keyboard unit (6).
3) The desired program control is performed using the operation signal from 3).

本発明において特徴的なことは、CPUユニット(2)
が電源ユニット(1)の電源電圧を監視し、瞬時停電あ
るいは電源遮断時等の電源電圧降下時にこの電圧低下を
検出して、電源電圧が作動不能電圧に達する直前に現在
実行中のステップを記憶しその後にプログラムの実行を
停止し、更にプログラムの実行再開時には前記電圧低下
直前のステップを読み出しこのステップからプログラム
の実行を再開することを特徴とする。
The characteristic feature of the present invention is that the CPU unit (2)
monitors the power supply voltage of the power supply unit (1), detects this voltage drop when the power supply voltage drops due to a momentary power outage or power cutoff, and stores the step currently being executed just before the power supply voltage reaches the inoperable voltage. Then, the program execution is stopped, and when the program execution is resumed, the step immediately before the voltage drop is read and the program execution is resumed from this step.

第1図において、前記電源電圧の監視を行うためにCP
Uユニット(2)には電圧検出回路(7)が設けられて
おり、CPUユニット(2)のマイクロプロセッサ(8
)は電源ユニット(1)の電源電圧を電圧検出回路(7
)にて常時監視しながら前述した各インターフェースユ
ニット(3)〜(6)との制御信号授受を行う。
In FIG. 1, a CP is used to monitor the power supply voltage.
The U unit (2) is provided with a voltage detection circuit (7), and the microprocessor (8) of the CPU unit (2) is provided with a voltage detection circuit (7).
) is the voltage detection circuit (7) that detects the power supply voltage of the power supply unit (1).
) performs control signal exchange with each of the above-mentioned interface units (3) to (6) while constantly monitoring.

また、CPUユニット(2)には前述した電源低下時に
おけるステップを記憶するためのメモリ(9)が設けら
れており、このメモリ(9)には前記電源ユニット(1
)とは独立して設けられた電池などを含むバックアップ
電源(10)からの作動電圧が常時供給されている。
Further, the CPU unit (2) is provided with a memory (9) for storing the steps at the time of the power supply drop described above, and this memory (9) contains the power supply unit (1).
) is constantly supplied with operating voltage from a backup power source (10) including a battery or the like provided independently.

従って、電源ユニット(1)の電源電圧が低下した場合
においても、CPUユニット(2)のメモリ(9)はマ
イクロプロセッサ(8)によって指示されたステップを
記憶保持することができる。
Therefore, even if the power supply voltage of the power supply unit (1) drops, the memory (9) of the CPU unit (2) can store and retain the steps instructed by the microprocessor (8).

第2図には本実施例の電圧低下時における運転状態が示
されている。
FIG. 2 shows the operating state of this embodiment when the voltage drops.

実施例における電圧検出回路(7)は電源ユニット(1
)の直流電圧を監視しており、通常CPUユニット(2
)を作動させるために電源ユニット(1)からは5Vの
直流電圧が供給されており、この電圧は通常の場合には
電圧検出回路(7)を通過してそのままマイクロプロセ
ッサ(8)に印加されている。
The voltage detection circuit (7) in the embodiment is connected to the power supply unit (1
) monitors the DC voltage of the CPU unit (2
), a 5V DC voltage is supplied from the power supply unit (1), and normally this voltage passes through the voltage detection circuit (7) and is directly applied to the microprocessor (8). ing.

第2図の時刻t1は電源ユニット(1)の電源電圧が一
時停電あるいは電源遮断によって低下17、所定の基準
電圧VTHを例えば4.8■に達しまたタイミングを示
し、この4.8VはCPUユニット(2)のプログラム
制御には十分な電圧であるが、これ以下の所定値、例え
ば4.5V程度に電源電圧が低下したときにはCPUユ
ニット(2)によるプログラム制御が不能となる。
At time t1 in FIG. 2, the power supply voltage of the power supply unit (1) drops 17 due to a temporary power outage or power cutoff, and the predetermined reference voltage VTH reaches, for example, 4.8■, which also indicates the timing, and this 4.8V is the power supply voltage of the CPU unit. Although this voltage is sufficient for program control in (2), when the power supply voltage drops to a predetermined value below this, for example, about 4.5V, program control by the CPU unit (2) becomes impossible.

従って、時刻t1に於いて、制御作用が完全に行われて
いる状態で、マイクロプロセッサ(8)は電圧検出回路
(7)からの電圧低下信号(100)及びこの信号(1
00)の立上がりをトリガとするワンショット出力(1
01)を受け、CPUユニット(2)内で所定のステ・
ツブ数記憶及びプログラム停止を行う。
Therefore, at time t1, with the control action fully performed, the microprocessor (8) receives the voltage drop signal (100) from the voltage detection circuit (7) and this signal (100).
One-shot output (1
01), a predetermined step is executed in the CPU unit (2).
Memorize the number of knobs and stop the program.

第2図に示されるごとく、本実施例によれば、前記電圧
低下信号(101)の検出によりマ・イクロプロセッサ
(8)はメモリ(9)に現在実行中のステップを記憶し
、更にこの時刻t1より僅かに遅れた時刻t2において
CPUユニット(2)のプログラム実行を停止させる。
As shown in FIG. 2, according to this embodiment, upon detection of the voltage drop signal (101), the microprocessor (8) stores the currently executed step in the memory (9), and also stores the step currently being executed. The program execution of the CPU unit (2) is stopped at time t2, which is slightly later than t1.

従って、時刻t2では、被制御系のプログラム制御が完
全に停止制御されていることが理解される。
Therefore, it is understood that at time t2, the program control of the controlled system is completely stopped.

この実行停止状態では電源ユニット(1)の電源電圧は
作動可能な電圧以下、通常の場合OVに低下しているが
、この状態においても、前記メモリ(9)に記憶された
運転中断直前の実行ステップはバックアップ電源(10
)によって記憶保持されている。
In this execution stopped state, the power supply voltage of the power supply unit (1) is lower than the operable voltage, which is usually OV, but even in this state, the execution immediately before the operation interruption stored in the memory (9) is performed. The step is the backup power supply (10
) is stored in memory.

前述した瞬時停電あるいは電源遮断は短時間あるいは所
定の時期において復旧し一第2図において時刻t3にお
いて運転が再開会されると、直ちに自動的あるいはキー
ボードユニット(3)からのスタート信号によって運転
再開が指示され、まずマイクロプロセッサ(8)はメモ
リ(9)に記憶されているステップ数を読み出し、この
読み出されたステップ数からプログラムが再開される。
The instantaneous power outage or power interruption mentioned above is restored in a short time or at a predetermined period, and when operation is resumed at time t3 in FIG. 2, operation is immediately resumed automatically or by a start signal from the keyboard unit (3). When instructed, the microprocessor (8) first reads the number of steps stored in the memory (9), and the program is restarted from this read number of steps.

この時刻t3においては、既に電源ユニット(1)の電
源電圧は制御作用に十分な電圧まで回復しており、CP
Uユニット(2)は中断直前のステップからプログラム
制御を再開することができ、この結果、シーケンスプロ
グラムがカウントしているカウンタの計数値その他をそ
のまま利用しながら継続的にプログラムの実行が再開さ
れることとなる。
At this time t3, the power supply voltage of the power supply unit (1) has already recovered to a voltage sufficient for the control action, and the CP
The U unit (2) can resume program control from the step immediately before interruption, and as a result, program execution is resumed continuously while using the count value of the counter counted by the sequence program, etc. It happens.

前記スタート時刻t3にてマイクロプロセッサ(8)が
メモリ(9)の記憶ステップを読み出すと、メモリ(9
)の内容はリセットされ、直ちに次の電源電圧低下に備
えることができる。
When the microprocessor (8) reads the storage step in the memory (9) at the start time t3, the memory (9)
) is reset and ready for the next power supply voltage drop immediately.

従って、本発明によれば、電源電圧低下により運転中断
か生じた場合においても、運転再開時には中断直前のス
テップからプログラム制御が再開され、プログラムの実
行に整合不良その他が生じることがないという利点を有
する。
Therefore, according to the present invention, even if the operation is interrupted due to a drop in the power supply voltage, program control is resumed from the step immediately before the interruption when the operation is resumed, and there is an advantage that there is no misalignment or other problem in the execution of the program. have

もちろん、前記メモリ(9)は単にステップのみを記憶
するばかりでなく、例えばシーケンス演算の所定カウン
ト値その他も同時に記憶することが可能であり、あるい
は本発明において、このようなシーケンス演算用のメモ
リは前記メモリ(9)とは別個に設けることも可能であ
る。
Of course, the memory (9) can store not only steps but also, for example, a predetermined count value for sequence calculations, etc., or in the present invention, such a memory for sequence calculations can be It is also possible to provide it separately from the memory (9).

また、本発明において、前記バックアップ電源(10)
は通常の電池ばかりでなく、−時的な瞬時停電に対して
はコンデンサなどの充電電圧を一時的に用いることも可
能である。
Further, in the present invention, the backup power source (10)
In addition to ordinary batteries, it is also possible to temporarily use the charging voltage of capacitors in case of momentary power outages.

更に、電圧検出回路(7)は電源ユニット(1)から供
給される直流電圧ばかりでなく、電源ユニット(1)の
入力交流電圧、通常100vのAC電圧を監視すること
も可能である。
Furthermore, the voltage detection circuit (7) is capable of monitoring not only the DC voltage supplied from the power supply unit (1) but also the input AC voltage of the power supply unit (1), typically an AC voltage of 100V.

[発明の効果] 以上説明したように、本発明によれば、運転中断が生じ
た場合においてもシーケンスプログラムを初期Oステッ
プから再び再開されることなく、運転再開時には中断直
前のステップから再び運転を行うことができ、これによ
って中断があった場合においても、シーケンスプログラ
ムの実行がその前後において継続し、プログラムの実行
不能あるいは不整合な実行などを確実に除去【7て安全
確実なプログラム制御を行うことが可能となる。4゜図
面の筒〆1tな説明 第1図は本発明に係る運転方法が適用されたシーゲンス
コントローラの概略構成図、第2図は第1図における本
発明の運転中断前後における制御作用を示すタイミング
チャート図である。
[Effects of the Invention] As explained above, according to the present invention, even when an operation is interrupted, the sequence program is not restarted from the initial O step, and when the operation is restarted, the operation is restarted from the step immediately before the interruption. As a result, even if there is an interruption, the execution of the sequence program continues before and after the interruption, ensuring that unexecutable or inconsistent execution of the program is eliminated. becomes possible. 4゜ Final explanation of the drawings Fig. 1 is a schematic configuration diagram of the Siegen controller to which the operating method according to the present invention is applied, and Fig. 2 shows the control action of the present invention before and after the operation is interrupted in Fig. 1. It is a timing chart figure.

各図中同一部分は同−符号付しく1)は電源ユニット、
 (2)はCPUユニット、 (3)〜(6)1.10
インターフエースユニツト、(7)は電圧検出回路、(
8)はマイクロプロセッサ、(9)はメモリ、(10)
はバックアップ電源である。
Identical parts in each figure are given the same reference numerals, and 1) is a power supply unit;
(2) is a CPU unit, (3) to (6) 1.10
interface unit, (7) is a voltage detection circuit, (
8) is a microprocessor, (9) is a memory, (10)
is a backup power source.

Claims (1)

【特許請求の範囲】[Claims] (1)予め定められた複数ステップのシーケンスプログ
ラムを順次実行して被制御系の順次制御を行うシーケン
スコントローラの運転方法において、CPUユニットに
供給される電源電圧の低下を検出し、電源電圧が作動不
能電圧まで低下する直前に現在実行中のプログラムステ
ップを記憶し、次にプログラムの実行を停止し、 運転再開時には前記記憶されたステップを読み出し、C
PUユニットはこのステップからシーケンスプログラム
の実行を再開することを特徴とするシーケンスコントロ
ーラの運転方法。
(1) In a method of operating a sequence controller that sequentially executes a predetermined multi-step sequence program to sequentially control a controlled system, a drop in the power supply voltage supplied to the CPU unit is detected and the power supply voltage is activated. It memorizes the program step currently being executed just before the voltage drops to the disabled voltage, then stops the program execution, reads out the memorized step when restarting operation, and
A method for operating a sequence controller, characterized in that the PU unit resumes execution of the sequence program from this step.
JP23367086A 1986-10-01 1986-10-01 Operating method for sequence control Pending JPS6388602A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23367086A JPS6388602A (en) 1986-10-01 1986-10-01 Operating method for sequence control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23367086A JPS6388602A (en) 1986-10-01 1986-10-01 Operating method for sequence control

Publications (1)

Publication Number Publication Date
JPS6388602A true JPS6388602A (en) 1988-04-19

Family

ID=16958689

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23367086A Pending JPS6388602A (en) 1986-10-01 1986-10-01 Operating method for sequence control

Country Status (1)

Country Link
JP (1) JPS6388602A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016068102A (en) * 2014-09-29 2016-05-09 ブラザー工業株式会社 Laser processing device and control program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016068102A (en) * 2014-09-29 2016-05-09 ブラザー工業株式会社 Laser processing device and control program

Similar Documents

Publication Publication Date Title
US5117324A (en) Ups-computer system and method for initiating computer shutdown based on remaining battery time as determined from sensed battery voltage and discharge curves
EP0385774B1 (en) Method and apparatus for power failure protection
EP0484745B1 (en) Apparatus for controlling the power supply in a computer system
US5915118A (en) Apparatus and method for gradually shutting down a power supply
EP0471860B1 (en) Robot control method after interruption of service
JPH07160370A (en) Service interruption controller
JPS6197730A (en) Computer system power outage processing method
JPS6388602A (en) Operating method for sequence control
CN112130912B (en) Anti-refresh failure method and device for equipment to be refreshed
JPS63266511A (en) Power source control system
JP2639042B2 (en) Charger control method
JP6810630B2 (en) Robot control device, robot system and robot control method
JP2982294B2 (en) Instantaneous power failure time detection method for programmable controller
JPS5990102A (en) Program controller
JP2529707B2 (en) Blackout detection method
JPS62196716A (en) Operation managing method for information processor
JPH05303509A (en) Standby control system
JPH04170619A (en) Controller for semiconductor manufacture equipment
JPH05224784A (en) Computer device
JPH0430602B2 (en)
JPH06103480B2 (en) Blackout processor
JPH0316656B2 (en)
JPH0439682B2 (en)
KR20020092603A (en) Back-up Power Supply of Computer System
JPH02196341A (en) Fault restoring system for information processor