JP2012146254A - Memory backup device and programmable controller having memory backup device - Google Patents

Memory backup device and programmable controller having memory backup device Download PDF

Info

Publication number
JP2012146254A
JP2012146254A JP2011006004A JP2011006004A JP2012146254A JP 2012146254 A JP2012146254 A JP 2012146254A JP 2011006004 A JP2011006004 A JP 2011006004A JP 2011006004 A JP2011006004 A JP 2011006004A JP 2012146254 A JP2012146254 A JP 2012146254A
Authority
JP
Japan
Prior art keywords
battery
voltage
memory
programmable controller
backup device
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
JP2011006004A
Other languages
Japanese (ja)
Inventor
Toshihiro Higuchi
敏弘 樋口
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2011006004A priority Critical patent/JP2012146254A/en
Publication of JP2012146254A publication Critical patent/JP2012146254A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Power Sources (AREA)
  • Secondary Cells (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a memory backup device and a programmable controller having the memory backup device which accurately detects the voltage drop of a battery before the battery becomes completely exhausted and urges a user to replace the battery, thereby preventing the battery backup operation of a memory from being interrupted because of the exhaustion of the battery.SOLUTION: A memory backup device comprises: backup continuation means for continuing backup using a battery for a predetermined period after a main power supply is turned on; and battery voltage detection means for detecting a battery voltage during the continuation period, comparing it with a predetermined threshold value, and outputting the comparison result.

Description

本発明は、メモリデータを保護するメモリバックアップ装置およびメモリバックアップ装置を有するプログラマブルコントローラに関する。   The present invention relates to a memory backup device for protecting memory data and a programmable controller having the memory backup device.

図3は従来のメモリバックアップ回路の構成図である。同図において、1はモジュール電圧S2を生成するモジュール電源である。2はデータを保持する揮発性メモリであり、モジュール電源1がオフ状態の時に後述の電池5により電圧が供給されデータがバックアップされる。2aはメモリ2に供給される電圧(メモリ電源電圧)である。   FIG. 3 is a block diagram of a conventional memory backup circuit. In the figure, reference numeral 1 denotes a module power source that generates a module voltage S2. Reference numeral 2 denotes a volatile memory that holds data. When the module power supply 1 is in an off state, a voltage is supplied by a battery 5 described later to back up the data. Reference numeral 2 a denotes a voltage (memory power supply voltage) supplied to the memory 2.

5はメモリ2をバックアップするための電池であり、その出力電圧として5aを出力する。6は電池5の出力電圧(電池電圧5a)を監視する電池電圧検出回路である。この電池電圧検出回路6はメモリ2をバックアップするために必要な下限電圧を閾値電圧Ethとして電池電圧5aを監視する。電池電圧5aが閾値電圧Eth未満になると、電池電圧検出回路6は電池電圧検出回路出力6aを出力して表示回路7に与える。また、電池電圧検出回路6は表示回路7は電池電圧検出回路出力6aを受けて表示回路出力7aを出力し、警告を発してユーザに電池交換を促す。   Reference numeral 5 denotes a battery for backing up the memory 2 and outputs 5a as its output voltage. A battery voltage detection circuit 6 monitors the output voltage (battery voltage 5a) of the battery 5. The battery voltage detection circuit 6 monitors the battery voltage 5a using the lower limit voltage necessary for backing up the memory 2 as the threshold voltage Eth. When the battery voltage 5a becomes lower than the threshold voltage Eth, the battery voltage detection circuit 6 outputs the battery voltage detection circuit output 6a and gives it to the display circuit 7. In addition, the battery voltage detection circuit 6 receives the battery voltage detection circuit output 6a and outputs the display circuit output 7a, issues a warning and prompts the user to replace the battery.

8はモジュール電圧S2の電圧を監視するリセット解除回路であり、モジュール電圧S2が所定の電圧に達するとリセット解除信号8aを出力する。
ここで電池の特性について説明する。電池はほぼ一定の起電力を出力する起電力源と内部インピーダンスとの直列接続とみなすことができる。この起電力は、電池の消耗と共に極く僅かづつ低下するもののあまり変化せず、電池寿命の末期に達して、急激に低下する。一方、内部インピーダンスは電池の消耗の程度に追従して漸次増加して行き、電池寿命の末期に達するとさらに急激に増大する性質がある。
Reference numeral 8 denotes a reset cancellation circuit that monitors the voltage of the module voltage S2, and outputs a reset cancellation signal 8a when the module voltage S2 reaches a predetermined voltage.
Here, the characteristics of the battery will be described. The battery can be regarded as a series connection of an electromotive force source that outputs a substantially constant electromotive force and an internal impedance. Although this electromotive force decreases very little as the battery is consumed, it does not change so much, and reaches the end of the battery life and rapidly decreases. On the other hand, the internal impedance has a property of gradually increasing following the degree of consumption of the battery and increasing more rapidly when reaching the end of the battery life.

図4は図3の回路の動作説明用のタイムチャートである。上から下へ並ぶ配列番号1)、2)・・・、6)の順にそれぞれ、モジュール電圧S2、電池電圧5a,メモリ電源電圧2a、リセット解除信号8a,電池電圧検出回路出力6a、表示回路出力7aである。   FIG. 4 is a time chart for explaining the operation of the circuit of FIG. The module voltage S2, battery voltage 5a, memory power supply voltage 2a, reset release signal 8a, battery voltage detection circuit output 6a, and display circuit output are arranged in the order of array numbers 1), 2). 7a.

図4を参照しながら図3の回路の動きを説明する。図4において、E0は、モジュール電圧S2がオンの状態のときの電池5の出力電圧(無負荷電圧)である。このときメモリ2への電圧はモジュール電源1から供給されているので、電池5から見れば電池5は無負荷状態であり、E0は上述した電池5の起電力に相当する電圧である。   The operation of the circuit of FIG. 3 will be described with reference to FIG. In FIG. 4, E0 is the output voltage (no-load voltage) of the battery 5 when the module voltage S2 is on. At this time, since the voltage to the memory 2 is supplied from the module power supply 1, the battery 5 is in an unloaded state when viewed from the battery 5, and E 0 is a voltage corresponding to the electromotive force of the battery 5 described above.

また、E1は、電池5がメモリ2をバックアップしているとき(区間t0〜t1)の電池5の出力電圧である。すなわち、E1はモジュール電圧S2がオフの状態で電池5に負荷がかかっている状態の電池5の出力電圧(実負荷電圧)である。   E1 is the output voltage of the battery 5 when the battery 5 backs up the memory 2 (sections t0 to t1). That is, E1 is the output voltage (actual load voltage) of the battery 5 in a state where the module voltage S2 is off and the battery 5 is loaded.

時点t0で図外の外部電源が遮断されると、モジュール電源1がオフする。このためダイオード4は順バイアス(オン)、ダイオード3は逆バイアス(オフ)の状態となり、バックアップ用の電池5はメモリ2への通電、つまりメモリバックアップを開始する。このときダイオード3は電池5の電流がモジュール電圧S2のラインに流れることを防止している。こうしてモジュール電圧S2のオフと共に電池電圧5aは無負荷電圧E0から実負荷電圧E1に移行する。   When the external power supply (not shown) is cut off at time t0, the module power supply 1 is turned off. For this reason, the diode 4 is forward biased (ON), the diode 3 is reverse biased (OFF), and the backup battery 5 starts energization to the memory 2, that is, memory backup. At this time, the diode 3 prevents the current of the battery 5 from flowing through the line of the module voltage S2. Thus, the battery voltage 5a shifts from the no-load voltage E0 to the actual load voltage E1 when the module voltage S2 is turned off.

時点t1にて外部電源が投入されると、モジュール電源1がオンする。モジュール電源1がオンすると、その出力電圧S2は電池5の電圧5aより高く設定されているため、ダイオード3が順バイアス(オン)、ダイオード4が逆バイアス(オフ)の状態となり、メモリ2にはモジュール電圧S2ラインから電圧が供給される。このため、バックアップ用電池5はモジュール電圧S2ラインおよびメモリ2から切り離される。こうしてモジュール電源1のオンと共に電池電圧5aは実負荷電圧E1から無負荷電圧E0に移行する。   When the external power supply is turned on at time t1, the module power supply 1 is turned on. When the module power supply 1 is turned on, the output voltage S2 is set higher than the voltage 5a of the battery 5, so that the diode 3 is forward biased (on) and the diode 4 is reverse biased (off). A voltage is supplied from the module voltage S2 line. For this reason, the backup battery 5 is disconnected from the module voltage S2 line and the memory 2. Thus, when the module power supply 1 is turned on, the battery voltage 5a shifts from the actual load voltage E1 to the no-load voltage E0.

また時点t1において、リセット解除回路8はモジュール電圧S2が所定の電圧に達するとリセット解除信号8aを出力する。この出力されたリセット解除信号8aは電池電圧検出回路6に与えられる。電池電圧検出回路6はリセット解除信号8aの立ち上がりタイミングから所定の時間経過後に電池電圧5aを検出する。すなわち、t1のタイミングでリセット解除信号8aが出力され、それから所定の時間経過後のtcのタイミングで電池電圧5aが検出される。   At time t1, the reset release circuit 8 outputs a reset release signal 8a when the module voltage S2 reaches a predetermined voltage. The reset release signal 8a thus output is given to the battery voltage detection circuit 6. The battery voltage detection circuit 6 detects the battery voltage 5a after a predetermined time has elapsed from the rising timing of the reset release signal 8a. That is, the reset release signal 8a is output at the timing of t1, and the battery voltage 5a is detected at the timing of tc after a predetermined time has elapsed since then.

電池電圧検出回路6は、tcのタイミングで電池電圧5aと閾値電圧Ethとを比較する。電池電圧5aが閾値電圧Eth未満であれば、破線で示される電池電圧検出回路出力6aを表示回路7に与えて表示回路出力7a(破線)を表示回路7から出力させ、電池電圧5aが閾値電圧Eth以上であれば、実線のように電池電圧検出回路出力6aおよび表示回路出力7aを出力させない。なお、閾値電圧Ethは、メモリ2をバックアップするための下限電圧を下回らない値として定義される。具体的には、メモリ2をバックアップするための下限電圧が1Vであった場合、この1Vにダイオード4の順方向電圧を加えた電圧を下回らないようにすることが望ましい。   The battery voltage detection circuit 6 compares the battery voltage 5a with the threshold voltage Eth at the timing tc. If the battery voltage 5a is less than the threshold voltage Eth, the battery voltage detection circuit output 6a indicated by the broken line is given to the display circuit 7 to output the display circuit output 7a (broken line) from the display circuit 7, and the battery voltage 5a is the threshold voltage. If it is equal to or higher than Eth, the battery voltage detection circuit output 6a and the display circuit output 7a are not output as indicated by the solid line. The threshold voltage Eth is defined as a value that does not fall below the lower limit voltage for backing up the memory 2. Specifically, when the lower limit voltage for backing up the memory 2 is 1V, it is desirable not to fall below the voltage obtained by adding the forward voltage of the diode 4 to 1V.

このような従来例では、モジュール電源1がオンすると共にメモリ2への供給電圧がモジュール電源1側から供給され、それ以降にバックアップ電池5の電圧を検出している。すなわち、上述従来例は、バックアップ用電池がメモリ2をバックアップしているときの電圧(実負荷電圧E1)を検出せず、電池5が無負荷状態になったタイミングでその電圧を検出しているので、メモリ2をバックアップしているときの実負荷電圧E1を正確に検出できない。   In such a conventional example, the module power supply 1 is turned on, the supply voltage to the memory 2 is supplied from the module power supply 1 side, and the voltage of the backup battery 5 is detected thereafter. That is, in the above-described conventional example, the voltage (actual load voltage E1) when the backup battery backs up the memory 2 is not detected, and the voltage is detected at the timing when the battery 5 is in a no-load state. Therefore, the actual load voltage E1 when the memory 2 is backed up cannot be detected accurately.

このように無負荷状態で電池電圧を検出して警報が出力された場合、この電池の消耗は著しく進んでいる筈で、この電池にメモリの負荷がかかっていたときの電池電圧、つまり実負荷電圧E1は、当然、閾値電圧Ethを下回わり、この電池は既にメモリをバックアップできない状態になっていた可能性が高い。従って上述した従来の電池電圧検出方法では、電池切れにも関わらず警報が出力されない、もしくは警報の出力が遅れて電池の交換が間に合わず電池切れとなる可能性が大きい。   If the battery voltage is detected and the alarm is output in such a no-load state as described above, the battery is consumed significantly, and the battery voltage when the memory is loaded on this battery, that is, the actual load Naturally, the voltage E1 is lower than the threshold voltage Eth, and there is a high possibility that the battery has already been in a state where the memory cannot be backed up. Therefore, in the conventional battery voltage detection method described above, there is a high possibility that an alarm will not be output in spite of running out of the battery, or the output of the alarm will be delayed and the battery will not be replaced in time, and the battery will run out.

このような問題を解決するために、CPUによって一時的にメモリの電源供給ラインを主電源側から電池側に切り換え、電池の実負荷状態を作り出し、その時の電池電圧を検出するようにしたメモリのバッテリバックアップ回路が開示されている(例えば特許文献1)。   In order to solve such a problem, the CPU temporarily switches the power supply line of the memory from the main power supply side to the battery side, creates an actual load state of the battery, and detects the battery voltage at that time. A battery backup circuit is disclosed (for example, Patent Document 1).

特開平2−12316号公報JP-A-2-12316

しかしながら、電池は連続使用状態を一時中断し、再度使用を開始すると、暫くは中断直前の電圧よりも高い電圧を出力する特性がある。このため、メモリバックアップ状態にあったバックアップ電池を、無負荷状態にし、再度、バックアップ状態にして負荷をかけると、電池電圧5aは、無負荷電圧E0から実負荷電圧E1に少しは近づくが、安定した真の実負荷電圧E1に達する(下降する)までには暫らく時間がかかるという問題がある。   However, the battery has a characteristic of outputting a voltage higher than the voltage immediately before the interruption for a while when the continuous use state is temporarily suspended and the use is started again. For this reason, when the backup battery in the memory backup state is brought into a no-load state and then loaded again in the backup state, the battery voltage 5a is slightly stable from the no-load voltage E0 to the actual load voltage E1, but is stable. There is a problem that it takes some time to reach (fall) the true actual load voltage E1.

このため、特許文献1に記載された発明では、安定した真の実負荷電圧E1よりやや高めの電池電圧を測定することとなり、まだ余命があると測定した電池の寿命が、実際はほぼ尽きてしまっているというように電池消耗の検出が遅れて電池切れとなる可能性がある。さらに、特許文献1に記載された発明は、主電源オン時における通常の読書き動作状態から、一時的にバッテリバックアップの状態に切り替えるため、装置全体または一部の機能を中断しなければならないという問題もあった。   For this reason, in the invention described in Patent Document 1, the battery voltage slightly higher than the stable true actual load voltage E1 is measured, and the measured battery life is actually almost exhausted when there is still life expectancy. There is a possibility that the detection of battery consumption will be delayed and the battery will run out. Furthermore, in the invention described in Patent Document 1, the entire apparatus or a part of the function must be interrupted in order to temporarily switch from the normal read / write operation state when the main power is on to the battery backup state. There was also a problem.

本発明は、このような従来の問題点を解決するものであって、その目的は、電池の電圧低下を電池が完全に消耗する前に的確に検出して電池の交換を促し、メモリのバッテリバックアップ動作が電池の消耗によって途切れないようにすることができる、メモリバックアップ装置、メモリバックアップ装置を有するプログラマブルコントローラを提供することにある。   The present invention solves such a conventional problem, and an object of the present invention is to accurately detect a voltage drop of the battery before the battery is completely consumed and to prompt the user to replace the battery. It is an object of the present invention to provide a memory backup device and a programmable controller having the memory backup device that can prevent backup operation from being interrupted by battery consumption.

上記のような課題を解決する方法として、本発明は以下のように構成される。
請求項1に係る発明は、主電源がオフのとき電池にて記憶手段をバックアップするメモリバックアップ装置であって、主電源がオンしてから所定の期間の後、記憶手段への電流の供給を電池から主電源に切替えるバックアップ切替手段と、このバックアップ切替手段によって記憶手段への電流の供給が電池から主電源に切替えられるまで記憶手段へのアクセスを禁止するアクセス禁止手段と、所定の期間中に電池の電圧値と所定の閾値とを比較し、該比較結果を出力する電池電圧検出手段と、を備えるように構成される。
As a method for solving the above problems, the present invention is configured as follows.
The invention according to claim 1 is a memory backup device that backs up the storage means with a battery when the main power is off, and supplies the current to the storage means after a predetermined period after the main power is turned on. A backup switching means for switching from the battery to the main power supply; an access prohibiting means for prohibiting access to the storage means until the supply of current to the storage means is switched from the battery to the main power supply by the backup switching means; and during a predetermined period Battery voltage detection means for comparing the voltage value of the battery with a predetermined threshold and outputting the comparison result.

請求項2に係る発明は、請求項1に記載のメモリバックアップ装置において、所定の閾値は記憶手段がデータを保持する下限電圧を基に設定された電圧値に設定される。
請求項3に係る発明は、請求項1または請求項2に記載のメモリバックアップ装置を有するプログラマブルコントローラであって、記憶手段には、プログラマブルコントローラの動作モードを決定するパラメータが保持され、プログラマブルコントローラはパラメータを参照して動作モードを決定する制御部を備え、電池電圧検出手段は電池の電圧が所定の閾値以下であることを検出すると、制御部にリセットを与え、制御部を停止させるように構成される。
According to a second aspect of the present invention, in the memory backup device according to the first aspect, the predetermined threshold value is set to a voltage value set based on a lower limit voltage at which the storage unit holds data.
The invention according to claim 3 is a programmable controller having the memory backup device according to claim 1 or 2, wherein the storage means stores a parameter for determining an operation mode of the programmable controller. A control unit that determines an operation mode with reference to a parameter is provided, and the battery voltage detection means is configured to reset the control unit and stop the control unit when detecting that the battery voltage is equal to or lower than a predetermined threshold value. Is done.

請求項4に係る発明は、請求項3に記載のプログラマブルコントローラにおいて、制御部はプログラマブルコントローラに着脱可能な支援装置により新たな閾値が転送されると、予め設定された閾値を新たな閾値に更新する更新手段を備えるように構成される。   According to a fourth aspect of the present invention, in the programmable controller according to the third aspect, the control unit updates the preset threshold value to the new threshold value when a new threshold value is transferred by the support device detachable from the programmable controller. It is comprised so that the update means to perform may be provided.

本発明によれば、プログラマブルコントローラの電源がオンされた後も、暫時、電池によるメモリバックアップ状態を継続させるようにし、この状態での電池電圧を検出するようにしたので、実負荷状態の電池の電圧(実負荷電圧E1)を正確に検出することが可能となり、メモリバックアップ用電池の電池切れを防止することができる。すなわち、メモリのデータ消失を防ぐことができる。   According to the present invention, the memory backup state by the battery is continued for a while after the power of the programmable controller is turned on, and the battery voltage in this state is detected. The voltage (actual load voltage E1) can be accurately detected, and the battery backup battery can be prevented from running out. That is, data loss in the memory can be prevented.

本発明のメモリバックアップ装置およびメモリバックアップ装置を搭載したプログラマブルコントローラのCPUモジュールの一例を示すブロック図The block diagram which shows an example of the CPU module of the programmable controller which mounts the memory backup device of this invention, and a memory backup device 図1の動作説明用のタイムチャートTime chart for explaining the operation of FIG. 従来のメモリバックアップ装置の構成例を示すブロック図Block diagram showing a configuration example of a conventional memory backup device 図3の動作説明用のタイムチャートTime chart for explaining the operation of FIG. プログラマブルコントローラの電源の供給方法を説明する図The figure explaining the power supply method of a programmable controller

以下、本発明の好適な実施形態について図1、図2、および図5の図面を基に説明する。なお、これらの図面は本発明の一実施形態を説明するための図面であって、これらの図面によって本発明が限定されるものではない。また、従来技術を説明するための図3、図4と同じ構成は同符号を付してある。   Hereinafter, a preferred embodiment of the present invention will be described based on the drawings of FIGS. 1, 2, and 5. These drawings are for explaining one embodiment of the present invention, and the present invention is not limited by these drawings. Also, the same components as those in FIGS. 3 and 4 for explaining the prior art are denoted by the same reference numerals.

本発明のメモリバックアップ装置をプログラマブルコントローラ(以下PLC)に適用したときの一実施形態を説明する。PLCはアプリケーションプログラムを演算実行してPLCに接続される監視制御対象機器を、監視や制御する装置であり、FA(ファクトリーオートメーション)等に広く使用されている。   An embodiment when the memory backup device of the present invention is applied to a programmable controller (hereinafter referred to as PLC) will be described. The PLC is a device that monitors and controls a device to be monitored and controlled connected to the PLC by calculating and executing an application program, and is widely used in factory automation (FA) and the like.

図5は、PLCの基本的な機能部分である各種のモジュールの構成と、各モジュールに対する給電方法の一例を示す図である。200は、外部から商用電源が供給されることにより、各種モジュールに所定の電圧を供給するシステム電源である。   FIG. 5 is a diagram showing an example of the configuration of various modules, which are basic functional parts of the PLC, and an example of a power feeding method for each module. A system power supply 200 supplies a predetermined voltage to various modules when commercial power is supplied from the outside.

301と302は、PLC全体を統括制御するCPUモジュール(共通符号を300とする)である。401、402、・・・、406は、各種の監視制御対象機器の適所に取り付けたスイッチやセンサなどの信号を入力したり、同じく監視制御対象機器のアクチュエータなどに制御出力信号を与える入出力モジュール(共通符号を400とする)、また100は、これらの各種モジュールおよびシステム電源を搭載するベースボードである。   Reference numerals 301 and 302 denote CPU modules (common code is 300) that performs overall control of the entire PLC. 401, 402,..., 406 are input / output modules for inputting signals such as switches and sensors attached to appropriate positions of various types of monitoring control target devices and for providing control output signals to actuators of the monitoring control target devices. (Common code is 400), and 100 is a base board on which these various modules and system power supply are mounted.

システム電源200は、ベースボード100を介して、CPUモジュール300や、入出力モジュール400のそれぞれにベースボード電圧(本例ではDC24V)S1を供給する。この電圧S1を受けた各モジュール300、400は、各モジュール内に設けられたモジュール電源1によって、当該モジュール内の回路を駆動させるためのモジュール電圧S2を生成している。   The system power supply 200 supplies a base board voltage (DC 24 V in this example) S1 to each of the CPU module 300 and the input / output module 400 via the base board 100. Each of the modules 300 and 400 that has received this voltage S1 generates a module voltage S2 for driving a circuit in the module by a module power supply 1 provided in each module.

図1はCPUモジュール300内に設けられた本発明のメモリバックアップ回路01のブロック図である。図3の従来の構成例に対し、本発明の図1の構成は、制御部9、遅延回路10、トランジスタ11が付加された点が相異する。   FIG. 1 is a block diagram of the memory backup circuit 01 of the present invention provided in the CPU module 300. 3 differs from the conventional configuration example of FIG. 3 in that a control unit 9, a delay circuit 10, and a transistor 11 are added.

同図1において、制御部9は図外のマイクロプロセッサ(CPU)、プログラムメモリ、作業用メモリなどを搭載しており、前述したアプリケーションプログラムを実行することにより入出力モジュール400を介して外部機器を制御する。   In FIG. 1, the control unit 9 is equipped with a microprocessor (CPU), a program memory, a working memory, etc., not shown, and an external device is connected via the input / output module 400 by executing the application program described above. Control.

また、トランジスタ11は、モジュール電源1からダイオード3のアノードに至るラインに直列に挿入され、モジュール電圧S2のメモリ2への給電路を開閉するスイッチの役割を持つ。なお、メモリ2には、PLCの動作モードを決定するためのパラメータ(設定データ)などが保持されている。制御部9はこのパラメータを参照して動作モードを決定する。   The transistor 11 is inserted in series in a line extending from the module power supply 1 to the anode of the diode 3, and serves as a switch for opening and closing a power supply path to the memory 2 for the module voltage S2. The memory 2 holds parameters (setting data) for determining the operation mode of the PLC. The control unit 9 determines the operation mode with reference to this parameter.

遅延回路10はモジュール電源1の出力ラインに接続され、モジュール電源1がオンした後の所定の遅延期間δの間トランジスタ11をオフに保つ役割を持つ。なお、10aは遅延回路10がトランジスタ11のベースに与える、オン、オフの駆動信号としての遅延回路出力信号である。このように遅延回路10とトランジスタ11により、メモリバックアップ回路01はモジュール電圧S2がオンしてから遅延回路10が作動している間電池によるバックアップを継続する。すなわち、遅延回路10とトランジスタ11はモジュール電源1がオンしてから所定の期間の後、メモリ2への電流の供給を電池5からモジュール電源1に切替える(バックアップ切替手段)。   The delay circuit 10 is connected to the output line of the module power supply 1 and has a role of keeping the transistor 11 off for a predetermined delay period δ after the module power supply 1 is turned on. Reference numeral 10a denotes a delay circuit output signal as an on / off drive signal which the delay circuit 10 gives to the base of the transistor 11. Thus, the delay circuit 10 and the transistor 11 allow the memory backup circuit 01 to continue the battery backup while the delay circuit 10 is operating after the module voltage S2 is turned on. That is, the delay circuit 10 and the transistor 11 switch the supply of current to the memory 2 from the battery 5 to the module power supply 1 after a predetermined period after the module power supply 1 is turned on (backup switching means).

また、リセット解除回路8および電池電圧検出回路6は図3に示した構成と略同じであるが、その相違点はリセット解除信号8aが電池電圧検出回路6以外に制御部9に与えられている点、そして、電池電圧検出回路出力6aが表示回路7以外に制御部9に与えられている点である。   The reset release circuit 8 and the battery voltage detection circuit 6 are substantially the same as those shown in FIG. 3 except that the reset release signal 8a is supplied to the control unit 9 in addition to the battery voltage detection circuit 6. In addition, the battery voltage detection circuit output 6 a is provided to the control unit 9 in addition to the display circuit 7.

なお、1はモジュール電圧S2を生成する点で図3に示したモジュール電源1と同じであり、メモリ2、電池5、表示回路7は、図3の構成と同一なので、その説明は省略する。   1 is the same as the module power supply 1 shown in FIG. 3 in that the module voltage S2 is generated, and the memory 2, the battery 5, and the display circuit 7 are the same as those in FIG.

図2は図1に示したメモリバックアップ装置の動作説明用のタイムチャートである。この図2では図4に示した各種信号の他に、遅延回路10の出力信号が付加されており、上から下へ並ぶ配列番号1)、2)、・・・、7)の順に、それぞれ、モジュール電圧S2、電池電圧5a,メモリ電源電圧2a、リセット解除信号8a,遅延回路出力信号10a,電池電圧検出回路出力6a、表示回路出力7aが示されている。なお、図2では図4より時間軸(水平軸)が拡大されている。   FIG. 2 is a time chart for explaining the operation of the memory backup device shown in FIG. In FIG. 2, in addition to the various signals shown in FIG. 4, the output signal of the delay circuit 10 is added, and in order of array numbers 1), 2),. A module voltage S2, a battery voltage 5a, a memory power supply voltage 2a, a reset release signal 8a, a delay circuit output signal 10a, a battery voltage detection circuit output 6a, and a display circuit output 7a are shown. In FIG. 2, the time axis (horizontal axis) is enlarged from FIG.

次に図2を参照し、図1のメモリバックアップ装置01の具体的な動作を説明する。
時点t1以前においてはPLCへの外部電源は遮断されており、モジュール電圧S2はオフ状態である。このとき、メモリ2は電池5によってバックアップされている。このため、時点t1における電池電圧5aは、安定した実負荷電圧E1になっている。
Next, a specific operation of the memory backup device 01 of FIG. 1 will be described with reference to FIG.
Before time t1, the external power supply to the PLC is cut off, and the module voltage S2 is off. At this time, the memory 2 is backed up by the battery 5. For this reason, the battery voltage 5a at the time point t1 is a stable actual load voltage E1.

時点t1でPLCへの外部電源が投入されると、モジュール電圧S2が立上がってオンし、この立上がりの始めにおいては、図3,4で述べた従来技術と同様に、リセット解除回路8はモジュール電圧S2が所定の電圧に達したことを検知し、リセット解除信号8aをオンする。リセット解除信号8aがオンされると制御部9のリセットが解除され、その動作を開始する。また、リセット解除信号8aは電池電圧検出回路6にも与えられており、電池電圧検出回路6はリセット解除信号8aの立上がりタイミングから所定の時間経過後に電池電圧5aを検出する。   When the external power supply to the PLC is turned on at time t1, the module voltage S2 rises and is turned on. At the beginning of this rise, the reset release circuit 8 is connected to the module as in the prior art described in FIGS. It is detected that the voltage S2 has reached a predetermined voltage, and the reset release signal 8a is turned on. When the reset release signal 8a is turned on, the reset of the control unit 9 is released and the operation is started. The reset release signal 8a is also supplied to the battery voltage detection circuit 6, and the battery voltage detection circuit 6 detects the battery voltage 5a after a predetermined time has elapsed from the rising timing of the reset release signal 8a.

遅延回路10は、モジュール電圧S2が所定の電圧に達してから所定の時間トランジスタ11のオンを防止する。従って、モジュール電圧S2がオンした後も、遅延回路10は、その立上がり開始時点t1から遅延期間δが経過する時点t2まで、トランジスタ11のベースに与える遅延回路出力信号10aをロウレベルに保って、トランジスタ11をオフ状態に保つ。このため、電池5は、時点t2までそのまま、メモリ2のバックアップを継続し、電池電圧5aは実負荷電圧E1を維持する。   The delay circuit 10 prevents the transistor 11 from being turned on for a predetermined time after the module voltage S2 reaches a predetermined voltage. Therefore, even after the module voltage S2 is turned on, the delay circuit 10 maintains the delay circuit output signal 10a applied to the base of the transistor 11 at the low level from the rising start time t1 to the time t2 when the delay period δ elapses. 11 is kept off. For this reason, the battery 5 continues to back up the memory 2 as it is until time t2, and the battery voltage 5a maintains the actual load voltage E1.

続いて、時点t2において遅延回路10は、遅延回路出力信号10aをハイレベルにし、トランジスタ11をオンさせる。これによりメモリ2は電池5に代わり、モジュール電圧S2側から電圧が給電されることとなり、電池5はメモリ2から切り離され、電池電圧5aは今までの実負荷電圧E1から無負荷電圧E0に移行する。   Subsequently, at time t2, the delay circuit 10 sets the delay circuit output signal 10a to the high level, and turns on the transistor 11. As a result, the memory 2 is supplied with a voltage from the module voltage S2 side instead of the battery 5, the battery 5 is disconnected from the memory 2, and the battery voltage 5a shifts from the actual load voltage E1 to the no-load voltage E0. To do.

ところで、時点t1から遅延期間δが経過する以前の時点tc(電池電圧検出点)において、電池電圧検出回路6は電池電圧5aを検出して閾値電圧Ethと比較する。これはモジュール電圧S2が所定の電圧に達するとリセット解除回路8によりリセット解除信号8aがオンされ、この立ち上がりタイミングから所定の時間経過後に電池電圧5aを検出するようにすることで達成される。すなわち、t1のタイミングでリセット解除信号8aが出力され、そこから所定の時間経過後のtcのタイミングで電池電圧5aは閾値電圧Ethと比較される。   By the way, at the time tc (battery voltage detection point) before the delay period δ elapses from the time t1, the battery voltage detection circuit 6 detects the battery voltage 5a and compares it with the threshold voltage Eth. This is achieved by turning on the reset release signal 8a by the reset release circuit 8 when the module voltage S2 reaches the predetermined voltage, and detecting the battery voltage 5a after a predetermined time has elapsed from this rising timing. That is, the reset release signal 8a is output at the timing t1, and the battery voltage 5a is compared with the threshold voltage Eth at the timing tc after a predetermined time has elapsed therefrom.

tcのタイミングで電池電圧5a(実負荷電圧E1)が閾値電圧Eth未満であれば、電池電圧検出回路出力6aが出力され、この出力を受けた表示回路7は表示回路出力6aを出力して警報を発し、ユーザに電池交換を促す。なお、閾値電圧Ethは、前述の如くメモリ2のバックアップに必要な下限電圧から定まる電圧である。具体的には、メモリ2をバックアップするための下限電圧が1Vであった場合、この1Vにダイオード4の順方向電圧を加えた電圧以上にすることが望ましい。   If the battery voltage 5a (actual load voltage E1) is less than the threshold voltage Eth at the timing tc, the battery voltage detection circuit output 6a is output, and the display circuit 7 receiving this output outputs the display circuit output 6a to give an alarm. To prompt the user to replace the battery. The threshold voltage Eth is a voltage determined from the lower limit voltage necessary for the backup of the memory 2 as described above. Specifically, when the lower limit voltage for backing up the memory 2 is 1V, it is desirable that the voltage be equal to or higher than the voltage obtained by adding the forward voltage of the diode 4 to 1V.

また閾値電圧Ethは、制御部9により更新できる。制御部9にはCPUモジュール300に着脱可能なプログラミング装置(支援装置)から閾値電圧Ethの更新の要求を受けると、この更新の要求と同時に受信した新たな閾値に更新する機能が備えられている(更新手段)。電池電圧検出回路6は制御部9によって設定されたデジタル値を所定の電圧値に変換するD/A変換機能を備えられており、このD/A変換された出力電圧を閾値電圧Ethとしている。   The threshold voltage Eth can be updated by the control unit 9. When the control unit 9 receives a request for updating the threshold voltage Eth from a programming device (supporting device) that can be attached to and detached from the CPU module 300, the control unit 9 has a function of updating to a new threshold value received simultaneously with the request for updating. (Update means). The battery voltage detection circuit 6 is provided with a D / A conversion function for converting a digital value set by the control unit 9 into a predetermined voltage value, and this D / A converted output voltage is used as a threshold voltage Eth.

ここで時点t1、tc、t2を定義するとともにそれぞれの時点の相関関係を説明する。t1は前述の如くモジュール電源1がオンした時点、すなわち、モジュール電源1の出力電圧S2が所定の電圧(制御部9が動作可能な電圧)に達した時点である。また、tcはt1を基準に、所定の時間経過後に電池電圧5aを検出するタイミングである。そして、t2はt1を基準に所定の時間経過後メモリ2に対する電圧(電流)供給を電池5からモジュール電源1に切り替えるタイミングである。すなわちt2は電池5によってバックアップ状態にあったメモリの電圧(電流)供給をモジュール電源1の供給に切り替えるタイミングである。   Here, the time points t1, tc, and t2 are defined and the correlation between the respective time points is described. t1 is the time when the module power supply 1 is turned on as described above, that is, the time when the output voltage S2 of the module power supply 1 reaches a predetermined voltage (a voltage at which the control unit 9 can operate). Further, tc is a timing at which the battery voltage 5a is detected after a predetermined time has elapsed with reference to t1. T2 is a timing at which the voltage (current) supply to the memory 2 is switched from the battery 5 to the module power supply 1 after a predetermined time has elapsed with reference to t1. That is, t2 is a timing at which the voltage (current) supply of the memory in the backup state by the battery 5 is switched to the supply of the module power supply 1.

また、tcとt2との関係としては、基準をt1とし、tc<t2とする関係が本発明のポイントである。すなわち、本発明のポイントはt1からt2までの期間内にtcのタイミングを作り出し、電池電圧5aを検出することである。   The relationship between tc and t2 is that the reference is t1 and tc <t2. That is, the point of the present invention is to create the timing of tc within the period from t1 to t2 and detect the battery voltage 5a.

以降、制御部9の動きを中心に説明する。
制御部9は図外のマイクロプロセッサ(CPU)、プログラムメモリ、作業用メモリなどを搭載しており、シーケンスプログラムを実行することにより入出力モジュール400を介して図外の外部機器を制御するよう構成されている。また、制御部9は、モジュール電源1がオフされた時やPLCに何らかの不具合が発生した時に稼動状態データ(RAS情報など)をメモリ2に退避するようにしている。
Hereinafter, the operation of the control unit 9 will be mainly described.
The control unit 9 includes a microprocessor (CPU), a program memory, a working memory, and the like that are not shown, and is configured to control external devices that are not shown via the input / output module 400 by executing a sequence program. Has been. In addition, the control unit 9 saves operating state data (such as RAS information) in the memory 2 when the module power supply 1 is turned off or when some malfunction occurs in the PLC.

PLCは電源が投入された後、もしくはリセットスタート後のイニシャル中に、メモリ2に保持された稼動状態データを参照してその立ち上がり方を変えている。すなわち、メモリ2に退避された内容を基に動作モードが変わる。稼動状態データが正常を意味するデータであったならば、イニシャルを抜けた後、運用モードに移行する。しかし、例えばパリティエラーやウォッチドックタイマーエラーなど、プログラムの実行に直接影響のあるエラーを意味する痕跡がメモリ2に退避されていたならば、制御実行中に再び制御に支障をきたすようなエラーが発生することが予想されるので、ユーザによる診断を促す診断モードになる。この診断モードにて、ユーザからの運用モードへの指示を受けるまでPLCは診断モードに留まり、ユーザからの運用モードへの指示を受けると運用モードに移行し、制御を実行する。   The PLC refers to the operating state data held in the memory 2 during the initial state after the power is turned on or after the reset start, and changes the way of rising. That is, the operation mode changes based on the contents saved in the memory 2. If the operating state data is normal data, the initial mode is exited and then the operation mode is entered. However, if traces that mean errors that directly affect the execution of the program, such as parity errors and watchdog timer errors, have been saved in the memory 2, an error that would hinder control again during control execution Since it is expected to occur, the diagnosis mode is set to prompt the diagnosis by the user. In this diagnosis mode, the PLC stays in the diagnosis mode until receiving an instruction for the operation mode from the user. When receiving an instruction for the operation mode from the user, the PLC shifts to the operation mode and executes control.

図2を参照しながら制御部9の動きを説明する。
リセット解除信号8aがオンされる(時点t1)と制御部9は、制御の実行に先立ち作業メモリチェックや各種動作設定などを行うイニシャル処理を実行する。t1からt2の期間において制御部9はイニシャル処理などのプログラムを実行して動作するが、メモリ2へのアクセスは禁止される(アクセス禁止手段)。すなわち、モジュール電源1がオンしてから、バックアップ切替手段によってメモリ2への電流の供給が電池5からモジュール電源1に切替えられるまでアクセス禁止手段によってメモリ2へのアクセスが禁止される。
その理由は、次のとおりである。
The movement of the control unit 9 will be described with reference to FIG.
When the reset release signal 8a is turned on (time t1), the control unit 9 executes an initial process for performing a work memory check and various operation settings prior to the execution of the control. In the period from t1 to t2, the control unit 9 operates by executing a program such as an initial process, but access to the memory 2 is prohibited (access prohibiting means). That is, after the module power supply 1 is turned on, access to the memory 2 is prohibited by the access prohibition means until the supply of current to the memory 2 is switched from the battery 5 to the module power supply 1 by the backup switching means.
The reason is as follows.

1)メモリ2が時点t1以前において、電池5によるバックアップが正常に行われていたかが不明な点
2)時点t1から時点t2の期間ではメモリ2はバックアップ状態なので、このバックアップ状態のメモリ2をアクセスすると、このアクセスに伴って消費電流が増加し、電池5を無駄に消費する点
3)電池5の寿命が尽きる寸前であったときなどは、メモリ2がアクセスされることによって電池5の電圧が急激に下降してメモリ2のデータが破損される可能性がある点
従って、制御部9は時点t2以降にメモリ2をアクセスして稼動状態データを読み込み、モードの移行を決定する。
1) It is unclear whether the memory 2 was normally backed up by the battery 5 before the time point t1. 2) Since the memory 2 is in the backup state during the period from the time point t1 to the time point t2, when the memory 2 in this backup state is accessed The current consumption increases with this access, and the battery 5 is consumed wastefully. 3) When the battery 5 is about to expire, the voltage of the battery 5 suddenly increases due to the memory 2 being accessed. Therefore, the control unit 9 accesses the memory 2 after time t2 to read the operating state data and determines the mode transition.

制御部9が時点t1から時点t2の期間で(この期間をバックアップメモリアクセス禁止区間と定義する)メモリ2を不用意にアクセスしないようにするアクセス禁止手段の第一の方法としては、遅延回路10の出力信号10aを制御部9に与え、制御部9のCPUがI/Oポートを介して出力信号10aを読み取るように構成すれば、メモリ2のアクセス許可のタイミングを得ることができる。すなわち、制御部9はイニシャル中に、出力信号10aの状態を読み込み、その信号が’H’となるまでメモリ2のアクセスを行わないようにそのプログラムが構成される。   As a first method of access prohibiting means for preventing the controller 9 from inadvertently accessing the memory 2 during the period from the time point t1 to the time point t2 (this period is defined as a backup memory access prohibition period), a delay circuit 10 If the output signal 10a is provided to the control unit 9 and the CPU of the control unit 9 reads the output signal 10a via the I / O port, the access permission timing of the memory 2 can be obtained. That is, the program is configured so that the control unit 9 reads the state of the output signal 10a during initialization and does not access the memory 2 until the signal becomes 'H'.

また第二の方法としては、出力信号10aを制御部9に対する割込み信号として扱っても良い。この場合、時点t2で出力信号10aが’H’になることで、制御部9は出力信号10aに対する割込みプログラムを起動する。起動された割込みプログラムはメモリ2へのアクセスを許可するフラグ情報を作業メモリにセットする。イニシャル処理は、割込みプログラムによってセットされたフラグを参照し、このフラグがセットされるまでメモリ2のアクセスを行わないようにそのプログラムが構成される。   As a second method, the output signal 10a may be handled as an interrupt signal for the control unit 9. In this case, when the output signal 10a becomes “H” at time t2, the control unit 9 starts an interrupt program for the output signal 10a. The activated interrupt program sets flag information permitting access to the memory 2 in the working memory. The initial process refers to the flag set by the interrupt program, and the program is configured so that the memory 2 is not accessed until this flag is set.

また、第三の方法としては、ロジック回路にてハード的にアクセスを禁止することが可能である。この方法は、遅延回路出力信号10aが有効(H)とならない限りメモリ2へのチップセレクト信号が出力されないように遅延回路出力信号10aと制御部9が出力するメモリ2へのアクセス要求信号との論理積をとり、この論理積の出力をメモリ2のチップセレクトにすることで達成される。すなわち、第三の方法は遅延回路出力信号10aが有効(H)とならない限りメモリ2へのチップセレクト信号をマスクする。   As a third method, it is possible to prohibit access by hardware in a logic circuit. In this method, the delay circuit output signal 10a and the access request signal to the memory 2 output from the control unit 9 are set so that the chip select signal is not output to the memory 2 unless the delay circuit output signal 10a becomes valid (H). This is achieved by taking a logical product and using the output of this logical product as the chip select of the memory 2. That is, the third method masks the chip select signal to the memory 2 unless the delay circuit output signal 10a becomes valid (H).

また、バックアップメモリアクセス禁止区間に制御部9がメモリ2をアクセスしようとしたときには、メモリ2への不当なアクセスとして異常処理を実行するメモリアクセス異常割込みなどを起動するように構成しても良い。これは、遅延回路出力信号10aの’L’信号と前述メモリ2へのアクセス要求信号との論理積をとって、制御部9のCPUにメモリアクセス異常割込みを与えるようにすることで達成できる。すなわち、制御部9は遅延回路出力信号10aが’L’のときに前述アクセス要求信号がアクティブになると、メモリアクセス異常割込みを起動すれば良い。起動されたメモリアクセス異常割込みは、表示回路7を介して警報を出力するなどの異常処理を実行するとともに、その状態に留まる。   Further, when the control unit 9 tries to access the memory 2 during the backup memory access prohibition section, a memory access abnormality interrupt for executing an abnormality process as an unauthorized access to the memory 2 may be activated. This can be achieved by taking a logical product of the 'L' signal of the delay circuit output signal 10a and the access request signal to the memory 2 to give a memory access abnormal interrupt to the CPU of the control unit 9. That is, if the access request signal becomes active when the delay circuit output signal 10a is 'L', the control unit 9 may activate a memory access abnormality interrupt. The activated memory access abnormality interrupt executes abnormality processing such as outputting an alarm via the display circuit 7 and stays in that state.

また、時点tcにおいて電池電圧5aが基準電圧Eth以下であった場合、電池電圧検出回路6は表示回路7を介して警報を出力する。このとき、メモリ2に保持されたデータは正当性が保証されない。従って、メモリ2に保持された誤ったデータに基づく制御部9の誤動作を回避するために、電池電圧間出回路6は制御部9のCPUに対してリセットを与え続け、プログラムの実行を停止させる。   Further, when the battery voltage 5 a is equal to or lower than the reference voltage Eth at the time point tc, the battery voltage detection circuit 6 outputs an alarm via the display circuit 7. At this time, the validity of the data held in the memory 2 is not guaranteed. Therefore, in order to avoid a malfunction of the control unit 9 based on erroneous data held in the memory 2, the battery voltage output circuit 6 continues to reset the CPU of the control unit 9 and stops the execution of the program. .

また、電池電圧検出回路6と表示回路7の機能、すなわち、主電源がオンしてから電池によるメモリ2のバックアップを継続している間に、電池5の電圧と閾値Ethとを比較し、その比較結果を出力する機能が電池電圧検出手段に対応している。   Further, the function of the battery voltage detection circuit 6 and the display circuit 7, that is, while the backup of the memory 2 by the battery is continued after the main power is turned on, the voltage of the battery 5 is compared with the threshold value Eth, The function of outputting the comparison result corresponds to the battery voltage detection means.

以上説明したように、本発明は、主電源投入後、電池によるメモリへの電圧供給から主電源よる電圧供給に切り替えるまでの時間を延長してメモリ2のバックアップ状態を維持し、このバックアップ状態の電池電圧(実負荷電圧)を検出するよう構成した。このようにすることで電池の実負荷電圧が正確に検出されるため、電池5のメモリバックアップ能力が尽きる前に確実に電池の交換を促すことができるバックアップ装置、そしてこのバックアップ装置を搭載した高信頼なプログラマブルコントローラを提供することができる。   As described above, the present invention maintains the backup state of the memory 2 by extending the time after the main power supply is turned on until the voltage supply from the battery to the memory is switched to the voltage supply by the main power supply. The battery voltage (actual load voltage) was detected. In this way, since the actual load voltage of the battery is accurately detected, a backup device that can surely prompt the user to replace the battery before the memory backup capability of the battery 5 is exhausted, and a high-performance device equipped with this backup device. A reliable programmable controller can be provided.

また、上記の説明では、本発明のメモリバックアップ装置をPLCに適用した例を示したが、本発明はメモリバックアップ機能を有する機器に広く適用することが可能であり、特に、プログラムを実行する制御部を備える機器には極めて有用なメモリバックアップ装置を提供することができる。   In the above description, the example in which the memory backup device of the present invention is applied to the PLC has been shown. However, the present invention can be widely applied to devices having a memory backup function, and in particular, control for executing a program. It is possible to provide a memory backup device that is extremely useful for a device including a unit.

01 メモリバックアップ回路
1 モジュール電源
2 メモリ
2a メモリ電源電圧
3,4 ダイオード
5 電池
5a 電池電圧
6 電池電圧検出回路
6a 電池電圧検出回路出力
7 表示回路
7a 表示回路出力
8 リセット解除回路
8a リセット解除信号
9 制御部
10 遅延回路
10a 遅延回路出力信号
11 トランジスタ
S1 ベースボード電圧
S2 モジュール電圧
Eth 閾値電圧
01 Memory backup circuit 1 Module power supply 2 Memory 2a Memory power supply voltage 3, 4 Diode 5 Battery 5a Battery voltage 6 Battery voltage detection circuit 6a Battery voltage detection circuit output 7 Display circuit 7a Display circuit output 8 Reset release circuit 8a Reset release signal 9 Control Part 10 Delay circuit 10a Delay circuit output signal 11 Transistor S1 Base board voltage S2 Module voltage Eth Threshold voltage

Claims (4)

主電源がオフのとき電池にて記憶手段をバックアップするメモリバックアップ装置であって、
前記主電源がオンしてから所定の期間の後、前記記憶手段への電流の供給を前記電池から前記主電源に切替えるバックアップ切替手段と、
このバックアップ切替手段によって前記記憶手段への電流の供給が前記電池から前記主電源に切替えられるまで前記記憶手段へのアクセスを禁止するアクセス禁止手段と、
前記所定の期間中に前記電池の電圧値と所定の閾値とを比較し、該比較結果を出力する電池電圧検出手段と、
を備えることを特徴とするメモリバックアップ装置。
A memory backup device for backing up storage means with a battery when the main power is off,
Backup switching means for switching the supply of current to the storage means from the battery to the main power supply after a predetermined period after the main power supply is turned on;
Access prohibiting means for prohibiting access to the storage means until the supply of current to the storage means is switched from the battery to the main power supply by the backup switching means;
Battery voltage detection means for comparing the voltage value of the battery with a predetermined threshold value during the predetermined period and outputting the comparison result;
A memory backup device comprising:
請求項1に記載のメモリバックアップ装置において、
前記所定の閾値は前記記憶手段がデータを保持する下限電圧を基に設定された電圧値であることを特徴とするメモリバックアップ装置。
The memory backup device according to claim 1,
The memory backup device, wherein the predetermined threshold value is a voltage value set based on a lower limit voltage at which the storage means holds data.
請求項1または請求項2に記載のメモリバックアップ装置を有するプログラマブルコントローラであって、
前記記憶手段には、前記プログラマブルコントローラの動作モードを決定するパラメータが保持され、
前記プログラマブルコントローラは前記パラメータを参照して前記動作モードを決定する制御部を備え、
前記電池電圧検出手段は前記電池の電圧が前記所定の閾値以下であることを検出すると、前記制御部にリセットを与え、前記制御部を停止させることを特徴とするプログラマブルコントローラ。
A programmable controller comprising the memory backup device according to claim 1 or 2,
The storage means holds a parameter for determining an operation mode of the programmable controller,
The programmable controller includes a control unit that determines the operation mode with reference to the parameter,
When the battery voltage detection unit detects that the voltage of the battery is equal to or less than the predetermined threshold, the programmable controller is configured to reset the control unit and stop the control unit.
請求項3に記載のプログラマブルコントローラにおいて、
前記制御部は前記プログラマブルコントローラに着脱可能な支援装置により新たな前記閾値が転送されると、予め設定された前記閾値を新たな前記閾値に更新する更新手段を備えることを特徴とするプログラマブルコントローラ。
The programmable controller according to claim 3,
The said control part is equipped with the update means which updates the said preset threshold value to the said new threshold value, when the said new threshold value is transferred by the assistance apparatus which can be attached or detached to the said programmable controller, The programmable controller characterized by the above-mentioned.
JP2011006004A 2011-01-14 2011-01-14 Memory backup device and programmable controller having memory backup device Pending JP2012146254A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011006004A JP2012146254A (en) 2011-01-14 2011-01-14 Memory backup device and programmable controller having memory backup device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011006004A JP2012146254A (en) 2011-01-14 2011-01-14 Memory backup device and programmable controller having memory backup device

Publications (1)

Publication Number Publication Date
JP2012146254A true JP2012146254A (en) 2012-08-02

Family

ID=46789735

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011006004A Pending JP2012146254A (en) 2011-01-14 2011-01-14 Memory backup device and programmable controller having memory backup device

Country Status (1)

Country Link
JP (1) JP2012146254A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016057966A (en) * 2014-09-11 2016-04-21 矢崎総業株式会社 Backup circuit
JP2016062533A (en) * 2014-09-22 2016-04-25 矢崎総業株式会社 Arithmetic processing device with backup function

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016057966A (en) * 2014-09-11 2016-04-21 矢崎総業株式会社 Backup circuit
JP2016062533A (en) * 2014-09-22 2016-04-25 矢崎総業株式会社 Arithmetic processing device with backup function

Similar Documents

Publication Publication Date Title
JP4066381B2 (en) In-vehicle electronic control unit
US9307145B2 (en) Video camera with temperature sensor
US20170149925A1 (en) Processing cache data
US9275527B2 (en) Controller
KR20110082132A (en) Power management in a system having a processor and a voltage converter that provides a power voltage to the processor
JP2010180776A (en) Power source control device
JP4886558B2 (en) Information processing device
JP2012146254A (en) Memory backup device and programmable controller having memory backup device
JP2005038405A (en) Method and computer system for reducing occurrence of cold reset
JP5308298B2 (en) Reset circuit
JP2007028812A (en) Power supply unit
JP5300059B2 (en) Power supply system, diagnosis method and program thereof
JP2011039608A (en) Processing system, operation state control method and computer program
WO2013186888A1 (en) Programmable controller and method for addressing electrical power disconnection
JP6353709B2 (en) Backup signal generation circuit for load control
JP2020009398A (en) Method for controlling fan in electronic system
JP2862704B2 (en) Power supply
JP7063692B2 (en) Watchdog timer monitoring system
JP7143797B2 (en) Power control device for in-vehicle camera module
US10921875B2 (en) Computer system, operational method for a microcontroller, and computer program product
JP2009025967A (en) Backup system of duplicated firmware, method and operating system
JP5422426B2 (en) Information processing device
JP2012027640A (en) Programmable controller and method for detecting programmable controller memory backup battery voltage
JP2007118399A (en) Printer and its low-voltage error reporting method
US8990594B2 (en) Apparatus for measuring a remaining power of a battery includes a first memory for storing a routine code and a second memory for storing an exception code