JPH10275006A - Industrial robot - Google Patents

Industrial robot

Info

Publication number
JPH10275006A
JPH10275006A JP8142097A JP8142097A JPH10275006A JP H10275006 A JPH10275006 A JP H10275006A JP 8142097 A JP8142097 A JP 8142097A JP 8142097 A JP8142097 A JP 8142097A JP H10275006 A JPH10275006 A JP H10275006A
Authority
JP
Japan
Prior art keywords
signal
axis
data
communication
position detector
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.)
Withdrawn
Application number
JP8142097A
Other languages
Japanese (ja)
Inventor
Yusuke Akami
裕介 赤見
Yoshinori Sugiyama
義範 杉山
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.)
Tokico Ltd
Original Assignee
Tokico Ltd
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 Tokico Ltd filed Critical Tokico Ltd
Priority to JP8142097A priority Critical patent/JPH10275006A/en
Publication of JPH10275006A publication Critical patent/JPH10275006A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide the industrial robot which can decrease the number of signal lines needed for data communication, improve the degree of freedom of laying of the signal lines, and prevent the reliability of data from decreasing. SOLUTION: The industrial robot having a three-axial servo system provided with 1st-axis to 3rd axis motor drivers 7-1 to 7-3 corresponding to 1st-axis to 3rd-axis position detectors 4-1 to 4-3 has all the position detectors and motor drivers connected in a daisy chain by a serial communication line 5 as a signal line of one system. Data are communicated between pairs of the position detectors and motor drivers with packeted request signals and position data signals including address specification bits of the position detectors to acquire position data and perform an error process, etc., while judging whether or not various errors occur.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はシリアル通信によっ
て可動部の動作状態についてのデータ通信を行う工業用
ロボットに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an industrial robot for performing data communication on the operating state of a movable section by serial communication.

【0002】[0002]

【従来の技術】サーボモータ、位置検出器及びモータド
ライバからなるサーボシステムを具備した工業用ロボッ
トにおいては、位置検出器からモータドライバへの位置
データ伝達を高速のシリアル通信によって行うものが知
られている。かかる工業用ロボットでは、サーボモータ
の駆動力によって可動部が動作し、その動作量(回転角
度位置)がアナログデータやパルスデータからなる位置
データとして位置検出器により検出される。そして、該
位置データはディジタルデータに変換され、専用の高速
シリアル通信によって制御装置内のモータドライバへ送
信される。
2. Description of the Related Art In an industrial robot having a servo system including a servomotor, a position detector and a motor driver, there is known an industrial robot which transmits position data from the position detector to the motor driver by high-speed serial communication. I have. In such an industrial robot, the movable portion operates by the driving force of the servomotor, and the amount of operation (rotation angle position) is detected by the position detector as position data including analog data and pulse data. Then, the position data is converted into digital data and transmitted to the motor driver in the control device by dedicated high-speed serial communication.

【0003】従来の工業用ロボットにおいては、シリア
ル通信により位置データを伝達する場合、位置検出器と
モータドライバとが1対1で通信を行う必要があること
から、ロボットに設けられた位置検出器とモータドライ
バの組の数に応じて位置データ伝達用の信号線(シリア
ル通信線)を設けることとしていた。そして、それぞれ
の位置検出器とモータドライバの組を非同期で動作さ
せ、それぞれの組において、それぞれの信号線を介して
モータドライバからの位置データ取得要求、位置検出器
からの位置データ送信等が行われていた。
In a conventional industrial robot, when transmitting position data by serial communication, it is necessary for a position detector and a motor driver to perform one-to-one communication. A signal line (serial communication line) for transmitting position data is provided in accordance with the number of sets of motor drivers and motor drivers. Then, each set of the position detector and the motor driver is operated asynchronously, and in each set, a position data acquisition request from the motor driver, a position data transmission from the position detector, etc. are performed via the respective signal lines. Had been

【0004】このようなシリアル通信による位置データ
伝達によれば、位置データをアナログデータやパルスデ
ータのままパラレル通信によって伝達する場合に比べて
信号線の本数を減らすことができ、配線の簡略化を図る
ことができる。又、これはデータの信頼性向上にも効果
がある。
According to such position data transmission by serial communication, the number of signal lines can be reduced as compared with a case where position data is transmitted by analog communication or pulse data as parallel data, thereby simplifying wiring. Can be planned. This is also effective in improving data reliability.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記従
来の工業用ロボットでは、位置検出器とモータドライバ
の組の数、すなわち、軸の数に応じて信号線を設ける必
要がある。このため、工業用ロボットのような多軸制御
機器では、軸の数に応じて信号線の数が増加し、信号線
の取り廻し自由度が低下すると共に、各信号線のひね
り、曲げ、振動、接触等によってデータの信頼性も低下
するという問題点を有していた。
However, in the above-mentioned conventional industrial robot, it is necessary to provide signal lines according to the number of sets of position detectors and motor drivers, that is, the number of axes. For this reason, in a multi-axis control device such as an industrial robot, the number of signal lines increases in accordance with the number of axes, the degree of freedom of signal line routing decreases, and twisting, bending, and vibration of each signal line occur. In addition, there has been a problem that the reliability of data is reduced due to contact or the like.

【0006】又、通常、上記信号線は、使い勝手や組立
のし易さ、メンテナンス性、可搬性等を重視して、制御
装置側とロボット側とを接続するケーブル、ロボット内
で位置検出器と前記ケーブルの接続部とを接続する内部
配線ケーブル及びこれらケーブルの各接続部に設けられ
たコネクタによって構成される。従って、上述のように
信号線の数が増えることにより、前記ケーブル及びコネ
クタの組立や配線に要する工数の増加、コネクタ接続に
おける信頼性の確保等も問題となっていた。
Normally, the signal line is connected to a cable connecting the control device side and the robot side and a position detector in the robot, with emphasis on ease of use, ease of assembly, maintainability, portability, and the like. It is composed of an internal wiring cable for connecting to the connection part of the cable, and a connector provided at each connection part of these cables. Therefore, the increase in the number of signal lines as described above has also caused problems such as an increase in man-hours required for assembling and wiring the cables and connectors, and ensuring reliability in connector connection.

【0007】本発明はこのような事情に鑑みてなされた
もので、工業用ロボットにおけるデータ通信に要する信
号線の数を少なくすることを可能とし、信号線の取り廻
し自由度の向上を図ることができると共に、信号線のひ
ねりや曲げ等によるデータの信頼性低下を防止すること
ができ、同時に、信号線を設けるのに要する工数を削減
することができ、かつ、接続部の信頼性を容易に確保す
ることができる工業用ロボットを提供することを目的と
する。
[0007] The present invention has been made in view of such circumstances, and it is possible to reduce the number of signal lines required for data communication in an industrial robot, and to improve the degree of freedom in routing signal lines. In addition to reducing the reliability of data due to twisting or bending of the signal line, the number of steps required to provide the signal line can be reduced, and the reliability of the connection portion can be easily reduced. It is an object of the present invention to provide an industrial robot that can be ensured in an industrial robot.

【0008】[0008]

【課題を解決するための手段】本発明は、複数の可動部
を有し、制御装置が前記複数の可動部の動作をそれぞれ
指示する工業用ロボットにおいて、前記複数の可動部と
前記制御装置との間に設けられた一系統の信号線と、前
記複数の可動部の各々に対応して設けられ、可動部の動
作状態を検出する複数の検出手段と、前記制御装置内
に、前記複数の検出手段の各々に対応して設けられ、可
動部の駆動を制御する複数の駆動制御部とを有し、前記
複数の検出手段は、各々、前記信号線を介して前記制御
装置から指示信号を受け、当該指示信号が自己を特定し
て検出結果を要求するものである場合に、自己を特定す
るデータを付した検出結果信号を前記信号線に出力し、
前記複数の駆動制御部は、各々、自己が対応する検出手
段を特定するデータを付した前記指示信号を前記信号線
に出力すると共に、前記信号線を介して前記検出結果信
号を受け、当該検出結果信号に付された前記データによ
り自己が対応する検出手段からの検出結果信号を選別し
て検出結果を得ることを特徴としている。
According to the present invention, there is provided an industrial robot having a plurality of movable parts, wherein a control device instructs an operation of each of the plurality of movable parts. A single signal line provided between the plurality of movable units, a plurality of detection means provided corresponding to each of the plurality of movable units, for detecting the operating state of the movable unit, and the plurality of A plurality of drive control units are provided corresponding to each of the detection units and control the driving of the movable unit, and each of the plurality of the detection units receives an instruction signal from the control device via the signal line. Receiving, when the instruction signal specifies itself and requests a detection result, outputs a detection result signal with data specifying itself to the signal line,
The plurality of drive control units each output the instruction signal to which the data specifying the detection unit corresponding to the drive control unit to the signal line, receive the detection result signal via the signal line, and perform the detection. It is characterized in that the detection result signal is obtained by selecting the detection result signal from the detection means corresponding to itself according to the data attached to the result signal.

【0009】[0009]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

<構成> (1)全体構成 以下に図面を参照して本発明の一実施形態について説明
する。図1は本発明の一実施形態による工業用ロボット
の全体構成を模式的に示した図である。
<Configuration> (1) Overall Configuration An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram schematically showing an overall configuration of an industrial robot according to one embodiment of the present invention.

【0010】図において、1はロボット本体であり、第
1軸、第2軸及び第3軸の3つの軸(図示略)を有し、
各軸に対応する可動部(図示略)が動作してワークに対
して作業を行う。ここでは、説明の簡略化のため、この
ようにロボット本体1の軸数が3である3軸サーボシス
テムを具備した工業用ロボットを例として説明すること
にする。
In FIG. 1, reference numeral 1 denotes a robot main body, which has three axes (not shown) of a first axis, a second axis, and a third axis.
A movable part (not shown) corresponding to each axis operates to perform work on the workpiece. Here, for simplicity of explanation, an industrial robot equipped with a three-axis servo system in which the number of axes of the robot body 1 is three will be described as an example.

【0011】2−1、2−2、2−3は、それぞれ、上
記第1軸、第2軸、第3軸に対応する第1軸サーボモー
タ、第2軸サーボモータ、第3軸サーボモータである。
これらのサーボモータは、ロボット本体1内に設けられ
ており、それぞれの出力軸において発生される駆動力が
減速機やベルト、リンク、ツール等を介して伝達され、
各軸に対応する可動部を動作させる。又、各サーボモー
タには、モータ動力線3−1、3−2、3−3が接続さ
れており、これらの接続線を介して駆動力発生のための
動力を供給される。
Reference numerals 2-1, 2-2, and 2-3 denote a first axis servo motor, a second axis servo motor, and a third axis servo motor corresponding to the first axis, the second axis, and the third axis, respectively. It is.
These servo motors are provided in the robot body 1, and the driving force generated at each output shaft is transmitted via a speed reducer, a belt, a link, a tool, and the like.
The movable part corresponding to each axis is operated. Motor power lines 3-1, 3-2, and 3-3 are connected to each servo motor, and power for generating a driving force is supplied through these connection lines.

【0012】4−1、4−2、4−3は、それぞれ、第
1軸サーボモータ2−1、第2軸サーボモータ2−2、
第3軸サーボモータ2−3に取り付けられた第1軸位置
検出器、第2軸位置検出器、第3軸位置検出器である。
これらの位置検出器は、それぞれが取り付けられたサー
ボモータの出力軸の回転位置と回転数を検出し、その検
出結果に基づいて各可動部の位置データを生成する。そ
して、該位置データをシリアル信号形式でシリアル通信
線5へ出力し、制御装置6へ送信する。尚、これら位置
検出器の内部構成については、後に詳細に説明する。
Reference numerals 4-1, 4-2, and 4-3 denote a first axis servo motor 2-1, a second axis servo motor 2-2,
A first axis position detector, a second axis position detector, and a third axis position detector attached to the third axis servomotor 2-3.
These position detectors detect the rotation position and the number of rotations of the output shaft of the servomotor to which each is attached, and generate position data of each movable section based on the detection result. Then, the position data is output to the serial communication line 5 in the form of a serial signal and transmitted to the control device 6. The internal configuration of these position detectors will be described later in detail.

【0013】シリアル通信線5は、第1軸位置検出器4
−1、第2軸位置検出器4−2及び第3軸位置検出器4
−3と、制御装置6内の第1軸モータドライバ7−1、
第2軸モータドライバ7−2及び第3軸モータドライバ
7−3との間を接続する信号線である。このシリアル通
信線5は、ロボット本体1と制御装置6との間を結ぶ1
本の信号線からなり、両端部がロボット本体1内と制御
装置6内で分岐して各位置検出器及び各モータドライバ
と接続されている。このようにして、1系統の信号線で
あるシリアル通信線5に対し、すべての位置検出器とモ
ータドライバがディジーチェーン接続されている。
The serial communication line 5 is connected to the first axis position detector 4
-1, second axis position detector 4-2 and third axis position detector 4
-3, the first axis motor driver 7-1 in the control device 6,
This is a signal line connecting between the second axis motor driver 7-2 and the third axis motor driver 7-3. The serial communication line 5 connects the robot body 1 and the control device 6 with each other.
It is composed of two signal lines, and both ends are branched in the robot body 1 and the control device 6 and connected to each position detector and each motor driver. In this way, all the position detectors and the motor drivers are daisy-chain connected to the serial communication line 5, which is one signal line.

【0014】制御装置6は、ロボット本体1の各可動部
の動作を制御する制御装置であり、第1軸モータドライ
バ7−1、第2軸モータドライバ7−2及び第3軸モー
タドライバ7−3と、所定の制御演算を行う制御基板等
(図示略)からなる。この制御装置6内の制御基板は、
一定時間Tt毎に各モータドライバを介して各位置検出
器からの位置データを受け、これに基づいて各サーボモ
ータへの動作指令信号を算出して出力する。尚、ここに
いう一定時間Ttとは、制御装置6がロボット本体1を
ディジタル制御する制御サンプリング周期のことであ
る。
The control device 6 is a control device for controlling the operation of each movable portion of the robot body 1, and includes a first axis motor driver 7-1, a second axis motor driver 7-2, and a third axis motor driver 7- 3 and a control board (not shown) for performing a predetermined control operation. The control board in the control device 6 includes:
It receives position data from each position detector via each motor driver at regular time intervals Tt, and calculates and outputs an operation command signal to each servo motor based on this. Here, the fixed time Tt is a control sampling period in which the control device 6 digitally controls the robot body 1.

【0015】第1軸モータドライバ7−1、第2軸モー
タドライバ7−2、第3軸モータドライバ7−3は、そ
れぞれ、第1軸、第2軸、第3軸のサーボモータと位置
検出器に対応して設けられたモータドライバである。各
モータドライバは、位置検出器との間の通信処理を行う
通信処理部を有しており、対応する位置検出器に対し
て、一定時間Ts毎に位置データの取得を要求するリク
エスト信号を出力し、このリクエスト信号がシリアル通
信線5を介して各位置検出器へ伝達される。又、対応す
る位置検出器が出力した位置データをシリアル通信線5
を介して受け、所定の信号形式にして上記制御基板へ供
給する。
The first-axis motor driver 7-1, the second-axis motor driver 7-2, and the third-axis motor driver 7-3 are provided with first-axis, second-axis, and third-axis servo motors and position detection, respectively. It is a motor driver provided corresponding to the container. Each motor driver has a communication processing unit that performs communication processing with the position detector, and outputs a request signal for requesting acquisition of position data to the corresponding position detector at regular time intervals Ts. This request signal is transmitted to each position detector via the serial communication line 5. Also, the position data output by the corresponding position detector is transmitted to the serial communication line 5.
And supplies it to the control board in a predetermined signal format.

【0016】ここで、上述した各モータドライバと位置
検出器の組はそれぞれ非同期に動作し、上記制御サンプ
リング周期の間に、各モータドライバと位置検出器の組
が、順次位置データ取得要求及び位置データ送信或いは
これらに加えてデータエラー時のリトライ等を行う(詳
細は後述)。このため、上記一定時間Tsは制御サンプ
リング周期よりも十分短い時間に設定されており、各機
器に設けられた送信機や受信機及びシリアル通信線5等
の通信速度も十分高速なものとなっている。例えば、T
sとしては250μs、通信速度としては5Mbps程
度である。
Here, the above-mentioned pairs of the motor drivers and the position detectors operate asynchronously, and during the above-mentioned control sampling period, the pairs of the motor drivers and the position detectors sequentially transmit the position data acquisition request and the position data. Data transmission or retry at the time of data error in addition to these is performed (details will be described later). For this reason, the fixed time Ts is set to a time sufficiently shorter than the control sampling period, and the communication speed of the transmitter, the receiver, the serial communication line 5 and the like provided in each device becomes sufficiently high. I have. For example, T
s is 250 μs, and the communication speed is about 5 Mbps.

【0017】又、各モータドライバは、それぞれが対応
するサーボモータに接続されたモータ動力線(3−1、
3−2、3−3)とも接続されている(図示略)。そし
て、上記制御基板から出力される動作指令信号を、当該
動作指令信号に従ってサーボモータを駆動させる電流に
変換し、各モータ動力線を介して各サーボモータへ供給
する。
Each motor driver has a motor power line (3-1, 3-1) connected to a corresponding servomotor.
3-2, 3-3) are also connected (not shown). Then, the operation command signal output from the control board is converted into a current for driving the servomotor in accordance with the operation command signal, and supplied to each servomotor via each motor power line.

【0018】(2)位置検出器の内部構成 次に、上記第1軸位置検出器4−1、第2軸位置検出器
4−2及び第3軸位置検出器4−3の内部構成について
詳細に説明する。図2は位置検出器の内部構成ブロック
図である。尚、各軸の位置検出器には格別の差異はな
く、皆同様の内部構成となっているので、図2には1つ
の位置検出器の内部構成のみを示す。
(2) Internal Configuration of Position Detector Next, the internal configuration of the first axis position detector 4-1, the second axis position detector 4-2, and the third axis position detector 4-3 will be described in detail. Will be described. FIG. 2 is a block diagram showing the internal configuration of the position detector. It should be noted that there is no particular difference between the position detectors of the respective axes and that all of them have the same internal configuration. FIG. 2 shows only the internal configuration of one position detector.

【0019】図において、レゾルバ10は、サーボモー
タ出力軸の回転位置を検出するレゾルバであり、検出し
た回転位置をアナログ信号でA/D変換回路11へ出力
する。A/D変換回路11は、レゾルバ10からのアナ
ログ信号を受け、これをディジタルデータに変換して出
力する。又、このA/D変換回路11は、レゾルバ10
の検出結果について異常があるか否かを判断する機能を
具備しており、受けたアナログ信号に異常がある場合に
は、エラー信号を出力する。
In FIG. 1, a resolver 10 is a resolver for detecting a rotational position of a servomotor output shaft, and outputs the detected rotational position to an A / D conversion circuit 11 as an analog signal. The A / D conversion circuit 11 receives an analog signal from the resolver 10, converts the analog signal into digital data, and outputs the digital data. The A / D conversion circuit 11 includes a resolver 10
Is provided with a function of determining whether or not there is an abnormality in the detection result. If the received analog signal is abnormal, an error signal is output.

【0020】回転検出回路12は、サーボモータ出力軸
の回転を検出する回路であり、サーボモータ出力軸が1
回転する度にカウンタ回路13へパルス信号を出力す
る。カウンタ回路13は、回転検出回路12からのパル
ス信号を受け、これによりサーボモータ出力軸の回転数
をカウントして出力する。又、このカウンタ回路13
は、回転検出回路12の検出結果について異常があるか
否かを判断する機能を具備しており、受けたパルス信号
に異常がある場合には、エラー信号を出力する。
The rotation detecting circuit 12 is a circuit for detecting the rotation of the servo motor output shaft.
Each time it rotates, it outputs a pulse signal to the counter circuit 13. The counter circuit 13 receives the pulse signal from the rotation detection circuit 12, and counts and outputs the number of rotations of the output shaft of the servo motor. Also, this counter circuit 13
Has a function of determining whether there is an abnormality in the detection result of the rotation detection circuit 12, and outputs an error signal when the received pulse signal is abnormal.

【0021】位置検出回路14は、A/D変換回路11
から出力された回転位置(ディジタルデータ)と、カウ
ンタ回路13から出力された回転数とを受け、これらに
基づいてサーボモータが動作させる可動部の位置を算出
して位置データを生成する回路である。
The position detection circuit 14 includes an A / D conversion circuit 11
This is a circuit that receives the rotational position (digital data) output from the controller and the number of rotations output from the counter circuit 13, calculates the position of the movable part operated by the servomotor based on these, and generates position data. .

【0022】尚、上記A/D変換回路11、カウンタ回
路13及び位置検出回路14には、タイマ15によって
動作クロックが供給される。そして、これらの回路は該
動作クロックに同期して上述の動作を行う。
The A / D conversion circuit 11, counter circuit 13 and position detection circuit 14 are supplied with an operation clock by a timer 15. These circuits perform the above operation in synchronization with the operation clock.

【0023】シリアル通信回路16は、位置検出回路1
4において生成された位置データをシリアル信号形式に
変換して出力する回路である。このシリアル通信回路1
6は、タイマ12から動作クロックが供給される度に位
置データをシリアル信号形式に変換し、その変換した位
置データ信号を出力用の位置データとして保持してい
る。すなわち、動作クロックが供給される度に出力用の
位置データを更新しているのである。そして、上記リク
エスト信号を受け、該リクエスト信号が自己に対するも
のであるか否かを判断し、自己に対するものであった場
合、そのときに保持している位置データ信号をシリアル
通信線5へ出力する。尚、このような動作を行うため
に、タイマ12の動作クロックは上記一定時間Tsより
十分短く、位置検出器とモータドライバとが非同期に動
作するようになっている。
The serial communication circuit 16 includes the position detection circuit 1
4 is a circuit that converts the position data generated in step 4 into a serial signal format and outputs it. This serial communication circuit 1
Numeral 6 converts the position data into a serial signal format every time the operation clock is supplied from the timer 12, and holds the converted position data signal as output position data. That is, every time the operation clock is supplied, the position data for output is updated. Then, upon receiving the request signal, it is determined whether or not the request signal is for itself, and if so, the position data signal held at that time is output to the serial communication line 5. . In order to perform such an operation, the operation clock of the timer 12 is sufficiently shorter than the predetermined time Ts, and the position detector and the motor driver operate asynchronously.

【0024】又、シリアル通信回路16には、A/D変
換回路11及びカウンタ回路13が出力したエラー信号
も入力される(図中の「異常」参照)。そして、エラー
信号が入力されているときにリクエスト信号を受けた場
合には、その旨の情報に相当するデータを出力する。更
に、シリアル通信回路16は、モータドライバから要求
があったとき等、必要に応じてA/D変換回路11及び
カウンタ回路13をリセットする(図中の「リセット」
参照)。
The serial communication circuit 16 also receives an error signal output by the A / D conversion circuit 11 and the counter circuit 13 (see "abnormal" in the figure). Then, if a request signal is received while an error signal is being input, data corresponding to the information to that effect is output. Further, the serial communication circuit 16 resets the A / D conversion circuit 11 and the counter circuit 13 as necessary, for example, when there is a request from the motor driver ("reset" in the figure).
reference).

【0025】(3)データ通信の態様 続いて、本工業用ロボットにおけるデータ通信の態様に
ついて説明する。本工業用ロボットにおいては、上述し
たように3つの位置検出器と3つのモータドライバが1
系統のシリアル通信線5にディジーチェーン接続されて
おり、シリアル通信線5がすべての軸についての共通の
データ通信用信号線となっている。このため、送受信さ
れる通信データに通信の相手方を示すアドレス情報を付
加する。図3にかかる通信データの一態様を示す。
(3) Mode of Data Communication Next, the mode of data communication in the industrial robot will be described. In this industrial robot, as described above, three position detectors and three motor drivers are one.
The system is daisy-chained to the serial communication line 5, and the serial communication line 5 is a common data communication signal line for all axes. For this reason, address information indicating the communication partner is added to the transmitted / received communication data. FIG. 3 shows an example of communication data according to the embodiment.

【0026】図3においては、上段がモータドライバか
ら位置検出器へのリクエスト信号に含まれるデータを示
し、下段が位置検出器からモータドライバへの位置デー
タ信号に含まれるデータを示している。この図に示すよ
うに、位置検出器とモータドライバとの間で授受される
通信データは32ビットのパケット状の構成となってお
り、第4ビット(図中のビット3)〜第6ビット(図中
のビット5。以下同様)にて通信の相手方を示すアドレ
ス情報を含ませるようになっている。このような通信デ
ータを用いることとして、それぞれの位置検出器、モー
タドライバに対し、アドレスを設定する。
In FIG. 3, the upper part shows data included in a request signal from the motor driver to the position detector, and the lower part shows data included in the position data signal from the position detector to the motor driver. As shown in the figure, the communication data transmitted and received between the position detector and the motor driver has a 32-bit packet-like configuration, and the fourth bit (bit 3 in the figure) to the sixth bit (bit 3 in the figure). (Bit 5 in the figure, the same applies hereinafter) includes address information indicating the communication partner. Using such communication data, an address is set for each position detector and motor driver.

【0027】ここで、図4を併せて参照しつつ、図3に
示した通信データ態様の各ビット情報について説明す
る。図4は、図3に示した通信データ態様における通信
データの一例を示しており、第1軸モータドライバ7−
1が第1軸位置検出器4−1に位置データの取得を要求
するリクエスト信号(上段)と、該リクエスト信号に応
答して第1軸位置検出器4−1が第1軸モータドライバ
7−1へ送信する位置データ信号(下段)とに相当する
ものである。
Here, each bit information of the communication data mode shown in FIG. 3 will be described with reference to FIG. FIG. 4 shows an example of communication data in the communication data mode shown in FIG.
1 is a request signal (upper stage) requesting the first axis position detector 4-1 to acquire position data, and in response to the request signal, the first axis position detector 4-1 operates the first axis motor driver 7- 1 corresponds to the position data signal (lower stage) to be transmitted.

【0028】まず、リクエスト信号に含まれるビット情
報について説明する(図3及び図4の上段参照)。第1
ビット〜第3ビットはスタートビットであり、これらは
通信仕様に固有の値で、例えば図4に示すように“01
0”とする。第4ビット〜第6ビットはアドレス指定ビ
ットであり、第1軸〜第3軸位置検出器4−1〜4−3
のいずれかを指定するアドレスに応じたビット列とす
る。図4上段の例では“001”となっており、これが
第1軸位置検出器4−1のアドレスに相当する。尚、第
7ビット〜第26ビット(図中D19〜D0)は、リクエ
スト信号においては使用しない。
First, the bit information included in the request signal will be described (see the upper part of FIGS. 3 and 4). First
Bits to third bits are start bits, which are values specific to the communication specifications, for example, "01" as shown in FIG.
0 ". The fourth to sixth bits are address designation bits, and the first to third axis position detectors 4-1 to 4-3.
Is a bit string corresponding to the address that designates In the example shown in the upper part of FIG. 4, it is “001”, which corresponds to the address of the first axis position detector 4-1. The 7th to 26th bits (D19 to D0 in the figure) are not used in the request signal.

【0029】第27ビット及び第28ビットはコントロ
ール信号ビットであり、当該パケットに含まれた信号が
如何なる信号であるかを示すビット列とする。図4上段
の例では、“10”となっており、これがリクエスト信
号であることを示している。第29ビット〜第31ビッ
トはCRC信号ビットであり、パケットのデータエラー
を検出するための巡回冗長検査符合とする。第32ビッ
トはストップビットであり、図4の例では“1”であ
る。
The 27th bit and the 28th bit are control signal bits, and are a bit string indicating what kind of signal is included in the packet. In the example in the upper part of FIG. 4, it is “10”, which indicates that this is a request signal. The 29th to 31st bits are CRC signal bits, which are used as cyclic redundancy check codes for detecting data errors in packets. The 32nd bit is a stop bit, which is “1” in the example of FIG.

【0030】以上述べたようなリクエスト信号がモータ
ドライバから出力され、シリアル通信線5を介して第1
軸〜第3軸のすべての位置検出器と当該モータドライバ
以外の2つのモータドライバへ送信される。そして、す
べての位置検出器及び前記2つのモータドライバが該リ
クエスト信号を受信し、アドレス指定ビットにより、自
己に対して送信された信号か否かを判断する。
The request signal as described above is output from the motor driver, and the first
The signal is transmitted to all the position detectors of the axis to the third axis and two motor drivers other than the motor driver. Then, all the position detectors and the two motor drivers receive the request signal, and determine whether or not the signal is transmitted to itself based on the address designation bit.

【0031】このとき、自己に対する信号でないと判断
した位置検出器においては、リクエスト信号は無視され
る。又、前記2つのモータドライバにおいては、いずれ
も自己に対する信号でないと判断され、リクエスト信号
は無視される。
At this time, the request signal is ignored by the position detector which determines that the signal is not a signal for itself. Further, in the two motor drivers, it is determined that neither signal is for itself, and the request signal is ignored.

【0032】一方、自己に対するリクエスト信号である
と判断した位置検出器は、そのときに保持している図3
下段に示すような位置データ信号を、シリアル通信線5
を介して第1軸〜第3軸のすべてのモータドライバと当
該位置検出器以外の位置検出器へ送信する。
On the other hand, the position detector which has determined that the request signal is for itself is stored in the position detector shown in FIG.
The position data signal shown in the lower part is transmitted to the serial communication line 5.
To all the motor drivers of the first to third axes and the position detectors other than the position detector.

【0033】図4の例では、第1軸〜第3軸のすべての
位置検出器と、第2軸モータドライバ7−2及び第3軸
モータドライバ7−3へ図4上段のリクエスト信号が送
信され、第2軸位置検出器4−2、第3軸位置検出器4
−3、第2軸モータドライバ7−2及び第3軸モータド
ライバにおいては、該リクエスト信号は無視される。そ
して、第1軸位置検出器4−1のみが、そのときに保持
している図4下段に示すような位置データ信号を、第1
軸〜第3軸のすべてのモータドライバと、第2軸位置検
出器4−2及び第3軸位置検出器4−3へシリアル通信
線5を介して送信する。
In the example of FIG. 4, the request signal in the upper part of FIG. 4 is transmitted to all the position detectors of the first to third axes, the second-axis motor driver 7-2 and the third-axis motor driver 7-3. The second axis position detector 4-2 and the third axis position detector 4
-3, the second axis motor driver 7-2 and the third axis motor driver ignore the request signal. Then, only the first axis position detector 4-1 outputs the position data signal held at that time as shown in the lower part of FIG.
The signals are transmitted via the serial communication line 5 to all the motor drivers of the axis to the third axis, and to the second axis position detector 4-2 and the third axis position detector 4-3.

【0034】次に、上述のようにして位置検出器から送
信される位置データ信号のビット情報について説明する
(図3及び図4の下段参照)。位置データ信号において
は、第1ビット〜第3ビットのスタートビット、第29
ビット〜第31ビットのCRC信号ビット、第32ビッ
トのストップビットは、上記リクエスト信号と同様であ
る。
Next, the bit information of the position data signal transmitted from the position detector as described above will be described (see the lower part of FIGS. 3 and 4). In the position data signal, the first to third start bits, the 29th bit
The bit to the 31st CRC signal bit and the 32nd stop bit are the same as the request signal.

【0035】第4ビット〜第6ビットのアドレス指定ビ
ットは、送信側である位置検出器の自己アドレスに応じ
たビット列とする。従って、図4下段の例では、第1軸
位置検出器4−1のアドレス“001”とする。
The fourth to sixth address designation bits are a bit string corresponding to the self address of the position detector on the transmitting side. Therefore, in the example of the lower part of FIG. 4, the address of the first axis position detector 4-1 is “001”.

【0036】第7ビット〜第26ビットは位置データビ
ットであり、上記位置検出回路14等によって生成さ
れ、シリアル通信回路16にて20ビットのシリアル信
号(D19〜D0)に変換された位置データが含まれる。
The 7th to 26th bits are position data bits. The position data generated by the position detection circuit 14 and the like and converted into a 20-bit serial signal (D19 to D0) by the serial communication circuit 16 is included.

【0037】第27ビット及び第28ビットのコントロ
ール信号ビットは、当該パケットに含まれた信号が位置
データ信号であることを示すビット列とする。図4下段
の例では、“00”となっており、これが位置データ信
号であることを示している。
The 27th and 28th control signal bits are bit strings indicating that the signal included in the packet is a position data signal. In the example in the lower part of FIG. 4, the value is "00", which indicates that this is a position data signal.

【0038】以上述べたような位置データ信号が、位置
検出器から第1軸〜第3軸のすべてのモータドライバと
当該位置検出器以外の2つの位置検出器へ送信される。
そして、自己に対する信号であると判断したモータドラ
イバにおいてのみ位置データ信号が取り込まれ、その他
のモータドライバ及び位置検出器においては無視され
る。図4下段の位置データ信号にあっては、第1軸モー
タドライバ7−1にのみ取り込まれ、第2軸位置検出器
4−2、第3軸位置検出器4−3、第2軸モータドライ
バ7−2及び第3軸モータドライバには無視される。
The position data signal as described above is transmitted from the position detector to all the motor drivers of the first to third axes and two position detectors other than the position detector.
Then, the position data signal is fetched only by the motor driver determined to be a signal for itself, and is ignored by the other motor drivers and position detectors. The position data signal shown in the lower part of FIG. 4 is taken in only by the first axis motor driver 7-1, and the second axis position detector 4-2, the third axis position detector 4-3, the second axis motor driver It is ignored by the 7-2 and third axis motor drivers.

【0039】<動作>次に、上記構成による本工業用ロ
ボットにおいて、データ通信を行う際の通信処理動作に
ついて説明する。尚、それぞれ対応する位置検出器とモ
ータドライバの組における通信処理の動作態様は同様で
あるので、以下の説明においては、第1軸位置検出器4
−1と第1軸モータドライバ7−1の組における通信処
理動作のみを説明することとし、第2軸位置検出器4−
2と第2軸モータドライバ7−2の組及び第3軸モータ
ドライバ4−3と第3軸モータドライバ7−3の組にお
ける通信処理動作については説明を省略する。又、ここ
では、通信データの態様として、図4に示した例を用い
ることにする。
<Operation> Next, a communication processing operation for performing data communication in the industrial robot having the above configuration will be described. Since the operation mode of the communication processing in the pair of the corresponding position detector and motor driver is the same, the first axis position detector 4 will be described in the following description.
-1 and the first axis motor driver 7-1 will be described only for the communication processing operation, and the second axis position detector 4-
The description of the communication processing operation of the set of the second and second axis motor drivers 7-2 and the set of the third axis motor driver 4-3 and the third axis motor driver 7-3 is omitted. Here, the example shown in FIG. 4 is used as the form of the communication data.

【0040】(1)モータドライバ側の通信処理動作 初めに、モータドライバ側における通信処理動作につい
て、図5のフローチャートを参照して説明する。図5
は、上記一定時間Ts毎にモータドライバ側で上記制御
基板や通信処理部等によって繰り返し行われる処理を示
しており、一定時間Ts毎のタイマ割り込みによって起
動される。
(1) Communication processing operation on the motor driver side First, the communication processing operation on the motor driver side will be described with reference to the flowchart of FIG. FIG.
Indicates a process that is repeatedly performed by the control board, the communication processing unit, and the like on the motor driver side every fixed time Ts, and is started by a timer interrupt every fixed time Ts.

【0041】まず、STEP1で第1軸モータドライバ
4−1の通信処理部にエラーがないかチェックされる。
そして、エラーがあった場合には、通信処理部エラーに
対する所定のエラー処理を行い(STEP2)、エラー
がなかった場合にはSTEP3へ進む。
First, in STEP1, it is checked whether there is an error in the communication processing unit of the first axis motor driver 4-1.
If there is an error, predetermined error processing for the communication processing unit error is performed (STEP 2), and if there is no error, the process proceeds to STEP 3.

【0042】STEP3では、第1軸位置検出器のアド
レス“001”を指定して上述の図4上段に示したよう
なリクエスト信号を出力し、シリアル通信線5を介して
各位置検出器等へリクエスト信号を送信する。
In STEP 3, the request signal as shown in the upper part of FIG. 4 is output by designating the address "001" of the first axis position detector, and is sent to each position detector via the serial communication line 5. Send a request signal.

【0043】その後一定時間、第1軸位置検出器7−1
からの位置データ信号を待つレスポンス待ち処理を行う
(STEP4、STEP5)。このレスポンス待ち処理
は、まず、STEP4でレスポンスがあったか否か、す
なわち、何らかの信号が受信されたか否かを判断し、レ
スポンスがなければSTEP5でリクエスト信号の送信
から前記一定時間が経過したか否かを判断し、経過して
いなければ再びSTEP4へ戻り同一の処理を繰り返
す、という手順によって行われる。そして、レスポンス
がないまま前記一定時間、例えば50μs程度の時間が
経過したときには、STEP5での判断結果が“YE
S”となり、STEP6へ進んで無応答エラーに対する
所定のエラー処理を行う。
After that, the first axis position detector 7-1 for a certain period of time.
Then, a response waiting process for waiting for a position data signal is performed (STEP 4 and STEP 5). The response waiting process first determines whether or not a response has been received in STEP 4, that is, whether or not any signal has been received. Is determined, and if the time has not elapsed, the procedure returns to STEP 4 and repeats the same processing. When the predetermined time, for example, the time of about 50 μs elapses without a response, the determination result in STEP 5 is “YE
The process proceeds to STEP 6 to perform predetermined error processing for a non-response error.

【0044】一方、前記一定時間の内にレスポンスがあ
り、何らかの信号が受信されたとすると、STEP4で
の判断結果が“YES”となり、STEP7以降の処理
へ進む。そして、このときの通信にエラーがないかどう
か、すなわち、STEP3で送信したリクエスト信号に
対し、第1軸位置検出器から位置データ信号が送信さ
れ、その位置データ信号を適切に受信することができた
かどうかを判断する。
On the other hand, if there is a response within the predetermined time and some signal is received, the result of the determination in STEP 4 is “YES”, and the processing proceeds to STEP 7 and subsequent steps. Then, whether or not there is an error in the communication at this time, that is, in response to the request signal transmitted in STEP 3, a position data signal is transmitted from the first axis position detector, and the position data signal can be appropriately received. Judge whether or not.

【0045】この通信内容についての判断においては、
まず、STEP7で受信信号がエラーのない確かな位置
データ信号であるか判断する。これは、受信信号のコン
トロール信号ビットを参照することによって行い、コン
トロール信号ビットが“00”であった場合には“YE
S”と判断し、それ以外であった場合には“NO”と判
断する。ここで、受信信号がエラーのない確かな位置デ
ータ信号であったとすると、そのコントロール信号ビッ
トは“00”となっているので、STEP7の判断結果
が“YES”となり、STEP8へ進む。
In determining this communication content,
First, in STEP 7, it is determined whether the received signal is a reliable position data signal without error. This is performed by referring to the control signal bit of the received signal. If the control signal bit is “00”, “YE”
If the received signal is a reliable position data signal with no error, the control signal bit is set to "00". Therefore, the determination result in STEP 7 is “YES”, and the flow proceeds to STEP 8.

【0046】そして、STEP8では、受信信号が第1
軸位置検出器4−1から送信されたものであるか判断す
る。これは、受信信号のアドレス指定ビットを参照する
ことによって行い、アドレス指定ビットが“001”で
あった場合には“YES”と判断し、それ以外であった
場合には“NO”と判断する。このとき、受信信号が第
1軸位置検出器4−1から送信された位置データ信号で
あったとすると、そのアドレス指定ビットは“001”
となっているので、STEP8の判断結果が“YES”
となり、STEP9へ進む。
Then, in STEP 8, the received signal is
It is determined whether the data is transmitted from the shaft position detector 4-1. This is performed by referring to the address designation bit of the received signal. If the address designation bit is "001", it is determined to be "YES"; otherwise, it is determined to be "NO". . At this time, if the received signal is a position data signal transmitted from the first axis position detector 4-1, the address designation bit is "001".
, The result of the determination in STEP 8 is “YES”.
And proceed to STEP9.

【0047】STEP9では、受信信号の位置データビ
ットに含まれた情報を位置データとして取り込む処理を
行う。この処理は、該位置データを通信処理部にて所定
の信号形式に変換し、制御基板等へ供給することによっ
て行う。このようにして、第1軸モータドライバ7−1
側で第1軸位置検出器4−1の位置データが取得され
る。
In STEP 9, a process for taking in information included in the position data bits of the received signal as position data is performed. This processing is performed by converting the position data into a predetermined signal format in a communication processing unit and supplying the signal to a control board or the like. Thus, the first axis motor driver 7-1
The position data of the first axis position detector 4-1 is obtained on the side.

【0048】尚、STEP8において、受信信号が第1
軸位置検出器4−1以外の位置検出器から送信された位
置データ信号であったとすると、そのアドレス指定ビッ
トは“001”以外のビット列となっているので、ST
EP8の判断結果は“NO”となる。この場合には、そ
の位置データ信号を無視し、STEP4へ戻って再びレ
スポンス待ち処理を行う。
In step 8, the received signal is the first
If it is a position data signal transmitted from a position detector other than the axis position detector 4-1, the address designation bits are bit strings other than "001".
The judgment result of EP8 is "NO". In this case, the position data signal is ignored, and the process returns to STEP 4 to perform the response waiting process again.

【0049】一方、STEP7において、受信信号のコ
ントロール信号ビットが“00”以外のビット列となっ
ていたとすると、判断結果は“NO”となり、STEP
10へ進む。これは、エラーのある位置データ信号若し
くは位置データ信号以外の信号が受信され、STEP3
でリクエスト信号を送信したにもかかわらず、適切な位
置データ信号が受信されなかった、という通信エラーが
発生した場合である。
On the other hand, if it is determined in STEP 7 that the control signal bit of the received signal is a bit string other than “00”, the determination result is “NO”, and
Proceed to 10. This is because an erroneous position data signal or a signal other than the position data signal is received, and STEP 3
This is a case where a communication error has occurred that an appropriate position data signal has not been received even though the request signal has been transmitted.

【0050】STEP10では、上記STEP8同様、
受信信号が第1軸位置検出器4−1から送信されたもの
であるか判断する。このとき、受信信号が第1軸位置検
出器4−1以外から送信された信号であったとすると、
そのアドレス指定ビットは“001”以外のビット列と
なっている。これにより、STEP10の判断結果は
“NO”となり、STEP4へ戻って再びレスポンス待
ち処理を行う。すなわち、第1軸モータドライバ7−1
は、上述したような通信エラーが発生しても、それが自
己の通信相手以外からのレスポンスによるものであった
場合には、当該通信エラーを無視し、何等のエラー処理
も行わないのである。
In STEP 10, similar to STEP 8 described above,
It is determined whether the received signal has been transmitted from the first axis position detector 4-1. At this time, if the received signal is a signal transmitted from other than the first axis position detector 4-1,
The address designation bits are bit strings other than “001”. As a result, the determination result in STEP 10 becomes “NO”, and the process returns to STEP 4 to perform the response waiting process again. That is, the first axis motor driver 7-1
When a communication error occurs as described above, if the communication error is caused by a response from a device other than the communication partner, the communication error is ignored and no error processing is performed.

【0051】しかし、通信エラーが自己の通信相手から
のレスポンスによるものであった場合、すなわち、受信
信号が第1軸位置検出器4−1から送信された信号であ
り、STEP10での判断結果が“YES”となった場
合にあっては、以下に述べるようなエラー処理を行う。
However, if the communication error is due to a response from its own communication partner, that is, the received signal is a signal transmitted from the first axis position detector 4-1 and the result of determination in STEP10 is If "YES", error processing as described below is performed.

【0052】まず、STEP11で、当該通信エラー
が、第1軸位置検出器4−1から第1軸モータドライバ
7−1へのレスポンスの通信中に生じた通信データエラ
ーであるか否かを判断する。ここに、通信データエラー
には、レスポンス通信中のパケットのビット落ち等が含
まれ、その判断は、受信信号中のCRC信号ビットによ
って行う。
First, in STEP 11, it is determined whether or not the communication error is a communication data error generated during communication of a response from the first axis position detector 4-1 to the first axis motor driver 7-1. I do. Here, the communication data error includes bit omission of a packet during response communication and the like, and the determination is made based on a CRC signal bit in a received signal.

【0053】このとき、通信データエラーは生じていな
かったとすると、STEP11の判断結果は“NO”と
なり、STEP12へ進む。そして今度は、当該通信エ
ラーが、第1軸モータドライバ7−1から第1軸位置検
出器4−1へのリクエスト信号の通信中にパケットのビ
ット落ち等が発生したことによる通信エラーレスポンス
であるか否かを判断する。
At this time, if no communication data error has occurred, the result of the determination in STEP 11 is “NO”, and the flow proceeds to STEP 12. This time, the communication error is a communication error response due to a drop in a packet bit or the like during the communication of the request signal from the first axis motor driver 7-1 to the first axis position detector 4-1. It is determined whether or not.

【0054】このように、STEP11及びSTEP1
2で通信エラーの形態を特定する処理を行い、当該通信
エラーが、上記通信データエラー、通信エラーレスポン
スのいずれにも特定できないときには、STEP12で
の判断結果が“NO”となり、STEP13へ進む。そ
して、第1軸位置検出器4−1側に何らかの異常が発生
したものとみなし、所定のエラー処理を行う。
As described above, STEP11 and STEP1
In step 2, the process of identifying the form of the communication error is performed. If the communication error cannot be identified as any of the communication data error and the communication error response, the result of the determination in step 12 is "NO" and the process proceeds to step 13. Then, it is considered that some abnormality has occurred on the first axis position detector 4-1 side, and predetermined error processing is performed.

【0055】これに対し、当該通信エラーが、上記通信
データエラー、通信エラーレスポンスのいずれかであっ
た場合には、STEP14以降の処理が行われる。すな
わち、通信データエラーであった場合には、STEP1
1での判断結果が“YES”となってSTEP14へ進
み、通信エラーレスポンスであった場合には、STEP
12での判断結果が“YES”となってSTEP14へ
進む。
On the other hand, if the communication error is one of the communication data error and the communication error response, the processing after STEP 14 is performed. That is, if a communication data error has occurred, STEP 1
If the result of the determination in step 1 is "YES" and the operation proceeds to step 14, the communication error response is returned.
The result of the determination at 12 is "YES" and the operation proceeds to STEP14.

【0056】STEP14では、リクエスト信号の再送
信回数が所定のリトライ制限回数を超えていないか判断
する。ここにいうリクエスト信号の再送信回数とは、図
5の通信処理を開始した以後、1度リクエスト信号を送
信したにもかかわらず位置データ信号を取得できず、再
びリクエスト信号の送信(リトライ)を行った回数であ
り、通信処理開始当初は0である。又、リトライ制限回
数とは、リクエスト信号の再送信を行うことが可能な回
数として、予め設定された再送信回数の上限である。
In STEP 14, it is determined whether the number of retransmissions of the request signal does not exceed a predetermined number of retry times. The number of retransmissions of the request signal referred to here means that the position data signal cannot be obtained even though the request signal has been transmitted once after the communication processing of FIG. 5 is started, and the transmission (retry) of the request signal is performed again. This is the number of times that communication has been performed, and is 0 at the beginning of the communication process. Also, the retry limit number is a preset upper limit of the number of retransmissions as a number of times that a request signal can be retransmitted.

【0057】ここで、図5の通信処理動作が上記一定時
間Ts毎に行われ、かつ、第1軸〜第3軸の位置検出器
とモータドライバの組でそれぞれ非同期に行われるもの
であるということから、リトライ制限回数には、時間T
s/3以下の間に行い得る再送信回数を設定する。尚、
必要に応じて軸毎にデータ通信を行う時間の長さを変え
る場合には、軸毎にリトライ制限回数が異なるようにし
てもよい。
Here, it is assumed that the communication processing operation of FIG. 5 is performed at every fixed time Ts, and is performed asynchronously by a set of the position detectors of the first to third axes and the motor driver. Therefore, the retry limit number includes the time T
Set the number of retransmissions that can be performed during s / 3 or less. still,
When changing the length of time for performing data communication for each axis as needed, the number of retries may be different for each axis.

【0058】STEP14においては、このように設定
されたリトライ制限回数よりリクエスト信号の再送信回
数が少なかった場合、判断結果が“NO”となる。そし
て、リトライカウンタを1インクリメント(STEP1
5)した後でSTEP3へ戻り、リクエスト信号の再送
信をして上記STEP3以降の処理を再び行う。このよ
うにして、第1軸位置検出器4−1からの位置データ信
号が適切に受信されるまで、通信内容についてのエラー
判断とそのエラーの形態特定及びリクエスト信号の再送
信を繰り返す。
In STEP 14, when the number of retransmissions of the request signal is smaller than the retry limit set in this way, the determination result is "NO". Then, the retry counter is incremented by one (STEP 1).
5) After returning to STEP 3, the request signal is retransmitted, and the processing after STEP 3 is performed again. In this manner, until the position data signal from the first axis position detector 4-1 is properly received, the determination of the error in the communication content, the identification of the error form, and the retransmission of the request signal are repeated.

【0059】尚、リクエスト信号の再送信回数がリトラ
イ制限回数をオーバした場合には、STEP14の判断
結果が“YES”となり、STEP16へ進んでリトラ
イオーバエラーに対する所定のエラー処理を行う。
If the number of retransmissions of the request signal exceeds the retry limit number, the result of determination in STEP 14 is "YES", and the flow advances to STEP 16 to perform predetermined error processing for a retry over error.

【0060】(2)位置検出器側の通信処理動作 次に、位置検出器側における通信処理動作について、図
6のフローチャートを参照して説明する。図6は、第1
軸位置検出器4−1において、第1軸モータドライバ4
−1からのリクエスト信号が受信されたときに起動され
る通信処理動作を示している。
(2) Communication Processing Operation on the Position Detector Next, the communication processing operation on the position detector will be described with reference to the flowchart in FIG. FIG. 6 shows the first
In the axis position detector 4-1, the first axis motor driver 4
2 shows a communication processing operation started when a request signal from -1 is received.

【0061】まず、第1軸位置検出器4−1において何
らかの信号が受信されたとすると、STEP21でその
受信信号が自己に対する信号であるか判断する。これ
は、受信信号のアドレス指定ビットを参照することによ
って行い、アドレス指定ビットが“001”であった場
合には“YES”と判断し、それ以外であった場合には
“NO”と判断する。従って、受信信号が第1軸位置検
出器4−1に対するものでなかったとすると、そのアド
レス指定ビットは“001”以外のビット列となってい
るので、STEP21の判断結果は“NO”となり、処
理を終了して受信信号を無視する。
First, if any signal is received by the first axis position detector 4-1, it is determined in STEP 21 whether the received signal is a signal for itself. This is performed by referring to the address designation bit of the received signal. If the address designation bit is "001", it is determined to be "YES"; otherwise, it is determined to be "NO". . Therefore, assuming that the received signal is not for the first axis position detector 4-1, the address designation bit is a bit string other than "001". Finish and ignore the received signal.

【0062】一方、受信信号が第1軸位置検出器4−1
に対するものであったとすると、そのアドレス指定ビッ
トは“001”となっているので、STEP21の判断
結果が“YES”となり、STEP22へ進む。
On the other hand, the received signal is transmitted to the first axis position detector 4-1.
Since the address designation bit is "001", the result of determination in STEP21 is "YES", and the flow proceeds to STEP22.

【0063】STEP22では、このときの通信内容に
エラーがないかどうか判断する。すなわち、上記STE
P21で自己(第1軸位置検出器4−1)に対するもの
であると判断された受信信号が、エラーのない確かなリ
クエスト信号であるか否かを判断するのである。これ
は、受信信号のコントロール信号ビットを参照すること
によって行い、コントロール信号ビットが“10”であ
った場合には“YES”と判断し、それ以外であった場
合には“NO”と判断する。
At STEP 22, it is determined whether or not there is an error in the communication contents at this time. That is, the above STE
It is determined whether the received signal determined to be for itself (the first axis position detector 4-1) in P21 is a reliable request signal without error. This is performed by referring to the control signal bit of the received signal. If the control signal bit is "10", the judgment is "YES"; otherwise, the judgment is "NO". .

【0064】ここで、受信信号がエラーのない確かなリ
クエスト信号であったとすると、そのコントロール信号
ビットは“10”となっているので、STEP22の判
断結果が“YES”となり、STEP23へ進む。
Here, assuming that the received signal is a reliable request signal having no error, the control signal bit is "10", so that the determination result in STEP22 is "YES", and the process proceeds to STEP23.

【0065】STEP23では、位置データ信号を第1
軸モータドライバ7−1に対して送信する。これは、第
1軸位置検出器4−1内のシリアル通信回路16が、そ
のときに保持している位置データ信号をシリアル通信線
5へ出力することによって行われる。
In STEP 23, the position data signal is transmitted to the first
It is transmitted to the shaft motor driver 7-1. This is performed by the serial communication circuit 16 in the first axis position detector 4-1 outputting the position data signal held at that time to the serial communication line 5.

【0066】一方、受信信号のコントロール信号ビット
が“10”以外のビット列となっていたとすると、ST
EP22の判断結果が“NO”となり、STEP24へ
進む。これは、第1軸モータドライバ7−1から第1軸
位置検出器4−1に対するリクエスト信号が適切に送受
信されなかった、という通信エラーが発生した場合であ
る。
On the other hand, if the control signal bit of the received signal is a bit string other than "10", ST
The decision result in EP22 is "NO", and the routine proceeds to STEP24. This is a case where a communication error has occurred that a request signal from the first-axis motor driver 7-1 to the first-axis position detector 4-1 was not properly transmitted and received.

【0067】STEP24では、当該通信エラーが、第
1軸モータドライバ7−1から第1軸位置検出器4−1
へのリクエスト信号の通信中に生じた通信データエラー
であるか否かを判断する。ここに、通信データエラーに
は、上記同様、リクエスト通信中のパケットのビット落
ち等が含まれ、その判断は、受信信号中のCRC信号ビ
ットによって行う。
In STEP 24, the communication error is transmitted from the first axis motor driver 7-1 to the first axis position detector 4-1.
It is determined whether or not a communication data error has occurred during the communication of the request signal to. Here, similarly to the above, the communication data error includes dropped bits of the packet during the request communication, and the determination is made based on the CRC signal bit in the received signal.

【0068】このとき、通信データエラーが生じていた
とすると、STEP24の判断結果は“YES”とな
り、STEP25へ進む。そして、通信データエラーが
発生した旨のレスポンスを第1軸モータドライバ7−1
へ送信し、処理を終了する。
At this time, if a communication data error has occurred, the result of determination in STEP 24 is “YES”, and the flow proceeds to STEP 25. Then, a response indicating that a communication data error has occurred is sent to the first axis motor driver 7-1.
And ends the processing.

【0069】これに対し、通信データエラーは生じてお
らず、それ以外のエラーが生じていた場合には、STE
P24の判断結果が“NO”となり、STEP26へ進
む。これは、第1軸位置検出器4−1側において何らか
の異常が発生している場合であるので、その旨を知らせ
る位置検出器エラーレスポンスを第1軸モータドライバ
7−1へ送信し、処理を終了する。
On the other hand, if no communication data error has occurred and any other error has occurred, the STE
The determination result of P24 is "NO", and the flow proceeds to STEP26. This is a case where some abnormality has occurred on the first axis position detector 4-1 side, so a position detector error response notifying the fact is transmitted to the first axis motor driver 7-1, and the processing is performed. finish.

【0070】以上述べたようにして、1系統のシリアル
通信線5によってディジーチェーン接続された各位置検
出器とモータドライバの組におけるデータ通信が行われ
る。ここで、もし、同時に2以上のモータドライバから
リクエスト信号が送信されたり、同時に2以上のサーボ
モータから位置データ信号が送信されたり、或いは第3
軸モータドライバ7−3のリクエスト信号と第1軸位置
検出器4−1の位置データ信号とが同時に送信されたり
すると、シリアル通信線5内で通信データがバッティン
グし、データの消滅やデータの信頼性低下を招く。
As described above, data communication is performed in the set of each position detector and the motor driver connected in a daisy chain by one system serial communication line 5. Here, if two or more motor drivers simultaneously transmit request signals, two or more servo motors simultaneously transmit position data signals, or
When the request signal of the axis motor driver 7-3 and the position data signal of the first axis position detector 4-1 are transmitted at the same time, the communication data battings in the serial communication line 5, and the data disappears or the data is relied on. This leads to a decrease in sex.

【0071】本工業用ロボットでは、各位置検出器とモ
ータドライバの組がそれぞれ非同期に動作しているが、
事実上かかる事態が発生する場合もあり得る。そこで、
より確実な通信を行うためには、例えば、各組が通信を
行っていることを他の組に知らせる信号を送信するよう
にすればよい。具体的には、各組同士を接続するBUS
Y信号線を設け、ある組が通信を行っている間は、シリ
アル通信線5の使用権を獲得していることを示す“BU
SY”信号を前記BUSY信号線を介して送信し、それ
を受信した組は通信を行わないようにしてもよい。
In this industrial robot, each set of the position detector and the motor driver operates asynchronously.
Such a situation may actually occur. Therefore,
In order to perform more reliable communication, for example, a signal may be transmitted to notify the other group that each group is performing communication. Specifically, a BUS connecting each pair
A Y signal line is provided, and while a certain group is communicating, "BU" indicating that the right to use the serial communication line 5 is acquired.
The SY ″ signal may be transmitted via the BUSY signal line, and the pair receiving the SY ″ signal may not perform communication.

【0072】尚、上記実施形態においては、便宜上、3
軸サーボシステムを有する工業用ロボットを例として説
明したが、これ以外にも2軸、6軸、8軸等の多種多様
なサーボシステムを有する工業用ロボットや工作機械、
チップマウンタ装置等において、位置検出器とモータド
ライバを1系統のシリアル通信線5によってディジーチ
ェーン接続し、上述したようなデータ通信を行うことと
してもよいのは勿論である。又、配線の都合上、例え
ば、6軸サーボシステムの各シリアル通信線を1系統と
することができない場合、3軸ずつ2系統としたシリア
ル通信線を設けることとしてもよい。
In the above embodiment, for convenience, 3
Although the description has been given of an industrial robot having an axis servo system as an example, other industrial robots and machine tools having various servo systems such as 2-axis, 6-axis, and 8-axis,
In the chip mounter device or the like, the position detector and the motor driver may be daisy-chained by one serial communication line 5 to perform the data communication as described above. Further, for example, when the serial communication lines of the six-axis servo system cannot be formed into one system due to the wiring, two serial communication lines of three axes may be provided.

【0073】更に、1系統のシリアル通信線により各位
置検出器同士も接続されているので、モータドライバか
らのリクエスト信号がない時間帯に各位置検出器が相互
にエラー等の監視を行うようにすることもできる。この
ようにすると、位置検出器の異常に対する信頼性が向上
するという効果が得られる。
Further, since the position detectors are also connected to each other by one serial communication line, the position detectors mutually monitor errors and the like during a time period when there is no request signal from the motor driver. You can also. By doing so, the effect of improving the reliability with respect to the abnormality of the position detector is obtained.

【0074】加えて、上記実施形態における位置検出器
では、サーボモータ出力軸の回転位置を検出するのにレ
ゾルバを用いることとしたが、これ以外にもオプティカ
ルエンコーダや磁気エンコーダ等を用いることとしても
よい。
In addition, in the position detector in the above embodiment, a resolver is used to detect the rotational position of the output shaft of the servomotor, but an optical encoder, a magnetic encoder, or the like may be used in addition to this. Good.

【0075】尚、位置検出器の多回転情報をカウンタに
記憶し、絶対位置検出が可能な位置検出器も存在する。
かかる位置検出器を具備したシステムでは、多回転情報
をカウンタに記憶するためにバッテリを搭載し、これを
電源OFF時、すなわち、システム停止中のバックアッ
プに用いることが多い。そして、この場合のバッテリ
は、通常、各位置検出器毎に用意する。しかし、本発明
によれば、上述したように1系統のシリアル通信線を設
けることとするので、これを介してバッテリを接続する
ことにより、バックアップのためのバッテリを単一のバ
ッテリでまかなうことが可能となる。
It should be noted that there are also position detectors which store multi-rotation information of the position detector in a counter and can detect an absolute position.
In a system equipped with such a position detector, a battery is mounted in order to store multi-rotation information in a counter, and this battery is often used when the power is turned off, that is, as a backup during system stop. In this case, a battery is usually prepared for each position detector. However, according to the present invention, since a single serial communication line is provided as described above, a battery for backup can be covered by a single battery by connecting a battery via this. It becomes possible.

【0076】[0076]

【発明の効果】以上説明したように本発明によれば、各
々の可動部の動作状態を検出する複数の検出手段と、そ
れら検出手段の各々に対応して制御装置内に設けられた
複数の駆動制御部との間の通信を1系統の信号線によっ
て行うこととしたので、信号線のひねりや曲げ、振動、
接触等によるデータの信頼性低下を最小限に抑えること
ができると共に、信号線の取り廻し自由度を向上させる
ことができるという効果が得られる。
As described above, according to the present invention, a plurality of detecting means for detecting the operating state of each movable part, and a plurality of detecting means provided in the control device corresponding to each of the detecting means are provided. Since the communication with the drive control unit is performed by one signal line, twisting, bending, vibration,
The effect of minimizing a decrease in data reliability due to contact or the like and improving the degree of freedom of signal line routing can be obtained.

【0077】又、各検出手段同士での通信も可能となる
ので、検出手段相互間で異常の監視を行うこともでき、
検出手段の異常に対する信頼性向上を図ることができ
る。加えて、信号線を1系統としたことにより、信号線
を設けるのに要する工数を削減することもできることに
なる。
Further, since communication between the detecting means is also possible, it is possible to monitor an abnormality between the detecting means.
It is possible to improve the reliability with respect to the abnormality of the detection means. In addition, by using one signal line, the number of steps required to provide the signal line can be reduced.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明の一実施形態による工業用ロボットの
構成を模式的に示した図である。
FIG. 1 is a diagram schematically showing a configuration of an industrial robot according to one embodiment of the present invention.

【図2】 同実施形態における位置検出器の内部構成ブ
ロック図である。
FIG. 2 is a block diagram showing an internal configuration of a position detector according to the embodiment.

【図3】 同実施形態における通信データ態様を示す図
である
FIG. 3 is a diagram showing a communication data mode in the embodiment.

【図4】 図3に示した通信データ態様における通信デ
ータの一例を示す図である。
FIG. 4 is a diagram showing an example of communication data in the communication data mode shown in FIG.

【図5】 モータドライバ側における通信処理動作を示
すフローチャートである。
FIG. 5 is a flowchart showing a communication processing operation on the motor driver side.

【図6】 位置検出器側における通信処理動作を示すフ
ローチャートである。
FIG. 6 is a flowchart showing a communication processing operation on the position detector side.

【符号の説明】[Explanation of symbols]

1 ロボット本体 2−1 第1軸サーボモータ 2−2 第2軸サーボモータ 2−3 第3軸サーボモータ 4−1 第1軸位置検出器 4−2 第2軸位置検出器 4−3 第3軸位置検出器 5 シリアル通信線 6 制御装置 7−1 第1軸モータドライバ 7−2 第2軸モータドライバ 7−3 第3軸モータドライバ 1 Robot main body 2-1 First axis servo motor 2-2 Second axis servo motor 2-3 Third axis servo motor 4-1 First axis position detector 4-2 Second axis position detector 4-3 Third Axis position detector 5 Serial communication line 6 Controller 7-1 First axis motor driver 7-2 Second axis motor driver 7-3 Third axis motor driver

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数の可動部を有し、制御装置が前記複
数の可動部の動作をそれぞれ指示する工業用ロボットに
おいて、 前記複数の可動部と前記制御装置との間に設けられた一
系統の信号線と、 前記複数の可動部の各々に対応して設けられ、可動部の
動作状態を検出する複数の検出手段と、 前記制御装置内に、前記複数の検出手段の各々に対応し
て設けられ、可動部の駆動を制御する複数の駆動制御部
とを有し、 前記複数の検出手段は、各々、前記信号線を介して前記
制御装置から指示信号を受け、当該指示信号が自己を特
定して検出結果を要求するものである場合に、自己を特
定するデータを付した検出結果信号を前記信号線に出力
し、 前記複数の駆動制御部は、各々、自己が対応する検出手
段を特定するデータを付した前記指示信号を前記信号線
に出力すると共に、前記信号線を介して前記検出結果信
号を受け、当該検出結果信号に付された前記データによ
り自己が対応する検出手段からの検出結果信号を選別し
て検出結果を得ることを特徴とする工業用ロボット。
1. An industrial robot having a plurality of movable parts, wherein a control device instructs an operation of each of the plurality of movable parts, wherein one system provided between the plurality of movable parts and the control device. And a plurality of detection means provided corresponding to each of the plurality of movable parts, for detecting an operation state of the movable part, and in the control device, corresponding to each of the plurality of detection means. A plurality of drive control units for controlling the driving of the movable unit, wherein each of the plurality of detection units receives an instruction signal from the control device via the signal line, and the instruction signal is determined by itself. In the case of specifying and requesting a detection result, a detection result signal with data specifying itself is output to the signal line, and the plurality of drive control units each include a detection unit corresponding to itself. The instruction signal with the data to be specified is Output to the signal line, receive the detection result signal via the signal line, and select the detection result signal from the corresponding detecting means by the data attached to the detection result signal to determine the detection result. An industrial robot characterized by being obtained.
JP8142097A 1997-03-31 1997-03-31 Industrial robot Withdrawn JPH10275006A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8142097A JPH10275006A (en) 1997-03-31 1997-03-31 Industrial robot

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8142097A JPH10275006A (en) 1997-03-31 1997-03-31 Industrial robot

Publications (1)

Publication Number Publication Date
JPH10275006A true JPH10275006A (en) 1998-10-13

Family

ID=13745873

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8142097A Withdrawn JPH10275006A (en) 1997-03-31 1997-03-31 Industrial robot

Country Status (1)

Country Link
JP (1) JPH10275006A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006106625A1 (en) * 2005-03-30 2006-10-12 Pioneer Corporation Information processing device and information processing method
JP2008526536A (en) * 2005-08-01 2008-07-24 トヨタ自動車株式会社 Robot control system
CN100422892C (en) * 2004-05-28 2008-10-01 发那科株式会社 Numerical controller and servomotor control system
JP2011079123A (en) * 2009-09-22 2011-04-21 Gm Global Technology Operations Inc Integrated high-speed torque control system for robotic joint
JP2014064452A (en) * 2012-08-27 2014-04-10 Juki Corp Multi-axis control system and multi-axis control method
JP2018519057A (en) * 2015-06-23 2018-07-19 コヴィディエン リミテッド パートナーシップ Robotic surgical assembly
JP2020121362A (en) * 2019-01-30 2020-08-13 セイコーエプソン株式会社 Robot, robot system and robot control device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100422892C (en) * 2004-05-28 2008-10-01 发那科株式会社 Numerical controller and servomotor control system
WO2006106625A1 (en) * 2005-03-30 2006-10-12 Pioneer Corporation Information processing device and information processing method
JP2008526536A (en) * 2005-08-01 2008-07-24 トヨタ自動車株式会社 Robot control system
JP4762999B2 (en) * 2005-08-01 2011-08-31 トヨタ自動車株式会社 Robot control system
JP2011079123A (en) * 2009-09-22 2011-04-21 Gm Global Technology Operations Inc Integrated high-speed torque control system for robotic joint
JP2014064452A (en) * 2012-08-27 2014-04-10 Juki Corp Multi-axis control system and multi-axis control method
JP2018519057A (en) * 2015-06-23 2018-07-19 コヴィディエン リミテッド パートナーシップ Robotic surgical assembly
US11197727B2 (en) 2015-06-23 2021-12-14 Covidien Lp Robotic surgical assemblies
JP2020121362A (en) * 2019-01-30 2020-08-13 セイコーエプソン株式会社 Robot, robot system and robot control device

Similar Documents

Publication Publication Date Title
US10300605B2 (en) Robot, controller, and robot system
US9174340B2 (en) Robot system
JP6811635B2 (en) Robot system and its control method
US8339091B2 (en) Communication apparatus for robots
US8295949B2 (en) Control system, control method, master device, and control device
JP6657486B2 (en) Servo system, sensor hub, and method of diagnosing industrial device
WO2018212239A1 (en) Remote operation robot system
JP2014180719A (en) Robot device
JPH1133960A (en) Method for controlling robot
CN109129475B (en) Gravity compensation method, device and system for mechanical arm and storage medium
JPH10275006A (en) Industrial robot
JP2004088208A (en) Data transmission system and method therefor
JP4728128B2 (en) Multi-axis motor position detection signal transmission device
US20220241973A1 (en) Robot Control Device And Robot System
JP2017030069A (en) Robot control system, robot, and robot system
JPH0724765A (en) Correction data communication system among robots
CN114683276B (en) Robot system
WO2007107277A1 (en) Manipulator, for example an industrial robot, and drive device for a manipulator
CN111555664A (en) Motor control system and method
CN112847330B (en) Control method and robot system
US20230062371A1 (en) Robot system, method for controlling robot system, method for manufacturing article using robot system, system, method for controlling system, and recording medium
Wang et al. Design and implementation of a 6-DOF robot control system based on CAN fieldbus
JPS62251902A (en) Data transmission system
JPH1199491A (en) Robot control device
JPH06203286A (en) Signal transmitter for position detector

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20040601