JPS6249511A - Working program storing system or numerical controller - Google Patents

Working program storing system or numerical controller

Info

Publication number
JPS6249511A
JPS6249511A JP60190419A JP19041985A JPS6249511A JP S6249511 A JPS6249511 A JP S6249511A JP 60190419 A JP60190419 A JP 60190419A JP 19041985 A JP19041985 A JP 19041985A JP S6249511 A JPS6249511 A JP S6249511A
Authority
JP
Japan
Prior art keywords
machining program
program
working program
machining
frequency
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
JP60190419A
Other languages
Japanese (ja)
Inventor
Kimio Saitou
公美雄 斎藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP60190419A priority Critical patent/JPS6249511A/en
Publication of JPS6249511A publication Critical patent/JPS6249511A/en
Pending legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Abstract

PURPOSE:To decrease the transfer frequencies of a working program and also to minimize the waiting time for execution of the next working program, by carrying out the sweeping actions to an auxiliary storage part from a main storage in response to the using frequency of the working program. CONSTITUTION:When a working program is called during a real working mode, the using frequency of the program is calculated. Then it is decided whether a main storage part 3 has the storing room or not for the working program if no working program is stored in the storage part 3. When the storage part 3 has no storing room, the working program that has the minimum using frequency and is not under execution is swept to an auxiliary storage part 4. Then the next working program is stored in the part 3 from the part 4 and registered there. When the execution is through with the stored working program, '1' is subtracted from the using frequency. This can be decrease the transfer frequency of the working program and also minimize the waiting time for execution of the next working program.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、複数の加工プログラムを主記憶部および補
助記憶部に格納する数値制御装置の加工プログラム格納
方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a machining program storage method for a numerical control device that stores a plurality of machining programs in a main memory section and an auxiliary memory section.

〔従来の技術〕[Conventional technology]

第3図は主記憶部及び補助記憶部を持つ数値制御装置の
構成をブロック図で示したものである。
FIG. 3 is a block diagram showing the configuration of a numerical control device having a main memory section and an auxiliary memory section.

図において、1はメインCPU、2はROM、3はRA
M(以下、主記憶部と呼ぶ)、4はバブルメモリ、ハー
ドディスク等の補助記憶部、5はCRT、5はモータ8
のコントロールを行なうサーボユニット、7はアンプ、
8はモータである。
In the figure, 1 is the main CPU, 2 is the ROM, and 3 is the RA
M (hereinafter referred to as main memory), 4 is a bubble memory, auxiliary memory such as a hard disk, 5 is a CRT, 5 is a motor 8
7 is an amplifier,
8 is a motor.

第4図は上記第3図の数値制御装置内に格納される加工
プログラムの構成を示し、第5図は第3図の制置制御装
置において、主記憶部3及び補助記憶部4に登録された
加工プログラムをCRT5上に表示したプログラム管理
画面を表わす。
FIG. 4 shows the structure of a machining program stored in the numerical control device shown in FIG. 3, and FIG. This shows a program management screen in which a machining program that has been created is displayed on the CRT5.

次に動作について説明する。第3図において、主記憶部
3に有限個(ここでは16個)の加工プログラムが格納
でき、補助記憶部4では残りの加工プログラムが格納さ
れる。工作機械(図示せず)が作動する加工プログラム
は、主記憶部3内に存全ての加工プログラムが主記憶部
3内に存在するとは限らない。実加工中に次加工プログ
ラムが主記憶部3内に存在しない場合は、メインCPU
1の並列処理により補助記憶部4から主記憶部3に次加
工プログラムを転送し、直ちに次加工プログラムを実行
できるようにしている。
Next, the operation will be explained. In FIG. 3, a finite number (16 in this case) of machining programs can be stored in the main storage section 3, and the remaining machining programs can be stored in the auxiliary storage section 4. The machining programs operated by the machine tool (not shown) exist in the main memory section 3. Not all machining programs exist in the main memory section 3. If the next machining program does not exist in the main memory 3 during actual machining, the main CPU
The next processing program is transferred from the auxiliary storage section 4 to the main storage section 3 by parallel processing of 1, so that the next processing program can be executed immediately.

第5図のプログラム管理画面において、実加工中に次加
工プログラムが存在しない場合は、補助記憶部4から主
記憶部3に転送され、主記憶部3に登録されている加工
プログラム中の最下位に登録される。もし、登録する場
所が無い場合は、まず実行中の加工プログラムを除く加
工プログラムで最上位の加工プログラムを補助記憶部4
内に転送し、次に他の加工プログラム番号を1行だけ上
側に移動し、更に補助記憶部4内より転送された次加工
プログラムを最下位(16番目)に登録する。
On the program management screen shown in FIG. 5, if the next machining program does not exist during actual machining, it is transferred from the auxiliary storage unit 4 to the main memory unit 3, and the lowest machining program among the machining programs registered in the main memory unit 3 is will be registered. If there is no place to register, first store the highest machining program in the auxiliary memory section 4 among the machining programs excluding the machining program currently being executed.
Next, the other machining program numbers are moved upward by one line, and the next machining program transferred from the auxiliary storage section 4 is registered at the lowest position (16th).

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来の数値制御装置の加工プログラム格納方式は、以上
のように構成されるとともに加工プログラムの使用頻度
に関係なく1最上位に登録しである加工プログラムをバ
ブルメモリ(補助記憶部)に転送し、次加工プログラム
を最下位に登録するようにしていたので、−回しか実行
されない加工プログラムでも実行後に最上位から掃き出
されるまで、主記憶部内に保持されていたり、また使用
頻度の高い加工プログラムを何度も転送するためメイン
CPUに無駄が生じ、次加工プログラム実行までの待ち
時間が生じる(転送時間が長い場合)などの問題点があ
った。
The conventional machining program storage method for numerical control devices is configured as described above, and regardless of the frequency of use of the machining program, the machining program is registered at the top level and is transferred to the bubble memory (auxiliary storage section). Since the next machining program was registered at the lowest level, even machining programs that are executed only - times are retained in the main memory until they are flushed out from the top after execution, and machining programs that are frequently used can be saved. There are problems in that the main CPU is wasted due to repeated transfers, and there is a waiting time until the next machining program is executed (if the transfer time is long).

この発明は上記のような問題点を解消するためになされ
たもので、加工プログラムの転送回数を減少できるとと
もに1皮部ニブログラム実行までの待ち時間を極力減少
することの可能な数値制御装置を得ることを目的とする
This invention was made in order to solve the above-mentioned problems, and provides a numerical control device that can reduce the number of transfers of machining programs and minimize the waiting time until execution of a nib program for one skin section. The purpose is to

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係る数値制御装置の加工プログラム格納方式
は、加工プログラムの使用頻度を最初にサブ加工プログ
ラムがコールされたときに算出し、主記憶部に余裕が無
い場合に使用頻度の小さい加工プログラムを掃き出して
上記加工プログラムを格納し、各加工プログラムの実行
終了毎に使用頻度を1減らすようにしたものである。
A machining program storage method for a numerical control device according to the present invention calculates the usage frequency of a machining program when a sub-machining program is called for the first time, and stores less frequently used machining programs when there is not enough space in the main memory. The machining programs are swept out and stored, and the frequency of use is decreased by 1 each time the execution of each machining program is completed.

〔作 用〕[For production]

この発明における数値制御装置は、加工プログラムの使
用頻度を比救し、大きいものは主記憶内に保持され、小
さいものは必要に応じてバブルメモリに掃き出されるの
で、加工プログラムの待ち時間が減少する。
The numerical control device of this invention reduces the frequency of use of machining programs; large programs are retained in main memory, and small programs are flushed out to bubble memory as needed, reducing machining program waiting time. do.

〔実施例〕〔Example〕

以下、この発明の一実施例について説明する。 An embodiment of the present invention will be described below.

第1図は第3図のCRT5上に表示されたプログラム管
理画面の一例であり、nは各プログラムの残シ繰返し実
行回数であり、この最下位の0は、全実行終了を表わす
。第2図はサブ加工プログラムをコールした時の処理の
手順を示すフローチャートである。第4図において、W
No、110はメイン加工プログラムであり、WNo、
110〜180は入れ子になったサブ加工プログラム、
WNo。
FIG. 1 is an example of a program management screen displayed on the CRT 5 of FIG. 3, where n is the remaining number of times each program is repeatedly executed, and the lowest 0 represents the completion of all executions. FIG. 2 is a flowchart showing the processing procedure when the sub-machining program is called. In Figure 4, W
No. 110 is the main machining program, WNo.
110 to 180 are nested sub-processing programs,
WNo.

210〜240は二重の入れ子、WNo、310は三重
の入れ子になった加工プログラムである。各加工プログ
ラムの最終行には、その加工プログラムの繰返し実行回
数Nが設定されている。
210 to 240 are double nested machining programs, and WNo. 310 is a triple nested machining program. In the last line of each machining program, the number N of repeated executions of that machining program is set.

次に動作について説明する。第4図において、メイン加
工プログラムWN0.10’iJ行中、次加工プログラ
ムWNO,110をコールする。このとき、WNo、1
10の実行回数’++oは。
Next, the operation will be explained. In FIG. 4, the next machining program WNO, 110 is called in the main machining program WN0.10'iJ line. At this time, WNo. 1
The number of executions of 10 is '++o.

n11D = N++o X Neo  (回)続イテ
、WNo、210 、WNo、310をコールしたとき
、夫々の実行回数0210 、03N+は、n210 
= N2+o  X N++o  x Neo  (回
)口510  : N51o  x  N2[x NH
o x NH(回)である。以降、同様にしてサブ加工
プログラムを最初にコールする度に繰返し実行回数nを
算出する。さらに各加工プログラムにおいて、実行終了
の度に繰返し実行回数を1回減少させる(n−1)。
n11D = N++o
= N2+o X N++o x Neo (times) 510: N51o x N2[x NH
ox NH (times). Thereafter, the number of repeated executions n is calculated in the same manner every time the sub-machining program is called for the first time. Furthermore, in each machining program, the number of repeated executions is decreased by one each time the execution is completed (n-1).

この実行回数をCRT5上に表示させると第1図に示す
ようになる。第1図では、残りの実行回数を比較し、頻
度の高いものから順に並べである。
When this number of executions is displayed on the CRT 5, it becomes as shown in FIG. In FIG. 1, the remaining execution counts are compared and arranged in descending order of frequency.

新しくコールされた次加工プログラムは%実行回数に応
じて挿入される。この時5皮部ニブログラムが主記憶部
3内に入る余裕が無い場合は、実行回数の小さい加工プ
ログラムを前もって掃き出す。
The newly called next machining program is inserted according to the % execution count. At this time, if there is not enough space for the 5th skin part nib program to fit into the main memory 3, the machining program that has been executed less frequently is flushed out in advance.

但し、実行中の加工プログラム(WNo、210実行中
に、WNo、310 t−コールした場合は、親のWN
o、110.WNo、104%行中)は主記憶部3内に
保持し、残りの加工プログラムで実行回数の小さいもの
を掃き出す。第2図のサブ加工プログラムをコールした
ときのフローチャートについて説明する。まず、初めて
コールされたとき(ステップ11)は、使用頻度を算出
する(ステップ12)。
However, if WNo, 310 t- is called while the machining program (WNo, 210) is being executed, the parent WN
o, 110. WNo. (in the 104% line) is held in the main memory section 3, and the remaining machining programs that have been executed less frequently are purged. The flowchart when the sub-processing program shown in FIG. 2 is called will be explained. First, when called for the first time (step 11), the usage frequency is calculated (step 12).

主記憶部3内にサブ加工プロ゛グラムが無い場合は主記
憶部3内に格納する余裕の有無を判別しくステップ13
.14)、その余裕が無い場合は使用頻度が最少で実行
中でない加工プログラムをit出しくステップ15)、
次に加工プログラムを主記憶部3に格納、登録する(ス
テップ16 、17)。
If there is no sub-processing program in the main memory 3, it is determined whether there is enough room to store it in the main memory 3 (Step 13)
.. 14), If there is no room for that, output the machining program that is least frequently used and is not currently being executed.Step 15).
Next, the machining program is stored and registered in the main memory 3 (steps 16 and 17).

そして、毎回実行後に使用頻度を1減らす。Then, after each execution, reduce the usage frequency by 1.

なお、上記実施例ではメインCPU(第3図(1))が
並列処理を行い、加工中に次加工プログラムをコールし
、加工時間に及ぼす転送時間の影響を少くしているが、
これは並列処理を行わない場合においても、上記手法に
49転送回数及び時間を極力削減でき、加工時間を短縮
できる。
In the above embodiment, the main CPU (Fig. 3 (1)) performs parallel processing and calls the next machining program during machining to reduce the influence of transfer time on machining time.
Even when parallel processing is not performed, the number of transfers and time can be reduced as much as possible compared to the above method, and the processing time can be shortened.

また、上記実施例では補助記憶部4としてバブルメモリ
を用いた場合を示したが、ハードディスクでもよく、上
記実施例と同様の効果を奏する。
Further, in the above embodiment, a bubble memory is used as the auxiliary storage section 4, but a hard disk may also be used, and the same effects as in the above embodiment can be obtained.

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明によれば主記憶部と補助記憶部
間の無駄な加工プログラムの転送を極力減少するよう構
成したので、転送による待ち時間が、全加工時間に与え
る影響を少なくできるという効果がある。
As described above, according to the present invention, the unnecessary transfer of machining programs between the main memory section and the auxiliary memory section is reduced as much as possible, so that the influence of waiting time due to transfer on the total machining time can be reduced. effective.

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

第1図はこの発明の一実施例によるプログラムの管理状
態を説明するための画面表示図、第2図はこの発明の加
工プログラム格納方式による加工プログラムをコールし
たときの一例を示すフローチャート、第3図は主記憶部
と補助記憶部を持つ数値制御装置を示す構成図、第4図
は数値制御装置の加工プログラムの構成を示すプログラ
ム構成図、第5図は従来の加工プログラム格納方式にお
ける加工プログラムの管理状態を説明するための画面表
示図である。 図において、3は主記憶部54は補助記憶部である。 なお1図中同一符号は同一、又は和尚部分を示す。 特許出願人  三菱電機株式会社 、1  − 代理人 弁理士  1)澤 博 昭1 (外2名) 第1@ 第5図 第2(!I
FIG. 1 is a screen display diagram for explaining the management state of a program according to an embodiment of the present invention, FIG. 2 is a flowchart showing an example of calling a machining program using the machining program storage method of the present invention, and FIG. The figure is a block diagram showing a numerical control device having a main memory section and an auxiliary memory section. Fig. 4 is a program block diagram showing the structure of a machining program of the numerical control device. Fig. 5 is a machining program in a conventional machining program storage method. FIG. 3 is a screen display diagram for explaining the management status of the . In the figure, reference numeral 3 indicates the main storage section 54 is an auxiliary storage section. Note that the same reference numerals in Figure 1 indicate the same parts or the monk parts. Patent applicant Mitsubishi Electric Corporation, 1 - Agent Patent attorney 1) Hiroshi Sawa 1 (2 others) No. 1 @ Figure 5 No. 2 (!I

Claims (1)

【特許請求の範囲】[Claims] 複数の加工プログラムを主記憶部及び補助記憶部に格納
する数値制御装置の加工プログラム格納方式において、
前記数値制御装置の実加工中に、次の前記加工プログラ
ムをコールしたのちに実行回数を算出し、前記次の加工
プログラムを前記主記憶部内に格納する余裕が無い場合
は実行回数の小さい加工プログラムを前記主記憶部から
掃き出し、そののち前記次の加工プログラムを主記憶部
に格納し、この格納された加工プログラムの実行終了後
に使用頻度を1減ずるようにしたことを特徴とする数値
制御装置の加工プログラム格納方式。
In a machining program storage method for a numerical control device that stores multiple machining programs in a main memory section and an auxiliary memory section,
During actual machining by the numerical control device, the number of executions is calculated after calling the next machining program, and if there is no room to store the next machining program in the main memory, a machining program with a small number of executions is selected. The numerical control device is characterized in that the following machining program is flushed from the main memory, and then the next machining program is stored in the main memory, and the frequency of use is decreased by 1 after the execution of the stored machining program is completed. Machining program storage method.
JP60190419A 1985-08-29 1985-08-29 Working program storing system or numerical controller Pending JPS6249511A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60190419A JPS6249511A (en) 1985-08-29 1985-08-29 Working program storing system or numerical controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60190419A JPS6249511A (en) 1985-08-29 1985-08-29 Working program storing system or numerical controller

Publications (1)

Publication Number Publication Date
JPS6249511A true JPS6249511A (en) 1987-03-04

Family

ID=16257821

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60190419A Pending JPS6249511A (en) 1985-08-29 1985-08-29 Working program storing system or numerical controller

Country Status (1)

Country Link
JP (1) JPS6249511A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04137002A (en) * 1990-09-28 1992-05-12 Makino Milling Mach Co Ltd Nc program managing method for working system
JP2017016233A (en) * 2015-06-29 2017-01-19 ファナック株式会社 Numerical control device with function to automatically select storage destination in response to content of program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04137002A (en) * 1990-09-28 1992-05-12 Makino Milling Mach Co Ltd Nc program managing method for working system
JP2017016233A (en) * 2015-06-29 2017-01-19 ファナック株式会社 Numerical control device with function to automatically select storage destination in response to content of program
US10437230B2 (en) 2015-06-29 2019-10-08 Fanuc Corporation Numerical controller having function of automatically selecting storage destination of machining program

Similar Documents

Publication Publication Date Title
JPS6249511A (en) Working program storing system or numerical controller
JPS6134605A (en) Controlling system of programmable controller
EP3299965A1 (en) Method and physical device for managing linked lists
JPS6048776B2 (en) Combined calling method for programs in storage devices
KR100918566B1 (en) System for managing service of internet and method thereof
JPS6217803A (en) Control system for programmable controller
JPH04333102A (en) Nc program control system
JPH03163630A (en) Stack control method for processor
JP2901786B2 (en) Schedule creation device
JPH05210525A (en) Shared exclusive control method
JPS58142451A (en) Interruption control system
JPH01282643A (en) Dynamic changing system for interval time
JPH04111149A (en) Circuit system for dma device
JPH0784786A (en) Program execution control method
JPH05333924A (en) Menu display device
JPH02211545A (en) Job execution control system
JPH03145267A (en) Memory controller
JPH03139703A (en) Timer instruction processing system of programmable controller
JPH06236285A (en) Job schedule system
JPH02310758A (en) Input/output device switching system
JPH04257923A (en) Method for constituting list processing system
JPH06187177A (en) Virtual computer
JPH027792A (en) Storage program control system
JPS6269324A (en) Task control system
JPS61260345A (en) Bus control system among multiprocessors