JP2004334732A - Measuring device - Google Patents

Measuring device Download PDF

Info

Publication number
JP2004334732A
JP2004334732A JP2003132546A JP2003132546A JP2004334732A JP 2004334732 A JP2004334732 A JP 2004334732A JP 2003132546 A JP2003132546 A JP 2003132546A JP 2003132546 A JP2003132546 A JP 2003132546A JP 2004334732 A JP2004334732 A JP 2004334732A
Authority
JP
Japan
Prior art keywords
signal
unit
result
measurement
output unit
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.)
Withdrawn
Application number
JP2003132546A
Other languages
Japanese (ja)
Inventor
Tamaki Kono
環 河野
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 JP2003132546A priority Critical patent/JP2004334732A/en
Publication of JP2004334732A publication Critical patent/JP2004334732A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide measuring device which can perform more complicated controls by adding conditional branch to a computation function and by deciding a digital output, analog output, a manipulated signal or the like by using a computation result from the function. <P>SOLUTION: In the measuring device having a measurement part for measuring a predetermined input signal, a computation part for computing by using at least one of measured result and predetermined parameters, and a signal output part for outputting a signal according to the measurement result or a computed result, a conditional branch processing part is provided which designates computation to be executed for the computation part, on the basis of at least one of the measuring result and the parameters; and the signal output part outputs a signal according to the computed result. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、所定の信号出力部を備えたレコーダなどの測定装置に関し、詳しくは出力信号を決定する演算機能の改善に関するものである。
【0002】
【従来の技術】
従来の測定装置は、測定値などに基づき所定の信号を出力する信号出力部を備えている。
このような測定装置には、測定値がある値を越えた場合にアラームを発生し、このアラーム発生信号でデジタル出力部のリレー出力をオン/オフ制御するものがある。
【0003】
また、制御対象から入力される測定結果と、所定の設定値により測定結果が設定値になるように制御対象に対してPID制御を行うための操作信号を出力するものがある(例えば、特許文献1。)。
このような測定装置について図を用いて説明する。
【0004】
図5は従来の測定装置の一例を示した構成図である。
測定部1は制御対象(図示せず)からの測定信号を含む複数のアナログ入力信号をデジタル信号に変換する。
信号発生部2は、制御対象を操作するための操作信号を発生する。このような信号発生部2としては、例えばマイクロプロセッサ,D/A変換器,メモリなどで調節部として構成されたものを用いる。
【0005】
制御部50は、装置全体の制御を行うもので、例えば、プロセッサにより構成される。また、演算処理部51およびアラーム検出部52を備えている。演算処理部51は、測定部1から出力されるデジタル信号に対して加減乗除,開平,平均などの測定に関連した各種の演算処理を施す。アラーム検出部52は、測定結果や演算結果が予め設定された値を越えた場合などを検出し、アラーム信号を発生させ、リレー出力部7のリレーをオン/オフ制御する。
【0006】
操作部4は、制御対象をプログラム運転するためのプログラムパターンを始めとして、測定部の測定条件,演算処理部の演算条件,信号発生部の信号発生条件,表示部の表示条件などの所定のパラメータを入力するための機能を有する。
メモリ5は、プログラムパターンや測定部1から出力されるデジタル信号や演算処理部51の演算処理結果を格納する。
プログラムパターンとは、時間に対する設定値の変化パターンである。
【0007】
表示部6は、制御対象の測定信号に関連した情報や、制御対象の操作に関連した操作信号の情報などをグラフィック表示するものであり、表示器としてCRT,LCDなどを用いる。
アナログ出力部8は、測定結果や演算結果のデジタル値をアナログ変換して外部機器(図示せず)に出力する。
【0008】
図6は、従来の測定装置のアラーム検出および演算処理の流れを示した説明図である。
図6(a)では、前出のアラーム検出部31に、計測チャネルデータ、演算チャネルデータ、制御PVデータ、制御SVデータおよび制御MVデータ(以下、計測チャンネルデータ等という。)が入力される様子を示している。
【0009】
計測チャネルデータは、前出の測定部1が測定したアナログ入力のデジタルデータである。演算チャネルデータは、前出の演算処理部32の演算結果である。
ユーザに対しては、演算処理部32の演算機能は演算チャネルとして認識され、演算式の設定は演算チャネルに対する設定として行われる。
制御PVデータは、測定部1が制御対象からの信号を測定したデータ、制御SVデータは前出の操作部4から入力された制御目標となる設定値、制御MVデータは、前出の信号発生部2から出力するアナログ信号の基となるデータである。
【0010】
図6(b)では、前出の演算処理部52に、計測チャネルデータ等が入力され、これらのデータを用いて、演算処理部52で演算を行った後に再伝送する様子を示したものである。ここで、再伝送とは、前出のアナログ出力部8を使って計測データ等を外部機器に対してアナログ出力することをいう。
【0011】
【特許文献1】
特許第2624125号公報
【0012】
【発明が解決しようとする課題】
このような従来の測定装置では、リレー出力はアラーム検出によるリレーのオン/オフ制御しかできなかった。
このため、制御中の計測チャネルデータ等を用いてシーケンス的な制御を行う場合には、計測チャネルデータ等の検出をアラームの発生として扱い、これによるリレーのオン/オフ出力でしか実現するしかなかった。
従って、本来のアラームのもつ意味から逸脱したものになっていた。
【0013】
また、計測チャネルデータ等を用いた演算結果は、アラーム検出の判断条件や制御対象の制御条件となるものだが、この演算は、演算チャネルに対する演算式の記述として行われていた。つまり、演算チャネルを介してのみ実現できるものでしかなく、演算の種類も四則演算や論理演算や開平,平均くらいしかなかった。従って、演算結果を用いた制御やアラーム発生では、複雑な条件判断には対応できないという問題があった。
【0014】
本発明は上述した問題点を解決するためになされたものであり、演算機能に条件分岐を付加し、この演算結果を用いてデジタル出力、アナログ出力および操作信号などを決定することで、より複雑な制御を行うことができる測定装置を提供することを目的とする。
【0015】
【課題を解決するための手段】
本発明は次の通りの構成になった測定装置である。
【0016】
(1) 所定の入力信号を測定する測定部と、
測定結果および所定のパラメータの少なくともいずれか一方を用いて演算を行う演算処理部と、
測定結果または演算結果に応じた信号を出力する信号出力部と、
を有する測定装置において、
前記測定結果および前記パラメータの少なくともいずれか一方に基づき前記演算処理部に対して実行すべき演算を指定する条件分岐処理部を設け、
前記信号出力部はその演算結果に応じた信号を出力することを特徴とする測定装置。
【0017】
(2) 前記信号出力部は、リレーのオン/オフ信号を出力するリレー出力部であることを特徴とする(1)に記載の測定装置。
【0018】
(3) 前記信号出力部は、前記測定結果および前記パラメータを用いて所定の制御対象を操作する操作信号を発生させる信号発生部であることを特徴とする(1)に記載の測定装置。
【0019】
(4) 前記信号出力部は、測定結果や演算結果のデジタル値をアナログ変換して出力するアナログ出力部であることを特徴とする請求項1に記載の測定装置。
【0020】
(5) 前記分岐処理部が行う分岐処理は、ネスト構造になっていることを特徴とする(1)乃至(4)のいずれかに記載の測定装置。
に記載の測定装置。
【0021】
【発明の実施の形態】
図1は本発明の一実施例を示した構成図である。
尚、図1で前出の図と同様のものは同様の符号を付けてその部分の説明は省略する。
【0022】
図1において、従来例と相違する点は以下の通りである。
制御部3の演算処理部31に条件分岐処理部32を設けた。この条件分岐処理部32は、演算処理部31に入力された計測チャネルデータ等と操作部4から入力された分岐条件とを比較して分岐先を決定する。そして、その分岐先の演算処理が実行される。
【0023】
この演算結果により、リレー出力部7のリレーをオン/オフ制御したり、アナログ出力部8からアナログ信号を出力したり、信号発生部2から操作信号を出力したりする。また、この演算結果を用いてアラーム検出部33によりアラーム検出を行っても良い。
尚、信号発生部2,リレー出力部7,アナログ出力部8が請求の範囲でいう信号出力部に相当する。
【0024】
図2は、演算処理部の処理の流れを示す説明図である。
図2(a)は、前出の演算処理部31には、従来例と同様に計測チャネルデータ等が入力される様子を示している。演算処理部31では、前出の条件分岐処理部32により条件分岐処理が行われ、この結果により分岐先の演算式1,2,3のいずれかの演算が行われる。演算式1,2,3では、四則演算、論理演算などが行われ、この演算結果は、リレー出力,アナログ出力として出力される。
これにより、各信号出力が複雑な条件判断に対応することができる。
【0025】
また、図2(b)では、制御対象の出力信号から前出の測定部1で計測チャネルデータを生成し、これに対して条件分岐処理を行い、この結果により分岐先の演算式1,2,3のいずれかの演算を行う。この演算結果を制御PVデータとして用いる。
これにより、複雑な条件判断に対応した制御PVデータを制御で使用できる。
【0026】
上述した条件分岐処理の設定に使用される書式の一例を次に示す。
[式1?式2:式3]
ここで、式1部の演算結果が真の場合は、式2部が解となり、偽の場合は式3部が解となる。
【0027】
各式部は従来の演算式が記述可能であると共に、階層をもつことができる。階層とは、条件演算子がネスト構造をとることをいい、ネスト構造とは、条件分岐処理の中に条件分岐処理が存在する状態をいう。
【0028】
前出の条件分岐処理部32内では、式解釈部(図示せず)で演算子の解釈を行って逆ポーランド記法でトークン列をセットする。逆ポーランド記法とは、スタック操作で計算することを前提とした記法で、例えば「B+C×K」という計算を「BCK×+」というように記述する。スタックとは、LIFO(後入れ先出し)式のデータ形式で、スタックに最後に残った値が演算式の解となるものである。
そして、式実行部(図示せず)で逆ポーランド記法によりセットされたトークン列に従って分岐処理を行っていく。
【0029】
図3は、式解釈部の処理工程を示すフローチャートである。
処理工程に従って説明する。
(ST1)操作部より設定された演算式の記述の正しさをチェックする。
(ST2)工程ST1実行後のエラーの有無を判断し、エラーが無ければ工程ST3の処理を行い、エラーが有れば工程ST5の処理を行う。
(ST3)演算式の階層情報をトークン列にセットする。
(ST4)式部を逆ポーランド記法でトークン列にセットして処理を終了する。
(ST5)エラー処理を行い終了する。
【0030】
図4は、式実行部の処理工程を示すフローチャートである。
処理工程に従って説明する。
【0031】
(STP1)トークン列の条件演算子が“[ ”であるかを判断する。
“はい”であれば、この演算子から次の演算子の間にセットされたトークン列の処理を行いSTP2の処理を行いSTP2の処理を行う。
“いいえ”ならSTP2の処理を行う。
【0032】
(STP2)条件演算子が“?”であるかを判断する。
“はい”であって、STP1の演算結果が“真”であれば、この演算子から次の演算子の間にセットされたトークン列の処理を行いSTP3の処理を行う。
“はい”であって、STP1の演算結果が“偽”であれば、同じ階層の演算子“:”にジャンプしてSTP3の処理を行う。
“いいえ”であればSTP3の処理を行う。
【0033】
(STP3)条件演算子が“:”であるかを判断する。
“はい”であれば、この条件演算子から次の演算子の間にセットされたトークン列の処理を行いSTP4の処理を行う。
“いいえ”であれば、STP4の処理を行う。
【0034】
(STP4)条件演算子が“ ]”であるかを判断する。
“はい”であって、一つ上に階層があればその階層の条件演算子“ ]”にジャンプして、STP5の処理を行い、一つ上に階層が無ければそのままSTP5の処理を行う。
“いいえ”であればSTP5の処理を行う。
【0035】
(STP5)演算を最後まで行ったかを判断する。
“はい”であれば、解を保存して処理を終了する。
“いいえ”であればSTP1の処理を行う。
【0036】
条件分岐を加えた演算式の具体的な記述例を以下に示す。演算式は前出の操作部4より入力され、表示部6に表示される。
DO001=[SV<=30?1:0]
DO002=[SV<=60?[SV<=30?0:1]:0]
DO003=[SV>60?1:0]
【0037】
ここで、DO001からDO003は、リレー出力のリレー番号を示す。リレーDO001は、SV値が30%以下で解が真(1)となりオン、それ以外は解が偽(0)となりオフ。リレーDO002は、SV値が60%以下で、30%より大きければ解が真(1)となりオン、それ以外は解が偽(0)でオフ。リレーDO003は、SV値が60%より大きければ解が真(0)となりオン、それ以外は解が偽(0)でオフとなる。
【0038】
リレーDO002の処理に着目すると、従来では、SV値が、30%より大きいことと、60%以下であることの両方を判断し、そのAND演算をする必要がある。
これに対して、上述したネスト構造をもたせた分岐処理により、SV値が60%を越えている場合のDO002の演算結果は、30%の閾値を判断することなく、偽(0)になる。
これにより処理工程を最適化することができ、効率よい制御を実現できる。
【0039】
【発明の効果】
本発明によれば、以下のような効果がある。
【0040】
請求項1に記載の発明によれば、条件分岐処理部を設けて、この条件分岐処理部が指定した分岐先の演算を行い、その演算結果から決定される信号を前記信号発生部から出力することにより、所定の信号を出力させる場合において複雑な条件判断に対応することができる。
これにより、測定装置のアプリケーションが組み易くなる。
【0041】
請求項2に記載の発明によれば、分岐処理が加わった演算結果により、リレー出力部のリレーをオン/オフ制御することで、複雑な条件判断に対応したリレー制御が可能となる。また、装置に対してシーケンス的な動作をさせる場合に警報検出が目的のアラームを使用する必要がなくなった。
【0042】
請求項3に記載の発明によれば、分岐処理が加わった演算結果を制御PVデータとして用いて、所定の制御対象を操作する操作信号を発生させることができるので、複雑な条件判断に対応した制御が可能となる。
【0043】
請求項4に記載の発明によれば、分岐処理が加わった演算結果により、アナログ出力することができるので、複雑な条件判断に対応した再伝送が可能となる。
【0044】
請求項5に記載の発明によれば、分岐処理がネスト構造をとることにより、より複雑な条件判断が可能となると共に、処理工程を最適化することができ、効率よい制御を実現できる。
【0045】
【図面の簡単な説明】
【図1】本発明の一実施例を示した構成図である。
【図2】演算処理部の処理の流れを示す説明図である。
【図3】式解釈部の処理工程を示すフローチャートである。
【図4】式実行部の処理工程を示すフローチャートである。
【図5】従来の測定装置の一例を示した構成図である。
【図6】従来の測定装置のアラーム検出および演算処理の流れを示した説明図である。
【符号の説明】
1 測定部
2 信号発生部
3 制御部
4 操作部
5 メモリ
6 表示部
7 リレー出力部
8 アナログ出力部
31 演算処理部
32 条件分岐処理部
33 アラーム検出部
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a measuring device such as a recorder having a predetermined signal output unit, and more particularly to an improvement in a calculation function for determining an output signal.
[0002]
[Prior art]
A conventional measuring device includes a signal output unit that outputs a predetermined signal based on a measured value or the like.
Some of such measuring devices generate an alarm when a measured value exceeds a certain value, and control the on / off of a relay output of a digital output unit using the alarm generating signal.
[0003]
Further, there is a device that outputs an operation signal for performing PID control on a control target such that the measurement result becomes a set value according to a measurement result input from a control target and a predetermined set value (for example, see Patent Document 1). 1).
Such a measuring device will be described with reference to the drawings.
[0004]
FIG. 5 is a configuration diagram showing an example of a conventional measuring device.
The measurement unit 1 converts a plurality of analog input signals including a measurement signal from a control target (not shown) into a digital signal.
The signal generator 2 generates an operation signal for operating a control target. As such a signal generation unit 2, a signal generation unit constituted by a microprocessor, a D / A converter, a memory, or the like is used.
[0005]
The control unit 50 controls the entire apparatus, and is configured by, for example, a processor. Further, an arithmetic processing unit 51 and an alarm detection unit 52 are provided. The arithmetic processing unit 51 performs various arithmetic processes related to the measurement such as addition, subtraction, multiplication, division, square root, and averaging on the digital signal output from the measurement unit 1. The alarm detection unit 52 detects, for example, a case where the measurement result or the calculation result exceeds a preset value, generates an alarm signal, and controls on / off of a relay of the relay output unit 7.
[0006]
The operation unit 4 includes predetermined parameters such as a program pattern for performing a program operation of the control target, measurement conditions of the measurement unit, calculation conditions of the arithmetic processing unit, signal generation conditions of the signal generation unit, and display conditions of the display unit. Has a function for inputting
The memory 5 stores a program pattern, a digital signal output from the measurement unit 1, and a calculation processing result of the calculation processing unit 51.
The program pattern is a change pattern of a set value with respect to time.
[0007]
The display unit 6 graphically displays information related to a measurement signal of a control target, information of an operation signal related to operation of the control target, and the like, and uses a CRT, an LCD, or the like as a display.
The analog output unit 8 converts the digital value of the measurement result or the calculation result into an analog signal and outputs the analog value to an external device (not shown).
[0008]
FIG. 6 is an explanatory diagram showing a flow of alarm detection and calculation processing of the conventional measuring device.
In FIG. 6A, the measurement channel data, the calculation channel data, the control PV data, the control SV data, and the control MV data (hereinafter, referred to as measurement channel data) are input to the alarm detection unit 31 described above. Is shown.
[0009]
The measurement channel data is analog input digital data measured by the measurement unit 1 described above. The calculation channel data is a calculation result of the calculation processing unit 32 described above.
For the user, the calculation function of the calculation processing unit 32 is recognized as a calculation channel, and the setting of the calculation expression is performed as a setting for the calculation channel.
The control PV data is data obtained by measuring a signal from a control target by the measurement unit 1, the control SV data is a control target set value input from the operation unit 4, and the control MV data is signal generation of the above signal. This is data on which an analog signal output from the unit 2 is based.
[0010]
FIG. 6B shows a state in which measurement channel data and the like are input to the above-described arithmetic processing unit 52, and the data is re-transmitted after the arithmetic processing unit 52 performs an arithmetic operation using these data. is there. Here, the retransmission means that the measurement data and the like are analog-outputted to an external device using the analog output unit 8 described above.
[0011]
[Patent Document 1]
Japanese Patent No. 2624125
[Problems to be solved by the invention]
In such a conventional measuring device, the relay output can only control on / off of the relay by alarm detection.
For this reason, when performing sequential control using the measurement channel data or the like under control, detection of the measurement channel data or the like is treated as occurrence of an alarm, and only the relay ON / OFF output can be realized. Was.
Therefore, it deviates from the meaning of the original alarm.
[0013]
In addition, the calculation result using the measurement channel data and the like is used as a determination condition of an alarm detection and a control condition of a control target, but this calculation is performed as a description of a calculation expression for the calculation channel. That is, it can be realized only through the operation channel, and the types of the operations are only four arithmetic operations, logical operations, square root, and average. Therefore, there has been a problem in that control or alarm generation using a calculation result cannot cope with complicated condition determination.
[0014]
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems, and a conditional branch is added to an arithmetic function, and a digital output, an analog output, an operation signal, and the like are determined using the arithmetic result. It is an object of the present invention to provide a measuring device capable of performing various controls.
[0015]
[Means for Solving the Problems]
The present invention is a measuring device having the following configuration.
[0016]
(1) a measuring unit for measuring a predetermined input signal;
An arithmetic processing unit that performs an arithmetic operation using at least one of the measurement result and a predetermined parameter,
A signal output unit that outputs a signal according to the measurement result or the calculation result,
In a measuring device having
Providing a conditional branch processing unit that specifies an operation to be performed on the arithmetic processing unit based on at least one of the measurement result and the parameter,
The signal output unit outputs a signal according to the calculation result.
[0017]
(2) The measurement device according to (1), wherein the signal output unit is a relay output unit that outputs a relay on / off signal.
[0018]
(3) The measurement device according to (1), wherein the signal output unit is a signal generation unit that generates an operation signal for operating a predetermined control target using the measurement result and the parameter.
[0019]
(4) The measurement device according to claim 1, wherein the signal output unit is an analog output unit that converts a digital value of a measurement result or a calculation result into an analog signal and outputs the result.
[0020]
(5) The measuring device according to any one of (1) to (4), wherein the branching process performed by the branching processing unit has a nest structure.
The measuring device according to item 1.
[0021]
BEST MODE FOR CARRYING OUT THE INVENTION
FIG. 1 is a configuration diagram showing one embodiment of the present invention.
In FIG. 1, the same components as those described above are denoted by the same reference numerals, and the description of the same components will be omitted.
[0022]
FIG. 1 differs from the conventional example in the following points.
A conditional branch processing unit 32 is provided in the arithmetic processing unit 31 of the control unit 3. The conditional branch processing unit 32 determines a branch destination by comparing the measurement channel data or the like input to the arithmetic processing unit 31 with the branch condition input from the operation unit 4. Then, the arithmetic processing of the branch destination is executed.
[0023]
Based on the calculation result, the relay of the relay output unit 7 is turned on / off, an analog signal is output from the analog output unit 8, and an operation signal is output from the signal generation unit 2. Further, the alarm detection may be performed by the alarm detection unit 33 using the calculation result.
Note that the signal generation unit 2, the relay output unit 7, and the analog output unit 8 correspond to a signal output unit in claims.
[0024]
FIG. 2 is an explanatory diagram illustrating the flow of the process of the arithmetic processing unit.
FIG. 2A shows a state in which measurement channel data and the like are input to the arithmetic processing unit 31 as in the conventional example. In the arithmetic processing section 31, conditional branch processing is performed by the above-described conditional branch processing section 32, and any one of the arithmetic expressions 1, 2, and 3 at the branch destination is performed based on the result. In arithmetic expressions 1, 2, and 3, four arithmetic operations, logical operations, and the like are performed, and the operation results are output as a relay output and an analog output.
Thereby, each signal output can correspond to a complicated condition judgment.
[0025]
In FIG. 2B, the measurement unit 1 generates measurement channel data from an output signal to be controlled and performs conditional branch processing on the measurement channel data. , 3 are performed. This calculation result is used as control PV data.
Thereby, control PV data corresponding to complicated condition determination can be used for control.
[0026]
An example of a format used for setting the above-described conditional branch processing is shown below.
[Equation 1? Equation 2: Equation 3]
Here, when the calculation result of the expression 1 is true, the expression 2 is a solution, and when the calculation result is false, the expression 3 is a solution.
[0027]
Each expression part can describe a conventional arithmetic expression and can have a hierarchy. The term “hierarchy” means that a conditional operator has a nested structure, and the term “nested structure” means a state in which conditional branch processing exists in conditional branch processing.
[0028]
In the conditional branch processing unit 32 described above, an operator is interpreted by an expression interpreting unit (not shown), and a token string is set in reverse Polish notation. The reverse Polish notation is a notation on the assumption that calculation is performed by a stack operation. For example, the calculation “B + C × K” is described as “BCK × +”. The stack is a data format of a LIFO (last-in first-out) expression, and the last value remaining on the stack is a solution of the operation expression.
Then, a branching process is performed in accordance with the token sequence set by the reverse Polish notation in an expression executing unit (not shown).
[0029]
FIG. 3 is a flowchart showing the processing steps of the formula interpretation unit.
A description will be given according to the processing steps.
(ST1) The correctness of the description of the arithmetic expression set from the operation unit is checked.
(ST2) It is determined whether or not there is an error after the execution of the process ST1, and if there is no error, the process of the process ST3 is performed, and if there is an error, the process of the process ST5 is performed.
(ST3) The hierarchy information of the operation expression is set in the token string.
(ST4) The expression part is set in the token string in the reverse Polish notation, and the process ends.
(ST5) Perform error processing and end.
[0030]
FIG. 4 is a flowchart showing the processing steps of the expression execution unit.
A description will be given according to the processing steps.
[0031]
(STP1) It is determined whether the conditional operator of the token string is "[".
If "Yes", the process of the token string set between this operator and the next operator is performed, the process of STP2 is performed, and the process of STP2 is performed.
If “No”, the process of STP2 is performed.
[0032]
(STP2) Determine whether the conditional operator is “?”.
If "Yes" and the operation result of STP1 is "True", the process of the token sequence set between this operator and the next operator is performed, and the process of STP3 is performed.
If "Yes" and the operation result of STP1 is "False", the process jumps to the operator ":" of the same hierarchy and performs the processing of STP3.
If “No”, the process of STP3 is performed.
[0033]
(STP3) It is determined whether the conditional operator is ":".
If "yes", the process of the token string set between this conditional operator and the next operator is performed, and the process of STP4 is performed.
If “No”, the process of STP4 is performed.
[0034]
(STP4) It is determined whether the conditional operator is "]".
If "yes", and there is a hierarchy one level higher, the process jumps to the conditional operator "]" of that hierarchy and performs the processing of STP5, and if there is no hierarchy one above, processing of STP5 is performed as it is.
If "No", the process of STP5 is performed.
[0035]
(STP5) It is determined whether the calculation has been performed to the end.
If "yes", save the solution and end the process.
If “No”, the process of STP1 is performed.
[0036]
A specific description example of an arithmetic expression with a conditional branch is shown below. The arithmetic expression is input from the operation unit 4 and displayed on the display unit 6.
DO001 = [SV <= 30? 1: 0]
DO002 = [SV <= 60? [SV <= 30? 0: 1]: 0]
DO003 = [SV> 60? 1: 0]
[0037]
Here, DO001 to DO003 indicate relay numbers of the relay output. The relay DO001 turns on when the solution is true (1) when the SV value is 30% or less, and turns off when the solution is false (0) otherwise. In the relay DO002, the solution is true (1) if the SV value is 60% or less and larger than 30%, and the solution is false (0) otherwise. The relay DO003 turns the solution true (0) if the SV value is greater than 60%, and turns off the solution false (0) otherwise.
[0038]
Focusing on the processing of the relay DO002, conventionally, it is necessary to determine both that the SV value is greater than 30% and that the SV value is equal to or less than 60%, and perform an AND operation on the AND value.
On the other hand, by the branch processing having the nest structure described above, the calculation result of DO002 when the SV value exceeds 60% becomes false (0) without judging the threshold value of 30%.
Thereby, the processing steps can be optimized, and efficient control can be realized.
[0039]
【The invention's effect】
According to the present invention, the following effects can be obtained.
[0040]
According to the first aspect of the present invention, the conditional branch processing unit is provided, the branch operation specified by the conditional branch processing unit is performed, and a signal determined from the calculation result is output from the signal generation unit. This makes it possible to cope with a complicated condition judgment when outputting a predetermined signal.
This facilitates the application of the measuring device.
[0041]
According to the second aspect of the present invention, by performing on / off control of the relay of the relay output unit based on the operation result to which the branch processing is added, relay control corresponding to complicated condition determination can be performed. In addition, it is not necessary to use an alarm for detecting an alarm when the apparatus is operated in a sequence.
[0042]
According to the third aspect of the present invention, an operation signal for operating a predetermined control target can be generated using the operation result to which the branch processing is added as control PV data, so that it is possible to cope with complicated condition determination. Control becomes possible.
[0043]
According to the fourth aspect of the present invention, the analog output can be performed based on the operation result to which the branch processing is added, so that the retransmission corresponding to the complicated condition determination can be performed.
[0044]
According to the fifth aspect of the present invention, since the branch processing has a nested structure, more complicated condition determination can be performed, and the processing steps can be optimized, and efficient control can be realized.
[0045]
[Brief description of the drawings]
FIG. 1 is a configuration diagram showing one embodiment of the present invention.
FIG. 2 is an explanatory diagram showing a processing flow of an arithmetic processing unit.
FIG. 3 is a flowchart showing processing steps of an expression interpreting unit.
FIG. 4 is a flowchart showing processing steps of an expression execution unit.
FIG. 5 is a configuration diagram showing an example of a conventional measurement device.
FIG. 6 is an explanatory diagram showing a flow of alarm detection and calculation processing of a conventional measuring device.
[Explanation of symbols]
REFERENCE SIGNS LIST 1 measurement unit 2 signal generation unit 3 control unit 4 operation unit 5 memory 6 display unit 7 relay output unit 8 analog output unit 31 operation processing unit 32 conditional branch processing unit 33 alarm detection unit

Claims (5)

所定の入力信号を測定する測定部と、
測定結果および所定のパラメータの少なくともいずれか一方を用いて演算を行う演算処理部と、
測定結果または演算結果に応じた信号を出力する信号出力部と、
を有する測定装置において、
前記測定結果および前記パラメータの少なくともいずれか一方に基づき前記演算処理部に対して実行すべき演算を指定する条件分岐処理部を設け、
前記信号出力部はその演算結果に応じた信号を出力することを特徴とする測定装置。
A measuring unit for measuring a predetermined input signal;
An arithmetic processing unit that performs an arithmetic operation using at least one of the measurement result and a predetermined parameter,
A signal output unit that outputs a signal according to the measurement result or the calculation result,
In a measuring device having
Providing a conditional branch processing unit that specifies an operation to be performed on the arithmetic processing unit based on at least one of the measurement result and the parameter,
The signal output unit outputs a signal according to the calculation result.
前記信号出力部は、リレーのオン/オフ信号を出力するリレー出力部であることを特徴とする請求項1に記載の測定装置。The measuring device according to claim 1, wherein the signal output unit is a relay output unit that outputs a relay on / off signal. 前記信号出力部は、前記測定結果および前記パラメータを用いて所定の制御対象を操作する操作信号を発生させる信号発生部であることを特徴とする請求項1に記載の測定装置。The measurement apparatus according to claim 1, wherein the signal output unit is a signal generation unit that generates an operation signal for operating a predetermined control target using the measurement result and the parameter. 前記信号出力部は、測定結果や演算結果のデジタル値をアナログ変換して出力するアナログ出力部であることを特徴とする請求項1に記載の測定装置。The measuring device according to claim 1, wherein the signal output unit is an analog output unit that converts a digital value of a measurement result or a calculation result into an analog signal and outputs the result. 前記分岐処理部が行う分岐処理は、ネスト構造になっていることを特徴とする請求項1乃至請求項4のいずれかに記載の測定装置。The measurement apparatus according to claim 1, wherein the branch processing performed by the branch processing unit has a nest structure.
JP2003132546A 2003-05-12 2003-05-12 Measuring device Withdrawn JP2004334732A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003132546A JP2004334732A (en) 2003-05-12 2003-05-12 Measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003132546A JP2004334732A (en) 2003-05-12 2003-05-12 Measuring device

Publications (1)

Publication Number Publication Date
JP2004334732A true JP2004334732A (en) 2004-11-25

Family

ID=33507357

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003132546A Withdrawn JP2004334732A (en) 2003-05-12 2003-05-12 Measuring device

Country Status (1)

Country Link
JP (1) JP2004334732A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018206301A (en) * 2017-06-09 2018-12-27 横河電機株式会社 Field apparatus, setting device, and setting program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06348308A (en) * 1993-06-02 1994-12-22 Hitachi Ltd Engine controller
JP2001013002A (en) * 1999-06-29 2001-01-19 Omron Corp Oscillation detecting device
JP2002195867A (en) * 2000-10-20 2002-07-10 Yamamoto Electric Industrial Co Ltd Sensor
JP2002202205A (en) * 2000-10-24 2002-07-19 Terumo Corp Deep part temperature measuring device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06348308A (en) * 1993-06-02 1994-12-22 Hitachi Ltd Engine controller
JP2001013002A (en) * 1999-06-29 2001-01-19 Omron Corp Oscillation detecting device
JP2002195867A (en) * 2000-10-20 2002-07-10 Yamamoto Electric Industrial Co Ltd Sensor
JP2002202205A (en) * 2000-10-24 2002-07-19 Terumo Corp Deep part temperature measuring device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018206301A (en) * 2017-06-09 2018-12-27 横河電機株式会社 Field apparatus, setting device, and setting program
JP7139576B2 (en) 2017-06-09 2022-09-21 横河電機株式会社 Field devices, configuration devices and configuration programs

Similar Documents

Publication Publication Date Title
US6658444B1 (en) Method and apparatus for performing a mask-driven interval division operation
US6629120B1 (en) Method and apparatus for performing a mask-driven interval multiplication operation
US5530663A (en) Floating point unit for calculating a compound instruction A+B×C in two cycles
US6751638B2 (en) Min and max operations for multiplication and/or division under the simple interval system
US20020194232A1 (en) Minimum and maximum operations to facilitate interval multiplication and/or interval division
US20020194579A1 (en) Code verification system and method
JP2009271598A (en) Processor
WO2015184350A1 (en) Interactive learning tool using playground
US5850551A (en) Compiler and processor for processing loops at high speed
JP2004334732A (en) Measuring device
KR20180034508A (en) Data processing
JP2012079233A (en) Design data generation device, design data generation method, and program
KR102690152B1 (en) Method for determining optimal placement of phasor measurement unit and electronic device thereof
JP2007257077A (en) Program debugging device, method and program
CN112115418A (en) Method, device and equipment for acquiring bias estimation information
CA1173164A (en) Fraction calculator
JP3541005B2 (en) Data processing apparatus and method
JP2005090959A (en) Control program and measuring system
JP3206535B2 (en) Measured value display method of performance measurement tool
JP2003256026A (en) Plant monitoring and operating device
JP2011036059A (en) Protection control device and control method for the same
JPH0320677A (en) Detection of variation
JPH0739123U (en) AD converter
JP5181947B2 (en) Embedded software development support system, support method and program
JP3659408B2 (en) Data arithmetic processing apparatus and data arithmetic processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051006

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061129

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061211

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20070209