JP2009258949A - Motor control system and connection determination method for the same - Google Patents

Motor control system and connection determination method for the same Download PDF

Info

Publication number
JP2009258949A
JP2009258949A JP2008106508A JP2008106508A JP2009258949A JP 2009258949 A JP2009258949 A JP 2009258949A JP 2008106508 A JP2008106508 A JP 2008106508A JP 2008106508 A JP2008106508 A JP 2008106508A JP 2009258949 A JP2009258949 A JP 2009258949A
Authority
JP
Japan
Prior art keywords
encoder
communication unit
communication
response
inter
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
JP2008106508A
Other languages
Japanese (ja)
Inventor
Takahiro Masuda
隆宏 増田
Taro Kishibe
太郎 岸部
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.)
Panasonic Corp
Original Assignee
Panasonic 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 Panasonic Corp filed Critical Panasonic Corp
Priority to JP2008106508A priority Critical patent/JP2009258949A/en
Publication of JP2009258949A publication Critical patent/JP2009258949A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide a motor control system that allows synchronous control to be easily performed and the setting of a master and a slave to be done, by merely connecting two servo amplifiers with a communication cable. <P>SOLUTION: The servo amplifier 1 (2) has an encoder communication cable 5 (6) for a driven servomotor 3 (4), connected at one two-way communication means 15 (26), and the communication cable 7, connected from another two-way communication means 16 to a two-way communication means 25. A device control part 11 (21) selectively connects the two-way communication means 15 (25) to an inter-device communication part 13 (23) or encoder communication part 12 (22) via a selector 4 (24) by a selector switching signal 11d (21d) output, at the start of communication and automatically determines a master or slave in synchronous control. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、通信ケーブルで接続した2台のサーボアンプの同期制御におけるマスター、スレーブの接続状態を自動判定するモータ制御システムに関する。   The present invention relates to a motor control system that automatically determines the connection state of a master and a slave in synchronous control of two servo amplifiers connected by a communication cable.

一般に2台のサーボアンプを同期制御させる場合、サーボアンプの一方をマスター、他方をスレーブとして動作させ、上位コントローラからの制御指令をマスター側のサーボアンプに入力して制御する。   In general, when two servo amplifiers are synchronously controlled, one servo amplifier is operated as a master and the other as a slave, and a control command from a host controller is input to the servo amplifier on the master side for control.

その際、マスター側(サーボアンプ)は、上位コントローラからの指令に対してスレーブ側(サーボアンプ)に供給する制御量を演算・決定し、自装置に接続されたモータを駆動させるとともに、スレーブ側のモータ駆動指令をスレーブ側へ転送する。   At that time, the master side (servo amplifier) calculates and determines the control amount to be supplied to the slave side (servo amplifier) in response to the command from the host controller, drives the motor connected to its own device, and The motor drive command is transferred to the slave side.

一方、スレーブ側は、マスター側から転送された指令に従い、スレーブ側のサーボモータを駆動し、フィードバック情報・モータ駆動状態・エラーの有無などのステータス情報をマスター側へ転送する。マスター側では、スレーブ側から転送されたステータス情報と、自装置におけるステータス情報とを合成し、上位コントローラへフィードバックする。以上のように、2台のサーボアンプが持つそれぞれの情報を共有することで、同期制御を実現している。   On the other hand, the slave side drives the servo motor on the slave side in accordance with the command transferred from the master side, and transfers status information such as feedback information, motor drive status, and the presence / absence of an error to the master side. On the master side, the status information transferred from the slave side and the status information in its own device are combined and fed back to the host controller. As described above, the synchronization control is realized by sharing the information held by the two servo amplifiers.

近年、2軸のサーボモータを同期して駆動する方法として、コントローラから位置指令を受けた一方のサーボ制御装置が、他方のサーボ制御装置に位置指令を伝送することにより2軸のサーボモータを同期して駆動する2軸間同期制御装置において、一方のサーボ制御装置は伝送完了のタイミングで、他方のサーボ制御装置は伝送受信のタイミングで同期して位置検出器からの位置を入力する2軸間の通信手段を備えた2軸間同期制御装置が提案されている(例えば、特許文献1参照)。
特開2006−285752号公報
In recent years, as a method of driving two-axis servo motors synchronously, one servo control device that has received a position command from the controller transmits the position command to the other servo control device to synchronize the two-axis servo motor. In the two-axis synchronous control device that is driven in this manner, one servo control device inputs the position from the position detector in synchronization with the transmission completion timing and the other servo control device inputs the position from the position detector. A two-axis synchronous control device including the communication means has been proposed (see, for example, Patent Document 1).
JP 2006-285752 A

2台のサーボアンプを同期制御させるためケーブルで相互を接続して、制御データの送受信をおこなうが、電源投入時など通信を開始する際に、どちらのサーボアンプが先にリクエスト送信を出すかを決めておく必要がある。つまり、通信を開始する前に、2台のサーボアンプをマスターあるいはスレーブといった制御の主と従を識別する設定が必要となり、設定を間違えると正常な同期制御ができなくなる。   In order to control the two servo amplifiers synchronously, the cables are connected to each other to transmit and receive control data. When starting communication such as when the power is turned on, which servo amplifier sends the request transmission first. It is necessary to decide. That is, before starting communication, it is necessary to set the two servo amplifiers to distinguish between the master and slave of the control, such as master or slave. If the settings are incorrect, normal synchronous control cannot be performed.

例えば、両方のサーボアンプに間違えて同じ設定をした場合、データの送受信がうまくいかず(情報の共有化ができず)、正常に同期制御することができなくなる。また、両方のサーボアンプに、先にリクエストを送信する設定をした場合、通信開始によって互いのリクエスト出力信号が通信ケーブル上で衝突し、通信用トランシーバなどに過大なストレスが掛かり、装置を破損する可能性があった。   For example, if both servo amplifiers are mistakenly set to the same setting, data cannot be transmitted / received successfully (information cannot be shared), and synchronization control cannot be performed normally. If both servo amplifiers are set to send a request first, the request output signals collide with each other on the communication cable due to the start of communication, causing excessive stress on the communication transceiver, etc., and damaging the device. There was a possibility.

本発明は上記課題を解決するものであり、2台のサーボアンプを通信ケーブルで接続するだけでマスター、スレーブの設定ができ、簡便に同期制御がおこなえるモータ制御システムを提供することを目的とする。   SUMMARY OF THE INVENTION The present invention solves the above-described problems, and an object of the present invention is to provide a motor control system that can be set as a master and a slave by simply connecting two servo amplifiers with a communication cable and can easily perform synchronous control. .

上記課題を解決するために請求項1に記載のモータ制御システムは、2台のサーボアンプを相互に接続して同期制御をおこなうモータ制御システムにおいて、前記サーボアンプは、駆動するサーボモータの位置情報を検出するエンコーダまたは他方のサーボアンプに接続されて通信をおこなう2系統の双方向通信手段と、前記エンコーダとの双方向通信制御をおこなうエンコーダ通信部と、他方のサーボアンプとの双方向通信制御をおこなう装置間通信部と、前記双方向通信手段と、前記エンコーダ通信部または装置間通信部を接続するセレクタと、前記エンコーダ通信部からの位置情報と、前記装置間通信部からの他方のモータ制御情報を元にして制御量を演算し、接続されたサーボモータに駆動信号を与えて制御をおこなう装置コントロール部を備え、各サーボアンプは、前記双方向通信手段の一方に駆動するサーボモータのエンコーダが接続され、他方の双方向通信手段間を通信ケーブで接続しており、前記装置コントロール部は、通信開始時に出力するセレクタ切替信号によって双方向通信手段と装置間通信部またはエンコーダ通信部を前記セレクタで選択的に接続し、同期制御におけるマスター、スレーブを自動判定する。   In order to solve the above problem, the motor control system according to claim 1 is a motor control system in which two servo amplifiers are connected to each other to perform synchronous control, wherein the servo amplifier includes position information of a servo motor to be driven. Two-way communication means connected to and communicating with the encoder or the other servo amplifier, the encoder communication unit for controlling the two-way communication with the encoder, and the two-way communication control with the other servo amplifier An inter-device communication unit, the bidirectional communication means, a selector for connecting the encoder communication unit or the inter-device communication unit, position information from the encoder communication unit, and the other motor from the inter-device communication unit A device controller that calculates the control amount based on the control information and gives a drive signal to the connected servo motor for control. Each servo amplifier is connected to an encoder of a servo motor that is driven to one of the bidirectional communication means, and the other bidirectional communication means is connected by a communication cable. A bidirectional communication means and an inter-device communication unit or an encoder communication unit are selectively connected by the selector by a selector switching signal output at the start of communication, and a master and a slave in synchronization control are automatically determined.

また、請求項2に記載のモータ制御システムは、通信開始時に前記セレクタの切替えによって双方向通信手段とエンコーダ通信部を接続したとき、前記エンコーダ通信部は、エンコーダに対するリクエストを送信し、前記エンコーダからの応答が受信されたサーボアンプは、同期制御のマスター、応答が受信されないサーボアンプは、スレーブと判定する。   In the motor control system according to claim 2, when the bidirectional communication means and the encoder communication unit are connected by switching the selector at the start of communication, the encoder communication unit transmits a request to the encoder, and the encoder The servo amplifier that receives the response is determined as the master for synchronous control, and the servo amplifier that does not receive the response is determined as the slave.

さらに、請求項3に記載のモータ制御システムの接続判定方法は、請求項1または請求項2に記載のモータ制御システムにおいて、サーボアンプは通信開始時に、装置コントロール部が出力するセレクタ切替信号によってエンコーダ通信部と双方向通信手段を接続し、エンコーダ通信部にリクエストコマンドをセットし、双方向通信手段に接続されているケーブルに対してリクエストを送信し、応答有無を判定するステップ1と、ステップ1において応答有の場合、セレクタ切替信号によって装置間通信部と他方の双方向通信手段を接続し、装置間通信部における装置間通信プロトコルに従った接続を確認するデータの受信有無を判定するステップ2と、ステップ1において応答無の場合、セレクタ切替信号によってエンコーダ通信部と他方の双方向通信手段を接続し、エンコーダ通信部にリクエストコマンドをセットし、双方向通信手段に接続されているケーブルに対してリクエストを送信し、その応答の有無を判定するステップ3と、ステップ3において応答有の場合、セレクタ切替信号によって装置間通信部と双方向通信手段を接続し、装置間通信部に接続確認データをセットし、接続先装置からの応答の有無を判定するステップ4を備え、ステップ1の応答の有無によって、マスター・スレーブのいずれかを推定し、ステップ2で受信有の場合はマスターと確定、ステップ3で応答有の場合、さらにステップ4で応答有の場合はスレーブと確定し、ステップ2、3、4において、受信無または応答無の場合は、接続異常と判定する。   Furthermore, the motor control system connection determination method according to claim 3 is the motor control system according to claim 1 or 2, wherein the servo amplifier is encoded by a selector switching signal output from the device control unit at the start of communication. Steps 1 and 1 for connecting a communication unit and a bidirectional communication unit, setting a request command in the encoder communication unit, transmitting a request to a cable connected to the bidirectional communication unit, and determining whether or not there is a response. If there is a response in step 2, the inter-device communication unit and the other two-way communication means are connected by the selector switching signal, and the presence or absence of data for confirming the connection according to the inter-device communication protocol in the inter-device communication unit is determined. If there is no response in step 1, the encoder communication unit and the other side are In step 3 and step 3 in which a bidirectional communication unit is connected, a request command is set in the encoder communication unit, a request is transmitted to the cable connected to the bidirectional communication unit, and the presence or absence of a response is determined. When there is a response, the inter-device communication unit and the bidirectional communication means are connected by the selector switching signal, the connection confirmation data is set in the inter-device communication unit, and the presence or absence of a response from the connection destination device is provided. Either master or slave is estimated based on the presence or absence of a response in step 1. If there is reception in step 2, it is determined as master, if there is a response in step 3, and if there is a response in step 4, it is determined as slave In steps 2, 3, and 4, if there is no reception or no response, it is determined that the connection is abnormal.

請求項1−3に記載のモータ制御システムおよびその接続判定方法によれば、2系統の双方向通信手段にエンコーダと通信ケーブルを接続し、エンコーダ通信部と装置間通信部の接続先をセレクタで切替えるため、通信開始時に互いのリクエスト信号が通信ケーブル上で衝突するのを防止でき、装置の破損を防止できる。また、2系統の双方向通信手段にエンコーダと通信ケーブルを接続するだけで、同期制御におけるマスター、スレーブを自動判定でできるため、予めマスター、スレーブの設定が不要になる。   According to the motor control system and the connection determination method according to claim 1-3, the encoder and the communication cable are connected to the two-way bidirectional communication means, and the connection destination of the encoder communication unit and the inter-device communication unit is selected by the selector. Since switching is performed, it is possible to prevent the request signals from colliding with each other on the communication cable at the start of communication, and to prevent damage to the apparatus. Further, since the master and slave in the synchronous control can be automatically determined by simply connecting the encoder and the communication cable to the two systems of bidirectional communication means, it is not necessary to set the master and slave in advance.

このように、エンコーダおよび通信ケーブルをサーボアンプの2系統の双方向通信手段に接続するだけで、簡便に同期制御がおこなえるモータ制御システムを提供できる。   In this way, a motor control system that can easily perform synchronous control can be provided simply by connecting the encoder and communication cable to the two-way bidirectional communication means of the servo amplifier.

2台のサーボアンプを相互に接続して同期制御をおこなうモータ制御システムにおいて、前記サーボアンプは、駆動するサーボモータの位置情報を検出するエンコーダまたは他方のサーボアンプに接続されて通信をおこなう2系統の双方向通信手段と、前記エンコーダとの双方向通信制御をおこなうエンコーダ通信部と、他方のサーボアンプとの双方向通信制御をおこなう装置間通信部と、前記双方向通信手段と、前記エンコーダ通信部または装置間通信部を接続するセレクタと、前記エンコーダ通信部からの位置情報と、前記装置間通信部からの他方のモータ制御情報を元にして制御量を演算し、接続されたサーボモータに駆動信号を与えて制御をおこなう装置コントロール部を備え、各サーボアンプは、前記双方向通信手段の一方に駆動するサーボモータのエンコーダが接続され、他方の双方向通信手段間を通信ケーブで接続しており、前記装置コントロール部は、通信開始時に出力するセレクタ切替信号によって双方向通信手段と装置間通信部またはエンコーダ通信部を前記セレクタで選択的に接続し、同期制御におけるマスター、スレーブを自動判定する。以下、図を参照しながら実施の形態について説明する。
(実施の形態1)
図1は、本発明のモータ制御システムの要部ブロック図である。モータ制御システムは、1台の上位コントローラと、2台のサーボアンプおよびサーボモータと、各通信ケーブルで構成される。
In a motor control system that performs synchronization control by connecting two servo amplifiers to each other, the servo amplifier is connected to an encoder that detects position information of the servo motor to be driven or the other servo amplifier to perform communication. Bi-directional communication means, an encoder communication section that performs bi-directional communication control with the encoder, an inter-device communication section that performs bi-directional communication control with the other servo amplifier, the bi-directional communication means, and the encoder communication The control amount is calculated based on the selector that connects the communication unit or the inter-device communication unit, the position information from the encoder communication unit, and the other motor control information from the inter-device communication unit, and the connected servo motor It is equipped with a device control unit that gives a drive signal to control, and each servo amplifier is driven to one of the bidirectional communication means The servo motor encoder is connected, and the other bidirectional communication means is connected by a communication cable, and the device control unit is configured to transmit the bidirectional communication unit and the inter-device communication unit or the device by a selector switching signal output at the start of communication. The encoder communication unit is selectively connected by the selector, and the master and slave in the synchronization control are automatically determined. Hereinafter, embodiments will be described with reference to the drawings.
(Embodiment 1)
FIG. 1 is a block diagram of a main part of the motor control system of the present invention. The motor control system includes one host controller, two servo amplifiers and servo motors, and communication cables.

図1において、サーボアンプ1には上位コントローラ8が接続され、サーボアンプ1とサーボモータ3はエンコーダ通信ケーブル5で、サーボアンプ2とサーボモータ4はエンコーダ通信ケーブル6で接続されている。サーボアンプ1とサーボアンプ2は、通信ケーブル7によって接続されている。2台のサーボアンプ1,2の構成は同じであり、以下、サーボアンプ1について説明する。   In FIG. 1, a host controller 8 is connected to the servo amplifier 1, the servo amplifier 1 and the servo motor 3 are connected by an encoder communication cable 5, and the servo amplifier 2 and the servo motor 4 are connected by an encoder communication cable 6. The servo amplifier 1 and the servo amplifier 2 are connected by a communication cable 7. The configuration of the two servo amplifiers 1 and 2 is the same, and the servo amplifier 1 will be described below.

サーボアンプ1は、装置コントロール部11と、エンコーダ通信部12と、装置間通信部13と、セレクタ14と、2系統の双方向通信手段15、16を備えており、以下、構成要素について説明する。   The servo amplifier 1 includes a device control unit 11, an encoder communication unit 12, an inter-device communication unit 13, a selector 14, and two systems of bidirectional communication means 15 and 16, and the components will be described below. .

装置コントロール部11は、マイコンなどで構成されており、上位コントローラ8から入力される制御情報8aを元に、自装置のモータ位置指令とサーボアンプ2へ送信する位置指令を決定し、送信する位置指令に駆動開始/停止などの指令情報を加えた装置間送信データ11cを生成して装置間通信部13に出力する。また、装置間通信部13から装置間受信データ13bを読み出し、その中に含まれるサーボアンプ2の動作状態と自装置の動作状態とを合成したフィードバックデータ11eを上位コントローラ8へ出力する。一方、モータ位置指令とエンコーダ受信データ12bに含まれるサーボモータ3の現在位置情報から速度・トルクを演算しモータ駆動信号11aをサーボモータ3に供給する。そして、電源投入直後などの通信開始時に、セレクタ14で接続先を選択し、エンコーダ通信部12または装置間通信部13を使用した通信によって、マスター/スレーブの自動判定をおこなう。詳細は後述する。   The device control unit 11 is composed of a microcomputer or the like, and based on the control information 8a input from the host controller 8, determines the motor position command of the own device and the position command to be transmitted to the servo amplifier 2, and transmits the position command. Inter-device transmission data 11c obtained by adding command information such as drive start / stop to the command is generated and output to the inter-device communication unit 13. Further, the inter-device reception data 13b is read from the inter-device communication unit 13, and the feedback data 11e obtained by synthesizing the operation state of the servo amplifier 2 and the operation state of the own device included therein is output to the host controller 8. On the other hand, the speed / torque is calculated from the current position information of the servo motor 3 included in the motor position command and the encoder reception data 12b, and the motor drive signal 11a is supplied to the servo motor 3. Then, at the start of communication such as immediately after the power is turned on, the connection destination is selected by the selector 14 and the master / slave is automatically determined by communication using the encoder communication unit 12 or the inter-device communication unit 13. Details will be described later.

エンコーダ通信部12は、エンコーダ通信のプロトコル制御をおこない、カスタムLSIなどの専用回路もしくはマイコンなどで構成されている。エンコーダへ送信するリクエストコマンドやエンコーダから読み出すデータのアドレスなどのエンコーダ送信データ11bが装置コントロール部11から入力され、入力データのパラレル−シリアル変換とシリアル通信ICのコントロール信号などのエンコーダ通信制御信号12aを生成してセレクタ14に出力する。また、セレクタ14から入力されるエンコーダ通信受信信号14cをシリアル−パラレル変換してエンコーダ受信データ12bを生成して装置コントロール部11に出力する。なお、エンコーダ通信部12と通信するデバイスは、エンコーダに限らず外部スケール等の制御対象の位置情報を取得できるものでもよい。   The encoder communication unit 12 controls the protocol of encoder communication, and is configured by a dedicated circuit such as a custom LSI or a microcomputer. Encoder transmission data 11b such as a request command to be transmitted to the encoder and an address of data read from the encoder is input from the apparatus control unit 11, and an encoder communication control signal 12a such as parallel-serial conversion of the input data and a control signal of the serial communication IC is received. Generate and output to the selector 14. Also, the encoder communication reception signal 14 c input from the selector 14 is serial-parallel converted to generate encoder reception data 12 b and output it to the device control unit 11. The device that communicates with the encoder communication unit 12 is not limited to an encoder, and may be a device that can acquire position information of a control target such as an external scale.

装置間通信部13は、サーボアンプ1とサーボアンプ2のデータ送受信のプロトコル制御をおこない、カスタムLSIなどの専用回路などで構成されており、装置コントロール部11から装置間送信データ11cが入力され、入力データのパラレル−シリアル変換とシリアル通信ICのコントロール信号を生成してセレクタ14に出力する。また、セレクタ14から入力される装置間通信受信信号14dをシリアル−パラレル変換して装置間受信データ13bを生成する。   The inter-device communication unit 13 performs protocol control for data transmission / reception between the servo amplifier 1 and the servo amplifier 2 and is configured by a dedicated circuit such as a custom LSI. The inter-device transmission data 11c is input from the device control unit 11, A control signal for parallel-serial conversion of input data and a serial communication IC is generated and output to the selector 14. The inter-device communication reception signal 14d input from the selector 14 is serial-parallel converted to generate inter-device reception data 13b.

セレクタ14は、装置コントロール部11からのセレクタ切替信号11dによってエンコーダ通信部12または装置間通信部13を、双方向通信手段15または双方向通信手段16のいずれか一方に接続する。   The selector 14 connects the encoder communication unit 12 or the inter-device communication unit 13 to either the bidirectional communication unit 15 or the bidirectional communication unit 16 by a selector switching signal 11 d from the device control unit 11.

双方向通信手段15は、セレクタ14から入力される制御信号14aを差動信号に変換してエンコーダ通信ケーブル5に送信し、エンコーダ通信ケーブル5から受信される差動信号を双方向通信手段15の受信信号15aとしてセレクタ14に出力する。   The bidirectional communication unit 15 converts the control signal 14 a input from the selector 14 into a differential signal, transmits the differential signal to the encoder communication cable 5, and transmits the differential signal received from the encoder communication cable 5 to the bidirectional communication unit 15. The received signal 15a is output to the selector 14.

双方向通信手段16は、他方のサーボアンプ2の双方向通信手段25と通信ケーブル7で接続され、セレクタ14から入力される制御信号14bを差動信号に変換して通信ケーブル7に送信し、通信ケーブル7から受信される差動信号を受信信号16aとしてセレクタ14に出力する。双方向通信手段15、16は、RS485トランシーバに代表されるシリアル通信ICで構成する。   The bidirectional communication means 16 is connected to the bidirectional communication means 25 of the other servo amplifier 2 via the communication cable 7, converts the control signal 14b input from the selector 14 into a differential signal, and transmits the differential signal to the communication cable 7. A differential signal received from the communication cable 7 is output to the selector 14 as a received signal 16a. The bidirectional communication means 15 and 16 are constituted by a serial communication IC represented by an RS485 transceiver.

ここで、マスター/スレーブの自動判定シーケンスについて、図1と図2を併用して説明する。この自動判定シーケンスは、通信開始時に動作を開始する。図2において、判定処理1までが本発明のステップ1、判定処理2までがステップ2、判定処理3までがステップ3、判定処理4までがステップ4に相当する。   Here, the master / slave automatic determination sequence will be described with reference to FIGS. This automatic determination sequence starts operation at the start of communication. In FIG. 2, the process up to determination process 1 corresponds to step 1 of the present invention, the process up to determination process 2 corresponds to step 2, the process up to determination process 3 corresponds to step 3, and the process up to determination process 4 corresponds to step 4.

まず、切替処理1(101)では、装置コントロール部11が出力するセレクタ切替信号11dによって、エンコーダ通信部12と双方向通信手段15を接続する。次の通信処理1(102)で、エンコーダ通信部12にリクエストコマンドをセットし、双方向通信手段15に接続されているケーブルに対してリクエストを送信する。   First, in the switching process 1 (101), the encoder communication unit 12 and the bidirectional communication means 15 are connected by a selector switching signal 11d output from the device control unit 11. In the next communication process 1 (102), a request command is set in the encoder communication unit 12 and the request is transmitted to the cable connected to the bidirectional communication means 15.

次の判定処理1(103)では、通信処理1のリクエストに対して、エンコーダからの応答の有無を判定する。   In the next determination process 1 (103), it is determined whether or not there is a response from the encoder in response to the request for communication process 1.

応答有の場合は切替処理2(104)へ、応答無の場合は切替処理3(108)へ分岐する。実施の形態1のサーボアンプ1は、双方向通信手段15にエンコーダが接続されており、エンコーダからの応答が有るので切替処理2へ分岐する。切替処理2では、セレクタ切替信号11dによって、装置間通信部13と双方向通信手段16を接続する。次の判定処理2では、装置間通信部13における装置間通信プロトコルに従った接続を確認するデータの受信有無を判定する。   If there is a response, the process branches to the switching process 2 (104), and if there is no response, the process branches to the switching process 3 (108). In the servo amplifier 1 according to the first embodiment, an encoder is connected to the bidirectional communication means 15, and there is a response from the encoder. In the switching process 2, the inter-device communication unit 13 and the bidirectional communication unit 16 are connected by the selector switching signal 11d. In the next determination process 2, it is determined whether or not data for confirming connection according to the inter-device communication protocol in the inter-device communication unit 13 is received.

受信有の場合は、処理1(106)へ分岐する。一方、予め決められた十分長い時間経過しても受信が無い場合は、受信無として処理2(107)へ分岐する。処理1では、判定処理2で受信したデータに対する応答の送信し、自装置をマスターと判定して、自動判定シーケンスを終了する。   If there is reception, the process branches to process 1 (106). On the other hand, if there is no reception even after a sufficiently long time, a branch is made to processing 2 (107) as no reception. In the process 1, a response to the data received in the determination process 2 is transmitted, the own apparatus is determined as the master, and the automatic determination sequence is terminated.

サーボアンプ1の双方向通信手段16には、通信ケーブル7が接続され、その先にサーボアンプ2が接続されており、データの受信が有るため、自装置をマスターと判定する。処理2では、相手装置からの受信が無く、同期制御ができないというエラー情報を上位コントローラ8にフィードバックして自動判定シーケンスを終了する。このように、サーボ
アンプ1は、自装置がマスターであることを自動的に判定することができる。
Since the communication cable 7 is connected to the bidirectional communication means 16 of the servo amplifier 1 and the servo amplifier 2 is connected to the end of the communication cable 16 and data is received, the apparatus is determined to be the master. In process 2, error information that there is no reception from the counterpart device and synchronization control is not possible is fed back to the host controller 8 and the automatic determination sequence is terminated. In this way, the servo amplifier 1 can automatically determine that its own device is the master.

次に、サーボアンプ2について、サーボアンプ1と動作が異なるマスター/スレーブの自動判定シーケンス部分について説明する。   Next, a description will be given of the master / slave automatic determination sequence portion of the servo amplifier 2 that is different in operation from the servo amplifier 1.

サーボアンプ2は、判定処理1において、双方向通信手段25にエンコーダの接続が無く、応答が無いため切替処理3(108)へ分岐する。切替処理3では、装置コントロール部21が出力するセレクタ切替信号21dによって、エンコーダ通信部22と双方向通信手段26を接続する。次の通信処理2(109)で、エンコーダ通信部22にリクエストコマンドをセットし、双方向通信手段26に接続されているケーブルに対してリクエストを送信する。   In the determination process 1, the servo amplifier 2 branches to the switching process 3 (108) because there is no connection to the bidirectional communication means 25 and there is no response. In the switching process 3, the encoder communication unit 22 and the bidirectional communication means 26 are connected by a selector switching signal 21d output from the device control unit 21. In the next communication process 2 (109), a request command is set in the encoder communication unit 22 and the request is transmitted to the cable connected to the bidirectional communication means 26.

判定処理3(110)では、通信処理2のリクエストに対してエンコーダからの応答の有無を判定する。応答有の場合は切替処理4(111)へ、応答無の場合は処理3(112)へ分岐する。処理3では、エンコーダ未接続エラーでトリップして自動判定を終了する。   In the determination process 3 (110), it is determined whether or not there is a response from the encoder with respect to the request of the communication process 2. If there is a response, the process branches to the switching process 4 (111), and if there is no response, the process branches to the process 3 (112). In process 3, an automatic disconnection is terminated by tripping due to an encoder unconnected error.

サーボアンプ2の双方向通信手段26には、エンコーダ通信ケーブル6を介してエンコーダが接続されており、応答が有るので切替処理4へ分岐し、切替処理4では、セレクタ切替信号21dによって装置間通信部23と双方向通信手段25を接続する。次の通信処理3(113)で装置間通信部23に接続を確認するデータをセットし、双方向通信手段25に接続されているケーブルに対してデータを送信する。   Since the encoder is connected to the bidirectional communication means 26 of the servo amplifier 2 via the encoder communication cable 6 and there is a response, the process branches to the switching process 4. In the switching process 4, communication between devices is performed by the selector switching signal 21 d. The unit 23 and the bidirectional communication means 25 are connected. In the next communication process 3 (113), data for confirming the connection is set in the inter-device communication unit 23, and the data is transmitted to the cable connected to the bidirectional communication means 25.

次の判定処理4(114)では、通信処理3の送信データに対する接続先装置からの応答の有無を判定する。応答有の場合は、処理4(115)へ、予め決められた十分長い時間経過しても応答が無い場合は、応答無として切替処理5(116)へ分岐する。処理4では、自装置をスレーブと判定して自動判定シーケンスを終了する。   In the next determination process 4 (114), it is determined whether or not there is a response from the connection destination device to the transmission data of the communication process 3. If there is a response, the process proceeds to process 4 (115). If there is no response after a predetermined sufficiently long time, the process branches to switching process 5 (116) as no response. In process 4, the self apparatus is determined as a slave and the automatic determination sequence is terminated.

サーボアンプ2の双方向通信手段25には、通信ケーブル7が接続され、その先にサーボアンプ1が接続され応答が有るため、自装置をスレーブと判定する。処理5では、相手装置からの応答が無く、同期制御ができないというエラーでトリップして自動判定シーケンスを終了する。このように、サーボアンプ2は自装置がスレーブであることを自動的に判定することができる。   Since the communication cable 7 is connected to the bidirectional communication means 25 of the servo amplifier 2 and the servo amplifier 1 is connected to the end of the communication cable 7 and there is a response, the apparatus is determined to be a slave. In process 5, the automatic determination sequence ends with a trip due to an error that there is no response from the counterpart device and synchronization control cannot be performed. In this way, the servo amplifier 2 can automatically determine that its own device is a slave.

このように、サーボアンプ1の双方向通信手段16とサーボアンプ2の双方向通信手段25を通信ケーブル7で接続し、自動判定シーケンスに従って判定するため、通信開始時のリクエストが衝突することがなく、装置の破損を防ぐことができる。また、自動判定シーケンスにより、それぞれのサーボアンプがマスター/スレーブを自動判定することで、前もってマスター/スレーブの設定を行わなくても同期制御を行うことができる。   In this way, since the bidirectional communication means 16 of the servo amplifier 1 and the bidirectional communication means 25 of the servo amplifier 2 are connected by the communication cable 7 and are determined according to the automatic determination sequence, requests at the start of communication do not collide. Can prevent damage to the device. Further, by automatically determining the master / slave by each servo amplifier by the automatic determination sequence, the synchronization control can be performed without setting the master / slave in advance.

本発明のモータ制御システムは、サーボアンプ以外にも通信ラインにより相互接続し、情報を送受信する装置に有用である。   The motor control system of the present invention is useful for an apparatus that is interconnected by a communication line and transmits / receives information in addition to a servo amplifier.

本発明の実施の形態1におけるサーボアンプの要部ブロック図Block diagram of main parts of servo amplifier according to the first embodiment of the present invention 本発明の実施の形態1における自動判定シーケンスのフローチャートFlowchart of automatic determination sequence in Embodiment 1 of the present invention

符号の説明Explanation of symbols

1、2 サーボアンプ
3、4 サーボモータ
5,6 エンコーダ通信ケーブル
7 通信ケーブル
8 上位コントローラ
11、21 装置コントロール部
12、22 エンコーダ通信部
13、23 装置間通信部
14、24 セレクタ
15 、16、25、26 双方向通信手段
8a 制御指令
11a、21a モータ駆動信号
11b、21b エンコーダ送信データ
11c、21c 装置間送信データ
11d、21d セレクタ切替信号
11e フィードバックデータ
12a、22a エンコーダ通信制御信号
12b、22b エンコーダ受信データ
13a、23a 装置間通信制御信号
13b、23b 装置間受信データ
14a、14b、24a、24b 制御信号
14c、24c エンコーダ通信受信信号
14d、24d 装置間通信受信信号
15a、16a、25a,26a 受信信号
1, 2 Servo amplifier 3, 4 Servo motor 5, 6 Encoder communication cable 7 Communication cable 8 Host controller 11, 21 Device control unit 12, 22 Encoder communication unit 13, 23 Inter-device communication unit 14, 24 Selector 15, 16, 25 , 26 Bidirectional communication means 8a Control command 11a, 21a Motor drive signal 11b, 21b Encoder transmission data 11c, 21c Inter-device transmission data 11d, 21d Selector switching signal 11e Feedback data 12a, 22a Encoder communication control signal 12b, 22b Encoder reception data 13a, 23a Inter-device communication control signal 13b, 23b Inter-device received data 14a, 14b, 24a, 24b Control signal 14c, 24c Encoder communication received signal 14d, 24d Inter-device communication received signal 15a, 1 a, 25a, 26a received signal

Claims (3)

2台のサーボアンプを相互に接続して同期制御をおこなうモータ制御システムにおいて、
前記サーボアンプは、
駆動するサーボモータの位置情報を検出するエンコーダまたは他方のサーボアンプに接続されて通信をおこなう2系統の双方向通信手段と、
前記エンコーダとの双方向通信制御をおこなうエンコーダ通信部と、
他方のサーボアンプとの双方向通信制御をおこなう装置間通信部と、
前記双方向通信手段と、前記エンコーダ通信部または装置間通信部を接続するセレクタと、
前記エンコーダ通信部からの位置情報と、前記装置間通信部からの他方のモータ制御情報を元にして制御量を演算し、接続されたサーボモータに駆動信号を与えて制御をおこなう装置コントロール部を備え、
各サーボアンプは、前記双方向通信手段の一方に駆動するサーボモータのエンコーダが接続され、他方の双方向通信手段間を通信ケーブで接続しており、
前記装置コントロール部は、通信開始時に出力するセレクタ切替信号によって双方向通信手段と装置間通信部またはエンコーダ通信部を前記セレクタで選択的に接続し、同期制御におけるマスター、スレーブを自動判定することを特徴としたモータ制御システム。
In a motor control system that performs synchronous control by connecting two servo amplifiers together,
The servo amplifier is
Two-way bidirectional communication means for communicating by being connected to an encoder for detecting position information of a servo motor to be driven or the other servo amplifier;
An encoder communication unit that performs bidirectional communication control with the encoder;
An inter-device communication unit that performs bidirectional communication control with the other servo amplifier;
A selector that connects the bidirectional communication means and the encoder communication unit or the inter-device communication unit;
A device control unit that calculates a control amount based on position information from the encoder communication unit and the other motor control information from the inter-device communication unit, and gives a drive signal to the connected servo motor to perform control. Prepared,
Each servo amplifier is connected to an encoder of a servo motor that is driven to one of the bidirectional communication means, and the other bidirectional communication means is connected with a communication cable,
The device control unit selectively connects a bidirectional communication means and an inter-device communication unit or an encoder communication unit with the selector by a selector switching signal output at the start of communication, and automatically determines a master and a slave in synchronous control. Characteristic motor control system.
通信開始時に前記セレクタによって双方向通信手段とエンコーダ通信部を接続したとき、
前記エンコーダ通信部は、エンコーダに対するリクエストを送信し、
前記エンコーダからの応答が受信されたサーボアンプは、同期制御のマスター、応答が受信されないサーボアンプは、スレーブと判定する請求項1に記載のモータ制御システム。
When the bidirectional communication means and the encoder communication unit are connected by the selector at the start of communication,
The encoder communication unit transmits a request to the encoder,
The motor control system according to claim 1, wherein a servo amplifier that receives a response from the encoder is determined as a master for synchronous control, and a servo amplifier that does not receive a response is determined as a slave.
請求項1または請求項2に記載のモータ制御システムにおいて、
サーボアンプは通信開始時に、装置コントロール部が出力するセレクタ切替信号によってエンコーダ通信部と双方向通信手段を接続し、エンコーダ通信部にリクエストコマンドをセットし、双方向通信手段に接続されているケーブルに対してリクエストを送信し、応答有無を判定するステップ1と、
ステップ1において応答有の場合、セレクタ切替信号によって装置間通信部と他方の双方向通信手段を接続し、装置間通信部における装置間通信プロトコルに従った接続を確認するデータの受信有無を判定するステップ2と、
ステップ1において応答無の場合、セレクタ切替信号によってエンコーダ通信部と他方の双方向通信手段を接続し、エンコーダ通信部にリクエストコマンドをセットし、双方向通信手段に接続されているケーブルに対してリクエストを送信し、その応答の有無を判定するステップ3と、
ステップ3において応答有の場合、セレクタ切替信号によって装置間通信部と双方向通信手段を接続し、装置間通信部に接続確認データをセットし、接続先装置からの応答の有無を判定するステップ4を備え、
ステップ1の応答の有無によって、マスター・スレーブのいずれかを推定し、ステップ2で受信有の場合はマスターと確定、ステップ3で応答有の場合、さらにステップ4で応答有の場合はスレーブと確定し、ステップ2、3、4において、受信無または応答無の場合は、接続異常と判定するモータ制御システムの接続判定方法。
In the motor control system according to claim 1 or 2,
At the start of communication, the servo amplifier connects the encoder communication unit and bidirectional communication means by the selector switching signal output from the device control unit, sets a request command in the encoder communication unit, and connects the cable connected to the bidirectional communication means. Step 1 for sending a request to the server and determining whether or not there is a response;
If there is a response in step 1, the inter-device communication unit and the other two-way communication means are connected by the selector switching signal, and the presence / absence of reception of data for confirming the connection according to the inter-device communication protocol in the inter-device communication unit is determined. Step 2 and
If there is no response in step 1, the encoder communication unit and the other bidirectional communication means are connected by the selector switching signal, a request command is set in the encoder communication part, and a request is made to the cable connected to the bidirectional communication means. Step 3 for determining whether or not there is a response;
If there is a response in step 3, the inter-device communication unit and the bidirectional communication means are connected by the selector switching signal, connection confirmation data is set in the inter-device communication unit, and the presence / absence of a response from the connection destination device is determined. With
Estimate either master or slave depending on whether there is a response in step 1. If there is a reception in step 2, confirm as master, if there is a response in step 3, and if there is a response in step 4, confirm as slave In steps 2, 3, and 4, the connection determination method of the motor control system determines that the connection is abnormal when there is no reception or no response.
JP2008106508A 2008-04-16 2008-04-16 Motor control system and connection determination method for the same Pending JP2009258949A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008106508A JP2009258949A (en) 2008-04-16 2008-04-16 Motor control system and connection determination method for the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008106508A JP2009258949A (en) 2008-04-16 2008-04-16 Motor control system and connection determination method for the same

Publications (1)

Publication Number Publication Date
JP2009258949A true JP2009258949A (en) 2009-11-05

Family

ID=41386293

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008106508A Pending JP2009258949A (en) 2008-04-16 2008-04-16 Motor control system and connection determination method for the same

Country Status (1)

Country Link
JP (1) JP2009258949A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022185677A1 (en) * 2021-03-04 2022-09-09 オムロン株式会社 Encoder specifying method and driver

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022185677A1 (en) * 2021-03-04 2022-09-09 オムロン株式会社 Encoder specifying method and driver

Similar Documents

Publication Publication Date Title
US20110029137A1 (en) Motor devices, and motor driving system and integrated circuit device comprising the same
JP5204214B2 (en) Mobile machine control system
CN107193248B (en) Motor control device, control method, and recording medium
JP2010033309A (en) Motor control system, and connection determination method thereof
US7743273B2 (en) Serial communication system and method for transmitting and receiving data in synchronization with a clock signal
JP6915993B2 (en) Motor operation control system, multi-axis mechanical device, motor operation control method
JP2009258949A (en) Motor control system and connection determination method for the same
JP4980292B2 (en) Numerical control system that communicates with multiple amplifiers at different communication cycles
KR20160142440A (en) Inverter controlling method
JP2008029161A (en) Serial communication device for controlling motor
JP2016225942A (en) Multiplex communication device
JP2010141819A (en) Communication device, communication method, and communication program
JP4548613B2 (en) Servo system
KR101439149B1 (en) Apparatus for controlling external electric devices
JP2007195266A (en) Multishaft motor position detection signal transmitter
JP5353533B2 (en) Servo control system and its abnormality detection method
JP2017208713A (en) Communication device, communication method, program, and communication system
JP5940406B2 (en) Robot controller
JP2009232491A (en) Motor driving communication system
KR101492452B1 (en) Apparatus for controlling external electric devices
JP2006033475A (en) Communications system and communication apparatus
KR101845125B1 (en) EtherCAT-based motion control module with built-in virtual slave device and control method thereof
JP4605043B2 (en) Communication processing method
WO2003014947A1 (en) Host apparatus, electronic device, and transmission system control method
JP4214974B2 (en) Communication data block transmission method