JP7418665B1 - numerical control device - Google Patents

numerical control device Download PDF

Info

Publication number
JP7418665B1
JP7418665B1 JP2023534997A JP2023534997A JP7418665B1 JP 7418665 B1 JP7418665 B1 JP 7418665B1 JP 2023534997 A JP2023534997 A JP 2023534997A JP 2023534997 A JP2023534997 A JP 2023534997A JP 7418665 B1 JP7418665 B1 JP 7418665B1
Authority
JP
Japan
Prior art keywords
acceleration
command
deceleration
motor
output
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
JP2023534997A
Other languages
Japanese (ja)
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Application granted granted Critical
Publication of JP7418665B1 publication Critical patent/JP7418665B1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Numerical Control (AREA)

Abstract

加工プログラム(3)に基づいてモータ(21)を制御する数値制御装置(1)において、加工プログラムの先読み解析結果に基づいて、加工プログラムに記述された指令を予め定められた第1加速度によって加減速処理した加減速処理後の指令である第1加減速後指令を出力する第1加減速処理部(12)と、第1加減速後指令からモータに対する制御周期毎の指令であるモータ指令を算出する補間部(13)と、モータのモータ負荷を示す状態量を監視し、状態量がしきい値を超えると、モータ負荷超過信号を出力する状態量監視部(14)と、モータ負荷超過信号が出力されるまでは、モータ指令をモータに出力する出力指令として出力し、モータ負荷超過信号が出力された場合、モータ指令に対して第2加速度によって加減速処理した第2加減速後指令を出力指令として出力する第2加減速処理部(15)と、を備えることを特徴とする。In the numerical control device (1) that controls the motor (21) based on the machining program (3), the command written in the machining program is accelerated by a predetermined first acceleration based on the pre-read analysis result of the machining program. A first acceleration/deceleration processing unit (12) that outputs a first post-acceleration/deceleration command that is a command after acceleration/deceleration processing, and a motor command that is a command for each control cycle for the motor from the first post-acceleration/deceleration command. An interpolation unit (13) that calculates the motor load, a state quantity monitoring unit (14) that monitors a state quantity indicating the motor load of the motor, and outputs a motor load excess signal when the state quantity exceeds a threshold; Until the signal is output, the motor command is output as an output command to the motor, and when the motor overload signal is output, a second post-acceleration/deceleration command is generated by accelerating/decelerating the motor command using the second acceleration. The second acceleration/deceleration processing section (15) outputs the following as an output command.

Description

本開示は、モータを制御する数値制御装置に関する。 The present disclosure relates to a numerical control device that controls a motor.

モータの加速度を制御する数値制御装置では、モータにより移動させる物体の重量によってイナーシャが変化し、加減速に必要なトルクが変化する。このため、通常、最大積載重量の物体を移動させるときのトルクがモータスペックを超えないような加減速設定が行われる。しかしながら、通常、最大積載重量以外の重さの物体を移動させる場合には、モータスペックを十分に活用することができなかった。 In a numerical control device that controls the acceleration of a motor, inertia changes depending on the weight of an object moved by the motor, and the torque required for acceleration and deceleration changes. For this reason, acceleration and deceleration settings are normally made so that the torque when moving an object with the maximum load weight does not exceed the motor specifications. However, normally, when moving an object having a weight other than the maximum load weight, it has not been possible to fully utilize the motor specifications.

このため、特許文献1には、モータ負荷を監視して、モータ負荷がしきい値を超えた場合には加速度を変更する数値制御装置が開示されている。この数値制御装置は、モータへの指令加速度を与える指令部と、モータの負荷を測定する負荷測定手段と、測定された負荷と閾値パラメータとの比較結果に基づいて、モータへの指令加速度を変更する加速度調整手段と、変更後の指令加速度に基づいてモータを制御する制御本体部とを備える。 For this reason, Patent Document 1 discloses a numerical control device that monitors the motor load and changes the acceleration when the motor load exceeds a threshold value. This numerical control device has a command section that gives a command acceleration to the motor, a load measuring means that measures the load on the motor, and changes the command acceleration to the motor based on the comparison result between the measured load and a threshold parameter. and a control main unit that controls the motor based on the changed command acceleration.

特開2002-323915号公報Japanese Patent Application Publication No. 2002-323915

しかしながら、通常、数値制御装置の分野では、加工プログラムの中で現在実行中の処理よりも後に実行される処理を解析する先読み解析が行われる。この場合、上述の加速度調整手段による変更後の指令加速度は、先読み位置に対する指令となり、制御本体部が指令加速度に基づいて制御周期毎の指令加速度をモータに出力するため、モータの過負荷状態を検知してから、実際にモータの加速度が変更されるまでにタイムラグが生じるという問題があった。 However, in the field of numerical control devices, a look-ahead analysis is usually performed to analyze a process to be executed after the process currently being executed in a machining program. In this case, the command acceleration after being changed by the acceleration adjustment means described above becomes a command for the pre-read position, and the control main unit outputs the command acceleration for each control cycle to the motor based on the command acceleration, so that the overload state of the motor can be avoided. There was a problem in that there was a time lag between detection and when the motor acceleration was actually changed.

本開示は、上記に鑑みてなされたものであって、モータの過負荷を検知した場合、速やかに加速度を変更することが可能な数値制御装置を得ることを目的とする。 The present disclosure has been made in view of the above, and an object of the present disclosure is to provide a numerical control device that can quickly change acceleration when overload of a motor is detected.

上述した課題を解決し、目的を達成するために、本開示の加工プログラムに基づいてモータを制御する数値制御装置は、加工プログラムの先読み解析結果に基づいて、加工プログラムに記述された指令を予め定められた第1加速度によって加減速処理した加減速処理後の指令である第1加減速後指令を出力する第1加減速処理部と、第1加減速後指令からモータに対する制御周期毎の指令であるモータ指令を算出する補間部と、モータのモータ負荷を示す状態量を監視し、状態量がしきい値を超えると、モータ負荷超過信号を出力する状態量監視部と、モータ負荷超過信号が出力されるまでは、モータ指令をモータに出力する出力指令として出力し、モータ負荷超過信号が出力された場合、モータ指令に対して第1加速度より小さい第2加速度によって加減速処理した第2加減速後指令を出力指令として出力する第2加減速処理部と、を備え、第2加減速処理部は、制御周期毎に、加工プログラムにより規定された目標位置と、出力指令に対応する速度の積分値である指令位置との差である指令ドループを計算するとともに、出力指令に対応する速度から、減速中の各制御周期において対象の制御周期の速度と同一の速度を出力した加速中の制御周期で出力指令を計算するために使用した加速度である使用加速度に予め定められた減速係数を乗算した加速度で減速して停止するまでに必要な距離である減速所要距離を計算し、指令ドループが減速所要距離よりも大きくなるように加減速処理を実施することを特徴とする。 In order to solve the above-mentioned problems and achieve the purpose, a numerical control device that controls a motor based on a machining program according to the present disclosure executes commands written in the machining program in advance based on a look-ahead analysis result of the machining program. a first acceleration/deceleration processing unit that outputs a first post-acceleration/deceleration command that is a command after acceleration/deceleration processing performed by a predetermined first acceleration; and a command for each control cycle for the motor from the first post-acceleration/deceleration command. an interpolation unit that calculates a motor command that is a motor command, a state quantity monitoring unit that monitors a state quantity indicating the motor load of the motor, and outputs a motor load excess signal when the state quantity exceeds a threshold; Until the motor command is output, the motor command is output as an output command to be output to the motor, and when the motor overload signal is output, the motor command is accelerated and decelerated by a second acceleration smaller than the first acceleration . a second acceleration/deceleration processing section that outputs post-acceleration/deceleration commands as output commands , and the second acceleration/deceleration processing section outputs a target position defined by a machining program and a speed corresponding to the output commands in each control cycle. In addition to calculating the command droop, which is the difference between the command position and the integral value of The required deceleration distance, which is the distance required to decelerate and stop, is calculated by multiplying the used acceleration, which is the acceleration used to calculate the output command in the control cycle, by a predetermined deceleration coefficient, and the command droop is calculated. It is characterized in that the acceleration/deceleration process is performed so that the distance becomes larger than the required deceleration distance .

本開示によれば、モータの過負荷を検知した場合、速やかに加速度を変更することが可能になるという効果を奏する。 According to the present disclosure, it is possible to quickly change the acceleration when an overload of the motor is detected.

実施の形態1にかかる数値制御システムの構成を示す図A diagram showing the configuration of a numerical control system according to Embodiment 1 先読み解析の説明図Explanatory diagram of look-ahead analysis 実施の形態1にかかる数値制御装置の制御内容の一例の説明図An explanatory diagram of an example of control contents of the numerical control device according to the first embodiment 実施の形態1にかかる数値制御装置の動作を説明するためのフローチャートFlowchart for explaining the operation of the numerical control device according to the first embodiment 実施の形態2にかかる数値制御システムの構成を示す図A diagram showing the configuration of a numerical control system according to Embodiment 2 実施の形態1,2にかかる数値制御装置の機能を実現するための専用のハードウェアを示す図A diagram showing dedicated hardware for realizing the functions of the numerical control device according to Embodiments 1 and 2. 実施の形態1,2にかかる数値制御装置の機能を実現するための制御回路の構成を示す図A diagram showing the configuration of a control circuit for realizing the functions of the numerical control device according to Embodiments 1 and 2.

以下に、本開示の実施の形態にかかる数値制御装置を図面に基づいて詳細に説明する。 Below, a numerical control device according to an embodiment of the present disclosure will be described in detail based on the drawings.

実施の形態1.
図1は、実施の形態1にかかる数値制御システム100の構成を示す図である。数値制御システム100は、数値制御装置1と、モータ21を有する工作機械2とを有する。工作機械2は、数値制御装置1の制御対象のモータ21を備える装置の一例である。工作機械2は、モータ21を備える装置であればその種類は特に制限されない。例えば、工作機械2は、工具を用いて加工対象物を切削する切削加工機、溶融させた材料を順次積み重ねることによって造形物を製造する付加製造装置、レーザビームを加工対象物に照射することによって加工対象物を加工するレーザ加工機などである。
Embodiment 1.
FIG. 1 is a diagram showing the configuration of a numerical control system 100 according to the first embodiment. The numerical control system 100 includes a numerical control device 1 and a machine tool 2 having a motor 21. The machine tool 2 is an example of a device including a motor 21 to be controlled by the numerical control device 1. The type of machine tool 2 is not particularly limited as long as it is a device equipped with a motor 21. For example, the machine tool 2 is a cutting machine that cuts a workpiece using a tool, an additive manufacturing device that manufactures a shaped object by sequentially stacking melted materials, and a machine tool that uses a laser beam to irradiate the workpiece. These include laser processing machines that process objects.

数値制御装置1は、加工プログラム3に基づいて、工作機械2に備わるモータ21を制御する。数値制御装置1は、加工プログラム解析部11と、第1加減速処理部12と、補間部13と、モータ状態量監視部14と、第2加減速処理部15と、を有する。 The numerical control device 1 controls a motor 21 provided in the machine tool 2 based on a machining program 3. The numerical control device 1 includes a machining program analysis section 11 , a first acceleration/deceleration processing section 12 , an interpolation section 13 , a motor state quantity monitoring section 14 , and a second acceleration/deceleration processing section 15 .

加工プログラム解析部11は、工作機械2を制御するための加工プログラム3を先読み解析する。先読み解析とは、加工プログラム3のうち工作機械2が実行中の部分よりも後に実行される部分を解析することである。 The machining program analysis unit 11 prereads and analyzes the machining program 3 for controlling the machine tool 2 . The prefetch analysis is to analyze a portion of the machining program 3 that will be executed after the portion that is currently being executed by the machine tool 2 .

図2は、先読み解析の説明図である。図2において、矢印は、加工プログラムの軌跡を示している。また、実線の矢印は、モータ21に対して指令済みの軌跡を示しており、一点鎖線の矢印は、加工プログラム解析部11が解析済みであるものの未だモータ21に対して指令は行っていない軌跡を示しており、破線の矢印は、加工プログラム解析部11が未だ解析を行っていない未処理の軌跡を示している。指令位置P1は、現時点において、モータ21が実行中の位置であり、先読み位置P2は、先読み解析の対象の位置である。 FIG. 2 is an explanatory diagram of prefetch analysis. In FIG. 2, arrows indicate the locus of the machining program. Further, solid line arrows indicate trajectories that have been commanded to the motor 21, and dashed-dotted line arrows indicate trajectories that have been analyzed by the machining program analysis unit 11 but have not yet been commanded to the motor 21. The dashed arrow indicates an unprocessed trajectory that has not been analyzed by the machining program analysis unit 11 yet. The command position P1 is the position where the motor 21 is currently being executed, and the pre-read position P2 is the target position of the pre-read analysis.

図1の説明に戻る。加工プログラム解析部11は、加工プログラム3の先読み解析結果である解析データを第1加減速処理部12に出力する。第1加減速処理部12は、解析データに基づいて、加工プログラム3に記述された経路上を移動する際の速度を、第1加速度で加減速処理し、加減速処理後の指令である第1加減速後指令を補間部13に出力する。ここで、第1加速度は予めパラメータで設定された加速度で、モータ21のトルク特性と、工作機械2のイナーシャによって決まる値である。 Returning to the explanation of FIG. The machining program analysis section 11 outputs analysis data, which is a preread analysis result of the machining program 3, to the first acceleration/deceleration processing section 12. The first acceleration/deceleration processing unit 12 accelerates/decelerates the speed when moving on the path described in the machining program 3 based on the analysis data using a first acceleration, and the first A command after one acceleration/deceleration is output to the interpolation section 13. Here, the first acceleration is an acceleration set in advance using parameters, and is a value determined by the torque characteristics of the motor 21 and the inertia of the machine tool 2.

補間部13は、第1加減速後指令からモータ21に対する制御周期毎の指令であるモータ指令を算出し、算出したモータ指令を第2加減速処理部15に出力する。 The interpolation unit 13 calculates a motor command, which is a command for each control cycle for the motor 21, from the first post-acceleration/deceleration command, and outputs the calculated motor command to the second acceleration/deceleration processing unit 15.

モータ状態量監視部14は、モータ21の負荷状態を示す状態量を監視し、状態量がしきい値を超えると、モータ負荷超過信号を第2加減速処理部15に出力する。 The motor state quantity monitoring unit 14 monitors a state quantity indicating the load state of the motor 21 and outputs a motor load excess signal to the second acceleration/deceleration processing unit 15 when the state quantity exceeds a threshold value.

第2加減速処理部15は、補間部13が出力するモータ指令と、モータ状態量監視部14が出力するモータ負荷超過信号とに基づいて、モータ21に出力する指令である出力指令を生成し、制御周期毎に出力指令をモータ21に出力する。具体的には、第2加減速処理部15は、モータ負荷超過信号が出力されていない状態では、補間部13の出力するモータ指令をそのまま出力指令としてモータ21に出力する。また、第2加減速処理部15は、モータ負荷超過信号が出力された後は、補間部13の出力するモータ指令に対して第2加速度によって加減速処理した第2加減速後指令をモータ21に出力する。ここで、第2加速度は、第1加速度よりも速度変化が緩やかとなるような加速度である。例えば、第2加減速処理部15は、第2加速度として、予めパラメータ等で設定した値を使用してもよいし、第2加速度の値を一定の倍率で徐々に下げていき、モータ負荷超過信号が出力されなくなると、その後は、はじめてモータ負荷超過信号が出力されなくなったときの加速度の値を第2加速度として使用してもよい。 The second acceleration/deceleration processing unit 15 generates an output command, which is a command to be output to the motor 21, based on the motor command output from the interpolation unit 13 and the motor overload signal output from the motor state quantity monitoring unit 14. , outputs an output command to the motor 21 every control cycle. Specifically, when the motor overload signal is not output, the second acceleration/deceleration processing section 15 directly outputs the motor command output from the interpolation section 13 to the motor 21 as an output command. Further, after the motor overload signal is output, the second acceleration/deceleration processing unit 15 applies a second post-acceleration/deceleration command to the motor 21 by performing acceleration/deceleration processing using the second acceleration on the motor command output from the interpolation unit 13. Output to. Here, the second acceleration is an acceleration such that the speed change is slower than the first acceleration. For example, the second acceleration/deceleration processing unit 15 may use a value preset as the second acceleration using parameters, etc., or may gradually lower the value of the second acceleration at a constant multiplier to prevent the motor from overloading. Once the signal is no longer output, the value of the acceleration when the motor overload signal is no longer output for the first time may be used as the second acceleration.

また、第2加減速処理部15は、制御周期毎に、モータ21に出力する指令である出力指令に対応する速度を積分することにより算出される積分値を指令位置として算出する。ここで、「出力指令に対応する速度」とは、出力指令によって指令した速度であって、当該出力指令に基づいてモータ21を動作させたときのモータ21の駆動対象の制御周期毎の移動速度である。以下、「出力指令に対応する速度」を「出力速度」と称する場合がある。また、第2加減速処理部15は、制御周期毎に、加工プログラム3により規定された目標位置と、算出した指令位置との差である指令ドループを算出する。ここで、加工プログラム3により規定された目標位置とは、加工プログラム解析部11により先読み解析した位置である。さらに、第2加減速処理部15は、制御周期毎に、最新の出力速度から減速して停止するまでに必要な距離である減速所要距離を計算する。第2加減速処理部15は、指令ドループが、減速所要距離よりも大きくなるように第2加速度を決定し、決定した第2加速度で第2加減速処理を実施する。 Further, the second acceleration/deceleration processing unit 15 calculates, as a command position, an integral value calculated by integrating the speed corresponding to the output command, which is a command to be output to the motor 21, for each control cycle. Here, the "speed corresponding to the output command" is the speed commanded by the output command, and the moving speed of the object driven by the motor 21 in each control cycle when the motor 21 is operated based on the output command. It is. Hereinafter, the "speed corresponding to the output command" may be referred to as the "output speed". Further, the second acceleration/deceleration processing unit 15 calculates a command droop, which is the difference between the target position specified by the machining program 3 and the calculated command position, for each control cycle. Here, the target position defined by the machining program 3 is a position pre-read and analyzed by the machining program analysis section 11. Furthermore, the second acceleration/deceleration processing unit 15 calculates a required deceleration distance, which is the distance required to decelerate and stop from the latest output speed, for each control cycle. The second acceleration/deceleration processing unit 15 determines the second acceleration so that the command droop is larger than the required deceleration distance, and performs the second acceleration/deceleration processing using the determined second acceleration.

さらに、第2加減速処理部15は、加速中にモータ負荷超過信号が出力された場合、加速中の加速度に基づいて、減速中の加速度を設定することができる。減速波形を加速波形に基づいて生成することで、減速中にモータ21が過負荷状態となることを防止することが可能になる。以下、具体例を用いて説明する。 Furthermore, when the motor overload signal is output during acceleration, the second acceleration/deceleration processing section 15 can set the acceleration during deceleration based on the acceleration during acceleration. By generating the deceleration waveform based on the acceleration waveform, it is possible to prevent the motor 21 from being overloaded during deceleration. This will be explained below using a specific example.

図3は、実施の形態1にかかる数値制御装置1の制御内容の一例の説明図である。図3において、破線は第1加速度A0により加減速処理を行ったモータ指令を示しており、実線はモータ負荷超過信号が出力されて第2加減速処理部15による加速度の調整が行われた場合の出力速度を示している。第1加減速処理部12が第1加速度A0で加速している最中にモータ負荷超過信号#1が出力されたものとする。この場合、数値制御装置1の第2加減速処理部15は、第1加速度A0よりも小さい第2加速度A1で加速処理した第2加減速後指令を出力する。さらに、第2加速度A1で加速処理した第2加減速後指令を出力している状態において、モータ負荷超過信号#2が出力された場合、第2加減速処理部15は、第2加速度A1よりも小さい第2加速度A2で加速処理した第2加減速後指令を出力する。ここで、第2加減速後指令に対応する速度が目標速度Vtに達すると、数値制御装置1は加速処理を停止して目標速度Vtでの移動を行い、加工プログラム3により規定された目標位置で停止することができるように減速処理を開始する。 FIG. 3 is an explanatory diagram of an example of control contents of the numerical control device 1 according to the first embodiment. In FIG. 3, the broken line shows the motor command for which acceleration/deceleration processing is performed using the first acceleration A0, and the solid line shows the case when the motor overload signal is output and the acceleration is adjusted by the second acceleration/deceleration processing section 15. shows the output speed. Assume that the motor overload signal #1 is output while the first acceleration/deceleration processing section 12 is accelerating at the first acceleration A0. In this case, the second acceleration/deceleration processing unit 15 of the numerical control device 1 outputs a second post-acceleration/deceleration command that has been accelerated at a second acceleration A1 that is smaller than the first acceleration A0. Furthermore, if the motor overload signal #2 is output while the second post-acceleration/deceleration command is being output after acceleration processing is performed using the second acceleration A1, the second acceleration/deceleration processing unit 15 A second post-acceleration/deceleration command is output which is subjected to acceleration processing using a second acceleration A2 which is also smaller. Here, when the speed corresponding to the second post-acceleration/deceleration command reaches the target speed Vt, the numerical control device 1 stops the acceleration process, moves at the target speed Vt, and moves to the target position specified by the machining program 3. Start deceleration processing so that it can be stopped at .

このとき、第2加減速処理部15は、加速時と同様の減速波形を生成することで、減速時にモータ21が過負荷状態になることを防止する。具体的には、図3の例において、加速時にモータ負荷超過信号#1が出力されたときの出力速度をV1、モータ負荷超過信号#2が出力されたときの出力速度をV2とした場合、減速時には、目標速度Vtから速度V2まで減速する間の加速度をαA2、速度V2から速度V1まで減速する間の加速度をαA1、速度V1から停止するまで減速する間の加速度をαA0とする。なお、αは減速係数であって、予め定められた値を有する。例えば、加速度の正の値が加速を意味し、負の値が減速を意味する場合、減速係数αの値は、-1以上0未満の値とすることが望ましい。減速係数αの絶対値を1以下とすることによって、同じ出力速度で比較した場合、加速時の加速と同一であるか、または緩やかな加速とすることができる。 At this time, the second acceleration/deceleration processing section 15 prevents the motor 21 from being overloaded during deceleration by generating a deceleration waveform similar to that during acceleration. Specifically, in the example of FIG. 3, if the output speed when the motor overload signal #1 is output during acceleration is V1, and the output speed when the motor overload signal #2 is output is V2, During deceleration, the acceleration while decelerating from the target speed Vt to the speed V2 is αA2, the acceleration while decelerating from the speed V2 to the speed V1 is αA1, and the acceleration while decelerating from the speed V1 to the stop is αA0. Note that α is a deceleration coefficient and has a predetermined value. For example, when a positive value of acceleration means acceleration and a negative value means deceleration, it is desirable that the value of the deceleration coefficient α is −1 or more and less than 0. By setting the absolute value of the deceleration coefficient α to 1 or less, when compared at the same output speed, the acceleration can be the same as the acceleration, or the acceleration can be gentle.

このような制御を行うために、第2加減速処理部15は、モータ負荷超過信号が出力される毎に、第2加速度を記録する。また、第2加減速処理部15は、モータ負荷超過信号が出力されると、加速時と同様の波形を描きながら減速した場合の減速所要距離を計算して記録し、制御周期毎に減速所要距離を更新する。加速時と同様の波形を描きつつ、目標位置で停止するためには、加速時と同様の波形を描きながら減速した場合の減速所要距離が、目標位置と指令位置との差である指令ドループと等しくなるタイミングから減速を開始する必要がある。このため、第2加減速処理部15は、加速中にモータ負荷超過信号が出力されると、制御周期毎に、加速中と同様の波形を描きながら減速した場合の減速所要距離を算出し、上述の指令ドループと比較する。 In order to perform such control, the second acceleration/deceleration processing section 15 records the second acceleration every time the motor overload signal is output. Further, when the motor overload signal is output, the second acceleration/deceleration processing unit 15 calculates and records the required deceleration distance when decelerating while drawing a waveform similar to that during acceleration, and calculates and records the required deceleration distance for each control cycle. Update distance. In order to stop at the target position while drawing the same waveform as during acceleration, the required deceleration distance when decelerating while drawing the same waveform as during acceleration is the command droop, which is the difference between the target position and the command position. It is necessary to start decelerating from the timing when they become equal. Therefore, when the motor overload signal is output during acceleration, the second acceleration/deceleration processing unit 15 calculates the required deceleration distance in the case of decelerating while drawing the same waveform as during acceleration, for each control cycle, Compare with the command droop described above.

具体的には、第2加減速処理部15は、モータ負荷超過信号#1が出力されると、モータ負荷超過信号#1が出力されたときに算出した第2加速度A1を記録する。そして、速度V1から加速度αA0で減速した場合に停止するまでの距離を減速所要距離として算出する。この減速所要距離は、図3においては速度V1から停止するまでの期間H1に進む距離であり、期間H1における速度の積分値に相当する。また、第2加減速処理部15は、モータ負荷超過信号#1が出力された後、制御周期毎に、この減速所要距離を更新する。例えば、モータ負荷超過信号#1が出力された制御周期の次の制御周期では、当該制御周期の出力速度から速度V1まで加速度αA1で減速する場合に、この期間H2に進む距離を算出し、前の制御周期の減速所要距離に算出した距離を加えることによって、減速所要距離を更新する。第2加減速処理部15は、加速している間、制御周期毎に同様の処理を繰返して減速所要距離を更新し続け、更新後の減速所要距離と、対象の制御周期の指令ドループとを比較する。なお、第2加減速処理部15は、図3に示すようにモータ負荷超過信号が複数回出力される場合、モータ負荷超過信号が出力される毎に、モータ負荷超過信号が出力された制御周期の第2加速度と、減速所要距離とを加速時に加速度が変更された時点を示す境界情報として記録する。指令ドループは経時的に減少し、加速時には経時的に速度が速くなるため減速所要距離は経時的に増大する。ここで、第2加減速処理部15は、減速所要距離と指令ドループとが等しくなるタイミングで、減速を開始する。例えば、第2加減速処理部15は、減速所要距離と指令ドループとの差が予め定められた値以下となった場合に、減速所要距離と指令ドループとが等しくなったと判断することができる。或いは、第2加減速処理部15は、対象の制御周期の指令ドループが減速所要距離よりも小さくなった場合に、減速所要距離と指令ドループとが等しくなったと判断して、減速を開始してもよい。 Specifically, when the motor overload signal #1 is output, the second acceleration/deceleration processing unit 15 records the second acceleration A1 calculated when the motor overload signal #1 was output. Then, the distance required for deceleration to stop when decelerating from speed V1 to acceleration αA0 is calculated as the required deceleration distance. In FIG. 3, this required deceleration distance is the distance traveled from the speed V1 to the period H1 until stopping, and corresponds to the integral value of the speed in the period H1. Further, the second acceleration/deceleration processing unit 15 updates the required deceleration distance for each control cycle after the motor overload signal #1 is output. For example, in the next control cycle after the control cycle in which motor overload signal #1 was output, when decelerating from the output speed of the control cycle to speed V1 at acceleration αA1, calculate the distance traveled to H2 during this period, and The required deceleration distance is updated by adding the calculated distance to the required deceleration distance for the control cycle. While accelerating, the second acceleration/deceleration processing unit 15 continues to update the required deceleration distance by repeating the same process every control cycle, and updates the updated required deceleration distance with the command droop of the target control cycle. compare. Note that, when the motor overload signal is output multiple times as shown in FIG. The second acceleration and the required deceleration distance are recorded as boundary information indicating the point in time when the acceleration is changed during acceleration. The command droop decreases over time, and during acceleration, the speed increases over time, so the distance required for deceleration increases over time. Here, the second acceleration/deceleration processing unit 15 starts deceleration at a timing when the required deceleration distance and the command droop become equal. For example, the second acceleration/deceleration processing unit 15 can determine that the required deceleration distance and the command droop have become equal when the difference between the required deceleration distance and the command droop becomes equal to or less than a predetermined value. Alternatively, when the command droop of the target control cycle becomes smaller than the required deceleration distance, the second acceleration/deceleration processing unit 15 determines that the required deceleration distance and the command droop are equal, and starts deceleration. Good too.

減速を開始した後は、第2加減速処理部15は、指令ドループが、各モータ負荷超過信号が出力されたときの減速所要距離となるタイミングで使用する加速度を変更する。具体的には、図3の例では、第2加減速処理部15は、目標速度Vtから加速度αA2で減速を開始した後、モータ負荷超過信号#2が出力されたときの減速所要距離と、各制御周期の指令ドループとが等しくなると、使用加速度を加速度αA1に変更する。続いて、モータ負荷超過信号#1が出力されたときの減速所要距離と指令ドループとが等しくなると、使用加速度を加速度αA0に変更する。このような処理を行うことで、数値制御装置1は、加速時と同様の波形を描きながら減速を行うことが可能になる。 After starting deceleration, the second acceleration/deceleration processing unit 15 changes the acceleration to be used at the timing when the command droop corresponds to the required deceleration distance when each motor overload signal is output. Specifically, in the example of FIG. 3, the second acceleration/deceleration processing unit 15 starts decelerating from the target speed Vt at an acceleration αA2 and then calculates the required deceleration distance when the motor overload signal #2 is output, and When the command droop of each control period becomes equal, the acceleration used is changed to acceleration αA1. Subsequently, when the required deceleration distance when motor overload signal #1 is outputted becomes equal to the command droop, the used acceleration is changed to acceleration αA0. By performing such processing, the numerical control device 1 can perform deceleration while drawing a waveform similar to that during acceleration.

図4は、実施の形態1にかかる数値制御装置1の動作を説明するためのフローチャートである。数値制御装置1の加工プログラム解析部11は、加工プログラム3の先読み解析を行い(ステップS11)、解析結果である解析データを第1加減速処理部12に出力する。 FIG. 4 is a flowchart for explaining the operation of the numerical control device 1 according to the first embodiment. The machining program analysis section 11 of the numerical control device 1 performs a preread analysis of the machining program 3 (step S11), and outputs analysis data that is the analysis result to the first acceleration/deceleration processing section 12.

第1加減速処理部12は、第1加速度によって加減速処理を行い(ステップS12)、加減速処理後の指令である第1加減速後指令を補間部13に出力する。 The first acceleration/deceleration processing unit 12 performs acceleration/deceleration processing using the first acceleration (step S12), and outputs a first post-acceleration/deceleration command, which is a command after the acceleration/deceleration processing, to the interpolation unit 13.

補間部13は、第1加減速後指令から制御周期毎のモータ指令を算出し(ステップS13)、算出したモータ指令を第2加減速処理部15に出力する。 The interpolation unit 13 calculates a motor command for each control cycle from the first post-acceleration/deceleration command (step S13), and outputs the calculated motor command to the second acceleration/deceleration processing unit 15.

第2加減速処理部15は、モータ状態量監視部14によってモータ負荷超過信号が出力されたか否かを判断する(ステップS14)。なお、ここでは、対象の処理を実行中に1度でもモータ負荷超過信号が出力されている場合には、モータ負荷超過信号が出力されたと判断される。モータ負荷超過信号が出力された場合(ステップS14:Yes)、第2加減速処理部15は、第2加速度により加減速処理を行った指令である第2加減速後指令を出力指令としてモータ21に出力する(ステップS15)。モータ負荷超過信号が出力されていない場合(ステップS14:No)、第2加減速処理部15は、補間部13が出力したモータ指令をそのまま出力指令としてモータ21に出力する(ステップS16)。 The second acceleration/deceleration processing unit 15 determines whether the motor state quantity monitoring unit 14 outputs a motor overload signal (step S14). Note that here, if the motor overload signal is output even once during execution of the target process, it is determined that the motor overload signal has been output. When the motor overload signal is output (step S14: Yes), the second acceleration/deceleration processing unit 15 outputs the second post-acceleration/deceleration command, which is a command obtained by performing acceleration/deceleration processing using the second acceleration, and outputs the second acceleration/deceleration command to the motor 21. (Step S15). If the motor overload signal is not output (step S14: No), the second acceleration/deceleration processing section 15 directly outputs the motor command output from the interpolation section 13 to the motor 21 as an output command (step S16).

第2加減速処理部15は、目標位置まで移動完了したか否かを判断する(ステップS17)。目標位置まで移動完了していない場合(ステップS17:No)、数値制御装置1は、ステップS13の処理に戻る。目標位置まで移動完了した場合(ステップS17:Yes)、数値制御装置1は、加工処理が終了したか否かを判断する(ステップS18)。加工処理が終了した場合(ステップS18:Yes)、数値制御装置1は、処理を終了し、加工処理が終了していない場合(ステップS18:No)、数値制御装置1は、ステップS11の処理に戻る。目標位置まで移動完了したか否かは、制御周期毎に算出される指令ドループの値に基づいて判断することができる。また、加工処理が終了したか否かは、対象の加工プログラム3中の処理を実行し終えたか否かに基づいて判断することができる。 The second acceleration/deceleration processing unit 15 determines whether movement to the target position has been completed (step S17). If the movement to the target position has not been completed (step S17: No), the numerical control device 1 returns to the process of step S13. If the movement to the target position has been completed (step S17: Yes), the numerical control device 1 determines whether the machining process has been completed (step S18). If the machining process has ended (step S18: Yes), the numerical control device 1 ends the process; if the machining process has not ended (step S18: No), the numerical control device 1 returns to the process of step S11. return. Whether the movement to the target position has been completed can be determined based on the command droop value calculated for each control cycle. Furthermore, whether or not the machining process has ended can be determined based on whether or not the processing in the target machining program 3 has been completed.

以上説明したように、実施の形態1にかかる数値制御装置1は、加工プログラム3に基づいてモータ21を制御し、加工プログラム3の先読み解析結果に基づいて、加工プログラム3に記述された指令を予め定められた第1加速度によって加減速処理した加減速処理後の指令である第1加減速後指令を出力する第1加減速処理部12と、第1加減速後指令からモータ21に対する制御周期毎の指令であるモータ指令を算出する補間部13と、モータ21のモータ負荷を示す状態量を監視し、状態量がしきい値を超えると、モータ負荷超過信号を出力するモータ状態量監視部14と、モータ負荷超過信号が出力されるまでは、モータ指令をモータ21に出力する出力指令として出力し、モータ負荷超過信号が出力された場合、モータ指令に対して第2加速度によって加減速処理した第2加減速後速度を出力指令として出力する第2加減速処理部15と、を備える。第2加減速処理部15は、モータ負荷超過信号が出力されると、モータ21に出力する直前の、制御周期毎の指令であるモータ指令から第2加減速後指令を生成してモータ21に出力する。制御周期毎の指令を生成する前に加減速時定数や加速度を変更した場合には、モータ21の加速度が変更されるまでにタイムラグが生じるのに対して、第2加減速処理部15は、モータ21に出力する直前で加速度を変更することができるため、先読み処理を行っている場合であっても、モータ21の過負荷を検知した場合、速やかに加速度を変更することが可能になる。 As described above, the numerical control device 1 according to the first embodiment controls the motor 21 based on the machining program 3, and issues commands written in the machining program 3 based on the preread analysis results of the machining program 3. A first acceleration/deceleration processing unit 12 that outputs a first post-acceleration/deceleration command that is a command after acceleration/deceleration processing performed by a predetermined first acceleration, and a control cycle for the motor 21 from the first post-acceleration/deceleration command. an interpolation unit 13 that calculates a motor command, which is a command for each command; and a motor state quantity monitoring unit that monitors a state quantity indicating the motor load of the motor 21 and outputs a motor load excess signal when the state quantity exceeds a threshold value. 14, until the motor overload signal is output, the motor command is output as an output command to the motor 21, and when the motor overload signal is output, the motor command is accelerated/decelerated by the second acceleration. and a second acceleration/deceleration processing unit 15 that outputs the second acceleration/deceleration speed as an output command. When the motor overload signal is output, the second acceleration/deceleration processing unit 15 generates a second post-acceleration/deceleration command from the motor command, which is a command for each control cycle, immediately before being output to the motor 21 . Output. If the acceleration/deceleration time constant or acceleration is changed before generating commands for each control cycle, a time lag will occur until the acceleration of the motor 21 is changed, whereas the second acceleration/deceleration processing unit 15 Since the acceleration can be changed immediately before being output to the motor 21, even when pre-reading processing is performed, if an overload of the motor 21 is detected, the acceleration can be changed quickly.

また、第2加減速処理部15は、加工プログラム3により規定された目標位置と、出力速度の積分値である指令位置との差である指令ドループを計算するとともに、出力速度から減速して停止するまでに必要な距離である減速所要距離を計算し、指令ドループが減速所要距離よりも大きくなるように加減速処理を実施する。このようなドループ管理を行うことで、目標位置をオーバーシュートすることのない指令を生成することが可能になる。 Further, the second acceleration/deceleration processing unit 15 calculates a command droop, which is the difference between the target position specified by the machining program 3 and the command position, which is the integral value of the output speed, and also decelerates from the output speed and stops. A required deceleration distance is calculated, which is the distance required for the deceleration to occur, and acceleration/deceleration processing is performed so that the command droop becomes larger than the required deceleration distance. By performing such droop management, it becomes possible to generate commands that do not overshoot the target position.

また、第2加減速処理部15は、加速中にモータ負荷超過信号が出力された場合、減速中には、対象の制御周期の速度と同一の速度を出力した加速中の制御周期において出力指令を計算するために使用した加速度である使用加速度に予め定められた減速係数を乗算した加速度で減速する。これにより、加速時と同様の減速波形を生成することが可能になる。加速時と同じ速度のときに、加速時と同一または加速時よりも緩やかな加速度で減速することで、モータ21が過負荷になることを抑制することが可能になる。 In addition, when the motor load excess signal is output during acceleration, the second acceleration/deceleration processing unit 15 outputs an output command in the control period during acceleration that outputs the same speed as the speed in the target control period during deceleration. The vehicle is decelerated at an acceleration obtained by multiplying the used acceleration, which is the acceleration used to calculate , by a predetermined deceleration coefficient. This makes it possible to generate a deceleration waveform similar to that during acceleration. By decelerating at the same speed as when accelerating or at a slower acceleration than when accelerating, it is possible to prevent the motor 21 from becoming overloaded.

第2加減速処理部15は、加速中に最初にモータ負荷超過信号が出力されたときは、出力速度から、第1加速度に予め定められた減速係数を乗算した加速度で減速して停止するまでに必要な距離を減速所要距離として計算し、制御周期毎に、対象の制御周期の1つ前の制御周期の出力速度から対象の制御周期の出力速度までの速度範囲を、対象の制御周期の第2加速度に減速係数を乗算した加速度で減速するのに必要な距離を、減速所要距離に加えることで、減速所要距離を更新する。また、第2加減速処理部15は、減速中の指令ドループが減速所要距離と等しくなるタイミングで減速を開始する。これにより、加速時と同様の減速波形で減速する際に、停止するタイミングで目標位置に到達することが可能になる。 When the motor overload signal is first output during acceleration, the second acceleration/deceleration processing unit 15 decelerates from the output speed at an acceleration obtained by multiplying the first acceleration by a predetermined deceleration coefficient until it stops. The distance required for deceleration is calculated as the required deceleration distance, and for each control cycle, the speed range from the output speed of the control cycle immediately before the target control cycle to the output speed of the target control cycle is The required deceleration distance is updated by adding the distance required to decelerate with the acceleration obtained by multiplying the second acceleration by the deceleration coefficient to the required deceleration distance. Further, the second acceleration/deceleration processing unit 15 starts deceleration at a timing when the command droop during deceleration becomes equal to the required deceleration distance. This makes it possible to reach the target position at the timing of stopping when decelerating with the same deceleration waveform as during acceleration.

第2加減速処理部15は、加速中にモータ負荷超過信号が出力された制御周期の減速所要距離および第2加速度を境界情報として記録し、対象の制御周期の指令ドループが境界情報に含まれる減速所要距離と等しくなるタイミングで使用する第2加速度を変更する。これにより、加速中と同様の波形となるように、使用加速度を切り替えることが可能になる。 The second acceleration/deceleration processing unit 15 records the required deceleration distance and second acceleration of the control cycle in which the motor overload signal was output during acceleration as boundary information, and the command droop of the target control cycle is included in the boundary information. The second acceleration to be used is changed at a timing that becomes equal to the required deceleration distance. This makes it possible to switch the acceleration used so that the waveform is similar to that during acceleration.

なお、減速係数は、-1以上0未満の値とする。これにより、加速中と同一であるか、加速中よりも緩やかに減速を行うことが可能になる。 Note that the deceleration coefficient has a value of -1 or more and less than 0. This makes it possible to decelerate to the same level as during acceleration or more slowly than during acceleration.

なお、上記の実施の形態では、減速中に使用する加速度を切り替えるタイミングを減速所要距離を用いて判断していたが、例えば、モータ負荷超過信号が出力されたときの出力指令を記録しておき、出力指令に基づいて、減速中に使用する加速度を切り替えるタイミングを判断してもよい。例えば、第2加減速処理部15は、図3の例において、加速度αA2で減速を開始した後、出力速度がV2となると、使用加速度を加速度αA1に切り替え、出力速度がV1となると、使用加速度を加速度αA0に切り替えることができる。 Note that in the above embodiment, the timing to switch the acceleration used during deceleration is determined using the required deceleration distance, but for example, it is possible to record the output command when the motor overload signal is output. , the timing to switch the acceleration used during deceleration may be determined based on the output command. For example, in the example of FIG. 3, after starting deceleration at acceleration αA2, when the output speed becomes V2, the second acceleration/deceleration processing unit 15 switches the used acceleration to acceleration αA1, and when the output speed becomes V1, the used acceleration can be switched to acceleration αA0.

実施の形態2.
図5は、実施の形態2にかかる数値制御システム100Aの構成を示す図である。数値制御システム100Aは、数値制御装置1Aと、工作機械2Aとを有する。数値制御装置1Aは、数値制御装置1の第2加減速処理部15の代わりに、フィードバック情報に基づいて加減速処理を行う第2加減速処理部15Aを有する。また、工作機械2Aは、モータ21の機能に加えて、数値制御装置1Aにフィードバック情報を出力するモータ21Aを有する。
Embodiment 2.
FIG. 5 is a diagram showing the configuration of a numerical control system 100A according to the second embodiment. The numerical control system 100A includes a numerical control device 1A and a machine tool 2A. The numerical control device 1A has a second acceleration/deceleration processing section 15A that performs acceleration/deceleration processing based on feedback information instead of the second acceleration/deceleration processing section 15 of the numerical control device 1. In addition to the functions of the motor 21, the machine tool 2A includes a motor 21A that outputs feedback information to the numerical control device 1A.

第2加減速処理部15Aは、モータ21Aのフィードバック情報を取得し、モータ負荷超過信号が出力された場合、取得したフィードバック情報に基づいて計算した加速度と、モータ指令に基づいて計算した指令加速度とのうち、絶対値が小さい方を第2加速度として加減速処理を実施する。フィードバック情報は、例えば、フィードバック電流、モータ慣性などを示す情報である。 The second acceleration/deceleration processing unit 15A acquires feedback information of the motor 21A, and when a motor overload signal is output, an acceleration calculated based on the acquired feedback information and a command acceleration calculated based on the motor command. The acceleration/deceleration process is performed using the one with the smaller absolute value as the second acceleration. The feedback information is, for example, information indicating feedback current, motor inertia, etc.

例えば、速度フィードバック値をvres(t-1)、加速度フィードバック値をares(t-1)、出力速度をvcmd(t-1)、制御周期の長さをTsとした場合、フィードバック情報に基づく加速度Ac(t)は、以下の数式(1)で表される。For example, if the velocity feedback value is v res (t-1), the acceleration feedback value is a res (t-1), the output speed is v cmd (t-1), and the length of the control period is T s , then the feedback The acceleration A c (t) based on the information is expressed by the following formula (1).

Figure 0007418665000001
Figure 0007418665000001

なお、モータ負荷超過信号が出力されてから加速度を変更するまでの間にタイムラグがあると、速度フィードバック値と指令した速度である出力速度との差が大きくなり、上記の数式(1)の値が負となる可能性があるが、この場合には、0とする。また、加速度フィードバック値ares(t-1)は、イナーシャおよび電流飽和値から求めた加速度に置き換えることができる。Note that if there is a time lag between when the motor overload signal is output and when the acceleration is changed, the difference between the speed feedback value and the output speed, which is the commanded speed, will increase, and the value of formula (1) above will increase. may be negative, but in this case it is set to 0. Furthermore, the acceleration feedback value a res (t-1) can be replaced with the acceleration determined from the inertia and current saturation value.

以上説明したように、実施の形態2によれば、第2加減速処理部15Aは、モータ21Aのフィードバック情報を取得し、取得したフィードバック情報に基づいて計算した加速度と、モータ指令に基づいて計算した指令加速度とのうち、絶対値が小さい方を第2加速度として加減速処理を実施する。したがって、トルク制限間際の加速度で加減速することが可能になる。 As described above, according to the second embodiment, the second acceleration/deceleration processing unit 15A acquires feedback information of the motor 21A, calculates acceleration based on the acquired feedback information, and calculates the acceleration based on the motor command. The acceleration/deceleration process is performed using the smaller absolute value of the commanded accelerations as the second acceleration. Therefore, it becomes possible to accelerate and decelerate at an acceleration just before the torque limit.

続いて、実施の形態1,2にかかる数値制御装置1,1Aのハードウェア構成について説明する。加工プログラム解析部11、第1加減速処理部12、補間部13、モータ状態量監視部14、および、第2加減速処理部15,15Aは、処理回路により実現される。これらの処理回路は、専用のハードウェアにより実現されてもよいし、CPU(Central Processing Unit)を用いた制御回路であってもよい。 Next, the hardware configuration of the numerical control devices 1 and 1A according to the first and second embodiments will be explained. The machining program analysis section 11, the first acceleration/deceleration processing section 12, the interpolation section 13, the motor state quantity monitoring section 14, and the second acceleration/deceleration processing sections 15 and 15A are realized by processing circuits. These processing circuits may be realized by dedicated hardware or may be a control circuit using a CPU (Central Processing Unit).

上記の処理回路が、専用のハードウェアにより実現される場合、これらは、図6に示す処理回路90により実現される。図6は、実施の形態1,2にかかる数値制御装置1,1Aの機能を実現するための専用のハードウェアを示す図である。処理回路90は、単一回路、複合回路、プログラム化したプロセッサ、並列プログラム化したプロセッサ、ASIC(Application Specific Integrated Circuit)、FPGA(Field Programmable Gate Array)、またはこれらを組み合わせたものである。 When the above processing circuits are realized by dedicated hardware, they are realized by a processing circuit 90 shown in FIG. FIG. 6 is a diagram showing dedicated hardware for realizing the functions of the numerical control devices 1 and 1A according to the first and second embodiments. The processing circuit 90 is a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or a combination thereof.

上記の処理回路が、CPUを用いた制御回路で実現される場合、この制御回路は例えば図7に示す構成の制御回路91である。図7は、実施の形態1,2にかかる数値制御装置1,1Aの機能を実現するための制御回路91の構成を示す図である。図7に示すように、制御回路91は、プロセッサ92と、メモリ93とを備える。プロセッサ92は、CPUであり、処理装置、演算装置、マイクロプロセッサ、マイクロコンピュータ、DSP(Digital Signal Processor)などとも呼ばれる。メモリ93は、例えば、RAM(Random Access Memory)、ROM(Read Only Memory)、フラッシュメモリ、EPROM(Erasable Programmable ROM)、EEPROM(登録商標)(Electrically EPROM)などの不揮発性または揮発性の半導体メモリ、磁気ディスク、フレキシブルディスク、光ディスク、コンパクトディスク、ミニディスク、DVD(Digital Versatile Disk)などである。 When the above processing circuit is realized by a control circuit using a CPU, this control circuit is, for example, a control circuit 91 having the configuration shown in FIG. 7. FIG. 7 is a diagram showing the configuration of a control circuit 91 for realizing the functions of the numerical control devices 1 and 1A according to the first and second embodiments. As shown in FIG. 7, the control circuit 91 includes a processor 92 and a memory 93. The processor 92 is a CPU, and is also called a processing device, arithmetic device, microprocessor, microcomputer, DSP (Digital Signal Processor), or the like. The memory 93 is, for example, non-volatile or volatile semiconductor memory such as RAM (Random Access Memory), ROM (Read Only Memory), flash memory, EPROM (Erasable Programmable ROM), EEPROM (registered trademark) (Electrically EPROM), These include magnetic disks, flexible disks, optical disks, compact disks, mini disks, and DVDs (Digital Versatile Disks).

上記の処理回路が制御回路91により実現される場合、プロセッサ92がメモリ93に記憶された、各構成要素の処理に対応するプログラムを読み出して実行することにより実現される。また、メモリ93は、プロセッサ92が実行する各処理における一時メモリとしても使用される。 When the above-described processing circuit is implemented by the control circuit 91, it is implemented by the processor 92 reading and executing a program stored in the memory 93 that corresponds to the processing of each component. The memory 93 is also used as a temporary memory in each process executed by the processor 92.

以上の実施の形態に示した構成は、一例を示すものであり、別の公知の技術と組み合わせることも可能であるし、実施の形態同士を組み合わせることも可能であるし、要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。 The configurations shown in the embodiments above are merely examples, and can be combined with other known techniques, or can be combined with other embodiments, within the scope of the gist. It is also possible to omit or change part of the configuration.

例えば、上記の実施の形態では、第1加減速後指令、第2加減速後指令、モータ指令、および出力指令のそれぞれは、速度指令であることとしたが、位置指令であってもよい。 For example, in the above embodiment, each of the first post-acceleration/deceleration command, the second post-acceleration/deceleration command, the motor command, and the output command is a speed command, but may be a position command.

1,1A 数値制御装置、2,2A 工作機械、3 加工プログラム、11 加工プログラム解析部、12 第1加減速処理部、13 補間部、14 モータ状態量監視部、15,15A 第2加減速処理部、21,21A モータ、90 処理回路、91 制御回路、92 プロセッサ、93 メモリ、100,100A 数値制御システム、P1 指令位置、P2 先読み位置。 1, 1A numerical control device, 2, 2A machine tool, 3 machining program, 11 machining program analysis section, 12 first acceleration/deceleration processing section, 13 interpolation section, 14 motor state quantity monitoring section, 15, 15A second acceleration/deceleration processing part, 21, 21A motor, 90 processing circuit, 91 control circuit, 92 processor, 93 memory, 100, 100A numerical control system, P1 command position, P2 pre-read position.

Claims (6)

加工プログラムに基づいてモータを制御する数値制御装置において、
前記加工プログラムの先読み解析結果に基づいて、前記加工プログラムに記述された指令を予め定められた第1加速度によって加減速処理した加減速処理後の指令である第1加減速後指令を出力する第1加減速処理部と、
前記第1加減速後指令から前記モータに対する制御周期毎の指令であるモータ指令を算出する補間部と、
前記モータのモータ負荷を示す状態量を監視し、前記状態量がしきい値を超えると、モータ負荷超過信号を出力する状態量監視部と、
前記モータ負荷超過信号が出力されるまでは、前記モータ指令を前記モータに出力する出力指令として出力し、前記モータ負荷超過信号が出力された場合、前記モータ指令に対して前記第1加速度より小さい第2加速度によって加減速処理した第2加減速後指令を前記出力指令として出力する第2加減速処理部と、
を備え
前記第2加減速処理部は、
制御周期毎に、前記加工プログラムにより規定された目標位置と、前記出力指令に対応する速度の積分値である指令位置との差である指令ドループを計算するとともに、
前記出力指令に対応する速度から、減速中の各制御周期において対象の制御周期の速度と同一の速度を出力した加速中の制御周期で前記出力指令を計算するために使用した加速度である使用加速度に予め定められた減速係数を乗算した加速度で減速して停止するまでに必要な距離である減速所要距離を計算し、
前記指令ドループが前記減速所要距離よりも大きくなるように加減速処理を実施することを特徴とする数値制御装置。
In a numerical control device that controls a motor based on a machining program,
A first post-acceleration/deceleration command, which is a command after acceleration/deceleration processing in which a command written in the machining program is accelerated/decelerated by a predetermined first acceleration, based on a look-ahead analysis result of the machining program; 1 acceleration/deceleration processing section;
an interpolation unit that calculates a motor command that is a command for each control cycle for the motor from the first post-acceleration/deceleration command;
a state quantity monitoring unit that monitors a state quantity indicating a motor load of the motor, and outputs a motor load excess signal when the state quantity exceeds a threshold;
Until the motor overload signal is output, the motor command is output as an output command to be output to the motor, and when the motor overload signal is output, the acceleration is smaller than the first acceleration with respect to the motor command. a second acceleration/deceleration processing unit that outputs a second post-acceleration/deceleration command that has been subjected to acceleration/deceleration processing using a second acceleration as the output command;
Equipped with
The second acceleration/deceleration processing section
In each control cycle, a command droop, which is the difference between a target position specified by the machining program and a command position, which is an integral value of the speed corresponding to the output command, is calculated;
Use acceleration, which is the acceleration used to calculate the output command from the speed corresponding to the output command in the control cycle during acceleration, in which the same speed as the speed in the target control cycle was output in each control cycle during deceleration. Calculate the required deceleration distance, which is the distance required to decelerate and stop with the acceleration multiplied by a predetermined deceleration coefficient,
A numerical control device that performs acceleration/deceleration processing so that the command droop becomes larger than the required deceleration distance .
前記第2加減速処理部は、
加速中に前記モータ負荷超過信号が出力された場合、減速中には、対象の制御周期の速度と同一の速度を出力した加速中の制御周期において前記出力指令を計算するために使用した加速度である使用加速度に予め定められた減速係数を乗算した加速度で減速することを特徴とする請求項に記載の数値制御装置。
The second acceleration/deceleration processing section
If the motor overload signal is output during acceleration, during deceleration, the acceleration used to calculate the output command in the control cycle during acceleration that outputs the same speed as the target control cycle is used. The numerical control device according to claim 1, wherein the numerical control device decelerates at an acceleration obtained by multiplying a certain usage acceleration by a predetermined deceleration coefficient.
前記第2加減速処理部は、
加速中に最初に前記モータ負荷超過信号が出力されたときは、前記出力指令に対応する速度から、前記第1加速度に予め定められた減速係数を乗算した加速度で減速して停止するまでに必要な距離を前記減速所要距離として計算し、前記制御周期毎に、対象の前記制御周期の1つ前の前記制御周期の前記出力指令に対応する速度から対象の前記制御周期の前記出力指令に対応する速度までの速度範囲を、対象の前記制御周期の前記第2加速度に前記減速係数を乗算した加速度で減速するのに必要な距離を、前記減速所要距離に加えることで、前記減速所要距離を更新し、
減速中の前記指令ドループが前記減速所要距離と等しくなるタイミングで減速を開始することを特徴とする請求項に記載の数値制御装置。
The second acceleration/deceleration processing section
When the motor overload signal is first output during acceleration, it is necessary to decelerate from the speed corresponding to the output command to an acceleration obtained by multiplying the first acceleration by a predetermined deceleration coefficient and then stop. is calculated as the required deceleration distance, and for each control period, the speed corresponding to the output command of the control period immediately before the target control period is changed to the speed corresponding to the output command of the control period immediately before the target control period. By adding to the required deceleration distance the distance required to decelerate the speed range up to the speed at which the target control cycle is applied by multiplying the second acceleration by the deceleration coefficient, the required deceleration distance is calculated. Updated,
3. The numerical control device according to claim 2 , wherein deceleration is started at a timing when the command droop during deceleration becomes equal to the required deceleration distance.
前記第2加減速処理部は、
加速中に前記モータ負荷超過信号が出力された前記制御周期の前記減速所要距離および前記第2加速度を境界情報として記録し、
対象の前記制御周期の前記指令ドループが前記境界情報に含まれる前記減速所要距離と等しくなるタイミングで使用する前記第2加速度を変更することを特徴とする請求項に記載の数値制御装置。
The second acceleration/deceleration processing section
recording the required deceleration distance and the second acceleration in the control cycle in which the motor overload signal was output during acceleration as boundary information;
4. The numerical control device according to claim 3 , wherein the second acceleration to be used is changed at a timing when the command droop of the target control period becomes equal to the required deceleration distance included in the boundary information.
前記減速係数は、-1以上0未満の値であることを特徴とする請求項からのいずれか1項に記載の数値制御装置。 The numerical control device according to any one of claims 2 to 4 , wherein the deceleration coefficient has a value of -1 or more and less than 0. 前記第2加減速処理部は、
前記モータのフィードバック情報を取得し、取得したフィードバック情報に基づいて計算した加速度と、前記モータ指令に基づいて計算した指令加速度とのうち、絶対値が小さい方を前記第2加速度として加減速処理を実施することを特徴とする請求項に記載の数値制御装置。
The second acceleration/deceleration processing section
Feedback information of the motor is acquired, and acceleration/deceleration processing is performed using the smaller absolute value of the acceleration calculated based on the acquired feedback information and the command acceleration calculated based on the motor command as the second acceleration. The numerical control device according to claim 1 , characterized in that the numerical control device is implemented.
JP2023534997A 2023-01-20 2023-01-20 numerical control device Active JP7418665B1 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2023/001718 WO2024154336A1 (en) 2023-01-20 2023-01-20 Numerical control device

Publications (1)

Publication Number Publication Date
JP7418665B1 true JP7418665B1 (en) 2024-01-19

Family

ID=89543228

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2023534997A Active JP7418665B1 (en) 2023-01-20 2023-01-20 numerical control device

Country Status (2)

Country Link
JP (1) JP7418665B1 (en)
WO (1) WO2024154336A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000271836A (en) 1999-03-24 2000-10-03 Makino Milling Mach Co Ltd Control method and device for machine tool under numerical control
WO2014184820A1 (en) 2013-05-14 2014-11-20 三菱電機株式会社 Numerical control device
WO2015087455A1 (en) 2013-12-13 2015-06-18 三菱電機株式会社 Numerical control device and numerical control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000271836A (en) 1999-03-24 2000-10-03 Makino Milling Mach Co Ltd Control method and device for machine tool under numerical control
WO2014184820A1 (en) 2013-05-14 2014-11-20 三菱電機株式会社 Numerical control device
WO2015087455A1 (en) 2013-12-13 2015-06-18 三菱電機株式会社 Numerical control device and numerical control method

Also Published As

Publication number Publication date
WO2024154336A1 (en) 2024-07-25

Similar Documents

Publication Publication Date Title
JP4980458B2 (en) Machining time prediction device for numerically controlled machine tools
US5159254A (en) Numerical control unit for estimating movement parameters using a model
JP2529724B2 (en) Head / servo control device and head moving method
JP4837558B2 (en) Motor control device
JP6423811B2 (en) Numerical control device that can change machining conditions according to machining information
US20180364682A1 (en) Motor controller
JP7418665B1 (en) numerical control device
US11126163B2 (en) Numerical controller
JP6161854B1 (en) Motor control system
KR20220133086A (en) Electronic control method for throttle and electronic control throttle device
JPS5818712A (en) Position controller
US20190296667A1 (en) Control device for motor, robot, and control method for motor
JPH028857B2 (en)
JP6356658B2 (en) Numerical control device with easy press adjustment
US11114967B2 (en) Controller of rotary axis
JP3219195B2 (en) Feed rate control method in numerical control
JP5494378B2 (en) Thread cutting control method and apparatus
US9740196B2 (en) Numerical controller for controlling drilling operation
JP2002328707A (en) Numerical controller
CN112327762A (en) Control device for servo motor
CN111185801A (en) Numerical controller
JP7270851B1 (en) Numerical controller, numerical control system, and numerical control method
JP2021016213A (en) Motor control device
CN110582655A (en) Vibration-proof device
JP3403628B2 (en) Method and apparatus for controlling acceleration / deceleration of feed axis in numerical control

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230608

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230608

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20230608

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230822

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20231020

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: 20231212

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240109

R150 Certificate of patent or registration of utility model

Ref document number: 7418665

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150