JP4254321B2 - Encoder device, robot system - Google Patents

Encoder device, robot system Download PDF

Info

Publication number
JP4254321B2
JP4254321B2 JP2003110806A JP2003110806A JP4254321B2 JP 4254321 B2 JP4254321 B2 JP 4254321B2 JP 2003110806 A JP2003110806 A JP 2003110806A JP 2003110806 A JP2003110806 A JP 2003110806A JP 4254321 B2 JP4254321 B2 JP 4254321B2
Authority
JP
Japan
Prior art keywords
encoder
data
transmission rate
identification information
signal
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.)
Expired - Fee Related
Application number
JP2003110806A
Other languages
Japanese (ja)
Other versions
JP2004317261A (en
Inventor
喜二 高橋
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.)
Nikon Corp
Original Assignee
Nikon 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 Nikon Corp filed Critical Nikon Corp
Priority to JP2003110806A priority Critical patent/JP4254321B2/en
Publication of JP2004317261A publication Critical patent/JP2004317261A/en
Application granted granted Critical
Publication of JP4254321B2 publication Critical patent/JP4254321B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、ロボットなどに使用するエンコーダ装置に関する。
【0002】
【従来の技術】
ロボットは、複数の軸に複数のモータおよび複数のエンコーダ装置をそれぞれ搭載して制御される。また、エンコーダ装置内に電気的書き換え可能なROMを設け、分解能や通信方法などの性能に関するデータを外部装置から書き込むことが可能なエンコーダ装置も提案されている(例えば、特許文献1参照)。
【0003】
【特許文献1】
特開平11−304536号公報
【発明が解決しようとする課題】
しかし、上述した分解能や通信方法などの性能(仕様)に関するデータを外部装置から書き込むことが可能なエンコーダ装置では、外部装置に接続される複数のエンコーダ装置からデータ書き込み対象の1つのエンコーダ装置を特定することができない。例えば、ロボットにおける複数のエンコーダ装置がバス接続された状態で、1つのエンコーダ装置の分解能や通信方法などの性能に関する設定データを外部から書き込むことはできない。
【0004】
本発明は、バス接続された複数のエンコーダ装置の仕様を容易に設定することが可能なエンコーダ装置、および、このエンコーダ装置を使用したロボットシステムを提供する。
【0005】
【課題を解決するための手段】
請求項の発明は、エンコーダ装置に適用され、固有のエンコーダ識別情報を格納するエンコーダ識別情報格納手段と、エンコーダ装置の動作環境を決定する仕様設定データを格納する仕様設定データ格納手段と、外部装置からエンコーダ識別情報格納手段に格納されているエンコーダ識別情報と同一のエンコーダ識別情報を受信したとき、外部装置から送信されたエンコーダ識別情報に付帯した仕様設定データを仕様設定データ格納手段に格納するよう処理する処理手段と、外部装置とシリアル通信によりデータを送受信する送受信手段とを備え、
送受信手段が外部装置からエンコーダ識別情報とともに仕様設定データを受信するときの物理的な第1の伝送速度は、送受信手段が外部装置とのエンコーダ装置の位置情報に関するエンコーダデータの送受信の物理的な第2の伝送速度よりも遅くし、送受信手段は、第1の伝送速度の信号を通過させ第2の伝送速度の信号を通過させない第1のローパスフィルタと、第1の伝送速度の信号および第2の伝送速度の信号をともに通過させる第2のローパスフィルタと、第2のローパスフィルタを通過した第1の伝送速度の信号および第2の伝送速度の信号のうち第1の伝送速度の信号についてはエラーチェックによりエラーを検出するエラーチェック手段とにより、第1の伝送速度と第2の伝送速度の違いによる受信データーの違いを区別することを特徴とするものである。
請求項の発明は、請求項1に記載のエンコーダ装置において、エンコーダ識別情報は、エンコーダ装置固有のエンコーダ識別コードあるいはエンコーダアドレスであることを特徴とするものである。
請求項の発明は、請求項または2に記載のエンコーダ装置において、エンコーダ装置の仕様は、エンコーダ装置の通信フォーマット、分解能、および、伝送速度の少なくとも1つを含むことを特徴とするものである。
請求項の発明は、ロボットシステムに適用され、複数のエンコーダ装置と、バス手段と、バス手段を介して複数のエンコーダ装置と接続され、複数のエンコーダ装置を制御するとともに複数のエンコーダ装置より位置情報に関するエンコーダデータを受信して所定のロボットに関する制御を行う制御手段とを備え、複数のエンコーダ装置の各エンコーダ装置は、固有のエンコーダ識別情報を格納するエンコーダ識別情報格納手段と、エンコーダ装置の動作環境を決定する仕様設定データを格納する仕様設定データ格納手段と、制御手段からエンコーダ識別情報格納手段に格納されているエンコーダ識別情報と同一のエンコーダ識別情報を受信したとき、制御手段から送信されたエンコーダ識別情報に付帯した仕様設定データを仕様設定データ格納手段に格納するよう処理する処理手段とを備え、制御手段は、任意のエンコーダ装置の仕様設定データを送信するとき、任意のエンコーダ装置のエンコーダ識別情報とともに任意のエンコーダ装置の仕様設定データをバスを介して複数のエンコーダ装置に送信し、制御手段が任意のエンコーダ装置のエンコーダ識別情報とともに任意のエンコーダ装置の仕様設定データをバスを介して複数のエンコーダ装置に送信するときの物理的な第1の伝送速度は、制御手段がエンコーダデータの送受信のときに複数のエンコーダ装置に送信するデータの物理的な第2の伝送速度よりも遅くし、複数のエンコーダ装置の各エンコーダ装置は、制御装置とシリアル通信によりデータを送受信する送受信手段をさらに備え、送受信手段は、第1の伝送速度の信号を通過させ第2の伝送速度の信号を通過させない第1のローパスフィルタと、第1の伝送速度の信号および第2の伝送速度の信号をともに通過させる第2のローパスフィルタと、第2のローパスフィルタを通過した第1の伝送速度の信号および第2の伝送速度の信号のうち第1の伝送速度の信号についてはエラーチェックによりエラーを検出するエラーチェック手段とにより、第1の伝送速度と第2の伝送速度の違いによる受信データーの違いを区別することを特徴とするものである。
請求項の発明は、請求項に記載のロボットシステムにおいて、エンコーダ識別情報は、エンコーダ装置固有のエンコーダ識別コードあるいはエンコーダアドレスであることを特徴とするものである。
請求項の発明は、請求項4または5に記載のロボットシステムにおいて、エンコーダ装置の仕様は、エンコーダ装置の通信フォーマット、分解能、および、伝送速度の少なくとも1つを含むことを特徴とするものである。
【0006】
【発明の実施の形態】
図1は、本実施の形態のエンコーダ装置の構成図を示す図である。発光部1からの光は、回転円板2のスリットを経て受光部3に入光する。受光部3からの出力信号は、波形整形回路4で波形整形されて信号処理部5に入力する。信号処理部5は、所定の演算処理を施し位置変位を検出する。回転円板2には微小なスリットが円周方向に形成され、回転により位置変位が生じると光を透過または遮光する。この光の変化を受光部3により検知し、波形整形回路4および信号処理部5を経て、位置変位を検出する。位置変位を検出する方法は、公知な内容である。
【0007】
信号処理部5は、所定の演算処理を施して検出した位置変位を、エンコーダ信号5aとして送受信ドライバ部6に送信する。送受信ドライバ部6は、エンコーダ信号5aをバス通信ライン8を介して外部コントローラ9へ出力する。また、信号処理部5は、外部コントローラ9よりバス通信ライン8を経て送受信ドライバ部6で受信されたコマンド信号6aを入力する。
【0008】
エンコーダ信号5aおよびコマンド信号6aは、デジタルデータでありシリアルデータによって構成される。信号処理部5において、エンコーダ信号5aの出力タイミングは、コマンド信号6aに対して同期(調歩同期)が取られている。_
【0009】
信号処理部5には、不揮発性メモリ7が接続される。不揮発性メモリ7内には、エンコーダアドレス7a、エンコーダ識別コード7b、各種モードデータ7cが保持されている。エンコーダアドレス7aは、バス通信ラインに接続されたn軸(n≧1の整数)のエンコーダ装置においてエンコーダ区分ENC1〜ENCnを自己認識するためのものである。また、エンコーダ識別コード7bは、例えば、エンコーダが取り付けられたモータ製品のラベル(銘板)などに記載されているモータの製造シリアル番号、またはエンコーダの製造シリアル番号などである。これらは、エンコーダ装置の外観から目視で識別可能な製品固有の番号であり、ロボットに取り付けられる前にあらかじめ設定されているものである。各種モードデータ7cについては、後述する。
【0010】
図2は、n軸(n≧1の整数)のエンコーダ装置ENC1〜ENCnと外部コントローラ9から構成されるロボット(ロボットシステム)の構成を示す図である。複数のエンコーダ装置ENC1〜ENCnは、ロボットのn軸を駆動する複数のモータ(不図示)にそれぞれ搭載され、各モータの回転位置変位を検出する。外部コントローラ部9は、エンコーダ装置ENC1〜ENCnから各モータの位置変位であるエンコーダ信号5a(エンコーダデータとも言う)を入力し、それらのデータに基づき各種のロボットに関する制御を行う。例えば、各モータを所定量回転する制御を行う。
【0011】
外部コントローラ部9とエンコーダ装置ENC1〜ENCnは、図2のようなバスライン構成をとっている。バス通信ライン8は、一対のSD+8aとSD−8bの差動伝送信号(RS485規格準拠)によって構成され、SD+8aとSD−8b間には終端抵抗10が接続される。また、外部コントローラ部9より一対の電源線VCCとGNDが各エンコーダに対し接続されている。すなわち、エンコーダ装置ENC1〜ENCnの電源は、外部コントローラ部9が供給する。
【0012】
本エンコーダ装置は、外部コントローラ部9との通信において、通常のエンコーダの位置情報を出力するエンコーダデータに関する通信方式の他に、エンコーダのモードデータ7cの読出し及び書込みが可能なモードデータに関する通信方式の2種類の通信方式を有している。モードデータ7cは、エンコーダ装置の通信フォーマット、分解能、伝送速度などのエンコーダ装置の性能・仕様を決定するデータである。モードデータ7cは、外部コントローラ部9から所定の値に設定可能である。モードデータ7cについては、後にさらに詳述する。
【0013】
両通信方式ともに、バス通信ライン8を介してシリアル伝送を行う。伝送速度は、両者の間で異なるように設定されている。本実施の形態においては、エンコーダデータの場合は2.5Mbps(又は4Mbps)の伝送速度、モードデータの場合は100Kbpsの伝送速度に設定される。シリアル伝送信号の周波数帯域を異ならせることにより、両者の間でシリアルデータを誤認識しないように構成すると同時に、エンコーダに重要なモードデータに関しては周波数帯域を下げることにより、外乱ノイズ等に対してより堅牢な構成をとっている。
【0014】
図3は、信号処理部5の内部構成を示すブロック図である。エンコーダデータ用通信回路101、モードデータ用通信回路102、エンコーダデータ計数演算部103、不揮発性メモリ用インターフェース部104とが設けられている。エンコーダデータ用通信回路101は、DLPF(デジタルローパスフィルタ)105、受信部106、送信部107、制御部108とから構成される。モードデータ用通信回路102は、DLPF(デジタルローパスフィルタ)109、受信部110、送信部111、制御部112とから構成される。エンコーダデータ用通信回路101の制御部108は、エンコーダデータ計数演算部103および不揮発性メモリ用インターフェース部104と接続されている。モードデータ用通信回路102の制御部112は、不揮発性メモリ用インターフェース部104と接続されている。
【0015】
DLPF109のカットオフ周波数は、例えば上述の2.5Mbpsのエンコーダデータ用コマンド信号は遮断し、100Kbpsモードデータ用コマンド信号は通過できるような値が設定されている。DLPF105のカットオフ周波数は、2.5Mbpsのエンコーダデータ用コマンド信号が通過できるような値が設定されている。従って、DLPF105のカットオフ周波数の方がDLPF109のカットオフ周波数より高い。
【0016】
このことは、モードデータ用通信回路102の受信部110では、エンコーダデータ用コマンド信号は除去されモードデータ用コマンド信号のみが入力されるが、エンコーダデータ用通信回路101の受信部106では、エンコーダデータ用コマンド信号およびモードデータ用コマンド信号の双方が入力される。しかし、両者の周波数が異なり、フレーム長が異なるため、受信部106では、モードデータ用のコマンド信号はフレミングエラー等として検出される。従って、エンコーダデータ用通信回路101の受信部106が、誤ってモードデータ用のコマンドを検出することはない。このような構成により、エンコーダデータ用コマンドとモードデータ用コマンドとの区別を行う。
【0017】
−エンコーダアドレスの設定−
次にエンコーダデータに関する通信方式を使用して、エンコーダ装置にエンコーダアドレスを設定する制御について説明する。ここでのコマンド信号6aは、エンコーダデータに関するコマンド信号であり、上述したように例えば2.5Mbpsのボーレートを有する。従って、図3のエンコーダデータ用通信回路101が、コマンド信号6aを検出し、解析し、各コマンドに応じた処理をする。
【0018】
図4は、このコマンド信号6aのフレームフォーマットの構成図である。外部コントローラ部9からのコマンド信号6aは、コマンドデータフレームCDF、メモリデータフレーム0MDF0、メモリデータフレーム1MDF1、メモリデータフレーム2MDF2の最大4つのフレームで構成される。各フレーム間はアイドルH状態を保つ。
【0019】
図5は、コマンドデータフレームの構成図である。図6は、メモリデータフレームの構成図である。各フレーム内にはフレーム毎に異なるフレームコード2ビット23が存在し、どのフレームかの識別が可能となっている。また、図5のコマンドデータフレーム内のコマンドコード21の種類によって、コマンドの機能、及びフレームの構成が異なっている。図7は、コマンドデータフレームのコマンドコード21の構成図である。図7において、通常のエンコーダデータのやり取りのコマンドの機能として、データ要求コマンド、クリア要求コマンド、メモリ読出要求コマンド、メモリ書込要求コマンドがある。その他の機能として、エンコーダアドレス設定Iコマンド21a、及びエンコーダアドレス設定IIコマンド21bがある。
【0020】
エンコーダアドレス設定Iコマンド21aは、1つのコマンドデータフレームによって構成された従来のエンコーダ装置で利用されているエンコーダアドレスの設定コマンドである。このコマンド信号21aを受信したエンコーダ装置は、不揮発性メモリ7に保持しているエンコーダアドレス7aを、図5のコマンドデータフレーム内で設定されるエンコーダアドレス20に書き換える。このエンコーダアドレス設定Iコマンド21aは、エンコーダアドレスでエンコーダ装置を選択することができないため、エンコーダ装置と1対1接続しているときに使用されるコマンドである。
【0021】
エンコーダアドレス設定IIコマンド21bは、図7に示すように、1つのコマンドデータフレームと3つのメモリデータフレームで構成されたエンコーダ装置に対するエンコーダアドレスの設定コマンドである。図8は、メモリデータフレームのフレームコード23およびデータビット22の構成図である。メモリデータフレームMDF0〜MDF2には、図8に示すように、各フレーム内のデータビットD0[0〜7]、D1[0〜7]、D2[0〜7]、合計24ビットに所定のエンコーダ識別コード(24ビット)22を設定する。
【0022】
バスライン接続されたエンコーダ装置ENC1〜ENCnは、このコマンド信号21bを受信すると、各々のエンコーダ装置は不揮発性メモリ7に保持しているエンコーダ識別コード7bと、メモリデータフレーム内で設定されたエンコーダ識別コード22とを比較する。比較の結果一致したエンコーダ装置のみが、自己のエンコーダ装置へのエンコーダアドレス設定IIコマンド21bであると認識し、不揮発性メモリ7に保持しているエンコーダアドレス7aを、図5のコマンドデータフレーム内で設定されたエンコーダアドレス20に書き換える。図9は、コマンドデータフレームのエンコーダアドレス20の構成図である。
【0023】
図10は、エンコーダ装置におけるエンコーダアドレス設定処理に関するフローチャートを示す図である。信号処理部5はASICで構成され、各回路はロジック回路で構成されている。図10のフローチャートは、ロジック回路の処理の流れを理解するために記載するものである。具体的には、エンコーダデータ用通信回路101の処理の流れである。
【0024】
外部コントローラ部9では、コントローラ制御パネル(不図示)等を通して、マニュアル操作により、エンコーダアドレスを設定したいエンコーダ装置のエンコーダ識別コードとエンコーダアドレスを設定して送信する。外部コントローラ部9は、エンコーダアドレスの送信指示がなされると、設定されたエンコーダ識別コードとエンコーダアドレスに基づきエンコーダアドレス設定IIコマンド21bを生成し、該コマンドをバス通信ライン8に送信する。このときの、通信速度は、前述のように2.5Mbpsに設定される。
【0025】
エンコーダ装置では、電源がオンされると、図10のステップS1において、初期化処理がなされる。ステップS2では、コマンド信号6aを受信したかどうかを判定する。受信したと判定すると、ステップS3に進み、受信していない場合はステップS2の判定を繰り返す。ステップS3では、コマンド信号6aのコマンドコードに基づきコマンドの種類を判定する。エンコーダアドレス設定IIコマンド21bであると判定するとステップS4に進む。ステップS4では、エンコーダアドレス設定IIコマンド21bのメモリデータフレームのデータビットに設定されたエンコーダ識別コードと不揮発性メモリ7に予め格納されているエンコーダ識別コードとが一致するかどうか判定する。ステップS4で一致しないと判定するとステップS2に戻り処理を繰り返す。ステップS4で一致すると判定するとステップS5に進む。
【0026】
ステップS5では、不揮発性メモリ用インターフェース部104を介して、不揮発性メモリ7に保持しているエンコーダアドレス7aを、図5のコマンドデータフレーム内で設定されたエンコーダアドレス20に書き換える。ステップS6では、外部コントローラ部9へのエンコーダ装置のステータス情報のデータ送信処理を行う。
【0027】
ステップS3で、コマンド信号6aがエンコーダアドレス設定Iコマンド21aであると判定するとステップS5に進む。この場合は、外部コントローラ部9あるいはそれに代わる装置とエンコーダ装置とが1対1接続されている場合である。ステップS3で、コマンド信号6aがデータ要求1コマンド、データ要求2コマンド等と判定するとそれぞれのコマンドに対応したエンコーダに関する処理を行う。このコマンドには、コマンドデータフレームにエンコーダアドレスが挿入されているため、不揮発性メモリ7に格納された自己のエンコーダアドレスと比較して、自己のエンコーダ装置へのコマンドであるかを認識する。自己のエンコーダ装置へのコマンドであると認識すると、各コマンドに基づく処理を行う。
【0028】
図11は、ロボットの組み立て時のエンコーダ装置の取り付け作業の流れについて説明するフローチャートである。ロボットは、複数のエンコーダ装置を取り付け、バス接続する。
【0029】
ステップS11では、取り付けるべきエンコーダ装置にエンコーダ識別コードを設定する。一般的には、エンコーダ識別コードは、エンコーダ装置の取り付け作業時よりも前の上流工程において、モータの容量、シリアル番号等が、エンコーダ識別コードとしてあらかじめエンコーダに設定されているため、この工程は必要ない。ステップS12において、ロボットの各軸にエンコーダ装置を取り付ける。取り付けた複数のエンコーダ装置はバスラインで接続される。ステップS13で、外部コントローラ部9に、特定軸に設置されたエンコーダ装置のエンコーダ識別コードを入力する。外部コントローラ部9では、ロボットの各軸に設置されたエンコーダ装置との関連付けをエンコーダ識別コードを用いて行っている。例えば、外部コントローラ部9の内部に関連付けのテーブルを持つ。
【0030】
ステップS14において、外部コントローラ部9から該エンコーダ装置に対して、所定のコマンド信号(エンコーダアドレス設定II)を送る。コマンド信号には、該エンコーダ装置のエンコーダ識別コードと、変更したいエンコーダアドレスが指定される。ステップS15では、該エンコーダ装置のエンコーダアドレスが正しく設定できているかどうかの確認をする。例えば、該エンコーダ装置とデータ通信が可能かどうかを確認する。取り付けた複数のエンコーダ装置すべてに対して、ステップS13〜S15を繰り返す。このようにして、エンコーダ装置の取り付け作業が完了する。
【0031】
−モードデータの設定−
次にモードデータに関する通信方式を使用して、エンコーダ装置にモードデータを設定する制御について説明する。ここでのコマンド信号6aは、モードデータに関するコマンド信号であり、上述したように例えば100Kbpsのボーレートを有する。従って、図3のモードデータ用通信回路102が、コマンド信号6aを検出し、解析し、各コマンドに応じた処理をする。
【0032】
図12は、モードデータ用コマンド信号6aのフレームフォーマットの構成図である。コマンド信号6aは、コマンドデータフレームCDF、メモリデータフレームMDF、メモリアドレスフレームMAFの3つのフレームで構成される。各フレーム間はアイドルH状態を保つ。
【0033】
図13は、コマンドデータフレームCDFの構成図である。図14は、メモリデータフレームの構成図である。図15は、メモリアドレスフレームの構成図である。各フレーム内にはフレーム毎に異なるフレームコード2ビット31が存在し、どのフレームかの識別が可能となっている。図16は、コマンドデータフレームのコマンドコード32の構成図である。図16において、コマンドデータフレーム内のコマンドコード32の種類によって、モードデータ読出コマンド、およびモードデータ書込コマンド32aなどがある。
【0034】
モードデータ書込コマンド32aは、コマンドデータフレーム、メモリデータフレーム、メモリアドレスフレームで構成された、エンコーダ装置に対するモードデータの設定コマンドである。コマンドデータフレーム内のエンコーダアドレス33のビットには、バスライン接続されたエンコーダ装置の中でモード設定の対象となるエンコーダのエンコーダ区分ENC1〜ENCn(図9)を指定する。
【0035】
メモリアドレスフレーム内のアドレスビット35およびメモリデータフレーム内のデータビット34には、エンコーダ装置の各種モードデータを格納している不揮発性メモリ7の、所定のモードデータに対応したEEPROMのアドレス(Da0〜Da7)と、そのアドレスへの書込データ(Dd0〜Dd7)を指定する。バスライン接続されたENC1〜ENCnのエンコーダ装置は、このコマンド信号32aを受信すると、各々のエンコーダ装置は不揮発性メモリ7に保持しているエンコーダアドレス7aと、コマンドデータフレーム内で指定されたエンコーダアドレス33とを比較する。比較の結果一致したエンコーダ装置のみが、メモリデータフレーム、メモリアドレスフレーム内で指定されたデータ及びアドレスに基づき、不揮発性メモリに保持している所定のモードデータを書き換える。
【0036】
バス通信ライン8に接続されたn軸(n≧1の整数)のエンコーダENC1〜ENCnに対して個別にモードデータを設定する場合、エンコーダ装置それぞれが保持している固有のエンコーダアドレス7aをコマンド信号のコマンドデータフレームで指定し、所定のモードデータをメモリデータフレーム、メモリアドレスフレームに指定する。これにより、バスライン接続された複数のエンコーダ装置のモードデータを自由に書き換えられることができる。
【0037】
図17は、エンコーダ装置におけるモードデータ設定処理に関するフローチャートを示す図である。信号処理部5はASICで構成され、各回路はロジック回路で構成されている。図17のフローチャートは、ロジック回路の処理の流れを理解するために記載するものである。具体的には、モードデータ用通信回路102の処理の流れである。
【0038】
外部コントローラ部9では、コントローラ制御パネル(不図示)等を通して、マニュアル操作により、モードデータ指示される。モードデータは、例えば、エンコーダ装置の通信フォーマットの種類、分解能、伝送速度などである。通信フォーマットの種類は、フレームのビット構成やビット数の違いによるものや、コマンド体系の違いによるものなどがある。すなわち、モードデータは、エンコーダ装置の性能や仕様を決定するデータである。エンコーダ装置の性能や仕様は、エンコーダ装置の動作環境を決定するものであり、代表してエンコーダ装置の仕様と言う。外部コントローラ部9は、指示されたモードデータに応じて、モードデータ書き込みコマンド32aを生成して、該コマンドをバス通信ライン8に送信する。このときの通信速度は、前述のように100Kbpsに設定される。
【0039】
エンコーダ装置では、電源がオンされると、図17のステップS21において、初期化処理がなされる。ステップS22では、コマンド信号6aを受信したかどうかを判定する。受信したと判定すると、ステップS23に進み、受信していない場合はステップS22の判定を繰り返す。ステップS23では、コマンド信号6aで指定されたエンコーダアドレスと不揮発性メモリ7に格納されているエンコーダアドレスとの一致不一致を判定する。不一致と判定するとステップS22に戻り処理を繰り返す。一致すると判定するとステップS24に進む。一致することは、自己のエンコーダ装置へのコマンドであると認識することである。
【0040】
ステップS24では、コマンド信号6aのコマンドコードに基づきコマンドの種類を判定する。モードデータ書き込みコマンド32aであると判定するとステップS25に進む。ステップS25では、モードデータ書き込みコマンド32aのメモリデータフレーム、メモリアドレスフレーム内で指定されたデータ及びアドレスに基づき、不揮発性メモリ7に保持している所定のモードデータを書き換える。
【0041】
ステップS24でモードデータ読み出しコマンドであると判定するとステップS26に進む。ステップS26では、モードデータ読み出しコマンドのメモリアドレスフレーム内で指定されたアドレスに基づき、不揮発性メモリ7に保持している所定のモードデータを読み出す。ステップS27では、読み出したモードデータの送信処理を行う。
【0042】
図18は、不揮発性メモリ7のモードデータ7cと信号処理部5の各機能ブロックとの関係を説明する図である。符号201は、不揮発性メモリ7内のモードデータ7cのアドレス0xFFに格納されたモードデータを示す。ビット0,1には分解能SRES202が格納される。ビット2,3には、伝送速度SBPS203が格納される。ビット4−7には、通信フォーマットSMFT204が格納される。アドレス0xFFは、図15のアドレスフレームのアドレスビット35により指定される。モードデータ201は、図14のデータフレームのデータビット34に対応する。
【0043】
レジスタ205は、信号処理部5に設けられたレジスタであり、モードデータ書き込みコマンド32aにより不揮発性メモリ7にモードデータが書き込まれると同時にこのレジスタ205にも書き込まれる。図17の初期化ステップS21においても、不揮発性メモリ7のモードデータ201がこのレジスタ205に書き込まれる。初期化するときには、不揮発性メモリ7内の他のモードデータも同様に信号処理部5内の対応するレジスタに書き込まれる。レジスタ205の分解能SRES206、伝送速度SBPS207、通信フォーマットSMFT208は、モードデータ201の分解能SRES202、伝送速度SBPS203、通信フォーマットSMFT204に対応する。
【0044】
本実施の形態では、通信フォーマットは例えば4種類設けられている。各通信フォーマットブロック209〜212は独立した回路として設けられ、セレクタ213により選択される。セレクタ213には、通信フォーマットSMFT208のビットデータが接続され、ビット構成に応じて通信フォーマットが選択される。各通信フォーマットブロック209〜212は、図3のエンコーダデータ用通信回路101に対応し、それぞれの通信フォーマットの種類に応じた図3のエンコーダデータ用通信回路101が4個あると考えればよい。
【0045】
通信フォーマットブロック209〜212には、伝送速度SBPS207のビットデータが接続され、シリアル通信の伝送速度を選択することができる。本実施の形態では、前述したように、2.5Mbpsと4Mbpsの2種類のボーレートが選択可能である。これは、エンコーダデータの伝送速度であり、モードデータの伝送速度は、上述の通り100Kbpsに固定されている。
【0046】
分解能SRES206のビットデータは、エンコーダデータ計数演算部103(図3)に接続される。本実施の形態の形態では、例えば17ビット分解能と20ビット分解能が選択可能である。図1の受光部3から波形整形回路4を経て信号処理部5に入力される擬似正弦波A相、B相の信号は、エンコーダデータ計数演算部103で、A/D変換、細分化処理(内挿処理)等を施されて、所定のビット数のエンコーダデータが生成される。このとき、分解能として17ビットデータとするか20ビットデータとするかを選択することが可能である。
【0047】
以上説明した本実施の形態のエンコーダ装置やロボットシステムでは、次のようなすぐれた効果を奏する。
(1)複数のn軸のエンコーダ装置がバスライン接続された状態において、各々のエンコーダ装置のエンコーダアドレスを任意に設定できるため、ロボットにエンコーダを取り付けた後に所定のエンコーダアドレスの設定ができる。これにより、ロボットへのエンコーダ装置の取り付け作業を従来よりも大幅に容易化することができる。その結果、ロボットを組み立てるときに、ロボットの組み立て作業が容易になる。
(2)このことは、複数のエンコーダ装置を取り替える場合にも有効である。複数のエンコーダ装置を取り替えた後に、各エンコーダ装置のエンコーダアドレスを後から任意に設定することができる。これにより、エンコーダ装置の取替え作業も容易になる。
(3)エンコーダ識別コードをエンコーダ装置を外部から目視により識別できるものとしているので、いつでもエンコーダ識別コードを確認することができる。これにより、どのようなエンコーダ識別コードをエンコーダ装置に格納したかを忘れてしまっても、すぐに確認することができる。すなわち、どのようなエンコーダ識別コードを格納したかを記憶したり記録したりする必要がない。
(4)エンコーダ識別コードを、例えばモータの製造シリアル番号やエンコーダ装置の製造シリアル番号とすることも可能である。これにより、モータの製造工場で、エンコーダ装置を取り付けたときなどに、エンコーダ識別コードを設定することができる。すなわち、エンコーダ装置が使用される工程にかかわらず、任意の工程で、特に上流の工程でエンコーダ識別コードを設定することができる。
(5)エンコーダ識別コードはモータの製造番号などを使用するため、実質的に重複がなく無制限の数が設定できる。上記実施の形態の例では、24ビットで指定できる数の組み合わせが可能となり、実質的に無制限である。一方、通常のエンコーダデータのやりとりに使用するエンコーダアドレスは、上記の実施の形態では3ビットしか使用していない。エンコーダアドレスの設定時のみ、長いビット数のエンコーダ識別コードを使用するが、その後の通常の処理では短いエンコーダアドレスを使用するので、長いビット数のエンコーダ識別コードはエンコーダ装置のスループットにはなんら影響をおよぼさない。
(6)複数のn軸のエンコーダがバスライン接続された状態において、各々のエンコーダのモードデータを任意に設定できる。このため、ロボット組み立て時にエンコーダ装置を取り付けた後に、あるいは、取替え時に取替用のエンコーダ装置を取り付けた後に所定の動作モードに設定変更できる。これにより、ロボットへのエンコーダ取り付け作業や取替作業を従来よりも大幅に容易化することができる。
(7)ロボットに取り付ける前に、エンコーダ装置の仕様を確定する必要がない。
(8)ロボット完成状態においても本発明のモード設定を利用することにより、ロボットの分離・解体することなくエンコーダの性能・仕様を変更することが可能となる。
(9)本エンコーダ装置は、外部コントローラ部9との通信において、通信速度の速い通常のエンコーダの位置情報を出力するエンコーダデータに関する通信方式と、通信速度の遅いモードデータに関する通信方式の2種類の通信方式を採用している。これにより、通常の処理は高速に行うことが可能になり、モードデータの設定という重要な処理については、ノイズの影響を受けない信頼性の高い処理が可能となる。
(10)上記2つの通信方式の区別は、フィルター等の簡易な回路で行っているので、コストアップやエンコーダ装置が大きくなるというような問題が生じない。
【0048】
上記実施の形態では、モータの回転位置を求めるエンコーダ装置の例を説明したが、必ずしもこの内容に限定する必要はない。直線位置を求めるエンコーダ装置であってもよい。すなわち、あらゆるエンコーダ装置およびそのエンコーダ装置を使用するロボットシステムに適用することができる。
【0049】
上記実施の形態では、信号処理部5の内部にデジタルフィルタを使用する例を説明したが、必ずしもこの内容に限定する必要はない。アナログフィルタであってもよい。
【0050】
上記実施の形態では、信号処理部5はASICによるロジック回路の例を説明したが、必ずしもこの内容に限定する必要はない。マイクロCPUなどを使用したものであってもよい。その場合、前述した図10や図17の処理が、プログラムにより実行される。
【0051】
上記実施の形態では、シリアルラインのバス接続の例を説明したが、必ずしもこの内容に限定する必要はない。複数のラインからなるパラレルラインのバスであってもよい。また、デージーチェーンなどの接続も、本実施の形態では、バス接続とみなす。
【0052】
上記実施の形態では、エンコーダ識別コードとしてモータの製造シリアル番号またはエンコーダの製造シリアル番号などの例を説明したが、必ずしもこの内容に限定する必要はない。複数のエンコーダ装置をそれぞれ特定できる固有のものであればどのようなものでもよい。この場合、複数のモータやエンコーダ装置が外観から目視で区別して識別できる情報であればより好ましい。
【0053】
上記実施の形態では、モードデータとして、通信フォーマットの種類、分解能、伝送速度などの例を説明したが、本発明はこれらの内容に限定されるものではない。例えば、オーバースピード検出速度を選択するようにしてもよい。また、温度異常を出力するかしないかを選択するようにしてもよい。すなわち、エンコーダ装置の性能・仕様を決定するデータであればどのようなものでもよい。通信フォーマットの種類についても、フレームのビット構成やビット数の違いによるものや、コマンド体系の違いによるもを例として説明したが、その他の違いによるものであってもよい。通信フォーマットは、通信プロトコルを含む概念である。
【0054】
上記実施の形態では、通信フォーマットは4種類、エンコーダデータの伝送速度は2.5Mbpsと4Mbpsの2種類、分解能は17ビット分解能と20ビット分解能の2種類の例を説明したが、必ずしもこの内容に限定する必要はない。通信フォーマットの種類の数は5個以上であってもよいし、4個未満であってもよい。エンコーダデータの伝送速度は3種類以上であってもよいし、その他の伝送速度の値であってもよい。分解能も3種類以上であってもよいし、分解能ビット数もその他の値であってもよい。
【0055】
上記実施の形態では、エンコーダ装置と外部コントローラ部9との通信において、通信速度(伝送速度)の速い通常のエンコーダの位置情報を出力するエンコーダデータに関する通信方式と、通信速度の遅いモードデータに関する通信方式の2種類の通信方式を採用する例を説明した。このような内容は、必ずしもエンコーダ装置やロボットシステムにおける応用に限定する必要はない。他のシステムにも適用することは可能である。すなわち、バスを介して接続される複数の装置が接続されるシステムにおいて、通常のデータのやり取りは速い伝送速度の通信で行い、各装置の仕様の設定のような大事なデータのやり取りは遅い伝送速度の通信で行う。これにより、通常の処理は高速に行うことが可能になり、仕様の設定という重要な処理については、ノイズの影響を受けない信頼性の高い処理が可能となる。
【0056】
上記実施の形態では、エンコーダアドレスで対象エンコーダ装置を特定し、モードデータを送信する例を説明したが、必ずしもこの内容に限定する必要はない。例えば、エンコーダアドレスの設定に使用したエンコーダ識別コードを使用して対象エンコーダ装置を特定し、モードデータを送信するようにしてもよい。すなわち、バス接続された複数のエンコーダ装置の中から任意のエンコーダ装置を特定あるいは識別できる情報であればどのようなものでもよい。
【0057】
上記実施の形態では、種々の実施の形態および変形例を説明したが、本発明はこれらの内容に限定されるものではない。本発明の技術的思想の範囲内で考えられるその他の態様も本発明の範囲内に含まれる。
【0058】
【発明の効果】
本発明は、以上説明したように構成しているので、次のような効果を奏する。複数のエンコーダ装置がバスライン接続された状態において、各々のエンコーダ装置のモードデータを任意に設定できる。このため、ロボット組み立て時にエンコーダ装置を取り付けた後に、あるいは、取替え時に取替用のエンコーダ装置を取り付けた後に所定の動作モードに設定変更できる。これにより、ロボットへのエンコーダ取り付け作業や取替作業を従来よりも大幅に容易化することができる。
【図面の簡単な説明】
【図1】本実施の形態のエンコーダ装置の構成図を示す図である。
【図2】n軸のエンコーダ装置と外部コントローラから構成されるロボットの構成を示す図である。
【図3】信号処理部の内部構成を示すブロック図である。
【図4】コマンド信号のフレームフォーマットの構成図である。
【図5】コマンドデータフレームの構成図である。
【図6】メモリデータフレームの構成図である。
【図7】コマンドデータフレームのコマンドコードの構成図である。
【図8】メモリデータフレームのフレームコードおよびデータビットの構成図である。
【図9】コマンドデータフレームのエンコーダアドレスの構成図である。
【図10】エンコーダ装置におけるエンコーダアドレス設定処理に関するフローチャートを示す図である。
【図11】ロボットのエンコーダ装置の取替作業の流れについて説明するフローチャートである。
【図12】モードデータ用コマンド信号のフレームフォーマットの構成図である。
【図13】コマンドデータフレームの構成図である。
【図14】メモリデータフレームの構成図である。
【図15】メモリアドレスフレームの構成図である。
【図16】コマンドデータフレームのコマンドコード32の構成図である。
【図17】エンコーダ装置におけるモードデータ設定処理に関するフローチャートを示す図である。
【図18】不揮発性メモリのモードデータと信号処理部の各機能ブロックとの関係を説明する図である。
【符号の説明】
1 発光部
2 回転円板
3 受光部
4 波形整形回路
5 信号処理部
5a エンコーダ信号
6 送受信ドライバ部
6a コマンド信号
7 不揮発性メモリ
8 バス通信ライン
9 外部コントローラ
10 終端抵抗
ENC1〜ENCn エンコーダ装置
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an encoder device used for a robot or the like.
[0002]
[Prior art]
The robot is controlled by mounting a plurality of motors and a plurality of encoder devices on a plurality of axes, respectively. There has also been proposed an encoder device in which an electrically rewritable ROM is provided in the encoder device and data relating to performance such as resolution and communication method can be written from an external device (see, for example, Patent Document 1).
[0003]
[Patent Document 1]
JP-A-11-304536
[Problems to be solved by the invention]
However, in an encoder device capable of writing data related to performance (specifications) such as the resolution and communication method described above from an external device, one encoder device to which data is to be written is specified from a plurality of encoder devices connected to the external device. Can not do it. For example, setting data relating to performance such as resolution and communication method of one encoder device cannot be written from the outside in a state where a plurality of encoder devices in a robot are connected by a bus.
[0004]
The present invention provides an encoder device capable of easily setting the specifications of a plurality of encoder devices connected by a bus, and a robot system using the encoder device.
[0005]
[Means for Solving the Problems]
Claim 1 The invention is applied to an encoder device, and includes an encoder identification information storage means for storing unique encoder identification information, specification setting data storage means for storing specification setting data for determining an operating environment of the encoder device, and an encoder from an external device When the same encoder identification information as the encoder identification information stored in the identification information storage means is received, the specification setting data attached to the encoder identification information transmitted from the external device is processed to be stored in the specification setting data storage means Processing means, and transmission / reception means for transmitting and receiving data to and from an external device by serial communication,
When the transmission / reception means receives specification setting data together with encoder identification information from an external device, First The transmission speed is determined by physical transmission / reception means for transmitting / receiving encoder data related to the position information of the encoder device with the external device. Second The transmission / reception means is slower than the transmission speed. The first transmission rate signal is allowed to pass, and the second transmission rate signal is not allowed to pass. A low-pass filter, A second low-pass filter that passes both the first transmission rate signal and the second transmission rate signal, and the first transmission rate signal and the second transmission rate signal that have passed through the second low-pass filter. Among them, the first transmission rate signal is detected by error checking. With error checking means, First Transmission speed And the second transmission rate It is characterized by distinguishing the difference of received data due to the difference of.
Claim 2 In the encoder apparatus according to claim 1, the encoder identification information is an encoder identification code or an encoder address unique to the encoder apparatus.
Claim 3 The invention of claim Or 2 In the encoder device described in (1), the specification of the encoder device includes at least one of the communication format, resolution, and transmission speed of the encoder device.
Claim 4 The present invention is applied to a robot system, and is connected to a plurality of encoder devices, bus means, and a plurality of encoder devices via the bus means, and controls a plurality of encoder devices and an encoder related to position information from the plurality of encoder devices. Control means for receiving data and performing control related to a predetermined robot, and each encoder device of the plurality of encoder devices determines an encoder identification information storage means for storing unique encoder identification information, and an operating environment of the encoder device Specification setting data storage means for storing specification setting data to be transmitted, and encoder identification information transmitted from the control means when receiving the same encoder identification information as the encoder identification information stored in the encoder identification information storage means from the control means The specification setting data stored in the And processing means for processing to store the specification setting data of an arbitrary encoder device together with the encoder identification information of the arbitrary encoder device via the bus. And when the control means transmits the specification setting data of the arbitrary encoder device together with the encoder identification information of the arbitrary encoder device to the plurality of encoder devices via the bus. First The transmission speed is the physical rate of data transmitted to the plurality of encoder devices when the control means transmits / receives encoder data. Second Each encoder device of the plurality of encoder devices is further provided with a transmission / reception means for transmitting / receiving data by serial communication with the control device, the transmission / reception means, The first transmission rate signal is allowed to pass, and the second transmission rate signal is not allowed to pass. A low-pass filter, A second low-pass filter that passes both the first transmission rate signal and the second transmission rate signal, and the first transmission rate signal and the second transmission rate signal that have passed through the second low-pass filter. Among them, the first transmission rate signal is detected by error checking. With error checking means, First Transmission speed And the second transmission rate It is characterized by distinguishing the difference of received data due to the difference of.
Claim 5 The invention of claim 4 In the robot system described in (1), the encoder identification information is an encoder identification code or an encoder address unique to the encoder device.
Claim 6 The invention of claim 4 or 5 In the robot system described in (1), the specification of the encoder device includes at least one of the communication format, resolution, and transmission speed of the encoder device.
[0006]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a diagram showing a configuration diagram of an encoder apparatus according to the present embodiment. The light from the light emitting unit 1 enters the light receiving unit 3 through the slit of the rotating disk 2. The output signal from the light receiving unit 3 is subjected to waveform shaping by the waveform shaping circuit 4 and input to the signal processing unit 5. The signal processing unit 5 performs a predetermined calculation process and detects a position displacement. A minute slit is formed in the circumferential direction in the rotating disk 2, and light is transmitted or shielded when a positional displacement occurs due to the rotation. This light change is detected by the light receiving unit 3, and the position displacement is detected through the waveform shaping circuit 4 and the signal processing unit 5. The method for detecting the position displacement is a known content.
[0007]
The signal processing unit 5 transmits the position displacement detected by performing predetermined arithmetic processing to the transmission / reception driver unit 6 as an encoder signal 5a. The transmission / reception driver unit 6 outputs the encoder signal 5 a to the external controller 9 via the bus communication line 8. The signal processing unit 5 also receives a command signal 6 a received by the transmission / reception driver unit 6 from the external controller 9 via the bus communication line 8.
[0008]
The encoder signal 5a and the command signal 6a are digital data and are constituted by serial data. In the signal processor 5, the output timing of the encoder signal 5a is synchronized (start-stop synchronization) with the command signal 6a. _
[0009]
A non-volatile memory 7 is connected to the signal processing unit 5. In the nonvolatile memory 7, an encoder address 7a, an encoder identification code 7b, and various mode data 7c are held. The encoder address 7a is for self-recognizing the encoder sections ENC1 to ENCn in the n-axis (n ≧ 1 integer) encoder device connected to the bus communication line. The encoder identification code 7b is, for example, a motor manufacturing serial number or an encoder manufacturing serial number described on a label (name plate) of a motor product to which the encoder is attached. These are product-specific numbers that can be visually identified from the appearance of the encoder device, and are set in advance before being attached to the robot. Various mode data 7c will be described later.
[0010]
FIG. 2 is a diagram showing a configuration of a robot (robot system) including n-axis (n ≧ 1 integer) encoder devices ENC1 to ENCn and an external controller 9. The plurality of encoder devices ENC1 to ENCn are mounted on a plurality of motors (not shown) that drive the n-axis of the robot, and detect the rotational position displacement of each motor. The external controller unit 9 receives an encoder signal 5a (also referred to as encoder data) that is a position displacement of each motor from the encoder devices ENC1 to ENCn, and performs control related to various robots based on the data. For example, control for rotating each motor by a predetermined amount is performed.
[0011]
The external controller unit 9 and the encoder devices ENC1 to ENCn have a bus line configuration as shown in FIG. The bus communication line 8 is constituted by a pair of SD + 8a and SD-8b differential transmission signals (RS485 standard compliant), and a termination resistor 10 is connected between SD + 8a and SD-8b. A pair of power supply lines VCC and GND are connected to each encoder from the external controller unit 9. That is, the external controller unit 9 supplies power to the encoder devices ENC1 to ENCn.
[0012]
In the communication with the external controller unit 9, this encoder apparatus has a communication method related to mode data that can read and write encoder mode data 7 c in addition to a communication method related to encoder data that outputs position information of a normal encoder. There are two types of communication methods. The mode data 7c is data that determines the performance and specifications of the encoder device such as the communication format, resolution, and transmission speed of the encoder device. The mode data 7c can be set to a predetermined value from the external controller unit 9. The mode data 7c will be described in detail later.
[0013]
In both communication methods, serial transmission is performed via the bus communication line 8. The transmission rate is set to be different between the two. In the present embodiment, a transmission rate of 2.5 Mbps (or 4 Mbps) is set for encoder data, and a transmission rate of 100 Kbps is set for mode data. By making the frequency band of the serial transmission signal different, it is configured so that serial data is not misrecognized between the two, and at the same time, by reducing the frequency band for mode data important for the encoder, it is more effective against disturbance noise etc. It has a robust configuration.
[0014]
FIG. 3 is a block diagram showing an internal configuration of the signal processing unit 5. An encoder data communication circuit 101, a mode data communication circuit 102, an encoder data count calculation unit 103, and a nonvolatile memory interface unit 104 are provided. The encoder data communication circuit 101 includes a DLPF (digital low-pass filter) 105, a reception unit 106, a transmission unit 107, and a control unit 108. The mode data communication circuit 102 includes a DLPF (digital low-pass filter) 109, a reception unit 110, a transmission unit 111, and a control unit 112. The control unit 108 of the encoder data communication circuit 101 is connected to the encoder data count calculation unit 103 and the nonvolatile memory interface unit 104. The control unit 112 of the mode data communication circuit 102 is connected to the nonvolatile memory interface unit 104.
[0015]
The cutoff frequency of the DLPF 109 is set such that, for example, the above-mentioned 2.5 Mbps encoder data command signal is cut off and the 100 Kbps mode data command signal can pass. The cutoff frequency of the DLPF 105 is set to a value that allows a 2.5 Mbps encoder data command signal to pass through. Therefore, the cutoff frequency of the DLPF 105 is higher than the cutoff frequency of the DLPF 109.
[0016]
This is because, in the receiving unit 110 of the mode data communication circuit 102, the encoder data command signal is removed and only the mode data command signal is input, but in the receiving unit 106 of the encoder data communication circuit 101, the encoder data Both the command signal for mode and the command signal for mode data are input. However, since both frequencies are different and the frame lengths are different, the reception unit 106 detects a command signal for mode data as a framing error or the like. Therefore, the receiving unit 106 of the encoder data communication circuit 101 does not erroneously detect a mode data command. With such a configuration, the encoder data command and the mode data command are distinguished.
[0017]
−Encoder address setting−
Next, control for setting an encoder address in the encoder apparatus using a communication system related to encoder data will be described. The command signal 6a here is a command signal related to encoder data, and has a baud rate of 2.5 Mbps, for example, as described above. Therefore, the encoder data communication circuit 101 in FIG. 3 detects and analyzes the command signal 6a, and performs processing according to each command.
[0018]
FIG. 4 is a configuration diagram of the frame format of the command signal 6a. The command signal 6a from the external controller unit 9 is composed of a maximum of four frames: a command data frame CDF, a memory data frame 0MDF0, a memory data frame 1MDF1, and a memory data frame 2MDF2. The idle H state is maintained between frames.
[0019]
FIG. 5 is a configuration diagram of a command data frame. FIG. 6 is a configuration diagram of a memory data frame. Within each frame, there is a different frame code 2 bit 23 for each frame, and it is possible to identify which frame. Further, the function of the command and the structure of the frame differ depending on the type of the command code 21 in the command data frame of FIG. FIG. 7 is a configuration diagram of the command code 21 of the command data frame. In FIG. 7, there are a data request command, a clear request command, a memory read request command, and a memory write request command as functions of normal encoder data exchange commands. Other functions include an encoder address setting I command 21a and an encoder address setting II command 21b.
[0020]
The encoder address setting I command 21a is an encoder address setting command used in a conventional encoder device configured by one command data frame. The encoder apparatus that has received the command signal 21a rewrites the encoder address 7a held in the nonvolatile memory 7 to the encoder address 20 set in the command data frame of FIG. The encoder address setting I command 21a is a command used when a one-to-one connection is made with the encoder device because the encoder device cannot be selected by the encoder address.
[0021]
As shown in FIG. 7, the encoder address setting II command 21b is an encoder address setting command for an encoder device composed of one command data frame and three memory data frames. FIG. 8 is a configuration diagram of the frame code 23 and the data bit 22 of the memory data frame. As shown in FIG. 8, the memory data frames MDF0 to MDF2 include data bits D0 [0 to 7], D1 [0 to 7], and D2 [0 to 7] in each frame. An identification code (24 bits) 22 is set.
[0022]
When the encoder devices ENC1 to ENCn connected to the bus line receive this command signal 21b, each encoder device has an encoder identification code 7b held in the nonvolatile memory 7 and an encoder identification set in the memory data frame. The code 22 is compared. Only the encoder device that matches as a result of the comparison recognizes that it is the encoder address setting II command 21b to its own encoder device, and the encoder address 7a held in the nonvolatile memory 7 is included in the command data frame of FIG. Rewrite to the set encoder address 20. FIG. 9 is a configuration diagram of the encoder address 20 of the command data frame.
[0023]
FIG. 10 is a flowchart illustrating an encoder address setting process in the encoder device. The signal processing unit 5 is configured by an ASIC, and each circuit is configured by a logic circuit. The flowchart in FIG. 10 is described for understanding the flow of processing of the logic circuit. Specifically, this is a processing flow of the encoder data communication circuit 101.
[0024]
The external controller unit 9 sets and transmits an encoder identification code and an encoder address of an encoder apparatus for which an encoder address is desired to be set manually through a controller control panel (not shown) or the like. When the external controller unit 9 is instructed to transmit an encoder address, the external controller unit 9 generates an encoder address setting II command 21b based on the set encoder identification code and encoder address, and transmits the command to the bus communication line 8. The communication speed at this time is set to 2.5 Mbps as described above.
[0025]
In the encoder device, when the power is turned on, an initialization process is performed in step S1 of FIG. In step S2, it is determined whether the command signal 6a has been received. If it determines with having received, it will progress to step S3, and when not having received, determination of step S2 is repeated. In step S3, the command type is determined based on the command code of the command signal 6a. If it is determined that the encoder address setting II command 21b, the process proceeds to step S4. In step S4, it is determined whether the encoder identification code set in the data bit of the memory data frame of the encoder address setting II command 21b matches the encoder identification code stored in advance in the nonvolatile memory 7. If it is determined in step S4 that they do not match, the process returns to step S2 and is repeated. If it is determined in step S4 that they match, the process proceeds to step S5.
[0026]
In step S5, the encoder address 7a held in the nonvolatile memory 7 is rewritten to the encoder address 20 set in the command data frame of FIG. 5 via the nonvolatile memory interface unit 104. In step S6, data transmission processing of the status information of the encoder device to the external controller unit 9 is performed.
[0027]
If it is determined in step S3 that the command signal 6a is the encoder address setting I command 21a, the process proceeds to step S5. In this case, the external controller unit 9 or a device instead thereof and the encoder device are connected on a one-to-one basis. If it is determined in step S3 that the command signal 6a is a data request 1 command, a data request 2 command, etc., processing relating to the encoder corresponding to each command is performed. Since this command has an encoder address inserted in the command data frame, it is compared with its own encoder address stored in the nonvolatile memory 7 to recognize whether it is a command to its own encoder device. When it is recognized that the command is for its own encoder device, processing based on each command is performed.
[0028]
FIG. 11 is a flowchart for explaining the flow of attachment work of the encoder device during assembly of the robot. The robot attaches a plurality of encoder devices and makes a bus connection.
[0029]
In step S11, an encoder identification code is set in the encoder device to be attached. Generally, the encoder identification code is necessary because the motor capacity, serial number, etc. are set in the encoder in advance as the encoder identification code in the upstream process prior to the installation work of the encoder device. Absent. In step S12, an encoder device is attached to each axis of the robot. The plurality of attached encoder devices are connected by a bus line. In step S13, the encoder identification code of the encoder device installed on the specific axis is input to the external controller unit 9. The external controller unit 9 uses an encoder identification code to associate with an encoder device installed on each axis of the robot. For example, the external controller unit 9 has an association table.
[0030]
In step S14, a predetermined command signal (encoder address setting II) is sent from the external controller unit 9 to the encoder device. In the command signal, an encoder identification code of the encoder device and an encoder address to be changed are designated. In step S15, it is confirmed whether the encoder address of the encoder device has been set correctly. For example, it is confirmed whether data communication with the encoder device is possible. Steps S13 to S15 are repeated for all the attached encoder devices. In this way, the installation work of the encoder device is completed.
[0031]
-Mode data setting-
Next, control for setting mode data in the encoder apparatus using a communication method related to mode data will be described. The command signal 6a here is a command signal related to mode data, and has a baud rate of 100 Kbps, for example, as described above. Therefore, the mode data communication circuit 102 in FIG. 3 detects and analyzes the command signal 6a, and performs processing according to each command.
[0032]
FIG. 12 is a configuration diagram of a frame format of the mode data command signal 6a. The command signal 6a is composed of three frames: a command data frame CDF, a memory data frame MDF, and a memory address frame MAF. The idle H state is maintained between frames.
[0033]
FIG. 13 is a configuration diagram of the command data frame CDF. FIG. 14 is a configuration diagram of a memory data frame. FIG. 15 is a configuration diagram of a memory address frame. In each frame, there is a frame code 2 bit 31 which is different for each frame, and it is possible to identify which frame. FIG. 16 is a configuration diagram of the command code 32 of the command data frame. In FIG. 16, there are a mode data read command and a mode data write command 32a depending on the type of command code 32 in the command data frame.
[0034]
The mode data write command 32a is a mode data setting command for the encoder device, which is composed of a command data frame, a memory data frame, and a memory address frame. In the bit of the encoder address 33 in the command data frame, the encoder classifications ENC1 to ENCn (FIG. 9) of the encoder that is the target of mode setting in the encoder devices connected to the bus line are designated.
[0035]
In the address bit 35 in the memory address frame and the data bit 34 in the memory data frame, the EEPROM address (Da0 to Da0) corresponding to the predetermined mode data in the non-volatile memory 7 storing various mode data of the encoder device. Da7) and write data (Dd0 to Dd7) to the address are designated. When the encoder devices ENC1 to ENCn connected to the bus line receive this command signal 32a, each encoder device stores the encoder address 7a held in the nonvolatile memory 7 and the encoder address specified in the command data frame. 33 is compared. Only the encoder device that matches as a result of the comparison rewrites the predetermined mode data held in the nonvolatile memory based on the data and address specified in the memory data frame and the memory address frame.
[0036]
When mode data is individually set for the n-axis (n ≧ 1) encoders ENC1 to ENCn connected to the bus communication line 8, a unique encoder address 7a held by each encoder device is used as a command signal. The command data frame is specified, and predetermined mode data is specified for the memory data frame and the memory address frame. Thereby, the mode data of a plurality of encoder devices connected to the bus line can be freely rewritten.
[0037]
FIG. 17 is a flowchart illustrating mode data setting processing in the encoder device. The signal processing unit 5 is configured by an ASIC, and each circuit is configured by a logic circuit. The flowchart in FIG. 17 is described for understanding the flow of processing of the logic circuit. Specifically, this is a process flow of the mode data communication circuit 102.
[0038]
In the external controller unit 9, mode data is instructed by manual operation through a controller control panel (not shown) or the like. The mode data is, for example, the type of communication format of the encoder device, resolution, transmission speed, and the like. There are various types of communication formats, such as those due to differences in the bit configuration and number of bits of the frame, and those due to differences in command systems. That is, the mode data is data that determines the performance and specifications of the encoder device. The performance and specifications of the encoder device determine the operating environment of the encoder device and are typically referred to as the specifications of the encoder device. The external controller unit 9 generates a mode data write command 32a according to the instructed mode data and transmits the command to the bus communication line 8. The communication speed at this time is set to 100 Kbps as described above.
[0039]
In the encoder device, when the power is turned on, initialization processing is performed in step S21 of FIG. In step S22, it is determined whether the command signal 6a has been received. If it determines with having received, it will progress to step S23, and when not having received, determination of step S22 is repeated. In step S23, it is determined whether or not the encoder address specified by the command signal 6a matches the encoder address stored in the nonvolatile memory 7. If it is determined that there is a mismatch, the process returns to step S22 to repeat the process. If it is determined that they match, the process proceeds to step S24. The coincidence means recognizing that it is a command to its own encoder device.
[0040]
In step S24, the command type is determined based on the command code of the command signal 6a. If it is determined that the command is the mode data write command 32a, the process proceeds to step S25. In step S25, the predetermined mode data held in the nonvolatile memory 7 is rewritten based on the data and address specified in the memory data frame and memory address frame of the mode data write command 32a.
[0041]
If it is determined in step S24 that the command is a mode data read command, the process proceeds to step S26. In step S26, predetermined mode data held in the nonvolatile memory 7 is read based on the address specified in the memory address frame of the mode data read command. In step S27, the read mode data is transmitted.
[0042]
FIG. 18 is a diagram for explaining the relationship between the mode data 7 c of the nonvolatile memory 7 and each functional block of the signal processing unit 5. Reference numeral 201 indicates mode data stored at address 0xFF of the mode data 7 c in the nonvolatile memory 7. Bits 0 and 1 store resolution SRES202. Bits 2 and 3 store the transmission rate SBPS 203. Bits 4-7 store the communication format SMFT204. The address 0xFF is specified by the address bit 35 of the address frame in FIG. Mode data 201 corresponds to data bit 34 of the data frame of FIG.
[0043]
The register 205 is a register provided in the signal processing unit 5, and the mode data is written into the nonvolatile memory 7 at the same time as the mode data write command 32 a is written into the register 205. Also in the initialization step S21 of FIG. 17, the mode data 201 of the nonvolatile memory 7 is written into the register 205. When the initialization is performed, the other mode data in the nonvolatile memory 7 is similarly written in the corresponding register in the signal processing unit 5. The resolution SRES 206, transmission rate SBPS 207, and communication format SMFT 208 of the register 205 correspond to the resolution SRES 202, transmission rate SBPS 203, and communication format SMFT 204 of the mode data 201.
[0044]
In the present embodiment, for example, four types of communication formats are provided. Each communication format block 209 to 212 is provided as an independent circuit and is selected by the selector 213. The selector 213 is connected to bit data of the communication format SMFT 208, and the communication format is selected according to the bit configuration. Each of the communication format blocks 209 to 212 corresponds to the encoder data communication circuit 101 of FIG. 3, and it can be considered that there are four encoder data communication circuits 101 of FIG. 3 corresponding to the type of each communication format.
[0045]
The communication format blocks 209 to 212 are connected to bit data of the transmission speed SBPS 207, and the transmission speed of serial communication can be selected. In the present embodiment, as described above, two types of baud rates of 2.5 Mbps and 4 Mbps can be selected. This is the encoder data transmission rate, and the mode data transmission rate is fixed at 100 Kbps as described above.
[0046]
The bit data of the resolution SRES 206 is connected to the encoder data count calculation unit 103 (FIG. 3). In the present embodiment, for example, 17-bit resolution and 20-bit resolution can be selected. The pseudo sine wave A-phase and B-phase signals input from the light receiving unit 3 of FIG. 1 to the signal processing unit 5 via the waveform shaping circuit 4 are A / D converted and subdivided ( The encoder data having a predetermined number of bits is generated. At this time, it is possible to select whether the resolution is 17-bit data or 20-bit data.
[0047]
The encoder apparatus and robot system of the present embodiment described above have the following excellent effects.
(1) In a state where a plurality of n-axis encoder devices are connected via a bus line, the encoder address of each encoder device can be arbitrarily set. Therefore, a predetermined encoder address can be set after the encoder is attached to the robot. Thereby, the attachment work of the encoder device to the robot can be greatly facilitated as compared with the prior art. As a result, when the robot is assembled, the assembly work of the robot becomes easy.
(2) This is also effective when replacing a plurality of encoder devices. After replacing a plurality of encoder devices, the encoder address of each encoder device can be arbitrarily set later. Thereby, the replacement | exchange work of an encoder apparatus becomes easy.
(3) Since the encoder identification code can be visually identified from the outside, the encoder identification code can be confirmed at any time. Thereby, even if the encoder identification code stored in the encoder device is forgotten, it can be confirmed immediately. That is, it is not necessary to store or record what encoder identification code is stored.
(4) The encoder identification code may be, for example, a motor manufacturing serial number or an encoder device manufacturing serial number. Thus, the encoder identification code can be set when the encoder device is attached at the motor manufacturing factory. That is, regardless of the process in which the encoder device is used, the encoder identification code can be set in any process, particularly in the upstream process.
(5) Since the motor identification number is used as the encoder identification code, an unlimited number can be set without substantial overlap. In the example of the above embodiment, combinations of numbers that can be specified by 24 bits are possible, and the number is virtually unlimited. On the other hand, the encoder address used for the exchange of normal encoder data uses only 3 bits in the above embodiment. The encoder identification code with a long bit number is used only when the encoder address is set, but the short encoder address is used in the subsequent normal processing, so the encoder identification code with a long bit number has no effect on the throughput of the encoder device. Does not affect.
(6) In a state where a plurality of n-axis encoders are connected via a bus line, mode data of each encoder can be arbitrarily set. For this reason, the setting can be changed to a predetermined operation mode after the encoder device is attached at the time of assembling the robot or after the replacement encoder device is attached at the time of replacement. As a result, it is possible to greatly facilitate the work of attaching or replacing the encoder to the robot as compared with the conventional case.
(7) It is not necessary to determine the specifications of the encoder device before attaching to the robot.
(8) By using the mode setting of the present invention even when the robot is completed, it is possible to change the performance and specifications of the encoder without separating and dismantling the robot.
(9) In the communication with the external controller unit 9, the encoder apparatus has two types of communication methods relating to encoder data for outputting position information of a normal encoder having a high communication speed and communication methods relating to mode data having a low communication speed. A communication system is adopted. As a result, normal processing can be performed at high speed, and important processing such as mode data setting can be performed with high reliability without being affected by noise.
(10) Since the two communication methods are distinguished by a simple circuit such as a filter, problems such as an increase in cost and an increase in the encoder device do not occur.
[0048]
In the above embodiment, an example of an encoder device that obtains the rotational position of a motor has been described. However, the present invention is not necessarily limited to this content. It may be an encoder device for obtaining a linear position. That is, it can be applied to any encoder device and a robot system using the encoder device.
[0049]
In the above embodiment, an example in which a digital filter is used in the signal processing unit 5 has been described. However, the present invention is not necessarily limited to this content. An analog filter may be used.
[0050]
In the above embodiment, the example of the logic circuit using the ASIC has been described for the signal processing unit 5, but it is not necessarily limited to this content. A micro CPU or the like may be used. In that case, the processing of FIG. 10 and FIG. 17 described above is executed by a program.
[0051]
In the above embodiment, an example of serial line bus connection has been described, but it is not necessarily limited to this. It may be a parallel line bus composed of a plurality of lines. A connection such as a daisy chain is also regarded as a bus connection in this embodiment.
[0052]
In the above-described embodiment, an example of a motor manufacturing serial number or an encoder manufacturing serial number as an encoder identification code has been described. However, the present invention is not necessarily limited to this. Any unique device can be used as long as it can identify each of the plurality of encoder devices. In this case, it is more preferable that the information is such that a plurality of motors and encoder devices can be distinguished from each other visually.
[0053]
In the above embodiment, examples of the type of communication format, resolution, transmission speed, etc. have been described as mode data, but the present invention is not limited to these contents. For example, the overspeed detection speed may be selected. Further, whether to output a temperature abnormality may be selected. That is, any data that determines the performance and specifications of the encoder device may be used. The types of communication formats have been described by way of example based on the difference in the bit configuration and the number of bits of the frame and the difference in the command system, but may be based on other differences. The communication format is a concept including a communication protocol.
[0054]
In the above embodiment, four examples of communication formats, two types of encoder data transmission speeds of 2.5 Mbps and 4 Mbps, and two types of resolutions of 17-bit resolution and 20-bit resolution have been described. There is no need to limit. The number of types of communication formats may be five or more, or less than four. There may be three or more types of transmission speeds of encoder data, or other transmission speed values. The resolution may be three or more, and the resolution bit number may be another value.
[0055]
In the above embodiment, in the communication between the encoder device and the external controller unit 9, the communication method relating to the encoder data for outputting the position information of the normal encoder having a high communication speed (transmission speed) and the communication relating to the mode data having the low communication speed. The example which employ | adopts two types of communication systems of a system was demonstrated. Such contents are not necessarily limited to application in an encoder device or a robot system. It is possible to apply to other systems. That is, in a system in which multiple devices connected via a bus are connected, normal data exchange is performed at a high transmission rate, and important data exchange such as setting the specifications of each device is slow. Do it by speed communication. As a result, normal processing can be performed at high speed, and important processing such as specification setting can be performed with high reliability without being affected by noise.
[0056]
In the above embodiment, an example in which a target encoder device is specified by an encoder address and mode data is transmitted has been described. However, the present invention is not necessarily limited to this content. For example, the target encoder device may be specified using the encoder identification code used for setting the encoder address, and the mode data may be transmitted. That is, any information may be used as long as it can identify or identify an arbitrary encoder device among a plurality of encoder devices connected by a bus.
[0057]
Although various embodiments and modifications have been described in the above embodiment, the present invention is not limited to these contents. Other embodiments conceivable within the scope of the technical idea of the present invention are also included in the scope of the present invention.
[0058]
【The invention's effect】
Since the present invention is configured as described above, the following effects can be obtained. In a state where a plurality of encoder devices are connected via a bus line, mode data of each encoder device can be arbitrarily set. For this reason, the setting can be changed to a predetermined operation mode after the encoder device is attached at the time of assembling the robot or after the replacement encoder device is attached at the time of replacement. As a result, it is possible to greatly facilitate the work of attaching or replacing the encoder to the robot as compared with the conventional case.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating a configuration diagram of an encoder apparatus according to an embodiment.
FIG. 2 is a diagram illustrating a configuration of a robot including an n-axis encoder device and an external controller.
FIG. 3 is a block diagram showing an internal configuration of a signal processing unit.
FIG. 4 is a configuration diagram of a frame format of a command signal.
FIG. 5 is a configuration diagram of a command data frame.
FIG. 6 is a configuration diagram of a memory data frame.
FIG. 7 is a configuration diagram of a command code of a command data frame.
FIG. 8 is a configuration diagram of a frame code and data bits of a memory data frame.
FIG. 9 is a configuration diagram of an encoder address of a command data frame.
FIG. 10 is a flowchart related to an encoder address setting process in the encoder device.
FIG. 11 is a flowchart for explaining a flow of replacement work of an encoder device of a robot.
FIG. 12 is a configuration diagram of a frame format of a mode data command signal.
FIG. 13 is a configuration diagram of a command data frame.
FIG. 14 is a configuration diagram of a memory data frame.
FIG. 15 is a configuration diagram of a memory address frame.
FIG. 16 is a configuration diagram of a command code 32 of a command data frame.
FIG. 17 is a flowchart related to mode data setting processing in the encoder device.
FIG. 18 is a diagram illustrating the relationship between mode data of a nonvolatile memory and each functional block of a signal processing unit.
[Explanation of symbols]
1 Light emitting part
2 Rotating disc
3 Light receiver
4 Waveform shaping circuit
5 Signal processing section
5a Encoder signal
6 Transmitter / receiver driver
6a Command signal
7 Nonvolatile memory
8 Bus communication line
9 External controller
10 Terminating resistance
ENC1 to ENCn encoder device

Claims (6)

固有のエンコーダ識別情報を格納するエンコーダ識別情報格納手段と、
エンコーダ装置の動作環境を決定する仕様設定データを格納する仕様設定データ格納手段と、
外部装置から前記エンコーダ識別情報格納手段に格納されているエンコーダ識別情報と同一のエンコーダ識別情報を受信したとき、前記外部装置から送信された前記エンコーダ識別情報に付帯した仕様設定データを前記仕様設定データ格納手段に格納するよう処理する処理手段と、
前記外部装置とシリアル通信によりデータを送受信する送受信手段とを備え、
前記送受信手段が前記外部装置からエンコーダ識別情報とともに仕様設定データを受信するときの物理的な第1の伝送速度は、前記送受信手段が前記外部装置との前記エンコーダ装置の位置情報に関するエンコーダデータの送受信の物理的な第2の伝送速度よりも遅くし、
前記送受信手段は、前記第1の伝送速度の信号を通過させ前記第2の伝送速度の信号を通過させない第1のローパスフィルタと、前記第1の伝送速度の信号および前記第2の伝送速度の信号をともに通過させる第2のローパスフィルタと、前記第2のローパスフィルタを通過した前記第1の伝送速度の信号および前記第2の伝送速度の信号のうち前記第1の伝送速度の信号についてはエラーチェックによりエラーを検出するエラーチェック手段とにより、前記第1の伝送速度と前記第2の伝送速度の違いによる受信データーの違いを区別することを特徴とするエンコーダ装置。
Encoder identification information storage means for storing unique encoder identification information;
Specification setting data storage means for storing specification setting data for determining the operating environment of the encoder device;
When the same encoder identification information as the encoder identification information stored in the encoder identification information storage means is received from an external device, the specification setting data attached to the encoder identification information transmitted from the external device is the specification setting data. Processing means for processing to store in the storage means;
A transmission / reception means for transmitting / receiving data by serial communication with the external device;
The physical first transmission speed when the transmission / reception means receives the specification setting data together with the encoder identification information from the external device is the transmission / reception of the encoder data related to the positional information of the encoder device with the external device. Slower than the physical second transmission rate of
The transmission / reception means includes a first low-pass filter that passes the first transmission rate signal and does not pass the second transmission rate signal , the first transmission rate signal, and the second transmission rate. Of the second low-pass filter that passes the signal together, the signal of the first transmission rate that has passed through the second low-pass filter, and the signal of the first transmission rate among the signals of the second transmission rate An encoder apparatus that distinguishes a difference in received data due to a difference between the first transmission rate and the second transmission rate by an error check unit that detects an error by an error check.
請求項1に記載のエンコーダ装置において、
前記エンコーダ識別情報は、エンコーダ装置固有のエンコーダ識別コードあるいはエンコーダアドレスであることを特徴とするエンコーダ装置。
The encoder device according to claim 1,
The encoder apparatus characterized in that the encoder identification information is an encoder identification code or an encoder address unique to the encoder apparatus.
請求項1または2に記載のエンコーダ装置において、
前記エンコーダ装置の仕様は、前記エンコーダ装置の通信フォーマット、分解能、および、伝送速度の少なくとも1つを含むことを特徴とするエンコーダ装置。
The encoder device according to claim 1 or 2 ,
The encoder device specification includes at least one of a communication format, a resolution, and a transmission rate of the encoder device.
複数のエンコーダ装置と、
バス手段と、
前記バス手段を介して前記複数のエンコーダ装置と接続され、前記複数のエンコーダ装置を制御するとともに前記複数のエンコーダ装置より位置情報に関するエンコーダデータを受信して所定のロボットに関する制御を行う制御手段とを備えたロボットシステムであって、
前記複数のエンコーダ装置の各エンコーダ装置は、
固有のエンコーダ識別情報を格納するエンコーダ識別情報格納手段と、
エンコーダ装置の動作環境を決定する仕様設定データを格納する仕様設定データ格納手段と、
前記制御手段から前記エンコーダ識別情報格納手段に格納されているエンコーダ識別情報と同一のエンコーダ識別情報を受信したとき、前記制御手段から送信された前記エンコーダ識別情報に付帯した仕様設定データを前記仕様設定データ格納手段に格納するよう処理する処理手段とを備え、
前記制御手段は、任意のエンコーダ装置の仕様設定データを送信するとき、前記任意のエンコーダ装置のエンコーダ識別情報とともに前記任意のエンコーダ装置の仕様設定データを前記バスを介して前記複数のエンコーダ装置に送信し、
前記制御装置と前記複数のエンコーダ装置との間は、前記バス手段を介してシリアル通信によりデータを送受信し、
前記制御手段が前記任意のエンコーダ装置のエンコーダ識別情報とともに前記任意のエンコーダ装置の仕様設定データを前記バスを介して前記複数のエンコーダ装置に送信するときの物理的な第1の伝送速度は、前記制御手段が前記エンコーダデータの送受信のときに前記複数のエンコーダ装置に送信するデータの物理的な第2の伝送速度よりも遅くし、
前記複数のエンコーダ装置の各エンコーダ装置は、
前記制御装置と前記シリアル通信によりデータを送受信する送受信手段をさらに備え、
前記送受信手段は、前記第1の伝送速度の信号を通過させ前記第2の伝送速度の信号を通過させない第1のローパスフィルタと、前記第1の伝送速度の信号および前記第2の伝送速度の信号をともに通過させる第2のローパスフィルタと、前記第2のローパスフィルタを通過した前記第1の伝送速度の信号および前記第2の伝送速度の信号のうち前記第1の伝送速度の信号についてはエラーチェックによりエラーを検出するエラーチェック手段とにより、前記第1の伝送速度と前記第2の伝送速度の違いによる受信データーの違いを区別することを特徴とするロボットシステム。
A plurality of encoder devices;
Bus means;
Control means connected to the plurality of encoder devices via the bus means, controlling the plurality of encoder devices, and receiving encoder data relating to position information from the plurality of encoder devices and performing control relating to a predetermined robot. A robot system comprising:
Each encoder device of the plurality of encoder devices,
Encoder identification information storage means for storing unique encoder identification information;
Specification setting data storage means for storing specification setting data for determining the operating environment of the encoder device;
When the same encoder identification information as the encoder identification information stored in the encoder identification information storage unit is received from the control unit, the specification setting data attached to the encoder identification information transmitted from the control unit is set as the specification setting. Processing means for processing to store in the data storage means,
When transmitting the specification setting data of an arbitrary encoder device, the control means transmits the specification setting data of the arbitrary encoder device together with the encoder identification information of the arbitrary encoder device to the plurality of encoder devices via the bus. And
Between the control device and the plurality of encoder devices, data is transmitted and received by serial communication via the bus means,
When the control means transmits the specification setting data of the arbitrary encoder device together with the encoder identification information of the arbitrary encoder device to the plurality of encoder devices via the bus, the first physical transmission speed is The control means is slower than the second physical transmission rate of data to be transmitted to the plurality of encoder devices when transmitting and receiving the encoder data,
Each encoder device of the plurality of encoder devices,
A transmission / reception means for transmitting / receiving data to / from the control device via the serial communication;
The transmission / reception means includes a first low-pass filter that passes the first transmission rate signal and does not pass the second transmission rate signal , the first transmission rate signal, and the second transmission rate. Of the second low-pass filter that passes the signal together, the signal of the first transmission rate that has passed through the second low-pass filter, and the signal of the first transmission rate among the signals of the second transmission rate A robot system characterized in that a difference in received data due to a difference between the first transmission rate and the second transmission rate is distinguished by error check means for detecting an error by error check.
請求項に記載のロボットシステムにおいて、
前記エンコーダ識別情報は、エンコーダ装置固有のエンコーダ識別コードあるいはエンコーダアドレスであることを特徴とするロボットシステム。
The robot system according to claim 4 , wherein
The robot identification system is characterized in that the encoder identification information is an encoder identification code or an encoder address unique to the encoder device.
請求項4または5に記載のロボットシステムにおいて、
前記エンコーダ装置の仕様は、前記エンコーダ装置の通信フォーマット、分解能、および、伝送速度の少なくとも1つを含むことを特徴とするロボットシステム。
The robot system according to claim 4 or 5 ,
The specification of the encoder device includes at least one of a communication format, resolution, and transmission speed of the encoder device.
JP2003110806A 2003-04-15 2003-04-15 Encoder device, robot system Expired - Fee Related JP4254321B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003110806A JP4254321B2 (en) 2003-04-15 2003-04-15 Encoder device, robot system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003110806A JP4254321B2 (en) 2003-04-15 2003-04-15 Encoder device, robot system

Publications (2)

Publication Number Publication Date
JP2004317261A JP2004317261A (en) 2004-11-11
JP4254321B2 true JP4254321B2 (en) 2009-04-15

Family

ID=33471558

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003110806A Expired - Fee Related JP4254321B2 (en) 2003-04-15 2003-04-15 Encoder device, robot system

Country Status (1)

Country Link
JP (1) JP4254321B2 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4803572B2 (en) * 2004-12-10 2011-10-26 Ntn株式会社 Magnetic encoder and wheel bearing device provided with the same
JP2007038326A (en) * 2005-08-01 2007-02-15 Toyota Motor Corp Robot control system
JP4805629B2 (en) 2005-08-04 2011-11-02 本田技研工業株式会社 Encoder
JP5927779B2 (en) * 2011-05-25 2016-06-01 株式会社ニコン Encoder, drive system, and control device
DE102012200239A1 (en) * 2012-01-10 2013-07-11 Robert Bosch Gmbh sensor arrangement
JP6149254B2 (en) * 2013-06-20 2017-06-21 パナソニックIpマネジメント株式会社 Motor position detector
JP6372572B2 (en) 2014-09-18 2018-08-15 株式会社安川電機 Encoder system and sensor system
EP3104129A1 (en) * 2015-06-11 2016-12-14 Vishay MCB Industrie Positional encoder
WO2018150544A1 (en) * 2017-02-17 2018-08-23 株式会社Fuji Multiplex communication system and work robot
US10523142B2 (en) 2017-12-21 2019-12-31 Mitsubishi Electric Corporation Motor control apparatus
CN114584020B (en) * 2022-05-05 2022-07-15 广东科伺智能科技有限公司 Servo system

Also Published As

Publication number Publication date
JP2004317261A (en) 2004-11-11

Similar Documents

Publication Publication Date Title
JP4254321B2 (en) Encoder device, robot system
JP6636991B2 (en) Motor control system and motor control system communication method
US20110122978A1 (en) Serial peripheral interface having a reduced number of connecting lines
US7689687B2 (en) Communication controller with automatic time stamping
JP3297249B2 (en) Control method for distributed remote I / O control system
JP4598206B2 (en) Method for parameterizing integrated circuits and integrated circuit arrangements therefor
US20020093303A1 (en) Motor control system
DK2927815T3 (en) MULTIDROP SERIAL BUS WITH LOCATION AND PROCEDURE
JPH0898284A (en) Data receiver, data transmitter and data communication equipment
EP2309677A1 (en) Wake up detector for a bus transceiver
CN105471573B (en) Method and device for serial data transmission via a bidirectional data transmission channel
US20100131686A1 (en) Method and System for Secure Transmission of Process Data to be Transmitted Cyclically
JP2004318439A (en) Encoder device and robot system
US10120359B2 (en) Device and method for the automated detection of an interface
CN101106438B (en) Communication network system and error verification method
JP5876240B2 (en) Device and control device for manipulating interface signals
JP2004525469A5 (en)
EP4012984B1 (en) A processing system, related integrated circuit, device and method
JP2004535742A (en) Bus system and method for exchanging data
EP3629525B1 (en) Method and system for communicating over a bus
JP2007069849A (en) Steering controlling device for vehicle
CN116027698A (en) Device for single-side nibble transmission (SENT) multiple transmission mode
WO2020024199A1 (en) High speed flexled digital interface
US20060080675A1 (en) Management of event order of occurrence on a network
JP4548613B2 (en) Servo system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051108

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080121

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080325

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080521

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20080624

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080701

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080828

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20080828

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090106

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090119

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120206

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4254321

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120206

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150206

Year of fee payment: 6

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150206

Year of fee payment: 6

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150206

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees