JPH1092474A - Programable controller - Google Patents

Programable controller

Info

Publication number
JPH1092474A
JPH1092474A JP24471396A JP24471396A JPH1092474A JP H1092474 A JPH1092474 A JP H1092474A JP 24471396 A JP24471396 A JP 24471396A JP 24471396 A JP24471396 A JP 24471396A JP H1092474 A JPH1092474 A JP H1092474A
Authority
JP
Japan
Prior art keywords
time
battery
discharge
function
remaining
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
JP24471396A
Other languages
Japanese (ja)
Inventor
Atsushi Nitta
敦 新田
Ryoichi Uchiyama
良一 内山
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 Ltd
Original Assignee
Hitachi 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 Ltd filed Critical Hitachi Ltd
Priority to JP24471396A priority Critical patent/JPH1092474A/en
Publication of JPH1092474A publication Critical patent/JPH1092474A/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

  • Tests Of Electric Status Of Batteries (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Programmable Controllers (AREA)
  • Communication Control (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Secondary Cells (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide the programable controller capable of making the optimum exchange of a battery. SOLUTION: Sampling time for a discharge function and correspondent data for functional values are stored in a data table 15, and the optimum but approximate discharge function is retrieved out of a control circuit 12. After the aforesaid function has been determined, it is so constituted that the remaining usable time corresponding to the aforesaid function of a battery is read out of the data table 15 so as to allow its remaining time data 18 to be indicated. By this constitution, the time used of the battery is computed so as to be indicated, and the optimum exchange time is thereby provided, the occurrence of operational interruption of equipment due to errors made, is thereby prevented, and the remaining usable time of the battery is also grasped.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、プログラマブルコ
ントローラ(以下、PCという)に係り、ユーザプログ
ラムやデータのバックアップのために用いられる電源バ
ッテリの使用可能な残時間を自動的に算出し表示する機
能を備えたPCに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller (hereinafter, referred to as a PC), and a function of automatically calculating and displaying a remaining available time of a power supply battery used for backing up user programs and data. The present invention relates to a PC provided with a.

【0002】[0002]

【従来の技術】従来の技術におけるPCの電源装置を説
明する。一般のPCは、入力部、出力部、メモリ部、制
御回路部、周辺機器部およびこれらに電源を供給する電
源部から構成されている。前記入力部は、リミットスイ
ッチ、押ボタンスイッチ、操作スイッチからの外部信号
を、当該PC内部で取り扱える信号レベルに変換する機
能を備えている。前記出力部は、当該PC内部の信号を
電磁開閉器、電磁弁等の制御対象を直接、駆動できるレ
ベルに変換する機能を備えている。メモリ部は、入力信
号や出力データおよびプログラムを記憶する。制御回路
部は、メモリ部に記憶されているプログラムにしたが
い、入力データを演算したり、シーケンス演算等を行
い、後述の周辺機器部を制御する。周辺機器部は、PC
に接続されているプログラムを書き込むプログラムロー
ダや上位計算機等である。電源部は、入力部、出力部、
メモリ部、制御回路部、周辺機器部に電気を供給する。
2. Description of the Related Art A conventional PC power supply will be described. A general PC includes an input unit, an output unit, a memory unit, a control circuit unit, a peripheral device unit, and a power supply unit that supplies power to these units. The input unit has a function of converting an external signal from a limit switch, a push button switch, or an operation switch into a signal level that can be handled inside the PC. The output unit has a function of converting a signal inside the PC into a level at which a control target such as an electromagnetic switch or an electromagnetic valve can be directly driven. The memory unit stores input signals, output data, and programs. The control circuit unit calculates input data, performs a sequence operation and the like according to a program stored in the memory unit, and controls a peripheral device unit described later. Peripheral unit is PC
And a higher-level computer for writing a program connected to the program. Power supply unit, input unit, output unit,
It supplies electricity to the memory unit, control circuit unit, and peripheral device unit.

【0003】上記電源装置は、対象負荷の実際としてL
SI、ICであり、その供給値はDC5V、12V、1
5V、−5V、−9V、−15V等多様である。PC
は、ロジック回路を用いられて作られ、当該ロジック回
路は一度起きたミスは復旧が困難であるため、前記電源
装置の安定性については考慮が払われていた。特に、電
源切断時に、RAMに記憶されているユーザプログラム
やデータのバックアップを行うためバッテリ、例えばリ
チウム電池等が無停電のバックアップ電源として使用さ
れている場合が多かった。
[0003] The above-mentioned power supply device has L as an actual target load.
SI, IC, and their supply values are DC5V, 12V, 1
It is various such as 5V, -5V, -9V, -15V. PC
Is made using a logic circuit, and the logic circuit is difficult to recover from a once-occurred mistake, so that the stability of the power supply device has been considered. In particular, when the power is turned off, a battery, for example, a lithium battery or the like is often used as an uninterruptible backup power supply for backing up user programs and data stored in the RAM.

【0004】[0004]

【発明が解決しようとする課題】図9を参照して、従来
のバッテリの放電による端子電圧の低下を説明する。図
9は、従来のバッテリの端子電圧の放電特性線図であ
る。図9において、縦軸はバッテリの端子電圧、横軸は
バッテリの使用時間、太折線1は、現実のバッテリの放
電特性曲線の一例、細折線5は、現実のバッテリの放電
特性曲線の他の一例、点線6は最悪の使用条件下のバッ
テリの放電特性曲線である。
With reference to FIG. 9, a description will be given of a conventional decrease in terminal voltage due to battery discharge. FIG. 9 is a discharge characteristic diagram of a terminal voltage of a conventional battery. In FIG. 9, the vertical axis is the terminal voltage of the battery, the horizontal axis is the battery usage time, the bold line 1 is an example of the actual battery discharge characteristic curve, and the thin line 5 is another example of the actual battery discharge characteristic curve. For example, the dotted line 6 is a discharge characteristic curve of the battery under the worst use condition.

【0005】図示する如く、前記リチウム電池等のバッ
テリが放電し、その端子電圧が低下し消耗され、バック
アップ機能の保持が不可能な電圧V2(4)にまで低下
すると、ユーザプログラムやデータが失われてしまう恐
れがある。そのため、バッテリ電圧がバッテリエラー判
定しきい値V1(2)まで低下したらバッテリエラー信
号を発生させ、ユーザに警告を発し、前記警告を受けた
当該ユーザは、設備停止をしていた。
[0005] As shown in the figure, when a battery such as the lithium battery is discharged, its terminal voltage is reduced and consumed, and the voltage drops to a voltage V2 (4) at which a backup function cannot be maintained, a user program or data is lost. There is a risk of being stricken. Therefore, when the battery voltage drops to the battery error determination threshold value V1 (2), a battery error signal is generated, a warning is issued to the user, and the user who has received the warning has stopped the equipment.

【0006】しかし、前記バッテリは、定格周囲温度に
おいて基準の寿命が定まっており、通風、周囲温度など
の条件により消耗度が異なり、端子電圧の放電特性曲線
が異なるため、バッテリエラー信号が発生する黒丸点3
の時間的位置が異なる。そのため、ユーザは、バッテリ
エラーがいつ発生するか分からず、突然バッテリーエラ
ーが発生して、予定外の設備停止の止むなきにいたって
いた。また、バッテリの推奨交換時期tc(7)は、最
悪使用条件下のバッテリ端子電圧の放電特性線6に基づ
いて決定しているため、バッテリ使用時間の実際値t1
(8)と大きく介離している場合が多く、バッテリ使用
可能期間の実際値を知りたいという顧客のニーズが大き
いという問題があった。さらに、バッテリ交換時期の管
理が煩雑なので交換時期が分かるようにして欲しいとい
うニーズも多いという問題があった。
However, the battery has a standard life at a rated ambient temperature, the degree of wear differs depending on conditions such as ventilation, ambient temperature, and the like, and the discharge characteristic curve of the terminal voltage varies, so that a battery error signal is generated. Black dot 3
Are different in time position. For this reason, the user does not know when the battery error occurs, and suddenly the battery error occurs, so that the unscheduled stoppage of the equipment has been inevitable. Further, since the recommended replacement time tc (7) of the battery is determined based on the discharge characteristic line 6 of the battery terminal voltage under the worst use conditions, the actual value t1 of the battery usage time is determined.
In many cases, the distance from (8) is greatly different, and there is a problem that the customer needs to know the actual value of the battery usable period is large. Furthermore, there is a problem that there is a great need to be able to know the replacement time because the management of the battery replacement time is complicated.

【0007】このように、これまではバッテリエラーが
いつ発生するか分からず、予定外の設備停止の危険があ
った。また、最悪使用条件下の端子電圧の放電特性線に
基づいて決定されたバッテリの推奨交換時期tc(7)
に従い、顧客自ら交換時期を管理して、バッテリ使用可
能時間の実際値を下回る周期で頻繁に設備を停止させ、
バッテリを交換すると経済的な負担が大であるという問
題があった。
As described above, it has not been known when a battery error will occur, and there has been a danger of unplanned equipment stoppage. Further, the recommended replacement time tc (7) of the battery determined based on the discharge characteristic line of the terminal voltage under the worst use condition.
In accordance with the above, the customer himself manages the replacement time, frequently stops the equipment at a cycle lower than the actual value of the battery usable time,
There is a problem that replacing the battery requires a large economic burden.

【0008】本発明の目的は、かかる従来技術の問題点
を解決するためになされたもので、ユーザプログラムや
データ等のバックアップ用に使用されているバッテリの
使用可能残り期間を自動的に算出し表示することによ
り、最適なバッテリ交換時期の算出し、表示を行うこと
ができるPCを提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the problems of the prior art, and automatically calculates a remaining usable period of a battery used for backing up user programs and data. An object of the present invention is to provide a PC capable of calculating and displaying an optimum battery replacement time by displaying.

【0009】[0009]

【課題を解決するための手段】本発明に係るプログラマ
ブルコントローラの構成は、装着されている電源バッテ
リーの使用可能な残時間の算出手段を具備したことを特
徴とするものである。前項記載のプログラマブルコント
ローラにおいて、前記算出手段は、前記電源バッテリー
の使用条件の相違に基づく各放電特性曲線の所定のサン
プリング時間毎のデータを記憶する記憶手段と、所定の
放電時間の直近のサンプリング時間を選定する選定手段
と、前記記憶させた直近のサンプリング時間の端子電圧
と前記所定の放電時間の端子電圧との差が最小である放
電特性曲線を選定する選定手段とを具備し、前記選定さ
れた放電特性曲線に基づき電源バッテリーの使用可能な
残時間の算出することを特徴とするものである。前記記
載のプログラマブルコントローラにおいて、前記サンプ
リング時間の選定手段は、前記所定の放電時間との差が
最小となるようなサンプリング時間を選定するようにし
たことを特徴とするものりである。前項記載のプログラ
マブルコントローラにおいて、前記算出手段に、季節調
整機能を付加せしめたことを特徴とするものである。前
項記載のプログラマブルコントローラにおいて、前記算
出手段に、学習機能を付加せしめたことを特徴とするも
のである。前項記載のプログラマブルコントローラにお
いて、前記算出手段に、年表示もしくは月表示もしくは
日表示または時間表示のいずれかを当該使用可能な残時
間に応じて切替え表示機能を付加せしめたことを特徴と
するものである。
The configuration of the programmable controller according to the present invention is characterized in that it comprises means for calculating the remaining usable time of the attached power supply battery. In the programmable controller according to the preceding paragraph, the calculating means includes a storage means for storing data for each predetermined sampling time of each discharge characteristic curve based on a difference in the use condition of the power supply battery, and a sampling time closest to the predetermined discharge time. And selecting means for selecting a discharge characteristic curve in which the difference between the stored terminal voltage at the latest sampling time and the terminal voltage at the predetermined discharge time is the smallest. And calculating the remaining usable time of the power supply battery based on the discharged characteristic curve. In the above-mentioned programmable controller, the sampling time selecting means selects a sampling time such that a difference from the predetermined discharge time is minimized. In the programmable controller according to the preceding paragraph, a season adjustment function is added to the calculation means. In the programmable controller according to the preceding paragraph, a learning function is added to the calculating means. In the programmable controller according to the preceding paragraph, the calculation means is provided with a function of switching between year display, month display, day display, and time display in accordance with the available remaining time. is there.

【0010】[0010]

【発明の実施の形態】図1ないし図8を参照して、本発
明に係るPCの一実施の形態を説明する。本発明の実施
の形態は、バッテリ使用可能残り時間算出回路を従来の
PCに付設したものである。なお、PCの基本的構成の
内、従来の技術と共通する部分についての再度の説明
は、煩瑣となるので省略し、特徴部分を中心に説明す
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of a PC according to the present invention will be described with reference to FIGS. In the embodiment of the present invention, a battery usable remaining time calculation circuit is added to a conventional PC. Note that, of the basic configuration of the PC, a repetitive description of a portion common to the related art will be omitted because it is complicated, and the description will focus on the characteristic portion.

【0011】図1は、本発明の一実施の形態に係るPC
のブロック構成図である。図1において、バックアップ
用バッテリ10、例えばリチウム電池の端子電圧をA/
D変換器11でディジタルデータに変換して制御回路1
2に入力する。また、カレンダ時計13から時間データ
を制御回路12に入力する。前記制御回路12は、バッ
クアップ用バッテリ10の端子電圧のディジタルデータ
と時間データとからバッテリ電圧の放電低下の特性線図
が得られる。図2は、図1のPCにおけるバックアップ
用リチウム電池の放電特性線図である。
FIG. 1 shows a PC according to an embodiment of the present invention.
FIG. 3 is a block diagram of the configuration of FIG. In FIG. 1, the terminal voltage of a backup battery 10, for example, a lithium battery is A / A
The data is converted into digital data by the D converter 11 and the control circuit 1
Enter 2 Further, time data is input to the control circuit 12 from the calendar clock 13. The control circuit 12 obtains a characteristic diagram of the discharge reduction of the battery voltage from the digital data of the terminal voltage of the backup battery 10 and the time data. FIG. 2 is a discharge characteristic diagram of a backup lithium battery in the PC of FIG.

【0012】ここで、PCを稼働させるため、商用電源
の通電時には、バックアップ用バッテリ10、例えばリ
チウム電池をユーザープログラム等のバックアップで使
用する必要がなく、前記商用電源の通電時のバッテリ電
圧波形19は、バッテリの消耗がないため、その端子電
圧が一定で、商用電源の未通電時はバックアップで使用
するため、バッテリの消耗があるため、その時の電圧波
形20のみ電圧が低下する。
Here, in order to operate the PC, it is not necessary to use the backup battery 10, for example, a lithium battery for backup of a user program or the like when the commercial power supply is energized, and the battery voltage waveform 19 when the commercial power supply is energized. Since the battery is not consumed, its terminal voltage is constant, and it is used as a backup when the commercial power is not supplied. Therefore, the battery is consumed, so that only the voltage waveform 20 at that time drops.

【0012】図3に従い、バッテリの使用可能な時間算
出方法を説明する。図3は、バックアップ用リチウム電
池の使用時間と端子電圧の関係線図である。図示する如
く、使用を開始してから商用電源の通電累積時間24の
間は、バックアップ用リチウム電池のバッテリ(以下、
単にバッテリという)が消耗されず、使用開始時電圧V
0(9)のままで、前記バッテリの端子電圧が変化しな
い。バッテリの全使用時間22から前記商用電源の通電
累積時間24を差し引いたバッテリの放電時間25の間
に、バッテリの端子電圧が、現在の端子電圧Vx(2
1)まで低下するものとする。
Referring to FIG. 3, a method of calculating the usable time of the battery will be described. FIG. 3 is a diagram showing the relationship between the usage time of the backup lithium battery and the terminal voltage. As shown in the figure, a backup lithium battery (hereinafter, referred to as a battery) is used for a cumulative power supply time 24 of the commercial power supply after the start of use.
The battery is not consumed, and the starting voltage V
At 0 (9), the terminal voltage of the battery does not change. During the battery discharge time 25 obtained by subtracting the commercial power supply cumulative time 24 from the total use time 22 of the battery, the terminal voltage of the battery becomes the current terminal voltage Vx (2
1).

【0013】前記バッテリの放電時間25の間は、その
端子電圧の低下波形が、二次関数曲線を示すので、その
関数式を求め、当該関数式を基にして端子電圧がV2
(4)となるまでの使用可能残り時間17を算出するこ
とができる。前記関数式を求めるため、バッテリの端子
電圧低下波形を放電関数(図示では指数関数)に近似さ
せて、下記(1)式で表すことにする。
During the discharge time 25 of the battery, the terminal voltage drop waveform shows a quadratic function curve. Therefore, the function formula is obtained, and the terminal voltage becomes V2 based on the function formula.
The remaining usable time 17 until (4) is obtained can be calculated. In order to obtain the above function expression, the terminal voltage drop waveform of the battery is approximated by a discharge function (exponential function in the figure) and expressed by the following expression (1).

【数1】 上式において、V0は、バッテリの使用開始時の端子電
圧であり、これは使用するバッテリの仕様に応じて変更
することができる。Kは、放電波形の形状を決める係数
である。
(Equation 1) In the above equation, V0 is a terminal voltage at the start of use of the battery, and can be changed according to the specification of the battery to be used. K is a coefficient that determines the shape of the discharge waveform.

【0014】図1に示すメモリ14に、バッテリ使用開
始時の端子電圧V0(9)、商用電源の通電累積時間2
4やバッテリの使用全時間22を記憶させる。これによ
り、放電時間25は、バッテリの使用全時間22と商用
電源の通電累積時間24の差により求められる。図1の
データテーブル15には、何種類かの使用条件による各
種のバッテリ放電特性曲線(以下、単に放電関数とい
う)のサンプリング時間と各サンプリング時間での前記
バッテリの端子電圧値(以下、単に関数値という)とを
対応させたデータを格納させ、さらに、前記関数値と共
に、各サンプリング時間における放電関数に基づき、バ
ッテリのその使用条件下の使用可能残時間17も格納さ
せておくようにしてある。
In the memory 14 shown in FIG. 1, the terminal voltage V0 (9) at the start of use of the battery,
4 and the total battery usage time 22 are stored. Thus, the discharge time 25 is obtained from the difference between the total battery use time 22 and the cumulative power supply time 24 of the commercial power supply. The data table 15 of FIG. 1 includes sampling times of various battery discharge characteristic curves (hereinafter simply referred to as discharge functions) according to several types of use conditions and terminal voltage values of the battery (hereinafter simply referred to as functions) at each sampling time. (Corresponding to a value), and further stores the remaining usable time 17 of the battery under its use condition based on the discharge function at each sampling time, together with the function value. .

【0015】制御回路12は、バッテリ使用開始時の端
子電圧V0(9)と商用電源の通電累積時間24との交
点、すなわち図3のP1と、現時点のバッテリ端子電圧
Vx(21)と放電時間25の交点、すなわち、図3の
P2とから、この端子電圧低下波形に最も近い指数関数
を検索して近似の放電関数とする。前記近似の放電関数
と、バッテリの放電時間25に最も近いサンプリング時
間が確定しデータテーブル15よりバックアップ用バッ
テリとして使用可能残時間17を読み出すことができ
る。制御回路12は、前記読み出したバッテリの使用可
能残時間17を年、月、日、時間など必要に応じた使用
可能な残時間表示データ18に変換して、液晶表示器、
特殊内部出力他16へ転送する。これによりユーザは、
液晶表示器でバッテリの使用可能な残り時間を確認した
り、特殊内部出力をモニタする等の方法で最適な交換時
期を知ることができる。
The control circuit 12 determines the intersection of the terminal voltage V0 (9) at the start of use of the battery and the cumulative supply time 24 of the commercial power supply, that is, P1 in FIG. 3, the current battery terminal voltage Vx (21) and the discharge time. An exponential function closest to this terminal voltage drop waveform is retrieved from the intersection of 25, that is, P2 in FIG. The approximate discharge function and the sampling time closest to the battery discharge time 25 are determined, and the remaining usable time 17 as a backup battery can be read from the data table 15. The control circuit 12 converts the read remaining battery life 17 into usable remaining time display data 18 such as year, month, day, time, etc., as necessary, and outputs the data to a liquid crystal display.
Transfer to special internal output, etc. This allows the user
The optimal replacement time can be known by checking the remaining usable time of the battery on the liquid crystal display or monitoring the special internal output.

【0016】図4を参照して、さらに具体的に現在の放
電後のバッテリ端子電圧Vx(21)と前記バッテリの放
電時間25から使用可能残時間を算出例を説明する。図
4は、図3のバッテリの端子特性線図における放電関数
の近似方法の説明図である。まず、上記バッテリの放電
関数の近似方法の説明のため、前述した式(1)の放電
関数を用いて説明する。式(1)において、説明を簡単
にするため、通風、周囲温度等の使用条件を変化させて
係数Kを正の有理数とし、この有理数は一定の通風、周
囲温度等の使用条件では一定とし、前記係数Kの各有理
数値毎に各所定のサンプリング時間毎の関数値(電圧
値)をデータとして、データテーブル15(図1参照)
に格納させる。図4において、前記各サンプリング点の
各関数値(電圧値)を黒丸の点で表示されている。ま
た、前記所定の係数Kの放電関数において、その使用条
件に基づくバッテリの使用可能な残時間も予め算出して
格納されている。
Referring to FIG. 4, an example of calculating the remaining usable time from the present battery terminal voltage Vx (21) after discharging and the discharging time 25 of the battery will be described more specifically. FIG. 4 is an explanatory diagram of an approximation method of the discharge function in the terminal characteristic diagram of the battery of FIG. First, in order to explain the method of approximating the discharge function of the battery, a description will be given using the discharge function of the above-described equation (1). In Equation (1), for simplicity of explanation, the use condition such as ventilation and ambient temperature is changed to make the coefficient K a positive rational number, and this rational number is constant under constant use conditions such as ventilation and ambient temperature. A data table 15 (see FIG. 1) is used as data with function values (voltage values) for each predetermined sampling time for each rational value of the coefficient K.
To be stored. In FIG. 4, each function value (voltage value) at each sampling point is indicated by a black dot. Further, in the discharge function of the predetermined coefficient K, the remaining usable time of the battery based on the use condition is also calculated and stored in advance.

【0017】図5を参照して、データテーブル15のデ
ータ構造を説明する。図5は、図1のデータテーブルの
データ構造の説明図である。図示する如く、前記データ
テーブル15のデータは、どの関数なのかを示す関数検
索番号、図示では0の関数、K=k0(28)と、どの時
点での数値なのかを示すサンプリング時間t=t0(2
9)に対応して関数値33として格納される。さらに、
前記各関数検索番号0、K=ki,i=0、1、2・・(28)と各
サンプリング時間t=tj、j=0、1、2・・0(29)に対応した
関数値33と、各関数検索番号(28)と各サンプリング
時間(29)に対応したバッテリの使用可能な残時間3
4がペアになって格納される。
Referring to FIG. 5, a data structure of data table 15 will be described. FIG. 5 is an explanatory diagram of the data structure of the data table in FIG. As shown in the figure, the data in the data table 15 is a function search number indicating a function, a function of 0 in the figure, K = k0 (28), and a sampling time t = t0 indicating a value at a time. (2
It is stored as a function value 33 corresponding to 9). further,
A function value 33 corresponding to each function search number 0, K = ki, i = 0, 1, 2,... (28) and each sampling time t = tj, j = 0, 1, 2,. And the remaining battery available time 3 corresponding to each function search number (28) and each sampling time (29)
4 are stored as a pair.

【0018】次に、図4のバッテリの端子電圧低下特性
に対する放電関数の近似処理を図6を参照して説明す
る。図6は、図1のPCにおける放電関数の近似処理の
フロチヤート、図7は、図6の近似処理のサンプリング
時間の検索フロチヤートである。まず、ステップ71に
おいて、バッテリの放電時間25に最も近いサンプリン
グ時間t2(30)を検索して決定する。理想的にはバッ
テリの放電時間25とサンプリング時間t2(30)とが
一致しているのが望ましい。サンプリング時間の選定に
ついては、図8を参照して詳細に後述する。
Next, the process of approximating the discharge function to the terminal voltage drop characteristic of the battery shown in FIG. 4 will be described with reference to FIG. FIG. 6 is a flowchart of the approximation process of the discharge function in the PC of FIG. 1, and FIG. 7 is a flowchart of searching for the sampling time of the approximation process of FIG. First, in step 71, a sampling time t2 (30) closest to the battery discharge time 25 is searched for and determined. Ideally, it is desirable that the battery discharge time 25 and the sampling time t2 (30) match. The selection of the sampling time will be described later in detail with reference to FIG.

【0019】そして、ステップ72において、多数の放
電関数Kiより一つを選定する。まず、i=0、すなわち
Ki=K0を選定する。ステップ73において、放電時間
25におけるバッテリの電圧値Vx(21)と前記放電関数
K0上の電圧値f0(t2)との差を求める。これを数式で
示せば、R0=|f0(t2)−Vx(21)|を求めることに
なる。そして、i=0、1、2・・すなわちK1、K2、K3、K4・・
を選定し、前記放電時間25における電圧値Vx(21)と
放電関数K1上の電圧値f1(t2)、f2(t2)・・との差
を全放電関数Kiについて求める。次ぎに、ステップ7
4においてこれを記憶させる。ステップ75において、
前記記憶値を検索し、Ri=|fi(t2)−Vx(21)|が
最小となる放電関数Ki(図示ではKi=k1)を選定す
る。ステップ76において、前記放電関数Kiにおける
バッテリの使用可能な残時間をデータテーブル15から
得られる。ステップ77において、表示データに変換
後、表示器等に送り、表示させる。
Then, in step 72, one is selected from a number of discharge functions Ki. First, i = 0, that is, Ki = K0 is selected. In step 73, the difference between the voltage value Vx (21) of the battery at the discharge time 25 and the voltage value f0 (t2) on the discharge function K0 is determined. If this is expressed by a mathematical expression, R0 = | f0 (t2) -Vx (21) | And i = 0, 1, 2,..., That is, K1, K2, K3, K4.
Is determined, and the difference between the voltage value Vx (21) at the discharge time 25 and the voltage values f1 (t2), f2 (t2),... On the discharge function K1 is determined for the entire discharge function Ki. Next, step 7
This is stored in 4. In step 75,
The stored value is searched, and a discharge function Ki (Ki = k1 in the figure) that minimizes Ri = | fi (t2) -Vx (21) | is selected. In step 76, the remaining available battery time in the discharge function Ki is obtained from the data table 15. In step 77, the data is converted into display data, sent to a display or the like, and displayed.

【0020】図7を参照して、バッテリの放電時間25
に最も近いサンプリング時間t2(30)を検索について
説明する。ステップ81において、サンプリング時間t
j、例えばj=0、すなわちt0とする。ステップ82にお
いて、サンプリング時間t0と放電時間25との差を演
算する。S0=|t0−放電時間25|を演算する。tj
=1、2、3・・・のすべてについて、Sj=|tj−放電時間2
5|を求める。ステップ83において、tj=1、2、3・・・
のすべてについて、Sj=|tj−放電時間25|を記憶
させる。ステップ84において、上記記憶させたtj=
1、2、3・・・のすべてについてのSj=|tj−放電時間25
|から最小を求め、サンプリング時間tj(図示ではtj
=t2)が求められる。
Referring to FIG. 7, battery discharge time 25
The search for the sampling time t2 (30) that is closest to is described. In step 81, the sampling time t
j, for example, j = 0, that is, t0. In step 82, the difference between the sampling time t0 and the discharge time 25 is calculated. S0 = | t0-discharge time 25 | is calculated. tj
= 1, 2, 3,..., Sj = | tj−discharge time 2
5 | In step 83, tj = 1, 2, 3,...
Are stored as Sj = | tj-discharge time 25 |. In step 84, the stored tj =
Sj = | tj-discharge time 25 for all of 1, 2, 3...
│, the sampling time tj (tj in the figure)
= T2).

【0021】バッテリの使用可能残時間17の算出処理
では、通風、周囲温度等の使用条件を変化させて係数K
を整数とし、前記係数Kの各整数値毎に各所定のサンプ
リング時間毎の関数値(電圧値)をデータとしてデータ
テーブル15(図1参照)に格納したが前記係数Kが使
用期間中変化しないことが前提である。使用期間中、係
数Kが変化した場合についての処理を説明する。
In the process of calculating the remaining battery life 17, the operating conditions such as ventilation, ambient temperature, etc. are changed to obtain the coefficient K.
, And a function value (voltage value) for each predetermined sampling time for each integer value of the coefficient K is stored as data in the data table 15 (see FIG. 1), but the coefficient K does not change during the use period. It is a premise. The processing when the coefficient K changes during the use period will be described.

【0022】(1)季節調整機能 バッテリの放電度は、周囲温度により特に影響を受ける
ため、特に使用可能な残時間17が、数カ月程度となっ
た場合、季節により残時間の長さが異なる。そのため、
図3に示す様に、電圧低下予測の放電関数26に、季節
調整の係数をかけて、季節調整放電関数27を求め、使
用可能残時間17を季節調整して表示することも可能で
ある。すなわち、放電関数は、P2を変異点として曲率
半径を変えて変位するものである。季節調整具体的な例
としては、季節調整したのちの係数をK′とすれば、上
記式(1)において、K′=K×T/T1とすることが
できる。Tは周囲温度、T1は年平均温度である。
(1) Season Adjustment Function Since the degree of discharge of the battery is particularly affected by the ambient temperature, if the usable remaining time 17 is about several months, the remaining time differs depending on the season. for that reason,
As shown in FIG. 3, it is also possible to calculate the seasonal adjustment discharge function 27 by multiplying the voltage drop prediction discharge function 26 by the seasonal adjustment coefficient, and display the remaining usable time 17 after seasonal adjustment. That is, the discharge function is displaced by changing the radius of curvature with P2 as a transition point. As a specific example of the seasonal adjustment, if the coefficient after the seasonal adjustment is K ′, then K ′ = K × T / T1 in the above equation (1). T is the ambient temperature and T1 is the annual average temperature.

【0023】(2)学習機能 図8を参照して、学習機能によるバッテリの使用可能な
残時間の算出方法を説明する。図8は、学習機能による
バッテリの使用可能残時間の算出方法の説明図である。
バッテリの使用可能の残時間は、今後PCの商用電源
が、常に未通電のままであるという最悪の場合を想定し
て算出しているが、実際には電源の通電35及び未通電
36の状態が混在していることが多く、この場合、バッ
テリの使用可能な残時間は延びる。図8に示す如く、過
去の商用電源の通電区間35と未通電区間36の時間比
率を基づいて、通電予測時間ton(37)と、未通電
予測時間toff(38)を求め、両者を加えてこれま
での通電/未通電比率を反映したバッテリ残り時間40
を算出する。すなわち、放電関数をVx(21)から下部を
シフト(図示では右方)させるものである。通電区間3
5/未通電比率36と通電予測時間ton(37)/未
通電予測時間toff(38)を同じにすれば、係数K
が変化しない場合、バッテリの使用可能残時間39と同
じである。
(2) Learning Function With reference to FIG. 8, a description will be given of a method of calculating the remaining battery life by the learning function. FIG. 8 is an explanatory diagram of a method of calculating the remaining battery usable time by the learning function.
The remaining usable time of the battery is calculated assuming the worst case that the commercial power supply of the PC will always remain unpowered in the future. Are often mixed, and in this case, the remaining usable time of the battery is extended. As shown in FIG. 8, based on the time ratio between the energized section 35 and the non-energized section 36 of the past commercial power supply, a predicted energization time ton (37) and a predicted non-energized time toff (38) are obtained. Remaining battery time 40 reflecting the current energized / unenergized ratio
Is calculated. That is, the discharge function is shifted downward (rightward in the figure) from Vx (21). Energizing section 3
If the ratio 5 / the non-energization ratio 36 and the estimated energization time ton (37) / the estimated non-energization time toff (38) are the same, the coefficient K
Is the same as the remaining battery available time 39.

【0024】(3)バッテリの使用可能残り時間の表示
に関して説明する。 (イ)表示器による表示 液晶表示器等の消費電力の少ない表示器を使用すること
によりPCの電源が未通電時でもバッテリ使用可能残り
時間を表示できる。また、通常は別の情報を表示してバ
ッテリ使用可能残り時間が少なくなった時のみ表示する
設定も可能とする。 (ロ)特殊内部出力への書き込み エラー情報や現在の時間など様々な情報を格納している
特殊内部出力にバッテリ使用可能残り時間格納用のI/
O番号を設けて年、月、日、時間などの各単位で書き込
む。これにより、ユーザプログラム上でバッテリ使用可
能残り時間を格納している特殊内部出力を使用して、バ
ッテリ残り時間が任意の時間になれば、警告等を出力す
るシーケンスを組むことができる。 (ハ)自動表示切り替え バッテリ使用可能残り時間がまだ多い時には年表示だ
が、時間が少なくなるにつれて月表示,日表示,時間表
示へと自動的に切り替わる。また、『バッテリの交換時
期です』などの文章の表示や音声による警告も行われ
る。
(3) Display of remaining battery usable time will be described. (A) Display on display By using a display with low power consumption, such as a liquid crystal display, the remaining battery life can be displayed even when the PC is not powered. In addition, it is possible to set such that other information is normally displayed and displayed only when the remaining battery available time becomes short. (B) Writing to the special internal output The special internal output which stores various information such as error information and the current time has an I / O for storing the remaining battery available time.
An O number is provided and written in units such as year, month, day, and time. Thus, a sequence for outputting a warning or the like can be formed when the remaining battery time reaches an arbitrary time by using the special internal output storing the remaining battery available time on the user program. (C) Automatic display switching When the remaining battery available time is still large, the year is displayed, but as the time decreases, the display is automatically switched to month display, day display, and time display. In addition, a message such as "It is time to replace the battery" is displayed, and a warning is given by sound.

【0025】[0025]

【発明の効果】以上、詳細に説明した如く、本発明の構
成によれば、ユーザプログラムやデータのバックアップ
などに使用されているバッテリーの使用可能な残り時間
を自動的に算出、表示しユーザに最適なバッテリ交換時
期の情報を提供することができので、突然のバッテリー
エラー発生による予定外の設備停止の防止、バッテリ使
用可能時間実力値の把握やバッテリ交換時期管理の負担
低減できるプログラマブルコントローラを提供すること
ができる。
As described above in detail, according to the configuration of the present invention, the remaining usable time of the battery used for the backup of the user program or data is automatically calculated and displayed and displayed to the user. Provides a programmable controller that can provide information on the optimal battery replacement time, thereby preventing unscheduled equipment stoppage due to sudden battery error occurrence, grasping the actual value of battery usable time, and reducing the burden of battery replacement time management. can do.

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

【図1】本発明の一実施の形態に係るPCのブロック構
成図である。
FIG. 1 is a block diagram of a PC according to an embodiment of the present invention.

【図2】図1のPCにおけるバックアップ用リチウム電
池の放電低下の特性線図である。
FIG. 2 is a characteristic diagram of a reduction in discharge of a backup lithium battery in the PC of FIG. 1;

【図3】バックアップ用リチウム電池の使用時間と端子
電圧の関係線図である。
FIG. 3 is a diagram showing a relationship between a usage time of a backup lithium battery and a terminal voltage.

【図4】図3のバッテリの端子特性線図における放電関
数の近似方法の説明図である。
FIG. 4 is an explanatory diagram of a method of approximating a discharge function in the terminal characteristic diagram of the battery in FIG. 3;

【図5】図1のデータテーブルのデータ構造の説明図で
ある。
FIG. 5 is an explanatory diagram of a data structure of a data table in FIG. 1;

【図6】図1のPCにおける放電関数の近似処理のフロ
チヤートである。
FIG. 6 is a flowchart of approximation processing of a discharge function in the PC of FIG. 1;

【図7】図6の近似処理のサンプリング時間の検索フロ
チヤートである。
FIG. 7 is a flowchart for searching the sampling time in the approximation processing of FIG. 6;

【図8】学習機能によるバッテリの使用可能残時間の算
出方法の説明図である。
FIG. 8 is an explanatory diagram of a method for calculating a remaining battery life by a learning function.

【図9】従来のバッテリの端子電圧の放電特性線図であ
る。
FIG. 9 is a discharge characteristic diagram of a terminal voltage of a conventional battery.

【符号の説明】[Explanation of symbols]

1…バッテリの電圧低下波形、2…バッテリエラーの判
定しきい値、3…バッテリエラー発生点、4…バックア
ップ不可能電圧、5…使用条件が曲線1より悪い場合の
バッテリ電圧低下波形、6…最悪条件下の電圧低下波
形、7…推奨交換時期、8…バッテリ使用期間の実際
値、9…バッテリの使用開始時電圧、10…バッテリ、
11…A/D変換器、12…制御回路、13…カレンダ
時計、14…メモリ、15…データテーブル、16…表
示器、17…バッテリ使用可能な残時間、18…残時間
表示データ、19…通電時のバッテリ電圧波形、20…
未通電時のバッテリ電圧波形、21…現時点のバッテリ
電圧、22…バッテリ使用時間、23…関数値、24…
通電累積時間、25…放電時間、26…電圧低下予測波
形、27…季節調整予測波形、28…関数検索番号、2
9…サンプリング時間、30…放電時間に最も近いサン
プリング時間、31…近似の放電関数、32…現在のバ
ッテリ電圧に最も近い関数値、33…各関数検索番号と
各サンプリング時間に対応した関数値、34…各関数検
索番号と各サンプリング時間に対応したバッテリ使用可
能残時間、35…通電区間、36…未通電区間、37…
通電予測時間、38…未通電予測時間、39…放電関数
により求めたバッテリ残時間、40…既通電/未通電比
率を考慮したバッテリ残時間
1, a battery voltage drop waveform; 2, a battery error determination threshold; 3, a battery error occurrence point; 4, a backup impossible voltage; 5, a battery voltage drop waveform, when use conditions are worse than curve 1; Voltage drop waveform under the worst conditions, 7: recommended replacement time, 8: actual value of battery usage period, 9: battery starting voltage, 10: battery,
11: A / D converter, 12: control circuit, 13: calendar clock, 14: memory, 15: data table, 16: display, 17: remaining battery available time, 18: remaining time display data, 19 ... Battery voltage waveform when energized, 20 ...
Battery voltage waveform when power is not supplied, 21: current battery voltage, 22: battery usage time, 23: function value, 24 ...
Cumulative energization time, 25 discharge time, 26 predicted voltage drop waveform, 27 predicted season adjustment waveform, 28 function search number, 2
9: sampling time, 30: sampling time closest to discharge time, 31: approximate discharge function, 32: function value closest to current battery voltage, 33: function search number and function value corresponding to each sampling time, 34: remaining battery usable time corresponding to each function search number and each sampling time, 35: energized section, 36: non-energized section, 37 ...
Estimated energization time, 38: Estimated non-energization time, 39: Remaining battery time obtained by discharge function, 40: Remaining battery time in consideration of the energized / unenergized ratio

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 FI H04L 29/00 H04L 13/00 T ──────────────────────────────────────────────────の Continued on the front page (51) Int.Cl. 6 Identification code FI H04L 29/00 H04L 13/00 T

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 装着されている電源バッテリーの使用可
能な残時間の算出手段を具備したことを特徴とするプロ
グラマブルコントローラ。
1. A programmable controller, comprising: means for calculating a remaining available time of a mounted power supply battery.
【請求項2】 請求項1記載のプログラマブルコントロ
ーラにおいて、 前記算出手段は、前記電源バッテリーの使用条件の相違
に基づく各放電特性曲線について所定のサンプリング時
間毎のデータを記憶する記憶手段と、所定の放電時間の
直近のサンプリング時間を選定する選定手段と、前記記
憶させたデータの前記直近のサンプリング時間の端子電
圧と前記所定の放電時間の端子電圧との差が最小である
放電特性曲線を選定する選定手段とを具備し、前記選定
された放電特性曲線に基づき電源バッテリーの使用可能
な残時間の算出することを特徴とするプログラマブルコ
ントローラ。
2. The programmable controller according to claim 1, wherein said calculating means stores data for each predetermined sampling time for each discharge characteristic curve based on a difference in use condition of said power supply battery; Selecting means for selecting the latest sampling time of the discharge time; and selecting a discharge characteristic curve in which the difference between the terminal voltage of the stored data for the latest sampling time and the terminal voltage for the predetermined discharge time is minimum. A programmable controller, comprising: selecting means for calculating a remaining usable time of the power supply battery based on the selected discharge characteristic curve.
【請求項3】 請求項2記載のプログラマブルコントロ
ーラにおいて、 前記サンプリング時間の選定手段は、前記所定の放電時
間との差が最小となるようなサンプリング時間を選定す
るようにしたことを特徴とするプログラマブルコントロ
ーラ。
3. The programmable controller according to claim 2, wherein said sampling time selecting means selects a sampling time such that a difference from said predetermined discharge time is minimized. controller.
【請求項4】 請求項1記載のプログラマブルコントロ
ーラにおいて、 前記算出手段に、季節調整機能を付加せしめたことを特
徴とするプログラマブルコントローラ。
4. The programmable controller according to claim 1, wherein a season adjustment function is added to said calculation means.
【請求項5】 請求項1記載のプログラマブルコントロ
ーラにおいて、 前記算出手段に、学習機能を付加せしめたことを特徴と
するプログラマブルコントローラ。
5. The programmable controller according to claim 1, wherein a learning function is added to said calculating means.
【請求項6】 請求項1記載のプログラマブルコントロ
ーラにおいて、 前記算出手段に、年表示または月表示もしくは日表示も
しくは時間表示のいずれかを当該使用可能な残時間に応
じて切替え表示機能を付加せしめたことを特徴とするプ
ログラマブルコントローラ。
6. The programmable controller according to claim 1, wherein the calculating means is provided with a function of switching one of a year display, a month display, a day display and a time display in accordance with the usable remaining time. A programmable controller, characterized in that:
JP24471396A 1996-09-17 1996-09-17 Programable controller Pending JPH1092474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24471396A JPH1092474A (en) 1996-09-17 1996-09-17 Programable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24471396A JPH1092474A (en) 1996-09-17 1996-09-17 Programable controller

Publications (1)

Publication Number Publication Date
JPH1092474A true JPH1092474A (en) 1998-04-10

Family

ID=17122814

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24471396A Pending JPH1092474A (en) 1996-09-17 1996-09-17 Programable controller

Country Status (1)

Country Link
JP (1) JPH1092474A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010019856A (en) * 2009-10-19 2010-01-28 Ntt Facilities Inc Device and method for monitoring secondary battery
JP2013005303A (en) * 2011-06-20 2013-01-07 Denso Wave Inc Portable terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010019856A (en) * 2009-10-19 2010-01-28 Ntt Facilities Inc Device and method for monitoring secondary battery
JP2013005303A (en) * 2011-06-20 2013-01-07 Denso Wave Inc Portable terminal

Similar Documents

Publication Publication Date Title
US5424800A (en) Camera having solar battery and secondary battery
JP3730656B2 (en) Computer and power control method
CA2059177C (en) Battery charge monitor for a personal computer
US20020113575A1 (en) Device and method for displaying charge capacity information of smart battery
EP1435523B1 (en) Method of and apparatus for setting battery alarm voltage in battery management server
JP3932786B2 (en) Battery-driven terminal device and storage medium
CN101939761A (en) Settings control in devices comprising at least two graphics processors
CN101923381A (en) Electronic device, battery remaining time displaying method and computer executable program
US11467651B2 (en) Photodynamic energy electronic label, working method thereof, managing method and managing apparatus thereof
WO2012030328A1 (en) Determination of display device power consumption
US7065664B2 (en) Power management for a PDA system
EP0636897A1 (en) Power managing apparatus and method
US5784295A (en) Method and apparatus for determining residual battery voltage
US6553400B1 (en) Suspend and resume processing method for suspending and resuming a plurality of states of programmed operations
US20030122524A1 (en) Apparatus and method for managing power
JPH1092474A (en) Programable controller
JP2004288087A (en) Information processor
JP2001266252A (en) Electronic shelf tag system
EP0488384A1 (en) Electric power saving device of a portable data terminal and its method
US20070040824A1 (en) Optical energy driven information display device
JP2018044995A (en) Information display device
EP0484757A2 (en) Method and apparatus for controlling power supply
JP3437397B2 (en) Information processing apparatus, battery pack, and method of calculating remaining battery charge of battery pack
JP2002182799A (en) Power supply switching device
JP4972495B2 (en) handy terminal