JP2728256B2 - Numerical control method - Google Patents

Numerical control method

Info

Publication number
JP2728256B2
JP2728256B2 JP63056929A JP5692988A JP2728256B2 JP 2728256 B2 JP2728256 B2 JP 2728256B2 JP 63056929 A JP63056929 A JP 63056929A JP 5692988 A JP5692988 A JP 5692988A JP 2728256 B2 JP2728256 B2 JP 2728256B2
Authority
JP
Japan
Prior art keywords
data
command
registration
program
numerical control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP63056929A
Other languages
Japanese (ja)
Other versions
JPH01230101A (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.)
FUANATSUKU KK
Original Assignee
FUANATSUKU KK
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 FUANATSUKU KK filed Critical FUANATSUKU KK
Priority to JP63056929A priority Critical patent/JP2728256B2/en
Publication of JPH01230101A publication Critical patent/JPH01230101A/en
Application granted granted Critical
Publication of JP2728256B2 publication Critical patent/JP2728256B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Description

【発明の詳細な説明】 <産業上の利用分野> 本発明は数値制御方法に係り、特に外部よりNCデータ
をNC制御部に転送し、該転送されたNCデータを用いてNC
加工を行なう数値制御方法に関する。
DETAILED DESCRIPTION OF THE INVENTION <Industrial Application Field> The present invention relates to a numerical control method, and in particular, transfers NC data from an external source to an NC control unit, and uses the transferred NC data to perform NC control.
The present invention relates to a numerical control method for performing machining.

<従来技術> 多数のNCプログラムを記憶するプログラムファイルユ
ニットや自動プログラミング装置から所定のNCプログラ
ムデータをNC制御装置に転送し、該転送されたNCプログ
ラムデータを用いてNC加工を行う数値制御方法がある。
かかる数値制御方法においては、例えばホスト(自動プ
ログラミング装置)1(第4図参照)で作成したNCプロ
グラムをコンピュータ構成のプログラムファイルユニッ
ト(大容量記憶装置)2に格納しておき、NC制御装置3
より大容量記憶装置2にNCプログラム要求コマンドと所
定のNCプログラム名を出力すれば、大容量記憶装置2は
該NCプログラム名に応じたNCプログラムを読み出してNC
制御装置3に転送する。NC制御装置3がDNC運転モード
の状態であれば、プロセッサ3aは入力したNCデータを直
ちにNC制御し、NC工作機械を動かしてNC加工を行う。一
方、NCデータ登録モードであれば、プロセッサ3aは入力
されたNCデータをNC内部のRAM3bに登録し、しかる後メ
モリ運転の起動により1ブロックずつRAMよりNCデータ
を呼び出してNC制御を行う。
<Prior art> A numerical control method for transferring predetermined NC program data from a program file unit or an automatic programming device storing a large number of NC programs to an NC control device and performing NC machining using the transferred NC program data is known. is there.
In such a numerical control method, for example, an NC program created by a host (automatic programming device) 1 (see FIG. 4) is stored in a program file unit (mass storage device) 2 having a computer configuration, and an NC control device 3
If the NC program request command and the predetermined NC program name are output to the mass storage device 2, the mass storage device 2 reads the NC program corresponding to the NC program name and
Transfer to the control device 3. When the NC control device 3 is in the DNC operation mode, the processor 3a controls the input NC data immediately and performs NC machining by moving the NC machine tool. On the other hand, if the mode is the NC data registration mode, the processor 3a registers the input NC data in the RAM 3b inside the NC, and then starts the memory operation to call the NC data one block at a time from the RAM to perform NC control.

<発明が解決しようとしている課題> このように従来の方法では外部からのNCプログラム
(NCデータ)登録は、専用のNCデータ登録モードにおい
て行っていた。このためにNC制御を実行しながら並行し
てNCデータを指令により登録することはできず、迅速に
NC加工ができないという問題があった。
<Problems to be Solved by the Invention> As described above, in the conventional method, the external NC program (NC data) registration is performed in the dedicated NC data registration mode. Therefore, it is not possible to register NC data by command while executing NC control,
There was a problem that NC machining was not possible.

ところで、NCデータの中には同一加工の繰返しパター
ンが現われる場合が頻繁にある。例えば、第5図に示す
NCプログラムPRGFには同一加工のパターン(NCD1〜NCD
3)が3回あり、この為NCプログラムの転送に時間を必
要とし、益々迅速なNC加工ができなくなる。そこで、予
め同一加工のパターンをサブプログラムにして作成して
おくとメインプログラムを簡単にすることができる。し
かし、この場合は予めNCデータ登録モードにおいてサブ
プログラム(NCデータ)を転送し、NC内部メモリに登録
しておく必要があり、サブプログラム登録のために余分
な時間を要し、やはり迅速なNC加工ができないという問
題があった。
By the way, a repeated pattern of the same processing often appears in the NC data. For example, as shown in FIG.
The same processing pattern (NCD1 to NCD
3) There are three times, so it takes time to transfer the NC program, and it becomes impossible to perform NC processing more and more quickly. Thus, the main program can be simplified if the same processing pattern is created in advance as a subprogram. However, in this case, it is necessary to transfer the subprogram (NC data) in the NC data registration mode in advance and register it in the NC internal memory. There was a problem that processing was not possible.

以上から本発明の目的は転送するNCデータをNC運転と
並行してNC内部メモリに登録でき、効率の良いNC加工が
できる数値制御方法を提供することである。
Accordingly, an object of the present invention is to provide a numerical control method capable of registering transferred NC data in an NC internal memory in parallel with the NC operation and performing efficient NC machining.

本発明の別の目的は、同一加工パターンを含む場合で
あっても予めサブプログラムを作成する必要のない数値
制御方法を提供することである。
Another object of the present invention is to provide a numerical control method that does not require a subprogram to be created in advance even when the same processing pattern is included.

<課題を解決するための手段> 上記課題は本発明によれば、外部より転送するNCデー
タの中に登録開始の第1のNC指令と登録終了の第2のNC
指令を挿入すると共に、登録したNCデータを読出して実
行する第3のNC指令を挿入する手段、前記登録開始の第
1のNC指令と登録終了の第2のNC指令にはさまれたNCデ
ータを用いて数値制御すると共に、これらNCデータにプ
ログラム番号を付してNC制御部のメモリに登録する手
段、前記第3のNC指令により前記プログラム番号を指定
してNCデータをメモリから呼び出し、該NCデータを用い
て数値制御を行う手段により達成される。
<Means for Solving the Problems> According to the present invention, the above-mentioned problem is solved by a first NC command of registration start and a second NC of registration end in NC data transferred from outside.
Means for inserting a third NC command for reading and executing registered NC data while inserting the command, NC data sandwiched between the first NC command for starting the registration and the second NC command for ending the registration Means for numerically controlling the NC data by adding a program number to the NC data and registering the program in the memory of the NC control unit.The NC data is called from the memory by designating the program number by the third NC command. This is achieved by means of performing numerical control using NC data.

<作用> 外部よりNCデータをNC制御部に転送し、該転送された
NCデータを用いてNC加工を行なう数値制御方法におい
て、外部より転送するNCデータの中に登録開始の第1の
NC指令と登録終了の第2のNC指令を挿入すると共に、登
録したNCデータを読出して実行する第3のNC指令を挿入
し、前記登録開始の第1のNC指令と登録終了の第2のNC
指令にはさまれたNCデータを用いて数値制御すると共
に、これらNCデータにプログラム番号を付してNC制御部
のメモリに登録し、前記第3のNC指令により前記プログ
ラム番号を指定してNCデータをメモリから呼び出し、該
NCデータを用いて数値制御を行う。
<Operation> NC data is transferred from the outside to the NC controller, and the transferred
In the numerical control method that performs NC machining using NC data, the first of registration start in NC data transferred from outside
In addition to inserting the NC command and the second NC command of the end of registration, a third NC command for reading and executing the registered NC data is inserted, and the first NC command of the registration start and the second NC command of the registration end are inserted. NC
Numerical control is performed using the NC data sandwiched between the commands, and a program number is assigned to the NC data and registered in the memory of the NC control unit. Retrieve data from memory and
Performs numerical control using NC data.

<実施例> 第1図は本発明の概略説明図である。<Example> Fig. 1 is a schematic explanatory view of the present invention.

PRGFは外部記憶装置に登録されたプログラム名「O1
0」のNCプログラムである。NCプログラムPRGFの中には
登録開始のNC指令(登録開始指令「G××○□□」)SO
C、NC内部メモリに登録するNCデータPND、登録終了のNC
指令(登録終了指令「G△△」)EOCが挿入されてい
る。又、CMPはNC内部メモリに登録されたNCデータPNDの
呼出し指令である。尚、登録開始指令SOC及び登録終了
指令EOCにおいて「G××」、「G△△」はそれぞれ登
録開始、登録終了のG機能命令であり、「××」、「△
△」は共に2桁の所定の数値である。又、登録開始指令
中の「○□□」は登録されるNCデータに付されるサブプ
ログラム名である。
PRGF is the program name “O1 registered in the external storage device.
0 ”NC program. In the NC program PRGF, the NC command for registration start (registration start command “Gxxxxx”) SO
C, NC data PND to register in NC internal memory, NC after registration
Command (registration end command "G $") EOC is inserted. CMP is a command for calling the NC data PND registered in the NC internal memory. In the registration start command SOC and the registration end command EOC, “Gxx” and “G △△” are G function commands for starting and ending registration, respectively, and “xx” and “△”.
“△” is a two-digit predetermined numerical value. “○ □□” in the registration start command is the subprogram name given to the NC data to be registered.

第2図は本発明を実施するNC装置のブロック図であ
る。
FIG. 2 is a block diagram of an NC device embodying the present invention.

101はプロセッサ、102は制御プログラムを記憶するプ
グラムメモリ(ROM)、103は処理結果や実行中のNCプロ
グラムを記憶するRAMである。プロセッサ101にはNCデー
タを登録する/しないを判定する登録フラグFmが設けら
れている。
101 is a processor, 102 is a program memory (ROM) for storing a control program, and 103 is a RAM for storing processing results and an NC program being executed. The processor 101 is provided with a registration flag Fm for determining whether to register NC data.

105はCRT105aとキーボード105bを備えたCRT&MDI装置
である。
105 is a CRT & MDI device having a CRT 105a and a keyboard 105b.

106はNCテープNCTPからのNCデータを入力するNCデー
タ入力装置、107はパルス補間器と各軸サーボユニット
を有する軸制御部、108は工作機械とNC装置間のインタ
フェースである。109は操作盤、110は工作機械、111は
外部記憶装置との間でデータ授受するインタフェース、
112はコンピュータ構成の外部記憶装置であり、プロセ
ッサ101からの要求により登録されたNCプログラムをイ
ンタフェース111を介して転送する。
106 is an NC data input device for inputting NC data from the NC tape NCTP, 107 is an axis controller having a pulse interpolator and each axis servo unit, and 108 is an interface between the machine tool and the NC device. 109 is an operation panel, 110 is a machine tool, 111 is an interface for exchanging data with an external storage device,
Reference numeral 112 denotes an external storage device having a computer configuration, which transfers an NC program registered in response to a request from the processor 101 via the interface 111.

第3図は本発明の数値制御処理の流れ図である。以
下、第3図の流れ図に従って本発明の数値制御方法を説
明する。尚、外部記憶装置111には第1図に示すNCプロ
グラムPRGFが既に格納されているものとする。
FIG. 3 is a flowchart of the numerical control process of the present invention. Hereinafter, the numerical control method of the present invention will be described with reference to the flowchart of FIG. It is assumed that the NC program PRGF shown in FIG. 1 is already stored in the external storage device 111.

DNC運転モード(ダイレクトNC運転モード)にすると
共にキーボード105b等の操作によりNCプログラム名「O1
0)を指定し、NC制御の実行を指令すると、プロセッサ1
01はインタフェース111を介して外部記憶装置112にNCプ
ログラム要求コマンドとNCプログラム名を転送する。こ
れにより、外部記憶装置112は要求されたNCデータPRGF
を1ブロックずつNC装置に転送する(ステップ201)。
1ブロックのNCデータを受信すればプロセッサ101は該N
Cデータが登録開始指令「G××○□□」)SOCかどうか
判断し(ステップ202)、登録開始指令SOCであれば登録
フラグFmを「オン」にし(ステップ203)、次の1ブロ
ックを外部記憶装置112に要求してステップ201以降の処
理を繰り返す。尚、登録フラグFmが「オン」となれば以
後「オフ」となるまで登録開始指令SOCで指令されたサ
ブプログラム名「○□□」を付してNCデータをRAM103に
登録することになる。
Set to the DNC operation mode (direct NC operation mode) and operate the NC program name “O1
When 0) is specified and execution of NC control is commanded, processor 1
01 transfers the NC program request command and the NC program name to the external storage device 112 via the interface 111. As a result, the external storage device 112 stores the requested NC data PRGF
Are transferred to the NC unit one block at a time (step 201).
If one block of NC data is received, the processor 101
It is determined whether or not the C data is a registration start command “G ×× □□”) SOC (step 202). If it is a registration start command SOC, the registration flag Fm is turned “on” (step 203), and the next one block is set. A request is made to the external storage device 112, and the processing from step 201 onward is repeated. When the registration flag Fm is turned “on”, the NC data is registered in the RAM 103 with the subprogram name “○ □” instructed by the registration start command SOC until it becomes “off”.

一方、ステップ202の判断において登録開始指令でな
ければ、ついで登録終了指令「G△△」EOCかどうか判
断し(ステップ204)、登録終了指令EOCでなければ、登
録フラグFmが「オン」かどうか判断し(ステップ20
5)、「オン」であれば要求された1ブロックのNCデー
タをRAM103に登録すると共にNC制御を実行する(ステッ
プ206,207)。
On the other hand, if it is not the registration start command in step 202, then it is determined whether or not the registration end command is “G △△” EOC (step 204). If not, it is determined whether the registration flag Fm is “on”. Judgment (Step 20
5) If "ON", register the requested one block of NC data in RAM 103 and execute NC control (steps 206 and 207).

次に、プロセッサ101はNCデータがNCプログラム終了
命令「M30」かどうか判断し(ステップ208)、終了命令
であれば数値制御処理を終了し、終了命令でなければ、
次のブロックのNCデータを外部記憶装置112に要求して
ステップ201からの処理を繰り返す。
Next, the processor 101 determines whether or not the NC data is the NC program end command “M30” (step 208). If it is the end command, the processor 101 ends the numerical control process.
The NC data of the next block is requested to the external storage device 112, and the processing from step 201 is repeated.

一方、ステップ205において登録フラグFmが「オフ」
であればRAM103に登録しないでステップ207以降の処理
を繰り返す。
On the other hand, in step 205, the registration flag Fm is "off".
If it is, the process from step 207 is repeated without registering in the RAM 103.

又、ステップ204において登録終了指令であれば登録
フラグFmを「オフ」にし(ステップ208)、以後ステッ
プ201からの処理を繰り返す。尚、RAM103に登録された
登録開始指令から登録終了指令までのサブプログラム名
「○□□」のNCデータPNDはサブプログラム呼出し指令
「M98P□□」CMPがステップ207にて実行されるとRAM103
から呼び出されてNC制御される。
If the registration end command is issued in step 204, the registration flag Fm is turned off (step 208), and the processing from step 201 is repeated thereafter. Note that the NC data PND of the subprogram name “○ □□” from the registration start command to the registration end command registered in the RAM103 is stored in the RAM103 when the subprogram call command “M98P □□” CMP is executed in step 207.
And is NC controlled.

以上においてはNCプログラムの一部を登録する例を述
べたが、NC制御の実行と並行してNCプログラムの全てを
RAM103に登録する場合においてもNCプログラムの先頭に
登録開始指令を付し、最後に登録終了指令を付せば同様
にNC制御を実行しながら登録することができる。
In the above, an example of registering a part of the NC program has been described.
Also in the case of registering in the RAM 103, if a registration start command is added at the head of the NC program and a registration end command is added at the end, it is possible to perform registration while executing NC control in the same manner.

<発明の効果> 以上本発明によれば外部より転送するNCデータの中に
登録開始のNC指令と登録終了のNC指令を挿入し、該登録
開始のNC指令と登録終了のNC指令にはさまれたNCデータ
をNC制御を実行しながらNC制御部のメモリに登録するよ
うに構成したから、転送するNCデータをNC運転と並行し
てNC内部メモリに登録でき、このために各々別個に作業
を行う場合に比べて時間が短縮できる。
<Effect of the Invention> As described above, according to the present invention, the registration start NC command and the registration end NC command are inserted into the NC data transmitted from the outside, and the registration start NC command and the registration end NC command are inserted. It is configured to register the transferred NC data in the memory of the NC control unit while performing NC control, so that the NC data to be transferred can be registered in the NC internal memory in parallel with the NC operation, so each work has to be done separately The time can be reduced as compared with the case of performing.

また、同じ処理が繰り返されるようなNCデータの場
合、該NCデータをNCプログラム名(サブプログラム名)
を付してNC内部メモリに登録するように構成したから、
以後登録されたNCデータは単にサブプログラム呼出し命
令のみで呼びだすことができるため、大きなメモリ領域
を確保する必要がなく、従ってNCデータの管理が容易と
なる。
In the case of NC data where the same processing is repeated, the NC data is referred to as NC program name (subprogram name)
Is configured to register in the NC internal memory with
Thereafter, the registered NC data can be called only by the subprogram call command, so that it is not necessary to secure a large memory area, and therefore, the management of the NC data becomes easy.

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

第1図は本発明の概略説明図、 第2図は本発明を実施するNC装置のブロック図、 第3図は本発明の処理の流れ図、 第4図乃至第6図は従来例の説明図である。 SOC……登録開始指令、 EOC……登録終了指令、 Fm……登録フラグ、 101……プロセッサ、 103……RAM、 111……インタフェース、 112……外部記憶装置 FIG. 1 is a schematic explanatory view of the present invention, FIG. 2 is a block diagram of an NC apparatus for carrying out the present invention, FIG. 3 is a flowchart of the processing of the present invention, and FIG. 4 to FIG. It is. SOC: Registration start command, EOC: Registration end command, Fm: Registration flag, 101: Processor, 103: RAM, 111: Interface, 112: External storage device

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭49−119085(JP,A) 特開 昭49−70283(JP,A) 特開 昭62−49404(JP,A) ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-49-119085 (JP, A) JP-A-49-70283 (JP, A) JP-A-62-49404 (JP, A)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】外部よりNCデータをNC制御部に転送し、該
転送されたNCデータを用いてNC加工を行なう数値制御方
法において、 外部より転送するNCデータの中に登録開始の第1のNC指
令と登録終了の第2のNC指令を挿入すると共に、登録し
たNCデータを読出して実行する第3のNC指令を挿入し、 前記登録開始の第1のNC指令と登録終了の第2のNC指令
にはさまれたNCデータを用いて数値制御すると共に、こ
れらNCデータにプログラム番号を付してNC制御部のメモ
リに登録し、 前記第3のNC指令により前記プログラム番号を指定して
NCデータをメモリから呼び出し、該NCデータを用いて数
値制御を行うことを特徴とする数値制御方法。
1. A numerical control method for transmitting NC data from the outside to an NC control unit and performing NC machining using the transferred NC data, wherein a first registration start of registration in the NC data transferred from the outside is performed. Along with inserting the NC command and the second NC command of the end of registration, a third NC command for reading and executing the registered NC data is inserted, and the first NC command of the registration start and the second NC command of the registration end are inserted. Numerical control is performed using the NC data sandwiched between the NC commands, and a program number is assigned to the NC data and registered in the memory of the NC control unit. The program number is designated by the third NC command.
A numerical control method characterized by retrieving NC data from a memory and performing numerical control using the NC data.
JP63056929A 1988-03-10 1988-03-10 Numerical control method Expired - Fee Related JP2728256B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63056929A JP2728256B2 (en) 1988-03-10 1988-03-10 Numerical control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63056929A JP2728256B2 (en) 1988-03-10 1988-03-10 Numerical control method

Publications (2)

Publication Number Publication Date
JPH01230101A JPH01230101A (en) 1989-09-13
JP2728256B2 true JP2728256B2 (en) 1998-03-18

Family

ID=13041194

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63056929A Expired - Fee Related JP2728256B2 (en) 1988-03-10 1988-03-10 Numerical control method

Country Status (1)

Country Link
JP (1) JP2728256B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014211750A (en) * 2013-04-18 2014-11-13 ファナック株式会社 Dnc operation device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS4970283A (en) * 1972-11-13 1974-07-08
JPS49119085A (en) * 1973-03-20 1974-11-14

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014211750A (en) * 2013-04-18 2014-11-13 ファナック株式会社 Dnc operation device
US9581991B2 (en) 2013-04-18 2017-02-28 Fanuc Corporation DNC operation system

Also Published As

Publication number Publication date
JPH01230101A (en) 1989-09-13

Similar Documents

Publication Publication Date Title
EP0171435B1 (en) Numerical control method
WO2004074953A1 (en) Numerically controlled device
JP2728256B2 (en) Numerical control method
JPH03290707A (en) Numerical controller
JP3108131B2 (en) Laser processing equipment
EP1600835A2 (en) Numerical controller with reduced start-up time
JP2676512B2 (en) Program restart method
JPH07104813A (en) Numerical controller
JP2880330B2 (en) Programming device for programmable controller
JP3000985B2 (en) Numerical control unit
JP3660038B2 (en) Numerical controller
JP2584225B2 (en) Numerical control unit
JPS6333168B2 (en)
JP3781112B2 (en) Programmable controller system
JPH0883113A (en) Controller for nc machine tool
JPH07210232A (en) Numerical controller
JP2677902B2 (en) Numerical control device with remote operation function
JP3793246B2 (en) Positioning system
JP2942812B2 (en) Device for creating a variant and variable production program
JP2869105B2 (en) Workpiece processing data editing method
JP2850568B2 (en) Positioning operation method
JPH1195825A (en) Method for executing numerical control program
JPH0533202U (en) Sequencer
JPH08137530A (en) Numerical controller
JP3072918B2 (en) Schedule operation method

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees