Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5903690B2 - Digital scale display controller - Google Patents
[go: Go Back, main page]

JP5903690B2 - Digital scale display controller - Google Patents

Digital scale display controller Download PDF

Info

Publication number
JP5903690B2
JP5903690B2 JP2014130213A JP2014130213A JP5903690B2 JP 5903690 B2 JP5903690 B2 JP 5903690B2 JP 2014130213 A JP2014130213 A JP 2014130213A JP 2014130213 A JP2014130213 A JP 2014130213A JP 5903690 B2 JP5903690 B2 JP 5903690B2
Authority
JP
Japan
Prior art keywords
value
display
vbd
vad
correction value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2014130213A
Other languages
Japanese (ja)
Other versions
JP2016008903A (en
Inventor
達矢 丸尾
達矢 丸尾
新一 鈴木
新一 鈴木
Original Assignee
日本電波株式会社
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 日本電波株式会社 filed Critical 日本電波株式会社
Priority to JP2014130213A priority Critical patent/JP5903690B2/en
Publication of JP2016008903A publication Critical patent/JP2016008903A/en
Application granted granted Critical
Publication of JP5903690B2 publication Critical patent/JP5903690B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Optical Transform (AREA)

Description

本発明は、例えば工作機械における移動テーブルの変位量、各種工業材料や部品の厚さ、表面荒さ等を計測するのに好適に用いられるディジタルスケールの表示制御装置に関する。   The present invention relates to a digital scale display control apparatus suitably used for measuring, for example, the amount of displacement of a moving table in machine tools, the thickness of various industrial materials and parts, surface roughness, and the like.

一般に、工業部品の寸法、表面荒さ等を計測したり、工作機械における移動テーブルの変位量等を計測したりするのに、光学式ディジタルスケールを用いることは知られている。この種の従来技術による光学式ディジタルスケールは、測定対象物の形状または変位等に応じて軸方向に移動(変位)する計測部と、発光素子および受光素子からなる信号発生装置とを備え、この信号発生装置は、前記計測部の変位に従って位相が1/4ピッチずれた2つの検出信号を発生させる。これらの検出信号は、前記計測部の変位量に応じて変化するので、前記測定対象物の計測値として取り出すことができ、これを表示器によりディジタル表示するものである(例えば、特許文献1参照)。   In general, it is known to use an optical digital scale to measure the dimensions and surface roughness of industrial parts and to measure the displacement amount of a moving table in a machine tool. This type of conventional optical digital scale includes a measuring unit that moves (displaces) in the axial direction according to the shape or displacement of a measurement object, and a signal generation device that includes a light emitting element and a light receiving element. The signal generator generates two detection signals whose phases are shifted by ¼ pitch according to the displacement of the measurement unit. Since these detection signals change according to the amount of displacement of the measurement unit, they can be taken out as measurement values of the measurement object, and are digitally displayed on a display (for example, see Patent Document 1). ).

また、例えばリニアエンコーダまたはロータリエンコーダ等の相対移動変位量検出装置として、所定の位相差を有する検出器からの擬似正弦波信号を入力し、この擬似正弦波の周期よりも短い周期のパルスを計数することによって移動変位量を算出する抵抗分割方式を採用したものが知られている(例えば、特許文献2参照)。   Also, for example, as a relative displacement detection device such as a linear encoder or a rotary encoder, a pseudo sine wave signal from a detector having a predetermined phase difference is input, and pulses having a period shorter than the period of the pseudo sine wave are counted. A method using a resistance division method for calculating the amount of movement displacement is known (see, for example, Patent Document 2).

特開平5−248850号公報JP-A-5-248850 特開2003−214836号公報JP 2003-214836 A

ところで、特許文献1による従来技術では、測定対象物の計測精度を高めようとすると、計測値の表示制御を行うための演算処理に時間が掛かって動作速度が遅くなり、装置の応答性向上を図るのが難しいという問題がある。   By the way, in the prior art according to Patent Document 1, when it is attempted to increase the measurement accuracy of the measurement object, it takes time for the calculation processing for performing display control of the measurement value, the operation speed is slowed down, and the response of the apparatus is improved. There is a problem that it is difficult to plan.

また、特許文献2による従来技術では、検出精度を向上させるために入力波形の分割数を増やすと、倍周回路のハードウェア規模が大きくなってしまう。例えば、同一の光学式ディジタルスケールを使用した場合を想定すると、波形分割数を4倍にしたときに、コンパレータの数は10回路から40回路へと大幅に増加する。しかも、波形分割数を増やすことにより変位量に対するパルス数が増加するため、倍周回路の回路遅延により正常に計測できる変化速度の上限が低下するという問題がある。   In the prior art disclosed in Patent Document 2, if the number of divisions of the input waveform is increased in order to improve detection accuracy, the hardware scale of the frequency doubler circuit increases. For example, assuming that the same optical digital scale is used, when the number of waveform divisions is quadrupled, the number of comparators greatly increases from 10 circuits to 40 circuits. In addition, since the number of pulses with respect to the amount of displacement increases by increasing the number of waveform divisions, there is a problem that the upper limit of the change speed that can be normally measured is reduced due to the circuit delay of the frequency doubler circuit.

さらに、倍周回路で使用している比較手段のヒステリシスコンパレータは、数十〜数百mVの電圧差を比較する必要があるため、精度の高い部品が必要になってコストアップを招く。また、抵抗分割方式により位相の異なる擬似正弦波を生成しているため、入力波形のノイズにより、比較手段の複数のヒステリシスコンパレータが同時にON/OFFすることがあり、入力信号にエラーが発生し易くなって、計測誤差が生じ易いという問題がある。   Furthermore, since the hysteresis comparator of the comparison means used in the frequency doubler circuit needs to compare voltage differences of several tens to several hundreds mV, it requires highly accurate parts and causes an increase in cost. In addition, because the pseudo-sine waves with different phases are generated by the resistance division method, multiple hysteresis comparators of the comparator may be turned ON / OFF at the same time due to noise in the input waveform, and errors are likely to occur in the input signal. Thus, there is a problem that measurement errors are likely to occur.

本発明は、上述した従来技術の問題に鑑みなされたもので、本発明の目的は、測定対象物の計測値を表示する上での表示精度を向上できると共に、装置の動作速度、応答性の迅速化を図ることができるようにしたディジタルスケールの表示制御装置を提供することにある。   The present invention has been made in view of the above-described problems of the prior art, and an object of the present invention is to improve the display accuracy in displaying the measurement value of the measurement object, and to improve the operation speed and responsiveness of the apparatus. It is an object of the present invention to provide a digital scale display control device which can be speeded up.

上述した課題を解決するため、本発明は、変位可能な計測部を有した光学式ディジタルスケールを用いて測定対象物の計測を行い、前記計測部の変位量を前記測定対象物の計測値として表示器によりディジタル表示するディジタルスケールの表示制御装置に適用される。   In order to solve the above-described problem, the present invention measures an object to be measured using an optical digital scale having a displaceable measuring unit, and uses the displacement amount of the measuring unit as a measured value of the measuring object. The present invention is applied to a digital scale display control device for digital display by a display.

そして、請求項1の発明が採用する構成の特徴は、前記計測部の変位に従って位相が1/4ピッチずれた2つの検出信号を発生させる信号発生装置と、該信号発生装置からの各検出信号に対し夫々の信号波形の変化に基づいてカウントアップ動作とカウントダウン動作を行うことにより前記測定対象物の計測値をカウンタ計数値として出力するカウンタと、前記カウンタと並列して動作し、前記各検出信号の波形をディジタル波形にA/D変換するA/D変換器と、A/D変換された2つのディジタル信号(VAD,VBD)の中心電圧と振幅を一致させるように波形整形を行う波形整形部と、波形整形された前記2つのディジタル信号(VAD,VBD)から前記信号波形の一周期内で8個の区間(♯1〜♯8)の位相情報と該位相情報に基づいた第1の変位補正値(X2)とを算出する位相・補正値算出部と、波形整形された前記2つのディジタル信号(VAD,VBD)の信号値を絶対値(|VAD|,|VBD|)で比較して両信号値の比率を演算し、前記絶対値(|VAD|,|VBD|)が(|VAD|≧|VBD|)のときには、前記位相情報と前記絶対値(|VAD|,|VBD|)の比率(|VAD|/|VBD|)とに基づいて前記第1の変位補正値(X2)よりも微細な第2の変位補正値(X3)を算出し、前記絶対値(|VAD|,|VBD|)が(|VAD|<|VBD|)のときには、前記位相情報と前記絶対値(|VAD|,|VBD|)の比率(|VBD|/|VAD|)とに基づいて前記第1の変位補正値(X2)よりも微細な第2の変位補正値(X3)を算出する変位補正値算出部と、前記カウンタによる単位時間当たりのカウンタ計数値から前記各検出信号の入力周波数を算出し、この入力周波数の周波数範囲に基づいて前記表示器における計測値の表示処理を行う計測値表示処理部とを備え、該計測値表示処理部は、前記入力周波数が予め決められた判定周波数を越えるか否かにより、前記カウンタの計数値に基づいた変位量(X1)に対して前記第1の変位補正値(X2),第2の変位補正値(X3)を選択的に加算し、その合計値に従って前記表示器における計測値の表示処理を行う構成としたことにある。 A feature of the configuration adopted by the invention of claim 1 is that a signal generator for generating two detection signals whose phases are shifted by 1/4 pitch according to the displacement of the measurement unit, and each detection signal from the signal generator A counter that outputs a measurement value of the measurement object as a counter count value by performing a count-up operation and a count-down operation based on a change in each signal waveform, and operates in parallel with the counter, An A / D converter that A / D converts the signal waveform into a digital waveform, and waveform shaping that performs waveform shaping so that the center voltage and amplitude of the two A / D converted digital signals (VAD, VBD) match. a Department, first based on the phase information and the phase information of the waveform-shaped the two digital signals (VAD, VBD) from the signal of eight sections within one period of the waveform (# 1 to # 8) Displacement correction value and (X2) and phase-correction value calculation unit that calculates a waveform-shaped the absolute value signal values of the two digital signals (VAD, VBD) (| VAD |, | VBD |) compared with Then, the ratio of both signal values is calculated, and when the absolute value (| VAD |, | VBD |) is (| VAD | ≧ | VBD |), the phase information and the absolute value (| VAD |, | VBD The second displacement correction value (X3) finer than the first displacement correction value (X2 ) is calculated based on the ratio of |) (| VAD | / | VBD |), and the absolute value (| VAD When |||| VBD |) is (| VAD | <| VBD |), it is based on the phase information and the ratio (| VBD | / | VAD |) of the absolute values (| VAD |, | VBD |). a displacement correction value calculating unit that calculates the first displacement correction value second displacement correction value finer than (X2) (X3), when the unit by the counter A measurement value display processing unit that calculates an input frequency of each detection signal from a counter count value per hit, and performs display processing of the measurement value in the display unit based on a frequency range of the input frequency, the measurement value display The processing unit determines whether the first displacement correction value (X2) , the second displacement with respect to the displacement amount (X1) based on the count value of the counter, depending on whether the input frequency exceeds a predetermined determination frequency. The displacement correction value (X3) is selectively added, and the display processing of the measured value in the display device is performed according to the total value.

請求項2の発明が採用する構成の特徴は、前記計測部の変位に従って位相が1/4ピッチずれた2つの検出信号を発生させる信号発生装置と、該信号発生装置からの各検出信号に対し夫々の信号波形の変化に基づいてカウントアップ動作とカウントダウン動作を行うことにより前記測定対象物の計測値をカウンタ計数値として出力するカウンタと、前記カウンタと並列して動作し、前記各検出信号の波形をディジタル波形にA/D変換するA/D変換器と、A/D変換された2つのディジタル信号(VAD,VBD)の中心電圧と振幅を一致させるように波形整形を行う波形整形部と、波形整形された前記2つのディジタル信号(VAD,VBD)から前記信号波形の一周期内での位相情報と該位相情報に基づいた第1の変位補正値(X2)とを算出する位相・補正値算出部と、波形整形された前記2つのディジタル信号(VAD,VBD)の信号値を比較演算し、前記第1の変位補正値(X2)よりも微細な第2の変位補正値(X3)を算出する変位補正値算出部と、前記カウンタによる単位時間当たりのカウンタ計数値から前記各検出信号の入力周波数を算出し、この入力周波数の周波数範囲に基づいて前記表示器における計測値の表示処理を行う計測値表示処理部とを備え、該計測値表示処理部は、前記入力周波数が零以上で、予め決められた判定周波数以下のときには、前記変位補正値算出部で前記第2の変位補正値(X3)を算出することにより、前記カウンタの計数値に基づいた変位量(X1)に対し前記第2の変位補正値(X3)を加算した合計値(X1+X3)に従って前記表示器における計測値の表示処理を行い、前記入力周波数が前記判定周波数を越えたときには、前記変位補正値算出部で前記第2の変位補正値(X3)の算出を行うことなく、前記カウンタの計数値に基づいた前記変位量(X1)に対し前記第1の変位補正値(X2)を加算した合計値(X1+X2)に従って前記表示器における計測値の表示処理を行う構成としている。 The feature of the configuration adopted by the invention of claim 2 is that a signal generator for generating two detection signals whose phases are shifted by ¼ pitch according to the displacement of the measurement unit, and for each detection signal from the signal generator A counter that outputs a measurement value of the measurement object as a counter count value by performing a count-up operation and a count-down operation based on a change in each signal waveform, and operates in parallel with the counter, An A / D converter for A / D converting the waveform into a digital waveform, and a waveform shaping unit for shaping the waveform so that the center voltages and amplitudes of the two A / D converted digital signals (VAD, VBD) match. Then, phase information within one cycle of the signal waveform and a first displacement correction value (X2) based on the phase information are calculated from the two digital signals (VAD, VBD) that have undergone waveform shaping. A phase / correction value calculation unit and a signal value of the two digital signals (VAD, VBD) having been subjected to waveform shaping are compared, and a second displacement correction value that is finer than the first displacement correction value (X2). A displacement correction value calculation unit for calculating (X3), and an input frequency of each detection signal is calculated from a counter count value per unit time by the counter, and a measured value in the display unit based on a frequency range of the input frequency A measurement value display processing unit that performs the display processing of the second step, and when the input frequency is equal to or higher than zero and equal to or lower than a predetermined determination frequency, the displacement correction value calculation unit performs the second correction correction value calculation unit. By calculating the displacement correction value (X3), the display unit according to the total value (X1 + X3) obtained by adding the second displacement correction value (X3) to the displacement amount (X1) based on the count value of the counter When the measured value display process is performed and the input frequency exceeds the determination frequency, the displacement correction value calculation unit does not calculate the second displacement correction value (X3), and the count value of the counter The display unit displays the measured value according to the total value (X1 + X2) obtained by adding the first displacement correction value (X2) to the displacement amount (X1) based on the above .

請求項3の発明によると、前記位相・補正値算出部は、波形整形された前記2つのディジタル信号(VAD,VBD)の信号値の大小比較を行うことにより前記位相情報と前記第1の変位補正値(X2)とを算出する構成としている。 According to a third aspect of the present invention, the phase / correction value calculation unit compares the phase information and the first displacement by comparing the signal values of the two digital signals (VAD, VBD) that have undergone waveform shaping. The correction value (X2) is calculated.

請求項4の発明によると、前記計測値表示処理部は、前記入力周波数が零以上で、前記判定周波数以下のときに、前記カウンタの計数値に基づいた前記変位量(X1)と前記第2の変位補正値との合計値(X1+X3)に従って前記表示器における計測値の表示処理を行い、前記入力周波数が前記判定周波数を越えたときには、前記カウンタの計数値に基づいた前記変位量(X1)と前記第1の変位補正値(X2)との合計値(X1+X2)に従って前記表示器における計測値の表示処理を行う構成としている。 According to a fourth aspect of the present invention, the measured value display processing unit is configured to detect the displacement (X1) based on the count value of the counter and the second value when the input frequency is equal to or higher than zero and equal to or lower than the determination frequency. In accordance with the total value (X1 + X3) of the displacement correction value, the measured value is displayed on the display, and when the input frequency exceeds the determination frequency, the displacement amount (X1) based on the count value of the counter And the first displacement correction value (X2) are displayed according to the total value (X1 + X2) of the measured value on the display unit.

請求項5の発明によると、前記計測値表示処理部は、前記入力周波数が前記判定周波数を越えたときに前記表示器における計測値の表示を、その最下桁が数値ではない表示に切り替える構成としている。   According to invention of Claim 5, the said measured value display process part is a structure which switches the display of the measured value in the said display to the display whose lower digit is not a numerical value, when the said input frequency exceeds the said determination frequency. It is said.

請求項6の発明によると、前記計測値表示処理部は、前記入力周波数が前記判定周波数を越えたときに前記表示器における計測値の表示を、その最下桁が非表示となるように切り替える構成としている。   According to a sixth aspect of the present invention, the measurement value display processing unit switches the display of the measurement value on the display so that the lowest digit is not displayed when the input frequency exceeds the determination frequency. It is configured.

本発明によると、前記第1の変位補正値と第2の変位補正値は、0以上で、前記光学式ディジタルスケールの位相ピッチに対して予め決められたピッチ以下の範囲の値である。   According to the present invention, the first displacement correction value and the second displacement correction value are values in a range of 0 or more and not more than a predetermined pitch with respect to the phase pitch of the optical digital scale.

また、本発明によると、前記第1の変位補正値と第2の変位補正値は、0以上で、前記光学式ディジタルスケールの位相ピッチに対して1/4ピッチ以下の範囲の値である。   According to the present invention, the first displacement correction value and the second displacement correction value are values in a range of 0 or more and ¼ pitch or less with respect to the phase pitch of the optical digital scale.

請求項1の発明は、光学式ディジタルスケールを用いて測定対象物の計測を行うことにより、前記測定対象物の計測値をカウンタ計数値として取出し、この上で、位相・補正値算出部は、2つのディジタル信号(VAD,VBD)から信号波形の一周期内で8個の区間(♯1〜♯8)の位相情報と該位相情報に基づいた第1の変位補正値(X2)とを算出することができる。変位補正値算出部は、前記2つのディジタル信号(VAD,VBD)の信号値を絶対値(|VAD|,|VBD|)で比較して両信号値の比率を演算し、前記位相情報と前記絶対値(|VAD|,|VBD|)の比率(|VAD|/|VBD|)または比率(|VBD|/|VAD|)とに基づいて前記第1の変位補正値(X2)よりも微細な値(例えば、μmオーダに対して小数点以下となる最下桁を含んだ数値)である第2の変位補正値(X3)を算出することができる。そして、計測値表示処理部は、カウンタによる入力周波数が判定周波数を越えるか否かにより、前記カウンタの計数値に基づいた変位量(X1)に対して前記第1の変位補正値(X2),第2の変位補正値(X3)を選択的に加算し、その合計値に従って前記表示器における計測値の表示処理を行うことができる。前記第2の変位補正値(X3)は、例えばμm(ミクロン)オーダに対して小数点以下となる最下桁を含んだ補正値として、計測値表示処理部によりカウンタの計数値に基づいた前記変位量(X1)に対して加算処理され、測定対象物の計測値を補正することができる。 The invention of claim 1 takes out the measurement value of the measurement object as a counter count value by measuring the measurement object using an optical digital scale. On this, the phase / correction value calculation unit includes: From two digital signals (VAD, VBD) , phase information of eight sections ( # 1 to # 8) within one cycle of a signal waveform and a first displacement correction value (X2) based on the phase information are calculated. can do. The displacement correction value calculation unit compares the signal values of the two digital signals (VAD, VBD) with absolute values (| VAD |, | VBD |) to calculate the ratio of both signal values, and calculates the phase information and the Finer than the first displacement correction value (X2) based on the ratio (| VAD | / | VBD |) or the ratio (| VBD | / | VAD |) of absolute values (| VAD |, | VBD |) The second displacement correction value (X3) , which is a simple value (for example, a numerical value including the lowest digit that is below the decimal point with respect to the μm order), can be calculated. Then, the measurement value display processing unit determines whether the first displacement correction value (X2) , the displacement amount (X1) based on the count value of the counter depends on whether the input frequency by the counter exceeds the determination frequency or not. The second displacement correction value (X3) can be selectively added, and display processing of the measurement value on the display device can be performed according to the total value. The second displacement correction value (X3) is, for example, a correction value including the lowest digit that is less than the decimal point with respect to the μm (micron) order, and the displacement based on the count value of the counter by the measurement value display processing unit. An addition process is performed on the amount (X1), and the measurement value of the measurement object can be corrected.

請求項2の発明は、光学式ディジタルスケールを用いて測定対象物の計測を行うことにより、前記測定対象物の計測値をカウンタ計数値として取出し、この上で、位相・補正値算出部は、2つのディジタル信号(VAD,VBD)から信号波形の一周期内での位相情報と該位相情報に基づいた第1の変位補正値(X2)とを算出することができる。変位補正値算出部は、前記2つのディジタル信号(VAD,VBD)の信号値を比較演算し、前記第1の変位補正値(X2)よりも微細な値(例えば、μmオーダに対して小数点以下となる最下桁を含んだ数値)である第2の変位補正値(X3)を算出することができる。そして、計測値表示処理部は、カウンタによる入力周波数が零以上で判定周波数以下のときに、カウンタの計数値に基づいた変位量(X1)と第2の変位補正値(X3)との合計値(X1+X3)に従って表示器における計測値の表示処理を行うことができ、前記入力周波数が判定周波数を越えたときには、前記カウンタの計数値に基づいた変位量(X1)と前記第1の変位補正値(X2)との合計値(X1+X2)に従って前記表示器における計測値の表示処理を行うことができる。 The invention of claim 2 takes out the measurement value of the measurement object as a counter count value by measuring the measurement object using an optical digital scale. On this, the phase / correction value calculation unit includes: From the two digital signals (VAD, VBD), the phase information within one cycle of the signal waveform and the first displacement correction value (X2) based on the phase information can be calculated. The displacement correction value calculation unit compares the signal values of the two digital signals (VAD, VBD), and has a value finer than the first displacement correction value (X2) (for example, less than the decimal point with respect to the μm order). A second displacement correction value (X3) that is a numerical value including the lowest digit) can be calculated. Then, the measured value display processing unit is the sum of the displacement amount (X1) based on the count value of the counter and the second displacement correction value (X3) when the input frequency by the counter is not less than zero and not more than the determination frequency. According to (X1 + X3), display processing of the measured value on the display can be performed, and when the input frequency exceeds the determination frequency, the displacement amount (X1) based on the count value of the counter and the first displacement correction value According to the total value (X1 + X2) with (X2), the display process of the measured value in the said indicator can be performed .

請求項3の発明によると、位相・補正値算出部は、2つのディジタル信号(VAD,VBD)の信号値の大小比較を行うことにより信号波形の一周期内での位相情報該位相情報に基づい第1の変位補正値(X2)とを算出することができる。第1の変位補正値(X2)は、例えばμm(ミクロン)オーダに対して小数点以下となる最下桁を含まない補正値として、計測値表示処理部によりカウンタの計数値に基づいた前記変位量(X1)に対して加算処理され、測定対象物の計測値を補正することができる。 According to the third aspect of the present invention, the phase / correction value calculating section compares the signal values of the two digital signals (VAD, VBD) with the phase information in one cycle of the signal waveform and the phase information . based first displacement correction value (X2) and can be calculated. First displacement correction value (X2) is, for example, [mu] m (microns) the lowest digit as a decimal as that does not contain the correction value for the order, based on the count of the counter by the measurement value display unit the displacement An addition process is performed on the amount (X1) , and the measurement value of the measurement object can be corrected.

請求項4の発明によると、計測値表示処理部は、入力周波数が零以上で判定周波数以下のときに、カウンタの計数値に基づいた変位量(X1)と第2の変位補正値(X3)との合計値(X1+X3)に従って表示器における計測値の表示処理を行うことができ、前記入力周波数が判定周波数を越えたときには、前記カウンタの計数値に基づいた変位量(X1)と前記第1の変位補正値(X2)との合計値(X1+X2)に従って前記表示器における計測値の表示処理を行うことができる。 According to the invention of claim 4, the measured value display processing unit has the displacement amount (X1) and the second displacement correction value (X3) based on the count value of the counter when the input frequency is not less than zero and not more than the determination frequency. The measured value can be displayed on the display device in accordance with the total value (X1 + X3) and when the input frequency exceeds the determination frequency, the displacement (X1) based on the count value of the counter and the first In accordance with the total value (X1 + X2) with the displacement correction value (X2) , the measurement value display process on the display can be performed.

請求項5の発明によると、計測値表示処理部は、入力周波数が判定周波数を越えたときにカウンタの計数値に基づいた変位量(X1)と第1の変位補正値(X2)との合計値(X1+X2)に従って計測値の表示処理を行うことにより、表示器における計測値の表示を、例えばμm(ミクロン)オーダに対して小数点以下となる最下桁の表示を数値ではない表示に切り替えることができ、ディジタルスケールの使用者に対して前記小数点以下の計測値は不確定であることを知らせることができる。 According to the invention of claim 5, the measured value display processing unit adds the displacement amount (X1) based on the count value of the counter and the first displacement correction value (X2) when the input frequency exceeds the determination frequency. By displaying the measured value according to the value (X1 + X2) , the display of the measured value on the display unit is switched to the non-numeric display instead of the display of the last decimal place for the μm (micron) order, for example. It is possible to inform the user of the digital scale that the measured value after the decimal point is indeterminate.

請求項6の発明によると、例えば小数点以下となる最下桁を非表示となるように切り替えることにより、前記小数点以下の計測値が不確定であることを積極的に知らせることができる。   According to the sixth aspect of the present invention, it is possible to actively notify that the measured value after the decimal point is indeterminate, for example, by switching so that the lowermost digit below the decimal point is not displayed.

また、本発明は、第1の変位補正値(X2)と第2の変位補正値(X3)を光学式ディジタルスケールの位相ピッチに対して予め決められたピッチ以下で、0以上の範囲の値とすることができる。さらに、本発明では、第1の変位補正値(X2)と第2の変位補正値(X3)を0以上で、1/4ピッチ以下の範囲の値とすることができる。 In the present invention, the first displacement correction value (X2) and the second displacement correction value (X3) are not more than a predetermined pitch with respect to the phase pitch of the optical digital scale, and a value in the range of 0 or more. It can be. Furthermore, in the present invention, the first displacement correction value (X2) and the second displacement correction value (X3) can be set to values in the range of 0 or more and ¼ pitch or less.

本発明の実施の形態によるディジタルスケールの表示制御装置を示す全体構成図である。1 is an overall configuration diagram showing a digital scale display control apparatus according to an embodiment of the present invention; 図1のディジタルスケールに内蔵された信号発生装置を模式的に示す斜視図である。It is a perspective view which shows typically the signal generator built in the digital scale of FIG. 信号発生装置から出力される2つの検出信号を示す特性線図である。It is a characteristic diagram which shows two detection signals output from a signal generator. 表示制御装置の内部構成を示す制御ブロック図である。It is a control block diagram which shows the internal structure of a display control apparatus. 2つの検出信号に基づくディジタル信号VAD,VBD、2値信号LA ,LB の特性、第1の相対変位量X1、位相情報の区間♯1〜♯8および第2,第3の相対変位量X2,X3を示す特性線図である。Characteristics of the digital signals VAD and VBD based on the two detection signals, the characteristics of the binary signals LA and LB, the first relative displacement amount X1, the phase information sections # 1 to # 8, and the second and third relative displacement amounts X2, It is a characteristic diagram which shows X3. ディジタルスケールの表示制御装置による表示制御処理を示す流れ図である。It is a flowchart which shows the display control processing by the display control apparatus of a digital scale. 図6中の区間(位相情報)と相対変位量X2の算出処理を示す流れ図である。7 is a flowchart showing a calculation process of a section (phase information) and a relative displacement amount X2 in FIG. 図6中の周波数判定処理を示す流れ図である。It is a flowchart which shows the frequency determination process in FIG. 区間(位相情報)の判定条件と第2の相対変位量X2との関係を示すテーブル図である。It is a table figure which shows the relationship between the determination conditions of an area (phase information), and the 2nd relative displacement amount X2. 第3の相対変位量X3を算出する演算テーブルを示す図である。It is a figure which shows the calculation table which calculates 3rd relative displacement amount X3.

以下、本発明の実施の形態によるディジタルスケールの表示制御装置を添付図面の図1ないし図10に従って詳細に説明する。   A digital scale display control apparatus according to an embodiment of the present invention will be described in detail with reference to FIGS. 1 to 10 of the accompanying drawings.

図において、1は本実施の形態で採用した光学式ディジタルスケールで、該ディジタルスケール1は、その外殻を構成するスケール本体2と、該スケール本体2から軸方向(例えば、図1中の下向き)に突出した筒状のステム3と、該ステム3から軸方向下向きに突出して設けられた計測部としてのスピンドル4とを含んで構成されている。スピンドル4は、ステム3内に軸方向に変位可能に取付けられ、測定対象物100の形状に応じて図1中の矢示A方向に変位する。測定対象物100は、例えば図1中の矢示B方向に移動されるものである。   In the figure, reference numeral 1 denotes an optical digital scale employed in the present embodiment. The digital scale 1 includes a scale main body 2 constituting an outer shell thereof and an axial direction from the scale main body 2 (for example, downward in FIG. 1). ) And a spindle 4 as a measuring unit provided so as to protrude downward in the axial direction from the stem 3. The spindle 4 is attached to the stem 3 so as to be displaceable in the axial direction, and is displaced in the direction of arrow A in FIG. 1 according to the shape of the measurement object 100. The measurement object 100 is moved, for example, in the direction indicated by the arrow B in FIG.

ディジタルスケール1のスケール本体2内には、図2に模式的に示す信号発生装置5が設けられている。信号発生装置5は、スケール本体2内に固定して設けられる固定スリット6と、スケール本体2内に変位可能に設けられ該固定スリット6に対して相対移動可能に重合わせるように配置された可動スリット7と、一対の発光素子8A,8Bおよび一対の受光素子9A,9Bとを含んで構成されている。ここで、一対の発光素子8A,8Bと一対の受光素子9A,9Bとは、固定スリット6および可動スリット7を挟んで互いに対向する位置に配置されている。そして、一方の発光素子8Aから発射された光は、一方の受光素子9Aにより受光され、他方の発光素子8Bからの光は、他方の受光素子9Bによって受光される。   A signal generator 5 schematically shown in FIG. 2 is provided in the scale body 2 of the digital scale 1. The signal generator 5 is fixedly provided in the scale main body 2 and is movable so as to be displaceable in the scale main body 2 so as to be movable relative to the fixed slit 6. The slit 7 includes a pair of light emitting elements 8A and 8B and a pair of light receiving elements 9A and 9B. Here, the pair of light emitting elements 8A and 8B and the pair of light receiving elements 9A and 9B are arranged at positions facing each other with the fixed slit 6 and the movable slit 7 in between. The light emitted from one light emitting element 8A is received by one light receiving element 9A, and the light from the other light emitting element 8B is received by the other light receiving element 9B.

信号発生装置5の可動スリット7は、図1に示すスピンドル4が矢示A方向に変位するときに、これに追随して同方向(例えば、矢示A方向)へと変位する。このため、可動スリット7の各スリット位置は、固定スリット6の各スリット位置に対してスピンドル4の変位分だけ異なる位置となり、受光素子9A,9Bの受光量は、スピンドル4の変位量に対応して変化する。これにより、信号発生装置5は、受光素子9Aで受光した信号を、例えば図3に示す正弦波の検出信号VA として取出すことができ、受光素子9Bで受光した信号を、例えば図3に示す正弦波の検出信号VB として取出すことができる。   When the spindle 4 shown in FIG. 1 is displaced in the direction of arrow A, the movable slit 7 of the signal generating device 5 follows this and is displaced in the same direction (for example, the direction of arrow A). For this reason, each slit position of the movable slit 7 differs from each slit position of the fixed slit 6 by the displacement of the spindle 4, and the amount of light received by the light receiving elements 9 A and 9 B corresponds to the amount of displacement of the spindle 4. Change. Thereby, the signal generator 5 can extract the signal received by the light receiving element 9A as, for example, a sine wave detection signal VA shown in FIG. 3, and the signal received by the light receiving element 9B can be extracted, for example, as a sine signal shown in FIG. It can be taken out as a wave detection signal VB.

換言すると、信号発生装置5は、例えばガラス板からなる固定スリット6と可動スリット7との重合わせにより生じるモレア縞の濃淡を、フォトセル等からなる受光素子9A,9Bにより電圧値に変換して図3に示す正弦波の検出信号VA ,VB を出力することができる。この場合、測定対象物100の形状に応じてスピンドル4が軸方向に変位すると、モレア縞は可動スリット7の格子ピッチを1周期として明暗を繰り返し、検出信号VA ,VB は、下記の数1,2式のように計測部(即ち、スピンドル4)の変位に従って位相が1/4ピッチずれた正弦波信号として調整されている。   In other words, the signal generator 5 converts the density of the moire fringes generated by the overlapping of the fixed slit 6 made of a glass plate and the movable slit 7 into a voltage value by the light receiving elements 9A and 9B made of photocells or the like. The sinusoidal detection signals VA and VB shown in FIG. 3 can be output. In this case, when the spindle 4 is displaced in the axial direction according to the shape of the measurement object 100, the moire fringe repeats light and dark with the grating pitch of the movable slit 7 as one period, and the detection signals VA and VB are expressed by the following equation 1, As shown in Formula 2, the phase is adjusted as a sine wave signal whose phase is shifted by ¼ pitch according to the displacement of the measurement unit (ie, spindle 4).

Figure 0005903690
Figure 0005903690

Figure 0005903690
Figure 0005903690

ここで、数1,2式の検出信号VA ,VB は、モアレ縞の濃淡変化に相当する振幅Ka ,Kb と、光学式ディジタルスケール1の可動部分(即ち、スピンドル4)の変位量に相当する相対変位量Xsと、格子ピッチの長さLと、オフセット電圧Vo1, Vo2とを含んで求められるものである。検出信号VA ,VB は、互いに位相が1/4ピッチ(即ち、π/2)だけずれた正弦波信号となっている。図3の縦軸は、電圧Vであり、横軸は相対変位量Xsとなっている。   Here, the detection signals VA and VB in the equations (1) and (2) correspond to the amplitudes Ka and Kb corresponding to the change in shading of the moire fringes and the displacement of the movable part of the optical digital scale 1 (that is, the spindle 4). It is obtained including the relative displacement amount Xs, the length L of the grating pitch, and the offset voltages Vo1 and Vo2. The detection signals VA and VB are sine wave signals whose phases are shifted from each other by a quarter pitch (ie, π / 2). The vertical axis in FIG. 3 is the voltage V, and the horizontal axis is the relative displacement amount Xs.

本実施の形態では、格子ピッチの長さLを8μmに設定しており、検出信号VA ,VB は、図3中に示す特性線10A,10Bの如く、1ピッチが8μmとなる周期で正弦波の波形を繰り返すようになっている。図3中に示す特性線10A,10Bにおいて、正弦波中の縦じま模様をなす線分は、任意の相対変位量Xsに対する検出信号VA ,VB の信号値(電圧V)をそれぞれ示し、これらの信号値は電圧値として取出されるものである。   In the present embodiment, the length L of the grating pitch is set to 8 μm, and the detection signals VA and VB are sine waves with a period in which one pitch is 8 μm, as shown by the characteristic lines 10A and 10B in FIG. The waveform is repeated. In the characteristic lines 10A and 10B shown in FIG. 3, the line segments forming a vertical stripe pattern in the sine wave indicate the signal values (voltage V) of the detection signals VA and VB with respect to an arbitrary relative displacement amount Xs. The value is taken as a voltage value.

11は測定対象物100の計測値をディジタル表示する表示器で、該表示器11は、例えば液晶画面等を用いて構成されている。そして、表示器11は、光学式ディジタルスケール1を用いて測定対象物100の計測を行ったときに、スピンドル4の変位量に相当する相対変位量Xs(具体的には、後述の数11,12式による相対変位量Xr)を測定対象物100の計測値としてディジタル表示するものである。   Reference numeral 11 denotes a display that digitally displays the measurement value of the measurement object 100. The display 11 is configured using, for example, a liquid crystal screen. When the measurement object 100 is measured using the optical digital scale 1, the display 11 has a relative displacement amount Xs corresponding to the displacement amount of the spindle 4 (specifically, the following Equation 11, The relative displacement amount Xr) according to Equation 12 is digitally displayed as a measurement value of the measurement object 100.

12は本実施の形態で採用した表示制御装置を示し、該表示制御装置12は、図4に示すように、光学式ディジタルスケール1からの検出信号VA ,VB をフィルタ処理する2つのローパスフィルタ13A,13B(以下、LPF13A,13Bという)と、該LPF13A,13Bを通した検出信号VA ,VB を整形しカウンタ入力としての2値信号LA ,LB (図5中に示す特性線28A,28B参照)を出力する2つのヒステリシスコンパレータ14A,14Bと、マイクロコントローラ15とを含んで構成されている。   Reference numeral 12 denotes a display control apparatus employed in the present embodiment. The display control apparatus 12 has two low-pass filters 13A for filtering the detection signals VA and VB from the optical digital scale 1, as shown in FIG. , 13B (hereinafter referred to as LPFs 13A, 13B) and the detection signals VA, VB passing through the LPFs 13A, 13B, and binary signals LA, LB as counter inputs (see characteristic lines 28A, 28B shown in FIG. 5) Are configured to include two hysteresis comparators 14A and 14B and a microcontroller 15.

表示制御装置12は、図1に示すようにROM,RAM及び/又は不揮発性メモリ等からなる記憶部12Aを有している。この記憶部12Aには、後述の波形整形部20A,20B、位相・補正値算出部21、変位補正値算出部22および計測値表示処理部23におけるソフトウェア処理を行うためのプログラム、図6〜図8に示す流れ図に対応した処理プログラム、図9および図10に示すテーブルに対応したマップ等が更新可能に格納されている。   As shown in FIG. 1, the display control device 12 includes a storage unit 12A including a ROM, a RAM, and / or a nonvolatile memory. The storage unit 12A includes a program for performing software processing in waveform shaping units 20A and 20B, a phase / correction value calculation unit 21, a displacement correction value calculation unit 22, and a measurement value display processing unit 23, which will be described later, FIGS. A processing program corresponding to the flowchart shown in FIG. 8 and maps corresponding to the tables shown in FIGS. 9 and 10 are stored in an updatable manner.

マイクロコントローラ15は、後述のカウンタ16、相対変位量X1の演算部17、サンプルホールド回路18A,18B、A/D変換器19A,19B、波形整形部20A,20B、位相・補正値算出部21、変位補正値算出部22および計測値表示処理部23を含んで構成されている。   The microcontroller 15 includes a counter 16, which will be described later, a calculation unit 17 for a relative displacement amount X1, sample hold circuits 18A and 18B, A / D converters 19A and 19B, waveform shaping units 20A and 20B, a phase / correction value calculation unit 21, A displacement correction value calculation unit 22 and a measurement value display processing unit 23 are included.

位相差パルスカウント機能を有するカウンタ16は、ヒステリシスコンパレータ14A,14Bから入力される2値信号LA ,LB (図5の特性線28A,28B)に対し、夫々の信号波形の変化に基づいてカウントアップ動作とカウントダウン動作を行うことにより、測定対象物100の計測値をカウンタ計数値(以下、計数値Cnという)として出力する。   The counter 16 having a phase difference pulse count function counts up the binary signals LA and LB (characteristic lines 28A and 28B in FIG. 5) input from the hysteresis comparators 14A and 14B based on changes in the respective signal waveforms. By performing the operation and the countdown operation, the measurement value of the measurement object 100 is output as a counter count value (hereinafter referred to as a count value Cn).

この計数値Cnは、格子ピッチの長さLの1/4(例えば、L=8μmで、L/4=2μm)を最小単位とするカウント値となる。相対変位量X1の演算部17は、後述の数11,12式に示すように、測定対象物100の計測値(相対変位量Xr)の大枠を決める第1の相対変位量X1を、カウンタ16の計数値Cnに基づいて下記の数3式により算出する。   The count value Cn is a count value having a minimum unit of 1/4 of the length L of the lattice pitch (for example, L = 8 μm and L / 4 = 2 μm). The calculation unit 17 for the relative displacement amount X1 uses the counter 16 to calculate the first relative displacement amount X1 that determines the outline of the measurement value (relative displacement amount Xr) of the measurement object 100, as shown in the following equations 11 and 12. Based on the counted value Cn, the following equation 3 is used.

Figure 0005903690
Figure 0005903690

サンプルホールド回路18A,18BとA/D変換器19A,19Bとは、カウンタ16と並行(並列)して動作し、LPF13A,13Bを通した前記検出信号VA ,VB の波形をディジタル波形にA/D変換する。A/D変換器19A,19BによりA/D変換された2つのディジタル信号VAD,VBDは、下記の数4,5式で表される。ディジタル信号VAD,VBDは、前記数1,2式中の振幅Ka ,Kb をソフトウェア処理によりスケーリングし、オフセット電圧Vo1, Vo2を零とすることで下記のように記載することができる。振幅値Kdは、ソフトウェア処理によるものである。   The sample hold circuits 18A and 18B and the A / D converters 19A and 19B operate in parallel (in parallel) with the counter 16, and convert the waveforms of the detection signals VA and VB that have passed through the LPFs 13A and 13B into digital waveforms. D-convert. The two digital signals VAD and VBD A / D converted by the A / D converters 19A and 19B are expressed by the following equations (4) and (5). The digital signals VAD and VBD can be described as follows by scaling the amplitudes Ka and Kb in the equations (1) and (2) by software processing and setting the offset voltages Vo1 and Vo2 to zero. The amplitude value Kd is based on software processing.

Figure 0005903690
Figure 0005903690

Figure 0005903690
Figure 0005903690

波形整形部20A,20Bは、ディジタル信号VAD,VBDの中心電圧と振幅を一致させるように、ソフトウェア処理によって波形整形を行うものである。ソフトウェア処理によるスケーリングやオフセット除去の波形整形方法は、例えば特開2007−178170号公報等に記載のように既知の技術を用いて行うことができる。図1に示すように、光学式ディジタルスケール1を表示制御装置12に接続した状態で、個別に校正等を行うことによって補正の計数等を決定する方法もある。   The waveform shaping sections 20A and 20B perform waveform shaping by software processing so that the center voltages and amplitudes of the digital signals VAD and VBD are matched. A waveform shaping method for scaling and offset removal by software processing can be performed using a known technique as described in, for example, Japanese Patent Application Laid-Open No. 2007-178170. As shown in FIG. 1, there is also a method of determining the correction count and the like by performing calibration or the like individually in a state where the optical digital scale 1 is connected to the display control device 12.

図5中のディジタル信号VAD,VBDは、特性線29A,29Bに沿った正弦波曲線として示されているが、実際には縦じま模様(図3中の信号値参照)をなすディジタル信号の信号値として表されるものである。また、図5中の特性線30A,30Bは、ディジタル信号VAD,VBDの正負を反転させたディジタル信号−VAD,−VBDの特性を表している。   Although the digital signals VAD and VBD in FIG. 5 are shown as sinusoidal curves along the characteristic lines 29A and 29B, the signal values of the digital signals actually forming a vertical stripe pattern (see the signal values in FIG. 3). It is expressed as Further, characteristic lines 30A and 30B in FIG. 5 represent characteristics of digital signals -VAD and -VBD obtained by inverting the positive and negative of the digital signals VAD and VBD.

位相・補正値算出部21は、波形整形された2つのディジタル信号VAD,VBDの信号値の大小比較を行うことにより、前記信号波形の一周期(例えば、格子ピッチの長さL=8μm)内での位相情報としての8個の区間♯1〜♯8(図5、図9参照)と、それぞれの区間♯1〜♯8(位相情報)に基づいた第1の変位補正値である第2の相対変位量X2とを算出する。位相・補正値算出部21は、後述の図7に示す流れ図に沿って区間(位相情報)と第2の相対変位量X2とを算出するものである。   The phase / correction value calculation unit 21 compares the signal values of the two digital signals VAD and VBD that have undergone waveform shaping, so that they are within one period of the signal waveform (for example, the length L = 8 μm of the grating pitch). Eight sections # 1 to # 8 (see FIGS. 5 and 9) as phase information at the second and second displacement correction values based on the respective sections # 1 to # 8 (phase information). Relative displacement amount X2 is calculated. The phase / correction value calculation unit 21 calculates a section (phase information) and a second relative displacement amount X2 along a flowchart shown in FIG.

前記数1,2式による検出信号VA,VBは、真の相対変位量Xsに対して、格子ピッチの長さLを1周期とする波形であり、任意の相対変位量Xsは、整数値N(例えば、N=0,1,2,3,…)、格子ピッチの長さL(例えば、L=8μm)以下の相対変位量Xoに対して下記の数6式で表すことができる。   The detection signals VA and VB according to the equations (1) and (2) are waveforms having the grating pitch length L as one cycle with respect to the true relative displacement amount Xs, and the arbitrary relative displacement amount Xs is an integer value N. (For example, N = 0, 1, 2, 3,...) And a relative displacement amount Xo that is less than or equal to the lattice pitch length L (for example, L = 8 μm), can be expressed by the following equation (6)

Figure 0005903690
Figure 0005903690

後述の図7の流れ図に沿ってディジタル信号VAD,VBDの信号値(電圧値)を比較することにより、例えば図9に示すテーブル31のように、上記の相対変位量Xoが、格子ピッチの長さLを8分割した区間♯1〜♯8のいずれに含まれているかを、位相情報として求めることができる。位相・補正値算出部21は、位相情報(即ち、図9に示すテーブル31の区間♯1〜♯8)を特定した後、カウンタ16による相対変位量X1の検出精度以下の相対変位量X2を、それぞれの区間♯1〜♯8毎にテーブル31により算出する。   By comparing the signal values (voltage values) of the digital signals VAD and VBD according to the flowchart of FIG. 7 to be described later, the relative displacement amount Xo is, for example, as shown in the table 31 of FIG. Which of the sections # 1 to # 8 obtained by dividing the length L into eight can be obtained as phase information. The phase / correction value calculation unit 21 specifies phase information (that is, sections # 1 to # 8 of the table 31 shown in FIG. 9), and then calculates a relative displacement amount X2 equal to or lower than the detection accuracy of the relative displacement amount X1 by the counter 16. The table 31 is calculated for each section # 1 to # 8.

カウンタ16による計数値Cnは、格子ピッチの長さL/4を最小単位として増減するため、相対変位量X2を値0、または値L/8のいずれかとする。例えば、L=8μm、図9中の区間♯2「L/8≦Xo<2L/8」、区間♯4「3L/8≦Xo<4L/8」、区間♯6「5L/8≦Xo<6L/8」、区間♯8「7L/8≦Xo<L」の場合は、相対変位量X2が1μm(X2=L/8=1μm)となる。また、図9中の区間♯1「0≦Xo<L/8」、区間♯3「2L/8≦Xo<3L/8」、区間♯5「4L/8≦Xo<5L/8」、区間♯7「6L/8≦Xo<7L/8」の場合は、相対変位量X2が0μm(X2=0μm)となる。   The count value Cn by the counter 16 increases or decreases with the lattice pitch length L / 4 as a minimum unit, and therefore the relative displacement amount X2 is set to either the value 0 or the value L / 8. For example, L = 8 μm, section # 2 “L / 8 ≦ Xo <2L / 8” in FIG. 9, section # 4 “3L / 8 ≦ Xo <4L / 8”, section # 6 “5L / 8 ≦ Xo < In the case of “6L / 8” and section # 8 “7L / 8 ≦ Xo <L”, the relative displacement amount X2 is 1 μm (X2 = L / 8 = 1 μm). In FIG. 9, section # 1 “0 ≦ Xo <L / 8”, section # 3 “2L / 8 ≦ Xo <3L / 8”, section # 5 “4L / 8 ≦ Xo <5L / 8”, section In the case of # 7 “6L / 8 ≦ Xo <7L / 8”, the relative displacement amount X2 is 0 μm (X2 = 0 μm).

相対変位量X2の算出処理は、比較的簡単なアルゴリズムで実現できるため、100MHzクロックの組込みマイコンを使用して、1マイクロ秒(μsec)以内の処理が可能であり、通常の使用範囲である相対変位量の速度1m/secまで対応が可能である。図7中の処理(ステップ50)で算出エラーとなった場合、ディジタル信号VAD,VBDの信号値が入力のノイズにより前記数4,5式に従っていないので、この場合の相対変位量X2は前回計算した値を維持する。   Since the calculation process of the relative displacement amount X2 can be realized by a relatively simple algorithm, it can be processed within 1 microsecond (μsec) using an embedded microcomputer with a 100 MHz clock, and the relative use range is within the normal use range. It is possible to deal with displacement speeds up to 1 m / sec. When a calculation error occurs in the process (step 50) in FIG. 7, the signal values of the digital signals VAD and VBD do not follow the above equations 4 and 5 due to input noise, so the relative displacement amount X2 in this case is calculated the previous time. Keep the value.

第1の変位補正値としての第2の相対変位量X2は、カウンタ16による第1の相対変位量X1を後述の数12式による相対変位量Xrの如く合計して補正する補正値であり、例えばμm(ミクロン)オーダに対して小数点以下となる最下桁を含まない数値(相対変位量Xr)として、第1の相対変位量X1を補正するものである。本実施の形態では、相対変位量X2を値0、または値L/8のいずれかとしている。しかし、本発明はこれに限らず、第2の相対変位量X2は、光学式ディジタルスケール1の位相ピッチ、即ち格子ピッチの長さL(L=8μm)に対して予め決められたピッチ以下の範囲の値、好ましくは1/4ピッチ以下の範囲の値に設定されている。   The second relative displacement amount X2 as the first displacement correction value is a correction value that corrects the first relative displacement amount X1 by the counter 16 by summing up the relative displacement amount Xr by the equation 12 described later, For example, the first relative displacement amount X1 is corrected as a numerical value (relative displacement amount Xr) that does not include the lowest digit that is less than the decimal point with respect to the μm (micron) order. In the present embodiment, the relative displacement amount X2 is set to either value 0 or value L / 8. However, the present invention is not limited to this, and the second relative displacement amount X2 is equal to or less than a predetermined pitch with respect to the phase pitch of the optical digital scale 1, that is, the length L (L = 8 μm) of the grating pitch. It is set to a value within a range, preferably within a range of 1/4 pitch or less.

変位補正値算出部22は、前述の如く波形整形された2つのディジタル信号VAD,VBDの信号値(電圧値)を比較して両信号値の比率Raを下記の数7式または数8式の如く演算する。この上で、変位補正値算出部22は、信号値の比率Raと前記位相情報(即ち、図9に示すテーブル31の区間♯1〜♯8)とに基づいて図10に示す演算テーブル32により第2の相対変位量X2(第1の変位補正値)よりも微細な第2の変位補正値を第3の相対変位量X3として算出する。   The displacement correction value calculation unit 22 compares the signal values (voltage values) of the two digital signals VAD and VBD that have been waveform-shaped as described above, and determines the ratio Ra between the two signal values according to the following formula 7 or formula 8. Calculate as follows. Based on the signal value ratio Ra and the phase information (i.e., sections # 1 to # 8 of the table 31 shown in FIG. 9), the displacement correction value calculation unit 22 uses the calculation table 32 shown in FIG. A second displacement correction value finer than the second relative displacement amount X2 (first displacement correction value) is calculated as the third relative displacement amount X3.

Figure 0005903690
Figure 0005903690

Figure 0005903690
Figure 0005903690

但し、比率Raは、Ra≧1の数値で表されるものであり、ディジタル信号VADの絶対値がディジタル信号VBDの絶対値よりも大きい場合、即ち|VAD|>|VBD|の場合には、前記数7式によって比率Raを求める。また、ディジタル信号VBDの絶対値がディジタル信号VADの絶対値よりも大きい場合、即ち|VBD|>|VAD|の場合には、前記数8式によって比率Raを求めるものである。   However, the ratio Ra is expressed by a numerical value of Ra ≧ 1, and when the absolute value of the digital signal VAD is larger than the absolute value of the digital signal VBD, that is, when | VAD |> | VBD | The ratio Ra is obtained by the equation (7). Further, when the absolute value of the digital signal VBD is larger than the absolute value of the digital signal VAD, that is, in the case of | VBD |> | VAD |, the ratio Ra is obtained by the equation (8).

図10に示す演算テーブル32は、下記の数9式による演算を行うことにより予め作成している。カウンタ16の計数値Cnは、格子ピッチの長さL/4を最小単位として増減するため、第2の変位補正値としての相対変位量X3は、範囲(0≦X3<L/4)、即ち、0≦X3<2として値を決定する。また、計算を高速化するため、前述した位相情報(即ち、図9に示すテーブル31の区間)毎に値を決定する方式としている。   The calculation table 32 shown in FIG. 10 is created in advance by performing calculation according to the following equation (9). Since the count value Cn of the counter 16 increases or decreases with the length L / 4 of the lattice pitch as a minimum unit, the relative displacement amount X3 as the second displacement correction value is in a range (0 ≦ X3 <L / 4), that is, , 0 ≦ X3 <2 to determine the value. Further, in order to speed up the calculation, a value is determined for each phase information described above (that is, the section of the table 31 shown in FIG. 9).

Figure 0005903690
Figure 0005903690

図10に示す演算テーブル32は、比率Raの数値例を合計20個の数値(1.081△≦Ra≦25.45△)で示している。しかし、これらの数値例は、その一部を代表例として示したもので、例えば約80〜160個の数値(前記数7,8式の演算による数値)が比率Raの欄にそれぞれ書込まれ、これらの数値を含んで演算テーブル32は予め作成されている。   The calculation table 32 shown in FIG. 10 shows 20 numerical examples (1.081Δ ≦ Ra ≦ 25.45Δ) in total as numerical values of the ratio Ra. However, these numerical examples are only a part of the numerical examples. For example, about 80 to 160 numerical values (the numerical values obtained by the calculations of the equations 7 and 8) are written in the column of the ratio Ra. The calculation table 32 is created in advance including these numerical values.

第2の変位補正値としての第3の相対変位量X3は、カウンタ16による第1の相対変位量X1を後述の数11式による相対変位量Xrの如く合計して補正する補正値であり、例えばμm(ミクロン)オーダに対して小数点以下となる最下桁を含んだ数値(相対変位量Xr)として第1の相対変位量X1を補正するものである。第3の相対変位量X3は、光学式ディジタルスケール1の位相ピッチ、即ち格子ピッチの長さL(L=8μm)に対して予め決められたピッチ以下の範囲の値、好ましくは1/4ピッチ以下の範囲の値に設定されている。   The third relative displacement amount X3 as the second displacement correction value is a correction value that corrects by adding the first relative displacement amount X1 by the counter 16 as a relative displacement amount Xr by Equation 11 described later. For example, the first relative displacement amount X1 is corrected as a numerical value (relative displacement amount Xr) including the lowest digit that is below the decimal point with respect to the μm (micron) order. The third relative displacement amount X3 is a value in a range equal to or less than a predetermined pitch with respect to the phase pitch of the optical digital scale 1, that is, the length L (L = 8 μm) of the grating pitch, preferably ¼ pitch. The value is set in the following range.

計測値表示処理部23は、カウンタ16による単位時間当たりのカウンタ計数値から各検出信号(即ち、図5中の特性線28A,28Bによる2値信号LA ,LB )の入力周波数fを算出し、この入力周波数fの周波数範囲に基づいて表示器11における計測値の表示処理を行うものである。ここで、計測値表示処理部23は、図4に示すように、周波数判定部24、補正値選択部25、加算処理部26および表示処理部27を含んで構成されている。   The measured value display processing unit 23 calculates the input frequency f of each detection signal (that is, the binary signals LA and LB by the characteristic lines 28A and 28B in FIG. 5) from the counter count value per unit time by the counter 16. Based on the frequency range of the input frequency f, the display unit 11 performs display processing of the measured value. Here, the measured value display processing unit 23 includes a frequency determination unit 24, a correction value selection unit 25, an addition processing unit 26, and a display processing unit 27, as shown in FIG.

周波数判定部24は、後述の図8に示す周波数判定処理をサブルーチンとして行い、入力周波数fが予め決められた判定周波数fa(以下、判定値faという)を越えたときに、最下桁無効フラグFをF=1として出力する。光学式ディジタルスケール1を用いる場合、0.1μmのオーダで検出精度を確保できるようにするため、相対変位量X3は格子ピッチの長さL(L=8μm)に対し、L/80を最小単位とするよう設計する。相対変位量X3の算出は、例えば100MHzクロックの組込みマイコンを使用して、10μsec以内の処理となるため、下記の数10式で示す処理速度(0.01m/sec)以下の変化量まで応答が可能である。   The frequency determination unit 24 performs a frequency determination process shown in FIG. 8 described later as a subroutine, and when the input frequency f exceeds a predetermined determination frequency fa (hereinafter referred to as a determination value fa), the lowest digit invalid flag F is output as F = 1. When the optical digital scale 1 is used, in order to ensure detection accuracy on the order of 0.1 μm, the relative displacement amount X3 is the minimum unit of L / 80 with respect to the lattice pitch length L (L = 8 μm). Design to The calculation of the relative displacement amount X3 is, for example, processing within 10 μsec using a built-in microcomputer with a 100 MHz clock. Is possible.

Figure 0005903690
Figure 0005903690

周波数判定部24は、例えば0.1秒(sec)毎にカウンタ16の計数値Cnを取得し、前,後の計数値Cnの差分が一例として5000カウント/secを越えるときに、相対変位量X3の算出値が無効であると判定し、最下桁(0.1μmの桁)無効フラグFを「F=1」として出力する。例えば、測定対象物100の形状が大きく変わり、ディジタルスケール1のスピンドル4が急激に大きく変位するような場合に、入力周波数fは判定値faを越えることがある。   For example, the frequency determination unit 24 acquires the count value Cn of the counter 16 every 0.1 second (sec), and the relative displacement amount when the difference between the previous and subsequent count values Cn exceeds 5000 counts / sec, for example. It is determined that the calculated value of X3 is invalid, and the lowest digit (0.1 μm digit) invalid flag F is output as “F = 1”. For example, when the shape of the measuring object 100 changes greatly and the spindle 4 of the digital scale 1 is greatly displaced greatly, the input frequency f may exceed the determination value fa.

本実施の形態によると、カウンタ16は、2μm毎に計数値Cnが歩進され、一周期が8μmに設定されているため、入力周波数fが判定値fa(一例としては、fa=5000×2/8=1250Hz)を越えたときに、最下桁無効フラグFを「F=1」として出力する。入力周波数fが零以上で判定値fa以下のときには、相対変位量X3の算出値が有効であると判定し、最下桁無効フラグFを「F=0」として出力する。   According to the present embodiment, the counter 16 is incremented by the count value Cn every 2 μm and one period is set to 8 μm, so that the input frequency f is determined by the determination value fa (for example, fa = 5000 × 2 / 8 = 1250 Hz), the lowest digit invalid flag F is output as “F = 1”. When the input frequency f is greater than or equal to zero and less than or equal to the determination value fa, it is determined that the calculated value of the relative displacement amount X3 is valid, and the lowest digit invalid flag F is output as “F = 0”.

補正値選択部25は、周波数判定部24から出力される最下桁無効フラグFが「0」または「1」であるかにより、第1,第2の変位補正値としての相対変位量X2,X3のいずれかを補正値として選択する。即ち、最下桁無効フラグFがF=0のときには、相対変位量X3を補正値として選択し、F=1のときには、相対変位量X2を補正値として選択する。このとき、加算処理部26は、補正値選択部25の選択処理に従って下記の数11,12式による加算処理を行い、相対変位量X1,X2,X3から表示器11でディジタル表示する計測値を相対変位量Xrとして算出する。   The correction value selection unit 25 determines the relative displacement amount X2 as the first and second displacement correction values depending on whether the lowest digit invalid flag F output from the frequency determination unit 24 is “0” or “1”. One of X3 is selected as a correction value. That is, when the lowest digit invalid flag F is F = 0, the relative displacement amount X3 is selected as a correction value, and when F = 1, the relative displacement amount X2 is selected as a correction value. At this time, the addition processing unit 26 performs addition processing according to the following formulas 11 and 12 according to the selection processing of the correction value selection unit 25, and the measured value to be digitally displayed on the display 11 from the relative displacement amounts X1, X2, and X3. The relative displacement amount Xr is calculated.

Figure 0005903690
Figure 0005903690

Figure 0005903690
Figure 0005903690

ここで、相対変位量Xrは、前述した数4,5式中の真の相対変位量Xsに対して表示器11でディジタル表示可能な数値を表し、真の相対変位量Xsに対する近似値(Xs≒Xr)となって、測定対象物100の計測値を表示処理部27を介して表示器11によりディジタル表示させる。表示処理部27は、加算処理部26の処理結果に従って相対変位量Xrを表示器11によりディジタル表示させるものである。このように、計測値表示処理部23は、カウンタ16による単位時間当たりのカウンタ計数値から各検出信号(図5中の2値信号LA ,LB )の入力周波数fを算出し、この入力周波数fの周波数範囲に基づいて表示器11における計測値の表示処理を行う。   Here, the relative displacement amount Xr represents a numerical value that can be digitally displayed on the display 11 with respect to the true relative displacement amount Xs in the above-described equations 4 and 5, and an approximate value (Xs) with respect to the true relative displacement amount Xs. ≈Xr), and the measured value of the measuring object 100 is digitally displayed on the display 11 via the display processing unit 27. The display processing unit 27 causes the display 11 to digitally display the relative displacement amount Xr according to the processing result of the addition processing unit 26. Thus, the measured value display processing unit 23 calculates the input frequency f of each detection signal (the binary signals LA and LB in FIG. 5) from the counter count value per unit time by the counter 16, and this input frequency f Based on the frequency range, the display unit 11 performs display processing of the measured value.

本実施の形態による光学式ディジタルスケール1の表示制御装置12は、上述の如き構成を有するもので、次に、光学式ディジタルスケール1を用いて測定対象物100の計測を行う場合の制御動作について説明する。   The display control device 12 of the optical digital scale 1 according to the present embodiment has the above-described configuration. Next, a control operation when measuring the measuring object 100 using the optical digital scale 1 will be described. explain.

まず、光学式ディジタルスケール1を用いて測定対象物100の計測を行う場合に、予め零点調節を行い、真の相対変位量Xsが零(Xs=0)の状態では、数4式によるディジタル信号VADの信号値(電圧)が零となり、数5式によるディジタル信号VBDの信号値(電圧)が最大値となるように調整すると共に、カウンタ16の計数値Cnは、Cn=0として設定される。   First, when the measurement object 100 is measured using the optical digital scale 1, the zero point adjustment is performed in advance, and when the true relative displacement amount Xs is zero (Xs = 0), the digital signal according to Equation 4 is used. Adjustment is made so that the signal value (voltage) of VAD becomes zero and the signal value (voltage) of the digital signal VBD according to Equation 5 becomes the maximum value, and the count value Cn of the counter 16 is set as Cn = 0. .

次に、図1中の矢示B方向に測定対象物100を移動させると、これに追従してディジタルスケール1のスピンドル4が矢示A方向に変位する。これにより、ディジタルスケール1の信号発生装置5からは、例えば図3に示す特性線10A,10Bのように、正弦波の検出信号VA ,VB が出力される。この場合、検出信号VA ,VB は、前述した数1,2式のように計測部(即ち、スピンドル4)の変位に従って位相が1/4ピッチずれた正弦波信号として調整されている。   Next, when the measuring object 100 is moved in the direction of arrow B in FIG. 1, the spindle 4 of the digital scale 1 is displaced in the direction of arrow A following this. Accordingly, the signal generator 5 of the digital scale 1 outputs sine wave detection signals VA and VB, for example, as indicated by characteristic lines 10A and 10B shown in FIG. In this case, the detection signals VA and VB are adjusted as sine wave signals whose phases are shifted by ¼ pitch in accordance with the displacement of the measuring section (ie, the spindle 4) as in the equations (1) and (2).

図4に示す表示制御装置12は、LPF13A,13Bを通した検出信号VA ,VB を2つのヒステリシスコンパレータ14A,14Bにより整形して2値信号LA ,LB を図5に示す特性線28A,28Bのように発生させ、これをカウンタ16に出力する。カウンタ16は、2値信号LA ,LB の信号波形の変化に基づいた計数値Cnを出力し、次の演算部17によりカウンタ16の計数値Cnに基づいた第1の相対変位量X1を、前記数3式の如く、X1=2Cnとして算出させる。   The display control device 12 shown in FIG. 4 shapes the detection signals VA and VB passed through the LPFs 13A and 13B by the two hysteresis comparators 14A and 14B, and converts the binary signals LA and LB to the characteristic lines 28A and 28B shown in FIG. This is generated and output to the counter 16. The counter 16 outputs a count value Cn based on the change in the signal waveform of the binary signals LA and LB, and the first relative displacement amount X1 based on the count value Cn of the counter 16 is calculated by the next arithmetic unit 17 as described above. As shown in Equation 3, X1 = 2Cn is calculated.

ここで、光学式ディジタルスケール1の計測値を表示する表示制御装置12の表示制御処理について、図6〜図8を参照して説明する。   Here, the display control processing of the display control device 12 that displays the measurement value of the optical digital scale 1 will be described with reference to FIGS.

図6の処理動作がスタートすると、ステップ1でカウンタ16の計数値Cnを読込み、次のステップ2では、第1の相対変位量X1を数3式の如く、X1=2Cnとして算出する。次のステップ3では、前記数4,5式によるディジタル信号VAD,VBDを読込む。そして、次のステップ4では、前記位相・補正値算出部21による区間(位相情報)と第2の相対変位量X2との算出処理を、後述の図7に示す流れ図に沿って実行する。   When the processing operation of FIG. 6 starts, the count value Cn of the counter 16 is read in step 1, and in the next step 2, the first relative displacement amount X1 is calculated as X1 = 2Cn as shown in Equation 3. In the next step 3, the digital signals VAD and VBD according to the equations 4 and 5 are read. Then, in the next step 4, the calculation process of the section (phase information) and the second relative displacement amount X2 by the phase / correction value calculator 21 is executed according to the flowchart shown in FIG.

次のステップ5では、計測値表示処理部23の周波数判定部24による判定処理を後述の図8に示す流れ図に沿って実行する。次のステップ6では、最下桁無効フラグFが、F=0であるか否かを判定し、「YES」と判定したときには、最下桁(0.1μmのオーダ)が有効な表示となるように演算速度、または演算時間を確保することができるので、次のステップ7に移る。   In the next step 5, the determination process by the frequency determination unit 24 of the measurement value display processing unit 23 is executed according to a flowchart shown in FIG. In the next step 6, it is determined whether or not the lowest digit invalid flag F is F = 0, and when it is determined to be “YES”, the lowest digit (order of 0.1 μm) is displayed effectively. Thus, since the calculation speed or the calculation time can be ensured, the process proceeds to the next step 7.

そして、ステップ7では、前記ディジタル信号VAD,VBDの絶対値を比較して判定処理を行い、「YES」と判定したときには、ディジタル信号VADの絶対値がディジタル信号VBDの絶対値よりも大きい(|VAD|>|VBD|)場合であるから、次のステップ8で前記数7式による比率Raを求める。また、ステップ7で「NO」と判定したときには、ディジタル信号VBDの絶対値がディジタル信号VADの絶対値よりも大きい(|VBD|>|VAD|)場合であるから、次のステップ9で前記数8式による比率Raを求める。   In step 7, the absolute values of the digital signals VAD and VBD are compared and a determination process is performed. If “YES” is determined, the absolute value of the digital signal VAD is larger than the absolute value of the digital signal VBD (| VAD |> | VBD |), the ratio Ra according to Equation 7 is obtained in the next step 8. If “NO” is determined in step 7, the absolute value of the digital signal VBD is larger than the absolute value of the digital signal VAD (| VBD |> | VAD |). The ratio Ra according to Equation 8 is obtained.

次のステップ10では、図10に示す演算テーブル32を用いて、比率Raと区間(位相情報)とから第2の変位補正値としての相対変位量X3を算出する。ここで、第3の相対変位量X3は、前述した位相情報(即ち、図9に示すテーブル31の区間♯1〜♯8)毎に値を決定するため、その演算に要する時間を短縮し、計算を高速化することができる。   In the next step 10, the relative displacement amount X3 as the second displacement correction value is calculated from the ratio Ra and the section (phase information) using the calculation table 32 shown in FIG. Here, since the value of the third relative displacement amount X3 is determined for each of the phase information (that is, the sections # 1 to # 8 of the table 31 shown in FIG. 9), the time required for the calculation is shortened. Calculation can be speeded up.

次のステップ11では、表示器11でディジタル表示可能な計測値としての相対変位量Xrを、前記数11式によるXr=X1+X3として算出する。次のステップ12では、このときの相対変位量Xrを計測値として表示器11によりディジタル表示させ、次のステップ13でリターンする。   In the next step 11, a relative displacement amount Xr as a measured value that can be digitally displayed on the display 11 is calculated as Xr = X1 + X3 according to the equation (11). In the next step 12, the relative displacement amount Xr at this time is digitally displayed on the display 11 as a measured value, and the process returns in the next step 13.

一方、ステップ6で「NO」と判定したときには、最下桁無効フラグFが、F=1となって、相対変位量X3の算出値が無効であると判定でき、最下桁(0.1μmのオーダ)の表示精度を確保できない場合である。そこで、この場合は、次のステップ14で、表示器11によりディジタル表示可能な計測値としての相対変位量Xrを、前記数12式によるXr=X1+X2として算出する。次のステップ12では、このときの相対変位量Xrを計測値として表示器11によりディジタル表示させ、次のステップ13でリターンする。   On the other hand, when “NO” is determined in Step 6, the lowest digit invalid flag F becomes F = 1, it can be determined that the calculated value of the relative displacement amount X3 is invalid, and the lowest digit (0.1 μm Display accuracy). Therefore, in this case, in the next step 14, the relative displacement amount Xr as a measurement value that can be digitally displayed by the display 11 is calculated as Xr = X1 + X2 according to the equation (12). In the next step 12, the relative displacement amount Xr at this time is digitally displayed on the display 11 as a measured value, and the process returns in the next step 13.

次に、図7を参照して、前記位相・補正値算出部21による区間(位相情報)と第2の相対変位量X2との算出処理について説明する。なお、以下の説明においては、ディジタル信号VAD,VBDの信号値を、簡略化して信号VAD,VBDとして記載するものとする。   Next, the calculation process of the section (phase information) and the second relative displacement amount X2 by the phase / correction value calculator 21 will be described with reference to FIG. In the following description, the signal values of the digital signals VAD and VBD are simplified and described as signals VAD and VBD.

まず、ステップ21では、前記ステップ3で読込んだ信号VADが正の値(VAD>0)であるか否かを判定し、「YES」と判定したときには、次のステップ22で信号VBDが正の値(VBD>0)であるか否かを判定する。そして、ステップ22で「YES」と判定したときには、次のステップ23で信号VADが信号VBDよりも小さい(VAD<VBD)か否かを判定する。   First, in step 21, it is determined whether or not the signal VAD read in step 3 is a positive value (VAD> 0). If “YES” is determined, the signal VBD is positive in the next step 22. It is determined whether or not (VBD> 0). If “YES” is determined in the step 22, it is determined in a next step 23 whether or not the signal VAD is smaller than the signal VBD (VAD <VBD).

そして、ステップ23で「YES」と判定したときには、次のステップ24で位相情報(即ち、図5、図9に示す区間♯1)を「0≦Xo<L/8」として特定し、次のステップ25では、第1の変位補正値としての第2の相対変位量X2を、X2=0μmとして算出する。その後はステップ26でリターンする。   If “YES” is determined in the step 23, the phase information (that is, the section # 1 shown in FIGS. 5 and 9) is specified as “0 ≦ Xo <L / 8” in the next step 24, and the next In step 25, the second relative displacement amount X2 as the first displacement correction value is calculated as X2 = 0 μm. Thereafter, the process returns at step 26.

また、ステップ23で「NO」と判定したときには、信号VADが信号VBD以上(VAD≧VBD)の場合である。そこで、次のステップ27では、位相情報(即ち、図5、図9に示す区間♯2)を「L/8≦Xo<2L/8」として特定し、次のステップ28では、第2の相対変位量X2を、X2=1μmとして算出する。そして、その後はステップ26でリターンする。   Further, when “NO” is determined in step 23, the signal VAD is equal to or higher than the signal VBD (VAD ≧ VBD). Therefore, in the next step 27, the phase information (that is, the section # 2 shown in FIGS. 5 and 9) is specified as “L / 8 ≦ Xo <2L / 8”, and in the next step 28, the second relative The displacement amount X2 is calculated as X2 = 1 μm. Thereafter, the process returns at step 26.

一方、ステップ22で「NO」と判定したときには、次のステップ29で信号VADが信号−VBDよりも大きい(VAD>−VBD)か否かを判定する。そして、ステップ29で「YES」と判定したときには、次のステップ30で位相情報(即ち、図5、図9に示す区間♯3)を「2L/8≦Xo<3L/8」として特定し、次のステップ31では、第2の相対変位量X2を、X2=0μmとして算出する。そして、その後はステップ26でリターンする。   On the other hand, if “NO” is determined in the step 22, it is determined in a next step 29 whether or not the signal VAD is larger than the signal −VBD (VAD> −VBD). If “YES” is determined in the step 29, the phase information (that is, the section # 3 shown in FIGS. 5 and 9) is specified as “2L / 8 ≦ Xo <3L / 8” in the next step 30, In the next step 31, the second relative displacement amount X2 is calculated as X2 = 0 μm. Thereafter, the process returns at step 26.

また、ステップ29で「NO」と判定したときには、信号VADが信号−VBD以下(VAD≦−VBD)の場合である。そこで、次のステップ32では、信号VBDが負の値(VBD<0)であるか否かを判定する。そして、ステップ32で「YES」と判定したときには、次のステップ33で位相情報(即ち、図5、図9に示す区間♯4)を「3L/8≦Xo<4L/8」として特定し、次のステップ34では、第2の相対変位量X2を、X2=1μmとして算出する。そして、その後はステップ26でリターンする。   Further, when “NO” is determined in step 29, the signal VAD is equal to or lower than the signal −VBD (VAD ≦ −VBD). Therefore, in the next step 32, it is determined whether or not the signal VBD is a negative value (VBD <0). If “YES” is determined in the step 32, the phase information (that is, the section # 4 shown in FIGS. 5 and 9) is specified as “3L / 8 ≦ Xo <4L / 8” in the next step 33, In the next step 34, the second relative displacement amount X2 is calculated as X2 = 1 μm. Thereafter, the process returns at step 26.

一方、ステップ32で「NO」と判定したときには、信号VBDが零または正の値(VBD≧0)であり、該当区間がないので、この場合は、後述のステップ50に移って算出エラーとして処理する。即ち、このような場合は、信号VAD,VBDが入力のノイズ等の影響により前記数4,5式に従っていない場合であり、この場合の相対変位量X2は前回計算した値を維持する。   On the other hand, if “NO” is determined in step 32, the signal VBD is zero or a positive value (VBD ≧ 0) and there is no corresponding section. In this case, the process proceeds to step 50 described later and is processed as a calculation error. To do. That is, in this case, the signals VAD and VBD are not in accordance with the equations (4) and (5) due to the influence of input noise and the like, and the relative displacement amount X2 in this case maintains the previously calculated value.

一方、ステップ21で「NO」と判定したときには、次のステップ35で信号VADが負の値(VAD<0)であるか否かを判定する。そして、ステップ35で「YES」と判定したときには、次のステップ36で信号VBDが負の値(VBD<0)であるか否かを判定する。そして、ステップ36で「YES」と判定したときには、次のステップ37で信号VADが信号VBDよりも大きい(VAD>VBD)か否かを判定する。そして、ステップ37で「YES」と判定したときには、次のステップ38で位相情報(即ち、図5、図9に示す区間♯5)を「4L/8≦Xo<5L/8」として特定し、次のステップ39では、第2の相対変位量X2を、X2=0μmとして算出する。そして、その後はステップ26でリターンする。   On the other hand, if “NO” is determined in the step 21, it is determined in a next step 35 whether or not the signal VAD is a negative value (VAD <0). If “YES” is determined in the step 35, it is determined in a next step 36 whether or not the signal VBD is a negative value (VBD <0). If “YES” is determined in the step 36, it is determined in a next step 37 whether or not the signal VAD is larger than the signal VBD (VAD> VBD). If “YES” is determined in the step 37, the phase information (that is, the section # 5 shown in FIGS. 5 and 9) is specified as “4L / 8 ≦ Xo <5L / 8” in the next step 38, In the next step 39, the second relative displacement amount X2 is calculated as X2 = 0 μm. Thereafter, the process returns at step 26.

一方、ステップ37で「NO」と判定したときには、信号VADが信号VBD以下(VAD≦VBD)となっているので、次のステップ40で位相情報(即ち、図5、図9に示す区間♯6)を「5L/8≦Xo<6L/8」として特定し、次のステップ41では、第2の相対変位量X2を、X2=1μmとして算出する。そして、その後はステップ26でリターンする。   On the other hand, if “NO” is determined in the step 37, the signal VAD is equal to or lower than the signal VBD (VAD ≦ VBD), so that the phase information (that is, the section # 6 shown in FIGS. 5 and 9) is determined in the next step 40. ) Is specified as “5L / 8 ≦ Xo <6L / 8”, and in the next step 41, the second relative displacement amount X2 is calculated as X2 = 1 μm. Thereafter, the process returns at step 26.

一方、ステップ36で「NO」と判定したときには、信号VBDが零または正の値(VBD≧0)であるので、次のステップ42では、信号−VADが信号VBDよりも大きい(−VAD>VBD)か否かを判定する。そして、ステップ42で「YES」と判定したときには、次のステップ43で位相情報(即ち、図5、図9に示す区間♯7)を「6L/8≦Xo<7L/8」として特定し、次のステップ39では、第2の相対変位量X2を、X2=0μmとして算出する。そして、その後はステップ26でリターンする。   On the other hand, when “NO” is determined in step 36, the signal VBD is zero or a positive value (VBD ≧ 0). Therefore, in the next step 42, the signal −VAD is larger than the signal VBD (−VAD> VBD). ) Or not. If “YES” is determined in the step 42, the phase information (that is, the section # 7 shown in FIGS. 5 and 9) is specified as “6L / 8 ≦ Xo <7L / 8” in the next step 43, In the next step 39, the second relative displacement amount X2 is calculated as X2 = 0 μm. Thereafter, the process returns at step 26.

一方、ステップ42で「NO」と判定したときには、信号−VADが信号VBD以下(−VAD≦VBD)となっているので、次のステップ45で信号VBDが正の値(VBD>0)であるか否かを判定する。そして、ステップ45で「YES」と判定したときには、次のステップ46で位相情報(即ち、図5、図9に示す区間♯8)を「7L/8≦Xo<L」として特定し、次のステップ47では、第2の相対変位量X2を、X2=1μmとして算出する。そして、その後はステップ26でリターンする。   On the other hand, when “NO” is determined in step 42, since the signal −VAD is equal to or lower than the signal VBD (−VAD ≦ VBD), the signal VBD is a positive value (VBD> 0) in the next step 45. It is determined whether or not. If “YES” is determined in the step 45, the phase information (that is, the section # 8 shown in FIGS. 5 and 9) is specified as “7L / 8 ≦ Xo <L” in the next step 46, and the next In step 47, the second relative displacement amount X2 is calculated as X2 = 1 μm. Thereafter, the process returns at step 26.

また、ステップ45で「NO」と判定したときには、信号VBDが零(VBD=0)であり、この場合も該当区間がないので、ステップ50に移って算出エラーとして処理し、第2の相対変位量X2は前回計算した値を維持する。そして、その後はステップ26でリターンする。   If “NO” is determined in step 45, the signal VBD is zero (VBD = 0). In this case, too, there is no corresponding section. Therefore, the process proceeds to step 50 to process as a calculation error, and the second relative displacement is detected. The quantity X2 maintains the previously calculated value. Thereafter, the process returns at step 26.

一方、ステップ35で「NO」と判定したときには、信号VADが零(VAD=0)の場合であり、次のステップ48に移って信号VBDが正の値(VBD>0)であるか否かを判定する。そして、ステップ48で「YES」と判定したときには、前記ステップ24に移って位相情報(即ち、図5、図9に示す区間♯1)を「0≦Xo<L/8」として特定し、次のステップ25で第2の相対変位量X2を、X2=0μmとして算出する。   On the other hand, when “NO” is determined in step 35, the signal VAD is zero (VAD = 0), and the process proceeds to the next step 48 to determine whether or not the signal VBD is a positive value (VBD> 0). Determine. If “YES” is determined in the step 48, the process proceeds to the step 24 to specify the phase information (that is, the section # 1 shown in FIGS. 5 and 9) as “0 ≦ Xo <L / 8”. In step 25, the second relative displacement amount X2 is calculated as X2 = 0 μm.

また、ステップ48で「NO」と判定したときには、信号VBDが零または負の値(VBD≦0)であり、次のステップ49で信号VBDが負の値(VBD<0)であるか否かを判定する。そして、ステップ49で「YES」と判定したときには、前記ステップ38に移って位相情報(即ち、図5、図9に示す区間♯5)を「4L/8≦Xo<5L/8」として特定し、次のステップ39で第2の相対変位量X2を、X2=0μmとして算出する。   If “NO” is determined in step 48, the signal VBD is zero or a negative value (VBD ≦ 0), and whether or not the signal VBD is a negative value (VBD <0) in the next step 49. Determine. If “YES” is determined in the step 49, the process proceeds to the step 38 to specify the phase information (that is, the section # 5 shown in FIGS. 5 and 9) as “4L / 8 ≦ Xo <5L / 8”. In the next step 39, the second relative displacement amount X2 is calculated as X2 = 0 μm.

また、ステップ49で「NO」と判定したときには、信号VBDが零(VBD=0)であり、この場合も該当区間がないので、ステップ50に移って算出エラーとして処理し、第2の相対変位量X2は前回計算した値を維持する。そして、その後はステップ26でリターンする。   If “NO” is determined in step 49, the signal VBD is zero (VBD = 0). In this case as well, since there is no corresponding section, the process proceeds to step 50 to process as a calculation error, and the second relative displacement. The quantity X2 maintains the previously calculated value. Thereafter, the process returns at step 26.

次に、図8を参照して、計測値表示処理部23の周波数判定部24による判定処理について説明する。   Next, with reference to FIG. 8, the determination process by the frequency determination part 24 of the measured value display process part 23 is demonstrated.

まず、周波数判定処理がスタートすると、ステップ51で入力周波数fを読込む。この入力周波数fは、カウンタ16による単位時間当たりのカウンタ計数値(即ち、図5中の特性線28A,28Bによる2値信号LA ,LB のカウント値)により算出される。次のステップ52では、入力周波数fが前記判定値faに対して、0≦f≦faであるか否かを判定する。   First, when the frequency determination process starts, the input frequency f is read in step 51. This input frequency f is calculated by the counter count value per unit time by the counter 16 (that is, the count values of the binary signals LA and LB by the characteristic lines 28A and 28B in FIG. 5). In the next step 52, it is determined whether or not the input frequency f is 0 ≦ f ≦ fa with respect to the determination value fa.

ステップ52で「YES」と判定したときには、次のステップ53で最下桁無効フラグFを「F=0」として出力し、その後はステップ54でリターンする。一方、ステップ52で「NO」と判定したときには、例えば測定対象物100の形状が大きく変わって、ディジタルスケール1のスピンドル4が急激に変位することにより、入力周波数fが判定値faを越えているので、次のステップ55に移って最下桁無効フラグFを「F=1」に切換える。   If "YES" is determined in the step 52, the least significant digit invalid flag F is output as "F = 0" in the next step 53, and thereafter, the process returns in the step 54. On the other hand, when “NO” is determined in step 52, for example, the shape of the measurement object 100 is greatly changed, and the spindle 4 of the digital scale 1 is suddenly displaced, so that the input frequency f exceeds the determination value fa. Therefore, the process proceeds to the next step 55, and the lowest digit invalid flag F is switched to “F = 1”.

かくして、本実施の形態によれば、最下桁無効フラグFが「F=0」のときには、表示器11でディジタル表示可能な計測値としての相対変位量Xrを、前記数11式によるXr=X1+X3として算出することができる。一方、最下桁無効フラグFが「F=1」に切換わったときには、相対変位量X3の算出値が無効となる可能性が高く、最下桁(0.1μmのオーダ)の表示精度を確保できない場合がある。そこで、このような場合には、表示器11によりディジタル表示可能な計測値としての相対変位量Xrを、前記数12式によるXr=X1+X2として算出することができる。   Thus, according to the present embodiment, when the lowest digit invalid flag F is “F = 0”, the relative displacement amount Xr as a measured value that can be digitally displayed on the display 11 is expressed as Xr = It can be calculated as X1 + X3. On the other hand, when the lowest digit invalid flag F is switched to “F = 1”, there is a high possibility that the calculated value of the relative displacement amount X3 becomes invalid, and the display accuracy of the lowest digit (on the order of 0.1 μm) is improved. There are cases where it cannot be secured. Therefore, in such a case, the relative displacement amount Xr as a measured value that can be digitally displayed by the display 11 can be calculated as Xr = X1 + X2 according to the equation (12).

次に、本実施の形態による表示制御装置12の表示制御処理について、測定対象物100の計測値を一例として示した場合を説明する。   Next, the display control process of the display control device 12 according to the present embodiment will be described in the case where the measurement value of the measurement object 100 is shown as an example.

例えば、図5中に示す計測値は、相対変位量Xsが「11.33…μm」である場合を示し、測定対象物100の計測値は、図5中に実線で示す縦方向の直線33の位置となっている。この場合、2値信号LA ,LB の立上がり、立下がりによりカウンタ16は、計数値Cn=5となり、この計数値Cnは、2.0μm毎に歩進されるため、前記数3式による第1の相対変位量X1は、X1=10μmとして算出される。   For example, the measured value shown in FIG. 5 indicates the case where the relative displacement amount Xs is “11.33... Μm”, and the measured value of the measurement object 100 is the vertical straight line 33 indicated by the solid line in FIG. It has become the position. In this case, the counter 16 becomes the count value Cn = 5 due to the rise and fall of the binary signals LA and LB, and this count value Cn is incremented every 2.0 μm. Relative displacement amount X1 is calculated as X1 = 10 μm.

また、測定対象物100の計測値は、図5中の直線33の位置となり、ディジタル信号VAD,VBDの信号値は、VAD>0,VBD<0,VAD≦−VBDであることから、これらの条件を満たす位相情報の区間は「♯4」として示され、図9中では区間「3/8L≦Xo<4/8L」となっている。これにより、図9に示すテーブル31からも、第1の変位補正値である第2の相対変位量X2は、X2=1μmとして算出される。   Further, the measurement value of the measurement object 100 is at the position of the straight line 33 in FIG. 5, and the signal values of the digital signals VAD and VBD are VAD> 0, VBD <0, VAD ≦ −VBD. The section of the phase information that satisfies the condition is shown as “# 4”, and the section “3 / 8L ≦ Xo <4 / 8L” is satisfied in FIG. Thereby, also from the table 31 shown in FIG. 9, the second relative displacement amount X2 which is the first displacement correction value is calculated as X2 = 1 μm.

測定対象物100の計測値(図5中の直線33)の位置では、前記数4,5式によるディジタル信号VAD,VBDの信号値は、振幅値Kdを、Kd=511とすると、VAD=255、VBD=−442となる。そして、前記数8式により比率Raは、|VBD|÷|VAD|=1.7333として算出される。また、位相情報の区間は「♯4」として示され、図10中では区間は「3/8L≦Xo<4/8L」となっている。   At the position of the measurement value of the measurement object 100 (straight line 33 in FIG. 5), the signal values of the digital signals VAD and VBD according to the equations 4 and 5 are VAD = 255, where the amplitude value Kd is Kd = 511. VBD = −442. Then, the ratio Ra is calculated as | VBD | ÷ | VAD | = 1.7333 by the equation (8). Further, the section of the phase information is indicated as “# 4”, and the section is “3 / 8L ≦ Xo <4 / 8L” in FIG.

これにより、図10に示す演算テーブル32から、比率Raが「1.7333」で、区間が「3/8L≦Xo<4/8L」となる参照値を、「1.33」として求め、この参照値「1.33」から第3の相対変位量X3を、X3=1.3μmとして算出することができる。そして、最下桁無効フラグFが、F=0のときには、表示器11でディジタル表示可能な計測値としての相対変位量Xrを、前記数11式によるXr=X1+X3、即ちXr=11.3μmとして算出することができる。そして、この場合の表示器11によるディジタル表示は、前記相対変位量Xrによる「11.3μm」、または「0.0113mm」として表示することができる。   Accordingly, a reference value with a ratio Ra of “1.7333” and a section of “3 / 8L ≦ Xo <4 / 8L” is obtained as “1.33” from the calculation table 32 shown in FIG. From the reference value “1.33”, the third relative displacement amount X3 can be calculated as X3 = 1.3 μm. When the lowest digit invalid flag F is F = 0, the relative displacement amount Xr as a measured value that can be digitally displayed on the display 11 is set to Xr = X1 + X3, that is, Xr = 11.3 μm according to the equation (11). Can be calculated. In this case, the digital display by the display 11 can be displayed as “11.3 μm” or “0.0113 mm” based on the relative displacement amount Xr.

一方、最下桁無効フラグFが「F=1」に切換わるような場合には、表示器11によりディジタル表示可能な計測値としての相対変位量Xrを、前記数12式によるXr=X1+X2、即ち、Xr=11.0μmとして算出することができる。そして、この場合の表示器11によるディジタル表示は、前記相対変位量Xrによる「11. μm」、または「0.011 mm」として、最下桁が無効であるアンダーバー表示とすることができる。 On the other hand, when the lowest digit invalid flag F is switched to “F = 1”, the relative displacement amount Xr as a measured value that can be digitally displayed by the display 11 is expressed as Xr = X1 + X2, That is, it can be calculated as Xr = 11.0 μm. In this case, the digital display by the display 11 is “11. μm ”or“ 0.011 ” “mm” can be an underbar display in which the lowest digit is invalid.

また、本実施の形態では、例えば入力信号である検出信号VA ,VB の振幅が低下した場合でも、例えば12ビットのA/D変換器19A,19Bを使用することで、十分な精度の取り込みを行うことができ、プログラムによる補間を用いることで、複数の入力点から位相の計算を行うことができるため、経年変化などによる光学式ディジタルスケール1の検出信号VA ,VB の振幅変化に強いという特徴がある。   In the present embodiment, for example, even when the amplitudes of the detection signals VA and VB which are input signals are reduced, for example, by using the 12-bit A / D converters 19A and 19B, sufficient accuracy can be captured. Since the phase can be calculated from a plurality of input points by using interpolation by a program, it is resistant to changes in the amplitudes of the detection signals VA and VB of the optical digital scale 1 due to changes over time. There is.

かくして、本実施の形態によれば、光学式ディジタルスケール1を用いて測定対象物100の計測を行うことにより、測定対象物100の計測値をカウンタ計数値として取出し、前記数3式による第1の相対変位量X1を算出することができる。また、位相・補正値算出部21は、2つのディジタル信号VAD,VBDの信号値の大小比較を行うことにより前記信号波形の一周期内での位相情報(区間♯1〜♯8)と、該区間♯1〜♯8に基づいた第1の変位補正値(即ち、第2の相対変位量X2)とを算出することができる。   Thus, according to the present embodiment, by measuring the measurement object 100 using the optical digital scale 1, the measurement value of the measurement object 100 is taken out as the counter count value, and the first equation (3) is used. Relative displacement amount X1 can be calculated. The phase / correction value calculation unit 21 compares the signal values of the two digital signals VAD and VBD to obtain phase information (sections # 1 to # 8) within one cycle of the signal waveform, The first displacement correction value (that is, the second relative displacement amount X2) based on the sections # 1 to # 8 can be calculated.

変位補正値算出部22は、2つのディジタル信号VAD,VBDの信号値を比較して両信号値の比率Raを演算し、当該信号値の比率Raと前記位相情報(区間♯1〜♯8)とに基づいて前記第1の変位補正値よりも微細で、例えば0.1μmのオーダで検出精度を確保できるようにした第2の変位補正値(即ち、第3の相対変位量X3)を算出することができる。   The displacement correction value calculator 22 compares the signal values of the two digital signals VAD and VBD to calculate the ratio Ra of both signal values, and the ratio Ra of the signal value and the phase information (sections # 1 to # 8). Based on the above, the second displacement correction value (that is, the third relative displacement amount X3) that is finer than the first displacement correction value and that can ensure the detection accuracy, for example, on the order of 0.1 μm is calculated. can do.

換言すると、第3の相対変位量X3は、0.1μmのオーダで検出精度を確保できるようにするため、格子ピッチの長さL(L=8μm)に対し、L/80を最小単位とするように設定されている。そして、計測値表示処理部23は、カウンタ16による入力周波数fが判定周波数(即ち、判定値fa)を越えるか否かにより、カウンタ16の計数値Cn(即ち、第1の相対変位量X1)に対して第2,第3の相対変位量X2,X3を選択的に加算し、その合計値に従って表示器11における計測値の表示処理を行うことができる。   In other words, the third relative displacement amount X3 has L / 80 as a minimum unit with respect to the length L (L = 8 μm) of the grating pitch in order to ensure detection accuracy on the order of 0.1 μm. Is set to Then, the measured value display processing unit 23 counts the counter value Cn (that is, the first relative displacement amount X1) depending on whether or not the input frequency f by the counter 16 exceeds the determination frequency (that is, the determination value fa). The second and third relative displacement amounts X2 and X3 can be selectively added, and the display processing of the measured value on the display 11 can be performed according to the total value.

この場合、計測値表示処理部23は、入力周波数fが零以上で判定値fa以下のときに、カウンタ16による第1の相対変位量X1と第3の相対変位量X3との合計値に従って、ディジタル表示可能な計測値としての相対変位量Xr(Xr=X1+X3)を表示器11により表示することができる。一方、入力周波数fが判定値faを越えたときには、カウンタ16による第1の相対変位量X1と第2の相対変位量X2との合計値に従って、計測値としての相対変位量Xr(Xr=X1+X2)を表示器11により表示することができる。   In this case, when the input frequency f is greater than or equal to zero and less than or equal to the determination value fa, the measured value display processing unit 23 follows the total value of the first relative displacement amount X1 and the third relative displacement amount X3 by the counter 16. A relative displacement amount Xr (Xr = X1 + X3) as a measured value that can be digitally displayed can be displayed on the display 11. On the other hand, when the input frequency f exceeds the determination value fa, the relative displacement amount Xr (Xr = X1 + X2) as a measured value is determined according to the total value of the first relative displacement amount X1 and the second relative displacement amount X2 by the counter 16. ) Can be displayed on the display 11.

このように、計測値表示処理部23は、入力周波数fが判定値faを越えたときにカウンタ16の計数値Cnによる第1の相対変位量X1と第2の相対変位量X2(第1の変位補正値)との合計値に従って計測値の表示処理を行うことにより、表示器11における計測値の表示を、例えばμm(ミクロン)オーダに対して小数点以下となる最下桁の表示を数値ではない表示、一例としては最下桁をアンダーバー表示に切り替えることができ、ディジタルスケール1の使用者に対して小数点以下の計測値は不確定であることを知らせることができる。   As described above, the measured value display processing unit 23, when the input frequency f exceeds the determination value fa, the first relative displacement amount X1 and the second relative displacement amount X2 (the first relative displacement amount X2 based on the count value Cn of the counter 16). By displaying the measured value according to the total value with the displacement correction value), the display of the measured value on the display 11 is, for example, the numerical value indicating the lowest digit that is below the decimal point for the μm (micron) order. No display, for example, the lowest digit can be switched to an underbar display, and the user of the digital scale 1 can be notified that the measured value after the decimal point is indeterminate.

なお、前記実施の形態では、入力周波数fが所定の判定値faを越えるようなときに、表示器11における計測値の表示のうち、その最下桁をアンダーバー表示にする場合を例に挙げて説明した。しかし、本発明はこれに限らず、例えばμm(ミクロン)オーダに対して小数点以下となる最下桁を非表示となるように切り替えてよく、数値以外の表示を行う構成としてもよい。これにより、ディジタルスケール1の使用者に対して小数点以下の計測値が不確定であることを積極的に知らせることができる。   In the embodiment, when the input frequency f exceeds the predetermined determination value fa, the case where the lowest digit of the display of the measurement value on the display 11 is displayed as an underbar is taken as an example. explained. However, the present invention is not limited to this. For example, the least significant digit below the decimal point may be switched so as not to be displayed on the order of μm (microns), and a configuration other than the numerical value may be displayed. Thereby, the user of the digital scale 1 can be positively notified that the measured value after the decimal point is indefinite.

また、判定周波数としての判定値faを、例えば1250Hzとした場合を例に挙げて説明したが、判定周波数はこれに限るものではなく、あくまでも変位補正値算出部22の演算処理速度等に応じて、判定周波数を適宜に変更する構成としてもよいものである。   In addition, the case where the determination value fa as the determination frequency is 1250 Hz, for example, has been described as an example, but the determination frequency is not limited to this, and depends on the calculation processing speed of the displacement correction value calculation unit 22 to the last. The determination frequency may be changed as appropriate.

一方、前記実施の形態では、位相・補正値算出部21により8個の区間♯1〜♯8(図5、図9参照)を位相情報として設定する場合を例に挙げて説明した。しかし、本発明はこれに限らず、例えばディジタル信号VAD,VBDの信号波形の一周期(格子ピッチの長さL=aμm:但し,aは正の整数)に対し、a個の区間を位相情報として設定する構成としてもよい。   On the other hand, in the above embodiment, the case where the eight sections # 1 to # 8 (see FIGS. 5 and 9) are set as the phase information by the phase / correction value calculation unit 21 has been described as an example. However, the present invention is not limited to this, and for example, a section of phase information is provided for a period of one period of the signal waveform of the digital signals VAD and VBD (grating pitch length L = a μm, where a is a positive integer). It is good also as a structure set as.

また、前記実施の形態では、変位補正値算出部22により算出される相対変位量X3の演算ないし検出精度を、変化速度0.01m/sec以下の場合に「格子ピッチの長さLの1/80」と構成した場合を例に挙げて説明した。しかし、本発明はこれに限られるものではなく、例えばCPUの処理速度に応じて図9のテーブルの数値精度を向上したり、より高い変化速度に追従できる構成としてもよいものである。   In the above-described embodiment, the calculation or detection accuracy of the relative displacement amount X3 calculated by the displacement correction value calculation unit 22 is expressed as “1/1 of the grid pitch length L when the change speed is 0.01 m / sec or less. The case where it is configured as “80” has been described as an example. However, the present invention is not limited to this. For example, the numerical accuracy of the table shown in FIG. 9 may be improved according to the processing speed of the CPU, or the higher change speed may be followed.

また、前記実施の形態では、予め計算しておいた演算テーブル32を用いて変位補正値算出部22により相対変位量X3を算出する場合を例に挙げて説明した。しかし、本発明はこれに限られるものではなく、例えばハードウェア乗除算器により、三角関数の級数展開法等の手段を用いて第2の変位補正値としての相対変位量X3を算出する方法を採用してもよいものである。   In the above embodiment, the case where the relative displacement amount X3 is calculated by the displacement correction value calculation unit 22 using the calculation table 32 calculated in advance has been described as an example. However, the present invention is not limited to this. For example, a method of calculating the relative displacement amount X3 as the second displacement correction value using a means such as a series expansion method of a trigonometric function by a hardware multiplier / divider. It may be adopted.

さらに、前記実施の形態では、位相・補正値算出部21により、信号波形の一周期内での位相情報と該位相情報に基づいた第1の変位補正値(第2の相対変位量X2)とを算出する場合を例に挙げて説明した。しかし、本発明はこれに限らず、例えば第1の変位補正値(第2の相対変位量X2)を算出することなく、位相情報のみを算出する位相算出部を、位相・補正値算出部21に代えて設ける構成とすることもできる。この場合には、変位補正値算出部22により算出した変位補正値(第3の相対変位量X3)を、前記数11式のようにカウンタ16による第1の相対変位量X1と加算して相対変位量Xrを算出し、表示処理部(即ち、測定値表示処理部)は相対変位量Xrを表示器によりディジタル表示させる構成としてもよい。   Furthermore, in the above-described embodiment, the phase / correction value calculation unit 21 uses the phase information within one cycle of the signal waveform and the first displacement correction value (second relative displacement amount X2) based on the phase information. The case of calculating is described as an example. However, the present invention is not limited to this. For example, the phase calculation unit that calculates only the phase information without calculating the first displacement correction value (second relative displacement amount X2) is replaced with the phase / correction value calculation unit 21. It can also be set as the structure provided instead of. In this case, the displacement correction value (third relative displacement amount X3) calculated by the displacement correction value calculation unit 22 is added to the first relative displacement amount X1 by the counter 16 as shown in the equation 11 to obtain a relative value. The displacement amount Xr may be calculated, and the display processing unit (that is, the measurement value display processing unit) may be configured to digitally display the relative displacement amount Xr with a display.

さらにまた、前記実施の形態では、光学式ディジタルスケール1を用いた測定対象物の計測作業場所に近い位置に、目視が可能な表示器11を配置する場合を例に挙げて説明した。しかし、本発明はこれに限られるものでなく、例えば計測結果のデータを有線または無線通信により外部の遠隔地に設けられたパソコン(情報端末)等に送信する構成とすることもできる。一例として、計測器で一般的に用いられているBCDコードを使った場合は、「0」〜「9」の範囲の数字のみ用いることができる。このため、測定結果に、最下桁無効フラグFを示す数値を追加する構成としても良い。例えば、測定結果を表す相対変位量Xr=0.0113mmに対して、最下桁無効フラグFが「F=1」の場合には、BCDコード「“00”−“11”−“01”」を送信し、最下桁無効フラグFが「F=0」の場合には、BCDコード「“00”−“11”−“30”」を送信する。これにより、光学式ディジタルスケールによる測定対象物の計測結果を、遠隔操作によって情報端末等の表示器で表示処理することができる。   Furthermore, in the above-described embodiment, the case has been described in which the visually observable indicator 11 is disposed at a position close to the measurement work place of the measurement object using the optical digital scale 1. However, the present invention is not limited to this. For example, the measurement result data may be transmitted to a personal computer (information terminal) or the like provided at an external remote location by wired or wireless communication. As an example, when a BCD code generally used in a measuring instrument is used, only numbers in the range of “0” to “9” can be used. For this reason, it is good also as a structure which adds the numerical value which shows the lowest digit invalid flag F to a measurement result. For example, when the lowest digit invalid flag F is “F = 1” with respect to the relative displacement amount Xr = 0.113 mm representing the measurement result, the BCD code “00”-“11”-“01” ”. When the lowest digit invalid flag F is “F = 0”, the BCD code “00”-“11”-“30” ”is transmitted. Thereby, the measurement result of the measuring object by the optical digital scale can be displayed on a display device such as an information terminal by remote control.

1 ディジタルスケール
4 スピンドル(計測部)
5 信号発生装置
10A,10B 特性線(検出信号の特性線)
11 表示器
12 表示制御装置
16 カウンタ
19A,19B A/D変換器
20A,20B 波形整形部
21 位相・補正値算出部
22 変位補正値算出部
23 計測値表示処理部
28A,28B 特性線(2値信号の特性線)
29A,29B 特性線(ディジタル信号の特性線)
31 テーブル
32 演算テーブル
100 測定対象物
Cn 計数値
f 入力周波数
fa 判定値(判定周波数)
L 格子ピッチの長さ(位相ピッチ)
VA ,VB 検出信号
VAD,VBD ディジタル信号
X1 第1の相対変位量
X2 第2の相対変位量(第1の変位補正値)
X3 第3の相対変位量(第2の変位補正値)
Xr 相対変位量(合計値)
Xs 相対変位量(真の相対変位量)
♯1〜♯8 区間(位相情報)
1 Digital scale 4 Spindle (measuring unit)
5 Signal generator 10A, 10B Characteristic line (Detection signal characteristic line)
DESCRIPTION OF SYMBOLS 11 Display 12 Display control apparatus 16 Counter 19A, 19B A / D converter 20A, 20B Waveform shaping part 21 Phase / correction value calculation part 22 Displacement correction value calculation part 23 Measurement value display process part 28A, 28B Characteristic line (2 values) Signal characteristic line)
29A, 29B Characteristic line (Digital signal characteristic line)
31 Table 32 Calculation table 100 Measurement object Cn Count value f Input frequency fa Judgment value (judgment frequency)
L Lattice pitch length (phase pitch)
VA, VB detection signal VAD, VBD digital signal X1 first relative displacement amount X2 second relative displacement amount (first displacement correction value)
X3 Third relative displacement amount (second displacement correction value)
Xr Relative displacement (total value)
Xs Relative displacement (true relative displacement)
# 1 to # 8 section (phase information)

Claims (6)

変位可能な計測部を有した光学式ディジタルスケールを用いて測定対象物の計測を行い、前記計測部の変位量を前記測定対象物の計測値として表示器によりディジタル表示するディジタルスケールの表示制御装置において、
前記計測部の変位に従って位相が1/4ピッチずれた2つの検出信号を発生させる信号発生装置と、
該信号発生装置からの各検出信号に対し夫々の信号波形の変化に基づいてカウントアップ動作とカウントダウン動作を行うことにより前記測定対象物の計測値をカウンタ計数値として出力するカウンタと、
前記カウンタと並列して動作し、前記各検出信号の波形をディジタル波形にA/D変換するA/D変換器と、
A/D変換された2つのディジタル信号(VAD,VBD)の中心電圧と振幅を一致させるように波形整形を行う波形整形部と、
波形整形された前記2つのディジタル信号(VAD,VBD)から前記信号波形の一周期内で8個の区間(♯1〜♯8)の位相情報と該位相情報に基づいた第1の変位補正値(X2)とを算出する位相・補正値算出部と、
波形整形された前記2つのディジタル信号(VAD,VBD)の信号値を絶対値(|VAD|,|VBD|)で比較して両信号値の比率を演算し、前記絶対値(|VAD|,|VBD|)が(|VAD|≧|VBD|)のときには、前記位相情報と前記絶対値(|VAD|,|VBD|)の比率(|VAD|/|VBD|)とに基づいて前記第1の変位補正値(X2)よりも微細な第2の変位補正値(X3)を算出し、前記絶対値(|VAD|,|VBD|)が(|VAD|<|VBD|)のときには、前記位相情報と前記絶対値(|VAD|,|VBD|)の比率(|VBD|/|VAD|)とに基づいて前記第1の変位補正値(X2)よりも微細な第2の変位補正値(X3)を算出する変位補正値算出部と、
前記カウンタによる単位時間当たりのカウンタ計数値から前記各検出信号の入力周波数を算出し、この入力周波数の周波数範囲に基づいて前記表示器における計測値の表示処理を行う計測値表示処理部とを備え、
該計測値表示処理部は、前記入力周波数が予め決められた判定周波数を越えるか否かにより、前記カウンタの計数値に基づいた変位量(X1)に対して前記第1の変位補正値(X2),第2の変位補正値(X3)を選択的に加算し、その合計値に従って前記表示器における計測値の表示処理を行う構成としたことを特徴とするディジタルスケールの表示制御装置。
A display controller for a digital scale that measures an object to be measured using an optical digital scale having a displaceable measuring unit and digitally displays a displacement amount of the measuring unit as a measured value of the measuring object by a display In
A signal generator for generating two detection signals whose phases are shifted by 1/4 pitch according to the displacement of the measurement unit;
A counter that outputs a measurement value of the measurement object as a counter count value by performing a count-up operation and a count-down operation based on a change in each signal waveform for each detection signal from the signal generator;
An A / D converter that operates in parallel with the counter and A / D converts the waveform of each detection signal into a digital waveform;
A waveform shaping unit that performs waveform shaping so that the center voltage and amplitude of two digital signals (VAD, VBD) subjected to A / D conversion are matched;
Phase information of eight sections ( # 1 to # 8) in one cycle of the signal waveform from the two digital signals (VAD, VBD) that have undergone waveform shaping, and a first displacement correction value based on the phase information A phase / correction value calculation unit for calculating (X2) ;
The signal values of the two digital signals (VAD, VBD) that have undergone waveform shaping are compared with absolute values (| VAD |, | VBD |) to calculate the ratio of both signal values, and the absolute values (| VAD |, When | VBD |) is (| VAD | ≧ | VBD |), it is determined based on the phase information and the ratio (| VAD | / | VBD |) of the absolute values (| VAD |, | VBD |) . The second displacement correction value (X3) finer than the displacement correction value (X2) of 1 is calculated, and when the absolute values (| VAD |, | VBD |) are (| VAD | <| VBD |), A second displacement correction that is finer than the first displacement correction value (X2) based on the phase information and the ratio (| VBD | / | VAD |) of the absolute values (| VAD |, | VBD |). A displacement correction value calculation unit for calculating a value (X3) ;
A measurement value display processing unit that calculates an input frequency of each detection signal from a counter count value per unit time by the counter and performs display processing of the measurement value in the display unit based on a frequency range of the input frequency. ,
The measurement value display processing unit determines the first displacement correction value (X2 ) with respect to the displacement amount (X1) based on the count value of the counter depending on whether or not the input frequency exceeds a predetermined determination frequency. ) , A display controller for a digital scale, wherein the second displacement correction value (X3) is selectively added, and the display unit displays the measured value according to the total value.
変位可能な計測部を有した光学式ディジタルスケールを用いて測定対象物の計測を行い、前記計測部の変位量を前記測定対象物の計測値として表示器によりディジタル表示するディジタルスケールの表示制御装置において、A display controller for a digital scale that measures an object to be measured using an optical digital scale having a displaceable measuring unit and digitally displays a displacement amount of the measuring unit as a measured value of the measuring object by a display In
前記計測部の変位に従って位相が1/4ピッチずれた2つの検出信号を発生させる信号発生装置と、A signal generator for generating two detection signals whose phases are shifted by 1/4 pitch according to the displacement of the measurement unit;
該信号発生装置からの各検出信号に対し夫々の信号波形の変化に基づいてカウントアップ動作とカウントダウン動作を行うことにより前記測定対象物の計測値をカウンタ計数値として出力するカウンタと、A counter that outputs a measurement value of the measurement object as a counter count value by performing a count-up operation and a count-down operation based on a change in each signal waveform for each detection signal from the signal generator;
前記カウンタと並列して動作し、前記各検出信号の波形をディジタル波形にA/D変換するA/D変換器と、An A / D converter that operates in parallel with the counter and A / D converts the waveform of each detection signal into a digital waveform;
A/D変換された2つのディジタル信号(VAD,VBD)の中心電圧と振幅を一致させるように波形整形を行う波形整形部と、A waveform shaping unit that performs waveform shaping so that the center voltage and amplitude of two digital signals (VAD, VBD) subjected to A / D conversion are matched;
波形整形された前記2つのディジタル信号(VAD,VBD)から前記信号波形の一周期内での位相情報と該位相情報に基づいた第1の変位補正値(X2)とを算出する位相・補正値算出部と、Phase / correction value for calculating phase information within one cycle of the signal waveform and a first displacement correction value (X2) based on the phase information from the two digital signals (VAD, VBD) that have undergone waveform shaping A calculation unit;
波形整形された前記2つのディジタル信号(VAD,VBD)の信号値を比較演算し、前記第1の変位補正値(X2)よりも微細な第2の変位補正値(X3)を算出する変位補正値算出部と、Displacement correction for calculating a second displacement correction value (X3) finer than the first displacement correction value (X2) by comparing the signal values of the two digital signals (VAD, VBD) that have undergone waveform shaping. A value calculator,
前記カウンタによる単位時間当たりのカウンタ計数値から前記各検出信号の入力周波数を算出し、この入力周波数の周波数範囲に基づいて前記表示器における計測値の表示処理を行う計測値表示処理部とを備え、A measurement value display processing unit that calculates an input frequency of each detection signal from a counter count value per unit time by the counter and performs display processing of the measurement value in the display unit based on a frequency range of the input frequency. ,
該計測値表示処理部は、前記入力周波数が零以上で、予め決められた判定周波数以下のときには、前記変位補正値算出部で前記第2の変位補正値(X3)を算出することにより、前記カウンタの計数値に基づいた変位量(X1)に対し前記第2の変位補正値(X3)を加算した合計値(X1+X3)に従って前記表示器における計測値の表示処理を行い、The measurement value display processing unit calculates the second displacement correction value (X3) by the displacement correction value calculation unit when the input frequency is not less than zero and not more than a predetermined determination frequency. Display the measured value in the display according to the total value (X1 + X3) obtained by adding the second displacement correction value (X3) to the displacement amount (X1) based on the count value of the counter;
前記入力周波数が前記判定周波数を越えたときには、前記変位補正値算出部で前記第2の変位補正値(X3)の算出を行うことなく、前記カウンタの計数値に基づいた前記変位量(X1)に対し前記第1の変位補正値(X2)を加算した合計値(X1+X2)に従って前記表示器における計測値の表示処理を行う構成としたことを特徴とするディジタルスケールの表示制御装置。  When the input frequency exceeds the determination frequency, the displacement amount (X1) based on the count value of the counter is not calculated by the displacement correction value calculation unit without calculating the second displacement correction value (X3). The digital scale display control apparatus is characterized in that display processing of the measured value in the display device is performed according to a total value (X1 + X2) obtained by adding the first displacement correction value (X2) to the display.
前記位相・補正値算出部は、波形整形された前記2つのディジタル信号(VAD,VBD)の信号値の大小比較を行うことにより前記位相情報と前記第1の変位補正値(X2)とを算出する構成としてなる請求項1または2に記載のディジタルスケールの表示制御装置。 The phase / correction value calculation unit calculates the phase information and the first displacement correction value (X2) by comparing the signal values of the two digital signals (VAD, VBD) whose waveforms have been shaped. 3. The display control apparatus for a digital scale according to claim 1, wherein the display control apparatus is configured as described above. 前記計測値表示処理部は、前記入力周波数が零以上で、前記判定周波数以下のときに、前記カウンタの計数値に基づいた変位量(X1)と前記第2の変位補正値(X3)との合計値(X1+X3)に従って前記表示器における計測値の表示処理を行い、前記入力周波数が前記判定周波数を越えたときには、前記カウンタの計数値に基づいた変位量(X1)と前記第1の変位補正値(X2)との合計値(X1+X2)に従って前記表示器における計測値の表示処理を行う構成としてなる請求項1に記載のディジタルスケールの表示制御装置。 The measured value display processing unit calculates a displacement amount (X1) based on the count value of the counter and the second displacement correction value (X3) when the input frequency is greater than or equal to zero and less than or equal to the determination frequency. When the input value exceeds the determination frequency, the displacement value (X1) based on the count value of the counter and the first displacement correction are performed when the measured value is displayed on the display device according to the total value (X1 + X3). The display control apparatus for a digital scale according to claim 1, wherein display processing of the measured value in the display device is performed according to a total value (X1 + X2) with the value (X2) . 前記計測値表示処理部は、前記入力周波数が前記判定周波数を越えたときに前記表示器における計測値の表示を、その最下桁が数値ではない表示に切り替える構成としてなる請求項1,2,3または4に記載のディジタルスケールの表示制御装置。   The measurement value display processing unit is configured to switch the display of the measurement value on the display to a display whose lowest digit is not a numerical value when the input frequency exceeds the determination frequency. 5. A digital scale display control device according to 3 or 4. 前記計測値表示処理部は、前記入力周波数が前記判定周波数を越えたときに前記表示器における計測値の表示を、その最下桁が非表示となるように切り替える構成としてなる請求項1,2,3または4に記載のディジタルスケールの表示制御装置。 The measurement value display processing unit is configured to switch the display of the measurement value on the display so that the lowest digit is not displayed when the input frequency exceeds the determination frequency. , 3 or 4 digital scale display control device.
JP2014130213A 2014-06-25 2014-06-25 Digital scale display controller Active JP5903690B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014130213A JP5903690B2 (en) 2014-06-25 2014-06-25 Digital scale display controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014130213A JP5903690B2 (en) 2014-06-25 2014-06-25 Digital scale display controller

Publications (2)

Publication Number Publication Date
JP2016008903A JP2016008903A (en) 2016-01-18
JP5903690B2 true JP5903690B2 (en) 2016-04-13

Family

ID=55226547

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014130213A Active JP5903690B2 (en) 2014-06-25 2014-06-25 Digital scale display controller

Country Status (1)

Country Link
JP (1) JP5903690B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112556653B (en) * 2020-12-16 2022-07-26 全芯智造技术有限公司 Pattern measuring method in semiconductor manufacturing process, electronic device, and storage medium

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS552933A (en) * 1978-06-21 1980-01-10 Mitsutoyo Mfg Co Ltd Digital electronic length measuring instrument
JPS60169709A (en) * 1984-02-13 1985-09-03 Tokyo Seimitsu Co Ltd Scale reading and counting device
JP2593257B2 (en) * 1991-08-12 1997-03-26 株式会社ミツトヨ Displacement measuring device
JP2738996B2 (en) * 1991-08-12 1998-04-08 株式会社ミツトヨ Displacement measuring device
JPH05306942A (en) * 1992-04-30 1993-11-19 Matsushita Electric Ind Co Ltd Encoder signal processing circuit
JP2814166B2 (en) * 1992-08-04 1998-10-22 シャープ株式会社 Measuring instrument
JPH11271026A (en) * 1998-03-25 1999-10-05 Citizen Watch Co Ltd Dimension measuring apparatus using optical scale
JP3949285B2 (en) * 1998-07-21 2007-07-25 株式会社エー・アンド・デイ electronic balance
JP2000121316A (en) * 1998-10-15 2000-04-28 Citizen Watch Co Ltd Dimension measuring apparatus using optical scale
JP2002286506A (en) * 2001-03-23 2002-10-03 Citizen Watch Co Ltd Instrument for measuring dimension using optical scale
JP3913026B2 (en) * 2001-10-18 2007-05-09 サムタク株式会社 Linear scale signal processing apparatus and method
JP2006184163A (en) * 2004-12-28 2006-07-13 Seiko Epson Corp Display information measurement method, display information measurement device, numerical information display method, and numerical information display device
JP4746427B2 (en) * 2005-12-27 2011-08-10 オリンパス株式会社 Encoder interpolation device

Also Published As

Publication number Publication date
JP2016008903A (en) 2016-01-18

Similar Documents

Publication Publication Date Title
JP5230800B2 (en) Position measuring device
US7721455B2 (en) Measuring instrument
JPH0122883B2 (en)
JP5988295B2 (en) Input device
KR101192505B1 (en) Phase detection device and position detection device
JP5088313B2 (en) Linear encoder signal processing apparatus and signal processing method
JP5903690B2 (en) Digital scale display controller
JP5171128B2 (en) Circuit apparatus and method for calculating tilt error in position measuring apparatus
JPH08178700A (en) Incremental encoder
JP2008008903A5 (en)
CN106404009B (en) Position measuring device and method for operating the same
JP2003121135A (en) Reader for linear scale
JP5221706B2 (en) Hand-held scanning system and operating method thereof
JP2005127762A (en) Sensor signal processing device
TW202006323A (en) Angle detector
JP4868159B2 (en) Linear scale
JP2008058252A (en) Encoder signal correction circuit
JPH086259Y2 (en) Linear position detector
JPS61110006A (en) Position detector
JPH05196451A (en) Length measuring or angle measuring device
JP2003083768A (en) Absolute encoder
JP6360380B2 (en) Displacement measuring device, signal processing device and signal processing method
JP6342679B2 (en) Position detection device
JP7190454B2 (en) METHOD AND APPARATUS FOR DETECTING POSITION CHANGE BASED ON MOVEMENT OF MOBILE BODY
JPS6197520A (en) Displacement detector

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160119

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160205

R150 Certificate of patent or registration of utility model

Ref document number: 5903690

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250