JP2008029161A - Serial communication device for controlling motor - Google Patents

Serial communication device for controlling motor Download PDF

Info

Publication number
JP2008029161A
JP2008029161A JP2006201556A JP2006201556A JP2008029161A JP 2008029161 A JP2008029161 A JP 2008029161A JP 2006201556 A JP2006201556 A JP 2006201556A JP 2006201556 A JP2006201556 A JP 2006201556A JP 2008029161 A JP2008029161 A JP 2008029161A
Authority
JP
Japan
Prior art keywords
communication
motor
data
unit
motor drive
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2006201556A
Other languages
Japanese (ja)
Other versions
JP5301088B2 (en
Inventor
Junichi Yoshida
純一 吉田
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.)
Juki Corp
Original Assignee
Juki 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 Juki Corp filed Critical Juki Corp
Priority to JP2006201556A priority Critical patent/JP5301088B2/en
Publication of JP2008029161A publication Critical patent/JP2008029161A/en
Application granted granted Critical
Publication of JP5301088B2 publication Critical patent/JP5301088B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Multiple Motors (AREA)
  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a serial communication device for controlling a motor achieving efficient serial communication. <P>SOLUTION: Motor driving devices 402-403 are each provided with communication I/F sections 409, 410 for performing communication with a high-order device and a low-order device, an access control unit 412 and a line setter 411. When a control command signal is transmitted from a high-order control device 401 to each of motors, the line setter sets a line of both the communication I/F sections and a line between the communication I/F section of high-order device side and the access control unit, and inputs the control command signal into the access control unit of each motor driving device. When data are transmitted from each motor driving device to the high-order control device, the line setter of each motor driving device positioned on the high-order device side connects a line of both the communication I/F sections to transmit the data to the high-order control device. In such a configuration, wiring efficiency is improved and efficient serial communication is achieved. <P>COPYRIGHT: (C)2008,JPO&amp;INPIT

Description

本発明は、モータ制御用シリアル通信装置、更に詳細には、上位制御装置(ホスト制御装置)と、この制御対象となるモータ駆動装置との間を接続するモータ制御用シリアル通信装置に関するものである。   The present invention relates to a serial communication device for motor control, and more particularly to a serial communication device for motor control for connecting a host control device (host control device) and a motor drive device to be controlled. .

近年、上位制御装置と複数のモータ駆動装置との間をシリアル通信で接続し、このシリアル通信を介してモータに対する動作指令を与えることが省配線化、高機能化などを目的として広く行われるようになった。このようなものの例としてシリアル通信の物理層にイーサネット(登録商標)等を適用したものがある。   In recent years, connecting a host control device and a plurality of motor drive devices by serial communication, and giving an operation command to the motor via this serial communication has been widely performed for the purpose of reducing wiring and increasing functionality. Became. As an example of this, there is one in which Ethernet (registered trademark) or the like is applied to the physical layer of serial communication.

図8は、従来のモータ制御用シリアル通信装置の一構成例を示すブロック図である。マスタ装置として機能する上位制御装置101は、通信ケーブル106および通信コネクタ109を介してネットワークの中継装置となるハブ102に接続されている。ハブ102は、通信ケーブル106および通信コネクタ109を介してサーボモータの駆動を行うモータ駆動装置103〜105に接続されている。上位制御装置101は、送受信データをフレームフォーマットにエンコード/デコードするアクセス制御部107、データの交換を行う通信I/F部108、及び通信コネクタ109を備えている。同様に、モータ駆動装置103〜105も、同様なアクセス制御部107、通信I/F部108及び通信コネクタ109を備えている。   FIG. 8 is a block diagram showing an example of the configuration of a conventional motor control serial communication device. The host control device 101 functioning as a master device is connected to a hub 102 serving as a network relay device via a communication cable 106 and a communication connector 109. The hub 102 is connected via a communication cable 106 and a communication connector 109 to motor drive devices 103 to 105 that drive the servo motor. The host control apparatus 101 includes an access control unit 107 that encodes / decodes transmission / reception data into / from a frame format, a communication I / F unit 108 that exchanges data, and a communication connector 109. Similarly, the motor driving devices 103 to 105 also include the same access control unit 107, communication I / F unit 108, and communication connector 109.

通常これらモータ駆動装置は、多数台配置されることになるが、図8においては、説明を簡略にするために、モータ駆動装置が3台の場合を例として示している。全体としては、ハブ102に対して上位制御装置101と全てのモータ駆動装置103〜105が、送信と受信に各々独立した経路を持つ通信ケーブル106によって接続された構成になっている。   Normally, a large number of these motor drive devices are arranged. However, in order to simplify the explanation, FIG. 8 shows an example in which there are three motor drive devices. As a whole, the host controller 101 and all of the motor drive devices 103 to 105 are connected to the hub 102 by communication cables 106 having independent paths for transmission and reception.

この構成において、上位制御装置101からの指令送信に対し、モータ駆動装置103〜105が応答返信を行うマスタ・スレーブ方式の通信が一般に行われる。図8においては、上位制御装置101がマスタ装置に相当し、モータ駆動装置103〜105がスレーブ装置に相当する。上位制御装置101から送信された指令データはハブ102を経由しモータ駆動装置103〜105に伝送され、また、モータ駆動装置103〜105からの応答データもハブ102を経由して上位制御装置101に伝送される。上位制御装置101は、1つのモータ駆動装置103との送受信が終わると次のモータ駆動装置104との送受信を行う、ということを順に実行し、全てのモータ駆動装置103〜105との送受信が完了した時点で1つの通信サイクルが完了する。この通信サイクルを繰り返し実行することでリアルタイム通信を実現している。   In this configuration, master-slave communication is generally performed in which the motor driving devices 103 to 105 return responses to command transmission from the host control device 101. In FIG. 8, the host control device 101 corresponds to a master device, and the motor drive devices 103 to 105 correspond to slave devices. The command data transmitted from the host control device 101 is transmitted to the motor drive devices 103 to 105 via the hub 102, and the response data from the motor drive devices 103 to 105 is also transmitted to the host control device 101 via the hub 102. Is transmitted. The host control device 101 sequentially executes transmission / reception with the next motor driving device 104 when transmission / reception with one motor driving device 103 is completed, and transmission / reception with all motor driving devices 103 to 105 is completed. At this point, one communication cycle is completed. Real-time communication is realized by repeatedly executing this communication cycle.

さらに、図9は、特許文献1で示すような、モータ制御用シリアル通信装置の他の構成例を示すブロック図である。図9に示す上位制御装置201は、送受信一組の通信制御を行う第1の通信IC202と、送信端子が第1の通信IC202の送信端子に、受信端子が第1の通信IC202の受信端子にそれぞれ接続された第1の通信コネクタ203とを備えている。モータ駆動装置204は、送受信一組の通信制御を行う第2の通信IC205と、受信端子が第2の通信IC205の受信端子に接続された第2の通信コネクタ206と、送信端子が第2の通信IC205の送信端子に、受信端子が第2の通信コネクタ206の送信端子にそれぞれ接続された第3の通信コネクタ207とを備えている。   Further, FIG. 9 is a block diagram showing another configuration example of the motor control serial communication device as shown in Patent Document 1. FIG. The host controller 201 shown in FIG. 9 includes a first communication IC 202 that performs a set of transmission / reception communication control, a transmission terminal as the transmission terminal of the first communication IC 202, and a reception terminal as the reception terminal of the first communication IC 202. A first communication connector 203 connected thereto is provided. The motor driving device 204 includes a second communication IC 205 that performs a transmission / reception set of communication control, a second communication connector 206 whose reception terminal is connected to the reception terminal of the second communication IC 205, and a transmission terminal that is a second communication terminal. The transmission terminal of the communication IC 205 includes a third communication connector 207 whose reception terminal is connected to the transmission terminal of the second communication connector 206.

上位制御装置201と最前段に配置されたモータ駆動装置204との間の接続においては、送信と受信に各々独立した経路を有する第1の通信ケーブル208を用いて第1の通信コネクタ203と第2の通信コネクタ206とを接続している。また、各モータ駆動装置204どうしの接続においては、第1の通信ケーブル208を用いて一方のモータ駆動装置204が備える第3の通信コネクタ207と他方のモータ駆動装置204が備える第2の通信コネクタ206を接続している。最後段に配置されたモータ駆動装置204においては、第3の通信コネクタ207にこの送信端子と受信端子を結ぶ第2の通信ケーブル209を接続し、これらの構成により上位制御装置201と各モータ駆動装置204をデイジィチェーン接続するようにしている。
特開2003−189654号公報
In the connection between the host control device 201 and the motor drive device 204 disposed in the forefront stage, the first communication connector 203 and the first communication cable 208 having the independent paths for transmission and reception are used. 2 communication connectors 206 are connected. Further, in the connection between the motor drive devices 204, the third communication connector 207 provided in one motor drive device 204 and the second communication connector provided in the other motor drive device 204 using the first communication cable 208 are used. 206 is connected. In the motor drive device 204 arranged at the last stage, the second communication cable 209 connecting the transmission terminal and the reception terminal is connected to the third communication connector 207, and by these configurations, the host control device 201 and each motor drive are connected. The device 204 is daisy chained.
JP 2003-189654 A

しかしながら、図8に示した従来例では、伝送経路の中心にハブ102を配置したいわゆるスター配線であり、実際の機器の配置として、ハブ102を中心にして放射状に上位制御装置101とモータ駆動装置103〜105を設置することは、スペース効率が悪くなるので避けられがちである。したがって、図8の上位制御装置101とモータ駆動装置103〜105を横に並べる配置とするのが通常である。この場合、通信ケーブル106が束になる箇所ができるため配線効率が悪く、シリアル通信で接続することの大きな目的である省配線の利点が十分には得られないという問題があった。また、ハブ102の存在がシステム全体のコストを上昇させていることも問題である。   However, the conventional example shown in FIG. 8 is a so-called star wiring in which the hub 102 is arranged at the center of the transmission path. As an actual arrangement of the devices, the host controller 101 and the motor driving device are arranged radially around the hub 102. Installation of 103 to 105 tends to be avoided because space efficiency is deteriorated. Therefore, it is normal to arrange the host control device 101 and the motor drive devices 103 to 105 in FIG. 8 side by side. In this case, there is a problem that the wiring efficiency is low because a place where the communication cables 106 are bundled, and the advantage of the reduced wiring, which is a major purpose of connection by serial communication, cannot be obtained sufficiently. Another problem is that the presence of the hub 102 increases the cost of the entire system.

また、特許文献1に示す従来例では、上記問題点を解決するため、モータ駆動装置内部に配した通信経路と通信ケーブルの経路を合わせて、全体としてループ状の通信経路を形成しているために、以下の問題がある。
(1)ある区間で通信ケーブルが断線した場合、上位制御装置との通信が全て停止するとともに、通信ケーブルが断線した区間を特定することができないため、障害時のケーブル断線箇所の特定は人間によって区間ごとに確認する必要がある。
(2)モータ駆動装置内部に配置した通信コネクタ及び通信経路を多段中継するために、多重反射が発生し、高速通信には不向きである。
Further, in the conventional example shown in Patent Document 1, in order to solve the above problem, the communication path arranged inside the motor driving device and the path of the communication cable are combined to form a loop-shaped communication path as a whole. However, there are the following problems.
(1) When a communication cable is disconnected in a certain section, all communication with the host controller is stopped and the section where the communication cable is disconnected cannot be specified. It is necessary to check every section.
(2) Since the communication connector and the communication path arranged in the motor drive device are relayed in multiple stages, multiple reflection occurs, which is not suitable for high-speed communication.

本発明は、上記のような問題点を解決するためになされたもので、効率的なシリアル通信を行うことが可能なモータ制御用シリアル通信装置を提供することを課題とする。   The present invention has been made to solve the above-described problems, and an object thereof is to provide a motor control serial communication device capable of performing efficient serial communication.

本発明は、
複数のモータに対する制御指令信号を発生させる上位制御装置と、該上位制御装置からの制御指令信号に基づいて各モータを駆動するモータ駆動装置から構成され、上位制御装置と各モータ駆動装置がシリアルに接続されて、通信I/F部を介してデータを相互にシリアルに送受信するモータ制御用シリアル通信装置であって、
前記各モータ駆動装置は、上位側装置と通信するための第1の通信I/F部と、下位側装置と通信するための第2の通信I/F部と、データを送受信するためのアクセス制御部と、第1の通信I/F部と、第2の通信I/F部と、アクセス制御部との間の回線を設定するための回線設定部とを有し、
前記上位制御装置から各モータに制御指令信号を伝達する場合には、前記回線設定部は、第1の通信I/F部とアクセス制御部間の回線並びに第1と第2の通信I/F部間の回線を接続して、制御指令信号を各モータ駆動装置のアクセス制御部に入力させ、各モータ駆動装置からデータを上位制御装置に伝達する場合には、上位装置側に位置する各モータ駆動装置の回線設定部が、第1と第2の通信I/F部間の回線を接続して、該データを上位制御装置に伝達させることを特徴とする。
The present invention
A host controller that generates control command signals for a plurality of motors and a motor drive device that drives each motor based on the control command signals from the host controller, and the host controller and each motor driver are serially connected. A serial communication device for motor control that is connected and serially transmits and receives data via a communication I / F unit,
Each of the motor drive devices has a first communication I / F unit for communicating with a higher-level device and a second communication I / F unit for communicating with a lower-level device, and an access for transmitting and receiving data. A line setting unit for setting a line between the control unit, the first communication I / F unit, the second communication I / F unit, and the access control unit;
When the control command signal is transmitted from the host controller to each motor, the line setting unit is configured to connect the line between the first communication I / F unit and the access control unit, and the first and second communication I / Fs. When connecting the lines between the units, allowing the control command signal to be input to the access control unit of each motor drive device, and transmitting the data from each motor drive device to the host control device, each motor located on the host device side The line setting unit of the drive device connects the line between the first and second communication I / F units and transmits the data to the host controller.

本発明によれば、モータ駆動装置には、上位側装置と通信するための通信I/F部と、下位側装置と通信するための通信I/F部が設けられ、回線設定部によりアクセス制御部と両通信I/F部間の回線が通信モードに応じた回線に設定されるので、中継用のハブが不要になるとともに、配線効率が向上し、効率的なシリアル通信が可能となる。   According to the present invention, the motor drive device is provided with a communication I / F unit for communicating with the higher-level device and a communication I / F unit for communicating with the lower-level device, and access control is performed by the line setting unit. Since the line between the communication unit and both communication I / F units is set to a line corresponding to the communication mode, a relay hub is not required, the wiring efficiency is improved, and efficient serial communication is possible.

以下、図面に示す実施例に基づいて本発明を詳細に説明する。   Hereinafter, the present invention will be described in detail based on embodiments shown in the drawings.

図1は、本発明のモータ制御用シリアル通信装置の一実施例のブロック図で、上位制御装置401からモータ駆動装置402〜404への下りデータ伝送時の信号の流れを示している。説明を簡略にするために、モータ駆動装置が3台の場合を例として示しているが、それ以上のモータ駆動装置を接続することもできる。また各モータ駆動装置402〜404には、それぞれモータ(不図示)が接続されていて、各モータ駆動装置は、上位制御装置401から送信される指令データ(制御指令信号)をアクセス制御部412で受信してモータに出力するとともに、モータの位置、速度、電流値などのデータをアクセス制御部412に取り込んで、上位制御装置401あるいは他のモータ駆動装置に送信する。   FIG. 1 is a block diagram of an embodiment of a serial communication device for motor control according to the present invention, and shows a signal flow during downlink data transmission from a host control device 401 to motor drive devices 402 to 404. In order to simplify the description, the case where there are three motor driving devices is shown as an example, but more motor driving devices can be connected. Each motor driving device 402 to 404 is connected to a motor (not shown), and each motor driving device receives command data (control command signal) transmitted from the host control device 401 by the access control unit 412. The data is received and output to the motor, and data such as the position, speed, and current value of the motor is taken into the access control unit 412 and transmitted to the host controller 401 or another motor drive device.

上位制御装置401は、送受信データをフレームフォーマットにエンコード/デコードするアクセス制御部406と、モータ駆動装置402〜404と通信しデータの交換を行う通信I/F部407と、通信コネクタ408を備えている。   The host control device 401 includes an access control unit 406 that encodes / decodes transmission / reception data into / from a frame format, a communication I / F unit 407 that communicates with the motor driving devices 402 to 404 and exchanges data, and a communication connector 408. Yes.

各モータ駆動装置402〜404は、上位側装置と通信しデータの交換を行う上位側通信I/F部409と、下位側装置と通信しデータの交換を行う通信I/F部410と、送受信データをフレームフォーマットにエンコード/デコードするアクセス制御部412と、上位側通信I/F部409と下位側通信I/F部410の端末側インタフェースの回線設定並びに両通信I/F部409、410とアクセス制御部412間の回線設定を行う回線設定部411と、2つの通信ポート408を備えている。   Each motor driving device 402 to 404 transmits / receives data to / from a higher-level communication I / F unit 409 that communicates with a higher-level device and exchanges data, and a communication I / F unit 410 that communicates with a lower-level device and exchanges data. An access control unit 412 that encodes / decodes data in a frame format, line settings for the terminal side interfaces of the higher-level communication I / F unit 409 and the lower-level communication I / F unit 410, and both communication I / F units 409 and 410; A line setting unit 411 for setting a line between the access control units 412 and two communication ports 408 are provided.

各モータ駆動装置402〜404の回線設定部411は、回線設定用のスイッチ414〜416を有する。スイッチ414〜416は、A点またはB点のどちらかに接続する2点スイッチで説明するが、A点およびB点にも接続しない中間点を有するスイッチであってもよい。また、モータ駆動装置402〜404は、下位側通信I/F部410で検出されたケーブル断線検出信号413をそれぞれアクセス制御部412に送信する。   The line setting unit 411 of each of the motor drive devices 402 to 404 includes line setting switches 414 to 416. The switches 414 to 416 are described as two-point switches connected to either the point A or the point B, but may be switches having intermediate points not connected to the points A and B. In addition, the motor driving devices 402 to 404 transmit the cable disconnection detection signal 413 detected by the lower communication I / F unit 410 to the access control unit 412.

モータ駆動装置402の上位側通信ポート408は、通信ケーブル405を介して上位制御装置401の通信ポート408と接続され、その下位側通信ポート408は、通信ケーブル405を介してモータ駆動装置403の上位側通信ポート408と接続される。モータ駆動装置403の下位側通信ポート408は、通信ケーブル405を介してモータ駆動装置404の上位側通信ポート408と接続される。モータ駆動装置404の下位側には、モータ駆動装置は設けられていないので、その下位側通信ポート408は空き状態となっている。   The upper communication port 408 of the motor drive device 402 is connected to the communication port 408 of the upper control device 401 via the communication cable 405, and the lower communication port 408 is connected to the upper port of the motor drive device 403 via the communication cable 405. Side communication port 408. The lower communication port 408 of the motor driving device 403 is connected to the upper communication port 408 of the motor driving device 404 via the communication cable 405. Since the motor drive device is not provided on the lower side of the motor drive device 404, the lower-side communication port 408 is empty.

図2は、モータ制御用シリアル通信装置の伝送路上のデータの時間的配置を示した図であり、伝送タイミングデータSYNは、上位制御装置401からモータ駆動装置402〜404へ伝送タイミングを与える同期用のデータである。RSP1〜RSP3は、モータ駆動装置402〜404から上位制御装置401へ送信されるデータである。CMDは、上位制御装置401からモータ駆動装置402〜404への送信データである。また、DDはモータ駆動装置間で通信を行う時の下りデータで、UDはモータ駆動装置間で通信を行う時の上りデータである。ある伝送タイミングデータSYNが発生してから次の伝送タイミングデータSYNが発生するまでが、1通信サイクルの周期となる。   FIG. 2 is a diagram showing the temporal arrangement of data on the transmission path of the motor control serial communication device. The transmission timing data SYN is used for synchronization to give transmission timing from the host control device 401 to the motor drive devices 402 to 404. It is data of. RSP1 to RSP3 are data transmitted from the motor drive devices 402 to 404 to the host control device 401. CMD is transmission data from the host control device 401 to the motor drive devices 402 to 404. Further, DD is downlink data when communication is performed between the motor drive devices, and UD is uplink data when communication is performed between the motor drive devices. The period from one transmission timing data SYN to the next transmission timing data SYN is one communication cycle.

以上の構成において、上位制御装置401からモータ駆動装置402〜404にデータを伝送するときは、図1に示すように、モータ駆動装置402〜404の内部に設けられた回線設定部411のスイッチ414、スイッチ415及びスイッチ416は全てA側に設定され、図1で太く示されている伝送路が形成される。この状態で、上位制御装置401は全てのモータ駆動装置402〜404に対して図2に示す伝送タイミングデータSYNを送信する。   In the above configuration, when data is transmitted from the host controller 401 to the motor drive devices 402 to 404, as shown in FIG. 1, the switch 414 of the line setting unit 411 provided in the motor drive devices 402 to 404 is provided. The switches 415 and 416 are all set to the A side, and the transmission path shown thick in FIG. 1 is formed. In this state, the host control device 401 transmits transmission timing data SYN shown in FIG. 2 to all the motor drive devices 402 to 404.

上位制御装置401からの伝送タイミングデータSYNを受信することにより、モータ駆動装置402〜404は自局の内部タイマーを上位制御装置401に同期させる。モータ駆動装置402〜404は、内部タイマーが予め自局に設定されている値になったら、自局のサーボアンプ、主軸アンプ等のモータ位置データ、モータ速度データ、モータ電流データ、アラームステータス等を含むモータのデータを上位制御装置401に伝送する。   By receiving the transmission timing data SYN from the host controller 401, the motor driving devices 402 to 404 synchronize the internal timer of the own station with the host controller 401. When the internal timer reaches a value set in advance in the own station, the motor driving devices 402 to 404 send motor position data, motor speed data, motor current data, alarm status, etc. of the servo amplifier and spindle amplifier of the own station. The included motor data is transmitted to the host controller 401.

たとえば、図3には、モータ駆動装置403が、このモータ駆動装置によって駆動されるモータのデータを上位制御装置401に伝送する状態が図示されている。データ伝送のために、このモータ駆動装置403の回線設定部411のスイッチ415はB側に設定され、上位側通信I/F部409とアクセス制御部412間が接続され、また上位側のモータ駆動装置402の通信I/F部409と410間がスイッチ415を介して接続される。これにより、図3で太く図示されている伝送路が形成され、モータ駆動装置403のアクセス制御部412から、このモータ駆動装置によって駆動されるモータのデータを上位制御装置401に伝送することができる。   For example, FIG. 3 illustrates a state in which the motor driving device 403 transmits data of the motor driven by the motor driving device to the host control device 401. For data transmission, the switch 415 of the line setting unit 411 of the motor driving device 403 is set to the B side, the upper communication I / F unit 409 and the access control unit 412 are connected, and the upper motor drive Communication I / F units 409 and 410 of the device 402 are connected via a switch 415. 3 is formed, and the data of the motor driven by this motor drive device can be transmitted from the access control unit 412 of the motor drive device 403 to the host control device 401. .

上記では、モータ駆動装置403がそのモータデータを上位制御装置401に伝送する例を示したが、モータ駆動装置402あるいは404がモータデータを伝送する場合には、上記説明したのと同様に、関連するモータ駆動装置の回線設定部411のスイッチ415をB側に、他のスイッチをA側に設定する。モータ駆動装置402〜404から送信されるデータは、図2のタイミングでは、RSP1〜RSP3に相当するので、そのタイミングでスイッチ415をB側に設定するようにすればよい。   In the above, the example in which the motor driving device 403 transmits the motor data to the host control device 401 has been shown. However, when the motor driving device 402 or 404 transmits the motor data, as described above, The switch 415 of the line setting unit 411 of the motor driving device to be set is set to the B side, and the other switches are set to the A side. Since the data transmitted from the motor driving devices 402 to 404 corresponds to RSP1 to RSP3 at the timing of FIG. 2, the switch 415 may be set to the B side at that timing.

各モータ駆動装置402〜404が、上位制御装置401へのデータ送信を終了すると、各回線設定部のスイッチ414〜416は、図1の状態に戻される。   When the motor driving devices 402 to 404 complete the data transmission to the host control device 401, the switches 414 to 416 of the line setting units are returned to the state shown in FIG.

上位制御装置401は、モータ駆動装置402〜404からそれぞれのモータに関するデータを受信したら、その後サーボアンプ、主軸アンプに対する動作指令データ(図2に示すデータCMD)を、図1に示す太線の伝送路にそって各モータ駆動装置402〜404に送信する。各モータ駆動装置は、自局に対する指令データのみを、アクセス制御部412に取り込み、自局のモータを指令データに従って駆動する。このように1通信サイクルの周期で上位制御装置401とモータ駆動装置402〜404の間で同様の交信を行うことにより、モータ制御を実現している。   After receiving the data regarding each motor from the motor driving devices 402 to 404, the host controller 401 thereafter transmits the operation command data (data CMD shown in FIG. 2) for the servo amplifier and the spindle amplifier to the thick line transmission path shown in FIG. Accordingly, the data is transmitted to the respective motor driving devices 402 to 404. Each motor driving device takes only the command data for its own station into the access control unit 412 and drives the motor of its own station according to the command data. Thus, motor control is realized by performing the same communication between the host control device 401 and the motor drive devices 402 to 404 in a cycle of one communication cycle.

図4には、通信ケーブルの断線が発生した場合、たとえば、モータ駆動装置403とモータ駆動装置404との間の通信ケーブル405に断線が発生した場合の例が図示されている。   FIG. 4 illustrates an example where a communication cable is disconnected, for example, a communication cable 405 between the motor driving device 403 and the motor driving device 404 is disconnected.

この断線のため、モータ駆動装置404の上位制御装置とデータ交換を行う上位側通信I/F部409から常に送出しているアイドル信号がモータ駆動装置403へ到達しなくなる。そのため、モータ駆動装置403の下位側装置とデータの交換を行う下位側通信I/F部410で、モータ駆動装置404とモータ駆動装置403間の通信ケーブル405が断線したこと(図4で×印で図示)を検出し、太線で図示したように、その情報をケーブル断線検出信号413としてアクセス制御部412に送出する。   Due to this disconnection, the idle signal that is constantly sent from the higher-level communication I / F unit 409 that exchanges data with the higher-level control device of the motor drive device 404 does not reach the motor drive device 403. For this reason, the communication cable 405 between the motor driving device 404 and the motor driving device 403 is disconnected in the lower-level communication I / F unit 410 that exchanges data with the lower-level device of the motor driving device 403 (indicated by a cross in FIG. 4). And the information is sent to the access control unit 412 as a cable disconnection detection signal 413 as shown by a bold line.

モータ駆動装置403のアクセス制御部412は、そのケーブル断線検出信号413を自局データ(図2に示す状態送信データRSP2)のアラームステータスとして、上位制御装置401に送信する。そのために、回線設定部411は、スイッチ415をB側に設定する。これにより、上位制御装置401は、モータ駆動装置403からの断線発生ステータスを受信することで、モータ駆動装置403の下位側装置に接続される通信ケーブル405で断線が発生したこと、並びにその断線が上位制御装置から何番目のモータ駆動装置間の断線であるかを認識することができる。   The access control unit 412 of the motor driving device 403 transmits the cable disconnection detection signal 413 to the host control device 401 as an alarm status of the local station data (status transmission data RSP2 shown in FIG. 2). Therefore, the line setting unit 411 sets the switch 415 to the B side. As a result, the host controller 401 receives the disconnection occurrence status from the motor driving device 403, thereby generating a disconnection in the communication cable 405 connected to the lower side device of the motor driving device 403, and the disconnection. It can be recognized from the host controller how many motor drive devices are disconnected.

図5、図6には、モータ駆動装置402〜404間で通信を行うときの信号の流れが、また、モータ駆動装置間の通信データ(図2の下りデータDD及び上りデータUD)のフレームフォーマットの一例が図7に図示されている。   5 and 6 show the signal flow when communication is performed between the motor driving devices 402 to 404, and the frame format of communication data (downstream data DD and upstream data UD in FIG. 2) between the motor driving devices. An example is shown in FIG.

下りデータ送信のために、図5に示すように、モータ駆動装置402〜404内部にある回線設定部411は、スイッチ414はA側に、スイッチ415はA側に、スイッチ416はB側に設定され、太線で示した伝送路が形成される。この状態で、上位制御装置401はモータ駆動装置402に対して下りデータDDを送信する。モータ駆動装置402では下りデータDDをそのアクセス制御部412で取り込む。モータ駆動装置402が他のモータ駆動装置403、404と通信を行う場合は、アクセス制御部412が、図7に示すフレームフォーマット901の自局データ領域902に、モータ駆動装置403宛またはモータ駆動装置404宛のデータを書き込み、フレーム信号を再生成する。そして、モータ駆動装置402は、モータ駆動装置403へフレーム信号を送信するとともに、図6に示したように、モータ駆動装置402の回線設定部411のスイッチ414をB側に、スイッチ415をA側に、スイッチ416をB側に設定する。   For downlink data transmission, as shown in FIG. 5, the line setting unit 411 in the motor driving devices 402 to 404 is set so that the switch 414 is set to the A side, the switch 415 is set to the A side, and the switch 416 is set to the B side. Thus, a transmission path indicated by a thick line is formed. In this state, the host control device 401 transmits downlink data DD to the motor drive device 402. In the motor driving device 402, the downlink data DD is captured by the access control unit 412. When the motor drive device 402 communicates with other motor drive devices 403 and 404, the access control unit 412 sends the address to the motor drive device 403 or the motor drive device in the local data area 902 of the frame format 901 shown in FIG. Write data addressed to 404 and regenerate the frame signal. Then, the motor drive device 402 transmits a frame signal to the motor drive device 403 and, as shown in FIG. 6, the switch 414 of the line setting unit 411 of the motor drive device 402 is set to the B side, and the switch 415 is set to the A side. The switch 416 is set to the B side.

モータ駆動装置403も、モータ駆動装置402と同様な動作を行い、上記再生成されたフレーム信号(DD)を受信して、モータ駆動装置402から自局宛のデータがある場合には、そのデータの読み込みを行う。それと同時に、自局のデータ領域903に、通信したい他のモータ駆動装置宛てのデータを書き込み、フレーム信号を再生成する。そして、モータ駆動装置403は、モータ駆動装置404へフレーム信号を送信するとともに、図6に示したように、モータ駆動装置403の回線設定部411のスイッチ414をB側に、スイッチ415をA側に、スイッチ416をB側に設定する。   The motor driving device 403 also performs the same operation as the motor driving device 402, receives the regenerated frame signal (DD), and if there is data addressed to itself from the motor driving device 402, the data Is read. At the same time, the data addressed to the other motor drive device to be communicated is written in the data area 903 of the own station, and the frame signal is regenerated. The motor driving device 403 transmits a frame signal to the motor driving device 404, and as shown in FIG. 6, the switch 414 of the line setting unit 411 of the motor driving device 403 is set to the B side, and the switch 415 is set to the A side. The switch 416 is set to the B side.

最後段のモータ駆動装置404についても、モータ駆動装置402、403と同様な動作を行い、他のモータ駆動装置402、403から自局宛のデータがある場合には、そのデータを読み込むとともに、自局のデータ領域904に、通信したい他のモータ駆動装置宛てのデータを書き込み、フレーム信号を再生成する。そして、図6に示したように、モータ駆動装置404の回線設定部411のスイッチ414をA側に、スイッチ415をB側に、スイッチ416をA側に設定する。   The motor driving device 404 at the last stage performs the same operation as the motor driving devices 402 and 403, and when there is data addressed to the own station from other motor driving devices 402 and 403, the data is read and In the station data area 904, data addressed to another motor drive device to be communicated is written, and a frame signal is regenerated. Then, as shown in FIG. 6, the switch 414 of the line setting unit 411 of the motor driving device 404 is set to the A side, the switch 415 is set to the B side, and the switch 416 is set to the A side.

上述したように、モータ駆動装置402〜404内部にある回線設定部411の各スイッチが切り替わると、図6で示した、太く示されている伝送路が形成される。   As described above, when the switches of the line setting unit 411 in the motor driving devices 402 to 404 are switched, the transmission path shown in FIG.

モータ駆動装置404は、自局の処理が終わったら、上述したように、再生成された下りデータDDを上りデータUDとして出力する。モータ駆動装置404からの出力された上りデータUDは、図6に示すように、モータ駆動装置403、モータ駆動装置402、上位制御装置401とバス状に伝送される。このとき、モータ駆動装置403とモータ駆動装置402は、この上りデータから自局宛てのデータがある場合には、それを各モータ駆動装置のアクセス制御部412を介して取り込むことができる。   When the processing of the own station is completed, the motor drive device 404 outputs the regenerated downlink data DD as the uplink data UD as described above. As shown in FIG. 6, the upstream data UD output from the motor driving device 404 is transmitted in a bus form with the motor driving device 403, the motor driving device 402, and the host controller 401. At this time, if there is data addressed to the own station from the upstream data, the motor driving device 403 and the motor driving device 402 can fetch the data via the access control unit 412 of each motor driving device.

以上のようにして、モータ駆動装置402、モータ駆動装置403およびモータ駆動装置404の三者間における通信を確保することができるとともに、上位制御装置401では、モータ駆動装置402〜404間での通信内容を上りデータUDより全て把握することができる。   As described above, communication among the three parties of the motor drive device 402, the motor drive device 403, and the motor drive device 404 can be secured, and the host control device 401 communicates between the motor drive devices 402 to 404. All the contents can be grasped from the upstream data UD.

なお、以上の実施例では、回線設定部411の内部構成をスイッチ414〜416で記述したが、スイッチの代わりにデジタル回路で実現しても良い。また、通信インタフェースをイーサネット(登録商標)で説明しているが、通信インタフェースを光通信としても実現は可能である。   In the above embodiment, the internal configuration of the line setting unit 411 is described by the switches 414 to 416. However, it may be realized by a digital circuit instead of the switch. Although the communication interface is described as Ethernet (registered trademark), the communication interface can be realized as optical communication.

本発明では、
(1)各モータ駆動装置402〜404に、上位装置側と下位装置側のそれぞれに通信I/F部409と通信I/F部410とを設け、その通信I/F部409と通信I/F部410の端末側インタフェースを回線設定制御する回線設定部411が設けらるので、ハブが不要となり、配線効率を高めることができる。
In the present invention,
(1) The motor driving devices 402 to 404 are each provided with a communication I / F unit 409 and a communication I / F unit 410 on the upper device side and the lower device side, and the communication I / F unit 409 and the communication I / F Since the line setting unit 411 for controlling the line setting of the terminal side interface of the F unit 410 is provided, a hub is not necessary and wiring efficiency can be improved.

(2)モータ駆動装置402〜404の下位側通信I/F部410で入力信号を監視し、その情報をアラームステータスとして上位制御装置401に通知できるようにしたので、ネットワーク上の通信ケーブル405で断線が発生した場合でも自動的に断線の発生区間も特定することができ、障害時に通信ケーブル405の断線箇所を人間によって確認する必要がなくなる。   (2) Since the lower side communication I / F unit 410 of the motor driving devices 402 to 404 can monitor the input signal and notify the higher level control device 401 of the information as an alarm status, the communication cable 405 on the network can be used. Even when a disconnection occurs, it is possible to automatically specify the section where the disconnection occurs, and it becomes unnecessary to check the disconnection portion of the communication cable 405 by a human at the time of failure.

(3)下りデータ伝送時は回線設定部411でデイジィチェーン状に回線を設定し、アクセス制御部412がモータ駆動装置間通信専用フレームをデータの書き込み動作をできるようにし、また、上りデータ伝送時は回線設定部411でバス状に回線設定し、アクセス制御部412がデータの読み出し動作をできるようにしているので、複数のモータ駆動装置間でデータ交換することができる。   (3) At the time of downlink data transmission, the line setting unit 411 sets a line in a daisy chain so that the access control unit 412 can write data to the motor drive unit communication dedicated frame, and at the time of uplink data transmission Since the line setting unit 411 sets a line in the form of a bus and the access control unit 412 can read data, data can be exchanged between a plurality of motor drive devices.

(4)伝送路毎に通信I/F部409および410を設け再生中継するようにしたので、多段中継した場合でも、通信品質は安定している。   (4) Since the communication I / F units 409 and 410 are provided for each transmission path and regeneratively relayed, the communication quality is stable even when relaying in multiple stages.

等の効果が得られる。   Etc. are obtained.

上位制御装置401からモータ駆動装置402〜404への下りデータ伝送時の構成例を示すブロック図である。It is a block diagram which shows the structural example at the time of the downlink data transmission from the high-order control apparatus 401 to the motor drive units 402-404. 伝送路上のデータの時間的配置を示した信号図である。It is the signal diagram which showed the time arrangement | positioning of the data on a transmission line. モータ駆動装置から上位制御装置401への上りデータ伝送時の例を示すブロック図である。It is a block diagram which shows the example at the time of the uplink data transmission from a motor drive unit to the high-order control apparatus 401. 通信ケーブルに断線が発生した状態の例を示すブロック図である。It is a block diagram which shows the example of the state which a disconnection generate | occur | produced in the communication cable. モータ駆動装置402〜404間通信を行う時の下りデータ伝送時の例を示すブロック図である。It is a block diagram which shows the example at the time of the downlink data transmission at the time of performing communication between the motor drive units 402-404. モータ駆動装置402〜404間通信を行う時の上りデータ伝送時の例を示すブロック図である。It is a block diagram which shows the example at the time of uplink data transmission at the time of performing communication between the motor drive units 402-404. 図2の下りデータDD及び上りデータUDのフレームフォーマットの一例を示す説明図である。It is explanatory drawing which shows an example of the frame format of the downlink data DD of FIG. 2, and the uplink data UD. 従来のモータ制御用シリアル通信装置の第一構成例を示すブロック図である。It is a block diagram which shows the 1st structural example of the conventional serial communication apparatus for motor control. 従来のモータ制御用シリアル通信装置の第二構成例を示すブロック図である。It is a block diagram which shows the 2nd structural example of the conventional serial communication apparatus for motor control.

符号の説明Explanation of symbols

401 上位制御装置
406 アクセス制御部
407 通信I/F部
402,403,404 モータ駆動装置
409 通信I/F部
410 通信I/F部
411 回線設定部
412 アクセス制御部
414,415,416 スイッチ
401 High-level control device 406 Access control unit 407 Communication I / F unit 402, 403, 404 Motor drive device 409 Communication I / F unit 410 Communication I / F unit 411 Line setting unit 412 Access control unit 414, 415, 416 switch

Claims (3)

複数のモータに対する制御指令信号を発生させる上位制御装置と、該上位制御装置からの制御指令信号に基づいて各モータを駆動するモータ駆動装置から構成され、上位制御装置と各モータ駆動装置がシリアルに接続されて、通信I/F部を介してデータを相互にシリアルに送受信するモータ制御用シリアル通信装置であって、
前記各モータ駆動装置は、上位側装置と通信するための第1の通信I/F部と、下位側装置と通信するための第2の通信I/F部と、データを送受信するためのアクセス制御部と、第1の通信I/F部と、第2の通信I/F部と、アクセス制御部との間の回線を設定するための回線設定部とを有し、
前記上位制御装置から各モータに制御指令信号を伝達する場合には、前記回線設定部は、第1の通信I/F部とアクセス制御部間の回線並びに第1と第2の通信I/F部間の回線を接続して、制御指令信号を各モータ駆動装置のアクセス制御部に入力させ、各モータ駆動装置からデータを上位制御装置に伝達する場合には、上位装置側に位置する各モータ駆動装置の回線設定部が、第1と第2の通信I/F部間の回線を接続して、該データを上位制御装置に伝達させることを特徴とするモータ制御用シリアル通信装置。
A host controller that generates control command signals for a plurality of motors and a motor drive device that drives each motor based on the control command signals from the host controller, and the host controller and each motor driver are serially connected. A serial communication device for motor control that is connected and serially transmits and receives data via a communication I / F unit,
Each of the motor drive devices has a first communication I / F unit for communicating with a higher-level device and a second communication I / F unit for communicating with a lower-level device, and an access for transmitting and receiving data. A line setting unit for setting a line between the control unit, the first communication I / F unit, the second communication I / F unit, and the access control unit;
When the control command signal is transmitted from the host controller to each motor, the line setting unit is configured to connect the line between the first communication I / F unit and the access control unit, and the first and second communication I / Fs. When connecting the lines between the units, allowing the control command signal to be input to the access control unit of each motor drive device, and transmitting the data from each motor drive device to the host control device, each motor located on the host device side A serial communication device for motor control, wherein a line setting unit of a driving device connects a line between the first and second communication I / F units and transmits the data to a host control device.
前記モータ駆動装置は、下位側装置から第2の通信I/F部に入力される信号に基づき下位装置側における断線を検出して、その情報を上位制御装置に伝達することを特徴とする請求項1に記載のモータ制御用シリアル通信装置。   The motor driving device detects disconnection on the lower device side based on a signal input from the lower device to the second communication I / F unit, and transmits the information to the upper control device. Item 2. A serial communication device for motor control according to Item 1. 送受信するデータに各モータ駆動装置用のデータ領域を設け、データ送受信時に、各モータ駆動装置は前記データ領域に他のモータ駆動装置用のデータを書き込むとともに、該データ領域に書き込まれた自局用のデータを読み出し、各モータ駆動装置間でデータ交換が行われることを特徴とする請求項1又は2に記載のモータ制御用シリアル通信装置。   A data area for each motor drive device is provided in the data to be transmitted / received, and at the time of data transmission / reception, each motor drive device writes data for other motor drive devices in the data area and for the local station written in the data area. The motor control serial communication device according to claim 1, wherein data is exchanged between the motor driving devices.
JP2006201556A 2006-07-25 2006-07-25 Serial communication device for motor control Active JP5301088B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006201556A JP5301088B2 (en) 2006-07-25 2006-07-25 Serial communication device for motor control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006201556A JP5301088B2 (en) 2006-07-25 2006-07-25 Serial communication device for motor control

Publications (2)

Publication Number Publication Date
JP2008029161A true JP2008029161A (en) 2008-02-07
JP5301088B2 JP5301088B2 (en) 2013-09-25

Family

ID=39119233

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006201556A Active JP5301088B2 (en) 2006-07-25 2006-07-25 Serial communication device for motor control

Country Status (1)

Country Link
JP (1) JP5301088B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8497642B2 (en) 2008-04-15 2013-07-30 Panasonic Corporation Motor devices, and motor driving system and integrated circuit device comprising the same
JP2013207457A (en) * 2012-03-28 2013-10-07 Mitsubishi Electric Corp Communication system
KR101747365B1 (en) 2016-05-24 2017-06-14 주식회사 루텍 Socket Board for Serial Communication without T-Branch and System for Motor Control Center using It
WO2018048251A1 (en) * 2016-09-12 2018-03-15 주식회사 루텍 Motor control center system
JP2019525658A (en) * 2016-08-22 2019-09-05 ルーテック インコーポレイテッド Motor control panel system with integrated module and dual communication structure

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09149691A (en) * 1995-11-20 1997-06-06 Mitsubishi Electric Corp Group-control inverters
JPH10248293A (en) * 1997-02-28 1998-09-14 Toshiba Corp Travel driving device for moving body
JP2001024645A (en) * 1999-07-08 2001-01-26 Yamatake Corp Communication system
JP2003189654A (en) * 2001-12-20 2003-07-04 Matsushita Electric Ind Co Ltd Serial communication device for controlling motor and motor driving gear

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09149691A (en) * 1995-11-20 1997-06-06 Mitsubishi Electric Corp Group-control inverters
JPH10248293A (en) * 1997-02-28 1998-09-14 Toshiba Corp Travel driving device for moving body
JP2001024645A (en) * 1999-07-08 2001-01-26 Yamatake Corp Communication system
JP2003189654A (en) * 2001-12-20 2003-07-04 Matsushita Electric Ind Co Ltd Serial communication device for controlling motor and motor driving gear

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8497642B2 (en) 2008-04-15 2013-07-30 Panasonic Corporation Motor devices, and motor driving system and integrated circuit device comprising the same
JP2013207457A (en) * 2012-03-28 2013-10-07 Mitsubishi Electric Corp Communication system
KR101747365B1 (en) 2016-05-24 2017-06-14 주식회사 루텍 Socket Board for Serial Communication without T-Branch and System for Motor Control Center using It
JP2019525658A (en) * 2016-08-22 2019-09-05 ルーテック インコーポレイテッド Motor control panel system with integrated module and dual communication structure
WO2018048251A1 (en) * 2016-09-12 2018-03-15 주식회사 루텍 Motor control center system

Also Published As

Publication number Publication date
JP5301088B2 (en) 2013-09-25

Similar Documents

Publication Publication Date Title
JP4782823B2 (en) User terminal, master unit, communication system and operation method thereof
JP5142516B2 (en) Serial communication device for motor control
US6757777B1 (en) Bus master switching unit
JP5615832B2 (en) Data transmission method in automation control system
EP2206293B1 (en) System and method for signal failure detection in a ring bus system
JP5301088B2 (en) Serial communication device for motor control
JP2017505586A (en) Bus participant apparatus and method of operation of bus participant apparatus
US10908583B2 (en) Safety control system and safety control unit
JP4750905B2 (en) Communication system, test apparatus, and test method
JP2017011519A (en) Communication system using network
KR101179431B1 (en) Network Management System based on a EhterCAT And Managing Method thereof
CN113626359A (en) Signal switching device and method for flash memory chip of server
JP2009205598A (en) I/o system
US11947475B2 (en) Synchronized processing of process data and delayed transmission
US20130311695A1 (en) Flexray Gateway and Method for Operating a Flexray Gateway
JP2012074779A (en) Communication system
JPH01135150A (en) Node address setting system for network
JP5107153B2 (en) Programmable controller system
JPH0888641A (en) Communication system
JP4636257B2 (en) Filtering repeat function
JP2000324896A (en) Data transmission system and image forming apparatus
JP2010136038A (en) Transmitter, and method for switching system in redundant configuration
JP2006033475A (en) Communications system and communication apparatus
CN112711217A (en) Master-slave configurable PLC controller based on CAN bus
KR100342004B1 (en) Bus controller and bus control system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090701

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120110

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120309

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120925

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121122

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130619

R150 Certificate of patent or registration of utility model

Ref document number: 5301088

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150