JP6077814B2 - NC data creation device and NC grinder - Google Patents

NC data creation device and NC grinder Download PDF

Info

Publication number
JP6077814B2
JP6077814B2 JP2012225300A JP2012225300A JP6077814B2 JP 6077814 B2 JP6077814 B2 JP 6077814B2 JP 2012225300 A JP2012225300 A JP 2012225300A JP 2012225300 A JP2012225300 A JP 2012225300A JP 6077814 B2 JP6077814 B2 JP 6077814B2
Authority
JP
Japan
Prior art keywords
grindstone
shape
data
arc
machining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2012225300A
Other languages
Japanese (ja)
Other versions
JP2014078123A (en
Inventor
純一 江口
純一 江口
Original Assignee
株式会社 ネオ
株式会社 ネオ
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社 ネオ, 株式会社 ネオ filed Critical 株式会社 ネオ
Priority to JP2012225300A priority Critical patent/JP6077814B2/en
Publication of JP2014078123A publication Critical patent/JP2014078123A/en
Application granted granted Critical
Publication of JP6077814B2 publication Critical patent/JP6077814B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Numerical Control (AREA)
  • Constituent Portions Of Griding Lathes, Driving, Sensing And Control (AREA)

Description

本発明は、NC(数値制御)研削盤に関し、特に、NC研削盤を制御するNCデータの作成に関する。   The present invention relates to an NC (numerical control) grinder, and more particularly to creation of NC data for controlling the NC grinder.

従来、NC(数値制御)工作機械の一種として、NC研削盤が知られている。NC研削盤は、工作物(ワーク)と研削砥石(砥石車)との相対運動を、位置、速度などの数値情報によって制御し、加工にかかわる一連の動作をプログラムした指令によって実行するものである。   Conventionally, an NC grinding machine is known as a kind of NC (numerical control) machine tool. The NC grinder controls the relative motion between the workpiece (workpiece) and the grinding wheel (grinding wheel) by numerical information such as position and speed, and executes a series of operations related to machining by programmed commands. .

このようなNC研削盤による精密成形研削加工においては、通常、まず、荒加工を行ったうえで、仕上げ加工が行われる。この仕上げ加工において利用される研削砥石(以下、単に砥石という)は、概ね円板状の形状を有しており、工作物に当接して研削加工を行う部分である先端部(外周部)が薄くなるように形成されており、更に、工作物に実際に当接する研削加工部分を構成する砥石の先端は、(砥石の回転中心を通り、砥石の回転軸に平行な面による)断面外形が半円状の円弧をなすように形成されている。   In such precision forming grinding with an NC grinder, first, roughing is first performed and then finishing is performed. A grinding wheel (hereinafter simply referred to as a grindstone) used in this finishing process has a generally disk shape, and a tip part (outer peripheral part) that is a part that abuts against a workpiece and performs grinding is provided. Furthermore, the tip of the grindstone that constitutes the grinding part that actually contacts the workpiece has a cross-sectional outer shape (through a plane that passes through the center of rotation of the grindstone and is parallel to the rotation axis of the grindstone). It is formed so as to form a semicircular arc.

このような仕上げ用砥石が取り付けられたNC研削盤を制御するためのNCデータ(NCプログラム)は、砥石先端の断面外形が半円状の円弧をなすような形状を有していることを前提に作成される。通常、仕上げ加工用の砥石の場合、砥石の先端を構成する円弧の中心が砥石の基準点とされ、NCデータは、当該基準点の位置を制御することで、砥石の位置を制御することになる。このように、砥石の基準点と加工点(工作物と砥石との接触点)とが、ずれていることから、工作物の形状データに基づいて、砥石の基準点を工作物の所望の形状の輪郭上を移動させるようなNCデータを作成してしまうと、実際の研削加工時においては、砥石先端の円弧の半径(R)分だけ余分に工作物を研削してしまうことになる。   NC data (NC program) for controlling an NC grinder equipped with such a finishing grindstone is premised on that the cross-sectional outer shape of the grindstone tip has a semicircular arc shape. Created on. Normally, in the case of a grinding wheel for finishing, the center of the arc that forms the tip of the grinding wheel is used as a reference point of the grinding wheel, and NC data controls the position of the grinding wheel by controlling the position of the reference point. Become. As described above, since the reference point of the grindstone and the processing point (contact point between the workpiece and the grindstone) are deviated, the reference point of the grindstone is determined based on the shape data of the workpiece. If NC data that moves along the contour of the workpiece is created, the workpiece will be excessively ground by the radius (R) of the arc at the tip of the grindstone during actual grinding.

このような事態を避けるため、従来は、例えば、NCデータを作成する際には、砥石の基準点が、工作物の所望の形状の輪郭よりRだけ外側を通るように、砥石(基準点)の経路を算出するようにしていた。   In order to avoid such a situation, conventionally, for example, when creating NC data, the grindstone (reference point) is set so that the reference point of the grindstone passes outside the contour of the desired shape of the workpiece by R. The route of was to be calculated.

しかしながら、砥石は、使用をしているうちに、摩耗し、更に、その摩耗も通常は、一様ではなく、摩耗度が大きい部分と小さい部分が存在するようになる。そのため、摩耗した砥石を使って、砥石が摩耗していない(砥石先端の断面外形が半円状の形状を有している)ことを前提に作成されたNCデータによる研削加工を行うと、砥石の摩耗度が大きな部分によって加工される工作物の加工部分については、削り残しがでるようになっていた。   However, the grindstone wears during use, and the wear is usually not uniform, and there are a portion with a high degree of wear and a portion with a small degree of wear. Therefore, when grinding is performed using NC data created on the premise that the grindstone is not worn (the cross-sectional outer shape of the grindstone tip has a semicircular shape) using the worn grindstone. The machined part of the workpiece that is machined by the part with a high degree of wear is left uncut.

このように砥石の摩耗による削り残しが生じた場合、従来は、例えば、砥石のツルーイング(ドレッシング)作業を行って、砥石の先端形状を半円状に整形する必要があり、手間がかかっていた。   In the case where uncut material due to wear of the grindstone occurs in this way, conventionally, for example, it has been necessary to perform a truing (dressing) operation of the grindstone to shape the tip shape of the grindstone into a semicircular shape, which is troublesome. .

なお、特開2009−214289号公報には、予め図形データに基づいてNC用図形データを作成すると共に、実際のワークと砥石の研削加工部分を撮像手段で撮像し、前記NC用図形データとワーク画像と砥石画像を制御装置により表示装置の画面上に加工ラインとワーク画像と砥石画像を重ねて表示し、図形データに変換した砥石図形で、表示された画面上の前記加工ラインに基づいてNC加工プログラムを作成し、前記砥石図形とその動きの図形をワーク画像に重ねてシミュレーションしてから砥石の軌跡を確認し、前記NC加工プログラムに基づいて自動的に実際の砥石でワークを研削加工することを特徴とする倣い研削方法において、前記砥石図形は、実際の砥石または実際の砥石で試験材料を研削して得られた研削跡を撮像し、この撮像した画像をベクトルデータに変換処理するものが記載されている。   In JP 2009-214289 A, NC graphic data is created in advance based on graphic data, and an actual workpiece and a grinding portion of a grindstone are imaged by an imaging means. An image and a grindstone image are displayed on the screen of the display device by the control device by superimposing the machining line, the workpiece image and the grindstone image, and converted into graphic data. The NC is based on the machining line on the displayed screen. A machining program is created, the wheel graphic and its movement are superimposed on the workpiece image and simulated, and then the trajectory of the grinding wheel is confirmed. The workpiece is automatically ground with the actual grinding wheel based on the NC machining program. In the profile grinding method, the grindstone image is obtained by imaging a grinding trace obtained by grinding a test material with an actual grindstone or an actual grindstone. It has been described which converts process the captured image into vector data.

特開2009−214289号公報(段落0012,0013)JP 2009-214289 A (paragraphs 0012, 0013)

本発明の目的は、現在の砥石の先端形状を適切に特定することができ、特定された砥石の先端形状に応じたNCデータを作成することが可能なNCデータ作成装置を提供することにある。   An object of the present invention is to provide an NC data creation device that can appropriately identify the tip shape of the current grindstone and can create NC data according to the identified tip shape of the grindstone. .

本発明に係るNCデータ作成装置は、ユーザの指示に従って、砥石の先端形状を特定する砥石形状データを作成する砥石形状特定部と、工作物形状データ及び前記砥石形状データに基づいて、NCデータを作成するNCデータ作成部と、撮像部によって撮像された現在の砥石の先端形状を示す画像を表示装置に表示させると共に、前記砥石形状データに基づいて、砥石の先端形状を示す砥石形状図形を表示装置に表示させる表示処理部とを備えたことを特徴とする。   The NC data creation device according to the present invention, according to a user instruction, NC data based on a grindstone shape identifying unit that creates grindstone shape data that identifies a tip shape of a grindstone, workpiece shape data, and the grindstone shape data. An NC data creation unit to be created and an image showing the tip shape of the current grindstone imaged by the imaging unit are displayed on the display device, and a grindstone shape graphic showing the tip shape of the grindstone is displayed based on the grindstone shape data And a display processing unit to be displayed on the apparatus.

この場合において、前記砥石形状特定部は、前記砥石形状図形の形状を特定するための制御点データを管理し、ユーザの指示に従って、前記制御点データを更新し、前記制御点データに基づいて、前記砥石形状データを作成し、前記表示処理部は、当該砥石形状データに基づいて、前記砥石形状図形を表示装置に表示させると共に、前記制御点データに基づいて、制御点を表示装置に表示させるようにしてもよい。   In this case, the grindstone shape specifying unit manages control point data for specifying the shape of the grindstone shape figure, updates the control point data according to a user instruction, and based on the control point data, The whetstone shape data is created, and the display processing unit displays the whetstone shape figure on a display device based on the whetstone shape data, and displays a control point on the display device based on the control point data. You may do it.

更に、この場合において、前記砥石形状特定部は、前記制御点データに基づいて、当該制御点データに対応する曲線を特定し、当該曲線に基づいて、前記砥石形状データを作成するようにしてもよい。   Further, in this case, the grindstone shape specifying unit may specify a curve corresponding to the control point data based on the control point data, and create the grindstone shape data based on the curve. Good.

更に、この場合において、前記砥石形状特定部は、前記曲線を、線分及び円弧で近似することによって、前記砥石形状データを作成するようにしてもよい。また、前記曲線は、スプライン曲線であってもよい。   In this case, the grindstone shape specifying unit may create the grindstone shape data by approximating the curve with a line segment and an arc. The curve may be a spline curve.

また、以上の場合において、前記現在の砥石の先端形状を示す画像は、現在の砥石によって研削加工されたテスト材料の画像であってもよい。   In the above case, the image showing the tip shape of the current grindstone may be an image of a test material ground by the current grindstone.

また、以上の場合において、前記砥石形状データは、砥石の先端形状を構成する円弧要素に関するデータであり、前記工作物形状データは、工作物の形状を構成する線分要素及び円弧要素に関するデータであり、前記NCデータ作成部は、前記工作物の形状を構成する各線分要素毎に、各線分要素と一点で接触可能な円弧要素を、各線分要素の加工に使用する加工用円弧として、前記砥石形状データから選択し、選択された加工用円弧による加工時の工具経路を求めると共に、前記工作物の形状を構成する各円弧要素毎に、各円弧要素と一点で接触可能な円弧要素を、各円弧要素の加工に使用する加工用円弧として、前記砥石形状データから選択し、選択された加工用円弧による加工時の工具経路を求め、求まった工具経路に基づいて、NCデータを作成するようにしてもよい。   In the above case, the grindstone shape data is data related to the arc elements constituting the tip shape of the grindstone, and the workpiece shape data is data related to the line segment elements and arc elements constituting the shape of the workpiece. The NC data creation unit, for each line segment element constituting the shape of the workpiece, an arc element that can be in contact with each line segment element at one point as a processing arc to be used for machining each line segment element, Select from the grinding wheel shape data, obtain the tool path at the time of machining by the selected machining arc, and for each arc element constituting the shape of the workpiece, an arc element that can contact with each arc element at one point, A machining arc to be used for machining each arc element is selected from the grinding wheel shape data, a tool path at the time of machining with the selected machining arc is obtained, and NC is determined based on the obtained tool path. It is also possible to create an over data.

この場合において、前記NCデータ作成部は、工作物の形状を構成する線分要素の法線の傾きと、前記砥石の先端形状を構成する各円弧要素の法線角度範囲とを比較することによって、前記線分要素の加工に使用する加工用円弧を選択し、工作物の形状を構成する円弧要素の法線角度範囲と、前記砥石の先端形状を構成する各円弧要素の法線角度範囲とを比較することによって、前記工作物の形状を構成する円弧要素の加工に使用する加工用円弧を選択するようにしてもよい。   In this case, the NC data creation unit compares the inclination of the normal line of the line segment element constituting the shape of the workpiece with the normal angle range of each arc element constituting the tip shape of the grindstone. Selecting a machining arc to be used for machining the line segment element, and a normal angle range of the arc element constituting the shape of the workpiece, and a normal angle range of each arc element constituting the tip shape of the grindstone May be used to select a machining arc to be used for machining an arc element constituting the shape of the workpiece.

本発明に係るNC研削盤は、砥石と、当該砥石の先端部付近の撮像を行う撮像部と、前記砥石と工作物とを相対的に移動させる移動部と、上記NCデータ作成装置と、当該NCデータ作成装置によって制御される表示装置と、前記NCデータ作成装置によって作成されたNCデータに従って、前記移動部を制御するNC制御装置とを備えたことを特徴とする。   An NC grinder according to the present invention includes a grindstone, an imaging unit that captures an image near the tip of the grindstone, a moving unit that relatively moves the grindstone and the workpiece, the NC data creation device, A display device controlled by an NC data creation device and an NC control device that controls the moving unit according to the NC data created by the NC data creation device are provided.

この場合において、前記表示処理部は、研削加工時において、前記撮像部によって撮像された工作物の画像を前記表示装置に表示させると共に、前記砥石形状データに基づいて、砥石の形状を示す砥石形状図形を前記表示装置に表示させるようにしてもよい。   In this case, during the grinding process, the display processing unit causes the display device to display an image of the workpiece imaged by the imaging unit, and indicates a grindstone shape based on the grindstone shape data. You may make it display a figure on the said display apparatus.

本発明によれば、現在の砥石の先端形状を適切に特定することができ、特定された砥石の先端形状に応じたNCデータを作成することが可能となる。   According to the present invention, the tip shape of the current grindstone can be specified appropriately, and NC data corresponding to the specified tip shape of the grindstone can be created.

本発明が適用されるNC研削盤の構成を説明するための図である。It is a figure for demonstrating the structure of the NC grinder to which this invention is applied. NCデータ作成装置152のハードウェア構成を説明するための図である。It is a figure for demonstrating the hardware constitutions of NC data preparation apparatus 152. FIG. NCデータ作成装置152のソフトウェア構成を説明するための図である。It is a figure for demonstrating the software structure of the NC data preparation apparatus 152. FIG. 砥石形状要素管理テーブル350の構成を説明するための図である。It is a figure for demonstrating the structure of the grindstone shape element management table 350. FIG. 工作物形状要素管理テーブル360の構成を説明するための図である。It is a figure for demonstrating the structure of the workpiece shape element management table 360. FIG. テスト材料の研削加工の様子を説明するための図である。It is a figure for demonstrating the mode of grinding of a test material. 砥石形状特定処理の概略を説明するための図(その1)である。It is a figure (the 1) for demonstrating the outline of a grindstone shape specific process. 砥石形状特定処理の概略を説明するための図(その2)である。It is FIG. (2) for demonstrating the outline of a grindstone shape specific process. 砥石形状特定部310における砥石形状特定処理の流れを説明するためのフローチャートである。It is a flowchart for demonstrating the flow of the grindstone shape specific process in the grindstone shape specific | specification part 310. FIG. 砥石形状特定処理の途中経過を説明するための図(その1)である。It is FIG. (1) for demonstrating the progress in the middle of a grindstone shape specific process. 砥石形状特定処理の途中経過を説明するための図(その2)である。It is FIG. (2) for demonstrating progress in the middle of a grindstone shape specific process. 砥石形状特定処理の途中経過を説明するための図(その3)である。It is FIG. (3) for demonstrating the progress in the middle of a grindstone shape specific process. NCデータ作成部320におけるNCデータ作成処理の流れを説明するためのフローチャートである。5 is a flowchart for explaining a flow of NC data creation processing in an NC data creation unit 320. 線分要素処理の詳細を説明するための図である。It is a figure for demonstrating the detail of a line segment element process. 処理対象となる円弧要素が、工具側から見て凹状の形状を有する場合の円弧要素処理を説明するための図である。It is a figure for demonstrating the circular arc element process in case the circular arc element used as a process target has a concave shape seeing from the tool side. 処理対象となる円弧要素が、工具側から見て凸状の形状を有する場合の円弧要素処理を説明するための図である。It is a figure for demonstrating the circular arc element process in case the circular arc element used as a process target has a convex shape seeing from the tool side.

以下、本発明の実施の形態について、図面を参照しつつ詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

図1は、本発明が適用されるNC研削盤の構成を説明するための図である。同図(a)は正面図を示し、同図(b)は平面図を示す。なお、同図(b)においては、簡単のため、一部の構成要素のみを示してある。   FIG. 1 is a diagram for explaining the configuration of an NC grinder to which the present invention is applied. The figure (a) shows a front view, and the figure (b) shows a top view. In FIG. 5B, only some components are shown for simplicity.

同図に示すように、本発明が適用されるNC研削盤100は、研削部110と、工作物保持部120と、工作物移動部130と、撮像部140と、制御部150とを備える。   As shown in the figure, an NC grinder 100 to which the present invention is applied includes a grinding unit 110, a workpiece holding unit 120, a workpiece moving unit 130, an imaging unit 140, and a control unit 150.

研削部110は、工作物保持部120に保持された工作物10の研削加工を行うものであって、砥石111を備える。研削部110は、研削加工時に、砥石111を回転させると共に、垂直方向(Z方向)に昇降(上下動)させることができるように構成されている。   The grinding unit 110 performs grinding of the workpiece 10 held by the workpiece holding unit 120 and includes a grindstone 111. The grinding unit 110 is configured to rotate the grindstone 111 and move it up and down (up and down) in the vertical direction (Z direction) during grinding.

工作物保持部120は、研削部110(砥石111)によって研削加工が施される工作物10を着脱可能に保持するものである。また、工作物保持部120は、工作物10と共に、砥石111の先端形状を特定するためのテスト材料(後述)についても保持できるように構成されている。工作物保持部120は、保持した工作物10を、砥石111に対して、相対運動させるため、工作物移動部130上に載置されている。   The workpiece holding unit 120 is configured to detachably hold the workpiece 10 to be ground by the grinding unit 110 (the grindstone 111). Moreover, the workpiece holding part 120 is comprised so that the test material (after-mentioned) for specifying the front-end | tip shape of the grindstone 111 with the workpiece 10 can also be hold | maintained. The workpiece holding unit 120 is placed on the workpiece moving unit 130 in order to move the held workpiece 10 relative to the grindstone 111.

工作物移動部130は、工作物10と砥石111とを相対的に移動させるものであって、XYテーブル131と、X軸用モータ132と、Y軸用モータ133とを備える。   The workpiece moving unit 130 relatively moves the workpiece 10 and the grindstone 111, and includes an XY table 131, an X-axis motor 132, and a Y-axis motor 133.

XYテーブル131は、X方向及びY方向それぞれに移動可能なテーブルであって、テーブル上に載置された工作部保持部120を砥石111に対してX方向及びY方向に移動させることで、工作部保持部120に保持された工作物10を砥石111に対してX方向及びY方向に移動させるものである。XYテーブル131には、X軸方向の移動を制御するX軸用モータ132と、Y軸方向の移動を制御するY軸用モータ133とが連結されている。X軸用モータ132及びY軸用モータ133はそれぞれ、制御部150と電気的に接続されており、制御部150によって回転方向や回転量等が制御される。   The XY table 131 is a table that can move in each of the X direction and the Y direction, and the work unit holding unit 120 placed on the table is moved in the X direction and the Y direction with respect to the grindstone 111, thereby The workpiece 10 held by the part holding part 120 is moved in the X direction and the Y direction with respect to the grindstone 111. An X-axis motor 132 that controls movement in the X-axis direction and a Y-axis motor 133 that controls movement in the Y-axis direction are connected to the XY table 131. The X-axis motor 132 and the Y-axis motor 133 are each electrically connected to the control unit 150, and the rotation direction, the rotation amount, and the like are controlled by the control unit 150.

撮像部140は、砥石111の上方に配置されて、砥石111の先端部(研削加工部分)付近の撮像を行うものである。撮像部140は、例えば、CCDカメラによって構成される。撮像部140は、砥石111の先端部付近の撮像を定期的に(例えば、1秒当たり20回)行い、撮像部140によって撮像された静止画像は、定期的に、制御部150に送られる。撮像部140と制御部150とは、例えば、USBインタフェースによって接続されており、撮像部140に撮像された画像データは、USBインタフェースを介して、制御部150に送られる。また、撮像部140は、倍率を切換可能に構成されており、例えば、砥石先端の現在の形状が容易に確認可能な倍率(例えば、500倍)と、より広い視野が確保可能な倍率(例えば、80倍)とのいずれかの倍率で撮像可能に構成されている。   The imaging unit 140 is disposed above the grindstone 111 and performs imaging of the vicinity of the tip (grinding portion) of the grindstone 111. The imaging unit 140 is configured by a CCD camera, for example. The imaging unit 140 periodically captures the vicinity of the tip of the grindstone 111 (for example, 20 times per second), and the still image captured by the imaging unit 140 is periodically sent to the control unit 150. The imaging unit 140 and the control unit 150 are connected by, for example, a USB interface, and image data captured by the imaging unit 140 is sent to the control unit 150 via the USB interface. In addition, the imaging unit 140 is configured to be able to switch the magnification. For example, a magnification (for example, 500 times) at which the current shape of the grindstone tip can be easily confirmed and a magnification (for example, a large field of view) can be ensured (for example, , 80 times), and can be imaged at any magnification.

制御部150は、NC研削盤100を制御するものであり、NC制御装置151と、NCデータ作成装置152と、表示装置153と、操作パネル154とを備える。   The control unit 150 controls the NC grinder 100 and includes an NC control device 151, an NC data creation device 152, a display device 153, and an operation panel 154.

NC制御装置151は、NCデータ作成装置152によって作成されたNCデータ(NCプログラム)に従って、X軸用モータ132、Y軸用モータ133等を制御して、NC研削盤100における研削加工を制御するものである。NC制御装置151は、NCデータ作成装置152と、例えば、USBインタフェースによって接続されており、NCデータ作成装置152から、USBインタフェースを介して送られてきたNCデータ(NCプログラム)に従った制御を行う。   The NC control device 151 controls the grinding process in the NC grinder 100 by controlling the X-axis motor 132, the Y-axis motor 133, etc. according to the NC data (NC program) created by the NC data creation device 152. Is. The NC control device 151 is connected to the NC data creation device 152 via, for example, a USB interface, and performs control according to NC data (NC program) sent from the NC data creation device 152 via the USB interface. Do.

NCデータ作成装置152は、NC制御装置151によって使用されるNCデータ(NCプログラム)を作成するものである。NCデータ作成装置152は、工作物の形状データ及び現在の砥石111の形状データに基づいて、現在の砥石111の形状によって、工作物10を所望の形状に加工するために必要なNCデータを作成する。NCデータ作成装置152は、例えば、通常のコンピュータによって構成される。   The NC data creation device 152 creates NC data (NC program) used by the NC control device 151. The NC data creation device 152 creates NC data necessary for processing the workpiece 10 into a desired shape based on the shape of the current grindstone 111 based on the shape data of the workpiece and the current shape data of the grindstone 111. To do. The NC data creation device 152 is configured by a normal computer, for example.

表示装置153は、NCデータ作成装置152と接続され、NCデータ作成用の各種画面や、工作物や砥石の形状を示す図形や、撮像部140によって撮像された画像等の表示を行うものである。表示装置153は、例えば、CRTディスプレイや液晶ディスプレイ(LCD)によって構成される。   The display device 153 is connected to the NC data creation device 152 and displays various screens for creating NC data, graphics indicating the shape of the workpiece and the grindstone, images captured by the imaging unit 140, and the like. . The display device 153 includes, for example, a CRT display or a liquid crystal display (LCD).

操作パネル154は、NC研削盤100を制御するための各種スイッチやつまみ等を備えるものである。操作パネル154は、例えば、電源投入用のスイッチや、砥石111の回転数を制御するためのつまみや、砥石111に対して工作物10を手動で移動させるためのつまみ等を備える。   The operation panel 154 includes various switches and knobs for controlling the NC grinder 100. The operation panel 154 includes, for example, a switch for turning on the power, a knob for controlling the rotational speed of the grindstone 111, a knob for manually moving the workpiece 10 with respect to the grindstone 111, and the like.

次に、NCデータ作成装置152の詳細について説明する。   Next, details of the NC data creation device 152 will be described.

図2は、NCデータ作成装置152のハードウェア構成を説明するための図である。   FIG. 2 is a diagram for explaining the hardware configuration of the NC data creation device 152.

同図に示すように、NCデータ作成装置152は、CPU201と、ROM202と、RAM203と、ハードディスクインタフェース部204と、ハードディスク装置205と、USBインタフェース部206と、入力装置207と、表示制御部208とを備える。   As shown in the figure, the NC data creation device 152 includes a CPU 201, a ROM 202, a RAM 203, a hard disk interface unit 204, a hard disk device 205, a USB interface unit 206, an input device 207, a display control unit 208, and the like. Is provided.

CPU201、ROM202、RAM203、ハードディスクインタフェース部204、USBインタフェース部206及び表示制御部208は、それぞれ、バス209に接続されている。また、ハードディスクインタフェース部204には、ハードディスク装置205が接続されている。また、USBインタフェース部206には、入力装置207が接続されると共に、撮像部140及びNC制御装置151が接続される。また、表示制御部208には、表示装置153が接続される。   The CPU 201, ROM 202, RAM 203, hard disk interface unit 204, USB interface unit 206, and display control unit 208 are each connected to the bus 209. A hard disk device 205 is connected to the hard disk interface unit 204. In addition, an input device 207 is connected to the USB interface unit 206, and an imaging unit 140 and an NC control device 151 are connected. A display device 153 is connected to the display control unit 208.

CPU201は、ROM202やRAM203に格納されたプログラムを実行することで、NCデータ作成装置152が提供する各種機能を実現する中央処理装置である。   The CPU 201 is a central processing unit that realizes various functions provided by the NC data creation device 152 by executing programs stored in the ROM 202 and the RAM 203.

ROM202は、CPU201が利用するプログラムやデータを記憶する読み出し専用の記憶装置(メモリ)である。RAM203は、CPU101が利用するプログラムやデータを一時的に記憶する読み書き可能な記憶装置(メモリ)である。   The ROM 202 is a read-only storage device (memory) that stores programs and data used by the CPU 201. The RAM 203 is a readable / writable storage device (memory) that temporarily stores programs and data used by the CPU 101.

ハードディスクインタフェース部204は、ハードディスク装置205とバス209との間のデータのやり取りを制御するものである。ハードディスク装置205は、CPU201が利用するOSその他の各種プログラムやデータを格納する補助記録装置である。   The hard disk interface unit 204 controls data exchange between the hard disk device 205 and the bus 209. The hard disk device 205 is an auxiliary recording device that stores an OS and other various programs and data used by the CPU 201.

USBインタフェース部206は、USBインタフェース部206に接続された外部機器(本実施形態では、入力装置207並びに撮像部140及びNC制御装置151)とバス209との間のデータのやり取りを制御するものである。   The USB interface unit 206 controls data exchange between an external device (in this embodiment, the input device 207, the imaging unit 140, and the NC control device 151) connected to the USB interface unit 206 and the bus 209. is there.

入力装置207は、ユーザの指示等を入力するためのもので、例えば、キーボードと、マウスその他のポインティングデバイスとによって構成される。   The input device 207 is for inputting user instructions and the like, and is configured by, for example, a keyboard and a mouse or other pointing device.

表示制御部208は、CPU201の指示に従って、NCデータ作成用の各種画面や、撮像部140によって撮像された画像等を、表示装置153に表示させるものである。表示制御部208は、例えば、表示装置153に表示される表示データが格納されるビデオ・メモリと、ビデオ・メモリに対して図形の描画等を行う描画用LSI等によって構成される。   The display control unit 208 causes the display device 153 to display various screens for creating NC data, images captured by the imaging unit 140, and the like in accordance with instructions from the CPU 201. The display control unit 208 includes, for example, a video memory that stores display data to be displayed on the display device 153, a drawing LSI that draws graphics on the video memory, and the like.

図3は、NCデータ作成装置152のソフトウェア構成を説明するための図である。   FIG. 3 is a diagram for explaining a software configuration of the NC data creation device 152.

同図に示すように、NCデータ作成装置152は、砥石形状特定部310と、NCデータ作成部320と、表示処理部330とを備える。各部310〜330は、基本的に、CPU201が、RAM203上にロードされたプログラムを実行することによって実現される。また、NCデータ作成装置152は、必要な情報を管理するため、制御点管理テーブル340と、砥石形状要素管理テーブル350と、工作物形状要素管理テーブル360とを備える。   As shown in the figure, the NC data creation device 152 includes a grindstone shape identification unit 310, an NC data creation unit 320, and a display processing unit 330. Each unit 310 to 330 is basically realized by the CPU 201 executing a program loaded on the RAM 203. The NC data creation device 152 includes a control point management table 340, a grindstone shape element management table 350, and a workpiece shape element management table 360 in order to manage necessary information.

砥石形状特定部310は、ユーザの指示に従って、現在の砥石111の先端形状を特定するためのものである。砥石形状特定部310における現在の砥石111の先端形状の特定処理(以下、砥石形状特定処理)の詳細については後述する。   The grindstone shape specifying unit 310 is for specifying the current tip shape of the grindstone 111 in accordance with a user instruction. The details of the current tip shape specifying process of the grindstone 111 in the grindstone shape specifying unit 310 (hereinafter, the grindstone shape specifying process) will be described later.

NCデータ作成部320は、工作物形状要素管理テーブル360に格納された工作物形状データ及び砥石形状要素管理テーブル350に格納された砥石形状データに基づいて、NCデータ(NCプログラム)を作成するものである。工作物形状要素管理テーブル360に格納される工作物形状データは、例えば、CADソフトウェア等を利用して別途作成されるDXF形式のファイル(DXFファイル)に基づいて予め適宜作成されるものであり、DXFファイルは、例えば、USBインタフェース部206に接続されたUSBメモリを介して、ハードディスク装置205に格納される。一方、砥石形状要素管理テーブル350に格納される砥石形状データは、ユーザの指示に従って砥石形状特定部310によって作成される。NCデータ作成部320におけるNCデータ作成処理の詳細については後述する。   The NC data creation unit 320 creates NC data (NC program) based on the workpiece shape data stored in the workpiece shape element management table 360 and the grindstone shape data stored in the grindstone shape element management table 350. It is. The workpiece shape data stored in the workpiece shape element management table 360 is appropriately created in advance based on a DXF file (DXF file) separately created using, for example, CAD software, The DXF file is stored in the hard disk device 205 via a USB memory connected to the USB interface unit 206, for example. On the other hand, the grindstone shape data stored in the grindstone shape element management table 350 is created by the grindstone shape identifying unit 310 in accordance with a user instruction. Details of the NC data creation processing in the NC data creation unit 320 will be described later.

表示処理部330は、表示装置153に表示される表示データの制御を行うものである。表示処理部330は、撮像部140から画像データが送られてくる度に、送られた画像データを表示装置153に表示させると共に、工作物形状データ360及び砥石形状データ350に基づいて、工作物の形状を示す図形及び砥石の形状を示す図形を表示装置153に表示させる。また、表示処理部330は、制御点管理テーブル340に格納された制御点データに基づいて、制御点を表示装置153に表示させる。   The display processing unit 330 controls display data displayed on the display device 153. The display processing unit 330 displays the transmitted image data on the display device 153 each time image data is sent from the imaging unit 140, and based on the workpiece shape data 360 and the grindstone shape data 350, the workpiece is displayed. The display device 153 displays a graphic indicating the shape of the wheel and a graphic indicating the shape of the grindstone. In addition, the display processing unit 330 causes the display device 153 to display control points based on the control point data stored in the control point management table 340.

制御点管理テーブル340は、砥石111の先端形状を示す図形の形状を特定・修正するための制御点に関する情報(制御点データ)を管理するためのものであり、より具体的には、各制御点の座標値を格納するものである。制御点管理テーブル340の詳細については後述する。   The control point management table 340 is for managing information (control point data) related to control points for specifying and correcting the shape of the figure indicating the tip shape of the grindstone 111, and more specifically, for each control. Stores the coordinate value of a point. Details of the control point management table 340 will be described later.

砥石形状要素管理テーブル350は、砥石111の先端形状を特定する砥石形状データを格納するものである。また、工作物形状要素管理テーブル360は、工作物の加工形状を特定する工作物形状データを格納するものである。   The grindstone shape element management table 350 stores grindstone shape data for specifying the tip shape of the grindstone 111. The workpiece shape element management table 360 stores workpiece shape data for specifying the machining shape of the workpiece.

図4は、砥石形状要素管理テーブル350の構成を説明するための図である。同図(a)は、砥石の先端形状の例を示し、同図(b)は、同図(a)に示された砥石の先端形状に対応する砥石形状要素管理テーブル350の例を示す。また、同図(c)は、砥石形状要素の種別が円弧の場合の開始角度、終了角度の測り方を示す。   FIG. 4 is a diagram for explaining the configuration of the grindstone shape element management table 350. The figure (a) shows the example of the front-end | tip shape of a grindstone, and the figure (b) shows the example of the grindstone-shaped element management table 350 corresponding to the front-end | tip shape of the whetstone shown by the same figure (a). FIG. 3C shows how to measure the start angle and the end angle when the type of the grindstone shape element is an arc.

NCデータ作成装置152においては、砥石111の先端形状を示す図形(砥石先端形状図形)は、円弧及び線分で構成されることになる(但し、後述するように、NCデータの作成に使用される砥石先端形状図形は、最終的には、円弧のみによって構成されている必要がある)。砥石形状要素管理テーブル350には、砥石形状データとして、砥石先端形状図形を構成する要素(円弧又は線分)それぞれについての情報が格納されることになる。また、砥石形状要素管理テーブル350には、砥石先端形状図形を構成する各要素の情報が、砥石先端形状の一方の端部(本実施形態においては、同図における左端411)から、他方の端部(本実施形態においては、同図における右端412)に向かって、砥石先端形状を構成する順番で格納されることになる。   In the NC data creation device 152, the figure indicating the tip shape of the grindstone 111 (grindstone tip shape figure) is composed of arcs and line segments (however, as will be described later, it is used for creating NC data). Finally, the grindstone tip shape figure needs to be composed only of arcs). In the grindstone shape element management table 350, information about each element (arc or line segment) constituting the grindstone tip shape figure is stored as grindstone shape data. Further, in the grindstone shape element management table 350, information of each element constituting the grindstone tip shape graphic is transmitted from one end of the grindstone tip shape (the left end 411 in the same figure in this embodiment) to the other end. They are stored in the order in which they form the grindstone tip shape toward the portion (in this embodiment, the right end 412 in the figure).

同図(a)に示した例においては、砥石の先端形状は、その左端411から右端412にかけて並ぶ3つの要素、すなわち、円弧401、線分402及び円弧403によって構成されているので、砥石形状要素管理テーブル350には、各要素について情報が、円弧401、線分402、円弧403の順に格納されることになる。   In the example shown in FIG. 5A, the tip shape of the grindstone is constituted by three elements arranged from the left end 411 to the right end 412, that is, an arc 401, a line segment 402, and an arc 403. In the element management table 350, information about each element is stored in the order of an arc 401, a line segment 402, and an arc 403.

同図(b)に示すように、砥石形状要素管理テーブル350は、「要素番号」フィールド351と、「種別」フィールド352と、「始点」フィールド353と、「終点」フィールド354と、「中心」フィールド355と、「半径」フィールド356とを備える。   As shown in FIG. 4B, the grindstone shape element management table 350 includes an “element number” field 351, a “type” field 352, a “start point” field 353, an “end point” field 354, and a “center”. A field 355 and a “radius” field 356 are provided.

「要素番号」フィールド351には、砥石の先端形状を構成する各要素を識別するための情報(番号)が格納される。同図に示した例においては、要素401の要素番号が「1」、要素402の要素番号が「2」、要素403の要素番号が「3」となっている。   The “element number” field 351 stores information (number) for identifying each element constituting the tip shape of the grindstone. In the example shown in the figure, the element number of the element 401 is “1”, the element number of the element 402 is “2”, and the element number of the element 403 is “3”.

「種別」フィールド352には、砥石の先端形状を構成する各要素の種別を示す情報が格納される。本実施形態においては、砥石の先端形状は、線分と円弧の組合せで表されるので、「種別」フィールド352には、各要素が「線分」であるか、「円弧」であるかを示す情報が格納される。   The “type” field 352 stores information indicating the type of each element constituting the tip shape of the grindstone. In the present embodiment, since the tip shape of the grindstone is represented by a combination of a line segment and an arc, the “type” field 352 indicates whether each element is a “line segment” or an “arc”. Information to be stored is stored.

「始点」フィールド353には、砥石の先端形状を構成する各要素の始点の位置を示す情報が格納される。要素の種別が「線分」の場合は、線分の開始点の座標値が格納される。一方、要素の種別が「円弧」の場合は、円弧の開始角度が格納される。円弧の開始角度は、同図(c)に示すように、円弧の中心から円弧の開始点に向けて伸ばした直線と、X軸(正)方向とがなす角度をX軸から反時計回りに測ったものになる。   The “start point” field 353 stores information indicating the position of the start point of each element constituting the tip shape of the grindstone. When the element type is “line segment”, the coordinate value of the start point of the line segment is stored. On the other hand, when the element type is “arc”, the arc start angle is stored. The starting angle of the arc is, as shown in FIG. 3C, the angle formed by the straight line extending from the center of the arc toward the starting point of the arc and the X axis (positive) direction counterclockwise from the X axis. It will be measured.

「終点」フィールド354には、砥石の先端形状を構成する各要素の終点の位置を示す情報が格納される。要素の種別が「線分」の場合は、線分の終了点の座標値が格納される。一方、要素の種別が「円弧」の場合は、円弧の終了角度が格納される。円弧の終了角度は、同図(c)に示すように、円弧の中心から円弧の終了点に向けて伸ばした直線と、X軸(正)方向とがなす角度をX軸から反時計回りに測ったものになる。   The “end point” field 354 stores information indicating the position of the end point of each element constituting the tip shape of the grindstone. When the element type is “line segment”, the coordinate value of the end point of the line segment is stored. On the other hand, when the element type is “arc”, the arc end angle is stored. The end angle of the arc is, as shown in FIG. 3C, the angle formed by the straight line extending from the center of the arc toward the end point of the arc and the X axis (positive) direction counterclockwise from the X axis. It will be measured.

「中心」フィールド355及び「半径」フィールド356は共に、要素の種別が「円弧」の場合にのみ意味を持つフィールドであって、「中心」フィールド355には、該当する円弧の中心の座標値が格納され、「半径」フィールド356には、該当する円弧の半径が格納される。   Both the “center” field 355 and the “radius” field 356 are meaningful only when the element type is “arc”, and the “center” field 355 contains the coordinate value of the center of the corresponding arc. The “radius” field 356 stores the radius of the corresponding arc.

図5は、工作物形状要素管理テーブル360の構成を説明するための図である。同図(a)は、工作物の形状の例を示し、同図(b)は、同図(a)に示された工作物に対応する工作物形状要素管理テーブル360の例を示す。また、同図(c)は、工作物形状要素の種別が円弧の場合の開始角度、終了角度の測り方を示す。   FIG. 5 is a diagram for explaining the configuration of the workpiece shape element management table 360. FIG. 4A shows an example of the shape of the workpiece, and FIG. 4B shows an example of the workpiece shape element management table 360 corresponding to the workpiece shown in FIG. FIG. 3C shows how to measure the start angle and the end angle when the type of workpiece shape element is an arc.

NCデータ作成装置152においては、工作物の加工形状(輪郭)は、一般に、円弧及び線分によって構成されることになる。工作物形状要素管理テーブル360には、工作物形状データとして、工作物の形状(輪郭)を構成する要素(円弧又は線分)それぞれについての情報が格納されることになる。また、工作物形状要素管理テーブル360には、工作物の形状を構成する各要素の情報が、工作物の形状を構成する順番で格納されることになる。 In the NC data creation device 152, the machining shape (contour) of a workpiece is generally constituted by an arc and a line segment. The workpiece shape element management table 360 stores information about each element (arc or line segment) constituting the shape (contour) of the workpiece as workpiece shape data. Also, the workpiece shape element management table 360 stores information on each element constituting the shape of the workpiece in the order of constituting the shape of the workpiece.

同図(a)に示した例においては、工作物の形状は、連続する7つの要素、すなわち、線分501,502、円弧503,504、線分505〜507によって構成されているので、工作物形状要素管理テーブル30には、各要素について情報が、例えば、線分501、線分502、円弧503、円弧504、線分505、線分506、線分507の順に格納されることになる。 In the example shown in FIG. 6 (a), the shape of the workpiece, seven successive elements, namely, the line segment 501 and 502, arcs 503 and 504, which is configured by line segments 505 to 507, tool The object shape element management table 3 60 stores information about each element in the order of, for example, a line segment 501, a line segment 502, an arc 503, an arc 504, a line segment 505, a line segment 506, and a line segment 507. become.

同図(b)に示すように、工作物形状要素管理テーブル360は、「要素番号」フィールド361と、「種別」フィールド362と、「始点」フィールド363と、「終点」フィールド364と、「中心」フィールド365と、「半径」フィールド366とを備える。   As shown in FIG. 5B, the workpiece shape element management table 360 includes an “element number” field 361, a “type” field 362, a “start point” field 363, an “end point” field 364, and a “center”. "Field 365 and a" radius "field 366.

「要素番号」フィールド361には、工作物の形状を構成する各要素を識別するための情報(番号)が格納される。同図に示した例においては、要素501の要素番号が「1」、要素502の要素番号が「2」、要素503の要素番号が「3」、要素504の要素番号が「4」、要素505の要素番号が「5」、要素506の要素番号が「6」、要素507の要素番号が「7」となっている。   The “element number” field 361 stores information (number) for identifying each element constituting the shape of the workpiece. In the example shown in the figure, the element number of the element 501 is “1”, the element number of the element 502 is “2”, the element number of the element 503 is “3”, the element number of the element 504 is “4”, The element number 505 is “5”, the element number 506 is “6”, and the element number 507 is “7”.

「種別」フィールド362には、工作物の形状を構成する各要素の種別、すなわち、「線分」であるか、「円弧」であるかを示す情報が格納される。   The “type” field 362 stores information indicating the type of each element constituting the shape of the workpiece, that is, “line segment” or “arc”.

「始点」フィールド363には、工作物の形状を構成する各要素の始点の位置を示す情報が格納される。要素の種別が「線分」の場合は、線分の開始点の座標値が格納される。一方、要素の種別が「円弧」の場合は、円弧の開始角度が格納される。円弧の開始角度は、同図(c)に示すように、円弧の中心から円弧の開始点に向けて伸ばした直線と、X軸(正)方向とがなす角度をX軸から反時計回りに測ったものになる。   The “start point” field 363 stores information indicating the position of the start point of each element constituting the shape of the workpiece. When the element type is “line segment”, the coordinate value of the start point of the line segment is stored. On the other hand, when the element type is “arc”, the arc start angle is stored. The starting angle of the arc is, as shown in FIG. 3C, the angle formed by the straight line extending from the center of the arc toward the starting point of the arc and the X axis (positive) direction counterclockwise from the X axis. It will be measured.

「終点」フィールド364には、工作物の形状を構成する各要素の終点の位置を示す情報が格納される。要素の種別が「線分」の場合は、線分の終了点の座標値が格納される。一方、要素の種別が「円弧」の場合は、円弧の終了角度が格納される。円弧の終了角度は、同図(c)に示すように、円弧の中心から円弧の終了点に向けて伸ばした直線と、X軸(正)方向とがなす角度をX軸から反時計回りに測ったものになる。   The “end point” field 364 stores information indicating the position of the end point of each element constituting the shape of the workpiece. When the element type is “line segment”, the coordinate value of the end point of the line segment is stored. On the other hand, when the element type is “arc”, the arc end angle is stored. The end angle of the arc is, as shown in FIG. 3C, the angle formed by the straight line extending from the center of the arc toward the end point of the arc and the X axis (positive) direction counterclockwise from the X axis. It will be measured.

「中心」フィールド365及び「半径」フィールド366は共に、要素の種別が「円弧」の場合にのみ、意味を持つフィールドであって、「中心」フィールド365には、該当する円弧の中心の座標値が格納され、「半径」フィールド366には、該当する円弧の半径が格納される。   The “center” field 365 and the “radius” field 366 are both meaningful only when the element type is “arc”, and the “center” field 365 includes the coordinate value of the center of the corresponding arc. Is stored, and the radius of the corresponding arc is stored in the “radius” field 366.

次に、砥石形状特定部310における砥石形状特定処理について説明する。   Next, the grindstone shape identifying process in the grindstone shape identifying unit 310 will be described.

砥石形状特定部310における砥石形状特定処理を実行するにあたっては、まず、テスト材料の研削加工が行われる。これは、現在の砥石111の先端形状を特定するために、現在の砥石111の先端形状をテスト材料に転写するために行うものである。砥石111の先端形状を特定するにあたって、砥石111を直接撮像しても、焦点が合った画像を得るのが困難なため、テスト材料に対して研削加工を行い、研削加工により形成されたテスト材料の研削加工跡から、砥石111の先端形状の特定を行うというものである。   In executing the grindstone shape identifying process in the grindstone shape identifying unit 310, first, grinding of the test material is performed. This is performed to transfer the current tip shape of the grindstone 111 to the test material in order to specify the current tip shape of the grindstone 111. When specifying the tip shape of the grindstone 111, it is difficult to obtain a focused image even if the grindstone 111 is directly imaged. Therefore, the test material is ground and the test material formed by grinding is used. The tip shape of the grindstone 111 is identified from the grinding traces.

図6は、テスト材料の研削加工の様子を説明するための図である。   FIG. 6 is a diagram for explaining the state of grinding of the test material.

同図(a)は、砥石111による研削加工時のテスト材料を示し、同図(b)は、研削加工後のテスト材料を示している。工作部保持部120に適宜保持されたテスト材料600に対して、同図(a)に示すように、砥石111をY軸方向に相対的に移動させ、一定の深さまで研削加工を行うと、同図(b)に示すように、テスト材料600には、その時点での砥石111の先端形状が転写されることになる。   The figure (a) shows the test material at the time of the grinding process by the grindstone 111, and the figure (b) shows the test material after the grinding process. With respect to the test material 600 appropriately held in the work part holding part 120, as shown in FIG. 5A, when the grindstone 111 is relatively moved in the Y-axis direction and grinding is performed to a certain depth, As shown in FIG. 4B, the tip shape of the grindstone 111 at that time is transferred to the test material 600.

以上のようなテスト材料600の研削加工が終了した後に、ユーザによって、NCデータ作成装置152が備える砥石形状特定機能が起動されると、砥石形状特定部310における砥石形状特定処理が開始される。   After the grinding of the test material 600 as described above is completed, when the grindstone shape identifying function provided in the NC data creation device 152 is activated by the user, the grindstone shape identifying process in the grindstone shape identifying unit 310 is started.

図7及び図8は、砥石形状特定処理の概略を説明するための図である。   7 and 8 are diagrams for explaining the outline of the grindstone shape specifying process.

図7(a)は、砥石形状特定機能が起動された直後に、表示装置153に表示される表示画面の例を示し、同図(b)は、ユーザによって、テスト材料に形成された研削跡と、砥石を示す図形との位置あわせが行われた状態を示している。また、図8(a)は、ユーザによって、砥石形状修正機能(後述)が起動された直後に、表示装置153に表示される表示画面の例を示し、同図(b)は、ユーザによって、テスト材料に形成された研削跡に合わせて砥石の形状が特定された状態を示している。   FIG. 7A shows an example of a display screen displayed on the display device 153 immediately after the grindstone shape specifying function is activated, and FIG. 7B shows a grinding mark formed on the test material by the user. And the state where alignment with the figure which shows a grindstone was performed is shown. Moreover, Fig.8 (a) shows the example of the display screen displayed on the display apparatus 153 immediately after a grindstone shape correction function (after-mentioned) is started by the user, The same figure (b) is shown by the user. The state in which the shape of the grindstone is specified in accordance with the grinding mark formed on the test material is shown.

砥石形状特定機能が起動されると、まず、表示処理部330によって、砥石の初期形状図形(摩耗していない状態の砥石の形状を示す図形)の表示が行われる。すなわち、図7(a)に示すように、ユーザによって適宜指定された砥石パラメータ(先端円弧の半径等)に従って、砥石の初期形状を示す図形(砥石初期形状図形)711が表示装置153の表示画面の所定の位置に表示される。砥石初期形状図形711においては、砥石の先端は、砥石の基準点を中心とした半円状の一つの円弧として描画されることになる。   When the grindstone shape specifying function is activated, first, the display processing unit 330 displays an initial shape figure of the grindstone (a figure showing the shape of the grindstone in a state where it is not worn). That is, as shown in FIG. 7A, a figure (whetstone initial shape figure) 711 indicating the initial shape of the grindstone is displayed on the display screen 153 according to the grindstone parameters (radius of the tip arc, etc.) appropriately designated by the user. Are displayed at predetermined positions. In the grindstone initial shape graphic 711, the tip of the grindstone is drawn as one semicircular arc centered on the reference point of the grindstone.

砥石初期形状図形711が表示装置153の表示画面の所定の位置に表示されると、ユーザは、キーボード等の入力装置207を操作して、砥石初期形状図形711を適宜移動させて、目視により、撮像部140によって撮像され、表示装置153によって表示されているテスト材料の画像700との位置あわせを行う。すなわち、同図(b)に示すように、テスト材料の研削加工跡に合うように、砥石初期形状図形711を移動させる。   When the grindstone initial shape graphic 711 is displayed at a predetermined position on the display screen of the display device 153, the user operates the input device 207 such as a keyboard to appropriately move the grindstone initial shape graphic 711, and visually Alignment with the test material image 700 captured by the imaging unit 140 and displayed by the display device 153 is performed. That is, as shown in FIG. 4B, the grindstone initial shape graphic 711 is moved so as to match the grinding trace of the test material.

砥石初期形状図形711とテスト材料の画像700との位置あわせが完了すると、同図(b)に示すように、表示装置153には、テスト材料の研削加工跡の画像701の上に、摩耗していない状態の砥石図形711が重ねて表示されるので、現在の砥石がどの程度摩耗しているかを容易に確認することができる。   When the alignment of the initial shape figure 711 of the grindstone and the image 700 of the test material is completed, the display device 153 is worn on the image 701 of the grinding mark of the test material as shown in FIG. Since the grindstone figure 711 in a state of not being displayed is displayed in an overlapping manner, it can be easily confirmed how much the current grindstone is worn.

確認の結果、現在の砥石形状(摩耗度)に応じたNCデータの作成が必要であると判断した場合、ユーザは、NCデータ作成装置152の砥石形状修正機能を起動する。   As a result of the confirmation, if it is determined that NC data needs to be created in accordance with the current grindstone shape (wear level), the user activates the grindstone shape correction function of the NC data creation device 152.

砥石形状修正機能が起動されると、表示処理部330によって、表示装置153の表示画面に、砥石初期形状図形と共に、砥石初期形状図形の先端の形状を制御するための点(制御点)が表示される。すなわち、図8(a)に示すように、砥石の先端を示す円弧上に、複数(本実施形態においては11個)の制御点801〜811が表示される。複数の制御点801〜811はそれぞれ、ユーザがマウス等の入力装置207を使用して、その位置を変更できるようになっている。ユーザによって制御点801〜811の位置が変更されると、NCデータ作成装置152によって変更後の制御点801〜811を滑らかにつなぐような曲線が生成され、砥石の先端を示す図形として表示されることになる。   When the grindstone shape correction function is activated, the display processing unit 330 displays a point (control point) for controlling the shape of the tip of the grindstone initial shape graphic along with the grindstone initial shape graphic on the display screen of the display device 153. Is done. That is, as shown in FIG. 8A, a plurality (11 in the present embodiment) of control points 801 to 811 are displayed on an arc indicating the tip of the grindstone. The positions of the plurality of control points 801 to 811 can be changed by the user using the input device 207 such as a mouse. When the position of the control points 801 to 811 is changed by the user, a curve that smoothly connects the control points 801 to 811 after the change is generated by the NC data creation device 152 and displayed as a figure indicating the tip of the grindstone. It will be.

ユーザは、表示装置153に表示されたテスト材料の画像700と、砥石形状を示す図形711とを見比べながら、制御点801〜811の位置を適宜変更し、最終的に、同図(b)に示すように、砥石形状を示す図形711の先端形状を、テスト材料の研削跡と一致させる。ユーザは、砥石形状を示す図形711の先端形状が、テスト材料の研削跡と一致したと判断したら、NCデータ作成装置152に、砥石形状特定処理の終了を適宜指示する。   The user appropriately changes the positions of the control points 801 to 811 while comparing the image 700 of the test material displayed on the display device 153 with the graphic 711 indicating the shape of the grindstone, and finally, FIG. As shown, the tip shape of the graphic 711 indicating the shape of the grindstone is matched with the grinding mark of the test material. When the user determines that the tip shape of the graphic 711 indicating the grindstone shape matches the grinding mark of the test material, the user appropriately instructs the NC data creation device 152 to end the grindstone shape specifying process.

次に、砥石形状特定処理の詳細について説明する。   Next, details of the grindstone shape specifying process will be described.

図9は、砥石形状特定部310における砥石形状特定処理の流れを説明するためのフローチャートである。また、図10〜図12は、砥石形状特定処理の途中経過を説明するための図である。   FIG. 9 is a flowchart for explaining the flow of the grindstone shape identifying process in the grindstone shape identifying unit 310. Moreover, FIGS. 10-12 is a figure for demonstrating progress in the middle of a grindstone shape specific process.

砥石形状特定機能が起動されると、まず、砥石の初期形状図形、すなわち、摩耗していない状態の砥石の形状を示す図形の表示が行われる(S1)。次に、砥石形状修正機能が起動されると、初期制御点の設定が行われる(S2)。すなわち、初期制御点として、予め決められた数(本実施形態では、11)の制御点が、砥石の先端形状を示す半円状の円弧上に等間隔に並ぶように、各制御点の座標値が計算され、計算された座標値が、制御点データを管理する制御点管理テーブル340に格納される。   When the grindstone shape specifying function is activated, first, an initial shape graphic of the grindstone, that is, a graphic indicating the shape of the grindstone that is not worn is displayed (S1). Next, when the grindstone shape correcting function is activated, an initial control point is set (S2). That is, the coordinates of each control point are arranged so that a predetermined number (11 in the present embodiment) of control points are arranged at equal intervals on a semicircular arc indicating the tip shape of the grindstone as initial control points. The value is calculated, and the calculated coordinate value is stored in the control point management table 340 that manages the control point data.

図10に示すように、制御点管理テーブル340は、「点番号」フィールド341と、「X座標」フィールド342と、「Y座標」フィールド343とを備え、各制御点のX座標値及びY座標値を管理している。   As shown in FIG. 10, the control point management table 340 includes a “point number” field 341, an “X coordinate” field 342, and a “Y coordinate” field 343, and the X coordinate value and Y coordinate of each control point. The value is managed.

「点番号」フィールド341には、各制御点を特定するための情報(番号)が格納される。本実施形態においては、半円状の円弧の左端及び右端の端点を、それぞれ点番号0の制御点800及び点番号12の制御点812としており、この2つの制御点については、表示装置153の表示画面には表示されず、移動はできないようになっている。すなわち、ユーザが、その位置を変更できる制御点は、点番号0の制御点800と点番号12の制御点812との間に等間隔に配置された点番号1〜11の制御点801〜811ということになる。   The “point number” field 341 stores information (number) for specifying each control point. In the present embodiment, the left and right end points of the semicircular arc are defined as a control point 800 having a point number 0 and a control point 812 having a point number 12, respectively. It is not displayed on the display screen and cannot be moved. That is, the control points whose positions can be changed by the user are the control points 801 to 811 having the point numbers 1 to 11 arranged at equal intervals between the control point 800 having the point number 0 and the control point 812 having the point number 12. It turns out that.

「X座標」フィールド342には、各制御点800〜812のX座標が格納され、「Y座標」フィールド343には、各制御点800〜812のY座標が格納される。「X座標」フィールド342及び「Y座標」フィールド343の値は、点番号0及び12のものを除き、ユーザがマウス等の入力装置207を使って、各制御点801〜811の位置を移動させる度に、移動後の値に更新されることになる。   The “X coordinate” field 342 stores the X coordinate of each control point 800 to 812, and the “Y coordinate” field 343 stores the Y coordinate of each control point 800 to 812. The values of the “X coordinate” field 342 and the “Y coordinate” field 343 are the values of the control points 801 to 811 that are moved by the user using the input device 207 such as a mouse, except for the point numbers 0 and 12. Every time, the value after the movement is updated.

制御点の初期設定が完了すると、次に、現在の制御点を滑らかに繋げる曲線を求める処理が行われる(S3)。本実施形態においては、スプライン曲線(より具体的には、2次のB−スプライン曲線)を使って、各制御点間を滑らかに繋げる曲線を求める。すなわち、現在の制御点の座標値に基づいて、これらの制御点によって特定されるスプライン曲線を求める。   When the initial setting of the control points is completed, a process for obtaining a curve that smoothly connects the current control points is performed (S3). In the present embodiment, a curve that smoothly connects the control points is obtained using a spline curve (more specifically, a quadratic B-spline curve). That is, based on the coordinate values of the current control point, the spline curve specified by these control points is obtained.

現在の制御点の位置に対応するスプライン曲線が求まったら、次に、求まったスプライン曲線に基づいて、当該スプライン曲線上の点(補間点)の座標値を、予め決められた個数分だけ求める(S4)。すなわち、該当するスプライン曲線を示す予め決められた個数の点列(補間点データ)を求める。   Once the spline curve corresponding to the current position of the control point is obtained, next, the coordinate values of points (interpolation points) on the spline curve are obtained by a predetermined number based on the obtained spline curve ( S4). That is, a predetermined number of point sequences (interpolation point data) indicating the corresponding spline curve are obtained.

補間点データの算出が完了すると、次に、算出された補間点データに基づいて、スプライン曲線の近似化処理を行う(S5)。具体的には、スプライン曲線を、円弧及び線分によって近似する。   When the calculation of the interpolation point data is completed, a spline curve approximation process is then performed based on the calculated interpolation point data (S5). Specifically, the spline curve is approximated by an arc and a line segment.

そのために、まず、該当するスプライン曲線を示す予め決められた個数の点列(補間点データ)から、最初の3つの点の座標値を取り出す。そして、1番目の点を始点、2番目の点を中間点、3番目の点を終点とし、当該3つの点が、一つの直線上に載っているか否かを判別する。   For this purpose, first, the coordinate values of the first three points are extracted from a predetermined number of point sequences (interpolation point data) indicating the corresponding spline curve. Then, the first point is the start point, the second point is the intermediate point, the third point is the end point, and it is determined whether or not the three points are on one straight line.

判別の結果、3つの点が一つの直線上に載っていた場合は、補間点データから次の点の座標値を取り出し、当該次の点についても同じ直線上に載っているか否かを判別する。判別の結果、同じ直線上に載っていた場合は、当該4番目の点を終点とし、更に、補間点データから次の点の座標値を取り出し、同じ直線上に載っていない点が出てくるまで同じ処理を繰り返す。そして、同じ直線上に載っていない点が出てきた場合は、当該点を次の要素の中間点とすると共に、その時点での始点及び終点をそれぞれ、始点及び終点とする線分を、砥石形状要素して、砥石形状要素管理テーブル350に格納する。   As a result of the determination, when three points are on one straight line, the coordinate value of the next point is extracted from the interpolation point data, and it is determined whether or not the next point is also on the same straight line. . As a result of the discrimination, if it is on the same straight line, the fourth point is set as the end point, and further, the coordinate value of the next point is extracted from the interpolation point data, and a point not on the same straight line appears. Repeat the same process. And when a point that is not on the same straight line comes out, the point is set as the intermediate point of the next element, and the line segment with the start point and end point at that time as the start point and end point, respectively, The shape element is stored in the grindstone shape element management table 350.

次に、その時点での終点を、次の要素の始点とすると共に、補間点データから次の点の座標値を取り出し、当該取り出した点を次の要素の終点とする。そして、始点、中間点、終点の3つの点について、上記と同様に、一つの直線上に載っているか否かを判別する処理以下の処理を行う。   Next, the end point at that time is set as the start point of the next element, the coordinate value of the next point is extracted from the interpolation point data, and the extracted point is set as the end point of the next element. Then, for the three points of the start point, the intermediate point, and the end point, the following processing is performed in the same manner as described above to determine whether or not they are on one straight line.

一方、現在の始点、中間点、終点の3つの点が一つの直線上に載っていなかった場合は、当該3つの点を通る円が決まるので、当該円の中心及び半径が算出される。次に、補間点データから次の点の座標値を取り出し、当該次の点についても同じ円上に載っているか否かを判別する。例えば、円の中心から当該次の点までの距離を算出し、算出された距離と、円の半径との差の絶対値が予め決められた値以下であれば、当該次の点についても同じ円上に載っていると判断する。判別の結果、同じ円上に載っていた場合は、当該次の点を終点とし、更に、補間点データから次の点の座標値を取り出し、同じ円上に載っていない点が出てくるまで同じ処理を繰り返す。そして、同じ円上に載っていない点が出てきた場合は、当該点を次の要素の中間点とすると共に、その時点での始点及び終点をそれぞれ、始点及び終点とする円弧を、砥石形状要素して、砥石形状要素管理テーブル350に格納する。なお、円弧の場合は、始点及び終点については、前述したように、対応する開始角度及び終了角度に変換されたものが格納される。また、円弧の半径及び中心についても、砥石形状要素テーブル350に格納されるが、その際、円弧が外側に凸の円弧であるか、内側に凹んだ円弧であるかの判別がされ、内側に凹んだ円弧の場合は、半径として、マイナスの値を格納するようにする。このように、内側に凹んだ円弧の場合に、半径としてマイナスの値を格納するのは、後述するように、砥石形状の特定が完了した際に、砥石形状データ(砥石形状要素管理テーブル350)に、内側に凹んだ円弧が含まれているか否かの判別がされるが、その判別を容易にするためである。また、円弧の半径が予め決められた値より大きい場合は、円弧ではなく、線分として近似するものとして、この場合は、始点及び終点の座標値のみを、砥石形状要素管理テーブル350に格納するようにする。   On the other hand, when the current three start points, intermediate points, and end points are not on one straight line, a circle passing through the three points is determined, so the center and radius of the circle are calculated. Next, the coordinate value of the next point is extracted from the interpolation point data, and it is determined whether or not the next point is also on the same circle. For example, if the distance from the center of the circle to the next point is calculated and the absolute value of the difference between the calculated distance and the radius of the circle is less than or equal to a predetermined value, the same applies to the next point. Judge that it is on the circle. As a result of the determination, if it is on the same circle, the next point is the end point, and further, the coordinate value of the next point is extracted from the interpolation point data until a point that is not on the same circle comes out Repeat the same process. And when a point that is not on the same circle comes out, the point is set as the intermediate point of the next element, and the arc having the start point and the end point at that time as the start point and the end point, respectively, Elements are stored in the grindstone shape element management table 350. In the case of an arc, the start point and end point are stored as converted into the corresponding start angle and end angle as described above. The radius and center of the arc are also stored in the grindstone-shaped element table 350. At this time, it is determined whether the arc is an outwardly convex arc or an indented arc. In the case of a concave arc, a negative value is stored as the radius. Thus, in the case of an arc recessed inwardly, the negative value is stored as the radius when the specification of the grindstone shape is completed, as will be described later, the grindstone shape data (grindstone shape element management table 350). Whether or not an arc that is recessed inward is included is determined in order to facilitate the determination. If the radius of the arc is larger than a predetermined value, it is assumed that the arc is approximated not as an arc but as a line segment. In this case, only the coordinate values of the start point and end point are stored in the grindstone shape element management table 350. Like that.

次に、その時点での終点を、次の要素の始点とすると共に、補間点データから次の点の座標値を取り出し、当該取り出した点を次の要素の終点とする。そして、始点、中間点、終点の3つの点について、上記と同様に、一つの直線上に載っているか否かを判別する処理以下の処理を繰り返す。   Next, the end point at that time is set as the start point of the next element, the coordinate value of the next point is extracted from the interpolation point data, and the extracted point is set as the end point of the next element. Then, for the three points of the start point, the intermediate point, and the end point, the following processing is repeated in the same manner as described above to determine whether or not they are on one straight line.

以上のような処理を、すべての補間点データについて行い、すべての補間点データについて処理を終了したら、近似化処理を終了する。   The above process is performed for all the interpolation point data, and when the process is completed for all the interpolation point data, the approximation process is terminated.

以上のような近似化処理により、現在の制御点の位置によって規定されるスプライン曲線の形状が、円弧及び線分の組合せによって近似され、スプライン曲線を近似的に示す円弧及び線分についての情報が、砥石形状要素管理テーブル350に格納されることとなる。   Through the above approximation processing, the shape of the spline curve defined by the current control point position is approximated by a combination of an arc and a line segment, and information on the arc and line segment that approximately represents the spline curve is obtained. And stored in the grindstone shape element management table 350.

スプライン曲線の近似化処理が終了すると、次に、近似化された砥石図形が表示装置153に表示される(S6)。すなわち、近似化処理で求められた円弧及び線分の描画を行うことによって、スプライン曲線を近似する砥石図形が表示装置153に表示される。また、現在の制御点についても、砥石図形と共に表示装置153に表示される。   When the spline curve approximating process ends, the approximated grindstone graphic is displayed on the display device 153 (S6). In other words, the grindstone figure that approximates the spline curve is displayed on the display device 153 by drawing the arc and the line segment obtained by the approximating process. The current control point is also displayed on the display device 153 together with the grindstone graphic.

図10は、最初の制御点が表示された時の状態を示す図である。同図に示すように、最初の制御点800〜812は、半円状の円弧上に等間隔に配置されるように設定されるので、当該最初の制御点800〜812によって規定されるスプライン曲線は半円状の円弧となり、当該スプライン曲線を近似する最初の砥石図形も、半円状の一つの円弧1001で構成されることになる。そのため、砥石形状要素管理テーブル350には、砥石形状データとしては、一つの円弧要素の情報が格納されることになる。   FIG. 10 is a diagram illustrating a state when the first control point is displayed. As shown in the figure, the first control points 800 to 812 are set so as to be arranged at equal intervals on a semicircular arc, so that the spline curve defined by the first control points 800 to 812 is set. Becomes a semicircular arc, and the first grindstone figure that approximates the spline curve is also composed of one semicircular arc 1001. Therefore, the grindstone shape element management table 350 stores information on one circular arc element as the grindstone shape data.

以上のようにして、初期状態の砥石図形が制御点と共に表示されると、ユーザは、同時に表示されているテスト材料の研削加工跡の画像と見比べながら、砥石図形の先端形状を、当該研削加工跡に合わせるべく、マウス等の入力装置207を操作することによって、制御点の位置を一つ一つ移動させていく。   As described above, when the grindstone in the initial state is displayed together with the control points, the user can compare the tip shape of the grindstone with the grinding process while comparing it with the image of the grinding trace of the test material displayed at the same time. In order to match the trace, the position of the control point is moved one by one by operating the input device 207 such as a mouse.

一つの制御点の位置が変更されたことを検知すると(S7:Yes)、砥石形状特定部310は、制御点管理テーブル340を適宜更新すると共に、変更後の制御点の位置座標に基づいて、上記スプライン曲線特定処理S3、補間点算出処理S4、近似化処理S5及び砥石図形描画処理S6を行って、変更後の制御点の位置に対応する砥石図形を表示装置153に表示させる。   When it is detected that the position of one control point has been changed (S7: Yes), the grindstone shape specifying unit 310 updates the control point management table 340 as appropriate, and based on the position coordinates of the control point after the change, The spline curve specifying process S3, the interpolation point calculating process S4, the approximating process S5, and the grindstone drawing process S6 are performed, and the grindstone figure corresponding to the changed control point position is displayed on the display device 153.

図11は、一つの制御点803を移動させた時の状態を示す図である。この場合、同図に示すように、制御点803が移動された結果、移動後の制御点800〜812によって規定されるスプライン曲線は、例えば、11の円弧要素によって近似されるようになる。そのため、砥石形状要素管理テーブル350には、砥石形状データとしては、11の円弧要素の情報が格納されることになる。   FIG. 11 is a diagram illustrating a state when one control point 803 is moved. In this case, as shown in the figure, as a result of the movement of the control point 803, the spline curve defined by the moved control points 800 to 812 is approximated by eleven arc elements, for example. Therefore, the grindstone shape element management table 350 stores information on eleven arc elements as the grindstone shape data.

変更後の制御点の位置に対応する砥石図形が表示装置153に表示されると、ユーザは、その砥石図形と、テスト材料の研削加工跡の画像とを見比べて、更に、必要な制御点の移動を行う。   When the grindstone graphic corresponding to the position of the control point after the change is displayed on the display device 153, the user compares the grindstone graphic with the image of the grinding trace of the test material, and further determines the necessary control point. Move.

以上のようにして、ユーザによって制御点の移動が指示される度に(S7:Yes)、移動後の制御点に基づいて、スプライン曲線特定処理S2、補間点算出処理S3、近似化処理S4及び砥石図形描画処理S5が行われる。   As described above, every time the user instructs the movement of the control point (S7: Yes), the spline curve specifying process S2, the interpolation point calculating process S3, the approximating process S4, A grindstone drawing process S5 is performed.

ユーザは、制御点を適宜移動させることによって、砥石図形の先端形状を、テスト材料の研削加工跡に一致させるようにする。その結果、砥石図形の先端形状が、テスト材料の研削加工跡に一致するようになったら、ユーザは、砥石形状の特定が完了したことを適宜指示する。   The user appropriately moves the control point so that the tip shape of the grindstone figure matches the grinding mark of the test material. As a result, when the tip shape of the grindstone figure matches the grinding mark of the test material, the user appropriately indicates that the specification of the grindstone shape has been completed.

図12は、制御点801〜811を適宜移動させて、砥石図形の先端形状をテスト材料の研削加工跡に一致させた時の状態を示す図である。この場合、同図に示すように、制御点801〜811が移動された結果、移動後の制御点800〜812によって規定されるプライン曲線は、例えば、9つの円弧要素によって近似されるようになる。そのため、砥石形状要素管理テーブル350には、砥石形状データとしては、9つの円弧要素の情報が格納されることになる。   FIG. 12 is a diagram showing a state when the control points 801 to 811 are appropriately moved so that the tip shape of the grindstone pattern matches the grinding mark of the test material. In this case, as shown in the figure, as a result of the movement of the control points 801 to 811, the purline curve defined by the moved control points 800 to 812 is approximated by, for example, nine arc elements. . Therefore, the grindstone shape element management table 350 stores information on nine arc elements as the grindstone shape data.

ユーザから砥石形状の特定が完了した旨の指示を受けると(S8:Yes)、砥石形状特定部310は、砥石形状テータが正常であるか否かの判別を行う(S9)。具体的には、最終的な砥石形状要素管理テーブル350に格納されている要素がすべて外側に凸の円弧になっているか否かの判別を行う。砥石形状要素管理テーブル350に格納されている要素の中に、内側に凹んだ円弧や線分が含まれていた場合は、適切なNCデータを作成することができないので、その場合は、例えば、特定された砥石形状が適切でない旨をユーザに通知して、砥石形状の変更(制御点の位置の変更)や、ツルーイング作業の実施を促す。一方、判別の結果、最終的な砥石形状テータの構成要素がすべて外側に凸の円弧になっていた場合は、適切な砥石形状が特定されたとして、砥石形状特定処理を終了する。   When receiving an instruction from the user that the specification of the grindstone shape has been completed (S8: Yes), the grindstone shape identifying unit 310 determines whether or not the grindstone shape data is normal (S9). Specifically, it is determined whether or not all the elements stored in the final grindstone shape element management table 350 are outwardly convex arcs. If the elements stored in the grindstone-shaped element management table 350 include arcs or line segments that are recessed inward, appropriate NC data cannot be created. The user is notified that the specified grindstone shape is not appropriate, and the user is prompted to change the grindstone shape (change the position of the control point) or to perform a truing operation. On the other hand, as a result of the determination, if all the constituent elements of the final grindstone shape data are arcs protruding outward, the grindstone shape identifying process is terminated assuming that an appropriate grindstone shape has been identified.

次に、以上のようにして特定された現在の砥石先端形状(砥石形状データ)に基づいたNCデータ作成部320におけるNCデータ作成処理について説明する。   Next, NC data creation processing in the NC data creation unit 320 based on the current grinding wheel tip shape (grinding wheel shape data) identified as described above will be described.

NCデータ作成部320は、砥石形状要素管理テーブル350に格納された砥石形状データと、工作物形状要素管理テーブル360に格納された工作物形状データとに基づいて、NCデータを作成する。   The NC data creating unit 320 creates NC data based on the grindstone shape data stored in the grindstone shape element management table 350 and the workpiece shape data stored in the workpiece shape element management table 360.

図13は、NCデータ作成部320におけるNCデータ作成処理の流れを説明するためのフローチャートである。   FIG. 13 is a flowchart for explaining the flow of NC data creation processing in the NC data creation unit 320.

同図に示すように、まず、ユーザによって、加工箇所の指定が行われる(S21)。例えば、ユーザは、表示処理部133によって表示装置153に表示された工作物の形状を示す図形を参照しながら、マウス等の入力装置207を使って、まず、研削加工を開始する加工開始要素を選択し、続いて、研削加工を終了する加工終了要素を選択することで、加工箇所を指定する。例えば、図5における要素番号2の要素502が加工開始要素として選択され、要素番号5の要素505が加工終了要素として選択された場合は、要素番号2〜5の要素502〜505が、加工箇所(加工対象要素)として指定されることになる。   As shown in the figure, first, a processing location is designated by the user (S21). For example, the user first uses the input device 207 such as a mouse while referring to a graphic indicating the shape of the workpiece displayed on the display device 153 by the display processing unit 133, and first selects a machining start element for starting grinding. Next, a processing location is designated by selecting a processing end element for ending the grinding processing. For example, when the element 502 with the element number 2 in FIG. 5 is selected as the processing start element and the element 505 with the element number 5 is selected as the processing end element, the elements 502 to 505 with the element numbers 2 to 5 are processed locations. It is specified as (element to be processed).

加工箇所(加工対象要素)の指定が完了すると、次に、指定された加工対象要素の中から、処理対象要素が加工処理の順番に従って選択される(S22)。例えば、図5に示した要素番号2の要素502が、最初の処理対象要素として選択される。   When the specification of the processing location (processing target element) is completed, the processing target element is selected from the specified processing target elements in accordance with the processing order (S22). For example, the element 502 with the element number 2 shown in FIG. 5 is selected as the first processing target element.

次に、選択された処理対象要素の種別が判別される(S23)。すなわち、処理対象要素の種別が線分であるか否かが判別され、処理対象要素の種別が線分であった場合は(S3:Yes)、線分要素を加工する際の工具(砥石)経路を求める線分要素処理が実行される(S24)。線分要素処理S24の詳細については後述する。   Next, the type of the selected processing target element is determined (S23). That is, it is determined whether or not the type of the processing target element is a line segment. When the type of the processing target element is a line segment (S3: Yes), a tool (grinding stone) used when processing the line segment element Line segment element processing for obtaining a route is executed (S24). Details of the line segment element processing S24 will be described later.

一方、処理対象要素の種別が線分でなかった場合(S23:No)、すなわち、処理対象要素の種別が円弧であった場合は、円弧要素を加工する際の工具(砥石)経路を求める円弧要素処理が実行される(S25)。円弧要素処理S25の詳細については後述する。   On the other hand, when the type of the processing target element is not a line segment (S23: No), that is, when the type of the processing target element is an arc, an arc for obtaining a tool (grinding stone) path for machining the arc element. Element processing is executed (S25). Details of the arc element processing S25 will be described later.

処理対象要素の種別に応じた処理が終了すると、現在の処理対象要素が加工終了要素であるか否かが判別される(S26)。判別の結果、現在の処理対象要素が加工終了要素でなかった場合は(S26:No)、次の処理対象要素を選択して(S22)、再度、上記処理S23〜S25を繰り返す。   When the processing according to the type of the processing target element is completed, it is determined whether or not the current processing target element is a processing end element (S26). As a result of the determination, if the current processing target element is not the processing end element (S26: No), the next processing target element is selected (S22), and the above processes S23 to S25 are repeated again.

一方、現在の処理対象要素が加工終了要素であった場合は(S26:Yes)、指定された加工箇所を構成する各形状要素毎に作成された工具経路を、適宜連結して、指定された加工箇所を加工するために必要な工具経路が作成され(S27)、更に、作成された工具経路上を、砥石(工具基準点)を移動させるためのNCデータ(NCプログラム)が生成されて(S28)、処理を終了する。   On the other hand, when the current processing target element is a machining end element (S26: Yes), the tool path created for each shape element constituting the designated machining location is appropriately connected and designated. A tool path necessary for machining a machining location is created (S27), and NC data (NC program) for moving a grindstone (tool reference point) on the created tool path is generated ( S28), the process ends.

次に、上記線分要素処理S24の詳細について説明する。   Next, the details of the line segment element processing S24 will be described.

図14は、線分要素処理S24の詳細を説明するための図である。同図(a)及び(b)はそれぞれ、線分要素1410の傾きが異なる場合の例を示している。また、同図(c)は、同図(a)及び(b)に示した線分要素1410の加工に使用される砥石形状要素の例を示している。   FIG. 14 is a diagram for explaining the details of the line segment element processing S24. FIGS. 9A and 9B show examples in which the line segment elements 1410 have different inclinations. Moreover, the figure (c) has shown the example of the grindstone-shaped element used for the process of the line segment element 1410 shown to the figure (a) and (b).

線分要素処理S24においては、まず、処理対象要素となる線分要素1410の加工に使用する砥石形状要素(以下、加工用円弧という)の選択を行う。加工用円弧としては、処理対象要素となる線分要素1410と一点で接触可能な円弧が選択される。   In the line segment element processing S24, first, a grindstone-shaped element (hereinafter referred to as a processing arc) used for processing the line segment element 1410 to be processed is selected. As the processing arc, an arc that can be brought into contact with the line segment element 1410 to be processed at one point is selected.

そのために、まず、処理対象要素となる線分要素1410の法線(線分要素と直交する直線)1411の傾きを算出する。法線1411の傾きとしては、同図(a)及び(b)にしめすように、法線1411とX軸(正)方向とのなす角度をX軸から反時計回りに測ったものを算出する。   For this purpose, first, the inclination of the normal line (straight line orthogonal to the line segment element) 1411 of the line segment element 1410 to be processed is calculated. The inclination of the normal 1411 is calculated by measuring the angle formed by the normal 1411 and the X-axis (positive) direction counterclockwise from the X-axis, as shown in FIGS. .

法線1411の傾きの算出が完了すると、次に、算出された傾きと、砥石形状要素管理テーブル350に格納された各砥石形状要素の法線角度範囲とを比較する。各砥石形状要素の法線角度範囲とは、具体的には、各砥石形状要素(円弧要素)の開始角度から終了角度までの角度範囲をいう。例えば、同図(c)に示した砥石形状要素の法線角度範囲は、140°〜95°となる。比較の結果、処理対象要素となる線分要素1410の法線1411の傾きを、その法線角度範囲に含む砥石形状要素が存在すれば、当該砥石形状要素が、加工用円弧として選択される。一方、処理対象要素となる線分要素1410の法線1411の傾きを、その法線角度範囲に含む砥石形状要素が存在しない場合は、線分要素1410の法線1411の傾きに一番近い角度を、その法線角度範囲に含む砥石形状要素が、加工用円弧として選択される。   When the calculation of the inclination of the normal line 1411 is completed, the calculated inclination is then compared with the normal angle range of each grindstone shape element stored in the grindstone shape element management table 350. The normal angle range of each grindstone-shaped element specifically refers to an angle range from the start angle to the end angle of each grindstone-shaped element (arc element). For example, the normal angle range of the grindstone-shaped element shown in FIG. As a result of the comparison, if there is a grindstone-shaped element that includes the inclination of the normal line 1411 of the line segment element 1410 to be processed in the normal angle range, the grindstone-shaped element is selected as a processing arc. On the other hand, when there is no grindstone-shaped element that includes the inclination of the normal line 1411 of the line segment element 1410 to be processed in the normal angle range, the angle closest to the inclination of the normal line 1411 of the line segment element 1410 Is selected as a processing arc.

同図(a)に示した例では、線分要素1410の法線1411の傾きが120°であるので、例えば、砥石形状要素管理テーブル350に格納された要素の中に、同図(c)に示す砥石形状要素1420が存在すれば、当該砥石形状要素1420が加工用円弧として選択されることになる。   In the example shown in FIG. 11A, the normal line 1411 of the line segment element 1410 has an inclination of 120 °. Therefore, for example, in the elements stored in the grindstone shape element management table 350, FIG. If the grindstone-shaped element 1420 shown in FIG. 4 exists, the grindstone-shaped element 1420 is selected as a processing arc.

一方、同図(b)に示した例では、線分要素1410の法線1411の傾きが90°であり、例えば、砥石形状要素管理テーブル350に格納された要素の中に、法線角度範囲に90°を含むものが存在せず、90°に一番近い角度を、その法線角度範囲に含む円弧として、砥石形状要素1420が存在すれば、当該砥石形状要素1420が加工用円弧として選択されることになる。   On the other hand, in the example shown in FIG. 5B, the normal line 1411 of the line segment element 1410 has an inclination of 90 °. For example, the normal angle range is included in the elements stored in the grindstone shape element management table 350. If there is a grindstone-shaped element 1420 as an arc including the angle closest to 90 ° in the normal angle range, the grindstone-shaped element 1420 is selected as a machining arc. Will be.

加工用円弧が選択されると、当該加工用円弧1420と、線分要素1410の開始点1412とが接する時の工具基準点1430の位置座標が算出され、線分要素1410の加工開始時の工具位置(工具経路始点)とされる。同様に、当該加工用円弧1420と、線分要素1410の終了点1413とが接する時の工具基準点1430の位置座標が算出され、線分要素1410の加工終了時の工具位置(工具経路終点)とされる。   When the machining arc is selected, the position coordinates of the tool reference point 1430 when the machining arc 1420 and the start point 1412 of the line segment element 1410 contact each other are calculated, and the tool at the time of starting the machining of the line segment element 1410 is calculated. Position (tool path start point). Similarly, the position coordinates of the tool reference point 1430 when the machining arc 1420 and the end point 1413 of the line segment element 1410 contact each other are calculated, and the tool position (tool path end point) at the end of machining of the line segment element 1410 is calculated. It is said.

なお、加工用円弧1420の法線角度範囲が、線分要素1410の法線1411の傾きを含まない場合は、同図(b)に示すように、線分要素1410の法線1411の傾きに近い方の法線角度を有する端点1421が、線分要素1410と接することになる。   If the normal angle range of the processing arc 1420 does not include the inclination of the normal line 1411 of the line segment element 1410, the inclination of the normal line 1411 of the line segment element 1410 is as shown in FIG. An end point 1421 having a near normal angle is in contact with the line segment element 1410.

以上のようにして、工具経路始点及び工具経路終点の座標が算出されると、加工対象となる線分要素を加工する際の工具経路が求まったことになる。すなわち、工具経路始点から工具経路終点まで砥石(工具基準点)を直線移動させる経路が、加工対象となる線分要素を加工する際の工具経路となる。   As described above, when the coordinates of the tool path start point and the tool path end point are calculated, the tool path for machining the line segment element to be machined is obtained. That is, a path for linearly moving the grindstone (tool reference point) from the tool path start point to the tool path end point is a tool path for processing the line segment element to be processed.

次に、上記円弧要素処理S25の詳細について説明する。   Next, the details of the arc element processing S25 will be described.

図15及び図16は、円弧要素処理S25の詳細を説明するための図である。図15(a)は、処理対象となる円弧要素1510が、工具(砥石)側から見て凹状の形状を有する場合の例を示し、同図(b)は、同図(a)に示した円弧要素1510の加工に使用される砥石形状要素の例を示している。図16(a)は、処理対象となる円弧要素1610が、工具(砥石)側から見て凸状の形状を有する場合の例を示し、同図(b)は、同図(a)に示した円弧要素1610の加工に使用される砥石形状要素の例を示している。   15 and 16 are diagrams for explaining details of the arc element processing S25. FIG. 15A shows an example in which the circular arc element 1510 to be processed has a concave shape when viewed from the tool (grinding stone) side, and FIG. 15B shows the example shown in FIG. The example of the grindstone-shaped element used for the process of the circular arc element 1510 is shown. FIG. 16A shows an example in which the circular arc element 1610 to be processed has a convex shape when viewed from the tool (grinding stone) side, and FIG. 16B shows the example shown in FIG. An example of a grindstone-shaped element used for processing the circular arc element 1610 is shown.

円弧要素処理S25においても、線分要素処理S24の場合と同様に、まず、処理対象要素となる円弧要素の加工に使用する砥石形状要素(以下、加工用円弧という)の選択を行う。加工用円弧としては、処理対象要素となる円弧要素と一点で接触可能な円弧が選択される。   In the arc element processing S25, as in the case of the line segment element processing S24, first, a grindstone-shaped element (hereinafter referred to as a processing arc) used for processing the arc element to be processed is selected. As the processing arc, an arc that can contact the arc element to be processed at a single point is selected.

そのために、まず、処理対象要素となる円弧要素の法線角度範囲と、各砥石形状要素の法線角度範囲とが比較される。処理対象要素となる円弧要素の法線角度範囲とは、具体的には、処理対象要素となる円弧要素が、図15(a)に示すように、工具側から見て凹状の形状を有する場合は、円弧要素の開始角度から終了角度までの角度範囲をいう。例えば、同図(a)に示した円弧要素1510の法線角度範囲は、180°〜90°となる。一方、処理対象となる円弧要素が、図16(a)に示すように、工具側から見て凸状の形状を有する場合は、開始角度及び終了角度それぞれから180°を引いた角度範囲、すなわち、(開始角度−180°)から(終了角度−180°)までの角度範囲をいう。例えば、同図(a)に示した円弧要素1610の法線角度範囲は、90(=270−180)°〜180(=360−180)となる。同図(a)に示すように、処理対象となる円弧要素1610が、工具側から見て凸状の形状を有する場合は、処理対象となる円弧要素1610の中心と、加工用円弧1621,1622の中心とが、加工点(両円弧の接触点)を挟んで反対側に位置することになることから、法線の傾きを直接比較可能にするため、ここでは、180°を引くようにしている。   For this purpose, first, the normal angle range of the arc element to be processed is compared with the normal angle range of each grindstone-shaped element. The normal angle range of the arc element that is the processing target element is specifically when the arc element that is the processing target element has a concave shape when viewed from the tool side, as shown in FIG. Is the angle range from the start angle to the end angle of the arc element. For example, the normal angle range of the arc element 1510 shown in FIG. On the other hand, when the arc element to be processed has a convex shape as seen from the tool side as shown in FIG. 16A, an angle range obtained by subtracting 180 ° from each of the start angle and the end angle, that is, , (Start angle −180 °) to (end angle −180 °). For example, the normal angle range of the arc element 1610 shown in FIG. 9A is 90 (= 270−180) ° to 180 (= 360−180). As shown in FIG. 5A, when the arc element 1610 to be processed has a convex shape when viewed from the tool side, the center of the arc element 1610 to be processed and the processing arcs 1621 and 1622. Since the center of is located on the opposite side across the processing point (the contact point of both arcs), in order to directly compare the inclination of the normal line, here, 180 ° is drawn. Yes.

そして、処理対象要素となる円弧要素の法線角度範囲と(少なくとも一部において)重なる法線角度範囲を有する砥石形状要素が、加工用円弧として選択される。該当する円弧が複数存在する場合は、複数の砥石形状要素が加工用円弧として選択される。この場合、処理対象要素となる円弧要素は、複数の加工範囲に分割されることになる。一方、処理対象要素となる円弧要素の法線角度範囲と重なる法線角度範囲を有する砥石形状要素が存在しない場合は、円弧要素の法線角度範囲に含まれる角度に近い角度を、その法線角度範囲に含む砥石形状要素が、加工用円弧として選択される。   Then, a grindstone-shaped element having a normal angle range that overlaps (at least in part) with the normal angle range of the arc element to be processed is selected as the machining arc. When there are a plurality of corresponding arcs, a plurality of grindstone-shaped elements are selected as processing arcs. In this case, the circular arc element to be processed is divided into a plurality of processing ranges. On the other hand, when there is no grindstone-shaped element having a normal angle range that overlaps the normal angle range of the arc element to be processed, an angle close to the angle included in the normal angle range of the arc element is set to the normal line. A grindstone-shaped element included in the angle range is selected as a processing arc.

図15(a)に示した例では、処理対象要素となる円弧要素1510の法線角度範囲は180°〜90°であり、例えば、砥石形状要素管理テーブル350に格納された要素の中に、180°〜90°の法線角度範囲と重なる法線角度範囲を有する要素として、同図(b)に示す175°〜150°の法線角度範囲を有する砥石形状要素1521と120°〜90°の法線角度範囲を有する砥石形状要素1522とが存在したとすれば、当該2つの砥石形状要素1521,1522が加工用円弧として選択されることになる。そして、この場合、処理対象要素となる円弧要素1510は、同図(a)に示すように、4つの加工範囲1531〜1534に分割されることになる。すなわち、第一の加工用円弧1521と法線角度範囲が重なる加工範囲1532と、第二の加工用円弧1522と法線角度範囲が重なる加工範囲1534と、いずれの加工用円弧1521,1522とも法線角度範囲が重ならない加工範囲1531,1533とに分割される。   In the example shown in FIG. 15A, the normal angle range of the arc element 1510 to be processed is 180 ° to 90 °. For example, among the elements stored in the grindstone shape element management table 350, As an element having a normal angle range that overlaps with a normal angle range of 180 ° to 90 °, a grindstone-shaped element 1521 having a normal angle range of 175 ° to 150 ° and 120 ° to 90 ° shown in FIG. If there is a grindstone-shaped element 1522 having the normal angle range, the two grindstone-shaped elements 1521 and 1522 are selected as arcs for processing. In this case, the arc element 1510 to be processed is divided into four processing ranges 1531 to 1534 as shown in FIG. That is, the processing range 1532 where the normal angle range overlaps with the first processing arc 1521, the processing range 1534 where the normal angle range overlaps with the second processing arc 1522, and any of the processing arcs 1521, 1522 are legal. The line angle ranges are divided into processing ranges 1531 and 1533 that do not overlap.

一方、図16(a)に示した例では、処理対象要素となる円弧要素1610の法線角度範囲は90(=270−180)°〜180(=360−180)°であり、例えば、砥石形状要素管理テーブル350に格納された要素の中に、90°〜180°の法線角度範囲と重なる法線角度範囲を有する要素として、同図(b)に示す120°〜90°の法線角度範囲を有する砥石形状要素1621と、175°〜150°の法線角度範囲を有する砥石形状要素1622とが存在したとすれば、当該2つの砥石形状要素1621,1622が加工用円弧として選択されることになる。そして、この場合も、処理対象要素となる円弧要素1610は、同図(a)に示すように、4つの加工範囲1631〜1634に分割されることになる。すなわち、第一の加工用円弧1621と法線角度範囲が重なる加工範囲1631と、第二の加工用円弧1622と法線角度範囲が重なる加工範囲1633と、いずれの加工用円弧1621,1622とも法線角度範囲が重ならない加工範囲1632,1634とに分割される。   On the other hand, in the example shown in FIG. 16A, the normal angle range of the arc element 1610 to be processed is 90 (= 270-180) ° to 180 (= 360-180) °. Among the elements stored in the shape element management table 350, as normal elements having a normal angle range overlapping with the normal angle range of 90 ° to 180 °, normals of 120 ° to 90 ° shown in FIG. If there is a grindstone-shaped element 1621 having an angle range and a grindstone-shaped element 1622 having a normal angle range of 175 ° to 150 °, the two grindstone-shaped elements 1621 and 1622 are selected as arcs for processing. Will be. Also in this case, the arc element 1610 to be processed is divided into four processing ranges 1631 to 1634 as shown in FIG. That is, the machining range 1631 where the normal angle range overlaps with the first machining arc 1621, the machining range 1633 where the normal angle range overlaps with the second machining arc 1622, and any of the machining arcs 1621, 1622 is legal. The line angle ranges are divided into processing ranges 1632 and 1634 that do not overlap.

加工用円弧が選択されると、各加工用円弧(加工範囲)毎に、各加工用円弧によって円弧要素が加工される際の工具経路が求められる。まず、各加工用円弧は、その法線角度範囲と、加工対象となる円弧要素の法線角度範囲とが重なる加工範囲について、加工対象となる円弧要素の加工を行うことになる。例えば、図15に示した例では、加工用円弧1521は、加工範囲1532の加工を行い、加工用円弧1522は、加工範囲1534の加工を行うことになる。また、加工用円弧の法線角度範囲と、加工対象となる円弧要素の法線角度範囲とが重ならない加工範囲については、各加工範囲の法線角度範囲に近い方の法線角度を有する加工用円弧の端点で加工が行われることになる。例えば、図15に示した例では、加工範囲1531は、加工用円弧1521の左側の端点1523で加工され、加工範囲1533は、加工用円弧1521の右側の端点1524(加工用円弧1522の左側の端点1525)で加工されることになる。   When the machining arc is selected, a tool path when the arc element is machined by each machining arc is obtained for each machining arc (machining range). First, each machining arc performs machining of the arc element to be machined in a machining range in which the normal angle range and the normal angle range of the arc element to be machined overlap. For example, in the example shown in FIG. 15, the processing arc 1521 performs processing in the processing range 1532, and the processing arc 1522 performs processing in the processing range 1534. In addition, for the machining range where the normal angle range of the arc for machining and the normal angle range of the arc element to be machined do not overlap, machining with the normal angle closer to the normal angle range of each machining range Machining is performed at the end point of the arc. For example, in the example shown in FIG. 15, the machining range 1531 is machined at the left end point 1523 of the machining arc 1521, and the machining range 1533 is the right end point 1524 of the machining arc 1521 (on the left side of the machining arc 1522. It will be processed at the end point 1525).

各加工用円弧の経路は、各加工範囲毎に、以下のようにして求められる。   The path of each machining arc is determined as follows for each machining range.

まず、処理対象となる円弧要素が、図15(a)に示すように、工具側から見て凹状の形状を有する場合について説明する。   First, the case where the circular arc element to be processed has a concave shape when viewed from the tool side as shown in FIG. 15A will be described.

この場合、処理対象となる円弧要素1510と、各加工用円弧1521,1522とで法線角度範囲が重なる加工範囲1532,1533については、各加工用円弧1521,1522と、該当する加工範囲の開始点1536,1538とが接する時の工具基準点1540の位置座標が算出され、各加工用円弧1521,1522による加工開始時の工具位置(工具経路始点)とされる。同様に、当該加工用円弧1521,1522と、該当する加工範囲の終了点1537,1539とが接する時の工具基準点1540の位置座標が算出され、各加工用円弧1521,1522による加工終了時の工具位置(工具経路終点)とされる。   In this case, with respect to the machining ranges 1532 and 1533 in which the normal angle ranges overlap between the arc element 1510 to be processed and the machining arcs 1521 and 1522, the respective machining arcs 1521 and 1522 and the start of the corresponding machining range The position coordinates of the tool reference point 1540 when the points 1536 and 1538 are in contact with each other are calculated and set as the tool position (tool path start point) at the start of machining by each of the machining arcs 1521 and 1522. Similarly, the position coordinates of the tool reference point 1540 when the machining arcs 1521 and 1522 contact the end points 1537 and 1539 of the corresponding machining range are calculated, and the machining arcs 1521 and 1522 at the end of machining are calculated. The tool position (tool path end point) is used.

そして、各加工用円弧1521,1522の経路は、各加工範囲1532,1534においては、一つの円弧となるので、各加工範囲1532,1534毎に、工具経路となる円弧の半径及び中心が、次の式で求められる。   The path of each of the machining arcs 1521 and 1522 is one arc in each machining range 1532 and 1534. Therefore, for each machining range 1532 and 1534, the radius and center of the arc serving as the tool path are the following. It is calculated by the following formula.

半径=処理対象となる円弧要素の半径−加工用円弧の半径   Radius = radius of arc element to be processed-radius of machining arc

中心=処理対象となる円弧要素の中心+(工具基準点−加工用円弧の中心)   Center = Center of arc element to be processed + (Tool reference point-Center of machining arc)

一方、処理対象となる円弧要素と、各加工用円弧とで法線角度範囲が重ならない加工範囲1531,1533については、加工用円弧の端点(加工用端点)1523,1524(1525)と、該当する加工範囲の開始点1535,1537とが接する時の工具基準点1540の位置座標が算出され、各加工用端点1523,1524(1525)による加工開始時の工具位置(工具経路始点)とされる。同様に、当該加工用端点1523,1524(1525)と、該当する加工範囲の終了点1536,1538とが接する時の工具基準点1540の位置座標が算出され、各加工用端点1523,1524(1525)による加工終了時の工具位置(工具経路終点)とされる。   On the other hand, regarding the processing ranges 1531 and 1533 in which the normal angle range does not overlap between the arc element to be processed and each processing arc, end points (processing end points) 1523 and 1524 (1525) of the processing arc The position coordinates of the tool reference point 1540 when the start points 1535 and 1537 of the machining range to be in contact with each other are calculated, and are set as tool positions (tool path start points) at the start of machining by the machining end points 1523 and 1524 (1525). . Similarly, the position coordinates of the tool reference point 1540 when the machining end points 1523, 1524 (1525) and the end points 1536, 1538 of the corresponding machining range contact each other are calculated, and each machining end point 1523, 1524 (1525) is calculated. ) Is the tool position (tool path end point) at the end of machining.

更に、この場合、加工用端点を、処理対象となる円弧要素に沿って移動させることになるので、工具経路となる円弧の半径及び中心は、次の式で求められる。   Further, in this case, since the machining end point is moved along the arc element to be processed, the radius and center of the arc to be the tool path can be obtained by the following expression.

半径=処理対象となる円弧要素の半径   Radius = radius of the arc element to be processed

中心=処理対象となる円弧要素の中心+(加工用端点−工具基準点)   Center = Center of arc element to be processed + (End point for machining-Tool reference point)

次に、処理対象となる円弧要素が、図16(a)に示すように、工具側から見て凸状の形状を有する場合について説明する。   Next, the case where the arc element to be processed has a convex shape when viewed from the tool side as shown in FIG.

この場合も、処理対象となる円弧要素1610と、各加工用円弧1621,1622とで法線角度範囲が重なる加工範囲1631,1633については、各加工用円弧1621,1622と、該当する加工範囲の開始点1635,1637とが接する時の工具基準点1640の位置座標が算出され、各加工用円弧1621,1622による加工開始時の工具位置(工具経路始点)とされる。同様に、当該加工用円弧1621,1622と、該当する加工範囲の終了点1636,1638とが接する時の工具基準点1640の位置座標が算出され、各加工用円弧1621,1622による加工終了時の工具位置(工具経路終点)とされる。   Also in this case, regarding the processing ranges 1631 and 1633 in which the normal angle ranges overlap between the arc element 1610 to be processed and the processing arcs 1621 and 1622, the processing arcs 1621 and 1622 and the corresponding processing ranges The position coordinates of the tool reference point 1640 when the start points 1635 and 1637 are in contact with each other are calculated and set as the tool position (tool path start point) at the start of machining by each of the machining arcs 1621 and 1622. Similarly, the position coordinates of the tool reference point 1640 when the machining arcs 1621 and 1622 are in contact with the end points 1636 and 1638 of the corresponding machining range are calculated, and when the machining arcs 1621 and 1622 are finished. The tool position (tool path end point) is used.

そして、各加工用円弧1621,1622の経路は、各加工範囲1631,1633においては、一つの円弧となるので、各加工範囲1631,1633毎に、工具経路となる円弧の半径及び中心が、次の式で求められる。   The path of each of the machining arcs 1621 and 1622 is one arc in each of the machining ranges 1631 and 1633. Therefore, for each machining range 1631 and 1633, the radius and center of the arc serving as the tool path are the following. It is calculated by the following formula.

半径=処理対象となる円弧要素の半径+加工用円弧の半径   Radius = radius of arc element to be processed + radius of machining arc

中心=処理対象となる円弧要素の中心+(工具基準点−加工用円弧の中心)
となる。
Center = Center of arc element to be processed + (Tool reference point-Center of machining arc)
It becomes.

一方、処理対象となる円弧要素1610と、各加工用円弧1621,1622とで法線角度範囲が重ならない加工範囲1632,1634については、加工用円弧の端点(加工用端点)1623(1624),1625と、該当する加工範囲の開始点1636,1638とが接する時の工具基準点1640の位置座標が算出され、各加工用端点1623(1624),1625による加工開始時の工具位置(工具経路始点)とされる。同様に、当該加工用端点1623(1624),1625と、該当する加工範囲の終了点1637,1639とが接する時の工具基準点1640の位置座標が算出され、各加工用端点1623(1624),1625による加工終了時の工具位置(工具経路終点)とされる。   On the other hand, with respect to the machining ranges 1632 and 1634 where the normal angle range does not overlap with the arc element 1610 to be processed and the machining arcs 1621 and 1622, the machining arc end points (machining end points) 1623 (1624), The position coordinates of the tool reference point 1640 when 1625 and the corresponding machining range start points 1636 and 1638 contact each other are calculated, and the tool position (tool path start point) at the machining start by each machining end point 1623 (1624) and 1625. ). Similarly, the position coordinates of the tool reference point 1640 when the machining end points 1623 (1624), 1625 and the corresponding machining range end points 1637, 1639 contact each other are calculated, and each machining end point 1623 (1624), The tool position (tool path end point) at the end of machining by 1625 is used.

更に、この場合、加工用端点を、処理対象となる円弧要素に沿って移動させることになるので、工具経路となる円弧の半径及び中心は、次の式で求められる。   Further, in this case, since the machining end point is moved along the arc element to be processed, the radius and center of the arc to be the tool path can be obtained by the following expression.

半径=処理対象となる円弧要素の半径   Radius = radius of the arc element to be processed

中心=処理対象となる円弧要素の中心+(加工用端点−工具基準点)
となる。
Center = Center of arc element to be processed + (End point for machining-Tool reference point)
It becomes.

以上のようにして、各加工範囲毎に、工具経路が求まると、求められた工具経路は、加工の順番に従って適宜連結されて、処理対象となる円弧要素に対する工具経路が求まることになる。   As described above, when the tool path is obtained for each machining range, the obtained tool paths are appropriately connected according to the machining order, and the tool path for the arc element to be processed is obtained.

以上、詳細に説明したように、上述したNCデータ作成装置152によれば、現在の砥石111の先端形状を適切に特定することができ、特定された砥石111の先端形状に応じたNCデータを作成することができるので、砥石111の先端形状が摩耗した状態であっても、削り残しのない研削加工が可能となる。   As described above in detail, according to the NC data creation device 152 described above, the tip shape of the current grindstone 111 can be appropriately specified, and NC data corresponding to the tip shape of the identified grindstone 111 is obtained. Since it can be created, even if the tip shape of the grindstone 111 is worn, grinding without leaving uncut portions becomes possible.

なお、上述したNC研削盤100においては、撮像部140と砥石111とのXY方向の位置関係は変化しないので、撮像部140によって撮像された画像における砥石111の位置についても変化しない。従って、図7(b)に示したように、ユーザによって、テスト材料700に形成された研削跡(すなわち、砥石111)と、砥石図形711との位置あわせが一旦行われてしまえば、その後は、表示装置153の表示画面において、砥石111が存在する位置と(XY平面における)同じ位置に砥石図形を表示させることが常に可能となる。その結果、砥石形状特定処理時のみならず、特定された砥石先端形状に基づいて作成されたNCデータ(NCプログラム)に従った実際の研削加工時においても、表示装置153に、撮像部140によって撮像された工作物の画像と共に、砥石111の存在する位置に砥石図形を表示させることが可能となる。砥石111は、実際の研削加工時にはZ方向に上下動するため、撮像部140によって撮像された画像で先端形状を判別することは困難であるが、砥石図形を併せて表示するようにすれば、砥石111の先端形状の判別が容易となり、実際の研削加工時における加工状態(工作物と砥石との位置関係等)が表示装置153に表示された表示画面で容易に確認することができるようになる。   In the NC grinder 100 described above, the positional relationship between the imaging unit 140 and the grindstone 111 in the XY direction does not change, and therefore the position of the grindstone 111 in the image captured by the imaging unit 140 does not change. Therefore, as shown in FIG. 7B, once the user aligns the grinding mark (that is, the grindstone 111) formed on the test material 700 with the grindstone graphic 711, thereafter, In the display screen of the display device 153, it is always possible to display a grindstone graphic at the same position (in the XY plane) as the position where the grindstone 111 is present. As a result, not only during the grinding wheel shape identification process, but also during actual grinding processing according to NC data (NC program) created based on the identified grinding wheel tip shape, the display unit 153 causes the imaging unit 140 to Along with the captured image of the workpiece, a grindstone figure can be displayed at a position where the grindstone 111 exists. Since the grindstone 111 moves up and down in the Z direction during actual grinding, it is difficult to discriminate the tip shape from the image captured by the imaging unit 140, but if the grindstone graphic is displayed together, The tip shape of the grindstone 111 can be easily discriminated, and the processing state (positional relationship between the workpiece and the grindstone) during actual grinding can be easily confirmed on the display screen displayed on the display device 153. Become.

10 工作物
100 NC研削盤
110 研削部
111 砥石
120 工作部保持部
130 工作部移動部
131 XYテーブル
132 X軸用モータ
133 Y軸用モータ
140 撮像部
150 制御部
151 NC制御装置
152 NCデータ作成装置
153 表示装置
154 操作パネル
201 CPU
202 ROM
203 RAM
204 ハードディスクインタフェース部
205 ハードディスク装置
206 USBインタフェース部
207 入力装置
208 表示制御部
209 バス
310 砥石形状特定部
320 NCデータ作成部
330 表示処理部
340 制御点管理テーブル
350 砥石形状要素管理テーブル
360 工作物形状要素管理テーブル
600 テスト材料
700 テスト材料の画像
711 砥石図形
DESCRIPTION OF SYMBOLS 10 Workpiece 100 NC grinder 110 Grinding part 111 Grinding wheel 120 Work part holding part 130 Work part moving part 131 XY table 132 X-axis motor 133 Y-axis motor 140 Imaging part 150 Control part 151 NC control unit 152 NC data creation apparatus 153 Display device 154 Operation panel 201 CPU
202 ROM
203 RAM
204 Hard Disk Interface Unit 205 Hard Disk Device 206 USB Interface Unit 207 Input Device 208 Display Control Unit 209 Bus 310 Grinding Wheel Shape Identification Unit 320 NC Data Creation Unit 330 Display Processing Unit 340 Control Point Management Table 350 Grinding Wheel Shape Element Management Table 360 Workpiece Shape Element Management table 600 Test material 700 Test material image 711 Grindstone

Claims (9)

ユーザの指示に従って、砥石の先端形状を特定する砥石形状データを作成する砥石形状特定部と、
工作物形状データ及び前記砥石形状データに基づいて、NCデータを作成するNCデータ作成部と、
撮像部によって撮像された現在の砥石の先端形状を示す画像を表示装置に表示させると共に、前記砥石形状データに基づいて、砥石の先端形状を示す砥石形状図形を前記表示装置に表示させる表示処理部と
を備え
前記砥石形状特定部は、
前記砥石形状図形の形状を特定するための制御点データを管理し、
ユーザの指示に従って、前記制御点データを更新し、
前記制御点データに基づいて、前記砥石形状データを作成し、
前記表示処理部は、
当該砥石形状データに基づいて、前記砥石形状図形を前記表示装置に表示させると共に、
前記制御点データに基づいて、制御点を前記表示装置に表示させる
ことを特徴とするNCデータ作成装置。
A grindstone shape identifying unit that creates grindstone shape data that identifies the tip shape of the grindstone according to a user instruction,
NC data creation unit for creating NC data based on the workpiece shape data and the grinding wheel shape data;
Together causes the display device to display an image indicating the current grindstone tip shape taken by the image pickup unit, on the basis of the grindstone shape data, display processing unit for displaying the grindstone shape figure showing the grindstone tip shape on said display device It equipped with a door,
The grindstone shape specifying part is:
Manage control point data for specifying the shape of the grinding wheel shape figure,
Update the control point data according to user instructions,
Based on the control point data, create the grinding wheel shape data,
The display processing unit
Based on the grinding wheel shape data, the grinding wheel shape figure is displayed on the display device,
An NC data generating device , wherein a control point is displayed on the display device based on the control point data .
前記砥石形状特定部は、
前記制御点データに基づいて、当該制御点データに対応する曲線を特定し、
当該曲線に基づいて、前記砥石形状データを作成する
ことを特徴とする請求項に記載のNCデータ作成装置。
The grindstone shape specifying part is:
Based on the control point data, a curve corresponding to the control point data is identified,
Based on the curve, NC data creation device according to claim 1, characterized in that to create the grindstone shape data.
前記砥石形状特定部は、
前記曲線を、線分及び円弧で近似することによって、前記砥石形状データを作成する
ことを特徴とする請求項に記載のNCデータ作成装置。
The grindstone shape specifying part is:
The NC data creating apparatus according to claim 2 , wherein the grinding wheel shape data is created by approximating the curve with a line segment and an arc.
前記曲線は、スプライン曲線である
ことを特徴とする請求項又はに記載のNCデータ作成装置。
The curves, NC data creation device according to claim 2 or 3, characterized in that a spline curve.
前記現在の砥石の先端形状を示す画像は、現在の砥石によって研削加工されたテスト材料の画像である
ことを特徴とする請求項1〜のいずれか一項に記載のNCデータ作成装置。
The NC data creation device according to any one of claims 1 to 4 , wherein the image indicating the current tip shape of the grindstone is an image of a test material ground by the current grindstone.
前記砥石形状データは、砥石の先端形状を構成する円弧要素に関するデータであり、
前記工作物形状データは、工作物の形状を構成する線分要素及び円弧要素に関するデータであり、
前記NCデータ作成部は、
前記工作物の形状を構成する各線分要素毎に、各線分要素と一点で接触可能な円弧要素を、各線分要素の加工に使用する加工用円弧として、前記砥石形状データから選択し、選択された加工用円弧による加工時の工具経路を求めると共に、
前記工作物の形状を構成する各円弧要素毎に、各円弧要素と一点で接触可能な円弧要素を、各円弧要素の加工に使用する加工用円弧として、前記砥石形状データから選択し、選択された加工用円弧による加工時の工具経路を求め、
求まった工具経路に基づいて、NCデータを作成する
ことを特徴とする請求項1〜のいずれか一項に記載のNCデータ作成装置。
The grindstone shape data is data relating to an arc element constituting the tip shape of the grindstone,
The workpiece shape data is data relating to a line segment element and an arc element constituting the shape of the workpiece,
The NC data creation unit
For each line segment element constituting the shape of the workpiece, an arc element that can be contacted with each line segment element at one point is selected from the grinding wheel shape data as a processing arc to be used for processing each line segment element. In addition to obtaining the tool path at the time of machining by the machining arc,
For each arc element constituting the shape of the workpiece, an arc element that can contact each arc element at one point is selected from the grinding wheel shape data as a processing arc to be used for machining each arc element. Find the tool path during machining with the machining arc
The NC data creation device according to any one of claims 1 to 5 , wherein NC data is created based on the obtained tool path.
前記NCデータ作成部は、
工作物の形状を構成する線分要素の法線の傾きと、前記砥石の先端形状を構成する各円弧要素の法線角度範囲とを比較することによって、前記線分要素の加工に使用する加工用円弧を選択し、
工作物の形状を構成する円弧要素の法線角度範囲と、前記砥石の先端形状を構成する各円弧要素の法線角度範囲とを比較することによって、前記工作物の形状を構成する円弧要素の加工に使用する加工用円弧を選択する
ことを特徴とする請求項に記載のNCデータ作成装置。
The NC data creation unit
Machining used for machining the line segment element by comparing the inclination of the normal line of the line segment element constituting the shape of the workpiece and the normal angle range of each arc element constituting the tip shape of the grindstone Select the arc for
By comparing the normal angle range of the arc element constituting the workpiece shape and the normal angle range of each arc element constituting the tip shape of the grindstone, the arc element constituting the workpiece shape is compared. 7. The NC data creation device according to claim 6 , wherein a machining arc used for machining is selected.
砥石と、
当該砥石の先端部付近の撮像を行う撮像部と、
前記砥石と工作物とを相対的に移動させる移動部と、
請求項1〜のいずれか一項に記載のNCデータ作成装置と、
当該NCデータ作成装置によって制御される表示装置と、
前記NCデータ作成装置によって作成されたNCデータに従って、前記移動部を制御するNC制御装置と
を備えたことを特徴とするNC研削盤。
Whetstone,
An imaging unit for imaging the vicinity of the tip of the grindstone;
A moving unit for relatively moving the grindstone and the workpiece;
NC data creation device according to any one of claims 1 to 7 ,
A display device controlled by the NC data creation device;
An NC grinder comprising: an NC control device that controls the moving unit in accordance with NC data created by the NC data creation device.
前記表示処理部は、研削加工時において、前記撮像部によって撮像された工作物の画像を前記表示装置に表示させると共に、前記砥石形状データに基づいて、砥石の形状を示す砥石形状図形を前記表示装置に表示させる
ことを特徴とする請求項に記載のNC研削盤。
The display processing unit causes the display device to display an image of the workpiece imaged by the imaging unit at the time of grinding, and displays the grindstone shape graphic indicating the shape of the grindstone based on the grindstone shape data. The NC grinder according to claim 8 , wherein the NC grinder is displayed on an apparatus.
JP2012225300A 2012-10-10 2012-10-10 NC data creation device and NC grinder Active JP6077814B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012225300A JP6077814B2 (en) 2012-10-10 2012-10-10 NC data creation device and NC grinder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012225300A JP6077814B2 (en) 2012-10-10 2012-10-10 NC data creation device and NC grinder

Publications (2)

Publication Number Publication Date
JP2014078123A JP2014078123A (en) 2014-05-01
JP6077814B2 true JP6077814B2 (en) 2017-02-08

Family

ID=50783382

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012225300A Active JP6077814B2 (en) 2012-10-10 2012-10-10 NC data creation device and NC grinder

Country Status (1)

Country Link
JP (1) JP6077814B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6399675B1 (en) * 2018-03-02 2018-10-03 株式会社 ジェイネット Processing support device and processing support method
JP7446722B2 (en) * 2019-05-15 2024-03-11 株式会社ディスコ grinding equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE8404350L (en) * 1984-08-31 1986-03-01 Lidkoepings Mekaniska Verkstad DEVICE FOR PROFILE SHARPING OF A GRINDING DISC
JPH02127703A (en) * 1988-11-08 1990-05-16 Nippei Toyama Corp Production method for grinding wheel correction program of surface grinder
JP3350687B2 (en) * 1993-06-30 2002-11-25 日立建機株式会社 Robot control method and robot control device
JP4033817B2 (en) * 2003-07-02 2008-01-16 株式会社カネヒラ Shape processing method
JP2005246499A (en) * 2004-03-01 2005-09-15 Toyoda Mach Works Ltd Truing method and device
JP2009214289A (en) * 2008-02-13 2009-09-24 Neo:Kk Copy grinding method and apparatus for the same

Also Published As

Publication number Publication date
JP2014078123A (en) 2014-05-01

Similar Documents

Publication Publication Date Title
US10001912B2 (en) Robot operation apparatus, robot system, and robot operation program
US7251580B2 (en) Method for measuring curved surface of workpiece, program and medium thereof
WO2014068667A1 (en) Processing program generation method and device
US10108178B2 (en) Workpiece machining surface display method showing dimples to be formed on mashing surface, workpiece machining surface display device showing the dimples, and tool path generation device having the display
AU4003697A (en) Tool grinding simulation system
US20160151913A1 (en) Robot programming apparatus for teaching machining operation to robot
JP5271549B2 (en) Control method of movable tool, input device and machine tool
CN105793788A (en) Control device for machine tool
JP2018176332A (en) Device, system and method for automatically creating operation trajectory of robot
JP6077814B2 (en) NC data creation device and NC grinder
JP6196708B2 (en) Machining program creation method and apparatus
JP2011183528A (en) Automatic programming device and operation program thereof
JP3990104B2 (en) Lens grinding machine
JP6690438B2 (en) Eyeglass lens processing device and processing control data creation program
JP2009214289A (en) Copy grinding method and apparatus for the same
JP6668663B2 (en) Eyeglass lens processing apparatus and processing locus calculation program
US11992972B2 (en) Spectacle lens processing device and non-transitory computer-readable medium storing computer-readable instructions
JP2023086676A (en) Image teaching method in image teaching system and image teaching system
JP2005088106A (en) Method and apparatus for calculating working data
JP2024064650A (en) Removal processing method and removal processing device
CN115446674B (en) Method and device for grinding rear cutter surface of inner R milling cutter, numerical control machine and storage medium
JP6652002B2 (en) Eyeglass lens processing apparatus and processing control data creation program
WO2022065252A1 (en) Display device, and display method
KR102179210B1 (en) Apparatus for processing eyeglass lens, program and storage medium
JP2023120784A (en) Grind stone trajectory automatically creating method and grind stone trajectory automatically creating device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150820

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160519

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160524

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160716

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170113

R150 Certificate of patent or registration of utility model

Ref document number: 6077814

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250