JP7398947B2 - motor control device - Google Patents

motor control device Download PDF

Info

Publication number
JP7398947B2
JP7398947B2 JP2019227874A JP2019227874A JP7398947B2 JP 7398947 B2 JP7398947 B2 JP 7398947B2 JP 2019227874 A JP2019227874 A JP 2019227874A JP 2019227874 A JP2019227874 A JP 2019227874A JP 7398947 B2 JP7398947 B2 JP 7398947B2
Authority
JP
Japan
Prior art keywords
command
motor control
control device
position command
commands
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
JP2019227874A
Other languages
Japanese (ja)
Other versions
JP2021097516A (en
Inventor
聡 菅野
伸浩 末次
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Engineering Co Ltd
Original Assignee
Mitsubishi Electric Engineering Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Engineering Co Ltd filed Critical Mitsubishi Electric Engineering Co Ltd
Priority to JP2019227874A priority Critical patent/JP7398947B2/en
Publication of JP2021097516A publication Critical patent/JP2021097516A/en
Application granted granted Critical
Publication of JP7398947B2 publication Critical patent/JP7398947B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、コントローラからの位置指令に基づきモータの駆動制御を実施するモータ制御装置に関するものである。 The present invention relates to a motor control device that performs drive control of a motor based on a position command from a controller.

例えば、被加工物の加工、成型等を行う機械(以下、加工機械と称す)において使用されるモータ制御装置は、コントローラからの指令に基づいて加工機械内のモータの駆動制御を実施するように構成されている。 For example, a motor control device used in a machine that processes, molds, etc. a workpiece (hereinafter referred to as a processing machine) controls the drive of a motor within the processing machine based on instructions from a controller. It is configured.

加工機械において使用されているモータ制御装置では、加工機械の運転中に、停電を含む、モータを正常に駆動できない異常が発生する場合がある。このような場合を考慮して、モータ制御装置には、加工を強制的に終了させ、工具と被加工物とを干渉しない位置まで退避させ得る機能が必要とされている。 BACKGROUND ART In motor control devices used in processing machines, an abnormality, including a power outage, that prevents the motor from being driven normally may occur during operation of the processing machine. In consideration of such a case, the motor control device is required to have a function that can forcibly terminate machining and retreat the tool and workpiece to a position where they do not interfere.

なお、モータを正常に駆動できない異常とは、停電以外に、例えば、コントローラからの指令にモータを正しく追従させる駆動ができない場合などを挙げることができる。 Note that an abnormality in which the motor cannot be driven normally includes, in addition to a power outage, a case in which the motor cannot be driven to correctly follow a command from the controller.

異常発生時にあらかじめ設定しておいた退避時間もしくは退避距離により、停止を行わせる従来技術がある(例えば、特許文献1参照)。特許文献1では、コントローラからの指令を記憶しておき、異常発生時には記憶しておいた指令を使用して退避動作を行わせる技術が開示されている。 There is a conventional technique in which the vehicle is stopped according to a preset evacuation time or evacuation distance when an abnormality occurs (see, for example, Patent Document 1). Patent Document 1 discloses a technique in which a command from a controller is stored, and when an abnormality occurs, the stored command is used to perform an evacuation operation.

国際公開第2012/176268号International Publication No. 2012/176268

異常発生時において、加工を強制的に終了し、装置を即時停止させる従来技術による制御を行う場合には、加工機械へショックを与える可能性がある。すなわち、このような制御を行う場合には、機械部品を損傷する、被加工物に傷をつける、などのおそれがある。 When a conventional technique is used to forcibly terminate machining and immediately stop the apparatus when an abnormality occurs, there is a possibility that a shock may be given to the machining machine. That is, when performing such control, there is a risk that mechanical parts may be damaged or the workpiece may be scratched.

従来技術による制御では、あらかじめ設定しておいた退避時間もしくは退避距離に基づいて減速停止を行っている。この場合には、異常発生時のタイミングにより、加工機械へショックを与えることに起因する本来予定していた軌跡と異なる軌跡に沿って動作する可能性があり、被加工物に傷をつける問題がある。 In conventional control, the vehicle is decelerated and stopped based on a preset evacuation time or evacuation distance. In this case, depending on the timing when the abnormality occurs, there is a possibility that the processing machine will operate along a trajectory different from the originally planned trajectory due to the shock applied to the processing machine, which may cause damage to the workpiece. be.

さらに、特許文献1に記載の従来技術では、異常発生時には、直ちに指令を逆に折り返し辿る退避動作を行っている。このため、ショックが大きい場合には、被加工物、切削刃などの工具、あるいは加工機械を破損するという問題がある。 Furthermore, in the prior art described in Patent Document 1, when an abnormality occurs, an evacuation operation is immediately performed in which the command is reversely followed. Therefore, if the shock is large, there is a problem that the workpiece, tools such as cutting blades, or processing machines may be damaged.

本発明は、上記に鑑みてなされたものであり、異常発生時に、正常運転の軌跡に沿って減速停止させることのできるモータ制御装置を得ることを目的とする。 The present invention has been made in view of the above, and an object of the present invention is to obtain a motor control device that can decelerate and stop along the trajectory of normal operation when an abnormality occurs.

本発明に係るモータ制御装置は、指令周期ごとにコントローラから出力される位置指令を順次バッファリングし、最先にバッファリングされた第1の位置指令から、最後にバッファリングされた第Nの位置指令までのN個の位置指令を一時記憶するバッファと、バッファに一時記憶されたN個の位置指令に基づいて、指令周期ごとに基準位置指令を生成する指令生成部と、指令生成部で生成された基準位置指令を指令周期ごとに受信することで、制御対象であるモータを位置制御するモータ制御部と、コントローラから位置指令が正常に出力されない異常状態を検出する異常検出部とを備え、指令生成部は、異常検出部において異常状態が検出されていない場合には、N指令周期前にコントローラから出力されてバッファに一時記憶されている第1の位置指令を基準位置指令とし、異常検出部において異常状態が検出された場合には、異常状態が検出される前にバッファにバッファリングされたN個の位置指令を活用することで、N個の位置指令における隣接する位置指令の間に1以上の追加位置指令を補完することで補完位置指令を生成する補完処理を実行し、指令周期ごとに補完位置指令を基準位置指令とし、正常運転のたどる予定であった軌跡に沿ってモータを減速停止させるものである。 The motor control device according to the present invention sequentially buffers the position commands output from the controller in each command cycle, from the first position command buffered first to the Nth position command buffered last. A buffer that temporarily stores N position commands up to the command, a command generation unit that generates a reference position command for each command cycle based on the N position commands temporarily stored in the buffer, and a command generation unit that generates a reference position command. a motor control unit that controls the position of a motor to be controlled by receiving a reference position command that has been set every command cycle; and an abnormality detection unit that detects an abnormal state in which a position command is not normally output from the controller; If no abnormal state is detected in the abnormality detection section, the command generation section uses the first position command outputted from the controller N command cycles ago and temporarily stored in the buffer as a reference position command, and performs abnormality detection. When an abnormal state is detected in the part, by utilizing the N position commands buffered in the buffer before the abnormal state was detected, the difference between adjacent position commands among the N position commands is A complementary process is executed to generate a complementary position command by complementing one or more additional position commands, and the complementary position command is used as a reference position command for each command cycle, and the motor is moved along the trajectory that was planned for normal operation. It decelerates and stops.

本発明によれば、異常発生時に、正常運転の軌跡に沿って減速停止させることのできるモータ制御装置を得ることができる。 According to the present invention, it is possible to obtain a motor control device that can decelerate and stop along the trajectory of normal operation when an abnormality occurs.

本発明の実施の形態1に係るモータ制御装置を含むシステム構成図である。1 is a system configuration diagram including a motor control device according to Embodiment 1 of the present invention. 本発明の実施の形態1において、異常状態が検出された際の指令生成部による基準位置指令の生成方法に関する説明図である。FIG. 7 is an explanatory diagram regarding a method for generating a reference position command by a command generation unit when an abnormal state is detected in the first embodiment of the present invention. 本発明の実施の形態1に係るモータ制御装置において、(状態1)、(状態2)、(状態3)、(状態4)の順で処理が行われた際の速度と位置の遷移を示した図である。In the motor control device according to Embodiment 1 of the present invention, the transition of speed and position when processing is performed in the order of (state 1), (state 2), (state 3), and (state 4) is shown. This is a diagram. 本発明の実施の形態1に係るモータ制御装置が動作1を実行する状態を示した機能ブロック図である。FIG. 2 is a functional block diagram showing a state in which the motor control device according to Embodiment 1 of the present invention executes operation 1; 本発明の実施の形態1に係るモータ制御装置が動作1を実行した際の速度波形および位置波形の時間変化を示した図である。FIG. 3 is a diagram showing temporal changes in speed waveforms and position waveforms when the motor control device according to Embodiment 1 of the present invention executes operation 1; 本発明の実施の形態1に係るモータ制御装置が動作2を実行する状態を示した機能ブロック図である。FIG. 2 is a functional block diagram showing a state in which the motor control device according to Embodiment 1 of the present invention executes operation 2; 本発明の実施の形態1に係るモータ制御装置が動作2を実行した際の速度波形および位置波形の時間変化を示した図である。FIG. 6 is a diagram showing temporal changes in speed waveforms and position waveforms when the motor control device according to Embodiment 1 of the present invention executes operation 2; 本発明の実施の形態1に係るモータ制御装置が動作3を実行する状態を示した機能ブロック図である。FIG. 2 is a functional block diagram showing a state in which the motor control device according to Embodiment 1 of the present invention executes operation 3; 本発明の実施の形態1に係るモータ制御装置が動作3を実行した際の速度波形および位置波形の時間変化を示した図である。FIG. 6 is a diagram showing temporal changes in speed waveforms and position waveforms when the motor control device according to Embodiment 1 of the present invention executes operation 3; 本発明の実施の形態1に係るモータ制御装置が動作4を実行する状態を示した機能ブロック図である。FIG. 2 is a functional block diagram showing a state in which the motor control device according to Embodiment 1 of the present invention executes operation 4; 本発明の実施の形態1に係るモータ制御装置が動作4を実行した際の速度波形および位置波形の時間変化を示した図である。FIG. 6 is a diagram showing temporal changes in a speed waveform and a position waveform when the motor control device according to Embodiment 1 of the present invention executes operation 4; 本発明の実施の形態2に係るモータ制御装置を含むシステム構成図である。FIG. 2 is a system configuration diagram including a motor control device according to Embodiment 2 of the present invention. 本発明の実施の形態2に係るモータ制御装置において、2軸のモータで円運動を行っている際に異常状態が検出され、動作1~動作4が実行された際の位置遷移の軌跡を示した説明図である。In the motor control device according to Embodiment 2 of the present invention, an abnormal state is detected while the two-axis motor is performing circular motion, and the locus of position transition is shown when operations 1 to 4 are executed. FIG.

以下、本発明の実施の形態について図面を参照しながら説明する。 Embodiments of the present invention will be described below with reference to the drawings.

実施の形態1.
図1は、本発明の実施の形態1に係るモータ制御装置を含むシステム構成図である。本実施の形態1に係るモータ制御装置10は、コントローラ1からの位置指令に基づいて、モータ2の位置制御を行う。モータ制御装置10は、バッファ11、指令生成部12、モータ制御部13、異常検出部14、および過去記憶部15を備えて構成されている。
Embodiment 1.
FIG. 1 is a system configuration diagram including a motor control device according to Embodiment 1 of the present invention. The motor control device 10 according to the first embodiment performs position control of the motor 2 based on a position command from the controller 1. The motor control device 10 includes a buffer 11, a command generation section 12, a motor control section 13, an abnormality detection section 14, and a past storage section 15.

次に、コントローラ1の機能、およびモータ制御装置10に含まれる各構成の機能について説明する。コントローラ1は、モータ2の絶対位置としての位置指令を指令周期に従って順次出力する。モータ制御装置10内のバッファ11は、コントローラから指令周期ごとに出力される位置指令を順次バッファリングする。具体的には、バッファ11には、最新のN指令周期分の位置指令に相当するN個の位置指令がバッファリングされる。 Next, the functions of the controller 1 and the functions of each component included in the motor control device 10 will be explained. The controller 1 sequentially outputs position commands as the absolute position of the motor 2 according to the command cycle. A buffer 11 in the motor control device 10 sequentially buffers position commands output from the controller at each command cycle. Specifically, N position commands corresponding to the latest N command cycles are buffered in the buffer 11 .

ここで、以下の説明では、N個の位置指令のうち、最先にバッファリングされた位置指令を第1の位置指令と称し、最後にバッファリングされた位置指令を第Nの位置指令と称する。すなわち、バッファ11が満タンになった状態では、時系列的に最も古い位置指令が第1の位置指令として記憶され、時系列的に最も新しい位置指令が第Nの位置指令として記憶されている。 Here, in the following explanation, among the N position commands, the position command buffered first will be referred to as the first position command, and the position command buffered last will be referred to as the N-th position command. . That is, when the buffer 11 is full, the chronologically oldest position command is stored as the first position command, and the chronologically newest position command is stored as the Nth position command. .

そして、バッファ11は、指令周期ごとに、コントローラから出力される最新の位置指令を受信すると、一時記憶されているN個の位置指令を更新する。具体的には、すでにバッファ11内に記憶されている第Nの位置指令~第2の位置指令を、順次シフトして第(N-1)の位置指令~第1の位置指令に書き換えるとともに、最新の位置指令を第Nの位置指令として記憶する。すなわち、満タン後のバッファ11の動作は、FIFO(First In Fast Out:先入れ先出し)と同様である。 When the buffer 11 receives the latest position command output from the controller every command cycle, it updates the temporarily stored N position commands. Specifically, the Nth position command to second position command already stored in the buffer 11 are sequentially shifted and rewritten to the (N-1)th position command to first position command, and The latest position command is stored as the Nth position command. That is, the operation of the buffer 11 after being filled is similar to FIFO (First In Fast Out).

指令生成部12は、満タンとなった後のN個の位置指令を、指令周期ごとにバッファ11から順次読み出す。さらに、指令生成部12は、N個の位置指令に基づいて、指令周期ごとに基準位置指令を生成し、生成した基準位置指令をモータ制御部13に出力する。ここで、基準位置指令とは、モータ制御部13による位置制御に用いられるための位置目標値に相当する。 The command generating unit 12 sequentially reads N position commands after the tank is full from the buffer 11 in each command period. Further, the command generation unit 12 generates a reference position command for each command cycle based on the N position commands, and outputs the generated reference position command to the motor control unit 13. Here, the reference position command corresponds to a position target value used for position control by the motor control unit 13.

モータ制御部13は、指令生成部12で生成された基準位置指令を指令周期ごとの位置目標値として取得する。また、モータ制御部13は、制御対象であるモータ2の位置を検出するエンコーダ3から、位置フィードバック値を取得する。そして、モータ制御部13は、位置フィードバック値を位置目標値に一致させるようにフィードバック制御を実行することで、制御対象であるモータ2を位置制御する。 The motor control unit 13 acquires the reference position command generated by the command generation unit 12 as a position target value for each command cycle. Further, the motor control unit 13 acquires a position feedback value from the encoder 3 that detects the position of the motor 2 that is the controlled object. Then, the motor control unit 13 performs feedback control to make the position feedback value match the position target value, thereby controlling the position of the motor 2 that is the controlled object.

異常検出部14は、モータ制御装置10側で位置指令を正常に受信できない異常状態を検出する。この異常状態とは、コントローラ1から位置指令が正常に出力されないコントローラ1側の異常状態、あるいは、コントローラ1から正常に出力された位置指令がバッファ11で正常に受信できない通信異常状態を意味する。 The abnormality detection unit 14 detects an abnormal state in which the motor control device 10 cannot normally receive a position command. This abnormal state means an abnormal state on the controller 1 side in which a position command is not normally output from the controller 1, or a communication abnormal state in which a position command normally output from the controller 1 cannot be received normally by the buffer 11.

換言すると、異常検出部14により検出される異常状態とは、モータ制御装置10は正常に機能できるが、何らかの原因で正常な位置指令をモータ制御装置10側で受信できない状況を意味している。 In other words, the abnormal state detected by the abnormality detection unit 14 means a situation in which the motor control device 10 can function normally, but a normal position command cannot be received on the motor control device 10 side for some reason.

また、このような状況は、停電が発生したことでも生じる。このような停電時であっても、本実施の形態1に係るモータ制御装置10は、自身の余剰蓄積電力を使用できる場合には、停電発生前にバッファ11にバッファリングされた位置指令を用いて基準位置指令を生成し、運転を継続することができる。 This situation also occurs when a power outage occurs. Even during such a power outage, the motor control device 10 according to the first embodiment uses the position command buffered in the buffer 11 before the power outage if it can use its own surplus accumulated power. It is possible to generate a reference position command and continue operation.

異常検出部14で異常状態が検出された場合には、その情報が指令生成部12に送信される。なお、指令生成部12による基準位置指令の生成方法は、異常状態が検出された場合と、異常状態が検出されなかった場合とで異なり、詳細は後述する。 When an abnormal state is detected by the abnormality detection section 14, the information is transmitted to the command generation section 12. Note that the method of generating the reference position command by the command generation unit 12 differs depending on whether an abnormal state is detected or when no abnormal state is detected, and the details will be described later.

過去記憶部15は、指令周期ごとに指令生成部12からモータ制御部13に出力される基準位置指令を、過去の基準位置指令列として順次記憶する。過去記憶部15に記憶された過去の基準位置指令列は、正常運転の軌跡を遡ってモータ2を駆動制御することで退避動作を実行させる際に使用される。この退避動作の詳細は、後述する。 The past storage unit 15 sequentially stores reference position commands outputted from the command generation unit 12 to the motor control unit 13 in each command cycle as a past reference position command sequence. The past reference position command sequence stored in the past storage unit 15 is used when performing the evacuation operation by tracing back the trajectory of normal operation and controlling the drive of the motor 2. Details of this evacuation operation will be described later.

次に、指令生成部12による基準位置指令の生成方法について、次に3つの状態に分けて詳細に説明する。
(状態1)正常運転中
(状態2)異常状態が検出された後の減速中
(状態3)異常状態が検出され、減速停止が完了した後に実行される退避動作
(状態4)退避動作の減速中
Next, a method for generating a reference position command by the command generation unit 12 will be described in detail in three states.
(State 1) Normal operation (State 2) Decelerating after an abnormal condition is detected (State 3) Evacuation operation executed after an abnormal condition is detected and deceleration and stop is completed (State 4) Deceleration of evacuation operation During ~

<(状態1)正常運転中における基準位置指令の生成方法>
正常運転中とは、異常状態が検出される前の状態において、モータ制御装置10が、コントローラ1から順次出力される位置指令に基づいて、モータ2の位置制御を行う運転のことである。
<(State 1) Method of generating reference position command during normal operation>
During normal operation is an operation in which the motor control device 10 performs position control of the motor 2 based on position commands sequentially output from the controller 1 in a state before an abnormal state is detected.

上述したように、バッファ11の中には、N指令周期前に先入れされた第1の位置指令から、最新の位置指令として記憶された第Nの位置指令までのN個の位置指令が、指令周期ごとに更新されて記憶されている。そこで、指令生成部12は、正常運転中において、バッファ11内に指令周期ごとに更新されて一時記憶されているN個の位置指令の中から、FIFOのルールに従って第1の位置指令を取り出す。 As described above, in the buffer 11, there are N position commands from the first position command inputted N command cycles ago to the Nth position command stored as the latest position command. It is updated and stored every command cycle. Therefore, during normal operation, the command generation unit 12 extracts the first position command from among the N position commands temporarily stored in the buffer 11, updated every command cycle, according to the FIFO rule.

そして、指令生成部12は、この第1の位置指令を基準位置指令として、モータ制御部13に送信する。すなわち、指令生成部12は、N指令周期前にコントローラ1から出力された位置指令を、指令周期ごとに順次、基準位置指令に置き換えている。 Then, the command generation unit 12 transmits this first position command to the motor control unit 13 as a reference position command. That is, the command generation unit 12 sequentially replaces the position command output from the controller 1 N command cycles ago with the reference position command every command cycle.

換言すると、正常運転中におけるバッファ11内には、異常状態が検出される前に書き込まれ、まだモータ制御部13に送信していない未来の基準位置指令として、第2の位置指令から第Nの位置指令までの(N-1)個の位置指令が蓄えられていることとなる。その意味では、バッファ11は、モータ制御部13に対する未来バッファということができる。 In other words, in the buffer 11 during normal operation, the second to Nth position commands are written before the abnormal state is detected and are not yet sent to the motor control unit 13 as future reference position commands. This means that (N-1) position commands up to the position command are stored. In that sense, the buffer 11 can be said to be a future buffer for the motor control section 13.

<(状態2)異常状態が検出された後の減速中における基準位置指令の生成方法>
状態1により、基準位置指令が順次生成される正常運転中に、異常状態が検出されたときには、状態2に遷移し、減速停止が実行される。
<(State 2) How to generate a reference position command during deceleration after an abnormal condition is detected>
In state 1, when an abnormal state is detected during normal operation in which reference position commands are sequentially generated, a transition is made to state 2, and deceleration to a stop is executed.

状態2における減速運転では、モータ2を即時停止させることなしに、かつ、正常運転中にすでにバッファ11に蓄えられているN個の位置指令を活用することで、正常運転のたどる予定であった軌跡に沿って減速停止させることを特徴としている。そこで、正常運転のたどる予定であった軌跡に沿って減速停止させるための基準位置指令の生成方法について、次に説明する。 In the deceleration operation in state 2, normal operation was planned to be followed without immediately stopping the motor 2 and by utilizing the N position commands already stored in the buffer 11 during normal operation. It is characterized by decelerating and stopping along the trajectory. Therefore, a method for generating a reference position command for decelerating and stopping the vehicle along the trajectory that was planned to follow during normal operation will be described below.

図2は、本発明の実施の形態1において、異常状態が検出された際の指令生成部12による基準位置指令の生成方法に関する説明図である。指令生成部12は、異常検出部14において異常状態が検出された場合には、異常状態が検出される前にバッファ11にバッファリングされたN個の位置指令に基づいて、基準位置指令を生成する。 FIG. 2 is an explanatory diagram regarding a method for generating a reference position command by the command generation unit 12 when an abnormal state is detected in the first embodiment of the present invention. When an abnormal state is detected in the abnormality detection unit 14, the command generation unit 12 generates a reference position command based on the N position commands that were buffered in the buffer 11 before the abnormal state was detected. do.

その際に、指令生成部12は、第1の位置指令における隣接する位置指令の間に1以上の追加位置指令を補完することで、補完位置指令を生成する。図2において、□で示された位置指令は、異常状態が検出される前にバッファ11にバッファリングされた4つの初期計画指令の位置に相当する。 At this time, the command generation unit 12 generates a complementary position command by complementing one or more additional position commands between adjacent position commands in the first position command. In FIG. 2, the position commands marked □ correspond to the positions of the four initial plan commands that were buffered in the buffer 11 before the abnormal condition was detected.

より具体的には、図2の例では、以下のような4つの位置指令として、初期計画指令の位置がバッファリングされている。なお、位置指令の値は、位置が変化することが判ればいいため、無単位として示している。
第1の位置指令:位置20
第2の位置指令:位置21
第3の位置指令:位置22
第4の位置指令:位置23
More specifically, in the example of FIG. 2, the positions of the initial plan commands are buffered as the following four position commands. Note that the value of the position command is shown as having no unit because it is only necessary to know that the position changes.
First position command: position 20
Second position command: position 21
Third position command: position 22
Fourth position command: position 23

すなわち、異常状態が検出されない正常運転が継続していた場合を仮定すると、指令生成部12は、第1の位置指令、第2の位置指令、第3の位置指令、第4の位置指令に基づいて、指令周期ごとに順に基準位置指令を生成する。従って、この場合には、位置20、位置21、位置22、位置23の順で基準位置指令が指令周期ごとに遷移することとなる。 That is, assuming that normal operation continues without any abnormal conditions being detected, the command generation unit 12 generates a command based on the first position command, second position command, third position command, and fourth position command. Then, a reference position command is generated in order for each command cycle. Therefore, in this case, the reference position command changes in the order of position 20, position 21, position 22, and position 23 every command cycle.

これに対して、異常状態が検出された状態2において、指令生成部12は、正常運転の軌跡である位置20、位置21、位置22、位置23に沿って移動しながら、かつ、減速停止するように、基準位置指令を生成する。すなわち、指令生成部12は、図2に示すように、隣接する□で示した位置指令の間に1以上の追加位置指令を補完することで、補完位置指令を生成する。 On the other hand, in state 2 where an abnormal state is detected, the command generation unit 12 decelerates and stops while moving along the normal operation trajectory of positions 20, 21, 22, and 23. A reference position command is generated as follows. That is, as shown in FIG. 2, the command generation unit 12 generates complementary position commands by complementing one or more additional position commands between adjacent position commands indicated by squares.

指令生成部12は、あらかじめ設定した減速率に従って、補完位置指令を生成することができる。図2に示した具体例では、減速率を1/2^n(n=1、1、1、1、2、2、2、3、3、4)で規定し、
50%、50%、50%、50%、25%、25%、25%、12.5%、12.5%、6.25%
の減速率に従って補完位置指令を生成している。
The command generation unit 12 can generate a complementary position command according to a preset deceleration rate. In the specific example shown in FIG. 2, the deceleration rate is defined as 1/2^n (n=1, 1, 1, 1, 2, 2, 2, 3, 3, 4),
50%, 50%, 50%, 50%, 25%, 25%, 25%, 12.5%, 12.5%, 6.25%
Complementary position commands are generated according to the deceleration rate.

すなわち、指令生成部12は、第1の位置指令:位置20と、第2の位置指令:位置21との間を、50%の位置指令である位置20.5で補完している。同様に、指令生成部12は、第2の位置指令:位置21と、第3の位置指令:位置22との間を、50%の位置指令である位置21.5で補完している。 That is, the command generation unit 12 complements the gap between the first position command: position 20 and the second position command: position 21 with position 20.5, which is a 50% position command. Similarly, the command generation unit 12 complements the gap between the second position command: position 21 and the third position command: position 22 with position 21.5, which is a 50% position command.

この結果、指令生成部12は、位置20から位置22に移動させる際に、
位置20
位置20.5
位置21
位置21.5
位置22
の5つの位置指令を補完位置指令として生成することができる。
As a result, the command generation unit 12, when moving from position 20 to position 22,
position 20
position 20.5
position 21
position 21.5
position 22
Five position commands can be generated as complementary position commands.

位置20から位置22への移動に当たっては、正常移動時は2指令周期で移動するように位置指令が遷移するが、異常検出時には、4指令周期で移動するように位置指令を遷移させている。この場合、同じ距離を移動する際に、異常検出時は、正常運転と比較して2倍の時間を要することになり、減速率が50%になったこととなる。 When moving from position 20 to position 22, during normal movement, the position command changes to move in two command cycles, but when an abnormality is detected, the position command changes to move in four command cycles. In this case, when moving the same distance, it will take twice as long when an abnormality is detected as compared to normal operation, and the deceleration rate will be 50%.

位置22以降の移動に当たって、指令生成部12は、減速率を25%とした3つの位置指令として
位置22.25
位置22.5
位置22.75
を補完位置指令として生成することができる。
When moving from position 22 onward, the command generation unit 12 generates three position commands with a deceleration rate of 25%, at positions 22 and 25.
position 22.5
position 22.75
can be generated as a complementary position command.

さらに、位置22.75以降の移動に当たって、指令生成部12は、減速率を12.5%とした2つの位置指令として
位置22.875
位置23
を補完位置指令として生成することができる。
Furthermore, when moving from position 22.75 onward, the command generation unit 12 generates two position commands with a deceleration rate of 12.5% at position 22.875.
position 23
can be generated as a complementary position command.

同様にして、指令生成部12は、減速率を6.25%とし、位置23以降の移動に用いる位置指令を補完位置指令として生成することができる。図2において、●で示したプロットは、補完位置指令として指令生成部12により生成された減速指令の位置に相当している。 Similarly, the command generation unit 12 can set the deceleration rate to 6.25% and generate a position command used for movement from position 23 onward as a complementary position command. In FIG. 2, the plot indicated by ● corresponds to the position of the deceleration command generated by the command generation unit 12 as the complementary position command.

指令生成部12は、あらかじめ設定された減速率に従った補完処理により生成した補完位置指令を指令周期ごとに基準位置指令としてモータ制御部13に対して出力する。具体的には、位置20から位置23に移動する際に、指令周期ごとに、
位置20
位置20.5 (減速率50%に相当)
位置21 (減速率50%に相当)
位置21.5 (減速率50%に相当)
位置22 (減速率50%に相当)
位置22.25 (減速率25%に相当)
位置22.5 (減速率25%に相当)
位置22.75 (減速率25%に相当)
位置22.875 (減速率12.5%に相当)
位置23 (減速率12.5%に相当)
位置23.0625 (減速率6.25%に相当)
の基準位置指令が、モータ制御部13に順次与えられる。この結果、モータ2は、補完位置指令で規定された位置指令の遷移に従って、減速停止することとなる。
The command generating unit 12 outputs a complementary position command generated by a complementary process according to a preset deceleration rate to the motor control unit 13 as a reference position command every command cycle. Specifically, when moving from position 20 to position 23, for each command cycle,
position 20
Position 20.5 (equivalent to 50% deceleration rate)
Position 21 (equivalent to 50% deceleration rate)
Position 21.5 (equivalent to 50% deceleration rate)
Position 22 (equivalent to 50% deceleration rate)
Position 22.25 (equivalent to 25% deceleration rate)
Position 22.5 (equivalent to 25% deceleration rate)
Position 22.75 (equivalent to 25% deceleration rate)
Position 22.875 (equivalent to deceleration rate of 12.5%)
Position 23 (equivalent to deceleration rate of 12.5%)
Position 23.0625 (equivalent to deceleration rate of 6.25%)
The reference position commands are sequentially given to the motor control section 13. As a result, the motor 2 decelerates and stops in accordance with the transition of the position command specified by the complementary position command.

本実施の形態1による減速停止処理は、上述したように、正常運転中にすでにバッファ11に蓄えられているN個の位置指令に基づいて補完処理を実施することで補完位置指令を生成することを特徴としている。この結果、生成した補完位置指令を用いてモータ2を駆動制御することで、正常運転のたどる予定であった軌跡に沿って減速停止させることができる。 As described above, the deceleration and stop processing according to the first embodiment generates a complementary position command by performing a complementary process based on the N position commands already stored in the buffer 11 during normal operation. It is characterized by As a result, by driving and controlling the motor 2 using the generated supplementary position command, it is possible to decelerate and stop the motor 2 along the trajectory that was planned to follow during normal operation.

<(状態3)異常状態が検出され、減速停止が完了した後に実行される退避動作における基準位置指令の生成方法>
上述した(状態2)の減速停止処理によりモータ2が停止した後に、退避動作が実行される。退避動作を行うに当たっては、過去記憶部15に記憶されている過去の基準位置指令が用いられる。
<(State 3) Method for generating a reference position command in the evacuation operation executed after an abnormal condition is detected and deceleration and stop is completed>
After the motor 2 is stopped by the deceleration and stop processing in (state 2) described above, the evacuation operation is executed. When performing the evacuation operation, the past reference position command stored in the past storage section 15 is used.

過去記憶部15には、指令周期ごとに指令生成部12からモータ制御部13に出力された基準位置指令が、過去の基準位置指令列として順次記憶されている。すなわち、上述した(状態1)および(状態2)で、指令周期ごとに指令生成部12からモータ制御部13に順次出力された基準位置指令が、過去の基準位置指令列として時系列順に記憶されている。 In the past storage section 15, reference position commands outputted from the command generation section 12 to the motor control section 13 for each command period are sequentially stored as a past reference position command sequence. That is, in (state 1) and (state 2) described above, the reference position commands that are sequentially output from the command generation unit 12 to the motor control unit 13 for each command cycle are stored in chronological order as a past reference position command sequence. ing.

従って、指令生成部12は、過去の基準位置指令列の中から、直近に記憶された位置指令から順に、時間を遡って過去の位置指令を順次取り出し、基準位置指令を生成することで、減速中および正常運転中の軌跡を遡る退避動作を実行することができる。ここで、指令生成部12は、減速停止の際に記憶された基準位置指令を逆順に取り出して基準位置指令を生成することで、モータ2を加速させながら退避動作を実行することができる。 Therefore, the command generation unit 12 sequentially extracts past position commands from the past reference position command sequence, starting from the most recently stored position command, and generates the reference position command, thereby decelerating the command. It is possible to perform an evacuation operation that traces the trajectory during normal and normal operation. Here, the command generation unit 12 can execute the retracting operation while accelerating the motor 2 by retrieving the reference position commands stored at the time of deceleration and stop in the reverse order and generating the reference position commands.

また、指令生成部12は、正常運転中に記憶された基準位置指令を逆順に取り出して基準位置指令を生成することで、モータ2を定速移動させながら退避動作を実行することができる。 Further, the command generation unit 12 can execute the evacuation operation while moving the motor 2 at a constant speed by retrieving the reference position commands stored during normal operation in reverse order and generating the reference position commands.

さらに、指令生成部12は、過去の基準位置指令列の中の1つの位置を、退避させる最終の目的位置として規定することで、最終の目的位置でモータ2を停止させ、退避動作を終了させることができる。 Further, the command generation unit 12 specifies one position in the past reference position command sequence as the final target position to be evacuated, thereby stopping the motor 2 at the final target position and ending the retracting operation. be able to.

<(状態4)退避動作の減速停止における基準位置指令の生成方法>
なお、指令生成部12は、最終の目的位置でモータ2を停止させる際には、(状態2)で減速停止を行うために用いた補完処理を行うことで、最終の目的位置に対しても減速停止させることができる。
<(State 4) Method for generating reference position command during deceleration and stop of evacuation operation>
In addition, when stopping the motor 2 at the final target position, the command generation unit 12 performs the complementary process used for decelerating and stopping in (state 2), so that the motor 2 can also be stopped at the final target position. It can be decelerated and stopped.

図3は、本発明の実施の形態1に係るモータ制御装置において、(状態1)、(状態2)、(状態3),(状態4)の順で処理が行われた際の速度と位置の遷移を示した図である。図3では、時刻T1において故障状態が検出され、時刻T2において減速停止の完了が検出され,時刻T3において退避動作の減速を開始した状態を例示している。 FIG. 3 shows the speed and position when processing is performed in the order of (state 1), (state 2), (state 3), and (state 4) in the motor control device according to the first embodiment of the present invention. FIG. FIG. 3 illustrates a state in which a failure state is detected at time T1, completion of deceleration and stop is detected at time T2, and deceleration of the evacuation operation is started at time T3.

すなわち、図3においては、時刻T1よりも前の時間帯が、(状態1)の正常運転中に相当し、時刻T1から時刻T2までの時間帯が(状態2)の減速中に相当し、時刻T2から時刻T3までの時間帯が(状態3)の退避動作中に相当し,T3よりも後の時間帯が(状態4)の退避動作の減速中に相当する。また、図3において、上段の波形は速度の時間遷移を示しており、下段の波形は位置の時間遷移を示している。さらに、位置の時間遷移に関しては、故障状態が検出された時刻T1において減速せずに即時停止を実施し、退避動作を行った際の従来技術の波形も破線として併記している。 That is, in FIG. 3, the time period before time T1 corresponds to (state 1) during normal operation, and the time period from time T1 to time T2 corresponds to (state 2) during deceleration. The time period from time T2 to time T3 corresponds to the evacuation operation (state 3), and the time period after T3 corresponds to the deceleration of the evacuation operation (state 4). Moreover, in FIG. 3, the upper waveform shows the time transition of velocity, and the lower waveform shows the time transition of position. Furthermore, regarding the time transition of the position, the waveform of the prior art when an immediate stop is performed without deceleration and an evacuation operation is performed at time T1 when a failure state is detected is also shown as a broken line.

図3から明らかなように、本実施の形態1に係るモータ制御装置では、時刻T1において故障状態が検出された後は、即時停止させることなしに、正常運転のたどる予定であった軌跡に沿うようにして減速停止させている。さらに、減速停止が完了した時刻T2以降は、今までの軌跡を遡る経路で、退避動作が行われる。 As is clear from FIG. 3, in the motor control device according to Embodiment 1, after a failure condition is detected at time T1, the motor control device does not immediately stop the operation, but instead follows the trajectory that was planned for normal operation. This is how it decelerates and stops. Furthermore, after time T2 when the deceleration and stop is completed, the evacuation operation is performed along the route tracing back the previous trajectory.

従って、滑らかな減速停止を行わせることで、即時停止を行うことで発生する機械へのショックを抑制することができる。さらに、減速停止および退避動作において、正常運転中の軌跡に沿って移動させることができるため、ワーク等を傷つけることも抑制できる。 Therefore, by performing a smooth deceleration and stop, it is possible to suppress the shock to the machine that would be caused by an immediate stop. Furthermore, in the deceleration stop and retreat operations, it is possible to move along the trajectory during normal operation, so damage to the workpiece etc. can be suppressed.

次に、指令生成部12の具体的な構成例とともに、時系列順に以下の4つの動作に分けて、詳細な動作を説明する。
動作1:(状態1)の正常運転中の動作
動作2:(状態2)の減速中の動作
動作3:(状態3)の退避動作における加速および定速移動中の動作
動作4:(状態4)の退避動作における減速中の動作
Next, detailed operations of the command generation unit 12 will be explained in chronological order by dividing them into the following four operations along with a specific configuration example.
Action 1: Action during normal operation (state 1) Action 2: Action during deceleration (state 2) Action 3: Action during acceleration and constant speed movement during evacuation operation (state 3) Action 4: Action during (state 4) ) movement during deceleration during evacuation movement

<動作1:(状態1)の正常運転中の動作>
図4は、本発明の実施の形態1に係るモータ制御装置10が動作1を実行する状態を示した機能ブロック図である。図4における指令生成部12は、減速停止指令生成部12a、切り替えスイッチ12b、12c、および12dを備えて構成されている。
<Operation 1: Operation during normal operation (state 1)>
FIG. 4 is a functional block diagram showing a state in which the motor control device 10 according to Embodiment 1 of the present invention executes operation 1. The command generation unit 12 in FIG. 4 includes a deceleration and stop command generation unit 12a, changeover switches 12b, 12c, and 12d.

また、図4中のAは、異常検出部14において異常が検出された状態を示す信号であり、Bは、(状態2)における減速停止が完了した状態を示す信号であい、Cは(状態3)の退避動作における減速停止開始を示す信号である。信号A,信号Bおよび信号Cの立ち上がりに応じて、切り替えスイッチ12b、12c、および12dのそれぞれの状態が切り替えられることとなる。動作1により成立する経路が、図4中で太線として示されている。 Further, A in FIG. 4 is a signal indicating a state in which an abnormality is detected in the abnormality detection unit 14, B is a signal indicating a state in which deceleration and stop in (state 2) is completed, and C is a signal indicating a state in which deceleration and stop in (state 3) is completed. ) is a signal indicating the start of deceleration and stop in the evacuation operation. The states of the changeover switches 12b, 12c, and 12d are changed according to the rise of the signals A, B, and C. The route established by operation 1 is shown as a thick line in FIG.

さらに、図4では、先の図1で示した構成に加え、異常検出部14による検出状態を出力するための状態出力部16、および状態出力部16の出力結果を表示する状態表示部17が、モータ制御装置10内にさらに設けられている。 Furthermore, in FIG. 4, in addition to the configuration shown in FIG. , further provided within the motor control device 10.

動作1においては、異常検出部14により異常状態が検出されていない。すなわち、信号A、信号Bおよび信号Cはすべて無効の場合に相当する。この場合には、指令生成部12は、指令周期ごとにバッファ11から読み出した第1の位置指令を、そのまま基準位置指令として出力する。また、その際の基準位置指令は、過去記憶部15に順次記憶される。 In operation 1, no abnormal state is detected by the abnormality detection unit 14. That is, this corresponds to a case where signal A, signal B, and signal C are all invalid. In this case, the command generation unit 12 outputs the first position command read from the buffer 11 for each command cycle as the reference position command. Further, the reference position commands at that time are sequentially stored in the past storage section 15.

図5は、本発明の実施の形態1に係るモータ制御装置10が動作1を実行した際の速度波形および位置波形の時間変化を示した図である。この図5では、先の図3に対して、動作1に対応する部分が、一点鎖線の枠によって囲まれて示されている。 FIG. 5 is a diagram showing temporal changes in the speed waveform and position waveform when the motor control device 10 according to the first embodiment of the present invention executes the operation 1. In FIG. 5, compared to FIG. 3, a portion corresponding to operation 1 is shown surrounded by a dashed-dotted frame.

<動作2:(状態2)の減速中の動作>
図6は、本発明の実施の形態1に係るモータ制御装置10が動作2を実行する状態を示した機能ブロック図である。図6の基本的な構成は、先の図4と同様であり、切り替えスイッチ12b、12c、および12dのそれぞれの接続状態が、図4と図6では異なっている。動作2により成立する経路が、図6中で太線として示されている。すなわち、動作2においては、信号Aが立ち上がるため、スイッチ12cが図4の状態から図6の状態に切り替わることとなる。
<Operation 2: Operation during deceleration in (state 2)>
FIG. 6 is a functional block diagram showing a state in which the motor control device 10 according to Embodiment 1 of the present invention executes operation 2. The basic configuration of FIG. 6 is the same as that of FIG. 4, and the connection states of the changeover switches 12b, 12c, and 12d are different between FIG. 4 and FIG. 6. The route established by operation 2 is shown as a thick line in FIG. That is, in operation 2, since the signal A rises, the switch 12c changes from the state shown in FIG. 4 to the state shown in FIG. 6.

動作2においては、指令生成部12内の減速停止指令生成部12aは、正常運転中にすでにバッファ11に蓄えられているN個の位置指令に基づいて補完処理を実施することで、補完位置指令を生成する。 In operation 2, the deceleration and stop command generation unit 12a in the command generation unit 12 generates a complementary position command by performing a complementary process based on the N position commands already stored in the buffer 11 during normal operation. generate.

さらに、減速停止指令生成部12aは、生成した補完位置指令を指令周期ごとに基準位置指令として出力する。また、その際の基準位置指令は、過去記憶部15に順次記憶される。 Further, the deceleration and stop command generation unit 12a outputs the generated complementary position command as a reference position command every command cycle. Further, the reference position commands at that time are sequentially stored in the past storage section 15.

図7は、本発明の実施の形態1に係るモータ制御装置10が動作2を実行した際の速度波形および位置波形の時間変化を示した図である。この図7では、先の図3に対して、動作2に対応する部分が、一点鎖線の枠によって囲まれて示されている。 FIG. 7 is a diagram showing temporal changes in the speed waveform and position waveform when the motor control device 10 according to Embodiment 1 of the present invention executes operation 2. In FIG. 7, a portion corresponding to operation 2 is shown surrounded by a dashed-dotted line frame, as compared to FIG. 3 above.

<動作3:(状態3)の退避動作における加速および定速移動中の動作>
図8は、本発明の実施の形態1に係るモータ制御装置10が動作3を実行する状態を示した機能ブロック図である。図8の基本的な構成は、先の図4と同様であり、切り替えスイッチ12b、12c、および12dのそれぞれの接続状態が、図6と図8では異なっている。動作3により成立する経路が、図8中で太線として示されている。すなわち、動作3においては、信号Bが立ち上がるため、スイッチ12b、12cおよび12dのそれぞれが図6の状態から図8の状態に切り替わることとなる。
<Operation 3: Operation during acceleration and constant speed movement during evacuation operation (state 3)>
FIG. 8 is a functional block diagram showing a state in which the motor control device 10 according to Embodiment 1 of the present invention executes operation 3. The basic configuration of FIG. 8 is the same as that of FIG. 4, and the connection states of the changeover switches 12b, 12c, and 12d are different between FIG. 6 and FIG. 8. The route established by operation 3 is shown as a thick line in FIG. That is, in operation 3, since the signal B rises, each of the switches 12b, 12c, and 12d switches from the state of FIG. 6 to the state of FIG. 8.

動作3においては、指令生成部12は、動作1および動作2を実施中に過去記憶部15に記憶された過去の基準位置指令列の中から、指令周期ごとに、直近に記憶された位置指令から順に、時間を遡って過去の基準位置指令を順次取り出し、基準位置指令として出力する。 In operation 3, the command generation unit 12 generates the most recently stored position command for each command cycle from among the past reference position command sequences stored in the past storage unit 15 while performing operation 1 and operation 2. From then on, past reference position commands are sequentially taken out as reference position commands are outputted as reference position commands.

なお、(状態2)の減速停止が完了することで、切り替えスイッチ12dは開状態となり、動作3における基準位置指令は、過去記憶部15には記憶されない。 Note that upon completion of the deceleration and stop in (state 2), the changeover switch 12d becomes an open state, and the reference position command in operation 3 is not stored in the past storage unit 15.

図9は、本発明の実施の形態1に係るモータ制御装置10が動作3を実行した際の速度波形および位置波形の時間変化を示した図である。この図9では、先の図3に対して、動作3に対応する部分が、一点鎖線の枠によって囲まれて示されている。すなわち、動作3においては、加速移動および定速移動により、退避動作が実行される。 FIG. 9 is a diagram showing temporal changes in the speed waveform and position waveform when the motor control device 10 according to Embodiment 1 of the present invention executes operation 3. In FIG. 9, compared to FIG. 3, a portion corresponding to operation 3 is shown surrounded by a dashed-dotted frame. That is, in operation 3, the evacuation operation is performed by accelerated movement and constant speed movement.

<動作4:(状態4)の退避動作における減速中の動作>
図10は、本発明の実施の形態1に係るモータ制御装置10が動作4を実行する状態を示した機能ブロック図である。図10の基本的な構成は、先の図4と同様であり、切り替えスイッチ12b、12c、および12dのそれぞれの接続状態が、図8と図10では異なっている。動作4により成立する経路が、図10中で太線として示されている。すなわち、動作4においては、信号Cが立ち上がるため、スイッチ12cが図8の状態から図10の状態に切り替わることとなる。
<Operation 4: Operation during deceleration in the evacuation operation of (state 4)>
FIG. 10 is a functional block diagram showing a state in which the motor control device 10 according to Embodiment 1 of the present invention executes operation 4. The basic configuration of FIG. 10 is the same as that of FIG. 4, and the connection states of the changeover switches 12b, 12c, and 12d are different between FIG. 8 and FIG. 10. The route established by operation 4 is shown as a thick line in FIG. That is, in operation 4, since the signal C rises, the switch 12c changes from the state shown in FIG. 8 to the state shown in FIG.

動作4においては、指令生成部12内の減速停止指令生成部12aは、動作1および動作2を実施中に過去記憶部15に記憶された過去の基準位置指令列に基づいて、最終の目的位置でモータ2を停止させる際に、動作2で減速停止を行うために用いた補完処理を行い、基準位置指令として出力する。 In operation 4, the deceleration and stop command generation unit 12a in the command generation unit 12 determines the final target position based on the past reference position command sequence stored in the past storage unit 15 while performing operation 1 and operation 2. When stopping the motor 2, the complementary processing used for decelerating and stopping in operation 2 is performed and output as a reference position command.

なお、(状態2)の減速停止が完了することで、切り替えスイッチ12dは開状態となったままであり、動作4における基準位置指令は、過去記憶部15には記憶されない。 Note that when the deceleration and stop of (state 2) is completed, the changeover switch 12d remains in the open state, and the reference position command in operation 4 is not stored in the past storage unit 15.

図11は、本発明の実施の形態1に係るモータ制御装置10が動作4を実行した際の速度波形および位置波形の時間変化を示した図である。この図11では、先の図3に対して、動作4に対応する部分が、一点鎖線の枠によって囲まれて示されている。すなわち、動作4においては、退避動作の最後で減速停止処理が実行されている。 FIG. 11 is a diagram showing temporal changes in the speed waveform and position waveform when the motor control device 10 according to Embodiment 1 of the present invention executes operation 4. In FIG. 11, compared to FIG. 3, a portion corresponding to operation 4 is shown surrounded by a dashed-dotted frame. That is, in operation 4, the deceleration and stop processing is executed at the end of the evacuation operation.

以上のように、実施の形態1に係るモータ制御装置は、異常発生時に、正常運転の軌跡に沿って減速停止させることができる。さらに、退避動作が必要な場合には、減速停止した軌跡、および正常運転中の軌跡を遡って所望の位置まで移動させ、最終的に減速停止させることができる。 As described above, the motor control device according to Embodiment 1 can decelerate and stop along the trajectory of normal operation when an abnormality occurs. Furthermore, when an evacuation operation is required, the trajectory of deceleration and stop and the trajectory of normal operation can be traced back to a desired position and finally decelerated and stopped.

実施の形態2.
先の実施の形態1では、図1に示したように、1台のモータ2を駆動制御する場合を例に、詳細に説明した。ただし、本発明に係るモータ制御装置10は、2軸以上の複数台のモータの制御にも適用可能である。そこで、本実施の形態2では、2台のモータに対してモータ制御装置10を適用する場合について、詳細に説明する。
Embodiment 2.
In the first embodiment described above, the case where one motor 2 is drive-controlled as shown in FIG. 1 has been described in detail. However, the motor control device 10 according to the present invention is also applicable to controlling a plurality of motors having two or more axes. Therefore, in the second embodiment, a case where the motor control device 10 is applied to two motors will be described in detail.

図12は、本発明の実施の形態2に係るモータ制御装置を含むシステム構成図である。本実施の形態2に係るモータ制御装置10は、1台のコントローラ1からの2軸分の個別の位置指令に基づいて、2台のモータ2(1)、2(2)の位置制御を行う。モータ制御装置10は、1台目のモータ2(1)用として、バッファ11(1)、指令生成部12(1)、モータ制御部13(1)、および過去記憶部15(1)を備えている。 FIG. 12 is a system configuration diagram including a motor control device according to Embodiment 2 of the present invention. The motor control device 10 according to the second embodiment controls the position of two motors 2 (1) and 2 (2) based on individual position commands for two axes from one controller 1. . The motor control device 10 includes a buffer 11 (1), a command generation section 12 (1), a motor control section 13 (1), and a past storage section 15 (1) for the first motor 2 (1). ing.

また、モータ制御装置10は、2台目のモータ2(2)用として、バッファ11(2)、指令生成部12(2)、モータ制御部13(2)、および過去記憶部15(2)を備えている。さらに、モータ制御装置10は、2台のモータ2(1)、2(2)に対して共通の1台の異常検出部14を備えている。 The motor control device 10 also includes a buffer 11 (2), a command generation section 12 (2), a motor control section 13 (2), and a past storage section 15 (2) for the second motor 2 (2). It is equipped with Further, the motor control device 10 includes one abnormality detection unit 14 common to the two motors 2(1) and 2(2).

このような構成によれば、モータ制御装置10は、異常検出部14により、モータ制御装置10側で位置指令を正常に受信できない異常状態を検出した場合において、2軸のモータ2(1)、2(2)を同期させながら、先の実施の形態1で説明した動作1~動作4を時系列順に実行することができる。すなわち、2台のモータ2(1)、2(2)のそれぞれに対応する2つの制御系の同期をとって、動作1~動作4の各処理を実行させることができる。 According to such a configuration, when the abnormality detection unit 14 detects an abnormal state in which the motor control device 10 side cannot normally receive a position command, the motor control device 10 detects that the two-axis motor 2 (1), 2(2), operations 1 to 4 described in the first embodiment can be executed in chronological order. That is, the two control systems corresponding to the two motors 2(1) and 2(2) can be synchronized to execute each process of operations 1 to 4.

図13は、本発明の実施の形態2に係るモータ制御装置において、2軸のモータで円運動を行っている際に異常状態が検出され、動作1~動作4が実行された際の位置遷移の軌跡を示した説明図である。 FIG. 13 shows the position transition when an abnormal state is detected while the two-axis motor is performing circular motion and operations 1 to 4 are executed in the motor control device according to the second embodiment of the present invention. FIG.

図13においては、以下の8つの状態として遷移していく際の、指令周期ごとの位置がプロットされている。
[1]正常運転中
[2]異常検出時
[3]減速中
[4]停止時
[5]退避動作中(加速を含む)
[6]退避動作における減速開始時
[7]退避動作における停止時
In FIG. 13, the positions for each command cycle are plotted as the state transitions into the following eight states.
[1] During normal operation [2] When abnormality is detected [3] During deceleration [4] When stopped [5] During evacuation operation (including acceleration)
[6] At the start of deceleration during evacuation operation [7] When stopping during evacuation operation

以上のように、実施の形態2に係るモータ制御装置は、2軸以上のモータに対しても、異常発生時に、正常運転の軌跡に沿って減速停止させることができる。さらに、退避動作が必要な場合には、減速停止した軌跡および正常運転中の軌跡を遡って所望の位置まで移動させ、最終的に減速停止させることができる。 As described above, the motor control device according to the second embodiment can decelerate and stop the motors having two or more axes along the trajectory of normal operation when an abnormality occurs. Furthermore, if an evacuation operation is required, the deceleration and stop trajectory and the trajectory during normal operation can be traced back to a desired position, and finally the deceleration and stop can be performed.

なお、上述した実施の形態1、2では、故障発生前にバッファ11に蓄積されているN個の位置指令に対して、あらかじめ設定された減速率に従って補完処理を実行することで、減速停止を実現している。この場合、故障のレベルに応じた減速率に従って、減速処理を行うことも可能である。すなわち、モータ2を停止させる緊急度に応じて、あらかじめ設定された適切な減速率を適用することで、即時停止に近い形で緊急停止させることも可能である。 Note that in the first and second embodiments described above, deceleration and stop are performed by executing complement processing according to a preset deceleration rate for the N position commands accumulated in the buffer 11 before the occurrence of a failure. It has been realized. In this case, it is also possible to perform deceleration processing according to a deceleration rate depending on the level of failure. That is, by applying a preset appropriate deceleration rate depending on the degree of urgency to stop the motor 2, it is possible to bring about an emergency stop that is close to an immediate stop.

1 コントローラ、2 モータ、3 エンコーダ、10 モータ制御装置、11 バッファ、12 指令生成部、13 モータ制御部、14 異常検出部、15 過去記憶部。 1 controller, 2 motor, 3 encoder, 10 motor control device, 11 buffer, 12 command generation section, 13 motor control section, 14 abnormality detection section, 15 past storage section.

Claims (3)

指令周期ごとにコントローラから出力される位置指令を順次バッファリングし、最先にバッファリングされた第1の位置指令から、最後にバッファリングされた第Nの位置指令までのN個の位置指令を一時記憶するバッファと、
前記バッファに一時記憶された前記N個の位置指令に基づいて、前記指令周期ごとに基準位置指令を生成する指令生成部と、
前記指令生成部で生成された前記基準位置指令を前記指令周期ごとに受信することで、制御対象であるモータを位置制御するモータ制御部と、
前記コントローラから位置指令が正常に出力されない異常状態を検出する異常検出部と
を備え、
前記指令生成部は、
前記異常検出部において前記異常状態が検出されていない場合には、N指令周期前に前記コントローラから出力されて前記バッファに一時記憶されている前記第1の位置指令を前記基準位置指令とし、
前記異常検出部において前記異常状態が検出された場合には、前記異常状態が検出される前に前記バッファにバッファリングされた前記N個の位置指令を活用することで、前記N個の位置指令における隣接する位置指令の間に1以上の追加位置指令を補完することで補完位置指令を生成する補完処理を実行し、前記指令周期ごとに前記補完位置指令を前記基準位置指令とし、正常運転のたどる予定であった軌跡に沿って前記モータを減速停止させる
モータ制御装置。
The position commands output from the controller are sequentially buffered for each command cycle, and N position commands from the first buffered position command to the Nth position command last buffered are stored. A buffer for temporary storage,
a command generation unit that generates a reference position command for each command cycle based on the N position commands temporarily stored in the buffer;
a motor control unit that controls the position of a motor to be controlled by receiving the reference position command generated by the command generation unit at each command cycle;
and an abnormality detection unit that detects an abnormal state in which the position command is not normally output from the controller,
The command generation unit includes:
If the abnormal state is not detected in the abnormality detection section, the first position command outputted from the controller N command cycles ago and temporarily stored in the buffer is set as the reference position command,
When the abnormal state is detected in the abnormality detection section, the N position commands are processed by utilizing the N position commands that were buffered in the buffer before the abnormal state was detected. A complementing process is executed to generate a supplementary position command by supplementing one or more additional position commands between adjacent position commands, and the supplementary position command is used as the reference position command for each command period, and normal operation is performed. A motor control device that decelerates and stops the motor along a planned trajectory .
前記指令周期ごとに前記指令生成部から前記モータ制御部に出力される前記基準位置指令を、過去の基準位置指令列として順次記憶する過去記憶部をさらに備え、
前記指令生成部は、
前記異常検出部において前記異常状態が検出され、前記モータが減速停止した後に、前記過去記憶部に順次記憶された前記過去の基準位置指令列から、時系列的に最新の位置指令から順に指令周期ごとに取り出して前記基準位置指令を生成することで、減速中および正常運転中の軌跡を遡る退避動作を実行させる
請求項1に記載のモータ制御装置。
further comprising a past storage unit that sequentially stores the reference position commands outputted from the command generation unit to the motor control unit in each command cycle as a past reference position command sequence,
The command generation unit includes:
After the abnormal state is detected in the abnormality detection unit and the motor decelerates to a stop, command cycles are sequentially determined from the past reference position command sequence sequentially stored in the past storage unit, starting from the latest position command in chronological order. The motor control device according to claim 1, wherein the motor control device executes an evacuation operation tracing back a trajectory during deceleration and normal operation by extracting the reference position command at each time and generating the reference position command.
制御対象である前記モータが、複数のモータとして構成され、前記コントローラから出力される個別の位置指令に基づいて前記複数のモータのそれぞれが位置制御される場合には、
複数のモータのそれぞれに対応して、前記バッファ、前記指令生成部、モータ制御部、および過去記憶部が設けられた複数の制御系を有しており、
前記複数のモータに対して共通に設けられた前記異常検出部が故障状態を検出した場合には、前記複数の制御系が同期して前記補完処理を実行することで、前記複数のモータを減速停止させる
請求項1または2に記載のモータ制御装置。
When the motor to be controlled is configured as a plurality of motors, and the position of each of the plurality of motors is controlled based on individual position commands output from the controller,
It has a plurality of control systems including the buffer, the command generation section, the motor control section, and the past storage section corresponding to each of the plurality of motors,
When the abnormality detection unit provided in common to the plurality of motors detects a failure state, the plurality of control systems synchronize and execute the complementary processing to decelerate the plurality of motors. The motor control device according to claim 1 or 2, wherein the motor control device stops the motor.
JP2019227874A 2019-12-18 2019-12-18 motor control device Active JP7398947B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019227874A JP7398947B2 (en) 2019-12-18 2019-12-18 motor control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019227874A JP7398947B2 (en) 2019-12-18 2019-12-18 motor control device

Publications (2)

Publication Number Publication Date
JP2021097516A JP2021097516A (en) 2021-06-24
JP7398947B2 true JP7398947B2 (en) 2023-12-15

Family

ID=76432623

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019227874A Active JP7398947B2 (en) 2019-12-18 2019-12-18 motor control device

Country Status (1)

Country Link
JP (1) JP7398947B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012176268A1 (en) 2011-06-20 2012-12-27 三菱電機株式会社 Motor control device
JP2014191727A (en) 2013-03-28 2014-10-06 Fanuc Ltd Synchronization control device for synchronizing two shafts with each other
JP2016051290A (en) 2014-08-29 2016-04-11 新日本工機株式会社 Numerical control apparatus, machine tool control system, numerical control method, and numerical control program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012176268A1 (en) 2011-06-20 2012-12-27 三菱電機株式会社 Motor control device
JP2014191727A (en) 2013-03-28 2014-10-06 Fanuc Ltd Synchronization control device for synchronizing two shafts with each other
JP2016051290A (en) 2014-08-29 2016-04-11 新日本工機株式会社 Numerical control apparatus, machine tool control system, numerical control method, and numerical control program

Also Published As

Publication number Publication date
JP2021097516A (en) 2021-06-24

Similar Documents

Publication Publication Date Title
TWI466434B (en) System for control electric motor and communication method
JP5683699B2 (en) Motor control device
US4815007A (en) Apparatus for controlling a robot
JP2897333B2 (en) Servo control device
JP4226629B2 (en) Numerical control device for controlling a plurality of axes and synchronous control method using numerical control device
US20130123968A1 (en) Numerical control apparatus
JP2002132349A (en) Acceleration and deceleration control method
JP7398947B2 (en) motor control device
JP6151667B2 (en) Numerical control device having superposition control speed control function
US9823644B2 (en) Numerical control device and numerical control system
US10725456B2 (en) Numerical controller
US10915093B2 (en) Numerical controller
CN108227638B (en) Numerical controller
JP4318120B2 (en) Pulse output IC for motor drive and electronic cam control system
JP4098748B2 (en) Numerical control device having function of outputting emergency stop command
JP5573664B2 (en) Numerical control apparatus, movement control method, movement control program, and storage medium
JPH03204703A (en) Numerical controller
CN112462694B (en) Method, system, device, processor and storage medium for realizing speed feedforward compensation processing based on bus servo control system
JP2019076990A (en) Control device and control method for controlling work movement device and robot so that the device and the robot operate cooperatively
CN114450644A (en) Stopping of production machines on collision-free trajectories
JP2779797B2 (en) Numerical control unit
JP2004174613A (en) Restart operation control method for robot control device
KR20100071156A (en) Method for controlling tool change in atc of machine tool
JP2019212029A (en) Numerical control device
JPH04347705A (en) Rapid traverse positioning controller in machine tool

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220905

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230711

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230725

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230914

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231205

R150 Certificate of patent or registration of utility model

Ref document number: 7398947

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150