JP6037937B2 - Gas shut-off device - Google Patents

Gas shut-off device Download PDF

Info

Publication number
JP6037937B2
JP6037937B2 JP2013107913A JP2013107913A JP6037937B2 JP 6037937 B2 JP6037937 B2 JP 6037937B2 JP 2013107913 A JP2013107913 A JP 2013107913A JP 2013107913 A JP2013107913 A JP 2013107913A JP 6037937 B2 JP6037937 B2 JP 6037937B2
Authority
JP
Japan
Prior art keywords
signal
positive
starting point
negative
value
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
JP2013107913A
Other languages
Japanese (ja)
Other versions
JP2014228379A (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.)
Panasonic Corp
Tokyo Gas Co Ltd
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Tokyo Gas Co Ltd
Matsushita Electric Industrial 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 Panasonic Corp, Tokyo Gas Co Ltd, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP2013107913A priority Critical patent/JP6037937B2/en
Publication of JP2014228379A publication Critical patent/JP2014228379A/en
Application granted granted Critical
Publication of JP6037937B2 publication Critical patent/JP6037937B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measuring Volume Flow (AREA)
  • Regulation And Control Of Combustion (AREA)
  • Feeding And Controlling Fuel (AREA)

Description

本発明はガス遮断装置の流量計測において、流量を計測している流れが正流方向・逆流方向に切替わる時に発生する計量誤差の発生を防止するためのものである。   The present invention is intended to prevent the occurrence of a measurement error that occurs when the flow whose flow rate is being measured is switched between the forward flow direction and the reverse flow direction in the flow rate measurement of the gas shut-off device.

従来、この種のガス遮断装置として、計量部(流量入力部)が膜により構成されたものにおける脈動等に起因する指針値のズレを防止しようとするものがあるが、これは磁石とリードスイッチで構成された流量検出部において、脈動によるリードスイッチの所謂チャタリングによる誤検知を防止しようとするもので、逆流方向の流量を検出する構成は開示されていない(例えば、特許文献1参照)。   Conventionally, as this type of gas shut-off device, there is one that tries to prevent the deviation of the pointer value due to pulsation or the like in a measuring part (flow rate input part) constituted by a membrane. In the flow rate detection unit configured as described above, there is no disclosure of a configuration for detecting the flow rate in the reverse flow direction in order to prevent erroneous detection due to so-called chattering of the reed switch due to pulsation (see, for example, Patent Document 1).

一方、逆流方向の流量を考慮した補正方法が開示されたものがある(例えば、特許文献2参照)。   On the other hand, there has been disclosed a correction method in consideration of the flow rate in the reverse flow direction (see, for example, Patent Document 2).

図5は、特許文献2に記載された従来のガス遮断装置のブロック図を示すものである。   FIG. 5 shows a block diagram of a conventional gas shut-off device described in Patent Document 2. As shown in FIG.

図5に示すように、従来のガス遮断装置は流量入力部1、流量演算部2、第1バッファ3、第2バッファ4、指針値保持部5から構成され、以下にその役割を記載する。   As shown in FIG. 5, the conventional gas shut-off device is composed of a flow rate input unit 1, a flow rate calculation unit 2, a first buffer 3, a second buffer 4, and a pointer value holding unit 5, the role of which will be described below.

なお、ガス遮断装置の特徴である流量演算部2から流量値信号bを取得して予め保持している判定値(例えば、ガスが大量に漏れた時の判定値等)と流量値信号bを比較し異常の有無(例えば、判定値を越えているか否か)を判定する異常判定部や、異常判定部で異常と判定したときにガス通路を閉栓する弁は本願の記載からは割愛する。   In addition, the flow rate value signal b is acquired from the flow rate calculation unit 2 which is a characteristic of the gas shut-off device, and a determination value (for example, a determination value when a large amount of gas leaks) and the flow rate value signal b are stored in advance. An abnormality determination unit that determines the presence or absence of an abnormality (for example, whether a determination value is exceeded) or a valve that closes the gas passage when the abnormality determination unit determines that there is an abnormality is omitted from the description of the present application.

流量入力部1はガス通路内を通過するガス流量に対応した流量信号aを出力し、流量演算部2は流量入力部1の流量信号aを用いて流量値信号bを算出して出力する。   The flow rate input unit 1 outputs a flow rate signal a corresponding to the gas flow rate passing through the gas passage, and the flow rate calculation unit 2 calculates and outputs a flow rate value signal b using the flow rate signal a of the flow rate input unit 1.

第1バッファ3は、それまで保持していたカウンタ値に流量演算部2の流量値信号bを加減算し、カウンタ値と流量値信号bの合計値が所定の積算桁上げ値以上に達すると積算値のカウントアップを行い積算値信号eを出力すると共に、積算桁上げ値を越えた剰余の値を剰余信号cとして出力したあと切り捨ててカウンタ値をクリアする。   The first buffer 3 adds / subtracts the flow value signal b of the flow rate calculation unit 2 to / from the counter value held so far, and integrates when the total value of the counter value and the flow value signal b reaches or exceeds a predetermined integrated carry value. The count value is counted up and the integrated value signal e is output, and the remainder value exceeding the integrated carry value is output as the remainder signal c and then rounded down to clear the counter value.

第2バッファ4は、第1バッファ3の剰余信号cを受け取ると今まで保持していた剰余の値に新たに取得した剰余の値を加算して保持し、所定のタイミングで剰余加算信号dを出力して第1バッファ3のカウンタに加算する。   When the second buffer 4 receives the remainder signal c of the first buffer 3, the second buffer 4 adds and holds the newly acquired remainder value to the remainder value held so far, and the remainder addition signal d is received at a predetermined timing. It is output and added to the counter of the first buffer 3.

指針値保持部5は、第1バッファ3の積算値信号eを受け取ると、カウントアップした積算値を保持し直してLCD等の表示素子を用いて指針値(=積算値)を表示するように構成されている。   When the pointer value holding unit 5 receives the integrated value signal e of the first buffer 3, the pointer value holding unit 5 holds the counted up integrated value again and displays the pointer value (= integrated value) using a display element such as an LCD. It is configured.

また、他の誤差発生の防止方法として、定期的に正流方向・逆流方向の流量を一時的にストックし相殺する構成もある(例えば、特許文献3参照)。   As another method for preventing the occurrence of errors, there is a configuration in which the flow rates in the forward flow direction and the reverse flow direction are temporarily stocked and offset periodically (see, for example, Patent Document 3).

特開2005−55339号公報JP 2005-55339 A 特許第3781949号公報Japanese Patent No. 3781949 特許第3344846号公報Japanese Patent No. 3344844

計量部(流量入力部)が膜により構成されたものは、膜の往復運動をリンク機構等を用いて回転運動に変換し、例えば、図6に記載したように回転運動する機構部に配置した磁石の位置をリードスイッチで検出するように構成されており、リードスイッチのオンの度に所定の計量単位の加算を行うようになっている。   In the case where the measuring unit (flow rate input unit) is configured by a membrane, the reciprocating motion of the membrane is converted into a rotational motion using a link mechanism or the like, and, for example, disposed in a mechanical portion that rotates as shown in FIG. The position of the magnet is configured to be detected by a reed switch, and a predetermined unit of measurement is added each time the reed switch is turned on.

この構成において、ガスの通過量は、楕円軌道の軌跡で移動する磁石によりオン・オフするリードスイッチの入力にて、1回転、すなわちオンからオフとなり次のオンを判定するまで、を検出しないと計量ができない。   In this configuration, the gas passage amount must be detected until one turn, that is, from on to off and the next on is determined by the input of the reed switch that is turned on and off by the magnet moving along the locus of the elliptical orbit. Cannot measure.

さらに、計量部(流量入力部)が膜で構成されている場合は、図6に記載したようにオン範囲中やオフ範囲中はガスが流れていてもオン・オフの状態が変わらないので、ガスが流れているか否かが判らないため、瞬間的なガス流量を検出することはできず、ガスが流れているか否かはリードスイッチのオン・オフの状態が変化するまでは判断できない。   Furthermore, when the metering unit (flow rate input unit) is configured with a membrane, the on / off state does not change even if gas is flowing during the on-range or off-range as shown in FIG. Since it is not known whether or not gas is flowing, the instantaneous gas flow rate cannot be detected, and whether or not gas is flowing cannot be determined until the on / off state of the reed switch is changed.

従って、膜で計量部を構成したガス流量計において、逆流方向の流量が発生するような場合、特許文献2に記載された正流方向の流量によるバッファリングを行う構成や、特許文献3に記載された定期的に瞬時流量を計測して、相殺バッファを補正することを前提とした構成を適用することは困難であり、実流量と指針値との誤差発生を解消できないという課題があった。   Therefore, in the gas flow meter in which the metering unit is configured with a membrane, when a flow rate in the reverse flow direction is generated, a configuration in which buffering is performed with a flow rate in the forward flow direction described in Patent Document 2, or Patent Document 3 describes. Therefore, it is difficult to apply a configuration based on the assumption that the instantaneous flow rate is periodically measured and the canceling buffer is corrected, and there is a problem that an error between the actual flow rate and the guideline value cannot be eliminated.

本発明は、前記従来の課題を解決するもので、膜を計量部としかつ正流方向・逆流方向の流量が発生するような場合においても指針値に誤差が発生しないガス遮断装置を提供することを目的とする。   The present invention solves the above-mentioned conventional problems, and provides a gas shut-off device in which an error does not occur in a pointer value even when a membrane is used as a measuring portion and a flow rate in the forward flow direction and the reverse flow direction is generated. With the goal.

前記従来の課題を解決するために、本発明のガス遮断装置は、ガス通路内を通過するガス流量に基づいた複数のパルス信号を流量信号として出力する流量検出部と、前記流量信号に基づき前記ガス流量の正逆方向を判定し、逆流方向であれば負パルス信号を、正流方向であれば正パルス信号を出力する正逆判定部と、前記複数のパルス信号のHi,Loの組み合わせが所定の組み合わせとなる状態を起点とするとき、前記負パルス信号をカウントし、逆流方向側の起点に到達したときに負処理要求信号を出力し、さらに前記逆流方向側の起点を超えたときに負起点越え信号を出力し、負クリア信号を受け取ると前記負起点越え信号の出力を停止する負パルス判定部と、前記負処理要求信号を受け取ると、正起点越え信号がない場合には減算信号を出力し、前記正起点越え信号の有無に係わらず正クリア信号を出力する負要求判定部と、前記正パルス信号をカウントし、正流方向側の起点に到達したときに正処理要求信号を出力し、さらに前記正流方向側の起点を超えたときに前記正起点越え信号を出力し、前記正クリア信号を受け取ると前記正起点越え信号の出力を停止する正パルス判定部と、前記正処理要求信号を受け取ると、前記負起点越え信号がない場合には加算信号を出力し、前記負起点越え信号の有無に係わらず前記負クリア信号を出力する正要求判定部と、前記減算信号を受け取ると現在保持しているバッファ値から予め定められた第1の所定量を減算して新たなバッファ値として保持し、前記加算信号を受け取ると現在保持しているバッファ値に予め定められた第2の所定量を加算して新たなバッファ値として保持し、加算後のバッファ値が予め定めていた積算単位値を越えたときにバッファオーバ信号を出力して加算後のバッファ値から前記積算単位値を差し引いて新たなバッファ値として保持し直すバッファ部と、前記バッファオーバ信号を受け取ると現在保持している指針値に前記積算単位値を加算して新たな指針値として保持する指針値保持部と、を備えたものである。   In order to solve the conventional problem, the gas shutoff device of the present invention includes a flow rate detection unit that outputs a plurality of pulse signals based on a gas flow rate passing through a gas passage as a flow rate signal, and the flow rate signal based on the flow rate signal. A combination of Hi and Lo of the plurality of pulse signals and a forward / reverse determination unit that determines the forward / reverse direction of the gas flow rate and outputs a negative pulse signal if the flow direction is reverse, or a positive pulse signal if the flow direction is positive. When starting from a state that is a predetermined combination, the negative pulse signal is counted, a negative processing request signal is output when the starting point on the backflow direction side is reached, and further when the starting point on the backflow direction side is exceeded When a negative origin determination signal is output and a negative clear signal is received, a negative pulse determination unit that stops outputting the negative origin point excess signal, and when the negative processing request signal is received, when there is no positive origin point excess signal, a subtraction signal is output. A negative request determination unit that outputs a positive clear signal regardless of the presence or absence of the positive origin point signal and a positive processing request signal when the positive pulse signal is counted and the origin point on the positive flow direction side is reached. A positive pulse determining unit that outputs the positive starting point exceeding signal when the positive starting point is exceeded and further receives the positive clear signal, and the positive pulse determining unit stops the output of the positive starting point exceeding signal. When the processing request signal is received, an addition signal is output when there is no signal exceeding the negative starting point, and a positive request determining unit that outputs the negative clear signal regardless of the presence or absence of the negative starting point exceeding signal, and the subtraction signal When received, the first predetermined amount determined in advance is subtracted from the currently held buffer value and held as a new buffer value, and when the addition signal is received, the buffer value currently held is set to a predetermined value. 2 A predetermined amount is added and held as a new buffer value, and when the buffer value after addition exceeds a predetermined integration unit value, a buffer over signal is output to calculate the integration unit value from the buffer value after addition. A buffer unit for subtracting and re-holding as a new buffer value; a pointer value holding unit for adding the integration unit value to the currently held pointer value when the buffer over signal is received and holding it as a new pointer value; It is equipped with.

これによれば、単に起点到達時にバッファ部の加減算を実施することを防止できるため、例えば、供給ガスの圧力変動に伴う脈動で起点を挟んで流量信号が行き来するような状態が発生しても第1の所定量と第2の所定量の差が蓄積されることを防止し、かつ減算のみ・加算のみを繰り返すことも防止することができるようになる。   According to this, since addition / subtraction of the buffer unit can be prevented simply when the starting point is reached, for example, even when a state occurs in which the flow rate signal goes back and forth across the starting point due to pulsation accompanying the pressure fluctuation of the supply gas. It is possible to prevent the difference between the first predetermined amount and the second predetermined amount from being accumulated, and to prevent only subtraction / addition from being repeated.

本発明のガス遮断装置は、逆流方向の流量を伴う瞬時流量を計測できない膜式であっても単純に起点到達時にバッファ部の加減算を実施することを防止してバッファ部のバッファ値を適正化できるようになるため、実流量値と指針値のズレを防止して指針値の精度を向上させることができる。   The gas shutoff device of the present invention optimizes the buffer value of the buffer unit by simply preventing the addition and subtraction of the buffer unit when the starting point is reached even if it is a membrane type that cannot measure the instantaneous flow rate with the flow rate in the reverse flow direction As a result, the deviation of the actual flow rate value and the guide value can be prevented and the accuracy of the guide value can be improved.

本発明の実施の形態1におけるガス遮断装置の機能ブロック図Functional block diagram of the gas cutoff device in Embodiment 1 of the present invention 本発明の実施の形態1におけるプログラム動作を示すフローチャートThe flowchart which shows the program operation | movement in Embodiment 1 of this invention. (1)本発明の実施の形態1における流量信号の起点と状態の関係を示す図、(2)同、正逆方向の判断を説明する図、(3)同、動作説明のための図(1) The figure which shows the relationship between the origin and state of the flow signal in Embodiment 1 of this invention, (2) The figure explaining the judgment of the same and reverse direction, (3) The figure for operation | movement description 本発明の実施の形態1において3つのパルス信号を用いる際のセンサ出力判定の起点と状態の関係を示す図The figure which shows the relationship between the origin and state of sensor output determination at the time of using three pulse signals in Embodiment 1 of this invention. 従来のガス遮断装置の機能ブロック図Functional block diagram of a conventional gas shut-off device リードスイッチと磁石による流量信号の取り出し方法を示す概念図Conceptual diagram showing how to extract a flow signal using a reed switch and magnet

第1の発明は、ガス通路内を通過するガス流量に基づいた複数のパルス信号を流量信号として出力する流量検出部と、前記流量信号に基づき前記ガス流量の正逆方向を判定し、逆流方向であれば負パルス信号を、正流方向であれば正パルス信号を出力する正逆判定部と、前記複数のパルス信号のHi,Loの組み合わせが所定の組み合わせとなる状態を起点とするとき、前記負パルス信号をカウントし、逆流方向側の起点に到達したときに負処理要求信号を出力し、さらに前記逆流方向側の起点を超えたときに負起点越え信号を出力し、負クリア信号を受け取ると前記負起点越え信号の出力を停止する負パルス判定部と、前記負処理要求信号を受け取ると、正起点越え信号がない場合には減算信号を出力し、前記正起点越え信号の有無に係わらず正クリア信号を出力する負要求判定部と、前記正パルス信号をカウントし、正流方向側の起点に到達したときに正処理要求信号を出力し、さらに前記正流方向側の起点を超えたときに前記正起点越え信号を出力し、前記正クリア信号を受け取ると前記正起点越え信号の出力を停止する正パルス判定部と、前記正処理要求信号を受け取ると、前記負起点越え信号がない場合には加算信号を出力し、前記負起点越え信号の有無に係わらず前記負クリア信号を出力する正要求判定部と、前記減算信号を受け取ると現在保持しているバッファ値から予め定められた第1の所定量を減算して新たなバッファ値として保持し、前記加算信号を受け取ると現在保持しているバッファ値に予め定められた第2の所定量を加算して新たなバッファ値として保持し、加算後のバッファ値が予め定めていた積算単位値を越えたときにバッファオーバ信号を出力して加算後のバッファ値から前記積算単位値を差し引いて新たなバッファ値として保持し直すバッファ部と、前記バッファオーバ信号を受け取ると現在保持している指針値に前記積算単位値を加算して新たな指針値として保持する指針値保持部と、を備えたものである。   According to a first aspect of the present invention, a flow rate detection unit that outputs a plurality of pulse signals based on a gas flow rate passing through the gas passage as a flow rate signal, a forward / reverse direction of the gas flow rate is determined based on the flow rate signal, and a reverse flow direction If the starting point is a state in which the combination of the Hi and Lo of the plurality of pulse signals is a predetermined combination with a forward / reverse determination unit that outputs a negative pulse signal if it is a positive flow direction, The negative pulse signal is counted, a negative processing request signal is output when the starting point on the reverse flow direction side is reached, a negative starting point excess signal is output when the starting point on the reverse flow direction side is exceeded, and a negative clear signal is output. When receiving the negative pulse determination unit that stops the output of the negative starting point exceeding signal and the negative processing request signal, when there is no positive starting point exceeding signal, a subtraction signal is output, and the presence of the positive starting point exceeding signal is determined. Engagement First, a negative request determination unit that outputs a positive clear signal, counts the positive pulse signal, outputs a positive processing request signal when reaching the starting point on the positive flow direction side, and further exceeds the starting point on the positive flow direction side When the positive start point exceeded signal is output and when the positive clear signal is received, the positive pulse determination unit stops outputting the positive start point exceeded signal, and when the positive processing request signal is received, the negative start point exceeded signal is If not, a positive request determination unit that outputs an addition signal and outputs the negative clear signal regardless of the presence or absence of the negative start point signal, and a buffer value currently held when the subtraction signal is received is predetermined. The first predetermined amount is subtracted and held as a new buffer value. When the addition signal is received, a predetermined second predetermined amount is added to the currently held buffer value to obtain a new buffer value. Protection A buffer unit that outputs a buffer over signal when the buffer value after addition exceeds a predetermined integration unit value, subtracts the integration unit value from the buffer value after addition, and retains it as a new buffer value. And a pointer value holding unit that adds the integrated unit value to the currently held pointer value and holds it as a new pointer value when the buffer over signal is received.

これによれば、起点を超えたか否かで前記バッファ部のバッファ値の減算または加算の有無を判定してバッファ値の更新を行うことでガス流量と指針値のズレを防止し指針値の精度を向上させることができる。   According to this, it is determined whether or not the buffer value of the buffer unit is subtracted or added depending on whether or not the starting point has been exceeded, and the buffer value is updated to prevent the gas flow rate and the pointer value from being shifted, and the accuracy of the pointer value Can be improved.

以下、本発明の実施の形態について、図面を参照しながら説明する。なお、この実施の形態によって本発明が限定されるものではない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. Note that the present invention is not limited to the embodiments.

(実施の形態1)
図1は、本発明の実施の形態1におけるガス遮断装置の機能ブロック図を示すものである。図2は、動作を説明するためのフローチャート、図3は、2つのセンサからのパルス信号を用いる際のセンサ出力(流量信号)の状態と、流量の演算方法を説明するための図である。
(Embodiment 1)
FIG. 1 shows a functional block diagram of a gas cutoff device in Embodiment 1 of the present invention. FIG. 2 is a flowchart for explaining the operation, and FIG. 3 is a diagram for explaining the state of the sensor output (flow rate signal) when using the pulse signals from the two sensors and the calculation method of the flow rate.

図1に示すように、本実施の形態のガス遮断装置は流量検出部21、正逆判定部22、負パルス判定部23、負要求判定部24、正パルス判定部25、正要求判定部26、バッファ部27、指針値保持部28、流量演算部31、異常判定部32、弁33とから構成され、以下にその役割を記載する。   As shown in FIG. 1, the gas cutoff device of the present embodiment includes a flow rate detection unit 21, a forward / reverse determination unit 22, a negative pulse determination unit 23, a negative request determination unit 24, a positive pulse determination unit 25, and a positive request determination unit 26. The buffer unit 27, the pointer value holding unit 28, the flow rate calculation unit 31, the abnormality determination unit 32, and the valve 33 are described below.

なお、ガス遮断装置内には制御基板(図中には記載はない)が内蔵され、制御基板内のマイコン(図中には記載はない)が上記構成の各入出力や各判定を実施している。なお電源としては電池を用いている。   In addition, a control board (not shown in the figure) is built in the gas shut-off device, and a microcomputer (not shown in the figure) in the control board performs each input / output and each judgment of the above configuration. ing. A battery is used as the power source.

流量検出部21は、ガス通路内を通過するガスの流量を、その流量に応じて往復運動する膜の動きを磁石とMRセンサで検出することにより計測する。そして、検出したパルス信号をガス流量に基づいた流量信号Aとして出力する。   The flow rate detector 21 measures the flow rate of the gas passing through the gas passage by detecting the movement of the film that reciprocates according to the flow rate using a magnet and an MR sensor. The detected pulse signal is output as a flow rate signal A based on the gas flow rate.

本実施の形態において、流量検出部21は、2つのMRセンサ(センサA,センサB)を用いている。MRセンサは、膜の往復運動に連動して回転運動する機構部に配置された磁石の位置に応じた2つのパルス信号を流量信号Aとして検出する。流量信号Aは、図3(1)に示すように、MRセンサのセンサA、センサBにより検出された2つのパルス波形の信号(パルス信号)で構成される。   In the present embodiment, the flow rate detection unit 21 uses two MR sensors (sensor A and sensor B). The MR sensor detects, as the flow signal A, two pulse signals corresponding to the positions of magnets arranged in a mechanism that rotates in conjunction with the reciprocating motion of the film. As shown in FIG. 3A, the flow signal A is composed of two pulse waveform signals (pulse signals) detected by the sensors A and B of the MR sensor.

また、図3(1)及び(3)において、分割Noは、複数のパルス波形の状態に対応して流量信号Aを分割し、分割した部分(分割)に対して順番に付与した番号である。本実施の形態では2つのセンサ(センサA,B)のパルス出力が1/4周期だけ位相をずらした構成としており、1/4周期毎に流量信号Aは分割されている。   3 (1) and 3 (3), the division number is a number assigned to the divided portion (division) in order by dividing the flow signal A corresponding to the state of a plurality of pulse waveforms. . In the present embodiment, the pulse outputs of the two sensors (sensors A and B) are configured to be shifted in phase by a quarter period, and the flow rate signal A is divided every quarter period.

また、起点として示すA〜Fは、2つのパルス出力(パルス信号のHi(high)、Lo(low))の組み合わせが所定の組み合わせである点(分割)を示す。本実施の形態では、センサA=L(センサAのパルス信号がLoである)、センサB=Lの(センサBのパルス信号がLoである)場合の分割を起点A〜Fとしており、起点は1周期毎に現れる。また、+1、−1は、起点A〜Fに対して前後に隣接する分割の位置を示すものである。   A to F shown as starting points indicate points (divisions) where a combination of two pulse outputs (Hi (high) and Lo (low) of a pulse signal) is a predetermined combination. In the present embodiment, the division when the sensor A = L (the pulse signal of the sensor A is Lo) and the sensor B = L (the pulse signal of the sensor B is Lo) is set as the starting points A to F. Appears every cycle. Further, +1 and −1 indicate division positions adjacent to the start points A to F in the front-rear direction.

また、以下の説明で、「正起点超え」とは、正流方向において、ある起点から次の分割へ変化することを意味し、「負起点超え」とは、逆流方向において、ある起点から次の分割へ変化することを意味する。   Further, in the following description, “beyond the positive starting point” means changing from a certain starting point to the next division in the forward flow direction, and “exceeding the negative starting point” means that from the certain starting point to the next in the reverse flow direction. Means change to splitting.

そして、流量信号Aがある起点から次の起点に達すると一回転パルス(流量信号Aの1周期)と判定されて、計量体積に基づいた所定量でバッファ値を更新している。また、起点以外の分割、たとえば、「起点D−1(分割No.12)」や「起点D+1(分割No.14)」は分割パルスと判定され、分割パルスの数などは後述する積算方法で用いられる。   When the flow rate signal A reaches the next start point from a certain start point, it is determined as one rotation pulse (one cycle of the flow rate signal A), and the buffer value is updated by a predetermined amount based on the measured volume. In addition, divisions other than the starting point, for example, “starting point D-1 (dividing No. 12)” and “starting point D + 1 (dividing No. 14)” are determined as divided pulses, and the number of divided pulses is determined by an integration method described later. Used.

なお、計量体積とは、ガス遮断装置内に構成された膜の往復運動によりガスを計量している際、たとえば、メータ筐体の大きさに基づいたガス通路を所定時間(たとえば、一回転パルス)毎に通過するガスの単位流量を指すものである。   Note that the metering volume refers to, for example, a gas passage based on the size of the meter housing for a predetermined time (for example, one rotation pulse) when the gas is measured by the reciprocating motion of the membrane configured in the gas shut-off device. ) Refers to the unit flow rate of the gas that passes through each time.

正逆判定部22は、流量検出部21の流量信号Aを受け取ると流量信号Aに基づいてガス流量の正逆方向(流量を計測しているガスの流れが正流方向または逆流方向であるか)を判定し、逆流方向であれば負パルス信号Bを、あるいは正流方向であれば正パルス信号Cを出力する。この流量信号Aのパルス信号のHi、Loの組合せが変化して、流量信号Aの分割が変わると、負パルス信号および正パルス信号は出力される。   When the forward / reverse determination unit 22 receives the flow rate signal A from the flow rate detection unit 21, the forward / reverse direction of the gas flow rate based on the flow rate signal A (whether the flow of the gas whose flow rate is measured is in the forward flow direction or the reverse flow direction). ), The negative pulse signal B is output in the reverse flow direction, or the positive pulse signal C is output in the positive flow direction. When the combination of Hi and Lo of the pulse signal of the flow rate signal A changes and the division of the flow rate signal A changes, a negative pulse signal and a positive pulse signal are output.

具体的には、図3(2)に示すように、現在の流量信号Aが「起点D(分割No.13)」のセンサ出力状態(センサA=L、センサB=L)であった場合、正流方向であれば「正」に示すセンサ出力(パルス信号のHi、Lo)の組合せ(センサA=H(センサAのパルス信号がHiである)、センサB=L)となり、逆流方向であれば「負」に示すセンサ出力の組合せ(センサA=L、センサB=H(センサBのパルス信号がHiである))となることから正逆の判断をすることができる。   Specifically, as shown in FIG. 3B, when the current flow rate signal A is the sensor output state (sensor A = L, sensor B = L) of “starting point D (division No. 13)” If the forward flow direction, the combination of sensor outputs (pulse signal Hi, Lo) indicated as “positive” (sensor A = H (sensor A pulse signal is Hi), sensor B = L), the reverse flow direction If so, a combination of sensor outputs indicated as “negative” (sensor A = L, sensor B = H (the pulse signal of sensor B is Hi)) can be used to make a positive / reverse determination.

そして、正逆判定部22は負パルス信号Bおよび正パルス信号Cを負パルス判定部23及び正パルス判定部25のそれぞれに出力する。負パルス判定部23及び正パルス判定部25は、正パルス信号Cおよび負パルス信号Bを受け取り、正パルス信号Cを「+1」、負パルス信号Bを「−1」としてカウントし、現在の分割Noを求める。   Then, the forward / reverse determination unit 22 outputs the negative pulse signal B and the positive pulse signal C to the negative pulse determination unit 23 and the positive pulse determination unit 25, respectively. The negative pulse determination unit 23 and the positive pulse determination unit 25 receive the positive pulse signal C and the negative pulse signal B, and count the positive pulse signal C as “+1” and the negative pulse signal B as “−1”, and the current division Ask for No.

また、正逆判定部22が負パルス信号Bを出力すると、負パルス判定部23は、正逆判定部22の負パルス信号Bを受け取る。そして、負パルス判定部23は、負パルス信号Bをカウントして、現在の分割Noが起点に到達したか否かを判定する。判定の結果、起点に達したときに、負パルス判定部23は、負起点越え信号Eの出力を停止して、負処理要求信号Dを出力する。さらに、負パルス判定部23は、現在の分割Noが起点を超えたか否か、即ち、図3(1)において、「起点D(分割No.13)から起点D−1(分割No.12)へ」、「起点C(分割No.9)から起点C−1(分割No.8)へ」、「起点B(分割No.5)から起点B−1(分割No.4)へ」等の変化が発生したかどうかを判定する。判定の結果、起点を超えたときに、負パルス判定部23は負起点越え信号Eを出力する。また、負パルス判定部23は、正要求判定部26からの負クリア信号Fを受け取ると、負起点越え信号Eをクリアする。   When the forward / reverse determination unit 22 outputs the negative pulse signal B, the negative pulse determination unit 23 receives the negative pulse signal B from the forward / reverse determination unit 22. Then, the negative pulse determination unit 23 counts the negative pulse signal B and determines whether or not the current division number has reached the starting point. As a result of the determination, when the starting point is reached, the negative pulse determining unit 23 stops outputting the negative starting point excess signal E and outputs the negative processing request signal D. Further, the negative pulse determination unit 23 determines whether or not the current division number exceeds the starting point, that is, in FIG. 3 (1), “starting point D (dividing No. 13) to starting point D-1 (dividing No. 12)”. ”,“ From origin C (division No. 9) to origin C-1 (division No. 8) ”,“ From origin B (division No. 5) to origin B-1 (division No. 4) ”, etc. Determine if a change has occurred. As a result of the determination, when the starting point is exceeded, the negative pulse determining unit 23 outputs a negative starting point excess signal E. Further, when the negative pulse determination unit 23 receives the negative clear signal F from the positive request determination unit 26, the negative pulse determination unit 23 clears the negative origin crossing signal E.

なお、1周期内では起点に相当するセンサ出力の組合せ(センサA=L、センサB=L)が1つしかないので、負パルス信号Bのカウントではなく各センサのパルス信号のHi、Loの組合せで1周期の判定を行ってもよい。また、逆流方向にガスが流れ続けると4つの分割パルス(分割)毎に起点が出現(「起点D(分割No.13)」→「起点C(分割No.9)」→「起点B(分割No.5)」)することとなる。   Since there is only one combination of sensor outputs (sensor A = L, sensor B = L) corresponding to the starting point within one cycle, the pulse signal Hi, Lo of each sensor is not counted but the negative pulse signal B is counted. One cycle may be determined in combination. When the gas continues to flow in the reverse flow direction, a starting point appears every four divided pulses (divided) (“starting point D (divided No. 13)” → “starting point C (divided No. 9)” → “starting point B (divided) No. 5) ").

負要求判定部24は、負パルス判定部23の負処理要求信号Dを受け取ると、正パルス判定部25の正起点越え信号Iがない場合には減算信号Gを出力し、また、正起点越え信号Iの有無に係わらず正クリア信号Jを出力する。   When the negative request determination unit 24 receives the negative processing request signal D of the negative pulse determination unit 23, the negative request determination unit 24 outputs the subtraction signal G when the positive pulse determination unit 25 does not have the positive start point exceeding signal I, and exceeds the positive start point. Regardless of the presence or absence of the signal I, the positive clear signal J is output.

一方、正逆判定部22が正パルス信号Cを出力すると、正パルス判定部25は、正逆判定部22の正パルス信号Cを受け取る。そして、正パルス判定部25は、正パルス信号Cをカウントして、現在の分割Noが起点に到達したか否かを判定する。判定の結果、起点に達したときに、正パルス判定部25は、正起点越え信号Iの出力を停止して、正処理要求信号Hを出力する。さらに、正パルス判定部25は、現在の分割Noが起点を超えるか否か、即ち、図3(1)において、「起点D(分割No.13)から起点D+1(分割No.14)へ」、「起点E(分割No.17)から起点E+1(分割No.18)へ」、「起点F(分割No.21)から起点F+1(分割No.22)へ」等の変化が発生したかどうかを判定する。判定の結果、起点を超えたときに、正パルス判定部25は正起点越え信号Iを出力する。また、正パルス判定部25は、負要求判定部24の正クリア信号Jを受け取ると、正起点越え信号Iをクリアする。   On the other hand, when the forward / reverse determination unit 22 outputs the forward pulse signal C, the forward pulse determination unit 25 receives the forward pulse signal C of the forward / reverse determination unit 22. Then, the positive pulse determination unit 25 counts the positive pulse signal C and determines whether or not the current division number has reached the starting point. As a result of the determination, when the starting point is reached, the positive pulse determining unit 25 stops the output of the positive starting point excess signal I and outputs the correct processing request signal H. Further, the positive pulse determination unit 25 determines whether or not the current division number exceeds the starting point, that is, “from the starting point D (dividing No. 13) to the starting point D + 1 (dividing No. 14)” in FIG. Whether or not a change such as “from origin E (division No. 17) to origin E + 1 (division No. 18)” or “from origin F (division No. 21) to origin F + 1 (division No. 22)” has occurred. Determine. As a result of the determination, when the starting point is exceeded, the positive pulse determining unit 25 outputs the positive starting point excess signal I. Further, when the positive pulse determination unit 25 receives the positive clear signal J from the negative request determination unit 24, the positive pulse determination unit 25 clears the positive origin crossing signal I.

なお、1周期内では起点に相当するセンサ出力の組合せ(センサA=L、センサB=L)が1つしかないので、正パルス信号Cのカウントではなく各センサのパルス信号のHi、Loの組合せで1周期の判定を行ってもよい。また、正流方向にガスが流れ続けると4つの分割パルス(分割)毎に起点が出現(「起点D(分割No.13)」→「起点E(分割No.17)」→「起点F(分割No.21)」)することとなる。   Since there is only one combination of sensor outputs (sensor A = L, sensor B = L) corresponding to the starting point within one cycle, the pulse signals Hi and Lo of each sensor are not counted but the positive pulse signal C. One cycle may be determined in combination. When the gas continues to flow in the positive flow direction, a starting point appears every four divided pulses (divided) (“starting point D (divided No. 13)” → “starting point E (divided No. 17)” → “starting point F ( Division No. 21) ").

正要求判定部26は、正パルス判定部25の正処理要求信号Hを受け取ると、負パルス判定部23の負起点越え信号Eがない場合には加算信号Kを出力し、また、負起点越え信号Eの有無に係わらず負クリア信号Fを出力する。   When the positive request determination unit 26 receives the positive processing request signal H from the positive pulse determination unit 25, the positive request determination unit 26 outputs the addition signal K when the negative pulse determination unit 23 does not have the negative start point exceeding signal E, and exceeds the negative start point. The negative clear signal F is output regardless of the presence or absence of the signal E.

バッファ部27は、負要求判定部24の減算信号Gを受け取ると現在保持しているバッファ値から予め定められた第1の所定量(例えば、計量体積と同じ値でも良いし、計量体積に任意の係数を掛けて補正した値でも良い)を減算して新たなバッファ値として保持する。   When the buffer unit 27 receives the subtraction signal G from the negative request determination unit 24, the buffer unit 27 may have a first predetermined amount (for example, the same value as the measurement volume) or a predetermined value from the buffer value currently held. (Which may be a value corrected by multiplying by the coefficient) is subtracted and held as a new buffer value.

また、バッファ部27は、正要求判定部26の加算信号Kを取ると現在保持しているバッファ値に予め定められた第2の所定量(例えば、第1の所定量と同じでも良いし、計量体積に第1の所定量とは異なる任意の係数を掛けて補正した値でも良い)を加算して新たなバッファ値として保持し、加算後のバッファ値が予め定めていた積算単位値(例えば、計量体積でも良いし、1Lや10L等の任意の単位でも良い)を越えたときにバッファオーバ信号Lを出力し、加算後のバッファ値から積算単位値を差し引いて新たなバッファ値として保持し直す。   Further, the buffer unit 27 may receive the addition signal K of the correct request determination unit 26, and may be the same as a second predetermined amount (for example, the same as the first predetermined amount) predetermined for the currently held buffer value, A value corrected by multiplying the measurement volume by an arbitrary coefficient different from the first predetermined amount may be added and held as a new buffer value, and the buffer value after the addition is a predetermined unit value (for example, The buffer over signal L is output when the measured volume is exceeded or any unit such as 1L or 10L is exceeded, and the accumulated unit value is subtracted from the buffer value after addition and held as a new buffer value. cure.

この新たなバッファ値は積算単位値よりも小さな値の端数として保持されることとなる。例えば、第2の所定量=2.5L、積算単位値=1Lの場合は0.5(=2.5−1−1)がバッファ値として保持される。   This new buffer value is held as a fraction of a value smaller than the integration unit value. For example, when the second predetermined amount = 2.5L and the integration unit value = 1L, 0.5 (= 2.5-1-1) is held as the buffer value.

指針値保持部28は、バッファ部27のバッファオーバ信号Lを受け取ると現在保持している指針値に積算単位値を加算して新たな指針値として保持する。   When the pointer value holding unit 28 receives the buffer over signal L of the buffer unit 27, the pointer value holding unit 28 adds the integrated unit value to the currently held pointer value and holds it as a new pointer value.

このバッファオーバ信号Lは、例えば、バッファ値から積算単位値を複数回引いた場合には、複数の信号として出力されたものを受け取っても良いし、信号に重み付けをした情報として受け取っても良い。   For example, when the integration unit value is subtracted a plurality of times from the buffer value, the buffer over signal L may be received as a plurality of signals, or may be received as information weighted to the signals. .

また、指針値への積算単位値の加算方法としては、複数の信号として受け取ったときには信号を受け取る都度指針値に加算する方法とし、信号に重み付けをした情報として受け取ったときは重み付けに即した値を一挙に指針値に加算する方法とすることができる。   In addition, as a method of adding the integrated unit value to the guideline value, it is a method of adding to the guideline value every time a signal is received when it is received as a plurality of signals, and a value in accordance with the weighting when it is received as information weighting the signal Can be added to the guideline value all at once.

なお、起点越えの判定方法として、1周期内に起点と同じセンサ出力の組合せ(例えば、センサA=L、センサB=L)が複数発生するような構成の場合は、1周期内の負パルス信号および正パルス信号をカウントして、正逆方向毎に1周期分の分割パルス数に達したか否かで起点の到達の有無を判定し、さらに「起点となる分割パルス数+1」で正起点越えを判定し、かつ「起点となる分割パルス数の−1」で負起点越えに到達したか否かを判定することができる。   In addition, as a determination method for exceeding the starting point, in the case of a configuration in which a plurality of combinations of sensor outputs (for example, sensor A = L, sensor B = L) that are the same as the starting point are generated in one cycle, negative pulses in one cycle Signal and forward pulse signal are counted, and whether or not the starting point has been reached is determined based on whether or not the number of divided pulses for one cycle has been reached in each forward and reverse direction. It is possible to determine whether or not the starting point has been exceeded, and whether or not the negative starting point has been exceeded by “−1 of the number of divided pulses serving as the starting point”.

また、MRセンサのセンサ数は2つとは限らず、3つ以上(たとえば、図4に記載したように3つ)のセンサをMRセンサに用いても良い。このように、3つ以上のセンサをMRセンサに用いた場合であっても、上記と同様に起点および起点越えを判定することが可能である。   The number of MR sensors is not limited to two, and three or more (for example, three as described in FIG. 4) sensors may be used for the MR sensor. As described above, even when three or more sensors are used for the MR sensor, it is possible to determine the starting point and the starting point exceeded in the same manner as described above.

すなわち、起点を超えたか否かでバッファ部27のバッファ値の減算または加算の有無を判定してバッファ値の更新を行うことで、ガス流量と指針値のズレを防止することが可能となる。   That is, it is possible to prevent a deviation between the gas flow rate and the pointer value by determining whether or not the buffer value of the buffer unit 27 is subtracted or added based on whether or not the starting point is exceeded and updating the buffer value.

次に、図3(3)分割パルスの入力パターンを用いてバッファ部27のバッファ値の挙動を以下で説明する。なお、以下の説明では、バッファ値を加減算する第1の所定量と第2の所定量は共に1Lとしている。この第1の所定量と第2の所定量は必ずしも同じになるとは限らないもので、正流方向と逆流方向の機構的な違いにより、異なる場合も有りうるものである。   Next, the behavior of the buffer value of the buffer unit 27 will be described below using FIG. 3 (3) input pattern of divided pulses. In the following description, the first predetermined amount and the second predetermined amount for adding / subtracting the buffer value are both 1L. The first predetermined amount and the second predetermined amount are not necessarily the same, and may be different due to a mechanical difference between the forward flow direction and the reverse flow direction.

(1)case1の場合
バッファ部27のバッファ値=0の状態で、「起点D(分割No.13)」から正流方向に流れ「起点D+1(分割No.14)」で正起点越えとなるため正パルス判定部25にて正起点越え信号Iが出力される。
(1) Case 1 In the state where the buffer value of the buffer unit 27 is 0, the flow starts from “starting point D (division No. 13)” in the positive flow direction and exceeds the positive starting point at “starting point D + 1 (division No. 14)”. Therefore, the positive pulse determination unit 25 outputs the positive origin crossing signal I.

その後も正流方向が続き分割No.14→分割No.15に至ったあと、逆流方向に流れが変わり分割No.15→分割No.14→分割No.13へと遷移して再び「起点D(分割No.13)」に至って負パルス判定部23で負起点越え信号Eの出力が停止し、負処理要求信号Dが出力されるが、負要求判定部24では正起点越え信号Iが出力されているので減算信号Gは出力されずバッファ部27のバッファ値は「0」のままとなり、正クリア信号Jにより正パルス判定部25の正起点越え信号Iの出力が停止される。   After that, the positive flow direction continued and division No. 14 → Division No. After reaching 15, the flow changes in the reverse flow direction and the split No. 15-> division No. 14 → Division No. 13 to reach the “starting point D (division No. 13)” again, the negative pulse determination unit 23 stops outputting the negative starting point exceeding signal E, and the negative processing request signal D is output. In the unit 24, since the positive origin exceeding signal I is output, the subtraction signal G is not output and the buffer value of the buffer unit 27 remains "0". I output is stopped.

更に、起点D(分割No.13)に至った後も逆流方向に流れているので「起点D−1(分割No.12)」で負起点越えとなるため負パルス判定部23にて負起点越え信号Eが出力される。   Further, since the flow continues in the reverse flow direction after reaching the starting point D (division No. 13), the negative starting point is exceeded at “starting point D-1 (division No. 12)”. A crossing signal E is output.

その後も逆流方向が続き分割No.12→分割No.11に至ったあと、正流方向に流れが再び変わり分割No.11→分割No.12→分割No.13と遷移し、再々度「起点D(分割No.13)」に至り正パルス判定部25で正起点越え信号Iの出力が停止し正処理要求信号Hが出力されるが、正要求判定部26では負起点越え信号Eが出力されているので加算信号Kは出力されずバッファ部27のバッファ値は「0」のままとなり、負クリア信号Fにより負パルス判定部23の負起点越え信号Eの出力が停止されることとなる。   After that, the reverse flow direction continued and division No. 12 → Division No. After reaching No. 11, the flow changes again in the forward flow direction, and the split No. 11-> division No. 12 → Division No. 13, and again reaches “start point D (division No. 13)”, the positive pulse determination unit 25 stops outputting the positive start point signal I and outputs the correct processing request signal H. 26, since the negative start point excess signal E is output, the addition signal K is not output, and the buffer value of the buffer unit 27 remains “0”, and the negative clear point signal F of the negative pulse determination unit 23 is received by the negative clear signal F. Will be stopped.

以上のように、ある起点を中心として、前後の起点に至らないような正逆方向の流量変化が発生した場合において、バッファ値が増減することがなく、正しい積算を行うことができる。   As described above, when a flow rate change in the forward / reverse direction that does not reach the preceding and following starting points occurs around a certain starting point, the buffer value does not increase or decrease, and correct integration can be performed.

(2)case2の場合
バッファ部27のバッファ値=0の状態で、「起点D(分割No.13)」から正流方向に流れたので「起点D+1(分割No.14)」で正起点越えとなるため正パルス判定部25にて正起点越え信号Iが出力される。
(2) Case 2 In the state where the buffer value of the buffer unit 27 is 0, since the flow started from “starting point D (divided No. 13)” in the positive flow direction, the starting point was exceeded at “starting point D + 1 (dividing No. 14)”. Therefore, the positive pulse determination unit 25 outputs the positive origin crossing signal I.

その後も正流方向が続き分割No.14→分割No.15に至ったあと、逆流方向に流れが変わり分割No.15→分割No.14→分割No.13と遷移して再び「起点D(分割No.13)」に至って負パルス判定部23で負起点越え信号Eの出力が停止し負処理要求信号Dが出力されるが、負要求判定部24では正起点越え信号Iが出力されているので減算信号Gは出力されずバッファ部27のバッファ値は「0」のままとなり、正クリア信号Jにより正パルス判定部25の正起点越え信号Iの出力が停止される。   After that, the positive flow direction continued and division No. 14 → Division No. After reaching 15, the flow changes in the reverse flow direction and the split No. 15-> division No. 14 → Division No. 13, and again reaches “starting point D (division No. 13)”, the negative pulse determining unit 23 stops outputting the negative starting point exceeding signal E and outputs the negative processing request signal D, but the negative request determining unit 24 Then, since the positive starting point exceeding signal I is output, the subtraction signal G is not output and the buffer value of the buffer unit 27 remains “0”, and the positive clearing signal J indicates that the positive starting point exceeding signal I of the positive pulse determining unit 25 Output is stopped.

さらに、起点D(分割No.13)に至った後も逆流方向に流れているので「起点D−1(分割No.12)」で負起点越えとなるため負パルス判定部23にて負起点越え信号Eが出力される。   Further, since the flow continues in the reverse flow direction after reaching the starting point D (division No. 13), the negative starting point is exceeded at the “starting point D-1 (division No. 12)”. A crossing signal E is output.

その後も逆流方向が続き分割No.12→分割No.11→分割No.10→分割No.9と遷移し、新たな「起点C(分割No.9)」に至って負パルス判定部23で負起点越え信号Eの出力が停止し負処理要求信号Dが出力される。   After that, the reverse flow direction continued and division No. 12 → Division No. 11-> division No. 10 → Division No. 9 to reach a new “starting point C (division No. 9)”, the negative pulse determining unit 23 stops the output of the negative starting point crossing signal E and outputs the negative processing request signal D.

このとき、負要求判定部24では正起点越え信号Iは既に出力が停止されているので減算信号Gが出力され、バッファ部27のバッファ値は「−1(=0−1)」となり、正クリア信号Jにより正パルス判定部25の正起点越え信号Iの出力が停止(実際には既に出力は停止されている)されることとなる。   At this time, since the negative request determination unit 24 has already stopped outputting the positive origin point exceeding signal I, the subtraction signal G is output, and the buffer value of the buffer unit 27 becomes “−1 (= 0−1)”. With the clear signal J, the output of the positive start point excess signal I of the positive pulse determination unit 25 is stopped (in fact, the output has already been stopped).

さらに、起点C(分割No.9)に至った後も逆流方向に流れているので「起点C−1(分割No.8)」で負起点越えとなるため負パルス判定部23にて負起点越え信号Eが再び出力される。   Further, since the flow continues in the reverse flow direction after reaching the starting point C (division No. 9), the negative starting point is exceeded at “starting point C-1 (division No. 8)”. The excess signal E is output again.

その後、正流方向に流れが変わり再び「起点C(分割No.9)」に至って正パルス判定部25で正起点越え信号Iの出力が停止し正処理要求信号Hが出力されるが、正要求判定部26では負起点越え信号Eが出力されているので加算信号Kは出力されずバッファ部27のバッファ値は「−1」のまま、負クリア信号Fにより負パルス判定部23の負起点越え信号Eの出力が停止されることとなる。   Thereafter, the flow changes in the positive flow direction and reaches “start point C (division No. 9)” again, and the positive pulse determination unit 25 stops the output of the positive start point crossover signal I and outputs the positive processing request signal H. Since the request determination unit 26 outputs the negative start point excess signal E, the addition signal K is not output, the buffer value of the buffer unit 27 remains “−1”, and the negative start point of the negative pulse determination unit 23 is received by the negative clear signal F. The output of the exceeding signal E is stopped.

さらに、起点C(分割No.9)に至った後も正流方向に流れているので「起点C+1(分割No.10)」で正起点越えとなるため正パルス判定部25にて正起点越え信号Iが出力される。その後も正流方向が続き分割No.10→分割No.11→分割No.12→分割No.13と遷移し、再び「起点D(分割No.13)」に至って正パルス判定部25で正起点越え信号Iの出力が停止し正処理要求信号Hが出力される。   Further, even after reaching the starting point C (division No. 9), the flow continues in the positive flow direction, so that the positive starting point is exceeded at “starting point C + 1 (division No. 10)”. Signal I is output. After that, the positive flow direction continued and division No. 10 → Division No. 11-> division No. 12 → Division No. 13, the “starting point D (division No. 13)” is reached again, and the positive pulse determining unit 25 stops the output of the positive starting point crossing signal I and the positive processing request signal H is output.

このとき、正要求判定部26では負起点越え信号Eは既に出力が停止されているので加算信号Kが出力され、バッファ部27のバッファ値は「0(=−1+1)」となり、負クリア信号Fにより負パルス判定部23の負起点越え信号Eの出力が停止(実際には既に出力は停止されている)されることとなる。   At this time, since the output of the negative start point excess signal E has already been stopped in the positive request determination unit 26, the addition signal K is output, the buffer value of the buffer unit 27 becomes “0 (= −1 + 1)”, and the negative clear signal The output of the negative start point excess signal E of the negative pulse determination unit 23 is stopped by F (in fact, the output has already been stopped).

そして、起点D(分割No.13)に至った後も引き続き正流方向に流れているので「起点D+1(分割No.14)」で正起点越えとなるため正パルス判定部25にて正起点越え信号Iが出力される。   Since the current continues to flow in the positive flow direction after reaching the starting point D (division No. 13), the positive starting point is exceeded by the positive pulse determination unit 25 because the positive starting point is exceeded at “starting point D + 1 (division No. 14)”. A crossing signal I is output.

その後も正流方向が続き分割No.14→分割No.15→分割No.16→分割No.17と遷移し、新たな「起点E(分割No.17)」に至って正パルス判定部25で正起点越え信号Iの出力が停止し正処理要求信号Hが出力される。   After that, the positive flow direction continued and division No. 14 → Division No. 15-> division No. 16 → No. 17, a new “starting point E (division No. 17)” is reached, and the positive pulse determination unit 25 stops the output of the positive starting point crossover signal I and outputs the correct processing request signal H.

このとき正要求判定部26では負起点越え信号Eは既に出力が停止されているので加算信号Kが出力され、バッファ部27のバッファ値は「1(=0+1)」となり、負クリア信号Fにより負パルス判定部23の負起点越え信号Eの出力が停止されることとなる。   At this time, since the output of the negative start point excess signal E has already been stopped in the positive request determination unit 26, the addition signal K is output, the buffer value of the buffer unit 27 becomes “1 (= 0 + 1)”, and the negative clear signal F The output of the negative start point excess signal E of the negative pulse determination unit 23 is stopped.

以上のように、ある起点から逆流側の起点に達した後、その起点を超えた後に、正流方向に流れが転じ、再びある起点を超えて正流方向の起点を超えた場合において、正しい積算を行うことができる。   As described above, after reaching the starting point on the reverse flow side from a certain starting point, after the starting point is exceeded, the flow turns in the forward flow direction, and again exceeds the starting point in the forward flow direction beyond a certain starting point. Integration can be performed.

(3)case3の場合
バッファ部27のバッファ値=0の状態で、「起点D(分割No.13)」から正流方向に流れて「起点D+1(分割No.14)」となり正起点越えとなるため正パルス判定部25にて正起点越え信号Iが出力される。
(3) Case 3 In the state where the buffer value of the buffer unit 27 is 0, the flow starts from the “starting point D (division No. 13)” in the positive flow direction and becomes “starting point D + 1 (division No. 14)”. Therefore, the positive pulse determination unit 25 outputs the positive origin crossing signal I.

その後も正流方向が続き分割No.14→分割No.15に至ったあと、逆流方向に流れが変わり分割No.15→分割No.14→分割No.13と遷移して再び「起点D(分割No.13)」に至って負パルス判定部23で負起点越え信号Eの出力が停止し負処理要求信号Dが出力されるが、負要求判定部24では正起点越え信号Iが出力されているので減算信号Gは出力されずバッファ部27のバッファ値は「0」のままで、正クリア信号Jにより正パルス判定部25の正起点越え信号Iの出力が停止される。   After that, the positive flow direction continued and division No. 14 → Division No. After reaching 15, the flow changes in the reverse flow direction and the split No. 15-> division No. 14 → Division No. 13, and again reaches “starting point D (division No. 13)”, the negative pulse determining unit 23 stops outputting the negative starting point exceeding signal E and outputs the negative processing request signal D, but the negative request determining unit 24 Then, since the positive starting point exceeding signal I is output, the subtraction signal G is not output and the buffer value of the buffer unit 27 remains “0”, and the positive clearing signal J of the positive starting point exceeding signal I of the positive pulse determining unit 25 is output. Output is stopped.

さらに、起点Dに至った後も逆流方向に流れて「起点D−1(分割No.12)」で負起点越えとなるため負パルス判定部23にて負起点越え信号Eが出力される。   Further, after reaching the starting point D, the negative starting point exceeding signal E is output from the negative pulse determination unit 23 because the negative starting point is exceeded at “starting point D-1 (division No. 12)”.

その後も逆流方向が続き分割No.12→分割No.11→分割No.10→分割No.9と遷移し、新たな「起点C(分割No.9)」に至って負パルス判定部23で負起点越え信号Eの出力が停止し負処理要求信号Dが出力される。   After that, the reverse flow direction continued and division No. 12 → Division No. 11-> division No. 10 → Division No. 9 to reach a new “starting point C (division No. 9)”, the negative pulse determining unit 23 stops the output of the negative starting point crossing signal E and outputs the negative processing request signal D.

このとき負要求判定部24では正起点越え信号Iは既に出力が停止されているので減算信号Gが出力され、バッファ部27のバッファ値は「−1(=0−1)」となり、正クリア信号Jにより正パルス判定部25の正起点越え信号Iの出力が停止(実際には既に出力は停止されている)されることとなる。   At this time, the negative request determination unit 24 has already stopped outputting the positive origin point exceeding signal I, so the subtraction signal G is output, and the buffer value of the buffer unit 27 becomes “−1 (= 0−1)”, which is positive clear. With the signal J, the output of the positive start point excess signal I of the positive pulse determination unit 25 is stopped (in fact, the output has already been stopped).

その後、再び正流方向に流れが変わり分割No.9→分割No.10→分割No.11→分割No.12→分割No.13と遷移し、再び「起点D(分割No.13)」に至って正パルス判定部25で正起点越え信号Iの出力が停止し正処理要求信号Hが出力される。   After that, the flow changes again in the forward flow direction, and the split No. 9 → Division No. 10 → Division No. 11-> division No. 12 → Division No. 13, the “starting point D (division No. 13)” is reached again, and the positive pulse determining unit 25 stops the output of the positive starting point crossing signal I and the positive processing request signal H is output.

このとき正要求判定部26では負起点越え信号Eは既に出力が停止(実際には新たな負起点越え信号Eは発生していない)されているので加算信号Kが出力され、バッファ部27のバッファ値は「0(=−1+1)」となり、負クリア信号Fにより負パルス判定部23の負起点越え信号Eの出力が停止されることとなる。   At this time, the positive request determination unit 26 has already stopped the output of the negative starting point exceeding signal E (in fact, no new negative starting point exceeding signal E has been generated), so the addition signal K is output and the buffer unit 27 The buffer value becomes “0 (= −1 + 1)”, and the negative clear signal F stops the output of the negative start point excess signal E of the negative pulse determination unit 23.

そして、引き続き正流方向に流れているので「起点D+1(分割No.14)」で起点越えとなるため正パルス判定部25にて正起点越え信号Iが出力される。   Since the current continues to flow in the positive direction, the starting point is exceeded at “starting point D + 1 (division No. 14)”, so that the positive pulse determining unit 25 outputs a positive starting point exceeding signal I.

その後も正流方向が続き分割No.14→分割No.15→分割No.16→分割No.17と遷移し、新たな「起点E(分割No.17)」に至って正パルス判定部25で正起点越え信号Iの出力が停止し正処理要求信号Hが出力される。   After that, the positive flow direction continued and division No. 14 → Division No. 15-> division No. 16 → No. 17, a new “starting point E (division No. 17)” is reached, and the positive pulse determination unit 25 stops the output of the positive starting point crossover signal I and outputs the correct processing request signal H.

このとき正要求判定部26では負起点越え信号Eは既に出力が停止されているので加算信号Kが出力され、バッファ部27のバッファ値は「1(=0+1)」となり、負クリア信号Fにより負パルス判定部23の負起点越え信号Eの出力が停止(実際には既に出力は停止されている)されることとなる。   At this time, since the output of the negative start point excess signal E has already been stopped in the positive request determination unit 26, the addition signal K is output, the buffer value of the buffer unit 27 becomes “1 (= 0 + 1)”, and the negative clear signal F The output of the negative start point excess signal E of the negative pulse determination unit 23 is stopped (in fact, the output has already been stopped).

以上のように、ある起点から逆流側の起点に達した後、その起点を超えずに正流方向に流れが転じ、再びある起点を超えて正流方向の起点を超えた場合において、正しい積算を行うことができる。   As described above, after reaching the starting point on the reverse flow side from a certain starting point, the flow turns in the forward flow direction without exceeding that starting point, and again when the starting point in the forward flow direction is exceeded beyond a certain starting point, the correct integration It can be performed.

次に、本実施の形態と比較するために、起点越え時、即ち、ある起点から起点に隣接の分割Noに至った場合にバッファ値を増減する方式をcase4として、逆に、起点に隣接する分割Noから起点に至った時にバッファ値を無条件に増減する方式をcase5として参考として以下説明する。   Next, in order to compare with the present embodiment, when the starting point is exceeded, that is, when the division number adjacent to the starting point is reached from a certain starting point, the method of increasing / decreasing the buffer value is set as case 4 and conversely, the adjacent point is adjacent to the starting point. A method of unconditionally increasing / decreasing the buffer value when reaching the starting point from the division No will be described below as case 5 for reference.

(4)case4の場合
バッファ値=0の状態で、「起点D(分割No.13)」から正流方向に流れたので「起点D+1(分割No.14)」で正起点越えとなるためバッファ値が加算(1(=0+1))される。その後も正流方向が続き分割No.14→分割No.15に至ったあと、逆流方向に流れが変わり分割No.15→分割No.14→分割No.13→分割No.12と遷移して「起点D−1(分割No.12)」で負起点越えとなるためバッファ値が減算(0(=1−1))される。その後正流方向に流れが変わり分割No.12→分割No.13→分割No.14と遷移し、再び「起点D+1(分割No.14)」で正起点越えとなるためバッファ値が加算(1(=0+1))される。
(4) Case 4 In the state where the buffer value = 0, since the flow started from the “starting point D (divided No. 13)” in the positive flow direction, the starting point is exceeded at “starting point D + 1 (dividing No. 14)”. The values are added (1 (= 0 + 1)). After that, the positive flow direction continued and division No. 14 → Division No. After reaching 15, the flow changes in the reverse flow direction and the split No. 15 → Division No. 14 → Division No. 13 → Division No. 12 and the negative starting point is exceeded at “starting point D-1 (division No. 12)”, so the buffer value is subtracted (0 (= 1-1)). After that, the flow changes in the positive flow direction and the split No. 12 → Division No. 13 → Division No. 14, and since the positive starting point is exceeded again at “starting point D + 1 (division No. 14)”, the buffer value is added (1 (= 0 + 1)).

この場合、動作開始直後にバッファ値が加算されることを除けばバッファ値は追従しているように見受けられるが、分割No.13→分割No.14→分割No.13→分割No.14・・・と繰り返せばバッファ値は加算され続け、あるいは分割No.13→分割No.12→分割No.13→分割No.12・・・と繰り返せばバッファ値は減算され続けることとなる。   In this case, the buffer value seems to follow, except that the buffer value is added immediately after the start of the operation. 13 → Division No. 14 → Division No. 13 → Division No. 14 and so on, the buffer value continues to be added, or the division number. 13 → Division No. 12 → Division No. 13 → Division No. Repeating 12 ... will continue to subtract the buffer value.

即ち、起点越え時にバッファ値を増減する方式であれば、ある起点と隣の分割Noとの間を繰り返すような流量変動が発生した場合に、積算または減算の一方が繰り返されることになり、実際の積算値と誤差を生じることとなる。   That is, if the buffer value is increased / decreased when the starting point is exceeded, one of integration or subtraction is repeated when a flow rate fluctuation occurs between a certain starting point and the adjacent division number. Will cause an error with the integrated value.

(5)case5の場合
バッファ値=0の状態で「起点D(分割No.13)」から正流方向に流れたので分割No.13→分割No.14→分割No.15に至ったあと、逆流方向に流れが変わり分割No.15→分割No.14→分割No.13と遷移して再び「起点D(分割No.13)」に至ってバッファ値が減算(−1(=0−1))される。
(5) Case 5 Since the flow from the “starting point D (division No. 13)” in the positive flow direction with the buffer value = 0, the division No. 13 → Division No. 14 → Division No. After reaching 15, the flow changes in the reverse flow direction and the split No. 15-> division No. 14 → Division No. Then, the process proceeds to "Start point D (Division No. 13)" and the buffer value is subtracted (-1 (= 0-1)).

その後、再び正流方向に流れが変わり分割No.13→分割No.14→分割No.15→分割No.16→分割No.17と遷移し、新たな「起点E(分割No.17)」に至ってバッファ値が加算(0(=−1+1))される。   After that, the flow changes again in the forward flow direction, and the split No. 13 → Division No. 14 → Division No. 15-> division No. 16 → No. 17, the buffer value is added (0 (= -1 + 1)) after reaching a new "starting point E (division No. 17)".

この場合、動作開始の最初の起点に至った時にバッファ値が減算されることを除けばバッファ値は追従しているように見受けられるが、分割No.14→分割No.13→分割No.14→分割No.13・・・と繰り返せばバッファ値は減算され続け、あるいは分割No.16→分割No.17→分割No.16→分割No.17・・・と繰り返せばバッファ値は加算され続けることとなる。   In this case, the buffer value seems to follow except that the buffer value is subtracted when the first starting point of the operation is reached. 14 → Division No. 13 → Division No. 14 → Division No. 13 is repeated, the buffer value continues to be subtracted, or the division No. 16 → No. 17 → Division No. 16 → No. If it repeats 17 ..., the buffer value will continue to be added.

即ち、起点に至った時にバッファ値を無条件に増減する方式であれば、ある起点と隣の分割Noとの間を繰り返すような流量変動が発生した場合に、積算または減算の一方が繰り返されることになり、実際の積算値と誤差を生じることとなる。   That is, if the buffer value is unconditionally increased / decreased when the starting point is reached, one of integration or subtraction is repeated when a flow rate fluctuation that repeats between a certain starting point and the adjacent division number occurs. As a result, an error occurs with the actual integrated value.

本願の発明は、上記case4やcase5の不具合を考慮して改善し、起点近辺を行き来してもcase1のようにバッファ値の増減を繰り返さず、かつcase2やcase3のように起点に至ったときにバッファ値を増減可能にすることでガス通路を流れた実流量値と指針値のズレを防止したものである。   The invention of the present application is improved in consideration of the above problems of Case 4 and Case 5, and even when going around the starting point, the buffer value is not repeatedly increased and decreased like Case 1, and when the starting point is reached like Case 2 and Case 3 By allowing the buffer value to be increased or decreased, a deviation between the actual flow value flowing through the gas passage and the pointer value is prevented.

なお、ガス遮断装置として必要な遮断機能は、流量検出部21、正逆判定部22、正パルス判定部25、流量演算部31、異常判定部32、弁33とから構成され、以下にその役割を記載する。   In addition, the interruption | blocking function required as a gas interruption | blocking apparatus is comprised from the flow volume detection part 21, the forward / reverse determination part 22, the normal pulse determination part 25, the flow volume calculating part 31, the abnormality determination part 32, and the valve 33, and the role is the following. Is described.

なお、流量検出部21、正逆判定部22、正パルス判定部25の動作は前述しているので記載を省略する。   Since the operations of the flow rate detection unit 21, the forward / reverse determination unit 22, and the forward pulse determination unit 25 have been described above, description thereof will be omitted.

流量演算部31は、正パルス判定部25から正処理要求信号Hを受け取ると流量値(例えば単位時間当たりの正処理要求信号Hの出力回数から算出しても良い)を算出し流量値信号Mを出力する。   When the flow rate calculation unit 31 receives the positive processing request signal H from the positive pulse determination unit 25, the flow rate calculation unit 31 calculates a flow rate value (for example, the flow rate value signal M may be calculated from the number of outputs of the positive processing request signal H per unit time). Is output.

異常判定部32は、予め保持している判定値(例えば、ガスが大量に漏れた時の判定値等)と流量演算部31から取得した流量値信号Mの値を比較して異常(例えば、ガス漏れを判定する判定値を越えているか否か)の有無を判定し、異常であれば弁駆動信号Nを出力し、異常でなければ弁駆動信号Nを出力しない。弁33は、異常判定部32からの弁駆動信号Nを取得するとガス通路を閉栓する。   The abnormality determination unit 32 compares the determination value held in advance (for example, the determination value when a large amount of gas leaks) and the value of the flow rate value signal M acquired from the flow rate calculation unit 31 to detect an abnormality (for example, Whether or not a determination value for determining gas leakage has been exceeded) is determined. If abnormal, the valve drive signal N is output, and if not abnormal, the valve drive signal N is not output. When the valve 33 acquires the valve drive signal N from the abnormality determination unit 32, the valve 33 closes the gas passage.

そして、この遮断機能によりガス使用者の安全性と利便性が担保されている。   And the safety | security and convenience of a gas user are ensured by this interruption | blocking function.

次に、図2に示す実施の形態1のプログラムフローチャート(処理S01から処理S29にて示す)を用いて処理の流れを説明する。ここで処理開始後は各処理を経由して再び処理S01に戻り周期的に処理されるものとする。   Next, the flow of processing will be described using the program flowchart (shown in steps S01 to S29) of the first embodiment shown in FIG. Here, it is assumed that after the start of the process, the process returns to the process S01 again through each process and is processed periodically.

流量検出部21において処理S01は、ガス通路内を通過するガス流量を流量信号Aであるパルス信号として検出し、ガス流量に基づいた流量信号Aを出力して処理S02へ移行する。   In the flow rate detection unit 21, the process S01 detects the gas flow rate passing through the gas passage as a pulse signal that is the flow rate signal A, outputs the flow rate signal A based on the gas flow rate, and proceeds to the process S02.

正逆判定部22において処理S02は、流量検出部21の流量信号Aを受け取るとセンサ出力(ガス流量)の変化を図3(2)に示す正逆方向の判断方法に基づいて判定する。そして、新たに取得した流量信号Aが前回取得した流量信号Aと同じ出力状態の組合せのときに処理S01に移行して再度新たな流量信号Aを取得し、新たに取得した流量信号Aが前回取得した流量信号Aと異なる出力状態の組合せのときに処理S03に移行する。   When the flow rate signal A of the flow rate detection unit 21 is received in the forward / reverse determination unit 22, the process S02 determines a change in sensor output (gas flow rate) based on a forward / reverse direction determination method shown in FIG. Then, when the newly acquired flow rate signal A has the same output state combination as the previously acquired flow rate signal A, the process proceeds to step S01 to acquire a new flow rate signal A again. When the acquired flow rate signal A is different from the output state combination, the process proceeds to step S03.

処理S03は、図3(2)の「負」に示すセンサ出力の組合せ(センサA=L、センサB=H)であれば、逆流方向であるとして負パルス信号Bを出力して処理S04へ移行し、「正」に示すセンサ出力の組合せ(センサA=H、センサB=L)であれば、正流方向であるとして正パルス信号Cを出力して処理S10へ移行する。   If the sensor output combination (sensor A = L, sensor B = H) shown in “Negative” in FIG. 3 (2) is the process S03, the negative pulse signal B is output as the reverse flow direction and the process proceeds to the process S04. If the combination of the sensor outputs indicated as “positive” (sensor A = H, sensor B = L), the positive pulse signal C is output as the positive flow direction, and the process proceeds to step S10.

負パルス判定部23において処理S04は、正逆判定部22の負パルス信号Bを受け取ると負パルス信号Bをカウントし起点に到達したか否かを判定し、起点に達したときに処理S05へ移行し、起点に達していなければ処理S07へ移行する。   In the negative pulse determination unit 23, the process S04 receives the negative pulse signal B from the forward / reverse determination unit 22, and counts the negative pulse signal B to determine whether or not the start point has been reached. If the start point has not been reached, the process proceeds to step S07.

処理S05は、負起点越え信号Eの出力を停止して処理S06へ移行し、処理S06は負処理要求信号Dを出力して処理S16へ移行する。   The process S05 stops the output of the negative starting point crossing signal E and proceeds to the process S06, and the process S06 outputs the negative process request signal D and proceeds to the process S16.

処理S07は、負処理要求信号Dの出力を停止して処理S08へ移行する。処理S08は起点を超えるか否かを判定し、起点を超えたときに処理S09へ移行し、起点を超えた直後でなければ処理S01へ移行する。処理S09は負起点越え信号Eを出力して処理S16へ移行する。   In process S07, the output of the negative process request signal D is stopped, and the process proceeds to process S08. In step S08, it is determined whether or not the starting point is exceeded. When the starting point is exceeded, the process proceeds to step S09, and when the starting point is not exceeded, the process proceeds to step S01. In step S09, the negative start point excess signal E is output, and the process proceeds to step S16.

負要求判定部24において処理S16は、負パルス判定部23の負処理要求信号Dを受け取っていれば処理S17へ移行し、負処理要求信号Dを受け取っていなければ処理S21へ移行する。   In the negative request determination unit 24, the process S16 proceeds to the process S17 if the negative process request signal D of the negative pulse determination unit 23 is received, and proceeds to the process S21 if the negative process request signal D is not received.

処理S17は、正パルス判定部25の正起点越え信号Iがない場合には処理S18へ移行し、正起点越え信号Iがある場合には処理S19へ移行する。   Processing S17 proceeds to processing S18 when there is no positive origin exceeding signal I of the positive pulse determination unit 25, and processing proceeds to processing S19 when there is a positive origin exceeding signal I.

処理S18は、減算信号Gを出力して、バッファ部27において負要求判定部24の減算信号Gを受け取ると現在保持しているバッファ値から予め定められた第1の所定量(例えば、計量体積と同じ値でも良いし、計量体積に任意の係数を掛けて補正した値でも良い)を減算して新たなバッファ値として保持して処理S19へ移行する。   The process S18 outputs a subtraction signal G and receives a subtraction signal G from the negative request determination unit 24 in the buffer unit 27. When the buffer unit 27 receives the subtraction signal G, a first predetermined amount (for example, a measurement volume) determined in advance from the currently held buffer value. The value may be the same value as or a value corrected by multiplying the measured volume by an arbitrary coefficient) and is stored as a new buffer value, and the process proceeds to step S19.

処理S19は、正起点越え信号Iの有無に係わらず正クリア信号Jを出力し、正パルス判定部25において負要求判定部24の正クリア信号Jを受け取ると正起点越え信号Iの出力を停止して処理S20へ移行する。   The process S19 outputs the positive clear signal J regardless of the presence or absence of the positive origin crossing signal I, and stops the output of the positive origin crossing signal I when the positive pulse judgment unit 25 receives the positive clear signal J of the negative request judgment unit 24. And it transfers to process S20.

負パルス判定部23において処理S20は、負処理要求信号Dの出力を停止して処理S26へ移行する。   In the negative pulse determination unit 23, the process S20 stops the output of the negative process request signal D and proceeds to the process S26.

正パルス判定部25において処理S10は、正逆判定部22の正パルス信号Cを受け取ると正パルス信号Cをカウントし起点に到達したか否かを判定し、起点に達したときに処理S11へ移行し、起点に達していなければ処理S13へ移行する。   When the forward pulse determination unit 25 receives the forward pulse signal C from the forward / reverse determination unit 22, the forward pulse determination unit 25 counts the forward pulse signal C to determine whether or not the starting point has been reached. If the start point has not been reached, the process proceeds to step S13.

処理S11は、正起点越え信号Iの出力を停止して処理S12へ移行し、処理S12は正処理要求信号Hを出力して処理S16へ移行する。   The process S11 stops the output of the positive origin point crossing signal I and proceeds to the process S12, and the process S12 outputs the correct process request signal H and proceeds to the process S16.

処理S13は、正処理要求信号Hの出力を停止して処理S14へ移行する。処理S14は起点を超えるか否かを判定し、起点を超えたときに処理S15へ移行し、起点を超えた直後でなければ処理S01へ移行する。   In process S13, the output of the normal process request signal H is stopped, and the process proceeds to process S14. In step S14, it is determined whether or not the starting point is exceeded. When the starting point is exceeded, the process proceeds to step S15. When the starting point is not immediately exceeded, the process proceeds to step S01.

処理S15は、正起点越え信号Iを出力して処理S16へ移行する。   In step S15, the positive origin point crossing signal I is output and the process proceeds to step S16.

正要求判定部26において処理S21は、正パルス判定部25の正処理要求信号Hを受け取っていれば処理S22へ移行し、正処理要求信号Hを受け取っていなければ処理S01へ移行する。   In the positive request determination unit 26, the process S21 proceeds to the process S22 if the positive process request signal H of the positive pulse determination unit 25 is received, and proceeds to the process S01 if the positive process request signal H is not received.

処理S22は、負パルス判定部23の負起点越え信号Eがない場合には処理S23へ移行し、負起点越え信号Eがある場合には処理S24へ移行する。   The process S22 proceeds to the process S23 when there is no negative starting point crossing signal E of the negative pulse determination unit 23, and proceeds to the process S24 when there is a negative starting point crossing signal E.

処理S23は、加算信号Kを出力して、バッファ部27において正要求判定部26の加算信号Kを取ると現在保持しているバッファ値に予め定められた第2の所定量を加算して新たなバッファ値として保持して処理S24へ移行する。   The process S23 outputs the addition signal K, and when the buffer unit 27 takes the addition signal K of the correct request determination unit 26, adds a predetermined second predetermined amount to the buffer value currently held and newly The buffer value is stored as a new buffer value, and the process proceeds to step S24.

処理S24は、負起点越え信号Eの有無に係わらず負クリア信号Fを出力し、負パルス判定部23において正要求判定部26の負クリア信号Fを受け取ると負起点越え信号Eの出力を停止して処理S25へ移行する。   The process S24 outputs the negative clear signal F regardless of the presence or absence of the negative starting point crossing signal E, and stops the output of the negative starting point crossing signal E when the negative pulse determination unit 23 receives the negative clear signal F of the positive request determination unit 26. Then, the process proceeds to process S25.

正パルス判定部25において処理S25は、正処理要求信号Hの出力を停止して処理S26へ移行する。   In the positive pulse determination unit 25, the process S25 stops the output of the positive process request signal H and proceeds to the process S26.

バッファ部27において処理S26は、加算後のバッファ値が予め定めていた積算単位値を越えたときにバッファオーバ信号Lを出力して処理S27へ移行し、積算単位値を越えていなければバッファオーバ信号Lの出力を停止して処理S01へ移行する。   In the buffer unit 27, the process S26 outputs a buffer over signal L when the buffer value after the addition exceeds a predetermined integration unit value, and proceeds to the process S27. The output of the signal L is stopped and the process proceeds to step S01.

処理S27は、加算後のバッファ値から積算単位値を差し引いて新たなバッファ値として保持し直して処理S28へ移行する。   In the process S27, the integration unit value is subtracted from the buffer value after the addition and is held again as a new buffer value, and the process proceeds to the process S28.

指針値保持部28において処理S28は、バッファ部27のバッファオーバ信号Lを受け取ると現在保持している指針値に積算単位値を加算して新たな指針値として保持新たな指針値として保持して処理S29へ移行する。   When the pointer value holding unit 28 receives the buffer over signal L of the buffer unit 27, the process S28 adds the integrated unit value to the currently held pointer value and holds it as a new pointer value. Control goes to step S29.

処理S29は、保持している指針値の値をLCD等の表示デバイスで表示して処理S01へ移行する。   In process S29, the value of the stored pointer value is displayed on a display device such as an LCD, and the process proceeds to process S01.

以上のように、本実施の形態において、図3(3)に記載したように起点に達した時点でバッファ値を増減させるようにしても、供給ガスの圧力変動に伴う脈動により、例えば「起点D(分割No.13)」の近辺を行き来しただけではバッファ値の増減を繰り返さないようにすると共に、起点から次の起点(例えば「起点D(分割No.13)」と「起点E(分割No.17)」)の1回転パルスが計れた時点でバッファ値を増減可能にすることで体積流量に基づく第1の所定量と第2の所定量の加減算を実施することが可能となり、ガス通路を流れた実流量値と指針値のズレを防止し指針値の精度を向上させることができる。   As described above, in the present embodiment, even if the buffer value is increased or decreased when reaching the starting point as described in FIG. 3 (3), for example, the “starting point” is caused by the pulsation accompanying the pressure fluctuation of the supply gas. The buffer value is not repeatedly increased or decreased just by moving around the vicinity of “D (division No. 13)”, and from the starting point to the next starting point (for example, “starting point D (division No. 13)” and “starting point E (division) No. 17) ”)) When one rotation pulse is measured, the buffer value can be increased / decreased, so that addition / subtraction of the first predetermined amount and the second predetermined amount based on the volume flow rate can be performed. Deviation between the actual flow value flowing through the passage and the guide value can be prevented, and the accuracy of the guide value can be improved.

この結果、逆流方向の流量を伴う瞬時流量を計測できない膜式であっても単純に起点到達時にバッファ値の加減算を実施することを防止し、バッファ部のバッファ値を適正化できるようになるため精度と利便性を向上させることができる。   As a result, even in the case of a membrane type that cannot measure the instantaneous flow rate with the flow rate in the reverse flow direction, it is possible to simply prevent the buffer value from being added or subtracted when the starting point is reached and to optimize the buffer value of the buffer unit. Accuracy and convenience can be improved.

以上のように、本発明にかかるガス遮断装置は逆流方向の流量を伴う瞬時流量を取得できない計測方法であっても相殺バッファを用いることで実流量値と指針値のズレを防止し改善することが可能となるので、ガスを水等に置き換えれば、水道メータ等の用途にも適用できる。   As described above, the gas shutoff device according to the present invention prevents and improves the deviation between the actual flow rate value and the pointer value by using the canceling buffer even in the measurement method that cannot acquire the instantaneous flow rate with the flow rate in the reverse flow direction. Therefore, if the gas is replaced with water or the like, it can be applied to uses such as a water meter.

21 流量検出部
22 正逆判定部
23 負パルス判定部
24 負要求判定部
25 正パルス判定部
26 正要求判定部
27 バッファ部
28 指針値保持部
DESCRIPTION OF SYMBOLS 21 Flow rate detection part 22 Forward / reverse determination part 23 Negative pulse determination part 24 Negative request determination part 25 Positive pulse determination part 26 Positive request determination part 27 Buffer part 28 Pointer value holding part

Claims (1)

ガス通路内を通過するガス流量に基づいた複数のパルス信号を流量信号として出力する流量検出部と、
前記流量信号に基づき前記ガス流量の正逆方向を判定し、逆流方向であれば負パルス信号を、正流方向であれば正パルス信号を出力する正逆判定部と、
前記複数のパルス信号のHi,Loの組み合わせが所定の組み合わせとなる状態を起点とするとき、前記負パルス信号をカウントし、逆流方向側の起点に到達したときに負処理要求信号を出力し、さらに前記逆流方向側の起点を超えたときに負起点越え信号を出力し、負クリア信号を受け取ると前記負起点越え信号の出力を停止する負パルス判定部と、
前記負処理要求信号を受け取ると、正起点越え信号がない場合には減算信号を出力し、前記正起点越え信号の有無に係わらず正クリア信号を出力する負要求判定部と、
前記正パルス信号をカウントし、正流方向側の起点に到達したときに正処理要求信号を出力し、さらに前記正流方向側の起点を超えたときに前記正起点越え信号を出力し、前記正クリア信号を受け取ると前記正起点越え信号の出力を停止する正パルス判定部と、
前記正処理要求信号を受け取ると、前記負起点越え信号がない場合には加算信号を出力し、前記負起点越え信号の有無に係わらず前記負クリア信号を出力する正要求判定部と、
前記減算信号を受け取ると現在保持しているバッファ値から予め定められた第1の所定量を減算して新たなバッファ値として保持し、前記加算信号を受け取ると現在保持しているバッファ値に予め定められた第2の所定量を加算して新たなバッファ値として保持し、加算後のバッファ値が予め定めていた積算単位値を越えたときにバッファオーバ信号を出力して加算後のバッファ値から前記積算単位値を差し引いて新たなバッファ値として保持し直すバッファ部と、
前記バッファオーバ信号を受け取ると現在保持している指針値に前記積算単位値を加算して新たな指針値として保持する指針値保持部と、を備えたことを特徴としたガス遮断装置。
A flow rate detector for outputting a plurality of pulse signals based on the gas flow rate passing through the gas passage as a flow rate signal;
A forward / reverse determination unit that determines a forward / reverse direction of the gas flow rate based on the flow rate signal, outputs a negative pulse signal if the flow direction is backward, and outputs a positive pulse signal if the direction is the forward flow direction,
When the starting point is a state where the combination of Hi and Lo of the plurality of pulse signals is a predetermined combination, the negative pulse signal is counted, and a negative processing request signal is output when the starting point on the reverse flow direction side is reached, Further, when the starting point on the reverse flow direction side is exceeded, a negative starting point exceeding signal is output, and when a negative clear signal is received, the negative pulse determining unit that stops outputting the negative starting point exceeding signal,
When receiving the negative processing request signal, when there is no signal over the positive origin, outputs a subtraction signal, a negative request determination unit that outputs a positive clear signal regardless of the presence of the signal over the positive origin, and
Counting the positive pulse signal, outputting a positive processing request signal when reaching the starting point on the positive flow direction side, and further outputting the positive starting point excess signal when exceeding the starting point on the positive flow direction side, A positive pulse determination unit that stops the output of the positive origin point exceeding signal when receiving a positive clear signal;
When the positive processing request signal is received, an addition signal is output when there is no signal exceeding the negative starting point, and a positive request determining unit that outputs the negative clear signal regardless of the presence or absence of the negative starting point exceeding signal;
When the subtraction signal is received, a predetermined first predetermined amount is subtracted from the currently held buffer value and held as a new buffer value. When the addition signal is received, the buffer value currently held is preliminarily stored. A predetermined second predetermined amount is added and held as a new buffer value. When the added buffer value exceeds a predetermined integration unit value, a buffer over signal is output and the added buffer value A buffer unit that subtracts the integration unit value from the data and stores it again as a new buffer value;
A gas shut-off device, comprising: a pointer value holding section that adds the integrated unit value to a currently held pointer value when the buffer over signal is received and holds the pointer value as a new pointer value.
JP2013107913A 2013-05-22 2013-05-22 Gas shut-off device Active JP6037937B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013107913A JP6037937B2 (en) 2013-05-22 2013-05-22 Gas shut-off device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013107913A JP6037937B2 (en) 2013-05-22 2013-05-22 Gas shut-off device

Publications (2)

Publication Number Publication Date
JP2014228379A JP2014228379A (en) 2014-12-08
JP6037937B2 true JP6037937B2 (en) 2016-12-07

Family

ID=52128352

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013107913A Active JP6037937B2 (en) 2013-05-22 2013-05-22 Gas shut-off device

Country Status (1)

Country Link
JP (1) JP6037937B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021063692A (en) * 2019-10-11 2021-04-22 アズビル金門株式会社 Flowmeter and flow volume measurement method

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4939708B1 (en) * 1969-12-02 1974-10-28
JPS6015182Y2 (en) * 1978-11-10 1985-05-14 三洋電機株式会社 Rotating body rotation direction discrimination circuit
JPS5658333A (en) * 1979-10-19 1981-05-21 Ricoh Co Ltd Counting circuit
JPS56117172A (en) * 1980-02-20 1981-09-14 Kazuo Oike Detector for forward-backward rotating quantity
JPS59135415U (en) * 1983-03-01 1984-09-10 日本電気株式会社 Rotation detection circuit to prevent false counting
JPS6239338U (en) * 1985-08-28 1987-03-09
JPS6257987A (en) * 1985-09-05 1987-03-13 株式会社ブリヂストン Treatment for impoving fatique resistance of 4, 6-nylon
JP2579834B2 (en) * 1990-10-22 1997-02-12 日東精工株式会社 Flow meter abnormality determination method
JP3361965B2 (en) * 1997-09-01 2003-01-07 三菱電機株式会社 Flowmeter
JP4442152B2 (en) * 2003-08-06 2010-03-31 パナソニック株式会社 Gas shut-off device

Also Published As

Publication number Publication date
JP2014228379A (en) 2014-12-08

Similar Documents

Publication Publication Date Title
JP6037937B2 (en) Gas shut-off device
EP3584541B1 (en) Initialization method and initialization device
JP5478477B2 (en) Meter system
JP4956342B2 (en) Gas shut-off device
JP5584634B2 (en) Angular velocity detection device and angular velocity error detection method
KR101073239B1 (en) Gas interrupting device
KR20000053750A (en) The electronic water guage
JP2008267995A (en) Flow presence determining method in gas meter
US6542832B1 (en) Error detection and correction system for use with dual-pulse output metering devices
KR20150008650A (en) Motor controller
US7046172B2 (en) Dual optical angular encoder
JP5147473B2 (en) Flow measuring device
JP5150537B2 (en) Error detection method in gas meter and flow measurement
JP6031170B1 (en) Flow rate measurement method
JP3203782B2 (en) Flow measurement device
JP2010008200A (en) Gas meter
JP2005300178A (en) Water meter
JP6528120B2 (en) Gas meter evaluation system and gas meter used therefor
JP6180623B2 (en) Vehicle speed sensor failure detection device and control method thereof
JP2009250823A (en) Flowmeter
JP2002221439A (en) Electronic water service meter system
US9483231B2 (en) Signal processing device and method
CN107543589B (en) Metering device
JP2003042442A (en) Gas circuit breaker
KR100417946B1 (en) Determining meterage method of gas meter

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160127

TRDD Decision of grant or rejection written
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20161012

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20161025

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20161101

R150 Certificate of patent or registration of utility model

Ref document number: 6037937

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250