JP2014002034A - Displacement measuring device and displacement measuring method - Google Patents

Displacement measuring device and displacement measuring method Download PDF

Info

Publication number
JP2014002034A
JP2014002034A JP2012137316A JP2012137316A JP2014002034A JP 2014002034 A JP2014002034 A JP 2014002034A JP 2012137316 A JP2012137316 A JP 2012137316A JP 2012137316 A JP2012137316 A JP 2012137316A JP 2014002034 A JP2014002034 A JP 2014002034A
Authority
JP
Japan
Prior art keywords
displacement
output
data
shift register
sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2012137316A
Other languages
Japanese (ja)
Inventor
Fumiaki Takeuchi
文章 竹内
Toshimasa Hirate
利昌 平手
Tatsuya Hirose
達也 廣瀬
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2012137316A priority Critical patent/JP2014002034A/en
Publication of JP2014002034A publication Critical patent/JP2014002034A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

PROBLEM TO BE SOLVED: To input displacement data signals from each of a plurality of displacement sensors, and to properly output them.SOLUTION: A displacement measuring device has temporarily storing devices which are provided so as to respectively correspond to a plurality of displacement sensors, and in which displacement data signals outputted from each of the displacement sensors are inputted and temporarily stored synchronously with clock signals from the displacement sensors of output source of the displacement data signals as serial data; and output means for successively selecting any of the temporarily storing devices, and outputting the displacement data signal stored in the selected temporarily storing device synchronously with a predetermined clock signal as serial data.

Description

本発明の実施形態は、変位測定装置および変位測定方法に関する。   Embodiments described herein relate generally to a displacement measuring apparatus and a displacement measuring method.

従来の変位測定装置の設置形態の一例を図8に示す。
従来、タービンなどの大型回転機械は筐体の重量が非常に重いので、この機械の組み立て時には回転機械の回転軸とケーシング(筐体)との相対位置(変位)はケーシングを搭載した際に自重により変化する。このことから、回転軸各部の変位を計測し、変位変化量を監視する必要がある。
An example of the installation form of the conventional displacement measuring apparatus is shown in FIG.
Conventionally, a large rotating machine such as a turbine has a very heavy casing. Therefore, when the machine is assembled, the relative position (displacement) between the rotating shaft of the rotating machine and the casing (housing) is determined by the weight of the casing. It depends on. For this reason, it is necessary to measure the displacement of each part of the rotating shaft and monitor the displacement change amount.

図8(a)に示した例では、上部ケーシング101aと下部ケーシング101bとでなるケーシングの内部に回転軸102が設けられ、この回転軸102と下部ケーシング101bの底部や側部との間に、回転軸102の変位を計測するための変位センサ103が複数設けられる。
これらの変位センサは、図8(b)に示すように、回転軸102の軸方向に沿って複数設けられる。
In the example shown in FIG. 8 (a), a rotating shaft 102 is provided inside a casing composed of an upper casing 101a and a lower casing 101b, and between the rotating shaft 102 and the bottom and side portions of the lower casing 101b, A plurality of displacement sensors 103 for measuring the displacement of the rotating shaft 102 are provided.
A plurality of these displacement sensors are provided along the axial direction of the rotating shaft 102 as shown in FIG.

変位はケーシングの着脱時だけでなく、経時変化によっても生じうるため、変位の計測は定期的に実施する必要がある。
回転軸の変位の検出には、例えばデジタル出力型の変位センサが使用される。この変位センサでは測定結果の信号がデジタル信号で出力されることから、アナログ出力型の変位センサに比べてデータ伝送時における精度の劣化がないという利点がある。
Since the displacement can be caused not only when the casing is attached / detached but also due to a change with time, the displacement must be measured periodically.
For example, a digital output type displacement sensor is used to detect the displacement of the rotating shaft. Since this displacement sensor outputs a measurement result signal as a digital signal, there is an advantage that there is no deterioration in accuracy during data transmission compared to an analog output type displacement sensor.

また、この変位センサは、測定した変位量を、この測定元の変位センサからのクロック信号に同期させたシリアルデジタル信号として変位測定装置に出力する。   The displacement sensor outputs the measured displacement amount to the displacement measuring device as a serial digital signal synchronized with the clock signal from the measuring source displacement sensor.

従来の変位測定装置の構成例を図9に示す。
図9に示すように、従来の変位測定装置は、マルチプレクサ104、MPU105を備える。
マルチプレクサ104aは、MPU105からのクロック信号であるシリアルクロック信号に同期して変位センサのいずれかを選択する。マルチプレクサ104は、複数の変位センサのそれぞれからの変位量の測定データ(変位データ信号)を示すセンサデータ信号を、選択したセンサからのセンサクロック信号に同期してシリアルデータとして入力して、MPU105へ出力する。
A configuration example of a conventional displacement measuring apparatus is shown in FIG.
As shown in FIG. 9, the conventional displacement measuring device includes a multiplexer 104 and an MPU 105.
The multiplexer 104 a selects one of the displacement sensors in synchronization with the serial clock signal that is the clock signal from the MPU 105. The multiplexer 104 inputs a sensor data signal indicating the displacement measurement data (displacement data signal) from each of the plurality of displacement sensors as serial data in synchronization with the sensor clock signal from the selected sensor, and supplies it to the MPU 105. Output.

従来の変位表示器の構成例を図10に示す。
図10に示すように、従来の変位表示器は、変位センサからのセンサデータ信号を入力するシフトレジスタ111a〜111g、3−8デコーダドライバ112、BCD−7セグメントデコーダドライバ113、ドライバ114、LED表示器115、7セグメントLED表示器116a〜116dを有する。
A configuration example of a conventional displacement indicator is shown in FIG.
As shown in FIG. 10, the conventional displacement indicator includes shift registers 111a to 111g for inputting sensor data signals from the displacement sensor, 3-8 decoder driver 112, BCD-7 segment decoder driver 113, driver 114, LED display. 115 and 7 segment LED indicators 116a-116d.

シフトレジスタ111a〜111gは、変位センサからの入力側からみてシフトレジスタ111a,111b,111c,…,111d,111e,111f,111gの順に縦続接続される。以下、必要に応じて、シフトレジスタ111a〜111gを単にシフトレジスタ111と称する。   The shift registers 111a to 111g are cascaded in the order of shift registers 111a, 111b, 111c,..., 111d, 111e, 111f, 111g as viewed from the input side from the displacement sensor. Hereinafter, the shift registers 111a to 111g are simply referred to as the shift register 111 as necessary.

シフトレジスタ111aは、測定データの小数点位置を格納するためのシフトレジスタである。
また、シフトレジスタ111b,111c,…,111d,111eは、測定データの各桁を格納するためのシフトレジスタである。
シフトレジスタ111fは、符号を格納するためのシフトレジスタである。
シフトレジスタ111gは、ヘッダデータを格納するためのシフトレジスタである。
The shift register 111a is a shift register for storing the decimal point position of measurement data.
Further, the shift registers 111b, 111c,..., 111d, 111e are shift registers for storing each digit of measurement data.
The shift register 111f is a shift register for storing a code.
The shift register 111g is a shift register for storing header data.

また、測定データの各桁に対応するBCD−7セグメントデコーダドライバ113は、BCD−7セグメントデコーダドライバ113a,113b,…,113c,113dでなり、測定データの各桁に対応するシフトレジスタに1対1で設けられる。   Further, the BCD-7 segment decoder driver 113 corresponding to each digit of the measurement data is composed of BCD-7 segment decoder drivers 113a, 113b,... 113c, 113d, and one pair is provided to the shift register corresponding to each digit of the measurement data. 1 is provided.

また、測定データの各桁に対応する7セグメントLED表示器116は、116a,116b,…,116c,116dでなり、測定データの各桁に対応するシフトレジスタ111や測定データの各桁に対応するBCD−7セグメントデコーダドライバ113に1対1で設けられる。   The 7-segment LED display 116 corresponding to each digit of the measurement data includes 116a, 116b,..., 116c, 116d, and corresponds to the shift register 111 corresponding to each digit of the measurement data and each digit of the measurement data. The BCD-7 segment decoder driver 113 is provided on a one-to-one basis.

ここで示した例では、センサデータ信号はBCD(Binary Coded Decimal)コード(二進化十進表現)で表現される。このBDCコードでは、十進表現での1桁を、0から9までを表す4桁の二進数(4bit)で表す方法が使用されている。例えば、センサデータ信号は、4bitを1デジットとして13デジット(52bit)で出力される。   In the example shown here, the sensor data signal is represented by a BCD (Binary Coded Decimal) code (binary decimal representation). In this BDC code, a method is used in which one digit in decimal representation is represented by a 4-digit binary number (4 bits) representing 0 to 9. For example, the sensor data signal is output in 13 digits (52 bits) with 4 bits as 1 digit.

具体的には、例えば、センサデータ信号は、ヘッダ、符号、測定データ第1桁(BCDコード)、測定データ第2桁(BCDコード)、…、測定データ第5桁(BCDコード)、測定データ第6桁(BCDコード)、測定データ小数点位置(BCDコード)の順で変位表示器のシフトレジスタ111に入力される。   Specifically, for example, the sensor data signal includes a header, a sign, a measurement data first digit (BCD code), a measurement data second digit (BCD code), ..., a measurement data fifth digit (BCD code), and measurement data. The sixth digit (BCD code) and the measurement data decimal point position (BCD code) are input to the shift register 111 of the displacement indicator in this order.

図10に示した変位表示器のシフトレジスタ111へのセンサデータ信号の入力が完了すると、ヘッダはシフトレジスタ111gへ格納され、符号はシフトレジスタ111fへ格納される。また、測定データ第1桁(BCDコード)はシフトレジスタ111eへ格納され、測定データ第2桁(BCDコード)はシフトレジスタ111dへ格納され、測定データ第5桁(BCDコード)はシフトレジスタ111cへ格納され、測定データ第6桁(BCDコード)はシフトレジスタ111bへ格納される。また、測定データ小数点位置(BCDコード)はシフトレジスタ111aへ格納される。
シフトレジスタ111fへ格納された符号は、ドライバ114を介して符号表示用のLED表示器115に表示される。
When the input of the sensor data signal to the shift register 111 of the displacement indicator shown in FIG. 10 is completed, the header is stored in the shift register 111g and the code is stored in the shift register 111f. The first digit (BCD code) of measurement data is stored in the shift register 111e, the second digit (BCD code) of measurement data is stored in the shift register 111d, and the fifth digit (BCD code) of measurement data is stored in the shift register 111c. The sixth digit (BCD code) of the measurement data is stored in the shift register 111b. The decimal point position (BCD code) of the measurement data is stored in the shift register 111a.
The code stored in the shift register 111f is displayed on the LED display 115 for code display via the driver 114.

測定データの各桁に対応するシフトレジスタ111へ格納された測定データの各桁は、この各桁に対応するBCD−7セグメントデコーダドライバ113により7ビットに変換されて、測定データの各桁に対応する7セグメントLED表示器116に表示される。   Each digit of the measurement data stored in the shift register 111 corresponding to each digit of the measurement data is converted into 7 bits by the BCD-7 segment decoder driver 113 corresponding to each digit and corresponds to each digit of the measurement data. Is displayed on the 7-segment LED display 116.

シフトレジスタ111aへ格納された測定データ小数点位置は、3−8デコーダドライバ112を介して、7セグメントLED表示器116は、116a,116b,…,116c,116dのいずれかに表示される。   The measured data decimal point position stored in the shift register 111a is displayed on any of the 116a, 116b,..., 116c, and 116d on the 7-segment LED display 116 via the 3-8 decoder driver 112.

つまり、この変位表示器は、変位センサから出力されるクロック信号に同期して出力されるセンサデータ信号を変位表示器のシフトレジスタ111に取り込み、BCD−7セグメントデコーダドライバ113を用いることにより、容易に7セグメントLED表示器115,116で表示することができる。   In other words, this displacement indicator can be easily obtained by fetching the sensor data signal output in synchronization with the clock signal output from the displacement sensor into the shift register 111 of the displacement indicator and using the BCD-7 segment decoder driver 113. 7-segment LED indicators 115 and 116 can be displayed.

株式会社ミツトヨ、商品情報 接触センサ 出力信号の種類 デジマチック出力仕様、[online]、[2012年5月16日検索]、インターネット<URLhttp://www.mitutoyo.co.jp/products/seimitusensor/menu/no4076p29.pdf>Mitutoyo Corporation, Product Information Contact Sensor Output Signal Type Digimatic Output Specifications, [online], [Search May 16, 2012], Internet <URL http://www.mitutoyo.co.jp/products/seimitusensor/menu /no4076p29.pdf>

前述した変位センサを回転機械の変位変化量の計測に用いるにあたっては、変位を変位表示器に表示するだけではなく、計測結果を電子媒体に記録したりプリンタに印刷したりする必要がある。このような用途には前述したBCD形式のデータは取扱いになじまないので、例えばASCII(American Standard Code for Information Interchange)などの文字コードで取扱えることが望ましい。   When the above-described displacement sensor is used for measuring the displacement change amount of the rotating machine, it is necessary not only to display the displacement on a displacement indicator but also to record the measurement result on an electronic medium or print it on a printer. For such applications, the above-mentioned BCD format data is unsuitable for handling, so it is desirable to handle it with a character code such as ASCII (American Standard Code for Information Interchange).

また、図8に示すように変位の計測箇所が多いと多数の変位センサを用いる必要があるが、この場合、センサデータ信号の同期をとるためのセンサクロック信号は各センサのそれぞれから任意のタイミングで出力される。この信号を例えばMPUに取り込もうとすると、図10に示したような変位表示器にて、同時に多数のセンサからのセンサデータ信号であるシリアル信号を、センサ間でタイミングが非同期であるセンサクロック信号のタイミングで変位表示器に適切に取り込むことは困難である。   In addition, as shown in FIG. 8, when there are a lot of displacement measurement points, it is necessary to use a large number of displacement sensors. In this case, the sensor clock signal for synchronizing the sensor data signal has an arbitrary timing from each sensor. Is output. For example, when this signal is taken into the MPU, a serial signal which is a sensor data signal from a large number of sensors is simultaneously converted into a sensor clock signal whose timing is asynchronous between the sensors by a displacement indicator as shown in FIG. It is difficult to properly capture the displacement indicator at the timing.

本発明が解決しようとする課題は、複数の変位センサのそれぞれからの変位データ信号を入力して適切に出力することが可能になる変位測定装置および変位測定方法を提供することにある。   The problem to be solved by the present invention is to provide a displacement measuring apparatus and a displacement measuring method that can input displacement data signals from each of a plurality of displacement sensors and appropriately output them.

実施形態によれば、変位測定装置は、複数の変位センサのそれぞれに対応して設けられ、前記変位センサのそれぞれから出力される変位データ信号を前記変位データ信号の出力元の変位センサからのクロック信号に同期してシリアルデータとして入力して一時保存する一時保存装置と、前記一時保存装置のいずれかを順次選択し、前記選択した一時保存装置に保存された変位データ信号を所定のクロック信号に同期してシリアルデータとして出力する出力手段とをもつ。   According to the embodiment, the displacement measuring device is provided corresponding to each of the plurality of displacement sensors, and the displacement data signal output from each of the displacement sensors is converted to a clock from the displacement sensor from which the displacement data signal is output. A temporary storage device that inputs serial data in synchronism with a signal and temporarily stores it, and selects one of the temporary storage devices in order, and uses a displacement data signal stored in the selected temporary storage device as a predetermined clock signal Output means for synchronously outputting serial data.

本発明によれば、複数の変位センサのそれぞれからの変位データ信号を入力して適切に出力することが可能となる。   According to the present invention, displacement data signals from each of a plurality of displacement sensors can be input and output appropriately.

第1の実施形態における変位測定装置の構成例を示す図。The figure which shows the structural example of the displacement measuring apparatus in 1st Embodiment. 第1の実施形態における変位測定装置のシリアルデータバッファ内の構成例を示す図。The figure which shows the structural example in the serial data buffer of the displacement measuring device in 1st Embodiment. 第1の実施形態における変位測定装置による動作手順の一例を示すフローチャート。The flowchart which shows an example of the operation | movement procedure by the displacement measuring device in 1st Embodiment. 第2の実施形態における変位測定装置のシリアルデータバッファ内の構成例を示す図。The figure which shows the structural example in the serial data buffer of the displacement measuring device in 2nd Embodiment. 第2の実施形態における変位測定装置による動作手順の一例を示すフローチャート。The flowchart which shows an example of the operation | movement procedure by the displacement measuring device in 2nd Embodiment. 第3の実施形態における変位測定装置のシリアルデータバッファ内の構成例を示す図。The figure which shows the structural example in the serial data buffer of the displacement measuring device in 3rd Embodiment. 第3の実施形態における変位測定装置による動作手順の一例を示すフローチャート。The flowchart which shows an example of the operation | movement procedure by the displacement measuring device in 3rd Embodiment. 従来の変位測定装置の設置形態の一例を示す図。The figure which shows an example of the installation form of the conventional displacement measuring apparatus. 従来の変位測定装置の構成例を示す図。The figure which shows the structural example of the conventional displacement measuring apparatus. 従来の変位表示器の構成例を示す図。The figure which shows the structural example of the conventional displacement indicator.

以下、実施の形態について、図面を参照して説明する。
(第1の実施形態)
まず、第1の実施形態について説明する。
図1は、第1の実施形態における変位測定装置の構成例を示す図である。
図1に示すように、第1の実施形態における変位測定装置は、シリアルデータバッファ11a〜11h、マルチプレクサ12a,12b、MPU13、シリアルプリンタ14、メモリカード15を有する。
Hereinafter, embodiments will be described with reference to the drawings.
(First embodiment)
First, the first embodiment will be described.
FIG. 1 is a diagram illustrating a configuration example of a displacement measuring apparatus according to the first embodiment.
As shown in FIG. 1, the displacement measuring apparatus in the first embodiment includes serial data buffers 11a to 11h, multiplexers 12a and 12b, an MPU 13, a serial printer 14, and a memory card 15.

この例では、変位測定装置に接続されて、この変位測定装置にセンサデータ信号やセンサクロック信号を出力する変位センサは8つである。以下、必要に応じて、変位センサを単にセンサと称する。   In this example, there are eight displacement sensors connected to the displacement measuring device and outputting sensor data signals and sensor clock signals to the displacement measuring device. Hereinafter, the displacement sensor is simply referred to as a sensor as necessary.

これらのセンサのそれぞれには、シリアルデータバッファ11a〜11hが1対1で対応して設けられる。以下、必要に応じて、シリアルデータバッファ11a〜11hを単にシリアルデータバッファ11と称する。   Each of these sensors is provided with serial data buffers 11a to 11h in a one-to-one correspondence. Hereinafter, the serial data buffers 11a to 11h are simply referred to as a serial data buffer 11 as necessary.

変位測定装置のシリアルデータバッファ11は、対応するセンサのそれぞれから出力されたセンサデータ信号を、このセンサデータ信号の出力元のセンサからのセンサクロック信号に同期してシリアルデータとして入力して、センサの測定データとして一時保存する。   The serial data buffer 11 of the displacement measuring device inputs the sensor data signal output from each of the corresponding sensors as serial data in synchronization with the sensor clock signal from the sensor from which the sensor data signal is output. Temporarily save as measurement data.

マルチプレクサ12aは、所定のタイミングでのMPU13からシリアルクロック信号を入力すると、各センサのいずれかに対応するシリアルデータバッファ11を選択して、この選択したシリアルデータバッファ11に対して、MPU13からのシリアルクロック信号をそのまま再出力し、以後、MPU13からシリアルクロック信号を入力するたびに、選択した選択したシリアルデータバッファ11に対して、MPU13からのシリアルクロック信号を再出力する。この出力したクロック信号をホストクロック信号と称する。本実施形態において、あるセンサに対応するシリアルデータバッファ11を選択することを、この対応するセンサを選択することとして説明することがある。   When the multiplexer 12a receives the serial clock signal from the MPU 13 at a predetermined timing, the multiplexer 12a selects the serial data buffer 11 corresponding to any one of the sensors, and the serial data buffer 11 from the MPU 13 selects the selected serial data buffer 11. The clock signal is re-output as it is, and thereafter, every time the serial clock signal is input from the MPU 13, the serial clock signal from the MPU 13 is re-output to the selected selected serial data buffer 11. This output clock signal is referred to as a host clock signal. In the present embodiment, selecting the serial data buffer 11 corresponding to a certain sensor may be described as selecting the corresponding sensor.

また、マルチプレクサ12bは、前述した所定のタイミングでMPU13からシリアルクロック信号を入力すると、マルチプレクサ12aと同じシリアルデータバッファ11を選択し、この選択したシリアルデータバッファ11に一時保存されたセンサデータ信号をマルチプレクサ12aからシリアルデータバッファ11へのホストクロック信号に同期してホストデータ信号として入力し、MPU13に出力する。   In addition, when the serial clock signal is input from the MPU 13 at the predetermined timing described above, the multiplexer 12b selects the same serial data buffer 11 as the multiplexer 12a, and the sensor data signal temporarily stored in the selected serial data buffer 11 is multiplexed. The data is input as a host data signal in synchronization with the host clock signal from 12 a to the serial data buffer 11 and output to the MPU 13.

マルチプレクサ12a,12bによる選択対象のシリアルデータバッファ11の切り替えの周期は、選択したシリアルデータバッファ11に入力されたセンサデータ信号についてMPU13への出力が開始してから完了するまでにかかる時間を少なくとも含む周期であり、この間のホストクロック信号の出力数は、シリアルデータバッファ11からのセンサデータ信号のビット数以上となる。   The switching period of the serial data buffer 11 to be selected by the multiplexers 12a and 12b includes at least the time taken from the start to completion of the output of the sensor data signal input to the selected serial data buffer 11 to the MPU 13. The number of host clock signals output during this period is equal to or greater than the number of bits of the sensor data signal from the serial data buffer 11.

つまり、各センサに対応するシリアルデータバッファ11のいずれかが選択され、この選択されたシリアルデータバッファ11に対し、このシリアルデータバッファ11に一時保存されるセンサデータ信号のビット数に対応する数のホストクロック信号が出力され、このホストクロック信号に同期して、前述した一時保存されるセンサデータ信号の各ビットがマルチプレクサ12bを介してMPU13に出力される。   That is, one of the serial data buffers 11 corresponding to each sensor is selected, and the selected serial data buffer 11 has a number corresponding to the number of bits of the sensor data signal temporarily stored in the serial data buffer 11. A host clock signal is output, and in synchronization with the host clock signal, each bit of the temporarily stored sensor data signal is output to the MPU 13 via the multiplexer 12b.

マルチプレクサ12a,12bは、このデータ信号の各ビットの出力が完了したタイミングでMPU13からシリアルクロック信号を入力すると、各センサに対応するシリアルデータバッファ11のいずれかを新たに選択し、この選択したシリアルデータバッファ11とマルチプレクサ12a,12bの間で、前述したホストクロック信号とホストデータ信号の入出力がなされる。   When the multiplexer 12a, 12b receives the serial clock signal from the MPU 13 at the timing when the output of each bit of the data signal is completed, the multiplexer 12a, 12b newly selects one of the serial data buffers 11 corresponding to each sensor, and selects the selected serial data. The host clock signal and the host data signal are input / output between the data buffer 11 and the multiplexers 12a and 12b.

MPU13は、入力したホストデータ信号で示される測定データを文字コードに変換して、MPU13内のカードインタフェース13bを介してメモリカード15へ書き込んだり、MPU13内のシリアルポート13aを介してシリアルプリンタ14へ送信して印刷を行なわせたりする。   The MPU 13 converts the measurement data indicated by the input host data signal into a character code and writes it to the memory card 15 via the card interface 13b in the MPU 13, or to the serial printer 14 via the serial port 13a in the MPU 13. Send it to print.

図2は、第1の実施形態における変位測定装置のシリアルデータバッファ内の構成例を示す図である。
図2に示すように、複数のシリアルデータバッファ11のそれぞれは、シフトレジスタ21、マルチプレクサ22、ヘッダデータメモリ23、比較器24、カウンタ25、レジスタ26、判定回路27を有する。
FIG. 2 is a diagram illustrating a configuration example in the serial data buffer of the displacement measuring apparatus according to the first embodiment.
As shown in FIG. 2, each of the plurality of serial data buffers 11 includes a shift register 21, a multiplexer 22, a header data memory 23, a comparator 24, a counter 25, a register 26, and a determination circuit 27.

シフトレジスタ21は4bit構成であり、センサからの入力側からMPU13への出力側に向かって、測定データ小数点位置(BCDコード)を格納するためのシフトレジスタ21a、測定データの各桁を格納するためのシフトレジスタ21b,21c,…,21d,21e、符号を格納するためのシフトレジスタ21f、ヘッダデータを格納するためのシフトレジスタ21gが縦続接続されてなる。また、シフトレジスタ21fにはシフトレジスタ21hが縦続接続される。   The shift register 21 has a 4-bit configuration, and shifts the measurement data decimal point position (BCD code) from the sensor input side to the MPU 13 output side, and stores each digit of the measurement data. , 21d, 21e, a shift register 21f for storing codes, and a shift register 21g for storing header data are connected in cascade. Further, a shift register 21h is cascaded to the shift register 21f.

シフトレジスタ21a,21b,21c,…,21d,21e,21fには、マルチプレクサ22が1対1で設けられる。このマルチプレクサ22は、対応するセンサからのシリアルクロック信号であるセンサクロック信号、およびMPU13側からのシリアルクロック信号であるホストクロック信号のいずれかを選択して、対応するシフトレジスタ21へ出力する。   The shift registers 21a, 21b, 21c,..., 21d, 21e, and 21f are provided with multiplexers 22 on a one-to-one basis. The multiplexer 22 selects either a sensor clock signal that is a serial clock signal from the corresponding sensor or a host clock signal that is a serial clock signal from the MPU 13 side, and outputs the selected signal to the corresponding shift register 21.

マルチプレクサ22は、センサデータ信号をMPU13の出力する期間以外で、測定データ小数点位置(BCDコード)がシフトレジスタ21aに格納され、測定データの各桁がシフトレジスタ21b,21c,…,21d,21eに格納され、符号がシフトレジスタ21fへ格納され、ヘッダデータがシフトレジスタ21gに格納する期間ではセンサ側を選択して、この選択したセンサ側からのセンサクロック信号を入力して、対応するシフトレジスタ21に対して出力する。   The multiplexer 22 stores the measurement data decimal point position (BCD code) in the shift register 21a, and outputs each digit of the measurement data to the shift registers 21b, 21c,. In the period in which the stored code is stored in the shift register 21f and the header data is stored in the shift register 21g, the sensor side is selected, the sensor clock signal from the selected sensor side is input, and the corresponding shift register 21 is input. Output for.

これにより、センサ側から出力されたセンサデータ信号の各ビットは、センサクロック信号に同期してマルチプレクサ22を介してシフトレジスタ21に入力されて、シフトレジスタ21a,21b,21c,…,21d,21e,21f,21gの順でシフトされる。   Accordingly, each bit of the sensor data signal output from the sensor side is input to the shift register 21 via the multiplexer 22 in synchronization with the sensor clock signal, and the shift registers 21a, 21b, 21c,..., 21d, 21e are input. , 21f, 21g.

また、マルチプレクサ22は、センサデータ信号の最上位ビットから最下位ビットまでについてシフトレジスタ21への入力が完了した後でMPU13へ出力するべき所定の期間の開始タイミングとなるとMPU13側を選択してホストクロック信号を入力して、このホストクロック信号を、対応するシフトレジスタであるシフトレジスタ21a,21b,21c,…,21d,21e,21fに出力する。ホストクロック信号はシフトレジスタ21hにも入力される。   Further, the multiplexer 22 selects the MPU 13 side at the start timing of a predetermined period to be output to the MPU 13 after the input to the shift register 21 is completed for the most significant bit to the least significant bit of the sensor data signal. A clock signal is input, and this host clock signal is output to shift registers 21a, 21b, 21c,..., 21d, 21e, 21f, which are corresponding shift registers. The host clock signal is also input to the shift register 21h.

これにより、シフトレジスタ21a,21b,21c,…,21d,21e,21fへ格納されたセンサデータ信号の各ビットは、ホストクロック信号に同期して、シフトレジスタ21a,21b,21c,…,21d,21e,21f,21hの順で、センサからの入力側からMPU13への出力側のシフトレジスタ21に向かってシフトされ、ホストデータ信号としてマルチプレクサ12bを介してMPU13へ出力される。   Thereby, each bit of the sensor data signal stored in the shift registers 21a, 21b, 21c,..., 21d, 21e, 21f is synchronized with the host clock signal, and the shift registers 21a, 21b, 21c,. 21e, 21f, and 21h are shifted in the order from the sensor input side to the output shift register 21 to the MPU 13, and output to the MPU 13 through the multiplexer 12b as a host data signal.

比較器24は、センサデータ信号の最上位ビットから最下位ビットまでについてシフトレジスタ21からMPU13への出力を開始するべき所定のタイミングで、シフトレジスタ21gに格納されたヘッダデータとヘッダデータメモリ23に保存された所定のヘッダデータとを比較し、これらが一致したか否かの結果をフラグ情報としてシフトレジスタ21hに格納する。この格納されたフラグ情報は、ホストクロック信号に同期してマルチプレクサ12bを介してMPU13へ出力される。   The comparator 24 stores the header data stored in the shift register 21g and the header data memory 23 at a predetermined timing at which output from the shift register 21 to the MPU 13 is to be started for the most significant bit to the least significant bit of the sensor data signal. The stored predetermined header data is compared, and the result of whether or not they match is stored in the shift register 21h as flag information. The stored flag information is output to the MPU 13 via the multiplexer 12b in synchronization with the host clock signal.

また、センサ側から入力されたセンサクロック信号はカウンタ25によってカウントされる。判定回路27は、センサデータ信号の最上位ビットから最下位ビットまでについてシフトレジスタ21からMPU13への出力を開始するべき所定のタイミングで、カウンタ25によりカウントしたカウント数とレジスタ26に格納された所定のカウント数とを比較し、これらが一致したか否かの結果をフラグ情報としてシフトレジスタ21hに格納する。この格納されたフラグ情報は、ホストクロック信号に同期してマルチプレクサ12bを介してMPU13へ出力される。この所定のカウント数とは、センサデータ信号の最上位ビットから最下位ビットまでが正常に入力された場合にカウンタ25によりカウントされるべきカウント数である。   The sensor clock signal input from the sensor side is counted by the counter 25. The determination circuit 27 determines the count number counted by the counter 25 and the predetermined number stored in the register 26 at a predetermined timing when the output from the shift register 21 to the MPU 13 is to be started for the most significant bit to the least significant bit of the sensor data signal. And the result of whether or not they match is stored in the shift register 21h as flag information. The stored flag information is output to the MPU 13 via the multiplexer 12b in synchronization with the host clock signal. The predetermined count number is a count number to be counted by the counter 25 when the most significant bit to the least significant bit of the sensor data signal is normally input.

また、判定回路27は、センサデータ信号の最上位ビットから最下位ビットまでについてシフトレジスタ21からMPU13への出力を開始するべき所定のタイミングで、カウンタ25によりカウントしたカウント数が0であるかどうか、つまりセンサが接続されていない状態で、信号が入力されない状態かどうかを判定した結果をフラグ情報としてシフトレジスタ21hに格納する。この格納されたフラグ情報は、ホストクロック信号に同期してマルチプレクサ12bを介してMPU13へ出力される。   In addition, the determination circuit 27 determines whether the count number counted by the counter 25 is 0 at a predetermined timing at which output from the shift register 21 to the MPU 13 is to be started for the most significant bit to the least significant bit of the sensor data signal. That is, the result of determining whether or not a signal is input without a sensor connected is stored in the shift register 21h as flag information. The stored flag information is output to the MPU 13 via the multiplexer 12b in synchronization with the host clock signal.

図3は、第1の実施形態における変位測定装置による動作手順の一例を示すフローチャートである。
初期状態として、図1に示したマルチプレクサ12a,12bは、MPU13から所定のタイミングで入力したシリアルクロック信号に応じて、8つのセンサのいずれかに対応するシリアルデータバッファ11を選択しているとする。マルチプレクサ12aは、この選択したシリアルデータバッファ11に対し、ホストクロック信号を出力する。
FIG. 3 is a flowchart illustrating an example of an operation procedure performed by the displacement measuring apparatus according to the first embodiment.
As an initial state, the multiplexers 12a and 12b shown in FIG. 1 select the serial data buffer 11 corresponding to one of the eight sensors according to the serial clock signal input from the MPU 13 at a predetermined timing. . The multiplexer 12a outputs a host clock signal to the selected serial data buffer 11.

選択されたセンサに対応するシリアルデータバッファ11のマルチプレクサ22は、センサデータ信号の最上位ビットから最下位ビットまでがシフトレジスタ21へ入力が完了するまではセンサ側を選択している。この選択された状態では、センサ側から出力されたセンサデータ信号の各ビットは、センサクロック信号に同期してシフトレジスタ21に入力されて、シフトレジスタ21a,21b,21c,…,21d,21e,21f,21gの順で、センサからの入力側からMPU13への出力側のシフトレジスタ21に向かってシフトされて格納されている(ステップS1)。   The multiplexer 22 of the serial data buffer 11 corresponding to the selected sensor selects the sensor side until the input from the most significant bit to the least significant bit of the sensor data signal is completed to the shift register 21. In this selected state, each bit of the sensor data signal output from the sensor side is input to the shift register 21 in synchronization with the sensor clock signal, and the shift registers 21a, 21b, 21c,..., 21d, 21e, In the order of 21f and 21g, they are shifted from the sensor input side toward the output side shift register 21 to the MPU 13 and stored (step S1).

センサデータ信号の最上位ビットから最下位ビットまでについてシフトレジスタ21からMPU13への出力を開始するべき所定のタイミングとなると、選択されたセンサに対応するシリアルデータバッファ11のマルチプレクサ22は、MPU13側を選択する。これにより、縦続接続された21a,21b,21c,…,21d,21e,21fおよびシフトレジスタ21hはホストクロック信号を入力することができるようになる。   When the predetermined timing at which output from the shift register 21 to the MPU 13 is started for the most significant bit to the least significant bit of the sensor data signal is reached, the multiplexer 22 of the serial data buffer 11 corresponding to the selected sensor switches the MPU 13 side. select. As a result, the cascaded connections 21a, 21b, 21c,..., 21d, 21e, 21f and the shift register 21h can receive the host clock signal.

センサデータ信号の最上位ビットから最下位ビットまでシフトレジスタ21からMPU13への出力を開始するべき所定のタイミングとなると、比較器24は、シフトレジスタ21gに格納されたヘッダデータとヘッダデータメモリ23に保存された所定のヘッダデータとを比較する(ステップS2)。比較器24は、これらが一致していなければ(ステップS3のNO)、この結果を示すフラグ情報を生成して(ステップS8)、このフラグ情報をシフトレジスタ21hに格納する。この格納されたフラグ情報は、ホストクロック信号に同期してマルチプレクサ12bを介してMPU13へ出力される。   When it is time to start the output from the shift register 21 to the MPU 13 from the most significant bit to the least significant bit of the sensor data signal, the comparator 24 stores the header data stored in the shift register 21g and the header data memory 23. The stored predetermined header data is compared (step S2). If they do not match (NO in step S3), the comparator 24 generates flag information indicating the result (step S8) and stores the flag information in the shift register 21h. The stored flag information is output to the MPU 13 via the multiplexer 12b in synchronization with the host clock signal.

比較器24による比較結果が一致している状態で(ステップS3のYES)、カウンタ25は、センサデータ信号の各ビットの入力を開始してからのカウント数を判定回路27に出力する(ステップS4)。判定回路27は、センサデータ信号の最上位ビットから最下位ビットまでについてシフトレジスタ21からMPU13への出力を開始するべき所定のタイミングとなっても、カウンタ25からのカウント数が0である場合(ステップS5のYES)、カウントなしを示すフラグ情報を生成して(ステップS9)、このフラグ情報をシフトレジスタ21hに格納する。この格納されたフラグ情報は、ホストクロック信号に同期してマルチプレクサ12bを介してMPU13へ出力される。   In a state where the comparison results by the comparator 24 match (YES in step S3), the counter 25 outputs the count number after starting to input each bit of the sensor data signal to the determination circuit 27 (step S4). ). The determination circuit 27 is in the case where the count number from the counter 25 is 0 even when the output from the shift register 21 to the MPU 13 is started for the most significant bit to the least significant bit of the sensor data signal ( YES in step S5), flag information indicating no count is generated (step S9), and this flag information is stored in the shift register 21h. The stored flag information is output to the MPU 13 via the multiplexer 12b in synchronization with the host clock signal.

カウンタ25からのカウント数が0でない場合で(ステップS5のNO)、判定回路27は、カウンタ25からのカウント数が、レジスタ26に格納される所定のカウント数と一致しない場合(ステップS6のYES)、カウント数不一致を示すフラグ情報を生成して(ステップS10)、このフラグ情報をシフトレジスタ21hに格納する。   When the count number from the counter 25 is not 0 (NO in step S5), the determination circuit 27 does not match the predetermined count number stored in the register 26 (YES in step S6). ), Flag information indicating the count number mismatch is generated (step S10), and the flag information is stored in the shift register 21h.

この格納されたフラグ情報は、ホストクロック信号に同期してマルチプレクサ12bを介してMPU13へ出力される。ステップS3からS10までのヘッダデータ比較、カウントの有無の判定、カウント数の不一致の判定は、順番が前後しても差し支えない。   The stored flag information is output to the MPU 13 via the multiplexer 12b in synchronization with the host clock signal. The header data comparison from step S3 to step S10, the determination of the presence / absence of the count, and the determination of the mismatch of the count numbers may be reversed.

また、カウンタ25からのカウント数が前述した所定のカウント数と一致している場合には(ステップS6のYES)、シフトレジスタ21a,21b,21c,…,21d,21e,21fへ格納されたセンサデータ信号の各ビットは、ホストクロック信号に同期して、シフトレジスタ21a,21b,21c,…,21d,21e,21f,21hの順でシフトされ、ホストデータ信号としてマルチプレクサ12bを介してMPU13へ出力される(ステップS7)。   If the count number from the counter 25 matches the above-mentioned predetermined count number (YES in step S6), the sensors stored in the shift registers 21a, 21b, 21c,..., 21d, 21e, 21f Each bit of the data signal is shifted in the order of shift registers 21a, 21b, 21c,..., 21d, 21e, 21f, 21h in synchronization with the host clock signal, and is output to the MPU 13 as a host data signal via the multiplexer 12b. (Step S7).

この出力が完了すると、図1に示したマルチプレクサ12a,12bは、MPU13からの所定のタイミングでのシリアルクロック信号に同期して、別のセンサのいずれかに対応するシリアルデータバッファ11を改めて選択する。マルチプレクサ12aは、この選択したシリアルデータバッファ11に対してホストクロック信号を出力する。この出力後は前述したS1以降の動作に移る。このようにして、8つのセンサのそれぞれについてのS1からS10の動作がなされ、一巡すると、再び各センサについてのS1からS10の動作がなされる。   When this output is completed, the multiplexers 12a and 12b shown in FIG. 1 again select the serial data buffer 11 corresponding to one of the other sensors in synchronization with the serial clock signal at a predetermined timing from the MPU 13. . The multiplexer 12a outputs a host clock signal to the selected serial data buffer 11. After this output, the operation proceeds to S1 and later. In this way, the operations from S1 to S10 for each of the eight sensors are performed, and after one round, the operations from S1 to S10 for each sensor are performed again.

以上説明したように、第1の実施形態における変位測定装置では、各センサからのセンサデータ信号を、他のセンサのセンサクロック信号の出力タイミングとは関係なく、各センサに対応するシリアルデータバッファ11に独立して格納する構成としている。また、この格納された後で、マルチプレクサ12により、各センサに対応するシリアルデータバッファ11を選択して、この選択したシリアルデータバッファ11に格納されるデータをホストデータ信号としてMPU13に出力する構成としている。   As described above, in the displacement measuring apparatus according to the first embodiment, the sensor data signal from each sensor is sent to the serial data buffer 11 corresponding to each sensor regardless of the output timing of the sensor clock signal of the other sensor. Are stored independently. Further, after the storage, the multiplexer 12 selects the serial data buffer 11 corresponding to each sensor, and outputs the data stored in the selected serial data buffer 11 to the MPU 13 as a host data signal. Yes.

よって、各センサ間でクロック信号の出力タイミングが非同期である多数のセンサによる変位計測を同時に行なって、変位計測結果を適切にMPUに取り込み、この変位計測結果を電子媒体に記録したり印刷したりすることが容易に実現できるという優れた効果を奏する。   Therefore, displacement measurement by multiple sensors whose clock signal output timings are asynchronous between the sensors is simultaneously performed, the displacement measurement result is appropriately captured in the MPU, and the displacement measurement result is recorded or printed on an electronic medium. There is an excellent effect that it can be easily realized.

また、シリアルデータバッファ11においては、各センサからのデータ信号を確実に格納することができるだけでなく、各センサから出力されたデータ信号が異常な状態を検出したり、センサが接続されていない状態であることを検出したりすることができる。   In the serial data buffer 11, not only can the data signal from each sensor be stored reliably, but the data signal output from each sensor detects an abnormal state or the sensor is not connected. It can be detected.

(第2の実施形態)
次に、第2の実施形態について説明する。なお、以下の各実施形態における変位測定装置の構成のうち第1の実施形態で説明した部分と同一部分の説明は省略する。
本実施形態では、各センサに対応するシリアルデータバッファ11内のシフトレジスタをセンサ側とMPU出力側にそれぞれ具備し、センサ側のシフトレジスタはセンサクロック信号に同期してセンサデータ信号を入力して格納する。
(Second Embodiment)
Next, a second embodiment will be described. In addition, the description of the same part as the part demonstrated in 1st Embodiment among the structures of the displacement measuring apparatus in each following embodiment is abbreviate | omitted.
In this embodiment, the shift register in the serial data buffer 11 corresponding to each sensor is provided on the sensor side and the MPU output side, respectively, and the sensor side shift register inputs the sensor data signal in synchronization with the sensor clock signal. Store.

センサ側のシフトレジスタへのセンサデータ信号の格納が完了した後、この格納されたデータはロード信号の入力に伴ってMPU側のシフトレジスタにロードされる。そして、この格納されたセンサデータ信号は、ホストクロック信号に同期してMPU13に出力される。   After storing the sensor data signal in the sensor-side shift register is completed, the stored data is loaded into the MPU-side shift register in accordance with the input of the load signal. The stored sensor data signal is output to the MPU 13 in synchronization with the host clock signal.

図4は、第2の実施形態における変位測定装置のシリアルデータバッファ内の構成例を示す図である。
第2の実施形態における変位測定装置の複数のシリアルデータバッファ11のそれぞれは、センサ側のシフトレジスタ21、ヘッダデータメモリ23、比較器24、カウンタ25、レジスタ26、判定回路27、MPU側のシフトレジスタ31を有する。
FIG. 4 is a diagram illustrating a configuration example in the serial data buffer of the displacement measuring apparatus according to the second embodiment.
Each of the plurality of serial data buffers 11 of the displacement measuring apparatus according to the second embodiment includes a shift register 21 on the sensor side, a header data memory 23, a comparator 24, a counter 25, a register 26, a determination circuit 27, and a shift on the MPU side. It has a register 31.

センサ側のシフトレジスタ21の構成は、第1の実施形態と同様である。また、MPU側のシフトレジスタ31は、センサ側のシフトレジスタ21と同じく4bit構成であり、センサからの入力側からMPU13への出力側に向かって、測定データ小数点位置(BCDコード)を格納するためのシフトレジスタ31a、測定データの各桁を格納するためのシフトレジスタ31b,31c,…,31d,31e、符号を格納するためのシフトレジスタ31fが縦続接続される。また、シフトレジスタ31fにはシフトレジスタ31gが縦続接続され、シフトレジスタ21hはシフトレジスタ31gに縦続接続される。   The configuration of the shift register 21 on the sensor side is the same as that in the first embodiment. The MPU side shift register 31 has a 4-bit configuration like the sensor side shift register 21 and stores the measurement data decimal point position (BCD code) from the sensor input side to the MPU 13 output side. The shift register 31a, shift registers 31b, 31c,..., 31d, 31e for storing each digit of measurement data, and a shift register 31f for storing codes are connected in cascade. A shift register 31g is cascade-connected to the shift register 31f, and a shift register 21h is cascade-connected to the shift register 31g.

センサ側のシフトレジスタ21a,21b,21c,…,21d,21e,21fには、MPU側のシフトレジスタ31a,31b,31c,…,31d,31e,31fが1対1で縦続接続される。   The sensor-side shift registers 21a, 21b, 21c,..., 21d, 21e, and 21f are cascade-connected to the MPU-side shift registers 31a, 31b, 31c,.

本実施形態では、センサデータ信号の最上位ビットから最下位ビットまでがセンサ側のシフトレジスタ21からMPU13への出力を開始するべき所定のタイミングになると、MPU13は、MPU側のシフトレジスタ31a,31b,31c,…,31d,31e,31fおよびシフトレジスタ31gにロード信号を出力する。このロード信号は、センサ側のシフトレジスタ21a,21b,21c,…,21d,21e,21fに格納されるデータを、MPU側のシフトレジスタ31a,31b,31c,…,31d,31e,31fにロードするための信号である。   In the present embodiment, when the most significant bit to the least significant bit of the sensor data signal comes to a predetermined timing at which output from the shift register 21 on the sensor side to the MPU 13 should start, the MPU 13 shifts to the shift registers 31a and 31b on the MPU side. , 31c,..., 31d, 31e, 31f and the shift register 31g. This load signal loads the data stored in the shift registers 21a, 21b, 21c,..., 21d, 21e, 21f on the sensor side into the shift registers 31a, 31b, 31c, ..., 31d, 31e, 31f on the MPU side. It is a signal to do.

このロード信号は、マルチプレクサ12aが、センサデータ信号の最上位ビットから最下位ビットまでがセンサ側のシフトレジスタ21からMPU13への出力を開始するべき所定のタイミングでMPU13からシリアルクロック信号を入力したことにともなって、マルチプレクサ12aが出力するようにしてもよい。   As for this load signal, the multiplexer 12a inputs a serial clock signal from the MPU 13 at a predetermined timing at which the most significant bit to the least significant bit of the sensor data signal should start output from the sensor-side shift register 21 to the MPU 13. Accordingly, the multiplexer 12a may output.

これにより、対応するシフトレジスタ21a,21b,21c,…,21d,21e,21fへ格納されたセンサデータ信号の各ビットは、MPU側のシフトレジスタ31a,31b,31c,…,31d,31e,31fによりロードされて格納される。   Thereby, each bit of the sensor data signal stored in the corresponding shift register 21a, 21b, 21c,..., 21d, 21e, 21f is converted into the MPU side shift register 31a, 31b, 31c, ..., 31d, 31e, 31f. Is loaded and stored.

このようにMPU側のシフトレジスタ31に格納されたセンサデータ信号は、ホストクロック信号に同期して、シフトレジスタ31a,31b,31c,…,31d,31e,31f,31gの順でシフトされ、ホストデータ信号としてマルチプレクサ12bを介してMPU13へ出力される。比較器24や判定回路27の動作は、第1の実施形態と同様である。   Thus, the sensor data signal stored in the shift register 31 on the MPU side is shifted in the order of the shift registers 31a, 31b, 31c,..., 31d, 31e, 31f, 31g in synchronization with the host clock signal. The data signal is output to the MPU 13 via the multiplexer 12b. The operations of the comparator 24 and the determination circuit 27 are the same as those in the first embodiment.

図5は、第2の実施形態における変位測定装置による動作手順の一例を示すフローチャートである。
初期状態として、図1に示したマルチプレクサ12a,12bは、MPU13から所定のタイミングで入力したシリアルクロック信号に応じて、8つのセンサのいずれかに対応するシリアルデータバッファ11を選択しているとする。マルチプレクサ12aは、この選択したシリアルデータバッファ11に対し、ホストクロック信号を出力する。
FIG. 5 is a flowchart illustrating an example of an operation procedure performed by the displacement measuring apparatus according to the second embodiment.
As an initial state, the multiplexers 12a and 12b shown in FIG. 1 select the serial data buffer 11 corresponding to one of the eight sensors according to the serial clock signal input from the MPU 13 at a predetermined timing. . The multiplexer 12a outputs a host clock signal to the selected serial data buffer 11.

選択されたセンサ側から出力されたセンサデータ信号の各ビットは、センサクロック信号に同期してシフトレジスタ21に入力されて、シフトレジスタ21a,21b,21c,…,21d,21e,21f,21gの順で、センサからの入力側からMPU13への出力側のシフトレジスタ21に向かってシフトされる(ステップS21)。   Each bit of the sensor data signal output from the selected sensor side is input to the shift register 21 in synchronization with the sensor clock signal, and the shift registers 21a, 21b, 21c,..., 21d, 21e, 21f, 21g In order, the shift is performed from the input side from the sensor toward the shift register 21 on the output side to the MPU 13 (step S21).

センサデータ信号の最上位ビットから最下位ビットまでについてシフトレジスタ21からMPU13への出力を開始するべき所定のタイミングとなると、比較器24は、シフトレジスタ21gに格納されたヘッダデータとヘッダデータメモリ23に保存された所定のヘッダデータとを比較する(ステップS22)。比較器24は、これらが一致していなければ(ステップS23のNO)、この結果を示すフラグ情報を生成して(ステップS30)、このフラグ情報を、シフトレジスタ21hを介してシフトレジスタ31gに格納する。この格納されたフラグ情報は、ホストクロック信号に同期してマルチプレクサ12bを介してMPU13へ出力される。   When it is time to start output from the shift register 21 to the MPU 13 for the most significant bit to the least significant bit of the sensor data signal, the comparator 24 uses the header data stored in the shift register 21g and the header data memory 23. Is compared with the predetermined header data stored in (step S22). If they do not match (NO in step S23), the comparator 24 generates flag information indicating the result (step S30), and stores this flag information in the shift register 31g via the shift register 21h. To do. The stored flag information is output to the MPU 13 via the multiplexer 12b in synchronization with the host clock signal.

比較器24による比較結果が一致している状態で(ステップS23のYES)、カウンタ25は、センサデータ信号の各ビットについてのシフトレジスタ21への入力を開始してからのカウント数を判定回路27に出力する(ステップS24)。判定回路27は、センサデータ信号の最上位ビットから最下位ビットまでについてのシフトレジスタ21からMPU13への出力を開始するべき所定のタイミングとなってもカウンタ25からのカウント数が0である場合(ステップS25のYES)、カウントなしを示すフラグ情報を生成して(ステップS31)、このフラグ情報を、シフトレジスタ21hを介してシフトレジスタ31gに格納する。この格納されたフラグ情報は、ホストクロック信号に同期してマルチプレクサ12bを介してMPU13へ出力される。   In a state in which the comparison results by the comparator 24 match (YES in step S23), the counter 25 determines the count number from the start of input to the shift register 21 for each bit of the sensor data signal. (Step S24). The determination circuit 27 is a case where the count number from the counter 25 is 0 even when the output from the shift register 21 to the MPU 13 from the most significant bit to the least significant bit of the sensor data signal is to be started ( (YES in step S25), flag information indicating no count is generated (step S31), and this flag information is stored in the shift register 31g via the shift register 21h. The stored flag information is output to the MPU 13 via the multiplexer 12b in synchronization with the host clock signal.

カウンタ25からのカウント数が0でない場合で(ステップS25のNO)、判定回路27は、カウンタ25からのカウント数が、レジスタ26に格納される所定のカウント数と一致しない場合(ステップS26のYES)、カウント数不一致を示すフラグ情報を生成して(ステップS32)、このフラグ情報を、シフトレジスタ21hを介してシフトレジスタ31gに格納する。この格納されたフラグ情報は、ホストクロック信号に同期してマルチプレクサ12bを介してMPU13へ出力される。以上説明したヘッダデータ比較、カウントの有無の判定、カウント数の不一致の判定は、順番が前後しても差し支えない。   When the count number from the counter 25 is not 0 (NO in step S25), the determination circuit 27 does not match the predetermined count number stored in the register 26 (YES in step S26). ), Flag information indicating the count number mismatch is generated (step S32), and the flag information is stored in the shift register 31g via the shift register 21h. The stored flag information is output to the MPU 13 via the multiplexer 12b in synchronization with the host clock signal. The above-described header data comparison, count presence / absence determination, and count number mismatch determination may be performed in any order.

また、カウンタ25からのカウント数がレジスタ26に格納される所定のカウント数と一致している場合には(ステップS26のYES)、シフトレジスタ31a,31b,31c,…,31d,31e,31fは、ロード信号の入力にともない(ステップS27)、対応するシフトレジスタ21a,21b,21c,…,21d,21e,21fに格納されたセンサデータ信号の各ビットをホストクロック信号に同期してパラレルにてロードして、対応するシフトレジスタ31a,31b,31c,…,31d,31e,31fに格納する(ステップS28)。   When the count number from the counter 25 matches the predetermined count number stored in the register 26 (YES in step S26), the shift registers 31a, 31b, 31c,..., 31d, 31e, 31f are As the load signal is input (step S27), each bit of the sensor data signal stored in the corresponding shift register 21a, 21b, 21c,..., 21d, 21e, 21f is synchronized with the host clock signal in parallel. It is loaded and stored in the corresponding shift registers 31a, 31b, 31c, ..., 31d, 31e, 31f (step S28).

シフトレジスタ31a,31b,31c,…,31d,31e,31fに格納されたセンサデータ信号は、ホストクロック信号に同期して、シフトレジスタ31a,31b,31c,…,31d,31e,31f,31gの順に沿ってシフトされ、ホストデータ信号としてマルチプレクサ12bを介してMPU13へ出力される(ステップS29)。   The sensor data signals stored in the shift registers 31a, 31b, 31c,..., 31d, 31e, 31f are synchronized with the host clock signal, and the shift registers 31a, 31b, 31c,. The data are shifted in order and output to the MPU 13 as a host data signal via the multiplexer 12b (step S29).

この出力が完了すると、図1に示したマルチプレクサ12a,12bは、MPU13からの所定のタイミングでのシリアルクロック信号に同期して、別のセンサのいずれかに対応するシリアルデータバッファ11を改めて選択する。マルチプレクサ12aは、この選択したシリアルデータバッファ11に対してホストクロック信号を出力する。この出力後は前述したS21以降の動作に移る。このようにして、8つのセンサのそれぞれについてのS21からS32の動作がなされ、一巡すると、再び各センサについてのS21からS32の動作がなされる。   When this output is completed, the multiplexers 12a and 12b shown in FIG. 1 again select the serial data buffer 11 corresponding to one of the other sensors in synchronization with the serial clock signal at a predetermined timing from the MPU 13. . The multiplexer 12a outputs a host clock signal to the selected serial data buffer 11. After this output, the operation proceeds to S21 and later. In this way, the operations from S21 to S32 for each of the eight sensors are performed, and once the circuit is completed, the operations from S21 to S32 for each sensor are performed again.

以上説明したように、第2の実施形態における変位測定装置では、第1の実施形態で説明した特徴に加え、センサからセンサ側のシフトレジスタ21に格納したセンサデータ信号をMPU側のシフトレジスタ31にロードする構成としたことを特徴としている。このような構成とすれば、シフトレジスタ31に格納されたセンサデータ信号をMPU13に出力しながら、別のセンサからのセンサデータ信号をシフトレジスタ21に格納する事ができるようになる。   As described above, in the displacement measuring apparatus according to the second embodiment, in addition to the features described in the first embodiment, the sensor data signal stored in the sensor-side shift register 21 from the sensor is transferred to the MPU-side shift register 31. It is characterized in that it is configured to be loaded on. With such a configuration, the sensor data signal from another sensor can be stored in the shift register 21 while the sensor data signal stored in the shift register 31 is output to the MPU 13.

第1の実施形態では、シフトレジスタ21に、別のセンサからのセンサデータ信号を格納するには、シフトレジスタ21に既に格納されているセンサデータ信号の各ビットをシフトさせてMPU13へ出力する必要があったが、本実施形態では、シフトレジスタ21に既に格納されているセンサデータ信号をパラレルにてシフトレジスタ31へロードすれば、このシフトレジスタ21に対し、別のセンサからのセンサデータ信号を格納することができるようになる。   In the first embodiment, in order to store a sensor data signal from another sensor in the shift register 21, it is necessary to shift each bit of the sensor data signal already stored in the shift register 21 and output it to the MPU 13. However, in this embodiment, if the sensor data signal already stored in the shift register 21 is loaded into the shift register 31 in parallel, the sensor data signal from another sensor is sent to the shift register 21. Can be stored.

したがって、第1の実施形態と比較して、マルチプレクサ12a,12bによる各センサに対応するシリアルデータバッファ11の選択の間隔を半分にすることができるので、センサからMPU13へのセンサデータ信号の出力のスループットが向上し、より多数のセンサのそれぞれからのセンサデータ信号をシフトレジスタに格納してMPU13に出力することが可能となる。   Therefore, compared with the first embodiment, the selection interval of the serial data buffer 11 corresponding to each sensor by the multiplexers 12a and 12b can be halved, so that the output of the sensor data signal from the sensor to the MPU 13 can be reduced. Throughput is improved and sensor data signals from each of a larger number of sensors can be stored in the shift register and output to the MPU 13.

(第3の実施形態)
次に、第3の実施形態について説明する。
図6は、第3の実施形態における変位測定装置のシリアルデータバッファ内の構成例を示す図である。
第3の実施形態における変位測定装置は、第2の実施形態で説明した4bit構成のシフトレジスタ31a,31b,31c,…,31d,31e,31f,31gに替えて、8bit構成のシフトレジスタ41a,41b,41c,…,41d,41e,41f,41gを備える。また、本実施形態では、4bitの固定データを格納する固定データレジスタ42を備える。
(Third embodiment)
Next, a third embodiment will be described.
FIG. 6 is a diagram illustrating a configuration example in the serial data buffer of the displacement measuring apparatus according to the third embodiment.
The displacement measuring apparatus according to the third embodiment replaces the 4-bit shift registers 31a, 31b, 31c,..., 31d, 31e, 31f, and 31g described in the second embodiment with an 8-bit shift register 41a, 41b, 41c, ..., 41d, 41e, 41f, 41g. In the present embodiment, a fixed data register 42 for storing 4-bit fixed data is provided.

固定データレジスタ42は、4bitの固定データをシフトレジスタ41a,41b,41c,…,41d,41e,41f,41gにより格納するための上位4bitのデータとして出力する。以下、必要に応じて、シフトレジスタ41a,41b,41c,…,41d,41e,41f,41gを単にシフトレジスタ41と称する。   The fixed data register 42 outputs 4-bit fixed data as upper 4-bit data to be stored by the shift registers 41a, 41b, 41c,..., 41d, 41e, 41f, 41g. Hereinafter, the shift registers 41a, 41b, 41c,..., 41d, 41e, 41f, and 41g are simply referred to as the shift register 41 as necessary.

本実施形態では、シフトレジスタ41は、シフトレジスタ21に格納されたセンサデータ信号を、このシフトレジスタ41に格納するための下位4bitのデータとしてロードする。また、シフトレジスタ41は、固定データレジスタ42に格納された固定データ(0011)をロードし、この固定データを、このシフトレジスタ41に格納するための上位4bitのデータとし、このデータに対し前述した下位4bitのデータをあわせた計8bitの信号をMPU13に出力する。このような出力を行なえば、シフトレジスタ41は、出力データをASCII形式のキャラクタコードとして出力することができる。   In the present embodiment, the shift register 41 loads the sensor data signal stored in the shift register 21 as lower 4 bits of data to be stored in the shift register 41. The shift register 41 loads the fixed data (0011) stored in the fixed data register 42, and uses the fixed data as upper 4 bits data to be stored in the shift register 41. A total 8-bit signal, which combines the lower 4 bits of data, is output to the MPU 13. If such an output is performed, the shift register 41 can output the output data as an ASCII character code.

図7は、第3の実施形態における変位測定装置による動作手順の一例を示すフローチャートである。
初期状態として、図1に示したマルチプレクサ12a,12bは、MPU13から所定のタイミングで入力したシリアルクロック信号に応じて、8つのセンサのいずれかに対応するシリアルデータバッファ11を選択しているとする。マルチプレクサ12aは、この選択したシリアルデータバッファ11に対し、ホストクロック信号を出力する。
FIG. 7 is a flowchart illustrating an example of an operation procedure performed by the displacement measuring apparatus according to the third embodiment.
As an initial state, the multiplexers 12a and 12b shown in FIG. 1 select the serial data buffer 11 corresponding to one of the eight sensors according to the serial clock signal input from the MPU 13 at a predetermined timing. . The multiplexer 12a outputs a host clock signal to the selected serial data buffer 11.

選択されたセンサ側から出力されたセンサデータ信号の各ビットは、センサクロック信号に同期してシフトレジスタ21に入力されて、シフトレジスタ21a,21b,21c,…,21d,21e,21f,21gの順で、センサからの入力側からMPU13への出力側のシフトレジスタ21に向かってシフトされる(ステップS41)。   Each bit of the sensor data signal output from the selected sensor side is input to the shift register 21 in synchronization with the sensor clock signal, and the shift registers 21a, 21b, 21c,..., 21d, 21e, 21f, 21g In order, the shift is performed from the input side from the sensor toward the shift register 21 on the output side to the MPU 13 (step S41).

センサデータ信号の最上位ビットから最下位ビットまでについてシフトレジスタ21からMPU13への出力を開始するべき所定のタイミングとなると、比較器24は、シフトレジスタ21gに格納されたヘッダデータとヘッダデータメモリ23に保存された所定のヘッダデータとを比較する(ステップS42)。比較器24は、これらが一致していなければ(ステップS43のNO)、この結果を示すフラグ情報を生成して(ステップS51)、このフラグ情報を、シフトレジスタ21hを介してシフトレジスタ41gに下位4bitのデータとして格納する。   When it is time to start output from the shift register 21 to the MPU 13 for the most significant bit to the least significant bit of the sensor data signal, the comparator 24 uses the header data stored in the shift register 21g and the header data memory 23. Is compared with the predetermined header data stored in (step S42). If they do not match (NO in step S43), the comparator 24 generates flag information indicating the result (step S51), and sends this flag information to the shift register 41g via the shift register 21h. Store as 4-bit data.

この格納されたフラグ情報に対して、固定データレジスタ42に格納された固定データを上位4bitのデータとしてあわせた8bitのデータは、ホストクロック信号に同期してマルチプレクサ12bを介してMPU13へ出力される。   The 8-bit data obtained by combining the stored flag information with the fixed data stored in the fixed data register 42 as the upper 4-bit data is output to the MPU 13 via the multiplexer 12b in synchronization with the host clock signal. .

比較器24による比較結果が一致している状態で(ステップS43のYES)、カウンタ25は、センサデータ信号の各ビットの入力を開始してからのカウント数を判定回路27に出力する(ステップS44)。判定回路27は、センサデータ信号の最上位ビットから最下位ビットまでについてシフトレジスタ21からMPU13への出力を開始するべき所定のタイミングとなっても、カウンタ25からのカウント数が0である場合(ステップS45のYES)、カウントなしを示すフラグ情報を生成して(ステップS52)、このフラグ情報を、シフトレジスタ21hを介してシフトレジスタ41gに下位4bitのデータとして格納する。   In a state where the comparison results by the comparator 24 match (YES in step S43), the counter 25 outputs the count number from the start of input of each bit of the sensor data signal to the determination circuit 27 (step S44). ). The determination circuit 27 is in the case where the count number from the counter 25 is 0 even when the output from the shift register 21 to the MPU 13 is started for the most significant bit to the least significant bit of the sensor data signal ( (YES in step S45), flag information indicating no count is generated (step S52), and this flag information is stored as data of lower 4 bits in the shift register 41g via the shift register 21h.

この格納されたフラグ情報に対して、固定データレジスタ42に格納された固定データを上位4bitのデータとしてあわせた8bitのデータは、ホストクロック信号に同期してマルチプレクサ12bを介してMPU13へ出力される。   The 8-bit data obtained by combining the stored flag information with the fixed data stored in the fixed data register 42 as the upper 4-bit data is output to the MPU 13 via the multiplexer 12b in synchronization with the host clock signal. .

カウンタ25からのカウント数が0でない場合で(ステップS45のNO)、判定回路27は、カウンタ25からのカウント数が、レジスタ26に格納される所定のカウント数と一致しない場合(ステップS46のYES)、カウント数不一致を示すフラグ情報を生成して(ステップS53)、このフラグ情報を、シフトレジスタ21hを介してシフトレジスタ41gに下位4bitのデータとして格納する。   If the count number from the counter 25 is not 0 (NO in step S45), the determination circuit 27 does not match the predetermined count number stored in the register 26 (YES in step S46). ), Flag information indicating the count number mismatch is generated (step S53), and the flag information is stored as data of lower 4 bits in the shift register 41g via the shift register 21h.

この格納されたフラグ情報に対して、固定データレジスタ42に格納された固定データを上位4bitのデータとしてあわせた8bitのデータは、ホストクロック信号に同期してマルチプレクサ12bを介してMPU13へ出力される。以上説明したヘッダデータ比較、カウントの有無の判定、カウント数の不一致の判定は、順番が前後しても差し支えない。   The 8-bit data obtained by combining the stored flag information with the fixed data stored in the fixed data register 42 as the upper 4-bit data is output to the MPU 13 via the multiplexer 12b in synchronization with the host clock signal. . The above-described header data comparison, count presence / absence determination, and count number mismatch determination may be performed in any order.

また、カウンタ25からのカウント数が所定のカウント数と一致している場合には(ステップS46のYES)、シフトレジスタ41a,41b,41c,…,41d,41e,41fは、ロード信号の入力にともない(ステップS47)、対応するシフトレジスタ21a,21b,21c,…,21d,21e,21fへ格納されたセンサデータ信号の各ビットをホストクロック信号に同期してパラレルにてロードして、対応するシフトレジスタ41a,41b,41c,…,41d,41e,41fに下位4bitのデータとして格納する(ステップS48)。   If the count number from the counter 25 is equal to the predetermined count number (YES in step S46), the shift registers 41a, 41b, 41c,..., 41d, 41e, 41f receive load signals. At the same time (step S47), each bit of the sensor data signal stored in the corresponding shift register 21a, 21b, 21c,..., 21d, 21e, 21f is loaded in parallel in synchronization with the host clock signal. The data is stored in the shift registers 41a, 41b, 41c,..., 41d, 41e, 41f as lower 4 bits data (step S48).

シフトレジスタ21a,21b,21c,…,21d,21e,21fからシフトレジスタ41a,41b,41c,…,41d,41e,41fに格納された下位4bitのデータおよび固定データレジスタ42に格納された固定データを上位4bitのデータとしてあわせた8bitのデータは、ホストクロック信号に同期して、シフトレジスタ41a,41b,41c,…,41d,41e,41f,41gの順に沿ってシフトされ、ホストデータ信号としてマルチプレクサ12bを介してMPU13へ出力される(ステップS49)。   .., 21d, 21e, 21f to shift registers 41a, 41b, 41c,..., 41d, 41e, 41f and lower 4 bits of data and fixed data stored in the fixed data register 42. The 8-bit data that is combined with the higher-order 4-bit data is shifted in the order of the shift registers 41a, 41b, 41c,..., 41d, 41e, 41f, and 41g in synchronization with the host clock signal. The data is output to the MPU 13 via 12b (step S49).

この出力が完了すると、図1に示したマルチプレクサ12a,12bは、MPU13からの所定のタイミングでのシリアルクロック信号に同期して、別のセンサのいずれかに対応するシリアルデータバッファ11を改めて選択する。マルチプレクサ12aは、この選択したシリアルデータバッファ11に対してホストクロック信号を出力する。この出力後は前述したS41以降の動作に移る。このようにして、8つのセンサのそれぞれについてのS41からS53の動作がなされ、一巡すると、再び各センサについてのS41からS53の動作がなされる。   When this output is completed, the multiplexers 12a and 12b shown in FIG. 1 again select the serial data buffer 11 corresponding to one of the other sensors in synchronization with the serial clock signal at a predetermined timing from the MPU 13. . The multiplexer 12a outputs a host clock signal to the selected serial data buffer 11. After this output, the operation proceeds to S41 and later. In this way, the operations from S41 to S53 for each of the eight sensors are performed, and after one round, the operations from S41 to S53 for each sensor are performed again.

以上説明したように、第3の実施形態における変位測定装置では、第2の実施形態で説明した特徴に加え、MPU側のシフトレジスタ41は、シフトレジスタ21に格納されたセンサデータ信号を、シフトレジスタ41の下位4bitのデータとしてロードする。また、シフトレジスタ41は、固定データレジスタ42に格納された固定データをロードし、これらをあわせた8bitの信号をMPU13に出力する。このような出力を行なうと、出力データはASCII形式のキャラクタコードとして出力でき、MPUにデータが出力される時点でASCII形式のキャラクタコードの状態とすることができる。   As described above, in the displacement measuring apparatus according to the third embodiment, in addition to the features described in the second embodiment, the shift register 41 on the MPU side shifts the sensor data signal stored in the shift register 21. The data is loaded as the lower 4 bits of the register 41. The shift register 41 loads the fixed data stored in the fixed data register 42 and outputs an 8-bit signal obtained by combining the fixed data to the MPU 13. When such an output is performed, the output data can be output as an ASCII character code, and the ASCII character code can be set when the data is output to the MPU.

このことから、MPU13からメモリカード15へのデータ書き込みやシリアルプリンタ14への出力が、従来のように、MPU13内のソフトウェアによる処理で動作させるよりも高速に処理することができるため、より多数のセンサを接続した変位計測が可能となる。   As a result, data writing from the MPU 13 to the memory card 15 and output to the serial printer 14 can be processed at a higher speed than in the prior art when operated by software processing in the MPU 13, so that a larger number of data can be processed. Displacement measurement with a sensor connected is possible.

これらの各実施形態によれば、複数の変位センサのそれぞれからの変位データ信号を入力して適切に出力することが可能になる変位測定装置を提供することができる。
発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。
According to each of these embodiments, it is possible to provide a displacement measuring device that can input and appropriately output displacement data signals from each of a plurality of displacement sensors.
Although several embodiments of the invention have been described, these embodiments are presented by way of example and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the scope of the invention. These embodiments and modifications thereof are included in the scope and gist of the invention, and are included in the invention described in the claims and the equivalents thereof.

11…シリアルデータバッファ、12,22,104…マルチプレクサ、13,105…MPU、14…シリアルプリンタ、15…メモリカード、21,31,41,111…シフトレジスタ、23…ヘッダデータメモリ、24…比較器、25…カウンタ、26…レジスタ、27…判定回路、42…固定データレジスタ。   DESCRIPTION OF SYMBOLS 11 ... Serial data buffer, 12, 22, 104 ... Multiplexer, 13, 105 ... MPU, 14 ... Serial printer, 15 ... Memory card, 21, 31, 41, 111 ... Shift register, 23 ... Header data memory, 24 ... Comparison 25, counter, 26, register, 27, determination circuit, 42, fixed data register.

Claims (7)

複数の変位センサのそれぞれに対応して設けられ、前記変位センサのそれぞれから出力される変位データ信号を前記変位データ信号の出力元の変位センサからのクロック信号に同期してシリアルデータとして入力して一時保存する一時保存装置と、
前記一時保存装置のいずれかを順次選択し、前記選択した一時保存装置に保存された変位データ信号を所定のクロック信号に同期してシリアルデータとして出力する出力手段と
を備えたことを特徴とする変位測定装置。
Provided corresponding to each of the plurality of displacement sensors, the displacement data signal output from each of the displacement sensors is input as serial data in synchronization with the clock signal from the displacement sensor from which the displacement data signal is output. A temporary storage device for temporary storage;
Output means for sequentially selecting any one of the temporary storage devices and outputting the displacement data signal stored in the selected temporary storage device as serial data in synchronization with a predetermined clock signal; Displacement measuring device.
前記一時保存装置は、
前記変位センサからの変位データ信号を前記変位データ信号の出力元の変位センサからのクロック信号に同期してシリアルデータとして入力して一時保存するために前記変位データ信号のビット数に応じて設けられる第1のシフトレジスタと、
前記第1のシフトレジスタに一時保存された変位データ信号を読み出して一時保存するために前記変位データ信号のビット数に応じて設けられる第2のシフトレジスタとを有し、
前記出力手段は、
前記選択した一時保存装置の前記第2のシフトレジスタに保存された変位データ信号を前記所定のクロック信号に同期してシリアルデータとして出力する
ことを特徴とする請求項1に記載の変位測定装置。
The temporary storage device is:
The displacement data signal from the displacement sensor is provided in accordance with the number of bits of the displacement data signal to be temporarily stored as serial data in synchronization with a clock signal from the displacement sensor that is the output source of the displacement data signal. A first shift register;
A second shift register provided in accordance with the number of bits of the displacement data signal to read out and temporarily store the displacement data signal temporarily stored in the first shift register;
The output means includes
The displacement measuring device according to claim 1, wherein the displacement data signal stored in the second shift register of the selected temporary storage device is output as serial data in synchronization with the predetermined clock signal.
前記一時保存装置は、
前記変位センサからの変位データ信号を前記変位データ信号の出力元の変位センサからのクロック信号に同期してシリアルデータとして入力して一時保存するために前記変位データ信号のビット数に応じて設けられる第1のシフトレジスタと、
前記第1のシフトレジスタに一時保存された変位データ信号を読み出して一時保存するために前記変位データ信号のビット数に応じて設けられる第2のシフトレジスタと、
所定の値の所定のビット数のデータを保存するデータ保存手段とを有し、
前記出力手段は、
前記選択した一時保存装置の前記第2のシフトレジスタに保存された変位データ信号をシリアルデータの下位ビットとして、かつ、前記前記データ保存手段に保存されたデータを前記シリアルデータの上位ビットとしたデータをシリアルデータとして出力する
ことを特徴とする請求項1に記載の変位測定装置。
The temporary storage device is:
The displacement data signal from the displacement sensor is provided in accordance with the number of bits of the displacement data signal to be temporarily stored as serial data in synchronization with a clock signal from the displacement sensor that is the output source of the displacement data signal. A first shift register;
A second shift register provided according to the number of bits of the displacement data signal to read out and temporarily store the displacement data signal temporarily stored in the first shift register;
Data storage means for storing data of a predetermined number of bits of a predetermined value,
The output means includes
Data with the displacement data signal stored in the second shift register of the selected temporary storage device as the lower bits of serial data and the data stored in the data storage means as the upper bits of the serial data The displacement measuring device according to claim 1, wherein the data is output as serial data.
前記一時保存装置は、
前記変位センサからのクロック信号が入力されていない際に、前記変位センサからのクロック信号の出力状態が異常である旨を示す信号を出力する
ことを特徴とする請求項1に記載の変位測定装置。
The temporary storage device is:
2. The displacement measuring apparatus according to claim 1, wherein when the clock signal from the displacement sensor is not input, a signal indicating that the output state of the clock signal from the displacement sensor is abnormal is output. .
前記一時保存装置は、
前記変位センサからの変位データ信号で示されるヘッダ情報が正常でない際に、前記変位センサからの変位データ信号の出力状態が異常である旨を示す信号を出力する
ことを特徴とする請求項1に記載の変位測定装置。
The temporary storage device is:
The signal indicating that the output state of the displacement data signal from the displacement sensor is abnormal is output when the header information indicated by the displacement data signal from the displacement sensor is not normal. The displacement measuring device described.
前記一時保存装置は、
前記変位センサからの変位データ信号の最上位ビットから最下位ビットまでを入力しても、前記変位センサからのクロック信号の入力数が所定の条件を満たしていない際に、前記変位センサからの信号の出力状態が異常である旨を示す信号を出力する
ことを特徴とする請求項1に記載の変位測定装置。
The temporary storage device is:
Even when the most significant bit to the least significant bit of the displacement data signal from the displacement sensor is input, when the number of clock signals input from the displacement sensor does not satisfy a predetermined condition, the signal from the displacement sensor The displacement measuring apparatus according to claim 1, wherein a signal indicating that the output state is abnormal is output.
複数の変位センサのそれぞれに対応して設けられる一時保存装置に、前記変位センサのそれぞれから出力される変位データ信号を前記変位データ信号の出力元の変位センサからのクロック信号に同期してシリアルデータとして入力して一時保存し、
前記一時保存装置のいずれかを順次選択し、前記選択した一時保存装置に保存された変位データ信号を所定のクロック信号に同期してシリアルデータとして出力する
ことを特徴とする変位測定方法。
In a temporary storage device provided corresponding to each of the plurality of displacement sensors, the displacement data signal output from each of the displacement sensors is serialized in synchronization with the clock signal from the displacement sensor from which the displacement data signal is output. As a temporary save,
One of the temporary storage devices is sequentially selected, and a displacement data signal stored in the selected temporary storage device is output as serial data in synchronization with a predetermined clock signal.
JP2012137316A 2012-06-18 2012-06-18 Displacement measuring device and displacement measuring method Pending JP2014002034A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012137316A JP2014002034A (en) 2012-06-18 2012-06-18 Displacement measuring device and displacement measuring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012137316A JP2014002034A (en) 2012-06-18 2012-06-18 Displacement measuring device and displacement measuring method

Publications (1)

Publication Number Publication Date
JP2014002034A true JP2014002034A (en) 2014-01-09

Family

ID=50035341

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012137316A Pending JP2014002034A (en) 2012-06-18 2012-06-18 Displacement measuring device and displacement measuring method

Country Status (1)

Country Link
JP (1) JP2014002034A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017150854A (en) * 2016-02-22 2017-08-31 三菱日立パワーシステムズ株式会社 Displacement measurement system, turbine facility, and displacement measurement method
KR20180097118A (en) * 2017-02-22 2018-08-30 오므론 가부시키가이샤 Optical displacement sensor and system indluding the same

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017150854A (en) * 2016-02-22 2017-08-31 三菱日立パワーシステムズ株式会社 Displacement measurement system, turbine facility, and displacement measurement method
KR20180097118A (en) * 2017-02-22 2018-08-30 오므론 가부시키가이샤 Optical displacement sensor and system indluding the same
KR102124099B1 (en) * 2017-02-22 2020-06-17 오므론 가부시키가이샤 Optical displacement sensor and system indluding the same

Similar Documents

Publication Publication Date Title
JP2012026824A (en) Sensing device and electronic apparatus
US9438837B2 (en) Image sensor and image sensing system with redundant data
US9654716B2 (en) Image pickup apparatus, image pickup system, driving method for the image pickup apparatus, and inspection method for the image pickup apparatus
JP2005233720A (en) Encoder and control device of motor
JP2014002034A (en) Displacement measuring device and displacement measuring method
KR101787824B1 (en) Operating a fifo memory
JP5097973B2 (en) Data processing device
JP6113691B2 (en) Sensor device, processing device, sensor system, and physical quantity output method
JP2012023564A (en) Image processing apparatus
US20080111715A1 (en) Serial data receiving circuit and serial data receiving method
US20120249345A1 (en) Data processing device and data processing method
JP4679230B2 (en) Digital phasing ultrasonic equipment
US8285695B2 (en) Catalog page generation system, digital camera, computer program product, and method for catalog page generation
JP2009128080A (en) Waveform measuring device
CN107734366B (en) Receiving apparatus and transmitting/receiving system
JP5494702B2 (en) Cell voltage monitoring device
JP4773262B2 (en) Weighing device
JP5423071B2 (en) Data transfer device and imaging device
JP2020046363A (en) Waveform display device and waveform display program
JP2015080123A (en) Imaging apparatus, imaging system, method for controlling imaging apparatus, program, and recording medium
JP4423280B2 (en) Analog output signal holding device
KR100715561B1 (en) Data transfer device using dual port ram
JP2007147405A (en) Anomaly monitoring apparatus
JP2009239954A (en) Cycle shift detection device between serial data
JP2009010532A (en) Color conversion processor and color conversion method

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131219

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20131226

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20140109