JP6672748B2 - Control device, machine tool, control method, and computer program - Google Patents

Control device, machine tool, control method, and computer program Download PDF

Info

Publication number
JP6672748B2
JP6672748B2 JP2015233887A JP2015233887A JP6672748B2 JP 6672748 B2 JP6672748 B2 JP 6672748B2 JP 2015233887 A JP2015233887 A JP 2015233887A JP 2015233887 A JP2015233887 A JP 2015233887A JP 6672748 B2 JP6672748 B2 JP 6672748B2
Authority
JP
Japan
Prior art keywords
path
point
intersection
command
evaluation
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
JP2015233887A
Other languages
Japanese (ja)
Other versions
JP2017102594A (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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2015233887A priority Critical patent/JP6672748B2/en
Priority to CN201610908151.6A priority patent/CN106814692B/en
Publication of JP2017102594A publication Critical patent/JP2017102594A/en
Application granted granted Critical
Publication of JP6672748B2 publication Critical patent/JP6672748B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/19Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by positioning or contouring control systems, e.g. to control position from one programmed point to another or to control movement along a programmed continuous path

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)

Description

本発明は、工具を装着する主軸の移動を制御する制御装置、工作機械、制御方法及びコンピュータプログラムに関する。   The present invention relates to a control device, a machine tool, a control method, and a computer program for controlling movement of a spindle on which a tool is mounted.

工作機械は、工具を装着する主軸の移動を制御する制御装置を備える。制御装置は、主軸の位置を指示する複数の指令点を設定し、加工経路を設定する。主軸に装着した工具が3次元の曲面をワークに形成する場合、制御装置は指令点間の微小線分が連続した複数の曲線を演算し、生成する。   The machine tool includes a control device that controls movement of a spindle on which a tool is mounted. The control device sets a plurality of command points indicating the position of the spindle, and sets a machining path. When the tool mounted on the spindle forms a three-dimensional curved surface on the work, the control device calculates and generates a plurality of curves in which minute line segments between the command points are continuous.

例えば前後方向及び左右方向に平行な面(水平面)上に複数の曲線を生成する。複数の曲線は前後方向又は左右方向に並ぶ。制御装置は各曲線に上下方向の位置を設定する。また制御装置は、微小線分の繋ぎ目にて尖った部分が表れるので、スプライン曲線、ベジェ曲線等の滑らかな曲線に基づいて、生成した曲線を補間する。設定された各上下位置にて、補間した曲線に沿って主軸は移動し、ワークを加工する(例えば特許文献1参照)。   For example, a plurality of curves are generated on a plane (horizontal plane) parallel to the front-back direction and the left-right direction. The plurality of curves are arranged in the front-back direction or the left-right direction. The control device sets a vertical position on each curve. In addition, the control device interpolates the generated curve based on a smooth curve such as a spline curve or a Bezier curve because a sharp portion appears at the joint of the minute line segments. At each of the set upper and lower positions, the spindle moves along the interpolated curve to process the workpiece (for example, see Patent Document 1).

特許第3466111号公報Japanese Patent No. 3466111

しかし上述した補間を行っても、隣り合う曲線の傾きの差、制御装置での演算にて発生する量子化誤差等によって、ワーク表面に鱗状の模様が表れる。特許文献1は指令点を修正することなく、指令点間に滑らかな線となるように指令点を挿入している。従って、指令点そのものが誤っているにも関わらず、指令点を通ることになり、上述したワーク表面に鱗状の模様が表れるという問題があった。   However, even when the above-described interpolation is performed, a scale-like pattern appears on the work surface due to a difference between inclinations of adjacent curves, a quantization error generated by a calculation in the control device, and the like. Patent Literature 1 inserts a command point so as to form a smooth line between the command points without correcting the command points. Therefore, although the command point itself is incorrect, the command point passes through the command point, and there is a problem that a scaly pattern appears on the work surface described above.

本発明は斯かる事情に鑑みてなされたものであり、ワークに滑らかな曲面を形成することができる制御装置、工作機械、制御方法及びコンピュータプログラムを提供することを目的とする。   The present invention has been made in view of such circumstances, and has as its object to provide a control device, a machine tool, a control method, and a computer program capable of forming a smooth curved surface on a work.

本発明に係る制御装置は、主軸の位置を指示する複数の指令点に基づいた加工経路を設定し、前記加工経路に基づいて、前記主軸の移動を制御する制御装置において、前記加工経路は環状をなし、前記加工経路に対して垂直になるように評価断面を設定する評価断面設定部と、該評価断面設定部が設定した評価断面及び前記加工経路の交点を演算する演算部と、該演算部が演算した交点の位置を修正する交点位置修正部と、該交点位置修正部が修正した交点に基づいて、前記加工経路に交差する方向における前記指令点の位置を修正する指令点位置修正部とを備えることを特徴とする。   A control device according to the present invention is a control device that sets a machining path based on a plurality of command points indicating a position of a spindle, and controls movement of the spindle based on the machining path, wherein the machining path is annular. An evaluation section setting unit that sets an evaluation section so as to be perpendicular to the processing path; an operation unit that calculates an intersection of the evaluation section set by the evaluation section setting unit and the processing path; An intersection position correction unit that corrects the position of the intersection calculated by the unit, and a command point position correction unit that corrects the position of the command point in a direction intersecting the machining path based on the intersection corrected by the intersection position correction unit. And characterized in that:

本発明に係る制御装置は、前記加工経路は、環状をなす第1経路部と、該第1経路部の内側に位置し、環状をなす第2経路部とを有し、前記評価断面設定部は、前記第1経路部上に第1基準点を設定する第1基準点設定部と、前記第2経路部上であって、前記第1基準点に最も近い位置に第2基準点を設定する第2基準点設定部と、前記第1基準点及び第2基準点に基づいて、前記評価断面を演算する評価断面演算部とを有することを特徴とする。   The control device according to the present invention is characterized in that the machining path has a first path part having an annular shape and a second path part located inside the first path part and having an annular shape. Sets a first reference point setting unit that sets a first reference point on the first path unit; and sets a second reference point at a position on the second path unit that is closest to the first reference point. A second reference point setting unit for calculating the evaluation cross section based on the first reference point and the second reference point.

本発明に係る制御装置は、前記加工経路は、前記第1経路部及び第2経路部を含む複数の経路部を含み、前記複数の経路部にて、前記第1経路部は最も外側に位置し、前記複数の経路部にて、前記第2経路部は最も内側に位置することを特徴とする。   In the control device according to the aspect of the invention, the processing path includes a plurality of path sections including the first path section and the second path section, and the first path section is located at an outermost position in the plurality of path sections. The second path section is located at the innermost side of the plurality of path sections.

本発明に係る制御装置は、前記加工経路は渦巻き状をなし、前記複数の指令点は、前記加工経路の始点に位置する始点指令点及び前記加工経路の終点に位置する終点指令点を含み、前記始点指令点と前記始点指令点とは異なる第1の前記指令点との間に前記第1経路部又は第2経路部の一方を設定する始点側経路部設定部と、前記終点指令点と前記終点指令点とは異なる第2の前記指令点との間に前記第1経路部又は第2経路部の他方を設定する終点側経路部設定部とを備えることを特徴とする。   The control device according to the present invention, wherein the machining path has a spiral shape, the plurality of command points include a start point command point located at a start point of the machining path and an end point command point located at an end point of the machining path, A starting point side path portion setting section that sets one of the first path section or the second path section between the first command point and the first command point different from the start point command point; and the end point command point. An end point side path section setting section that sets the other of the first path section and the second path section between the second command point and the second command point different from the end point command point.

本発明に係る工作機械は、前述した何れかの制御装置と、前記主軸とを備えることを特徴とする。   A machine tool according to the present invention includes any one of the control devices described above and the spindle.

本発明に係る制御方法は、主軸の位置を指示する複数の指令点に基づいた加工経路を設定し、前記加工経路に基づいて、前記主軸の移動を制御する制御方法において、前記加工経路は環状をなし、前記加工経路に対して垂直になるように評価断面を設定し、設定した評価断面及び前記加工経路の交点を演算し、演算した交点の位置を修正し、修正した交点に基づいて、前記加工経路に交差する方向における前記指令点の位置を修正することを特徴とする。   The control method according to the present invention is a control method for setting a machining path based on a plurality of command points indicating a position of a spindle, and controlling movement of the spindle based on the machining path, wherein the machining path is annular. The evaluation section is set so as to be perpendicular to the machining path, the intersection of the set evaluation section and the machining path is calculated, the position of the calculated intersection is corrected, and based on the corrected intersection, The position of the command point in a direction intersecting the machining path is corrected.

本発明に係るコンピュータプログラムは、加工プログラムに従って、主軸の位置を指示する複数の指令点に基づいた加工経路を設定し、前記加工経路に基づいて、前記主軸の移動を制御する制御装置で実行可能なコンピュータプログラムであって、前記加工経路は環状をなし、前記制御装置を、前記加工経路に対して垂直になるように評価断面を設定する評価断面設定部、該評価断面設定部が設定した評価断面及び前記加工経路の交点を演算する演算部、該演算部が演算した交点の位置を修正する交点位置修正部、及び該交点位置修正部が修正した交点に基づいて、前記加工経路に交差する方向における前記指令点の位置を修正する指令点位置修正部として機能させることを特徴とする。   The computer program according to the present invention can be executed by a control device that sets a machining path based on a plurality of command points indicating the position of the spindle according to the machining program and controls the movement of the spindle based on the machining path. A computer program, wherein the machining path has an annular shape, and the control device sets an evaluation section to be perpendicular to the machining path, an evaluation section setting unit, and an evaluation set by the evaluation section setting unit. A computing unit that computes an intersection of the cross section and the machining path, an intersection position modifying unit that corrects the position of the intersection computed by the computing unit, and an intersection that is modified by the intersection position modifying unit. It is characterized by functioning as a command point position correction unit for correcting the position of the command point in the direction.

本発明においては、環状の加工経路に対して垂直になるように評価断面を設定し、評価断面と加工経路の交点の位置を修正し、修正した交点の位置に基づいて、前記加工経路に交差する方向における指令点の位置を修正する。   In the present invention, the evaluation section is set so as to be perpendicular to the annular processing path, the position of the intersection of the evaluation section and the processing path is corrected, and based on the corrected position of the intersection, the evaluation section intersects with the processing path. Correct the position of the command point in the direction of

本発明においては、外周側の第1経路部及び内周側の第2経路部に第1基準点及び第2基準点をそれぞれ設定する。第2基準点は第1基準点に最も近い位置にある。第1基準点及び第2基準点が評価断面上に位置するように、評価断面を設定することによって、評価断面は加工経路に対して略垂直になる。   In the present invention, a first reference point and a second reference point are set in the first path portion on the outer peripheral side and the second path portion on the inner peripheral side, respectively. The second reference point is located closest to the first reference point. By setting the evaluation section so that the first reference point and the second reference point are located on the evaluation section, the evaluation section becomes substantially perpendicular to the machining path.

本発明においては、第1経路部が最外周側に位置し、第2経路部が最内周側に位置することによって、評価断面同士が交差することを防止できる。   In the present invention, since the first path portion is located on the outermost peripheral side and the second path portion is located on the innermost peripheral side, it is possible to prevent the evaluation cross sections from intersecting with each other.

本発明においては、第1経路部又は第2経路部の一方が加工経路の始点側に位置し、他方が加工経路の終点側に位置する。渦巻き状の加工経路の中心部に始点が位置する場合、第1経路部は終点側に位置し、第2経路部は始点側に位置する。加工経路の中心部に終点が位置する場合、第2経路部は終点側に位置し、第1経路部は始点側に位置する。   In the present invention, one of the first path portion and the second path portion is located on the starting point side of the machining path, and the other is located on the end point side of the machining path. When the starting point is located at the center of the spiral machining path, the first path section is located on the end point side, and the second path section is located on the starting point side. When the end point is located at the center of the machining path, the second path section is located on the end point side, and the first path section is located on the start point side.

本発明に係る制御装置、工作機械、制御方法及びコンピュータプログラムにあっては、環状の加工経路に対して垂直になるように評価断面を設定し、評価断面と加工経路の交点の位置を修正し、修正した交点の位置に基づいて、前記加工経路に交差する方向における指令点の位置を修正する。環状の加工経路に対して、加工経路の中心から放射状に延びるように、複数の評価断面を設定した場合、評価断面の密度が高い部分と低い部分とが発生し、指令点に対する修正精度が低下することがある。本発明においては、評価断面を加工経路に対して垂直にすることによって、評価断面の密度に差が生じたとしても、指令点に対する修正精度の低下を防止することができる。   In the control device, the machine tool, the control method, and the computer program according to the present invention, the evaluation section is set to be perpendicular to the annular processing path, and the position of the intersection of the evaluation section and the processing path is corrected. And correcting the position of the command point in the direction intersecting the machining path based on the corrected position of the intersection. When a plurality of evaluation sections are set so as to extend radially from the center of the processing path with respect to the annular processing path, there are portions where the density of the evaluation section is high and low, and the correction accuracy for the command point is reduced. May be. In the present invention, by making the evaluation section perpendicular to the machining path, even if a difference occurs in the density of the evaluation section, it is possible to prevent a decrease in correction accuracy for the command point.

工作機械を略示する斜視図である。FIG. 2 is a perspective view schematically showing a machine tool. 制御装置の構成を略示するブロック図である。FIG. 2 is a block diagram schematically illustrating a configuration of a control device. ワークに対する加工経路及び評価断面を略示する平面図である。FIG. 3 is a plan view schematically showing a processing path and an evaluation cross section for a work. ワークに対する評価断面を略示する斜視図である。It is a perspective view which briefly shows the evaluation cross section with respect to a workpiece. 制御装置による加工経路設定処理を説明するフローチャートである。5 is a flowchart illustrating a processing path setting process performed by a control device. 最外周/最内周演算処理を説明するフローチャートである。It is a flowchart explaining the outermost / innermost calculation processing. 渦巻き状に外周側から内周側に移動する主軸の加工経路を略示する模式図である。It is a schematic diagram which roughly shows the machining path | route of the main shaft which moves from an outer peripheral side to an inner peripheral side in a spiral shape. 渦巻き状に内周側から外周側に移動する主軸の加工経路を略示する模式図である。It is a schematic diagram which roughly shows the machining path | route of the main shaft which moves from an inner peripheral side to an outer peripheral side in a spiral shape. 評価断面設定処理を説明するフローチャートである。It is a flowchart explaining an evaluation cross section setting process. 評価断面設定処理を説明する模式図である。It is a schematic diagram explaining an evaluation cross section setting process. 指令点と、評価断面及び加工経路の交点とを略示する模式図である。FIG. 4 is a schematic diagram schematically showing a command point, an intersection of an evaluation section and a machining path. 交点テーブルの一例を示す概念図である。It is a conceptual diagram showing an example of an intersection table. 評価断面上における交点位置の第1の修正方法を説明する説明図である。FIG. 9 is an explanatory diagram illustrating a first correction method of an intersection point on an evaluation section. 評価断面上における交点位置の第2の修正方法を説明する説明図である。FIG. 9 is an explanatory diagram illustrating a second method of correcting the intersection point on the evaluation section. 指令点の修正方法を説明する説明図である。FIG. 9 is an explanatory diagram illustrating a method of correcting a command point. 指令点位置修正処理を説明するフローチャートである。It is a flowchart explaining a command point position correction process.

以下本発明を実施の形態に係る工作機械を示す図面に基づいて説明する。以下の説明では図において矢印で示す上下、左右及び前後を使用する。図1は工作機械を略示する斜視図である。   Hereinafter, the present invention will be described with reference to the drawings showing a machine tool according to an embodiment. In the following description, upper and lower, right and left, and front and rear indicated by arrows in the drawings will be used. FIG. 1 is a perspective view schematically showing a machine tool.

工作機械100は前後に延びた矩形の基台1を備える。基台1上部の前側にワークを保持するワーク保持部3が設けてある。ワーク保持部3は左右方向を軸方向としたA軸及び上下方向を軸方向としたC軸回りに回転可能である。   The machine tool 100 includes a rectangular base 1 extending forward and backward. A work holding part 3 for holding a work is provided on the front side of the upper portion of the base 1. The work holding unit 3 is rotatable around an A-axis whose axial direction is the horizontal direction and a C-axis whose axial direction is the vertical direction.

基台1上部の後側に後述するコラム4を支持する為の支持台2が設けてある。支持台2上部に、移動板16を前後方向に移動するY軸方向移動機構10が設けてある。Y軸方向移動機構10は、前後に延びた二つのレール11と、Y軸螺子軸12と、Y軸モータ13と、ベアリング14とを備える。   A support 2 for supporting a column 4 described later is provided on the rear side of the upper portion of the base 1. A Y-axis direction moving mechanism 10 that moves the moving plate 16 in the front-rear direction is provided above the support base 2. The Y-axis direction moving mechanism 10 includes two rails 11 extending forward and backward, a Y-axis screw shaft 12, a Y-axis motor 13, and a bearing 14.

レール11は支持台2上部の左右夫々に設けてある。Y軸螺子軸12は前後に延び、二つのレール11の間に設けてある。Y軸螺子軸12の前端部及び中途部夫々にベアリング14が設けてある。なお中途部に設けたベアリングの図示は省略する。Y軸モータ13はY軸螺子軸12の後端部に連結している。   The rails 11 are provided on the left and right of the upper portion of the support 2. The Y-axis screw shaft 12 extends back and forth and is provided between the two rails 11. A bearing 14 is provided at each of a front end portion and an intermediate portion of the Y-axis screw shaft 12. The illustration of the bearing provided in the middle part is omitted. The Y-axis motor 13 is connected to the rear end of the Y-axis screw shaft 12.

Y軸螺子軸12には転動体(図示略)を介してナット(図示略)が螺合している。転動体は例えばボールである。各レール11に複数の摺動子15が摺動可能に設けてある。ナット及び摺動子15の上部に移動板16が連結している。移動板16は水平方向に延びる。Y軸モータ13の回転によってY軸螺子軸12は回転し、ナットは前後方向に移動し、移動板16は前後方向に移動する。   A nut (not shown) is screwed to the Y-axis screw shaft 12 via a rolling element (not shown). The rolling element is, for example, a ball. A plurality of sliders 15 are slidably provided on each rail 11. The moving plate 16 is connected to the upper part of the nut and the slider 15. The moving plate 16 extends in the horizontal direction. The rotation of the Y-axis motor 13 rotates the Y-axis screw shaft 12, the nut moves in the front-back direction, and the moving plate 16 moves in the front-back direction.

移動板16上面にコラム4を左右方向に移動するX軸方向移動機構20が設けてある。X軸方向移動機構20は、左右に延びた二つのレール21と、X軸螺子軸22と、X軸モータ23(図2参照)と、ベアリング24とを備える。   An X-axis direction moving mechanism 20 for moving the column 4 in the left-right direction is provided on the upper surface of the moving plate 16. The X-axis direction moving mechanism 20 includes two rails 21 extending left and right, an X-axis screw shaft 22, an X-axis motor 23 (see FIG. 2), and a bearing 24.

レール21は移動板16上面の前後夫々に設けてある。X軸螺子軸22は左右に延び、二つのレール21の間に設けてある。X軸螺子軸22の左端部及び中途部夫々にベアリング24が設けてある。なおX軸螺子軸22の中途部に設けたベアリングの記載は省略する。X軸モータ23はX軸螺子軸22の後端部に連結している。   The rails 21 are provided at the front and rear of the upper surface of the movable plate 16, respectively. The X-axis screw shaft 22 extends left and right, and is provided between the two rails 21. Bearings 24 are provided at the left end and the middle of the X-axis screw shaft 22, respectively. The description of the bearing provided in the middle of the X-axis screw shaft 22 is omitted. The X-axis motor 23 is connected to the rear end of the X-axis screw shaft 22.

X軸螺子軸22には転動体(図示略)を介してナット(図示略)が螺合している。X軸螺子軸22にグリスが塗布してある。各レール21に複数の摺動子26が摺動可能に設けてある。ナット及び摺動子26の上部にコラム4が連結している。コラム4は柱状をなす。X軸モータ23の回転によってX軸螺子軸22は回転し、ナットは左右方向に移動し、コラム4は左右方向に移動する。   A nut (not shown) is screwed to the X-axis screw shaft 22 via a rolling element (not shown). Grease is applied to the X-axis screw shaft 22. A plurality of sliders 26 are slidably provided on each rail 21. The column 4 is connected to the upper part of the nut and the slider 26. The column 4 has a columnar shape. The X-axis screw shaft 22 is rotated by the rotation of the X-axis motor 23, the nut moves in the left-right direction, and the column 4 moves in the left-right direction.

コラム4の前面に主軸ヘッド5を上下方向に移動するZ軸方向移動機構30が設けてある。Z軸方向移動機構30は、上下に延びた二つのレール31と、Z軸螺子軸32と、Z軸モータ33と、ベアリング34とを備える。   A Z-axis direction moving mechanism 30 for moving the spindle head 5 in the vertical direction is provided on the front surface of the column 4. The Z-axis direction moving mechanism 30 includes two rails 31 extending vertically, a Z-axis screw shaft 32, a Z-axis motor 33, and a bearing 34.

レール31はコラム4前面の左右夫々に設けてある。Z軸螺子軸32は上下に延び、二つのレール31の間に設けてある。Z軸螺子軸32の下端部及び中途部夫々にベアリング34が設けてある。なお中途部に設けたベアリングの図示は省略する。Z軸モータ33はZ軸螺子軸32の上端部に連結している。   The rails 31 are provided on the left and right sides of the front surface of the column 4. The Z-axis screw shaft 32 extends vertically and is provided between the two rails 31. A bearing 34 is provided at each of the lower end and the middle of the Z-axis screw shaft 32. The illustration of the bearing provided in the middle part is omitted. The Z-axis motor 33 is connected to the upper end of the Z-axis screw shaft 32.

Z軸螺子軸32には転動体(図示略)を介してナット(図示略)が螺合している。Z軸螺子軸32にグリスが塗布してある。各レール31に複数の摺動子35が摺動可能に設けてある。ナット及び摺動子35の前部に主軸ヘッド5が連結している。Z軸モータ33の回転によってZ軸螺子軸32は回転し、ナットは上下方向に移動し、主軸ヘッド5は上下方向に移動する。Z軸モータ33、Z軸螺子軸32、ナット及び転動体はボールねじ機構を構成する。   A nut (not shown) is screwed to the Z-axis screw shaft 32 via a rolling element (not shown). Grease is applied to the Z-axis screw shaft 32. A plurality of sliders 35 are slidably provided on each rail 31. The spindle head 5 is connected to the nut and the front part of the slider 35. The rotation of the Z-axis motor 33 causes the Z-axis screw shaft 32 to rotate, the nut to move up and down, and the spindle head 5 to move up and down. The Z-axis motor 33, the Z-axis screw shaft 32, the nut and the rolling elements constitute a ball screw mechanism.

上下に延びた主軸5aが主軸ヘッド5内に設けてある。主軸5aは軸回りに回転する。主軸ヘッド5の上端部に主軸モータ6が設けてある。主軸5aの下端部は工具を装着する。主軸モータ6の回転によって主軸5aが回転し、工具が回転する。回転した工具は、ワーク保持部3に保持したワークを加工する。   A vertically extending spindle 5 a is provided in the spindle head 5. The main shaft 5a rotates around the axis. A spindle motor 6 is provided at the upper end of the spindle head 5. A tool is mounted on the lower end of the main shaft 5a. The rotation of the spindle motor 6 rotates the spindle 5a, and the tool rotates. The rotated tool processes the work held by the work holding unit 3.

工作機械100は工具を交換する工具交換装置(図示略)を備える。工具交換装置は工具マガジン(図示略)に収容した工具と主軸5aに装着した工具を交換する。   The machine tool 100 includes a tool changing device (not shown) for changing a tool. The tool changing device exchanges a tool housed in a tool magazine (not shown) and a tool mounted on the spindle 5a.

図2は制御装置50の構成を略示するブロック図である。制御装置50は、CPU51、記憶部52、RAM53及び入出力インタフェース54を備える。記憶部52は書き換え可能なメモリであり、例えばEPROM、EEPROM等である。記憶部52は後述する交点テーブル、経路番号i、指令点Pk、交点Si d、kの最終番号、経路A、経路B、第1基準点Om 、及び第2基準点Lm 等を記憶する(d、i、k、mは自然数)。 FIG. 2 is a block diagram schematically illustrating the configuration of the control device 50. The control device 50 includes a CPU 51, a storage unit 52, a RAM 53, and an input / output interface 54. The storage unit 52 is a rewritable memory, such as an EPROM or an EEPROM. Intersection table storage unit 52 to be described later, the path number i, the command point P k, intersection S i d, k final number of path A, path B, the first reference point O m, and the second reference point L m or the like Store (d, i, k, and m are natural numbers).

作業者が操作部7を操作した場合、操作部7から入出力インタフェース54に信号が入力する。操作部7は例えばキーボード、ボタン、タッチパネル等である。入出力インタフェース54は表示部8に信号を出力する。表示部8は文字、図形、記号等を表示する。表示部8は例えば液晶表示パネルである。   When the operator operates the operation unit 7, a signal is input from the operation unit 7 to the input / output interface 54. The operation unit 7 is, for example, a keyboard, a button, a touch panel, or the like. The input / output interface 54 outputs a signal to the display unit 8. The display unit 8 displays characters, figures, symbols, and the like. The display unit 8 is, for example, a liquid crystal display panel.

制御装置50は、X軸モータ23に対応したX軸制御回路55、サーボアンプ55a及び微分器23bを備える。X軸モータ23はエンコーダ23aを備える。X軸制御回路55はCPU51からの指令に基づいて、電流量を示す命令をサーボアンプ55aに出力する。サーボアンプ55aは前記命令を受け、X軸モータ23に駆動電流を出力する。   The control device 50 includes an X-axis control circuit 55 corresponding to the X-axis motor 23, a servo amplifier 55a, and a differentiator 23b. The X-axis motor 23 includes an encoder 23a. The X-axis control circuit 55 outputs a command indicating a current amount to the servo amplifier 55a based on a command from the CPU 51. The servo amplifier 55a receives the command and outputs a drive current to the X-axis motor 23.

エンコーダ23aはX軸制御回路55に位置フィードバック信号を出力する。X軸制御回路55は位置フィードバック信号に基づいて、位置のフィードバック制御を実行する。   The encoder 23a outputs a position feedback signal to the X-axis control circuit 55. The X-axis control circuit 55 executes position feedback control based on the position feedback signal.

エンコーダ23aは微分器23bに位置フィードバック信号を出力し、微分器23bは位置フィードバック信号を速度フィードバック信号に変換して、X軸制御回路55に出力する。X軸制御回路55は、速度フィードバック信号に基づいて、速度のフィードバック制御を実行する。   The encoder 23a outputs a position feedback signal to the differentiator 23b, and the differentiator 23b converts the position feedback signal into a speed feedback signal and outputs the signal to the X-axis control circuit 55. The X-axis control circuit 55 executes speed feedback control based on the speed feedback signal.

サーボアンプ55aが出力した駆動電流の値を電流検出器55bが検出する。電流検出器55bは駆動電流の値をX軸制御回路55にフィードバックする。X軸制御回路55は駆動電流の値に基づいて、電流制御を実行する。   The current detector 55b detects the value of the drive current output from the servo amplifier 55a. The current detector 55b feeds back the value of the drive current to the X-axis control circuit 55. The X-axis control circuit 55 executes current control based on the value of the drive current.

制御装置50は、Y軸モータ13に対応したY軸制御回路56、サーボアンプ56a及び微分器13bを備える。Y軸モータ13はエンコーダ13aを備える。Y軸制御回路56はCPU51からの指令に基づいて、電流量を示す命令をサーボアンプ56aに出力する。サーボアンプ56aは前記命令を受け、Y軸モータ13に駆動電流を出力する。   The control device 50 includes a Y-axis control circuit 56 corresponding to the Y-axis motor 13, a servo amplifier 56a, and a differentiator 13b. The Y-axis motor 13 includes an encoder 13a. The Y-axis control circuit 56 outputs a command indicating a current amount to the servo amplifier 56a based on a command from the CPU 51. The servo amplifier 56a receives the command and outputs a drive current to the Y-axis motor 13.

エンコーダ13aはY軸制御回路56に位置フィードバック信号を出力する。Y軸制御回路56は位置フィードバック信号に基づいて、位置のフィードバック制御を実行する。   The encoder 13a outputs a position feedback signal to the Y-axis control circuit 56. The Y-axis control circuit 56 executes position feedback control based on the position feedback signal.

エンコーダ13aは微分器13bに位置フィードバック信号を出力し、微分器13bは位置フィードバック信号を速度フィードバック信号に変換して、Y軸制御回路56に出力する。Y軸制御回路56は、速度フィードバック信号に基づいて、速度のフィードバック制御を実行する。   The encoder 13a outputs a position feedback signal to the differentiator 13b, and the differentiator 13b converts the position feedback signal into a speed feedback signal and outputs the signal to the Y-axis control circuit 56. The Y-axis control circuit 56 performs speed feedback control based on the speed feedback signal.

サーボアンプ56aが出力した駆動電流の値を電流検出器56bが検出する。電流検出器56bは駆動電流の値をY軸制御回路56にフィードバックする。Y軸制御回路56は駆動電流の値に基づいて、電流制御を実行する。   The current detector 56b detects the value of the drive current output from the servo amplifier 56a. The current detector 56b feeds back the value of the drive current to the Y-axis control circuit 56. The Y-axis control circuit 56 performs current control based on the value of the drive current.

制御装置50は、Z軸モータ33に対応したZ軸制御回路57、サーボアンプ57a及び微分器33bを備える。Z軸モータ33はエンコーダ33aを備える。Z軸制御回路57はCPU51からの指令に基づいて、電流量を示す命令をサーボアンプ57aに出力する。サーボアンプ57aは前記命令を受け、Z軸モータ33に駆動電流を出力する。   The control device 50 includes a Z-axis control circuit 57 corresponding to the Z-axis motor 33, a servo amplifier 57a, and a differentiator 33b. The Z-axis motor 33 includes an encoder 33a. The Z-axis control circuit 57 outputs a command indicating a current amount to the servo amplifier 57a based on a command from the CPU 51. The servo amplifier 57a receives the command and outputs a drive current to the Z-axis motor 33.

エンコーダ33aはZ軸制御回路57に位置フィードバック信号を出力する。Z軸制御回路57は位置フィードバック信号に基づいて、位置のフィードバック制御を実行する。   The encoder 33a outputs a position feedback signal to the Z-axis control circuit 57. The Z-axis control circuit 57 executes position feedback control based on the position feedback signal.

エンコーダ33aは微分器33bに位置フィードバック信号を出力し、微分器33bは位置フィードバック信号を速度フィードバック信号に変換して、Z軸制御回路57に出力する。Z軸制御回路57は、速度フィードバック信号に基づいて、速度のフィードバック制御を実行する。   The encoder 33a outputs a position feedback signal to the differentiator 33b, and the differentiator 33b converts the position feedback signal into a velocity feedback signal and outputs the signal to the Z-axis control circuit 57. The Z-axis control circuit 57 executes speed feedback control based on the speed feedback signal.

サーボアンプ57aが出力した駆動電流の値を電流検出器57bが検出する。電流検出器57bは駆動電流の値をZ軸制御回路57にフィードバックする。Z軸制御回路57は駆動電流の値に基づいて、電流制御を実行する。   The current detector 57b detects the value of the drive current output from the servo amplifier 57a. The current detector 57b feeds back the value of the drive current to the Z-axis control circuit 57. The Z-axis control circuit 57 executes current control based on the value of the drive current.

制御装置50は主軸モータ6に対しても、X〜Z軸モータ23、13、33と同様なフィードバック制御を実行する。   The control device 50 also performs the same feedback control on the spindle motor 6 as the X to Z axis motors 23, 13, and 33.

工作機械100はマガジンモータ60と、マガジン制御回路58とを備える。マガジンモータ60の回転によって工具マガジンが駆動する。マガジン制御回路58はマガジンモータ60の回転を制御する。   The machine tool 100 includes a magazine motor 60 and a magazine control circuit 58. The rotation of the magazine motor 60 drives the tool magazine. The magazine control circuit 58 controls the rotation of the magazine motor 60.

記憶部52はワークを加工する加工プログラムを格納する。加工プログラムは、主軸5aの位置を指示する複数の指令点Pk を有する。kは加工プログラムを構成する命令の順番を示す。主軸5aは複数の指令点Pk を順次移動し、主軸5aに装着した工具はワークを加工する。 The storage unit 52 stores a machining program for machining a work. The machining program has a plurality of command points Pk that indicate the position of the spindle 5a. k indicates the order of instructions constituting the machining program. The spindle 5a sequentially moves a plurality of command points Pk , and the tool mounted on the spindle 5a processes a workpiece.

記憶部52は指令点Pk を予め記憶している。制御装置50は複数の指令点Pk に基づいて、主軸5aが移動する経路(加工経路)を設定する。制御装置50は加工経路に基づいて、主軸5aの移動を実行する。 The storage unit 52 stores the command point Pk in advance. The control device 50 sets a path (machining path) along which the spindle 5a moves based on the plurality of command points Pk . The control device 50 executes the movement of the spindle 5a based on the machining path.

加工経路の設定方法について説明する。図3はワークに対する加工経路及び評価断面を略示する平面図、図4はワークに対する評価断面を略示する斜視図である。なお図中X方向は左右方向を示し、Y方向は前後方向を示し、Z方向は上下方向を示す。また図3及び図4におけるワークの形状は加工後の形状を示している。   A method for setting a machining path will be described. FIG. 3 is a plan view schematically showing a processing path and an evaluation cross section for the work, and FIG. 4 is a perspective view schematically showing an evaluation cross section for the work. In the drawings, the X direction indicates the left-right direction, the Y direction indicates the front-back direction, and the Z direction indicates the up-down direction. The shape of the workpiece in FIGS. 3 and 4 shows the shape after processing.

制御装置50は、ワークに対して評価断面Dd (dは断面番号を示し、自然数である)を設定する。例えば、図3に示すように、主軸5aが渦巻き状に周回移動する場合、加工経路は渦巻き方向に沿った経路となる。図3に示す如く、制御装置50は加工経路に略直交する方向に沿った評価断面Dd を複数設定する。複数の評価断面は加工経路の周方向に並ぶ。尚、作業者は、加工経路の方向が周方向であることを予め指示する。 The control device 50 sets an evaluation section D d (d indicates a section number and is a natural number) for the workpiece. For example, as shown in FIG. 3, when the main shaft 5a moves spirally, the machining path is a path along the spiral direction. As shown in FIG. 3, the controller 50 sets a plurality of evaluation section D d along a direction substantially perpendicular to the machining path. The plurality of evaluation sections are arranged in the circumferential direction of the machining path. The operator instructs in advance that the direction of the machining path is the circumferential direction.

制御装置50は加工経路設定処理を実行する。図5は、制御装置50による加工経路設定処理を説明するフローチャートである。   The control device 50 executes a processing path setting process. FIG. 5 is a flowchart illustrating a processing path setting process performed by the control device 50.

制御装置50のCPU51は、開始信号の入力があるまで待機する(ステップS1:NO)。例えば、ユーザは操作部7を操作して、開始信号を制御装置に入力する。   The CPU 51 of the control device 50 waits until a start signal is input (step S1: NO). For example, the user operates the operation unit 7 to input a start signal to the control device.

開始信号の入力があった場合(ステップS1:YES)、CPU51は、最外周/最内周演算処理を実行し(ステップS2)、評価断面設定処理を実行して(ステップS3)、指令点位置修正処理を実行する(ステップS4)。最外周/最内周演算処理、評価断面設定処理及び指令点位置修正処理の詳細は後述する。   If a start signal has been input (step S1: YES), the CPU 51 executes the outermost / innermost calculation processing (step S2), executes the evaluation section setting processing (step S3), and sets the command point position. A correction process is performed (Step S4). The details of the outermost / innermost calculation processing, the evaluation section setting processing, and the command point position correction processing will be described later.

最外周/最内周演算処理について説明する。図6は、最外周/最内周演算処理を説明するフローチャート、図7は、渦巻き状に外周側から内周側に移動する主軸5aの加工経路を略示する模式図、図8は、渦巻き状に内周側から外周側に移動する主軸5aの加工経路を略示する模式図である。   The outermost / innermost calculation processing will be described. FIG. 6 is a flowchart for explaining the outermost / innermost calculation processing. FIG. 7 is a schematic diagram schematically showing a machining path of the main shaft 5a moving from the outer peripheral side to the inner peripheral side in a spiral shape. FIG. 4 is a schematic view schematically showing a machining path of a main shaft 5a moving from an inner peripheral side to an outer peripheral side in a dashed manner.

CPU51は、複数の指令点Pk について、加工経路の始点に位置する指令点(始点指令点)P1 から加工経路の終点に位置する指令点(終点指令点)PN まで順に識別子(番号)を設定する(ステップS11)。 CPU51, for a plurality of command point P k, command point (start command point) located at the starting point of the machining path command point located at the end of the machining path from P 1 (end point instruction point) order identifier to P N (number) Is set (step S11).

CPU51は、始点指令点P1 に最も近い線分Pa a+1 を演算し(ステップS12)、終点指令点PN に最も近い線分Pb b+1 を演算する(ステップS13)。 CPU51 calculates the line segment P a P a + 1 closest to the starting point command point P 1 (step S12), and calculates the nearest line segment P b P b + 1 to the end point command points P N (step S13) .

CPU51は、始点指令点P1 と指令点Pa との間の加工経路を経路Aに設定し(ステップS14)、終点指令点PN と指令点Pb との間の加工経路を経路Bに設定する(ステップS15)。 CPU51 sets the machining path between the start command point P 1 and the command point P a to the route A (step S14), and the machining path between the endpoints command point P N and the command point P b on the path B It is set (step S15).

図7に示す如く、外周側から内周側に主軸5aが移動する場合、経路Aは最も外側に位置し、経路Bは最も内側に位置する。図8に示す如く、内周側から外周側に主軸5aが移動する場合、経路Aは最も内側に位置し、経路Bは最も外側に位置する。経路A及び経路Bはそれぞれ略環状をなす。環状とは、図3に示すように渦巻き状のものも含む。最も近い線分Paa+1 の演算は始点指令点P1 から各線分P2 3 、P3 4 、・・・までの最短距離を演算し、該最短距離の最大値から次第に小さくなった時の最小距離の線分を算出する。最も近い線分Pb b+1 の演算も同様である。 As shown in FIG. 7, when the main shaft 5a moves from the outer peripheral side to the inner peripheral side, the path A is located on the outermost side, and the path B is located on the innermost side. As shown in FIG. 8, when the main shaft 5a moves from the inner peripheral side to the outer peripheral side, the path A is located at the innermost position, and the path B is located at the outermost position. The route A and the route B each have a substantially annular shape. The ring shape includes a spiral shape as shown in FIG. Nearest segment P a P a + 1 of the operation line segment P 2 P 3 from the start point command point P 1, P 3 P 4, and calculates the shortest distance to ..., progressively from the maximum value of the outermost short Calculate the line segment of the minimum distance when it becomes smaller. Calculation of the nearest line segment P b P b + 1 is the same.

CPU51は、経路AのX方向の最小値AX_min 及び最大値AX_max と、Y方向の最小値AY_min 及び最大値AY_max を演算する(ステップS16)。 CPU51 has the minimum value A x_min and the maximum value A X_max the X direction of the path A, and calculates the minimum value A Y_min and the maximum value A Y_max the Y direction (step S16).

CPU51は、経路BのX方向の最小値BX_min 及び最大値BX_max と、Y方向の最小値BY_min 及び最大値BY_max を演算する(ステップS17)。 CPU51 is the minimum value B x_min and the maximum value B X_max in the X direction of the path B, and calculating the minimum value B Y_min and the maximum value B Y_max the Y direction (step S17).

CPU51は、AX_min <BX_min <BX_max <AX_max 且つAY_min <BY_min <BY_max <AY_max であるのか否かを判定する(ステップS18)。AX_min <BX_min <BX_max <AX_max 且つAY_min <BY_min <BY_max <AY_max である場合(ステップS18:YES)、CPU51は、経路Aを最も外側に位置する最外周経路に決定し、経路Bを最も内側に位置する最内周経路に決定し(ステップS19、図7参照)、評価断面設定処理に処理を戻す(ステップS3、図5参照)。 The CPU 51 determines whether or not A X_min <B X_min <B X_max <A X_max and A Y_min <B Y_min <B Y_max <A Y_max (step S18). If A X_min <B X_min <B X_max <A X_max and A Y_min <B Y_min <B Y_max <A Y_max (step S18: YES), the CPU 51 determines the route A to be the outermost route located at the outermost position. The route B is determined to be the innermost route located at the innermost position (step S19, see FIG. 7), and the process returns to the evaluation section setting process (step S3, see FIG. 5).

X_min <BX_min <BX_max <AX_max 且つAY_min <BY_min <BY_max <AY_max でない場合(ステップS18:NO)、CPU51は、BX_min <AX_min <AX_max <BX_max 且つBY_min <AY_min <AY_max <BY_max であるのか否かを判定する(ステップS20)。 If A X_min <B X_min <B X_max <A X_max and A Y_min <B Y_min <B Y_max <A Y_max (step S18: NO), the CPU 51 determines that B X_min <A X_min <A X_max <B X_max and BY_min < It is determined whether or not A Y_min <A Y_max <B Y_max (step S20).

X_min <AX_min <AX_max <BX_max 且つBY_min <AY_min <AY_max <BY_max である場合(ステップS20:YES)、CPU51は、経路Aを最も内側に位置する最内周経路に決定し、経路Bを最も外側に位置する経路に決定し(ステップS21、図8参照)、評価断面設定処理に処理を戻す(ステップS3、図5参照)。経路A又はBの一方は第1経路部を構成し、他方は第2経路部を構成する。 If BX_min < AX_min < AX_max < BX_max and BY_min < AY_min < AY_max < BY_max (step S20: YES), the CPU 51 determines the route A as the innermost route located at the innermost position. Then, the route B is determined to be the route located at the outermost position (step S21, see FIG. 8), and the process returns to the evaluation section setting process (step S3, see FIG. 5). One of the routes A and B constitutes a first route portion, and the other constitutes a second route portion.

X_min <AX_min <AX_max <BX_max 且つBY_min <AY_min <AY_max <BY_max でない場合(ステップS20:NO)、CPU51は、エラーを報知し(ステップS22)、処理を終了する。例えば、最外周/最内周演算処理にエラーが生じたことを表示部8に表示する。 If BX_min < AX_min < AX_max < BX_max and BY_min < AY_min < AY_max < BY_max (step S20: NO), the CPU 51 reports an error (step S22) and ends the process. For example, the display unit 8 displays that an error has occurred in the outermost / innermost arithmetic processing.

なおエラー報知後、作業者が指令値Pk の設定を再度行う等、データの調整又は変更を行い、開始信号を制御装置50に再度入力した場合に、CPU51は、最外周/最内周演算処理を再度実行するように構成してもよい。 After the error notification, if the operator adjusts or changes the data, such as setting the command value P k again, and inputs the start signal to the control device 50 again, the CPU 51 performs the outermost / innermost calculation. You may comprise so that a process may be performed again.

次に評価断面設定処理について説明する。図9は、評価断面設定処理を説明するフローチャート、図10は、評価断面設定処理を説明する模式図である。   Next, the evaluation section setting processing will be described. FIG. 9 is a flowchart illustrating the evaluation section setting process, and FIG. 10 is a schematic diagram illustrating the evaluation section setting process.

CPU51は、最外周経路上に、等距離離隔した複数の第1基準点Om (mは自然数)を設定し(ステップS31)、最内周経路上に複数の第2基準点Lm を設定する(ステップS32)。尚、第1基準点Om は始点指令点P1 から順に等間隔に設定する。第2基準点の設定については後述する。 The CPU 51 sets a plurality of first reference points O m (m is a natural number) equidistantly separated from each other on the outermost route (step S31), and sets a plurality of second reference points L m on the innermost route. (Step S32). Incidentally, the first reference point O m is set at equal intervals from the start command point P 1 in order. The setting of the second reference point will be described later.

CPU51は、最内周経路上であって、第1基準点Om から最も近い位置にある点を第2基準点Lm にする。CPU51は、第1基準点Om 及び第2基準点Lm に基づいて、評価断面Dd を演算し、設定する(ステップS33)。CPU51は、第1基準点Om 及び第2基準点Lm が評価断面Dd 上に位置するように、評価断面Dd を演算する。CPU51は、指令点位置修正処理に処理を戻す(ステップS4、図5参照)。評価断面Dd の演算はX−Y平面に対して垂直な面であり、上記第1基準点Om と第2基準点Lm を含む平面を演算する。 The CPU 51 sets a point on the innermost route that is closest to the first reference point O m as the second reference point L m . CPU51 on the basis of the first reference point O m and the second reference point L m, and calculates the evaluation section D d, is set (step S33). CPU51, as a first reference point O m and the second reference point L m is located on the evaluation section D d, and calculates an evaluation section D d. The CPU 51 returns the process to the command point position correction process (Step S4, see FIG. 5). Calculation of the evaluation section D d is a plane perpendicular to the X-Y plane, and calculates a plane including the first reference point O m and the second reference point L m.

第2基準点Lm は、第1基準点Om から最も近い位置にあるので、評価断面Dd は、最内周経路及び最外周経路(加工経路)に対して略垂直になる。 The second reference point L m, because it is closest to the first reference point O m, evaluation section D d becomes substantially perpendicular to the innermost path and outermost path (machining path).

図11は指令点Pk と、評価断面Dd 及び加工経路の交点とを略示する模式図、図12は交点テーブルの一例を示す概念図である。図11及び12において、「i」(iは自然数)は主軸5aの周回移動における経路番号を示す。図11に示すように、例えば経路番号1(i=1)の経路は、最外周経路を示し、経路番号2(i=2)の経路は経路番号1の経路よりも内側に位置する環状の経路を示す。経路番号3以下も同様である。主軸5aは経路番号順に移動する。 FIG. 11 is a schematic diagram schematically showing a command point Pk and an intersection of an evaluation section Dd and a machining path, and FIG. 12 is a conceptual diagram showing an example of an intersection table. 11 and 12, "i" (i is a natural number) indicates a path number in the orbital movement of the main shaft 5a. As shown in FIG. 11, for example, the route with the route number 1 (i = 1) indicates the outermost route, and the route with the route number 2 (i = 2) is a ring-shaped route located inside the route with the route number 1. Indicates a route. The same applies to route numbers 3 and below. The main shaft 5a moves in the order of the path numbers.

図12に示すように、制御装置50は、各評価断面Dd において、移動経路Pk −Pk+1 との交点Si dを演算し、経路番号i、交点座標Si d及び移動経路Pk −Pk+1 を対応付けて、交点テーブルに記憶する。 As shown in FIG. 12, the control device 50, each evaluation section D d, calculates the intersection S i d the movement path P k -P k + 1, channel number i, the intersection coordinates S i d and the movement path P k -P k + 1 are associated and stored in the intersection table.

制御装置50は、評価断面Dd 上における交点位置を例えば第1の修正方法で修正する。図13は評価断面Dd 上における交点位置の第1の修正方法を説明する説明図である。制御装置50は、例えばZ方向の座標を漸次変更するように修正する。修正の対象となる交点座標Si dに対し、前後各二点の交点座標si-2 d、si-1 d、si+1 d、si+2 dを使用して修正点ti dを決定する。 Controller 50 corrects the intersection position on the evaluation section D d for example, the first correction method. Figure 13 is an explanatory diagram for explaining a first method of correcting the intersection position on the evaluation section D d. The control device 50 corrects, for example, the coordinate in the Z direction gradually. To the intersection coordinates S i d to be modified, the intersection coordinates s i-2 d of the two points before and after, s i-1 d, s i + 1 d, s i + 2 by using the d fixes t Determine i d .

四つの交点座標si-2 d、si-1 d、si+1 d、si+2 dの各Z座標値をzi-2 、zi-1 、zi+1 、zi+2 とし、修正点ti dのZ座標値をzi′とし、Z座標値の差分をd1 =zi-2 −zi-1、d2 =zi-1 −zi ′、d3 =zi ′−zi+1、d4 =zi+1 −zi+2とし、Z座標値の二回差分d12′、d23′、d34′(Z座標値の差分d1 、d2 、d3 、d4 の差分)が線形に変化するようなzi′を演算する。 The Z coordinate values of the four intersection coordinates s i-2 d , s i-1 d , s i + 1 d , and s i + 2 d are represented by z i-2 , z i-1 , z i + 1 , z i +2 , the Z coordinate value of the correction point t i d is z i ′, and the difference between the Z coordinate values is d 1 = z i−2 −z i−1 , d 2 = z i−1 −z i ′ , Assuming that d 3 = z i ′ −z i + 1 , d 4 = z i + 1 −z i + 2, and two differences d 12 ′, d 23 ′, and d 34 ′ of Z coordinate values (difference of Z coordinate values) z i ′ is calculated such that the difference (d 1 , d 2 , d 3 , d 4 ) changes linearly.

Z座標値の二回差分d12′、d23′、d34′は次式で求まる。
d12′=d2 −d1 =(zi-1 −zi ′)−(zi-2 −zi-1)=2zi-1 −zi ′−zi-2 ・・・(1)
d23′=d3 −d2 =(zi ′−zi+1)−(zi-1 −zi ′)=2zi ′−zi+1 −zi-1 ・・・(2)
d34′=d4 −d3 =(zi+1 −zi+2 )−(zi ′−zi+1 )=2zi+1 −zi+2 −zi ・・(3)
The twice differences d 12 ′, d 23 ′, and d 34 ′ of the Z coordinate values are obtained by the following equations.
d 12 '= d 2 -d 1 = (z i-1 -z i') - (z i-2 -z i-1) = 2z i-1 -z i '-z i-2 ··· ( 1)
d 23 '= d 3 -d 2 = (z i' -z i + 1) - (z i-1 -z i ') = 2z i' -z i + 1 -z i-1 ··· (2 )
d 34 '= d 4 -d 3 = (z i + 1 -z i + 2) - (z i' -z i + 1) = 2z i + 1 -z i + 2 -z i ' ・ ・ (3)

これらが線形に変化することから、
d23′=(d12′+d34′)/2 ・・・(4)
を満たす。
Because these change linearly,
d 23 '= (d 12' + d 34 ') / 2 ··· (4)
Meet.

式(1)〜(4)に基づき、zi ′を解くと、
zi ′=(−zi-2 +4zi-1 +4zi+1 −zi+2 )/6
となる。
Solving z i ′ based on equations (1) to (4) gives
z i ′ = (− z i−2 + 4z i−1 + 4z i + 1 −z i + 2 ) / 6
Becomes

評価断面Dd 上における全ての交点Si dに対して上記修正を行う。なおZ座標値が他の交点のZ座標値と比較して、大きく離れた交点のみを修正してもよい。 Performing the modification for all intersections S i d on evaluation section D d. It should be noted that only the intersections whose Z coordinate values are far apart from the Z coordinate values of other intersections may be corrected.

制御装置50は、評価断面Dd 上における交点位置を例えば第2の修正方法で修正する。図14は評価断面上における交点位置の第2の修正方法を説明する説明図である。図14において、uはXY座標に相当し、vはZ座標に相当する。制御装置50は、例えば修正の対象となる交点Si dの周囲にある他の複数の交点を使用して、滑らかな曲線(スプライン曲線、ベジェ曲線、NURBS曲線等)を作成し、該曲線上に修正の対象となる交点Si dを投影する。 Controller 50 corrects the intersection position on the evaluation section D d for example in the second correction method. FIG. 14 is an explanatory diagram illustrating a second method of correcting the intersection point on the evaluation section. In FIG. 14, u corresponds to the XY coordinates, and v corresponds to the Z coordinates. The controller 50, for example using other multiple intersections surrounding the intersection S i d to be corrected of the subject, to create a smooth curve (spline curves, Bezier curves, NURBS curve, etc.), the curved line At the intersection S i d to be corrected.

滑らかな曲線として四つの交点si-2 d、si-1 d、si+1 d、si+2 dを使用する場合、評価断面Dd (uv平面)上における区間si-2 d〜si-1 d、区間si-1 d〜si+1 d、区間si+1 d〜si+2 dの夫々の曲線式v1(u)、v2(u)、v3(u)は、以下の式となる。
j(u)=aj (u-uj )3 +bj (u-uj )2 +cj (u-uj )+dj
(j=1、2、3)
When four intersections s i-2 d , s i-1 d , s i + 1 d , and s i + 2 d are used as a smooth curve, the section s i-2 on the evaluation section D d (uv plane) is used. curve expressions v 1 (u), v 2 (u), d −s i−1 d , intervals s i−1 d −s i + 1 d , and intervals s i + 1 d −s i + 2 d , v 3 (u) is given by the following equation.
v j (u) = a j (u-u j ) 3 + b j (u-u j ) 2 + c j (u-u j ) + d j
(J = 1, 2, 3)

交点si-2 d、si-1 d、si+1 d、si+2 dを通り、且つ境界点における一次導関数及び二次導関数が連続であることに基づいて、制御装置50はaj 〜dj を決定することができる。 Based on the fact that the first and second derivatives at the intersections s i-2 d , s i-1 d , s i + 1 d , s i + 2 d and at the boundary points are continuous, 50 can determine a j to d j .

四つの交点の選択は、上述したように、交点Si dの両隣に位置する連続した二点を使用する場合に限らない。例えば交点si-3 d、si-1 d、si+1 d、si+3 dのように、二点毎に不連続に交点を選択してもよい。 Selection of the four intersection points as described above, not limited to the case of using a continuous two points located on both sides of the intersection S i d. For example, the intersection may be discontinuously selected every two points, such as intersections s i-3 d , s i-1 d , s i + 1 d , and s i + 3 d .

図14に示すように、修正点ti d位置は、滑らかな曲線上において、修正の対象となる交点Si dからの距離が最小となる位置である。 As shown in FIG. 14, fixes t i d position, on a smooth curve, the distance from the intersection S i d to be modified is a position where the minimum.

d番目の評価断面Dd 上に存在する修正後の交点群Sd をTd とする。
d ={ti d|d:断面番号、i:経路番号}
The corrected intersection group S d existing on the d-th evaluation section D d is defined as T d .
T d = {t i d | d: section number, i: path number}

制御装置50は、交点群をTd を使用して、指令点の位置を修正する。図15は指令点の修正方法を説明する説明図である。図15において、Pa 〜Pf は指令点を示す。 The controller 50 corrects the position of the command point by using the intersection group as Td . FIG. 15 is an explanatory diagram illustrating a method of correcting a command point. In Figure 15, P a ~P f indicates a command point.

例えば指令点Pc が修正対象である場合、図15Aに示す如く、指令点Pc は断面Dd-1 と断面Dd の間に位置し、経路番号はiである。制御装置50は前述した交点テーブルを参照し、指令点Pc に関する断面位置及び経路番号を取得する。 For example, when the command point Pc is a correction target, as shown in FIG. 15A, the command point Pc is located between the section Dd-1 and the section Dd , and the path number is i. The control device 50 acquires the cross-sectional position and the path number for the command point Pc with reference to the intersection table described above.

図15Bに示す如く、制御装置50は指令点Pc の周囲にある交点、例えば加工経路上に並んだ四つの交点ti d+1、ti d、ti d-1、ti d-2を探索する。制御装置50は四つの交点ti d+1、ti d、ti d-1、ti d-2から滑らかな曲線(スプライン曲線、ベジェ曲線、NURBS曲線等)を作成し、該曲線上に指令点Pc を投影し、修正点Pc ′を決定する。制御装置50は、滑らかな曲線を前述した第2の修正方法と同様な方法で求める。修正点Pc ′の位置は、滑らかな曲線上において、指令点Pc からの距離が最小となる位置である。制御装置50は他の指令点の位置を同様に修正する。 As shown in FIG. 15B, the intersection control device 50 surrounding the command point P c, for example, four intersection points aligned on the machining path t i d + 1, t i d, t i d-1, t i d- Explore 2 The controller 50 creates four intersections t i d + 1, t i d, t i d-1, t i smooth curve from d-2 (spline curves, Bezier curves, NURBS curve, etc.), curved line projecting the command point P c in, to determine the correction point P c '. The control device 50 obtains a smooth curve by a method similar to the above-described second correction method. The position of the correction point P c ′ is a position on the smooth curve where the distance from the command point P c is minimum. The control device 50 similarly corrects the positions of the other command points.

図16は、指令点位置修正処理を説明するフローチャートである。CPU51は、上述した評価断面設定処理(ステップS3、図5参照)にて、評価断面Dd を設定した後、交点テーブルを作成する(図11及び図12参照)。具体的には、CPU51は往復動作の経路番号を示す変数i及び加工プログラムを構成する命令の順番を示す変数kに「1」を設定する(ステップS41)。 FIG. 16 is a flowchart illustrating the command point position correction processing. CPU51 is above evaluation section setting process (step S3, see FIG. 5) at, after setting the rated cross-section D d, creating an intersection table (see FIGS. 11 and 12). Specifically, the CPU 51 sets “1” to a variable i indicating the path number of the reciprocating operation and a variable k indicating the order of instructions constituting the machining program (step S41).

そしてCPU51は移動経路Pk −Pk+1 を読み込む(ステップS42)。CPU51は移動経路Pk −Pk+1 が評価断面Dd と交差するか否かを判定する(ステップS43)。移動経路Pk −Pk+1 が評価断面Dd と交差しない場合(ステップS43:NO)、CPU51はkを一つインクリメントする(ステップS47)。 Then, the CPU 51 reads the movement route P k -P k + 1 (step S42). CPU51 determines whether the moving path P k -P k + 1 intersects the evaluation section D d (step S43). When the movement route P k -P k + 1 does not intersect with the evaluation section D d (step S43: NO), the CPU 51 increments k by one (step S47).

移動経路Pk −Pk+1 が評価断面Dd と交差する場合(ステップS43:YES)、CPU51は、評価断面Dd と移動経路Pk −Pk+1 との交点Si dが既に存在しているか否かを判定する(ステップS44)。 If the moving path P k -P k + 1 intersects the evaluation section D d (Step S43: YES), CPU 51 may evaluate sectional D d and the movement path P k intersection between -P k + 1 S i d is already It is determined whether or not it exists (step S44).

評価断面Dd と移動経路Pk −Pk+1 との交点Si dが既に存在していない場合(ステップS44:NO)、CPU51は記憶部52の交点テーブル(図12参照)に、経路番号i、交点座標Si d及び移動経路Pk −Pk+1 を対応付けて記憶する(ステップS46)。 If the intersection point S i d between the evaluation section D d and the movement path P k -P k + 1 does not already exist (step S44: NO), CPU 51 is the intersection table in the storage unit 52 (see FIG. 12), the path number i, in association with the intersection coordinates S i d and the moving path P k -P k + 1 (step S46).

評価断面Dd と移動経路Pk −Pk+1 との交点Si dが既に存在している場合(ステップS44:YES)、CPU51はiを一つインクリメントし(ステップS45)、CPU51は記憶部52の交点テーブルに、経路番号i、交点座標Si d及び移動経路Pk −Pk+1 を対応付けて記憶し(ステップS46)、kを一つインクリメントする(ステップS47)。ステップS41〜S47は演算部を構成する。 If the intersection point S i d between the evaluation section D d and the movement path P k -P k + 1 already exists (Step S44: YES), CPU51 is incremented by one to i (step S45), CPU 51 is stored the intersection table parts 52, path number i, the intersection coordinates S i d and the moving path P k -P k + 1 the correspondence stored (step S46), and one increments k (step S47). Steps S41 to S47 constitute an arithmetic unit.

kをインクリメントした後、CPU51はkが最終番号であるか否かを判定する(ステップS48)。kが最終番号でない場合(ステップS48:NO)、CPU51はステップS42に処理を戻す。kが最終番号である場合(ステップS48:YES)、CPU51は、上述したように、交点の位置を修正する(ステップS49、式(1)〜式(4)、図13及び図14参照)。   After incrementing k, the CPU 51 determines whether k is the final number (step S48). If k is not the final number (step S48: NO), the CPU 51 returns the process to step S42. When k is the last number (step S48: YES), the CPU 51 corrects the position of the intersection as described above (step S49, see equations (1) to (4), and FIGS. 13 and 14).

CPU51は、上述したように、指令点の周囲にある交点を探索し(ステップS50)、指令点の位置を修正する(ステップS51、図15A及び図15B参照)。   As described above, the CPU 51 searches for an intersection around the command point (step S50), and corrects the position of the command point (step S51, see FIGS. 15A and 15B).

上述した実施の形態においては、経路A及び経路Bは、最外周及び最内周に位置しているが、これに限定されない。経路A又は経路Bの一方が外周側に位置し、他方が内周側に位置すればよい。   In the embodiment described above, the route A and the route B are located at the outermost circumference and the innermost circumference, but are not limited thereto. One of the route A and the route B may be located on the outer peripheral side, and the other may be located on the inner peripheral side.

実施の形態に係る制御装置50及び工作機械100にあっては、環状の加工経路に対して垂直になるように評価断面Dd を設定し、評価断面Dd と加工経路の交点Si dの位置を修正し、修正した交点Si dの位置に基づいて、前記加工経路に交差する方向における指令点Pk の位置を修正する。 In the control unit 50 and the machine tool 100 according to the embodiment, and sets an evaluation section D d to be perpendicular to the annular machining path, the intersecting point S i d evaluation section D d and machining path position fix, based on the position of the modified intersection S i d, it corrects the position of the command point P k in the direction crossing the machining path.

環状の加工経路に対して、加工経路の中心から放射状に延びるように、複数の評価断面Dd を設定した場合、評価断面Ddの密度が高い部分と低い部分とが発生し、指令点Pk に対する修正精度が低下することがある。上述した実施の形態においては、評価断面Dd を加工経路に対して垂直にすることによって、評価断面Dd の密度に差が生じたとしても、指令点Pk に対する修正精度の低下を防止することができる。 When a plurality of evaluation sections D d are set so as to extend radially from the center of the processing path with respect to the annular processing path, a high density portion and a low density portion of the evaluation cross section D d occur, and the command point P Correction accuracy for k may decrease. In the above-described embodiment, by making the evaluation section D d perpendicular to the machining path, even if a difference occurs in the density of the evaluation section D d , it is possible to prevent a decrease in correction accuracy for the command point P k . be able to.

また外周側の経路及び内周側の経路(経路A及び経路B)に第1基準点Om 及び第2基準点Lm をそれぞれ設定する。第2基準点Lm は第1基準点Om に最も近い位置にある。第1基準点Om 及び第2基準点Lm が評価断面Dd 上に位置するように、評価断面Dd を設定することによって、評価断面Dd は加工経路に対して略垂直になる。 In addition, a first reference point O m and a second reference point L m are set for the outer peripheral path and the inner peripheral path (path A and path B), respectively. The second reference point L m is closest to the first reference point O m. As the first reference point O m and the second reference point L m is located on the evaluation section D d, by setting the evaluation section D d, evaluation section D d is substantially perpendicular to the machining path.

外周側の経路と内周側の経路との間の距離が小さい場合、僅かな演算誤差等によって、設定した評価断面Dd が加工経路に対して傾斜し、他の評価断面Dd と交差することがある。実施の形態にあっては、外周側の経路が最外周側に位置し、内周側の経路が最内周側に位置するので、外周側の経路と内周側の経路との間に十分に大きい距離を設けて、評価断面同士が交差することを防止できる。 When the distance between the outer peripheral path and the inner peripheral path is small, the set evaluation section D d is inclined with respect to the machining path due to a slight calculation error or the like and intersects with the other evaluation sections D d . Sometimes. In the embodiment, since the outer peripheral path is located on the outermost peripheral side and the inner peripheral path is located on the innermost peripheral side, there is sufficient space between the outer peripheral path and the inner peripheral path. , A large distance can be provided to prevent the evaluation cross sections from intersecting with each other.

また外周側の経路又は内周側の経路の一方が加工経路の始点側に位置し、他方が加工経路の終点側に位置する。渦巻き状の加工経路の中心部に始点が位置する場合、外周側の経路は終点側に位置し、内周側の経路は始点側に位置する。加工経路の中心部に終点が位置する場合、内周側の経路は終点側に位置し、外周側の経路は始点側に位置する。   One of the outer peripheral path and the inner peripheral path is located on the starting point side of the machining path, and the other is located on the end point side of the machining path. When the starting point is located at the center of the spiral machining path, the outer peripheral path is located at the end point side, and the inner peripheral path is located at the starting point side. When the end point is located at the center of the machining path, the inner peripheral path is located at the end point side, and the outer peripheral path is located at the start point side.

5a 主軸
50 制御装置
51 CPU
52 記憶部
53 RAM
100 工作機械
5a Spindle 50 Controller 51 CPU
52 storage unit 53 RAM
100 machine tool

Claims (7)

主軸の位置を指示する複数の指令点に基づいた加工経路を設定し、前記加工経路に基づいて、前記主軸の移動を制御する制御装置において、
前記加工経路は環状をなす複数の経路部を有し、
前記複数の経路部それぞれに対して垂直になるように複数の評価断面を設定する評価断面設定部と、
該評価断面設定部が設定した評価断面と各経路部との複数の交点を演算する演算部と、
ワークの加工及び加工されたワークの実形状の測定を行うことなく、前記演算部が演算した前記複数の交点の位置を修正する交点位置修正部と、
該交点位置修正部にて修正され複数の交点に基づいて、前記加工経路に交差する方向における前記指令点の位置を修正する指令点位置修正部と
を備え、
前記交点位置修正部は、修正の対象である第一の交点の位置を、該第一の交点が存在する評価断面上に存在し且つ前記第一の交点の周囲にある複数の第二の交点を用いて修正し、
前記指令点位置修正部は、所定の前記経路部に沿って並び且つ前記交点位置修正部にて修正された複数の交点に基づいて、前記所定の経路部と同じ経路部に沿って並び且つ前記複数の評価断面上に存在する前記複数の指令点の位置を修正すること
を特徴とする制御装置。
In a control device that sets a machining path based on a plurality of command points that indicate the position of the spindle and controls movement of the spindle based on the machining path,
The machining path has to multiple path portion, such a ring,
An evaluation section setting unit that sets a plurality of evaluation sections so as to be perpendicular to each of the plurality of path units ,
A computing unit that computes a plurality of intersections between each evaluation section and each path set by the evaluation section setting unit;
Intersection position correction unit that corrects the positions of the plurality of intersection points calculated by the calculation unit without performing processing of the workpiece and measurement of the actual shape of the processed workpiece ,
Based on a plurality of intersections which are fixed in intersection point position correcting unit, and a command point position correcting unit for correcting the position of the instruction point in a direction intersecting the machining path,
The intersection position correction unit determines the position of the first intersection to be corrected, a plurality of second intersections that are present on the evaluation cross section where the first intersection is present and are around the first intersection. and corrected using,
The command point position correction unit is arranged along the same path as the predetermined path, based on the plurality of intersections aligned along the predetermined path and corrected by the intersection position correction. A control device for correcting the positions of the plurality of command points existing on a plurality of evaluation sections .
前記複数の経路は、
環状をなす第1経路部と、
該第1経路部の内側に位置し、環状をなす第2経路部と
を有し、
前記評価断面設定部は、
前記第1経路部上に第1基準点を設定する第1基準点設定部と、
前記第2経路部上であって、前記第1基準点に最も近い位置に第2基準点を設定する第2基準点設定部と、
前記第1基準点及び第2基準点に基づいて、前記評価断面を演算する評価断面演算部と
を有すること
を特徴とする請求項1に記載の制御装置。
The plurality of path units include:
An annular first path portion;
A second path portion that is located inside the first path portion and forms an annular shape;
The evaluation section setting unit includes:
A first reference point setting unit that sets a first reference point on the first path unit;
A second reference point setting unit that sets a second reference point at a position closest to the first reference point on the second path unit;
The control device according to claim 1, further comprising: an evaluation section calculation unit configured to calculate the evaluation section based on the first reference point and the second reference point.
記複数の経路部にて、前記第1経路部は最も外側に位置し、
前記複数の経路部にて、前記第2経路部は最も内側に位置すること
を特徴とする請求項2に記載の制御装置。
In front SL multiple path portion, the first path portion is located outermost,
The control device according to claim 2, wherein the second path portion is located at an innermost position among the plurality of path portions.
前記加工経路は渦巻き状をなし、
前記複数の指令点は、前記加工経路の始点に位置する始点指令点及び前記加工経路の終点に位置する終点指令点を含み、
前記始点指令点と前記始点指令点とは異なる第1の前記指令点との間に前記第1経路部又は第2経路部の一方を設定する始点側経路部設定部と、
前記終点指令点と前記終点指令点とは異なる第2の前記指令点との間に前記第1経路部又は第2経路部の他方を設定する終点側経路部設定部と
を備えることを特徴とする請求項2又は3に記載の制御装置。
The processing path is spiral,
The plurality of command points include a start point command point located at a start point of the machining path and an end point command point located at an end point of the machining path,
A start-point-side path portion setting section that sets one of the first path portion or the second path portion between the start point command point and the first command point different from the start point command point;
An end point side path section setting section that sets the other of the first path section or the second path section between the end point command point and a second command point different from the end point command point. The control device according to claim 2 or 3, wherein
請求項1から4の何れか一つに記載の制御装置と、
前記主軸と
を備えることを特徴とする工作機械。
A control device according to any one of claims 1 to 4,
A machine tool comprising: the spindle.
主軸の位置を指示する複数の指令点に基づいた加工経路を設定し、前記加工経路に基づいて、前記主軸の移動を制御する制御方法において、
前記加工経路は環状をなす複数の経路部を有し、
前記複数の経路部それぞれに対して垂直になるように複数の評価断面を設定し、
設定した評価断面と経路部との複数の交点を演算し、
ワークの加工及び加工されたワークの実形状の測定を行うことなく、演算した前記複数の交点の位置を修正し、
修正され複数の交点に基づいて、前記加工経路に交差する方向における前記指令点の位置を修正し、
正の対象である第一の交点の位置を、該第一の交点が存在する評価断面上に存在し且つ前記第一の交点の周囲にある複数の第二の交点を用いて修正し、
所定の前記経路部に沿って並び且つ修正された複数の交点に基づいて、前記所定の経路部と同じ経路部に沿って並び且つ前記複数の評価断面上に存在する前記複数の指令点の位置を修正すること
を特徴とする制御方法。
In a control method for setting a machining path based on a plurality of command points indicating the position of the spindle and controlling the movement of the spindle based on the machining path,
The machining path has to multiple path portion, such a ring,
A plurality of evaluation sections are set to be perpendicular to each of the plurality of path portions ,
A plurality of intersection between each evaluation section and the respective route section set computed,
Correcting the calculated positions of the plurality of intersections without performing processing of the workpiece and measuring the actual shape of the processed workpiece ,
Based on the modified plurality of intersection points, to correct the position of the instruction point in a direction intersecting the machining path,
The position of the first intersection point is Osamu positive subject, and corrected using a plurality of second intersection surrounding the present and the first intersection point on evaluation section the intersection of the first is present,
Positions of the plurality of command points aligned along the same route as the predetermined route and present on the plurality of evaluation cross sections based on the plurality of intersections aligned and corrected along the predetermined route; A control method characterized by correcting the following.
加工プログラムに従って、主軸の位置を指示する複数の指令点に基づいた加工経路を設定し、前記加工経路に基づいて、前記主軸の移動を制御する制御装置で実行可能なコンピュータプログラムであって、
前記加工経路は環状をなす複数の経路部を有し、
前記制御装置を、
前記複数の経路部それぞれに対して垂直になるように複数の評価断面を設定する評価断面設定部、
該評価断面設定部が設定した評価断面と各経路部との複数の交点を演算する演算部、
ワークの加工及び加工されたワークの実形状の測定を行うことなく、前記演算部が演算した前記複数の交点の位置を修正する交点位置修正部、及び
該交点位置修正部にて修正され複数の交点に基づいて、前記加工経路に交差する方向における前記指令点の位置を修正する指令点位置修正部
として機能させ、
前記交点位置修正部は、修正の対象である第一の交点の位置を、該第一の交点が存在する評価断面上に存在し且つ前記第一の交点の周囲にある複数の第二の交点を用いて修正し、
前記指令点位置修正部は、所定の前記経路部に沿って並び且つ前記交点位置修正部にて修正された複数の交点に基づいて、前記所定の経路部と同じ経路部に沿って並び且つ前記複数の評価断面上に存在する前記複数の指令点の位置を修正すること
を特徴とするコンピュータプログラム。
A computer program executable by a control device that controls a movement of the spindle based on the machining program, sets a machining path based on a plurality of command points that indicate the position of the spindle, and controls the movement of the spindle based on the machining path.
The machining path has to multiple path portion, such a ring,
The control device,
An evaluation section setting unit that sets a plurality of evaluation sections to be perpendicular to each of the plurality of path sections;
A computing unit that computes a plurality of intersections between each evaluation section and each path set by the evaluation section setting unit;
Without performing processing and measurement of the actual shape of the processed workpiece of the workpiece, a plurality of the arithmetic unit is modified by the intersection position correcting section, and intersection point position correcting unit for correcting the position of said plurality of intersections calculated Based on the intersection of the, to function as a command point position correction unit that corrects the position of the command point in the direction intersecting the machining path,
The intersection position correction unit determines the position of the first intersection to be corrected, a plurality of second intersections that are present on the evaluation cross section where the first intersection is present and are around the first intersection. and corrected using,
The command point position correction unit is arranged along the same path as the predetermined path, based on the plurality of intersections aligned along the predetermined path and corrected by the intersection position correction. A computer program for correcting the positions of the plurality of command points existing on a plurality of evaluation sections .
JP2015233887A 2015-11-30 2015-11-30 Control device, machine tool, control method, and computer program Active JP6672748B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2015233887A JP6672748B2 (en) 2015-11-30 2015-11-30 Control device, machine tool, control method, and computer program
CN201610908151.6A CN106814692B (en) 2015-11-30 2016-10-18 Control device, lathe, control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015233887A JP6672748B2 (en) 2015-11-30 2015-11-30 Control device, machine tool, control method, and computer program

Publications (2)

Publication Number Publication Date
JP2017102594A JP2017102594A (en) 2017-06-08
JP6672748B2 true JP6672748B2 (en) 2020-03-25

Family

ID=59015488

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015233887A Active JP6672748B2 (en) 2015-11-30 2015-11-30 Control device, machine tool, control method, and computer program

Country Status (2)

Country Link
JP (1) JP6672748B2 (en)
CN (1) CN106814692B (en)

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03240805A (en) * 1990-02-19 1991-10-28 Mitsubishi Heavy Ind Ltd Production of path data for cornering tool
EP0477396B1 (en) * 1990-09-25 1995-09-13 Dr. Johannes Heidenhain GmbH Method to determine the contour of the machine tool path by a numerically controlled machine
JP3408403B2 (en) * 1997-06-06 2003-05-19 ローランドディー.ジー.株式会社 Method of removing abnormal tool path in cutting
JP2001134311A (en) * 1999-11-01 2001-05-18 Sigma:Kk Method and device for preparing working data and recording medium
JP2003330514A (en) * 2002-05-17 2003-11-21 Thk Co Ltd Double spiral motion control method, apparatus and program as well as recording medium with the program recorded thereon
DE10341776B4 (en) * 2003-09-10 2007-09-27 P & L Gmbh & Co. Kg Method for machining a workpiece by means of a rotating, cutting tool
JP2006068901A (en) * 2005-11-16 2006-03-16 Makino Milling Mach Co Ltd Machine tool controller
JP4708299B2 (en) * 2006-10-04 2011-06-22 三菱電機株式会社 Numerical controller
JP4406034B2 (en) * 2008-03-07 2010-01-27 ファナック株式会社 Numerical control device for controlling a 5-axis machine
CN102209941B (en) * 2008-09-18 2015-05-06 Flir系统贸易比利时有限公司 Systems and methods for machining materials
US9152143B2 (en) * 2009-07-06 2015-10-06 Mitsubishi Electric Corporation Automatic programming apparatus and automatic programming method
JP5035490B2 (en) * 2010-05-20 2012-09-26 三菱電機株式会社 Numerical control program generation method and apparatus, and program for causing computer to execute the method
EP2634659B1 (en) * 2010-10-26 2016-11-30 Makino Milling Machine Co., Ltd. Method and device for generating tool path
EP2633951A4 (en) * 2010-10-26 2014-05-28 Murata Machinery Ltd Unit configuration type machine tool, transfer device, working equipment
JP5342665B2 (en) * 2012-03-12 2013-11-13 ファナック株式会社 Lens shape processing method and lens shape processing apparatus for measuring along spiral measurement path
CN103744349B (en) * 2013-10-08 2016-04-20 华中科技大学 A kind of Non intrusive method generation method of square end mill processing fillet surface
CN104128846B (en) * 2014-07-21 2016-04-20 华中科技大学 A kind of high-precision cutter bias On-line Measuring Method
CN104400092B (en) * 2014-11-28 2017-02-01 湖北三江航天险峰电子信息有限公司 Milling finish machining method for three-dimensional profile with composite inclined surface on outline
CN104875104B (en) * 2015-05-14 2018-06-12 常州大思世成机电科技有限公司 Wheel hub Irregular Boundary Surface polishing method based on CAD/CAM technologies

Also Published As

Publication number Publication date
CN106814692B (en) 2019-07-09
CN106814692A (en) 2017-06-09
JP2017102594A (en) 2017-06-08

Similar Documents

Publication Publication Date Title
JP6672702B2 (en) Control device, machine tool, control method, and computer program
JP5562430B2 (en) Tool path generation method and generation apparatus
JP6450732B2 (en) Numerical controller
US20160341533A1 (en) Method for controlling shape measuring apparatus
JP6435962B2 (en) Control device, machine tool and computer program
US10088824B2 (en) Toolpath evaluation method, toolpath generation method, and toolpath generation device
JP5877866B2 (en) Tool path display device that displays the tool path
JP4637197B2 (en) Numerical controller
JP6038331B2 (en) Tool path generation method and tool path generation apparatus
JP6582931B2 (en) Control device, machine tool, control method, and computer program
JP7061013B2 (en) Path correction method and control device for multi-axis machine
JP6672748B2 (en) Control device, machine tool, control method, and computer program
JP6623902B2 (en) Processing path calculation device, processing path calculation method, and computer program
JP7473321B2 (en) Simulation device, numerical control device, and simulation method
WO2018056116A1 (en) Numerically controlled machine tool measuring device
JP2019016216A (en) Numerically controlled machine tool measuring apparatus
JP7131454B2 (en) Numerical controllers, machine tools, control programs, and storage media
JP6823032B2 (en) Program modifier
JP6943556B2 (en) Machining path calculation device, machining path calculation method and computer program
JP6021690B2 (en) Numerical controller
JP2012240170A (en) Geometric error identification device
JP6281315B2 (en) Numerical control device and moving path correction method
JP5659666B2 (en) Numerical control apparatus, moving path correcting method, moving path correcting program, and storage medium
JP2023051252A (en) Machine tool, processing route generation method, and computer program
JP2023067510A (en) Controller, processing route generation method, and computer program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180628

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190520

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190528

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190722

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190917

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191118

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200217

R150 Certificate of patent or registration of utility model

Ref document number: 6672748

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150