JPS6149203A - Numerical control method - Google Patents

Numerical control method

Info

Publication number
JPS6149203A
JPS6149203A JP17123884A JP17123884A JPS6149203A JP S6149203 A JPS6149203 A JP S6149203A JP 17123884 A JP17123884 A JP 17123884A JP 17123884 A JP17123884 A JP 17123884A JP S6149203 A JPS6149203 A JP S6149203A
Authority
JP
Japan
Prior art keywords
program
numerical control
machine
data
tool
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
JP17123884A
Other languages
Japanese (ja)
Inventor
Takaomi Fukuyama
福山 敬臣
Nobuyuki Kitani
木谷 信之
Masaharu Igawa
正治 井川
Katsutoshi Naruse
成瀬 勝俊
Masakazu Furusawa
古澤 満佐一
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.)
Toyota Motor Corp
Fanuc Corp
Original Assignee
Toyota Motor Corp
Fanuc 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 Toyota Motor Corp, Fanuc Corp filed Critical Toyota Motor Corp
Priority to JP17123884A priority Critical patent/JPS6149203A/en
Publication of JPS6149203A publication Critical patent/JPS6149203A/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/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/406Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by monitoring or safety
    • G05B19/4067Restoring data or position after power failure or other interruption
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/34Director, elements to supervisory
    • G05B2219/34337Manual to automatic, tracer
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/50Machine tool, machine tool null till machine tool work handling
    • G05B2219/50289Tool offset general

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)

Abstract

PURPOSE:To improve the operability of a numerical control method by monitoring both the position coordinate value of a program command and the present position coordinate value of a machine and positioning the mobile part of the machine at a program position according to the data of said two coordinate values when a control start request is delivered. CONSTITUTION:A numerical controller contains a processor 101, a RAM103, an operating board 105, etc. and controls a machine tool 111 via a pulse distributor 107. In this case, the pulse distribution is calculated based on the path data included in an NC (numerical control) program. Then the mobile part of the machine tool is moved and also a pulse interpolation point is monitored as a program position. At the same time, the actual position of the machine tool is monitored as a slide position. Then the control is stopped and a manual operation is carried out for exchange of tools and check of the working state. Thus a difference is produced between said program and slide positions. Therefore the tool is shifted by an amount equal to said difference to obtain the coincidence between both positions. Then the numerical control is started at a stop point according to the NC program data.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は数値制御方法に係り、特にプログラム指令上の
位置(プログラムボジシヲン)と機織位置(スライドポ
ジション)の両位置を監視し、起動要求あるいは手動介
入後等の再起動要求があった時、スライドポジションが
プログラムポジションに一致するようにta械可動部を
移動させ、しかる後NCプログラム制御を開始する数値
制御方法に関する。
[Detailed Description of the Invention] <Industrial Application Field> The present invention relates to a numerical control method, and in particular monitors both the position according to the program command (program position) and the weaving position (slide position), and issues a start request. Alternatively, the present invention relates to a numerical control method in which, when a restart request is made after manual intervention, the mechanical movable part is moved so that the slide position matches the program position, and then NC program control is started.

〈従来技術〉 NCプログラムデータに基づいた数値制御の途中で工具
が折損した場合、あるいは加工状況をチェックしたい場
合等においては、一端NCプログラムデータによる数値
制御処理を停止し、ついで工具を手動で逃がして工具交
換、加工チェック、その他の処理を行ない、しかる後再
度NCプログラムデータによる加工を再開する。ところ
で、従来加工の再開にあたっては、工具を原点に位置決
めして再び最初からNCプログラムデータによる数値制
御をやりMすものであった。また、別の方法としては、
予め工具交換を実行するカスタムマクロを登録しておく
と共に、工具の折損をセンサで監視し、工具折損が検出
された時機械位置を記憶し、しかる後カスタムマクロの
制御で工具交換点へ旧工具を移動させ、工具交換し、新
工具を工具折損位置へ位置決めし、しかる後NCプログ
ラムデータによる加工を再開する。
<Prior art> If a tool breaks during numerical control based on NC program data, or if you want to check the machining status, stop the numerical control process based on NC program data, and then manually release the tool. Then, tool exchange, machining check, and other processing are performed, and then machining based on the NC program data is resumed. By the way, conventionally, when restarting machining, the tool is positioned at the origin and numerical control is performed again from the beginning using NC program data. Also, another method is
In addition to registering a custom macro to execute tool exchange in advance, a sensor monitors tool breakage, stores the machine position when tool breakage is detected, and then returns the old tool to the tool exchange point under the control of the custom macro. is moved, the tool is replaced, a new tool is positioned at the tool breakage position, and machining is then restarted using the NC program data.

〈発明が解決しようとしている問題点〉しかし、従来の
第1の方法では加工の再開にあたって、機械を原点に移
動させて最初から加工をやり直すものであり、加工時間
が長くなり、しかも操作が面倒であった。
<Problems to be solved by the invention> However, in the first conventional method, when restarting machining, the machine is moved to the origin and machining is restarted from the beginning, which increases machining time and is cumbersome to operate. Met.

又、カスタムマクロを用いる第2の方法では工具折損処
理を自動的に行えるが、システムが大がかりとなってコ
スト高となり、しかも工具折損処理以外の場合には適用
できない欠点がある。
In addition, in the second method using a custom macro, tool breakage processing can be automatically performed, but the system is large-scale, resulting in high costs, and has the disadvantage that it cannot be applied to cases other than tool breakage processing.

以上から本発明の目的は、NCプログラムデータによる
数値制御の途中で、工具折損、加工チェック等のために
手gJ操作が介在し、あるいは機械の障害(たとえばサ
ーボ系のボジシヲンループの切断)でプログラム上の位
置(プログラムポジションという)と機械位置(スライ
ドポジションという)が異なっても、プログラムポジシ
ョンからNCプログラムデータによる数値制御処理を再
開できる数値制御方法を提供することである。
In light of the above, an object of the present invention is to prevent the program from being interrupted during numerical control using NC program data due to tool breakage, manual GJ operation to check machining, etc., or machine failure (for example, disconnection of the position loop of the servo system). To provide a numerical control method capable of restarting numerical control processing based on NC program data from the program position even if the position of the machine (referred to as the program position) and the machine position (referred to as the slide position) are different.

本発明の別の目的は、常時プログラムポジションとスラ
イドポジションの両方を監視し、起動要求あるいは再起
動要求があった時、NCプログラムデータによる数値制
御開始前に両ボジシ≧ンの位置データを用いて機械可動
部をプログラムポジションに移動させ、しかる後数値制
如を行う数値制御方法を提供することである。
Another object of the present invention is to constantly monitor both the program position and the slide position, and when there is a start request or restart request, use the position data of both positions ≧ before starting numerical control using NC program data. It is an object of the present invention to provide a numerical control method for moving a mechanical movable part to a programmed position and then performing numerical control.

本発明の更に別の目的は、起動時あるいは再起動時にプ
ログラムポジションとスライドポジション間の距離ある
いは各軸毎の位置偏差をチェックし、該距離あるいは位
置偏差が大きい場合には起動要求あるいは再起動要求を
無効にし、機械可動部のスライドポジションからプログ
ラムポジション迄の長距離移動に伴う危険を防止できる
数値制御方法を提供することである。
Still another object of the present invention is to check the distance between the program position and the slide position or the positional deviation for each axis at the time of startup or restart, and if the distance or positional deviation is large, a startup request or restart request is made. An object of the present invention is to provide a numerical control method that can prevent the danger associated with long-distance movement of a mechanical movable part from a slide position to a program position.

本発明の他の目的はNCプログラム制部時に機(戒位置
がプログラム位置からはずれることがない、しかも加工
ミスの少ない操作性のよい数値制御方法を提供すること
である。
Another object of the present invention is to provide a numerical control method that prevents the machine position from deviating from the programmed position during NC program control and has good operability with fewer machining errors.

く問題点を解決するための手段〉 本発明の数値制御方法は、NCプログラムデータに基づ
いて更新されるプログラム指令上の位置座標値と機械の
現在位置に基づいて更新される機械位置座標値とを監視
し、NCプログラムデータによる制御開始要求があった
時、プログラム位置データと機械位置データとに基づい
て機械可動部をプログラム位置に位置決めし、しかる後
NCプログラムデータによりNC制御処理を実行するこ
とにより構成される。
Means for Solving the Problems> The numerical control method of the present invention comprises a position coordinate value on a program command that is updated based on NC program data and a machine position coordinate value that is updated based on the current position of the machine. , and when there is a request to start control based on NC program data, position the machine movable part to the program position based on the program position data and machine position data, and then execute NC control processing based on the NC program data. Consisted of.

又、本発明の数値制御方法は更に、前記開始要求があっ
た時プログラム位置と機械位置との差が予め定めた許容
値より小さいかどうかをチェックし、該差が許容値より
小さい時、機械をプログラム位置に位置決めし、しかる
後NCプログラムデータによるNC制御処理を行い、前
記差が許容値より大きい時、前記開始要求を無効とする
構成を有している。
Furthermore, the numerical control method of the present invention further checks whether the difference between the program position and the machine position is smaller than a predetermined tolerance when the start request is received, and when the difference is smaller than the tolerance, the machine is positioned at the program position, then NC control processing is performed based on the NC program data, and when the difference is greater than an allowable value, the start request is invalidated.

く作用〉 NCプログラムデータに含まれる通路データに基づいて
パルス分配演算を実行して機械可動部を移動させろと共
に、パルス補間点をプログラムポジシアンとして監視す
る。又、実際の機械位置をスライドポジションとして同
様に監視する。たとえば、NCプログラムデータに基づ
く制御時にはプログラムポジションと同様な方法でスラ
イドポジシリンを更新しくパルス補間点をスライドポジ
ションと・する)、更に手動操作により機械可動部を移
動する時、あるいはポジションループが切断して機械可
動部が勝手に移動する時機械現在位置を所定の方法で監
視しスライドポジションを更新する。従って、NCプロ
グラムデータに基づ(制御の途中で工具が折損して工具
交換を行うために、あるい耐よ加工状態をチェックする
ためにN01党グラムデータに基づく制御を停止して手
動操作が介入するとプログラムポジションとスライドポ
ジションが相違する。かかる場合、サイクルスタート釦
が押されて起動(再起動)がかかると、プログラムポジ
シアンとスライドポジションの位if1票値を比較し、
その差が許容値以下であれば工具をその差分t4け移動
させてスライドポジションをプログラムポジションに一
致させ、しかる後NCプログラムデータに基づいて停止
点(プログラムポジシアン)から数値制御処理を開始す
る。一方、前記差が許容値以上であれば起動要求を無効
とし、手動操作により工具をプログラムボジシ1ンに接
近させて許容値以下にしてから再度サイクルスタート釦
を押圧して起動をかけ、停止点からNCプログラムデー
タに基づく数値制御処理を開始する。
Function> A pulse distribution calculation is executed based on the path data included in the NC program data to move the mechanical movable part, and the pulse interpolation point is monitored as a program positive. Also, the actual machine position is similarly monitored as the slide position. For example, during control based on NC program data, the slide position is updated in the same way as the program position (the pulse interpolation point is set as the slide position), and when the moving part of the machine is moved by manual operation, or when the position loop is broken. When the movable parts of the machine move by themselves, the current position of the machine is monitored by a predetermined method and the slide position is updated. Therefore, based on the NC program data (in order to replace the tool if the tool breaks during control, or to check the machining condition), the control based on the N01 program data is stopped and manual operation is performed. If there is an intervention, the program position and the slide position will be different.In such a case, when the cycle start button is pressed to start (restart), the position if1 vote value of the program position and the slide position will be compared,
If the difference is less than the allowable value, the tool is moved by the difference t4 to match the slide position with the program position, and then numerical control processing is started from the stop point (program position) based on the NC program data. On the other hand, if the difference is above the allowable value, the start request is invalidated, and the tool is brought closer to the program position 1 by manual operation to bring it below the allowable value, and then the cycle start button is pressed again to start and stop. Numerical control processing based on the NC program data is started from the point.

〈実施例〉 第1図は本発明の概略説明図であり、図中WK;より−
ク、TLは工具、P はプログラムポジション、2%は
スライドポジションである。
<Example> FIG. 1 is a schematic explanatory diagram of the present invention, and in the figure WK;
TL is the tool, P is the program position, and 2% is the slide position.

NCプログラムデータに基づく自動運転時、機械が正常
に動作していればプログラムポジションP、とスライド
ポジションP、は一致している(第1図(A)参照)。
During automatic operation based on NC program data, if the machine is operating normally, the program position P and slide position P match (see FIG. 1(A)).

しかし、なんらかの理由でたとえば工具交換あるいは加
工状態のチェックのために自動運転を停止し、しかる後
手動操作により工具゛rLを移動させるとプログラムポ
ジシアンP とスライドポジションP とは一致しなく
なる(第1図CB)参照)。
However, if automatic operation is stopped for some reason, for example, to change a tool or check the machining status, and then the tool ゛rL is moved manually, the program position P and the slide position P will no longer match (the first (See Figure CB).

さて、工具交換あるいは加工状態チェック完了後、操作
盤上のサイクルスタート釦を押して起動(再起動)をか
けると、プロセッサはプログラムボンシ璽ンP とスラ
イドポジ9フ22間の位置偏差を各制御軸毎に求め、そ
れらが許容値以下かどうかをチェックする(第1図(C
)参照)。
Now, after changing the tool or checking the machining status, press the cycle start button on the operation panel to start (restart), and the processor will control the position deviation between the program position P and the slide position 9 and 22. Calculate each axis and check whether they are below the allowable value (see Figure 1 (C)
)reference).

そして、全軸の位置偏差が許容値以下であれば該各軸の
位置偏差量をインクリメンタル指令値とみなして、工具
TLをプログラムポジションP−こ位匝決めする。これ
により、スライドポジションPはプログラムボジシ1ン
Pに再び一致する(第1図(DJ参照)。
If the positional deviation of all the axes is less than the allowable value, the positional deviation of each axis is regarded as an incremental command value, and the tool TL is placed in the program position P. As a result, the slide position P matches the program position P again (see FIG. 1 (DJ)).

プロセッサは工具がプログラムポジシアンP に到達す
れば以後該プログラムボジシヲンからNCプログラムデ
ータに基づ(自動運転制御を再開する(第1図(E)参
照)。
When the tool reaches the program position P, the processor resumes automatic operation control from the program position based on the NC program data (see FIG. 1(E)).

尚、再起動時少なくとも1つの制御軸の位置偏差が許容
値以上であれば、工具はプログラムボジシ1ンに向けて
移動せず起動要求は無視される。
Note that if the positional deviation of at least one control axis is equal to or greater than the allowable value at the time of restart, the tool will not move toward the program position 1 and the startup request will be ignored.

これは、位置偏差が大きいとスライドポジションP、か
らプログラムポジションP0への移動の際、工具TLが
ワークWKに当接したり、あるいはオペレータに接触す
る場合があって危険ななめである。従って、位置偏差が
大きい場合には手動で工具をプログラムポジシアンに接
近させた後サイクルスタート釦を押して起動をかけるこ
とになり、以後前述と同様に工具はプログラムポジシア
ンに向けて移動し、再び自動運転が開始される。
This is a dangerous slant because if the positional deviation is large, the tool TL may come into contact with the workpiece WK or the operator when moving from the slide position P to the program position P0. Therefore, if the positional deviation is large, you must manually move the tool close to the programmed positionian and then press the cycle start button to start the cycle.Then the tool will move towards the programmed positional position in the same way as described above, and then start again. Automatic driving begins.

第2図は本発明方法を適用した数値制御i[D装置のブ
ロック図である。図中、101はプロセッサ、102は
制御プログラムを記憶するROM、103ξよRAM、
104はNCテープNTからNCプログラムデータを読
み取るデータ読取装置、105は操作盤、106はディ
スプレイ装置付きマニュアルデータインプット装置(M
DI装首という)、1071;tパルス分配器、108
X 〜108Zf;を各軸のサーボ回路、109x〜1
09Zは各軸のモータ、110x〜110Zは対応する
モータが所定量回転する毎に1個のパルスFx、 F、
、、 F2を発生するパルスコーグ、111は工作機械
、112は工作機械と制御装置間のデータ授受をつかさ
どるインタフェース回路である。
FIG. 2 is a block diagram of a numerical control i[D device to which the method of the present invention is applied. In the figure, 101 is a processor, 102 is a ROM that stores a control program, 103ξ is a RAM,
104 is a data reading device for reading NC program data from the NC tape NT, 105 is an operation panel, and 106 is a manual data input device (M
(referred to as DI neck), 1071; t pulse distributor, 108
X ~ 108Zf; servo circuit for each axis, 109x ~ 1
09Z is the motor of each axis, and 110x to 110Z are one pulse Fx, F, every time the corresponding motor rotates a predetermined amount.
,, a pulse cog that generates F2, 111 a machine tool, and 112 an interface circuit for exchanging data between the machine tool and the control device.

各サーボ回路108x〜108Zはそれぞれ同一の溝成
合有し、パルス分配器107から出力されろ分配パルス
PxSP、、F2とパルスコーグ110x〜110Zか
ら発生するフィードパンクパルスF6、Fv、 F2と
の差分E8、E、f、 E、を記憶するエラーレジスフ
ERX、ERY、ERZと、差分に比例したアナログ電
圧を出力するDA*換器DAX、DAY、DAZと、速
度制御回路5CXSSCY、SCZを有している。
Each of the servo circuits 108x to 108Z has the same groove composition, and the difference E8 between the distributed pulse PxSP, F2 output from the pulse distributor 107 and the feed puncture pulses F6, Fv, F2 generated from the pulse cogs 110x to 110Z, It has error registers ERX, ERY, and ERZ that store E, f, and E, DA* converters DAX, DAY, and DAZ that output analog voltages proportional to the difference, and speed control circuits 5CXSSCY and SCZ.

以下第3図に示すフローチャートに従って、本発明の数
値制御方法を説明する。尚、以下の各ステップを示す符
号を第3図のフローチャートの対応するブロックの右肩
に付している。又、NCプログラムデータはデータ読取
装置104によりNCテープNTから読み取られてRA
M103に既に記憶されているものとする。更に、以下
においてはNCプログラムデータに基づく自動運転の途
中て操作盤105上のフィードホールドスイッチが操作
されて自動運転を停止し、ついて手動の介入により工具
を移動させ、所定の操作後にサイクルスタート鎖により
再起動をかける場合について説明するが本発明はかかる
場合に限らない。
The numerical control method of the present invention will be explained below according to the flowchart shown in FIG. Note that the symbols indicating the following steps are attached to the right shoulder of the corresponding blocks in the flowchart of FIG. Further, the NC program data is read from the NC tape NT by the data reading device 104 and sent to the RA.
Assume that it is already stored in M103. Furthermore, in the following, the feed hold switch on the operation panel 105 is operated during automatic operation based on NC program data to stop automatic operation, the tool is then moved by manual intervention, and after a predetermined operation, the cycle start chain is stopped. A case will be described in which a restart is performed, but the present invention is not limited to such a case.

(al  操作盤105上のサイクルスタート釦を押圧
して起動をかける′。これにより、プロセッサ101ば
RAMU 103から1ブロック分のNCデータを読み
取る。
(al Press the cycle start button on the operation panel 105 to start the cycle.) As a result, the processor 101 reads one block of NC data from the RAMU 103.

(bl  プロセッサは読み取ったNCデータがプログ
ラムエンドを示すコード(たとえばMO2またはM2O
3を含んでいるかどうかをチェックする。
(bl The processor uses the read NC data as a code indicating the program end (for example, MO2 or M2O).
Check whether it contains 3.

(cl  含んでいればNCプログラムデータに基づく
数値制御処理は終了する。
(cl) If it is included, the numerical control process based on the NC program data ends.

(d)シかし、NCデータがプログラムエンドを示すコ
ードを含んでいなければ、プロセッサは該NCデータが
通路データかどうかをチェックする。
(d) However, if the NC data does not include a code indicating program end, the processor checks whether the NC data is path data.

(elNcデータが通路データでな(、M−、S−、T
−機能命令であればこれ等をインタフェース回路112
を介して工作11[1111に出力する。
(elNc data is passage data (, M-, S-, T
- If it is a functional instruction, these are the interface circuit 112
Output to work 11 [1111 via.

そして、工作機械から該命令に対する動作終了を示す信
号をインタフェース回路112を介して受は取れば次の
NCデータを読み取ってステップ(bl以降の処理を繰
り返す。
When a signal indicating the end of the operation corresponding to the command is received from the machine tool via the interface circuit 112, the next NC data is read and the processing from step (bl) is repeated.

(fl  ステップ(dlにおいて、NCデータが通路
データであれば以下の通路制御を実行する。
(fl In step (dl), if the NC data is path data, the following path control is executed.

(fl−1まず、プロセッサ101はRAMIO3に記
憶きれているプログラムポジションの各軸現在位置(x
、、 y、、 z、)とNCデータにより指令された指
令位置の各軸座標値(Xc、 Yc、 Zc)との差分
を演算して各軸インクリメンタル値(x 。
(fl-1 First, the processor 101 starts each axis current position (x
.

Y、、 Z、)を求める。Find Y, , Z,).

(fl−2ついで、各軸インクリメンタル値と指令速度
Fとを用いて、予めパラメータ設定されている時間へT
(たとえば16 m5eclの間に各軸方向に移動すべ
き移動量Δx1ΔY1ΔZを次式6式%(2) より求め、これらΔx1ΔY1ΔZを時間ΔT毎にパル
ス分配@107に入力する。
(fl-2 Then, using the incremental value of each axis and the command speed F, the time T
(For example, the amount of movement Δx1ΔY1ΔZ to be moved in each axis direction during 16 m5ecl is determined from the following formula 6 (% (2)), and these Δx1ΔY1ΔZ are input to the pulse distribution @107 for each time ΔT.

[fl−3パルス分配器107は入力データに基づいて
同時3軸のパルス分配演算を行って分配パルスPA、 
P、、F2を発生して各軸のサーボ回路108X〜10
8Zに出力し、工具を指令通路に沿って移動させる。
[The fl-3 pulse distributor 107 performs simultaneous three-axis pulse distribution calculations based on the input data and distributes the distributed pulses PA,
Generate P,,F2 and servo circuit 108X~10 of each axis
8Z to move the tool along the commanded path.

(fl−4又、プロセッサ101はΔT秒毎にRAM1
03に記憶されているプログラムポジションの各軸現在
位置X1、Y、、Z、とスライドポジションの各軸現在
位置xffi、Yl、Z。、を次式6式%(4) により更新しく符号は移動方向に依存する)、更に同様
にΔT秒毎にRAM103に記憶されている各軸残移動
量x2、Y2、zl(初期値はそれぞれX4、Y7、z
lである)を次式 %式%(10) により更新する。
(fl-4 Also, the processor 101 stores RAM1 every ΔT seconds.
The current positions of each axis of the program position X1, Y, Z, stored in 03, and the current position of each axis of the slide position xffi, Yl, Z. , is updated by the following equation 6 (%(4)) (the sign depends on the direction of movement), and similarly, the remaining movement amounts x2, Y2, zl of each axis stored in the RAM 103 every ΔT seconds (the initial values are respectively X4, Y7, z
(10) is updated using the following formula (10).

(gl  プロセッサ101はステップ[flの処理と
並行して自動運転停止信号が発生したかどうか、たとえ
ば操作盤105上のフィードホールドスイッチが押され
たかどうかをチェックしている。
(gl) In parallel with the processing of step [fl, the processor 101 checks whether an automatic operation stop signal has been generated, for example, whether the feed hold switch on the operation panel 105 has been pressed.

[hl  プロセッサは自動運転停止信号(フィードホ
ールド信号)が発生していなければ次式%式%(13) が満たされるかどうかをチェックし、(]3)式が満だ
しされていなければステップffl以降の処理を繰り返
し、満たされていれば通路制御処理を終了して次のNC
データをRAM103から読み取り、以後ステップff
l以降の処理を繰り返す。
[hl If the automatic operation stop signal (feed hold signal) is not generated, the processor checks whether the following formula % formula % (13) is satisfied, and if the formula (]3 is not satisfied, step ffl Repeat the following process, and if the conditions are met, end the passage control process and proceed to the next NC.
Read data from RAM 103, and then step ff
Repeat the process after l.

(il  一方ステップ(glにおいて、フィードホー
ルドスイッチが押されてフィードホールド信号が発生し
ていれば、プロセッサ101はその時点の状態(切削状
態、位置決め状態、リセット状態)を記憶すると共に、
以後パルス分配器107へΔX、ΔY1ΔZを入力する
ことを停止する。これ(こより、ナーボ回路108x〜
108ZのエラーレジスタERX〜ERZに溜まってい
るパルスが吐き出される迄各軸モータは減速しながら回
転し、吐き出し後に停止する。
(il) On the other hand, in step (gl), if the feed hold switch is pressed and a feed hold signal is generated, the processor 101 stores the state at that time (cutting state, positioning state, reset state), and
Thereafter, inputting ΔX, ΔY1ΔZ to the pulse distributor 107 is stopped. This (from this, Nervo circuit 108x~
Each axis motor rotates at a reduced speed until the pulses stored in the error registers ERX to ERZ of 108Z are discharged, and then stopped.

(])シかる後、プロセッサ10’ 1は手動モードた
とえばジョグモードになって所定のジョグ釦が押された
かどうかを監視する(手動介入)。
(]) After this, the processor 10'1 enters a manual mode, for example, a jog mode, and monitors whether a predetermined jog button is pressed (manual intervention).

+kl  プロセッサ101は手動による介入がなけれ
ばサイクルスタート釦が押されたかどうか(再起動の要
求があったかどうか)をチェックする。
+kl Processor 101 checks whether the cycle start button has been pressed (if a restart request has been made) without manual intervention.

そして、再起動が要求されていなければステップ(jl
以降の処理を繰り返す。
Then, if a reboot is not requested, step (jl
Repeat the following process.

(m)  一方、ステップ(」)において手動による介
入(ジッダ送り)があれば、プロセ2す101は以下の
ジョブ送り処理を実行する。
(m) On the other hand, if there is manual intervention (jitter feed) in step (''), the process 2 101 executes the following job feed processing.

(ml −1プロセッサ101ばジョグ釦が押されれば
送り軸(x、y、zの別)及びその方向(正、負方向の
別)を読み取ると共に(+X軸方向とする)、予めパラ
メータ設定されているジヲグ送り速度F とΔTを用い
て次式 %式%(14) の演算を実行し、該ΔJを+Xジシグ釦が押されている
限りΔT秒毎にパルス分配器107に出力し、工具を+
X軸方向に移動させる。
(If the jog button is pressed, the ml-1 processor 101 reads the feed axis (x, y, z) and its direction (positive, negative) (+X axis direction), and sets parameters in advance. Using the jig feed speed F and ΔT, calculate the following formula % (14), output the ΔJ to the pulse distributor 107 every ΔT seconds as long as the +X jig button is pressed, + tools
Move in the X-axis direction.

+n11−2  又、プロセッサ101は上記処理と並
行してΔT秒毎に次式 %式%(15) の殖を行ってスライドポジシアンのX軸位置座標値xo
、を更新する。尚、−X方向のジング釦が押されれば(
15)式の符号はマイナスとなり、又 士Y’)ヨグ釦
あるいは±Z釦が押されれば(15)式に換えて次式 Y+ΔJ−4Y(16) あるいは次式 %式%(17) 以上により、手動の介入が終了すればプロセッサ101
はステップ(目の処理を行い再起動が要求されているか
どうかをチェックする。
+n11-2 In addition, in parallel with the above processing, the processor 101 multiplies the following formula % formula % (15) every ΔT seconds to obtain the slide positive X-axis position coordinate value xo
, update. Furthermore, if the -X direction button is pressed (
15) The sign of the formula becomes negative, and if the Y') Yog button or ±Z button is pressed, the formula (15) is replaced with the following formula Y + ΔJ-4Y (16) or the following formula % formula % (17) or more When the manual intervention is completed, the processor 101
Step (does the process and checks if a reboot is requested).

(n)  再起動が要求されていればプロセッサはRA
M103に記憶されているプログラムボレンヨン及びス
ライドポジシアンの各軸位置座標値を用いて次式 %式%(18) により、プログラムポジシランP とスライドポジ97
22%間の各軸位置偏差x1y1zを演算する。
(n) The processor is in RA if a reboot is requested.
Using the coordinate values of each axis position of the program positive and slide positive stored in M103, the program positive 97 and the program positive 97 are calculated by the following formula % formula % (18).
Each axis position deviation x1y1z between 22% is calculated.

(01ついで、プロセッサ101はフィードホールド信
号が発生した時点の状態(切削状態、位置決め状態、リ
セット状態)をチェックし、該状態に応じた各軸の許容
値Tx、T、、、T2をRAMから読みt!す。尚、各
軸の許容値はパラメータにより予め設定、記憶されてい
る。又、許容値TX、T、、T2は自動運転停止信号発
生時の状態に応じて適当な値に設定される。
(Next, the processor 101 checks the state at the time when the feed hold signal is generated (cutting state, positioning state, reset state), and stores the allowable values Tx, T, ..., T2 of each axis according to the state from the RAM. It reads t!The allowable values for each axis are set and stored in advance by parameters.Also, the allowable values TX, T, T2 are set to appropriate values depending on the state when the automatic operation stop signal is generated. be done.

(p)シかる後プロセッサは各軸許容値と、プログラム
ポジションとスライドポジション間の各軸位置偏差とを
それぞれ比較して、次式 %式%(21) が成立しているかどうかをチェックする。
(p) After the calculation, the processor compares each axis tolerance value with each axis position deviation between the program position and the slide position, and checks whether the following formula % formula % (21) holds true.

(ql(21)式が成立していれば、換言すればスライ
ドポジシアンP、がプログラムポジションP。
(ql If the formula (21) holds true, in other words, the slide positionian P is the program position P.

から許容範囲内に近接して存在すれば、プロセッサはX
5y1 Zを各軸インクリメンタル値としてステップ(
flに示す通路制御と同様な処理を行い(tコだし、位
置決め速度は早送り速度F0である)工具をプログラム
ポジションに位置決めする。これにより、スライドポジ
ションとプログラムポジションの各軸位置座標値は一致
し、以後ステップfflに戻って、自動運転停止点から
再びNCプログラムデータによる数値制御処理が繰り返
される。
X
5y1 Step with Z as incremental value for each axis (
A process similar to the path control shown in fl is performed (t is reached, and the positioning speed is rapid traverse speed F0) to position the tool at the program position. As a result, the axis position coordinate values of the slide position and the program position match, and thereafter the process returns to step ffl, and the numerical control process based on the NC program data is repeated again from the automatic operation stop point.

(rl  一方、ステップ(piにおいて少なくとも1
軸において(21)式が成立しなければ、プロセッサ1
01は再起動要求を無効とし、MDI装置106のディ
スプレイ画面にどの軸が許容値以上かどうかを表示する
。第4図はMDI装置106上のPO5−キーを押圧し
てディスプレイ画面に現在位置の表示が要求されている
場合の画像であり、ワーク座標系でのプログラムポジシ
ョンの各軸座標値(ABSOLUTEと表示されている
)と、ワーク座標系でのスライドポジシアンの各軸座標
値(SLIDE PO5,と表示されている)と、各軸
許容値(TOLERANCEと表示されている)が表示
され、許容範囲に入っているとマークなし、許容範囲内
に向けて移動中の場合はマーク1個(*)、許容範囲に
入っていない場合にはマーク2@(**)、許容範囲内
と逆方向に移動している場合にはマーク3個(***)
が対応する軸座標値の後に付されている。
(rl On the other hand, at least 1 in step (pi)
If equation (21) does not hold for the axis, processor 1
01 invalidates the restart request and displays on the display screen of the MDI device 106 which axis is greater than or equal to the allowable value. Figure 4 is an image when the PO5- key on the MDI device 106 is pressed to display the current position on the display screen. ), each axis coordinate value of the slide positionian in the work coordinate system (displayed as SLIDE PO5), and each axis tolerance value (displayed as TOLERANCE) are displayed. If it is within the tolerance range, there will be no mark; if it is moving within the tolerance range, there will be one mark (*); if it is not within the tolerance range, there will be a mark 2 @ (**), and if it is moving in the opposite direction to within the tolerance range. If so, mark 3 (***)
is added after the corresponding axis coordinate value.

以後、オペレータはディスプレイ画面を見て許容範囲に
入っていない軸を判別し、しかる後該軸を許容範囲に入
れるようにジョブ送りする。ジョブ送りにより全軸が許
容範囲内に入った後びサイクルスタート釦を押圧すれば
(21)式が膚たされて以後ステップ(ql以降の処理
が行われる。
Thereafter, the operator looks at the display screen and determines which axes are not within the allowable range, and then sends a job to bring the axes into the allowable range. When the cycle start button is pressed after all axes are within the allowable range due to job feeding, equation (21) is satisfied and the processing from step (ql) onwards is performed.

尚、以上では自動運転中にフィードホールド信号が発生
したものとして説明したが本発明は係る場合に限らず、
たとえば外部リセット釦が押されたときにも適用できろ
。ただ外部リセット釦が押されるとプロセッサはプログ
ラムポジシコンの各軸座標値をすべて0にする(プログ
ラムポジシリンは原点と一致する)。従って、たとえば
NGプログラムによる起動に先立って外部リセット釦を
押圧し、しかる後起動をかければ、プログラムポジショ
ンは原点に一致しているから工具はワーク座標系原点に
位置決めされ、以後NCプログラムデータによりその位
置を制御される。
Although the above description assumes that a feed hold signal is generated during automatic operation, the present invention is not limited to this case.
For example, it could also be applied when an external reset button is pressed. However, when the external reset button is pressed, the processor sets all the axis coordinate values of the program positive controller to 0 (the program positive controller coincides with the origin). Therefore, for example, if you press the external reset button before starting with the NG program and then start, the tool will be positioned at the workpiece coordinate system origin since the program position coincides with the origin, and from then on, the tool will be positioned at the workpiece coordinate system origin using the NC program data. Controlled position.

又、ポジションループが切断して、工具が勝手に移動し
ている場合には周知のフォローアツプの手法でスライド
ポジションを監視し、非常停止後にサイクルスタート釦
が押圧されて起動がかかれば以後前述の処理を行い、全
軸許容範囲に入っていれば工具をプログラムポジション
に向けて移動させて、スライドポジシアンとプログラム
ポジションを一致させ、しかる後目′tfh運転を行い
、一方1軸でも許容範囲に入っていなければ起動要求を
無効とするように構成することもできる。
In addition, if the position loop is broken and the tool is moving by itself, the slide position is monitored using a well-known follow-up method, and if the cycle start button is pressed after an emergency stop and the cycle start button is pressed, the above-mentioned procedure will be performed. After processing, if all axes are within the allowable range, move the tool toward the programmed position, match the slide position and the programmed position, and then perform 'tfh operation, while even one axis is within the allowable range. It can also be configured to disable the activation request if it is not included.

更に、各軸毎に許容値を設定した場合について説明した
が、プログラムポジションとスライドポジション間の距
離で許容値を設定するように構成することもできる。
Furthermore, although the case has been described in which the allowable value is set for each axis, it is also possible to configure the allowable value to be set based on the distance between the program position and the slide position.

〈発明の効果〉 以上説明したように、本発明によればNCプログラムデ
ータに基づいて更新されるプログラム指令上の位置座標
値と機械の現在位置に基づいて更新される機械位置座標
値とを監視し、NCプログラムデータによる制御開始要
求があった時、プログラム位置データとaim位置デー
タとに基づいて4214をプログラム位置に位置決めし
、しかる後NCプログラムデータによりNC制御処理を
実行するように構成したから、簡単な操作でたとえばサ
イクルスタート釦を押圧するだけで、かつ簡単な構成で
機械可動部をプログラムポジション(自動運転停止位置
)に一致させ、しかる後該位置から加工を゛再開できろ
<Effects of the Invention> As explained above, according to the present invention, the position coordinate values on the program command that are updated based on the NC program data and the machine position coordinate values that are updated based on the current position of the machine are monitored. However, when there is a request to start control based on the NC program data, the 4214 is positioned at the program position based on the program position data and the aim position data, and then the NC control process is executed based on the NC program data. By simply pressing a cycle start button, for example, and with a simple configuration, the machine movable parts can be brought into alignment with the programmed position (automatic operation stop position), and then machining can be resumed from that position.

又、本発明によれば開始要求があった時、プログラム位
置と機械位置との差が予め定めた許容値より小さいかど
うかをチェックし、該差が許容値より小さい時には移動
時に機械可動部がワークと接触したりする危険はないも
のとして自動的に該機械可動部をプログラム位置に位置
決めし、差が許容値より大きい時には上記危険があるも
のとして前記開始要求を無効とし、手動で機械位置が許
容範囲内に到来するようにし、しかる後起動要求を有効
とするように構成したから1.安全な数値制御処理を行
うことができる。
Furthermore, according to the present invention, when a start request is received, it is checked whether the difference between the program position and the machine position is smaller than a predetermined tolerance, and if the difference is smaller than the tolerance, the machine moves the movable part during movement. The movable part of the machine is automatically positioned at the programmed position assuming that there is no danger of contact with the workpiece, and if the difference is greater than the allowable value, the start request is invalidated as there is a danger, and the machine position is manually adjusted. 1. It was configured so that the activation request came within the permissible range, and then the activation request was made valid. Safe numerical control processing can be performed.

更に、本発明によれば簡単な操作で確実に機械位置をプ
ログラム位置に一致させ、以後加工を続行することがで
きるから、換言すれば機械位置がプログラム位置から離
れろことがなく加工を続行できるから、加工効率よ<、
シかもミスの少ない加工ができる。
Furthermore, according to the present invention, the machine position can reliably match the programmed position with a simple operation and machining can be continued thereafter. In other words, the machine position can continue machining without moving away from the programmed position. , processing efficiency <,
Processing can be done with fewer errors.

更に、本発明によれば許容範囲を各軸毎に定めると共に
、プログラム位置と機械位置との差を各軸毎に求め、各
軸毎に該差が許容値より小さいかどうかを表示するよう
に構成したから、どの軸をDBグ送りしなければならな
いかが容易に把握でき操作性がよい。
Further, according to the present invention, the tolerance range is determined for each axis, the difference between the program position and the machine position is determined for each axis, and it is displayed for each axis whether the difference is smaller than the tolerance value. Because of this configuration, it is easy to understand which axis needs to be fed by DB, and the operability is good.

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

第1図は本発明の概略説明図、第2図は本発明を適用し
t二数値制御装置のブロック図、第3図は本発明の処理
の流れ図、第4図は表示例説明図である。 WK・・・ワーク、TL・・・工具、 P ・・・プログラムポジション P、・・・スライドポジシ3ン、 101・・・プロセッサ、103・・・RAM105・
・・操作盤、107・・・パルス分配器、特許出頼人 
       ファナック株式会社(外1名) 代理人          弁理士  齋藤千幹第1図 第4図
Fig. 1 is a schematic explanatory diagram of the present invention, Fig. 2 is a block diagram of a numerical control device to which the present invention is applied, Fig. 3 is a flowchart of the processing of the present invention, and Fig. 4 is an explanatory diagram of a display example. . WK...Work, TL...Tool, P...Program position P,...Slide position 3, 101...Processor, 103...RAM105.
...Operation panel, 107...Pulse distributor, patent originator
FANUC CORPORATION (1 other person) Agent Patent attorney Chiki Saito Figure 1 Figure 4

Claims (7)

【特許請求の範囲】[Claims] (1)NCプログラムデータに基づいて更新されるプロ
グラム指令上の位置座標値と機械の現在位置に基づいて
更新される機械位置座標値とを監視し、NCプログラム
データによる制御開始要求があった時、プログラム位置
データと機械位置データとに基づいて機械をプログラム
位置に位置決めし、しかる後NCプログラムデータによ
りNC制御処理を実行することを特徴とする数値制御方
法。
(1) When the position coordinate values on the program command that are updated based on the NC program data and the machine position coordinate values that are updated based on the current position of the machine are monitored, and a request to start control based on the NC program data is made. , a numerical control method characterized in that a machine is positioned at a programmed position based on program position data and machine position data, and then NC control processing is executed using NC program data.
(2)前記プログラム位置は、NCプログラムデータに
含まれる通路データに基づいてパルス補間演算を実行し
た時のパルス補間点であることを特徴とする特許請求の
範囲第(1)項記載の数値制御方法。
(2) The numerical control according to claim (1), wherein the program position is a pulse interpolation point when a pulse interpolation calculation is executed based on path data included in the NC program data. Method.
(3)前記開始要求があった時、プログラム位置と機械
位置との差が予め定めた許容値より小さいかどうかをチ
ェックし、該差が許容値より小さい時、機械をプログラ
ム位置に位置決めすることを特徴とする特許請求の範囲
第(1)項記載の数値制御方法。
(3) When the start request is received, check whether the difference between the program position and the machine position is smaller than a predetermined tolerance, and if the difference is smaller than the tolerance, position the machine at the program position. A numerical control method according to claim (1), characterized in that:
(4)前記差が許容値より大きい時、前記開始要求を無
効とすることを特徴とする特許請求の範囲第(3)項記
載の数値制御方法。
(4) The numerical control method according to claim (3), wherein the start request is invalidated when the difference is larger than a tolerance value.
(5)プログラム位置と機械位置との差を各軸毎に求め
、各軸毎に該差が許容値より小さいかどうかをチェック
することを特徴とする特許請求の範囲第(4)項記載の
数値制御方法。
(5) The difference between the program position and the machine position is determined for each axis, and it is checked for each axis whether the difference is smaller than a tolerance value. Numerical control method.
(6)前記許容値を装置リセット時、位置決め時、切削
時に応じて変更することを特徴とする特許請求の範囲第
(5)項記載の数値制御方法。
(6) The numerical control method according to claim (5), characterized in that the allowable value is changed depending on the time of device reset, positioning, and cutting.
(7)前記許容値内に入っているかどうかを各軸毎に表
示することを特徴とする特許請求の範囲第(5)項記載
の数値制御方法。
(7) The numerical control method according to claim (5), characterized in that whether or not the tolerance is within the tolerance is displayed for each axis.
JP17123884A 1984-08-17 1984-08-17 Numerical control method Pending JPS6149203A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17123884A JPS6149203A (en) 1984-08-17 1984-08-17 Numerical control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17123884A JPS6149203A (en) 1984-08-17 1984-08-17 Numerical control method

Publications (1)

Publication Number Publication Date
JPS6149203A true JPS6149203A (en) 1986-03-11

Family

ID=15919602

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17123884A Pending JPS6149203A (en) 1984-08-17 1984-08-17 Numerical control method

Country Status (1)

Country Link
JP (1) JPS6149203A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0606649A2 (en) * 1992-12-28 1994-07-20 Mitsubishi Denki Kabushiki Kaisha Numerically controlled machine tool and method to re-execute a machining program after it has been stopped

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0606649A2 (en) * 1992-12-28 1994-07-20 Mitsubishi Denki Kabushiki Kaisha Numerically controlled machine tool and method to re-execute a machining program after it has been stopped
EP0606649A3 (en) * 1992-12-28 1995-02-01 Mitsubishi Electric Corp Numerically controlled machine tool and method to re-execute a machining program after it has been stopped.

Similar Documents

Publication Publication Date Title
EP0782056B1 (en) Numerically controlled machine tool and method
KR950000839B1 (en) Machine tool numerical controller with a trouble stop function
US6522949B1 (en) Robot controller
US5161936A (en) Industrial robot apparatus
JP5079165B2 (en) Numerical control apparatus and numerical control method
JPH046001B2 (en)
JP3922256B2 (en) Numerical controller
EP0171435B1 (en) Numerical control method
EP1591851B1 (en) Synchronous control device
JPS6149203A (en) Numerical control method
JP2998473B2 (en) Numerically controlled machine tools
US7095203B2 (en) Numerical controller
US4839817A (en) Numerically controlled apparatus including shunting controller
JP3180805B2 (en) Numerically controlled machine tools
US7009357B2 (en) Servo control system and its control method
JPS59152050A (en) Restart of profiling operation
JP3758789B2 (en) Control device for punch press machine
JP2831700B2 (en) Manual operation control device for pulse motor
JPH0488507A (en) Cnc device provided with program restarting function
CN114047726A (en) Control method for automatic forward and reverse rotation accurate positioning of high-speed rolling machine
JPH0218603A (en) Numerical controller
SU1714573A1 (en) Working member position control system
JPH0675618A (en) Numerical controller with machining interrupting function
JPS6149204A (en) Numerical control method
JPS60239804A (en) Correcting method of positional error