JP4359485B2 - Work coordinate system origin setting method and program and apparatus for surface texture measuring machine - Google Patents
Work coordinate system origin setting method and program and apparatus for surface texture measuring machine Download PDFInfo
- Publication number
- JP4359485B2 JP4359485B2 JP2003387972A JP2003387972A JP4359485B2 JP 4359485 B2 JP4359485 B2 JP 4359485B2 JP 2003387972 A JP2003387972 A JP 2003387972A JP 2003387972 A JP2003387972 A JP 2003387972A JP 4359485 B2 JP4359485 B2 JP 4359485B2
- Authority
- JP
- Japan
- Prior art keywords
- feature
- workpiece
- coordinate system
- data
- point
- 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 - Fee Related
Links
- 238000000034 method Methods 0.000 title claims description 73
- 238000012545 processing Methods 0.000 claims description 37
- 238000000605 extraction Methods 0.000 claims description 26
- 241001422033 Thestylus Species 0.000 description 28
- 238000004364 calculation method Methods 0.000 description 24
- 238000012937 correction Methods 0.000 description 22
- 238000005259 measurement Methods 0.000 description 19
- 238000004458 analytical method Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 7
- 101100537098 Mus musculus Alyref gene Proteins 0.000 description 6
- 101150095908 apex1 gene Proteins 0.000 description 6
- 238000004590 computer program Methods 0.000 description 5
- 238000013461 design Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 5
- 230000003746 surface roughness Effects 0.000 description 3
- 101100269674 Mus musculus Alyref2 gene Proteins 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000011156 evaluation Methods 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000000428 dust Substances 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000010355 oscillation Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Landscapes
- A Measuring Device Byusing Mechanical Method (AREA)
- Length Measuring Devices With Unspecified Measuring Means (AREA)
Description
本発明は、真円度測定機、表面粗さ測定機、輪郭形状測定機、三次元座標測定機などに代表される表面性状測定機の原点設定方法に関し、特にワーク座標系の原点設定方法とそのプログラムおよび装置に関する。 The present invention relates to an origin setting method for a surface texture measuring machine represented by a roundness measuring machine, a surface roughness measuring machine, a contour shape measuring machine, a three-dimensional coordinate measuring machine, etc. It relates to the program and apparatus.
真円度測定機、表面粗さ測定機、輪郭形状測定機などの表面性状測定機に用いられる検出器は、ワーク表面直交方向に揺動可能なレバー先端に触針を設けた構造のものが多く用いられ、この触針をワーク表面に当接させた状態で検出器をワークの表面方向に走査してデータを収集することによって測定データを得て、ワークの表面性状解析や座標あるいは寸法の測定を行う。
ところがこの構造の検出器は、揺動方向(表面粗さ測定機や輪郭形状測定機では上下方向のZ軸方向、真円度測定機では前後方向のX軸方向)の凹凸を検出する1軸検出器であるために、揺動直交方向(ワーク表面方向)のワーク表面データを得にくく、例えばワーク端部(ワークの角部で、通常は90°の角度をなす場合が多い)などの形状特徴点部位を直接的に検出することが困難であり、ひいてはワーク端部などの特徴点部位を検出して、この部位を正しくワーク座標系の原点に設定するには測定データに対して複雑な形状解析を伴う計算処理が必要であった。
Detectors used in surface texture measuring machines such as roundness measuring machine, surface roughness measuring machine, contour shape measuring machine, etc. have a structure in which a stylus is provided at the tip of a lever that can swing in the direction perpendicular to the workpiece surface. The measurement data is obtained by collecting data by scanning the detector in the direction of the surface of the workpiece while the stylus is in contact with the surface of the workpiece. Measure.
However, the detector of this structure is a single axis that detects irregularities in the swinging direction (up and down Z-axis direction for surface roughness measuring instruments and contour shape measuring machines, and front and rear X-axis direction for roundness measuring machines). Because it is a detector, it is difficult to obtain workpiece surface data in the direction perpendicular to the oscillation (workpiece surface direction). For example, the shape of the workpiece edge (the corner of the workpiece usually forms an angle of 90 °) It is difficult to directly detect the feature point part. Consequently, it is difficult to detect the feature point part such as the workpiece end and set this part as the origin of the work coordinate system. Calculation processing with shape analysis was required.
例えば、図16は先端に触針球Qを有するスタイラスSをワークWの表面に沿ってワーク端部Weを含んで走査してデータを収集した場合の、触針球Q中心点が描く走査軌跡K(実際は測定データの点列となる)を示し、矢印はその走査方向を示している。ここでスタイラス先端が球状ではなく、円弧状(部分球)である場合には、その円弧の中心点が描く走査軌跡となる。走査軌跡K上の点Aは接触球中心点の走査開始点を示し、点Dは走査終了点を示す。この図において、走査軌跡Kの点Aから点Bまでは、ワークWに接触球Qの下部先端が当接した状態で走査が行われるので、略直線状となる。走査軌跡Kの点Bから点Cの走査においては、ワーク端部Weに対して接触球Qの先端球形状部(斜側面部)がその当接点を徐々に変えていくので、その結果、点Bから点Cの走査軌跡は、接触球Qの球形状が転写された円弧形状となる。また、走査軌跡Kの点Cから点Dにおいては、接触球Qの左側面がワークWの右側面を走査することになるので、この範囲では走査軌跡Kは略直線状となる。 For example, FIG. 16 shows a scanning locus drawn by the center point of the stylus ball Q when data is collected by scanning the stylus S having the stylus ball Q at the tip along the surface of the workpiece W including the workpiece end portion We. K (actually a point sequence of measurement data) is indicated, and the arrow indicates the scanning direction. Here, when the tip of the stylus is not spherical but arcuate (partial sphere), a scanning locus is drawn by the center point of the arc. Point A on the scanning locus K indicates the scanning start point of the contact sphere center point, and point D indicates the scanning end point. In this figure, scanning from point A to point B on the scanning trajectory K is performed in a state where the lower end of the contact sphere Q is in contact with the workpiece W, and therefore is substantially linear. In the scanning from the point B to the point C of the scanning locus K, the tip spherical shape portion (slanted side surface portion) of the contact sphere Q gradually changes its contact point with respect to the workpiece end portion We. The scanning locus from B to point C has an arc shape to which the spherical shape of the contact sphere Q is transferred. In addition, from the point C to the point D of the scanning locus K, the left side surface of the contact sphere Q scans the right side surface of the workpiece W, and thus the scanning locus K is substantially linear in this range.
この走査軌跡Kの点Bあるいは点C、または直線ABと直線CDとの交点などをワーク座標系の原点とする場合、これら各点の座標値は、例えば、次のような手順で求める(例えば特許文献1)。
1)入力データの一部(初期あてはめ部分)を抽出する。
2)初期あてはめ部分について評価関数を用いてあてはめを実行する。
3)得られたパラメータから曲率半径Rを求める。
4)初期あてはめ部分の、曲率半径Rが所定値より大きければ線要素、小さければ円要素と判定する。
5)判定した要素(線または円)のパラメータを求める。
When the point B or point C of the scanning trajectory K or the intersection of the straight line AB and the straight line CD is set as the origin of the work coordinate system, the coordinate value of each point is obtained, for example, by the following procedure (for example, Patent Document 1).
1) Part of the input data (initial fitting part) is extracted.
2) Fit the initial fitting portion using the evaluation function.
3) The curvature radius R is obtained from the obtained parameters.
4) If the radius of curvature R of the initial fitting portion is larger than a predetermined value, it is determined as a line element, and if it is smaller, it is determined as a circular element.
5) The parameter of the determined element (line or circle) is obtained.
6)このパラメータとあてはめ関数を用いてεi=f(xi,yi)を求め、i=1から順に誤差チェックを行う。
7)iが初期あてはめ部分を超えた場合は、更にデータを順次追加しながら、誤差εiが所定値を超えるまで、2)〜6)を繰り返す。
8)誤差εiが所定値を超えたデータを始点として、再度1)〜7)を繰り返して、隣接する要素を決定する。
9)全入力データについて、1)〜8)を繰り返す。
10)幾何要素を延長して交点を求める。
11)入力データから交点までの距離が所定値を超えた場合は、隣接する要素の端点同士を接続線で接続する。
6) Using this parameter and the fitting function, εi = f (xi, yi) is obtained, and error check is performed in order from i = 1.
7) If i exceeds the initial fitting portion, steps 2) to 6) are repeated while further adding data sequentially until the error εi exceeds a predetermined value.
8) Repeat 1) to 7) again starting from the data where the error εi exceeds a predetermined value, and determine adjacent elements.
9) Repeat 1) to 8) for all input data.
10) Extend the geometric element to find the intersection.
11) When the distance from the input data to the intersection exceeds a predetermined value, the end points of adjacent elements are connected by a connection line.
あるいは、次のような手順で求める(例えば、特許文献2)。
1)入力データの一部(初期あてはめ部分)を抽出する。
2)初期あてはめ部分について複数の形状要素の評価関数を用いてあてはめを実行する。
3)初期あてはめ部分が形状要素毎に設けられた許容誤差内であれば、その形状要素として、初期あてはめ部分を延長して、2)〜3)を繰り返す。
4)初期あてはめ部分を最も延長できた形状要素を、第1の部分の形状要素とする。
5)第1の部分の次のデータを始点として、1)〜4)を繰り返す。
6)全入力データについて、1)〜5)を繰り返す。
7)隣接する幾何要素の双方をその要素として延長して交点を求める。
8)入力データから交点までの距離が所定値を超えた場合は、隣接する要素の端点同士を接続線で接続する。
Or it calculates | requires in the following procedures (for example, patent document 2).
1) Part of the input data (initial fitting part) is extracted.
2) For the initial fitting portion, fitting is performed using evaluation functions of a plurality of shape elements.
3) If the initial fitting portion is within the allowable error provided for each shape element, the initial fitting portion is extended as the shape element, and steps 2) to 3) are repeated.
4) The shape element that has been able to extend the initial fitting portion the most is the shape element of the first portion.
5) Repeat 1) to 4) starting from the next data of the first part.
6) Repeat 1) to 5) for all input data.
7) Extending both adjacent geometric elements as the elements to obtain the intersection.
8) When the distance from the input data to the intersection exceeds a predetermined value, the end points of adjacent elements are connected by a connection line.
さらに、走査軌跡の形状解析を行って形状要素の交点に基づいて原点を設定する方法がある(例えば、特許文献3)。
ところが、これらの形状解析を基本とした計算処理は複雑であるために、多くの計算処理時間が必要であったり、あるいは大きな計算プログラムを作成する必要があった。
Furthermore, there is a method of performing the shape analysis of the scanning locus and setting the origin based on the intersection of the shape elements (for example, Patent Document 3).
However, since the calculation processing based on these shape analysis is complicated, a lot of calculation processing time is required or a large calculation program needs to be created.
この問題は、工作機械や三次元座標測定機などに用いられる数値制御技術を、これらの表面性状測定機に応用しようとした時に必要となるワーク座標系の設定において、従来の形状解析に基づく交点算出方法によってワーク座標系の原点設定を行う必要から、多くの処理時間や大きな計算プログラムを作成する必要があるという問題がある。 This problem is the intersection point based on the conventional shape analysis in the setting of the work coordinate system required when applying the numerical control technology used for machine tools and 3D coordinate measuring machines to these surface texture measuring machines. Since it is necessary to set the origin of the workpiece coordinate system by the calculation method, there is a problem that it is necessary to create a lot of processing time and a large calculation program.
つまり数値制御技術によってワークの表面性状測定を行う場合には、ワーク座標系の原点が正確に定義されていることが前提となるが、表面性状測定では、通常、微細領域、微小形状を取り扱うことが多く、ワーク自体が非常に小さい場合もあって目視確認が難しく、ワークのどの点を原点とすれば良いかが非常にわかりにくい。このため、ワーク表面の比較的広い範囲にわたってデータを収集し、形状解析の結果から原点位置を求める必要があり、多くの測定時間を必要とする。また、形状解析処理自体にも多くの時間を必要としたが、特徴点領域の形状が複雑な場合には、単純形状で近似するか、あるいは複雑な形状解析処理を行う必要があるわりには、精度面では十分ではなかった。 In other words, when measuring the surface texture of a workpiece by numerical control technology, it is assumed that the origin of the workpiece coordinate system is accurately defined. However, surface texture measurement usually deals with fine regions and shapes. In many cases, the workpiece itself may be very small, making visual confirmation difficult, and it is very difficult to determine which point of the workpiece should be the origin. For this reason, it is necessary to collect data over a relatively wide range of the workpiece surface and obtain the origin position from the result of shape analysis, which requires a lot of measurement time. Also, the shape analysis process itself required a lot of time, but if the shape of the feature point area is complicated, it is necessary to approximate it with a simple shape or perform a complicated shape analysis process. The accuracy was not enough.
本願発明は、このような問題を解決するために、ワーク座標系原点を含む特徴領域を走査して、その結果に基づいてワーク座標系の原点設定を正確かつ容易に行える表面性状測定機の原点設定方法を提供する。 In order to solve such a problem, the present invention scans a feature area including the workpiece coordinate system origin, and based on the result, the origin of the surface texture measuring machine that can accurately and easily set the origin of the workpiece coordinate system. Provides a setting method.
前記目的を達成するために、本発明にかかる表面性状測定機のワーク座標系原点設定方法は、スタイラスによりワーク表面を走査して表面性状を測定する表面性状測定機のワーク座標系原点設定方法において、前記ワーク表面のワーク座標系原点に関連付けられた特徴領域を走査して収集した特徴領域データを入力する入力ステップと、前記特徴領域データを統計処理して特徴点の座標値を抽出する特徴点抽出ステップと、前記特徴点の座標値に基づいてワーク座標系の原点を設定する原点設定ステップとを備え、前記特徴点抽出ステップは、前記ワーク表面の走査を開始した点を始点とする特定領域における前記特徴領域データのばらつきに基づいて、前記特定領域の範囲を決定し、前記特定領域の範囲における特徴領域データを直線部分として抽出して、該直線部分を直線近似することで基準線を求め、前記基準線に平行で所定距離だけ離れたトリガーレベルを決定し、前記特徴領域データがこのトリガーレベルを超えた点を特徴点の座標値として決定することを特徴とする。 In order to achieve the above object, a workpiece coordinate system origin setting method for a surface texture measuring machine according to the present invention is a workpiece coordinate system origin setting method for a surface texture measuring machine that measures the surface texture by scanning the workpiece surface with a stylus. An input step for inputting feature region data collected by scanning a feature region associated with the workpiece coordinate system origin of the workpiece surface; and feature points for statistically processing the feature region data to extract coordinate values of feature points An extraction step; and an origin setting step for setting an origin of a workpiece coordinate system based on the coordinate value of the feature point, wherein the feature point extraction step is a specific area starting from a point where scanning of the workpiece surface is started the features based on the variation of the area data, determines the range of the specific area, linear portion of the characteristic region data in the range of the specific area in And to extract, seeking the reference line by linear approximation straight line portion, and determines the trigger level a predetermined distance parallel to the reference line, a point where the characteristic region data exceeds the trigger level It is characterized in that it is determined as a coordinate value of a feature point.
ここで、ワーク座標系原点に関連付けられた特徴領域とは、ワークの端部領域(ワークの角部領域)、凸部領域、凹部領域など、ワーク座標系の原点との関連が明確化された特徴点を含む領域をいう。さらに、ワーク座標系の原点との関連が明確化された特徴点、とはワーク座標系の原点に一致する特徴点や、ワーク座標系の原点との距離や位置関係が既知である特徴点をいう。
この発明によれば、特徴領域データから統計処理によって特徴点を抽出してワーク座標系の原点を設定できるので、複雑な解析計算処理を行うことなく、簡単な統計計算処理によって特徴点の座標値を抽出することができる。従って、特徴領域を走査して特徴領域データを入力しながら、同時的に入力済の特徴領域データに統計処理を施して、リアルタイムで特徴点の座標値を抽出することもできるので、簡単かつ迅速にワーク座標系の原点を設定することができる。
また、スタイラスの駆動方向と特徴領域を含むワーク表面方向が同一でない場合であっても、ワーク表面の非特徴領域を形成する直線部分から基準線を求め、この基準線に基づいて特徴点を正確に求めることができるので、ワーク表面の相対的な傾斜の影響を除外して正確な原点設定が可能となる。
さらに、ワーク表面の非特徴領域を形成する直線部分から基準線を求め、この基準線に平行なトリガーレベルを決定できるので、スタイラスがワークの端部領域などを走査して、そのデータの座標値が急変する点を、トリガーレベルとの比較によって容易に検出することができ、ワーク表面の非特徴領域と特徴領域との判別間違いを容易に防止できる。これによって特徴点の座標値を正確に決定することが容易になる。
Here, the feature region associated with the workpiece coordinate system origin is clearly related to the workpiece coordinate system origin, such as the workpiece end region (worker corner region), convex region, and concave region. An area including feature points. Furthermore, a feature point whose relation to the origin of the workpiece coordinate system is clarified is a feature point that matches the origin of the workpiece coordinate system or a feature point whose distance or positional relationship with the origin of the workpiece coordinate system is known. Say.
According to the present invention, since the feature point can be extracted from the feature area data by statistical processing and the origin of the work coordinate system can be set, the coordinate value of the feature point can be obtained by simple statistical calculation processing without performing complicated analysis calculation processing. Can be extracted. Therefore, it is possible to extract feature point coordinate values in real time by scanning the feature area and inputting the feature area data, and simultaneously performing statistical processing on the already inputted feature area data. The origin of the workpiece coordinate system can be set to.
Also, even if the stylus drive direction and the workpiece surface direction including the feature area are not the same, a reference line is obtained from the straight line part that forms the non-feature area on the workpiece surface, and the feature point is accurately determined based on this reference line. Therefore, it is possible to accurately set the origin by removing the influence of the relative inclination of the workpiece surface.
Furthermore, a reference line can be obtained from a straight line part that forms a non-characteristic area on the workpiece surface, and a trigger level parallel to the reference line can be determined, so that the stylus scans the edge area of the workpiece and the coordinate value of the data Can be easily detected by comparing with the trigger level, and it is possible to easily prevent a discrimination error between the non-characteristic area and the characteristic area on the workpiece surface. This facilitates accurate determination of the feature point coordinate values.
本発明にかかる表面性状測定機のワーク座標系原点設定方法は、スタイラスによりワーク表面を走査して表面性状を測定する表面性状測定機のワーク座標系原点設定方法において、前記ワーク表面のワーク座標系原点に関連付けられた特徴領域を走査して収集した特徴領域データを入力する入力ステップと、前記特徴領域データを統計処理して特徴点の座標値を抽出する特徴点抽出ステップと、前記特徴点の座標値に基づいてワーク座標系の原点を設定する原点設定ステップとを備え、前記特徴点抽出ステップは、前記ワーク表面の走査を開始した点を始点とする特定領域における前記特徴領域データのばらつきに基づいて、前記特定領域の範囲を決定し、前記特定領域の範囲における特徴領域データを直線部分として抽出して、該直線部分を直線近似することで基準線を求め、前記特徴領域データを微小範囲に分割し、前記各微小範囲における特徴領域データを直線近似することで傾斜線を求め、この傾斜線と前記基準線との成す角度が所定角度を超えたときの前記微小範囲における特徴領域データのうち、平均値に最も近い点を特徴点の座標値として決定することを特徴とする。The workpiece coordinate system origin setting method of the surface texture measuring machine according to the present invention is the workpiece coordinate system origin setting method of the surface texture measuring machine that measures the surface texture by scanning the workpiece surface with a stylus. An input step for inputting feature region data collected by scanning a feature region associated with the origin, a feature point extracting step for statistically processing the feature region data to extract coordinate values of feature points, and An origin setting step for setting the origin of the work coordinate system based on the coordinate value, and the feature point extraction step is performed to detect variations in the feature area data in a specific area starting from a point where scanning of the work surface is started. And determining a range of the specific region, extracting feature region data in the range of the specific region as a straight line portion, A reference line is obtained by linear approximation, the feature area data is divided into minute ranges, an inclination line is obtained by linear approximation of the feature area data in each minute area, and the inclination line and the reference line are formed. Of the feature region data in the minute range when the angle exceeds a predetermined angle, the point closest to the average value is determined as the coordinate value of the feature point.
この発明によれば、特徴領域データの各微小範囲の傾斜線を求めて、基準線と傾斜線との比較によって特徴点を求めることができるので、ワーク端部などの特徴領域の開始点の検出が容易になり、これを特徴点とすることができる。According to the present invention, since the feature line can be obtained by obtaining the slope line of each minute range of the feature area data and comparing the reference line and the slope line, detection of the start point of the feature area such as the workpiece end is detected. This can be made a feature point.
前記入力ステップにおいて、入力された特徴領域データは、前記表面性状測定機によって一義的に決定される機械座標系データであることが好ましい。In the input step, it is preferable that the input feature area data is machine coordinate system data uniquely determined by the surface texture measuring instrument.
ここで、機械座標系データとは、測定機が有する固有の原点によって決定される座標系に基づくデータであり、ワークの形状や大きさに依存することがない。そのため、ワーク毎に個別に決定される原点(ワーク座標系原点)に依存することがないので、正確なワーク座標系原点が決定されていない測定の段取り時点における特徴領域データ入力において、確実なデータ入力が行える。Here, the machine coordinate system data is data based on a coordinate system determined by a unique origin of the measuring machine and does not depend on the shape or size of the workpiece. Therefore, since it does not depend on the origin (work coordinate system origin) that is individually determined for each workpiece, accurate data can be input when inputting the feature area data at the time of measurement when the exact workpiece coordinate system origin is not determined. Input is possible.
前記入力ステップは、入力された前記特徴領域データから突出した特異点データを除去する特異点除去ステップを含むことが好ましい。
このようにすれば、電源電圧変動などに起因する各種の突出ノイズが特徴領域データに含まれている場合でも、これらを特異点データとして除去できるので、正確な特徴点の抽出が可能となる。
It is preferable that the input step includes a singular point removal step of removing singular point data protruding from the inputted feature region data.
In this way, even when various protruding noises caused by fluctuations in the power supply voltage are included in the feature area data, these can be removed as singular point data, so that accurate feature points can be extracted.
前記特異点除去ステップは、ロバスト推定法により前記特徴領域データから突出した特異点データを除去することが好ましい。
このようにすれば、従来のローパスフィルタ処理などで生じる位相歪みの発生がないので、特異点データを除去してもワークの特徴領域データが正確に保たれる。その結果、統計処理に誤差を生じず、正確な特徴点の抽出が可能となる。
In the singular point removal step, it is preferable to remove singular point data protruding from the feature region data by a robust estimation method.
In this way, since there is no occurrence of phase distortion caused by the conventional low-pass filter processing or the like, the feature region data of the workpiece can be accurately maintained even if the singular point data is removed. As a result, it is possible to accurately extract feature points without causing an error in statistical processing.
また、前記目的を達成するために、本発明にかかる表面性状測定機のワーク座標系原点設定プログラムは、これらの表面性状測定機のワーク座標系原点設定方法をコンピュータに実行させることを特徴とする。
このようにすれば、プログラムが小型となるので、安価なコンピュータであっても表面性状測定機のワーク座標系原点設定を高速かつ容易に行うことができる。
また、前記目的を達成するために、本発明にかかる表面性状測定機のワーク座標系原点設定装置は、スタイラスによりワーク表面を走査して表面性状を測定する表面性状測定機に用いられるワーク座標系原点設定装置において、前記ワーク表面のワーク座標系原点に関連付けられた特徴領域を走査して収集した特徴領域データを入力する入力手段と、前記特徴領域データを統計処理して特徴点の座標値を抽出する特徴点抽出手段と、前記特徴点の座標値に基づいてワーク座標系の原点を設定する原点設定手段とを備え、前記特徴点抽出手段は、前記ワーク表面の走査を開始した点を始点とする特定領域における前記特徴領域データのばらつきに基づいて、前記特定領域の範囲を決定し、前記特定領域の範囲における特徴領域データを直線部分として抽出して、該直線部分を直線近似することで基準線を求め、前記基準線に平行で所定距離だけ離れたトリガーレベルを決定し、前記特徴領域データがこのトリガーレベルを超えた点を特徴点の座標値として決定することを特徴とする。
また、前記目的を達成するために、本発明にかかる表面性状測定機のワーク座標系原点設定装置は、スタイラスによりワーク表面を走査して表面性状を測定する表面性状測定機に用いられるワーク座標系原点設定装置において、前記ワーク表面のワーク座標系原点に関連付けられた特徴領域を走査して収集した特徴領域データを入力する入力手段と、前記特徴領域データを統計処理して特徴点の座標値を抽出する特徴点抽出手段と、前記特徴点の座標値に基づいてワーク座標系の原点を設定する原点設定手段とを備え、前記特徴点抽出手段は、前記ワーク表面の走査を開始した点を始点とする特定領域における前記特徴領域データのばらつきに基づいて、前記特定領域の範囲を決定し、前記特定領域の範囲における特徴領域データを直線部分として抽出して、該直線部分を直線近似することで基準線を求め、前記特徴領域データを微小範囲に分割し、前記各微小範囲における特徴領域データを直線近似することで傾斜線を求め、この傾斜線と前記基準線との成す角度が所定角度を超えたときの前記微小範囲における特徴領域データのうち、平均値に最も近い点を特徴点の座標値として決定することを特徴とする。
このようにすれば、統計処理による簡便な抽出手段によって特徴点を抽出することができるので、廉価かつ高速に原点設定を行うことが可能となり、さらに、ワーク表面を走査しながらリアルタイムに特徴点を抽出してワーク座標系の原点を設定することができるので、測定段取りが高速化される。
In order to achieve the above object, a workpiece coordinate system origin setting program for a surface texture measuring machine according to the present invention causes a computer to execute a workpiece coordinate system origin setting method for these surface texture measuring machines. .
In this way, since the program becomes small, it is possible to set the work coordinate system origin of the surface texture measuring machine quickly and easily even with an inexpensive computer.
In order to achieve the above object, the workpiece coordinate system origin setting device of the surface texture measuring machine according to the present invention is a workpiece coordinate system used for a surface texture measuring machine that measures the surface texture by scanning the workpiece surface with a stylus. In the origin setting device, input means for inputting the feature area data collected by scanning the feature area associated with the workpiece coordinate system origin on the workpiece surface, and the feature area data are statistically processed to obtain the coordinate value of the feature point. A feature point extracting means for extracting, and an origin setting means for setting the origin of the workpiece coordinate system based on the coordinate value of the feature point, wherein the feature point extracting means starts the point where scanning of the workpiece surface is started on the basis of the variation in the characteristic region data, it determines the range of the specific area, linear portion of the characteristic region data in the range of the specific area in the specific area to be And to extract, seeking the reference line by linear approximation straight line portion, and determines the trigger level a predetermined distance parallel to the reference line, a point where the characteristic region data exceeds the trigger level It is characterized in that it is determined as a coordinate value of a feature point.
In order to achieve the above object, the workpiece coordinate system origin setting device of the surface texture measuring machine according to the present invention is a workpiece coordinate system used for a surface texture measuring machine that measures the surface texture by scanning the workpiece surface with a stylus. In the origin setting device, input means for inputting the feature area data collected by scanning the feature area associated with the workpiece coordinate system origin on the workpiece surface, and the feature area data are statistically processed to obtain the coordinate value of the feature point. A feature point extracting means for extracting, and an origin setting means for setting the origin of the workpiece coordinate system based on the coordinate value of the feature point, wherein the feature point extracting means starts the point where scanning of the workpiece surface is started Determining the range of the specific area based on the variation of the characteristic area data in the specific area Then, a reference line is obtained by linearly approximating the straight line portion, the feature area data is divided into minute ranges, and an inclined line is obtained by linearly approximating the feature area data in each minute range, Of the feature region data in the minute range when the angle formed between the inclined line and the reference line exceeds a predetermined angle, the point closest to the average value is determined as the coordinate value of the feature point.
In this way, feature points can be extracted by simple extraction means using statistical processing, so that it is possible to set the origin at a low cost and at a high speed. Further, the feature points can be found in real time while scanning the workpiece surface. Since the origin of the workpiece coordinate system can be set by extraction, the measurement setup is speeded up.
この発明によれば、特徴領域データから統計処理によって特徴点を抽出してワーク座標系の原点を設定できるので、複雑な解析計算処理を行うことなく、簡単な統計計算処理によって特徴点の座標値を抽出することができる。従って、特徴領域を走査して特徴領域データを入力しながら、同時的に入力済の特徴領域データに統計処理を施して、リアルタイムで特徴点の座標値を抽出することもできるので、簡単かつ迅速にワーク座標系の原点を設定することができるという効果を奏することができる。 According to the present invention, since the feature point can be extracted from the feature area data by statistical processing and the origin of the work coordinate system can be set, the coordinate value of the feature point can be obtained by simple statistical calculation processing without performing complicated analysis calculation processing. Can be extracted. Therefore, it is possible to extract feature point coordinate values in real time by scanning the feature area and inputting the feature area data, and simultaneously performing statistical processing on the already inputted feature area data. The origin of the workpiece coordinate system can be set to the effect.
以下、図面に基づき本発明の好適な実施形態について説明する。
図1には本発明の一実施形態にかかる表面性状測定機の原点設定装置の概略構成を示す。
同図に示す表面性状測定機の原点設定装置10は、データ入力部12、特徴点抽出部14、補正値格納部16、特徴点補正部18、原点設定部20を備える。
この原点設定装置10は独立した装置として構成し、従来の表面性状測定機と組み合せて用いても良いが、組み込み型として表面性状測定機と一体化可能な構成としても良い。いずれの場合も、データ入力部12は、この表面性状測定機のスタイラスをワーク表面方向へ相対的に走査した場合に、スタイラスによって検出されたデータ(Z軸データ)とワーク表面方向の走査位置データ(X軸データ)とを入力する。この走査位置の検出には、表面性状測定機のスタイラス走査機構に設けられたスケールが用いられる。また、原点設定部20で設定された原点情報は表面性状測定機へ出力され、表面性状測定機内に形成されるワーク座標系の原点設定に用いられる。
Preferred embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 shows a schematic configuration of an origin setting device for a surface texture measuring machine according to an embodiment of the present invention.
The
The
ここで、データ入力部12に入力されるデータは、表面性状測定機が有する固有の原点によって決定される機械座標系に基づくデータが用いられる。例えば、表面性状測定機のスタイラス走査機構に設けられたスケールの原点は、製造段階でのスケールを組み込みによって一義的に決定され、この原点を基準とした機械座標系が設定されることになる。また、スタイラスの機械座標系原点は、その検出出力の電気的ゼロ点とされる。
この原点設定装置10のデータ入力部12は、例えばスタイラスSの接触球Qを用いて真円度測定機によりワークの端部部位などの特徴領域を含む表面領域を走査して得た表面性状データを特徴領域データとして入力して図示しない記憶装置に格納する。このデータ入力部12は、特徴領域データから、所定領域のデータを削除する所定領域除去部、特異点データを除去する特異点除去部(いずれも図示せず)を備えるが、その機能詳細は後述する。
Here, the data input to the
The
特徴点抽出部14は、格納された特徴領域データを読み出して、統計処理を施して特徴点の抽出を行う。ここで行われる統計処理は、最大値・最小値の抽出、所定レベル(トリガーレベル)との大小比較、直線部分の基準線の算出、微小範囲における傾斜角度の算出などの、高速演算可能な統計処理であり、この統計処理の結果から、最適な特徴点の抽出を行う。
特徴点補正部18は、補正値格納部16に格納された補正値を用いて特徴点の座標値を補正する。この補正値は、例えば接触球Qの半径に基づくオフセットあるいは形状誤差に起因する補正値などで、前もって補正値格納部16に格納しておく。この補正値によって特徴点の座標値を補正することにより、スタイラスSの接触球Qの先端形状などに起因する誤差を補正する。
The feature
The feature
原点設定部20は、補正された特徴点の座標値に基づいてワーク座標系の原点を設定する。より具体的には、機械座標系における補正された特徴点の位置を原点(通常はゼロ点)とする新たなワーク座標系を形成するためのワーク座標系原点設定情報を出力する。表面性状測定機は、この出力された原点設定情報に基づいて、新たなワーク座標系を形成する。
例えば、真円度測定機の場合、円柱状ワークの下端面中心位置Oや、上端面中心位置あるいはワーク端部Weなどの位置をワーク座標系の原点とするが、この原点位置はワーク毎に自由に選択することができる。
The
For example, in the case of a roundness measuring machine, the lower end surface center position O of the cylindrical workpiece, the upper end surface center position, or the position of the workpiece end portion We is used as the origin of the workpiece coordinate system. You can choose freely.
本実施形態にかかる表面性状測定機の原点設定装置10は以上のように構成される。
この発明のワーク座標系原点設定は、この原点設定装置10を用いて行う他、コンピュータのプログラムにより、所定の処理手順を実行させて行うことも出来る。
図2はこの表面性状測定機の原点設定方法の一実施形態を示すフローチャートである。
ここでは、真円度測定機で円柱状ワークのワーク座標系原点を設定する場合について説明する。
The
The workpiece coordinate system origin setting according to the present invention can be performed by executing a predetermined processing procedure by a computer program in addition to the
FIG. 2 is a flowchart showing an embodiment of the origin setting method of the surface texture measuring machine.
Here, a case where the workpiece coordinate system origin of a cylindrical workpiece is set with a roundness measuring machine will be described.
説明の都合上、ワーク軸心方向をZ軸、ワーク軸心直交方向をX軸とし、ワークは軸心が垂直方向となるように真円度測定機に載置されるものとする。また、特徴領域データは、スタイラスSをワーク上端面でX軸方向(水平方向)へ走査し、ワーク端部We(上端面と円柱外側面との交点)を特徴点として抽出してワーク座標系原点設定行う場合を示すが、円柱外側面をワーク端部We方向へ走査してワーク端部を検出することもできる。 For convenience of explanation, it is assumed that the workpiece axis direction is the Z axis and the workpiece axis orthogonal direction is the X axis, and the workpiece is placed on the roundness measuring machine so that the axis is in the vertical direction. The feature area data is obtained by scanning the stylus S in the X-axis direction (horizontal direction) on the workpiece upper end surface, and extracting the workpiece end portion We (intersection of the upper end surface and the cylindrical outer surface) as a feature point. Although the case where the origin is set is shown, it is also possible to detect the workpiece end by scanning the outer surface of the cylinder in the direction of the workpiece end We.
まず、ステップ10で原点設定処理を開始する(S10)。
次に、ステップ20で真円度測定機の回転テーブルにワークを載置し、ワークの軸心が回転テーブルの回転軸心と一致するようにワークの姿勢を調整する(S20)。
ステップ30では、特徴領域データ入力のためのスタイラスSのワーク表面走査(原点サーチ)の開始点、終了点、速度などの原点サーチ条件と、ワークの設計値(半径Xd、長さZd)およびスタイラスSの接触球Qの半径r、除去すべき所定領域などを入力する。ここでは、原点サーチに先立って接触球QをワークWの上面(ワーク軸端)に接触させ、その位置を開始点としてワーク端部Weを超える原点サーチ距離(X軸方向距離)と原点サーチ速度を入力する。なお、ここでは、スタイラスのZ軸検出値が所定の限界値を超えた場合に、原点サーチを停止させることとする。
First, the origin setting process is started in step 10 (S10).
Next, in
In step 30, origin search conditions such as the start point, end point, and speed of the workpiece surface scan (origin search) of the stylus S for inputting characteristic area data, the workpiece design values (radius Xd, length Zd), and stylus The radius r of the contact sphere Q of S, a predetermined area to be removed, etc. are input. Here, prior to the origin search, the contact ball Q is brought into contact with the upper surface of the workpiece W (work shaft end), and the origin search distance (X-axis direction distance) and the origin search speed that exceed the workpiece end We with that position as the starting point. Enter. Here, the origin search is stopped when the Z-axis detection value of the stylus exceeds a predetermined limit value.
これらの条件に基づいてステップ40において原点サーチを行い、特徴領域データを入力する(S40)。ここで入力されたZ軸データとX軸データは内部記憶される。
特徴領域データから所定領域のデータを除去するように設定されている場合は、ステップ50において所定領域除去を行う(S50)。例えば、図5に示す走査軌跡K(特徴領域データ)中の領域U1が凹部である場合、この領域U1のデータを除去する。このU1領域の指定は、前もって設定しておいても良いが、走査軌跡Kの画面表示結果から、その都度指定することもできる。
その後、ステップ60において特異点除去を行う。
Based on these conditions, an origin search is performed in step 40, and feature area data is input (S40). The Z-axis data and X-axis data input here are stored internally.
If it is set to remove the data of the predetermined area from the characteristic area data, the predetermined area is removed in step 50 (S50). For example, when the region U1 in the scanning locus K (characteristic region data) shown in FIG. 5 is a concave portion, the data of this region U1 is removed. The designation of the U1 area may be set in advance, but can also be designated each time from the screen display result of the scanning locus K.
Thereafter, in step 60, singularity removal is performed.
特異点とは、走査軌跡K(特徴領域データ)において、突出した点をいうが、このような点は電気ノイズあるいはワーク表面上の埃に起因しており、統計処理上、有害であるために除去する。例えば図6に示す走査軌跡K(特徴領域データ)中に特異点N1を含む場合、直前の微小範囲U2のZ軸平均値と点N1のZ軸値が所定値以上離れている場合に特異点と判断してこれを削除する。しかし、確実な特異点の除去法としてはロバスト推定法を用いることが好ましい。
例えば特徴領域データの直線部ABにおける特異点データ除去は、次の手順によって処理する。(図7参照)
The singular point is a point that protrudes in the scanning locus K (characteristic region data), and such a point is caused by electrical noise or dust on the work surface, and is harmful to statistical processing. Remove. For example, when the scanning locus K (characteristic region data) shown in FIG. 6 includes the singular point N1, the singular point is obtained when the Z-axis average value of the immediately preceding minute range U2 and the Z-axis value of the point N1 are separated from each other by a predetermined value or more. And delete it. However, it is preferable to use a robust estimation method as a reliable singularity removal method.
For example, the singular point data removal in the straight line part AB of the feature area data is processed by the following procedure. (See Figure 7)
1)特徴領域データの直線部ABのデータを使って標準的な最小自乗法により直線ax+by+c=0のパラメータa、b、cを導出する。
2)各データに重みを付与する。すなわち、求められた直線に対して、該直線と直交する方向に重み関数V(d)を考え、該直線からの符号付き距離dからV(d)を算出し、そのV(d)をデータの重みとする。重み関数V(d)の一例は次の通りである。
dの絶対値>vの場合は、V(d)=0とする。
dがそれ以外の場合は、V(d)=(1−(d/v)2)2とする。
ここで、算出された重みは、直線算出の際にその測定データをどれだけ重要視するかの度合いになる。例えば算出された重みの値が大きい程、重要であると考えられる。
1) The parameters a, b, and c of the straight line ax + by + c = 0 are derived by the standard least square method using the data of the straight line part AB of the feature area data.
2) Give weight to each data. That is, with respect to the obtained straight line, a weight function V (d) is considered in a direction orthogonal to the straight line, V (d) is calculated from a signed distance d from the straight line, and the V (d) is calculated as data. The weight of. An example of the weight function V (d) is as follows.
If the absolute value of d> v, V (d) = 0.
When d is other than that, V (d) = (1− (d / v) 2 ) 2 .
Here, the calculated weight is a degree of importance of the measurement data when calculating the straight line. For example, the greater the calculated weight value, the more important.
3)前述のようにして各測定データに重みを付与した後、重み付き最小自乗法により直線を求め直す。
すなわち、各測定データに付与された重みを考慮しながら、重み付き最小自乗法を用いて直線を求め直す。これにより最初に求めた直線から近い測定データほど、直線計算に大きく寄与し、遠い測定データほど寄与しないで直線を求められるので、有効な直線が求まる確率を上げることができる。
4)ここで、直線を求める処理が、1回のみであると未だ十分な精度とはいえない直線が求められてしまう可能性があるため、前回求めた直線と今回求めた直線との比較を行い、大きな差があるか否かをチェックする。すなわち、大きな差がないと、求めた直線をあてはめ要素と決定し、大きな差があると、各測定データに重みを付与、重み付き最小自乗法による直線の求め直しを繰り返す。
3) After weighting each measurement data as described above, a straight line is obtained again by the weighted least square method.
That is, the straight line is re-determined using the weighted least square method, taking into account the weights assigned to the respective measurement data. As a result, the measurement data closer to the first obtained straight line contributes more to the straight line calculation, and the farther measurement data does not contribute to the straight line. Thus, the probability of obtaining an effective straight line can be increased.
4) Here, if the process for obtaining a straight line is performed only once, there is a possibility that a straight line that is not yet sufficiently accurate may be obtained. Therefore, the straight line obtained last time is compared with the straight line obtained this time. And check if there is a big difference. That is, if there is no large difference, the obtained straight line is determined as the fitting element, and if there is a large difference, a weight is given to each measurement data, and the straight line is again obtained by the weighted least square method.
5)決定されたあてはめ要素(直線)に対して、再度、重み関数V(d)を用いてV(d)=0となるデータを特異点データとして確定し、特徴領域データから除去する。
つまり、このようなロバストあてはめの結果から、特異点データの重みは、略ゼロとなるので、特異点データの推定と除去が容易に行える。
この結果、幾何要素から極端に離れている測定データ(特異点データ)に対して、標準的な最小自乗法では、あてはめ計算結果が引っ張られてしまうのに対し、本発明ではロバスト推定法を用いているので、あてはめ計算結果が幾何要素から極端に離れている測定データに引っ張られるのを大幅に低減することができる。
5) For the determined fitting element (straight line), again use the weighting function V (d) to determine data with V (d) = 0 as singular point data and remove it from the feature area data.
That is, from the result of such robust fitting, the weight of the singular point data is substantially zero, so that the singular point data can be estimated and removed easily.
As a result, for the measurement data (singular point data) that is extremely far from the geometric element, the fit calculation result is pulled in the standard least square method, whereas in the present invention, the robust estimation method is used. Therefore, it is possible to greatly reduce the fact that the fitting calculation result is pulled by measurement data that is extremely far from the geometric element.
なお、直線以外を求める際も同様のアルゴリズムで求めることができる。例えば円弧領域BCの場合は、その接線と直交する方向に重み関数V(d)を与える。
以上の原点サーチ(S40)、所定領域除去(S50)、特異点除去(S60)の各ステップは入力ステップを構成する。
次に、ステップ70において特徴領域データ(走査軌跡K)から特徴点抽出を行う(S70)。特徴点を抽出する方法は、各種の方法が可能であるが、ここでは、2つの実施例について説明する。
It should be noted that the same algorithm can be used to determine other than straight lines. For example, in the case of the arc region BC, the weight function V (d) is given in the direction orthogonal to the tangent line.
The above steps of origin search (S40), predetermined area removal (S50), and singularity removal (S60) constitute an input step.
Next, in
この特徴点抽出ステップにおける第1実施例のフローチャートを図3に示す。
ステップ701で特徴点抽出処理を開始する(S701)。
次に、ワークWの表面がX軸(あるいはZ軸)に対して傾斜している場合あるいはうねりを含んでいる場合には、ステップ702において基準線Ref1を算出する(S702)(図8参照)。この基準線Ref1の算出は特徴領域データの直線部分ABのデータを対象にして最小自乗法などを用いれば簡便に算出することができる。但し、この段階では点Bの位置が不明のため、例えば次のようにして直線部分を抽出する。
A flowchart of the first embodiment in this feature point extraction step is shown in FIG.
In step 701, feature point extraction processing is started (S701).
Next, when the surface of the workpiece W is inclined with respect to the X axis (or Z axis) or includes waviness, a reference line Ref1 is calculated in step 702 (S702) (see FIG. 8). . The calculation of the reference line Ref1 can be easily performed by using the least square method or the like for the data of the straight line portion AB of the feature area data. However, since the position of the point B is unknown at this stage, for example, a straight line portion is extracted as follows.
1)点Aを始点とする特定領域のデータを元にして第1の基準線を最小自乗法により求める。
2)この特定領域におけるばらつき(標準偏差)が所定値以内であれば特定領域を延長して、1)を再度実行する。
3)この特定領域におけるばらつき(標準偏差)が所定値を超えた場合、直前の特定領域を直線部分とする。
ワークWの表面のX軸(あるいはZ軸)に対する傾斜が無視できる場合は、原点サーチ開始点を含むX軸(あるいはZ軸)に平行な直線を基準線Ref1と見なしてもよい。
1) A first reference line is obtained by the method of least squares based on data of a specific area starting from point A.
2) If the variation (standard deviation) in the specific area is within a predetermined value, the specific area is extended and 1) is executed again.
3) When the variation (standard deviation) in the specific area exceeds a predetermined value, the immediately preceding specific area is set as a straight line portion.
When the inclination of the surface of the workpiece W with respect to the X axis (or Z axis) can be ignored, a straight line parallel to the X axis (or Z axis) including the origin search start point may be regarded as the reference line Ref1.
次に、この基準線Ref1に対して所定のトリガーレベルを設けて特徴点を抽出する場合は、基準線Ref1に平行で所定距離Lだけ離れたトリガーレベルRef2を決定する(図8参照)。
また、走査軌跡Kの傾斜角度によって特徴点を抽出する場合は、ステップ704において特徴領域データを微小範囲に分割し、各微小範囲の傾斜線を算出する(S704)。但し、必ずしも微小範囲を固定的に分割せず、移動平均を求める場合と同様に、順次微小範囲を相互に重複させながら移動させても良い。たとえば特徴領域データの内の1番目から4番目に相当する領域を第1の微小範囲とし、同データ2番目から5番目を第2の微小範囲とする方法でも良い。傾斜線の算出は、簡便には微小範囲始点と微小範囲終点の座標値から求めることもできる。
Next, when a predetermined trigger level is provided for the reference line Ref1, and a feature point is extracted, a trigger level Ref2 that is parallel to the reference line Ref1 and separated by a predetermined distance L is determined (see FIG. 8).
If feature points are extracted based on the inclination angle of the scanning trajectory K, the feature area data is divided into minute ranges in
次にステップ705において特徴点を決定して抽出する(S705)。
トリガーレベルを設けて特徴点を抽出する場合は、特徴領域データがトリガーレベルRef2を超えた点Tを特徴点と決定して抽出する(図8参照)。
また、走査軌跡Kの傾斜線によって特徴点を抽出する場合は、基準線Ref1と各微小範囲の傾斜線の成す角度を比較し、所定角度を超えた微小範囲の代表点(微小範囲の各点の平均値にもっとも近い座標値を持つ点)を特徴点と決定して抽出する(図9参照)。
特徴点抽出の第1実施例ではステップ706において処理を終了し(S706)、図2の特徴点補正量算出処理(S80)へ処理を移行する。
In step 705, feature points are determined and extracted (S705).
When a feature point is extracted by providing a trigger level, a point T at which the feature area data exceeds the trigger level Ref2 is determined as a feature point and extracted (see FIG. 8).
In addition, when extracting a feature point by the inclined line of the scanning locus K, the angle formed by the reference line Ref1 and the inclined line of each minute range is compared, and a representative point of each minute range exceeding each predetermined angle (each point of the minute range). (The point having the coordinate value closest to the average value) is determined as a feature point and extracted (see FIG. 9).
In the first example of feature point extraction, the process ends in step 706 (S706), and the process proceeds to the feature point correction amount calculation process (S80) of FIG.
次に特徴点抽出ステップの第2実施例のフローチャートを図4に示す。
まず、ステップ711で処理を開始する(S71)。
特徴点を特徴領域データの最大値あるいは最小値に基づいて決定する場合は、ステップ712において特徴領域データのZ軸データが最大値あるいは最小値となる点を算出する(S712)。
また、特徴点を特徴領域データの微小範囲の傾斜角度の変化率に基づいて決定する場合は、ステップ713において、各微小範囲の傾斜角度を算出し、それらの結果から各傾斜角度の変化率を算出する。この微小範囲およびその傾斜角度の算出方法は、図3のステップ704と同一の処理手順を用いて傾斜線のX軸に対する傾きを算出することができる。その後、例えば隣接する各微小範囲の傾斜角度相互間の変化率を求める。
Next, FIG. 4 shows a flowchart of the second embodiment of the feature point extraction step.
First, processing is started in step 711 (S71).
When the feature point is determined based on the maximum value or the minimum value of the feature region data, a point at which the Z-axis data of the feature region data becomes the maximum value or the minimum value is calculated in step 712 (S712).
When determining the feature point based on the change rate of the inclination angle of the minute range of the feature area data, in step 713, the inclination angle of each minute range is calculated, and the change rate of each inclination angle is calculated from those results. calculate. In this method of calculating the minute range and its inclination angle, the inclination of the inclination line with respect to the X axis can be calculated using the same processing procedure as
次に、ステップ714において特徴点を抽出して決定する(S714)。
特徴点を特徴領域データの最大値あるいは最小値に基づいて決定する場合は、ステップ712において求めた最大値あるいは最小値の点を特徴点と決定して抽出する。
また、特徴点を特徴領域データの微小範囲の傾斜角度の変化率に基づいて決定する場合は、ステップ713において算出した変化率が所定値以上あるいは最大値となる微小範囲の代表点、あるいは変化率が所定値以下あるいは最小値となる微小範囲の代表点を特徴点と決定して抽出する。ここで、傾斜角度の変化率が所定値以下あるいは最小値となる点としては、具体的には凸部の頂上付近や凹部の谷底付近がある。
Next, in step 714, feature points are extracted and determined (S714).
When the feature point is determined based on the maximum value or the minimum value of the feature area data, the point having the maximum value or the minimum value obtained in step 712 is determined as the feature point and extracted.
When the feature point is determined based on the change rate of the inclination angle of the minute range of the feature region data, the representative point of the minute range where the change rate calculated in step 713 is equal to or greater than a predetermined value or the maximum value, or the change rate. A representative point in a minute range in which is less than a predetermined value or a minimum value is determined as a feature point and extracted. Here, the point at which the rate of change of the inclination angle is a predetermined value or less or the minimum value is specifically near the top of the convex part or near the valley bottom of the concave part.
また、傾斜角度の変化率が所定値以上あるいは最大値となる点としては、直線部と凸部あるいは凹部との境界点付近がある。その他、必要に応じて、この傾斜角度の符号が変化した微小範囲の代表点を特徴点と決定して抽出することも出来る。図10に示す例では、凸部頂点B直前の微小範囲における登り角度θ1と、頂点B直後の微小範囲における下り角度θ2では、X軸に対する傾斜角度の符号が異なるので、点Bが凸部頂点であることが判定でき、この点を特徴点として抽出することができる。
特徴点抽出の第2実施例ではステップ715において処理を終了し(S715)、図2の特徴点補正量算出処理(S80)へ処理を移行する。
Further, the point at which the rate of change of the inclination angle is greater than or equal to a predetermined value or the maximum value is near the boundary point between the straight line and the convex or concave. In addition, if necessary, a representative point in a minute range in which the sign of the inclination angle is changed can be determined as a feature point and extracted. In the example shown in FIG. 10, the sign of the inclination angle with respect to the X axis is different between the climb angle θ1 in the minute range immediately before the convex vertex B and the downward angle θ2 in the minute range immediately after the vertex B. This point can be determined as a feature point.
In the second example of feature point extraction, the process ends in step 715 (S715), and the process proceeds to the feature point correction amount calculation process (S80) of FIG.
いずれかの方法によって特徴点が決定されると、その後、図2のステップ80において特徴点の補正量を算出する(S80)。
例えば図11に示すように、設計値(Xd、Zd)のワークWにおいて、点Oをワーク座標系の原点として設定する場合の特徴点補正量算出について説明する。つまり、スタイラスSの接触球Qの中心点が点Oに一致するようにスタイラスSを位置決めしたとすると、ワーク座標系の座標値が(0、0)となるようにワーク座標系の原点が設定される。ここで、接触球Qの半径rとトリガーレベルLは前もって与えられている。
When the feature point is determined by any of the methods, the feature point correction amount is calculated in step 80 of FIG. 2 (S80).
For example, as shown in FIG. 11, a feature point correction amount calculation in the case where the point O is set as the origin of the workpiece coordinate system in the workpiece W having the design value (Xd, Zd) will be described. That is, if the stylus S is positioned so that the center point of the contact sphere Q of the stylus S coincides with the point O, the origin of the work coordinate system is set so that the coordinate value of the work coordinate system becomes (0, 0). Is done. Here, the radius r and the trigger level L of the contact sphere Q are given in advance.
まず、L>=rの場合は、トリガーレベルLを超える点Tにおいて接触球Qの左側面がワークWの外周円筒部に接触した状態となる(図11参照)。ここで、特徴領域データ(走査軌跡K)がトリガーレベルLを超える点T(特徴点)の機械座標系の座標値をT(Xp、Zp)とすると、
Xp=Xd+r+x0 (1)
Zp=Zd−L+r+z0 (2)
を満足するようにx0、z0を決定する。ここで、x0、z0は機械座標系に対するX軸、Z軸のオフセットを示す。
また、L<rの場合は、トリガーレベルLを超える点Tにおいては、接触球Qとワーク端Weの位置関係は図12および図13に示す関係となる。
First, when L> = r, the left side surface of the contact sphere Q is in contact with the outer peripheral cylindrical portion of the workpiece W at a point T exceeding the trigger level L (see FIG. 11). Here, when the coordinate value of the machine coordinate system of the point T (feature point) where the characteristic area data (scanning trajectory K) exceeds the trigger level L is T (Xp, Zp),
Xp = Xd + r + x0 (1)
Zp = Zd−L + r + z0 (2)
X0 and z0 are determined so as to satisfy Here, x0 and z0 indicate offsets of the X axis and the Z axis with respect to the machine coordinate system.
When L <r, the positional relationship between the contact ball Q and the workpiece end We is the relationship shown in FIGS. 12 and 13 at a point T exceeding the trigger level L.
この場合は、
Xp=Xd+dX+x0 (3)
Zp=Zd−L+r+z0 (4)
を満足するようにx0、z0を決定する。
ここで、dXは、接触球Q先端部が略円形状であれば次式を用いて容易に算出できる。
(dX)2=r2−(r−L)2 (5)
スタイラスSの先端形状が、計算処理に適さない複雑な形状である場合には、トリガーレベルLに対応する個所のスタイラスSの補正値を前もって測定して設定しておく。例えば、スタイラスSの先端形状が図14に示すような形状の場合、Xm、Zmの値を補正値として設定しておけば良い。
in this case,
Xp = Xd + dX + x0 (3)
Zp = Zd−L + r + z0 (4)
X0 and z0 are determined so as to satisfy
Here, dX can be easily calculated using the following equation if the tip of the contact sphere Q is substantially circular.
(DX) 2 = r 2 − (r−L) 2 (5)
When the tip shape of the stylus S is a complicated shape that is not suitable for the calculation process, the correction value of the stylus S corresponding to the trigger level L is measured and set in advance. For example, if the tip shape of the stylus S is as shown in FIG. 14, the values of Xm and Zm may be set as correction values.
ここで、Zm=Lとなる位置で補正値を求めておく。このようなスタイラスSを用いた場合は、式(3)、式(4)は次のようになる。
Xp=Xd+Xm+x0 (6)
Zp=Zd−L+z0 (但し、L=Zm) (7)
この図の場合は、スタイラスQの先端部(最下部)中心が原点Oに位置決めされた時に、(0、0)となるワーク座標系が設定される。
なお、図11〜13はX軸方向に原点サーチを行う場合を示したが、Z軸方向に原点サーチを行う場合であっても同様に処理可能なことは勿論である(図15参照)。
Here, a correction value is obtained at a position where Zm = L. When such a stylus S is used, equations (3) and (4) are as follows.
Xp = Xd + Xm + x0 (6)
Zp = Zd−L + z0 (where L = Zm) (7)
In the case of this figure, a work coordinate system that is (0, 0) when the tip (lowermost) center of the stylus Q is positioned at the origin O is set.
11 to 13 show the case where the origin search is performed in the X-axis direction, it goes without saying that the same processing can be performed even when the origin search is performed in the Z-axis direction (see FIG. 15).
次に、ステップ90においてワーク座標系設定を行う(S90)。
機械座標系の座標値(Xc、Zc)に対して、ワーク座標系の座標値(Xw、Zw)は、式(1)〜式(4)、式(6)、式(7)を適用する場合は、次のように求める。
Xw=Xc−x0 (8)
Zw=Zc+L−z0 (9)
従って、X軸については(−x0)、Z軸については(L−z0)をワーク座標系原点設定情報として表面性状測定機に出力し、表面性状測定機側では、機械座標系の座標値(Xc、Zc)に対して式(8)、式(9)の処理を行えば、ワーク座標系における座標値(Xw、Zw)が求められる。ここで、Xw=0、Zw=0となる点がワーク座標系の原点となる。つまり、これによってワーク座標系の原点が設定されたことになる。
Next, in
The coordinate values (Xw, Zw) of the workpiece coordinate system apply the equations (1) to (4), (6), and (7) to the coordinate values (Xc, Zc) of the machine coordinate system. If you ask:
Xw = Xc−x0 (8)
Zw = Zc + L−z0 (9)
Accordingly, (−x0) for the X-axis and (L-z0) for the Z-axis are output to the surface texture measuring machine as work coordinate system origin setting information, and the coordinate value ( If the processing of Expressions (8) and (9) is performed on Xc, Zc), the coordinate values (Xw, Zw) in the workpiece coordinate system are obtained. Here, the point where Xw = 0 and Zw = 0 is the origin of the workpiece coordinate system. That is, the origin of the workpiece coordinate system is set by this.
ここでは、ワークWの設計値(Xd、Zd)を与えて、ワークWの下端面の中心位置が原点となるワーク座標系の設定方法を示したが、これに限らず、任意の点を原点に設定することができる。例えば、式(1)、式(2)において、ワークWの設計値Xd、Zdを共にゼロと置いて、x0とz0を決定すれば、図11のワーク端面Weを原点としたワーク座標系が設定される。
ここで、特徴点補正量算出(S80)、ワーク座標系設定(S90)の各ステップは原点設定ステップを構成する。
Here, the design value (Xd, Zd) of the workpiece W is given and the method of setting the workpiece coordinate system in which the center position of the lower end surface of the workpiece W is the origin is shown. However, the present invention is not limited to this. Can be set to For example, in equations (1) and (2), if the design values Xd and Zd of the workpiece W are both set to zero and x0 and z0 are determined, the workpiece coordinate system with the workpiece end surface We in FIG. Is set.
Here, each step of feature point correction amount calculation (S80) and workpiece coordinate system setting (S90) constitutes an origin setting step.
この実施形態によれば次の効果がある。
(1)ワーク表面のワーク座標系原点を含む特徴領域を走査して特徴領域データを入力し、この特徴領域データを統計処理して特徴点の座標値を抽出し、この特徴点の座標値に基づいてワーク座標系の原点を設定するので、複雑な形状解析処理を行う必要がなくなり、簡単な統計計算処理で原点設定を行えるから、原点設定処理が高速化される。
(2)この原点設定方法をコンピュータのプログラムとする場合にも、簡単な統計計算処理で原点設定を行えるから、プログラムを小型かつ高速処理可能な原点設定プログラムとすることができる。
This embodiment has the following effects.
(1) The feature region including the workpiece coordinate system origin on the workpiece surface is scanned, the feature region data is input, the feature region data is statistically processed to extract the coordinate value of the feature point, and the coordinate value of the feature point is extracted. Since the origin of the workpiece coordinate system is set based on this, it is not necessary to perform complicated shape analysis processing, and the origin can be set by simple statistical calculation processing, so that the origin setting processing is speeded up.
(2) Even when this origin setting method is a computer program, the origin can be set by a simple statistical calculation process, so that the program can be a small and high-speed origin setting program.
(3)ワーク座標系の座標値を、機械座標系の座標値にオフセットを加算して求めるので、計数回路のプリセットなどが不要となり、装置の小型化を図ることができる。
(4)ノイズなどによって発生する特異点を除去できるほか、ワーク座標系の原点付近における凹凸領域のデータを除外して統計処理計算を行えるので、特徴点抽出精度が向上する。
(5)特徴点抽出の方法として、トリガーレベルにおける機械座標系データに基づいて特徴点の座標値を決定するとともに、このトリガーレベルに応じた補正値によってこの特徴点の座標値を補正してワーク座標系の原点を設定するので、スタイラス先端形状が球形状などの単純形状ではないスタイラスであっても本発明を実施できる。
(3) Since the coordinate value of the workpiece coordinate system is obtained by adding an offset to the coordinate value of the machine coordinate system, it is not necessary to preset the counting circuit, and the apparatus can be miniaturized.
(4) In addition to removing singular points caused by noise and the like, statistical processing calculation can be performed by excluding uneven area data in the vicinity of the origin of the work coordinate system, thereby improving the feature point extraction accuracy.
(5) As a feature point extraction method, the coordinate value of the feature point is determined based on the machine coordinate system data at the trigger level, and the coordinate value of the feature point is corrected by the correction value corresponding to the trigger level. Since the origin of the coordinate system is set, the present invention can be implemented even when the stylus tip shape is not a simple shape such as a spherical shape.
(6)特徴領域データから直線部分を抽出して基準線を求めると共に、微小範囲の傾斜線がこの基準線との成す角度に基づいて特徴点を決定するので、ワーク表面の平均的な面を基準にして凸部や凹部あるいは端部などの特徴点を抽出することができる。また、微小範囲の傾斜角度の変化率に基づいて特徴点を抽出することができる。従って、ワーク表面上の様々な特徴点を原点設定のための特徴点として抽出することが出来るので、多種類のワークにおいて本発明を実施できる。
このように本発明によれば、ワーク座標系の原点設定を正確かつ容易に行うことができるが、本発明はこれらの実施形態に限定されるものではない。
(6) A straight line portion is extracted from the feature area data to obtain a reference line, and a feature point is determined based on an angle formed by a slant line in a minute range with the reference line. Feature points such as convex portions, concave portions, or end portions can be extracted based on a reference. In addition, feature points can be extracted based on the change rate of the tilt angle in a minute range. Accordingly, since various feature points on the workpiece surface can be extracted as feature points for setting the origin, the present invention can be implemented in many types of workpieces.
As described above, according to the present invention, the origin of the work coordinate system can be set accurately and easily, but the present invention is not limited to these embodiments.
例えば、図11における原点サーチは点Aから点Dまでの1回のみで原点設定を行ったが、複数回の原点サーチを行ったのち、抽出された複数の特徴点を平均して、その座標値を決定すれば特徴点抽出精度が向上する。
また、図11においては、ワークWの上端面を図中左から右方向へ原点サーチする例を示したが、これに代えて図中右から左方向へ原点サーチしても良い。
For example, in the origin search in FIG. 11, the origin is set only once from the point A to the point D. However, after the origin search is performed a plurality of times, the extracted feature points are averaged and the coordinates are obtained. If the value is determined, the feature point extraction accuracy is improved.
11 shows an example in which the origin search is performed on the upper end surface of the workpiece W from the left to the right in the drawing. Alternatively, the origin search may be performed from the right to the left in the drawing.
さらに、例えば図11において右側上部のワーク端部Weを原点サーチするほか、左側上部のワーク端面も原点サーチして両端部の特徴点を抽出することによって、ワークWの幅寸法(ここでは円柱状ワークの直径寸法)を求めても良い。また、ワークWの上面座標値と回転テーブル上面(ワーク載置面)の座標値を測定して両者の差を求めてワークWの軸線方向の長さ寸法を求めても良い。このようにすればワークWの設計値が未知であっても実測寸法に基づいて本発明を実施できる。 Further, for example, in FIG. 11, in addition to the origin search of the upper right workpiece end We, the left upper workpiece end surface is also origin searched to extract feature points at both ends, thereby obtaining the width dimension of the workpiece W (here, a cylindrical shape). You may obtain | require the diameter dimension of a workpiece | work. Alternatively, the upper surface coordinate value of the workpiece W and the coordinate value of the upper surface of the rotary table (work placement surface) may be measured to obtain the difference between them to determine the axial dimension of the workpiece W. In this way, the present invention can be implemented based on the actually measured dimensions even if the design value of the workpiece W is unknown.
また、前記のワークWの右側上部のワーク端部Weと左側上部のワーク端部を求めて両者の特徴点の中央位置をX軸方向のワーク座標系原点として設定しても良い。
さらに、真円度測定機におけるワーク座標系原点設定では、回転テーブルを複数の回転角度位置に固定して、それぞれの特徴点抽出を行い、ワーク座標系原点を回転テーブル角度位置に関連付けて設定しても良い。このようにすれば、ワーク座標系原点が回転テーブルの回転軸心上にない場合であっても、回転テーブルの回転角度に応じて動的にワーク座標系を変更できるので、複雑な形状のワークを測定することも可能になる。この場合、具体的には回転テーブルの回転角度に応じた、オフセット(x0、z0)をそれぞれ求めておき、回転角度に応じてこのオフセットを変更することでワーク座標系の動的切換えが可能になる。
Alternatively, the workpiece end We at the upper right side and the workpiece end at the upper left side of the workpiece W may be obtained, and the center position of both feature points may be set as the workpiece coordinate system origin in the X-axis direction.
Furthermore, in the workpiece coordinate system origin setting in the roundness measuring machine, the rotation table is fixed at a plurality of rotation angle positions, each feature point is extracted, and the workpiece coordinate system origin is set in association with the rotation table angle position. May be. In this way, even if the workpiece coordinate system origin is not on the rotation axis of the rotary table, the workpiece coordinate system can be changed dynamically according to the rotation angle of the rotary table, so a workpiece with a complicated shape can be obtained. Can also be measured. In this case, specifically, the offset (x0, z0) corresponding to the rotation angle of the rotary table is obtained, and the workpiece coordinate system can be dynamically switched by changing the offset according to the rotation angle. Become.
回転テーブルに限らず、ワークとスタイラスの相対駆動を複数の駆動軸によって行える表面性状測定機では、各駆動軸毎に同様にワーク座標系の動的切換えを行っても良い。
また、図2から図4におけるフローチャートの処理手順をコンピュータを用いて実行する場合に、所定のデータを前もってメモリーに格納しておき、本発明のワーク座標系の原点設定を自動で行っても良い。
さらに、これらの実施形態においては、二次元の表面性状測定を行って二次元のワーク座標系原点を設定する方法を主に示したが、三次元の表面性状測定を行って三次元のワーク座標系原点を設定しても良い。
Not only the rotary table but also a surface texture measuring machine capable of relatively driving a workpiece and a stylus with a plurality of drive axes, the work coordinate system may be dynamically switched for each drive axis in the same manner.
Further, when the processing procedures of the flowcharts in FIGS. 2 to 4 are executed using a computer, predetermined data may be stored in a memory in advance, and the origin of the work coordinate system of the present invention may be automatically set. .
Furthermore, in these embodiments, the method of setting the origin of the two-dimensional workpiece coordinate system by performing the two-dimensional surface texture measurement is mainly shown, but the three-dimensional workpiece coordinates are measured by performing the three-dimensional surface texture measurement. The system origin may be set.
これらによってワークの任意の位置を原点に設定できるので、原点設定の自由度が向上し、複雑な形状のワークに対しても効率のよい測定プログラム作成が可能になるばかりではなく、走査・収集したデータ解析の効率化あるいは解析結果の利用性においても格段の能率向上が可能になる。
さらに、スタイラスを複数切替えて用いる場合には、スタイラス毎の補正値をメモリーに格納しておき、これらを自動または手動によって切り替えて用いても良い。これによって、スタイラス自動交換装置が併用された場合でも、補正値の自動切替えが可能になる。
These allow you to set an arbitrary position of the workpiece as the origin, so the freedom of setting the origin is improved, and it is possible not only to create an efficient measurement program even for workpieces with complicated shapes, but also to scan and collect The efficiency of data analysis or the utilization of analysis results can be improved significantly.
Further, when a plurality of styluses are used, correction values for each stylus may be stored in a memory, and these may be used automatically or manually. As a result, even when the stylus automatic changer is used in combination, the correction value can be automatically switched.
また、本実施形態においては、スタイラスをワークに当接して走査・測定を行う表面性状測定機について説明したが、これに限らず、スタイラス測定特性(物理的な先端幾何形状に限らず、検出直線性や不感帯などのスタイラスの測定特性を含む)が走査・測定データに転写されるものであれば、非接触型の測定機であっても本発明を実施できることは言うまでもない。
また、本発明による表面性状測定機のワーク座標系原点設定装置は表面性状測定機と一体に構成されても良く、コンピュータのプログラムを実行して、入力手段、特徴点抽出手段および原点設定手段を構成するものであっても良い。
Further, in the present embodiment, the surface texture measuring machine that performs scanning / measurement by bringing the stylus into contact with the workpiece has been described. However, the present invention is not limited to this, and the stylus measurement characteristics (not limited to the physical tip geometry, but the detection straight line) Needless to say, the present invention can be implemented even with a non-contact type measuring device as long as the measuring characteristics of the stylus such as the sexuality and the dead zone are transferred to the scanning / measurement data.
Further, the workpiece coordinate system origin setting device of the surface texture measuring machine according to the present invention may be configured integrally with the surface texture measuring machine, and the computer program is executed to provide the input means, the feature point extracting means, and the origin setting means. It may be configured.
また、このコンピュータのプログラムは言語形式や実行形態に限定されず、いかなる高級言語、あるいはインタープリタ形態などの中間言語を生成するものであっても良い。
さらに、このコンピュータのプログラムは、表面性状測定機内に常駐せず、必要な場合に通信経路を経由して読込むものであっても良い。本発明によるワーク座標系の原点設定プログラムは計算処理が単純で小型化に適するため、このような実行形態にも適する。
The computer program is not limited to a language format or execution form, and may be any high-level language or intermediate language such as an interpreter form.
Further, the computer program may not be resident in the surface texture measuring machine but may be read via a communication path when necessary. Since the work coordinate system origin setting program according to the present invention is simple in calculation processing and suitable for miniaturization, it is also suitable for such an execution form.
以上説明したように本発明にかかる表面性状測定機のワーク座標系原点設定方法とそのプログラムおよび装置によれば、1軸検出器を用いた表面性状測定機によってワーク表面の特徴点を簡便な統計処理によって抽出することができ、その特徴点に基づいてワーク座標系の原点設定を正確かつ容易に行える。 As described above, according to the workpiece coordinate system origin setting method and its program and apparatus for the surface texture measuring machine according to the present invention, the feature points of the workpiece surface can be easily calculated by the surface texture measuring machine using the single axis detector. It can be extracted by processing, and the origin of the workpiece coordinate system can be set accurately and easily based on the feature points.
10 表面性状測定機の原点設定装置
12 データ入力部
14 特徴点抽出部
16 補正値格納部
18 特徴点補正部
20 原点設定部
K 走査軌跡
S スタイラス
Q 接触球
W ワーク
We ワーク端部
DESCRIPTION OF
K scanning trajectory
S stylus
Q contact ball
W Work
We Work edge
Claims (8)
前記ワーク表面のワーク座標系原点に関連付けられた特徴領域を走査して収集した特徴領域データを入力する入力ステップと、
前記特徴領域データを統計処理して特徴点の座標値を抽出する特徴点抽出ステップと、
前記特徴点の座標値に基づいてワーク座標系の原点を設定する原点設定ステップとを備え、
前記特徴点抽出ステップは、
前記ワーク表面の走査を開始した点を始点とする特定領域における前記特徴領域データのばらつきに基づいて、前記特定領域の範囲を決定し、前記特定領域の範囲における特徴領域データを直線部分として抽出して、該直線部分を直線近似することで基準線を求め、前記基準線に平行で所定距離だけ離れたトリガーレベルを決定し、前記特徴領域データがこのトリガーレベルを超えた点を特徴点の座標値として決定することを特徴とする表面性状測定機のワーク座標系原点設定方法。 In the workpiece coordinate system origin setting method of a surface texture measuring machine that measures the surface texture by scanning the workpiece surface with a stylus,
An input step of inputting feature region data collected by scanning a feature region associated with the workpiece coordinate system origin of the workpiece surface;
A feature point extraction step of statistically processing the feature region data to extract a coordinate value of the feature point;
An origin setting step for setting the origin of the workpiece coordinate system based on the coordinate value of the feature point,
The feature point extraction step includes:
Based on the variation of the characteristic region data in the specific region starting from the point that initiated the scan of the workpiece surface, determine the range of the specific area, and extracting the feature region data in the range of the specific region as a straight line portion Te, determine the reference line by linear approximation straight line portion, and determines the trigger level a predetermined distance parallel to the reference line, the feature region data the coordinates of the feature point that exceeds the trigger level workpiece coordinate system origin setting method for the surface texture measuring instrument, characterized in that to determine the value.
前記ワーク表面のワーク座標系原点に関連付けられた特徴領域を走査して収集した特徴領域データを入力する入力ステップと、
前記特徴領域データを統計処理して特徴点の座標値を抽出する特徴点抽出ステップと、
前記特徴点の座標値に基づいてワーク座標系の原点を設定する原点設定ステップとを備え、
前記特徴点抽出ステップは、
前記ワーク表面の走査を開始した点を始点とする特定領域における前記特徴領域データのばらつきに基づいて、前記特定領域の範囲を決定し、前記特定領域の範囲における特徴領域データを直線部分として抽出して、該直線部分を直線近似することで基準線を求め、前記特徴領域データを微小範囲に分割し、前記各微小範囲における特徴領域データを直線近似することで傾斜線を求め、この傾斜線と前記基準線との成す角度が所定角度を超えたときの前記微小範囲における特徴領域データのうち、平均値に最も近い点を特徴点の座標値として決定することを特徴とする表面性状測定機のワーク座標系原点設定方法。 In the workpiece coordinate system origin setting method of a surface texture measuring machine that measures the surface texture by scanning the workpiece surface with a stylus,
An input step of inputting feature region data collected by scanning a feature region associated with the workpiece coordinate system origin of the workpiece surface;
A feature point extraction step of statistically processing the feature region data to extract a coordinate value of the feature point;
An origin setting step for setting the origin of the workpiece coordinate system based on the coordinate value of the feature point,
The feature point extraction step includes:
Based on the variation of the characteristic region data in the specific region starting from the point that initiated the scan of the workpiece surface, determine the range of the specific area, and extracting the feature region data in the range of the specific region as a straight line portion Then , a reference line is obtained by linearly approximating the straight line portion, the feature area data is divided into minute ranges , and an inclination line is obtained by linearly approximating the feature area data in each minute area. A surface texture measuring machine characterized in that a point closest to an average value is determined as a coordinate value of a feature point among feature region data in the minute range when an angle formed with the reference line exceeds a predetermined angle. Work coordinate system origin setting method.
前記ワーク表面のワーク座標系原点に関連付けられた特徴領域を走査して収集した特徴領域データを入力する入力手段と、
前記特徴領域データを統計処理して特徴点の座標値を抽出する特徴点抽出手段と、
前記特徴点の座標値に基づいてワーク座標系の原点を設定する原点設定手段とを備え、
前記特徴点抽出手段は、
前記ワーク表面の走査を開始した点を始点とする特定領域における前記特徴領域データのばらつきに基づいて、前記特定領域の範囲を決定し、前記特定領域の範囲における特徴領域データを直線部分として抽出して、該直線部分を直線近似することで基準線を求め、前記基準線に平行で所定距離だけ離れたトリガーレベルを決定し、前記特徴領域データがこのトリガーレベルを超えた点を特徴点の座標値として決定することを特徴とする表面性状測定機のワーク座標系原点設定装置。 In the workpiece coordinate system origin setting device used in a surface texture measuring machine that measures the surface texture by scanning the workpiece surface with a stylus,
Input means for inputting feature area data collected by scanning a feature area associated with the workpiece coordinate system origin of the workpiece surface;
Feature point extraction means for statistically processing the feature region data to extract coordinate values of feature points;
Origin setting means for setting the origin of the workpiece coordinate system based on the coordinate value of the feature point,
The feature point extraction means includes:
Based on the variation of the characteristic region data in the specific region starting from the point that initiated the scan of the workpiece surface, determine the range of the specific area, and extracting the feature region data in the range of the specific region as a straight line portion Te, determine the reference line by linear approximation straight line portion, and determines the trigger level a predetermined distance parallel to the reference line, the feature region data the coordinates of the feature point that exceeds the trigger level workpiece coordinate system origin setting device of a surface texture measuring instrument, characterized in that to determine the value.
前記ワーク表面のワーク座標系原点に関連付けられた特徴領域を走査して収集した特徴領域データを入力する入力手段と、
前記特徴領域データを統計処理して特徴点の座標値を抽出する特徴点抽出手段と、
前記特徴点の座標値に基づいてワーク座標系の原点を設定する原点設定手段とを備え、
前記特徴点抽出手段は、
前記ワーク表面の走査を開始した点を始点とする特定領域における前記特徴領域データのばらつきに基づいて、前記特定領域の範囲を決定し、前記特定領域の範囲における特徴領域データを直線部分として抽出して、該直線部分を直線近似することで基準線を求め、前記特徴領域データを微小範囲に分割し、前記各微小範囲における特徴領域データを直線近似することで傾斜線を求め、この傾斜線と前記基準線との成す角度が所定角度を超えたときの前記微小範囲における特徴領域データのうち、平均値に最も近い点を特徴点の座標値として決定することを特徴とする表面性状測定機のワーク座標系原点設定装置。 In the workpiece coordinate system origin setting device used in a surface texture measuring machine that measures the surface texture by scanning the workpiece surface with a stylus,
Input means for inputting feature area data collected by scanning a feature area associated with the workpiece coordinate system origin of the workpiece surface;
Feature point extraction means for statistically processing the feature region data to extract coordinate values of feature points;
Origin setting means for setting the origin of the workpiece coordinate system based on the coordinate value of the feature point,
The feature point extraction means includes:
Based on the variation of the characteristic region data in the specific region starting from the point that initiated the scan of the workpiece surface, determine the range of the specific area, and extracting the feature region data in the range of the specific region as a straight line portion Then , a reference line is obtained by linearly approximating the straight line portion, the feature area data is divided into minute ranges , and an inclination line is obtained by linearly approximating the feature area data in each minute area. A surface texture measuring machine characterized in that a point closest to an average value is determined as a coordinate value of a feature point among feature region data in the minute range when an angle formed with the reference line exceeds a predetermined angle. Work coordinate system origin setting device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003387972A JP4359485B2 (en) | 2002-11-25 | 2003-11-18 | Work coordinate system origin setting method and program and apparatus for surface texture measuring machine |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002340930 | 2002-11-25 | ||
| JP2003387972A JP4359485B2 (en) | 2002-11-25 | 2003-11-18 | Work coordinate system origin setting method and program and apparatus for surface texture measuring machine |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2004191365A JP2004191365A (en) | 2004-07-08 |
| JP4359485B2 true JP4359485B2 (en) | 2009-11-04 |
Family
ID=32774743
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2003387972A Expired - Fee Related JP4359485B2 (en) | 2002-11-25 | 2003-11-18 | Work coordinate system origin setting method and program and apparatus for surface texture measuring machine |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4359485B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7801186B2 (en) | 2005-06-07 | 2010-09-21 | The Furukawa Electric Co., Ltd. | Light source |
| DE102018215087A1 (en) | 2017-09-05 | 2019-03-07 | Mitutoyo Corporation | A method of controlling a surface texture measuring device |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100483342C (en) * | 2005-09-26 | 2009-04-29 | 鸿富锦精密工业(深圳)有限公司 | Intelligent generating system and method for sensing programm |
| CN100468327C (en) * | 2005-11-10 | 2009-03-11 | 鸿富锦精密工业(深圳)有限公司 | Measurement program generation system and method |
| JP5444590B2 (en) * | 2007-03-28 | 2014-03-19 | 株式会社ジェイテクト | Workpiece reference point on-machine detection method and machining apparatus using the method |
| JP5312032B2 (en) * | 2007-06-29 | 2013-10-09 | 株式会社東京精密 | Surface shape measuring apparatus and surface shape measuring method |
| JP5713659B2 (en) * | 2010-12-21 | 2015-05-07 | キヤノン株式会社 | Shape measuring method and shape measuring apparatus |
-
2003
- 2003-11-18 JP JP2003387972A patent/JP4359485B2/en not_active Expired - Fee Related
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7801186B2 (en) | 2005-06-07 | 2010-09-21 | The Furukawa Electric Co., Ltd. | Light source |
| DE102018215087A1 (en) | 2017-09-05 | 2019-03-07 | Mitutoyo Corporation | A method of controlling a surface texture measuring device |
| US10571262B2 (en) | 2017-09-05 | 2020-02-25 | Mitutoyo Corporation | Method for controlling surface texture measuring apparatus |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2004191365A (en) | 2004-07-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6895359B2 (en) | Workpiece coordinate system origin setting method, workpiece coordinate system origin setting program and workpiece coordinate system origin setting device of a surface property measuring machine | |
| CN102460065B (en) | Information processing apparatus and information processing method | |
| JP4359485B2 (en) | Work coordinate system origin setting method and program and apparatus for surface texture measuring machine | |
| CN114187276A (en) | Carbon tube array honeycomb surface shape precision calculation method based on G code processing guidance | |
| CN119141319A (en) | Robot milling trimming path generation method for thin-wall part | |
| JP3972920B2 (en) | NC machine tool and correction processing method | |
| JP6147998B2 (en) | Surface texture measuring device, surface texture measuring method and program | |
| JP4199450B2 (en) | Surface texture measuring device, surface texture measuring method, and surface texture measuring program | |
| TW201915482A (en) | On-line measuring system, coordinate calibrating method, deviation measuring method and computer-readable medium | |
| JP2004268220A (en) | Electric discharge machine | |
| JP4705792B2 (en) | Inter-axis angle correction method | |
| JP3543971B2 (en) | Automatic shape calculation method of contour shape measuring machine | |
| JP3961293B2 (en) | Surface texture copying measuring method, program, and recording medium | |
| JP2008087080A (en) | Tool positioning method and apparatus | |
| JP2023017410A (en) | Measuring apparatus and hole position detection method | |
| CN113554616A (en) | Online measurement guiding method and system based on numerical control machine tool | |
| JPWO1997020187A1 (en) | Automatic shape calculation method and device for contour shape measuring machine | |
| KR100994741B1 (en) | The method of measuring unknown curve with measurement step optimization based on the surface curvature using 3 dimensional coordinate measuring machine | |
| JP4041372B2 (en) | Method and apparatus for setting origin of surface texture measuring machine | |
| JP3867410B2 (en) | Three-dimensional visual positioning method and apparatus | |
| CN116109579A (en) | A workpiece bevel cutting method, system, electronic equipment and storage medium | |
| JP7249214B2 (en) | Tool corner radius discriminating device, discriminating system and discriminating method | |
| JP2001108431A (en) | Method for extracting irregular part in surface property measuring machine | |
| JPH10277888A (en) | Method and apparatus for correcting machining data | |
| CN114612547A (en) | A method and device for measuring point cloud geometric dimensions based on calipers |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060928 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090323 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090525 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090617 |
|
| RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20090617 |
|
| 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: 20090804 |
|
| 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: 20090810 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120814 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4359485 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120814 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150814 Year of fee payment: 6 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| LAPS | Cancellation because of no payment of annual fees |