JP5413085B2 - Numerical control device for machine tool, control method for machine tool, control program for machine tool - Google Patents

Numerical control device for machine tool, control method for machine tool, control program for machine tool Download PDF

Info

Publication number
JP5413085B2
JP5413085B2 JP2009218395A JP2009218395A JP5413085B2 JP 5413085 B2 JP5413085 B2 JP 5413085B2 JP 2009218395 A JP2009218395 A JP 2009218395A JP 2009218395 A JP2009218395 A JP 2009218395A JP 5413085 B2 JP5413085 B2 JP 5413085B2
Authority
JP
Japan
Prior art keywords
speed
command
procedure
deceleration
positioning 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.)
Active
Application number
JP2009218395A
Other languages
Japanese (ja)
Other versions
JP2011070247A (en
Inventor
崇 大高
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2009218395A priority Critical patent/JP5413085B2/en
Publication of JP2011070247A publication Critical patent/JP2011070247A/en
Application granted granted Critical
Publication of JP5413085B2 publication Critical patent/JP5413085B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、工具又はワークを位置決め制御する工作機械の数値制御装置、工作機械の制御方法、及び工作機械の制御プログラムに関する。   The present invention relates to a numerical control device for a machine tool that controls positioning of a tool or a workpiece, a method for controlling a machine tool, and a control program for a machine tool.

近年利用されているNC工作機械(Numerical Control)は、コンピュータで構成する数値制御装置がNCプログラムにしたがって自動制御を行う。このNCプログラムは、各部の動作制御や処理を行わせる複数の指令が所定の記述順で記述されたものであり、数値制御装置はその記述順にしたがって各動作指令に対応する各部の駆動機構の数値制御を行う。   An NC machine tool (Numerical Control) used in recent years is automatically controlled by a numerical control device configured by a computer in accordance with an NC program. In this NC program, a plurality of commands for performing operation control and processing of each unit are described in a predetermined description order, and the numerical control device is a numerical value of the driving mechanism of each unit corresponding to each operation command in accordance with the description order. Take control.

一つの動作指令による移動部分の移動動作としては、初期における増速区間で加速してから、等速区間で所定の移動速度により等速移動し、終期の減速区間で減速して移動部分を目的の座標位置に停止させる一連の行程となる。そして、いずれの移動動作における増速区間と減速区間でも、移動部分の重量による慣性や駆動機構の制動能力を考慮して固定的に設定された、所定の大きさの加速度で増速・減速が行われる。また、いずれの移動動作における等速区間でも、共通の同一の移動速度による等速移動が行われる。   The movement of the moving part by one operation command is as follows: Accelerate in the initial speed increase section, then move at a constant speed at a constant speed in the constant speed section, and decelerate in the final deceleration section This is a series of steps to stop at the coordinate position. In both the acceleration and deceleration sections in any moving operation, acceleration / deceleration is performed with a predetermined acceleration that is fixedly set in consideration of the inertia due to the weight of the moving part and the braking capability of the drive mechanism. Done. Further, constant speed movement is performed at the same common movement speed in the constant speed section in any movement operation.

ここで、移動の態様によっては、NCプログラムの便宜上、1つの位置を境に動作指令を2つに分けて記述する場合がある。この場合、当該1つの位置に到達させ移動終了するまでの1つの移動指令と、さらに当該位置から移動開始し出発させる別の移動指令とに、分けて記述される。このように移動のための指令を連続した2つの移動指令に分けて記述した場合には、当該1つの位置の前後において、減速停止と増速出発を行う分だけ移動時間に無駄が生じてしまう。   Here, depending on the mode of movement, for convenience of the NC program, there may be a case where the operation command is divided into two parts with one position as a boundary. In this case, it is described separately as one movement command for reaching the one position and ending the movement, and another movement command for starting movement from the position and starting. In this way, when the command for movement is described by dividing it into two continuous movement commands, the traveling time is wasted by the amount of deceleration stop and acceleration start before and after the one position. .

この移動時間の無駄を解消するための手法として、連続した2つの移動指令を受け取った数値制御装置が、先行の移動指令の減速区間と後続の移動指令の増速区間を接続するよう2つの移動指令を合成する手法がある(例えば、特許文献1参照)。   As a technique for eliminating this waste of travel time, a numerical control device that has received two consecutive movement commands connects two movements so as to connect the deceleration section of the preceding movement command and the acceleration section of the subsequent movement command. There is a method of synthesizing commands (see, for example, Patent Document 1).

この従来技術の数値制御装置は、先行の移動指令の減速区間の開始時期と、後続の移動指令の増速区間の開始時期とを、一致させる。これにより、先行の移動指令の減速区間と後続の移動指令の増速区間とが重複し、この重複により減速方向の加速度と増速方向の加速度とが相殺される結果、上記所定の移動速度による等速移動が維持される。このような合成を行うことにより、数値制御装置が連続した2つの移動指令を受け取った場合でも、増速区間、等速区間、及び減速区間をそれぞれ1度ずつ行う一連の行程のみで、移動制御を行うことができる。   This numerical control device according to the prior art makes the start timing of the deceleration section of the preceding movement command coincide with the start timing of the acceleration section of the subsequent movement command. As a result, the deceleration section of the preceding movement command and the acceleration section of the subsequent movement command overlap, and the acceleration in the deceleration direction and the acceleration in the acceleration direction are canceled by this overlap. Constant speed movement is maintained. By performing such synthesis, even when the numerical controller receives two continuous movement commands, the movement control is performed only by a series of strokes in which each of the acceleration section, the constant speed section, and the deceleration section is performed once. It can be performed.

特開平1−276309号公報JP-A-1-276309

前述したように、通常、増速区間及び減速区間における加速度は、所定の大きさに固定されている。このため、移動指令の移動距離が短い場合には、増速開始後、等速区間の上記所定の移動速度に達しない増速区間の途中で、減速区間を開始しなければならない。   As described above, the acceleration in the acceleration zone and the deceleration zone is usually fixed at a predetermined magnitude. For this reason, when the moving distance of the movement command is short, the deceleration section must be started in the middle of the speed increasing section that does not reach the predetermined moving speed in the constant speed section after the start of speed increasing.

この結果、先行の移動指令の移動距離に比べて後続の移動指令の移動距離が著しく短い場合に、上記従来技術による移動指令の合成を実行すると、以下のような問題が生じる。すなわち、先行の移動指令の減速区間の開始時期から後続の移動指令の増速区間を開始するとき、先行の減速区間の途中で後続の増速区間が終了し減速区間を開始することになる。このため、先行と後続の移動指令のそれぞれの減速区間が重複する区間が生じてしまう。この減速区間が重複した区間では、通常の2倍の大きさの加速度で減速動作が行われる。この結果、例えばサーボモータ等を含む工作機械の駆動機構に対し過度の負担をかけるおそれがあり、工作機械の健全性を維持するのが困難であった。   As a result, when the movement command is synthesized by the conventional technique when the movement distance of the subsequent movement command is significantly shorter than the movement distance of the preceding movement command, the following problems occur. That is, when the acceleration section of the subsequent movement command is started from the start timing of the deceleration section of the preceding movement command, the subsequent acceleration section ends and the deceleration section starts in the middle of the preceding deceleration section. For this reason, a section in which the deceleration sections of the preceding and subsequent movement commands overlap each other occurs. In the section where the deceleration sections overlap, the deceleration operation is performed with an acceleration twice as large as the normal speed. As a result, there is a risk that an excessive load is applied to the drive mechanism of the machine tool including, for example, a servo motor, and it is difficult to maintain the soundness of the machine tool.

本発明の目的は、駆動機構に過度の負担をかけることなく連続した2つの移動指令を合成し、移動時間の無駄を防止できる数値制御装置、工作機械の制御方法、及び工作機械の制御プログラムを提供することにある。   An object of the present invention is to provide a numerical control device, a machine tool control method, and a machine tool control program that can synthesize two continuous movement commands without imposing an excessive load on the drive mechanism and prevent waste of movement time. It is to provide.

上記目的を達成するために、第1の発明は、予め定められた加速度及び速度に基づき、工具又はワークを、移動方向と移動量とを含む位置決め指令で指示された位置に位置決め制御する数値制御装置において、前記位置決め指令の単位時間当りの実行速度を演算する第1速度演算手段と、前記第1速度演算手段によって演算された現在の位置決め指令の実行速度が減速開始直前の速度か否かを判断する減速開始判断手段と、前記減速開始判断手段によって前記実行速度が減速開始直前の速度であると判断された場合、次の指令を取り込む取り込み手段と、前記取り込み手段によって取り込んだ次の指令が、位置決め指令であり、かつ前記現在の位置決め指令と同一方向に対する位置決め指令であるか否かを判断する判断手段と、前記判断手段によって前記現在の位置決め指令と次の位置決め指令とが同一方向に対する位置決め指令であると判断した場合、前記次の位置決め指令が前記予め定められた速度に到達できるか否かを、前記次の位置決め指令の移動量と、前記予め定められた加速度とに基づいて、判断する速度判断手段と、前記速度判断手段によって、前記次の位置決め指令が前記予め定められた速度に到達できないと判断した場合、前記加速度と前記次の位置決め指令の移動量とに基づいて、前記予め定められた速度を変更する変更手段と、前記変更手段によって変更された速度に基づいて前記次の位置決め指令の単位時間当たりの実行速度を演算する第2速度演算手段と、前記第1速度演算手段によって演算された実行速度と前記第2速度演算手段によって演算された実行速度とを合成する速度合成手段とを備え、前記速度合成手段は、前記第1速度演算手段によって演算された実行速度による減速開始時に前記第2速度演算手段によって演算された実行速度による合成用増速を開始して所定の合成用等速速度に達するまで増速したうえで、引き続き合成用等速速度で等速移動させ、前記第1速度演算手段によって演算された実行速度による減速が終了した際に前記合成用減速を開始して減速させることを特徴とする。
In order to achieve the above object, the first invention is a numerical control for positioning and controlling a tool or a workpiece at a position designated by a positioning command including a moving direction and a moving amount based on a predetermined acceleration and speed. In the apparatus, a first speed calculation means for calculating an execution speed per unit time of the positioning command, and whether or not the execution speed of the current positioning command calculated by the first speed calculation means is a speed immediately before the start of deceleration. If the execution start speed is determined to be a speed immediately before the start of deceleration by the deceleration start determination means to be determined and the deceleration start determination means, a fetching means for fetching the next command and a next command fetched by the fetching means are a positioning command, and said determining means for determining whether a positioning command for the current positioning command in the same direction, the determining means Therefore if the current positioning command and the next positioning command is determined that the positioning command for the same direction, whether it can reach speeds the next positioning command is the predetermined said next positioning command Based on the amount of movement and the predetermined acceleration, and when the speed determining unit determines that the next positioning command cannot reach the predetermined speed, Based on the acceleration and the amount of movement of the next positioning command, changing means for changing the predetermined speed, and execution of the next positioning command per unit time based on the speed changed by the changing means A second speed calculating means for calculating a speed, an execution speed calculated by the first speed calculating means and a second speed calculating means. And a speed synthesizing means for synthesizing the line speed, said speed synthesis means, synthesis by execution speed that is calculated by the second speed calculating means at the start of deceleration by execution speed computed by the first speed calculating means The speed is increased until the predetermined constant speed for synthesis is reached, and then the constant speed is continuously moved at the constant speed for synthesis, and the deceleration by the execution speed calculated by the first speed calculating means is performed. decelerating the start of the synthesis reduction upon completion and said Rukoto.

本願第1発明の工作機械の数値制御装置は、工作機械の工具又はワークの位置決め制御を行う。第1速度演算手段が、移動方向と移動量とを含む位置決め指令の、単位時間当りの実行速度を演算する。減速開始判断手段が、上記現在の位置決め指令の実行速度が、減速開始直前の速度か否かを判断する。減速開始判断手段が実行速度が減速開始直前の速度であると判断した場合、取り込み手段が、次の位置決め指令を取り込む。本願第1発明では、2つの位置決め指令を前後して取り込んだ場合には、それら2つの位置決め指令を合成し、無駄な停止動作をしないようにすることができる。判断手段、取り込んだ次の指令が、位置決め指令であって、かつ、現在の位置決め指令と同一方向に対する位置決め指令であるか否かを、判断する。判断が満たされた場合は、合成可能とみなす。
The numerical control device for a machine tool according to the first invention of the present application performs positioning control of a tool or a workpiece of the machine tool. The first speed calculation means calculates an execution speed per unit time of the positioning command including the movement direction and the movement amount. A deceleration start determination means determines whether or not the current execution speed of the positioning command is a speed immediately before the start of deceleration. When the deceleration start determining means determines that the execution speed is the speed immediately before the start of deceleration, the capturing means captures the next positioning command . In the first invention of the present application, when two positioning commands are fetched before and after, the two positioning commands can be combined so that a useless stop operation is not performed. Determining means, next instruction fetched is a positioning command, and whether or not the positioning command for the current positioning command in the same direction, it is determined. If the judgment is satisfied, it is considered that synthesis is possible.

次の位置決め指令の移動量が現在の位置決め指令の移動量よりもかなり小さい場合、これら2つの指令を合成した指令による位置決め時に、減速区間の加速度が過度に大きくなる。   When the amount of movement of the next positioning command is considerably smaller than the amount of movement of the current positioning command, the acceleration in the deceleration section becomes excessively large during positioning by a command obtained by combining these two commands.

本願第1発明では、速度判断手段が、次の位置決め指令の移動量と、予め定められた加速度とに基づいて、次の位置決め指令が予め定められた速度に到達できるか否かを、判断する。   In the first invention of this application, the speed determining means determines whether or not the next positioning command can reach the predetermined speed based on the movement amount of the next positioning command and the predetermined acceleration. .

予め定められた速度に到達できないと判断した場合は、そのままでは、合成した指令による減速区間の加速度が過度に大きくなるおそれがあるとみなし、変更手段が、上記の予め定められた速度の変更を行う。第2速度演算手段が、変更された速度に基づいて次の位置決め指令の単位時間当たりの実行速度を演算し、速度合成手段が、第2速度演算手段が演算した実行速度と第1速度演算手段が演算した実行速度とを合成する。これにより、前述のように減速区間の加速度が過度に大きくなり駆動機構に過度の負担をかけるのを防止しつつ、2つの指令を合成して移動時間の無駄を防止することができる。この結果、工作機械の健全性を維持し、安全に稼働することができる。   If it is determined that the predetermined speed cannot be reached, it is assumed that there is a possibility that the acceleration in the deceleration section by the synthesized command may become excessively large as it is, and the changing means changes the predetermined speed described above. Do. The second speed calculation means calculates the execution speed per unit time of the next positioning command based on the changed speed, and the speed synthesis means calculates the execution speed calculated by the second speed calculation means and the first speed calculation means. Is combined with the execution speed calculated by. Thus, as described above, it is possible to prevent the travel time from being wasted by combining the two commands while preventing the acceleration in the deceleration section from becoming excessively large and imposing an excessive burden on the drive mechanism. As a result, the soundness of the machine tool can be maintained and the machine tool can be operated safely.

第2発明は、上記第1発明において、前記速度判断手段によって、前記次の位置決め指令が前記予め定められた速度に到達できると判断した場合、第2速度演算手段は、前記予め定められた速度に基づいて前記次の位置決め指令の単位時間当たりの実行速度を演算することを特徴とする。   In a second aspect based on the first aspect, when the speed determining means determines that the next positioning command can reach the predetermined speed, the second speed calculating means Based on the above, the execution speed per unit time of the next positioning command is calculated.

これにより、次の位置決め指令の移動量が現在の位置決め指令の移動量と同等以上かあまり小さくない場合には、従来通り、それら2つの指令を合成した指令により、所定の位置決め速度に達しながらの位置決め制御を行うことができる。   As a result, when the movement amount of the next positioning command is not equal to or less than the movement amount of the current positioning command, the conventional positioning command can reach a predetermined positioning speed by combining the two commands. Positioning control can be performed.

第3発明は、上記第1又は第2発明において、前記工作機械は、コラムと、該コラムに移動可能に支持された主軸ヘッドと、該主軸ヘッドに回転可能に支持され下端に前記工具を装着可能な主軸と、前記コラムに設けられた工具交換装置とを備え、前記現在の位置決め指令は、前記主軸ヘッドを、前記主軸に装着された工具を前記工具交換装置に装着する位置、または前記工具交換装置に装着された工具を前記主軸に装着する位置である工具交換準備位置へ位置決めする指令であり、前記取り込み手段が取り込んだ前記次の位置決め指令は、前記主軸ヘッドを前記工具交換準備位置から当該工具交換準備位置の上方又は下方の位置へ位置決めする指令であることを特徴とする。   According to a third aspect of the present invention, in the first or second aspect, the machine tool includes a column, a spindle head that is movably supported by the column, and a tool that is rotatably supported by the spindle head and mounted at the lower end. And a tool changer provided in the column, wherein the current positioning command is a position where the spindle head is attached to a tool attached to the spindle to the tool changer, or the tool. A command for positioning a tool mounted on a changer device to a tool replacement preparation position that is a position for mounting on the spindle, and the next positioning command fetched by the taking-in means is that the spindle head is moved from the tool replacement preparation position. It is a command for positioning to a position above or below the tool change preparation position.

一般に、工作機械は、主軸ヘッドが支持する主軸に工具を保持して回転することにより、被加工物に所定の加工を行う。主軸は、工具交換装置を用いることで複数の工具を着脱交換して用いることができる。本願第3発明の工作機械の数値制御装置では、主軸ヘッドを工具交換準備位置へ位置決めする指令の後、取り込み手段が、工具交換準備位置から当該工具交換準備位置の上方又は下方の位置へ位置決めを行う指令を取り込む。   In general, a machine tool performs predetermined processing on a workpiece by holding and rotating a tool on a spindle supported by a spindle head. The spindle can be used by attaching and detaching a plurality of tools by using a tool changer. In the numerical control device for a machine tool according to the third aspect of the present invention, after the command for positioning the spindle head to the tool change preparation position, the take-in means positions the tool head from the tool change preparation position to a position above or below the tool change preparation position. Capture the command to be performed.

これにより、上記の工具交換の際の、工具交換準備位置を挟んでの上方への移動時、若しくは、加工基準位置を挟んでの下方への移動時に、大きな加速度による悪影響を防止できる。すなわち、工具交換準備位置への現在の位置決め指令と、工具交換準備位置からの次の位置決め指令との合成により、減速区間の加速度が過度に大きくなるのを防止することができる。   Thereby, the adverse effect due to the large acceleration can be prevented at the time of the above tool change when moving upward with the tool change preparation position sandwiched or when moving downward with the machining reference position sandwiched. That is, the acceleration in the deceleration zone can be prevented from becoming excessively large by combining the current positioning command to the tool change preparation position and the next positioning command from the tool change preparation position.

上記目的を達成するために、第4発明は、予め定められた加速度及び速度に基づき、工具又はワークを、移動方向と移動量とを含む位置決め指令で指示された位置に位置決め制御する、工作機械の制御方法であって、前記位置決め指令の単位時間当りの実行速度を演算する第1速度演算手順と、前記第1速度演算手順で演算された現在の位置決め指令の実行速度が減速開始直前の速度か否かを判断する減速開始判断手順と、前記減速開始判断手順で前記実行速度が減速開始直前の速度であると判断された場合、次の指令を取り込む取り込み手順と、前記取り込み手順で取り込んだ次の指令が、位置決め指令であり、且つ前記現在の位置決め指令と同一方向に対する位置決め指令であるか否かを判断する判断手順と、前記判断手順で前記現在の位置決め指令と次の位置決め指令とが同一方向に対する位置決め指令であると判断された場合、前記次の位置決め指令が前記予め定められた速度に到達できるか否かを、前記次の位置決め指令の移動量と、前記予め定められた加速度とに基づいて、判断する速度判断手順と、前記速度判断手順で、前記次の位置決め指令が前記予め定められた速度に到達できないと判断された場合、前記加速度と前記次の位置決め指令の移動量とに基づいて、前記予め定められた速度を変更する変更手順と、前記変更手順で変更された速度に基づいて前記次の位置決め指令の単位時間当たりの実行速度を演算する第2速度演算手順と、前記第1速度演算手順で演算された実行速度と前記第2速度演算手順で演算された実行速度とを合成する速度合成手順とを備え、前記速度合成手順では、前記第1速度演算手順で演算した実行速度による減速開始時に前記第2速度演算手順で演算した実行速度による合成用増速を開始して所定の合成用等速速度に達するまで増速したうえで、引き続き合成用等速速度で等速移動させ、前記第1速度演算手順によって演算された実行速度による減速が終了した際に前記合成用減速を開始して減速することを特徴とする。
In order to achieve the above object, a fourth invention is a machine tool for positioning and controlling a tool or a workpiece at a position instructed by a positioning command including a moving direction and a moving amount based on a predetermined acceleration and speed. A first speed calculation procedure for calculating an execution speed per unit time of the positioning command, and a speed at which the current positioning command calculated in the first speed calculation procedure is a speed immediately before the start of deceleration. When the deceleration start determination procedure for determining whether or not the execution speed is the speed immediately before the deceleration start is determined by the deceleration start determination procedure, the acquisition procedure for acquiring the next command and the acquisition procedure the following command is a positioning command, and the a judgment procedure for judging whether the positioning command for the current positioning command in the same direction, the current in the determination procedure If the command and the next positioning command Me-decided is determined to be positioning command for the same direction, whether said next positioning command can reach the speed of the predetermined movement of the next positioning command A speed determination procedure to be determined based on an amount and the predetermined acceleration; and if the next positioning command is determined to be unable to reach the predetermined speed in the speed determination procedure, the acceleration And a change procedure for changing the predetermined speed based on the movement amount of the next positioning command, and an execution speed per unit time of the next positioning command based on the speed changed in the change procedure a second speed calculation procedure for calculating a, a, a speed synthesis procedure for synthesizing the computed execution speed computed and execution speed by the second speed calculation procedure in the first speed algorithm For example, in the speed synthesis procedure, the first speed calculation procedure predetermined constant velocity speed for synthesis initiates synthesis for acceleration by the execution rate calculated in the second speed calculation procedure at the start of deceleration by execution speed calculated in The speed is continuously increased at a constant speed for synthesis, and when the deceleration at the execution speed calculated by the first speed calculation procedure is completed, the deceleration for synthesis is started and decelerated. It is characterized by that.

本願第4発明の工作機械の制御方法は、工作機械の工具又はワークの位置決め制御を行う。第1速度演算手順で、移動方向と移動量とを含む位置決め指令の、単位時間当りの実行速度を演算する。減速開始判断手順で、上記現在の位置決め指令の実行速度が、減速開始直前の速度か否かを判断する。減速開始判断手順で実行速度が減速開始直前の速度であると判断した場合、取り込み手順で、次の位置決め指令を取り込む。本願第4発明では、2つの位置決め指令を前後して取り込んだ場合には、それら2つの位置決め指令を合成し、無駄な停止動作をしないようにすることができる。判断手順で、取り込んだ次の指令が、位置決め指令であって、且つ、現在の位置決め指令と同一方向に対する位置決めであるか否かを、判断する。判断が満たされた場合は、合成可能とみなす。
The machine tool control method of the fourth invention of the present application performs positioning control of the tool or workpiece of the machine tool. In the first speed calculation procedure, the execution speed per unit time of the positioning command including the moving direction and the moving amount is calculated. In the deceleration start determination procedure, it is determined whether or not the execution speed of the current positioning command is the speed immediately before the start of deceleration. When it is determined in the deceleration start determination procedure that the execution speed is the speed immediately before the deceleration start, the next positioning command is captured in the capture procedure. In the fourth invention of the present application, when two positioning commands are taken in before and after, the two positioning commands can be combined to prevent a useless stop operation. In the determination procedure, it is determined whether or not the next command fetched is a positioning command and positioning in the same direction as the current positioning command. If the judgment is satisfied, it is considered that synthesis is possible.

次の位置決め指令の移動量が現在の位置決め指令の移動量よりもかなり小さい場合、これら2つの指令を合成した指令による位置決め時に、減速区間の加速度が過度に大きくなる。   When the amount of movement of the next positioning command is considerably smaller than the amount of movement of the current positioning command, the acceleration in the deceleration section becomes excessively large during positioning by a command obtained by combining these two commands.

本願第4発明では、速度判断手順で、次の位置決め指令の移動量と、予め定められた加速度とに基づいて、次の位置決め指令が予め定められた速度に到達できるか否かを、判断する。   In the fourth invention of the present application, in the speed determination procedure, it is determined whether or not the next positioning command can reach the predetermined speed based on the movement amount of the next positioning command and the predetermined acceleration. .

予め定められた速度に到達できないと判断した場合は、そのままでは、合成した指令による減速区間の加速度が過度に大きくなるおそれがあるとみなし、変更手順で、上記の予め定められた速度の変更を行う。第2速度演算手順で、変更された速度に基づいて次の位置決め指令の単位時間当たりの実行速度を演算し、速度合成手順で、第2速度演算手順で演算した実行速度と第1速度演算手順で演算した実行速度とを合成する。これにより、前述のように減速区間の加速度が過度に大きくなり駆動機構に過度の負担をかけるのを防止しつつ、2つの指令を合成して移動時間の無駄を防止することができる。この結果、工作機械の健全性を維持し、安全に稼働することができる。   If it is determined that the predetermined speed cannot be reached, it is assumed that the acceleration of the deceleration section by the synthesized command may be excessively increased as it is, and the above predetermined speed change is performed in the change procedure. Do. In the second speed calculation procedure, the execution speed per unit time of the next positioning command is calculated based on the changed speed, and the execution speed calculated in the second speed calculation procedure and the first speed calculation procedure are calculated in the speed synthesis procedure. Is combined with the execution speed calculated in. Thus, as described above, it is possible to prevent the travel time from being wasted by combining the two commands while preventing the acceleration in the deceleration section from becoming excessively large and imposing an excessive burden on the drive mechanism. As a result, the soundness of the machine tool can be maintained and the machine tool can be operated safely.

上記目的を達成するために、第5発明は、コンピュータに、移動方向と移動量とを含み、予め定められた加速度及び速度に基づいて工具又はワークを位置決め制御する位置を指示するための位置決め指令の、単位時間当りの実行速度を演算する第1速度演算手順と、前記第1速度演算手順で演算された現在の位置決め指令の実行速度が減速開始直前の速度か否かを判断する減速開始判断手順と、前記減速開始判断手順で前記実行速度が減速開始直前の速度であると判断された場合、次の指令を取り込む取り込み手順と、前記取り込み手順で取り込んだ次の指令が、位置決め指令であり、且つ前記現在の位置決め指令と同一方向に対する位置決め指令であるか否かを判断する判断手順と、前記判断手順で前記現在の位置決め指令と次の位置決め指令とが同一方向に対する位置決め指令であると判断された場合、前記次の位置決め指令が前記予め定められた速度に到達できるか否かを、前記次の位置決め指令の移動量と、前記予め定められた加速度とに基づいて、判断する速度判断手順と、前記速度判断手順で、前記次の位置決め指令が前記予め定められた速度に到達できないと判断された場合、前記加速度と前記次の位置決め指令の移動量とに基づいて、前記予め定められた速度を変更する変更手順と、前記変更手順で変更された速度に基づいて前記次の位置決め指令の単位時間当たりの実行速度を演算する第2速度演算手順と、前記第1速度演算手順で演算された実行速度と前記第2速度演算手順で演算された実行速度とを合成する速度合成手順とを実行するとともに、前記速度合成手順では、前記第1速度演算手順で演算した実行速度による減速開始時に前記第2速度演算手順で演算した実行速度による合成用増速を開始して所定の合成用等速速度に達するまで増速したうえで、引き続き合成用等速速度で等速移動させ、前記第1速度演算手順によって演算された実行速度による減速が終了した際に前記合成用減速を開始して減速を実行させる。
In order to achieve the above object, the fifth invention provides a positioning command for instructing a computer a position for positioning control of a tool or a workpiece based on a predetermined acceleration and speed, including a moving direction and a moving amount. The first speed calculation procedure for calculating the execution speed per unit time, and the deceleration start determination for determining whether the execution speed of the current positioning command calculated in the first speed calculation procedure is the speed immediately before the start of deceleration. If it is determined in the procedure and the deceleration start determination procedure that the execution speed is the speed immediately before the deceleration start, the capture procedure for capturing the next command and the next command captured in the capture procedure are positioning commands. and wherein a determination procedure for determining whether a positioning command for the current positioning command in the same direction, the current positioning command and subsequent positioning in the determination procedure If the the decree is determined to be positioning command for the same direction, whether said next positioning command can reach the speed of the predetermined amount of movement of the said next positioning command, the predetermined If it is determined that the next positioning command cannot reach the predetermined speed in the speed determining procedure to be determined based on the determined acceleration and the speed determining procedure, the acceleration and the next positioning command A change procedure for changing the predetermined speed based on the movement amount, and a second speed calculation for calculating an execution speed per unit time of the next positioning command based on the speed changed in the change procedure and procedures, and executes and a speed synthesis procedure for synthesizing the computed execution speed in said the computed execution speed at a first speed algorithm second speed calculation procedure, the rate In the composition procedure, at the start of deceleration by the execution speed calculated in the first speed calculation procedure, the composition acceleration is started by the execution speed calculated in the second speed calculation procedure and increased until a predetermined constant constant speed is reached. After the speed is increased, the speed is continuously moved at the constant speed for synthesis. When the deceleration at the execution speed calculated by the first speed calculation procedure is completed, the deceleration for synthesis is started and the deceleration is executed .

本願第5発明の工作機械の制御プログラムを備えたコンピュータは、工作機械の工具又はワークの位置決め制御を行う。   A computer equipped with a machine tool control program of the fifth invention of the present application performs positioning control of a tool or a workpiece of a machine tool.

コンピュータが第1速度演算手順を実行し、移動方向と移動量とを含む位置決め指令の、単位時間当りの実行速度を演算する。コンピュータが減速開始判断手順を実行し、上記現在の位置決め指令の実行速度が、減速開始直前の速度か否かを判断する。減速開始判断手順で実行速度が減速開始直前の速度であると判断した場合、コンピュータが取り込み手順を実行し、次の位置決め指令を取り込む。本願第5発明では、2つの位置決め指令を前後して取り込んだ場合には、それら2つの位置決め指令を合成し、無駄な停止動作をしないようにすることができる。コンピュータが判断手順を実行し、取り込んだ次の指令が、位置決め指令であって、且つ、現在の位置決め指令と同一方向に対する位置決め指令であるか否かを、判断する。判断が満たされた場合は、合成可能とみなす。
The computer executes the first speed calculation procedure, and calculates the execution speed per unit time of the positioning command including the movement direction and the movement amount. The computer executes a deceleration start determination procedure, and determines whether or not the current positioning command execution speed is just before the deceleration start. When it is determined in the deceleration start determination procedure that the execution speed is the speed immediately before the start of deceleration, the computer executes the capture procedure and captures the next positioning command . In the fifth invention of the present application, when two positioning commands are fetched before and after, the two positioning commands can be combined so that a useless stop operation is not performed. Computer executes the determination procedure, the next instruction fetched is a positioning command, and, whether the positioning command for the current positioning command in the same direction, it is determined. If the judgment is satisfied, it is considered that synthesis is possible.

次の位置決め指令の移動量が現在の位置決め指令の移動量よりもかなり小さい場合、これら2つの指令を合成した指令による位置決め時に、減速区間の加速度が過度に大きくなる。   When the amount of movement of the next positioning command is considerably smaller than the amount of movement of the current positioning command, the acceleration in the deceleration section becomes excessively large during positioning by a command obtained by combining these two commands.

本願第5発明では、コンピュータが速度判断手順を実行し、次の位置決め指令の移動量と、予め定められた加速度とに基づいて、次の位置決め指令が予め定められた速度に到達できるか否かを、判断する。   In the fifth invention of the present application, whether or not the next positioning command can reach the predetermined speed based on the movement amount of the next positioning command and the predetermined acceleration is executed by the computer. Judge.

予め定められた速度に到達できないと判断した場合は、そのままでは、合成した指令による減速区間の加速度が過度に大きくなるおそれがあるとみなし、コンピュータが変更手順を実行し、上記の予め定められた速度の変更を行う。コンピュータが第2速度演算手順を実行し、変更された速度に基づいて次の位置決め指令の単位時間当たりの実行速度を演算し、コンピュータが速度合成手順を実行し、第2速度演算手順で演算した実行速度と第1速度演算手順で演算した実行速度とを合成する。これにより、前述のように減速区間の加速度が過度に大きくなり駆動機構に過度の負担をかけるのを防止しつつ、2つの指令を合成して移動時間の無駄を防止することができる。この結果、工作機械の健全性を維持し、安全に稼働することができる。   If it is determined that the predetermined speed cannot be reached, it is assumed that there is a possibility that the acceleration of the deceleration section by the synthesized command may be excessively increased as it is, and the computer executes the change procedure, and the above predetermined Change the speed. The computer executes the second speed calculation procedure, calculates the execution speed per unit time of the next positioning command based on the changed speed, the computer executes the speed synthesis procedure, and calculates in the second speed calculation procedure The execution speed and the execution speed calculated in the first speed calculation procedure are synthesized. Thus, as described above, it is possible to prevent the travel time from being wasted by combining the two commands while preventing the acceleration in the deceleration section from becoming excessively large and imposing an excessive burden on the drive mechanism. As a result, the soundness of the machine tool can be maintained and the machine tool can be operated safely.

本発明によれば、駆動機構に過度の負担をかけることなく連続した2つの移動指令を合成し、移動時間の無駄を防止することができる。   According to the present invention, it is possible to synthesize two continuous movement commands without imposing an excessive burden on the drive mechanism, and to prevent waste of movement time.

本発明の実施形態に係る数値制御装置を備えた工作機械の全体構成を表す側面図である。It is a side view showing the whole machine tool composition provided with the numerical control device concerning the embodiment of the present invention. Z軸移動装置及びその周辺の構成を詳細に表す縦断面図である。It is a longitudinal cross-sectional view showing a Z-axis movement apparatus and its surrounding structure in detail. 工具交換時における主軸及び工具マガジンの周囲を拡大して示す縦断面図である。It is a longitudinal cross-sectional view which expands and shows the periphery of the main axis | shaft and tool magazine at the time of tool replacement | exchange. 工作機械の電気的なシステム構成を模式的に表す機能ブロック図である。It is a functional block diagram showing typically an electric system configuration of a machine tool. 数値制御装置において動作する制御プログラムのソフトウェア構成例を示すブロック図である。It is a block diagram which shows the software structural example of the control program which operate | moves in a numerical control apparatus. 前回入力電圧算出部及び今回入力電圧算出部が行う入力電圧の算出方法を説明する図である。It is a figure explaining the calculation method of the input voltage which a previous input voltage calculation part and this time input voltage calculation part perform. 図7(a)はNCプログラムの記述例を示す図であり、図7(b)は各停止点の幾何学的配置を概念的に示した図である。FIG. 7A is a diagram showing a description example of the NC program, and FIG. 7B is a diagram conceptually showing the geometric arrangement of each stop point. 図8(a)は図7で示した例に対応して合成しない場合の移動行程のタイムチャートであり、図8(b)は合成した場合の移動行程のタイムチャートである。FIG. 8A is a time chart of the travel stroke when not synthesizing corresponding to the example shown in FIG. 7, and FIG. 8B is a time chart of the travel stroke when synthesized. 図9(a)は2つ目の移動指令の移動距離が短い場合のNCプログラムの記述例を示す図であり、図9(b)は各停止点の幾何学的配置を概念的に示した図である。FIG. 9A is a diagram showing a description example of the NC program when the movement distance of the second movement command is short, and FIG. 9B conceptually shows the geometric arrangement of each stop point. FIG. 図10(a)は図9で示した例に対応して合成しない場合の移動行程のタイムチャートであり、図10(b)は合成した場合の移動行程のタイムチャートである。FIG. 10A is a time chart of the movement process when not synthesized corresponding to the example shown in FIG. 9, and FIG. 10B is a time chart of the movement process when synthesized. 図9で示した例に対応して過度の減速度が生じないよう合成した場合の移動行程のタイムチャートである。FIG. 10 is a time chart of a travel stroke when combined so as not to cause excessive deceleration corresponding to the example shown in FIG. 9. 数値制御装置のCPUによって実行される制御手順を表すフローチャートである。It is a flowchart showing the control procedure performed by CPU of a numerical controller. 図12中のステップS100において実行される移動制御処理の詳細手順を表すフローチャートである。It is a flowchart showing the detailed procedure of the movement control process performed in step S100 in FIG. 同じ複数の軸方向に対して同時に移動させる連続した2つの移動指令に本発明を適用した場合を示す図である。It is a figure which shows the case where this invention is applied to two continuous movement commands moved simultaneously with respect to the same plurality of axial directions.

以下、本発明の一実施の形態を図面を参照しつつ説明する。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

図1は、本実施形態の工作機械の全体構成を表す側面図である。図1において、工作機械1は、XY軸移動装置(特に図示せず)と、Z軸移動装置5と、主軸駆動装置20と、工具交換装置2等から構成している。   FIG. 1 is a side view showing the overall configuration of the machine tool of the present embodiment. In FIG. 1, a machine tool 1 includes an XY axis moving device (not shown), a Z axis moving device 5, a spindle driving device 20, a tool changer 2, and the like.

XY軸移動装置(図示省略)は、ワークを保持したテーブル135を直交するX方向とY方向とに移動する。テーブル135は、X軸モータ131(後述の図4参照)及びY軸モータ132(後述の図4参照)によって移動する。Z軸移動装置5は、主軸22及び主軸ヘッド6を上下移動する。主軸駆動装置20は、主軸22を回転駆動する。工具交換装置2は、工具ホルダ75(後述の図2参照)を自動的に主軸22に受け渡す。工作機械1は、これら複数の移動機構及び駆動機構の動作をそれぞれ数値制御する数値制御装置9を一体的に設けている。   An XY axis moving device (not shown) moves the table 135 holding the workpiece in the X and Y directions perpendicular to each other. The table 135 is moved by an X-axis motor 131 (see FIG. 4 described later) and a Y-axis motor 132 (see FIG. 4 described later). The Z-axis moving device 5 moves the spindle 22 and the spindle head 6 up and down. The main shaft driving device 20 rotationally drives the main shaft 22. The tool changer 2 automatically transfers the tool holder 75 (see FIG. 2 described later) to the spindle 22. The machine tool 1 is integrally provided with a numerical control device 9 that numerically controls the operations of the plurality of moving mechanisms and drive mechanisms.

工具交換装置2は、垂直なコラム3と、フレーム4と、主軸ヘッド6及び工具マガジン8等を備えている。フレーム4は、コラム3から前方に延び、工具マガジン8を支持する。主軸ヘッド6は、Z軸移動装置5が備えるZ軸モータ15の駆動によってZ軸方向に往復移動する。工具マガジン8は、マガジン支持台7を介してフレーム4に回転可能に支持されている。   The tool changer 2 includes a vertical column 3, a frame 4, a spindle head 6, a tool magazine 8, and the like. The frame 4 extends forward from the column 3 and supports the tool magazine 8. The spindle head 6 reciprocates in the Z-axis direction by driving a Z-axis motor 15 provided in the Z-axis moving device 5. The tool magazine 8 is rotatably supported on the frame 4 via the magazine support 7.

工作機械1は、クーラント液を貯留する貯留槽134を背面側に設けている。工作機械1は、貯留タンク86を内部に有している。貯留タンク86は、貯留槽134からポンプ83(後述の図4参照)で吸引したクーラント液を、洗浄液として貯留する。   The machine tool 1 is provided with a storage tank 134 for storing a coolant liquid on the back side. The machine tool 1 has a storage tank 86 inside. The storage tank 86 stores the coolant liquid sucked by the pump 83 (see FIG. 4 described later) from the storage tank 134 as a cleaning liquid.

図2はZ軸移動装置5及びその周辺の構成を詳細に表す縦断面図である。図2において、コラム3は、ガイドレール11を鉛直方向に備える。ガイドレール11は、一対の摺動コマ12を介して主軸ヘッド6を上下のZ軸方向に昇降自在に取り付けている。コラム3は、回転自在なボールねじ14をガイドレール11に沿って平行に備えている。ボールねじ14は、主軸ヘッド6の背面に固定したナット13にねじ込みながら挿通している。ボールねじ14は、コラム3の上部に配設したZ軸モータ15の駆動で、正逆の両方向に回転する。主軸ヘッド6は、Z軸モータ15の駆動で、ボールねじ14及びナット13を介して、ガイドレール11に沿って上下方向に移動する。   FIG. 2 is a longitudinal sectional view showing in detail the configuration of the Z-axis moving device 5 and its surroundings. In FIG. 2, the column 3 includes a guide rail 11 in the vertical direction. The guide rail 11 is attached with a spindle head 6 through a pair of sliding pieces 12 so as to be movable up and down in the vertical Z-axis direction. The column 3 is provided with a rotatable ball screw 14 in parallel along the guide rail 11. The ball screw 14 is inserted while being screwed into a nut 13 fixed to the back surface of the spindle head 6. The ball screw 14 rotates in both forward and reverse directions by driving a Z-axis motor 15 disposed on the top of the column 3. The spindle head 6 moves in the vertical direction along the guide rail 11 via the ball screw 14 and the nut 13 by driving the Z-axis motor 15.

主軸ヘッド6は、その内部に主軸22を回転自在に鉛直方向に備えている。主軸22は、主軸ヘッド6の上部に配設した主軸モータ23にカップリング24を介して連結している。主軸22は、主軸モータ23で回転駆動する。主軸22は、その下端部に工具装着部21を有する。   The spindle head 6 includes a spindle 22 in the vertical direction so as to be rotatable. The main shaft 22 is connected to a main shaft motor 23 disposed above the main shaft head 6 via a coupling 24. The main shaft 22 is rotationally driven by a main shaft motor 23. The main shaft 22 has a tool mounting portion 21 at its lower end.

工具装着部21は、図示する例で先端に切削工具74を装着した工具ホルダ75におけるテーパ係合部75aを嵌挿可能になっている。主軸22は、工具装着部21の上方にホルダ挟持部25を有する。主軸22は、ホルダ挟持部25の上方にドローバー26を有する。ドローバー26は、バネを備えており、常にはホルダ挟持部25が工具装着部21に装着した工具ホルダ75の先端部に設けたプルスタッド75bをクランプするように作用する。ホルダ挟持部25は、ドローバー26を押圧することで、プルスタッド75bのクランプを解除し、工具ホルダ75の取り外しが可能となる。   In the example shown in the figure, the tool mounting portion 21 can be fitted with a taper engaging portion 75a in a tool holder 75 having a cutting tool 74 mounted on the tip. The main shaft 22 has a holder clamping portion 25 above the tool mounting portion 21. The main shaft 22 has a draw bar 26 above the holder clamping portion 25. The draw bar 26 includes a spring, and the holder holding portion 25 always acts to clamp the pull stud 75 b provided at the tip end of the tool holder 75 attached to the tool attachment portion 21. The holder clamping unit 25 releases the clamp of the pull stud 75b by pressing the draw bar 26, and the tool holder 75 can be removed.

主軸ヘッド6は、ドローバー26を押圧又は押圧の解除をするクランクレバー28を備えている。支軸27は、略L字形のクランクレバー28を揺動自在に支持している。このクランクレバー28は、水平向きに一体形成された短尺レバー28aと、鉛直向きに一体形成された長尺レバー28bとで構成している。短尺レバー28aの先端部は、ドローバー26に直交的に突設したピン29と係合可能になっている。   The spindle head 6 includes a crank lever 28 that presses or releases the draw bar 26. The support shaft 27 supports a substantially L-shaped crank lever 28 in a swingable manner. The crank lever 28 includes a short lever 28a integrally formed in the horizontal direction and a long lever 28b integrally formed in the vertical direction. The distal end portion of the short lever 28 a can be engaged with a pin 29 that projects orthogonally to the draw bar 26.

長尺レバー28bは、傾斜面を形成した板カム30を固定している。その板カム30は、Z軸モータ15に配設したカムフォロア31と係合離脱可能になっている。引張コイルバネ32は、長尺レバー28bと主軸ヘッド6との間に介装し、クランクレバー28を常に図2中の時計方向に付勢している。引張コイルバネ32は、短尺レバー28aによるピン29の押圧を解除している。   The long lever 28b fixes a plate cam 30 having an inclined surface. The plate cam 30 can be engaged with and disengaged from a cam follower 31 disposed in the Z-axis motor 15. The tension coil spring 32 is interposed between the long lever 28b and the spindle head 6, and always urges the crank lever 28 in the clockwise direction in FIG. The tension coil spring 32 releases the pressing of the pin 29 by the short lever 28a.

主軸ヘッド6が上昇すると、その上昇過程においてクランクレバー28に設けた板カム30は、固定位置にあるカムフォロア31と係合する。該係合は、クランクレバー28に支軸27を中心とする図中の反時計方向の動きを付与する。それ故、短尺レバー28aは、ピン29を下方に押圧し、ドローバー26を介してホルダ挟持部25を付勢し、工具ホルダ75のプルスタッド75bに対するクランプを解除する。   When the spindle head 6 is raised, the plate cam 30 provided on the crank lever 28 is engaged with the cam follower 31 located at the fixed position in the raising process. The engagement gives the crank lever 28 a counterclockwise movement in the drawing around the support shaft 27. Therefore, the short lever 28a presses the pin 29 downward, biases the holder holding portion 25 via the draw bar 26, and releases the clamp of the tool holder 75 from the pull stud 75b.

工具交換時に、主軸ヘッド6がZ軸原点位置(後述の図3参照)に移動すると、工具マガジン8の最下端に位置するグリップアーム38は使用済みの切削工具74を取り付けた工具ホルダ75を保持する。その後、主軸ヘッド6が工具交換位置であるATC原点位置(後述の図3参照)まで鉛直方向に上昇する間に、クランクレバー28は、ドローバー26を押圧して工具ホルダ75のプルスタッド75bに対するクランプを解除する。主軸22に装着していた工具ホルダ75は、グリップアーム38が保持しているので、主軸ヘッド6の工具装着部21から抜き取られる。Z軸原点位置は、主軸ヘッド6を、主軸22に装着された切削工具7を工具交換装置2に装着する位置であり、工具交換装置2に装着された切削工具7を主軸22に装着する位置である。故に、Z軸原点位置は、工具交換準備位置に相当する。   When the spindle head 6 moves to the Z-axis origin position (see FIG. 3 described later) during tool replacement, the grip arm 38 located at the lowermost end of the tool magazine 8 holds the tool holder 75 to which the used cutting tool 74 is attached. To do. Thereafter, the crank lever 28 presses the draw bar 26 and clamps the tool holder 75 against the pull stud 75b while the spindle head 6 moves vertically up to the ATC origin position (see FIG. 3 described later) as the tool change position. Is released. Since the grip holder 38 holds the tool holder 75 attached to the spindle 22, the tool holder 75 is extracted from the tool attachment portion 21 of the spindle head 6. The Z-axis origin position is a position where the spindle head 6 is attached to the tool changer 2 with the cutting tool 7 attached to the spindle 22, and the position where the cutting tool 7 attached to the tool changer 2 is attached to the spindle 22. It is. Therefore, the Z-axis origin position corresponds to the tool change preparation position.

次に、マガジンモータ46の回転駆動によりマガジンベース36が回転し、次の切削作業で使用する切削工具74を取り付けた工具ホルダ75を保持したグリップアーム38が、主軸ヘッド6の工具装着部21の直下に移動して位置決めされる。このマガジンベース36の回転によるグリップアーム38の位置決め移動を割り出し動作という。その後、主軸ヘッド6は、鉛直方向に下降移動するので、新たに割り出された工具ホルダ75が主軸ヘッド6の工具装着部21に嵌挿されて、工具交換が完了する。主軸ヘッド6の下降中、クランクレバー28は、引張コイルバネ32のバネ力によってドローバー26の押圧を中断する。それ故、ホルダ挟持部25は、工具装着部21に嵌挿した工具ホルダ75をクランプする。   Next, the magazine base 36 is rotated by the rotation drive of the magazine motor 46, and the grip arm 38 holding the tool holder 75 to which the cutting tool 74 used in the next cutting operation is attached is provided on the tool mounting portion 21 of the spindle head 6. Moves directly under and is positioned. This positioning movement of the grip arm 38 due to the rotation of the magazine base 36 is called an indexing operation. Thereafter, since the spindle head 6 moves downward in the vertical direction, the newly determined tool holder 75 is inserted into the tool mounting portion 21 of the spindle head 6 to complete the tool exchange. While the spindle head 6 is descending, the crank lever 28 interrupts the pressing of the draw bar 26 by the spring force of the tension coil spring 32. Therefore, the holder clamping unit 25 clamps the tool holder 75 inserted into the tool mounting unit 21.

図3は、工具交換時における主軸22及び工具マガジン8の周囲を拡大して示す縦断面図である。この図3に示す状態では、主軸ヘッド6は、上記Z軸モータ15(上述の図2参照)の回転駆動により最も上昇した位置に移動している。グリップアーム38が保持した工具ホルダ75は、主軸ヘッド6の下端面より下方に位置している。この状態では、主軸ヘッド6の下端面が、工具ホルダ75の上端部のプルスタッド75bと十分離間している。それ故、工具マガジン8は、工具ホルダ75が主軸22に干渉接触することなく自由に割り出し動作を行うことができる。このような状態における主軸ヘッド6の下端面の位置をATC原点という。   FIG. 3 is an enlarged longitudinal sectional view showing the periphery of the spindle 22 and the tool magazine 8 at the time of tool change. In the state shown in FIG. 3, the spindle head 6 has moved to the most elevated position by the rotational drive of the Z-axis motor 15 (see FIG. 2 described above). The tool holder 75 held by the grip arm 38 is located below the lower end surface of the spindle head 6. In this state, the lower end surface of the spindle head 6 is sufficiently separated from the pull stud 75 b at the upper end portion of the tool holder 75. Therefore, the tool magazine 8 can be freely indexed without the tool holder 75 interfering with the main shaft 22. The position of the lower end surface of the spindle head 6 in such a state is called the ATC origin.

図示する状態から、上記Z軸モータ15の駆動により主軸22を下降させ、主軸ヘッド6の下端面を工具ホルダ75の鍔状部75cの上端面に一致させることで、工具ホルダ75を主軸22に装着させることができる。この際には、上述したように主軸22の内部でホルダ挟持部25は、工具ホルダ75のプルスタッド75bをクランプする。このような状態における主軸ヘッド6の下端面の位置をZ軸原点という。   From the state shown in the drawing, the spindle 22 is lowered by driving the Z-axis motor 15, and the lower end surface of the spindle head 6 is made to coincide with the upper end surface of the bowl-shaped portion 75 c of the tool holder 75, whereby the tool holder 75 is moved to the spindle 22. Can be attached. At this time, as described above, the holder holding portion 25 clamps the pull stud 75 b of the tool holder 75 inside the main shaft 22. The position of the lower end surface of the spindle head 6 in such a state is referred to as the Z-axis origin.

主軸ヘッド6は、その下端面且つ工具装着部21の開口部分の周囲に複数の洗浄ノズル81を設けている。複数の洗浄ノズル81は、洗浄液回路82から供給される洗浄液を上記工具装着部21の開口部分より少し下方、つまり図示する状態におけるテーパ係合部75aの位置に向けて噴出する。   The spindle head 6 is provided with a plurality of cleaning nozzles 81 around its lower end surface and the opening portion of the tool mounting portion 21. The plurality of cleaning nozzles 81 spray the cleaning liquid supplied from the cleaning liquid circuit 82 slightly below the opening of the tool mounting portion 21, that is, toward the position of the taper engaging portion 75a in the state shown in the drawing.

次に、工作機械1の電気的構成について説明する。図4に示すように、前述の数値制御装置9は、制御回路110と、各種駆動回路121〜128を有している。制御回路110は、後述するROM112に記憶した制御プログラム等を実行することで、工作機械1の加工動作及び工具交換動作等を制御するものである。制御回路110は、CPU111、ROM112、及びRAM113からなるマイクロコンピュータと、入力インターフェース114、及び出力インターフェース115を基本に構成している。RAM113は、工作機械1に所望の加工を施すためのNCプログラムを記憶保持している。NCプログラムは、複数の指令からなり、操作者が後述する操作パネルを介して作成する。NCプログラムについては後に詳述する。   Next, the electrical configuration of the machine tool 1 will be described. As shown in FIG. 4, the numerical controller 9 described above has a control circuit 110 and various drive circuits 121 to 128. The control circuit 110 controls a machining operation and a tool change operation of the machine tool 1 by executing a control program or the like stored in the ROM 112 described later. The control circuit 110 basically includes a microcomputer including a CPU 111, a ROM 112, and a RAM 113, an input interface 114, and an output interface 115. The RAM 113 stores and holds an NC program for performing desired machining on the machine tool 1. The NC program includes a plurality of commands, and is created by an operator via an operation panel described later. The NC program will be described in detail later.

入力インターフェース114は、工作機械1の前面に設けた操作パネル(図示略)のキーボード130と、上記洗浄液回路82で洗浄液を貯留する貯留槽134(上述の図1参照)に設けた液面センサ136とが電気的に接続されている。出力インターフェース115は、X軸モータ131を駆動する駆動回路121と、Y軸モータ132を駆動する駆動回路122と、Z軸モータ15を駆動する駆動回路123と、主軸モータ23を駆動する駆動回路124と、マガジンモータ46を駆動する駆動回路125と、上記洗浄液回路82で洗浄液の途出駆動源となるポンプ83を駆動する駆動回路126と、操作パネルのCRT133を駆動するための駆動回路127と、上記洗浄液回路82で洗浄液の途出を制御する電磁弁97を駆動するための駆動回路128とが各々電気的に接続している。X軸モータ131は、テーブル135のX軸方向の位置を検出するエンコーダ131aを備えている。Y軸モータ132は、テーブル135のY軸方向の位置を検出するエンコーダ132aを備えている。Z軸モータ15は、主軸ヘッド6のZ軸方向の位置を検出するエンコーダ6aを備えている。エンコーダ131a,132a,6aは、入力インターフェース114に接続されている。なお、本実施形態の例においては、各軸モータ15,131,132は、例えば入力電圧に比例した回転速度で回転する仕様となっている。   The input interface 114 includes a keyboard 130 of an operation panel (not shown) provided on the front surface of the machine tool 1 and a liquid level sensor 136 provided in a storage tank 134 (see FIG. 1 described above) for storing the cleaning liquid in the cleaning liquid circuit 82. And are electrically connected. The output interface 115 includes a drive circuit 121 that drives the X-axis motor 131, a drive circuit 122 that drives the Y-axis motor 132, a drive circuit 123 that drives the Z-axis motor 15, and a drive circuit 124 that drives the spindle motor 23. A driving circuit 125 for driving the magazine motor 46, a driving circuit 126 for driving the pump 83 as a driving source for the cleaning liquid in the cleaning liquid circuit 82, a driving circuit 127 for driving the CRT 133 of the operation panel, The driving circuit 128 for driving the electromagnetic valve 97 for controlling the flow of the cleaning liquid in the cleaning liquid circuit 82 is electrically connected to each other. The X-axis motor 131 includes an encoder 131a that detects the position of the table 135 in the X-axis direction. The Y-axis motor 132 includes an encoder 132a that detects the position of the table 135 in the Y-axis direction. The Z-axis motor 15 includes an encoder 6a that detects the position of the spindle head 6 in the Z-axis direction. The encoders 131a, 132a, 6a are connected to the input interface 114. In the example of the present embodiment, the motors 15, 131, and 132 have specifications that rotate at a rotational speed proportional to the input voltage, for example.

図5は、図4に示す数値制御装置9において動作する制御プログラムのソフトウェア構成例を示すブロック図である。   FIG. 5 is a block diagram showing a software configuration example of a control program that operates in the numerical controller 9 shown in FIG.

制御プログラムは、その機能としてNCプログラム解読部201、移動指令実行部202、前回入力電圧算出部203、今回入力電圧算出部204、サーボ制御部205を有し、後述する各機能を数値制御装置9において発揮させる。   The control program includes an NC program decoding unit 201, a movement command execution unit 202, a previous input voltage calculation unit 203, a current input voltage calculation unit 204, and a servo control unit 205 as its functions. To demonstrate.

まず、NCプログラム301(後述の図7(a)、図9(a)参照)は、上述したように各部の動作制御や処理を行わせる複数の指令が所定の記述順で記述された制御手順である。NCプログラム301は予め操作者が上記キーボード130を介して入力し、RAM113に記憶されている。   First, the NC program 301 (see FIGS. 7A and 9A described later) is a control procedure in which a plurality of commands for performing operation control and processing of each unit are described in a predetermined description order as described above. It is. The NC program 301 is previously input by the operator via the keyboard 130 and stored in the RAM 113.

NCプログラム解読部201は、このNCプログラム301の記述順にしたがって指令を読み出し、それら指令に対応する各部の駆動機構の数値制御を行う。そしてNCプログラム解読部201は、読み出した指令のうち各部の移動に関する位置決め指令としての移動指令を移動指令実行部202に出力する。   The NC program decoding unit 201 reads commands according to the description order of the NC program 301, and performs numerical control of the drive mechanism of each unit corresponding to the commands. Then, the NC program decoding unit 201 outputs a movement command as a positioning command related to the movement of each unit among the read commands to the movement command execution unit 202.

移動指令実行部202は、上記NCプログラム解読部201から入力された移動指令の内容を解析してその処理を実行する。本実施形態では、NCプログラム301に連続して記述されている2つの移動指令に対し、所定の条件を満たす場合にそれら2つの移動指令を合成して実行する。このとき、先行して読み込んだ移動指令を現在の位置決め指令である前回指令として前回入力電圧算出部203に出力し、後続で読み込んだ移動指令を次の位置決め指令である今回指令として今回入力電圧算出部204に出力する。   The movement command execution unit 202 analyzes the contents of the movement command input from the NC program decoding unit 201 and executes the processing. In the present embodiment, two movement commands described in succession in the NC program 301 are combined and executed when a predetermined condition is satisfied. At this time, the movement command read in advance is output to the previous input voltage calculation unit 203 as the previous command as the current positioning command, and the current input voltage is calculated as the current command as the next positioning command. Output to the unit 204.

前回入力電圧算出部203は、上記移動指令実行部202から入力された前回指令に対応して設定された前回指令処理パラメータ(後述の図6参照)に基づいて、その時点で上記各軸モータ15,131,132に入力すべき入力電圧の値を算出する。同様に、今回入力電圧算出部204は、上記移動指令実行部202から入力された今回指令に対応して設定された今回指令処理パラメータ(後述の図6参照)に基づいて、その時点で上記各軸モータ15,131,132に入力すべき入力電圧の値を算出する。これら前回入力電圧算出部203、及び今回入力電圧算出部204の算出方法については、後述の図6で詳しく説明する。   The previous input voltage calculation unit 203, based on the previous command processing parameter (see FIG. 6 described later) set in response to the previous command input from the movement command execution unit 202, at that time, the motors 15 for the respective axes. , 131 and 132 are calculated. Similarly, the current input voltage calculation unit 204 is based on the current command processing parameter (see FIG. 6 described later) set in response to the current command input from the movement command execution unit 202, and at each point in time, The value of the input voltage to be input to the shaft motors 15, 131, 132 is calculated. The calculation methods of the previous input voltage calculation unit 203 and the current input voltage calculation unit 204 will be described in detail later with reference to FIG.

サーボ制御部205は、上記前回入力電圧算出部203及び今回入力電圧算出部204がそれぞれ算出した入力電圧の値の和に相当する電圧を、上記移動指令が指定する各軸モータ15,131,132に入力して駆動制御する。   The servo control unit 205 includes motors 15, 131, and 132 that specify the voltage corresponding to the sum of the input voltage values calculated by the previous input voltage calculation unit 203 and the current input voltage calculation unit 204, respectively, according to the movement command. To control the drive.

以上のソフトウェア構成により、数値制御装置9の制御プログラムは、NCプログラムに記述されている移動指令に対応して各部の位置決め移動制御を行う。   With the above software configuration, the control program of the numerical controller 9 performs positioning movement control of each part in response to the movement command described in the NC program.

次に、図6を用いて、上記前回入力電圧算出部203及び今回入力電圧算出部204が行う入力電圧の算出方法を説明する。   Next, the calculation method of the input voltage performed by the previous input voltage calculation unit 203 and the current input voltage calculation unit 204 will be described with reference to FIG.

図6(a)は、上記前回入力電圧算出部203又は今回入力電圧算出部204が一つの移動指令に対応して算出する入力電圧の値の経時変化を示すタイムチャートである。図6(b)は、図6(a)に示した入力電圧を上記サーボ制御部205がそのまま各軸モータ15,131,132に入力して駆動制御した場合に対応する移動部分の移動速度の経時変化を示すタイムチャートである。なお、図6(a)及び図6(b)による説明は共に、上記前回入力電圧算出部203及び今回入力電圧算出部204に共通して適用されるものである。また以下においては、説明の便宜上、Z軸方向での移動のみに限定して説明する。そして「同一の方向」とは、Z軸に沿って正方向であるか負方向であるかが、同一であることを表す。   FIG. 6A is a time chart showing the change over time in the value of the input voltage calculated by the previous input voltage calculation unit 203 or the current input voltage calculation unit 204 in response to one movement command. FIG. 6B shows the moving speed of the moving portion corresponding to the case where the servo control unit 205 directly inputs the input voltage shown in FIG. 6A to each of the shaft motors 15, 131, 132 and performs drive control. It is a time chart which shows a time-dependent change. 6A and 6B are applied in common to the previous input voltage calculation unit 203 and the current input voltage calculation unit 204 described above. In the following, for convenience of explanation, the description will be limited to only movement in the Z-axis direction. The “same direction” indicates that the positive direction or the negative direction along the Z axis is the same.

まず図6(b)に示すように、一つの移動指令による移動部分の移動動作としては、基本的に、初期における増速区間で加速してから等速区間で所定の移動速度により等速移動する。その後、終期の減速区間で減速して移動部分を目的の座標位置に停止させる行程となる。   First, as shown in FIG. 6 (b), the movement operation of the moving part by one movement command is basically the constant speed movement at a predetermined speed in the constant speed section after accelerating in the initial speed increasing section. To do. After that, it is a process of decelerating in the final deceleration zone and stopping the moving part at the target coordinate position.

そしてどのような移動動作の場合でも、増速区間と減速区間では、移動部分の重量による慣性や駆動機構の制動能力を考慮して固定的に設定された大きさの加速度で、増速・減速を行うようにしている。つまり、どのような移動指令に対しても、増速区間における加速度は等しく、また減速区間における減速度は等しくなる。そしてそれらどの加速度と減速度も絶対値は等しくなる。   In any moving operation, in the acceleration and deceleration sections, acceleration / deceleration is performed at a fixed acceleration that takes into account the inertia of the moving part and the braking capacity of the drive mechanism. Like to do. That is, for any movement command, the acceleration in the acceleration zone is the same, and the deceleration in the deceleration zone is the same. And the absolute value becomes the same in any acceleration and deceleration.

そして本実施形態では、通常の場合、いずれの移動動作においても、等速区間では共通の同じ大きさの「通常等速速度」で等速移動させる。しかし、後述する特別な場合においては、適宜調整した「合成用等速速度」で等速区間を等速移動させる。つまり、等速区間における等速区間速度Fは、上記通常等速速度若しくは合成用等速速度に設定される。   In the present embodiment, in the normal case, in any moving operation, the constant speed movement is performed at the “normal constant speed” of the same size in the constant speed section. However, in a special case to be described later, the constant speed section is moved at a constant speed with an appropriately adjusted “composite constant speed”. That is, the constant speed section speed F in the constant speed section is set to the normal constant speed or the synthesizing constant speed.

また、本実施形態では、基本的に移動指令が入力された際にすぐにその指令の実行を開始して、増速区間、等速区間、及び減速区間による移動動作の行程を開始する。しかし、後述する所定の条件を満たさない場合においては、任意のタイミングで一連の移動動作の行程を開始する。   In this embodiment, basically, when a movement command is input, the execution of the command is started immediately, and the stroke of the movement operation in the speed increasing section, the constant speed section, and the deceleration section is started. However, when a predetermined condition to be described later is not satisfied, a series of moving operation steps is started at an arbitrary timing.

以上のことから、一つの移動指令の実行に対応して行われる移動動作の行程は、当該移動指令の指令開始時の設定と、等速区間における等速区間速度の設定により一義的に定義される。本実施形態では、上記移動指令実行部202が、当該一つの移動指令に対応して、これら指令開始時と等速区間速度の設定を指令実行パラメータとして適切に設定する。   From the above, the stroke of the movement operation performed in response to the execution of one movement command is uniquely defined by the setting at the start of the movement command and the setting of the constant speed section speed in the constant speed section. The In the present embodiment, the movement command execution unit 202 appropriately sets the setting of the command start time and the constant velocity section speed as a command execution parameter in response to the one movement command.

そして、上記前回入力電圧算出部203及び今回入力電圧算出部204は、移動指令実行部202から入力された一つの移動指令とそれに対応する指令実行パラメータに基づいて、上記各軸モータ15,131,132に入力すべき入力電圧の値を逐次算出する。つまり、上記前回入力電圧算出部203及び今回入力電圧算出部204は、図6(b)に示すような指令実行パラメータにより定義される移動動作の行程が行えるように、図6(a)に示すような短い周期でその時点に対応する入力電圧の値を算出する。このように逐次算出された入力電圧の値のそれぞれによって移動部分が移動する速度が、各請求項記載の単位時間当たりの実行速度に相当する。   Then, the previous input voltage calculation unit 203 and the current input voltage calculation unit 204 are based on one movement command input from the movement command execution unit 202 and the corresponding command execution parameter, and each of the shaft motors 15, 131, The value of the input voltage to be input to 132 is sequentially calculated. That is, the previous input voltage calculation unit 203 and the current input voltage calculation unit 204 are illustrated in FIG. 6A so that the travel operation stroke defined by the command execution parameters as illustrated in FIG. 6B can be performed. The value of the input voltage corresponding to the time is calculated at such a short cycle. The speed at which the moving part moves according to each of the input voltage values sequentially calculated in this way corresponds to the execution speed per unit time described in each claim.

なお、上述したようにどのような一つの移動指令に対しても増速区間における加速度は等しいため、図6(b)に示すような移動速度のタイムチャートにおける増速区間での速度変化線の右上がりの傾きは一定である。また、同様に減速区間での速度変化線の右下がりの傾きも一定である。また、増速区間での傾きと減速区間での傾きは、時間方向に対して対称である。また、図6(b)に示すような移動速度のタイムチャートにおいて、図中の斜線部で示すように、一つの移動指令に対応する移動行程の速度変化線が囲む面積Sは、当該移動指令によって移動する距離と同等である。   As described above, since the acceleration in the acceleration section is the same for any one movement command, the speed change line in the acceleration section in the movement speed time chart as shown in FIG. The upward slope is constant. Similarly, the downward slope of the speed change line in the deceleration zone is also constant. In addition, the slope in the acceleration zone and the slope in the deceleration zone are symmetric with respect to the time direction. In addition, in the movement speed time chart as shown in FIG. 6B, the area S surrounded by the speed change line of the movement stroke corresponding to one movement command, as shown by the hatched portion in the figure, is the movement command. Is equivalent to the distance traveled by.

次に、上記NCプログラム301は、図7(a)に示す例のように記述される。図中の最初の1行目に記述されている「N1 G0 Z100.0;」の指令は、現在点に対してZ軸方向に+100.0の距離だけ進んだ点Pまで位置決め移動するよう指令する移動指令である。これを移動指令N1とする。次の2行目に記述されている「N2 G0 Z200.0;」の指令は、上記現在点に対してZ軸方向に+200.0の距離だけ進んだ点Qまでさらに位置決め移動するよう指令する移動指令である。これを移動指令N2とする。尚、現在点は、Z軸を0としている。   Next, the NC program 301 is described as in the example shown in FIG. The command “N1 G0 Z100.0;” described in the first line in the figure is a command to move to a point P that is advanced by a distance of +100.0 in the Z-axis direction with respect to the current point. It is a movement command to do. This is referred to as a movement command N1. The command “N2 G0 Z200.0;” described in the second line instructs the positioning to further move to a point Q advanced by a distance of +200.0 in the Z-axis direction with respect to the current point. It is a movement command. This is referred to as a movement command N2. The current point is 0 on the Z axis.

本来は、上記移動指令N1は記述されずに、上記移動指令N2だけで移動部分を現在点から点Qまで位置決め移動させることができる。しかし、上記点Pが工具交換準備位置、つまり上記図3に示したZ軸原点である場合、NCプログラム301はその便宜上、図7(a)に示すように連続する2つの移動指令N1と移動指令N2に分けて位置決め移動させる場合がある。つまり、図7(b)に示すように、Z軸原点Pに到達させて移動終了するまでの先行の移動指令N1と、そこから移動開始して出発させる後続の移動指令N2とに分けて記述されることになる。
Originally, the movement command N1 is not described, and the moving part can be positioned and moved from the current point to the point Q only by the movement command N2. However, when the point P is the tool change preparation position, that is, the Z-axis origin shown in FIG. 3, the NC program 301, for the sake of convenience, shows two continuous movement commands N1 and movement as shown in FIG. which may be positioned moved separately in a command N2. That is, as shown in FIG. 7B, the description is divided into a preceding movement command N1 until reaching the Z-axis origin P and ending the movement, and a subsequent movement command N2 starting from the movement and starting. Will be.

このように直線移動のための指令を連続する2つの移動指令N1,N2に分けて記述した場合には、全体的に単純な直線移動でありながら、図8(a)に示すようにZ軸原点Pの前後において減速停止と増速出発を行う分だけ移動時間に無駄が生じてしまう。
In this way, when the command for linear movement is described by dividing it into two continuous movement commands N1 and N2 , the Z-axis as shown in FIG. Before and after the origin P, the travel time is wasted as much as the deceleration stop and the acceleration start are performed.

そこで、この移動時間の無駄を解消する手法の一つとして、これら連続する2つの移動指令N1,N2を受け取った移動指令実行部202が、先行の移動指令N1の減速区間と後続の移動指令N2の増速区間を接続するよう連続する2つの移動指令N1,N2を合成する。具体的には、先行の移動指令N1の減速区間の開始時期に、後続の移動指令N2の増速区間を開始するよう、それら連続する2つの移動指令N1,N2を合成し接続する。
Therefore, as one method of eliminating this waste of travel time, the travel command execution unit 202 that has received these two continuous travel commands N1 and N2 receives the deceleration section of the preceding travel command N1 and the subsequent travel command N2. The two continuous movement commands N1 and N2 are combined so as to connect the two speed increasing sections. Specifically, these two consecutive movement commands N1 and N2 are combined and connected so as to start a speed-up zone of the subsequent movement command N2 at the start timing of the deceleration section of the preceding movement command N1.

これにより、図8(b)に示すように、先行の移動指令N1の減速区間と後続の移動指令N2の増速区間とが一致し、この重複により減速方向の減速度と増速方向の加速度とが相殺される結果、上記通常等速速度F1による等速移動が維持されることになる。このように2つの移動指令N1,N2を合成接続した結果、増速区間、等速区間、及び減速区間をそれぞれ1度ずつ行う一つの移動動作の行程で移動制御を行うことができる。この結果、後続の移動指令N2における減速区間の時間幅だけ、全体の移動時間を短縮することができる。   As a result, as shown in FIG. 8B, the deceleration section of the preceding movement command N1 and the acceleration section of the subsequent movement command N2 coincide, and due to this overlap, deceleration in the deceleration direction and acceleration in the acceleration direction are performed. As a result, the constant speed movement at the normal constant speed F1 is maintained. As a result of combining and connecting the two movement commands N1 and N2, the movement control can be performed in one movement operation step in which each of the speed increasing section, the constant speed section, and the deceleration section is performed once. As a result, the entire movement time can be shortened by the time width of the deceleration section in the subsequent movement command N2.

この合成接続は、上記移動指令実行部202が先行の移動指令N1を前回入力電圧算出部203に入力し、その移動行程の減速区間開始時に後続の移動指令N2を今回入力電圧算出部204に入力してそれぞれ実行させることで可能となる。   In this combined connection, the movement command execution unit 202 inputs the preceding movement command N1 to the previous input voltage calculation unit 203, and inputs the subsequent movement command N2 to the current input voltage calculation unit 204 at the start of the deceleration section of the movement stroke. This is possible by executing each of them.

またこの合成接続は、上述したようにいずれの移動指令N1,N2における減速区間と増速区間においても、それぞれ正負の符号は異なるが絶対値の等しい加速度で増速・減速を行い、かついずれの等速区間においても同じ通常等速速度F1で移動するために可能となる。そして、これらのことから必然的に減速区間と増速区間のそれぞれの時間幅が同じとなることを前提としている。   In addition, as described above, this combined connection performs acceleration / deceleration at an acceleration having the same absolute value, although the sign of each movement command N1, N2 is different in positive and negative signs. In the constant speed section, it is possible to move at the same normal constant speed F1. From these facts, it is assumed that the time widths of the deceleration zone and the acceleration zone are necessarily the same.

なお、この合成接続が行えるのは、連続する2つの移動指令N1,N2が互いに同一方向に対する移動指令であることが条件となる。このため、連続する2つの移動指令N1,N2の移動方向が互いに異なる場合には合成接続を行わずに、移動指令N1に実行終了後に後続の移動指令N2の実行を行うことになる。
This combined connection can be performed on condition that two consecutive movement commands N1 and N2 are movement commands in the same direction. For this reason, when the movement directions of two consecutive movement commands N1 and N2 are different from each other, the subsequent movement command N2 is executed after completion of execution of the movement command N1 without performing the combined connection.

ここで、一つの移動指令によって移動させる距離がある所定の長さよりも短い場合には、特別な状況が生じる。例えば、上記図7に対応する図9のNCプログラム301に示すように、後続の移動指令N2による移動が実質的に+5だけの短い距離を移動する場合には、上記図8(a)に対応する図10(a)に示すような移動行程となる。   Here, when the distance moved by one movement command is shorter than a predetermined length, a special situation occurs. For example, as shown in the NC program 301 of FIG. 9 corresponding to FIG. 7, when the movement by the subsequent movement command N2 moves a short distance of substantially +5, it corresponds to FIG. 8A. The travel process is as shown in FIG.

つまり、上述したように増速区間及び減速区間におけるそれぞれの加速度の絶対値が等しく固定されているため、後続の移動指令N2に対応する移動行程では増速区間の途中で上記通常等速速度F1に達しないうちに減速区間を開始しなければならなくなる。この場合には、増速区間で増速し、通常等速速度F1より低い最高速度F2に達した際にすぐに減速区間で減速する。そして、これら増速区間と減速区間のそれぞれの時間幅は、通常の増速区間と減速区間の時間幅よりも短くなる。
That is, as described above, since the absolute values of the respective accelerations in the acceleration zone and the deceleration zone are fixed equally, the normal constant speed F1 in the middle of the acceleration zone in the movement stroke corresponding to the subsequent movement command N2. The deceleration zone must be started before reaching. In this case, the speed is increased in the speed increasing section, and when the maximum speed F2 lower than the normal constant speed F1 is reached, the speed immediately decreases in the speed reducing section. Then, the time widths of the speed increasing section and the deceleration section are shorter than the time widths of the normal speed increasing section and the deceleration section.

このように十分に長い移動距離で位置決め基準点に到達させる先行の移動指令N1の直後に、比較的短い移動距離だけ移動させる後続の移動指令N2が連続する場合に、上述した手法の合成接続をそのまま適用すると以下のような問題が生じる。すなわち、先行の移動指令N1の減速区間の開始時期に後続の移動指令N2の増速区間を開始させると、先行の移動指令N1の減速区間の途中で後続の移動指令N2の増速区間が終了し減速区間を開始することになる。このため、先行の移動指令N1と後続の移動指令N2のそれぞれの減速区間が重複する区間が生じてしまう。この減速区間が重複した区間では、通常の2倍の減速度で減速動作が行われるため、対応する各軸モータ15,131,132などの駆動機構に対してその制動能力を超えた過度の負担をかけてしまう。
When the subsequent movement command N2 for moving by a relatively short movement distance continues immediately after the preceding movement command N1 for reaching the positioning reference point with a sufficiently long movement distance in this way, the above-described synthetic connection is performed. If applied as it is, the following problems arise. That is, if the acceleration section of the subsequent movement command N2 is started at the start timing of the deceleration section of the preceding movement command N1, the acceleration section of the subsequent movement command N2 is completed in the middle of the deceleration section of the preceding movement command N1. Then, the deceleration zone is started. For this reason, a section in which the respective deceleration sections of the preceding movement command N1 and the subsequent movement command N2 overlap is generated. In this overlapping section, the deceleration operation is performed at twice the normal deceleration. Therefore, an excessive load exceeding the braking capacity of the corresponding drive mechanism such as the motors 15, 131, 132, etc. I will spend.

本実施形態では、この問題を解決するために、相対的に短い移動距離だけ移動させる後続の移動指令N2の移動行程を、図11に示すように変形した移動指令N2′としてから合成接続を行う。すなわち、変形した移動指令N2′の移動行程として、先行の移動指令N1の移動行程における減速区間の開始時に合成用増速区間を開始して、適切に調整した合成用等速速度に達するまで当該合成用増速区間で増速する。そして、引き続き変形した移動指令N2′の移動行程として、合成用等速速度に達した後に当該合成用等速速度で等速移動させ、先行の移動指令N1の移動行程における減速区間が終了した際に合成用減速区間を開始して、減速させる移動行程とする。
In the present embodiment, in order to solve this problem, to synthesize connections from a subsequent stroke of movement command N2 for moving only a relatively short distance traveled, as a deformed movement command N2 'as shown in FIG. 11 . That is, as the travel stroke of the modified travel command N2 ′, the composite acceleration zone is started at the start of the deceleration zone in the travel stroke of the preceding travel command N1 until the composite constant speed is adjusted appropriately. Increase the speed in the speed increasing section for synthesis. Then, as the travel stroke of the transformed movement command N2 ′, when the constant speed for synthesis is reached and then the constant speed movement is performed at the constant speed for synthesis, the deceleration section in the movement stroke of the preceding movement command N1 is completed. Next, a synthesizing deceleration zone is started, and the moving stroke is decelerated.

このように変形した移動指令N2′の移動行程を、先行の移動指令N1の減速区間と同時に開始させて合成接続することで、先行の移動指令N1と変形した移動指令N2′のそれぞれの減速区間は重複することなく連続して実行されることになる。この場合には、変形した移動指令N2′の合成用増速区間の間では、先行の移動指令N1の減速区間における減速度と合成用増速区間における加速度が互いに相殺して通常等速速度での等速移動を維持する。また、変形した移動指令N2′の合成用等速区間の間では、先行の移動指令N1の減速区間における減速度のみにより、通常の減速度での減速が行われる。そして変形した移動指令N2′の合成用減速区間の間では、すでに先行の移動指令N1の減速区間が終了しているため、合成用減速区間における減速度のみにより、通常の減速度での減速が行われる。
The movement stroke of the movement command N2 'thus deformed is started simultaneously with the deceleration section of the preceding movement command N1, and is combined and connected, so that each deceleration section of the preceding movement command N1 and the modified movement command N2' is obtained. Will be executed continuously without duplication. In this case, the deceleration in the deceleration section of the preceding movement command N1 and the acceleration in the composition acceleration section cancel each other out at the normal constant speed between the combined acceleration sections of the deformed movement command N2 ′. Maintain constant speed movement. Further, during the constant speed section for synthesizing the deformed movement command N2 ′, the deceleration at the normal deceleration is performed only by the deceleration in the deceleration section of the preceding movement command N1. Then, since the deceleration section of the preceding movement command N1 has already ended during the combined deceleration section of the deformed movement command N2 ′, the deceleration at the normal deceleration is performed only by the deceleration in the combining deceleration section. Done.

ここで、図10(a)に戻り、後続の移動指令N2の移動行程における最高速度が通常等速速度F1に達しない場合となるための条件について説明する。上述したように、一つの移動指令に対応する移動行程の速度変化線が囲む面積は、当該移動指令によって移動する距離と同等である。また、合成用増速区間及び合成用減速区間を含むどのような増速区間及び減速区間においても、速度変化線の傾きの大きさを表す加速度aは固定値となっている。
Here, returning to FIG. 10A, the conditions for the case where the maximum speed in the movement stroke of the subsequent movement command N2 does not reach the normal constant speed F1 will be described. As described above, the area surrounded by the speed change line of the movement stroke corresponding to one movement command is equivalent to the distance moved by the movement command. In any acceleration zone and deceleration zone including the synthesizing acceleration zone and the synthesizing deceleration zone, the acceleration a representing the magnitude of the gradient of the speed change line is a fixed value.

したがって、先行の移動指令N1のように、通常等速速度F1に到達するような移動行程における増速区間の時間幅をTiとした場合、後続の移動指令N2の最高速度が通常等速速度F1に達するためには、図10(a)中の斜線部の面積が示す移動距離が最小でもF1×Tiだけ必要となる。そして、増速区間の時間幅Ti=F1/aと置き換えることができるため、上記最小移動距離はF1/aとなる。つまり後続の移動指令N2による移動距離がF1/aより短い場合には、その移動行程における最高速度が通常等速速度F1に達することができず、通常より時間幅の短い増速区間及び減速区間を有することになる。
Therefore, when the time width of the speed increasing section in the moving stroke that reaches the normal constant speed F1 is Ti, as in the preceding movement command N1, the maximum speed of the subsequent movement command N2 is the normal constant speed F1. In order to reach this, only F1 × Ti is required even if the moving distance indicated by the hatched area in FIG. And since it can replace with the time width Ti = F1 / a of a speed-up area, the said minimum moving distance will be F1 < 2 > / a. In other words, when the movement distance by the subsequent movement command N2 is shorter than F1 2 / a, the maximum speed in the movement stroke cannot reach the normal constant speed F1, and the speed increasing section and the deceleration having a shorter time width than usual. You will have a section.

次に、図11を用いて、上記合成用等速速度を算出する手法について説明する。図11において、移動指令N2′の移動行程における速度変化線上で、合成用増速区間の開始点を点A1、合成用等速区間の開始点を点A2、合成用減速区間の開始点を点A3、その終了点を点A4とする。また、時間軸上で、合成用減速区間の開始時に対応する点をA5とし、先行の移動指令N1の移動行程における減速区間の時間幅をTdとする。この場合、移動指令N2′の移動距離と同等の面積Sは、点A1、点A2、点A3、及び点A5で囲む四角形の面積と、点A3、点A4、及び点A5で囲む三角形の面積との和と同じである。このため、移動指令N2′の移動距離S=F2′×Tdとなる。そして、通常の減速区間の時間幅Td=F1/aと置き換えることができるため、上記移動距離S=(F1×F2′)/aとなる。これにより、合成用等速速度F2′=(S×a)/F1で算出できる。 Next, a method for calculating the above-described constant velocity for synthesis will be described with reference to FIG. In FIG. 11, on the speed change line in the travel stroke of the movement command N2 ′, the starting point of the synthesizing acceleration section is point A1, the starting point of the synthesizing constant speed section is point A2, and the starting point of the synthesizing deceleration section is pointed A3 and its end point are point A4. On the time axis, a point corresponding to the start of the composite deceleration section is A5, and a time width of the deceleration section in the travel stroke of the preceding movement command N1 is Td. In this case, the area S equivalent to the movement distance of the movement command N2 ′ is a square area surrounded by the points A1, A2, A3, and A5, and a triangular area surrounded by the points A3, A4, and A5. Is the same as the sum of Therefore, the movement distance S = F2 ′ × Td of the movement command N2 ′. And since it can replace with the time width Td = F1 / a of a normal deceleration area, it becomes the said movement distance S = (F1 * F2 ') / a. As a result, it can be calculated by the constant speed for synthesis F2 ′ = (S × a) / F1.

以上説明した内容を実現するために、数値制御装置9のCPU111によって実行される制御手順を、図12によって説明する。なお、数値制御装置9の電源が投入された際、又は所定の操作が行われた際に、このフローが開始される。   A control procedure executed by the CPU 111 of the numerical controller 9 in order to realize the contents described above will be described with reference to FIG. This flow is started when the power of the numerical controller 9 is turned on or when a predetermined operation is performed.

まず、ステップS5において、数値制御装置9のCPU111は、状態フラグFの値を0に初期設定する。なお、この状態フラグFは、移動指令の実行状態を示すパラメータであり、どの移動指令も実行されておらず停止している状態では値が0となる。また、この状態フラグFは、最後に読み込んだ移動指令である今回指令のみで移動している状態では値が1となり、一つ前に読み込んだ移動指令である前回指令のみで移動している状態では値が2となる。また、この状態フラグFは、前回指令と今回指令を合成接続して移動している状態では値が3となる。   First, in step S5, the CPU 111 of the numerical controller 9 initializes the value of the state flag F to zero. The state flag F is a parameter indicating the execution state of the movement command, and the value is 0 when no movement command is executed and the vehicle is stopped. In addition, this state flag F has a value of 1 when only the current command, which is the last read movement command, is moving, and only when the previous command, which is the previous movement command, is moving. Then the value is 2. Further, the value of the status flag F is 3 when the previous command and the current command are combined and moved.

次にステップS10へ移り、数値制御装置9のCPU111は、NCプログラム解読部201から次の移動指令を読み込む。   Next, the process proceeds to step S10, and the CPU 111 of the numerical controller 9 reads the next movement command from the NC program decoding unit 201.

次にステップS15へ移り、数値制御装置9のCPU111は、上記ステップS10の手順で位置決め指令としての移動指令を読み込んだか否かを判定する。移動指令を読み込めなかった場合、判定は満たされず、ステップS100へ移る。一方、移動指令を読み込めた場合、判定が満たされ、次のステップS20へ移る。   Next, moving to step S15, the CPU 111 of the numerical controller 9 determines whether or not a movement command as a positioning command has been read in the procedure of step S10. If the movement command cannot be read, the determination is not satisfied and the routine goes to Step S100. On the other hand, if the movement command can be read, the determination is satisfied, and the routine goes to the next Step S20.

ステップS20では、数値制御装置9のCPU111は、この時点で状態フラグFの値が0であるか否かを判定する。言い換えれば、ステップS20では、停止中の状態であるか否かが判定される。状態フラグFの値が0である場合、判定が満たされ、ステップS25へ移る。   In step S20, the CPU 111 of the numerical controller 9 determines whether or not the value of the state flag F is 0 at this time. In other words, in step S20, it is determined whether or not the vehicle is in a stopped state. If the value of the status flag F is 0, the determination is satisfied, and the routine goes to Step S25.

ステップS25では、数値制御装置9のCPU111は、上記ステップS10の手順で最後に読み込んだ移動指令を今回指令として設定する。このとき当該今回指令の内容に対応して今回指令実行パラメータも設定する。そして次のステップS30で状態フラグFの値を1とし、今回指令のみで移動を実行する状態に設定した後、ステップS100へ移る。   In step S25, the CPU 111 of the numerical controller 9 sets the movement command last read in the procedure of step S10 as the current command. At this time, the current command execution parameter is also set corresponding to the content of the current command. Then, in the next step S30, the value of the state flag F is set to 1, and the state is set to execute the movement only with the current command, and then the process proceeds to step S100.

また一方、上記ステップS20の判定において、状態フラグFの値が0以外である場合、判定は満たされず、すなわち、既に何らかの移動指令の実行による移動が行われている最中であるものとみなされ、次のステップS35へ移る。   On the other hand, in the determination of step S20, if the value of the state flag F is other than 0, the determination is not satisfied, that is, it is considered that movement by execution of some movement command has already been performed. Then, the process proceeds to the next step S35.

ステップS35では、数値制御装置9のCPU111は、その時点で今回指令となっている指令を前回指令として設定し、さらに上記ステップS10の手順で最後に読み込んだ移動指令を今回指令として設定する。このとき、それまでの今回指令実行パラメータの設定内容をそのまま前回指令実行パラメータに移行し、新しい今回指令の内容に対応して今回指令実行パラメータも設定する。   In step S35, the CPU 111 of the numerical controller 9 sets the current command as the previous command at that time, and sets the movement command read last in the procedure of step S10 as the current command. At this time, the current command execution parameter setting content up to that point is transferred to the previous command execution parameter as it is, and the current command execution parameter is also set in accordance with the content of the new current command.

次にステップS40へ移り、前回指令と今回指令はどちらも同一方向に対する移動指令であるか否かを判定する。言い換えれば、ステップS40では、前回指令と今回指令は合成接続が可能であるか否かを判定する。前回指令と今回指令が互いに異なる方向に対する移動指令である場合、判定は満たされず、すなわち前回指令と今回指令は合成接続することができないとみなされる。そしてステップS45へ移り、状態フラグFの値を2として、前回指令のみで移動する状態に設定した後、ステップS100へ移る。   Next, the process proceeds to step S40, where it is determined whether or not both the previous command and the current command are movement commands in the same direction. In other words, in step S40, it is determined whether the previous command and the current command can be combined. When the previous command and the current command are movement commands in directions different from each other, the determination is not satisfied, that is, it is considered that the previous command and the current command cannot be combined and connected. Then, the process proceeds to step S45, the value of the state flag F is set to 2, and the state is set to move only by the previous command, and then the process proceeds to step S100.

また一方、上記ステップS40の判定において、前回指令と今回指令がどちらも同一方向に対する移動指令である場合、判定が満たされ、すなわち前回指令と今回指令は合成接続できるとみなされる。そして次のステップS50へ移る。   On the other hand, if it is determined in step S40 that the previous command and the current command are both movement commands in the same direction, the determination is satisfied, that is, the previous command and the current command are considered to be combined. Then, the process proceeds to next Step S50.

ステップS50では、数値制御装置9のCPU111は、今回指令による移動行程において最高速度が通常等速速度F1に達するか否かを判定する。これは上記で説明したように、今回指令による移動距離がF1/aより短いか否かで判定する。今回指令による移動距離がF1/a以上である場合、判定が満たされ、すなわち今回指令の移動行程を変形せずとも前回指令と合成接続が可能であるものとみなされてステップS60へ移る。一方、今回指令による移動距離がF1/aより短い場合、判定は満たされず、すなわち今回指令の移動行程を変形しなければ前回指令と合成接続できないものとみなされ、次のステップS55へ移る。 In step S50, the CPU 111 of the numerical controller 9 determines whether or not the maximum speed reaches the normal constant speed F1 in the travel stroke according to the current command. As described above, this is determined based on whether or not the moving distance according to the current command is shorter than F1 2 / a. If the moving distance according to the current command is equal to or greater than F1 2 / a, the determination is satisfied, that is, it is considered that the combined connection with the previous command is possible without changing the moving stroke of the current command, and the process proceeds to step S60. On the other hand, if the moving distance by the current command is shorter than F1 2 / a, the determination is not satisfied, that is, it is considered that the previous command cannot be combined and connected unless the moving stroke of the current command is changed, and the process proceeds to the next step S55.

ステップS55では、数値制御装置9のCPU111は、今回指令に対応する合成用等速速度F2′を上述した(S×a)/F1で算出し、今回指令実行パラメータのうちの等速区間速度にこの合成用等速速度F2′を設定してステップS60へ移る。   In step S55, the CPU 111 of the numerical controller 9 calculates the composition constant speed F2 ′ corresponding to the current command by (S × a) / F1 described above, and sets the constant speed section speed in the current command execution parameter. The composite constant speed F2 ′ is set and the process proceeds to step S60.

ステップS60では、数値制御装置9のCPU111は、状態フラグFの値を3として、前回指令と今回指令を合成接続し移動する状態に設定した後、ステップS100へ移る。   In step S60, the CPU 111 of the numerical controller 9 sets the value of the state flag F to 3 and sets the previous command and the current command to be connected and moved, and then proceeds to step S100.

ステップS100では、数値制御装置9のCPU111は、状態フラグFの値に対応して、上記今回入力電圧算出部204と上記前回入力電圧算出部203にそれぞれ入力電圧の値を算出させ、それらの合計値をサーボ制御部へ出力する移動制御処理を行う(後述の図13参照)。   In step S100, the CPU 111 of the numerical control device 9 causes the current input voltage calculation unit 204 and the previous input voltage calculation unit 203 to calculate the values of the input voltages corresponding to the value of the state flag F, respectively, and sums them. A movement control process for outputting a value to the servo control unit is performed (see FIG. 13 described later).

次にステップS65へ移り、数値制御装置9のCPU111は、特に図示しない操作パネルのキーボード130などを介してこのフローを終了する操作が行われたか否かを判定する。終了操作が行われている場合、ステップS65の判定が満たされ、このフローを終了する。一方、終了操作が行われていない場合、ステップS65の判定が満たされず、次のステップS70へ移る。   Next, the process proceeds to step S65, and the CPU 111 of the numerical controller 9 determines whether or not an operation for ending this flow has been performed via a keyboard 130 or the like of an operation panel (not shown). If the end operation has been performed, the determination in step S65 is satisfied, and this flow ends. On the other hand, if the end operation has not been performed, the determination at step S65 is not satisfied, and the routine goes to the next step S70.

ステップS70では、数値制御装置9のCPU111は、この時点で状態フラグFの値が0であるか否かを判定する。言い換えれば、ステップS70では、停止中の状態であるか否かが判定される。状態フラグFの値が0である場合、判定が満たされ、ステップS10へ戻り、同様の手順を繰り返す。一方、状態フラグFの値が0以外である場合、次のステップS75へ移る。   In step S70, the CPU 111 of the numerical controller 9 determines whether or not the value of the status flag F is 0 at this time. In other words, in step S70, it is determined whether or not the vehicle is in a stopped state. If the value of the status flag F is 0, the determination is satisfied, the process returns to step S10, and the same procedure is repeated. On the other hand, if the value of the status flag F is other than 0, the process proceeds to the next step S75.

ステップS75では、数値制御装置9のCPU111は、今回指令による移動行程が減速区間を開始する直前か否かを判定する。言い換えれば、ステップS75では、今回指令の次の移動指令を読み込んで、それが今回指令と合成接続可能であるかを確認すべきタイミングとなったか否かを判定する。今回指令が減速区間を開始する直前である場合、判定が満たされ、ステップS10へ戻り、同様の手順を繰り返す。一方、今回指令がまだ減速区間を開始する直前でない場合、判定は満たされず、次のステップS80へ移る。   In step S75, the CPU 111 of the numerical controller 9 determines whether or not the travel stroke by the current command is immediately before starting the deceleration zone. In other words, in step S75, a movement command next to the current command is read, and it is determined whether or not it is time to check whether it can be combined with the current command. If the current command is just before starting the deceleration zone, the determination is satisfied, the routine returns to step S10, and the same procedure is repeated. On the other hand, if the current command is not immediately before starting the deceleration zone, the determination is not satisfied and the routine goes to the next step S80.

ステップS80では、数値制御装置9のCPU111は、この時点で状態フラグFの値が1であるか否かを判定する。言い換えれば、ステップS70では、今回指令のみによって移動している状態であるか否かが判定される。状態フラグFの値が1である場合、判定が満たされ、そのままステップS100の移動制御処理へ移って今回指令の実行のみを継続する。一方、状態フラグFの値が1でない場合、次のステップS85へ移る。   In step S80, the CPU 111 of the numerical controller 9 determines whether or not the value of the status flag F is 1 at this time. In other words, in step S70, it is determined whether or not the vehicle is moving only by the current command. If the value of the status flag F is 1, the determination is satisfied, and the process proceeds to the movement control process in step S100 as it is and only the execution of the current command is continued. On the other hand, if the value of the status flag F is not 1, the process proceeds to the next step S85.

ステップS85では、数値制御装置9のCPU111は、前回指令による移動行程が終了したか否かを判定する。前回指令がまだ終了していない場合、判定は満たされず、そのままステップS100の移動制御処理へ移って同様の前回指令のみの実行、又は前回指令と今回指令の合成接続による実行を継続する。一方、前回指令が終了していた場合、判定が満たされ、次のステップS90で前回指令と前回指令実行パラメータを削除してからステップS30で状態フラグFの値を1とし、ステップS100へ移って今回指令のみを実行する。   In step S85, the CPU 111 of the numerical control device 9 determines whether or not the travel process according to the previous command has been completed. If the previous command has not yet ended, the determination is not satisfied, and the process proceeds to the movement control process in step S100 as it is, and the execution of the same previous command alone or the combined connection of the previous command and the current command is continued. On the other hand, if the previous command has been completed, the determination is satisfied, the previous command and the previous command execution parameter are deleted in the next step S90, the value of the status flag F is set to 1 in step S30, and the process proceeds to step S100. Only the command is executed this time.

上記図12中のステップS100において実行される移動制御処理の詳細手順を、図13に示す。   The detailed procedure of the movement control process executed in step S100 in FIG. 12 is shown in FIG.

まず、ステップS105で、数値制御装置9のCPU111は、この時点で状態フラグFの値が0であるか否かを判定する。言い換えれば、ステップS105では、停止中の状態であるか否かが判定される。状態フラグFの値が0である場合、判定が満たされ、そのままこのフローを終了する。一方、状態フラグFの値が0以外である場合、判定は満たされず、すなわち、すでに何らかの移動指令の実行による移動が行われている最中であるものとみなされ、次のステップS110へ移る。   First, in step S105, the CPU 111 of the numerical controller 9 determines whether or not the value of the status flag F is 0 at this time. In other words, in step S105, it is determined whether or not the vehicle is in a stopped state. If the value of the status flag F is 0, the determination is satisfied and this flow is ended as it is. On the other hand, if the value of the status flag F is other than 0, the determination is not satisfied, that is, it is considered that movement by execution of some movement command is already being performed, and the process proceeds to the next step S110.

ステップS110では、数値制御装置9のCPU111は、この時点で状態フラグFの値が2であるか否かを判定する。言い換えれば、ステップS105では、前回指令と今回指令の2つが読み込まれているにもかかわらず、それらが合成接続できないために、この時点では前回指令のみで移動を実行し今回指令を待機させている状態であるか否か、が判定される。状態フラグFの値が2である場合、判定が満たされ、ステップS115で今回入力電圧の値を0とした後にステップS145へ移る。一方、状態フラグFの値が2でない場合、判定が満たされず、次のステップS120へ移る。   In step S110, the CPU 111 of the numerical controller 9 determines whether or not the value of the status flag F is 2 at this time. In other words, in step S105, although the previous command and the current command are read, they cannot be combined and connected, and at this time, the movement is executed only by the previous command and the current command is waited. It is determined whether or not it is in a state. If the value of the status flag F is 2, the determination is satisfied, and after the current input voltage value is set to 0 in step S115, the process proceeds to step S145. On the other hand, if the value of the status flag F is not 2, the determination is not satisfied, and the routine goes to the next step S120.

ステップS120では、数値制御装置9のCPU111は、今回指令はまだ実行を開始していないか否かを判定する。言い換えれば、ステップS120では、今回処理実行パラメータの指令開始時がまだ未設定の状態であるか否かが判定される。今回指令が既に実行開始している場合、判定は満たされず、そのままステップS135へ移る。一方、今回指令がまだ実行を開始していない場合、判定が満たされ、次のステップS125へ移る。   In step S120, the CPU 111 of the numerical controller 9 determines whether or not the current instruction has not yet started. In other words, in step S120, it is determined whether or not the current process execution parameter command start time is not yet set. If the current instruction has already started, the determination is not satisfied and the routine goes directly to step S135. On the other hand, if the current instruction has not yet started execution, the determination is satisfied, and the routine goes to the next Step S125.

ステップS125では、数値制御装置9のCPU111は、今回処理実行パラメータの指令開始時をこの時点の現在時刻に設定する。これにより、この時点で今回指令に設定されている移動指令の移動行程は、この指令開始時を開始基準時として順に増速区間、等速区間、及び減速区間の行程を行う。   In step S125, the CPU 111 of the numerical controller 9 sets the current process execution parameter command start time to the current time at this time. As a result, the movement stroke of the movement command set in the current command at this time is performed in the speed-up zone, the constant-speed zone, and the deceleration zone in this order starting from this command start time.

次にステップS135へ移り、数値制御装置9のCPU111は、上記今回入力電圧算出部204において今回処理実行パラメータの指令開始時及び等速区間速度の設定に基づき、この時点の移動行程に対応する今回入力電圧の値を算出する。   Next, the process proceeds to step S135, where the CPU 111 of the numerical controller 9 corresponds to the current travel process based on the current process execution parameter command start time and the constant speed section speed setting in the current input voltage calculation unit 204. Calculate the input voltage value.

次にステップS140へ移り、数値制御装置9のCPU111は、この時点で状態フラグFの値が1であるか否かを判定する。言い換えれば、ステップS140では、今回指令のみによって移動が実行されている状態であるか否かが判定される。状態フラグFの値が1でない場合、判定は満たされず、次のステップS145へ移る。   Next, the process proceeds to step S140, and the CPU 111 of the numerical controller 9 determines whether or not the value of the state flag F is 1 at this time. In other words, in step S140, it is determined whether or not the movement is being executed only by the current command. If the value of the status flag F is not 1, the determination is not satisfied, and the routine goes to the next Step S145.

ステップS145では、数値制御装置9のCPU111は、上記前回入力電圧算出部203において前回処理実行パラメータの指令開始時及び等速区間速度の設定に基づき、この時点の移動行程に対応する今回入力電圧の値を算出する。   In step S145, the CPU 111 of the numerical controller 9 determines the current input voltage corresponding to the travel process at this time based on the previous process execution parameter command start and the constant speed section speed setting in the previous input voltage calculation unit 203. Calculate the value.

次にステップS150へ移り、数値制御装置9のCPU111は、この時点の前回入力電圧と今回入力電圧のそれぞれの値の和をサーボ入力電圧として算出し、次のステップS155でこのサーボ入力電圧をサーボ制御部に入力して各軸モータ15,131,132のいずれかの駆動を制御する。そして、このフローを終了する。   Next, the process proceeds to step S150, where the CPU 111 of the numerical controller 9 calculates the sum of the values of the previous input voltage and the current input voltage at this time as the servo input voltage, and in the next step S155, the servo input voltage is servoed. Input to the control unit controls the drive of each of the shaft motors 15, 131, 132. Then, this flow ends.

一方、上記ステップS140の判定において、状態フラグFの値が1である場合、判定が満たされ、次のステップS160で前回入力電圧の値を0とした後にステップS165へ移る。   On the other hand, if the value of the status flag F is 1 in the determination in step S140, the determination is satisfied, and the process proceeds to step S165 after setting the previous input voltage value to 0 in the next step S160.

ステップS165では、数値制御装置9のCPU111は、今回指令による移動行程が終了したか否かを判定する。今回指令がまだ終了していない場合、判定は満たされず、そのままステップS150へ移る。一方、今回指令が終了していた場合、判定が満たされ、次のステップS170で今回指令と今回指令実行パラメータを削除すると共に状態フラグFの値を0とし、ステップS150へ移る。   In step S165, the CPU 111 of the numerical control device 9 determines whether or not the travel process based on the current command has been completed. If the current command has not been completed yet, the determination is not satisfied and the routine goes directly to step S150. On the other hand, if the current command has been completed, the determination is satisfied, and in the next step S170, the current command and the current command execution parameter are deleted, the value of the state flag F is set to 0, and the process proceeds to step S150.

以上のフローを実行することにより、上記ステップS150の手順において、状態フラグの値が0である場合には、サーボ入力電圧が0で算出される。また、状態フラグの値が1である場合には、上記ステップS135で算出された今回入力電圧のみでサーボ入力電圧が算出される。また、状態フラグの値が2である場合には、上記ステップS145で算出された前回入力電圧のみでサーボ入力電圧が算出される。また、状態フラグの値が3である場合には、上記ステップS135で算出された今回入力電圧と上記ステップS145で算出された前回入力電圧の和でサーボ入力電圧が算出される。このように状態フラグの各値に対応してサーボ入力電圧が算出され、各軸モータ15,131,132のいずれかの駆動を制御する。   By executing the above flow, if the value of the status flag is 0 in the procedure of step S150, the servo input voltage is calculated as 0. If the value of the status flag is 1, the servo input voltage is calculated using only the current input voltage calculated in step S135. If the value of the status flag is 2, the servo input voltage is calculated using only the previous input voltage calculated in step S145. When the value of the status flag is 3, the servo input voltage is calculated by the sum of the current input voltage calculated in step S135 and the previous input voltage calculated in step S145. Thus, the servo input voltage is calculated corresponding to each value of the status flag, and the drive of each of the shaft motors 15, 131, 132 is controlled.

以上において、上記図13のフローにおけるステップS145の手順が第1速度演算手段として機能し、ステップS135の手順が第2速度演算手段として機能し、ステップS150の手順が速度合成手段として機能し、上記図12のフローにおけるステップS75の手順が減速開始判断手段として機能し、ステップS10の手順が取り込み手段として機能し、ステップS40の手順が判断手段として機能し、ステップS50の手順が速度判断手段として機能し、ステップS55の手順が変更手段として機能する。   In the above, the procedure of step S145 in the flow of FIG. 13 functions as the first speed calculation means, the procedure of step S135 functions as the second speed calculation means, and the procedure of step S150 functions as the speed synthesis means. The procedure of step S75 in the flow of FIG. 12 functions as a deceleration start determination unit, the procedure of step S10 functions as an acquisition unit, the procedure of step S40 functions as a determination unit, and the procedure of step S50 functions as a speed determination unit. And the procedure of step S55 functions as a changing means.

以上説明したように、本実施形態においては、今回指令の移動量と、固定の加速度とに基づいて、今回指令が通常等速速度に到達できるか否かを、判断する(ステップS50)。通常等速速度に到達できないと判断した場合は、そのままでは、合成した指令による減速区間の減速度が過度に大きくなるおそれがあるとみなし、等速区間速度の変更を行う(ステップS55)。その変更された等速区間速度に基づいて今回指令の単位時間当たりの実行速度を演算し(ステップS135)、ステップS150で、ステップS135で演算した実行速度とステップS145で演算した実行速度とを合成する。これにより、前述のように減速区間の減速度が過度に大きくなるのを防止することができる。この結果、工作機械の健全性を維持し、安全に稼働することができる。   As described above, in the present embodiment, it is determined whether or not the current command can reach the normal constant velocity based on the movement amount of the current command and the fixed acceleration (step S50). If it is determined that the normal constant speed cannot be reached, it is assumed that the deceleration in the deceleration section due to the combined command may be excessively increased, and the constant speed section is changed (step S55). The execution speed per unit time of the current command is calculated based on the changed constant speed section speed (step S135), and in step S150, the execution speed calculated in step S135 and the execution speed calculated in step S145 are combined. To do. As a result, it is possible to prevent the deceleration in the deceleration section from becoming excessively large as described above. As a result, the soundness of the machine tool can be maintained and the machine tool can be operated safely.

また、この実施形態では特に、今回指令の移動量が前回指令の移動量と同等以上かあまり小さくない場合には、従来通り、それら2つの指令を合成接続した指令により、通常等速速度に達しながらの位置決め制御を行うことができる(ステップS50→ステップS60の流れを参照)。   In this embodiment, in particular, when the movement amount of the current command is equal to or larger than the movement amount of the previous command, the normal constant speed is reached by a command in which these two commands are combined and connected as usual. Positioning control can be performed (see the flow from step S50 to step S60).

また、この実施形態では特に、主軸ヘッド6を工具交換準備位置であるZ軸原点へ位置決めするZ軸方向の前回指令の後、ステップS10で、Z軸原点から当該Z軸原点の上方又は下方の位置へ位置決めを行うZ軸方向の今回指令を取り込む。ステップS40で、Z軸方向の前回指令の上下方向と、Z軸方向の今回指令の上下方向とが、互いに一致するか判断する。ステップS50で、Z軸方向の今回指令が、Z軸方向における通常等速速度に到達できるか否かを判断する。   In this embodiment, in particular, after the previous command in the Z-axis direction for positioning the spindle head 6 to the Z-axis origin which is the tool change preparation position, in step S10, the Z-axis origin is above or below the Z-axis origin. The current command in the Z-axis direction for positioning to the position is fetched. In step S40, it is determined whether the up / down direction of the previous command in the Z-axis direction matches the up / down direction of the current command in the Z-axis direction. In step S50, it is determined whether or not the current command in the Z-axis direction can reach a normal constant speed in the Z-axis direction.

これにより、工具交換の際の、Z軸原点を挟んでの上方への移動時、若しくは、Z軸原点を挟んでの下方への移動時に、大きな減速度による悪影響を防止できる。すなわち、Z軸原点への前回指令と、Z軸原点からの今回指令との合成接続により、減速区間の減速度が過度に大きくなるのを防止することができる。特に、工具交換の場合、主軸ヘッド6は、工具交換装置2と係合することがある。主軸ヘッド6と工具交換装置2と係合する場合に、主軸ヘッド6が大きな減速度で移動すると、工具交換装置2を破損するという問題が発生する。上記実施形態では、主軸ヘッド6は、大きな減速度で移動することがないので、工具交換装置2が破損することはない。   As a result, when the tool is changed, when moving upward with the Z-axis origin sandwiched, or when moving downward with the Z-axis origin sandwiched, adverse effects due to large deceleration can be prevented. That is, the combined deceleration of the previous command to the Z-axis origin and the current command from the Z-axis origin can prevent the deceleration in the deceleration zone from becoming excessively large. In particular, in the case of tool change, the spindle head 6 may engage with the tool changer 2. When the spindle head 6 and the tool changer 2 are engaged, if the spindle head 6 moves at a large deceleration, there is a problem that the tool changer 2 is damaged. In the above embodiment, the spindle head 6 does not move with a large deceleration, so that the tool changer 2 is not damaged.

なお、上記実施形態では、前回指令及び今回指令はいずれもZ軸方向の移動(特に工具交換)のみに限定して説明していたが、本発明はこれに限られない。すなわち、図14に示すように、複数の軸に沿った正又は負の方向がいずれも同じである連続した2つの移動指令N1,N2であれば、上記同様にして、本発明の手法を適用することができる。   In the above embodiment, the previous command and the current command are both limited to movement in the Z-axis direction (particularly, tool replacement), but the present invention is not limited to this. That is, as shown in FIG. 14, if the two movement commands N1 and N2 are continuous in the same positive or negative direction along a plurality of axes, the method of the present invention is applied in the same manner as described above. can do.

工具交換装置2は、上記実施形態のものに限らず、工具交換のために主軸ヘッド6が移動する形式のものなら何れのものでもよい。   The tool changer 2 is not limited to that of the above-described embodiment, and may be any device that moves the spindle head 6 for tool change.

また、上記実施形態では、工具交換準備位置は、Z軸原点位置である主軸ヘッド6を、主軸22に装着された切削工具7を工具交換装置2に装着する位置であり、工具交換装置2に装着された切削工具7を主軸22に装着する位置としているが、Z軸原点位置よりも下方の位置であってもよい。Z軸原点位置は、主軸ヘッド6と、工具交換装置2とが係合する直前の位置であってもよい。この場合、主軸22は、切削工具7を装着した状態である。   In the above embodiment, the tool change preparation position is a position at which the spindle head 6 that is the Z-axis origin position is attached to the tool changer 2 and the cutting tool 7 attached to the spindle 22 is attached to the tool changer 2. Although the mounted cutting tool 7 is a position for mounting on the main shaft 22, it may be a position below the Z-axis origin position. The Z-axis origin position may be a position immediately before the spindle head 6 and the tool changer 2 are engaged. In this case, the main shaft 22 is in a state in which the cutting tool 7 is mounted.

1 工作機械
6 主軸ヘッド
15 Z軸モータ
22 主軸
23 主軸モータ
111 CPU
131 X軸モータ
132 Y軸モータ
201 NCプログラム解読部
202 移動指令実行部
203 前回入力電圧算出部
204 今回入力電圧算出部
205 サーボ制御部
301 NCプログラム
1 Machine Tool 6 Spindle Head 15 Z-axis Motor 22 Spindle 23 Spindle Motor 111 CPU
131 X-axis motor 132 Y-axis motor 201 NC program decoding unit 202 Movement command execution unit 203 Previous input voltage calculation unit 204 Current input voltage calculation unit 205 Servo control unit 301 NC program

Claims (5)

予め定められた加速度及び速度に基づき、工具又はワークを、移動方向と移動量とを含む位置決め指令で指示された位置に位置決め制御する数値制御装置において、
前記位置決め指令の単位時間当りの実行速度を演算する第1速度演算手段と、
前記第1速度演算手段によって演算された現在の位置決め指令の実行速度が減速開始直前の速度か否かを判断する減速開始判断手段と、
前記減速開始判断手段によって前記実行速度が減速開始直前の速度であると判断された場合、次の指令を取り込む取り込み手段と、
前記取り込み手段によって取り込んだ次の指令が、位置決め指令であり、かつ前記現在の位置決め指令と同一方向に対する位置決め指令であるか否かを判断する判断手段と、
前記判断手段によって前記現在の位置決め指令と次の位置決め指令とが同一方向に対する位置決め指令であると判断した場合、前記次の位置決め指令が前記予め定められた速度に到達できるか否かを、前記次の位置決め指令の移動量と、前記予め定められた加速度とに基づいて、判断する速度判断手段と、
前記速度判断手段によって、前記次の位置決め指令が前記予め定められた速度に到達できないと判断した場合、前記加速度と前記次の位置決め指令の移動量とに基づいて、前記予め定められた速度を変更する変更手段と、
前記変更手段によって変更された速度に基づいて前記次の位置決め指令の単位時間当たりの実行速度を演算する第2速度演算手段と、
前記第1速度演算手段によって演算された実行速度と前記第2速度演算手段によって演算された実行速度とを合成する速度合成手段と
を備え
前記速度合成手段は、前記第1速度演算手段によって演算された実行速度による減速開始時に前記第2速度演算手段によって演算された実行速度による合成用増速を開始して所定の合成用等速速度に達するまで増速したうえで、引き続き合成用等速速度で等速移動させ、前記第1速度演算手段によって演算された実行速度による減速が終了した際に前記合成用減速を開始して減速させることを特徴とする工作機械の数値制御装置。
In a numerical control device that controls the positioning of a tool or a workpiece at a position designated by a positioning command including a moving direction and a moving amount based on a predetermined acceleration and speed,
First speed calculation means for calculating an execution speed per unit time of the positioning command;
Deceleration start determination means for determining whether the execution speed of the current positioning command calculated by the first speed calculation means is a speed immediately before the start of deceleration;
When the execution start speed is determined by the deceleration start determination means to be a speed immediately before the start of deceleration, a capture means for fetching the next command;
The next instruction fetched by said fetching means includes a judgment means for judging whether or not a positioning command, and said a positioning command for the current positioning command in the same direction,
Whether the If current positioning command and the next positioning command is determined to be a positioning command for the same direction, can reach speeds the next positioning command is the predetermined by the determination unit, the following Speed determining means for determining on the basis of the amount of movement of the positioning command and the predetermined acceleration;
When the speed determining means determines that the next positioning command cannot reach the predetermined speed, the predetermined speed is changed based on the acceleration and the movement amount of the next positioning command. Change means to
Second speed calculating means for calculating an execution speed per unit time of the next positioning command based on the speed changed by the changing means;
Speed synthesis means for synthesizing the execution speed calculated by the first speed calculation means and the execution speed calculated by the second speed calculation means ;
Equipped with a,
The speed synthesizing means starts a synthesizing speed increase based on the execution speed calculated by the second speed calculation means at the start of deceleration by the execution speed calculated by the first speed calculation means, and generates a predetermined constant speed for synthesis. The speed is continuously increased at a constant constant speed for synthesis, and when the deceleration at the execution speed calculated by the first speed calculation means is completed, the deceleration for synthesis is started and decelerated. A numerical control device for a machine tool.
請求項1記載の工作機械の数値制御装置において、
前記速度判断手段によって、前記次の位置決め指令が前記予め定められた速度に到達できると判断した場合、第2速度演算手段は、前記予め定められた速度に基づいて前記次の位置決め指令の単位時間当たりの実行速度を演算する
ことを特徴とする工作機械の数値制御装置。
In the numerical control device of the machine tool according to claim 1,
When it is determined by the speed determining means that the next positioning command can reach the predetermined speed, the second speed calculating means determines the unit time of the next positioning command based on the predetermined speed. A numerical control device for a machine tool, characterized by calculating a hit execution speed.
請求項1又は請求項2記載の工作機械の数値制御装置において、
前記工作機械は、コラムと、該コラムに移動可能に支持された主軸ヘッドと、該主軸ヘッドに回転可能に支持され下端に前記工具を装着可能な主軸と、前記コラムに設けられた工具交換装置とを備え、
前記現在の位置決め指令は、前記主軸ヘッドを、前記主軸に装着された工具を前記工具交換装置に装着する位置、または前記工具交換装置に装着された工具を前記主軸に装着する位置である工具交換準備位置へ位置決めする指令であり、
前記取り込み手段が取り込んだ前記次の位置決め指令は、前記主軸ヘッドを前記工具交換準備位置から当該工具交換準備位置の上方又は下方の位置へ位置決めする指令である工作機械の数値制御装置。
In the numerical control device of the machine tool according to claim 1 or claim 2,
The machine tool includes a column, a spindle head supported movably on the column, a spindle supported rotatably on the spindle head and capable of mounting the tool on a lower end, and a tool changer provided on the column. And
The current positioning command is a tool change that is a position where the spindle head is attached to the tool changer with a tool attached to the spindle, or a position where a tool attached to the tool changer is attached to the spindle. It is a command to position to the preparation position.
The numerical control device for a machine tool, wherein the next positioning command fetched by the take-in means is a command for positioning the spindle head from the tool change preparation position to a position above or below the tool change preparation position.
予め定められた加速度及び速度に基づき、工具又はワークを、移動方向と移動量とを含む位置決め指令で指示された位置に位置決め制御する、工作機械の制御方法であって、
前記位置決め指令の単位時間当りの実行速度を演算する第1速度演算手順と、
前記第1速度演算手順で演算された現在の位置決め指令の実行速度が減速開始直前の速度か否かを判断する減速開始判断手順と、
前記減速開始判断手順で前記実行速度が減速開始直前の速度であると判断された場合、次の指令を取り込む取り込み手順と、
前記取り込み手順で取り込んだ次の指令が、位置決め指令であり、且つ前記現在の位置決め指令と同一方向に対する位置決め指令であるか否かを判断する判断手順と、
前記判断手順で前記現在の位置決め指令と次の位置決め指令とが同一方向に対する位置決め指令であると判断された場合、前記次の位置決め指令が前記予め定められた速度に到達できるか否かを、前記次の位置決め指令の移動量と、前記予め定められた加速度とに基づいて、判断する速度判断手順と、
前記速度判断手順で、前記次の位置決め指令が前記予め定められた速度に到達できないと判断された場合、前記加速度と前記次の位置決め指令の移動量とに基づいて、前記予め定められた速度を変更する変更手順と、
前記変更手順で変更された速度に基づいて前記次の位置決め指令の単位時間当たりの実行速度を演算する第2速度演算手順と、
前記第1速度演算手順で演算された実行速度と前記第2速度演算手順で演算された実行速度とを合成する速度合成手順と
を備え
前記速度合成手順では、前記第1速度演算手順で演算した実行速度による減速開始時に前記第2速度演算手順で演算した実行速度による合成用増速を開始して所定の合成用等速速度に達するまで増速したうえで、引き続き合成用等速速度で等速移動させ、前記第1速度演算手順によって演算された実行速度による減速が終了した際に前記合成用減速を開始して減速することを特徴とする工作機械の制御方法。
A control method for a machine tool, which controls positioning of a tool or a workpiece at a position instructed by a positioning command including a moving direction and a moving amount based on a predetermined acceleration and speed,
A first speed calculation procedure for calculating an execution speed per unit time of the positioning command;
A deceleration start determination procedure for determining whether or not the execution speed of the current positioning command calculated in the first speed calculation procedure is a speed immediately before the start of deceleration;
If it is determined in the deceleration start determination procedure that the execution speed is the speed immediately before the start of deceleration, a capture procedure for fetching the next command;
Wherein the next captured by capture procedure command is a positioning command, the procedure determines which and the determining whether a positioning command for the current positioning command in the same direction,
Wherein if said current positioning command at decision procedure and the subsequent positioning command is determined to be positioning command for the same direction, whether it can reach speeds the next positioning command is the predetermined said A speed determination procedure for determining based on the amount of movement of the next positioning command and the predetermined acceleration;
When it is determined in the speed determination procedure that the next positioning command cannot reach the predetermined speed, the predetermined speed is calculated based on the acceleration and the movement amount of the next positioning command. Change procedure to change,
A second speed calculation procedure for calculating an execution speed per unit time of the next positioning command based on the speed changed in the change procedure;
A speed synthesis procedure for synthesizing the execution speed calculated in the first speed calculation procedure and the execution speed calculated in the second speed calculation procedure ;
Equipped with a,
In the speed synthesis procedure, at the start of deceleration by the execution speed calculated in the first speed calculation procedure, the composition speed increase by the execution speed calculated in the second speed calculation procedure is started to reach a predetermined constant speed for synthesis. in terms of the speed increasing until, Rukoto decelerate subsequently moved at a constant rate over synthetic for a constant velocity speed, to start the synthesis deceleration when deceleration by execution speed computed by the first speed calculation procedure is completed A control method of a machine tool characterized by the above.
コンピュータに、
移動方向と移動量とを含み、予め定められた加速度及び速度に基づいて工具又はワークを位置決め制御する位置を指示するための位置決め指令の、単位時間当りの実行速度を演算する第1速度演算手順と、
前記第1速度演算手順で演算された現在の位置決め指令の実行速度が減速開始直前の速度か否かを判断する減速開始判断手順と、
前記減速開始判断手順で前記実行速度が減速開始直前の速度であると判断された場合、次の指令を取り込む取り込み手順と、
前記取り込み手順で取り込んだ次の指令が、位置決め指令であり、且つ前記現在の位置決め指令と同一方向に対する位置決め指令であるか否かを判断する判断手順と、
前記判断手順で前記現在の位置決め指令と次の位置決め指令とが同一方向に対する位置決め指令であると判断された場合、前記次の位置決め指令が前記予め定められた速度に到達できるか否かを、前記次の位置決め指令の移動量と、前記予め定められた加速度とに基づいて、判断する速度判断手順と、
前記速度判断手順で、前記次の位置決め指令が前記予め定められた速度に到達できないと判断された場合、前記加速度と前記次の位置決め指令の移動量とに基づいて、前記予め定められた速度を変更する変更手順と、
前記変更手順で変更された速度に基づいて前記次の位置決め指令の単位時間当たりの実行速度を演算する第2速度演算手順と、
前記第1速度演算手順で演算された実行速度と前記第2速度演算手順で演算された実行速度とを合成する速度合成手順と
を実行するとともに、
前記速度合成手順では、前記第1速度演算手順で演算した実行速度による減速開始時に前記第2速度演算手順で演算した実行速度による合成用増速を開始して所定の合成用等速速度に達するまで増速したうえで、引き続き合成用等速速度で等速移動させ、前記第1速度演算手順によって演算された実行速度による減速が終了した際に前記合成用減速を開始して減速を実行させるための工作機械の制御プログラム。
On the computer,
A first speed calculation procedure for calculating an execution speed per unit time of a positioning command for instructing a position for positioning control of a tool or a workpiece based on a predetermined acceleration and speed, including a moving direction and a moving amount. When,
A deceleration start determination procedure for determining whether or not the execution speed of the current positioning command calculated in the first speed calculation procedure is a speed immediately before the start of deceleration;
If it is determined in the deceleration start determination procedure that the execution speed is the speed immediately before the start of deceleration, a capture procedure for fetching the next command;
Wherein the next captured by capture procedure command is a positioning command, the procedure determines which and the determining whether a positioning command for the current positioning command in the same direction,
Wherein if said current positioning command at decision procedure and the subsequent positioning command is determined to be positioning command for the same direction, whether it can reach speeds the next positioning command is the predetermined said A speed determination procedure for determining based on the amount of movement of the next positioning command and the predetermined acceleration;
When it is determined in the speed determination procedure that the next positioning command cannot reach the predetermined speed, the predetermined speed is calculated based on the acceleration and the movement amount of the next positioning command. Change procedure to change,
A second speed calculation procedure for calculating an execution speed per unit time of the next positioning command based on the speed changed in the change procedure;
A speed synthesis procedure for synthesizing the execution speed calculated in the first speed calculation procedure and the execution speed calculated in the second speed calculation procedure ;
With the execution,
In the speed synthesis procedure, at the start of deceleration by the execution speed calculated in the first speed calculation procedure, the composition speed increase by the execution speed calculated in the second speed calculation procedure is started to reach a predetermined constant speed for synthesis. Is continuously moved at the constant speed for synthesis, and when the deceleration at the execution speed calculated by the first speed calculation procedure is completed, the deceleration for synthesis is started and the deceleration is executed . Machine tool control program for.
JP2009218395A 2009-09-24 2009-09-24 Numerical control device for machine tool, control method for machine tool, control program for machine tool Active JP5413085B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009218395A JP5413085B2 (en) 2009-09-24 2009-09-24 Numerical control device for machine tool, control method for machine tool, control program for machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009218395A JP5413085B2 (en) 2009-09-24 2009-09-24 Numerical control device for machine tool, control method for machine tool, control program for machine tool

Publications (2)

Publication Number Publication Date
JP2011070247A JP2011070247A (en) 2011-04-07
JP5413085B2 true JP5413085B2 (en) 2014-02-12

Family

ID=44015502

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009218395A Active JP5413085B2 (en) 2009-09-24 2009-09-24 Numerical control device for machine tool, control method for machine tool, control program for machine tool

Country Status (1)

Country Link
JP (1) JP5413085B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01276309A (en) * 1988-04-28 1989-11-06 Okuma Mach Works Ltd Numerical control system
JPH0722860B2 (en) * 1990-03-15 1995-03-15 ブラザー工業株式会社 Automatic tool changer for machine tools
JPH11272320A (en) * 1998-03-26 1999-10-08 Mitsubishi Electric Corp Positioning controller and control method
JP2005352574A (en) * 2004-06-08 2005-12-22 Yaskawa Electric Corp Action instruction generating device and method for multi-spindle machine

Also Published As

Publication number Publication date
JP2011070247A (en) 2011-04-07

Similar Documents

Publication Publication Date Title
US7445587B2 (en) Automatic tool changing method and device for machine tool controlled by numerical controller
JP6617474B2 (en) Numerical control device and control method
JP3990441B1 (en) Automatic tool changing method and automatic tool changing device for machine tool with numerical control device
JP5482639B2 (en) Numerical control device, control program, and storage medium
JP2009266221A (en) Machining simulation method and machining simulation apparatus
JP6619947B2 (en) Work loader device
JP6051937B2 (en) Numerical controller
JP6398254B2 (en) Numerical control device and control method of numerical control device
JP6545195B2 (en) Machine tool
US20150134099A1 (en) Workpiece machining device with calibration function and workpiece machining device
JP5413085B2 (en) Numerical control device for machine tool, control method for machine tool, control program for machine tool
JP6819414B2 (en) Numerical control device and control method
US6884957B2 (en) Wire electric discharge machine
JP3519137B2 (en) Pad positioning and setting device for work loading / unloading device
CN207464780U (en) A kind of automatic detachable knife equipment of CNC
JP2011073069A (en) Numeric value control device, control program of numeric value control device, storage medium and control method of numeric value control device
CN111708320B (en) Numerical control device, numerical control method, and storage device storing numerical control program
JPH08267350A (en) Deburring method
JP2013193169A (en) Program preparation system and simulation system and method thereof
JPS61270048A (en) Manual resetting method in tool changer
CN217425981U (en) Numerical control equipment with quick positioning function
JP7211773B2 (en) Image measuring machine and image measuring program
JP6863184B2 (en) Machine tools, control devices, control methods and computer programs
JP4348791B2 (en) Wire electric discharge machine and origin return method of wire electric discharge machine
JP2007328562A (en) Motion control system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120215

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130327

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130327

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130524

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20131015

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131028

R150 Certificate of patent or registration of utility model

Ref document number: 5413085

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150