JP2008252882A - Serial communication apparatus for sensor and serial communication method - Google Patents

Serial communication apparatus for sensor and serial communication method Download PDF

Info

Publication number
JP2008252882A
JP2008252882A JP2008053987A JP2008053987A JP2008252882A JP 2008252882 A JP2008252882 A JP 2008252882A JP 2008053987 A JP2008053987 A JP 2008053987A JP 2008053987 A JP2008053987 A JP 2008053987A JP 2008252882 A JP2008252882 A JP 2008252882A
Authority
JP
Japan
Prior art keywords
communication
sensor
serial
slave
sensor information
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
JP2008053987A
Other languages
Japanese (ja)
Inventor
Takeshi Arie
健 有江
Yoshitaka Kashiwagi
喜孝 柏木
Shunichi Sakata
俊一 坂田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP2008053987A priority Critical patent/JP2008252882A/en
Publication of JP2008252882A publication Critical patent/JP2008252882A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To solve the problem that, in a conventional serial communication apparatus for a position detector, it is necessary for a sensor such as a position detector to have an ID number and when utilizing serial communication as a means for providing sensor information to a servo control unit in a multi-axis machine, much time and effort may be required for setting or managing the ID number. <P>SOLUTION: A plurality of servo control units and a plurality of sensors such as position detectors are connected by a communication master which includes a plurality of serial ports and is connected with the plurality of servo control units by serial transmission lines, and a communication slave which includes a plurality of serial ports, is connected with the plurality of sensors by serial transmission lines and is capable of being cascaded, thereby accomplishing a serial communication apparatus in which the sensors correspond to time slots of serial communication. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、複数のモータに取り付けられた複数のセンサーとコントローラの複数のサーボ制御部間のシリアル伝送を行うセンサー用シリアル通信装置およびシリアル通信方法に関する。   The present invention relates to a sensor serial communication device and a serial communication method for serial transmission between a plurality of sensors attached to a plurality of motors and a plurality of servo control units of a controller.

コントローラとモータに取り付けられた位置検出器との間に設けられるシリアル伝送路の数は、位置検出器を個別に接続する場合、位置検出器の個数の本数が必要である。そこで、マルチドロップ接続することによって、省配線化が図られている。
例えば、特許文献1では、シリアル伝送路に分岐部を設けることでコントローラに接続されるシリアル伝送路の本数を抑えている。
また、特許文献2と特許文献3では、位置検出器とコントローラ間のシリアル伝送路をマルチドロップ接続することで省配線化を図っている。
The number of serial transmission paths provided between the controller and the position detector attached to the motor needs to be equal to the number of position detectors when the position detectors are individually connected. Therefore, wiring saving is achieved by multidrop connection.
For example, in Patent Document 1, the number of serial transmission paths connected to the controller is suppressed by providing a branching section in the serial transmission path.
In Patent Document 2 and Patent Document 3, the number of wires is reduced by performing multidrop connection on the serial transmission path between the position detector and the controller.

従来の位置検出器用シリアル通信装置を図27に示す。
複数のモータ61〜62の位置データ若しくは単位時間当たりの変化量を処理するコントローラ1と、前記モータ毎に設けられ、前記モータの位置データ若しくは単位時間当たりの変化量を検出し、この位置データ若しくは単位時間当たりの変化量をコントローラに送信するデータ送信部を有する位置検出器50〜51と、この位置検出器と前記コントローラとを接続するシリアル伝送路S5〜S8とを備え、このシリアル伝送路に分岐部30を設け、各位置検出器に接続するとともに、前記コントローラより送信指令を受けた位置検出器の位置データ若しくは単位時間当たりの変化量を、前記データ送信部よりシリアル信号で前記コントローラに伝送するよう構成している。
そして、分岐部からアドレスで選択された位置検出器が、自己のアドレスと位置データを送信する。
FIG. 27 shows a conventional serial communication device for position detector.
A controller 1 that processes position data of a plurality of motors 61 to 62 or a change amount per unit time, and provided for each motor, detects the position data of the motor or a change amount per unit time, and detects the position data or Position detectors 50 to 51 each having a data transmission unit that transmits a change amount per unit time to the controller, and serial transmission paths S5 to S8 that connect the position detector and the controller, and the serial transmission path A branch unit 30 is provided, connected to each position detector, and the position data of the position detector or the amount of change per unit time received from the controller is transmitted to the controller as a serial signal from the data transmitter. It is configured to do.
Then, the position detector selected by the address from the branch unit transmits its own address and position data.

他の構成の従来の位置検出器用シリアル通信装置を図28に示す。
アーム等の複数の動作軸を駆動する複数のモータ61〜63に対し、それぞれの回転位置を検出する位置検出器51〜53を設ける。この位置検出器は、位置検出器情報をシリアルデータによって出力する。コントローラ1と複数の位置検出器との間は、一つのシリアル伝送路S5により接続され、コントローラから位置検出器にリクエスト信号を送信することにより、位置検出器がそのリクエスト信号の内容に応じて位置検出器情報をコントローラに送信するよう構成している。
たとえば、個別モードでは、駆動装置がリクエスト信号とともに位置検出器ID番号を送信し、該位置検出器ID番号に一致した位置検出器がデータを送信する。
連続モードでは、リクエスト信号を送信するとともに全ての位置検出器を指定するID番号を送信する。位置検出器は、予め設定された順番(ID番号の並び順)でデータを送信する。なお、ID番号は、位置検出器の外部から設定されるものであり、EEPROMに記憶されている。
FIG. 28 shows a conventional serial communication device for a position detector having another configuration.
Position detectors 51 to 53 for detecting respective rotational positions are provided for a plurality of motors 61 to 63 that drive a plurality of operating axes such as arms. This position detector outputs position detector information as serial data. The controller 1 and the plurality of position detectors are connected by a single serial transmission line S5, and the request signal is transmitted from the controller to the position detector, so that the position detector is positioned according to the contents of the request signal. The detector information is transmitted to the controller.
For example, in the individual mode, the driving device transmits a position detector ID number together with a request signal, and a position detector that matches the position detector ID number transmits data.
In the continuous mode, a request signal is transmitted and an ID number designating all position detectors is transmitted. The position detector transmits data in a preset order (ID number order). The ID number is set from the outside of the position detector and is stored in the EEPROM.

他の構成の従来の位置検出器用シリアル通信装置を図29に示す。
位置検出器51側に検出505からのパラレル信号をシリアル信号に変換するパラレル/シリアル変換手段501と、該パラレル/シリアル変換手段により変換されたシリアル信号を送信する送信手段503と、コントローラ1側からの制御信号を受信する受信手段504と、位置検出器側の送受信を制御する送受信制御手段502と、コントローラ側に位置検出器側へ制御信号を送信する送信手段103と、位置検出器側からの信号を受信する受信手段104と、該受信手段からのシリアル信号をパラレル信号に変換するシリアル/パラレル変換手段101と、コントローラ側の送受信を制御する送受信制御手段102と、前記位置検出器側と前記コントローラ側との間の信号伝達用の一対のシリアル伝送路S5とを備え、複数の位置検出器から構成されるものである。
制御装置は位置検出器のデータが必要なとき、位置検出器番号の情報を含むデータリクエスト信号を送信する。各位置検出器は、自分にあらかじめ与えられている位置検出器番号と、データリクエスト信号に含まれる位置検出器番号とが一致すると、一連のデータの送受信動作を行う。
FIG. 29 shows a conventional serial communication device for a position detector having another configuration.
From the parallel / serial conversion means 501 for converting the parallel signal from the detection 505 into a serial signal to the position detector 51 side, the transmission means 503 for transmitting the serial signal converted by the parallel / serial conversion means, and from the controller 1 side Receiving means 504 for receiving the control signal, transmission / reception control means 502 for controlling transmission / reception on the position detector side, transmission means 103 for transmitting the control signal to the position detector side on the controller side, and from the position detector side Receiving means 104 for receiving a signal; serial / parallel converting means 101 for converting a serial signal from the receiving means into a parallel signal; transmission / reception control means 102 for controlling transmission / reception on the controller side; the position detector side; A pair of serial transmission lines S5 for signal transmission between the controller side and a plurality of position detection It is intended to be constructed from.
When the position detector data is required, the control device transmits a data request signal including information on the position detector number. Each position detector performs a series of data transmission / reception operations when the position detector number given in advance matches the position detector number included in the data request signal.

特許2873262(図1)Patent 2873262 (FIG. 1) 特開2006−260581(図1)JP 2006-260581 (FIG. 1) 特許2611124(図5)Patent 2611124 (FIG. 5)

このように従来の位置検出器用シリアル通信装置の場合、いずれの例においても、位置検出器がID番号を持っておくことが必須である。
しかし、あらかじめID番号を設定した位置検出器をサーボ制御部との対応を間違えないように組み込む作業には、人為的なミスが入り込み易い。また、あらかじめID番号を設定してない位置検出器をモータが機器に組み込まれた後から、ID番号を設定することは難しい。シリアル伝送路に接続された、ID番号が設定されていない位置検出器を特定して該位置検出器と通信することが難しいからである。
その結果、実際の多軸機械の構築にシリアル通信を利用することは難しく、省配線化の期待は大きいものの、あまり普及していない。
As described above, in the case of the conventional serial communication device for position detector, in any example, it is essential that the position detector has an ID number.
However, it is easy for human error to enter a position detector in which an ID number is set in advance so that the correspondence with the servo control unit is not mistaken. In addition, it is difficult to set the ID number after the motor has been incorporated into the device with a position detector that has not been previously set with an ID number. This is because it is difficult to identify and communicate with a position detector connected to a serial transmission path and having no ID number set.
As a result, it is difficult to use serial communication for the construction of an actual multi-axis machine, and although there is a great expectation for wiring saving, it is not so popular.

本発明はこのような問題点に鑑みてなされたものであり、センサーがID番号を持たなくても、複数のサーボ制御部と、複数のモータに取り付けられた複数のセンサーの対応付けを容易にし、シリアル伝送路に断線が発生した場合でも容易に復旧可能なセンサー用シリアル通信装置を提供することを目的とする。   The present invention has been made in view of such problems, and makes it easy to associate a plurality of servo control units with a plurality of sensors attached to a plurality of motors even if the sensor does not have an ID number. An object of the present invention is to provide a sensor serial communication device that can be easily restored even when a disconnection occurs in a serial transmission path.

上記問題を解決するため、本発明は次のように構成したのである。
請求項1に記載の発明は、1または複数のサーボ制御部と前記サーボ制御部によって駆動される1または複数のモータに取り付けられた1または複数のセンサーを、1つの通信マスタと1以上の通信スレーブを含むシリアル伝送路で接続したセンサー用シリアル通信装置において、
前記通信マスタは、1または複数の前記サーボ制御部を接続するための1または複数のサーボ用シリアルポートと、前記通信スレーブを接続するためのカスケード接続用シリアルポートを備え、
前記通信スレーブは、前記通信マスタまたは他の前記通信スレーブとカスケード接続するためのカスケード接続用シリアルポートと、1または複数のセンサーを1:1で接続するための1または複数のセンサー用シリアルポートとを備えることを特徴としたものである。
In order to solve the above problem, the present invention is configured as follows.
According to the first aspect of the present invention, one or more servo control units and one or more sensors attached to one or more motors driven by the servo control unit are connected to one communication master and one or more communication units. In the serial communication device for sensors connected by the serial transmission path including the slave,
The communication master includes one or more servo serial ports for connecting one or more servo control units, and a cascade connection serial port for connecting the communication slaves,
The communication slave includes a cascade connection serial port for cascading with the communication master or another communication slave, and one or more sensor serial ports for connecting one or more sensors in a 1: 1 ratio. It is characterized by comprising.

請求項2に記載の発明は、請求項1において、前記通信マスタが、前記通信スレーブから受信したセンサー情報を、前記センサー情報を受信した順番と前記サーボ用シリアルポートの番号を昇順または降順に対応させたうえで同時に前記サーボ用シリアルポートへ送信する手段を備えることを特徴としたものである。   According to a second aspect of the present invention, in the first aspect, the communication master corresponds to the sensor information received from the communication slave, the order in which the sensor information is received and the servo serial port number in ascending or descending order. And means for transmitting to the servo serial port at the same time.

請求項3に記載の発明は、請求項1において、前記通信マスタは、前記通信スレーブから受信したセンサー情報を、その受信した順番と前記サーボ用シリアルポート番号を対応表に従って対応させたうえで同時に前記サーボ用シリアルポートへ送信する手段を備えることを特徴としたものである。   According to a third aspect of the present invention, the communication master according to the first aspect is configured such that the communication master simultaneously matches the sensor information received from the communication slave with the order of reception and the servo serial port number according to the correspondence table. A means for transmitting to the servo serial port is provided.

請求項4に記載の発明は、請求項3において、前記対応表は、初期化時において、外部から前記通信マスタへダウンロードされたものであることを特徴としたものである。   According to a fourth aspect of the present invention, in the third aspect, the correspondence table is downloaded from the outside to the communication master at the time of initialization.

請求項5に記載の発明は、請求項1において、前記通信スレーブは、自己より後段からの前記センサー情報を自己より前段へ送信し、その後、自己の前記センサー情報を前段へ送信する手段を備えることを特徴としたものである。   According to a fifth aspect of the present invention, in the first aspect, the communication slave includes means for transmitting the sensor information from the subsequent stage to the previous stage from the self, and then transmitting the sensor information of the self to the previous stage. It is characterized by that.

請求項6に記載の発明は、1または複数のサーボ制御部と1または複数の前記サーボ制御部によって駆動される1または複数のモータに取り付けられた1または複数のセンサーを1つの通信マスタと1以上の通信スレーブを含むシリアル伝送路で接続したセンサー用シリアル通信装置の通信方法おいて、
前記通信マスタが、センサー情報要求コマンドをカスケード接続用シリアルポートを介して前記通信スレーブに送信するステップM1と、前記センサー情報要求コマンドに対するセンサー情報を前記通信スレーブから受信するステップM2と、前記センサー情報をサーボ用シリアルポートから対応する前記サーボ制御部に送信するステップM3を有し、
前記通信スレーブが、前記センサー情報要求コマンドを受信するとともに後段の前記通信スレーブへ転送するステップS1と、前記センサー情報要求コマンドを自己の前記センサーに同時に送信し前記センサーからの前記センサー情報を受信するステップS2と、後段からの前記センサー情報を前段の前記通信スレーブまたは前記通信マスタへ転送するステップS3と、その後自己の前記センサー情報を前記通信マスタまたは前段の前記通信スレーブへ送信するステップS4を有することを特徴としたものである。
According to a sixth aspect of the present invention, one or more servo control units and one or more sensors attached to one or more motors driven by the one or more servo control units are connected to one communication master and one In the communication method of the serial communication device for sensors connected by the serial transmission path including the above communication slaves,
Step M1 in which the communication master transmits a sensor information request command to the communication slave via a serial port for cascade connection; Step M2 in which sensor information for the sensor information request command is received from the communication slave; and the sensor information A step M3 for transmitting the servo from the servo serial port to the corresponding servo control unit,
The communication slave receives the sensor information request command and forwards it to the communication slave in the subsequent stage, and simultaneously transmits the sensor information request command to its own sensor and receives the sensor information from the sensor. Step S2, Step S3 for transferring the sensor information from the subsequent stage to the communication slave or the communication master in the previous stage, and Step S4 for transmitting the sensor information of its own to the communication master or the communication slave in the previous stage. It is characterized by that.

請求項7に記載の発明は、請求項6において、前記テップM3は、前記通信スレーブから受信した前記センサー情報を、その受信した順番と前記サーボ用シリアルポートの番号と昇順または降順に対応させたうえで同時に前記サーボ用シリアルポートへ送信するものであることを特徴としたものである。   According to a seventh aspect of the present invention, in the sixth aspect, the Step M3 associates the sensor information received from the communication slave with the order of reception and the number of the servo serial port in ascending or descending order. At the same time, the data is transmitted to the servo serial port.

請求項8に記載の発明は、請求項6において、前記ステップM3は、前記通信スレーブから受信した前記センサー情報を、その受信した順番と前記サーボ用シリアルポートの番号を対応表に従って対応させたうえで同時に前記サーボ用シリアルポートへ送信するものであることを特徴としたものである。   According to an eighth aspect of the present invention, in the sixth aspect, the step M3 is configured such that the sensor information received from the communication slave is associated with the order of reception and the servo serial port number according to the correspondence table. Are simultaneously transmitted to the servo serial port.

請求項9に記載の発明は、請求項8において、前記対応表は、初期化時において、外部から前記通信マスタへダウンロードされたものであることを特徴としたものである。   The invention according to claim 9 is the invention according to claim 8, wherein the correspondence table is downloaded from the outside to the communication master at the time of initialization.

請求項10に記載の発明は、請求項6において、前記ステップS4は、自己より後段からの前記センサー情報を自己より前段へ送信し、その後、自己の前記センサー用シリアルポートに接続されている前記センサーからの前記センサー情報を前記センサー用シリアルポートの番号の降順または昇順に前記通信マスタまたは前段の前記通信スレーブに送信するものであることを特徴としたものである。   According to a tenth aspect of the present invention, in the sixth aspect, the step S4 transmits the sensor information from the rear stage to the front stage from the self, and thereafter connected to the sensor serial port of the self. The sensor information from the sensor is transmitted to the communication master or the previous communication slave in descending or ascending order of the sensor serial port number.

請求項11に記載の発明は、1または複数のサーボ制御部と前記サーボ制御部によって駆動される1または複数のモータに取り付けられた1または複数のセンサーを、1つの通信マスタと1以上の通信スレーブを含むシリアル伝送路で接続したセンサー用シリアル通信装置において、
前記通信マスタは、1または複数の前記サーボ制御部を接続するための1または複数のサーボ用シリアルポートと、2系統の前記通信スレーブを接続するためのカスケード接続用シリアルポートを備え、
前記通信スレーブは、前記通信マスタまたは他の前記通信スレーブとカスケード接続するためのカスケード接続用シリアルポートと、1または複数のセンサーを1:1で接続するための1または複数のセンサー用シリアルポートとを備えることを特徴としたものである。
According to an eleventh aspect of the present invention, one or more servo control units and one or more sensors attached to one or more motors driven by the servo control unit are connected to one communication master and one or more communication units. In the serial communication device for sensors connected by the serial transmission path including the slave,
The communication master includes one or more servo serial ports for connecting one or more servo control units, and a cascade connection serial port for connecting two communication slaves,
The communication slave includes a cascade connection serial port for cascading with the communication master or another communication slave, and one or more sensor serial ports for connecting one or more sensors in a 1: 1 ratio. It is characterized by comprising.

請求項12に記載の発明は、請求項11において、前記通信マスタは、通常時は2系統の前記通信スレーブを接続するためのカスケード接続用シリアルポートのうち1系統のみを使用し、
前記通信マスタと前記通信スレーブ間を接続するシリアル伝送路に異常発生時は、通常時に使用していなかった前記カスケード接続用シリアルポートのもう1系統を使用し動作を行う手段を備えることを特徴としたものである。
The invention according to a twelfth aspect of the present invention is the communication master according to the eleventh aspect, wherein the communication master normally uses only one of the cascade connection serial ports for connecting the two communication slaves.
When an abnormality occurs in the serial transmission path connecting the communication master and the communication slave, the system further comprises means for performing an operation using another system of the serial port for cascade connection that was not normally used. It is a thing.

請求項13に記載の発明は、請求項11において、前記通信マスタは、通常時は2系統の前記通信スレーブを接続するためのカスケード接続用シリアルポートのうち1系統のみを使用し、
前記通信スレーブ間を接続するシリアル伝送路に異常発生時は、通常時に使用していた前記カスケード接続用シリアルポートに加え、通常時に使用していなかった前記カスケード接続用シリアルポートのもう1系統を使用し動作を行う手段を備えることを特徴としたものである。
The invention according to claim 13 is the communication master according to claim 11, wherein the communication master normally uses only one of the cascade connection serial ports for connecting the two communication slaves.
When an abnormality occurs in the serial transmission path connecting the communication slaves, in addition to the serial port for cascade connection that was normally used, another system of the serial port for cascade connection that was not normally used is used. And a means for performing the operation.

請求項13に記載の発明は、請求項11において、前記通信スレーブは、初期化時に前記通信マスタが接続されているカスケード接続用シリアルポートが上位側であると判断し、以降、再度初期化を行うまではその状態を保持するための手段を備えることを特徴としたものである。   According to a thirteenth aspect of the present invention, in the eleventh aspect, the communication slave determines that the serial port for cascade connection to which the communication master is connected at the time of initialization is the upper side, and thereafter initializes again. It is characterized by comprising means for maintaining the state until it is performed.

請求項1、請求項2および請求項5に記載の発明によれば、また、請求項6、請求項7および請求項10に記載の発明によれば、位置検出器等のセンサーにID番号を設定しなくても、多軸機械に組み込まれた複数のモータをサーボ制御する複数のサーボ制御部が、該サーボ制御部に対応した位置検出器等のセンサーからの情報をシリアル通信によって得ることができる。従って、多軸機械にセンサーを組み込むときにID番号を設定したり、センサーを交換するときにそのID番号を引き継ぐ等の手間が不要なので、多軸機械のサーボ制御システムにおいて、サーボ制御部にセンサー情報を与える手段としてシリアル通信を容易に利用することができる。   According to the inventions according to claims 1, 2 and 5, and according to the inventions according to claims 6, 7 and 10, an ID number is assigned to a sensor such as a position detector. Even if it is not set, a plurality of servo control units that servo-control a plurality of motors incorporated in a multi-axis machine can obtain information from sensors such as position detectors corresponding to the servo control unit by serial communication. it can. Therefore, there is no need to set the ID number when incorporating the sensor into the multi-axis machine or to take over the ID number when replacing the sensor. Serial communication can be easily used as a means for providing information.

請求項3および請求項4に記載の発明または請求項8および請求項9に記載の発明によれば、上記の効果に加え、サーボ制御部とセンサーの対応の変更を論理的に行うことができるので、本センサー用シリアル通信装置を利用する上での利便性が増す。   According to the third and fourth aspects of the invention or the eighth and ninth aspects of the invention, in addition to the above effects, the correspondence between the servo control unit and the sensor can be logically changed. Therefore, convenience in using the serial communication device for the sensor is increased.

請求項11、請求項12および請求項13、請求項14に記載の発明によれば、上記の効果に加え、シリアル伝送路に断線箇所を検出した場合にケーブルを繋ぎ直すだけで容易に復旧することができるので、本センサー用シリアル通信装置を利用する上での利便性が増す。   According to the invention described in claim 11, claim 12, claim 13, and claim 14, in addition to the above effect, when a disconnection point is detected in the serial transmission line, it is easily recovered simply by reconnecting the cable. Therefore, the convenience in using the serial communication device for the sensor is increased.

以下、本発明の実施の形態について図を参照して説明する。
図1は本発明の第1実施例のセンサー用シリアル通信装置のシステム構成図である。
1はコントローラ、11〜14はコントローラ1に備えられたサーボ制御部、19はコントローラ1と通信マスタ2が同期して動作するための共通のクロックである。
2はサーボ制御部11〜14とシリアル伝送路S1〜S4で接続された通信マスタ、3は通信マスタ2にシリアル伝送路S5で接続された通信スレーブ、4は通信スレーブ3にシリアル伝送路S6で接続された通信スレーブ、5はターミネータ、61〜64はモータであり、51〜54はモータ61〜64に取り付けられた位置検出器等のセンサーであり、シリアル伝送路S7〜S10によって通信スレーブ3〜4と接続されている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a system configuration diagram of a sensor serial communication apparatus according to a first embodiment of the present invention.
1 is a controller, 11 to 14 are servo control units provided in the controller 1, and 19 is a common clock for the controller 1 and the communication master 2 to operate in synchronization.
2 is a communication master connected to the servo control units 11 to 14 via the serial transmission paths S1 to S4, 3 is a communication slave connected to the communication master 2 via the serial transmission path S5, and 4 is a communication slave 3 connected to the serial transmission path S6. The connected communication slave, 5 is a terminator, 61 to 64 are motors, 51 to 54 are sensors such as position detectors attached to the motors 61 to 64, and the communication slaves 3 to 3 are connected by serial transmission paths S7 to S10. 4 is connected.

なお、通信スレーブは必要な段数だけカスケード接続することができるが、ここでは、簡単のため2段だけカスケード接続した例を示している。また、各通信スレーブのセンサーポートも任意の数だけ設けることができるが、簡単のため、センサーポート数が2の例を示している。また、サーボ制御部11〜14が、モータ61〜64に電力を供給するための電力線やセンサー51〜54に制御電源を供給するケーブルも、簡単のため、記述を省略している。   Note that the communication slaves can be cascade-connected in the required number of stages, but here, for simplicity, an example in which only two stages are cascade-connected is shown. In addition, although an arbitrary number of sensor ports can be provided for each communication slave, an example in which the number of sensor ports is 2 is shown for simplicity. In addition, the power lines for the servo control units 11 to 14 to supply power to the motors 61 to 64 and the cables for supplying the control power to the sensors 51 to 54 are not shown for simplicity.

通信マスタ2は、サーボ制御部を接続するためのシリアルポートを複数個持っているが、以降、そのシリアルポートをサーボポートという。また、個々のサーボポートを識別するための番号をサーボポート番号という。サーボポート番号は、あらかじめ決められているものであり、たとえば、sp1、sp2、sp3、sp4のように表記する。   The communication master 2 has a plurality of serial ports for connecting the servo control unit. Hereinafter, the serial ports are referred to as servo ports. A number for identifying each servo port is called a servo port number. The servo port number is determined in advance and is expressed as, for example, sp1, sp2, sp3, sp4.

通信スレーブ3、通信スレーブ4は、センサーをシリアル伝送路で接続するためのシリアルポートを持っているが、以降、そのシリアルポートをセンサーポートという。また、そのセンサーポートを識別する番号をセンサーポート番号という。センサーポート番号は、あらかじめ決められているものであり、例えば、p1、p2のように表記する。   The communication slave 3 and the communication slave 4 have a serial port for connecting a sensor through a serial transmission path. Hereinafter, the serial port is referred to as a sensor port. A number for identifying the sensor port is referred to as a sensor port number. The sensor port number is determined in advance and is expressed as, for example, p1 and p2.

さらに、以降、有効センサーポートとは、センサーが実際に接続されているセンサーポートのことをいうものとする。
後段有効センサーポート数とは、自己の通信スレーブより後段の通信スレーブの有効センサーポートの総数をいうものとする。
タイムスロットとは、各通信スレーブが有効センサーポートを介して受信したセンサー情報を通信マスタへ送信するときに、シリアル伝送路を時分割で使用するが、その時分割の単位のことをいうものとする。
Further, hereinafter, the effective sensor port refers to a sensor port to which a sensor is actually connected.
The number of effective sensor ports in the subsequent stage refers to the total number of effective sensor ports in the communication slaves subsequent to the own communication slave.
A time slot is a unit of time division when a serial transmission path is used in time division when each communication slave transmits sensor information received via an effective sensor port to the communication master. .

図1の構成において、コントローラ1のモーション制御部(図示せず)は、多軸機械を制御するために、外部からダウンロードされた作業プログラム(図示せず)を解釈して、サーボ制御部11〜14に与える指令を生成する。サーボ制御部11〜14は、その指令に基づいて、モータ61〜64をサーボ制御するが、そのサーボ制御に必要なセンサー51〜54からのセンサー情報を、通信スレーブ3、通信スレーブ4、通信マスタ2を介して得ることができる。   In the configuration of FIG. 1, the motion control unit (not shown) of the controller 1 interprets a work program (not shown) downloaded from the outside in order to control the multi-axis machine, 14 is generated. The servo control units 11 to 14 servo-control the motors 61 to 64 based on the command, but the sensor information from the sensors 51 to 54 necessary for the servo control is transmitted to the communication slave 3, the communication slave 4, and the communication master. 2 can be obtained.

図6は、通信マスタ2が通信スレーブ3へセンサー情報要求を送信し、通信スレーブ3がセンサー51へセンサー情報要求を送信し、センサー51がセンサー情報331を通信スレーブ3へ送信し、通信スレーブ3が通信マスタ2へセンサー情報331をタイムスロットt4を利用して送信する様子を示している。ただし、図6では、通信マスタ2へタイムスロットt1〜t3を利用して送信されるセンサー情報が、それぞれシリアル伝送路S8〜S10を介して通信スレーブ3〜4へ送信される様子については省略している。また、シリアル伝送路S5の伝送速度は、シリアル伝送路S7の2倍である場合の例として記載している。   In FIG. 6, the communication master 2 transmits a sensor information request to the communication slave 3, the communication slave 3 transmits a sensor information request to the sensor 51, the sensor 51 transmits the sensor information 331 to the communication slave 3, and the communication slave 3. Shows how the sensor information 331 is transmitted to the communication master 2 using the time slot t4. However, in FIG. 6, the sensor information transmitted to the communication master 2 using the time slots t1 to t3 is omitted from being transmitted to the communication slaves 3 to 4 via the serial transmission paths S8 to S10, respectively. ing. Further, the transmission speed of the serial transmission path S5 is described as an example in the case of twice that of the serial transmission path S7.

まず、通信マスタ2は、センサー情報要求310をシリアル伝送路S5へ送信し、通信スレーブ3は該センサー情報要求310を受信して、シリアル伝送路S7を介してセンサー51へ転送する。センサー51は、該センサー情報要求310に応答して、センサー情報331をシリアル伝送路S7を介して通信スレーブ3へ送信する。
通信スレーブ3は、後段からのセンサー情報333〜334を先に前段へ転送した後、自己の有効検出器ポートから受信したセンサー情報331〜332を、センサーポート番号の降順(昇順にすることも可能である)で前段へ送信する。
First, the communication master 2 transmits the sensor information request 310 to the serial transmission path S5, and the communication slave 3 receives the sensor information request 310 and transfers it to the sensor 51 via the serial transmission path S7. In response to the sensor information request 310, the sensor 51 transmits the sensor information 331 to the communication slave 3 via the serial transmission path S7.
The communication slave 3 first transfers the sensor information 333 to 334 from the subsequent stage to the previous stage, and then can set the sensor information 331 to 332 received from its own valid detector port in descending order (in ascending order) of the sensor port number. Is transmitted to the previous stage.

シリアル伝送路上の通信は時分割多重化され、タイムスロット番号は、より後段の通信スレーブのセンサーポート番号に対応するものから順番に、また、同一の通信スレーブ内においては、センサーポート番号の降順(昇順にすることも可能である)に、空きがないように、t1、t2、t3、t4のように割り当てられる。
タイムスロットの長さはセンサー情報の送信時間と、符号化に基づいて増えたビット数分の送信時間および伝送路長や伝送回路に依存した遅延時間を吸収するためのギャップ時間との和であり予め決められるものであり、タイムスロットの総数は、センサーが実際に接続されている有効センサーポートの総数となる。
なお、タイムスロット数は、通信マスタまたは各通信スレーブの送受信処理部に備えられたタイマ(図示せず)にタイムスロット長の時間を設定し、その時間がタイムアップする毎にカウントするものとする。
また、通信マスタ2においてタイムスロットをカウントする基準点は、各通信スレーブに対してセンサー情報要求310の送信を完了した時点であり、通信スレーブ3においてタイムスロットをカウントする基準点は、通信スレーブ3が通信マスタからセンサー情報要求310の受信を完了した時点である。
Communication on the serial transmission line is time-division multiplexed, and the time slot numbers are assigned in order starting from the one corresponding to the sensor port number of the communication slave at a later stage, and within the same communication slave, the descending order of the sensor port number ( (Ascending order is also possible), and allocation is made as t1, t2, t3, t4 so that there is no space.
The length of the time slot is the sum of the transmission time of the sensor information and the transmission time for the number of bits increased based on encoding and the gap time to absorb the delay time depending on the transmission path length and transmission circuit. The total number of time slots is the total number of valid sensor ports to which sensors are actually connected.
The number of time slots is counted every time the time slot length is set in a timer (not shown) provided in the transmission / reception processing unit of the communication master or each communication slave, and the time is up. .
The reference point for counting the time slot in the communication master 2 is the time when the transmission of the sensor information request 310 is completed to each communication slave, and the reference point for counting the time slot in the communication slave 3 is the communication slave 3. Is the time when the reception of the sensor information request 310 from the communication master is completed.

図6に示すようなタイムスロットを利用した通信を実現するために、各通信スレーブ3〜4は、初期化の段階において、自己の有効センサーポート、および、後段有効センサーポートの数を把握しておかなければならない。また、通信マスタ2は、全ての有効センサーポートの数を把握しておかなければならない。   In order to realize communication using time slots as shown in FIG. 6, each communication slave 3 to 4 grasps the number of its own effective sensor ports and subsequent effective sensor ports at the initialization stage. I have to leave. The communication master 2 must keep track of the number of all effective sensor ports.

以下、初期化の手順について説明する。
まず、各通信スレーブ3、4は、パワーオンリセット(図示せず)により、シリアル伝送路をON/OFFするためのカスケードスイッチSW1、SW2をOFFに設定する。また、自己の有効センサーポートのセンサーポート番号を検出し、スレーブセンサーポート表32、42の有効位置検出ポート番号欄(図3−a、3−b)に記憶しておく。
カスケードスイッチSW1、SW2がOFFのとき、通信マスタ2に接続されている通信スレーブは、通信マスタ2に最も近い通信スレーブ3のみとなる。この状態で、通信マスタ2は、図7に示すフローチャートに従って通信スレーブ3、4の通信スレーブ番号の設定と有効センサーポート数の把握を行う。
The initialization procedure will be described below.
First, the communication slaves 3 and 4 set the cascade switches SW1 and SW2 for turning on / off the serial transmission path to OFF by a power-on reset (not shown). Further, the sensor port number of its own effective sensor port is detected and stored in the effective position detection port number column (FIGS. 3A and 3B) of the slave sensor port tables 32 and 42.
When the cascade switches SW1 and SW2 are OFF, the communication slave connected to the communication master 2 is only the communication slave 3 closest to the communication master 2. In this state, the communication master 2 sets the communication slave numbers of the communication slaves 3 and 4 and grasps the number of valid sensor ports according to the flowchart shown in FIG.

通信マスタ2は、通信スレーブ3へ、通信スレーブ番号#1と有効センサーポート数要求からなる通信スレーブ番号設定コマンドを送信する。
通信スレーブ番号設定コマンドを受信した通信スレーブ3は、図8に示すフローチャートに従って応答する。すなわち、カスケードスイッチSW1がOFFである場合、通信スレーブ番号#1をスレーブセンサーポート表32の通信スレーブ番号欄(図3−a)に記憶し、スレーブセンサーポート表32に記憶されている通信スレーブ3の有効センサーポート数を通信マスタ2へ返信し、その後、カスケードスイッチSW1をONにする。
通信マスタ2は、返信されてきた通信スレーブ3のセンサーポート数を通信マスタ有効センサーポート表22の有効センサーポート数欄(図2)に記憶する。
The communication master 2 transmits to the communication slave 3 a communication slave number setting command including the communication slave number # 1 and a request for the number of valid sensor ports.
The communication slave 3 that has received the communication slave number setting command responds according to the flowchart shown in FIG. That is, when the cascade switch SW1 is OFF, the communication slave number # 1 is stored in the communication slave number column (FIG. 3A) of the slave sensor port table 32, and the communication slave 3 stored in the slave sensor port table 32 is stored. Is returned to the communication master 2, and then the cascade switch SW1 is turned ON.
The communication master 2 stores the returned number of sensor ports of the communication slave 3 in the effective sensor port number column (FIG. 2) of the communication master effective sensor port table 22.

通信マスタ2は、上記と同様の初期化の手順を、通信スレーブ番号をインクリメントしながら、最後段の通信スレーブ4からのセンサーポート数を受信するまで繰り返す。最後段の通信スレーブ4からのセンサーポート数であることは、有効センサーポート要求コマンドを送信した後にタイマがタイムアップした場合に、先回の返信が最終段の通信スレーブ4からのものだったというようにして判断することができる。
なお、このタイムアップは、通信マスタ2の送受信処理部に備えられたシリアル通信監視用のタイマ(図示せず)に設定したタイマ値がタイムアップしたことによって発生するものである。
The communication master 2 repeats the same initialization procedure as described above until the number of sensor ports from the last communication slave 4 is received while incrementing the communication slave number. The number of sensor ports from the last communication slave 4 indicates that the previous reply was from the last communication slave 4 when the timer timed out after sending a valid sensor port request command. In this way, it can be judged.
This time-up occurs when a timer value set in a serial communication monitoring timer (not shown) provided in the transmission / reception processing unit of the communication master 2 has timed out.

次に、通信マスタ2は、図9に示すフローチャートに従って、通信スレーブ3、4それぞれに、後段有効センサーポート数を送信する。まず、通信スレーブ3に、図5−bに示すような後段有効センサーポート数を設定するコマンドを送信する。この場合、通信スレーブ番号には“1”が、後段有効ポート数には、通信スレーブ3の後段である通信スレーブ4の有効センサーポート数“2”が設定される。
通信スレーブ3は、このコマンドを受信したら、図10に示すフローチャートに従って処理を行い、後段センサーポート数を通信スレーブセンサーポート表32の後段センサーポート数欄(図3−a)に記憶する。その後、その応答を通信マスタ2に返信する。
Next, the communication master 2 transmits the number of subsequent effective sensor ports to each of the communication slaves 3 and 4 according to the flowchart shown in FIG. First, a command for setting the number of post-stage effective sensor ports as shown in FIG. In this case, “1” is set as the communication slave number, and “2” is set as the effective sensor port number of the communication slave 4 that is the subsequent stage of the communication slave 3 as the subsequent stage effective port number.
Upon receiving this command, the communication slave 3 performs processing according to the flowchart shown in FIG. 10 and stores the number of subsequent sensor ports in the subsequent sensor port number column (FIG. 3A) of the communication slave sensor port table 32. Thereafter, the response is returned to the communication master 2.

次に、通信マスタ2は、通信スレーブ4に対して同様に、後段有効センサーポート数を設定する手順を行うが、通信スレーブ4は最後段なので、有効センサーポート数“0”を設定するためのコマンドを送信する。通信スレーブ数が任意の場合は、通信マスタセンサーポート表22から記憶されている通信スレーブ数の分だけ、後段有効センサーポート数の設定手順を繰り返す。
以上のような初期化手順が終了したとき、通信マスタ2は通信マスタ有効センサーポート表22に図2に示すような情報を記憶し、通信スレーブ3、4は通信スレーブ有効センサーポート表32、42に図3−a、3−bに示すような情報を記憶し、カスケードスイッチSW1、SW2は全てONになっている。
Next, the communication master 2 performs the procedure for setting the number of subsequent effective sensor ports in the same manner for the communication slave 4. However, since the communication slave 4 is the last stage, the number of effective sensor ports “0” is set. Send a command. If the number of communication slaves is arbitrary, the setting procedure for the number of subsequent effective sensor ports is repeated by the number of communication slaves stored from the communication master sensor port table 22.
When the initialization procedure as described above is completed, the communication master 2 stores information as shown in FIG. 2 in the communication master valid sensor port table 22, and the communication slaves 3 and 4 have communication slave valid sensor port tables 32 and 42. 3-a and 3-b are stored in FIG. 3, and the cascade switches SW1 and SW2 are all turned on.

次に、図11、12を用いて、サーボ制御時の通信マスタ2と通信スレーブ3,4との通信について説明する。
まず、通信マスタ2は、コントローラ1のサーボ制御部11〜14のいずれかからのセンサー情報要求に同期してまたはクロック19に同期して、図5−dに示すようなセンサー情報要求コマンドを通信スレーブ3、4へ送信する。
センサー情報要求コマンドを受信した通信スレーブ3、4は、該センサー情報要求コマンドを各々の有効センサーポートp1、p2、シリアル伝送路S7〜10を介してセンサー51〜54へ送信する。センサー51〜54はセンサー情報を、シリアル伝送路S7〜10、有効センサーポートp1、p2を介して、通信スレーブ3、4へ送信する。
Next, communication between the communication master 2 and the communication slaves 3 and 4 during servo control will be described with reference to FIGS.
First, the communication master 2 communicates a sensor information request command as shown in FIG. 5D in synchronization with a sensor information request from any of the servo control units 11 to 14 of the controller 1 or in synchronization with the clock 19. Transmit to slaves 3 and 4.
The communication slaves 3 and 4 that have received the sensor information request command transmit the sensor information request command to the sensors 51 to 54 via the valid sensor ports p1 and p2 and the serial transmission paths S7 to S10, respectively. The sensors 51 to 54 transmit the sensor information to the communication slaves 3 and 4 via the serial transmission paths S7 to 10 and the effective sensor ports p1 and p2.

通信スレーブ4は、後段有効センサーポート数が0なので後段からのセンサー情報の送信を待つことなく、センサー53、54からのセンサー情報をセンサーポート番号の降順(昇順にすることも可能である)で、通信スレーブ3へ送信する。
通信スレーブ3は、タイムスロットが後段有効センサーポート数分経過した後、センサー51、52からのセンサー情報をセンサーポート番号の降順(昇順にすることも可能である)で通信マスタ2へ送信する。
通信マスタ2は、タイムスロットが全てのセンサーポート数分経過したら、全ての有効センサーポートからのセンサー情報を受信しているので、該センサー情報を受信した順番、すなわち、タイムスロット番号t1〜t4の順番とサーボポート番号sp1〜sp4の昇順(降順にすることも可能である)を対応させて、該センサー情報をサーボポートsp1〜sp4へ送信する。
The communication slave 4 has no effective sensor port on the rear stage, so that the sensor information from the sensors 53 and 54 can be arranged in descending order (in ascending order) of the sensor port number without waiting for transmission of sensor information from the rear stage. To the communication slave 3.
The communication slave 3 transmits the sensor information from the sensors 51 and 52 to the communication master 2 in the descending order of the sensor port numbers (it can also be in ascending order) after the time slot has elapsed for the number of subsequent effective sensor ports.
Since the communication master 2 has received sensor information from all valid sensor ports after the time slot has elapsed for all sensor ports, the communication master 2 receives the sensor information in the order in which the sensor information is received, that is, the time slot numbers t1 to t4. The sensor information is transmitted to the servo ports sp1 to sp4 by associating the order with the ascending order of the servo port numbers sp1 to sp4 (it is also possible to set the descending order).

図13は、サーボ制御時の通信マスタ2と通信スレーブ3、4との通信のタイミング図で、シリアル伝送路S1〜S4、S5、S6、S7〜S10上を流れるセンサー情報要求とセンサー情報を示している。本タイミング図は、シリアル伝送路S5、S6の通信速度は、シリアル伝送路S1〜S4、S7〜S10の通信速度の2倍であるものとして記述している。   FIG. 13 is a timing diagram of communication between the communication master 2 and the communication slaves 3 and 4 at the time of servo control, and shows sensor information requests and sensor information flowing on the serial transmission paths S1 to S4, S5, S6, and S7 to S10. ing. This timing diagram describes that the communication speeds of the serial transmission lines S5 and S6 are twice the communication speeds of the serial transmission lines S1 to S4 and S7 to S10.

初期化が完了してサーボ制御が始まった後、サーボ制御部11〜14からのセンサー情報要求コマンド311〜314はシリアル伝送路S1〜S4に、同じタイミングで送信される。サーボ制御部11〜14は、共通のクロック19に同期して動作するからである。
通信マスタ2は、任意の一つのセンサー情報要求コマンドを通信スレーブ3、4へ送信するが、図13では、サーボ制御部11からのセンサー情報要求コマンド311を通信スレーブ3、4へシリアル通信路S5、S6を介して送信している。
このセンサー情報要求コマンド311を受信した通信スレーブ3は、センサー51〜52のセンサー情報を得るために、センサー情報要求コマンド311をシリアル伝送路S7〜S8を介してセンサー51〜52へ送信する。センサー51〜52は同時にセンサー情報要求コマンド311を受信して、それに対する応答であるセンサー情報331〜332をシリアル伝送路S7〜S8を介して通信スレーブ3へ送信する。
After initialization is completed and servo control is started, sensor information request commands 311 to 314 from the servo control units 11 to 14 are transmitted to the serial transmission lines S1 to S4 at the same timing. This is because the servo control units 11 to 14 operate in synchronization with the common clock 19.
The communication master 2 transmits an arbitrary one sensor information request command to the communication slaves 3 and 4. In FIG. 13, the sensor information request command 311 from the servo control unit 11 is sent to the communication slaves 3 and 4 through the serial communication path S5. , S6 is transmitted.
The communication slave 3 that has received the sensor information request command 311 transmits the sensor information request command 311 to the sensors 51 to 52 via the serial transmission paths S7 to S8 in order to obtain sensor information of the sensors 51 to 52. The sensors 51 to 52 simultaneously receive the sensor information request command 311 and transmit sensor information 331 to 332 as responses thereto to the communication slave 3 via the serial transmission paths S7 to S8.

同様に、このセンサー情報要求コマンド311を受信した通信スレーブ4は、センサー53〜54のセンサー情報を得るために、センサー情報要求コマンド311をシリアル伝送路S9〜S10を介してセンサー53〜54へ送信する。センサー53〜54は同時にセンサー情報要求コマンド311を受信して、それに対する応答であるセンサー情報333〜334をシリアル伝送路S9〜S10を介して通信スレーブ4へ送信する。
通信スレーブ4は、後段有効センサーポート数が0に設定されているので、後段からのセンサー情報を受信することなく、自己のセンサー情報をセンサーポート番号の降順(昇順にすることも可能である)で前段へ送信する。すなわち、まず、センサー情報334をシリアル伝送路S6を介して通信スレーブ3へ送信し、次に、センサー情報333をシリアル伝送路S6を介して通信スレーブ3へ送信する。
Similarly, the communication slave 4 that has received the sensor information request command 311 transmits the sensor information request command 311 to the sensors 53 to 54 via the serial transmission paths S9 to S10 in order to obtain sensor information of the sensors 53 to 54. To do. The sensors 53 to 54 simultaneously receive the sensor information request command 311 and transmit sensor information 333 to 334 as responses to the command to the communication slave 4 via the serial transmission paths S9 to S10.
Since the number of effective sensor ports in the rear stage is set to 0, the communication slave 4 does not receive sensor information from the rear stage, and the sensor information of its own can be in descending order (in ascending order) of the sensor port number. Send to the previous stage. That is, first, the sensor information 334 is transmitted to the communication slave 3 via the serial transmission path S6, and then the sensor information 333 is transmitted to the communication slave 3 via the serial transmission path S6.

通信スレーブ3は、後段有効センサーポート数が2に設定されているので、後段からのセンサー情報をシリアル伝送路S6を介して、タイムスロット数“2”個分カウントして、シリアル伝送路S5を介して通信マスタ2へ転送する。その後、自己のセンサー情報332をシリアル伝送路S5を介して通信マスタ2へ送信し、その次にセンサー情報331をシリアル伝送路S5を介して通信マスタ2へ送信する。   Since the number of effective sensor ports in the subsequent stage is set to 2, the communication slave 3 counts the sensor information from the subsequent stage for the number of time slots “2” via the serial transmission path S6, and sets the serial transmission path S5. Via the communication master 2. Thereafter, its own sensor information 332 is transmitted to the communication master 2 via the serial transmission path S5, and then the sensor information 331 is transmitted to the communication master 2 via the serial transmission path S5.

通信マスタ2は、これらのセンサー情報331〜334を、受信した順番と逆の順番、すなわちタイムスロット番号t1〜t4の降順を、サーボポート番号sp1〜sp4の昇順(昇順にすることも可能である)に対応させて、サーボポートsp1〜sp4出力する。各タイムスロットで受信されたセンサー情報は、どのモータに取り付けられたセンサーからのものであるかが分かっているので、このサーボポートに出力されるセンサー情報は、どのモータに取り付けられたセンサーからのものであるかが分かっている。従って、その情報に基づいてサーボポートsp1〜sp4とサーボ制御部11〜14をシリアル伝送路S1〜S4で接続しておけば、各サーボ制御部11〜14は、自己が必要とするセンサー情報を受信することができる。   The communication master 2 can also arrange the sensor information 331 to 334 in the reverse order of the order of reception, that is, the descending order of the time slot numbers t1 to t4 in ascending order (ascending order) of the servo port numbers sp1 to sp4. ), Servo ports sp1 to sp4 are output. Since the sensor information received in each time slot is known from the sensor attached to which motor, the sensor information output to this servo port is from the sensor attached to which motor. I know what it is. Therefore, if the servo ports sp1 to sp4 and the servo control units 11 to 14 are connected by the serial transmission paths S1 to S4 based on the information, each servo control unit 11 to 14 can acquire the sensor information required by itself. Can be received.

サーボ制御部11〜14とサーボポートsp1〜sp4を個別のシリアル伝送路S1〜S4で接続できる場合は、サーボ制御部11〜14とサーボポートsp1〜sp4を適切に対応させることは容易である。
しかし、サーボ制御部11〜14とサーボポートsp1〜sp4が、リボンケーブルまたはプリント配線で接続される場合、サーボ制御部11〜14とサーボポートsp1〜sp4の対応が固定され、サーボ制御部がそのサーボ制御部によって制御されるモータに取り付けられたセンサーからのセンサー情報を受信できない状態が発生する恐れがある。
そのような場合には、通信マスタ2は、タイムスロット/サーボポート対応表23、すなわち図4に示すようなタイムスロット番号とサーボポート番号の対応表を持ち、そのタイムスロット番号に対応したサーボポートへ、該タイムスロット番号において受信したセンサー情報を送信する。
なお、タイムスロット/サーボポート対応表23の設定は、たとえば、外部のエンジニアリングツール等からコントローラ1のシリアルポート(図示せず)、サーボ制御部11、シリアル伝送路S1を介して通信マスタ2へ容易にダウンロードすることができる。
When the servo control units 11 to 14 and the servo ports sp1 to sp4 can be connected by the individual serial transmission paths S1 to S4, it is easy to appropriately correspond the servo control units 11 to 14 and the servo ports sp1 to sp4.
However, when the servo control units 11 to 14 and the servo ports sp1 to sp4 are connected by a ribbon cable or printed wiring, the correspondence between the servo control units 11 to 14 and the servo ports sp1 to sp4 is fixed. There is a possibility that a state in which sensor information from a sensor attached to a motor controlled by the servo control unit cannot be received may occur.
In such a case, the communication master 2 has a time slot / servo port correspondence table 23, that is, a correspondence table of time slot numbers and servo port numbers as shown in FIG. 4, and a servo port corresponding to the time slot number. The sensor information received at the time slot number is transmitted.
The time slot / servo port correspondence table 23 can be easily set to the communication master 2 from an external engineering tool or the like via the serial port (not shown) of the controller 1, the servo control unit 11, and the serial transmission path S1. Can be downloaded.

次に、センサーへのパラメータの書込みについて、図14を用いて説明する。センサーへの個別の書込みは該センサーが接続されているセンサーポートへの書込みのみを有効にして、センサー情報の読出しと同様に、タイムスロット方式で行う。そのために、図5−cに示すようなセンサーポートマスク要求341を各通信スレーブに対して送信し、当該センサーポートへの書込みのみを有効にして他のセンサーポートへの書込みを無効にする。
その後、通信マスタは2、パラメータ等のデータを書込むためのセンサー書込み要求352を送信する。図14では、センサー52向けにンサー書込み要求352が伝送される。なお、センサー52からの応答を通信マスタ2へ送信する方法は、センサー情報を送信する場合と同様であるので説明を省略する。
Next, parameter writing to the sensor will be described with reference to FIG. The individual writing to the sensor is performed by the time slot method in the same manner as the reading of the sensor information by enabling only the writing to the sensor port to which the sensor is connected. For this purpose, a sensor port mask request 341 as shown in FIG. 5C is transmitted to each communication slave, and only writing to the sensor port is enabled and writing to other sensor ports is disabled.
Thereafter, the communication master 2 sends a sensor write request 352 for writing data such as parameters. In FIG. 14, a sensor write request 352 is transmitted to the sensor 52. Note that the method for transmitting the response from the sensor 52 to the communication master 2 is the same as that for transmitting the sensor information, and a description thereof will be omitted.

次に、本発明の第3実施例のセンサー用シリアル通信装置の動作について図15を用いて説明する。図15は本発明の第3実施例のセンサー用シリアル通信装置のシステム構成図である。図15において図1と同じものに関しては説明を省略する。24は通信マスタ送受信処理部、25は通信マスタ有効センサーポート表、26はタイムスロット/サーボポート対応表であり、それぞれ通信マスタ送受信処理部21、通信マスタ有効センサーポート表22、タイムスロット/サーボポート対応表23と同等の動作を行う。27はサーボポート対応回路であり、サーボポート/タイムスロット対応表23、26に従いタイムスロット番号とサーボポート番号を対応させて、センサー情報をサーボポートsp1〜sp4へ送信する。
33、43は上位側ポート記憶回路であり、初期化時に通信マスタ2から送信される通信スレーブ番号設定コマンドを受信したポートが上位側であると判断し記憶するとともに、ポート選択信号34、44を出力し、ポート切替回路35,45の動作を切り替える。
Next, the operation of the sensor serial communication apparatus according to the third embodiment of the present invention will be described with reference to FIG. FIG. 15 is a system configuration diagram of the sensor serial communication apparatus according to the third embodiment of the present invention. In FIG. 15, the description of the same components as those in FIG. 1 is omitted. Reference numeral 24 is a communication master transmission / reception processing unit, 25 is a communication master valid sensor port table, and 26 is a time slot / servo port correspondence table. The communication master transmission / reception processing unit 21, communication master valid sensor port table 22, time slot / servo port, respectively. The same operation as in the correspondence table 23 is performed. Reference numeral 27 denotes a servo port correspondence circuit, which associates the time slot number with the servo port number according to the servo port / time slot correspondence tables 23 and 26, and transmits the sensor information to the servo ports sp1 to sp4.
33 and 43 are high-order port storage circuits, which determine and store that the port that received the communication slave number setting command transmitted from the communication master 2 at the time of initialization is the high-order side and store the port selection signals 34 and 44. Output, and the operation of the port switching circuits 35 and 45 is switched.

ポート切替回路35,45の動作について図16を用いて説明する。図16は本発明の第3実施例の通信スレーブ3のブロック図である。
初期化時にシリアル伝送路S5から通信スレーブ番号設定コマンドを受信した場合、上位側ポート記憶回路33はシリアル伝送路S5側が上位側であると記憶するとともに、ポート切替回路35に対してポート選択信号34に“0”を出力する。また、カスケードスイッチSW1をONにする。
これにより、ポート切替回路35はシリアル伝送路S5からのセンサー情報要求コマンドを通信スレーブ送受信処理部31に出力するとともに、シリアル伝送路S6に接続された通信スレーブに対して出力することができる。また、シリアル伝送路S6からのセンサー情報をシリアル伝送路S5に出力することができる(図30−a)。
The operation of the port switching circuits 35 and 45 will be described with reference to FIG. FIG. 16 is a block diagram of the communication slave 3 according to the third embodiment of the present invention.
When a communication slave number setting command is received from the serial transmission path S5 at the time of initialization, the higher-order port storage circuit 33 stores that the serial transmission path S5 side is the higher-order side, and sends a port selection signal 34 to the port switching circuit 35. "0" is output to. Further, the cascade switch SW1 is turned on.
As a result, the port switching circuit 35 can output the sensor information request command from the serial transmission path S5 to the communication slave transmission / reception processing unit 31, and can output it to the communication slave connected to the serial transmission path S6. Further, sensor information from the serial transmission path S6 can be output to the serial transmission path S5 (FIG. 30-a).

また、初期化時にシリアル伝送路S6から通信スレーブ番号設定コマンドを受信した場合には、上位側ポート記憶回路33はシリアル伝送路S6側が上位側であると記憶するとともに、ポート切替回路35に対してポート選択信号34に“1”を出力する。また、カスケードスイッチSW1をONにする。
これにより、ポート切替回路35はシリアル伝送路S6からのセンサー情報要求コマンドを通信スレーブ送受信処理部31に出力するとともに、シリアル伝送路S5に接続された通信スレーブに対して出力することができる。また、シリアル伝送路S5からのセンサー情報をシリアル伝送路S6に出力することができる(図30−b)。
When a communication slave number setting command is received from the serial transmission path S6 at the time of initialization, the higher-order port storage circuit 33 stores that the serial transmission path S6 side is the higher-order side, and the port switching circuit 35 “1” is output to the port selection signal 34. Further, the cascade switch SW1 is turned on.
As a result, the port switching circuit 35 can output the sensor information request command from the serial transmission path S6 to the communication slave transmission / reception processing unit 31, and can output it to the communication slave connected to the serial transmission path S5. Further, the sensor information from the serial transmission path S5 can be output to the serial transmission path S6 (FIG. 30-b).

上位側ポート記憶回路33は、初期化時に上位側のポートを記憶すると再度初期化を行うまでその状態を保持する。これにより、シリアル伝送路S5、S6のどちら側にでも通信マスタ2を接続することが可能となる。   When the upper port storage circuit 33 stores the upper port at the time of initialization, the upper port storage circuit 33 holds the state until the initialization is performed again. As a result, the communication master 2 can be connected to either of the serial transmission paths S5 and S6.

図15の構成において、通信マスタ2と通信スレーブ3、4とは、シリアル伝送路S5〜S6を介して接続される。その動作は本発明の第1実施例と同等である。
しかしながら、シリアル伝送路S5、もしくは、シリアル伝送路S6において断線が発生した場合、以降正常にデータの送受信を行うことができない。
In the configuration of FIG. 15, the communication master 2 and the communication slaves 3 and 4 are connected via serial transmission paths S5 to S6. The operation is equivalent to that of the first embodiment of the present invention.
However, when a disconnection occurs in the serial transmission path S5 or the serial transmission path S6, data cannot be normally transmitted / received thereafter.

以下、発明の第3実施例の第1の形態としてシリアル伝送路S5に断線D1が発生した場合の復旧の手順について図17を用い説明する。
まず、ターミネータ5を取り外し、通信マスタ2と通信スレーブ4をシリアル伝送路S11で接続した状態で電源を投入する。通信スレーブ3、4は、パワーオンリセット(図示せず)により、シリアル伝送路をON/OFFするためのカスケードスイッチSW1、SW2をOFFに設定する。また、自己の有効センサーポートのセンサーポート番号を検出し、スレーブ有効センサーポート表32、42の有効センサーポート番号欄(図3−a、3−b)に記憶しておく。
通信マスタ2は図23に示すフローチャートに従って通信スレーブ3、4の通信スレーブ番号の設定と有効センサーポート数の把握を行う。
Hereinafter, as a first mode of the third embodiment of the present invention, a recovery procedure when the disconnection D1 occurs in the serial transmission line S5 will be described with reference to FIG.
First, the terminator 5 is removed, and the power is turned on while the communication master 2 and the communication slave 4 are connected by the serial transmission path S11. The communication slaves 3 and 4 set the cascade switches SW1 and SW2 for turning on / off the serial transmission path to OFF by a power-on reset (not shown). Further, the sensor port number of its own valid sensor port is detected and stored in the valid sensor port number column (FIGS. 3-a and 3-b) of the slave valid sensor port tables 32 and.
The communication master 2 sets the communication slave numbers of the communication slaves 3 and 4 and grasps the number of valid sensor ports according to the flowchart shown in FIG.

通信マスタ2は通信マスタ送受信処理部21より通信スレーブ番号#1と有効センサーポート数要求からなる通信スレーブ番号設定コマンドを送信する。しかしながら、シリアル伝送路S5には断線D1が発生しており通信スレーブ3は通信スレーブ番号設定コマンドを受信することができないため、通信マスタ2の送受信処理部に備えられたシリアル通信監視用のタイマ(図示せず)に設定したタイマ値がタイムアップすることによりシリアル伝送路S5には通信スレーブが接続されていないと判断することができる。そこで、通信マスタ2は、通信マスタ有効センサーポート表22の有効センサーポート数欄(図18−a)に“0”を記憶する。   The communication master 2 transmits a communication slave number setting command composed of the communication slave number # 1 and the number of valid sensor ports from the communication master transmission / reception processing unit 21. However, since the disconnection D1 occurs in the serial transmission path S5 and the communication slave 3 cannot receive the communication slave number setting command, the serial communication monitoring timer (provided in the transmission / reception processing unit of the communication master 2) When the timer value set in (not shown) expires, it can be determined that no communication slave is connected to the serial transmission path S5. Therefore, the communication master 2 stores “0” in the effective sensor port number column (FIG. 18A) of the communication master effective sensor port table 22.

次に、通信マスタ2は通信マスタ送受信処理部24より通信スレーブ番号#1と有効センサーポート数要求からなる通信スレーブ番号設定コマンドを送信する。通信スレーブ番号設定コマンドを受信した通信スレーブ4は、図24に示すフローチャートに従って応答する。すなわち、カスケードスイッチSW2がOFFである場合、通信スレーブ番号設定コマンドを受信したポートを上位側であると判断し上位側ポート記憶回路44に記憶する。次に、通信スレーブ番号#1をスレーブセンサーポート表42の通信スレーブ番号欄(図19−b)に記憶し、スレーブセンサーポート表42に記憶されている通信スレーブ4の有効センサーポート数を通信マスタ2へ返信し、その後、カスケードスイッチSW2をONにする。
通信マスタ2は、返信されてきた通信スレーブ4のセンサーポート数を通信マスタ有効センサーポート表25の有効センサーポート数欄(図18−b)に記憶する。
Next, the communication master 2 transmits a communication slave number setting command including the communication slave number # 1 and the number of valid sensor ports from the communication master transmission / reception processing unit 24. The communication slave 4 that has received the communication slave number setting command responds according to the flowchart shown in FIG. That is, when the cascade switch SW2 is OFF, the port that has received the communication slave number setting command is determined to be the upper side, and is stored in the upper side port storage circuit 44. Next, the communication slave number # 1 is stored in the communication slave number column (FIG. 19B) of the slave sensor port table 42, and the number of effective sensor ports of the communication slave 4 stored in the slave sensor port table 42 is set as the communication master. 2 and then turn on the cascade switch SW2.
The communication master 2 stores the returned sensor port number of the communication slave 4 in the effective sensor port number column (FIG. 18B) of the communication master effective sensor port table 25.

通信マスタ2は通信マスタ送受信処理部24より上記と同様の初期化の手順を、通信スレーブ番号をインクリメントしながら、最後段の通信スレーブ3からのセンサーポート数を受信するまで繰り返す。最後段の通信スレーブ3からのセンサーポート数であることは、有効センサーポート要求コマンドを送信した後にタイマがタイムアップした場合に、先回の返信が最終段の通信スレーブ3からのものだったというようにして判断することができる。
なお、このタイムアップは、通信マスタ2の送受信処理部に備えられたシリアル通信監視用のタイマ(図示せず)に設定したタイマ値がタイムアップしたことによって発生するものである。
The communication master 2 repeats the same initialization procedure as described above from the communication master transmission / reception processing unit 24 until the number of sensor ports from the last communication slave 3 is received while incrementing the communication slave number. The number of sensor ports from the last communication slave 3 indicates that the last reply was from the last communication slave 3 when the timer timed out after sending a valid sensor port request command In this way, it can be judged.
This time-up occurs when a timer value set in a serial communication monitoring timer (not shown) provided in the transmission / reception processing unit of the communication master 2 has timed out.

次に、通信マスタ2は、図9に示すフローチャートに従って、通信スレーブ3、4それぞれに、後段有効センサーポート数を送信する。まず、通信スレーブ4に、図5−bに示すような後段有効センサーポート数を設定するコマンドを送信する。この場合、通信スレーブ番号には“1”が、後段有効ポート数には、通信スレーブ4の後段である通信スレーブ3の有効センサーポート数“2”が設定される。
通信スレーブ4は、このコマンドを受信したら、図10に示すフローチャートに従って処理を行い、後段センサーポート数を通信スレーブセンサーポート表42の後段センサーポート数欄(図19−b)に記憶する。その後、その応答を通信マスタ2に返信する。
Next, the communication master 2 transmits the number of subsequent effective sensor ports to each of the communication slaves 3 and 4 according to the flowchart shown in FIG. First, a command for setting the number of post-stage effective sensor ports as shown in FIG. In this case, “1” is set as the communication slave number, and “2” is set as the effective sensor port number of the communication slave 3 subsequent to the communication slave 4 as the number of subsequent effective ports.
Upon receiving this command, the communication slave 4 performs processing according to the flowchart shown in FIG. 10, and stores the number of subsequent sensor ports in the number of subsequent sensor ports in the communication slave sensor port table 42 (FIG. 19B). Thereafter, the response is returned to the communication master 2.

次に、通信マスタ2は、通信スレーブ3に対して同様に、後段有効センサーポート数を設定する手順を行うが、通信スレーブ3は最後段なので、有効センサーポート数“0”を設定するためのコマンドを送信する。通信スレーブ数が任意の場合は、通信マスタセンサーポート表22から記憶されている通信スレーブ数の分だけ、後段有効センサーポート数の設定手順を繰り返す。
以上のような初期化手順が終了したとき、通信マスタ2は通信マスタ有効センサーポート表22、25に図18−a、18−bに示すような情報を記憶し、通信スレーブ3、4は通信スレーブ有効センサーポート表32、42に図19−a、19−bに示すような情報を記憶し、カスケードスイッチSW1、SW2は全てONになっている。
Next, the communication master 2 performs the procedure for setting the number of subsequent effective sensor ports in the same manner for the communication slave 3, but since the communication slave 3 is the last stage, the number of effective sensor ports “0” is set. Send a command. If the number of communication slaves is arbitrary, the setting procedure for the number of subsequent effective sensor ports is repeated by the number of communication slaves stored from the communication master sensor port table 22.
When the initialization procedure as described above is completed, the communication master 2 stores information as shown in FIGS. 18A and 18B in the communication master valid sensor port tables 22 and 25, and the communication slaves 3 and 4 communicate with each other. Information as shown in FIGS. 19A and 19B is stored in the slave effective sensor port tables 32 and 42, and the cascade switches SW1 and SW2 are all ON.

図25は、シリアル伝送路S5に断線D1が発生している場合のサーボ制御時の通信マスタ2と通信スレーブ3、4との通信のタイミング図で、シリアル伝送路S9、S11上を流れるセンサー情報要求とセンサー情報を示している。本タイミング図は、シリアル伝送路S6、S11の通信速度は、シリアル伝送路S1〜S4、S7〜S10の通信速度の2倍であるものとして記述している。   FIG. 25 is a timing chart of communication between the communication master 2 and the communication slaves 3 and 4 during the servo control when the disconnection D1 occurs in the serial transmission path S5. The sensor information flowing on the serial transmission paths S9 and S11 is shown in FIG. Shows request and sensor information. In this timing diagram, the communication speeds of the serial transmission paths S6 and S11 are described as being twice the communication speed of the serial transmission paths S1 to S4 and S7 to S10.

初期化が完了してサーボ制御が始まった後、サーボ制御部11〜14からのセンサー情報要求コマンド311〜314はシリアル伝送路S1〜S4に、同じタイミングで送信される。サーボ制御部11〜14は、共通のクロック19に同期して動作するからである。
通信マスタ2の通信マスタ送受信処理部24は、任意の一つのセンサー情報要求コマンドを通信スレーブ3、4へ送信するが、図25では、サーボ制御部11からのセンサー情報要求コマンド311を通信スレーブ3、4へシリアル通信路S11、S6を介して送信している。
このセンサー情報要求コマンド311を受信した通信スレーブ4は、センサー53〜54のセンサー情報を得るために、センサー情報要求コマンド311をシリアル伝送路S9〜S10を介してセンサー53〜54へ送信する。センサー53〜54は同時にセンサー情報要求コマンド311を受信して、それに対する応答であるセンサー情報333〜334をシリアル伝送路S9〜S10を介して通信スレーブ4へ送信する。
After initialization is completed and servo control is started, sensor information request commands 311 to 314 from the servo control units 11 to 14 are transmitted to the serial transmission lines S1 to S4 at the same timing. This is because the servo control units 11 to 14 operate in synchronization with the common clock 19.
The communication master transmission / reception processing unit 24 of the communication master 2 transmits any one sensor information request command to the communication slaves 3 and 4, but in FIG. 25, the sensor information request command 311 from the servo control unit 11 is transmitted to the communication slave 3. 4 via serial communication paths S11 and S6.
The communication slave 4 that has received the sensor information request command 311 transmits the sensor information request command 311 to the sensors 53 to 54 via the serial transmission paths S9 to S10 in order to obtain sensor information of the sensors 53 to 54. The sensors 53 to 54 simultaneously receive the sensor information request command 311 and transmit sensor information 333 to 334 as responses to the command to the communication slave 4 via the serial transmission paths S9 to S10.

同様に、このセンサー情報要求コマンド311を受信した通信スレーブ3は、センサー51〜52のセンサー情報を得るために、センサー情報要求コマンド311をシリアル伝送路S7〜S8を介してセンサー51〜52へ送信する。センサー51〜52は同時にセンサー情報要求コマンド311を受信して、それに対する応答であるセンサー情報331〜332をシリアル伝送路S7〜S8を介して通信スレーブ3へ送信する。
通信スレーブ3は、後段有効センサーポート数が0に設定されているので、後段からのセンサー情報を受信することなく、自己のセンサー情報をセンサーポート番号の降順(昇順にすることも可能である)で前段へ送信する。すなわち、まず、センサー情報332をシリアル伝送路S6を介して通信スレーブ4へ送信し、次に、センサー情報331をシリアル伝送路S6を介して通信スレーブ4へ送信する。
Similarly, the communication slave 3 that has received the sensor information request command 311 transmits the sensor information request command 311 to the sensors 51 to 52 via the serial transmission paths S7 to S8 in order to obtain sensor information of the sensors 51 to 52. To do. The sensors 51 to 52 simultaneously receive the sensor information request command 311 and transmit sensor information 331 to 332 as responses thereto to the communication slave 3 via the serial transmission paths S7 to S8.
Since the communication slave 3 has the number of effective sensor ports in the subsequent stage set to 0, it is possible to set its own sensor information in descending order (in ascending order) of the sensor port number without receiving sensor information from the subsequent stage. Send to the previous stage. That is, first, the sensor information 332 is transmitted to the communication slave 4 via the serial transmission path S6, and then the sensor information 331 is transmitted to the communication slave 4 via the serial transmission path S6.

通信スレーブ4は、後段有効センサーポート数が2に設定されているので、後段からのセンサー情報をシリアル伝送路S6を介して、タイムスロット数“2”個分カウントして、シリアル伝送路S11を介して通信マスタ2へ転送する。その後、自己のセンサー情報334をシリアル伝送路S11を介して通信マスタ2へ送信し、その次にセンサー情報333をシリアル伝送路S11を介して通信マスタ2へ送信する。   Since the number of effective sensor ports in the rear stage is set to 2, the communication slave 4 counts the sensor information from the rear stage by the number of time slots “2” via the serial transmission path S6 and sets the serial transmission path S11. Via the communication master 2. Thereafter, the sensor information 334 is transmitted to the communication master 2 through the serial transmission path S11, and then the sensor information 333 is transmitted to the communication master 2 through the serial transmission path S11.

通信マスタ2は、これらのセンサー情報331〜334を、タイムスロット/サーボポート対応表26に従い該センサー情報を受信した順番、すなわち、タイムスロット番号t21〜t24とサーボポート番号sp1〜sp4を対応させて、該センサー情報をサーボポートsp1〜sp4へ送信する。   The communication master 2 associates the sensor information 331 to 334 with the order in which the sensor information is received according to the time slot / servo port correspondence table 26, that is, the time slot numbers t21 to t24 and the servo port numbers sp1 to sp4. The sensor information is transmitted to the servo ports sp1 to sp4.

次に、本発明の第3実施例の第2の形態としてシリアル伝送路S6に断線D2が発生した場合の復旧の手順について図20を用い説明する。
まず、ターミネータ5を取り外し、通信マスタ2と通信スレーブ4をシリアル伝送路11で接続した状態で電源を投入する。通信スレーブ3、4は、パワーオンリセット(図示せず)により、シリアル伝送路をON/OFFするためのカスケードスイッチSW1、SW2をOFFに設定する。また、自己の有効センサーポートのセンサーポート番号を検出し、スレーブセンサーポート表32、42の有効センサーポート番号欄(図3−a、3−b)に記憶しておく。
通信マスタ2は図23に示すフローチャートに従って通信スレーブ3、4の通信スレーブ番号の設定と有効センサーポート数の把握を行う。
Next, as a second mode of the third embodiment of the present invention, the recovery procedure when the disconnection D2 occurs in the serial transmission line S6 will be described with reference to FIG.
First, the terminator 5 is removed, and the power is turned on with the communication master 2 and the communication slave 4 connected by the serial transmission line 11. The communication slaves 3 and 4 set the cascade switches SW1 and SW2 for turning on / off the serial transmission path to OFF by a power-on reset (not shown). Further, the sensor port number of its own valid sensor port is detected and stored in the valid sensor port number column (FIGS. 3A and 3B) of the slave sensor port tables 32 and 42.
The communication master 2 sets the communication slave numbers of the communication slaves 3 and 4 and grasps the number of valid sensor ports according to the flowchart shown in FIG.

通信マスタ2は通信マスタ送受信処理部21より通信スレーブ番号#1と有効センサーポート数要求からなる通信スレーブ番号設定コマンドを送信する。通信スレーブ番号設定コマンドを受信した通信スレーブ3は、図24に示すフローチャートに従って応答する。すなわち、カスケードスイッチSW1がOFFである場合、通信スレーブ番号設定コマンドを受信したポートを上位側であると判断し上位側ポート記憶回路34に記憶する。次に、通信スレーブ番号#1をスレーブセンサーポート表32の通信スレーブ番号欄(図22−a)に記憶し、スレーブセンサーポート表32に記憶されている通信スレーブ3の有効センサーポート数を通信マスタ2へ返信し、その後、カスケードスイッチSW2をONにする。
通信マスタ2は、返信されてきた通信スレーブ3のセンサーポート数を通信マスタ有効センサーポート表22の有効センサーポート数欄(図21−a)に記憶する。
The communication master 2 transmits a communication slave number setting command including the communication slave number # 1 and a request for the number of valid sensor ports from the communication master transmission / reception processing unit 21. The communication slave 3 that has received the communication slave number setting command responds according to the flowchart shown in FIG. That is, when the cascade switch SW1 is OFF, the port that has received the communication slave number setting command is determined to be the upper side, and is stored in the upper side port storage circuit 34. Next, the communication slave number # 1 is stored in the communication slave number column (FIG. 22A) of the slave sensor port table 32, and the number of effective sensor ports of the communication slave 3 stored in the slave sensor port table 32 is set as the communication master. 2 and then turn on the cascade switch SW2.
The communication master 2 stores the returned number of sensor ports of the communication slave 3 in the effective sensor port number column (FIG. 21-a) of the communication master effective sensor port table 22.

通信マスタ2は通信マスタ送受信処理部21より上記と同様の初期化の手順を、通信スレーブ番号をインクリメントしながら繰り返す。しかしながら、シリアル伝送路S6には断線D2が発生しているため、通信マスタ2の送受信処理部に備えられたシリアル通信監視用のタイマ(図示せず)に設定したタイマ値がタイムアップすることによりこれ以上通信スレーブが接続されていないことが判断できる。   The communication master 2 repeats the same initialization procedure as described above from the communication master transmission / reception processing unit 21 while incrementing the communication slave number. However, since the disconnection D2 occurs in the serial transmission path S6, the timer value set in the serial communication monitoring timer (not shown) provided in the transmission / reception processing unit of the communication master 2 times out. It can be determined that no more communication slaves are connected.

次に、通信マスタ2は通信マスタ送受信処理部24より通信スレーブ番号#2と有効センサーポート数要求からなる通信スレーブ番号設定コマンドを送信する。通信スレーブ番号設定コマンドを受信した通信スレーブ4は、図24に示すフローチャートに従って応答する。すなわち、カスケードスイッチSW2がOFFである場合、通信スレーブ番号設定コマンドを受信したポートを上位側であると判断し上位側ポート記憶回路44に記憶する。次に、通信スレーブ番号#2をスレーブセンサーポート表42の通信スレーブ番号欄(図22−b)に記憶し、スレーブセンサーポート表42に記憶されている通信スレーブ4の有効センサーポート数を通信マスタ2へ返信し、その後、カスケードスイッチSW2をONにする。
通信マスタ2は、返信されてきた通信スレーブ4のセンサーポート数を通信マスタ有効センサーポート表25の有効センサーポート数欄(図21−b)に記憶する。
Next, the communication master 2 transmits a communication slave number setting command including the communication slave number # 2 and the request for the number of valid sensor ports from the communication master transmission / reception processing unit 24. The communication slave 4 that has received the communication slave number setting command responds according to the flowchart shown in FIG. That is, when the cascade switch SW2 is OFF, the port that has received the communication slave number setting command is determined to be the upper side, and is stored in the upper side port storage circuit 44. Next, the communication slave number # 2 is stored in the communication slave number column (FIG. 22B) of the slave sensor port table 42, and the number of effective sensor ports of the communication slave 4 stored in the slave sensor port table 42 is set as the communication master. 2 and then turn on the cascade switch SW2.
The communication master 2 stores the returned sensor port number of the communication slave 4 in the effective sensor port number column (FIG. 21B) of the communication master effective sensor port table 25.

通信マスタ2は通信マスタ送受信処理部24より上記と同様の初期化の手順を、通信スレーブ番号をインクリメントしながら繰り返す。しかしながら、シリアル伝送路S6には断線D2が発生しているため、通信マスタ2の送受信処理部に備えられたシリアル通信監視用のタイマ(図示せず)に設定したタイマ値がタイムアップすることによりこれ以上通信スレーブが接続されていないことが判断できる。   The communication master 2 repeats the same initialization procedure as described above from the communication master transmission / reception processing unit 24 while incrementing the communication slave number. However, since the disconnection D2 occurs in the serial transmission path S6, the timer value set in the serial communication monitoring timer (not shown) provided in the transmission / reception processing unit of the communication master 2 times out. It can be determined that no more communication slaves are connected.

次に、通信マスタ2の通信マスタ送受信処理部21は、図9に示すフローチャートに従って、通信スレーブ3に後段有効センサーポート数を送信する。まず、通信スレーブ3に、図5−bに示すような後段有効センサーポート数を設定するコマンドを送信する。この場合、通信スレーブ番号には“1”が、後段有効ポート数には、シリアル伝送路S6に断線D2が発生しているため通信スレーブ3は最後段なので、有効センサーポート数“0”を設定するためのコマンドを送信する。通信スレーブ数が任意の場合は、通信マスタセンサーポート表22から記憶されている通信スレーブ数の分だけ、後段有効センサーポート数の設定手順を繰り返す。
通信スレーブ3は、このコマンドを受信したら、図10に示すフローチャートに従って処理を行い、後段センサーポート数を通信スレーブセンサーポート表32の後段センサーポート数欄(図22−a)に記憶する。その後、その応答を通信マスタ2に返信する。
Next, the communication master transmission / reception processing unit 21 of the communication master 2 transmits the number of subsequent-stage effective sensor ports to the communication slave 3 according to the flowchart shown in FIG. First, a command for setting the number of post-stage effective sensor ports as shown in FIG. In this case, “1” is set as the communication slave number, and the number of effective sensor ports “0” is set as the number of effective sensor ports because the communication slave 3 is the last stage because the disconnection D2 occurs in the serial transmission path S6. Send a command to If the number of communication slaves is arbitrary, the setting procedure for the number of subsequent effective sensor ports is repeated by the number of communication slaves stored from the communication master sensor port table 22.
Upon receiving this command, the communication slave 3 performs processing according to the flowchart shown in FIG. 10 and stores the number of subsequent sensor ports in the subsequent sensor port number column (FIG. 22A) of the communication slave sensor port table 32. Thereafter, the response is returned to the communication master 2.

同様に、通信マスタ2の通信マスタ送受信処理部24は、図9に示すフローチャートに従って、通信スレーブ4に後段有効センサーポート数を送信する。まず、通信スレーブ4に、図5−bに示すような後段有効センサーポート数を設定するコマンドを送信する。この場合、通信スレーブ番号には“2”が、後段有効ポート数には、シリアル伝送路S6に断線D2が発生しているため通信スレーブ4は最後段なので、有効センサーポート数“0”を設定するためのコマンドを送信する。通信スレーブ数が任意の場合は、通信マスタセンサーポート表22から記憶されている通信スレーブ数の分だけ、後段有効センサーポート数の設定手順を繰り返す。
通信スレーブ4は、このコマンドを受信したら、図10に示すフローチャートに従って処理を行い、後段センサーポート数を通信スレーブセンサーポート表42の後段センサーポート数欄(図22−b)に記憶する。その後、その応答を通信マスタ2に返信する。
以上のような初期化手順が終了したとき、通信マスタ2は通信マスタ有効センサーポート表22、25に図21−a、21−bに示すような情報を記憶し、通信スレーブ3、4は通信スレーブ有効センサーポート表32、42に図22−a、22−bに示すような情報を記憶し、カスケードスイッチSW1、SW2は全てONになっている。
Similarly, the communication master transmission / reception processing unit 24 of the communication master 2 transmits the number of subsequent effective sensor ports to the communication slave 4 according to the flowchart shown in FIG. First, a command for setting the number of post-stage effective sensor ports as shown in FIG. In this case, “2” is set as the communication slave number, and the number of valid sensor ports is set to “0” as the number of effective sensor ports is set to the last stage because the communication slave 4 is the last stage because the disconnection D2 occurs in the serial transmission path S6. Send a command to If the number of communication slaves is arbitrary, the setting procedure for the number of subsequent effective sensor ports is repeated by the number of communication slaves stored from the communication master sensor port table 22.
Upon receiving this command, the communication slave 4 performs processing according to the flowchart shown in FIG. 10 and stores the number of subsequent sensor ports in the subsequent sensor port number column (FIG. 22B) of the communication slave sensor port table 42. Thereafter, the response is returned to the communication master 2.
When the initialization procedure as described above is completed, the communication master 2 stores information as shown in FIGS. 21-a and 21-b in the communication master valid sensor port tables 22 and 25, and the communication slaves 3 and 4 communicate with each other. Information as shown in FIGS. 22A and 22B is stored in the slave effective sensor port tables 32 and 42, and the cascade switches SW1 and SW2 are all turned ON.

図26は、シリアル伝送路S6に断線D2が発生している場合のサーボ制御時の通信マスタ2と通信スレーブ3、4との通信のタイミング図で、シリアル伝送路S5、S7、S9、S11上を流れるセンサー情報要求とセンサー情報を示している。本タイミング図は、シリアル伝送路S5、S11の通信速度は、シリアル伝送路S1〜S4、S7〜S10の通信速度の2倍であるものとして記述している。   FIG. 26 is a timing diagram of communication between the communication master 2 and the communication slaves 3 and 4 during the servo control when the disconnection D2 occurs in the serial transmission path S6. On the serial transmission paths S5, S7, S9, and S11 The sensor information request and the sensor information flowing through are shown. This timing diagram describes that the communication speeds of the serial transmission lines S5 and S11 are twice the communication speed of the serial transmission lines S1 to S4 and S7 to S10.

初期化が完了してサーボ制御が始まった後、サーボ制御部11〜14からのセンサー情報要求コマンド311〜314はシリアル伝送路S1〜S4に、同じタイミングで送信される。サーボ制御部11〜14は、共通のクロック19に同期して動作するからである。
通信マスタ2の通信マスタ送受信処理部21、24はそれぞれ任意の一つのセンサー情報要求コマンドを通信スレーブ3、4へ送信するが、図26では、サーボ制御部11からのセンサー情報要求コマンド311を通信スレーブ3、4へそれぞれシリアル通信路S6、S11を介して送信している。
このセンサー情報要求コマンド311を受信した通信スレーブ3は、センサー51〜52のセンサー情報を得るために、センサー情報要求コマンド311をシリアル伝送路S7〜S8を介してセンサー51〜52へ送信する。センサー51〜52は同時にセンサー情報要求コマンド311を受信して、それに対する応答であるセンサー情報331〜332をシリアル伝送路S7〜S8を介して通信スレーブ3へ送信する。
同様に、このセンサー情報要求コマンド311を受信した通信スレーブ4は、センサー53〜54のセンサー情報を得るために、センサー情報要求コマンド311をシリアル伝送路S9〜S10を介してセンサー53〜54へ送信する。センサー53〜54は同時にセンサー情報要求コマンド311を受信して、それに対する応答であるセンサー情報333〜334をシリアル伝送路S9〜S10を介して通信スレーブ4へ送信する。
After initialization is completed and servo control is started, sensor information request commands 311 to 314 from the servo control units 11 to 14 are transmitted to the serial transmission lines S1 to S4 at the same timing. This is because the servo control units 11 to 14 operate in synchronization with the common clock 19.
The communication master transmission / reception processing units 21 and 24 of the communication master 2 transmit arbitrary one sensor information request command to the communication slaves 3 and 4, respectively, but in FIG. 26, the sensor information request command 311 from the servo control unit 11 is communicated. The data is transmitted to the slaves 3 and 4 via serial communication paths S6 and S11, respectively.
The communication slave 3 that has received the sensor information request command 311 transmits the sensor information request command 311 to the sensors 51 to 52 via the serial transmission paths S7 to S8 in order to obtain sensor information of the sensors 51 to 52. The sensors 51 to 52 simultaneously receive the sensor information request command 311 and transmit sensor information 331 to 332 as responses thereto to the communication slave 3 via the serial transmission paths S7 to S8.
Similarly, the communication slave 4 that has received the sensor information request command 311 transmits the sensor information request command 311 to the sensors 53 to 54 via the serial transmission paths S9 to S10 in order to obtain sensor information of the sensors 53 to 54. To do. The sensors 53 to 54 simultaneously receive the sensor information request command 311 and transmit sensor information 333 to 334 as responses to the command to the communication slave 4 via the serial transmission paths S9 to S10.

通信スレーブ3は、後段有効センサーポート数が0に設定されているので、後段からのセンサー情報を受信することなく、自己のセンサー情報をセンサーポート番号の降順(昇順にすることも可能である)で前段へ送信する。すなわち、まず、センサー情報332をシリアル伝送路S5を介して通信マスタ2へ送信し、次に、センサー情報331をシリアル伝送路S5を介して通信マスタ2へ送信する。   Since the communication slave 3 has the number of effective sensor ports in the subsequent stage set to 0, it is possible to set its own sensor information in descending order (in ascending order) of the sensor port number without receiving sensor information from the subsequent stage. Send to the previous stage. That is, first, the sensor information 332 is transmitted to the communication master 2 via the serial transmission path S5, and then the sensor information 331 is transmitted to the communication master 2 via the serial transmission path S5.

同様に、通信スレーブ4も、後段有効センサーポート数が0に設定されているので、後段からのセンサー情報を受信することなく、自己のセンサー情報をセンサーポート番号の降順(昇順にすることも可能である)で前段へ送信する。すなわち、まず、センサー情報334をシリアル伝送路S11を介して通信マスタ2へ送信し、次に、センサー情報333をシリアル伝送路S11を介して通信マスタ2へ送信する。   Similarly, since the number of effective sensor ports in the subsequent stage is set to 0, the communication slave 4 can also set its own sensor information in descending order (in ascending order) of the sensor port number without receiving sensor information from the subsequent stage. Is transmitted to the previous stage. That is, first, the sensor information 334 is transmitted to the communication master 2 via the serial transmission path S11, and then the sensor information 333 is transmitted to the communication master 2 via the serial transmission path S11.

通信マスタ2は、これらのセンサー情報331〜334を、タイムスロット/サーボポート対応表23、26に従い該センサー情報を受信した順番、すなわち、タイムスロット番号t1〜t2、t21〜t22とサーボポート番号sp1〜sp4を対応させて、該センサー情報をサーボポートsp1〜sp4へ送信する。   The communication master 2 receives the sensor information 331 to 334 in the order of receiving the sensor information according to the time slot / servo port correspondence tables 23 and 26, that is, the time slot numbers t1 to t2, t21 to t22, and the servo port number sp1. The sensor information is transmitted to the servo ports sp1 to sp4 in correspondence with .about.sp4.

これまでの説明は、モータに取り付けられている位置検出器等のセンサーが、サーボ制御部と、シリアル伝送路、通信スレーブ、通信マスタを介して1:1に接続される例について説明した。しかし、アプリケーションに応じて、一つのサーボ制御部に複数のセンサーを接続する等の構成をとることは、サーボ制御部とサーボポートの接続を変更することによって容易に実現することができる。   The description so far has described an example in which a sensor such as a position detector attached to the motor is connected to the servo control unit, a serial transmission path, a communication slave, and a communication master in a 1: 1 ratio. However, the configuration of connecting a plurality of sensors to one servo control unit according to the application can be easily realized by changing the connection between the servo control unit and the servo port.

以上、本発明によれば、モータに取り付けられるセンサーとサーボ制御部をシリアル伝送路で接続するにもかかわらず、センサーのID番号を設定する必要がないので、省配線と組み込みや保守の作業の負荷を大幅に軽減することができる。
また、通信マスタと通信スレーブの間または通信スレーブと通信スレーブの間のシリアル伝送路の何れかが断線した場合でも、容易にシリアル通信を復旧することができる。
よって、本発明は、複数のサーボ制御されるモータを組み込んだ多軸機械の構築に適する。
As described above, according to the present invention, although the sensor attached to the motor and the servo control unit are connected by the serial transmission path, it is not necessary to set the sensor ID number. The load can be greatly reduced.
Further, even when any of the serial transmission paths between the communication master and the communication slave or between the communication slave and the communication slave is disconnected, the serial communication can be easily restored.
Thus, the present invention is suitable for construction of a multi-axis machine incorporating a plurality of servo controlled motors.

本発明の第1実施例を示す、センサー用シリアル通信装置のシステム構成図The system block diagram of the serial communication apparatus for sensors which shows 1st Example of this invention 本発明の第1実施例を示す、通信マスタ有効センサーポート表Communication master effective sensor port table showing the first embodiment of the present invention 本発明の第1実施例を示す、通信スレーブ有効センサーポート表Communication slave effective sensor port table showing the first embodiment of the present invention 本発明の第2実施例を示す、タイムスロット/サーボポート対応表Time slot / servo port correspondence table showing the second embodiment of the present invention 本発明の第1実施例を示す、通信データのフォーマットCommunication data format according to the first embodiment of the present invention 本発明の第1実施例を示す、タイムスロットを利用した通信のタイミング図Timing diagram of communication using time slots, showing the first embodiment of the present invention 本発明の第1実施例を示す、通信マスタの有効センサーポート把握処理Communication master effective sensor port grasp processing showing the first embodiment of the present invention 本発明の第1実施例を示す、通信スレーブの有効センサーポート把握処理Communication sensor valid sensor port grasp processing of the first embodiment of the present invention 本発明の第1実施例を示す、通信マスタ有効センサーポート数送信処理Communication master effective sensor port number transmission processing showing the first embodiment of the present invention 本発明の第1実施例を示す、通信スレーブ有効ポート数受信処理Communication slave effective port number reception processing showing the first embodiment of the present invention 本発明の第1実施例を示す、通信マスタ運転時通信処理Communication processing during communication master operation showing the first embodiment of the present invention 本発明の第1実施例を示す、通信スレーブ運転時通信処理Communication processing during communication slave operation, showing the first embodiment of the present invention 本発明の第1実施例を示す、運転時の通信のタイミング図Timing chart of communication during operation, showing the first embodiment of the present invention 本発明の第1実施例を示す、センサーへの書込み処理Sensor writing process according to the first embodiment of the present invention 本発明の第3実施例を示す、センサー用シリアル通信装置のシステム構成図The system block diagram of the serial communication apparatus for sensors which shows 3rd Example of this invention 本発明の第3実施例を示す、通信スレーブブロック図Communication slave block diagram showing the third embodiment of the present invention 本発明の第3実施例の第1の形態を示す、センサー用シリアル通信装置のシステム構成図The system block diagram of the serial communication apparatus for sensors which shows the 1st form of 3rd Example of this invention 本発明の第3実施例の第1の形態を示す、通信マスタ有効センサーポート表Communication master effective sensor port table showing the first form of the third embodiment of the present invention 本発明の第3実施例の第1の形態を示す、通信スレーブ有効センサーポート表Communication slave effective sensor port table showing the first form of the third embodiment of the present invention 本発明の第3実施例の第2の形態を示す、センサー用シリアル通信装置のシステム構成図The system block diagram of the serial communication apparatus for sensors which shows the 2nd form of 3rd Example of this invention 本発明の第3実施例の第2の形態を示す、通信マスタ有効センサーポート表Communication master effective sensor port table showing the second mode of the third embodiment of the present invention 本発明の第3実施例の第2の形態を示す、通信スレーブ有効センサーポート表Communication slave effective sensor port table showing the second mode of the third embodiment of the present invention 本発明の第3実施例を示す、通信マスタの有効センサーポート把握処理Communication master effective sensor port grasping process showing the third embodiment of the present invention 本発明の第3実施例を示す、通信スレーブの有効センサーポート把握処理Communication sensor valid sensor port grasping process showing the third embodiment of the present invention 本発明の第3実施例の第1の形態を示す、タイムスロットを利用した通信のタイミング図Timing diagram of communication using time slot, showing the first mode of the third embodiment of the present invention 本発明の第3実施例の第2の形態を示す、タイムスロットを利用した通信のタイミング図Timing diagram of communication using time slots, showing the second mode of the third embodiment of the present invention 従来例の、センサー用シリアル通信装置のシステム構成図System configuration diagram of the sensor serial communication device of the conventional example 従来例の、センサー用シリアル通信装置のシステム構成図System configuration diagram of the sensor serial communication device of the conventional example 従来例の、センサー用シリアル通信装置のシステム構成図System configuration diagram of the sensor serial communication device of the conventional example 本発明の第3実施例の通信スレーブブロックにおける情報の流れを示す図The figure which shows the flow of the information in the communication slave block of 3rd Example of this invention.

符号の説明Explanation of symbols

1 コントローラ
11〜14 サーボ制御部
19 クロック
2 通信マスタ
21、24 通信マスタ送受信処理部
22、25 通信マスタ有効センサーポート表
23、26 タイムスロット/サーボポート対応表
3、4 通信スレーブ
31、41 通信スレーブ送受信処理部
32、42 通信スレーブ有効センサーポート表
33、43 上位側ポート記憶回路
34、44 ポート選択信号
35、45 ポート切替回路
311〜314 センサー情報要求コマンド
321〜324 センサー情報要求コマンド
331〜334 センサー情報
341 センサーポートマスク要求
351、353、354 空要求
352 センサー書込み要求
5 ターミネータ
51〜54 センサー
61〜64 モータ
S1〜S11 シリアル伝送路
sp1〜sp4 サーボポート
p1〜p2 センサーポート
101 シリアル/パラレル変換手段
102 送受信制御手段
103 送信手段
104 受信手段
105 位置検出器選択器
501 シリアル/パラレル変換手段
502 送受信制御手段
503 送信手段
504 受信手段
505 検出器
70 分岐部
1 Controller 11-14 Servo control unit 19 Clock 2 Communication master 21, 24 Communication master transmission / reception processing unit 22, 25 Communication master valid sensor port table 23, 26 Time slot / servo port correspondence table 3, 4 Communication slave 31, 41 Communication slave Transmission / reception processor 32, 42 Communication slave valid sensor port table 33, 43 Upper port storage circuit 34, 44 Port selection signal 35, 45 Port switching circuit 311 to 314 Sensor information request command 321 to 324 Sensor information request command 331 to 334 Sensor Information 341 Sensor port mask request 351, 353, 354 Empty request 352 Sensor write request 5 Terminator 51-54 Sensor 61-64 Motor S1-S11 Serial transmission path sp1-sp4 Servo port p1-p2 Sensor Port 101 Serial / parallel conversion unit 102 Transmission / reception control unit 103 Transmission unit 104 Reception unit 105 Position detector selector 501 Serial / parallel conversion unit 502 Transmission / reception control unit 503 Transmission unit 504 Reception unit 505 Detector 70 Branch unit

Claims (14)

1または複数のサーボ制御部と前記サーボ制御部によって駆動される1または複数のモータに取り付けられた1または複数のセンサーを、1つの通信マスタと1以上の通信スレーブを含むシリアル伝送路で接続したセンサー用シリアル通信装置において、
前記通信マスタは、1または複数の前記サーボ制御部を接続するための1または複数のサーボ用シリアルポートと、前記通信スレーブを接続するためのカスケード接続用シリアルポートを備え、
前記通信スレーブは、前記通信マスタまたは他の前記通信スレーブとカスケード接続するためのカスケード接続用シリアルポートと、1または複数のセンサーを1:1で接続するための1または複数のセンサー用シリアルポートとを備えることを特徴としたセンサー用シリアル通信装置。
One or more servo controllers and one or more sensors attached to one or more motors driven by the servo controllers are connected by a serial transmission line including one communication master and one or more communication slaves. In the serial communication device for sensors,
The communication master includes one or more servo serial ports for connecting one or more servo control units, and a cascade connection serial port for connecting the communication slaves,
The communication slave includes a cascade connection serial port for cascading with the communication master or another communication slave, and one or more sensor serial ports for connecting one or more sensors in a 1: 1 ratio. A serial communication device for sensors, comprising:
請求項1において、前記通信マスタは、前記通信スレーブから受信したセンサー情報を、前記センサー情報を受信した順番と前記サーボ用シリアルポートの番号を昇順または降順に対応させたうえで同時に前記サーボ用シリアルポートへ送信する手段を備えることを特徴としたセンサー用シリアル通信装置。   2. The communication master according to claim 1, wherein the communication master associates the sensor information received from the communication slave with the order in which the sensor information is received and the number of the servo serial port in ascending or descending order, and simultaneously with the servo serial. A serial communication device for a sensor comprising means for transmitting to a port. 請求項1において、前記通信マスタは、前記通信スレーブから受信したセンサー情報を、その受信した順番と前記サーボ用シリアルポート番号を対応表に従って対応させたうえで同時に前記サーボ用シリアルポートへ送信する手段を備えることを特徴としたセンサー用シリアル通信装置。   2. The means according to claim 1, wherein the communication master transmits the sensor information received from the communication slave to the servo serial port simultaneously after associating the received order with the servo serial port number according to the correspondence table. A serial communication device for sensors, comprising: 請求項3において、前記対応表は、初期化時において、外部から前記通信マスタへダウンロードされたものであることを特徴としたセンサー用シリアル通信装置。   4. The sensor serial communication device according to claim 3, wherein the correspondence table is downloaded from the outside to the communication master at the time of initialization. 請求項1において、前記通信スレーブは、自己より後段からの前記センサー情報を自己より前段へ送信し、その後、自己の前記センサー情報を前段へ送信する手段を備えることを特徴としたセンサー用シリアル通信装置。   2. The serial communication for sensors according to claim 1, wherein the communication slave includes means for transmitting the sensor information from the subsequent stage to the previous stage from itself, and thereafter transmitting the sensor information of the own apparatus to the previous stage. apparatus. 1または複数のサーボ制御部と1または複数の前記サーボ制御部によって駆動される1または複数のモータに取り付けられた1または複数のセンサーを1つの通信マスタと1以上の通信スレーブを含むシリアル伝送路で接続したセンサー用シリアル通信装置の通信方法において、
前記通信マスタが、センサー情報要求コマンドをカスケード接続用シリアルポートを介して前記通信スレーブに送信するステップM1と、前記センサー情報要求コマンドに対するセンサー情報を前記通信スレーブから受信するステップM2と、前記センサー情報をサーボ用シリアルポートから対応する前記サーボ制御部に送信するステップM3を有し、
前記通信スレーブが、前記センサー情報要求コマンドを受信するとともに後段の前記通信スレーブへ転送するステップS1と、前記センサー情報要求コマンドを自己の前記センサーに同時に送信し前記センサーからの前記センサー情報を受信するステップS2と、後段からの前記センサー情報を前段の前記通信スレーブまたは前記通信マスタへ転送するステップS3と、その後自己の前記センサー情報を前記通信マスタまたは前段の前記通信スレーブへ送信するステップS4を有することを特徴としたセンサー用シリアル通信装置の通信方法。
Serial transmission path including one or more servo control units and one or more sensors attached to one or more motors driven by one or more servo control units, one communication master and one or more communication slaves In the communication method of the sensor serial communication device connected in
Step M1 in which the communication master transmits a sensor information request command to the communication slave via a serial port for cascade connection; Step M2 in which sensor information for the sensor information request command is received from the communication slave; and the sensor information A step M3 for transmitting the servo from the servo serial port to the corresponding servo control unit,
The communication slave receives the sensor information request command and forwards it to the communication slave in the subsequent stage, and simultaneously transmits the sensor information request command to its own sensor and receives the sensor information from the sensor. Step S2, Step S3 for transferring the sensor information from the subsequent stage to the communication slave or the communication master in the previous stage, and Step S4 for transmitting the sensor information of its own to the communication master or the communication slave in the previous stage. A communication method of a serial communication device for sensors.
請求項6において、前記ステップM3は、前記通信スレーブから受信した前記センサー情報を、その受信した順番と前記サーボ用シリアルポートの番号と昇順または降順に対応させたうえで同時に前記サーボ用シリアルポートへ送信するものであることを特徴としたセンサー用シリアル通信装置の通信方法。   7. The step M3 according to claim 6, wherein the sensor information received from the communication slave is associated with the receiving order and the servo serial port number in ascending or descending order and simultaneously to the servo serial port. A communication method for a serial communication device for a sensor, characterized in that the transmission is performed. 請求項6において、前記ステップM3は、前記通信スレーブから受信した前記センサー情報を、その受信した順番と前記サーボ用シリアルポートの番号を対応表に従って対応させたうえで同時に前記サーボ用シリアルポートへ送信するものであることを特徴としたセンサー用シリアル通信装置の通信方法。   7. The step M3 of claim 6, wherein the step M3 transmits the sensor information received from the communication slave to the servo serial port at the same time after associating the received order with the servo serial port number according to the correspondence table. A communication method of a serial communication device for a sensor, characterized in that: 請求項8において、前記対応表は、初期化時において、外部から前記通信マスタへダウンロードされたものであることを特徴としたセンサー用シリアル通信装置の通信方法。   9. The communication method for a sensor serial communication device according to claim 8, wherein the correspondence table is downloaded from the outside to the communication master at the time of initialization. 請求項6において、前記ステップS4は、自己より後段からの前記センサー情報を自己より前段へ送信し、その後、自己の前記センサー用シリアルポートに接続されている前記センサーからの前記センサー情報を前記センサー用シリアルポートの番号の降順または昇順に前記通信マスタまたは前段の前記通信スレーブに送信するものであることを特徴としたセンサー用シリアル通信装置の通信方法。   7. The step S4 according to claim 6, wherein the step S4 transmits the sensor information from the subsequent stage to the front stage, and then the sensor information from the sensor connected to the serial port for the sensor is transmitted to the sensor. A communication method for a serial communication device for a sensor, comprising: transmitting to the communication master or the previous communication slave in descending or ascending order of serial port numbers. 1または複数のサーボ制御部と前記サーボ制御部によって駆動される1または複数のモータに取り付けられた1または複数のセンサーを、1つの通信マスタと1以上の通信スレーブを含むシリアル伝送路で接続したセンサー用シリアル通信装置において、
前記通信マスタは、1または複数の前記サーボ制御部を接続するための1または複数のサーボ用シリアルポートと、2系統の前記通信スレーブを接続するためのカスケード接続用シリアルポートを備え、
前記通信スレーブは、前記通信マスタまたは他の前記通信スレーブとカスケード接続するためのカスケード接続用シリアルポートと、1または複数のセンサーを1:1で接続するための1または複数のセンサー用シリアルポートとを備えることを特徴としたセンサー用シリアル通信装置。
One or more servo controllers and one or more sensors attached to one or more motors driven by the servo controllers are connected by a serial transmission line including one communication master and one or more communication slaves. In the serial communication device for sensors,
The communication master includes one or more servo serial ports for connecting one or more servo control units, and a cascade connection serial port for connecting two communication slaves,
The communication slave includes a cascade connection serial port for cascading with the communication master or another communication slave, and one or more sensor serial ports for connecting one or more sensors in a 1: 1 ratio. A serial communication device for sensors, comprising:
請求項11において、前記通信マスタは、通常時は2系統の前記通信スレーブを接続するためのカスケード接続用シリアルポートのうち1系統のみを使用し、
前記通信マスタと前記通信スレーブ間を接続するシリアル伝送路に異常が発生した時は、通常時に使用していなかった前記カスケード接続用シリアルポートのもう1系統を使用し動作を行う手段を備えることを特徴としたセンサー用シリアル装置。
In Claim 11, the said communication master uses only one system among the serial ports for cascade connection for connecting the said communication slave of 2 systems normally,
A unit for performing an operation using another system of the serial port for cascade connection that is not normally used when an abnormality occurs in the serial transmission path connecting the communication master and the communication slave; A unique sensor serial device.
請求項11において、前記通信マスタは、通常時は2系統の前記通信スレーブを接続するためのカスケード接続用シリアルポートのうち1系統のみを使用し、
前記通信スレーブ間を接続するシリアル伝送路に異常が発生した時は、通常時に使用していた前記カスケード接続用シリアルポートに加え、通常時に使用していなかった前記カスケード接続用シリアルポートのもう1系統を使用し動作を行う手段を備えることを特徴としたセンサー用シリアル装置。
In Claim 11, the said communication master uses only one system among the serial ports for cascade connection for connecting the said communication slave of 2 systems normally,
When an abnormality occurs in the serial transmission path connecting the communication slaves, in addition to the cascade connection serial port that is normally used, another system of the cascade connection serial port that is not normally used A sensor serial device comprising means for performing an operation using a sensor.
請求項11において、前記通信スレーブは、初期化時に前記通信マスタが接続されているカスケード接続用シリアルポートが上位側であると判断し、以降、再度初期化を行うまではその状態を保持するための手段を備えることを特徴としたセンサー用シリアル装置。   12. The communication slave according to claim 11, wherein the communication slave determines that the cascade connection serial port to which the communication master is connected at the time of initialization is on the upper side, and thereafter holds the state until initialization is performed again. A sensor serial device characterized by comprising:
JP2008053987A 2007-03-05 2008-03-04 Serial communication apparatus for sensor and serial communication method Pending JP2008252882A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008053987A JP2008252882A (en) 2007-03-05 2008-03-04 Serial communication apparatus for sensor and serial communication method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2007054653 2007-03-05
JP2008053987A JP2008252882A (en) 2007-03-05 2008-03-04 Serial communication apparatus for sensor and serial communication method

Publications (1)

Publication Number Publication Date
JP2008252882A true JP2008252882A (en) 2008-10-16

Family

ID=39975802

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2008053986A Pending JP2008250997A (en) 2007-03-05 2008-03-04 Serial communication equipment for sensor and serial communication method
JP2008053987A Pending JP2008252882A (en) 2007-03-05 2008-03-04 Serial communication apparatus for sensor and serial communication method

Family Applications Before (1)

Application Number Title Priority Date Filing Date
JP2008053986A Pending JP2008250997A (en) 2007-03-05 2008-03-04 Serial communication equipment for sensor and serial communication method

Country Status (1)

Country Link
JP (2) JP2008250997A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014103621A (en) * 2012-11-22 2014-06-05 Rib Laboratory Inc Automatic control system, contact information gathering and distributing device, and slave station of automatic control system
WO2014136420A1 (en) * 2013-03-07 2014-09-12 Seiko Epson Corporation Synchronous measurement system
CN106980291A (en) * 2017-04-14 2017-07-25 北京乙辛科技有限公司 A kind of New Cascading system and method based on cultivation box
JP2017158433A (en) * 2016-02-29 2017-09-07 株式会社安川電機 Motor control system and communication method for motor control system
CN107924177A (en) * 2015-08-31 2018-04-17 马波斯S.P.A.公司 Data processing and Transmission system and its method
JP2018525753A (en) * 2015-08-31 2018-09-06 マーポス、ソチエタ、ペル、アツィオーニMarposs S.P.A. Data processing and transmission system and method
WO2020004301A1 (en) * 2018-06-26 2020-01-02 日本電産株式会社 Tuning system
JPWO2020059866A1 (en) * 2018-09-20 2021-10-21 株式会社潤工社 Liquid detection system
CN115334488A (en) * 2022-08-15 2022-11-11 煤炭科学技术研究院有限公司 Mining mobile emergency communication system and method

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5288128B2 (en) * 2009-04-15 2013-09-11 日本精機株式会社 Instrument drive
JP5387435B2 (en) * 2010-02-15 2014-01-15 村田機械株式会社 Traveling cart system
DE102012201651A1 (en) 2012-02-03 2013-08-08 Dr. Johannes Heidenhain Gmbh Position measuring device
JP6098106B2 (en) * 2012-10-23 2017-03-22 オムロン株式会社 Sensor system and communication device

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014103621A (en) * 2012-11-22 2014-06-05 Rib Laboratory Inc Automatic control system, contact information gathering and distributing device, and slave station of automatic control system
WO2014136420A1 (en) * 2013-03-07 2014-09-12 Seiko Epson Corporation Synchronous measurement system
JP2014175755A (en) * 2013-03-07 2014-09-22 Seiko Epson Corp Synchronous measurement system
CN105247816A (en) * 2013-03-07 2016-01-13 精工爱普生株式会社 Synchronous measurement system
CN105247816B (en) * 2013-03-07 2018-10-16 精工爱普生株式会社 Synchronized measurement system
US9986035B2 (en) 2013-03-07 2018-05-29 Seiko Epson Corporation Synchronous measurement system
CN107924177A (en) * 2015-08-31 2018-04-17 马波斯S.P.A.公司 Data processing and Transmission system and its method
JP2018525754A (en) * 2015-08-31 2018-09-06 マーポス、ソチエタ、ペル、アツィオーニMarposs S.P.A. Data processing and transmission system and method
JP2018525753A (en) * 2015-08-31 2018-09-06 マーポス、ソチエタ、ペル、アツィオーニMarposs S.P.A. Data processing and transmission system and method
US10942505B2 (en) 2015-08-31 2021-03-09 Marposs Societa' Per Azioni Data processing and transmission system and method
JP2017192301A (en) * 2016-02-29 2017-10-19 株式会社安川電機 Motor control system, robot system, and communication method for motor control system
JP2017158417A (en) * 2016-02-29 2017-09-07 株式会社安川電機 Motor control system, robot system, and communication method for motor control system
JP2017158433A (en) * 2016-02-29 2017-09-07 株式会社安川電機 Motor control system and communication method for motor control system
CN106980291A (en) * 2017-04-14 2017-07-25 北京乙辛科技有限公司 A kind of New Cascading system and method based on cultivation box
CN106980291B (en) * 2017-04-14 2024-03-08 北京陆卫装备技术有限公司 Novel cascading system based on planting box and method thereof
WO2020004301A1 (en) * 2018-06-26 2020-01-02 日本電産株式会社 Tuning system
JPWO2020059866A1 (en) * 2018-09-20 2021-10-21 株式会社潤工社 Liquid detection system
CN115334488A (en) * 2022-08-15 2022-11-11 煤炭科学技术研究院有限公司 Mining mobile emergency communication system and method

Also Published As

Publication number Publication date
JP2008250997A (en) 2008-10-16

Similar Documents

Publication Publication Date Title
JP2008252882A (en) Serial communication apparatus for sensor and serial communication method
US10191876B2 (en) Device and method for addressing, and converter
EP1198927B1 (en) Local area network for distributing data communication, sensing and control signals
EP2188953B1 (en) Real-time industrial ethernet ethercat communication control
JP2003189654A (en) Serial communication device for controlling motor and motor driving gear
JP2006148911A (en) Method and apparatus for causing network to operate
JP5142516B2 (en) Serial communication device for motor control
JPH04290102A (en) Device for information transmission to servomechanism
JP4991274B2 (en) Communication structure and method of operating the communication structure
US20180006595A1 (en) Master controller, servo actuator and servo controlling system
JP5301088B2 (en) Serial communication device for motor control
JP4029617B2 (en) Numerical control system and communication timing setting method in the numerical control system
CN111158285A (en) Control system based on EtherCAT bus
US9841739B2 (en) Motion controller device and communication method therein
US8578077B2 (en) Group master communication system and method for serially transmitting data in automation systems
KR101081935B1 (en) Apparatus for controlling multi-axis motion based on a plurality of channels network and method for the same
JP6762546B1 (en) Serial communication method and serial communication system
JPH01135150A (en) Node address setting system for network
JP4548613B2 (en) Servo system
JPS62105594A (en) Plural equipments group control system
JP4118695B2 (en) Numerical control system
JP4346539B2 (en) Control device
KR102187083B1 (en) Apparatus and method for field bus controller redundancy
JP6833137B1 (en) Expansion base unit, control device, control system and control method
JP5576913B2 (en) Communication system having automatic setting function of identification number