JP2009020572A - Programmable logic controller - Google Patents

Programmable logic controller Download PDF

Info

Publication number
JP2009020572A
JP2009020572A JP2007180797A JP2007180797A JP2009020572A JP 2009020572 A JP2009020572 A JP 2009020572A JP 2007180797 A JP2007180797 A JP 2007180797A JP 2007180797 A JP2007180797 A JP 2007180797A JP 2009020572 A JP2009020572 A JP 2009020572A
Authority
JP
Japan
Prior art keywords
power supply
memory
volatile memory
switch
data
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.)
Granted
Application number
JP2007180797A
Other languages
Japanese (ja)
Other versions
JP4857210B2 (en
Inventor
Junichi Kato
淳一 加藤
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 Industrial Equipment Systems Co Ltd
Original Assignee
Hitachi Industrial Equipment Systems Co 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 Industrial Equipment Systems Co Ltd filed Critical Hitachi Industrial Equipment Systems Co Ltd
Priority to JP2007180797A priority Critical patent/JP4857210B2/en
Publication of JP2009020572A publication Critical patent/JP2009020572A/en
Application granted granted Critical
Publication of JP4857210B2 publication Critical patent/JP4857210B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a programmable logic controller for saving data to a nonvolatile memory without storing data in a volatile memory by a battery when a user shuts down power supply intentionally. <P>SOLUTION: A programmable logic controller including a volatile memory 12, a backup circuit 30 storing data in the memory 12 when the power supply is stopped, a nonvolatile memory 13, and a switch 31 to be operated by a user. The controller determines whether power supply is shut off by the operation of the switch 31, and stores the determination result even after the shutdown. If the shutdown has been caused by the operation of the switch 31, the controller saves the data in the memory 12 to the memory 13, and also stops voltage application to the memory 12. If the shutdown has not been caused by the operation of the switch 31, the controller applies a battery voltage to the memory 12, and when starting the power source, if the previous power supply shutdown has been caused by the operation of the switch 31, the controller restores the data, which has been saved to the memory 13, to the memory 12. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、プログラマブルロジックコントローラに関し、特にシーケンスプログラムを演算実行した結果や演算途中のデータを格納するための揮発性メモリの内容を保持するためのプログラマブルロジックコントローラに関するものである。   The present invention relates to a programmable logic controller, and more particularly to a programmable logic controller for holding the contents of a volatile memory for storing a result of executing a sequence program and data in the middle of the operation.

プログラマブルロジックコントローラ(以下、PLCという)において高速・高性能化を実現させるための重要なデバイスとして、高速アクセスが可能なランダムアクセスメモリ(RAM)が欠かせない。   Random access memory (RAM) capable of high-speed access is indispensable as an important device for realizing high speed and high performance in a programmable logic controller (hereinafter referred to as PLC).

一般に、高速アクセス可能なRAMは揮発性である。そのため、停電などによる不慮の電源供給遮断が発生すると演算結果や演算中のデータが失われる恐れがある。   In general, RAM that can be accessed at high speed is volatile. Therefore, if an unexpected power supply interruption due to a power failure or the like occurs, there is a risk that the calculation result or data being calculated will be lost.

ここで、図3を参照して一般的なPLCのデバイス構成ついて説明する。図3は、従来のPLCのCPU部構成図である。図3において、MPU10は中央演算処理ユニットを含むワンチップタイプのマイクロプロセッサであり、CPU部100全体を制御するシステムプログラムメモリ11の命令に則り動作する。CPU部100の主な機能として、第一にユーザがプログラミングしたシーケンスプログラムおよびデータ転送処理、第二にユーザがプログラミングしたシーケンスプログラムの内容に応じた演算処理結果に起因する出力信号制御などが挙げられる。
シーケンスプログラムの転送とは、ユーザが周辺装置7で入力したシーケンスプログラムを周辺コネクタ8と周辺装置インタフェース9を介してシーケンスプログラムメモリ12Bに格納するものである。
データ転送とは、周辺装置7から周辺コネクタ8と周辺装置インタフェース9を介して、CPU部100内部の演算結果を格納するデータメモリ12Aの内容を読み出したり、逆に、データメモリ12Aにデータを書き込んだりするものである。
A general PLC device configuration will be described with reference to FIG. FIG. 3 is a configuration diagram of a CPU section of a conventional PLC. In FIG. 3, an MPU 10 is a one-chip type microprocessor including a central processing unit, and operates according to instructions in a system program memory 11 that controls the entire CPU unit 100. The main functions of the CPU unit 100 include firstly a sequence program and data transfer process programmed by the user, and secondly an output signal control resulting from an arithmetic processing result corresponding to the contents of the sequence program programmed by the user. .
The transfer of the sequence program is to store the sequence program input by the user at the peripheral device 7 in the sequence program memory 12B via the peripheral connector 8 and the peripheral device interface 9.
Data transfer refers to reading the contents of the data memory 12A for storing the calculation result in the CPU unit 100 from the peripheral device 7 via the peripheral connector 8 and the peripheral device interface 9, and conversely writing the data to the data memory 12A. It is something to be drunk.

CPU部100は、入力端子2および接点入力インタフェース3を介して入力接点1のONあるいはOFFの状態を取り込み、シーケンスプログラムメモリ12Bに格納されたシーケンスプログラムに従い前述の取り込んだデータをMPU10で演算する。演算結果はデータメモリ12Aに格納されつつ、コイル出力インタフェース4および出力端子5を介してコイル6に出力される。
電源部200は、商用電源103から直流電圧を生成する変圧部102により構成されており、CPU部100へ直流電圧を供給する役割を果たす。
データメモリ12Aおよびシーケンスプログラムメモリ12Bは、揮発性メモリであり、電源部200からの直流電圧供給が停止されると、格納されている情報が失われる。一般的なPLCでは、データメモリ12Aおよび、シーケンスプログラムメモリ12Bに格納された情報を保護する目的で、バッテリー20によって揮発性メモリに格納された情報を保持することができるようになっている。ただし、電源部200から直流電圧が供給されている状態において、バッテリー20の電気エネルギーを消費させないための工夫もなされている。例えば図3では、電源電圧ダイオード21のアノードには電源電圧を接続し、バッテリーダイオード21のアノードにはバッテリー20のプラス極を接続し、電源電圧ダイオード21とバッテリーダイオード21のカソードを突き合わせた回路構成としている。ここで、CPU部100の電源電圧は5VDCであり、バッテリー20の電圧は3.6VDCであるとすると、電源部101から直流電圧が給電されている状態では、電源電圧ダイオード21を介して揮発性メモリであるデータメモリ12Aおよびシーケンスプログラムメモリ12Bに電圧が供給される。電源電圧は、バッテリー20の電圧よりも高いため、バッテリー20の電気エネルギーは消費されない。一方、電源部200からの直流電圧供給が停止されると、バッテリーダイオード21を介してバッテリー20から揮発性メモリであるデータメモリ12Aおよびシーケンスプログラムメモリ12Bに電圧が供給される。これにより、商用電源の供給が停止された状態でも揮発性メモリの情報を保持することが可能になる。
バックアップメモリ13は、データメモリ12Aおよびシーケンスプログラムメモリ12Bのデータの一部あるいはすべてを格納するために利用される。
特開2005−339151号公報 特開平9−160838号公報
The CPU unit 100 captures the ON or OFF state of the input contact 1 via the input terminal 2 and the contact input interface 3, and calculates the captured data in the MPU 10 according to the sequence program stored in the sequence program memory 12B. The calculation result is output to the coil 6 via the coil output interface 4 and the output terminal 5 while being stored in the data memory 12A.
The power supply unit 200 includes a transformer unit 102 that generates a DC voltage from the commercial power supply 103, and plays a role of supplying a DC voltage to the CPU unit 100.
The data memory 12A and the sequence program memory 12B are volatile memories. When the DC voltage supply from the power supply unit 200 is stopped, stored information is lost. In a general PLC, the information stored in the volatile memory can be held by the battery 20 for the purpose of protecting the information stored in the data memory 12A and the sequence program memory 12B. However, a device has been devised for preventing the electric energy of the battery 20 from being consumed in a state where a DC voltage is supplied from the power supply unit 200. For example, in FIG. 3, the power supply voltage is connected to the anode of the power supply voltage diode 21, the positive electrode of the battery 20 is connected to the anode of the battery diode 21, and the circuit configuration in which the power supply voltage diode 21 and the cathode of the battery diode 21 are abutted. It is said. Here, assuming that the power supply voltage of the CPU unit 100 is 5 VDC and the voltage of the battery 20 is 3.6 VDC, in a state where a DC voltage is supplied from the power supply unit 101, the voltage is volatile through the power supply voltage diode 21. A voltage is supplied to the data memory 12A and the sequence program memory 12B which are memories. Since the power supply voltage is higher than the voltage of the battery 20, the electric energy of the battery 20 is not consumed. On the other hand, when the DC voltage supply from the power supply unit 200 is stopped, a voltage is supplied from the battery 20 to the data memory 12A and the sequence program memory 12B, which are volatile memories, via the battery diode 21. This makes it possible to retain volatile memory information even when the supply of commercial power is stopped.
The backup memory 13 is used for storing part or all of the data in the data memory 12A and the sequence program memory 12B.
JP 2005-339151 A Japanese Patent Laid-Open No. 9-160838

演算データの損失を防ぐための一般的な手段として、バッテリーバックアップシステムを利用しているPLCは多い。しかし、従来のバッテリーバックアップシステムは、停電や誤操作などの不慮の事態による電源供給遮断なのか、ユーザが意図的に電源供給を遮断したのかを判別せずに揮発性メモリのデータを保護しているため、ユーザが意図的に電源供給を遮断した場合においてもバッテリーのエネルギーを消費してしまう。例えば、一日に8:00から18:00までの10時間稼動するPLC装置があった場合、PLC装置が停止している時間は14時間に及ぶ。ユーザが意図的にPLC装置を停止させているにも関わらず、従来のバッテリーバックアップシステムでは、PLC装置を停止させている期間バッテリーのエネルギーを消費していることになる。   There are many PLCs using a battery backup system as a general means for preventing loss of operation data. However, the conventional battery backup system protects the data in the volatile memory without determining whether the power supply has been cut off due to an unexpected situation such as a power failure or erroneous operation, or whether the user has intentionally cut off the power supply. Therefore, even when the user intentionally cuts off the power supply, the battery energy is consumed. For example, when there is a PLC device that operates for 10 hours from 8:00 to 18:00 per day, the PLC device is stopped for 14 hours. In spite of the user intentionally stopping the PLC device, the conventional battery backup system consumes the energy of the battery while the PLC device is stopped.

本発明は、従来の問題点を解決するものであり、その特徴は、不慮の事態による電源供給遮断なのか、ユーザが意図的に電源供給を遮断したものかを判別する手段を有し、不慮の事態による電源供給遮断時においてのみ揮発性メモリをバッテリーバックアップすることで、バッテリー寿命を延命させることである。   The present invention solves the conventional problems, and the feature is that it has means for discriminating whether the power supply is cut off due to an unexpected situation or the user intentionally cut off the power supply. The battery life is prolonged by backing up the volatile memory only when the power supply is cut off due to the above situation.

すなわち、本発明は、高速演算を実現するための高速アクセスが可能な揮発性メモリと、システムへの電源供給が停止されたときに前記揮発性メモリのデータを保持するためのバッテリーバックアップ回路と、システムへの電源供給が停止された場合でもデータを保持可能な不揮発性メモリとを有するプログラマブルロジックコントローラにおいて、プログラマブルロジックコントローラへの電源供給を遮断する際に、使用者が操作するスイッチと、前記スイッチの操作を検出する手段と、電源供給遮断が前記スイッチの操作によるか否かを判別し、その判別結果を電源供給遮断後にも保持しておく手段と、電源供給遮断が前記スイッチの操作により行われたものと判別された場合に前記揮発性メモリのデータを前記不揮発性メモリへ退避させる手段と、電源供給遮断が前記スイッチの操作により行われたものと判別された場合に前記揮発性メモリへのバッテリー電圧供給を停止させる手段と、電源供給遮断が前記スイッチの操作により行われたものではないと判別された場合に前記揮発性メモリへバッテリー電圧を供給させる手段と、電源立ち上げ時に、前回の電源供給遮断が前記スイッチの操作により行われたものと判別した場合に、前記不揮発性メモリへ退避させたデータを、前記揮発性メモリへ復旧させる手段とを備えたプログラマブルロジックコントローラである。   That is, the present invention provides a volatile memory capable of high-speed access for realizing high-speed computation, a battery backup circuit for holding data in the volatile memory when power supply to the system is stopped, A programmable logic controller having a nonvolatile memory capable of retaining data even when power supply to the system is stopped, and a switch operated by a user when shutting off power supply to the programmable logic controller, and the switch A means for detecting the operation of the power supply, a means for determining whether or not the power supply interruption is due to the operation of the switch, and a result of holding the determination result even after the power supply interruption. If it is determined that the data is broken, the data in the volatile memory is saved in the nonvolatile memory. Means for stopping the battery voltage supply to the volatile memory when it is determined that the power supply shut-off is performed by operating the switch, and the power supply shut-off is performed by operating the switch. Means for supplying a battery voltage to the volatile memory when it is determined that it is not, and when the power is turned on, the non-volatile A programmable logic controller comprising means for restoring data saved in the volatile memory to the volatile memory.

また、本発明は、前記揮発性メモリのデータを前記不揮発性メモリへ退避し終えたことを表示する手段を備えたプログラマブルロジックコントローラである。   In addition, the present invention is a programmable logic controller provided with means for indicating that the data in the volatile memory has been saved to the nonvolatile memory.

そして、本発明は、前記揮発性メモリへのバッテリー電圧供給累積時間を計数する手段と、前記揮発性メモリへのバッテリー電圧供給累積時間の計数結果を表示する手段とを備えたプログラマブルロジックコントローラである。   The present invention is a programmable logic controller comprising means for counting a cumulative battery voltage supply time to the volatile memory and a means for displaying a count result of the cumulative battery voltage supply time to the volatile memory. .

本発明によれば、不慮の事態による電源供給遮断なのか、ユーザが意図的に電源供給を遮断したものかを判別する手段を設けたことにより、バッテリーのエネルギーを消費させるべきタイミングを最適に制御させることが可能になる。すなわち、不慮の事態による電源供給遮断時にのみバッテリーバックアップシステムを有効にしてバッテリーのエネルギーを利用して揮発性メモリのデータを保護する。逆に、ユーザが意図的に電源供給を遮断した場合には、揮発性メモリのデータを不揮発性メモリへ退避させることで揮発性メモリのデータを保護し、さらにバッテリーバックアップシステムを無効にすることでバッテリーのエネルギーを消費させないようにできる。   According to the present invention, it is possible to optimally control the timing at which the battery energy is consumed by providing means for determining whether the power supply is cut off due to an unexpected situation or whether the user has intentionally cut off the power supply. It becomes possible to make it. That is, the battery backup system is enabled only when the power supply is cut off due to an unexpected situation, and the energy of the battery is used to protect the data in the volatile memory. Conversely, if the user intentionally shuts off the power supply, the volatile memory data is protected by saving the volatile memory data to the nonvolatile memory, and the battery backup system is disabled. The battery energy is not consumed.

本発明を実施するための最良の形態を説明する。
本発明のプログラマブルロジックコントローラの実施例について、図面を用いて説明する。
The best mode for carrying out the present invention will be described.
Embodiments of a programmable logic controller according to the present invention will be described with reference to the drawings.

以下本発明の第一の実施例について図を参照しながら説明する。図1は実施例1に関わるPLCのCPU部構成図と電源部構成図である。図2は実施例1に関わるバックアップ制御部の構成図である。
このPLCのCPU部101は論理演算、算術演算、その各部の制御を行うMPU10と、前記MPU10の制御する内容・手順を記憶したシステムプログラムメモリ11と、前記MPU10の演算結果などを記憶する書き換え可能なデータメモリ12Aと、ユーザが作成したシーケンスプログラムを格納するための書き換え可能なシーケンスプログラムメモリ12Bと、周辺装置7を接続するための周辺コネクタ8および周辺装置インタフェース9と、データメモリ12Aとシーケンスプログラムメモリ12Bのデータの一部あるいはすべてを格納するために利用されるバックアップメモリ13と、入力接点1の状態を取り込むための入力端子2と接点入力インタフェース3と、演算結果に基づいてコイル6に制御結果を伝達するコイル出力インタフェース4と出力端子5と、データメモリ12Aとシーケンスプログラムメモリ12Bのデータを保持するためのバッテリー20と、データメモリ12Aとシーケンスプログラムメモリ12Bのデータを保護するためのバッテリーバックアップ切り替え制御および、データメモリ12Aとシーケンスプログラムメモリ12Bのデータをバックアップメモリ13へ複写指示するためのバックアップ制御部30と、バックアップ制御部30を介してユーザが意図的に商用電源を遮断することをCPU部101へ伝達するための電源遮断指示スイッチ31とを備える。
本実施例のPLCの電源部201は、商用電源から直流電源を生成する変圧部102と、表示灯202とを備える。
Hereinafter, a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a configuration diagram of a CPU unit and a power source unit of a PLC according to the first embodiment. FIG. 2 is a configuration diagram of the backup control unit according to the first embodiment.
The CPU section 101 of the PLC is a rewritable memory that stores an MPU 10 that performs logical operations, arithmetic operations, and control of each section, a system program memory 11 that stores contents and procedures controlled by the MPU 10, and an operation result of the MPU 10. Data memory 12A, rewritable sequence program memory 12B for storing a sequence program created by a user, peripheral connector 8 and peripheral device interface 9 for connecting peripheral device 7, data memory 12A and sequence program The backup memory 13 used for storing part or all of the data in the memory 12B, the input terminal 2 for capturing the state of the input contact 1, the contact input interface 3, and the coil 6 based on the calculation result are controlled. Coil output to transmit results Interface 4, output terminal 5, battery 20 for holding data in data memory 12A and sequence program memory 12B, battery backup switching control for protecting data in data memory 12A and sequence program memory 12B, and data memory 12A and a backup control unit 30 for instructing to copy the data of the sequence program memory 12B to the backup memory 13, and for transmitting to the CPU unit 101 that the user intentionally shuts off the commercial power supply via the backup control unit 30. The power-off instruction switch 31 is provided.
The power source unit 201 of the PLC according to the present embodiment includes a transformer unit 102 that generates a DC power source from a commercial power source and an indicator lamp 202.

次に、本実施例におけるデータメモリ12Aとシーケンスプログラムメモリ12Bのデータがバックアップされる動作について、図1と図2を用いて説明する。
このPLCでは、バックアップ制御部30において電源遮断指示スイッチ31の開放または短絡状態に連動するスイッチ32があり、このスイッチ32はバッテリー20とバッテリーダイオード33の間に配置される。スイッチ32は、定常時には短絡状態となっている。
Next, the operation for backing up the data in the data memory 12A and the sequence program memory 12B in this embodiment will be described with reference to FIGS.
In this PLC, the backup control unit 30 includes a switch 32 that is linked to an open or short-circuit state of the power cutoff instruction switch 31, and this switch 32 is disposed between the battery 20 and the battery diode 33. The switch 32 is in a short-circuited state during normal operation.

ここで、商用電源103が突然遮断され、CPU部101の電源電圧供給が停止された場合の揮発性メモリ情報保持方法について説明する。商用電源103が突然遮断された場合、電源遮断指示スイッチ31が操作されないため、電源遮断指示スイッチ31に連動するスイッチ32は短絡状態を維持している。これにより、バッテリー20からの電圧がデータメモリ12Aとシーケンスプログラムメモリ12Bへ給電されるため、データメモリ12Aとシーケンスプログラムメモリ12Bの情報は保持される。   Here, a volatile memory information holding method when the commercial power supply 103 is suddenly cut off and the power supply voltage supply of the CPU unit 101 is stopped will be described. When the commercial power supply 103 is suddenly cut off, the power cut-off instruction switch 31 is not operated. Therefore, the switch 32 interlocked with the power cut-off instruction switch 31 maintains a short-circuited state. Thereby, since the voltage from the battery 20 is supplied to the data memory 12A and the sequence program memory 12B, the information in the data memory 12A and the sequence program memory 12B is retained.

次に、実施例における、PLCユーザが意図的に商用電源103の供給を停止する場合の揮発性メモリ情報保持方法について説明する。PLCユーザが意図的に商用電源103の供給を停止する場合、ユーザは電源遮断指示スイッチ31を押下げる。電源遮断指示スイッチ31を押下げられると、電源遮断指示スイッチ31に連動してスイッチ32が開放状態になり、バッテリー20とバッテリーダイオード33の給電ラインが電気的にも開放される。電源遮断指示スイッチ31は、セット・リセットラッチ35に接続されており、電源遮断指示スイッチ31が押下げられた状態であることセット・リセットラッチ35が保持する。セット・リセットラッチ35の出力信号は、MPU10と表示灯制御部36へ接続されており、MPU10では電源遮断指示スイッチ31が押下げられたことを検出して、データメモリ12Aとシーケンスプログラムメモリ12Bの情報をすべてバックアップメモリ13へ転写する処理を開始する。同時に、表示灯制御部36では、データメモリ12Aとシーケンスプログラムメモリ12Bの情報が転写開始されたことをユーザへ通達するために、表示灯202を点滅させる。MPU10は、データメモリ12Aとシーケンスプログラムメモリ12Bの情報をバックアップメモリ13へ転写し終えると、転写処理が完了したことを示す信号をセット・リセットラッチ35に伝達する。転写処理が完了したことは、セット・リセットラッチ35の出力信号を介して表示灯制御部36にも伝達されるため、表示灯制御部36は、データメモリ12Aとシーケンスプログラムメモリ12Bの情報がバックアップメモリ13へ転写完了したことユーザへ通達するために、表示灯202を点灯させる。ユーザは、表示灯202の点灯を確認したのち、商用電源103の給電を停止させるタイミングを知ることができる。   Next, a volatile memory information holding method when the PLC user intentionally stops the supply of the commercial power supply 103 in the embodiment will be described. When the PLC user intentionally stops the supply of the commercial power supply 103, the user presses down the power cut-off instruction switch 31. When the power shutdown instruction switch 31 is pushed down, the switch 32 is opened in conjunction with the power shutdown instruction switch 31, and the power supply line of the battery 20 and the battery diode 33 is also electrically opened. The power cut-off instruction switch 31 is connected to the set / reset latch 35, and the set / reset latch 35 holds that the power cut-off instruction switch 31 is in the depressed state. The output signal of the set / reset latch 35 is connected to the MPU 10 and the indicator light control unit 36. The MPU 10 detects that the power cut-off instruction switch 31 is pushed down, and the data memory 12A and the sequence program memory 12B The process of transferring all information to the backup memory 13 is started. At the same time, the indicator lamp controller 36 blinks the indicator lamp 202 in order to notify the user that the information in the data memory 12A and the sequence program memory 12B has been transferred. When the MPU 10 finishes transferring the information in the data memory 12A and the sequence program memory 12B to the backup memory 13, the MPU 10 transmits a signal indicating that the transfer process is completed to the set / reset latch 35. The completion of the transfer process is also transmitted to the indicator light control unit 36 via the output signal of the set / reset latch 35. Therefore, the indicator light control unit 36 backs up the information in the data memory 12A and the sequence program memory 12B. In order to notify the user that the transfer to the memory 13 has been completed, the indicator lamp 202 is turned on. The user can know the timing of stopping the power supply of the commercial power supply 103 after confirming that the indicator lamp 202 is turned on.

以上のように、商用電源が供給されている状態において、ユーザにより電源遮断指示スイッチ31が押下げられた場合、バックアップ制御部30はユーザが意図的にPLCの稼動を停止させようとしていると判断できる。   As described above, when the user shuts down the power shut-off instruction switch 31 while the commercial power is being supplied, the backup control unit 30 determines that the user is intentionally stopping the operation of the PLC. it can.

一方、電源遮断指示スイッチ31が押下げられないまま商用電源の給電が遮断されると、バッテリー20によって揮発性メモリの情報を保持させることができる。   On the other hand, when the power supply of the commercial power supply is cut off without the power cut-off instruction switch 31 being pushed down, the information of the volatile memory can be held by the battery 20.

次に、電源供給が再開された際のデータ復旧動作について説明する。バックアップ制御部30では、スイッチ32の解放/短絡状態によって、ユーザが意図的にPLCの稼動を停止させようとしたのか、不慮の電源供給遮断が発生したのかを判断できる。ユーザが意図的にPLC装置の稼動を停止させた場合、このPLCはバックアップメモリ13に退避されたデータをデータメモリ12Aとシーケンスプログラムメモリ12Bに書き戻す。一方、不慮の電源供給遮断が発生した場合、データメモリ12Aとシーケンスプログラムメモリ12Bのデータは、バッテリー20によってそのデータが保持されているため、データの復旧動作は必要ない。   Next, a data recovery operation when power supply is resumed will be described. The backup control unit 30 can determine whether the user has intentionally stopped the operation of the PLC or whether an unexpected power supply interruption has occurred due to the open / short-circuit state of the switch 32. When the user intentionally stops the operation of the PLC device, the PLC writes the data saved in the backup memory 13 back to the data memory 12A and the sequence program memory 12B. On the other hand, when an unexpected power supply interruption occurs, the data in the data memory 12A and the sequence program memory 12B is held by the battery 20, so that no data recovery operation is necessary.

実施例1におけるバッテリー寿命を延命化させる停電記憶方式を備えたPLCの構成図。The block diagram of PLC provided with the power failure memory | storage system which extends the battery life in Example 1. FIG. 実施例1におけるバックアップ制御部の構成図。1 is a configuration diagram of a backup control unit in Embodiment 1. FIG. 一般的なPLCのデバイス構成図。The device block diagram of a general PLC.

符号の説明Explanation of symbols

1…入力接点、2…入力端子、3…接点入力インタフェース、4…コイル出力インタフェース、5…出力端子、6…コイル、7…周辺装置、8…周辺コネクタ、9…周辺装置インタフェース、10…MPU、11…システムプログラムメモリ、12A…データメモリ、12B…シーケンスプログラムメモリ、13…バックアップメモリ、20…バッテリー、21…電源電圧ダイオード、22…バッテリーダイオード、30…バックアップ制御部、31…電源遮断指示スイッチ、32…スイッチ、33…バッテリーダイオード、34…電源電圧ダイオード、35…セット・リセットラッチ、36…表示灯制御部、100…従来のCPU部、101…本発明の一実施例であるCPU部、102…変圧部、103…商用電源、200…従来の電源部、201…本発明の一実施例である電源部、202…表示灯
DESCRIPTION OF SYMBOLS 1 ... Input contact, 2 ... Input terminal, 3 ... Contact input interface, 4 ... Coil output interface, 5 ... Output terminal, 6 ... Coil, 7 ... Peripheral device, 8 ... Peripheral connector, 9 ... Peripheral device interface, 10 ... MPU 11 ... System program memory, 12A ... Data memory, 12B ... Sequence program memory, 13 ... Backup memory, 20 ... Battery, 21 ... Power supply voltage diode, 22 ... Battery diode, 30 ... Backup control unit, 31 ... Power cutoff instruction switch 32 ... Switch, 33 ... Battery diode, 34 ... Power supply voltage diode, 35 ... Set / reset latch, 36 ... Indicator control unit, 100 ... Conventional CPU unit, 101 ... CPU unit according to one embodiment of the present invention, 102 ... transformer, 103 ... commercial power supply, 200 ... conventional power supply 201 ... power supply unit according to an embodiment of the present invention, 202 ... indicator

Claims (3)

高速演算を実現するための高速アクセスが可能な揮発性メモリと、システムへの電源供給が停止されたときに前記揮発性メモリのデータを保持するためのバッテリーバックアップ回路と、システムへの電源供給が停止された場合でもデータを保持可能な不揮発性メモリとを有するプログラマブルロジックコントローラにおいて、
プログラマブルロジックコントローラへの電源供給を遮断する際に、使用者が操作するスイッチと、
前記スイッチの操作を検出する手段と、
電源供給遮断が前記スイッチの操作によるか否かを判別し、その判別結果を電源供給遮断後にも保持しておく手段と、
電源供給遮断が前記スイッチの操作により行われたものと判別された場合に前記揮発性メモリのデータを前記不揮発性メモリへ退避させる手段と、
電源供給遮断が前記スイッチの操作により行われたものと判別された場合に前記揮発性メモリへのバッテリー電圧供給を停止させる手段と、
電源供給遮断が前記スイッチの操作により行われたものではないと判別された場合に前記揮発性メモリへバッテリー電圧を供給させる手段と、
電源立ち上げ時に、前回の電源供給遮断が前記スイッチの操作により行われたものと判別した場合に、前記不揮発性メモリへ退避させたデータを、前記揮発性メモリへ復旧させる手段とを備えたことを特徴とするプログラマブルロジックコントローラ。
A volatile memory capable of high-speed access for realizing high-speed computation, a battery backup circuit for holding data in the volatile memory when power supply to the system is stopped, and power supply to the system In a programmable logic controller having a non-volatile memory capable of holding data even when stopped,
When the power supply to the programmable logic controller is shut off, the switch operated by the user,
Means for detecting an operation of the switch;
Means for determining whether or not the power supply cutoff is due to the operation of the switch, and holding the determination result even after the power supply cutoff;
Means for saving data in the volatile memory to the non-volatile memory when it is determined that the power supply is shut off by operating the switch;
Means for stopping the supply of battery voltage to the volatile memory when it is determined that the power supply is shut off by operating the switch;
Means for supplying a battery voltage to the volatile memory when it is determined that the power supply is not shut off by operating the switch;
Means for restoring data saved in the non-volatile memory to the volatile memory when it is determined that the previous power supply cut-off was performed by operating the switch when the power was turned on; Programmable logic controller characterized by
請求項1記載のプログラマブルロジックコントローラにおいて、
前記揮発性メモリのデータを前記不揮発性メモリへ退避し終えたことを表示する手段を備えたことを特徴とするプログラマブルロジックコントローラ。
The programmable logic controller of claim 1,
A programmable logic controller comprising: means for indicating that the data in the volatile memory has been saved to the nonvolatile memory.
請求項1に記載したプログラマブルロジックコントローラにおいて、
前記揮発性メモリへのバッテリー電圧供給累積時間を計数する手段と、前記揮発性メモリへのバッテリー電圧供給累積時間の計数結果を表示する手段とを備えたことを特徴とするプログラマブルロジックコントローラ。
The programmable logic controller according to claim 1,
A programmable logic controller comprising: means for counting a cumulative battery voltage supply time to the volatile memory; and means for displaying a count result of the cumulative battery voltage supply time to the volatile memory.
JP2007180797A 2007-07-10 2007-07-10 Programmable logic controller Expired - Fee Related JP4857210B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007180797A JP4857210B2 (en) 2007-07-10 2007-07-10 Programmable logic controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007180797A JP4857210B2 (en) 2007-07-10 2007-07-10 Programmable logic controller

Publications (2)

Publication Number Publication Date
JP2009020572A true JP2009020572A (en) 2009-01-29
JP4857210B2 JP4857210B2 (en) 2012-01-18

Family

ID=40360185

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007180797A Expired - Fee Related JP4857210B2 (en) 2007-07-10 2007-07-10 Programmable logic controller

Country Status (1)

Country Link
JP (1) JP4857210B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2278786A1 (en) * 2009-07-24 2011-01-26 Ricoh Company Ltd. Power supply device and image forming apparatus having power supply device
KR20160012572A (en) * 2014-07-24 2016-02-03 삼성전자주식회사 Method and Electronic Device for operating data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04303225A (en) * 1991-03-29 1992-10-27 Anritsu Corp Power-off monitor device
JPH0594238A (en) * 1991-10-02 1993-04-16 Tokyo Electric Co Ltd Data protection device for electronic equipment
JPH08201233A (en) * 1995-01-23 1996-08-09 Nippondenso Co Ltd Diagnosis apparatus for vehicle
JP2005339151A (en) * 2004-05-26 2005-12-08 Hitachi Industrial Equipment Systems Co Ltd Programmable controller

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04303225A (en) * 1991-03-29 1992-10-27 Anritsu Corp Power-off monitor device
JPH0594238A (en) * 1991-10-02 1993-04-16 Tokyo Electric Co Ltd Data protection device for electronic equipment
JPH08201233A (en) * 1995-01-23 1996-08-09 Nippondenso Co Ltd Diagnosis apparatus for vehicle
JP2005339151A (en) * 2004-05-26 2005-12-08 Hitachi Industrial Equipment Systems Co Ltd Programmable controller

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2278786A1 (en) * 2009-07-24 2011-01-26 Ricoh Company Ltd. Power supply device and image forming apparatus having power supply device
KR20160012572A (en) * 2014-07-24 2016-02-03 삼성전자주식회사 Method and Electronic Device for operating data
KR102343642B1 (en) * 2014-07-24 2021-12-28 삼성전자주식회사 Method and Electronic Device for operating data

Also Published As

Publication number Publication date
JP4857210B2 (en) 2012-01-18

Similar Documents

Publication Publication Date Title
JP4111890B2 (en) Uninterruptible power system
JP2006313407A (en) Dirty data processing method, dirty data processor and dirty data processing program
JP2012226569A (en) Data protection device for storage device
JP2010055531A (en) Data processor
JP4857210B2 (en) Programmable logic controller
JP2010015316A (en) Numerical control apparatus
JP4883282B2 (en) In-vehicle electronic device controller
JP6032435B2 (en) Power supply control device, electric apparatus and image forming apparatus
JP4682725B2 (en) Portable information terminal
JP2007111882A (en) Printer, and recording method for low-voltage error log thereof
JP2008262426A (en) Duplex controller system and controller
JP2009025947A (en) Backup system
JP2006149075A (en) Power supply system and power receptacle
JP2008059007A (en) Semiconductor storage device
JP2015060412A (en) Data protection device, data protection method, and data protection program
JP2010231548A (en) Disk array device and backup method
JP2009025926A (en) Data backup method, data backup program, and data backup device
JP6904918B2 (en) Control device and its data writing method
JP5807495B2 (en) Communication data logger device
JP2009301124A (en) Equipment with memory device and method for protecting memory device
JP2004272309A (en) Non-volatile memory data protecting device
JP5601197B2 (en) Image processing apparatus and image forming apparatus
JP5458507B2 (en) Image processing apparatus, image forming apparatus, and data protection method
JP2004334575A (en) Electronic equipment
JP2008242825A (en) Portable information processing terminal

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100105

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110210

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110215

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110415

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111004

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111031

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141104

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4857210

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees