JP2015064654A - Measurement system and measurement method - Google Patents

Measurement system and measurement method Download PDF

Info

Publication number
JP2015064654A
JP2015064654A JP2013196943A JP2013196943A JP2015064654A JP 2015064654 A JP2015064654 A JP 2015064654A JP 2013196943 A JP2013196943 A JP 2013196943A JP 2013196943 A JP2013196943 A JP 2013196943A JP 2015064654 A JP2015064654 A JP 2015064654A
Authority
JP
Japan
Prior art keywords
measurement
value
processing unit
acquired
sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2013196943A
Other languages
Japanese (ja)
Other versions
JP6248502B2 (en
Inventor
穂高 上倉
Hodaka Kamikura
穂高 上倉
尚彦 小田桐
Naohiko Odagiri
尚彦 小田桐
潤一 滝口
Junichi Takiguchi
潤一 滝口
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP2013196943A priority Critical patent/JP6248502B2/en
Publication of JP2015064654A publication Critical patent/JP2015064654A/en
Application granted granted Critical
Publication of JP6248502B2 publication Critical patent/JP6248502B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce time from activation to initial output for a measurement result in a measurement system.SOLUTION: The measurement system comprises: a measurement processing unit for repeating processing for acquiring a sensor value and converting the value into a measurement value; and a calculation processing unit for repeating processing for acquiring a measurement value for a predetermined period to perform calculation. The measurement processing unit includes acquisition information generation means for generating acquisition information showing whether a sensor value is acquired after activation. The calculation processing unit acquires the acquisition information together with a measurement value from the measurement processing unit. When the acquisition information shows the fact that a sensor value is not acquired, the calculation processing unit does not perform calculation.

Description

本発明はセンサ値を取得して測定値に変換する測定処理部と測定値を用いて演算を行なう演算処理部とを備えた測定システムおよびそのような測定システムにおける測定方法に関する。   The present invention relates to a measurement system including a measurement processing unit that acquires a sensor value and converts it into a measurement value, and an arithmetic processing unit that performs an operation using the measurement value, and a measurement method in such a measurement system.

プラント等では各種のフィールド機器が用いられているが、代表的なフィールド機器として温度、圧力、流量等の物理量を測定して出力する測定システムがある。   Various field devices are used in plants and the like, and representative field devices include measurement systems that measure and output physical quantities such as temperature, pressure, and flow rate.

測定システムでは、センサから取得したセンサ値に基づいて演算を行ない、演算結果を測定結果として出力することが多いが、一般に、これらの一連の処理は単一の処理装置で行なわれている。近年、装置の共用化を図るために、機能毎にモジュール化することが行なわれるようになっており、測定システムでもセンサ値を取得する取得処理部と演算を行なう演算処理部とでモジュール化を進めることにより、それぞれのモジュールの汎用化や組み合わせ自由度の向上等が期待される。   In a measurement system, calculation is often performed based on a sensor value acquired from a sensor, and the calculation result is output as a measurement result. In general, a series of these processes are performed by a single processing device. In recent years, modules have been modularized for each function in order to share the equipment. In the measurement system, the acquisition processing unit for acquiring the sensor value and the arithmetic processing unit for performing the calculation are modularized. By proceeding, it is expected that each module will be generalized and the degree of freedom of combination will be improved.

図13は、モジュール化を行なった場合に想定される測定システムの構成例を示すブロック図である。本図に示すように測定システム300は、測定処理部310、センサ320、演算処理部330を備えている。測定処理部310、演算処理部330は、CPU、メモリ、入出力回路等を備えたマイクロコントローラ等で構成され、センサ320は測定対象に応じたデバイスが利用される。例えば、測定対象が温度であれば、熱電対、測温抵抗体等が用いられる。測定処理部310と演算処理部330とは独立に構成されており、Modbus等の通信プロトコルにより情報のやり取りを行なう。   FIG. 13 is a block diagram illustrating a configuration example of a measurement system assumed when modularization is performed. As shown in the figure, the measurement system 300 includes a measurement processing unit 310, a sensor 320, and an arithmetic processing unit 330. The measurement processing unit 310 and the arithmetic processing unit 330 are configured by a microcontroller having a CPU, a memory, an input / output circuit, and the like, and the sensor 320 uses a device corresponding to the measurement target. For example, if the measurement object is temperature, a thermocouple, a resistance temperature detector, or the like is used. The measurement processing unit 310 and the arithmetic processing unit 330 are configured independently, and exchange information using a communication protocol such as Modbus.

測定処理部310は、センサ320を用いてセンサ値を取得し、デジタル変換等のデータ変換処理を行ない、内部のメモリに測定値として格納する。演算処理部330は、測定処理部310から測定値を取得し、出力すべき物理量への変換、補正、単位変換、アラーム判定等の演算を行ない、得られた値やアラーム情報を測定結果として表示装置や上位装置等に出力する。   The measurement processing unit 310 acquires a sensor value using the sensor 320, performs data conversion processing such as digital conversion, and stores it as a measurement value in an internal memory. The arithmetic processing unit 330 acquires measurement values from the measurement processing unit 310, performs calculations such as conversion to physical quantities to be output, correction, unit conversion, and alarm determination, and displays the obtained values and alarm information as measurement results. Output to the device or host device.

測定処理部310のセンサ値の取得タイミングと、演算処理部330の測定値の取得タイミングとは非同期であり、それぞれ独立した周期でデータの取得を行なうものとする。   The sensor value acquisition timing of the measurement processing unit 310 and the measurement value acquisition timing of the arithmetic processing unit 330 are asynchronous, and data acquisition is performed in independent cycles.

演算処理部330が測定処理部310から測定値を取得する場合には、測定処理部310に測定値要求を送り、その返信として測定処理部310から測定値を受信するものとする。これは、演算処理部330がスペック上要求される測定結果の出力レートに間に合うように測定値を自主的に取得する必要があるのと、通信プロトコルの要求から、演算処理部330をマスタとして動作させ、測定処理部310をスレーブとして動作させるためである。   When the arithmetic processing unit 330 acquires a measurement value from the measurement processing unit 310, a measurement value request is sent to the measurement processing unit 310, and a measurement value is received from the measurement processing unit 310 as a reply. This is because it is necessary for the arithmetic processing unit 330 to acquire measurement values independently in time for the output rate of the measurement result required in the specification, and the arithmetic processing unit 330 operates as a master from the request of the communication protocol. This is because the measurement processing unit 310 is operated as a slave.

図14は、起動時における測定処理部310のセンサ値の取得タイミングと、演算処理部330の測定値の取得タイミングとを説明するタイミング図である。時刻t0において測定システム300の電源がONになると、測定処理部310、演算処理部330はそれぞれ起動処理を開始する。   FIG. 14 is a timing chart for explaining the sensor value acquisition timing of the measurement processing unit 310 and the measurement value acquisition timing of the arithmetic processing unit 330 at the time of activation. When the power supply of the measurement system 300 is turned on at time t0, the measurement processing unit 310 and the arithmetic processing unit 330 each start activation processing.

時刻t1で演算処理部330の起動処理が完了するが、測定処理部310では、センサ関連のウォームアップを行なう必要があるため、起動処理により長い時間を要する。   Although the startup processing of the arithmetic processing unit 330 is completed at time t1, the measurement processing unit 310 needs to perform warm-up related to the sensor, and thus it takes a long time for the startup processing.

時刻t2で測定処理部310の起動処理が完了すると、測定処理部310が測定を開始し、時刻t3に1回目のセンサ値取得を行なう。演算処理部330は、1回目のセンサ値取得が完了していると想定される時刻t4に測定処理部310に測定値要求を送り、その返信として測定値を取得する。   When the activation processing of the measurement processing unit 310 is completed at time t2, the measurement processing unit 310 starts measurement, and acquires the first sensor value at time t3. The arithmetic processing unit 330 sends a measurement value request to the measurement processing unit 310 at time t4 when it is assumed that the first sensor value acquisition is completed, and acquires the measurement value as a reply.

以降は、所定間隔で測定処理部310がセンサ値を取得する処理と、所定間隔で演算処理部330が測定処理部310に測定値要求を送り、測定値を取得するという処理が繰り返される。   Thereafter, the process in which the measurement processing unit 310 acquires sensor values at predetermined intervals and the processing in which the arithmetic processing unit 330 sends a measurement value request to the measurement processing unit 310 at predetermined intervals to acquire measurement values are repeated.

特開2013−160505号公報JP 2013-160505 A

演算処理部330は、測定処理部310が1回目のセンサ値を取得した後に1回目の測定値要求を行なうために、起動時あるいは起動処理完了時から所定の待ち時間経過後に1回目の測定値要求を行なうようにしている。このとき、測定処理部310が確実に1回目のセンサ値を取得している必要があるため、ウォームアップ完了の遅れ等に対応した十分なマージンを設定しなければならず、その分、起動時から初回の測定結果が出力されるまでの時間が長くなることになる。   The arithmetic processing unit 330 makes a first measurement value after a predetermined waiting time has elapsed since the start or completion of the start-up process in order to make a first measurement value request after the measurement processing unit 310 has acquired the first sensor value. I make a request. At this time, since it is necessary for the measurement processing unit 310 to reliably acquire the first sensor value, a sufficient margin corresponding to a delay in warm-up completion or the like must be set. From this time, the time until the first measurement result is output becomes longer.

起動時から初回の測定結果出力までの時間を短縮することができれば、ユーザの待ち時間が短くなって使用勝手が向上するのに加え、製品スペックとして現わるため測定システムの商品価値を高めることができる。   If the time from start-up to the first measurement result output can be shortened, the waiting time of the user will be shortened and the usability will be improved. it can.

そこで、本発明は、センサ値を取得して測定値に変換する測定処理部と測定値を取得して演算を行なう演算処理部とを備えた測定システムにおいて、起動時から初回の測定結果出力までの時間を短縮することを目的とする。   Therefore, the present invention provides a measurement system including a measurement processing unit that acquires a sensor value and converts it into a measurement value, and an arithmetic processing unit that acquires the measurement value and performs an operation, from the start to the first measurement result output. The purpose is to shorten the time.

上記課題を解決するため、本発明の第1の態様である測定システムは、センサ値を取得して測定値に変換する処理を繰り返す測定処理部と、前記測定値を所定の期間で取得して演算を行なう処理を繰り返す演算処理部とを備えた測定システムであって、前記測定処理部は、起動後に前記センサ値を取得したか否かを示す取得情報を生成する取得情報生成手段を備え、前記演算処理部は、前記測定処理部から前記測定値とともに、前記取得情報を取得し、前記取得情報がセンサ値を取得していないことを示す場合には、前記演算を行なわないことを特徴とする。
ここで、前記演算処理部は、前記取得情報がセンサ値を取得していないことを示す場合は、前記測定値および前記取得情報を取得する繰り返し期間を前記所定の期間より短くすることが望ましい。
また、前記取得情報生成手段は、前記センサ値を取得した回数をカウントするカウンタであり、前記取得情報は、前記カウンタのカウント値であり、前記取得情報がセンサ値を取得していないことを示す場合とは、前記カウント値が初期値であることとすることができる。
また、前記演算処理部は、前記カウント値が初期値でない場合であっても、今回取得した前記カウント値が前回の取得時から変化していない場合は、前記演算を行なわないようにしてもよい。
また、前記演算処理部は、今回取得した前記カウント値が前回の取得時から変化していない状況が所定期間または所定回数継続した場合に、警告を出力するようにしてもよい。
また、前記演算処理部は、今回取得した前記カウント値が前回の取得時から2以上変化している場合に、警告を出力するようにしてもよい。
上記課題を解決するため、本発明の第2の態様である測定システムは、複数個のセンサ値を取得してそれぞれ測定値に変換する処理を繰り返す測定処理部と、前記複数個の測定値を所定の期間で取得して演算を行なう処理を繰り返す演算処理部とを備えた測定システムであって、前記測定処理部は、起動後に前記センサ値を取得したか否かを示す取得情報を生成する取得情報生成手段をセンサ値毎に備え、前記演算処理部は、各測定値について前記測定処理部から前記測定値とともに、前記取得情報を取得し、いずれかの取得情報がセンサ値を取得していないことを示す場合には、前記演算を行なわないことを特徴とする。
上記課題を解決するため、本発明の第3の態様である測定方法は、センサ値を取得して測定値に変換する処理を繰り返す測定処理部と、前記測定値を所定の期間で取得して演算を行なう処理を繰り返す演算処理部とを備えた測定システムにおける測定方法であって、前記測定処理部が、起動後に前記センサ値を取得したか否かを示す取得情報を記録し、前記演算処理部が、前記測定処理部から前記測定値とともに、前記取得情報を取得し、前記取得情報がセンサ値を取得していないことを示す場合には、前記演算を行なわないことを特徴とする。
In order to solve the above-described problem, a measurement system according to a first aspect of the present invention includes a measurement processing unit that repeats processing for acquiring a sensor value and converting it to a measurement value, and acquiring the measurement value in a predetermined period. A measurement system including a calculation processing unit that repeats a process for performing calculation, the measurement processing unit including acquisition information generation means for generating acquisition information indicating whether the sensor value has been acquired after activation, The calculation processing unit acquires the acquisition information together with the measurement value from the measurement processing unit, and does not perform the calculation when the acquisition information indicates that a sensor value is not acquired. To do.
Here, when the acquired information indicates that the sensor value is not acquired, the arithmetic processing unit desirably makes a repetition period for acquiring the measurement value and the acquired information shorter than the predetermined period.
Further, the acquisition information generation means is a counter that counts the number of times the sensor value is acquired, and the acquisition information is a count value of the counter, indicating that the acquisition information does not acquire a sensor value. The case may be that the count value is an initial value.
Further, the calculation processing unit may not perform the calculation when the count value acquired this time has not changed from the previous acquisition time even when the count value is not an initial value. .
The arithmetic processing unit may output a warning when a state in which the count value acquired this time has not changed since the previous acquisition has continued for a predetermined period or a predetermined number of times.
Further, the arithmetic processing unit may output a warning when the count value acquired this time has changed by two or more from the previous acquisition time.
In order to solve the above-described problem, a measurement system according to a second aspect of the present invention includes a measurement processing unit that repeats a process of acquiring a plurality of sensor values and converting each of the sensor values to a measurement value, and the plurality of measurement values. A measurement system including an arithmetic processing unit that repeats a process of acquiring and calculating in a predetermined period, wherein the measurement processing unit generates acquisition information indicating whether or not the sensor value has been acquired after activation An acquisition information generation unit is provided for each sensor value, and the calculation processing unit acquires the acquisition information together with the measurement value from the measurement processing unit for each measurement value, and any of the acquisition information acquires a sensor value. When it is indicated that there is no data, the calculation is not performed.
In order to solve the above-described problem, a measurement method according to a third aspect of the present invention includes a measurement processing unit that repeats a process of acquiring a sensor value and converting it to a measurement value, and acquiring the measurement value in a predetermined period. A measurement method in a measurement system including an arithmetic processing unit that repeats processing for performing calculation, wherein the measurement processing unit records acquisition information indicating whether the sensor value has been acquired after activation, and the arithmetic processing When the acquisition unit acquires the acquired information together with the measurement value from the measurement processing unit, and the acquisition information indicates that the sensor value is not acquired, the calculation is not performed.

本発明によれば、センサ値を取得して測定値に変換する測定処理部と測定値を取得して演算を行なう演算処理部とを備えた測定システムにおいて、起動時から初回の測定結果出力までの時間を短縮することができる。   According to the present invention, in a measurement system including a measurement processing unit that acquires a sensor value and converts it into a measurement value, and an arithmetic processing unit that acquires a measurement value and performs an operation, from startup to the first measurement result output Can be shortened.

本発明の第1実施形態に係る測定システムの構成を示すブロック図である。It is a block diagram which shows the structure of the measurement system which concerns on 1st Embodiment of this invention. 測定処理部の第1実施例における動作を説明するフローチャートである。It is a flowchart explaining the operation | movement in 1st Example of a measurement process part. 演算処理部の第1実施例における動作を説明するフローチャートである。It is a flowchart explaining the operation | movement in 1st Example of an arithmetic processing part. 第1実施例の測定システムにおける起動時の測定処理部のセンサ値の取得タイミングと、演算処理部の測定値の取得タイミングとを説明するタイミング図である。It is a timing diagram explaining the acquisition timing of the sensor value of the measurement process part at the time of starting in the measurement system of 1st Example, and the acquisition timing of the measurement value of an arithmetic process part. 本発明の第2実施形態に係る測定システムの構成を示すブロック図である。It is a block diagram which shows the structure of the measurement system which concerns on 2nd Embodiment of this invention. 演算処理部の第2実施例における動作を説明するフローチャートである。It is a flowchart explaining the operation | movement in 2nd Example of an arithmetic processing part. 本発明の第3実施形態に係る測定システムの構成を示すブロック図である。It is a block diagram which shows the structure of the measurement system which concerns on 3rd Embodiment of this invention. 演算処理部の第3実施例における動作を説明するフローチャートである。It is a flowchart explaining the operation | movement in 3rd Example of an arithmetic processing part. センサが複数の場合の構成を示すブロック図である。It is a block diagram which shows the structure in case there are multiple sensors. センサが複数の場合の演算開始タイミングを説明する図である。It is a figure explaining the calculation start timing in case there are a plurality of sensors. センサ値が複数の場合の構成を示すブロック図である。It is a block diagram which shows the structure in case there are multiple sensor values. センサおよび測定処理部が複数の場合の構成を示すブロック図である。It is a block diagram which shows the structure in case a sensor and a measurement process part are plurality. モジュール化構造を採用した場合の測定システムの構成例を示すブロック図である。It is a block diagram which shows the structural example of the measurement system at the time of employ | adopting a modular structure. 起動時における測定処理部のセンサ値の取得タイミングと、演算処理部の測定値の取得タイミングとを説明するタイミング図である。It is a timing diagram explaining the acquisition timing of the sensor value of the measurement processing part at the time of starting, and the acquisition timing of the measurement value of the arithmetic processing part.

本発明の実施の形態について図面を参照して説明する。図1は、本発明の第1実施形態に係る測定システムの構成を示すブロック図である。   Embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a measurement system according to the first embodiment of the present invention.

本図に示すように測定システム100は、測定処理部110、センサ120、演算処理部130を備えている。測定処理部110、演算処理部130は、CPU、メモリ、入出力回路等を備えたマイクロコントローラ等で構成され、センサ120は測定対象に応じたデバイスが利用される。例えば、測定対象が温度であれば、熱電対、測温抵抗体等が用いられる。測定処理部110と演算処理部130とは独立に構成されており、Modbus等の通信プロトコルにより情報のやり取りを行なっている。測定処理部110と演算処理部130とは、同じ筐体内に組み込んでもよいし、別装置として構成してもよい。   As shown in the figure, the measurement system 100 includes a measurement processing unit 110, a sensor 120, and an arithmetic processing unit 130. The measurement processing unit 110 and the arithmetic processing unit 130 are configured by a microcontroller having a CPU, a memory, an input / output circuit, and the like, and the sensor 120 uses a device corresponding to the measurement target. For example, if the measurement object is temperature, a thermocouple, a resistance temperature detector, or the like is used. The measurement processing unit 110 and the arithmetic processing unit 130 are configured independently, and exchange information with a communication protocol such as Modbus. The measurement processing unit 110 and the arithmetic processing unit 130 may be incorporated in the same housing or may be configured as separate devices.

測定処理部110は、センサ値取得部111、カウンタ112、変換部113、測定値メモリ114を備えている。   The measurement processing unit 110 includes a sensor value acquisition unit 111, a counter 112, a conversion unit 113, and a measurement value memory 114.

センサ値取得部111は、センサ120を用いてセンサ値を取得する。カウンタ112は、センサ値取得部111がセンサ値を取得した回数をカウントする。カウント値は起動時に初期値である0にリセットされる。このため、カウント値は、起動後にセンサ値を取得した回数を示すことになる。なお、カウント値は、所定の値、所定のタイミング等でリセットするようにしてもよい。   The sensor value acquisition unit 111 acquires a sensor value using the sensor 120. The counter 112 counts the number of times the sensor value acquisition unit 111 has acquired a sensor value. The count value is reset to 0 which is an initial value at the time of activation. For this reason, the count value indicates the number of times the sensor value is acquired after activation. The count value may be reset at a predetermined value, a predetermined timing, or the like.

変換部113は、センサ値取得部111がセンサ120から取得したセンサ値をデジタル変換等のデータ変換処理を行ない、測定値メモリ114に測定値として格納する。   The conversion unit 113 performs a data conversion process such as digital conversion on the sensor value acquired from the sensor 120 by the sensor value acquisition unit 111 and stores it as a measurement value in the measurement value memory 114.

演算処理部330は、測定値・カウント値取得部131、演算部132を備えている。   The calculation processing unit 330 includes a measurement value / count value acquisition unit 131 and a calculation unit 132.

測定値・カウント値取得部131は、測定処理部110に測定値・カウント値の取得要求を送り、測定値メモリ114に格納されている測定値とカウンタ112が計測するカウント値を取得する。   The measurement value / count value acquisition unit 131 sends a measurement value / count value acquisition request to the measurement processing unit 110 to acquire the measurement value stored in the measurement value memory 114 and the count value measured by the counter 112.

演算部132は、測定値・カウント値取得部131が取得した測定値に対して出力すべき物理量への変換、補正、単位変換、アラーム判定等の演算を行ない、得られた値やアラーム情報を測定結果として表示装置や上位装置等に出力する。ただし、演算部132は、起動後1回目の演算に用いる測定値について、カウント値が0のときの測定値は無効とし、演算は行なわない。   The calculation unit 132 performs calculations such as conversion to a physical quantity to be output, correction, unit conversion, alarm determination, and the like for the measurement value acquired by the measurement value / count value acquisition unit 131, and obtains the obtained value and alarm information. The measurement result is output to a display device or a host device. However, regarding the measurement value used for the first calculation after activation, the calculation unit 132 invalidates the measurement value when the count value is 0, and does not perform the calculation.

上記構成の測定システム100の動作について説明する。図2は、測定処理部110の動作を説明するフローチャートである。   The operation of the measurement system 100 having the above configuration will be described. FIG. 2 is a flowchart for explaining the operation of the measurement processing unit 110.

測定処理部110は、測定システム100の電源がONになると、ウォームアップを含む起動処理を行なう(S101)。   When the measurement system 100 is powered on, the measurement processing unit 110 performs start-up processing including warm-up (S101).

そして、ウォームアップが完了すると(S102:Yes)、センサ値の取得タイミング毎(S103:Yes)に、センサ値取得部111が、センサ120からセンサ値を取得する(S104)。センサ値を取得すると、カウンタ112のカウント値を増加させるとともに(S105)、変換部113によってセンサ値をデータ変換して測定値として測定値メモリ114に格納する(S106)。   When the warm-up is completed (S102: Yes), the sensor value acquisition unit 111 acquires the sensor value from the sensor 120 at every sensor value acquisition timing (S103: Yes) (S104). When the sensor value is acquired, the count value of the counter 112 is increased (S105), and the sensor value is converted into data by the conversion unit 113 and stored in the measurement value memory 114 as a measurement value (S106).

演算処理部330から測定値・カウント値取得要求を受信した場合には、測定値メモリ114に格納されている測定値とカウンタ112のカウント値とを演算処理部130に返信する(S108)。   When the measurement value / count value acquisition request is received from the arithmetic processing unit 330, the measurement value stored in the measurement value memory 114 and the count value of the counter 112 are returned to the arithmetic processing unit 130 (S108).

次に、演算処理部130の第1実施例における動作を図3のフローチャートを参照して説明する。   Next, the operation of the arithmetic processing unit 130 in the first embodiment will be described with reference to the flowchart of FIG.

演算処理部130は、測定システム100の電源がONになると、起動処理を行なう(S201)。   When the measurement system 100 is turned on, the arithmetic processing unit 130 performs activation processing (S201).

起動処理が完了すると、測定値・カウント値取得部131が、所定の初回取得要求タイミングで(S202:Yes)、測定処理部110に測定値・カウント値取得要求を送る(S203)。初回の測定値・カウント値取得要求は、測定処理部110の起動処理の確実な完了を待つ必要はなく、従来の待ち時間後の1回目の測定値要求よりも早いタイミングで送ることができる。   When the activation process is completed, the measurement value / count value acquisition unit 131 sends a measurement value / count value acquisition request to the measurement processing unit 110 at a predetermined initial acquisition request timing (S202: Yes). The first measurement value / count value acquisition request does not need to wait for the reliable completion of the activation process of the measurement processing unit 110, and can be sent at a timing earlier than the first measurement value request after the conventional waiting time.

測定値・カウント値取得要求の返信として測定値とカウント値とを取得すると(S204)、取得したカウント値が0かどうかを判定する(S205)。その結果、カウント値が0の場合は(S205:Yes)、測定処理部110でまだセンサ値取得が行なわれていないことを示すため、取得した測定値を無効として、次の初回取得要求のタイミングを待つ(S202)。次の初回取得要求までの間隔は、測定値を有効として演算を実行し、測定結果を出力し始めた後の通常の測定値取得要求の間隔よりも短くすることが望ましい。これにより、カウント値が1になった状態をより早く検出することが可能となる。   When the measurement value and the count value are acquired as a response to the measurement value / count value acquisition request (S204), it is determined whether the acquired count value is 0 (S205). As a result, when the count value is 0 (S205: Yes), it indicates that the sensor value has not yet been acquired by the measurement processing unit 110, so that the acquired measurement value is invalidated and the timing of the next initial acquisition request. (S202). It is desirable that the interval until the next first acquisition request is shorter than the interval between normal measurement value acquisition requests after the calculation is executed with the measurement values valid and measurement results are output. Thereby, it becomes possible to detect the state where the count value becomes 1 earlier.

一方、カウント値が0でない場合は(S205:No)、測定処理部110でセンサ値取得が行なわれたことを示すため、取得した測定値を用いて演算部132が初回の演算を行なう(S206)。そして、演算結果を初回の測定結果として出力する(S207)。これにより、起動時から初回の測定結果出力までの時間を短縮することができる。   On the other hand, when the count value is not 0 (S205: No), to indicate that the sensor value has been acquired by the measurement processing unit 110, the calculation unit 132 performs the first calculation using the acquired measurement value (S206). ). Then, the calculation result is output as the first measurement result (S207). As a result, the time from the start to the first measurement result output can be shortened.

以降は、従来の測定値取得要求の間隔と同じタイミングで(S208)、測定値・カウント値取得要求を測定処理部110に送り(S209)、測定値とカウント値とを取得する(S210)。ただし、測定値のみを取得するようにしてもよい。そして、取得した測定値を用いて演算部132が演算を行ない(S211)、演算結果を測定結果として出力する(S212)。そして、所定のタイミングで次の取得要求を行なう(S208)。   Thereafter, at the same timing as the conventional measurement value acquisition request interval (S208), a measurement value / count value acquisition request is sent to the measurement processing unit 110 (S209), and the measurement value and the count value are acquired (S210). However, you may make it acquire only a measured value. And the calculating part 132 calculates using the acquired measured value (S211), and outputs a calculation result as a measurement result (S212). Then, the next acquisition request is made at a predetermined timing (S208).

なお、第1実施例においては、カウンタ112に代えて、センサ値を取得したか否かを示すフラグを用いるようにしてもよい。センサ値を取得していない状態を0で表わし、センサ値を取得した状態を1で表わすとすると、演算処理部130は、フラグが0であれば取得した測定値を無効とし、フラグが1であれば取得した測定値を用いて演算を行なうようにすればよい。   In the first embodiment, a flag indicating whether or not a sensor value has been acquired may be used instead of the counter 112. Assuming that the sensor value is not acquired by 0 and the sensor value is acquired by 1, the arithmetic processing unit 130 invalidates the acquired measurement value if the flag is 0, and the flag is 1. If there is, calculation may be performed using the acquired measurement value.

図4は、第1実施例の測定システム100における起動時の測定処理部110のセンサ値の取得タイミングと、演算処理部130の測定値の取得タイミングとを説明するタイミング図である。   FIG. 4 is a timing diagram illustrating the sensor value acquisition timing of the measurement processing unit 110 and the measurement value acquisition timing of the arithmetic processing unit 130 at startup in the measurement system 100 of the first embodiment.

時刻t0において測定システム100の電源がONになると、測定処理部110、演算処理部130はそれぞれ起動処理を開始する。   When the power supply of the measurement system 100 is turned on at time t0, the measurement processing unit 110 and the arithmetic processing unit 130 start activation processes.

時刻t1で演算処理部130の起動処理が完了すると、従来の待ち時間を確保することなく時刻t2に測定値・カウント値取得要求を測定処理部110に送り、その返信として測定値とカウント値とを取得する。この時点でカウント値は0のため、取得した測定値は無効となる。   When the activation processing of the arithmetic processing unit 130 is completed at time t1, a measurement value / count value acquisition request is sent to the measurement processing unit 110 at time t2 without securing the conventional waiting time, and the measurement value, count value, To get. Since the count value is 0 at this time, the acquired measurement value becomes invalid.

時刻t3で測定処理部110の起動処理が完了すると、測定処理部110が測定を開始し、時刻t4に1回目のセンサ値取得を行なう。これによりカウント値は1になる。   When the activation process of the measurement processing unit 110 is completed at time t3, the measurement processing unit 110 starts measurement, and performs the first sensor value acquisition at time t4. As a result, the count value becomes 1.

時刻t5で演算処理部130が測定値・カウント値要求を測定処理部110に送り、その返信として測定値とカウント値とを取得すると、カウント値は1となっているため、取得した測定値を用いて演算を実行する。   When the arithmetic processing unit 130 sends a measurement value / count value request to the measurement processing unit 110 at time t5 and obtains the measurement value and the count value as a response, the count value is 1. Therefore, the obtained measurement value is To perform operations.

以降は、所定間隔で測定処理部110がセンサ値を取得し、演算処理部130が測定値・カウント値取得要求を送り、測定値とカウント値とを取得するという処理が繰り返される。   Thereafter, the measurement processing unit 110 acquires sensor values at a predetermined interval, the arithmetic processing unit 130 sends a measurement value / count value acquisition request, and the measurement value and the count value are acquired.

以上説明したように、第1実施例の測定システム100によれば、演算処理部130は起動後十分なマージンを含んだ待ち時間分待つことなく測定値の取得要求を行なうことができるため、起動時から初回の測定結果出力までの時間を短縮することができる。   As described above, according to the measurement system 100 of the first embodiment, the arithmetic processing unit 130 can make a measurement value acquisition request without waiting for a waiting time including a sufficient margin after activation. The time from the time to the first measurement result output can be shortened.

次に、本発明の第2実施例について説明する。第2実施例では、前回の演算時からカウント値が増加していれば演算を行なうようにする。すなわち、演算の開始後に、演算処理部130の測定値取得のタイミングが早すぎて、測定値が更新されていない場合は、演算を行なわないようにすることで演算処理部130の処理の効率を向上させる。   Next, a second embodiment of the present invention will be described. In the second embodiment, if the count value has increased since the previous calculation, the calculation is performed. That is, after the calculation is started, if the measurement value acquisition timing of the calculation processing unit 130 is too early and the measurement value is not updated, the processing efficiency of the calculation processing unit 130 is improved by not performing the calculation. Improve.

図5は、本発明の第2実施形態に係る測定システムの構成を示すブロック図である。第1実施例と同じブロックについては同じ符号を付している。   FIG. 5 is a block diagram showing a configuration of a measurement system according to the second embodiment of the present invention. The same blocks as those in the first embodiment are denoted by the same reference numerals.

本図に示すように第2実施例の測定システム100は、測定処理部110、センサ120、演算処理部130を備えている。測定処理部110およびセンサ120は、第1実施例と同様である。演算処理部130は、第1実施例の測定値・カウント値取得部131、演算部132に加えて、カウント値メモリ133を備えている。カウント値メモリ133は、測定処理部110から取得したカウント値を一時的に格納するメモリである。   As shown in the figure, the measurement system 100 according to the second embodiment includes a measurement processing unit 110, a sensor 120, and an arithmetic processing unit 130. The measurement processing unit 110 and the sensor 120 are the same as those in the first embodiment. The calculation processing unit 130 includes a count value memory 133 in addition to the measurement value / count value acquisition unit 131 and the calculation unit 132 of the first embodiment. The count value memory 133 is a memory that temporarily stores the count value acquired from the measurement processing unit 110.

上記構成の第2実施例の測定システム100の動作について説明する。測定処理部110の動作は第1実施例と同様である。図6は、第2実施例の演算処理部130の動作を説明するフローチャートである。   The operation of the measurement system 100 of the second embodiment having the above configuration will be described. The operation of the measurement processing unit 110 is the same as that of the first embodiment. FIG. 6 is a flowchart for explaining the operation of the arithmetic processing unit 130 of the second embodiment.

演算処理部130は、測定システム100の電源がONになると、起動処理を行なう(S301)。   When the measurement system 100 is turned on, the arithmetic processing unit 130 performs activation processing (S301).

起動処理が完了すると、測定値・カウント値取得部131が、所定の初回取得要求タイミングで(S302:Yes)、測定処理部110に測定値・カウント値取得要求を送る(S303)。初回の測定値・カウント値取得要求は、従来の待ち時間後の1回目の測定値要求よりも早いタイミングで送ることができる。   When the activation process is completed, the measurement value / count value acquisition unit 131 sends a measurement value / count value acquisition request to the measurement processing unit 110 at a predetermined initial acquisition request timing (S302: Yes) (S303). The first measurement value / count value acquisition request can be sent at a timing earlier than the first measurement value request after the conventional waiting time.

測定値・カウント値取得要求の返信として測定値とカウント値とを取得すると(S304)、カウント値をカウント値メモリ133に格納し(S305)、取得したカウント値が0かどうかを判定する(S306)。   When the measurement value and the count value are acquired as a response to the measurement value / count value acquisition request (S304), the count value is stored in the count value memory 133 (S305), and it is determined whether the acquired count value is 0 (S306). ).

その結果、カウント値が0の場合は(S306:Yes)、測定処理部110でまだセンサ値取得が行なわれていないことを示すため、取得した測定値を無効として、次の初回取得要求のタイミングを待つ(S302)。次の初回取得要求までの間隔は、通常の測定値取得要求の間隔よりも短くすることが望ましい。これにより、カウント値が1になった状態をより早く検出することが可能となる。   As a result, when the count value is 0 (S306: Yes), it indicates that the sensor value has not yet been acquired by the measurement processing unit 110, so that the acquired measurement value is invalidated and the timing of the next initial acquisition request. (S302). The interval until the next first acquisition request is preferably shorter than the interval between normal measurement value acquisition requests. Thereby, it becomes possible to detect the state where the count value becomes 1 earlier.

一方、カウント値が0でない場合は(S306:No)、測定処理部110でセンサ値取得が行なわれたことを示すため、取得した測定値を用いて演算部132が初回の演算を行なう(S307)。そして、演算結果を初回の測定結果として出力する(S308)。これにより、起動時点から初回の測定結果出力までの時間を短縮することができる。   On the other hand, when the count value is not 0 (S306: No), to indicate that the sensor value has been acquired by the measurement processing unit 110, the calculation unit 132 performs the first calculation using the acquired measurement value (S307). ). Then, the calculation result is output as the first measurement result (S308). As a result, it is possible to shorten the time from the start point to the first measurement result output.

以降は、従来の測定値取得要求の間隔と同じタイミングで(S309)、測定値・カウント値取得要求を測定処理部110に送り(S310)、測定値とカウント値とを取得する(S311)。   Thereafter, at the same timing as the conventional measurement value acquisition request interval (S309), a measurement value / count value acquisition request is sent to the measurement processing unit 110 (S310), and the measurement value and the count value are acquired (S311).

そして、今回最新に取得したカウント値がカウント値メモリ133に格納されている値(前回取得したカウント値)から増加しているかどうかを判定する(S312)。カウント値が増加していない場合(S312:No)は、前回の取得時から測定値が更新されていないことを示すため、再度、測定値・カウント値取得要求を測定処理部110に送り(S310)、測定値とカウント値とを取得する(S311)。このときの測定値・カウント値取得要求を送る間隔は、演算開始後の通常の間隔よりも短くすることが望ましい。なお、減算カウンタを用いる場合は、取得したカウント値がカウント値メモリ133に格納されている値から減少しているかどうかを判定すればよい。他の例についても同様である。   Then, it is determined whether or not the most recently acquired count value has increased from the value stored in the count value memory 133 (the previously acquired count value) (S312). If the count value has not increased (S312: No), the measurement value / count value acquisition request is sent again to the measurement processing unit 110 to indicate that the measurement value has not been updated since the previous acquisition (S310). ), The measurement value and the count value are acquired (S311). The interval for sending the measurement value / count value acquisition request at this time is preferably shorter than the normal interval after the start of calculation. In the case of using a subtraction counter, it may be determined whether or not the acquired count value is decreased from the value stored in the count value memory 133. The same applies to other examples.

取得したカウント値がカウント値メモリ133に格納されている値から増加している場合(S312:Yes)は、測定値が更新されていることを示すため、取得したカウント値をカウント値メモリ133に格納する(S313)とともに、取得した測定値を用いて演算部132が演算を行ない(S314)、演算結果を測定結果として出力する(S315)。そして、所定のタイミングで次の取得要求を行なう(S309)。   When the acquired count value is increased from the value stored in the count value memory 133 (S312: Yes), the acquired count value is stored in the count value memory 133 to indicate that the measurement value is updated. While storing (S313), the calculating part 132 calculates using the acquired measured value (S314), and outputs a calculation result as a measurement result (S315). Then, the next acquisition request is made at a predetermined timing (S309).

次に、本発明の第3実施例について説明する。第3実施例では、カウント値を用いて測定処理部110の診断を行ない、異常が検出されると演算処理部130がアラーム情報を出力する。   Next, a third embodiment of the present invention will be described. In the third embodiment, the measurement processing unit 110 is diagnosed using the count value, and when an abnormality is detected, the arithmetic processing unit 130 outputs alarm information.

図7は、本発明の第3実施形態に係る測定システムの構成を示すブロック図である。第1実施例、第2実施例と同じブロックについては同じ符号を付している。   FIG. 7 is a block diagram showing a configuration of a measurement system according to the third embodiment of the present invention. The same reference numerals are assigned to the same blocks as those in the first and second embodiments.

本図に示すように第3実施例の測定システム100は、測定処理部110、センサ120、演算処理部130を備えている。測定処理部110およびセンサ120は、第1実施例、第2実施例と同様である。演算処理部130は、第1実施例の測定値・カウント値取得部131、演算部132、第2実施例のカウント値メモリ133に加えて、異常判定部134を備えている。異常判定部134は、取得したカウント値に基づいて測定処理部110の異常を判定し、異常を検出した場合には、表示装置や上位装置等にアラーム情報を出力する。   As shown in the figure, the measurement system 100 according to the third embodiment includes a measurement processing unit 110, a sensor 120, and an arithmetic processing unit 130. The measurement processing unit 110 and the sensor 120 are the same as those in the first embodiment and the second embodiment. The calculation processing unit 130 includes an abnormality determination unit 134 in addition to the measurement value / count value acquisition unit 131, the calculation unit 132, and the count value memory 133 of the second embodiment. The abnormality determination unit 134 determines an abnormality in the measurement processing unit 110 based on the acquired count value, and outputs alarm information to a display device, a host device, or the like when an abnormality is detected.

上記構成の第2実施例の測定システム100の動作について説明する。測定処理部110の動作は第1実施例、第2実施例と同様である。図8は、演算処理部130の第3実施例の動作を説明するフローチャートである。初回測定結果を出力する処理(S308)までは、図6のフローチャートに示した第2実施例の動作と同様であるため、説明を省略する。   The operation of the measurement system 100 of the second embodiment having the above configuration will be described. The operation of the measurement processing unit 110 is the same as in the first and second embodiments. FIG. 8 is a flowchart for explaining the operation of the third embodiment of the arithmetic processing unit 130. The process up to the process of outputting the first measurement result (S308) is the same as the operation of the second embodiment shown in the flowchart of FIG.

初回測定結果の出力以降は、従来の測定値取得要求の間隔と同じタイミングで(S401)、測定値・カウント値取得要求を測定処理部110に送り(S402)、測定値とカウント値とを取得する(S403)。   After the output of the first measurement result, the measurement value / count value acquisition request is sent to the measurement processing unit 110 (S402) at the same timing as the interval of the conventional measurement value acquisition request (S401), and the measurement value and the count value are acquired. (S403).

そして、取得したカウント値がカウント値メモリ133に格納されている値から増加しているかどうかを判定し(S404)、増加していない場合(S404:No)は、さらに、カウント値が増加していない状態が所定期間または所定回数連続しているかどうかを異常判定部134が判定する(S405)。   Then, it is determined whether or not the acquired count value has increased from the value stored in the count value memory 133 (S404). If it has not increased (S404: No), the count value has further increased. The abnormality determination unit 134 determines whether there is no state for a predetermined period or a predetermined number of times (S405).

カウント値が増加していない状態が所定期間または所定回数連続している場合(S405:Yes)は、測定処理部110に何らかの異常が発生し、正常な周期で測定値を更新できなくなっているおそれがあるため、異常判定部134がアラームを出力して、異常が発生したことをユーザに通知する(S408)。   If the state where the count value has not increased continues for a predetermined period or a predetermined number of times (S405: Yes), there is a possibility that some abnormality has occurred in the measurement processing unit 110 and the measurement value cannot be updated at a normal cycle. Therefore, the abnormality determination unit 134 outputs an alarm to notify the user that an abnormality has occurred (S408).

カウント値が増加していない状態が所定期間または所定回数連続していない場合(S405:No)は、再度、測定値・カウント値取得要求を測定処理部110に送り(S402)、測定値とカウント値とを取得する(S403)。このときの測定値・カウント値取得要求を送る間隔は、通常の間隔よりも短くすることが望ましい。   When the state in which the count value has not increased does not continue for a predetermined period or a predetermined number of times (S405: No), a measurement value / count value acquisition request is sent again to the measurement processing unit 110 (S402), and the measurement value and count are counted. A value is acquired (S403). It is desirable that the interval for sending the measurement value / count value acquisition request at this time be shorter than the normal interval.

取得したカウント値がカウント値メモリ133に格納されている値から増加している場合(S404:Yes)は、取得したカウント値がカウント値メモリ133に格納されている値と連続しているかどうかを異常判定部134が判定する(S406)。   When the acquired count value has increased from the value stored in the count value memory 133 (S404: Yes), it is determined whether or not the acquired count value is continuous with the value stored in the count value memory 133. The abnormality determination unit 134 determines (S406).

取得したカウント値がカウント値メモリ133に格納されている値と連続していない場合(S406:Yes)は、測定値が飛ばされたことを意味しているため、通信異常や測定値取得周期の異常等が発生したおそれがあるとして、異常判定部134がアラームを出力して、異常が発生したことをユーザに通知する(S408)。この異常判定は、最大値、最小値測定等のすべての測定値を取得すべき測定において特に有効である。   If the acquired count value is not continuous with the value stored in the count value memory 133 (S406: Yes), it means that the measured value has been skipped. Assuming that an abnormality or the like has occurred, the abnormality determination unit 134 outputs an alarm to notify the user that an abnormality has occurred (S408). This abnormality determination is particularly effective in measurement in which all measurement values such as maximum value and minimum value measurement should be acquired.

取得したカウント値がカウント値メモリ133に格納されている値と連続している場合(S406:No)は、測定値が正常に更新されていることを示すため、取得したカウント値をカウント値メモリ133に格納するとともに(S407)、取得した測定値を用いて演算部132が演算を行ない(S409)、演算結果を測定結果として出力する(S410)。そして、所定のタイミングで次の取得要求を行なう(S401)。   When the acquired count value is continuous with the value stored in the count value memory 133 (S406: No), the acquired count value is stored in the count value memory to indicate that the measurement value is updated normally. The calculation unit 132 performs calculation using the acquired measurement value (S409) and outputs the calculation result as the measurement result (S410). Then, the next acquisition request is made at a predetermined timing (S401).

なお、上記の第1実施例〜第3実施例では、センサ120が1つでセンサ値も1つの場合について説明したが、本発明は、センサが複数個の場合やセンサ値が複数個の場合等にも適用することができる。図9は、センサが複数個の場合の測定システム100の構成を示すブロック図である。本図の例は第1実施例の構成に対応しているが、第2実施例、第3実施例の構成に対応させることもできる。   In the first to third embodiments, the case where there is one sensor 120 and one sensor value has been described. However, the present invention may be applied to a case where there are a plurality of sensors or a plurality of sensor values. The present invention can also be applied. FIG. 9 is a block diagram showing a configuration of the measurement system 100 when there are a plurality of sensors. The example of this figure corresponds to the configuration of the first embodiment, but it can also correspond to the configurations of the second and third embodiments.

本図に示すように、測定システム100は、3つのセンサ(センサa120a、センサb120b、センサc120c)を備え、測定処理部110は、各センサに対応させた3つのカウンタ(カウンタa112a、カウンタb112b、カウンタc112c)と3つの測定値メモリ(測定値メモリa114a、測定値メモリb114b、測定値メモリc114c)を備えている。   As shown in the figure, the measurement system 100 includes three sensors (sensor a 120a, sensor b 120b, sensor c 120c), and the measurement processing unit 110 includes three counters (counter a 112a, counter b 112b, Counter c112c) and three measurement value memories (measurement value memory a114a, measurement value memory b114b, measurement value memory c114c).

カウンタa112aは、センサa120aからのセンサ値取得回数をカウントし、カウンタb112bは、センサb120bからのセンサ値取得回数をカウントし、カウンタc112cは、センサc120cからのセンサ値取得回数をカウントする。   The counter a112a counts the number of sensor value acquisitions from the sensor a120a, the counter b112b counts the number of sensor value acquisitions from the sensor b120b, and the counter c112c counts the number of sensor value acquisitions from the sensor c120c.

また、測定値メモリa114aは、センサa120aから取得したセンサ値aに基づく測定値aを格納し、測定値メモリb114bは、センサb120bから取得したセンサ値bに基づく測定値bを格納し、測定値メモリc114cは、センサc120cから取得したセンサ値cに基づく測定値cを格納する。   The measurement value memory a114a stores the measurement value a based on the sensor value a acquired from the sensor a120a. The measurement value memory b114b stores the measurement value b based on the sensor value b acquired from the sensor b120b. The memory c114c stores a measurement value c based on the sensor value c acquired from the sensor c120c.

演算処理部130の測定値・カウント値取得部131が、測定処理部110に測定値・カウント値要求を送ると、測定処理部110は、測定値メモリa114aに格納されている測定値a、カウンタa112aのカウント値a、測定値メモリb114bに格納されている測定値b、カウンタb112bのカウント値b、測定値メモリc114cに格納されている測定値c、カウンタc112cのカウント値cを返送する。   When the measurement value / count value acquisition unit 131 of the arithmetic processing unit 130 sends a measurement value / count value request to the measurement processing unit 110, the measurement processing unit 110 measures the measurement value a and the counter stored in the measurement value memory a 114a. The count value a of a112a, the measurement value b stored in the measurement value memory b114b, the count value b of the counter b112b, the measurement value c stored in the measurement value memory c114c, and the count value c of the counter c112c are returned.

そして、演算処理部130の演算部132は、測定値a、測定値b、測定値cを用いて演算を行なって、測定結果を出力するものとする。   The calculation unit 132 of the calculation processing unit 130 performs a calculation using the measurement value a, the measurement value b, and the measurement value c, and outputs a measurement result.

各センサ120のウォームアップ完了時間が異なる場合、図10に示すように、各カウンタ112のカウントスタートタイミングが異なるが、演算部132は、すべてのカウント値が0でなくなった時点から演算を開始するようにする。この場合も、初回の測定値・カウント値要求は、各センサ120の確実なウォームアップ完了を待つことなく送ることができる。また、演算開始前の取得要求の間隔は、演算開始後の取得要求の間隔よりも短くすることが望ましい。   When the warm-up completion times of the sensors 120 are different, as shown in FIG. 10, the count start timings of the counters 112 are different, but the calculation unit 132 starts the calculation when all the count values are not zero. To. Also in this case, the first measurement value / count value request can be sent without waiting for the reliable warm-up completion of each sensor 120. Also, it is desirable that the interval between acquisition requests before the start of calculation is shorter than the interval between acquisition requests after the start of calculation.

図11は、1つのセンサ120で複数個のセンサ値を取得する場合の構成を示すブロック図である。本図の例では、測定処理部110は、センサ120からセンサ値a、センサ値b、センサ値cを取得する。この場合も、測定処理部110には、各センサ値に対応させた3つのカウンタ(カウンタa112a、カウンタb112b、カウンタc112c)と測定値メモリ(測定値メモリa114a、測定値メモリb114b、測定値メモリc114c)を備えさせることで、センサが複数個との場合と同じ処理を行なうことができる。   FIG. 11 is a block diagram showing a configuration when a plurality of sensor values are acquired by one sensor 120. In the example of this figure, the measurement processing unit 110 acquires the sensor value a, the sensor value b, and the sensor value c from the sensor 120. Also in this case, the measurement processing unit 110 includes three counters (counter a112a, counter b112b, counter c112c) corresponding to each sensor value and a measurement value memory (measurement value memory a114a, measurement value memory b114b, measurement value memory c114c). ), It is possible to perform the same processing as when there are a plurality of sensors.

図12は、複数個の測定処理部を設けた場合の構成を示すブロック図である。本図の例では、センサa120aからセンサ値aを取得する測定処理部a110aとセンサb120bからセンサ値bを取得する測定処理部b110bが設けられている。   FIG. 12 is a block diagram illustrating a configuration when a plurality of measurement processing units are provided. In the example of this figure, a measurement processing unit a110a that acquires the sensor value a from the sensor a120a and a measurement processing unit b110b that acquires the sensor value b from the sensor b120b are provided.

そして、演算処理部130の演算部132は、測定処理部a110aから取得した測定値aと測定処理部b110bから取得した測定値bとを用いて演算を行なって、測定結果を出力するものとする。   Then, the calculation unit 132 of the calculation processing unit 130 performs calculation using the measurement value a acquired from the measurement processing unit a110a and the measurement value b acquired from the measurement processing unit b110b, and outputs the measurement result. .

この場合、演算処理部130は測定処理部a110aと測定処理部b110bに同時に測定値・カウント値要求を送り、測定処理部a110aからの返信として測定値aとカウント値aとを取得し、測定処理部b110bからの返信として測定値bとカウント値bとを取得する。そして、カウント値a、カウント値bとも0でなくなった時点から演算を開始するようにすればよい。   In this case, the arithmetic processing unit 130 simultaneously sends a measurement value / count value request to the measurement processing unit a110a and the measurement processing unit b110b, and acquires the measurement value a and the count value a as a reply from the measurement processing unit a110a. The measurement value b and the count value b are acquired as a reply from the part b110b. Then, the calculation may be started when both the count value a and the count value b are not zero.

100…測定システム
110…測定処理部
111…センサ値取得部
112…カウンタ
113…変換部
114…測定値メモリ
120…センサ
130…演算処理部
131…測定値・カウント値取得部
132…演算部
133…カウント値メモリ
134…異常判定部
DESCRIPTION OF SYMBOLS 100 ... Measurement system 110 ... Measurement processing part 111 ... Sensor value acquisition part 112 ... Counter 113 ... Conversion part 114 ... Measurement value memory 120 ... Sensor 130 ... Calculation processing part 131 ... Measurement value / count value acquisition part 132 ... Calculation part 133 ... Count value memory 134 ... abnormality determination unit

Claims (8)

センサ値を取得して測定値に変換する処理を繰り返す測定処理部と、前記測定値を所定の期間で取得して演算を行なう処理を繰り返す演算処理部とを備えた測定システムであって、
前記測定処理部は、起動後に前記センサ値を取得したか否かを示す取得情報を生成する取得情報生成手段を備え、
前記演算処理部は、前記測定処理部から前記測定値とともに、前記取得情報を取得し、前記取得情報がセンサ値を取得していないことを示す場合には、前記演算を行なわないことを特徴とする測定システム。
A measurement system comprising: a measurement processing unit that repeats a process of acquiring a sensor value and converting it to a measurement value; and an arithmetic processing unit that repeats a process of acquiring the measurement value in a predetermined period and performing a calculation,
The measurement processing unit includes acquisition information generation means for generating acquisition information indicating whether the sensor value has been acquired after activation,
The calculation processing unit acquires the acquisition information together with the measurement value from the measurement processing unit, and does not perform the calculation when the acquisition information indicates that a sensor value is not acquired. Measuring system.
前記演算処理部は、前記取得情報がセンサ値を取得していないことを示す場合は、前記測定値および前記取得情報を取得する繰り返し期間を前記所定の期間より短くすることを特徴とする請求項1に記載の測定システム。   The arithmetic processing unit, when the acquired information indicates that a sensor value is not acquired, makes a repetition period for acquiring the measured value and the acquired information shorter than the predetermined period. The measurement system according to 1. 前記取得情報生成手段は、前記センサ値を取得した回数をカウントするカウンタであり、
前記取得情報は、前記カウンタのカウント値であり、
前記取得情報がセンサ値を取得していないことを示す場合とは、前記カウント値が初期値であることを特徴とする請求項1または2に記載の測定システム。
The acquisition information generation means is a counter that counts the number of times the sensor value is acquired;
The acquisition information is a count value of the counter,
The measurement system according to claim 1 or 2, wherein the case where the acquisition information indicates that the sensor value is not acquired is that the count value is an initial value.
前記演算処理部は、前記カウント値が初期値でない場合であっても、今回取得した前記カウント値が前回の取得時から変化していない場合は、前記演算を行なわないことを特徴とする請求項3に記載の測定システム。   The calculation processing unit does not perform the calculation if the count value acquired this time has not changed since the previous acquisition, even if the count value is not an initial value. 3. The measurement system according to 3. 前記演算処理部は、今回取得した前記カウント値が前回の取得時から変化していない状況が所定期間または所定回数継続した場合に、警告を出力することを特徴とする請求項4に記載の測定システム。   5. The measurement according to claim 4, wherein the arithmetic processing unit outputs a warning when a state in which the count value acquired this time has not changed since the previous acquisition has continued for a predetermined period or a predetermined number of times. system. 前記演算処理部は、今回取得した前記カウント値が前回の取得時から2以上変化している場合に、警告を出力することを特徴とする請求項3〜5のいずれか1項に記載の測定システム。   The measurement according to any one of claims 3 to 5, wherein the arithmetic processing unit outputs a warning when the count value acquired this time has changed by two or more from the previous acquisition time. system. 複数個のセンサ値を取得してそれぞれ測定値に変換する処理を繰り返す測定処理部と、前記複数個の測定値を所定の期間で取得して演算を行なう処理を繰り返す演算処理部とを備えた測定システムであって、
前記測定処理部は、起動後に前記センサ値を取得したか否かを示す取得情報を生成する取得情報生成手段をセンサ値毎に備え、
前記演算処理部は、各測定値について前記測定処理部から前記測定値とともに、前記取得情報を取得し、いずれかの取得情報がセンサ値を取得していないことを示す場合には、前記演算を行なわないことを特徴とする測定システム。
A measurement processing unit that repeats a process of acquiring a plurality of sensor values and converting each of the sensor values into a measurement value, and an arithmetic processing unit that repeats a process of acquiring the plurality of measurement values in a predetermined period and performing a calculation A measuring system,
The measurement processing unit includes, for each sensor value, an acquisition information generation unit that generates acquisition information indicating whether the sensor value has been acquired after activation.
The calculation processing unit acquires the acquisition information together with the measurement value from the measurement processing unit for each measurement value, and when any acquisition information indicates that the sensor value is not acquired, the calculation processing unit performs the calculation. Measurement system characterized by not performing.
センサ値を取得して測定値に変換する処理を繰り返す測定処理部と、前記測定値を所定の期間で取得して演算を行なう処理を繰り返す演算処理部とを備えた測定システムにおける測定方法であって、
前記測定処理部が、起動後に前記センサ値を取得したか否かを示す取得情報を記録し、
前記演算処理部が、前記測定処理部から前記測定値とともに、前記取得情報を取得し、前記取得情報がセンサ値を取得していないことを示す場合には、前記演算を行なわないことを特徴とする測定方法。
A measurement method in a measurement system comprising a measurement processing unit that repeats a process of acquiring a sensor value and converting it into a measurement value, and an arithmetic processing unit that repeats a process of acquiring the measurement value in a predetermined period and performing a calculation. And
The measurement processing unit records acquisition information indicating whether the sensor value has been acquired after activation,
The calculation processing unit acquires the acquisition information together with the measurement value from the measurement processing unit, and does not perform the calculation when the acquisition information indicates that a sensor value is not acquired. Measuring method to do.
JP2013196943A 2013-09-24 2013-09-24 Measuring system and measuring method Active JP6248502B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013196943A JP6248502B2 (en) 2013-09-24 2013-09-24 Measuring system and measuring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013196943A JP6248502B2 (en) 2013-09-24 2013-09-24 Measuring system and measuring method

Publications (2)

Publication Number Publication Date
JP2015064654A true JP2015064654A (en) 2015-04-09
JP6248502B2 JP6248502B2 (en) 2017-12-20

Family

ID=52832500

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013196943A Active JP6248502B2 (en) 2013-09-24 2013-09-24 Measuring system and measuring method

Country Status (1)

Country Link
JP (1) JP6248502B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022028049A (en) * 2020-11-20 2022-02-14 株式会社東京精密 Adapter and program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5831175A (en) * 1996-06-12 1998-11-03 Welch Allyn, Inc. Method and apparatus for correcting temperature variations in ultrasonic flowmeters
JPH1139586A (en) * 1997-07-23 1999-02-12 Denso Corp Automatic operation controller

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5831175A (en) * 1996-06-12 1998-11-03 Welch Allyn, Inc. Method and apparatus for correcting temperature variations in ultrasonic flowmeters
JPH1139586A (en) * 1997-07-23 1999-02-12 Denso Corp Automatic operation controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2022028049A (en) * 2020-11-20 2022-02-14 株式会社東京精密 Adapter and program

Also Published As

Publication number Publication date
JP6248502B2 (en) 2017-12-20

Similar Documents

Publication Publication Date Title
JP5358814B2 (en) Sensor information supplement system and sensor information supplement method
KR102374869B1 (en) Method and device for sensor synchronization
RU2007117365A (en) METHOD FOR EXTRAPOLATION OF INTERNAL TEMPERATURE OF STATOR WITH MINIMUM INTERVENTION IN OPERATION OF ELECTRIC MACHINE
US11493948B2 (en) Sensor-data processing device
JP2017211704A (en) Correlation computation circuit and semiconductor device
JP6248502B2 (en) Measuring system and measuring method
WO2016024483A1 (en) Analog/digital conversion circuit
JP6280051B2 (en) Time synchronization system
JP2009145346A (en) Detection system
JP6423971B2 (en) Functional unit and control device
WO2019239456A1 (en) Environment information management system, environment information management method, and environment information management program
JP2006252486A (en) Programmable controller system
JP2007078626A (en) Sensor module and sensor system using this
JP2016115219A (en) Data collection system
JP5548154B2 (en) How to check the pulse output of an accumulator and the accumulator
JP6112552B2 (en) Information collection system
JP2006250744A (en) Radio sensor device
JP6058408B2 (en) Monitoring system
JP2008117500A (en) Device test equipment
JP5294138B2 (en) Pulse output device
JP2009088953A (en) Pulse input device
CN113470331B (en) Differential temperature detection method and device of temperature sensing detector, temperature sensing detector and medium
JP2020087156A (en) Communication system and sensor
JP2020506376A (en) Determining presence and absence
JP2015155832A (en) Meter data verification device and meter data verification method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160420

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170321

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170418

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170607

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171106

R150 Certificate of patent or registration of utility model

Ref document number: 6248502

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150