JP3049485B2 - Control device for program operation machine and conversion device for control program - Google Patents

Control device for program operation machine and conversion device for control program

Info

Publication number
JP3049485B2
JP3049485B2 JP8287541A JP28754196A JP3049485B2 JP 3049485 B2 JP3049485 B2 JP 3049485B2 JP 8287541 A JP8287541 A JP 8287541A JP 28754196 A JP28754196 A JP 28754196A JP 3049485 B2 JP3049485 B2 JP 3049485B2
Authority
JP
Japan
Prior art keywords
program
movement
stored
control device
program step
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
JP8287541A
Other languages
Japanese (ja)
Other versions
JPH1091227A (en
Inventor
芳雄 ▲今▼西
茂 今西
Original Assignee
芳雄 ▲今▼西
茂 今西
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 芳雄 ▲今▼西, 茂 今西 filed Critical 芳雄 ▲今▼西
Priority to JP8287541A priority Critical patent/JP3049485B2/en
Publication of JPH1091227A publication Critical patent/JPH1091227A/en
Application granted granted Critical
Publication of JP3049485B2 publication Critical patent/JP3049485B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)
  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、数値制御(NC)
の旋盤やマシニングセンタ等の工作機械や、産業用ロボ
ット、XYテーブル、自動検査機、自動組立機など、プ
ログラムに基づいて動作する機械に適用される制御装置
および制御プログラムの変換装置に関するものである。
TECHNICAL FIELD The present invention relates to a numerical control (NC).
The present invention relates to a control device applied to a machine that operates based on a program, such as a machine tool such as a lathe or a machining center, an industrial robot, an XY table, an automatic inspection machine, and an automatic assembly machine, and a control program conversion device.

【0002】[0002]

【従来の技術】従来のNC工作機械や産業用ロボットな
どのプログラム動作機械は、例えば図8に示すように構
成されている。動作部1は、機械加工や、ワークの搬
送、組み立てなどの動作をする、機械の本体部である。
操作・表示部2は、プログラムの入力操作や動作部1の
動作の指示操作をするとともに、入力されたプログラム
や動作部1の状態等を表示するものである。記憶部3
は、入力されたプログラムを記憶するものである。動作
制御部4は、操作・表示部2の操作や記憶部3に記憶さ
れたプログラムに応じて、動作部1の動作を制御するも
のである。このように構成されることにより、あらかじ
めプログラムを作成し、記憶部3に記憶させることによ
って、動作部1に一定の決まった動作を自動的に行わせ
ることができるようになっている。
2. Description of the Related Art Conventionally, a program operation machine such as an NC machine tool or an industrial robot is configured as shown in FIG. The operation unit 1 is a main body of a machine that performs operations such as machining, transporting and assembling a work.
The operation / display unit 2 performs an input operation of a program and an operation of instructing an operation of the operation unit 1, and displays the input program, a state of the operation unit 1, and the like. Storage unit 3
Stores the input program. The operation control unit 4 controls the operation of the operation unit 1 according to the operation of the operation / display unit 2 and the program stored in the storage unit 3. With this configuration, a program is created in advance and stored in the storage unit 3 so that the operation unit 1 can automatically perform a fixed operation.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、この種
の装置では、プログラムを作成するために、装置に専用
の制御言語を習得する必要があり、プログラムの作成は
必ずしも容易でない。また、装置を正確に動作させるプ
ログラムを完成させるためには、通常、そのプログラム
を実際に実行させ、装置の動作をチェックして修正を加
える場合も多く、この修正作業は、制御言語の習得程度
にもよるが、一般に困難なものである。
However, in this type of device, it is necessary to learn a control language dedicated to the device in order to create a program, and it is not always easy to create a program. In addition, in order to complete a program that operates the device correctly, it is often the case that the program is actually executed, the operation of the device is checked, and corrections are often made. Despite this, it is generally difficult.

【0004】また、あらかじめプログラムを作成してお
いても、実際に加工動作などをさせる際にプログラムの
修正を必要とすることも往々にしてある。すなわち、例
えば実際に使用するワークの取り代がプログラム作成時
に想定したものと異なる場合や、設計変更がなされた場
合などには、これらに応じてプログラムを修正する必要
がある。なお、このような場合に、工具の長さや直径な
どの設定を調整したり、基準座標のシフトや所定の座標
値を後に設定できるようにしたりする補正の手法なども
用いられているが、このような手法だけで対処すること
は困難な場合が多い。
Even if a program is created in advance, it is often necessary to correct the program when actually performing a machining operation or the like. That is, for example, when the allowance for the work to be actually used is different from that assumed at the time of creating the program, or when the design is changed, it is necessary to modify the program accordingly. In such a case, correction methods such as adjusting settings such as the length and diameter of the tool, shifting the reference coordinates, and allowing a predetermined coordinate value to be set later are also used. It is often difficult to deal only with such a method.

【0005】上記のようなプログラムの作成や修正を容
易化するためには、コンピュータとの対話形式によって
装置を実際に操作して動作をさせながら、その動作をプ
ログラムとして記憶させたり、動作位置の座標をプログ
ラム中に挿入したりするように構成することも考えられ
るが、前者の場合は、操作した通りの動作をするプログ
ラムが生成されるだけなので、あらかじめ作成されたプ
ログラムを修正したり、複数のプログラムを組み合わせ
たプログラムを作成したりするためには、制御言語に関
する知識の習得はやはり不可欠であり、また、後者の場
合は、座標の挿入などをしようとするプログラムを操作
者が参照する必要があるため、やはり、制御言語に関す
る知識の習得が必要である。
[0005] In order to facilitate the creation and modification of the above-mentioned program, the operation is actually performed by operating the apparatus interactively with a computer, and the operation is stored as a program or the operation position is determined. It is conceivable to insert coordinates into the program.However, in the former case, a program that operates just as it was operated is generated. In order to create a program that combines the above programs, it is still indispensable to acquire knowledge about the control language. In the latter case, the operator must refer to a program that attempts to insert coordinates, etc. Therefore, it is necessary to acquire knowledge about the control language.

【0006】また、装置の動作は、プログラムの命令ス
テップを1ステップずつ順次実行することによって行わ
れ、後退動作、すなわち、すでに実行された動作を後戻
りするように逆行して動作させることはできないため、
すでに実行された一部のステップに誤り等がある場合で
も、そのステップの修正や実行確認はプログラムの最初
から実行を繰り返して行う必要があり、プログラムを容
易に修正したり確認したりすることが困難であった。
Further, the operation of the apparatus is performed by sequentially executing the instruction steps of the program one by one, and a backward operation, that is, an operation which has already been executed, cannot be performed in a reverse manner so as to reverse. ,
Even if there are errors in some of the steps that have already been executed, it is necessary to correct the steps and confirm the execution by repeating the execution from the beginning of the program, so that the program can be easily modified and confirmed. It was difficult.

【0007】さらに、この種の装置では、例えば往復動
作をさせる場合など、同じ動作や類似した動作を繰り返
して行わせたり、逆の動作を行わせたりすることがある
が、そのためには、それぞれの動作、すなわち、往時の
動作と復時の動作となどを示すプログラムを作成する必
要があり、このような動作を容易に行わせることはでき
なかった。本発明は、上記の点に鑑み、装置に専用の制
御言語を習得していなくても、プログラムの作成や修正
を容易にすることができるとともに、作成されたプログ
ラムステップによる動作とは逆の動作である後退動作、
すなわち、プログラムステップによる動作が実行された
状態から、その動作が実行される前の状態に戻す動作を
させ得るようにして、プログラムの最初から実行を繰り
返さなくても、プログラムステップの修正や実行確認を
したり、また、そのような後退動作をするプログラムス
テップを作成することが容易にできるプログラム動作機
械の制御装置の提供を目的としている。また、必ずしも
プログラムステップの作成や修正をする場合でなくて
も、上記のような後退動作をさせ得るようにして、新た
なプログラムを作成することなく、例えば往復動作など
の動作をさせることが容易にできるプログラム動作機械
の制御装置の提供を目的としている。さらに、上記のよ
うな後退動作ができないプログラムを後退動作が可能な
プログラムに変換するプログラムの変換装置の提供を目
的としている。
Further, in this type of apparatus, the same operation or a similar operation may be repeatedly performed or the reverse operation may be performed, for example, when a reciprocating operation is performed. In other words, it is necessary to create a program indicating the operation of the above, that is, the operation at the time of going forward and the operation at the time of returning, and such an operation cannot be easily performed. SUMMARY OF THE INVENTION In view of the above, the present invention can facilitate the creation and modification of a program without having to learn a control language dedicated to an apparatus, and can also create a created program.
Reversing operation, which is the reverse operation to the operation by the ram step ,
In other words, it is possible to perform an operation of returning from the state in which the operation by the program step is executed to the state before the operation is executed, so that the program step can be corrected or executed without repeating the execution from the beginning of the program. It is another object of the present invention to provide a control device of a program operation machine that can easily perform a program step for performing such a retreat operation. Also, even if not necessarily creating or modifying a program step, it is possible to perform the retreat operation as described above, and it is easy to perform an operation such as a reciprocating operation without creating a new program. It is an object of the present invention to provide a control device for a program operation machine which can be executed in a simple manner. It is another object of the present invention to provide a program conversion device for converting a program that cannot perform the backward operation into a program that can perform the backward operation.

【0008】[0008]

【課題を解決するための手段】請求項1ないし請求項3
のプログラム動作機械の制御装置は、プログラムで動作
する動作部を備えた機械の制御装置において、上記動作
部を動作させるプログラムを記憶する記憶手段と、上記
動作部の動作を指示する操作手段と、記憶手段に記憶さ
れたプログラムの実行による上記動作部の動作、および
操作手段の操作に基づく上記動作部の動作の双方に応じ
て、新たなプログラムステップを生成し、上記記憶手段
に記憶させるとともに、上記新たなプログラムステップ
と対応させて、上記新たなプログラムステップによる動
作とは逆の動作である後退動作を上記動作部にさせるた
めに必要な補足情報、例えばプログラムステップによる
動作の前後の少なくとも一方における動作部の状態に関
する情報、より具体的には、プログラムステップによる
動作の起点または終点の少なくとも一方における座標な
どを上記記憶手段に記憶させるプログラムステップ生成
手段とを備えたものである。また、請求項4のプログラ
ム動作機械の制御装置は、請求項1のプログラム動作機
械の制御装置であって、さらに、プログラムステップ生
成手段によって記憶手段に記憶されたプログラムステッ
プおよび補足情報に基づいて、動作部に後退動作をさせ
るように制御する後退動作制御手段を備えたことを特徴
としている。
Means for Solving the Problems Claims 1 to 3
Program operation machine control device operates by program
A control device for a machine having an operation unit that performs
Storage means for storing a program for operating the unit,
An operation unit for instructing the operation of the operation unit;
Operation of the above operation unit by executing the
According to both the operation of the above operation unit based on the operation of the operation means
To generate a new program step,
And the new program step
In response to the new program steps
The reverse operation, which is the reverse of the operation,
Additional information necessary for the program, for example by program steps
Regarding the state of the operating part before and / or after the operation
Information, more specifically, depending on the program steps
The coordinates of at least one of the start point and end point
Generation of program steps for storing in the storage means
Means. The program according to claim 4
The program operating device according to claim 1, wherein
Control device for the machine, and
Program step stored in the storage means by the generation means.
Operation unit based on the
Movement control means for controlling
And

【0009】これにより、プログラムステップ生成手段
は、操作手段の操作に基づいて新たなプログラムステッ
プを生成するとともに、記憶手段に記憶されたプログラ
ムに基づいても、新たなプログラムのステップを生成す
る。また、プログラムステップ生成手段によって、あら
かじめ記憶された動作部を動作させるプログラム、およ
び動作部の動作を指示する操作の双方に基づいて、新た
なプログラムステップが生成され、記憶される。
Thus, the program step generating means generates a new program step based on the operation of the operating means, and also generates a new program step based on the program stored in the storage means. Further, a new program step is generated and stored by the program step generation means based on both the program for operating the operation unit stored in advance and the operation for instructing the operation of the operation unit.

【0010】したがって、装置に専用の制御言語を習得
していなくても、手動によって動作部を操作することさ
えできれば、動作部を動作させるためのプログラムが自
動的に作成されるので、容易にプログラムを作成するこ
とができるうえ、記憶手段に記憶されたプログラムおよ
び手動操作に基づいても、新たなプログラムのステップ
が生成されるので、既存のプログラムを利用した新たな
プログラムを作成したり、プログラムを修正したりする
ことが容易にできる
Therefore, a program for operating the operation unit is automatically created as long as the operation unit can be operated manually, even if the user does not learn a control language dedicated to the apparatus. Can be created, and a new program step is generated based on the program and manual operation stored in the storage means. Therefore, a new program using an existing program can be created, or a program can be created. It can be easily modified .

【0011】[0011]

【0012】また、上記のように、プログラムステップ
生成手段が、新たに生成されたプログラムステップとと
もに、後退動作をさせるために必要な補足情報を記憶手
段に記憶させ(請求項1〜3)、また、後退動作制御手
段が設けられる(請求項4)ことにより、プログラムス
テップによる動作が実行された状態から、その動作が実
行される前の状態に戻す後退動作をさせることができ
る。より詳しくは、例えばプログラムステップによって
示される動作が終点の座標に向けての移動である場合、
補足情報として、始点の座標や、後退動作を示すプログ
ラムステップ自体が記憶されれば、後退動作としての終
点から始点へ向けての移動をさせることができる。ま
た、例えば所定の方向に所定の距離だけ移動することを
示すプログラムステップが記憶されれば、これに基づい
て逆の方向に同じ距離だけ移動させることにより、後退
動作を行わせることができる。すなわち、特にプログラ
ムステップを作成しなくても、所定のプログラムステッ
プに応じた後退動作を行わせることができ、同じ動作を
くり返し行わせたり、装置を元の状態に戻したりするこ
とが容易にできる。請求項5のプログラム動作機械の制
御装置は、請求項4のプログラム動作機械の制御装置で
あって、上記プログラムステップ生成手段は、既に記憶
手段に記憶されているプログラムステップに対応する後
退動作に応じて、さらに新たなプログラムステップを生
成するように構成されたことを特徴としている。これに
より、上記のような後退動作をさせることによって、そ
のような後退動作をさせる新たなプログラムステップを
生成することができるので、例えば往復動作をさせるよ
うなプログラムなどを容易に作成することができる。
求項6のプログラム動作機械の制御装置は、請求項4
プログラム動作機械の制御装置であって、上記プログラ
ムステップ生成手段は、既に記憶手段に記憶されている
プログラムステップに対応する後退動作に応じて、その
プログラムステップによる動作の少なくとも一部を打ち
消すように、そのプログラムステップを修正するように
構成されたことを特徴としている。これにより、上記の
ような後退動作をさせることによって、元のプログラム
ステップを容易に修正することができる。具体的には、
例えば元のプログラムステップが、動作部を所定の距離
だけ移動させることを示すものである場合に、上記所定
の距離だけ、またはそのうちの一部だけ後退動作させる
ことによって、その分だけ元のプログラムステップによ
る動作を打ち消した移動をさせるプログラムステップに
修正することができる。 請求項7のプログラムで動作す
る動作部を備えた機械の制御装置は、請求項1のプログ
ラムステップ生成手段によって生成されたプログラムス
テップおよび補足情報に基づいて、動作部に後退動作を
させるように制御する後退動作制御手段を備えたことを
特徴としている。この場合には、新たなプログラムステ
ップの作成や修正はできなくても、上記のような後退動
作をさせることはできるので、例えば往時の動作だけを
示すプログラムを用いて、往復動作などの動作をさせる
ことが容易にできる。請求項8または請求項9のプログ
ラムで動作する動作部を備えた機械の制御装置は、動作
部を動作させるプログラムを記憶する記憶手段と、記憶
手段に記憶されたプログラムに含まれる、そのプログラ
ムステップによる動作とは逆の動作である後退動作が可
能なプログラムステップ、例えばその実行による動作部
の状態の変化を示す相対的な情報を含むプログラムステ
ップに基づいて、動作部に後退動作をさせるように制御
する後退動作制御手段とを備えたことを特徴としてい
る。このような後退動作制御手段を備えることにより、
前記のような補足情報を含んでいない既存のプログラム
などでも、後退動作が可能なプログラムステップについ
ては、後退動作をさせることができるので、往復動作な
どをさせることができる。請求項10のプログラムで動
作する動作部を備えた機械の制御装置は、動作部を動作
させるプログラムを記憶する記憶手段と、記憶手段に記
憶されたプログラムに含まれる、所定のプログラムステ
ップ、およびそのプログラムステップに先立って実行さ
れるプログラムステップに基づいて、動作部に、上記所
定のプログラムステップによる動作とは逆の動作である
後退動作をさせるように制御する後退動作制御手段とを
備えたことを特徴としている。また、請求項11のプロ
グラム動作機械の制御装置は、請求項10のプログラム
動作機械の制御装置であって、上記後退動作制御手段
は、上記所定のプログラムステップに先立って実行され
るプログラムステップのうち、上記所定のプログラムス
テップと同種のプログラムステップを検索し、その同種
のプログラムステップの実行後における動作部の状態を
求めることにより、動作部に後退動作をさせるよう制御
するように構成されたことを特徴としている。上記のよ
うな後退動作制御手段を備えることにより、前記のよう
な補足情報を含んでおらず、かつ、後退動作ができない
プログラムステップであっても、そのプログラムステッ
プに先立って実行されるプログラムステップが参照され
て、後退動作が行われる。すなわち、先行するプログラ
ムステップの実行後の状態にする動作が後退動作にあた
るので、そのような動作をさせることにより、後退動作
が行われる。請求項12または請求項13のプログラム
動作機械の制御装置は、請求項4、請求項7、請求項
8、または請求項10のプログラム動作機械の制御装置
であって、さらに、動作部の後退動作に所定の変換、例
えば平行移動、回転移動、線対称移動、面対称移動、拡
大、または縮小した動作をさせる変換を施す後退動作修
飾手段を備えたことを特徴としている。これにより、元
のプログラムに応じた動作部の動作に対して、後退動作
で、かつ、対称移動などの変換を施した動作(例えば図
3(b)の軌跡Qに対する軌跡Q’など)をするプログ
ラムを容易に作成することができる。請求項14の制御
プログラムの変換装置は、プログラムで動作する動作部
を備えた機械の制御プログラムを記憶する記憶手段と、
記憶手段に記憶された制御プログラムを、その制御プロ
グラムに含まれる各プログラムステップについて、それ
ぞれのプログラムステップ、およびそれぞれのプログラ
ムステップに先立って実行されるプログラムステップに
基づいて、上記各プログラムステップとは逆の動作であ
る後退動作を上記動作部にさせることが可能な制御プロ
グラムに変換する制御プログラム変換手段とを備えたこ
とを特徴としている。これにより、前記のような補足情
報などを含んでいない既存のプログラムなどでも、後退
動作が可能なプログラムに変換し、後退動作を行い得る
ようにすることができる。請求項15のプログラム動作
機械の制御装置は、請求項1のプログラム動作機械の制
御装置であって、上記プログラムステップ生成手段は、
動作部の動作に応じて、上記動作後の動作部の状態に関
する絶対的な情報を含むプログラムステップと、上記動
作の前後の動作部の状態の変化に関する相対的な情報を
含むプログラムステップとを生成するように構成されて
いることを特徴としている。また、請求項16のプログ
ラムで動作する動作部を備えた機械の制御装置は、請求
項15のプログラムステップ生成手段によって生成され
た、上記絶対的な情報を含むプログラムステップ、また
は上記相対的な情報を含むプログラムステップのうちの
何れか一方を選択的に実行するように構成されているこ
とを特徴としている。これにより、上記絶対的な情報を
含むプログラムステップと、上記相対的な情報を含むプ
ログラムステップとを有するプログラムが作成され、何
れか一方のプログラムステップを選択的に実行させるこ
とができるので、例えば加工目的等に応じて適したプロ
グラムステップに基づく動作をさせることができる。
Also, as described above, the program step
Generating means for newly generated program steps;
Also, it stores the supplementary information necessary for performing the retreat operation.
(Steps 1 to 3) and a reversing operation control means.
By providing the step (claim 4), it is possible to perform a retreat operation for returning from a state in which the operation by the program step is executed to a state before the operation is executed. More specifically, for example, when the operation indicated by the program step is a movement toward the coordinates of the end point,
If the coordinates of the starting point and the program step itself indicating the retreat operation are stored as supplementary information, it is possible to move from the end point to the start point as the retreat operation. Further, if a program step indicating that the robot moves in a predetermined direction by a predetermined distance is stored, for example, a backward operation can be performed by moving the same step in the opposite direction by the same distance. That is, the retreat operation according to a predetermined program step can be performed without particularly creating a program step, and the same operation can be repeatedly performed or the device can be easily returned to the original state. . A control device for a program operation machine according to claim 5 is the control device for a program operation machine according to claim 4 , wherein the program step generating means responds to a retreat operation corresponding to a program step already stored in the storage means. And generating a new program step. Thus, by performing the retreat operation as described above, a new program step for performing such retreat operation can be generated, so that, for example, a program for performing reciprocal motion can be easily created. . Contract
The control device for a program operation machine according to claim 6 is the control device for a program operation machine according to claim 4 , wherein the program step generating means responds to a retreat operation corresponding to a program step already stored in the storage means. The program step is modified so as to cancel at least a part of the operation by the program step. Thus, the original program step can be easily corrected by performing the retreat operation as described above. In particular,
Distance e.g. original program steps, the operation of the predetermined
Only if it indicates that the
Move backward only a distance or a part of it
The original program steps
To the program step to make the move
Can be modified. A control device for a machine having an operation unit operated by the program according to claim 7 is a program control device generated by the program step generation means according to claim 1 .
It is characterized by comprising retreat operation control means for controlling the operation section to perform retreat operation based on the step and the supplementary information . In this case, even if it is not possible to create or modify a new program step, it is possible to cause the retreat operation as described above. Can be easily done. 10. A control device for a machine having an operation unit operated by the program according to claim 8 or 9 , wherein the control unit includes a storage unit for storing a program for operating the operation unit, and a program step included in the program stored in the storage unit. A program step capable of a reversing operation, which is an operation opposite to the operation by, for example, causing the operating unit to perform a retreat operation based on a program step including relative information indicating a change in the state of the operating unit due to its execution. Reversing operation control means for controlling the operation. By providing such retreat operation control means,
Even in the case of an existing program that does not include the supplementary information as described above, the reversing operation can be performed for the program steps that can perform the reversing operation, so that the reciprocating operation can be performed. A control device for a machine having an operation section operated by the program according to claim 10 , wherein the storage section stores a program for operating the operation section, predetermined program steps included in the program stored in the storage section, and Based on a program step executed prior to the program step, the operation unit includes a retreat operation control means for controlling a reversal operation which is an operation reverse to the operation of the predetermined program step. Features. The control device for a program-operated machine according to claim 11 is the control device for a program-operated machine according to claim 10 , wherein the retreating operation control means is configured to execute one of program steps executed prior to the predetermined program step. By searching for a program step of the same type as the predetermined program step and obtaining the state of the operation unit after the execution of the same program step, it is configured to control the operation unit to perform the retreat operation. Features. By providing the retreat operation control means as described above, even if the program step does not include the supplementary information as described above and cannot perform the retreat operation, the program step executed before the program step is not executed. The retreat operation is performed with reference to the reference. That is, since the operation for setting the state after the execution of the preceding program step corresponds to the retreat operation, the retreat operation is performed by performing such an operation. Control device for program operation machine according to claim 12 or claim 13, claim 4, claim 7, claim
11. The control device for a program operation machine according to claim 8, further comprising a predetermined conversion, such as a parallel movement, a rotational movement, a line-symmetric movement, a plane-symmetric movement, an enlarged or reduced movement, for the backward movement of the operation unit. Characterized in that it is provided with a backward movement modifying means for performing a conversion of As a result, an operation (for example, a trajectory Q ′ with respect to the trajectory Q in FIG. 3B) in which the operation of the operation unit according to the original program is a retreat operation and is subjected to conversion such as symmetrical movement. Programs can be easily created. 15. A control program conversion device according to claim 14 , wherein the storage device stores a control program of a machine including an operation unit operated by the program;
The control program stored in the storage means is inverted for each of the program steps included in the control program based on the respective program steps and the program steps executed prior to the respective program steps. And a control program converting means for converting the retreat operation, which is the above operation, into a control program capable of causing the operation section to operate. As a result, even an existing program that does not include the above-described supplementary information or the like can be converted into a program that can perform the retreat operation, and the retreat operation can be performed. A control device for a program operation machine according to claim 15 is the control device for a program operation machine according to claim 1, wherein the program step generation means includes:
According to the operation of the operation unit, a program step including absolute information on the state of the operation unit after the operation and a program step including relative information on a change in the state of the operation unit before and after the operation are generated. It is characterized by being constituted so that. The control device of the machine with an operation portion that operates by a program of claim 16, wherein
Item 15 is configured to selectively execute any one of the program step including the absolute information and the program step including the relative information, which is generated by the program step generation unit of item 15 . It is characterized by: Thus, the program steps including the absolute information, is programmed to create and a program step containing said relative information, since either one of the program steps can be selectively performed, for example, machining An operation based on a program step suitable for the purpose or the like can be performed.

【0013】[0013]

【発明の実施の形態】本発明のプログラム動作機械の制
御装置に設けられる、機械加工動作などの動作部の動作
を指示する操作手段は、例えばキースイッチなどを有す
る操作部によって構成される。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The operating means provided in the control device of a program operating machine of the present invention for instructing the operation of an operating section such as a machining operation is constituted by an operating section having, for example, a key switch.

【0014】動作部を動作させるプログラムを記憶する
記憶手段は、例えば、主としてメモリ素子から成る記憶
部によって構成される。この記憶部には、上記プログラ
ムの他、このプログラムの実行や操作部の入出力などを
制御する基礎プログラム、およびこれらの制御に必要な
データなどが保持される。
The storage means for storing a program for operating the operation section is constituted, for example, by a storage section mainly comprising a memory element. The storage unit stores, in addition to the above programs, basic programs for controlling execution of the programs and input / output of the operation unit, data necessary for the control, and the like.

【0015】また、記憶部に記憶されたプログラムおよ
び操作部の操作に基づいて新たなプログラムステップを
生成し、記憶部に記憶させるプログラムステップ生成手
段は、CPU等を有する制御部と、上記記憶部とにより
構成される。すなわち、制御部は、記憶部に記憶された
基礎プログラム等に基づいて、操作部の操作を監視し、
なされた操作や、記憶部に記憶されたプログラムに応じ
て動作部の動作を制御するとともに、これらの操作およ
びプログラムに基づいて新たなプログラムステップを生
成し、記憶部に記憶させる。これにより、同じ動作を再
度行わせるためのプログラムを自動的に作成できるよう
になっている。
The program step generating means for generating a new program step based on the program stored in the storage unit and the operation of the operation unit and storing the program step in the storage unit includes a control unit having a CPU or the like; It is composed of That is, the control unit monitors the operation of the operation unit based on the basic program and the like stored in the storage unit,
The operation of the operation unit is controlled according to the operation performed and the program stored in the storage unit, and a new program step is generated based on the operation and the program, and stored in the storage unit. This makes it possible to automatically create a program for performing the same operation again.

【0016】上記新たなプログラムステップは、操作部
に対する操作や元となるプログラム、およびパラメータ
の値等に基づいて直接的に、すなわちこれらを解釈して
生成するようにしてもよいし、また、これらの操作等に
応じた動作部の動作や状態をセンサなどによって検出す
ることにより、動作部の実際の動作に応じて生成するよ
うにしてもよい。
The above-mentioned new program steps may be generated directly based on the operation of the operation unit, the original program, the values of the parameters, etc., that is, by interpreting them. By detecting the operation or state of the operation unit corresponding to the operation of the operation unit by a sensor or the like, the operation may be generated in accordance with the actual operation of the operation unit.

【0017】また、プログラムに基づいて動作部を動作
させる際に、そのプログラムによって示される通りの動
作をさせるだけでなく、平行移動や、回転移動、線対称
移動、面対称移動、拡大、縮小などした動作をさせるよ
うにしてもよい。これにより、例えば基礎となるプログ
ラムステップを元にして、ワークを対称な形状や連続す
る形状に加工等するプログラムを容易に作成することが
できる。
When operating the operation unit based on the program, not only the operation as indicated by the program but also the parallel movement, the rotation movement, the line-symmetric movement, the plane-symmetric movement, the enlargement and the reduction, etc. May be performed. This makes it possible to easily create a program for processing a workpiece into a symmetrical shape or a continuous shape based on, for example, a basic program step.

【0018】一方、新たなプログラムステップを記憶さ
せる際に、そのプログラムステップによる動作とは逆の
後退動作をさせるために必要なデータを併せて記憶さ
せ、これに基づいて後退動作をさせ得るようにしてもよ
い。例えば、工具を座標Aから座標Bまで移動させた場
合に「座標Bまで移動」というプログラムステップとと
もに座標Aを記憶させたり、移動速度を変更した場合に
変更前の速度を記憶させたりすることにより、座標Bか
ら座標Aに戻る動作や移動速度を元に戻す動作をさせる
ことが容易にできる。
On the other hand, when a new program step is stored, data necessary for performing a reverse operation reverse to the operation by the program step is also stored, and the reverse operation can be performed based on the data. You may. For example, when the tool is moved from the coordinate A to the coordinate B, the coordinate A is stored together with the program step “Move to the coordinate B”, or when the moving speed is changed, the speed before the change is stored. In addition, it is possible to easily perform the operation of returning from the coordinate B to the coordinate A and the operation of returning the moving speed to the original.

【0019】また、上記後退動作をさせるために必要な
データとして、後退動作を示す命令そのものを記憶させ
てもよいし、そのようなデータを記憶させる代わりに、
後退動作をさせることが可能な形式、例えば移動量など
の相対値を示す増分値命令の形式のプログラムステップ
を生成して記憶させるようにしてもよい。
Further, as the data necessary for performing the backward operation, an instruction indicating the backward operation may be stored, or instead of storing such data,
It is also possible to generate and store a program step in a format that allows a reversing operation, for example, a format of an incremental value command indicating a relative value such as a movement amount.

【0020】さらに、その後退動作に基づいて新たなプ
ログラムステップを生成することにより、そのような後
退動作をさせるプログラムステップを作成することも容
易にできる。
Further, by generating a new program step based on the retreat operation, it is easy to create a program step for performing such retreat operation.

【0021】また、後退動作によって、新たなプログラ
ムステップを生成せずに、元のプログラムステップを修
正するようにしてもよい。すなわち、例えば工具を所望
の位置よりもオーバーランさせてしまった場合に、所望
の位置まで戻す後退動作をさせ、これに応じて元のプロ
グラムステップを修正することにより、プログラム動作
を最初から繰り返したりすることなく、プログラムの修
正をすることが容易にできる。
The original program step may be modified by the retreat operation without generating a new program step. That is, for example, when the tool is overrun from the desired position, a retreat operation is performed to return the tool to the desired position, and the original program step is modified accordingly, so that the program operation can be repeated from the beginning. The program can be easily modified without performing the above.

【0022】なお、上記の後退動作をすべてのプログラ
ムステップについてさせる必要がない場合には、従来の
制御プログラムにおけるプログラムステップのうち、後
退動作が可能なプログラムステップ、例えば増分値命令
の形式のプログラムステップについてだけ後退動作をさ
せ得るようにしてもよい。
If it is not necessary to perform the retreat operation for all program steps, of the program steps in the conventional control program, a program step capable of retreat operation, for example, a program step in the form of an incremental value instruction May be made to be able to perform the retreat operation only for.

【0023】また、後退動作ができないプログラムステ
ップについては、そのプログラムステップに先立って実
行されるプログラムステップを解析することにより、後
退動作させるようにしてもよい。例えば、工具が座標A
の位置にあるときに、これを座標Bの位置まで移動させ
るプログラムステップ「座標Bまで移動」と、さらに座
標Cの位置まで移動させるプログラムステップ「座標C
まで移動」とが記憶されている場合、後者についての後
退動作、すなわち工具を座標Cから座標Bまで戻すこと
は、前者、すなわち同種の移動に関するプログラムステ
ップを参照することにより起点の座標Bを得ることがで
きるので可能となる。
For a program step in which the retreat operation cannot be performed, the retreat operation may be performed by analyzing a program step executed prior to the program step. For example, if the tool has coordinates A
Is moved to the position of the coordinate B when it is at the position of the coordinate “C”, and the program step “Coordinate C” is further moved to the position of the coordinate C.
In the case where "move to" is stored, the retreating operation for the latter, that is, returning the tool from the coordinate C to the coordinate B, obtains the coordinate B of the starting point by referring to the former, that is, the program step relating to the same kind of movement. It is possible because it is possible.

【0024】さらに、後退動作そのものでなく、後退動
作をオフセット等した動作をさせるようにすることによ
り、前述の場合と同様に、後退動作を元にした対称形状
や連続形状に加工等するプログラムを容易に作成するこ
ともできる。
Further, by performing not the retreating operation itself but an operation such as offsetting the retreating operation, a program for processing into a symmetrical shape or a continuous shape based on the retreating operation can be created in the same manner as in the above-described case. It can also be easily created.

【0025】また、上記のような解析をする手段を備え
た制御プログラムの変換装置によれば、後退動作ができ
ないプログラムステップを含む制御プログラムを、後退
動作が可能なプログラムステップから成る制御プログラ
ムに変換することができるので、すべてのプログラムス
テップについて後退動作をさせることができるようにな
る。
Further, according to the control program conversion device having the means for performing the above-described analysis, the control program including the program steps which cannot perform the retreat operation is converted into the control program including the program steps which can perform the retreat operation. Therefore, the retreat operation can be performed for all program steps.

【0026】[0026]

【実施例】実施例について図面を参照して説明する。図
1は、プログラム動作機械の一例としてのNCフライス
盤、およびその制御装置の外観を示す斜視図である。以
下、 ・装置の全体構成、 ・制御盤15の機能的な構成、 ・操作・表示部16に設けられているスイッチ等、 ・模式的な動作例、および ・詳細な動作例 について説明する。 (装置の全体構成)
An embodiment will be described with reference to the drawings. FIG. 1 is a perspective view showing the appearance of an NC milling machine as an example of a program operation machine and its control device. The following describes a general configuration of the apparatus, a functional configuration of the control panel 15, switches provided on the operation / display unit 16, a schematic operation example, and a detailed operation example. (Overall configuration of the device)

【0027】同図に示すように、このNCフライス盤の
本体部11には、図示しないワークを保持してX軸方向
およびY軸方向に移動させるXYテーブル12が設けら
れている。また、XYテーブル12の上方には、エンド
ミル13や、正面フライス、ドリルなどの工具を主軸に
把持して回転させるとともに、これをZ軸方向に移動さ
せるヘッド14が設けられている。
As shown in FIG. 1, an XY table 12 for holding a work (not shown) and moving the work in the X-axis direction and the Y-axis direction is provided on a main body 11 of the NC milling machine. Above the XY table 12, a head 14 for gripping and rotating a tool such as an end mill 13, a face mill, and a drill on a main shaft and moving the tool in the Z-axis direction is provided.

【0028】本体部の後方には、制御盤15が設けられ
る一方、本体部の前方に張り出して操作・表示部16が
設けられている。なお、操作・表示部16に設けられる
スイッチや表示装置等については後に詳述する。
A control panel 15 is provided behind the main body, and an operation / display section 16 is provided so as to protrude forward of the main body. The switches and display devices provided on the operation / display unit 16 will be described later in detail.

【0029】(制御盤15の機能的な構成) 図2は、上記制御盤15の機能的な構成を示すブロック
図である。記憶部21は、本体部11を動作させるプロ
グラム、このプログラムの実行や操作部の入出力などを
制御する基礎プログラム、およびこれらの制御に必要な
データなどを記憶するものである。
(Functional Configuration of Control Panel 15) FIG. 2 is a block diagram showing a functional configuration of the control panel 15. As shown in FIG. The storage unit 21 stores a program for operating the main unit 11, a basic program for controlling the execution of this program and the input / output of the operation unit, and data necessary for the control.

【0030】動作制御部22は、記憶部21に記憶され
た基礎プログラム等に基づいて、操作・表示部16の操
作の監視や表示の制御を行うとともに、操作・表示部1
6の操作に基づいた手動運転や、記憶部21に記憶され
たプログラムに基づいた自動運転による本体部11の動
作を制御するようになっている。ここで、上記プログラ
ムとしては、あらかじめ操作・表示部16等から入力さ
れたプログラムの他、後述するプログラムステップ生成
部23によって生成、記憶されたプログラムを用いるこ
ともできる。また、プログラムの実行開始位置は、その
先頭に限らず、公知のサーチ手法等によってリードポイ
ンタを設定することにより、任意の位置を指定すること
もできる。ここで、上記リードポインタとは、例えば後
述する図5の記憶内容の欄に記号Rおよび矢印で示すよ
うに、読み出して実行するプログラムステップが記憶さ
れている領域を示すものである。
The operation control unit 22 monitors the operation of the operation / display unit 16 and controls the display based on the basic program and the like stored in the storage unit 21 and also controls the operation / display unit 1.
The operation of the main body 11 is controlled by manual operation based on the operation 6 and automatic operation based on a program stored in the storage unit 21. Here, as the above-mentioned program, a program generated and stored by a program step generation unit 23 described later can be used in addition to a program previously input from the operation / display unit 16 or the like. Further, the execution start position of the program is not limited to the head, and an arbitrary position can be designated by setting a read pointer by a known search method or the like. Here, the read pointer indicates an area in which a program step to be read and executed is stored, for example, as indicated by a symbol R and an arrow in a storage content column of FIG. 5 described later.

【0031】プログラムステップ生成部23は、操作・
表示部16の操作、および記憶部21に記憶されたプロ
グラムに基づいて、新たなプログラムステップを生成
し、記憶部21に記憶させるようになっている。また、
プログラムステップと併せて、後述する後退動作・後退
修正動作・前進修正動作制御部25によって、そのプロ
グラムステップによって示される動作とは逆の動作であ
る後退動作等をさせるために必要な補足情報、例えばワ
ークの移動の前の座標や変更前の主軸の回転速度などを
プログラム中のコメント等として記憶させるようになっ
ている。すなわち、例えばコメントとして記憶させるこ
とにより、従来のプログラム動作機械との互換性を容易
に保ち得るようになっている。
The program step generator 23 operates
A new program step is generated based on the operation of the display unit 16 and the program stored in the storage unit 21 and stored in the storage unit 21. Also,
In addition to the program steps, the backward operation / reverse correction operation / forward correction operation control unit 25 described later uses supplementary information necessary for causing a reverse operation or the like that is the reverse operation to the operation indicated by the program step, for example, The coordinates before the movement of the work, the rotational speed of the spindle before the change, and the like are stored as comments in the program. That is, for example, by storing the comment as a comment, compatibility with a conventional program operation machine can be easily maintained.

【0032】このプログラムステップ生成部23は、ま
た、上記後退動作が行われた場合には、その後退動作自
体を示す新たなプログラムステップを記憶部21に記憶
させるようになっている。
When the retreat operation is performed, the program step generation unit 23 stores a new program step indicating the retreat operation itself in the storage unit 21.

【0033】さらに、プログラムステップ生成部23
は、上記後退動作と同様の動作を行わせるとともにプロ
グラムステップの修正をする後退修正動作が行われた場
合には、元のプログラムステップを、その動作の一部ま
たは全部を打ち消した動作を示すプログラムステップに
修正するとともに、その打ち消した部分に相当するプロ
グラムステップを実行保留プログラムステップとして保
存しておくようになっている。一方、後にこの実行保留
プログラムステップに基づいて、前進修正動作、すなわ
ち、打ち消した部分の動作を再度行わせることにより、
その実行保留プログラムステップを通常のプログラムス
テップに戻し、最初のプログラムステップと同じ動作を
するプログラムに戻すこともできるようになっている。
Further, the program step generator 23
When the backward correction operation for performing the same operation as the above-described reverse operation and correcting the program step is performed, the program indicating the operation in which the original program step is partially or entirely canceled is performed. The program step is modified to a step, and a program step corresponding to the canceled portion is stored as an execution suspension program step. Meanwhile, later this execution pending
Based on the program steps , by performing the forward correction operation, that is, the operation of the canceled portion again,
The execution-pending program step can be returned to a normal program step and returned to a program that performs the same operation as the first program step.

【0034】動作修飾部24は、プログラムによって示
される本体部11の動作に対して、平行移動や、回転移
動、線対称移動、面対称移動、拡大、縮小などの変換を
施した動作をさせるようになっている。すなわち、例え
ば記憶部21に記憶されているプログラムが、図3
(a)に示すように軌跡Pを描く動作を示す場合、X軸
方向にオフセットさせた軌跡P’を描くよう動作をさせ
ることによって、のこぎり形の連続形状の加工、および
そのような加工をするプログラムの作成が容易にでき
る。
The operation modifying unit 24 causes the operation of the main unit 11 indicated by the program to be subjected to operations such as translation, rotation, line symmetry, plane symmetry, enlargement, and reduction. It has become. That is, for example, the program stored in the storage unit 21 is
When the operation of drawing the trajectory P is shown as shown in (a), the operation of drawing the trajectory P ′ offset in the X-axis direction is performed, and the processing of the sawtooth continuous shape and the processing are performed. Programs can be easily created.

【0035】また、上記のようなオフセットを施すこと
により、例えばプログラムを実行させる際に、実際に使
用する工具の長さなどに応じて所定量だけずらした動作
をさせることもできる。特に、マシニングセンタの場合
などには、あらかじめ使用する工具ごとにオフセット量
を登録できるようにして、工具の選択に応じて自動的に
オフセットした動作をさせ得るようにしてもよい。
By applying the offset as described above, for example, when the program is executed, the operation can be shifted by a predetermined amount according to the length of the tool actually used. In particular, in the case of a machining center or the like, an offset amount may be registered in advance for each tool to be used, so that an offset operation may be automatically performed according to the selection of the tool.

【0036】後退動作・後退修正動作・前進修正動作制
御部25は、操作・表示部16等から入力されたプログ
ラムステップや、プログラムステップ生成部23によっ
て記憶部21に記憶されたプログラムステップ、および
補足情報に基づいて、本体部11に後退動作、または後
退修正動作をさせる一方、後退修正動作をさせた場合に
は、その際に保存された実行保留プログラムステップに
基づいて、さらに再度元の動作と同じ前進修正動作をさ
せるよう制御するようになっている。ここで、上記後退
動作とは、前述のように、そのプログラムステップによ
って示される動作とは逆の動作、すなわち、例えばエン
ドミル13の上昇を示すプログラムステップに対して、
エンドミル13を下降させる動作のことである。また、
上記後退修正動作とは、前述のように、上記後退動作と
同様の動作を行わせるとともにプログラムステップの修
正をすること、すなわち、例えばエンドミル13の上昇
を示すプログラムステップに対して、エンドミル13を
下降させるとともに(後退動作)、その下降した分だけ
元のプログラムステップによる動作を取り消した動作を
するように、元のプログラムステップを修正することで
ある。
The reverse operation / reverse correction operation / forward correction operation control unit 25 includes program steps input from the operation / display unit 16 and the like, program steps stored in the storage unit 21 by the program step generation unit 23, and supplementary information. Based on the information, the main body unit 11 is caused to perform the retreat operation or the retreat correction operation, and when the retreat correction operation is performed, the original operation is further performed again based on the execution suspension program step stored at that time. Control is performed so as to perform the same forward correction operation. Here, the retreating operation is, as described above, an operation opposite to the operation indicated by the program step, that is, for example, a program step indicating an elevation of the end mill 13,
This is an operation of lowering the end mill 13. Also,
As described above, the retraction correction operation is to perform the same operation as the retraction operation and to correct the program steps, that is, for example, to raise the end mill 13.
End mill 13 for the program step
Lowering (retreating operation)
The action that canceled the action by the original program step
By modifying the original program steps so that
is there.

【0037】なお、操作・表示部16から入力されたプ
ログラムなどが、増分値移動命令を含む場合であれば、
そのような命令に関して後退動作をさせるようにしても
よいし、また、絶対命令を含む場合であっても、これに
先行する同種の移動命令を検索することにより、または
そのプログラムの先頭からの動作をシミュレートするこ
とにより、後退動作に必要な情報を得て後退動作させる
ようにしてもよい。
If the program or the like input from the operation / display unit 16 includes an instruction to move the increment value,
The backward operation may be performed with respect to such an instruction, and even when the instruction includes an absolute instruction, the operation is performed by searching for the same type of preceding move instruction or from the beginning of the program. May be simulated to obtain the information required for the retreat operation to perform the retreat operation.

【0038】後退動作修飾部26は、上記後退動作に対
して、動作修飾部24と同様に平行移動等の変換を施し
た動作をさせるようになっている。具体的には、例えば
図3(b)に示すように、軌跡Qを描くような動作をさ
せた後、これを線対称に反転させた軌跡Q’を描くよう
に後退動作をさせることにより、ハート形の加工、およ
びそのような加工をするプログラムの作成が容易にでき
る。
The backward movement modifying unit 26 is adapted to perform an operation such as a parallel movement on the backward movement in the same manner as the movement modifying unit 24. Specifically, for example, as shown in FIG. 3B, by performing an operation to draw a trajectory Q, and then performing a retreat operation to draw a trajectory Q ′, which is a mirror image of the trajectory Q ′, A heart-shaped processing and a program for performing such processing can be easily created.

【0039】(操作・表示部16に設けられているスイ
ッチ等) 図4は、操作・表示部16の詳細な構成を示す正面図で
ある。 (表示部) ディスプレイD1は、例えばX、Y、Z座標や移動速
度、主軸の回転速度などの本体部11の状態、および記
憶部21に記憶されたプログラム等を表示するCRT表
示装置である。
FIG. 4 is a front view showing a detailed configuration of the operation / display unit 16. (Display Unit) The display D1 is a CRT display device that displays the state of the main body unit 11 such as X, Y, and Z coordinates, a moving speed, a rotation speed of a main shaft, a program stored in the storage unit 21, and the like.

【0040】(手動運転に関するスイッチ等) 手動ハンドルH1は、ワークまたはエンドミル13を
X、Y、またはZ軸方向に手動でハンドル送りするため
のハンドルである。ハンドル送り軸切り換えスイッチS
1は、手動ハンドルH1によって送る軸を選択するスイ
ッチである。ハンドル送り倍率切り換えスイッチS2
は、手動ハンドルH1の倍率を設定する切り換えスイッ
チである。手動送り起動スイッチS3は、ワークまたは
エンドミル13を所定の速度で手動送りするためのスイ
ッチである。手動送り軸切り換えスイッチS4は、上記
手動送りする軸を選択するスイッチである。
(Switches Related to Manual Operation) The manual handle H1 is a handle for manually feeding the workpiece or the end mill 13 in the X, Y, or Z axis directions. Handle feed axis changeover switch S
Reference numeral 1 denotes a switch for selecting an axis to be sent by the manual handle H1. Handle feed magnification changeover switch S2
Is a changeover switch for setting the magnification of the manual handle H1. The manual feed start switch S3 is a switch for manually feeding the work or the end mill 13 at a predetermined speed. The manual feed axis changeover switch S4 is a switch for selecting the axis to be manually fed.

【0041】(プログラムの入力、自動運転などに関す
るスイッチ等) キースイッチK11は、記憶部21へのプログラムの入
力や編集等を行うアルファベットキーやテンキーなどの
キースイッチ群である。自動運転開始ボタンB11は、
いわゆるサイクルスタート、すなわち記憶部21に記憶
されたプログラムに基づく運転を開始するためのボタン
スイッチである。自動運転休止ボタンB12は、いわゆ
るフィードホールド、すなわち上記プログラムによる運
転を一時的に停止させるためのボタンスイッチである。
シングルブロック切り換えスイッチS11は、各プログ
ラムステップを順次連続して実行する連続モードと、自
動運転開始ボタンB11を押すごとに、1プログラムス
テップずつ実行するシングルブロックモードとを切り換
えるスイッチである。
(Switches Related to Program Input, Automatic Operation, etc.) The key switch K11 is a group of key switches such as alphabet keys and numeric keys for inputting and editing programs to the storage unit 21. The automatic operation start button B11 is
This is a so-called cycle start, that is, a button switch for starting operation based on a program stored in the storage unit 21. The automatic operation stop button B12 is a so-called feed hold, that is, a button switch for temporarily stopping the operation according to the program.
The single block changeover switch S11 is a switch that switches between a continuous mode in which each program step is sequentially and continuously executed and a single block mode in which each time the automatic operation start button B11 is pressed, one program step is executed.

【0042】(新たなプログラムステップの生成に関す
るスイッチ等) 記憶開始ボタンB21は、プログラムステップ生成部2
3に、自動運転または手動運転に基づいた新たなプログ
ラムステップの生成、記憶を開始させるためのボタンス
イッチである。すなわち、このボタンが押されると、プ
ログラムステップ生成部23は、まず記憶部21のライ
トポインタをプログラム書き込み領域の先頭に設定し、
その後になされた動作に応じて、同じ動作をする新たな
プログラムステップを順次記憶部21に記憶させる。こ
こで、上記ライトポインタとは、例えば後述する図5の
記憶内容の欄に記号Wおよび矢印で示すように、生成さ
れたプログラムステップを記憶させる領域を示すもので
ある。
(Switch for Generating a New Program Step, etc.) The storage start button B 21 is
Reference numeral 3 denotes a button switch for starting generation and storage of a new program step based on automatic operation or manual operation. That is, when this button is pressed, the program step generation unit 23 first sets the write pointer of the storage unit 21 to the beginning of the program writing area,
In accordance with the operation performed thereafter, new program steps that perform the same operation are sequentially stored in the storage unit 21. Here, the write pointer indicates an area in which the generated program step is stored, for example, as indicated by a symbol W and an arrow in a storage content column of FIG. 5 described later.

【0043】記憶状態表示ランプL21は、点灯または
点滅により、上記プログラムステップの生成、記憶状態
であることを表示するランプ(LEDなど)である。記
憶中断ボタンB22は、ライトポインタの値を保持した
まま、プログラムステップの生成、記憶動作を停止させ
るボタンスイッチである。
The storage state display lamp L21 is a lamp (such as an LED) that lights up or flashes to indicate that the program step has been generated and stored. The storage suspend button B22 is a button switch for stopping the generation and the storage operation of the program step while holding the value of the write pointer.

【0044】状態チェックボタンB23は、記憶中断ボ
タンB22を押した後に手動運転などをした場合に、そ
の記憶中断ボタンB22を押した時点と、現在とにおけ
る本体部11の状態、およびこれらの状態の相違をディ
スプレイD1に表示させるためのボタンスイッチであ
る。この本体部11の状態としては、例えばX、Y、Z
座標、また、回転テーブルを備えている場合には回転角
Aや、種々のパラメータ、補正値、変数値の値、主軸回
転数などが表示される。すなわち、状態チェックボタン
B23を押すことにより、それまでに記憶部21に記憶
されたプログラムを実行した後の座標値などの状態と、
現在の状態との相違等を容易に把握することができるよ
うになっている。ここで、記憶中断ボタンB22を押し
た直後の状態の表示は、その状態を示す情報を手動また
は自動的にワークエリアに記憶させて参照したり、記憶
部21におけるライトポインタによって示される領域よ
り前の領域に記憶されたプログラムステップや補足情報
等を参照したり、また、そのプログラムの先頭からの動
作をシミュレートしたりして得ることにより行われる。
When manual operation or the like is performed after pressing the memory suspend button B22, the state check button B23 is used to display the state of the main body 11 at the time when the memory suspend button B22 is pressed, the current state, and the state of these states. This is a button switch for displaying the difference on the display D1. As the state of the main body 11, for example, X, Y, Z
If a rotation table is provided, coordinates, a rotation angle A, various parameters, correction values, values of variable values, spindle rotation speed, and the like are displayed. That is, by pressing the state check button B23, the state of the coordinate values and the like after the execution of the program stored in the storage unit 21 up to that time,
The difference from the current state can be easily grasped. Here, the display of the state immediately after the storage interrupt button B22 is pressed is such that the information indicating the state is manually or automatically stored in the work area for reference, or the display before the area indicated by the write pointer in the storage unit 21 is performed. This is performed by referring to the program steps and supplementary information stored in the area, and simulating the operation from the beginning of the program.

【0045】なお、後退修正動作や前進修正動作を行わ
せてプログラムステップを修正した後に状態チェックボ
タンB23を押した場合には、上記記憶中断ボタンB2
2を押した直後の状態に代えて、その後退修正動作等を
行った直後の状態が表示されるようになっている。ま
た、プログラムの追加修正等のために、任意の位置にラ
イトポインタをセットできるようにした場合には、その
挿入位置までのプログラムステップを実行したときに得
られる状態が表示されるようにしてもよい。
When the state check button B23 is pressed after the program step is corrected by performing the backward correction operation or the forward correction operation, the memory interruption button B2
Instead of the state immediately after pressing 2, the state immediately after performing the retreat correction operation or the like is displayed. In addition, when the light pointer can be set at an arbitrary position for additional correction of a program or the like, a state obtained when a program step up to the insertion position is executed may be displayed. Good.

【0046】復帰開始ボタンB24は、X、Y、Z、A
座標や、種々のパラメータ、補正値、変数値の値、主軸
回転数などの本体部11の状態を選択的に、または一括
して記憶中断ボタンB22を押した時点、または後退修
正動作等を行った直後と同じ状態に戻し、新たなプログ
ラムステップの生成、記憶を再開できるようにするため
のボタンスイッチである。
The return start button B24 is for X, Y, Z, A
The state of the main body 11 such as the coordinates, various parameters, correction values, variable values, and spindle rotation speeds is selectively or collectively pressed when the memory suspend button B22 is pressed, or a backward correction operation is performed. This is a button switch for returning to the same state immediately after the start and enabling the restart of generation and storage of a new program step.

【0047】記憶再開可能表示ランプL22は、記憶中
断ボタンB22が押される前に記憶されたプログラムス
テップ、または後退修正動作や前進修正動作によって記
憶されたプログラムステップに続けて記憶の再開ができ
ること、すなわち、記憶中断ボタンB22による記憶停
止状態であり、かつ、記憶中断ボタンB22を押した時
点、または後退修正動作等を行った直後と同じ状態であ
ることを表示するランプである。
The memory resumable display lamp L22 is capable of resuming the storage following the program step stored before the storage interrupt button B22 is pressed or the program step stored by the backward correction operation or the forward correction operation. This lamp indicates that the storage is stopped by the storage interrupt button B22, and that the state is the same as when the storage interrupt button B22 is pressed or immediately after the backward correction operation or the like is performed.

【0048】記憶再開ボタンB25は、プログラムステ
ップの生成、記憶を再開させるためのボタンスイッチで
ある。記憶終了ボタンB26は、プログラムステップの
生成、記憶を終了させるためのボタンスイッチである。
The storage restart button B25 is a button switch for restarting generation and storage of program steps. The storage end button B26 is a button switch for ending the generation and storage of the program step.

【0049】待ち時間記憶スイッチS21は、手動運転
に基づいてプログラムステップを生成する際、何も操作
しない時間があった場合に、同じ時間だけ時間待ちする
プログラムステップを生成するか否かを指定するスイッ
チである。なお、生成しないように指定した場合でも、
時間待ちのプログラムステップを通常の命令またはコメ
ントなどとして記憶させておき、実行時にそのプログラ
ムステップを有効にするかどうか選択できるようにして
もよい。
The wait time storage switch S21 specifies whether to generate a program step that waits for the same amount of time when there is a time during which no operation is performed when generating a program step based on manual operation. Switch. Even if you specify not to generate,
The program step waiting for time may be stored as a normal instruction or comment, and it may be possible to select whether to validate the program step at the time of execution.

【0050】(動作モード等に関するスイッチ等) 自動運転モードボタンB31、ハンドル運転モードボタ
ンB32、および手動送りモードボタンB33等は、そ
れぞれ上記プログラムに基づく自動運転、ハンドル運
転、および手動送りを行うモードを選択するためのボタ
ンスイッチである。
(Switches Related to Operation Mode, etc.) The automatic operation mode button B31, the steering wheel operation mode button B32, the manual feed mode button B33, and the like are used to set the mode for performing the automatic operation, the steering wheel operation, and the manual feed based on the above-described program. Button switch for selecting.

【0051】前進・後退動作選択スイッチS31は、自
動運転モードでプログラムに基づく自動運転を行う場合
に、前進動作(プログラムステップ通りの動作)をさせ
るか、または後退動作をさせるかを選択するスイッチで
ある。
The forward / reverse operation selection switch S31 is a switch for selecting whether to perform a forward operation (operation according to a program step) or a reverse operation when performing automatic operation based on a program in the automatic operation mode. is there.

【0052】後退修正動作可能状態表示ランプL41
は、後退修正動作が可能な状態、すなわち、記憶中断ボ
タンB22による記憶停止状態であり、かつ、記憶中断
ボタンB22を押した時点、または先の後退修正動作等
を行った直後と同じ状態あることを表示するランプであ
る。
Backward correction operable state display lamp L41
Is a state in which the backward revising operation is possible, that is, a state in which the memory is stopped by the memory suspending button B22, and the same state as when the memory suspending button B22 is pressed or immediately after the previous backward revising operation or the like is performed. Is displayed.

【0053】後退修正動作モードボタンB41は、自動
運転開始ボタンB11を押したときに後退修正動作を行
わせてプログラムステップを修正するモードに切り換え
るためのボタンスイッチである。
The reverse correction operation mode button B41 is a button switch for performing a reverse correction operation when the automatic operation start button B11 is pressed to switch to a mode for correcting a program step.

【0054】後退修正動作モードランプL42は、点灯
または点滅により、後退修正動作モードの状態であるこ
とを表示するランプである。
The backward correction operation mode lamp L42 is a lamp that lights or flashes to indicate that the vehicle is in the backward correction operation mode.

【0055】前進修正動作可能状態表示ランプL51、
前進修正動作モードボタンB51、および前進修正動作
モードランプL52は、それぞれ、前進修正動作に対す
る、上記後退修正動作可能状態表示ランプL41等と同
様の機能を有するものである。
The forward correction operable state display lamp L51,
The forward correction operation mode button B51 and the forward correction operation mode lamp L52 have the same functions as the above-described backward correction operation enabled state display lamp L41 for the forward correction operation, respectively.

【0056】(その他のスイッチ等) 早送りモード設定ボタンB65、および切削送りモード
設定ボタンB66は、生成されるプログラム中に、移動
速度を早送り速度や切削送り速度にする命令(例えば後
述する「G0」や「G1」)を挿入するためのボタンスイッ
チである。なお、このような命令を挿入することに加え
て、その後の移動速度の変更を無効にするようなプログ
ラムステップを生成するように、すなわち、例えば早送
りモード設定ボタンB65が押されてから切削送りモー
ド設定ボタンB66が押されるまでの間は、移動が早送
りになるようにプログラムステップを生成するようにし
てもよい。
(Other switches, etc.) The rapid feed mode setting button B65 and the cutting feed mode setting button B66 are commands for setting the moving speed to the rapid feed speed or the cutting feed speed during the generated program (for example, "G0" described later). Or "G1"). In addition to inserting such a command, a program step for invalidating the subsequent change of the moving speed is generated, that is, for example, the cutting feed mode is set after the rapid feed mode setting button B65 is pressed. Until the setting button B66 is pressed, a program step may be generated so that the movement is fast-forwarded.

【0057】一時停止設定ボタンB67は、新たに生成
しているプログラム中に一時停止を示すプログラムステ
ップを挿入するためのボタンスイッチである。すなわ
ち、記憶動作中に、他のプログラムを参照して実行させ
ている場合に、そのプログラム中に一時停止のプログラ
ムステップが含まれていても、その実行時には、本体部
11の動作は、再度自動運転開始ボタンB11が押され
るまで停止するが、それまで、または手動操作等をする
までの間は、時間待ちのプログラムステップが記憶され
るだけなので、このボタンを押すことにより、記憶して
いるプログラム中にも一時停止を示すプログラムステッ
プを挿入することができる。また、他のプログラムを参
照して実行させている時に自動運転休止ボタンB12を
押してプログラムの実行を停止させた場合も同様であ
る。なお、このような場合に、自動的に一時停止のプロ
グラムステップが記憶されるようにしてもよいし、ま
た、記憶動作中でなくても、プログラムの所望の位置に
ライトポインタをセットしてこのボタンを押すことによ
り、一時停止のプログラムステップを記憶できるように
してもよい。
The pause setting button B67 is a button switch for inserting a program step indicating a pause into a newly generated program. In other words, if another program is executed while referring to another program during the storage operation, even if the program includes a paused program step, the operation of the main unit 11 is automatically re-executed at that time. The operation is stopped until the operation start button B11 is pressed. Until then, or until a manual operation or the like is performed, the program step waiting for time is only stored. A program step indicating a pause can be inserted therein. The same applies to the case where the execution of the program is stopped by pressing the automatic operation stop button B12 while referring to another program for execution. In such a case, the program step of the pause may be automatically stored, or the write pointer may be set at a desired position of the program even when the storage operation is not being performed. By pressing a button, a paused program step may be stored.

【0058】長補正指令ボタンB61、径補正(アップ
カット)指令ボタンB62、径補正(ダウンカット)指
令ボタンB63、径補正なし指令ボタンB64は、それ
ぞれ、上記一時停止設定ボタンB67と同様に、新たに
生成しているプログラム中などに、エンドミル13の長
さや直径についての補正をかけることを示す命令を挿入
するためのボタンスイッチである。
The length correction command button B61, the diameter correction (up cut) command button B62, the diameter correction (down cut) command button B63, and the diameter correction non-command button B64 are each newly provided in the same manner as the pause setting button B67. Is a button switch for inserting a command indicating that the length or diameter of the end mill 13 is to be corrected, for example, in a program being generated.

【0059】上記の他、操作・表示部16には、従来の
装置と同様に電源オン、オフボタンや、入力したプログ
ラムを一時的に保持させて運転するSMモードボタン、
磁気またはパンチテープに記憶されたプログラムに基づ
いて運転するボタン、主軸の回転を手動で起動または停
止させるボタン、非常停止ボタン、また、プログラムの
指定に係らず、そのプログラムのチェック等のために強
制的にドライランなどをさせるためのボタンなどが設け
られている。上記構成のNCフライス盤、およびその制
御装置の具体的な動作について説明する。
In addition to the above, the operation / display unit 16 includes a power on / off button as in the case of the conventional device, an SM mode button for temporarily holding an inputted program for operation, and
A button that operates based on a program stored on a magnetic or punched tape, a button that manually starts or stops the rotation of the spindle, an emergency stop button, and is forced to check the program regardless of the program designation Buttons for performing a dry run and the like are provided. The specific operation of the NC milling machine having the above configuration and its control device will be described.

【0060】(模式的な動作例) 以下、模式的な動作例として、 ・自動運転モードでの前進・後退動作、および ・後退・前進修正動作モードでの後退・前進修正動作に
ついて説明する。 (自動運転モードでの前進・後退動作) まず、自動運転モードでの前進・後退動作における操作
・表示部16の操作、記憶部21の記憶内容、および本
体部11の実際の動作について説明する。この例では、
エンドミル13をX軸の正の方向に移動させる既存のプ
ログラムステップ(X=20へ移動)を用いて、往復動
作が繰り返されるとともに、図5(e)の動作の欄に示
すように上記全ての往復動作を示す一連のプログラムス
テップが生成される。なお、説明の便宜上、1軸方向の
移動だけについて説明するが、この種の往復動作は、例
えば前記図3(a)(b)に示すような形状の加工など
をする機械加工の分野等において、往々にして用いられ
るものである。すなわち、あらかじめエンドミル13を
X=10から20の座標位置まで移動させたとき(な
お、実際にはエンドミル13に対して相対的にワークが
反対方向に移動するが、説明の便宜上、エンドミル13
が移動するとして説明する。)に、図5(a)に示すよ
うに記憶部21に記憶されたプログラムステップ「X=
20へ移動」および補足情報「移動前X=10」を繰り
返して参照しながら、前進動作と後退動作とを交互に実
行し、その一連の全ての動作について新たなプログラム
ステップを生成、記憶する例について説明する。ここ
で、前進動作とは、あらかじめ記憶されたプログラムス
テップによって示される通りの動作をさせることであ
り、後退動作とは、前述のように上記プログラムステッ
プによって示されるのとは逆の動作をさせることであ
る。また、これらの動作をさせる際に、その動作に応じ
た新たなプログラムステップは生成されるが、元のプロ
グラムステップは変更されない。
(Schematic Operation Example) Hereinafter, as a typical operation example, a forward / backward operation in the automatic operation mode, and a backward / forward correction operation in the backward / forward correction operation mode will be described. (Forward / backward operation in the automatic operation mode) First, the operation of the operation / display unit 16 in the forward / backward operation in the automatic operation mode, the contents stored in the storage unit 21, and the actual operation of the main unit 11 will be described. In this example,
An existing tool for moving the end mill 13 in the positive direction of the X-axis
Reciprocating using program step (moving to X = 20)
The operation is repeated, and the operation is shown in the operation column of FIG.
A series of programs showing all the above reciprocating operations
A step is generated. In addition, for convenience of explanation, one axis direction
Only the movement will be described.
For example, processing of a shape as shown in FIGS.
Is often used in the field of machining
Things. That is, when the end mill 13 is previously moved to the coordinate position of X = 10 to 20 (actually, the workpiece moves in the opposite direction relative to the end mill 13;
Will be described as moving. ) Includes the program step “X =” stored in the storage unit 21 as shown in FIG.
Example of repeatedly executing forward movement and backward movement while repeatedly referring to “move to 20” and supplementary information “X before movement = 10”, and generating and storing new program steps for all the series of operations. Will be described. Here, the forward operation is to perform an operation as indicated by a program step stored in advance, and the backward operation is to perform an operation opposite to that indicated by the program step as described above. It is. When these operations are performed, new program steps corresponding to the operations are generated, but the original program steps are not changed.

【0061】(1)記憶部21には、図5(a)に示す
ように、インデックス0050の領域に参照するプログ
ラムステップが記憶されているとし、また、エンドミル
13はX=5の位置にあるとする。なお、この例のよう
に参照するプログラムステップの補足情報(「移動前X
=10」)と現在の状態(X=5)とが一致していない
場合に、その旨の警告を表示するようにしてもよいし、
一致する場合にのみ実行できるようにしてもよい。
(1) As shown in FIG. 5 (a), it is assumed that the storage unit 21 stores program steps for referring to the area of the index 0050, and the end mill 13 is located at the position of X = 5. And Note that as in this example, the supplementary information of the program step to be referred to (“X before movement”).
= 10 ") and the current state (X = 5) do not match, a warning to that effect may be displayed,
The execution may be performed only when they match.

【0062】自動運転モードボタンB31を押して自動
運転モードにし、シングルブロック切り換えスイッチS
11を「ON(シングルブロック:自動運転開始ボタン
B11を押すごとに、1プログラムステップずつ実行す
。より具体的には例えば図5(a)に示すインデック
ス0050のプログラムステップ「X=20へ移動」を
実行した後、次のインデックス0060のプログラムス
テップ(不図示)を実行することなく動作が停止す
る。)」、前進・後退動作選択スイッチS31を「前
進」に切り換え、リードポインタを0050にセットし
て、記憶開始ボタンB21を押す。このとき、ライトポ
インタは0100にセットされているとする。ここで、
上記リードポインタ、およびライトポインタとは、前述
のように、読み出して実行するプログラムステップが記
憶されている領域、または生成されたプログラムステッ
プを記憶させる領域を示すものである。より具体的に
は、例えば上記のようにリードポインタが0050にセ
ットされることにより、自動運転開始ボタンB11が押
されたときに、図5(a)に示すようにインデックス0
050と対応して記憶されているプログラムステップ
「X=20へ移動」が読み出されて実行される。また、
ライトポインタが0100にセットされることにより、
図5(b)に示すようにインデックス0100と対応さ
せて、生成されたプログラムステップ「X=20へ移
動」が記憶される。なお、これらのリードポインタ、お
よびライトポインタは、一般には、プログラムステップ
の読み出しや記憶が行われるごとに自動的に所定の数ず
つインクリメントされるなどして順次次のプログラムス
テップの読み出しや記憶がなされるようになるものであ
るが、後述するように例えばリードポインタを固定する
ようにして常に同じプログラムステップが読み出される
ようにするなどしてもよい。
The automatic operation mode button B31 is pressed to set the automatic operation mode, and the single block changeover switch S
11 is set to "ON (single block: each time the automatic operation start button B11 is pressed, one program step is executed . More specifically, for example, the index shown in FIG.
Step 0050: Program step "Move to X = 20"
After execution, the program index of the next index 0060
Operation stops without performing step (not shown)
You. ) ", Switch the forward / backward operation selection switch S31 to" forward ", set the read pointer to 0050, and press the storage start button B21. At this time, it is assumed that the write pointer is set to 0100. here,
As described above, the read pointer and the write pointer indicate an area in which program steps to be read and executed are stored or an area in which generated program steps are stored. More specifically
For example, as described above, the read pointer is set to 0050.
The automatic operation start button B11 is pressed.
When this is done, the index 0 as shown in FIG.
Program steps stored corresponding to 050
“Move to X = 20” is read and executed. Also,
By setting the write pointer to 0100,
As shown in FIG.
To the generated program step "X = 20".
"Movement" is stored. Note that these read pointers and
And light pointers are generally
Each time data is read or stored, a predetermined number is automatically
The next program
It will be possible to read and memorize steps.
However, for example, a read pointer is fixed as described later.
Always read the same program steps
And so on.

【0063】(2)図5(b)に示すように、自動運転
開始ボタンB11を押すと、動作制御部22が、エンド
ミル13をX=20まで移動させるとともに、プログラ
ムステップ生成部23は、記憶部21のインデックス0
100の領域にプログラムステップ「X=20へ移動」
と補足情報「移動前X=5」とを書き込み、ライトポイ
ンタを0200にセットする。また、動作制御部22
は、1ステップの動作完了により、リードポインタを次
の0060にセットする。
(2) As shown in FIG. 5B, when the automatic operation start button B11 is pressed, the operation control unit 22 moves the end mill 13 to X = 20, and the program step generation unit 23 stores Index 0 of part 21
Program step "move to X = 20" in the area of 100
And the supplementary information "X = 5 before movement" are written, and the write pointer is set to 0200. The operation control unit 22
Sets the read pointer to the next 0060 upon completion of the one-step operation.

【0064】なお、この例のように同じプログラムステ
ップをくり返し参照する場合には、リードポインタを固
定するようにしてもよいし、また固定するかインクリメ
ントするかを選択できるようにしてもよく、また、イン
クリメントする場合に1ステップの動作が完了しなくて
も動作を開始していればインクリメントするようにして
もよい。さらに、その都度元のプログラムステップを参
照せずに、一旦プログラムステップ「X=20へ移動」
と補足情報「移動前X=10」、または前進、後退用の
2つのプログラムステップ「X=20へ移動」とプログ
ラムステップ「X=10へ移動」とをワークエリアに転
送して、これを参照するようにしてもよい。
In the case where the same program step is repeatedly referred to as in this example, the read pointer may be fixed, or whether to fix or increment the read pointer may be selected. When incrementing, the operation may be incremented if the operation is started even if the operation of one step is not completed. Further, without referring to the original program step each time, the program step “move to X = 20” is once performed.
And the supplementary information "X = 10 before movement", or the two program steps "Move to X = 20" and "Move to X = 10" for forward and backward movement to the work area and refer to them. You may make it.

【0065】(3)図5(c)に示すように、前進・後
退動作選択スイッチS31を「後退」に切り換える。ま
た、再度リードポインタを0050にセットして、自動
運転開始ボタンB11を押すと、後退動作・後退修正動
作・前進修正動作制御部25が、参照したプログラムス
テップ「X=20へ移動」を「X=10へ移動」に変換
し、動作制御部22は、エンドミル13をX=10に向
けて移動させる。
(3) As shown in FIG. 5C, the forward / backward operation selecting switch S31 is switched to "backward". When the read pointer is set to 0050 again and the automatic operation start button B11 is pressed, the reverse movement / reverse correction operation / forward correction operation control unit 25 sets the referenced program step "Move to X = 20" to "X = 20". = 10 ”, and the operation control unit 22 moves the end mill 13 toward X = 10.

【0066】ここで、エンドミル13がX=14の位置
に達したときに自動運転休止ボタンB12が押されたと
すると、プログラムステップ生成部23は、記憶部21
のインデックス0200の領域にプログラムステップ
「X=14へ移動」と補足情報「移動前X=20」とを
書き込み、ライトポインタを0300にセットする。ま
た、この場合、1ステップの動作が完了しなかったの
で、リードポインタは0050のまま保持される。上記
のように自動運転休止ボタンB12を押すことにより、
あらかじめ記憶されているプログラムステップ「X=1
0へ移動」(移動前X=10)の後退動作は「X=10
へ移動」であるが、X=14までしか移動しないプログ
ラムステップを作成することができる。これにより、所
望の動作をさせる既存のプログラムがない場合でも、そ
の所望の動作に類似した動作をする既存のプログラムが
あれ ば、それを有効に利用して、上記所望の動作をする
プログラムを作成することが容易にできる。
If the automatic operation stop button B12 is pressed when the end mill 13 reaches the position of X = 14, the program step generation unit 23
The program step “move to X = 14” and the supplementary information “X = 20 before movement” are written in the area of the index 0200, and the write pointer is set to 0300. Also, in this case, since the one-step operation has not been completed, the read pointer is held at 0050. the above
By pressing the automatic operation stop button B12 as shown in
The previously stored program step “X = 1
The retreat operation of “move to 0” (X = 10 before movement) is “X = 10
Move to X = 14 but move only up to X = 14
Ram steps can be created. This allows
Even if no existing program works the way you want,
An existing program that behaves similar to the desired behavior of
If there is, use it effectively to perform the above desired operation
You can easily create programs.

【0067】(4)図5(d)に示すように、前進・後
退動作選択スイッチS31を「前進」に切り換えて、自
動運転開始ボタンB11を押すと、動作制御部22は、
エンドミル13をX=20に向けて移動させる。ここ
で、エンドミル13がX=17の位置に達したときに
えば自動運転休止ボタンB12が押されたとすると、プ
ログラムステップ生成部23は、記憶部21のインデッ
クス0300の領域にプログラムステップ「X=17へ
移動」と補足情報「移動前X=14」とを書き込み、ラ
イトポインタを0400にセットする。
(4) As shown in FIG. 5D, when the forward / reverse operation selection switch S31 is switched to "forward" and the automatic operation start button B11 is pressed, the operation control unit 22
The end mill 13 is moved toward X = 20. Here, an example when the end mill 13 has reached the position of X = 17
For example, if the automatic operation stop button B12 is pressed, the program step generation unit 23 writes the program step “move to X = 17” and the supplementary information “X before movement = 14” in the area of the storage unit 21 at the index 0300. , The write pointer is set to 0400.

【0068】(5)(3)と同様に、図5(e)に示す
ように、前進・後退動作選択スイッチS31を「後退」
に切り換えて、自動運転開始ボタンB11を押すと、後
退動作・後退修正動作・前進修正動作制御部25が、参
照したプログラムステップ「X=20へ移動」を「X=
10へ移動」に変換し、動作制御部22は、エンドミル
13をX=10まで移動させ、上記のようにシングルブ
ロック切り換えスイッチS11が「ON」に設定されて
いるので、運転動作は自動的に停止する。プログラムス
テップ生成部23は、記憶部21のインデックス040
0の領域にプログラムステップ「X=10へ移動」と補
足情報「移動前X=17」とを書き込み、ライトポイン
タを0500にセットする。
(5) Similarly to (3), as shown in FIG. 5 (e), the forward / reverse operation selecting switch S31 is set to "reverse".
And the automatic operation start button B11 is pressed, the reverse operation / reverse correction operation / forward correction operation control unit 25 sets the referenced program step “move to X = 20” to “X = 20”.
The operation control unit 22 moves the end mill 13 to X = 10, and the single-block changeover switch S11 is set to “ON” as described above. Stop. The program step generation unit 23 stores the index 040 in the storage unit 21
The program step “move to X = 10” and the supplementary information “X = 17 before movement” are written in the area of 0, and the write pointer is set to 0500.

【0069】なお、上記の動作ではX軸方向にのみ移動
する例を示したが、参照するプログラムステップがY軸
方向等に移動させることも示している場合には、同様に
移動させるようにしてもよいし、選択によりY軸方向等
の移動を無視できるようにしてもよい。
In the above operation, an example in which the movement is performed only in the X-axis direction has been described. However, if the program step to be referred to indicates that the movement is performed in the Y-axis direction or the like, the movement is similarly performed. Alternatively, the movement in the Y-axis direction or the like may be ignored by selection.

【0070】また、上記の動作は、必ずしも新たなプロ
グラムステップを生成して記憶させる場合に限らず、記
憶開始ボタンB21を押さなければ、その場での1回限
りの動作だけをさせることもできる。すなわち、新たな
プログラムを作成するかどうかに係らず、1つまたは複
数のプログラムステップを元に、アップカットとダウン
カットと(エンドミル13とワークとの接触位置におけ
るエンドミル13の周速方向、または周速方向と逆の方
向に相対的にエンドミル13を移動させながら切削する
こと。)を繰り返すことなどが容易にできる。
The above-described operation is not limited to the case where a new program step is generated and stored. If the storage start button B21 is not pressed, only the one-time operation on the spot can be performed. . That is, irrespective of whether a new program is created or not, based on one or a plurality of program steps, the up-cut and the down-cut (the circumferential direction of the end mill 13 at the contact position between the end mill 13 and the work, or the circumferential direction). The cutting can be easily performed while the end mill 13 is relatively moved in the direction opposite to the speed direction.

【0071】(後退・前進修正動作モードでの後退・前
進修正動作) 次に、後退・前進修正動作モードにおける操作・表示部
16の操作、記憶部21の記憶内容、および本体部11
の実際の動作、すなわち、記憶部21に記憶されたプロ
グラムステップを後退・前進修正動作によって修正する
例について説明する。この例では、あらかじめ作成され
た、エンドミル13をX=5からX=20まで移動させ
るプログラムステップが、最終的に、図6(e)に示す
ようにX=5からX=10まで移動させるプログラムス
テップに修正される。(なお、この例は模式的な動作例
であるが、この例のように試行錯誤などしながら所望の
プログラムステップを得ることが容易にできる。)ここ
で、上記後退修正動作とは、前述のように、前記後退動
作と同様の動作を行わせるとともにプログラムステップ
の修正をすることである。また、上記前進修正動作と
は、前述のように、後退修正動作をさせた後に、再度前
進動作をさせるとともに上記プログラムステップの修正
を元に戻すことである。なお、前記前進・後退動作の例
では、ライトポインタは書き込み用としてのみ作用した
のに対し、後退・前進修正動作の場合には、読み込み用
としても作用し、プログラムステップの読み込み、およ
び書き込みを行うようになっている。そこで、以降の説
明では、「ライトポインタ」に代えて「リードライトポ
インタ」と呼ぶ。
(Reverse / Forward Correction Operation in Backward / Forward Correction Operation Mode) Next, the operation of the operation / display unit 16 in the backward / forward correction operation mode, the contents stored in the storage unit 21, and the main unit 11
A description will be given of an example of the actual operation, that is, an example in which the program steps stored in the storage unit 21 are corrected by the backward / forward correction operation. In this example,
Then, the end mill 13 was moved from X = 5 to X = 20.
Finally, the program steps shown in FIG.
To move from X = 5 to X = 10
Corrected to Tep. (Note that this example is a schematic operation example
However, as shown in this example,
Program steps can be easily obtained. ) Here, the above-mentioned backward corrective action, as described above, is to correct the program step with to perform the backward operation similar. The forward correction operation is, as described above, after performing the backward correction operation, performing the forward operation again, and returning the correction of the program step to the original state. In the example of the forward / backward operation, the write pointer acts only for writing, whereas in the case of the backward / forward correcting operation, it also acts for reading, and reads and writes program steps. It has become. Therefore, in the following description, it will be referred to as “read / write pointer” instead of “write pointer”.

【0072】(1)記憶部21には、図6(a)に示す
ように、エンドミル13が、X=5の位置にあり、リー
ドライトポインタが0100にセットされているとき
に、記憶開始ボタンB21を押し、自動運転モード、ま
たは手動送りモード等によって、エンドミル13をX=
5から20の座標位置まで移動させ、記憶中断ボタンB
22を押すと、プログラムステップ生成部23は、記憶
部21のインデックス0100の領域にプログラムステ
ップ「X=20へ移動」と補足情報「移動前X=5」と
を書き込み、リードライトポインタを0200にセット
する。
(1) In the storage unit 21, as shown in FIG. 6A, when the end mill 13 is at the position of X = 5 and the read / write pointer is set to 0100, the storage start button Press B21 to move the end mill 13 to X = in automatic operation mode or manual feed mode.
Move to the coordinate position from 5 to 20 and press the memory suspend button B
When the user presses 22, the program step generation unit 23 writes the program step “move to X = 20” and the supplementary information “X = 5 before movement” to the area of the index 0100 of the storage unit 21 and sets the read / write pointer to 0200. set.

【0073】(2)図6(b)に示すように、後退修正
動作モードボタンB41を押して後退修正動作モードに
し、自動運転開始ボタンB11を押すと、後退動作・後
退修正動作・前進修正動作制御部25が、参照したプロ
グラムステップ「X=20へ移動」を「X=5へ移動」
に変換し、動作制御部22は、エンドミル13をX=5
に向けて移動させる。
(2) As shown in FIG. 6 (b), the reverse correction operation mode button B41 is pressed to enter the reverse correction operation mode, and when the automatic operation start button B11 is pressed, the reverse operation / reverse correction operation / forward correction operation control is performed. The program step 25 referred to by the program step “move to X = 20” is “move to X = 5”.
The operation control unit 22 sets the end mill 13 to X = 5
Move toward.

【0074】ここで、エンドミル13がX=14の位置
に達したときに自動運転休止ボタンB12が押されたと
すると、プログラムステップ生成部23は、元のプログ
ラムステップの「X=20へ移動」を「X=14へ移
動」に修正するとともに、残りの移動を示すプログラム
ステップ「X=20へ移動」と補足情報「移動前X=1
4」を生成して記憶させ、実行保留フラグをセットす
る。また、各プログラムステップのインデックスは、元
のインデックス0100のプログラムステップが分割さ
れたものであることを示すために「0100−10」、
および「0100−20」とする。ここで、上記および
図6(b)に示すように実行保留フラグがセットされる
ことにより、上記残りの移動を示すプログラムステップ
「X=20へ移動」(すなわち動作が打ち消された部分
に相当するプログラムステップ)が前述のように実行保
留プログラムステップであることが示されるようになっ
ている。このような実行保留プログラムステップとして
保存されることにより、後述する前進修正動作によっ
て、この打ち消された部分の動作を容易に復活させるこ
とができる。したがって、移動させすぎた動作を取り消
したり、取り消しすぎた動作を復活させたりすることが
容易にでき、所望の動作をさせるようにプログラムステ
ップを修正することが容易にできる。
Here, assuming that the automatic operation stop button B12 is pressed when the end mill 13 reaches the position of X = 14, the program step generation unit 23 executes the "move to X = 20" of the original program step. In addition to the correction to “Move to X = 14”, the program step “Move to X = 20” indicating the remaining movement and the supplementary information “X = 1 before movement”
4 "is generated and stored, and the execution pending flag is set. Also, the index of each program step is “0100-10” to indicate that the program step of the original index 0100 is divided.
And “0100-20”. Where
The execution pending flag is set as shown in FIG.
Thereby indicating the remaining movements of the program steps
"Move to X = 20" (that is, the part where the operation was canceled)
The program step equivalent to
Program steps are now indicated
ing. Such execution pending program steps
By being saved, the forward correction operation described later
It is easy to recover the operation of this canceled part
Can be. Therefore, cancel the action that was moved too much
Or reinstate actions that have been undone too much.
It can be easily programmed and programmed to perform the desired operation.
Can be easily modified.

【0075】(3)図6(c)に示すように、前進修正
動作モードボタンB51を押して前進修正動作モードに
し、自動運転開始ボタンB11を押すと、動作制御部2
2は、実行保留フラグのセットされたプログラムステッ
プ「X=20へ移動」を参照し、エンドミル13をX=
20に向けて移動させる。
(3) As shown in FIG. 6C, when the forward correction operation mode button B51 is pressed to enter the forward correction operation mode, and when the automatic operation start button B11 is pressed, the operation control unit 2
2 refers to the program step “move to X = 20” in which the execution suspension flag is set, and sets the end mill 13 to X =
Move toward 20.

【0076】ここで、エンドミル13がX=17の位置
に達したときに自動運転休止ボタンB12が押されたと
すると、プログラムステップ生成部23は、この移動を
示すプログラムステップ「X=17へ移動」と補足情報
「移動前X=14」を生成して記憶させるとともに、元
の補足情報「移動前X=14」を「移動前X=17」に
修正する。また、各プログラムステップのインデックス
は、元のインデックス0100−20のプログラムステ
ップが分割されたものであることを示すために「010
0−20−10」、および「0100−20−20」と
する。
Here, assuming that the automatic operation stop button B12 is pressed when the end mill 13 reaches the position of X = 17, the program step generator 23 moves to the program step "Move to X = 17" indicating this movement. And the supplementary information “before movement X = 14” is generated and stored, and the original supplementary information “before movement X = 14” is corrected to “before movement X = 17”. The index of each program step is “010” in order to indicate that the program step of the original index 0100-20 has been divided.
0-20-10 "and" 0100-20-20 ".

【0077】なお、このような場合には、2つの有効な
プログラムステップ「X=14へ移動」と「X=17へ
移動」とが記憶されていることになるが、これらを結合
し、1つの有効なプログラムステップとして記憶させる
ようにしてもよい。
In such a case, two effective program steps “move to X = 14” and “move to X = 17” are stored. It may be stored as one effective program step.

【0078】(4)図6(d)に示すように、再度、後
退修正動作モードボタンB41を押して後退修正動作モ
ードにし、また、シングルブロック切り換えスイッチS
11を「OFF(連続)」にして、自動運転開始ボタン
B11を押すと、後退動作・後退修正動作・前進修正動
作制御部25は、インデックス0100−20−10の
プログラムステップ「X=17へ移動」を「X=14へ
移動」に変換し、動作制御部22は、エンドミル13を
X=14に向けて移動させる。
(4) As shown in FIG. 6 (d), the reverse correction operation mode button B41 is again pressed to enter the reverse correction operation mode.
11 is set to "OFF (continuous)" and the automatic operation start button B11 is pressed, the reverse operation / reverse correction operation / forward correction operation control unit 25 moves to the program step "X = 17" of the index 0100-20-10. Is converted to “move to X = 14”, and the operation control unit 22 moves the end mill 13 toward X = 14.

【0079】エンドミル13がX=14の位置に達する
と、すなわち、参照したプログラムステップの後退動作
が完了すると、プログラムステップ生成部23は、この
プログラムステップをそのまま実行保留プログラムステ
ップとするために、実行保留フラグをセットする。
[0079] When the end mill 13 reaches a position of X = 14, i.e., when the backward movement of the referenced program steps are completed, the program step generating unit 23, it executes pending program stearyl <br/>-up the program steps , The execution pending flag is set.

【0080】なお、このような場合には、2つの実行保
留プログラムステップ「X=17へ移動」と「X=20
へ移動」とが記憶されていることになるが、前記の場合
と同様にこれらを結合して1つの実行保留プログラムス
テップとして記憶させるようにしてもよい。
In such a case, two execution pending program steps “move to X = 17” and “X = 20”
Is stored, but these may be combined and stored as one execution pending program step as in the above case.

【0081】(5)シングルブロック切り換えスイッチ
S11が上記のように「OFF」に設定されているの
で、エンドミル13がX=14の位置に達した後も運転
動作は続行し、後退動作・後退修正動作・前進修正動作
制御部25が、インデックス0100−10のプログラ
ムステップ「X=14へ移動」を「X=5へ移動」に変
換し、動作制御部22は、図6(e)に示すように、エ
ンドミル13をX=5に向けて移動させる。
(5) Since the single-block changeover switch S11 is set to "OFF" as described above, the driving operation continues even after the end mill 13 reaches the position of X = 14, and the reversing operation / retreat correction is performed. The operation / forward correction operation control unit 25 converts the program step “move to X = 14” of the index 0100-10 into “move to X = 5”, and the operation control unit 22 performs the operation as shown in FIG. Then, the end mill 13 is moved toward X = 5.

【0082】ここで、エンドミル13がX=10の位置
に達したときに自動運転休止ボタンB12が押されたと
すると、プログラムステップ生成部23は、参照したプ
ログラムステップの「X=14へ移動」を「X=10へ
移動」に修正するとともに、残りの移動を示すプログラ
ムステップ「X=14へ移動」と補足情報「移動前X=
10」を生成して記憶させ、実行保留フラグをセットす
る。また、各プログラムステップのインデックスは、元
のインデックス0100−10のプログラムステップが
分割されたものであることを示すために「0100−1
0−10」、および「0100−10−20」とする。
Here, assuming that the automatic operation stop button B12 is pressed when the end mill 13 reaches the position of X = 10, the program step generating section 23 executes the "move to X = 14" of the referenced program step. In addition to the correction to “move to X = 10”, the program step “Move to X = 14” indicating the remaining movement and the supplementary information “X = before movement =
10 "is generated and stored, and the execution pending flag is set. The index of each program step is “0100-1” to indicate that the program step of the original index 0100-10 has been divided.
0-10 "and" 0100-10-20 ".

【0083】なお、この場合にも前記の場合と同様に、
「X=14へ移動」以降の実行保留プログラムステップ
を結合して1つの実行保留プログラムステップとして記
憶させるようにしてもよい。
In this case, similarly to the above case,
The execution suspension program steps after “move to X = 14” may be combined and stored as one execution suspension program step.

【0084】(詳細な動作例) (種々の操作が行われた場合の動作) 次に、種々の操作が行われ、上記前進・後退修正動作等
を含む図7に示すような動作をさせる場合の記憶内容、
および実際の動作について詳細に説明する。ここで、同
図はエンドミル13の軌跡を示し、説明の便宜上、種々
の動作を組み合わせた単なる例を示すもので、このよう
にエンドミル13を移動させた切削によって得られる形
状自体を特定の形状として限定するものではない。な
お、同図において、(数字)は、以下の「(本体部11
の動作と生成されるプログラムステップ)」の項目にお
ける各動作の説明に対応させて、その時点でのエンドミ
ル13の位置を示す。また、括弧のつかない数字はエン
ドミル13の座標を示し、[数字]は、各座標間の距離
を示す。この例では、後退動作および後退修正動作(以
下、両方を含む場合は、単に「後退」という。)に必要
な補足情報として、単に起点の座標などを示す情報の形
ではなく、後退を実行し得る命令の形で記憶される例を
示す。また、この例では、プログラムステップを構成す
る命令として、従来のNC工作機械等で多く用いられる
ものと類似した命令が用いられる例を説明する。
(Detailed Operation Example) (Operations when Various Operations are Performed) Next, when various operations are performed and the operations shown in FIG. 7 including the above-mentioned forward / backward correction operations are performed. Memory contents of
The actual operation will be described in detail. Where
The figure shows the trajectory of the end mill 13, and for convenience of explanation, various
This is just an example that combines the actions of
Shape obtained by cutting the end mill 13
The shape itself is not limited to a specific shape. What
In the figure, (numerals) indicate the following “(body 11
Operation and generated program steps)
Corresponding to the explanation of each operation
2 shows the position of the console 13. Numbers without parentheses are en
The coordinates of the Domil 13 are shown, and [number] is the distance between the coordinates.
Is shown. In this example, as the supplementary information necessary for the retreat operation and the retreat correction operation (hereinafter, when both are included, simply “retreat”), the retreat is performed, not simply in the form of information indicating the coordinates of the starting point. An example is shown that is stored in the form of a get instruction. In this example, an example will be described in which an instruction similar to an instruction often used in a conventional NC machine tool or the like is used as an instruction constituting a program step.

【0085】また、移動を示す命令は、前進(再生)、
および後退について、それぞれ、増分値、すなわち相対
値による動作を示す命令と、絶対値による動作を示す命
令とを両方記憶させ、あらかじめ選択操作をすることに
より、何れの命令によっても前進または後退をさせるこ
とができるようになっている。ここで、上記増分値によ
る動作を示す命令とは、動作前の状態からの変化によっ
て動作を示す命令、例えば移動の始点や終点の位置に係
らず、所定の方向に所定の距離だけ移動することを示す
命令である。また、上記絶対値による動作を示す命令と
は、動作後の状態によって動作を示す命令、例えば移動
の始点の位置や移動距離に係らず、終点の位置まで移動
することを示す命令である。以下、 ・プログラムステップを構成する命令の構成、および ・本体部11の動作と生成されるプログラムステップに
ついて説明する。 (プログラムステップを構成する命令の構成)
Further, commands indicating movement include forward (reproduction),
For the backward and backward movements, both an instruction indicating an operation based on an increment value, that is, a relative value and an instruction indicating an operation based on an absolute value are both stored, and a forward operation or a backward movement is performed by any of the instructions by performing a selection operation in advance. You can do it. Here, the command indicating the operation by the increment value is a command indicating the operation by a change from the state before the operation, for example, moving by a predetermined distance in a predetermined direction regardless of the position of the start point or the end point of the movement. Is an instruction that indicates The instruction indicating the operation based on the absolute value is an instruction indicating the operation according to the state after the operation, for example, an instruction indicating movement to the end point regardless of the position or the movement distance of the start point of the movement. Hereinafter, a description will be given of the configuration of the instructions constituting the program steps, the operation of the main unit 11, and the generated program steps. (Structure of instructions that make up a program step)

【0086】記憶される命令は、1つまたは関連した複
数の命令で1つの命令ブロックを構成し、さらに、1つ
または複数の命令ブロックで1つの命令ブロック群とし
てプログラムステップを構成し、「N 」+数字+「; 」
で表されるインデックスと対にして記憶されるようにな
っている。
The stored instructions form one instruction block with one or a plurality of related instructions, and further form one or more instruction blocks as a group of instruction blocks to form a program step. ”+ Number +“; ”
Is stored in pairs with the index represented by.

【0087】上記インデックスは、その末尾の数字によ
って、以下のように命令の種類が容易に区別できるよう
になっている。 0:移動速度や主軸の回転速度の設定、切り換えなどの
命令であることを示す。 1:移動に関する命令であることを示し、絶対値による
後退が指示された場合に実行される命令が含まれる。 2:移動に関する命令であることを示し、増分値による
前進または後退が指示された場合に実行される命令が含
まれる。 3:あらかじめ記憶されているプログラムを実行した場
合に、その参照した命令であることを示す。すなわち、
前進や後退をさせるために記憶される命令とは別に、参
照した命令自体が参考として記憶されるようになってい
る。 4:移動に関する命令であることを示し、絶対値による
前進が指示された場合に実行される命令が含まれる。 8:時間待ちの命令であることを示す。 9:記憶の開始時や終了時等の本体部11の状態を示す
情報であることを示す。
The index is such that the type of instruction can be easily distinguished by the number at the end thereof as follows. 0: Indicates a command for setting or switching of the moving speed or the rotation speed of the spindle. 1: Indicates a command relating to movement, and includes a command to be executed when retreat by an absolute value is instructed. 2: Indicates a command related to movement, and includes a command to be executed when forward or backward is instructed by an increment value. 3: When a program stored in advance is executed, the instruction is referred to. That is,
Apart from the instructions stored for moving forward and backward, the referenced instruction itself is stored for reference. 4: Indicates a command relating to movement, and includes a command to be executed when advance by an absolute value is instructed. 8: Indicates an instruction waiting for time. 9: Indicates information indicating the state of the main body unit 11 at the time of starting or ending storage.

【0088】なお、上記1、2、4について、動作の指
示が絶対値または増分値、若しくは前進または後退のい
ずれの場合に実行される命令であるかの区別に関して
は、以下に説明する「( )」等によっても判別され、ま
た、移動命令や時間待ち命令などの区別に関しては、対
応表を用いた解析などによっても判別できるので、例え
ば1つの命令ブロック群として記憶させるようにするな
どしてもよい。また、インデックスの末尾が2である命
令ブロック群を増分値による前進に関するものと増分値
による後退に関するものとに分けてもよい。
Regarding the above 1, 2 and 4, regarding the distinction as to whether the operation instruction is an absolute value or an increment value or an instruction to be executed in the case of forward or backward movement, the following description will be given of “( ) "And the like, and the distinction between the movement command and the time waiting command can also be determined by analysis using a correspondence table, for example, by storing them as one command block group. Is also good. Further, the instruction block group whose index is 2 at the end may be divided into a group related to the advance by the incremental value and a group related to the backward by the incremental value.

【0089】次に、参照されるプログラムおよび記憶さ
れるプログラムに含まれる主な命令とその記憶形式につ
いて説明する。「( ) 」は、コメントとして、増分値
による前進での実行時には無視することを示すものであ
る。「( ) 」中の「< > 」は、増分値による後退が
指示された場合に実行することを示すものである。「(
) 」中の「[ ] 」は、絶対値による後退が指示され
た場合に実行することを示すものである。また、そのう
ちの移動を示す命令は、絶対値による前進が指示された
場合にも実行されることを示す。「( ) 」中の「<[
]>」は、増分値による後退、または絶対値による後退
のいずれが指示された場合でも実行することを示すもの
である。
Next, the main instructions contained in the referenced program and the stored program and the storage format thereof will be described. “()” Indicates, as a comment, that it is to be ignored during execution in advance by the increment value. “<>” In “()” indicates that the process is executed when the retreat by the increment value is instructed. "(
")" In ")" indicates that the command is to be executed when a retreat by an absolute value is instructed. In addition, it indicates that the command indicating the movement is also executed when the forward movement by the absolute value is instructed. "<[" In "()"
]>"Indicates that the execution is performed regardless of the instruction of the retreat by the increment value or the retreat by the absolute value.

【0090】なお、「( ) 」で括られていない命令
は、移動に関する命令については、増分値による前進が
指示された場合に実行することを示す一方、その他の命
令については、増分値または絶対値のいずれであっても
前進が指示された場合には実行することを示す。「O 」
は、各行、またはコメント内の命令ブロックの最初に記
述されている場合には、前進、後退に係らず実行されな
いことを示すものである。「O#」は、各行の最初に記述
されている場合には、実行保留情報であることを示すも
のである。「; 」は、各命令ブロックの区切りを示すも
のである。「! 」は、「( ) 」中で、各命令ブロック
の区切りを示すものである。「G90」は、所定の座標系
における絶対値により動作を指示する命令である。「G9
1 」は、増分値により動作を指示する命令である。「G5
3 」は、G53 の絶対座標系を使用することを指示する命
令である。「G54 」は、ワーク座標系の定義、およびこ
れの使用を指示する命令である。「F 」+数字、例えば
「F60 」は、切削時の移動速度を60mm/minに設定するこ
とを指示する命令である。「G0」は、エンドミル13を
移動させるときは、直線補間で早送り速度によって行う
ことを指示する命令である。ここで、上記直線補間と
は、エンドミル13が直線的に移動するように本体部1
1を制御することである。すなわち、エンドミル13が
移動する際に実際に本体部11に出力される信号は、エ
ンドミル13の最小移動単位(例えば1μm)ごとの移
動を示す信号であるが、そのような最小移動単位ごとの
移動を示すプログラムステップを作成しなくても、例え
ば終点までの移動を示すプログラムステップを作成すれ
ば、その実行時に、自動的に始点から終点までの間を上
記最小移動単位で補完する座標が計算され、各座標ごと
の移動を示す信号が本体部11に出力されるようになっ
ている。「G1」は、エンドミル13を移動させるとき
は、直線補間で切削速度によって行うことを指示する命
令である。「S100」は、主軸を回転させるときには、10
0rpmで回転させることを指示する命令である。「M3」
は、主軸の回転を起動させることを指示する命令であ
る。「M5」は、主軸の回転を停止させることを指示する
命令である。「G91G28Z0」は、Z軸の原点に移動させる
ことを指示する命令である。「H5」は、エンドミル13
の長さの補正値の設定、および補正値としてH5を使用す
ることを指示する命令である。「G4X 」は、時間待ちを
指示する命令である。なお、上記以外の命令について
は、以下で必要に応じて説明する。
Note that an instruction not enclosed in “()” indicates that a command relating to movement is to be executed when an advance by an increment value is instructed, while other commands indicate an increment value or an absolute value. Regardless of the value, it indicates that the command is to be executed when forward is instructed. "O"
Indicates that the command is not executed irrespective of whether it is moved forward or backward if it is described at the beginning of each instruction block in each line or comment. “O #”, when described at the beginning of each line, indicates execution suspension information. “;” Indicates a break of each instruction block. “!” Indicates a delimiter between instruction blocks in “()”. “G90” is a command for instructing an operation by an absolute value in a predetermined coordinate system. "G9
"1" is an instruction for instructing an operation by an increment value. "G5
"3" is an instruction to use the absolute coordinate system of G53. "G54" is an instruction for defining a work coordinate system and instructing its use. “F” + numeral, for example, “F60” is a command for instructing to set the moving speed during cutting to 60 mm / min. “G0” is a command for instructing that the end mill 13 be moved at a rapid traverse speed by linear interpolation. Here, the linear interpolation means that the main body 1 is moved so that the end mill 13 moves linearly.
1 is controlled. That is, when the end mill 13 moves, the signal actually output to the main body 11 is a signal indicating the movement of the end mill 13 for each minimum movement unit (for example, 1 μm). For example, if a program step indicating movement to the end point is created without creating a program step indicating the end point, the coordinates that complement the distance from the start point to the end point in the minimum movement unit are automatically calculated at the time of execution. A signal indicating movement for each coordinate is output to the main body 11. “G1” is a command to instruct that the end mill 13 be moved at a cutting speed by linear interpolation. “S100” is 10 when rotating the main shaft.
This is an instruction to rotate at 0 rpm. "M3"
Is a command for instructing to start rotation of the spindle. “M5” is a command for instructing to stop the rotation of the main shaft. “G91G28Z0” is a command for instructing movement to the origin of the Z axis. "H5" is the end mill 13
The instruction instructs to set the length correction value and to use H5 as the correction value. “G4X” is an instruction to wait for time. Instructions other than the above will be described below as necessary.

【0091】(本体部11の動作と生成されるプログラ
ムステップ) 以下、操作・表示部16を操作して本体部11を動作さ
せたときの記憶部21の記憶内容について具体的に説明
する。ここで、記憶部21には、あらかじめ作成された
以下のプログラムステップから成る参照用のプログラム
が記憶されているとする。 「G0G91G28Z0; 」(以下の(11)で参照される。) 「X-2.2Y-3.3; 」(以下の(12)〜(15)で参照さ
れる。) 「G90G43Z0H5; 」(以下の(16)で参照される。) 「G1Y-32.1F30;」(以下の(17)で参照される。) 「G91X-333.3Y-3.3;」(以下の(18)で参照され
る。)
(Operation of Main Unit 11 and Generated Program Steps) The contents of the storage unit 21 when the operation / display unit 16 is operated to operate the main unit 11 will be specifically described below. Here, it is assumed that the storage unit 21 stores a program for reference including the following program steps created in advance. "G0G91G28Z0;" (referred to in the following (11)) "X-2.2Y-3.3;" (referred to in the following (12) to (15)) "G90G43Z0H5;" (referred to in the following (16) ") (Referred to in the following (17))"G91X-333.3Y-3.3;"(referred to in the following (18))

【0092】(1)まず、記憶開始ボタンB21が押さ
れると、その時点の本体部11の状態を再現するために
必要な命令ブロック群(N09 〜N69 )が以下のように生
成されて記憶される。なお、このとき、エンドミル13
は、下表および図7に示すようにX=−500、Y=−
500、Z=−200の位置にあるとする。ここで、イ
ンデックスがN00,N01,N02 などのように連続番号になら
ず、上記および下表のようにN09,N19,N29 となっている
のは、前述のようにインデックスの末尾の数字によって
命令の種類が容易に区別できるようになっているためで
ある。また、記憶される命令は、前述のように増分値お
よび絶対値で前進および後退させるための命令が全て記
憶され、何れの種類の命令によっても動作させることが
できるようになっているため、以下の各表には、それぞ
れの種類の命令ごとに欄を分けて説明を記載している。
(1) First, when the storage start button B21 is pressed, an instruction block group (N09 to N69) necessary to reproduce the state of the main body 11 at that time is generated and stored as follows. You. At this time, the end mill 13
X = −500 and Y = − as shown in the following table and FIG.
Suppose that it is at the position of 500, Z = −200. Here, the index is not a sequential number like N00, N01, N02, etc., but is N09, N19, N29 as shown above and in the table below, because the number at the end of the index is This is because the types can be easily distinguished. As described above, all the instructions for moving forward and backward with the increment value and the absolute value are stored as described above, and can be operated by any type of instruction. In each of the tables, the description is described by dividing the column for each type of instruction.

【0093】[0093]

【表1】 [Table 1]

【0094】なお、上記の他、必要に応じて、X、Y、
Z軸方向の移動が停止状態であることや、種々のパラメ
ータの値、ツール径・ツール長の補正の値、プログラム
中の各変数の値、手動ハンドルH1の1パルスあたりの
移動距離、その移動の最大速度(例えばF100)、早送り
時の移動速度、種々のモードを示すモーダル情報、ワー
ク座標系の定義、また、マシニングセンタの場合には選
択しているツールなども記憶される。
In addition to the above, if necessary, X, Y,
The movement in the Z-axis direction is stopped, values of various parameters, correction values of tool diameter and tool length, values of variables in the program, movement distance of the manual handle H1 per pulse, movement thereof (For example, F100), the moving speed at the time of rapid traverse, modal information indicating various modes, the definition of the work coordinate system, and in the case of a machining center, the selected tool and the like are also stored.

【0095】(2)手動送りモードボタンB33を押し
て手動送りモードにするとともに、移動速度を早送り速
度にし、手動送り軸切り換えスイッチS4、および手動
送り起動スイッチS3を操作して、X軸のマイナス方向
にエンドミル13の移動を開始させると、これらの動作
の再現、および後退を行わせるために必要な命令ブロッ
ク群、すなわち移動速度を切り換え、または戻す命令
(N70 )、およびエンドミル13の絶対値での後退の移
動を示す命令(N71 )が以下のように記憶される。
(2) Press the manual feed mode button B33 to switch to the manual feed mode, set the moving speed to the fast feed speed, and operate the manual feed axis changeover switch S4 and the manual feed start switch S3 to move the X axis in the minus direction. When the end mill 13 starts moving, the instruction blocks necessary for reproducing and retreating these operations, that is, the instruction for switching or returning the moving speed (N70), and the absolute value of the end mill 13 are used. The instruction (N71) indicating the backward movement is stored as follows.

【0096】ここで、インデックスN71 の命令(絶対座
標系G53 でX=−500の位置まで移動)は、「[
]」で括られているので、前述のように絶対値による
前進が指示された場合にも実行されるが、本体部11の
実際の動作には影響しない。なぜならば、この命令を実
行する時点では、既に以前のインデックスN29 の命令に
よって同じ位置まで移動しているので、実際には何も動
作しないのと同じだからである。なお、そのインデック
スの末尾が「1」であることによって、絶対値による後
退が指示された場合に実行される命令であることを判別
し、絶対値による前進が指示された場合には実行しない
ようにしてもよい。
Here, the instruction at index N71 (moving to the position of X = −500 in the absolute coordinate system G53) is “[
]], It is also executed when the advance by the absolute value is instructed as described above, but does not affect the actual operation of the main body unit 11. This is because, at the time of executing this instruction, since it has already been moved to the same position by the instruction of the previous index N29, no operation is actually performed. Since the end of the index is "1", it is determined that the instruction is executed when the backward movement is instructed by the absolute value, and the instruction is not executed when the forward movement by the absolute value is instructed. It may be.

【0097】また、この命令は「[ ]」で括られてい
ることにより、絶対値での命令として実行されるが、先
立つインデックスN59 の命令「G91 」(以下の座標値の
指定は増分値による)が優先して増分値の命令と解釈し
て実行されるおそれがある場合には、その前後に「G90
」と「G91 」とを付加するようにしてもよい。さら
に、このインデックスN71 に含まれる「G53 」によっ
て、インデックスN69 の命令によるワーク座標系G54 の
指定が絶対座標系G53 に変更されるおそれがある場合に
は、この命令の後ろに「G54 」を付加するようにしても
よい。
Since this instruction is enclosed in “[]”, it is executed as an instruction with an absolute value. However, the instruction “G91” of the preceding index N59 (the following coordinate value is designated by an increment value) ) May be interpreted as an instruction with an incremental value and executed before and after that.
"And" G91 "may be added. Further, if the designation of the work coordinate system G54 by the instruction at the index N69 may be changed to the absolute coordinate system G53 due to the "G53" included in the index N71, "G54" is added after the instruction. You may make it.

【0098】一方、この絶対値での後退の移動を示す命
令は、前進での移動における起点の座標によって決定で
きるので、上記のように移動を開始させた時点で記憶さ
せることが可能であるが、その移動の停止や他の動作が
行われた時点で、増分値での前進および後退の移動、並
びに絶対値での前進の移動を示す命令を記憶させる際に
記憶させるようにしてもよい。
On the other hand, since the command indicating the backward movement with this absolute value can be determined by the coordinates of the starting point in the forward movement, it can be stored at the time when the movement is started as described above. Alternatively, when the movement is stopped or another operation is performed, a command indicating the movement of the forward movement and the backward movement with the incremental value and the movement of the forward movement with the absolute value may be stored.

【0099】[0099]

【表2】 [Table 2]

【0100】(3)エンドミル13がX軸方向に距離−
100だけ移動したとき(X=−600)に、主軸の回
転を起動させると、その時点までの移動量、およびその
時点の座標が決定されるので、以下のように、増分値で
の前進および後退の移動、並びに絶対値での前進の移動
を示す命令(N72 、N74 )が記憶された後、主軸の回転
を起動または停止させる命令(N80 )が記憶される。ま
た、エンドミル13の移動はさらに継続されるので、前
記(表2)と同様に絶対値での後退の移動を示す命令
(N81 )が記憶される。
(3) Distance between end mill 13 in X-axis direction
When the rotation of the spindle is started at the time of moving by 100 (X = -600), the movement amount up to that point and the coordinates at that point are determined. After the instructions (N72, N74) indicating the backward movement and the forward movement in the absolute value are stored, an instruction (N80) for starting or stopping the rotation of the spindle is stored. Further, since the movement of the end mill 13 is further continued, a command (N81) indicating the backward movement in absolute value is stored in the same manner as in (Table 2).

【0101】ここで、インデックスN74 の命令と、イン
デックスN81 の命令とは同じ命令であるが、それぞれ絶
対値での前進、または後退の場合に有効に動作する一
方、反対の場合には、前記インデックスN71 の命令につ
いて説明したのと同様の理由で、実際の動作には影響し
ない。このように、他の動作を示す命令(例えばN80 )
の前後等に同じ命令を記憶させることにより、絶対値に
よる前進または後退のいずれが指示された場合でもそれ
ぞれの動作をさせ得るプログラムを容易に生成すること
ができる。
Here, the instruction at the index N74 and the instruction at the index N81 are the same instruction, but operate effectively in the case of forward or backward movement in absolute value, respectively. It does not affect actual operation for the same reasons as described for the N71 instructions. Thus, an instruction indicating another operation (for example, N80)
By storing the same command before and after, for example, it is possible to easily generate a program that can perform each operation even when the forward or backward movement is instructed by an absolute value.

【0102】[0102]

【表3】 [Table 3]

【0103】(4)エンドミル13がX軸方向に距離−
200だけ移動したとき(X=−800)に、手動送り
によるエンドミル13の移動を停止させると、前記(表
3)と同様に、増分値での前進および後退の移動、並び
に絶対値での前進の移動を示す命令(N82 、N84 )が記
憶される。
(4) Distance between end mill 13 in X-axis direction
When the movement of the end mill 13 by manual feed is stopped when the end mill 13 is moved by 200 (X = −800), similarly to the above (Table 3), the movement of the forward and backward movements at the incremental value and the forward movement at the absolute value Are stored (N82, N84).

【0104】なお、この手動送りによる移動が停止した
時点で、前記移動の開始時に記憶した、移動速度を切り
換え、または戻す命令「G0」「G1」(N70 )に対して、
これを元に戻し、または切り換える命令を記憶させるよ
うにしてもよい。
When the movement by the manual feed is stopped, the commands "G0" and "G1" (N70) for switching or returning the movement speed stored at the start of the movement are
This may be restored or an instruction for switching may be stored.

【0105】[0105]

【表4】 [Table 4]

【0106】(5)ハンドル運転モードボタンB32を
押してハンドル運転モードにし、前記エンドミル13の
移動停止後1.23秒たってから、手動ハンドルH1
で、Z軸のマイナス方向に1パルス分(距離−0.1)
だけ移動させる(Z=−200.1)と、時間待ちを示
す命令(N88 )、ハンドル運転モードではエンドミル1
3が切削速度F100で移動するように設定されているので
そのように移動速度を一時的に変更し、または戻す命令
(N90 )、およびZ軸方向に移動させる命令(N91〜N94
)が記憶される。
(5) The steering wheel operation mode button B32 is pressed to set the steering wheel operation mode. After 1.23 seconds from the stop of the movement of the end mill 13, the manual steering wheel H1
For one pulse in the negative direction of the Z axis (distance -0.1)
(Z = -200.1), a command to indicate time waiting (N88), the end mill 1 in the steering wheel operation mode
3 is set to move at the cutting speed F100, so that the moving speed is temporarily changed or returned (N90), and the command to move in the Z-axis direction (N91 to N94).
) Is stored.

【0107】なお、この場合、Z軸方向の移動は開始お
よび停止が行われるので、開始時に、絶対値での後退の
移動(動作前の位置に戻る)を示す命令(N91 )が記憶
され、停止時に、増分値での前進および後退の移動(動
作前後の距離だけ移動し、または戻る)、並びに絶対値
での前進の移動(動作後の位置に移動する)を示す命令
(N92 、N94 )が記憶される。
In this case, since the movement in the Z-axis direction is started and stopped, an instruction (N91) indicating a backward movement (returning to the position before the operation) in an absolute value is stored at the start. Instructions (N92, N94) indicating, when stopped, forward and backward movements by incremental values (moving or returning by the distance before and after the operation) and forward movements by absolute values (moving to the position after the operation). Is stored.

【0108】[0108]

【表5】 [Table 5]

【0109】(6)さらに、1.2秒たってから、手動
ハンドルH1で、Y軸のマイナス方向に1パルス分(距
離−0.1)だけ移動させる(Y=−500.1)と、
同様に、時間待ちを示す命令(N98)、およびY軸方向
に移動させる命令(N101〜N104)が記憶される。
(6) Further, after 1.2 seconds, the handwheel H1 is moved by one pulse (distance -0.1) in the minus direction of the Y axis (Y = -500.1).
Similarly, a command indicating time waiting (N98) and a command to move in the Y-axis direction (N101 to N104) are stored.

【0110】[0110]

【表6】 [Table 6]

【0111】(7)手動送りモードボタンB33を押し
て、手動送りモードにすると、上記一時的に変更した移
動速度を元に戻し、または変更する命令(N110)が記憶
される。
(7) When the manual feed mode button B33 is pressed to enter the manual feed mode, a command (N110) for returning or changing the temporarily changed moving speed is stored.

【0112】[0112]

【表7】 [Table 7]

【0113】(8)切削速度をF60 、移動速度を切削速
度にし、上記手動送りモードにした後2秒たってから、
手動送り起動スイッチS3を操作して、X軸のマイナス
方向にエンドミル13の移動を開始させると、時間待ち
(N118)、切削速度の変更または戻し(N120)、移動速
度の切り換えまたは戻し(N130)、および絶対値での後
退の移動を示す命令(N131)が記憶される。
(8) The cutting speed is set to F60, the moving speed is set to the cutting speed, and two seconds after the manual feed mode is set,
When the manual feed start switch S3 is operated to start the movement of the end mill 13 in the minus direction of the X axis, waiting time (N118), changing or returning the cutting speed (N120), switching or returning the moving speed (N130) , And an instruction (N131) indicating the backward movement in absolute value are stored.

【0114】[0114]

【表8】 [Table 8]

【0115】(9)エンドミル13がX軸方向に距離−
60だけ移動したとき(X=−860)に、切削速度を
F80 に変更すると、増分値での前進および後退の移動、
並びに絶対値での前進の移動(N132、N134)、切削速度
の変更または戻しを示す命令(N140)が記憶される。ま
た、エンドミル13の移動はさらに継続されるので、絶
対値での後退の移動を示す命令(N141)が記憶される。
(9) Distance between end mill 13 in X-axis direction
When moving by 60 (X = -860), the cutting speed
Change to F80 to move forward and backward in incremental values,
In addition, an instruction (N140) indicating movement forward in absolute values (N132, N134), change or return of the cutting speed is stored. Further, since the movement of the end mill 13 is further continued, an instruction (N141) indicating the backward movement in the absolute value is stored.

【0116】[0116]

【表9】 [Table 9]

【0117】(10)エンドミル13がX軸方向に距離
−80だけ移動したとき(X=−940)に、手動送り
起動スイッチS3を戻してエンドミル13の移動を停止
させると、増分値での前進および後退の移動、並びに絶
対値での前進の移動を示す命令(N142、N144)が記憶さ
れる。
(10) When the end mill 13 is moved by the distance -80 in the X-axis direction (X = -940), the manual feed start switch S3 is returned to stop the movement of the end mill 13. And instructions (N142, N144) indicating the backward movement and the forward movement in absolute value are stored.

【0118】[0118]

【表10】 [Table 10]

【0119】(11)シングルブロック切り換えスイッ
チS11を「ON」にして、自動運転モードボタンB3
1を押し、上記エンドミル13の移動を停止させた後
5.3秒たってから、自動運転開始ボタンB11を押し
て、あらかじめ記憶部21に記憶されたプログラムステ
ップ「G0G91G28Z0; 」を実行させる。
(11) Set the single-block changeover switch S11 to "ON" and set the automatic operation mode button B3
After pressing 1 to stop the movement of the end mill 13, 5.3 seconds later, the automatic operation start button B11 is pressed to execute the program step "G0G91G28Z0;" stored in the storage unit 21 in advance.

【0120】このプログラムステップは、早送り速度で
Z軸の原点に移動させることを示すが、単にZ=0の位
置まで移動させるのと異なり、動作制御部22に原点に
復帰したことを認識させるための特別な命令であり、例
えばマシニングセンタなどの場合には、この命令によっ
て原点に復帰させなければエンドミル13の自動交換が
できないようになっている。
This program step indicates movement to the origin of the Z axis at a rapid traverse speed. However, unlike simply moving to the position of Z = 0, the program step causes the operation control unit 22 to recognize that it has returned to the origin. For example, in the case of a machining center or the like, the end mill 13 cannot be automatically replaced unless it is returned to the origin by this command.

【0121】そこで、前進用の命令としては、念のため
に、一旦Z=0の位置まで移動させてから(N152、N15
4)、原点復帰「G91G28Z0; 」を実行させる命令(N16
0)を生成するようになっている。
Therefore, as a forward command, as a precautionary measure, once moved to the position of Z = 0 (N152, N15
4) Instruction to execute home return “G91G28Z0;” (N16
0).

【0122】一方、後退用の命令としては、後にZ軸を
原点から外す動作をさせたときに原点復帰させることに
なるので、ここでは、単に、通常の移動の場合と同様に
Z=0の位置からZ=−200.1の位置まで(Z軸方
向に距離−200.1だけ)移動させる命令(N151、N1
52)を生成するようになっている。
On the other hand, the command for retreating is to return to the origin when the Z-axis is later moved from the origin, so here, simply as in the case of normal movement, Z = 0. Command (N151, N1) to move from the position to the position of Z = −200.1 (distance in the Z-axis direction is −200.1)
52) is generated.

【0123】ここで、後退時にはZ軸方向の移動によっ
て結果的に原点から外れることになるが、上記前進時の
原点復帰命令に対応させて強制的に原点から外す動作を
させるようにしてもよい。例えば、上記インデックスN1
60で「G91G28Z0; 」に続いて記憶される「<[ ]>」で括
られた命令は、命令ブロックの最初に「O 」が記述され
ているので後退時にも実行はされないが、これを実行さ
せるようにすれば、一旦Z軸方向に−0.001だけ移
動するので原点から外すことができる。
Here, at the time of retreating, movement in the Z-axis direction results in departure from the origin. However, an operation of forcibly deviating from the origin may be performed in accordance with the origin return command at the time of forward movement. . For example, the index N1
The instruction enclosed in "<[]>" stored after "G91G28Z0;" in 60 is not executed even when retreating because "O" is described at the beginning of the instruction block, but it is executed If it is made to move, once it moves by -0.001 in the Z-axis direction, it can be removed from the origin.

【0124】また、インデックスN153は、参照して実行
したプログラムステップ「G0G91G28Z0; 」を後に確認し
やすいように記憶されるもので、前進時、後退時ともに
本体部11の動作には関係しない。
The index N153 is stored so that the program step “G0G91G28Z0;” executed with reference to the index can be easily confirmed later, and has no relation to the operation of the main body unit 11 when moving forward and when moving backward.

【0125】なお、移動速度を切削速度から早送り速度
に変更し、または元に戻す命令「G0」、「G1」は、他の
命令とは分離して生成されるようになっているが、これ
は、他の命令(具体的にはN152など)と合成するように
してもよい。ただし、いずれの場合でも、前進させる場
合の早送り速度に切り換える命令「G0」は、インデック
スN152、N154の移動命令が実行される前に実行される一
方、後退させる場合の切削速度に戻す命令「G1」は、イ
ンデックスN151、N152の移動命令が実行された後に実行
されるようにする必要がある。そこで、ここでは、分離
した「G0;(<[G1!]>); 」をいずれの移動命令よりも若い
インデックスとして記憶させている。
The commands "G0" and "G1" for changing the moving speed from the cutting speed to the rapid feed speed or returning to the original speed are generated separately from other commands. May be combined with another instruction (specifically, N152 or the like). However, in any case, the command "G0" for switching to the rapid traverse speed when moving forward is executed before the movement command of the indexes N152 and N154 is executed, while the command "G1" for returning to the cutting speed when moving backward. Needs to be executed after the movement command of the indexes N151 and N152 is executed. Therefore, here, the separated “G0; (<[G1!]>);” Is stored as an index younger than any of the movement instructions.

【0126】また、上記のような命令の生成は、参照す
る命令(ここでは原点復帰命令)、または本体部11の
動作を示す情報(ここではZ=0への移動及び原点復帰
の認識)と、生成すべき上記命令とを対応させたテーブ
ルを用いることなどにより実現できる。また、生成され
る命令は、上記のような命令に限らず、実質的に同じ動
作をする命令を生成するようにすればよく、例えば前進
用の命令については、参照した 命令そのものや、増分
値と絶対値との変換演算だけしたものを記憶させるよう
にしてもよい。
The generation of the command as described above is performed by referring to the command (here, the command to return to the origin) or the information indicating the operation of the main body 11 (here, the movement to Z = 0 and the recognition of the command to return to the origin). This can be realized by using a table in which the above-mentioned instructions to be generated are associated with each other. Further, the generated instruction is not limited to the above-described instruction, and may be an instruction that performs substantially the same operation. For example, for the forward instruction, the referenced instruction itself or the increment value may be used. Alternatively, a value obtained by performing only a conversion operation between a value and an absolute value may be stored.

【0127】[0127]

【表11】 [Table 11]

【0128】(12)シングルブロック切り換えスイッ
チS11を「OFF」にし、上記Z軸の原点復帰命令の
実行後5秒たってから、自動運転開始ボタンB11を押
して、あらかじめ記憶部21に記憶された直線補間のプ
ログラムステップ「X-2.2Y-3.3; 」を実行させると、時
間待ち(N168)、および絶対値での後退の移動を示す命
令(N171)が記憶される。
(12) The single block changeover switch S11 is set to "OFF", and after 5 seconds from the execution of the Z-axis origin return command, the automatic operation start button B11 is pressed, and the linear interpolation stored in the storage unit 21 in advance is performed. When the program step “X-2.2Y-3.3;” is executed, an instruction (N 171) indicating waiting for time (N 168) and moving backward in absolute value is stored.

【0129】なお、上記プログラムステップは、先立っ
て実行した命令、すなわち上記(11)の「G0G91G28Z
0; 」が増分値命令なので、引き続き増分値命令として
実行される。
Note that the above program steps correspond to the previously executed instruction, that is, “G0G91G28Z” in the above (11).
"0;" is an incremental value instruction, and is subsequently executed as an incremental value instruction.

【0130】[0130]

【表12】 [Table 12]

【0131】(13)エンドミル13がX軸方向に距離
−1.1、Y軸方向に距離−1.65だけ移動したとき
(X=−941.1、Y=−501.75)に、自動運
転中に手動ハンドルH1の操作を受け付ける、いわゆる
ハンドル割り込みを有効にし、手動ハンドルH1でY軸
のマイナス方向に1パルス分(距離−0.1)だけ移動
させる(Y=−501.85)と、ハンドル運転される
までの移動に応じた、増分値での前進および後退の移
動、並びに絶対値での前進の移動を示す命令(N172、N1
74)を記憶させる。また、併せて、前記インデックスN1
53と同様に、参照したプログラムステップ「X-2.2Y-3.
3; 」(N173)を記憶させる。ここで、このプログラム
ステップの先頭の「O 」は、元のプログラムステップの
実行が完了しなかったことを示すために記述している
が、必ずしも必要ではない。
(13) When the end mill 13 moves by a distance of -1.1 in the X-axis direction and a distance of -1.65 in the Y-axis direction (X = -941.1, Y = -501.75), When the operation of the manual handle H1 during operation is enabled, so-called handle interrupt is enabled, and the handwheel H1 is moved in the minus direction of the Y-axis by one pulse (distance -0.1) (Y = -501.85). Commands indicating forward and backward movements in increments and forward movements in absolute values (N172, N1)
74) is stored. In addition, the index N1
As in 53, the referenced program step `` X-2.2Y-3.
3; "(N173) is stored. Here, "O" at the beginning of the program step is described to indicate that the execution of the original program step has not been completed, but is not always necessary.

【0132】次に、前記(5)と同様に、ハンドル運転
ではエンドミル13が切削速度F100で移動するので移動
速度を一時的に変更し、または戻す命令(N180)が生成
されるとともに、上記1パルス分の移動に応じた、絶対
値での後退の移動(動作前の位置に戻る)を示す命令
(N181)、増分値での前進および後退の移動(動作前後
の距離だけ移動し、または戻る)、並びに絶対値での前
進の移動(動作後の位置に移動する)を示す命令(N18
2、N184)が生成されて記憶される。
Next, similarly to the above (5), in the steering operation, since the end mill 13 moves at the cutting speed F100, a command (N180) for temporarily changing or returning the moving speed is generated, and Command (N181) indicating an absolute value of backward movement (return to the position before operation) according to the movement of the pulse (N181), forward and backward movement (move or return by the distance before and after the operation) with the increment value ), And an instruction indicating forward movement in absolute value (moving to a position after the operation) (N18
2, N184) is generated and stored.

【0133】さらに、ハンドル割り込みによる移動が終
了すると、前記プログラムステップ「X-2.2Y-3.3;」の
残りの移動が続行されるので、その再開時点で、上記一
時的に変更した移動速度を元に戻し、または変更する命
令(N190)、および絶対値での後退の移動を示す命令
(N191)が記憶される。
Further, when the movement by the handle interrupt is completed, the remaining movement of the program step "X-2.2Y-3.3;" is continued. (N190), and an instruction (N191) indicating a backward movement in absolute value are stored.

【0134】なお、上記のような直線補間の移動は、通
常、分割が可能なのでハンドル割り込みを受け付けるよ
うにしているが、分割が困難な補間移動をしている場合
など、すなわち、補間移動の動作等の割り込み時点より
前の動作、および後の動作を示す命令がないために、同
じ動作の再現が困難な場合(そのような命令がない装置
で再現動作をさせ得るプログラムを生成している場合)
などには、補間移動等の途中ではハンドル割り込みを受
け付けず、プログラムステップの記憶もしないようにし
てもよい。また、このような分割が困難な補間移動をし
ている場合などには、ハンドル割り込みに限らず、前記
(3)のような主軸の回転起動や停止なども、補間移動
等の分割を必要とするので、やはり受け付けないように
してもよい。同様に、他の移動や、前進または後退修正
動作など、補間移動を続行する以外の動作も受け付けな
いようにしてもよく、この場合、自動運転休止ボタンB
12による動作の停止は受け付けても、その時点ではプ
ログラムステップの生成はせず、補間移動などの動作の
続行のみを受け付けて、その動作の完了後に、その補間
移動などの動作を示すプログラムステップを生成するよ
うにすればよい。
In the linear interpolation movement as described above, a handle interrupt is normally accepted because the division is possible. However, when the interpolation movement is difficult to divide, for example, the operation of the interpolation movement is performed. If there is no instruction indicating the operation before and after the interruption, such as when there is no instruction indicating the same operation, it is difficult to reproduce the same operation. )
For example, a handle interrupt may not be accepted during the interpolation movement or the like, and the program step may not be stored. In the case of such an interpolation movement that is difficult to divide, for example, not only the handle interruption but also the start and stop of the rotation of the spindle as described in (3) above require the division such as the interpolation movement. So, it may not be accepted. Similarly, other movements or operations other than continuing interpolation movements, such as forward or backward correction operations, may not be accepted. In this case, the automatic operation stop button B
12, the program step is not generated at that time, only the continuation of the operation such as the interpolation movement is received, and after the completion of the operation, the program step indicating the operation such as the interpolation movement is performed. What is necessary is just to generate.

【0135】さらに、上記のように新たなプログラムス
テップの生成をしている場合に限らず、前進または後退
修正動作をしている場合にも、上記のような補間移動等
の前進または後退をしている場合には割り込みや他の動
作を受け付けないようにしてもよい。
Furthermore, not only when a new program step is generated as described above, but also when a forward or backward correction operation is performed, the forward or backward movement such as the interpolation movement is performed. In such a case, an interrupt or another operation may not be accepted.

【0136】一方、上記のように補間の移動等を通常の
移動命令等から成るプログラムステップに分割して記憶
させ得る場合にのみ、割り込みなどを受け付けるように
する場合には、従来の多くの装置で実行可能なプログラ
ムとの互換性を保ちやすいが、これに限らず、例えばハ
ンドル割り込みなどが行われた時点のエンドミル13の
位置を示す座標や、移動距離、補間の全移動距離に対す
る移動済みの距離の比率、または移動開始後の経過時間
などの情報と、割り込み内容等を示す情報とを記憶させ
るようにしてもよい。
On the other hand, when accepting an interrupt or the like only when the interpolation movement or the like can be divided and stored in the program step including the ordinary movement instruction as described above, many conventional devices are used. It is easy to maintain compatibility with a program that can be executed by the above. However, the present invention is not limited to this. Information such as the ratio of the distance or the elapsed time after the start of the movement, and information indicating the content of the interruption may be stored.

【0137】[0137]

【表13】 [Table 13]

【0138】(14)プログラムステップ「X-2.2Y-3.
3; 」の残りの動作が続行されて、エンドミル13がさ
らにX軸方向に距離−0.55、Y軸方向に距離−0.
825だけ移動したとき(X=−941.65、Y=−
502.675)に、再度、ハンドル割り込みで、Y軸
のプラス方向に1パルス分(距離0.1)だけ移動させ
る(Y=−502.575)と、同様の命令(N192〜N2
11)が生成されて記憶される。
(14) The program step "X-2.2Y-3.
3; ", the end mill 13 further moves the distance in the X-axis direction -0.55 and the distance in the Y-axis direction -0.
825 (X = −941.65, Y = −
(502.675), the handle is again moved by one pulse (distance 0.1) in the plus direction of the Y-axis (distance 0.1) by the handle interruption (Y = −502.575).
11) is generated and stored.

【0139】[0139]

【表14】 [Table 14]

【0140】(15)さらにプログラムステップ「X-2.
2Y-3.3; 」の残りの動作が続行され、その動作が完了す
ると、その残りの動作に応じた、増分値での前進および
後退の移動、並びに絶対値での前進の移動を示す命令
(N212、N214)が生成されて記憶される。
(15) The program step "X-2.
2Y-3.3; ", the operation is completed, and when the operation is completed, a command indicating forward and backward movements in increments and forward movements in absolute values (N212) according to the remaining operations. , N214) are generated and stored.

【0141】[0141]

【表15】 [Table 15]

【0142】(16)上記(12)でシングルブロック
切り換えスイッチS11が「OFF」にされているの
で、プログラムステップ「X-2.2Y-3.3; 」の実行が完了
すると、さらに自動的に次のプログラムステップ、「G9
0G43Z0H5; 」が実行される。
(16) Since the single block changeover switch S11 is set to "OFF" in the above (12), when the execution of the program step "X-2.2Y-3.3;" is completed, the next program is automatically automatically executed. Step, "G9
0G43Z0H5; "is executed.

【0143】このプログラムステップは、「G90 」が、
以後の命令を絶対値による指示として、すなわち、前記
インデックスN69 によってワーク座標系G54 が指定され
ているので、このワーク座標系G54 での絶対値による指
示として実行するように変更することを示し、「G43Z0H
5;」が、エンドミル13の長さに、あらかじめ設定され
たH5の長補正をかけたうえで、上記ワーク座標系G54 に
おけるZ=0の位置まで移動させることを示す。ここ
で、H5=-100.0 、G54=X-300.0Y-300.0Z-300.0 に設定さ
れていたとすると、この命令実行前のZ座標は、前記
(11)で原点に復帰したため、絶対座標系G53 におい
てZ=0になっているので、ワーク座標系G54において
はZ=0−(−100)−(−300)=400になっ
ている。したがって、G54 でZ=0にする「G43Z0H5;」
による移動命令は、Z軸方向に距離−400だけ移動さ
せることを示す。
In this program step, “G90”
This indicates that the subsequent command is changed to be executed as an instruction using an absolute value, that is, since the work coordinate system G54 is specified by the index N69, the instruction is executed as an instruction using the absolute value in the work coordinate system G54. G43Z0H
“5;” indicates that the end mill 13 is moved to the position of Z = 0 in the work coordinate system G54 after a preset length correction of H5 is applied. Here, assuming that H5 = −100.0 and G54 = X−300.0Y−300.0Z−300.0, the Z coordinate before the execution of this instruction has returned to the origin in the above (11). Since Z = 0, Z = 0 − (− 100) − (− 300) = 400 in the work coordinate system G54. Therefore, set G = 0 at G54 "G43Z0H5;"
Indicates that the object is moved by a distance of −400 in the Z-axis direction.

【0144】また、上記移動は、絶対座標系G53 におい
ては、前進時には「原点から外す」動作になる一方、後
退時には原点復帰の動作になる。そこで、前進用の命令
としては、通常の移動命令を生成する一方、後退用の命
令としては、前記(11)で説明した原点復帰命令「G9
1G28Z0; 」を生成するようになっている。
In the absolute coordinate system G53, the above-described movement is an operation of "removing from the origin" when moving forward, and is an operation of returning to the origin when moving backward. Therefore, a normal movement command is generated as the forward command, while the origin return command “G9” described in the above (11) is generated as the backward command.
1G28Z0; "is generated.

【0145】具体的には、以下に示すように、まず補正
H5およびワーク座標系G54 の設定値が確認用のコメント
として記憶された後(N219、N229)、座標の絶対値指示
への変更または増分値指示への復帰を示す命令(N23
0)、および後退用の原点復帰命令(N240)が記憶さ
れ、さらに、絶対値での後退の移動、増分値での前進お
よび後退の移動、並びに絶対値での前進の移動を示す命
令(N241〜N244)とともに、参照したプログラムステッ
プ(N243)が記憶される。
Specifically, first, as shown below,
After the set values of H5 and the work coordinate system G54 are stored as comments for confirmation (N219, N229), a command (N23) indicating a change to the coordinate absolute value instruction or a return to the increment value instruction (N23)
0) and a return-to-origin command (N240) are stored. Further, a command (N241) indicating a backward movement with an absolute value, a forward and backward movement with an incremental value, and a forward movement with an absolute value is stored. To N244), the referenced program step (N243) is stored.

【0146】ここで、後退用の原点復帰命令(N240)、
および増分値での前進または後退の移動を示す命令(N2
42)については、その実行後にも、前進時のN230または
後退時のN270における座標の絶対値指示への変更命令
「G90 」が引き続き有効になるように、移動等の命令ブ
ロックの後に「G90 」が付加されるようになっている。
さらに、後退用の原点復帰命令(N240)、および増分値
での後退の移動を示す命令(N242の後半)については、
移動等の命令ブロックの前にも「G90 」を付加すること
により、命令ブロック郡内の各命令ブロックの実行が逆
の順序で行われる装置においても、この「G90 」の有効
性が確保されるようになっている。
Here, a return-to-origin return command (N240),
And a command indicating forward or backward movement in increments (N2
With regard to 42), after the execution of the command block such as “G90”, a command to change the coordinate value to “G90” to indicate the absolute value of the coordinates in N230 when moving forward or N270 when moving backward is still valid. Is added.
In addition, for the return-to-origin command (N240) and the instruction indicating the backward movement by the increment value (the latter half of N242),
By adding "G90" also before the instruction block for movement, etc., the effectiveness of "G90" is ensured even in a device where the execution of each instruction block in the instruction block group is performed in the reverse order. It has become.

【0147】すなわち、参照したプログラムステップな
どにより座標の絶対値指示の設定がなされている場合に
は、生成されたプログラムの実行時に、実際には増分値
での移動命令が実行されても、その命令の実行後には、
上記指示に従った設定に戻るようになっている。
That is, when the absolute value designation of the coordinates is set by the referenced program step or the like, even if a movement command with an incremental value is actually executed when the generated program is executed, After executing the instruction,
The setting returns to the setting according to the above instruction.

【0148】なお、このように増分値または絶対値での
移動を示す命令だけを生成するのではなく、増分値指示
または絶対値指示がなされた後には、その指示に応じた
移動命令を生成するようにしてもよい。同様に、絶対値
の座標系として絶対座標系G53 に固定せず、指示に応じ
た座標系G54 等による命令を生成するようにしたり、H5
の長補正をかけた結果に応じた座標値ではなく、元の座
標値と長補正をかけることを示す命令とを生成するよう
にしてもよい。この場合、ワーク座標系G54 や補正H5の
設定をするプログラムステップは、上記のように記憶開
始時に保存し、インデックスN219、N229では確認用のコ
メントとして記憶するようにしてもよいし、これらの設
定が必要な動作を最初にした上記の時点で、有効なプロ
グラムステップとして記憶するようにしてもよい。
It is to be noted that not only an instruction indicating movement with an increment value or an absolute value is generated as described above, but after an increase value instruction or an absolute value instruction is issued, a movement instruction corresponding to the instruction is generated. You may do so. Similarly, instead of fixing the absolute value coordinate system to the absolute coordinate system G53, an instruction using the coordinate system G54 or the like corresponding to the instruction is generated,
Instead of the coordinate value according to the result of the length correction, an original coordinate value and an instruction to perform the length correction may be generated. In this case, the program steps for setting the work coordinate system G54 and the correction H5 may be saved at the start of storage as described above, and may be stored as comments for confirmation in the indexes N219 and N229, or these settings may be made. May be stored as an effective program step at the time when the necessary operation is first performed.

【0149】また、生成されたプログラムが、増分値ま
たは絶対値での移動を示す命令だけを含むものであって
も、座標の絶対値指示への変更命令(N230の「G90 」)
や、移動の命令ブロックの後に付加された「G90 」が記
憶されているので、プログラムの生成時になされた指示
に応じた移動命令を含むプログラムに変換することは容
易にできる。
Even if the generated program includes only a command indicating movement by an increment value or an absolute value, a change command to a coordinate absolute value instruction (“G90” in N230)
Also, since "G90" added after the movement instruction block is stored, it can be easily converted to a program including a movement instruction in accordance with an instruction given at the time of generating the program.

【0150】一方、前記補正H5およびワーク座標系G54
の設定値は、記憶開始時に保存されているため、インデ
ックスN219、N229では確認用のコメントとして記憶され
ているが、これらの設定が必要な動作を最初にした上記
の時点で、有効なプログラムステップとして記憶させる
ようにしてもよい。
On the other hand, the correction H5 and the work coordinate system G54
Are stored as confirmation comments in the indexes N219 and N229 since the settings are saved at the start of storage. May be stored.

【0151】[0151]

【表16】 [Table 16]

【0152】(17)プログラムステップ「G90G43Z0H
5; 」の実行が完了すると、前述のようにシングルブロ
ック切り換えスイッチS11がOFFにされているの
で、次にプログラムステップ「G1Y-32.1F30;」が実行さ
れる。
(17) Program step "G90G43Z0H
When the execution of "5;" is completed, the program step "G1Y-32.1F30;" is executed next because the single-block changeover switch S11 has been turned off as described above.

【0153】まず、切削速度をF80 からF30 に変更し、
移動速度を早送り速度から切削速度に変更した後、エン
ドミル13をY軸方向に移動させる。その移動先の座標
は、前述のようにワーク座標系G54 でY=−32.1な
ので、絶対座標系G53 ではY=−332.1となる。
First, the cutting speed was changed from F80 to F30,
After changing the moving speed from the rapid feed speed to the cutting speed, the end mill 13 is moved in the Y-axis direction. The coordinates of the movement destination are Y = -32.1 in the work coordinate system G54 as described above, so that Y = -332.1. In the absolute coordinate system G53.

【0154】そこで、切削速度の変更または戻し(N25
0)、移動速度の切り換えまたは戻し(N260)、絶対値
での後退の移動(N261)、増分値での前進および後退の
移動(N262)、並びに絶対値での前進の移動を示す命令
(N264)とともに、参照したプログラムステップ(N26
3)が記憶される。
Therefore, the cutting speed is changed or returned (N25).
0), an instruction (N264) for switching or returning the moving speed (N260), moving backward in absolute value (N261), moving forward and backward in incremental value (N262), and moving forward in absolute value (N264) ) Together with the referenced program step (N26
3) is stored.

【0155】[0155]

【表17】 [Table 17]

【0156】(18)また、次のプログラムステップ
「G91X-333.3Y-3.3;」の実行が開始され、エンドミル1
3がX軸方向に距離−222.2、Y軸方向に距離−
2.2だけ移動したとき(X=−1164.4、Y=−
334.3)に、自動運転休止ボタンB12を押してエ
ンドミル13の移動を強制的に停止させると、まず、座
標の増分値指示への変更または絶対値指示への戻し(N2
70)、絶対値での後退の移動(N271)、増分値での前進
および後退の移動(N272)、並びに絶対値での前進の移
動を示す命令(N274)とともに、参照したプログラムス
テップ(N273)が記憶される。
(18) The execution of the next program step “G91X-333.3Y-3.3;” is started, and the end mill 1
3 is the distance in the X-axis direction-222.2, the distance in the Y-axis direction-
When moved by 2.2 (X = -1164.4, Y =-
In 334.3), when the automatic operation stop button B12 is pressed to forcibly stop the movement of the end mill 13, first, the coordinate is changed to the incremental value instruction or returned to the absolute value instruction (N2).
70), with reference to the program step (N273), together with an instruction (N274) indicating the backward movement in absolute value (N271), the forward and backward movement in incremental values (N272), and the forward movement in absolute value (N274). Is stored.

【0157】なお、インデックスN274の命令は、前記
(3)でインデックスN74について説明したように、絶
対値による前進が指示された場合に有効な命令であり、
これに対応する、絶対値による後退が指示された場合に
有効な命令は、X軸方向に関しては、さらにX軸方向の
移動をしたときにインデックスN281として生成される
が、Y軸方向に関しては、後に、さらにY軸方向の移動
をすることなく、このインデックスN274の命令自体が後
退修正動作で実行保留命令とされるので、結局生成され
ない。すなわち、インデックスN274の命令が実行保留命
令とされることにより、エンドミル13がY=−33
4.3の位置まで移動することはないので、この位置ま
で後退で戻ってくる命令は(インデックスN274の実行保
留が解除されない限り)生成されない。
Note that the instruction at index N274 is an instruction effective when the advance by the absolute value is instructed, as described for the index N74 in (3) above.
A corresponding instruction that is valid when the retreat by the absolute value is instructed is generated as an index N281 in the X-axis direction when the object is further moved in the X-axis direction. Later, without further movement in the Y-axis direction, the instruction itself at index N274 is set as an execution pending instruction in the backward correction operation, and is not eventually generated. That is, the instruction at the index N274 is set as the execution pending instruction, so that the end mill 13 becomes Y = −33.
Since it does not move to the position of 4.3, an instruction that returns to this position by retreating is not generated (unless the execution suspension of the index N274 is released).

【0158】[0158]

【表18】 [Table 18]

【0159】(19)シングルブロック切り換えスイッ
チS11を「ON」にし、SMモード等と称される、記
憶部21に一時的に保持させたプログラムステップを実
行するモードにして、上記エンドミル13の停止後5秒
たってから、自動運転開始ボタンB11を押すことによ
り、例えばプログラムステップ「G91X-55.5F90; 」を実
行させると、上記と同様に、時間待ち、切削速度の変更
または戻し、エンドミル13の移動を示す命令等(N278
〜N284)が記憶される。
(19) After the end mill 13 is stopped, the single block changeover switch S11 is set to "ON" to execute a program step temporarily stored in the storage section 21, such as an SM mode. After 5 seconds, by pressing the automatic operation start button B11, for example, when the program step “G91X-55.5F90;” is executed, in the same manner as described above, time waiting, change or return of the cutting speed, and movement of the end mill 13 are performed. Instructions shown (N278
To N284) are stored.

【0160】なお、インデックスN284の命令は、後に、
さらに移動をすることなく、後退修正動作で実行保留命
令とされるので、これに対応する絶対値での後退の移動
についての移動命令は生成されない。
The instruction at the index N284 will be described later.
Since the instruction is set to the execution pending instruction in the backward correction operation without further movement, no corresponding move instruction for backward movement with an absolute value is generated.

【0161】移動の完了後2秒たってから記憶中断ボタ
ンB22が押されると、時間待ちの命令(N288)が記憶
された後、記憶動作が中断される。
When the suspend button B22 is pressed two seconds after the completion of the movement, the wait operation (N288) is stored, and then the storing operation is suspended.

【0162】[0162]

【表19】 [Table 19]

【0163】(20)次に、後退修正動作モードボタン
B41、および自動運転開始ボタンB11を押して後退
修正動作を開始させると、まず、最後に記憶されたイン
デックスN288の時間待ち命令を実行するとともに、命令
ブロックの先頭に「O#」を付加して実行保留情報にす
る。以下、増分値、または絶対値で後退する命令を順次
実行しつつ、前進用および後退用の命令(N284〜N278)
をそれぞれ実行保留情報にする。
(20) Next, when the reverse correction operation mode button B41 and the automatic operation start button B11 are pressed to start the reverse correction operation, firstly, the time waiting instruction of the index N288 stored last is executed, and "O #" is added to the head of the instruction block to make execution pending information. In the following, forward and backward instructions (N284 to N278) while sequentially executing instructions to reverse with an increment or absolute value
Is the execution pending information.

【0164】なお、この場合、プログラムステップの読
み込み、書き込み位置を示すリードライトポインタは、
順次さかのぼり、インデックスN278の命令を実行して保
留命令にした後には、前記インデックスN274(表18)
と、このインデックスN278との間にセットされる。すな
わち、ここまでの通常の記憶動作においては、このポイ
ンタは書き込み用としてのみ作用し、新たなプログラム
ステップを書き込みつつ順次進むのに対し、後退修正動
作の場合には、読み込み用としても作用し、順次遡りつ
つプログラムステップの読み込み、および書き込みを行
うようになっている。なお、後述する前進修正動作の場
合には、このリードライトポインタは順次進みつつ、や
はり読み込み、および書き込みを行う。
In this case, the read / write pointer indicating the read / write position of the program step is:
Going back sequentially, after executing the instruction of the index N278 to make it a pending instruction, the index N274 (Table 18)
And this index N278. That is, in the normal storage operation up to this point, this pointer acts only for writing, and sequentially proceeds while writing a new program step, whereas in the case of the backward correction operation, it also acts for reading, Reading and writing of program steps are performed while going back sequentially. In the case of a forward correction operation to be described later, the read / write pointer also performs reading and writing while advancing sequentially.

【0165】[0165]

【表20】 [Table 20]

【0166】(21)さらに、インデックスN272または
N271の後退用の命令が実行されている時に、X=−99
7.75、Y=−332.65の位置で自動運転休止ボ
タンB12を押して停止させると、元の移動命令(N271
〜N274)を、その位置まで、およびその位置の後の移動
命令に分割し、後者については「O#」を付加して、実行
保留命令にする。
(21) The index N272 or
When an instruction for retracting N271 is being executed, X = −99
When the automatic operation stop button B12 is stopped at the position of 7.75, Y = −332.65, the original movement instruction (N271) is issued.
NN274) is divided into movement instructions to and after the position, and for the latter, “O #” is added to make it an execution pending instruction.

【0167】より詳しくは、インデックスN271〜N274の
各命令(X=−942.2、Y=−332.1の位置か
らX=−1164.4、Y=−334.3の位置までの
移動についての命令)を、X=−997.75、Y=−
332.65の位置までの移動(X軸方向の移動距離−
55.55、Y軸方向の移動距離−0.55)と、X=
−1164.4、Y=−334.3の位置までの移動
(X軸方向の移動距離−166.65、Y軸方向の移動
距離−1.65)とについての移動命令に分割し、前者
のインデックスをN271+1〜N271+4にする一方、後者のイ
ンデックスをN274+1〜N274+4にする。ただし、元のイン
デックスN273については、参考用の参照したプログラム
ステップなので、同一の内容でインデックスがN271+3お
よびN274+3とされる。
More specifically, each instruction of the indexes N271 to N274 (movement from the position of X = -942.2, Y = -332. 1 to the position of X = -1164.4, Y = -334.3) X = −997.75, Y = −
Movement to position 332.65 (movement distance in X-axis direction-
55.55, the movement distance in the Y-axis direction−0.55), and X =
-1164.4, and movement to the position of Y = -334.3 (movement distance in the X-axis direction -166.65, movement distance in the Y-axis -1.65) are divided into movement instructions. The index is set to N271 + 1 to N271 + 4, while the latter index is set to N274 + 1 to N274 + 4. However, since the original index N273 is a referenced program step for reference, the indexes are N271 + 3 and N274 + 3 with the same contents.

【0168】また、インデックスN274+1〜N274+4の各命
令ブロックの先頭に「O#」を付加して実行保留情報にす
るとともに、リードライトポインタは、順次遡って、イ
ンデックスN271+4と、N274+1との間にセットされる。
[0168] Further, "O #" is added to the head of each of the instruction blocks of the indexes N274 + 1 to N274 + 4 to make the execution pending information, and the read / write pointer is sequentially traced back to the index N271 + 4, Set between N274 + 1.

【0169】すなわち、インデックスの先頭の「N27 」
によって、元のインデックス「N271〜N274」が分割され
たことが示され、続く「1 」および「4 」によって実行
が完了した部分または保留になった部分の命令であるこ
とが示されるとともに、最後の「+1〜+4」によって、元
のインデックスと同じく、絶対値による後退、増分値に
よる前進または後退、または絶対値による前進が指示さ
れた場合に実行される命令、若しくは参照した命令であ
ることが示されるようになっている。
That is, "N27" at the head of the index
Indicates that the original index “N271 to N274” has been split, and the subsequent “1” and “4” indicate that the instruction has been completed or suspended, and the last Is an instruction to be executed when an instruction of backward movement by an absolute value, forward or backward movement by an incremental value, or forward movement by an absolute value is given, as in the original index, by "+1 to +4". Is to be shown.

【0170】なお、インデックスは上記のものに限られ
ないが、例えば上記ようにすることによって、後にどの
ような分割が行われたかを確認したり、前進修正動作が
行われた場合に、分割された命令を自動的に結合させた
りすることが容易にできるようになる。
The index is not limited to the above. For example, the index can be used to confirm what kind of division has been performed later, or to perform division when a forward correction operation is performed. It becomes easy to automatically combine the instructions.

【0171】[0171]

【表21】 [Table 21]

【0172】(22)さらに、前進修正動作モードボタ
ンB51、および自動運転開始ボタンB11を押すと、
実行保留命令とされたインデックスN274+2またはN274+4
の命令に基づいて前進修正動作が行われる。このとき
に、X=−1081.075、Y=−333.475の
位置で自動運転休止ボタンB12を押して停止させる
と、上記実行保留命令がさらに分割されて、前進が完了
した部分については「O#」を付加しない通常の命令にさ
れる。また、リードライトポインタは、順次進んで、イ
ンデックスN274+1+4と、N274+4+1との間にセットされ
る。
(22) Further, when the forward correction operation mode button B51 and the automatic operation start button B11 are pressed,
Index N274 + 2 or N274 + 4 as execution pending instruction
The forward correction operation is performed based on the instruction. At this time, if the automatic operation stop button B12 is pressed to stop at the position of X = −1081.075 and Y = −333.475, the execution suspension instruction is further divided, and the portion where the forward movement is completed is “O It is a normal instruction without adding "#". Further, the read / write pointer advances sequentially and is set between the indexes N274 + 1 + 4 and N274 + 4 + 1.

【0173】なお、この場合、インデックスN271+1〜N2
71+4と、N274+1+1〜N274+1+4とは、共に元のインデック
スN271〜N274から分割されたものなので、結合して1組
のプログラムステップとするようにしてもよい。
In this case, the indexes N271 + 1 to N2
Since 71 + 4 and N274 + 1 + 1 to N274 + 1 + 4 are both divided from the original indexes N271 to N274, they may be combined into one set of program steps.

【0174】[0174]

【表22】 [Table 22]

【0175】(23)次に、再度、SMモード(記憶部
21に一時的に保持させたプログラムステップを実行す
るモード)にし、記憶再開ボタンB25を押して記憶を
再開した後1秒たってから自動運転開始ボタンB11を
押して、一時的に保持させたプログラムステップ「X-3
3.3F80 」を実行させると、(表22)のリードライト
ポインタの位置に、前記の場合と同様に、時間待ちや、
切削速度の変更、エンドミル13の移動を示す命令など
(N274+1+8〜N274+1+14 )が挿入される。
(23) Next, the SM mode (mode for temporarily executing the program steps temporarily stored in the storage unit 21) is set again, and the automatic operation is started one second after the storage is restarted by pressing the storage restart button B25. By pressing the start button B11, the program step "X-3
When “3.3F80” is executed, the time at the position of the read / write pointer in (Table 22) is waited,
A command indicating a change in the cutting speed, movement of the end mill 13 or the like (N274 + 1 + 8 to N274 + 1 + 14) is inserted.

【0176】ここで、記憶再開ボタンB25を押す前
に、後退修正動作モードおよび前進修正動作モード以外
の他のモードにして手動運転等を行った場合には、必要
に応じて状態チェックボタンB23を押し、前記修正動
作終了時と同じ状態であることを確認する必要がある。
なぜならば、修正動作終了時と異なる状態からの動作に
基づいて記憶がなされると、同じ動作が再現できないか
らである。
Here, when the manual operation or the like is performed in a mode other than the backward correction operation mode and the forward correction operation mode before the storage restart button B25 is pressed, the state check button B23 is pressed as necessary. It is necessary to confirm that the state is the same as when the correction operation is completed.
This is because the same operation cannot be reproduced if storage is performed based on an operation from a state different from that at the end of the correction operation.

【0177】[0177]

【表23】 [Table 23]

【0178】(24)記憶終了ボタンB26を押すと、
記憶動作が終了し、その時点の本体部11の状態を示す
情報、すなわち、後退動作等をする際に初期状態として
同じ状態を再現するために必要な命令ブロック群(N274
+1+19 〜N274+1+99 )が記憶される。なお、さらに、有
効なプログラムステップの最後であることを示す情報を
記憶させるようにしてもよい。
(24) When the storage end button B26 is pressed,
Information indicating the state of the main body unit 11 at the time when the storage operation is completed, that is, an instruction block group (N274) necessary to reproduce the same state as an initial state when performing a retreat operation or the like.
+ 1 + 19 to N274 + 1 + 99) are stored. It should be noted that information indicating the end of the effective program step may be further stored.

【0179】[0179]

【表24】 [Table 24]

【0180】上記の他、必要に応じて、X、Y、Z軸方
向の移動が停止状態であることや、種々のパラメータの
値、ツール径・ツール長の補正の値、プログラム中の各
変数の値、手動ハンドルH1の1パルスあたりの移動距
離、その移動の最大速度(例えばF100)、早送り時の移
動速度、種々のモードを示すモーダル情報、ワーク座標
系の定義なども記憶される。
In addition to the above, if necessary, the movement in the X, Y, and Z axis directions is stopped, the values of various parameters, the correction values of the tool diameter and the tool length, and the variables in the program. , The moving distance of the manual handle H1 per pulse, the maximum speed of the movement (for example, F100), the moving speed at the time of rapid traverse, modal information indicating various modes, the definition of the work coordinate system, and the like.

【0181】また、さらに、生成されたプログラムの解
析やマニュアルでの編集をする場合などの参考とするた
めに、コメントなどとして、 下記のような情報も記憶
させるようにしてもよい。
Further, the following information may be stored as a comment or the like for reference when analyzing the generated program or editing it manually.

【0182】1.前記(1)で記憶の開始時に初期設定
として記憶された、本体部11の状態やパラメータの値
等を示す情報のうち、生成されたプログラムによる再生
や後退で使用はされるが、変更はされないもの(例えば
主軸を回転させたときの回転速度S100、早送り時の移動
速度、基本機械座標系G53 の定義など)。このような情
報は、初期設定の通りに設定されていなければ、プログ
ラムの適正な実行が保証されない一方、これを変更する
命令を付加しない限り、プログラムステップの追加等の
修正をしても、そのプログラムステップは上記初期設定
に基づいた動作をすることが保証される。
1. Of the information stored as the initial settings at the start of the storage in (1) above and indicating the state of the main unit 11, the values of the parameters, and the like, the information is used for reproduction or retreat by the generated program, but is not changed. (For example, the rotation speed S100 when the main shaft is rotated, the movement speed at the time of rapid traverse, the definition of the basic machine coordinate system G53, etc.). If such information is not set as the initial setting, the proper execution of the program is not guaranteed, but even if a modification such as addition of a program step is added, unless an instruction to change the program is added, the information is not guaranteed. It is guaranteed that the program step operates based on the above initial settings.

【0183】2.前記(1)で記憶の開始時に初期設定
として記憶された、本体部11の状態やパラメータの値
等を示す情報のうち、生成されたプログラムによる再生
や後退で使用され、かつ変更もされるもの(例えば切削
速度、移動速度が切削速度か早送り速度か、X、Y、Z
軸方向の位置、主軸の回転の有無、座標の指定が増分値
か絶対値か、Z軸が原点復帰しているかどうか、X、
Y、Z軸方向の移動が停止状態かどうかなど)。このよ
うな情報は、これを変更する命令の付加等をするとプロ
グラムが適正に実行されないおそれがあるとともに、プ
ログラムステップの追加等の修正をしたときに、そのプ
ログラムステップが上記初期設定に基づいた動作をする
とは限らない。
2. Among the information indicating the state of the main body unit 11 and the values of the parameters, etc., which are stored as initial settings at the start of the storage in the above (1), those which are used for playback or retreat by the generated program and which are also changed (For example, cutting speed, moving speed is cutting speed or rapid feed speed, X, Y, Z
The position in the axial direction, the presence or absence of rotation of the spindle, whether the coordinate is specified as an incremental value or an absolute value, whether the Z axis has returned to the origin,
For example, whether the movement in the Y and Z axis directions is stopped). Such information may cause the program not to be properly executed if an instruction to change the information is added, and may cause the program step to perform an operation based on the initial setting when the program step is corrected. Not necessarily.

【0184】3.前記(1)で記憶の開始時に初期設定
として記憶された、本体部11の状態やパラメータの値
等を示す情報のうち、生成されたプログラムによる再生
や後退で使用されないもの(例えば手動ハンドルH1の
1パルスあたりの移動距離、その移動の最大速度F100、
ワーク座標系G54 の定義など)。このような情報は、こ
れを変更する命令の付加等をしても、元のプログラムの
部分の実行には影響しない。
[0184] 3. Among the information indicating the state of the main body 11 and the values of the parameters, etc., which are stored as the initial settings at the start of the storage in the above (1), those which are not used for reproduction or retreat by the generated program (for example, for the manual handle H1) Travel distance per pulse, maximum speed F100 of the travel,
Definition of work coordinate system G54). Such information does not affect the execution of the original program portion even if an instruction to change the information is added.

【0185】なお、上記の操作では、手動操作も含めて
新たなプログラムの生成をした例を示したが、参照する
プログラムとして従来の装置で用いられる後退ができな
いプログラムを用い、そのプログラムの実行だけをさせ
て新たなプログラムを生成すれば、同じ動作をするとと
もに後退をさせることもできるプログラムを得ることが
できる。また、実際に本体部11を動作させなくても、
そのシミュレート、すなわち動作させる場合と同様のプ
ログラムの解釈処理等を行わせるようにすれば、後退が
できないプログラムを後退が可能なプログラムに変換す
る装置を実現することができる。この場合、本体部11
を動作させる代わりに、移動の軌跡や状態等をディスプ
レイに表示して動作を確認できるようにしてもよい。
In the above-mentioned operation, an example in which a new program is generated including a manual operation has been described. However, a program used in a conventional apparatus which cannot be retreated is used as a program to be referred to, and only the execution of the program is performed. And generating a new program, it is possible to obtain a program that performs the same operation and can be moved backward. Also, without actually operating the main body 11,
If the simulation is performed, that is, the same program interpretation processing as in the case of operation is performed, a device that converts a program that cannot be retreated into a program that can be retreated can be realized. In this case, the main body 11
Instead of operating, the trajectory and state of the movement may be displayed on a display so that the operation can be confirmed.

【0186】また、参照するプログラムは1つに限ら
ず、複数のプログラムを参照し、しかも、それぞれのプ
ログラムの任意の位置にリードポインタをセットして参
照することにより、種々のプログラム、およびその要素
等を組み合わせたプログラムを生成することも容易にで
きる。ここで、参照するプログラムとして、その時点で
記憶中のプログラム自体を選択することも可能であると
ともに、その場合、リードポインタの位置は、リードラ
イトポインタとは別にセットすることができ、さらに、
リードポインタを実行保留ステップの位置にセットし、
そのプログラムステップを有効なプログラムステップと
解釈して参照できるようにしてもよい。
The number of programs to be referred to is not limited to one. By referring to a plurality of programs and setting and reading a read pointer at an arbitrary position of each program, various programs and their elements can be referred to. It is also possible to easily generate a program combining the above. Here, as the program to be referred to, it is possible to select the program itself stored at that time, and in that case, the position of the read pointer can be set separately from the read / write pointer, and further,
Set the read pointer to the position of the execution pending step,
The program step may be interpreted as a valid program step and referred to.

【0187】また、上記の例では、記憶開始ボタンB2
1を押して新たなプログラムの記憶を開始する動作を示
したが、既に生成されたプログラムや、操作・表示部1
6から入力等されたプログラムの任意の位置にリードラ
イトポインタをセットして記憶再開ボタンB25を押す
ことなどにより、元のプログラム自体にプログラムステ
ップの追加修正等を施せるようにしてもよい。
In the above example, the storage start button B2
The operation of pressing 1 to start storing a new program has been described.
By setting a read / write pointer at an arbitrary position in the program input from step 6 and pressing the storage restart button B25, the original program itself may be subjected to additional correction of program steps.

【0188】その際、その時の本体部11の状態や、プ
ログラムステップの追加後の本体部11の状態が、元の
プログラムをリードライトポインタの手前の位置まで実
行したときに得られる本体部11の状態と一致していな
い場合には、追加したプログラムステップや、元のプロ
グラムにおける追加したプログラムステップよりも後ろ
の部分のプログラムステップについては、同じ動作が再
現されないが、そのような場合には、本体部11の状態
が一致していない旨を警告だけして、意図的に、そのよ
うなプログラムステップの追加をできるようにしてもよ
い。一方、プログラムステップの追加記憶を開始する前
に、前記記憶中断ボタンB22を押して記憶動作を停止
させた後に記憶再開ボタンB25を押して記憶を再開さ
せる場合と同様に、復帰開始ボタンB24を押すことに
より、元のプログラムをリードライトポインタの手前の
位置まで実行したときに得られるのと同じ本体部11の
状態にできるようにしたり、プログラムステップの追加
記憶終了後に、本体部11の状態を、元のプログラムに
おける追加したプログラムステップよりも前の部分を実
行したときと同じ状態にさせるためのプログラムステッ
プを自動的に付加させ得るようにしてもよい。また、不
測の動作を防止するために、そのようなプログラムを保
存できないようにしたり、追加したプログラムステップ
より後ろのプログラムステップを強制的に実行保留ステ
ップにしたりするようにしてもよい。
At this time, the state of the main unit 11 at that time and the state of the main unit 11 after the program step is added are obtained by executing the original program up to the position just before the read / write pointer. If the state does not match the state, the same operation is not reproduced for the added program step or for the program step behind the added program step in the original program. Only a warning that the state of the unit 11 does not match may be provided so that such a program step can be intentionally added. On the other hand, before the additional storage of the program step is started, by pressing the storage stop button B22 to stop the storage operation and then pressing the storage restart button B25 to restart the storage, the return start button B24 is pressed. The state of the main body 11 can be changed to the same state as obtained when the original program is executed up to the position before the read / write pointer, or the state of the main body 11 is changed to the original state after the additional storage of the program step. A program step for making the same state as when the part before the added program step in the program is executed may be automatically added. Further, in order to prevent an unexpected operation, such a program may not be stored, or a program step subsequent to the added program step may be forcibly set as an execution suspension step.

【0189】また、上記の例で示した記憶内容は必ずし
も全て必要なく、プログラムステップ生成部23の処理
能力(速度)が低い場合や記憶情報量を少なく押さえた
い場合などには、参考のためだけの情報を含まないよう
にしたり、移動を示す命令として、前進、および後退に
ついての増分値、および絶対値による動作を示す命令の
うちの何れかを選択して記憶させるようにしてもよい。
また、本体部11の動作時には、リアルタイムに最終的
な形式のプログラムを生成せずに、中間言語などの形で
必要なデータを記憶させ、このデータに基づいて、本体
部11の動作とは非同期に、所望の形式のプログラムを
生成するようにして、処理効率を向上させるようにして
もよい。
Further, all of the storage contents shown in the above example are not necessarily required. When the processing capability (speed) of the program step generation unit 23 is low or when it is desired to reduce the amount of stored information, it is merely for reference. May be excluded from the information, or one of instructions indicating an operation based on an incremental value for forward and backward movements and an absolute value may be selected and stored as a command indicating movement.
In addition, during the operation of the main unit 11, necessary data is stored in an intermediate language or the like without generating a final program in real time, and based on this data, the operation of the main unit 11 is asynchronous. Alternatively, a program of a desired format may be generated to improve processing efficiency.

【0190】[0190]

【発明の効果】本発明によれば、装置に専用の制御言語
を習得していなくても、手動によって動作部を操作する
ことさえできれば、動作部を動作させるためのプログラ
ムが自動的に作成されるので、容易にプログラムを作成
することができるうえ、記憶手段に記憶されたプログラ
ムおよび手動操作に基づいても、新たなプログラムのス
テップが生成されるので、既存のプログラムを利用した
新たなプログラムを作成したり、プログラムを修正した
りすることが容易にできる。また、プログラムに応じた
動作部の動作に所定の変換を施すことによって、プログ
ラムステップによって示される動作と類似の動作、例え
ばその動作を平行移動や回転移動などさせた動作をする
プログラムを容易に作成することができる。また、特に
プログラムステップを作成しなくても、所定のプログラ
ムステップに応じた後退動作を行わせることができ、同
じ動作をくり返し行わせたり、装置を元の状態に戻した
りすることが容易にできるとともに、プログラムステッ
プの修正や実行確認をしたり、また、そのような後退動
作をするプログラムステップを作成することが容易にで
きる。さらに、制御プログラムの変換装置は、プログラ
ムに含まれる各プログラムステップ、および各プログラ
ムステップに先立って実行されるプログラムステップに
基づいて、後退動作が可能な制御プログラムに変換する
ことにより、既存のプログラムなどでも、後退動作が可
能なプログラムに変換し、後退動作を行い得るようにす
ることができるという効果を奏する。
According to the present invention, a program for operating an operating section is automatically created as long as the operating section can be operated manually, even if a control language dedicated to the apparatus has not been acquired. Therefore, the program can be easily created, and a new program step is generated based on the program and the manual operation stored in the storage means. It can be easily created or modified. In addition, by performing a predetermined conversion on the operation of the operation unit according to the program, it is possible to easily create a program that performs an operation similar to the operation indicated by the program step, for example, an operation in which the operation is translated or rotated. can do. Further, a retreat operation according to a predetermined program step can be performed without creating a program step, and the same operation can be repeatedly performed or the apparatus can be easily returned to an original state. At the same time, it is possible to easily correct a program step, confirm execution, and create a program step for performing such a retreat operation. Further, the control program conversion device converts the control program into a control program capable of a retreat operation based on each program step included in the program and a program step executed prior to each program step, so that an existing program or the like can be used. However, there is an effect that the program can be converted into a program capable of performing the retreat operation and the retreat operation can be performed.

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

【図1】本発明の実施例にかかるプログラム動作機械の
一例としてのNCフライス盤、およびその制御装置の外
観を示す斜視図である。
FIG. 1 is a perspective view showing an NC milling machine as an example of a program operating machine according to an embodiment of the present invention, and an appearance of a control device thereof.

【図2】同、制御盤15の機能的な構成を示すブロック
図である。
FIG. 2 is a block diagram showing a functional configuration of a control panel 15.

【図3】同、プログラムによって示される本体部11の
動作に対して変換を施した動作をさせる例を示す説明図
である。
FIG. 3 is an explanatory diagram showing an example in which an operation obtained by converting an operation of a main body unit 11 indicated by a program is performed.

【図4】同、操作・表示部16の詳細な構成を示す正面
図である。
FIG. 4 is a front view showing the detailed configuration of the operation / display unit 16;

【図5】同、自動運転モードでの前進・後退動作におけ
る操作・表示部16の操作、記憶部21の記憶内容、お
よび本体部11の実際の動作を示す説明図である。
FIG. 5 is an explanatory diagram showing the operation of the operation / display unit 16, the contents stored in the storage unit 21, and the actual operation of the main body unit 11 in the forward / backward operation in the automatic driving mode.

【図6】同、後退・前進修正動作モードにおける操作・
表示部16の操作、記憶部21の記憶内容、および本体
部11の実際の動作を示す説明図である。
FIG. 6 shows the operation in the backward / forward correction operation mode.
FIG. 4 is an explanatory diagram showing operations of the display unit 16, contents stored in a storage unit 21, and actual operations of the main unit 11.

【図7】同、種々の操作が行われ、前進・後退修正動作
等を含む動作をさせる場合のエンドミル13の主な動作
を示す説明図である。
FIG. 7 is an explanatory diagram showing main operations of the end mill 13 when various operations are performed and operations including a forward / backward correction operation and the like are performed.

【図8】従来のNC工作機械や産業用ロボットなどのプ
ログラム動作機械の構成を示すブロック図である。
FIG. 8 is a block diagram showing a configuration of a conventional program operation machine such as an NC machine tool or an industrial robot.

【符号の説明】[Explanation of symbols]

11 本体部 12 XYテーブル 13 エンドミル 14 ヘッド 15 制御盤 16 操作・表示部 21 記憶部 22 動作制御部 23 プログラムステップ生成部 24 動作修飾部 25 後退動作・後退修正動作・前進修正動作制御部 26 後退動作修飾部 B11 自動運転開始ボタン B12 自動運転休止ボタン B21 記憶開始ボタン B22 記憶中断ボタン B25 記憶再開ボタン B26 記憶終了ボタン L21 記憶状態表示ランプ S31 前進・後退動作選択スイッチ B31 自動運転モードボタン B41 後退修正動作モードボタン B51 前進修正動作モードボタン DESCRIPTION OF SYMBOLS 11 Main body part 12 XY table 13 End mill 14 Head 15 Control panel 16 Operation / display part 21 Storage part 22 Operation control part 23 Program step generation part 24 Operation modification part 25 Retreat operation / retreat correction operation / advance correction operation control part 26 Retreat operation Modification part B11 Automatic operation start button B12 Automatic operation stop button B21 Memory start button B22 Memory suspend button B25 Memory restart button B26 Memory end button L21 Memory state display lamp S31 Forward / reverse operation selection switch B31 Automatic operation mode button B41 Reverse correction operation mode Button B51 Forward correction operation mode button

フロントページの続き (56)参考文献 特開 平7−20925(JP,A) 特開 平6−324732(JP,A) 特開 平2−39207(JP,A) 特開 平5−134738(JP,A) 特開 平3−175504(JP,A) 特開 平2−236603(JP,A) 特開 昭64−64016(JP,A) 特開 平5−88711(JP,A) (58)調査した分野(Int.Cl.7,DB名) G05B 19/4093 Continuation of the front page (56) References JP-A-7-20925 (JP, A) JP-A-6-324732 (JP, A) JP-A-2-39207 (JP, A) JP-A-5-134738 (JP) JP-A-3-175504 (JP, A) JP-A-2-236603 (JP, A) JP-A-64-164016 (JP, A) JP-A-5-88711 (JP, A) (58) Field surveyed (Int.Cl. 7 , DB name) G05B 19/4093

Claims (16)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】プログラムで動作する動作部を備えた機械
の制御装置において、 上記動作部を動作させるプログラムを記憶する記憶手段
と、 上記動作部の動作を指示する操作手段と、 記憶手段に記憶されたプログラムに基づく上記動作部の
動作、および操作手段の操作に基づく上記動作部の動作
の双方に応じて、新たなプログラムステップを生成し、
上記記憶手段に記憶させるとともに、上記新たなプログ
ラムステップと対応させて、上記新たなプログラムステ
ップによる動作とは逆の動作である後退動作を上記動作
部にさせるために必要な補足情報を上記記憶手段に記憶
させるプログラムステップ生成手段とを備えたことを特
徴とするプログラム動作機械の制御装置。
1. A machine provided with an operation unit operated by a program.
In the control device, storing means for storing a program for operating the operation portion
When an operation means for instructing an operation of the operation unit, the operation unit based on the program stored in the storage means
Operation and operation of the operation unit based on operation of the operation means
Generate a new program step according to both
The new program is stored in the storage means.
The new program steps described above correspond to the ram steps.
The reverse operation, which is the reverse operation of the
Supplementary information necessary for the storage unit is stored in the storage unit.
Program step generating means for causing
Control device of program operation machine.
【請求項2】上記補足情報は、対応するプログラムステ
ップによる動作の前後の少なくとも一方における上記動
作部の状態に関する情報を含む請求項1のプログラム動
作機械の制御装置。
2. The program according to claim 1, wherein the supplementary information is a program
The above-mentioned movements before and / or after the
2. The program according to claim 1, including information on the state of the working part.
Control device for machine tools.
【請求項3】上記動作部の状態に関する情報は、対応す
るプログラムステップによる動作の起点または終点の少
なくとも一方における座標を含む請求項2のプログラム
動作機械の制御装置。
3. The information relating to the state of the operation section is a corresponding
The starting or ending point of the operation by the program step
3. The program according to claim 2, including at least one coordinate.
Control device for moving machine.
【請求項4】請求項1のプログラム動作機械の制御装置
であって、さらに、上記プログラムステップ生成手段に
よって生成され、上記記憶手段に記憶されたプログラム
ステップおよび補足情報に基づいて、上記動作部に上記
後退動作をさせるように制御する後退動作制御手段を備
えたプログラム動作機械の制御装置。
4. A control device for a program operation machine according to claim 1.
And the program step generating means further comprises:
The program generated by this and stored in the storage means
Based on the steps and supplementary information,
A reverse movement control means for controlling the reverse movement is provided.
Control device for the program operation machine.
【請求項5】上記プログラムステップ生成手段は、上記
記憶手段に記憶されたプログラムステップおよび補足情
報に基づいた上記後退動作制御手段による後退動作に応
じて、さらに新たなプログラムステップを生成するよう
に構成された請求項4のプログラム動作機械の制御装
置。
5. The program step generating means according to claim 1 , wherein
Program steps and supplementary information stored in storage means
Response to the reverse operation by the reverse operation control means based on the
To generate new program steps
5. The control device for a program operation machine according to claim 4, wherein
Place.
【請求項6】上記プログラムステップ生成手段は、上記
記憶手段に記憶されたプログラムステップおよび補足情
報に基づいた上記後退動作制御手段による後退動作に応
じて、そのプログラムステップによる動作の少なくとも
一部を打ち消すように、そのプログラムステップを修正
するように構成された請求項4のプログラム動作機械の
制御装置。
6. The program step generating means according to claim 1 , wherein
Program steps and supplementary information stored in storage means
Response to the reverse operation by the reverse operation control means based on the
Of the operation by the program step
Modified its program steps to counteract some
5. The program operation machine of claim 4, wherein
Control device.
【請求項7】プログラムで動作する動作部を備えた機械
の制御装置において、 上記動作部を動作させるプログラムを記憶する記憶手段
と、 請求項1のプログラムステップ生成手段によって生成さ
れ、上記記憶手段に記憶されたプログラムステップおよ
び補足情報に基づいて、上記プログラムステップによる
動作とは逆の動作である後退動作を上記動作部にさせる
ように制御する後退動作制御手段とを備えたプログラム
動作機械の制御装置。
7. A machine provided with an operation section operated by a program.
In the control device, storing means for storing a program for operating the operation portion
When, of generating the program step generating means according to claim 1
And the program steps stored in the storage means.
And the above program steps, based on
Let the above-mentioned operation part perform the backward operation, which is the reverse operation to the operation
Operation control means for controlling the reverse movement
Control device for moving machine.
【請求項8】プログラムで動作する動作部を備えた機械
の制御装置において、 上記動作部を動作させるプログラムを記憶する記憶手段
と、 上記記憶手段に記憶されたプログラムに含まれるプログ
ラムステップであって、そのプログラムステップによる
動作とは逆の動作である後退動作が可能なプログラムス
テップに基づいて、上記動作部に上記後退動作をさせる
ように制御する後退動作制御手段とを備えたプログラム
動作機械の制御装置。
8. A machine provided with an operation section operated by a program.
In the control device, storing means for storing a program for operating the operation portion
And a program included in the program stored in the storage means.
Ram step, depending on the program step
A program that can perform a reverse operation, which is the reverse of the operation
Based on the step, the operation section performs the retreat operation.
Operation control means for controlling the reverse movement
Control device for moving machine.
【請求項9】上記後退動作が可能なプログラムステップ
は、その実行による上記動作部の状態の変化を示す相対
的な情報を含むプログラムステップである請求項8のプ
ログ ラム動作機械の制御装置。
9. A program step capable of performing said retreat operation.
Is a relative value that indicates a change in the state of
9. The program according to claim 8, which is a program step including essential information.
Log ram operating machinery of the control device.
【請求項10】プログラムで動作する動作部を備えた機
械の制御装置において、 上記動作部を動作させるプログラムを記憶する記憶手段
と、 上記記憶手段に記憶されたプログラムに含まれる、所定
のプログラムステップ、およびそのプログラムステップ
に先立って実行されるプログラムステップに基づいて、
動作部に、上記所定のプログラムステップによる動作と
は逆の動作である後退動作をさせるように制御する後退
動作制御手段とを備えたプログラム動作機械の制御装
置。
10. An apparatus provided with an operation unit operated by a program.
Storage means for storing a program for operating the operation unit in the control device of the machine
A predetermined program included in the program stored in the storage means.
Program steps and their program steps
Based on the program steps executed prior to
The operation unit includes an operation based on the predetermined program step and
Is the reverse operation, which is the reverse operation.
Control device for a program operation machine having operation control means
Place.
【請求項11】上記後退動作制御手段は、上記所定のプ
ログラムステップに先立って実行されるプログラムステ
ップのうち、上記所定のプログラムステップと同種のプ
ログラムステップを検索し、その同種のプログラムステ
ップの実行後における上記動作部の状態を求めることに
より、上記動作部に上記後退動作をさせるよう制御する
ように構成された請求項10のプログラム動作機械の制
御装置。
11. The reversing operation control means includes:
Program steps executed prior to program steps
Of the same type as the above-mentioned predetermined program step
Search for program steps
To determine the state of the above operating unit after the
Controlling the operation section to perform the retreat operation.
11. The control of a program operation machine according to claim 10, wherein
Control device.
【請求項12】請求項4、請求項7、請求項8、または
請求項10のプログラム動作機械の制御装置であって、
さらに、上記動作部の上記後退動作に所定の変換を施す
後退動作修飾手段を備えたプログラム動作機械の制御装
置。
12. The method of claim 4, claim 7, claim 8, or
The control device of a program operation machine according to claim 10, wherein
Further, a predetermined conversion is performed on the retreat operation of the operation unit.
A control device for a program operation machine having a reversing operation modifying means.
Place.
【請求項13】上記後退動作修飾手段が施す所定の変換
は、上記後退動作に対して、平行移動、回転移動、線対
称移動、面対称移動、拡大、または縮小した動作をさせ
る変換のうちの少なくとも何れか一つである請求項12
のプログラム動作機械の制御装置。
13. A predetermined conversion applied by said backward movement modifying means.
Are parallel movement, rotational movement, and line pair
Movement, symmetric movement, expansion or contraction
13. The conversion is at least one of the following conversions.
Control device of the program operation machine.
【請求項14】プログラムで動作する動作部を備えた機
械の上記動作部を動作させるプログラムを記憶する記憶
手段と、 上記記憶手段に記憶された上記プログラムを、そのプロ
グラムに含まれる各プログラムステップについて、それ
ぞれのプログラムステップ、およびそれぞれの プログラ
ムステップに先立って実行されるプログラムステップに
基づいて、上記各プログラムステップとは逆の動作であ
る後退動作を上記動作部にさせることが可能な制御プロ
グラムに変換する制御プログラム変換手段とを備えたこ
とを特徴とする制御プログラムの変換装置。
14. An apparatus provided with an operation section operated by a program.
For storing a program for operating the above-described operation unit of the machine
Means and the program stored in the storage means.
For each program step included in the program
Each program step and each program
Program steps that are executed prior to
Based on the above program steps.
A control program that allows
Control program conversion means for converting the
And a control program conversion device.
【請求項15】請求項1のプログラム動作機械の制御装
置であって、上記プログラムステップ生成手段は、上記
動作部の動作に応じて、上記動作後の上記動作部の状態
に関する絶対的な情報を含むプログラムステップと、上
記動作の前後の上記動作部の状態の変化に関する相対的
な情報を含むプログラムステップとを生成するように構
成されていることを特徴とするプログラム動作機械の制
御装置。
15. A control device for a program operation machine according to claim 1.
Wherein the program step generating means comprises:
According to the operation of the operation unit, the state of the operation unit after the above operation
Program steps that contain absolute information about
Relative to the change in the state of the above operation unit before and after the above operation
Program steps that contain sensitive information
Control of a program operation machine characterized by
Control device.
【請求項16】プログラムで動作する動作部を備えた機
械の制御装置において、 請求項15のプログラムステップ生成手段によって生成
された、上記絶対的な情報を含むプログラムステップ、
または上記相対的な情報を含むプログラムステップのう
ちの何れか一方を選択的に実行するように構成されてい
ることを特徴とするプログラム動作機械の制御装置。
16. An apparatus provided with an operation section operated by a program.
In the control device of the machine, generated by the program step generating means according to claim 15
Performed program steps including the absolute information,
Or a program step containing the relative information
Is configured to selectively execute either one of
A control device for a program operation machine, comprising:
JP8287541A 1996-07-23 1996-10-09 Control device for program operation machine and conversion device for control program Expired - Fee Related JP3049485B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8287541A JP3049485B2 (en) 1996-07-23 1996-10-09 Control device for program operation machine and conversion device for control program

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP21321496 1996-07-23
JP8-213214 1996-07-23
JP8287541A JP3049485B2 (en) 1996-07-23 1996-10-09 Control device for program operation machine and conversion device for control program

Publications (2)

Publication Number Publication Date
JPH1091227A JPH1091227A (en) 1998-04-10
JP3049485B2 true JP3049485B2 (en) 2000-06-05

Family

ID=26519666

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8287541A Expired - Fee Related JP3049485B2 (en) 1996-07-23 1996-10-09 Control device for program operation machine and conversion device for control program

Country Status (1)

Country Link
JP (1) JP3049485B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2124117B1 (en) * 2008-05-21 2012-05-02 Siemens Aktiengesellschaft Operating device for operating a machine tool
JP5867229B2 (en) * 2012-03-28 2016-02-24 株式会社デンソーウェーブ Program creation support method

Also Published As

Publication number Publication date
JPH1091227A (en) 1998-04-10

Similar Documents

Publication Publication Date Title
JPH0444764B2 (en)
KR930007256B1 (en) Nc program editing method for four-axis lathes
KR930011720B1 (en) Working program teaching system for numerically controlled machine tool
JPH0585301B2 (en)
JP3049485B2 (en) Control device for program operation machine and conversion device for control program
US4737919A (en) Numerical control sequential translator
JPH053001B2 (en)
JPH0630011B2 (en) Numerical control Machining restart control method
JPS61103213A (en) Production of numerical control data
JPS60127949A (en) Selection of tool in automatic programming
JPH04237307A (en) Automatic transformation device for coordinate axis
JP2642451B2 (en) Numerical control unit
WO1989000724A1 (en) Numerical controller
JP2846320B2 (en) Interactive numerical controller
JPH10124124A (en) Working program drawing method for numerical controller, and numerical controller provided with drawing function
JPH02151909A (en) Control device for industrial machine
JP3568173B2 (en) Switching method of coordinate data specification format in numerically controlled machine tools
JPH03294906A (en) Editing system for working program
JPH0158016B2 (en)
GB2187308A (en) An operation program checking method for a numerical control device
JPS60127946A (en) Selection of tool for groove-cutting work in automatic programming
JPS60101606A (en) Automatic robot operation system
JP2022047702A (en) Machining program optimization device and method thereof
JPS62204310A (en) Editing system for working program
JPS5922103A (en) Numeric controlling method

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080331

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090331

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees