JPS59167712A - Numerical control working method - Google Patents

Numerical control working method

Info

Publication number
JPS59167712A
JPS59167712A JP58041857A JP4185783A JPS59167712A JP S59167712 A JPS59167712 A JP S59167712A JP 58041857 A JP58041857 A JP 58041857A JP 4185783 A JP4185783 A JP 4185783A JP S59167712 A JPS59167712 A JP S59167712A
Authority
JP
Japan
Prior art keywords
subprogram
shape
data
machining
parameter
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.)
Pending
Application number
JP58041857A
Other languages
Japanese (ja)
Inventor
Mitsuo Kinoshita
木下 三男
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fanuc Corp
Original Assignee
Fanuc Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fanuc Corp filed Critical Fanuc Corp
Priority to JP58041857A priority Critical patent/JPS59167712A/en
Publication of JPS59167712A publication Critical patent/JPS59167712A/en
Pending 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
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4093Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine
    • G05B19/40931Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine concerning programming of geometry
    • 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/35Nc in input of data, input till input file format
    • G05B2219/35072Scale, zoom a designed figure
    • 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/36333Selection from standard forms, shapes, partprograms, enter value for variable
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

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

Abstract

PURPOSE:To make numerical control workings of shapes different in attitude or size possible by adding conversion parameters to a subprogram call instruction shapes to be worked which are different from the shape of a subprogram in attitude or size. CONSTITUTION:Plural subprograms are stored in a subprogram memory 101, and a main program including the subprogram call instruction is recorded on an NC tape 102. A processor 104 reads out NC data from the NC tape 102 block by block in accordance with a control program stored in an ROM105 and stores it in a data memory 107. If NC data is the subprogram call instruction, conversion parameters stored in the data memory 107 are inserted to the main program. Thus, the numerical control working of a shape, which is subjected to coordinate conversion by the indication of conversion parameters, is possible.

Description

【発明の詳細な説明】 技術分野 本発明は数値制御加工方法に係り、特に所定形状の数値
制御加工を実行させるためのプログラムをサブプログラ
ムとしてメモリに記憶させておくと共に、メインプログ
ラム中にサブプログラム呼出命令を挿入しておき該サブ
プログラム呼出命令によシメモリよシサププログラムを
呼出して数値制御加工を行なう数値制御加工方法に関す
る。
Detailed Description of the Invention Technical Field The present invention relates to a numerically controlled machining method, and in particular, a program for executing numerically controlled machining of a predetermined shape is stored in a memory as a subprogram. The present invention relates to a numerical control machining method in which a call command is inserted and a subprogram call command is used to call a program from a memory to perform numerical control machining.

背景技術 所定形状の数値制御加工を実行させるサブプログラムを
メモリに記憶させておくと共に、メインプログラム中に
サブプログラムの呼出命令を挿入しておき、該サブプロ
グラム呼出命令によりメモリよシサププログラムを呼出
してNC加工するNC加工方法が知られている。このサ
ブプログラムを用いたNC加工方法によれば、NCテー
プ長を短くできると共に、NCプログラミングを簡単に
することができるとbうメリットが生じる。たとえば、
ある形状の加工を複数回行、なわなくてはならないよう
な場合、該形状を予めサブプログラムしてメモリに記憶
させておけば、メインプログラム中の適所に該サブプロ
グラムを呼出す呼出命令を挿入するだけで、該形状のN
C加工を行なうことができる。
BACKGROUND ART A subprogram for executing numerically controlled machining of a predetermined shape is stored in a memory, a subprogram call instruction is inserted into the main program, and the subprogram call instruction calls the system program from the memory. There is a known NC machining method that performs NC machining. According to the NC processing method using this subprogram, the NC tape length can be shortened and the NC programming can be simplified, which are advantages. for example,
If you have to process a certain shape multiple times, you can subprogram the shape in advance and store it in memory, then insert a call command to call the subprogram at the appropriate place in the main program. N of the shape
C processing can be performed.

ところで、従来のサブプログラムを用いた加工方法によ
り加工される形状は、該サブプログラム形状と同一姿勢
で且つ同一の大きさの形状であった。換言すれば、従来
の方法ではサブプログラム形状を回転させたり、或いは
拡゛犬、縮小したりして得られる形状、或いはY軸又は
Y軸に平行な直線に関して対称な形状などの加工をする
ことができなかった。このため、従来の方法ではサブプ
ログラム形状と姿勢が異なったり、大きさが異なるとそ
の都度NCデータを作成しなくてはならずNCテープ長
が−長くなると共に、NCプロゲラばングが大変になる
という欠点があった。
By the way, the shape machined by the conventional machining method using a subprogram has the same posture and the same size as the subprogram shape. In other words, in the conventional method, it is not possible to process a shape obtained by rotating, enlarging or reducing the subprogram shape, or a shape that is symmetrical with respect to the Y axis or a straight line parallel to the Y axis. I couldn't do it. For this reason, in the conventional method, NC data must be created each time the subprogram shape and orientation differ, or the size differs, which increases the NC tape length and makes it difficult to create the NC program. There was a drawback.

発明の目的 本発明の目的はサブプログラム形状と姿勢が異なっても
、或いは大きさが異なってもサブプログラム呼出命令に
変換パラメータを付加するだけで該姿勢或いは大きさの
異なる形状加工ができるV値制御加工方法を提供するこ
とである。
Purpose of the Invention The purpose of the present invention is to provide a V value that enables shape processing with a different orientation or size by simply adding a conversion parameter to a subprogram call command, even if the subprogram shape and orientation are different, or the size is different. An object of the present invention is to provide a controlled processing method.

発明の開示 ラメータをメインプログラムに挿入しておき、該変換パ
ラメータの指示に基いてサブプログラムデータが特定す
る形状を座標変換し、座標変換により得られる形状の数
値制御加工を実行する数値制御加工方法である。
DISCLOSURE OF THE INVENTION A numerical control machining method in which a parameter is inserted into a main program, a shape specified by subprogram data is coordinate transformed based on instructions of the transformation parameter, and numerically controlled machining of the shape obtained by the coordinate transformation is executed. It is.

発明を衷違するための最良;in− 第1図は本発明に係るプログラム構造説明図であ、b、
mpil:メインプログラム、SMPはサブプログラム
である。メインプログラム凪?の適所にはサブプログラ
ム呼出命令 M2S PXXXX と変換パラメータが同一プロツクで指令されている。尚
、サブプログラム呼出命令においてM2Sはサブプログ
ラム呼出のM機能命令、××××は呼出されるサブプロ
グラム名、アルファベッド′P″はサブプログラム名の
前におかれるワードアドレスである。一方、サブプログ
ラムSMPの先頭には該サブプログラムの多′称xxx
x (但し、0は名称の前におかれるワードアドレス)
が、又末尾にはサブプログラムの終シを示すと共に制御
をメインプログラムに戻すM機能命令″M99′が、更
にサブプログラム名称とM99”間には所定形、状の通
路を特定する通路データがそれぞれ配設されている。
Best way to confuse the invention; in- Figure 1 is an explanatory diagram of the program structure according to the present invention, b,
mpil: main program, SMP is a subprogram. Main program Nagi? The subprogram call command M2S PXXXX and the conversion parameters are instructed in the same program at the appropriate locations. In the subprogram call command, M2S is the M function command for calling the subprogram, XXX is the name of the subprogram to be called, and the alphabet 'P'' is the word address placed before the subprogram name.On the other hand, At the beginning of the subprogram SMP, the subprogram's polynomial xxx
x (However, 0 is the word address placed before the name)
However, at the end there is an M function command ``M99'' that indicates the end of the subprogram and returns control to the main program, and between the subprogram name and ``M99'' there is path data that specifies a path of a predetermined shape. are arranged respectively.

従って、NCユニットがメインプログラム中のNCデー
タを1ブロツクづつ読み出し、該NCデータに基いてN
C加工制御を実行してゆくと、いつしかサブプログラム
呼出命令と変換パラメータを読み出す。サブプログラム
呼出命令を読み出すと、NCユニットは以後P××××
によシ特定されたサブプログラムのNCデータを1ブロ
ツクづつサブプログラムメモリから読み出すと共に、該
NCデータに変換パラメータが指示する変換処理を施し
、変換処理して得られたデータに基いてNC加工を行な
う。以後、NCユニットはM99”が読み出される迄同
様の処理を行ない、′M99”の読みとりによシサブプ
ログラム処理を終え、次からメインプログラムのNCデ
ータに基いてNC加工を行なう。
Therefore, the NC unit reads the NC data in the main program one block at a time, and based on the NC data
As the C machining control is executed, the subprogram call command and conversion parameters will be read out before you know it. After reading the subprogram call instruction, the NC unit will
reads the NC data of the subprogram specified by the subprogram from the subprogram memory one block at a time, performs a conversion process on the NC data specified by the conversion parameter, and performs NC processing based on the data obtained by the conversion process. Let's do it. Thereafter, the NC unit performs the same processing until M99'' is read out, and when 'M99'' is read out, the subprogram processing is completed, and then NC processing is performed based on the NC data of the main program.

ところで、上述の変換パラメータとしては回転パラメー
タ、拡大縮小パラメータ、ミラーノくラメータ、繰返し
パラメータなどが考えられる。回転パラメータはワード
アドレス″′Q”と′Q″に続く回転角を特定する数値
とによって表現され、該回転角だけサブプログラムが特
定する形状を回転させ、回転により得られた形状のNC
加工を実行させるもの(回転コピー)、拡大縮小パラメ
ータはワードアドレス5K”と”K”に続く拡大率又は
縮小率を特定する数値とによって表現され、サブプログ
ラム形状を特定された倍率だけ拡大・縮小し、拡大・縮
小によシ得られた形状のNC加工を実行させるもの(拡
大・縮小コピー)、εラーパラメータはワードアドレス
旦”と1B″に続く対称軸を特定する数値(0”はY軸
に平行な直線、”1”はY軸に平行な直線)とによって
表現され、サブプログラム゛形状を対称軸の回シに18
0’ 回転させ、これによシ得られた形状のNC加工を
実行させるもの(ミラーコピー)、繰返しパラメータは
ワードアドレス”L”と′L”に続く繰返し数を特定す
る数値とによって表現され、たとえば回転パラメータと
共に指令され、以下の回転繰返しコピーのNC加工を実
行させるものである。すなわち第1回目は、サブプログ
ラム形状そのま1のNC加工金行ない、しかる後、回転
角パラメータにより特定された角度θだけサブプログラ
ム形状を回転させて第2回目のNC加工を行ない、さら
に、サブプログラム形状を26だけ回転式せて第3回目
のNC加工を行ない、昇後同様に繰返しパラメータにょ
シ特定された回数のNC加工を行なわせる(回転繰返し
コピー)。
By the way, the above-mentioned conversion parameters may include a rotation parameter, a scaling parameter, a Milano parameter, a repetition parameter, and the like. The rotation parameter is expressed by the word address "'Q" and the numerical value that specifies the rotation angle following "Q", and rotates the shape specified by the subprogram by the rotation angle, and performs NC of the shape obtained by rotation.
The scaling parameter that executes the processing (rotation copy) is expressed by the word address 5K" and a numerical value that specifies the scaling factor or scaling factor following "K", and the subprogram shape is scaled up or down by the specified scaling factor. The ε error parameter is a value that specifies the axis of symmetry following the word address `` and 1B''(0'' is a value that specifies the axis of symmetry following the word address "1" is a straight line parallel to the Y-axis).
0' rotation and performs NC machining of the resulting shape (mirror copy).The repetition parameter is expressed by the word address "L" and the numerical value specifying the number of repetitions following 'L'. For example, it is commanded along with a rotation parameter to execute the following NC machining of repeated rotation copies.In other words, the first time is to perform the NC machining of the subprogram shape 1, and then the rotation angle specified by the rotation angle parameter. The subprogram shape is rotated by the angle θ and the second NC machining is performed, and then the subprogram shape is rotated by 26 degrees and the third NC machining is performed. NC machining is performed the same number of times (rotational repeat copying).

第2図は不発明によりルn々のコピー形状を加工するた
めのプログラム説明図であり、図示L&いサブプログラ
ムメモリには第2図(4)に示す形状(通路)に沿って
加工するサブプログラムが記憶されているものとする。
FIG. 2 is an explanatory diagram of a program for machining a number of copy shapes according to the invention. It is assumed that the program is stored.

尚、第2図(2)の形状のサブプログラムはインクリメ
ンタルで指令されてお9・ 01264                    
       (イ)C92XI) jO(ロ) 041 GOI Y−5,0(ハ) K5.0                    に
)y−s、o                   
(ホ)Go2  Y−15,0J−7,5(へ)Go 
 I   X−10,0()l Y21:LO(チ X5.0                     
          (!刀G4a   ys、o  
                      (ヌ)
X99                    四と
なる。但し、サブプログラム中(イ)の命令によシサプ
プログラム名称が特定され、(ロ)の命令により座標系
が設定され、(ハ)の命令により進行方向左側オフセッ
トとポイントP10迄の直線切削が指令され、に)の命
令によp Ps点迄の@線切側が指令され、(ホ)の命
令によりP8点次の直線切削が指令され、(へ)の命令
によ如P4点迄0時計方向円弧切削が指令され、(ト)
の命令によシP5点迄0直線切削が指令され、(ト)の
命令によシP6点迄0直線切削が指令され、(力(の命
令によ・すP1点次の直線切削が指令され、休)の命令
によシオフセットキャンセルとPs点迄の直線切削が指
令され、に)の命令によシサププログラムの終シが指令
されてbる。このように、サブプログラムメモリに第1
図(4)に示すNC加工のサブプロクラムが記憶されて
いる状態において、メインプログラムが1 05678                    
       (イ)X98   P1234    
                 (ロ)GOOX2
0.’0          09X98  P723
4  Q90.D           HQOOK4
[1,CI           (ホ)Δ19a P
1264 K1.5       (へ)Go 0  
K400                     
         (ト)X98 p12L4 731
        (ト)Mo2           
         (男であれば、(ロ)の訪令にょシ
、第2図中C1で示す単純コピーの形状加工(サブプロ
グラム形状と同一姿勢、同一形状の加エンが行われ、r
−+、に)の命令によシサブプログラム形状をポイント
PIを中心に反時計方向に90 回転させてなる形状C
4(回転コピー形状)加工が行われ、(ホ)、(へ)の
命令により ps点を基準にサブプログラム形状を1.
5倍してなる形状Cs(拡大縮小コピー形状)加工が行
われ、(ト)、(イ)によ924点を通、!7Y軸に平
行な直線(対称軸)Yの回シに180°回転させてなる
)う状C4(ξラーコビー形状)の加工が行われる。尚
、メインプログラム中、(イ)はメインプログラム名、
(ハ)は21点への位置決め指令、(ホ)は23点への
位置決め指令、(ト)は24点への位置決め指令、(史
はプログラムエンド命令である。
Note that the subprogram with the shape shown in Figure 2 (2) is commanded incrementally.9.01264
(a) C92XI) jO (b) 041 GOI Y-5,0 (c) K5.0 ni) y-s, o
(e)Go2 Y-15,0J-7,5(e)Go
I X-10,0()l Y21:LO(ChiX5.0
(! Katana G4a ys, o
(nu)
X99 becomes four. However, the sysap program name is specified by the command (a) in the subprogram, the coordinate system is set by the command (b), and the offset to the left in the advancing direction and straight line cutting to point P10 is performed by the command (c). The command in ) commands the @line cutting side up to point p Ps, the command in (e) commands straight line cutting at point P8, and the command in (f) commands 0 clock up to point P4. Directional arc cutting is commanded, (g)
The command (g) commands 0 straight line cutting up to point P5, the command (g) commands 0 straight cutting up to point P6, and the command (force) commands straight line cutting after point P1. Then, the command ``stop'' commands the offset cancellation and straight line cutting to point Ps, and the command ``2'' commands the termination of the system program. In this way, the first
In the state where the NC machining subprogram shown in Figure (4) is stored, the main program is 1 05678
(a)X98 P1234
(b) GOOX2
0. '0 09X98 P723
4 Q90. DHQOOK4
[1, CI (E) Δ19a P
1264 K1.5 (to) Go 0
K400
(G)X98 p12L4 731
(G) Mo2
(If it is a man, the simple copy shape processing shown by C1 in Figure 2 (the same posture and shape processing as the subprogram shape is performed, r
Shape C obtained by rotating the subprogram shape by 90 degrees counterclockwise around point PI according to the command of
4 (rotation copy shape) processing is performed, and the subprogram shape is changed to 1. based on the ps point by the commands (e) and (f).
Shape Cs (enlarged/reduced copy shape) which is multiplied by 5 is processed, and 924 points are passed through (G) and (B). 7. Machining of a cylindrical C4 (ξ larcobie shape) is performed, which is formed by rotating 180° around a straight line (axis of symmetry) Y parallel to the Y axis. In the main program, (a) is the main program name,
(c) is a positioning command to 21 points, (e) is a positioning command to 23 points, (g) is a positioning command to 24 points, and (hi) is a program end command.

第3図は1回転繰返しコピーkJ:り歯車を加工するプ
ログラム説明図である。
FIG. 3 is an explanatory diagram of a program for machining a one-rotation repetitive copy kJ: gear.

サブプログラムメモリには第3図囚に示す1枚の歯を加
工するためのNCデータがサブプログラムとして記憶さ
れている。すなわち、サブプログラムメモリには Ql 111 Go2 Xj078 Y−26J〜22500GOI 
X47 X991 Go2 XL6 X139 J1109 J−53X5
7 X273 工4570 J−767X159 ’(
556J5175 J−1248X261  Y647
  l7837  J−2788X448  Y868
  l88351  J−4007X605  ’Y9
40 110960  J−6567X1428  Y
−181l−2669J−26868X350  Y−
1060l−118,49J−4501X218  Y
−952ニー9539  J−2635X92  Y−
692■−8192J−1442X21  Y−558
l−5302J−480X−13Y−279J−445
7J65X−20Y−138J−1106J86QOI
  X−200Y−972 QO2X1051  Y−245l−4545J−22
05699 が記憶されている。但し、上記のサブプログラムは自動
プログラミングによ!l)第3図(4)に示す歯形状を
微小円弧で近似して得られたものである。かかるサブプ
ログラムを用いて、第5図(Blに示す1周に25枚の
歯を有する歯車の加工を行なうだめのメインプログラム
は Q2222                    
        (イ)G92  XOY2O,0f口
) Q42 QOI  Y2.5         (ハ)
M98  Pllll  Q−11,4I、25   
に)Q40 GOI Y−2,5(ホ) Mn2                (へ)となる
。但し、(イ)はプログラム名、(ロ)はPs点を(0
,2[10)とする座標系設定の命令、(ハ)は進行方
向右側オフセットとポイン)P+への直線切削を指令す
る命令、に)は時計方向に11.4°づつ回転させなが
ら25枚の歯加工の実會を指令する命令、(ホ)はオフ
セットキャンセルとPs点への直線切削を指令する命令
、(へ)はプログラムエンド命令である。
NC data for machining one tooth shown in FIG. 3 is stored as a subprogram in the subprogram memory. That is, the subprogram memory contains Ql 111 Go2 Xj078 Y-26J~22500GOI
X47 X991 Go2 XL6 X139 J1109 J-53X5
7 X273 Eng 4570 J-767X159' (
556J5175 J-1248X261 Y647
l7837 J-2788X448 Y868
l88351 J-4007X605'Y9
40 110960 J-6567X1428 Y
-181l-2669J-26868X350 Y-
1060l-118,49J-4501X218Y
-952 knee 9539 J-2635X92 Y-
692■-8192J-1442X21 Y-558
l-5302J-480X-13Y-279J-445
7J65X-20Y-138J-1106J86QOI
X-200Y-972 QO2X1051 Y-245l-4545J-22
05699 is stored. However, the above subprograms are automatically programmed! l) This is obtained by approximating the tooth shape shown in FIG. 3(4) with a minute circular arc. The main program for machining a gear having 25 teeth per revolution as shown in Fig. 5 (Bl) using such a subprogram is Q2222.
(B) G92 XOY2O, 0f mouth) Q42 QOI Y2.5 (C)
M98 Pllll Q-11,4I,25
) Q40 GOI Y-2,5 (e) Mn2 (e). However, (a) is the program name, and (b) is the Ps point (0
, 2[10] Command to set the coordinate system. (e) is an instruction to instruct offset cancellation and straight line cutting to point Ps, (f) is a program end instruction.

第4図は本発明の実施例ブロック図、第5図は処理の流
れ図である。尚、サブプログラムメモ1ノ101には複
数のサブプログラムが記憶されておシ、又NCテープ1
02にはサブプログラム呼出命令を含むメインプログラ
ムが記録されているものとする。
FIG. 4 is a block diagram of an embodiment of the present invention, and FIG. 5 is a flowchart of processing. Note that subprogram memo 1 101 stores a plurality of subprograms, and also NC tape 1.
It is assumed that a main program including a subprogram call instruction is recorded in 02.

さて、操作盤103上の起動釦を押圧して起動をかける
と処理装置104は、ROM105に記憶されている制
御プログラムの制御に基いてテープリーダ106をして
NCテープ102からNCデータを1ブロツクづつ読み
ビし、データメモリ107に記憶する。しかる後、処理
装置104は該NCデータに基いてNO処理を実行する
。たとえば、NCデータが直線切削データでるれば、す
なわち Xxi Yyi であれば、処理装置104は Δxi=fx・ΔT(1) Δyi = fy・ΔT(2) の演算を行なって所定時間ΔTの間におけるX軸及びY
軸方向移動量ΔXi、ΔYiを求め、これらをデータメ
モリ107に記憶すると共にパルス分配器108に人力
する。尚、ΔTはパラメータとしてパラメータメモリ1
09に予め設定されておシ、又、X軸及びY軸方向の速
度f x + f 3’は次式によシ決定さり、る、(
但し、fiは指令速度である)。
Now, when the start button on the operation panel 103 is pressed to start, the processing device 104 uses the tape reader 106 to read one block of NC data from the NC tape 102 under the control of the control program stored in the ROM 105. The data is read one by one and stored in the data memory 107. Thereafter, the processing device 104 executes NO processing based on the NC data. For example, if the NC data is straight-line cutting data, that is, if X axis and Y
The axial movement amounts ΔXi and ΔYi are determined and stored in the data memory 107 and manually inputted to the pulse distributor 108. Note that ΔT is a parameter stored in parameter memory 1.
09 is preset, and the velocity f x + f 3' in the X-axis and Y-axis directions is determined by the following formula, (
However, fi is the command speed).

fx = f i −xi / 7xi’ +−yi”
 (3T’fy = fi−yi /η吉−”+;i’
(4)パルス分配器108はΔXi、Δyiが印加され
\ば同時2軸のパルス分配演算を行ない分配パルスXp
fx = f i -xi / 7xi' + -yi"
(3T'fy = fi-yi /ηkichi-"+;i'
(4) When ΔXi and Δyi are applied, the pulse distributor 108 simultaneously performs two-axis pulse distribution calculation and distributes the pulse Xp
.

Ypをx、y軸用のサーボユニット110X、110Y
に入力し、サーボモータ111)(,111Yを回転し
、図示しない工具或いはワイヤ電極を移動させる。
Servo units 110X and 110Y for Yp and x and y axes
, and rotates the servo motors 111) (, 111Y) to move a tool or wire electrode (not shown).

又、パルス分配器108Fiパルス分配演算と共にX軸
方向の分配パルスXpの数Nx及びY軸方向の分配パル
スYpの数NyがそれぞれΔXi、Δyiに等しくなっ
たかどうかをモニタしておシ、Nx−Δxi  、 N
y =Δyi になるとパルス分配完了信号DENを処理装置104に
出力する。これによシ処理装置104はΔXi、Δyi
を積算して現在位置Xal yaを更新すると共に(x
a十Δx i−+xa 、 ya+Δyi−+ya)、
工具或いはワイヤ電極が目標位置に到達したかどうかを
判別し、到達していなければ次の移動量データΔxi+
1.Δyi+1(実際にはΔxi=ΔX 1 + ’ 
+Δyi−Δyi+1)をパルス分配器108に入力す
る。以後、同様な処理が行われ、工具或いはワイヤ電極
が指令通路に沿って目標位置迄で到達すれば、処理装置
104は次のNCデータをテープリーダ106をして読
みとらせリ107に記憶さrしているNCデータがサブ
プログラム呼出命令であれば処理装置104は以下の処
理を実行する。すなわち、まずデータメモリ107に記
憶されてbる□変換パラメータを座標、変換ユニ゛ット
112に転送してレジスタ112aK記憶させる。
In addition, the pulse distributor 108Fi monitors whether the number Nx of distributed pulses Xp in the X-axis direction and the number Ny of distributed pulses Yp in the Y-axis direction are equal to ΔXi and Δyi, respectively, while performing pulse distribution calculations. Δxi, N
When y = Δyi, a pulse distribution completion signal DEN is output to the processing device 104. Accordingly, the processing device 104 has ΔXi, Δyi
The current position Xal ya is updated by integrating (x
a+Δx i-+xa, ya+Δyi-+ya),
It is determined whether the tool or the wire electrode has reached the target position, and if it has not reached the target position, the next movement amount data Δxi+
1. Δyi+1 (actually Δxi=ΔX 1 + '
+Δyi−Δyi+1) is input to the pulse distributor 108. Thereafter, similar processing is performed, and when the tool or wire electrode reaches the target position along the command path, the processing device 104 causes the tape reader 106 to read the next NC data and store it in the memory 107. If the currently running NC data is a subprogram call instruction, the processing device 104 executes the following process. That is, first, the □ conversion parameters stored in the data memory 107 are transferred to the coordinate conversion unit 112 and stored in the register 112aK.

しかる後、サブプログラム呼出命令が特定するサブプロ
グラムのNCデータを1ブロツクづつサブプログラムメ
モリ11]1から読み出して座標変換ユニット112に
入力する。座標変換ユニット112はレジスタ112a
に記憶されている変換パラメータを参照し、これが回転
パラメータであればサブプログラムを構成するNCデー
タに対し以下の座標変換処理を施す。尚、X + )’
 + l * jはそれぞれサブプログラムを構成する
NCデータのうちワードアドレスX、Y、I、Jに続く
数値(インクリメンタル値)であり、”l 、7 + 
1’ + j’は変換後の数値である。
Thereafter, the NC data of the subprogram specified by the subprogram call instruction is read one block at a time from the subprogram memory 11 ] 1 and input to the coordinate conversion unit 112 . The coordinate conversion unit 112 has a register 112a.
The conversion parameters stored in the subprogram are referred to, and if the conversion parameters are rotation parameters, the following coordinate conversion processing is performed on the NC data constituting the subprogram. In addition, X + )'
+ l * j are the numerical values (incremental values) following the word addresses X, Y, I, and J of the NC data that constitute the subprogram, and "l, 7 +
1'+j' is the numerical value after conversion.

即ち、回転パラメータが Qθ であれば(θは回転角) が成立する。従って、座標変換ユニット112はサブプ
ログラムから読みとったNCデータが直線データであれ
ば(5)式の変換処理を行ない、又円弧データであれば
(5)及び(6)式の変換処理を行なう。変換処理によ
り得られた変換値x’ 、y’ l l’ 、j’は処
理装置104によシ読みとられ、該処理装置104は/
That is, if the rotation parameter is Qθ (θ is the rotation angle), the following holds true. Therefore, the coordinate conversion unit 112 performs the conversion process of equation (5) if the NC data read from the subprogram is linear data, and if the NC data read from the subprogram is circular data, it performs the conversion process of equations (5) and (6). The converted values x', y' l l', j' obtained by the conversion process are read by the processing device 104, and the processing device 104
.

、/、 i’+ j/を用いて通常の直線切削処理或い
は円弧切削処理を行なう。たとえば直線デ〜りであ11
ば前述の(1)〜(4)の処理を行なってΔχi、Δy
1 をパルス分配器108に出力し、以後同様な処理を
行なってサブプログラム形状を06回転きせてなる回転
コピー形状の加工が行われる。
, /, i'+j/ is used to perform normal straight line cutting processing or circular arc cutting processing. For example, in a straight line 11
For example, by performing the processes (1) to (4) above, Δχi, Δy
1 is outputted to the pulse distributor 108, and the same processing is performed thereafter to process a rotational copy shape obtained by rotating the subprogram shape 06 times.

座標変換ユニット112はレジスタ112aに記憶され
ている変換パラメータが拡大縮小パラメータk であれば、 の変換処理を行ない、又変換パラメータがX軸に平行な
直線を対称軸とするミラーパラメータO であれば、 の変換処理を行ない、更に変換パラメータがY軸に平行
な直線を対称軸とするミラー−々ラメータ1 であれば の変換処理を行ない、以後処理装置1104は回転・く
ターンと同一の処理を行なう。尚、以上は単一の変換パ
ラメータが指令されている場合であるが、回転パラメー
タと繰返えしパラメータとの複合である一回転繰返パラ
メータ QθLl が指令されると座標変換ユニ、、ト112は以下の処理
を行なう。すなわち、処理装置104はサブプログラム
データを順次読みとシ、該データに伺等の変換処理を施
すことなく単純コピー加工を実行する。単純コピー加工
が終るとサブプログラムよシM99が読み取られる。M
99の読み取りにより座標変換ユニット112は /−1→l          α3 の演算を実行すると共に a+1→a(但し、aの初期値は零)aるa、・〃→θ
             α均の演算を行ない、しか
る後処理装置104から与えられるNCデータに対しく
5)、(6)式の変換処理を施し、得られたx’ 、y
’ + i’ + j’を用いて1回目の回転コピー加
工を行なう。1回目の回転コピー形状の加工が完了すれ
ば、換言すればサブプログラムの末尾におかれているM
99が読みとられ\ば座標変換ユニット112はレジス
タ112aに記憶されているlが1かどうかを判別し、
1でなければ(至)〜(至)式の演算後サブプログラム
のNCデータを要求し、該データに対しく5)、 (o
)式を用いて同様の座標変換処理を施し回転コピー形状
の加工を行なう。以後回転繰返コピー形状の加工が進行
して7=jとなればθ°づつ回転した1個のサブプログ
ラム形状の加工が終了したことになる。
If the transformation parameter stored in the register 112a is a scaling parameter k, the coordinate transformation unit 112 performs the transformation process, and if the transformation parameter is a mirror parameter O whose symmetry axis is a straight line parallel to the X axis, , and further performs a conversion process if the conversion parameter is a mirror parameter 1 whose axis of symmetry is a straight line parallel to the Y axis, and thereafter the processing unit 1104 performs the same process as rotation/cutting. Let's do it. Note that the above is a case where a single transformation parameter is commanded, but when a one-rotation repetition parameter QθLl, which is a combination of a rotation parameter and a repetition parameter, is commanded, the coordinate transformation unit 112 performs the following processing. That is, the processing device 104 sequentially reads the subprogram data and executes a simple copy process without performing any conversion processing such as conversion on the data. When the simple copy processing is completed, the subprogram M99 is read. M
Upon reading 99, the coordinate transformation unit 112 executes the calculation /-1→l α3 and a+1→a (however, the initial value of a is zero) a r a, ・〃→θ
After calculating the α average, the NC data given from the post-processing device 104 is subjected to the conversion process of equations 5) and (6), and the obtained x', y
Perform the first rotational copy process using '+i'+j'. When the first rotational copy shape processing is completed, in other words, the M placed at the end of the subprogram
99 is read, the coordinate conversion unit 112 determines whether l stored in the register 112a is 1,
5), (o
) is used to perform similar coordinate transformation processing to process the rotated copy shape. Thereafter, as the machining of the repeatedly rotated copy shape progresses and 7=j, it means that the machining of one subprogram shape rotated by θ° has been completed.

尚、パターンとし、ては上記設例に限らずその他回転・
拡大縮小パターン、回転εラーパターン、ミラー拡大・
縮小パターンなどの接合パターンも考えられるがその説
明は省略する。
In addition, the pattern is not limited to the above example, but other rotations and
Enlargement/reduction pattern, rotational epsilon pattern, mirror enlargement/
A bonding pattern such as a reduced pattern may also be considered, but its explanation will be omitted.

M99の読みとりによシサブプログラム処理が終了すれ
ば(但し、繰返し回数が指令されているときはn=1 
)、処理装置104は以後NCテープ102から読み取
ったNCデータに基いてNC処理を行なう。
If the subprogram processing is completed by reading M99 (however, if the number of repetitions is commanded, n=1)
), the processing device 104 thereafter performs NC processing based on the NC data read from the NC tape 102.

尚、以上の説明では座標変換ユニット112を設は座標
変換処理を行わせたが処理装置104が座標変換を行な
うように構成してもよい。
In the above description, the coordinate transformation unit 112 is used to perform the coordinate transformation processing, but the processing device 104 may be configured to perform the coordinate transformation.

発明の効果 以上、本発明によればサブプログラム呼出命令止具に変
換パラメータをメインプログラムに挿入し、てオキ、該
変換パラメータの指示に基いてサブプログラムのNCデ
ータが特定する形状を座標変換し、座標変換により得ら
れた形状の数値制御加工を行なうように構成したから、
°実際の加工形状がサブプログラム形状と姿勢が異なっ
ても、或いは大きさが異なってもサブプログラム呼出命
令に変換パラメータを付加するだけで該姿勢或いは大き
さの異なる形状のプロゲラξングを簡単に、且つ短時間
で行なうことができる。
In addition to the effects of the invention, according to the present invention, a conversion parameter is inserted into the main program in the subprogram call command stopper, and then the shape specified by the NC data of the subprogram is subjected to coordinate transformation based on the instruction of the conversion parameter. , since it was configured to perform numerical control processing of the shape obtained by coordinate transformation,
° Even if the actual machining shape has a different orientation or size from the subprogram shape, you can easily create a progera ξing of a shape with a different orientation or size by simply adding a conversion parameter to the subprogram call command. , and can be done in a short time.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明に係るプログラム構造説明図、第2図は
本発明によシ種々のコピー形状を加工するだめのプログ
ラム説明図、第3図は回転繰返しコピーにより歯車を加
工するプログラム説明図、第4図は本発明の実施例ブロ
ック図、第5図は処理の流れ図、である。 101・・・サブプログラムメモリ、102・・・NO
テープ、103・・・操作盤、104・・・処理装置、
105・・・ROM107・・・データメモリ、108
・・・パルス分配器、112・・・座標変換ユニット 特許出願人 ファナソク株式会社 代理人 弁理士 辻     實 外1名
Fig. 1 is an explanatory diagram of a program structure according to the present invention, Fig. 2 is an explanatory diagram of a program for machining various copy shapes according to the present invention, and Fig. 3 is an explanatory diagram of a program for machining gears by repeated rotation copying. , FIG. 4 is a block diagram of an embodiment of the present invention, and FIG. 5 is a flowchart of processing. 101...Subprogram memory, 102...NO
tape, 103... operation panel, 104... processing device,
105...ROM107...Data memory, 108
...Pulse distributor, 112...Coordinate transformation unit Patent applicant: Fanasoku Co., Ltd. Agent: Patent attorney: 1 person: Sanegai Tsuji

Claims (1)

【特許請求の範囲】[Claims] 所定形状の数値制御加工を実行させるためのプログラム
をサブプログラムとしてメモリに記憶させておくと共に
、メインプログラム中にサブプログラム呼出命令を挿入
しておき該サブプログラム呼出命令によシメモリよシサ
ププログラムを呼出して数値制御加工を行なう数値制御
加工方法において、前記サブプログラム呼出命令と共に
変換パラメータをメインプログラム中に挿入しておき、
該変換パラメータの指示に基いてサブプログラムが特定
する形状を座標変換し、座標変換して得られる形状の数
値制御加工を行なうことを特徴とする数値制御加工方法
A program for executing numerically controlled machining of a predetermined shape is stored in the memory as a subprogram, and a subprogram call instruction is inserted into the main program, and the subprogram call instruction is used to load the system program from the memory. In a numerical control machining method that performs numerical control machining by calling, a conversion parameter is inserted into the main program together with the subprogram call instruction,
A numerically controlled machining method, characterized in that a shape specified by a subprogram is subjected to coordinate transformation based on instructions of the transformation parameter, and numerically controlled machining of the shape obtained by the coordinate transformation is performed.
JP58041857A 1983-03-14 1983-03-14 Numerical control working method Pending JPS59167712A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58041857A JPS59167712A (en) 1983-03-14 1983-03-14 Numerical control working method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58041857A JPS59167712A (en) 1983-03-14 1983-03-14 Numerical control working method

Publications (1)

Publication Number Publication Date
JPS59167712A true JPS59167712A (en) 1984-09-21

Family

ID=12619914

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58041857A Pending JPS59167712A (en) 1983-03-14 1983-03-14 Numerical control working method

Country Status (1)

Country Link
JP (1) JPS59167712A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994017460A1 (en) * 1993-01-29 1994-08-04 Fanuc Ltd Method for writing machining program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5663610A (en) * 1979-10-30 1981-05-30 Citizen Watch Co Ltd Method and apparatus for repetitive processing of numerical control machine tool
JPS57189206A (en) * 1981-05-18 1982-11-20 Fanuc Ltd Numerical control system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5663610A (en) * 1979-10-30 1981-05-30 Citizen Watch Co Ltd Method and apparatus for repetitive processing of numerical control machine tool
JPS57189206A (en) * 1981-05-18 1982-11-20 Fanuc Ltd Numerical control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994017460A1 (en) * 1993-01-29 1994-08-04 Fanuc Ltd Method for writing machining program
US5773950A (en) * 1993-01-29 1998-06-30 Fanuc Ltd. Program creating method for uniform-shape machining

Similar Documents

Publication Publication Date Title
KR920005251B1 (en) Numerical controlling method for high dynamic processor
JP5009010B2 (en) Numerical controller
WO2010032284A1 (en) Numerical controller
JPS59124544A (en) Method of machining under numerical control
EP0356522A1 (en) Involute interpolating method
EP0795375B1 (en) Laser machining apparatus and laser machining method
JPS59167712A (en) Numerical control working method
JPH03288908A (en) Gear pitch error correcting system for numerical controller
EP0200788B1 (en) Method of returning rotary shaft to reference point
EP0362391B1 (en) Involute interpolating method
JPH06110523A (en) Freely curved surface work data preparing method
JP3294843B2 (en) Robot posture interpolation method
JP2753369B2 (en) Numerical control unit
JPS6145306A (en) Control system of multi-joint robot
JP2752784B2 (en) Robot posture correction method
JPH0732279A (en) Robot position teaching method
JPH0218603A (en) Numerical controller
Chai et al. A DDA parabolic interpolator for computer numerical control of machine tools
JPS60222904A (en) Control method of coordinate system conversion of numerically controlled lathe
JPS62120995A (en) Method of preventing interference in robot
JPS63105864A (en) Method and device for nc machining
JP2001175315A (en) Numerical controller having coordinate transform part allowed to be applied to plural kinds of machine tools
JPH05108134A (en) Coordinates converting method for dividing correspondence of main axis
JPS59100984A (en) Interpolation method of trigonometrical function
JPS62293312A (en) Numerical controller