JP2702555B2 - Numerical control unit reordering method - Google Patents

Numerical control unit reordering method

Info

Publication number
JP2702555B2
JP2702555B2 JP1150287A JP15028789A JP2702555B2 JP 2702555 B2 JP2702555 B2 JP 2702555B2 JP 1150287 A JP1150287 A JP 1150287A JP 15028789 A JP15028789 A JP 15028789A JP 2702555 B2 JP2702555 B2 JP 2702555B2
Authority
JP
Japan
Prior art keywords
program
data
program pointer
pointer
cursor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP1150287A
Other languages
Japanese (ja)
Other versions
JPH0314105A (en
Inventor
隆夫 佐々木
謙太郎 藤林
俊明 大槻
亮二 江口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FANUC Corp
Original Assignee
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 FANUC Corp filed Critical FANUC Corp
Priority to JP1150287A priority Critical patent/JP2702555B2/en
Publication of JPH0314105A publication Critical patent/JPH0314105A/en
Application granted granted Critical
Publication of JP2702555B2 publication Critical patent/JP2702555B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は数値制御装置(CNC)の再順行方法に関し、
特に逆行終了後のカーソル移動等に無関係に必ず逆行終
了点より再順行可能な数値制御装置の再順行方法に関す
る。
Description: FIELD OF THE INVENTION The present invention relates to a method for re-routing a numerical controller (CNC),
In particular, the present invention relates to a re-forwarding method of a numerical control device which can always re-start from a backward end point regardless of a cursor movement after the backward movement.

〔従来の技術〕[Conventional technology]

自動運転中に逆行あるいは再順行を行うことのできる
数値制御装置(CNC)が開発されている。例えばリバー
ススイッチを操作することによって、今まで通過してき
た加工通路をそのまま辿って戻す(逆行)ことができ、
さらに逆行した加工通路を再び順行(再順行)すること
ができる。
Numerical control units (CNC) have been developed that can reverse or re-run during automatic operation. For example, by operating the reverse switch, the machining path that has been passed so far can be traced back (reverse),
Further, the reversed machining path can be moved forward (re-forward) again.

また、所定の位置まで戻した状態で停止して、数値制
御装置の動作モードをメモリモードからエディットモー
ドに切り換えることにより、戻った位置以降のNCプログ
ラムの編集作業を行うことができる。
Further, by stopping the operation after returning to the predetermined position and switching the operation mode of the numerical controller from the memory mode to the edit mode, it is possible to edit the NC program after the returned position.

編集作業を終え、再びメモリモードに切り換えて運転
を開始すると、プログラム表示画面のカーソルで指示さ
れている位置より、編集されたNCプログラムに従って再
順行を行う。
When the editing operation is completed and the operation is switched to the memory mode again and the operation is started, the re-ordering is performed again from the position indicated by the cursor on the program display screen according to the edited NC program.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

しかし、編集時にオペレータがカーソルを別の位置に
移動したときには、その終了時に必ずカーソルを逆行終
了時の位置に戻しておく必要があり、操作が面倒であ
る。また、この操作を怠ると別の位置から運転が開始さ
れてしまい、場合によってはワークあるいは工具が損傷
することもあり、危険である。
However, when the operator moves the cursor to another position during editing, it is necessary to return the cursor to the position at the end of the backward movement at the end of the operation, which is troublesome. If this operation is neglected, the operation is started from another position, and in some cases, the work or the tool may be damaged, which is dangerous.

本発明はこのような点に鑑みてなされたものであり、
逆行終了後のカーソル移動等に無関係に必ず逆行終了点
より再順行可能な数値制御装置の再順行方法を提供する
ことを目的とする。
The present invention has been made in view of such a point,
It is an object of the present invention to provide a reordering method of a numerical control device capable of reordering from a backward end point regardless of a cursor movement or the like after the backward movement.

〔課題を解決するための手段〕[Means for solving the problem]

本発明では上記課題を解決するために、自動運転を中
断してNCプログラムを逆行した後、再順行を行う数値制
御装置(CNC)の再順行方法において、前記NCプログラ
ム上の実行位置を示すプログラムポインタを逐次更新し
ながら逆行運転を行い、逆行を停止し、エディットモー
ドで編集作業を行い、再順行指令時には逆行運転の終了
直前に記憶されたプログラムポインタを読み出し、プロ
グラム表示画面上のカーソルを前記プログラムポインタ
の位置に移動させ、編集されたNCプログラムに従って再
順行運転を行う、ことを特徴とする数値制御装置の再順
行方法が、提供される。
In order to solve the above-mentioned problems, the present invention provides a numerical control device (CNC) that re-executes after stopping automatic operation and reversing the NC program. Performs reverse operation while sequentially updating the indicated program pointer, stops reverse operation, performs editing work in edit mode, reads out the program pointer stored immediately before the end of reverse operation, and reads the program pointer on the program display screen when reordering command. A reordering method for a numerical control device is provided, wherein a cursor is moved to the position of the program pointer and reordering operation is performed in accordance with an edited NC program.

〔作用〕[Action]

NCプログラム上の実行位置を示すプログラムポインタ
を逐次更新しながら逆行運転時を実行し、編集作業を行
い、再順行運転時に逆行運転の終了直前のプログラムポ
インタから巡行運転を開始する。
While the program pointer indicating the execution position on the NC program is sequentially updated, the reverse operation is performed, the editing operation is performed, and the cruise operation is started from the program pointer immediately before the end of the reverse operation in the re-operation operation.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面に基づいて説明する。 Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

第2図は本発明を実施するための数値制御装置のハー
ドウェアの概略構成図である。プロセッサ11はROM12に
記憶されたシステムプログラムに従って数値制御装置全
体を制御する。ROM12にはEPROMあるいはEEPROMが使用さ
れる。RAM13にはDRAMが使用され、後述する移動デー
タ、モーダルデータ、プログラムポインタ、その他各種
のデータ及び入出力信号が記憶される。不揮発性メモリ
14にはバッテリバックアップされたCMOSが使用され、NC
プログラム140、及びその他のパラメータ、ピッチ誤差
補正量等が記憶されている。
FIG. 2 is a schematic configuration diagram of hardware of a numerical controller for implementing the present invention. The processor 11 controls the entire numerical controller according to a system program stored in the ROM 12. EPROM or EEPROM is used for the ROM 12. The RAM 13 is a DRAM, and stores movement data, modal data, a program pointer, various other data, and input / output signals, which will be described later. Non-volatile memory
14 uses battery backed CMOS, NC
A program 140, other parameters, a pitch error correction amount, and the like are stored.

グラフィック制御回路15はディジタル信号を表示用の
信号に変換し、表示器16に与える。表示器16にはCRTあ
るいは液晶表示装置が使用され、NCプログラム140、各
軸の位置、入出力信号の状態等が表示される。操作盤17
には運転開始信号を出力するサイクルスタート釦17a、
一時停止信号を出力するフィードホールド釦17b、ブロ
ックの境目で停止させる停止信号を出力するシングルブ
ロックスイッチ17c、リバーススイッチ17d、及びその他
のキーボード17e等があり、工作機械18の操作あるいは
各種のデータの入力に使用される。以上の構成要素はバ
ス19によって結合されている。
The graphic control circuit 15 converts the digital signal into a signal for display and supplies the signal to the display 16. The display 16 uses a CRT or a liquid crystal display, and displays the NC program 140, the position of each axis, the state of input / output signals, and the like. Operation panel 17
Cycle start button 17a that outputs an operation start signal,
There are a feed hold button 17b for outputting a pause signal, a single block switch 17c for outputting a stop signal for stopping at a boundary between blocks, a reverse switch 17d, and another keyboard 17e.The operation of the machine tool 18 or various data Used for input. The above components are connected by a bus 19.

なお、本図では軸制御回路、サーボアンプ、スピドル
アンプ及びPMC(プログラマブル・マシン・コントロー
ラ)等の構成要素は省略してある。
In this figure, components such as an axis control circuit, a servo amplifier, a spindle amplifier, and a PMC (programmable machine controller) are omitted.

ここで、オペレータがキーボード17eを操作してメモ
リモードに設定し、サイクルスタート釦17aを押すと、
プロセッサ11は不揮発性メモリ14からNCプログラム140
をブロック毎に読み出し、これを移動データに変換しな
がらパルス分配をして順行を行うと共に、この移動デー
タと前処理に必要なモーダルデータとをRAM13に記憶し
ていく。順行中に、リバーススイッチ17dがオンされる
と、記憶していた移動データ及びモーダルデータに基づ
いてパルス分配をして逆行する。また、同時にNCプログ
ラム140上の実行位置を示すプログラムポインタを逐次
更新しながらRAM13に記憶していく。
Here, when the operator operates the keyboard 17e to set the memory mode and presses the cycle start button 17a,
The processor 11 stores the NC program 140 from the non-volatile memory 14.
Is read out for each block, the pulse distribution is performed while the data is converted into movement data, and forward processing is performed. At the same time, the movement data and the modal data necessary for the preprocessing are stored in the RAM 13. When the reverse switch 17d is turned on during the forward traveling, the pulse distribution is performed based on the stored movement data and modal data, and the traveling is reversed. At the same time, the program pointer indicating the execution position on the NC program 140 is stored in the RAM 13 while being sequentially updated.

目的の位置まで逆行が行われるとオペレータはフィー
ドホールド釦17bあるいはシングルブロックスイッチ17c
を操作することにより逆行を停止し、キーボード17eを
操作することにより、動作モードをエディットモードに
切り換えて所要の編集作業を行い、これを終えた後にメ
モリモードにし、フィードホールドスイッチ17dをオフ
し、サイクルスタート釦17aを押す。
When the reverse movement is performed to the target position, the operator presses the feed hold button 17b or the single block switch 17c.
To stop the backward movement, operate the keyboard 17e, switch the operation mode to the edit mode, perform the required editing work, and after completing this, set the memory mode, turn off the feed hold switch 17d, Press the cycle start button 17a.

この操作によってプロセッサ11に運転再開信号が入力
され、プロセッサ11は逆行の終了直前に記憶していたプ
ログラムポインタを読み出し、この位置にプログラム表
示画面上のカーソルを移動することにより、逆行終了時
の位置より、編集されたプログラムに従って再順行を行
う。
By this operation, the operation restart signal is input to the processor 11, the processor 11 reads out the program pointer stored immediately before the end of the backward movement, and moves the cursor on the program display screen to this position to thereby determine the position at the end of the backward movement. The reordering is performed according to the edited program.

第3図は運転再開時における表示器16のプログラム表
示画面である。図において、表示画面20にはNCプログラ
ム140が表示され、例えば編集時にカーソル21を位置141
bに移動してあった場合にも、自動的に逆行終了時の位
置141aの箇所に移動される。
FIG. 3 is a program display screen of the display 16 when the operation is resumed. In the figure, an NC program 140 is displayed on a display screen 20. For example, the cursor 21 is moved to a position 141 during editing.
Even if it has moved to b, it is automatically moved to the position 141a at the end of the backward movement.

第1図は上記のプロセッサ11の処理のフローチャート
である。図においてSに続く数値はステップ番号を示
す。
FIG. 1 is a flowchart of the processing of the processor 11 described above. In the figure, a numerical value following S indicates a step number.

〔S1〕逆行が指令されたかどうかを判断し、指令された
場合はS9へ、指令されない場合はS2へいく。
[S1] It is determined whether a reverse command has been issued. If a command has been issued, the process proceeds to S9, and if not, the process proceeds to S2.

〔S2〕逆行後の再順行か、あるいは通常の順行かどうか
を判断し、再順行の場合はS3へ、通常の順行の場合はS4
へいく。
[S2] It is determined whether the reordering is a reordering after the reversal or a normal ordering.If reordering is to be performed, the process proceeds to S3.
Go to.

〔S3〕逆行終了時のプログラムポインタを読み出す。[S3] The program pointer at the end of the backward movement is read.

〔S4〕再順行の場合は読み出したプログラムポインタの
位置へ、順行の場合は順序通りにプログラムポインタを
設定して、その位置へカーソルを移動し、ブロックのデ
ータを読み出す。
[S4] In the case of reordering, the program pointer is set to the position of the read program pointer. In the case of reordering, the program pointer is set according to the order, the cursor is moved to that position, and the data of the block is read.

〔S5〕NCプログラムの全てのブロックの実行が完了した
かどうかを判断し、完了した場合は終了し、完了してい
ない場合はS6へいく。
[S5] It is determined whether execution of all blocks of the NC program has been completed. If the execution has been completed, the process ends. If not, the process proceeds to S6.

〔S6〕読み出したデータを実行ブロック形式の移動デー
タに変換する。
[S6] The read data is converted into moving data in the execution block format.

〔S7〕移動データ、モーダルデータ及びプログラムポイ
ンタをRAM12に記憶する。
[S7] The movement data, modal data, and the program pointer are stored in the RAM 12.

〔S8〕作成した移動データ及びモーダルデータに基づい
てパルス分配を行い、S4に戻る。
[S8] Pulse distribution is performed based on the created movement data and modal data, and the process returns to S4.

〔S9〕順行時に記憶した移動データ、モーダルデータ及
びプログラムポインタを読みだす。
[S9] The movement data, modal data and program pointer stored in the forward traveling are read out.

〔S10〕停止信号が入力されたかどうかを判断し、入力
された場合は終了し、入力されていない場合はS11へい
く。
[S10] It is determined whether or not a stop signal has been input. If the stop signal has been input, the process ends. If not, the process proceeds to S11.

〔S11〕プログラムポインタをRAM12の逆行用データを記
憶する所定の箇所に記憶する。
[S11] The program pointer is stored at a predetermined location in the RAM 12 where the backward data is stored.

〔S12〕読み出した移動データ及びモーダルデータに基
づいてパルス分配を行い、S9へ戻る。
[S12] Pulse distribution is performed based on the read movement data and modal data, and the process returns to S9.

このように、逆行時にプログラムポインタを逐次更新
しながらRAM12に記憶し、再順行時にこれを読み出すこ
とにより、逆行終了時の位置より運転を開始する。
As described above, the program pointer is stored in the RAM 12 while being sequentially updated at the time of backward movement, and is read out at the time of reordering, whereby the operation is started from the position at the end of backward movement.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明では、NCプログラム上の実
行位置を示すプログラムポインタを逐次更新しながら逆
行運転を実行し、編集作業を行い、再順行運転時に逆行
運転の終了直前のプログラムポインタから巡行運転を開
始するようにしたので、カーソル移動を行って編集作業
を行っても、必ず逆行運転の終了直前のプログラムポイ
ンタから再順行することができ、操作性及び安全性が向
上する。
As described above, in the present invention, the retrograde operation is performed while sequentially updating the program pointer indicating the execution position on the NC program, the editing operation is performed, and the re-running operation starts from the program pointer immediately before the end of the retrograde operation. Since the operation is started, even when the editing operation is performed by moving the cursor, the program pointer can always be re-started from the program pointer immediately before the end of the reverse operation, thereby improving operability and safety.

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

第1図は本発明の一実施例の数値制御装置の再順行方法
のフローチャート、第2図は本発明を実施するための数
値制御装置のハードウェアの概略構成を示したブロック
図、 第3図は本発明の一実施例におけるプログラム表示画面
を示した図である。 11……プロセッサ 13……RAM 14……不揮発性メモリ 17……操作盤 20……表示画面 21……カーソル 140……NCプログラム 141a……逆行終了時の位置
FIG. 1 is a flow chart of a reordering method of a numerical controller according to one embodiment of the present invention, FIG. 2 is a block diagram showing a schematic configuration of hardware of a numerical controller for implementing the present invention, The figure shows a program display screen according to one embodiment of the present invention. 11 Processor 13 RAM 14 Non-volatile memory 17 Operation panel 20 Display screen 21 Cursor 140 NC program 141a Position at the end of backward movement

───────────────────────────────────────────────────── フロントページの続き (72)発明者 大槻 俊明 山梨県南都留郡忍野村忍草字古馬場3580 番地 ファナック株式会社商品開発研究 所内 (72)発明者 江口 亮二 山梨県南都留郡忍野村忍草字古馬場3580 番地 ファナック株式会社商品開発研究 所内 (56)参考文献 特開 昭50−43386(JP,A) 特開 昭51−38259(JP,A) 特開 昭62−77610(JP,A) 特開 平2−37404(JP,A) ──────────────────────────────────────────────────続 き Continued on the front page (72) Inventor Toshiaki Otsuki 3580 Kobaba, Oshino-mura, Oshino-mura, Minamitsuru-gun, Yamanashi Pref. No. 3580 FANUC CORPORATION Product Development Laboratory (56) References JP-A-50-43386 (JP, A) JP-A-51-38259 (JP, A) JP-A-62-77610 (JP, A) 2-37404 (JP, A)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】自動運転を中断してNCプログラムを逆行し
た後、再順行を行う数値制御装置(CNC)の再順行方法
において、 前記NCプログラム上の実行位置を示すプログラムポイン
タを逐次更新しながら逆行運転を行い、 逆行を停止し、エディットモードで編集作業を行い、 再順行指令時には逆行運転の終了直前に記憶されたプロ
グラムポインタを読み出し、プログラム表示画面上のカ
ーソルを前記プログラムポインタの位置に移動させ、編
集されたNCプログラムに従って再順行運転を行う、 ことを特徴とする数値制御装置の再順行方法。
1. A method for re-starting a numerical controller (CNC) for re-starting after interrupting automatic operation and reversing an NC program, wherein a program pointer indicating an execution position on the NC program is sequentially updated. While performing the reverse operation, stop the reverse operation, perform the editing work in the edit mode, read the program pointer stored immediately before the end of the reverse operation at the time of the reorder command, and move the cursor on the program display screen to the program pointer. Moving to the position and performing re-operation in accordance with the edited NC program.
JP1150287A 1989-06-13 1989-06-13 Numerical control unit reordering method Expired - Fee Related JP2702555B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1150287A JP2702555B2 (en) 1989-06-13 1989-06-13 Numerical control unit reordering method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1150287A JP2702555B2 (en) 1989-06-13 1989-06-13 Numerical control unit reordering method

Publications (2)

Publication Number Publication Date
JPH0314105A JPH0314105A (en) 1991-01-22
JP2702555B2 true JP2702555B2 (en) 1998-01-21

Family

ID=15493684

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1150287A Expired - Fee Related JP2702555B2 (en) 1989-06-13 1989-06-13 Numerical control unit reordering method

Country Status (1)

Country Link
JP (1) JP2702555B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4958608B2 (en) * 2007-04-06 2012-06-20 三菱電機株式会社 Robot control device, robot control method, and robot transfer device
WO2020026457A1 (en) * 2018-07-30 2020-02-06 株式会社ダイアディックシステムズ Robot control system, robot control method, and program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5043386A (en) * 1973-08-23 1975-04-19
JPS5138259A (en) * 1974-09-30 1976-03-30 Mitsubishi Heavy Ind Ltd Suchiseigyosochino gyakukoseigyohoshiki

Also Published As

Publication number Publication date
JPH0314105A (en) 1991-01-22

Similar Documents

Publication Publication Date Title
JP3671020B2 (en) Numerical controller
JP2641797B2 (en) Interactive numerical controller
JP2012234445A (en) Numerical controller having function of operation based on table format data
EP0397887B1 (en) Method of correcting machining program
JP3679844B2 (en) Sequence program execution device
JP4480770B2 (en) Numerical control device with processing resumption function
JP2006004275A (en) Numerical control device
JP2702555B2 (en) Numerical control unit reordering method
JP2002373008A (en) Numerical controller
JPH07136897A (en) Cutting area drawing method
JPS63265305A (en) Program restarting system
JP3460747B2 (en) Numerical control unit
JPH0822313A (en) Numerical controller
JPH06738A (en) Tool exchanging method
JPH10105220A (en) Machining simulation method for numerically controlled machining
EP1528445A2 (en) Numerical controller
JPH02151909A (en) Control device for industrial machine
JPH03294906A (en) Editing system for working program
JPH10124124A (en) Working program drawing method for numerical controller, and numerical controller provided with drawing function
JPH04252307A (en) Interactive numerical controller
JPH05241645A (en) Test operation control system
JPS62174805A (en) Numerical control system
JP4208600B2 (en) NC machine tool
JPH0895623A (en) Tool shift control system in cnc
JPH0566819A (en) Interactive automatic programming method

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees