JP7526599B2 - Motor amplifier and motor amplifier control method - Google Patents
Motor amplifier and motor amplifier control method Download PDFInfo
- Publication number
- JP7526599B2 JP7526599B2 JP2020113002A JP2020113002A JP7526599B2 JP 7526599 B2 JP7526599 B2 JP 7526599B2 JP 2020113002 A JP2020113002 A JP 2020113002A JP 2020113002 A JP2020113002 A JP 2020113002A JP 7526599 B2 JP7526599 B2 JP 7526599B2
- Authority
- JP
- Japan
- Prior art keywords
- encoder
- communication
- motor
- setting
- speed setting
- 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
Links
- 238000000034 method Methods 0.000 title claims description 26
- 230000006854 communication Effects 0.000 claims description 132
- 230000004044 response Effects 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000004397 blinking Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D13/00—Control of linear speed; Control of angular speed; Control of acceleration or deceleration, e.g. of a prime mover
- G05D13/62—Control of linear speed; Control of angular speed; Control of acceleration or deceleration, e.g. of a prime mover characterised by the use of electric means, e.g. use of a tachometric dynamo, use of a transducer converting an electric value into a displacement
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02K—DYNAMO-ELECTRIC MACHINES
- H02K11/00—Structural association of dynamo-electric machines with electric components or with devices for shielding, monitoring or protection
- H02K11/20—Structural association of dynamo-electric machines with electric components or with devices for shielding, monitoring or protection for measuring, monitoring, testing, protecting or switching
- H02K11/21—Devices for sensing speed or position, or actuated thereby
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P29/00—Arrangements for regulating or controlling electric motors, appropriate for both AC and DC motors
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Control Of Electric Motors In General (AREA)
Description
本発明は、特にモータの回転位置を検出するエンコーダと接続され、モータの回転を制御するモータアンプ及び当該モータアンプの制御方法に関する。 The present invention relates in particular to a motor amplifier that is connected to an encoder that detects the rotational position of a motor and controls the rotation of the motor, and a method for controlling the motor amplifier.
従来から、位置指令を送信するPLC(Programmable Logic Controller)等の上位装置と、モータの回転位置を取得するエンコーダと、このエンコーダに接続されたモータアンプが存在する。
たとえば、特許文献1には、エンコーダから出力される位置データを取得して、当該位置データに基づいて、モータの回転を制御するモータアンプにあたる制御装置が記載されている(例えば、特許文献の段落[0022]等参照)。この制御装置は、位置データに基づいて、モータに印加する電流又は電圧等を制御することにより、モータの回転を制御する。更に、制御装置は、上位装置から上位制御信号を取得して、当該上位制御信号に表された位置等を実現可能な回転力がモータのシャフトから出力されるように、モータを制御することも可能である旨、記載されている。
Conventionally, there exist a host device such as a PLC (Programmable Logic Controller) that transmits a position command, an encoder that acquires the rotational position of a motor, and a motor amplifier connected to this encoder.
For example, Patent Document 1 describes a control device equivalent to a motor amplifier that acquires position data output from an encoder and controls the rotation of a motor based on the position data (see, for example, paragraph [0022] of the patent document). This control device controls the rotation of the motor by controlling the current or voltage applied to the motor based on the position data. Furthermore, it is described that the control device can also acquire a higher-level control signal from a higher-level device and control the motor so that a rotational force capable of realizing the position, etc. represented by the higher-level control signal is output from the motor shaft.
ここで、モータアンプは、複数種類のエンコーダが接続されることがあった。これらの複数種類のエンコーダでは、通信速度が異なったり、回転角度を示すビット数が異なったりすることがあった。 Here, multiple types of encoders may be connected to the motor amplifier. These multiple types of encoders may have different communication speeds or different numbers of bits indicating the rotation angle.
しかしながら、特許文献1に記載されたような従来のモータアンプは、元々接続されていたものと通信速度やビット数の異なるエンコーダを接続した場合、正しい回転位置を取得できないという問題があった。 However, conventional motor amplifiers such as those described in Patent Document 1 had the problem that they could not obtain the correct rotational position if an encoder with a communication speed or bit count different from that originally connected was connected.
本発明は、このような状況に鑑みてなされたものであり、通信速度やビット数の異なるエンコーダを接続しても、自動で正しい回転位置を取得可能とするモータアンプを提供し、上述の課題を解消することを目的とする。 The present invention was made in consideration of these circumstances, and aims to provide a motor amplifier that can automatically obtain the correct rotational position even when encoders with different communication speeds or bit numbers are connected, thereby resolving the above-mentioned problems.
本発明のモータアンプは、モータの回転位置を検出するエンコーダと接続され、前記モータの回転を制御するモータアンプであって、初期状態において、第一速度設定で前記エンコーダとの通信を試み、通信エラーになった場合には、第二速度設定で前記エンコーダと通信を試みる通信処理部と、前記通信処理部により前記エンコーダとの通信が確立した場合、前記エンコーダの機種情報を取得し、該機種情報に対応した前記エンコーダの回転位置のビット数を設定するビット数設定部とを備え、初回時、前記第一速度設定又は前記第二速度設定での通信を試みたネゴシエーションの結果を記録媒体に格納しておき、次回以降は該結果に基づいて通信を試みることを特徴とする。
このように構成することで、通信速度やビット数の異なるエンコーダを接続しても、正しい回転位置を取得することができる。
The motor amplifier of the present invention is a motor amplifier that is connected to an encoder that detects the rotational position of a motor and controls the rotation of the motor, and is equipped with a communication processing unit that, in an initial state, attempts communication with the encoder at a first speed setting, and if a communication error occurs, attempts communication with the encoder at a second speed setting, and when communication with the encoder is established by the communication processing unit, acquires model information of the encoder and sets the number of bits of the rotational position of the encoder corresponding to the model information , and is characterized in that the result of the negotiation attempting communication at the first speed setting or the second speed setting the first time is stored on a recording medium, and from the next time onwards, communication is attempted based on the result .
With this configuration, the correct rotational position can be obtained even if encoders with different communication speeds or bit numbers are connected.
本発明のモータアンプは、前記第一速度設定は、前記エンコーダとの通信可能な最大速度で通信する設定であり、前記第二速度設定は、前記最大速度よりも遅い速度で通信する設定であることを特徴とする。
このように構成することで、最大速度での通信を優先してエンコーダとの通信を確立できる。
The motor amplifier of the present invention is characterized in that the first speed setting is a setting for communicating with the encoder at the maximum speed possible, and the second speed setting is a setting for communicating at a speed slower than the maximum speed.
With this configuration, communication with the encoder can be established with priority given to communication at the maximum speed.
本発明のモータアンプは、ビット数設定部は、前記第二速度設定で前記エンコーダとの通信が確立した場合、前記機種情報を取得しなくても、前記ビット数を設定することを特徴とする。
このように構成することで、待ち時間を減らして接続することができる。
The motor amplifier of the present invention is characterized in that the bit number setting unit sets the bit number without obtaining the model information when communication with the encoder is established at the second speed setting.
By configuring in this way, it is possible to reduce the waiting time for connection.
本発明のモータアンプ制御方法は、モータの回転位置を検出するエンコーダと接続され、前記モータの回転を制御するモータアンプにより実行されるモータアンプ制御方法であって、初期状態において、第一速度設定で前記エンコーダとの通信を試み、通信エラーになった場合には、第二速度設定で前記エンコーダと通信を試み、前記エンコーダとの通信が確立した場合、前記エンコーダの機種情報を取得し、該機種情報に対応した前記エンコーダの回転位置のビット数を設定し、初回時、前記第一速度設定又は前記第二速度設定での通信を試みたネゴシエーションの結果を記録媒体に格納しておき、次回以降は該結果に基づいて通信を試みることを特徴とする。
このように構成することで、通信速度やビット数の異なるエンコーダを接続しても、正しい回転位置を取得することができる。
The motor amplifier control method of the present invention is a motor amplifier control method executed by a motor amplifier connected to an encoder that detects the rotational position of a motor and controls the rotation of the motor, and is characterized in that in an initial state, communication with the encoder is attempted at a first speed setting, and if a communication error occurs, communication with the encoder is attempted at a second speed setting, and when communication with the encoder is established, model information of the encoder is obtained, the number of bits of the rotational position of the encoder corresponding to the model information is set, the result of the negotiation in which communication was attempted at the first speed setting or the second speed setting the first time is stored on a recording medium, and from the next time onwards, communication is attempted based on the result .
With this configuration, the correct rotational position can be obtained even if encoders with different communication speeds or bit numbers are connected.
本発明によれば、初期状態において、第一速度設定でエンコーダとの通信を試み、通信エラーになった場合には、第二速度設定でエンコーダと通信を試み、通信が確立した場合、機種情報を取得し、当該機種情報に対応した回転位置のビット数を設定することで、通信速度やビット数の異なるエンコーダを接続しても、自動で正しい回転位置を取得可能とするモータアンプを提供することができる。 According to the present invention, in the initial state, communication with the encoder is attempted at a first speed setting, and if a communication error occurs, communication with the encoder is attempted at a second speed setting. If communication is established, model information is obtained and the number of bits for the rotational position corresponding to the model information is set, thereby providing a motor amplifier that can automatically obtain the correct rotational position even when encoders with different communication speeds or number of bits are connected.
<実施の形態>
〔制御システムXの構成〕
図1を参照して、本発明の実施の形態に係る制御システムXの構成について説明する。
制御システムXは、モータアンプ1、上位装置2、エンコーダ3、及びモータ4を含んで構成される。
<Embodiment>
[Configuration of Control System X]
The configuration of a control system X according to an embodiment of the present invention will be described with reference to FIG.
The control system X includes a motor amplifier 1 , a higher-
モータアンプ1は、上位装置2とエンコーダ3とに接続された、制御用デバイスである。本実施形態においては、モータアンプ1は、例えば、上位装置2から送信される位置指令を取得し、更に、エンコーダ3から角度情報を取得して、これらを基に、モータ4を駆動制御する。本実施形態においては、この位置指令及び角度情報は、例えば、17ビット、20ビット、又は23ビット等、エンコーダ3の精度に応じたモータ4のシャフトSの回転位置を示す絶対値の値である例について説明する。
モータアンプ1の機能的な詳細構成については後述する。
The motor amplifier 1 is a control device connected to a higher-
The detailed functional configuration of the motor amplifier 1 will be described later.
モータアンプ1と上位装置2との間は、例えば、EtherCAT等のフィールドネットワーク、RS-232C等のシリアル通信線、パラレル通信線等で接続されている。一方、モータアンプ1とエンコーダ3との間は、例えば、専用線及びシリアル通信線等で接続され、モータ4をサーボ駆動する電力も供給される。この電力は、エンコーダ3を介して、又は、直接、モータ4に供給される。加えて、モータアンプ1は、上位装置2からのデータリクエストに応答することも可能であってもよい。または、モータアンプ1は、エンコーダ3から温度等の状態情報を取得することも可能である。
The motor amplifier 1 and the higher-
上位装置2は、位置指令を送信するクライアント(顧客)用の機器である。上位装置2は、例えば、マイクロコントローラを備えた各種機器のPLCやロジックボード等である。
上位装置2は、モータ4を制御するための制御信号を、位置指令としてモータアンプ1に送信する。
また、上位装置2は、検出されたモータ4の位置データ、その他のデータをモータアンプ1から取得することも可能である。
The higher-
The higher-
Furthermore, the higher-
エンコーダ3は、モータの回転位置を取得するデバイスである。本実施形態では、エンコーダ3は、モータ4の回転位置の位置データを検出し、角度情報としてモータアンプ1に送信する。このため、エンコーダ3は、例えば、磁気式や光学式の角度検出機構と、MPU(Micro Processing Unit、マイクロコントローラ)、DSP(Digital Signal Processor)、ASIC(Application Specific Integrated Circuit)等の制御演算手段と、角度情報や一時データを保持するRAM(Random Access Memory)、制御プログラムを記録したROM(Read Only Memory)等の一時的でない記録媒体を含んでいる。
The
本実施形態においては、この記録媒体には、機種情報を含んでいる。この機種情報は、エンコーダ3及びモータ4の機種のID(Identification)、シリアル番号、回転角度の角度情報のフォーマット(形式)を示すビット数の情報(以下、単に「ビット数」という。)、通信速度の情報等を含んでいる。本実施形態においては、このビット数は、例えば、シャフトSの一回転に当たる角度位置を示す角度情報のデータ量(bit)であり、例えば、17ビット、20ビット、又は23ビットの形式である例を示す。さらに、機種情報は、エンコーダが取得したモータ4のIDやシリアル番号等の情報を含んでいてもよい。
In this embodiment, the recording medium includes model information. This model information includes the ID (Identification) of the model of the
また、エンコーダ3は、モータ4やエンコーダ3自身の温度を測定する温度センサ等も備えている。また、エンコーダ3は、データのバックアップ用バッテリー(図示せず)を内蔵し、外力等によりシャフトが駆動された場合、位置データを内蔵の記憶媒体に記憶し続けることが可能であってもよい。
また、エンコーダ3は、この温度センサ、バッテリーの電圧センサ等の信号について、角度情報とは別の別種類のデータとして送信可能であってもよい。
The
Further, the
モータ4は、モータアンプ1からの制御信号により、回転出力軸であるシャフトSを、回転軸Aを中心軸として回転させる。
モータ4は、ロータ(rotor)、ベアリング(bearing)、ステータ(stator)、ブラケット(bracket)等を備える一般的なサーボモータ等である。
The
The
〔モータアンプ1の構成〕
より詳しく説明すると、本実施形態においては、モータアンプ1は、通信制御部10及びアンプ制御部20を備えている。
[Configuration of motor amplifier 1]
To explain in more detail, in this embodiment, the motor amplifier 1 includes a
通信制御部10は、通信を受信し、上位装置2からモータアンプ1宛の位置指令等を取得して、アンプ制御部20に送信する。
通信制御部10は、例えば、MPU、DSP、ASIC等の制御演算手段と、RAMやROM等の一時的でない記録媒体と、通信用の回路(物理層)とを含んでいる。
The
The
アンプ制御部20は、通信制御部10から取得した位置指令に基づく角度情報を算出してモータ4をサーボ駆動させシャフトSの位置を制御する。この際、アンプ制御部20は、エンコーダ3で取得した角度情報も参照してモータ4の制御を行うことが可能である。さらに、アンプ制御部20は、その他の各種センサの情報等も取得して、角度情報と併せて通信制御部10へ送信することも可能である。
アンプ制御部20は、MPU、DSP、ASIC等の制御演算手段と、RAMやROM等の一時的でない記録媒体とを含んでいる。
The
The
次に、モータアンプ1の機能的な構成について説明する。
アンプ制御部20は、通信処理部100及びビット設定部110を備えている。
Next, the functional configuration of the motor amplifier 1 will be described.
The
通信処理部100は、初期状態において、第一速度設定でエンコーダ3との通信を試み、通信エラーになった場合には、第二速度設定でエンコーダ3と通信を試みる。ここで、第一速度設定は、エンコーダ3との通信可能な最大速度で通信する設定である。本実施形態においては、第一速度設定は、4Mbps(bit per second)である例について説明する。一方、第二速度設定は、最大速度よりも遅い速度で通信する設定である。本実施形態においては、第二速度設定は、2.5Mbpsである例について説明する。
In the initial state, the
ビット数設定部は、通信処理部100によりエンコーダ3との通信が確立した場合、エンコーダ3の機種情報を取得し、当該機種情報に対応したエンコーダ3の回転位置を示すビット数の形式を設定する。本実施形態においては、23ビット及び20ビットのエンコーダ3については、この機種情報に対応してビット数を設定する。加えて、ビット数設定部は、第二速度設定でエンコーダ3との通信が確立した場合、機種情報を取得しなくても、ビット数を設定することも可能である。本実施形態においては、2.5Mbpsの通信速度なのは17ビットのエンコーダ3だけであるとして設定する例について説明する。
When communication with the
ここで、アンプ制御部20は、アンプ制御部20の記録媒体に格納された制御プログラムを実行することで、通信処理部100及びビット設定部110として機能する。なお、これらの構成の一部又は全部をロジック回路又はFPGA(Field Programmable Gate Array)等で回路的に構成することも可能である。
Here, the
〔オートネゴシエーション処理〕
次に、図2及び図3を参照して、本発明の実施の形態に係るオートネゴシエーション処理について説明する。
本実施形態のオートネゴシエーション処理では、初期状態において、第一速度設定でエンコーダ3との通信を試みる。この上で、通信エラーになった場合には、第二速度設定でエンコーダ3と通信を試みる。そして、エンコーダ3との通信が確立した場合、エンコーダ3から機種情報を取得し、当該機種情報に対応したエンコーダ3の回転位置のビット数を設定する。
[Auto negotiation processing]
Next, the auto-negotiation process according to the embodiment of the present invention will be described with reference to FIG. 2 and FIG.
In the auto-negotiation process of this embodiment, in the initial state, communication with the
本実施形態のオートネゴシエーション処理は、主にアンプ制御部20が、記憶媒体に記憶された制御プログラム(図示せず)を、各部と協働し、ハードウェア資源を用いて実行する。
以下で、図2のフローチャートを用いて、図3のタイミングを適宜参照しつつ、本実施形態のオートネゴシエーション処理の詳細をステップ毎に説明する。
In the auto-negotiation process of this embodiment, the
The auto-negotiation process of this embodiment will be described in detail below for each step using the flowchart of FIG. 2 and with reference to the timing chart of FIG. 3 as appropriate.
(ステップS101)
まず、通信処理部100が、第一速度設定処理を行う。
通信処理部100は、初期状態として、エンコーダ3との通信可能な最大速度で通信する第一速度設定にボーレートを設定する。本実施形態においては、ボーレートを4MBpsに設定とする初期設定を用いる。また、通信処理部100は、その他の初期化処理も行い、エンコーダ3が起動する時間、例えば、数m秒~数秒程度待機する。
(Step S101)
First, the
As an initial state, the
(ステップS102)
次に、通信処理部100が、初期通信処理を行う。
通信処理部100は、初回の通信として、第一速度設定でエンコーダ3との通信を試みる。本実施形態においては、通信処理部100は、4Mbpsでの初期通信を行う(タイミングT101)
(Step S102)
Next, the
The
(ステップS103)
次に、通信処理部100が、通信確立したか否かを判定する(タイミングT102)。通信処理部100は、想定された返信をエンコーダ3から受信し、通信を確立できた場合には、Yesと判定する。通信処理部100は、通信において想定された返信をエンコーダ3から受信不可能であった場合、すなわち通信異常(通信エラー)であった場合に、Noと判定する。
Yesの場合、通信処理部100は、処理をステップS108に進める。
Noの場合、通信処理部100は、処理をステップS104に進める。
(Step S103)
Next, the
If the answer is Yes, the
If the answer is No, the
(ステップS104)
通信エラーの場合、通信処理部100が、第二速度設定再通信処理を行う。
通信処理部100は、第二速度設定でエンコーダ3と通信を試みる。本実施形態においては、通信処理部100は、ボーレートを2.5MBpsに設定して、再通信を試みる(タイミングT103)。
(Step S104)
In the case of a communication error, the
The
(ステップS105)
次に、ビット設定部110が、通信確立したか否かを判定する(タイミングT104)。ビット設定部110は、通信を確立した場合には、Yesと判定する。ビット設定部110は、当該第二速度でも、通信エラーになった場合に、Noと判定する。本実施形態においては、2.5Mbpsでも通信エラーであった場合に、Noと判定する。
Yesの場合、ビット設定部110は、処理をステップS106に進める。
Noの場合、ビット設定部110は、処理をステップS107に進める。
(Step S105)
Next, the
If the answer is Yes, the
If the answer is No, the
(ステップS106)
第二速度設定で通信を確立した場合、ビット設定部110が、第二速度ビット数設定処理を行う。
ビット数設定部は、機種情報を取得せずに、ビット数を設定する。本実施形態においては、ビット数設定部は、エンコーダ3のビット数が17ビットの形式であると確定する。
その後、ビット設定部110は、本実施形態のオートネゴシエーション処理を終了し、すぐ、エンコーダ3から回転位置の角度情報の取得等の通信を開始する。
(Step S106)
When communication is established at the second speed setting, the
The bit number setting unit sets the bit number without acquiring model information. In this embodiment, the bit number setting unit determines that the bit number of the
Thereafter, the
(ステップS107)
第二速度設定でも通信エラーの場合、ビット設定部110が、エラー処理を行う。
ビット設定部110は、通信異常でエンコーダ3との通信を確立できなかったとして、モータアンプ1の状態を表示するLED(Light Emitting Diode)等の色や点滅等でエラーとなったことを示す。さらに、ビット設定部110は、上位装置2へ、エンコーダ3との通信を確立できない旨のエラーを通知する。
その後、ビット設定部110は、本実施形態のオートネゴシエーション処理を終了する。
(Step S107)
If a communication error occurs even at the second speed setting, the
The
Thereafter, the
(ステップS108)
第一速度設定で通信を確立した場合、ビット設定部110が、機種情報取得処理を行う。
ビット設定部110は、機種情報を送信するように指示するコマンド(指令)をエンコーダ3へ送信する。すると、このコマンドを受信したエンコーダ3は、記録媒体に格納された機種情報をモータアンプ1へ送信する(タイミングT105)。
ビット設定部110は、このエンコーダ3の機種情報を取得して、記録媒体に一時的に格納する。上述したように、この機種情報にはモータ4の機種情報が含まれていてもよい。
(Step S108)
When communication is established at the first speed setting, the
The
The
(ステップS109)
次に、ビット設定部110が、機種情報ビット数設定処理を行う。
ビット設定部110は、機種情報を解析して、回転位置の角度情報に係るビット数の形式を設定する。本実施形態においては、具体的には、20ビット又は23ビットのエンコーダ3であることを設定する。たとえば、ビット設定部110は、記録媒体に格納された機種のIDとビット数とを示すテーブルを参照して、エンコーダ3が20ビットのエンコーダであるか、23ビットのエンコーダであるかを確定する。
以上により、本発明の実施の形態に係るオートネゴシエーション処理を終了する。
(Step S109)
Next, the
The
This completes the auto-negotiation process according to the embodiment of the present invention.
このようにビット数が設定された後、モータアンプ1は、設定されたビット数について、上位装置2に送信する。
そして、モータアンプ1は、当該ビット数にて、エンコーダ3から回転位置の角度情報を取得し、上位装置2に送信する。さらに、モータアンプ1は、上位装置2からの位置指令を受信して、これに対応して、モータ4のシャフトSの回転位置を制御する。
After the number of bits is set in this manner, the motor amplifier 1 transmits the set number of bits to the higher-
Then, the motor amplifier 1 acquires angular information of the rotational position from the
〔本実施形態の主な効果〕
以上のように構成することで、以下のような効果を得ることができる。
近年、用途によって、異なるエンコーダを使い分けたいというユーザのニーズが存在する。
しかしながら、特許文献1に記載されたような従来のモータアンプは、通信速度やビット数の異なる他のエンコーダを接続することは想定されていなかった。このため、このような他のエンコーダを接続した場合、ユーザが直接設定等しない限り、正しい回転位置を取得できなかった。すなわち、従来、17ビット(通信ボーレート:2.5Mbps)のエンコーダを接続した状態のモータアンプでは、23ビット(ボーレート:4Mbps)のエンコーダを接続しても、通信や回転位置の取得ができなかった。
[Major Effects of the Present Embodiment]
With the above configuration, the following effects can be obtained.
In recent years, there has been a need among users to use different encoders depending on the purpose.
However, the conventional motor amplifier described in Patent Document 1 was not designed to connect to other encoders with different communication speeds or bit numbers. Therefore, when such other encoders were connected, the correct rotation position could not be obtained unless the user directly set it. In other words, conventionally, a motor amplifier connected to a 17-bit (communication baud rate: 2.5 Mbps) encoder could not communicate or obtain the rotation position even if a 23-bit (baud rate: 4 Mbps) encoder was connected.
これに対して、本発明の実施の形態に係るモータアンプ1は、モータ4の回転位置を検出するエンコーダ3と接続され、モータ4の回転を制御するモータアンプであって、初期状態において、第一速度設定でエンコーダ3との通信を試み、通信エラーになった場合には、第二速度設定でエンコーダ3と通信を試みる通信処理部100と、通信処理部100によりエンコーダ3との通信が確立した場合、エンコーダ3の機種情報を取得し、該機種情報に対応したエンコーダ3の回転位置のビット数を設定するビット数設定部とを備えることを特徴とする。
In contrast, the motor amplifier 1 according to an embodiment of the present invention is a motor amplifier that is connected to an
このように構成することで、通信速度やビット数の異なるエンコーダ3を接続しても、特に設定等しなくても、正しい回転位置を取得することができる。すなわち、エンコーダ3との間で、オートネゴシエーションを行って、回転位置の角度情報を取得できる。これにより、23ビット(ボーレート:4Mbps)のエンコーダ3の自動接続に対応することが可能となる。また、17ビット及び23ビット等の形式についても、パラメータや設定の変更等をせずに、自動で接続する事が可能となる。
By configuring it in this way, even if an
本発明の実施の形態に係るモータアンプ1は、第一速度設定は、エンコーダ3との通信可能な最大速度で通信する設定であり、第二速度設定は、最大速度よりも遅い速度で通信する設定であることを特徴とする。
The motor amplifier 1 according to the embodiment of the present invention is characterized in that the first speed setting is a setting for communicating with the
このように構成することで、最大速度での通信を優先してエンコーダ3との通信を確立できる。すなわち、例えば、デフォルト(規定)の通信速度ボーレートとして4Mbpsを設定し、4Mbpsで接続可能なエンコーダ3が接続された場合に、すぐ通信可能となる。この際に、例えば、遅い2.5Mbps等の速度からネゴシエーションして、通信を試みる必要がなくなる。
つまり、高速な通信が可能なエンコーダ3を接続した場合に、初期通信に時間をかけることなく、接続可能となる。このため、高速な通信が可能なエンコーダ等をスリープ等の省電力状態等にしても、すぐ復帰して最大速度で通信可能となる。一方、高速通信のエンコーダ3程の通信速度が必要でない安価又は旧式のエンコーダ3の場合であっても対応可能となる。
With this configuration, communication with the
In other words, when an
本発明の実施の形態に係るモータアンプ1は、ビット数設定部は、第二速度設定でエンコーダ3との通信が確立した場合、機種情報を取得しなくても、ビット数を設定することを特徴とする。
The motor amplifier 1 according to the embodiment of the present invention is characterized in that the bit number setting unit sets the bit number without acquiring model information when communication with the
このように構成することで、第二速度設定で通信するエンコーダ3について、先に最大速度での通信で通信エラーとなっていても、待ち時間を減らして接続することができる。すなわち、例えば、4Mbpsで通信を試みて、応答がなければ17ビットの接続とみなすことで、安価又は旧式のエンコーダ3の場合であっても、少ないウェイトで接続可能となる。
By configuring in this way, for an
〔他の実施の形態〕
なお、上述の実施形態においては、第一速度設定として4Mbps、第二速度設定として、2.5Mbpsである例について説明した。さらに、17ビット、20ビット、23ビットのエンコーダ3を用いる例について説明した。
しかしながら、これ以外の通信速度の設定、ビット数の設定等を用いることも、当然、可能である。この場合でも、通信を試みて通信エラーになったら通信速度設定を変更し、その後に機種情報を取得してもよいことは同様である。さらに、第二速度設定でも通信エラーになった場合、第二速度設定よりも遅い速度で通信する設定である第三速度設定にて通信してもよい。または、第一速度設定は、第二速度設定より遅い速度とするような構成であってもよい。
このように構成することで、様々な通信速度やビット数のエンコーダ3に対応可能となる。
Other Embodiments
In the above embodiment, an example has been described in which the first speed setting is 4 Mbps and the second speed setting is 2.5 Mbps. Furthermore, examples have been described in which the 17-bit, 20-bit, and 23-
However, it is of course possible to use other communication speed settings, bit number settings, etc. Even in this case, if a communication error occurs during communication attempt, the communication speed setting may be changed and the model information may be acquired after that. Furthermore, if a communication error occurs even at the second speed setting, communication may be performed at a third speed setting that is a setting for communicating at a speed slower than the second speed setting. Alternatively, the first speed setting may be configured to be slower than the second speed setting.
Such a configuration makes it possible to support the
上述の実施形態においては、モータアンプ1の起動時に、毎回、オートネゴシエーション処理を実行するような記載をした。
しかしながら、初回時に一度、オートネゴシエーションを実行した後、その結果をアンプ制御部20の記録媒体に格納しておき、これを「優先モード」として、毎回、実行してもよい。この場合でも、ビット設定部110は、第一速度設定で接続が可能であったら、念のために機種情報を取得して、ビット数の形式等が記録媒体に格納されたものと同じであることを確認してもよい。
このように構成することで、初回以降は、より高速に通信を確立して、回転位置の角度情報を取得することが可能となる。
In the above embodiment, the auto-negotiation process is executed every time the motor amplifier 1 is started up.
However, after performing auto-negotiation once at the initial time, the result may be stored in the recording medium of the
By configuring in this manner, it becomes possible to establish communication more quickly and obtain angular information of the rotational position after the first communication.
上述の実施形態においては、エンコーダ3が単一の速度設定及びビット数の組み合わせに対応する例について説明した。
しかしながら、複数の速度で通信が可能であったり、異なるビット数の形式で角度情報を通信可能であったりするエンコーダ3を用いるような構成も可能である。
この場合、アンプ制御部20は、例えば、第一速度設定で通信エラーが多発する場合には、第二速度設定で通信してもよい。または、アンプ制御部20は、モータ4の制御の電流フィードバック値を用いてトルク換算をして、振動等が多い場合は、ビット数を少なくして精度を落としたりしてもよい。これらの際には、アンプ制御部20は、そのような処理を行うことを、上位装置2及びエンコーダ3にコマンドを送信して指示してもよい。
このように構成することで、柔軟な構成に対応可能となる。
In the above embodiment, an example has been described in which the
However, it is also possible to use an
In this case, for example, if communication errors occur frequently at the first speed setting, the
Such a configuration makes it possible to accommodate a flexible configuration.
なお、上記実施の形態の構成及び動作は例であって、本発明の趣旨を逸脱しない範囲で適宜変更して実行することができることは言うまでもない。 It goes without saying that the configurations and operations of the above-described embodiments are merely examples and can be modified as appropriate without departing from the spirit and scope of the present invention.
1 モータアンプ
2 上位装置
3 エンコーダ
4 モータ
10 通信制御部
20 アンプ制御部
100 通信処理部
110 ビット設定部
A 回転軸
S シャフト
X 制御システム
REFERENCE SIGNS LIST 1
Claims (4)
初期状態において、第一速度設定で前記エンコーダとの通信を試み、通信エラーになった場合には、第二速度設定で前記エンコーダと通信を試みる通信処理部と、
前記通信処理部により前記エンコーダとの通信が確立した場合、前記エンコーダの機種情報を取得し、該機種情報に対応した前記エンコーダの回転位置のビット数を設定するビット数設定部とを備え、
初回時、前記第一速度設定又は前記第二速度設定での通信を試みたネゴシエーションの結果を記録媒体に格納しておき、次回以降は該結果に基づいて通信を試みる
ことを特徴とするモータアンプ。 A motor amplifier connected to an encoder that detects a rotational position of a motor and controls the rotation of the motor,
a communication processing unit that, in an initial state, attempts to communicate with the encoder at a first speed setting, and when a communication error occurs, attempts to communicate with the encoder at a second speed setting;
a bit number setting unit that acquires model information of the encoder when communication with the encoder is established by the communication processing unit, and sets a bit number of the rotation position of the encoder corresponding to the model information ;
The result of the negotiation in which communication is attempted at the first speed setting or the second speed setting at the first time is stored in a recording medium, and from the next time onwards, communication is attempted based on the result.
A motor amplifier comprising:
前記第二速度設定は、前記最大速度よりも遅い速度で通信する設定である
ことを特徴とする請求項1に記載のモータアンプ。 the first speed setting is a setting for communicating with the encoder at a maximum speed at which communication is possible;
The motor amplifier according to claim 1 , wherein the second speed setting is a setting for communicating at a speed slower than the maximum speed.
前記第二速度設定で前記エンコーダとの通信が確立した場合、前記機種情報を取得しなくても、前記ビット数を設定する
ことを特徴とする請求項1又は2に記載のモータアンプ。 The bit count setting section is
3. The motor amplifier according to claim 1, wherein, when communication with the encoder is established at the second speed setting, the number of bits is set without acquiring the model information.
初期状態において、第一速度設定で前記エンコーダとの通信を試み、
通信エラーになった場合には、第二速度設定で前記エンコーダと通信を試み、
前記エンコーダとの通信が確立した場合、前記エンコーダの機種情報を取得し、該機種情報に対応した前記エンコーダの回転位置のビット数を設定し、
初回時、前記第一速度設定又は前記第二速度設定での通信を試みたネゴシエーションの結果を記録媒体に格納しておき、次回以降は該結果に基づいて通信を試みる
ことを特徴とするモータアンプ制御方法。 A motor amplifier control method executed by a motor amplifier that is connected to an encoder that detects a rotational position of a motor and controls the rotation of the motor, comprising:
Attempting communication with the encoder at a first speed setting in an initial state;
If a communication error occurs, attempt to communicate with the encoder at a second speed setting;
When communication with the encoder is established, model information of the encoder is acquired, and a number of bits of a rotational position of the encoder corresponding to the model information is set ;
The result of the negotiation in which communication is attempted at the first speed setting or the second speed setting at the first time is stored in a recording medium, and from the next time onwards, communication is attempted based on the result.
A motor amplifier control method comprising:
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2020113002A JP7526599B2 (en) | 2020-06-30 | 2020-06-30 | Motor amplifier and motor amplifier control method |
| CN202110734193.3A CN113867430B (en) | 2020-06-30 | 2021-06-30 | Motor amplifier and motor amplifier control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2020113002A JP7526599B2 (en) | 2020-06-30 | 2020-06-30 | Motor amplifier and motor amplifier control method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2022011695A JP2022011695A (en) | 2022-01-17 |
| JP7526599B2 true JP7526599B2 (en) | 2024-08-01 |
Family
ID=78990046
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2020113002A Active JP7526599B2 (en) | 2020-06-30 | 2020-06-30 | Motor amplifier and motor amplifier control method |
Country Status (2)
| Country | Link |
|---|---|
| JP (1) | JP7526599B2 (en) |
| CN (1) | CN113867430B (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010283901A (en) | 2009-05-01 | 2010-12-16 | Sanyo Denki Co Ltd | Motor equipment |
| JP2011118640A (en) | 2009-12-03 | 2011-06-16 | Nec Tokin Corp | Ic card |
| JP2017205881A (en) | 2016-05-16 | 2017-11-24 | 株式会社日本製鋼所 | Electric injection molding machine whose drive shaft is controlled synchronously by multiple servo motors |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2002175586A (en) * | 2000-12-07 | 2002-06-21 | Matsushita Electric Ind Co Ltd | Rotary encoder |
| JP2007228405A (en) * | 2006-02-24 | 2007-09-06 | Sumitomo Electric Networks Inc | COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD |
| JP6563229B2 (en) * | 2015-03-30 | 2019-08-21 | 日本電産サンキョー株式会社 | Electronic device apparatus and data transmission method |
| JP6658056B2 (en) * | 2016-02-17 | 2020-03-04 | 富士電機株式会社 | Power converter |
| JP6742497B2 (en) * | 2017-02-17 | 2020-08-19 | 株式会社Fuji | Multiplex communication system and work robot |
| WO2019155700A1 (en) * | 2018-02-06 | 2019-08-15 | 三菱電機株式会社 | Servo system, sensor hub, and diagnosis method of industrial device |
-
2020
- 2020-06-30 JP JP2020113002A patent/JP7526599B2/en active Active
-
2021
- 2021-06-30 CN CN202110734193.3A patent/CN113867430B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010283901A (en) | 2009-05-01 | 2010-12-16 | Sanyo Denki Co Ltd | Motor equipment |
| JP2011118640A (en) | 2009-12-03 | 2011-06-16 | Nec Tokin Corp | Ic card |
| JP2017205881A (en) | 2016-05-16 | 2017-11-24 | 株式会社日本製鋼所 | Electric injection molding machine whose drive shaft is controlled synchronously by multiple servo motors |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113867430B (en) | 2024-04-16 |
| JP2022011695A (en) | 2022-01-17 |
| CN113867430A (en) | 2021-12-31 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7020470B2 (en) | Communication method of motor control system and motor control system | |
| JP4877423B1 (en) | PLC CPU unit, PLC system program, and recording medium storing PLC system program | |
| JP5814474B2 (en) | Method for driving a communication system | |
| US10579031B2 (en) | Controller | |
| JP7526599B2 (en) | Motor amplifier and motor amplifier control method | |
| CN115918051A (en) | Method for coupling and coupling sensors and communication networks | |
| CN205105136U (en) | Motor drive | |
| CN113872491B (en) | Motor amplifier and angle adjusting method | |
| JP4254321B2 (en) | Encoder device, robot system | |
| US20240303207A1 (en) | Data communication in a device driver supporting multiple encoder protocols | |
| US20210255598A1 (en) | Production system, communication method, and information storage medium | |
| KR100846177B1 (en) | Networked Actuator Module | |
| JPH1041963A (en) | Data transfer method for sensor | |
| CN111740650B (en) | Motor synchronous control method, device, controller, system and storage medium | |
| JP4548613B2 (en) | Servo system | |
| JP2000222022A (en) | Manual pulse generator and numerical controller | |
| JP5104222B2 (en) | Serial communication system | |
| JP2010270599A (en) | Vacuum pump | |
| Kushwaha | CAN/CANOpen communication inferface between ServoStar and ICOP PC 104 | |
| WO2024219152A1 (en) | Assistance device, assistance method, and assistance program | |
| JP2004070422A (en) | Configuration of servo drive | |
| CN120386240A (en) | Servo drive control method, device and computer-readable storage medium | |
| CN115712593A (en) | Automatic identification method based on RS485 bus concentrator external sensor | |
| CN115225007A (en) | Motor amplifier and motor control method | |
| JP2001290511A (en) | Control system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20230518 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20240130 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20240131 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20240326 |
|
| 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: 20240702 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20240722 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7526599 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |