JPS62293310A - Executing system for user program of numerical controller - Google Patents
Executing system for user program of numerical controllerInfo
- Publication number
- JPS62293310A JPS62293310A JP13475286A JP13475286A JPS62293310A JP S62293310 A JPS62293310 A JP S62293310A JP 13475286 A JP13475286 A JP 13475286A JP 13475286 A JP13475286 A JP 13475286A JP S62293310 A JPS62293310 A JP S62293310A
- Authority
- JP
- Japan
- Prior art keywords
- program
- user program
- user
- executed
- processing
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 claims abstract description 12
- 230000006870 function Effects 0.000 abstract description 3
- 238000004364 calculation method Methods 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000004913 activation Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 210000003127 knee Anatomy 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
Landscapes
- Numerical Control (AREA)
Abstract
Description
【発明の詳細な説明】
3、発明の詳細な説明
〔産業上の利用分野〕
この発明は、編集プログラムと通訳プログラムとを内蔵
する数値制御装置(以下NCという)のユーザプログラ
ム実行方式に関するものである。[Detailed Description of the Invention] 3. Detailed Description of the Invention [Field of Industrial Application] This invention relates to a user program execution method for a numerical control device (hereinafter referred to as NC) that includes an editing program and an interpretation program. be.
従来、NCにおいて、ユーザプログラムとはE I A
(HIec、tronic Industries
As5ociation)フォーマットの加工プログラ
ムと、該加工プログラムを拡張してBASIC言語で用
意されているコマンドを使用可能としたユーザマクロプ
ログラムの2種類のプログラムを指している。そしてい
ずれのプログラムも機械加ニスタート時にソース言語の
命令を1つごとに解釈しながら実行するプログラム、す
なわち、通訳プログラム(インタプリタ)で解析して実
行される。Conventionally, in NC, the user program is EIA
(HIec, tronic Industries
This refers to two types of programs: a machining program in the AS5ociation) format, and a user macro program that extends the machining program to make it possible to use commands prepared in the BASIC language. Each program is analyzed and executed by an interpreter, which is a program that interprets and executes the source language commands one by one when the machine is started.
第2図は、上記の処理を示すフローチャートで、図にお
いて、AはNC起動状態の確認、Bはユーザプログラム
の読込み(2−1)は加工プログラムの入力解析処理(
2−2)はユーザマクロ処理の判定(2−3)はユーザ
マクロ処理(2−4)はNC装置移動量の計算処理(2
−5>はNCプログラムの直線、円弧等の補間処理(2
−6)は加工プログラム終了かの判定である。また第3
図はNC装置ハードウェアの構成図である。FIG. 2 is a flowchart showing the above processing. In the figure, A is confirmation of the NC startup state, B is reading of the user program (2-1), and machining program input analysis processing (
2-2) is the user macro processing determination (2-3), the user macro processing (2-4) is the NC device movement amount calculation processing (2
-5> is the interpolation process for straight lines, arcs, etc. of the NC program (2
-6) is a determination as to whether the machining program has ended. Also the third
The figure is a configuration diagram of the NC device hardware.
次に第2図、第3図を参照して動作について説明する。Next, the operation will be explained with reference to FIGS. 2 and 3.
まず、NCがAで起動状態、すなわち、NCのオペレー
タが加ニスタート釦を投入するとNCは加工プログラム
の人力解析処理(2−1)を実行し、その処理結果に基
き加工プログラムがユーザマクロ処理か(2−2)、歪
かの判定を行う。そしてYESの場合にはユーザマクロ
処理(2−3)を実行し、引続いてモータ移動量の計算
(2−4)をメインCPUにて実行する。更にNCの増
分移動量(ΔX、ΔY)の計算、補正計算等と共に直線
、円弧等の補間処理(1−5)を同様にメインCPUで
行いマシンコントロールユニソ1−(MCU)を介して
サーボ制御を行い加工処理を進める。最後に加工プログ
ラムの終了(2−6)を確認して一連の処理を終了する
。なお、NC装置を運転するため処理プログラムとワー
ク加工の加工プログラムは予め不揮発性メモリ (RO
M又はバブルメモリ等)に格納しておく。First, the NC is in the activated state at A, that is, when the NC operator presses the crab start button, the NC executes the manual analysis process (2-1) of the machining program, and based on the processing result, the machining program performs the user macro process. (2-2), it is determined whether there is distortion. If YES, the user macro process (2-3) is executed, followed by calculation of the motor movement amount (2-4) by the main CPU. Furthermore, the main CPU performs the calculation of the incremental movement amount (ΔX, ΔY) of the NC, correction calculation, etc., as well as interpolation processing (1-5) for straight lines, circular arcs, etc. Control is performed to proceed with processing. Finally, the end of the machining program is confirmed (2-6), and the series of processing is completed. The processing program and workpiece machining program for operating the NC device are stored in advance in non-volatile memory (RO
M or bubble memory, etc.).
従来のNCは以上のように構成されているので、NC起
動状態でのみ、ユーザプログラムの読み込み、解析、実
行を行うようにしているので、NC起動状態以外の時に
はユーザプログラムの実行ができず、NC運転の実動効
率が制約されるという問題点があった。Since the conventional NC is configured as described above, the user program is read, analyzed, and executed only when the NC is activated, so the user program cannot be executed when the NC is not activated. There was a problem in that the actual efficiency of NC operation was restricted.
この発明は、上記のような問題点を解消するためになさ
れたもので、NC起動状態以外でもユーザプログラムの
読み込み、解析、実行を可能とした数値制御装置のユー
ザプログラム実行方式を提供することを目的とする。The present invention has been made to solve the above-mentioned problems, and it is an object of the present invention to provide a user program execution method for a numerical control device that allows the user program to be read, analyzed, and executed even when the NC is not activated. purpose.
この発明に係るNCのユーザプログラム実行方式は、N
Cが起動状態でないときにも、ユーザプログラムをバッ
クグラウンドユーザプログラムとして実行することを可
能としたものである。The NC user program execution method according to this invention is
This allows a user program to be executed as a background user program even when C is not activated.
この発明におけるNCユーザプログラムは、フォアグラ
ウンドユーザプログラムとバックグラウンドユーザプロ
グラムとに分離してプログラムを格納することにより、
NC起動状態以外でもバ・。The NC user program according to the present invention is divided into a foreground user program and a background user program and stored separately.
Even when the NC is not activated.
タグラウンドユーザプログラムでユーザプログラムの実
行を可能とする。ここで、フォアグラウンド処理とは割
込結果バンクグラウンド処理に先行する優先度の高い処
理を意味する。一般にフォアグラウンドで処理されるジ
ョブは比較的早い処理が要求されるものや、共通的に必
要とされるものでメモリ内にフォアグラウンド処理なる
メモリ領域を有する。また、バックグラウンドでは多く
の資源、大量の処理が必要であり、それ程急がないジョ
ブが処理される。Enables the execution of user programs in the tagground user program. Here, foreground processing means high priority processing that precedes interrupt result bank ground processing. Generally, jobs that are processed in the foreground require relatively fast processing or are commonly required, and therefore have a memory area for foreground processing in the memory. In addition, jobs that require many resources and a large amount of processing, and are not very urgent, are processed in the background.
以下、この発明の一実施例を図について説明する。図中
第2図と同一の部分は同一の符号をもって図示した第1
図において、(C)はフォアグラウンド、ユーザプログ
ラムの読み込み(2−7)はバンクグラウンド、ユーザ
プログラムの読み込み(2−8)は読込んだバックグラ
ウンド、ユーザプログラムの解析及び実行である。また
、〈1−1)はオペレータがデータの入力を行うキーボ
ード(1−2)は編集プログラム(1−3)はユーザマ
クロのプログラムを格納するメモリで、予めユーザがデ
ータ作成したハックグラウンドを通訳プログラムした形
で解析、実行に移す。An embodiment of the present invention will be described below with reference to the drawings. In the figure, the same parts as in Figure 2 are designated by the same reference numerals.
In the figure, (C) is the foreground, loading the user program (2-7) is the bank background, loading the user program (2-8) is the loaded background, and analyzing and executing the user program. In addition, <1-1) is the keyboard (1-2) used by the operator to input data, and the editing program (1-3) is the memory that stores the user macro program, which is used to interpret hackground data created by the user in advance. Analyze and execute the programmed form.
次に動作について説明する。まず、(^)のNC起動状
態判別処理を行った結果、起動状態であれば(C)のフ
ォアグラウンドユーザプログラムの読込みを行い、読込
んだプログラムの解析、実行(2−1,2−4,2−5
>を行う。一方、バックグラウンドユーザプログラムの
読み込み(1−7)処理はNC起動状態の有・無に拘ら
ず行い、読み込んだバックグラウンドの解析及び実行(
2−8)が行われる。この時に実行されるプログラムは
ユーザが予め作成したブ1′:Iグラムが通訳系プログ
ラムとして機能する。Next, the operation will be explained. First, as a result of performing the NC activation state determination process (^), if it is activated, the foreground user program (C) is read, and the read program is analyzed and executed (2-1, 2-4, 2-5
>. On the other hand, the process of reading the background user program (1-7) is performed regardless of whether the NC is activated, and the analysis and execution of the loaded background (
2-8) is performed. The program executed at this time is a block 1': I-gram created in advance by the user, which functions as an interpretation program.
なお、上記実施例ではNC起動状態の時には、フォアグ
ラウンドユーザプログラムの実行後、バックグラウンド
ユーザプログラムを必ず実行する場合について説明した
が、フォアグラウンドユーザブログラムの実行を優先度
の高い割込み処理プログラムとして、フォアグラウンド
ニーザブ1コグラムの処理を常に優先処理を行うように
しても良い。この場合、バックグラウンドユーザプログ
ラムの処理は、必ずフォアグラウンドユーザプログラム
処理の空時間lこ行なわれることになる。Note that in the above embodiment, when the NC is activated, the background user program is always executed after the foreground user program is executed. It is also possible to always perform preferential processing for processing one knee block gram. In this case, the background user program is always processed during the idle time of the foreground user program.
以上のように、この発明によれば、NC起動状態の如何
に関係なくバックグラウンドユーザプログラムを実行す
るように処理方式を形成したのでNC起動状態でないと
きにもユーザプログラムの実行ができ、任意の時にユー
ザによるプログラムの機能追加が容易に行えNC装置の
実1TIJJ効率が大幅に向上する効果がある。As described above, according to the present invention, since the processing method is formed so that the background user program is executed regardless of the NC activation state, the user program can be executed even when the NC is not activated, and any arbitrary This has the effect that the user can easily add functions to the program, and the actual efficiency of the NC device can be greatly improved.
第1図は、この発明の一実施例によるNCプログラム処
理方式のフローチャー1−1第2図は、従来のNCのプ
ログラム処理方式のフローチャー1・、第3図は、一般
的NCのハード構成を示すブロック図である。FIG. 1 is a flowchart 1-1 of an NC program processing method according to an embodiment of the present invention, FIG. 2 is a flowchart 1-1 of a conventional NC program processing method, and FIG. 3 is a flowchart 1-1 of a conventional NC program processing method. FIG. 2 is a block diagram showing the configuration.
Claims (1)
納し、前記変数を使用して該ユーザプログラムを作成す
る編集プログラムと、前記ユーザプログラムを解読、実
行する通訳プログラムとを内蔵した数値制御装置のユー
ザプログラム実行方式において、前記通訳プログラムを
常時、加工プログラムの解読、実行の空時間を利用して
実行すると共に、ユーザプログラムをフォアグラウンド
ユーザプログラムとバックグラウンドユーザプログラム
とに分離して格納し、数値制御装置起動状態以外でもバ
ックグラウンドユーザプログラムでユーザプログラムの
実行を可能としたことを特徴とする数値制御装置のユー
ザプログラム実行方式。User program execution of a numerical control device that includes an editing program that stores variables accessible from a user program in memory and creates the user program using the variables, and an interpreter program that decodes and executes the user program. In this method, the interpretation program is always executed using the idle time of decoding and executing the machining program, and the user program is stored separately into a foreground user program and a background user program, and the numerical control device is activated. A user program execution method for a numerical control device, characterized in that the user program can be executed in a background user program even in cases other than the above.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61134752A JPH0760340B2 (en) | 1986-06-12 | 1986-06-12 | Numerical control device user program execution method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61134752A JPH0760340B2 (en) | 1986-06-12 | 1986-06-12 | Numerical control device user program execution method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS62293310A true JPS62293310A (en) | 1987-12-19 |
JPH0760340B2 JPH0760340B2 (en) | 1995-06-28 |
Family
ID=15135739
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61134752A Expired - Lifetime JPH0760340B2 (en) | 1986-06-12 | 1986-06-12 | Numerical control device user program execution method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0760340B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01261710A (en) * | 1988-04-13 | 1989-10-18 | Matsushita Electric Ind Co Ltd | Robot control device |
EP0881808A3 (en) * | 1997-05-30 | 2000-04-05 | Sun Microsystems, Inc. | Latency-reducing bandwidth-prioritization for network servers and clients |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS58191010A (en) * | 1982-04-30 | 1983-11-08 | Shin Meiwa Ind Co Ltd | Control method for industrial robots |
JPS6037008A (en) * | 1983-06-10 | 1985-02-26 | シーメンス・アクチエンゲセルシヤフト | Control device for numerically controlled machine tools |
-
1986
- 1986-06-12 JP JP61134752A patent/JPH0760340B2/en not_active Expired - Lifetime
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS58191010A (en) * | 1982-04-30 | 1983-11-08 | Shin Meiwa Ind Co Ltd | Control method for industrial robots |
JPS6037008A (en) * | 1983-06-10 | 1985-02-26 | シーメンス・アクチエンゲセルシヤフト | Control device for numerically controlled machine tools |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01261710A (en) * | 1988-04-13 | 1989-10-18 | Matsushita Electric Ind Co Ltd | Robot control device |
EP0881808A3 (en) * | 1997-05-30 | 2000-04-05 | Sun Microsystems, Inc. | Latency-reducing bandwidth-prioritization for network servers and clients |
Also Published As
Publication number | Publication date |
---|---|
JPH0760340B2 (en) | 1995-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2011135611A1 (en) | Numerical control device | |
KR970033457A (en) | Memory means access control method and numerical control device in numerical control device | |
JPH03158908A (en) | Automatic programming system in compound working machine | |
JPS62293310A (en) | Executing system for user program of numerical controller | |
US10394214B2 (en) | Numerical controller temporarily stopping for a program call and numerical control method thereof | |
JPH01312605A (en) | Electrical discharge machine | |
JPH10124124A (en) | Drawing method of machining program in numerical controller and numerical controller having drawing function | |
JPS60168206A (en) | Numerical control device | |
JPS6232503A (en) | Numerical controller | |
JPH0337718A (en) | Syntax check system for job control language | |
JPS605302A (en) | Programming method of sequence controller | |
JPS6115236A (en) | How to create a partial object list | |
US20190302726A1 (en) | Program creation device | |
JPH06105406B2 (en) | Numerical control method | |
JP2565509B2 (en) | Automatic programming method | |
JPH02178864A (en) | Ipl processing system | |
JPH0447337B2 (en) | ||
JPS6249502A (en) | Programmable controller | |
JPH01194053A (en) | Processing system for command procedure | |
JPS60263210A (en) | Program generating method of numerical control device | |
JPH0455908A (en) | Production of numerically controlling data | |
JPS63314608A (en) | Numerical controller | |
JPH04158454A (en) | Unit test execution system | |
JPH02287631A (en) | Program multiexecuting system | |
JPH0394307A (en) | Numerical controller |