JP2012234390A - Trajectory control device - Google Patents

Trajectory control device Download PDF

Info

Publication number
JP2012234390A
JP2012234390A JP2011102887A JP2011102887A JP2012234390A JP 2012234390 A JP2012234390 A JP 2012234390A JP 2011102887 A JP2011102887 A JP 2011102887A JP 2011102887 A JP2011102887 A JP 2011102887A JP 2012234390 A JP2012234390 A JP 2012234390A
Authority
JP
Japan
Prior art keywords
acceleration
correction vector
command
trajectory
deceleration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2011102887A
Other languages
Japanese (ja)
Other versions
JP5679898B2 (en
Inventor
Kotaro Nagaoka
弘太朗 長岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2011102887A priority Critical patent/JP5679898B2/en
Publication of JP2012234390A publication Critical patent/JP2012234390A/en
Application granted granted Critical
Publication of JP5679898B2 publication Critical patent/JP5679898B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Numerical Control (AREA)
  • Control Of Position Or Direction (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a trajectory control device capable of restraining a trajectory error even when a feeding speed transiently changes due to an effect of acceleration and deceleration.SOLUTION: A trajectory control device controls a trajectory of a movable section of a machine, where the movable section thereof driven by a plurality of movable axes, by concurrently controlling the plurality of the movable axes. The trajectory control device comprises: an interpolation and acceleration/deceleration calculation section which interpolates, accelerates or decelerates a given instruction path; an axis distribution section which generates position instructions for the plurality of the movable axes in accordance with the interpolated, accelerated or decelerated instruction path; a correction vector calculation section which calculates a correction vector for correcting a trajectory error on the basis of the position instructions for the plurality of the movable axes as well as the interpolated, accelerated or decelerated instruction path; a position instruction correction section which corrects the position instructions for the plurality of the axes using the calculated correction vector; and a servo control section which concurrently controls the plurality of the movable axes so that positions of the plurality of the movable axes follows the corrected position instructions for the plurality of the movable axes.

Description

本発明は、軌跡制御装置に関する。   The present invention relates to a trajectory control device.

工作機械やレーザ加工機等の機械を用いて加工を行う場合、工作物に対する工具の位置が指令された経路上を沿うように制御することが行われる。この制御は、軌跡制御と呼ばれ、機械の各可動軸の実際の位置が指令経路から求められた各可動軸の位置指令に追従するようにサーボ制御を行うことで軌跡制御を行うことが一般的である。   When processing is performed using a machine tool, a laser processing machine, or the like, control is performed so that the position of the tool with respect to the workpiece is along the commanded path. This control is called trajectory control, and the trajectory control is generally performed by performing servo control so that the actual position of each movable axis of the machine follows the position command of each movable axis obtained from the command path. Is.

軌跡制御を行う際に、各可動軸の制御系の応答遅れなどに起因して、実際の軌跡が指令された経路からずれてしまうことがある。軌跡制御では、機械の各可動軸ごとに制御を行うため、各可動軸の制御系の応答遅れなどに起因する誤差により、各可動軸のサーボ系応答が位置指令よりも遅れて移動する。直線のように指令経路の移動方向が変化しない場合には、各軸が遅れて移動しても、サーボ系応答の軌跡としては指令経路上から外れない。つまり、指令経路の接線方向に誤差が現れるが、指令経路の法線方向の誤差は現れない。一方、曲線やコーナ形状などのように指令経路の移動方向が変化する場合には、各軸のサーボ制御系の遅れにより、指令経路の法線方向に誤差が現れるようになる。以下では、サーボ系応答位置の位置指令に対する誤差のうち、指令経路の接線方向の成分を追従誤差、指令経路の法線方向の成分を軌跡誤差と呼ぶ。この軌跡誤差があると加工形状が本来の形状と一致しなくなるため、好ましくない。   When performing trajectory control, the actual trajectory may deviate from the commanded path due to a response delay of the control system of each movable axis. In the trajectory control, control is performed for each movable axis of the machine, and therefore, the servo system response of each movable axis moves behind the position command due to an error caused by the response delay of the control system of each movable axis. If the movement direction of the command path does not change as in a straight line, even if each axis moves with a delay, the locus of the servo system response does not deviate from the command path. That is, an error appears in the tangential direction of the command path, but no error in the normal direction of the command path appears. On the other hand, when the moving direction of the command path changes like a curve or a corner shape, an error appears in the normal direction of the command path due to the delay of the servo control system of each axis. In the following, among the errors with respect to the position command of the servo system response position, a component in the tangential direction of the command path is referred to as a tracking error, and a component in the normal direction of the command path is referred to as a locus error. If there is a locus error, the processed shape does not match the original shape, which is not preferable.

特許文献1には、数値制御工作機械において、原数値制御プログラムにおける移動指令を先読みして認識した工具先端の移動軌跡の形状に基づいて目標移動軌跡に対する誤差を一定値以下に抑えるための最適送り速度を演算するとともに、この速度で加工を行ったときの目標移動軌跡に対する誤差量を演算し、その誤差量を打ち消すような補正ベクトルに基づいてもとの移動指令を補正することが記載されている。これにより、特許文献1によれば、従来よりも大きな送り速度で加工しながら、従来と同等の加工精度を維持することができるので、加工精度を下げることなく加工時間の短縮を図ることができるとされている。   In Patent Document 1, in a numerically controlled machine tool, an optimum feed for suppressing an error with respect to a target movement locus to a certain value or less based on a shape of a movement locus of a tool tip that is recognized by pre-reading a movement command in an original numerical control program. It is described that the speed is calculated, the error amount with respect to the target movement trajectory when machining is performed at this speed, and the original movement command is corrected based on a correction vector that cancels the error amount. Yes. Thus, according to Patent Document 1, since machining accuracy equivalent to the conventional one can be maintained while machining at a higher feed rate than the conventional one, the machining time can be shortened without lowering the machining accuracy. It is said that.

特開平6−282321号公報JP-A-6-282321

特許文献1に記載された技術では、補正ベクトルの方向が、移動方向に垂直な方向(法線方向)であり、補正ベクトルの長さが、法線方向加速度(速度の二乗を曲率半径で除した値)に所定の係数をかけた値になっている。すなわち、特許文献1に記載された技術では、原数値制御プログラムの移動指令(指令点)に基づいて補正を行うため、指令点間の経路における加速度が加減速の影響により変化する場合には対応できない可能性がある。   In the technique described in Patent Document 1, the direction of the correction vector is a direction perpendicular to the moving direction (normal direction), and the length of the correction vector is the normal direction acceleration (the square of the velocity divided by the radius of curvature). Value) multiplied by a predetermined coefficient. That is, in the technique described in Patent Document 1, since correction is performed based on the movement command (command point) of the original numerical control program, it is possible to cope with the case where the acceleration in the path between the command points changes due to the influence of acceleration / deceleration. It may not be possible.

例えば、指令経路の始点付近および終点付近や、指令経路上で指令送り速度が変化する指令点付近では、送り速度を急に変更すると制御対象である機械の許容加速度を越えてしまうため、送り速度を漸増または漸減する加減速を行う必要がある。特許文献1に記載の技術では、加減速を行う前の指令点に基づいて誤差量を演算して補正しており、さらに演算している誤差量は、送り速度が一定の状態(定常状態)での誤差量である。このため、加減速中のように送り速度が変化する状態(過渡状態)では、演算した誤差量が実際に生じる誤差量と異なり、補正を行った結果得られる応答軌跡がもとの指令経路と異なり、応答軌跡の形状にひずみが生じる傾向にある。   For example, near the start point and end point of the command path, or near the command point where the command feed speed changes on the command path, if the feed speed is changed suddenly, the allowable acceleration of the machine being controlled will be exceeded. It is necessary to perform acceleration / deceleration that gradually increases or decreases. In the technique described in Patent Document 1, an error amount is calculated and corrected based on a command point before acceleration / deceleration, and the calculated error amount is in a state where the feed speed is constant (steady state). Is the error amount. For this reason, in a state where the feed rate changes (transient state) as during acceleration / deceleration, the calculated error amount is different from the error amount actually generated, and the response trajectory obtained as a result of correction is the same as the original command path. Unlikely, the shape of the response trajectory tends to be distorted.

本発明は、上記に鑑みてなされたものであって、加減速の影響により送り速度が過渡的に変化するような場合でも軌跡誤差を抑制できる軌跡制御装置を得ることを目的とする。   The present invention has been made in view of the above, and an object of the present invention is to provide a trajectory control apparatus that can suppress trajectory errors even when the feed rate changes transiently due to the influence of acceleration and deceleration.

上述した課題を解決し、目的を達成するために、本発明の1つの側面にかかる軌跡制御装置は、機械の可動部が複数の可動軸により駆動され、前記複数の可動軸を同時制御することにより前記可動部の軌跡を制御する軌跡制御装置であって、与えられた指令経路に対して補間・加減速を行う補間・加減速演算部と、前記補間・加減速された指令経路に応じて、前記複数の可動軸の位置指令を生成する軸分配部と、前記複数の可動軸の位置指令と前記補間・加減速された指令経路とに基づいて、軌跡誤差を補正するための補正ベクトルを演算する補正ベクトル演算部と、前記演算された補正ベクトルを用いて前記複数の可動軸の位置指令を補正する位置指令補正部と、前記複数の可動軸の位置が前記補正された複数の可動軸の位置指令に追従するように、前記複数の可動軸を同時制御するサーボ制御部とを備えたことを特徴とする。   In order to solve the above-described problems and achieve the object, a trajectory control device according to one aspect of the present invention is such that a movable part of a machine is driven by a plurality of movable shafts, and the plurality of movable shafts are simultaneously controlled. Is a trajectory control device for controlling the trajectory of the movable part according to the interpolation / acceleration / deceleration calculation unit for performing interpolation / acceleration / deceleration with respect to a given command path, and the command path subjected to the interpolation / acceleration / deceleration. A correction vector for correcting a trajectory error on the basis of the axis distribution unit that generates position commands for the plurality of movable axes, the position commands for the plurality of movable axes, and the interpolated / accelerated and decelerated command paths. A correction vector calculation unit for calculating, a position command correction unit for correcting position commands of the plurality of movable axes using the calculated correction vector, and a plurality of movable axes in which the positions of the plurality of movable shafts are corrected. Follow the position command of As, characterized in that a servo controller for simultaneously controlling the plurality of movable axes.

本発明によれば、補間・加減速された指令経路に基づいて補正ベクトルを演算するので、指令経路上における指令点の間で曲率や加速度が変化する場合においても、応答軌跡が指令経路に正確に追従するような補正を行うことができる。したがって、加減速の影響により送り速度が過渡的に変化するような場合でも軌跡誤差を抑制できる。   According to the present invention, the correction vector is calculated based on the command path that has been interpolated / accelerated, so that even when the curvature or acceleration changes between command points on the command path, the response trajectory is accurate to the command path. It is possible to perform correction so as to follow. Therefore, the trajectory error can be suppressed even when the feed rate changes transiently due to the influence of acceleration / deceleration.

図1は、実施の形態にかかる軌跡制御装置の構成を示す図である。FIG. 1 is a diagram illustrating a configuration of a trajectory control device according to an embodiment. 図2は、実施の形態におけるサーボ制御部の構成を示す図である。FIG. 2 is a diagram illustrating a configuration of the servo control unit according to the embodiment. 図3は、実施の形態における補間・加減速演算部の動作を示す図である。FIG. 3 is a diagram illustrating an operation of the interpolation / acceleration / deceleration calculation unit in the embodiment. 図4は、接線方向速度および接線方向加速度の時間変化を示す図である。FIG. 4 is a diagram illustrating temporal changes in tangential velocity and tangential acceleration. 図5は、実施の形態における応答軌跡を示す図である。FIG. 5 is a diagram illustrating a response locus in the embodiment. 図6は、比較例における応答軌跡を示す図である。FIG. 6 is a diagram illustrating a response locus in the comparative example.

以下に、本発明にかかる軌跡制御装置の実施の形態を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。   Embodiments of a trajectory control apparatus according to the present invention will be described below in detail with reference to the drawings. Note that the present invention is not limited to the embodiments.

実施の形態.
実施の形態にかかる軌跡制御装置10について図1を用いて説明する。図1は、軌跡制御装置10の構成を示すブロック図である。
Embodiment.
A trajectory control apparatus 10 according to an embodiment will be described with reference to FIG. FIG. 1 is a block diagram showing the configuration of the trajectory control device 10.

機械の可動部が複数の可動軸により駆動される場合に、軌跡制御装置10は、複数の可動軸のモータを同時制御することによりその可動部の軌跡を制御する装置である。すなわち、軌跡制御装置10は、工作機械やレーザ加工機等の制御装置において、指令経路にかかわらず軌跡誤差を抑制し高速高精度加工を実現するための装置である。軌跡誤差は、指令経路に対して実際の応答軌跡がどれだけずれたかを示す誤差である。指令経路は、NCプログラム等の形式で機械の可動部の軌跡上の座標値として与えられる。また、指令された座標値間の補間方法(直線・円弧・スプライン等)および軌跡に沿った方向の移動速度すなわち送り速度も、NCプログラム等によって同時に与えられる。   When the movable portion of the machine is driven by a plurality of movable shafts, the trajectory control device 10 is a device that controls the trajectories of the movable portions by simultaneously controlling the motors of the plurality of movable shafts. That is, the trajectory control device 10 is a device for realizing high-speed and high-accuracy machining by suppressing a trajectory error regardless of a command path in a control device such as a machine tool or a laser processing machine. The locus error is an error indicating how much the actual response locus has deviated from the command path. The command path is given as a coordinate value on the trajectory of the movable part of the machine in the form of an NC program or the like. Further, the interpolation method (straight line, arc, spline, etc.) between the commanded coordinate values and the moving speed in the direction along the locus, that is, the feed speed are also given simultaneously by the NC program or the like.

補間・加減速演算部1は、外部から指令経路を与えられる。補間・加減速演算部1は、指令された座標値間を指定された方法で補間するとともに、指令経路に沿って別途指定された所定の加速度または加減速時定数で加速および減速させる演算を行う。すなわち、補間・加減速演算部1は、与えられた指令経路に対して補間・加減速を行う。これにより、補間・加減速演算部1は、加減速後補間経路(すなわち、補間・加減速された指令経路)を演算して軸分配部3及び補正ベクトル演算部5へ供給する。   The interpolation / acceleration / deceleration calculation unit 1 is given a command path from the outside. The interpolation / acceleration / deceleration calculation unit 1 interpolates between commanded coordinate values by a specified method, and performs an operation of accelerating and decelerating with a predetermined acceleration or acceleration / deceleration time constant specified separately along the command path. . That is, the interpolation / acceleration / deceleration calculation unit 1 performs interpolation / acceleration / deceleration for a given command path. Thereby, the interpolation / acceleration / deceleration calculation unit 1 calculates the post-acceleration / deceleration interpolation path (that is, the interpolated / accelerated / decelerated command path) and supplies it to the axis distribution unit 3 and the correction vector calculation unit 5.

軸分配部3は、機械の可動部が加減速後補間経路を通るように、機械の各可動軸の位置指令を演算する。本実施の形態では第1軸及び第2軸の2つの可動軸があるものとし、軸分配部3は、加減速後補間経路に応じて、第1軸の位置指令及び第2軸の位置指令を生成して補正ベクトル演算部5及び位置指令補正部4へ供給する。   The axis distributor 3 calculates the position command of each movable axis of the machine so that the movable part of the machine passes through the interpolation path after acceleration / deceleration. In the present embodiment, it is assumed that there are two movable axes, the first axis and the second axis, and the axis distributor 3 determines the position command for the first axis and the position command for the second axis according to the post-acceleration / deceleration interpolation path. Is supplied to the correction vector calculation unit 5 and the position command correction unit 4.

補正ベクトル演算部5は、加減速後補間経路を補間・加減速演算部1から受け、第1軸の位置指令及び第2軸の位置指令を軸分配部3から受ける。補正ベクトル演算部5は、加減速後補間経路と各可動軸の位置指令とに基づいて、応答軌跡の指令経路に対する軌跡誤差を補正するための補正ベクトルを演算して位置指令補正部4へ供給する。   The correction vector calculation unit 5 receives the post-acceleration / deceleration interpolation path from the interpolation / acceleration / deceleration calculation unit 1 and receives the first axis position command and the second axis position command from the axis distribution unit 3. The correction vector calculation unit 5 calculates a correction vector for correcting a trajectory error with respect to the command path of the response trajectory based on the post-acceleration / deceleration interpolation path and the position command of each movable axis, and supplies the correction vector to the position command correction unit 4. To do.

位置指令補正部4は、第1軸の位置指令及び第2軸の位置指令を軸分配部3から受け、補正ベクトルを補正ベクトル演算部5から受ける。位置指令補正部4は、各可動軸の位置指令に、補正ベクトルの各可動軸方向の成分を加算する。すなわち、位置指令補正部4は、補正ベクトルを用いて各可動軸の位置指令を補正する。これにより、位置指令補正部4は、各可動軸の補正後位置指令を演算して、第1軸補正後位置指令及び第2軸補正後位置指令をそれぞれ第1軸サーボ制御部6及び第2軸サーボ制御部7へ出力する。   The position command correction unit 4 receives a position command for the first axis and a position command for the second axis from the axis distribution unit 3, and receives a correction vector from the correction vector calculation unit 5. The position command correction unit 4 adds a component in the direction of each movable axis of the correction vector to the position command of each movable axis. That is, the position command correction unit 4 corrects the position command of each movable axis using the correction vector. Thereby, the position command correction unit 4 calculates the corrected position command for each movable axis, and outputs the first axis corrected position command and the second axis corrected position command to the first axis servo control unit 6 and the second axis command, respectively. Output to the axis servo controller 7.

第1軸サーボ制御部6は、第1軸の位置が第1軸補正後位置指令に追従するように、第1軸のモータ駆動トルクを生成して第1軸のモータへ出力する。すなわち、第1軸サーボ制御部6は、第1軸の位置が第1軸補正後位置指令に追従するように、第1軸のモータを制御する。   The first axis servo control unit 6 generates a motor driving torque for the first axis so that the position of the first axis follows the first axis corrected position command, and outputs the generated motor driving torque to the first axis motor. That is, the first axis servo controller 6 controls the first axis motor so that the position of the first axis follows the first axis corrected position command.

第2軸サーボ制御部7は、第2軸の位置が第2軸補正後位置指令に追従するように、第2軸のモータ駆動トルクを生成して第2軸のモータへ出力する。すなわち、第2軸サーボ制御部7は、第2軸の位置が第2軸補正後位置指令に追従するように、第2軸のモータを制御する。   The second axis servo control unit 7 generates a motor driving torque for the second axis and outputs it to the motor for the second axis so that the position of the second axis follows the second axis corrected position command. That is, the second axis servo control unit 7 controls the second axis motor so that the position of the second axis follows the second axis corrected position command.

第1軸サーボ制御部6および第2軸サーボ制御部7は同様の構成を有しており、そのブロック図を図2に示す。すなわち、第1軸サーボ制御部6および第2軸サーボ制御部7に相当するサーボ制御部11は、次のような構成要素を有する。   The first axis servo control unit 6 and the second axis servo control unit 7 have the same configuration, and a block diagram thereof is shown in FIG. That is, the servo control unit 11 corresponding to the first axis servo control unit 6 and the second axis servo control unit 7 has the following components.

サーボ制御部11へ入力された補正後位置指令は、減算器20でモデル位置が減算され、モデルゲイン乗算器21で第1のモデルゲインKが乗算され、減算器22でモデル速度が減算され、さらにモデルゲイン乗算器23で第2のモデルゲインKが乗算されてモデル加速度が生成され乗算器30へ出力される。また、積分器24でモデル加速度が積分されてモデル速度が生成され減算器22、積分器25、及び加減算器28へ出力される。積分器25でモデル速度が積分されてモデル位置が生成され減算器20及び減算器26へ出力される。補正後位置指令が入力され、モデル位置・モデル速度・モデル加速度が出力されるブロックを規範モデル12と呼ぶ。 The corrected position command input to the servo control unit 11 is subtracted from the model position by the subtracter 20, is multiplied by the first model gain K1 by the model gain multiplier 21, and the model speed is subtracted by the subtractor 22. Further, the model gain multiplier 23 multiplies the second model gain K 2 to generate a model acceleration, which is output to the multiplier 30. Further, the model acceleration is integrated by the integrator 24 to generate a model velocity, which is output to the subtractor 22, the integrator 25, and the adder / subtractor 28. The model speed is integrated by the integrator 25 to generate a model position, which is output to the subtracter 20 and the subtractor 26. A block in which the corrected position command is input and the model position / model speed / model acceleration is output is referred to as a reference model 12.

減算器26でモデル位置からモータ位置信号が減算されて位置誤差が生成され位置制御器27へ出力される。位置制御器27では位置誤差に対して比例制御等の制御が行われその結果が加減算器28へ出力される。加減算器28において位置制御器27からの出力にモデル速度が加算され、さらにモータ速度信号が減算されて速度誤差が生成され速度制御器29へ出力される。速度制御器29では速度誤差に対して比例・積分制御等の制御が行われその結果が加算器31へ出力される。乗算器30で、モデル加速度に制御対象のイナーシャに相当する値を乗算してモデルトルクが演算され加算器31へ出力される。加算器31で速度制御器29からの出力にモデルトルクが加算されてモータトルク信号が生成され、モータ駆動トルクとしてモータ32へ出力される。モータ32および負荷33を含む機械系13は、モータ駆動トルクにより駆動される。また、エンコーダ(図示せず)等によりモータ速度信号とモータ位置信号とが取得されサーボ制御部11へ出力される。   A motor position signal is subtracted from the model position by the subtractor 26 to generate a position error and output it to the position controller 27. The position controller 27 performs control such as proportional control on the position error, and the result is output to the adder / subtractor 28. In the adder / subtractor 28, the model speed is added to the output from the position controller 27, and the motor speed signal is further subtracted to generate a speed error, which is output to the speed controller 29. The speed controller 29 performs control such as proportional / integral control on the speed error, and outputs the result to the adder 31. The multiplier 30 multiplies the model acceleration by a value corresponding to the inertia to be controlled, calculates the model torque, and outputs it to the adder 31. The adder 31 adds the model torque to the output from the speed controller 29 to generate a motor torque signal, which is output to the motor 32 as a motor drive torque. The mechanical system 13 including the motor 32 and the load 33 is driven by motor driving torque. Further, a motor speed signal and a motor position signal are acquired by an encoder (not shown) or the like and output to the servo control unit 11.

このサーボ制御部11は、規範モデル12を用いた2自由度制御器であり、指令に対する追従性と外乱に対する応答性とを独立して設計することができる。位置指令に対するモータ位置の追従性は、第1のモデルゲインKおよび第2のモデルゲインKで決まり、外乱に対するモータ位置の応答性は、位置制御器27および速度制御器29の設計で決まる。したがって、モータ位置の応答は、実際の制御対象(機械系13)の特性にかかわらず、規範モデル12の出力であるモデル位置に追従するように制御される。 The servo control unit 11 is a two-degree-of-freedom controller using the reference model 12, and can be designed independently of followability to a command and responsiveness to a disturbance. The followability of the motor position with respect to the position command is determined by the first model gain K 1 and the second model gain K 2 , and the response of the motor position to the disturbance is determined by the design of the position controller 27 and the speed controller 29. . Therefore, the response of the motor position is controlled so as to follow the model position, which is the output of the reference model 12, regardless of the characteristics of the actual control target (mechanical system 13).

つぎに、各部の演算の詳細について説明する。補間・加減速演算部1は、指令された座標値間を指定された方法で補間し、さらに加減速演算を行って、指令経路上における補間周期ごとの指令位置を演算する。補間の方法には、直線補間・円弧補間・スプライン補間などがある。補間周期は、軌跡制御装置の仕様として定められた一定の周期であり、一般には数ms以下の短い周期を用いる。補間周期が短いほうが、精度の高い軌跡制御が可能となるが、演算に用いるプロセッサ等の処理負荷が大きくなる。補間・加減速の結果得られた補間周期ごとの点を加減速後補間点と呼び、加減速後補間点により形成される経路を加減速後補間経路と呼ぶ。加減速演算は、指令加速度が機械の各可動軸の許容加速度を超えて過大となるのを防ぐためのものであり、速度の変化が別途パラメータ等で指定された加速度以下になるように補間経路上の補間点を演算しなおすものである。すなわち、始点から終点までを移動する場合において、始点直後は速度が漸増するように補間点間の間隔を短くし、終点直後では速度が漸減するように補間点間の間隔を短くするものである。この加減速演算の詳細を、図3に示す例を用いて説明する。   Next, details of the calculation of each unit will be described. The interpolation / acceleration / deceleration calculation unit 1 interpolates between the commanded coordinate values by a designated method, further performs acceleration / deceleration calculation, and calculates a command position for each interpolation cycle on the command path. Examples of interpolation methods include linear interpolation, circular interpolation, and spline interpolation. The interpolation cycle is a fixed cycle determined as the specification of the trajectory control device, and generally a short cycle of several ms or less is used. The shorter the interpolation cycle, the more accurate trajectory control is possible, but the processing load on the processor or the like used for the calculation is increased. A point for each interpolation cycle obtained as a result of the interpolation / acceleration / deceleration is called an interpolation point after acceleration / deceleration, and a path formed by the interpolation points after acceleration / deceleration is called an interpolation path after acceleration / deceleration. The acceleration / deceleration calculation is to prevent the commanded acceleration from exceeding the allowable acceleration of each movable axis of the machine, and the interpolation path so that the change in speed is less than the acceleration specified by a separate parameter. The upper interpolation point is recalculated. That is, when moving from the start point to the end point, the interval between the interpolation points is shortened so that the speed gradually increases immediately after the start point, and the interval between the interpolation points is shortened so that the speed gradually decreases immediately after the end point. . Details of this acceleration / deceleration calculation will be described using the example shown in FIG.

図3(a)に示すように、始点P1=(R,0)から終点P2=(0,R)まで反時計回りに円弧補間を行う場合について考える。まず、始点P1から、任意の時刻tにおける経路上の点P(t)までの指令経路に沿った距離をq(t)とする。始点から終点までの移動長さをLとすると、L=πR/2となる。次に、q(t)の時間微分を接線方向速度q’(t)として、q’(t)の加減速パターンを図3(b)のように定める。これは、高さが指令送り速度F、面積が始点から終点までの移動長さLとなる台形状のパターンであり、加速部および減速部の傾きは、別途パラメータ等で指定された加速度となるように定めるものである。ここでは、加速および減速は直線状に行っているが、S字状にして機械の動きをさらになめらかにする場合もある。接線方向速度q’(t)を時間積分することにより加減速後の移動長さq(t)が求まる。Δtを補間周期として、t=NΔt(Nは正の整数)における加減速後移動長さq(NΔt)を求め、始点位置P1から指令経路に沿って長さq(NΔt)進んだ点が、N番目の加減速後補間点となる。加減速後補間点から形成される加減速後補間経路は、図3(c)のようになる。加減速後補間経路の情報としては、加減速後移動長さq(t)、補間の種類(直線補間・円弧補間・スプライン補間など)、補間に必要なパラメータ(始点位置、終点位置、その他の形状パラメータ)が含まれる。その他の形状パラメータとしては、円弧補間の場合は中心位置と半径、スプライン補間の場合はスプライン関数の係数といったパラメータがある。   Consider a case where circular interpolation is performed counterclockwise from the start point P1 = (R, 0) to the end point P2 = (0, R) as shown in FIG. First, let q (t) be the distance along the command path from the start point P1 to the point P (t) on the path at an arbitrary time t. If the movement length from the start point to the end point is L, L = πR / 2. Next, an acceleration / deceleration pattern of q ′ (t) is determined as shown in FIG. 3B with the time derivative of q (t) as a tangential velocity q ′ (t). This is a trapezoidal pattern in which the height is the command feed speed F and the area is the movement length L from the start point to the end point, and the inclinations of the acceleration unit and the deceleration unit are accelerations separately specified by parameters or the like. It is determined as follows. Here, acceleration and deceleration are performed in a straight line, but there are also cases where the movement of the machine is further smoothed by using an S shape. The movement length q (t) after acceleration / deceleration is obtained by time-integrating the tangential speed q '(t). Using Δt as an interpolation cycle, a post-acceleration / deceleration movement length q (NΔt) at t = NΔt (N is a positive integer) is obtained, and a point advanced by a length q (NΔt) from the start point position P1 along the command path is It becomes the interpolation point after the Nth acceleration / deceleration. The post-acceleration / deceleration interpolation path formed from the post-acceleration / deceleration interpolation points is as shown in FIG. The post-acceleration / deceleration interpolation path information includes post-acceleration / deceleration movement length q (t), interpolation type (linear interpolation, circular interpolation, spline interpolation, etc.), parameters required for interpolation (start point position, end point position, etc. Shape parameters). As other shape parameters, there are parameters such as a center position and a radius in the case of circular interpolation, and a coefficient of a spline function in the case of spline interpolation.

軸分配部3では、加減速後補間経路上における加減速後補間点の各軸の座標値を求める。図3に示す例の場合、指令円弧経路上における補間点の始点からの偏角θは、移動長さq(t)を指令半径Rで除した値である(θ=q(t)/R)ため、第1軸の位置指令xc1(t)および第2軸の位置指令xc2(t)を成分にもつ位置指令ベクトルx(t)は次式で表される。

Figure 2012234390
The axis distribution unit 3 obtains the coordinate value of each axis of the post-acceleration / deceleration interpolation point on the post-acceleration / deceleration interpolation path. In the example shown in FIG. 3, the deflection angle θ from the starting point of the interpolation point on the command arc path is a value obtained by dividing the movement length q (t) by the command radius R (θ = q (t) / R). Therefore , the position command vector x c (t) having the first axis position command x c1 (t) and the second axis position command x c2 (t) as components is expressed by the following equation.
Figure 2012234390

補正ベクトル演算部5では、各軸の位置指令と、加減速演算で得られた接線方向速度の変化とに応じて、サーボ系応答軌跡の指令経路に対する軌跡誤差ベクトルを演算し、その軌跡誤差ベクトルを打ち消すように補正ベクトルを演算する。軌跡誤差ベクトルは、指令経路の進行方向に垂直な方向に、指令加速度の法線方向成分の大きさに比例して生じる性質がある。この比例係数kは、指令加速度と軌跡誤差量との関係を実測して求める方法のほか、円弧指令時の定常状態における軌跡誤差量の理論値と法線方向加速度との比を解析的に求める方法により設定する。後者の方法では、まず円弧指令時の軌跡誤差量を、指令半径からサーボ系の周波数応答伝達関数の絶対値に指令半径を乗じた値を引くことにより求め、この軌跡誤差量を指令加速度で除することにより求める。   The correction vector calculation unit 5 calculates a trajectory error vector for the command path of the servo system response trajectory in accordance with the position command of each axis and the change in the tangential speed obtained by the acceleration / deceleration calculation. The correction vector is calculated so as to cancel. The trajectory error vector has a property that occurs in a direction perpendicular to the traveling direction of the command path in proportion to the magnitude of the normal direction component of the command acceleration. The proportional coefficient k is obtained by measuring the relationship between the commanded acceleration and the trajectory error amount, and analytically obtaining the ratio between the theoretical value of the trajectory error amount in the steady state at the time of the arc command and the normal direction acceleration. Set by the method. In the latter method, the trajectory error amount at the time of circular arc command is first obtained by subtracting the command radius from the command radius and the absolute value of the frequency response transfer function of the servo system, and this trajectory error amount is divided by the command acceleration. To find out.

式で表すと、下記の式(2)のようになる。半径R、各速度ωの円弧指令時の場合、軌跡誤差量の指令加速度に対する比例係数kは、サーボ系の伝達関数G(s)を用いて下記の式(2)で与えられる。

Figure 2012234390
ここで、jは虚数単位である。図2に示したサーボ系では、前述のようにモータ位置の応答は、実際の制御対象(機械系13)の特性にかかわらず、規範モデル12の出力であるモデル位置に追従するように制御される。そのため、サーボ系の伝達関数G(s)は規範モデル12の伝達関数G(s)に一致する。規範モデル12の伝達関数G(s)は次の式(3)で表される。
Figure 2012234390
When expressed by an equation, the following equation (2) is obtained. In the case of an arc command with a radius R and each speed ω, the proportional coefficient k of the trajectory error amount with respect to the commanded acceleration is given by the following equation (2) using the transfer function G (s) of the servo system.
Figure 2012234390
Here, j is an imaginary unit. In the servo system shown in FIG. 2, as described above, the response of the motor position is controlled so as to follow the model position, which is the output of the reference model 12, regardless of the characteristics of the actual control target (mechanical system 13). The Therefore, the transfer function G (s) of the servo system matches the transfer function G m (s) of the reference model 12. The transfer function G m (s) of the reference model 12 is expressed by the following equation (3).
Figure 2012234390

第2のモデルゲインKが第1のモデルゲインKの4倍である場合、すなわちK=4×Kである場合の、軌跡誤差量の指令加速度に対する比例係数kを求めると、次の式(4)のようになる。

Figure 2012234390
すなわち、軌跡誤差ベクトルは、法線方向加速度ベクトルa(t)にサーボ系のゲインの二乗に反比例するような係数kをかけた値となる。式で表すと、次の式(5)のようになる。
Figure 2012234390
法線方向加速度ベクトルa(t)は、指令位置ベクトルの2回微分である指令加速度ベクトルを、指令経路に垂直な方向に射影することにより求められる。式で表すと、次の式(6)となる。
Figure 2012234390
ただし、a(t)は指令加速度ベクトルd/dtであり、vは指令速度ベクトルdx/dtである。 When the second model gain K 2 is four times the first model gain K 1 , that is, when K 2 = 4 × K 1 , the proportionality coefficient k with respect to the commanded acceleration of the trajectory error amount is obtained. Equation (4) is obtained.
Figure 2012234390
That is, the trajectory error vector is a value obtained by multiplying the coefficient k as inversely proportional to the square of the gain of the servo system in the normal direction acceleration vector a n (t). When expressed by an equation, the following equation (5) is obtained.
Figure 2012234390
The normal direction acceleration vector a n (t) is obtained by projecting a command acceleration vector which is a second derivative of the command position vector in a direction perpendicular to the command path. This is expressed by the following equation (6).
Figure 2012234390
However, a (t) is a command acceleration vector d 2 x c / dt 2 , and v is a command speed vector dx c / dt.

送り速度が変化しない場合は、この軌跡誤差ベクトルを打ち消すために、軌跡誤差ベクトルの符号を反転させたベクトルを補正ベクトルとして演算すればよい。この軌跡誤差ベクトルを第1の補正ベクトルcとし、次の式(7)で表す。

Figure 2012234390
When the feed rate does not change, a vector obtained by inverting the sign of the trajectory error vector may be calculated as a correction vector in order to cancel the trajectory error vector. This trajectory error vector is a first correction vector c 1 and is expressed by the following equation (7).
Figure 2012234390

一方、送り速度が変化する場合には、補正ベクトルの長さが理想的な長さと異なってくる。このずれは、接線方向速度の変化率すなわち接線方向加速度に概ね比例する性質がある。そこで、補間・加減速演算部1で演算した接線方向速度q’(t)を微分して接線方向加速度q’’(t)=dq/dtを求め、長さがこの接線方向加速度に比例し、方向が第1の補正ベクトルと一致するような第2の補正ベクトルを求める。第2の補正ベクトルを式で表すと、次の式(8)のようになる。

Figure 2012234390
接線方向加速度に対する比例係数α(所定係数)は調整パラメータとし、第1の補正ベクトルのみで補正を行った場合の接線方向加速度と軌跡とのずれ量の比率に基づいて調整を行う。さらに、応答軌跡の指令経路に対する軌跡誤差量が小さくなるように調整を行っても良い。ここで、加減速に伴う補正ベクトルの長さの理想的な長さのずれは、加速時と減速時とで異なった大きさとなる。そこで、接線方向加速度に対する比例係数αは、加速時と減速時とで異なった値を有するように設定する。加速時か減速時かは、接線方向加速度q’’(t)が正のときは加速、負のときは減速として判断することができる。また、注意点として、第1の補正ベクトルの大きさが0の場合、第2の補正ベクトルの計算式である式(8)は、分母が0となり計算不能となるが、この場合は法線方向加速度が0、すなわち軌跡誤差ベクトルe(t)が0である場合であり、本来補正を行う必要がない。そこで、第1の補正ベクトルの大きさが0の場合は、第2の補正ベクトルは0とする。以上で得られた第1の補正ベクトルと第2の補正ベクトルとの和を補正ベクトルとする。 On the other hand, when the feed rate changes, the length of the correction vector is different from the ideal length. This deviation has a property that is approximately proportional to the rate of change of the tangential velocity, that is, the tangential acceleration. Therefore, the tangential speed q ′ (t) calculated by the interpolation / acceleration / deceleration calculation unit 1 is differentiated to obtain the tangential acceleration q ″ (t) = d 2 q / dt 2 , and the length is the tangential acceleration. And a second correction vector whose direction matches the first correction vector is obtained. When the second correction vector is expressed by an equation, the following equation (8) is obtained.
Figure 2012234390
The proportional coefficient α (predetermined coefficient) with respect to the tangential acceleration is used as an adjustment parameter, and adjustment is performed based on the ratio of the amount of deviation between the tangential acceleration and the locus when correction is performed using only the first correction vector. Further, adjustment may be performed so that the amount of trajectory error with respect to the command path of the response trajectory becomes small. Here, the ideal deviation of the length of the correction vector accompanying acceleration / deceleration has different magnitudes during acceleration and deceleration. Therefore, the proportionality coefficient α with respect to the tangential acceleration is set so as to have different values during acceleration and deceleration. Whether the vehicle is accelerating or decelerating can be determined as accelerating when the tangential acceleration q ″ (t) is positive, and decelerating when negative. Also, as a cautionary note, when the magnitude of the first correction vector is 0, equation (8), which is the calculation formula for the second correction vector, cannot be calculated because the denominator is 0. In this case, the normal line This is a case where the directional acceleration is 0, that is, the trajectory error vector e (t) is 0, and originally no correction is necessary. Therefore, when the magnitude of the first correction vector is zero, the second correction vector is zero. The sum of the first correction vector and the second correction vector obtained as described above is used as a correction vector.

また、位置指令補正部4においては、加減速後補間経路の形状が直線である場合には、補正ベクトルを0とする。すなわち、補間の種類が直線補間であり、移動長さが十分長い場合には、補正ベクトルを0とする。これは、直線部分で加減速する場合には、本来軌跡誤差が生じないため、接線方向加速度に比例する補正量を加算すると逆に軌跡誤差が生じてしまうためである。また、補間や加減速演算の丸め誤差などの影響で、実際には法線方向加速度が0の場合であっても法線方向加速度が0でないと判定され、第2の補正ベクトルが加算されてしまい補正が過剰となる可能性があるが、もとの経路情報を利用することで過剰な補正を防ぐことができ、より正確に補正を行うことができる。   In the position command correction unit 4, the correction vector is set to 0 when the post-acceleration / deceleration interpolation path shape is a straight line. That is, when the type of interpolation is linear interpolation and the movement length is sufficiently long, the correction vector is set to zero. This is because, when accelerating / decelerating in the straight line portion, a trajectory error does not naturally occur, and therefore a trajectory error occurs conversely when a correction amount proportional to the tangential acceleration is added. Also, due to the influence of rounding errors in interpolation and acceleration / deceleration calculations, even if the normal acceleration is actually 0, it is determined that the normal acceleration is not 0, and the second correction vector is added. Although there is a possibility that the correction becomes excessive, it is possible to prevent the excessive correction by using the original route information, and it is possible to perform the correction more accurately.

位置指令補正部4では、第1軸位置指令および第2軸位置指令に、補正ベクトルの第1軸成分と第2軸成分をそれぞれ加算することで、第1軸補正後位置指令と第2軸補正後位置指令とをそれぞれ演算する。   The position command correction unit 4 adds the first axis component and the second axis component of the correction vector to the first axis position command and the second axis position command, respectively, so that the first axis corrected position command and the second axis component are added. The corrected position command is calculated.

次に、本実施の形態による効果を、数値シミュレーションの結果を用いて説明する。   Next, the effect by this Embodiment is demonstrated using the result of a numerical simulation.

半径5mm、送り速度6m/min(=0.1m/s)の反時計回りの円弧指令を与えた場合の応答軌跡をシミュレーションにより求める。接線方向加速度は2m/sとし、サーボ制御部11の規範モデルゲインKは100rad/sとした。図4(a)はその際の接線方向速度の時間波形を示し、図4(b)は接線方向加速度の時間波形を示す。接線方向加速度は、図4(b)に示すように、始点付近の加速中は正の値、中間付近の定常状態では0、終点付近の減速中は負の値となる。 A response locus when a counterclockwise arc command having a radius of 5 mm and a feed speed of 6 m / min (= 0.1 m / s) is given is obtained by simulation. The tangential acceleration was 2 m / s 2, and the normative model gain K 1 of the servo control unit 11 was 100 rad / s. FIG. 4A shows a time waveform of the tangential velocity at that time, and FIG. 4B shows a time waveform of the tangential acceleration. As shown in FIG. 4B, the tangential acceleration has a positive value during acceleration near the start point, 0 in a steady state near the middle, and a negative value during deceleration near the end point.

図6は、比較例の方法で補正を行った場合の応答軌跡である。この比較例では、加減速を行う前の指令位置に対して軌跡誤差を打ち消すような補正量を加算して指令位置の補正を行った後に、補間・加減速を行っている。半径方向に軌跡誤差を拡大してプロットしており、1目盛りが10μmの軌跡誤差に相当する。始点付近・終点付近を除いた定常状態における軌跡誤差はほぼ0となっているが、始点・終点付近では40μmの軌跡誤差が生じている。   FIG. 6 is a response trajectory when correction is performed by the method of the comparative example. In this comparative example, interpolation / acceleration / deceleration is performed after correcting the command position by adding a correction amount that cancels the locus error to the command position before acceleration / deceleration. The locus error is enlarged and plotted in the radial direction, and one scale corresponds to a locus error of 10 μm. The trajectory error in the steady state excluding the vicinity of the start point and the end point is almost zero, but a trajectory error of 40 μm is generated near the start point and the end point.

一方、図5は、本実施の形態で補正を行った場合の応答軌跡を示している。ここでは、接線方向加速度に対する係数αは、加速時は3×10−6、減速時は2×10−6とした。図6より、始点・終点付近の軌跡誤差が5μm程度に抑制されていることがわかる。 On the other hand, FIG. 5 shows a response trajectory when correction is performed in the present embodiment. Here, the coefficient α for the tangential acceleration is 3 × 10 −6 during acceleration and 2 × 10 −6 during deceleration. From FIG. 6, it can be seen that the trajectory error in the vicinity of the start point / end point is suppressed to about 5 μm.

以上のように、実施の形態では、補間・加減速演算部1が指令経路に対して補間・加減速を行い、補正ベクトル演算部5が、補間・加減速された指令経路(加減速後補間経路)に基づいて補正ベクトルを演算する。これにより、指令経路上における指令点の間で曲率や加速度が変化する場合においても、応答軌跡が指令経路に正確に追従するような補正を行うことができる。したがって、加減速の影響により送り速度が過渡的に変化するような場合でも軌跡誤差を抑制できる。   As described above, in the embodiment, the interpolation / acceleration / deceleration calculation unit 1 performs interpolation / acceleration / deceleration on the command path, and the correction vector calculation unit 5 performs the interpolation / acceleration / deceleration command path (interpolation after acceleration / deceleration). The correction vector is calculated based on (path). Thereby, even when the curvature and acceleration change between command points on the command path, it is possible to perform correction so that the response trajectory accurately follows the command path. Therefore, the trajectory error can be suppressed even when the feed rate changes transiently due to the influence of acceleration / deceleration.

また、実施の形態では、補正ベクトル演算部5が、第1軸位置指令及び第2軸位置指令と、加減速後補間経路における接線方向の移動量の変化とに基づいて、軌跡誤差ベクトルを演算し、その軌跡誤差ベクトルを打ち消すように第1の補正ベクトルを演算し、第1の補正ベクトルを用いて補正ベクトルを演算する。これにより、指令経路上における指令点の間で曲率や加速度が変化する場合においても、軌跡誤差を打ち消すように補正を行うことができ、応答軌跡が指令経路に正確に追従するような補正を行うことができる。   In the embodiment, the correction vector calculation unit 5 calculates the trajectory error vector based on the first axis position command and the second axis position command and the change in the tangential direction movement amount in the post-acceleration / deceleration interpolation path. Then, the first correction vector is calculated so as to cancel the trajectory error vector, and the correction vector is calculated using the first correction vector. As a result, even when the curvature or acceleration changes between command points on the command path, correction can be performed so as to cancel the trajectory error, and correction is performed so that the response path accurately follows the command path. be able to.

また、実施の形態では、補正ベクトル演算部5が、第1の補正ベクトルに加えて、第1の補正ベクトルと同じ方向を有するとともに加減速後補間経路における接線方向加速度に所定係数を乗じた長さを有する第2の補正ベクトルを演算し、第1の補正ベクトルと第2の補正ベクトルとを加算することで補正ベクトルを演算する。このため、加減速により送り速度が変化する場合にも、応答軌跡が指令経路により正確に追従するような補正を行うことができる。   In the embodiment, in addition to the first correction vector, the correction vector calculation unit 5 has the same direction as the first correction vector, and the tangential acceleration in the post-acceleration / deceleration interpolation path is multiplied by a predetermined coefficient. A correction vector is calculated by calculating a second correction vector having a length and adding the first correction vector and the second correction vector. For this reason, even when the feed rate changes due to acceleration / deceleration, it is possible to perform correction so that the response locus accurately follows the command path.

また、実施の形態では、第2の補正ベクトルの長さを接線方向加速度の所定係数倍とする。これにより、加減速部分においてもより正確に補正を行うことができ、軌跡に生じるひずみを抑制することができる。   In the embodiment, the length of the second correction vector is set to a predetermined coefficient times the tangential acceleration. Thereby, it is possible to correct more accurately in the acceleration / deceleration portion, and it is possible to suppress distortion generated in the locus.

さらに、実施の形態では、第2の補正ベクトルの演算時に、加速時と減速時とで接線方向加速度に乗ずる係数を変える。これにより、加減時と減速時とでサーボ系の特性によって軌跡のひずみ方が異なる場合にも、正確に補正を行うことができる。   Furthermore, in the embodiment, when calculating the second correction vector, the coefficient by which the tangential acceleration is multiplied is changed between acceleration and deceleration. As a result, even when the method of distortion of the trajectory differs depending on the characteristics of the servo system during adjustment and deceleration, correct correction can be performed.

また、直線部分で加減速する場合には、本来軌跡誤差が生じないため、接線方向加速度に比例する補正量を加算すると逆に軌跡誤差が生じてしまうが、実施の形態では、このような場合には補正を行わないようにする。すなわち、位置指令補正部4は、補間・加減速された指令経路(加減速後補間経路)に基づいて、指令経路が曲線か直線かを判断し、直線と判断した場合に補正ベクトルを0とする。これにより、直線部分においても軌跡精度を保つことができる。また、補間や加減速演算の丸め誤差などの影響で、第2の補正ベクトルが過剰に出力される可能性があるが、もとの経路情報を利用することで第2の補正ベクトルが過剰となるのを防ぎ、より正確に補正を行うことができる。   In addition, when accelerating / decelerating in a straight line portion, a trajectory error is not originally generated, so adding a correction amount proportional to the tangential acceleration results in a trajectory error. In the embodiment, in this case, Do not make any corrections. That is, the position command correction unit 4 determines whether the command path is a curve or a straight line based on the interpolated / accelerated / decelerated command path (interpolated path after acceleration / deceleration). To do. Thereby, the trajectory accuracy can be maintained even in the straight line portion. Further, the second correction vector may be output excessively due to the influence of rounding error of interpolation or acceleration / deceleration calculation, but the second correction vector becomes excessive by using the original path information. Can be corrected, and correction can be performed more accurately.

なお、実施の形態では、可動軸の数が2(第1軸及び第2軸)としていたが、可動軸の数が3以上の場合であってもよい。サーボ系応答軌跡ベクトル、誤差ベクトル、補正ベクトルを2次元ではなく3以上の次元のベクトルとすることで、同様の補正を行うことができる。   In the embodiment, the number of movable axes is two (first axis and second axis), but the number of movable axes may be three or more. Similar correction can be performed by setting the servo system response trajectory vector, error vector, and correction vector to vectors of three or more dimensions instead of two dimensions.

また、本実施の形態では、軌跡誤差ベクトルを法線方向指令加速度から演算したが、応答軌跡をシミュレーションにより求め、指令経路との間のずれから軌跡誤差を求めるようにしてもよい。このようにすることで、プロセッサの演算負荷は必要となるものの、より正確に軌跡誤差ベクトルを求めることが可能となる。   In this embodiment, the trajectory error vector is calculated from the normal direction command acceleration. However, the response trajectory may be obtained by simulation, and the trajectory error may be obtained from a deviation from the command path. By doing so, although the calculation load of the processor is required, it is possible to obtain the trajectory error vector more accurately.

以上のように、本発明にかかる軌跡制御装置は、工作機械やレーザ加工機等の機械の稼動部の軌跡を制御することに有用である。   As described above, the trajectory control device according to the present invention is useful for controlling the trajectory of an operating part of a machine such as a machine tool or a laser processing machine.

1 補間・加減速演算部
3 軸分配部
4 位置指令補正部
5 補正ベクトル演算部
6 第1軸サーボ制御部
7 第2軸サーボ制御部
10 軌跡制御装置
11 サーボ制御部
12 規範モデル
13 機械系
20 減算器
21 モデルゲイン乗算器
22 減算器
23 モデルゲイン乗算器
24 積分器
25 積分器
26 減算器
27 位置制御器
28 加減算器
29 速度制御器
30 乗算器
31 加算器
32 モータ
33 負荷
DESCRIPTION OF SYMBOLS 1 Interpolation / acceleration / deceleration calculation part 3 Axis distribution part 4 Position command correction part 5 Correction vector calculation part 6 1st axis servo control part 7 2nd axis servo control part 10 Trajectory control apparatus 11 Servo control part 12 Reference model 13 Mechanical system 20 Subtractor 21 Model gain multiplier 22 Subtractor 23 Model gain multiplier 24 Integrator 25 Integrator 26 Subtractor 27 Position controller 28 Adder / subtractor 29 Speed controller 30 Multiplier 31 Adder 32 Motor 33 Load

Claims (5)

機械の可動部が複数の可動軸により駆動され、前記複数の可動軸を同時制御することにより前記可動部の軌跡を制御する軌跡制御装置であって、
与えられた指令経路に対して補間・加減速を行う補間・加減速演算部と、
前記補間・加減速された指令経路に応じて、前記複数の可動軸の位置指令を生成する軸分配部と、
前記複数の可動軸の位置指令と前記補間・加減速された指令経路とに基づいて、軌跡誤差を補正するための補正ベクトルを演算する補正ベクトル演算部と、
前記演算された補正ベクトルを用いて前記複数の可動軸の位置指令を補正する位置指令補正部と、
前記複数の可動軸の位置が前記補正された複数の可動軸の位置指令に追従するように、前記複数の可動軸を同時制御するサーボ制御部と、
を備えたことを特徴とする軌跡制御装置。
A trajectory control device for controlling a trajectory of the movable part by driving a movable part of a machine by a plurality of movable axes and simultaneously controlling the plurality of movable axes,
An interpolation / acceleration / deceleration calculation unit that performs interpolation / acceleration / deceleration for a given command path;
An axis distributor that generates position commands for the plurality of movable axes according to the interpolated / accelerated and decelerated command paths;
A correction vector calculation unit for calculating a correction vector for correcting a trajectory error based on the position commands of the plurality of movable axes and the command path subjected to the interpolation / acceleration and deceleration;
A position command correction unit that corrects position commands of the plurality of movable axes using the calculated correction vector;
A servo control unit that simultaneously controls the plurality of movable axes such that the positions of the plurality of movable axes follow the corrected position commands of the plurality of movable axes;
A trajectory control device characterized by comprising:
前記補正ベクトル演算部は、前記複数の可動軸の位置指令と、前記補間・加減速された指令経路における接線方向の移動量の変化とに基づいて、軌跡誤差ベクトルを演算し、前記軌跡誤差ベクトルを打ち消すように第1の補正ベクトルを演算し、前記第1の補正ベクトルを用いて前記補正ベクトルを演算する
ことを特徴とする請求項1に記載の軌跡制御装置。
The correction vector calculation unit calculates a trajectory error vector based on a position command of the plurality of movable axes and a change in a tangential movement amount in the interpolated / accelerated / decelerated command path, and the trajectory error vector The trajectory control device according to claim 1, wherein a first correction vector is calculated so as to cancel and the correction vector is calculated using the first correction vector.
前記補正ベクトル演算部は、前記第1の補正ベクトルに、前記第1の補正ベクトルと同じ方向を有するとともに接線方向加速度に所定係数を乗じた長さを有する第2の補正ベクトルを加算して、前記補正ベクトルを演算する
ことを特徴とする請求項2に記載の軌跡制御装置。
The correction vector calculation unit adds a second correction vector having the same direction as the first correction vector and a length obtained by multiplying a tangential acceleration by a predetermined coefficient to the first correction vector, The trajectory control device according to claim 2, wherein the correction vector is calculated.
前記所定係数は、加速時と減速時とで異なる値を有する
ことを特徴とする請求項3に記載の軌跡制御装置。
The trajectory control device according to claim 3, wherein the predetermined coefficient has different values between acceleration and deceleration.
前記位置指令補正部は、前記補間・加減速された指令経路に基づいて、指令経路が曲線か直線かを判断し、直線と判断した場合に前記補正ベクトルを0とする
ことを特徴とする請求項1から4のいずれか1項に記載の軌跡制御装置。
The position command correction unit determines whether the command path is a curve or a straight line based on the interpolated / accelerated / decelerated command path, and sets the correction vector to 0 when it is determined to be a straight line. Item 5. The trajectory control device according to any one of Items 1 to 4.
JP2011102887A 2011-05-02 2011-05-02 Trajectory control device Expired - Fee Related JP5679898B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011102887A JP5679898B2 (en) 2011-05-02 2011-05-02 Trajectory control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011102887A JP5679898B2 (en) 2011-05-02 2011-05-02 Trajectory control device

Publications (2)

Publication Number Publication Date
JP2012234390A true JP2012234390A (en) 2012-11-29
JP5679898B2 JP5679898B2 (en) 2015-03-04

Family

ID=47434646

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011102887A Expired - Fee Related JP5679898B2 (en) 2011-05-02 2011-05-02 Trajectory control device

Country Status (1)

Country Link
JP (1) JP5679898B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406095A (en) * 2016-10-26 2017-02-15 北京航空航天大学 Trajectory tracking control method for input-output asymmetrically limited full-drive surface ship
CN112325907A (en) * 2020-11-06 2021-02-05 北京配天技术有限公司 Method, device, equipment and medium for testing robot path planning algorithm

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06282323A (en) * 1993-03-29 1994-10-07 Fanuc Ltd Method for controlling servo motor for compensating interpolated acceleration/deceleration
JPH06282321A (en) * 1992-01-16 1994-10-07 Shin Nippon Koki Kk Method and device for converting/preparing numerical control program for machine tool and numerically controlled machine tool

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06282321A (en) * 1992-01-16 1994-10-07 Shin Nippon Koki Kk Method and device for converting/preparing numerical control program for machine tool and numerically controlled machine tool
JPH06282323A (en) * 1993-03-29 1994-10-07 Fanuc Ltd Method for controlling servo motor for compensating interpolated acceleration/deceleration

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406095A (en) * 2016-10-26 2017-02-15 北京航空航天大学 Trajectory tracking control method for input-output asymmetrically limited full-drive surface ship
CN112325907A (en) * 2020-11-06 2021-02-05 北京配天技术有限公司 Method, device, equipment and medium for testing robot path planning algorithm
CN112325907B (en) * 2020-11-06 2023-06-06 北京配天技术有限公司 Method, device, equipment and medium for testing robot path planning algorithm

Also Published As

Publication number Publication date
JP5679898B2 (en) 2015-03-04

Similar Documents

Publication Publication Date Title
JP5762625B2 (en) Trajectory control device
JP5340486B2 (en) Trajectory control device
JP5139230B2 (en) Collision prevention device in numerical control device
JP5366840B2 (en) Trajectory control device
US9678500B2 (en) Machining program creating device numerical control device, machining system, machining program creating method, numerical control method, and machining program
JP5417392B2 (en) Numerical controller
US11175647B2 (en) Motor controller
JP6450732B2 (en) Numerical controller
US10627807B2 (en) Motor controller
JP2012022404A (en) Tool locus display apparatus with deceleration factor identification means for machine tool
JP2016133987A (en) Numerical control device and control method
JP2009110492A (en) Position controller
JP5919346B2 (en) Motor controller for correcting inter-axis interference
JPH0378006A (en) Acceleration and deceleration control method for numerical controller
JP5679898B2 (en) Trajectory control device
JP2017084239A (en) Numerical controller performing speed control by curvature and variation
US10814482B2 (en) Robot controller
CN111290332A (en) Numerical controller
US20180364678A1 (en) Computer readable information recording medium, evaluation method, and control device
JP5573664B2 (en) Numerical control apparatus, movement control method, movement control program, and storage medium
CN111290338B (en) Numerical controller
JP4137321B2 (en) Mobile device
JPWO2022158428A5 (en)
JP5925066B2 (en) Motor drive control device
JPH07210225A (en) Numerical controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130926

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140626

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140708

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140827

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150106

R150 Certificate of patent or registration of utility model

Ref document number: 5679898

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees