JP2009194970A - Motor controller - Google Patents

Motor controller Download PDF

Info

Publication number
JP2009194970A
JP2009194970A JP2008031293A JP2008031293A JP2009194970A JP 2009194970 A JP2009194970 A JP 2009194970A JP 2008031293 A JP2008031293 A JP 2008031293A JP 2008031293 A JP2008031293 A JP 2008031293A JP 2009194970 A JP2009194970 A JP 2009194970A
Authority
JP
Japan
Prior art keywords
command
reference position
motor
control device
motor control
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.)
Pending
Application number
JP2008031293A
Other languages
Japanese (ja)
Inventor
Masanori Kawatani
正典 川谷
Yoshiharu Takamatsu
祥治 高松
Shusuke Oba
秀典 大場
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa 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 Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP2008031293A priority Critical patent/JP2009194970A/en
Publication of JP2009194970A publication Critical patent/JP2009194970A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a motor controller which enables the drive of a motor to be controlled, according to a prescribed operation pattern, each time from the same starting position, without requiring a high-order commanding apparatus. <P>SOLUTION: This motor controller, which controls the drive of the motor by outputting a torque command, includes a reference position generator 116 for setting a reference position, which becomes its starting point, and for moving it from its present position to the reference position when starting the position control by a position command generated by a command pattern generator 112, and it switches its command into the positional command by the command pattern generator 112 and starts its position control, after the shift from the present position to the reference position is completed, based on a reference position command obtained by the reference position generator 116. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、移動範囲の制約された機械装置をモータで駆動制御して試運転調整する際に、一旦電源をオフした後、再度電源を投入して機械装置の試運転調整を続ける場合等に、設定された基準位置に復帰させるための操作機能を有するモータ制御装置に関する。   The present invention is set when, for example, driving control of a mechanical device with a restricted movement range by a motor to perform trial operation adjustment, after turning off the power once and then turning on the power again to continue the trial operation adjustment of the mechanical device. The present invention relates to a motor control device having an operation function for returning to a set reference position.

上位指令装置を必要とせずにモータを動作させ、制御ゲイン等の調整ができるモータ制御装置は、特許文献1に開示されている。本モータ制御装置は指令パターン生成部を備え、該指令パターン生成部はパラメータ入力装置から入力された移動距離、最高速度、加速時間、減速時間、待ち時間、正転繰り返し回数、逆転繰り返し回数のパラメータに基づいて運転パターンを生成し、連続動作させる位置指令を出力する。このため、上位指令装置なしに連続動作させることができる。
図6に特許文献1に記載のモータ制御装置のブロック構成を示す。図6において、21はパラメータ入力装置、22はモータ制御装置、23は上位指令装置である。モータ制御装置22は、上位指令装置23からのパルス列指令をモータの駆動指令として受け取り、モータ制御装置内で位置指令を生成するパルス指令処理部211、パラメータ入力装置21からの入力パラメータに基づいて運転パターンを生成し、運転パターンに基づいた位置指令を生成する指令パターン生成部212、パルス指令処理部211からの位置指令または指令パターン生成部212からの位置指令を選択する指令切替スイッチ213、指令切替スイッチ213を介して入力された位置指令に基づいて速度指令を生成する位置制御部214、位置制御部214からの速度指令に基づいてモータを駆動するためのトルク指令を生成する速度制御部215とから構成されている。上位指令装置23を使用しない場合、モータ制御装置22は、パラメータ入力装置21からの入力パラメータに基づいて生成された運転パターンに従ってモータを駆動している。
なおパラメータ入力装置21は、通常、モータ制御装置22の各種パラメータを設定するのみではなく、ジョグ運転等の動作を行う場合の指令器としての機能も有している。
特開2004−23946号公報
A motor control device that can operate a motor and adjust a control gain or the like without requiring a host command device is disclosed in Patent Document 1. The motor control device includes a command pattern generation unit, and the command pattern generation unit includes parameters for the movement distance, maximum speed, acceleration time, deceleration time, waiting time, forward rotation repetition count, and reverse rotation repetition count input from the parameter input device. A driving pattern is generated based on the above and a position command for continuous operation is output. For this reason, it can be continuously operated without a host command device.
FIG. 6 shows a block configuration of the motor control device described in Patent Document 1. In FIG. 6, 21 is a parameter input device, 22 is a motor control device, and 23 is a host command device. The motor control device 22 receives a pulse train command from the host command device 23 as a motor drive command, and operates based on a pulse command processing unit 211 that generates a position command in the motor control device and an input parameter from the parameter input device 21. A command pattern generation unit 212 that generates a pattern and generates a position command based on the operation pattern; a command changeover switch 213 that selects a position command from the pulse command processing unit 211 or a position command from the command pattern generation unit 212; A position control unit 214 that generates a speed command based on a position command input via the switch 213, a speed control unit 215 that generates a torque command for driving the motor based on the speed command from the position control unit 214, and It is composed of When the host command device 23 is not used, the motor control device 22 drives the motor according to the operation pattern generated based on the input parameters from the parameter input device 21.
The parameter input device 21 normally has a function as a command device for performing operations such as jog operation as well as setting various parameters of the motor control device 22.
JP 2004-23946 A

従来のモータ制御装置では、指令パターン生成部212は指令パターンの開始位置をその時のモータ位置としており、絶対位置の管理を行っていない。そのため、例えばモータ制御装置の電源をオフした後に、再度、モータを駆動制御する場合、異なるモータ位置からの動作になり、前回と同じ位置からの繰り返し動作を行う場合には、絶対位置を管理している上位指令装置が指令パターンを出力することが必要になるという問題がある。
特にモータ駆動の動作範囲が制限されている状況では、モータを組み込んだ機械装置やシステムの試運転調整の際の操作性が低下していた。
In the conventional motor control device, the command pattern generation unit 212 uses the start position of the command pattern as the motor position at that time, and does not manage the absolute position. Therefore, for example, when driving the motor again after turning off the power of the motor control device, the operation starts from a different motor position, and when performing a repeated operation from the same position as the previous time, the absolute position is managed. There is a problem that it is necessary for the higher order command device to output a command pattern.
In particular, in a situation where the operating range of the motor drive is limited, the operability at the time of trial operation adjustment of a mechanical device or system incorporating the motor has been reduced.

本発明はこのような問題点に鑑みてなされたものであり、上位指令装置を必要とせず、毎回同じ開始位置から所定の運転パターンに従ってモータを駆動制御することを可能としたモータ制御装置を提供することを目的としたものである。   The present invention has been made in view of such problems, and provides a motor control device that can drive and control a motor according to a predetermined operation pattern from the same start position every time without requiring a host command device. It is intended to do.

上記問題を解決するため、本発明は、次のように構成したものである。
請求項1に記載の発明は、トルク指令を出力することによりモータを駆動制御するモータ制御装置であって、入力されたパラメータに基づいて、所定パターンの位置指令を生成する指令パターン生成手段と、該指令パターン生成手段により生成された位置指令または上位指令装置からの位置指令に基づいて速度指令を生成する位置制御手段と、該位置制御手段からの速度指令に基づいてモータを駆動するためのトルク指令を生成する速度制御手段と、を備えたモータ制御装置において、
前記指令パターン生成手段により生成された位置指令によって位置制御を開始するに際して、その開始点となる基準位置を設定し、現在位置から前記基準位置へ移動するための基準位置指令生成手段を備え、該基準位置指令生成手段によって求められた基準位置指令に基づいて、前記現在位置から前記基準位置への移動が完了した後に、前記指令パターン生成手段による位置指令に切り替えて位置制御を開始するものである。
請求項2に記載の発明は、請求項1に記載のモータ制御装置において、前記基準位置指令生成手段は、絶対値エンコーダによって位置フィードバック制御系を構成している場合は、前記絶対値エンコーダで与えられる現在位置と設定された基準位置との差分値を求めて、基準位置指令を生成するものである。
請求項3に記載の発明は、請求項1に記載のモータ制御装置において、前記基準位置指令生成手段は、インクリメンタルエンコーダによって位置フィードバック制御系を構成している場合は、先ず、制御される機械装置の原点位置に移動するための原点復帰動作を実行し、前記原点位置を0とした位置に対する相対的な位置を基準位置としてその差分値を求めて、基準位置指令を生成するものである。
請求項4に記載の発明は、請求項1に記載のモータ制御装置において、前記基準位置はパラメータ入力装置によって前記モータ制御装置に設定され、前記基準位置指令生成手段による位置指令によってモータを駆動しているときには、前記パラメータ入力装置は、前記基準位置指令生成手段による位置制御状態であることを示すための表示手段を有するものである。
In order to solve the above problems, the present invention is configured as follows.
The invention according to claim 1 is a motor control device that drives and controls a motor by outputting a torque command, and a command pattern generation unit that generates a position command of a predetermined pattern based on an input parameter; Position control means for generating a speed command based on the position command generated by the command pattern generation means or the position command from the host command device, and torque for driving the motor based on the speed command from the position control means In a motor control device comprising a speed control means for generating a command,
When starting position control by the position command generated by the command pattern generating means, a reference position serving as a starting point is set, and a reference position command generating means for moving from the current position to the reference position is provided, Based on the reference position command obtained by the reference position command generating means, after the movement from the current position to the reference position is completed, the position control is started by switching to the position command by the command pattern generating means. .
According to a second aspect of the present invention, in the motor control device according to the first aspect, the reference position command generating means is provided by the absolute value encoder when a position feedback control system is constituted by the absolute value encoder. The reference position command is generated by obtaining a difference value between the current position and the set reference position.
According to a third aspect of the present invention, in the motor control device according to the first aspect, when the reference position command generating means constitutes a position feedback control system by an incremental encoder, first, the mechanical apparatus to be controlled. An origin return operation for moving to the origin position is executed, a difference value is obtained with a relative position with respect to a position where the origin position is 0 as a reference position, and a reference position command is generated.
According to a fourth aspect of the present invention, in the motor control device according to the first aspect, the reference position is set in the motor control device by a parameter input device, and the motor is driven by a position command from the reference position command generating means. The parameter input device has a display means for indicating that the position is controlled by the reference position command generating means.

請求項1乃至3に記載の発明によると、機械装置を所定の基準位置へ移動した後に指令パターン生成手段による位置指令に切り替えて位置制御を開始するので、一旦電源をオフした後に、再度、指令パターンによる位置決め動作を行う場合でも、同じ開始位置からモータを駆動することが可能となる。従って、上位指令装置がなく、かつ動作範囲が制限されている状況下においても、モータを組み込んだ機械装置やシステムの運転調整の操作性を向上できる。
また、制御系のゲイン調整等を行っている場合でも、位置決め制御を電源オフ前と同一の基準位置から再開することができので、調整作業の継続性を保つことができ、調整時間の短縮を図ることができる。
According to the first to third aspects of the invention, since the position control is started by switching to the position command by the command pattern generation means after the mechanical device is moved to the predetermined reference position, the command is once again turned off after the power is turned off. Even in the case of performing the positioning operation by the pattern, the motor can be driven from the same start position. Therefore, even when there is no higher order command device and the operation range is limited, the operability of the operation adjustment of the mechanical device or system incorporating the motor can be improved.
Even when gain adjustment of the control system is performed, positioning control can be resumed from the same reference position as before the power is turned off, so the continuity of the adjustment work can be maintained and the adjustment time can be shortened. Can be planned.

請求項4に記載の発明によると、基準位置指令生成手段によって位置指令を生成し、基準位置へモータを駆動している間は、パラメータ入力装置に特別な表示を行い、操作者に指令パターンによる位置決め動作開始位置までの移動中であることを知らせることができるので、機械装置やシステムの運転調整の操作性および安全性を向上することができる。   According to the fourth aspect of the present invention, while the position command is generated by the reference position command generating means and the motor is driven to the reference position, a special display is performed on the parameter input device, and the command pattern is given to the operator. Since it is possible to notify that the movement to the positioning operation start position is in progress, it is possible to improve the operability and safety of the operation adjustment of the mechanical device and system.

以下、本発明の実施の形態について図を参照して説明する。実際のモータ制御装置には様々な機能や手段が内蔵されているが、以下に示す図には本発明に関係する機能や手段のみを記載して説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. Although various functions and means are built in the actual motor control device, only the functions and means related to the present invention will be described in the following drawings.

図1は、本発明の一実施形態のモータ制御装置の構成を示すブロック図である。図1において、11はパラメータ入力装置、12はモータ制御装置、13は上位指令装置である。モータ制御装置12は、パルス指令処理部111、指令パターン生成部112、指令切替第1スイッチ113、位置制御部114、速度制御部115、基準位置指令生成部116、指令切替第2スイッチ117とから構成される。   FIG. 1 is a block diagram illustrating a configuration of a motor control device according to an embodiment of the present invention. In FIG. 1, 11 is a parameter input device, 12 is a motor control device, and 13 is a host command device. The motor control device 12 includes a pulse command processing unit 111, a command pattern generating unit 112, a command switching first switch 113, a position control unit 114, a speed control unit 115, a reference position command generating unit 116, and a command switching second switch 117. Composed.

図1における各機能ブロックの基本的な動作は、従来例を示す図6と同一であるので、ここでは追加した機能部について説明する。
本発明が従来例と異なる部分は、指令パターンによる動作を開始する前に、パラメータによって設定された基準位置へモータを移動するための位置指令を生成する基準位置指令生成部116、および基準位置に到達後に指令パターン生成部112からの位置指令によってモータを駆動するための指令切替第2スイッチ117を追加したことである。
なおパラメータ入力装置11は、モータ制御装置12の各種パラメータを設定するのみではなく、ジョグ運転や原点復帰等の動作、さらに本発明の処理内容を実行する際の指令器としての機能も有している。
Since the basic operation of each functional block in FIG. 1 is the same as that of FIG. 6 showing the conventional example, the added functional unit will be described here.
The difference between the present invention and the conventional example is that a reference position command generator 116 for generating a position command for moving the motor to a reference position set by a parameter before starting an operation based on the command pattern, and a reference position This is that a command switching second switch 117 for driving the motor in accordance with the position command from the command pattern generation unit 112 after arrival is added.
The parameter input device 11 not only sets various parameters of the motor control device 12, but also has a function as a command device when executing operations such as jog operation and return to origin, and processing contents of the present invention. Yes.

図2は、パラメータ入力装置11によってモータ制御装置12に設定された運転パターン等のパラメータに基づいて、位置指令を生成処理する際の動作を表すフローチャートである。先ず、ステップS01において基準位置指令を生成し、指令切替第1スイッチ113をb側、指令切替第2スイッチ117をd側に設定した後、基準位置指令を位置制御部114に出力してモータを基準位置に移動する。基準位置指令の生成過程は、位置のフィードバック制御を行うための位置検出器として、絶対値エンコーダを使用している場合とインクリメンタルエンコーダを使用している場合とでは異なり、その詳細動作については別途説明する。
次にステップS02では、指令切替第2スイッチ117をc側に設定する。そして、パラメータ入力装置11から入力された運転パターン生成用パラメータに基づいて、指令パターン生成部112は、モータを動作させるための基本運転パターンを生成し、この基本運転パターンをパラメータによって設定された回数だけ繰り返して連続運転パターンを設定し、この連続運転パターンに基づいてモータを連続的に動作させるための位置指令パターン(以下、「指令パターン」と呼ぶ)を生成して位置制御部114に出力する。モータ制御装置12は生成された指令パターンに従ってモータの運転を続ける。
FIG. 2 is a flowchart showing an operation when a position command is generated based on parameters such as an operation pattern set in the motor control device 12 by the parameter input device 11. First, in step S01, a reference position command is generated, the command switching first switch 113 is set to the b side, and the command switching second switch 117 is set to the d side, and then the reference position command is output to the position control unit 114 to operate the motor. Move to the reference position. The generation process of the reference position command differs between when an absolute encoder is used as a position detector for position feedback control and when an incremental encoder is used, and the detailed operation is described separately. To do.
Next, in step S02, the command switching second switch 117 is set to the c side. Based on the operation pattern generation parameters input from the parameter input device 11, the command pattern generation unit 112 generates a basic operation pattern for operating the motor, and the number of times this basic operation pattern is set by the parameter. A continuous operation pattern is set repeatedly, and a position command pattern (hereinafter referred to as “command pattern”) for continuously operating the motor based on the continuous operation pattern is generated and output to the position control unit 114. . The motor control device 12 continues to operate the motor according to the generated command pattern.

操作者は、通常、指令パターンに基づいてモータを運転している間、パラメータ入力装置11から制御ゲイン等の調整作業を行う。このステップS02における動作は、従来の指令パターンによる運転処理と同様であり、指令パターンによる運転が終了したら、ステップS03で終了処理を行う。
なお、パラメータ入力装置11は、基準位置指令生成および出力処理を行うステップS01において、基準位置までのモータ駆動中は、例えば、“APPROACH” 等の特定の表示を行い、指令パターンによる運転を開始する位置へ移動中であることを操作者に伝える。
The operator normally performs adjustment work such as control gain from the parameter input device 11 while operating the motor based on the command pattern. The operation in step S02 is the same as the operation process using the conventional command pattern. When the operation using the command pattern is completed, the end process is performed in step S03.
Note that the parameter input device 11 performs a specific display such as “APPROACH” during the motor driving to the reference position in step S01 for performing the reference position command generation and output processing, and starts operation based on the command pattern. Tell the operator that you are moving to a position.

図3は、図2のステップS01における基準位置指令生成および出力処理に関するフローチャートである。
図3において、ステップS011では、パラメータ入力装置11の特定のキー入力、例えば、“JOG/SVON”キーがオン状態であるかを判別する入力判別処理を行い、オンであればモータ通電中であると判断してステップS012へ進み、オフであればモータが非通電状態であると判断して処理を終了する。
ステップS012では、エンコーダ種別判別処理を行い、位置制御用の位置検出器として絶対値エンコーダを使用している場合は、ステップS0131へ進み、インクリメンタルエンコーダ使用時は、ステップS0141へ進む。
FIG. 3 is a flowchart regarding the reference position command generation and output processing in step S01 of FIG.
In FIG. 3, in step S011, a specific key input of the parameter input device 11, for example, an input determination process for determining whether the “JOG / SVON” key is in an on state is performed. The process proceeds to step S012, and if it is off, it is determined that the motor is in a non-energized state and the process is terminated.
In step S012, an encoder type determination process is performed. If an absolute value encoder is used as a position detector for position control, the process proceeds to step S0131. If an incremental encoder is used, the process proceeds to step S0141.

位置検出器として絶対値エンコーダを使用している場合、モータ制御装置が絶対値エンコーダから時々刻々取得する位置データは、モータで駆動する機械装置のその時点の絶対位置を表すため、操作者が基準位置としたい機械位置の位置データをそのまま基準位置データとすることができる。予め機械装置の基準位置データが分かっていれば、パラメータ入力装置11によって基準位置のパラメータを設定しておくことにより、ステップ0131において、現在位置データと設定されている基準位置データの差分値を求めることにより基準位置指令を生成することができる。
しかし、基準位置を設定する場合、実際の稼働中の機械装置から直接的に行わねばならない場合もあるので、このような場合を想定した基準位置指令の生成方法を示したのが図4のフローチャートである。
図4において、先ず、ステップS01311にて基準位置のパラメータが適正値に設定されているかどうかを確認し、設定されていなければ、S01312にて基準位置の設定方法を選択し、基準位置データを取得するモードを選択するか(S01313)、予め基準位置が分かっていればステップS01314にて、パラメータ入力装置11によって直接モータ制御装置12に基準位置のパラメータを入力する。また、すでに基準位置のパラメータが適正値に設定されていれば、S01315に進む。
ステップS01313にて、基準位置のデータを取得して基準位置のパラメータを設定する方法の一例としては次のようにして行うことができる。操作者は、例えば、パラメータ入力装置11を使用する機能の1つであるジョグ運転モードにて、機械装置の可動テーブルを基準位置として設定したい位置まで移動し、その位置の絶対値エンコーダの位置データを読み取り基準位置としてモータ制御装置12に記憶する。
次に、ステップS01315において、現在位置データを絶対値エンコーダから読み込み、ステップS01316にて、現在位置データと基準位置データの差分値を求め、基準位置指令を生成する。
以上のように基準位置をパラメータ入力装置11から直接入力する場合だけでなく、基準位置のデータ取得モードをモータ制御装置に組み込んでおけば、より使い勝手を向上することができる。
When an absolute encoder is used as a position detector, the position data that the motor controller acquires from the absolute encoder from time to time represents the absolute position of the machine that is driven by the motor. The position data of the machine position desired to be the position can be used as the reference position data as it is. If the reference position data of the machine device is known in advance, a parameter for the reference position is set by the parameter input device 11 to obtain a difference value between the current position data and the set reference position data in step 0131. Thus, the reference position command can be generated.
However, when setting the reference position, there are cases where it must be performed directly from the actual operating machine. Therefore, the flowchart of FIG. 4 shows a method for generating a reference position command assuming such a case. It is.
In FIG. 4, first, in step S01311, it is confirmed whether or not the parameter of the reference position is set to an appropriate value. If not, the reference position setting method is selected and the reference position data is acquired in step S01312. The mode to be selected is selected (S01313), or if the reference position is known in advance, the parameter of the reference position is directly input to the motor control device 12 by the parameter input device 11 in step S01314. If the reference position parameter has already been set to an appropriate value, the process proceeds to S01315.
In step S01313, an example of a method for acquiring the reference position data and setting the reference position parameters can be performed as follows. For example, in the jog operation mode, which is one of the functions using the parameter input device 11, the operator moves to the position where the movable table of the mechanical device is desired to be set as the reference position, and the position data of the absolute encoder at that position. Is stored in the motor control device 12 as a reading reference position.
Next, in step S01315, the current position data is read from the absolute value encoder, and in step S01316, a difference value between the current position data and the reference position data is obtained, and a reference position command is generated.
In addition to the case where the reference position is directly input from the parameter input device 11 as described above, the usability can be further improved by incorporating the data acquisition mode of the reference position into the motor control device.

再び、図3のステップS012に戻って説明を続ける。位置検出器にインクリメンタルエンコーダを使用している場合、電源投入時にインクリメンタルエンコーダから得られる現在位置データは、機械装置がどの位置に停止していた場合でも0である。従って、操作者は電源投入後の原点復帰動作により機械装置の機械原点に一旦移動し、その機械原点の位置を0として、この0点からカウントして得られた位置データで基準位置を設定する。インクリメンタルエンコーダ使用時は作業の途中でモータ制御装置12の電源をオフした場合は、電源を再投入したときに、再度、原点復帰動作を実行する必要がある。   Again, it returns to step S012 of FIG. 3, and description is continued. When an incremental encoder is used for the position detector, the current position data obtained from the incremental encoder when the power is turned on is 0 regardless of the position where the mechanical device is stopped. Therefore, the operator temporarily moves to the machine origin of the mechanical device by the origin return operation after turning on the power, sets the position of the machine origin to 0, and sets the reference position with the position data obtained by counting from this 0 point. . When the incremental encoder is used, if the power source of the motor control device 12 is turned off during the work, it is necessary to perform the origin return operation again when the power source is turned on again.

先ずステップS0141において原点復帰処理を実行済みかどうか判断し、未実施であればステップS0142にて原点復帰処理により機械装置をその機械原点の位置に移動し、その位置を0に設定する。また、すでに原点復帰動作を完了していればステップS0143に進む。
ステップS0142の原点復帰処理の動作を図5のフローチャートで説明する。操作者はパラメータ入力装置11により原点復帰動作モードを選択し、先ずステップS01421にて機械原点のある方向へモータを駆動し、機械装置が機械原点に近づくと、モータ制御装置は原点付近であることを表す信号を検出する。ステップS01422にてモータ制御装置は、その後に検出するインクリメンタルエンコーダの原点信号位置に所定のオフセット位置を加えた位置に停止する。次にステップS01423においてその停止位置を機械原点位置(=0)として設定する。ステップS01424で原点復帰処理を終了し、図3のステップS0143に移る。なお、所定のオフセット位置は、各機械装置の固有の値として、予めモータ制御装置のパラメータに設定されているものである。
First, in step S0141, it is determined whether or not the origin return process has been executed. If not, the machine apparatus is moved to the position of the machine origin by the origin return process in step S0142, and the position is set to zero. If the origin return operation has already been completed, the process proceeds to step S0143.
The operation of the origin return process in step S0142 will be described with reference to the flowchart of FIG. The operator selects the origin return operation mode using the parameter input device 11, and first drives the motor in a direction where the machine origin is located in step S01421. When the machine device approaches the machine origin, the motor control device is near the origin. Is detected. In step S01422, the motor control device stops at a position obtained by adding a predetermined offset position to the origin signal position of the incremental encoder detected thereafter. In step S01423, the stop position is set as the machine origin position (= 0). In step S01424, the origin return process is terminated, and the process proceeds to step S0143 in FIG. The predetermined offset position is set in advance as a parameter of the motor control device as a unique value of each mechanical device.

この原点復帰処理以降の処理は絶対値エンコーダ使用時と基本的動作は同じである。ステップS0143においては、原点復帰動作によって求めた機械原点の位置を0としたときの現在位置データと基準位置データの差分値を求め基準位置指令を生成する。ここで使用する基準位置データは予めパラメータ入力装置11によって基準位置のパラメータとして設定しておけばよい。電源をオフし、再度、電源を投入して指令パターンによる位置決め動作を再開する場合には、再度原点復帰動作を実行する必要はあるが、新たに基準位置データを設定する必要はない。
なお、基準位置指令の生成方法を示した図4のフローチャートは、インクリメンタルエンコーダを使用している場合でも、そのまま適用でき、上述した図4の説明の中で、“絶対値エンコーダ”と記載されている部分を“インクリメンタルエンコーダ”と置き換えて読めばよい。
The basic operation of the process after the origin return process is the same as when the absolute value encoder is used. In step S0143, a difference value between the current position data and the reference position data when the machine origin position obtained by the origin return operation is set to 0 is obtained to generate a reference position command. The reference position data used here may be set in advance by the parameter input device 11 as a reference position parameter. When the power supply is turned off and the power supply is turned on again to restart the positioning operation based on the command pattern, the home position return operation needs to be executed again, but it is not necessary to newly set the reference position data.
Note that the flowchart of FIG. 4 showing the method for generating the reference position command can be applied as it is even when an incremental encoder is used, and is described as “absolute value encoder” in the description of FIG. 4 described above. You can replace it with “Incremental encoder”.


次に、図3のステップS0132は、ステップS0131またはS0143で生成した基準位置指令を出力し、基準位置までモータを駆動し、移動が完了したらステップS0133にて終了して図2に示すステップS02の指令パターンによる運転処理に移る。
以上のようにして上位指令装置13がなくても、設定された基準位置に機械装置を復帰させた後に、指令パターンによる運転を継続して行うことができるで、機械装置の試運転調整を再開する際など、運転調整の操作性を向上することができる。また、モータ制御装置12の位置制御ゲインや速度制御ゲイン等の調整作業を行っている場合でも、その継続性を保つことができるので、調整時間の短縮を図ることができる。

Next, step S0132 in FIG. 3 outputs the reference position command generated in step S0131 or S0143, drives the motor to the reference position, and when the movement is completed, it ends in step S0133, and in step S02 shown in FIG. Move on to operation processing by command pattern.
Even if there is no host command device 13 as described above, after returning the machine device to the set reference position, the operation by the command pattern can be continuously performed, and the trial run adjustment of the machine device is resumed. It is possible to improve the operability of driving adjustment. Further, even when adjustment work such as the position control gain and the speed control gain of the motor control device 12 is performed, the continuity can be maintained, so that the adjustment time can be shortened.

本発明のモータ制御装置の構成を示すブロック図The block diagram which shows the structure of the motor control apparatus of this invention 本発明の実施例の指令パターンによる位置指令生成処理フローチャートPosition command generation processing flowchart according to the command pattern of the embodiment of the present invention 本発明の実施例の基準位置指令生成および出力処理フローチャートReference position command generation and output processing flowchart of an embodiment of the present invention 本発明の実施例の基準位置指令生成方法の詳細フローチャートDetailed flowchart of the reference position command generation method of the embodiment of the present invention 本発明の原点復帰処理フローチャートOrigin return processing flowchart of the present invention 従来のモータ制御装置の構成を示すブロック図Block diagram showing the configuration of a conventional motor control device

符号の説明Explanation of symbols

11,21 パラメータ入力装置
12,22 モータ制御装置
13,23 上位指令装置
111,211 パルス指令処理部
112,212 指令パターン生成部
113 指令切替第1スイッチ
114,214 位置制御部
115,215 速度制御部
116 基準位置指令生成部
117 指令切替第2スイッチ
213 指令切替スイッチ
11, 21 Parameter input device 12, 22 Motor control device 13, 23 Host command device 111, 211 Pulse command processing unit 112, 212 Command pattern generation unit 113 Command switching first switch 114, 214 Position control unit 115, 215 Speed control unit 116 Reference position command generation unit 117 Command switch second switch 213 Command switch

Claims (4)

トルク指令を出力することによりモータを駆動制御するモータ制御装置であって、入力されたパラメータに基づいて、所定パターンの位置指令を生成する指令パターン生成手段と、該指令パターン生成手段により生成された位置指令または上位指令装置からの位置指令に基づいて速度指令を生成する位置制御手段と、該位置制御手段からの速度指令に基づいてモータを駆動するためのトルク指令を生成する速度制御手段と、を備えたモータ制御装置において、
前記指令パターン生成手段により生成された位置指令によって位置制御を開始するに際して、その開始点となる基準位置を設定し、現在位置から前記基準位置へ移動するための基準位置指令生成手段を備え、該基準位置指令生成手段によって求められた基準位置指令に基づいて、前記現在位置から前記基準位置への移動が完了した後に、前記指令パターン生成手段による位置指令に切り替えて位置制御を開始することを特徴とするモータ制御装置。
A motor control device that drives and controls a motor by outputting a torque command, which is generated by a command pattern generation unit that generates a position command of a predetermined pattern based on an input parameter, and generated by the command pattern generation unit Position control means for generating a speed command based on a position command or a position command from a host command device, speed control means for generating a torque command for driving a motor based on the speed command from the position control means, In a motor control device comprising:
When starting position control by the position command generated by the command pattern generating means, a reference position serving as a starting point is set, and a reference position command generating means for moving from the current position to the reference position is provided, Based on the reference position command obtained by the reference position command generating means, after the movement from the current position to the reference position is completed, the position control is started by switching to the position command by the command pattern generating means. A motor control device.
前記基準位置指令生成手段は、絶対値エンコーダによって位置フィードバック制御系を構成している場合は、前記絶対値エンコーダで与えられる現在位置と設定された基準位置との差分値を求めて、基準位置指令を生成することを特徴とする請求項1に記載のモータ制御装置。   In the case where the absolute value encoder constitutes a position feedback control system, the reference position command generating means obtains a difference value between the current position given by the absolute value encoder and the set reference position, and the reference position command The motor control device according to claim 1, wherein: 前記基準位置指令生成手段は、インクリメンタルエンコーダによって位置フィードバック制御系を構成している場合は、先ず、制御される機械装置の原点位置に移動するための原点復帰動作を実行し、前記原点位置を0とした位置に対する相対的な位置を基準位置としてその差分値を求めて、基準位置指令を生成することを特徴とする請求項1に記載のモータ制御装置。   When the position feedback control system is constituted by an incremental encoder, the reference position command generation means first performs an origin return operation for moving to the origin position of the controlled machine, and sets the origin position to 0. The motor control device according to claim 1, wherein a relative position with respect to the determined position is used as a reference position to obtain a difference value, and a reference position command is generated. 前記基準位置はパラメータ入力装置によって前記モータ制御装置に設定され、前記基準位置指令生成手段による位置指令によってモータを駆動しているときには、前記パラメータ入力装置は、前記基準位置指令生成手段による位置制御状態であることを示すための表示手段を有することを特徴とする請求項1に記載のモータ制御装置。   The reference position is set in the motor control device by a parameter input device, and when the motor is driven by a position command from the reference position command generating means, the parameter input device is in a position control state by the reference position command generating means. The motor control device according to claim 1, further comprising display means for indicating that
JP2008031293A 2008-02-13 2008-02-13 Motor controller Pending JP2009194970A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008031293A JP2009194970A (en) 2008-02-13 2008-02-13 Motor controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008031293A JP2009194970A (en) 2008-02-13 2008-02-13 Motor controller

Publications (1)

Publication Number Publication Date
JP2009194970A true JP2009194970A (en) 2009-08-27

Family

ID=41076490

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008031293A Pending JP2009194970A (en) 2008-02-13 2008-02-13 Motor controller

Country Status (1)

Country Link
JP (1) JP2009194970A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018168566A1 (en) * 2017-03-15 2018-09-20 オムロン株式会社 Servo system and gain adjustment method for servo motor control

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018168566A1 (en) * 2017-03-15 2018-09-20 オムロン株式会社 Servo system and gain adjustment method for servo motor control
JP2018156147A (en) * 2017-03-15 2018-10-04 オムロン株式会社 Servo system and gain adjustment method for servo motor control
CN110313127A (en) * 2017-03-15 2019-10-08 欧姆龙株式会社 Servo-system and the gain adjusting method of servo motor control
US10809694B2 (en) 2017-03-15 2020-10-20 Omron Corporation Servo system and gain adjustment method for servo motor control
EP3598635A4 (en) * 2017-03-15 2020-12-16 Omron Corporation Servo system and gain adjustment method for servo motor control
CN110313127B (en) * 2017-03-15 2022-09-20 欧姆龙株式会社 Servo system and gain adjustment method for servo motor control

Similar Documents

Publication Publication Date Title
JP4099503B2 (en) Fixed position stop control device for rotating shaft
JP5357082B2 (en) Machine tool control device and operation control method
JP5623757B2 (en) Motor control method and apparatus
JP6776809B2 (en) Shift range controller
JP2011176907A5 (en)
JP2005204406A (en) Method of detecting angular difference and controller for synchronous motor
JP4044105B2 (en) Numerical control device having function of switching operation means for each system
JP2006004275A (en) Numerical control device
JP4901912B2 (en) Stepping motor drive device and controller
JP2009194970A (en) Motor controller
EP1139561A2 (en) Electric Motor control device
JP5530500B2 (en) Spindle drive motor controller
WO2014196561A1 (en) Stepping-motor control device and control method
WO2004001946A1 (en) Motor control device
JP4250051B2 (en) Control device for position control motor
JP2006217746A (en) Motor controller
US6879119B2 (en) Positioning controller
JP4987302B2 (en) Driving method of stepping motor
JP2009009353A (en) Rough and fine motion device
JP2007164260A (en) Motor controller
JP2005332213A (en) Servo system
JP2009087291A (en) Position controller and its control method
KR20230134973A (en) Servo system
JP2005085095A (en) Numerical controller, parameter setting method for numerical controller, and numerical control program
JP4607784B2 (en) Travel control device