CN106625015A - Control device, machine tool and control method - Google Patents
Control device, machine tool and control method Download PDFInfo
- Publication number
- CN106625015A CN106625015A CN201610710070.5A CN201610710070A CN106625015A CN 106625015 A CN106625015 A CN 106625015A CN 201610710070 A CN201610710070 A CN 201610710070A CN 106625015 A CN106625015 A CN 106625015A
- Authority
- CN
- China
- Prior art keywords
- point
- interpolation
- points
- interpolation point
- command
- 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.)
- Granted
Links
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B23—MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
- B23Q—DETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
- B23Q15/00—Automatic control or regulation of feed movement, cutting velocity or position of tool or work
- B23Q15/007—Automatic control or regulation of feed movement, cutting velocity or position of tool or work while the tool acts upon the workpiece
- B23Q15/013—Control or regulation of feed movement
Landscapes
- Engineering & Computer Science (AREA)
- Mechanical Engineering (AREA)
- Numerical Control (AREA)
Abstract
本发明涉及对安装工具的主轴的移动进行控制的控制装置、机床、控制方法。控制装置设定对主轴的位置进行指示的多个指令点,并在多个指令点之间设定插补点。控制装置根据指令点和插补点设定加工路径。当判定为相邻的两个插补点之间、指令点与插补点之间、两个插补点之间的距离不是阈值以下时,在相邻的两点之间进一步设定插补点。控制装置设定与加工路径交叉的评价截面,运算评价截面与加工截面的交点,并修正交点的位置。控制装置根据修正后的交点对指令点和插补点在与加工路径交叉的方向上的位置进行修正,在工件上形成平滑的曲面。
The present invention relates to a control device, a machine tool, and a control method for controlling the movement of a spindle of a mounting tool. The control device sets a plurality of command points for instructing the position of the main shaft, and sets interpolation points between the plurality of command points. The control device sets the processing path according to the instruction point and the interpolation point. When it is determined that the distance between two adjacent interpolation points, between a command point and an interpolation point, or between two interpolation points is not below the threshold, further set interpolation between two adjacent points point. The control device sets an evaluation section intersecting with the machining path, calculates the intersection point of the evaluation section and the machining section, and corrects the position of the intersection point. The control device corrects the positions of the instruction point and the interpolation point in the direction intersecting with the machining path according to the corrected intersection point, and forms a smooth curved surface on the workpiece.
Description
技术领域technical field
本发明涉及对安装工具的主轴的移动进行控制的控制装置、机床、控制方法。The present invention relates to a control device, a machine tool, and a control method for controlling the movement of a spindle of a mounting tool.
背景技术Background technique
机床具有控制装置,控制装置对安装工具的主轴的移动进行控制。控制装置设定指示主轴位置的多个指令点,并将指令点连接来设定加工路径。当安装于主轴的工具在工件上形成三维曲面时,由连续的指令点之间的微小线段形成多个曲线来设定加工路径。The machine tool has a control device that controls the movement of the spindle on which the tool is mounted. The control device sets a plurality of command points indicating the position of the spindle, and connects the command points to set a machining path. When the tool mounted on the spindle forms a three-dimensional curved surface on the workpiece, the machining path is set by forming multiple curves with tiny line segments between consecutive command points.
例如,多个曲线在水平面上沿前后方向或左右方向排列。控制装置对各曲线设定上下方向的位置。For example, a plurality of curved lines are arranged in the front-back direction or the left-right direction on the horizontal plane. The control device sets a position in the vertical direction for each curve.
日本公开专利公报第3466111号公开了一种控制装置。控制装置根据样条曲线、贝塞尔曲线等平滑的曲线追加辅助点(相当于本申请的“插补点”)。Japanese Laid-Open Patent Publication No. 3466111 discloses a control device. The control device adds auxiliary points (corresponding to "interpolation points" in this application) based on smooth curves such as spline curves and Bezier curves.
即便各曲线是平滑的,相邻曲线的斜率差、在控制装置的运算中产生的量化误差等也会导致在工件的表面上出现鳞状的图样。控制装置对指令点不进行修正,在指令点之间插入辅助点来生成平滑的曲线。即便在指令点的位置错误时,曲线也经过错误的指令点,因此,在工件的表面上会出现鳞状的图样。Even if each curve is smooth, a difference in slope of adjacent curves, a quantization error generated in the calculation of the control device, etc. will cause a scaly pattern to appear on the surface of the workpiece. The control device does not correct the command points, but inserts auxiliary points between the command points to generate a smooth curve. Even when the position of the command point is wrong, the curve passes through the wrong command point, and therefore, a scaly pattern appears on the surface of the workpiece.
发明内容Contents of the invention
本发明的目的在于提供一种能在工件上形成平滑曲面的控制装置、机床、控制方法。The object of the present invention is to provide a control device, a machine tool and a control method capable of forming a smooth curved surface on a workpiece.
技术方案1的控制装置根据指示主轴位置的多个指令点和设定在多个指令点之间的至少一个插补点来设定加工路径,并根据加工路径来对主轴的移动进行控制,所述控制装置具有:判定部,该判定部对相邻的两个指令点之间、相邻的指令点与插补点之间或相邻的两个插补点之间的距离是否为阈值以下进行判定;插补点设定部,当判定部判定为距离不是阈值以下时,该插补点设定部在相邻的两个指令点之间、相邻的指令点与插补点之间或相邻的两个插补点之间设定插补点;评价截面设定部,该评价截面设定部设定与加工路径交叉的评价截面;运算部,该运算部对评价截面设定部所设定的评价截面与加工路径的交点进行运算;第一修正部,该第一修正部对运算部运算出的交点的位置进行修正;以及第二修正部,该第二修正部根据第一修正部修正后的交点对指令点和插补点在与加工路径交叉的方向上的位置进行修正。控制装置使指令点与插补点的距离处在阈值内且根据评价截面对指令点和插补点进行修正,因此,能设定平滑的曲线。The control device of technical solution 1 sets a machining path based on a plurality of instruction points indicating the spindle position and at least one interpolation point set between the plurality of instruction points, and controls the movement of the spindle according to the machining path, so The control device includes a determination unit that determines whether the distance between two adjacent command points, between an adjacent command point and an interpolation point, or between two adjacent interpolation points is equal to or less than a threshold value. Judgment; interpolation point setting unit, when the judging unit judges that the distance is not below the threshold value, the interpolation point setting unit is between two adjacent instruction points, between adjacent instruction points and interpolation points, or between adjacent instruction points and interpolation points. The interpolation point is set between two adjacent interpolation points; the evaluation cross-section setting part is used to set the evaluation cross-section intersecting with the processing path; computing the intersection of the set evaluation section and the machining path; a first correction unit correcting the position of the intersection calculated by the calculation unit; and a second correction unit based on the first correction The position of the command point and the interpolation point in the direction intersecting the machining path is corrected using the partially corrected intersection point. Since the control device makes the distance between the command point and the interpolation point within the threshold and corrects the command point and the interpolation point based on the evaluation cross section, a smooth curve can be set.
控制装置在多个指令点之间设定插补点,并根据指令点和插补点设定加工径路。控制装置设定评价截面,对评价截面与加工路径的交点的位置进行修正,并根据修正后的交点的位置对指令点和插补点在与加工路径交叉的方向上的位置进行修正。The control device sets interpolation points between multiple command points, and sets the processing path according to the command points and the interpolation points. The control device sets the evaluation section, corrects the position of the intersection of the evaluation section and the machining path, and corrects the positions of the command point and the interpolation point in the direction intersecting the machining path according to the corrected intersection position.
技术方案2的控制装置的插补点设定部具有中央设定部,该中央设定部在相邻的两个指令点之间、相邻的指令点与插补点之间或相邻的两个插补点之间的中央设定插补点。控制装置在相邻的两个指令点之间、相邻的指令点与插补点之间或相邻的两个插补点之间的中央设定插补点来设定加工路径。控制装置将插补点设定在相邻两点的中央,因此,能减少求出插补点的运算次数。The interpolation point setting unit of the control device according to claim 2 has a central setting unit, and the central setting unit is between two adjacent command points, between an adjacent command point and an interpolation point, or between two adjacent command points. Set the interpolation point at the center between the two interpolation points. The control device sets an interpolation point at the center between two adjacent instruction points, between an adjacent instruction point and an interpolation point, or between two adjacent interpolation points to set a machining path. Since the control device sets the interpolation point at the center of two adjacent points, it is possible to reduce the number of calculations for obtaining the interpolation point.
技术方案3的控制装置的插补点设定部具有隔开位置设定部,该隔开位置设定部在与指令点或插补点隔开阈值的位置上设定插补点。控制装置在与指令点或插补点隔开相当于阈值的距离的位置上设定插补点来设定加工路径。控制装置在隔开阈值的位置上设定插补点,因此,相邻两点的距离为阈值,能设定平滑的曲线。The interpolation point setting unit of the control device according to claim 3 includes a spaced position setting unit that sets the interpolation point at a position separated from the command point or the interpolation point by a threshold value. The control device sets an interpolation point at a position separated from the command point or the interpolation point by a distance equivalent to a threshold value, and sets the machining path. The control device sets interpolation points at positions separated by the threshold value, so the distance between two adjacent points becomes the threshold value, and a smooth curve can be set.
技术方案4的控制装置具有:第二判定部,该第二判定部对第二距离是否为第二阈值以下进行判定,所述第二距离是指由第二修正部修正后的插补点与由所述第二修正部修正前的插补点之间的距离;以及插补点删除部,当第二判定部判定为第二距离为第二阈值以下时,该插补点删除部将由第二修正部修正后的插补点删除。当修正前后的两个插补点之间的第二距离小于第二阈值时,控制装置将修正后的插补点删除。通过删除插补点,抑制加工时间和加工程序的容量增加。The control device according to claim 4 includes: a second determination unit that determines whether a second distance between the interpolation point corrected by the second correction unit and the second threshold value is equal to or less than a second threshold value. the distance between the interpolation points before being corrected by the second correction unit; and the interpolation point deletion unit, when the second determination unit judges that the second distance is equal to or less than a second threshold value, the interpolation point deletion unit selects 2. Delete the corrected interpolation points in the correction department. When the second distance between the two interpolation points before and after correction is smaller than the second threshold, the control device deletes the corrected interpolation point. By deleting interpolation points, the increase in machining time and machining program capacity is suppressed.
技术方案5的控制装置具有:第三判定部,该第三判定部对第三距离是否为第三阈值以下进行判定,所述第三距离是指将由第二修正部修正后的相邻的两个所述指令点相连的线段与位于由第二修正部修正后的相邻的两个指令点之间并由第二修正部修正后的插补点之间的距离;以及第二插补点删除部,当第三判定部判定为第三距离为第三阈值以下时,该第二插补点删除部将由第二修正部修正后的插补点删除。当将修正后的相邻的两个指令点相连的线段与位于所述两个指令点之间的修正后的插补点之间的第三距离小于第三阈值时,控制装置将修正后的插补点删除。通过删除插补点,抑制加工时间和加工程序的容量增加。The control device according to claim 5 includes a third determination unit that determines whether a third distance between two adjacent distances corrected by the second correction unit is equal to or less than a third threshold value. The distance between the line segment connecting the instruction points and the interpolation point between the two adjacent instruction points corrected by the second correction unit and corrected by the second correction unit; and the second interpolation point The deletion unit deletes the interpolation point corrected by the second correction unit when the third determination unit determines that the third distance is equal to or less than the third threshold value. When the third distance between the corrected line segment connecting two adjacent command points and the corrected interpolation point between the two command points is smaller than the third threshold, the control device will Interpolation points are deleted. By deleting interpolation points, the increase in machining time and machining program capacity is suppressed.
技术方案6的机床具有上述的控制装置和主轴。A machine tool according to claim 6 includes the above-mentioned control device and spindle.
技术方案7的控制方法根据指示主轴位置的多个指令点和设定在多个指令点之间的至少一个插补点设定加工路径,并根据加工路径对主轴的移动进行控制,所述控制方法对相邻的两个所述指令点之间、相邻的所述指令点与插补点之间或相邻的两个插补点之间的距离是否为阈值以下进行判定,当判定为距离为阈值以下时,在相邻的两个指令点之间、相邻的指令点与插补点之间或相邻的两个插补点之间设定插补点,设定与加工径路交叉的评价截面,对设定的评价截面与加工路径的交点进行运算,对运算出的交点的位置进行修正,并根据修正后的交点对指令点和插补点在与加工路径交叉的方向上的位置进行修正。The control method of technical solution 7 sets a machining path based on a plurality of command points indicating the position of the main shaft and at least one interpolation point set between the plurality of command points, and controls the movement of the main shaft according to the machining path, the control The method judges whether the distance between two adjacent instruction points, between an adjacent instruction point and an interpolation point, or between two adjacent interpolation points is below a threshold. When it is below the threshold, set an interpolation point between two adjacent instruction points, between an adjacent instruction point and an interpolation point, or between two adjacent interpolation points, and set the Evaluate the section, calculate the intersection point between the set evaluation section and the processing path, correct the position of the calculated intersection point, and compare the positions of the command point and the interpolation point in the direction intersecting the processing path according to the corrected intersection point Make corrections.
附图说明Description of drawings
图1是表示实施方式的机床的立体图。FIG. 1 is a perspective view showing a machine tool according to an embodiment.
图2是表示控制装置的结构的框图。FIG. 2 is a block diagram showing the configuration of a control device.
图3是表示对工件的加工路径和评价截面的俯视图。Fig. 3 is a plan view showing a machining path and an evaluation cross section of a workpiece.
图4是表示对工件的评价截面的立体图。Fig. 4 is a perspective view showing an evaluation cross section of a workpiece.
图5是说明由控制装置进行的加工路径设定处理的流程图。FIG. 5 is a flowchart illustrating machining route setting processing performed by the control device.
图6是简略表示指令点、插补点、加工路径的示意图。FIG. 6 is a schematic diagram schematically showing command points, interpolation points, and machining paths.
图7是说明根据第一插补方法进行的插补点设定处理的流程图。7 is a flowchart illustrating interpolation point setting processing performed according to the first interpolation method.
图8是说明根据第二插补方法进行的插补点设定处理的流程图。8 is a flowchart illustrating interpolation point setting processing performed according to the second interpolation method.
图9是表示指令点、插补点、评价截面与加工路径的交点的示意图。FIG. 9 is a schematic diagram showing intersection points of instruction points, interpolation points, evaluation cross sections, and machining paths.
图10是表示给指令点和插补点分配共同标识符之后的指令点、插补点、评价截面与加工路径的交点的示意图。FIG. 10 is a schematic diagram showing intersection points of instruction points, interpolation points, evaluation cross sections, and machining paths after assigning common identifiers to the instruction points and interpolation points.
图11是表示交点表的一例的示意图。FIG. 11 is a schematic diagram showing an example of an intersection table.
图12是说明评价截面上的交点位置的第一修正方法的说明图。FIG. 12 is an explanatory diagram illustrating a first correction method for the intersection point position on the evaluation cross section.
图13是说明评价截面上的交点位置的第二修正方法的说明图。FIG. 13 is an explanatory diagram for explaining a second correction method of the intersection point position on the evaluation cross section.
图14A是说明指令点和插补点的修正方法的说明图。FIG. 14A is an explanatory diagram illustrating a method of correcting command points and interpolation points.
图14B是说明指令点和插补点的修正方法的说明图。FIG. 14B is an explanatory diagram illustrating a method of correcting command points and interpolation points.
图15是说明由控制装置进行的指令点/插补点修正处理的流程图。Fig. 15 is a flowchart illustrating command point/interpolation point correction processing performed by the control device.
图16是说明插补点的第一删除方法的说明图。FIG. 16 is an explanatory diagram illustrating a first method of deleting interpolation points.
图17是说明根据第一删除方法进行的插补点删除处理的流程图。FIG. 17 is a flowchart illustrating interpolation point deletion processing according to the first deletion method.
图18是说明插补点的第二删除方法的说明图。FIG. 18 is an explanatory diagram illustrating a second deletion method of interpolation points.
图19是说明根据第二删除方法进行的插补点删除处理的流程图。FIG. 19 is a flowchart illustrating interpolation point deletion processing according to the second deletion method.
图20是表示变形例的对工件的加工路径和评价截面的俯视图。FIG. 20 is a plan view showing a machining path and an evaluation cross section of a workpiece according to a modified example.
具体实施方式detailed description
根据附图对实施方式的机床进行说明。在以下说明中,使用附图中的箭头表示的上下、左右和前后。机床100具有沿前后方向延伸的矩形的基台1。工件保持部3设置在基台1上部的前侧。工件保持部3能绕A轴、C轴进行旋转。A轴的轴向为左右方向。C轴的轴向为上下方向。A machine tool according to the embodiment will be described with reference to the drawings. In the following description, up and down, left and right, and front and rear indicated by arrows in the drawings are used. The machine tool 100 has a rectangular base 1 extending in the front-rear direction. The workpiece holding portion 3 is provided on the front side of the upper portion of the base 1 . The workpiece holding part 3 is rotatable around the A axis and the C axis. The axial direction of the A-axis is the left-right direction. The axial direction of the C-axis is the up-down direction.
用于支承柱4的支承台2设于基台1上部的后侧。Y轴方向移动机构10设于支承台2的上部,使柱4沿前后方向移动。Y轴方向移动机构10具有沿前后方向延伸的两个轨道11、Y轴螺纹轴12、Y轴马达13和轴承14。A support table 2 for supporting a column 4 is provided on the rear side of the upper part of the base 1 . The Y-axis direction movement mechanism 10 is provided on the upper part of the support table 2, and moves the column 4 in the front-rear direction. The Y-axis direction moving mechanism 10 has two rails 11 extending in the front-rear direction, a Y-axis threaded shaft 12 , a Y-axis motor 13 and a bearing 14 .
轨道11设于支承台2上部的左边和右边。Y轴螺纹轴12沿前后方向延伸,并设于两个轨道11之间。轴承14设于Y轴螺纹轴12的前端部和中途部(未图示)。Y轴马达13与Y轴螺纹轴12的后端部连接。The track 11 is located on the left and right sides of the support platform 2 top. The Y-axis threaded shaft 12 extends along the front-rear direction and is arranged between the two rails 11 . Bearings 14 are provided on the front end and the middle of the Y-axis threaded shaft 12 (not shown). The Y-axis motor 13 is connected to the rear end of the Y-axis threaded shaft 12 .
螺母(未图示)经由转动体(未图示)螺合于Y轴螺纹轴12。转动体例如是球。多个滑动件15能滑动地设于各轨道11。移动板16与螺母及滑动件15的上部连接。移动板16沿水平方向延伸。Y轴螺纹轴12通过Y轴马达13的旋转而旋转,藉此,螺母沿前后方向移动,移动板16沿前后方向移动。A nut (not shown) is screwed to the Y-axis threaded shaft 12 via a rotating body (not shown). The rotating body is, for example, a ball. A plurality of sliders 15 are slidably provided on each rail 11 . The moving plate 16 is connected with the nut and the upper part of the slider 15 . The moving plate 16 extends in the horizontal direction. The Y-axis threaded shaft 12 is rotated by the rotation of the Y-axis motor 13 , whereby the nut moves in the front-back direction, and the moving plate 16 moves in the front-back direction.
X轴方向移动机构20设于移动板16的上表面,并使柱4沿左右方向移动。X轴方向移动机构20具有沿左右方向延伸的两个轨道21、X轴螺纹轴22、X轴马达23(参照图2)和轴承24。The X-axis direction moving mechanism 20 is provided on the upper surface of the moving plate 16, and moves the column 4 in the left-right direction. The X-axis direction movement mechanism 20 has two rails 21 extending in the left-right direction, an X-axis threaded shaft 22 , an X-axis motor 23 (see FIG. 2 ), and a bearing 24 .
轨道21设于移动板16上表面的前边和后边。X轴螺纹轴22沿左右延伸,并设于两个轨道21之间。轴承24设于X轴螺纹轴22的左端部和中途部(未图示)。X轴马达23与X轴螺纹轴22的后端部连接。Rails 21 are provided on the front and rear sides of the upper surface of the movable plate 16 . The X-axis threaded shaft 22 extends left and right and is arranged between the two rails 21 . The bearing 24 is provided on the left end portion and the middle portion of the X-axis threaded shaft 22 (not shown). The X-axis motor 23 is connected to the rear end of the X-axis threaded shaft 22 .
螺母(未图示)经由转动体(未图示)螺合于X轴螺纹轴22。多个滑动件26能滑动地设于各轨道21。柱4与螺母及滑动件26的上部连接。X轴螺纹轴22通过X轴马达23的旋转而旋转,藉此,螺母沿左右方向移动,柱4沿前后方向移动。A nut (not shown) is screwed to the X-axis threaded shaft 22 via a rotating body (not shown). A plurality of sliders 26 are slidably provided on each rail 21 . The column 4 is connected with the upper part of the nut and the slider 26 . The X-axis threaded shaft 22 is rotated by the rotation of the X-axis motor 23 , whereby the nut moves in the left-right direction and the column 4 moves in the front-back direction.
Z轴方向移动机构30设于柱4的前表面,并使主轴头5沿上下方向移动。Z轴方向移动机构30具有沿上下方向延伸的两个轨道31、Z轴螺纹轴32、Z轴马达33和轴承34。The Z-axis direction movement mechanism 30 is provided on the front surface of the column 4, and moves the spindle head 5 in the vertical direction. The Z-axis direction moving mechanism 30 has two rails 31 extending in the vertical direction, a Z-axis threaded shaft 32 , a Z-axis motor 33 and a bearing 34 .
轨道31设于柱4前表面的左边和右边。Z轴螺纹轴32沿上下方向延伸,并设于两个轨道31之间。轴承34设于Z轴螺纹轴32的下端部和中途部(未图示)。Z轴马达33与Z轴螺纹轴32的上端部连接。Rails 31 are provided on the left and right sides of the front surface of the column 4 . The Z-axis threaded shaft 32 extends vertically and is disposed between the two rails 31 . The bearing 34 is provided on the lower end portion and the middle portion of the Z-axis threaded shaft 32 (not shown). The Z-axis motor 33 is connected to the upper end of the Z-axis threaded shaft 32 .
螺母(未图示)经由转动体(未图示)螺合于Z轴螺纹轴32。多个滑动件35能滑动地设于各轨道31。主轴头5与螺母及滑动件35的前部连接。Z轴螺纹轴32通过Z轴马达33的旋转而旋转,藉此,螺母沿上下方向移动,主轴头5沿上下方向移动。Z轴马达33、Z轴螺纹轴32、螺母、转动体构成滚珠丝杠机构。A nut (not shown) is screwed to the Z-axis threaded shaft 32 via a rotating body (not shown). A plurality of sliders 35 are slidably provided on each rail 31 . The spindle head 5 is connected with the nut and the front part of the slider 35 . The Z-axis threaded shaft 32 is rotated by the rotation of the Z-axis motor 33 , whereby the nut moves up and down, and the spindle head 5 moves up and down. The Z-axis motor 33, the Z-axis threaded shaft 32, the nut and the rotating body constitute a ball screw mechanism.
沿上下方向延伸的主轴5a设于主轴头5内。主轴5a绕轴旋转。主轴马达6设于主轴头5的上端部。主轴5a的下端部安装有工具。主轴5a通过主轴马达6的旋转而旋转,藉此,工具旋转。旋转的工具对由工件保持部3保持的工件W(参照图3)进行加工。机床100具有更换工具的工具更换装置(未图示)。工具更换装置对收容于工具库(未图示)的工具与安装于主轴5a的工具进行更换。A spindle 5 a extending in the vertical direction is provided in the spindle head 5 . The main shaft 5a rotates around the axis. The spindle motor 6 is provided on the upper end portion of the spindle head 5 . A tool is attached to the lower end of the spindle 5a. The spindle 5a is rotated by the rotation of the spindle motor 6, whereby the tool is rotated. The rotating tool processes the workpiece W (see FIG. 3 ) held by the workpiece holder 3 . The machine tool 100 has a tool changing device (not shown) for changing tools. The tool exchange device exchanges a tool stored in a tool magazine (not shown) with a tool attached to the spindle 5a.
如图2所示,控制装置50具有CPU51、存储部52、RAM53、输出输入接口54。存储部52是可擦写的存储器,例如是EPROM、EEPROM等。存储部52对后述的交点表、路径编号i、插补点Hj、指令点Pk、共同标识符Fm、交点Si d、j的最终编号、k的最终编号、阈值L、阈值L2(第二阈值)、阈值L3(第三阈值)、m的最终编号、变量S等进行存储(d、i、j、k、m是自然数)。As shown in FIG. 2 , the control device 50 has 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 EPROM, EEPROM, or the like. The storage unit 52 stores the following table of intersection points, route number i, interpolation point H j , command point P k , common identifier F m , intersection point S i d , final number of j, final number of k, threshold L, and threshold L2 (second threshold), threshold L3 (third threshold), the final number of m, variable S, etc. are stored (d, i, j, k, 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, buttons, a touch panel, or the like. The input/output interface 54 outputs signals to the display unit 8 . The display unit 8 displays characters, graphics, symbols, and the like. The display unit 8 is, for example, a liquid crystal display.
控制装置50具有与X轴马达23对应的X轴控制电路55、伺服放大器55a、微分器23b。X轴马达23具有编码器23a。X轴控制电路55根据来自CPU51的指令,将表示电流量的命令输出至伺服放大器55a。伺服放大器55a接收所述命令,并向X轴马达23输出驱动电流。The control device 50 has 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 has an encoder 23a. The X-axis control circuit 55 outputs a command indicating the amount of current to the servo amplifier 55 a in accordance with a command from the CPU 51 . The servo amplifier 55 a receives the command, and outputs a drive current to the X-axis motor 23 .
编码器23a向X轴控制电路55输出位置反馈信号。X轴控制电路55根据位置反馈信号执行位置的反馈控制。编码器23a向微分器23b输出位置反馈信号,微分器23b将位置反馈信号转换为速度反馈信号并输出至X轴控制电路55。X轴控制电路55根据速度反馈信号执行速度的反馈控制。The encoder 23 a outputs a position feedback signal to the X-axis control circuit 55 . The X-axis control circuit 55 performs position feedback control based on the position feedback signal. The encoder 23 a outputs a position feedback signal to the differentiator 23 b, and the differentiator 23 b converts the position feedback signal into a speed feedback signal and outputs it to the X-axis control circuit 55 . The X-axis control circuit 55 performs feedback control of the speed based on the speed feedback signal.
电流检测器55b检测伺服放大器55a所输出的驱动电流的值。电流检测器55b将驱动电流的值反馈至X轴控制电路55。X轴控制电路55根据驱动电流的值执行电流控制。The current detector 55b detects the value of the drive current output by the servo amplifier 55a. The current detector 55 b feeds back the value of the drive current to the X-axis control circuit 55 . The X-axis control circuit 55 performs current control according to the value of the drive current.
控制装置50具有与Y轴马达13对应的Y轴控制电路56、伺服放大器56a、电流检测器56b、微分器13b,Y轴马达13具有编码器13a。Y轴控制电路56、伺服放大器56a、微分器13b、Y轴马达13、编码器13a、电流检测器56b与X轴的各部件相同,在此省略说明。The control device 50 has a Y-axis control circuit 56 corresponding to the Y-axis motor 13, a servo amplifier 56a, a current detector 56b, and a differentiator 13b, and the Y-axis motor 13 has an encoder 13a. The Y-axis control circuit 56, the servo amplifier 56a, the differentiator 13b, the Y-axis motor 13, the encoder 13a, and the current detector 56b are the same as those of the X-axis, and description thereof will be omitted here.
控制装置50具有与Z轴马达33对应的Z轴控制电路57、伺服放大器57a、电流检测器57b、微分器33b。Z轴马达33具有编码器33a。Z轴控制电路57、伺服放大器57a、微分器33b、Z轴马达33、编码器33a、电流检测器57b与X轴的各部件相同,在此省略说明。The control device 50 has a Z-axis control circuit 57 corresponding to the Z-axis motor 33, a servo amplifier 57a, a current detector 57b, and a differentiator 33b. The Z-axis motor 33 has an encoder 33a. The Z-axis control circuit 57, servo amplifier 57a, differentiator 33b, Z-axis motor 33, encoder 33a, and current detector 57b are the same as those of the X-axis, and description thereof will be omitted here.
控制装置50对主轴马达6执行与X轴马达23相同的反馈控制。机床100具有库马达60和库控制电路58。工具库通过库马达60的旋转而驱动。库控制电路58对库马达60的旋转进行控制。The control device 50 performs the same feedback control as that of the X-axis motor 23 on the spindle motor 6 . The machine tool 100 has a library motor 60 and a library control circuit 58 . The tool magazine is driven by the rotation of the magazine motor 60 . The library control circuit 58 controls the rotation of the library motor 60 .
存储部52储存对工件W进行加工的加工程序。加工程序具有指示主轴5a的位置的多个指令点Pk。k表示构成加工程序的命令的顺序。主轴5a根据多个指令点Pk移动,藉此,安装于主轴5a的工具对工件W进行加工。The storage unit 52 stores a machining program for machining the workpiece W. As shown in FIG. The machining program has a plurality of command points Pk indicating the position of the spindle 5a. k represents the order of commands constituting the machining program. The spindle 5a moves according to a plurality of command points Pk , whereby the tool attached to the spindle 5a processes the workpiece W. As shown in FIG.
存储部52预先存储指令点Pk。控制装置50根据需要在多个指令点Pk之间设定插补点,并根据指令点Pk和插补点设定主轴5a移动的路径(加工路径α)。控制装置50根据加工路径α执行主轴5a的移动。The storage unit 52 stores the instruction point P k in advance. The control device 50 sets interpolation points among a plurality of command points P k as necessary, and sets a path (machining path α) along which the spindle 5 a moves based on the command points P k and the interpolation points. The control device 50 executes the movement of the spindle 5a according to the machining path α.
下面说明加工路径α的设定方法。图3、图4中的X方向表示左右方向,Y方向表示前后方向,Z方向表示上下方向,工件W的形状是加工后的形状。Next, the setting method of the machining path α will be described. The X direction in FIGS. 3 and 4 represents the left-right direction, the Y direction represents the front-rear direction, and the Z direction represents the up-down direction, and the shape of the workpiece W is the shape after processing.
控制装置50对工件W设定评价截面Dd(d表示截面编号,是自然数)。当主轴5a沿X轴方向作往复移动时,加工路径α是沿X方向的路径。控制装置50设定多个沿与加工路径α大致直交的方向的评价截面Dd。多个评价截面沿X方向排列。另外,操作者预先指示加工路径α为X方向。The control device 50 sets an evaluation section D d (d represents a section number and is a natural number) for the workpiece W. When the main shaft 5a reciprocates along the X-axis direction, the machining path α is a path along the X-axis direction. The control device 50 sets a plurality of evaluation cross-sections D d along a direction substantially perpendicular to the machining path α. A plurality of evaluation cross sections are arranged along the X direction. In addition, the operator instructs the machining path α to be in the X direction in advance.
在输入开始信号之后,控制装置50执行加工路径设定处理。例如,用户对操作部7进行操作,将开始信号输入控制装置。如图5所示,CPU51执行插补点设定处理(步骤S1),执行指令点/插补点修正处理(步骤S2),执行插补点删除处理(步骤S3)。插补点设定处理、指令点/插补点修正处理、插补点删除处理的详细情况会在后面进行说明。After the start signal is input, the control device 50 executes machining route setting processing. For example, the user operates the operation unit 7 to input a start signal to the control device. As shown in FIG. 5 , the CPU 51 executes interpolation point setting processing (step S1 ), command point/interpolation point correction processing (step S2 ), and interpolation point deletion processing (step S3 ). Details of interpolation point setting processing, command point/interpolation point correction processing, and interpolation point deletion processing will be described later.
下面说明插补点设定处理。图6的“i”(i为自然数)表示主轴5a的X方向移动的路径编号。如图6所示,例如路径编号1(i=1)的路径表示从左向右的路径,路径编号2(i=2)的路径表示在径路编号1的路径的右端处折返后从右向左移动的路径。路径编号3以后也相同。主轴5a按路径编号顺序移动。●表示指令点,○内有×的部位表示插补点。箭头表示加工路径α的前进方向。Next, the interpolation point setting processing will be described. "i" (i is a natural number) in FIG. 6 shows the path number of the X direction movement of the main shaft 5a. As shown in Figure 6, for example, the path of path number 1 (i=1) represents a path from left to right, and the path of path number 2 (i=2) represents a path from right to right after turning back at the right end of path number 1. Path to move left. The same applies to route number 3 and onwards. The spindle 5a moves in the order of the path numbers. ●Indicates the instruction point, and the part with × in ○ indicates the interpolation point. Arrows indicate the advancing direction of the machining path α.
“j”(j是自然数)表示插补点的编号。相邻的两点之间(相邻的两个指令值之间、相邻的指令点与插补点之间或相邻的两个插补点之间)的距离D大于阈值L时,CPU51在两点之间设定插补点。CPU51例如用第一插补方法设定插补点。"j" (j is a natural number) represents the number of the interpolation point. When the distance D between two adjacent points (between two adjacent instruction values, between an adjacent instruction point and an interpolation point, or between two adjacent interpolation points) is greater than the threshold L, the CPU51 Set an interpolation point between two points. The CPU 51 sets the interpolation points by, for example, the first interpolation method.
下面说明根据第一插补方法进行的插补点设定处理。如图7所示,CPU51对j、k设定1(步骤S11),读入指令点Pk、指令点Pk+1(步骤S12)。CPU51对指令点Pk与指令点Pk+1之间的距离D和阈值L进行比较,并判定距离D是否为阈值L以下(步骤S13)。Next, the interpolation point setting process performed by the first interpolation method will be described. As shown in FIG. 7, the CPU 51 sets 1 to j and k (step S11), and reads the command point Pk and the command point Pk+1 (step S12). The CPU 51 compares the distance D between the command point P k and the command point P k+1 with the threshold L, and determines whether the distance D is equal to or less than the threshold L (step S13 ).
距离D为阈值L以下时(步骤S13:是),CPU51使处理前进至后述的步骤S18。距离D不是阈值L以下时(步骤S13:否),CPU51在相邻的两点之间的中央设定插补点Hj(步骤S14)。相邻的两点是两个指令点Pk、Pk+1。但是,在设定一个或多个插补点之后,相邻的两点可以是相邻的指令点和插补点,或者也可以是相邻的两个插补点。When the distance D is equal to or less than the threshold value L (step S13: Yes), the CPU 51 advances the process to step S18 described later. When the distance D is not equal to or less than the threshold value L (step S13: No), the CPU 51 sets an interpolation point Hj at the center between two adjacent points (step S14). The two adjacent points are two command points P k and P k+1 . However, after one or more interpolation points are set, the adjacent two points may be the adjacent instruction point and the interpolation point, or may be the adjacent two interpolation points.
CPU51将插补点Hj的位置信息以与指令点Pk、Pk+1的位置信息对应的方式存储至存储部52(步骤S15)。CPU51对所有的相邻两点之间的距离是否都为阈值L以下进行判定(步骤S16)。所有的相邻两点之间的距离是指令点Pk与插补点Hj之间的距离以及插补点Hj与指令点Pk+1之间的距离。但是,在设定多个插补点之后,相邻的指令点和插补点或相邻的两个指令点也包含于所有的相邻两点。The CPU 51 stores the position information of the interpolation point H j in the storage unit 52 in association with the position information of the instruction points P k and P k+1 (step S15 ). The CPU 51 judges whether all the distances between two adjacent points are equal to or less than the threshold value L (step S16). All the distances between two adjacent points are the distance between the command point P k and the interpolation point H j and the distance between the interpolation point H j and the command point P k+1 . However, after setting a plurality of interpolation points, the adjacent command point and interpolation point or two adjacent command points are also included in all the adjacent two points.
并非所有的相邻两点之间的距离都为阈值L以下时(步骤S16:否),CPU51对j加1(步骤S17),使处理返回到步骤S14。所有的相邻两点之间的距离都为阈值L以下时(步骤S16:是),CPU51对指令点Pk+1是否是最终指令点进行判定(步骤S18)。例如,CPU51对k是否在存储于存储部52的最终编号以上进行判定,k在最终编号以上时,判定为指令点Pk+1是最终指令点,k不在最终编号以上时,判定为指令点Pk+1不是最终指令点。When not all the distances between adjacent two points are equal to or less than the threshold value L (step S16: NO), the CPU 51 adds 1 to j (step S17), and returns the process to step S14. When the distances between all the adjacent two points are below the threshold L (step S16: Yes), the CPU 51 determines whether the command point Pk+1 is the final command point (step S18). For example, the CPU 51 determines whether k is greater than or equal to the final number stored in the storage unit 52. When k is greater than the final number, it is determined that the command point P k+1 is the final command point. When k is not greater than the final number, it is determined that it is the command point. P k+1 is not the final instruction point.
指令点Pk+1不是最终指令点时(步骤S18:否),CPU51对k加1(步骤S19),使处理返回到步骤S12。指令点Pk+1是最终指令点时(步骤S18:是),CPU51使处理返回到指令点/插补点处理(步骤S2,参照图5)。步骤S13构成判定部,步骤S14至S17构成插补点设定部,步骤S14构成中央设定部。When the instruction point P k+1 is not the final instruction point (step S18: NO), the CPU 51 adds 1 to k (step S19), and returns the process to step S12. When the instruction point Pk+1 is the final instruction point (step S18: YES), the CPU 51 returns the process to the instruction point/interpolation point processing (step S2, see FIG. 5). Step S13 constitutes a determination unit, steps S14 to S17 constitute an interpolation point setting unit, and step S14 constitutes a central setting unit.
使用图6所示的加工路径α的路径编号5(i=5),说明根据上述第一插补方法进行的插补点设定处理的一例。指令点P15与指令点P16之间的距离超过阈值L。插补点Hj的编号使用路径编号5的上侧表示的编号。括号内的插补点Hj是采用后述的第二插补方法时的插补点。Using the route number 5 (i=5) of the machining route α shown in FIG. 6 , an example of the interpolation point setting process performed by the above-mentioned first interpolation method will be described. The distance between the command point P15 and the command point P16 exceeds the threshold L. As the number of the interpolation point Hj , the number indicated above the route number 5 is used. The interpolation points H j in parentheses are interpolation points when the second interpolation method described later is used.
CPU51在指令点P15与指令点P16之间的中央设定插补点H4。指令点P15与指令点H4之间的距离、指令点H4与指令点P16之间的距离超过阈值L。CPU51在指令点P15与插补点H4之间的中央设定插补点H5。指令点P15与指令点H5之间的距离、两个插补点H4、H5之间的距离超过阈值L。CPU51在指令点P15与插补点H5之间的中央设定插补点H6。指令点P15与指令点H6之间的距离、两个插补点H6、H5之间的距离为阈值L以下。CPU51在两个插补点H5、H4之间的中央设定插补点H7。两个插补点H5、H7之间的距离、两个插补点H7、H4之间的距离为阈值L以下。相同地,CPU51在插补点H4与指令点P16之间设定插补点H8、H9、H10。两个插补点H4、H9之间的距离、两个插补点H9、H8之间的距离、两个插补点H8、H10之间的距离、插补点H10与指令点P16之间的距离为阈值L以下。The CPU 51 sets an interpolation point H 4 at the center between the command point P 15 and the command point P 16 . The distance between the instruction point P15 and the instruction point H4, and the distance between the instruction point H4 and the instruction point P16 exceed the threshold L. The CPU 51 sets an interpolation point H 5 at the center between the command point P 15 and the interpolation point H 4 . The distance between the instruction point P15 and the instruction point H5 , and the distance between the two interpolation points H4, H5 exceed the threshold L. The CPU 51 sets an interpolation point H 6 at the center between the command point P 15 and the interpolation point H 5 . The distance between the command point P15 and the command point H6 , and the distance between the two interpolation points H6 and H5 are equal to or smaller than the threshold value L. The CPU 51 sets an interpolation point H 7 at the center between the two interpolation points H 5 and H 4 . The distance between the two interpolation points H 5 and H 7 and the distance between the two interpolation points H 7 and H 4 are equal to or less than the threshold L. Similarly, the CPU 51 sets interpolation points H 8 , H 9 , and H 10 between the interpolation point H 4 and the command point P 16 . Distance between two interpolation points H 4 , H 9 , distance between two interpolation points H 9 , H 8 , distance between two interpolation points H 8 , H 10 , interpolation point H 10 The distance from the command point P16 is equal to or less than the threshold L.
CPU51例如用第二插补方法设定插补点。如图8所示,CPU51对j、k设定1(步骤S21),读入指令点Pk和指令点Pk+1(步骤S22)。CPU51对指令点Pk与指令点Pk+1之间的距离D和阈值L进行比较,判定距离D是否为阈值L以下(步骤S23)。距离D为阈值L以下时(步骤S23:是),CPU51使处理前进至后述的步骤S29。距离D不是阈值L以下时(步骤S23:否),CPU51将指令点Pk的位置信息储存于变量S(步骤S24)。CPU51在从储存于变量S的位置向指令点Pk+1侧隔开阈值L的位置设定插补点Hj(步骤S25)。CPU51将插补点Hj的位置信息以与指令点Pk和Pk+1的位置信息对应的方式存储至存储部52(步骤S26)。The CPU 51 sets interpolation points using, for example, the second interpolation method. As shown in FIG. 8 , the CPU 51 sets 1 to j and k (step S21 ), and reads the instruction point P k and the instruction point P k+1 (step S22 ). The CPU 51 compares the distance D between the command point P k and the command point P k+1 with the threshold L, and determines whether the distance D is equal to or less than the threshold L (step S23 ). When the distance D is equal to or less than the threshold value L (step S23: Yes), the CPU 51 advances the process to step S29 described later. When the distance D is not equal to or less than the threshold value L (step S23: NO), the CPU 51 stores the positional information of the instruction point Pk in the variable S (step S24). The CPU 51 sets the interpolation point H j at a position separated by the threshold value L from the position stored in the variable S toward the command point P k+1 (step S25 ). The CPU 51 stores the position information of the interpolation point H j in the storage unit 52 in association with the position information of the instruction points P k and P k+1 (step S26 ).
CPU51对插补点Hj与指令点Pk+1之间的距离是否为阈值以下进行判定(步骤S27)。插补点Hj与指令点Pk+1之间的距离不是阈值以下时(步骤S27:否),CPU51对j加1,将插补点Hj的位置信息储存于变量S(步骤S28),并使处理返回到步骤S25。The CPU 51 determines whether or not the distance between the interpolation point Hj and the command point Pk+1 is equal to or less than a threshold (step S27). When the distance between the interpolation point H j and the command point P k+1 is not below the threshold (step S27: No), the CPU 51 adds 1 to j, and stores the position information of the interpolation point H j in the variable S (step S28) , and returns the process to step S25.
插补点Hj与指令点Pk+1之间的距离为阈值L以下时(步骤S27:是),CPU51对指令点Pk+1是否是最终指令点进行判定(步骤S29)。指令点Pk+1不是最终指令点时(步骤S29:否),CPU51对k加1(步骤S30),使处理返回到步骤S22。指令点Pk+1是最终指令点时(步骤S29:是)、CPU51使处理前进至指令点/插补点修正处理(步骤S2,参照图5)。执行步骤S23的CPU51构成判定部,执行步骤S24至S28的CPU51构成插补点设定部,执行步骤S25的CPU51构成隔开位置设定部。When the distance between the interpolation point Hj and the command point Pk+1 is equal to or less than the threshold value L (step S27: Yes), the CPU 51 determines whether the command point Pk+1 is the final command point (step S29). When the command point P k+1 is not the final command point (step S29: NO), the CPU 51 adds 1 to k (step S30), and returns the process to step S22. When the command point P k+1 is the final command point (step S29: YES), the CPU 51 advances the process to the command point/interpolation point correction process (step S2, see FIG. 5). The CPU 51 executing step S23 constitutes a determination unit, the CPU 51 executing steps S24 to S28 constitutes an interpolation point setting portion, and the CPU 51 executing step S25 constitutes a separation position setting portion.
下面使用图6所示的加工路径α的路径编号5(i=5),说明根据上述第二插补方法进行的插补点设定处理的一例。指令点P15与指令点P16之间的距离超过阈值L。插补点Hj的编号使用表示在括号内的编号。Next, an example of the interpolation point setting process performed by the above-mentioned second interpolation method will be described using the route number 5 (i=5) of the machining route α shown in FIG. 6 . The distance between the command point P15 and the command point P16 exceeds the threshold L. The number of the interpolation point H j uses the number shown in parentheses.
CPU51在从指令点P15向指令点P16侧隔开阈值L的位置设定插补点(H4)。插补点(H4)与指令点P16之间的距离超过阈值L。CPU51在从插补点(H4)向指令点P16侧隔开阈值L的位置设定插补点(H5)。插补点(H5)与指令点P16之间的距离超过阈值L。相同地,CPU51在比插补点(H5)靠指令点P16侧的位置设置阈值L的距离,依次设定插补点(H6)至插补点(H10)。插补点(H10)与指令点P16之间的距离为阈值L以下。The CPU 51 sets an interpolation point (H 4 ) at a position separated by the threshold value L from the command point P15 to the command point P16 side. The distance between the interpolation point (H 4 ) and the instruction point P 16 exceeds the threshold L. The CPU 51 sets the interpolation point (H 5 ) at a position separated by the threshold value L from the interpolation point (H 4 ) toward the command point P 16 side. The distance between the interpolation point (H 5 ) and the instruction point P 16 exceeds the threshold L. Similarly, the CPU 51 sets a distance of the threshold value L at a position closer to the command point P16 than the interpolation point (H 5 ), and sequentially sets the interpolation point (H 6 ) to the interpolation point (H 10 ). The distance between the interpolation point (H 10 ) and the command point P 16 is equal to or less than the threshold L.
下面说明指令点/插补点修正处理。图9表示指令点Pk、插补点Hj、评价截面Dd与加工路径α的交点Si d,图10表示给指令点Pk和插补点Hj分配共同标识符Fm(m是自然数)之后的指令点、插补点、评价截面Dd与加工路径α的交点Si d。CPU51给指令点和插补点分配标识符Fm。CPU51将标识符Fm以与指令点Pk和插补点Hj对应的方式存储至存储部52。Next, the command point/interpolation point correction processing will be described. Fig. 9 shows command point P k , interpolation point H j , intersection S i d of evaluation section D d and machining path α, and Fig. 10 shows the allocation of common identifier F m ( m is a natural number), the command point, the interpolation point, the intersection point S i d of the evaluation section D d and the machining path α. The CPU 51 assigns an identifier F m to the instruction point and the interpolation point. The CPU 51 stores the identifier F m in the storage unit 52 in association with the command point P k and the interpolation point H j .
如图11所示,控制装置50对各评价截面Dd与移动路径Fm-Fm+1的交点Si d进行运算,并将路径编号i、交点Si d的坐标值、移动路径Fm-Fm+1对应地存储至交点表。如上所述,i(i是自然数)表示主轴5a的X方向移动的路径编号。控制装置50构成运算部。As shown in FIG. 11 , the control device 50 calculates the intersection point S i d of each evaluation section D d and the moving path F m −F m+1 , and calculates the path number i, the coordinate value of the intersection point S i d , and the moving path F m - F m+1 are correspondingly stored in the intersection table. As described above, i (i is a natural number) represents the path number of the X-direction movement of the spindle 5a. The control device 50 constitutes a computing unit.
如图12所示,控制装置50例如用第一修正方法对评价截面Dd上的交点位置进行修正。控制装置50逐步改变Z方向的坐标值来进行修正。对于修正对象的交点Si d的坐标值,使用前后各两个的交点si-2 d、si-1 d、si+1 d、si+2 d的坐标值确定修正点tid。As shown in FIG. 12 , the control device 50 corrects the position of the intersection point on the evaluation section Dd , for example, using the first correction method. The control device 50 performs correction by gradually changing the coordinate value in the Z direction. For the coordinate value of the intersection point S i d of the correction object, use the coordinate values of the two intersection points s i-2 d , s i-1 d , s i+1 d , and s i+2 d to determine the correction point t id .
将四个交点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坐标值的差分是d(i-2,i-1)=zi-2-zi-1、d(i-1,i)=zi-1-zi’、d(i,i+1)=zi’-zi+1、d4(i+1,i+2)=zi+1-zi+2,控制装置50对Z坐标值的二次差分d12’、d23’、d34’(Z坐标的差分d(i-2,i-1)、d(i-1,i)、d(i,i+1)、d4(i+1,i+2)的差分)呈线性变化的zi’进行运算。Set the Z coordinate values of the four intersection points s i-2 d , s i-1 d , s i+1 d , s i+2 d to z i-2 , z i-1 , z i+1 , z i +2 and the Z coordinate value of the correction point t i d is set to z i ', the difference of the Z coordinate value is d (i-2,i-1) = z i-2 -z i-1 , d (i -1,i) =z i-1 -z i ', d (i,i+1) =z i '-z i+1 , d 4(i+1,i+2) =z i+1 - z i+2 , the secondary difference d 12 ′, d 23 ′, d 34 ′ of the control device 50 to the Z coordinate value (difference of the Z coordinate d (i-2,i-1) , d (i-1,i ) , d (i,i+1) , d 4(i+1,i+2) difference) z i ' which changes linearly is operated.
Z坐标值的二次差分d12’、d23’、d34’用下式求得。The second difference d 12 ′, d 23 ′, and d 34 ′ of the Z coordinate value are obtained by the following formula.
d12’=d(i-1,i)-d(i-2,i-1)=(zi-1-zi’)-(zi-2-zi-1)=2zi-1-zi’-zi-2……(1)d 12 '=d (i-1,i) -d (i-2,i-1) =(z i-1 -z i ')-(z i-2 -z i-1 )=2z i- 1 -z i '-z i-2 ... (1)
d23’=d(i,i+1)-d(i-1,i)=(zi’-zi+1)-(zi-1-zi’)=2zi’-zi+1-zi-1……(2)d 23 '=d (i,i+1) -d (i-1,i) =(z i '-z i+1 )-(z i-1 -z i ')=2z i '-z i +1 -z i-1 ... (2)
d34’=d4(i+1,i+2)-d(i,i+1)=(zi+1-zi+2)-(zi’-zi+1)=2zi+1-zi+2-zi’……(3)d 34 '=d 4(i+1,i+2) -d (i,i+1) =(z i+1 -z i+2 )-(z i '-z i+1 )=2z i +1 -z i+2 -z i '...(3)
这些d12’、d23’、d34’呈线性变化,因此,满足下式。Since these d 12 ′, d 23 ′, and d 34 ′ change linearly, the following formula is satisfied.
d23’=(d12’+d34’)/2……(4)d 23 '=(d 12 '+d 34 ')/2...(4)
若根据式(1)至式(4)来求解zi’,则可得到以下式。If z i ' is solved according to formula (1) to formula (4), the following formula can be obtained.
zi’=(-zi-2+4zi-1+4zi+1-zi+2)/6z i '=(-z i-2 +4z i-1 +4z i+1 -z i+2 )/6
对评价截面Dd上的所有的交点Si d进行上述修正。也可以仅对与其它交点的Z坐标值相比Z坐标大幅度远离的交点进行修正。The above-mentioned correction is performed for all intersection points S i d on the evaluation section D d . It is also possible to correct only the intersection points whose Z coordinates are far away from the Z coordinate values of other intersection points.
如图13所示,控制装置50例如用第二修正方法对评价截面Dd上的交点位置进行修正。在图13中,u相当于XY坐标,v相当于Z坐标。控制装置50使用位于修正对象的交点Si d周围的其它多个交点生成平滑的曲线(样条曲线、贝塞尔曲线、NURBS曲线等),并将修正对象的交点Si d投影到该曲线上。As shown in FIG. 13 , the control device 50 corrects the position of the intersection point on the evaluation section Dd , for example, by the second correction method. In FIG. 13, u corresponds to XY coordinates, and v corresponds to Z coordinates. The control device 50 generates a smooth curve (spline curve, Bezier curve, NURBS curve, etc.) using other plural intersection points located around the intersection point S id of the correction object, and projects the intersection point S id of the correction object onto the curve superior.
作为平滑的曲线而使用四个交点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)用下式表示。When four intersection points s i-2 d , s i-1 d , s i+1 d , and s i+2 d are used as smooth curves, the section s i-2 d on the cross-section D d (uv plane) is evaluated Each curve formula v 1 (u), v 2 (u), v 3 of ~s i-1 d , interval s i-1 d ~s i+1 d , interval s i+1 d ~s i+2 d (u) is represented by the following formula.
vj(u)=aj(u-uj)3+bj(u-uj)2+cj(u-uj)+dj v j (u)=a j (uu j ) 3 +b j (uu j ) 2 +c j (uu j )+d j
(j=1、2、3)(j=1, 2, 3)
根据vj(u)经过交点si-2 d、si-1 d、si+1 d、si+2 d且交界点处的一次导函数与二次导函数连续,控制装置50能确定aj至dj。四个交点的选择不仅限于上述的位于交点Si d两侧相邻位置的连续两点。例如,也可像交点si-3 d、si-1 d、si+1 d、si+3 d这样以两点为单位选择不连续的交点。如图13所示,修正点ti d的位置是平滑曲线上的离修正对象的交点Si d的距离最短的位置。According to v j (u) passing through the intersection points s i-2 d , s i-1 d , s i+1 d , s i+2 d and the first and second derivatives at the intersection points are continuous, the control device 50 can Determine a j to d j . The selection of the four intersection points is not limited to the above-mentioned two consecutive points located adjacent to both sides of the intersection point S i d . For example, discontinuous intersection points may be selected in units of two points such as the intersection points s i-3 d , s i-1 d , s i+1 d , and s i+3 d . As shown in FIG. 13 , the position of the correction point t i d is the position on the smooth curve at which the distance from the intersection point S i d to be corrected is the shortest.
将存在于第d个评价截面Dd上的修正后的交点组Sd设为Td。Let the corrected intersection point group S d existing on the d-th evaluation section D d be T d .
Td={ti d|d:截面编号,i:路径编号}T d ={t i d |d: section number, i: path number}
如图14A和图14B所示,控制装置50使用交点组Td对指令点和插补点的位置进行修正。在图14A和图14B中,Fa至Ff表示指令点或插补点。例如,指令点或插补点Fc是修正对象时,如图14A所示,指令点或插补点Fc位于截面Dd-1与截面Dd之间,路径编号为i。控制装置50参照上述的交点表,获取与指令点或插补点Fc相关的截面位置和路径编号。As shown in FIGS. 14A and 14B , the control device 50 corrects the positions of the command point and the interpolation point using the intersection point group Td . In FIGS. 14A and 14B , F a to F f represent instruction points or interpolation points. For example, when the command point or interpolation point F c is the correction target, as shown in FIG. 14A , the command point or interpolation point F c is located between section Dd-1 and section Dd , and the path number is i. The control device 50 refers to the above-mentioned intersection table, and acquires the cross-sectional position and the path number related to the command point or the interpolation point Fc .
如图14B所示,控制装置50对指令点或插补点Fc周围的交点、例如排列在加工路径上的四个交点ti d+1、ti d、ti d-1、ti d-2进行搜索。控制装置50由四个交点ti d+1、ti d、ti d-1、ti d-2生成平滑的曲线(样条曲线、贝塞尔曲线、NURBS曲线等),将指令点或插补点Fc投影到该曲线上,并确定修正点Fc’。控制装置50用与上述的第二修正方法相同的方法求出平滑的曲线。修正点Fc’的位置是平滑曲线上的离指令点或插补点Fc的距离最短的位置。控制装置50对其它的指令点或插补点的位置同样地进行修正。As shown in FIG. 14B , the control device 50 controls the intersection points around the command point or the interpolation point Fc, for example, the four intersection points t i d +1 , t i d , t i d-1 , t i d-2 to search. The control device 50 generates a smooth curve (spline curve, Bezier curve, NURBS curve, etc.) from four intersection points t i d+1 , t i d , t i d-1 , t i d-2 , Or project the interpolation point F c onto the curve, and determine the correction point F c '. The control device 50 obtains a smooth curve by the same method as the above-mentioned second correction method. The position of the correction point Fc ' is the position on the smooth curve at which the distance from the command point or the interpolation point Fc is the shortest. The control device 50 similarly corrects the positions of other command points or interpolation points.
下面说明由控制装置50进行的指令点/插补点修正处理。如图15所示,CPU51设定评价截面Dd(步骤S41),并给指令点Pk和插补点Hj分配共同标识符Fm(m是自然数)(步骤S42,参照图9和图10)。CPU51生成交点表(参照图11)。。具体而言,CPU51对表示往复动作的路径编号的变量i和变量m设定“1”(步骤S43)。变量m表示构成加工程序的命令的顺序。CPU51读入移动路径Fm-Fm+1(步骤S44)。CPU51对移动路径Fm-Fm+1是否与评价截面Dd交叉进行判定(步骤S45)。移动路径Fm-Fm+1与评价截面Dd不交叉时(步骤S45:否),CPU51对m加1(步骤S49)。步骤S41构成评价截面设定部。Next, the command point/interpolation point correction processing performed by the control device 50 will be described. As shown in Figure 15, CPU51 sets evaluation section D d (step S41 ), and assigns common identifier F m (m is a natural number) (step S42, referring to Fig. 9 and Fig. 10). The CPU 51 creates an intersection table (see FIG. 11 ). . Specifically, the CPU 51 sets "1" to the variable i and the variable m indicating the route number of the reciprocating operation (step S43). The variable m indicates the sequence of commands constituting the machining program. The CPU 51 reads the moving route F m -F m+1 (step S44). The CPU 51 determines whether or not the movement route F m -F m+1 intersects the evaluation section D d (step S45 ). When the movement path F m -F m+1 does not intersect the evaluation section D d (step S45: No), the CPU 51 adds 1 to m (step S49). Step S41 constitutes an evaluation section setting unit.
移动路径Fm-Fm+1与评价截面Dd交叉时(步骤S45:是),CPU51对评价截面Dd与移动路径Fm-Fm+1的交点Si d是否已经存在进行判定(步骤S46)。评价截面Dd与移动路径Fm-Fm+1的交点Si d尚未存在时(步骤S46:否),CPU51将路径编号i、交点Si d的坐标值、移动路径Fm-Fm+1对应地存储至存储部52的交点表(参照图11)(步骤S48)。When the moving path Fm-Fm +1 intersects with the evaluation section Dd (step S45: yes), the CPU 51 determines whether the intersection S i d of the evaluation section Dd and the moving path Fm- Fm +1 already exists ( Step S46). When the intersection point S i d of the evaluation section D d and the moving path F m -F m+1 does not exist yet (step S46: No), the CPU 51 sets the path number i, the coordinate value of the intersection point S i d , the moving path F m -F m +1 is correspondingly stored in the intersection table (see FIG. 11 ) of the storage unit 52 (step S48).
评价截面Dd与移动路径Fm-Fm+1的交点Si d已经存在时(步骤S46:是),CPU51对i加1(步骤S47),CPU51将路径编号i、交点Si d的坐标值、移动路径Fm-Fm+1对应地存储至存储部52的交点表(步骤S48),并对m加1(步骤S49)。步骤S43至S49构成运算部。When the intersection S i d of the evaluation section D d and the moving path F m -F m+1 already exists (step S46: yes), the CPU51 adds 1 to i (step S47), and the CPU51 sets the path number i, the intersection S i d The coordinate values and the moving route F m -F m+1 are associated and stored in the intersection table of the storage unit 52 (step S48 ), and 1 is added to m (step S49 ). Steps S43 to S49 constitute a calculation section.
对m加1后,CPU51对m是否是最终编号进行判定(步骤S50)。m不是最终编号时(步骤S50:否),则CPU51使处理返回到步骤S44。m是最终编号(步骤S50:是),CPU51如上所述地对交点的位置进行修正(步骤S51,式(1)至式(4),参照图12、图13)。CPU51如上所述对指令点周围的交点进行搜索(步骤S52),对指令点或插补点的位置进行修正(步骤S53,参照图14A、图14B),并使处理前进至插补点删除处理(步骤S3,参照图5)。步骤S51构成第一修正部,步骤S53构成第二修正部。After adding 1 to m, the CPU 51 judges whether or not m is the final number (step S50). When m is not the final number (step S50: NO), the CPU 51 returns the process to step S44. m is the final number (step S50: Yes), and the CPU 51 corrects the position of the intersection point as described above (step S51, formula (1) to formula (4), refer to FIG. 12 and FIG. 13 ). CPU51 searches for the intersection point around the instruction point as described above (step S52), corrects the position of the instruction point or the interpolation point (step S53, referring to FIG. 14A, FIG. 14B), and makes the process advance to the interpolation point deletion process (Step S3, refer to FIG. 5). Step S51 constitutes a first correcting unit, and step S53 constitutes a second correcting unit.
接着,对插补点删除处理进行说明。如图16所示,控制装置50例如用第一删除方法对插补点进行删除。在图16中,用指令点/插补点修正处理进行修正前的指令点是Pk、Pk+1,修正后的指令点是Pk’、Pk+1’。用指令点/插补点修正处理进行修正前的插补点是Hj、Hj+1,修正后的插补点是Hj’、Hj+1’。CPU51将共同标识符Fm、修正后的指令点及插补点对应地存储至存储部52。Next, the interpolation point deletion processing will be described. As shown in FIG. 16 , the control device 50 deletes the interpolation points by, for example, the first deletion method. In FIG. 16 , the command points before correction by the command point/interpolation point correction process are P k , P k+1 , and the command points after correction are P k ′, P k+1 ′. The interpolation points before correction by command point/interpolation point correction processing are H j , H j+1 , and the interpolation points after correction are H j ′, H j+1 ′. The CPU 51 stores the common identifier F m , the corrected command point, and the interpolation point in association with each other in the storage unit 52 .
控制装置对修正前的插补点Hj与修正后的插补点Hj’之间的距离D2(第二距离)是否为阈值L2(第二阈值)以下进行判定,距离D2为阈值L2以下时,将修正后的插补点Hj’删除。距离D2为阈值L2以下时,修正前的插补点Hj与修正后的插补点Hj’之间的差分较小。因此,即便删除插补点Hj’而使主轴5a从指令点Pk’直接移动至插补点Hj+1’,对工件的表面形状造成的影响也小,在工件表面上出现鳞状图样的可能性较小。由于删除插补点,因此能抑制加工时间和加工程序的容量增加。将修正后的插补点全部删除时,主轴5a从指令点Pk’直接移动至指令点Pk+1’。The control device judges whether the distance D2 (second distance) between the interpolation point Hj before correction and the interpolation point Hj ' after correction is less than or equal to a threshold value L2 (second threshold value), and the distance D2 is less than or equal to the threshold value L2 , delete the corrected interpolation point H j '. When the distance D2 is equal to or smaller than the threshold value L2, the difference between the interpolation point H j before correction and the interpolation point H j ′ after correction is small. Therefore, even if the interpolation point H j ' is deleted and the spindle 5a is directly moved from the command point P k ' to the interpolation point H j+1 ', the influence on the surface shape of the workpiece is small, and scales appear on the surface of the workpiece. Patterns are less likely. Since interpolation points are deleted, it is possible to suppress increases in machining time and machining program capacity. When all the corrected interpolation points are deleted, the spindle 5a directly moves from the command point P k ' to the command point P k+1 '.
下面说明根据第一删除方法进行的插补点设定处理。如图17所示,CPU51对j设定1(步骤S61),并读入修正前的插补点Hj和修正后的插补点Hj’(步骤S62)。CPU51对插补点Hj与Hj’之间的距离D2是否为阈值L2以下进行判定(步骤S63)。距离D2不是阈值L2以下时(步骤S63:否),CPU51使处理前进至后述的步骤S65。步骤S63构成第二判定部。Next, the interpolation point setting process performed by the first deletion method will be described. As shown in FIG. 17, the CPU 51 sets 1 to j (step S61), and reads the interpolation point Hj before correction and the interpolation point Hj ' after correction (step S62). The CPU 51 determines whether or not the distance D2 between the interpolation points Hj and Hj ' is equal to or less than a threshold value L2 (step S63). When distance D2 is not below threshold value L2 (step S63: NO), CPU51 advances a process to step S65 mentioned later. Step S63 constitutes a second determination unit.
距离D2为阈值L2以下时(步骤S63:是),CPU51删除插补点Hj’(步骤S64),并对插补点Hj’是否是最终插补点进行判定(步骤S65)。例如,CPU51对j是否为存储于存储部52的最终编号以上进行判定,j为最终编号以上时,判定为插补点Hj’是最终插补点,j不是最终编号以上时,判定为插补点Hj’不是最终插补点。步骤S64构成插补点删除部。When the distance D2 is equal to or less than the threshold L2 (step S63: Yes), the CPU 51 deletes the interpolation point H j ' (step S64), and determines whether the interpolation point H j ' is the final interpolation point (step S65). For example, the CPU 51 judges whether or not j is greater than or equal to the final number stored in the storage unit 52. When j is greater than the final number, it is determined that the interpolation point H j ' is the final interpolation point. When j is not greater than the final number, it is determined that it is an interpolation point. The interpolation point H j ' is not the final interpolation point. Step S64 constitutes an interpolation point deletion unit.
插补点Hj’不是最终插补点时(步骤S65:否),CPU51对j加1(步骤S66),并使处理返回到步骤S62。插补点Hj’是最终插补点时(步骤S65:是),CPU51结束处理。When the interpolation point Hj ' is not the final interpolation point (step S65: NO), the CPU 51 adds 1 to j (step S66), and returns the process to step S62. When the interpolation point Hj ' is the final interpolation point (step S65: YES), the CPU 51 ends the processing.
控制装置50例如用第二删除方法对插补点进行删除。用指令点/插补点修正处理进行修正前的指令点是Pk、Pk+1,用指令点/插补点修正处理进行修正前的插补点是Hj、Hj+1。如图18所示,用指令点/插补点修正处理进行修正后的指定点是Pk’、Pk+1’,用指令点/插补点修正处理进行修正后的插补点是Hj’、Hj+1’。CPU51将共同标识符Fm、修正后的指令点及插补点对应地存储至存储部52。The control device 50 deletes the interpolation points by, for example, the second deletion method. The command points before correction by the command point/interpolation point correction process are P k , P k+1 , and the interpolation points before correction by the command point/interpolation point correction process are H j , H j+1 . As shown in Figure 18, the designated points corrected by the command point/interpolation point correction process are P k ', P k+1 ', and the interpolation point corrected by the command point/interpolation point correction process is H j ', H j+1 '. The CPU 51 stores the common identifier F m , the corrected command point, and the interpolation point in association with each other in the storage unit 52 .
控制装置对连接修正后的指令点Pk’与Pk+1’的线段与修正后的插补点Hj’之间的距离D3(第三距离)是否为阈值L3(第三阈值)以下进行判定,距离D3为阈值L3以下时,删除修正后的插补点Hj’。距离D3例如是所述线段与修正后的插补点Hj’之间的最短距离。The control device checks whether the distance D3 (third distance) between the line segment connecting the corrected command points Pk ' and Pk+1 ' and the corrected interpolation point Hj ' is less than or equal to the threshold L3 (third threshold) When it is judged that the distance D3 is equal to or less than the threshold value L3, the corrected interpolation point H j ′ is deleted. The distance D3 is, for example, the shortest distance between the line segment and the corrected interpolation point H j ′.
距离D3为阈值L3以下时,修正前的插补点Hj与修正后的插补点Hj’之间的差分较小。因此,即便删除插补点Hj’而使主轴5a从指令点Pk’直接移动至插补点Hj+1’,对工件的表面形状造成的影响也小,在工件表面上出现鳞状图样的可能性较小。由于删除插补点,因此能抑制加工时间和加工程序的容量增加。将修正后的插补点全部删除时,主轴5a从指令点Pk’直接移动至指令点Pk+1’。When the distance D3 is equal to or less than the threshold value L3, the difference between the interpolation point H j before correction and the interpolation point H j ′ after correction is small. Therefore, even if the interpolation point H j ' is deleted and the spindle 5a is directly moved from the command point P k ' to the interpolation point H j+1 ', the influence on the surface shape of the workpiece is small, and scales appear on the surface of the workpiece. Patterns are less likely. Since interpolation points are deleted, it is possible to suppress increases in machining time and machining program capacity. When all the corrected interpolation points are deleted, the spindle 5a directly moves from the command point P k ' to the command point P k+1 '.
下面说明根据第二删除方法进行的插补点删除处理。如图19所示,CPU51对j、k设定1(步骤S71),读入修正后的指令点Pk’、Pk+1’(步骤S72),并设定线段Pk’Pk+1’(步骤S73)。The interpolation point deletion processing according to the second deletion method will be described below. As shown in Figure 19, CPU51 sets 1 to j, k (step S71), reads in the corrected command point P k ', P k+1 ' (step S72), and sets the line segment P k 'P k+ 1 ' (step S73).
CPU51读入修正后的插补点Hj’(步骤S74),并对线段Pk’Pk+1’与插补点Hj’之间的距离D3是否为阈值L3以下进行判定(步骤S75)。距离D3不是阈值L3以下时(步骤S75:否),CPU51对加工路径Pk’-Pk+1’中插补点Hj’是否是最终插补点进行判定(步骤S77)。存储部52按各加工路径存储j的最终编号。步骤S75构成第三判定部。The CPU 51 reads the corrected interpolation point H j ' (step S74), and determines whether the distance D3 between the line segment P k 'P k+1 ' and the interpolation point H j ' is below the threshold L3 (step S75 ). When the distance D3 is not less than the threshold L3 (step S75: No), the CPU 51 determines whether the interpolation point H j ' in the machining route P k '-P k+1 ' is the final interpolation point (step S77). The storage unit 52 stores the final number of j for each machining pass. Step S75 constitutes a third determination unit.
距离D3不是阈值L3以下时(步骤S75:是),CPU51删除插补点Hj’(步骤S76),并对加工路径Pk’-Pk+1’中插补点Hj’是否是最终插补点进行判定(步骤S77)。加工路径Pk’-Pk+1’中插补点Hj’不是最终插补点时(步骤S77:否),CPU51对j加1(步骤S78),并使处理返回到步骤S74。步骤S76构成第二插补点删除部。When the distance D3 is not below the threshold L3 (step S75: yes), the CPU 51 deletes the interpolation point H j ' (step S76), and checks whether the interpolation point H j ' is the final value in the processing path P k '-P k+1 ' The interpolation point is judged (step S77). When the interpolation point Hj ' in the machining path Pk'- Pk +1 ' is not the final interpolation point (step S77: NO), the CPU 51 adds 1 to j (step S78), and returns the process to step S74. Step S76 constitutes a second interpolation point deletion unit.
加工路径Pk’-Pk+1’中插补点Hj’是最终插补点时(步骤S77:是),CPU51对指令点Pk+1’是否是最终指令点进行判定(步骤S79)。指令点Pk+1’不是最终指令点时(步骤S79:否),CPU51对k加1(步骤S80),并使处理返回到步骤S72。指令点Pk+1是最终指令点时(步骤S79:是),CPU51结束处理。When the interpolation point H j ' in the machining path P k '-P k+1 ' is the final interpolation point (step S77: yes), CPU51 judges whether the command point P k+1 ' is the final command point (step S79 ). When the instruction point P k+1 ' is not the final instruction point (step S79: NO), the CPU 51 adds 1 to k (step S80), and returns the process to step S72. When the command point Pk+1 is the final command point (step S79: YES), the CPU 51 ends the processing.
在实施方式中,在多个指令点Pk之间设定插补点Hj,并根据指令点Pk和插补点Hj设定加工路径α。设定与加工路径α交叉的评价截面Dd,对评价截面Dd与加工路径α的交点Si d的位置进行修正,并根据修正后的交点Si d的位置对与加工路径α交叉的方向上的指令点Pk和插补点Hj的位置进行修正。通过在与加工路径α交叉的方向上对指令点Pk和插补点Hj的位置进行修正,能在工件上形成平滑的曲面。不仅是指令点,设定于指令点Pk之间的插补点Hj也用于加工路径α的设定,因此,能提高加工路径α的精度。In the embodiment, the interpolation point H j is set between a plurality of command points P k , and the machining route α is set based on the command point P k and the interpolation point H j . Set the evaluation section D d intersecting the processing path α , correct the position of the intersection S i d of the evaluation section D d and the processing path Correct the positions of command point P k and interpolation point H j in the direction. By correcting the positions of the command point P k and the interpolation point H j in the direction intersecting the machining path α, a smooth curved surface can be formed on the workpiece. Not only the instruction points but also the interpolation points Hj set between the instruction points Pk are used for setting the machining path α, so that the accuracy of the machining path α can be improved.
在相邻的两个指令点之间、相邻的指令点与插补点之间或相邻的两个插补点之间的中央设定插补点,来设定加工路径α。或者,在与指令点或插补点隔开相当于阈值L的距离的位置上设定插补点,来设定加工路径α。The machining path α is set by setting an interpolation point between two adjacent instruction points, between an adjacent instruction point and an interpolation point, or between two adjacent interpolation points. Alternatively, the machining path α is set by setting an interpolation point at a position separated from the command point or the interpolation point by a distance corresponding to the threshold L.
修正前后的两个插补点之间的距离D2(第二距离)小于阈值L2(第二阈值)时,将修正后的插补点删除。或者,在将修正后的相邻的两个指令点连接的线段与位于所述两个指令点之间的修正后的插补点之间的距离D3(第三距离)小于阈值L3(第三阈值)时,将修正后的插补点删除。通过删除插补点,抑制加工时间和加工程序的容量增加。When the distance D2 (second distance) between two interpolation points before and after correction is smaller than the threshold L2 (second threshold), the corrected interpolation point is deleted. Alternatively, the distance D3 (third distance) between the line segment connecting the corrected two adjacent command points and the corrected interpolation point located between the two command points is smaller than the threshold L3 (third distance). threshold), delete the corrected interpolation points. By deleting interpolation points, the increase in machining time and machining program capacity is suppressed.
在上述实施方式中,执行了插补点设定处理、指令点/插补点修正处理、插补点删除处理这所有的处理,但也可仅执行插补点设定处理、指令点/插补点修正处理。In the above-described embodiment, all the processing of interpolation point setting processing, command point/interpolation point correction processing, and interpolation point deletion processing is executed, but only interpolation point setting processing, command point/interpolation point Compensation point correction processing.
下面说明对结构做了局部变更的例子。如图20所示,当加工路径β呈旋涡状时,控制装置50设定旋涡的中心和绕该中心展开的角度,并以旋涡的中心为基准放射状地设定多个评价截面。An example in which a partial change is made to the structure is described below. As shown in FIG. 20 , when the machining path β is in a spiral shape, the control device 50 sets the center of the spiral and the angle developed around the center, and radially sets a plurality of evaluation sections based on the center of the spiral.
Claims (7)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2015213397A JP6672702B2 (en) | 2015-10-29 | 2015-10-29 | Control device, machine tool, control method, and computer program |
JP2015-213397 | 2015-10-29 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106625015A true CN106625015A (en) | 2017-05-10 |
CN106625015B CN106625015B (en) | 2018-10-12 |
Family
ID=58711184
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610710070.5A Active CN106625015B (en) | 2015-10-29 | 2016-08-23 | Control device, lathe, control method |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP6672702B2 (en) |
CN (1) | CN106625015B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108008699A (en) * | 2016-10-27 | 2018-05-08 | 兄弟工业株式会社 | Machining path arithmetic unit, machining path operation method |
CN109551485A (en) * | 2019-01-21 | 2019-04-02 | 北京镁伽机器人科技有限公司 | Motion control method, device and system and storage medium |
CN111687838A (en) * | 2020-05-29 | 2020-09-22 | 深圳科瑞技术股份有限公司 | Online compensation method and system for manipulator track following error and storage medium |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6823032B2 (en) | 2018-10-25 | 2021-01-27 | ファナック株式会社 | Program modifier |
CN113953915B (en) * | 2021-08-26 | 2022-11-08 | 烟台杰瑞石油装备技术有限公司 | Polishing method and polishing device |
CN116618730B (en) * | 2023-07-21 | 2023-09-29 | 成都工业职业技术学院 | Intelligent plate milling device and control method thereof |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0926809A (en) * | 1995-07-12 | 1997-01-28 | Hitachi Ltd | Simulation method using toolpath with cutting conditions |
CN1858668A (en) * | 2005-05-02 | 2006-11-08 | 发那科株式会社 | Curve interpolating method |
CN101539769A (en) * | 2009-04-28 | 2009-09-23 | 中国科学院数学与系统科学研究院 | Method for fitting and interpolating G01 code based on quadratic B spline curve |
CN101907876A (en) * | 2010-05-28 | 2010-12-08 | 沈阳高精数控技术有限公司 | Command point shaping, compressing and interpolating method suitable for numerical control device |
CN102147600A (en) * | 2011-04-30 | 2011-08-10 | 上海交通大学 | Numerical control interpolation system for real-time generation of curvature-continuous path |
CN104133424A (en) * | 2014-08-19 | 2014-11-05 | 福州大学 | Industrial robot linear interpolation method based on programmable logic controller |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS62169210A (en) * | 1986-01-22 | 1987-07-25 | Okuma Mach Works Ltd | System for generating tool locus in nc data generating device |
JPH0330002A (en) * | 1989-06-28 | 1991-02-08 | Mitsubishi Heavy Ind Ltd | Editing method for path data |
JP3466111B2 (en) * | 1999-06-10 | 2003-11-10 | ファナック株式会社 | Numerical control unit |
JP2002258925A (en) * | 2001-03-02 | 2002-09-13 | Okuma Corp | NC data output method |
JP4969484B2 (en) * | 2008-02-25 | 2012-07-04 | 三菱重工業株式会社 | Numerical controller |
JP2011096077A (en) * | 2009-10-30 | 2011-05-12 | Makino Milling Mach Co Ltd | Method and device for generating tool path |
KR101485932B1 (en) * | 2010-10-26 | 2015-01-23 | 마키노 밀링 머신 주식회사 | Method and device for generating tool path |
JP5342665B2 (en) * | 2012-03-12 | 2013-11-13 | ファナック株式会社 | Lens shape processing method and lens shape processing apparatus for measuring along spiral measurement path |
-
2015
- 2015-10-29 JP JP2015213397A patent/JP6672702B2/en active Active
-
2016
- 2016-08-23 CN CN201610710070.5A patent/CN106625015B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0926809A (en) * | 1995-07-12 | 1997-01-28 | Hitachi Ltd | Simulation method using toolpath with cutting conditions |
CN1858668A (en) * | 2005-05-02 | 2006-11-08 | 发那科株式会社 | Curve interpolating method |
CN101539769A (en) * | 2009-04-28 | 2009-09-23 | 中国科学院数学与系统科学研究院 | Method for fitting and interpolating G01 code based on quadratic B spline curve |
CN101907876A (en) * | 2010-05-28 | 2010-12-08 | 沈阳高精数控技术有限公司 | Command point shaping, compressing and interpolating method suitable for numerical control device |
CN102147600A (en) * | 2011-04-30 | 2011-08-10 | 上海交通大学 | Numerical control interpolation system for real-time generation of curvature-continuous path |
CN104133424A (en) * | 2014-08-19 | 2014-11-05 | 福州大学 | Industrial robot linear interpolation method based on programmable logic controller |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108008699A (en) * | 2016-10-27 | 2018-05-08 | 兄弟工业株式会社 | Machining path arithmetic unit, machining path operation method |
CN108008699B (en) * | 2016-10-27 | 2020-03-03 | 兄弟工业株式会社 | Machining path calculation device and machining path calculation method |
CN109551485A (en) * | 2019-01-21 | 2019-04-02 | 北京镁伽机器人科技有限公司 | Motion control method, device and system and storage medium |
CN109551485B (en) * | 2019-01-21 | 2020-10-16 | 北京镁伽机器人科技有限公司 | Motion control method, device and system and storage medium |
US11975452B2 (en) | 2019-01-21 | 2024-05-07 | Megarobo Technologies Co., Ltd. | Motion control method, device and system, and storage medium |
CN111687838A (en) * | 2020-05-29 | 2020-09-22 | 深圳科瑞技术股份有限公司 | Online compensation method and system for manipulator track following error and storage medium |
CN111687838B (en) * | 2020-05-29 | 2023-10-13 | 深圳科瑞技术股份有限公司 | Online compensation method, system and storage medium for track following error of manipulator |
Also Published As
Publication number | Publication date |
---|---|
JP2017084189A (en) | 2017-05-18 |
CN106625015B (en) | 2018-10-12 |
JP6672702B2 (en) | 2020-03-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106625015B (en) | Control device, lathe, control method | |
JP6472585B1 (en) | Stacking condition control device | |
US9829879B2 (en) | Generation method and generation apparatus of tool path based on corrections using average distances | |
US8487213B2 (en) | Arc welding robot control system and method thereof | |
JP6450732B2 (en) | Numerical controller | |
JP5980867B2 (en) | Robot teaching device that teaches robots offline | |
US9244456B2 (en) | Tool path generation method and apparatus | |
WO1982003473A1 (en) | Tool diameter compensation system | |
CN106313007B (en) | The teaching playback system of parallel connection type drilling machine | |
CN110461540A (en) | Tool path generation method and device | |
JP5877866B2 (en) | Tool path display device that displays the tool path | |
JP6435962B2 (en) | Control device, machine tool and computer program | |
JP2011011139A (en) | Method and apparatus for forming route of spray moving in spray robot | |
CN107272589A (en) | Machining path arithmetic unit, machining path operation method | |
JP2017102593A (en) | Control device, machine tool, control method, and computer program | |
JP6943556B2 (en) | Machining path calculation device, machining path calculation method and computer program | |
CN106814692B (en) | Control device, lathe, control method | |
JP6281315B2 (en) | Numerical control device and moving path correction method | |
JPH06312347A (en) | Nc machine tool | |
JP4723991B2 (en) | Numerical control device with feed axis acceleration / deceleration function considering machining surface direction | |
CN112783097B (en) | Numerical control device and control method of numerical control device | |
JP2020160830A (en) | Numerical control device, machine tool, control program, and storage medium | |
JP5037270B2 (en) | Teaching device for 3D laser processing machine | |
JP2605427B2 (en) | Processing condition setting method | |
JP2023051252A (en) | MACHINE TOOL, MACHINING PATH GENERATION METHOD, AND COMPUTER PROGRAM |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |