JP6811574B2 - Cutting machine - Google Patents

Cutting machine Download PDF

Info

Publication number
JP6811574B2
JP6811574B2 JP2016183913A JP2016183913A JP6811574B2 JP 6811574 B2 JP6811574 B2 JP 6811574B2 JP 2016183913 A JP2016183913 A JP 2016183913A JP 2016183913 A JP2016183913 A JP 2016183913A JP 6811574 B2 JP6811574 B2 JP 6811574B2
Authority
JP
Japan
Prior art keywords
coordinate
offset
point
reference point
stocker
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
JP2016183913A
Other languages
Japanese (ja)
Other versions
JP2018049423A (en
Inventor
潤 植田
潤 植田
涼 佐藤
涼 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Roland DG Corp
Original Assignee
Roland DG Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Roland DG Corp filed Critical Roland DG Corp
Priority to JP2016183913A priority Critical patent/JP6811574B2/en
Priority to US15/709,545 priority patent/US10259087B2/en
Publication of JP2018049423A publication Critical patent/JP2018049423A/en
Application granted granted Critical
Publication of JP6811574B2 publication Critical patent/JP6811574B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Numerical Control (AREA)
  • A Measuring Device Byusing Mechanical Method (AREA)
  • Automatic Tool Replacement In Machine Tools (AREA)
  • Machine Tool Sensing Apparatuses (AREA)

Description

本発明は、切削加工機に関する。 The present invention relates to a cutting machine.

従来より、回転する加工ツールで被加工物を切削加工する切削加工機が知られている。この種の切削加工機として、例えば、特許文献1には、被加工物を切削する切削部と、被加工物を保持する保持部とを備えた切削加工機が開示されている。 Conventionally, a cutting machine that cuts a work piece with a rotating processing tool has been known. As a cutting machine of this type, for example, Patent Document 1 discloses a cutting machine provided with a cutting portion for cutting a workpiece and a holding portion for holding the workpiece.

また、この種の切削加工機には、切削部を、保持部に対して相対的に3次元方向に移動させる移動機構が備えられている。この移動機構によって、保持部が保持している被加工物と、切削部との相対的な位置関係を3次元で変化させて、切削部によって切削される被加工物の部位を適宜変更させることで、被加工物を所望の形状に切削することができる。 Further, this type of cutting machine is provided with a moving mechanism for moving the cutting portion in a three-dimensional direction relative to the holding portion. By this moving mechanism, the relative positional relationship between the workpiece held by the holding portion and the cutting portion is changed in three dimensions, and the part of the workpiece to be cut by the cutting portion is appropriately changed. Therefore, the workpiece can be cut into a desired shape.

特開2013−121466号公報Japanese Unexamined Patent Publication No. 2013-121466

ところで、この種の切削加工機の切削部は、加工ツールを把持する把持部を有している。また、この種の切削加工機は、複数の加工ツールがそれぞれ収容されるストッカーを有するマガジンを備えている。ストッカーに収容された加工ツールを切削部の把持部が把持し、把持部に把持された加工ツールを使用して、被加工物を切削加工する。 By the way, the cutting portion of this type of cutting machine has a grip portion for gripping a machining tool. In addition, this type of cutting machine is equipped with a magazine having a stocker in which a plurality of processing tools are housed. The grip portion of the cutting portion grips the machining tool housed in the stocker, and the machining tool gripped by the grip portion is used to cut the workpiece.

しかしながら、仮に、マガジンが切削加工機の本体に対して適切な位置から多少ズレた位置に配置されており、切削加工機の本体に対するマガジンの組み付け誤差が生じている場合、ストッカーに収容された加工ツールを把持部が適切に把持できないことがあった。把持部が加工ツールを適切に把持できていない状態で、被加工物の切削加工が行われることで、被加工物を所望の形状に切削加工することができないおそれがあった。 However, if the magazine is placed at a position slightly deviated from the appropriate position with respect to the main body of the cutting machine and there is an error in assembling the magazine to the main body of the cutting machine, the processing housed in the stocker is processed. Sometimes the gripping part could not grip the tool properly. If the work piece is cut in a state where the gripping portion cannot properly hold the work tool, there is a possibility that the work piece cannot be cut into a desired shape.

本発明はかかる点に鑑みてなされたものであり、その目的は、マガジンの組み付け誤差に起因して、被加工物を所望の形状に切削加工することができないことを抑制することが可能な切削加工機を提供することである。 The present invention has been made in view of this point, and an object of the present invention is cutting capable of suppressing the inability to cut a workpiece into a desired shape due to an assembly error of a magazine. It is to provide a processing machine.

本発明に係る切削加工機は、本体と、切削ヘッドと、マガジンと、移動機構と、制御装置とを備えている。前記切削ヘッドは、加工ツールおよび検出ツールのうち何れか一方のツールを把持可能な把持部を有する。前記マガジンは、前記本体に設けられている。前記マガジンは、マガジン本体と、ストッカーと、ツールセンサと、第1突起と、第2突起とを有している。前記ストッカーには、前記加工ツールおよび前記検出ツールのうち何れか一方のツールが収容される。前記ツールセンサは、前記マガジン本体に設けられ、前記把持部に把持された前記加工ツールまたは前記検出ツールを検出する。前記第1突起および前記第2突起は、前記マガジン本体の上面にそれぞれ設けられている。前記移動機構は、前記把持部を前記マガジンに対して相対的に3次元方向に移動させる。前記制御装置は、前記移動機構を制御する。前記制御装置は、第1基準点検出部と、第2基準点検出部と、センサオフセット算出部と、ストッカーオフセット算出部と、移動制御部とを備えている。前記第1基準点算出部は、前記把持部に把持された前記検出ツールを前記第1突起に接触させるように前記移動機構を制御することで、前記第1突起の上面の中心の点である第1基準点の実際の位置を検出する。前記第2基準点検出部は、前記把持部に把持された前記検出ツールを前記第2突起に接触させるように前記移動機構を制御することで、前記第2突起の上面の中心の点である第2基準点の実際の位置を検出する。前記センサオフセット算出部は、前記第1基準点および前記第2基準点に基づいて、前記ツールセンサの設計上の位置に対する前記ツールセンサの実際の位置の補正値であるセンサオフセットを算出する。前記ストッカーオフセット算出部は、前記第1基準点および前記第2基準点に基づいて、前記ストッカーの設計上の位置に対する前記ストッカーの実際の位置の補正値であるストッカーオフセットを算出する。前記移動制御部は、前記センサオフセットおよび前記ストッカーオフセットに基づいて、前記移動機構を制御する。 The cutting machine according to the present invention includes a main body, a cutting head, a magazine, a moving mechanism, and a control device. The cutting head has a grip portion capable of gripping one of a machining tool and a detection tool. The magazine is provided in the main body. The magazine has a magazine body, a stocker, a tool sensor, a first protrusion, and a second protrusion. The stocker houses one of the processing tool and the detection tool. The tool sensor is provided in the magazine body and detects the processing tool or the detection tool gripped by the grip portion. The first protrusion and the second protrusion are provided on the upper surface of the magazine body, respectively. The moving mechanism moves the grip portion in a three-dimensional direction relative to the magazine. The control device controls the moving mechanism. The control device includes a first reference point detection unit, a second reference point detection unit, a sensor offset calculation unit, a stocker offset calculation unit, and a movement control unit. The first reference point calculation unit is a point at the center of the upper surface of the first protrusion by controlling the moving mechanism so that the detection tool gripped by the grip portion is brought into contact with the first protrusion. Detect the actual position of the first reference point. The second reference point detection unit is a point at the center of the upper surface of the second protrusion by controlling the movement mechanism so that the detection tool gripped by the grip portion comes into contact with the second protrusion. Detect the actual position of the second reference point. The sensor offset calculation unit calculates a sensor offset, which is a correction value of the actual position of the tool sensor with respect to the design position of the tool sensor, based on the first reference point and the second reference point. The stocker offset calculation unit calculates a stocker offset, which is a correction value of the actual position of the stocker with respect to the design position of the stocker, based on the first reference point and the second reference point. The movement control unit controls the movement mechanism based on the sensor offset and the stocker offset.

上記切削加工機によれば、マガジンのマガジン本体に設けられた第1突起の上面の第1基準点の実際の位置と、マガジン本体に設けられた第2突起の上面の第2基準点の実際の位置とを検出する。第1基準点と第2基準点の2点から、マガジン本体の傾きが得られる。よって、第1基準点と第2基準点とから、マガジン本体の組み付け誤差を算出することができ、かつ、センサオフセットおよびストッカーオフセットを算出することができる。したがって、切削加工する際、センサオフセットを考慮して、移動機構を制御することで、把持部に把持された加工ツールをツールセンサが適切に検出することができる。また、切削加工する際、ストッカーオフセットを考慮して、移動機構を制御することで、把持部がストッカーに収容された加工ツールを適切に把持することができるとともに、把持部に把持された加工ツールをストッカーに適切に収容することができる。その結果、把持部は加工ツールを適切な位置で把持しているため、マガジンの組み付け誤差が生じた場合であっても、被加工物を所望の形状に切削加工することができる。 According to the cutting machine, the actual position of the first reference point on the upper surface of the first protrusion provided on the magazine body of the magazine and the actual position of the second reference point on the upper surface of the second protrusion provided on the magazine body. And the position of. The inclination of the magazine body can be obtained from the two points, the first reference point and the second reference point. Therefore, the assembly error of the magazine body can be calculated from the first reference point and the second reference point, and the sensor offset and the stocker offset can be calculated. Therefore, when cutting, the tool sensor can appropriately detect the machining tool gripped by the grip portion by controlling the moving mechanism in consideration of the sensor offset. Further, when cutting, by controlling the moving mechanism in consideration of the stocker offset, the gripping portion can appropriately grip the machining tool housed in the stocker, and the machining tool gripped by the gripping portion. Can be properly housed in the stocker. As a result, since the gripping portion grips the machining tool at an appropriate position, the workpiece can be cut into a desired shape even when an assembly error of the magazine occurs.

本発明によれば、マガジンの組み付け誤差に起因して、被加工物を所望の形状に切削加工することができないことを抑制することが可能な切削加工機を提供することができる。 According to the present invention, it is possible to provide a cutting machine capable of suppressing the inability to cut a workpiece into a desired shape due to a magazine assembly error.

実施形態に係る切削加工機の斜視図である。It is a perspective view of the cutting machine which concerns on embodiment. フロントカバーが省略された状態を示す切削加工機の斜視図である。It is a perspective view of the cutting machine which shows the state which the front cover is omitted. 回転機構の平面図である。It is a top view of the rotation mechanism. 回転機構の正面図である。It is a front view of the rotation mechanism. マガジンの平面図である。It is a top view of a magazine. マガジンの正面図である。It is a front view of a magazine. 切削加工機のブロック図である。It is a block diagram of a cutting machine. 制御装置のブロック図である。It is a block diagram of a control device. 制御装置のブロック図である。It is a block diagram of a control device. センサオフセットおよびストッカーオフセットを算出する手順を示したフローチャートである。It is a flowchart which showed the procedure of calculating a sensor offset and a stocker offset. 偏心オフセットを算出する手順を示したフローチャートである。It is a flowchart which showed the procedure of calculating an eccentricity offset. 第1基準点を検出する手順を示したフローチャートである。It is a flowchart which showed the procedure of detecting the 1st reference point. 第2基準点を検出する手順を示したフローチャートである。It is a flowchart which showed the procedure of detecting the 2nd reference point.

以下、図面を参照しながら、本発明の実施形態に係る切削加工機について説明する。なお、ここで説明される実施形態は、当然ながら特に本発明を限定することを意図したものではない。また、同じ作用を奏する部材・部位には同じ符号を付し、重複する説明は適宜省略または簡略化する。 Hereinafter, the cutting machine according to the embodiment of the present invention will be described with reference to the drawings. It should be noted that the embodiments described here are, of course, not intended to specifically limit the present invention. In addition, members and parts that perform the same action are designated by the same reference numerals, and duplicate explanations will be omitted or simplified as appropriate.

図1は、本実施形態に係る切削加工機100の斜視図である。図2は、フロントカバー20が省略された状態を示す切削加工機100の斜視図である。以下の説明では、切削加工機100を正面から見たときに、切削加工機100から遠ざかる方を前方、切削加工機100に近づく方を後方とする。左、右、上、下とは、切削加工機100を正面から見たときの左、右、上、下をそれぞれ意味するものとする。また、図面中の符号F、Rr、L、R、U、Dは、それぞれ前、後、左、右、上、下を意味するものとする。ただし、上記方向は説明の便宜上定めた方向に過ぎず、切削加工機100の設置態様を何ら限定するものではなく、本発明を何ら限定するものでもない。また、図面中の符号Xは左右方向を示している。符号Yは前後方向を示している。符号Zは上下方向を示している。本実施形態では、切削加工機100を構成する部位などの位置は、XYZ直交座標系の座標で表されるものとする。ここでは、左右方向Xは、X軸方向であり、左側がX軸のマイナス側であり、右側がX軸のプラス側である。前後方向Yは、Y軸方向であり、前側がY軸のマイナス側であり、後側がY軸のプラス側である。上下方向Zは、Z軸方向であり、下側がZ軸のマイナス側であり、上側がZ軸のプラス側である。なお、X軸方向、Y軸方向、および、Z軸方向は特に限定されず、切削加工機100の形態に応じて適宜に設定可能である。 FIG. 1 is a perspective view of the cutting machine 100 according to the present embodiment. FIG. 2 is a perspective view of the cutting machine 100 showing a state in which the front cover 20 is omitted. In the following description, when the cutting machine 100 is viewed from the front, the side away from the cutting machine 100 is referred to as the front, and the side approaching the cutting machine 100 is referred to as the rear. The terms left, right, top, and bottom mean left, right, top, and bottom when the cutting machine 100 is viewed from the front. Further, the symbols F, Rr, L, R, U, and D in the drawing mean front, back, left, right, top, and bottom, respectively. However, the above-mentioned direction is merely a direction determined for convenience of explanation, and does not limit the installation mode of the cutting machine 100 at all, nor does it limit the present invention at all. Further, the reference numeral X in the drawing indicates the left-right direction. Reference numeral Y indicates a front-back direction. Reference numeral Z indicates a vertical direction. In the present embodiment, the positions of the parts and the like constituting the cutting machine 100 are represented by the coordinates of the XYZ Cartesian coordinate system. Here, the left-right direction X is the X-axis direction, the left side is the minus side of the X-axis, and the right side is the plus side of the X-axis. The front-rear direction Y is the Y-axis direction, the front side is the minus side of the Y-axis, and the rear side is the plus side of the Y-axis. The vertical direction Z is the Z-axis direction, the lower side is the negative side of the Z-axis, and the upper side is the positive side of the Z-axis. The X-axis direction, the Y-axis direction, and the Z-axis direction are not particularly limited, and can be appropriately set according to the form of the cutting machine 100.

図2に示すように、切削加工機100は、加工ツール6を回転させて、切削対象である被加工物5を切削加工するものである。本実施形態では、切削加工機100は、箱状に形成されている。図1に示すように、切削加工機100は、本体10と、フロントカバー20と、操作パネル25とを備えている。図2に示すように、本体10は、内部に空間を有しており、本体10の前部は開口している。本実施形態では、本体10は、ベース部11と、前壁部12と、後壁部13と、左壁部14と、右壁部15とを備えている。ベース部11は、板状の部材である。前壁部12は、ベース部11の前端から上方に向かって延びている。後壁部13は、ベース部11の後端から上方に向かって延びている。左壁部14は、ベース部11の左端から上方に向かって延びている。左壁部14の前端の下部は、前壁部12の左端に接続され、左壁部14の後端は、後壁部13の左端に接続されている。右壁部15は、ベース部11の右端から上方に向かって延びている。右壁部15の前端の下部は、前壁部12の右端に接続され、右壁部15の後端は、後壁部13の右端に接続されている。 As shown in FIG. 2, the cutting machine 100 rotates the machining tool 6 to cut the workpiece 5 to be cut. In the present embodiment, the cutting machine 100 is formed in a box shape. As shown in FIG. 1, the cutting machine 100 includes a main body 10, a front cover 20, and an operation panel 25. As shown in FIG. 2, the main body 10 has a space inside, and the front portion of the main body 10 is open. In the present embodiment, the main body 10 includes a base portion 11, a front wall portion 12, a rear wall portion 13, a left wall portion 14, and a right wall portion 15. The base portion 11 is a plate-shaped member. The front wall portion 12 extends upward from the front end of the base portion 11. The rear wall portion 13 extends upward from the rear end of the base portion 11. The left wall portion 14 extends upward from the left end of the base portion 11. The lower part of the front end of the left wall portion 14 is connected to the left end of the front wall portion 12, and the rear end of the left wall portion 14 is connected to the left end of the rear wall portion 13. The right wall portion 15 extends upward from the right end of the base portion 11. The lower part of the front end of the right wall portion 15 is connected to the right end of the front wall portion 12, and the rear end of the right wall portion 15 is connected to the right end of the rear wall portion 13.

図1に示すように、フロントカバー20は、本体10の前部の開口を開閉自在に設けられている。例えば、フロントカバー20は、後端を軸に回転可能なように、本体10に支持されている。フロントカバー20には、本体10の内部の空間を目視するための窓部21が設けられていてもよい。窓部21は、例えば、透明のアクリル板によって形成されている。 As shown in FIG. 1, the front cover 20 is provided so that the opening at the front portion of the main body 10 can be opened and closed. For example, the front cover 20 is supported by the main body 10 so as to be rotatable around the rear end. The front cover 20 may be provided with a window portion 21 for visually observing the space inside the main body 10. The window portion 21 is formed of, for example, a transparent acrylic plate.

操作パネル25は、ユーザが切削加工に関する操作などを行うものであり、前壁部12の中央部分に設けられている。操作パネル25には、例えば、切削に要する時間、切削状況などの切削に関する情報が表示される表示部25a、および、切削に関する情報をユーザが入力するための入力部25bなどが備えられている。 The operation panel 25 is provided at the central portion of the front wall portion 12 for the user to perform operations related to cutting. The operation panel 25 is provided with, for example, a display unit 25a for displaying information on cutting such as the time required for cutting and a cutting status, and an input unit 25b for inputting information on cutting by the user.

次に、切削加工機100の内部構成について説明する。図2に示すように、切削加工機100は、一対の第1ガイドレール30と、キャリッジ32と、切削ヘッド40と、テーブル50と、回転機構60と、マガジン70と、制御装置80(図7参照)とを備えている。 Next, the internal configuration of the cutting machine 100 will be described. As shown in FIG. 2, the cutting machine 100 includes a pair of first guide rails 30, a carriage 32, a cutting head 40, a table 50, a rotation mechanism 60, a magazine 70, and a control device 80 (FIG. 7). See) and.

一対の第1ガイドレール30は、切削ヘッド40を左右方向Xにガイドするものである。本実施形態では、第1ガイドレール30は、本体10内に2つ配置されている。一対の第1ガイドレール30は、上下方向Zに並んで配置されており、それぞれ左右方向Xに延びた部材である。一対の第1ガイドレール30の右端は、それぞれ左壁部14に接続されている。一対の第1ガイドレール30の左端は、それぞれ右壁部15に接続されている。なお、第1ガイドレール30の数は特に限定されない。例えば、第1ガイドレール30の数は、1つであってもよい。 The pair of first guide rails 30 guide the cutting head 40 in the left-right direction X. In the present embodiment, two first guide rails 30 are arranged in the main body 10. The pair of first guide rails 30 are arranged side by side in the vertical direction Z, and are members extending in the horizontal direction X, respectively. The right ends of the pair of first guide rails 30 are each connected to the left wall portion 14. The left ends of the pair of first guide rails 30 are each connected to the right wall portion 15. The number of the first guide rails 30 is not particularly limited. For example, the number of the first guide rails 30 may be one.

キャリッジ32は、一対の第1ガイドレール30に対して摺動自在に設けられている。キャリッジ32は、一対の第1ガイドレール30に係合している。キャリッジ32は、2つの第1ガイドレール30に沿って左右方向Xに移動可能である。本実施形態では、キャリッジ32には、第1モータ32A(図7参照)が接続されている。第1モータ32Aの駆動力を受けて、キャリッジ32は、左右方向Xに移動する。 The carriage 32 is slidably provided with respect to the pair of first guide rails 30. The carriage 32 is engaged with a pair of first guide rails 30. The carriage 32 is movable in the left-right direction X along the two first guide rails 30. In the present embodiment, the first motor 32A (see FIG. 7) is connected to the carriage 32. The carriage 32 moves in the left-right direction X by receiving the driving force of the first motor 32A.

本実施形態では、キャリッジ32は、キャリッジ用ケース34と、一対の第2ガイドレール35と、摺動部材36(図7参照)とを備えている。キャリッジ用ケース34は、一対の第1ガイドレール30に係合している。キャリッジ用ケース34は、内部に空間を有している。一対の第2ガイドレール35は、上下方向Zに延びた部材であり、キャリッジ用ケース34の内部の空間に設けられている。図7の摺動部材36は、図示は省略するが、一対の第2ガイドレール35に係合している。摺動部材36は、一対の第2ガイドレール35に沿って上下方向Zに移動することが可能である。本実施形態では、図7に示すように、摺動部材36には、第2モータ36Aが接続されている。第2モータ36Aの駆動力を受けて、摺動部材36は上下方向Zに移動する。図示は省略するが、摺動部材36には、切削ヘッド40が設けられている。 In the present embodiment, the carriage 32 includes a carriage case 34, a pair of second guide rails 35, and a sliding member 36 (see FIG. 7). The carriage case 34 is engaged with a pair of first guide rails 30. The carriage case 34 has a space inside. The pair of second guide rails 35 are members extending in the vertical direction Z, and are provided in the space inside the carriage case 34. Although not shown, the sliding member 36 of FIG. 7 is engaged with a pair of second guide rails 35. The sliding member 36 can move in the vertical direction Z along the pair of second guide rails 35. In the present embodiment, as shown in FIG. 7, the second motor 36A is connected to the sliding member 36. The sliding member 36 moves in the vertical direction Z in response to the driving force of the second motor 36A. Although not shown, the sliding member 36 is provided with a cutting head 40.

図2に示すように、切削ヘッド40は、加工ツール6を使用して、被加工物5を切削するものである。また、切削ヘッド40は、検出ツール7を使用して、マガジン70の実際の位置を検出するものでもある。本実施形態では、加工ツール6は、被加工物5を切削加工する際に使用されるものであり、下部に刃物部を有している。検出ツール7は、マガジン70などの切削加工機100を構成する部位の位置を検出するものであり、下部には刃物部が設けられておらず、滑らかな面となっている。 As shown in FIG. 2, the cutting head 40 cuts the workpiece 5 by using the machining tool 6. The cutting head 40 also uses the detection tool 7 to detect the actual position of the magazine 70. In the present embodiment, the machining tool 6 is used when cutting the workpiece 5, and has a cutting tool portion at the lower portion. The detection tool 7 detects the position of a portion constituting the cutting machine 100 such as the magazine 70, and has a smooth surface without a cutting tool portion at the lower portion.

切削ヘッド40は、キャリッジ32の左右方向Xへの移動に伴い、一対の第1ガイドレール30に沿って、左右方向Xへ移動する。また、切削ヘッド40は、摺動部材36(図7参照)の上下方向Zへの移動に伴い、一対の第2ガイドレール35に沿って上下方向Zへ移動する。本実施形態では、切削ヘッド40は、把持部42と、スピンドル44とを備えている。 The cutting head 40 moves in the left-right direction X along the pair of first guide rails 30 as the carriage 32 moves in the left-right direction X. Further, the cutting head 40 moves in the vertical direction Z along the pair of second guide rails 35 as the sliding member 36 (see FIG. 7) moves in the vertical direction Z. In the present embodiment, the cutting head 40 includes a grip portion 42 and a spindle 44.

把持部42は、加工ツール6および検出ツール7のうち何れか一方のツールを把持可能なものである。ここでは、図示は省略するが、把持部42は水平方向に並んだ複数の部材によって構成されており、これら複数の部材で加工ツール6の上端部を挟むことで、把持部42は、加工ツール6および検出ツール7のうちの何れかを把持することが可能となる。本実施形態では、把持部42の上端には、スピンドル44が設けられている。 The grip portion 42 can grip one of the machining tool 6 and the detection tool 7. Although not shown here, the grip portion 42 is composed of a plurality of members arranged in the horizontal direction, and by sandwiching the upper end portion of the machining tool 6 between these plurality of members, the grip portion 42 is a machining tool. It becomes possible to grasp any of 6 and the detection tool 7. In this embodiment, a spindle 44 is provided at the upper end of the grip portion 42.

スピンドル44は、把持部42に把持された加工ツール6または検出ツール7を回転させるものである。詳しくは、スピンドル44は、把持部42を回転させることで、把持部42によって把持された加工ツール6および検出ツール7の何れかを回転軸を中心にして回転させる。ここでは、回転軸は上下方向Z、すなわち、Z軸方向である。本実施形態では、スピンドル44には、スピンドル44を回転させる第3モータ44A(図7参照)が接続されている。第3モータ44Aの駆動力を受けて、スピンドル44が回転する。そして、スピンドル44の回転に伴って、把持部42に把持された加工ツール6および検出ツール7の何れかが回転する。図示は省略するが、スピンドル44は、一対の第2ガイドレール35に摺動可能に設けられた摺動部材36(図7参照)に設けられている。スピンドル44は、摺動部材36に対して回転可能に設けられている。ここでは、摺動部材36による上下方向Zへの移動に伴って、切削ヘッド40の把持部42、把持部42に把持された加工ツール6または検出ツール7、および、スピンドル44は、上下方向Zへ移動する。 The spindle 44 rotates the machining tool 6 or the detection tool 7 gripped by the grip portion 42. Specifically, the spindle 44 rotates the grip portion 42 to rotate either the processing tool 6 or the detection tool 7 gripped by the grip portion 42 about the rotation axis. Here, the rotation axis is the vertical direction Z, that is, the Z-axis direction. In the present embodiment, the spindle 44 is connected to a third motor 44A (see FIG. 7) that rotates the spindle 44. The spindle 44 rotates under the driving force of the third motor 44A. Then, as the spindle 44 rotates, either the processing tool 6 or the detection tool 7 gripped by the grip portion 42 rotates. Although not shown, the spindle 44 is provided on a sliding member 36 (see FIG. 7) slidably provided on the pair of second guide rails 35. The spindle 44 is rotatably provided with respect to the sliding member 36. Here, as the sliding member 36 moves in the vertical direction Z, the grip portion 42 of the cutting head 40, the processing tool 6 or the detection tool 7 gripped by the grip portion 42, and the spindle 44 move in the vertical direction Z. Move to.

テーブル50は、回転機構60が取り付けられるものである。また、テーブル50には、マガジン70が設けられている。テーブル50は、本体10内に配置されている。テーブル50は、切削ヘッド40よりも下方に配置されている。 The table 50 is to which the rotation mechanism 60 is attached. Further, the table 50 is provided with a magazine 70. The table 50 is arranged in the main body 10. The table 50 is arranged below the cutting head 40.

本実施形態では、テーブル50は、前後方向Yに移動可能に構成されている。ここでは、図示は省略するが、ベース部11には、前後方向Yに延びた一対のレールが設けられている。テーブル50は、上記一対のレールに対して摺動可能に設けられている。本実施形態では、図4に示すように、テーブル50には、第4モータ50Aが接続されている。第4モータ50Aの駆動力を受けて、前後方向Yに移動する。 In the present embodiment, the table 50 is configured to be movable in the front-rear direction Y. Although not shown here, the base portion 11 is provided with a pair of rails extending in the front-rear direction Y. The table 50 is slidably provided with respect to the pair of rails. In this embodiment, as shown in FIG. 4, a fourth motor 50A is connected to the table 50. It moves in the front-rear direction Y by receiving the driving force of the fourth motor 50A.

次に、回転機構60について説明する。切削加工の際、回転機構60は、被加工物5を支持しながら回転させる機構である。回転機構60は、取り外し自在にテーブル50に設けられている。図3は、回転機構60の平面図である。図4は、回転機構60の正面図である。本実施形態では、図3に示すように、回転機構60は、回転機構本体61と、一対の第3ガイドレール63と、第1クランプ65と、第2クランプ67とを備えている。 Next, the rotation mechanism 60 will be described. At the time of cutting, the rotation mechanism 60 is a mechanism for rotating the workpiece 5 while supporting it. The rotation mechanism 60 is detachably provided on the table 50. FIG. 3 is a plan view of the rotation mechanism 60. FIG. 4 is a front view of the rotation mechanism 60. In the present embodiment, as shown in FIG. 3, the rotation mechanism 60 includes a rotation mechanism main body 61, a pair of third guide rails 63, a first clamp 65, and a second clamp 67.

図4に示すように、回転機構本体61は、底板61aと、左支持部材61bと、右支持部材61cとを有している。底板61aは、矩形状の板である。底板61aは、テーブル50上に配置されている。左支持部材61bは、底板61aから上方に向かって延びている。右支持部材61cは、底板61aの右端に固定されており、底板61aの右端から上方に向かって延びている。 As shown in FIG. 4, the rotation mechanism main body 61 has a bottom plate 61a, a left support member 61b, and a right support member 61c. The bottom plate 61a is a rectangular plate. The bottom plate 61a is arranged on the table 50. The left support member 61b extends upward from the bottom plate 61a. The right support member 61c is fixed to the right end of the bottom plate 61a and extends upward from the right end of the bottom plate 61a.

図3に示すように、一対の第3ガイドレール63は、左右方向Xに延びた部材であり、前後方向Yに並んで配置されている。一対の第3ガイドレール63の左端は、左支持部材61bにそれぞれ接続されている。一対の第3ガイドレール63の右端は、右支持部材61cにそれぞれ接続されている。本実施形態では、一対の第3ガイドレール63には、スライダ68が摺動自在に設けられている。 As shown in FIG. 3, the pair of third guide rails 63 are members extending in the left-right direction X, and are arranged side by side in the front-rear direction Y. The left ends of the pair of third guide rails 63 are each connected to the left support member 61b. The right ends of the pair of third guide rails 63 are each connected to the right support member 61c. In the present embodiment, the pair of third guide rails 63 are slidably provided with sliders 68.

第1クランプ65および第2クランプ67は、被加工物5を保持するものである。第1クランプ65と第2クランプ67によって被加工物5が挟まれることで、被加工物5は保持される。本実施形態では、第1クランプ65は、回転機構本体61の左支持部材61bに回転可能に設けられている。第2クランプ67は、一対の第3ガイドレール63に摺動自在に設けられたスライダ68に回転可能に設けられている。ここでは、第2クランプ67が一対の第3ガイドレール63に沿って移動することで、第1クランプ65と第2クランプ67との間隔を変更することができる。よって、被加工物5の左右方向Xの長さに応じて、第1クランプ65と第2クランプ67との間隔を変更することで、様々な大きさの被加工物5を第1クランプ65および第2クランプ67によって保持することができる。 The first clamp 65 and the second clamp 67 hold the workpiece 5. The workpiece 5 is held by sandwiching the workpiece 5 between the first clamp 65 and the second clamp 67. In the present embodiment, the first clamp 65 is rotatably provided on the left support member 61b of the rotation mechanism main body 61. The second clamp 67 is rotatably provided on a slider 68 slidably provided on the pair of third guide rails 63. Here, the distance between the first clamp 65 and the second clamp 67 can be changed by moving the second clamp 67 along the pair of third guide rails 63. Therefore, by changing the distance between the first clamp 65 and the second clamp 67 according to the length of the workpiece 5 in the left-right direction X, the workpieces 5 of various sizes can be transferred to the first clamp 65 and the first clamp 65. It can be held by the second clamp 67.

本実施形態では、第1クランプ65は、左右方向X、すなわち、X軸方向に延びた回転軸を中心に自らが回転する。ここでは、第1クランプ65には、第1クランプ65を回転させる第5モータ65Aが接続されている。ただし、第5モータ65Aは、第2クランプ67に接続され、第2クランプ67を回転させるものであってもよい。ここでは、第5モータ65Aが駆動することによって、第1クランプ65が回転する。そして、第1クランプ65が回転することで、第1クランプ65と第2クランプ67によって保持された被加工物5がX軸方向に延びた回転軸を中心に回転する。なお、第2クランプ67は、第1クランプ65の回転に伴い、被加工物5とともに回転する。 In the present embodiment, the first clamp 65 rotates about the left-right direction X, that is, the rotation axis extending in the X-axis direction. Here, a fifth motor 65A that rotates the first clamp 65 is connected to the first clamp 65. However, the fifth motor 65A may be connected to the second clamp 67 to rotate the second clamp 67. Here, the first clamp 65 is rotated by driving the fifth motor 65A. Then, as the first clamp 65 rotates, the workpiece 5 held by the first clamp 65 and the second clamp 67 rotates about a rotation axis extending in the X-axis direction. The second clamp 67 rotates together with the workpiece 5 as the first clamp 65 rotates.

次に、マガジン70について説明する。図5は、マガジン70の平面図である。図6は、マガジン70の正面図である。マガジン70は、図6に示すように、検出ツール7、および、複数の加工ツール6を収容することが可能なものである。図2に示すように、マガジン70は、本体10内に配置されており、テーブル50に設けられている。図5に示すように、マガジン70は、マガジン本体72と、複数のストッカー74と、ツールセンサ76と、第1突起78aと、第2突起78bとを有している。マガジン本体72は、箱状に形成されている。 Next, the magazine 70 will be described. FIG. 5 is a plan view of the magazine 70. FIG. 6 is a front view of the magazine 70. As shown in FIG. 6, the magazine 70 can accommodate the detection tool 7 and a plurality of processing tools 6. As shown in FIG. 2, the magazine 70 is arranged in the main body 10 and is provided on the table 50. As shown in FIG. 5, the magazine 70 has a magazine main body 72, a plurality of stockers 74, a tool sensor 76, a first protrusion 78a, and a second protrusion 78b. The magazine body 72 is formed in a box shape.

複数のストッカー74には、加工ツール6および検出ツール7のうちの何れかが収容される。本実施形態では、マガジン本体72の上面に穴が形成されており、その穴がストッカー74である。複数のストッカー74は、左右方向Xに並んで配置されているが、複数のストッカー74の位置は特に限定されない。本実施形態では、ストッカー74の数は6つであり、本実施形態に係るマガジン70には、加工ツール6および検出ツール7を併せて6つ収容することが可能である。しかしながら、ストッカー74の数は特に限定されず、例えば、7つ以上であってもよい。 One of the machining tool 6 and the detection tool 7 is housed in the plurality of stockers 74. In the present embodiment, a hole is formed on the upper surface of the magazine body 72, and the hole is the stocker 74. The plurality of stockers 74 are arranged side by side in the left-right direction X, but the positions of the plurality of stockers 74 are not particularly limited. In the present embodiment, the number of stockers 74 is 6, and the magazine 70 according to the present embodiment can accommodate a total of 6 processing tools 6 and 6 detection tools 7. However, the number of stockers 74 is not particularly limited, and may be, for example, seven or more.

ツールセンサ76は、切削ヘッド40の把持部42に加工ツール6または検出ツール7が把持されているか否かを検出するものである。ツールセンサ76は、加工ツール6または検出ツール7が接触したことを検出することで、把持部42に加工ツール6または検出ツール7が把持されているか否かを確認する。ツールセンサ76が加工ツール6または検出ツール7の接触を検知する手法は特に限定されない。例えば、本実施形態では、ツールセンサ76は円柱形状である。ツールセンサ76の上面には凸部が設けられている。この凸部は、マガジン本体72の上面よりも上方に突出するように形成されている。ツールセンサ76の凸部には、オンおよびオフを機械的に切り替え可能なスイッチ76aを有する接触センサ(図示せず)が設けられている。この接触センサは、例えば、スイッチ76aの上面が微小荷重によって微小に変位することで、スイッチ76aにおけるオンおよびオフを機械的に切り替える。スイッチ76aがオンまたはオフに切り替わることによって、加工ツール6または検出ツール7の接触を検出する。本実施形態では、ツールセンサ76は、マガジン本体72におけるストッカー74が形成された部位よりも左方の部位に設けられている。しかしながら、ツールセンサ76の位置は特に限定されない。例えば、ツールセンサ76は、ストッカー74が形成されたマガジン本体72の部位よりも右方のマガジン本体72の部位に設けられていてもよい。 The tool sensor 76 detects whether or not the machining tool 6 or the detection tool 7 is gripped by the grip portion 42 of the cutting head 40. By detecting that the machining tool 6 or the detection tool 7 is in contact with the tool sensor 76, it is confirmed whether or not the machining tool 6 or the detection tool 7 is gripped by the grip portion 42. The method by which the tool sensor 76 detects the contact of the processing tool 6 or the detection tool 7 is not particularly limited. For example, in this embodiment, the tool sensor 76 has a cylindrical shape. A convex portion is provided on the upper surface of the tool sensor 76. The convex portion is formed so as to project upward from the upper surface of the magazine body 72. A contact sensor (not shown) having a switch 76a that can be mechanically switched on and off is provided on the convex portion of the tool sensor 76. In this contact sensor, for example, the upper surface of the switch 76a is slightly displaced by a minute load to mechanically switch on and off in the switch 76a. The contact of the machining tool 6 or the detection tool 7 is detected by switching the switch 76a on or off. In the present embodiment, the tool sensor 76 is provided at a portion of the magazine body 72 on the left side of the portion where the stocker 74 is formed. However, the position of the tool sensor 76 is not particularly limited. For example, the tool sensor 76 may be provided at a portion of the magazine body 72 to the right of the portion of the magazine body 72 on which the stocker 74 is formed.

第1突起78aおよび第2突起78bは、マガジン70の実際の位置を検出する際に使用される突起である。なお、マガジン70の実際の位置を検出する際の第1突起78aおよび第2突起78bの具体的な使用方法は後述する。本実施形態では、図6に示すように、第1突起78aおよび第2突起78bは、マガジン本体72の上面に設けられており、マガジン本体72の上面よりも上方に向かって突出している。第1突起78aおよび第2突起78bのそれぞれの位置は特に限定されない。本実施形態では、図5に示すように、第1突起78aは、第2突起78bよりも左方に位置している。具体的には、第1突起78aは、平面視において、複数のストッカー74よりも左方に位置している。また、第1突起78aは、平面視において、ツールセンサ76よりも右方に位置している。すなわち、第1突起78aは、平面視において、ツールセンサ76と、複数のストッカー74のうち最も左に位置するストッカー74との間に配置されている。第2突起78bは、平面視において、複数のストッカー74よりも右方に位置している。第1突起78aと第2突起78bとの間には、複数のストッカー74が配置されている。本実施形態では、複数のストッカー74、ツールセンサ76、第1突起78aおよび第2突起78bは、平面視において、左右方向Xに並んでそれぞれ配置されている。図6に示すように、第1突起78aの上面の高さと、第2突起78bの上面の高さとは同じである。第1突起78aおよび第2突起78bは、それぞれ円筒形状である。平面視において、第1突起78aおよび第2突起78bのそれぞれの形状は、円形状である。 The first protrusion 78a and the second protrusion 78b are protrusions used when detecting the actual position of the magazine 70. The specific usage of the first protrusion 78a and the second protrusion 78b when detecting the actual position of the magazine 70 will be described later. In the present embodiment, as shown in FIG. 6, the first protrusion 78a and the second protrusion 78b are provided on the upper surface of the magazine main body 72, and project upward from the upper surface of the magazine main body 72. The positions of the first protrusion 78a and the second protrusion 78b are not particularly limited. In the present embodiment, as shown in FIG. 5, the first protrusion 78a is located to the left of the second protrusion 78b. Specifically, the first protrusion 78a is located to the left of the plurality of stockers 74 in a plan view. Further, the first protrusion 78a is located to the right of the tool sensor 76 in a plan view. That is, the first protrusion 78a is arranged between the tool sensor 76 and the leftmost stocker 74 among the plurality of stockers 74 in a plan view. The second protrusion 78b is located to the right of the plurality of stockers 74 in a plan view. A plurality of stockers 74 are arranged between the first protrusion 78a and the second protrusion 78b. In the present embodiment, the plurality of stockers 74, the tool sensor 76, the first protrusion 78a, and the second protrusion 78b are arranged side by side in the left-right direction X in a plan view. As shown in FIG. 6, the height of the upper surface of the first protrusion 78a and the height of the upper surface of the second protrusion 78b are the same. The first protrusion 78a and the second protrusion 78b each have a cylindrical shape. In a plan view, each of the first protrusion 78a and the second protrusion 78b has a circular shape.

図7は、切削加工機100のブロック図である。図2および図7に示すように、本実施形態では、キャリッジ32に接続された第1モータ32Aが駆動して、キャリッジ32、および、キャリッジ32に設けられた切削ヘッド40が左右方向Xに移動することで、切削ヘッド40の把持部42に把持された加工ツール6または検出ツール7は、マガジン70に対して相対的に左右方向Xに移動する。摺動部材36に接続された第2モータ36Aが駆動して、摺動部材36、および、摺動部材36に設けられた切削ヘッド40が上下方向Zに移動することで、把持部42に把持された加工ツール6または検出ツール7は、マガジン70に対して相対的に上下方向Zに移動する。また、テーブル50に接続された第4モータ50Aが駆動して、テーブル50、および、テーブル50に取り付けられた回転機構60が前後方向Yに移動することで、把持部42に把持された加工ツール6または検出ツール7は、マガジン70に対して相対的に前後方向Xに移動する。本実施形態では、第1モータ32A、第2モータ36A、および、第4モータ50Aを総称して、移動機構90という。言い換えると、移動機構90は、第1モータ32Aと、第2モータ36Aと、第4モータ50Aを有しており、切削ヘッド40の把持部42を、マガジン70に対して相対的に3次元方向に移動させる機構である。 FIG. 7 is a block diagram of the cutting machine 100. As shown in FIGS. 2 and 7, in the present embodiment, the first motor 32A connected to the carriage 32 is driven to move the carriage 32 and the cutting head 40 provided on the carriage 32 in the left-right direction X. As a result, the machining tool 6 or the detection tool 7 gripped by the grip portion 42 of the cutting head 40 moves in the left-right direction X relative to the magazine 70. The second motor 36A connected to the sliding member 36 is driven, and the sliding member 36 and the cutting head 40 provided on the sliding member 36 move in the vertical direction Z to be gripped by the grip portion 42. The processing tool 6 or the detection tool 7 is moved in the vertical direction Z relative to the magazine 70. Further, the fourth motor 50A connected to the table 50 is driven, and the table 50 and the rotation mechanism 60 attached to the table 50 move in the front-rear direction Y, so that the processing tool gripped by the grip portion 42 The 6 or the detection tool 7 moves in the front-rear direction X relative to the magazine 70. In the present embodiment, the first motor 32A, the second motor 36A, and the fourth motor 50A are collectively referred to as a moving mechanism 90. In other words, the moving mechanism 90 has a first motor 32A, a second motor 36A, and a fourth motor 50A, and the grip portion 42 of the cutting head 40 is in a three-dimensional direction relative to the magazine 70. It is a mechanism to move to.

次に、本実施形態に係る制御装置80について説明する。制御装置80は、切削加工に関する制御、および、マガジン70の実際の位置の検出を行う装置である。制御装置80は、切削加工機100の本体10に設けられている。ただし、制御装置80の位置は特に限定されない。また、制御装置80の構成は特に限定されない。例えば、制御装置80は、マイクロコンピュータからなっており、中央処理装置(以下、CPUという。)と、CPUが実行するプログラムなどを格納したROMと、RAMなどを備えている。ここでは、マイクロコンピュータ内に保存されたプログラムを使用して、切削加工に関する制御、および、各部材の位置を調整する制御を行う。 Next, the control device 80 according to the present embodiment will be described. The control device 80 is a device that controls the cutting process and detects the actual position of the magazine 70. The control device 80 is provided on the main body 10 of the cutting machine 100. However, the position of the control device 80 is not particularly limited. Further, the configuration of the control device 80 is not particularly limited. For example, the control device 80 is composed of a microcomputer, and includes a central processing unit (hereinafter referred to as a CPU), a ROM in which a program executed by the CPU and the like are stored, a RAM, and the like. Here, the program stored in the microcomputer is used to control the cutting process and adjust the position of each member.

本実施形態では、図7に示すように、制御装置80は、操作パネル25に接続されている。操作パネル25をユーザが操作することで、操作パネル25から制御装置80に信号が送信される。制御装置80は、操作パネル25から受信した信号に基づいて切削加工に関する制御を行う。制御装置80は、キャリッジ32に接続された第1モータ32Aに接続されている。制御装置80は、第1モータ32Aの駆動を制御することで、キャリッジ32および切削ヘッド40の左右方向Yへの移動を制御する。制御装置80は、切削ヘッド40が設けられた摺動部材36に接続された第2モータ36Aに接続されている。制御装置80は、第2モータ36Aの駆動を制御することで、切削ヘッド40の上下方向Zへの移動を制御する。制御装置80は、スピンドル44に接続された第3モータ44Aに接続されている。制御装置80は、第3モータ44Aの駆動を制御することで、スピンドル44および把持部42に把持された加工ツール6または検出ツール7の回転を制御する。 In this embodiment, as shown in FIG. 7, the control device 80 is connected to the operation panel 25. When the user operates the operation panel 25, a signal is transmitted from the operation panel 25 to the control device 80. The control device 80 controls the cutting process based on the signal received from the operation panel 25. The control device 80 is connected to the first motor 32A connected to the carriage 32. The control device 80 controls the movement of the carriage 32 and the cutting head 40 in the left-right direction Y by controlling the drive of the first motor 32A. The control device 80 is connected to a second motor 36A connected to a sliding member 36 provided with a cutting head 40. The control device 80 controls the movement of the cutting head 40 in the vertical direction Z by controlling the drive of the second motor 36A. The control device 80 is connected to a third motor 44A connected to the spindle 44. The control device 80 controls the rotation of the machining tool 6 or the detection tool 7 gripped by the spindle 44 and the grip portion 42 by controlling the drive of the third motor 44A.

制御装置80は、テーブル50に接続された第4モータ50Aに接続されている。制御装置80は、第4モータ50Aの駆動を制御することで、テーブル50およびテーブル50に取り付けられた回転機構60の前後方向Yへの移動を制御する。制御装置80は、回転機構60の第1クランプ65に接続された第5モータ65Aに接続されている。制御装置80は、第5モータ65Aの駆動を制御することで、第1クランプ65、および、第1クランプ65と第2クランプ67によって把持された被加工物5の回転を制御する。制御装置80は、ツールセンサ76に接続されている。ここでは、制御装置80は、ツールセンサ76のスイッチ76a(図5参照)がオンまたはオフに切り替わることを検出することで、把持部42によって把持された加工ツール6または検出ツール7がツールセンサ76(詳しくは、スイッチ76a)に接触したか否かを検出する。また、制御装置80は、把持部42に把持された加工ツール6または検出ツール7の位置を記憶しており、例えば、把持部42に把持された検出ツール7が他の部位と接触した際の位置を検出することが可能である。 The control device 80 is connected to the fourth motor 50A connected to the table 50. The control device 80 controls the drive of the fourth motor 50A to control the movement of the table 50 and the rotation mechanism 60 attached to the table 50 in the front-rear direction Y. The control device 80 is connected to a fifth motor 65A connected to the first clamp 65 of the rotation mechanism 60. The control device 80 controls the drive of the fifth motor 65A to control the rotation of the first clamp 65 and the workpiece 5 gripped by the first clamp 65 and the second clamp 67. The control device 80 is connected to the tool sensor 76. Here, the control device 80 detects that the switch 76a (see FIG. 5) of the tool sensor 76 is switched on or off, so that the machining tool 6 or the detection tool 7 gripped by the grip portion 42 is the tool sensor 76. (Specifically, it detects whether or not the contact is made with the switch 76a). Further, the control device 80 stores the position of the processing tool 6 or the detection tool 7 gripped by the grip portion 42, and for example, when the detection tool 7 gripped by the grip portion 42 comes into contact with another portion. It is possible to detect the position.

図8および図9は、それぞれ制御装置80のブロック図である。本実施形態では、制御装置80は、記憶部81と、偏心オフセット算出部82と、第1基準点検出部83と、第2基準点検出部84と、センサオフセット算出部85と、ストッカーオフセット算出部86と、移動制御部87とを備えている。なお、上述した各部は、ソフトウェアによって構成されていてもよいし、ハードウェアによって構成されていてもよい。例えば、上述した各部は、プロセッサによって行われるものであってもよい。 8 and 9 are block diagrams of the control device 80, respectively. In the present embodiment, the control device 80 includes a storage unit 81, an eccentric offset calculation unit 82, a first reference point detection unit 83, a second reference point detection unit 84, a sensor offset calculation unit 85, and a stocker offset calculation. A unit 86 and a movement control unit 87 are provided. It should be noted that each of the above-mentioned parts may be configured by software or hardware. For example, each of the above-mentioned parts may be performed by a processor.

以上、本実施形態に係る切削加工機100の構成について説明した。ところで、制御装置80の記憶部81には、マガジン70の設計上の位置が予め記憶されている。すなわち、記憶部81には、マガジン70の複数のストッカー74の設計上の位置、および、ツールセンサ76の設計上の位置が予め記憶されている。これらの位置は、例えば、XYZ直交座標系のXYZ座標によって特定されるものである。このときのXYZ座標の原点位置は特に限定されない。切削加工機100は、マガジン70の設計上の位置に基づいて、ストッカー74に収容されている加工ツール6を把持部42によって把持させたり、把持部42に把持された加工ツール6をストッカー74に収容したりしている。また、マガジン70の設計上の位置に基づいて、把持部42が把持している加工ツール6をツールセンサ76によって検出させたりしている。なお、本実施形態において、「設計上の位置」とは、切削加工機100の理論上の位置であって、例えば、パーソナルコンピュータ上での設計段階で特定されるような位置のことをいう。 The configuration of the cutting machine 100 according to the present embodiment has been described above. By the way, the design position of the magazine 70 is stored in advance in the storage unit 81 of the control device 80. That is, the storage unit 81 stores in advance the design positions of the plurality of stockers 74 of the magazine 70 and the design positions of the tool sensor 76. These positions are specified, for example, by the XYZ coordinates of the XYZ Cartesian coordinate system. The origin position of the XYZ coordinates at this time is not particularly limited. Based on the design position of the magazine 70, the cutting machine 100 causes the machining tool 6 housed in the stocker 74 to be gripped by the grip portion 42, or causes the machining tool 6 gripped by the grip portion 42 to be gripped by the stocker 74. It is housed. Further, based on the design position of the magazine 70, the machining tool 6 gripped by the grip portion 42 is detected by the tool sensor 76. In the present embodiment, the "design position" means a theoretical position of the cutting machine 100, for example, a position specified at a design stage on a personal computer.

しかしながら、マガジン70を切削加工機100の本体10に取り付ける際、本体10に対するマガジン70の組み付け誤差が生じるおそれがあり得る。この組み付け誤差が生じている場合、マガジン70の実際の位置がマガジン70の設計上の位置とは異なることがあり得る。マガジン70の実際の位置がマガジン70の設計上の位置と異なる場合、マガジン70のストッカー74に収容された加工ツール6を把持部42が適切に把持することができないおそれがあり得る。また、把持部42が把持している加工ツール6をストッカー74に適切に収容することができないことがあり得る。さらに、マガジン70の実際の位置がマガジン70の設計上の位置と異なる場合、把持部42が把持している加工ツール6をツールセンサ76が適切に検出することができないことがあり得る。 However, when the magazine 70 is attached to the main body 10 of the cutting machine 100, an error in assembling the magazine 70 to the main body 10 may occur. When this assembly error occurs, the actual position of the magazine 70 may differ from the design position of the magazine 70. If the actual position of the magazine 70 is different from the design position of the magazine 70, the gripping portion 42 may not be able to properly grip the processing tool 6 housed in the stocker 74 of the magazine 70. In addition, the processing tool 6 gripped by the grip portion 42 may not be properly accommodated in the stocker 74. Further, if the actual position of the magazine 70 is different from the design position of the magazine 70, the tool sensor 76 may not be able to properly detect the machining tool 6 gripped by the grip portion 42.

そこで、本実施形態では、マガジン70を本体10に取り付けた際、マガジン70のツールセンサ76の設計上の位置に対するツールセンサ76の実際の位置の補正値であるセンサオフセットと、ストッカー74の設計上の位置に対するストッカー74の実際の位置の補正値であるストッカーオフセットを算出する。そして、センサオフセットおよびストッカーオフセットに基づいて、移動機構90を制御する。なお、以下の説明において、センサオフセットと、ストッカーオフセットとを総称して、マガジンオフセットと称することとする。 Therefore, in the present embodiment, when the magazine 70 is attached to the main body 10, the sensor offset which is the correction value of the actual position of the tool sensor 76 with respect to the design position of the tool sensor 76 of the magazine 70 and the design of the stocker 74 The stocker offset, which is the correction value of the actual position of the stocker 74 with respect to the position of, is calculated. Then, the moving mechanism 90 is controlled based on the sensor offset and the stocker offset. In the following description, the sensor offset and the stocker offset will be collectively referred to as a magazine offset.

図10は、マガジンオフセットを算出する手順を示したフローチャートである。以下、ツールセンサオフセット、および、複数のストッカー74のそれぞれに対するストッカーオフセットを算出する手順について図10のフローチャートを用いて説明する。 FIG. 10 is a flowchart showing a procedure for calculating the magazine offset. Hereinafter, the procedure for calculating the tool sensor offset and the stocker offset for each of the plurality of stockers 74 will be described with reference to the flowchart of FIG.

本実施形態では、スピンドル44には、把持部42を回転させる際の基準の位置である回転基準位置が予め設定されている。制御装置80の記憶部81には、この回転基準位置が予め記憶されている。以下の説明において、スピンドル44が回転基準位置に位置しているときのスピンドル44の回転角度を0°とする。本実施形態では、マガジンオフセットを算出する際には、切削ヘッド40の把持部42には、検出ツール7が把持されている。この検出ツール7を使用して、マガジンオフセット、すなわち、センサオフセットおよびストッカーオフセットを算出する。 In the present embodiment, the spindle 44 is preset with a rotation reference position, which is a reference position for rotating the grip portion 42. The rotation reference position is stored in advance in the storage unit 81 of the control device 80. In the following description, the rotation angle of the spindle 44 when the spindle 44 is located at the rotation reference position is 0 °. In the present embodiment, when calculating the magazine offset, the detection tool 7 is gripped by the grip portion 42 of the cutting head 40. The detection tool 7 is used to calculate magazine offsets, i.e. sensor offsets and stocker offsets.

まず、図10のステップS101では、偏心オフセット算出部82は、偏心オフセットを算出する。例えば、図2に示すように、切削ヘッド40の把持部42が検出ツール7(または、加工ツール6)を把持している場合、検出ツール7の軸の方向がスピンドル44の軸の方向と同じになるように把持することが好ましい。しかしながら、検出ツール7の軸の方向がスピンドル44の軸の方向と若干ズレるような向きで、把持部42が検出ツール7を把持することがあり得る。この場合、スピンドル44の回転角度によって、検出ツール7が他の部材と接触する位置(詳しくは、座標)が異なることがあり得る。本実施形態では、スピンドル44が回転した際の検出ツール7の位置の誤差を補正する値を偏心オフセットという。本実施形態では、偏心オフセットとは、スピンドル44の回転角度が0°のときにおける把持部42に把持された検出ツール7と、スピンドル44の回転角度が180°のときにおける把持部42に把持された検出ツール7との振れ幅のことをいう。ここでは、偏心オフセットは、X軸方向の偏心オフセットである偏心Xオフセットと、Y軸方向の偏心オフセットである偏心Yオフセットを有している。 First, in step S101 of FIG. 10, the eccentric offset calculation unit 82 calculates the eccentric offset. For example, as shown in FIG. 2, when the grip portion 42 of the cutting head 40 grips the detection tool 7 (or the machining tool 6), the direction of the axis of the detection tool 7 is the same as the direction of the axis of the spindle 44. It is preferable to grip it so as to be. However, the grip portion 42 may grip the detection tool 7 in a direction in which the axis direction of the detection tool 7 is slightly deviated from the direction of the axis of the spindle 44. In this case, the position (specifically, the coordinates) at which the detection tool 7 comes into contact with another member may differ depending on the rotation angle of the spindle 44. In the present embodiment, a value that corrects an error in the position of the detection tool 7 when the spindle 44 rotates is referred to as an eccentric offset. In the present embodiment, the eccentric offset is defined by the detection tool 7 gripped by the grip portion 42 when the rotation angle of the spindle 44 is 0 ° and the grip portion 42 gripped by the grip portion 42 when the rotation angle of the spindle 44 is 180 °. It refers to the swing width with the detection tool 7. Here, the eccentric offset has an eccentric X offset which is an eccentric offset in the X-axis direction and an eccentric Y offset which is an eccentric offset in the Y-axis direction.

図11は、偏心オフセットを算出する手順を示したフローチャートである。本実施形態では、偏心オフセットは、図11のフローチャートに沿って、偏心オフセット算出部82によって算出される。ここでは、図8に示すように、偏心オフセット算出部82は、第1スピンドル回転部101と、第1角度X検出部102と、第1角度Y検出部103と、第2スピンドル回転部104と、第2角度X検出部105と、第2角度Y検出部106と、偏心Xオフセット算出部107と、偏心Yオフセット算出部108とを備えている。 FIG. 11 is a flowchart showing a procedure for calculating the eccentric offset. In the present embodiment, the eccentric offset is calculated by the eccentric offset calculation unit 82 according to the flowchart of FIG. Here, as shown in FIG. 8, the eccentric offset calculation unit 82 includes the first spindle rotation unit 101, the first angle X detection unit 102, the first angle Y detection unit 103, and the second spindle rotation unit 104. The second angle X detection unit 105, the second angle Y detection unit 106, the eccentric X offset calculation unit 107, and the eccentric Y offset calculation unit 108 are provided.

まず、図11に示すように、ステップS201では、第1スピンドル回転部101は、回転基準位置を基準にして、スピンドル44の回転角度が0°となるように、スピンドル44を回転させる。 First, as shown in FIG. 11, in step S201, the first spindle rotating portion 101 rotates the spindle 44 with reference to the rotation reference position so that the rotation angle of the spindle 44 becomes 0 °.

次に、ステップS202では、第1角度X検出部102は、スピンドル44の回転角度が0°のとき、図5に示すように、第1測定点M1_X1のX座標を検出する。ここで、第1測定点M1_X1とは、第1突起78aの外周面上の点であって、左右方向X、すなわち、X軸方向における端(ここでは、左端)に位置する点である。本実施形態では、第1角度X検出部102は、把持部42に把持された検出ツール7を第1突起78aに接触させるように移動機構90を制御することで、第1測定点M1_X1のX座標を検出する。ここでは、ステップS202において、検出した第1測定点M1_X1のX座標のことを第1偏心X座標という。本実施形態では、第1測定点M1_X1は、本発明の「第9測定点」に対応している。 Next, in step S202, when the rotation angle of the spindle 44 is 0 °, the first angle X detection unit 102 detects the X coordinate of the first measurement point M1_X1 as shown in FIG. Here, the first measurement point M1_X1 is a point on the outer peripheral surface of the first protrusion 78a, which is located at the left-right direction X, that is, the end (here, the left end) in the X-axis direction. In the present embodiment, the first angle X detection unit 102 controls the moving mechanism 90 so that the detection tool 7 gripped by the grip unit 42 comes into contact with the first protrusion 78a, thereby causing the X of the first measurement point M1_X1. Detect coordinates. Here, the X coordinate of the first measurement point M1_X1 detected in step S202 is referred to as the first eccentric X coordinate. In the present embodiment, the first measurement point M1_X1 corresponds to the "nineth measurement point" of the present invention.

次に、図11のステップS203では、第1角度Y検出部103は、スピンドル44の回転角度が0°のとき、図5に示すように、第3測定点M1_Y1のY座標を検出する。ここで、第3測定点M1_Y1とは、第1突起78aの外周面上の点であって、前後方向Y、すなわち、Y軸方向における端(ここでは、前端)に位置する点である。本実施形態では、第1角度Y検出部103は、把持部42に把持された検出ツール7を第1突起78aに接触させるように移動機構90を制御することで、第3測定点M1_Y1のY座標を検出する。ここでは、ステップS203において、検出した第3測定点M1_Y1のY座標のことを第1偏心Y座標という。本実施形態では、第3測定点M1_Y1は、本発明の「第10測定点」に対応している。 Next, in step S203 of FIG. 11, when the rotation angle of the spindle 44 is 0 °, the first angle Y detection unit 103 detects the Y coordinate of the third measurement point M1_Y1 as shown in FIG. Here, the third measurement point M1_Y1 is a point on the outer peripheral surface of the first protrusion 78a, which is located at the front-rear direction Y, that is, the end (here, the front end) in the Y-axis direction. In the present embodiment, the first angle Y detection unit 103 controls the moving mechanism 90 so that the detection tool 7 gripped by the grip unit 42 comes into contact with the first protrusion 78a, thereby causing Y of the third measurement point M1_Y1. Detect coordinates. Here, the Y coordinate of the third measurement point M1_Y1 detected in step S203 is referred to as the first eccentric Y coordinate. In the present embodiment, the third measurement point M1_Y1 corresponds to the "tenth measurement point" of the present invention.

次に、図11のステップS204では、第2スピンドル回転部104は、回転基準位置を基準にして、スピンドル44を180°回転させる。このとき、検出ツール7の左側に位置していた面は、右側に位置する。また、検出ツール7の前側に位置していた面は、後側に位置する。 Next, in step S204 of FIG. 11, the second spindle rotating portion 104 rotates the spindle 44 by 180 ° with reference to the rotation reference position. At this time, the surface located on the left side of the detection tool 7 is located on the right side. Further, the surface located on the front side of the detection tool 7 is located on the rear side.

次に、ステップS205では、第2角度X検出部105は、スピンドル44の回転角度が180°のとき、第1測定点M1_X1のX座標を検出する。このときの検出手順は、上記ステップS202と同様である。ここでは、ステップS205において、検出した第1測定点M1_X1のX座標のことを第2偏心X座標という。 Next, in step S205, the second angle X detection unit 105 detects the X coordinate of the first measurement point M1_X1 when the rotation angle of the spindle 44 is 180 °. The detection procedure at this time is the same as in step S202. Here, the X coordinate of the first measurement point M1_X1 detected in step S205 is referred to as the second eccentric X coordinate.

次に、ステップS206では、第2角度Y検出部106は、スピンドル44の回転角度が180°のとき、第3測定点M1_Y1のY座標を検出する。このときの検出手順は、上記ステップS203と同様である。ここでは、ステップS206において、検出した第3測定点M1_Y1のY座標のことを第2偏心Y座標という。 Next, in step S206, the second angle Y detection unit 106 detects the Y coordinate of the third measurement point M1_Y1 when the rotation angle of the spindle 44 is 180 °. The detection procedure at this time is the same as in step S203. Here, the Y coordinate of the third measurement point M1_Y1 detected in step S206 is referred to as the second eccentric Y coordinate.

次に、ステップS207では、偏心Xオフセット算出部107は、第1角度X検出部102によって検出された第1偏心X座標と、第2角度X検出部105によって検出された第2偏心X座標とから、X軸方向の偏心オフセットである偏心Xオフセットを算出する。本実施形態では、偏心Xオフセット算出部107は、第1偏心X座標と、第2偏心X座標との差を偏心Xオフセットとする。 Next, in step S207, the eccentric X offset calculation unit 107 includes the first eccentric X coordinate detected by the first angle X detection unit 102 and the second eccentric X coordinate detected by the second angle X detection unit 105. From, the eccentric X offset, which is the eccentric offset in the X-axis direction, is calculated. In the present embodiment, the eccentric X offset calculation unit 107 uses the difference between the first eccentric X coordinate and the second eccentric X coordinate as the eccentric X offset.

その後、ステップS208では、偏心Yオフセット算出部108は、第1角度Y検出部103によって検出された第1偏心Y座標と、第2角度Y検出部106によって検出された第2偏心Y座標とから、Y軸方向の偏心オフセットである偏心Yオフセットを算出する。本実施形態では、偏心Yオフセット算出部108は、第1偏心Y座標と、第2偏心Y座標との差を偏心Yオフセットとする。以上のようにして、偏心オフセット算出部82は、偏心Xオフセット、および、偏心Yオフセットを算出することで、偏心オフセットを算出する。 After that, in step S208, the eccentricity Y offset calculation unit 108 uses the first eccentricity Y coordinate detected by the first angle Y detection unit 103 and the second eccentricity Y coordinate detected by the second angle Y detection unit 106. , The eccentric Y offset, which is the eccentric offset in the Y-axis direction, is calculated. In the present embodiment, the eccentric Y offset calculation unit 108 uses the difference between the first eccentric Y coordinate and the second eccentric Y coordinate as the eccentric Y offset. As described above, the eccentric offset calculation unit 82 calculates the eccentric offset by calculating the eccentric X offset and the eccentric Y offset.

図10のステップS101において、偏心オフセットを算出した後、次にステップS102では、第1基準点検出部83は、図5に示すように、第1突起78aの上面の中心の点である第1基準点M_P1を検出する。第1基準点検出部83は、把持部42に把持された検出ツール7を第1突起78aに接触させるように移動機構90を制御することで、第1基準点M_P1の実際の位置を検出する。この第1基準点M_P1を検出する手順は特に限定されないが、本実施形態では、図12のフローチャートに沿った手順を実行することで、第1基準点検出部83は、第1基準点M_P1を算出することができる。ここでは、第1基準点検出部83は、図9に示すように、第1測定点検出部111と、第2測定点検出部112と、第3測定点検出部113と、第4測定点検出部114と、第1基準点X算出部115と、第1基準点Y算出部116と、第1基準点Z検出部117とを備えている。 After calculating the eccentric offset in step S101 of FIG. 10, in step S102, the first reference point detection unit 83 is the first point at the center of the upper surface of the first protrusion 78a, as shown in FIG. The reference point M_P1 is detected. The first reference point detection unit 83 detects the actual position of the first reference point M_P1 by controlling the moving mechanism 90 so that the detection tool 7 gripped by the grip unit 42 comes into contact with the first protrusion 78a. .. The procedure for detecting the first reference point M_P1 is not particularly limited, but in the present embodiment, by executing the procedure according to the flowchart of FIG. 12, the first reference point detection unit 83 detects the first reference point M_P1. Can be calculated. Here, as shown in FIG. 9, the first reference point detection unit 83 includes the first measurement point detection unit 111, the second measurement point detection unit 112, the third measurement point detection unit 113, and the fourth measurement inspection. It includes a protrusion 114, a first reference point X calculation unit 115, a first reference point Y calculation unit 116, and a first reference point Z detection unit 117.

図12のステップS301では、第1測定点検出部111は、図5の第1測定点M1_X1を検出する。第1測定点検出部111は、把持部42に把持された検出ツール7を第1突起78aに左方から接触させるように移動機構90を制御することで、第1測定点M1_X1のXY座標を検出する。次に、図12のステップS302では、第2測定点検出部112は、図5の第2測定点M1_X2を検出する。図5に示すように、第2測定点M1_X2は、第1突起78aの外周面上の点であって、X座標が第1測定点M1_X1のX座標とは異なる点である。第2測定点M1_X2のY座標と、第1測定点M1_X1のY座標は同じである。本実施形態では、第1測定点M1_X1と、第2測定点M1_X2は、左右方向Xに並んだ点である。平面視において、第1測定点M1_X1は、第1突起78aの外周面上の点のうち、最も左方に位置する点であり、第2測定点M1_X2は、第1突起78aの外周面上の点のうち、最も右方に位置する点である。ここでは、第2測定点検出部112は、切削ヘッド40の把持部42に把持された検出ツール7を、第2測定点M1_X2において、第1突起78aの外周面と接触させるように、移動機構90を制御する。そして、第2測定点検出部112は、検出ツール7と第1突起78aの外周面とが接触した点を第2測定点M1_X2として、第2測定点M1_X2のXY座標を検出する。 In step S301 of FIG. 12, the first measurement point detection unit 111 detects the first measurement point M1_X1 of FIG. The first measurement point detection unit 111 determines the XY coordinates of the first measurement point M1_X1 by controlling the moving mechanism 90 so that the detection tool 7 gripped by the grip unit 42 comes into contact with the first protrusion 78a from the left. To detect. Next, in step S302 of FIG. 12, the second measurement point detection unit 112 detects the second measurement point M1_X2 of FIG. As shown in FIG. 5, the second measurement point M1_X2 is a point on the outer peripheral surface of the first protrusion 78a, and the X coordinate is different from the X coordinate of the first measurement point M1_X1. The Y coordinate of the second measurement point M1_X2 and the Y coordinate of the first measurement point M1_X1 are the same. In the present embodiment, the first measurement point M1_X1 and the second measurement point M1_X2 are points arranged in the left-right direction X. In a plan view, the first measurement point M1_X1 is the leftmost point on the outer peripheral surface of the first protrusion 78a, and the second measurement point M1_X2 is on the outer peripheral surface of the first protrusion 78a. Of the points, it is the point located on the far right. Here, the second measurement point detection unit 112 moves the detection tool 7 gripped by the grip portion 42 of the cutting head 40 so as to make contact with the outer peripheral surface of the first protrusion 78a at the second measurement point M1_X2. Control 90. Then, the second measurement point detection unit 112 detects the XY coordinates of the second measurement point M1_X2, with the point where the detection tool 7 and the outer peripheral surface of the first protrusion 78a come into contact as the second measurement point M1_X2.

次に、図12のステップS303では、第3測定点検出部113は、図5の第3測定点M1_Y1を検出する。第3測定点M1_Y1は、第1突起78aの外周面上の点のうち、最も前方に位置する点である。第3測定点M1_Y1は、X座標が第1測定点M1_X1のX座標と、第2測定点M1_X2のX座標との中点のX座標である。第3測定点検出部113は、把持部42に把持された検出ツール7を第1突起78aに前方から接触させるように移動機構90を制御することで、第3測定点M1_Y1のXY座標を検出する。 Next, in step S303 of FIG. 12, the third measurement point detection unit 113 detects the third measurement point M1_Y1 of FIG. The third measurement point M1_Y1 is the point on the outer peripheral surface of the first protrusion 78a that is located at the frontmost point. The third measurement point M1_Y1 is the X coordinate of the midpoint between the X coordinate of the first measurement point M1_X1 and the X coordinate of the second measurement point M1_X2. The third measurement point detection unit 113 detects the XY coordinates of the third measurement point M1_Y1 by controlling the moving mechanism 90 so that the detection tool 7 gripped by the grip unit 42 comes into contact with the first protrusion 78a from the front. To do.

次に、図12のステップS304では、第4測定点検出部114は、図5の第4測定点M1_Y2を検出する。図5に示すように、第4測定点M1_Y2は、第1突起78aの外周面上の点であって、X座標が第3測定点M1_Y1のX座標と同じである。第4測定点M1_Y2のY座標は、第3測定点M1_Y1のY座標とは異なる。第4測定点M1_Y2は、第1突起78aの外周面上の点のうち、最も後方に位置する点であり、第3測定点M1_Y1と対向する点である。第4測定点検出部114は、把持部42に把持された検出ツール7を第1突起78aに後方から接触させるように移動機構90を制御することで、第4測定点M1_Y2のXY座標を検出する。 Next, in step S304 of FIG. 12, the fourth measurement point detection unit 114 detects the fourth measurement point M1_Y2 of FIG. As shown in FIG. 5, the fourth measurement point M1_Y2 is a point on the outer peripheral surface of the first protrusion 78a, and the X coordinate is the same as the X coordinate of the third measurement point M1_Y1. The Y coordinate of the fourth measurement point M1_Y2 is different from the Y coordinate of the third measurement point M1_Y1. The fourth measurement point M1_Y2 is a point located at the rearmost position on the outer peripheral surface of the first protrusion 78a, and is a point facing the third measurement point M1_Y1. The fourth measurement point detection unit 114 detects the XY coordinates of the fourth measurement point M1_Y2 by controlling the moving mechanism 90 so that the detection tool 7 gripped by the grip unit 42 comes into contact with the first protrusion 78a from behind. To do.

以上のようにして、第1測定点M1_X1、第2測定点M1_X2、第3測定点M1_Y1、および、第4測定点M1_Y2をそれぞれ検出した後、図12のステップS305では、第1基準点X算出部115は、第1基準点M_P1のX座標を算出する。本実施形態では、第1基準点X算出部115は、第1測定点M1_X1のX座標と、第2測定点M1_X2のX座標との中点を第1基準点M_P1のX座標とする。ここでは、第1基準点M_P1のX座標をM_P1x、第1測定点M1_X1のX座標をM1_X1x、第2測定点M1_X2のX座標をM1_X2xとすると、第1基準点M_P1のX座標は、以下の式(1)のように表すことができる。
M_P1x=(M1_X1x+M1_X2x)/2・・・(1)
After detecting the first measurement point M1_X1, the second measurement point M1_X2, the third measurement point M1_Y1, and the fourth measurement point M1_Y2 as described above, in step S305 of FIG. 12, the first reference point X is calculated. Part 115 calculates the X coordinate of the first reference point M_P1. In the present embodiment, the first reference point X calculation unit 115 sets the midpoint between the X coordinate of the first measurement point M1_X1 and the X coordinate of the second measurement point M1_X2 as the X coordinate of the first reference point M_P1. Here, assuming that the X coordinate of the first reference point M_P1 is M_P1x, the X coordinate of the first measurement point M1_X1 is M1_X1x, and the X coordinate of the second measurement point M1_X2 is M1_X2x, the X coordinate of the first reference point M_P1 is as follows. It can be expressed as in equation (1).
M_P1x = (M1_X1x + M1_X2x) / 2 ... (1)

次に、ステップS306では、第1基準点Y算出部116は、第1基準点M_P1のY座標を算出する。本実施形態では、第1基準点Y算出部116は、第3測定点M1_Y1のY座標と、第4測定点M1_Y2のY座標との中点を第1基準点M_P1のY座標とする。ここでは、第1基準点M_P1のY座標をM_P1y、第3測定点M1_Y1のY座標をM1_Y1y、第4測定点M1_Y2のY座標をM1_Y2yとすると、第1基準点M_P1のY座標は、以下の式(2)のように表すことができる。
M_P1y=(M1_Y1y+M1_Y2y)/2・・・(2)
Next, in step S306, the first reference point Y calculation unit 116 calculates the Y coordinate of the first reference point M_P1. In the present embodiment, the first reference point Y calculation unit 116 sets the midpoint between the Y coordinate of the third measurement point M1_Y1 and the Y coordinate of the fourth measurement point M1_Y2 as the Y coordinate of the first reference point M_P1. Here, assuming that the Y coordinate of the first reference point M_P1 is M_P1y, the Y coordinate of the third measurement point M1_Y1 is M1_Y1y, and the Y coordinate of the fourth measurement point M1_Y2 is M1_Y2y, the Y coordinate of the first reference point M_P1 is as follows. It can be expressed as in equation (2).
M_P1y = (M1_Y1y + M1_Y2y) / 2 ... (2)

次に、ステップS307では、第1基準点Z検出部117は、第1基準点M_P1のZ座標を検出する。第1基準点Z検出部117は、切削ヘッド40の把持部42に把持された検出ツール7の先端が第1突起78aよりも上方であって、X座標が第1基準点M_P1のX座標であり、かつ、Y座標が第1基準点M_P1のY座標となるように、移動機構90を制御する。そして、第1基準点Z検出部117は、把持部42を下方に移動させ、把持部42に把持された検出ツール7と第1突起78aとを第1突起78aの上方から接触させる。このときの把持部42に把持された検出ツール7と第1突起78aとが接触したときの検出ツール7の先端のZ座標が第1基準点M_P1のZ座標となる。なお、このように、第1基準点M_P1のXYZ座標を算出する際、偏心オフセット算出部82によって算出された偏心オフセット(偏心Xオフセットおよび偏心Yオフセット)を利用して補正をすることで、第1基準点M_P1のXYZ座標を算出してもよい。以上のようにして、第1基準点M_P1のX座標、Y座標、および、Z座標をそれぞれ検出することができる。 Next, in step S307, the first reference point Z detection unit 117 detects the Z coordinate of the first reference point M_P1. In the first reference point Z detection unit 117, the tip of the detection tool 7 gripped by the grip portion 42 of the cutting head 40 is above the first protrusion 78a, and the X coordinate is the X coordinate of the first reference point M_P1. The movement mechanism 90 is controlled so that the Y coordinate is the Y coordinate of the first reference point M_P1. Then, the first reference point Z detection unit 117 moves the grip portion 42 downward, and brings the detection tool 7 gripped by the grip portion 42 and the first protrusion 78a into contact with each other from above the first protrusion 78a. The Z coordinate of the tip of the detection tool 7 when the detection tool 7 gripped by the grip portion 42 and the first protrusion 78a come into contact with each other at this time becomes the Z coordinate of the first reference point M_P1. In this way, when calculating the XYZ coordinates of the first reference point M_P1, the eccentric offset (eccentric X offset and eccentric Y offset) calculated by the eccentric offset calculation unit 82 is used for correction. 1 The XYZ coordinates of the reference point M_P1 may be calculated. As described above, the X coordinate, the Y coordinate, and the Z coordinate of the first reference point M_P1 can be detected, respectively.

以上のように、図10のステップS102において、第1基準点M_P1を検出した後、次にステップS103では、第2基準点検出部84は、図5に示すように、第2突起78bの上面の中心の点である第2基準点M_P2を検出する。第2基準点検出部84は、把持部42に把持された検出ツール7を第2突起78bに接触させるように移動機構90を制御することで、第2基準点M_P2の実際の位置を検出する。本実施形態では、図13のフローチャートに沿った手順を実行することで、第2基準点検出部84は、第2基準点M_P2を算出することができる。ここでは、第2基準点検出部84は、図9に示すように、第5測定点検出部121と、第6測定点検出部122と、第7測定点検出部123と、第8測定点検出部124と、第2基準点X算出部125と、第2基準点Y算出部126と、第2基準点Z検出部127とを備えている。 As described above, after the first reference point M_P1 is detected in step S102 of FIG. 10, then in step S103, the second reference point detection unit 84 is the upper surface of the second protrusion 78b as shown in FIG. The second reference point M_P2, which is the central point of the above, is detected. The second reference point detection unit 84 detects the actual position of the second reference point M_P2 by controlling the moving mechanism 90 so that the detection tool 7 gripped by the grip portion 42 comes into contact with the second protrusion 78b. .. In the present embodiment, the second reference point detection unit 84 can calculate the second reference point M_P2 by executing the procedure according to the flowchart of FIG. Here, as shown in FIG. 9, the second reference point detection unit 84 includes the fifth measurement point detection unit 121, the sixth measurement point detection unit 122, the seventh measurement point detection unit 123, and the eighth measurement inspection. It includes a protrusion 124, a second reference point X calculation unit 125, a second reference point Y calculation unit 126, and a second reference point Z detection unit 127.

図13のステップS401では、第5測定点検出部121は、第5測定点M2_X1を検出し、ステップS402では、第6測定点検出部122は、第6測定点M2_X2を検出する。図5に示すように、第5測定点M2_X1および第6測定点M2_X2は、それぞれ第2突起78bの外周面上の点である。ここでは、第5測定点M2_X1と、第6測定点M2_X2は、左右方向Xに並んだ点である。第6測定点M2_X2は、X座標が第5測定点M2_X1のX座標とは異なる点であり、Y座標が第5測定点M2_X1のY座標は同じである。平面視において、第5測定点M2_X1は、第2突起78bの外周面上のうち、最も左方に位置する点であり、第6測定点M2_X2は、第2突起78bの外周面上の点のうち、最も右方に位置する点である。 In step S401 of FIG. 13, the fifth measurement point detection unit 121 detects the fifth measurement point M2_X1, and in step S402, the sixth measurement point detection unit 122 detects the sixth measurement point M2_X2. As shown in FIG. 5, the fifth measurement point M2_X1 and the sixth measurement point M2_X2 are points on the outer peripheral surface of the second protrusion 78b, respectively. Here, the fifth measurement point M2_X1 and the sixth measurement point M2_X2 are points arranged in the left-right direction X. The sixth measurement point M2_X2 is a point whose X coordinate is different from the X coordinate of the fifth measurement point M2_X1, and the Y coordinate is the same as the Y coordinate of the fifth measurement point M2_X1. In a plan view, the fifth measurement point M2_X1 is a point located on the leftmost side of the outer peripheral surface of the second protrusion 78b, and the sixth measurement point M2_X2 is a point on the outer peripheral surface of the second protrusion 78b. Of these, it is the point located on the far right.

第5測定点検出部121は、把持部42に把持された検出ツール7を第2突起78bに接触させるように移動機構90を制御することで、第5測定点M2_X1のXY座標を検出する。また、第6測定点検出部122は、把持部42に把持された検出ツール7を第2突起78bに接触させるように移動機構90を制御することで、第6測定点M2_X2のXY座標を検出する。 The fifth measurement point detection unit 121 detects the XY coordinates of the fifth measurement point M2_X1 by controlling the moving mechanism 90 so that the detection tool 7 gripped by the grip unit 42 comes into contact with the second protrusion 78b. Further, the sixth measurement point detection unit 122 detects the XY coordinates of the sixth measurement point M2_X2 by controlling the moving mechanism 90 so that the detection tool 7 gripped by the grip unit 42 comes into contact with the second protrusion 78b. To do.

次に、図13のステップS403では、第7測定点検出部123は、第7測定点M2_Y1を検出し、ステップS404では、第8測定点検出部124は、第8測定点M2_Y2を検出する。図5に示すように、第7測定点M2_Y1は、X座標が第5測定点M2_X1のX座標と、第6測定点M2_X2のX座標との中点のX座標である。第8測定点M2_Y2は、第2突起78bの外周面上の点であって、X座標が第7測定点M2_Y1のX座標と同じである。第8測定点M2_Y2のY座標は、第7測定点M2_Y1のY座標とは異なる。第7測定点M2_Y1は、第2突起78bの外周面上の点のうち、最も前方に位置する点である。第8測定点M2_Y2は、第2突起78bの外周面上の点のうち、最も後方に位置する点である。ここでは、第7測定点M2_Y1と、第8測定点M2_Y2は、前後方向Yに並んだ点である。 Next, in step S403 of FIG. 13, the seventh measurement point detection unit 123 detects the seventh measurement point M2_Y1, and in step S404, the eighth measurement point detection unit 124 detects the eighth measurement point M2_Y2. As shown in FIG. 5, the seventh measurement point M2_Y1 is the X coordinate of the midpoint between the X coordinate of the fifth measurement point M2_X1 and the X coordinate of the sixth measurement point M2_X2. The eighth measurement point M2_Y2 is a point on the outer peripheral surface of the second protrusion 78b, and the X coordinate is the same as the X coordinate of the seventh measurement point M2_Y1. The Y coordinate of the eighth measurement point M2_Y2 is different from the Y coordinate of the seventh measurement point M2_Y1. The seventh measurement point M2_Y1 is a point located on the outermost side of the outer peripheral surface of the second protrusion 78b. The eighth measurement point M2_Y2 is a point located at the rearmost position on the outer peripheral surface of the second protrusion 78b. Here, the seventh measurement point M2_Y1 and the eighth measurement point M2_Y2 are points arranged in the front-rear direction Y.

第7測定点検出部123は、把持部42に把持された検出ツール7を第2突起78bに接触させるように移動機構90を制御することで、第7測定点M2_Y1のXY座標を検出する。また、第8測定点検出部124は、把持部42に把持された検出ツール7を第2突起78bに接触させるように移動機構90を制御することで、第8測定点M2_Y2のXY座標を検出する。 The seventh measurement point detection unit 123 detects the XY coordinates of the seventh measurement point M2_Y1 by controlling the moving mechanism 90 so that the detection tool 7 gripped by the grip unit 42 comes into contact with the second protrusion 78b. Further, the eighth measurement point detection unit 124 detects the XY coordinates of the eighth measurement point M2_Y2 by controlling the moving mechanism 90 so that the detection tool 7 gripped by the grip portion 42 comes into contact with the second protrusion 78b. To do.

以上のようにして、第5測定点M2_X1、第6測定点M2_X2、第7測定点M2_Y1、および、第8測定点M2_Y2をそれぞれ検出した後、図13のステップS405では、第2基準点X算出部125は、第2基準点M_P2のX座標を算出する。第2基準点X算出部125は、第5測定点M2_X1のX座標と、第6測定点M2_X2のX座標との中点を第2基準点M_P2のX座標とする。ここでは、第2基準点M_P2のX座標をM_P2x、第5測定点M2_X1のX座標をM2_X1x、第6測定点M2_X2のX座標をM2_X2xとすると、第2基準点M_P2のX座標は、以下の式(3)のように表すことができる。
M_P2x=(M2_X1x+M2_X2x)/2・・・(3)
After detecting the fifth measurement point M2_X1, the sixth measurement point M2_X2, the seventh measurement point M2_Y1, and the eighth measurement point M2_Y2 as described above, the second reference point X is calculated in step S405 of FIG. Part 125 calculates the X coordinate of the second reference point M_P2. The second reference point X calculation unit 125 sets the midpoint between the X coordinate of the fifth measurement point M2_X1 and the X coordinate of the sixth measurement point M2_X2 as the X coordinate of the second reference point M_P2. Here, assuming that the X coordinate of the second reference point M_P2 is M_P2x, the X coordinate of the fifth measurement point M2_X1 is M2_X1x, and the X coordinate of the sixth measurement point M2_X2 is M2_X2x, the X coordinate of the second reference point M_P2 is as follows. It can be expressed as in equation (3).
M_P2x = (M2_X1x + M2_X2x) / 2 ... (3)

次に、図13のステップS406では、第2基準点Y算出部126は、第2基準点M_P2のY座標を算出する。第2基準点Y算出部126は、第7測定点M2_Y1のY座標と、第8測定点M2_Y2のY座標との中点を第2基準点M_P2のY座標とする。ここでは、第2基準点M_P2のY座標をM_P2y、第7測定点M2_Y1のY座標をM2_Y1y、第8測定点M2_Y2のY座標をM2_Y2yとすると、第2基準点M_P2のY座標は、以下の式(4)のように表すことができる。
M_P2y=(M2_Y1y+M2_Y2y)/2・・・(4)
Next, in step S406 of FIG. 13, the second reference point Y calculation unit 126 calculates the Y coordinate of the second reference point M_P2. The second reference point Y calculation unit 126 sets the midpoint between the Y coordinate of the seventh measurement point M2_Y1 and the Y coordinate of the eighth measurement point M2_Y2 as the Y coordinate of the second reference point M_P2. Here, assuming that the Y coordinate of the second reference point M_P2 is M_P2y, the Y coordinate of the seventh measurement point M2_Y1 is M2_Y1y, and the Y coordinate of the eighth measurement point M2_Y2 is M2_Y2y, the Y coordinate of the second reference point M_P2 is as follows. It can be expressed as in equation (4).
M_P2y = (M2_Y1y + M2_Y2y) / 2 ... (4)

次に、図13のステップS407では、第2基準点Z検出部127は、第2基準点M_P2のZ座標を検出する。第2基準点Z検出部127は、把持部42に把持された検出ツール7の先端が第2突起78bよりも上方であって、X座標が第2基準点M_P2のX座標であり、かつ、Y座標が第2基準点M_P2のY座標となるように、移動機構90を制御する。そして、第2基準点Z検出部127は、把持部42を下方に移動させ、把持部42に把持された検出ツール7と第2突起78bとを第2突起78bの上方から接触させる。このとき、把持部42に把持された検出ツール7と第2突起78bとが接触したときの検出ツール7の先端のZ座標が第2基準点M_P2のZ座標となる。なお、このように、第2基準点M_P2のXYZ座標を算出する際、偏心オフセット算出部82によって算出された偏心オフセット(偏心Xオフセットおよび偏心Yオフセット)を利用して補正をすることで、第2基準点M_P2のXYZ座標を算出してもよい。以上のようにして、第2基準点M_P2のX座標、Y座標、および、Z座標をそれぞれ検出することができる。 Next, in step S407 of FIG. 13, the second reference point Z detection unit 127 detects the Z coordinate of the second reference point M_P2. In the second reference point Z detection unit 127, the tip of the detection tool 7 gripped by the grip unit 42 is above the second protrusion 78b, the X coordinate is the X coordinate of the second reference point M_P2, and The movement mechanism 90 is controlled so that the Y coordinate becomes the Y coordinate of the second reference point M_P2. Then, the second reference point Z detection unit 127 moves the grip portion 42 downward, and brings the detection tool 7 gripped by the grip portion 42 and the second protrusion 78b into contact with each other from above the second protrusion 78b. At this time, the Z coordinate of the tip of the detection tool 7 when the detection tool 7 gripped by the grip portion 42 and the second protrusion 78b come into contact with each other becomes the Z coordinate of the second reference point M_P2. In this way, when calculating the XYZ coordinates of the second reference point M_P2, the eccentric offset (eccentric X offset and eccentric Y offset) calculated by the eccentric offset calculation unit 82 is used for correction. 2 The XYZ coordinates of the reference point M_P2 may be calculated. As described above, the X coordinate, the Y coordinate, and the Z coordinate of the second reference point M_P2 can be detected, respectively.

以上のように、第1基準点M_P1および第2基準点M_P2のそれぞれのXYZ座標を算出したあと、次に、図10のステップS104では、センサオフセット算出部85は、ツールセンサ76のオフセットであるセンサオフセットを算出する。本実施形態では、センサオフセットは、X軸方向のセンサオフセットであるセンサXオフセットと、Y軸方向のセンサオフセットであるセンサYオフセットと、Z軸方向のセンサオフセットであるセンサZオフセットとを有している。以下、センサXオフセット、センサYオフセット、および、センサZオフセットの算出手順についてそれぞれ詳述する。 As described above, after calculating the XYZ coordinates of the first reference point M_P1 and the second reference point M_P2, the sensor offset calculation unit 85 is the offset of the tool sensor 76 in step S104 of FIG. Calculate the sensor offset. In the present embodiment, the sensor offset includes a sensor X offset which is a sensor offset in the X-axis direction, a sensor Y offset which is a sensor offset in the Y-axis direction, and a sensor Z offset which is a sensor offset in the Z-axis direction. ing. Hereinafter, the procedures for calculating the sensor X offset, the sensor Y offset, and the sensor Z offset will be described in detail.

本実施形態では、図8に示すように、センサオフセット算出部85は、センサXオフセット算出部131と、センサYオフセット算出部132と、センサZオフセット算出部133とを備えている。センサXオフセット算出部131によって、センサXオフセットが算出される。センサYオフセット算出部132によって、センサYオフセットが算出される。センサZオフセット算出部133によって、センサZオフセットが算出される。本実施形態では、記憶部81には、第1基準点M_P1の設計上のX座標、Y座標、Z座標、および、ツールセンサ76の上面の設計上のZ座標が予め記憶されている。 In the present embodiment, as shown in FIG. 8, the sensor offset calculation unit 85 includes a sensor X offset calculation unit 131, a sensor Y offset calculation unit 132, and a sensor Z offset calculation unit 133. The sensor X offset calculation unit 131 calculates the sensor X offset. The sensor Y offset calculation unit 132 calculates the sensor Y offset. The sensor Z offset calculation unit 133 calculates the sensor Z offset. In the present embodiment, the storage unit 81 stores in advance the design X-coordinate, Y-coordinate, Z-coordinate of the first reference point M_P1 and the design Z-coordinate of the upper surface of the tool sensor 76.

まず、センサXオフセット算出部131は、以下の式(5)によって、センサXオフセットを算出する。下記式(5)では、E1xはセンサXオフセット、M_P1xは第1基準点M_P1のX座標、DM_P1xは第1基準点M_P1の設計上のX座標をそれぞれ示している。
E1x=M_P1x−DM_P1x・・・(5)
なお、第1基準点M_P1のX座標M_P1xは、上記式(1)を使用して算出することができる。
First, the sensor X offset calculation unit 131 calculates the sensor X offset by the following equation (5). In the following equation (5), E1x indicates the sensor X offset, M_P1x indicates the X coordinate of the first reference point M_P1, and DM_P1x indicates the design X coordinate of the first reference point M_P1.
E1x = M_P1x-DM_P1x ... (5)
The X coordinate M_P1x of the first reference point M_P1 can be calculated using the above equation (1).

センサYオフセット算出部132は、以下の式(6)によって、センサYオフセットを算出する。下記式(6)では、E1yはセンサYオフセット、M_P1yは第1基準点M_P1のY座標、DM_P1yは第1基準点M_P1の設計上のY座標をそれぞれ示している。
E1y=M_P1y−DM_P1y・・・(6)
なお、第1基準点M_P1のY座標M_P1yは、上記式(2)を使用して算出することができる。
The sensor Y offset calculation unit 132 calculates the sensor Y offset by the following equation (6). In the following formula (6), E1y indicates the sensor Y offset, M_P1y indicates the Y coordinate of the first reference point M_P1, and DM_P1y indicates the design Y coordinate of the first reference point M_P1.
E1y = M_P1y-DM_P1y ... (6)
The Y coordinate M_P1y of the first reference point M_P1 can be calculated using the above equation (2).

センサZオフセット算出部133は、把持部42に検出ツール7が把持されていない状態で、把持部42をツールセンサ76に上方から接触させることで、ツールセンサ76の実際のZ座標を検出する。そして、センサZオフセット算出部133は、以下の式(7)によって、センサZオフセットを算出する。下記式(7)では、E1zはセンサZオフセット、TSzはツールセンサ76の実際のZ座標、DTSzはツールセンサ76の上面の設計上のZ座標をそれぞれ示している。
E1z=TSz−DTSz・・・(7)
The sensor Z offset calculation unit 133 detects the actual Z coordinate of the tool sensor 76 by bringing the grip unit 42 into contact with the tool sensor 76 from above while the detection tool 7 is not gripped by the grip unit 42. Then, the sensor Z offset calculation unit 133 calculates the sensor Z offset by the following equation (7). In the following formula (7), E1z indicates the sensor Z offset, TSz indicates the actual Z coordinate of the tool sensor 76, and DTSz indicates the design Z coordinate of the upper surface of the tool sensor 76.
E1z = TSz-DTZz ... (7)

以上のようにして、センサXオフセット、センサYオフセット、および、センサZオフセットをそれぞれ算出することで、ツールセンサ76のオフセットであるセンサオフセットを算出することができる。移動制御部87(図7参照)は、切削加工する際、算出したセンサオフセットに基づいて、移動機構90を制御して、把持部42に把持された加工ツール6を移動させる。このことで、把持部42に把持された加工ツール6をツールセンサ76の適切な位置に接触させることができるため、加工ツール6の検出を適切に行うことができる。 By calculating the sensor X offset, the sensor Y offset, and the sensor Z offset as described above, the sensor offset, which is the offset of the tool sensor 76, can be calculated. The movement control unit 87 (see FIG. 7) controls the movement mechanism 90 based on the calculated sensor offset during cutting to move the processing tool 6 gripped by the grip unit 42. As a result, the machining tool 6 gripped by the grip portion 42 can be brought into contact with an appropriate position of the tool sensor 76, so that the machining tool 6 can be appropriately detected.

次に、図10のステップS105では、ストッカーオフセット算出部86は、各ストッカー74(図5参照)のオフセットであるストッカーオフセットを算出する。以下の説明において、複数のストッカー74に関連する符号において、第1基準点M_P1に近い方のストッカー74から順に、括弧内に1〜6の番号を付した符号を付すこととする。ここで、各ストッカー74(i)のそれぞれのストッカーオフセットをE2(i)とする。本実施形態において、iは、1以上6以下である。ここで、ストッカーオフセットE2(i)は、X軸方向のストッカーオフセットであるストッカーXオフセットと、Y軸方向のストッカーオフセットであるストッカーYオフセットと、Z軸方向のストッカーオフセットであるストッカーZオフセットを有している。以下、ストッカーXオフセット、ストッカーYオフセット、および、ストッカーZオフセットの算出手順についてそれぞれ詳述する。 Next, in step S105 of FIG. 10, the stocker offset calculation unit 86 calculates the stocker offset, which is the offset of each stocker 74 (see FIG. 5). In the following description, among the codes related to the plurality of stockers 74, the numbers 1 to 6 are assigned in parentheses in order from the stocker 74 closer to the first reference point M_P1. Here, let each stocker offset of each stocker 74 (i) be E2 (i) . In this embodiment, i is 1 or more and 6 or less. Here, the stocker offset E2 (i) has a stocker X offset which is a stocker offset in the X-axis direction, a stocker Y offset which is a stocker offset in the Y-axis direction, and a stocker Z offset which is a stocker offset in the Z-axis direction. doing. Hereinafter, the procedures for calculating the stocker X offset, the stocker Y offset, and the stocker Z offset will be described in detail.

本実施形態では、図8に示すように、ストッカーオフセット算出部86は、ストッカーXオフセット算出部141と、ストッカーYオフセット算出部142と、ストッカーZオフセット算出部143とを備えている。ストッカーXオフセット算出部141によって、ストッカーXオフセットが算出される。ストッカーYオフセット算出部142によって、ストッカーYオフセットが算出される。ストッカーZオフセット算出部143によって、ストッカーZオフセットが算出される。本実施形態では、記憶部81には、第1基準点M_P1からストッカー74(i)の中心までの距離、および、第2基準点M_P2の設計上のX座標、Y座標、Z座標が予め記憶されている。 In the present embodiment, as shown in FIG. 8, the stocker offset calculation unit 86 includes a stocker X offset calculation unit 141, a stocker Y offset calculation unit 142, and a stocker Z offset calculation unit 143. The stocker X offset calculation unit 141 calculates the stocker X offset. The stocker Y offset calculation unit 142 calculates the stocker Y offset. The stocker Z offset calculation unit 143 calculates the stocker Z offset. In the present embodiment, the storage unit 81 stores in advance the distance from the first reference point M_P1 to the center of the stocker 74 (i) , and the design X-coordinate, Y-coordinate, and Z-coordinate of the second reference point M_P2. Has been done.

まず、ストッカーXオフセット算出部141は、以下の式(8)によって、ストッカー74(i)のセンサXオフセットを算出する。下記式(8)では、E2x(i)はストッカー74(i)のストッカーXオフセット、M_P1xは第1基準点M_P1のX座標、M_P2xは第2基準点M_P2のX座標、DM_P1xは第1基準点M_P1の設計上のX座標、DM_P2xは第2基準点M_P2の設計上のX座標、D(i)は第1基準点M_P1からストッカー74(i)の中心までの距離をそれぞれ示している。
E2x(i)=(M_P1x+((M_P2x−M_P1x)/(DM_P2x−DM_P1x))×D(i))−(DM_P1x+D(i))・・・(8)
First, the stocker X offset calculation unit 141 calculates the sensor X offset of the stocker 74 (i) by the following equation (8). In the following equation (8), E2x (i) is the stocker X offset of the stocker 74 (i) , M_P1x is the X coordinate of the first reference point M_P1, M_P2x is the X coordinate of the second reference point M_P2, and DM_P1x is the first reference point. The design X coordinate of M_P1, DM_P2x is the design X coordinate of the second reference point M_P2, and D (i) is the distance from the first reference point M_P1 to the center of the stocker 74 (i) .
E2x (i) = (M_P1x + ((M_P2x-M_P1x) / (DM_P2x-DM_P1x)) x D (i) )-(DM_P1x + D (i) ) ... (8)

ストッカーYオフセット算出部142は、以下の式(9)によって、ストッカーYオフセットを算出する。下記式(9)では、E2y(i)はストッカー74(i)のストッカーYオフセット、M_P1yは第1基準点M_P1のY座標、M_P2yは第2基準点M_P2のY座標、M_P1xは第1基準点M_P1のX座標、M_P2xは第2基準点M_P2のX座標、DM_P1yは第1基準点M_P1の設計上のY座標、D(i)は第1基準点M_P1からストッカー74(i)の中心までの距離をそれぞれ示している。
E2y(i)=(M_P1y+((M_P2y−M_P1y)/(M_P2x−M_P1x))×D(i))−DM_P1y・・・(9)
The stocker Y offset calculation unit 142 calculates the stocker Y offset by the following equation (9). In the following equation (9), E2y (i) is the stocker Y offset of the stocker 74 (i) , M_P1y is the Y coordinate of the first reference point M_P1, M_P2y is the Y coordinate of the second reference point M_P2, and M_P1x is the first reference point. The X coordinate of M_P1, M_P2x is the X coordinate of the second reference point M_P2, DM_P1y is the design Y coordinate of the first reference point M_P1, and D (i) is from the first reference point M_P1 to the center of the stocker 74 (i) . The distances are shown respectively.
E2y (i) = (M_P1y + ((M_P2y-M_P1y) / (M_P2x-M_P1x)) x D (i) )-DM_P1y ... (9)

ストッカーZオフセット算出部143は、以下の式(10)によって、ストッカーZオフセットを算出する。下記式(10)では、E2z(i)はストッカー74(i)のストッカーZオフセット、M_P1zは第1基準点M_P1のZ座標、M_P2zは第2基準点M_P2のZ座標、M_P1xは第1基準点M_P1のX座標、M_P2xは第2基準点M_P2のX座標、DM_P1zは第1基準点M_P1の設計上のZ座標、D(i)は第1基準点M_P1からストッカー74(i)の中心までの距離をそれぞれ示している。
E2z(i)=(M_P1z+((M_P2z−M_P1z)/(M_P2x−M_P1x))×D(i))−DM_P1z・・・(10)
The stocker Z offset calculation unit 143 calculates the stocker Z offset by the following equation (10). In the following equation (10), E2z (i) is the stocker Z offset of the stocker 74 (i) , M_P1z is the Z coordinate of the first reference point M_P1, M_P2z is the Z coordinate of the second reference point M_P2, and M_P1x is the first reference point. The X coordinate of M_P1, M_P2x is the X coordinate of the second reference point M_P2, DM_P1z is the design Z coordinate of the first reference point M_P1, and D (i) is from the first reference point M_P1 to the center of the stocker 74 (i) . The distances are shown respectively.
E2z (i) = (M_P1z + ((M_P2z-M_P1z) / (M_P2x-M_P1x)) x D (i) )-DM_P1z ... (10)

以上のようにして、ストッカーXオフセット、ストッカーYオフセット、および、ストッカーZオフセットをそれぞれ算出することで、各ストッカー74(i)のオフセットであるストッカーオフセットを算出することができる。移動制御部87(図7参照)は、切削加工する際、このストッカーオフセットに基づいて、移動機構90を制御して、把持部42を移動させる。このことによって、把持部42が把持している加工ツール6をストッカー74の適切な位置に収容することができ、かつ、ストッカー74に収容された加工ツール6を把持部42が適切に把持することができる。 By calculating the stocker X offset, the stocker Y offset, and the stocker Z offset as described above, the stocker offset, which is the offset of each stocker 74 (i) , can be calculated. The movement control unit 87 (see FIG. 7) controls the movement mechanism 90 based on the stocker offset to move the grip unit 42 during cutting. As a result, the machining tool 6 gripped by the grip portion 42 can be accommodated at an appropriate position of the stocker 74, and the machining tool 6 accommodated in the stocker 74 can be appropriately gripped by the grip portion 42. Can be done.

以上、本実施形態では、図5に示すように、マガジン70のマガジン本体72に設けられた第1突起78aの上面の第1基準点M_P1の実際の位置と、マガジン本体72に設けられた第2突起78bの上面の第2基準点M_P2の実際の位置とを検出する。第1基準点M_P1と第2基準点M_P2の2点から、マガジン本体72の傾きが得られる。よって、第1基準点M_P1と第2基準点M_P2とから、マガジン本体72の組み付け誤差を算出することができ、かつ、センサオフセットおよびストッカーオフセットを算出することができる。したがって、切削加工する際、センサオフセットを考慮して、移動制御部87が移動機構90を制御することで、把持部42に把持された加工ツール6をツールセンサ76が適切に検出することができる。また、切削加工する際、ストッカーオフセットを考慮して、移動制御部87が移動機構90を制御することで、把持部42がストッカー74に収容された加工ツール6を適切に把持することができるとともに、把持部42に把持された加工ツール6をストッカー74に適切に収容することができる。その結果、把持部42は加工ツール6を適切な位置で把持しているため、マガジン70の組み付け誤差が生じた場合であっても、被加工物5を所望の形状に切削加工することができる。 As described above, in the present embodiment, as shown in FIG. 5, the actual position of the first reference point M_P1 on the upper surface of the first protrusion 78a provided on the magazine body 72 of the magazine 70 and the first position provided on the magazine body 72. The actual position of the second reference point M_P2 on the upper surface of the two protrusions 78b is detected. The inclination of the magazine body 72 can be obtained from the two points of the first reference point M_P1 and the second reference point M_P2. Therefore, the assembly error of the magazine body 72 can be calculated from the first reference point M_P1 and the second reference point M_P2, and the sensor offset and the stocker offset can be calculated. Therefore, when cutting, the movement control unit 87 controls the movement mechanism 90 in consideration of the sensor offset, so that the tool sensor 76 can appropriately detect the processing tool 6 gripped by the grip portion 42. .. Further, when cutting, the movement control unit 87 controls the movement mechanism 90 in consideration of the stocker offset, so that the gripping unit 42 can appropriately grip the processing tool 6 housed in the stocker 74. , The processing tool 6 gripped by the grip portion 42 can be appropriately housed in the stocker 74. As a result, since the gripping portion 42 grips the machining tool 6 at an appropriate position, the workpiece 5 can be cut into a desired shape even when an assembly error of the magazine 70 occurs. ..

本実施形態では、図5に示すように、平面視において、第1突起78aの形状は円形状である。第1基準点検出部83は、Y座標が同じ第1測定点M1_X1および第2測定点M1_X2と、X座標が同じ第3測定点M1_Y1および第4測定点M1_Y2をそれぞれ検出することで、第1基準点M_P1のX座標、Y座標、および、Z座標を検出している。このことによって、第1突起78aの外周面上のより少ない点を使用して、第1基準点M_P1のX座標、Y座標をそれぞれ算出することができる。 In the present embodiment, as shown in FIG. 5, the shape of the first protrusion 78a is circular in a plan view. The first reference point detection unit 83 detects the first measurement point M1_X1 and the second measurement point M1_X2 having the same Y coordinate, and the third measurement point M1_Y1 and the fourth measurement point M1_Y2 having the same X coordinate, respectively. The X coordinate, Y coordinate, and Z coordinate of the reference point M_P1 are detected. This makes it possible to calculate the X and Y coordinates of the first reference point M_P1 using fewer points on the outer peripheral surface of the first protrusion 78a.

本実施形態では、第2突起78bの形状は円形状である。第2基準点検出部84は、Y座標が同じ第5測定点M2_X1および第6測定点M2_X2と、X座標が同じ第7測定点M2_Y1および第8測定点M1_Y2をそれぞれ検出することで、第2基準点M_P2のX座標、Y座標、および、Z座標を検出している。このことによって、第2突起78bの外周面上のより少ない点を使用して、第2基準点M_P2のX座標、Y座標をそれぞれ算出することができる。 In the present embodiment, the shape of the second protrusion 78b is circular. The second reference point detection unit 84 detects the fifth measurement point M2_X1 and the sixth measurement point M2_X2 having the same Y coordinate, and the seventh measurement point M2_Y1 and the eighth measurement point M1_Y2 having the same X coordinate, respectively. The X coordinate, Y coordinate, and Z coordinate of the reference point M_P2 are detected. This allows the X and Y coordinates of the second reference point M_P2 to be calculated using fewer points on the outer peripheral surface of the second protrusion 78b.

本実施形態では、センサXオフセット算出部131は、上記式(5)を使用してツールセンサ76のX軸方向のオフセットであるセンサXオフセットを算出している。センサYオフセット算出部132は、上記式(6)を使用してツールセンサ76のY軸方向のオフセットであるセンサYオフセットを算出している。また、センサZオフセット算出部133は、上記式(7)を使用してツールセンサ76のZ軸方向のオフセットであるセンサZオフセットを算出している。このように、上記式(5)〜(7)を使用することで、センサXオフセット、センサYオフセット、および、センサZオフセットを算出することができる。また、センサXオフセット、センサYオフセット、センサZオフセットを算出することで、ツールセンサ76の位置を3次元で補正することができるため、マガジン70の組み付け誤差が生じている場合であっても、把持部42に把持された加工ツール6をツールセンサ76がより適切に検出することができる。 In the present embodiment, the sensor X offset calculation unit 131 calculates the sensor X offset, which is the offset in the X-axis direction of the tool sensor 76, using the above equation (5). The sensor Y offset calculation unit 132 calculates the sensor Y offset, which is the offset in the Y-axis direction of the tool sensor 76, using the above equation (6). Further, the sensor Z offset calculation unit 133 calculates the sensor Z offset, which is the offset in the Z axis direction of the tool sensor 76, using the above equation (7). In this way, the sensor X offset, the sensor Y offset, and the sensor Z offset can be calculated by using the above equations (5) to (7). Further, by calculating the sensor X offset, the sensor Y offset, and the sensor Z offset, the position of the tool sensor 76 can be corrected in three dimensions, so that even if an assembly error of the magazine 70 occurs. The tool sensor 76 can more appropriately detect the machining tool 6 gripped by the grip portion 42.

本実施形態では、ストッカーXオフセット算出部141は、上記式(8)を使用してX軸方向のストッカーオフセットであるストッカーXオフセットを算出している。ストッカーYオフセット算出部142は、上記式(9)を使用してY軸方向のストッカーオフセットであるストッカーYオフセットを算出している。また、ストッカーZオフセット算出部143は、上記式(10)を使用してZ軸方向のストッカーオフセットであるストッカーZオフセットを算出している。このように、上記式(8)〜(10)を使用することで、ストッカーXオフセット、ストッカーYオフセット、および、ストッカーZオフセットを算出することができる。また、ストッカーXオフセット、ストッカーYオフセット、ストッカーZオフセットを算出することで、ストッカー74の位置を3次元で補正することができるため、マガジン70の組み付け誤差が生じている場合であっても、把持部42がストッカー74に収容された加工ツール6を適切に把持することができるとともに、把持部42に把持された加工ツール6をストッカー74に適切に収容することができる。 In the present embodiment, the stocker X offset calculation unit 141 calculates the stocker X offset, which is the stocker offset in the X-axis direction, using the above equation (8). The stocker Y offset calculation unit 142 calculates the stocker Y offset, which is the stocker offset in the Y-axis direction, using the above equation (9). Further, the stocker Z offset calculation unit 143 calculates the stocker Z offset, which is the stocker offset in the Z-axis direction, using the above equation (10). In this way, the stocker X offset, the stocker Y offset, and the stocker Z offset can be calculated by using the above equations (8) to (10). Further, by calculating the stocker X offset, the stocker Y offset, and the stocker Z offset, the position of the stocker 74 can be corrected in three dimensions, so that even if an assembly error of the magazine 70 occurs, it can be gripped. The processing tool 6 accommodated in the stocker 74 can be appropriately gripped by the portion 42, and the processing tool 6 gripped by the gripping portion 42 can be appropriately accommodated in the stocker 74.

本実施形態では、偏心オフセット算出部82は、偏心オフセットを算出している。センサオフセット算出部85は、偏心オフセットに基づいて検出された第1基準点M_P1および第2基準点M_P2から、センサオフセットを算出している。ストッカーオフセット算出部86は、偏心オフセットに基づいて検出された第1基準点M_P1および第2基準点M_P2から、ストッカーオフセットを算出している。このことによって、仮に、把持部42が検出ツール7を適切に把持していない場合であっても、偏心オフセットを算出して、把持部42に把持された検出ツール7の向きを補正することで、第1基準点M_P1および第2基準点M_P2を適切に算出することができる。よって、より適切なセンサオフセットおよびストッカーオフセットを得ることができる。 In the present embodiment, the eccentric offset calculation unit 82 calculates the eccentric offset. The sensor offset calculation unit 85 calculates the sensor offset from the first reference point M_P1 and the second reference point M_P2 detected based on the eccentric offset. The stocker offset calculation unit 86 calculates the stocker offset from the first reference point M_P1 and the second reference point M_P2 detected based on the eccentric offset. As a result, even if the grip portion 42 does not properly grip the detection tool 7, the eccentric offset is calculated and the orientation of the detection tool 7 gripped by the grip portion 42 is corrected. , The first reference point M_P1 and the second reference point M_P2 can be appropriately calculated. Therefore, a more appropriate sensor offset and stocker offset can be obtained.

本実施形態では、図6に示すように、第1突起78aの上面の高さと、第2突起78bの上面の高さは、同じである。このことによって、第1突起78aの上面に位置する第1基準点M_P1のZ座標と、第2突起78bの上面に位置する第2基準点M_P2のZ座標は同じであるため、制御装置80の処理時間を短くすることができる。 In the present embodiment, as shown in FIG. 6, the height of the upper surface of the first protrusion 78a and the height of the upper surface of the second protrusion 78b are the same. As a result, the Z coordinate of the first reference point M_P1 located on the upper surface of the first protrusion 78a and the Z coordinate of the second reference point M_P2 located on the upper surface of the second protrusion 78b are the same, so that the control device 80 The processing time can be shortened.

本実施形態では、図5に示すように、ストッカー74、ツールセンサ76、第1突起78a、および、第2突起78bは、X軸方向に並んで配置されている。このことによって、平面視において、第1突起78aの第1基準点M_P1と、第2突起78bの第2基準点M_P2とを結ぶ直線上に、ストッカー74およびツールセンサ76が位置している。よって、第1基準点M_P1と、第2基準点M_P2の実際の位置から、ストッカー74およびツールセンサ76のそれぞれの実際の位置を算出し易い。 In the present embodiment, as shown in FIG. 5, the stocker 74, the tool sensor 76, the first protrusion 78a, and the second protrusion 78b are arranged side by side in the X-axis direction. As a result, the stocker 74 and the tool sensor 76 are located on a straight line connecting the first reference point M_P1 of the first protrusion 78a and the second reference point M_P2 of the second protrusion 78b in a plan view. Therefore, it is easy to calculate the actual positions of the stocker 74 and the tool sensor 76 from the actual positions of the first reference point M_P1 and the second reference point M_P2.

本実施形態では、平面視において、第1突起78aと第2突起78bとの間に、ストッカー74が配置されている。このことによって、例えば、ストッカー74が第1突起78aまたは第2突起78bから遠くに配置されているようなマガジンと比較して、第1突起78aの第1基準点M_P1と、第2突起78bの第2基準点M_P2のそれぞれの実際の位置から、ストッカー74の位置を精度よく算出することができる。 In the present embodiment, the stocker 74 is arranged between the first protrusion 78a and the second protrusion 78b in a plan view. This allows, for example, the first reference point M_P1 of the first protrusion 78a and the second protrusion 78b as compared to a magazine in which the stocker 74 is located farther from the first protrusion 78a or the second protrusion 78b. The position of the stocker 74 can be calculated accurately from each actual position of the second reference point M_P2.

7 検出ツール
10 本体
40 切削ヘッド
42 把持部
70 マガジン
72 マガジン本体
74 ストッカー
76 ツールセンサ
78a 第1突起
78b 第2突起
80 制御装置
81 記憶部
82 偏心オフセット算出部
83 第1基準点検出部
84 第2基準点検出部
85 センサオフセット算出部
86 ストッカーオフセット算出部
87 移動制御部
90 移動機構
100 切削加工機
7 Detection tool 10 Main body 40 Cutting head 42 Grip part 70 Magazine 72 Magazine main body 74 Stocker 76 Tool sensor 78a 1st protrusion 78b 2nd protrusion 80 Control device 81 Storage unit 82 Eccentricity offset calculation unit 83 1st reference point detection unit 84 2nd Reference point detection unit 85 Sensor offset calculation unit 86 Stocker offset calculation unit 87 Movement control unit 90 Movement mechanism 100 Cutting machine

Claims (11)

本体と、
加工ツールおよび検出ツールのうち何れか一方のツールを把持可能な把持部を有する切削ヘッドと、
マガジン本体と、前記加工ツールおよび前記検出ツールのうち何れか一方のツールが収容されるストッカーと、前記マガジン本体に設けられ、前記把持部に把持された前記加工ツールまたは前記検出ツールを検出するツールセンサと、前記マガジン本体の上面に設けられた第1突起および第2突起とを有し、前記本体内に設けられたマガジンと、
前記把持部を前記マガジンに対して相対的に3次元方向に移動させる移動機構と、
前記移動機構を制御する制御装置と、
を備え、
前記制御装置は、
前記把持部に把持された前記検出ツールを前記第1突起に接触させるように前記移動機構を制御することで、前記第1突起の上面の中心の点である第1基準点の実際の位置を検出する第1基準点検出部と、
前記把持部に把持された前記検出ツールを前記第2突起に接触させるように前記移動機構を制御することで、前記第2突起の上面の中心の点である第2基準点の実際の位置を検出する第2基準点検出部と、
前記第1基準点および前記第2基準点に基づいて、前記ツールセンサの設計上の位置に対する前記ツールセンサの実際の位置の補正値であるセンサオフセットを算出するセンサオフセット算出部と、
前記第1基準点および前記第2基準点に基づいて、前記ストッカーの設計上の位置に対する前記ストッカーの実際の位置の補正値であるストッカーオフセットを算出するストッカーオフセット算出部と、
前記センサオフセットおよび前記ストッカーオフセットに基づいて、前記移動機構を制御する移動制御部と、
を備えた、切削加工機。
With the main body
A cutting head having a grip portion capable of gripping either a machining tool or a detection tool,
A magazine body, a stocker in which one of the processing tool and the detection tool is housed, and a tool provided in the magazine body and gripped by the grip portion to detect the processing tool or the detection tool. A magazine having a sensor and a first protrusion and a second protrusion provided on the upper surface of the magazine body, and a magazine provided in the main body.
A moving mechanism that moves the grip portion in a three-dimensional direction relative to the magazine,
A control device that controls the movement mechanism and
With
The control device is
By controlling the moving mechanism so that the detection tool gripped by the grip portion comes into contact with the first protrusion, the actual position of the first reference point, which is the center point of the upper surface of the first protrusion, can be determined. The first reference point detector to detect and
By controlling the moving mechanism so that the detection tool gripped by the grip portion comes into contact with the second protrusion, the actual position of the second reference point, which is the center point of the upper surface of the second protrusion, can be determined. The second reference point detector to detect and
A sensor offset calculation unit that calculates a sensor offset that is a correction value of the actual position of the tool sensor with respect to the design position of the tool sensor based on the first reference point and the second reference point.
A stocker offset calculation unit that calculates a stocker offset that is a correction value of the actual position of the stocker with respect to the design position of the stocker based on the first reference point and the second reference point.
A movement control unit that controls the movement mechanism based on the sensor offset and the stocker offset.
A cutting machine equipped with.
前記第1基準点は、XYZ直交座標系の座標で表され、
前記第1基準点検出部は、
前記第1突起の外周面上の点である第1測定点を検出する第1測定点検出部と、
前記第1突起の外周面上の点であって、Y座標が前記第1測定点のY座標が同じであり、X座標が前記第1測定点のX座標とは異なる第2測定点を検出する第2測定点検出部と、
前記第1突起の外周面上の点であって、X座標が前記第1測定点のX座標と前記第2測定点のX座標の中点である第3測定点を検出する第3測定点検出部と、
前記第1突起の外周面上の点であって、X座標が前記第3測定点のX座標が同じであり、Y座標が前記第3測定点のY座標とは異なる第4測定点を検出する第4測定点検出部と、
前記第1測定点のX座標と、前記第2測定点のX座標との中点を前記第1基準点のX座標とする第1基準点X算出部と、
前記第3測定点のY座標と、前記第4測定点のY座標との中点を前記第1基準点のY座標とする第1基準点Y算出部と、
X座標が前記第1基準点のX座標であり、Y座標が前記第1基準点のY座標であるような前記第1突起の上面の位置に、前記把持部に把持された前記検出ツールが接触するように前記移動機構を制御することで、前記第1基準点のZ座標を検出する第1基準点Z検出部と、
を備えた、請求項1に記載された切削加工機。
The first reference point is represented by the coordinates of the XYZ Cartesian coordinate system.
The first reference point detection unit is
A first measurement point detection unit that detects a first measurement point, which is a point on the outer peripheral surface of the first protrusion,
A second measurement point that is a point on the outer peripheral surface of the first protrusion, has the same Y coordinate as the Y coordinate of the first measurement point, and has an X coordinate different from the X coordinate of the first measurement point is detected. 2nd measurement point detector and
A third measurement inspection that detects a third measurement point that is a point on the outer peripheral surface of the first protrusion and whose X coordinate is the midpoint between the X coordinate of the first measurement point and the X coordinate of the second measurement point. With the coordinates
Detects a fourth measurement point that is a point on the outer peripheral surface of the first protrusion, whose X coordinate is the same as the X coordinate of the third measurement point, and whose Y coordinate is different from the Y coordinate of the third measurement point. 4th measurement point detector and
A first reference point X calculation unit that sets the midpoint between the X coordinate of the first measurement point and the X coordinate of the second measurement point as the X coordinate of the first reference point.
A first reference point Y calculation unit that uses the midpoint between the Y coordinate of the third measurement point and the Y coordinate of the fourth measurement point as the Y coordinate of the first reference point.
The detection tool gripped by the grip portion is located at a position on the upper surface of the first protrusion such that the X coordinate is the X coordinate of the first reference point and the Y coordinate is the Y coordinate of the first reference point. A first reference point Z detection unit that detects the Z coordinate of the first reference point by controlling the movement mechanism so as to come into contact with each other.
The cutting machine according to claim 1.
前記第2基準点は、XYZ直交座標系の座標で表され、
前記第2基準点検出部は、
前記第2突起の外周面上の点である第5測定点を検出する第5測定点検出部と、
前記第2突起の外周面上の点であって、Y座標が前記第5測定点のY座標が同じであり、X座標が前記第5測定点のX座標とは異なる第6測定点を検出する第6測定点検出部と、
前記第2突起の外周面上の点であって、X座標が前記第5測定点のX座標と前記第6測定点のX座標の中点である第7測定点を検出する第7測定点検出部と、
前記第2突起の外周面上の点であって、X座標が前記第7測定点のX座標が同じであり、Y座標が前記第7測定点のY座標とは異なる第8測定点を検出する第8測定点検出部と、
前記第5測定点のX座標と、前記第6測定点のX座標との中点を前記第2基準点のX座標とする第2基準点X算出部と、
前記第7測定点のY座標と、前記第8測定点のY座標との中点を前記第2基準点のY座標とする第2基準点Y算出部と、
X座標が前記第2基準点のX座標であり、Y座標が前記第2基準点のY座標であるような前記第2突起の上面の位置に、前記把持部に把持された前記検出ツールが接触するように前記移動機構を制御することで、前記第2基準点のZ座標を検出する第2基準点Z検出部と、
を備えた、請求項1または2に記載された切削加工機。
The second reference point is represented by the coordinates of the XYZ Cartesian coordinate system.
The second reference point detection unit is
A fifth measurement point detection unit that detects a fifth measurement point, which is a point on the outer peripheral surface of the second protrusion,
A sixth measurement point is detected, which is a point on the outer peripheral surface of the second protrusion, whose Y coordinate is the same as the Y coordinate of the fifth measurement point, and whose X coordinate is different from the X coordinate of the fifth measurement point. 6th measurement point detector and
A seventh measurement inspection that detects a seventh measurement point that is a point on the outer peripheral surface of the second protrusion and whose X coordinate is the midpoint between the X coordinate of the fifth measurement point and the X coordinate of the sixth measurement point. With the coordinates
Detects an eighth measurement point that is a point on the outer peripheral surface of the second protrusion, whose X coordinate is the same as the X coordinate of the seventh measurement point, and whose Y coordinate is different from the Y coordinate of the seventh measurement point. Eighth measurement point detector and
A second reference point X calculation unit that sets the midpoint between the X coordinate of the fifth measurement point and the X coordinate of the sixth measurement point as the X coordinate of the second reference point.
A second reference point Y calculation unit that sets the midpoint between the Y coordinate of the seventh measurement point and the Y coordinate of the eighth measurement point as the Y coordinate of the second reference point.
The detection tool gripped by the grip portion is located at a position on the upper surface of the second protrusion such that the X coordinate is the X coordinate of the second reference point and the Y coordinate is the Y coordinate of the second reference point. A second reference point Z detection unit that detects the Z coordinate of the second reference point by controlling the movement mechanism so as to come into contact with each other.
The cutting machine according to claim 1 or 2.
前記第1基準点および前記第2基準点は、それぞれXYZ直交座標系の座標で表され、
前記センサオフセットは、X軸方向の前記センサオフセットであるセンサXオフセットと、Y軸方向の前記センサオフセットであるセンサYオフセットと、Z軸方向の前記センサオフセットであるセンサZオフセットとを有し、
前記制御装置は、前記第1基準点の設計上のX座標、Y座標、および、前記ツールセンサの上面の設計上のZ座標がそれぞれ記憶された記憶部を備え、
前記センサオフセット算出部は、
前記センサXオフセットをE1x、前記第1基準点のX座標をM_P1x、前記第1基準点の設計上のX座標をDM_P1xとしたとき、
E1x=M_P1x−DM_P1x
で表される式によって、前記センサXオフセットを算出するセンサXオフセット算出部と、
前記センサYオフセットをE1y、前記第1基準点のY座標をM_P1y、前記第1基準点の設計上のY座標をDM_P1yとしたとき、
E1y=M_P1y−DM_P1y
で表される式によって、前記センサYオフセットを算出するセンサYオフセット算出部と、
前記把持部を前記ツールセンサに上方から接触させることで、前記ツールセンサの実際のZ座標を検出し、前記センサZオフセットをE1z、前記ツールセンサの実際のZ座標をTSz、前記ツールセンサの上面の設計上のZ座標をDTSzとしたとき、
E1z=TSz−DTSz
で表される式によって、前記センサZオフセットを算出するセンサZオフセット算出部と、
を備えた、請求項1から3までの何れか一つに記載された切削加工機。
The first reference point and the second reference point are each represented by the coordinates of the XYZ Cartesian coordinate system.
The sensor offset includes a sensor X offset which is the sensor offset in the X-axis direction, a sensor Y offset which is the sensor offset in the Y-axis direction, and a sensor Z offset which is the sensor offset in the Z-axis direction.
The control device includes a storage unit in which the design X coordinate and Y coordinate of the first reference point and the design Z coordinate of the upper surface of the tool sensor are stored.
The sensor offset calculation unit
When the sensor X offset is E1x, the X coordinate of the first reference point is M_P1x, and the design X coordinate of the first reference point is DM_P1x.
E1x = M_P1x-DM_P1x
The sensor X offset calculation unit that calculates the sensor X offset by the formula represented by
When the sensor Y offset is E1y, the Y coordinate of the first reference point is M_P1y, and the design Y coordinate of the first reference point is DM_P1y.
E1y = M_P1y-DM_P1y
The sensor Y offset calculation unit that calculates the sensor Y offset by the formula represented by
By bringing the grip portion into contact with the tool sensor from above, the actual Z coordinate of the tool sensor is detected, the sensor Z offset is E1z, the actual Z coordinate of the tool sensor is TSz, and the upper surface of the tool sensor. When the design Z coordinate of is DTSz,
E1z = TSz-DTZz
The sensor Z offset calculation unit that calculates the sensor Z offset by the formula represented by
The cutting machine according to any one of claims 1 to 3, further comprising.
前記ストッカーオフセットは、X軸方向の前記ストッカーオフセットであるストッカーXオフセットと、Y軸方向の前記ストッカーオフセットであるストッカーYオフセットと、Z軸方向の前記ストッカーオフセットであるストッカーZオフセットとを有し、
前記記憶部には、前記第1基準点から前記ストッカーまでの距離と、前記第2基準点の設計上のX座標が記憶され、
前記ストッカーオフセット算出部は、
前記ストッカーXオフセットをE2x、前記第2基準点のX座標をM_P2x、前記第2基準点の設計上のX座標をDM_P2x、前記第1基準点から前記ストッカーまでの距離をDとしたとき、
E2x=(M_P1x+((M_P2x−M_P1x)/(DM_P2x−DM_P1x))×D)−(DM_P1x+D)
で表される式によって、前記ストッカーXオフセットを算出するストッカーXオフセット算出部と、
前記ストッカーYオフセットをE2y、前記第2基準点のY座標をM_P2yとしたとき、
E2y=(M_P1y+((M_P2y−M_P1y)/(M_P2x−M_P1x))×D)−DM_P1y
で表される式によって、前記ストッカーYオフセットを算出するストッカーYオフセット算出部と、
前記ストッカーZオフセットをE2z、前記第2基準点のZ座標をM_P2zとしたとき、
E2z=(M_P1z+((M_P2z−M_P1z)/(M_P2x−M_P1x))×D)−DM_P1z
で表される式によって、前記ストッカーZオフセットを算出するストッカーZオフセット算出部と、
を備えた、請求項4に記載された切削加工機。
The stocker offset includes a stocker X offset which is the stocker offset in the X-axis direction, a stocker Y offset which is the stocker offset in the Y-axis direction, and a stocker Z offset which is the stocker offset in the Z-axis direction.
In the storage unit, the distance from the first reference point to the stocker and the design X coordinate of the second reference point are stored.
The stocker offset calculation unit
When the stocker X offset is E2x, the X coordinate of the second reference point is M_P2x, the design X coordinate of the second reference point is DM_P2x, and the distance from the first reference point to the stocker is D.
E2x = (M_P1x + ((M_P2x-M_P1x) / (DM_P2x-DM_P1x)) x D)-(DM_P1x + D)
The stocker X offset calculation unit that calculates the stocker X offset by the formula represented by
When the stocker Y offset is E2y and the Y coordinate of the second reference point is M_P2y,
E2y = (M_P1y + ((M_P2y-M_P1y) / (M_P2x-M_P1x)) x D) -DM_P1y
The stocker Y offset calculation unit that calculates the stocker Y offset by the formula represented by
When the stocker Z offset is E2z and the Z coordinate of the second reference point is M_P2z,
E2z = (M_P1z + ((M_P2z-M_P1z) / (M_P2x-M_P1x)) x D) -DM_P1z
The stocker Z offset calculation unit that calculates the stocker Z offset by the formula represented by
4. The cutting machine according to claim 4.
前記切削ヘッドは、回転軸を中心に前記把持部を回転させるスピンドルを有し、
前記スピンドルには、前記把持部を回転させる際の基準の位置である回転基準位置が設定されており、
前記制御装置は、前記回転基準位置を基準にして回転角度が0°となるように前記スピンドルを回転させたときにおける前記把持部に把持された前記検出ツールと、前記回転基準位置を基準にして回転角度が180°となるように前記スピンドルを回転させたときにおける前記把持部に把持された前記検出ツールと、の振れ幅である偏心オフセットを算出する偏心オフセット算出部を備え、
前記センサオフセット算出部は、前記偏心オフセットに基づいて、前記センサオフセットを算出し、
前記ストッカーオフセット算出部は、前記偏心オフセットに基づいて、前記ストッカーオフセットを算出する、請求項1から5までの何れか一つに記載された切削加工機。
The cutting head has a spindle that rotates the grip portion about a rotation axis.
A rotation reference position, which is a reference position when rotating the grip portion, is set on the spindle.
The control device refers to the detection tool gripped by the grip portion when the spindle is rotated so that the rotation angle becomes 0 ° with reference to the rotation reference position, and the rotation reference position as a reference. It is provided with the detection tool gripped by the grip portion when the spindle is rotated so that the rotation angle is 180 °, and an eccentric offset calculation unit for calculating the eccentric offset which is the swing width.
The sensor offset calculation unit calculates the sensor offset based on the eccentric offset.
The cutting machine according to any one of claims 1 to 5, wherein the stocker offset calculation unit calculates the stocker offset based on the eccentric offset.
前記偏心オフセットは、XYZ直交座標系の座標で表され、
前記偏心オフセットは、X軸方向の前記偏心オフセットである偏心Xオフセットと、Y軸方向の前記偏心オフセットである偏心Yオフセットとを有し、
前記偏心オフセット算出部は、
前記回転基準位置を基準にして、前記スピンドルの回転角度が0°となるように前記スピンドルを回転させる第1スピンドル回転部と、
前記スピンドルの回転角度が0°のとき、前記第1突起の外周面上の点であって、X軸方向における端に位置する第9測定点のX座標である第1偏心X座標を検出する第1角度X検出部と、
前記スピンドルの回転角度が0°のとき、前記第1突起の外周面上の点であって、Y軸方向における端に位置する第10測定点のY座標である第1偏心Y座標を検出する第1角度Y検出部と、
前記回転基準位置を基準にして、前記スピンドルの回転角度が180°となるように前記スピンドルを回転させる第2スピンドル回転部と、
前記スピンドルの回転角度が180°のとき、前記第9測定点のX座標である第2偏心X座標を検出する第2角度X検出部と、
前記スピンドルの回転角度が180°のとき、前記第10測定点のY座標である第2偏心Y座標を検出する第2角度Y検出部と、
前記第1偏心X座標と、前記第2偏心X座標との差を前記偏心Xオフセットとする偏心Xオフセット算出部と、
前記第1偏心Y座標と、前記第2偏心Y座標との差を前記偏心Yオフセットとする偏心Yオフセット算出部と、
を備えた、請求項6に記載された切削加工機。
The eccentric offset is represented by the coordinates of the XYZ Cartesian coordinate system.
The eccentric offset has an eccentric X offset which is the eccentric offset in the X-axis direction and an eccentric Y offset which is the eccentric offset in the Y-axis direction.
The eccentric offset calculation unit
A first spindle rotating portion that rotates the spindle so that the rotation angle of the spindle becomes 0 ° with reference to the rotation reference position.
When the rotation angle of the spindle is 0 °, the first eccentric X coordinate, which is a point on the outer peripheral surface of the first protrusion and is the X coordinate of the ninth measurement point located at the end in the X-axis direction, is detected. First angle X detector and
When the rotation angle of the spindle is 0 °, the first eccentric Y coordinate, which is the Y coordinate of the tenth measurement point located at the end in the Y axis direction, which is a point on the outer peripheral surface of the first protrusion, is detected. 1st angle Y detector and
A second spindle rotating portion that rotates the spindle so that the rotation angle of the spindle is 180 ° with reference to the rotation reference position.
When the rotation angle of the spindle is 180 °, the second angle X detection unit that detects the second eccentric X coordinate, which is the X coordinate of the ninth measurement point,
When the rotation angle of the spindle is 180 °, the second angle Y detection unit that detects the second eccentric Y coordinate, which is the Y coordinate of the tenth measurement point,
An eccentric X offset calculation unit that uses the difference between the first eccentric X coordinate and the second eccentric X coordinate as the eccentric X offset.
An eccentric Y offset calculation unit that uses the difference between the first eccentric Y coordinate and the second eccentric Y coordinate as the eccentric Y offset.
6. The cutting machine according to claim 6.
前記第1突起の上面の高さと、前記第2突起の上面の高さとは同じである、請求項1から7までの何れか一つに記載された切削加工機。 The cutting machine according to any one of claims 1 to 7, wherein the height of the upper surface of the first protrusion and the height of the upper surface of the second protrusion are the same. 前記本体に対する前記マガジンの位置は、XYZ直交座標系で表され、
前記ストッカー、前記ツールセンサ、前記第1突起、および、前記第2突起は、それぞれX軸方向に並んで配置されている、請求項1から8までの何れか一つに記載された切削加工機。
The position of the magazine with respect to the main body is represented by the XYZ Cartesian coordinate system.
The cutting machine according to any one of claims 1 to 8, wherein the stocker, the tool sensor, the first protrusion, and the second protrusion are arranged side by side in the X-axis direction. ..
平面視において、前記第1突起と前記第2突起との間に前記ストッカーが配置されている、請求項1から9までの何れか一つに記載された切削加工機。 The cutting machine according to any one of claims 1 to 9, wherein the stocker is arranged between the first protrusion and the second protrusion in a plan view. 平面視において、前記第1突起の形状、および、前記第2突起の形状は、それぞれ円形状である、請求項1から10までの何れか一つに記載された切削加工機。 The cutting machine according to any one of claims 1 to 10, wherein the shape of the first protrusion and the shape of the second protrusion are circular in a plan view.
JP2016183913A 2016-09-21 2016-09-21 Cutting machine Active JP6811574B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2016183913A JP6811574B2 (en) 2016-09-21 2016-09-21 Cutting machine
US15/709,545 US10259087B2 (en) 2016-09-21 2017-09-20 Cutting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016183913A JP6811574B2 (en) 2016-09-21 2016-09-21 Cutting machine

Publications (2)

Publication Number Publication Date
JP2018049423A JP2018049423A (en) 2018-03-29
JP6811574B2 true JP6811574B2 (en) 2021-01-13

Family

ID=61766367

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016183913A Active JP6811574B2 (en) 2016-09-21 2016-09-21 Cutting machine

Country Status (1)

Country Link
JP (1) JP6811574B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006349388A (en) * 2005-06-13 2006-12-28 Roland Dg Corp Measuring method and measuring instrument for rotation center
JP6182320B2 (en) * 2013-01-30 2017-08-16 ローランドディー.ジー.株式会社 How to detect hole center coordinates

Also Published As

Publication number Publication date
JP2018049423A (en) 2018-03-29

Similar Documents

Publication Publication Date Title
US10259087B2 (en) Cutting device
JP5270299B2 (en) Combined lathe
JP2014176940A (en) Robot system, method for controlling robot and method for manufacturing workpiece
EP2865494A1 (en) Robotic system and method for manufacturing goods
JPWO2013027283A1 (en) NC machine tool system
JP5481919B2 (en) Workpiece processing apparatus and control method thereof
JP5834480B2 (en) Robot hand and robot
JP6746990B2 (en) Robot controller and robot system
KR20170091734A (en) Robot
JP6490154B2 (en) Wire discharge system and relative position calculation method
JP5856212B2 (en) Jig and processing system for supporting a workpiece rotatably with respect to a tool of a machine tool
JP2012187663A (en) Production apparatus
JP6679422B2 (en) Cutting machine
JP2014040001A (en) Workpiece processing device and control method for the same
WO2014123054A1 (en) Robot control device and robot control method
JP3969664B2 (en) Numerically controlled machine tool and machining program check method
CN109571136B (en) Control device and machine tool
US20130277169A1 (en) Machine tool
JP6811574B2 (en) Cutting machine
JP6862133B2 (en) Cutting machine
JP3210877U (en) Five-axis portal manipulator
JP4725486B2 (en) Welding robot
JP4359249B2 (en) Work position determining apparatus and work position determining method
US20190193277A1 (en) Robot and method of operating the same
JP7239394B2 (en) Industrial machinery

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190828

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201215

R150 Certificate of patent or registration of utility model

Ref document number: 6811574

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250