JPS5914009A - Nc program forming system - Google Patents

Nc program forming system

Info

Publication number
JPS5914009A
JPS5914009A JP12328582A JP12328582A JPS5914009A JP S5914009 A JPS5914009 A JP S5914009A JP 12328582 A JP12328582 A JP 12328582A JP 12328582 A JP12328582 A JP 12328582A JP S5914009 A JPS5914009 A JP S5914009A
Authority
JP
Japan
Prior art keywords
data
program
program memory
manual
user macro
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
JP12328582A
Other languages
Japanese (ja)
Inventor
Ryoichiro Nozawa
野沢 量一郎
Akira Nagamine
永峰 侃
Atsushi Shima
淳 島
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
Fujitsu Fanuc Ltd
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, Fujitsu Fanuc Ltd filed Critical Fanuc Corp
Priority to JP12328582A priority Critical patent/JPS5914009A/en
Publication of JPS5914009A publication Critical patent/JPS5914009A/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/42Recording and playback systems, i.e. in which the programme is recorded from a cycle of operations, e.g. the cycle of operations being manually controlled, after which this record is played back on the same machine

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)

Abstract

PURPOSE:To incorporate easily a pattern play back function into a numerical control (NC) program by specifying and inputting a variable to be used in subprogram. CONSTITUTION:A mechanical moving part is positioned at a required position by manual operation. Depression of a key on a manual data input device MDI after completion of said positioning to the required position enables a central processing unit CPU to form NC data by using a current position stored in reversible counters RCX, RCY and store the formed NC data in a part program memory PPM. Thereafter, the NC data are formed in the same manner and stored in the part program memory PPM. After positioning the mechanical moving part on the prescribed position, forming the NC data on the position by said operation and then storing the NC data in the part program memory PPM, an instruction having the pattern play back function is formed.

Description

【発明の詳細な説明】 本発明はNCプログラム作成方式に関する。[Detailed description of the invention] The present invention relates to an NC program creation method.

NC装置をプレイバックモードにすると共に、手動操作
により機械可動部を所望の位置迄移動させ、該位置で各
軸を特定するアドレスワード(該ワードに続く数値の性
格を特定するアルファベットである)X、Ytたは2を
キーインし、しかる後lN5RTキー(インサートキー
)を押してその時の機械可動部の現在位置(Px、P)
r、Pz)を用いてNCデータ XPx、YF3. ZPz i を作成し、これをNCプログラム(バートプログラム)
記憶領域に記憶し、以後同様な操作を繰返し、複数のN
CデータからなるNCプログラムを作成するNCプログ
ラム作成方法は既に知られている。
Set the NC device to playback mode, move the mechanical movable part to a desired position by manual operation, and use an address word (an alphabet character that specifies the character of the numerical value following the word) to specify each axis at that position. , Yt or 2, then press the lN5RT key (insert key) to display the current position of the mechanical moving part (Px, P).
r, Pz) using NC data XPx, YF3. Create ZPz i and use it as an NC program (Bert program)
Store it in the storage area, repeat the same operation, and store multiple N
An NC program creation method for creating an NC program consisting of C data is already known.

この方法によれば、プログラミングする必要がなく便利
である。しかし、このプレイバック方法により作成され
る従来のNCデータは主に位置指令データであった。
This method is convenient because it does not require programming. However, conventional NC data created by this playback method was mainly position command data.

ところで、最近はユーザマクロ機能等を用いてNCプロ
グラムを作成する方法が主流を占めている。こ\でユー
ザマクロとは、ある一群の命令で構成されるある機能を
サブプログラムのようにメモリに予め登録しておくと共
に、該登録された機能を1つの命令で代表させ、その代
表命令だけをNCプログラム中に挿入しておくことによ
り該機能を実行させるものである。そして、このユーザ
マクロの最大の特徴はユーザマクロ中で変数を使える(
この点がザブプログラムと異なる)、変数間の演算がで
きる、変数に実際の値を設定できるということである。
Incidentally, recently, the mainstream method has been to create an NC program using a user macro function or the like. Here, a user macro is one in which a certain function consisting of a certain group of instructions is registered in memory in advance like a subprogram, the registered function is represented by one instruction, and only that representative instruction is This function is executed by inserting this into the NC program. And, the biggest feature of this user macro is that you can use variables in the user macro (
This point differs from subprograms in that it is possible to perform calculations between variables and to set actual values to variables.

第1図は通常のNCプログラムとユーザマクロの関係説
明図であり、1は通常のNCプログラム、2はユーザマ
クロである。
FIG. 1 is an explanatory diagram of the relationship between a normal NC program and a user macro, where 1 is a normal NC program and 2 is a user macro.

NCプログラムの適所にはユーザマクロ命令、G65 
 P日日 ロ ■・・・ JΔΔ・・・Δ KOO・・
・O;が挿入され、又マクロ識別名2口口・・・口を有
するユーザマクロには第2図に示すように角度Jの直線
上において等間隔■で、K個のポイント位置p、、p。
User macro instructions, G65, are placed in appropriate places in the NC program.
P day day b ■... JΔΔ...Δ KOO...
・O; is inserted, and the user macro with the macro identifier 2口口...mouth has K point positions p, , at equal intervals ■ on the straight line of angle J, as shown in Figure 2. p.

・・・Pkにボルトホールを作成する命令がプログラム
されている。尚、ユーザマクロの最後尾にはNCプログ
ラムへの戻りを示す命令M99;が挿入されている。
...A command to create a bolt hole is programmed into Pk. Note that an instruction M99; indicating a return to the NC program is inserted at the end of the user macro.

従って、NCプログラムに基づいて処理を行なっている
過程において、ユーザマクロ命令G65P口口・・・口
■・・・J・・・、K・・・;が読み取られ\ばNO装
置はマクロ識別名2口口・・・口に対応するユーザマク
ロを読み出し、■−・・・、J=△△・・・Δ、に=O
O・・・○として第2図に示すボルトホールの加工処理
を有力い、加工処理後M99;により再びNCプログラ
ム1によるNC処理を行なう。
Therefore, in the process of processing based on the NC program, if the user macro command G65P 口口...口■...J...,K...; is read, the \NO device is the macro identifier 2-mouth mouth... Read the user macro corresponding to the mouth, ■-..., J=△△...Δ, ni=O
The bolt hole shown in FIG. 2 is machined as O...○, and after the process, the NC process is performed again using NC program 1 using M99;.

このように、多数のユーザマクロをメモリに記憶させて
おき、且つNCプログラム中にユーザマクロを呼出すユ
ーザマクロ命令G65、マクロ名及び変数を特定する値
を入力しておけば、所定のノくターンに沿ったNO加工
処理等を行りうことができる。
In this way, by storing a large number of user macros in memory, and inputting the user macro instruction G65 for calling the user macro, the macro name, and the value specifying the variable in the NC program, a predetermined number of turns can be executed. It is possible to perform NO processing, etc. in accordance with the above.

このようなユーザマクロ機能は、工作機械にユーザ特有
の動作を行わせることができると共に、プログラミング
が簡単になり有効である。
Such a user macro function allows the machine tool to perform a user-specific operation, and is effective because it simplifies programming.

さて、従来のプレイバックによるNOデータ作成方法は
前述のように位置指令データのみが対象であったため、
現在主流を占めつ\あるサブプログラム、ユーザマクロ
を用いたパターンブレイノくツク機能をNCプログラム
の中に組み込むことができなかった。
Now, since the conventional NO data creation method using playback was only applicable to position command data as mentioned above,
It was not possible to incorporate into the NC program the pattern brain search function using subprograms and user macros, which are currently the mainstream.

以上から、本発明はNCプログラム中にノくターンプレ
イバック機能を容易に組み込めるNCプログラム作成方
式を提供することを目的とする。
In light of the above, an object of the present invention is to provide an NC program creation method that can easily incorporate a turn playback function into an NC program.

第3図は本発明の実施例ブロック図である。FIG. 3 is a block diagram of an embodiment of the present invention.

操作盤OPN上のモード切換スイッチをブレイノくツク
モードにすると処理装置CPUはNOデータ作成処理を
以後実行する。
When the mode changeover switch on the operation panel OPN is set to the brain check mode, the processing unit CPU thereafter executes the NO data creation process.

ついで、操作盤OPN上の+X方向、−X方向、+Y方
向、−Y方向のジョグ送シ釦P JX 、 NJX。
Next, press the jog feed buttons PJX, NJX in the +X direction, -X direction, +Y direction, and -Y direction on the operation panel OPN.

P JY 、 NJYをそれぞれ押圧すれば対応するア
ンドゲートPGX 、 NGX 、 PGY 、NGY
が開らき、ノ(ルス発生器PGCから発生するパルスP
sは、十X手動パルスPX、−X手動パルスNX、 +
Y手11b)(ルスPY1−Y手動パルスNYとなって
合成回路cpx。
If you press P JY and NJY respectively, the corresponding AND gates PGX, NGX, PGY, NGY
is opened, and the pulse P generated from the pulse generator PGC
s is 10X manual pulse PX, -X manual pulse NX, +
Y hand 11b) (Rus PY1-Y becomes manual pulse NY and synthesizes circuit cpx.

CPYに印加される。合成回路CPXはPX、NXを合
成してX軸サーボユニッh XSUに印加し、合成回路
CPY i−i: PY 、 NYを合成してY軸サー
ボユニットYSUに印加する。これにより、X軸、Y軸
サーボユニットXSU 、 YOUはそれぞれX軸モー
タXM。
Applied to CPY. The synthesis circuit CPX synthesizes PX and NX and applies it to the X-axis servo unit hXSU, and the synthesis circuit CPYii: PY, NY synthesizes and applies it to the Y-axis servo unit YSU. As a result, the X-axis and Y-axis servo units XSU and YOU each have an X-axis motor XM.

Y軸モータYMを駆動する。X軸モータXM、Y軸モー
タYMが所定量回転すれば)(ルコーダPCX。
Drive Y-axis motor YM. If the X-axis motor XM and Y-axis motor YM rotate by a predetermined amount) (Lucorder PCX.

PCYより1個のフィードバックパルスPFX、PFY
が発生し、該フィードバックパルスPFX 、 PFY
はそれぞれX軸サーボユニツ)XSU及びY軸サーボユ
ニットYSHにフィードバックされ、各サーボユニット
は入力パルスと帰還パルスの差が零となるようにモータ
を駆動制御する。
One feedback pulse PFX, PFY from PCY
is generated, and the feedback pulses PFX, PFY
are fed back to the X-axis servo unit (XSU) and Y-axis servo unit YSH, respectively, and each servo unit drives and controls the motor so that the difference between the input pulse and the feedback pulse becomes zero.

上記動作と併行して、十X手動ノ(ルスPXは可逆カウ
ンタ(X軸現在位置カウンタ) RCXの加算端子に、
−X手動パルスNXは可逆カウンタRCXの減算端子に
、+Y手動パルスPYは可逆カラyり(Y軸現在位置カ
ウ/り) RCYの加算端子に、−y手mパルスNYは
可逆カウンタRCYの減算端子にそれぞれ印加される。
In parallel with the above operation, the addition terminal of 10X manual counter (PX is a reversible counter (X-axis current position counter) RCX,
-X manual pulse NX goes to the subtraction terminal of the reversible counter RCX, +Y manual pulse PY goes to the addition terminal of reversible color (Y-axis current position counter) RCY, -y hand m pulse NY goes to the subtraction terminal of the reversible counter RCY applied to each terminal.

可逆カラ/りRCXは十X手動パルスPXが発生する毎
にその内容をカウントアツプし、又−X手動ノ(ルスN
Xが発生する毎にその内容をカウントダウンしてX軸の
現在位置を記憶する。又、可逆カウンタRCYは+Y手
動パルスPYが発生する毎にその内容をカウントアツプ
し、又−Y手動パルスNYが発生する毎にその内容をカ
ウントダウンしてY軸の現在位置を記憶する。
The reversible color/RCX counts up the contents every time 10X manual pulse PX occurs, and also counts up the contents every time 10X manual pulse PX occurs.
Every time X occurs, the contents are counted down and the current position on the X axis is stored. Further, the reversible counter RCY counts up the contents every time the +Y manual pulse PY occurs, and counts down the contents every time the -Y manual pulse NY occurs, and stores the current position on the Y axis.

さて、手動操作により機械可動部を所望の位置P1 (
XI l )’+ ’に位置決めする。
Now, by manual operation, move the mechanical movable part to the desired position P1 (
XI l )'+'.

所望の位t Pl (XI + 3’I )への位置決
め完了後、マニエアルデータインプット装置MDI上の
キーを以下の順に ″″XXキーN5RTキー、Yキー、lN5RTキー、
:キー”押圧すれば処理装置CPUは可逆カウンタRC
X 、 RCyに記憶されている現在位置(Xi 1 
)’t )を用いて以下のNCデータを作成し Xx、Y)’、: パートプログラムメモリPPMに記憶する。
After completing the positioning to the desired position t Pl (XI + 3'I), press the keys on the manual data input device MDI in the following order: XX key, N5RT key, Y key, IN5RT key,
: If the key is pressed, the processing unit CPU will start the reversible counter RC.
X, the current position stored in RCy (Xi 1
)'t) to create the following NC data and store it in the part program memory PPM.

以後同様にNCデータが作成されてパートプログラムに
記憶されてゆく。そして、所定の位置に機械可動部を位
置決めし、上述の操作で該位置のNCデータを作成して
パートプログラムメモリPPMに記憶後、パターンプレ
イバック機能を有する命令を作成する。さて、この命令
は、たとえば第2図に示すラインテトアングルのパター
ンであればマニュアルデータイ/プツト装置MDIより
(,65P口口・・・DI・・・ JΔΔ・・・Δ K
O○・・・O+  (1)というように、ユーザマクロ
呼出命令G65、ユーザマクロ識別名P1間隔工、角度
J、穴個数Kを入力するだけで骸ライ)7トアングルの
NCデータ(実際に#1(11に示すNCデータ)がパ
ートプログラムメモリPPMに記憶される。尚、ユーザ
マクロによるパターンは第2図に限らず、第4図に示す
ようにボルトホールサークルのパターン婢各種パターン
が用意されている。そして、第4図の場合には Q65  p・・・ R・・・ J・・・ K・・・;
というように、ユーザマクロ呼出命令G65、ユーザマ
クロ識別名P・・・、半径R1角度J1穴個数Kを入力
すればよい。
Thereafter, NC data is created in the same way and stored in the part program. Then, the mechanical movable part is positioned at a predetermined position, NC data at the position is created by the above-described operation, and after storing it in the part program memory PPM, an instruction having a pattern playback function is created. Now, for example, if the line tetragonal pattern shown in FIG.
O○...O+ (1) Just input the user macro call command G65, user macro identification name P1 spacing, angle J, and number of holes K to create the NC data of the 7-angle (actually # 1 (NC data shown in 11) is stored in the part program memory PPM.The patterns created by the user macro are not limited to those shown in FIG. In the case of Figure 4, Q65 p... R... J... K...;
In this way, user macro calling command G65, user macro identification name P..., radius R1 angle J1 number of holes K may be input.

以後、同様の操作により所定のパートプログラムが作成
され、パートプログラムメモリPPMに記憶される。
Thereafter, a predetermined part program is created by the same operation and stored in the part program memory PPM.

ハートプログラム作成完了後、操作盤OPN上のモード
切換スイッチによ〕自動運転モードを選択し、サイクル
スタート釦を押せば処理装置CPUはパートプログラム
メモリPPMより1命令づつ呼出して数値制御処理を実
行する。そして、位置指令データであれば、インクリメ
ンタル値ΔX、ΔYを演算してパルス分配器PDCに入
力する。パルス分配器PDCはΔX、ΔYに基いてパル
ス分配演算を実行し、分配パルスxp、ypをX軸サー
ボユニットXSU、 Y軸サーボユニットYSHに入力
し、C尚、分配パルスXP、YPの各サーボユニットへ
の供給線は省略している)、モータMX、MYを回転し
て工具、テーブルなどの機械可動部を移動させる。
After completing the heart program creation, select the automatic operation mode with the mode changeover switch on the operation panel OPN, and press the cycle start button.The processing unit CPU will call out one command at a time from the part program memory PPM and execute numerical control processing. . If it is position command data, incremental values ΔX and ΔY are calculated and input to the pulse distributor PDC. The pulse distributor PDC executes pulse distribution calculation based on ΔX and ΔY, inputs the distribution pulses xp and yp to the X-axis servo unit XSU and Y-axis servo unit YSH, and inputs the distribution pulses (The supply lines to the unit are omitted) and motors MX and MY are rotated to move mechanical movable parts such as tools and tables.

そして、パートプログラムメモリPPMよりユーザマク
ロ命令が読み出され\ば、ユーザマクロ識別名が指示す
るユーザマクロをユーザマクロメモリUMMより読み出
すと共に、該ユーザマクロ中の変数1.J、Kをパート
プログラムで指定した値で置き変え、i@2図に示すパ
ターンに応じたNC処′理を行なう。
Then, when the user macro instruction is read from the part program memory PPM, the user macro specified by the user macro identification name is read from the user macro memory UMM, and variables 1. Replace J and K with the values specified in the part program, and perform NC processing according to the pattern shown in Figure i@2.

以上、本発明によればNCプログラム中にパターンプレ
イバック機能を容易に組み込めるNCプログラム作成方
底金提供できる。
As described above, according to the present invention, it is possible to provide a method for creating an NC program that can easily incorporate a pattern playback function into the NC program.

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

第1図は通常のNOプログラムとユーザマクロの関係図
、第2図はユーザマクロによp実行され゛るパターン図
、第3図は本発明の実施例ブロック図、第4・図はユー
ザマクロによる別のパターン図である。 PJX 、 NJX 、 PJY 、 NJY・・・+
X方向、−X方向、十Y方向、−Y方向のジlグ送り釦
、PGC・・・パルス発生器、XE’11 、 Y利I
・・・X軸モータ、Y軸モータ、Rcx 、 RCY−
M逆カウ741、OPN・・・操作盤、MDI・・・マ
ニュアルデータイ/プツト装置、CPU・・・処理装置
、PPM・・・パートプログラムメモリ、UM・・・ユ
ーザマクロメモリ、PDC・・・パルス分配器特許出願
人 ファナック株式会社 代理人弁理士 辻      實 外1名
Figure 1 is a relationship diagram between a normal NO program and a user macro, Figure 2 is a pattern diagram executed by a user macro, Figure 3 is a block diagram of an embodiment of the present invention, and Figure 4 is a user macro diagram. It is another pattern diagram by. PJX, NJX, PJY, NJY...+
Jig feed button in X direction, -X direction, Y direction, -Y direction, PGC...Pulse generator, XE'11, Y control
...X-axis motor, Y-axis motor, Rcx, RCY-
M reverse cow 741, OPN...operation panel, MDI...manual data input device, CPU...processing device, PPM...part program memory, UM...user macro memory, PDC... Pulse distributor patent applicant: FANUC Co., Ltd. Patent attorney: Mangai Tsuji (1 person)

Claims (1)

【特許請求の範囲】[Claims] 機械可動部の現在位置を記憶すると共に、該機械可動部
を所望の位置迄移動させ、しかる後前記機械可動部の現
在位置を用いてNCデータを作成し、以後同様な操作を
繰返し、複数のNCデータを含むNCプログラムを作成
するNCプログラム作成方法において、変数を用いて作
成された多数のサブプログラムをメモリに予め記憶させ
ておき、所定のサブプログラムの名称を入力すると共に
、該サブプログラムに用いられている変数を特定して入
力することにより、機械可動部を該サブプログラム並び
に特定値に基いて制御するNCデータをNCプログラム
に含ませることを特徴とするNCプログラム作成方式。
The current position of the mechanical movable part is memorized, the mechanical movable part is moved to a desired position, and then the current position of the mechanical movable part is used to create NC data. In an NC program creation method for creating an NC program including NC data, a large number of subprograms created using variables are stored in memory in advance, the name of a predetermined subprogram is input, and the name of the subprogram is An NC program creation method characterized in that the NC program includes NC data for controlling a mechanical movable part based on the subprogram and specific values by specifying and inputting variables used.
JP12328582A 1982-07-15 1982-07-15 Nc program forming system Pending JPS5914009A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12328582A JPS5914009A (en) 1982-07-15 1982-07-15 Nc program forming system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12328582A JPS5914009A (en) 1982-07-15 1982-07-15 Nc program forming system

Publications (1)

Publication Number Publication Date
JPS5914009A true JPS5914009A (en) 1984-01-24

Family

ID=14856777

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12328582A Pending JPS5914009A (en) 1982-07-15 1982-07-15 Nc program forming system

Country Status (1)

Country Link
JP (1) JPS5914009A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60179803A (en) * 1984-02-28 1985-09-13 Amada Co Ltd Method for editing and correcting program in numerical control device
JPS6116734A (en) * 1984-06-22 1986-01-24 エヌ・ベー・フイリツプス・フルーイランペンフアブリケン Tomographic radiation image forming apparatus
JPS62204310A (en) * 1986-03-04 1987-09-09 Fanuc Ltd Editing system for working program
WO1992011590A1 (en) * 1990-12-18 1992-07-09 Fanuc Ltd Instruction method for robot operation program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60179803A (en) * 1984-02-28 1985-09-13 Amada Co Ltd Method for editing and correcting program in numerical control device
JPS6116734A (en) * 1984-06-22 1986-01-24 エヌ・ベー・フイリツプス・フルーイランペンフアブリケン Tomographic radiation image forming apparatus
JPS62204310A (en) * 1986-03-04 1987-09-09 Fanuc Ltd Editing system for working program
WO1992011590A1 (en) * 1990-12-18 1992-07-09 Fanuc Ltd Instruction method for robot operation program

Similar Documents

Publication Publication Date Title
US5465215A (en) Numerical control method and apparatus
US5315503A (en) Numerical control apparatus having a teaching function and a method of teaching a machining program thereby
JPS60263211A (en) Data input device of interactive numerically controlled machine tool
KR890002435B1 (en) A numerical control method
EP0099733B1 (en) Method and apparatus for creating nc programs
JPS5914009A (en) Nc program forming system
EP0060039B1 (en) Numerically controlled machine tool system
US5479354A (en) Method for the computer-assisted control of a machine or process
JPS59123002A (en) File protecting system for numerical controller
JPS58119425A (en) Cnc device of spinning machine
JPS6332608A (en) Numerical controller
JPS6232805B2 (en)
KR890001355B1 (en) Numerical control device
WO1990000765A1 (en) Numerical controller
WO1992004664A1 (en) Method of working simulation
JPH0729256B2 (en) Tool change position teaching method
JPH0563749U (en) Numerical control device with processing time calculation function
JPS62106506A (en) Method for correcting variable of robot control program
JP2869105B2 (en) Workpiece processing data editing method
JPS62204310A (en) Editing system for working program
WO1990002984A1 (en) Method of forming nc data
JP2895685B2 (en) Numerical control unit
JPH08263121A (en) Machining path tracing-back system for cnc
JP2642451B2 (en) Numerical control unit
JPS63709A (en) Interactive nc device