JP4607993B2 - Numerical control method of 5-axis machine - Google Patents

Numerical control method of 5-axis machine Download PDF

Info

Publication number
JP4607993B2
JP4607993B2 JP2008275869A JP2008275869A JP4607993B2 JP 4607993 B2 JP4607993 B2 JP 4607993B2 JP 2008275869 A JP2008275869 A JP 2008275869A JP 2008275869 A JP2008275869 A JP 2008275869A JP 4607993 B2 JP4607993 B2 JP 4607993B2
Authority
JP
Japan
Prior art keywords
point
block
tool
cutting
linear axis
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
JP2008275869A
Other languages
Japanese (ja)
Other versions
JP2009054186A (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.)
FANUC Corp
Original Assignee
FANUC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FANUC Corp filed Critical FANUC Corp
Priority to JP2008275869A priority Critical patent/JP4607993B2/en
Publication of JP2009054186A publication Critical patent/JP2009054186A/en
Application granted granted Critical
Publication of JP4607993B2 publication Critical patent/JP4607993B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

回転軸2軸と直線軸3軸を有する5軸加工機を制御する数値制御方法であって、不安定な動作を発生する可能性のある特異点近傍における動作制御に関する。   A numerical control method for controlling a 5-axis machine having two rotary axes and three linear axes, and relates to operation control in the vicinity of a singular point that may cause unstable operation.

ワーク(被加工物)に対して工具を直線3軸方向に相対移動させると共に、回転軸2軸方向に工具をワークに対して相対的に傾けて加工を行う5軸加工機はすでに公知である。
例えば、CAD/CAM装置や倣い装置で作成された指令点列データおよびワークと工具の傾斜角度を指令する指令ベクトル列に基づいて、曲線補間を行って曲面を加工する5軸加工機による加工方法において、所期の曲線に近い滑らかな曲線で補間して加工し、滑らかな加工面を得るようにした加工方法が知られている(特許文献1参照)。
A 5-axis machine that performs machining by moving a tool relative to a workpiece (workpiece) in a linear three-axis direction and tilting the tool relative to the workpiece in a two-axis rotation axis is already known. .
For example, a machining method using a 5-axis machining machine that performs curved surface interpolation to process a curved surface based on command point sequence data created by a CAD / CAM device or a copying device and a command vector sequence that commands the tilt angle of a workpiece and a tool The machining method is known in which a smooth curved surface close to the intended curve is interpolated to obtain a smooth machined surface (see Patent Document 1).

又、5軸加工機において、工具の位置および姿勢を作業対象に固定された直交座標系上で指令し、工具をある速度で移動させた場合、機械の動作範囲内に特異点(特異姿勢)が存在する機械において、各関節の速度や加速度がその関節の許容値を超える場合があることから、工具に与えられた2つの時点での姿勢に基づいて、両時点の間における工具の姿勢誤差が姿勢誤差許容値以下になるように、関節補間範囲を決定し、この関節補間範囲においては、関節補間(2つの時点の位置ベクトルと姿勢ベクトルに基づいて各軸の関節座標値を求める補間)により工具の姿勢を制御することによって、特異点近傍の各関節の速度や加速度が過大となるような場合に、軌跡誤差に対して要求精度を満たしつつ、移動速度をできるだけ短縮するようにした発明も知られている(特許文献2参照)。   Also, in a 5-axis machine, when the tool position and orientation are commanded on the Cartesian coordinate system fixed to the work target and the tool is moved at a certain speed, a singular point (singular posture) within the operating range of the machine In some machines, the speed and acceleration of each joint may exceed the allowable values for that joint. Therefore, based on the posture at two points given to the tool, the tool posture error between the two points The joint interpolation range is determined so that is less than the posture error allowable value. In this joint interpolation range, joint interpolation (interpolation for obtaining joint coordinate values of each axis based on the position vector and posture vector at two points in time) By controlling the posture of the tool, the speed and acceleration of each joint near the singular point will be excessive, and the moving speed will be shortened as much as possible while satisfying the required accuracy for the trajectory error. Inventions are also known (see Patent Document 2).

特開2005−182437号公報JP 2005-182437 A 特開2004−220435号公報JP 2004-220435 A

工具によりワークを加工する切削点と、ワークに対する工具位置を制御する制御点は、異なる。
図1は、X、Y、Z軸の3つの直線軸とX軸回りの回転軸A軸と、Z軸回りのC軸を有する5軸加工機において、工具1としてボールエンドミルを使用したときの指令された切削点と制御される工具位置との関係の説明図である。
切削点として直線軸のX、Y、Z軸に対応する直交座標系のX、Y、Z軸の位置(X,Y,Z)が指令される。このような切削点指令(X,Y,Z)に対して、ワークに対する工具1の位置を制御するための制御点は工具1の先端でワークと接触する点(切削点指令点)ではなく、該位置から離れた直線軸位置(Xc,Yc,Zc)であり、指令される切削点位置(X,Y,Z)とこれに対応する直線軸位置(Xc,Yc,Zc)は一致しない。切削点位置(X,Y,Z)と共に指令される切削面垂直方向指令(I,J,K)と設定されている工具径補正量TRにより求まる工具径補正、およびA軸、C軸の回転軸への指令より求まる工具方向と設定された工具径補正量TR、工具長補正量TLによる工具長補正がなされて、直線軸位置(Xc,Yc,Zc)が求められ、直線軸位置(Xc,Yc,Zc)および回転軸位置(A,C)が制御される。
A cutting point for machining a workpiece with a tool is different from a control point for controlling a tool position with respect to the workpiece.
FIG. 1 shows a case where a ball end mill is used as a tool 1 in a 5-axis processing machine having three linear axes of X, Y, and Z axes, a rotation axis A axis around the X axis, and a C axis around the Z axis. It is explanatory drawing of the relationship between the commanded cutting point and the tool position controlled.
As the cutting points, the positions (X, Y, Z) of the X, Y, and Z axes in the orthogonal coordinate system corresponding to the X, Y, and Z axes of the linear axes are commanded. For such a cutting point command (X, Y, Z), the control point for controlling the position of the tool 1 with respect to the workpiece is not a point that contacts the workpiece at the tip of the tool 1 (cutting point command point), The linear axis position (Xc, Yc, Zc) is far from the position, and the commanded cutting point position (X, Y, Z) does not match the corresponding linear axis position (Xc, Yc, Zc). Cutting surface vertical direction command (I, J, K) commanded together with cutting point position (X, Y, Z) and tool radius correction determined by set tool radius correction amount TR, and rotation of A axis and C axis The tool length is corrected by the tool direction obtained from the command to the axis, the set tool radius correction amount TR, and the tool length correction amount TL, and the linear axis position (Xc, Yc, Zc) is obtained, and the linear axis position (Xc , Yc, Zc) and the rotation axis position (A, C) are controlled.

以上のように、指令される切削点位置(X,Y,Z)とワークに対する工具1の位置、すなわち制御される直線軸の位置(Xc,Yc,Zc)は一致しない。ボールエンドミル以外の、主軸が旋回したときの断面が長方形になるスクエアエンドミルやそのコーナにR(丸み)がついたラジアスエンドミルを使用したときも同様であり、指令される切削点位置と制御される直線軸の位置は一致しない。   As described above, the commanded cutting point position (X, Y, Z) and the position of the tool 1 with respect to the workpiece, that is, the position (Xc, Yc, Zc) of the controlled linear axis do not match. The same applies when using a square end mill that has a rectangular cross-section when the main shaft turns, or a radius end mill with a rounded corner (R) at the corner, other than the ball end mill. The positions of the linear axes do not match.

しかし、一般に、切削点指令点と制御点の動作は同様であることが望ましい。つまり、切削点の指令間隔が小さければ対応する制御点の動作も小さく、切削点の指令間隔が大きければ対応する制御点の動作も大きいのが望ましい。
例えば、スクエアエンドミルでの一般的な切削点指令での切削点と制御点の関係は、図2のようになる。この図2に示すように、1ブロックで指令された始点の切削点指令(XS,YS,ZS)と終点の切削点指令(XE,YE,ZE)間の距離と該ブロックの指令で工具1を駆動する直線軸の制御点(Xc,Yc,Zc)の始点と終点の位置間の距離がほぼ比例しているような関係になることが望ましい。ところが、指令形状、工具種類によっては、切削点(指令点)と制御点の動作が大きく相違する場合がある。つまり、切削点の指令間隔が小さいが対応する制御点は大きく動作する場合(後述する図9に示すような場合)や、指令切削点の間隔が大きいが対応する制御点の動作は小さい場合(後述する図10に示すような場合)などが発生する(以下、このような場合を特異点近傍と呼ぶ)。
このような、切削点(指令点)と対応する制御点の動作が大きく相違する特異点近傍では、不安定な動作や加工物への過大な切り込みが生じ望ましくない。本発明は、このような問題点を解決しようとするものである。
However, in general, it is desirable that the cutting point command point and the control point operate in the same manner. That is, it is desirable that the operation of the corresponding control point is small if the command interval of the cutting point is small, and the operation of the corresponding control point is large if the command interval of the cutting point is large.
For example, the relationship between cutting points and control points in a general cutting point command in a square end mill is as shown in FIG. As shown in FIG. 2, the tool 1 is determined by the distance between the start point command (XS, YS, ZS) and the end point command (XE, YE, ZE) commanded in one block and the command in the block. It is desirable that the distance between the starting point and the ending point of the control point (Xc, Yc, Zc) of the linear axis that drives is substantially proportional. However, depending on the command shape and the tool type, the operation of the cutting point (command point) and the control point may differ greatly. That is, when the command interval of the cutting point is small but the corresponding control point operates large (as shown in FIG. 9 described later), or when the operation of the corresponding control point is small although the interval of the command cutting point is large ( (A case as shown in FIG. 10 described later) or the like occurs (hereinafter, such a case is referred to as a singular point vicinity).
In the vicinity of the singular point where the operation of the control point corresponding to the cutting point (command point) is greatly different, unstable operation and excessive cutting into the workpiece are undesirable. The present invention is intended to solve such problems.

まず、この問題点を説明する前に、まず、5軸加工機を制御する数値制御装置等の制御装置が従来から実施している切削点指令による加工制御の動作、原理について説明する。
図3は、工具1としてボールエンドミルを用い、切削点指令よりXYZ軸の直線軸3軸とAC軸の回転軸の位置を求めて制御するときの動作説明図である。
この場合、加工プログラムとしては図4に示すようなプログラムが用いられる。
First, before explaining this problem, the operation and principle of machining control based on a cutting point command that has been conventionally performed by a control device such as a numerical control device that controls a 5-axis machine will be described.
FIG. 3 is an operation explanatory diagram when a ball end mill is used as the tool 1 and the positions of the three linear axes of the XYZ axes and the rotational axis of the AC axis are obtained and controlled from a cutting point command.
In this case, a program as shown in FIG. 4 is used as the machining program.

図4において、左側が加工プログラムでその右側に記載したものは、この加工プログラムの説明である。「G43.8」は切削点指令のコード、「H01」は工具長補正番号が「01」で、この工具長補正番号で示されている工具長補正量を使用することの指令、「D01」は、工具径補正番号が「01」で、この工具径補正番号で示される工具径補正量を使用することの指令である。また、「X 」は、切削点指令のブロックで「X 」は直交座標系上のXYZ軸上の切削点の位置を示す切削点指令、「A 」は、工具方向指令、「I 」は、切削点における切削面垂直方向を示す指令である。又、「G49」は、この切削点指令による加工制御をキャンセルし終了させる指令である。 In FIG. 4, the left side is a machining program and the right side is an explanation of this machining program. “G43.8” is a cutting point command code, “H01” is a tool length correction number “01”, and a command to use the tool length correction amount indicated by the tool length correction number is “D01”. Is a command to use the tool radius correction amount indicated by the tool radius correction number when the tool radius correction number is “01”. Also, “X Y Z A C I J K "Is a cutting point command block" X Y Z "A cutting point command indicating the position of the cutting point on the XYZ axes on the Cartesian coordinate system," A C "Is a tool direction command," I J K "Is a command indicating the direction perpendicular to the cutting surface at the cutting point. “G49” is a command for canceling and ending the machining control by this cutting point command.

又、工具径補正量TR、工具長補正量TLおよび後述するコーナR補正量CRが補正番号毎にパラメータ設定されている。図5にこの工具補正量設定例を示す。なお、コーナR補正量CRが「0.0」と設定されると、コーナRがないものであり、工具がスクエアエンドミルであることを意味する。又、コーナR補正量CRに工具径補正量TRと同じ数値が設定されている場合は、その工具はボールエンドミルを意味する。図5で示す例では、補正番号「01」はボールエンドミルを意味し、補正番号「02」は、ラジアスエンドミルを意味し、補正番号「03」は、スクエアエンドミルを意味している。   Further, a tool radius correction amount TR, a tool length correction amount TL, and a corner R correction amount CR, which will be described later, are set as parameters for each correction number. FIG. 5 shows an example of setting the tool correction amount. If the corner R correction amount CR is set to “0.0”, it means that there is no corner R and that the tool is a square end mill. If the same value as the tool radius correction amount TR is set in the corner R correction amount CR, the tool means a ball end mill. In the example shown in FIG. 5, the correction number “01” means a ball end mill, the correction number “02” means a radius end mill, and the correction number “03” means a square end mill.

制御装置は、加工プログラムよりブロックの指令(X,Y,Z,A,C,I,J,K)を読込み、読み込んだブロック切削点指令(X,Y,Z)を当該ブロックの終点での切削点指令(XE,YE,ZE)とし、1つ前のブロックの終点である1つ前のブロックでの切削点指令(X,Y,Z)を当該ブロックの始点の切削点指令(XS,YS,ZS)とする。同様に、プログラムから読み込んだブロックの始点での切削面垂直方向指令(I,J,K)を(IS,JS,KS)と表し、ブロック終点での切削面垂直方向指令(I,J,K)を(IE,JE,KE)と表す。
(1) このブロック始点での切削点指令(XS,YS,ZS)の位置からブロック終点での切削点指令(XE,YE,ZE)の位置まで補間周期毎に補間処理を行い、切削点補間位置(Xt,Yt,Zt)を求める。
(2) 同様に、ブロック始点での切削面垂直方向指令(IS,JS,KS)からブロック終点での切削面垂直方向指令(IE,JE,KE)まで補間処理して補間周期毎、すなわち、切削点補間位置(Xt,Yt,Zt)での切削面垂直方向補間ベクトル(It,Jt,Kt)を求める。なお、この切削面垂直方向補間ベクトル(It,Jt,Kt)は、単位ベクトルとして求める。
(3) 切削面垂直方向補間ベクトル(It,Jt,Kt)にパラメータ設定されている工具径補正量TRを乗じて工具径補正ベクトル(TCx,TCy,TCz)を求める。
(4) 読み込んだブロックにおける始点と終点での工具方向指令A,Cからブロック始点での工具方向ベクトル(TSx,TSy,TSz)、ブロック終点での工具方向ベクトル(TEx,TEy,TEz)を求める。ブロック始点での工具方向指令をAS,CS、ブロック終点での工具方向指令をAE,CEとすると、
TSx=−cos(CS)sin(AS)
TSy=−sin(CS)sin(AS)
TSz=cos(AS)
TEx=−cos(CE)sin(AE)
TEy=−sin(CE)sin(AE)
TEz=cos(AE)
として求まる。
(5) ブロック始点での工具方向ベクトル(TSx,TSy,TSz)からブロック終点での工具方向ベクトル(TEx,TEy,TEz)まで補間処理して工具方向補間ベクトル(Ttx,Tty,Ttz)を求める。なお、この工具方向補間ベクトル(Ttx,Tty,Ttz)も単位ベクトルとして求める。
(6) 工具方向補間ベクトル(Ttx,Tty,Ttz)に工具長補正量TLから工具径補正量TRを差し引いた値(TL−TR)を乗じて工具長補正ベクトル(TLx,TLy,TLz)を求める。
(7) 切削点補間位置(Xt,Yt,Zt)に工具径補正ベクトル(TCx,TCy,TCz)と工具長補正ベクトル(TLx,TLy,TLz)を加算して、直線軸制御点位置(Xc,Yc,Zc)を求める。この直線軸制御点位置(Xc,Yc,Zc)が補間周期における直線軸(X,Y,Z軸)の移動位置である。
(8) 工具方向ベクトル(Ttx,Tty,Ttz)を回転軸制御点位置(Ac,Cc)に変換する。この変換された回転軸制御点位置(Ac,Cc)が補間周期毎の回転軸(A,C軸)が移動する位置である。
Ac=arccos(Ttz)
Cc=arctan(Tty/Ttx)
以上の処理によって、各補間周期毎の直線軸制御点位置(Xc,Yc,Zc)、回転軸制御点位置(Ac,Cc)が求められ、この位置に移動するように各軸を駆動するサーボモータを駆動制御することによって、加工が実行される。
The control device reads the block command (X, Y, Z, A, C, I, J, K) from the machining program, and the read block cutting point command (X, Y, Z) at the end point of the block. The cutting point command (XE, YE, ZE) is used, and the cutting point command (X, Y, Z) in the previous block which is the end point of the previous block is used as the cutting point command (XS, YS, ZS). Similarly, the cutting surface vertical direction command (I, J, K) at the start point of the block read from the program is represented as (IS, JS, KS), and the cutting surface vertical direction command (I, J, K) at the block end point. ) Is represented as (IE, JE, KE).
(1) Interpolation processing is performed at every interpolation cycle from the position of the cutting point command (XS, YS, ZS) at the block start point to the position of the cutting point command (XE, YE, ZE) at the block end point. The position (Xt, Yt, Zt) is obtained.
(2) Similarly, interpolation processing is performed from the cutting surface vertical direction command (IS, JS, KS) at the block start point to the cutting surface vertical direction command (IE, JE, KE) at the block end point for each interpolation cycle, that is, A cutting surface vertical direction interpolation vector (It, Jt, Kt) at the cutting point interpolation position (Xt, Yt, Zt) is obtained. The cutting surface vertical direction interpolation vector (It, Jt, Kt) is obtained as a unit vector.
(3) The tool radius correction vector (TCx, TCy, TCz) is obtained by multiplying the cutting surface vertical direction interpolation vector (It, Jt, Kt) by the tool radius correction amount TR set as a parameter.
(4) The tool direction vector (TSx, TSy, TSz) at the block start point and the tool direction vector (TEx, TEy, TEz) at the block end point are obtained from the tool direction commands A and C at the start point and end point in the read block. . If the tool direction command at the block start point is AS, CS, and the tool direction command at the block end point is AE, CE,
TSx = -cos (CS) sin (AS)
TSy = -sin (CS) sin (AS)
TSz = cos (AS)
TEx = -cos (CE) sin (AE)
TEy = −sin (CE) sin (AE)
TEz = cos (AE)
It is obtained as
(5) A tool direction interpolation vector (Ttx, Tty, Ttz) is obtained by performing interpolation processing from the tool direction vector (TSx, TSy, TSz) at the block start point to the tool direction vector (TEx, TEy, TEz) at the block end point. . This tool direction interpolation vector (Ttx, Tty, Ttz) is also obtained as a unit vector.
(6) The tool length correction vector (TLx, TLy, TLz) is obtained by multiplying the tool direction interpolation vector (Ttx, Tty, Ttz) by the value (TL-TR) obtained by subtracting the tool radius correction amount TR from the tool length correction amount TL. Ask.
(7) The tool diameter correction vector (TCx, TCy, TCz) and the tool length correction vector (TLx, TLy, TLz) are added to the cutting point interpolation position (Xt, Yt, Zt), and the linear axis control point position (Xc , Yc, Zc). This linear axis control point position (Xc, Yc, Zc) is the moving position of the linear axis (X, Y, Z axis) in the interpolation cycle.
(8) The tool direction vector (Ttx, Tty, Ttz) is converted into the rotation axis control point position (Ac, Cc). The converted rotation axis control point position (Ac, Cc) is a position where the rotation axis (A, C axis) for each interpolation period moves.
Ac = arccos (Ttz)
Cc = arctan (Tty / Ttx)
Through the above processing, the linear axis control point position (Xc, Yc, Zc) and the rotation axis control point position (Ac, Cc) for each interpolation cycle are obtained, and the servo that drives each axis to move to this position. Machining is performed by driving and controlling the motor.

図6は、使用工具1がスクエアエンドミルのときの切削点指令による直線軸制御点位置及び回転軸制御点位置を補間周期毎求める処理の説明図である。この場合の加工プログラムは、図4に示した加工プログラムと同等であり、工具長補正番号(「H03」)、工具径補正番号(「D03」)が指令され、図5に示した工具補正量設定例で補正番号03が選択され、コーナR補正量CRが「0.0」でスクエアエンドミルであることが指定されている。
(1) 制御装置は、加工プログラムよりブロックの指令(X,Y,Z,A,C,I,J,K)を読込み、ブロック始点での切削点指令(XS,YS,ZS)の位置からブロック終点での切削点指令(XE,YE,ZE)への位置まで補間処理を行い補間周期毎の切削点補間位置(Xt,Yt,Zt)を求める。
(2) ブロック始点での切削面垂直方向指令(IS,JS,KS)からブロック終点での切削面垂直方向指令(IE,JE,KE)まで補間処理して補間周期毎の切削面垂直方向補間ベクトル(It,Jt,Kt)を求める。なお、この切削面垂直方向補間ベクトル(It,Jt,Kt)は、単位ベクトルとして求める。
(3) 読み込んだブロックにおける始点と終点での工具方向指令A,Cからブロック始点での工具方向ベクトル(TSx,TSy,TSz)、ブロック終点での工具方向ベクトル(TEx,TEy,TEz)を求める。この求め方は、ボールエンドミルの(4)で記載した求め方と同じである。
(4) ブロック始点での工具方向ベクトル(TSx,TSy,TSz)からブロック終点での工具方向ベクトル(TEx,TEy,TEz)まで補間処理して工具方向補間ベクトル(Ttx,Tty,Ttz)を求める。なお、この工具方向補間ベクトル(Ttx,Tty,Ttz)も単位ベクトルとして求める。
(5) 工具方向補間ベクトル(Ttx,Tty,Ttz)と切削面垂直方向補間ベクトル(It,Jt,Kt)が成す平面上で工具方向補間ベクトル(Ttx,Tty,Ttz)を90度回転し、工具径補正量TRをかけて、工具径補正ベクトル(TCx,TCy,TCz)を求める。この工具方向補間ベクトル(Ttx,Tty,Ttz)の回転方法は、工具方向補間ベクトル(Ttx,Tty,Ttz)と切削面垂直方向補間ベクトル(It,Jt,Kt)の外積ベクトル(Vx,Vy,Vz)をも求める。
FIG. 6 is an explanatory diagram of a process for obtaining the linear axis control point position and the rotation axis control point position by the cutting point command for each interpolation period when the tool 1 is a square end mill. The machining program in this case is equivalent to the machining program shown in FIG. 4, and a tool length correction number (“H03”) and a tool diameter correction number (“D03”) are commanded, and the tool correction amount shown in FIG. In the setting example, the correction number 03 is selected, the corner R correction amount CR is “0.0”, and the square end mill is designated.
(1) The control device reads the block command (X, Y, Z, A, C, I, J, K) from the machining program, and starts from the position of the cutting point command (XS, YS, ZS) at the block start point. Interpolation processing is performed up to the position corresponding to the cutting point command (XE, YE, ZE) at the block end point, and the cutting point interpolation position (Xt, Yt, Zt) is obtained for each interpolation cycle.
(2) Interpolation from the cutting surface vertical direction command (IS, JS, KS) at the block start point to the cutting surface vertical direction command (IE, JE, KE) at the block end point, and cutting surface vertical direction interpolation for each interpolation cycle A vector (It, Jt, Kt) is obtained. The cutting surface vertical direction interpolation vector (It, Jt, Kt) is obtained as a unit vector.
(3) The tool direction vector (TSx, TSy, TSz) at the block start point and the tool direction vector (TEx, TEy, TEz) at the block end point are obtained from the tool direction commands A and C at the start point and end point in the read block. . This method is the same as the method described in (4) of the ball end mill.
(4) A tool direction interpolation vector (Ttx, Tty, Ttz) is obtained by performing interpolation processing from the tool direction vector (TSx, TSy, TSz) at the block start point to the tool direction vector (TEx, TEy, TEz) at the block end point. . This tool direction interpolation vector (Ttx, Tty, Ttz) is also obtained as a unit vector.
(5) The tool direction interpolation vector (Ttx, Tty, Ttz) is rotated by 90 degrees on the plane formed by the tool direction interpolation vector (Ttx, Tty, Ttz) and the cutting surface vertical direction interpolation vector (It, Jt, Kt). A tool radius correction vector (TCx, TCy, TCz) is obtained by multiplying the tool radius correction amount TR. The tool direction interpolation vector (Ttx, Tty, Ttz) is rotated by a cross product vector (Vx, Vy, Kt) of the tool direction interpolation vector (Ttx, Tty, Ttz) and the cutting surface vertical direction interpolation vector (It, Jt, Kt). Vz) is also obtained.

(Vx,Vy,Vz)=(Ttx,Tty,Ttz)×(It,Jt,Kt)
この外積ベクトル(Vx,Vy,Vz)は工具方向補間ベクトル(Ttx,Tty,Ttz)と切削面垂直方向補間ベクトル(It,Jt,Kt)が成す平面に垂直なベクトルである。この外積ベクトル(Vx,Vy,Vz)の単位ベクトル(VNx,VNy,VNz)を求め、この単位ベクトル(VNx,VNy,VNz)の周りに、工具方向補間ベクトル(Ttx,Tty,Ttz)を90度回転させることによって、90度回転させた工具方向補間ベクトル(Ttx,Tty,Ttz)を求める。なお、一般にあるベクトルをある単位ベクトルの周りにある角度だけ回転させる方法は、「コンピュータグラフィックス」(DAVID F.ROGERS,J.ALANADAMS 山口富士夫訳)などに記載されている。
(6) 工具方向補間ベクトル(Ttx,Tty,Ttz)に工具長補正量TLを乗じて工具長補正ベクトル(TLx,TLy,TLz)を求める。
(7) 切削点補間位置(Xt,Yt,Zt)に工具径補正ベクトル(TCx,TCy,TCz)と工具長補正ベクトル(TLx,TLy,TLz)を加算して、直線軸制御点位置(Xc,Yc,Zc)を求める。この直線軸制御点位置(Xc,Yc,Zc)が補間周期における直線軸(X,Y,Z軸)の移動位置である。
(8) 工具方向ベクトル(Ttx,Tty,Ttz)を回転軸制御点位置(Ac,Cc)に変換する。この変換された回転軸制御点位置(Ac,Cc)が補間周期毎の回転軸(A,C軸)が移動する位置である。この変換方法は、上述したボールエンドミルの場合と同じである。
(Vx, Vy, Vz) = (Ttx, Tty, Ttz) × (It, Jt, Kt)
The outer product vector (Vx, Vy, Vz) is a vector perpendicular to the plane formed by the tool direction interpolation vector (Ttx, Tty, Ttz) and the cutting surface vertical direction interpolation vector (It, Jt, Kt). A unit vector (VNx, VNy, VNz) of the outer product vector (Vx, Vy, Vz) is obtained, and a tool direction interpolation vector (Ttx, Tty, Ttz) is 90 around the unit vector (VNx, VNy, VNz). The tool direction interpolation vector (Ttx, Tty, Ttz) rotated 90 degrees is obtained by rotating the tool by 90 degrees. In general, a method of rotating a vector by an angle around a unit vector is described in “Computer Graphics” (translated by DAVID F. ROGERS, J. ALANADAMS by Fujio Yamaguchi).
(6) The tool length correction vector (TLx, TLy, TLz) is obtained by multiplying the tool direction interpolation vector (Ttx, Tty, Ttz) by the tool length correction amount TL.
(7) The tool diameter correction vector (TCx, TCy, TCz) and the tool length correction vector (TLx, TLy, TLz) are added to the cutting point interpolation position (Xt, Yt, Zt), and the linear axis control point position (Xc , Yc, Zc). This linear axis control point position (Xc, Yc, Zc) is the moving position of the linear axis (X, Y, Z axis) in the interpolation cycle.
(8) The tool direction vector (Ttx, Tty, Ttz) is converted into the rotation axis control point position (Ac, Cc). The converted rotation axis control point position (Ac, Cc) is a position where the rotation axis (A, C axis) for each interpolation period moves. This conversion method is the same as that of the ball end mill described above.

以上の処理によって、各補間周期毎の直線軸制御点位置(Xc,Yc,Zc)、回転軸制御点位置(Ac,Cc)が求められ、この位置に移動するように各軸を駆動するサーボモータを駆動制御することによって、加工が実行される。   Through the above processing, the linear axis control point position (Xc, Yc, Zc) and the rotation axis control point position (Ac, Cc) for each interpolation cycle are obtained, and the servo that drives each axis to move to this position. Machining is performed by driving and controlling the motor.

図7は、使用工具1がラジアスエンドミルのときの切削点指令による直線軸制御点位置及び回転軸制御点位置を補間周期毎求める処理の説明図である。この場合の加工プログラムの例を図8に示す。図4に示した加工プログラムと同等であるが、工具長補正番号(「H02」)、工具径補正番号(「D02」)が指令され、図5に示した工具補正量設定例で補正番号02が選択され、コーナR補正量CRが「2.0」であることからラジアスエンドミルが指定されているものである。他は、図4に示した例と同様である。
(1) 制御装置は、加工プログラムよりブロックの指令(X,Y,Z,A,C,I,J,K)を読込み、ブロック始点での切削点指令(XS,YS,ZS)の位置からブロック終点での切削点指令(XE,YE,ZE)への位置まで補間処理を補間周期毎行い、切削点補間位置(Xt,Yt,Zt)を求める。
(2) ブロック始点での切削面垂直方向指令(IS,JS,KS)からブロック終点での切削面垂直方向指令(IE,JE,KE)まで補間処理して補間周期毎の切削面垂直方向補間ベクトル(It,Jt,Kt)を求める。なお、この切削面垂直方向補間ベクトル(It,Jt,Kt)は、単位ベクトルとして求める。
(3) 読み込んだブロックにおける始点と終点での工具方向指令A,Cからブロック始点での工具方向ベクトル(TSx,TSy,TSz)、ブロック終点での工具方向ベクトル(TEx,TEy,TEz)を求める。この求め方は、ボールエンドミルの(4)で記載した求め方と同じである。
(4) ブロック始点での工具方向ベクトル(TSx,TSy,TSz)からブロック終点での工具方向ベクトル(TEx,TEy,TEz)まで補間処理して工具方向補間ベクトル(Ttx,Tty,Ttz)を求める。なお、この工具方向補間ベクトル(Ttx,Tty,Ttz)も単位ベクトルとして求める。
(5) 切削面垂直方向補間ベクトル(It,Jt,Kt)にコーナR補正量CRをかけて、コーナR補正ベクトル(CCx,CCy,CCz)を求める。
(6) 工具方向補間ベクトル(Ttx,Tty,Ttz)と切削面垂直方向補間ベクトル(It,Jt,Kt)が成す平面上での工具方向補間ベクトル(Ttx,Tty,Ttz)を90度回転し(回転させる方法は、スクエアエンドミルと同じ)、その90度回転したベクトルに工具径補正量TRからコーナR補正量CRを差し引いた値(TR−CR)をかけて、工具径補正ベクトル(TCx,TCy,TCz)を求める。
(7) 工具方向補間ベクトル(Ttx,Tty,Ttz)に工具長補正量TLからコーナR補正量CRを差し引いた値(TL−CR)をかけて、工具長補正ベクトル(TLx,TLy,TLz)を求める。
(8) 切削点補間位置(Xt,Yt,Zt)に、コーナR補正ベクトル(CCx,CCy,CCz)、工具径補正ベクトル(TCx,TCy,TCz)および工具長補正ベクトル(TLx,TLy,TLz)を加算して、直線軸制御点位置(Xc,Yc,Zc)を求める。この直線軸制御点位置(Xc,Yc,Zc)が補間周期における直線軸(X,Y,Z軸)の移動位置である。
(9) 工具方向ベクトル(Ttx,Tty,Ttz)を回転軸制御点位置(Ac,Cc)に変換する。この変換された回転軸制御点位置(Ac,Cc)が補間周期毎の回転軸(A,C軸)が移動する位置である。この変換方法は、上述したボールエンドミルの場合と同じである。
FIG. 7 is an explanatory diagram of processing for obtaining the linear axis control point position and the rotation axis control point position by the cutting point command for each interpolation cycle when the tool 1 used is a radius end mill. An example of the machining program in this case is shown in FIG. Although it is equivalent to the machining program shown in FIG. 4, a tool length correction number (“H02”) and a tool radius correction number (“D02”) are commanded, and the correction number 02 in the tool correction amount setting example shown in FIG. Since the corner R correction amount CR is “2.0”, the radius end mill is designated. Others are the same as the example shown in FIG.
(1) The control device reads the block command (X, Y, Z, A, C, I, J, K) from the machining program, and starts from the position of the cutting point command (XS, YS, ZS) at the block start point. Interpolation processing is performed for each interpolation period up to the position to the cutting point command (XE, YE, ZE) at the block end point, and the cutting point interpolation position (Xt, Yt, Zt) is obtained.
(2) Interpolation from the cutting surface vertical direction command (IS, JS, KS) at the block start point to the cutting surface vertical direction command (IE, JE, KE) at the block end point, and cutting surface vertical direction interpolation for each interpolation cycle A vector (It, Jt, Kt) is obtained. The cutting surface vertical direction interpolation vector (It, Jt, Kt) is obtained as a unit vector.
(3) The tool direction vector (TSx, TSy, TSz) at the block start point and the tool direction vector (TEx, TEy, TEz) at the block end point are obtained from the tool direction commands A and C at the start point and end point in the read block. . This method is the same as the method described in (4) of the ball end mill.
(4) A tool direction interpolation vector (Ttx, Tty, Ttz) is obtained by performing interpolation processing from the tool direction vector (TSx, TSy, TSz) at the block start point to the tool direction vector (TEx, TEy, TEz) at the block end point. . This tool direction interpolation vector (Ttx, Tty, Ttz) is also obtained as a unit vector.
(5) The corner R correction vector (CCx, CCy, CCz) is obtained by multiplying the cutting surface vertical direction interpolation vector (It, Jt, Kt) by the corner R correction amount CR.
(6) The tool direction interpolation vector (Ttx, Tty, Ttz) on the plane formed by the tool direction interpolation vector (Ttx, Tty, Ttz) and the cutting surface vertical direction interpolation vector (It, Jt, Kt) is rotated by 90 degrees. (The method of rotation is the same as that of the square end mill), and the tool radius correction vector (TCx, TCx, TCx,) is multiplied by a value (TR-CR) obtained by subtracting the corner radius correction amount CR from the tool radius correction amount TR. TCy, TCz) is obtained.
(7) The tool length correction vector (TLx, TLy, TLz) is obtained by multiplying the tool direction interpolation vector (Ttx, Tty, Ttz) by a value (TL-CR) obtained by subtracting the corner R correction amount CR from the tool length correction amount TL. Ask for.
(8) At the cutting point interpolation position (Xt, Yt, Zt), a corner R correction vector (CCx, CCy, CCz), a tool radius correction vector (TCx, TCy, TCz), and a tool length correction vector (TLx, TLy, TLz) ) To obtain the linear axis control point position (Xc, Yc, Zc). This linear axis control point position (Xc, Yc, Zc) is the moving position of the linear axis (X, Y, Z axis) in the interpolation cycle.
(9) The tool direction vector (Ttx, Tty, Ttz) is converted into the rotation axis control point position (Ac, Cc). The converted rotation axis control point position (Ac, Cc) is a position where the rotation axis (A, C axis) for each interpolation period moves. This conversion method is the same as that of the ball end mill described above.

こうして、各補間周期毎に求めた直線軸制御点位置(Xc,Yc,Zc)、回転軸制御点位置(Ac,Cc)に移動するように各軸を駆動するサーボモータを駆動制御することによって、加工が実行される。   Thus, by driving and controlling the servo motor that drives each axis so as to move to the linear axis control point position (Xc, Yc, Zc) and rotation axis control point position (Ac, Cc) obtained for each interpolation cycle. Processing is executed.

以上のように、切削点列を指令して加工を行うときの直線軸(X、Y、Z軸)、回転軸(A、C軸)に対しては、上述したような補間処理がなされ、各補間周期毎の移動指令に基づいて加工が実行される。この加工の途中で、前述した特異点近傍で制御が不安定となったり、切り込みが過大となる場合がある。図9は、制御が不安定となる特異点近傍の説明図である。この例は、切削点指令の指令間隔距離は小さく、これに対して制御点の移動距離が大きいときという特異点で発生する制御が不安定となる例である(以下、この特異点を特異点1という)。この特異点1は次のような条件で発生する。
(イ) ブロック始点での工具方向ベクトル(TSx,TSy,TSz)と切削面垂直方向指令(IS,JS,KS)の方向(向き)が近い。
(ロ) ブロック始点での工具方向ベクトル(TSx,TSy,TSz)とブロック終点での工具方向ベクトル(TEx,TEy,TEz)の方向が近い。
(ハ) ブロック終点での工具方向ベクトル(TEx,TEy,TEz)と切削面垂直方向指令(IE,JE,KE)の方向が近く、それらの成す面での外積ベクトル(Vx,Vy,Vz)がブロック始点での工具方向ベクトル(TSx,TSy,TSz)と切削面垂直方向指令(IS,JS,KS)が成す面での外積ベクトル(Vx,Vy,Vz)と方向が大きく相違する。例えば180°くらい相違する。図9に示す例では、ブロック始点と終点で各ベクトルが同一平面上にあるとすれば、ブロック始点と終点の外積ベクトル(Vx,Vy,Vz)は、その符号が逆となり、180°相違している。その結果、この外積ベクトル(Vx,Vy,Vz)の単位ベクトル周りに(Ttx,Tty,Ttz)を90°回転させて求めたベクトルに工具径補正量TRを乗じて求める工具径補正ベクトル(TCx,TCy,TCz)も外積ベクトルの大きな変化に応じて大きく変化することになり、例えば180°程度変化することになる。図9には、工具径補正ベクトル(TCx,TCy,TCz)は、概略180°程度変化している例が示されている。
As described above, the interpolation process as described above is performed on the linear axes (X, Y, Z axes) and the rotation axes (A, C axes) when machining is performed by commanding a cutting point sequence. Machining is executed based on the movement command for each interpolation cycle. In the middle of this processing, the control may become unstable near the singular point described above, or the cut may be excessive. FIG. 9 is an explanatory diagram in the vicinity of a singular point where the control becomes unstable. In this example, the command interval distance of the cutting point command is small, and the control generated at the singular point when the movement distance of the control point is large is unstable (hereinafter, this singular point is referred to as the singular point). 1). This singular point 1 occurs under the following conditions.
(A) The direction (direction) of the tool direction vector (TSx, TSy, TSz) at the block start point and the cutting surface vertical direction command (IS, JS, KS) are close.
(B) The direction of the tool direction vector (TSx, TSy, TSz) at the block start point is close to the direction of the tool direction vector (TEx, TEy, TEz) at the block end point.
(C) The direction of the tool direction vector (TEx, TEy, TEz) at the end point of the block is close to the direction of the cutting surface vertical direction command (IE, JE, KE), and the outer product vector (Vx, Vy, Vz) on the surface formed by them. The tool direction vector (TSx, TSy, TSz) at the block start point and the outer product vector (Vx, Vy, Vz) on the surface formed by the cutting surface vertical direction command (IS, JS, KS) are greatly different. For example, it is different by about 180 °. In the example shown in FIG. 9, if each vector is on the same plane at the block start point and end point, the outer product vectors (Vx, Vy, Vz) of the block start point and end point have opposite signs and are 180 ° different. ing. As a result, a tool radius correction vector (TCx) obtained by multiplying a vector obtained by rotating (Ttx, Tty, Ttz) by 90 ° around the unit vector of the outer product vector (Vx, Vy, Vz) and the tool radius correction amount TR. , TCy, TCz) also changes greatly according to a large change in the outer product vector, for example, about 180 °. FIG. 9 shows an example in which the tool radius correction vector (TCx, TCy, TCz) is changed by about 180 °.

以上の(イ)、(ロ)、(ハ)の条件が発生すると、切削点(指令点)の間隔は小さくても対応する制御点(Xc,Yc,Zc)の動作は大きいということになり、図9に示すような例が発生する。図9に示す例では、ブロック始点では工具1の右側が切削点として指令されているがブロック終点では工具1の左側が切削点として指令されている場合を示しており、そのため、ブロック途中で工具径補正量の2倍程度の動作が発生する。このように工具径補正ベクトル(TCx,TCy,TCz)が大きく変化することから、制御点(Xc,Yc,Zc)が変動し、不安定な動作となる。
このような特異点により制御動作が不安定となる場合は、上述したスクエアエンドミルによる加工の場合以外にもラジアスエンドミルによる加工の場合にも生じる。
When the above conditions (a), (b), and (c) occur, the operation of the corresponding control point (Xc, Yc, Zc) is large even if the interval between the cutting points (command points) is small. An example as shown in FIG. 9 occurs. In the example shown in FIG. 9, the right side of the tool 1 is commanded as the cutting point at the block start point, but the left side of the tool 1 is commanded as the cutting point at the block end point. Operation about twice the diameter correction amount occurs. As described above, since the tool radius correction vector (TCx, TCy, TCz) changes greatly, the control point (Xc, Yc, Zc) fluctuates, resulting in an unstable operation.
When the control operation becomes unstable due to such a singular point, it occurs not only in the case of machining by the square end mill described above but also in the case of machining by a radius end mill.

次に、切削点指令の位置間隔は大きいが、その間隔を加工するときの制御点の移動が小さく、ループ上に移動するような特異点で切り込み量過大となるケースを説明する(以下この特異点を特異点2という)。
図10は、この特異点2での動作説明図である。この特異点が発生する条件は次のような条件のときである。
(イ) ブロック始点での直線軸制御点(Xc,Yc,Zc)(以下、ブロック始点での直線軸制御点(XSc,YSc,ZSc)と表す)の位置とブロック終点での直線軸制御点(Xc,Yc,Zc)(以下、ブロック終点での直線軸制御点(XEc,YEc,ZEc)と表す)の位置が近い。
(ロ) ブロック始点での工具方向ベクトル(TSx,TSy,TSz)とブロック終点での工具方向ベクトル(TEx,TEy,TEz)の方向が近い。
(ハ) ブロック始点での切削点指令(XS,YS,ZS)とブロック終点での切削点指令(XE,YE,ZE)の位置間の距離はある程度あり、ブロック始点での切削面垂直方向指令(IS,JS,KS)とブロック終点での切削面垂直方向指令(IE,JE,KE)の方向が大きく相違する。
Next, a case will be described in which the position interval of the cutting point command is large, but the movement of the control point when machining the interval is small, and the cutting amount is excessive at a singular point that moves on the loop (hereinafter referred to as this singular point). The point is called singular point 2).
FIG. 10 is an explanatory diagram of the operation at this singular point 2. FIG. The condition for generating this singularity is as follows.
(B) The position of the linear axis control point (Xc, Yc, Zc) at the block start point (hereinafter referred to as the linear axis control point (XSc, YSc, ZSc) at the block start point) and the linear axis control point at the block end point The position of (Xc, Yc, Zc) (hereinafter referred to as a linear axis control point (XEc, YEc, ZEc) at the block end point) is close.
(B) The direction of the tool direction vector (TSx, TSy, TSz) at the block start point is close to the direction of the tool direction vector (TEx, TEy, TEz) at the block end point.
(C) There is a certain distance between the position of the cutting point command (XS, YS, ZS) at the block start point and the cutting point command (XE, YE, ZE) at the block end point, and the cutting surface vertical direction command at the block start point The direction of the cutting surface vertical direction command (IE, JE, KE) at the end point of the block (IS, JS, KS) is greatly different.

図10で示す例では、ブロック始点と終点の切削面垂直方向指令(IS,JS,KS)(IE,JE,KE)の方向が、大きく相違し、始点での工具径補正ベクトル(TCSx,TCSy,TCSz)と終点での工具径補正ベクトル(TCEx,TCEy,TCEz)も大きく相違している。ブロックの始点と終点の工具方向ベクトル(TSx,TSy,TSz)、(TEx,TEy,TEz)の方向が近く、ブロックの始点と終点の工具長補正ベクトル(TLx,TLy,TLz)が重なり合うような状態であり、切削点指令に工具径補正ベクトル、工具長補正ベクトルを加算して求める直線軸の制御点位置は小さなループ状の動作となる。図10で示す例では、指令ブロック中に直線軸制御点は動作しないことが期待されているが、実際は破線矢印で記載したようなループ状の動作をする。その結果、加工物への切り込みなどが発生するという問題がある。   In the example shown in FIG. 10, the direction of the cutting surface vertical direction command (IS, JS, KS) (IE, JE, KE) at the block start point and the end point is greatly different, and the tool radius correction vector (TCSx, TCSy at the start point). , TCSz) and tool radius correction vectors (TCEx, TCEy, TCEz) at the end point are also greatly different. The direction of the tool direction vectors (TSx, TSy, TSz) and (TEx, TEy, TEz) at the start point and end point of the block are close, and the tool length correction vectors (TLx, TLy, TLz) at the start point and end point of the block overlap. In this state, the control point position of the linear axis obtained by adding the tool radius correction vector and the tool length correction vector to the cutting point command is a small loop-like operation. In the example shown in FIG. 10, it is expected that the linear axis control point does not operate during the command block, but actually the loop-shaped operation described by the broken-line arrow is performed. As a result, there is a problem that cutting into the workpiece occurs.

この切削点指令の指令間隔距離は小さく、これに対して制御点の移動距離が大きいときという特異点2による過大切り込みが発生するという問題は、上述したボールエンドミル以外のスクエアエンドミルやラジアスエンドミルを使用する場合にも発生する。   The problem of the excessive cutting due to the singular point 2 when the command interval distance of the cutting point command is small and the control point moving distance is large is that a square end mill or a radius end mill other than the ball end mill described above is used. It also occurs when you do.

そこで、本発明の目的は、前述した特異点近傍での不安定な動作や加工物への切り込みを防ぐことができる5軸加工機の制御方法を提供することにある。   Accordingly, an object of the present invention is to provide a control method for a 5-axis machining apparatus capable of preventing the above-described unstable operation near the singular point and cutting into a workpiece.

本願請求項1に係る発明は、コーナR部を持たないミル工具もしくはボールエンドミルを用い、予め設定されている工具径補正量および工具長補正量と、加工プログラムにより指令された切削点、切削面垂直方向および工具方向から、補間周期毎に直線軸制御点および回転軸制御点を求め該各制御点位置に各軸を駆動制御する直線軸3軸と回転軸2軸を有する5軸加工機を制御する数値制御方法において、ブロック毎にブロック始点および終点での切削点位置、直線軸制御点を求め、ブロック始点と終点における前記直線軸制御点間の距離が第1の設定値よりも小さく、かつ、ブロック始点と終点における前記切削点位置間の距離が第2の設定値よりも大きいと判断された場合、またはブロック始点と終点での前記直線軸制御点間の距離(CD)のブロック始点と終点での前記切削点位置間の距離(PD)に対する比の値(CD/PD)が第3の設定値より小さいと判断された場合に、当該ブロック終点での直線軸制御点は当該ブロック始点での直線軸制御点と等しいとして当該ブロックでの指令による直線軸の動作を発生させないようにすることにより、直線軸がループ状に移動する特異点近傍での過大な切り込み発生を防止するようにした5軸加工機の数値制御方法である。 The invention according to claim 1 of the present invention uses a mill tool or a ball end mill that does not have a corner R portion, and sets a preset tool diameter correction amount and tool length correction amount, a cutting point commanded by a machining program, and a cutting surface. A 5-axis processing machine having three linear axes and two rotational axes for driving and controlling each axis at each control point position by obtaining a linear axis control point and a rotational axis control point for each interpolation cycle from the vertical direction and the tool direction. In the numerical control method to control, the cutting point position and linear axis control point at the block start point and end point are obtained for each block, and the distance between the linear axis control point at the block start point and end point is smaller than the first set value, and, when the distance between the cutting point positions in the block start point and the end point is determined to be larger than the second set value, or block distance between the linear axis control point at the start and end points (C When the block start point and the ratio of the values for the distance (PD) between the cutting point positions at the end (CD / PD) is determined to be smaller than the third set value of), linear axis control in the end of block The point is equal to the linear axis control point at the start point of the block, so that the linear axis movement by the command in the block is not generated, thereby generating excessive cutting near the singular point where the linear axis moves in a loop. This is a numerical control method for a 5-axis machine that prevents the above-described problem.

請求項2に係る発明は、請求項1に係る発明において、特異点近傍におけるブロックの指令において直線軸の動作を発生させないようにした点に代えて、当該ブロックにおける直線軸に対してブロック始点での直線軸制御点位置からブロック終点での直線軸制御点位置への直線動作の移動指令としたものである。 In the invention according to claim 2, in the invention according to claim 1, in place of the point that the movement of the linear axis is not generated in the command of the block in the vicinity of the singular point , the block start point with respect to the linear axis in the block. The movement command of the linear motion from the linear axis control point position to the linear axis control point position at the block end point .

請求項3に係る発明は、コーナR部を持つミル工具を用い、予め設定されている工具径補正量、コーナR補正量および工具長補正量と、加工プログラムにより指令された切削点、切削面垂直方向および工具方向から、補間周期毎に直線軸制御点および回転軸制御点を求め該各制御点位置に各軸を駆動制御する直線軸3軸と回転軸2軸を有する5軸加工機を制御する数値制御方法において、ブロック毎にブロック始点および終点での切削点位置、直線軸制御点を求め、ブロック始点と終点における前記直線軸制御点間の距離が第1の設定値よりも小さく、かつ、ブロック始点と終点における前記切削点位置間の距離が第2の設定値よりも大きいと判断された場合、またはブロック始点と終点での前記直線軸制御点間の距離(CD)のブロック始点と終点での前記切削点位置間の距離(PD)に対する比の値(CD/PD)が第3の設定値より小さいと判断された場合に、当該ブロック終点での直線軸制御点は当該ブロック始点での直線軸制御点と等しいとして当該ブロックでの指令による直線軸の動作を発生させないようにすることにより、直線軸がループ状に移動する特異点近傍での過大な切り込み発生を防止するようにした5軸加工機の数値制御方法である。 The invention according to claim 3 uses a mill tool having a corner R portion, and sets a preset tool radius correction amount, a corner R correction amount and a tool length correction amount, a cutting point commanded by a machining program, and a cutting surface. A 5-axis processing machine having three linear axes and two rotational axes for driving and controlling each axis at each control point position by obtaining a linear axis control point and a rotational axis control point for each interpolation cycle from the vertical direction and the tool direction. In the numerical control method to control, the cutting point position and linear axis control point at the block start point and end point are obtained for each block, and the distance between the linear axis control point at the block start point and end point is smaller than the first set value, and, when the distance between the cutting point positions in the block start point and the end point is determined to be larger than the second set value, or block of the distance between the distance CD between the linear axis control point and an end point (CD) start And when the ratio of the values for the distance (PD) between the cutting point positions at the end (CD / PD) is determined to be smaller than the third set value, the linear axis control point at the block end point the block By preventing the operation of the linear axis according to the command in the block as being equal to the linear axis control point at the start point, it prevents excessive cutting near the singular point where the linear axis moves in a loop. This is a numerical control method for the five-axis machine.

請求項4に係る発明は、請求項3に係る発明において、特異点近傍におけるブロックの指令において直線軸の動作を発生させないようにした点に代えて、当該ブロックにおける直線軸に対してブロック始点での直線軸制御点位置からブロック終点での直線軸制御点位置への直線動作の移動指令としたものである。 In the invention according to claim 4, in the invention according to claim 3, in place of the point that the movement of the linear axis is not generated in the command of the block in the vicinity of the singular point , the block start point with respect to the linear axis in the block. The movement command of the linear motion from the linear axis control point position to the linear axis control point position at the block end point .

直線軸3軸と回転軸2軸を有する5軸加工機において、切削点指令の位置間隔は大きいが、その間隔を加工するときの制御点の移動が小さくなる特異点で生じる切り込み量過大を防止することができる。   In a 5-axis machine with 3 linear axes and 2 rotary axes, the position interval of the cutting point command is large, but the amount of cut that occurs at the singular point where the movement of the control point becomes small when machining the interval is prevented. can do.

以下、本発明の実施形態について図面と共に説明する。
図11は、本発明を実施する制御装置の実施形態としての数値制御装置の要部ブロック図である。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 11 is a principal block diagram of a numerical control device as an embodiment of a control device that implements the present invention.

CPU11は数値制御装置10を全体的に制御するプロセッサである。プロセッサ11はバス20を介して、メモリ12、表示装置13、キーボード等の入力手段14、インタフェース15、各軸のサーボモータを駆動制御する各軸の軸制御回路16、スピンドル(主軸)を駆動制御するスピンドル制御回路18等と接続されている。メモリ12は、ROM、RAM、FRAM等で構成されている。プロセッサ11は、メモリ12に格納されたシステムプログラムを、バス20を介して読み出し、該システムプログラムに従って数値制御装置全体を制御する。さらに、メモリ12にはインタフェース15を介して読み込まれた切削点指令で構成されたプログラム等の加工プログラムや、表示装置13、入力手段14を介して入力された各種加工プログラムや各種設定データ等の各種データが格納される。なお、本発明に関係して、上述した特異点1,2の近傍を検出し、不安定動作や過大切り込みを防止するためのソフトウェアが従来と比較して新たにメモリ12に追加格納されている。   The CPU 11 is a processor that controls the numerical controller 10 as a whole. The processor 11 drives and controls the memory 12, the display device 13, the input means 14 such as a keyboard, the interface 15, the axis control circuit 16 of each axis that controls the servo motor of each axis, and the spindle (main axis) via the bus 20. Connected to a spindle control circuit 18 or the like. The memory 12 is composed of ROM, RAM, FRAM and the like. The processor 11 reads a system program stored in the memory 12 via the bus 20 and controls the entire numerical control apparatus according to the system program. Further, the memory 12 stores machining programs such as programs constituted by cutting point commands read via the interface 15, various machining programs and various setting data inputted via the display device 13 and the input means 14, and the like. Various data are stored. In relation to the present invention, software for detecting the vicinity of the above-described singular points 1 and 2 and preventing unstable operation and excessive cutting is additionally stored in the memory 12 in comparison with the prior art. .

各軸の軸制御回路16はプロセッサ11からの各軸の移動指令量と各軸のサーボモータ22にそれぞれ内蔵する位置・速度検出器からの位置、速度フィードバック信号を受けて、位置・速度のフィードバック制御を行い、各軸の指令をサーボアンプ17に出力する。
サーボアンプ17はこの指令を受けて、機械(制御対象物)の各軸(X軸、Y軸、Z軸、A軸、C軸)のそれぞれのサーボモータ22を駆動する。なお、図11では、位置・速度のフィードバックについては省略している。
The axis control circuit 16 of each axis receives the movement command amount of each axis from the processor 11 and the position / speed feedback signal from the position / speed detector built in the servo motor 22 of each axis, and feeds back the position / speed. Control is performed, and commands for each axis are output to the servo amplifier 17.
In response to this command, the servo amplifier 17 drives each servo motor 22 of each axis (X axis, Y axis, Z axis, A axis, C axis) of the machine (control target). In FIG. 11, the position / speed feedback is omitted.

また、スピンドル制御回路18はプロセッサ11からの主軸回転指令と、主軸の回転速度を検出する図示していないポジションコーダからの速度フィードバックを受けて、速度のフィードバック制御を行いスピンドルアンプ19にスピンドル速度信号を出力する。スピンドルアンプ19はスピンドル速度信号を受けてスピンドルモータ23を指令された回転速度で回転させる。   Further, the spindle control circuit 18 receives a spindle rotation command from the processor 11 and a speed feedback from a position coder (not shown) that detects the rotation speed of the spindle, and performs feedback control of the speed, and sends a spindle speed signal to the spindle amplifier 19. Is output. The spindle amplifier 19 receives the spindle speed signal and rotates the spindle motor 23 at the commanded rotational speed.

上述した数値制御装置のハードウェア構成は、従来と同じであり、相違点は、メモリ12内に上述した特異点1,2の近傍を検出し、不安定動作や過大切り込みを防止するためのソフトウェアが新たに追加して格納されている点である。   The hardware configuration of the numerical control device described above is the same as the conventional one, and the difference is software for detecting the vicinity of the singular points 1 and 2 in the memory 12 and preventing unstable operation and excessive cutting. Is newly added and stored.

まず、特異点1近傍における動作不安定を解消する参考例について説明する。
図12は、特異点1の検出方法と、特異点が検出されたときの不安点な動作を回避する方法の説明図である。
前述したように、切削面垂直方向補間ベクトル(It,Jt,Kt)が求められ、かつ、工具方向補間ベクトル(Ttx,Tty,Ttz)が求められると、この2つのベクトルが成す角度αを求め、該角度αが予めパラメータ設定された値(Prm−α)より小さいか判別する。この角度αが設定値(Prm−α)より小さいということは、スクエアエンドミル又はラジアスエンドミルの先端平面と加工平面が平行に近い状態で、上述した特異点1が発生する条件(イ)〜(ハ)の条件を満たす可能性が高く、特異点1の近傍であることの可能性が高い。そのため、前記角度αが設定値(Prm−α)より小さいことが検出されたときは、工具径補正ベクトル(TCx,TCy,TCz)を前回の補間周期(1補間周期前)の工具径補正ベクトル(TCx,TCy,TCz)(以下この1補間周期前の工具径補正ベクトルを(TC0x,TC0y,TC0z)と記す)として、直線軸制御点位置(Xc,Yc,Zc)および回転軸制御点位置(Ac,Cc)を求めて、各軸を制御する。
First, a reference example for eliminating operation instability near the singular point 1 will be described.
FIG. 12 is an explanatory diagram of a method for detecting a singular point 1 and a method for avoiding an anxious point operation when a singular point is detected.
As described above, when the cutting surface vertical direction interpolation vector (It, Jt, Kt) is obtained and the tool direction interpolation vector (Ttx, Tty, Ttz) is obtained, the angle α formed by these two vectors is obtained. Then, it is determined whether the angle α is smaller than a value (Prm−α) set in advance. The fact that the angle α is smaller than the set value (Prm−α) means that the above-mentioned singular point 1 is generated in the state where the tip end plane of the square end mill or the radius end mill and the processing plane are almost parallel to (a) to (c). ) Is highly likely to be satisfied, and is likely to be in the vicinity of the singular point 1. Therefore, when it is detected that the angle α is smaller than the set value (Prm−α), the tool radius correction vector (TCx, TCy, TCz) is used as the tool radius correction vector of the previous interpolation cycle (one interpolation cycle before). (TCx, TCy, TCz) (Hereinafter, the tool radius correction vector before one interpolation cycle is described as (TC0x, TC0y, TC0z)), the linear axis control point position (Xc, Yc, Zc) and the rotational axis control point position (Ac, Cc) is obtained and each axis is controlled.

図9と共に段落「0017」で説明したように、工具径補正ベクトル(TCx,TCy,TCz)が大きく変化すると制御点(Xc,Yc,Zc)が変動して不安定な動作となる。そのため、ここで述べたように工具径補正ベクトル(TCx,TCy,TCz)を前回の補間周期での(1補間周期前の)工具径補正ベクトル(TC0x,TC0y,TC0z)とすることによって工具径補正ベクトル(TCx,TCy,TCz)を変化させない。その結果、特異点1は解消し、動作の不安定は解消することになる。   As described in paragraph “0017” together with FIG. 9, when the tool radius correction vector (TCx, TCy, TCz) changes greatly, the control point (Xc, Yc, Zc) fluctuates and an unstable operation occurs. Therefore, as described here, the tool radius correction vector (TCx, TCy, TCz) is used as the tool radius correction vector (TC0x, TC0y, TC0z) in the previous interpolation cycle (one interpolation cycle before). The correction vector (TCx, TCy, TCz) is not changed. As a result, the singular point 1 is eliminated, and the unstable operation is eliminated.

なお、切削面垂直方向補間ベクトル(It,Jt,Kt)と工具方向補間ベクトル(Ttx,Tty,Ttz)が成す角度αが設定値(Prm−α)より小さいかの判断は、切削面垂直方向補間ベクトル(It,Jt,Kt)と工具方向補間ベクトル(Ttx,Tty,Ttz)の内積を求め、該内積によって判断する。すなわち、
cos(α)=(Ttx,Tty,Ttz)・(It,Jt,Kt)
cos(α)>cos(Prm−α)であれば、角度αは設定値(Prm−α)より小さいと判断する。
Whether the angle α formed by the cutting surface vertical direction interpolation vector (It, Jt, Kt) and the tool direction interpolation vector (Ttx, Tty, Ttz) is smaller than the set value (Prm−α) is determined by the cutting surface vertical direction. An inner product of the interpolation vector (It, Jt, Kt) and the tool direction interpolation vector (Ttx, Tty, Ttz) is obtained, and the determination is made based on the inner product. That is,
cos (α) = (Ttx, Tty, Ttz) · (It, Jt, Kt)
If cos (α)> cos (Prm−α), it is determined that the angle α is smaller than the set value (Prm−α).

さらに本参考例では、一旦特異点1近傍とみなされ、1補間周期前の工具径補正ベクトル(TC0x,TC0y,TC0z)を用いた後、前記角度αが設定値(Prm−α)より大きくなり、特異点1が解消したと判断されたときには、通常の工具径補正ベクトル(TCx,TCy,TCz)を用いて制御点の位置を求めるが、この復帰のとき、制御点の移動速度は指令された速度(方式1)、または最大速度(方式2)の2つの方式を選択できるようにしている。   Furthermore, in this reference example, once the singular point 1 is considered, after using the tool radius correction vector (TC0x, TC0y, TC0z) before one interpolation cycle, the angle α becomes larger than the set value (Prm−α). When it is determined that the singular point 1 has been eliminated, the position of the control point is obtained using the normal tool radius correction vector (TCx, TCy, TCz). At this return, the moving speed of the control point is commanded. It is possible to select one of the two speeds (speed 1) or maximum speed (speed 2).

図13は、この参考例における特異点1の検出処理と該特異点近傍での動作不安定を防ぐ処理の中心としたアルゴリズムを示す補間周期毎の処理フローチャートである。
まず、従来と同様に、数値制御装置のプロセッサ11は、加工プログラムよりブロックの指令(X,Y,Z,A,C,I,J,K)を読込み、従来と同様に補間処理を行い、
切削点補間位置(Xt,Yt,Zt)
切削面垂直方向補間ベクトル(It,Jt,Kt)
工具方向補間ベクトル(Ttx,Tty,Ttz)
工具径補正ベクトル(TCx,TCy,TCz)
工具長補正ベクトル(TLx,TLy,TLz)を求める。
FIG. 13 is a process flowchart for each interpolation cycle showing an algorithm centering on the detection process of the singular point 1 and the process of preventing unstable operation in the vicinity of the singular point in this reference example.
First, the processor 11 of the numerical controller reads the block command (X, Y, Z, A, C, I, J, K) from the machining program as in the conventional case, performs the interpolation process as in the conventional case,
Cutting point interpolation position (Xt, Yt, Zt)
Cutting surface vertical direction interpolation vector (It, Jt, Kt)
Tool direction interpolation vector (Ttx, Tty, Ttz)
Tool radius compensation vector (TCx, TCy, TCz)
Tool length correction vectors (TLx, TLy, TLz) are obtained.

さらに、ラジアスエンドミルが指定されている場合には、
コーナR補正ベクトル(CCx,CCy,CCz)も求める(ステップa1)。
補間周期毎上述した位置、ベクトルを求める点は従来と同じである。
In addition, if a radius end mill is specified,
A corner R correction vector (CCx, CCy, CCz) is also obtained (step a1).
The point for obtaining the position and vector described above for each interpolation period is the same as in the prior art.

次に、プログラムで指定されている工具がボールエンドミルか否か判断する(ステップa2)。ボールエンドミルが指定されている場合には、この特異点1の現象は発生しないものであることから、ステップa7に移行し、従来と同様に直線軸制御点位置、回転軸制御点位置を求め、求めた各軸の位置への移動指令を各軸制御回路16に出力し、各軸のサーボモータ22を駆動制御する。   Next, it is determined whether or not the tool specified by the program is a ball end mill (step a2). When the ball end mill is designated, the phenomenon of the singular point 1 does not occur. Therefore, the process proceeds to step a7, and the linear axis control point position and the rotation axis control point position are obtained in the same manner as in the prior art. The obtained movement command to the position of each axis is output to each axis control circuit 16, and the servo motor 22 of each axis is driven and controlled.

一方、ステップa2で、指令された工具がスクエアエンドミル又はラジアスエンドミルで、ボールエンドミルではない場合には、ステップa3に移行し、切削面垂直方向補間ベクトル(It,Jt,Kt)と工具方向補間ベクトル(Ttx,Tty,Ttz)の内積の値が、パラメータで設定された値(Prm−α)の余弦値cos(Prm−α)より大きいか判断し、切削面垂直方向補間ベクトル(It,Jt,Kt)と工具方向補間ベクトル(Ttx,Tty,Ttz)が成す角度αが設定値(Prm−α)より小さいか判断する。   On the other hand, if the commanded tool is a square end mill or a radius end mill and not a ball end mill in step a2, the process proceeds to step a3, where the cutting surface vertical direction interpolation vector (It, Jt, Kt) and the tool direction interpolation vector are transferred. It is determined whether the inner product value of (Ttx, Tty, Ttz) is larger than the cosine value cos (Prm-α) of the value (Prm-α) set by the parameter, and the cutting surface vertical direction interpolation vector (It, Jt, It is determined whether an angle α formed by Kt) and the tool direction interpolation vector (Ttx, Tty, Ttz) is smaller than a set value (Prm−α).

前記角度αが設定値(Prm−α)より小さくないと判断されると、フラグFAが「1」にセットされているか判断する(ステップa8)。なお、フラグFAは所期設定で「0」が設定されている。フラグFAが「1」でなければ、切削点の速度をプログラムで指令された速度とする(ステップa12)。そして、1補間周期前の工具径補正ベクトル(TC0x,TC0y,TC0z)を記憶するレジスタに、ラジアスエンドミルが指定されている場合には、さらに、1補間周期前のコーナR補正ベクトル(CC0x,CC0y,CC0z)を記憶するレジスタに当該周期のステップa1で求められた工具径補正ベクトル(TCx,TCy,TCz)、コーナR補正ベクトル(CCx,CCy,CCz)を格納する(ステップa6)。   If it is determined that the angle α is not smaller than the set value (Prm−α), it is determined whether the flag FA is set to “1” (step a8). Note that the flag FA is set to “0” in the initial setting. If the flag FA is not “1”, the speed of the cutting point is set to the speed commanded by the program (step a12). When a radius end mill is specified in the register storing the tool radius correction vector (TC0x, TC0y, TC0z) before one interpolation cycle, the corner R correction vector (CC0x, CC0y before one interpolation cycle) is further specified. , CC0z), the tool radius correction vector (TCx, TCy, TCz) and the corner R correction vector (CCx, CCy, CCz) obtained in step a1 of the cycle are stored (step a6).

そして、直線軸制御点位置、回転軸制御点位置を求める。すなわち、指定工具がスクエアエンドミルの場合には、切削点補間位置(Xt,Yt,Zt)に工具径補正ベクトル(TCx,TCy,TCz)と工具長補正ベクトル(TLx,TLy,TLz)を加算して、直線軸制御点位置(Xc,Yc,Zc)を求め、工具方向補間ベクトル(Ttx,Tty,Ttz)より回転軸制御点位置(Ac,Cc)を求める。一方、指定工具がラジアスエンドミルの場合には、切削点補間位置(Xt,Yt,Zt)に、コーナR補正ベクトル(CCx,CCy,CCz)、工具径補正ベクトル(TCx,TCy,TCz)および工具長補正ベクトル(TLx,TLy,TLz)を加算して、直線軸制御点位置(Xc,Yc,Zc)を求め、工具方向補間ベクトル(Ttx,Tty,Ttz)より回転軸制御点位置(Ac,Cc)を求める(ステップa7)。こうして求めた各軸の位置への移動指令を各軸制御回路16に出力し、各軸のサーボモータ22を駆動制御する。   Then, the linear axis control point position and the rotation axis control point position are obtained. That is, when the designated tool is a square end mill, the tool radius correction vector (TCx, TCy, TCz) and the tool length correction vector (TLx, TLy, TLz) are added to the cutting point interpolation position (Xt, Yt, Zt). Thus, the linear axis control point position (Xc, Yc, Zc) is obtained, and the rotation axis control point position (Ac, Cc) is obtained from the tool direction interpolation vector (Ttx, Tty, Ttz). On the other hand, when the designated tool is a radius end mill, a corner R correction vector (CCx, CCy, CCz), a tool radius correction vector (TCx, TCy, TCz), and a tool at the cutting point interpolation position (Xt, Yt, Zt). The length correction vector (TLx, TLy, TLz) is added to obtain the linear axis control point position (Xc, Yc, Zc), and the rotation axis control point position (Ac, Tc) is determined from the tool direction interpolation vector (Ttx, Tty, Ttz). Cc) is obtained (step a7). The movement command to the position of each axis thus obtained is output to each axis control circuit 16, and the servo motor 22 of each axis is driven and controlled.

一方、ステップa3で、切削面垂直方向補間ベクトル(It,Jt,Kt)と工具方向補間ベクトル(Ttx,Tty,Ttz)が成す角度αが設定値(Prm−α)より小さいと判断されたときは、フラグFAを「1」にセットし(ステップa4)、レジスタに記憶する1補間周期前の工具径補正ベクトル(TC0x,TC0y,TC0z)を当該周期の工具径補正ベクトル(TCx,TCy,TCz)、1補間周期前のコーナR補正ベクトル(CC0x,CC0y,CC0z)を当該周期のコーナR補正ベクトル(CCx,CCy,CCz)とする(ステップa5)。そして、前述したステップa6の処理を実行し、当該周期で使用する工具径補正ベクトル(TCx,TCy,TCz)、コーナR補正ベクトル(CCx,CCy,CCz)をレジスタ格納し、次の補間周期において1補間周期前の工具径補正ベクトル(TC0x,TC0y,TC0z)、コーナR補正ベクトル(CC0x,CC0y,CC0z)とする。   On the other hand, when it is determined in step a3 that the angle α formed by the cutting surface vertical direction interpolation vector (It, Jt, Kt) and the tool direction interpolation vector (Ttx, Tty, Ttz) is smaller than the set value (Prm−α). Sets the flag FA to “1” (step a4), and stores the tool radius correction vector (TC0x, TC0y, TC0z) before one interpolation cycle stored in the register as the tool radius correction vector (TCx, TCy, TCz) of the cycle. ) The corner R correction vector (CC0x, CC0y, CC0z) before one interpolation cycle is set as the corner R correction vector (CCx, CCy, CCz) of the cycle (step a5). Then, the process of step a6 described above is executed, the tool radius correction vector (TCx, TCy, TCz) and the corner R correction vector (CCx, CCy, CCz) used in the cycle are stored in a register, and in the next interpolation cycle. A tool radius correction vector (TC0x, TC0y, TC0z) and a corner R correction vector (CC0x, CC0y, CC0z) before one interpolation cycle are used.

次に、前述したステップa7の処理を実行し、直線軸制御点位置(Xc,Yc,Zc)、回転軸制御点位置(Ac,Cc)を求めるが、この場合、ステップa5で、工具径補正ベクトル(TCx,TCy,TCz)、コーナR補正ベクトル(CCx,CCy,CCz)が1補間周期前の工具径補正ベクトル(TC0x,TC0y,TC0z)、1補間周期前のコーナR補正ベクトル(CC0x,CC0y,CC0z)とされていることから、これを用いて直線軸制御点位置(Xc,Yc,Zc)、回転軸制御点位置(Ac,Cc)が求められることになり、不安定な動作を防ぐことができる。   Next, the process of step a7 described above is executed to determine the linear axis control point position (Xc, Yc, Zc) and the rotation axis control point position (Ac, Cc). In this case, in step a5, the tool radius correction is performed. The vector (TCx, TCy, TCz) and the corner R correction vector (CCx, CCy, CCz) are the tool radius correction vector (TC0x, TC0y, TC0z) before one interpolation cycle, and the corner R correction vector (CC0x, CC0, CC0y, CC0z), the linear axis control point position (Xc, Yc, Zc) and the rotation axis control point position (Ac, Cc) are obtained using this, and unstable operation is performed. Can be prevented.

こうして、ステップa3で「Yes」と判断され、切削面垂直方向補間ベクトル(It,Jt,Kt)と工具方向補間ベクトル(Ttx,Tty,Ttz)との成す角度αが設定された値(Prm−α)より小さいと判断される限り、各補間周期毎、ステップa1〜a7の処理が実行され、切削面垂直方向補間ベクトル(It,Jt,Kt)と工具方向補間ベクトル(Ttx,Tty,Ttz)との成す角度αが設定された値(Prm−α)より小さくならないように、直線軸制御点位置(Xc,Yc,Zc)、回転軸制御点位置(Ac,Cc)が求められ、各軸が該位置に移動するように制御される。   Thus, “Yes” is determined in step a3, and the value (Prm−) in which the angle α formed by the cutting surface vertical direction interpolation vector (It, Jt, Kt) and the tool direction interpolation vector (Ttx, Tty, Ttz) is set. As long as it is determined to be smaller than α), the processing of steps a1 to a7 is executed for each interpolation cycle, and the cutting surface vertical direction interpolation vector (It, Jt, Kt) and tool direction interpolation vector (Ttx, Tty, Ttz). The linear axis control point position (Xc, Yc, Zc) and the rotation axis control point position (Ac, Cc) are obtained so that the angle α formed with the angle α is not smaller than the set value (Prm−α). Is controlled to move to this position.

ステップa3で切削面垂直方向補間ベクトル(It,Jt,Kt)と工具方向補間ベクトル(Ttx,Tty,Ttz)との成す角度αが設定された値(Prm−α)より大きいと判断され、ステップa8でフラグFAが「1」と判断されたとき(前補間周期まで、前記角度αが設定値(Prm−α)より小さいと判断され、当該周期でα≧(Prm−α)と判断されたとき)、フラグFAを「0」にセットし(ステップa9)、設定パラメータ(Prm−BF)が「1」に設定されているか否か判断する(ステップa10)。この設定パラメータ(Prm−BF)は、使用する切削点の移動速度として、指令された速度か最大速度かを選択するものであり、「1」と設定されている場合には、指令された速度を用い、「0」が設定されている場合には、切削点の速度が各軸パラメータで設定された最大速度を超えない最大速度に変更する。この切削点の速度を最大速度に変更理由は、一旦特異点1近傍とみなされた後において特異点1でないとみなされたときの補間周期で急激な速度で移動する恐れがあることから、このような過大速度で移動させないようにしたものである。   In step a3, it is determined that the angle α formed by the cutting surface vertical direction interpolation vector (It, Jt, Kt) and the tool direction interpolation vector (Ttx, Tty, Ttz) is larger than the set value (Prm−α). When the flag FA is determined to be “1” at a8 (until the previous interpolation period, it is determined that the angle α is smaller than the set value (Prm−α), and α ≧ (Prm−α) is determined in the period. ), The flag FA is set to “0” (step a9), and it is determined whether or not the setting parameter (Prm−BF) is set to “1” (step a10). This setting parameter (Prm-BF) is used to select the commanded speed or the maximum speed as the moving speed of the cutting point to be used. If it is set to "1", the commanded speed is selected. When “0” is set, the speed of the cutting point is changed to the maximum speed that does not exceed the maximum speed set by each axis parameter. The reason for changing the speed of this cutting point to the maximum speed is that it may move at a rapid speed in the interpolation cycle when it is considered not to be a singular point 1 after being considered to be near the singular point 1. It is made not to move at such an excessive speed.

こうして速度が変更又は維持されてステップa6に移行する。次の補間周期では、ステップa1で、この設定された速度で補間処理が実行されて各データが求められるが、ステップa11で最大速度に変更されている場合には、この最大速度で補間処理がなされ、各データが求められることになる。
そして、その次の周期では、フラグFAがステップa9で「0」にセットされているから、ステップa8から、ステップa12に移行し、速度は通常の指令された速度に戻されることになる。
In this way, the speed is changed or maintained, and the process proceeds to step a6. In the next interpolation cycle, interpolation processing is executed at the set speed in step a1, and each data is obtained. If the maximum speed is changed in step a11, the interpolation processing is performed at this maximum speed. Each data will be required.
In the next cycle, since the flag FA is set to “0” in step a9, the process proceeds from step a8 to step a12, and the speed is returned to the normal commanded speed.

図14は、本発明の実施形態が実施する特異点2の検出方法と、特異点2が検出されたときの切り込みが過大となる動作を回避する方法の説明図である。この実施形態は使用工具がボールエンドミルの例を記載している。なお、この図14では、ブロック始点での工具長補正ベクトル(TLSx,TLSy,TLSz)とブロック終点での工具長補正ベクトル(TLEx,TLEy,TLEz)、およびブロック始点での直線軸制御点(XSc,YSc,ZSc)とブロック終点での直線軸制御点(XEc,YEc,ZEc)はそれぞれ相違するベクトルおよび位置であるが、特異点2近傍においてはそれらのベクトル、位置は近いため便宜上同じ矢印、位置で表している。   FIG. 14 is an explanatory diagram of a method for detecting the singular point 2 performed by the embodiment of the present invention and a method for avoiding an operation in which the cutting is excessive when the singular point 2 is detected. This embodiment describes an example in which the tool used is a ball end mill. In FIG. 14, the tool length correction vector (TLSx, TLSy, TLSz) at the block start point, the tool length correction vector (TLEX, TLEy, TLEz) at the block end point, and the linear axis control point (XSc) at the block start point. , YSc, ZSc) and the linear axis control point (XEc, YEc, ZEc) at the end point of the block are different vectors and positions, respectively. Expressed by position.

又、図15は、この実施形態における特異点2の検出処理と該特異点近傍での動作不安定を防ぐ処理の中心としたアルゴリズムを示すブロック単位で行う処理フローチャートである。
この実施形態では、ブロック始点での直線軸制御点(XSc,YSc,ZSc)の位置とブロック終点での直線軸制御点(XEc,YEc,ZEc)の位置との間の距離と、ブロック始点での切削点指令(XS,YS,ZS)の位置とブロック終点での切削点指令(XE,YE,ZE)の位置間の距離によって、この特異点2の近傍か否か判別し、特異点の近傍であると、当該ブロックの直線軸制御点の移動を停止させるか、当該ブロックの移動を直線移動とすることによって、特異点2に対処して切り込み等が発生することを防止する。そのために、ブロック始点での直線軸制御点(XSc,YSc,ZSc)とブロック終点での直線軸制御点(XEc,YEc,ZEc)の距離CDが小さいか否かを判別するための基準となる距離をパラメータにより設定値(Prm−C)として設定しておく。又、ブロック始点での切削点指令(XS,YS,ZS)とブロック終点での切削点指令(XE,YE,ZE)の距離PDにより、特異点2を判断するための基準となる値(Prm−P)をパラメータで設定しておく。この2つのパラメータ設定値により特異点2か否かを判断する。
FIG. 15 is a flowchart of processing performed in units of blocks showing an algorithm centered on the processing for detecting the singular point 2 and the processing for preventing instability in the vicinity of the singular point in this embodiment.
In this embodiment, the distance between the position of the linear axis control point (XSc, YSc, ZSc) at the block start point and the position of the linear axis control point (XEc, YEc, ZEc) at the block end point, and the block start point Based on the distance between the position of the cutting point command (XS, YS, ZS) and the position of the cutting point command (XE, YE, ZE) at the block end point, it is determined whether or not the singular point 2 is in the vicinity. If it is in the vicinity, the movement of the linear axis control point of the block is stopped or the movement of the block is set to a linear movement, thereby preventing the occurrence of a cut or the like in response to the singular point 2. Therefore, it becomes a reference for determining whether or not the distance CD between the linear axis control point (XSc, YSc, ZSc) at the block start point and the linear axis control point (XEc, YEc, ZEc) at the block end point is small. The distance is set as a set value (Prm-C) by a parameter. Further, a reference value (Prm) for determining the singular point 2 based on the distance PD between the cutting point command (XS, YS, ZS) at the block start point and the cutting point command (XE, YE, ZE) at the block end point. -P) is set as a parameter. Whether or not the singular point is 2 is determined based on these two parameter setting values.

また、特異点2を判別する別の方法として、ブロック始点での直線軸制御点(XSc,YSc,ZSc)とブロック終点での直線軸制御点(XEc,YEc,ZEc)の距離CDとブロック始点での切削点指令(XS,YS,ZS)とブロック終点での切削点指令(XE,YE,ZE)の距離PDの比(CD/PD)によって判断するものとして、その判断基準の設定値(Prm−R)をパラメータで設定しておく。そして、特異点2の判別をどちらの方法で行うかを選択できるようにしており、この選択もパラメータで設定するものとし、設定パラメータ(Prm−SB)=0の場合、前者の距離CD、PDにより、設定パラメータ(Prm−SB)=1の場合、後者の比(CD/PD)によって判断するようにしている。さらに、本実施形態では、特異点2近傍とみなされた場合、ブロック終点での直線軸制御点位置(XEc,YEc,ZEc)をブロック始点での直線軸制御点位置(XSc,YSc,ZSc)と同じとし、直線軸制御点の動作を発生させないようにするか、または、直線軸についてはブロック始点での直線軸制御点位置(XSc,YSc,ZSc)からブロック終点での直線軸制御点位置(XEc,YEc,ZEc)への移動動作を直線の動作とするかを、選択できるようにしており、この選択をパラメータ設定で行うようにしており、設定パラメータ(Prm−B4)=0の場合は、直線軸制御点の動作を発生させないようにし、設定パラメータ(Prm−B4)=1の場合は、直線移動を選択するとするようにしている。なお、上述した各パラメータ設定については、パラメータ設定の代わりに、プログラム指令や信号によるようにしてもよいものである。   As another method for determining the singular point 2, the distance CD between the linear axis control point (XSc, YSc, ZSc) at the block start point and the linear axis control point (XEc, YEc, ZEc) at the block end point and the block start point. Is determined based on the ratio of the distance PD (CD / PD) between the cutting point command (XS, YS, ZS) and the cutting point command (XE, YE, ZE) at the end point of the block. Prm-R) is set as a parameter. Then, it is possible to select which method is used to determine the singular point 2. This selection is also set by a parameter. When the setting parameter (Prm−SB) = 0, the former distances CD and PD are set. Thus, when the setting parameter (Prm−SB) = 1, the determination is made based on the latter ratio (CD / PD). Furthermore, in this embodiment, when it is regarded as the vicinity of the singular point 2, the linear axis control point position (XEc, YEc, ZEc) at the block end point is changed to the linear axis control point position (XSc, YSc, ZSc) at the block start point. The linear axis control point operation is not generated or the linear axis control point position (XSc, YSc, ZSc) at the block start point is changed to the linear axis control point position at the block end point for the linear axis. When moving to (XEc, YEc, ZEc) can be selected as a linear operation, this selection is made by parameter setting, and when the setting parameter (Prm−B4) = 0 Does not cause the operation of the linear axis control point, and when the setting parameter (Prm−B4) = 1, the linear movement is selected. In addition, about each parameter setting mentioned above, you may make it use a program command or a signal instead of parameter setting.

指令ブロックを読み取り、該ブロックの始点の切削点指令(XS,YS,ZS)および切削面垂直方向指令(IS,JS,KS)を求める。ブロック始点での切削面垂直方向指令(IS,JS,KS)に工具径補正量TRを掛けて、ブロック始点での工具径補正ベクトル(TCSx,TCSy,TCSz)を求める。なお、切削面垂直方向指令(IS,JS,KS)は単位ベクトルであるとしている。また、指令されたブロック始点およびブロック終点での工具方向指令A、Cから、ブロック始点での工具方向ベクトル(TSx,TSy,TSz)を求める。求めたブロック始点での工具方向ベクトル(TSx,TSy,TSz)に(工具長補正量TL−工具径補正量TR)を掛けて、ブロック始点での工具長補正ベクトル(TLSx,TLSy,TLSz)を求める。ブロック始点での切削点指令(XS,YS,ZS)にブロック始点での工具径補正ベクトル(TCSx,TCSy,TCSz)とブロック始点での工具長補正ベクトル(TLSx,TLSy,TLSz)を加算し、ブロック始点での直線軸制御点(XSc,YSc,ZSc)を求める(ステップb1)。
この始点で直線軸制御点(XSc,YSc,ZSc)を求める処理は、前述した補間点の直線軸制御点(Xc,Yc,Zc)を求めるときと同一の方法であり、詳細は省略する。
The command block is read, and the cutting point command (XS, YS, ZS) and the cutting surface vertical direction command (IS, JS, KS) at the start point of the block are obtained. The cutting surface vertical direction command (IS, JS, KS) at the block start point is multiplied by the tool radius correction amount TR to obtain a tool radius correction vector (TCSx, TCSy, TCSz) at the block start point. The cutting surface vertical direction command (IS, JS, KS) is assumed to be a unit vector. Further, a tool direction vector (TSx, TSy, TSz) at the block start point is obtained from the commanded block direction commands A and C at the block start point and block end point. The obtained tool direction vector (TSx, TSy, TSz) at the block start point is multiplied by (tool length correction amount TL−tool diameter correction amount TR) to obtain the tool length correction vector (TLSx, TLSy, TLSz) at the block start point. Ask. Add the tool radius correction vector (TCSx, TCSy, TCSz) at the block start point and the tool length correction vector (TLSx, TLSy, TLSz) at the block start point to the cutting point command (XS, YS, ZS) at the block start point, A linear axis control point (XSc, YSc, ZSc) at the block start point is obtained (step b1).
The processing for obtaining the linear axis control point (XSc, YSc, ZSc) at this starting point is the same as that for obtaining the linear axis control point (Xc, Yc, Zc) of the interpolation point described above, and details thereof are omitted.

次に、ブロックの終点での切削点指令(XE,YE,ZE)および切削面垂直方向指令(IE,JE,KE)を求める。このブロック終点での切削面垂直方向指令(IE,JE,KE)に工具径補正量TRを掛けて、ブロック終点での工具径補正ベクトル(TCEx,TCEy,TCEz)を求める。なお、切削面垂直方向指令(IE,JE,KE)は単位ベクトルであるとしている。指令されたブロック始点およびブロック終点での工具方向指令A、Cから、ブロック終点での工具方向ベクトル(TEx,TEy,TEz)を求める。このブロック終点での工具方向ベクトル(TEx,TEy,TEz)に(工具長補正量TL−工具径補正量TR)を掛けて、ブロック終点での工具長補正ベクトル(TLEx,TLEy,TLEz)を求める。
ブロック終点での切削点指令(XE,YE,ZE)にブロック終点での工具径補正ベクトル(TCEx,TCEy,TCEz)とブロック終点での工具長補正ベクトル(TLEx,TLEy,TLEz)を加算し、ブロック終点での直線軸制御点(XEc,YEc,ZEc)を求める(ステップb2)。
Next, a cutting point command (XE, YE, ZE) and a cutting surface vertical direction command (IE, JE, KE) at the end point of the block are obtained. The cutting surface vertical direction command (IE, JE, KE) at the block end point is multiplied by the tool diameter correction amount TR to obtain a tool diameter correction vector (TCEx, TCEy, TCEz) at the block end point. The cutting surface vertical direction command (IE, JE, KE) is assumed to be a unit vector. A tool direction vector (TEx, TEy, TEz) at the block end point is obtained from the commanded direction A and C at the block start point and block end point. The tool direction vector (TEx, TEy, TEz) at the block end point is multiplied by (tool length correction amount TL−tool diameter correction amount TR) to obtain a tool length correction vector (TLEX, TLEy, TLEz) at the block end point. .
Add the tool radius correction vector (TCEx, TCEy, TCEz) at the block end point and the tool length correction vector (TLEX, TLEy, TLEz) at the block end point to the cutting point command (XE, YE, ZE) at the block end point, A linear axis control point (XEc, YEc, ZEc) at the block end point is obtained (step b2).

なお、この終点で直線軸制御点(XEc,YEc,ZEc)を求める処理は、前述した補間点の直線軸制御点(Xc,Yc,Zc)を求めるときと同一の方法であり、詳細は省略する。又、ブロックの終点は、次のブロックの始点であることから、ブロックの終点で求めた各データは、次のブロックの始点のデータとして使用できることから、次のブロックからは、ステップb1の処理は、前周期のステップb2で求めたブロック終点の各データを当該ブロックの始点データとして置き換えてもよいものである。 The processing for obtaining the linear axis control point (XEc, YEc, ZEc) at this end point is the same method as that for obtaining the linear axis control point (Xc, Yc, Zc) of the interpolation point described above, and the details are omitted. To do. Further, since the end point of the block is the start point of the next block, each data obtained at the end point of the block can be used as the data of the start point of the next block. Each data of the block end point obtained in step b2 of the previous cycle may be replaced with the start point data of the block.

次に、ブロック始点での直線軸制御点(XSc,YSc,ZSc)とブロック終点での直線軸制御点(XEc,YEc,ZEc)の距離CD、および、ブロック始点での切削点指令(XS,YS,ZS)とブロック終点での切削点指令(XE,YE,ZE)の距離PD求める(ステップb3)。   Next, the distance CD between the linear axis control point (XSc, YSc, ZSc) at the block start point and the linear axis control point (XEc, YEc, ZEc) at the block end point, and the cutting point command (XS, XS, at the block start point) YS, ZS) and the distance PD between the cutting point commands (XE, YE, ZE) at the block end point are obtained (step b3).

そして、設定パラメータ(Prm−SB)の値が「0」か判断し(ステップb4)、「0」ならば、距離CD、PDによって特異点2か否かを判断するものとし、まず、求めたブロック始点、終点の直線軸制御点間の距離CDが設定値(Prm−C)よりも小さいか判断する(ステップb5)。距離CDが設定値(Prm−C)以上のときには当該処理は終了する。又、距離CDが設定値(Prm−C)より小さいときには、ブロック始点、終点での切削点指令間の距離PDが設定値(Prm−P)よりも大きいか判断する(ステップb6)。
距離PDが設定値(Prm−P)以下のときは、当該処理は終了する。一方、距離PDが設定値(Prm−P)より大きいときには、特異点2近傍であると判別してステップb7に移行する。すなわち、ブロック始点、終点の直線軸制御点間の距離CDが小さく、ブロック始点、終点での切削点指令間の距離PDが大きいときには、このブロックの指令による加工は特異点2の近傍の加工であると判定する。
Then, it is determined whether or not the value of the setting parameter (Prm-SB) is “0” (step b4). If it is “0”, it is determined whether or not the singularity is 2 based on the distances CD and PD. It is determined whether the distance CD between the block start point and the end point linear axis control point is smaller than the set value (Prm-C) (step b5). When the distance CD is equal to or greater than the set value (Prm-C), the process is terminated. If the distance CD is smaller than the set value (Prm-C), it is determined whether the distance PD between the cutting point commands at the block start point and end point is greater than the set value (Prm-P) (step b6).
When the distance PD is less than or equal to the set value (Prm−P), the process ends. On the other hand, when the distance PD is larger than the set value (Prm−P), it is determined that it is near the singular point 2 and the process proceeds to step b7. That is, when the distance CD between the linear axis control points at the block start point and the end point is small and the distance PD between the cutting point commands at the block start point and the end point is large, the processing by the block command is processing near the singular point 2. Judge that there is.

又、設定パラメータ(Prm−SB)の値が「1」と設定されているときは、距離CDとPDの比(CD/PD)が設定値(Prm−R)より小さいか判別し、小さくないときには特異点2の近傍ではないとして、当該処理を終了する。一方、距離CDとPDの比(CD/PD)が設定値(Prm−R)より小さいときには、当該ブロックによる加工は特異点2近傍の加工であると判別し、ステップb7に移行する。   When the value of the setting parameter (Prm−SB) is set to “1”, it is determined whether the ratio of the distance CD to PD (CD / PD) is smaller than the setting value (Prm−R), and is not small. In some cases, it is determined that it is not in the vicinity of the singular point 2 and the process is terminated. On the other hand, when the ratio of the distance CD to PD (CD / PD) is smaller than the set value (Prm-R), it is determined that the processing by the block is processing near the singular point 2, and the process proceeds to step b7.

このようにして特異点2の近傍と判別されたときは、ステップb7で、設定パラメータ(Prm−B4)が「1」に設定されているか判別し、設定パラメータ(Prm−B4)=0の場合は、当該ブロックの終点での直線軸制御点位置(XEc,YEc,ZEc)が当該ブロック始点での直線軸制御点位置(XSc,YSc,ZSc)になるようにセットする(ステップb8)。その結果、当該ブロックの補間処理が実行されたとき、直線軸のXYZ軸への移動指令は発生しないことになる。一方、設定パラメータ(Prm−B4)が「1」に設定されている場合は、当該ブロックにおける直線軸に対してブロック始点での直線軸制御点位置(XSc,YSc,ZSc)からブロック終点での直線軸制御点位置(XEc,YEc,ZEc)への移動指令として直線の動作を指令する(ステップb9)。このことにより、ループ状の不安定な動作を発生させないものとなり、加工物への過大な切り込みを防止できる。   When it is determined that the singular point 2 is in the vicinity in this way, it is determined in step b7 whether or not the setting parameter (Prm−B4) is set to “1”, and the setting parameter (Prm−B4) = 0. Is set so that the linear axis control point position (XEc, YEc, ZEc) at the end point of the block becomes the linear axis control point position (XSc, YSc, ZSc) at the block start point (step b8). As a result, when the interpolation processing for the block is executed, a movement command for the linear axes to the XYZ axes is not generated. On the other hand, when the setting parameter (Prm−B4) is set to “1”, the linear axis control point position (XSc, YSc, ZSc) at the block start point relative to the linear axis in the block is changed to the block end point. A linear operation is commanded as a movement command to the linear axis control point position (XEc, YEc, ZEc) (step b9). This prevents a loop-like unstable operation from occurring and prevents excessive cutting into the workpiece.

上述した本発明の実施形態では、工具としてボールエンドミルを使用した例を説明したが、この特異点2の現象は、使用工具がスクエアエンドミルやラジアスエンドミルの場合でも発生するものであり、使用工具がスクエアエンドミルやラジアスエンドミルの場合でも同様にして、特異点2近傍を検出し、同様な処理を行うことによって、ループ状の不安定な動作の発生を防止し、加工物への過大な切り込みを防止する。
使用工具がボールエンドミルではなく、スクエアエンドミルやラジアスエンドミルを使用するときは、図15におけるステップb1、b2で求めるデータが相違するだけで、ステップb3以下の処理は同じである。
In the above-described embodiment of the present invention, the example in which the ball end mill is used as the tool has been described. However, the phenomenon of the singular point 2 occurs even when the tool used is a square end mill or a radius end mill. Similarly, in the case of square end mills and radius end mills, by detecting the vicinity of singular point 2 and performing the same processing, the occurrence of unstable loop-like motion is prevented and excessive cutting into the workpiece is prevented. To do.
When the tool used is not a ball end mill but a square end mill or a radius end mill, only the data obtained in steps b1 and b2 in FIG. 15 are different, and the processing after step b3 is the same.

スクエアエンドミルの場合は、
始点での次のデータを求める。
切削点指令(XS,YS,ZS)
切削面垂直方向指令(IS,JS,KS)
工具径補正ベクトル(TCSx,TCSy,TCSz)
工具方向ベクトル(TSx,TSy,TSz)
工具長補正ベクトル(TLSx,TLSy,TLSz)
直線軸制御点(XSc,YSc,ZSc)
(XSc,YSc,ZSc)=(XS,YS,ZS)+(TCSx,TCSy,TCSz)+ (TLSx,TLSy,TLSz)
また、終点での次のデータを求める。
切削点指令(XE,YE,ZE)
切削面垂直方向指令(IE,JE,KE)
工具径補正ベクトル(TCEx,TCEy,TCEz)
工具方向ベクトル(TEx,TEy,TEz)
工具長補正ベクトル(TLEx,TLEy,TLEz)
直線軸制御点(XEc,YEc,ZEc)
(XEc,YEc,ZEc)=(XE,YE,ZE)+(TCEx,TCEy,TCEz)+ (TLEx,TLEy,TLEz)
なお、ブロックの始点、終点での工具径補正ベクトル、工具方向ベクトル、および工具長補正ベクトルの求め方は、図6で説明した補間点での工具径補正ベクトル、工具方向ベクトル、および工具長補正ベクトルを求める方法と同等であり、説明を省略する。
For square end mills,
Find the next data at the starting point.
Cutting point command (XS, YS, ZS)
Cutting surface vertical direction command (IS, JS, KS)
Tool radius compensation vector (TCSx, TCSy, TCSz)
Tool direction vector (TSx, TSy, TSz)
Tool length compensation vector (TLSx, TLSy, TLSz)
Linear axis control point (XSc, YSc, ZSc)
(XSc, YSc, ZSc) = (XS, YS, ZS) + (TCSx, TCSy, TCSz) + (TLSx, TLSy, TLSz)
Also, the next data at the end point is obtained.
Cutting point command (XE, YE, ZE)
Cutting surface vertical direction command (IE, JE, KE)
Tool radius compensation vector (TCEx, TCEy, TCEz)
Tool direction vector (TEx, TEy, TEz)
Tool length compensation vector (TLEX, TLEy, TLEz)
Linear axis control point (XEc, YEc, ZEc)
(XEc, YEc, ZEc) = (XE, YE, ZE) + (TCEx, TCEy, TCEz) + (TLEX, TLEy, TLEz)
Note that the tool radius correction vector, tool direction vector, and tool length correction vector at the interpolation point described with reference to FIG. This is equivalent to a method for obtaining a vector, and the description is omitted.

ラジアスエンドミルの場合は、
始点での次のデータを求める。
切削点指令(XS,YS,ZS)
切削面垂直方向指令(IS,JS,KS)
コーナR補正ベクトル(CCSx, CCSy,CCSz)
工具径補正ベクトル(TCSx,TCSy,TCSz)
工具方向ベクトル(TSx,TSy,TSz)
工具長補正ベクトル(TLSx,TLSy,TLSz)
直線軸制御点(XSc,YSc,ZSc)
(XSc,YSc,ZSc)=(XS,YS,ZS)+(CCSx, CCSy,CCSz)+(TCSx,TCSy,TCSz)+(TLSx,TLSy,TLSz)
また、終点での次のデータを求める。
切削点指令(XE,YE,ZE)
切削面垂直方向指令(IE,JE,KE)
コーナR補正ベクトル(CCEx, CCEy,CCEz)
工具径補正ベクトル(TCEx,TCEy,TCEz)
工具方向ベクトル(TEx,TEy,TEz)
工具長補正ベクトル(TLEx,TLEy,TLEz)
直線軸制御点(XEc,YEc,ZEc)
(XEc,YEc,ZEc)=(XE,YE,ZE)+(CCEx, CCEy,CCEz) +(TCEx,TCEy,TCEz)+ (TLEx,TLEy,TLEz) なお、ブロック始点、終点でのコーナR補正ベクトル、工具径補正ベクトル、工具方向ベクトル、および工具長補正ベクトルの求め方は、図7で説明した補間点での工具径補正ベクトル、工具方向ベクトル、および工具長補正ベクトルを求める方法と同等であり、説明を省略する。
For radius end mills,
Find the next data at the starting point.
Cutting point command (XS, YS, ZS)
Cutting surface vertical direction command (IS, JS, KS)
Corner R correction vector (CCSx, CCSy, CCSz)
Tool radius compensation vector (TCSx, TCSy, TCSz)
Tool direction vector (TSx, TSy, TSz)
Tool length compensation vector (TLSx, TLSy, TLSz)
Linear axis control point (XSc, YSc, ZSc)
(XSc, YSc, ZSc) = (XS, YS, ZS) + (CCSx, CCSy, CCSz) + (TCSx, TCSy, TCSz) + (TLSx, TLSy, TLSz)
Also, the next data at the end point is obtained.
Cutting point command (XE, YE, ZE)
Cutting surface vertical direction command (IE, JE, KE)
Corner R correction vector (CCEx, CCEy, CCEz)
Tool radius compensation vector (TCEx, TCEy, TCEz)
Tool direction vector (TEx, TEy, TEz)
Tool length compensation vector (TLEX, TLEy, TLEz)
Linear axis control point (XEc, YEc, ZEc)
(XEc, YEc, ZEc) = (XE, YE, ZE) + (CCEx, CCEy, CCEz) + (TCEx, TCEy, TCEz) + (TLEX, TLEy, TLEz) Corner R correction at the block start and end points The method for obtaining the vector, the tool radius compensation vector, the tool direction vector, and the tool length compensation vector is the same as the method for obtaining the tool radius compensation vector, the tool orientation vector, and the tool length compensation vector at the interpolation point described in FIG. Yes, the description is omitted.

5軸加工機において、工具としてボールエンドミルを使用したときの指令された切削点と制御される工具位置との関係の説明図である。It is explanatory drawing of the relationship between the commanded cutting point and the tool position controlled when using a ball end mill as a tool in a 5-axis processing machine. 一般的な切削点指令での切削点と制御点の関係をスクエアエンドミルの例で説明する説明図である。It is explanatory drawing explaining the relationship between the cutting point and control point by a general cutting point command in the example of a square end mill. 工具としてボールエンドミルを用いたとき、切削点指令よりX、Y、Z軸の直線軸3軸とA、C軸の回転軸の位置を求めて制御するときの動作説明図である。When a ball end mill is used as a tool, it is an operation explanatory diagram when the positions of the X, Y and Z axis linear axes and the A and C axis rotation axes are determined and controlled from a cutting point command. 工具としてボールエンドミルを指定した切削点指令によるプログラム例を示す図である。It is a figure which shows the example of a program by the cutting point command which designated the ball end mill as a tool. 工具補正量の設定例を示す図である。It is a figure which shows the example of a setting of a tool correction amount. 使用工具がスクエアエンドミルのとき、切削点指令よりX、Y、Z軸の直線軸3軸とA、C軸の回転軸の位置を求めて制御するときの動作説明図である。When the tool used is a square end mill, it is an operation explanatory diagram when the positions of the X, Y and Z axis linear axes and the A and C axis rotation axes are determined and controlled from the cutting point command. 使用工具がラジアスエンドミルのとき、切削点指令よりX、Y、Z軸の直線軸3軸とA、C軸の回転軸の位置を求めて制御するときの動作説明図である。When the tool used is a radius end mill, it is an operation explanatory diagram when the positions of the three X, Y, and Z linear axes and the rotation axes of the A and C axes are determined and controlled from a cutting point command. 使用工具としてラジアスエンドミルを指定した切削点指令によるプログラム例を示す図である。It is a figure which shows the example of a program by the cutting point command which designated the radius end mill as a tool to be used. 動作が不安定となる特異点近傍の説明図である。It is explanatory drawing of the singular point vicinity where operation | movement becomes unstable. 過大な切り込みが生じる特異点近傍の説明図である。It is explanatory drawing of the singularity vicinity which an excessive cutting | disconnection produces. 本発明を実施する制御装置としての数値制御装置の要部ブロック図である。It is a principal part block diagram of the numerical control apparatus as a control apparatus which implements this invention. 本発明の参考例における特異点の検出方法と、特異点が検出されたときの不安点な動作を回避する方法の説明図である。It is explanatory drawing of the detection method of the singular point in the reference example of this invention, and the method of avoiding an anxious point operation | movement when a singular point is detected. 同参考例における特異点の検出処理と該特異点近傍での動作不安定を防ぐ処理の中心としたアルゴリズムを示す補間周期毎の処理フローチャートである。It is a process flowchart for every interpolation period which shows the algorithm centering on the detection process of the singular point in the same reference example, and the process which prevents operation | movement instability in the vicinity of this singular point. 本発明の実施形態における特異点の検出方法と、特異点が検出されたときの不安点な動作を回避する方法の説明図である。It is explanatory drawing of the detection method of the singular point in embodiment of this invention, and the method of avoiding the anxious point operation | movement when a singular point is detected. 同本発明の実施形態における特異点の検出処理と該特異点近傍での動作不安定を防ぐ処理の中心としたアルゴリズムを示すブロック単位で行う処理フローチャートである。5 is a process flowchart executed in units of blocks showing an algorithm centering on a process for detecting a singular point and a process for preventing unstable operation in the vicinity of the singular point in the embodiment of the present invention.

符号の説明Explanation of symbols

(X,Y,Z) 切削点指令
(XS,YS,ZS) ブロック始点の切削点指令
(XE,YE,ZE) ブロック終点の切削点指令
(Xt,Yt,Zt) 切削点補間位置
(I,J,K) 切削面垂直方向指令
(IS,JS,KS) ブロック始点での切削面垂直方向指令
(IE,JE,KE) ブロック終点での切削面垂直方向指令
(It,Jt,Kt) 切削面垂直方向補間ベクトル
(Tx,Ty,Tz) 工具方向ベクトル
(TSx,TSy,TSz) ブロック始点での工具方向ベクトル
(TEx,TEy,TEz) ブロック終点での工具方向ベクトル
(Ttx,Tty,Ttz) 工具方向補間ベクトル
(Xc,Yc,Zc) 直線軸の制御点
Ac、Cc 回転軸制御点位置
(TCx,TCy,TCz) 工具径補正ベクトル
(TLx,TLy,TLz) 工具長補正ベクトル
(CCx,CCy,CCz) コーナR補正ベクトル
(X, Y, Z) Cutting point command (XS, YS, ZS) Cutting point command at block start point (XE, YE, ZE) Cutting point command at block end point (Xt, Yt, Zt) Cutting point interpolation position (I, J, K) Cutting surface vertical direction command (IS, JS, KS) Cutting surface vertical direction command at block start point (IE, JE, KE) Cutting surface vertical direction command at block end point (It, Jt, Kt) Cutting surface Vertical direction interpolation vector (Tx, Ty, Tz) Tool direction vector (TSx, TSy, TSz) Tool direction vector at block start point (TEx, TEy, TEz) Tool direction vector at block end point (Ttx, Tty, Ttz) Tool Direction interpolation vector (Xc, Yc, Zc) Linear axis control point Ac, Cc Rotary axis control point position (TCx, TCy, TCz) Tool radius compensation vector (TLx, Tc) y, TLZ) tool length compensation vector (CCx, CCy, CCz) corner R compensation vector

Claims (4)

コーナR部を持たないミル工具もしくはボールエンドミルを用い、予め設定されている工具径補正量および工具長補正量と、加工プログラムにより指令された切削点、切削面垂直方向および工具方向から、補間周期毎に直線軸制御点および回転軸制御点を求め該各制御点位置に各軸を駆動制御する直線軸3軸と回転軸2軸を有する5軸加工機を制御する数値制御方法において、
ブロック毎にブロック始点および終点での切削点位置、直線軸制御点を求め、
ブロック始点と終点における前記直線軸制御点間の距離が第1の設定値よりも小さく、かつ、ブロック始点と終点における前記切削点位置間の距離が第2の設定値よりも大きいと判断された場合、またはブロック始点と終点での前記直線軸制御点間の距離(CD)のブロック始点と終点での前記切削点位置間の距離(PD)に対する比の値(CD/PD)が第3の設定値より小さいと判断された場合に、当該ブロック終点での直線軸制御点は当該ブロック始点での直線軸制御点と等しいとして当該ブロックでの指令による直線軸の動作を発生させないようにしたことを特徴とする5軸加工機の数値制御方法。
Using a mill tool or ball end mill that does not have a corner R section, the interpolation cycle is calculated from the preset tool radius compensation amount and tool length compensation amount, and the cutting point, cutting surface vertical direction, and tool direction specified by the machining program. In a numerical control method for controlling a 5-axis processing machine having three linear axes and two rotary axes for obtaining a linear axis control point and a rotary axis control point for each control point position, and driving and controlling each axis at each control point position.
For each block, find the cutting point position and linear axis control point at the block start point and end point,
It was determined that the distance between the linear axis control points at the block start point and the end point is smaller than the first set value, and the distance between the cutting point positions at the block start point and end point is greater than the second set value. Or a ratio value (CD / PD) of the distance (CD) between the linear axis control points at the block start point and the end point to the distance (PD) between the block start point and the cutting point position at the end point is a third value. When it is determined that the value is smaller than the set value , the linear axis control point at the end point of the block is assumed to be equal to the linear axis control point at the start point of the block so that the operation of the linear axis by the command in the block is not generated. A numerical control method for a 5-axis machining apparatus.
コーナR部を持たないミル工具もしくはボールエンドミルを用い、予め設定されている工具径補正量および工具長補正量と、加工プログラムにより指令された切削点、切削面垂直方向および工具方向から、補間周期毎に直線軸制御点および回転軸制御点を求め該各制御点位置に各軸を駆動制御する直線軸3軸と回転軸2軸を有する5軸加工機を制御する数値制御方法において、
ブロック毎にブロック始点および終点での切削点位置、直線軸制御点を求め、
ブロック始点と終点における前記直線軸制御点間の距離が第1の設定値よりも小さく、かつ、ブロック始点と終点における前記切削点位置間の距離が第2の設定値よりも大きいと判断された場合、またはブロック始点と終点での前記直線軸制御点間の距離(CD)のブロック始点と終点での前記切削点位置間の距離(PD)に対する比の値(CD/PD)が第3の設定値より小さいと判断された場合に、当該ブロックにおける直線軸に対してブロック始点での直線軸制御点位置からブロック終点での直線軸制御点位置への直線動作の移動指令とすることを特徴とする5軸加工機の数値制御方法。
Using a mill tool or ball end mill that does not have a corner R section, the interpolation cycle is calculated from the preset tool radius compensation amount and tool length compensation amount, and the cutting point, cutting surface vertical direction, and tool direction specified by the machining program. In a numerical control method for controlling a 5-axis processing machine having three linear axes and two rotary axes for obtaining a linear axis control point and a rotary axis control point for each control point position, and driving and controlling each axis at each control point position.
For each block, find the cutting point position and linear axis control point at the block start point and end point,
It was determined that the distance between the linear axis control points at the block start point and the end point is smaller than the first set value, and the distance between the cutting point positions at the block start point and end point is greater than the second set value. Or a ratio value (CD / PD) of the distance (CD) between the linear axis control points at the block start point and the end point to the distance (PD) between the block start point and the cutting point position at the end point is a third value. When it is determined that the value is smaller than the set value, a linear motion movement command from the linear axis control point position at the block start point to the linear axis control point position at the block end point with respect to the linear axis in the block is used. A numerical control method for a 5-axis machine.
コーナR部を持つミル工具を用い、予め設定されている工具径補正量、コーナR補正量および工具長補正量と、加工プログラムにより指令された切削点、切削面垂直方向および工具方向から、補間周期毎に直線軸制御点および回転軸制御点を求め該各制御点位置に各軸を駆動制御する直線軸3軸と回転軸2軸を有する5軸加工機を制御する数値制御方法において、
ブロック毎にブロック始点および終点での切削点位置、直線軸制御点を求め、
ブロック始点と終点における前記直線軸制御点間の距離が第1の設定値よりも小さく、かつ、ブロック始点と終点における前記切削点位置間の距離が第2の設定値よりも大きいと判断された場合、またはブロック始点と終点での前記直線軸制御点間の距離(CD)のブロック始点と終点での前記切削点位置間の距離(PD)に対する比の値(CD/PD)が第3の設定値より小さいと判断された場合に、当該ブロック終点での直線軸制御点は当該ブロック始点での直線軸制御点と等しいとして当該ブロックでの指令による直線軸の動作を発生させないようにしたことを特徴とする5軸加工機の数値制御方法。
Using a mill tool having a corner R section, interpolation is performed from the preset tool radius compensation amount, corner radius compensation amount and tool length compensation amount, and the cutting point, cutting surface vertical direction and tool direction specified by the machining program. In a numerical control method for controlling a 5-axis processing machine having three linear axes and two rotary axes for determining and driving a linear axis control point and a rotary axis control point for each cycle, and controlling each axis at each control point position,
For each block, find the cutting point position and linear axis control point at the block start point and end point,
It was determined that the distance between the linear axis control points at the block start point and the end point is smaller than the first set value, and the distance between the cutting point positions at the block start point and end point is greater than the second set value. Or a ratio value (CD / PD) of the distance (CD) between the linear axis control points at the block start point and the end point to the distance (PD) between the block start point and the cutting point position at the end point is a third value. When it is determined that the value is smaller than the set value , the linear axis control point at the end point of the block is assumed to be equal to the linear axis control point at the start point of the block so that the operation of the linear axis by the command in the block is not generated. A numerical control method for a 5-axis machining apparatus.
コーナR部を持つミル工具を用い、予め設定されている工具径補正量、コーナR補正量および工具長補正量と、加工プログラムにより指令された切削点、切削面垂直方向および工具方向から、補間周期毎に直線軸制御点および回転軸制御点を求め該各制御点位置に各軸を駆動制御する直線軸3軸と回転軸2軸を有する5軸加工機を制御する数値制御方法において、
ブロック毎にブロック始点および終点での切削点位置、直線軸制御点を求め、
ブロック始点と終点における前記直線軸制御点間の距離が第1の設定値よりも小さく、かつ、ブロック始点と終点における前記切削点位置間の距離が第2の設定値よりも大きいと判断された場合、またはブロック始点と終点での前記直線軸制御点間の距離(CD)のブロック始点と終点での前記切削点位置間の距離(PD)に対する比の値(CD/PD)が第3の設定値より小さいと判断された場合に、当該ブロックにおける直線軸に対してブロック始点での直線軸制御点位置からブロック終点での直線軸制御点位置への直線動作の移動指令とすることを特徴とする5軸加工機の数値制御方法。
Using a mill tool having a corner R section, interpolation is performed from the preset tool radius compensation amount, corner radius compensation amount and tool length compensation amount, and the cutting point, cutting surface vertical direction and tool direction specified by the machining program. In a numerical control method for controlling a 5-axis processing machine having three linear axes and two rotary axes for determining and driving a linear axis control point and a rotary axis control point for each cycle, and controlling each axis at each control point position,
For each block, find the cutting point position and linear axis control point at the block start point and end point,
It was determined that the distance between the linear axis control points at the block start point and the end point is smaller than the first set value, and the distance between the cutting point positions at the block start point and end point is greater than the second set value. Or a ratio value (CD / PD) of the distance (CD) between the linear axis control points at the block start point and the end point to the distance (PD) between the block start point and the cutting point position at the end point is a third value. When it is determined that the value is smaller than the set value, a linear motion movement command from the linear axis control point position at the block start point to the linear axis control point position at the block end point with respect to the linear axis in the block is used. A numerical control method for a 5-axis machine.
JP2008275869A 2008-10-27 2008-10-27 Numerical control method of 5-axis machine Active JP4607993B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008275869A JP4607993B2 (en) 2008-10-27 2008-10-27 Numerical control method of 5-axis machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008275869A JP4607993B2 (en) 2008-10-27 2008-10-27 Numerical control method of 5-axis machine

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2007131435A Division JP2008287471A (en) 2007-05-17 2007-05-17 Numerical control method for five-axis processing machine

Publications (2)

Publication Number Publication Date
JP2009054186A JP2009054186A (en) 2009-03-12
JP4607993B2 true JP4607993B2 (en) 2011-01-05

Family

ID=40505148

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008275869A Active JP4607993B2 (en) 2008-10-27 2008-10-27 Numerical control method of 5-axis machine

Country Status (1)

Country Link
JP (1) JP4607993B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5905521B2 (en) 2014-06-26 2016-04-20 ファナック株式会社 Numerical control device characterized by suppressing backlash generated during tool tip point control
JP6068614B2 (en) * 2015-12-21 2017-01-25 ファナック株式会社 Numerical control device characterized by suppressing backlash generated during tool tip point control

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003195917A (en) * 2001-10-16 2003-07-11 Fanuc Ltd Numerical control device
JP2003531422A (en) * 1998-10-08 2003-10-21 オープン マインド ソフトウェア テクノロジーズ ゲーエムベーハー Method of directing tool movement as part of removing material from a piece of material
JP2004220435A (en) * 2003-01-16 2004-08-05 Mitsubishi Electric Corp Numerical control device
JP2005174010A (en) * 2003-12-11 2005-06-30 Hitachi Ltd Numerical control curved surface working device
JP2005182437A (en) * 2003-12-19 2005-07-07 Fanuc Ltd Numerical control device and numerical control method
JP2006053789A (en) * 2004-08-12 2006-02-23 Hitachi Ltd Nc postprocessor device for multi-axis numerical control device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09254062A (en) * 1996-03-26 1997-09-30 Toyota Autom Loom Works Ltd Posture determining method and posture determining device of industrial robot

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003531422A (en) * 1998-10-08 2003-10-21 オープン マインド ソフトウェア テクノロジーズ ゲーエムベーハー Method of directing tool movement as part of removing material from a piece of material
JP2003195917A (en) * 2001-10-16 2003-07-11 Fanuc Ltd Numerical control device
JP2004220435A (en) * 2003-01-16 2004-08-05 Mitsubishi Electric Corp Numerical control device
JP2005174010A (en) * 2003-12-11 2005-06-30 Hitachi Ltd Numerical control curved surface working device
JP2005182437A (en) * 2003-12-19 2005-07-07 Fanuc Ltd Numerical control device and numerical control method
JP2006053789A (en) * 2004-08-12 2006-02-23 Hitachi Ltd Nc postprocessor device for multi-axis numerical control device

Also Published As

Publication number Publication date
JP2009054186A (en) 2009-03-12

Similar Documents

Publication Publication Date Title
JP2008287471A (en) Numerical control method for five-axis processing machine
JP4847613B2 (en) Numerical controller for multi-axis machines
TWI381256B (en) System, method, and computer readable medium for controlling the movement of a plurality of moveable axes of a machine tool system
JP5220183B2 (en) Numerical control device and control method of the numerical control device
JP5350766B2 (en) Numerical control device for 5-axis machine
Wan et al. Singularity avoidance for five-axis machine tools through introducing geometrical constraints
JP5159997B1 (en) Numerical controller
JP4199103B2 (en) Numerical control apparatus and numerical control method
JP5079165B2 (en) Numerical control apparatus and numerical control method
US20110087364A1 (en) Machine tool system control having automatic safe repositioning
JP3207409B2 (en) Robot tool attitude control method
WO2012056554A1 (en) Tool path generation method and tool path generation device
JP6012560B2 (en) Numerical controller
JP5399881B2 (en) Numerical control device for 5-axis machine
JP2009009274A (en) Numerical controller
JP4607993B2 (en) Numerical control method of 5-axis machine
US10697748B2 (en) Method for controlling shape measuring apparatus
US6735495B2 (en) Polynomial and spline interpolation of machine tool orientations
JP5461980B2 (en) Numerical control device for controlling a 5-axis processing machine having workpiece setting error correction means
JP4734439B2 (en) Numerical control device for 4-axis machine
JP6219866B2 (en) Numerical control device with display function and display program
Kanna et al. Optimized NURBS based G-code part program for high-speed CNC machining
JP2549932B2 (en) Numerical control device and command method thereof
JPH01274218A (en) System for correcting locus of industrial robot
JPH0337702A (en) Numerical controller

Legal Events

Date Code Title Description
A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20100519

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20100727

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100730

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100803

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100827

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20101007

R150 Certificate of patent or registration of utility model

Ref document number: 4607993

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131015

Year of fee payment: 3