JP4474221B2 - Optical displacement meter - Google Patents

Optical displacement meter Download PDF

Info

Publication number
JP4474221B2
JP4474221B2 JP2004212343A JP2004212343A JP4474221B2 JP 4474221 B2 JP4474221 B2 JP 4474221B2 JP 2004212343 A JP2004212343 A JP 2004212343A JP 2004212343 A JP2004212343 A JP 2004212343A JP 4474221 B2 JP4474221 B2 JP 4474221B2
Authority
JP
Japan
Prior art keywords
measurement result
peak
light
measurement
image sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2004212343A
Other languages
Japanese (ja)
Other versions
JP2006030094A (en
Inventor
佳晃 西尾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Keyence Corp
Original Assignee
Keyence Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Keyence Corp filed Critical Keyence Corp
Priority to JP2004212343A priority Critical patent/JP4474221B2/en
Publication of JP2006030094A publication Critical patent/JP2006030094A/en
Application granted granted Critical
Publication of JP4474221B2 publication Critical patent/JP4474221B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Measurement Of Optical Distance (AREA)

Description

本発明は、対象物に光を照射し、対象物からの光をイメージセンサーで受光して得られる電気信号から対象物までの距離又は対象物の変位を計測する光学式変位計に関する。   The present invention relates to an optical displacement meter that measures the distance to an object or the displacement of the object from an electrical signal obtained by irradiating the object with light and receiving light from the object with an image sensor.

この種の光学式変位計として、三角測量の原理を用いて対象物までの距離又は変位を計測するものがある。この光学式変位計は、対象物に光を照射するための発光素子としてのレーザダイオードと、複数の画素構成部のそれぞれが対象物からの光を受光して受光量に応じた電気信号を出力するイメージセンサーと、イメージセンサーからの電気信号に基づいて対象物までの距離又は対象物の変位を計測する計測処理部とを備えている。イメージセンサーからの電気信号は、ADコンバータでディジタル値に変換されて計測処理部に入力される。   Some optical displacement meters of this type measure the distance or displacement to an object using the principle of triangulation. This optical displacement meter has a laser diode as a light emitting element for irradiating light on an object, and each of a plurality of pixel components receives light from the object and outputs an electrical signal corresponding to the amount of light received And a measurement processing unit that measures the distance to the object or the displacement of the object based on an electrical signal from the image sensor. An electric signal from the image sensor is converted into a digital value by an AD converter and input to a measurement processing unit.

計測処理部は受光量の分布に相当する受光波形の山部を検出し、山部のピーク位置又は重心位置を求めることによって三角測量の原理を用いて対象物までの距離を算出する。受光波形における山部は、受光量に相当する電気信号(例えば電圧)が一旦増加したのち減少する部分であり、厳密には高さ及び幅があらかじめ定めた値を超えているものが山部として検出される。   The measurement processing unit detects the peak portion of the received light waveform corresponding to the distribution of the received light amount, and calculates the distance to the object using the principle of triangulation by obtaining the peak position or the center of gravity position of the peak portion. The peak portion in the received light waveform is a portion where an electric signal (for example, voltage) corresponding to the amount of received light once increases and then decreases. Strictly speaking, a portion whose height and width exceed a predetermined value is a peak portion. Detected.

また、光学式変位計では、対象物の色、表面の粗さ、角度等の条件に応じて光の反射率、ひいては受光量が大きく変動する。そこで、受光量(山部のピーク値)が目標値になるように、発光素子の発光量やイメージセンサーからの電気信号を増幅する増幅器の増幅率を調整するフィードバック制御を行うことが一般的である。これにより、イメージセンサーの各画素構成部における蓄積電荷の飽和を回避しながらダイナミックレンジを有効活用することができる。   In the optical displacement meter, the reflectance of light and the amount of light received vary greatly depending on conditions such as the color of the object, the roughness of the surface, and the angle. Therefore, it is common to perform feedback control that adjusts the light emission amount of the light emitting element and the amplification factor of the amplifier that amplifies the electric signal from the image sensor so that the light reception amount (peak value of the peak) becomes the target value. is there. As a result, the dynamic range can be effectively utilized while avoiding saturation of accumulated charges in each pixel component of the image sensor.

上記のような光学式変位計は、例えば表面実装部品が実装されたプリント配線板の表面の凹凸形状の検査に使用される。つまり、表面実装部品が正しく実装されているか、あるいは半田付け部分に浮きが発生していないかといった検査を、プリント配線板の上方に配置された光学式変位計を用いて自動的に検査することができる。このような用途において、光学式変位計からプリント配線板に向けて照射された光が実装部品のエッジ部で反射し、更に他の部分で反射した後に光学式変位計に戻って来る光路をたどる場合がある。つまり、プリント配線板又は実装部品の表面で反射した光が光学式変位計に直接戻って来る一次反射光以外に、プリント配線板上の実装部品の表面で2回反射した二次反射光が光学式変位計に戻ってくる。3回以上反射した光(三次以上の反射光)が光学式変位計に戻ってくることもある。   The optical displacement meter as described above is used for, for example, inspecting the uneven shape on the surface of a printed wiring board on which surface-mounted components are mounted. In other words, it is possible to automatically inspect whether surface-mounted components are correctly mounted or whether the soldered part is lifted by using an optical displacement meter placed above the printed wiring board. Can do. In such an application, the light emitted from the optical displacement meter toward the printed wiring board is reflected by the edge portion of the mounting component, and further follows the optical path that returns to the optical displacement meter after being reflected by another portion. There is a case. In other words, the secondary reflected light reflected twice on the surface of the mounting component on the printed wiring board is optical in addition to the primary reflected light that is reflected directly on the surface of the printed wiring board or the mounting component. Return to the displacement meter. Light reflected three times or more (third-order or more reflected light) may return to the optical displacement meter.

このような二次反射光又は三次以上の反射光(多重反射光)が光学式変位計に戻ってきてイメージセンサーに受光されると、それから得られる受光波形に複数の山部が現れることになる。この場合に、いずれの山部を有効な山部としてそのピーク位置又は重心位置を求め、対象物までの距離を算出するかを決める必要がある。例えば、ピークが高い方の山部を有効な山部とする方法、あるいは、最初に現れる山部を有効な山部とする方法がある。   When such secondary reflected light or tertiary or higher reflected light (multiple reflected light) returns to the optical displacement meter and is received by the image sensor, a plurality of peaks appear in the received light waveform obtained therefrom. . In this case, it is necessary to determine which peak portion is an effective peak portion, obtain the peak position or the center of gravity position, and calculate the distance to the object. For example, there is a method in which a peak having a higher peak is an effective peak, or a method in which a peak that appears first is an effective peak.

しかし、これらの方法はいずれも便宜的なものであって、常に正しい計測結果が得られるわけではない。一次反射光の受光量が多重反射光の受光量より常に多ければピークが高い方の山部を有効な山部とすればよいが、多重反射光の受光量が一次反射光の受光量より多くなる場合もある。また、一次反射光による受光波形の山部が常に最初に現れる場合は最初に現れる山部を有効な山部とすればよいが、すべての用途でそうなるように設定することは難しい。   However, these methods are all convenient, and a correct measurement result cannot always be obtained. If the amount of primary reflected light is always greater than the amount of multiple reflected light, the peak with the higher peak may be the effective peak, but the amount of multiple reflected light is greater than the amount of primary reflected light. Sometimes it becomes. In addition, when the peak portion of the received light waveform by the primary reflected light always appears first, the peak portion that appears first may be set as an effective peak portion, but it is difficult to set so as to be the case in all applications.

上記のような光学式変位計の用途では、光学式変位計から照射される光(光線)を横切る方向に対象物が移動する間に、光学式変位計による計測が一定のサンプリング周期で実行される。例えば、一定速度で動いているベルトコンベアに載置された対象物に対して上方に配置された光学式変位計から光が照射され、一定のサンプリング周期で対象物までの距離(対象物の表面の凹凸形状)が計測される。あるいは、光学式変位計に光を変更させて対象物の表面を走査する光走査手段が備えられる場合もある。この場合は、停止している対象物の表面の凹凸形状を計測することができる。いずれにせよ、光線を横切る方向に相対移動する対象物までの距離が一定の周期で連続的に計測される。   In the application of the optical displacement meter as described above, the measurement by the optical displacement meter is executed at a constant sampling period while the object moves in the direction crossing the light (light beam) emitted from the optical displacement meter. The For example, light is irradiated from an optical displacement meter disposed above a target object placed on a belt conveyor moving at a constant speed, and the distance to the target object (surface of the target object) at a constant sampling period. Concavo-convex shape) is measured. Alternatively, the optical displacement meter may be provided with an optical scanning unit that changes the light and scans the surface of the object. In this case, the uneven shape of the surface of the stopped object can be measured. In any case, the distance to the object that relatively moves in the direction crossing the light beam is continuously measured at a constant period.

そこで、受光波形に複数の山部が現れた場合に有効な1つの山部を決定する方法として、前回の受光波形の情報を参照して決定することが可能である。例えば特許文献1には、受光波形に複数の山部が現れた場合に、前回の受光波形の山部の位置(ビームスポット位置)に最も近い山部を有効な山部として決定する方法が記載されている。
特公平7−117387号公報
Therefore, as a method of determining one peak portion that is effective when a plurality of peak portions appear in the received light waveform, it is possible to determine with reference to the information of the previous received light waveform. For example, Patent Document 1 describes a method in which when a plurality of peaks appear in the received light waveform, a peak closest to the peak position (beam spot position) of the previous received light waveform is determined as an effective peak. Has been.
Japanese Patent Publication No.7-117387

しかしながら、前述の例において多重反射光が光学式変位計に戻って来てイメージセンサーに受光されるのは、プリント配線板の実装部品のエッジ部に光が当たったときであり、その前後の計測タイミングでは実装部品の表面(平坦部)に光が当たり受光波形に山部が1つだけ現れると考えられる。また、実装部品のエッジ部に光が当たったときの計測結果が仮に欠落したとしても、その前後の計測タイミングにおいて正しい計測結果が得られれば、実装部品を含むプリント配線板の表面の凹凸形状を検査する上で特に支障がない場合がほとんどである。   However, in the above-mentioned example, the multiple reflected light returns to the optical displacement meter and is received by the image sensor when the light hits the edge of the printed circuit board mounting component, and measurements before and after that. At the timing, it is considered that light hits the surface (flat part) of the mounted component and only one peak appears in the received light waveform. Also, even if the measurement result when light hits the edge of the mounted component is lost, if the correct measurement result is obtained at the measurement timing before and after that, the uneven shape on the surface of the printed wiring board including the mounted component can be obtained. In most cases, there are no particular problems in the inspection.

そこで、本発明は、対象物の表面において多重反射した光が受光されることによって受光波形に複数の山部が現れた場合に、合理的かつ適正に計測結果を出力する光学式変位計を提供することを目的とする。   Therefore, the present invention provides an optical displacement meter that outputs measurement results reasonably and appropriately when a plurality of peaks appear in the received light waveform due to the multiple reflected light received on the surface of the object. The purpose is to do.

本発明による光学式変位計の第1の構成は、対象物に光を照射するための発光素子と、複数の画素構成部のそれぞれが対象物からの光を受光して受光量に応じた電気信号を出力するイメージセンサーと、イメージセンサーからの電気信号を処理して受光量の分布に相当する受光波形の山部を検出し、山部のピーク位置又は重心位置を求めることによって対象物までの距離又は対象物の変位を計測する計測処理を一定の周期で連続して実行し、その計測結果を記憶すると共に出力する計測処理部とを備え、計測処理部は、受光波形に複数の山部が検出されたときに、前回の計測結果を今回の計測結果として出力することを特徴とする。   The first configuration of the optical displacement meter according to the present invention includes a light emitting element for irradiating light on an object, and an electric power corresponding to the amount of light received by each of a plurality of pixel components by receiving light from the object. An image sensor that outputs a signal, and an electrical signal from the image sensor is processed to detect a peak portion of the received light waveform corresponding to the distribution of the amount of received light. A measurement processing unit that continuously executes a measurement process for measuring a distance or a displacement of an object at a constant period, stores a measurement result, and outputs the measurement result. When is detected, the previous measurement result is output as the current measurement result.

このような構成によれば、本発明の光学式変位計では受光波形に複数の山部が現れたときは前回の計測結果がホールド(保持)される。したがって、多重反射光による山部に基づく誤った計測結果を出力する可能性がなくなる。前述のように、今回のサンプリングタイミングでの正しい計測結果が欠落したとしても、次回のサンプリングタイミングで正しい計測結果が得られれば、時系列の計測結果から特定される対象物の表面の凹凸形状はほぼ正確なものとなる。   According to such a configuration, in the optical displacement meter of the present invention, when a plurality of peaks appear in the received light waveform, the previous measurement result is held. Therefore, there is no possibility of outputting an erroneous measurement result based on the peak portion due to the multiple reflected light. As described above, even if the correct measurement result at the current sampling timing is missing, if the correct measurement result is obtained at the next sampling timing, the uneven shape of the surface of the object identified from the time-series measurement result is It will be almost accurate.

本発明による光学式変位計の第2の構成は、上記第1の構成において、山部のピーク値が目標値になるように発光素子の発光量又はイメージセンサーからの電気信号を増幅する増幅器の増幅率のフィードバック制御を実行する第1モードと、フィードバック制御の結果得られる発光量又は増幅率の適正値を所定の倍数分だけ増加する第2モードとを切り替えて実行することが可能な制御部を更に備え、計測処理部は、第2モードで得られた受光波形に基づいて計測処理を実行することを特徴とする。   A second configuration of the optical displacement meter according to the present invention is the same as the first configuration described above, except that the amplifier that amplifies the light emission amount of the light emitting element or the electric signal from the image sensor so that the peak value of the peak portion becomes the target value. A control unit capable of switching and executing a first mode for executing feedback control of the amplification factor and a second mode for increasing an appropriate light emission amount or amplification factor obtained by the feedback control by a predetermined multiple And the measurement processing unit executes measurement processing based on the received light waveform obtained in the second mode.

このような構成によれば、多重反射光による山部のピーク値が低くて、フィードバック制御のかかった第1モードではしきい値以下のために検出されない場合であっても、発光量又は増幅率が所定の倍数分だけ増加される第2モードでは多重反射光による山部が検出される場合がある。この場合は、複数の山部が検出されるので、第1の構成に示したように前回の計測結果がホールドされることになる。なお、所定の倍数は整数倍に限らず、例えば5.5倍のように小数部を含む倍数でもよい。   According to such a configuration, even if the peak value of the peak due to the multiple reflected light is low and is not detected because it is below the threshold in the first mode with feedback control, the light emission amount or the amplification factor In the second mode in which is increased by a predetermined multiple, a peak due to multiple reflected light may be detected. In this case, since a plurality of peaks are detected, the previous measurement result is held as shown in the first configuration. The predetermined multiple is not limited to an integral multiple, and may be a multiple including a decimal part, for example, 5.5.

本発明による光学式変位計の第3の構成は、対象物に光を照射するための発光素子と、複数の画素構成部のそれぞれが対象物からの光を受光して受光量に応じた電気信号を出力するイメージセンサーと、イメージセンサーからの電気信号を処理して受光量の分布に相当する受光波形の山部を検出し、山部のピーク位置又は重心位置を求めることによって対象物までの距離又は対象物の変位を計測する計測処理を一定の周期で連続して実行し、その計測結果を出力する計測処理部と、山部のピーク値が目標値になるように発光素子の発光量又はイメージセンサーからの電気信号を増幅する増幅器の増幅率のフィードバック制御を実行する第1モードと、フィードバック制御の結果得られる発光量又は増幅率の適正値を所定の倍数分だけ増加する第2モードとを切り替えて実行することが可能な制御部とを備え、計測処理部は、第2モードで得られた受光波形に複数の山部が検出されたときに、最初又は最後に現れた山部を有効な山部として計測処理を実行し、その計測結果を出力することを特徴とする。   A third configuration of the optical displacement meter according to the present invention includes a light emitting element for irradiating light on an object, and an electric according to the amount of light received by each of a plurality of pixel components by receiving light from the object. An image sensor that outputs a signal, and an electrical signal from the image sensor is processed to detect a peak portion of the received light waveform corresponding to the distribution of the amount of received light. A measurement processing unit that continuously executes a measurement process for measuring the distance or the displacement of the object at a constant cycle and outputs the measurement result, and a light emission amount of the light emitting element so that the peak value of the peak part becomes a target value Alternatively, the first mode for executing feedback control of the amplification factor of the amplifier that amplifies the electric signal from the image sensor and the appropriate light emission amount or amplification factor obtained as a result of the feedback control are increased by a predetermined multiple. A control unit capable of switching between two modes and executing the measurement processing unit, which appears first or last when a plurality of peaks are detected in the received light waveform obtained in the second mode. It is characterized in that the measurement processing is executed with the mountain portion as an effective mountain portion, and the measurement result is output.

このような構成によれば、多重反射光による山部のピーク値が低くて、フィードバック制御のかかった第1モードではしきい値以下のために検出されない場合であっても、発光量又は増幅率が所定の倍数分だけ増加される第2モードでは多重反射光による山部が検出される場合がある。この場合に、計測処理部が最初又は最後に現れた山部を有効な山部として計測処理を実行し、適切な計測結果を出力することができる。   According to such a configuration, even if the peak value of the peak due to the multiple reflected light is low and is not detected because it is below the threshold in the first mode with feedback control, the light emission amount or the amplification factor In the second mode in which is increased by a predetermined multiple, a peak due to multiple reflected light may be detected. In this case, the measurement processing unit can execute the measurement process with the peak part that appears first or last as an effective peak part, and output an appropriate measurement result.

本発明による光学式変位計の第4の構成は、対象物に光を照射するための発光素子と、複数の画素構成部のそれぞれが対象物からの光を受光して受光量に応じた電気信号を出力するイメージセンサーと、イメージセンサーからの電気信号を処理して受光量の分布に相当する受光波形の山部を検出し、山部のピーク位置又は重心位置を求めることによって対象物までの距離又は対象物の変位を計測する計測処理を一定の周期で連続して実行し、その計測結果を記憶すると共に出力する計測処理部とを備え、計測処理部は、受光波形に複数の山部が検出されたときに、最初又は最後に現れる山部を有効な山部として計測処理を実行し、今回の計測結果と前回の計測結果との差があらかじめ定めた変化許容値より小さい場合は今回の計測結果を有効な計測結果として出力し、かつ、今回の計測結果と前回の計測結果との差があらかじめ定めた変化許容値以上である場合は前回の計測結果を今回の計測結果として出力することを特徴とする。   A fourth configuration of the optical displacement meter according to the present invention includes a light emitting element for irradiating light on an object, and an electric according to the amount of light received by each of a plurality of pixel components by receiving light from the object. An image sensor that outputs a signal, and an electrical signal from the image sensor is processed to detect a peak portion of the received light waveform corresponding to the distribution of the amount of received light. A measurement processing unit that continuously executes a measurement process for measuring a distance or a displacement of an object at a constant period, stores a measurement result, and outputs the measurement result. If the difference between the current measurement result and the previous measurement result is smaller than the predetermined change allowable value, the measurement process is executed with the peak that appears first or last as the effective peak. Valid measurement results And outputs as the measurement result, and, if the difference between the current measurement result and the previous measurement result is predetermined allowable change value or more and outputs a previous measurement result as the current measurement result.

このような構成によれば、多重反射光による山部に基づいて求められた誤った計測結果を合理的に排除することができる。つまり、複数の山部が検出されたときに、計測処理部は正しい山部である可能性の高い最初又は最後に現れる山部を有効な山部としてひとまず計測処理を実行するが、その計測結果と前回の計測結果との差が変化許容値より大きい場合は、誤った計測結果であると判断して前回の計測結果が出力(ホールド)される。変化許容値以下である場合は、有効な計測結果として出力される。   According to such a configuration, it is possible to rationally eliminate an erroneous measurement result obtained based on the peak portion due to the multiple reflected light. In other words, when a plurality of peaks are detected, the measurement processing unit executes the measurement process for the time being using the first or last peak that is likely to be the correct peak as an effective peak. If the difference between the previous measurement result and the previous measurement result is larger than the allowable change value, it is determined that the measurement result is incorrect, and the previous measurement result is output (held). If it is less than the allowable change value, it is output as an effective measurement result.

本発明による光学式変位計の第5の構成は、上記第4の構成において、山部のピーク値が目標値になるように発光素子の発光量又はイメージセンサーからの電気信号を増幅する増幅器の増幅率のフィードバック制御を実行する第1モードと、フィードバック制御の結果得られる発光量又は増幅率の適正値を所定の倍数分だけ増加する第2モードとを切り替えて実行することが可能な制御部を更に備え、計測処理部は、第2モードで得られた受光波形に基づいて計測処理を実行することを特徴とする。   A fifth configuration of the optical displacement meter according to the present invention is the same as the fourth configuration described above in that the amplifier that amplifies the light emission amount of the light emitting element or the electric signal from the image sensor so that the peak value of the peak portion becomes the target value. A control unit capable of switching and executing a first mode for executing feedback control of the amplification factor and a second mode for increasing an appropriate light emission amount or amplification factor obtained by the feedback control by a predetermined multiple And the measurement processing unit executes measurement processing based on the received light waveform obtained in the second mode.

このような構成によれば、多重反射光による山部のピーク値が低くて、フィードバック制御のかかった第1モードではしきい値以下のために検出されない場合であっても、発光量又は増幅率が所定の倍数分だけ増加される第2モードでは多重反射光による山部が検出される場合がある。この場合は、複数の山部が検出されるので、第4の構成に示したように前回の計測結果との差に応じて前回又は今回の計測結果が出力される。   According to such a configuration, even if the peak value of the peak due to the multiple reflected light is low and is not detected because it is below the threshold in the first mode with feedback control, the light emission amount or the amplification factor In the second mode in which is increased by a predetermined multiple, a peak due to multiple reflected light may be detected. In this case, since a plurality of peaks are detected, the previous or current measurement result is output according to the difference from the previous measurement result as shown in the fourth configuration.

本発明による光学式変位計の第6の構成は、対象物に光を照射するための発光素子と、複数の画素構成部のそれぞれが対象物からの光を受光して受光量に応じた電気信号を出力するイメージセンサーと、イメージセンサーからの電気信号を処理して受光量の分布に相当する受光波形の山部を検出し、山部のピーク位置又は重心位置を求めることによって対象物までの距離又は対象物の変位を計測する計測処理を一定の周期で連続して実行し、その計測結果を記憶すると共に出力する計測処理部とを備え、計測処理部は、受光波形に複数の山部が検出されたときに、最初又は最後に現れた山部を有効な山部として計測処理を実行し、今回の計測結果と前回の計測結果との差があらかじめ定めた変化許容値以下である場合は今回の計測結果を有効な計測結果として出力し、かつ、今回の計測結果と前回の計測結果との差があらかじめ定めた変化許容値より大きい場合は最初又は最後に現れた山部に隣接する山部を有効な山部として計測処理を実行し、その計測結果を出力することを特徴とする。   A sixth configuration of the optical displacement meter according to the present invention includes a light emitting element for irradiating light on an object, and an electric according to the amount of light received by each of a plurality of pixel components by receiving light from the object. An image sensor that outputs a signal, and an electrical signal from the image sensor is processed to detect a peak portion of the received light waveform corresponding to the distribution of the amount of received light. A measurement processing unit that continuously executes a measurement process for measuring a distance or a displacement of an object at a constant period, stores a measurement result, and outputs the measurement result. When the first or last peak is detected as an effective peak when the error is detected, the difference between the current measurement result and the previous measurement result is less than the predetermined allowable change Validate this measurement result If the difference between the current measurement result and the previous measurement result is greater than the predetermined allowable change value, the peak adjacent to the first or last peak appears as an effective peak. A measurement process is executed, and the measurement result is output.

このような構成によれば、多重反射光による山部に基づいて求められた誤った計測結果を合理的に排除することができる。つまり、複数の山部が検出されたときに、計測処理部は正しい山部である可能性の高い最初又は最後に現れる山部を有効な山部としてひとまず計測処理を実行するが、その計測結果と前回の計測結果との差が変化許容値より大きい場合は、隣接する山部(2個の山部が現れた場合は他方の山部)を有効な山部として計測処理を実行する。変化許容値以下である場合は、有効な計測結果として出力される。   According to such a configuration, it is possible to rationally eliminate an erroneous measurement result obtained based on the peak portion due to the multiple reflected light. In other words, when a plurality of peaks are detected, the measurement processing unit executes the measurement process for the time being using the first or last peak that is likely to be the correct peak as an effective peak. When the difference between the previous measurement result and the previous measurement result is larger than the allowable change value, the adjacent peak part (or the other peak part when two peak parts appear) is used as an effective peak part to perform the measurement process. If it is less than the allowable change value, it is output as an effective measurement result.

本発明による光学式変位計の第7の構成は、上記第6の構成において、山部のピーク値が目標値になるように発光素子の発光量又はイメージセンサーからの電気信号を増幅する増幅器の増幅率のフィードバック制御を実行する第1モードと、フィードバック制御の結果得られる発光量又は増幅率の適正値を所定の倍数分だけ増加する第2モードとを切り替えて実行することが可能な制御部を更に備え、計測処理部は、第2モードで得られた受光波形に基づいて計測処理を実行することを特徴とする。   A seventh configuration of the optical displacement meter according to the present invention is the same as that of the sixth configuration described above in that the amplifier that amplifies the light emission amount of the light emitting element or the electric signal from the image sensor so that the peak value of the peak portion becomes the target value. A control unit capable of switching and executing a first mode for executing feedback control of the amplification factor and a second mode for increasing an appropriate light emission amount or amplification factor obtained by the feedback control by a predetermined multiple And the measurement processing unit executes measurement processing based on the received light waveform obtained in the second mode.

このような構成によれば、多重反射光による山部のピーク値が低くて、フィードバック制御のかかった第1モードではしきい値以下のために検出されない場合であっても、発光量又は増幅率が所定の倍数分だけ増加される第2モードでは多重反射光による山部が検出される場合がある。この場合は、複数の山部が検出されるので、第6の構成に示したように前回の計測結果との差に応じて今回の計測結果が出力され、又は隣接する別の山部に基づいて計測処理及び計測結果の出力が行われる。   According to such a configuration, even if the peak value of the peak due to the multiple reflected light is low and is not detected because it is below the threshold in the first mode with feedback control, the light emission amount or the amplification factor In the second mode in which is increased by a predetermined multiple, a peak due to multiple reflected light may be detected. In this case, since a plurality of peaks are detected, as shown in the sixth configuration, the current measurement result is output according to the difference from the previous measurement result, or based on another adjacent peak Thus, measurement processing and measurement result output are performed.

本発明による光学式変位計の第8の構成は、対象物に光を照射するための発光素子と、複数の画素構成部のそれぞれが対象物からの光を受光して受光量に応じた電気信号を出力するイメージセンサーと、イメージセンサーからの電気信号を処理して受光量の分布に相当する受光波形の山部を検出し、山部のピーク位置又は重心位置を求めることによって対象物までの距離又は対象物の変位を計測する計測処理を一定の周期で連続して実行し、その計測結果を記憶すると共に出力する計測処理部とを備え、計測処理部は、受光波形に複数の山部が検出されたときに、最初又は最後に現れた山部を有効な山部として計測処理を実行し、今回の計測結果が、前々回の計測結果に対する前回の計測結果の増加又は減少傾向から推定した予測範囲内にある場合は今回の計測結果を有効な計測結果として出力し、かつ、今回の計測結果が予測範囲内に無い場合は前回の計測結果を今回の計測結果として出力することを特徴とする。   The eighth configuration of the optical displacement meter according to the present invention includes a light emitting element for irradiating light on an object, and an electric according to the amount of light received by each of a plurality of pixel components by receiving light from the object. An image sensor that outputs a signal, and an electrical signal from the image sensor is processed to detect a peak portion of the received light waveform corresponding to the distribution of the amount of received light. A measurement processing unit that continuously executes a measurement process for measuring a distance or a displacement of an object at a constant period, stores a measurement result, and outputs the measurement result. Is detected, the measurement process is executed with the first or last peak as an effective peak, and the current measurement result is estimated from the increase or decrease in the previous measurement result with respect to the previous measurement result. Within the forecast range If outputs a current measurement result as a valid measurement results, and, if current measurement result is not within the expected range and outputs a previous measurement result as the current measurement result.

このような構成によれば、多重反射光による山部に基づいて求められた誤った計測結果を合理的に排除することができる。つまり、複数の山部が検出されたときに、計測処理部は正しい山部である可能性の高い最初又は最後に現れる山部を有効な山部としてひとまず計測処理を実行するが、前々回及び前回の計測結果の変化傾向から推定した予測範囲内に計測結果があるか否かの判断によって、その計測結果の妥当性が判断され、その判断結果に応じて前回又は今回の計測結果が出力される。   According to such a configuration, it is possible to rationally eliminate an erroneous measurement result obtained based on the peak portion due to the multiple reflected light. In other words, when a plurality of peaks are detected, the measurement processing unit executes the measurement process with the first or last peak that is likely to be a correct peak as an effective peak. The validity of the measurement result is determined by determining whether or not the measurement result is within the prediction range estimated from the change tendency of the measurement result, and the previous or current measurement result is output according to the determination result .

本発明による光学式変位計の第9の構成は、上記第8の構成において、山部のピーク値が目標値になるように発光素子の発光量又はイメージセンサーからの電気信号を増幅する増幅器の増幅率のフィードバック制御を実行する第1モードと、フィードバック制御の結果得られる発光量又は増幅率の適正値を所定の倍数分だけ増加する第2モードとを切り替えて実行することが可能な制御部を更に備え、計測処理部は、第2モードで得られた受光波形に基づいて計測処理を実行することを特徴とする。   A ninth configuration of the optical displacement meter according to the present invention is the same as that of the eighth configuration described above in that the amplifier that amplifies the light emission amount of the light emitting element or the electric signal from the image sensor so that the peak value of the peak portion becomes the target value. A control unit capable of switching and executing a first mode for executing feedback control of the amplification factor and a second mode for increasing an appropriate light emission amount or amplification factor obtained by the feedback control by a predetermined multiple And the measurement processing unit executes measurement processing based on the received light waveform obtained in the second mode.

このような構成によれば、多重反射光による山部のピーク値が低くて、フィードバック制御のかかった第1モードではしきい値以下のために検出されない場合であっても、発光量又は増幅率が所定の倍数分だけ増加される第2モードでは多重反射光による山部が検出される場合がある。この場合は、複数の山部が検出されるので、第8の構成に示したように前々回及び前回の計測結果の変化傾向から判断した今回の計測結果の妥当性のいかんに応じて前回又は今回の計測結果が出力される。   According to such a configuration, even if the peak value of the peak due to the multiple reflected light is low and is not detected because it is below the threshold in the first mode with feedback control, the light emission amount or the amplification factor In the second mode in which is increased by a predetermined multiple, a peak due to multiple reflected light may be detected. In this case, since a plurality of peaks are detected, as shown in the eighth configuration, the previous time or the current time depending on the validity of the current measurement result determined from the change tendency of the previous measurement result and the previous measurement result. The measurement result is output.

本発明による光学式変位計の第10の構成は、対象物に光を照射するための発光素子と、複数の画素構成部のそれぞれが対象物からの光を受光して受光量に応じた電気信号を出力するイメージセンサーと、イメージセンサーからの電気信号を処理して受光量の分布に相当する受光波形の山部を検出し、山部のピーク位置又は重心位置を求めることによって対象物までの距離又は対象物の変位を計測する計測処理を一定の周期で連続して実行し、その計測結果を記憶すると共に出力する計測処理部とを備え、計測処理部は、受光波形に複数の山部が検出されたときに、最初又は最後に現れた山部を有効な山部として計測処理を実行し、今回の計測結果が、前々回の計測結果に対する前回の計測結果の増加又は減少傾向から推定される予測範囲内にある場合は今回の計測結果を有効な計測結果として出力し、かつ、今回の計測結果が予測範囲内に無い場合は最初又は最後に現れた山部に隣接する山部を有効な山部として計測処理を実行し、その計測結果を出力することを特徴とする。   A tenth configuration of the optical displacement meter according to the present invention includes a light emitting element for irradiating light on an object, and an electric according to the amount of light received by each of a plurality of pixel components by receiving light from the object. An image sensor that outputs a signal, and an electrical signal from the image sensor is processed to detect a peak portion of the received light waveform corresponding to the distribution of the amount of received light. A measurement processing unit that continuously executes a measurement process for measuring a distance or a displacement of an object at a constant period, stores a measurement result, and outputs the measurement result. Is detected, the first or last peak appears as an effective peak, and the current measurement result is estimated from the increase or decrease in the previous measurement result relative to the previous measurement result. Within the predicted range In some cases, the current measurement result is output as an effective measurement result, and if the current measurement result is not within the prediction range, the peak adjacent to the first or last peak is measured as an effective peak. The process is executed, and the measurement result is output.

このような構成によれば、多重反射光による山部に基づいて求められた誤った計測結果を合理的に排除することができる。つまり、複数の山部が検出されたときに、計測処理部は正しい山部である可能性の高い最初又は最後に現れる山部を有効な山部としてひとまず計測処理を実行するが、前々回及び前回の計測結果の変化傾向から推定した予測範囲内に計測結果があるか否かの判断によって、その計測結果の妥当性が判断される。妥当と判断された場合は、その計測結果が出力されるが、妥当でないと判断された場合は隣接する山部(2個の山部が現れた場合は他方の山部)を有効な山部として計測処理を実行する。   According to such a configuration, it is possible to rationally eliminate an erroneous measurement result obtained based on the peak portion due to the multiple reflected light. In other words, when a plurality of peaks are detected, the measurement processing unit executes the measurement process with the first or last peak that is likely to be a correct peak as an effective peak. The validity of the measurement result is determined by determining whether or not the measurement result is within the prediction range estimated from the change tendency of the measurement result. If it is determined to be valid, the measurement result is output. If it is determined not to be valid, the adjacent peak (the other peak when two peaks appear) is the effective peak. The measurement process is executed as follows.

本発明による光学式変位計の第11の構成は、上記第10の構成において、山部のピーク値が目標値になるように発光素子の発光量又はイメージセンサーからの電気信号を増幅する増幅器の増幅率のフィードバック制御を実行する第1モードと、フィードバック制御の結果得られる発光量又は増幅率の適正値を所定の倍数分だけ増加する第2モードとを切り替えて実行することが可能な制御部を更に備え、計測処理部は、第2モードで得られた受光波形に基づいて計測処理を実行することを特徴とする。   An eleventh configuration of the optical displacement meter according to the present invention is the same as the tenth configuration in the amplifier that amplifies the light emission amount of the light emitting element or the electric signal from the image sensor so that the peak value of the peak portion becomes the target value. A control unit capable of switching and executing a first mode for executing feedback control of the amplification factor and a second mode for increasing an appropriate light emission amount or amplification factor obtained by the feedback control by a predetermined multiple And the measurement processing unit executes measurement processing based on the received light waveform obtained in the second mode.

このような構成によれば、多重反射光による山部のピーク値が低くて、フィードバック制御のかかった第1モードではしきい値以下のために検出されない場合であっても、発光量又は増幅率が所定の倍数分だけ増加される第2モードでは多重反射光による山部が検出される場合がある。この場合は、複数の山部が検出されるので、第10の構成に示したように前々回及び前回の計測結果の変化傾向から判断した今回の計測結果の妥当性のいかんに応じて今回の計測結果が出力され、又は隣接する別の山部に基づいて計測処理及び計測結果の出力が行われる。   According to such a configuration, even if the peak value of the peak due to the multiple reflected light is low and is not detected because it is below the threshold in the first mode with feedback control, the light emission amount or the amplification factor In the second mode in which is increased by a predetermined multiple, a peak due to multiple reflected light may be detected. In this case, since a plurality of peaks are detected, as shown in the tenth configuration, the current measurement is performed according to the validity of the current measurement result determined from the change tendency of the previous measurement result and the previous measurement result. The result is output, or the measurement process and the output of the measurement result are performed based on another adjacent mountain.

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

図1は、本発明の実施例に係る光学式変位計の計測原理を示す図である。この光学式変位計はレーザ変位計ともいわれ、三角測量の原理を用いて対象物の変位を非接触で計測するのに用いられる。LDドライバ11の制御によってレーザダイオード12から発せられたレーザ光は、投光レンズ13を通り対象物WKを照射する。対象物WKで反射したレーザ光の一部は、受光レンズ14を通ってリニアイメージセンサー15により受光される。リニアイメージセンサー15は、複数の画素構成部が一列に配列されたCCD又はCMOSイメージセンサーであり、受光量に相当する電荷が画素構成部ごとに蓄積され、取り出される。   FIG. 1 is a diagram illustrating the measurement principle of an optical displacement meter according to an embodiment of the present invention. This optical displacement meter is also called a laser displacement meter, and is used for non-contact measurement of the displacement of an object using the principle of triangulation. The laser light emitted from the laser diode 12 under the control of the LD driver 11 passes through the light projecting lens 13 and irradiates the object WK. Part of the laser light reflected by the object WK passes through the light receiving lens 14 and is received by the linear image sensor 15. The linear image sensor 15 is a CCD or CMOS image sensor in which a plurality of pixel components are arranged in a line, and a charge corresponding to the amount of received light is accumulated and extracted for each pixel component.

対象物WKが図1に破線で示すように変位すると、対象物WKで反射してリニアイメージセンサー15に達するレーザ光の光路が破線のように変化する。その結果、リニアイメージセンサー15の受光面における受光スポットの位置が移動し、上記の受光波形、すなわち受光量のピーク位置又は重心位置が変化する。リニアイメージセンサー15の各画素構成部における受光量に応じた蓄積電荷が読み出し回路16によって読み出され、信号処理によって一次元の受光量分布である受光波形が得られる。この受光波形のピーク位置又は重心位置から対象物WKの変位が求まる。   When the object WK is displaced as indicated by a broken line in FIG. 1, the optical path of the laser light reflected by the object WK and reaching the linear image sensor 15 changes as indicated by the broken line. As a result, the position of the light receiving spot on the light receiving surface of the linear image sensor 15 moves, and the light receiving waveform, that is, the peak position or the gravity center position of the received light amount changes. Accumulated charges corresponding to the amount of received light in each pixel component of the linear image sensor 15 are read out by the readout circuit 16 and a received light waveform that is a one-dimensional received light amount distribution is obtained by signal processing. The displacement of the object WK is obtained from the peak position or the center of gravity position of the received light waveform.

図2は、光学式変位計の外観を示し、図2(a)は平面図、(b)は側面図である。この光学式変位計は、センサーヘッド部21とコントローラ部22からなる。センサーヘッド部21は、上記のLDドライバ11、レーザダイオード12、投光レンズ13、受光レンズ14、リニアイメージセンサー15及び読み出し回路16を内蔵している。   2A and 2B show the appearance of the optical displacement meter, FIG. 2A is a plan view, and FIG. 2B is a side view. The optical displacement meter includes a sensor head unit 21 and a controller unit 22. The sensor head unit 21 incorporates the LD driver 11, the laser diode 12, the light projecting lens 13, the light receiving lens 14, the linear image sensor 15, and the readout circuit 16.

コントローラ部22には、センサーヘッド部21のLDドライバ11を介してレーザダイオード12の出力(発光量)を制御すると共に、リニアイメージセンサー15から読み出された信号から対象物WKの変位を求める処理を実行する電子回路が内蔵されている。また、コントローラ部22の上面には、7セグメントLEDを用いた表示器221と、目標値の設定等に使用されるシーソータイプの押ボタンスイッチである増減キー222等が設けられている。表示器221は、計測結果の数値表示や各種設定値の表示に使用され、2つの計測結果又は設定値を上下2段に同時に表示することができる。   The controller unit 22 controls the output (light emission amount) of the laser diode 12 via the LD driver 11 of the sensor head unit 21 and obtains the displacement of the object WK from the signal read from the linear image sensor 15. Built-in electronic circuit. Further, on the upper surface of the controller unit 22, a display 221 using a 7 segment LED, an increase / decrease key 222 which is a seesaw type push button switch used for setting a target value, and the like are provided. The display 221 is used for numerical display of measurement results and display of various set values, and can simultaneously display two measurement results or set values in two upper and lower stages.

センサーヘッド部21とコントローラ部22は電気ケーブル23で接続され、相互に電気信号がやりとりされると共に、電源電圧がコントローラ部22からセンサーヘッド部21に供給される。また、センサーヘッド部21は、2本のボルト24を用いて所定の取付け台25に固定される。ボルト24が挿通される2箇所の取付け孔はセンサーヘッド部21の基準面26に沿って設けられている。この基準面26は、計測用のレーザ光が出射すると共に対象物WKからの反射光が入射する面である。   The sensor head unit 21 and the controller unit 22 are connected by an electric cable 23 to exchange electric signals with each other, and a power supply voltage is supplied from the controller unit 22 to the sensor head unit 21. The sensor head unit 21 is fixed to a predetermined mounting base 25 using two bolts 24. Two mounting holes through which the bolts 24 are inserted are provided along the reference surface 26 of the sensor head portion 21. The reference surface 26 is a surface on which the measurement laser light is emitted and the reflected light from the object WK is incident.

図3は、光学式変位計の主な回路構成を示すブロック図である。センサーヘッド部21は、レーザダイオード12とそのドライブ回路(LDドライバ)11、リニアイメージセンサー15とその読み出し回路16、投光レンズ13及び受光レンズ14を含む。コントローラ部22はローパスフィルタ(LPF)41、ADコンバータ(A/D)47、処理部(計測処理部及び制御部)44、DAコンバータ(D/A)45、増幅器46及びリセット・制御回路48を含む。処理部44は、計測結果等を一時記憶するためのメモリ44aを有する。   FIG. 3 is a block diagram showing a main circuit configuration of the optical displacement meter. The sensor head unit 21 includes a laser diode 12 and its drive circuit (LD driver) 11, a linear image sensor 15 and its readout circuit 16, a light projecting lens 13 and a light receiving lens 14. The controller unit 22 includes a low-pass filter (LPF) 41, an AD converter (A / D) 47, a processing unit (measurement processing unit and control unit) 44, a DA converter (D / A) 45, an amplifier 46, and a reset / control circuit 48. Including. The processing unit 44 includes a memory 44a for temporarily storing measurement results and the like.

レーザダイオード12から発せられたレーザ光は、投光レンズ13を通り対象物WKを照射する。対象物WKで反射したレーザ光の一部は、受光レンズ14を通ってリニアイメージセンサー15に入射する。リニアイメージセンサー15の各画素構成部に蓄積された電荷は、読み出し回路16によって読み出される。読み出し回路16は、読み出し用パルス信号である画素選択信号をリニアイメージセンサー15に与えて各画素構成部を順次走査することによって、一次元の受光量分布に相当する時系列の電圧信号を得る。   The laser light emitted from the laser diode 12 passes through the light projection lens 13 and irradiates the object WK. Part of the laser light reflected by the object WK passes through the light receiving lens 14 and enters the linear image sensor 15. The charge accumulated in each pixel component of the linear image sensor 15 is read out by the readout circuit 16. The readout circuit 16 obtains a time-series voltage signal corresponding to a one-dimensional received light amount distribution by applying a pixel selection signal that is a readout pulse signal to the linear image sensor 15 and sequentially scanning each pixel component.

例えば、リニアイメージセンサー15が256画素からなり、画素ごとの転送レートが1マイクロ秒の場合は、256マイクロ秒かかって全画素構成部の蓄積電荷が読み出され、読み出し回路16から時系列の電圧信号として出力される。この全画素の蓄積電荷を読み出すのに要する時間がサンプリング周期である。読み出し回路16の出力信号は、コントローラ部22に渡され、まずローパスフィルタ41によって高周波成分を除かれる。この高周波成分には、リニアイメージセンサー15に与えられる画素選択信号の周波数成分が含まれる。   For example, when the linear image sensor 15 is composed of 256 pixels and the transfer rate for each pixel is 1 microsecond, the accumulated charge of all the pixel components is read out in 256 microseconds, and the time series voltage is read from the readout circuit 16. Output as a signal. The time required to read the accumulated charges of all the pixels is the sampling period. The output signal of the readout circuit 16 is passed to the controller unit 22, and the high frequency component is first removed by the low pass filter 41. This high frequency component includes the frequency component of the pixel selection signal given to the linear image sensor 15.

読み出し回路16の出力信号がローパスフィルタ41を通過すると、画素選択信号の周波数に相当する高周波成分が除かれ、その包絡線に相当する低周波成分のみの電圧信号となる。この電圧信号は、リニアイメージセンサー15における画素位置に関する受光量の分布の情報を含んでいる。電圧値が高いほど、その画素位置における受光量が多いことを意味する。この電圧信号の波形が前述の受光波形であり、受光波形には一旦増加したのち減少するように変化する山部が含まれている。この山部のピーク位置は、ワークWKまでの距離に対応する受光量の最も多い画素位置に相当する。   When the output signal of the readout circuit 16 passes through the low-pass filter 41, the high frequency component corresponding to the frequency of the pixel selection signal is removed, and only the low frequency component corresponding to the envelope becomes a voltage signal. This voltage signal includes information on the distribution of the amount of received light regarding the pixel position in the linear image sensor 15. The higher the voltage value, the greater the amount of light received at that pixel position. The waveform of this voltage signal is the above-described received light waveform, and the received light waveform includes a peak portion that increases and then decreases. The peak position of this peak corresponds to the pixel position having the largest amount of received light corresponding to the distance to the workpiece WK.

図3に示すように、ローパスフィルタ41から出力される電圧信号は増幅器46で増幅された後にADコンバータ47でディジタル値に変換され、そのディジタル値が処理部44に逐次与えられる。処理部44は、ADコンバータ47を経て入力される逐次データから受光波形の山部を検出し、そのピーク位置又は重心位置を求める。山部のピーク位置又は重心位置が算出されると、前述の三角測量の原理からワークWKまでの距離又は変位が計測される。計測結果は、表示器221に表示されると共に、処理部44からDAコンバータ45に与えられ、アナログ電圧に変換されて外部機器に出力される。   As shown in FIG. 3, the voltage signal output from the low-pass filter 41 is amplified by the amplifier 46, converted to a digital value by the AD converter 47, and the digital value is sequentially given to the processing unit 44. The processing unit 44 detects the peak portion of the received light waveform from the sequential data input through the AD converter 47 and obtains the peak position or the center of gravity position. When the peak position or the gravity center position of the mountain portion is calculated, the distance or displacement to the workpiece WK is measured from the above-described triangulation principle. The measurement result is displayed on the display 221 and is given from the processing unit 44 to the DA converter 45, converted into an analog voltage, and output to an external device.

図3において、レーザダイオード12から発せられるレーザ光の強さ(発光量)はLDドライバ11を介して処理部(制御部に相当する)44によって制御される。レーザ光の強さが変われば、対象物WKで反射され、リニアイメージセンサー15に入射する光量(受光量)も変化する。そこで、対象物WKの光反射率(明るさ)に応じてレーザダイオード12から発せられるレーザ光の強さを調節することにより、リニアイメージセンサー15の各画素構成部における蓄積電荷の飽和を回避しながら、そのダイナミックレンジを十分に活用できるようにしている。具体的には、レーザダイオード12を駆動するパルスのパルス幅又はデューティ比を変えることによってレーザ光の強さを調節する。もちろん、パルス電圧(ピーク値)を変えることによって、レーザ光の強さを調節してもよい。   In FIG. 3, the intensity (light emission amount) of the laser light emitted from the laser diode 12 is controlled by the processing unit (corresponding to a control unit) 44 via the LD driver 11. If the intensity of the laser light changes, the amount of light (the amount of received light) reflected by the object WK and incident on the linear image sensor 15 also changes. Therefore, by adjusting the intensity of the laser light emitted from the laser diode 12 according to the light reflectance (brightness) of the object WK, saturation of accumulated charges in each pixel component of the linear image sensor 15 is avoided. However, the dynamic range can be fully utilized. Specifically, the intensity of the laser beam is adjusted by changing the pulse width or duty ratio of a pulse for driving the laser diode 12. Of course, the intensity of the laser beam may be adjusted by changing the pulse voltage (peak value).

上記のような処理部44による発光量(レーザ光の強さ)の制御は、一種のフィードバック制御として行われる。つまり、受光量に相当する値(例えばピーク値)が所定の目標値になるように、発光量(レーザ光の強さ)のフィードバック制御が行われる。発光量のフィードバック制御に代えて、図3に破線で示すように、増幅器46のゲイン(増幅率)のフィードバック制御を行ってもよい。あるいは、発光量のフィードバック制御と増幅器46の増幅率のフィードバック制御とを併用するようにしてもよい。例えば目標値に対するフィードバック量の誤差が所定の範囲内に収まっている間は増幅器46の増幅率のフィードバック制御を行い、フィードバック量の誤差が所定の範囲を超えたときは発光量のフィードバック制御を行うように構成することが可能である。   The control of the light emission amount (laser light intensity) by the processing unit 44 as described above is performed as a kind of feedback control. That is, feedback control of the light emission amount (laser light intensity) is performed so that a value (for example, peak value) corresponding to the light reception amount becomes a predetermined target value. Instead of the feedback control of the light emission amount, feedback control of the gain (amplification factor) of the amplifier 46 may be performed as shown by a broken line in FIG. Alternatively, the feedback control of the light emission amount and the feedback control of the amplification factor of the amplifier 46 may be used in combination. For example, the feedback control of the amplification factor of the amplifier 46 is performed while the error of the feedback amount with respect to the target value is within a predetermined range, and the feedback control of the light emission amount is performed when the error of the feedback amount exceeds the predetermined range. It can be configured as follows.

図4は、処理部44によるフィードバック制御の構成を示すブロック図である。処理部44によって、比較部441、操作量算出部442及び出力部443が構成されている。また、図3におけるLDドライバ11及びレーザダイオード12が制御対象51に相当し、リニアイメージセンサー15、読出し回路16、ADコンバータ47等がフィードバック回路(FB回路)52に相当する。この例では、受光量に相当する電圧信号のピーク値(のディジタル変換値)がフィードバック量(FB量)として処理部44の比較部441に入力される。   FIG. 4 is a block diagram showing a configuration of feedback control by the processing unit 44. The processing unit 44 includes a comparison unit 441, an operation amount calculation unit 442, and an output unit 443. Further, the LD driver 11 and the laser diode 12 in FIG. 3 correspond to the control target 51, and the linear image sensor 15, the readout circuit 16, the AD converter 47, and the like correspond to the feedback circuit (FB circuit) 52. In this example, the peak value (digital conversion value) of the voltage signal corresponding to the received light amount is input to the comparison unit 441 of the processing unit 44 as a feedback amount (FB amount).

比較部441は、あらかじめ定められた目標値とフィードバック量とを比較し、その誤差を出力する。この誤差に基づいて操作量算出部442が操作量を算出し、出力部443に与える。この操作量は、上述の発光量又は(及び)増幅率に相当する。操作量は、処理部44の出力部443から制御信号として制御対象51に与えられる。すなわち、LDドライバ11又は(及び)増幅器46に制御信号が与えられ、レーザダイオード12の発光量又は(及び)増幅器46の増幅率が制御される。そして、フィードバック回路52(リニアイメージセンサー15、読出し回路16、ADコンバータ47等)によって得られる受光量のピーク値が再び処理部44の比較部441にフィードバックされることにより、フィードバックループが形成されている。   The comparison unit 441 compares a predetermined target value with the feedback amount and outputs the error. Based on this error, the operation amount calculation unit 442 calculates the operation amount and provides it to the output unit 443. This operation amount corresponds to the above-described light emission amount or (and) amplification factor. The operation amount is given to the control target 51 as a control signal from the output unit 443 of the processing unit 44. That is, a control signal is given to the LD driver 11 or (and) the amplifier 46, and the light emission amount of the laser diode 12 or (and) the amplification factor of the amplifier 46 is controlled. Then, the peak value of the received light amount obtained by the feedback circuit 52 (the linear image sensor 15, the readout circuit 16, the AD converter 47, etc.) is fed back again to the comparison unit 441 of the processing unit 44, thereby forming a feedback loop. Yes.

本実施例の光学式変位計では、処理部(制御部)44は、上記のようなフィードバック制御を実行する第1モードと、フィードバック制御の結果得られる発光量又は増幅率(両方でもよい)の適正値を所定の倍数分だけ増加する第2モードとを切り替えて実行することができる。これにより、フィードバック制御のかかった第1モードではしきい値以下となり検出されない多重反射光による山部が、発光量又は増幅率が所定の倍数分だけ増加される第2モードでは多重反射光による山部が検出される場合がある。この場合は、受光波形に複数の山部が検出されることになる。   In the optical displacement meter of the present embodiment, the processing unit (control unit) 44 has a first mode in which the feedback control as described above is executed, and a light emission amount or an amplification factor (both may be obtained) obtained as a result of the feedback control. The second mode in which the appropriate value is increased by a predetermined multiple can be switched and executed. As a result, in the first mode where feedback control is applied, the peak portion due to the multiple reflected light which is not detected and becomes lower than the threshold value, and in the second mode where the light emission amount or amplification factor is increased by a predetermined multiple, the peak due to the multiple reflected light. May be detected. In this case, a plurality of peaks are detected in the received light waveform.

図5は、対象物の表面で生じた多重反射光が光学式変位計に戻って来てリニアイメージセンサーに受光されることにより、受光波形に複数の山部が現れる様子を模式的に示す図である。図示の例では、回路部品61及び62が実装されたプリント配線板60の上方に配置された光学式変位計からレーザ光L0が下方に向けて照射される。回路部品61のエッジ部で反射したレーザ光の一部は実線で示す一次反射光L1として光学式変位計へ直接戻って行き、リニアイメージセンサー15に受光される。その結果、受光波形63に第1の山部64が形成される。また、回路部品61のエッジ部で反射したレーザ光の他の一部は破線で示すように、隣接する別の回路部品62のエッジ部で更に反射した後、二次反射光(多重反射光)L2として光学式変位計へ戻って行き、リニアイメージセンサー15に受光される。その結果、受光波形63に第2の山部65が形成される。   FIG. 5 is a diagram schematically showing a state in which a plurality of peaks appear in the received light waveform when multiple reflected light generated on the surface of the object returns to the optical displacement meter and is received by the linear image sensor. It is. In the illustrated example, the laser light L0 is irradiated downward from an optical displacement meter disposed above the printed wiring board 60 on which the circuit components 61 and 62 are mounted. Part of the laser light reflected by the edge portion of the circuit component 61 returns directly to the optical displacement meter as primary reflected light L1 indicated by a solid line and is received by the linear image sensor 15. As a result, a first peak portion 64 is formed in the light receiving waveform 63. Further, another part of the laser light reflected at the edge portion of the circuit component 61 is further reflected at the edge portion of another adjacent circuit component 62 as shown by a broken line, and then secondary reflected light (multiple reflected light). L2 returns to the optical displacement meter and is received by the linear image sensor 15. As a result, a second peak 65 is formed in the light receiving waveform 63.

なお、プリント配線板60の表面で多重反射光L2を生じさせる物体61及び62が2個の回路部品ではなく、1個の回路部品の異なる部位であることも多い。例えば、複数のピンが出ている集積回路の隣接するピン又はそれらの半田付け部の間で多重反射光L2が発生することが多い。また、図5では分かりやすさのために、回路部品61及び62が実装されたプリント配線板60に向けて斜め上方からレーザ光L0が照射され、その反射光L1,L2が斜め上方に向かうように描かれているが、実際には上方から略真下に向けてレーザ光L0が照射され、その反射光L1,L2も略真上に向かうことになる。   In many cases, the objects 61 and 62 that generate the multiple reflected light L2 on the surface of the printed wiring board 60 are not two circuit components but different portions of one circuit component. For example, the multiple reflected light L2 is often generated between adjacent pins of an integrated circuit where a plurality of pins are protruding or between their soldered portions. Further, in FIG. 5, for easy understanding, the laser light L0 is irradiated obliquely from above toward the printed wiring board 60 on which the circuit components 61 and 62 are mounted, and the reflected lights L1 and L2 are directed obliquely upward. However, in practice, the laser light L0 is irradiated from the upper side to a position substantially directly below, and the reflected lights L1 and L2 are also directed substantially directly above.

また、図5に示す受光波形63では、二次反射光L2によって生じた第2の山部65は一次反射光L1によって生じた第1の山部64より小さい(ピーク値が低い)。しかし、常にそうなるとは限らない。回路部品61及び62の表面形状や材質、その他の条件によっては一次反射光L1によって生じた第1の山部64より二次反射光L2によって生じた第2の山部65のほうが大きくなる場合もあり得る。逆に、二次反射光L2が生じているにもかかわらず、その受光量がしきい値より小さいために第2の山部65が検出されない場合もある。   Further, in the light receiving waveform 63 shown in FIG. 5, the second peak 65 generated by the secondary reflected light L2 is smaller than the first peak 64 generated by the primary reflected light L1 (the peak value is low). However, this is not always the case. Depending on the surface shape, material, and other conditions of the circuit components 61 and 62, the second peak 65 generated by the secondary reflected light L2 may be larger than the first peak 64 generated by the primary reflected light L1. possible. On the contrary, there is a case where the second peak 65 is not detected because the amount of received light is smaller than the threshold value although the secondary reflected light L2 is generated.

図6は、発光量又は増幅率が所定の倍数分だけ増加される第2モードにおいて多重反射光による山部が検出される様子を示す図である。実線で示す受光波形63は第1モードにおける受光波形を示しており、第1の山部64のピーク値が目標値になるように発光量又は(及び)増幅率が制御されている。このとき、多重反射光による山部である第2の山部65は、そのピーク値がしきい値より低いために山部として検出されない。   FIG. 6 is a diagram illustrating a state in which a peak portion due to multiple reflected light is detected in the second mode in which the light emission amount or the amplification factor is increased by a predetermined multiple. A light reception waveform 63 indicated by a solid line indicates a light reception waveform in the first mode, and the light emission amount or (and) the amplification factor is controlled so that the peak value of the first peak portion 64 becomes a target value. At this time, the second peak 65, which is a peak due to multiple reflected light, is not detected as a peak because its peak value is lower than the threshold value.

他方、破線で示す受光波形63’は第2モードにおける受光波形を示しており、これは第1モードにおける適正な発光量又は(及び)増幅率を所定の倍数分だけ増加したときの受光波形となる。したがって、第2モードにおける受光波形63’は第1モードにおける受光波形63を所定の倍数分だけ縦軸方向に引き延ばしたものとなる。この結果、第2の山部65’のピーク値がしきい値より高くなり、処理部44によって山部として検出される。その代わりに、第1の山部64’のピーク値は飽和レベルにクランプされるので、第1の山部64’の重心位置の算出結果の精度は若干低下する。   On the other hand, a light reception waveform 63 ′ indicated by a broken line indicates a light reception waveform in the second mode, which is a light reception waveform when an appropriate light emission amount or (and) amplification factor in the first mode is increased by a predetermined multiple. Become. Therefore, the light receiving waveform 63 'in the second mode is the light receiving waveform 63 in the first mode extended in the vertical axis direction by a predetermined multiple. As a result, the peak value of the second peak 65 ′ becomes higher than the threshold value, and is detected as a peak by the processing unit 44. Instead, the peak value of the first peak portion 64 'is clamped at the saturation level, so the accuracy of the calculation result of the center of gravity position of the first peak portion 64' is slightly lowered.

なお、第2モードにおいて発光量又は(及び)増幅率を増加する率(所定の倍数)は、しきい値と信号処理回路のS/N比を考慮して適切な値に決定される。整数倍(例えば5倍)に限らず、小数を含む倍数(例えば5.5倍)であってもよい。このような第2モードと第1モードとを併用して行う計測処理のいくつかの実施例を以下に説明する。   In the second mode, the light emission amount and / or the rate of increasing the amplification factor (predetermined multiple) is determined to an appropriate value in consideration of the threshold value and the S / N ratio of the signal processing circuit. It is not limited to an integer multiple (for example, 5 times), and may be a multiple including a decimal number (for example, 5.5 times). Several embodiments of the measurement process performed by using both the second mode and the first mode will be described below.

図7は、本発明の実施例1に係る計測処理の流れを示すフローチャートである。処理部44は、ステップ#101において、第1モードにおけるフィードバック制御を実行し、発光量又は(及び)増幅率が適正値となるように調整する。続くステップ#102において、リニアイメージセンサー15の出力信号から得られた受光波形の山部を検出する。受光量に相当する電気信号(電圧)が一旦増加したのち減少する部分のうち、ピーク値がしきい値以上であり、幅があらかじめ定めた値を超えているものが山部として検出される。   FIG. 7 is a flowchart showing the flow of measurement processing according to Embodiment 1 of the present invention. In step # 101, the processing unit 44 performs feedback control in the first mode and adjusts the light emission amount or (and) the amplification factor to an appropriate value. In subsequent step # 102, a peak portion of the received light waveform obtained from the output signal of the linear image sensor 15 is detected. Among the portions where the electrical signal (voltage) corresponding to the amount of received light once increases and then decreases, those whose peak value is equal to or greater than the threshold and whose width exceeds a predetermined value are detected as peaks.

次のステップ#103において、受光波形に複数の山部が存在するか否かをチェックする。複数の山部が存在する場合はステップ#108に移行する。山部が1つだけの場合は、続くステップ#104において第2モードにおける発光量又は(及び)増幅率の増加を実行し、ステップ#105で再度複数の山部が存在するか否かをチェックする。複数の山部が存在する場合は、前回の計測結果(メモリ44aに記憶されている)を出力する。すなわち、前回の計測結果をホールドする。   In the next step # 103, it is checked whether or not there are a plurality of peaks in the received light waveform. If there are a plurality of peaks, the process proceeds to step # 108. If there is only one peak, in step # 104, the amount of light emission and / or amplification factor in the second mode is increased, and in step # 105, it is checked again whether there are multiple peaks. To do. When there are a plurality of peaks, the previous measurement result (stored in the memory 44a) is output. That is, the previous measurement result is held.

ステップ#105で山部が1つだけの場合は、続くステップ#106で山部の重心を求めて対象物までの距離を算出する計測処理を実行し、ステップ#107で計測結果のメモリ44aへの記憶と外部への出力を実行する。このように、本実施例では、第2モードにおいて発光量又は(及び)増幅率を増加した後も受光波形に山部が1つだけ存在する場合は、その山部に基づいて計測処理を実行し計測結果を出力するが、複数の山部が検出されたときは前回の計測結果を今回の計測結果として出力する(前回の計測結果をホールドする)。   If there is only one peak in step # 105, a measurement process is performed in step # 106 to calculate the center of gravity of the peak and calculate the distance to the object, and in step # 107, the measurement result is stored in the memory 44a. Memory and output to the outside. As described above, in this embodiment, when only one peak portion exists in the received light waveform even after the light emission amount or (and) the amplification factor is increased in the second mode, the measurement process is executed based on the peak portion. However, when a plurality of peaks are detected, the previous measurement result is output as the current measurement result (the previous measurement result is held).

なお、ステップ#106の計測処理とステップ#107のうちの計測結果の記憶をステップ#104の直前に行うようにしてもよい。すなわち第2モードにおける発光量又は(及び)増幅率の増加を実行する前のフィードバックが掛かった状態の受光波形で計測処理を実行して計測結果を記憶しておき、第2モードにおける発光量又は(及び)増幅率の増加を実行しても受光波形に山部が1つだけ存在する場合は、その計測結果を読み出して出力するようにすればよい。このほうが、前述のように山部の重心位置の算出精度(対象物までの距離の算出精度)が良くなる。   Note that the measurement process in step # 106 and the measurement result in step # 107 may be stored immediately before step # 104. That is, the measurement process is performed on the received light waveform in the state where the feedback before the execution of the increase in the light emission amount or (and) the amplification factor in the second mode is performed, the measurement result is stored, and the light emission amount in the second mode or (And) If only one peak exists in the received light waveform even when the amplification factor is increased, the measurement result may be read and output. As described above, the calculation accuracy of the center of gravity of the mountain portion (the calculation accuracy of the distance to the object) is improved.

また、本実施例の変形例として、発光量又は(及び)増幅率を増加する第2モードを実行しないで、フィードバック制御によって発光量及び増幅率が適正値に調整された状態のみで、受光波形に複数の山部が存在するか否かの判断結果に応じて計測処理を実行し、又は前回の計測結果をホールドするようにしてもよい。   Further, as a modification of the present embodiment, the light reception waveform is obtained only when the light emission amount and the amplification factor are adjusted to appropriate values by feedback control without executing the second mode for increasing the light emission amount or (and) the amplification factor. Depending on the determination result of whether or not there are a plurality of peaks, measurement processing may be executed, or the previous measurement result may be held.

図8は、本発明の実施例2に係る計測処理の流れを示すフローチャートである。実施例1と同様に、ステップ#201では第1モードにおけるフィードバック制御が実行され、ステップ#202で受光波形の山部が検出される。次のステップ#203において、受光波形に複数の山部が存在するか否かがチェックされ、複数の山部が存在する場合はステップ#206に移行する。山部が1つだけの場合は、続くステップ#204において第2モードにおける発光量又は(及び)増幅率の増加を実行し、ステップ#205で再度複数の山部が存在するか否かをチェックする。複数の山部が存在する場合は続くステップ#206に移行し、山部が1つだけの場合はステップ#206をスキップしてステップ#207に移行する。   FIG. 8 is a flowchart showing the flow of measurement processing according to Embodiment 2 of the present invention. Similar to the first embodiment, feedback control in the first mode is executed in step # 201, and a peak portion of the received light waveform is detected in step # 202. In the next step # 203, it is checked whether or not there are a plurality of peaks in the received light waveform. If there are a plurality of peaks, the process proceeds to step # 206. If there is only one peak, in the subsequent step # 204, the light emission amount or (and) the amplification factor is increased in the second mode, and in step # 205, it is checked again whether there are multiple peaks. To do. If there are a plurality of peaks, the process proceeds to the subsequent step # 206. If there is only one peak, the process skips step # 206 and proceeds to step # 207.

ステップ#206では、受光波形の最初に現れた山部が有効な山部として採用される。最初に現れた山部とは、例えば図6に示した受光波形63における時間軸(横軸)の左端に最も近い山部64を意味する。続くステップ#207において、山部の重心を求めて対象物までの距離を算出する計測処理を実行し、ステップ#208で計測結果のメモリ44aへの記憶と外部への出力を実行する。   In step # 206, the peak that appears first in the received light waveform is adopted as an effective peak. The peak that first appears means, for example, the peak 64 closest to the left end of the time axis (horizontal axis) in the received light waveform 63 shown in FIG. In the subsequent step # 207, a measurement process for calculating the center of gravity of the mountain and calculating the distance to the object is executed, and in step # 208, the measurement result is stored in the memory 44a and output to the outside.

このように、本実施例では、フィードバックの掛かった第1モードだけでなく、発光量又は(及び)増幅率を増加する第2モードでも受光波形に複数の山部が存在するか否かをチェックし、複数の山部が存在する場合は最初に現れた山部を有効な山部として採用する。なお、変形例として、最後に現れた山部、すなわち受光波形における時間軸(横軸)の右端に最も近い山部を有効な山部として採用するようにしてもよい。   As described above, in this embodiment, whether or not there are a plurality of peaks in the received light waveform is checked not only in the first mode in which feedback is applied, but also in the second mode in which the light emission amount or (and) the amplification factor is increased. However, when there are a plurality of ridges, the ridge that appears first is adopted as an effective ridge. As a modification, the peak that appears last, that is, the peak closest to the right end of the time axis (horizontal axis) in the received light waveform may be adopted as an effective peak.

図9は、本発明の実施例3に係る計測処理の流れを示すフローチャートである。実施例1と同様に、第1モードにおけるフィードバック制御を実行し、受光波形の山部を検出する。これらのステップについては図9では省略している。次のステップ#303において、受光波形に複数の山部が存在するか否かがチェックされ、複数の山部が存在する場合はステップ#307に移行する。山部が1つだけの場合は、続くステップ#304において第2モードにおける発光量又は(及び)増幅率の増加を実行し、ステップ#305で再度複数の山部が存在するか否かをチェックする。それでも山部が1つだけの場合は、その山部の重心を求めて対象物までの距離を算出する計測処理を実行し(ステップ#306)、計測結果の記憶と出力を実行する(ステップ#311)。複数の山部が存在する場合はステップ#307に移行する。   FIG. 9 is a flowchart showing the flow of measurement processing according to the third embodiment of the present invention. Similar to the first embodiment, feedback control in the first mode is executed to detect a peak portion of the received light waveform. These steps are omitted in FIG. In the next step # 303, it is checked whether or not there are a plurality of peaks in the received light waveform. If there are a plurality of peaks, the process proceeds to step # 307. If there is only one peak, in step # 304, the light emission amount or (and) the amplification factor is increased in the second mode, and in step # 305, it is checked again whether there are multiple peaks. To do. If there is still only one peak, a measurement process is performed to calculate the distance to the object by obtaining the center of gravity of the peak (step # 306), and the measurement result is stored and output (step #). 311). If there are a plurality of peaks, the process proceeds to step # 307.

ステップ#307では、受光波形の最初に現れた山部が有効な山部として採用される。最初に現れた山部の意味は実施例2で説明したとおりである。また、最初に現れた山部の代わりに最後に現れた山部を採用する変形例が可能な点も実施例2と同様である。続くステップ#308で山部の重心を求めて対象物までの距離を算出する計測処理を実行し、ステップ#309で前回の計測結果(メモリ44aに記憶されている)と今回の計測結果の比較を行う。両者の差があらかじめ定めた変化許容値以下である場合(ステップ#310のYes)は、その計測結果を有効な計測結果として記憶すると共に出力する(ステップ#311)。しかし、両者の差が変化許容値より大きい場合(ステップ#310のNo)は前回の計測結果を出力(ホールド)する(ステップ#312)。   In step # 307, the peak that appears first in the received light waveform is adopted as an effective peak. The meaning of the mountain that first appears is as described in the second embodiment. Further, the second embodiment is similar to the second embodiment in that a modified example in which the peak that appears last instead of the peak that appears first is possible. In the subsequent step # 308, a measurement process for calculating the center of gravity of the mountain portion and calculating the distance to the object is executed. In step # 309, the previous measurement result (stored in the memory 44a) is compared with the current measurement result. I do. When the difference between the two is equal to or less than the predetermined change allowable value (Yes in Step # 310), the measurement result is stored and output as an effective measurement result (Step # 311). However, if the difference between the two is larger than the allowable change value (No in step # 310), the previous measurement result is output (held) (step # 312).

このように、本実施例では、第2モードにおいて発光量又は(及び)増幅率を増加した後も受光波形に山部が1つだけ存在する場合は、その山部に基づいて計測処理を実行し計測結果を出力するが、複数の山部が検出されたときは最初又は最後に現れる山部を有効な山部として計測処理を実行する。そして、その計測結果を前回の計測結果と比較し、両者の差があらかじめ定めた変化許容値以下であれば計測結果が有効として出力されるが、両者の差が変化許容値より大きい場合は前回の計測結果が今回の計測結果として出力される(前回の計測結果がホールドされる)。   As described above, in this embodiment, when only one peak portion exists in the received light waveform even after the light emission amount or (and) the amplification factor is increased in the second mode, the measurement process is executed based on the peak portion. The measurement result is output, but when a plurality of peaks are detected, the measurement processing is executed with the peak that appears first or last as the effective peak. Then, the measurement result is compared with the previous measurement result, and if the difference between the two is less than or equal to a predetermined allowable change value, the measurement result is output as valid. Is output as the current measurement result (the previous measurement result is held).

本実施例の変形例として、ステップ#312において前回の計測結果を出力する代わりに、最初(又は最後)に現れる山部に隣接する山部(山部が2個の場合は他方の山部)を有効な山部として計測処理を実行し、計測結果を出力するようにしてもよい。   As a modification of the present embodiment, instead of outputting the previous measurement result in step # 312, the peak adjacent to the peak that appears first (or last) (or the other peak if there are two peaks) It is also possible to execute the measurement process using as an effective peak and output the measurement result.

また、更に別の変形例として、発光量又は(及び)増幅率を増加する第2モードを実行しないで、フィードバック制御によって発光量及び増幅率が適正値に調整された状態のみで、上記実施例又は変形例の処理を行ってもよい。すなわち、受光波形に複数の山部が存在する場合は最初(又は最後)に現れる山部に基づいて計測処理を実行し、計測結果を前回の計測結果と比較し、両者の差が変化許容値以下である場合は有効な測定結果として出力し、変化許容値より大きい場合は前回の計測結果をホールドし、あるいは隣接する他の山部を有効な山部として計測処理を実行し、計測結果を出力する。   Further, as another modification, the second embodiment is not executed in which the second mode for increasing the light emission amount or (and) the amplification factor is executed, but only in a state where the light emission amount and the amplification factor are adjusted to appropriate values by feedback control. Or you may perform the process of a modification. That is, when there are multiple peaks in the received light waveform, the measurement process is executed based on the peak that appears first (or last), the measurement result is compared with the previous measurement result, and the difference between the two is the allowable change value. If it is below, it is output as a valid measurement result, and if it is larger than the allowable change value, the previous measurement result is held, or the measurement process is executed with another adjacent peak as a valid peak. Output.

図10は、本発明の実施例4に係る計測処理の流れを示すフローチャートである。この実施例の計測処理は、図9に示した実施例3の計測処理とほぼ同じであるが、ステップ#409以降の処理が異なっている。つまり、複数の山部が検出されたときに、最初又は最後に現れる山部を有効な山部として計測処理を実行した後、その計測結果を前回の計測結果と比較する代わりに、次のような処理を実行する。この実施例では、前回の計測結果だけでなく、前々回の計測結果も処理部44のメモリ44aに記憶されている。処理部44は、前々回の計測結果に対する前回の計測結果の増加又は減少傾向(変化傾向)に基づいて、今回の計測結果が存在するであろう範囲(予測範囲)を推定する。そして、この予測範囲内に今回の計測結果がある場合(ステップ#410のYes)は、その計測結果を有効な計測結果として記憶すると共に出力する(ステップ#411)。しかし、今回の計測結果が予測範囲内に無い場合(ステップ#410のNo)は前回の計測結果を出力(ホールド)する(ステップ#412)。   FIG. 10 is a flowchart showing the flow of measurement processing according to the fourth embodiment of the present invention. The measurement process of this embodiment is almost the same as the measurement process of the third embodiment shown in FIG. 9, but the processes after step # 409 are different. In other words, when multiple peaks are detected, the measurement processing is executed with the first or last peak as the effective peak, and instead of comparing the measurement result with the previous measurement result, the following is performed: Perform appropriate processing. In this embodiment, not only the previous measurement result but also the previous measurement result is stored in the memory 44 a of the processing unit 44. The processing unit 44 estimates a range (predicted range) where the current measurement result will exist based on an increase or decrease tendency (change tendency) of the previous measurement result with respect to the measurement result of the previous time. If the current measurement result is within this prediction range (Yes in step # 410), the measurement result is stored and output as an effective measurement result (step # 411). However, if the current measurement result is not within the prediction range (No in step # 410), the previous measurement result is output (held) (step # 412).

この実施例の場合も実施例3と同様に、変形例として、ステップ#412において前回の計測結果を出力する代わりに、最初(又は最後)に現れる山部に隣接する山部(山部が2個の場合は他方の山部)を有効な山部として計測処理を実行し、計測結果を出力するようにしてもよい。   In the case of this embodiment, similarly to the third embodiment, as a modification, instead of outputting the previous measurement result in step # 412, the peak portion adjacent to the first (or last) peak portion (the peak portion is 2). In the case of a single piece, the measurement process may be executed by using the other peak portion as an effective peak portion, and the measurement result may be output.

また、更に別の変形例として、発光量又は(及び)増幅率を増加する第2モードを実行しないで、フィードバック制御によって発光量及び増幅率が適正値に調整された状態のみで、上記実施例又は変形例の処理を行ってもよい。すなわち、受光波形に複数の山部が存在する場合は最初(又は最後)に現れる山部に基づいて計測処理を実行し、前々回及び前回の計測結果の変化傾向から推定した予測範囲内に計測結果がある場合は有効な測定結果として出力し、予測範囲内に計測結果が無い場合は前回の計測結果をホールドし、あるいは隣接する他の山部を有効な山部として計測処理を実行し、計測結果を出力する。   Further, as another modification, the second embodiment is not executed in which the second mode for increasing the light emission amount or (and) the amplification factor is executed, but only in a state where the light emission amount and the amplification factor are adjusted to appropriate values by feedback control. Or you may perform the process of a modification. That is, when there are multiple peaks in the received light waveform, the measurement process is executed based on the peaks that appear first (or last), and the measurement results are within the prediction range estimated from the change trend of the previous and previous measurement results. If there is a measurement result, it is output as a valid measurement result, and if there is no measurement result within the predicted range, the previous measurement result is held, or measurement processing is executed with another adjacent peak as a valid peak. Output the result.

本発明の実施例に係る光学式変位計の計測原理を示す図である。It is a figure which shows the measurement principle of the optical displacement meter which concerns on the Example of this invention. 光学式変位計の外観を示す平面図及び側面図である。It is the top view and side view which show the external appearance of an optical displacement meter. 光学式変位計の主な回路構成を示すブロック図である。It is a block diagram which shows the main circuit structures of an optical displacement meter. 処理部によるフィードバック制御の構成を示すブロック図である。It is a block diagram which shows the structure of the feedback control by a process part. 対象物の表面で生じた多重反射光によって受光波形に複数の山部が現れる様子を模式的に示す図である。It is a figure which shows typically a mode that several peak parts appear in a light reception waveform by the multiple reflected light which arose on the surface of the target object. 発光量又は増幅率が所定の倍数分だけ増加される第2モードにおいて多重反射光による山部が検出される様子を示す図である。It is a figure which shows a mode that the peak part by multiple reflected light is detected in the 2nd mode in which light emission amount or amplification factor is increased only by predetermined multiple. 本発明の実施例1に係る計測処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the measurement process which concerns on Example 1 of this invention. 本発明の実施例2に係る計測処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the measurement process which concerns on Example 2 of this invention. 本発明の実施例3に係る計測処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the measurement process which concerns on Example 3 of this invention. 本発明の実施例4に係る計測処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the measurement process which concerns on Example 4 of this invention.

符号の説明Explanation of symbols

12 レーザダイオード(発光素子)
15 リニアイメージセンサー
44 処理部(計測処理部及び制御部)
63 受光波形
64,65 山部
12 Laser diode (light emitting element)
15 linear image sensor 44 processing unit (measurement processing unit and control unit)
63 Light reception waveform 64, 65 Mountain

Claims (8)

対象物に光を照射するための発光素子と、
複数の画素構成部のそれぞれが前記対象物からの光を受光して受光量に応じた電気信号を出力するイメージセンサーと、
前記イメージセンサーからの電気信号を処理して受光量の分布に相当する受光波形の山部を検出し、前記山部のピーク位置又は重心位置を求めることによって前記対象物までの距離又は前記対象物の変位を計測する計測処理を一定の周期で連続して実行し、その計測結果を記憶すると共に出力する計測処理部とを備え、
前記計測処理部は、前記受光波形に複数の山部が検出されたときに、最初又は最後に現れる山部を有効な山部として前記計測処理を実行し、今回の計測結果と前回の計測結果との差があらかじめ定めた変化許容値以下である場合は今回の計測結果を有効な計測結果として出力し、かつ、今回の計測結果と前回の計測結果との差があらかじめ定めた変化許容値より大きい場合は前回の計測結果を今回の計測結果として出力することを特徴とする光学式変位計。
A light emitting device for irradiating the object with light;
An image sensor that receives light from the object and outputs an electrical signal corresponding to the amount of light received by each of the plurality of pixel components,
The electrical signal from the image sensor is processed to detect the peak portion of the received light waveform corresponding to the distribution of the amount of received light, and the peak position or the center of gravity position of the peak portion is obtained, or the distance to the target object or the target object A measurement processing unit that continuously executes a measurement process for measuring the displacement of the sensor and stores the measurement result and outputs the measurement result,
When a plurality of peaks are detected in the received light waveform, the measurement processing unit executes the measurement process with the first or last peak as an effective peak, and the current measurement result and the previous measurement result If the difference between the current measurement result and the previous measurement result is less than or equal to a predetermined allowable change value, the current measurement result is output as a valid measurement result, and the difference between the current measurement result and the previous measurement result is greater than the predetermined change allowable value. An optical displacement meter that outputs the previous measurement result as the current measurement result if it is larger.
前記山部のピーク値が目標値になるように前記発光素子の発光量又は前記イメージセンサーからの電気信号を増幅する増幅器の増幅率のフィードバック制御を実行する第1モードと、前記フィードバック制御の結果得られる発光量又は増幅率の適正値を所定の倍数分だけ増加する第2モードとを切り替えて実行することが可能な制御部を更に備え、
前記計測処理部は、前記第2モードで得られた前記受光波形に基づいて前記計測処理を実行することを特徴とする請求項記載の光学式変位計。
A first mode for performing feedback control of the light emission amount of the light emitting element or the amplification factor of an amplifier for amplifying an electric signal from the image sensor so that the peak value of the peak portion becomes a target value; and a result of the feedback control A control unit capable of switching and executing a second mode in which an appropriate value of the obtained light emission amount or amplification factor is increased by a predetermined multiple;
The measurement processing unit, an optical displacement meter according to claim 1, wherein performing said measurement processing on the basis of the light reception waveform obtained in the second mode.
対象物に光を照射するための発光素子と、
複数の画素構成部のそれぞれが前記対象物からの光を受光して受光量に応じた電気信号を出力するイメージセンサーと、
前記イメージセンサーからの電気信号を処理して受光量の分布に相当する受光波形の山部を検出し、前記山部のピーク位置又は重心位置を求めることによって前記対象物までの距離又は前記対象物の変位を計測する計測処理を一定の周期で連続して実行し、その計測結果を記憶すると共に出力する計測処理部とを備え、
前記計測処理部は、前記受光波形に複数の山部が検出されたときに、最初又は最後に現れた山部を有効な山部として前記計測処理を実行し、今回の計測結果と前回の計測結果との差があらかじめ定めた変化許容値以下である場合は今回の計測結果を有効な計測結果として出力し、かつ、今回の計測結果と前回の計測結果との差があらかじめ定めた変化許容値より大きい場合は最初又は最後に現れた山部に隣接する山部を有効な山部として前記計測処理を実行し、その計測結果を出力することを特徴とする光学式変位計。
A light emitting device for irradiating the object with light;
An image sensor that receives light from the object and outputs an electrical signal corresponding to the amount of light received by each of the plurality of pixel components,
The electrical signal from the image sensor is processed to detect the peak portion of the received light waveform corresponding to the distribution of the amount of received light, and the peak position or the center of gravity position of the peak portion is obtained, or the distance to the target object or the target object A measurement processing unit that continuously executes a measurement process for measuring the displacement of the sensor and stores the measurement result and outputs the measurement result,
When a plurality of peaks are detected in the received light waveform, the measurement processing unit executes the measurement process by using the first or last peak as an effective peak, and the current measurement result and the previous measurement are performed. If the difference from the result is less than or equal to the predetermined change allowable value, the current measurement result is output as an effective measurement result, and the difference between the current measurement result and the previous measurement result is the predetermined change allowable value An optical displacement meter characterized in that if it is larger, the measurement processing is executed with the peak adjacent to the peak appearing first or last as an effective peak and the measurement result is output.
前記山部のピーク値が目標値になるように前記発光素子の発光量又は前記イメージセンサーからの電気信号を増幅する増幅器の増幅率のフィードバック制御を実行する第1モードと、前記フィードバック制御の結果得られる発光量又は増幅率の適正値を所定の倍数分だけ増加する第2モードとを切り替えて実行することが可能な制御部を更に備え、
前記計測処理部は、前記第2モードで得られた前記受光波形に基づいて前記計測処理を実行することを特徴とする請求項記載の光学式変位計。
A first mode for performing feedback control of the light emission amount of the light emitting element or the amplification factor of an amplifier for amplifying an electric signal from the image sensor so that the peak value of the peak portion becomes a target value; and a result of the feedback control A control unit capable of switching and executing a second mode in which an appropriate value of the obtained light emission amount or amplification factor is increased by a predetermined multiple;
The optical displacement meter according to claim 3, wherein the measurement processing unit executes the measurement process based on the received light waveform obtained in the second mode.
対象物に光を照射するための発光素子と、
複数の画素構成部のそれぞれが前記対象物からの光を受光して受光量に応じた電気信号を出力するイメージセンサーと、
前記イメージセンサーからの電気信号を処理して受光量の分布に相当する受光波形の山部を検出し、前記山部のピーク位置又は重心位置を求めることによって前記対象物までの距離又は前記対象物の変位を計測する計測処理を一定の周期で連続して実行し、その計測結果を記憶すると共に出力する計測処理部とを備え、
前記計測処理部は、前記受光波形に複数の山部が検出されたときに、最初又は最後に現れた山部を有効な山部として前記計測処理を実行し、今回の計測結果が、前々回の計測結果に対する前回の計測結果の増加又は減少傾向から推定した予測範囲内にある場合は今回の計測結果を有効な計測結果として出力し、かつ、今回の計測結果が前記予測範囲内に無い場合は前回の計測結果を今回の計測結果として出力することを特徴とする光学式変位計。
A light emitting device for irradiating the object with light;
An image sensor that receives light from the object and outputs an electrical signal corresponding to the amount of light received by each of the plurality of pixel components,
The electrical signal from the image sensor is processed to detect the peak portion of the received light waveform corresponding to the distribution of the amount of received light, and the peak position or the center of gravity position of the peak portion is obtained, or the distance to the target object or the target object A measurement processing unit that continuously executes a measurement process for measuring the displacement of the sensor and stores the measurement result and outputs the measurement result,
When a plurality of peaks are detected in the received light waveform, the measurement processing unit executes the measurement process with the first or last peak as an effective peak, and the current measurement result is If the measurement result is within the predicted range estimated from the increase or decrease tendency of the previous measurement result, the current measurement result is output as an effective measurement result, and the current measurement result is not within the prediction range An optical displacement meter that outputs the previous measurement result as the current measurement result.
前記山部のピーク値が目標値になるように前記発光素子の発光量又は前記イメージセンサーからの電気信号を増幅する増幅器の増幅率のフィードバック制御を実行する第1モードと、前記フィードバック制御の結果得られる発光量又は増幅率の適正値を所定の倍数分だけ増加する第2モードとを切り替えて実行することが可能な制御部を更に備え、
前記計測処理部は、前記第2モードで得られた前記受光波形に基づいて前記計測処理を実行することを特徴とする請求項記載の光学式変位計。
A first mode for performing feedback control of the light emission amount of the light emitting element or the amplification factor of an amplifier for amplifying an electric signal from the image sensor so that the peak value of the peak portion becomes a target value; and a result of the feedback control A control unit capable of switching and executing a second mode in which an appropriate value of the obtained light emission amount or amplification factor is increased by a predetermined multiple;
The optical displacement meter according to claim 5, wherein the measurement processing unit executes the measurement process based on the received light waveform obtained in the second mode.
対象物に光を照射するための発光素子と、
複数の画素構成部のそれぞれが前記対象物からの光を受光して受光量に応じた電気信号を出力するイメージセンサーと、
前記イメージセンサーからの電気信号を処理して受光量の分布に相当する受光波形の山部を検出し、前記山部のピーク位置又は重心位置を求めることによって前記対象物までの距離又は前記対象物の変位を計測する計測処理を一定の周期で連続して実行し、その計測結果を記憶すると共に出力する計測処理部とを備え、
前記計測処理部は、前記受光波形に複数の山部が検出されたときに、最初又は最後に現れた山部を有効な山部として前記計測処理を実行し、今回の計測結果が、前々回の計測結果に対する前回の計測結果の増加又は減少傾向から推定される予測範囲内にある場合は今回の計測結果を有効な計測結果として出力し、かつ、今回の計測結果が前記予測範囲内に無い場合は最初又は最後に現れた山部に隣接する山部を有効な山部として前記計測処理を実行し、その計測結果を出力することを特徴とする光学式変位計。
A light emitting device for irradiating the object with light;
An image sensor that receives light from the object and outputs an electrical signal corresponding to the amount of light received by each of the plurality of pixel components,
The electrical signal from the image sensor is processed to detect the peak portion of the received light waveform corresponding to the distribution of the amount of received light, and the peak position or the center of gravity position of the peak portion is obtained, or the distance to the target object or the target object A measurement processing unit that continuously executes a measurement process for measuring the displacement of the sensor and stores the measurement result and outputs the measurement result,
When a plurality of peaks are detected in the received light waveform, the measurement processing unit executes the measurement process with the first or last peak as an effective peak, and the current measurement result is When the current measurement result is output as an effective measurement result when it is within the prediction range estimated from the increase or decrease tendency of the previous measurement result with respect to the measurement result, and the current measurement result is not within the prediction range The optical displacement meter is characterized in that the measurement processing is executed with the peak adjacent to the peak appearing first or last as an effective peak and the measurement result is output.
前記山部のピーク値が目標値になるように前記発光素子の発光量又は前記イメージセンサーからの電気信号を増幅する増幅器の増幅率のフィードバック制御を実行する第1モードと、前記フィードバック制御の結果得られる発光量又は増幅率の適正値を所定の倍数分だけ増加する第2モードとを切り替えて実行することが可能な制御部を更に備え、
前記計測処理部は、前記第2モードで得られた前記受光波形に基づいて前記計測処理を実行することを特徴とする請求項記載の光学式変位計。
A first mode for performing feedback control of the light emission amount of the light emitting element or the amplification factor of an amplifier for amplifying an electric signal from the image sensor so that the peak value of the peak portion becomes a target value; and a result of the feedback control A control unit capable of switching and executing a second mode in which an appropriate value of the obtained light emission amount or amplification factor is increased by a predetermined multiple;
The optical displacement meter according to claim 7, wherein the measurement processing unit executes the measurement process based on the received light waveform obtained in the second mode.
JP2004212343A 2004-07-20 2004-07-20 Optical displacement meter Expired - Lifetime JP4474221B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004212343A JP4474221B2 (en) 2004-07-20 2004-07-20 Optical displacement meter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004212343A JP4474221B2 (en) 2004-07-20 2004-07-20 Optical displacement meter

Publications (2)

Publication Number Publication Date
JP2006030094A JP2006030094A (en) 2006-02-02
JP4474221B2 true JP4474221B2 (en) 2010-06-02

Family

ID=35896621

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004212343A Expired - Lifetime JP4474221B2 (en) 2004-07-20 2004-07-20 Optical displacement meter

Country Status (1)

Country Link
JP (1) JP4474221B2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4887057B2 (en) * 2006-02-17 2012-02-29 株式会社キーエンス Photoelectric sensor
JP5072336B2 (en) * 2006-12-07 2012-11-14 株式会社キーエンス Optical displacement sensor and optical displacement meter
JP4909036B2 (en) 2006-12-07 2012-04-04 株式会社キーエンス Optical displacement sensor
JP7375458B2 (en) 2019-10-23 2023-11-08 オムロン株式会社 Appearance inspection equipment and defect inspection method
JP7395950B2 (en) 2019-10-23 2023-12-12 オムロン株式会社 Visual inspection equipment and visual inspection method
JP7306310B2 (en) * 2020-04-15 2023-07-11 株式会社デンソー optical rangefinder
US20240200934A1 (en) * 2021-04-23 2024-06-20 Yamaha Hatsudoki Kabushiki Kaisha Measurement device and board inspection device

Also Published As

Publication number Publication date
JP2006030094A (en) 2006-02-02

Similar Documents

Publication Publication Date Title
US5319442A (en) Optical inspection probe
US20120177252A1 (en) Distance measuring apparatus, distance measuring method, and program
EP2416114A1 (en) Three-dimensional shape measuring device, three-dimensional shape measuring method, and three-dimensional shape measuring program
JP5858167B2 (en) Shape measuring apparatus, structure manufacturing system, shape measuring method, structure manufacturing method, program, and recording medium
US5200799A (en) System for optically inspecting conditions of parts packaged on substrate
JP5081559B2 (en) measuring device
KR101429838B1 (en) Displacement sensor
JP4474221B2 (en) Optical displacement meter
JP5974561B2 (en) Optical sensor and setting method for sensitivity adjustment control
JP4648665B2 (en) Optical displacement meter
JP4165010B2 (en) Optical displacement measuring device and method for correcting the amount of projected light
JP4728609B2 (en) Optical displacement meter
JP2016170053A (en) Laser radar device
JP4430466B2 (en) Optical displacement meter
US11287901B2 (en) Optical detecting device with lift height detection function
JP2009085739A (en) Shape measuring instrument and shape measuring method
JP2010122127A (en) Optical displacement sensor system, console, controller and program
JPH10332335A (en) Optical displacement gauge
JP2007271519A (en) Displacement sensor and shape measuring system
JPH02171608A (en) Distance/angle measuring apparatus
JP2005322996A (en) Image sensor
JP2001050711A (en) Optical displacement meter
JP2011075469A (en) Displacement sensor
JPS62298705A (en) Linear sensor light source controlling system
JP3013647B2 (en) Measuring device for discontinuous structures

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070703

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091118

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091201

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100127

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100308

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130312

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150