JP2006165737A - Analog signal processing apparatus - Google Patents

Analog signal processing apparatus Download PDF

Info

Publication number
JP2006165737A
JP2006165737A JP2004350883A JP2004350883A JP2006165737A JP 2006165737 A JP2006165737 A JP 2006165737A JP 2004350883 A JP2004350883 A JP 2004350883A JP 2004350883 A JP2004350883 A JP 2004350883A JP 2006165737 A JP2006165737 A JP 2006165737A
Authority
JP
Japan
Prior art keywords
temperature correction
unit
analog signal
data
sampling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2004350883A
Other languages
Japanese (ja)
Inventor
Hideaki Miyoshi
英明 三好
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.)
Keyence Corp
Original Assignee
Keyence 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 Keyence Corp filed Critical Keyence Corp
Priority to JP2004350883A priority Critical patent/JP2006165737A/en
Publication of JP2006165737A publication Critical patent/JP2006165737A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an analog signal processing apparatus capable of executing temperature correction while avoiding the missing of measured data. <P>SOLUTION: The analog signal processing apparatus includes: an A-D conversion section for applying A-D conversion to an analog signal by each sampling period and outputting a digital value according to a prescribed offset and a prescribed gain; a reference voltage generating circuit for generating a reference voltage for temperature correction; a storage section for storing a first reference digital value being an output when the reference voltage is given to the A-D conversion section at a prescribed temperature; a temperature correction command section for commanding the execution of the temperature correction in each prescribed temperature correction period when the relation between the sampling unit time required for the processing of the A-D conversion section and the sampling period satisfies a prescribed relation; and a temperature correction execution section that gives a reference voltage to the A-D conversion section so as to correct an offset and a gain in a way that a second reference digital value being an output of the A-D conversion section is equal to the first reference digital value read from the storage section. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、制御対象から入力されるアナログ信号を所定の周期でサンプリングするプログラマブルロジックコントローラー用のアナログ信号処理装置に関する。詳しくは、アナログ信号処理装置における温度補正機能の改良に関する。   The present invention relates to an analog signal processing device for a programmable logic controller that samples an analog signal input from a controlled object at a predetermined cycle. In detail, it is related with the improvement of the temperature correction function in an analog signal processor.

プログラマブルロジックコントローラー(以下、PLCと略記する)において、制御対象から入力されるアナログ信号を所定の周期でサンプリングし、A/D変換して得られたディジタルデータをCPUユニットに入力するために、アナログ入力ユニットが使用されている。このようなユニットは、例えば特許文献1に示すように、制御対象へのアナログ出力機能を有する場合もあり、アナログ信号処理ユニット又は単にアナログユニットと呼ばれることが多い。本明細書ではアナログ信号処理装置という場合とアナログ入力ユニットという場合がある。   In a programmable logic controller (hereinafter abbreviated as “PLC”), an analog signal input from a control target is sampled at a predetermined cycle, and A / D converted digital data is input to a CPU unit. An input unit is being used. Such a unit may have an analog output function to a control target as shown in Patent Document 1, for example, and is often called an analog signal processing unit or simply an analog unit. In this specification, an analog signal processing device or an analog input unit may be used.

例えば、測定対象(ワーク)までの距離または変位を測定するために変位計が使用され、これがPLCの制御対象に相当する。変位計からのアナログ信号は、アナログ信号処理装置でサンプリングされ、A/D変換後のディジタルデータがCPUユニットに入力される。CPUユニットは、アナログ信号処理装置から入力したディジタルデータを処理し、所定の演算を行うことによってワークまでの距離または変位を求める。   For example, a displacement meter is used to measure the distance or displacement to the measurement object (workpiece), and this corresponds to the control object of the PLC. An analog signal from the displacement meter is sampled by an analog signal processing device, and digital data after A / D conversion is input to the CPU unit. The CPU unit processes the digital data input from the analog signal processing device, and calculates a distance or displacement to the workpiece by performing a predetermined calculation.

このようなアナログ信号処理装置に含まれるA/D変換器(アナログ信号からディジタルデータへの変換器)の変換特性にはばらつきがあるので、その補正が行われる。通常、リニアリティ(直線性)に問題が無い場合は、オフセットとゲインの補正が行われる。例えば、アナログ信号の範囲が0〜10Vのときに、0V(下限値)に対応するディジタル値と10V(上限値)に対応するディジタル値が工場出荷時の検査・調整工程において測定され、記憶される。便宜上、前者をオフセット補正値、後者をゲイン補正値ということにする。   Since there is variation in the conversion characteristics of the A / D converter (analog signal to digital data converter) included in such an analog signal processing apparatus, the correction is performed. Normally, when there is no problem with linearity (linearity), offset and gain are corrected. For example, when the analog signal range is 0 to 10 V, the digital value corresponding to 0 V (lower limit value) and the digital value corresponding to 10 V (upper limit value) are measured and stored in the inspection / adjustment process at the time of shipment from the factory. The For convenience, the former is referred to as an offset correction value, and the latter is referred to as a gain correction value.

実際の測定でA/D変換器から得られるディジタルデータは、オフセット補正値及びゲイン補正値を用いて補正され、サンプリング周期ごとのディジタルデータが順次出力される。これらのディジタルデータの演算処理によって、例えば測定対象までの距離が求められる。特許文献1には、アナログ信号処理装置のオフセット補正値及びゲイン補正値の設定がCPUユニットにおけるラダー言語による指令で行われることが記載されている。   Digital data obtained from the A / D converter in actual measurement is corrected using the offset correction value and the gain correction value, and digital data for each sampling period is sequentially output. For example, the distance to the measurement object is obtained by the arithmetic processing of these digital data. Patent Document 1 describes that the offset correction value and the gain correction value of the analog signal processing device are set by a command in a ladder language in the CPU unit.

また、A/D変換器は、周囲温度によって出力が変動する温度特性を有するので、その温度特性を補償する必要がある。つまり、周囲温度が変化すると、同じアナログ入力電圧であってもA/D変換器から出力されるディジタルデータがわずかに変動し、そのままでは精密な測定を行うことが難しい。温度特性の補償(以下、温度補正という)のためには、基準電圧(基準アナログ信号)をA/D変換器に入力する必要がある。例えば、オフセット補正値及びゲイン補正値に対応する基準電圧をA/D変換器に与え、そのディジタル出力がオフセット補正値及びゲイン補正に一致するように温度補正を行えばよい。   Moreover, since the A / D converter has a temperature characteristic in which the output varies depending on the ambient temperature, it is necessary to compensate for the temperature characteristic. That is, if the ambient temperature changes, even if the analog input voltage is the same, the digital data output from the A / D converter varies slightly, and it is difficult to perform precise measurement as it is. In order to compensate for temperature characteristics (hereinafter referred to as temperature correction), it is necessary to input a reference voltage (reference analog signal) to the A / D converter. For example, a reference voltage corresponding to the offset correction value and the gain correction value may be supplied to the A / D converter, and temperature correction may be performed so that the digital output matches the offset correction value and the gain correction.

一般に周囲温度は徐々に変化するので、例えば30秒に一回、上記のような温度補正が行われる。しかし、温度補正のために基準電圧のA/D変換を行っている間は、通常の測定のためのA/D変換を行うことができないので、その間の測定データが欠落することになる。アプリケーションによっては、温度特性に起因する誤差よりもデータ欠落による誤差のほうが問題になる場合がある。そこで、従来のアナログ信号処理装置では、温度補正機能を有効にするか無効にするかを切り替えるためのスイッチを備え、データ欠落を生じさせたくない場合は温度補正機能を無効にして使用していた。
特開平7−78007号公報
In general, since the ambient temperature changes gradually, the above-described temperature correction is performed once every 30 seconds, for example. However, while A / D conversion of the reference voltage is being performed for temperature correction, A / D conversion for normal measurement cannot be performed, and measurement data during that time is lost. Depending on the application, errors due to missing data may be more problematic than errors due to temperature characteristics. Therefore, in the conventional analog signal processing apparatus, a switch for switching between enabling and disabling the temperature correction function is provided, and the temperature correction function is disabled when it is not desired to cause data loss. .
Japanese Patent Laid-Open No. 7-78007

しかし、上記のような温度補正機能の有効又は無効の設定はユーザがアプリケーションや使用環境に応じて設定しなければならず、設定を誤ると測定データの信頼性が低下する問題があった。   However, whether the temperature correction function is enabled or disabled as described above must be set by the user according to the application and the use environment, and if the setting is incorrect, there is a problem that the reliability of the measurement data is lowered.

本発明は、上記のような課題に鑑みて為されたものであり、温度補正を実行するタイミングを自動的に判別し、データ欠落の回避と温度補償による測定精度の向上を両立させたアナログ信号処理装置を提供することを目的とする。   The present invention has been made in view of the problems as described above, and automatically determines the timing for executing temperature correction, and is an analog signal that achieves both avoidance of data loss and improvement of measurement accuracy by temperature compensation. An object is to provide a processing apparatus.

本発明によるアナログ信号処理装置の第1の構成は、プログラマブルロジックコントローラーの本体であるCPUユニットに接続されるアナログ信号処理装置において、制御対象から入力されるアナログ信号のサンプリング周期を設定するサンプリング周期設定部と、前記サンプリング周期ごとに前記アナログ信号をA/D変換し、所定のオフセット及びゲインにしたがってディジタル値を出力するAD変換部と、温度補正用の基準アナログ信号を発生する基準アナログ信号発生部と、所定の周囲温度において前記基準アナログ信号を前記AD変換部に入力したときの前記AD変換部の出力であるディジタル値を第1基準ディジタル値として記憶する記憶部と、前記AD変換部の処理に要するサンプリング単位時間と前記サンプリング周期との関係が所定の関係を満たすときに所定の温度補正周期ごとに前記AD変換部の温度補正の実行を指令する温度補正指令部と、前記温度補正指令部の指令に従って、前記基準アナログ信号を前記AD変換部に入力し、前記AD変換部の出力である第2基準ディジタル値が前記記憶部から読み出した第1基準ディジタル値に等しくなるように前記オフセット及び前記ゲインの少なくとも一方を補正する温度補正実行部とを備えていることを特徴とする。   A first configuration of an analog signal processing device according to the present invention is a sampling cycle setting for setting a sampling cycle of an analog signal input from a control target in an analog signal processing device connected to a CPU unit which is a main body of a programmable logic controller. A AD converter that A / D converts the analog signal for each sampling period and outputs a digital value according to a predetermined offset and gain, and a reference analog signal generator that generates a reference analog signal for temperature correction A storage unit that stores a digital value, which is an output of the AD conversion unit when the reference analog signal is input to the AD conversion unit at a predetermined ambient temperature, as a first reference digital value; and processing of the AD conversion unit Sampling unit time and the sampling period A temperature correction command unit that commands execution of temperature correction of the AD conversion unit every predetermined temperature correction cycle when the relationship satisfies a predetermined relationship, and the reference analog signal is converted into the AD according to the command of the temperature correction command unit Temperature correction execution that corrects at least one of the offset and the gain so that the second reference digital value that is input to the conversion unit is equal to the first reference digital value read from the storage unit. And a portion.

このような構成を有するアナログ信号処理装置は、データ欠落を回避しながら温度補正を行うことができる条件を温度補正指令部が自動的に判断し、温度補正周期ごとに温度補正の実行を指令するので、ユーザが温度補正機能の有効又は無効の設定を行う必要がない。したがって、設定の誤りに起因して測定データの信頼性が低下するおそれがない。なお、第1基準ディジタル値は、例えば工場出荷時の検査工程等において記憶される。これは、所定のオフセット及びゲインに対応する値である。これに対して、第2基準ディジタル値は、実際の測定中に温度補正のために取得される値である。通常はオフセット及びゲインの温度補正のために2つのデータが取得されるが、いずれか一方のみの温度補正でよい場合は1つのデータを取得すれば足りる。   In the analog signal processing apparatus having such a configuration, the temperature correction command unit automatically determines the conditions under which temperature correction can be performed while avoiding missing data, and commands the execution of temperature correction every temperature correction cycle. Therefore, it is not necessary for the user to set whether to enable or disable the temperature correction function. Therefore, there is no possibility that the reliability of the measurement data is deteriorated due to a setting error. The first reference digital value is stored in, for example, an inspection process at the time of factory shipment. This is a value corresponding to a predetermined offset and gain. On the other hand, the second reference digital value is a value obtained for temperature correction during actual measurement. Normally, two data are acquired for offset and gain temperature correction. However, if only one of the temperature corrections is sufficient, it is sufficient to acquire one data.

本発明によるアナログ信号処理装置の第2の構成は、上記第1の構成における具体構成として、前記温度補正指令部は、前記サンプリング周期の設定値が前記サンプリング単位時間の3倍以上であれば所定の温度補正周期ごとに前記AD変換部の温度補正の実行を指令し、前記温度補正実行部は、前記制御対象から入力されるアナログ信号のA/D変換を実行した後の次のサンプリング開始タイミングまでの時間を用いて前記オフセットの温度補正用データ及び前記ゲインの温度補正用データを続けて取得することを特徴とする。   According to a second configuration of the analog signal processing device of the present invention, as a specific configuration in the first configuration, the temperature correction command unit is configured to be predetermined if the set value of the sampling period is three times or more of the sampling unit time. The AD conversion unit is instructed to perform temperature correction at every temperature correction cycle, and the temperature correction execution unit performs the next sampling start timing after executing A / D conversion of the analog signal input from the control target The offset temperature correction data and the gain temperature correction data are continuously acquired by using the time until.

このような構成によれば、測定のために制御対象から入力されるアナログ信号に対応するディジタル値の取得処理がサンプリング周期の1/3以下の時間で終了するときの残り時間を有効に用いてオフセットの温度補正用データ及びゲインの温度補正用データを続けて取得することができる。したがって、測定のために取得されるデータの欠落を回避しながら温度補正を迅速に行うことができる。   According to such a configuration, it is possible to effectively use the remaining time when the digital value acquisition process corresponding to the analog signal input from the control target for measurement ends in a time of 1/3 or less of the sampling period. The offset temperature correction data and the gain temperature correction data can be acquired in succession. Therefore, temperature correction can be performed quickly while avoiding missing data acquired for measurement.

本発明によるアナログ信号処理装置の第3の構成は、上記第1又は第2の構成において、前記温度補正指令部は、前記サンプリング周期の設定値が前記サンプリング単位時間の2倍以上であれば所定の温度補正周期ごとに前記AD変換部の温度補正の実行を指令し、前記温度補正実行部は、前記制御対象から入力されるアナログ信号のA/D変換を実行した後の次のサンプリング開始タイミングまでの時間を用いて前記オフセットの温度補正用データ及び前記ゲインの温度補正用データのいずれか一方を取得することを特徴とする。   According to a third configuration of the analog signal processing device of the present invention, in the first or second configuration, the temperature correction command unit is predetermined if the set value of the sampling period is twice or more the sampling unit time. The AD conversion unit is instructed to perform temperature correction at every temperature correction cycle, and the temperature correction execution unit performs the next sampling start timing after executing A / D conversion of the analog signal input from the control target One of the offset temperature correction data and the gain temperature correction data is acquired by using the time until.

このような構成によれば、測定のために制御対象から入力されるアナログ信号に対応するディジタル値の取得処理がサンプリング周期の1/2以下の時間で終了するときの残り時間を有効に用いてオフセットの温度補正用データ及びゲインの温度補正用データのいずれか一方を取得することができる。オフセット及びゲインの両方の温度補正を行う場合は2回のサンプリング周期に分けてオフセットの温度補正用データ及びゲインの温度補正用データを取得すればよい。したがって、第2の構成に比べて短いサンプリング周期が設定されたときでも、サンプリング周期がサンプリング単位時間の2倍以上であれば測定のために取得されるデータの欠落を回避しながら温度補正を行うことができる。   According to such a configuration, it is possible to effectively use the remaining time when the digital value acquisition process corresponding to the analog signal input from the control target for measurement ends in a time that is 1/2 or less of the sampling period. Either offset temperature correction data or gain temperature correction data can be acquired. When performing both offset and gain temperature corrections, offset temperature correction data and gain temperature correction data may be acquired in two sampling cycles. Therefore, even when a sampling period shorter than that of the second configuration is set, if the sampling period is twice or more the sampling unit time, temperature correction is performed while avoiding missing data acquired for measurement. be able to.

本発明によるアナログ信号処理装置の第4の構成は、上記第2又は第3の構成において、前記制御対象から入力されるアナログ信号をA/D変換して得られたディジタル値を所定数だけ順次記憶するデータ収集メモリを備え、前記温度補正指令部は、前記サンプリング周期の設定値が前記サンプリング単位時間の2倍未満であるときに、前記ディジタル値を所定数だけ順次記憶するデータ収集が完了した後に前記AD変換部の温度補正の実行を指令することを特徴とする。   According to a fourth configuration of the analog signal processing apparatus of the present invention, in the second or third configuration, a predetermined number of digital values obtained by A / D converting the analog signal input from the control target are sequentially provided. A data collection memory for storing, and when the set value of the sampling period is less than twice the sampling unit time, the temperature correction command unit has completed data collection for sequentially storing a predetermined number of the digital values The execution of temperature correction of the AD converter is instructed later.

このような構成によれば、サンプリング単位時間とサンプリング周期との関係が所定の関係を満たさない場合、すなわち、サンプリング単位時間の2倍より短いサンプリング周期が設定された場合であっても、所定数のデータ収集が完了した後にAD変換部の温度補正を実行することができる。一般に、データ収集メモリに記憶するディジタル値の数(所定数)には上限があり、サンプリング周期が短くなれば所定数とサンプリング周期との積は小さくなるので、一定の温度補正周期より短くなることが多い。したがって、この場合も、測定のために取得されるデータの欠落を回避しながら温度補正を行うことができる。   According to such a configuration, even when the relationship between the sampling unit time and the sampling cycle does not satisfy the predetermined relationship, that is, when a sampling cycle shorter than twice the sampling unit time is set, the predetermined number After completing the data collection, the temperature correction of the AD conversion unit can be executed. Generally, there is an upper limit to the number of digital values (predetermined number) stored in the data acquisition memory, and if the sampling period is shortened, the product of the predetermined number and the sampling period is small, so that it is shorter than a certain temperature correction period. There are many. Therefore, also in this case, temperature correction can be performed while avoiding missing data acquired for measurement.

本発明によるアナログ信号処理装置の第5の構成は、前記データ収集メモリに記憶された所定数のディジタル値が転送されるバッファメモリを更に備え、前記CPUユニットが所定の制御サイクルごとに、又はユーザーの指令にしたがって、前記バッファメモリの記憶データを読み出すことができるように構成されていることを特徴とする。   A fifth configuration of the analog signal processing device according to the present invention further includes a buffer memory to which a predetermined number of digital values stored in the data acquisition memory are transferred, and the CPU unit is configured to perform a predetermined control cycle or a user. The data stored in the buffer memory can be read in accordance with the command.

このような構成によれば、CPUユニットが所定の制御サイクルごとに、又はユーザーの指令にしたがって、順次サンプリングされ記憶された所定数のディジタル値を確実にCPUユニットに渡すことができると共に、サンプリング周期をより小さな値に設定することが可能になる。   According to such a configuration, the CPU unit can reliably pass a predetermined number of digital values that are sequentially sampled and stored to the CPU unit every predetermined control cycle or in accordance with a user's command, and the sampling cycle. Can be set to a smaller value.

以下、図面を参照しながら本発明の実施例について説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は、本発明の実施例に係るアナログ信号処理装置であるアナログ入力ユニットを用いたプログラマブルロジックコントローラー(PLC)の概略構成を示すブロック図である。図1に示すように、CPUユニット1とアナログ入力ユニット2とが接続され、制御対象からのアナログ信号がアナログ入力ユニット2に入力されている。制御対象として、例えば光電センサー、圧力センサー等の各種センサー装置が接続され、その出力信号であるアナログ信号(電圧、電流等)がアナログ入力ユニット2に入力される。   FIG. 1 is a block diagram showing a schematic configuration of a programmable logic controller (PLC) using an analog input unit which is an analog signal processing apparatus according to an embodiment of the present invention. As shown in FIG. 1, a CPU unit 1 and an analog input unit 2 are connected, and an analog signal from a control target is input to the analog input unit 2. As a control target, for example, various sensor devices such as a photoelectric sensor and a pressure sensor are connected, and an analog signal (voltage, current, etc.) that is an output signal thereof is input to the analog input unit 2.

アナログ入力ユニット2は、アナログ回路21、処理部22、データ収集メモリ23、スレーブASIC24を内蔵している。制御対象からアナログ入力ユニット2に入力されたアナログ信号は、所定のサンプリング周期ごとにアナログ回路21でA/D変換され、その出力(ディジタルデータ)が処理部22に与えられる。処理部22は、そのディジタルデータに演算を行い、サンプリング周期ごとのディジタル値を出力する。この演算には、A/D変換器のオフセット補正及びゲイン補正が含まれる。   The analog input unit 2 includes an analog circuit 21, a processing unit 22, a data collection memory 23, and a slave ASIC 24. An analog signal input from the controlled object to the analog input unit 2 is A / D converted by the analog circuit 21 every predetermined sampling period, and its output (digital data) is given to the processing unit 22. The processing unit 22 performs an operation on the digital data and outputs a digital value for each sampling period. This calculation includes offset correction and gain correction of the A / D converter.

処理部22から出力されたサンプリング周期ごとのディジタル値は、データ収集メモリ23に順次記憶される。所定数のディジタル値がデータ収集メモリ23に記憶された時点で、すなわち、サンプリング周期と所定数との積に相当する時間が経過した時点で、処理部22はデータ収集メモリ23に記憶された所定数のディジタル値を読み出してスレーブASIC24に内蔵されたバッファメモリ241に転送する。スレーブASIC24は、アナログ入力ユニット2側のASIC(特定用途向け集積回路)であり、バッファメモリ241と共に、CPUユニット1とアナログ入力ユニット2とのバス通信を司る通信インターフェイス242を含んでいる。   The digital value for each sampling period output from the processing unit 22 is sequentially stored in the data collection memory 23. When a predetermined number of digital values are stored in the data acquisition memory 23, that is, when a time corresponding to the product of the sampling period and the predetermined number has elapsed, the processing unit 22 stores the predetermined value stored in the data acquisition memory 23. The digital value of the number is read and transferred to the buffer memory 241 built in the slave ASIC 24. The slave ASIC 24 is an ASIC (application-specific integrated circuit) on the analog input unit 2 side, and includes a communication interface 242 that controls the bus communication between the CPU unit 1 and the analog input unit 2 together with the buffer memory 241.

CPUユニット1には、マスタASIC11と制御部12が含まれている。マスタASIC11は、CPUユニット1側のASICであり、アナログ入力ユニット2とのバス通信を司る通信インターフェイス111とメモリ112を含んでいる。制御部12は、ラダー言語で記述されたシーケンスプログラムに従って、アナログ入力ユニット2との通信制御を含む各種制御を実行する。通常は、その制御サイクル中に1回だけ、アナログ入力ユニット2とのバス通信を行い、アナログ入力ユニット2のスレーブASIC24のバッファメモリ241に記憶されている所定数のディジタル値を読み出す。読み出された所定数のディジタル値は、マスタASIC11内のメモリ112に一旦記憶され、必要に応じて読み出され、制御部12が実行する各種制御に使用される。   The CPU unit 1 includes a master ASIC 11 and a control unit 12. The master ASIC 11 is an ASIC on the CPU unit 1 side, and includes a communication interface 111 and a memory 112 that control bus communication with the analog input unit 2. The control unit 12 executes various controls including communication control with the analog input unit 2 according to a sequence program described in a ladder language. Normally, bus communication with the analog input unit 2 is performed only once during the control cycle, and a predetermined number of digital values stored in the buffer memory 241 of the slave ASIC 24 of the analog input unit 2 are read. The read-out predetermined number of digital values are temporarily stored in the memory 112 in the master ASIC 11, read out as necessary, and used for various controls executed by the control unit 12.

なお、CPUユニット1がアナログ入力ユニット2とバス通信を行ってバッファメモリ241に記憶されているディジタル値を読み出すタイミングとして、制御サイクルに1回の定期的なタイミングの他に、ユーザーの指令にしたがって読み出すタイミングもある。ユーザーは、例えばタッチパネルを用いたプログラム表示器を操作してCPUユニット1に指令を与えることができる。   As a timing at which the CPU unit 1 performs bus communication with the analog input unit 2 and reads a digital value stored in the buffer memory 241, in accordance with a user command in addition to a periodic timing once in a control cycle. There is also a timing to read. The user can give a command to the CPU unit 1 by operating a program display using a touch panel, for example.

図2は、アナログ入力ユニット中のアナログ回路及び処理部の内部構成を示すブロック図である。通常、複数のアナログ回路21が処理部22に接続され、複数の制御対象から複数のアナログ信号を同時に(並行して)入力できるように構成される。図示の例では、2チャンネルのアナログ回路21が処理部22に接続されている。なお、複数のアナログ回路21は互いに絶縁され、各アナログ回路21には個別の絶縁された電源が内蔵されている。また、各アナログ回路21と処理部22とはフォトカップラ25で接続され、電気的に両者が絶縁された状態で、アナログ回路21の出力(ディジタル信号)が処理部22へ渡される。   FIG. 2 is a block diagram illustrating an internal configuration of an analog circuit and a processing unit in the analog input unit. Usually, a plurality of analog circuits 21 are connected to the processing unit 22 so that a plurality of analog signals can be input simultaneously (in parallel) from a plurality of controlled objects. In the illustrated example, a two-channel analog circuit 21 is connected to the processing unit 22. The plurality of analog circuits 21 are insulated from each other, and each analog circuit 21 incorporates a separate insulated power supply. Each analog circuit 21 and the processing unit 22 are connected by a photocoupler 25, and the output (digital signal) of the analog circuit 21 is passed to the processing unit 22 in a state where both are electrically insulated.

アナログ回路21は、基準電圧発生回路(VREF)211、マルチプレクサ(MPX)212、増幅器(AMP)213及びA/D変換器(ADC)214を内蔵している。基準電圧発生回路211は、A/D変換器214のばらつき補正及び温度補正のための基準電圧(基準アナログ信号)を発生する基準アナログ信号発生部に相当する。マルチプレクサ212は、制御対象からのアナログ信号入力と基準電圧発生回路211からの基準電圧とを択一的に切り替える働きを有する。マルチプレクサ212から出力されたアナログ電圧信号は増幅器213で増幅された後、A/D変換器214でディジタル信号(データ)に変換され、アナログ回路21からの出力となる。この出力は、フォトカップラ25を介して処理部22に渡される。   The analog circuit 21 includes a reference voltage generation circuit (VREF) 211, a multiplexer (MPX) 212, an amplifier (AMP) 213, and an A / D converter (ADC) 214. The reference voltage generation circuit 211 corresponds to a reference analog signal generation unit that generates a reference voltage (reference analog signal) for variation correction and temperature correction of the A / D converter 214. The multiplexer 212 has a function of selectively switching between an analog signal input from the control target and a reference voltage from the reference voltage generation circuit 211. The analog voltage signal output from the multiplexer 212 is amplified by the amplifier 213, converted to a digital signal (data) by the A / D converter 214, and output from the analog circuit 21. This output is passed to the processing unit 22 via the photocoupler 25.

処理部22は、ディジタル値演算部221、サンプリング周期設定部222、温度補正実行部223、温度補正指令部224及び記憶部225を有する。例えば処理部22の全体がマイクロコンピュータで構成される場合、上記の各部はマイクロコンピュータのハードウェア及びソフトウェアによって構成される。ディジタル値演算部221は、アナログ回路21のA/D変換器214から与えられたディジタルデータにオフセット補正及びゲイン補正を施してサンプリング周期ごとのディジタル値を出力する。したがって、A/D変換器214及びディジタル値演算部221が、サンプリング周期ごとにアナログ信号をA/D変換し、所定のオフセット及びゲインにしたがってディジタル値を出力するAD変換部に相当する。   The processing unit 22 includes a digital value calculation unit 221, a sampling cycle setting unit 222, a temperature correction execution unit 223, a temperature correction command unit 224, and a storage unit 225. For example, when the entire processing unit 22 is configured by a microcomputer, each of the above units is configured by microcomputer hardware and software. The digital value calculation unit 221 performs offset correction and gain correction on the digital data supplied from the A / D converter 214 of the analog circuit 21 and outputs a digital value for each sampling period. Therefore, the A / D converter 214 and the digital value calculation unit 221 correspond to an AD conversion unit that A / D converts an analog signal for each sampling period and outputs a digital value according to a predetermined offset and gain.

サンプリング周期設定部222は、CPUユニット1からの指令にしたがってサンプリング周期を設定する。サンプリング周期は、アプリケーションに応じて適切な時間間隔が設定される。制御対象(測定対象)からのアナログ信号の変化が比較的緩やかなアプリケーションではサンプリング周期を長く設定することができ、逆に制御対象からのアナログ信号が急激に変化するようなアプリケーションでは、サンプリング周期を短く設定する必要がある。但し、AD変換部の処理に要するサンプリング単位時間より短いサンプリング周期を設定することはできない。ユーザは、CPUユニット1に接続されるコンピュータ等のユーザーインターフェイスを用いて適切なサンプリング周期を指定することができる。   The sampling cycle setting unit 222 sets the sampling cycle according to a command from the CPU unit 1. The sampling period is set to an appropriate time interval according to the application. In applications where the change in the analog signal from the control target (measurement target) is relatively slow, the sampling cycle can be set longer. Conversely, in an application where the analog signal from the control target changes abruptly, the sampling cycle can be set longer. It is necessary to set it short. However, it is not possible to set a sampling period shorter than the sampling unit time required for processing of the AD converter. The user can specify an appropriate sampling period using a user interface such as a computer connected to the CPU unit 1.

温度補正実行部223、温度補正指令部224及び記憶部225の働きについて説明する前に、ディジタル値演算部221が実行するオフセット補正及びゲイン補正について、図3を参照しながら簡単に説明する。図3は、A/D変換器214のアナログ入力(電圧)Vを横軸にとり、ディジタル出力(データ)Dを縦軸にとったときのA/D変換特性の例を示すグラフである。式D=αVで表される実線の直線が理想的なA/D変換特性を示し、式D=d+βVで表される破線の直線が実際のA/D変換器214の変換特性を示している。但し、実際には直線ではなく階段状の変換特性となり、A/D変換器214の解像度が高いほど(ビット数が大きいほど)ステップが細かくなる。近似変換特性である直線D=d+βVにおけるY軸上の切片dをゼロにする補正がオフセット補正に相当し、傾きβをα(=D1/10)にする補正がゲイン補正に相当する。切片d及び傾きβは主としてA/D変換器214のばらつきによって変動する。但し、リニアリティ(直線性)は補償されているとする。   Before describing the functions of the temperature correction execution unit 223, the temperature correction command unit 224, and the storage unit 225, offset correction and gain correction executed by the digital value calculation unit 221 will be briefly described with reference to FIG. FIG. 3 is a graph showing an example of A / D conversion characteristics when the analog input (voltage) V of the A / D converter 214 is taken on the horizontal axis and the digital output (data) D is taken on the vertical axis. A solid line represented by the formula D = αV represents an ideal A / D conversion characteristic, and a broken line represented by the formula D = d + βV represents the actual conversion characteristic of the A / D converter 214. . However, in reality, the conversion characteristic is not a straight line but stepwise, and the higher the resolution of the A / D converter 214 (the larger the number of bits), the finer the step. The correction that makes the intercept d on the Y axis on the straight line D = d + βV, which is an approximate conversion characteristic, zero corresponds to offset correction, and the correction that makes the slope β α (= D1 / 10) corresponds to gain correction. The intercept d and the slope β vary mainly due to variations in the A / D converter 214. However, it is assumed that linearity is compensated.

そこで、例えば工場出荷時の検査工程等において、アナログ入力として0V(下限値)及び10V(上限値)を与えたときのディジタル出力d及びD2から切片d及び傾きβ(=(D2−d)/10)を求めることができる。これらの値がオフセット補正値及びゲイン補正値として記憶される。ディジタル値演算部221は、これらの補正値に基づいて、測定時に得られるA/D変換器214の出力のばらつき補正(オフセット補正及びゲイン補正)を実行する。   Therefore, for example, in the inspection process at the time of factory shipment, the intercept d and the slope β (= (D2−d) /) from the digital outputs d and D2 when 0 V (lower limit value) and 10 V (upper limit value) are given as analog inputs. 10) can be obtained. These values are stored as an offset correction value and a gain correction value. Based on these correction values, the digital value calculation unit 221 executes dispersion correction (offset correction and gain correction) of the output of the A / D converter 214 obtained at the time of measurement.

上記の例における0V(下限値)及び10V(上限値)は、図2における各アナログ回路21の基準電圧発生回路211によって発生される。また、マルチプレクサ212の入力は基準電圧発生回路211側に切り替えられてオフセット補正値及びゲイン補正値の取得が実行される。処理部22のディジタル値演算部221(又は記憶部225)には、複数のアナログ回路21のオフセット補正値及びゲイン補正値がチャンネルごとに記憶される。なお、オフセット補正及びゲイン補正の具体的な演算方法については説明を省略するが、その概念は図3を用いて説明した通りである。また、記憶されるオフセット補正値及びゲイン補正値についても、上記の例示に限らず、種々の形態が考えられる。   In the above example, 0 V (lower limit value) and 10 V (upper limit value) are generated by the reference voltage generation circuit 211 of each analog circuit 21 in FIG. Also, the input of the multiplexer 212 is switched to the reference voltage generation circuit 211 side, and the offset correction value and the gain correction value are acquired. The digital value calculation unit 221 (or storage unit 225) of the processing unit 22 stores the offset correction values and gain correction values of the plurality of analog circuits 21 for each channel. Note that a specific calculation method for offset correction and gain correction is not described, but the concept is the same as described with reference to FIG. Also, the stored offset correction value and gain correction value are not limited to the above examples, and various forms are conceivable.

上記のように工場出荷時の検査工程等において行われるオフセット補正値及びゲイン補正値の取得と記憶は、管理された所定温度(例えば室温25℃)において行われる。そして、A/D変換器214の出力が周囲温度によって変動する温度特性を有するので、その補償(温度補正)を行う必要がある。つまり、所定温度で基準電圧から得られた第1基準ディジタル値を記憶部225に記憶しておき、測定時に所定の温度補正周期ごとに基準電圧から得られた第2基準ディジタル値が第1基準ディジタル値に等しくなるように、オフセット補正値及びゲイン補正値を補正することによって温度補正を行う。この温度補正を実行するのが温度補正実行部223であり、温度補正の実行を温度補正実行部223に指令するのが温度補正指令部224である。   As described above, the acquisition and storage of the offset correction value and the gain correction value performed in the inspection process at the time of shipment from the factory are performed at a controlled predetermined temperature (for example, room temperature 25 ° C.). Since the output of the A / D converter 214 has a temperature characteristic that varies depending on the ambient temperature, it is necessary to compensate (temperature correction) for the output. That is, the first reference digital value obtained from the reference voltage at a predetermined temperature is stored in the storage unit 225, and the second reference digital value obtained from the reference voltage at every predetermined temperature correction period during measurement is the first reference value. Temperature correction is performed by correcting the offset correction value and the gain correction value so as to be equal to the digital value. The temperature correction is performed by the temperature correction execution unit 223, and the temperature correction command unit 224 instructs the temperature correction execution unit 223 to execute the temperature correction.

なお、第1基準ディジタル値は、前述のばらつき補正のためのオフセット補正値及びゲイン補正値そのものであってよい。但し、温度補正は、オフセット補正値及びゲイン補正値のいずれか一方の補正で足りる場合もある。また、記憶部225はディジタル値演算部221内に設けられていてもよい。   The first reference digital value may be the offset correction value and the gain correction value for correcting the above-described variation. However, the temperature correction may be performed by correcting one of the offset correction value and the gain correction value. The storage unit 225 may be provided in the digital value calculation unit 221.

温度補正のための第2基準ディジタル値の取得は、工場出荷時の検査工程等において行われるオフセット補正値及びゲイン補正値の取得(第1基準ディジタル値の取得)と同様にして行うことができる。すなわち、基準電圧発生回路211によって基準電圧を発生し、マルチプレクサ212の入力を基準電圧発生回路211側に切り替えればよい。そして、オフセット補正値及びゲイン補正値の両方の温度補正を行う場合は、図2を参照して説明した概念にしたがって補正を実行すればよい。   The acquisition of the second reference digital value for temperature correction can be performed in the same manner as the acquisition of the offset correction value and the gain correction value (acquisition of the first reference digital value) performed in the inspection process at the time of shipment from the factory. . That is, the reference voltage is generated by the reference voltage generation circuit 211 and the input of the multiplexer 212 is switched to the reference voltage generation circuit 211 side. And when performing temperature correction of both an offset correction value and a gain correction value, what is necessary is just to perform correction | amendment according to the concept demonstrated with reference to FIG.

上記のように、マルチプレクサ212の入力を基準電圧発生回路211側に切り替えて第2基準ディジタル値の取得を行うタイミングでは、制御対象からのアナログ信号のサンプリングはできないので、測定中であれば測定データが欠落するおそれがある。しかし、本実施例のアナログ入力ユニット2では、そのような測定データの欠落を発生させることなく第2基準ディジタル値の取得を行うことができる条件を温度補正指令部224が判断し、温度補正の実行を温度補正実行部223に指令する。温度補正指令部224及び温度補正実行部223を含む処理部22の温度補正に関する処理について、いくつかの実施例を以下に説明する。   As described above, at the timing when the input of the multiplexer 212 is switched to the reference voltage generation circuit 211 side to acquire the second reference digital value, the analog signal cannot be sampled from the controlled object. May be missing. However, in the analog input unit 2 of the present embodiment, the temperature correction command unit 224 determines the conditions under which the second reference digital value can be acquired without causing such missing measurement data, and the temperature correction command unit 224 The execution is commanded to the temperature correction execution unit 223. Several embodiments of the processing related to temperature correction of the processing unit 22 including the temperature correction command unit 224 and the temperature correction execution unit 223 will be described below.

図4は実施例1に係る温度補正用データの取得タイミングを説明する図である。この実施例において、温度補正指令部224は、サンプリング周期Tsの設定値がサンプリング単位時間Ta(例えば100マイクロ秒)の3倍以上であれば所定の温度補正周期Tt(例えば30秒)ごとに温度補正の実行(第2基準ディジタル値の取得)を指令する。温度補正実行部223は、1番目のサンプリング単位時間Taで通常の測定データ(制御対象からのアナログ信号に対応するディジタル値)DATA1を取得し、続く2番目のサンプリング単位時間Taである期間P1でオフセット温度補正用データを取得し、3番目のサンプリング単位時間Taである期間P2でゲイン温度補正用データを取得する。こうして、測定データの欠落を発生させることなく第2基準ディジタル値であるオフセット温度補正用データ及びゲイン温度補正用データを取得することができる。   FIG. 4 is a diagram illustrating the temperature correction data acquisition timing according to the first embodiment. In this embodiment, the temperature correction command unit 224 determines the temperature every predetermined temperature correction period Tt (for example, 30 seconds) if the set value of the sampling period Ts is three times or more of the sampling unit time Ta (for example, 100 microseconds). Command execution of correction (acquisition of second reference digital value). The temperature correction execution unit 223 acquires normal measurement data (digital value corresponding to an analog signal from the control target) DATA1 in the first sampling unit time Ta, and then in the period P1 that is the second sampling unit time Ta. The offset temperature correction data is acquired, and the gain temperature correction data is acquired in the period P2, which is the third sampling unit time Ta. In this way, the offset temperature correction data and the gain temperature correction data, which are the second reference digital values, can be acquired without causing missing measurement data.

図5は、実施例1における温度補正実行部223及び温度補正指令部224を含む処理部22による処理の例を示すフローチャートである。ステップ#101においてサンプリング単位時間Taの経過を待ってステップ#102に進む。あるいは、サンプリング単位時間Taごとに発生する割り込み要求にしたがって、ステップ#102以降の処理が実行されるようにしてもよい。ステップ#102ではサンプリング周期Tsが経過したか否かが判断される。サンプリング周期Tsが経過した場合は次のステップ#103で通常の測定データが取得され、続くステップ#104で温度補正を含むオフセット補正及びゲイン補正が実行され、サンプリング周期ごとのディジタル値が出力される。   FIG. 5 is a flowchart illustrating an example of processing performed by the processing unit 22 including the temperature correction execution unit 223 and the temperature correction command unit 224 according to the first embodiment. In step # 101, the process proceeds to step # 102 after the sampling unit time Ta has elapsed. Alternatively, the processing after step # 102 may be executed in accordance with an interrupt request generated every sampling unit time Ta. In step # 102, it is determined whether the sampling period Ts has elapsed. When the sampling period Ts has elapsed, normal measurement data is acquired in the next step # 103, and in the subsequent step # 104, offset correction and gain correction including temperature correction are executed, and a digital value for each sampling period is output. .

ステップ#102でサンプリング周期Tsが経過していない場合、すなわち、サンプリング周期Tsにおける2番目以降のサンプリング単位時間Taの場合は、ステップ#105に進んで温度補正周期Ttが経過したか否かがチェックされる。温度補正周期Ttが経過したときは、次のステップ#106で期間P1(2番目のサンプリング単位時間Ta)であるか否かがチェックされる。期間P1である場合は、次のステップ#107でオフセット温度補正用データが取得される。ステップ#106において期間P1でなかった場合は、次のステップ#108で期間P2(3番目のサンプリング単位時間Ta)であるか否かがチェックされる。期間P2である場合は、次のステップ#109でゲイン温度補正用データが取得される。ステップ#108において期間P2でなかった場合(すわわち、それより後の期間である場合)は、ステップ#109がスキップされる。また、ステップ#105において温度補正周期Ttが経過していないときは、ステップ#106からステップ#109の処理がスキップされる。なお、サンプリング周期Ts内の期間P1であるか期間P2であるか、又はそれより後の期間であるかの判断は、カウンタ又はフラグを用いて行うことができる。   If the sampling period Ts has not elapsed in step # 102, that is, if it is the second or subsequent sampling unit time Ta in the sampling period Ts, the process proceeds to step # 105 to check whether the temperature correction period Tt has elapsed. Is done. When the temperature correction cycle Tt has elapsed, it is checked in the next step # 106 whether or not it is the period P1 (second sampling unit time Ta). In the period P1, offset temperature correction data is acquired in the next step # 107. If it is not the period P1 in step # 106, it is checked in the next step # 108 whether or not it is the period P2 (third sampling unit time Ta). If it is the period P2, gain temperature correction data is acquired in the next step # 109. If it is not the period P2 in step # 108 (that is, a period after that), step # 109 is skipped. When the temperature correction cycle Tt has not elapsed in step # 105, the processing from step # 106 to step # 109 is skipped. Note that it is possible to determine whether it is the period P1 within the sampling period Ts, the period P2, or a period after that using a counter or a flag.

ステップ#104、ステップ#107又はステップ#109の処理に続いて、ステップ#110において所定数のデータ収集が完了したか否かがチェックされる。所定数のデータ収集が完了するまで、ステップ#101からステップ#110の処理が繰り返される。なお、図1を参照して説明したように、サンプリング周期ごとに取得された所定数のディジタル値はデータ収集メモリ23に順次記憶され、その後、データ収集メモリ23から読み出された所定数のディジタル値はスレーブASIC24のバッファメモリ241に転送される。   Following the processing of step # 104, step # 107 or step # 109, it is checked in step # 110 whether a predetermined number of data collection has been completed. Steps # 101 to # 110 are repeated until a predetermined number of data collection is completed. As described with reference to FIG. 1, the predetermined number of digital values acquired for each sampling period are sequentially stored in the data acquisition memory 23, and then the predetermined number of digital values read from the data acquisition memory 23. The value is transferred to the buffer memory 241 of the slave ASIC 24.

上記のように、本実施例によれば、温度補正指令部224は、サンプリング周期Tsの設定値がサンプリング単位時間Taの3倍以上であれば温度補正周期Ttごとに温度補正用データ(第2基準ディジタル値の取得)を指令する。温度補正実行部223は、温度補正指令部224からの指令に従って、通常のデータ取得が終了した後のサンプリング周期Tsにおける残り時間を有効に用いて、オフセット温度補正用データ及びゲイン温度補正用データを続けて取得することができる。したがって、測定データの欠落を回避しながら温度補正を迅速に行うことができる。   As described above, according to the present embodiment, the temperature correction command unit 224 determines the temperature correction data (second data) for each temperature correction cycle Tt if the set value of the sampling cycle Ts is three times or more the sampling unit time Ta. Command to obtain the reference digital value). In accordance with a command from the temperature correction command unit 224, the temperature correction execution unit 223 effectively uses the remaining time in the sampling period Ts after the end of normal data acquisition to obtain the offset temperature correction data and the gain temperature correction data. You can continue to get. Therefore, temperature correction can be performed quickly while avoiding missing measurement data.

図6は実施例2に係る温度補正用データの取得タイミングを説明する図である。この実施例において、温度補正指令部224は、サンプリング周期Tsの設定値がサンプリング単位時間Taの2倍以上であれば所定の温度補正周期Ttごとに温度補正の実行(第2基準ディジタル値の取得)を指令する。温度補正実行部223は、1番目のサンプリング単位時間Taで通常の測定データ(制御対象からのアナログ信号に対応するディジタル値)DATA1を取得し、2番目のサンプリング単位時間Taである期間Q1でオフセット温度補正用データを取得する。そして、次のサンプリング周期Tsにおいて、1番目のサンプリング単位時間Taで通常の測定データDATA2を取得し、2番目のサンプリング単位時間Taである期間Q2でゲイン温度補正用データを取得する。つまり、2回のサンプリング周期Tsに分けてオフセット温度補正用データ及びゲイン温度補正用データを取得する。   FIG. 6 is a diagram for explaining the acquisition timing of the temperature correction data according to the second embodiment. In this embodiment, the temperature correction command unit 224 executes temperature correction (acquisition of the second reference digital value) every predetermined temperature correction cycle Tt if the set value of the sampling cycle Ts is twice or more the sampling unit time Ta. ). The temperature correction execution unit 223 acquires normal measurement data (digital value corresponding to the analog signal from the control target) DATA1 in the first sampling unit time Ta, and offsets in the period Q1 which is the second sampling unit time Ta. Acquire temperature correction data. Then, in the next sampling period Ts, normal measurement data DATA2 is acquired in the first sampling unit time Ta, and gain temperature correction data is acquired in the period Q2 that is the second sampling unit time Ta. That is, the offset temperature correction data and the gain temperature correction data are acquired in two sampling cycles Ts.

図7は、実施例2における温度補正実行部223及び温度補正指令部224を含む処理部22による処理の例を示すフローチャートである。ステップ#201からステップ#204までの処理は図5のステップ#101からステップ#104までの処理と同じである。ステップ#205において温度補正周期Ttが経過したか否かがチェックされ、温度補正周期Ttが経過したときは次のステップ#206で、期間Q1(図6参照)であるか否かがチェックされる。期間Q1である場合は、次のステップ#207でオフセット温度補正用データが取得され、期間Q1でない(それより後である)場合はステップ#207がスキップされる。   FIG. 7 is a flowchart illustrating an example of processing performed by the processing unit 22 including the temperature correction execution unit 223 and the temperature correction command unit 224 according to the second embodiment. The processing from step # 201 to step # 204 is the same as the processing from step # 101 to step # 104 in FIG. In step # 205, it is checked whether or not the temperature correction cycle Tt has passed. When the temperature correction cycle Tt has passed, it is checked in the next step # 206 whether or not it is the period Q1 (see FIG. 6). . When the period is Q1, offset temperature correction data is acquired at the next step # 207, and when it is not the period Q1 (after it), step # 207 is skipped.

ステップ#205において温度補正周期Ttが経過していないときは、次のステップ#208で、期間Q2(図6参照)であるか否かがチェックされる。期間Q2である場合は、次のステップ#209でゲイン温度補正用データが取得され、期間Q2でない(それより後である)場合はステップ#209がスキップされる。   If the temperature correction cycle Tt has not elapsed in step # 205, it is checked in next step # 208 whether or not it is the period Q2 (see FIG. 6). If it is the period Q2, the gain temperature correction data is acquired in the next step # 209, and if it is not the period Q2 (after it), the step # 209 is skipped.

ステップ#204、ステップ#207又はステップ#209の処理に続いて、ステップ#210において所定数のデータ収集が完了したか否かがチェックされる。所定数のデータ収集が完了するまで、ステップ#210からステップ#210の処理が繰り返される。所定数のディジタル値がデータ収集メモリ23に順次記憶され、その後、スレーブASIC24のバッファメモリ241に転送される点は実施例1と同様である。   Following the processing of step # 204, step # 207 or step # 209, it is checked in step # 210 whether a predetermined number of data collection has been completed. The processing from step # 210 to step # 210 is repeated until a predetermined number of data collection is completed. Similar to the first embodiment, a predetermined number of digital values are sequentially stored in the data collection memory 23 and then transferred to the buffer memory 241 of the slave ASIC 24.

上記のように、本実施例によれば、温度補正指令部224は、サンプリング周期Tsの設定値がサンプリング単位時間Taの2倍以上であれば温度補正周期Ttごとに温度補正用データ(第2基準ディジタル値の取得)を指令する。温度補正実行部223は、温度補正指令部224からの指令に従って、通常のデータ取得が終了した後のサンプリング周期Ts内の残り時間を有効に用いて、オフセット温度補正用データ及びゲイン温度補正用データを2回のサンプリング周期Tsに分けて取得することができる。したがって、測定データの欠落を回避しながら温度補正を行うことができる。   As described above, according to the present embodiment, the temperature correction command unit 224 determines that the temperature correction data (second data) is set for each temperature correction cycle Tt if the set value of the sampling cycle Ts is twice or more the sampling unit time Ta. Command to obtain the reference digital value). The temperature correction execution unit 223 effectively uses the remaining time within the sampling period Ts after the end of normal data acquisition in accordance with the command from the temperature correction command unit 224 to use the offset temperature correction data and the gain temperature correction data. Can be obtained by dividing into two sampling periods Ts. Therefore, temperature correction can be performed while avoiding missing measurement data.

なお、オフセット及びゲインのいずれか一方の温度補正で足りる場合は、第2基準ディジタル値の取得を1回のサンプリング周期Ts(図6における期間Q1)で済ませることができる。また、本実施例を実施例1と組み合わせることも可能である。つまり、温度補正指令部224は、サンプリング周期Tsの設定値がサンプリング単位時間Taの3倍以上であれば実施例1に基づいて第2基準ディジタル値の取得を指令し、サンプリング周期Tsの設定値がサンプリング単位時間Taの3倍未満で2倍以上であれば実施例2に基づいて第2基準ディジタル値の取得を指令するようにしてもよい。   Note that when either one of the offset and gain temperature corrections is sufficient, the second reference digital value can be acquired in one sampling cycle Ts (period Q1 in FIG. 6). Further, this embodiment can be combined with the first embodiment. That is, if the set value of the sampling period Ts is three times or more of the sampling unit time Ta, the temperature correction command unit 224 instructs the acquisition of the second reference digital value based on the first embodiment and sets the set value of the sampling period Ts. If it is less than 3 times the sampling unit time Ta and 2 times or more, the acquisition of the second reference digital value may be instructed based on the second embodiment.

図8は、実施例3に係る温度補正用データの取得タイミングを説明する図である。この実施例において、温度補正指令部224は、データ収集数(所定数)nとサンプリング周期Tsとの積n×Tsが温度補正周期Ttより小さいときは、所定数の測定データの記憶(データ収集)が完了した後に温度補正の実行(第2基準ディジタル値の取得)を指令する。温度補正実行部223は、温度補正指令部224からの指令にしたがい、所定数n個の測定データの取得に引き続いて、2個のサンプリング単位時間Taである期間R1及びR2を用いてオフセット温度補正用データ及びゲイン温度補正用データを取得する。つまり、次のデータ収集が開始されるまでの間に温度補正用データ(第2基準ディジタル値)を取得しておく。   FIG. 8 is a diagram for explaining the acquisition timing of the temperature correction data according to the third embodiment. In this embodiment, the temperature correction command unit 224 stores a predetermined number of measurement data (data collection) when the product n × Ts of the data collection number (predetermined number) n and the sampling period Ts is smaller than the temperature correction period Tt. ) Is executed, the execution of temperature correction (acquisition of the second reference digital value) is commanded. In accordance with a command from the temperature correction command unit 224, the temperature correction execution unit 223 performs offset temperature correction using periods R1 and R2, which are two sampling unit times Ta, following acquisition of a predetermined number n of measurement data. Data and gain temperature correction data are acquired. That is, temperature correction data (second reference digital value) is acquired before the next data collection is started.

図9は、実施例3における温度補正実行部223及び温度補正指令部224を含む処理部22による処理の例を示すフローチャートである。ステップ#301からステップ#304までの処理は図5のステップ#101からステップ#104までの処理と同様である。但し、ステップ#302においてサンプリング周期Tsが経過していない場合は、何もしないでステップ#301に戻る。   FIG. 9 is a flowchart illustrating an example of processing performed by the processing unit 22 including the temperature correction execution unit 223 and the temperature correction command unit 224 according to the third embodiment. The processing from step # 301 to step # 304 is the same as the processing from step # 101 to step # 104 in FIG. However, if the sampling period Ts has not elapsed in step # 302, nothing is done and the process returns to step # 301.

ステップ#305において所定数のデータ収集が完了したか否かがチェックされる。所定数のデータ収集が完了するまで、ステップ#301からステップ#305の処理が繰り返される。所定数のデータ収集が完了すれば、次のステップ#306においてオフセット温度補正用データが取得され、続くステップ#307においてゲイン温度補正用データが取得される。所定数のディジタル値がデータ収集メモリ23に順次記憶され、その後、スレーブASIC24のバッファメモリ241に転送される点は実施例1と同様である。   In step # 305, it is checked whether a predetermined number of data collection has been completed. Steps # 301 to # 305 are repeated until a predetermined number of data collection is completed. When the predetermined number of data collection is completed, offset temperature correction data is acquired in the next step # 306, and gain temperature correction data is acquired in the subsequent step # 307. Similar to the first embodiment, a predetermined number of digital values are sequentially stored in the data collection memory 23 and then transferred to the buffer memory 241 of the slave ASIC 24.

この実施例は、サンプリング単位時間Taの2倍より短いサンプリング周期Tsが設定された場合に有効である。この場合は、測定データを取得した後のサンプリング周期Tsにおける残り時間が短いので、実施例1や実施例2の方法では温度補正用データを取得することができない。しかし、データ収集メモリ23に記憶されるディジタル値(測定データ)の数(所定数)nには上限があり、サンプリング周期Tsが短くなれば所定数nとサンプリング周期Tsとの積n×Tsは小さくなるので、一定の温度補正周期Ttより短くなることが多い。例えば、n=10000、Ts=200マイクロ秒のときに、n×Ts=20秒となり、これは前述の温度補正周期Ttの例30秒より短くなる。この場合に、所定数n個の測定データの取得に引き続いて、次のデータ収集が開始されるまでの間に温度補正用データを取得しておくことが可能である。したがって、この場合もデータ欠落を生じることなく温度補正を実行することができる。   This embodiment is effective when a sampling period Ts shorter than twice the sampling unit time Ta is set. In this case, since the remaining time in the sampling period Ts after acquiring the measurement data is short, the temperature correction data cannot be acquired by the methods of the first and second embodiments. However, the number (predetermined number) n of digital values (measurement data) stored in the data collection memory 23 has an upper limit, and if the sampling period Ts is shortened, the product n × Ts of the predetermined number n and the sampling period Ts is Since it becomes smaller, it is often shorter than a certain temperature correction cycle Tt. For example, when n = 10000 and Ts = 200 microseconds, n × Ts = 20 seconds, which is shorter than the above-described 30 seconds of the temperature correction period Tt. In this case, following the acquisition of the predetermined number n of measurement data, it is possible to acquire the temperature correction data until the next data collection is started. Therefore, in this case as well, temperature correction can be performed without causing data loss.

なお、所定数nとサンプリング周期Tsとの積n×Tsが温度補正周期Ttより長い場合には、やはり、所定数n個の測定データの取得の完了を待って、次のデータ収集が開始されるまでの間に温度補正用データを取得しておくことが可能である。要するに、サンプリング単位時間Taの2倍より短いサンプリング周期Tsが設定された場合に、所定数n個の測定データの取得の完了を待って、次のデータ収集が開始されるまでの間に温度補正用データを取得しておけばよい。また、この実施例3を実施例1及び実施例2のいずれか又は両方と組み合わせて実施してもよい。   If the product n × Ts of the predetermined number n and the sampling period Ts is longer than the temperature correction period Tt, the next data collection is started after waiting for the completion of acquisition of the predetermined number n of measurement data. It is possible to acquire temperature correction data in the meantime. In short, when a sampling cycle Ts shorter than twice the sampling unit time Ta is set, the temperature correction is made until the next data collection is started after completion of acquisition of a predetermined number n of measurement data. You just have to get the data. Moreover, you may implement this Example 3 in combination with either or both of Example 1 and Example 2.

図10は、本発明の実施例4に係るアナログ入力ユニットにおける温度補正用データの取得タイミングを説明する図である。この実施例は、データ収集機能を有していないアナログ入力ユニットに本発明を適用した場合である。データ収集機能を有していないアナログ入力ユニットの場合は、実施例1におけるサンプリング単位時間Taに等しい間隔でA/D変換(データ取得)が行われ、得られたディジタル値(測定データ)がバッファメモリに書き込まれる。この場合のバッファメモリは最新の1個の測定データのみを記憶している。つまり、サンプリング単位時間Taごとに新しい測定データに更新される。   FIG. 10 is a diagram for explaining the acquisition timing of the temperature correction data in the analog input unit according to the fourth embodiment of the present invention. In this embodiment, the present invention is applied to an analog input unit having no data collection function. In the case of an analog input unit that does not have a data acquisition function, A / D conversion (data acquisition) is performed at an interval equal to the sampling unit time Ta in the first embodiment, and the obtained digital value (measurement data) is buffered. Written to memory. In this case, the buffer memory stores only the latest measurement data. That is, new measurement data is updated every sampling unit time Ta.

一方、CPUユニットはサンプリング単位時間Taより長い間隔Tcでバス通信を行い、アナログ入力ユニットのバッファメモリに記憶されている最新の測定データを読み出す。図10の例では、バス通信の間隔Tcがサンプリング単位時間Taの丁度3倍に設定されている。このとき、バス通信が行われる直前のサンプリング単位時間Taで取得されバッファメモリに書き込まれた測定データがCPUユニットに読み出される。したがって、それより前の2個のサンプリング単位時間Taに相当する期間P1及びP2を用いて温度補正用データを取得することができる。この場合、CPUユニットから見てデータの欠落は発生しない。   On the other hand, the CPU unit performs bus communication at an interval Tc longer than the sampling unit time Ta, and reads the latest measurement data stored in the buffer memory of the analog input unit. In the example of FIG. 10, the bus communication interval Tc is set to exactly three times the sampling unit time Ta. At this time, the measurement data acquired at the sampling unit time Ta immediately before the bus communication is performed and written in the buffer memory is read out to the CPU unit. Therefore, the temperature correction data can be acquired using the periods P1 and P2 corresponding to the two previous sampling unit times Ta. In this case, no data is lost when viewed from the CPU unit.

この実施例では、期間P1及びP2を用いてオフセット温度補正用データ及びゲイン温度補正用データを続けて取得することができるが、実施例2と同様に、オフセット温度補正用データ及びゲイン温度補正用データを2回に分けて取得するようにしてもよい。その場合は、バス通信の間隔Tcがサンプリング単位時間Taの2倍以上であれば、CPUユニットから見てデータの欠落が発生することなく、温度補正用データを取得することが可能になる。また、オフセット及びゲインのいずれか一方の温度補正で足りる場合は、サンプリング単位時間Ta1個分の期間だけで温度補正用データを取得することができる。   In this embodiment, the offset temperature correction data and the gain temperature correction data can be obtained continuously using the periods P1 and P2. However, as in the second embodiment, the offset temperature correction data and the gain temperature correction data are obtained. Data may be acquired in two steps. In this case, if the bus communication interval Tc is at least twice the sampling unit time Ta, it is possible to acquire temperature correction data without data loss as seen from the CPU unit. Further, when either one of the offset and gain temperature corrections is sufficient, the temperature correction data can be acquired only in the period corresponding to one sampling unit time Ta.

以上、本発明の実施例及び変形例を説明したが、本発明はこれらの実施例や変形例に示した構成に限らず、種々の形態で実施することができる。例えば、図1のブロック図に示した実施例1の構成では、データ収集メモリ23とバッファメモリ241が個別に設けられ、バッファメモリ241がスレーブASIC24に含まれているが、収集メモリとバッファメモリとを共通の記憶装置の異なる記憶領域として構成してもよい。   As mentioned above, although the Example and modification of this invention were demonstrated, this invention is not restricted to the structure shown to these Examples and modification, It can implement with a various form. For example, in the configuration of the first embodiment shown in the block diagram of FIG. 1, the data collection memory 23 and the buffer memory 241 are provided separately, and the buffer memory 241 is included in the slave ASIC 24. May be configured as different storage areas of a common storage device.

本発明の実施例に係るアナログ信号処理装置を用いたプログラマブルロジックコントローラーの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the programmable logic controller using the analog signal processing apparatus which concerns on the Example of this invention. アナログ入力ユニット中のアナログ回路及び処理部の内部構成を示すブロック図である。It is a block diagram which shows the internal structure of the analog circuit in an analog input unit, and a process part. オフセット補正及びゲイン補正について説明するためのグラフである。It is a graph for demonstrating offset correction and gain correction. 実施例1に係る温度補正用データの取得タイミングを説明する図である。It is a figure explaining the acquisition timing of the data for temperature correction which concerns on Example 1. FIG. 実施例1における処理部による処理の例を示すフローチャートである。3 is a flowchart illustrating an example of processing by a processing unit according to the first embodiment. 実施例2に係る温度補正用データの取得タイミングを説明する図である。It is a figure explaining the acquisition timing of the data for temperature correction which concerns on Example 2. FIG. 実施例2における処理部による処理の例を示すフローチャートである。10 is a flowchart illustrating an example of processing performed by a processing unit according to the second embodiment. 実施例3に係る温度補正用データの取得タイミングを説明する図である。It is a figure explaining the acquisition timing of the data for temperature correction which concerns on Example 3. FIG. 実施例3における処理部による処理の例を示すフローチャートである。10 is a flowchart illustrating an example of processing performed by a processing unit according to the third embodiment. 実施例4に係る温度補正用データの取得タイミングを説明する図である。It is a figure explaining the acquisition timing of the data for temperature correction which concerns on Example 4. FIG.

符号の説明Explanation of symbols

1 CPUユニット
2 アナログ入力ユニット(アナログ信号処理装置)
22 処理部
23 データ収集メモリ
211 基準電圧発生回路(基準アナログ信号発生部)
214 A/D変換器(AD変換部)
221 ディジタル値演算部(AD変換部)
222 サンプリング周期設定部
223 温度補正実行部
224 温度補正指令部
225 記憶部
241 バッファメモリ
1 CPU unit 2 Analog input unit (analog signal processing device)
22 processing unit 23 data acquisition memory 211 reference voltage generation circuit (reference analog signal generation unit)
214 A / D converter (AD converter)
221 Digital value calculation unit (AD conversion unit)
222 Sampling cycle setting unit 223 Temperature correction execution unit 224 Temperature correction command unit 225 Storage unit 241 Buffer memory

Claims (5)

プログラマブルロジックコントローラーの本体であるCPUユニットに接続されるアナログ信号処理装置であって、
制御対象から入力されるアナログ信号のサンプリング周期を設定するサンプリング周期設定部と、
前記サンプリング周期ごとに前記アナログ信号をA/D変換し、所定のオフセット及びゲインにしたがってディジタル値を出力するAD変換部と、
温度補正用の基準アナログ信号を発生する基準アナログ信号発生部と、
所定の周囲温度において前記基準アナログ信号を前記AD変換部に入力したときの前記AD変換部の出力であるディジタル値を第1基準ディジタル値として記憶する記憶部と、
前記AD変換部の処理に要するサンプリング単位時間と前記サンプリング周期との関係が所定の関係を満たすときに所定の温度補正周期ごとに前記AD変換部の温度補正の実行を指令する温度補正指令部と、
前記温度補正指令部の指令に従って、前記基準アナログ信号を前記AD変換部に入力し、前記AD変換部の出力である第2基準ディジタル値が前記記憶部から読み出した第1基準ディジタル値に等しくなるように前記オフセット及び前記ゲインの少なくとも一方を補正する温度補正実行部と
を備えていることを特徴とするアナログ信号処理装置。
An analog signal processing device connected to a CPU unit which is a main body of a programmable logic controller,
A sampling period setting unit for setting the sampling period of the analog signal input from the control target;
An A / D converter for A / D converting the analog signal at each sampling period and outputting a digital value according to a predetermined offset and gain;
A reference analog signal generator for generating a reference analog signal for temperature correction;
A storage unit for storing, as a first reference digital value, a digital value that is an output of the AD conversion unit when the reference analog signal is input to the AD conversion unit at a predetermined ambient temperature;
A temperature correction command unit that commands execution of temperature correction of the AD conversion unit for each predetermined temperature correction period when a relationship between a sampling unit time required for processing of the AD conversion unit and the sampling period satisfies a predetermined relationship; ,
In accordance with a command from the temperature correction command unit, the reference analog signal is input to the AD conversion unit, and the second reference digital value output from the AD conversion unit becomes equal to the first reference digital value read from the storage unit. An analog signal processing apparatus comprising: a temperature correction execution unit that corrects at least one of the offset and the gain.
前記温度補正指令部は、前記サンプリング周期の設定値が前記サンプリング単位時間の3倍以上であれば所定の温度補正周期ごとに前記AD変換部の温度補正の実行を指令し、前記温度補正実行部は、前記制御対象から入力されるアナログ信号のA/D変換を実行した後の次のサンプリング開始タイミングまでの時間を用いて前記オフセットの温度補正用データ及び前記ゲインの温度補正用データを続けて取得することを特徴とする
請求項1記載のアナログ信号処理装置。
If the set value of the sampling period is three times or more of the sampling unit time, the temperature correction command unit commands execution of temperature correction of the AD conversion unit for each predetermined temperature correction period, and the temperature correction execution unit Continuously uses the offset temperature correction data and the gain temperature correction data using the time until the next sampling start timing after executing A / D conversion of the analog signal input from the control target. The analog signal processing device according to claim 1, wherein the analog signal processing device is acquired.
前記温度補正指令部は、前記サンプリング周期の設定値が前記サンプリング単位時間の2倍以上であれば所定の温度補正周期ごとに前記AD変換部の温度補正の実行を指令し、前記温度補正実行部は、前記制御対象から入力されるアナログ信号のA/D変換を実行した後の次のサンプリング開始タイミングまでの時間を用いて前記オフセットの温度補正用データ及び前記ゲインの温度補正用データのいずれか一方を取得することを特徴とする
請求項1又は2記載のアナログ信号処理装置。
If the set value of the sampling period is twice or more the sampling unit time, the temperature correction command unit commands execution of temperature correction of the AD conversion unit every predetermined temperature correction period, and the temperature correction execution unit Is one of the offset temperature correction data and the gain temperature correction data using the time until the next sampling start timing after the A / D conversion of the analog signal input from the control target is executed. The analog signal processing device according to claim 1, wherein one of the signals is acquired.
前記制御対象から入力されるアナログ信号をA/D変換して得られたディジタル値を所定数だけ順次記憶するデータ収集メモリを備え、前記温度補正指令部は、前記サンプリング周期の設定値が前記サンプリング単位時間の2倍未満であるときに、前記ディジタル値を所定数だけ順次記憶するデータ収集が完了した後に前記AD変換部の温度補正の実行を指令することを特徴とする
請求項2又は3記載のアナログ信号処理装置。
A data acquisition memory for sequentially storing a predetermined number of digital values obtained by A / D converting an analog signal input from the control target; and the temperature correction command unit is configured so that the set value of the sampling period is the sampling value The execution of temperature correction of the AD converter is instructed after completion of data collection for sequentially storing a predetermined number of the digital values when the time is less than twice the unit time. Analog signal processing device.
前記データ収集メモリに記憶された所定数のディジタル値が転送されるバッファメモリを更に備え、前記CPUユニットが所定の制御サイクルごとに、又はユーザーの指令にしたがって前記バッファメモリの記憶データを読み出すことができるように構成されていることを特徴とする
請求項4記載のアナログ信号処理装置。
A buffer memory to which a predetermined number of digital values stored in the data collection memory are transferred; and the CPU unit reads out the stored data of the buffer memory every predetermined control cycle or according to a user instruction The analog signal processing device according to claim 4, wherein the analog signal processing device is configured to be able to perform the processing.
JP2004350883A 2004-12-03 2004-12-03 Analog signal processing apparatus Pending JP2006165737A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004350883A JP2006165737A (en) 2004-12-03 2004-12-03 Analog signal processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004350883A JP2006165737A (en) 2004-12-03 2004-12-03 Analog signal processing apparatus

Publications (1)

Publication Number Publication Date
JP2006165737A true JP2006165737A (en) 2006-06-22

Family

ID=36667285

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004350883A Pending JP2006165737A (en) 2004-12-03 2004-12-03 Analog signal processing apparatus

Country Status (1)

Country Link
JP (1) JP2006165737A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011237218A (en) * 2010-05-07 2011-11-24 Denso Corp Air flow measurement device
JP4902824B1 (en) * 2011-08-01 2012-03-21 三菱電機株式会社 Analog input system, analog output system, and analog input / output system
JP2012132916A (en) * 2010-12-23 2012-07-12 General Electric Co <Ge> Hub unit for high temperature electronic monitoring system
JP2013044634A (en) * 2011-08-24 2013-03-04 Hioki Ee Corp Waveform recorder
CN104303116A (en) * 2012-05-11 2015-01-21 三菱电机株式会社 Analog conversion device and programmable logic controller system
JP2015035649A (en) * 2013-08-07 2015-02-19 アスモ株式会社 Signal correction device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011237218A (en) * 2010-05-07 2011-11-24 Denso Corp Air flow measurement device
US8527243B2 (en) 2010-05-07 2013-09-03 Denso Corporation Air flow measurement apparatus
JP2012132916A (en) * 2010-12-23 2012-07-12 General Electric Co <Ge> Hub unit for high temperature electronic monitoring system
JP4902824B1 (en) * 2011-08-01 2012-03-21 三菱電機株式会社 Analog input system, analog output system, and analog input / output system
WO2013018190A1 (en) * 2011-08-01 2013-02-07 三菱電機株式会社 Analog input system, analog output system, and analog input and output system
US8564466B2 (en) 2011-08-01 2013-10-22 Mitsubishi Electric Corporation Analog input system, analog output system, and analog input/output system
TWI460999B (en) * 2011-08-01 2014-11-11 Mitsubishi Electric Corp Analog input system, analog output system and analog input output system
DE112011105487B4 (en) 2011-08-01 2020-01-16 Mitsubishi Electric Corporation Analog input system, analog output system and analog input / output system
JP2013044634A (en) * 2011-08-24 2013-03-04 Hioki Ee Corp Waveform recorder
CN104303116A (en) * 2012-05-11 2015-01-21 三菱电机株式会社 Analog conversion device and programmable logic controller system
JP2015035649A (en) * 2013-08-07 2015-02-19 アスモ株式会社 Signal correction device

Similar Documents

Publication Publication Date Title
JP4074823B2 (en) A / D conversion output data non-linearity correction method and non-linearity correction apparatus
JP5900536B2 (en) Sensor signal detection device
KR101029016B1 (en) Power meter having error calibration function and method for calibrating phase error
JP2006165737A (en) Analog signal processing apparatus
KR101586163B1 (en) Analog conversion device and programmable logic controller system
US10254137B2 (en) Photoelectric encoder for deconcentrating calculation load and reducing power consumption and measuring instrument including thereof
CN102422538A (en) Analog unit
JP2002337705A (en) Power steering system
WO2017198053A1 (en) Automatic correction circuit and correction method for multi-channel analog signal data acquisition
JP4751343B2 (en) A / D converter
JP2009260626A (en) Temperature correcting device for analog input data
KR102244196B1 (en) Method for calibrating tolerance of adc module and electronic device thereof
JP5205942B2 (en) Zero point correction circuit
JP3877747B1 (en) A / D converter
JP4127084B2 (en) Sensor device
WO2019188085A1 (en) Ad converter correction device and ad conversion apparatus
JP3389815B2 (en) Digital calibration method for analog measurement unit
JP6338802B1 (en) Analog-digital conversion apparatus and analog-digital conversion method
JP2001174489A (en) Digital voltmeter
JPS5931249B2 (en) Analog-digital converter
JP2014160939A (en) Analog-digital conversion device and analog-digital conversion system
JP2005252794A (en) Method and device for correcting input signal
JP6314681B2 (en) A / D conversion data correction system for exhaust gas sensor
JP2013156165A (en) Signal processing method and pressure sensor
JP2001308705A (en) Digital to analog converter and its conversion error reduction method