JPH08320714A - Method and device for synchronous control in numerical controller - Google Patents

Method and device for synchronous control in numerical controller

Info

Publication number
JPH08320714A
JPH08320714A JP6333996A JP6333996A JPH08320714A JP H08320714 A JPH08320714 A JP H08320714A JP 6333996 A JP6333996 A JP 6333996A JP 6333996 A JP6333996 A JP 6333996A JP H08320714 A JPH08320714 A JP H08320714A
Authority
JP
Japan
Prior art keywords
axis
synchronous
synchronization
movement
command
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.)
Granted
Application number
JP6333996A
Other languages
Japanese (ja)
Other versions
JP3428804B2 (en
Inventor
Shiyouichi Sagazaki
正一 嵯峨崎
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP06333996A priority Critical patent/JP3428804B2/en
Publication of JPH08320714A publication Critical patent/JPH08320714A/en
Application granted granted Critical
Publication of JP3428804B2 publication Critical patent/JP3428804B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE: To synchronize a synchronous shaft at a stop with a reference shaft in movement so as to shorten the cycle time of machining by commanding the synchronous shaft the remaining distance of the reference shaft at the point of time when a shaft in-movement synchronization start signal from a sequence circuit is detected. CONSTITUTION: When the reference shaft is moving and the synchronous shaft is stopping, the remaining distance command means 34 of the interpolation processing part 30 of the numerical controller calculates the distance (remaining distance) from the current machine position of the reference shaft in movement to a command block end point and passes the calculation result as a position command to an interpolation processing means 31. The interpolation processing means 31 outputs interpolation data to a shaft control part 60 corresponding to the synchronous shaft. Then the acceleration/deceleration processing means 61 of the shaft control part 60 processing interpolation data and sends the result as a servo movement command from a shaft movement quantity output circuit 70 to a servo control part 80. According to the command, the servo control part 80 drives a servo motor 90 corresponding to the synchronous shaft.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】この発明は、数値制御装置に
おける同期制御方法および装置に関し、特に多軸多系統
の制御を行う数値制御装置における同期制御に関するも
のであり、さらに詳細には、一つの可動軸を基準軸に、
他の少なくとも一つの可動軸を同期軸として、少なくと
も2軸の可動軸を同期制御する数値制御装置における同
期制御方法および装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a synchronous control method and apparatus in a numerical control device, and more particularly to a synchronous control method in a numerical control device for controlling multiple axes and multiple systems. With the axis as the reference axis,
The present invention relates to a synchronous control method and device in a numerical controller for synchronously controlling at least two movable shafts with at least one other movable shaft as a synchronous shaft.

【0002】[0002]

【従来の技術】図45は同期制御を実行する従来の数値
制御装置を示している。数値制御装置1は、各系統毎に
設けられた加工プログラム解析処理部10と、各系統の
加工プログラムを格納するメモリ20と、パラメータ設
定部21と、画面表示処理部22と、補間処理手段31
と基準軸・同期軸管理手段32とを有する補間処理部3
0と、機械制御信号処理部50と、シーケンス回路をな
すラダー回路部55と、各可動軸毎に設けられ加減速処
理手段61と停止確認手段62とを含む各可動軸毎の軸
制御部60と、軸移動量出力回路70とを有している。
2. Description of the Related Art FIG. 45 shows a conventional numerical controller for executing synchronous control. The numerical control device 1 includes a machining program analysis processing unit 10 provided for each system, a memory 20 for storing a machining program of each system, a parameter setting unit 21, a screen display processing unit 22, and an interpolation processing unit 31.
And an interpolation processing unit 3 having a reference axis / synchronous axis management means 32.
0, a machine control signal processing unit 50, a ladder circuit unit 55 forming a sequence circuit, an acceleration / deceleration processing unit 61 and a stop confirmation unit 62 provided for each movable shaft, and an axis control unit 60 for each movable shaft. And an axis movement amount output circuit 70.

【0003】軸移動量出力回路70には各可動軸のサー
ボ制御部80が接続され、また各サーボ制御部80には
各可動軸のサーボモータ90が接続されている。なお、
図には示されていないが、サーボモータ90は位置検出
用のパルスゼネレータ付きのものであり、サーボ制御部
80はパルスゼネレータよりの位置フィードバック信号
による位置ループを有する。
A servo control section 80 for each movable axis is connected to the axis movement amount output circuit 70, and a servo motor 90 for each movable axis is connected to each servo control section 80. In addition,
Although not shown in the figure, the servo motor 90 has a pulse generator for position detection, and the servo control unit 80 has a position loop based on a position feedback signal from the pulse generator.

【0004】この数値制御装置では、テープリーダ等か
ら読み込まれた各系統の加工プログラムはメモリ20に
格納される。加工プログラムを実行する際には、メモリ
20から1ブロックずつ加工プログラムを読み出し、各
系統毎に設けられている加工プログラム解析処理部10
によって加工プログラムを解析処理し、各ブロックの終
点位置等を算出する。この終点位置を補間処理部30の
補間処理手段31によって処理し、終点位置を各可動軸
の単位時間当たりの移動指令に分配する。
In this numerical controller, the machining programs of each system read from a tape reader or the like are stored in the memory 20. When executing the machining program, the machining program is read from the memory 20 block by block and the machining program analysis processing unit 10 provided for each system is read.
The machining program is analyzed to calculate the end point position of each block. This end point position is processed by the interpolation processing means 31 of the interpolation processing unit 30, and the end point position is distributed to the movement command per unit time of each movable axis.

【0005】この移動指令は軸制御部60の加減速処理
手段61によって予め指定された加減速パターンに従っ
て加減速を考慮した単位時間当たりの移動指令に変換さ
れ、軸移動量出力回路70よりサーボ制御部80へサー
ボ移動指令として出力される。
This movement command is converted by the acceleration / deceleration processing means 61 of the axis control unit 60 into a movement command per unit time in consideration of acceleration / deceleration in accordance with an acceleration / deceleration pattern designated in advance, and the axis movement amount output circuit 70 performs servo control. It is output to the unit 80 as a servo movement command.

【0006】このサーボ移動指令によりサーボ制御部8
0は図示されていない工作機械に取り付けられているサ
ーボモータ90に対して回転指令を与える。
The servo control unit 8 receives this servo movement command.
0 gives a rotation command to a servomotor 90 attached to a machine tool (not shown).

【0007】また、切削油のオン・オフ等の機械信号は
機械制御を記述するラダー回路部55を介して機械制御
信号処理部50で処理され、処理結果などは補間処理部
30に伝えられる。
Further, a machine signal such as on / off of cutting oil is processed by the machine control signal processing section 50 via a ladder circuit section 55 which describes machine control, and a processing result etc. is transmitted to the interpolation processing section 30.

【0008】図示していないキー入力手段によって設定
された可動軸の加減速時定数等はパラメータ設定部21
が処理してメモリ20に格納される。このようにして格
納されたパラメータ等は画面表示処理部22によって図
示していない表示器に表示されるので、パラメータ等の
内容を確認することができる。
The parameter setting unit 21 determines the acceleration / deceleration time constant of the movable shaft set by a key input means (not shown).
Are processed and stored in the memory 20. The parameters etc. thus stored are displayed on the display (not shown) by the screen display processing unit 22, so that the contents of the parameters etc. can be confirmed.

【0009】次に同期制御について説明する。図46は
上述のような数値制御装置1により同期制御される2系
統2軸の工作機械を示している。各系統は、X軸と、該
X軸に直交するZ軸から構成される。各々の系統のX軸
同士、各々の系統のZ軸同士は平行軸であり、ここで
は、第1系統のX軸と第2系統のX軸を同期制御させる
ことを考える。図47はこの場合の加工プログラムの例
を示している。
Next, the synchronization control will be described. FIG. 46 shows a two-system, two-axis machine tool that is synchronously controlled by the numerical controller 1 as described above. Each system is composed of an X axis and a Z axis orthogonal to the X axis. The X-axis of each system and the Z-axis of each system are parallel axes, and here it is considered that the X-axis of the first system and the X-axis of the second system are synchronously controlled. FIG. 47 shows an example of the machining program in this case.

【0010】同期制御の同期開始制御について図48を
参照して説明する。
The synchronization start control of the synchronization control will be described with reference to FIG.

【0011】まず、ステップS1001では、同期制御
させたい可動軸の移動を停止させるために、同期制御さ
せたい可動軸を含む系統(第1系統と第2系統)の加工
プログラム$1、$2によって系統間待ち合わせ指令
“!2L1;”と“!1L1;”を指令する。この指令
は加工プログラム解析処理部10と補間処理部30で処
理され、軸制御部60に指令される。ステップS100
2では、各々指令された系統に所属している可動軸が、
前ブロックの加工プログラム指令が終了して停止したか
を軸制御部60の停止確認手段62で確認する。
First, in step S1001, in order to stop the movement of the movable axis to be synchronously controlled, the machining programs $ 1 and $ 2 of the system (the first system and the second system) including the movable shaft to be synchronously controlled are executed. Inter-system queuing commands "! 2L1;" and "! 1L1;" are issued. This command is processed by the machining program analysis processing unit 10 and the interpolation processing unit 30, and is commanded to the axis control unit 60. Step S100
In 2, the movable axes that belong to each commanded system,
The stop confirmation means 62 of the axis control unit 60 confirms whether or not the machining program command of the previous block has ended and stopped.

【0012】ステップS1003では、第1系統の加工
プログラム$1で、たとえば第2系統のX軸(X2)を
同期軸、第1系統のX軸(X1)を基準軸として同期さ
せる同期制指令“G125X2=X1;”を指令するこ
とによって、これを加工プログラム解析処理部10が解
析処理し、第2系統のX軸(X2)を同期軸に、第1系
統のX軸(X1)を基準軸とすると云う情報をメモリ2
0に格納する。
In step S1003, in the machining program $ 1 of the first system, for example, a synchronization control command "Synchronize" with the X axis (X2) of the second system as the synchronization axis and the X axis (X1) of the first system as the reference axis. G125X2 = X1; ", the machining program analysis processing unit 10 analyzes this, and the X-axis (X2) of the second system is the synchronous axis, and the X-axis (X1) of the first system is the reference axis. Information that is said to be in memory 2
Store in 0.

【0013】ステップS1004では、補間処理部30
の基準軸・同期軸管理手段32がメモリ20に格納され
た同期制御指令に関するデータを読み出し、第1系統の
X軸と第2系統のX軸とが平行軸であるか否か、換言す
れば同期制御可能な軸の組み合わせであるか否かをチェ
ックする。
In step S1004, the interpolation processing unit 30
The reference axis / synchronous axis management means 32 reads the data regarding the synchronous control command stored in the memory 20, and whether or not the X axis of the first system and the X axis of the second system are parallel axes. Check if the combination of axes can be controlled synchronously.

【0014】同期制御可能な軸の組み合わせでない場合
には、ステップS1009にジャンプしてアラーム処理
を行い、処理を終了する。
If it is not a combination of axes that can be controlled synchronously, the process jumps to step S1009 to perform alarm processing, and the processing ends.

【0015】同期制御可能な軸の組み合わせである場合
には、ステップS1005へ進み、ステップS1005
では、基準軸・同期軸管理手段32が、加工プログラム
解析処理部10から基準軸に対する移動指令が入力され
た場合に補間処理手段31が基準軸の軸制御部60に対
して出力する補間データと同じ補間データを同期軸の軸
制御部60に対しても出力するように指示する。
If the combination of axes can be controlled synchronously, the process proceeds to step S1005 and step S1005.
Then, the reference axis / synchronous axis management means 32 and the interpolation data which the interpolation processing means 31 outputs to the axis control section 60 of the reference axis when the movement command for the reference axis is input from the machining program analysis processing section 10 The same interpolation data is instructed to be output also to the axis control unit 60 of the synchronous axis.

【0016】ステップS1006では、基準軸・同期軸
管理手段32がメモリ20に格納された基準軸と同期軸
の機械座標の位置関係を読み出し、同期軸の機械位置を
基準軸の座標系で計算するように補間処理手段31に指
示する。
In step S1006, the reference axis / synchronous axis management means 32 reads the positional relationship between the reference axis and the machine coordinate of the sync axis stored in the memory 20, and calculates the machine position of the sync axis in the coordinate system of the reference axis. The interpolation processing means 31 is instructed to do so.

【0017】ステップS1007では、加工プログラム
$1で基準軸の移動指令“G01X1.0;”が指令さ
れると、加減速処理部61は基準軸のサーボ移動指令を
基準軸のサーボ制御部80と同期軸となるサーボ制御部
80とに送信する。これによりステップS1008で
は、基準軸と同期軸のサーボ制御部80がともに基準軸
のサーボ移動指令に従って基準軸と同期軸のサーボモー
タ90を駆動する。
At step S1007, when the machining program $ 1 issues a movement command "G01X1.0;" for the reference axis, the acceleration / deceleration processing unit 61 sends the reference axis servo movement command to the reference axis servo control unit 80. It is transmitted to the servo control unit 80 which serves as a synchronous axis. As a result, in step S1008, both the reference axis and synchronous axis servo control units 80 drive the reference axis and synchronous axis servo motors 90 in accordance with the reference axis servo movement command.

【0018】次に同期解除制御について図49を参照し
て説明する。
Next, the sync release control will be described with reference to FIG.

【0019】ステップS1010では、同期制御中の移
動を停止させるために、基準軸と同期軸を含む系統の加
工プログラム$1、$2で系統間待ち合わせ指令“!2
L2;”と“!1L2;”を指令する。この指令は加工
プログラム解析処理部10と補間処理部30で処理さ
れ、軸制御部60に指令される。ステップS1011で
は、各々指令された系統に所属している可動軸が前ブロ
ックの加工プログラム指令が終了して停止したかを停止
確認手段62によって確認する。
In step S1010, in order to stop the movement during the synchronous control, the inter-system waiting command "! 2" is issued by the machining programs $ 1 and $ 2 of the system including the reference axis and the synchronous axis.
L2; "and"! 1L2; "is commanded. This command is processed by the machining program analysis processing unit 10 and the interpolation processing unit 30 and is commanded by the axis control unit 60. In step S1011, the movable axes belonging to each commanded system. Is confirmed by the stop confirming means 62 whether or not the machining program command of the previous block has ended and the machining has stopped.

【0020】ステップS1012では、第1系統の加工
プログラム$1で同期解除指令“G125X2;”を加
工プログラム解析処理手段10で解析し、ステップS1
013では、加工プログラム解析処理手段10からの通
知を受けて基準軸・同期軸管理手段32が加工プログラ
ム解析処理部10から基準軸に対する指令が入力された
場合に補間処理手段31が基準軸の軸制御部60に対し
て出力する補間データを同期軸の軸制御部60に対して
も出力することをキャンセルするように指示する。ま
た、基準軸・同期軸管理手段32は計算されていた基準
軸の座標系を同期軸の座標系に戻す。
In step S1012, the machining program analysis processing means 10 analyzes the synchronization release command "G125X2;" in the machining program $ 1 of the first system, and then in step S1.
In 013, when the reference axis / synchronous axis management means 32 receives a notification from the machining program analysis processing means 10 and a command for the reference axis is input from the machining program analysis processing portion 10, the interpolation processing means 31 causes the axis of the reference axis. The control unit 60 is instructed to cancel output of the interpolation data output to the axis control unit 60 of the synchronous axis. Further, the reference axis / synchronous axis managing means 32 restores the calculated coordinate system of the reference axis to the coordinate system of the synchronous axis.

【0021】[0021]

【発明が解決しようとする課題】従来の数値制御装置に
おける同期制御は、上述のような手順で行われているた
め、同期開始前に基準軸となる可動軸と同期軸となる可
動軸とを必ず停止させる必要がある。このため、加工の
サイクルタイムが長くなり、加工に無駄時間が発生して
いた。また、可動軸の停止に系統間待ち合わせの加工プ
ログラム指令を使用するため、基準軸となる可動軸と同
期軸となる可動軸以外の可動軸も停止してしまい、加工
に更に無駄時間が生じていた。
Since the synchronous control in the conventional numerical control device is performed by the above-described procedure, the movable shaft serving as the reference axis and the movable shaft serving as the synchronous shaft are set before the start of synchronization. Must stop. For this reason, the cycle time of processing becomes long, and there is a dead time in processing. In addition, since the machining program command for inter-system waiting is used to stop the movable axis, the movable axes other than the movable axis that serves as the reference axis and the synchronous axis also stops, resulting in additional dead time in machining. It was

【0022】また、従来の数値制御装置における同期制
御では、多軸多系統制御の機械において、加工プログラ
ムにプログラムミスがあると、そのプログラムミスに起
因して第1系統に所属する工具と第2系統に所属する工
具が干渉するなどの問題を未然に回避できない。
Further, in the synchronous control of the conventional numerical control device, in a multi-axis / multi-system control machine, if there is a program error in the machining program, the tool and the second tool belonging to the first system are caused due to the program error. Problems such as interference of tools belonging to the grid cannot be avoided in advance.

【0023】また、従来の数値制御装置における同期制
御では、基準軸と同期軸が同期して移動しているとき
に、同期軸がストロークエンド等のアラームで停止した
場合、基準軸も停止するため、加工がストップするなど
の問題があった。
Further, in the synchronous control in the conventional numerical control device, when the reference axis and the synchronization axis move synchronously, if the synchronization axis stops due to an alarm such as a stroke end, the reference axis also stops. However, there was a problem that processing stopped.

【0024】この発明は、上記のような問題点を解決す
るためになされたもので、同期制御を行う可動軸のうち
基準軸が移動中であっても、停止中の同期軸が同期制御
開始および同期制御解除をすることにより加工の無駄時
間を低減でき、また可動軸同士の干渉回避を容易に実現
でき、また同期軸がアラーム等で停止しても加工がスト
ップすることがなく、加工が続行され得るように改善さ
れた数値制御装置における同期制御方法、およびこの方
法の実施に使用される同期制御装置を得ることを目的と
している。
The present invention has been made in order to solve the above problems, and even if the reference axis is moving among the movable axes for synchronous control, the synchronous control that is stopped starts synchronous control. Also, by canceling the synchronous control, the dead time of machining can be reduced, interference between movable axes can be easily avoided, and machining does not stop even if the synchronous axis stops due to an alarm, etc. It is an object to obtain a synchronous control method in a numerical control device which is improved so that it can be continued, and a synchronous control device used in the implementation of this method.

【0025】[0025]

【課題を解決するための手段】上述のような目的を達成
するために、この発明による数値制御装置における同期
制御方法は、一つの可動軸を基準軸に、他の少なくとも
一つの可動軸を同期軸として、少なくとも2軸の可動軸
を同期制御する数値制御装置における同期制御方法にお
いて、加工プログラムに記述された軸移動中同期制御モ
ード指令を解析後、基準軸の移動下においてシーケンス
回路より同期制御開始を意味する軸移動中同期開始信号
を検出した時点で当該基準軸の残距離を計算し、当該残
距離を同期軸の位置指令として同期軸を移動させ、基準
軸と同期軸の停止で同期完了を判定し、シーケンス回路
より同期制御解除を意味する軸移動中同期解除信号を入
力、あるいは指定された同期解除位置より決まる減速開
始位置に同期軸が移動するまで基準軸の移動指令で基準
軸と同期軸とを同期移動させ、シーケンス回路より前記
軸移動中同期解除信号を入力、あるいは前記減速開始位
置に同期軸が移動することによって同期軸の減速を開始
し、同期軸を停止させて同期制御を解除するものであ
る。
In order to achieve the above-mentioned object, a synchronous control method in a numerical control device according to the present invention is such that one movable shaft is a reference shaft and at least another movable shaft is synchronized. In a synchronous control method in a numerical control device for synchronously controlling at least two movable axes as axes, a synchronous control mode command during axis movement described in a machining program is analyzed, and then synchronous control is performed by a sequence circuit under movement of a reference axis. When the synchronization start signal is detected during axis movement, which means start, the remaining distance of the reference axis is calculated, the synchronous axis is moved using the remaining distance as the position command for the synchronization axis, and the reference axis and the synchronization axis are stopped to synchronize. Judging completion, input a sync release signal during axis movement that means sync control release from the sequence circuit, or place the sync axis at the deceleration start position determined by the specified sync release position. Until the actuator moves, the reference axis and synchronous axis are moved synchronously with the reference axis movement command, the synchronization release signal is input from the sequence circuit while the axis is moving, or the synchronous axis moves to the deceleration start position to decelerate the synchronous axis. Is started, the synchronous axis is stopped, and the synchronous control is released.

【0026】この発明による数値制御装置における同期
制御方法では、シーケンス回路からの軸移動中同期開始
信号を検出した時点の基準軸の残距離を同期軸に指令す
ることにより、移動中の基準軸に停止中の同期軸を同期
させることができ、シーケンス回路より軸移動中同期解
除信号を入力、あるいは減速開始位置に同期軸が移動す
ることによって同期軸の減速を開始し、基準軸が移動中
であっても同期軸を停止させて同期制御解除させること
ができる。
In the synchronization control method in the numerical controller according to the present invention, the remaining distance of the reference axis at the time of detecting the synchronization start signal during axis movement from the sequence circuit is instructed to the synchronization axis so that the reference axis during movement is set. The synchronized axis that is stopped can be synchronized, the synchronous release signal is input from the sequence circuit while the axis is moving, or the synchronous axis starts decelerating when the synchronous axis moves to the deceleration start position, and the reference axis is moving. Even if there is, the synchronous axis can be stopped and the synchronous control can be released.

【0027】つぎの発明による数値制御装置における同
期制御方法は、加工プログラムで指定された同期制御対
象の可動軸のうち、シーケンス回路より軸移動中同期開
始信号が入力された時点で、移動中の軸を基準軸に、停
止中の軸を同期軸と自動判定するものである。
In the synchronous control method for the numerical controller according to the next invention, among the movable axes to be synchronously controlled, which are designated by the machining program, the synchronous movement is started when the synchronous movement start signal is input from the sequence circuit. The axis is automatically determined as the reference axis and the stopped axis as the synchronous axis.

【0028】この発明による数値制御装置における同期
制御方法では、加工プログラムで指定された同期制御対
象の可動軸のうち、シーケンス回路より軸移動中同期開
始信号が入力された時点で、移動中の軸が基準軸に、停
止中の軸が同期軸と自動判定され、基準軸と同期軸の設
定が状況に応じて自動的に行われる。
In the synchronous control method in the numerical controller according to the present invention, among the movable axes to be synchronously controlled which are designated by the machining program, the axis which is moving at the time when the synchronizing signal for starting axis movement is inputted from the sequence circuit. Is automatically determined as the reference axis and the stopped axis is the synchronous axis, and the reference axis and the synchronous axis are automatically set according to the situation.

【0029】つぎの発明による数値制御装置における同
期制御方法は、一つの可動軸を基準軸に、他の少なくと
も一つの可動軸を同期軸として、少なくとも2軸の可動
軸を同期制御する数値制御装置における同期制御方法に
おいて、加工プログラムに記述された軸移動中同期制御
モード指令を解析後、基準軸の移動下において現在の基
準軸と同期軸の相対距離を計算し、この相対距離と加工
プログラムで指定された同期距離と比較し、相対距離と
同期距離とが一致した時点で、基準軸の加減速特性およ
びサーボ制御特性と同じ加減速特性およびサーボ制御特
性をもって同期軸に移動指令を与えることで、停止中の
同期軸を移動中の基準軸に同期させ、同期完了後は同期
軸と基準軸を加工プログラムで指定された同期距離を保
ちながら移動させ、シーケンス回路より前記軸移動中同
期解除信号を入力、あるいは指定された同期解除位置よ
り決まる減速開始位置に同期軸が移動することによって
同期軸の減速を開始し、同期軸を停止させて同期制御を
解除するものである。
A synchronous control method in a numerical control device according to the next invention is a numerical control device for synchronously controlling at least two movable shafts with one movable shaft as a reference shaft and at least one other movable shaft as a synchronous shaft. In the synchronous control method in, after analyzing the axis movement synchronous control mode command described in the machining program, calculate the relative distance between the current reference axis and the synchronous axis under the movement of the reference axis, and use this relative distance and the machining program. By comparing with the specified synchronous distance, and when the relative distance and the synchronous distance match, the movement command is given to the synchronous axis with the same acceleration / deceleration characteristics and servo control characteristics as the reference axis acceleration / deceleration characteristics and servo control characteristics. , Synchronize the stopped synchronous axis with the moving reference axis, and after the synchronization is completed, move the synchronous axis and the reference axis while maintaining the synchronization distance specified in the machining program. When the synchronous release signal is input from the sequence circuit during the axis movement, or the synchronous axis moves to the deceleration start position determined by the specified synchronous release position, the synchronous axis starts decelerating, and the synchronous axis is stopped to perform synchronous control. It is to be released.

【0030】この発明による数値制御装置における同期
制御方法では、軸移動中同期制御モード指令が解析され
ると、移動中の基準軸と同期軸との現在の相対距離の計
算を行い、相対距離と同期距離とが一致した時点で、同
期軸が基準軸の加減速特性およびサーボ制御特性と同じ
加減速特性およびサーボ制御特性をもって移動を開始
し、同期軸が移動中の基準軸に同期する。同期完了後は
同期軸は基準軸に対して同期距離を保ちながら移動す
る。シーケンス回路より軸移動中同期解除信号を入力、
あるいは減速開始位置に同期軸が移動すると、同期軸が
減速を開始し、基準軸が移動中であっても同期軸を停止
させて同期制御を解除させることができる。
In the synchronous control method in the numerical controller according to the present invention, when the synchronous control mode command during axis movement is analyzed, the current relative distance between the moving reference axis and the synchronous axis is calculated, and the relative distance is calculated. When the synchronization distance and the synchronization distance match, the synchronous axis starts moving with the same acceleration / deceleration characteristics and servo control characteristics as the reference axis, and the synchronous axis synchronizes with the moving reference axis. After the synchronization is completed, the synchronization axis moves while maintaining the synchronization distance with respect to the reference axis. Input the sync release signal during axis movement from the sequence circuit,
Alternatively, when the synchronous axis moves to the deceleration start position, the synchronous axis starts decelerating, and even if the reference axis is moving, the synchronous axis can be stopped and the synchronous control can be released.

【0031】つぎの発明による数値制御装置における同
期制御方法は、前記相対距離が前記同期距離と一致した
時点から同期軸の加減速時定数が示す時間とサーボ制御
系のゲインの逆数が示す時間との合計時間が経過した時
点をもって基準軸と同期軸の同期完了を判定するもので
ある。
In the synchronous control method in the numerical controller according to the next invention, the time indicated by the acceleration / deceleration time constant of the synchronous axis and the time indicated by the reciprocal of the gain of the servo control system from the time when the relative distance matches the synchronous distance. The completion of synchronization between the reference axis and the synchronization axis is determined when the total time of (3) has elapsed.

【0032】この発明による数値制御装置における同期
制御方法では、基準軸と同期軸の同期完了の判定が、相
対距離と同期距離とが一致した時点から同期軸の加減速
時定数が示す時間とサーボ制御系のゲインの逆数が示す
時間との合計時間が経過した時点をもって時間計測によ
り行われる。
In the synchronous control method in the numerical controller according to the present invention, the completion of synchronization between the reference axis and the synchronous axis is judged from the time point when the relative distance and the synchronous distance are coincident with the time and servo indicated by the acceleration / deceleration time constant of the synchronous axis. The time measurement is performed at the time when the total time with the time indicated by the reciprocal of the gain of the control system has elapsed.

【0033】つぎの発明による数値制御装置における同
期制御方法は、指定された同期解除位置と軸送り速度と
加減速特性から同期軸の減速開始位置を計算し、同期軸
が減速開始位置に到達した時点で同期軸を減速させ、指
定された同期解除位置に同期軸を停止させるものであ
る。
In the synchronous control method in the numerical controller according to the next invention, the deceleration start position of the synchronous axis is calculated from the specified desynchronization position, axis feed speed and acceleration / deceleration characteristic, and the synchronous axis reaches the deceleration start position. At this point, the synchronous axis is decelerated and stopped at the specified synchronous release position.

【0034】この発明による数値制御装置における同期
制御方法では、指定された同期解除位置と軸送り速度と
加減速特性から、同期軸の減速開始位置が計算され、同
期軸が減速開始位置に到達した時点で同期軸を減速させ
ることで、指定された同期解除位置に同期軸が停止す
る。
In the synchronous control method in the numerical controller according to the present invention, the deceleration start position of the synchronous axis is calculated from the specified desynchronization position, axis feed speed and acceleration / deceleration characteristic, and the synchronous axis reaches the deceleration start position. By decelerating the sync axis at this point, the sync axis stops at the specified sync release position.

【0035】つぎの発明による数値制御装置における同
期制御方法は、前記同期解除位置を加工プログラムに記
述することにより加工プログラムによって指定するもの
である。
In the synchronization control method in the numerical controller according to the next invention, the synchronization release position is specified in the machining program by describing it in the machining program.

【0036】この発明による数値制御装置における同期
制御方法では、同期解除位置を加工プログラムの記述に
よって任意に指定できる。
In the synchronization control method in the numerical controller according to the present invention, the synchronization release position can be arbitrarily designated by the description of the machining program.

【0037】つぎの発明による数値制御装置における同
期制御方法は、軸モータの電流値などからモータ負荷を
検出し、加工プログラムに記述された切削指令と検出し
たモータ負荷とから切削中であるか否かを判断し、その
判断が切削中より非切削中に変遷した時点の座標値に基
づいて同期解除位置を指定するものである。
A synchronous control method in a numerical controller according to the next invention detects a motor load from a current value of a shaft motor and the like, and determines whether or not cutting is being performed based on a cutting command described in a machining program and the detected motor load. It is determined whether or not, and the synchronization release position is designated based on the coordinate value at the time when the determination changes from during cutting to during non-cutting.

【0038】この発明による数値制御装置における同期
制御方法では、加工プログラムに記述された切削指令と
検出したモータ負荷とから切削中であるか否かを判断さ
れ、その判断が切削中より非切削中に変遷した時点の座
標値に基づいて同期解除位置を指定する。これにより同
期解除位置は各切削指令毎に切り込み開始位置に応じて
自動修正設定される。
In the synchronous control method in the numerical controller according to the present invention, it is judged from the cutting command described in the machining program and the detected motor load whether or not the cutting is being performed, and the judgment is that the cutting is not being performed but the cutting is not being performed. The sync release position is specified based on the coordinate value at the time of transition to. As a result, the synchronization release position is automatically corrected and set according to the cutting start position for each cutting command.

【0039】つぎの発明による数値制御装置における同
期制御方法は、シーケンス回路から軸移動中同期開始信
号が入力された時点の同期軸の座標位置あるいは加工プ
ログラムにより指定された同期開始位置を記憶し、記憶
された前記座標位置あるいは前記同期開始位置を同期解
除位置とし、この同期解除位置と軸送り速度と加減速特
性から同期軸の減速開始位置を計算し、同期軸が前記減
速開始位置に到達した時点で同期軸を減速させ、前記同
期解除位置に同期軸を停止させるものである。
In the synchronous control method in the numerical controller according to the next invention, the coordinate position of the synchronous axis at the time when the synchronous start signal during axis movement is input from the sequence circuit or the synchronous start position designated by the machining program is stored, The stored coordinate position or the synchronization start position is set as the synchronization release position, the deceleration start position of the synchronous axis is calculated from the synchronization release position, the axis feed speed, and the acceleration / deceleration characteristics, and the synchronous axis reaches the deceleration start position. At this time point, the synchronous axis is decelerated, and the synchronous axis is stopped at the sync release position.

【0040】この発明による数値制御装置における同期
制御方法では、シーケンス回路から軸移動中同期開始信
号が入力された時点の同期軸の座標位置あるいは加工プ
ログラムにより指定された同期開始位置がつぎの同期解
除位置に自動設定され、この同期解除位置と軸送り速度
と加減速特性から、同期軸の減速開始位置が計算され、
同期軸が減速開始位置に到達した時点で同期軸を減速さ
せることで、同期解除位置に同期軸が停止する。
In the synchronous control method in the numerical controller according to the present invention, the coordinate position of the synchronous axis at the time when the synchronous start signal during axis movement is input from the sequence circuit or the synchronous start position designated by the machining program is the next synchronous release. The position is automatically set, and the deceleration start position of the synchronous axis is calculated from the sync release position, axis feed speed, and acceleration / deceleration characteristics.
By decelerating the synchronous axis when the synchronous axis reaches the deceleration start position, the synchronous axis stops at the desynchronization position.

【0041】つぎの発明による数値制御装置における同
期制御方法は、同期軸がストロークエンド等のアラーム
で停止した場合には軸移動中同期制御を一時解除して基
準軸の移動を続行し、その後に再び同期条件が成立した
場合に軸移動中同期制御を再開するものである。
In the synchronous control method in the numerical controller according to the next invention, when the synchronous axis is stopped due to an alarm such as a stroke end, the synchronous control is temporarily canceled during the movement of the axis, and the movement of the reference axis is continued. When the synchronization condition is satisfied again, the synchronization control during axis movement is restarted.

【0042】この発明による数値制御装置における同期
制御方法では、同期軸がストロークエンド等のアラーム
で停止すると、軸移動中同期制御が一時的に解除される
ことで基準軸の移動が続行し、その後に再び同期条件が
成立すると、軸移動中同期制御が再開され、基準軸に同
期して同期軸が移動する。
In the synchronous control method of the numerical controller according to the present invention, when the synchronous axis stops due to an alarm such as a stroke end, the synchronous control is temporarily released during the axis movement to continue the movement of the reference axis. When the synchronization condition is satisfied again, the synchronous control during axis movement is restarted, and the synchronous axis moves in synchronization with the reference axis.

【0043】つぎの発明による数値制御装置における同
期制御方法は、軸移動中同期制御を再開する前記同期条
件は基準軸と同期軸との相対距離が予め定義されている
同期距離に一致することであるものである。
In the synchronous control method in the numerical controller according to the next invention, the synchronous condition for restarting the synchronous control during axis movement is that the relative distance between the reference axis and the synchronous axis is equal to the predefined synchronous distance. There is something.

【0044】この発明による数値制御装置における同期
制御方法では、基準軸と同期軸との相対距離が予め定義
されている同期距離に一致すると、同期条件が再成立し
たとして、軸移動中同期制御が再開され、同期軸は再び
基準軸に対して同期距離を保ちながら移動する。
In the synchronous control method in the numerical controller according to the present invention, when the relative distance between the reference axis and the synchronous axis matches the predefined synchronous distance, the synchronous condition is reestablished and the synchronous control during axis movement is performed. Upon restarting, the synchronous axis moves again while maintaining the synchronous distance with respect to the reference axis.

【0045】また上述のような目的を達成するために、
この発明による数値制御装置における同期制御装置は、
一つの可動軸を基準軸に、他の少なくとも一つの可動軸
を同期軸として、少なくとも2軸の可動軸を同期制御す
る数値制御装置における同期制御装置において、加工プ
ログラムに記述された軸移動中同期制御モード設定指令
と軸移動中同期制御モード解除指令を解析する軸移動中
同期制御モード指令解析手段と、前記軸移動中同期制御
モード指令解析手段による軸移動中同期制御モード設定
指令の解析により同期軸の加減速特性を基準軸の加減速
特性と同じ特性にする軸移動中同期制御モードを設定
し、軸移動中同期制御モード解除指令の解析により同期
軸の加減速特性を同期軸本来の加減速特性に戻して通常
モードにする軸移動中同期制御モード切り替え手段と、
シーケンス回路から軸移動中同期開始信号を検出する軸
移動中同期制御信号検出手段と、軸移動中同期制御モー
ド時において、前記軸移動中同期制御信号検出手段が軸
移動中同期開始信号を検出した時点の基準軸の残距離を
計算し、当該残距離を同期軸の位置指令とする残距離指
令手段と、基準軸と同期軸の停止で同期完了を判定し、
軸移動中同期制御完了信号をシーケンス回路に出力する
軸移動中同期制御完了信号出力手段とを有しているもの
である。
In order to achieve the above object,
The synchronous controller in the numerical controller according to the present invention is
In a synchronous controller in a numerical controller for synchronously controlling at least two movable axes with one movable axis as a reference axis and at least one other movable axis as a synchronous axis, synchronization during axis movement described in a machining program is performed. Synchronized by the analysis of the axis movement synchronous control mode setting command by the axis movement synchronous control mode command analysis means that analyzes the control mode setting command and the axis movement synchronous control mode release command The synchronous control mode during axis movement that sets the acceleration / deceleration characteristics of the axis to the same as the acceleration / deceleration characteristic of the reference axis is set. Synchronous control mode switching means during axis movement to return to deceleration characteristics and return to normal mode,
Axis movement synchronizing control signal detecting means for detecting the axis movement synchronizing start signal from the sequence circuit, and the axis moving synchronizing control signal detecting means detected the axis moving synchronizing start signal in the axis moving synchronizing control mode. The remaining distance of the reference axis at the time is calculated, and the remaining distance command means that uses the remaining distance as the position command of the synchronous axis, and the completion of synchronization is determined by stopping the reference axis and the synchronous axis,
And a means for outputting a synchronization control completion signal during axis movement for outputting a synchronization control completion signal during axis movement to the sequence circuit.

【0046】この発明による数値制御装置における同期
制御装置では、軸移動中同期制御モード指令解析手段に
よって加工プログラム中の軸移動中同期制御モード設定
指令と軸移動中同期制御モード解除指令とが解析され、
軸移動中同期制御モード切り替え手段は、軸移動中同期
制御モード設定指令の解析により同期軸の加減速特性を
基準軸の加減速特性と同じ特性にする軸移動中同期制御
モードを設定し、軸移動中同期制御モード解除指令の解
析により同期軸の加減速特性を同期軸本来の加減速特性
に戻して通常モードにする。
In the synchronous controller in the numerical controller according to the present invention, the axis-moving synchronous control mode command analyzing means analyzes the axis-moving synchronous control mode setting command and the axis-moving synchronous control mode cancel command in the machining program. ,
The axis moving synchronous control mode switching means sets the axis moving synchronous control mode that makes the acceleration / deceleration characteristic of the synchronous axis the same as the acceleration / deceleration characteristic of the reference axis by analyzing the axis moving synchronous control mode setting command. By analyzing the synchronous control mode release command during movement, the acceleration / deceleration characteristics of the synchronous axis are restored to the original acceleration / deceleration characteristics of the synchronous axis and the normal mode is set.

【0047】軸移動中同期制御モード時において、軸移
動中同期制御信号検出手段がシーケンス回路から軸移動
中同期開始信号を検出すると、残距離指令手段が軸移動
中同期開始信号を検出した時点の基準軸の残距離を計算
し、同期軸に当該残距離を同期軸の位置指令とする。こ
れにより移動中の基準軸に停止中の同期軸が同期する。
In the synchronous control mode during axis movement, when the synchronous control signal during axis movement detection means detects the synchronous start signal during axis movement from the sequence circuit, the remaining distance command means detects the synchronous start signal during axis movement. The remaining distance of the reference axis is calculated, and the remaining distance is used as the position command for the synchronizing axis. This synchronizes the stopped synchronous axis with the moving reference axis.

【0048】そして基準軸と同期軸の停止で同期完了が
判定され、軸移動中同期制御完了信号出力手段が軸移動
中同期制御完了信号をシーケンス回路に出力する。
Then, the completion of synchronization is judged by the stop of the reference axis and the synchronous axis, and the axis movement synchronous control completion signal output means outputs the axis movement synchronous control completion signal to the sequence circuit.

【0049】つぎの発明による数値制御装置における同
期制御装置は、シーケンス回路からの軸移動中同期解除
信号の入力によって同期軸を減速停止させる指令を行う
同期軸減速指令手段を有しているものである。
A synchronous controller in a numerical controller according to the next invention has a synchronous axis deceleration command means for issuing a command to decelerate and stop the synchronous axis by inputting a sync release signal during axis movement from a sequence circuit. is there.

【0050】この発明による数値制御装置における同期
制御装置では、同期軸減速指令手段がシーケンス回路か
らの軸移動中同期解除信号の入力によって同期軸を減速
停止させる指令を行う。
In the synchronous controller in the numerical controller according to the present invention, the synchronous axis deceleration command means issues a command for decelerating and stopping the synchronous axis by the input of the synchronous release signal during axis movement from the sequence circuit.

【0051】つぎの発明による数値制御装置における同
期制御装置は、加工プログラムで指定された同期制御対
象の可動軸のうち、シーケンス回路より軸移動中同期開
始信号が入力された時点で、移動中の軸を検出する移動
軸検出手段と、前記移動軸検出手段による移動軸検出結
果から移動中の軸を基準軸に、停止中の軸を同期軸と判
定する基準軸・同期軸判定手段とを有しているものであ
る。
The synchronous control device in the numerical control device according to the next invention is moving at the time when the synchronous movement start signal is input from the sequence circuit among the movable shafts to be synchronously controlled specified by the machining program. There is a moving axis detecting means for detecting an axis, and a reference axis / synchronous axis judging means for judging a moving axis as a reference axis and a stopped axis as a synchronous axis from a moving axis detection result by the moving axis detecting means. Is what you are doing.

【0052】この発明による数値制御装置における同期
制御装置では、移動軸検出手段が加工プログラムで指定
された同期制御対象の可動軸のうち、シーケンス回路よ
り軸移動中同期開始信号が入力された時点で、移動中の
軸を検出し、基準軸・同期軸判定手段が移動軸検出手段
による移動軸検出結果から移動中の軸を基準軸に、停止
中の軸を同期軸と判定し、基準軸と同期軸とを自動設定
する。
In the synchronous controller in the numerical controller according to the present invention, the moving axis detecting means outputs the synchronous start signal during axis movement from the sequence circuit among the movable axes to be controlled synchronously designated by the machining program. , The moving axis is detected, and the reference axis / synchronous axis judging means judges the moving axis as the reference axis and the stopped axis as the synchronous axis from the moving axis detection result by the moving axis detecting means, Automatically set the sync axis.

【0053】つぎの発明による数値制御装置における同
期制御装置は、一つの可動軸を基準軸に、他の少なくと
も一つの可動軸を同期軸として、少なくとも2軸の可動
軸を同期制御する数値制御装置における同期制御装置に
おいて、加工プログラムに記述された同期距離を含む軸
移動中同期制御モード設定指令と軸移動中同期制御モー
ド解除指令とを解析する軸移動中同期制御モード指令解
析手段と、移動中の現在の基準軸と同期軸との相対距離
を計算する相対距離計算手段と、前記軸移動中同期制御
モード指令解析手段による軸移動中同期制御モード設定
指令の解析により同期軸の加減速特性およびサーボ制御
特性を基準軸の加減速特性およびサーボ制御特性と同じ
特性にする軸移動中同期制御モードを設定し、軸移動中
同期制御モード解除指令の解析により同期軸の加減速特
性およびサーボ制御特性を同期軸本来の加減速特性およ
びサーボ制御特性に戻して通常モードにする軸移動中同
期制御モード切り替え手段と、軸移動中同期制御モード
時において、加工プログラムによって指定された同期距
離と前記相対距離計算手段により計算された前記相対距
離とを比較し、前記相対距離が前記同期距離と一致した
場合に基準軸の単位時間当たりの移動指令と同じ移動指
令を同期軸に対して出力する同期軸指令手段とを有して
いるものである。
A synchronous controller in a numerical controller according to the next invention is a numerical controller for synchronously controlling at least two movable axes with one movable axis as a reference axis and at least one other movable axis as a synchronous axis. In the synchronous control device in, the axis moving synchronous control mode command analyzing means for analyzing the axis moving synchronous control mode setting command and the axis moving synchronous control mode release command including the synchronous distance described in the machining program, Relative distance calculating means for calculating the relative distance between the current reference axis and the synchronous axis, and the acceleration / deceleration characteristic of the synchronous axis by analyzing the axis moving synchronous control mode setting command by the axis moving synchronous control mode command analyzing means. Set the synchronous control mode during axis movement that makes the servo control characteristics the same as the acceleration / deceleration characteristics of the reference axis and the servo control characteristics, and solve the synchronous control mode during axis movement. By the command analysis, the acceleration / deceleration characteristics and servo control characteristics of the synchronous axis are returned to the normal acceleration / deceleration characteristics and servo control characteristics of the synchronous axis to change to the normal mode. In, the synchronization distance specified by the machining program is compared with the relative distance calculated by the relative distance calculating means, and when the relative distance matches the synchronization distance, a movement command per unit time of the reference axis is calculated. It has a synchronous axis command means for outputting the same movement command to the synchronous axis.

【0054】この発明による数値制御装置における同期
制御装置では、軸移動中同期制御モード指令解析手段が
加工プログラムに記述された同期距離を含む軸移動中同
期制御モード設定指令と軸移動中同期制御モード解除指
令とを解析し、軸移動中同期制御モード切り替え手段が
軸移動中同期制御モード設定指令の解析により同期軸の
加減速特性およびサーボ制御特性を基準軸の加減速特性
およびサーボ制御特性と同じ特性にする軸移動中同期制
御モードを設定し、軸移動中同期制御モード解除指令の
解析により同期軸の加減速特性およびサーボ制御特性を
同期軸本来の加減速特性およびサーボ制御特性に戻して
通常モードにする。
In the synchronous controller in the numerical controller according to the present invention, the synchronous control mode during axis movement command analyzing means includes the synchronous movement mode control command during axis movement and the synchronous control mode during axis movement which include the synchronous distance described in the machining program. The release command is analyzed and the synchronous control mode switching means during axis movement analyzes the synchronous control mode setting command during axis movement to make the acceleration / deceleration characteristics and servo control characteristics of the synchronous axis the same as the acceleration / deceleration characteristics and servo control characteristics of the reference axis. Set the synchronous control mode during axis movement to be set as a characteristic and restore the acceleration / deceleration characteristics and servo control characteristics of the synchronous axis to the original acceleration / deceleration characteristics and servo control characteristics of the synchronous axis by analyzing the axis movement synchronous control mode release command. Set to mode.

【0055】軸移動中同期制御モード時においては、同
期軸指令手段が加工プログラムによって指定された同期
距離と相対距離計算手段により計算された移動中の現在
の基準軸と同期軸との相対距離とを比較し、相対距離が
同期距離と一致すると、基準軸の単位時間当たりの移動
指令と同じ移動指令を同期軸に対して出力する。これに
より同期軸が基準軸の加減速特性およびサーボ制御特性
と同じ加減速特性およびサーボ制御特性をもって移動
し、同期軸が移動中の基準軸に同期する。同期完了後は
同期軸は基準軸に対して同期距離を保ちながら移動す
る。
In the synchronous control mode during axis movement, the synchronous axis command means specifies the synchronous distance designated by the machining program and the relative distance between the current reference axis and the synchronous axis during movement calculated by the relative distance calculation means. And when the relative distance matches the synchronization distance, the same movement command as the movement command per unit time of the reference axis is output to the synchronization axis. As a result, the synchronous axis moves with the same acceleration / deceleration characteristics and servo control characteristics as the acceleration / deceleration characteristics and servo control characteristics of the reference axis, and the synchronous axis synchronizes with the moving reference axis. After the synchronization is completed, the synchronization axis moves while maintaining the synchronization distance with respect to the reference axis.

【0056】つぎの発明による数値制御装置における同
期制御装置は、前記相対距離が前記同期距離と一致した
時点から同期軸の加減速時定数が示す時間とサーボ制御
系のゲインの逆数が示す時間との合計時間が経過した時
点をもって基準軸と同期軸の同期完了を判定する同期判
定手段と、前記同期判定手段で判定された同期完了の通
知によってシーケンス回路の軸移動中同期制御完了信号
をオンさせる軸移動中同期制御完了信号出力手段とを有
しているものである。
In the synchronous controller in the numerical controller according to the next invention, the time indicated by the acceleration / deceleration time constant of the synchronous axis and the time indicated by the reciprocal of the gain of the servo control system from the time when the relative distance coincides with the synchronous distance. Of the reference axis and the synchronous axis at the time when the total time has passed, and the axis circuit synchronization control completion signal of the sequence circuit is turned on by the notification of the completion of synchronization determined by the synchronization determining means. And a synchronization control completion signal output means during axis movement.

【0057】この発明による数値制御装置における同期
制御装置では、同期判定手段が相対距離と同期距離とが
一致した時点から同期軸の加減速時定数が示す時間とサ
ーボ制御系のゲインの逆数が示す時間との合計時間が経
過した時点をもって基準軸と同期軸の同期完了を判定
し、この同期完了の判定に基づいて軸移動中同期制御完
了信号出力手段がシーケンス回路の軸移動中同期制御完
了信号をオンさせる。
In the synchronous control device in the numerical control device according to the present invention, the time indicated by the acceleration / deceleration time constant of the synchronous axis and the reciprocal of the gain of the servo control system are shown from the time when the relative distance and the synchronous distance are matched by the synchronous determination means. When the total time with the time has elapsed, the completion of synchronization between the reference axis and the synchronization axis is determined, and based on this determination of synchronization completion, the axis movement synchronization control completion signal output means outputs the axis movement synchronization control completion signal of the sequence circuit. Turn on.

【0058】つぎの発明による数値制御装置における同
期制御装置は、指定された同期解除位置と軸送り速度と
加減速特性から同期軸の減速開始位置を計算する同期軸
減速開始位置計算手段と、同期軸が前記減速開始位置に
到達したことを判定し、同期軸を減速停止させる信号処
理を行う同期軸減速開始位置判定手段とを有しているも
のである。
A synchronous controller in a numerical controller according to the next invention is a synchronous axis deceleration start position calculating means for calculating a deceleration start position of a synchronous axis from a specified desynchronization position, axis feed speed, and acceleration / deceleration characteristic, and a synchronous axis. And a synchronous axis deceleration start position determining means for performing signal processing for determining that the axis has reached the deceleration start position and decelerating and stopping the synchronous axis.

【0059】この発明による数値制御装置における同期
制御装置では、同期軸減速開始位置計算手段が指定され
た同期解除位置と軸送り速度と加減速特性から同期軸の
減速開始位置を計算し、同期軸減速開始位置判定手段に
よって同期軸が減速開始位置に到達したことが判定され
ると、同期軸を減速停止させる信号処理が行われる。
In the synchronous controller in the numerical controller according to the present invention, the synchronous axis deceleration start position calculating means calculates the deceleration start position of the synchronous axis from the specified synchronization release position, axis feed speed and acceleration / deceleration characteristic, and the synchronous axis deceleration start position is calculated. When the deceleration start position determination means determines that the synchronous axis has reached the deceleration start position, signal processing for decelerating and stopping the synchronous axis is performed.

【0060】つぎの発明による数値制御装置における同
期制御装置は、前記同期解除位置を加工プログラム記述
により加工プログラムによって指定するものである。
A synchronization control device in a numerical control device according to the next invention specifies the synchronization release position by a machining program according to a machining program description.

【0061】この発明による数値制御装置における同期
制御装置では、同期解除位置を加工プログラムの記述に
よって任意に指定できる。
In the synchronization control device in the numerical control device according to the present invention, the synchronization release position can be arbitrarily designated by the description of the machining program.

【0062】つぎの発明による数値制御装置における同
期制御装置は、軸モータの電流値などからモータ負荷を
検出するモータ負荷検出手段と、加工プログラムに記述
された切削指令と前記モータ負荷検出手段によって検出
したモータ負荷とから切削中であるか否かを判定する切
削判定手段とを有し、前記切削判定手段の判定が切削中
より非切削中に変遷した時点の座標値に基づいて前記同
期解除位置を指定するものである。
A synchronous control device in a numerical control device according to the next invention detects a motor load from a current value of a shaft motor and the like, a motor load detecting means, a cutting command described in a machining program, and the motor load detecting means. A cutting determination means for determining whether or not cutting is being performed based on the motor load, and the synchronization release position is based on the coordinate value at the time when the determination of the cutting determination means changes from cutting to non-cutting. Is to be specified.

【0063】この発明による数値制御装置における同期
制御装置では、モータ負荷検出手段が軸モータの電流値
などからモータ負荷を検出し、切削判定手段が加工プロ
グラムに記述された切削指令とモータ負荷検出手段によ
って検出したモータ負荷とから切削中であるか否かを判
定し、その判定が切削中より非切削中に変遷した時点の
座標値に基づいて同期解除位置が指定される。
In the synchronous controller in the numerical controller according to the present invention, the motor load detecting means detects the motor load from the current value of the shaft motor, etc., and the cutting judging means detects the cutting command and the motor load detecting means described in the machining program. Whether or not cutting is in progress is determined from the motor load detected by, and the desynchronization position is designated based on the coordinate value at the time when the determination transitions from cutting to non-cutting.

【0064】つぎの発明による数値制御装置における同
期制御装置は、シーケンス回路から軸移動中同期開始信
号が入力された時点の同期軸の座標位置あるいは加工プ
ログラムにより指定された同期開始位置を記憶し、記憶
された前記座標位置あるいは前記同期開始位置を同期解
除位置とし、この同期解除位置と軸送り速度と加減速特
性から同期軸の減速開始位置を計算する同期軸減速開始
位置計算手段と、同期軸が前記減速開始位置に到達した
ことを判定し、同期軸を減速停止させる信号処理を行う
同期軸減速開始位置判定手段とを有しているものであ
る。
The synchronous controller in the numerical controller according to the next invention stores the coordinate position of the synchronous axis at the time when the synchronous start signal during axis movement is input from the sequence circuit or the synchronous start position designated by the machining program, Synchronous axis deceleration start position calculating means for calculating the deceleration start position of the synchronous axis from the stored synchronous position or the synchronous start position as the synchronous release position, the synchronous release position, the axis feed speed, and the acceleration / deceleration characteristics, and the synchronous axis. Has reached the deceleration start position and has a synchronous axis deceleration start position determination means for performing signal processing for decelerating and stopping the synchronous axis.

【0065】この発明による数値制御装置における同期
制御装置では、シーケンス回路から軸移動中同期開始信
号が入力された時点の同期軸の座標位置あるいは加工プ
ログラムにより指定された同期開始位置が記憶され、同
期軸減速開始位置計算手段が記憶された座標位置あるい
は同期開始位置を同期解除位置とし、この同期解除位置
と軸送り速度と加減速特性から同期軸の減速開始位置を
計算する。同期軸が計算された減速開始位置に到達する
と、同期軸減速開始位置判定手段が同期軸を減速停止さ
せる信号処理を行う。
In the synchronous controller in the numerical controller according to the present invention, the coordinate position of the synchronous axis at the time when the synchronous start signal during axis movement is input from the sequence circuit or the synchronous start position designated by the machining program is stored, and the synchronous start position is stored. The axis deceleration start position calculation means sets the stored coordinate position or synchronization start position as the synchronization release position, and calculates the deceleration start position of the synchronous axis from the synchronization release position, the axis feed speed, and the acceleration / deceleration characteristics. When the synchronous axis reaches the calculated deceleration start position, the synchronous axis deceleration start position determination means performs signal processing for decelerating and stopping the synchronous axis.

【0066】つぎの発明による数値制御装置における同
期制御装置は、同期軸がストロークエンド等のアラーム
で停止した場合には軸移動中同期制御を一時解除して基
準軸の移動を続行させ、その後に再び同期条件が成立し
た場合に軸移動中同期制御を再開する指令を行う同期一
時解除指令手段を有しているものである。
The synchronous controller in the numerical controller according to the next invention temporarily cancels the synchronous control during axis movement to continue the movement of the reference axis when the synchronous axis stops due to an alarm such as a stroke end, and thereafter. When the synchronization condition is satisfied again, it has a synchronization temporary cancellation command means for issuing a command to restart the synchronization control during axis movement.

【0067】この発明による数値制御装置における同期
制御装置では、同期軸がストロークエンド等のアラーム
で停止した場合には、同期一時解除指令手段によって軸
移動中同期制御が一時的に解除され、基準軸の移動が続
行する。その後に再び同期条件が成立すると、軸移動中
同期制御が再開される。
In the synchronous controller in the numerical controller according to the present invention, when the synchronous axis is stopped due to an alarm such as a stroke end, the synchronous temporary cancel command means temporarily cancels the synchronous control during axis movement, and the reference axis Move continues. After that, when the synchronization condition is satisfied again, the synchronization control during axis movement is restarted.

【0068】つぎの発明による数値制御装置における同
期制御装置は、軸移動中同期制御を再開する前記同期条
件は基準軸と同期軸との相対距離が予め定義されている
同期距離に一致することであるものである。
In the synchronous controller in the numerical controller according to the next invention, the synchronous condition for restarting the synchronous control during axis movement is that the relative distance between the reference axis and the synchronous axis is equal to a predefined synchronous distance. There is something.

【0069】この発明による数値制御装置における同期
制御装置では、軸移動中同期制御が一時的に解除された
状態において基準軸と同期軸との相対距離が予め定義さ
れている同期距離に一致すると、同期条件が再成立した
として軸移動中同期制御が再開される。
In the synchronous controller in the numerical controller according to the present invention, when the relative distance between the reference axis and the synchronous axis coincides with the predefined synchronous distance in the state where the synchronous control during the axis movement is temporarily released, Synchronous control is restarted during axis movement, assuming that the synchronous condition is satisfied again.

【0070】[0070]

【発明の実施の形態】以下に添付の図を参照してこの発
明の実施の形態を詳細に説明する。なお、以下に説明す
るこの発明の実施の形態において、上述の従来例と同一
構成の部分は、上述の従来例に付した符号と同一の符号
を付してその説明を省略する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. In the embodiments of the present invention described below, parts having the same configurations as those of the above-described conventional example are denoted by the same reference numerals as those of the above-described conventional example, and description thereof will be omitted.

【0071】(実施の形態1)図1はこの発明による同
期制御装置を含む数値制御装置の実施の形態1を示して
いる。この数値制御装置1は、加工プログラム解析処理
部10が加工プログラム解析手段11に加えて軸移動中
同期制御モード指令解析手段12を有し、補間処理部3
0に、補間処理手段31と基準軸・同期軸管理手段32
に加えて、軸移動中同期制御モード切り替え手段33
と、残距離指令手段34と、移動軸停止確認手段35
と、同期軸減速指令手段36とを有し、機械制御信号処
理部50に、機械制御信号処理手段51に加えて、軸移
動中同期制御信号検知手段52と、軸移動中同期制御完
了信号出力手段53とを有している。
(Embodiment 1) FIG. 1 shows Embodiment 1 of a numerical controller including a synchronous controller according to the present invention. In this numerical controller 1, the machining program analysis processing unit 10 has a machining program analysis unit 11 and an axis movement synchronous control mode command analysis unit 12 in addition to the interpolation processing unit 3.
0 to interpolation processing means 31 and reference axis / synchronous axis management means 32
In addition to the axis movement synchronous control mode switching means 33
Remaining distance command means 34 and moving axis stop confirmation means 35
And a synchronous axis deceleration command means 36, the machine control signal processing section 50, in addition to the machine control signal processing means 51, a synchronous control signal detecting means 52 during axis movement and a synchronous control completion signal output during axis movement. And means 53.

【0072】軸移動中同期制御モード指令解析手段12
は、加工プログラムに記述された軸移動中同期制御モー
ド設定指令と、軸移動中同期制御モード解除指令を解析
する。
Synchronous control mode command analyzing means 12 during axis movement
Analyzes the axis movement synchronous control mode setting command and the axis movement synchronous control mode release command described in the machining program.

【0073】軸移動中同期制御モード切り替え手段33
は、軸移動中同期制御モード指令解析手段12による軸
移動中同期制御モード設定指令の解析により同期軸の加
減速特性を基準軸の加減速特性と同じ特性にする軸移動
中同期制御モードを設定し、軸移動中同期制御モード解
除指令の解析により同期軸の加減速特性を同期軸本来の
加減速特性に戻して通常モードにする。
Synchronous control mode switching means 33 during axis movement
Is set by the analysis of the axis movement synchronous control mode setting command by the axis movement synchronous control mode command analysis means 12 to set the axis movement synchronous control mode that makes the acceleration / deceleration characteristics of the synchronous axis the same as the reference axis acceleration / deceleration characteristics. Then, by analyzing the synchronous movement mode release command during axis movement, the acceleration / deceleration characteristics of the synchronous axis are returned to the original acceleration / deceleration characteristics of the synchronous axis, and the normal mode is set.

【0074】残距離指令手段軸34は、移動中同期制御
モード時において、軸移動中同期制御信号検知手段52
が軸移動中同期開始信号を検出した時点の基準軸の残距
離を計算し、当該残距離を同期軸の位置指令とする。
The remaining distance commanding means shaft 34, in the moving synchronous control mode, is an axial moving synchronous control signal detecting means 52.
Calculates the remaining distance of the reference axis at the time of detecting the synchronizing start signal during axis movement, and uses the remaining distance as the position command of the synchronizing axis.

【0075】移動軸停止確認手段35は、移動軸、ここ
では基準軸と同期軸の停止を確認する。
The moving axis stop confirmation means 35 confirms the stop of the moving axis, here the reference axis and the synchronous axis.

【0076】同期軸減速指令手段36は軸移動中同期解
除信号の入力によって同期軸を減速停止させる指令を行
う。
The synchronous axis deceleration command means 36 issues a command to decelerate and stop the synchronous axis by inputting a sync release signal during axis movement.

【0077】軸移動中同期制御信号検知手段52はラダ
ー回路部55より軸移動中同期開始信号と軸移動中同期
解除信号を検出する。
The axis movement synchronizing control signal detecting means 52 detects the axis movement synchronizing start signal and the axis movement synchronizing release signal from the ladder circuit section 55.

【0078】軸移動中同期制御完了信号出力手段53
は、移動軸停止確認手段35による基準軸と同期軸の停
止確認によって同期完了を判定し、軸移動中同期制御完
了信号をラダー回路部55へ出力する。
Synchronous control completion signal output means 53 during axis movement
Determines the completion of synchronization by confirming the stop of the reference axis and the synchronous axis by the moving axis stop confirmation means 35, and outputs an axis movement synchronization control completion signal to the ladder circuit unit 55.

【0079】次に実施の形態1の動作を説明する。この
実施の形態でも、図44に示されている工作機械の第2
系統のX軸(X2)を同期軸とし、第1系統のX軸(X
1)を基準軸として同期制御させることを考える。な
お、図2は実施の形態1における第1系統の加工プログ
ラムと第2系統の加工プログラムの例を示しており、図
3はシーケンス回路部をなすラダー回路を示している。
Next, the operation of the first embodiment will be described. Also in this embodiment, the second part of the machine tool shown in FIG.
The X-axis (X2) of the system is the synchronization axis, and the X-axis (X
Consider synchronous control with 1) as a reference axis. 2 shows an example of the first system machining program and the second system machining program in the first embodiment, and FIG. 3 shows a ladder circuit forming a sequence circuit unit.

【0080】まず図4を参照して軸移動中同期制御モー
ド設定ルーチンを説明する。
First, the synchronous control mode setting routine during axis movement will be described with reference to FIG.

【0081】同期制御させたい軸の指定は、加工プログ
ラムにおいて軸移動中同期制御モード指令“G128”
に続く軸指定記述で行う。図2に示されている加工プロ
グラムでは、“G128X1=X2”であり、X1は第
1系統のX軸を、X2は第2系統のX軸を各々表してい
る。この軸指定記述における“=”の左側は同期軸を、
右側は基準軸を表わしている。この指令は軸移動中同期
制御モード指令解析手段12で解析処理され、解析結果
を補間処理部30に渡す(ステップS10)。
The axis to be synchronously controlled is specified by the synchronous program mode command "G128" during axis movement in the machining program.
Follow the axis specification description. In the machining program shown in FIG. 2, “G128X1 = X2”, where X1 represents the X axis of the first system and X2 represents the X axis of the second system. The left side of "=" in this axis specification description is the synchronization axis,
The right side represents the reference axis. This command is analyzed by the synchronous control mode command analysis means 12 during axis movement, and the analysis result is passed to the interpolation processing section 30 (step S10).

【0082】つぎに、軸移動中同期制御モード指令解析
手段12の解析結果から基準軸・同期軸管理手段32
が、基準軸と同期軸とが第1系統のX軸と第2系統のX
軸のような平行軸であるかをチェックする(ステップS
11)。同期制御可能な組み合わせでない場合にはアラ
ーム処理を行い(ステップS14)、処理を終了する。
Next, from the analysis result of the synchronous control mode command analyzing means 12 during axis movement, the reference axis / synchronous axis managing means 32 is provided.
However, the reference axis and the synchronous axis are the X axis of the first system and the X axis of the second system.
Check if the axes are parallel axes (step S)
11). If it is not a combination that can be controlled synchronously, an alarm process is performed (step S14), and the process ends.

【0083】同期制御可能な組み合わせである場合に
は、軸移動中同期制御モード切り替え手段33が、メモ
リ20に格納されている基準軸と同期軸の機械座標の位
置関係を読み出し、同期軸の機械位置またはワーク座標
値を基準軸の座標系で計算するように補間処理手段31
に指示する(ステップS12)。
In the case of a combination capable of synchronous control, the synchronous control mode switching means 33 during axis movement reads out the positional relationship between the reference axis and the machine coordinate of the sync axis stored in the memory 20, and determines the machine of the sync axis. Interpolation processing means 31 for calculating the position or work coordinate value in the coordinate system of the reference axis
(Step S12).

【0084】また軸移動中同期制御モード切り替え手段
33が、選択された同期軸の加減速時定数と、直線加減
速、指数関数加減速等の加減速パターンを基準軸の加減
速時定数と加減速パターンに切り替える(ステップS1
3)。
Also, the axis movement synchronous control mode switching means 33 accelerates / decelerates the constant axis of the selected synchronous axis and acceleration / deceleration patterns such as linear acceleration / deceleration and exponential function acceleration / deceleration with the acceleration / deceleration time constant of the reference axis. Switch to deceleration pattern (step S1
3).

【0085】なお、この明細書では、加減速時定数と加
減速パターンとを総称して加減速特性と云う。
In this specification, the acceleration / deceleration time constant and the acceleration / deceleration pattern are collectively called acceleration / deceleration characteristics.

【0086】図5に示されているラダー回路部55によ
るシーケンス制御ルーチンでは、指定された軸が指令さ
れた位置を通過した場合に決められた外部信号に出力す
るポジションスイッチという機能を使って基準軸の同期
開始位置を機械制御信号処理部50に設定する(ステッ
プS901)。
In the sequence control routine by the ladder circuit section 55 shown in FIG. 5, when the designated axis passes through the commanded position, the function of a position switch for outputting an external signal determined is used as a reference. The synchronization start position of the axis is set in the machine control signal processing unit 50 (step S901).

【0087】同期制御開始位置を基準軸が通過したか否
かを機械制御信号処理手段51よりの出力信号によって
チェックする(ステップS902)。通過していない場
合には処理を終了し、通過した場合には、図3の軸移動
中同期開始信号“Y300”を機械制御信号処理部50
に出力する(ステップS903)。
Whether or not the reference axis has passed the synchronous control start position is checked by an output signal from the machine control signal processing means 51 (step S902). If it has not passed, the processing is terminated, and if it has passed, the machine control signal processing unit 50 outputs the synchronization start signal "Y300" during axis movement of FIG.
(Step S903).

【0088】図6は軸移動中同期制御の開始処理ルーチ
ンを示している。この開始処理ルーチンでは、まず、ラ
ダー回路部55からの軸移動中同期開始信号“Y30
0”を機械制御信号処理部50の軸移動中同期制御信号
検知手段52によって判定する(ステップS20)。
FIG. 6 shows a start processing routine for synchronous control during axis movement. In this start processing routine, first, a synchronization start signal “Y30 during axis movement” from the ladder circuit unit 55 is sent.
0 "is determined by the axis movement synchronous control signal detecting means 52 of the machine control signal processing unit 50 (step S20).

【0089】軸移動中同期開始信号“Y300”が検出
されなければ、処理を終了し、軸移動中同期開始信号
“Y300”が検出されれば、基準軸に対応する軸制御
部60の停止確認手段62によって基準軸の停止を確認
する(ステップS21)。基準軸が停止中であれば、同
期軸に対応する軸制御部60の停止確認手段62によっ
て同期軸の停止を確認する(ステップS22)。
If the axis moving synchronization start signal "Y300" is not detected, the process is terminated, and if the axis moving synchronization start signal "Y300" is detected, the stop confirmation of the axis control unit 60 corresponding to the reference axis is confirmed. The stop of the reference axis is confirmed by the means 62 (step S21). If the reference axis is stopped, the stop confirmation means 62 of the axis control unit 60 corresponding to the synchronous axis confirms the stop of the synchronous axis (step S22).

【0090】同期軸も停止中であれば、基準軸・同期軸
管理手段32が加工プログラム解析手段11から基準軸
に対する指令が入力された場合に補間処理部30が基準
軸の軸制御部60に対して出力する補間データを同期軸
の軸制御部60に対しても出力するように指示し、軸移
動中同期制御完了信号出力手段53に同期制御確立の通
知を行う。軸移動中同期制御完了信号出力手段53は基
準軸・同期軸管理手段32からの同期制御確立通知を受
けて、ラダー回路部55に対して図3の軸移動中同期完
了信号“X280”を出力する(ステップS29)。こ
れを同期確立処理と云う。
If the synchronous axis is also stopped, when the reference axis / synchronous axis managing means 32 receives a command for the reference axis from the machining program analyzing means 11, the interpolation processing section 30 causes the axis control section 60 of the reference axis to operate. It also instructs the axis control unit 60 of the synchronous axis to output the interpolation data to be output, and notifies the synchronous control completion signal output means 53 during the axis movement to establish the synchronous control. Upon receipt of the synchronization control establishment notification from the reference axis / synchronous axis managing means 32, the axis movement synchronization control completion signal output means 53 outputs the axis movement synchronization completion signal “X280” of FIG. 3 to the ladder circuit section 55. Yes (step S29). This is called synchronization establishment processing.

【0091】これに対し同期軸が停止中でなければ、同
期軸が移動中ということで、アラーム処理を行い(ステ
ップS30)、処理を終了する。
On the other hand, if the synchronous axis is not stopped, it means that the synchronous axis is moving, alarm processing is performed (step S30), and the processing is terminated.

【0092】基準軸が停止中でない場合には、同期軸の
停止を確認し(ステップS23)、同期軸が停止中でな
い場合には、アラーム処理を行い(ステップS30)、
処理を終了する。
If the reference axis is not stopped, it is confirmed that the synchronous axis is stopped (step S23). If the synchronous axis is not stopped, alarm processing is performed (step S30).
The process ends.

【0093】基準軸が移動中で、同期軸が停止中の場合
には、補間処理部30の残距離指令手段34が移動中の
基準軸の現在の機械位置から指令ブロック終点までの距
離(残距離)を算出し(ステップS24)、残距離指令
手段34が該計算結果を位置指令として補間処理手段3
1に渡し、補間処理手段31が同期軸に対応する軸制御
部60に補間データを出力する(ステップS25)。
When the reference axis is moving and the synchronous axis is stopped, the remaining distance command means 34 of the interpolation processing unit 30 determines the distance (remaining distance) from the current mechanical position of the moving reference axis to the command block end point. Distance) is calculated (step S24), and the remaining distance command means 34 uses the calculation result as a position command to interpolate processing means 3
Then, the interpolation processing means 31 outputs the interpolation data to the axis control unit 60 corresponding to the synchronous axis (step S25).

【0094】つぎに、同期軸に対応する軸制御部60の
加減速処理手段61によって補間データを処理し、これ
を軸移動量出力回路70より同期軸に対応するサーボ制
御部80にサーボ移動指令として送る(ステップS2
6)。これにより同期軸に対応するサーボ制御部80が
サーボ移動指令に従って同期軸に対応するサーボモータ
90を駆動する(ステップS27)。
Next, the acceleration / deceleration processing means 61 of the axis control unit 60 corresponding to the synchronous axis processes the interpolation data, and the axis movement amount output circuit 70 outputs a servo movement command to the servo control unit 80 corresponding to the synchronous axis. Send as (step S2
6). Thereby, the servo control unit 80 corresponding to the synchronous axis drives the servo motor 90 corresponding to the synchronous axis according to the servo movement command (step S27).

【0095】つぎに、移動軸停止確認手段35が基準軸
と同期軸に各々対応する軸制御部60の停止確認手段6
2から基準軸と同期軸の停止を確認し(ステップS2
8)、この停止確認をもって同期完了とし、同期確立処
理を行う(ステップS30)。
Next, the moving axis stop confirmation means 35 corresponds to the reference axis and the synchronous axis, and the stop confirmation means 6 of the axis control section 60.
From 2 confirm the stop of the reference axis and the synchronous axis (step S2
8) When the stop confirmation is made, the synchronization is completed, and the synchronization establishment process is performed (step S30).

【0096】図7は軸移動中同期制御モード時の移動指
令処理ルーチンを示している。この処理ルーチンでは、
加工プログラムの移動指令“G0X1.0;”のように
基準軸に対して移動指令が指令されると、補間処理部3
0は基準軸に対応する軸制御部60の加減速処理手段6
1と同期軸に対応する軸制御部60の加減速処理手段6
1に補間データを出力する。この各々の加減速処理手段
61は基準軸となるサーボ制御部80と同期軸となるサ
ーボ制御部80に同じサーボ移動指令を送る(ステップ
S40)。これにより基準軸と同期軸に対応するサーボ
制御部80が各々、基準軸と同期軸に対応するサーボモ
ータ90を駆動する。
FIG. 7 shows a movement command processing routine in the synchronous control mode during axis movement. In this processing routine,
When a movement command is issued to the reference axis, such as a machining program movement command “G0X1.0;”, the interpolation processing unit 3
0 is the acceleration / deceleration processing means 6 of the axis control unit 60 corresponding to the reference axis.
1 and acceleration / deceleration processing means 6 of the axis control unit 60 corresponding to the synchronous axis
The interpolation data is output to 1. Each of the acceleration / deceleration processing means 61 sends the same servo movement command to the servo control unit 80 serving as the reference axis and the servo control unit 80 serving as the synchronous axis (step S40). As a result, the servo control units 80 corresponding to the reference axis and the synchronous axis drive the servo motors 90 corresponding to the reference axis and the synchronous axis, respectively.

【0097】次に同期解除制御について説明する。図8
に示されているラダー回路部55によるシーケンス制御
ルーチンでは、指定された軸が指令された位置を通過し
た場合に決められた外部信号に出力するポジションスイ
ッチという機能を使って基準軸の同期解除位置を機械制
御信号処理部50に設定する(ステップS910)。
Next, the synchronization release control will be described. FIG.
In the sequence control routine by the ladder circuit section 55 shown in, the position of the reference axis is released by using the function of the position switch that outputs to the external signal determined when the specified axis passes the commanded position. Is set in the machine control signal processing unit 50 (step S910).

【0098】つぎに、同期制御解除位置を基準軸が通過
したか否かを機械制御信号処理部50からの出力信号に
よってチェックし(ステップS911)、通過していな
い場合は処理を終了し、通過した場合には、図3の軸移
動中同期解除信号“Y301”を機械制御信号処理部5
0に出力する(ステップS912)。
Next, it is checked by the output signal from the machine control signal processing unit 50 whether or not the reference axis has passed the synchronous control release position (step S911). In this case, the machine control signal processing unit 5 outputs the synchronization release signal “Y301” during axis movement in FIG.
It is output to 0 (step S912).

【0099】図9は軸移動中同期解除処理ルーチンを示
している。この処理ルーチンでは、ラダー回路部55か
らの軸移動中同期解除信号“Y301”を機械制御信号
処理部50の軸移動中同期制御信号検知手段52で判定
する(ステップS50)。
FIG. 9 shows a synchronization release processing routine during axis movement. In this processing routine, the axis movement synchronization release signal "Y301" from the ladder circuit section 55 is determined by the axis movement synchronization control signal detecting means 52 of the machine control signal processing section 50 (step S50).

【0100】軸移動中同期解除信号“Y301”が検出
されなければ、処理を終了し、軸移動中同期解除信号
“Y301”が検出されれば、軸移動中同期制御完了信
号出力手段53が軸移動中同期制御完了信号“X28
0”をオフする(ステップS51)。また軸移動中同期
制御完了信号出力手段53からの同期解除要求を受けて
同期軸減速指令手段36が同期軸に対応する軸制御部6
0に対して基準軸の加減速時定数と加減速パターンに従
って同期軸を減速停止するような指令を出すように補間
処理手段31に指示する。これにより同期軸に対応する
軸制御部60は補間処理手段31からの指令に従って同
期軸を減速停止させる(ステップS52)。
If the axis moving synchronization release signal "Y301" is not detected, the processing is terminated. If the axis moving synchronization release signal "Y301" is detected, the axis moving synchronization control completion signal output means 53 causes the axis to move. Synchronization control completion signal during movement "X28
0 "is turned off (step S51). Further, in response to a synchronization release request from the synchronous control completion signal output means 53 during axis movement, the synchronous axis deceleration command means 36 causes the axis control section 6 corresponding to the synchronous axis.
The interpolation processing means 31 is instructed to output a command for decelerating and stopping the synchronous axis in accordance with the acceleration / deceleration time constant of the reference axis and the acceleration / deceleration pattern for 0. Thereby, the axis control unit 60 corresponding to the synchronous axis decelerates and stops the synchronous axis according to the instruction from the interpolation processing means 31 (step S52).

【0101】図10は軸移動中同期制御モード解除ルー
チンを示している。この解除ルーチンでは、加工プログ
ラムにおいて軸移動中同期制御モード解除指令“G12
8X2;”を指令する(ステップS60)。該指令は軸
移動中同期制御モード指令解析手段12で解析され、該
解析手段12が補間処理部30に解析結果を渡す。
FIG. 10 shows a routine for releasing the synchronous control mode during axis movement. In this release routine, in the machining program, the synchronous control mode release command "G12 during axis movement" is issued.
8X2; "(step S60). The command is analyzed by the axis movement synchronous control mode command analysis means 12, and the analysis means 12 passes the analysis result to the interpolation processing section 30.

【0102】軸移動中同期制御モード指令解析手段12
の解析結果から軸移動中同期制御モード切り替え手段3
3が基準軸の加減速パターンや加減速時定数に切り替わ
っていた同期軸の加減速パターンと加減速時定数を元の
同期軸本来の加減速パターンと加減速時定数に戻し、ま
た同期軸の機械位置またはワーク座標値の計算を基準軸
の座標系から同期軸の座標系に戻す(ステップS6
1)。
Synchronous control mode command analyzing means 12 during axis movement
Based on the analysis result of 3, the synchronous control mode switching means 3 during axis movement
3 returns the acceleration / deceleration pattern and acceleration / deceleration time constant of the synchronous axis that had been switched to the acceleration / deceleration pattern and acceleration / deceleration time constant of the reference axis to the original acceleration / deceleration pattern and acceleration / deceleration time constant of the original synchronous axis. The calculation of the machine position or the work coordinate value is returned from the coordinate system of the reference axis to the coordinate system of the synchronous axis (step S6).
1).

【0103】(実施の形態2)図11はこの発明による
同期制御装置を含む数値制御装置の実施の形態2を示し
ている。尚、図11に於いて、図1に対応する部分は図
1に付した符号と同一の符号を付けてその説明を省略す
る。
(Embodiment 2) FIG. 11 shows Embodiment 2 of a numerical controller including a synchronous controller according to the present invention. In FIG. 11, the portions corresponding to those in FIG. 1 are designated by the same reference numerals as those in FIG. 1 and their description is omitted.

【0104】実施の形態2では、実施の形態1のものに
加えて、補間処理部30に、移動軸検出手段37と、基
準軸・同期軸判定手段38とが設けられている。
In the second embodiment, in addition to the first embodiment, the interpolation processing section 30 is provided with a moving axis detecting means 37 and a reference axis / synchronous axis determining means 38.

【0105】移動軸検出手段37は、加工プログラムで
指定された同期制御対象の可動軸のうち、ラダー回路部
55より軸移動中同期開始信号が入力された時点で、移
動中の軸を検出する。
The moving axis detecting means 37 detects the moving axis among the movable axes to be controlled synchronously designated by the machining program, when the axis moving synchronization start signal is inputted from the ladder circuit section 55. .

【0106】基準軸・同期軸判定手段38は、移動軸検
出手段37による移動軸検出結果から移動中の軸を基準
軸に、停止中の軸を同期軸と判定する。
The reference axis / synchronous axis determination means 38 determines from the result of the movement axis detection by the movement axis detection means 37 that the moving axis is the reference axis and the stopped axis is the synchronization axis.

【0107】次に実施の形態2の動作を説明する。この
実施の形態でも、図46に示されている工作機械の第2
系統のX軸(X2)を同期軸とし、第1系統のX軸(X
1)を基準軸として同期制御させることを考える。な
お、図12は実施の形態2における第1系統の加工プロ
グラムと第2系統の加工プログラムの例を示している。
Next, the operation of the second embodiment will be described. In this embodiment as well, the second part of the machine tool shown in FIG. 46 is used.
The X-axis (X2) of the system is the synchronization axis, and the X-axis (X
Consider synchronous control with 1) as a reference axis. Note that FIG. 12 shows an example of the first-system machining program and the second-system machining program according to the second embodiment.

【0108】加工プログラムの軸移動中同期制御モード
指令“G128”に続く軸指定記述によって同期制御さ
せたい軸の指定を行なう。この場合の軸指定は“X1,
X2”と云うように、基準軸と同期軸との指定を未定義
で行う。
The axis to be synchronously controlled is specified by the axis specification description following the synchronous control mode command "G128" during axis movement of the machining program. In this case, the axis designation is "X1,
The designation of the reference axis and the synchronous axis is performed undefined, such as "X2".

【0109】この指令は軸移動中同期制御モード指令解
析手段12で解析処理され、その解析結果を補間処理部
30に渡す。軸移動中同期制御モード指令解析手段12
による解析結果から基準軸・同期軸管理手段32が、同
期制御対象軸が第1系統のX軸と第2系統のX軸のよう
な平行軸であるかをチェックする。
This command is analyzed by the synchronous control mode command analyzing means 12 during axis movement, and the analysis result is passed to the interpolation processing section 30. Synchronous control mode command analysis means 12 during axis movement
The reference axis / synchronous axis management means 32 checks from the analysis result by the above-mentioned whether the synchronous control target axis is a parallel axis such as the X axis of the first system and the X axis of the second system.

【0110】軸移動中同期制御モード切り替え手段33
がメモリ20に格納されている指令された両軸の機械座
標の位置関係を読み出し、指令“G128X1,X
2;”で左側の軸(ここではX1軸)の機械位置または
ワーク座標値を右側の軸(ここではX2軸)の座標系で
計算するように補間処理手段31に指示すると共に、左
側の軸の加減速時定数と直線加減速、指数関数加減速等
の加減速パターンを右側の軸の加減速時定数と加減速パ
ターンに切り替える。
Synchronous control mode switching means 33 during axis movement
Reads out the positional relationship between the commanded machine coordinates of both axes stored in the memory 20, and outputs the command “G128X1, X
"2;" instructs the interpolation processing means 31 to calculate the machine position or the work coordinate value of the left side axis (here, the X1 axis) in the coordinate system of the right side axis (here, the X2 axis), and also the left side axis. The acceleration / deceleration time constant and the acceleration / deceleration pattern such as linear acceleration / deceleration and exponential function acceleration / deceleration are switched to the acceleration / deceleration time constant and the acceleration / deceleration pattern of the right axis.

【0111】図13は実施の形態2における軸移動中同
期制御の開始処理ルーチンを示している。この開始処理
ルーチンでは、まず、ラダー回路部55からの軸移動中
同期開始信号“Y300”を機械制御信号処理部50の
軸移動中同期制御信号検知手段52によって判定する
(ステップS70)。
FIG. 13 shows a start processing routine for synchronous control during axis movement in the second embodiment. In this start processing routine, first, the axis movement synchronization control signal "Y300" from the ladder circuit section 55 is determined by the axis movement synchronization control signal detection means 52 of the machine control signal processing section 50 (step S70).

【0112】軸移動中同期開始信号“Y300”が検出
されれば、移動軸検出手段37が軸移動中同期制御モー
ド指令の解析結果、すなわち基準軸、同期軸の候補にな
る2軸を読み出したのち、指定された軸の軸制御部60
の停止確認手段62から軸が移動中であるか否かを判定
する(ステップS71)。指定された2軸が両軸とも移
動中の場合にはアラーム処理を実行し(ステップS8
0)、処理を終了する。
When the axis movement synchronizing start signal "Y300" is detected, the moving axis detecting means 37 reads the analysis result of the axis movement synchronizing control mode command, that is, the two axes which are candidates for the reference axis and the synchronizing axis. After that, the axis control unit 60 for the specified axis
From the stop confirmation means 62, it is determined whether or not the axis is moving (step S71). If both specified axes are moving, alarm processing is executed (step S8).
0), the process ends.

【0113】指定された2軸とも移動中でない場合(停
止軸がある場合)には、移動軸検出手段37が、指定さ
れた2軸が両軸とも停止中か否かをチェックする(ステ
ップS72)。2軸が両方とも停止中の場合には、同期
確立処理を行う(ステップS79)。
When neither of the two designated axes is moving (when there is a stopped axis), the moving axis detecting means 37 checks whether or not the designated two axes are both stopped (step S72). ). When both of the two axes are stopped, a synchronization establishment process is performed (step S79).

【0114】これに対し、一方の軸が移動中で、他方の
軸が停止中の場合には、基準軸・同期軸判定手段38が
移動中の軸を基準軸に、停止中の軸を同期軸と判定する
(ステップS73)。
On the other hand, when one axis is moving and the other axis is stopped, the reference axis / synchronization axis determination means 38 synchronizes the stopped axis with the moving axis as the reference axis. It is determined to be an axis (step S73).

【0115】以降は実施の形態1における場合と同様
に、補間処理部30の残距離指令手段34が移動中の基
準軸の現在の機械位置から指令ブロック終点までの距離
(残距離)を算出し(ステップS74)、残距離指令手
段34が該計算結果を位置指令として補間処理手段31
に渡し、補間処理手段31が同期軸に対応する軸制御部
60に補間データを出力する(ステップS75)。
Thereafter, as in the case of the first embodiment, the remaining distance command means 34 of the interpolation processing section 30 calculates the distance (remaining distance) from the current mechanical position of the moving reference axis to the command block end point. (Step S74), the remaining distance command means 34 uses the calculation result as a position command for the interpolation processing means 31.
Then, the interpolation processing means 31 outputs the interpolation data to the axis control unit 60 corresponding to the synchronous axis (step S75).

【0116】つぎに、同期軸に対応する軸制御部60の
加減速処理手段61によって補間データを処理し、これ
を軸移動量出力回路70より同期軸に対応するサーボ制
御部80にサーボ位置指令として送る(ステップS7
6)。これにより同期軸に対応するサーボ制御部80が
サーボ位置指令に従って同期軸に対応するサーボモータ
90を駆動する(ステップS77)。
Next, interpolation data is processed by the acceleration / deceleration processing means 61 of the axis control unit 60 corresponding to the synchronous axis, and the interpolation data is processed by the axis movement amount output circuit 70 to the servo control unit 80 corresponding to the synchronous axis. Send as (step S7
6). As a result, the servo control unit 80 corresponding to the synchronous axis drives the servo motor 90 corresponding to the synchronous axis according to the servo position command (step S77).

【0117】つぎに、移動軸停止確認手段35が基準軸
と同期軸に各々対応する軸制御部60の停止確認手段6
2から基準軸と同期軸の停止を確認し(ステップS7
8)、この停止確認をもって同期完了とし、同期確立処
理を行う(ステップS79)。
Next, the moving axis stop confirmation means 35 corresponds to the reference axis and the synchronous axis, and the stop confirmation means 6 of the axis control section 60.
From 2 confirm the stop of the reference axis and the synchronous axis (step S7
8) Then, upon confirmation of this stop, the synchronization is completed and the synchronization establishment process is performed (step S79).

【0118】なお、軸移動中同期制御モード時の移動指
令処理ルーチン、軸移動中同期解除処理ルーチン、軸移
動中同期制御モード解除ルーチンは実施の形態1におけ
る場合と同等に行われる。
The movement command processing routine, the axis-moving synchronization releasing processing routine, and the axis-moving synchronizing control mode releasing routine in the axis-moving synchronous control mode are performed in the same manner as in the first embodiment.

【0119】図14(a)、(b)は工作機械の一種で
ある自動旋盤を示している。図14(a)、(b)にお
いて、730は機械の筺体を、Wはワークを示してい
る。ワークWは1本の長い金属材料である。
14 (a) and 14 (b) show an automatic lathe which is a type of machine tool. In FIGS. 14A and 14B, reference numeral 730 denotes a machine housing and W denotes a work. The work W is one long metal material.

【0120】自動旋盤は、1本の長いワークWを図示し
ていない正面主軸で回転させ、さらに、ワークWを図に
て右から左へ移動させ、ワークWを工具735で旋削加
工したり、また、図示していない突っ切り工具を使って
ワークWを切断したりすることによって部品加工を行う
工作機械である。
In the automatic lathe, one long work W is rotated by a front spindle (not shown), the work W is further moved from right to left in the figure, and the work W is turned by a tool 735. Further, it is a machine tool that processes parts by cutting the work W using a not-shown cutting tool.

【0121】工具735を支持しているタレット731
は、通常、6角柱、または、8角柱の形をしており、角
柱の各側面に各々工具が取り付けられる。工具選択はタ
レット731を60°または45°ずつ分割回転させ位
置決めを行うことによって行われる。また背面主軸台7
32には、工具734および背面主軸733が取り付け
られている。背面主軸733は、ワークWと同一回転数
で回転し、ワークWを掴み、図示していない突っ切り工
具でワークWを切断した後、工具741に位置決めし、
切断されたワークWの切断面の穴あけ等の2次加工を工
具741で行う場合に使われる。
Turret 731 supporting tool 735
Usually has a shape of a hexagonal prism or an octagonal prism, and a tool is attached to each side surface of the prism. The tool is selected by dividing the turret 731 by 60 ° or 45 ° and positioning it. Also the rear headstock 7
A tool 734 and a back main spindle 733 are attached to 32. The back spindle 733 rotates at the same number of revolutions as the work W, grips the work W, cuts the work W with a not-shown cut-off tool, and positions the tool 741.
It is used when the tool 741 is used for secondary processing such as drilling of the cut surface of the cut work W.

【0122】自動旋盤の座標系は、通常、図14
(a)、(b)に示したように左右方向にZ軸を、上下
方向にX軸を取る。図14(a)、(b)では、タレッ
ト731、背面主軸台732共にX軸、Z軸方向に可動
できる構造になっている。ここでは、タレット731を
第1系統に、背面主軸台732を第2系統として定義す
る。
The coordinate system of an automatic lathe is usually shown in FIG.
As shown in (a) and (b), the Z axis is taken in the horizontal direction and the X axis is taken in the vertical direction. In FIGS. 14A and 14B, both the turret 731 and the back headstock 732 are movable in the X-axis and Z-axis directions. Here, the turret 731 is defined as the first system, and the back spindle stock 732 is defined as the second system.

【0123】プログラムミスによってタレット731が
背面主軸台732の存在する方向に移動すると、タレッ
ト731は背面主軸台732に衝突する可能性がある。
また、プログラムミスによって背面主軸台732がタレ
ット731の存在する方向に移動すると、背面主軸台7
32はタレット731に衝突する可能性がある。
When the turret 731 moves in the direction in which the rear headstock 732 exists due to a programming error, the turret 731 may collide with the rear headstock 732.
Further, when the rear headstock 732 moves in the direction in which the turret 731 exists due to a programming error, the rear headstock 7
32 may collide with the turret 731.

【0124】そこで、同期開始位置Son1 、Son2
を設定し、タレット731が同期開始位置Son1 を通
過した場合、または背面主軸台732が同期開始位置S
on2 を通過した場合に、軸移動中同期開始信号をラダ
ー回路部55から入力することによってタレット731
が背面主軸台732に接近しても背面主軸台732がタ
レット731に同期して移動するため、タレット731
と背面主軸台732が衝突することはない。また、背面
主軸台732がタレット731に接近してもタレット7
31が背面主軸台732に同期して移動するため、タレ
ット731と背面主軸台732が衝突することはない。
これらのことにより、タレット731と背面主軸台73
2が衝突することを回避させることができる。
Therefore, the synchronization start positions Son1, Son2
Is set and the turret 731 has passed the synchronization start position Son1, or the rear headstock 732 is set to the synchronization start position S1.
When the signal passes through on2, the turret 731 is input by inputting the synchronization start signal during axis movement from the ladder circuit unit 55.
The rear headstock 732 moves in synchronism with the turret 731 even when the rear headstock 732 approaches the turret 731.
And the rear headstock 732 do not collide with each other. Further, even if the rear headstock 732 approaches the turret 731, the turret 7
Since 31 moves in synchronization with the back spindle 732, the turret 731 and the back spindle 732 do not collide.
Due to these things, the turret 731 and the rear headstock 73
It is possible to prevent the two from colliding with each other.

【0125】(実施の形態3)図15はこの発明による
同期制御装置を含む数値制御装置の実施の形態3を示し
ている。尚、図15に於いて、図1に対応する部分は図
1に付した符号と同一の符号を付けてその説明を省略す
る。
(Third Embodiment) FIG. 15 shows a third embodiment of a numerical controller including a synchronous controller according to the present invention. In addition, in FIG. 15, the portions corresponding to those in FIG. 1 are denoted by the same reference numerals as those in FIG. 1, and the description thereof will be omitted.

【0126】実施の形態3では、加工プログラム解析処
理部10に加工プログラム解析手段11に加えて軸移動
中同期制御モード指令解析手段12を有し、補間処理部
30に、補間処理手段31と基準軸・同期軸管理手段3
2に加えて軸移動中同期制御モード切り替え手段33
と、相対距離計算手段40と、同期軸指令手段41と、
同期判定手段42とを有し、機械制御信号処理部50
に、機械制御信号処理手段51に加えて、軸移動中同期
制御完了信号出力手段53を有している。また各軸のサ
ーボ制御部80はゲイン切り替え手段81を含んでい
る。
In the third embodiment, in addition to the machining program analyzing means 11 in the machining program analyzing processing section 10, there is an axis moving synchronous control mode command analyzing means 12, and the interpolation processing section 30 has an interpolation processing means 31 and a reference. Axis / synchronous axis management means 3
In addition to 2, synchronous control mode switching means 33 during axis movement
A relative distance calculation means 40, a synchronous axis command means 41,
And a machine control signal processing unit 50 having a synchronization determination means 42.
In addition, in addition to the machine control signal processing means 51, there is provided a synchronous control completion signal output means 53 during axis movement. The servo control unit 80 for each axis includes a gain switching unit 81.

【0127】軸移動中同期制御モード指令解析手段12
は、加工プログラムに記述された同期距離を含む軸移動
中同期制御モード設定指令と軸移動中同期制御モード解
除指令とを解析する。
Synchronous control mode command analyzing means 12 during axis movement
Analyzes the axis movement synchronous control mode setting command and the axis movement synchronous control mode release command including the synchronization distance described in the machining program.

【0128】軸移動中同期制御モード切り替え手段33
は、軸移動中同期制御モード指令解析手段12による軸
移動中同期制御モード設定指令の解析により同期軸の加
減速特性およびサーボ制御特性を基準軸の加減速特性お
よびサーボ制御特性と同じ特性にする軸移動中同期制御
モードを設定し、軸移動中同期制御モード解除指令の解
析により同期軸の加減速特性およびサーボ制御特性を同
期軸本来の加減速特性およびサーボ制御特性に戻して通
常モードにする。
Synchronous control mode switching means 33 during axis movement
Is the same as the acceleration / deceleration characteristic and the servo control characteristic of the reference axis by the analysis of the axis movement synchronous control mode setting command by the axis movement synchronous control mode command analysis means 12. Set the synchronous control mode during axis movement and return the normal axis acceleration / deceleration characteristics and servo control characteristics of the synchronous axis to the normal mode by analyzing the synchronous movement mode release command during axis movement. .

【0129】相対距離計算手段40は移動中の現在の基
準軸と同期軸との相対距離を計算する。
The relative distance calculating means 40 calculates the relative distance between the current reference axis and the synchronous axis which are moving.

【0130】同期軸指令手段41は、移動中同期制御モ
ード時において、加工プログラムによって指定された同
期距離と相対距離計算手段40によって計算された相対
距離とを比較し、相対距離が同期距離と一致した場合に
基準軸の単位時間当たりの移動指令と同じ移動指令を同
期軸に対して出力する。
The synchronous axis command means 41 compares the synchronous distance designated by the machining program with the relative distance calculated by the relative distance calculating means 40 in the moving synchronous control mode, and the relative distance matches the synchronous distance. In that case, the same movement command as the movement command per unit time of the reference axis is output to the synchronous axis.

【0131】同期判定手段42は、相対距離が同期距離
と一致した時点から同期軸の加減速時定数が示す時間と
サーボ制御系のゲインの逆数が示す時間との合計時間が
経過した時点をもって基準軸と同期軸の同期完了を判定
する。
The synchronization determining means 42 is based on the time point when the total time of the time indicated by the acceleration / deceleration time constant of the synchronous axis and the time indicated by the reciprocal of the gain of the servo control system has elapsed from the time point when the relative distance matches the synchronization distance. Judge that the synchronization between the axis and the synchronization axis is complete.

【0132】軸移動中同期制御完了信号出力手段53
は、同期判定手段42で判定された同期完了の通知によ
ってラダー回路部55の軸移動中同期制御完了信号をオ
ンさせる。
Synchronous control completion signal output means 53 during axis movement
Turns on the synchronous control completion signal during axis movement of the ladder circuit section 55 by the notification of the completion of synchronization determined by the synchronization determination means 42.

【0133】次に実施の形態3の動作を説明する。な
お、図16は実施の形態3における第1系統の加工プロ
グラムの例を示しており、図17は可動軸の速度加減速
パターンを示している。
Next, the operation of the third embodiment will be described. 16 shows an example of the machining program of the first system in the third embodiment, and FIG. 17 shows a speed acceleration / deceleration pattern of the movable shaft.

【0134】まず図18を参照して軸移動中同期制御モ
ード設定ルーチンを説明する。
First, the synchronous control mode setting routine during axis movement will be described with reference to FIG.

【0135】同期制御させたい軸の指定は、加工プログ
ラムにおいて軸移動中同期制御モード指令“G128”
に続く軸指定記述で行う。図18に示されている加工プ
ログラムでは、“G128X1=X2”であり、X1は
第1系統のX軸を、X2は第2系統のX軸を各々表して
いる。この軸指定記述における“=”の左側は同期軸
を、右側は基準軸を表わしている。この場合、第1系統
のX軸が基準軸で、第2系統のX軸が同期軸である。
“P”は同期軸が基準軸と同期して移動する場合の間
隔、すなわち同期距離を指定する。“P5.000”は
同期距離は5mmであることを示している(ステップS
90)。以下の説明では、この同期距離をDsetと云
うことがある。
The axis to be synchronously controlled is specified by the synchronous program mode command "G128" during axis movement in the machining program.
Follow the axis specification description. In the machining program shown in FIG. 18, "G128X1 = X2", X1 represents the X axis of the first system, and X2 represents the X axis of the second system. The left side of “=” in the axis designation description represents the synchronization axis, and the right side represents the reference axis. In this case, the X axis of the first system is the reference axis, and the X axis of the second system is the synchronization axis.
“P” designates an interval when the synchronous axis moves in synchronization with the reference axis, that is, a synchronous distance. "P5.000" indicates that the synchronization distance is 5 mm (step S
90). In the following description, this synchronization distance may be referred to as Dset.

【0136】該指令は軸移動中同期制御モード指令解析
手段12によって解析され、第2系統のX軸(X2)を
同期軸に、第1系統のX軸(X1)を基準軸とするとい
う情報と同期距離とをメモリ20に格納する。
Information that the command is analyzed by the synchronous control mode command analyzing means 12 during axis movement, and that the X axis (X2) of the second system is the synchronous axis and the X axis (X1) of the first system is the reference axis. And the synchronization distance are stored in the memory 20.

【0137】つぎに、基準軸・同期軸管理手段32が、
メモリ20に格納された同期制御モード指令に関するデ
ータを読み出し、基準軸と同期軸とが第1系統のX軸と
第2系統のX軸のような平行軸であるかをチェックする
(ステップS91)。同期制御可能な組み合わせでない
場合にはアラーム処理を行い(ステップS94)、処理
を終了する。
Next, the reference axis / synchronous axis managing means 32
The data relating to the synchronous control mode command stored in the memory 20 is read to check whether the reference axis and the synchronous axis are parallel axes such as the X axis of the first system and the X axis of the second system (step S91). . If it is not a combination that can be synchronously controlled, an alarm process is performed (step S94), and the process ends.

【0138】同期制御可能な組み合わせである場合に
は、軸移動中同期制御モード切り替え手段33が基準軸
(この場合、第1系統のX軸)と同期軸(この場合、第
2系統のX軸)の情報をメモリ20から読み出し、ま
た、予めメモリ20に格納されている基準軸と同期軸の
機械座標の位置関係を読み出し、同期軸の機械位置また
はワーク座標値を基準軸の座標系で計算するように補間
処理手段31に指示する(ステップS92)。
In the case of a combination in which synchronous control is possible, the synchronous control mode switching means 33 during axis movement is synchronized with the reference axis (in this case, the X axis of the first system) and the synchronous axis (in this case, the X axis of the second system). ) Information is read from the memory 20, and the positional relationship between the reference axis and the machine coordinate of the synchronous axis stored in the memory 20 in advance is read, and the machine position of the synchronous axis or the work coordinate value is calculated in the coordinate system of the reference axis The interpolation processing means 31 is instructed to do so (step S92).

【0139】また図17に示されているように、可動軸
が、指令された速度まで加速または減速するのに必要と
する時間、すなわち時定数Ta、Tbや、可動軸が指令
された速度まで加速または減速するための加減速パター
ン(図17では直線加減速パターン)や、サーボモータ
90を駆動するサーボ制御部80のゲインを軸移動中同
期制御モード切り替え手段33が、同期軸のものを基準
軸のものに切り替える(ステップS93)。
As shown in FIG. 17, the time required for the movable shaft to accelerate or decelerate to the commanded speed, that is, the time constants Ta and Tb, and the speed to which the movable shaft is commanded are set. The acceleration / deceleration pattern for accelerating or decelerating (the linear acceleration / deceleration pattern in FIG. 17) and the gain of the servo control unit 80 for driving the servo motor 90 are controlled by the synchronous control mode switching means 33 during axis movement based on the synchronous axis. Switch to the axis type (step S93).

【0140】ゲイン切り替えについては、軸移動中同期
制御モード切り替え手段33から基準軸と同期軸の停止
を確認してゲイン切り替え指令を、対応するサーボ制御
部80に指令する。該指令によってゲイン切り替え手段
81が同期軸のサーボ制御部80のゲインを基準軸のサ
ーボ制御部80のゲインと同じゲインに切り替える。こ
の一連の動作で軸移動中同期制御のための準備を完了す
る。なお、このとき、基準軸、同期軸はともに移動はし
ない。
Regarding gain switching, the synchronous control mode switching means 33 during axis movement confirms the stop of the reference axis and the synchronous axis and issues a gain switching command to the corresponding servo control section 80. The gain switching means 81 switches the gain of the servo control unit 80 of the synchronous axis to the same gain as the gain of the servo control unit 80 of the reference axis by the command. With this series of operations, preparations for synchronous control during axis movement are completed. At this time, neither the reference axis nor the synchronous axis moves.

【0141】次に、同期軸が移動している基準軸に同期
を開始し、同期完了するまでの動作を図19、図20を
参照して説明する。
Next, the operation from the start of synchronization to the moving reference axis to the completion of synchronization will be described with reference to FIGS. 19 and 20.

【0142】軸移動中同期制御モード切り替え手段33
からの時定数等の切り替え完了通知を受けて相対距離計
算手段40が、補間処理手段31から基準軸および同期
軸の指令機械位置を読み出し、基準軸(X1)と同期軸
(X2)の間隔、すなわち相対距離Dの計算を開始する
(ステップS100)。
Synchronous control mode switching means 33 during axis movement
In response to the completion notification of switching of the time constant and the like from, the relative distance calculation means 40 reads out the command machine positions of the reference axis and the synchronous axis from the interpolation processing means 31, and the distance between the reference axis (X1) and the synchronous axis (X2), That is, the calculation of the relative distance D is started (step S100).

【0143】この計算は次のように行う。第1系統の機
械座標原点と第2系統の機械座標原点のオフセットを予
め定義してこの情報をメモリ20に格納しておく。図2
1では第1系統のX軸(X1)の機械座標原点と第2系
統のX軸(X2)の機械座標原点のオフセットOFが示
されている。相対距離Dは、図21の場合、下式により
計算する。
This calculation is performed as follows. An offset between the machine coordinate origin of the first system and the machine coordinate origin of the second system is defined in advance and this information is stored in the memory 20. Figure 2
1 shows an offset OF of the mechanical coordinate origin of the first system X-axis (X1) and the mechanical coordinate origin of the second system X-axis (X2). In the case of FIG. 21, the relative distance D is calculated by the following formula.

【0144】相対距離D=X1 x−X2 x+OF 但し、X1 xは基準軸(X1)の機械位置、X2 xは同
期軸(X2)の機械位置である。
Relative distance D = X1 x-X2 x + OF where X1 x is the mechanical position of the reference axis (X1) and X2 x is the mechanical position of the synchronous axis (X2).

【0145】このようにして計算された相対距離Dは同
期軸指令手段41に渡される。
The relative distance D thus calculated is passed to the synchronous axis command means 41.

【0146】同期軸指令手段41は、メモリ20に格納
された同期距離Dsetを読み出して相対距離計算手段
40が計算した相対距離Dと比較する(ステップS10
1)。D≦Dsetでない場合、即ち相対距離Dが同期
距離Dsetより大きい場合には、ステップS100に
戻って相対距離Dを計算する。
The synchronous axis command means 41 reads the synchronous distance Dset stored in the memory 20 and compares it with the relative distance D calculated by the relative distance calculation means 40 (step S10).
1). If D ≦ Dset is not satisfied, that is, if the relative distance D is greater than the synchronization distance Dset, the process returns to step S100 to calculate the relative distance D.

【0147】図16に示されてる加工プログラムにおい
て基準軸(第1系統のX軸)に対して同期軸に接近する
方向の移動指令“G0X12.0;”が実行されると、
補間処理手段31は図20(a)に示されているよう
に、単位時間当たりの移動指令Mstを基準軸の加減速
処理手段61に出力する。基準軸の加減速処理手段61
は補間処理手段31からの単位時間当たりの移動指令に
対して機械に対するショックまたは機械振動を抑えるた
めに予め指定された加減速パターンに従って漸増する移
動指令Mastを計算する。図20(a)の場合には、
時定数Tstによる直線加減速パターンである。この加
減速パターンは、直線加減速パターンに限れることはな
く、他のパターンであってもよい。
In the machining program shown in FIG. 16, when the movement command "G0X12.0;" for the direction approaching the synchronous axis with respect to the reference axis (X axis of the first system) is executed,
As shown in FIG. 20A, the interpolation processing means 31 outputs a movement command Mst per unit time to the acceleration / deceleration processing means 61 for the reference axis. Reference axis acceleration / deceleration processing means 61
Calculates a movement command Mast that gradually increases in accordance with a predetermined acceleration / deceleration pattern in order to suppress a shock or machine vibration to the machine with respect to the movement command per unit time from the interpolation processing means 31. In the case of FIG. 20 (a),
It is a linear acceleration / deceleration pattern with a time constant Tst. This acceleration / deceleration pattern is not limited to the linear acceleration / deceleration pattern, and may be another pattern.

【0148】加減速処理手段61によって計算された単
位時間当たりの移動指令Mastは軸移動量出力回路7
0を介してサーボ移動指令として基準軸のサーボ制御部
80に出力される。サーボ制御部80がサーボ移動指令
に従ってサーボモータ90を駆動することによって基準
軸が移動する。
The movement command Mast per unit time calculated by the acceleration / deceleration processing means 61 is the axis movement amount output circuit 7.
A servo movement command is output via 0 to the servo control unit 80 of the reference axis. The servo control unit 80 drives the servo motor 90 in accordance with the servo movement command to move the reference axis.

【0149】実際のサーボモータ90は、図20(a)
の補間処理手段31からの単位時間当たりの移動指令M
stに対して、図20(b)に示されているように、加
減速による遅れとサーボモータの追従遅れによって軌跡
Astで示されているような移動になり、補間処理手段
31からの単位時間当たりの移動指令Mstに対して遅
れLstをもって追従することになる。この追従遅れL
stは以下のように計算される。
The actual servomotor 90 is shown in FIG.
Movement command M per unit time from the interpolation processing means 31 of
With respect to st, as shown in FIG. 20 (b), the movement as shown by the locus Ast occurs due to the delay due to acceleration / deceleration and the tracking delay of the servo motor, and the unit time from the interpolation processing means 31. It follows the hit movement command Mst with a delay Lst. This tracking delay L
st is calculated as follows.

【0150】加減速による遅れLast=(軸送り速度
Vst・加減速時定数Tst)/2 サーボモータの追従遅れLmst=軸送り速度Vst/
サーボ制御部のゲイン Gsst 追従遅れLst=Last+Lmst 基準軸の移動によりD≦Dset(ステップS101肯
定)で、D≧Dset(ステップS102肯定)になる
と、即ち、相対距離D=同期距離Dsetになると、同
期軸指令手段41が補間処理手段31の同期軸に対する
単位時間当たりの移動指令を読み出して同期軸が停止中
であるか否かを判断し(ステップS103)、同期軸が
移動中の場合には、アラーム処理を実行し(ステップS
107)、処理を終了する。なお、D≦Dset(ステ
ップS101肯定)で、軸移動中同期制御モード指令が
指令されたときに相対距離Dがすでに同期距離Dset
よりも小さい場合も(ステップS102否定)、アラー
ム処理を実行し(ステップS107)、処理を終了す
る。
Delay due to acceleration / deceleration Last = (axis feed speed Vst / acceleration / deceleration time constant Tst) / 2 Servo motor following delay Lmst = axis feed speed Vst /
Gain of servo control unit Gsst Tracking delay Lst = Last + Lmst When D ≦ Dset (affirmative in step S101) and D ≧ Dset (affirmative in step S102) due to movement of the reference axis, that is, when relative distance D = synchronous distance Dset, synchronization is achieved. The axis command means 41 reads the movement command per unit time for the synchronous axis of the interpolation processing means 31 and determines whether or not the synchronous axis is stopped (step S103). If the synchronous axis is moving, Perform alarm processing (step S
107) and ends the process. It should be noted that when D ≦ Dset (Yes at step S101), the relative distance D is already the synchronization distance Dset when the axis movement synchronous control mode command is issued.
If it is smaller than (NO at step S102), the alarm process is executed (step S107), and the process ends.

【0151】同期軸が停止中であれば、つぎに同期軸指
令手段41が基準軸の単位時間当たりの移動指令を同期
軸に対して出力するように補間処理手段31に指令する
(ステップS104)。補間処理手段31は同期軸指令
手段41からの指令を受けて基準軸の単位時間当たりの
移動指令と全く同じ移動指令を同期軸の加減速処理手段
61にも出力する。すなわち、図20(c)の移動指令
Mst=Msyが加減速処理手段61に出力されること
になる。
If the synchronous axis is stopped, the synchronous axis command means 41 then commands the interpolation processing means 31 to output a movement command of the reference axis per unit time to the synchronous axis (step S104). . The interpolation processing means 31 receives the command from the synchronous axis command means 41 and outputs the same movement command as the movement command per unit time of the reference axis to the acceleration / deceleration processing means 61 of the synchronous axis. That is, the movement command Mst = Msy in FIG. 20C is output to the acceleration / deceleration processing means 61.

【0152】このとき、基準軸と同期軸のサーボモータ
90における位置は、図20(a)、(b)に示した同
期距離Dsetと追従遅れLstを合計した分だけ離れ
ていることになる。しかしながら、同期軸のサーボモー
タ90が加速を完了した後は、基準軸と同期軸は軸移動
中同期制御モード指令で指令された同期距離Dsetを
保ちながら移動することになる。以下にこれを説明す
る。
At this time, the positions of the reference axis and the synchronous axis in the servo motor 90 are separated by the sum of the synchronous distance Dset and the tracking delay Lst shown in FIGS. 20 (a) and 20 (b). However, after the servomotor 90 for the synchronous axis completes acceleration, the reference axis and the synchronous axis move while maintaining the synchronous distance Dset commanded by the synchronous control mode command during axis movement. This will be explained below.

【0153】同期軸の加減速処理手段61は補間処理手
段31からの単位時間当たりの移動指令Msyに対して
機械に対するショックまたは機械振動を抑えるために予
め指定された加減速パターンに従って移動指令Masy
を計算する。このとき、加減速による遅れLasy=
(速度Vsy・加減速時定数Tsy)/2が発生する
が、軸移動中同期制御モード指令を指令した時に同期軸
の加減速パターンと加減速時定数は基準軸のものに切り
替っているため、また、同期軸には基準軸と同じ単位時
間当たりの移動指令(速度)を出力するため、速度Vs
t=速度Vsy、加減速時定数Tst=加減速時定数T
syで、基準軸の加減速による遅れLastと同期軸の
加減速による遅れLasyは互いに等しくなる。
The acceleration / deceleration processing means 61 for the synchronous axis responds to the movement command Msy per unit time from the interpolation processing means 31 in accordance with a pre-designated acceleration / deceleration pattern in order to suppress shock or mechanical vibration to the machine.
Is calculated. At this time, delay due to acceleration / deceleration Lasy =
(Speed Vsy / acceleration / deceleration time constant Tsy) / 2 occurs, but when the synchronous control mode command during axis movement is issued, the acceleration / deceleration pattern and acceleration / deceleration time constant of the synchronous axis are switched to those of the reference axis. Also, since the same movement command (speed) per unit time as the reference axis is output to the synchronous axis, the speed Vs
t = speed Vsy, acceleration / deceleration time constant Tst = acceleration / deceleration time constant T
At sy, the delay Last due to acceleration / deceleration of the reference axis and the delay Lasy due to acceleration / deceleration of the synchronous axis are equal to each other.

【0154】また、加減速処理手段61で計算された単
位時間当たりの移動指令Masyは軸移動量出力回路7
0を介してサーボ移動指令として同期軸のサーボ制御部
80に出力される。このとき、同期軸でも、基準軸の場
合と同様に、サーボモータの追従遅れLmsy=速度V
sy/サーボ制御部のゲインGssyが発生するが、軸
移動中同期制御モード指令を指令した時にサーボ制御部
のゲインGssyは基準軸のサーボ制御部のゲインGs
stに切り替えているため、また、同期軸には基準軸と
同じ単位時間当たりの移動指令(速度)を出力するた
め、速度Vst=速度Vsy、基準軸サーボ制御部のゲ
インGsst=同期軸サーボ制御部のゲインGssyで
あるため、基準軸のサーボモータの追従遅れLmstと
同期軸のサーボモータの追従遅れLmsyは互いに等し
くなる。
The movement command Masy per unit time calculated by the acceleration / deceleration processing means 61 is the axis movement amount output circuit 7.
A servo movement command is output to the synchronous axis servo control unit 80 via 0. At this time, in the synchronous axis as well as in the case of the reference axis, the tracking delay of the servo motor Lmy = speed V
The gain Gssy of the sy / servo control unit occurs, but when the synchronous control mode command during axis movement is commanded, the gain Gssy of the servo control unit is the gain Gs of the servo control unit of the reference axis.
Since it is switched to st, and the same movement command (speed) per unit time as the reference axis is output to the synchronous axis, the speed Vst = speed Vsy, the gain Gsst of the reference axis servo control unit = synchronous axis servo control. Since the gain is Gssy, the tracking delay Lmst of the reference axis servo motor and the tracking delay Lmsy of the synchronous axis servo motor are equal to each other.

【0155】以上より、基準軸の追従遅れLstと同期
軸の追従遅れLsyとは互いに等しくなる。
From the above, the tracking delay Lst of the reference axis and the tracking delay Lsy of the synchronous axis are equal to each other.

【0156】したがって、同期軸の加速完了時には、基
準軸と同期軸のサーボモータ間の距離Dは基準軸の単位
時間当たりの移動指令を同期軸に指令開始したときの同
期距離Dsetに等しくなる。すなわち、軸移動中同期
制御モード指令において同期軸の時定数、加減速パター
ン、サーボ制御部のゲインを基準軸のものと同一にして
おけば、補間処理手段31が持っている基準軸と同期軸
の指令機械位置の距離、すなわち相対距離Dが同期距離
Dsetに等しくなったときに、補間処理手段31の基
準軸の単位時間当たりの移動指令を同期軸に出力するこ
とを開始するだけで軸移動中同期制御を実現することが
できる。
Accordingly, when the acceleration of the synchronous axis is completed, the distance D between the reference axis and the servo motor of the synchronous axis becomes equal to the synchronous distance Dset when the movement command of the reference axis per unit time is started to the synchronous axis. That is, if the time constant of the synchronous axis, the acceleration / deceleration pattern, and the gain of the servo control unit are set to be the same as those of the reference axis in the synchronous movement mode command during axis movement, the reference axis and the synchronous axis that the interpolation processing means 31 has. When the distance of the command machine position, that is, the relative distance D becomes equal to the synchronization distance Dset, the axis movement is performed only by starting to output the movement command per unit time of the reference axis of the interpolation processing means 31 to the synchronization axis. Medium synchronization control can be realized.

【0157】同期判定手段42は、同期軸指令手段41
が基準軸の単位時間当たりの移動指令を同期軸に対して
出力するように補間処理手段31に指令した時点、換言
すれば相対距離Dが同期距離とDsetiに一致した時
点から、同期軸が加速完了するまでの時間(Ts+T
g)をカウントし、時間(Ts+Tg)が経過した時点
をもって基準軸と同期軸の同期完了を判定する(ステッ
プS105)。
The synchronization judgment means 42 is the synchronization axis command means 41.
From the time when the interpolating means 31 is instructed to output a movement command of the reference axis per unit time to the synchronous axis, in other words, from the time when the relative distance D matches the synchronous distance and Dseti, the synchronous axis accelerates. Time to complete (Ts + T
g) is counted, and when the time (Ts + Tg) has elapsed, the completion of synchronization between the reference axis and the synchronization axis is determined (step S105).

【0158】ここで、時間Tsは基準軸(同期軸)の加
減速時定数を、Tgは基準軸(同期軸)のサーボ制御部
80のゲインの逆数で、サーボモータ90が指令された
速度近辺になるまでの時間を表わしている。同期軸が加
速完了するまでの時間(Ts+Tg)をカウントする
と、同期判定手段42は軸移動中同期制御完了信号出力
手段53に同期完了を通知する。
Here, time Ts is the acceleration / deceleration time constant of the reference axis (synchronous axis), Tg is the reciprocal of the gain of the servo control section 80 of the reference axis (synchronous axis), and the servo motor 90 is near the speed commanded. It represents the time until. When counting the time (Ts + Tg) until the acceleration of the synchronous axis is completed, the synchronization determination means 42 notifies the synchronization control completion signal output means 53 during axis movement of the completion of synchronization.

【0159】軸移動中同期制御完了信号出力手段53が
同期判定手段42からの同期完了通知を受けて、図22
に示されているラダー回路部55の軸移動中同期制御完
了信号“X280”をオンする(ステップS106)。
これによって、ラダー回路部55は軸移動中同期制御完
了を知ることができ、軸移動中同期制御完了を検知して
他の機械動作等を実行することができる。
22. When the synchronization control completion signal output means 53 during axis movement receives the synchronization completion notification from the synchronization determination means 42, FIG.
The synchronous control completion signal "X280" during axis movement of the ladder circuit section 55 shown in (1) is turned on (step S106).
Thereby, the ladder circuit unit 55 can know the completion of the synchronous control during the axis movement, and can detect the completion of the synchronous control during the axis movement and execute another mechanical operation or the like.

【0160】なお、実施の形態3における軸移動中同期
解除処理、軸移動中同期制御モード解除は実施の形態1
における場合と同等に行うことができる。
In addition, in the third embodiment, the synchronous movement canceling process during axis movement and the synchronous control mode canceling during axial movement are performed in the first embodiment.
It can be carried out in the same manner as in the case of.

【0161】図23(a)、(b)は工作機械の一種で
ある自動旋盤の構成図である。この自動旋盤の構造は図
14(a)、(b)に示されている自動旋盤と同じであ
るから、その説明は省略する。
23 (a) and 23 (b) are block diagrams of an automatic lathe which is a type of machine tool. Since the structure of this automatic lathe is the same as that of the automatic lathe shown in FIGS. 14A and 14B, the description thereof will be omitted.

【0162】図23(a)に示されているように、旋削
加工を行うために、タレット731が背面主軸台732
に衝突する位置に背面主軸台732が位置決めされてい
る状態において、プログラムミスによってタレット73
1をワークWの近くに位置決めすると、タレット731
は背面主軸台732に衝突する可能性がある。
As shown in FIG. 23 (a), the turret 731 is provided on the rear headstock 732 in order to perform turning.
While the rear headstock 732 is positioned at the position where it collides with the turret 73 due to a programming error.
1 is positioned near the work W, the turret 731
May collide with the back headstock 732.

【0163】そこで、タレット731のX軸、すなわち
第1系統のX軸を基準軸に、背面主軸台732のX軸、
すなわち第2系統のX軸を同期軸として、また、同期距
離Dsetを軸移動中同期制御モード指令で予め指定し
ておけば、プログラムミスでタレット731がワークW
に近づく方向に移動し、背面主軸台732に接近した場
合でも、背面主軸台732がタレット731のX軸の動
きに同期して移動するため、タレット731が背面主軸
台732に衝突することを未然に防ぐことができる。
Therefore, with the X-axis of the turret 731, that is, the X-axis of the first system as the reference axis, the X-axis of the rear headstock 732,
That is, if the X-axis of the second system is used as the synchronous axis and the synchronous distance Dset is designated in advance by the synchronous control mode command during axis movement, the turret 731 will cause the work W to move due to a programming error.
Even when the turret 731 moves toward the rear turret 732 even when it approaches the rear headstock 732, the rear turret 732 moves in synchronization with the movement of the turret 731 in the X-axis. Can be prevented.

【0164】また、図23(b)に示されているよう
に、図23(a)で選択されていた工具735よりも長
い工具739が選択された場合には、工具739が選択
されたときに、図23(a)における同期距離Dset
よりも長い同期距離Dsetを軸移動中同期制御モード
指令で指定しておけば、図23(a)における場合と同
様に、タレット731が背面主軸台732に衝突するこ
とを未然に防ぐことができる。
As shown in FIG. 23B, when the tool 739 longer than the tool 735 selected in FIG. 23A is selected, when the tool 739 is selected, 23A, the synchronization distance Dset in FIG.
If a longer synchronous distance Dset is specified by the synchronous control mode command during axis movement, it is possible to prevent the turret 731 from colliding with the rear headstock 732 as in the case of FIG. .

【0165】以上のように、選択された工具に応じて同
期距離Dsetを軸移動中同期制御モード指令で指定し
ておくことにより、プログラムミスがあっても簡単にタ
レット731と背面主軸台732の衝突を回避すること
ができる。
As described above, the synchronous distance Dset is designated by the synchronous control mode command during axis movement according to the selected tool, so that even if there is a programming error, the turret 731 and the back spindle 732 can be easily operated. Collisions can be avoided.

【0166】また、図24に示されているように、図1
6の加工プログラムに、“G128X3=X1P8.0
00;”の指令行を追加することにより、X1基準軸と
X2同期軸との同期制御に加えて、X1を基準軸に、第
3系統のX軸(X3)を同期軸とし、同期距離を8mm
として同期制御を行うことができる。即ち、基準軸に2
つ以上の同期軸を同期制御させることができる。
Moreover, as shown in FIG.
In the machining program of No. 6, “G128X3 = X1P8.0
By adding the command line of "00;", in addition to the synchronous control of the X1 reference axis and the X2 synchronization axis, the X1 (X3) of the third system is used as the synchronization axis and the synchronization distance is increased. 8 mm
The synchronous control can be performed as. That is, 2 on the reference axis
It is possible to synchronously control one or more synchronous axes.

【0167】この加工プログラムによる同期制御動作を
図25(a)〜(c)を参照して説明する。
The synchronous control operation by this machining program will be described with reference to FIGS. 25 (a) to 25 (c).

【0168】第1系統のX軸(X1)を基準軸に、第2
系統のX軸(X2)を第1同期軸にした同期距離5mm
の軸移動中同期制御モード指令“G128X2=X1P
5.000;”と、第1系統のX軸(X1)を基準軸
に、第3系統のX軸(X3)を第2同期軸にした同期距
離8mmの軸移動中同期制御モード指令、“G128X
3=X1P8.000;”とを指令する。
With the X axis (X1) of the first system as the reference axis, the second axis
Synchronous distance 5mm with the X axis (X2) of the system as the first synchronous axis
Synchronous control mode command during axis movement of "G128X2 = X1P
5.000; ", and a synchronous control mode command during axis movement for a synchronous distance of 8 mm with the X axis (X1) of the first system as the reference axis and the X axis (X3) of the third system as the second synchronous axis. G128X
3 = X1P 8.000; ”.

【0169】次に基準軸に対して移動指令“G0X1
2.0;”を指令し、図25(a)に示されているよう
に、基準軸X1を同期軸X2、X3に向かって移動させ
る。なお、図25(a)〜(c)では、Aは基準軸X1
と第1同期軸X2との同期距離(5mm)を、Bは基準
軸X1と第2同期軸X3との同期距離(8mm)を各々
示している。
Then, a movement command "G0X1" is issued to the reference axis.
2.0; ", and the reference axis X1 is moved toward the synchronous axes X2 and X3 as shown in FIG. 25 (a). In FIGS. 25 (a) to 25 (c), A is the reference axis X1
Shows the synchronization distance (5 mm) between the first synchronization axis X2 and B, and B shows the synchronization distance (8 mm) between the reference axis X1 and the second synchronization axis X3.

【0170】次に図25(b)に示されているように、
基準軸X1が第1同期軸X2に近づくと、図19のフロ
ーチャートで説明した動作に従って第1同期軸X2は基
準軸X1に対して同期を開始し、同期距離Aを保ちなが
ら移動する。
Next, as shown in FIG. 25 (b),
When the reference axis X1 approaches the first synchronization axis X2, the first synchronization axis X2 starts synchronization with the reference axis X1 according to the operation described in the flowchart of FIG. 19, and moves while maintaining the synchronization distance A.

【0171】さらに、図25(c)に示されているよう
に、基準軸X1が第2同期軸X3に近づくと、図19の
フローチャートで説明した動作と同等の動作に従って第
2同期軸X3も基準軸X1に対して同期を開始し、同期
距離Bを保ちながら移動する。
Further, as shown in FIG. 25 (c), when the reference axis X1 approaches the second synchronous axis X3, the second synchronous axis X3 also follows the operation equivalent to the operation described in the flowchart of FIG. The synchronization is started with respect to the reference axis X1, and the movement is performed while keeping the synchronization distance B.

【0172】このようにして、基準軸に2つ以上の同期
軸を同期制御させることができる。
In this way, two or more synchronous axes can be synchronously controlled with respect to the reference axis.

【0173】なお、図25(a)〜(c)において、E
は基準軸X1に対する移動指令“G0X12.0;”の
終点位置を示している。
In FIGS. 25A to 25C, E
Indicates the end point position of the movement command “G0X12.0;” with respect to the reference axis X1.

【0174】(実施の形態4)図26はこの発明による
同期制御装置を含む数値制御装置の実施の形態4を示し
ている。尚、図26に於いて、図1に対応する部分は図
1に付した符号と同一の符号を付けてその説明を省略す
る。
(Embodiment 4) FIG. 26 shows Embodiment 4 of the numerical controller including the synchronous controller according to the present invention. 26, the parts corresponding to those in FIG. 1 are designated by the same reference numerals as those in FIG. 1, and the description thereof will be omitted.

【0175】この実施の形態では、実施の形態1のもの
に、同期軸減速開始位置計算手段44と、同期軸減速開
始位置判定手段45とが補間処理部30に追加されてい
る。
In this embodiment, a synchronous axis deceleration start position calculation means 44 and a synchronous axis deceleration start position determination means 45 are added to the interpolation processing section 30 in the first embodiment.

【0176】同期軸減速開始位置計算手段44は、指定
された同期解除位置と、軸送り速度と、加減速特性か
ら、同期軸の減速開始位置を計算する。この実施の形態
では、同期解除位置は図27に示されている加工プログ
ラムにコード“R”で同期解除位置を記述することによ
り加工プログラムにより指定する。
The synchronous axis deceleration start position calculating means 44 calculates the deceleration start position of the synchronous axis from the specified synchronization release position, the axis feed speed, and the acceleration / deceleration characteristics. In this embodiment, the sync release position is specified by the machining program by describing the sync release position with the code "R" in the machining program shown in FIG.

【0177】同期軸減速開始位置判定手段45は、同期
軸が同期軸減速開始位置計算手段44によって計算され
た減速開始位置に到達したことを判定し、同期軸を減速
停止させる信号処理を行う。
The synchronous axis deceleration start position determination means 45 determines that the synchronous axis has reached the deceleration start position calculated by the synchronous axis deceleration start position calculation means 44, and performs signal processing for decelerating and stopping the synchronous axis.

【0178】次に実施の形態4の動作を説明する。な
お、この実施の形態でも、第2系統のX軸(X2)を同
期軸とし、第1系統のX軸(X1)を基準軸として同期
制御させることを考える。
Next, the operation of the fourth embodiment will be described. Also in this embodiment, it is considered that the X axis (X2) of the second system is used as the synchronization axis and the X axis (X1) of the first system is used as the reference axis for synchronous control.

【0179】まず図28を参照して軸移動中同期制御モ
ード設定ルーチンを説明する。
First, the synchronous control mode setting routine during axis movement will be described with reference to FIG.

【0180】同期制御させたい軸の指定および同期解除
位置を図27の加工プログラムに例示されているよう
に、軸移動中同期制御モード指令“G128X2=X1
R10.00;”の記述で指令する(ステップS11
0)。“G128”は軸移動中同期制御モード指令、
“X2”は第2系統のX軸を、“X1”は第1系統のX
軸を表わしており、=の左側は同期軸を、右側は基準軸
を表わしている。また、“R”に続く数値は同期解除す
る位置を表している。
As shown in the machining program of FIG. 27, the designation of the axis to be synchronously controlled and the synchronous release position are controlled by the synchronous control mode command “G128X2 = X1 during axis movement”.
R10.00; ”is used to instruct (step S11
0). "G128" is the synchronous control mode command during axis movement,
"X2" is the X axis of the second system, and "X1" is the X axis of the first system.
The axis represents the axis, the left side of = represents the synchronization axis, and the right side represents the reference axis. Also, the numerical value following "R" represents the position where the synchronization is released.

【0181】この指令は軸移動中同期制御モード指令解
析手段12で解析処理され、解析結果を補間処理部30
に渡す。加工プログラムによって指定された同期解除位
置はメモリ20に登録される。同期解除位置は図30で
は位置Rcにあたる。
This command is analyzed by the synchronous control mode command analyzing means 12 during axis movement, and the analysis result is interpolated by the interpolation processing unit 30.
Pass to. The synchronization release position designated by the machining program is registered in the memory 20. The desynchronization position corresponds to the position Rc in FIG.

【0182】つぎに、軸移動中同期制御モード指令解析
手段12の解析結果から基準軸・同期軸管理手段32
が、基準軸と同期軸とが第1系統のX軸と第2系統のX
軸のような平行軸であるかをチェックする(ステップS
111)。同期制御可能な組み合わせでない場合にはア
ラーム処理を行い(ステップS115)、処理を終了す
る。
Next, based on the analysis result of the synchronous control mode command analyzing means 12 during axis movement, the reference axis / synchronous axis managing means 32 is provided.
However, the reference axis and the synchronous axis are the X axis of the first system and the X axis of the second system.
Check if the axes are parallel axes (step S)
111). If it is not a combination that can be controlled synchronously, alarm processing is performed (step S115), and the processing ends.

【0183】同期制御可能な組み合わせである場合に
は、軸移動中同期制御モード切り替え手段33が、メモ
リ20に格納されている基準軸と同期軸の機械座標の位
置関係を読み出し、同期軸の機械位置またはワーク座標
値を基準軸の座標系で計算するように補間処理手段31
に指示する(ステップS112)。
In the case of a combination capable of synchronous control, the synchronous control mode switching means 33 during axis movement reads the positional relationship between the reference axis and the machine coordinate of the sync axis stored in the memory 20, and determines the machine of the sync axis. Interpolation processing means 31 for calculating the position or work coordinate value in the coordinate system of the reference axis
(Step S112).

【0184】また軸移動中同期制御モード切り替え手段
33が、選択された同期軸の加減速時定数と、直線加減
速、指数関数加減速等の加減速パターンを基準軸の加減
速時定数と加減速パターンに切り替える(ステップS1
13)。
Further, the axis movement synchronous control mode switching means 33 accelerates / decelerates the constant axis of the selected synchronous axis and acceleration / deceleration patterns such as linear acceleration / deceleration and exponential function acceleration / deceleration with the acceleration / deceleration time constant of the reference axis. Switch to deceleration pattern (step S1
13).

【0185】つぎに、軸移動中同期制御モード指令解析
手段12が同期解除位置をメモリ20に登録し(ステッ
プS114)、処理を終了する。このメモリ20に登録
される同期解除位置は加工プログラムによって指定され
た同期解除位置であり、図30では位置Rcを指すX軸
座標値にあたる。
Next, the axis movement synchronous control mode command analysis means 12 registers the synchronization release position in the memory 20 (step S114), and the processing is terminated. The synchronization release position registered in the memory 20 is the synchronization release position designated by the machining program, and corresponds to the X-axis coordinate value indicating the position Rc in FIG.

【0186】次に図29を参照してこの実施の形態にお
ける同期解除制御ルーチンについて説明する。
Next, with reference to FIG. 29, a synchronization release control routine in this embodiment will be described.

【0187】まず同期軸減速開始位置計算手段44がメ
モリ20に格納されている同期解除位置Rcを読み出す
(ステップS120)。
First, the synchronous axis deceleration start position calculation means 44 reads out the synchronous release position Rc stored in the memory 20 (step S120).

【0188】つぎに、同期軸減速開始位置計算手段44
が、同期軸の送り速度Vと加減速時定数Tsおよび加減
速パターンから減速開始位置Rdsを計算する(ステッ
プS121)。たとえば、図31に示されているような
直線加減速パターンの場合には、停止距離Dstopを
(送り速度V・加減速時定数Ts)/2で計算すること
ができる。また、停止距離Dstopと同期解除位置R
cから、減速開始位置Rdsを、同期解除位置Rs±停
止距離Dstopで計算することができる。±は同期軸
の移動方向によって決まる。
Next, the synchronous axis deceleration start position calculation means 44.
Calculates the deceleration start position Rds from the synchronous axis feed speed V, the acceleration / deceleration time constant Ts, and the acceleration / deceleration pattern (step S121). For example, in the case of the linear acceleration / deceleration pattern as shown in FIG. 31, the stop distance Dstop can be calculated by (feed speed V / acceleration / deceleration time constant Ts) / 2. In addition, the stop distance Dstop and the synchronization release position R
From c, the deceleration start position Rds can be calculated by the synchronization release position Rs ± stop distance Dstop. ± is determined by the moving direction of the synchronous axis.

【0189】つぎに、同期軸減速開始位置判定手段45
が軸制御部60から同期軸の機械位置またはワーク座標
値を読み取り、同期軸が減速開始位置Rdsに到達した
か否かをチェックする(ステップS122)。
Next, the synchronous axis deceleration start position determination means 45.
Reads the machine position or workpiece coordinate value of the synchronous axis from the axis control unit 60, and checks whether the synchronous axis reaches the deceleration start position Rds (step S122).

【0190】図30(1)の状態から、図30(2)に
示されているように、同期軸X2が軸移動して減速開始
位置Rdsに到達すると、同期軸減速開始位置判定手段
45が軸移動中同期制御完了信号出力手段53に対して
軸移動中同期制御完了信号をオフするように指令する。
軸移動中同期制御完了信号出力手段53は該指令を受け
て軸移動中同期制御完了信号をオフする(ステップS1
23)。
As shown in FIG. 30 (2) from the state of FIG. 30 (1), when the synchronous axis X2 axially moves and reaches the deceleration start position Rds, the synchronous shaft deceleration start position determination means 45 is operated. It instructs the axis movement synchronous control completion signal output means 53 to turn off the axis movement synchronous control completion signal.
Receiving the command, the axis moving synchronous control completion signal output means 53 turns off the axis moving synchronous control completion signal (step S1).
23).

【0191】また同期軸X2が軸移動して減速開始位置
Rdsに到達すると、同期軸減速開始位置判定手段45
が同期軸の軸制御部60に対して停止指令を出す(ステ
ップS124)。これにより同期軸X2の軸制御部60
は同期軸X2の加減速時定数と加減速パターンに従って
同期軸X2を減速し、同期軸X2は、図30(3)に示
されているように、指定された同期解除位置Rcにぴっ
たりと停止する。
When the synchronous axis X2 axially moves and reaches the deceleration start position Rds, the synchronous axis deceleration start position determination means 45.
Issues a stop command to the axis control unit 60 of the synchronous axis (step S124). Thereby, the axis control unit 60 for the synchronous axis X2
Decelerates the synchronous axis X2 in accordance with the acceleration / deceleration time constant of the synchronous axis X2 and the acceleration / deceleration pattern, and the synchronous axis X2 stops exactly at the designated desynchronization position Rc as shown in FIG. 30 (3). To do.

【0192】図32(a)、(b)は自動旋盤の構成図
であり、これは実施の形態1で説明したものと同じであ
る。この工作機械を例に取ると、同期解除位置Rcワー
クWk半径+α(微少値)の位置に同期解除位置を指定
すれば、同期制御を解除したときに、図32(b)に示
されているように、タレット等の退避位置を常にワーク
Wに近い位置に設定することができ、次にタレットがワ
ークWを加工する場合にワークWへのアプローチ時間
(エアカットタイム)を短縮することができ、サイクル
タイムを短縮することができる。
32 (a) and 32 (b) are configuration diagrams of an automatic lathe, which is the same as that described in the first embodiment. Taking this machine tool as an example, if the synchronization release position is specified at the position of the synchronization release position Rc workpiece Wk radius + α (small value), when the synchronization control is released, it is shown in FIG. 32 (b). As described above, the retracted position of the turret or the like can always be set to a position close to the work W, and when the turret next processes the work W, the approach time (air cut time) to the work W can be shortened. The cycle time can be shortened.

【0193】なお、この実施の形態4による同期解除制
御ルーチンは実施の形態3のものにも同様に適用でき
る。
The synchronization release control routine according to the fourth embodiment can be similarly applied to that of the third embodiment.

【0194】(実施の形態5)図33はこの発明による
同期制御装置を含む数値制御装置の実施の形態5を示し
ている。尚、図33に於いて、図26に対応する部分は
図26に付した符号と同一の符号を付けてその説明を省
略する。
(Embodiment 5) FIG. 33 shows Embodiment 5 of a numerical controller including a synchronous controller according to the present invention. In addition, in FIG. 33, the portions corresponding to those in FIG. 26 are denoted by the same reference numerals as those in FIG. 26, and the description thereof will be omitted.

【0195】実施の形態5では、実施の形態4にものに
加えて、補間処理部30に切削判定手段46が追加され
ている。また数値制御装置1は、サーボ制御部80に設
けられたモータ電流検出手段(モータ負荷検出手段)8
2が検出するモータ電流(モータ負荷)を取り込むため
のサーボ制御部データ入力部71を有している。
In the fifth embodiment, in addition to the components of the fourth embodiment, a cutting determination means 46 is added to the interpolation processing section 30. Further, the numerical controller 1 includes a motor current detecting means (motor load detecting means) 8 provided in the servo control section 80.
It has a servo control unit data input unit 71 for taking in a motor current (motor load) detected by the control unit 2.

【0196】切削判定手段46は、加工プログラムに記
述された切削指令とモータ電流検出手段82によって検
出したモータ電流とから切削中であるか否かを判定す
る。
The cutting determination means 46 determines whether or not cutting is in progress based on the cutting command described in the machining program and the motor current detected by the motor current detection means 82.

【0197】同期軸減速開始位置計算手段44は、切削
判定手段46の判定が切削中より非切削中に変遷した時
点の座標値に基づいて同期解除位置を指定され、指定さ
れた同期解除位置と、軸送り速度と、加減速特性から、
同期軸の減速開始位置を計算する。
The synchronous axis deceleration start position calculating means 44 designates the synchronization releasing position based on the coordinate value at the time when the determination of the cutting determining means 46 changes from the state of cutting to the state of non-cutting. From the axis feed rate and acceleration / deceleration characteristics,
Calculate the deceleration start position of the synchronous axis.

【0198】この実施の形態5の特徴は、実施の形態4
では同期解除位置を加工プログラムによって指定する代
わりに、特定の切削加工機械における切削加工状態より
同期解除位置を最適位置に自動的に更新することにあ
る。
The feature of the fifth embodiment is that the fourth embodiment is different.
Then, instead of designating the synchronization release position by the machining program, the synchronization release position is automatically updated to the optimum position based on the cutting state of a specific cutting machine.

【0199】次に実施の形態5の動作を説明する。まず
図34(a)、(b)を参照してこの実施の形態5が適
用される自動旋盤の切削動作について説明する。自動旋
盤は1本の長いワークWを正面主軸765で回転させ、
さらに、ワークWを図にて右から左へ移動させ、ワーク
Wをホルダ762の工具735で旋削加工する。
Next, the operation of the fifth embodiment will be described. First, the cutting operation of the automatic lathe to which the fifth embodiment is applied will be described with reference to FIGS. 34 (a) and 34 (b). The automatic lathe rotates one long work W on the front spindle 765,
Further, the work W is moved from right to left in the figure, and the work W is turned by the tool 735 of the holder 762.

【0200】この自動旋盤の座標系は、通常、図34
(a)、(b)に示されているように、左右方向にZ軸
を、上下方向にX軸を取る。ホルダ762はX軸方向の
み移動する構造になっており、背面主軸台732はX
軸、Z軸方向に可動できる構造になっている。ここで
は、ホルダ762を第1系統に、背面主軸台732を第
2系統として定義する。
The coordinate system of this automatic lathe is usually shown in FIG.
As shown in (a) and (b), the Z axis is taken in the horizontal direction and the X axis is taken in the vertical direction. The holder 762 has a structure that moves only in the X-axis direction.
The structure is such that it can move in the axial and Z-axis directions. Here, the holder 762 is defined as the first system, and the rear headstock 732 is defined as the second system.

【0201】つぎに、実施の形態5における同期解除位
置の更新(設定)処理ルーチンを図35を参照して説明
する。この処理ルーチンでは、まず切削判定手段46が
加工プログラム解析手段11のプログラム解析結果を読
み出し、予めパラメータ設定部21で設定された可動軸
が切削指令を実行中であるか否かをチェックする(ステ
ップS130)。ここではパラメータ設定部21で設定
された可動軸を図34の第1系統のZ1軸とする。切削
指令を実行中でない場合には処理を終了する。
Next, the routine for updating (setting) the synchronization release position in the fifth embodiment will be described with reference to FIG. In this processing routine, the cutting determination means 46 first reads the program analysis result of the machining program analysis means 11 and checks whether or not the movable axis set in advance by the parameter setting part 21 is executing the cutting command (step). S130). Here, the movable axis set by the parameter setting unit 21 is the Z1 axis of the first system in FIG. If the cutting command is not being executed, the process ends.

【0202】切削指令を実行中の場合には、切削判定手
段46が予めパラメータ設定部21で設定された可動軸
の負荷電流値(モータ電流設定値Iset)をメモリ2
0から読み出す(ステップS131)。ここではパラメ
ータ設定部21で設定された可動軸を図34の正面主軸
と第1系統のX1軸とZ1軸とする。
When the cutting command is being executed, the cutting judging means 46 stores the load current value (motor current setting value Iset) of the movable axis preset in the parameter setting section 21 in the memory 2.
It is read from 0 (step S131). Here, the movable axes set by the parameter setting unit 21 are the front main spindle in FIG. 34 and the X1 axis and Z1 axis of the first system.

【0203】つぎに、パラメータ設定部21で設定され
た可動軸の実際のモータ電流値を読み出す(ステップS
132)。このモータ電流値の読み出しは以下のように
行う。
Next, the actual motor current value of the movable axis set by the parameter setting section 21 is read (step S
132). The reading of the motor current value is performed as follows.

【0204】まず、電源投入時等に切削判定手段46が
サーボ制御部データ入力部71に対して正面主軸と第1
系統のX1軸とZ1軸のサーボ制御部80からモータ電
流値を読み出すように指令しておく。サーボ制御部デー
タ入力部71は切削判定手段46からの指令を受けて指
定のサーボ制御部80のモータ電流検出手段82に対し
て予めパラメータ等で指定された間隔でモータ電流値を
サーボ制御部データ入力部71に送信するように指令す
る。モータ電流検出手段81は該指令を受けて指定され
た間隔でモータ電流平均値を算出する。このモータ電流
平均値がモータ負荷を示す。
First, when the power is turned on, the cutting determination means 46 causes the servo control section data input section 71 to move to the front spindle and the first spindle.
A command is issued to read the motor current value from the X1 axis and Z1 axis servo control units 80 of the system. The servo control unit data input unit 71 receives a command from the cutting determination unit 46 and sends the motor current value to the motor current detection unit 82 of the designated servo control unit 80 at the intervals designated in advance by parameters or the like. The input unit 71 is instructed to transmit. The motor current detection means 81 receives the command and calculates the motor current average value at a designated interval. This motor current average value indicates the motor load.

【0205】ここで、モータ負荷(モータ電流)の読み
出しについて図36を使って説明する。図36におい
て、tはモータ電流を読み出す間隔を示しており、この
サンプリング間隔tはパラメータ等で予め指定してお
く。またIm1 、Im2 は各々指定された各サンプリン
グ間隔tにおける実際のモータ電流平均値を表してい
る。モータ電流平均値Im2 は切削開始ために、切削開
始前のモータ電流平均値Im1 より大きな値となってい
る。
Now, the reading of the motor load (motor current) will be described with reference to FIG. In FIG. 36, t indicates the interval at which the motor current is read out, and this sampling interval t is specified in advance by a parameter or the like. Further, Im1 and Im2 represent actual motor current average values at the designated sampling intervals t, respectively. The motor current average value Im2 is larger than the motor current average value Im1 before the start of cutting because the cutting is started.

【0206】このように、モータ電流検出手段82は一
定の読み出し間隔でモータ負荷(モータ電流平均値)を
計算し、パラメータ等で指定された間隔でモータ電流平
均値Imn をサーボ制御部データ入力部71に送信す
る。切削判定手段46はサーボ制御部データ入力部71
に入力されたモータ電流平均値(モータ負荷)を読み出
す。
As described above, the motor current detecting means 82 calculates the motor load (motor current average value) at a constant reading interval, and outputs the motor current average value Imn at the interval designated by the parameter or the like. 71. The cutting determination unit 46 is a servo control unit data input unit 71.
The motor current average value (motor load) input to is read.

【0207】つぎに、切削判定手段46がサーボ制御部
80より与えらるモータ電流平均値値Imn とメモリ2
0から読み出したモータ電流設定値Isetとを比較す
る(ステップS133)。
Then, the motor current average value Imn and the memory 2 given by the cutting determination means 46 from the servo controller 80 are stored.
The motor current setting value Iset read from 0 is compared (step S133).

【0208】Imn >Isetであれば、切削判定手段
46が指定された可動軸、ここではX1軸とZ1軸の現
在の機械位置としてワーク座標値をX1軸とZ1軸の軸
制御部60から読み出し、メモリ20に登録する(ステ
ップS134)。
If Imn> Iset, the cutting determination means 46 reads the work coordinate value from the axis control unit 60 for the X1 axis and Z1 axis as the current machine position of the specified movable axis, here the X1 axis and Z1 axis. , Is registered in the memory 20 (step S134).

【0209】ワーク座標値はワークWの特定箇所を原点
に決めた座標系における座標値である。機械が固有に持
っている機械座標値でワークWを切削するための加工プ
ログラムをプログラミングすることは非常に難しいか
ら、数値制御装置1はプログラミングをしやすくするた
めにワークWの特定箇所を原点に決めた座標系を持って
いる。
The work coordinate value is a coordinate value in a coordinate system in which a specific point of the work W is set as the origin. Since it is very difficult to program a machining program for cutting the work W with the machine coordinate values that the machine has uniquely, the numerical controller 1 uses the specific point of the work W as the origin in order to facilitate the programming. It has a fixed coordinate system.

【0210】なお、Imn >Isetでない場合には、
このワーク座標値のメモリ登録更新は行わない。
When Imn> Iset is not satisfied,
The memory registration and update of this work coordinate value is not performed.

【0211】つぎに、切削判定手段46が加工プログラ
ム解析手段11のプログラム解析結果を読み出し、Z1
軸が切削指令を実行中であるか否かをチェックする(ス
テップS135)。切削指令を実行中であれば、ステッ
プS132に戻る。
Next, the cutting determination means 46 reads the program analysis result of the machining program analysis means 11 and Z1
It is checked whether the axis is executing a cutting command (step S135). If the cutting command is being executed, the process returns to step S132.

【0212】切削指令を実行を終了していれば、切削判
定手段46がメモリ20に登録されているX1軸とZ1
軸のワーク座標値から同期解除位置の計算を行う(ステ
ップS136)。
If execution of the cutting command has been completed, the cutting determination means 46 causes the X1 axis and Z1 registered in the memory 20.
The synchronization release position is calculated from the work coordinate value of the axis (step S136).

【0213】この同期解除位置の計算について図37を
参照して説明する。上述のステップS134で登録され
たX1軸とZ1軸のワーク座標値を、Z1軸を基準にプ
ロットすると、線Pが得られ、これは切削後のワーク形
状を表していることになる。現在のZ1軸の位置が決ま
れば、切削後のワーク半径、すなわち切削面のX1軸座
標値を算出することが可能である。ここで算出された切
削面のX1軸座標値は切削前のワーク半径raと比較さ
れ、切削面のX1軸座標値が切削前のワーク半径raよ
り大きい場合には、切削面のX1軸座標値は切削前のワ
ーク半径raに置き換えられる。すなわち、切削面のX
1軸座標値が切削前のワーク半径raより大きくならな
いようにチェックが行われる。
Calculation of the synchronization release position will be described with reference to FIG. When the work coordinate values of the X1 axis and the Z1 axis registered in step S134 described above are plotted on the basis of the Z1 axis, a line P is obtained, which represents the work shape after cutting. If the current position of the Z1 axis is determined, the work radius after cutting, that is, the X1 axis coordinate value of the cutting surface can be calculated. The X1-axis coordinate value of the cutting surface calculated here is compared with the work radius ra before cutting, and when the X1-axis coordinate value of the cutting surface is larger than the work radius ra before cutting, the X1-axis coordinate value of the cutting surface. Is replaced with the work radius ra before cutting. That is, X of the cutting surface
A check is performed so that the uniaxial coordinate value does not become larger than the work radius ra before cutting.

【0214】切削判定手段46は、たとえばZ1軸がR
za位置に位置決めされている場合には、切削面のX1
軸座標値Xaを算出し、Z1軸がRzb位置に位置決め
されている場合には、切削面のX1軸座標値Xbを算出
する。
The cutting determination means 46, for example, the Z1 axis is R
When positioned at the za position, X1 of the cutting surface
The axis coordinate value Xa is calculated, and when the Z1 axis is positioned at the Rzb position, the X1 axis coordinate value Xb of the cutting surface is calculated.

【0215】同期解除時に工具が切削面に衝突すること
を避けるために同期解除位置Rcを以下のように計算す
る。
The sync release position Rc is calculated as follows in order to avoid the tool from colliding with the cutting surface during the sync release.

【0216】同期解除位置Rc=(算出されたX1軸座
標値)+(予めパラメータで設定された値) あるいはZ1軸が移動中の場合には工具が切削面に衝突
することを避けるために、同期解除位置Rc=切削前の
ワーク半径値と計算する。
Desynchronization position Rc = (calculated X1 axis coordinate value) + (value set in advance in parameter) Alternatively, when the Z1 axis is moving, in order to prevent the tool from colliding with the cutting surface, The synchronization release position Rc is calculated as the work radius value before cutting.

【0217】同期解除位置Rcに基づく減速開始位置計
算を含む同期解除動作については実施の形態4と同じで
ある。
The synchronization releasing operation including the deceleration start position calculation based on the synchronization releasing position Rc is the same as that of the fourth embodiment.

【0218】この実施の形態では、図34(b)に示さ
れているように、切削によってワーク半径が小さくなっ
た場合、切削後のワーク半径をもとに同期解除位置Rc
を計算するため、切削前の図34(a)の同期解除位置
Rcは図34(b)の同期解除位置Rcとなる。すなわ
ち、同期解除時にワークWの切削形状に合わせて工具7
35はワークWに近い位置に位置決めされる。したがっ
て、次にワークWを加工する場合にワークWへのアプロ
ーチ時間を実施の形態4の場合よりワークWの加工状況
に適合してさらに短縮することができる。
In this embodiment, as shown in FIG. 34B, when the work radius is reduced by cutting, the synchronization release position Rc is determined based on the work radius after cutting.
34 (a) before cutting, the synchronization release position Rc in FIG. 34 (a) becomes the synchronization release position Rc in FIG. 34 (b). That is, when the synchronization is released, the tool 7
35 is positioned near the work W. Therefore, when the work W is processed next, the approach time to the work W can be further shortened in conformity with the processing situation of the work W as compared with the case of the fourth embodiment.

【0219】なお、この実施の形態5による同期解除位
置の更新(設定)処理ルーチンは実施の形態4の同期解
除制御ルーチンとの組み合わせで、実施の形態3のもの
にも同様に適用できる。
The synchronization release position updating (setting) processing routine according to the fifth embodiment can be similarly applied to the third embodiment in combination with the synchronization release control routine according to the fourth embodiment.

【0220】(実施の形態6)図38はこの発明による
同期制御装置を含む数値制御装置の実施の形態6を示し
ている。尚、図38に於いても、図26に対応する部分
は図26に付した符号と同一の符号を付けてその説明を
省略する。
(Sixth Embodiment) FIG. 38 shows a sixth embodiment of a numerical controller including a synchronous controller according to the present invention. Note that, also in FIG. 38, portions corresponding to those in FIG. 26 are denoted by the same reference numerals as those in FIG. 26, and description thereof will be omitted.

【0221】実施の形態6では、実施の形態4のものに
加えて、補間処理部30に同期軸移動開始位置記憶手段
47が追加されている。
In the sixth embodiment, in addition to that of the fourth embodiment, a synchronization axis movement start position storage means 47 is added to the interpolation processing section 30.

【0222】同期軸移動開始位置記憶手段47は、ラダ
ー回路部55から軸移動中同期開始信号が入力された時
点の同期軸の座標位置あるいは加工プログラムにより指
定された同期開始位置をメモリ20に書き込む処理を行
う。
The synchronous axis movement start position storage means 47 writes in the memory 20 the coordinate position of the synchronous axis at the time when the axis movement synchronization start signal is input from the ladder circuit section 55 or the synchronization start position designated by the machining program. Perform processing.

【0223】同期軸減速開始位置計算手段44は、メモ
リ20が記憶している軸移動中同期開始信号入力時点の
同期軸の座標位置あるいは同期開始位置と、軸送り速度
と、加減速特性から、同期軸の減速開始位置を計算す
る。
The synchronous axis deceleration start position calculating means 44 calculates from the coordinate position or the synchronous start position of the synchronous axis at the time of inputting the synchronous start signal during the axis movement stored in the memory 20, the axis feed speed, and the acceleration / deceleration characteristic. Calculate the deceleration start position of the synchronous axis.

【0224】この実施の形態では、同期移動中の同期軸
が、再度、同期軸移動開始位置に到達すると、同期解除
が行われる。
In this embodiment, when the synchronous axis that is moving synchronously reaches the synchronous axis movement start position again, the synchronization is released.

【0225】次に実施の形態6における軸移動中同期制
御の開始処理ルーチンを図39を参照して説明する。こ
の開始処理ルーチンでは、まず、ラダー回路部55から
の軸移動中同期開始信号を機械制御信号処理部50の軸
移動中同期制御信号検知手段52によって判定する(ス
テップS140)。
Next, the start processing routine of the synchronous control during axis movement in the sixth embodiment will be described with reference to FIG. In this start processing routine, first, the axis movement synchronization start signal from the ladder circuit section 55 is determined by the axis movement synchronization control signal detecting means 52 of the machine control signal processing section 50 (step S140).

【0226】軸移動中同期開始信号が検出されなけれ
ば、処理を終了し、軸移動中同期開始信号が検出されれ
ば、基準軸に対応する軸制御部60の停止確認手段62
によって基準軸の停止を確認する(ステップS14
1)。基準軸が停止中であれば、同期軸に対応する軸制
御部60の停止確認手段62によって同期軸の停止を確
認する(ステップS142)。
If the synchronization start signal during axis movement is not detected, the process is terminated, and if the synchronization start signal during axis movement is detected, the stop confirmation means 62 of the axis control unit 60 corresponding to the reference axis is detected.
Confirms that the reference axis has stopped (step S14)
1). If the reference axis is stopped, the stop confirmation means 62 of the axis control unit 60 corresponding to the synchronous axis confirms the stop of the synchronous axis (step S142).

【0227】同期軸も停止中であれば、同期軸移動開始
位置記憶手段47が同期軸の現在値を同期解除位置とし
てメモリ20に記憶し(ステップS143)、同期確立
処理を行う(ステップS151)。
If the synchronous axis is also stopped, the synchronous axis movement start position storage means 47 stores the current value of the synchronous axis in the memory 20 as the synchronous release position (step S143), and the synchronous establishment process is performed (step S151). .

【0228】これに対し同期軸が停止中でなければ、同
期軸が移動中ということで、アラーム処理を行い(ステ
ップS152)、処理を終了する。
On the other hand, if the synchronous axis is not stopped, it means that the synchronous axis is moving, alarm processing is performed (step S152), and the processing is terminated.

【0229】基準軸が停止中でない場合には、同期軸の
停止を確認し(ステップS144)、同期軸が停止中で
ない場合には、アラーム処理を行い(ステップS15
2)、処理を終了する。
If the reference axis is not stopped, it is confirmed that the synchronous axis is stopped (step S144). If the synchronous axis is not stopped, alarm processing is performed (step S15).
2), the process ends.

【0230】基準軸が移動中で、同期軸が停止中の場合
には、同期軸移動開始位置記憶手段47が同期軸の現在
値を同期解除位置としてメモリ20に記憶する(ステッ
プS145)。
When the reference axis is moving and the synchronous axis is stopped, the synchronous axis movement start position storage means 47 stores the current value of the synchronous axis in the memory 20 as the synchronous release position (step S145).

【0231】つぎに、補間処理部30の残距離指令手段
34が移動中の基準軸の現在の機械位置から指令ブロッ
ク終点までの距離(残距離)を算出し(ステップS14
6)、残距離指令手段34が該計算結果を位置指令とし
て補間処理手段31に渡し、補間処理手段31が同期軸
に対応する軸制御部60に補間データを出力する(ステ
ップS147)。
Next, the remaining distance command means 34 of the interpolation processing section 30 calculates the distance (remaining distance) from the current machine position of the moving reference axis to the command block end point (step S14).
6), the remaining distance command means 34 passes the calculation result as a position command to the interpolation processing means 31, and the interpolation processing means 31 outputs the interpolation data to the axis control unit 60 corresponding to the synchronous axis (step S147).

【0232】つぎに、同期軸に対応する軸制御部60の
加減速処理手段61によって補間データを処理し、これ
を軸移動量出力回路70より同期軸に対応するサーボ制
御部80にサーボ移動指令として送る(ステップS14
8)。これにより同期軸に対応するサーボ制御部80が
サーボ移動指令に従って同期軸に対応するサーボモータ
90を駆動する(ステップS149)。
Next, the acceleration / deceleration processing means 61 of the axis control unit 60 corresponding to the synchronous axis processes the interpolation data, and the axis movement amount output circuit 70 outputs a servo movement command to the servo control unit 80 corresponding to the synchronous axis. Send as (step S14
8). As a result, the servo control unit 80 corresponding to the synchronous axis drives the servo motor 90 corresponding to the synchronous axis according to the servo movement command (step S149).

【0233】つぎに、移動軸停止確認手段35が基準軸
と同期軸に各々対応する軸制御部60の停止確認手段6
2から基準軸と同期軸の停止を確認し(ステップS15
0)、この停止確認をもって同期完了とし、同期確立処
理を行う(ステップS151)。
Next, the moving axis stop confirmation means 35 corresponds to the reference axis and the synchronous axis, and the stop confirmation means 6 of the axis control section 60.
From 2 confirm the stop of the reference axis and the synchronous axis (step S15
0), with this stop confirmation, the synchronization is completed, and the synchronization establishment process is performed (step S151).

【0234】同期解除位置に基づく減速開始位置計算を
含む同期解除動作については実施の形態4と同じであ
る。
The synchronization releasing operation including the deceleration start position calculation based on the synchronization releasing position is the same as that in the fourth embodiment.

【0235】図40は絶対位置指令と増分位置指令の説
明図である。X0pはX2軸のプログラム原点を、Xn
はX2軸の現在位置を、Xeは次の移動指令で位置決め
する終点位置を各々示している。
FIG. 40 is an explanatory diagram of the absolute position command and the incremental position command. X0p is the program origin of X2 axis, Xn
Indicates the current position of the X2 axis, and Xe indicates the end point position for positioning with the next movement command.

【0236】数値制御における移動指令は2種類ある。
1つは絶対位置指令Cabであり、もう1つは増分位置
指令Caddである。絶対位置指令Cabはプログラム
原点X0pからの距離を指定するものであり、図40で
は、絶対位置指令Cabは、終点位置Xe−プログラム
原点X0pで表される。増分位置指令Caddは、軸の
現在位置Xnから目標位置までの差分を指令するもの
で、図40では、増分位置指令Caddは、終点位置X
e−現在位置Xnで表される。
There are two types of movement commands in numerical control.
One is the absolute position command Cab and the other is the incremental position command Cadd. The absolute position command Cab specifies the distance from the program origin X0p, and in FIG. 40, the absolute position command Cab is represented by the end point position Xe-the program origin X0p. The incremental position command Cadd commands the difference from the current position Xn of the axis to the target position. In FIG. 40, the incremental position command Cadd is the end position X.
e-Represented by the current position Xn.

【0237】例えば図40のX2軸の現在位置Xnがず
れてXn’になってしまった場合には、絶対位置指令C
abであれば、終点位置Xeに難なく位置決めすること
ができるが、増分位置指令Caddの場合には、終点位
置XeがXe’の位置になってしまう。このため、増分
位置指令Caddでは、X2軸の位置がずれた場合に
は、それ以降の位置がずれたままになってしまう。
For example, when the current position Xn of the X2 axis in FIG. 40 is deviated to Xn ', the absolute position command C
If it is ab, it is possible to perform the positioning at the end point position Xe without difficulty, but in the case of the incremental position command Cadd, the end point position Xe becomes the position of Xe ′. Therefore, in the incremental position command Cadd, when the position of the X2 axis is displaced, the position thereafter is left displaced.

【0238】したがって、軸移動中同期制御では、同期
軸の同期解除位置が同期開始位置と異なる場合でかつ同
期軸の位置決めに増分位置指令を用いている場合には、
同期解除後の同期軸の位置がずれてしまう可能性があ
る。この実施の形態では、同期軸が同期開始した位置で
同期軸を同期解除させるため、増分位置指令のみの加工
プログラムでも、軸移動中同期制御を使うことができ
る。
Therefore, in the synchronous control during axis movement, when the synchronous release position of the synchronous axis is different from the synchronous start position and when the incremental position command is used for positioning the synchronous axis,
There is a possibility that the position of the synchronization axis will shift after the synchronization is released. In this embodiment, since the synchronous axis is desynchronized at the position where the synchronous axis starts to synchronize, the synchronous control during axis movement can be used even in a machining program that only has an incremental position command.

【0239】なお、この実施の形態6による同期解除位
置の設定は実施の形態3のものにも同様に適用できる。
The setting of the synchronization release position according to the sixth embodiment can be similarly applied to that of the third embodiment.

【0240】(実施の形態7)図41はこの発明による
同期制御装置を含む数値制御装置の実施の形態7を示し
ている。尚、図41に於いて、図15に対応する部分は
図15に付した符号と同一の符号を付けてその説明を省
略する。
(Embodiment 7) FIG. 41 shows Embodiment 7 of the numerical controller including the synchronous controller according to the present invention. Note that, in FIG. 41, portions corresponding to those in FIG. 15 are denoted by the same reference numerals as those in FIG. 15, and description thereof will be omitted.

【0241】この実施の形態では、実施の形態3のもの
に加えて、補間処理部30に、同期一時解除指令手段4
8と、相対距離再計算手段49とが付加されている。
In this embodiment, in addition to that of the third embodiment, the interpolation processing unit 30 is provided with a synchronization temporary cancel command means 4.
8 and a relative distance recalculation means 49 are added.

【0242】同期一時解除指令手段48は、同期軸がス
トロークエンド等のアラームで停止した場合に軸移動中
同期制御を一時解除して基準軸の移動を続行させ、その
後に再び同期条件が成立した場合に軸移動中同期制御を
再開する指令を行う。
The temporary synchronization cancel command means 48 temporarily cancels the synchronous control during axis movement to continue the movement of the reference axis when the synchronous axis stops due to an alarm such as a stroke end, and then the synchronous condition is satisfied again. In this case, a command to restart the synchronous control during axis movement is issued.

【0243】この場合の軸移動中同期制御を再開する同
期条件は、基準軸と同期軸との相対距離が予め定義され
ている同期距離に一致することである。
The synchronization condition for restarting the synchronization control during axis movement in this case is that the relative distance between the reference axis and the synchronization axis matches the predefined synchronization distance.

【0244】同期開始再開後の基準軸と同期軸の相対距
離の計算は相対距離再計算手段49で行うことができ
る。
The relative distance recalculating means 49 can calculate the relative distance between the reference axis and the synchronous axis after the start of synchronization is restarted.

【0245】次に実施の形態6の動作を説明する。図4
2は同期一時解除・再開動作の説明図である。図42
(1)〜(4)において、Mendは機械構成上の限
界、すなわち機械端を表している。数値制御装置1は可
動軸が機械端Mendに衝突することを防ぐための機能
を有している。衝突することを防ぐときに可動軸を減速
停止させる位置はスロークエンドとよばれ、図42の例
では、Sendがこれにあたる。ストロークエンドSe
ndは、通常、機械端Mendよりも数mm手前の位置
に取り、パラメータ等で予め設定される。
Next, the operation of the sixth embodiment will be described. FIG.
2 is an explanatory diagram of the synchronization temporary release / restart operation. FIG. 42
In (1) to (4), Mend represents the limit on the machine configuration, that is, the machine end. The numerical controller 1 has a function of preventing the movable shaft from colliding with the machine end Mend. The position at which the movable shaft is decelerated and stopped to prevent collision is called the sloak end, and Send corresponds to this in the example of FIG. 42. Stroke end Se
nd is normally set at a position several mm before the machine end Mend, and is preset by a parameter or the like.

【0246】まず、同期一時解除動作について図43を
参照して説明する。なお、この同期一時解除動作では、
同期軸X2と基準軸X1は実施の形態3の同期開始動作
に従って既に同期制御状態にあるという前提の下に説明
を行う。
First, the temporary synchronization canceling operation will be described with reference to FIG. In addition, in this synchronization temporary release operation,
The synchronization axis X2 and the reference axis X1 will be described under the assumption that they are already in the synchronization control state according to the synchronization start operation of the third embodiment.

【0247】補間処理手段31が同期軸の加減速処理手
段61に対する次指令がストロークエンドSendを越
えるか否かをチェックする(ステップS160)。図4
2(1)に示されているように、同期軸X2の位置がス
トロークエンドSendより手前の位置にある場合には
処理を終了し、同期制御を続行する。
The interpolation processing means 31 checks whether or not the next command to the synchronous axis acceleration / deceleration processing means 61 exceeds the stroke end Send (step S160). FIG.
As shown in 2 (1), when the position of the synchronous axis X2 is in front of the stroke end Send, the processing is ended and the synchronous control is continued.

【0248】図42(2)に示されているように、同期
軸X2の位置がストロークエンドSendに到達、また
は越える場合には、従来では、同期軸と基準軸の両軸を
減速停止させてアラーム処理を行い、加工プログラム解
析手段11に対して解析中断を指示していたが、この実
施の形態では、同期一時解除指令手段48が補間処理手
段31に対して同期軸X2のみを減速停止し、加工プロ
グラム解析手段11に対して解析中断を指示しないよう
に指令する(ステップS161)。
As shown in FIG. 42 (2), when the position of the synchronous shaft X2 reaches or exceeds the stroke end Send, conventionally, both the synchronous shaft and the reference shaft are decelerated and stopped. Although the alarm processing is performed and the analysis interruption is instructed to the machining program analysis means 11, in this embodiment, the synchronization temporary cancellation command means 48 decelerates and stops only the synchronization axis X2 with respect to the interpolation processing means 31. , And instructs the machining program analysis means 11 not to give an instruction to suspend the analysis (step S161).

【0249】つぎに同期一時解除指令手段48が軸移動
中同期制御完了信号出力手段53に対して軸移動中同期
制御完了信号をオフするように指示する。軸移動中同期
制御完了信号出力手段53は同期一時解除指令手段48
からの指令で軸移動中同期制御完了信号をオフする(ス
テップS162)。
Next, the synchronization temporary cancellation command means 48 instructs the axis movement in-motion synchronization control completion signal output means 53 to turn off the axis movement in-sync control completion signal. The synchronous control completion signal output means 53 during axis movement is the temporary synchronization cancellation command means 48.
Then, the synchronous control completion signal during axis movement is turned off by the command from (step S162).

【0250】また補間処理手段31は同期一時解除指令
手段48からの指令を受けて同期軸X2の加減速処理手
段61に対して減速停止の指令を出力し、基準軸X1の
加減速処理手段61に対しては指令を続行する(ステッ
プS163)。
Further, the interpolation processing means 31 receives a command from the temporary synchronization cancellation command means 48 and outputs a deceleration stop command to the acceleration / deceleration processing means 61 for the synchronous axis X2, and the acceleration / deceleration processing means 61 for the reference axis X1. The command is continued for (step S163).

【0251】これにより同期軸の加減速処理手段61
は、軸移動量出力回路70を介して同期軸のサーボ制御
部80にサーボ移動指令を送り、同期軸を減速停止させ
る。したがって、図42(2)に示されているように、
同期軸X2がストロークエンドSendで停止した場合
でも、基準軸X1は停止せずに同期距離Dset以内に
進入して、移動を続行することができる。
As a result, the synchronous axis acceleration / deceleration processing means 61
Sends a servo movement command to the servo control section 80 for the synchronous axis via the axis movement amount output circuit 70 to decelerate and stop the synchronous axis. Therefore, as shown in FIG. 42 (2),
Even when the synchronous axis X2 stops at the stroke end Send, the reference axis X1 does not stop and can enter within the synchronous distance Dset to continue the movement.

【0252】次に同期一時解除後の同期開始再開動作に
ついて図44を参照して説明する。
Next, the synchronization start / restart operation after the synchronization is temporarily released will be described with reference to FIG.

【0253】まず、相対距離再計算手段49が同期軸X
2の停止位置を読み出してこれの停止位置を確認する
(ステップS170)。
First, the relative distance recalculating means 49 determines the synchronization axis X.
The second stop position is read and the stop position is confirmed (step S170).

【0254】停止位置の読み出しは次のように行う。相
対距離再計算手段49が同期軸X2の実際の停止位置を
確認するために、同期軸X2に対応する軸制御部60に
対してサーボモータ90のフィードバック位置を読み出
すように指示する。軸制御部60は相対距離再計算手段
49から指示を受けて、同期軸X2に対応するサーボ制
御部80がサーボモータ90のフィードバック位置を読
み出し、相対距離再計算手段49に通知し、これにより
停止位置を読み出す。
Reading the stop position is performed as follows. In order to confirm the actual stop position of the synchronous axis X2, the relative distance recalculating means 49 instructs the axis control unit 60 corresponding to the synchronous axis X2 to read the feedback position of the servo motor 90. The axis control unit 60 receives an instruction from the relative distance recalculation unit 49, the servo control unit 80 corresponding to the synchronous axis X2 reads the feedback position of the servomotor 90, notifies the relative distance recalculation unit 49, and stops. Read position.

【0255】つぎに、相対距離再計算手段49は実施の
形態3における相対距離計算手段40が行った相対距離
計算方法と同じ方法で基準軸X1と同期軸X2の相対距
離Dを計算する(ステップS171)。
Next, the relative distance recalculating means 49 calculates the relative distance D between the reference axis X1 and the synchronous axis X2 by the same method as the relative distance calculating method carried out by the relative distance calculating means 40 in the third embodiment (step). S171).

【0256】つぎに、相対距離再計算手段49が計算し
た相対距離Dが予めパラメータ等で設定された値Dmi
nより小さいかを同期一時解除指令手段48がチェック
する(ステップS172)。
Next, the relative distance D calculated by the relative distance recalculating means 49 is a value Dmi preset by parameters or the like.
The synchronization temporary cancellation command means 48 checks whether it is smaller than n (step S172).

【0257】相対距離Dが設定値Dminより小さけれ
ば、同期一時解除指令手段48が基準軸X1と同期軸X
2とが衝突すると判断し、補間処理手段31に基準軸X
1を停止するように指示する。この場合には、補間処理
手段31が同期一時解除指令手段48からの指示で基準
軸X1に対応する加減速処理手段61に対して減速停止
の指令を出力する。これにより基準軸X1に対応する加
減速処理手段61は軸移動量出力回路70を介して基準
軸X1のサーボ制御部80にサーボ移動指令を送り、基
準軸を減速停止させる(ステップS178)。この後に
アラーム処理を行い(ステップS179)、処理を終了
する。
If the relative distance D is smaller than the set value Dmin, the synchronization temporary cancellation command means 48 causes the reference axis X1 and the synchronization axis X to be released.
2 is determined to collide, and the interpolation processing means 31 determines the reference axis X.
Instruct to stop 1. In this case, the interpolation processing means 31 outputs a deceleration stop command to the acceleration / deceleration processing means 61 corresponding to the reference axis X1 in response to an instruction from the temporary synchronization cancellation command means 48. As a result, the acceleration / deceleration processing means 61 corresponding to the reference axis X1 sends a servo movement command to the servo control unit 80 of the reference axis X1 via the axis movement amount output circuit 70, and decelerates and stops the reference axis (step S178). After this, alarm processing is performed (step S179), and the processing ends.

【0258】相対距離Dが設定値Dminより小さくな
い場合には、同期一時解除指令手段48が相対距離再計
算手段49が計算した相対距離Dと同期距離Dsetを
比較する(ステップS173)。相対距離Dが同期距離
Dsetより小さい場合にはステップS171で相対距
離Dを再計算し、ステップS172を繰り返す。
If the relative distance D is not smaller than the set value Dmin, the synchronization temporary cancel command means 48 compares the relative distance D calculated by the relative distance recalculation means 49 with the synchronization distance Dset (step S173). If the relative distance D is smaller than the synchronization distance Dset, the relative distance D is recalculated in step S171, and step S172 is repeated.

【0259】相対距離Dが同期距離Dsetに等しい
か、大きくなると(ステップS173肯定)、同期一時
解除指令手段48が相対距離D≦同期距離Dsetを比
較する(ステップS174)。相対距離Dが同期距離D
setより大きい場合には、アラーム処理を行い(ステ
ップS179)、処理を終了する。
When the relative distance D is equal to or larger than the synchronization distance Dset (Yes at step S173), the temporary synchronization cancellation command means 48 compares relative distance D ≦ synchronization distance Dset (step S174). Relative distance D is synchronization distance D
If it is larger than set, alarm processing is performed (step S179), and the processing ends.

【0260】相対距離Dが同期距離Dsetと等しい場
合には(ステップS174肯定)、同期一時解除指令手
段48が補間処理手段31に対してアラーム解除の指示
を出し、同期制御を再開する処理を開始する。
If the relative distance D is equal to the synchronization distance Dset (Yes at step S174), the synchronization temporary cancellation command means 48 issues an alarm cancellation instruction to the interpolation processing means 31 and restarts the synchronization control. To do.

【0261】これにより同期軸指令手段41が基準軸の
単位時間当たりの移動指令を同期軸に対して出力するよ
うに補間処理手段31に指令する(ステップS17
5)。補間処理手段31は同期軸指令手段41からの指
令を受けて基準軸の単位時間当たりの移動指令と全く同
じ移動指令を同期軸の加減速処理手段61にも出力する
(ステップS175)。
As a result, the synchronous axis command means 41 commands the interpolation processing means 31 to output a movement command of the reference axis per unit time to the synchronous axis (step S17).
5). The interpolation processing means 31 receives the command from the synchronous axis command means 41 and outputs the same movement command as the movement command per unit time of the reference axis to the acceleration / deceleration processing means 61 of the synchronous axis (step S175).

【0262】同期判定手段42は、同期軸指令手段41
が基準軸の単位時間当たりの移動指令を同期軸に対して
出力するように補間処理手段31に指令した時点、換言
すれば相対距離Dが同期距離とDsetiに一致した時
点からから、同期軸が加速完了するまでの時間(Ts+
Tg)をカウントし、時間(Ts+Tg)が経過した時
点をもって基準軸と同期軸の同期完了を判定する(ステ
ップS176)。
The synchronization judgment means 42 is the synchronization axis command means 41.
From the time when the interpolation processing means 31 is instructed to output a movement command of the reference axis per unit time to the synchronous axis, in other words, from when the relative distance D matches the synchronous distance and Dseti, Time to complete acceleration (Ts +
Tg) is counted, and when the time (Ts + Tg) has elapsed, it is determined whether the reference axis and the synchronization axis have been synchronized (step S176).

【0263】同期軸が加速完了するまでの時間(Ts+
Tg)をカウントすると、同期判定手段42は軸移動中
同期制御完了信号出力手段53に同期完了を通知する。
[0263] The time (Ts +
After counting Tg), the synchronization determination means 42 notifies the synchronization completion signal output means 53 during axis movement of the completion of synchronization.

【0264】軸移動中同期制御完了信号出力手段53が
同期判定手段43からの同期完了通知を受けて、ラダー
回路部55の軸移動中同期制御完了信号をオンする(ス
テップS177)。
The axis moving synchronization control completion signal output means 53 receives the synchronization completion notification from the synchronization determination means 43 and turns on the axis movement synchronization control completion signal of the ladder circuit section 55 (step S177).

【0265】したがって、この実施の形態では、軸移動
中同期制御中、加工プログラムのミスによって同期軸が
ストロークエンド等のアラームで停止した場合でも、基
準軸は停止することなく移動を続け、基準軸と同期軸の
同期条件が整ったときに基準軸と同期軸は再び軸移動中
同期制御を開始させることができる。
Therefore, in this embodiment, during synchronous control during axis movement, even if the synchronous axis stops due to an alarm such as a stroke end due to a machining program error, the reference axis continues to move without stopping, and the reference axis continues to move. When the synchronization condition of the synchronous axis is satisfied, the reference axis and the synchronous axis can restart synchronous control during axis movement.

【0266】[0266]

【発明の効果】上述の説明により明かなように、この発
明による数値制御装置における同期制御方法において
は、シーケンス回路からの軸移動中同期開始信号を検出
した時点の基準軸の残距離を同期軸に指令することによ
り、移動中の基準軸に停止中の同期軸を同期させること
ができ、シーケンス回路より軸移動中同期解除信号を入
力、あるいは減速開始位置に同期軸が移動することによ
って同期軸の減速を開始し、基準軸が移動中であっても
同期軸を停止させて同期制御解除させることができるか
ら、加工のサイクルタイムを短縮することができる。
As is apparent from the above description, in the synchronization control method in the numerical control device according to the present invention, the remaining distance of the reference axis at the time of detecting the synchronization start signal during axis movement from the sequence circuit is set as the synchronization axis. The synchronous axis that is stopped can be synchronized with the moving reference axis by inputting a command to the synchronous axis.The synchronous release signal is input from the sequence circuit during axis movement, or the synchronous axis moves to the deceleration start position. Even when the reference axis is moving, the synchronous axis can be stopped and the synchronous control can be released, so that the machining cycle time can be shortened.

【0267】また同期開始位置を設定し、タレットなど
が同期開始位置を通過した場合に軸移動中同期開始信号
をシーケンス回路よりから入力することによってタレッ
トなどが背面主軸台などに接近しても背面主軸台がタレ
ットに同期して移動するため、タレットと背面主軸台が
衝突することはなく、この衝突を回避させることができ
る。
Also, even if the turret or the like approaches the rear headstock, etc. Since the headstock moves in synchronization with the turret, the turret does not collide with the rear headstock, and this collision can be avoided.

【0268】つぎの発明による数値制御装置における同
期制御方法においては、加工プログラムで指定された同
期制御対象の可動軸のうち、シーケンス回路より軸移動
中同期開始信号が入力された時点で、移動中の軸が基準
軸に、停止中の軸が同期軸と自動判定され、基準軸と同
期軸の設定が状況に応じて間違いなく的確に行われる。
In the synchronous control method for the numerical controller according to the next invention, among the movable axes to be synchronously controlled, which are designated by the machining program, the moving axes are moving at the time when the synchronous start signal is input from the sequence circuit. The axis of 1 is automatically determined as the reference axis, and the stopped axis is automatically determined as the synchronization axis, and the reference axis and the synchronization axis are set accurately and accurately according to the situation.

【0269】また移動中の可動軸を基準軸として同期制
御するため、タレット等の干渉物が2つ存在する場合、
一方のタレットが他方のタレットに近づいた場合と、他
方のタレットが一方のタレットに近づいた場合の両方の
ケースで干渉を回避させることができる。
Further, since synchronous control is performed with the moving movable axis as a reference axis, when there are two interfering objects such as a turret,
Interference can be avoided in both cases where one turret approaches the other turret and when the other turret approaches the one turret.

【0270】つぎの発明による数値制御装置における同
期制御方法においては、軸移動中同期制御モード指令が
解析されると、相対距離と同期距離とが一致した時点
で、同期軸が基準軸の加減速特性およびサーボ制御特性
と同じ加減速特性およびサーボ制御特性をもって移動を
開始することで、同期軸が移動中の基準軸に同期し、同
期完了後は同期軸は基準軸に対して同期距離を保ちなが
ら移動し、シーケンス回路より軸移動中同期解除信号を
入力、あるいは減速開始位置に同期軸が移動すると、同
期軸が減速を開始し、基準軸が移動中であっても同期軸
を停止させて同期制御を解除させることができるから、
加工のサイクルタイムを短縮することができる。
In the synchronous control method in the numerical controller according to the next invention, when the synchronous control mode command during axis movement is analyzed, when the relative distance and the synchronous distance match, the synchronous axis accelerates or decelerates with the reference axis. By starting the movement with the same acceleration / deceleration characteristics and servo control characteristics as the characteristics and servo control characteristics, the synchronous axis synchronizes with the moving reference axis, and after synchronization is complete, the synchronous axis keeps the synchronous distance with respect to the reference axis. When the synchronous axis is moved while the axis is moving, the sync release signal is input from the sequence circuit or the synchronous axis moves to the deceleration start position, the synchronous axis starts decelerating and the synchronous axis is stopped even if the reference axis is moving. Since you can cancel the synchronous control,
The processing cycle time can be shortened.

【0271】また同期距離で軸移動中同期制御ができる
ため、選択された工具の長さに対応した同期距離を設定
するだけで、プログラムミスがあっても2つのタレット
間などの干渉回避を簡単に行うことができる。
Further, since the synchronous control can be performed during the axis movement by the synchronous distance, it is easy to avoid the interference between the two turrets even if there is a programming error only by setting the synchronous distance corresponding to the length of the selected tool. Can be done.

【0272】つぎの発明による数値制御装置における同
期制御方法においては、基準軸と同期軸の同期完了の判
定が、相対距離と同期距離とが一致した時点から同期軸
の加減速時定数が示す時間とサーボ制御系のゲインの逆
数が示す時間との合計時間が経過した時点をもって時間
計測により行われるから、2軸の完全同時速度計測など
の複雑な計測手段を要することなく、基準軸と同期軸の
同期完了を判定できる。
In the synchronous control method in the numerical controller according to the next invention, the determination of the completion of synchronization between the reference axis and the synchronous axis is made from the time point when the relative distance and the synchronous distance coincide with each other, the time indicated by the acceleration / deceleration time constant of the synchronous axis. And the time indicated by the reciprocal of the gain of the servo control system, the time measurement is performed at the time when the total time has elapsed, so there is no need for complicated measuring means such as complete simultaneous velocity measurement of two axes, The synchronization completion of can be determined.

【0273】つぎの発明による数値制御装置における同
期制御方法においては、指定された同期解除位置と軸送
り速度と加減速特性から、同期軸の減速開始位置が計算
され、同期軸が減速開始位置に到達した時点で同期軸を
減速させることで、指定された同期解除位置に同期軸を
ぴったりと停止させることができる。
In the synchronous control method for the numerical controller according to the next invention, the deceleration start position of the synchronous axis is calculated from the specified desynchronization position, axis feed speed and acceleration / deceleration characteristic, and the synchronous axis is set to the deceleration start position. By decelerating the synchronous axis when it reaches, the synchronous axis can be exactly stopped at the specified synchronous release position.

【0274】また、同期解除位置を指定できるため、同
期解除位置をワーク半径に近い位置に設定すれば軸移動
中同期制御解除時に、タレット等をワークに近い位置に
もってくることができ、次にタレットがワークを加工す
る場合にワークへのアプローチ時間を短縮することがで
きる。また、同期解除位置を干渉物の手前に設定するこ
とにより、同期制御中の基準軸が誤って干渉物に接近し
た場合でも同期軸が干渉物の手前で停止するため同期軸
と干渉物の衝突を防ぐことができる。
Since the synchronization release position can be designated, if the synchronization release position is set to a position close to the work radius, the turret or the like can be brought to a position close to the work when the synchronization control is released during axis movement. When the turret processes a work, the approach time to the work can be shortened. Also, by setting the synchronization release position in front of the interfering object, even if the reference axis during synchronization control accidentally approaches the interfering object, the synchronous axis will stop in front of the interfering object so that the synchronous axis collides with the interfering object. Can be prevented.

【0275】つぎの発明による数値制御装置における同
期制御方法においては、同期解除位置を加工プログラム
の記述によって任意に指定できる。
In the synchronization control method in the numerical controller according to the next invention, the synchronization release position can be arbitrarily designated by the description of the machining program.

【0276】つぎの発明による数値制御装置における同
期制御方法においては、加工プログラムに記述された切
削指令と検出したモータ負荷とから切削中であるか否か
を判断され、その判断が切削中より非切削中に変遷した
時点の座標値に基づいて同期解除位置を指定する。これ
により同期解除位置は各切削指令毎に切り込み開始位置
に応じて自動修正設定されるから、切削でワーク半径が
小さくなった場合、位置決めされたワーク位置に対応す
る切削後のワーク半径をもとに同期解除位置を更新する
ため、軸移動中同期制御を解除したときに、工具を自動
的にワークに近い位置にもってくることができる。した
がって、次にタレットがワークを加工する場合にはワー
クへのアプローチ時間を短縮することができる。
In the synchronous control method for the numerical controller according to the next invention, it is judged whether or not cutting is in progress based on the cutting command described in the machining program and the detected motor load. Specify the sync release position based on the coordinate values at the time of transition during cutting. As a result, the desynchronization position is automatically corrected and set according to the cutting start position for each cutting command, so when the work radius becomes smaller by cutting, the work radius after cutting corresponding to the positioned work position is used as the basis. Since the synchronization release position is updated, the tool can be automatically brought to a position close to the work when the synchronization control during axis movement is released. Therefore, when the turret next processes the work, the approach time to the work can be shortened.

【0277】つぎの発明による数値制御装置における同
期制御方法においては、シーケンス回路から軸移動中同
期開始信号が入力された時点の同期軸の座標位置あるい
は加工プログラムにより指定された同期開始位置がつぎ
の同期解除位置に自動設定され、この同期解除位置と軸
送り速度と加減速特性から、同期軸の減速開始位置が計
算され、同期軸が減速開始位置に到達した時点で同期軸
を減速させることで、同期解除位置に同期軸が停止する
から、増分位置指令の加工プログラムでも軸移動中同期
制御を使うことができる。
In the synchronous control method in the numerical controller according to the next invention, the coordinate position of the synchronous axis at the time when the synchronous start signal during axis movement is input from the sequence circuit or the synchronous start position designated by the machining program is It is automatically set to the sync release position, the deceleration start position of the sync axis is calculated from this sync release position, axis feed speed, and acceleration / deceleration characteristics, and the sync axis is decelerated when the sync axis reaches the deceleration start position. Since the synchronous axis stops at the synchronous release position, the synchronous control during axis movement can be used in the machining program for the incremental position command.

【0278】つぎの発明による数値制御装置における同
期制御方法においては、同期軸がストロークエンド等の
アラームで停止すると、軸移動中同期制御が一時的に解
除されることで基準軸の移動が続行し、その後に再び同
期条件が成立すると、軸移動中同期制御が再開され、基
準軸に同期して同期軸が移動するから、加工プログラム
のミスによって同期軸がストロークエンド等のアラーム
で停止した場合でも、基準軸は停止することなく移動を
続け、基準軸と同期軸の同期条件が整ったときに基準軸
と同期軸は再び軸移動中同期制御を開始させることがで
きる。したがって、加工プログラムのミス等で加工がス
トップする確率を減らすことができると同時に軸移動中
同期制御中の基準軸の移動範囲を増やすことができるた
め、加工範囲が従来の技術に比べて大きくなる。
In the synchronous control method in the numerical controller according to the next invention, when the synchronous axis stops due to an alarm such as stroke end, the synchronous control is temporarily released during the axis movement to continue the movement of the reference axis. After that, when the synchronization condition is satisfied again, the synchronous control during axis movement is restarted and the synchronous axis moves in synchronization with the reference axis, so even if the synchronous axis stops due to an alarm such as stroke end due to a mistake in the machining program. The reference axis continues to move without stopping, and when the conditions for synchronizing the reference axis and the synchronization axis are satisfied, the reference axis and the synchronization axis can restart the synchronization control during axis movement. Therefore, it is possible to reduce the probability that machining will stop due to a mistake in the machining program, etc., and at the same time, to increase the movement range of the reference axis during synchronous control during axis movement, so the machining range will be larger than in the conventional technology. .

【0279】つぎの発明による数値制御装置における同
期制御方法においては、基準軸と同期軸との相対距離が
予め定義されている同期距離に一致すると、同期条件が
再成立したとして、軸移動中同期制御が再開されるか
ら、同期軸は再び基準軸に対して同期距離を保ちながら
移動することができる。
In the synchronous control method in the numerical controller according to the next invention, when the relative distance between the reference axis and the synchronous axis coincides with the predefined synchronous distance, it is considered that the synchronous condition is reestablished, and the synchronous movement during axis movement is performed. Since the control is restarted, the synchronous axis can move again while maintaining the synchronous distance with respect to the reference axis.

【0280】つぎの発明による数値制御装置における同
期制御装置においては、シーケンス回路からの軸移動中
同期開始信号を検出した時点の基準軸の残距離を同期軸
に指令することにより、移動中の基準軸に停止中の同期
軸を同期させることができ、シーケンス回路より軸移動
中同期解除信号を入力、あるいは減速開始位置に同期軸
が移動することによって同期軸の減速を開始し、基準軸
が移動中であっても同期軸を停止させて同期制御解除さ
せることができるから、加工のサイクルタイムを短縮す
ることができる。
In the synchronous controller in the numerical controller according to the next invention, the reference of the moving axis is instructed by instructing the synchronous axis of the remaining distance of the reference axis at the time of detecting the synchronous start signal during the axis moving from the sequence circuit. It is possible to synchronize the stopped synchronous axis with the axis, input the sync release signal during axis movement from the sequence circuit, or move the synchronous axis to the deceleration start position to start decelerating the synchronous axis and move the reference axis. Since the synchronous axis can be stopped and the synchronous control can be canceled even in the middle, the cycle time of machining can be shortened.

【0281】つぎの発明による数値制御装置における同
期制御装置においては、同期軸減速指令手段がシーケン
ス回路からの軸移動中同期解除信号の入力によって同期
軸を減速停止させる指令を行うから、タレットなどが同
期開始位置を通過した場合に軸移動中同期開始信号をシ
ーケンス回路より入力することによってタレットなどが
背面主軸台などに接近しても背面主軸台がタレットに同
期して移動するため、タレットと背面主軸台が衝突する
ことはなく、この衝突を回避させることができる。
In the synchronous controller in the numerical controller according to the next invention, since the synchronous axis deceleration command means issues a command to decelerate and stop the synchronous axis by inputting the sync release signal during axis movement from the sequence circuit, the turret and the like are When the turret approaches the rear headstock, etc., the rear headstock moves in synchronization with the turret by inputting the synchronization start signal from the sequence circuit during axis movement when the turret and rear surface have passed. The headstock does not collide, and this collision can be avoided.

【0282】つぎの発明による数値制御装置における同
期制御装置においては、移動軸検出手段が加工プログラ
ムで指定された同期制御対象の可動軸のうち、シーケン
ス回路より軸移動中同期開始信号が入力された時点で、
移動中の軸を検出し、基準軸・同期軸判定手段が移動軸
検出手段による移動軸検出結果から移動中の軸を基準軸
に、停止中の軸を同期軸と判定し、基準軸と同期軸とを
自動設定するから、基準軸と同期軸の設定が状況に応じ
て間違いなく的確に行われる。
In the synchronous controller in the numerical controller according to the next invention, the movable axis detecting means inputs the synchronous start signal during axis movement from the sequence circuit among the movable axes to be synchronously controlled which are designated by the machining program. At that time
The axis that is moving is detected, and the reference axis / synchronous axis determination means determines that the axis that is moving is the reference axis and the axis that is stopped is the synchronization axis from the movement axis detection result by the movement axis detection means, and synchronizes with the reference axis. Since the axis and the synchronous axis are automatically set, the reference axis and the synchronous axis can be accurately set depending on the situation.

【0283】また移動中の可動軸を基準軸として同期制
御するため、タレット等の干渉物が2つ存在する場合、
一方のタレットが他方のタレット近づいた場合と、他方
のタレットが一方のタレット近づいた場合の両方のケー
スで干渉回避させることができる。
Further, since synchronous control is performed with the moving movable axis as the reference axis, when there are two interfering objects such as a turret,
Interference can be avoided in both cases where one turret approaches the other turret and when the other turret approaches the one turret.

【0284】つぎの発明による数値制御装置における同
期制御装置においては、軸移動中同期制御モード指令が
解析されると、相対距離と同期距離とが一致した時点
で、同期軸が基準軸の加減速特性およびサーボ制御特性
と同じ加減速特性およびサーボ制御特性をもって移動を
開始することで、同期軸が移動中の基準軸に同期し、同
期完了後は同期軸は基準軸に対して同期距離を保ちなが
ら移動し、シーケンス回路より軸移動中同期解除信号を
入力、あるいは減速開始位置に同期軸が移動すると、同
期軸が減速を開始し、基準軸が移動中であっても同期軸
を停止させて同期制御を解除させることができるから、
加工のサイクルタイムを短縮することができる。
In the synchronous controller in the numerical controller according to the next invention, when the synchronous control mode command during axis movement is analyzed, when the relative distance and the synchronous distance match, the synchronous axis accelerates / decelerates with the reference axis. By starting the movement with the same acceleration / deceleration characteristics and servo control characteristics as the characteristics and servo control characteristics, the synchronous axis synchronizes with the moving reference axis, and after synchronization is complete, the synchronous axis keeps the synchronous distance with respect to the reference axis. When the synchronous axis is moved while the axis is moving, the sync release signal is input from the sequence circuit or the synchronous axis moves to the deceleration start position, the synchronous axis starts decelerating and the synchronous axis is stopped even if the reference axis is moving. Since you can cancel the synchronous control,
The processing cycle time can be shortened.

【0285】また同期距離で軸移動中同期制御ができる
ため、選択された工具の長さに対応した同期距離を設定
するだけで、プログラムミスがあっても2つのタレット
間などの干渉回避を簡単に行うことができる。
Also, since synchronous control can be performed during axis movement with the synchronous distance, it is easy to avoid interference between two turrets even if there is a programming error, simply by setting the synchronous distance corresponding to the length of the selected tool. Can be done.

【0286】つぎの発明による数値制御装置における同
期制御装置においては、同期判定手段が相対距離と同期
距離とが一致した時点から同期軸の加減速時定数が示す
時間とサーボ制御系のゲインの逆数が示す時間との合計
時間が経過した時点をもって基準軸と同期軸の同期完了
を判定し、この同期完了の判定に基づいて軸移動中同期
制御完了信号出力手段がシーケンス回路の軸移動中同期
制御完了信号をオンさせるから、2軸の完全同時速度計
測などの複雑な計測手段を要することなく、基準軸と同
期軸の同期完了の判定ができる。
In the synchronous controller in the numerical controller according to the next invention, the reciprocal of the time indicated by the acceleration / deceleration time constant of the synchronous axis and the gain of the servo control system from the time point when the relative distance coincides with the synchronous distance by the synchronous determination means. When the total time with the time indicated by is elapsed, the completion of synchronization between the reference axis and the synchronous axis is determined, and based on this determination of completion of synchronization, the axis movement synchronization control completion signal output means controls the axis circuit during axis movement synchronization. Since the completion signal is turned on, it is possible to determine the completion of synchronization between the reference axis and the synchronization axis without requiring a complicated measuring means such as complete simultaneous velocity measurement of the two axes.

【0287】つぎの発明による数値制御装置における同
期制御装置においては、同期軸減速開始位置計算手段が
指定された同期解除位置と軸送り速度と加減速特性から
同期軸の減速開始位置を計算し、同期軸減速開始位置判
定手段によって同期軸が減速開始位置に到達したことが
判定されると、同期軸を減速停止させる信号処理が行わ
れるから、指定された同期解除位置に同期軸をぴったり
と停止させることができる。
In the synchronous controller in the numerical controller according to the next invention, the synchronous axis deceleration start position calculating means calculates the deceleration start position of the synchronous axis from the specified desynchronization position, axis feed speed and acceleration / deceleration characteristic, When the synchronous axis deceleration start position determination means determines that the synchronous axis has reached the deceleration start position, signal processing for decelerating and stopping the synchronous axis is performed. Therefore, the synchronous axis is exactly stopped at the specified desynchronization position. Can be made.

【0288】また、同期解除位置を指定できるため、同
期解除位置をワーク半径に近い位置に設定すれば軸移動
中同期制御解除時に、タレット等をワークに近い位置に
もってくることができ、次にタレットがワークを加工す
る場合にワークへのアプローチ時間を短縮することがで
きる。また、同期解除位置を干渉物の手前に設定するこ
とにより、同期制御中の基準軸が誤って干渉物に接近し
た場合でも同期軸が干渉物の手前で停止するため同期軸
と干渉物の衝突を防ぐことができる。
Since the synchronization release position can be designated, if the synchronization release position is set to a position close to the work radius, the turret or the like can be brought to a position close to the work when the synchronization control is released during axis movement. When the turret processes a work, the approach time to the work can be shortened. Also, by setting the synchronization release position in front of the interfering object, even if the reference axis during synchronization control accidentally approaches the interfering object, the synchronous axis will stop in front of the interfering object so that the synchronous axis collides with the interfering object. Can be prevented.

【0289】つぎの発明による数値制御装置における同
期制御装置においては、同期解除位置を加工プログラム
の記述によって任意に指定できる。
In the synchronization control device of the numerical control device according to the next invention, the synchronization release position can be arbitrarily designated by the description of the machining program.

【0290】つぎの発明による数値制御装置における同
期制御装置においては、モータ負荷検出手段が軸モータ
の電流値などからモータ負荷を検出し、切削判定手段が
加工プログラムに記述された切削指令とモータ負荷検出
手段によって検出したモータ負荷とから切削中であるか
否かを判定し、その判定が切削中より非切削中に変遷し
た時点の座標値に基づいて同期解除位置が指定されるか
ら、同期解除位置は各切削指令毎に切り込み開始位置に
応じて自動修正設定され、切削でワーク半径が小さくな
った場合、位置決めされたワーク位置に対応する切削後
のワーク半径をもとに同期解除位置を更新するため、軸
移動中同期制御を解除したときに、工具を自動的にワー
クに近い位置にもってくることができる。したがって、
次にタレットがワークを加工する場合にはワークへのア
プローチ時間を短縮することができる。
In the synchronous controller in the numerical controller according to the next invention, the motor load detecting means detects the motor load from the current value of the shaft motor, and the cutting determining means detects the cutting command and the motor load described in the machining program. Whether or not cutting is in progress is determined based on the motor load detected by the detection means, and the synchronization release position is specified based on the coordinate value at the time when the determination transitions from cutting to non-cutting. The position is automatically set according to the cutting start position for each cutting command, and when the work radius becomes small by cutting, the synchronization release position is updated based on the work radius after cutting corresponding to the positioned work position. Therefore, when the synchronous control is released during the movement of the axis, the tool can be automatically brought to a position close to the work. Therefore,
Next, when the turret processes the work, the approach time to the work can be shortened.

【0291】つぎの発明による数値制御装置における同
期制御装置においては、シーケンス回路から軸移動中同
期開始信号が入力された時点の同期軸の座標位置あるい
は加工プログラムにより指定された同期開始位置が記憶
され、同期軸減速開始位置計算手段が記憶された座標位
置あるいは同期開始位置を同期解除位置とし、この同期
解除位置と軸送り速度と加減速特性から同期軸の減速開
始位置を計算する。同期軸が計算された減速開始位置に
到達すると、同期軸減速開始位置判定手段が同期軸を減
速停止させる信号処理を行うから、増分位置指令の加工
プログラムでも軸移動中同期制御を使うことができる。
In the synchronous controller in the numerical controller according to the next invention, the coordinate position of the synchronous axis at the time when the synchronous start signal during axis movement is input from the sequence circuit or the synchronous start position designated by the machining program is stored. The synchronous axis deceleration start position calculating means sets the stored coordinate position or synchronization start position as the synchronization release position, and calculates the deceleration start position of the synchronous axis from the synchronization release position, the axis feed speed, and the acceleration / deceleration characteristics. When the synchronous axis reaches the calculated deceleration start position, the synchronous axis deceleration start position determination means performs signal processing for decelerating and stopping the synchronous axis, so that the synchronous program during axis movement can be used even in the machining program for the incremental position command. .

【0292】つぎの発明による数値制御装置における同
期制御装置においては、同期軸がストロークエンド等の
アラームで停止した場合には、同期一時解除指令手段に
よって軸移動中同期制御が一時的に解除され、基準軸の
移動が続行する。その後に再び同期条件が成立すると、
軸移動中同期制御が再開されるから、加工プログラムの
ミスによって同期軸がストロークエンド等のアラームで
停止した場合でも、基準軸は停止することなく移動を続
け、基準軸と同期軸の同期条件が整ったときに基準軸と
同期軸は再び軸移動中同期制御を開始させることができ
る。したがって、加工プログラムのミス等で加工がスト
ップする確率を減らすことができると同時に軸移動中同
期制御中の基準軸の移動範囲を増やすことができるた
め、加工範囲が従来の技術に比べて大きくなる。
In the synchronous controller in the numerical controller according to the next invention, when the synchronous axis is stopped by an alarm such as stroke end, the synchronous temporary cancel command means temporarily cancels the synchronous control during axis movement, The movement of the reference axis continues. After that, when the synchronization condition is satisfied again,
Since synchronous control is restarted during axis movement, even if the synchronous axis stops due to an alarm such as stroke end due to a mistake in the machining program, the reference axis continues to move without stopping, and the synchronous condition between the reference axis and the synchronous axis is When aligned, the reference axis and the synchronous axis can start synchronous control again during axis movement. Therefore, it is possible to reduce the probability that machining will stop due to a mistake in the machining program, etc., and at the same time, to increase the movement range of the reference axis during synchronous control during axis movement, so the machining range will be larger than in the conventional technology. .

【0293】つぎの発明による数値制御装置における同
期制御装置においては、軸移動中同期制御が一時的に解
除された状態において基準軸と同期軸との相対距離が予
め定義されている同期距離に一致すると、同期条件が再
成立したとして軸移動中同期制御が再開されるから、同
期軸を再び基準軸に対して同期距離を保ちながら移動さ
せることができる。
In the synchronous controller in the numerical controller according to the next invention, the relative distance between the reference axis and the synchronous axis coincides with the predefined synchronous distance in the state where the synchronous control during the axis movement is temporarily released. Then, since the synchronous control is restarted while the axis is moving, assuming that the synchronous condition is reestablished, the synchronous axis can be moved again while maintaining the synchronous distance with respect to the reference axis.

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

【図1】 この発明による同期制御装置を有する数値制
御装置の実施の形態1を示すブロック線図である。
FIG. 1 is a block diagram showing a first embodiment of a numerical controller having a synchronization controller according to the present invention.

【図2】 この発明による同期制御装置を有する数値制
御装置で使用する加工プログラムの記述例を示す説明図
である。
FIG. 2 is an explanatory diagram showing a description example of a machining program used in a numerical controller having a synchronous controller according to the present invention.

【図3】 この発明による同期制御装置を有する数値制
御装置で使用するラダー回路の記述例を示す図である。
FIG. 3 is a diagram showing a description example of a ladder circuit used in a numerical controller having a synchronous controller according to the present invention.

【図4】 実施の形態1における軸移動中同期制御モー
ド設定処理のフローチャートである。
FIG. 4 is a flowchart of a synchronous control mode setting process during axis movement according to the first embodiment.

【図5】 実施の形態1における軸移動中同期制御開始
時のラダー処理のフローチャートである。
FIG. 5 is a flowchart of a ladder process at the start of synchronous control during axis movement according to the first embodiment.

【図6】 実施の形態1における軸移動中同期制御開始
処理のフローチャートである。
FIG. 6 is a flowchart of a process of starting synchronous control during axis movement according to the first embodiment.

【図7】 実施の形態1における軸移動中同期制御処理
のフローチャートである。
FIG. 7 is a flowchart of an axis movement synchronization control process according to the first embodiment.

【図8】 実施の形態1における軸移動中同期制御解除
時のラダー処理のフローチャートである。
FIG. 8 is a flowchart of a ladder process when releasing synchronous control during axis movement according to the first embodiment.

【図9】 実施の形態1における軸移動中同期制御解除
処理のフローチャートである。
FIG. 9 is a flowchart of a process of releasing synchronous control during axis movement according to the first embodiment.

【図10】 実施の形態1における軸移動中同期制御モ
ード解除処理のフローチャートである。
FIG. 10 is a flowchart of a synchronous control mode release process during axis movement according to the first embodiment.

【図11】 この発明による同期制御装置を有する数値
制御装置の実施の形態2を示すブロック線図である。
FIG. 11 is a block diagram showing a second embodiment of a numerical controller having a synchronization controller according to the present invention.

【図12】 この発明による同期制御装置を有する数値
制御装置で使用する加工プログラムの記述例を示す説明
図である。
FIG. 12 is an explanatory diagram showing a description example of a machining program used in a numerical controller having a synchronous controller according to the present invention.

【図13】 実施の形態2における軸移動中同期制御開
始処理のフローチャートである。
FIG. 13 is a flowchart of a process of starting synchronous control during axis movement according to the second embodiment.

【図14】 (a)、(b)はこの発明による同期制御
装置を有する数値制御装置が適用される工作機械の構成
を示す説明図である。
14 (a) and 14 (b) are explanatory views showing a configuration of a machine tool to which the numerical control device having the synchronous control device according to the present invention is applied.

【図15】 この発明による同期制御装置を有する数値
制御装置の実施の形態3を示すブロック線図である。
FIG. 15 is a block diagram showing a third embodiment of a numerical controller having a synchronization controller according to the present invention.

【図16】 この発明による同期制御装置を有する数値
制御装置で使用する加工プログラムの記述例を示す説明
図である。
FIG. 16 is an explanatory diagram showing a description example of a machining program used in a numerical controller having a synchronous controller according to the present invention.

【図17】 この発明による同期制御装置を有する数値
制御装置における可動軸の速度加減速パターンを示す説
明図である。
FIG. 17 is an explanatory diagram showing a speed acceleration / deceleration pattern of a movable shaft in a numerical controller having a synchronous controller according to the present invention.

【図18】 実施の形態3における軸移動中同期制御モ
ード設定処理のフローチャートである。
FIG. 18 is a flowchart of an axis movement synchronization control mode setting process in the third embodiment.

【図19】 実施の形態3における軸移動中同期制御開
始処理のフローチャートである。
FIG. 19 is a flowchart of a process of starting synchronous control during axis movement according to the third embodiment.

【図20】 (a)〜(d)は基準軸および同期軸の時
間と速度( 指令速度と実際のサーボモータの速度) の関
係図である。
20A to 20D are relationship diagrams of time and speed (command speed and actual servo motor speed) of a reference axis and a synchronous axis.

【図21】 基準軸と同期軸の機械座標の関係図であ
る。
FIG. 21 is a relationship diagram of machine coordinates of a reference axis and a synchronous axis.

【図22】 この発明による同期制御装置を有する数値
制御装置で使用するラダー回路の記述例を示す説明図で
ある。
FIG. 22 is an explanatory diagram showing a description example of a ladder circuit used in a numerical controller having a synchronous controller according to the present invention.

【図23】 (a)、(b)はこの発明による同期制御
装置を有する数値制御装置が適用される工作機械の構成
を示す説明図である。
23 (a) and 23 (b) are explanatory views showing a configuration of a machine tool to which the numerical control device having the synchronous control device according to the present invention is applied.

【図24】 この発明による同期制御装置を有する数値
制御装置で使用する加工プログラムの他の記述例を示す
説明図である。
FIG. 24 is an explanatory diagram showing another description example of the machining program used in the numerical controller having the synchronous controller according to the present invention.

【図25】 実施の形態3における軸移動中同期動作の
説明図である。
FIG. 25 is an explanatory diagram of a synchronizing operation during axis movement according to the third embodiment.

【図26】 この発明による同期制御装置を有する数値
制御装置の実施の形態4を示すブロック線図である。
FIG. 26 is a block diagram showing a fourth embodiment of a numerical controller having a synchronous controller according to the present invention.

【図27】 この発明による同期制御装置を有する数値
制御装置で使用する加工プログラムの記述例を示す説明
図である。
FIG. 27 is an explanatory diagram showing a description example of a machining program used in the numerical controller having the synchronous controller according to the present invention.

【図28】 実施の形態4における軸移動中同期制御モ
ード設定処理のフローチャートである。
FIG. 28 is a flowchart of an axis movement synchronous control mode setting process in the fourth embodiment.

【図29】 実施の形態4における軸移動中同期制御解
除処理のフローチャートである。
FIG. 29 is a flowchart of a process of releasing synchronous control during axis movement according to the fourth embodiment.

【図30】 (1)〜(3)は実施の形態4における軸
移動中同期動作の説明図である。
30 (1) to (3) are explanatory views of a synchronizing operation during axis movement in the fourth embodiment.

【図31】 実施の形態4における停止距離算出の説明
図である。
FIG. 31 is an explanatory diagram of a stop distance calculation according to the fourth embodiment.

【図32】 (a)、(b)はこの発明による同期制御
装置を有する数値制御装置が適用される工作機械の構成
を示す説明図である。
32 (a) and 32 (b) are explanatory views showing a configuration of a machine tool to which the numerical control device having the synchronous control device according to the present invention is applied.

【図33】 この発明による同期制御装置を有する数値
制御装置の実施の形態5を示すブロック線図である。
FIG. 33 is a block diagram showing a fifth embodiment of a numerical controller having a synchronization controller according to the present invention.

【図34】 (a)、(b)はこの発明による同期制御
装置を有する数値制御装置が適用される工作機械の構成
を示す説明図である。
34 (a) and 34 (b) are explanatory views showing a configuration of a machine tool to which the numerical control device having the synchronous control device according to the present invention is applied.

【図35】 実施の形態5における同期解除位置更新の
フローチャートである。
FIG. 35 is a flowchart of synchronization release position update in the fifth embodiment.

【図36】 実施の形態5におけるモータ電流の変化を
示す説明図である。
FIG. 36 is an explanatory diagram showing a change in motor current according to the fifth embodiment.

【図37】 実施の形態5におけるサンプリングデータ
のプロット図である。
FIG. 37 is a plot diagram of sampling data according to the fifth embodiment.

【図38】 この発明による同期制御装置を有する数値
制御装置の実施の形態6を示すブロック線図である。
FIG. 38 is a block diagram showing a sixth embodiment of a numerical controller having a synchronization controller according to the present invention.

【図39】 実施の形態6における軸移動中同期制御開
始処理のフローチャートである。
FIG. 39 is a flowchart of a process of starting synchronous control during axis movement according to the sixth embodiment.

【図40】 数値制御装置の絶対位置指令と増分位置指
令の違いを示す説明図である。
FIG. 40 is an explanatory diagram showing a difference between an absolute position command and an incremental position command of the numerical controller.

【図41】 この発明による同期制御装置を有する数値
制御装置の実施の形態7を示すブロック線図である。
FIG. 41 is a block diagram showing a seventh embodiment of a numerical controller having a synchronization controller according to the present invention.

【図42】 (1)〜(4)は実施の形態7における軸
移動中同期制御一時解除および軸移動中同期制御再開動
作の説明図である。
[FIG. 42] (1) to (4) are explanatory views of a temporary release of synchronous control during axis movement and a restart operation of synchronous control during axis movement in the seventh embodiment.

【図43】 実施の形態7における軸移動中同期制御一
時解除動作のフローチャートである。
FIG. 43 is a flowchart of a synchronous control temporary release operation during axis movement in the seventh embodiment.

【図44】 実施の形態7における軸移動中同期制御再
開処理のフローチャートである。
FIG. 44 is a flowchart of a process for restarting synchronous control during axis movement according to the seventh embodiment.

【図45】 従来の数値制御装置の構成を示すブロック
図である。
FIG. 45 is a block diagram showing a configuration of a conventional numerical control device.

【図46】 工作機械の可動軸の構成を示す説明図であ
る。
FIG. 46 is an explanatory diagram showing a configuration of a movable shaft of a machine tool.

【図47】 従来の同期制御の加工プログラム記述例を
示す図である。
FIG. 47 is a diagram showing an example of a conventional synchronous control machining program description.

【図48】 従来の数値制御装置における同期制御開始
処理のフローチャートである。
FIG. 48 is a flowchart of a synchronous control start process in the conventional numerical control device.

【図49】 従来の数値制御装置における同期制御解除
処理のフローチャートである。
FIG. 49 is a flowchart of synchronous control cancellation processing in the conventional numerical control apparatus.

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

1 数値制御装置,10 加工プログラム解析処理部,
11 加工プログラム解析手段,12 軸移動中同期制
御モード指令解析手段,20 メモリ,21パラメータ
設定部,22 画面表示処理部,30 補間処理部,3
1 補間処理手段,32 基準軸・同期軸管理手段,3
3 軸移動中同期制御モード切り替え手段,34 残距
離指令手段,35 移動軸停止確認手段,36 同期軸
減速指令手段,37 移動軸検出手段,38 基準軸・
同期軸判定手段,40 相対距離計算手段,41 同期
軸指令手段,42 同期判定手段,44 同期軸減速開
始位置計算手段,45 同期軸減速開始位置判定手段,
46 切削判定手段,47 同期軸移動開始位置記憶手
段,48 同期一時解除指令手段,49 相対距離再計
算手段,50 機械制御信号処理部,51 機械制御信
号処理手段,52軸移動中同期制御信号検知手段,53
軸移動中同期制御完了信号出力手段,55 ラダー回
路部,60 軸制御部,61 加減速処理手段,62
停止確認手段,70 軸移動量出力回路,71 サーボ
制御部データ入力部,80 サーボ制御部,81 ゲイ
ン切り替え手段,82 モータ電流検出手段,90 サ
ーボモータ
1 numerical control device, 10 machining program analysis processing unit,
11 machining program analyzing means, 12 axis moving synchronous control mode command analyzing means, 20 memory, 21 parameter setting section, 22 screen display processing section, 30 interpolation processing section, 3
1 interpolation processing means, 32 reference axis / synchronous axis management means, 3
3 axis moving synchronous control mode switching means, 34 remaining distance commanding means, 35 moving axis stop confirming means, 36 synchronous axis deceleration commanding means, 37 moving axis detecting means, 38 reference axis /
Synchronous axis determination means, 40 relative distance calculation means, 41 synchronous axis command means, 42 synchronous determination means, 44 synchronous axis deceleration start position calculation means, 45 synchronous axis deceleration start position determination means,
46 cutting determination means, 47 synchronous axis movement start position storage means, 48 synchronous temporary cancellation command means, 49 relative distance recalculation means, 50 machine control signal processing section, 51 machine control signal processing section, 52 axis synchronous control signal detection Means, 53
Synchronous control completion signal output means during axis movement, 55 ladder circuit section, 60 axis control section, 61 acceleration / deceleration processing means, 62
Stop confirmation means, 70 axis movement output circuit, 71 servo control section data input section, 80 servo control section, 81 gain switching means, 82 motor current detection means, 90 servo motor

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成8年3月27日[Submission date] March 27, 1996

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0004[Correction target item name] 0004

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0004】この数値制御装置では、テープリーダ等か
ら読み込まれた各系統の加工プログラムはメモリ20に
格納される。加工プログラムを実行する際には、メモリ
20から1ブロックずつ加工プログラムを読み出し、各
系統毎に設けられている加工プログラム解析処理部10
によって加工プログラムを解析処理し、各ブロックの終
点位置等を算出する。この終点位置を補間処理部30の
補間処理手段31によって処理し、各可動軸の単位時間
当たりの移動指令に分配する。
In this numerical controller, the machining programs of each system read from a tape reader or the like are stored in the memory 20. When executing the machining program, the machining program is read from the memory 20 block by block and the machining program analysis processing unit 10 provided for each system is read.
The machining program is analyzed to calculate the end point position of each block. This end point position is processed by the interpolation processing means 31 of the interpolation processing unit 30 and distributed to the movement command per unit time of each movable axis.

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0081[Correction target item name] 0081

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0081】同期制御させたい軸の指定は、加工プログ
ラムにおいて軸移動中同期制御モード指令“G128”
に続く軸指定記述で行う。図2に示されている加工プロ
グラムでは、“G128X=X”であり、X1は第
1系統のX軸を、X2は第2系統のX軸を各々表してい
る。この軸指定記述における“=”の左側は同期軸を、
右側は基準軸を表わしている。この指令は軸移動中同期
制御モード指令解析手段12で解析処理され、解析結果
を補間処理部30に渡す(ステップS10)。
The axis to be synchronously controlled is specified by the synchronous program mode command "G128" during axis movement in the machining program.
Follow the axis specification description. In the machining program shown in FIG. 2, “G128X 2 = X 1 ”, where X1 represents the X axis of the first system and X2 represents the X axis of the second system. The left side of "=" in this axis specification description is the synchronization axis,
The right side represents the reference axis. This command is analyzed by the synchronous control mode command analysis means 12 during axis movement, and the analysis result is passed to the interpolation processing section 30 (step S10).

【手続補正3】[Procedure 3]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0096[Correction target item name] 0096

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0096】図7は軸移動中同期制御モード時の移動指
令処理ルーチンを示している。この処理ルーチンでは、
加工プログラムの移動指令“G0X1.0;”のように
基準軸に対して移動指令が指令されると、補間処理部3
0は基準軸に対応する軸制御部60の加減速処理手段6
1と同期軸に対応する軸制御部60の加減速処理手段6
1に補間データを出力する。この各々の加減速処理手段
61は基準軸となるサーボ制御部80と同期軸となるサ
ーボ制御部80に同じサーボ移動指令を送る(ステップ
S40)。これにより基準軸と同期軸に対応するサーボ
制御部80が各々、基準軸と同期軸に対応するサーボモ
ータ90を駆動する(ステップS41)
FIG. 7 shows a movement command processing routine in the synchronous control mode during axis movement. In this processing routine,
When a movement command is issued to the reference axis, such as a machining program movement command “G0X1.0;”, the interpolation processing unit 3
0 is the acceleration / deceleration processing means 6 of the axis control unit 60 corresponding to the reference axis.
1 and acceleration / deceleration processing means 6 of the axis control unit 60 corresponding to the synchronous axis
The interpolation data is output to 1. Each of the acceleration / deceleration processing means 61 sends the same servo movement command to the servo control unit 80 serving as the reference axis and the servo control unit 80 serving as the synchronous axis (step S40). As a result, the servo control units 80 corresponding to the reference axis and the synchronous axis drive the servo motors 90 corresponding to the reference axis and the synchronous axis, respectively (step S41) .

【手続補正4】[Procedure amendment 4]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0113[Name of item to be corrected] 0113

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0113】指定された2軸とも移動中でない場合(停
止軸がある場合)には、移動軸検出手段37が、指定さ
れた2軸が両軸とも停止中か否かをチェックする(ステ
ップS72)。2軸が両方とも停止中の場合には、G1
28X1,X2の右側の指令の軸を、ここではX2を基
準軸として同期確立処理を行う(ステップS79)。
When neither of the two designated axes is moving (when there is a stopped axis), the moving axis detecting means 37 checks whether or not the designated two axes are both stopped (step S72). ). If both axes are stopped, G1
28X1 and X2 are based on the command axis on the right side, here X2
Synchronization establishment processing is performed as a quasi-axis (step S79).

【手続補正5】[Procedure Amendment 5]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0135[Name of item to be corrected] 0135

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0135】同期制御させたい軸の指定は、加工プログ
ラムにおいて軸移動中同期制御モード指令“G128”
に続く軸指定記述で行う。図18に示されている加工プ
ログラムでは、“G128X=X”であり、X1は
第1系統のX軸を、X2は第2系統のX軸を各々表して
いる。この軸指定記述における“=”の左側は同期軸
を、右側は基準軸を表わしている。この場合、第1系統
のX軸が基準軸で、第2系統のX軸が同期軸である。
“P”は同期軸が基準軸と同期して移動する場合の間
隔、すなわち同期距離を指定する。“P5.000”は
同期距離は5mmであることを示している(ステップS
90)。以下の説明では、この同期距離をDsetと云
うことがある。
The axis to be synchronously controlled is specified by the synchronous program mode command "G128" during axis movement in the machining program.
Follow the axis specification description. In the machining program shown in FIG. 18, “G128X 2 = X 1 ”, where X1 represents the X axis of the first system and X2 represents the X axis of the second system. The left side of “=” in the axis designation description represents the synchronization axis, and the right side represents the reference axis. In this case, the X axis of the first system is the reference axis, and the X axis of the second system is the synchronization axis.
“P” designates an interval when the synchronous axis moves in synchronization with the reference axis, that is, a synchronous distance. "P5.000" indicates that the synchronization distance is 5 mm (step S
90). In the following description, this synchronization distance may be referred to as Dset.

【手続補正6】[Procedure correction 6]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0139[Correction target item name] 0139

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0139】また図17に示されているように、可動軸
が、指令された速度まで加速または減速するのに必要と
する時間、すなわち時定数Taや、可動軸が指令された
速度まで加速または減速するための加減速パターン(図
17では直線加減速パターン)や、サーボモータ90を
駆動するサーボ制御部80のゲインを軸移動中同期制御
モード切り替え手段33が、同期軸のものを基準軸のも
のに切り替える(ステップS93)。
As shown in FIG. 17, the time required for the movable axis to accelerate or decelerate to the commanded speed, that is, the time constant T a, or the movable axis accelerates to the commanded speed. Alternatively, the acceleration / deceleration pattern for deceleration (the linear acceleration / deceleration pattern in FIG. 17) and the gain of the servo control unit 80 for driving the servo motor 90 are controlled by the synchronous control mode switching means 33 while the axis is moving. (Step S93).

【手続補正7】[Procedure Amendment 7]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0140[Correction target item name] 0140

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0140】ゲイン切り替えについては、軸移動中同期
制御モード切り替え手段33が同期軸の停止を確認して
ゲイン切り替え指令を、対応するサーボ制御部80に指
令する。該指令によってゲイン切り替え手段81が同期
軸のサーボ制御部80のゲインを基準軸のサーボ制御部
80のゲインと同じゲインに切り替える。この一連の動
作で軸移動中同期制御のための準備を完了する。なお、
このとき、基準軸、同期軸はともに移動はしない。
[0140] For the gain switching, the axis moves in synchronous control mode switching means 33 is check and gain switching instruction to stop the synchronization shaft, directs the corresponding servo control unit 80. The gain switching means 81 switches the gain of the servo control unit 80 of the synchronous axis to the same gain as the gain of the servo control unit 80 of the reference axis by the command. With this series of operations, preparations for synchronous control during axis movement are completed. In addition,
At this time, neither the reference axis nor the synchronous axis moves.

【手続補正8】[Procedure Amendment 8]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0157[Correction target item name] 0157

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0157】同期判定手段42は、同期軸指令手段41
が基準軸の単位時間当たりの移動指令を同期軸に対して
出力するように補間処理手段31に指令した時点、換言
すれば相対距離Dが同期距離Dsetに一致した時点か
ら、同期軸が加速完了するまでの時間(Ts+Tg)を
カウントし、時間(Ts+Tg)が経過した時点をもっ
て基準軸と同期軸の同期完了を判定する(ステップS1
05)。
The synchronization judgment means 42 is the synchronization axis command means 41.
Time from the synchronization shaft but when you command to the interpolation processing unit 31 to output a motion command per unit time of the reference axis for synchronous shaft, the relative distance D in other words, matches the synchronous distance D se t Counts the time (Ts + Tg) until the acceleration is completed, and at the time when the time (Ts + Tg) elapses, the completion of synchronization between the reference axis and the synchronization axis is determined (step S1
05).

【手続補正9】[Procedure Amendment 9]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0216[Name of item to be corrected] 0216

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0216】同期解除位置Rc=(算出されたX1軸座
標値)+(予めパラメータで設定された値) あるいはZ1軸が移動中の場合には工具が切削面に衝突
することを避けるために、同期解除位置Rc=切削前
のワーク半径値)+(予めパラメータで設定された値)
と計算する。
Desynchronization position Rc = (calculated X1 axis coordinate value) + (value set in advance in parameter) Alternatively, when the Z1 axis is moving, in order to prevent the tool from colliding with the cutting surface, Sync release position Rc = ( workpiece radius value before cutting ) + ( value preset by parameter)
And calculate.

【手続補正10】[Procedure Amendment 10]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0262[Correction target item name] 0262

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0262】同期判定手段42は、同期軸指令手段41
が基準軸の単位時間当たりの移動指令を同期軸に対して
出力するように補間処理手段31に指令した時点、換言
すれば相対距離Dが同期距離Dsetに一致した時点か
ら、同期軸が加速完了するまでの時間(Ts+Tg)を
カウントし、時間(Ts+Tg)が経過した時点をもっ
て基準軸と同期軸の同期完了を判定する(ステップS1
76)。
The synchronization judgment means 42 is the synchronization axis command means 41.
Or when the but when you command to the interpolation processing unit 31 to output a motion command per unit time of the reference axis for synchronous shaft, the relative distance D in other words, matches the synchronous distance D se t
Then, the time (Ts + Tg) until the synchronous axis completes acceleration is counted, and the completion of synchronization between the reference axis and the synchronous axis is determined when the time (Ts + Tg) elapses (step S1.
76).

【手続補正11】[Procedure Amendment 11]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図12[Name of item to be corrected] Fig. 12

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図12】 [Fig. 12]

【手続補正12】[Procedure Amendment 12]

【補正対象書類名】図面[Document name to be corrected] Drawing

【補正対象項目名】図17[Name of item to be corrected] Fig. 17

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【図17】 FIG. 17

Claims (21)

【特許請求の範囲】[Claims] 【請求項1】 一つの可動軸を基準軸に、他の少なくと
も一つの可動軸を同期軸として、少なくとも2軸の可動
軸を同期制御する数値制御装置における同期制御方法に
おいて、 加工プログラムに記述された軸移動中同期制御モード指
令を解析後、基準軸の移動下においてシーケンス回路よ
り同期制御開始を意味する軸移動中同期開始信号を検出
した時点で当該基準軸の残距離を計算し、当該残距離を
同期軸の位置指令として同期軸を移動させ、基準軸と同
期軸の停止で同期完了を判定し、シーケンス回路より同
期制御解除を意味する軸移動中同期解除信号を入力、あ
るいは指定された同期解除位置より決まる減速開始位置
に同期軸が移動するまで基準軸の移動指令で基準軸と同
期軸とを同期移動させ、シーケンス回路より前記軸移動
中同期解除信号を入力、あるいは前記減速開始位置に同
期軸が移動することによって同期軸の減速を開始し、同
期軸を停止させて同期制御を解除することを特徴とする
数値制御装置における同期制御方法。
1. A synchronous control method in a numerical controller for synchronously controlling at least two movable axes, wherein one movable axis serves as a reference axis and at least one other movable axis serves as a synchronous axis. After analyzing the synchronous control mode command during axis movement, the remaining distance of the reference axis is calculated when the synchronization start signal during axis movement is detected from the sequence circuit under the movement of the reference axis The synchronous axis is moved by using the distance as the position command of the synchronous axis, the completion of synchronization is judged by stopping the reference axis and the synchronous axis, and the sequence circuit outputs a signal to release synchronization during axis movement, which means synchronization control release, or is designated. Until the synchronous axis moves to the deceleration start position determined by the sync release position, the reference axis and the synchronous axis are synchronously moved by the reference axis movement command, and the sequence circuit synchronizes during the axis movement. Synchronization control method in a numerical control device, characterized in that the input signals, or the synchronization shaft to the deceleration start position to start deceleration of the synchronous shaft by moving to release the synchronous control by stopping the synchronizing shaft.
【請求項2】 加工プログラムで指定された同期制御対
象の可動軸のうち、シーケンス回路より軸移動中同期開
始信号が入力された時点で、移動中の軸を基準軸に、停
止中の軸を同期軸と自動判定することを特徴とする請求
項1に記載の数値制御装置における同期制御方法。
2. Among the movable axes to be synchronously controlled, which are designated by the machining program, when the synchronization start signal during axis movement is input from the sequence circuit, the axis that is moving is set as the reference axis and the axis that is stopped is set as the reference axis. The synchronous control method in a numerical controller according to claim 1, wherein the synchronous axis is automatically determined.
【請求項3】 一つの可動軸を基準軸に、他の少なくと
も一つの可動軸を同期軸として、少なくとも2軸の可動
軸を同期制御する数値制御装置における同期制御方法に
おいて、 加工プログラムに記述された軸移動中同期制御モード指
令を解析後、基準軸の移動下において現在の基準軸と同
期軸の相対距離を計算し、この相対距離と加工プログラ
ムで指定された同期距離とを比較し、相対距離と同期距
離とが一致した時点で、基準軸の加減速特性およびサー
ボ制御特性と同じ加減速特性およびサーボ制御特性をも
って同期軸に移動指令を与えることで、停止中の同期軸
を移動中の基準軸に同期させ、同期完了後は同期軸と基
準軸を加工プログラムで指定された同期距離を保ちなが
ら移動させ、シーケンス回路より前記軸移動中同期解除
信号を入力、あるいは指定された同期解除位置より決ま
る減速開始位置に同期軸が移動することによって同期軸
の減速を開始し、同期軸を停止させて同期制御を解除す
ることを特徴とする数値制御装置における同期制御方
法。
3. A synchronous control method in a numerical controller for synchronously controlling at least two movable axes, wherein one movable axis serves as a reference axis and at least one other movable axis serves as a synchronous axis. After analyzing the synchronous control mode command during axis movement, the relative distance between the current reference axis and the synchronous axis is calculated while the reference axis is moving, and this relative distance is compared with the synchronous distance specified in the machining program. When the distance and the synchronous distance match, the movement command is given to the synchronous axis with the same acceleration / deceleration characteristics and servo control characteristics as the reference axis acceleration / deceleration characteristics and servo control characteristics, so Synchronize with the reference axis, and after synchronization is complete, move the synchronization axis and the reference axis while maintaining the synchronization distance specified by the machining program, and input the synchronization release signal during axis movement from the sequence circuit. , Or synchronization in a numerical controller characterized by starting deceleration of the synchronous axis by moving the synchronous axis to a deceleration start position determined by the specified desynchronization position, and stopping the synchronous axis to release the synchronous control. Control method.
【請求項4】 前記相対距離が前記同期距離と一致した
時点から同期軸の加減速時定数が示す時間とサーボ制御
系のゲインの逆数が示す時間との合計時間が経過した時
点をもって基準軸と同期軸の同期完了を判定することを
特徴とする請求項3に記載の数値制御装置における同期
制御方法。
4. The reference axis is defined as a time point at which a total time of a time indicated by an acceleration / deceleration time constant of a synchronous axis and a time indicated by a reciprocal of a gain of a servo control system has elapsed from a time point when the relative distance matches the synchronous distance. The synchronization control method in a numerical controller according to claim 3, wherein the completion of synchronization of the synchronization axis is determined.
【請求項5】 指定された同期解除位置と軸送り速度と
加減速特性から同期軸の減速開始位置を計算し、同期軸
が減速開始位置に到達した時点で同期軸を減速させ、指
定された同期解除位置に同期軸を停止させることを特徴
とする請求項1〜4の何れかに記載の数値制御装置にお
ける同期制御方法。
5. The deceleration start position of the synchronous axis is calculated from the specified desynchronization position, axis feed speed, and acceleration / deceleration characteristics, and when the synchronous axis reaches the deceleration start position, the synchronous axis is decelerated and designated. The synchronization control method in the numerical controller according to claim 1, wherein the synchronization axis is stopped at the synchronization release position.
【請求項6】 前記同期解除位置を加工プログラムに記
述することにより加工プログラムによって指定すること
を特徴とする請求項5に記載の数値制御装置における同
期制御方法。
6. The synchronization control method in a numerical control device according to claim 5, wherein the synchronization release position is specified in the machining program by describing it in the machining program.
【請求項7】 軸モータの電流値などからモータ負荷を
検出し、加工プログラムに記述された切削指令と検出し
たモータ負荷とから切削中であるか否かを判断し、その
判断が切削中より非切削中に変遷した時点の座標値に基
づいて同期解除位置を指定することを特徴とする請求項
5に記載の数値制御装置における同期制御方法。
7. A motor load is detected from the current value of the axis motor, etc., and it is judged whether or not cutting is in progress based on the cutting command described in the machining program and the detected motor load. The synchronization control method in a numerical controller according to claim 5, wherein the synchronization release position is designated based on the coordinate value at the time of transition during non-cutting.
【請求項8】 シーケンス回路から軸移動中同期開始信
号が入力された時点の同期軸の座標位置あるいは加工プ
ログラムにより指定された同期開始位置を記憶し、記憶
された前記座標位置あるいは前記同期開始位置を同期解
除位置とし、この同期解除位置と軸送り速度と加減速特
性から同期軸の減速開始位置を計算し、同期軸が前記減
速開始位置に到達した時点で同期軸を減速させ、前記同
期解除位置に同期軸を停止させることを特徴とする請求
項1〜4の何れかに記載の数値制御装置における同期制
御方法。
8. The coordinate position of the synchronous axis at the time when the synchronous start signal during axis movement is input from the sequence circuit or the synchronous start position designated by the machining program is stored, and the stored coordinate position or the synchronous start position is stored. Is set as the sync release position, the deceleration start position of the sync axis is calculated from the sync release position, the axis feed speed, and the acceleration / deceleration characteristics, and when the sync axis reaches the deceleration start position, the sync axis is decelerated to release the sync. The synchronous control method in a numerical controller according to claim 1, wherein the synchronous axis is stopped at the position.
【請求項9】 同期軸がストロークエンド等のアラーム
で停止した場合には軸移動中同期制御を一時解除して基
準軸の移動を続行し、その後に再び同期条件が成立した
場合に軸移動中同期制御を再開することを特徴とする請
求項1〜8の何れかに記載の数値制御装置における同期
制御方法。
9. When the synchronous axis stops due to an alarm such as a stroke end, the synchronous control is temporarily released to continue the movement of the reference axis, and when the synchronous condition is satisfied again, the axis is moving. The synchronous control method in the numerical controller according to claim 1, wherein the synchronous control is restarted.
【請求項10】 軸移動中同期制御を再開する前記同期
条件は基準軸と同期軸との相対距離が予め定義されてい
る同期距離に一致することであることを特徴とする請求
項9に記載の数値制御装置における同期制御方法。
10. The synchronization condition for restarting the synchronization control during axis movement is that the relative distance between the reference axis and the synchronization axis coincides with a predefined synchronization distance. Control method in the numerical controller of the present invention.
【請求項11】 一つの可動軸を基準軸に、他の少なく
とも一つの可動軸を同期軸として、少なくとも2軸の可
動軸を同期制御する数値制御装置における同期制御装置
において、 加工プログラムに記述された軸移動中同期制御モード設
定指令と軸移動中同期制御モード解除指令を解析する軸
移動中同期制御モード指令解析手段と、 前記軸移動中同期制御モード指令解析手段による軸移動
中同期制御モード設定指令の解析により同期軸の加減速
特性を基準軸の加減速特性と同じ特性にする軸移動中同
期制御モードを設定し、軸移動中同期制御モード解除指
令の解析により同期軸の加減速特性を同期軸本来の加減
速特性に戻して通常モードにする軸移動中同期制御モー
ド切り替え手段と、 シーケンス回路から軸移動中同期
開始信号を検出する軸移動中同期制御信号検出手段と、 軸移動中同期制御モード時において、前記軸移動中同期
制御信号検出手段が軸移動中同期開始信号を検出した時
点の基準軸の残距離を計算し、当該残距離を同期軸の位
置指令とする残距離指令手段と、 基準軸と同期軸の停止で同期完了を判定し、軸移動中同
期制御完了信号をシーケンス回路に出力する軸移動中同
期制御完了信号出力手段と、 を有していることを特徴とする数値制御装置における同
期制御装置。
11. A synchronous control device in a numerical control device for synchronously controlling at least two movable shafts with one movable shaft as a reference shaft and at least one other movable shaft as a synchronous shaft, which is described in a machining program. Axis moving synchronous control mode setting command and axis moving synchronous control mode cancel command analyzing axis moving synchronous control mode command analysis means, and axis moving synchronous control mode command analyzing means for axis moving synchronous control mode setting Set the synchronous control mode during axis movement that makes the acceleration / deceleration characteristics of the synchronous axis the same as the acceleration / deceleration characteristics of the reference axis by analyzing the command, and analyze the acceleration / deceleration characteristics of the synchronous axis by analyzing the command for canceling the synchronous control mode during axis movement. Synchronous axis original synchronous acceleration / deceleration characteristics are returned to normal mode. Axis movement synchronous control mode switching means and axis movement that detects the axis movement synchronous start signal from the sequence circuit. In the moving synchronization control signal detecting means and the axis moving synchronization control mode, the remaining distance of the reference axis at the time when the axis moving synchronization control signal detecting means detects the axis moving synchronization start signal is calculated, and the remaining distance is calculated. Remaining distance command means that uses the distance as the position command for the synchronous axis and the completion of synchronization by stopping the reference axis and the synchronous axis, and outputs the synchronous control completion signal during axis movement to the sequence circuit. And a synchronous control device in a numerical control device.
【請求項12】 シーケンス回路からの軸移動中同期解
除信号の入力によって同期軸を減速停止させる指令を行
う同期軸減速指令手段を有していることを特徴とする請
求項11に記載の数値制御装置における同期制御装置。
12. The numerical control according to claim 11, further comprising a synchronous axis deceleration command means for issuing a command to decelerate and stop the synchronous axis by inputting a synchronous release signal during axis movement from a sequence circuit. Synchronous control device in the device.
【請求項13】 加工プログラムで指定された同期制御
対象の可動軸のうち、シーケンス回路より軸移動中同期
開始信号が入力された時点で、移動中の軸を検出する移
動軸検出手段と、 前記移動軸検出手段による移動軸検出結果から移動中の
軸を基準軸に、停止中の軸を同期軸と判定する基準軸・
同期軸判定手段と、 を有していることを特徴とする請求項11または12に
記載の数値制御装置における同期制御装置。
13. A moving axis detecting means for detecting a moving axis of a movable axis to be synchronously controlled, which is designated by a machining program, when a synchronization start signal during axis movement is input from a sequence circuit, Based on the moving axis detection result by the moving axis detecting means, the moving axis is the reference axis and the stopped axis is the reference axis.
The synchronous control device in a numerical control device according to claim 11 or 12, further comprising: a synchronous axis determining means.
【請求項14】 一つの可動軸を基準軸に、他の少なく
とも一つの可動軸を同期軸として、少なくとも2軸の可
動軸を同期制御する数値制御装置における同期制御装置
において、 加工プログラムに記述された同期距離を含む軸移動中同
期制御モード設定指令と軸移動中同期制御モード解除指
令とを解析する軸移動中同期制御モード指令解析手段
と、 移動中の現在の基準軸と同期軸との相対距離を計算する
相対距離計算手段と、 前記軸移動中同期制御モード指令解析手段による軸移動
中同期制御モード設定指令の解析により同期軸の加減速
特性およびサーボ制御特性を基準軸の加減速特性および
サーボ制御特性と同じ特性にする軸移動中同期制御モー
ドを設定し、軸移動中同期制御モード解除指令の解析に
より同期軸の加減速特性およびサーボ制御特性を同期軸
本来の加減速特性およびサーボ制御特性に戻して通常モ
ードにする軸移動中同期制御モード切り替え手段と、
軸移動中同期制御モード時において、加工プログラムに
よって指定された同期距離と前記相対距離計算手段によ
り計算された前記相対距離とを比較し、前記相対距離が
前記同期距離と一致した場合に基準軸の単位時間当たり
の移動指令と同じ移動指令を同期軸に対して出力する同
期軸指令手段と、 を有していることを特徴とする数値制御装置における同
期制御装置。
14. A synchronous control device in a numerical controller for synchronously controlling at least two movable shafts, wherein one movable shaft is a reference shaft and at least one other movable shaft is a synchronous shaft. The axis-synchronous control mode command analysis means for analyzing the axis-movement synchronous control mode setting command and the axis-moving synchronous control mode release command, and the relative movement between the current reference axis and the synchronous axis during movement. Relative distance calculating means for calculating the distance, and the acceleration / deceleration characteristics of the synchronous axis and the servo control characteristics by the analysis of the synchronous control mode setting instruction during axis movement by the axis movement synchronous control mode command analysis means Set the synchronous control mode during axis movement that has the same characteristics as the servo control characteristics, and analyze the acceleration / deceleration characteristics and servo of the synchronous axis by analyzing the synchronous control mode release command during axis movement. Synchronous control mode switching means during axis movement for returning the control characteristics to the normal mode by returning to the original acceleration / deceleration characteristics and servo control characteristics of the synchronous axis,
In the synchronous control mode during axis movement, the synchronous distance designated by the machining program is compared with the relative distance calculated by the relative distance calculating means, and when the relative distance matches the synchronous distance, the reference axis A synchronous control device in a numerical control device, comprising: a synchronous axis command means for outputting to the synchronous axis the same movement command as a movement command per unit time.
【請求項15】 前記相対距離が前記同期距離と一致し
た時点から同期軸の加減速時定数が示す時間とサーボ制
御系のゲインの逆数が示す時間との合計時間が経過した
時点をもって基準軸と同期軸の同期完了を判定する同期
判定手段と、 前記同期判定手段で判定された同期完了の通知によって
シーケンス回路の軸移動中同期制御完了信号をオンさせ
る軸移動中同期制御完了信号出力手段と、 を有していることを特徴とする請求項14に記載の数値
制御装置における同期制御装置。
15. The reference axis is defined as a point when a total time of a time indicated by an acceleration / deceleration time constant of a synchronous axis and a time indicated by a reciprocal of a gain of a servo control system elapses from the time when the relative distance matches the synchronous distance. A synchronization determination means for determining the synchronization completion of the synchronization axis, and an axis movement synchronization control completion signal output means for turning on the axis movement synchronization control completion signal of the sequence circuit according to the synchronization completion notification determined by the synchronization determination means, The synchronous control device in the numerical control device according to claim 14, further comprising:
【請求項16】 指定された同期解除位置と軸送り速度
と加減速特性から同期軸の減速開始位置を計算する同期
軸減速開始位置計算手段と、 同期軸が前記減速開始位置に到達したことを判定し、同
期軸を減速停止させる信号処理を行う同期軸減速開始位
置判定手段と、 を有していることを特徴とする請求項11〜15の何れ
かに記載の数値制御装置における同期制御装置。
16. A synchronous axis deceleration start position calculating means for calculating a deceleration start position of the synchronous axis from a designated synchronous release position, axis feed speed, and acceleration / deceleration characteristics, and a method for determining that the synchronous axis has reached the deceleration start position. 16. A synchronous control device in a numerical control device according to claim 11, further comprising: a synchronous axis deceleration start position determination means for performing a signal processing for determining and decelerating and stopping the synchronous axis. .
【請求項17】 前記同期解除位置を加工プログラム記
述により加工プログラムによって指定することを特徴と
する請求項16に記載の数値制御装置における同期制御
装置。
17. The synchronization control device in a numerical controller according to claim 16, wherein the synchronization release position is designated by a machining program by a machining program description.
【請求項18】 軸モータの電流値などからモータ負荷
を検出するモータ負荷検出手段と、 加工プログラムに記述された切削指令と前記モータ負荷
検出手段によって検出したモータ負荷とから切削中であ
るか否かを判定する切削判定手段とを有し、 前記切削判定手段の判定が切削中より非切削中に変遷し
た時点の座標値に基づいて前記同期解除位置を指定する
ことを特徴とする請求項16に記載の数値制御装置にお
ける同期制御装置。
18. A motor load detecting means for detecting a motor load based on a current value of a shaft motor, a cutting command described in a machining program, and a motor load detected by the motor load detecting means for determining whether or not cutting is being performed. 17. A cutting determination means for determining whether or not the synchronization release position is designated based on a coordinate value at a time point when the determination of the cutting determination means changes from during cutting to during non-cutting. A synchronous control device in the numerical control device according to.
【請求項19】 シーケンス回路から軸移動中同期開始
信号が入力された時点の同期軸の座標位置あるいは加工
プログラムにより指定された同期開始位置を記憶し、記
憶された前記座標位置あるいは前記同期開始位置を同期
解除位置とし、この同期解除位置と軸送り速度と加減速
特性から同期軸の減速開始位置を計算する同期軸減速開
始位置計算手段と、 同期軸が前記減速開始位置に到達したことを判定し、同
期軸を減速停止させる信号処理を行う同期軸減速開始位
置判定手段と、 を有していることを特徴とする請求項11〜15の何れ
かに記載の数値制御装置における同期制御装置。
19. The coordinate position of the synchronous axis at the time when the synchronous start signal during axis movement is input from the sequence circuit or the synchronous start position designated by the machining program is stored, and the stored coordinate position or the synchronous start position is stored. Is set as the sync release position, the sync axis deceleration start position calculation means for calculating the deceleration start position of the sync axis from the sync release position, the axis feed speed and the acceleration / deceleration characteristics, and it is determined that the sync axis has reached the deceleration start position. The synchronous control device in the numerical control device according to any one of claims 11 to 15, further comprising: a synchronous shaft deceleration start position determining means that performs signal processing for decelerating and stopping the synchronous shaft.
【請求項20】 同期軸がストロークエンド等のアラー
ムで停止した場合には軸移動中同期制御を一時解除して
基準軸の移動を続行させ、その後に再び同期条件が成立
した場合に軸移動中同期制御を再開する指令を行う同期
一時解除指令手段を有していることを特徴とする請求項
11〜19の何れかに記載の数値制御装置における同期
制御装置。
20. When the synchronous axis stops due to an alarm such as a stroke end, the synchronous control during axis movement is temporarily released to continue the movement of the reference axis, and then the axis is moving when the synchronous condition is satisfied again. The synchronization control device in the numerical control device according to any one of claims 11 to 19, further comprising a synchronization temporary cancellation command means for issuing a command to restart the synchronization control.
【請求項21】 軸移動中同期制御を再開する前記同期
条件は基準軸と同期軸との相対距離が予め定義されてい
る同期距離に一致することであることを特徴とする請求
項20に記載の数値制御装置における同期制御装置。
21. The synchronous condition for restarting synchronous control during axis movement, wherein the relative distance between the reference axis and the synchronous axis is equal to a predefined synchronous distance. Control device in the numerical control device.
JP06333996A 1995-03-20 1996-03-19 Synchronous control method and synchronous control device in numerical controller Expired - Fee Related JP3428804B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP06333996A JP3428804B2 (en) 1995-03-20 1996-03-19 Synchronous control method and synchronous control device in numerical controller

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP6085095 1995-03-20
JP7-60850 1995-03-20
JP06333996A JP3428804B2 (en) 1995-03-20 1996-03-19 Synchronous control method and synchronous control device in numerical controller

Publications (2)

Publication Number Publication Date
JPH08320714A true JPH08320714A (en) 1996-12-03
JP3428804B2 JP3428804B2 (en) 2003-07-22

Family

ID=26401905

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06333996A Expired - Fee Related JP3428804B2 (en) 1995-03-20 1996-03-19 Synchronous control method and synchronous control device in numerical controller

Country Status (1)

Country Link
JP (1) JP3428804B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6647353B2 (en) 2000-10-13 2003-11-11 Fanuc Ltd. Acceleration/deceleration method
CN100349078C (en) * 2004-03-11 2007-11-14 欧姆龙株式会社 Synchronous controller
JP2009294868A (en) * 2008-06-04 2009-12-17 Mitsubishi Electric Corp Numerical control device and control method for machine tool
JP2011243153A (en) * 2010-05-21 2011-12-01 Mitsubishi Electric Corp Synchronization control device
JP2016162205A (en) * 2015-03-02 2016-09-05 ファナック株式会社 Control device capable of centralized management of control by grouping multiple systems
DE102017011602A1 (en) 2016-12-21 2018-06-21 Fanuc Corporation Numerical control
JP2019076990A (en) * 2017-10-24 2019-05-23 ファナック株式会社 Control device and control method for controlling work movement device and robot so that the device and the robot operate cooperatively

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6647353B2 (en) 2000-10-13 2003-11-11 Fanuc Ltd. Acceleration/deceleration method
CN100349078C (en) * 2004-03-11 2007-11-14 欧姆龙株式会社 Synchronous controller
JP2009294868A (en) * 2008-06-04 2009-12-17 Mitsubishi Electric Corp Numerical control device and control method for machine tool
JP2011243153A (en) * 2010-05-21 2011-12-01 Mitsubishi Electric Corp Synchronization control device
JP2016162205A (en) * 2015-03-02 2016-09-05 ファナック株式会社 Control device capable of centralized management of control by grouping multiple systems
DE102017011602A1 (en) 2016-12-21 2018-06-21 Fanuc Corporation Numerical control
CN108227638A (en) * 2016-12-21 2018-06-29 发那科株式会社 Numerical control device
JP2019076990A (en) * 2017-10-24 2019-05-23 ファナック株式会社 Control device and control method for controlling work movement device and robot so that the device and the robot operate cooperatively
US10723023B2 (en) 2017-10-24 2020-07-28 Fanuc Corporation Control device and control method for controlling workpiece moving device and robot to operate in cooperation with each other
DE102018125720B4 (en) * 2017-10-24 2020-09-24 Fanuc Corporation Control device and control method for performing control such that a workpiece moving device and a robot are operated in cooperation

Also Published As

Publication number Publication date
JP3428804B2 (en) 2003-07-22

Similar Documents

Publication Publication Date Title
EP0606649B1 (en) Numerically controlled machine tool and method to re-execute a machining program after it has been stopped
US7689300B2 (en) Numerical control unit
JPS61157909A (en) System for correcting route error of robot
JP3827951B2 (en) NC program optimization method and apparatus in NC machining
JP4578742B2 (en) Interference prevention device
JP3428804B2 (en) Synchronous control method and synchronous control device in numerical controller
JP4226629B2 (en) Numerical control device for controlling a plurality of axes and synchronous control method using numerical control device
JP2001125613A (en) Numerical control simulation device
US5170034A (en) Method and apparatus for welding robot control
KR930011227B1 (en) Numerical controller
US7110851B2 (en) Numerically controlled device
US10444728B2 (en) Numerical controller performing positioning for avoiding interference with workpiece
JP2004326257A (en) Simulation apparatus
JP3680064B2 (en) Numerical controller
JP2011014029A (en) Collision prevention method of machine tool
JPH0370242B2 (en)
JP2633696B2 (en) Robot control system
JP3198010B2 (en) Control method and control device for machine tool
US5255200A (en) Numerical control information generating system
EP0394469A1 (en) Numerical control method
JP2007249671A (en) Method for preventing collision in machine tool
JP2010039993A (en) Control method and control device for nc lathe
JPH06282318A (en) Mumerically controlled machine tool
JP3399745B2 (en) Superposition control method and multi-system numerical controller in multi-system numerical controller
JPS6349803A (en) Nc program production system for nc device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 5

Free format text: PAYMENT UNTIL: 20080516

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

Free format text: PAYMENT UNTIL: 20090516

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100516

Year of fee payment: 7

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

Year of fee payment: 7

Free format text: PAYMENT UNTIL: 20100516

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

Free format text: PAYMENT UNTIL: 20110516

Year of fee payment: 8

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

Year of fee payment: 8

Free format text: PAYMENT UNTIL: 20110516

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

Free format text: PAYMENT UNTIL: 20120516

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120516

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130516

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees