Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6779032B2 - Gas meter - Google Patents
[go: Go Back, main page]

JP6779032B2 - Gas meter - Google Patents

Gas meter Download PDF

Info

Publication number
JP6779032B2
JP6779032B2 JP2016095345A JP2016095345A JP6779032B2 JP 6779032 B2 JP6779032 B2 JP 6779032B2 JP 2016095345 A JP2016095345 A JP 2016095345A JP 2016095345 A JP2016095345 A JP 2016095345A JP 6779032 B2 JP6779032 B2 JP 6779032B2
Authority
JP
Japan
Prior art keywords
reset
unit
gas meter
learning
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.)
Active
Application number
JP2016095345A
Other languages
Japanese (ja)
Other versions
JP2017203687A (en
Inventor
和史 小貝
和史 小貝
友朋 松浦
友朋 松浦
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.)
Azbil Corp
Original Assignee
Azbil Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Azbil Corp filed Critical Azbil Corp
Priority to JP2016095345A priority Critical patent/JP6779032B2/en
Publication of JP2017203687A publication Critical patent/JP2017203687A/en
Application granted granted Critical
Publication of JP6779032B2 publication Critical patent/JP6779032B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measuring Volume Flow (AREA)

Description

この発明は、CPUのリセットにより再起動した場合に通常動作に復旧する機能を有するガスメータに関するものである。 The present invention relates to a gas meter having a function of restoring normal operation when restarted by resetting a CPU.

従来から、ガスメータは、電源断、ノイズ、ソフトエラー又は故障等が生じると、CPUがリセットする(例えば特許文献1,2参照)。そして、ガスメータは、リセットにより初期状態又はリセット遮断状態となる。なお、リセット遮断状態とは、通常動作に復帰不可であり且つガス止めの状態を指す。初期状態又はリセット遮断状態であるガスメータは、回収され、工場で復旧又は廃棄される。 Conventionally, the CPU of a gas meter is reset when a power failure, noise, soft error, failure, or the like occurs (see, for example, Patent Documents 1 and 2). Then, the gas meter is reset to the initial state or the reset cutoff state. The reset cutoff state refers to a state in which the normal operation cannot be restored and the gas is stopped. Gas meters that are in the initial state or reset cutoff state are collected and restored or discarded at the factory.

特開2006−308445号公報Japanese Unexamined Patent Publication No. 2006-308445 特開2001−255191号公報Japanese Unexamined Patent Publication No. 2001-255191

従来、ガスメータが初期状態又はリセット遮断状態となると、作業員が現場に行き、ガスメータの交換作業を行う必要がある。また、ガスメータの交換作業が終了するまでの間は、ガス止めとなってしまう。一方、深刻な故障の場合にはガスメータを回収すべきであるが、そうでなければ通常動作に復旧することが望まれる。また、リセットにより再起動したガスメータでは、ガスの使用量を示す指針値が失われるため、メカカウンタの設置が必要となる。 Conventionally, when the gas meter is in the initial state or the reset cutoff state, it is necessary for a worker to go to the site and replace the gas meter. In addition, the gas is stopped until the replacement work of the gas meter is completed. On the other hand, in the case of a serious failure, the gas meter should be recovered, but if not, it is desirable to restore it to normal operation. In addition, the gas meter restarted by reset loses the guideline value indicating the amount of gas used, so it is necessary to install a mechanical counter.

この発明は、上記のような課題を解決するためになされたもので、リセットにより再起動した場合に通常動作に復旧することができるガスメータを提供することを目的としている。 The present invention has been made to solve the above problems, and an object of the present invention is to provide a gas meter that can be restored to normal operation when restarted by resetting.

この発明に係るガスメータは、自機が起動した場合に、当該起動がリセットによる再起動であるかを判定するリセット検知部と、リセット検知部によりリセットによる再起動であると判定された場合に、自機に関する履歴データを用いて、当該リセット前の状態を推定して通常動作に復旧する復旧機能部とを備え、履歴データは、指針値、検定後経過時間、遮断弁状態、警告及び学習状態を示すデータを含み、復旧機能部は、リセット検知部によりリセットによる再起動であると判定された場合に、履歴データを用いて、当該リセット前の遮断弁状態及び警告を復旧するセキュリティデータ復旧部と、リセット検知部によりリセットによる再起動であると判定された場合に、履歴データを用いて、当該リセット前の指針値及び検定後経過時間を復旧する計測データ復旧部と、リセット検知部によりリセットによる再起動であると判定された場合に、履歴データに含まれる学習状態を参照し、当該リセット前の学習状態を推定する学習状態推定部と、学習状態推定部による推定結果に基づいて、リセット前の学習状態を復旧する学習状態復旧部とを有し、学習状態復旧部は、リセット前の学習状態が学習途中の状態であった場合には学習開始の状態に戻すものである。 The gas meter according to the present invention has a reset detection unit that determines whether the activation is a restart due to a reset when the own machine is activated, and a reset detection unit that determines that the activation is a restart due to a reset. It is equipped with a recovery function unit that estimates the state before the reset and restores to normal operation using the history data related to the own machine, and the history data is the guideline value, elapsed time after verification, shutoff valve state, warning and learning state. The recovery function unit recovers the shutoff valve state and warning before the reset by using the history data when the reset detection unit determines that the restart is due to the reset. And, when the reset detection unit determines that the restart is due to a reset, the measurement data recovery unit that restores the guideline value before the reset and the elapsed time after the verification using the history data, and the reset detection unit resets. When it is determined that the device is restarted by, the reset is performed based on the learning state estimation unit that estimates the learning state before the reset by referring to the learning state included in the historical data and the estimation result by the learning state estimation unit. It has a learning state recovery unit that restores the previous learning state, and the learning state recovery unit returns to the learning start state when the learning state before reset is in the middle of learning.

この発明によれば、上記のように構成したので、リセットにより再起動した場合に通常動作に復旧することができる。 According to the present invention, since it is configured as described above, it can be restored to the normal operation when it is restarted by resetting.

この発明の実施の形態1に係るガスメータの構成例を示す図である。It is a figure which shows the structural example of the gas meter which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係るガスメータの復旧動作例を示すフローチャートである。It is a flowchart which shows the restoration operation example of the gas meter which concerns on Embodiment 1 of this invention.

以下、この発明の実施の形態について図面を参照しながら詳細に説明する。
実施の形態1.
図1はこの発明の実施の形態1に係るガスメータ1の構成例を示す図である。以下では、ガスメータ1が有する機能のうちの復旧機能についてのみ説明を行う。
ガスメータ1は、復旧機能として、図1に示すように、記憶部101、内部診断部102、リセット検知部103及び復旧機能部104を有している。なお、ガスメータ1のうちの上記各機能部102〜104は、メモリ等に記憶されたプログラムを実行するCPUにより実現される。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
Embodiment 1.
FIG. 1 is a diagram showing a configuration example of a gas meter 1 according to a first embodiment of the present invention. In the following, only the restoration function among the functions of the gas meter 1 will be described.
As shown in FIG. 1, the gas meter 1 has a storage unit 101, an internal diagnosis unit 102, a reset detection unit 103, and a recovery function unit 104 as restoration functions. The functional units 102 to 104 of the gas meter 1 are realized by a CPU that executes a program stored in a memory or the like.

記憶部101は、ガスメータ1に関するデータ(設定値データ及び履歴データ)を記憶するものであり、不揮発性メモリ(フラッシュROM)及び揮発性メモリ(RAM)を有している。 The storage unit 101 stores data (set value data and history data) related to the gas meter 1, and has a non-volatile memory (flash ROM) and a volatile memory (RAM).

ここで、設定値データには、ガスメータ1に関する各種設定値を示すデータが含まれる。この設定値データに含まれる設定値は、ガスメータ1の製造及び出荷時に不揮発性メモリに対して初期値が設定され、また、一部の設定値はガスメータ1が有する学習機能により更新される。また、設定値データには、誤り検出符号が付与されている。 Here, the set value data includes data indicating various set values related to the gas meter 1. Initial values of the set values included in the set value data are set for the non-volatile memory at the time of manufacture and shipment of the gas meter 1, and some set values are updated by the learning function of the gas meter 1. Further, an error detection code is assigned to the set value data.

また、履歴データには、指針値、検定後経過時間、遮断弁状態、警告及び学習機能の状態(学習状態)を示すデータが含まれる。なお、検定後経過時間とは、ガスメータ1の構造及び精度が法令で定める基準に適合しているかどうかを検査する検定を受けてからの経過時間である。また、遮断弁状態には、ガスメータ1に内蔵され、ガスの供給を遮断する遮断弁の開閉状態、及び遮断種別が含まれる。また、遮断種別としては、例えば、合計・増加流量遮断、使用時間遮断、外部センサ遮断、センタ遮断、緊急遮断、テスト遮断・復帰安全漏洩遮断、電池電圧低下遮断、検定有効期間満了遮断が挙げられる。これらの遮断は、通常動作に復帰可能な復帰可能遮断と、通常動作に復帰不可能な復帰不可遮断とに分類することができる。また、警告としては、例えば、電池電圧低下警告、検定有効期間満了警告、遮断異常警告が挙げられる。また、学習機能は、ガスメータ1での消費パターンを学習して設定値の更新を行う機能である。 In addition, the historical data includes data indicating a guideline value, an elapsed time after the test, a shutoff valve state, a warning, and a state of the learning function (learning state). The elapsed time after the certification is the elapsed time after receiving the certification for inspecting whether the structure and accuracy of the gas meter 1 conform to the standards specified by laws and regulations. Further, the shutoff valve state includes an open / closed state of a shutoff valve built in the gas meter 1 that shuts off the gas supply, and a shutoff type. Examples of the blocking type include total / increased flow rate blocking, usage time blocking, external sensor blocking, center blocking, emergency blocking, test blocking / recovery safety leakage blocking, battery voltage drop blocking, and verification validity period expiration blocking. .. These cutoffs can be classified into a recoverable cutoff that can return to normal operation and a non-recoverable cutoff that cannot return to normal operation. Further, examples of the warning include a battery voltage drop warning, a verification validity period expiration warning, and a cutoff abnormality warning. Further, the learning function is a function of learning the consumption pattern in the gas meter 1 and updating the set value.

ここで、遮断弁状態、警告及び学習状態を示すデータは、ガスメータ規格により、変更の度に不揮発性メモリに記憶される。また、指針値及び検定後経過時間を示すデータは、ガスメータ規格により、24時間毎に不揮発性メモリに記憶される。また、ガスメータ1によっては、指針値及び検定後経過時間を示すデータは、揮発性メモリにも定期的(例えば10秒毎)に記憶される。 Here, the data indicating the shutoff valve state, the warning, and the learning state are stored in the non-volatile memory every time the change is made according to the gas meter standard. In addition, the guideline value and the data indicating the elapsed time after the verification are stored in the non-volatile memory every 24 hours according to the gas meter standard. Further, depending on the gas meter 1, data indicating the guideline value and the elapsed time after the verification are periodically stored in the volatile memory (for example, every 10 seconds).

内部診断部102は、記憶部101に記憶されたデータが有効であるかを診断するものである。この際、内部診断部102は、設定値データに付与された誤り検出符号を調べることで、上記データが有効であるかを診断する。そして、内部診断部102は、記憶部101に記憶されたデータが有効ではないと診断した場合には、重大な故障とみなし、ガスメータ1は保安動作(警告又は復帰不可遮断若しくはその両方)を行う。 The internal diagnosis unit 102 diagnoses whether the data stored in the storage unit 101 is valid. At this time, the internal diagnosis unit 102 diagnoses whether or not the above data is valid by examining the error detection code given to the set value data. Then, when the internal diagnosis unit 102 diagnoses that the data stored in the storage unit 101 is not valid, it considers it as a serious failure, and the gas meter 1 performs a safety operation (warning, non-recoverable shutoff, or both). ..

リセット検知部103は、内部診断部102によりデータが有効であると判定された場合に、起動がリセットによる再起動であるかを判定するものである。以下では、リセット検知部103は、記憶部101に履歴データが記憶されているかを判定することで、起動がリセットによる再起動であるかを判定する。すなわち、リセット検知部103は、記憶部101に履歴データが記憶されている場合には、起動がリセットによる再起動であると判定する。一方、リセット検知部103は、記憶部101に履歴データが記憶されていない場合には、起動はリセットによる再起動ではない(初回の起動である)と判定する。 The reset detection unit 103 determines whether the activation is a restart due to a reset when the internal diagnosis unit 102 determines that the data is valid. In the following, the reset detection unit 103 determines whether the history data is stored in the storage unit 101, thereby determining whether the activation is a restart due to a reset. That is, when the history data is stored in the storage unit 101, the reset detection unit 103 determines that the activation is a restart due to a reset. On the other hand, when the history data is not stored in the storage unit 101, the reset detection unit 103 determines that the activation is not a restart due to a reset (it is the first activation).

復旧機能部104は、リセット検知部103によりリセットによる再起動であると判定された場合に、履歴データを用いて、当該リセット前のガスメータ1の状態を推定して通常動作に復旧するものである。以下では、復旧機能部104は、記憶部101に記憶された履歴データを用いるものとする。この復旧機能部104は、図1に示すように、セキュリティデータ復旧部105、計測データ復旧部106、学習状態推定部107及び学習状態復旧部108を有している。 When the reset detection unit 103 determines that the restart is due to a reset, the recovery function unit 104 estimates the state of the gas meter 1 before the reset using the history data and restores the normal operation. .. In the following, the recovery function unit 104 will use the history data stored in the storage unit 101. As shown in FIG. 1, the recovery function unit 104 includes a security data recovery unit 105, a measurement data recovery unit 106, a learning state estimation unit 107, and a learning state recovery unit 108.

セキュリティデータ復旧部105は、リセット検知部103によりリセットによる再起動であると判定された場合に、履歴データを用いて、当該リセット前のガスメータ1の遮断弁状態及び警告を復旧するものである。以下では、セキュリティデータ復旧部105は、記憶部101に記憶された履歴データを用いるものとする。 The security data recovery unit 105 recovers the shutoff valve state and warning of the gas meter 1 before the reset by using the history data when the reset detection unit 103 determines that the restart is due to the reset. In the following, the security data recovery unit 105 will use the history data stored in the storage unit 101.

計測データ復旧部106は、リセット検知部103によりリセットによる再起動であると判定された場合に、履歴データを用いて、当該リセット前のガスメータ1の指針値及び検定後経過時間を復旧するものである。以下では、計測データ復旧部106は、記憶部101に記憶された履歴データを用いるものとする。 The measurement data recovery unit 106 recovers the guideline value of the gas meter 1 before the reset and the elapsed time after the verification by using the history data when the reset detection unit 103 determines that the restart is due to the reset. is there. In the following, it is assumed that the measurement data recovery unit 106 uses the history data stored in the storage unit 101.

学習状態推定部107は、リセット検知部103によりリセットによる再起動であると判定された場合に、履歴データを用いて、当該リセット前のガスメータ1の学習状態を推定するものである。以下では、学習状態推定部107は、記憶部101に記憶された履歴データを用いるものとする。 The learning state estimation unit 107 estimates the learning state of the gas meter 1 before the reset by using the history data when the reset detection unit 103 determines that the restart is due to the reset. In the following, it is assumed that the learning state estimation unit 107 uses the history data stored in the storage unit 101.

学習状態復旧部108は、学習状態推定部107による推定結果に基づいて、リセット前のガスメータ1の学習状態を復旧するものである。この際、学習状態復旧部108は、学習状態推定部107による推定結果に基づいて、安全な学習状態に遷移することで上記復旧を行う。 The learning state recovery unit 108 recovers the learning state of the gas meter 1 before reset based on the estimation result by the learning state estimation unit 107. At this time, the learning state recovery unit 108 performs the above recovery by transitioning to a safe learning state based on the estimation result by the learning state estimation unit 107.

次に、実施の形態1に係るガスメータ1による復旧動作例について、図1,2を参照しながら説明する。なお記憶部101は、ガスメータ1に関するデータ(設定値データ及び履歴データ)を記憶している。
ここで、ガスメータ1は、電池だけで10年等の長期間にわたって動作することが求められる。また、ガスメータ1では、ガスメータ規格により、センタで通信により履歴データを読出しできるように、定期的に不揮発性メモリに書込む必要がある。この履歴データの書込みは、消費電力の増加の面でコストがかかっているが、従来のガスメータでは通信以外で履歴データは利用されていない。そこで、実施の形態1に係るガスメータ1では、この履歴データを用いることで、リセットにより再起動した場合に通常動作に復旧する。
Next, an example of the restoration operation by the gas meter 1 according to the first embodiment will be described with reference to FIGS. 1 and 2. The storage unit 101 stores data (set value data and history data) related to the gas meter 1.
Here, the gas meter 1 is required to operate for a long period of time such as 10 years with only a battery. Further, in the gas meter 1, it is necessary to periodically write in the non-volatile memory so that the history data can be read out by communication at the center according to the gas meter standard. Writing this historical data is costly in terms of increasing power consumption, but conventional gas meters do not use historical data other than communication. Therefore, in the gas meter 1 according to the first embodiment, by using this historical data, the normal operation is restored when the gas meter 1 is restarted by resetting.

このガスメータ1による復旧動作例では、図2に示すように、ガスメータ1が起動すると、内部診断部102は、記憶部101に記憶されたデータが有効であるかを診断する(ステップST201)。この際、内部診断部102は、設定値データの誤り検出符号を調べることで、上記データが有効であるかを診断する。例えば、記憶部101の不揮発性メモリに設定値データが2重に記憶されるガスメータ1では、内部診断部102は、当該2重に記憶された設定値データの両方とも破壊されている場合には、上記データは有効ではないと診断する。 In this recovery operation example by the gas meter 1, as shown in FIG. 2, when the gas meter 1 is activated, the internal diagnosis unit 102 diagnoses whether the data stored in the storage unit 101 is valid (step ST201). At this time, the internal diagnosis unit 102 diagnoses whether the data is valid by examining the error detection code of the set value data. For example, in the gas meter 1 in which the set value data is doubly stored in the non-volatile memory of the storage unit 101, when both the set value data stored in the internal diagnosis unit 102 are destroyed. , Diagnose that the above data is not valid.

このステップST201において、内部診断部102は、記憶部101に記憶されたデータが有効ではないと診断した場合には、重大な故障とみなし、ガスメータ1は保安動作を行う(ステップST202)。その後、シーケンスは終了する。 In this step ST201, if the internal diagnosis unit 102 diagnoses that the data stored in the storage unit 101 is not valid, it considers it as a serious failure, and the gas meter 1 performs a safety operation (step ST202). After that, the sequence ends.

一方、ステップST201において、内部診断部102がデータが有効であると診断した場合、リセット検知部103は、起動がリセットによる再起動であるかを判定する(ステップST203)。この際、リセット検知部103は、記憶部101に履歴データが記憶されているかを判定することで、起動がリセットによる再起動であるかを判定する。なお、履歴データはガスメータ規格により記憶部101に記憶されるため、リセット検知部103による上記判定のために余分なコストはかからない。 On the other hand, when the internal diagnosis unit 102 diagnoses that the data is valid in step ST201, the reset detection unit 103 determines whether the start is a restart due to a reset (step ST203). At this time, the reset detection unit 103 determines whether the history data is stored in the storage unit 101, thereby determining whether the activation is a restart due to a reset. Since the history data is stored in the storage unit 101 according to the gas meter standard, no extra cost is incurred for the determination by the reset detection unit 103.

このステップST203において、リセット検知部103がリセットによる再起動であると判定した場合には、セキュリティデータ復旧部105は、記憶部101に記憶された履歴データを用いて、当該リセット前のガスメータ1の遮断弁状態及び警告を復旧する(ステップST204)。ここで、リセットがパワーオンリセット以外の場合には、揮発性メモリに記憶されたデータは残っている。そのため、この場合には、セキュリティデータ復旧部105は、揮発性メモリに記憶された履歴データを用いてもよい。 If the reset detection unit 103 determines in step ST203 that the restart is due to a reset, the security data recovery unit 105 uses the history data stored in the storage unit 101 to display the gas meter 1 before the reset. The shutoff valve state and warning are restored (step ST204). Here, when the reset is other than the power-on reset, the data stored in the volatile memory remains. Therefore, in this case, the security data recovery unit 105 may use the history data stored in the volatile memory.

ここで、遮断弁状態及び警告を示すデータは変更の度に記憶部101に記憶される。そのため、セキュリティデータ復旧部105において、上記遮断弁状態及び警告を示すデータを参照することで、リセット前のガスメータ1における遮断弁状態及び警告を把握することができる。 Here, the data indicating the shutoff valve state and the warning are stored in the storage unit 101 each time the change is made. Therefore, the security data recovery unit 105 can grasp the shutoff valve state and the warning in the gas meter 1 before the reset by referring to the data indicating the shutoff valve state and the warning.

また、計測データ復旧部106は、記憶部101に記憶された履歴データを用いて、リセット前のガスメータ1の指針値及び検定後経過時間を復旧する(ステップST205)。ここで、リセットがパワーオンリセット以外の場合には、揮発性メモリに記憶されたデータは残っている。そのため、この場合には、計測データ復旧部106は、揮発性メモリに記憶された履歴データを用いてもよい。 Further, the measurement data recovery unit 106 recovers the pointer value of the gas meter 1 before the reset and the elapsed time after the verification by using the history data stored in the storage unit 101 (step ST205). Here, when the reset is other than the power-on reset, the data stored in the volatile memory remains. Therefore, in this case, the measurement data recovery unit 106 may use the history data stored in the volatile memory.

ここで、指針値及び検定後経過時間を示すデータは24時間毎に記憶部101に記憶される。そのため、計測データ復旧部106において、上記指針値及び検定後経過時間を示すデータを参照することで、24時間以内の指針値及び検定後経過時間を把握することができる。
また、指針値及び検定後経過時間を示すデータが揮発性メモリにも定期的(例えば10秒毎)に記憶されている場合であって、パワーオンリセット以外のリセットの場合には、計測データ復旧部106は、この揮発性メモリに記憶されたデータを用いることができる。よって、この場合には、より直近の指針値及び検定後経過時間を把握することができる。
Here, the guideline value and the data indicating the elapsed time after the test are stored in the storage unit 101 every 24 hours. Therefore, the measurement data recovery unit 106 can grasp the guideline value within 24 hours and the elapsed time after the test by referring to the guideline value and the data indicating the elapsed time after the test.
In addition, when the guideline value and the data indicating the elapsed time after the test are periodically stored in the volatile memory (for example, every 10 seconds) and the reset is other than the power-on reset, the measurement data is restored. The unit 106 can use the data stored in the volatile memory. Therefore, in this case, the most recent guideline value and the elapsed time after the test can be grasped.

また、学習状態推定部107は、記憶部101に記憶された履歴データを用いて、リセット前のガスメータ1の学習状態を推定する(ステップST206)。ここで、リセットがパワーオンリセット以外の場合には、揮発性メモリに記憶されたデータは残っている。そのため、この場合には、学習状態推定部107は、揮発性メモリに記憶された履歴データを用いてもよい。これにより、リセット前のガスメータ1の学習状態を把握することができる。 Further, the learning state estimation unit 107 estimates the learning state of the gas meter 1 before reset by using the history data stored in the storage unit 101 (step ST206). Here, when the reset is other than the power-on reset, the data stored in the volatile memory remains. Therefore, in this case, the learning state estimation unit 107 may use the history data stored in the volatile memory. As a result, the learning state of the gas meter 1 before the reset can be grasped.

次いで、学習状態復旧部108は、学習状態推定部107による推定結果に基づいて、リセット前のガスメータ1の学習状態を復旧する(ステップST207)。この際、学習状態復旧部108は、学習状態推定部107による推定結果に基づいて、安全な学習状態に遷移することで上記復旧を行う。 Next, the learning state recovery unit 108 recovers the learning state of the gas meter 1 before the reset based on the estimation result by the learning state estimation unit 107 (step ST207). At this time, the learning state recovery unit 108 performs the above recovery by transitioning to a safe learning state based on the estimation result by the learning state estimation unit 107.

ここで、学習状態を示すデータは変更の度に記憶部101に記憶される。そのため、学習状態推定部107において、履歴データに含まれる学習状態を参照することで、リセット前のガスメータ1の学習状態を推定することができる。しかしながら、全てのデータを履歴データに保存しているわけではないため、当該学習状態と推定結果は完全に一致するわけではない。そこで、学習状態復旧部108では、推定結果に基づき、安全な特定の学習状態に戻して復旧を行う。ここで、特定の学習状態としては、出荷モード(学習モード0)、出荷モード移行モード(学習モード1)、初期学習準備(学習モード2)、本設定(学習モード8)が挙げられる。これらの特定の学習状態は学習を開始する状態であり、学習が進行中ではなく、状態が安定している。特定の学習状態に戻すことで、途中まで進行した学習を再度やり直すため、ガスメータ1の安全が保持される。 Here, the data indicating the learning state is stored in the storage unit 101 each time the change is made. Therefore, the learning state estimation unit 107 can estimate the learning state of the gas meter 1 before reset by referring to the learning state included in the history data. However, since not all the data is stored in the historical data, the learning state and the estimation result do not completely match. Therefore, the learning state recovery unit 108 returns to a safe specific learning state based on the estimation result and recovers. Here, examples of the specific learning state include a shipping mode (learning mode 0), a shipping mode transition mode (learning mode 1), initial learning preparation (learning mode 2), and this setting (learning mode 8). These specific learning states are states in which learning is initiated, learning is not in progress, and the state is stable. By returning to a specific learning state, the learning that has progressed halfway is repeated again, so that the safety of the gas meter 1 is maintained.

例えば、合計流量遮断の増加再学習(学習モードA)中にガスメータ1がリセットした場合、増加再学習では最大流量の定数倍を仮遮断設定値として学習を行うが、復元の際には最大流量と仮遮断設定値はわからない。よって、増加再学習への復元は仮遮断設定値が不明なため不安全であり、学習状態復旧部108は、増加再学習の開始する状態である本設定(学習モード8)にまで戻す。これにより、ガスメータ1は再度学習をやり直し、安全に通常動作を継続することができる。
また、初期学習前期(学習モード3)又は初期学習後期(学習モード4)中にガスメータ1がリセットした場合には、学習状態復旧部108は、初期学習準備(学習モード2)にまで戻す。また、減少再学習(学習モードB)中にガスメータ1がリセットした場合には、学習状態復旧部108は、本設定(学習モード8)にまで戻す。
For example, when the gas meter 1 is reset during the increase relearning (learning mode A) of the total flow rate cutoff, learning is performed with a constant multiple of the maximum flow rate as a temporary cutoff set value in the increase relearning, but the maximum flow rate is restored. I don't know the temporary cutoff setting value. Therefore, restoration to increased relearning is unsafe because the temporary cutoff setting value is unknown, and the learning state recovery unit 108 returns to the main setting (learning mode 8) in which additional relearning is started. As a result, the gas meter 1 can re-learn and safely continue the normal operation.
Further, when the gas meter 1 is reset during the first half of the initial learning (learning mode 3) or the second half of the initial learning (learning mode 4), the learning state recovery unit 108 returns to the initial learning preparation (learning mode 2). Further, when the gas meter 1 is reset during the reduction re-learning (learning mode B), the learning state recovery unit 108 returns to this setting (learning mode 8).

以上のように、この実施の形態1によれば、ガスメータ1が起動した場合に、当該起動がリセットによる再起動であるかを判定するリセット検知部103と、リセット検知部103によりリセットによる再起動であると判定された場合に、ガスメータ1に関する履歴データを用いて、当該リセット前の状態を推定して通常動作に復旧する復旧機能部104とを備えたので、リセットにより再起動した場合に通常動作に復旧することができる。その結果、ガスメータ1の不要な交換及び回収によるコストを削減することができ、その作業に伴う長期間のガス止めを回避することができる。また、指針値は復旧されるため、メカカウンタを設置するコストを削減することができる。 As described above, according to the first embodiment, when the gas meter 1 is started, the reset detection unit 103 that determines whether the start is a restart by reset and the reset detection unit 103 restart by reset. When it is determined that the value is, the recovery function unit 104 that estimates the state before the reset and restores the normal operation by using the historical data related to the gas meter 1 is provided, so that it is normal when the system is restarted by the reset. It can be restored to operation. As a result, it is possible to reduce the cost due to unnecessary replacement and recovery of the gas meter 1, and it is possible to avoid long-term gas stoppage associated with the work. Moreover, since the guideline value is restored, the cost of installing the mechanical counter can be reduced.

なお上記では、リセット検知部103は、記憶部101に履歴データが記憶されているかを判定することで、ガスメータ1の起動がリセットによる再起動であるかを判定する場合を示した。しかしながら、これに限るものではなく、リセット検知部103は、他の方法を用いて、起動がリセットによる再起動であるかを判定してもよい。 In the above description, the reset detection unit 103 shows a case where the reset detection unit 103 determines whether the history data is stored in the storage unit 101 to determine whether the start of the gas meter 1 is a restart due to a reset. However, the present invention is not limited to this, and the reset detection unit 103 may use another method to determine whether the activation is a restart due to a reset.

例えば、ガスメータ1において、主電源とは別系統の電源を用意してSRAMに履歴データを記憶する。そして、リセット検知部103は、SRAMに履歴データが記憶されているかを判定することで、起動がリセットによる再起動であるかを判定してもよい。
また、ガスメータ1が有するリセット機能により、リセットを行う際に当該リセットを行うことを示すデータを記憶部101に記憶する。そして、リセット検知部103は、記憶部101に上記データが記憶されているかを判定することで、起動がリセットによる再起動であるかを判定してもよい。
また、ガスメータ1に接続されて当該ガスメータ1の監視を行うセンタが、ガスメータ1がリセットしたことを通信により検知し、当該検知したことを示すデータを通信によりガスメータ1に通知する。そして、リセット検知部103は、センタからの上記通知により、起動がリセットによる再起動であるかを判定してもよい。
For example, in the gas meter 1, a power source of a system different from the main power source is prepared and historical data is stored in the SRAM. Then, the reset detection unit 103 may determine whether the activation is a restart due to a reset by determining whether the history data is stored in the SRAM.
In addition, the reset function of the gas meter 1 stores data indicating that the reset is to be performed in the storage unit 101 when the reset is performed. Then, the reset detection unit 103 may determine whether the activation is a restart due to a reset by determining whether the data is stored in the storage unit 101.
Further, the center connected to the gas meter 1 and monitoring the gas meter 1 detects that the gas meter 1 has been reset by communication, and notifies the gas meter 1 of the data indicating the detection by communication. Then, the reset detection unit 103 may determine whether the start is a restart due to a reset by the above notification from the center.

また上記では、復旧機能部104は、記憶部101に記憶された履歴データを用いてガスメータ1の復旧を行う場合を示した。しかしながら、これに限るものではなく、復旧機能部104は、他の方法を用いて復旧を行うようにしてもよい。 Further, in the above, the recovery function unit 104 shows a case where the gas meter 1 is restored by using the history data stored in the storage unit 101. However, the present invention is not limited to this, and the restoration function unit 104 may perform restoration by using another method.

例えば、ガスメータ1において、主電源とは別系統の電源を用意してSRAMに履歴データを記憶する。そして、復旧機能部104は、SRAMに記憶された履歴データを用いて復旧を行うようにしてもよい。
また、ガスメータ1が有するリセット機能により、リセットを行う際に記憶部101上の履歴データをストアし、復旧機能部104は当該ストアされた履歴データを用いて復旧を行うようにしてもよい。
また、ガスメータ1に接続されたセンタが、ガスメータ1から履歴データを通信により受信して記憶し、ガスメータ1がリセットして再起動した場合に、記憶している履歴データを復旧命令とともに通信によりガスメータ1に通知する。そして、復旧機能部104は、センタからの上記通知により、受信した履歴データを用いて復旧を行うようにしてもよい。
For example, in the gas meter 1, a power source of a system different from the main power source is prepared and historical data is stored in the SRAM. Then, the recovery function unit 104 may perform recovery using the history data stored in the SRAM.
Further, the reset function of the gas meter 1 may store the history data on the storage unit 101 at the time of resetting, and the recovery function unit 104 may perform recovery using the stored history data.
Further, when the center connected to the gas meter 1 receives and stores the history data from the gas meter 1 by communication and the gas meter 1 is reset and restarted, the stored history data is stored in the gas meter by communication together with the recovery command. Notify 1. Then, the recovery function unit 104 may perform recovery using the received history data according to the above notification from the center.

また、本願発明はその発明の範囲内において、実施の形態の任意の構成要素の変形、もしくは実施の形態の任意の構成要素の省略が可能である。 Further, in the present invention, within the scope of the invention, it is possible to modify any component of the embodiment or omit any component of the embodiment.

1 ガスメータ
101 記憶部
102 内部診断部
103 リセット検知部
104 復旧機能部
105 セキュリティデータ復旧部
106 計測データ復旧部
107 学習状態推定部
108 学習状態復旧部
1 Gas meter 101 Storage unit 102 Internal diagnosis unit 103 Reset detection unit 104 Recovery function unit 105 Security data recovery unit 106 Measurement data recovery unit 107 Learning state estimation unit 108 Learning state recovery unit

Claims (2)

自機が起動した場合に、当該起動がリセットによる再起動であるかを判定するリセット検知部と、
前記リセット検知部によりリセットによる再起動であると判定された場合に、自機に関する履歴データを用いて、当該リセット前の状態を推定して通常動作に復旧する復旧機能部とを備え、
前記履歴データは、指針値、検定後経過時間、遮断弁状態、警告及び学習状態を示すデータを含み、
前記復旧機能部は、
前記リセット検知部によりリセットによる再起動であると判定された場合に、前記履歴データを用いて、当該リセット前の遮断弁状態及び警告を復旧するセキュリティデータ復旧部と、
前記リセット検知部によりリセットによる再起動であると判定された場合に、前記履歴データを用いて、当該リセット前の指針値及び検定後経過時間を復旧する計測データ復旧部と、
前記リセット検知部によりリセットによる再起動であると判定された場合に、前記履歴データに含まれる学習状態を参照し、当該リセット前の学習状態を推定する学習状態推定部と、
前記学習状態推定部による推定結果に基づいて、前記リセット前の学習状態を復旧する学習状態復旧部とを有し、
前記学習状態復旧部は、前記リセット前の学習状態が学習途中の状態であった場合には学習開始の状態に戻す
ことを特徴とするガスメータ。
When the own machine starts, a reset detector that determines whether the start is a restart due to a reset, and
When the reset detection unit determines that the restart is due to a reset, it is provided with a recovery function unit that estimates the state before the reset and restores the normal operation by using the history data related to the own machine.
The historical data includes data indicating a guideline value, an elapsed time after the test, a shutoff valve state, a warning, and a learning state.
The recovery function unit
When the reset detection unit determines that the restart is due to a reset, the security data recovery unit recovers the shutoff valve state and warning before the reset using the history data.
When the reset detection unit determines that the restart is due to a reset, the measurement data recovery unit that recovers the guideline value before the reset and the elapsed time after the verification using the history data.
A learning state estimation unit that estimates the learning state before the reset by referring to the learning state included in the history data when the reset detection unit determines that the restart is due to a reset.
It has a learning state recovery unit that restores the learning state before the reset based on the estimation result by the learning state estimation unit.
The learning state recovery unit is a gas meter characterized by returning to a learning start state when the learning state before the reset is in the middle of learning.
前記履歴データを記憶する記憶部を備え、
前記リセット検知部は、前記記憶部に前記履歴データが記憶されているかを判定することで、前記起動がリセットによる再起動であるかを判定し、
前記復旧機能部は、前記記憶部に記憶された前記履歴データを用いる
ことを特徴とする請求項1記載のガスメータ。
A storage unit for storing the history data is provided.
The reset detection unit determines whether the history data is stored in the storage unit, thereby determining whether the activation is a restart due to a reset.
The gas meter according to claim 1, wherein the recovery function unit uses the history data stored in the storage unit.
JP2016095345A 2016-05-11 2016-05-11 Gas meter Active JP6779032B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016095345A JP6779032B2 (en) 2016-05-11 2016-05-11 Gas meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016095345A JP6779032B2 (en) 2016-05-11 2016-05-11 Gas meter

Publications (2)

Publication Number Publication Date
JP2017203687A JP2017203687A (en) 2017-11-16
JP6779032B2 true JP6779032B2 (en) 2020-11-04

Family

ID=60322184

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016095345A Active JP6779032B2 (en) 2016-05-11 2016-05-11 Gas meter

Country Status (1)

Country Link
JP (1) JP6779032B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019196998A (en) * 2018-05-10 2019-11-14 アズビル株式会社 Gas meter and monitoring method of gas meter
JP2020009001A (en) * 2018-07-04 2020-01-16 アズビル金門株式会社 Output terminal abnormality determination device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3642663B2 (en) * 1997-09-12 2005-04-27 東邦瓦斯株式会社 Gas meter controller
JP3381835B2 (en) * 1997-10-20 2003-03-04 矢崎総業株式会社 Electronic gas meter
JP3368891B2 (en) * 2000-11-17 2003-01-20 松下電器産業株式会社 Flowmeter
JP4163168B2 (en) * 2004-10-20 2008-10-08 松下電器産業株式会社 Gas shut-off device
US8639464B2 (en) * 2008-01-18 2014-01-28 Dresser, Inc. Flow meter diagnostic processing
US20100206386A1 (en) * 2009-02-19 2010-08-19 Crucs Holdings, Llc Apparatus and method for automatically disabling utilities

Also Published As

Publication number Publication date
JP2017203687A (en) 2017-11-16

Similar Documents

Publication Publication Date Title
JP4345860B2 (en) Vehicle memory management device
CN108062259B (en) MCU internal data storage ECC processing system and processing method thereof
CN205881469U (en) Fault detection equipment of electronic equipment and memory that is used for having a plurality of memory locations of standing transient fault and permanent fault
KR101557572B1 (en) Memory circuits, method for accessing a memory and method for repairing a memory
JP2014035730A (en) Vehicle control device
CN105528308A (en) Power failure processing method and device and electronic apparatus
JP6779032B2 (en) Gas meter
CN113917385A (en) Self-detection method and system for electric energy meter
CN105093244A (en) GNSS real time orbital determination system and orbital determination method
JP4513852B2 (en) PCI bus failure recovery method and program
CN101916216B (en) Device and control method for automatically repairing BOOTROM in embedded operating system
JP5962697B2 (en) Electronic control unit
TWI431535B (en) Device for checking energy received by an antenna for preventing data corruption during a write operation in a non volatile transponder memory
CN101526908B (en) Firmware update device and method
CN106020012A (en) Numerical controller
CN111008099B (en) Self-diagnosis system and method thereof
JP6767078B2 (en) Anomaly detection device and abnormality detection method
US8145951B2 (en) Control device
JP2009506445A (en) Storage device configuration and driving method thereof
EP3540533B1 (en) Controller and data storage method
JP2017007539A (en) Control device
CN113760605A (en) Method for realizing power failure, power on, electric appliance and ground communication re-recovery of whole deep space detector
CN121050665B (en) Data storage method, device, equipment, medium and product
JP2013065261A (en) Memory management device
JPWO2016013247A1 (en) Weighing device and weighing data recording method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190311

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200116

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200121

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200304

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200630

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200807

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20200807

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: 20200915

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201013

R150 Certificate of patent or registration of utility model

Ref document number: 6779032

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250