JP3368792B2 - Method and apparatus for correcting arc trajectory specifying radius R in numerical controller - Google Patents

Method and apparatus for correcting arc trajectory specifying radius R in numerical controller

Info

Publication number
JP3368792B2
JP3368792B2 JP07602297A JP7602297A JP3368792B2 JP 3368792 B2 JP3368792 B2 JP 3368792B2 JP 07602297 A JP07602297 A JP 07602297A JP 7602297 A JP7602297 A JP 7602297A JP 3368792 B2 JP3368792 B2 JP 3368792B2
Authority
JP
Japan
Prior art keywords
arc
line segment
radius
segment length
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP07602297A
Other languages
Japanese (ja)
Other versions
JPH10268920A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP07602297A priority Critical patent/JP3368792B2/en
Publication of JPH10268920A publication Critical patent/JPH10268920A/en
Application granted granted Critical
Publication of JP3368792B2 publication Critical patent/JP3368792B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、数値制御装置(以
下NC装置と略す)における加工軌跡補正方法および装
置に関し、特に半径R指定円弧(以下R指定円弧と略
す)を行なうNC装置における加工軌跡補正方法および
装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a machining locus correction method and device in a numerical control device (hereinafter abbreviated as NC device), and more particularly to a machining locus in a NC device which performs a radius R designated arc (hereinafter abbreviated as R designated arc). The present invention relates to a correction method and device.

【0002】[0002]

【従来の技術】まず従来のR指定円弧処理について説明
する。NC装置の概略ブロック図は図11に示すとおり
である。図において加工プログラム、即ち加工情報はプ
ログラム入力部10で読み込み、この加工プログラムに
基づいて加工軌跡および加工速度が演算部12で演算さ
れる。演算部12の出力は制御部14に印加され、この
制御部14は加工指示指令に基づいて駆動部16へ制御
信号を出力し、この駆動部16で工作機械18の加工制
御が行われる。以上のようにプログラム入力部10から
与えられた加工プログラムに基づいて工作機械18が数
値制御されるが、加工プログラム(例えば円弧補間G0
2X――Y――R――F――;など)は演算部12にお
いて加工軌跡および加工速度信号に変換される。演算部
12には各情報に対応して、R指定円弧を処理するR指
定円弧演算部20、円弧を処理する円弧補間演算部22
や、図示していないが直線補間演算部、工具径補正演算
部、座標回転演算部など加工情報に対応した各演算処理
がある。
2. Description of the Related Art First, conventional R-designated arc processing will be described. A schematic block diagram of the NC device is as shown in FIG. In the figure, a machining program, that is, machining information is read by the program input unit 10, and a machining locus and a machining speed are calculated by the arithmetic unit 12 based on this machining program. The output of the arithmetic unit 12 is applied to the control unit 14, and the control unit 14 outputs a control signal to the drive unit 16 based on the machining instruction command, and the drive unit 16 controls the machining of the machine tool 18. As described above, the machine tool 18 is numerically controlled based on the machining program given from the program input unit 10, but the machining program (for example, circular interpolation G0
2X--Y--R--F--; etc.) is converted into a machining locus and a machining speed signal in the arithmetic unit 12. The calculation unit 12 has an R-specified circular arc calculation unit 20 for processing an R-specified circular arc and a circular interpolation calculation unit 22 for processing a circular arc corresponding to each piece of information.
Although not shown, there are various calculation processes corresponding to machining information, such as a linear interpolation calculation unit, a tool radius correction calculation unit, and a coordinate rotation calculation unit.

【0003】図12はNC装置におけるR指定円弧処理
装置の従来例を示すR指定円弧演算部20のブロック図
である。図においてプログラム入力部10で読み込んだ
加工プログラムがR指定円弧のとき、円弧始点、円弧終
点、指令半径から円弧中心座標を計算し、円弧補間演算
部22に印加するものである。
FIG. 12 is a block diagram of an R-designated arc calculation unit 20 showing a conventional example of an R-designated arc processing device in an NC device. In the figure, when the machining program read by the program input unit 10 is an R-designated arc, the arc center coordinates are calculated from the arc start point, arc end point, and command radius and applied to the arc interpolation calculation unit 22.

【0004】始点・終点間線分長演算手段40は円弧始
点Sと円弧終点Eからその間の線分長Lを計算するとこ
ろである。線分長・指令半径大小比較手段42は始点・
終点間線分長演算手段40で計算した線分長の1/2の
値(以下 線分長L/2 と記述する)と指令半径rと
比較し、線分長L/2が大きいとき円弧中心Cが求まら
ない加工プログラムと見なしエラー手段44でエラー停
止させる、一方指令半径rが大きいとき後述する中心距
離・中心角度演算手段80の処理を行なわせるものであ
る。エラー手段44は運転をエラー停止させ、NC装置
のオペレータにエラーであることを通知させるものであ
る。
The line segment length calculating means 40 between the start point and the end point is for calculating the line segment length L between the arc start point S and the arc end point E. Line segment length / command radius size comparison means 42
A value of 1/2 of the line segment length calculated by the end-to-end line segment length calculating means 40 (hereinafter referred to as line segment length L / 2) is compared with the command radius r, and when the line segment length L / 2 is large, an arc The processing is regarded as a machining program in which the center C is not determined, and the error means 44 stops the error. On the other hand, when the command radius r is large, the processing of the center distance / center angle calculation means 80 described later is performed. The error means 44 stops the operation due to an error, and notifies the operator of the NC device of the error.

【0005】中心距離・中心角度演算手段80は線分長
・指令半径大小比較手段42にて指令半径rが大きいと
判断されたとき、線分長Lと指令半径rから中心距離m
を計算し、この中心距離mからさらに中心角度θaを計
算し、円弧中心座標演算手段82に印加するものであ
る。円弧中心座標演算手段82は円弧始点S、円弧終点
Eから傾き角度θsを計算する。さらにこの傾き角度θ
sと、中心距離・中心角度演算手段80にて計算された
指令半径r、中心角度θaから円弧中心Cの座標Xc、
Ycを計算し、円弧補間演算部22に印加するものであ
る。
When the line length / command radius comparison means 42 determines that the command radius r is large, the center distance / center angle calculating means 80 calculates a center distance m from the line length L and the command radius r.
Is calculated, the center angle θa is further calculated from the center distance m, and the calculated center angle θa is applied to the arc center coordinate calculating means 82. The arc center coordinate calculation means 82 calculates the tilt angle θs from the arc start point S and the arc end point E. Furthermore, this tilt angle θ
s, the command radius r calculated by the center distance / center angle calculation means 80, the coordinate Xc of the arc center C from the center angle θa,
Yc is calculated and applied to the circular interpolation calculation section 22.

【0006】図13は上述のような構成によるR指定円
弧処理装置によって実施する、従来例によるR指定円弧
処理方法の実施手順を示しているフローチャートであ
る。このフローチャートは図14に図示するように円弧
始点S、円弧終点E、指令半径rから円弧中心Cの座標
Xc,Ycを計算するものである。
FIG. 13 is a flow chart showing the procedure for carrying out the conventional R-designated arc processing method implemented by the R-designated arc processing apparatus having the above-described configuration. This flowchart calculates the coordinates Xc and Yc of the center C of the arc from the arc start point S, the arc end point E, and the command radius r as shown in FIG.

【0007】図においてまずステップS10では円弧始
点Sと円弧終点Eからその線分長Lを求めるもので、次
の計算が行われ、ステップS20に進む。 L=SQRT((Xe−Xs)2+(Ye−Ys)2) ・・・(Xs、Ysは円弧始点Sの座標、Xe、Yeは
円弧終点Eの座標)
In the figure, first, in step S10, the line segment length L is obtained from the arc start point S and the arc end point E. The following calculation is performed, and the process proceeds to step S20. L = SQRT ((Xe−Xs) 2 + (Ye−Ys) 2 ) ... (Xs and Ys are the coordinates of the arc start point S, Xe and Ye are the coordinates of the arc end point E)

【0008】ステップS20は指令半径rと線分長L/
2を比較し、線分長L/2が大きいとき、即ち円弧中心
Cが求まらない加工プログラムのときエラー停止させ
る。逆に指令半径rが大きいとき、即ち円弧中心Cが求
まる加工プログラムのときステップS50に進む。ステ
ップS50は図14に示すように、線分長Lと円弧中心
Cとの中心距離mを三平方の定理から求め、そのあと中
心角度θa、即ち円弧終点E、円弧始点S、円弧中心C
となす角を次のように計算し、ステップS54に進む。 m=SQRT(r2−(L/2)2) θa=arc tan(m/(L/2)) =arc tan(2m/L)
In step S20, the command radius r and the line segment length L /
2 is compared, and when the line segment length L / 2 is large, that is, in the case of a machining program in which the arc center C cannot be obtained, an error stop is performed. Conversely, when the command radius r is large, that is, when the machining program is such that the arc center C is obtained, the process proceeds to step S50. In step S50, as shown in FIG. 14, the center distance m between the line segment length L and the arc center C is obtained from the Pythagorean theorem, and then the center angle θa, that is, the arc end point E, the arc start point S, and the arc center C.
The angle formed by and is calculated as follows, and the process proceeds to step S54. m = SQRT (r 2 − (L / 2) 2 ) θa = arc tan (m / (L / 2)) = arc tan (2 m / L)

【0009】次にステップS54は、円弧始点Sと円弧
終点Eから線分長Lの傾き角度θsを次のように計算
し、ステップS56に進む。 θs=arc tan((Ye−Ys)/(Xe−X
s))+n・π ・・・(Xe−Xs≧0のとき n=0、Xe−Xs<
0のときn=1) ステップS56は指令半径r、円弧中心角度θaと、ス
テップS54で計算した傾き角度θsから、円弧中心C
の座標(Xc、Yc)を次のように計算し終了する。 Xc=Xs+r・cos(θs+k・θa) Yc=Ys+r・sin(θs+k・θa) ・・・(円弧回転方向CWのとき k=−1、円弧回転
方向CCWのとき k=1)
Next, in step S54, the inclination angle θs of the line segment length L is calculated from the arc starting point S and the arc ending point E as follows, and the process proceeds to step S56. θs = arc tan ((Ye−Ys) / (Xe−X
s)) + n · π (when Xe−Xs ≧ 0, n = 0, Xe−Xs <
When n is 0, n = 1) In step S56, the arc center C is calculated from the command radius r, the arc center angle θa, and the tilt angle θs calculated in step S54.
The coordinates (Xc, Yc) of are calculated as follows and the process ends. Xc = Xs + r · cos (θs + k · θa) Yc = Ys + r · sin (θs + k · θa) ... (k = −1 for arc rotation direction CW, k = 1 for arc rotation direction CCW)

【0010】以上のようにR指定円弧の加工プログラム
の円弧始点S、円弧終点E、指令半径rから円弧中心C
が求められる。この動作結果を説明する。図15の通常
の加工プログラムの場合、円弧始点座標Xs=0、Ys
=0、円弧終点座標Xe=38.0、Ye=10.0、
指令半径r=27.785である。これからステップS
10で線分長L=39.29377が計算される。
As described above, the circular arc start point S, the circular arc end point E, the command radius r to the circular arc center C of the machining program for the R designated circular arc.
Is required. The result of this operation will be described. In the case of the normal machining program of FIG. 15, the arc starting point coordinates Xs = 0, Ys
= 0, arc end point coordinate Xe = 38.0, Ye = 10.0,
The command radius r = 27.785. Now step S
At 10, the line segment length L = 39.29377 is calculated.

【0011】次のステップS20では線分長L/2と指
令半径rの比較で指令半径rが大きいと判断され、ステ
ップS50に進む。ステップS50では中心距離m=1
9.64704と中心角度θa=π/4が計算される。
次のステップS54では傾き角度θs=0.257(六
十分法で14.743°)が計算され、最後のステップ
S56で円弧中心Cの座標Xc=14.0、Yc=2
4.0が計算される。以上のように通常の加工プログラ
ムではステップS10、S20、S50、S54、S5
6を通る。
In the next step S20, it is determined that the command radius r is large by comparing the line segment length L / 2 and the command radius r, and the process proceeds to step S50. In step S50, the center distance m = 1
9.64704 and the central angle θa = π / 4 are calculated.
In the next step S54, the tilt angle θs = 0.257 (14.743 ° in the six tenths method) is calculated, and in the final step S56, the coordinates Xc = 14.0, Yc = 2 of the arc center C are calculated.
4.0 is calculated. As described above, in the normal machining program, steps S10, S20, S50, S54 and S5 are performed.
Go through 6.

【0012】[0012]

【発明が解決しようとする課題】従来のNC装置におけ
るR指定円弧処理は上述のように行われている。ところ
でNC装置のプログラム入力部10には、最小入力単位
と言うものがあり、加工プログラムはその単位で組ま
れ、それ以下の数値は入力できない仕様になっている。
例えば最小入力単位が0.001mmとすれば、指令半
径の場合、R32.611の次に大きい数値はR32.
612になる。即ち、小数部第3位までが有効で、R3
2.61176のように小数部第4位以下の数値は入力
できないようになっている。ところでNC装置の演算部
12等では最小入力単位が0.001mmでも、演算精
度の確保のため、一部の加工プログラム指令や演算途中
結果を浮動小数点(例えば64ビット長)に変換してお
き、小数部第4位以下の数値でも取扱えるようにしてい
る。
The R-specified arc processing in the conventional NC device is performed as described above. By the way, the program input section 10 of the NC device has what is called a minimum input unit, and the machining program is assembled in that unit, and the specification is such that numerical values below that cannot be input.
For example, if the minimum input unit is 0.001 mm, and the command radius is R32.611, the next largest numerical value is R32.
It becomes 612. That is, up to the third decimal place is effective, R3
Numerical values below the fourth decimal place such as 2.61176 cannot be entered. By the way, even if the minimum input unit is 0.001 mm in the arithmetic unit 12 or the like of the NC device, some machining program commands or intermediate calculation results are converted into floating point (for example, 64-bit length) in order to secure the calculation accuracy. We are also able to handle numerical values below the fourth decimal place.

【0013】ここで図17のように半円指令の加工プロ
グラムで、円弧始点座標Xs=23.06、Ys=−2
3.06、円弧終点座標Xe=−23.06、Ye=2
3.06とし、指令半径rが32.61176・・・の
ところを前記に最小入力単位の制約により、小数部第4
位以下を切り捨てて小数部第3位までのr=32.61
1を入力したとする。
Here, as shown in FIG. 17, in the machining program of the semicircle command, the arc starting point coordinates Xs = 23.06, Ys = -2.
3.06, arc end point coordinate Xe = -23.06, Ye = 2
3.06, and where the command radius r is 32.61176 ... Due to the restriction of the minimum input unit, the decimal part 4
T = 32.61, rounding down to the second decimal place
Suppose you enter 1.

【0014】このとき図13のステップS10で線分長
L=65.22353・・・が計算されるが、次にステ
ップS20で線分長L/2と指令半径rの比較で、L/
2=32.61176・・・、r=32.61100の
ため、わずか0.00076線分長L/2が大きいと判
断されてしまい、円弧中心Cが求まらないエラーとな
る。即ち、図16に示すように所望の円弧中心Cよりわ
ずかに指令半径rが短いためエラーになり円弧軌跡が得
られない。
At this time, the line segment length L = 65.22353 ... Is calculated in step S10 of FIG. 13. Next, in step S20, the line segment length L / 2 is compared with the command radius r to obtain L /
Since 2 = 32.61176 ..., r = 32.61100, it is judged that only 0.00076 line segment length L / 2 is large, and the arc center C cannot be obtained. That is, as shown in FIG. 16, since the command radius r is slightly shorter than the desired center C of the arc, an error occurs and the arc locus cannot be obtained.

【0015】また半円指令で円弧始点S、円弧終点Eが
直交座標上、即ちX軸上またはY軸上にあり、かつ切り
捨てのない指令半径rを入力したとしても、NC内部演
算誤差(2乗、平方根他)および浮動小数点演算の特性
により、ステップS20の比較で線分長L/2がわずか
に大きい(例えば2-120)と判断しエラーになることが
ある。これはプログラム入力部10の最小入力単位を上
げても解決できないものである。
Even if the circular arc start point S and the circular arc end point E are on the Cartesian coordinates, that is, on the X axis or the Y axis in the semicircle command, and the command radius r without truncation is input, the NC internal calculation error (2 Due to the characteristics of the power, the square root, etc.) and the floating point calculation, it may be judged that the line segment length L / 2 is slightly large (for example, 2 −120 ) in the comparison in step S20, and an error may occur. This cannot be solved even if the minimum input unit of the program input unit 10 is increased.

【0016】次に図19のように半円指令の加工プログ
ラムで、円弧始点座標Xs=23.06、Ys=−2
3.06、円弧終点座標Xe=−23.06、Ye=2
3.06とし、指令半径rが32.61176・・・の
ところを最小入力単位の制約により、今度は小数部第4
位以下を切り上げてて小数部第3位までのr=32.6
12、即ち図17でのエラーを回避するため、0.00
1mm大きい値を指令したとする。
Next, as shown in FIG. 19, in the machining program of the semicircle command, the arc starting point coordinates Xs = 23.06, Ys = -2.
3.06, arc end point coordinate Xe = -23.06, Ye = 2
3.06 and the command radius r is 32.61176 ... By the restriction of the minimum input unit, this time the decimal part is the fourth.
Round up to the second decimal place and round up to the third place r = 32.6
12 or 0.00 to avoid the error in FIG.
It is assumed that a value larger by 1 mm is commanded.

【0017】このとき図13のステップS10で線分長
L=65.22353が計算され、次にステップS20
で線分長L/2と指令半径rの比較で、指令半径rが大
きいと判断され、円弧中心Cを求めるステップS50〜
S56の処理に進む。ステップS50では中心距離m=
0.12387と中心角度θa=0.003798(六
十分法で0.217°)が計算されるが、中心角度θa
はゼロにならない。次のステップS54では傾き角度θ
s=−π/4が計算され、最後のステップS56で円弧
中心Cの座標Xc=0.08759、Yc=0.087
59が計算されるが、所望の円弧中心Xc=0、Yc=
0とずれたところになる。
At this time, the line segment length L = 65.22353 is calculated in step S10 of FIG. 13, and then step S20.
Then, by comparing the line segment length L / 2 and the command radius r, it is determined that the command radius r is large, and the arc center C is obtained Step S50-
The process proceeds to S56. In step S50, the center distance m =
0.12387 and the central angle θa = 0.003798 (0.217 ° by the six tenths method) are calculated, but the central angle θa
Does not become zero. In the next step S54, the tilt angle θ
s = −π / 4 is calculated, and in the last step S56, the coordinates Xc = 0.08759 and Yc = 0.087 of the arc center C are calculated.
59 is calculated, but desired arc center Xc = 0, Yc =
It will be a place that is deviated from 0.

【0018】ところが前記円弧中心Xc=0.0875
9、Yc=0.08759で動作させると、図18のよ
うに意図しない軌跡誤差fが発生し、所望の円弧軌跡よ
り内側の円弧軌跡になる。軌跡誤差fの量は非常に大き
く0.12387mmに達し半円動作が得られない。特
に図20のように半円−半円を組み合わせて、全円を希
望してもラグビーボール型の軌跡になる。
However, the arc center Xc = 0.0875
9. When operated at Yc = 0.08759, an unintended locus error f occurs as shown in FIG. 18, and the locus becomes an arc locus inside the desired arc locus. The amount of the trajectory error f is very large, reaching 0.12387 mm, and the semi-circular motion cannot be obtained. In particular, as shown in FIG. 20, even if a half circle is combined with a half circle and all circles are desired, a rugby ball type trajectory is obtained.

【0019】ここで軌跡誤差fの発生メカニズムを図2
1を用いて説明する。図において所望の円弧中心をC
i、実際の円弧中心をCrとする。所望の円弧中心Ci
は円弧始点Sと円弧終点Eを結ぶ線分長Lの1/2のと
ころにある。ここで加工プログラムで指令された指令半
径rは最小入力単位制限(小数部第3位)のため線分長
L/2と等しくない。そのため所望の円弧中心Ciと実
際の円弧中心Crとの間には、ずれ量fが生ずる。その
量は三平方の定理から次のようになる。 f=SQRT(r2−(L/2)2) このずれ量fは図18に示すように、そのまま円弧軌跡
誤差fと同一のものである。
Here, the generation mechanism of the trajectory error f is shown in FIG.
This will be described using 1. In the figure, set the center of the desired arc to C
i, the actual center of the arc is Cr. Desired arc center Ci
Is at 1/2 of the line segment length L connecting the arc start point S and the arc end point E. The command radius r commanded by the machining program is not equal to the line segment length L / 2 because of the minimum input unit limit (third decimal place). Therefore, a deviation amount f occurs between the desired arc center Ci and the actual arc center Cr. The quantity is as follows from the Pythagorean theorem. f = SQRT (r 2 − (L / 2) 2 ) This deviation amount f is the same as the arc locus error f as it is, as shown in FIG.

【0020】次に具体的に図19のプログラム例を用い
て、ずれ量fを算出してみる。まず線分長Lは次のよう
になる。 L=SQRT((Xe−Xs)2+(Ye−Ys)2) =SQRT((−23.06−23.06)2 +(23.06−(−23.06))2) =65.223529・・・ 円弧始点Sから所望の円弧中心Ciまでの線分長L/2
は次のようになる。 L/2=32.611764・・・ ずれ量fは前記の式より次のようになる。 f=SQRT(r2−(L/2)2) =SQRT(32.6122−32.611764・・・2) =0.1238・・・ このためずれ量fが軌跡誤差fとなって実際の円弧軌跡
は所望の円弧軌跡より0.1238・・・mm内側の円
弧となる。
Next, the shift amount f will be calculated concretely using the program example of FIG. First, the line segment length L is as follows. L = SQRT ((Xe-Xs ) 2 + (Ye-Ys) 2) = SQRT ((- 23.06-23.06) 2 + (23.06 - (- 23.06)) 2) = 65. 223529 ... Line segment length L / 2 from arc starting point S to desired arc center Ci
Is as follows. L / 2 = 32.611764 ... The shift amount f is as follows from the above equation. f = SQRT (r 2 − (L / 2) 2 ) = SQRT (32.612 2 −32.611764 ... 2 ) = 0.1238 ... Therefore, the deviation amount f actually becomes the trajectory error f. The arc locus of is an arc of 0.1238 ... mm inside from the desired arc locus.

【0021】ここで指令半径rと線分長L/2との指令
誤差Kを算出すると次のようになる。 K=r−L/2 =32.612−32.611764・・・ =0.000236・・・ これから指令誤差K=0.000236に対し、軌跡誤
差f=0.1238になり、約500倍の軌跡誤差とな
っている。即ち、半円のR指定円弧の場合、指令誤差K
が最小入力単位0.001mm以下でも、その影響度が
非常に高く、軌跡誤差fとなって現れる。軌跡誤差fは
理論上、SQRTの括弧の中がゼロに近いほど、即ち半
円ほど大きくなる。
Here, the command error K between the command radius r and the line segment length L / 2 is calculated as follows. K = r−L / 2 = 32.612-32.611764 ... = 0.000236 ... From this, the command error K = 0.000236 results in a trajectory error f = 0.1238, which is about 500 times as large. There is a trajectory error. That is, in the case of the R-designated arc of the semicircle, the command error K
Even when the minimum input unit is 0.001 mm or less, the degree of influence is extremely high and appears as a trajectory error f. Theoretically, the trajectory error f becomes larger as the value in the parentheses of the SQRT is closer to zero, that is, as the semicircle.

【0022】ついで参考ながら図22を用いて1/4円
の場合の指令半径rを故意に大きくしたときの軌跡誤差
fを計算してみる。加工プログラムは図23のように1
/4円指令で、円弧始点座標Xs=23.06、Ys=
−23.06、円弧終点座標Xe=−23.06、Ye
=−23.06とし、指令半径rが32.61176・
・・のところを故意に最小入力単位の0.001mmを
超えた指令半径r=32.613とする。
Next, with reference to FIG. 22, the trajectory error f when the command radius r in the case of ¼ circle is intentionally increased will be calculated. The machining program is 1 as shown in Fig. 23.
/ 4 circle command, arc start point coordinates Xs = 23.06, Ys =
-23.06, arc end point coordinate Xe = -23.06, Ye
= -23.06 and the command radius r is 32.61176.
.. is intentionally set to a command radius r = 32.613 which exceeds the minimum input unit of 0.001 mm.

【0023】円弧始点Sから円弧終点Eまでの中点、即
ち線分長L/2のところを中点Mとすれば、円弧始点座
標Ysと円弧終点座標Yeが同じため、計算式および値
は次のようになる。 L/2=|(Xs−Xe)/2| =|(23.06−(−23.06))/2| =23.06 中点Mから所望の円弧中心Ciまでの線分をQiとすれ
ば、△SMCiが二等辺三角形のため、計算式および値
は次のようになる。 Qi=L/2 =23.06 中点Mから実際の円弧中心Crまでの線分をQrとすれ
ば、三平方の定理から、式および値は次のようになる。 Qr=SQRT(r2−(L/2)2) =SQRT(32.6132−23.062) =23.06174・・・ ずれ量f、即ち軌跡誤差fは線分QrとQiの差分であ
るから、その式および値は次のようになる。 f=Qr−Qi =23.06174・・・ − 23.06 =0.00174・・・
Assuming that the midpoint from the arc starting point S to the arc ending point E, that is, the line segment length L / 2 is the midpoint M, the arc starting point coordinate Ys and the arc ending point coordinate Ye are the same. It looks like this: L / 2 = | (Xs−Xe) / 2 | = | (23.06 − (− 23.06)) / 2 | = 23.06 The line segment from the midpoint M to the desired arc center Ci is Qi. Then, since ΔSMCi is an isosceles triangle, the calculation formula and value are as follows. Qi = L / 2 = 23.06 If the line segment from the midpoint M to the actual arc center Cr is Qr, the equation and values are as follows from the Pythagorean theorem. Qr = SQRT (r 2 − (L / 2) 2 ) = SQRT (32.613 2 −23.06 2 ) = 23.06174 ... The deviation amount f, that is, the trajectory error f is the difference between the line segments Qr and Qi. Therefore, the formula and the value are as follows. f = Qr−Qi = 23.06174 ...− 23.06 = 0.00174 ...

【0024】ここで指令半径rに故意に入れた指令誤差
Kは次のようになる。 K=32.611764・・・ − 32.613 =0.001236・・・ 従って前記の1/4円の加工プログラム場合、指令半径
rに誤差0.001236あっても軌跡誤差fは0.0
0174で、その影響度は1.4倍程度の小さい値で許
容できる範囲である。
Here, the command error K intentionally added to the command radius r is as follows. K = 32.611764 ... −32.613 = 0.01236 ... Therefore, in the case of the above-described ¼ circle machining program, even if the command radius r has an error of 0.001236, the locus error f is 0.0.
In 0174, the degree of influence is in a permissible range with a small value of about 1.4 times.

【0025】以上説明したように従来のNC装置は半円
のR指定円弧を行なっても、エラーになったり軌跡誤差
fが大きくなったりし、所望の動作にならないことにな
る。その対策の一つとして、NCオペレータにより、図
24に示すようにR指定円弧加工プログラムを円弧中心
Cを直接指定する、I・J指定円弧加工プログラムに変
更したり、1/4円のR指定円弧に分割する必要があっ
た。
As described above, in the conventional NC device, even if the semicircle R-designated arc is performed, an error occurs or the trajectory error f increases, and the desired operation cannot be performed. As one of the countermeasures, the NC operator changes the R-designated arc machining program to the I / J-designated arc machining program by directly designating the arc center C as shown in FIG. It had to be divided into arcs.

【0026】また市販のNC装置用自動プログラミング
装置では、半円のR指定円弧の弱点を考慮せずにソフト
ウエア処理の簡素化を目的に、すべてR指定円弧のフォ
ーマットで加工プログラムを作ることがある。そのため
やむえずNCオペレータが、自動プログラミング装置で
作成した加工プログラムから、該当部分の抽出、手での
座標計算、I・J指定円弧への変更をおこなわなければ
ならず、加工プログラム量が多ければ多いほどNCオペ
レータの負担が大きくなるなどの問題があった。
Further, in the commercially available automatic programming device for NC device, it is possible to create a machining program in the format of all R-designated arcs for the purpose of simplifying the software processing without considering the weak points of the R-designated arcs of the semicircle. is there. Therefore, the NC operator must unavoidably extract the relevant part from the machining program created by the automatic programming device, calculate the coordinates by hand, and change to the I / J designated arc, if the machining program amount is large. There was a problem that the load on the NC operator increased as the number increased.

【0027】また従来のNC装置によっては、図25の
ように線分長L/2が指令半径rより大きい加工プログ
ラムの場合、エラー停止させず、図25に示すように指
令半径rのままで円弧動作を行なわせ、不足半径部分を
直線動作をさせたり、図示していないが、円弧動作の進
行と共に円弧半径を徐々に大きくさせる渦巻き動作を行
なわせることもあるが、正確な半円の円弧軌跡が得られ
ないなどの問題があった。
Further, depending on the conventional NC device, in the case of a machining program in which the line segment length L / 2 is larger than the command radius r as shown in FIG. 25, no error stop is made and the command radius r remains as shown in FIG. A circular arc motion may be performed to linearly move the insufficient radius portion, or a spiral motion (not shown) may be performed to gradually increase the arc radius as the arc motion progresses. There was a problem such as not getting a trajectory.

【0028】本発明は上述のような問題点を解消するた
めなされたものであり、半円のR指定円弧が指令されて
も所望の円弧動作を行なう、NC装置におけるR指定円
弧軌跡補正方法および装置を提供することを目的として
いる。
The present invention has been made in order to solve the above-mentioned problems, and a method for correcting an R-designated arc locus in an NC device, which performs a desired arc operation even when an R-designated arc of a semicircle is commanded, and The purpose is to provide a device.

【0029】[0029]

【課題を解決するための手段】上述の目的を達成するた
め、この発明によるNC装置におけるR指定円弧軌跡補
正方法は、R指定円弧指令により指定された円弧始点S
と円弧終点Eと指令半径rから、円弧始点Sと円弧終点
E間の線分長Lを計算し、その線分長L/2と指令半径
rと比較し、線分長L/2が大きい場合、その差Hを求
め、その差Hと予め任意または定数設定されたエラー許
容値gとを比較し、エラー許容値gが前記差Hより大き
い場合には、指令半径rを線分長L/2に補正し、前記
補正された指令半径rから円弧中心Cを計算し、円弧動
作を行なうものである。
In order to achieve the above-mentioned object, an R designated circular arc trajectory correction method in an NC device according to the present invention uses an arc starting point S designated by an R designated circular arc command.
From the arc end point E and the command radius r, the line segment length L between the arc start point S and the arc end point E is calculated and compared with the line segment length L / 2 and the command radius r, and the line segment length L / 2 is large. In that case, the difference H is obtained, and the difference H is compared with an error allowable value g set in advance to an arbitrary value or a constant. If the error allowable value g is larger than the difference H, the command radius r is changed to the line segment length L. It is corrected to / 2, the arc center C is calculated from the corrected command radius r, and the arc operation is performed.

【0030】次の発明によるNC装置におけるR指定円
弧軌跡補正装置は、R指定円弧指令により指定された円
弧始点Sと円弧終点Eと指令半径rから、円弧始点Sと
円弧終点E間の線分長Lを計算する始点・終点間線分長
演算手段と、前記始点・終点間線分長演算手段で計算し
た線分長L/2と指令半径rと比較する線分長・指令半
径大小比較手段と、エラー許容値gを任意設定またはN
C装置内の定数設定するエラー許容値設定手段と、線分
長・指令半径大小比較手段にて線分長L/2が大きいと
判断されたとき、線分長L/2と指令半径rの差Hとエ
ラー許容値gと比較するエラー許容値比較手段と、エラ
ー許容値比較手段にてエラー許容値gが大きいと判断さ
れたとき、指令半径rを線分長L/2に補正する指令半
径補正手段と、前記補正された指令半径rから円弧中心
Cを計算する円弧中心座標演算手段と、を有している。
An R designated circular arc locus correction device in an NC device according to the following invention is a line segment between the circular arc start point S and the circular arc end point E from a circular arc start point S, a circular arc end point E and a command radius r designated by an R designated arc command. Line segment length calculation means for calculating the length L and line segment length L / 2 calculated by the line segment length calculation means between the start point and end point and the command radius r are compared. Means and error tolerance g are set arbitrarily or N
When the line segment length L / 2 is determined to be large by the error allowable value setting means for setting a constant in the C device and the line segment length / command radius size comparison means, the line segment length L / 2 and the command radius r An error allowance comparing means for comparing the difference H with the error allowance g, and an instruction for correcting the command radius r to the line segment length L / 2 when the error allowance comparing means judges that the error allowance g is large. It has radius correction means and arc center coordinate calculation means for calculating the arc center C from the corrected command radius r.

【0031】次の発明によるNC装置におけるR指定円
弧軌跡補正方法は、R指定円弧指令により指定された円
弧始点Sと円弧終点Eと指令半径rから、円弧始点Sと
円弧終点E間の線分長Lを計算し、その線分長L/2と
指令半径rと比較し、指令半径rが大きい場合、その差
r−L/2と予め任意または定数設定された半円許容値
jとを比較し、半円許容値jが前記差r−L/2より大
きい場合には、指令半径rを線分長L/2に補正し、前
記補正された指令半径rから円弧中心Cを計算し、円弧
動作を行なうものである。
In the method for correcting an R-designated arc locus in an NC device according to the following invention, a line segment between the arc start point S and the arc end point E from the arc start point S, the arc end point E, and the command radius r specified by the R design arc command. The length L is calculated, the line segment length L / 2 is compared with the command radius r, and when the command radius r is large, the difference r−L / 2 and the semicircle allowable value j set in advance or constant are set. In comparison, when the semicircle allowable value j is larger than the difference r−L / 2, the command radius r is corrected to the line segment length L / 2, and the arc center C is calculated from the corrected command radius r. , Circular arc operation is performed.

【0032】次の発明によるNC装置におけるR指定円
弧軌跡補正装置は、R指定円弧指令により指定された円
弧始点Sと円弧終点Eと指令半径rから、円弧始点Sと
円弧終点E間の線分長Lを計算する始点・終点間線分長
演算手段と、前記始点・終点間線分長演算手段で計算し
た線分長L/2と指令半径rと比較する線分長・指令半
径大小比較手段と、半円許容値jを任意設定またはNC
装置内の定数設定する半円許容値設定手段と、線分長・
指令半径大小比較手段にて指令半径rが大きいと判断さ
れたとき、線分長L/2と指令半径rの差r−L/2と
半円許容値jと比較する半円許容値比較手段と、半円許
容値比較手段にて半円許容値jが大きいと判断されたと
き、指令半径rを線分長L/2に補正する指令半径補正
手段と、前記補正された指令半径rから円弧中心Cを計
算する円弧中心座標演算手段と、を有している。
An R-designated arc locus correction device in an NC device according to the following invention is a line segment between the arc start point S and the arc end point E from the arc start point S, the arc end point E, and the command radius r specified by the R design arc command. Line segment length calculation means for calculating the length L and line segment length L / 2 calculated by the line segment length calculation means between the start point and end point and the command radius r are compared. Means and semicircle tolerance j are set arbitrarily or NC
Semicircle allowable value setting means for setting constants in the device, line segment length,
When the command radius size comparison means determines that the command radius r is large, the semicircle allowable value comparison means compares the difference r−L / 2 between the line segment length L / 2 and the command radius r with the semicircle allowable value j. Then, when the semicircle allowable value comparing means determines that the semicircular allowable value j is large, the command radius correcting means for correcting the command radius r to the line segment length L / 2, and the corrected command radius r And an arc center coordinate calculating means for calculating the arc center C.

【0033】次の発明によるNC装置におけるR指定円
弧軌跡補正方法は、前述のR指定円弧軌跡補正方法に
て、エラー許容値gと半円許容値jが等しい条件の場合
で、R指定円弧指令により指定された円弧始点Sと円弧
終点Eと指令半径rから、円弧始点Sと円弧終点E間の
線分長Lを計算し、指令半径rと前記線分長L/2との
差分の絶対値Kを計算し、差分Kと予め任意または定数
設定された半円許容値jとを比較し、半円許容値jが前
記差分Kより大きい場合には、指令半径rを線分長L/
2に補正し、前記補正された指令半径rから円弧中心C
を計算し、円弧動作を行なうものである。
An R-designated arc locus correction method in an NC device according to the next invention is the R-designated arc locus correction method, in the above-described R-designated arc locus correction method, when the error tolerance value g and the semicircle tolerance value j are equal. The line segment length L between the arc start point S and the arc end point E is calculated from the arc start point S, the arc end point E, and the command radius r specified by, and the absolute difference between the command radius r and the line segment length L / 2 is calculated. The value K is calculated, and the difference K is compared with the semi-circle allowable value j which is set arbitrarily or in advance. If the semi-circular allowable value j is larger than the difference K, the command radius r is set to the line segment length L /
2 is corrected, and the arc center C is calculated from the corrected command radius r.
Is calculated, and an arc operation is performed.

【0034】次の発明によるNC装置におけるR指定円
弧軌跡補正装置は、前述のR指定円弧軌跡補正にて、エ
ラー許容値gと半円許容値jが等しい条件の場合で、R
指定円弧指令により指定された円弧始点Sと円弧終点E
と指令半径rから、円弧始点Sと円弧終点E間の線分長
Lを計算する始点・終点間線分長演算手段と、前記始点
・終点間線分長演算手段で計算した線分長L/2と指令
半径rとの差分の絶対値Kを計算する線分長・指令半径
間差分演算手段と、半円許容値jを任意設定またはNC
装置内の定数設定する半円許容値設定手段と、前記線分
長・指令半径間差分演算手段で計算した差分Kと半円許
容値jと比較する半円許容値比較手段と、半円許容値比
較手段にて半円許容値jが大きいと判断されたとき、指
令半径rを線分長L/2に補正する指令半径補正手段
と、前記補正された指令半径rから円弧中心Cを計算す
る円弧中心座標演算手段と、を有している。
The R-designated circular locus correction device in the NC device according to the next invention is the R-designated circular locus correction, and when the error allowable value g is equal to the semicircle allowable value j in the R-specified circular arc trajectory correction,
Arc start point S and arc end point E specified by the specified arc command
And the command radius r, the line segment length calculation means for calculating the line segment length L between the arc start point S and the arc end point E, and the line segment length L calculated by the line segment length calculation means for the start point / end point Line segment length / command radius difference calculation means for calculating the absolute value K of the difference between ½ and the command radius r, and the semicircle allowable value j is arbitrarily set or NC
Semi-circle tolerance setting means for setting a constant in the apparatus, semi-circle tolerance comparing means for comparing the difference K calculated by the line segment length / command radius difference calculation means with the semi-circle tolerance j, and semi-circle tolerance When the value comparison means determines that the semicircle allowable value j is large, the command radius correction means for correcting the command radius r to the line segment length L / 2 and the arc center C are calculated from the corrected command radius r. And a circular arc center coordinate calculation means.

【0035】[0035]

【発明の実施の形態】実施の形態1.NC装置の概略ブ
ロック図は図11に示す従来装置と同一構成である。図
において加工プログラム、即ち加工情報はプログラム入
力部10で読み込み、この加工プログラムに基づいて加
工軌跡および加工速度が演算部12で演算される。演算
部12の出力は制御部14に印加され、この制御部14
は加工指示指令に基づいて駆動部16へ制御信号を出力
し、この駆動部16で工作機械18の加工制御が行われ
る。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiment 1. The schematic block diagram of the NC device has the same configuration as the conventional device shown in FIG. In the figure, a machining program, that is, machining information is read by the program input unit 10, and a machining locus and a machining speed are calculated by the arithmetic unit 12 based on this machining program. The output of the calculation unit 12 is applied to the control unit 14, and the control unit 14
Outputs a control signal to the drive unit 16 based on the machining instruction command, and the drive unit 16 controls the machining of the machine tool 18.

【0036】以上のようにプログラム入力部10から与
えられた加工プログラムに基づいて工作機械18が数値
制御されるが、加工プログラム(例えば円弧補間G02
X――Y――R――F――;など)は演算部12におい
て加工軌跡および加工速度信号に変換される。演算部1
2には各情報に対応して、R指定円弧を処理するR指定
円弧演算部20、円弧を処理する円弧補間演算部22や
図示していないが直線補間演算部、工具径補正演算部、
座標回転演算部など加工情報に対応した各演算処理があ
る。
As described above, the machine tool 18 is numerically controlled on the basis of the machining program given from the program input unit 10, but the machining program (for example, circular interpolation G02) is used.
(X--Y--R--F--; etc.) is converted into a machining locus and a machining speed signal in the arithmetic unit 12. Computing unit 1
Reference numeral 2 corresponds to each piece of information, an R-designated arc calculation unit 20 that processes an R-designated arc, a circular interpolation calculation unit 22 that processes a circular arc, a linear interpolation calculation unit (not shown), a tool radius correction calculation unit,
There are various calculation processes corresponding to processing information such as a coordinate rotation calculation unit.

【0037】図1は本発明によるNC装置におけるR指
定円弧軌跡補正装置の実施の形態1を示すR指定円弧演
算部20のブロック図である。図において40〜82は
図12に示した従来例と同一または相当部分を示す。図
1においてR指定円弧演算部20は従来例のR指定円弧
演算部20を一部改良したもので、プログラム入力部1
0で読み込んだ加工プログラムからR指定円弧のとき、
円弧始点、円弧終点、指令半径から円弧中心座標を計算
し、円弧補間演算部22に印加するものである。
FIG. 1 is a block diagram of an R-designated circular arc computing section 20 showing the first embodiment of the R-designated circular locus correction device in the NC device according to the present invention. In the figure, 40 to 82 indicate the same or corresponding portions as those of the conventional example shown in FIG. In FIG. 1, an R-designated circular arc computing unit 20 is a modification of the conventional R-designated circular arc computing unit 20.
When the R specified arc from the machining program read in 0,
The arc center coordinates are calculated from the arc start point, the arc end point, and the command radius, and are applied to the arc interpolation calculation unit 22.

【0038】始点・終点間線分長演算手段40は円弧始
点Sと円弧終点Eからその間の線分長Lを計算するとこ
ろである。線分長・指令半径大小比較手段42は始点・
終点間線分長演算手段40で計算した線分長L/2と指
令半径rと比較し、指令半径rが大きいとき後述する中
心距離・中心角度演算手段80の処理を行なわせ、一方
線分長L/2が大きいとき後述するエラー許容値比較手
段54の処理を行なわせるものである。エラー許容値入
力部50とエラー許容値設定手段52は本発明の特徴で
ある指令半径rが線分長L/2より小さく、かつその差
分が小さいとき半円動作と見なすパラメータで、NC装
置のオペレータの任意設定またはNC装置内の定数設定
し、エラー許容値比較手段54で用いられるものであ
る。
The line segment length calculating means 40 between the start point and the end point is for calculating the line segment length L between the arc start point S and the arc end point E. Line segment length / command radius size comparison means 42
The line segment length L / 2 calculated by the end-to-end line segment length calculation means 40 is compared with the command radius r, and when the command radius r is large, the processing of the center distance / center angle calculation means 80, which will be described later, is performed, and the one line segment When the length L / 2 is large, the process of the error tolerance comparison means 54, which will be described later, is performed. The error allowable value input unit 50 and the error allowable value setting means 52 are parameters which are regarded as a semi-circular operation when the command radius r, which is a feature of the present invention, is smaller than the line segment length L / 2 and the difference is small. It is used by the error allowable value comparing means 54 after being set by an operator or set as a constant in the NC device.

【0039】エラー許容値比較手段54は本発明の特徴
で、線分長・指令半径大小比較手段42にて線分長L/
2が大きいと判断されたとき、線分長L/2と指令半径
rの差Hとエラー許容値gと比較し、その差Hが大きい
とき、加工プログラムの誤りと見なし、エラー手段44
でエラー停止させる、一方エラー許容値gが大きいとき
半円の加工プログラムと見なし、指令半径補正手段74
の処理を行なわせるものである。指令半径補正手段74
は本発明の特徴で、指令半径rを線分長L/2に補正
し、かつ中心角度θaをゼロに設定し、円弧中心座標演
算手段82に印加するものである。エラー手段44は運
転をエラー停止させ、NC装置のオペレータにエラーで
あることを通知させるものである。
The error allowable value comparison means 54 is a feature of the present invention, and the line segment length / command radius size comparison means 42 causes the line segment length L /
When it is determined that 2 is large, the difference H between the line segment length L / 2 and the command radius r is compared with the error allowable value g. When the difference H is large, it is regarded as an error in the machining program, and the error means 44 is used.
When the error allowable value g is large, it is regarded as a semicircular machining program, and the command radius correction means 74 is used.
The processing is performed. Command radius correction means 74
Is a feature of the present invention, in which the command radius r is corrected to the line segment length L / 2, the center angle θa is set to zero, and the result is applied to the arc center coordinate calculating means 82. The error means 44 stops the operation due to an error, and notifies the operator of the NC device of the error.

【0040】中心距離・中心角度演算手段80は線分長
・指令半径大小比較手段42にて指令半径rが大きいと
判断されたとき、即ち通常の加工プログラムのときに、
線分長Lと指令半径rから中心距離mを計算し、この中
心距離mからさらに中心角度θaを計算し、円弧中心座
標演算手段82に印加するものである。円弧中心座標演
算手段82は円弧始点S、円弧終点Eから傾き角度θs
を計算する。さらにこの傾き角度θsと、中心距離・中
心角度演算手段80または指令半径補正手段74にて計
算または補正された指令半径r、中心角度θaから円弧
中心Cの座標Xc、Ycを計算し、円弧補間演算部22
に印加するものである。
The center distance / center angle calculation means 80 determines when the line length / command radius comparison means 42 determines that the command radius r is large, that is, during a normal machining program.
The center distance m is calculated from the line segment length L and the command radius r, the center angle θa is further calculated from the center distance m, and the calculated center angle θa is applied to the arc center coordinate calculation means 82. The arc center coordinate calculation means 82 calculates the tilt angle θs from the arc start point S and the arc end point E.
To calculate. Further, the coordinates Xc and Yc of the arc center C are calculated from the tilt angle θs, the command radius r and the center angle θa calculated or corrected by the center distance / center angle calculation unit 80 or the command radius correction unit 74, and the circular interpolation is performed. Calculation unit 22
Is to be applied to.

【0041】図2は上述のような構成によるR指定円弧
軌跡補正装置によって実施する、本発明によるR指定円
弧軌跡補正方法の実施手順を示しているフローチャート
である。図においてステップS10〜ステップS56は
図13に示した従来例と同一または相当部分を示す。こ
のフローチャートは図14と図3に図示するように円弧
始点S、円弧終点E、指令半径rから円弧中心Xc,Y
cを計算し、もし線分長L/2が指令半径rより大きい
とき本発明の特徴である指令半径rを補正し円弧中心X
c,Ycを計算するものである。
FIG. 2 is a flow chart showing the procedure for carrying out the R-designated arc locus correction method according to the present invention, which is carried out by the R-designated arc locus correction device having the above-mentioned configuration. In the figure, steps S10 to S56 indicate the same or corresponding portions as those of the conventional example shown in FIG. As shown in FIG. 14 and FIG. 3, this flowchart shows the arc starting point S, the arc ending point E, the command radius r to the arc center Xc, Y.
c is calculated, and if the line segment length L / 2 is larger than the command radius r, the command radius r, which is a feature of the present invention, is corrected and the arc center X is corrected.
c and Yc are calculated.

【0042】次に図2のフローチャートの動作説明を行
なう。図においてまずステップS10は、始点・終点間
線分長演算手段40にて円弧始点Sと円弧終点Eからそ
の線分長Lを求めるステップで、次の計算が行われる。 L=SQRT((Xe−Xs)2+(Ye−Ys)2) ・・・・・・(Xs、Ysは円弧始点Sの座標、Xe、
Yeは円弧終点Eの座標) 次にステップS20では線分長・指令半径大小比較手段
42にて線分長L/2と指令半径rを比較し、指令半径
rが大きいとき、即ち通常の加工プログラムのときステ
ップS50に飛び従来動作と同一処理になる。逆に線分
長L/2が大きいとき、即ち特異な加工プログラムのと
きステップS24に進み補正可否判断等が行われる。
Next, the operation of the flowchart of FIG. 2 will be described. In the figure, first, step S10 is a step of obtaining the line segment length L from the arc start point S and the arc end point E by the start point / end point line segment length calculation means 40, and the following calculation is performed. L = SQRT ((Xe−Xs) 2 + (Ye−Ys) 2 ) ... (Xs, Ys are coordinates of the arc start point S, Xe,
Ye is the coordinate of the arc end point E) Next, in step S20, the line length / command radius comparison means 42 compares the line length L / 2 with the command radius r, and when the command radius r is large, that is, normal machining. When it is a program, the process jumps to step S50 and the same process as the conventional operation is performed. On the contrary, when the line segment length L / 2 is large, that is, when the processing program is peculiar, the process proceeds to step S24, and the determination as to whether or not correction is possible is made.

【0043】次のステップS24〜S44は本発明の特
徴の一つである補正可否判断、指令半径r補正動作を行
なうものである。まずステップS24はエラー許容値比
較手段54にて線分長L/2と指令半径rとの差Hを求
めるもので、次の計算が行われる。 H=L/2−r 次にステップS26ではエラー許容値比較手段54にて
補正可否判断を行なうもので、その差Hとエラー許容値
g(エラー許容値入力部50とエラー許容値設定手段5
2を用いて設定される)とを比較し、その差Hが大きい
とき、即ち明らかに加工プログラムの誤りのときエラー
手段44にてエラー停止させ、逆にエラー許容値gが大
きいとき、即ち半円指令と見なせる加工プログラムのと
きステップS44に進み指令半径補正手段74にて指令
半径rの補正動作を行なわせるものである。
The following steps S24 to S44 are for carrying out the correction availability judgment and the command radius r correction operation, which are one of the features of the present invention. First, in step S24, the error tolerance comparing means 54 obtains the difference H between the line segment length L / 2 and the command radius r, and the following calculation is performed. H = L / 2−r Next, in step S26, the error tolerance comparison means 54 determines whether or not correction is possible. The difference H and the error tolerance g (error tolerance value input section 50 and error tolerance value setting means 5).
2) is set, and when the difference H is large, that is, when the machining program is apparently incorrect, the error means 44 causes an error stop, and conversely, when the error allowable value g is large, that is, half. When the machining program can be regarded as a circle command, the process proceeds to step S44, and the command radius correcting means 74 corrects the command radius r.

【0044】なおエラー許容値gの値は、一般にNC内
部の最小入力単位の2〜4倍程度と非常に小さく、最小
入力単位が0.001mmのときその値は0.002〜
0.004mm程度になる。次にステップS44は指令
半径補正手段74にて図3に示すように半円指令と見な
せる加工プログラムを補正動作を行なわせるものであ
る。その処理は指令半径rを次のように線分長L/2に
補正し、かつ中心角度θa、即ち円弧終点E、円弧始点
S、円弧中心Cとなす角を次のようにゼロ設定し、後述
するステップS54に飛ぶ。 r=L/2 θa=0
The allowable error value g is generally very small, about 2 to 4 times the minimum input unit inside the NC. When the minimum input unit is 0.001 mm, the value is 0.002 to 0.002 mm.
It will be about 0.004 mm. Next, in step S44, the command radius correction means 74 causes the machining program, which can be regarded as a semicircle command, to perform a correction operation as shown in FIG. In the processing, the command radius r is corrected to the line segment length L / 2 as follows, and the central angle θa, that is, the angle between the arc end point E, the arc start point S, and the arc center C is set to zero as follows: It jumps to step S54 mentioned later. r = L / 2 θa = 0

【0045】一方ステップS50は図14に示すように
従来動作と同一で、中心距離・中心角度演算手段80に
て、通常の加工プログラムのとき線分長Lと円弧中心C
との中心距離mを三平方の定理から求め、そのあと中心
角度θa、即ち円弧終点E、円弧始点S、円弧中心Cと
なす角を次のように計算し、ステップS54に進む。 m=SQRT(r2−(L/2)2) θa=arc tan(m/(L/2)) =arc tan(2m/L)
On the other hand, step S50 is the same as the conventional operation as shown in FIG. 14, and the center distance / center angle calculating means 80 causes the line segment length L and the arc center C in the normal machining program.
The central distance m between and is obtained from the Pythagorean theorem, and then the central angle θa, that is, the angle between the arc end point E, the arc start point S, and the arc center C is calculated as follows, and the process proceeds to step S54. m = SQRT (r 2 − (L / 2) 2 ) θa = arc tan (m / (L / 2)) = arc tan (2 m / L)

【0046】次にステップS54はステップS44また
はステップS50から飛んでくるもので、中心距離・中
心角度演算手段80にて、図14に示すように円弧始点
Sと円弧終点Eから線分長Lの傾き角度θsを次のよう
に計算し、ステップS56に進む。 θs=arc tan((Ye−Ys)/(Xe−X
s))+n・π ・・・・・・(Xe−Xs≧0のとき n=0、Xe−
Xs<0 のとき n=1)
Next, in step S54, the process jumps from step S44 or step S50, and the center distance / center angle calculation means 80 calculates the line segment length L from the arc start point S and the arc end point E as shown in FIG. The tilt angle θs is calculated as follows, and the process proceeds to step S56. θs = arc tan ((Ye−Ys) / (Xe−X
s)) + n · π ···· (Xe−Xs ≧ 0, n = 0, Xe−
When Xs <0, n = 1)

【0047】ステップS56は、円弧中心座標演算手段
82にて前述のステップS50またはS44で計算また
は補正した、指令半径r、円弧中心角度θaと、ステッ
プS54で計算した傾き角度θsから、円弧中心Cの座
標(Xc、Yc)を次のように計算し終了する。 Xc=Xs+r・cos(θs+k・θa) Yc=Ys+r・sin(θs+k・θa) ・・・・・・(円弧回転方向CWのとき k=−1、円
弧回転方向CCWのとき k=1)
In step S56, the arc center C is calculated from the command radius r and the arc center angle θa calculated or corrected in step S50 or S44 by the arc center coordinate calculating means 82 and the tilt angle θs calculated in step S54. The coordinates (Xc, Yc) of are calculated as follows and the process ends. Xc = Xs + r · cos (θs + k · θa) Yc = Ys + r · sin (θs + k · θa) ··· (Arc rotation direction CW k = −1, arc rotation direction CCW k = 1)

【0048】以上のようにR指定円弧の加工プログラム
の円弧始点S、円弧終点E、指令半径rから円弧中心C
が求められる。この動作結果を説明する。まず図15の
通常の加工プログラムの場合、円弧始点座標Xs=0、
Ys=0、円弧終点座標Xe=38.0、Ye=10.
0、指令半径r=27.785である。これからステッ
プS10で線分長L=39.29377が計算される。
次にステップS20で線分長L/2と指令半径rの比較
で指令半径rが大きいと判断され、通常の加工プログラ
ム処理ステップS50のルートに飛ぶ。
As described above, the circular arc start point S, the circular arc end point E, the command radius r to the circular arc center C of the machining program for the R designated circular arc are used.
Is required. The result of this operation will be described. First, in the case of the normal machining program of FIG. 15, the arc starting point coordinate Xs = 0,
Ys = 0, arc end point coordinate Xe = 38.0, Ye = 10.
0, command radius r = 27.785. From this, the line segment length L = 39.29377 is calculated in step S10.
Next, in step S20, it is determined that the command radius r is large by comparing the line segment length L / 2 and the command radius r, and the process jumps to the normal machining program processing step S50 route.

【0049】ステップS50では中心距離m=19.6
4704と中心角度θa=π/4が計算される。次のス
テップS54では傾き角度θs=0.257(六十分法
で14.743°)が計算され、最後のステップS56
で円弧中心Cの座標Xc=14.0、Yc=24.0が
計算される。以上のように通常の加工プログラムではス
テップS10、S20、S50、S54、S56の通常
ルートを通る。
In step S50, the center distance m = 19.6.
4704 and the central angle θa = π / 4 are calculated. In the next step S54, the tilt angle θs = 0.257 (1.4733 ° by the six tenths method) is calculated, and the final step S56.
Then, the coordinates Xc = 14.0 and Yc = 24.0 of the arc center C are calculated. As described above, in the normal machining program, the normal route of steps S10, S20, S50, S54 and S56 is taken.

【0050】次に図17の特異の加工プログラムの場
合、円弧始点座標Xs=23.06、Ys=−23.0
6、円弧終点座標Xe=−23.06、Ye=23.0
6、指令半径r=32.611である。これからステッ
プS10で線分長L=65.22353が計算される。
次にステップS20で線分長L/2と指令半径rの比較
で線分長L/2がわずかに大きいと判断され、本発明の
特徴である補正可否判断を行なう処理ステップS24の
ルートに進む。
Next, in the case of the unique machining program of FIG. 17, the arc starting point coordinates Xs = 23.06, Ys = -23.0.
6, arc end point coordinate Xe = -23.06, Ye = 23.0
6, the command radius r = 32.611. From this, the line segment length L = 65.22353 is calculated in step S10.
Next, in step S20, it is determined by comparison between the line segment length L / 2 and the command radius r that the line segment length L / 2 is slightly large, and the process proceeds to the route of process step S24 for performing the correction possibility determination, which is a feature of the present invention. .

【0051】ステップS24では差H=0.00076
が計算され、次のステップS26で差Hとエラー許容値
gと比較させる。エラー許容値g=0.002のときエ
ラー許容範囲内と判断され、本発明の特徴である指令半
径rの補正動作を行なう処理ステップS44に進む。ス
テップS44では半円指令に補正するため、指令半径r
を32.611から線分長Lの1/2であるr=32.
61176が設定される。また中心角度θaにはゼロが
設定される。
In step S24, the difference H = 0.00076.
Is calculated, and the difference H is compared with the error allowable value g in the next step S26. When the error allowable value g = 0.002, it is determined that the error is within the error allowable range, and the process proceeds to the processing step S44 for performing the correction operation of the command radius r which is a feature of the present invention. In step S44, the command radius r
From 32.611 to 1/2 of the line segment length r, r = 32.
61176 is set. Further, zero is set to the central angle θa.

【0052】次のステップS54では傾き角度θs=−
π/4が計算され、最後のステップS56で円弧中心C
の座標Xc=0、Yc=0が計算される。そのため図3
に示すようにエラー停止せずに補正された指令半径r・
円弧中心Cの半円の円弧軌跡が得られる。以上のように
指令半径rがわずかに小さい特異の半円R指定加工プロ
グラムではステップS10、S20、S24、S26、
S44、S54、S56の補正可否判断、指令半径補正
ルートを通る。
In the next step S54, the tilt angle θs =-
π / 4 is calculated, and in the last step S56, the arc center C
The coordinates Xc = 0 and Yc = 0 are calculated. Therefore,
As shown in, the corrected command radius r
A semicircular arc locus of the arc center C is obtained. As described above, in the peculiar semi-circle R designated machining program in which the command radius r is slightly smaller, steps S10, S20, S24, S26,
The determination is made in S44, S54, and S56, and the command radius correction route is passed.

【0053】実施の形態2.NCの概略ブロック図は図
11に示す従来装置および実施の形態1と同一構成であ
る。そのため概略ブロック図の説明は省略する。
Embodiment 2. A schematic block diagram of the NC has the same configuration as the conventional device shown in FIG. 11 and the first embodiment. Therefore, the description of the schematic block diagram is omitted.

【0054】図4は本発明によるNC装置におけるR指
定円弧軌跡補正装置の実施の形態2を示すR指定円弧演
算部20のブロック図である。図において40〜82は
図12に示した従来例と同一または相当部分を示す。図
4においてR指定円弧演算部20は従来例のR指定円弧
演算部20を一部改良したもので、プログラム入力部1
0で読み込んだ加工プログラムからR指定円弧のとき、
円弧始点、円弧終点、指令半径から円弧中心座標を計算
し、円弧補間演算部22に印加するものである。
FIG. 4 is a block diagram of the R-designated arc calculation unit 20 showing the second embodiment of the R-designated arc locus correction device in the NC device according to the present invention. In the figure, 40 to 82 indicate the same or corresponding portions as those of the conventional example shown in FIG. In FIG. 4, an R-designated circular arc computing unit 20 is a partially modified version of the conventional R-designated circular arc computing unit 20.
When the R specified arc from the machining program read in 0,
The arc center coordinates are calculated from the arc start point, the arc end point, and the command radius, and are applied to the arc interpolation calculation unit 22.

【0055】始点・終点間線分長演算手段40は円弧始
点Sと円弧終点Eからその間の線分長Lを計算するとこ
ろである。線分長・指令半径大小比較手段42は始点・
終点間線分長演算手段40で計算した線分長L/2と指
令半径rと比較し、線分長L/2が大きいとき円弧中心
Cが求まらない加工プログラムと見なしエラー手段44
でエラー停止させる、一方指令半径rが大きいとき後述
する半円許容値比較手段62の処理を行なわせるもので
ある。エラー手段44は運転をエラー停止させ、NC装
置のオペレータにエラーであることを通知させるもので
ある。
The line segment length calculating means 40 between the start point and the end point is for calculating the line segment length L between the arc start point S and the arc end point E. Line segment length / command radius size comparison means 42
The line segment length L / 2 calculated by the end point line segment length calculating means 40 is compared with the command radius r, and when the line segment length L / 2 is large, it is regarded as a machining program in which the arc center C is not found and the error means 44
When the command radius r is large, the processing of the semicircle allowable value comparing means 62 described later is performed. The error means 44 stops the operation due to an error, and notifies the operator of the NC device of the error.

【0056】半円許容値入力部58と半円許容値設定手
段60は本発明の特徴である指令半径rが線分長L/2
より大きく、かつその差r−L/2が小さいとき半円動
作と見なすパラメータで、NC装置のオペレータの任意
設定またはNC装置内の定数設定し、半円許容値比較手
段62で用いられるものである。
In the semicircle allowable value input section 58 and the semicircular allowable value setting means 60, the command radius r, which is a feature of the present invention, is the line segment length L / 2.
It is a parameter that is regarded as a semicircle operation when it is larger and the difference r−L / 2 is smaller, and is used by the semicircle allowable value comparing means 62 by arbitrarily setting the operator of the NC device or by setting a constant in the NC device. is there.

【0057】半円許容値比較手段62は本発明の特徴
で、線分長・指令半径大小比較手段42にて指令半径r
が大きいと判断されたとき、指令半径rと線分長L/2
の差r−L/2と半円許容値jと比較し、差r−L/2
が大きいとき後述する中心距離・中心角度演算手段80
の処理をさせ、一方半円許容値jが大きいとき、即ち特
異の加工プログラムのときに指令半径補正手段74の処
理を行なわせるものである。指令半径補正手段74は本
発明の特徴で、指令半径rを線分長L/2に補正し、か
つ中心角度θaをゼロに設定し、円弧中心座標演算手段
82に印加するものである。
The semicircle allowable value comparing means 62 is a feature of the present invention, and the command radius r is compared by the line segment length / command radius comparing means 42.
Is determined to be large, the command radius r and the line segment length L / 2
The difference r−L / 2 is compared with the semicircle allowable value j, and the difference r−L / 2
Center distance / center angle calculation means 80 described later when
On the other hand, when the semicircle allowable value j is large, that is, when the processing program is peculiar, the command radius correcting means 74 performs the processing. The command radius correction means 74 is a feature of the present invention, and corrects the command radius r to the line segment length L / 2, sets the center angle θa to zero, and applies it to the arc center coordinate calculation means 82.

【0058】中心距離・中心角度演算手段80は半円許
容値比較手段62にて半円許容値jが大きいと判断され
たとき、即ち通常の加工プログラムのときに、線分長L
と指令半径rから中心距離mを計算し、この中心距離m
からさらに中心角度θaを計算し、円弧中心座標演算手
段82に印加するものである。円弧中心座標演算手段8
2は円弧始点S、円弧終点Eから傾き角度θsを計算す
る。さらにこの傾き角度θsと、中心距離・中心角度演
算手段80または指令半径補正手段74にて計算または
補正された指令半径r、中心角度θaから円弧中心Cの
座標Xc、Ycを計算し、円弧補間演算部22に印加す
るものである。
When the semicircle allowable value comparing means 62 determines that the semicircular allowable value j is large, that is, the center distance / center angle calculating means 80, the line segment length L
The center distance m is calculated from the command radius r and the center distance m
Then, the central angle θa is further calculated and applied to the arc center coordinate calculating means 82. Arc center coordinate calculation means 8
2 calculates the tilt angle θs from the arc starting point S and the arc ending point E. Further, the coordinates Xc and Yc of the arc center C are calculated from the tilt angle θs, the command radius r and the center angle θa calculated or corrected by the center distance / center angle calculation unit 80 or the command radius correction unit 74, and the circular interpolation is performed. It is applied to the calculation unit 22.

【0059】図5は上述のような構成によるR指定円弧
軌跡補正装置によって実施する、本発明によるR指定円
弧軌跡補正方法の実施手順を示しているフローチャート
である。図においてステップS10〜ステップS56は
図13に示した従来例と同一または相当部分を示す。こ
のフローチャートは図14と図6に図示するように円弧
始点S、円弧終点E、指令半径rから円弧中心Xc,Y
cを計算し、もし指令半径rが線分長L/2より大きい
とき本発明の特徴である指令半径rを補正し円弧中心X
c,Ycを計算するものである。
FIG. 5 is a flow chart showing the procedure for carrying out the R-designated arc locus correction method according to the present invention, which is carried out by the R-designated arc locus correction device having the above-mentioned configuration. In the figure, steps S10 to S56 indicate the same or corresponding portions as those of the conventional example shown in FIG. As shown in FIG. 14 and FIG. 6, this flowchart is based on the arc starting point S, the arc ending point E, the command radius r, and the arc center Xc, Y.
c is calculated, and if the command radius r is larger than the line segment length L / 2, the command radius r, which is a feature of the present invention, is corrected and the arc center X is corrected.
c and Yc are calculated.

【0060】次に図5のフローチャートの動作説明を行
なう。図において、ステップS10は、始点・終点間線
分長演算手段40にて円弧始点Sと円弧終点Eからその
線分長Lを求めるステップで、次の計算が行われる。 L=SQRT((Xe−Xs)2+(Ye−Ys)2) ・・・(Xs、Ysは円弧始点Sの座標、Xe、Yeは
円弧終点Eの座標)
Next, the operation of the flowchart of FIG. 5 will be described. In the figure, step S10 is a step of obtaining the line segment length L from the arc start point S and the arc end point E by the start / end point line segment length calculation means 40, and the following calculation is performed. L = SQRT ((Xe−Xs) 2 + (Ye−Ys) 2 ) ... (Xs and Ys are the coordinates of the arc start point S, Xe and Ye are the coordinates of the arc end point E)

【0061】次にステップS20では線分長・指令半径
大小比較手段42にて指令半径rと線分長L/2を比較
し、線分長L/2が大きいとき、即ち円弧中心Cが求ま
らない加工プログラムのときエラー停止させる、逆に指
令半径rが大きいときステップS30に進み補正可否判
断等が行われる。
Next, in step S20, the command radius r and the command radius size comparing means 42 compares the command radius r with the line length L / 2, and when the line length L / 2 is large, that is, the arc center C is obtained. If the machining program is unsatisfactory, the error is stopped, and conversely, if the command radius r is large, the process proceeds to step S30 to determine whether or not correction is possible.

【0062】次のステップS30〜S44は本発明の特
徴の一つである補正可否判断、指令半径r補正動作を行
なうものである。まずステップS30は半円許容値比較
手段62にて補正可否判断を行なうもので、指令半径r
と線分長L/2の差r−L/2と半円許容値j(半円許
容値入力部58と半円許容値設定手段60を用いて設定
される)とを比較し、差r−L/2が大きいとき、即ち
通常の加工プログラムのときステップS50に飛び従来
動作と同一処理になる。逆に半円許容値jが大きいと
き、即ち特異な半円の加工プログラムのときステップS
44に進み、指令半径補正手段74にて指令半径rの補
正動作を行なわせるものである。
The following steps S30 to S44 are for carrying out the correction propriety determination and the command radius r correction operation, which are one of the features of the present invention. First, in step S30, the semicircular tolerance comparison means 62 determines whether or not correction is possible.
And the difference r−L / 2 of the line segment length L / 2 and the semicircle allowable value j (set by using the semicircle allowable value input unit 58 and the semicircular allowable value setting means 60), and the difference r When -L / 2 is large, that is, in the case of a normal machining program, the process jumps to step S50 and the same process as the conventional operation is performed. On the contrary, when the semicircle allowance j is large, that is, when the machining program is a unique semicircle, step S
Proceeding to step 44, the command radius correction means 74 performs the correction operation of the command radius r.

【0063】なお半円許容値jの値は、一般にNC内部
の最小入力単位の2〜4倍程度と非常に小さく、最小入
力単位が0.001mmのときその値は0.002〜
0.004mm程度になる。次にステップS44は、指
令半径補正手段74にて図6に示すように半円指令と見
なせる加工プログラムを補正動作を行なわせるものであ
る。その処理は指令半径rを次のように線分長L/2に
補正し、かつ中心角度θa、即ち円弧終点E、円弧始点
S、円弧中心Cとなす角を次のようにゼロ設定し、後述
するステップS54に飛ぶ。 r=L/2 θa=0
The semicircle allowable value j is generally as small as about 2 to 4 times the minimum input unit inside the NC, and when the minimum input unit is 0.001 mm, the value is 0.002 to 0.002 mm.
It will be about 0.004 mm. Next, in step S44, the command radius correcting means 74 causes the machining program, which can be regarded as a semicircle command as shown in FIG. In the processing, the command radius r is corrected to the line segment length L / 2 as follows, and the central angle θa, that is, the angle between the arc end point E, the arc start point S, and the arc center C is set to zero as follows: It jumps to step S54 mentioned later. r = L / 2 θa = 0

【0064】一方ステップS50は図14に示すように
従来動作と同一で、中心距離・中心角度演算手段80に
て通常の加工プログラムのとき線分長Lと円弧中心Cと
の中心距離mを三平方の定理から求め、そのあと中心角
度θa、即ち円弧終点E、円弧始点S、円弧中心Cとな
す角を次のように計算し、ステップS54に進む。 m=SQRT(r2−(L/2)2) θa=arc tan(m/(L/2)) =arc tan(2m/L)
On the other hand, step S50 is the same as the conventional operation as shown in FIG. 14, and the center distance / center angle calculating means 80 sets the center distance m between the line segment length L and the arc center C to three times in the normal machining program. Obtained from the square theorem, and then the central angle θa, that is, the angle formed by the arc end point E, the arc start point S, and the arc center C is calculated as follows, and the process proceeds to step S54. m = SQRT (r 2 − (L / 2) 2 ) θa = arc tan (m / (L / 2)) = arc tan (2 m / L)

【0065】次にステップS54はステップS44また
はステップS50から飛んでくるもので、中心距離・中
心角度演算手段80にて図14に示すように円弧始点S
と円弧終点Eから線分長Lの傾き角度θsを次のように
計算し、ステップS56に進む。 θs=arc tan((Ye−Ys)/(Xe−X
s))+n・π ・・・・・・(Xe−Xs≧0のとき n=0、Xe−
Xs<0のとき n=1)
Next, in step S54, which is a jump from step S44 or step S50, the center distance / center angle calculating means 80 causes the arc starting point S to be as shown in FIG.
Then, the inclination angle θs of the line segment length L from the arc end point E is calculated as follows, and the process proceeds to step S56. θs = arc tan ((Ye−Ys) / (Xe−X
s)) + n · π ···· (Xe−Xs ≧ 0, n = 0, Xe−
When Xs <0, n = 1)

【0066】ステップS56は円弧中心座標演算手段8
2にて前述のステップS50またはS44で計算または
補正した、指令半径r、円弧中心角度θaと、ステップ
S54で計算した傾き角度θsから、円弧中心Cの座標
(Xc、Yc)を次のように計算し終了する。 Xc=Xs+r・cos(θs+k・θa) Yc=Ys+r・sin(θs+k・θa) ・・・・・・(円弧回転方向CWのとき k=−1、円
弧回転方向CCWのとき k=1)
Step S56 is an arc center coordinate calculating means 8
The coordinates (Xc, Yc) of the arc center C are calculated as follows from the command radius r and the arc center angle θa calculated or corrected in step S50 or S44 in step 2 and the tilt angle θs calculated in step S54. Calculate and finish. Xc = Xs + r · cos (θs + k · θa) Yc = Ys + r · sin (θs + k · θa) ··· (Arc rotation direction CW k = −1, arc rotation direction CCW k = 1)

【0067】以上のようにR指定円弧の加工プログラム
の円弧始点S、円弧終点E、指令半径rから円弧中心C
が求められる。この動作結果を説明する。まず図15の
通常の加工プログラムの場合、円弧始点座標Xs=0、
Ys=0、円弧終点座標Xe=38.0、Ye=10.
0、指令半径r=27.785である。これからステッ
プS10で線分長L=39.29377が計算される。
次にステップS20で指令半径rと線分長L/2の比較
で指令半径rが大きいと判断され、ステップS30に進
む。
As described above, the circular arc start point S, the circular arc end point E, the command radius r to the circular arc center C of the machining program for the R designated circular arc are used.
Is required. The result of this operation will be described. First, in the case of the normal machining program of FIG. 15, the arc starting point coordinate Xs = 0,
Ys = 0, arc end point coordinate Xe = 38.0, Ye = 10.
0, command radius r = 27.785. From this, the line segment length L = 39.29377 is calculated in step S10.
Next, in step S20, it is determined that the command radius r is large by comparing the command radius r and the line segment length L / 2, and the process proceeds to step S30.

【0068】ステップS30ではまず差(r−L/2)
=8.13812が計算され、次に差r−L/2と半円
許容値jと比較させる。半円許容値j=0.002のと
き半円許容値範囲外、即ち通常の加工プログラムと判断
され処理ステップS50のルートに飛ぶ。
In step S30, the difference (r-L / 2) is first calculated.
= 8.13812 is calculated, and then the difference r−L / 2 is compared with the semicircle tolerance j. When the semicircle allowable value j = 0.002, the semicircular allowable value is out of the allowable range, that is, it is determined as a normal machining program, and the process jumps to the route of step S50.

【0069】ステップS50では中心距離m=19.6
4704と中心角度θa=π/4が計算される。次のス
テップS54では傾き角度θs=0.257(六十分法
で14.743°)が計算され、最後のステップS56
で円弧中心Cの座標Xc=14.0、Yc=24.0が
計算される。以上のように通常の加工プログラムではス
テップS10、S20、S30、S50、S54、S5
6の通常ルートを通る。
In step S50, the center distance m = 19.6.
4704 and the central angle θa = π / 4 are calculated. In the next step S54, the tilt angle θs = 0.257 (1.4733 ° by the six tenths method) is calculated, and the final step S56.
Then, the coordinates Xc = 14.0 and Yc = 24.0 of the arc center C are calculated. As described above, in the normal machining program, steps S10, S20, S30, S50, S54 and S5 are performed.
Take 6 normal routes.

【0070】次に図19の特異の加工プログラムの場
合、円弧始点座標Xs=23.06、Ys=−23.0
6、円弧終点座標Xe=−23.06、Ye=23.0
6、指令半径r=32.612である。これからステッ
プS10で線分長L=65.22353が計算される。
次にステップS20で指令半径rと線分長L/2の比較
で指令半径rが大きいと判断され、ステップS30に進
む。
Next, in the case of the unique machining program shown in FIG. 19, the arc starting point coordinates Xs = 23.06, Ys = -23.0.
6, arc end point coordinate Xe = -23.06, Ye = 23.0
6 and the command radius r = 32.612. From this, the line segment length L = 65.22353 is calculated in step S10.
Next, in step S20, it is determined that the command radius r is large by comparing the command radius r and the line segment length L / 2, and the process proceeds to step S30.

【0071】ステップS30ではまず差(r−L/2)
=0.00024が計算され、次に差r−L/2と半円
許容値jと比較させる。半円許容値j=0.002のと
き半円許容値範囲内、即ちわずかに指令半径rが線分長
L/2より大きい加工プログラムと判断され、本発明の
特徴である指令半径rの補正動作を行なう処理ステップ
S44に進む。ステップS44では半円指令に補正する
ため、指令半径rを32.612から線分長Lの1/2
であるr=32.61176が設定される。また中心角
度θaにはゼロが設定される。
In step S30, first, the difference (r-L / 2)
= 0.00024 is calculated, and then the difference r−L / 2 is compared with the semicircle tolerance j. When the semicircle allowable value j = 0.002, it is determined that the machining program is within the semicircular allowable value range, that is, the command radius r is slightly larger than the line segment length L / 2. Proceed to processing step S44 for performing the operation. In step S44, the command radius r is changed from 32.612 to 1/2 of the line segment length L in order to correct the command to the semicircle command.
R = 32.61176 is set. Further, zero is set to the central angle θa.

【0072】次のステップS54では傾き角度θs=−
π/4が計算され、最後のステップS56で円弧中心C
の座標Xc=0、Yc=0が計算される。そのため図6
に示すように軌跡誤差fが無くなり補正された指令半径
r・円弧中心Cの半円の円弧軌跡が得られる。その結果
半円指令を2個組み合わせると図7のようにラグビーボ
ール型にならず補正された全円が得られる。以上のよう
に指令半径rがわずかに線分長L/2より大きいの半円
R指定加工プログラムではステップS10、S20、S
30、S44、S54、S56の指令半径補正ルートを
通る。
In the next step S54, the tilt angle θs =-
π / 4 is calculated, and in the last step S56, the arc center C
The coordinates Xc = 0 and Yc = 0 are calculated. Therefore,
As shown in (1), the locus error f is eliminated and a corrected circular arc locus of the command radius r and the arc center C is obtained. As a result, when two semi-circle commands are combined, a corrected full circle is obtained instead of the rugby ball type as shown in FIG. As described above, in the semi-circle R designated machining program in which the command radius r is slightly larger than the line segment length L / 2, the steps S10, S20, S are executed.
The command radius correction route of 30, S44, S54 and S56 is taken.

【0073】実施の形態3.本実施の形態3は実施の形
態1でのエラー許容値gと実施の形態2での半円許容値
jが等しい条件の場合、実施の形態1と実施の形態2の
動作を包含するものである。NCの概略ブロック図は図
11に示す従来装置、実施の形態1および実施の形態2
と同一構成である。そのため概略ブロック図の説明は省
略する。
Third Embodiment The third embodiment includes the operations of the first and second embodiments under the condition that the error tolerance g in the first embodiment and the semicircle tolerance j in the second embodiment are equal. is there. A schematic block diagram of the NC is shown in FIG. 11, in which the conventional device, the first embodiment and the second embodiment are shown.
It has the same configuration as. Therefore, the description of the schematic block diagram is omitted.

【0074】図8は本発明によるNC装置におけるR指
定円弧軌跡補正装置の実施の形態3を示すR指定円弧演
算部20のブロック図である。図において40〜82は
図12に示した従来例と同一または相当部分を示す。図
8においてR指定円弧演算部20は従来例のR指定円弧
演算部20を一部改良したもので、プログラム入力部1
0で読み込んだ加工プログラムからR指定円弧のとき、
円弧始点、円弧終点、指令半径から円弧中心座標を計算
し、円弧補間演算部22に印加するものである。
FIG. 8 is a block diagram of the R-designated circular arc computing section 20 showing the third embodiment of the R-designated circular arc trajectory correction device in the NC device according to the present invention. In the figure, 40 to 82 indicate the same or corresponding portions as those of the conventional example shown in FIG. In FIG. 8, an R-designated circular arc computing unit 20 is a partially modified version of the conventional R-designated circular arc computing unit 20.
When the R specified arc from the machining program read in 0,
The arc center coordinates are calculated from the arc start point, the arc end point, and the command radius, and are applied to the arc interpolation calculation unit 22.

【0075】始点・終点間線分長演算手段40は円弧始
点Sと円弧終点Eからその間の線分長Lを計算するとこ
ろである。線分長・指令半径間差分演算手段66は本発
明の特徴で、指令半径rと線分長L/2との差分の絶対
値を取り差分Kとして後述する半円許容値比較手段62
に用いられる。
The line segment length calculation means 40 between the start point and the end point is for calculating the line segment length L between the arc start point S and the arc end point E. The line segment length / command radius difference calculation means 66 is a feature of the present invention, and the absolute value of the difference between the command radius r and the line length L / 2 is obtained as a difference K, which is a semicircle allowable value comparison means 62 described later.
Used for.

【0076】半円許容値入力部58と半円許容値設定手
段60は本発明の特徴である指令半径rと線分長L/2
との差分が小さいとき半円動作と見なすパラメータで、
NC装置のオペレータの任意設定またはNC装置内の定
数設定し、半円許容値比較手段62で用いられるもので
ある。
The semicircle allowable value input section 58 and the semicircular allowable value setting means 60 have a command radius r and a line segment length L / 2, which are features of the present invention.
A parameter that is considered to be semi-circular motion when the difference between and is small,
It is used by the semicircle allowable value comparing means 62 by arbitrarily setting the operator of the NC device or by setting a constant in the NC device.

【0077】半円許容値比較手段62は、線分長・指令
半径間差分演算手段66にて計算された差分Kと半円許
容値jを比較し、差分Kが大きいとき補正の不要な加工
プログラムと判断し、後述する線分長・指令半径大小比
較手段42の処理を行なわせる。一方半円許容値jが大
きいとき、即ち特異の半円の加工プログラムと見なし指
令半径補正手段74の処理を行なわせるものである。指
令半径補正手段74は本発明の特徴で、指令半径rを線
分長L/2に補正し、かつ中心角度θaをゼロに設定
し、円弧中心座標演算手段82に印加するものである。
The semicircle allowable value comparing means 62 compares the difference K calculated by the line segment length / command radius difference calculating means 66 with the semicircular allowable value j, and when the difference K is large, correction is unnecessary. It is determined to be a program, and the processing of the line segment length / command radius magnitude comparing means 42 described later is performed. On the other hand, when the semicircle allowable value j is large, that is, it is regarded as a unique semicircular machining program, and the processing of the command radius correction means 74 is performed. The command radius correction means 74 is a feature of the present invention, and corrects the command radius r to the line segment length L / 2, sets the center angle θa to zero, and applies it to the arc center coordinate calculation means 82.

【0078】線分長・指令半径大小比較手段42は始点
・終点間線分長演算手段40で計算した線分長L/2と
指令半径rと比較し、線分長L/2が大きいとき加工プ
ログラムの誤りと見なしエラー手段44でエラー停止さ
せる、一方指令半径rが大きいとき、通常の加工プログ
ラムと見なし後述する中心距離・中心角度演算手段80
の処理を行なわせるものである。エラー手段44は運転
をエラー停止させ、NC装置のオペレータにエラーであ
ることを通知させるものである。
The line segment length / command radius size comparison means 42 compares the line segment length L / 2 calculated by the line segment length calculation means 40 between the start point and the end point with the command radius r, and when the line segment length L / 2 is large. It is regarded as an error in the machining program and the error means 44 stops the error. On the other hand, when the command radius r is large, it is regarded as a normal machining program and the center distance / center angle calculating means 80 to be described later.
The processing is performed. The error means 44 stops the operation due to an error, and notifies the operator of the NC device of the error.

【0079】中心距離・中心角度演算手段80は線分長
・指令半径大小比較手段42にて指令半径rが大きいと
判断されたとき、即ち通常の加工プログラムのときに、
線分長Lと指令半径rから中心距離mを計算し、この中
心距離mからさらに中心角度θaを計算し、円弧中心座
標演算手段82に印加するものである。円弧中心座標演
算手段82は円弧始点S、円弧終点Eから傾き角度θs
を計算する。さらにこの傾き角度θsと、中心距離・中
心角度演算手段80または指令半径補正手段74にて計
算または補正された指令半径r、中心角度θaから円弧
中心Cの座標Xc、Ycを計算し、円弧補間演算部22
に印加するものである。
The center distance / center angle calculating means 80, when the line length / command radius comparison means 42 judges that the command radius r is large, that is, when the normal machining program is executed,
The center distance m is calculated from the line segment length L and the command radius r, the center angle θa is further calculated from the center distance m, and the calculated center angle θa is applied to the arc center coordinate calculation means 82. The arc center coordinate calculation means 82 calculates the tilt angle θs from the arc start point S and the arc end point E.
To calculate. Further, the coordinates Xc and Yc of the arc center C are calculated from the tilt angle θs, the command radius r and the center angle θa calculated or corrected by the center distance / center angle calculation unit 80 or the command radius correction unit 74, and the circular interpolation is performed. Calculation unit 22
Is to be applied to.

【0080】図9は上述のような構成によるR指定円弧
軌跡補正装置によって実施する、本発明によるR指定円
弧軌跡補正方法の実施手順を示しているフローチャート
である。図においてステップS10〜ステップS56は
図13に示した従来例と同一または相当部分を示す。こ
のフローチャートは図14、図3と図6に図示するよう
に円弧始点S、円弧終点E、指令半径rから円弧中心X
c,Ycを計算し、もし指令半径rと線分長L/2の差
が小さいとき本発明の特徴である指令半径rを補正し円
弧中心Xc,Ycを計算するものである。
FIG. 9 is a flow chart showing a procedure for carrying out the R-designated arc locus correction method according to the present invention, which is carried out by the R-designated arc locus correction device having the above-mentioned configuration. In the figure, steps S10 to S56 indicate the same or corresponding portions as those of the conventional example shown in FIG. As shown in FIG. 14, FIG. 3 and FIG. 6, this flowchart shows the arc starting point S, the arc ending point E, the command radius r to the arc center X.
c, Yc are calculated, and if the difference between the command radius r and the line segment length L / 2 is small, the command radius r, which is a feature of the present invention, is corrected and the arc centers Xc, Yc are calculated.

【0081】次に図9のフローチャートの動作説明を行
なう。図においてまずステップS10は、始点・終点間
線分長演算手段40にて円弧始点Sと円弧終点Eからそ
の線分長Lを求めるステップで、次の計算が行われる。 L=SQRT((Xe−Xs)2+(Ye−Ys)2) ・・・(Xs、Ysは円弧始点Sの座標、Xe、Yeは
円弧終点Eの座標)
Next, the operation of the flowchart of FIG. 9 will be described. In the figure, first, step S10 is a step of obtaining the line segment length L from the arc start point S and the arc end point E by the start point / end point line segment length calculation means 40, and the following calculation is performed. L = SQRT ((Xe−Xs) 2 + (Ye−Ys) 2 ) ... (Xs and Ys are the coordinates of the arc start point S, Xe and Ye are the coordinates of the arc end point E)

【0082】次にステップS36〜S44は本発明の特
徴の一つである補正可否判断、指令半径r補正動作を行
なうものである。まずステップS36は線分長・指令半
径間差分演算手段66にて指令半径rと線分長L/2と
の差分の絶対値を取り差分Kを求めるもので、次の計算
が行われる。 K=|(r−L/2)| 次にステップS38では半円許容値比較手段62にて補
正可否判断を行なうもので、差分Kと半円許容値j(半
円許容値入力部58と半円許容値設定手段60を用いて
設定される)とを比較し、差分Kが大きいとき、即ち明
らかに補正の不要な加工プログラムのとき従来動作と同
じステップS20に飛ぶ。逆に半円許容値jが大きいと
き、即ち半円指令と見なせる特異の加工プログラムのと
きステップS44に進み、指令半径補正手段74にて指
令半径rの補正動作を行なわせるものである。なお半円
許容値jの値は、一般にNC内部の最小入力単位の2〜
4倍程度と非常に小さく、最小入力単位が0.001m
mのときその値は0.002〜0.004mm程度にな
る。
Next, steps S36 to S44 are for carrying out the correction propriety determination and the command radius r correction operation, which are one of the features of the present invention. First, in step S36, the absolute value of the difference between the command radius r and the line length L / 2 is obtained by the line segment length / command radius difference calculating means 66 to obtain the difference K, and the following calculation is performed. K = | (r−L / 2) | Next, in step S38, whether or not correction is possible is performed by the semicircle allowable value comparing means 62, and the difference K and the semicircular allowable value j (the semicircular allowable value input unit 58 and (Set using the semicircle allowable value setting means 60), and when the difference K is large, that is, when the machining program obviously requires no correction, the process jumps to the same step S20 as the conventional operation. On the contrary, when the semicircle allowable value j is large, that is, in the case of a peculiar machining program that can be regarded as a semicircle command, the process proceeds to step S44, and the command radius correcting means 74 corrects the command radius r. Note that the value of the semicircle allowable value j is generally 2 to the minimum input unit within the NC.
Very small, about 4 times, with a minimum input unit of 0.001m
When m, the value is about 0.002 to 0.004 mm.

【0083】次にステップS44は、指令半径補正手段
74にて図3または図6に示すように半円指令と見なせ
る加工プログラムを補正動作を行なわせるものである。
その処理は指令半径rを次のように線分長L/2に補正
し、かつ中心角度θa、即ち円弧終点E、円弧始点S、
円弧中心Cとなす角を次のようにゼロ設定し、後述する
ステップS54に飛ぶ。 r=L/2 θa=0
Next, in step S44, the command radius correction means 74 performs a correction operation on the machining program which can be regarded as a semicircle command as shown in FIG. 3 or 6.
In the processing, the command radius r is corrected to the line segment length L / 2 as follows, and the central angle θa, that is, the arc end point E, the arc start point S,
The angle formed with the center C of the arc is set to zero as follows, and the process jumps to step S54 described later. r = L / 2 θa = 0

【0084】一方ステップS20は従来動作例と同じ
で、線分長・指令半径大小比較手段42にて指令半径r
と線分長L/2を比較し、線分長L/2が大きいとき、
即ち円弧中心Cが求まらない加工プログラムのときエラ
ー手段44にてエラー停止させる、逆に指令半径rが大
きいとき、即ち通常の加工プログラムのときステップS
50に進む。ステップS50は図14に示すように、中
心距離・中心角度演算手段80にて線分長Lと円弧中心
Cとの中心距離mを三平方の定理から求め、そのあと中
心角度θa、即ち円弧終点E、円弧始点S、円弧中心C
となす角を次のように計算し、ステップS54に進む。 m=SQRT(r2−(L/2)2) θa=arc tan(m/(L/2)) =arc tan(2m/L)
On the other hand, step S20 is the same as the conventional operation example, and the command radius r is compared by the line segment length / command radius size comparing means 42.
And the line segment length L / 2 are compared, and when the line segment length L / 2 is large,
That is, in the case of a machining program in which the arc center C is not found, the error means 44 causes an error stop. Conversely, when the command radius r is large, that is, in the case of a normal machining program, step S
Go to 50. In step S50, as shown in FIG. 14, the center distance / center angle calculation means 80 obtains the center distance m between the line segment length L and the arc center C from the Pythagorean theorem, and then the center angle θa, that is, the arc end point. E, arc start point S, arc center C
The angle formed by and is calculated as follows, and the process proceeds to step S54. m = SQRT (r 2 − (L / 2) 2 ) θa = arc tan (m / (L / 2)) = arc tan (2 m / L)

【0085】次にステップS54はステップS44また
はステップS50から飛んでくるもので、中心距離・中
心角度演算手段80にて、図14に示すように円弧始点
Sと円弧終点Eから線分長Lの傾き角度θsを次のよう
に計算し、ステップS56に進む。 θs=arc tan((Ye−Ys)/(Xe−X
s))+n・π ・・・(Xe−Xs≧0のとき n=0、Xe−Xs<
0のときn=1) ステップS56は円弧中心座標演算手段82にて、前述
のステップS50またはS44で計算または補正した、
指令半径r、円弧中心角度θaと、ステップS54で計
算した傾き角度θsから、円弧中心Cの座標(Xc、Y
c)を次のように計算し終了する。 Xc=Xs+r・cos(θs+k・θa) Yc=Ys+r・sin(θs+k・θa) ・・・・・・(円弧回転方向CWのとき k=−1、円
弧回転方向CCWのとき k=1)
Next, in step S54, the process jumps from step S44 or step S50, and the center distance / center angle calculation means 80 calculates the line segment length L from the arc start point S and the arc end point E as shown in FIG. The tilt angle θs is calculated as follows, and the process proceeds to step S56. θs = arc tan ((Ye−Ys) / (Xe−X
s)) + n · π (when Xe−Xs ≧ 0, n = 0, Xe−Xs <
When n = 0, n = 1) In step S56, the arc center coordinate calculating means 82 calculates or corrects in step S50 or S44 described above.
From the command radius r, the arc center angle θa, and the tilt angle θs calculated in step S54, the coordinates of the arc center C (Xc, Y
Compute c) as follows and end. Xc = Xs + r · cos (θs + k · θa) Yc = Ys + r · sin (θs + k · θa) ··· (Arc rotation direction CW k = −1, arc rotation direction CCW k = 1)

【0086】以上のようにR指定円弧の加工プログラム
の円弧始点S、円弧終点E、指令半径rから円弧中心C
が求められる。この動作結果を説明する。まず図15の
通常の加工プログラムの場合、円弧始点座標Xs=0、
Ys=0、円弧終点座標Xe=38.0、Ye=10.
0、指令半径r=27.785である。これからステッ
プS10で線分長L=39.29377が計算される。
As described above, the circular arc start point S, the circular arc end point E, the command radius r to the circular arc center C of the machining program for the R designated circular arc.
Is required. The result of this operation will be described. First, in the case of the normal machining program of FIG. 15, the arc starting point coordinate Xs = 0,
Ys = 0, arc end point coordinate Xe = 38.0, Ye = 10.
0, command radius r = 27.785. From this, the line segment length L = 39.29377 is calculated in step S10.

【0087】次にステップS36では差分K=8.13
812が計算され、次のステップS38で差分Kと半円
許容値jと比較させる。半円許容値j=0.002のと
き差分Kが大きいと判断され、補正が不要ルートのステ
ップS20に飛ぶ。
Next, at step S36, the difference K = 8.13.
812 is calculated, and the difference K is compared with the semicircle allowable value j in the next step S38. When the semicircle allowable value j = 0.002, it is determined that the difference K is large, and the correction jumps to step S20 of the unnecessary route.

【0088】ステップS20では線分長L/2と指令半
径rの比較で指令半径rが大きいと判断され、通常の加
工プログラム処理ステップS50に進む。ステップS5
0では中心距離m=19.64704と中心角度θa=
π/4が計算される。次のステップS54では傾き角度
θs=0.257(六十分法で14.743°)が計算
され、最後のステップS56で円弧中心Cの座標Xc=
14.0、Yc=24.0が計算される。以上のように
通常の加工プログラムではステップS10、S36,S
38,S20、S50、S54、S56の通常ルートを
通る。
In step S20, it is determined by comparison between the line segment length L / 2 and the command radius r that the command radius r is large, and the process proceeds to the normal machining program processing step S50. Step S5
At 0, the center distance m = 19.664704 and the center angle θa =
π / 4 is calculated. In the next step S54, the tilt angle θs = 0.257 (1.4733 ° in the six tenths method) is calculated, and in the final step S56, the coordinate Xc of the arc center C =
14.0 and Yc = 24.0 are calculated. As described above, in the normal machining program, steps S10, S36, S
38, S20, S50, S54, S56 through the normal route.

【0089】次に図19の特異の加工プログラムの場
合、円弧始点座標Xs=23.06、Ys=−23.0
6、円弧終点座標Xe=−23.06、Ye=23.0
6、指令半径r=32.612である。これからステッ
プS10で線分長L=65.22353が計算される。
Next, in the case of the unique machining program shown in FIG. 19, the arc starting point coordinates Xs = 23.06, Ys = -23.0.
6, arc end point coordinate Xe = -23.06, Ye = 23.0
6 and the command radius r = 32.612. From this, the line segment length L = 65.22353 is calculated in step S10.

【0090】次にステップS36では差分K=0.00
024が計算され、次のステップS38で差分Kと半円
許容値jと比較させる。半円許容値j=0.002のと
き半円許容値jが大きいと判断され、本発明の特徴であ
る指令半径rの補正動作を行なう処理ステップS44に
進む。ステップS44では半円指令に補正するため、指
令半径rを32.612から線分長Lの1/2であるr
=32.61176が設定される。また中心角度θaに
はゼロが設定される。
Next, at step S36, the difference K = 0.00.
024 is calculated, and the difference K is compared with the semicircle allowable value j in the next step S38. When the semicircular permissible value j = 0.002, it is determined that the semicircular permissible value j is large, and the process proceeds to a processing step S44 for correcting the command radius r which is a feature of the present invention. In step S44, the command radius r is corrected from 32.612 to 1/2 of the line segment length L in order to correct it to the semicircle command.
= 32.61176 is set. Further, zero is set to the central angle θa.

【0091】次のステップS54では傾き角度θs=−
π/4が計算され、最後のステップS56で円弧中心C
の座標Xc=0、Yc=0が計算される。そのため図6
に示すように軌跡誤差fが無くなり補正された指令半径
r・円弧中心Cの半円の円弧軌跡が得られる。その結果
半円指令を2個組み合わせると図7のようにラグビーボ
ール型にならず補正された全円が得られる。以上のよう
に指令半径rがわずかに線分長L/2より大きいの半円
R指定加工プログラムではステップS10、S36、S
38、S44、S54、S56の指令半径補正ルートを
通る。
In the next step S54, the tilt angle θs =-
π / 4 is calculated, and in the last step S56, the arc center C
The coordinates Xc = 0 and Yc = 0 are calculated. Therefore,
As shown in (1), the locus error f is eliminated and a corrected circular arc locus of the command radius r and the arc center C is obtained. As a result, when two semi-circle commands are combined, a corrected full circle is obtained instead of the rugby ball type as shown in FIG. As described above, in the semi-circle R designated machining program in which the command radius r is slightly larger than the line segment length L / 2, the steps S10, S36, S are executed.
38, S44, S54, and S56 are passed through the command radius correction route.

【0092】また図17の指令半径rがわずかに小さい
特異の半円R指定加工プログラムの場合も、前記と同様
の指令半径補正ルートを通り、図3に示すようにエラー
停止せずに補正された指令半径r・円弧中心Cの半円の
円弧軌跡が得られる。以上のように本実施の形態3は図
10に示すように、実施の形態1と実施の形態2の動作
を包含し、指令半径rと線分長L/2の大小に影響され
ず、その差分Kが半円許容値j以内であれば補正された
指令半径r・円弧中心Cの半円の円弧軌跡が得られる。
Also, in the case of the peculiar semi-circle R designated machining program in which the command radius r in FIG. 17 is slightly smaller, the command radius correction route similar to the above is followed and the correction is performed without stopping as shown in FIG. A semicircular arc locus having a command radius r and an arc center C is obtained. As described above, the third embodiment includes the operations of the first and second embodiments as shown in FIG. 10, and is not affected by the size of the command radius r and the line segment length L / 2. If the difference K is within the semicircle allowable value j, a semicircular arc locus with the corrected command radius r and the arc center C is obtained.

【0093】以上説明したように実施の形態1は半円の
R指定円弧を行なったときエラー停止が回避でき、実施
の形態2は半円のR指定円弧を行なったとき軌跡誤差が
回避でき、実施の形態3は半円のR指定円弧を行なった
ときエラー停止および軌跡誤差回避できることになる。
その結果、実施の形態3の場合、NCオペレータによ
り、図24に示すようにR指定円弧加工プログラムを円
弧中心Cを直接指定する、I・J指定円弧加工プログラ
ムに変更したり、1/4円のR指定円弧に分割する必要
がなくなった。
As described above, in the first embodiment, the error stop can be avoided when the semicircle R designated arc is performed, and in the second embodiment, the locus error can be avoided when the semicircle R designated arc is performed. In the third embodiment, it is possible to avoid an error stop and a trajectory error when an R designated circular arc of a semicircle is performed.
As a result, in the case of the third embodiment, the NC operator changes the R-designated arc machining program to the I / J-designated arc machining program that directly designates the arc center C as shown in FIG. It is no longer necessary to divide into R designated arcs.

【0094】また市販のNC装置用自動プログラミング
装置では、半円のR指定円弧の弱点を考慮せずにソフト
ウエア処理の簡素化を目的に、すべてR指定円弧のフォ
ーマットで加工プログラムを作ることがあるが、実施の
形態3の場合、NCオペレータが、自動プログラミング
装置で作成した加工プログラムから、該当部分の抽出、
手での座標計算やI・J指定円弧への変更を行なうこと
がなくなり、NCオペレータの負担が軽減される。
Further, in the commercially available automatic programming device for NC device, it is possible to create a machining program in the format of all R-designated arcs for the purpose of simplifying the software processing without considering the weak points of the R-designated arcs of the semicircle. However, in the case of the third embodiment, the NC operator extracts the relevant portion from the machining program created by the automatic programming device,
There is no need to manually calculate the coordinates or change to the I / J designated arc, and the load on the NC operator is reduced.

【0095】また従来のNC装置によっては、図17の
ように線分長L/2が指令半径rより大きい加工プログ
ラムの場合、図25に示すように指令半径rのままで円
弧動作を行なわせ、不足半径部分を直線動作をさせた
り、図示していないが、円弧動作の進行と共に円弧半径
を徐々に大きくさせる渦巻き動作を行なわせることもあ
ったが、実施の形態1および実施の形態3により、補正
が行われたとき正確な半円の円弧軌跡が得られる。
Further, depending on the conventional NC device, in the case of a machining program in which the line segment length L / 2 is larger than the command radius r as shown in FIG. 17, the arc operation is performed with the command radius r as shown in FIG. Although there is a case where the short radius portion is linearly moved or, although not shown, a spiral action for gradually increasing the arc radius is performed as the arc action progresses. However, according to the first and third embodiments, An accurate semicircular arc locus is obtained when the correction is performed.

【0096】[0096]

【発明の効果】以上の説明より明らかに、この発明によ
るNC装置におけるR指定円弧軌跡補正方法において
は、半円のR指定円弧で線分長L/2が指令半径rより
大きい加工プログラムが指定された場合、円弧始点Sと
円弧終点E間の線分長Lを計算し、その線分長L/2と
指令半径rと比較し、線分長L/2が大きい場合、その
差Hを求め、その差Hと予め任意または定数設定された
エラー許容値gとを比較し、エラー許容値gが前記差H
より大きい場合には、指令半径rを線分長L/2に補正
し、前記補正された指令半径rから円弧中心Cを計算
し、円弧動作を行なうから、半円のR指定円弧軌跡の加
工プログラムで線分長L/2が指令半径rより大きくて
もエラー停止せず、半円の円弧動作が得られる。
As is apparent from the above description, in the R-designated arc locus correction method in the NC device according to the present invention, a machining program in which the line segment length L / 2 is larger than the command radius r in the R-designated arc of a semicircle is designated. When the line segment length L between the arc start point S and the arc end point E is calculated, the line segment length L / 2 is compared with the command radius r. If the line segment length L / 2 is large, the difference H is calculated. Then, the difference H is compared with an error allowable value g which is preset in advance or is set to a constant value.
If it is larger, the command radius r is corrected to the line length L / 2, the arc center C is calculated from the corrected command radius r, and the arc operation is performed. Even if the line segment length L / 2 is larger than the command radius r by the program, an error stop does not occur and a semicircular arc motion can be obtained.

【0097】次の発明によるNC装置におけるR指定円
弧軌跡補正装置においては、半円のR指定円弧で線分長
L/2が指令半径rより大きい加工プログラムが指定さ
れた場合、始点・終点間線分長演算手段によって円弧始
点Sと円弧終点E間の線分長Lを計算し、次に線分長・
指令半径大小比較手段によって線分長L/2と指令半径
rと比較する、次にエラー許容値比較手段によって線分
長・指令半径大小比較手段にて線分長L/2が大きいと
判断されたとき、線分長L/2と指令半径rの差Hとエ
ラー許容値gと比較する、次に指令半径補正手段によっ
てエラー許容値gが大きいと判断されたとき、指令半径
rを線分長L/2に補正する、次に円弧中心座標演算手
段によって前記補正された指令半径rから円弧中心Cを
計算するから、半円のR指定円弧軌跡の加工プログラム
で線分長L/2が指令半径rより大きくてもエラー停止
せず、半円の円弧動作が得られる。
In the R-designated arc locus correction device in the NC device according to the next invention, when a machining program whose line segment length L / 2 is larger than the command radius r is designated in the R-designated arc of a semicircle, the distance between the start point and the end point is The line segment length calculation means calculates the line segment length L between the arc start point S and the arc end point E, and then the line segment length /
The command radius size comparison means compares the line length L / 2 with the command radius r, and then the error tolerance comparison means determines that the line length / command radius size comparison means that the line length L / 2 is large. At this time, the difference H between the line segment length L / 2 and the command radius r is compared with the error allowable value g. Next, when the command radius correction means determines that the error allowable value g is large, the command radius r is changed to the line segment. Since the arc center C is calculated from the corrected command radius r by the arc center coordinate calculating means, the line length L / 2 is calculated by the machining program of the R-designated arc locus of the semicircle. Even if the radius is larger than the command radius r, an error stop does not occur and a semicircular arc motion can be obtained.

【0098】次の発明によるNC装置におけるR指定円
弧軌跡補正方法においては、半円のR指定円弧で指令半
径rが線分長L/2より大きい加工プログラムが指定さ
れた場合、円弧始点Sと円弧終点E間の線分長Lを計算
し、その線分長L/2と指令半径rと比較し、指令半径
rが大きい場合、その差r−L/2と予め任意または定
数設定された半円許容値jとを比較し、半円許容値jが
前記差r−L/2より大きい場合には、指令半径rを線
分長L/2に補正し、前記補正された指令半径rから円
弧中心Cを計算し、円弧動作を行なうから、半円のR指
定円弧軌跡の加工プログラムで指令半径rが線分長L/
2より大きくても軌跡誤差がなくなり、所望の半円の円
弧動作が得られる。
In the R-designated arc locus correction method in the NC device according to the next invention, when a machining program in which the command radius r is larger than the line segment length L / 2 is designated in the R-designated arc of the semicircle, the arc start point S is determined. The line segment length L between the arc end points E is calculated, the line segment length L / 2 is compared with the command radius r, and when the command radius r is large, the difference r−L / 2 and the arbitrary or constant are set in advance. If the semicircle allowable value j is compared with the semicircular allowable value j, and the semicircular allowable value j is larger than the difference r−L / 2, the command radius r is corrected to the line segment length L / 2, and the corrected command radius r is corrected. Since the arc center C is calculated from and the arc operation is performed, the command radius r is the line segment length L / in the machining program of the semicircle R designated arc locus.
Even if it is larger than 2, there is no locus error, and a desired semicircular arc motion can be obtained.

【0099】次の発明によるNC装置におけるR指定円
弧軌跡補正装置においては、半円のR指定円弧で指令半
径rが線分長L/2より大きい加工プログラムが指定さ
れた場合、始点・終点間線分長演算手段によって円弧始
点Sと円弧終点E間の線分長Lを計算し、次に線分長・
指令半径大小比較手段によって線分長L/2と指令半径
rと比較する、次に半円許容値比較手段によって指令半
径rが大きいと判断されたとき、線分長L/2と指令半
径rの差r−L/2と半円許容値jと比較する、次に指
令半径補正手段によって半円許容値jが大きいと判断さ
れたとき、指令半径rを線分長L/2に補正する、次に
円弧中心座標演算手段によって前記補正された指令半径
rから円弧中心Cを計算するから、半円のR指定円弧軌
跡の加工プログラムで指令半径rが線分長L/2より大
きくても軌跡誤差がなくなり、所望の半円の円弧動作が
得られる。
In the R-designated arc locus correction device in the NC device according to the next invention, when a machining program having a command radius r larger than the line segment length L / 2 is designated in the R-designated arc of a semicircle, the distance between the start point and the end point is The line segment length calculation means calculates the line segment length L between the arc start point S and the arc end point E, and then the line segment length /
The command radius size comparison means compares the line length L / 2 with the command radius r, and when the semicircle allowable value comparison means determines that the command radius r is large, the line length L / 2 and the command radius r. Difference r−L / 2 of the semicircle permissible value j, and when the command radius correction means determines that the semicircle permissible value j is large, the command radius r is corrected to the line segment length L / 2. Then, since the arc center C is calculated from the corrected command radius r by the arc center coordinate calculating means, even if the command radius r is larger than the line segment length L / 2 in the machining program of the R-designated arc locus of the semicircle. The trajectory error is eliminated, and the desired semicircular arc motion is obtained.

【0100】次の発明によるNC装置におけるR指定円
弧軌跡補正方法においては、半円のR指定円弧で指令半
径rと線分長L/2が等しくない加工プログラムが指定
された場合、円弧始点Sと円弧終点E間の線分長Lを計
算し、指令半径rと前記線分長L/2との差分の絶対値
Kを計算し、差分Kと予め任意または定数設定された半
円許容値jとを比較し、半円許容値jが前記差分Kより
大きい場合には、指令半径rを線分長L/2に補正し、
前記補正された指令半径rから円弧中心Cを計算し、円
弧動作を行なうから、半円のR指定円弧軌跡の加工プロ
グラムで線分長L/2が指令半径rより大きくても、逆
に指令半径rが線分長L/2より大きくても、エラー停
止せず、かつ軌跡誤差がなくなり、所望の半円の円弧動
作が得られる。
In the R-designated arc locus correction method in the NC device according to the next invention, when the machining program in which the command radius r and the line segment length L / 2 are not equal is designated in the R-designated arc of the semicircle, the arc start point S And the arc end point E, the line segment length L is calculated, and the absolute value K of the difference between the command radius r and the line segment length L / 2 is calculated. If the semicircle allowable value j is larger than the difference K, the command radius r is corrected to the line segment length L / 2,
Since the arc center C is calculated from the corrected command radius r and the arc operation is performed, even if the line segment length L / 2 is larger than the command radius r in the machining program for the R-designated arc locus of the semicircle, the command is given in reverse. Even if the radius r is larger than the line segment length L / 2, an error stop does not occur and a trajectory error is eliminated, and a desired semicircular arc motion can be obtained.

【0101】次の発明によるNC装置におけるR指定円
弧軌跡補正装置においては、半円のR指定円弧で指令半
径rと線分長L/2が等しくない加工プログラムが指定
された場合、始点・終点間線分長演算手段によって円弧
始点Sと円弧終点E間の線分長Lを計算し、次に線分長
・指令半径間差分演算手段によって線分長L/2と指令
半径rとの差分の絶対値Kを計算し、次に半円許容値比
較手段によって差分Kと半円許容値jと比較する、次に
指令半径補正手段によって半円許容値jが大きいと判断
されたとき、指令半径rを線分長L/2に補正する、次
に円弧中心座標演算手段によって前記補正された指令半
径rから円弧中心Cを計算するから、半円のR指定円弧
軌跡の加工プログラムで線分長L/2が指令半径rより
大きくても、逆に指令半径rが線分長L/2より大きく
ても、エラー停止せず、かつ軌跡誤差がなくなり、所望
の半円の円弧動作が得られる。
In the R-designated arc locus correction device in the NC device according to the next invention, when a machining program in which the command radius r and the line segment length L / 2 are not equal is designated in the R-designated arc of a semicircle, the start point and the end point are designated. The line segment length calculation means calculates the line segment length L between the arc start point S and the arc end point E, and then the line segment length / command radius difference calculation means calculates the difference between the line segment length L / 2 and the command radius r. Of the absolute value K, and then the half-circle tolerance comparison means compares the difference K with the semi-circle tolerance j. Next, when the command radius correction means determines that the semi-circle tolerance j is large, The radius r is corrected to a line segment length L / 2, and then the arc center C is calculated from the corrected command radius r by the arc center coordinate calculating means. Even if the length L / 2 is larger than the command radius r, conversely Even decree radius r is larger than the segment length L / 2, no error stop, and there is no trajectory error, circular motions of the desired semicircular obtained.

【図面の簡単な説明】[Brief description of drawings]

【図1】 この発明によるNC装置におけるR指定円弧
軌跡補正装置の実施の形態1を示すブロック図である。
FIG. 1 is a block diagram showing a first embodiment of an R-designated arc locus correction device in an NC device according to the present invention.

【図2】 実施の形態1のR指定円弧軌跡補正装置によ
って実施する本発明によるR指定円弧軌跡補正方法の実
施手順を示すフローチャートである。
FIG. 2 is a flowchart showing an implementation procedure of an R-designated arc locus correction method according to the present invention, which is performed by the R-designated arc locus correction device according to the first embodiment.

【図3】 実施の形態1と実施の形態3の半円R指定円
弧の動作説明図である。
FIG. 3 is an operation explanatory diagram of a semicircle R designated arc in the first and third embodiments.

【図4】 この発明によるNC装置におけるR指定円弧
軌跡補正装置の実施の形態2を示すブロック図である。
FIG. 4 is a block diagram showing a second embodiment of an R-designated arc locus correction device in the NC device according to the present invention.

【図5】 実施の形態2のR指定円弧軌跡補正装置によ
って実施する本発明によるR指定円弧軌跡補正方法の実
施手順を示すフローチャートである。
FIG. 5 is a flowchart showing an implementation procedure of an R-designated arc locus correction method according to the present invention, which is carried out by the R-designated arc locus correction device of the second embodiment.

【図6】 実施の形態2と実施の形態3の半円R指定円
弧の動作説明図である。
FIG. 6 is an operation explanatory diagram of a semicircle R designated arc according to the second and third embodiments.

【図7】 実施の形態2と実施の形態3のR指定円弧の
動作説明図である。
FIG. 7 is an operation explanatory diagram of an R-designated arc according to the second and third embodiments.

【図8】 この発明によるNC装置におけるR指定円弧
軌跡補正装置の実施の形態3を示すブロック図である。
FIG. 8 is a block diagram showing Embodiment 3 of the R-designated arc locus correction device in the NC device according to the present invention.

【図9】 実施の形態3のR指定円弧軌跡補正装置によ
って実施する本発明によるR指定円弧軌跡補正方法の実
施手順を示すフローチャートである。
FIG. 9 is a flowchart showing an implementation procedure of an R-designated arc locus correction method according to the present invention, which is carried out by the R-designated arc locus correction device of the third embodiment.

【図10】 実施の形態3のR指定円弧の動作説明図で
ある。
FIG. 10 is an operation explanatory diagram of an R-designated arc according to the third embodiment.

【図11】 一般的なNC装置の概略ブロック図であ
る。
FIG. 11 is a schematic block diagram of a general NC device.

【図12】 R指定円弧演算部の従来例を示すブロック
図である。
FIG. 12 is a block diagram showing a conventional example of an R-designated arc calculation unit.

【図13】 従来例によるR指定円弧処理方法の実施手
順を示すフローチャートである。
FIG. 13 is a flowchart showing an implementation procedure of an R-designated arc processing method according to a conventional example.

【図14】 一般的なR指定円弧の円弧中心座標計算手
順を示す説明図である。
FIG. 14 is an explanatory diagram showing a general arc center coordinate calculation procedure of an R designated arc.

【図15】 通常のR指定円弧の加工プログラム例を示
す図である。
FIG. 15 is a diagram showing an example of a normal R designated arc machining program.

【図16】 従来例の半円R指定円弧の動作説明図であ
る。
FIG. 16 is an operation explanatory view of a semicircle R designated arc of a conventional example.

【図17】 特異な半円R指定円弧の加工プログラム例
を示す図である。
FIG. 17 is a diagram showing an example of a machining program for a unique semicircle R designated arc.

【図18】 従来例の半円R指定円弧の動作説明図であ
る。
FIG. 18 is an operation explanatory view of a semicircle R designated arc of a conventional example.

【図19】 特異な半円R指定円弧の加工プログラム例
を示す図である。
FIG. 19 is a diagram showing an example of a machining program of a unique semicircle R designated arc.

【図20】 従来例のR指定円弧の動作説明図である。FIG. 20 is an operation explanatory diagram of an R-designated circular arc of a conventional example.

【図21】 従来例の半円R指定円弧の軌跡誤差を示す
説明図である。
FIG. 21 is an explanatory diagram showing a trajectory error of a semicircle R designated arc of a conventional example.

【図22】 1/4円の軌跡誤差を示す説明図である。FIG. 22 is an explanatory diagram showing a trajectory error of a quarter circle.

【図23】 1/4円R指定円弧の加工プログラム例を
示す図である。
FIG. 23 is a diagram showing an example of a machining program for a 1/4 circle R designated arc.

【図24】 半円I・J指定円弧の加工プログラム例を
示す図である。
FIG. 24 is a diagram showing an example of a machining program for a semicircle I / J designated arc.

【図25】 従来例の半円R指定円弧の動作説明図であ
る。
FIG. 25 is an operation explanatory view of a semicircle R designated arc of a conventional example.

【符号の説明】[Explanation of symbols]

10 プログラム入力部、12 演算部、14 制御
部、16 駆動部、18工作機械、20 R指定円弧演
算部、22 円弧補間演算部、40 始点・終点間線分
長演算手段、42 線分長・指令半径大小比較手段、4
4 エラー手段、50 エラー許容値入力部、52 エ
ラー許容値設定手段、54 エラー許容値比較手段、5
8 半円許容値入力部、60 半円許容値設定手段、6
2 半円許容値比較手段、74 指令半径補正手段、8
0 中心距離・中心角度演算手段、82 円弧中心座標
演算手段
10 program input section, 12 operation section, 14 control section, 16 drive section, 18 machine tool, 20 R designated arc operation section, 22 arc interpolation operation section, 40 start / end line segment length calculation means, 42 line segment length / Command radius comparison means 4
4 error means, 50 error allowance input section, 52 error allowance setting means, 54 error allowance comparison means, 5
8 semicircle tolerance input section, 60 semicircle tolerance setting means, 6
2 semicircle allowable value comparison means, 74 command radius correction means, 8
0 center distance / center angle calculation means, 82 arc center coordinate calculation means

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 半径R指定円弧指令により指定された、
円弧始点と円弧終点間の線分長を計算し、前記線分長の
1/2の値と指令半径と比較し、線分長の1/2の値が
大きい場合、その差と予め任意または定数設定されたエ
ラー許容値とを比較し、エラー許容値が前記差より大き
い場合には、指令半径を線分長の1/2の値に補正し、
前記補正された指令半径から円弧中心を計算する、こと
を特徴とする数値制御装置における半径R指定円弧軌跡
補正方法。
1. A radius R designated arc command designates,
The line segment length between the arc start point and the arc end point is calculated, and the value of 1/2 of the line segment length and the command radius are compared. If the error tolerance is larger than the difference, the command radius is corrected to a value of 1/2 of the line segment length.
A radius R designated circular arc locus correction method in a numerical control device, wherein the circular arc center is calculated from the corrected command radius.
【請求項2】 半径R指定円弧指令により指定された、
円弧始点と円弧終点間の線分長を計算する始点・終点間
線分長演算手段と、前記始点・終点間線分長演算手段で
計算した線分長の1/2の値と指令半径と比較する線分
長・指令半径大小比較手段と、エラー許容値を任意設定
または数値制御装置内の定数設定するエラー許容値設定
手段と、前記線分長・指令半径大小比較手段にて線分長
の1/2の値が大きいと判断されたとき、線分長の1/
2の値と指令半径との差と、エラー許容値とを、比較す
るエラー許容値比較手段と、前記エラー許容値比較手段
にてエラー許容値が大きいと判断されたとき、指令半径
を線分長の1/2の値に補正する指令半径補正手段と、
前記補正された指令半径から円弧中心を計算する円弧中
心座標演算手段と、を有していることを特徴とする数値
制御装置における半径R指定円弧軌跡補正装置。
2. A radius R designated arc command designates,
A line segment length calculation means between the start point and the end point for calculating the line segment length between the arc start point and the arc end point, and a value of 1/2 of the line segment length calculated by the line segment length calculation means between the start point and the end point and a command radius Line segment length / command radius large / small comparison means, error tolerance value setting means for setting error tolerance value or constant in numerical control device, and line segment length by the line segment length / command radius large / small comparison means If it is determined that 1/2 of the
When the error tolerance value comparing means compares the difference between the value of 2 and the command radius with the error tolerance value and the error tolerance value comparing means determines that the error tolerance value is large, the command radius is divided into line segments. Command radius correction means for correcting to a value of 1/2 of the length,
A radius R-specified arc locus correction device in a numerical control device, comprising: an arc center coordinate calculation means for calculating an arc center from the corrected command radius.
【請求項3】 半径R指定円弧指令により指定された、
円弧始点と円弧終点間の線分長を計算し、前記線分長の
1/2の値と指令半径と比較し、指令半径が大きい場
合、その差と予め任意または定数設定された半円許容値
とを比較し、半円許容値が前記差より大きい場合には、
指令半径を線分長の1/2に補正し、前記補正された指
令半径から円弧中心を計算する、ことを特徴とする数値
制御装置における半径R指定円弧軌跡補正方法。。
3. A radius R designated arc command designates,
Calculate the line segment length between the arc start point and the arc end point, compare the value of 1/2 of the line segment length with the command radius, and if the command radius is large, the difference and the semicircle that is set to an arbitrary or constant value beforehand If the semicircle tolerance is larger than the above difference,
A radius R designated arc locus correction method in a numerical control device, characterized in that a command radius is corrected to ½ of a line segment length, and an arc center is calculated from the corrected command radius. .
【請求項4】 半径R指定円弧指令により指定された円
弧始点と円弧終点間の線分長を計算する始点・終点間線
分長演算手段と、前記始点・終点間線分長演算手段で計
算した線分長の1/2の値と指令半径と比較する線分長
・指令半径大小比較手段と、半円許容値を任意設定また
は数値制御装置内の定数設定する半円許容値設定手段
と、前記線分長・指令半径大小比較手段にて指令半径が
大きいと判断されたとき、線分長の1/2の値と指令半
径との差と、半円許容値とを比較する半円許容値比較手
段と、前記半円許容値比較手段にて半円許容値が大きい
と判断されたとき、指令半径を線分長の1/2の値に補
正する指令半径補正手段と、前記補正された指令半径か
ら円弧中心を計算する円弧中心座標演算手段と、を有し
ていることを特徴とする数値制御装置における半径R指
定円弧軌跡補正装置。
4. A line segment length calculation means between the start point and the end point for calculating the line segment length between the arc start point and the arc end point designated by the radius R designated arc command, and the line segment length calculation means between the start point and the end point. And a line segment length / command radius size comparison means for comparing the value of 1/2 of the line segment length and the command radius, and semicircle allowance value setting means for arbitrarily setting the semicircle allowance value or setting a constant within the numerical controller. When the line segment length / command radius size comparison means determines that the command radius is large, a semicircle for comparing the difference between the half of the line segment length and the command radius with the semicircle allowable value The allowable value comparing means and the command radius correcting means for correcting the command radius to a value of 1/2 of the line segment length when the semicircular allowable value comparing means determines that the semicircular allowable value is large, and the correction. Arc center coordinate calculation means for calculating the arc center from the specified command radius. A radius R specified arc locus correction device in a numerical control device.
【請求項5】 半径R指定円弧指令により指定された、
円弧始点と円弧終点間の線分長を計算し、指令半径と前
記線分長の1/2の値との差分の絶対値を求め、その差
分の絶対値と予め任意または定数設定された半円許容値
とを比較し、半円許容値が前記差分の絶対値より大きい
場合には、指令半径を線分長の1/2の値に補正し、前
記補正された指令半径から円弧中心を計算する、ことを
特徴とする数値制御装置における半径R指定円弧軌跡補
正方法。
5. A radius R designated arc command designates,
The line segment length between the arc start point and the arc end point is calculated, the absolute value of the difference between the command radius and the half of the line segment length is calculated, and the absolute value of the difference and the half value preset in advance or as a constant If the semicircular tolerance is larger than the absolute value of the difference, the command radius is corrected to 1/2 the line segment length, and the arc center is calculated from the corrected command radius. A radius R designated arc locus correction method in a numerical controller characterized in that the calculation is performed.
【請求項6】 半径R指定円弧指令により指定された、
円弧始点と円弧終点間の線分長を計算する始点・終点間
線分長演算手段と、前記始点・終点間線分長演算手段で
計算した線分長の1/2の値と指令半径との差分の絶対
値を計算する線分長・指令半径間差分演算手段と、半円
許容値を任意設定または数値制御装置内の定数設定する
半円許容値設定手段と、前記線分長・指令半径間差分演
算手段で計算した差分の絶対値と半円許容値と比較する
半円許容値比較手段と、前記半円許容値比較手段にて半
円許容値が大きいと判断されたとき、指令半径を線分長
の1/2の値に補正する指令半径補正手段と、前記補正
された指令半径から円弧中心を計算する円弧中心座標演
算手段と、を有していることを特徴とする数値制御装置
における半径R指定円弧軌跡補正装置。
6. A radius R designation arc command designates,
A line segment length calculation means between the start point and the end point for calculating the line segment length between the arc start point and the arc end point, and a value of 1/2 of the line segment length calculated by the line segment length calculation means between the start point and the end point and a command radius Line segment length / command radius difference calculation means for calculating the absolute value of the difference, semicircle allowance value setting means for arbitrarily setting the semicircle allowance value or setting a constant in the numerical control device, and the line segment length / command Semicircular tolerance comparison means for comparing the absolute value of the difference calculated by the radius difference calculation means with the semicircle tolerance, and a command when the semicircle tolerance is judged to be large by the semicircle tolerance comparison means. Numerical values characterized by having command radius correction means for correcting the radius to a value of 1/2 of the line segment length, and arc center coordinate calculation means for calculating the arc center from the corrected command radius. A radius R specified arc locus correction device in a control device.
JP07602297A 1997-03-27 1997-03-27 Method and apparatus for correcting arc trajectory specifying radius R in numerical controller Expired - Fee Related JP3368792B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP07602297A JP3368792B2 (en) 1997-03-27 1997-03-27 Method and apparatus for correcting arc trajectory specifying radius R in numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP07602297A JP3368792B2 (en) 1997-03-27 1997-03-27 Method and apparatus for correcting arc trajectory specifying radius R in numerical controller

Publications (2)

Publication Number Publication Date
JPH10268920A JPH10268920A (en) 1998-10-09
JP3368792B2 true JP3368792B2 (en) 2003-01-20

Family

ID=13593210

Family Applications (1)

Application Number Title Priority Date Filing Date
JP07602297A Expired - Fee Related JP3368792B2 (en) 1997-03-27 1997-03-27 Method and apparatus for correcting arc trajectory specifying radius R in numerical controller

Country Status (1)

Country Link
JP (1) JP3368792B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6506571B2 (en) * 2015-03-04 2019-04-24 川崎重工業株式会社 Method of verifying operation program, control method of processing device, and operation program verification program
JP7037457B2 (en) * 2018-09-05 2022-03-16 オークマ株式会社 Numerical control device and numerical control method
CN114406453B (en) * 2021-12-28 2023-11-24 大族激光科技产业集团股份有限公司 Processing track adjusting method and device, terminal equipment and storage medium

Also Published As

Publication number Publication date
JPH10268920A (en) 1998-10-09

Similar Documents

Publication Publication Date Title
US8831777B2 (en) Robot program changing device
US5845053A (en) Method for teaching welding torch orientation
US4698777A (en) Industrial robot circular arc control method for controlling the angle of a tool
CN110531701B (en) Numerical controller
US20060030970A1 (en) Data processing apparatus for arc welding
EP2293163B1 (en) Controller for machine tool and five-axis simultaneous control machine tool controlled thereby
US4870247A (en) Method and apparatus for controlling a welding robot forming a nonuniform weld satisfying predetermined criteria related to an interspace between elements being welded
US20130006394A1 (en) Numerical control device and numerical control method
JP6242539B1 (en) Numerical controller
JP3368792B2 (en) Method and apparatus for correcting arc trajectory specifying radius R in numerical controller
WO1989001195A1 (en) Numerical controller
JP5447048B2 (en) Robot control apparatus and robot position correction control method
JP3135738B2 (en) Numerical control unit
JPH02199509A (en) Involute interpolating speed control system
JPH09207088A (en) Interprobot coordinate transformation matrix setting system and correction system
US20240042611A1 (en) Program evaluation device and teaching device
JPH01205880A (en) Weaving control system
JP6643462B2 (en) Method, controller, machine, and computer program for providing roaming profile
JPH096423A (en) Method and device for correcting working locus in numerical controller
JPH0778021A (en) Position instructing method for robot and robot control unit
CN117666476A (en) Control method and system of numerical control machine tool and electronic equipment
JPH08234824A (en) Device and method for controlling robot
JPH11249723A (en) Method and device for controlling robot
JP2002041114A (en) Controller and control method
JPH01260503A (en) Method for generating nc data for working curved surface

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071115

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20081115

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20081115

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091115

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20091115

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20101115

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20111115

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees