Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0623926B2 - Numerical control device - Google Patents
[go: Go Back, main page]

JPH0623926B2 - Numerical control device - Google Patents

Numerical control device

Info

Publication number
JPH0623926B2
JPH0623926B2 JP9088185A JP9088185A JPH0623926B2 JP H0623926 B2 JPH0623926 B2 JP H0623926B2 JP 9088185 A JP9088185 A JP 9088185A JP 9088185 A JP9088185 A JP 9088185A JP H0623926 B2 JPH0623926 B2 JP H0623926B2
Authority
JP
Japan
Prior art keywords
arc
data
input
straight line
point
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 - Lifetime
Application number
JP9088185A
Other languages
Japanese (ja)
Other versions
JPS61250706A (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 Heavy Industries Ltd
Original Assignee
Mitsubishi Heavy Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Heavy Industries Ltd filed Critical Mitsubishi Heavy Industries Ltd
Priority to JP9088185A priority Critical patent/JPH0623926B2/en
Publication of JPS61250706A publication Critical patent/JPS61250706A/en
Publication of JPH0623926B2 publication Critical patent/JPH0623926B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/36Nc in input of data, input key till input tape
    • G05B2219/36227Assist operator to calculate unknown points, contours

Landscapes

  • Numerical Control (AREA)

Description

【発明の詳細な説明】 <産業上の利用分野> 本発明は数値制御フライス盤、数値制御旋盤、マシニン
グセンター等の数値制御装置に関し、2次元輪郭切削に
おける加工形状を容易且つ短時間に入力することができ
るようにしたものである。
The present invention relates to a numerical control device such as a numerically controlled milling machine, a numerically controlled lathe, a machining center, or the like, which can easily and quickly input a machining shape in two-dimensional contour cutting. It was made possible.

<従来の技術と問題点> 数値制御装置への入力方式は種々あるが、代表的な2つ
の従来例I,IIについて説明する。
<Prior Art and Problems> There are various input methods to the numerical control device, but two typical conventional examples I and II will be described.

従来例I(第7図〜第9図の場合): 第7図に入力パネルの表示部を示し、1は表示部CR
T、2はソフトキーやエコーキ等の入力キーである。C
RT1の画面に入力データが表示されている。図面中、
SNOはデータ番号を示し、PTNには直線か円弧かの
区別を入力する。“チヨク”は直線を意味し、“CCW
エンコ”は反時計方向の円弧を意味する。
Conventional example I (in the case of FIG. 7 to FIG. 9): FIG. 7 shows the display portion of the input panel, and 1 is the display portion CR.
T and 2 are input keys such as soft keys and echo keys. C
Input data is displayed on the screen of RT1. In the drawing,
SNO indicates a data number, and a distinction between a straight line and a circular arc is input to PTN. "Chiyoku" means a straight line, "CCW
"Enco" means a counterclockwise arc.

更に、X,Yには終点の座標値を入力し、R/θには円
弧の場合は半径を入力し、直線の場合には傾きの角度を
入力する。I,Jには円弧の中心座標を入力し、Pには
経路指定のため交点あるいは接点の選択(ウエ、シタ、
ヒダリ、ミギ)を入力し、CNRには面取りのデータを
入力する。?印は自動計算により求めることを意味す
る。
Further, the coordinate values of the end points are input to X and Y, the radius is input to R / θ for a circular arc, and the inclination angle is input for a straight line. Enter the center coordinates of the arc in I and J, and select the intersection or contact point (P, P,
(Hidari, Migi), and the chamfer data in CNR. ? The mark means that it is calculated by automatic calculation.

第7図の画面に表示されたデータから図形を描くと第8
図のようになる。即ち、データNo.1には、“チヨ
ク”,X(100),Y(100)となつているから、仮想直
線(チ)の終点(リ)がx,y(100,100)であることを示
し、更に、この点(リ)がデータNo.2の“チヨク”,
R/θ(30)の始点であることも示す。データNo.
3の“CCWエンコ”は反時計方向の円弧であり、その
中心座標(ワ)はI(200),J(150)であるからx,y
(200,150)である。データNo.2の直線とデータN
o.3の円弧とは2個所(ヌ)と(ル)で交わるので、選択す
べき交点は右か左かを指定するためデータNo.2では
P(ヒダリ)と入力している。従つて、切削の輪郭は、
第8図に実線で示す如く、始点(リ)から直線をたどつて
点(ヌ)に至り、更に点(ヌ)から反時計方向の円弧をたどつ
て終点(オ)に至るものである。但し、終点(オ)はデータN
o.3のX(250),Y(150)で指定された点x,y
(250,150)である。
Drawing a figure from the data displayed on the screen of FIG.
It becomes like the figure. That is, the data No. 1 indicates "chiyoku", X (100), and Y (100), which means that the end point (li) of the virtual straight line (chi) is x, y (100, 100). This point (i) is the data No. 2 "chiyoku",
It also indicates that it is the starting point of R / θ (30). Data No.
"CCW Enco" of 3 is a counterclockwise circular arc, and its center coordinate (wa) is I (200), J (150), so x, y
(200, 150). Data No. 2 straight line and data N
o. Since it intersects with the circular arc of 3 at two points (nu) and (ru), it is necessary to specify whether the intersection to be selected is right or left. In 2, P (Hidari) is entered. Therefore, the contour of cutting is
As shown by the solid line in FIG. 8, it follows a straight line from the start point (ri) to the point (nu), and further follows a circular arc in the counterclockwise direction from the point (nu) to the end point (e). . However, the end point (e) is data N
o. Point x, y designated by X (250), Y (150) of 3
(250, 150).

第8図の変形として第9図の如く直線と円弧が接する場
合は、第7図中のデータNo.2において、R/θ(3
0)の代りにR/θ(?)とし且つP(シタ)とすることに
より、下側の接点「ヌ」が選択されて実線で示す如く(リ)
→(ヌ)→(オ)の輪郭が描かれる。なお、P(ウエ)とすれば、
上側の接点(ヌ′)が選択され、輪郭は(リ)〜(ヌ′)〜(ヌ)〜
(オ)となる。
As a modification of FIG. 8, when a straight line and an arc are in contact with each other as shown in FIG. 9, the data No. in FIG. In 2, R / θ (3
By setting R / θ (?) And P (Shatter) instead of 0), the lower contact “N” is selected and as shown by the solid line (R)
→ (nu) → (o) outline is drawn. In addition, if P (ue),
The upper contact (nu ') is selected and the contour is (ri) ~ (nu') ~ (nu) ~
It becomes (e).

しかし、この従来例Iの欠点は、実際の図面には第8
図、第9図の実線に相当する部分のみが記入されてい
て、破線に相当する延長部分は記入されていないため、
データ入力の際にオペレータは頭の中に延長部分を描い
て判断しなければならず、入力作業が非常に繁雑であ
る。
However, the drawback of this conventional example I is
Since only the portion corresponding to the solid line in the figure and FIG. 9 is entered, and the extended portion corresponding to the broken line is not entered,
When inputting data, the operator has to draw an extension part in his head to make a judgment, and the input work is very complicated.

従来例II(第10図〜第12図の場合): この方法では、寸法に関する数値の他に、第10図のC
RT1の画面に表示されている如く、交点がある場合は
経路指定のため“右析”か“左析”かを入力する。これ
により、第11図に示す如く直線と円弧が交差する場
合、2つの交点3,4のいずれかが選択される。この場
合、オペレータは実際の図面の情報だけでデータを入力
することができ、延長部分を頭に描く必要がない。
Conventional example II (in the case of FIGS. 10 to 12): In this method, in addition to the numerical values relating to the dimensions, C of FIG.
As shown on the screen of RT1, if there is an intersection, enter "right analysis" or "left analysis" for route designation. As a result, when the straight line and the arc intersect as shown in FIG. 11, either of the two intersections 3 and 4 is selected. In this case, the operator can enter the data only with the information of the actual drawing, and it is not necessary to draw the extension portion in mind.

しかし従来例IIでは、直線や円弧が接する場合には、接
点において“前進”か“後退”か、また接する円弧の中
心角が180゜以上か180゜未満か即ち“大円”か
“小円”かといいう事項を入力しなければならない。第
12図の例で云うと、円5と円6はともに時計方向(C
W)円であり、これらの円5,6に第3の円が接してい
る場合を考える。円5の入力の後に、第3の円を“接す
る/後退/大円”と入力し、次いで円6を“接する/後
退”とすると、第12図に7で示す経路が選択される。
また円5の入力の後に、第3の円を“接する/前進/小
円”と入力し、次いで円6を“接する/前進”とする
と、第12図に8で示す経路が選択される。
However, in the conventional example II, when a straight line or an arc is in contact, whether it is "forward" or "backward" at the contact point, and whether the central angle of the contacting arc is 180 ° or more or less than 180 °, that is, "great circle" or "small circle" You have to enter such a matter. In the example of FIG. 12, both circles 5 and 6 are clockwise (C
Consider a case in which the third circle is in contact with these circles 5 and 6. After inputting the circle 5, if the third circle is input as "contact / backward / great circle" and then the circle 6 is set as "contact / backward", the route shown by 7 in FIG. 12 is selected.
When the third circle is input as "contact / advance / small circle" after the circle 5 is input and then the circle 6 is set as "contact / advance", the route shown by 8 in FIG. 12 is selected.

このように従来例IIでは、接点がある場合に、入力しな
ければならない項目が多く入力作業が繁雑である。
As described above, in Conventional Example II, when there is a contact, there are many items that must be input, and the input work is complicated.

<発明が解決しようとする問題点> 上述した従来技術に鑑み、入力すべき項目を少なくし、
二次元輪郭切削における加工形状の数値制御情報を容易
に且つ短時間に入力することができるようにする必要が
ある。
<Problems to be Solved by the Invention> In view of the above-mentioned conventional technique, the number of items to be input is reduced,
It is necessary to be able to input the numerical control information of the machining shape in the two-dimensional contour cutting easily and in a short time.

<問題点を解決するための手段> 本発明による数値制御装置は、直線と円弧で構成される
工具経路の情報を、入力情報を演算処理して出力する数
値制御装置において、直線と円弧との区別、直線の始点
の折れ方向、直線の傾き、直線の終点の座標値、円弧の
中心角が180゜以上か未満かの区別、円弧の回転方
向、円弧の始点での折れ方向、円弧の中心の座標値、円
弧の半径並びに円弧の終点の座標値、これらの入力が可
能な形状入力部と、形状入力部からの入力情報をもと
に、隣接する直線または円弧との相互関係が定まつてい
ないものについては相互に接し且つ接点で工具が前進の
みするものとし、所要の工具経路の情報を自動計算する
演算部と、自動計算が不可能な場合にエラーメッセージ
を表示するエラーメッセージ表示部とを具備するもので
ある。
<Means for Solving Problems> A numerical control device according to the present invention is a numerical control device that performs arithmetic processing of input information and outputs information of a tool path constituted by a straight line and a circular arc, and outputs the information between the straight line and the circular arc. Distinction, bending direction of the starting point of the straight line, inclination of the straight line, coordinate value of the ending point of the straight line, distinction whether the central angle of the arc is 180 ° or less, the rotation direction of the arc, the bending direction at the starting point of the arc, the arc center Based on the coordinate value of, the radius of the arc and the coordinate value of the end point of the arc, and the shape input part that can input these and the input information from the shape input part, the mutual relationship between the adjacent straight line or arc is determined. If not, it is assumed that they are in contact with each other and the tool only advances at the contact point, the calculation section that automatically calculates the required tool path information, and the error message display section that displays an error message when automatic calculation is not possible. Equipped with To do.

<作 用> 現実の加工図面を分析したところ、 (1) 直線または円弧が隣接するものと接するか交わる
かは、この情報を格別に入力しなくても、前後の情報か
ら自動判断できること、 (2) 接する場合には、接点では次の直線または円弧に
沿つて前進するのみで、後退は実際には存在しないこ
と、 これらを発見した。
<Operation> Analysis of actual machining drawings shows that (1) whether straight lines or arcs touch or intersect adjacent objects can be automatically determined from the preceding and following information without inputting this information. 2) In the case of contact, it was discovered that the contact only advances along the next straight line or arc, and there is no actual retreat.

前記(1),(2)の発見により、接するか交わるかの入力、
接する場合の前進か後退かの入力、及び交わつたり接し
たりする場合の交点や接点の入力をしなくても、隣接す
る直線または円弧との相互関係が定まつていないものに
ついては相互に接し且つ接点では工具は前進のみすると
いう条件を与えておくことにより、演算部は形状入力部
からの入力情報に合致した工具経路を自動計算して求め
る。但し、データ不足等の場合は自動計算で工具経路が
求まらないことがある。このような自動計算が不可能な
場合は、エラーメッセージ表示部がエラーメッセージを
表示し、オペレータにデータ不足あるいは入力データの
誤りを知らせる。
By the discovery of (1) and (2) above, input of contact or intersection,
Even if you do not enter the forward or backward movement when touching, or the intersection or contact when intersecting or touching, those that do not have a defined mutual relationship with adjacent straight lines or arcs touch each other. In addition, by giving a condition that the tool only advances at the contact point, the calculation unit automatically calculates and obtains the tool path that matches the input information from the shape input unit. However, if the data is insufficient, the tool path may not be calculated automatically. When such automatic calculation is not possible, the error message display section displays an error message to notify the operator of data shortage or input data error.

<実施例> 第1図〜第6図及び表を参照して本発明の一実施例を説
明する。第1図は実施例装置のブロツク構成図、第2図
はその形状入力部の入力パネル外観図、第3図はCRT
画面の正面図、第4図(a),(b)はそれぞれ直線の傾きを
説明する図、第5図は加工上の具体的な工具経路例を示
す図、第6図は演算部のフローチヤートである。表は入
力データ例の一覧表である。
<Example> An example of the present invention will be described with reference to FIGS. 1 to 6 and tables. FIG. 1 is a block diagram of the apparatus of the embodiment, FIG. 2 is an external view of an input panel of its shape input section, and FIG. 3 is a CRT.
A front view of the screen, FIGS. 4 (a) and 4 (b) are diagrams for explaining the inclination of the straight line, FIG. 5 is a diagram showing a concrete example of a tool path in machining, and FIG. 6 is a flow of the calculation unit. It is a chart. The table is a list of input data examples.

第1図に示すように、本発明の数値制御装置100は形
状入力部110と、演算部120と、NCデータ出力部
130とを有する。形状入力部110によつて入力され
た数値制御情報が演算部120で演算処理された後、N
Cデータ出力部130から演算結果である工具経路が工
作機械のNC装置200に出力され、アクチユエータ3
00が作動して加工作業が実行される。形状入力部11
0は第2図に示す入力パネルを有し、CRT画面11
1、ソフトキーまたはエコーキー112、数値キーや英
字キーを含む各種キー113が備えられている。CRT
画面111には第3図に示すように、入力されたデータ
の一覧表114が表示される。115は会話エリア、1
16はエラーメッセージ表示エリアである。入力データ
はまず会話エリア115に表示され、エントリーキを押
すと、入力データ一覧表114の対応する場所に移され
てそこに表示される。
As shown in FIG. 1, the numerical controller 100 of the present invention has a shape input unit 110, a calculation unit 120, and an NC data output unit 130. After the numerical control information input by the shape input unit 110 is processed by the calculation unit 120, N
The tool path which is the calculation result is output from the C data output unit 130 to the NC device 200 of the machine tool, and the actuator 3
00 is operated and the machining work is executed. Shape input unit 11
0 has an input panel shown in FIG. 2 and a CRT screen 11
1, soft keys or echo keys 112, various keys 113 including numerical keys and alphabetic keys. CRT
As shown in FIG. 3, the screen 111 displays a list 114 of input data. 115 is a conversation area, 1
Reference numeral 16 is an error message display area. The input data is first displayed in the conversation area 115, and when the entry key is pressed, it is moved to the corresponding place in the input data list 114 and displayed there.

入力データ一覧表114の各項目へのデータ入力につい
て説明する。形状の項目については、直線、CL円(時
計方向の円弧)、並びにCCL円(反時計方向の円弧)
のうち、いずれかを数値キーで選択する。折の項目につ
いては、進行方向に左析か右折かを数値キーで選択す
る。弧の項目については、円弧の中心角が180゜未満
の場合は小弧を、円弧の中心角が180゜以上の場合は
大弧を、それぞれ数値キーで選択する。IとJの項目に
ついては、直線の場合は直線の傾斜を表すx,yの値を
入力し、円弧の場合はその中心のx座標値、y座標値を
入力する。R/θの項目については、直線の場合は傾き
を入力し、円弧の場合は半径を入力する。XとYの項目
については、終点のx座標値、y座標値を入力する。な
お参考までに、コーナーの項目については面取りの情報
が入力され、Fの項目には送り速度の情報が入力され
る。
Data input to each item of the input data list 114 will be described. For shape items, straight lines, CL circles (clockwise arcs), and CCL circles (counterclockwise arcs)
Select one of them with the numerical keys. For folding items, use the numeric keypad to select left or right turning in the direction of travel. With regard to the item of arc, a small arc is selected by the numerical keys when the central angle of the arc is less than 180 °, and a large arc is selected when the central angle of the arc is 180 ° or more. For the items I and J, in the case of a straight line, the x and y values representing the inclination of the straight line are input, and in the case of a circular arc, the x coordinate value and the y coordinate value of the center are input. For the R / θ item, enter the slope for a straight line and the radius for an arc. For the X and Y items, enter the x coordinate value and the y coordinate value of the end point. For reference, chamfer information is input for the corner item, and feed speed information is input for the F item.

入力データ一覧表114には、必ずしも上記全ての項目
についてデータを入力する必要はない。入力されていな
い項目については、演算部120が自動計算してデータ
を求め、これを表示する。この自動計算をする場合に、
折、弧のデータが必要となる。データ不足のため自動計
算でデータが求まらない場合は、図示省略のエラーメッ
セージ表示部により、エラーメッセージがその表示エリ
ア116に表示される。
It is not always necessary to input data for all of the above items in the input data list 114. For the items that have not been input, the calculation unit 120 automatically calculates the data and displays the data. When doing this automatic calculation,
Occasionally, arc data is needed. When data cannot be obtained by automatic calculation due to lack of data, an error message display unit (not shown) displays an error message in the display area 116.

演算部120は下記(a)〜(e)の約束に従つて自動計算を
行う。即ち、 (a) 形状が直線で傾きと位置のいずれか或いは両方に
自由度があり、且つその前後いずれか或いは両方の形状
が円である場合は、当該直線は前後いずれか或いは両方
の円に接するものとする。
The calculation unit 120 performs automatic calculation according to the following promises (a) to (e). That is, (a) If the shape is a straight line and there is freedom in either or both of the inclination and the position, and either or both of its front and rear shapes are circles, then the straight line must be in either the front or rear or both circles. I will contact you.

(b) 形状がCL円或いはCCL円で中心位置に自由度
がある場合は、当該CL円或いはCCL円はその前後の
直線或いは円と接するものとする。
(b) If the shape is a CL circle or CCL circle and there is a degree of freedom in the center position, the CL circle or CCL circle shall be in contact with the straight lines or circles before and after that.

(c) 接する場合は、接点では前進のみとし、工具経路
に後退はないものとする。
(c) In case of contact, only forward movement at the contact point and no backward movement in the tool path.

(d) 直線の傾きは、第4図(a),(b)に示すように直線
の進行方向つまり実際の工具の進行方向400とX軸の
正方向とがなす角を、X軸の正方向から反時計方向を正
として計つた角度とする。
(d) As shown in FIGS. 4 (a) and 4 (b), the inclination of the straight line is the angle formed by the forward direction of the straight line, that is, the actual tool traveling direction 400 and the positive direction of the X axis. The angle is counted from the direction with the counterclockwise direction as positive.

(e) 自動計算で求めさせる場合で直線または円が2個
以上存在する場合、並びに交点または接点が2個以上存
在する場合は、折、弧の項目に入力された情報に合致す
るものが自動的に選択されるものとする。
(e) If there are two or more straight lines or circles, and if there are two or more intersections or contact points when automatically calculated, the one that matches the information entered in the arc item is automatically Shall be selected.

次に、第5図に示す工具経路について、データの入力及
び演算部の動作を説明する。第5図において、点(イ)は
座標原点、xは横軸、yは縦軸であり、工具経路は太い
実線で示す(ロ)〜(ハ)〜(ニ)〜(ホ)〜(ヘ)〜(ロ)である。ま
た、入力座標一覧表は下記の通りである。
Next, with respect to the tool path shown in FIG. 5, data input and operation of the calculation unit will be described. In FIG. 5, point (a) is the coordinate origin, x is the horizontal axis, y is the vertical axis, and the tool path is shown by a thick solid line (b)-(c)-(d)-(e)-(f). ) ~ (B). The input coordinate list is as follows.

まず、開始点を入力する。開始点(ロ)の座標は(100,20
0)であるから、入力はX(100),Y(200)とインプ
ツトされる。
First, enter the starting point. The coordinates of the starting point (b) are (100, 20
Since it is 0), the input is input as X (100), Y (200).

次に、直線(ロ)〜(ハ)は開始点(ロ)を通り円弧(ハ)〜(ニ)に
接するものであるから、No.1の入力データは“形
状”(直線)とのみインプツトされる。
Next, since the straight lines (b) to (c) pass through the starting point (b) and contact the arcs (c) to (d), No. Input data of 1 is only input as "shape" (straight line).

次に、円弧(ハ)〜(ニ)は中心座標が(150,430)、半径が
(130)で時計方向に進む円弧であり、次の円弧(ニ)〜
(ホ)と接するものであるから、No.2の入力データは
“形状”(CL円)、I(150)、J(430)、R/θ
(130)とインプツトされる。
Next, arcs (c) to (d) are arcs with center coordinates (150, 430) and radius (130) that progress in the clockwise direction.
Since it is in contact with (e), No. The input data of 2 is "shape" (CL circle), I (150), J (430), R / θ
Implanted as (130).

次に、円弧(ニ)〜(ホ)は半径が(80)で先の円弧(ハ)〜(ニ)
と次の円弧(ホ)〜(ヘ)の両方に接する小弧であり、反時計
方向に進むものであるから、No.3の入力データは
“形状”(CCL円)、“弧”(小)、R/θ(80)と
インプツトされる。
Next, the arcs (d) to (e) have a radius of (80) and the previous arcs (c) to (d).
It is a small arc that touches both the next arc and the next arc (e) to (f), and advances in the counterclockwise direction. The input data of 3 is input as “shape” (CCL circle), “arc” (small), and R / θ (80).

次に、円弧(ホ)〜(ヘ)は時計方向に進む円弧であり、中心
座標が(530,310)、半径が(100)のものであるか
ら、No.4の入力データは“形状”(CL円)、I
(530)、J(310)、R/θ(100)とインプツトされ
る。
Next, since the arcs (e) to (f) are arcs that proceed in the clockwise direction and have center coordinates of (530, 310) and a radius of (100), No. Input data of 4 is "shape" (CL circle), I
(530), J (310), R / θ (100)

更に、直線(ヘ)〜(ロ)は角度192゜で(ロ)点(100,20
0)を終点とし、点(ヘ)において円弧(ホ)〜(ヘ)から右へ折
れて進むものであるから、No.5の入力データは“形
状”(直線)、“折”(右)、R/θ(192)、終点を
示すX(100)及びY(200)がインプツトされる。
Furthermore, the straight line (f) to (b) is at an angle of 192 ° and the (b) point (100, 20
No. 0) is the end point, and at the point (f), the arc is turned from the arcs (e) to (f) to the right. In the input data of 5, "shape" (straight line), "fold" (right), R / θ (192), X (100) and Y (200) indicating the end point are input.

上述した入力データに基づく演算部120での演算処理
を第6図に示すフローチヤートにより説明する。まず、
ここで第6図中の注1から注7について説明しておく。
The arithmetic processing in the arithmetic unit 120 based on the above-mentioned input data will be described with reference to the flow chart shown in FIG. First,
Here, note 1 to note 7 in FIG. 6 will be described.

注1:ステツプ601において、入力データの構成は前
述した如く、直線の場合は傾き(方向を含む)、終点、
及び折れ方向(右と左の区別)の全部または一部であ
る。円弧の場合は中心、半径、回転方向(CL円とCC
L円の区別)、折れ方向(右と左の区別)、及び小弧・
大弧の区別の全部または一部である。
Note 1: In step 601, the structure of the input data is as described above, in the case of a straight line, the slope (including the direction), the end point,
And all or part of the folding direction (distinction between right and left). In case of arc, center, radius, rotation direction (CL circle and CC
L circle distinction), bending direction (right and left distinction), and small arc
It is all or part of the distinction of a great arc.

注2:ステツプ602において、n=1(nはデータN
o.)のときは第n−1行の終点はステツプ600で読
み込んだ開始点とし、また第n−1行の式は求まつてい
ないものとし、第n−2行については終点と式ともに求
まつていないものとする。
Note 2: In step 602, n = 1 (n is data N
o. ), The end point of the (n-1) th row is the start point read in step 600, and the equation of the (n-1) th row is not found. For the (n-2) th row, both the end point and the equation are obtained. Not yet.

注3:ステツプ602等において、式とは、直線の式ま
たは円の式を意味する。
Note 3: In step 602 and the like, the expression means a linear expression or a circular expression.

注4:ステツプ602において、式が求まる場合とは、
式を求めるに十分なデータが揃つていることを意味す
る。
Note 4: In step 602, when the formula is obtained,
This means that you have enough data to find the formula.

注5:ステツプ606,615において、反点が2個以
上存在する場合は、折れ方向に合致するもの1個を選択
する。
Note 5: In Steps 606 and 615, if there are two or more opposite points, select one that matches the folding direction.

注6:ステツプ614,631,634において、接す
る円が2個以上存在する場合は、円の回転方向、小弧と
大弧の区別に合致するもの1個を選択する。
Note 6: If there are two or more contacting circles in steps 614, 631, 634, select one that matches the rotation direction of the circle and the distinction between the small arc and the large arc.

注7:ステツプ635において、第n行と第n−1行の
終点がともに既に求まつている場合であるから、直線な
らば、その式が既に求まつているはずなのでこのステツ
プには来ない。従つて、ここでは折れ方向、小弧と大弧
の区別に合致する1個の円を選択する。
Note 7: In step 635, the end points of the n-th row and the (n-1) th row have already been obtained, so if the line is a straight line, the equation must already have been obtained, so this step does not come. . Therefore, here, one circle that matches the bending direction and the distinction between the small arc and the large arc is selected.

表に示した入力データに対し、演算部120は次のよう
に処理する。
The arithmetic unit 120 processes the input data shown in the table as follows.

(1) まず、プログラムの最初の段階600で、開始点
(ロ)のデータX,Y(100,200)を読み込む。
(1) First, at the first stage 600 of the program, the starting point
Read the data X, Y (100, 200) in (b).

(2) 次に、n=1とし、ステツプ601でNo.1の
データ“形状”(直線)を読み込む。
(2) Next, set n = 1, and in step 601, No. The data "shape" (straight line) of 1 is read.

(3) 次のステツプ602では、第n−1行の終点、こ
の場合は開始点(ロ)は求まつているが、第n行即ちここ
ではNo.1の行では直線としか入力されていないの
で、この直線の式を求めることができない。
(3) In the next step 602, the end point of the (n-1) th row, in this case, the starting point (b), is determined, but the nth row, that is, No. 1 here. Since only a straight line is input in the row of 1, the formula of this straight line cannot be obtained.

(4) 従つて、603,623,624,625のステ
ツプを経て、n=2として、データ読み込みのステツプ
601へ戻る。
(4) Therefore, after the steps 603, 623, 624 and 625, n = 2 is set and the process returns to the data reading step 601.

(5) ステツプ601で、No.2のデータを読み込
む。
(5) In Step 601, No. Read the data of 2.

(6) No.2のデータとしては時計方向の円で、中心
(150,430)と半径(130)ともに入力されているの
で、ステツプ602において第2行の円の式が求まる。
(自動計算) (7) 従つて、次はステツプ603を経てステツプ60
4へ行く。しかし、ステツプ604では未だデータN
o.1の式が求まつていないから、ステツプ611へ行
く。このステツプ611でもデータNo.1の終点
(X,Y)が求まつていないから、ステツプ616へ行
く。次このステツプ616では第n−2行の終点が前述
した如く開始点(ロ)即ちX,Y(100,200)として入力
されているから、ステツプ617へ行く。ステツプ61
7においては、データNo.1の直線がデータNo.2
の円に接するものとして求められる。このとき、前述し
た「接点で前進」という約束(c)に基づき、これに合致
する1個の直線の式が求められる。(自動計算) (8) すると、ステツプ622で、データNo.1の終
点が接点であるとして求まる。(自動計算) (9) 次にステツプ607に行くが、データNo.1の
直線の式が既に求まつているので、次のステツプ608
へ行く。ステツプ608では、第n−2行の終点が開始
点であるとして求まつているから、ステツプ609を経
てn=3としてステツプ601へ戻る。ステツプ601
でNo.3のデータを読み込む。
(6) No. The data of 2 is a circle in the clockwise direction, and both the center (150, 430) and the radius (130) are input, so the equation of the circle in the second row is obtained in step 602.
(Automatic calculation) (7) Therefore, next, through step 603, step 60
Go to 4. However, in step 604, the data N is still
o. Since the expression of 1 has not been found, go to step 611. Also in this step 611, the data No. Since the end point (X, Y) of 1 has not been found, go to step 616. Next, at step 616, the end point of the (n−2) th row has been input as the start point (b), that is, X, Y (100, 200) as described above, so the procedure goes to step 617. Step 61
In No. 7, data No. The straight line of No. 1 is the data No. Two
It is required to touch the circle of. At this time, based on the above-mentioned promise (c) of "advancing at a contact point", a single straight line expression that matches this is obtained. (Automatic calculation) (8) Then, in step 622, the data No. It is obtained assuming that the end point of 1 is the contact point. (Automatic calculation) (9) Next, in step 607, the data No. Since the equation of the straight line of 1 has already been obtained, the next step 608
Go to At step 608, the end point of the (n−2) th row is found to be the starting point, and therefore step 609 is performed and n = 3 is set to return to step 601. Step 601
No. Read the data of 3.

(10) No.3のデータは反時計方向の円で、半径(8
0)としか入力されていないから、ステツプ602では
データNo.3の式を求めることができない。
(10) No. The data of 3 is a counterclockwise circle with radius (8
Since only "0" is entered, the data No. is entered in step 602. Equation 3 cannot be obtained.

(11) そこで、ステツプ603を経てステツプ623へ
行き、データNo.2の式が既に求まつていることから
ステツプ627へ行く。しかし、データNo.2の終点
は未だ求まつていないからステツプ628へ行くが、デ
ータNo.3の終点も未だ求まつていないからステツプ
629へ行く。ステツプ629では、データNo.3と
No.2ともに円であることから、ステツプ607へ行
く。
(11) Then, go to step 623 via step 603, and enter the data No. Since the expression of 2 has already been obtained, go to step 627. However, data No. Since the end point of No. 2 has not been obtained yet, the process goes to step 628, but the data No. Since the end point of 3 has not been obtained yet, go to step 629. In step 629, the data No. 3 and No. Since both 2 are yen, go to step 607.

(12) ステツプ607では、データNo.2の式が既に
求まつていることから、次のステツプ608へ行く。ス
テツプ608では、データNo.1の終点が前記(8)で
既に求まつていることから、ステツプ609でn=4と
してステツプ601へ戻る。ここでNo.4のデータを
読み込む。
(12) In step 607, the data No. Since the equation (2) has already been obtained, the process proceeds to the next step 608. In step 608, the data No. Since the end point of 1 has already been obtained in (8), n = 4 is set in step 609, and the process returns to step 601. Here, No. Read the data of 4.

(13) No.4のデータは時計方向の円で、中心(53
0,310)と半径(100)ともに入力されていることか
ら、ステツプ602においてデータNo.4の式が求ま
る。(自動計算) (14) 従つて、ステツプ603から604,611,6
16,618のステツプを経て、620のステツプへ行
く。
(13) No. The data of 4 is a circle in the clockwise direction and the center (53
Since 0,310) and the radius (100) have been entered, the data No. is entered in step 602. Equation 4 is obtained. (Automatic calculation) (14) Accordingly, steps 603 to 604, 611, 6
After going through steps 16,618, go to step 620.

(15) ステツプ620においては、ともに式が求まつて
いるNo.4とNo.2の図形の両方に接する円とし
て、演算部No.3の円の式が求められる。このとき、
データNo.2,3,4の各円の回転方向と、「接点で
前進」という約束と、弧のなす角が180゜未満(小
弧)か180゜以上(大弧)かの区別とにより、データ
No.3の円は1個に定まる。もちろん式も求まる。
(自動計算) (16) 次にステツプ621で、データNo.2の終点を
求める。またステツプ622で、データNo.3の終点
を求める。(自動計算)。
(15) In step 620, the No. for which the formula is obtained is obtained. 4 and No. The calculation unit No. 2 is a circle that touches both of the two figures. The formula for the circle of 3 is required. At this time,
Data No. Data No. by the direction of rotation of each circle of 2, 3 and 4, the promise of "advancing at the contact point", and the distinction whether the angle formed by the arc is less than 180 ° (small arc) or 180 ° or more (large arc). . The circle of 3 is set to one. Of course, the formula can be obtained.
(Automatic calculation) (16) Next, in step 621, the data No. Find the end point of 2. In step 622, the data No. Find the end point of 3. (Automatic calculation).

(17) すると、ステツプ607,608,609を経
て、n=5としてステツプ601に戻りNo.5のデー
タを読み込む。
(17) Then, through steps 607, 608 and 609, n = 5 is set and the process returns to step 601. Read the data of 5.

(18) No.5のデータは直線で、傾き(192)と終点
X,Y(100,200)とが入力されているから、ステツプ
602においてデータNo.5の式が求まる。(自動計
算) (19) 従つて、ステツプ603から604,605のス
テツプを経て、606のステツプへ行く。
(18) No. The data of No. 5 is a straight line, and since the slope (192) and the end points X, Y (100, 200) are input, the data No. Equation 5 is obtained. (Automatic calculation) (19) Therefore, the process proceeds from step 603 to step 604, 605 and then to step 606.

(20) ステツプ606においては、データNo.4の終
点を、データNo.4の円とデータNo.5の直線との
交点として求める。このとき、No.5のデータには右
折が入力されているので、2個存在する交点のうち1個
だけが選択される。(自動計算) (21) データNo.5の終点は前述の如く既に入力され
ているから、以上(1)〜(20)で工具経路として必要な全
てのデータが求まつたことになる。
(20) In step 606, the data No. The end point of No. 4 is the data No. Circle 4 and data no. Obtained as the intersection with the straight line of 5. At this time, No. Since the right turn is input to the data of 5, only one of the two existing intersections is selected. (Automatic calculation) (21) Data No. Since the end point of 5 has already been input as described above, all the data necessary for the tool path has been obtained by the above (1) to (20).

かくして演算処理されたのち、演算結果が工具経路とし
てNCデータ出力部130よりNC装置200に与えら
れる。
After the calculation processing is performed in this manner, the calculation result is given to the NC device 200 from the NC data output unit 130 as a tool path.

<発明の効果> 本発明によれば、従来の入力データ項目に比べると、接
するか交わるかの項目、並びに接する場合には前進か後
退かの項目が不要となつた。
<Effect of the Invention> According to the present invention, as compared with the conventional input data item, the item of contact or intersection, and the item of forward or backward when contacting are unnecessary.

従つて、円弧と直線で構成される任意の輪郭切削の形状
情報を数値制御装置に入力するとき、 (1) 通常の加工図面に記入されている情報だけを入力
すれば良いため、オペレータにとつて延長部分を考える
必要がなく、理解し易い。
Therefore, when inputting the shape information of arbitrary contour cutting consisting of arcs and straight lines into the numerical control device, (1) Since it is sufficient to enter only the information entered in the normal machining drawing, It is easy to understand because there is no need to consider the extension.

(2) 直線や円相互の交点や接点を自動計算させる際に
必要な情報項目は、左折か右折かの区別と、円弧の中心
角が180゜未満か以上かの区別のみであるため、入力
作業が容易で短時間に行える。
(2) Input the information items required to automatically calculate the intersections and points of contact between straight lines and circles, only to distinguish between left and right turns and whether the center angle of the arc is less than 180 ° or more. Work is easy and can be done in a short time.

(3) 入力すべき情報項目が従来より少ないため、安価
なCRTの画面で入力データ一覧表を表示させることが
可能となり、そのためオペレータがどこまでデータを入
力したかを常に確認できるので入力作業が一層容易にな
る。
(3) Since the number of information items to be entered is smaller than before, it is possible to display the input data list on the screen of an inexpensive CRT, which allows the operator to always check how much data has been entered, which makes input work even more difficult. It will be easier.

(4) また、データ不足等により自動計算が不可能な場
合は、エラーメッセージが表示されるので、オペレータ
がデータ入力不足やデータ入力間違いを知ることができ
る。
(4) In addition, when automatic calculation is not possible due to lack of data, an error message is displayed so that the operator can know insufficient data input or incorrect data input.

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

第1図〜第6図は本発明の一実施例に関し、第1図は実
施例装置のブロツク構成図、第2図はその形状入力部の
入力パネル外観図、第3図はCRT画面の正面図、第4
図(a),(b)はそれぞれ直線の傾きを説明する図、第5図
は加工上の具体的な工具経路例を示す図、第6図は演算
部のフローチヤートである。 第7図〜第9図は従来例Iに関し、第7図は入力パネル
の正面図、第8図、第9図はそれぞれ原理説明図であ
る。 第10図〜第12図は従来例IIに関し、第10図は入力
パネルの正面図、第11図、第12図はそれぞれ原理説
明図である。 図面中、 100は数値制御装置、110は形状入力部、111は
CRT画面、112はソフトキーまたはエコーキー、1
13は数値キーや漢字キーを含む各種キー、120は演
算部、130はNCデータ出力部である。
1 to 6 relate to an embodiment of the present invention. FIG. 1 is a block diagram of the apparatus of the embodiment, FIG. 2 is an external view of an input panel of its shape input section, and FIG. 3 is a front view of a CRT screen. Figure, 4th
(A) and (b) are diagrams for explaining the inclination of a straight line, FIG. 5 is a diagram showing a concrete example of a tool path in machining, and FIG. 6 is a flow chart of a computing section. 7 to 9 relate to the conventional example I, FIG. 7 is a front view of the input panel, and FIGS. 8 and 9 are principle explanatory views. 10 to 12 relate to Conventional Example II, FIG. 10 is a front view of the input panel, and FIGS. 11 and 12 are principle explanatory views. In the drawings, 100 is a numerical controller, 110 is a shape input unit, 111 is a CRT screen, 112 is a soft key or echo key, 1
Reference numeral 13 is various keys including numerical keys and Kanji keys, 120 is a calculation unit, and 130 is an NC data output unit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】直線と円弧で構成される工具経路の情報
を、入力情報を演算処理して出力する数値制御装置にお
いて、 直線と円弧との区別、直線の始点の折れ方向、直線の傾
き、直線の終点の座標値、円弧の中心角が180゜以上
か未満かの区別、円弧の回転方向、円弧の始点での折れ
方向、円弧の中心の座標値、円弧の半径並びに円弧の終
点の座標値、これらの入力が可能な形状入力部と、 形状入力部からの入力情報をもとに、隣接する直線また
は円弧との相互関係が定まっていないものについては相
互に接し且つ接点で工具が前進のみするものとし、所要
の工具経路の情報を自動計算する演算部と、自動計算が
不可能な場合にエラーメッセージを表示するエラーメッ
セージ表示部とを具備する数値制御装置。
1. A numerical control device for calculating and outputting input information of a tool path composed of a straight line and a circular arc, the distinction between the straight line and the circular arc, the bending direction of the starting point of the straight line, the inclination of the straight line, The coordinate value of the end point of the straight line, the distinction whether the center angle of the arc is 180 ° or less, the rotation direction of the arc, the bending direction at the start point of the arc, the coordinate value of the center of the arc, the radius of the arc and the coordinates of the end point of the arc. Values, the shape input section that can input these values, and those that have no defined mutual relationship with the adjacent straight line or arc based on the input information from the shape input section are in contact with each other and the tool advances at the contact point. A numerical control device comprising a calculation unit for automatically calculating information on a required tool path and an error message display unit for displaying an error message when automatic calculation is impossible.
JP9088185A 1985-04-30 1985-04-30 Numerical control device Expired - Lifetime JPH0623926B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9088185A JPH0623926B2 (en) 1985-04-30 1985-04-30 Numerical control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9088185A JPH0623926B2 (en) 1985-04-30 1985-04-30 Numerical control device

Publications (2)

Publication Number Publication Date
JPS61250706A JPS61250706A (en) 1986-11-07
JPH0623926B2 true JPH0623926B2 (en) 1994-03-30

Family

ID=14010790

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9088185A Expired - Lifetime JPH0623926B2 (en) 1985-04-30 1985-04-30 Numerical control device

Country Status (1)

Country Link
JP (1) JPH0623926B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63263502A (en) * 1987-04-21 1988-10-31 Osaka Kiko Co Ltd Working information generating method for numerically controlled machine tool
JPH01169508A (en) * 1987-09-02 1989-07-04 Fanuc Ltd Method for correcting outline shape
JPH01102605A (en) * 1987-10-15 1989-04-20 Fanuc Ltd Contour form correcting method
JPH01106201A (en) * 1987-10-20 1989-04-24 Fanuc Ltd Graphic element correcting system

Also Published As

Publication number Publication date
JPS61250706A (en) 1986-11-07

Similar Documents

Publication Publication Date Title
KR850000362B1 (en) Background of the invention
CN105793788B (en) Control devices for working machines
JPH0554129B2 (en)
JP2000207008A (en) Teach-in system
JPH0736191B2 (en) Graphic display method of structure
JPH03250267A (en) Image display device and image display method
WO2016035869A1 (en) Machining program editing assistance device
US10295987B2 (en) Machining program editing assist apparatus
JPS59123008A (en) Forming method of part program
JP2757590B2 (en) Numerical control unit
JPH0623926B2 (en) Numerical control device
JP3165249B2 (en) Motion locus creation device for welding robot
CN107272589B (en) Machining path computing device and machining path computing method
JPH0731534B2 (en) How to create an offset shape
JPH0573123A (en) Working locus teaching device for robot
JPH01316804A (en) Contour shape defining method
JPH02198743A (en) Method and device for three dimensional working
JP7677099B2 (en) Machine tool, machining path generation method, and computer program
JP2629759B2 (en) Data generation method for numerical control machining
JPH0272413A (en) Program forming device for numeral controller
JP2742959B2 (en) Laser processing equipment
JPH05346814A (en) Three-dimensional machining method
JPS61114312A (en) Curved surface processing device
JPH0695293B2 (en) Machining simulation method in numerical controller
JPH0722875B2 (en) How to display taper angle setting of programming device