JPH0685129B2 - Numerical control device that can change data in subprogram - Google Patents
Numerical control device that can change data in subprogramInfo
- Publication number
- JPH0685129B2 JPH0685129B2 JP62024665A JP2466587A JPH0685129B2 JP H0685129 B2 JPH0685129 B2 JP H0685129B2 JP 62024665 A JP62024665 A JP 62024665A JP 2466587 A JP2466587 A JP 2466587A JP H0685129 B2 JPH0685129 B2 JP H0685129B2
- Authority
- JP
- Japan
- Prior art keywords
- machining
- program
- data
- storage device
- standard
- 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
Links
- 238000003754 machining Methods 0.000 claims description 63
- 238000012545 processing Methods 0.000 claims description 30
- 238000013500 data storage Methods 0.000 claims description 17
- 230000033001 locomotion Effects 0.000 claims description 6
- 238000005553 drilling Methods 0.000 description 23
- 230000015654 memory Effects 0.000 description 19
- 238000010079 rubber tapping Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 4
- FFBHFFJDDLITSX-UHFFFAOYSA-N benzyl N-[2-hydroxy-4-(3-oxomorpholin-4-yl)phenyl]carbamate Chemical compound OC1=C(NC(=O)OCC2=CC=CC=C2)C=CC(=C1)N1CCOCC1=O FFBHFFJDDLITSX-UHFFFAOYSA-N 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
Landscapes
- Numerical Control (AREA)
Description
【発明の詳細な説明】 [産業上の利用分野] 本発明は、ドリル装置又はタップ装置に関する。更に詳
しくは、ドリル加工、タップ加工などの加工に用いられ
る固定サイクル機能を有する数値制御装置に関する。TECHNICAL FIELD The present invention relates to a drill device or a tap device. More specifically, the present invention relates to a numerical control device having a fixed cycle function which is used for drilling, tapping and the like.
[従来の技術] 多数の穴を加工するため、各穴の位置をX、Y軸でプロ
グラムし、更に深さ寸法すなわちZ軸も各々穴ごとに加
工プログラムを組んでいる。この穴加工が同一穴であれ
ば、各々のX、Y軸を決めた後、予めプログラムされた
固定サイクルを呼び出して、すなわちAPT(Automatical
ly Programmed Tools)であればマクロ(MACRO)、ルー
プ(LOOP)、コピー(COPY)などの指令文で穴加工を実
行している。[Prior Art] In order to machine a large number of holes, the position of each hole is programmed by the X and Y axes, and the depth dimension, that is, the Z axis is also programmed for each hole. If the drilling is the same hole, after determining each X and Y axis, a preprogrammed fixed cycle is called, that is, APT (Automatical
In the case of ly Programmed Tools), hole processing is executed by command statements such as macro (MACRO), loop (LOOP), and copy (COPY).
しかし、次に示すような工作物の穴加工の場合前記のよ
うな固定サイクルが使えない。第2図に示すものはその
工作物の平面図であり、第3図はその断面の展開図であ
る。8個のドリル穴と、各々にタップ加工を行うもので
ある。各穴I〜VIIIは、O点を中心に同一円周の等間隔
位置にある。ドリル穴の深さはIIとVI番目が他の穴の深
さと相違し、深さ寸法c(第1図のデータ例で15mm)、
e(同25)である。タップ穴はIII、VIのみ深さが寸法
e(同10)、f(同18)と違う。従って、ドリル加工
は、II、VIを除いて標準ドリル深さ寸法a(同20)で加
工し、タップ加工は、III、VIの加工を除いて標準タッ
プ深さb(同15)となる。However, in the case of drilling a workpiece as described below, the above fixing cycle cannot be used. What is shown in FIG. 2 is a plan view of the workpiece, and FIG. 3 is a development view of the cross section. Eight drill holes and taps are made on each. The holes I to VIII are located at equal intervals on the same circumference with the point O as the center. The depth of the drill hole is different from the depth of the other holes in II and VI, and the depth dimension c (15 mm in the data example of FIG. 1),
e (ibid. 25). Only III and VI tap holes have different depths e (10) and f (18). Therefore, the drilling is performed with the standard drill depth a (20) except II and VI, and the tapping is the standard tap depth b (15) except III and VI.
このような工作物の場合、ドリル加工の穴はII、VIの位
置はサブプログラムすなわち固定サイクルにすることが
できない。そのため、プログラムは長くなるとともに、
1箇所でも長さ方向の変更があった時には加工プログラ
ム全体の変更が必要となる。また、サブプログラムを使
う場合には1箇所でも変更があるとそのサブプログラム
は作り直しとなっている。例えば、このプログラムは次
のように組み込んでいた。センタードリル加工の場合、
G81 X Y R Z F Lo;(ただし、G81はセンタ
ードリル加工に好適な固定サイクルを読出すための指令
(Gコード)を意味し、X、Y、Zはそれぞれ軸の名称
であり、座標上の位置を示し、Rは切削開始点、Fは送
り量、Loは固定サイクルの繰返し回数を示す。) このプログラムを各穴I〜VIIIごとに各々組んでいる。
前記加工例では8ステップとなる。同様のプログラムを
ドリル加工、タップ加工にも穴単位に前記センタドリル
同様のプログラムを組んでいる。For such workpieces, the drilled holes II and VI positions cannot be subprogrammed or fixed cycles. Therefore, as the program gets longer,
If there is a change in the length direction even at one place, it is necessary to change the entire machining program. Also, when using a subprogram, if there is a change in even one place, the subprogram is remade. For example, the program included: For center drilling,
G81 X Y R Z F Lo; (However, G81 means a command (G code) for reading a fixed cycle suitable for center drilling, X, Y, and Z are axis names, respectively, and indicate a position on coordinates, R; Indicates the cutting start point, F indicates the feed amount, and Lo indicates the number of repetitions of the fixed cycle.) This program is set for each of the holes I to VIII.
In the processing example, the number of steps is eight. For drilling and tapping the same program, a program similar to the center drill is set up for each hole.
[発明が解決しようとする課題] このようなプログラムは繁雑で長くなってしまうし、必
然的にプログラムミスも増加する。本発明は加工プログ
ラムを短く簡素化し、かつプログラムミスをオペレータ
がすることが少ない数値制御装置を提供することにあ
る。[Problems to be Solved by the Invention] Such a program is complicated and long, and inevitably increases program errors. An object of the present invention is to provide a numerical control device in which a machining program is shortened and simplified, and an operator does not make a program mistake.
[課題を解決するための手段] 前記課題を解決するために次のような手段を採る。[Means for Solving the Problems] To solve the above problems, the following means are adopted.
工具と工作物との相対的運動が互いに直交するX、Y、
Z軸を有する工作機械の数値制御装置において、 前記工作物の複数の加工箇所を、順次、加工するための
加工プログラムが記憶されている加工プログラム記憶装
置(20a)と、 前記加工プログラムの特定の指令ブロックにより呼び出
されるとともに、前記工作物の複数の加工箇所を繰り返
し加工するために定型的な動作をさせるためのサブプロ
グラムを記憶しているサブプログラム記録装置(20b)
と、 前記サブプログラムで定型的な動作をさせるための標準
加工位置データを記憶している標準加工データ記憶装置
(5)と、 前記サブプログラムを実行する際、前記定型的動作以外
の加工動作を行うために前記加工プログラムより読み取
られた前記加工箇所番号に対応した特定位置データであ
る加工データを記憶している特定加工データ記憶装置
(21)と、 前記サブプログラムによる前記複数の加工箇所の加工回
数を計数する加工回数カウンタ(2)と、 前記サブプログラムを実行する際、前記サブプログラム
の定型的な動作をさせるか、前記加工データ記憶装置に
記憶されている加工データを加味したサブプログラムを
動作させるのかを、前記加工箇所番号と前記加工回数と
の比較で判別する判別手段(3)と、 前記各記憶装置、前記加工回数カウンタ、前記判別手段
を統轄制御する中央処理装置とを有し、 各々の加工箇所を、前記加工データ記憶装置に記憶され
ている特定加工データまたは前記標準加工データ記憶装
置に記憶されている標準加工データを前記判別手段を介
して選択的に読みだし、この読みだしたデータに従って
前記サブプログラムの実行を可能にしたことを特徴とす
るサブプログラムのデータ変更可能な数値制御装置であ
る。X, Y, where the relative movements of the tool and the workpiece are orthogonal to each other
In a numerical control device for a machine tool having a Z-axis, a machining program storage device (20a) in which a machining program for sequentially machining a plurality of machining points of the workpiece is stored; A subprogram recording device (20b) which is called by a command block and stores a subprogram for performing a routine operation for repeatedly machining a plurality of machining points of the workpiece.
A standard machining data storage device (5) that stores standard machining position data for performing a routine operation in the subprogram; and a machining operation other than the routine operation when executing the subprogram. A specific machining data storage device (21) that stores machining data that is specific position data corresponding to the machining location number read from the machining program to perform the machining of the plurality of machining locations by the subprogram. A machining number counter (2) that counts the number of times, and a sub-program that performs a standard operation of the sub-program when the sub-program is executed or that takes into consideration the machining data stored in the machining-data storage device. Discriminating means (3) for discriminating whether or not to operate by comparing the machining location number with the machining frequency; each of the storage devices; A machining number counter and a central processing unit for controlling and controlling the discriminating means are provided, and each machining location is stored in specific machining data stored in the machining data storage device or in the standard machining data storage device. A numerical control device capable of changing data of a subprogram, wherein standard machining data is selectively read through the discriminating means and the subprogram can be executed according to the read data.
[作用] 工具と工作物との相対的運動が互いに直交するX,Y,Z軸
を有する工作機械の数値制御装置において、記憶された
加工のための加工プログラムを実行し、この加工プログ
ラムの中にサブプログラムがあってドリル加工、タップ
加工などの定型的な動きをさせ、標準のZ軸の値のとき
は標準Z軸の移動値を標準加工データ記憶装置に記憶さ
せ、定型的な動き以外は別のZ軸の値を記憶する特定デ
ータ記憶装置に記憶させ、前記加工プログラムを実行す
るときに前記サブプログラムと前記加工データ記憶装置
内のZ軸の加工データとを判別手段を介して選択的に実
行させる。[Operation] In a numerical control device for a machine tool having X, Y, and Z axes in which relative motions of a tool and a workpiece are orthogonal to each other, execute a stored machining program for machining, and execute the machining program There is a sub-program in the machine to perform routine movements such as drilling and tapping. When the standard Z-axis value is used, the standard Z-axis movement value is stored in the standard machining data storage device. Is stored in another specific data storage device that stores another Z-axis value, and when the machining program is executed, the sub-program and the Z-axis machining data in the machining data storage device are selected through the discriminating means. To execute it.
[実施例] 以下、本発明の一実施例を図面にしたがって説明する。[Embodiment] An embodiment of the present invention will be described below with reference to the drawings.
第1図に示すものは、本発明の一実施例の数値制御装置
を示す機能ブロック図である。同図は、CPU(中央処理
装置)につながる中央のバスを挾んで左方は本実施例の
数値制御装置が各記憶装置に記憶している各種データ、
プログラムを示し、右方はこのデータ、プログラムを実
行する制御装置を図式的示す。数値制御装置内の加工プ
ログラム記憶装置20には加工プログラムが記憶されてい
る。この加工プログラムにはメインプログラムとサブプ
ログラムがある。プログラム記憶装置20は、メインプロ
グラムを記憶している加工プログラム記憶装置20aとサ
ブプログラムを記憶しているサブプログラム記憶装置20
bとからなっている。FIG. 1 is a functional block diagram showing a numerical controller according to an embodiment of the present invention. In the same figure, across the central bus connected to the CPU (central processing unit), the left side shows various data stored in each storage device by the numerical control device of this embodiment,
A program is shown, and the data on the right side is a diagrammatic representation of a control device for executing the program. A machining program is stored in the machining program storage device 20 in the numerical controller. This machining program has a main program and a sub program. The program storage device 20 includes a machining program storage device 20a that stores a main program and a subprogram storage device 20 that stores a subprogram.
It consists of b and.
メインプログラムからの特定の指令でサブプログラムを
適宜呼び出せる。本実施例ではG81がセンタドリル加工
又はドリル加工を行うための加工プログラム(固定サイ
クル)であるサブプログラムを呼び出すときの指令であ
る。同様にG84はタップ加工のためのサブプログラムを
呼び出す指令である。標準のドリル加工であれば、標準
のドリル深さZZが記憶されており、標準値の加工深さで
加工が実行される。同様に標準のセンタドリル加工、タ
ップ加工であれば標準の加工深さZZで加工が遂行され
る。これらの標準の加工深さ、すなわちZ軸方向の送り
量を各々記憶する標準加工データ記憶装置(以下、標準
メモリーと記載する。)5を有している。Subprograms can be called as appropriate with specific commands from the main program. In this embodiment, G81 is a command for calling a sub-program that is a machining program (fixed cycle) for performing center drilling or drilling. Similarly, G84 is a command to call a subprogram for tap processing. In the case of standard drilling, the standard drilling depth ZZ is stored, and the drilling is executed at the standardized working depth. Similarly, in the case of standard center drilling and tapping, processing is performed with standard processing depth ZZ. It has a standard machining data storage device (hereinafter referred to as a standard memory) 5 for storing each of these standard machining depths, that is, the feed amount in the Z-axis direction.
また、特定加工データ記憶装置21aは、標準の加工深さZ
Zと異なる穴を加工するための特定加工データである2
種類のデータを保持記憶しているメモリーである。2種
類のデータとは、標準の加工深さと違う寸法を有する穴
の加工箇所を示すi、このiの加工箇所の加工深さ寸法
を示すJを有している。Kは、標準の加工深さ以外のデ
ータの数(穴の数)を示す。同様にタップ加工のための
標準の加工深さZZと異なる加工深さの穴をタップするた
めの特定加工データである2種類のデータ(i,j)を、
特定加工データ記憶装置21bが保持記憶している。この
データの記憶は特定加工データ記憶装置21(以下、特定
メモリーと記載する。)内に各々書き込まれて保持され
ているが、外部キーボードから適宜必要に応じて書き変
えることもできるが本実施例ではM98の指令で書き変え
できるものである。Further, the specific processing data storage device 21a has a standard processing depth Z
Specific machining data for machining a hole different from Z 2
This is a memory that holds and stores types of data. The two types of data include i, which indicates a processing portion of a hole having a dimension different from the standard processing depth, and J, which indicates the processing depth dimension of the processing portion of this i. K indicates the number of data (number of holes) other than the standard working depth. Similarly, two types of data (i, j), which are specific machining data for tapping holes with a machining depth different from the standard machining depth ZZ for tapping,
The specific processing data storage device 21b holds and stores it. The storage of this data is written and held in a specific processed data storage device 21 (hereinafter, referred to as a specific memory), but it can be rewritten as needed from an external keyboard, but in the present embodiment. Then, it can be rewritten by the command of M98.
第1図の右方上方には、NC位置決め制御装置が示してあ
る。判別回路1は、M99の指令でサブルーチン終了を判
断する判別回路である。この判別回路1の出力はインバ
ータ17を介して、ANDゲート14,15,16に入力される。こ
のサブルーチン終了の判断でドリル加工又はタップ加工
の固定サイクルすなわちサブルーチンが終了したか判断
する。An NC positioning control device is shown on the upper right side of FIG. The discriminating circuit 1 is a discriminating circuit for discriminating the end of the subroutine by the command of M99. The output of the discrimination circuit 1 is input to the AND gates 14, 15, 16 via the inverter 17. By the determination of the end of this subroutine, it is determined whether or not the fixed cycle of drilling or tapping, that is, the subroutine is completed.
カウンタ2はG81(センタドリル加工、ドリル加工用固
定サイクルのためのGコード)又はG84(タップ加工用
固定サイクルのためのGコード)等で呼び出されたサブ
プログラムによる加工回数Aをカウントするものであ
る。言い換えると前述した加工例の穴の何番目を加工し
たかを示す数である。このカウンタ2は、ANDゲート14
の入力信号で作動し、ANDゲート15からの入力信号を得
てAをカウントする。ANDゲート14は、ORゲート11から
の入力と、前記インバータ17の入力で出力する。The counter 2 counts the number of machining times A by a subprogram called by G81 (G code for fixed cycle for center drilling and drilling) or G84 (G code for fixed cycle for tapping). is there. In other words, it is a number indicating which number of the hole in the processing example described above was processed. This counter 2 has an AND gate 14
The input signal from the AND gate 15 is obtained to count A. The AND gate 14 outputs the input from the OR gate 11 and the input of the inverter 17.
この意味は、前記G81、G84が実行されかつインバータ17
からの出力があるときすなわち、M99の実行でないと判
別されたときのみ出力する。同様に、ANDゲート15も加
工回数を出力する。カウンタ2でカウントされた結果
は、判別器3に出力される。This means that G81 and G84 are executed and the inverter 17
Output only when there is output from, that is, when it is determined that M99 is not executed. Similarly, the AND gate 15 also outputs the number of times of machining. The result counted by the counter 2 is output to the discriminator 3.
判別器3は、前記加工箇所(i)をORゲート13、ANDゲ
ート16を介して読み込んで加工回数Aと同一であるか否
かを判断する。G81、G84が実行されているときANDゲー
ト16は特定メモリー21a(G81)、特定メモリー21b(G8
4)のK番目のiを入力する。判別器3で設定されたi
とカウンタ2の内容Aとが一致すると、特定メモリー21
a(又は21b)の設定値jすなわち標準と違う加工深さj
を呼び出してメモリー4に設定し、NC装置のサーボ機構
にZ軸方向の移動指令を与える。判別器3で設定値iで
ないと判断されれば、標準メモリー5の標準の加工深さ
ZZを取り込み、その値をサーボ機構に指令する。The discriminator 3 reads the processing location (i) through the OR gate 13 and the AND gate 16 and determines whether the processing location (i) is the same as the processing number A or not. When G81 and G84 are executed, the AND gate 16 uses the specified memory 21a (G81) and the specified memory 21b (G8
4) Input the K-th i. I set by the discriminator 3
When the contents of the counter 2 and the contents A of the counter 2 match, the specific memory 21
Set value j of a (or 21b), that is, machining depth j different from standard
Is called and set in the memory 4, and a movement command in the Z-axis direction is given to the servo mechanism of the NC unit. If the discriminator 3 determines that the set value is not i, the standard machining depth of the standard memory 5
ZZ is taken in and the value is instructed to the servo mechanism.
第4図は、本発明の数値制御装置で加工する時の工具先
端軌跡を示す一例である。工具は最初に穴11を明けるた
めにイニシャル点に早送りされる。このイニシャル点と
は、工作物に工具が衝突などを生じないように一端停止
する点である。このイニシャル点の位置は、ユーザが自
由に選べる点であるが、本例では次の加工穴12へ進とき
障害になるので、イニシャル点は加工穴12の面より上方
にセットしてある。このイニシャル点は、本実施例では
G98の指令でこの位置に工具先端が位置するように移動
する。FIG. 4 is an example showing a tool tip locus when machining is performed by the numerical controller of the present invention. The tool is first fast-forwarded to the initial point to drill the hole 11. The initial point is a point at which the tool once stops so that the tool does not collide with the workpiece. The position of this initial point is a point that can be freely selected by the user, but in this example, the initial point is set above the plane of the machined hole 12 because it becomes an obstacle when advancing to the next machined hole 12. In this embodiment, this initial point is
The tool tip moves to this position according to the G98 command.
イニシャル点から更に加工穴に近い位置がR点である。
R点は切削送りの開始点である。通常工作物の表面から
ドリルでn=2mm、タップでn=5mm程度にセットされて
いる。このR点は、ドリル加工、タップ穴加工のサブプ
ログラムを実行する開始点でもある。本実施例では、G9
9の指令でこのR点に工具先端が位置するように移動す
る。なお、イニシャル点、R点は同一の点にセットして
も良い。The position closer to the machined hole from the initial point is the R point.
Point R is the starting point of cutting feed. Normally, the drill is set to n = 2mm and the tap is set to n = 5mm from the surface of the workpiece. This R point is also the starting point for executing the subprograms for drilling and tapping. In this example, G9
With the command of 9, move so that the tool tip is located at this R point. The initial point and the R point may be set at the same point.
第5図に示すものは、本実施例の数値制御装置のZ値変
更の作動を示すフローチャートである。このフローチャ
ートは、ドリル加工、タップ加工とも共通のフロー図で
ある。ステップで引数iの値を特定メモリー21a,21b
内に各々記憶させる。本実施例では10個の変動データを
記憶させることができる。FIG. 5 is a flowchart showing the operation of changing the Z value of the numerical controller according to this embodiment. This flowchart is a flow chart common to both drilling and tapping. In step, the value of argument i is specified memory 21a, 21b
Make each store inside. In this embodiment, 10 pieces of fluctuation data can be stored.
同様にjすなわち加工深さを10個記憶させる。すなわ
ち、G81のブロックに続く、ドリル加工用のM98P△△△
△ i2 J−15 i6 J−25;を読み取ると、第1の特
定メモリー21aに番号(k)順に1番目iのデータ2、
Jのデータ15、2番目にiのデータ6、Jのデータ25を
記憶させる。この記憶は制御装置に設けられたキーボー
ドから入力してもよい。同様にG84…;のブロックに続
くタップ加工用のM98 P△△△△ i3 J−10 i6
J−18;を読み取り第2のメモリ21bに1番目に3,10、2
番目に6,18を記憶させる。Similarly, j, that is, 10 processing depths are stored. That is, following the G81 block, M98P for drilling △△△
When reading i 2 J-15 i6 J-25 ;, the first i-th data 2 in the number (k) order in the first specific memory 21a,
The data 15 of J, the data 6 of i at the second position, and the data 25 of J are stored. This memory may be input from a keyboard provided in the control device. Similarly, M98 P △ △ △ △ i3 J-10 i6 for tap processing following the G84…; block
J-18; is read into the second memory 21b, which is 3, 10, 2 first.
Then remember 6,18.
ステップで標準のドリル深さと、標準のタップ深さを
G81…Z−5…;およびG84…Z−15…;より読取り、Z
−5,Z−15の値を標準メモリー5にセットする。ステッ
プでKカウンタを1にセットする。ステップでAカ
ウンタ(2)に1をセットする。ステップでは第1,第
2の特定メモリー21a,21bにセットされたi、Jのデー
タが在るか否かの判断する。言い換えると、標準のドリ
ル深さ、標準のタップ深さ以外の加工箇所を有している
か否かを判断する。このステップで設定値ありと判断
されると、ステップで加工回数Aが最初の番号(K=
1)に設定したiのデータと一致するか否かを判断す
る。前記加工例(第3図)でいうと、ドリル加工の穴I
のときAが1であり、iは2であるので、一致せず標準
加工深さへと進む。Standard drill depth and standard tap depth in steps
G81 ... Z-5 ...; and G84 ... Z-15 ...; read, Z
The values of -5 and Z-15 are set in the standard memory 5. The K counter is set to 1 in step. At step S1, the A counter (2) is set to 1. In the step, it is judged whether or not the data of i and J set in the first and second specific memories 21a and 21b exist. In other words, it is determined whether or not there is a processed portion other than the standard drill depth and the standard tap depth. If it is determined in this step that there is a set value, the number of machining times A is the first number (K =
It is determined whether or not it matches the i data set in 1). Speaking of the processing example (FIG. 3), the hole I for drilling is shown.
In this case, A is 1 and i is 2, so that they do not match and the process proceeds to the standard machining depth.
穴IIであれば、Aが2でiが2であるから一致し、ステ
ップで設定された加工深さ(J)を第1の特定メモリ
ー(ドリル)21a内の設定値からデータ(例えばiが2
の場合にJの15の加工深さデータ)を読み取り、メモリ
4にセットする。次にステップでKカウンタに1を加
える。ステップで穴のX,Yの位置を位置決めし、加工
処理に移る。この加工処理は、前記特定の加工深さデー
タにしたがって行われる。また、必要に応じてドリル加
工のための他のサブプログラムが用意され、このプログ
ラムにしたがって加工される。In the case of the hole II, since A is 2 and i is 2, the two coincide with each other, and the machining depth (J) set in the step is calculated from the set value in the first specific memory (drill) 21a (for example, i is Two
In the case of, the processing depth data of 15) is read and set in the memory 4. Next, in step, 1 is added to the K counter. The X and Y positions of the hole are positioned in steps, and the processing is started. This processing is performed according to the specific processing depth data. Further, other subprograms for drilling are prepared as necessary, and the drilling is performed according to this program.
加工が終了すると、ステップでサブルーチン終了の指
令M99が出て次のステップに進む。すなわちこのステッ
プは、8つの穴加工が終了したか否か判断する。終了し
ていなければステップに進みカウンタAに1を加工、
ステップに進み前記同様の動作を繰り返す。すべての
加工が終了すると、サブルーチン終了の信号が出てメイ
ンプログラムの次のステップに進む。When the machining is completed, the instruction M99 for ending the subroutine is issued in step and the process proceeds to the next step. That is, this step determines whether or not eight holes have been drilled. If not finished, proceed to step and process 1 in counter A,
The process proceeds to step and the same operation as described above is repeated. When all processing is completed, a signal indicating the end of the subroutine is issued and the process proceeds to the next step of the main program.
[発明の効果] 以上、詳記したように本発明の数値制御装置を使用する
と、プログラムが簡素化かつ短縮化されプログラムミス
もなく、メモリー容量も節約できる。[Effects of the Invention] As described above in detail, when the numerical control device of the present invention is used, the program is simplified and shortened, no program error occurs, and the memory capacity can be saved.
第1図は本発明の一実施例を示す数値制御装置の機能ブ
ロック図、第2図は本実施例の数値制御装置による加工
例を示す図、第3図は第2図は断面の展開図、第4図は
本実施例の数値制御装置の工具の軌跡を示す図、第5図
は第1図に示した数値制御装置の動作を示すフロー図で
ある。 1……サブルーチン終了判別器、2……カウンタ、3…
…判別器、4……標準以外の加工深さメモリー、5……
標準加工深さメモリーFIG. 1 is a functional block diagram of a numerical control device showing an embodiment of the present invention, FIG. 2 is a diagram showing an example of processing by the numerical control device of the present embodiment, FIG. 3 is a development view of a cross section. FIG. 4 is a diagram showing the trajectory of the tool of the numerical control device of this embodiment, and FIG. 5 is a flow chart showing the operation of the numerical control device shown in FIG. 1 ... Subroutine end discriminator, 2 ... Counter, 3 ...
… Discriminator, 4 …… Processing depth memory other than standard, 5 ……
Standard processing depth memory
Claims (1)
するX、Y、Z軸を有する工作機械の数値制御装置にお
いて、 前記工作物の複数の加工箇所を、順次、加工するための
加工プログラムが記憶されている加工プログラム記憶装
置(20a)と、 前記加工プログラムの特定の指令ブロックにより呼び出
されるとともに、前記工作物の複数の加工箇所を繰り返
し加工するために定型的な動作をさせるためのサブプロ
グラムを記憶しているサブプログラム記憶装置(20b)
と、 前記サブプログラムで定型的な動作をさせるための標準
加工位置データを記憶している標準加工データ記憶装置
(5)と、 前記サブプログラムを実行する際、前記定型的動作以外
の加工動作を行うために前記加工プログラムより読み取
られた前記加工箇所番号に対応した特定位置データであ
る加工データを記憶している特定加工データ記憶装置
(21)と、 前記サブプログラムによる前記複数の加工箇所の加工回
数を計数する加工回数カウンタ(2)と、 前記サブプログラムを実行する際、前記サブプログラム
の定型的な動作をさせるか、前記加工データ記憶装置に
記憶されている加工データを加味したサブプログラムの
動作をさせるのかを、前記加工箇所番号と前記加工回数
との比較で判別する判別手段(3)と、 前記各記憶装置、前記加工回数カウンタ、前記判別手段
を統轄制御する中央処理装置とを有し、 各々の加工箇所を、前記加工データ記憶装置に記憶され
ている特定加工データまたは前記標準加工データ記憶装
置に記憶されている標準加工データを前記判別手段を介
して選択的に読みだし、この読みだしたデータに従って
前記サブプログラムの実行を可能にしたことを特徴とす
るサブプログラムのデータ変更可能な数値制御装置。1. A numerical controller for a machine tool having X, Y, and Z axes in which relative motions of a tool and a workpiece are orthogonal to each other, wherein a plurality of machining points of the workpiece are machined sequentially. A machining program storage device (20a) in which a machining program is stored, and which is called by a specific command block of the machining program and has a routine operation for repeatedly machining a plurality of machining points of the workpiece. Subprogram storage device (20b) for storing subprograms of
A standard machining data storage device (5) that stores standard machining position data for performing a routine operation in the subprogram; and a machining operation other than the routine operation when executing the subprogram. A specific machining data storage device (21) that stores machining data that is specific position data corresponding to the machining location number read from the machining program to perform the machining of the plurality of machining locations by the subprogram. A machining number counter (2) for counting the number of times, and a sub-program in which, when the sub-program is executed, a typical operation of the sub-program is performed or machining data stored in the machining-data storage device is added. A discriminating means (3) for discriminating whether or not to operate by comparing the machining location number with the machining frequency; A machining number counter, and a central processing unit that controls and controls the discriminating means. Each machining location is stored in the specific machining data stored in the machining data storage device or in the standard machining data storage device. A numerical control device capable of changing data of a sub-program, characterized in that the standard machining data existing therein is selectively read out through the discriminating means and the sub-program can be executed in accordance with the read-out data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62024665A JPH0685129B2 (en) | 1987-02-06 | 1987-02-06 | Numerical control device that can change data in subprogram |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62024665A JPH0685129B2 (en) | 1987-02-06 | 1987-02-06 | Numerical control device that can change data in subprogram |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS63193204A JPS63193204A (en) | 1988-08-10 |
| JPH0685129B2 true JPH0685129B2 (en) | 1994-10-26 |
Family
ID=12144438
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62024665A Expired - Lifetime JPH0685129B2 (en) | 1987-02-06 | 1987-02-06 | Numerical control device that can change data in subprogram |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0685129B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP5886656B2 (en) * | 2012-02-27 | 2016-03-16 | オークマ株式会社 | Numerical controller |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS59114609A (en) * | 1982-12-22 | 1984-07-02 | Hitachi Ltd | Method and device for controlling robot |
-
1987
- 1987-02-06 JP JP62024665A patent/JPH0685129B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS63193204A (en) | 1988-08-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4521860A (en) | Methods of entering machining information and display therefor in a numerically controlled machine tool | |
| US4484286A (en) | Numerical control system | |
| US4293913A (en) | Numerical controller for a grinding machine | |
| US5150305A (en) | Numerical control system providing graphic machining simulation | |
| US4604705A (en) | Numerical control machining method and system therefor | |
| JPH0238342B2 (en) | ||
| US6502007B1 (en) | Optimization method and device of NC program in NC machining | |
| JPS6363921B2 (en) | ||
| US5289382A (en) | Method of and system for producing data for numerically controlled machining | |
| US6856853B2 (en) | Simulation device | |
| EP0148273B1 (en) | Numerical control apparatus | |
| US4751652A (en) | Numerical control drilling restart control system | |
| JPH0375884B2 (en) | ||
| JPH0685129B2 (en) | Numerical control device that can change data in subprogram | |
| EP0310671B1 (en) | Numerical control method capable of variably setting positioning precision | |
| JPS6347805A (en) | Override playback system | |
| JPS63219009A (en) | Backlash correction system in full closed loop control | |
| JP2584225B2 (en) | Numerical control unit | |
| JPH0630011B2 (en) | Numerical control Machining restart control method | |
| EP0414911B1 (en) | Numerical control device for transfer machine | |
| KR100401635B1 (en) | Method for check grammer a manufacture programming of numerical control type machine tool | |
| JPS6319007A (en) | Data transfer method in numerical controller | |
| JPS59192440A (en) | Control device for resumption of nc processing | |
| JPS5922103A (en) | Numeric controlling method | |
| JPH04304943A (en) | Read-write device for tool information in tool magazine |