JP4812477B2 - Image measurement device part program generation device, image measurement device part program generation method, and image measurement device part program generation program - Google Patents

Image measurement device part program generation device, image measurement device part program generation method, and image measurement device part program generation program Download PDF

Info

Publication number
JP4812477B2
JP4812477B2 JP2006077627A JP2006077627A JP4812477B2 JP 4812477 B2 JP4812477 B2 JP 4812477B2 JP 2006077627 A JP2006077627 A JP 2006077627A JP 2006077627 A JP2006077627 A JP 2006077627A JP 4812477 B2 JP4812477 B2 JP 4812477B2
Authority
JP
Japan
Prior art keywords
cad data
part program
specifying
measurement
data
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
Application number
JP2006077627A
Other languages
Japanese (ja)
Other versions
JP2007257081A (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.)
Mitutoyo Corp
Original Assignee
Mitutoyo 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 Mitutoyo Corp filed Critical Mitutoyo Corp
Priority to JP2006077627A priority Critical patent/JP4812477B2/en
Publication of JP2007257081A publication Critical patent/JP2007257081A/en
Application granted granted Critical
Publication of JP4812477B2 publication Critical patent/JP4812477B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Image Processing (AREA)

Description

本発明は、測定対象(以下、ワーク)に対する測定手順を記述したパートプログラムを生成するための画像計測装置用パートプログラム生成装置、その方法、及びプログラムに関する。   The present invention relates to a part program generation device for an image measurement device, a method thereof, and a program for generating a part program describing a measurement procedure for a measurement object (hereinafter referred to as a workpiece).

従来、CNC(Computer Numerical Control)タイプの画像計測装置において、ワークの測定条件を記述したパートプログラムは、おおむね次の2つの方法を用いて作成される。一つは、測定機上に実際ワークを載置して、測定手順を画像計測装置に記憶させる方法(オンラインティーチング)であり、もう一つはワークの2次元CADデータを画面上に表示させ、マウス操作等により特定領域を指定し、測定手順を画像計測装置に記憶させる方法(オフラインティーチング)である。この他、ワークの画像を複数範囲に分割して撮影した後、複数の画像を一枚に合成するとともに、各複数範囲の画像の位置関係を記録させ、その一枚に合成したワークの画像に基づき、パートプログラムを作成する技術が開示されている(特許文献1)。   2. Description of the Related Art Conventionally, in a CNC (Computer Numerical Control) type image measuring apparatus, a part program describing workpiece measurement conditions is generally created using the following two methods. One is a method (online teaching) in which an actual work is placed on the measuring machine and the measurement procedure is stored in the image measuring device, and the other is to display the two-dimensional CAD data of the work on the screen, This is a method (offline teaching) in which a specific region is designated by operating a mouse or the like, and a measurement procedure is stored in the image measurement device. In addition, after the work image is divided into a plurality of ranges and photographed, the plurality of images are combined into one sheet, and the positional relationship between the images of each of the plurality of ranges is recorded, and the combined work image is combined into one sheet. Based on this, a technique for creating a part program is disclosed (Patent Document 1).

上記のティーチングにおいて、例えば、一定形状のエッジが等方向及び等間隔に形成されたワークを対象とする場合、等間隔でエッジを測定する、所謂、STEP&REPEAT機能を組み込めば、迅速にパートプログラムを作成することが可能となる。
特開2003−203216号公報
In the above teaching, for example, when workpieces with fixed-shaped edges formed in equal directions and at equal intervals are targeted, if a so-called STEP & REPEAT function that measures edges at equal intervals is incorporated, a part program can be created quickly It becomes possible to do.
JP 2003-203216 A

しかしながら、実際、多くのワークは、一定形状のエッジを複数有しているものの、全てのそれら一定形状のエッジが等方向及び等間隔に配置されているとは限らない。したがって、STEP&REPEAT機能をワーク全体に適応可能であるケースは稀であり、多くの場合、オペレータは、ワークに対して部分的にSTEP&REPEAT機能を使うか、或いは、マニュアルにより一定形状のエッジをそれぞれ個別に指定する必要があり、パートプログラムの生成には、未だ多くの時間を要している。   However, in fact, many workpieces have a plurality of fixed-shaped edges, but not all of the fixed-shaped edges are arranged in equal directions and at equal intervals. Therefore, it is rare that the STEP & REPEAT function can be applied to the entire work. In many cases, the operator uses the STEP & REPEAT function partially for the work, or each edge of a fixed shape is manually specified. It must be specified, and it still takes a lot of time to generate the part program.

本発明は、このような問題に鑑みてなされたものであって、ワークが一定形状のエッジを複数有する場合、マニュアル操作によって、それぞれ個別にエッジを指定することなく、迅速にパートプログラムを作成する画像計測装置用パートプログラム生成装置、その方法、及びそのプログラムを提供することを目的とする。   The present invention has been made in view of such problems, and when a workpiece has a plurality of edges having a fixed shape, a part program can be quickly created without manually specifying each edge manually. An object of the present invention is to provide an image measurement device part program generation device, a method thereof, and a program thereof.

上記の目的の達成のため、本出願の第1の発明に係るパートプログラム生成装置は、CADデータに基づいてワークを測定する画像計測装置に用いられ、測定の手順を記述したパートプログラムを生成するパートプログラム生成装置であって、CADデータを取り込むCADデータ取込手段と、取り込まれた前記CADデータを表示する表示手段と、前記表示手段に表示されたCADデータの領域を任意に選択可能とすると共に前記CADデータを抽出する選択領域抽出手段と、前記抽出されたCADデータに含まれ且つ各々が分断された複数のエッジグループデータを特定すると共に複数の前記エッジグループデータの先端部分を特定するCADデータ特定手段と、複数の前記エッジグループデータのうち少なくとも一つに測定条件を指定する測定条件設定手段と、複数の前記先端部分に前記測定条件を割り当てる測定条件割当手段とを備えたことを特徴とする。 To achieve the above object, a part program generation device according to the first invention of the present application is used in an image measurement device that measures a workpiece based on CAD data, and generates a part program that describes a measurement procedure. A part program generation apparatus, wherein CAD data fetching means for fetching CAD data, display means for displaying the fetched CAD data, and an area of CAD data displayed on the display means can be arbitrarily selected. And a selection area extracting means for extracting the CAD data, and a CAD for specifying a plurality of edge group data included in the extracted CAD data and each of which is divided, and for specifying a tip portion of the plurality of edge group data a data specifying means specifies the measurement condition in at least one of the plurality of the edge group data A measurement condition setting unit that, characterized in that a measurement condition assigning means for assigning the measurement condition to a plurality of said tip portion.

このような構成とすることにより、選択領域抽出手段で抽出したCADデータに基づき、CADデータ特定手段により分断されたCADデータの先端部分が特定される。先端及び中心軸が特定されたCADデータに測定条件設定手段により任意の一つの分断されたCADデータに測定条件を指定すれば、測定条件割当手段により、全ての分断されたCADデータに対して上記任意の一つの分断されたCADデータに対する測定条件が指定され、パートプログラムを生成することが可能となる。   With such a configuration, the leading end portion of the CAD data divided by the CAD data specifying means is specified based on the CAD data extracted by the selection area extracting means. If the measurement condition is specified for any one divided CAD data by the measurement condition setting means for the CAD data in which the front end and the central axis are specified, the measurement condition assigning means performs the above operation on all the divided CAD data. A measurement condition for any one piece of divided CAD data is designated, and a part program can be generated.

前記CADデータ特定手段は、前記抽出したCADデータに基づき前記抽出したCADデータの端点を特定し、前記端点に基づき複数の前記エッジグループデータを特定してもよい。また、前記CADデータ特定手段は、前記エッジグループデータ上に複数の抽出点を配置するとともに前記抽出点間を結ぶ線分を特定し、当該線分間の角度差を特定し、前記角度差のうち所定角度差に係る抽出点を特定し、その抽出点に基づき前記先端部分を特定してもよい。 The CAD data specifying unit may specify end points of the extracted CAD data based on the extracted CAD data, and may specify a plurality of the edge group data based on the end points. Moreover, the CAD data specifying means, said with placing multiple extraction points on the edge group data to identify the line segment connecting between the extraction point to identify the angular difference between the line segment, of the angular difference An extraction point related to a predetermined angle difference may be specified, and the tip portion may be specified based on the extraction point .

また、前記CADデータ特定手段は、前記先端部分以外の位置に配置された複数の前記線分の位置の平均の位置にある線分を前記エッジグループデータの中心軸として設定し、前記測定条件割当手段は、前記中心軸に前記指定された測定条件の座標軸を合わせることにより、複数の前記先端部分前記測定条件を割り当てる構成であってもよい。 Further, the CAD data specifying means sets a line segment at an average position of the plurality of line segments arranged at positions other than the tip portion as a central axis of the edge group data, and assigns the measurement condition allocation The means may be configured to assign the measurement condition to a plurality of the tip portions by aligning the coordinate axis of the designated measurement condition with the central axis .

上記の目的の達成のため、本出願の第2の発明に係るパートプログラム生成方法は、CADデータに基づいてワークを測定する画像計測装置に用いられ、測定の手順を記述したパートプログラムを生成するパートプログラム生成方法であって、CADデータを取り込むCADデータ取込ステップと、取り込まれた前記CADデータを表示する表示ステップと、前記表示ステップにより表示されたCADデータの領域を任意に選択可能とすると共に前記選択されたCADデータを抽出する選択領域抽出ステップと、前記抽出されたCADデータに含まれ且つ各々が分断された複数のエッジグループデータを特定すると共に複数の前記エッジグループデータの先端部分を特定するCADデータ特定ステップと、複数の前記エッジグループデータのうち少なくとも一つに測定条件を指定する測定条件設定ステップと、複数の前記先端部分に前記測定条件を割り当てる測定条件割当ステップとを備えたことを特徴とする。 In order to achieve the above object, a part program generation method according to the second invention of the present application is used in an image measurement apparatus for measuring a workpiece based on CAD data, and generates a part program describing a measurement procedure. A part program generation method, wherein a CAD data fetching step for fetching CAD data, a display step for displaying the fetched CAD data, and an area of the CAD data displayed by the display step can be arbitrarily selected. And a selection region extracting step for extracting the selected CAD data, and specifying a plurality of edge group data included in the extracted CAD data and each of which is divided, and a leading end portion of the plurality of edge group data and CAD data specifying step of specifying, a plurality of the edge group data A measurement condition setting step of specifying at least one the measurement condition Chi, characterized in that a measurement condition assignment step of assigning the measurement condition to a plurality of said tip portion.

上記の目的の達成のため、本出願の第3の発明に係る画像計測装置用パートプログラム生成用プログラムは、CADデータに基づいてワークを測定する画像計測装置に用いられ、測定の手順を記述したパートプログラムを生成するパートプログラム生成方法であって、CADデータを取り込むCADデータ取込ステップと、取り込まれた前記CADデータを表示する表示ステップと、前記表示ステップにより表示されたCADデータの領域を任意に選択可能とすると共に前記選択されたCADデータを抽出する選択領域抽出ステップと、前記抽出されたCADデータに含まれ且つ各々が分断された複数のエッジグループデータを特定すると共に複数の前記エッジグループデータの先端部分を特定するCADデータ特定ステップと、複数の前記エッジグループデータのうち少なくとも一つに測定条件を指定する測定条件設定ステップと、複数の前記先端部分に前記測定条件を割り当てる測定条件割当ステップとをコンピュータに実行させるよう構成されたことを特徴とする。 In order to achieve the above object, a program for generating a part program for an image measuring device according to a third invention of the present application is used in an image measuring device for measuring a workpiece based on CAD data, and describes a measurement procedure. A part program generation method for generating a part program, wherein a CAD data fetching step for fetching CAD data, a display step for displaying the fetched CAD data, and an area of the CAD data displayed by the display step are arbitrarily set A selection area extracting step for extracting the selected CAD data, and specifying a plurality of edge group data included in the extracted CAD data and each divided, and a plurality of the edge groups and CAD data specifying step of specifying a distal portion of the data, a plurality of the A measurement condition setting step of specifying at least one the measurement condition of Tsu di group data, and characterized in that it is configured so as to execute the measurement condition assignment step of assigning the measurement condition to a plurality of said tip portion to the computer To do.

本発明によれば、選択領域抽出手段により抽出したCADデータに基づき、CADデータ特定手段により分断されたCADデータの先端部分を特定し、測定条件設定手段により、任意の一つの分断されたCADデータに測定条件を指定すれば、測定条件割当手段により、全ての分断されたCADデータに対して上記任意の一つの分断されたCADデータに対する測定条件が指定され、パートプログラムを生成することが可能となる。したがって、同形状の箇所を複数有するワークを測定する場合、同形状の箇所それぞれにマニュアル操作により測定条件の設定をすることなく、迅速にパートプログラムを作成することが可能となる。   According to the present invention, based on the CAD data extracted by the selection area extracting means, the leading end portion of the CAD data divided by the CAD data specifying means is specified, and any one piece of CAD data divided by the measurement condition setting means If the measurement condition is designated in the above, the measurement condition for the arbitrary one divided CAD data is designated for all the divided CAD data by the measurement condition assigning means, and a part program can be generated. Become. Therefore, when measuring a workpiece having a plurality of parts having the same shape, it is possible to quickly create a part program without manually setting measurement conditions for each part having the same shape.

以下、添付図面を参照して本発明に係る画像計測装置用パートプログラム生成装置の好ましい一実施形態について説明する。図1は、本実施の形態に係る画像計測装置用パートプログラム生成装置の全体構成を示す斜視図である。このシステムは、非接触型の画像測定機1と、この画像測定機1を駆動制御すると共に、必要なデータ処理を実行するコンピュータシステム2と、計測結果をプリントアウトするプリンタ3とにより構成されている。   A preferred embodiment of a part program generating device for an image measuring device according to the present invention will be described below with reference to the accompanying drawings. FIG. 1 is a perspective view showing an overall configuration of an image measuring device part program generating device according to the present embodiment. This system includes a non-contact type image measuring machine 1, a computer system 2 that drives and controls the image measuring machine 1, executes necessary data processing, and a printer 3 that prints out measurement results. Yes.

画像測定機1は、次のように構成されている。即ち、架台11上には、ワーク12を載置する測定テーブル13が装着されており、この測定テーブル13は、図示しないY軸駆動機構によってY軸方向に駆動される。架台11の両側縁中央部には上方に延びる支持アーム14、15が固定されており、この支持アーム14、15の両上端部を連結するようにX軸ガイド16が固定されている。このX軸ガイド16には、撮像ユニット17が支持されている。撮像ユニット17は、図示しないX軸駆動機構によってX軸ガイド16に沿って駆動される。撮像ユニット17の下端部には、CCDカメラ18が測定テーブル13と対向するように装着されている。また、撮像ユニット17の内部には、図示しない照明装置及びフォーカシング機構の他、CCDカメラ18のZ軸方向の位置を移動させるZ軸駆動機構と、撮影位置でのCCDカメラ18のZ方向の位置を検知する位置センサ19が内蔵されている。   The image measuring machine 1 is configured as follows. That is, a measurement table 13 on which the workpiece 12 is placed is mounted on the gantry 11, and this measurement table 13 is driven in the Y-axis direction by a Y-axis drive mechanism (not shown). Support arms 14 and 15 extending upward are fixed to the center of both side edges of the gantry 11, and an X-axis guide 16 is fixed so as to connect both upper ends of the support arms 14 and 15. An imaging unit 17 is supported on the X-axis guide 16. The imaging unit 17 is driven along the X-axis guide 16 by an X-axis drive mechanism (not shown). A CCD camera 18 is mounted on the lower end of the imaging unit 17 so as to face the measurement table 13. Further, in the imaging unit 17, in addition to a lighting device and a focusing mechanism (not shown), a Z-axis drive mechanism that moves the position of the CCD camera 18 in the Z-axis direction, and a position of the CCD camera 18 in the Z-direction at the shooting position A position sensor 19 for detecting is incorporated.

コンピュータシステム2は、コンピュータ本体21、キーボード22、ジョイスティックボックス(以下、J/Sと呼ぶ)23、マウス24及びCRT25を備えて構成されている。コンピュータ本体21は、例えば図2に示すように構成されている。即ち、CCDカメラ18から入力されるワーク12の画像情報は、インタフェース(以下、I/Fと呼ぶ)31を介して画像メモリ32に格納される。   The computer system 2 includes a computer main body 21, a keyboard 22, a joystick box (hereinafter referred to as J / S) 23, a mouse 24, and a CRT 25. The computer main body 21 is configured, for example, as shown in FIG. That is, the image information of the workpiece 12 input from the CCD camera 18 is stored in the image memory 32 via the interface (hereinafter referred to as I / F) 31.

また、図示しないCADシステムにより作成されるワーク12のCADデータは、例えば、CADデータによるオフラインティーチングが実行される場合、I/F33を介してCPU35に入力され、CPU35でビットマップ等の画像情報に展開された後、画像メモリ32に格納される。画像メモリ32に格納された画像情報は、表示制御部36を介してCRT25に表示される。   The CAD data of the workpiece 12 created by a CAD system (not shown) is input to the CPU 35 via the I / F 33, for example, when offline teaching using CAD data is executed, and is converted into image information such as a bitmap by the CPU 35. After being expanded, it is stored in the image memory 32. The image information stored in the image memory 32 is displayed on the CRT 25 via the display control unit 36.

一方、キーボード22、J/S23、及びマウス24から入力されるコード情報及び位置情報は、I/F34を介してCPU35に入力される。CPU35は、ROM37に格納されたマクロプログラム及びHDD38からI/F39を介してRAM40に格納された測定実行プログラム、測定結果表示プログラム、パートプログラム生成プログラム、パートプログラム等に従って測定実行処理、パートプログラム作成、及び測定結果の表示処理等を実行する。   On the other hand, code information and position information input from the keyboard 22, J / S 23, and mouse 24 are input to the CPU 35 via the I / F 34. The CPU 35 performs measurement execution processing, part program creation, according to a macro program stored in the ROM 37 and a measurement execution program stored in the RAM 40 from the HDD 38 via the I / F 39, a measurement result display program, a part program generation program, a part program, etc. And display processing of the measurement results.

CPU35は、測定実行処理に従って、I/F41を介して画像測定機1を制御する。HDD38は、CADデータ、測定実行プログラム、測定結果表示プログラム、パートプログラム等を格納する記録媒体である。RAM40は、各種プログラムを格納する他、各種処理のワーク領域を提供する。   The CPU 35 controls the image measuring device 1 via the I / F 41 according to the measurement execution process. The HDD 38 is a recording medium that stores CAD data, a measurement execution program, a measurement result display program, a part program, and the like. The RAM 40 stores various programs and provides a work area for various processes.

図3は、パートプログラム生成装置の機能ブロック図である。画像取得部51は、ワークを撮像してパートプログラムを生成する場合、キーボード22、マウス24などの操作に基づいて、ワーク12の指定された範囲において、CCDカメラ18を駆動させて、複数枚の画像を撮影する。撮影されたワークの画像は、ワーク画像展開部52において、ベクタ画像に変換され、画像メモリ32或いはHDD33へ格納される。ワーク画像合成部53は、画像メモリ32或いはHDD33に格納された複数枚のワークの画像を一枚のワークの画像に合成する。座標系設定部54は、この一枚に合成されたワークの画像による座標系と、ワーク12の座標系とを一致させるための座標系設定を行う。パートプログラム生成部55は、座標系設定が行われたワーク画像に基づきパートプログラムを生成する。   FIG. 3 is a functional block diagram of the part program generation device. When the image acquisition unit 51 captures a workpiece and generates a part program, the CCD camera 18 is driven in a specified range of the workpiece 12 based on the operation of the keyboard 22, the mouse 24, etc. Take a picture. The photographed work image is converted into a vector image by the work image developing unit 52 and stored in the image memory 32 or the HDD 33. The work image composition unit 53 synthesizes a plurality of work images stored in the image memory 32 or the HDD 33 into a single work image. The coordinate system setting unit 54 performs a coordinate system setting for making the coordinate system based on the image of the work combined on one sheet and the coordinate system of the work 12 coincide with each other. The part program generation unit 55 generates a part program based on the work image for which the coordinate system has been set.

一方、CADデータを取り込み、パートプログラムを生成する場合、CADデータ取得部56は、キーボード22、マウス24などの操作に基づいて、ワーク12のCADデータを取得する。取得されたCADデータは、画像メモリ32或いは表示制御部36へ出力され、CRT25に表示される。   On the other hand, when CAD data is taken in and a part program is generated, the CAD data acquisition unit 56 acquires CAD data of the work 12 based on operations of the keyboard 22 and the mouse 24. The acquired CAD data is output to the image memory 32 or the display control unit 36 and displayed on the CRT 25.

CADデータ補正部57は、取得されたCADデータの重複除去、セグメント(描画された直線、曲線)の結合、及び結合したセグメントの測定順等を設定する。   The CAD data correction unit 57 sets the removal of duplicated CAD data, the combination of segments (drawn straight lines and curves), the measurement order of the combined segments, and the like.

抽出領域指定部58は、CRT25に表示されたCADデータから、ユーザによるキーボード22、J/S23、マウス24などの操作を受け付けて、CADデータの一部を抽出する。   The extraction area designating unit 58 receives a user's operation of the keyboard 22, J / S 23, mouse 24, etc. from the CAD data displayed on the CRT 25, and extracts a part of the CAD data.

CADデータ特定部59は、抽出領域指定部58により抽出されたCADデータの一部から、セグメントが一続きのエッジグループデータを特定し、そのエッジグループデータの先端位置及び中心軸を特定する。   The CAD data specifying unit 59 specifies edge group data including a series of segments from a part of the CAD data extracted by the extraction region specifying unit 58, and specifies the tip position and the center axis of the edge group data.

測定条件設定部60は、ユーザによるキーボード22、J/S23、マウス24などの操作を受け付けて、後述する予め設定されたエッジ検出ツール等の種類を含む測定条件を設定する。   The measurement condition setting unit 60 accepts the operation of the keyboard 22, J / S 23, mouse 24, and the like by the user, and sets measurement conditions including types such as a preset edge detection tool described later.

パートプログラム生成部55は、上述したように測定条件設定部60で設定された測定条件に基づいて、抽出領域指定部58により抽出された全ての特徴画像に対して測定条件を設定して、パートプログラムファイルを生成する。生成されたパートプログラムファイルは、パートプログラム編集部61で適宜編集処理される。生成及び編集されたパートプログラムファイルは、パートプログラム出力部62を介してHDD38等に格納される。   Based on the measurement conditions set by the measurement condition setting unit 60 as described above, the part program generation unit 55 sets measurement conditions for all the feature images extracted by the extraction region specification unit 58, and Generate a program file. The generated part program file is appropriately edited by the part program editing unit 61. The generated and edited part program file is stored in the HDD 38 or the like via the part program output unit 62.

次に、図4乃至図6を参照して、パートプログラム生成装置において使用されるエッジ検出ツールを説明する。ここで、エッジ検出ツールとは、CRT25上に表示されたワークのCADデータに基づき、マウス操作により測定条件を決定可能とするものである。図4(a)は最もシンプルなツール(以下、シンプルツールと呼ぶ)71で、計測時にワークを撮像して得られる画像情報72の濃度レベルが、矢印の基端から先端の間で急激に変化している点をエッジ点として検出するためのものである。このシンプルツール71は、中点の位置座標(X、Y)と、その長さWと、角度θとによって定義され、マウス操作のドラッグにより、ワークの画像の任意の箇所に配置可能である。同図(b)は、矩形のツール(以下、ボックスツールと呼ぶ)73で、直線画像情報72aの検出に適しており、中点の位置座標(X、Y)と、両側の矢印の長さWと、両側の矢印間の幅Hと、角度θとによって定義される。ボックスツール73の場合、幅Hの中に予め設定された間隔ΔHで、矢印の基端から先端に向かうエッジ検出が繰り返される。同図(c)は、円形のツール(以下、円ツールと呼ぶ)74で、円形画像情報72bの検出に適しており、位置座標(X、Y)と、測定を開始する内径r1と、測定を終了する外径r2によって定義される。円ツール74の場合、予め設定された角度Δθで、座標(X、Y)を中心として回転し、矢印の基端から先端に向かうエッジ検出が繰り返される。また、上記ボックスツール、円ツールの他に、円弧ツール等もある。これらツール71、73、74の全てのパラメータを図形要素毎に演算によって求めても良いが、演算処理が複雑になるので、ここではツール71、73、74の位置と傾きのみを、測定対象として選択された図形要素毎に演算して決定することにより、演算処理量を削減している。   Next, an edge detection tool used in the part program generation apparatus will be described with reference to FIGS. Here, the edge detection tool is a tool that allows measurement conditions to be determined by a mouse operation based on CAD data of a workpiece displayed on the CRT 25. FIG. 4A shows the simplest tool (hereinafter referred to as a simple tool) 71. The density level of image information 72 obtained by imaging a workpiece at the time of measurement changes abruptly from the base end to the tip end of the arrow. This is to detect a point as an edge point. The simple tool 71 is defined by the position coordinates (X, Y) of the midpoint, its length W, and the angle θ, and can be placed at any position on the workpiece image by dragging the mouse. FIG. 4B is a rectangular tool 73 (hereinafter referred to as a box tool), which is suitable for detecting the straight line image information 72a. The middle point position coordinates (X, Y) and the lengths of the arrows on both sides are shown. It is defined by W, the width H between the arrows on both sides, and the angle θ. In the case of the box tool 73, edge detection from the base end of the arrow toward the tip is repeated at a preset interval ΔH in the width H. FIG. 6C is a circular tool (hereinafter referred to as a circular tool) 74, which is suitable for detection of circular image information 72b. The position coordinates (X, Y), the inner diameter r1 for starting measurement, and the measurement Defined by the outer diameter r2. In the case of the circular tool 74, it rotates around the coordinates (X, Y) at a preset angle Δθ, and edge detection from the base end of the arrow toward the tip is repeated. In addition to the box tool and the circle tool, there are an arc tool and the like. Although all the parameters of these tools 71, 73, and 74 may be obtained by calculation for each graphic element, the calculation processing becomes complicated, and here, only the positions and inclinations of the tools 71, 73, and 74 are measured. The calculation processing amount is reduced by calculating and determining each selected graphic element.

従って、エッジ検出ツールの設定においては、図形要素の種類(線、円、円弧等)毎に、エッジの種類(ツールタイプ)、数、長さW(画素数)、オフセット数のみを設定する。図5(a)は、矩形画像情報72cについて、シンプルツール71を適用し、数nが3で、オフセットを上辺の両端からそれぞれOFFだけ設定し、図中Aの範囲をシンプルツール71の配置範囲として設定している例を示している。オフセットOFFを設定するのは、線や円弧の端部にシンプルツール71が配置されることによりエッジ検出不能のエラーが発生するのを回避するためである。オフセットOFFは、長さで設定しても良いし、線の長さのパーセントで設定するようにしても良い。同図(b)は、円形画像情報72bについて、4つのシンプルツール71を配置した例である。円形の場合には、オフセットは不要である。   Therefore, in setting the edge detection tool, only the edge type (tool type), number, length W (number of pixels), and number of offsets are set for each type of graphic element (line, circle, arc, etc.). 5A, the simple tool 71 is applied to the rectangular image information 72c, the number n is 3, the offset is set to OFF from both ends of the upper side, and the range A in the figure is the arrangement range of the simple tool 71. An example of setting is shown. The reason for setting the offset OFF is to avoid an error that the edge cannot be detected due to the simple tool 71 being arranged at the end of the line or arc. The offset OFF may be set as a length or may be set as a percentage of the line length. FIG. 4B shows an example in which four simple tools 71 are arranged for the circular image information 72b. In the case of a circle, no offset is required.

このようにして設定された内容を図6に示す。各図形要素について、そのツールタイプ、ツール数、長さW及びオフセットOFFがエッジ検出ツール生成条件として測定条件設定部59の中に設定される。この例では、1次候補だけでなく、1次候補のツールの生成に失敗した場合の他のツール候補も2次候補として設定されている。   The contents thus set are shown in FIG. For each graphic element, the tool type, the number of tools, the length W, and the offset OFF are set in the measurement condition setting unit 59 as edge detection tool generation conditions. In this example, not only the primary candidates but also other tool candidates when the generation of the primary candidate tools fails are set as secondary candidates.

次に、図7〜図13を参照して、上記のように構成された非接触画像測定システムにおけるパートプログラム生成手順について説明する。図7は、パートプログラムの自動生成処理の手順を示すフローチャートである。   Next, a part program generation procedure in the non-contact image measurement system configured as described above will be described with reference to FIGS. FIG. 7 is a flowchart showing the procedure of part program automatic generation processing.

図8〜図13は、CADデータが、例えばリードフレームである場合を説明する。図8に示すように、CADデータ8は、1つの矩形のダイパッド81と、ダイパッド81の近傍に末端が位置する複数のリード部82と、ダイパッド81に接続された4本のリード接続部83とを有する。なお、図7のフローチャートに示す本制御は、マニュアル操作においてエッジ検出ツールの設定に時間を要する複数のリード部82のエッジを測定対象としている。   8 to 13 illustrate a case where CAD data is, for example, a lead frame. As shown in FIG. 8, the CAD data 8 includes a rectangular die pad 81, a plurality of lead portions 82 whose ends are located in the vicinity of the die pad 81, and four lead connection portions 83 connected to the die pad 81. Have In this control shown in the flowchart of FIG. 7, the edges of a plurality of lead portions 82 that require time for setting the edge detection tool in manual operation are measured.

まず、CADデータ取得部56は、キーボード22及びマウス24からの入力を受け付け、CADデータを取得し、図8に示すように、そのCADデータ8(リードフレーム)をCRT25に表示する(ステップS1)。   First, the CAD data acquisition unit 56 receives input from the keyboard 22 and the mouse 24, acquires CAD data, and displays the CAD data 8 (lead frame) on the CRT 25 as shown in FIG. 8 (step S1). .

次に、CADデータ補正部57は、CADデータの重複除去を行う(ステップS2)。続いて、CADデータ補正部57は、CADデータのセグメント(直線或いは円弧)間を結合し(ステップS3)、セグメント間の結合順にセグメントの読み取り順[1]〜[12]を設定する(ステップS4)。なお、このCADデータの重複は、その作成工程における線の分割、結合、伸縮、移動、複写等の繰り返しの処理により生じるものであり、また、このような作成工程においては、セグメント間を結合するなどの処理もなされない。   Next, the CAD data correction unit 57 performs deduplication of CAD data (step S2). Subsequently, the CAD data correction unit 57 joins the segments (straight line or arc) of the CAD data (step S3), and sets the segment reading order [1] to [12] in the joining order between the segments (step S4). ). This duplication of CAD data is caused by repeated processing such as dividing, joining, expanding / contracting, moving, copying, etc. in the creation process. In such a creation process, segments are joined. Such processing is not performed.

ここで、図9を参照し、上記ステップS1〜ステップS4の処理を説明する。図9は、CADデータの一部拡大図である。まず、図9(a)の状態から、CADデータ8の重複したデータ8a〜8dを重複除去し、図9(b)に示すように、重複のないCADデータ8eとする。このCADデータ8eであっては、セグメント間が結合しておらず、それらセグメントを読み取る順序は、隣接するセグメント間で[1]〜[12]のように連続して設定されていない。次に、図9(c)に示されるように、CADデータ補正部57は、CADデータ8eのセグメント間を結合し、CADデータ8eのそれぞれのセグメントにその結合順に沿った、セグメント番号[1]〜[12]を設定した補正CADデータ8fを生成する。   Here, with reference to FIG. 9, the process of said step S1-step S4 is demonstrated. FIG. 9 is a partially enlarged view of CAD data. First, from the state of FIG. 9A, the duplicate data 8a to 8d of the CAD data 8 are removed by duplication, and as shown in FIG. 9B, CAD data 8e without duplication is obtained. In this CAD data 8e, the segments are not connected, and the order of reading these segments is not set continuously between adjacent segments as in [1] to [12]. Next, as shown in FIG. 9C, the CAD data correction unit 57 joins the segments of the CAD data 8e, and segments each of the CAD data 8e with segment numbers [1] along the joining order. The corrected CAD data 8f set with [12] is generated.

ステップS4に続き、抽出領域設定部58は、キーボード22、J/S23、マウス24によるユーザからの入力を受け付け、CADデータの抽出領域の設定を行う(ステップS5)。例えば、図10に示されるように、CRT25にはマウス24により操作されるポインタPが表示されており、ユーザは、例えば、位置84にポインタPを移動させてマウス24をクリックし、次いでマウス24をドラッグしてポインタPを位置85まで移動させて画像を矩形の選択領域境界線86により囲み、CADデータの抽出領域を決定する。   Subsequent to step S4, the extraction area setting unit 58 receives input from the user via the keyboard 22, J / S 23, and mouse 24, and sets the extraction area of CAD data (step S5). For example, as shown in FIG. 10, a pointer P operated by the mouse 24 is displayed on the CRT 25. For example, the user moves the pointer P to a position 84 and clicks the mouse 24, and then clicks the mouse 24. By dragging, the pointer P is moved to the position 85 and the image is surrounded by a rectangular selection area boundary line 86 to determine the CAD data extraction area.

CADデータの抽出領域が設定されると、次に、CADデータ特定部59は、選択領域境界線86によりエッジグループデータ8gn(nは自然数)を確定する(ステップS6)。続いて、エッジグループデータ8gnの先端位置及びその中心軸を算出する(ステップS7)。   Once the CAD data extraction area is set, the CAD data specifying unit 59 then determines the edge group data 8gn (n is a natural number) from the selection area boundary line 86 (step S6). Subsequently, the tip position of the edge group data 8gn and its central axis are calculated (step S7).

ここで、図10及び図11を参照し、上記ステップS6、ステップS7の処理を説明する。図11は、図9と同様にCADデータの一部拡大図である。図10及び図11(a)に示すように、抽出領域設定部58は、補正CADデータ8fにユーザの操作による選択領域境界線86を受け付けると、図11(b)に示すように、選択領域境界線86と補正CADデータ8fとの交点である端点87から一本分のリード部を構成するエッジグループデータ8gnを決定する。次に、CADデータ特定部59は、図11(c)に示すように、各エッジグループデータ8gnを構成する各セグメントにその読み取り順に抽出点8hn(nは自然数)を決定する。   Here, with reference to FIG.10 and FIG.11, the process of the said step S6 and step S7 is demonstrated. FIG. 11 is a partially enlarged view of CAD data as in FIG. As shown in FIGS. 10 and 11A, when the extraction area setting unit 58 receives a selection area boundary line 86 by the user's operation in the corrected CAD data 8f, as shown in FIG. Edge group data 8gn constituting one lead portion is determined from an end point 87 which is an intersection of the boundary line 86 and the corrected CAD data 8f. Next, as shown in FIG. 11C, the CAD data specifying unit 59 determines an extraction point 8hn (n is a natural number) in the reading order for each segment constituting each edge group data 8gn.

CADデータ特定部59は、例えば、図11(d)に示すように、各抽出点8hn(図11(d)においてはn=1〜9)間に、セグメント順に線分Ln(nは自然数)(図11(d)においてはn=1〜9)を生成する。そして、CADデータ特定部59は、所定の抽出点8hnの前後の線分Lnと線分Ln+1との角度差が所定の閾値を超えている場合、その抽出点8hnが先端91を構成する抽出点であると判断する。図11(d)にあっては、線分L4と線分L5との間の角度差、及び線分L5と線分L6との角度差が、所定閾値を超えているので、抽出点8h4と抽出点8h5とが、先端91を構成する抽出点であると判断される。この場合、先端91は、抽出点8h4と抽出点8h5との中点に決定される。また、CADデータ特定部59は、先端92を構成していない抽出点8h1〜抽出点8h3及び抽出点8h6〜8h8からのびる線分L1〜L4及び線分L6〜L9を平均して得られる線分を求め、その線分を先端91から伸びる中心軸92とする。   For example, as shown in FIG. 11 (d), the CAD data specifying unit 59 includes line segments Ln (n is a natural number) in the order of segments between each extraction point 8 hn (n = 1 to 9 in FIG. 11 (d)). (N = 1 to 9 in FIG. 11D) is generated. Then, when the angular difference between the line segment Ln before and after the predetermined extraction point 8hn and the line segment Ln + 1 exceeds a predetermined threshold, the CAD data specifying unit 59 extracts the extraction point that forms the tip 91. It is judged that. In FIG. 11D, since the angular difference between the line segment L4 and the line segment L5 and the angular difference between the line segment L5 and the line segment L6 exceed a predetermined threshold, the extraction point 8h4 The extraction point 8h5 is determined to be the extraction point constituting the tip 91. In this case, the tip 91 is determined as the midpoint between the extraction point 8h4 and the extraction point 8h5. In addition, the CAD data specifying unit 59 averages line segments L1 to L4 and line segments L6 to L9 extending from the extraction points 8h1 to 8h3 and the extraction points 8h6 to 8h8 that do not constitute the tip 92. The line segment is defined as a central axis 92 extending from the tip 91.

上記ステップS6及びS7の処理は、それぞれのエッジグループデータ8gnに対して実行され、図12に示すように、各エッジグループデータ8gnに先端91及び中心軸92が設定される。   The processes in steps S6 and S7 are executed for each edge group data 8gn, and as shown in FIG. 12, a tip 91 and a central axis 92 are set in each edge group data 8gn.

次に、測定条件設定部60は、ユーザからのキーボード22、J/S23、マウス24の入力を受付け、エッジグループデータ8gnの任意の一つに測定条件を設定し、その設定条件を全てのエッジグループデータ8gnに対して設定する(ステップS8)。ここで、設定条件とは、エッジ検出ツールの種類の設定、配置するエッジ検出ツールの数の設定、エッジ検出ツールのサイズの設定、オフセット値等である。   Next, the measurement condition setting unit 60 receives input from the user of the keyboard 22, J / S 23, and mouse 24, sets the measurement condition to any one of the edge group data 8gn, and sets the setting condition to all the edges. Set for the group data 8gn (step S8). Here, the setting conditions are the setting of the type of edge detection tool, the setting of the number of edge detection tools to be arranged, the setting of the size of the edge detection tool, the offset value, and the like.

このステップS8の処理は、例えば、図13に示すように各エッジグループデータ8gn毎に、先端91を原点とする中心軸92と、その中心軸92に交差する軸93とからなる座標系(X、Y)に基づき実行される。すなわち、任意の一つのエッジグループデータ8gnに配置したボックスツール73、73の中心w1及びw2の座標を求め、その座標をその他全てのエッジグループデータ8gnが有するそれぞれの座標系(X、Y)に写像することにより実行される。なお、図13においてのエッジ検出ツールの配置は、一例であって、配置するエッジ検出ツールは、2つ以上であっても良く、ボックスツール73に限られることはない。   For example, as shown in FIG. 13, the processing in step S8 is performed for each edge group data 8gn, a coordinate system consisting of a central axis 92 having the tip 91 as the origin and an axis 93 intersecting the central axis 92 (X , Y). That is, the coordinates of the centers w1 and w2 of the box tools 73 and 73 arranged in any one edge group data 8gn are obtained, and the coordinates are assigned to the respective coordinate systems (X, Y) of all the other edge group data 8gn. This is done by mapping. The arrangement of the edge detection tools in FIG. 13 is an example, and the number of edge detection tools to be arranged may be two or more, and is not limited to the box tool 73.

上記のようにS8までのステップが完了すれば、パートプログラム生成部55は、パートプログラムを生成する(S9)。   If the steps up to S8 are completed as described above, the part program generator 55 generates a part program (S9).

以上に説明したように、上述した一実施形態では、CADデータを取得し、CADデータの一領域を抽出し、その抽出したCADデータの端部及び抽出点を結ぶ線分間の角度差に基づき、CADデータを特徴づけるエッジグループデータを特定し、このエッジグループデータの任意の一つに測定条件設定部60により、エッジ検出ツール(ボックスツール73a等)を設定して、全てのエッジグループデータにそのエッジ検出ツールを自動設定する構成としたので、ワークが一定形状のエッジを複数有する場合、マニュアル操作によって、それぞれ個別にエッジを指定することなく、迅速にパートプログラムを作成することができる。   As described above, in the embodiment described above, CAD data is acquired, a region of the CAD data is extracted, and an angle difference between line segments connecting the end of the extracted CAD data and the extraction point is calculated. Edge group data that characterizes CAD data is specified, and an edge detection tool (such as a box tool 73a) is set to any one of the edge group data by the measurement condition setting unit 60. Since the edge detection tool is configured to be automatically set, when the workpiece has a plurality of edges having a fixed shape, a part program can be quickly created without manually specifying each edge manually.

以上、発明の実施の形態を説明したが、本発明はこれらに限定されるものではなく、発明の趣旨を逸脱しない範囲内において種々の変更、追加、置換等が可能である。例えば、本実施形態においては、CADデータに基づき、パートプログラムを作成したが、撮影した画像データを2値化するなどし、パートプログラムを作成することも可能である。   Although the embodiments of the invention have been described above, the present invention is not limited to these embodiments, and various modifications, additions, substitutions, and the like can be made without departing from the spirit of the invention. For example, in the present embodiment, a part program is created based on CAD data. However, it is also possible to create a part program by binarizing captured image data.

本発明の実施の形態に係る画像計測装置用パートプログラム生成装置の構成を示す斜視図である。It is a perspective view which shows the structure of the part program production | generation apparatus for image measuring devices which concerns on embodiment of this invention. 本発明の実施の形態に係る画像計測装置用パートプログラム生成装置におけるコンピュータ本体の構成を示すブロック図である。It is a block diagram which shows the structure of the computer main body in the part program production | generation apparatus for image measuring devices which concerns on embodiment of this invention. 本発明の実施の形態に係る画像計測装置用パートプログラム生成装置の機能ブロック図である。It is a functional block diagram of the part program generation device for image measuring devices concerning an embodiment of the invention. エッジ検出ツールの一例を示す図である。It is a figure which shows an example of an edge detection tool. 測定条件の設定について説明するための図である。It is a figure for demonstrating the setting of a measurement condition. 測定条件の設定について説明するための図である。It is a figure for demonstrating the setting of a measurement condition. 本発明の実施の形態に係る画像計測装置用パートプログラム生成装置の動作を示すフローチャートを示す。The flowchart which shows operation | movement of the part program production | generation apparatus for image measuring devices which concerns on embodiment of this invention is shown. 本発明の実施の形態に係る画像計測装置用パートプログラム生成装置のCRT25上のCADデータの表示例である。It is a display example of CAD data on CRT25 of the part program generation device for image measuring devices concerning an embodiment of the invention. 本発明の実施の形態に係る画像計測装置用パートプログラム生成装置のCRT25上のCADデータの表示例である。It is a display example of CAD data on CRT25 of the part program generation device for image measuring devices concerning an embodiment of the invention. 本発明の実施の形態に係る画像計測装置用パートプログラム生成装置のCRT25上のCADデータの表示例である。It is a display example of CAD data on CRT25 of the part program generation device for image measuring devices concerning an embodiment of the invention. 本発明の実施の形態に係る画像計測装置用パートプログラム生成装置のCRT25上のCADデータの表示例である。It is a display example of CAD data on CRT25 of the part program generation device for image measuring devices concerning an embodiment of the invention. 本発明の実施の形態に係る画像計測装置用パートプログラム生成装置のCRT25上のCADデータの表示例である。It is a display example of CAD data on CRT25 of the part program generation device for image measuring devices concerning an embodiment of the invention. 本発明の実施の形態に係る画像計測装置用パートプログラム生成装置のCRT25上のCADデータの表示例である。It is a display example of CAD data on CRT25 of the part program generation device for image measuring devices concerning an embodiment of the invention.

符号の説明Explanation of symbols

1…画像測定機、2…コンピュータシステム、3…プリンタ、11…架台、12…ワーク、13…測定テーブル、14、15…支持アーム、16…X軸ガイド、17…撮像ユニット、18…CCDカメラ、19…位置センサ、21…コンピュータ本体、22…キーボード、23…ジョイスティックボックス、24…マウス、25…CRT、31、33、34、39、41…I/F、32…画像メモリ、35…CPU、36…表示制御部、37…ROM、38…HDD、40…RAM51…画像取得部、52…ワーク画像展開部、53…ワーク画像合成部、54…座標系設定部、55…パートプログラム生成部、56…CADデータ取得部、57…CADデータ補正部、58…抽出領域指定部、59…CADデータ特定部、60…測定条件設定部、61…パートプログラム編集部。   DESCRIPTION OF SYMBOLS 1 ... Image measuring machine, 2 ... Computer system, 3 ... Printer, 11 ... Mount, 12 ... Workpiece, 13 ... Measurement table, 14, 15 ... Support arm, 16 ... X-axis guide, 17 ... Imaging unit, 18 ... CCD camera , 19 ... Position sensor, 21 ... Computer main body, 22 ... Keyboard, 23 ... Joystick box, 24 ... Mouse, 25 ... CRT, 31, 33, 34, 39, 41 ... I / F, 32 ... Image memory, 35 ... CPU 36 ... Display control unit 37 ... ROM 38 ... HDD 40 ... RAM 51 ... Image acquisition unit 52 ... Work image development unit 53 ... Work image synthesis unit 54 ... Coordinate system setting unit 55 ... Part program generation unit , 56... CAD data acquisition unit, 57... CAD data correction unit, 58... Extraction region designation unit, 59... CAD data identification unit, 60. , 61 ... part program editing section.

Claims (6)

CADデータに基づいてワークを測定する画像計測装置に用いられ、測定の手順を記述したパートプログラムを生成するパートプログラム生成装置であって、
CADデータを取り込むCADデータ取込手段と、
取り込まれた前記CADデータを表示する表示手段と、
前記表示手段に表示されたCADデータの領域を任意に選択可能とすると共に前記CADデータを抽出する選択領域抽出手段と、
前記抽出されたCADデータに含まれ且つ各々が分断された複数のエッジグループデータを特定すると共に複数の前記エッジグループデータの先端部分を特定するCADデータ特定手段と、
複数の前記エッジグループデータのうち少なくとも一つに測定条件を指定する測定条件設定手段と、
複数の前記先端部分に前記測定条件を割り当てる測定条件割当手段と
を備えたことを特徴とする画像計測装置用パートプログラム生成装置。
A part program generation device that is used in an image measurement device that measures a workpiece based on CAD data and generates a part program that describes a measurement procedure,
CAD data fetching means for fetching CAD data;
Display means for displaying the captured CAD data;
A selection area extracting means for arbitrarily selecting an area of the CAD data displayed on the display means and extracting the CAD data;
CAD data specifying means for specifying a plurality of edge group data included in the extracted CAD data and each of which is divided, and specifying a tip portion of the plurality of edge group data ;
Measurement condition setting means for specifying a measurement condition for at least one of the plurality of edge group data ;
A part program generation device for an image measuring device , comprising: measurement condition assigning means for assigning the measurement condition to a plurality of the tip portions .
前記CADデータ特定手段は、前記抽出したCADデータに基づき前記抽出したCADデータの端点を特定し、前記端点に基づき複数の前記エッジグループデータを特定することを特徴とする請求項1記載の画像計測装置用パートプログラム生成装置。 2. The image measurement according to claim 1, wherein the CAD data specifying unit specifies an end point of the extracted CAD data based on the extracted CAD data, and specifies a plurality of the edge group data based on the end point. Device part program generator. 前記CADデータ特定手段は、前記エッジグループデータ上に複数の抽出点を配置するとともに前記抽出点間を結ぶ線分を特定し、当該線分間の角度差を特定し、前記角度差のうち所定角度差に係る抽出点を特定し、その抽出点に基づき前記先端部分を特定することを特徴とする請求項1又は2記載の画像計測装置パートプログラム生成装置。 The CAD data specifying means arranges a plurality of extraction points on the edge group data , specifies a line segment connecting the extraction points, specifies an angle difference between the line segments, and determines a predetermined angle of the angle difference. 3. The part program generation device for an image measurement device according to claim 1, wherein an extraction point related to the difference is specified, and the tip portion is specified based on the extraction point . 前記CADデータ特定手段は、前記先端部分以外の位置に配置された複数の前記線分の位置の平均の位置にある線分を前記エッジグループデータの中心軸として設定し
前記測定条件割当手段は、前記中心軸に前記指定された測定条件の座標軸を合わせることにより、複数の前記先端部分前記測定条件を割り当てる
ことを特徴とする請求項1乃至3のいずれか1項記載の画像計測装置パートプログラム生成装置。
The CAD data specifying means sets a line segment at an average position of the plurality of line segments arranged at positions other than the tip portion as a central axis of the edge group data ,
The measurement condition assigning means, by matching the coordinate axes of the specified measurement conditions to said central axis, any one of claims 1 to 3, characterized in that assigning the measurement condition to a plurality of said distal portion A part program generation device for an image measurement device as described.
CADデータに基づいてワークを測定する画像計測装置に用いられ、測定の手順を記述したパートプログラムを生成するパートプログラム生成方法であって、
CADデータを取り込むCADデータ取込ステップと、
取り込まれた前記CADデータを表示する表示ステップと、
前記表示ステップにより表示されたCADデータの領域を任意に選択可能とすると共に前記選択されたCADデータを抽出する選択領域抽出ステップと、
前記抽出されたCADデータに含まれ且つ各々が分断された複数のエッジグループデータを特定すると共に複数の前記エッジグループデータの先端部分を特定するCADデータ特定ステップと、
複数の前記エッジグループデータのうち少なくとも一つに測定条件を指定する測定条件設定ステップと、
複数の前記先端部分に前記測定条件を割り当てる測定条件割当ステップと
を備えたことを特徴とする画像計測装置用パートプログラム生成方法。
A part program generation method for generating a part program that is used in an image measurement apparatus that measures a workpiece based on CAD data and describes a measurement procedure,
A CAD data capturing step for capturing CAD data;
A display step for displaying the captured CAD data;
A selection area extracting step for arbitrarily selecting an area of the CAD data displayed in the display step and extracting the selected CAD data;
A CAD data specifying step of specifying a plurality of edge group data included in the extracted CAD data and each of which is divided, and specifying a tip portion of the plurality of edge group data ;
A measurement condition setting step for specifying a measurement condition for at least one of the plurality of edge group data ;
A method for generating a part program for an image measuring device , comprising: a measurement condition assigning step for assigning the measurement condition to a plurality of the tip portions .
CADデータに基づいてワークを測定する画像計測装置に用いられ、測定の手順を記述したパートプログラムを生成するパートプログラム生成方法であって、
CADデータを取り込むCADデータ取込ステップと、
取り込まれた前記CADデータを表示する表示ステップと、
前記表示ステップにより表示されたCADデータの領域を任意に選択可能とすると共に前記選択されたCADデータを抽出する選択領域抽出ステップと、
前記抽出されたCADデータに含まれ且つ各々が分断された複数のエッジグループデータを特定すると共に複数の前記エッジグループデータの先端部分を特定するCADデータ特定ステップと、
複数の前記エッジグループデータのうち少なくとも一つに測定条件を指定する測定条件設定ステップと、
複数の前記先端部分に前記測定条件を割り当てる測定条件割当ステップと
をコンピュータに実行させるよう構成されたことを特徴とする画像計測装置用パートプログラム生成用プログラム。
A part program generation method for generating a part program that is used in an image measurement apparatus that measures a workpiece based on CAD data and describes a measurement procedure,
A CAD data capturing step for capturing CAD data;
A display step for displaying the captured CAD data;
A selection area extracting step for arbitrarily selecting an area of the CAD data displayed in the display step and extracting the selected CAD data;
A CAD data specifying step of specifying a plurality of edge group data included in the extracted CAD data and each of which is divided, and specifying a tip portion of the plurality of edge group data ;
A measurement condition setting step for specifying a measurement condition for at least one of the plurality of edge group data ;
A program for generating a part program for an image measuring device , wherein the computer executes a measurement condition assigning step for assigning the measurement condition to a plurality of the tip portions .
JP2006077627A 2006-03-20 2006-03-20 Image measurement device part program generation device, image measurement device part program generation method, and image measurement device part program generation program Expired - Fee Related JP4812477B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006077627A JP4812477B2 (en) 2006-03-20 2006-03-20 Image measurement device part program generation device, image measurement device part program generation method, and image measurement device part program generation program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006077627A JP4812477B2 (en) 2006-03-20 2006-03-20 Image measurement device part program generation device, image measurement device part program generation method, and image measurement device part program generation program

Publications (2)

Publication Number Publication Date
JP2007257081A JP2007257081A (en) 2007-10-04
JP4812477B2 true JP4812477B2 (en) 2011-11-09

Family

ID=38631303

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006077627A Expired - Fee Related JP4812477B2 (en) 2006-03-20 2006-03-20 Image measurement device part program generation device, image measurement device part program generation method, and image measurement device part program generation program

Country Status (1)

Country Link
JP (1) JP4812477B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10521923B2 (en) 2016-03-16 2019-12-31 Mitutoyo Corporation Part program generating device of surface texture measuring apparatus
US10612917B2 (en) 2016-03-16 2020-04-07 Mitutoyo Corporation Control method of surface texture measuring apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3596753B2 (en) * 2000-05-10 2004-12-02 株式会社ミツトヨ Apparatus and method for generating part program for image measuring device
JP3853620B2 (en) * 2001-08-21 2006-12-06 株式会社ミツトヨ Part program generation device and program for image measurement device
JP2004078988A (en) * 2003-10-20 2004-03-11 Mitsutoyo Corp Instrument for measuring image, and method for displaying measured result

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10521923B2 (en) 2016-03-16 2019-12-31 Mitutoyo Corporation Part program generating device of surface texture measuring apparatus
US10612917B2 (en) 2016-03-16 2020-04-07 Mitutoyo Corporation Control method of surface texture measuring apparatus
DE102017203530B4 (en) 2016-03-16 2023-09-28 Mitutoyo Corporation Device for generating a part program of a device for measuring a surface condition

Also Published As

Publication number Publication date
JP2007257081A (en) 2007-10-04

Similar Documents

Publication Publication Date Title
JP3596753B2 (en) Apparatus and method for generating part program for image measuring device
JP2018111166A (en) Calibration device of visual sensor, method and program
JP2009175954A (en) Generating device of processing robot program
CN110793431A (en) Workpiece measuring apparatus, workpiece measuring method, and computer readable medium
JP3853620B2 (en) Part program generation device and program for image measurement device
JP4932202B2 (en) Part program generating apparatus for image measuring apparatus, part program generating method for image measuring apparatus, and part program generating program for image measuring apparatus
JP4812477B2 (en) Image measurement device part program generation device, image measurement device part program generation method, and image measurement device part program generation program
JP7329951B2 (en) Image processing device and its control method
JP2007026423A (en) Image processor and image processing method
JP3891853B2 (en) Image measuring apparatus and program for image measuring apparatus
JP3595014B2 (en) Edge detection method and non-contact image measurement system using the same
JP3853638B2 (en) Image measuring apparatus, image measuring method, and image measuring program
JP4074202B2 (en) Image measuring apparatus and program for generating edge tracking measurement program
JP3765061B2 (en) Offline teaching system for multi-dimensional coordinate measuring machine
CN109491327B (en) Three-dimensional model making device
JPH09250909A (en) Method and system for measuring image without contact
JP3608932B2 (en) Image measuring method and apparatus
JP6653539B2 (en) Image measuring device, control program therefor, and measuring device
JP2004078988A (en) Instrument for measuring image, and method for displaying measured result
WO2024154218A1 (en) Programming device
JPH11203485A (en) Image measuring device
JPH10141928A (en) Non-contacting picture measuring system
JP7152973B2 (en) Inspection condition creation support device, inspection condition creation support method, inspection condition creation support program, and recording medium
JP7152972B2 (en) Inspection condition creation support device, inspection condition creation support method, inspection condition creation support program, and recording medium
JP7262655B2 (en) DIMENSIONING DEVICE, DIMENSIONING METHOD AND PROGRAM

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090127

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110208

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110408

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4812477

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

Year of fee payment: 3

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