JPH10143229A - Machine tool controller - Google Patents

Machine tool controller

Info

Publication number
JPH10143229A
JPH10143229A JP31270996A JP31270996A JPH10143229A JP H10143229 A JPH10143229 A JP H10143229A JP 31270996 A JP31270996 A JP 31270996A JP 31270996 A JP31270996 A JP 31270996A JP H10143229 A JPH10143229 A JP H10143229A
Authority
JP
Japan
Prior art keywords
program
machining
work
machine tool
execution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP31270996A
Other languages
Japanese (ja)
Inventor
Kaichi Ishihara
嘉市 石原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Murata Machinery Ltd
Original Assignee
Murata Machinery Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP31270996A priority Critical patent/JPH10143229A/en
Publication of JPH10143229A publication Critical patent/JPH10143229A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To continue proper working through a simple operation when working is interrupted at a machine tool such as a counter two-axis lathe. SOLUTION: This device is provided with control means 35A and 35B for controlling a machine tool 1 by executing working programs 37A and 37B composed of plural process programs 52A-54A. Reloading commands 55A-57A are provided for overwriting the distinguish data of work state on a prescribed storage part 38 after the process programs 52A-54A. The control means 35A and 35B have condition judging means 51A for discriminating the stored data in the storage part 38 and starting the execution from any correspondent one of process programs 52A-54A when starting executing the working programs.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、各種の工作機
械、例えば対向2軸旋盤等を加工プログラムで制御する
工作機械制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a machine tool control device for controlling various machine tools, for example, an opposed two-axis lathe, by a machining program.

【0002】[0002]

【従来の技術】数値制御の工作機械、あるいは搬送装置
と共に加工セルを構成する工作機械は、NC装置に記憶
されている加工プログラムに基づき、その動作が制御さ
れる。加工プログラムは、通常、複数の工程のプログラ
ムで構成される。例えば、対向2軸旋盤の場合、左主軸
用の加工プログラムと右主軸用の加工プログラムとがあ
り、左加工プログラムは、素材ワーク搬入工程、実加工
工程、右主軸への受渡し(いわゆるのキッシング)工程
よりなる。右主軸用の加工プログラムは、左主軸からワ
ークを受け取るワーク受渡し工程(キッシング工程)、
実加工工程、完成ワークの搬出工程よりなる。このよう
な加工プログラムの実行途中において、各種の支障や都
合で加工を一時中断することが必要な場合がある。この
ような場合に、単にスタートキーを押すだけでは、加工
プログラムが最初から実行されるため、例えばワークが
主軸に残っているにもかかわらず、ワークを搬入してし
まうという支障が生じる。そのため、加工を再開させる
には、作業者が各主軸のワーク状態を目視で確認し、操
作盤の画面に表示されている加工プログラムのプログラ
ムリストを見て、対応するプログラム箇所を探し出し、
カーソルを設定した後、スタートキーを押すことで加工
再開していた。
2. Description of the Related Art The operation of a numerically controlled machine tool or a machine tool constituting a machining cell together with a transfer device is controlled based on a machining program stored in an NC device. The machining program is usually composed of a program for a plurality of steps. For example, in the case of a facing two-axis lathe, there are a machining program for the left spindle and a machining program for the right spindle. The left machining program is a material work loading process, an actual machining process, and a delivery to the right spindle (so-called kissing). Process. The machining program for the right spindle is a workpiece delivery process (kissing process) that receives a workpiece from the left spindle,
It consists of the actual machining process and the unloading process of the completed work. During execution of such a machining program, it may be necessary to temporarily suspend the machining due to various obstacles or circumstances. In such a case, simply pressing the start key causes the machining program to be executed from the beginning, so that, for example, there is a problem that the work is carried in despite the work remaining on the main spindle. Therefore, in order to resume machining, the operator visually checks the work state of each spindle, looks at the program list of machining programs displayed on the screen of the operation panel, finds the corresponding program location,
After setting the cursor, pressing the start key restarted machining.

【0003】[0003]

【発明が解決しようとする課題】しかし、このように画
面上に表示されるプログラムリストを見て該当するプロ
グラム部分を探し出す作業は、非常に手間がかかり、熟
練を要する。また、主軸に把持されているワークが加工
済み状態であるか否かの判定を目視で作業者が行うこと
も難しい場合がある。
However, the work of searching for the relevant program portion by looking at the program list displayed on the screen as described above is extremely troublesome and requires skill. In addition, it may be difficult for an operator to visually determine whether or not the work held by the spindle is in a processed state.

【0004】この発明は、上記課題を解消するものであ
り、加工を中断した場合に、簡単な操作で適切な加工の
続行が行える工作機械制御装置を提供することを目的と
する。
[0004] An object of the present invention is to solve the above-mentioned problem, and an object of the present invention is to provide a machine tool control device capable of continuing appropriate machining with a simple operation when machining is interrupted.

【0005】[0005]

【課題を解決するための手段】この発明の構成を実施形
態に対応する図3と共に説明する。この工作機械制御装
置は、複数の工程プログラム(52A〜54A)からな
る加工プログラム(37A,37B)を実行して工作機
械(1)を制御する制御手段(35A,35B)を備え
る。この制御手段(35A,35B)は、工程プログラ
ム(52A〜54A)の実行開始前の前記加工プログラ
ム(37A,37B)の実行開始時に、前記工作機械
(1)の状態が前記いずれの工程プログラム(52A〜
54A)に対応する状態かを判別して対応する工程プロ
グラム(52A〜54A)から実行させる条件判断手段
(51A)を有するものとした。この構成によると、加
工プログラム(37A,37B)の実行開始時に、工作
機械(1)の状態が前記いずれの工程プログラム(52
A〜54A)に対応する状態かを条件判断手段(51
A)が判別して対応する工程プログラム(52A〜54
A)から実行させる。そのため、作業者は、機械の状態
を目視で確認する必要がなく、スタートキーの操作等で
実行指令を与えるだけの簡単な操作で適切な加工の続行
が行える。
The structure of the present invention will be described with reference to FIG. 3 corresponding to an embodiment. This machine tool control device includes control means (35A, 35B) for controlling a machine tool (1) by executing a machining program (37A, 37B) composed of a plurality of process programs (52A to 54A). The control means (35A, 35B) changes the state of the machine tool (1) to any of the process programs (37A, 37B) before the execution of the process programs (52A to 54A). 52A ~
A condition judging means (51A) for judging whether the state corresponds to 54A) and executing the process program from the corresponding process program (52A to 54A). According to this configuration, when the execution of the machining program (37A, 37B) is started, the state of the machine tool (1) is changed to any of the process programs (52).
A to 54A), a condition determining means (51)
A) determines the corresponding process program (52A to 54A).
Execute from A). Therefore, the operator does not need to visually check the state of the machine, and can continue appropriate machining by a simple operation of merely giving an execution command by operating the start key or the like.

【0006】上記構成において、加工プログラム(37
A,37B)は、各工程プログラム(52A〜54A)
の工程終了時にワーク状態の区別データ(0,1,2,
3,4)を所定の記憶部(38A,38B)に上書きす
る書換え指令(55A〜57A)を有するものとするこ
とが好ましい。この場合、前記条件判断手段(51A)
は、前記加工プログラム(37A,37B)の最初の工
程プログラム(52A)の記述部分よりも前の部分に記
述されたワーク状態判別指令に従って前記記憶部(38
A,38B)のワーク状態区別データ(0,1,2,
3,4)を読んで対応する工程プログラム(52A〜5
4A)に実行を移すものとする。このように、各工程プ
ログラム(52A〜54A)の工程終了時に書換え指令
(55A〜57A)があり、所定の記憶部(38A,3
8B)のワーク状態区別データが書換えられるため、加
工プログラム(37A,37B)の実行中の何時に中断
を起こっても、その後のワーク状態判別に支障がない。
これにより、ワーク状態に対応した工程プログラム(5
2A〜54A)まで確実にジャンプさせることができ
る。また、このように、各工程プログラム(52A〜5
4A)の後にワーク状態書換え指令(55A〜57A)
を設けると共に、加工プログラム(37A,37B)の
最初にワーク状態判別指令(51A)を設けるだけで済
むため、一般の汎用の加工プログラムが使用でき、特別
な加工プログラムを組む必要がない。
In the above configuration, the machining program (37
A, 37B) are the process programs (52A to 54A)
At the end of the process, the work state discrimination data (0, 1, 2,
It is preferable to have a rewrite command (55A to 57A) that overwrites (3, 4) in a predetermined storage unit (38A, 38B). In this case, the condition determining means (51A)
Is stored in the storage unit (38) in accordance with a work state determination command described in a portion preceding a description portion of the first process program (52A) of the machining program (37A, 37B).
A, 38B) work state distinction data (0, 1, 2,
Read the corresponding process program (52A-5)
Execution is shifted to 4A). As described above, at the end of the process of each process program (52A to 54A), there is a rewrite command (55A to 57A) and the predetermined storage unit (38A, 3A).
Since the work state discrimination data of 8B) is rewritten, any interruption during the execution of the machining programs (37A, 37B) does not hinder the subsequent work state determination.
As a result, the process program (5
2A to 54A). Further, as described above, each process program (52A to 5A)
4A) Work state rewrite command (55A to 57A)
And a work state determination command (51A) at the beginning of the machining program (37A, 37B) is sufficient, so that a general-purpose machining program can be used and there is no need to construct a special machining program.

【0007】さらに、これらの構成において、前記制御
手段(35A,35B)は、前記条件判断手段(51
A)の判断結果に対応する工程プログラム(53A,5
4A)の実行開始行に記述された固定のシーケンス番号
に向かってプログラム実行をジャンプさせるものとする
ことが望ましい。このように、前記判別後にジャンプし
て実行開始する各工程プログラム(53A,54A)の
開始行のシーケンス番号を変更不能とすることにより、
工程プログラム(52A〜54A)の内容変更等の保守
を行っても、プログラムミスが防止でき、またプログラ
ムの保守作業が容易に行える。また、ワーク状態確認指
令(51A)の定義付けが不要となる。
Further, in these configurations, the control means (35A, 35B) includes the condition determination means (51
Process program (53A, 5A) corresponding to the judgment result of A)
It is desirable to jump the program execution toward the fixed sequence number described in the execution start line of 4A). In this way, by making the sequence number of the start line of each process program (53A, 54A) that jumps and starts execution after the above-described determination impossible to change,
Even if maintenance such as a change in the contents of the process program (52A to 54A) is performed, a program error can be prevented, and the maintenance work of the program can be easily performed. Further, it is not necessary to define the work state confirmation command (51A).

【0008】[0008]

【発明の実施の形態】図1は、この工作機械制御装置を
適用する工作機械である対向2軸旋盤1およびワーク搬
送装置2を組み合わせた加工セルの平面図である。旋盤
1は、対向する一対の主軸3A,3Bと、各主軸3A,
3Bに対応する刃物台である一対のタレット4A,4B
を有するタレット旋盤からなる。これら左側の主軸3A
およびタレット4A等で左加工部(第1の加工部)1A
が構成され、右側の主軸3Bおよびタレット4B等で右
加工部(第2の加工部)1Bが構成される。両主軸3
A,3Bは、ワークを把持する主軸チャック5A,5B
を有し、主軸台6A,6Bに支持されている。各主軸3
A,3Bは、C軸のサーボモータ39,40(図3)に
より回転駆動される。片方(図の左側)の主軸3Aの主
軸台6Aは、主軸3Aの軸方向(X軸方向)に移動自在
となるようにレール7上に設置されている。主軸台6A
のX軸方向への移動は、送りねじ8を介してX軸サーボ
モータ9により行われる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a plan view of a machining cell in which an opposed two-axis lathe 1 and a work transfer device 2 are combined as a machine tool to which the machine tool control device is applied. The lathe 1 has a pair of opposed main shafts 3A, 3B, and each main shaft 3A,
A pair of turrets 4A and 4B which are tool posts corresponding to 3B
And a turret lathe having These left main shaft 3A
And left processing part (first processing part) 1A with turret 4A etc.
The right spindle (3B) and the turret (4B) constitute a right processing section (second processing section) 1B. Double spindle 3
A and 3B are spindle chucks 5A and 5B for gripping a work.
And is supported by the headstocks 6A and 6B. Each spindle 3
A and 3B are rotationally driven by C-axis servo motors 39 and 40 (FIG. 3). A headstock 6A of one of the spindles 3A (left side in the figure) is mounted on a rail 7 so as to be movable in the axial direction (X-axis direction) of the spindle 3A. Headstock 6A
Is moved by an X-axis servomotor 9 via a feed screw 8.

【0009】この可動側の主軸3Aに対応する左側のタ
レット4Aは、前記軸方向(X軸方向)と直角の方向
(Y軸方向)に移動可能なタレットキャリッジ10Aに
直接に搭載され、タレットキャリッジ10Aは送りねじ
11を介してY軸サーボモータ12により進退駆動され
る。このタレットキャリッジ10Aの進退により工具1
3の切込みが行われ、工具13の軸方向送りは主軸台6
Aの移動で行われる。固定側の主軸3Bに対応する右側
のタレット4Aは、直交2軸方向の移動が必要なため、
Y軸方向に移動可能なタレットキャリッジ10Bに、X
軸方向の移動が可能な第2送り台14を介して搭載され
ている。このタレットキャリッジ10Bおよび第2送り
台14の進退駆動は、各々送りねじ15,16を介して
Y軸サーボモータ17およびX軸サーボモータ18によ
り行われる。
A turret 4A on the left side corresponding to the main spindle 3A on the movable side is directly mounted on a turret carriage 10A movable in a direction (Y-axis direction) perpendicular to the axial direction (X-axis direction). 10A is driven forward and backward by a Y-axis servomotor 12 via a feed screw 11. By moving the turret carriage 10A back and forth, the tool 1
3 is performed, and the axial feed of the tool 13 is performed by the headstock 6.
This is performed by moving A. Since the right turret 4A corresponding to the fixed main spindle 3B needs to move in two orthogonal axes directions,
The turret carriage 10B movable in the Y-axis direction
It is mounted via a second feed base 14 that can move in the axial direction. The advancing and retreating of the turret carriage 10B and the second feed table 14 are performed by Y-axis servomotors 17 and X-axis servomotors 18 via feed screws 15 and 16, respectively.

【0010】搬送装置2は、左右の加工部1A,1Bに
渡って上方に架設されたレール19と、このレール19
に沿って走行するローダ20とを備えたガントリ形式の
ものであり、両主軸3A,3Bに対してワークWの搬
入,搬出が可能とされている。なお、左側の主軸3A
は、その軸心部を貫通した中空孔に長尺のバー材が後方
から供給されるものであっても良く、その場合、搬送装
置2は、前記ローダ20と、バー材の送り込み装置(図
示せず)とで構成される。
The transport device 2 includes a rail 19 extending upward over the left and right processing sections 1A and 1B,
And a loader 20 that travels along the gantry. The work W can be loaded and unloaded to and from the two spindles 3A and 3B. The left main shaft 3A
May be one in which a long bar material is supplied from the rear into a hollow hole passing through the shaft center portion. In this case, the transport device 2 includes the loader 20 and a bar material feeding device (FIG. (Not shown).

【0011】図2は、この対向2軸旋盤1でワークWの
両面加工をする場合の動作を示す。同図(A)に示すよ
うに、空状態の左側の主軸3Aに、同図(B)のように
素材ワークWが搬送装置2(図1)で搬入され、左側の
主軸3Aで把持されたワークWの片面が左側のタレット
4A(図1)の工具21で加工される(同図(C))。
片面加工の完了した半完成品ワークWは、同図(D)の
ように左側の主軸台6Aが前進することで、右側の主軸
3Bに渡される(同図(A))。いわゆるキッシングが
行われる。右側の主軸3Bで把持された半完成品ワーク
(第2素材ワーク)Wは、同図(B)のように右側のタ
レット4Bの工具21で残り片面が加工され、両面加工
の完成品(第2完成品)ワークWとななる。この右側の
主軸3Bの完成品ワークWは、搬送装置2で搬出され、
右側の主軸3Bは空の状態で次の半完成品ワークWの受
渡しを待つ。このような動作が、両側の主軸3A,3B
で並行して行われる。
FIG. 2 shows the operation in the case where the work W is processed on both sides by the opposed two-axis lathe 1. As shown in FIG. 1A, the workpiece W is carried into the empty left spindle 3A by the transfer device 2 (FIG. 1) as shown in FIG. 1B, and is gripped by the left spindle 3A. One surface of the work W is machined by the tool 21 of the left turret 4A (FIG. 1) (FIG. 1C).
The semi-finished product work W that has been processed on one side is transferred to the right spindle 3B by the advance of the left headstock 6A as shown in FIG. 9D (FIG. 10A). So-called kissing is performed. The semi-finished product work (second material work) W gripped by the right spindle 3B is processed on the other side by the tool 21 of the right turret 4B as shown in FIG. 2 Completed product) Work W The finished product work W of the right spindle 3B is carried out by the transfer device 2,
The right spindle 3B is empty and waits for delivery of the next semi-finished product work W. Such an operation is performed by the spindles 3A and 3B on both sides.
In parallel.

【0012】図3はこの加工セルを制御する制御装置の
概念構成を示す。この加工セル制御装置は、工作機械1
を制御する工作機械制御装置30、およびワーク搬送装
置2を制御するワーク搬送手段制御装置31で構成され
る。工作機械制御装置30は、数値制御装置33,プロ
グラマブルマシンコントローラ34,および操作盤32
からなる。数値制御装置33は、各々工作機械1の左加
工部1Aおよび右加工部1Bを制御する左加工部制御手
段35Aおよび右加工部制御手段35Bを備える。これ
ら各制御手段35A,35Bは、各々、中央処理装置
(CPU)およびラム(RAM),ロム(ROM)等の
記憶素子等からなる演算処理部36A,36Bを個別に
有しており、これら演算処理部36A,36Bは、左加
工部用の加工プログラム37Aおよび右加工部用の加工
プログラム37Bを各々実行する。プログラマブルマシ
ンコントローラ34は、数値制御装置33と信号で連携
を取って工作機械1のシーケンス制御を主に行う手段で
ある。
FIG. 3 shows a conceptual configuration of a control device for controlling the processing cell. This processing cell control device includes a machine tool 1
And a work transfer means control device 31 for controlling the work transfer device 2. The machine tool controller 30 includes a numerical controller 33, a programmable machine controller 34, and an operation panel 32.
Consists of The numerical control device 33 includes a left processing unit control unit 35A and a right processing unit control unit 35B that control the left processing unit 1A and the right processing unit 1B of the machine tool 1, respectively. Each of these control means 35A, 35B individually has a central processing unit (CPU) and arithmetic processing units 36A, 36B each composed of a storage element such as a ram (RAM) and a ROM (ROM). The processing units 36A and 36B execute a machining program 37A for the left machining unit and a machining program 37B for the right machining unit, respectively. The programmable machine controller 34 is a unit that mainly performs sequence control of the machine tool 1 in cooperation with the numerical controller 33 by a signal.

【0013】左加工部の加工プログラム37Aは、図1
(C)に概略構成を示すように、複数の工程プログラム
52A〜54Aを有しており、かつ、これら各工程プロ
グラム52A〜54Aの工程終了時にワーク状態の区別
データを所定の記憶部38に上書きする書換え指令55
A〜57Aを有している。また、加工プログラム37A
の最初の工程プログラム52Aの記述部分よりも前の部
分に、条件判断手段となるワーク状態判別指令51Aを
有している。ワーク状態判別指令51Aは、記憶部38
のワーク状態区別データを読んで対応する工程プログラ
ム52A〜54Aに実行を移す指令である。前記記憶部
38は、プログラマブルマシンコントローラ34におけ
るレジスタ等で構成される。この記憶部38は、左加工
部用の記憶部38Aと右加工用の記憶部38Bとを有す
る。右加工部用の加工プログラム37Bは、左加工部用
の加工プログラム37Aと同様に、複数の工程プログラ
ム、ワーク状態判別指令、および書換え指令を有してい
る。
The machining program 37A for the left machining section is shown in FIG.
As shown in a schematic configuration in (C), a plurality of process programs 52A to 54A are provided, and at the end of each process program 52A to 54A, the work state discrimination data is overwritten in a predetermined storage unit 38. Rewrite command 55
A to 57A. Also, the machining program 37A
In the part before the description part of the first process program 52A, there is provided a work state determination command 51A as a condition determining means. The work state determination command 51A is stored in the storage unit 38.
Is a command to read the workpiece state distinction data and shift the execution to the corresponding process program 52A to 54A. The storage unit 38 includes a register and the like in the programmable machine controller 34. The storage unit 38 has a storage unit 38A for left processing and a storage unit 38B for right processing. The machining program 37B for the right machining section has a plurality of process programs, a work state determination command, and a rewrite command, similarly to the machining program 37A for the left machining section.

【0014】図4,図5は、これら左右の加工部1A,
1Bの加工プログラム37A,37Bを示す流れ図であ
り、図6はその概略のプログラムリストを示す。まず、
左加工プログラム37Aにつき、図4と共に説明する。
左加工プログラム37Aは、主軸3Aにワークを搬入す
る工程プログラム(ステップS3)と、実加工の工程プ
ログラム(S5)と、主軸間でワークの受渡しを行う動
作の工程プログラム(S7)とが順次設けられている。
各工程プログラム(S3,S5,S7)の後には、記憶
部38Aのワーク状態区別データを書き換える書換え指
令(S4,S6,S8)が設けてある。
FIGS. 4 and 5 show these left and right processing portions 1A,
1B is a flowchart showing the machining programs 37A and 37B of FIG. 1B, and FIG. 6 shows a schematic program list thereof. First,
The left machining program 37A will be described with reference to FIG.
The left machining program 37A is provided with a process program (Step S3) for loading a work into the spindle 3A, a process program (S5) for actual machining, and a process program (S7) for an operation for transferring a work between the spindles. Have been.
After each process program (S3, S5, S7), a rewrite command (S4, S6, S8) for rewriting the work state distinction data in the storage unit 38A is provided.

【0015】ワーク搬入工程の後の書換え指令(S4)
では、ワーク状態区別データを、ワーク搬入工程が完了
したワーク状態であることを示す区別データとして、
「1」の数値データに書き換える。実加工終了後の書換
え指令(S6)では、実加工が終了したワーク状態を示
す区別データとして「2」の数値データに書き換える。
主軸間のワーク受渡し後の書換え指令(S8)では、主
軸3Aにワークが無い状態を示す区別データとして
「0」の数値データに書き換える。なお、記憶部38A
の初期値は「0」としておく。
Rewrite command after work loading step (S4)
Then, the work state discrimination data is used as discrimination data indicating that the work state is a work state in which the work loading process has been completed.
Rewrite to numerical data of "1". In the rewrite command (S6) after the end of the actual machining, the numerical value data of "2" is rewritten as discrimination data indicating the work state in which the actual machining is completed.
In the rewrite command (S8) after the transfer of the work between the spindles, the data is rewritten to numerical data of "0" as discrimination data indicating that there is no work on the spindle 3A. The storage unit 38A
Is set to “0”.

【0016】左加工プログラム37Aが起動すると、ま
ず工作機械1の各起動条件、例えば機体カバーのドアの
開閉状態等をチェックし(ステップS1)、条件が充足
していると、次のワーク状態判別ステップ(S2)に進
む。ここで、記憶部38Aのデータを読み、ワーク状態
が「0」であると、主軸3Aは空状態であるから、その
まま次のステップであるワーク搬入の工程プログラム
(S3)に進む。前記判別ステップ(S2)で、ワーク
状態が「1」であった場合は、既に素材ワークWが主軸
3Aに把持されている機械状態であるため、実加工の工
程プログラム(S5)にジャンプする。ワーク状態が
「2」であった場合は、片面加工済みの第1完成品ワー
クWが主軸3Aに把持されている機械状態であるため、
主軸間ワーク受渡しの工程プログラム(7)までジャン
プする。
When the left machining program 37A is started, first, each starting condition of the machine tool 1, for example, the opening / closing state of the door of the machine cover is checked (step S1). If the condition is satisfied, the next work state determination is made. Proceed to step (S2). Here, the data in the storage unit 38A is read, and if the work state is "0", the spindle 3A is in an empty state, and the process directly proceeds to the next step, a work loading process program (S3). If the work state is "1" in the determination step (S2), the process jumps to the actual machining process program (S5) because the workpiece state is the mechanical state where the workpiece W is already gripped by the main shaft 3A. When the workpiece state is “2”, it is a mechanical state in which the first completed workpiece W that has been processed on one side is gripped by the spindle 3A.
The process jumps to the process program (7) for workpiece transfer between spindles.

【0017】図5に示す右加工プログラム37Bは、主
軸間でワークの受渡しを行う動作の工程プログラム(R
3)と、実加工の工程プログラム(R5)と、主軸3B
からワークを搬出する工程プログラム(R7)とが順次
設けられている。各工程プログラム(R3,R5,R
7)の後には、記憶部38Bのワーク状態区別データを
書き換える書換え指令(R4,R6,R8)が設けてあ
る。主軸間ワークの受渡し工程の後の書換え指令(S
4)では、片面加工済みワーク(第2素材ワーク)Wが
主軸3Bに把持されているワーク状態であることを示す
区別データとして、「3」の数値データに書き換える。
実加工終了後の書換え指令(R6)では、実加工が終了
した両面加工済み(第2完成品)のワークWが主軸3B
に把持されているワーク状態を示す区別データとして
「4」の数値データに書き換える。ワーク搬出工程の後
の書換え指令(R8)では、主軸3Bにワークが無い状
態を示す区別データとして「0」の数値データに書き換
える。記憶部38Bの初期値は「0」としておく。な
お、前記「3」,「4」の値は、各々「1」,「2」等
としても良いが、左加工との区別を明確にするために
「3」,「4」の値とした。
The right machining program 37B shown in FIG. 5 is a process program (R) for transferring a work between spindles.
3), the actual machining process program (R5), and the spindle 3B
And a process program (R7) for unloading the work from the. Each process program (R3, R5, R
After 7), a rewrite command (R4, R6, R8) for rewriting the work state distinction data in the storage unit 38B is provided. A rewrite command (S
In 4), numerical data of "3" is rewritten as discrimination data indicating that the single-side processed work (second material work) W is in the state of the work held by the spindle 3B.
According to the rewrite command (R6) after the end of the actual machining, the work W that has been subjected to the actual machining and has been subjected to the double-sided machining (second completed product) is rotated by the spindle 3B
Is rewritten to numerical data of "4" as distinction data indicating the state of the work being gripped. In the rewrite command (R8) after the work unloading step, the data is rewritten to numerical data of “0” as distinction data indicating that there is no work on the spindle 3B. The initial value of the storage unit 38B is set to “0”. The values of “3” and “4” may be “1”, “2”, etc., respectively, but they are “3” and “4” in order to clarify the distinction from left processing. .

【0018】右加工プログラム37Bが起動すると、左
加工部と同様に、工作機械1の各起動条件をチェックし
(R1)、条件が充足していると、次のワーク状態判別
ステップ(R2)に進む。ここで、記憶部38Bのデー
タを読み、ワーク状態が「0」であると、主軸3Bは空
状態であるから、そのまま次のステップである主軸間ワ
ーク受渡しの工程プログラム(R3)に進む。前記判別
ステップ(R2)で、ワーク状態が「3」であった場合
は、既に第2素材ワークWが主軸3Bに把持されている
機械状態であるため、実加工の工程プログラム(R5)
にジャンプする。ワーク状態が「4」であった場合は、
両面加工済みの第2完成品ワークWが主軸3Bに把持さ
れている機械状態であるため、ワーク搬出の工程プログ
ラム(R7)までジャンプする。
When the right machining program 37B is activated, each activation condition of the machine tool 1 is checked (R1) as in the left machining section. If the conditions are satisfied, the process proceeds to the next work state determination step (R2). move on. Here, the data in the storage unit 38B is read, and if the work state is "0", the spindle 3B is in an empty state, and therefore, the process directly proceeds to the next step, the step-to-spindle work delivery process program (R3). If the work state is "3" in the determination step (R2), it is a mechanical state in which the second material work W is already gripped by the main shaft 3B, and thus the actual machining process program (R5).
Jump to If the work state is "4",
Since the second completed product work W that has been subjected to the double-side processing is in a mechanical state in which the work W is gripped by the spindle 3B, the process jumps to the work unloading process program (R7).

【0019】このように、左右の加工部1A,1Bと
も、加工プログラム37A,37Bの実行開始時に、工
作機械1の状態がいずれの工程プログラム(S3,S
5,S7,R3,R5,R7)に対応する状態かを判別
して対応する工程プログラムから実行させるため、作業
者は、機械の状態を目視で確認する必要がなく、スター
トキーの操作等で実行指令を与えるだけの簡単な操作で
適切な再起動、すなわち加工の続行が行える。この場合
に、図6のプログラムリストで示すように、各加工プロ
グラム37A,37Bにおいて、条件判定後にジャンプ
で起動させる各工程プログラムS5,S7,R5,R7
は、そのシーケンス番号(図示の例では「N900
0」,(N9100」)は、固定値とし、変更不可能と
しておくことが望ましい。これにより、各工程プログラ
ムの内容を変更したときにも、プログラムミスが防止で
き、またプログラムの保守作業が容易に行える。また、
ワーク状態確認指令の定義付けが不要となる。また、こ
の実施形態では、加工プログラム37A,37Bは、各
工程が工作機械の状態により区切られており、詳しく
は、ワークの搬送工程、つまりワークが何処にあるか
と、ワークの加工状態(特に実加工状態の場合)とによ
って区切られているため、どのような加工状態のワーク
がどのような搬送工程にあっても、運転の途中復帰が容
易となる。
As described above, when the execution of the machining programs 37A and 37B is started, the state of the machine tool 1 in each of the left and right machining sections 1A and 1B is changed to one of the step programs (S3 and S3).
5, S7, R3, R5, R7) to determine whether the state corresponds to the state of the machine, and to execute the program from the corresponding process program. Therefore, the operator does not need to visually check the state of the machine. Appropriate restarting, that is, continuation of machining, can be performed by a simple operation merely by giving an execution command. In this case, as shown in the program list of FIG. 6, in each of the machining programs 37A and 37B, each of the process programs S5, S7, R5, and R7 to be started by the jump after the condition determination.
Is the sequence number (in the example shown, “N900
0 ”and (N9100”) are preferably fixed values and cannot be changed. Thus, even when the contents of each process program are changed, a program error can be prevented, and the maintenance work of the program can be easily performed. Also,
There is no need to define a work status check command. Further, in this embodiment, the machining programs 37A and 37B are configured such that each process is separated by the state of the machine tool. Specifically, the process of transporting the work, that is, where the work is located, and the machining state of the work (particularly, (In the case of the processing state), it is easy to return to the middle of the operation regardless of the work state of the processing state in any transport process.

【0020】なお、前記実施形態は、工作機械が旋盤で
ある場合につき説明したが、この発明は、他の種々の工
作機械の制御に適用でき、特に複数の加工部がある複雑
な工程の加工を行う工作機械に実用効果が大きい。
Although the above embodiment has been described in connection with the case where the machine tool is a lathe, the present invention can be applied to control of various other machine tools, and in particular, machining of a complicated process having a plurality of machining sections. Practical effects are great for machine tools that perform

【0021】[0021]

【発明の効果】この発明の工作機械制御装置は、複数の
工程プログラムからなる加工プログラムを実行して工作
機械を制御する制御手段を備え、この制御手段は、工程
プログラムの実行開始前の前記加工プログラムの実行開
始時に、前記工作機械の状態が前記いずれの工程プログ
ラムに対応する状態かを判別して対応する工程プログラ
ムから実行させる条件判断手段を有するものであるた
め、加工を中断した場合に、簡単な操作で適切な加工の
続行が行える。また、前記加工プログラムは、各工程プ
ログラムの工程終了時にワーク状態の区別データを所定
の記憶部に上書きする書換え指令を有し、前記条件判断
手段は、前記加工プログラムの最初の工程プログラムの
記述部分よりも前の部分に記述されたワーク状態判別指
令に従って前記記憶部のワーク状態区別データを読んで
対応する工程プログラムに実行を移すものとしても良
く、その場合は、簡単な構成で加工中断後の簡易な操作
による適切な加工の続行が行える。さらに、前記制御手
段は、前記条件判断手段の判断結果に対応する工程プロ
グラムの実行開始行に記述された固定のシーケンス番号
に向かってプログラム実行をジャンプさせるものとした
場合は、工程プログラムの内容変更等の保守を行って
も、プログラムミスが防止でき、プログラムの保守作業
が容易に行える。
The machine tool control device according to the present invention includes control means for controlling a machine tool by executing a machining program including a plurality of process programs, and the control means controls the machine tool before starting the execution of the process program. At the start of the execution of the program, since the machine tool has a condition determination means to determine whether the state of the machine tool corresponds to any of the process programs and to execute from the corresponding process program, when machining is interrupted, Proper processing can be continued with simple operations. Further, the machining program has a rewrite command for overwriting the work state discrimination data in a predetermined storage unit at the end of each process program step, and the condition determining means includes a description part of the first process program of the machining program. In accordance with the work state determination command described in the preceding part, the work state discrimination data in the storage unit may be read and the execution may be shifted to a corresponding process program. Appropriate machining can be continued by simple operations. Further, when the control means causes the program execution to jump to a fixed sequence number described in the execution start line of the process program corresponding to the determination result of the condition determining means, the content of the process program is changed. Even if such maintenance is performed, a program error can be prevented, and the maintenance work of the program can be easily performed.

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

【図1】この発明の一実施形態にかかる工作機械制御装
置を適用する対向2軸旋盤の平面図である。
FIG. 1 is a plan view of a facing two-axis lathe to which a machine tool control device according to an embodiment of the present invention is applied.

【図2】同2軸旋盤の工程説明図である。FIG. 2 is a process explanatory view of the two-axis lathe.

【図3】(A)は同工作機械制御装置の概念構成を示す
ブロック図、(B)はその記憶部の記憶内容とワーク状
態の関係を示す説明図、(C)は左加工プログラムの概
略構成の説明図である。
3A is a block diagram showing the conceptual configuration of the machine tool control device, FIG. 3B is an explanatory diagram showing the relationship between the contents stored in its storage unit and the state of the work, and FIG. It is explanatory drawing of a structure.

【図4】左加工プログラムの流れ図である。FIG. 4 is a flowchart of a left machining program.

【図5】右加工プログラムの流れ図である。FIG. 5 is a flowchart of a right machining program.

【図6】左および右加工プログラムの概略プログラムリ
ストの説明図である。
FIG. 6 is an explanatory diagram of a schematic program list of left and right machining programs.

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

1…工作機械 33…数値制御装置 1A…左加工部 34…プログラマ
ブルマシン 1B…右加工部 コントロー
ラ 2…ワーク搬送装置 35A…左加工部の
制御手段 3A,3B…主軸 35B…右加工部
の制御手段 4A,4B…タレット 36A,36B…
演算処理部 5A,5B…主軸チャック 37A…左加工部
の加工プログラム 6A,6B…主軸台 37B…右加工部
の加工プログラム 30…工作機械制御装置 38,38A,3
8B…記憶部 31…ワーク搬送手段制御装置 W…ワーク
DESCRIPTION OF SYMBOLS 1 ... Machine tool 33 ... Numerical control apparatus 1A ... Left processing part 34 ... Programmable machine 1B ... Right processing part Controller 2 ... Work transfer device 35A ... Control means of a left processing part 3A, 3B ... Spindle 35B ... Control means of a right processing part 4A, 4B ... turret 36A, 36B ...
Arithmetic processing unit 5A, 5B: spindle chuck 37A: machining program for left machining unit 6A, 6B: headstock 37B: machining program for right machining unit 30: machine tool controller 38, 38A, 3
8B: storage unit 31: work transfer means control device W: work

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数の工程プログラムからなる加工プロ
グラムを実行して工作機械を制御する制御手段を備え、
この制御手段は、前記工程プログラムの実行開始前の前
記加工プログラムの実行開始時に、前記工作機械の状態
が前記いずれの工程プログラムに対応する状態かを判別
して対応する工程プログラムから実行させる条件判断手
段を有するものとした工作機械制御装置。
1. A control means for controlling a machine tool by executing a machining program including a plurality of process programs,
This control means determines whether the state of the machine tool corresponds to any of the process programs at the start of the execution of the machining program before the execution of the process program, and determines a condition to be executed from the corresponding process program. A machine tool control device having means.
【請求項2】 前記加工プログラムは、各工程プログラ
ムの工程終了時にワーク状態の区別データを所定の記憶
部に上書きする書換え指令を有し、前記条件判断手段
は、前記加工プログラムの最初の工程プログラムの記述
部分よりも前の部分に記述されたワーク状態判別指令に
従って前記記憶部のワーク状態区別データを読んで対応
する工程プログラムに実行を移すものとした請求項1記
載の工作機械制御装置。
2. The machining program has a rewrite command for overwriting the work state discrimination data in a predetermined storage unit at the end of each process program step, and the condition determining means includes a first process program of the machining program. 2. The machine tool control device according to claim 1, wherein the work state discrimination data stored in the storage unit is read in accordance with a work state determination command described in a part preceding the description part, and execution is shifted to a corresponding process program.
【請求項3】 前記制御手段は、前記条件判断手段の判
断結果に対応する工程プログラムの実行開始行に記述さ
れた固定のシーケンス番号に向かってプログラム実行を
ジャンプさせる請求項1または請求項2記載の工作機械
制御装置。
3. The program execution device according to claim 1, wherein the control means causes the program execution to jump to a fixed sequence number described in an execution start line of the process program corresponding to a result of the determination by the condition determination means. Machine tool control equipment.
JP31270996A 1996-11-08 1996-11-08 Machine tool controller Pending JPH10143229A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31270996A JPH10143229A (en) 1996-11-08 1996-11-08 Machine tool controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31270996A JPH10143229A (en) 1996-11-08 1996-11-08 Machine tool controller

Publications (1)

Publication Number Publication Date
JPH10143229A true JPH10143229A (en) 1998-05-29

Family

ID=18032489

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31270996A Pending JPH10143229A (en) 1996-11-08 1996-11-08 Machine tool controller

Country Status (1)

Country Link
JP (1) JPH10143229A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003001547A (en) * 2001-06-22 2003-01-08 Murata Mach Ltd Control device for machine tool
JP2007185748A (en) * 2006-01-13 2007-07-26 Nakamura Tome Precision Ind Co Ltd Restarting method of machine tool
JP2008059549A (en) * 2006-08-04 2008-03-13 Citizen Holdings Co Ltd Work-machining apparatus control program, and work-machining apparatus controller for executing the control program
DE102015006443A1 (en) 2014-05-23 2015-11-26 Fanuc Corporation Numerical control with programmed function for a restart of the process

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003001547A (en) * 2001-06-22 2003-01-08 Murata Mach Ltd Control device for machine tool
JP2007185748A (en) * 2006-01-13 2007-07-26 Nakamura Tome Precision Ind Co Ltd Restarting method of machine tool
JP2008059549A (en) * 2006-08-04 2008-03-13 Citizen Holdings Co Ltd Work-machining apparatus control program, and work-machining apparatus controller for executing the control program
EP2047929A1 (en) * 2006-08-04 2009-04-15 Citizen Holdings Co., Ltd. Work machining apparatus control program and work machining apparatus controller for executing the control program
US8224477B2 (en) 2006-08-04 2012-07-17 Citizen Holdings Co., Ltd. Work machining apparatus control program and work machining apparatus control device for executing the control program
EP2047929A4 (en) * 2006-08-04 2013-07-31 Citizen Holdings Co Ltd Work machining apparatus control program and work machining apparatus controller for executing the control program
DE102015006443A1 (en) 2014-05-23 2015-11-26 Fanuc Corporation Numerical control with programmed function for a restart of the process
US9904279B2 (en) 2014-05-23 2018-02-27 Fanuc Corporation Numerical control device provided with programmed machining restart function
DE102015006443B4 (en) * 2014-05-23 2021-05-06 Fanuc Corporation Numerical control with programmed function for a machining restart

Similar Documents

Publication Publication Date Title
US5128857A (en) Sequence control apparatus having separate sequence memory and interlock condition memory
EP0267288B1 (en) Numerical control apparatus
EP0230471B1 (en) Manual operation system for machine controlled by numerical control unit
KR930010589B1 (en) Cutting tool stop control apparatus
JP4947534B2 (en) Machine tool and method of operating machine tool
JPH10143229A (en) Machine tool controller
JP4859467B2 (en) How to restart a 2-spindle facing lathe
JP3893334B2 (en) Multi-system numerical controller
US7136718B2 (en) Numerical control apparatus
JPH04269152A (en) Control unit for internal circle cutting in numerical control machine tool
JP4975555B2 (en) Machine tool operation control method and machine tool
JPH058141A (en) Automatic preparation device for nc control lathe
JPH04129645A (en) Simultaneous processing method for numerical control lathe
JP2007128231A (en) Numerical control machine tool
JP2584225B2 (en) Numerical control unit
JP2677163B2 (en) Method for restarting operation of loader on lathe
WO2023199408A1 (en) Numerical control device, and computer-readable storage medium
JP4208600B2 (en) NC machine tool
KR19990062098A (en) Feed axis control method of numerical control machine tool
JP2670148B2 (en) Numerical control unit
JPH11285950A (en) Machine tool
US5204810A (en) Nc sentence creation system
JPH05131339A (en) Sample cutting device
JP2024057788A (en) Machine Tool Systems
JP3641285B2 (en) Interactive raw nail molding machine