JP2003122433A - Servo system - Google Patents

Servo system

Info

Publication number
JP2003122433A
JP2003122433A JP2001316428A JP2001316428A JP2003122433A JP 2003122433 A JP2003122433 A JP 2003122433A JP 2001316428 A JP2001316428 A JP 2001316428A JP 2001316428 A JP2001316428 A JP 2001316428A JP 2003122433 A JP2003122433 A JP 2003122433A
Authority
JP
Japan
Prior art keywords
data
duty
encoder
data communication
manchester code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2001316428A
Other languages
Japanese (ja)
Inventor
Hirozo Tagami
博三 田上
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2001316428A priority Critical patent/JP2003122433A/en
Publication of JP2003122433A publication Critical patent/JP2003122433A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Position Or Direction (AREA)
  • Analogue/Digital Conversion (AREA)

Abstract

PROBLEM TO BE SOLVED: To achieve good transmission even if the length of wiring interconnecting an encoder for detecting the position information of a rotating machine or the like and a controller controlling the position and speed of the rotating machine using the position information is varied when data are transmitted using Manchester codes between the encoder and the controller. SOLUTION: The encoder 11 and the controller 14 are provided with respective code conversion circuits capable of changing the phases of the Manchester codes. When the length of the wiring is changed, data with its phase modulated by the code conversion circuit are transmitted from the transmitting side, and the receiving side searches duty settings suited for data transmission, depending on whether or not reception of the modulated data is permitted.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、回転駆動または直
行駆動する駆動体の位置を検出するためのエンコーダお
よび駆動体の制御装置に関するものであり、特にエンコ
ーダと制御装置との間のデータ伝送に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an encoder for detecting the position of a driving body that is rotationally driven or orthogonally driven, and a control device for the driving body, and more particularly to data transmission between the encoder and the control device. It is a thing.

【0002】[0002]

【従来の技術】各種機械の回転駆動用または直行駆動用
に使用されるサーボモータには駆動体の位置情報や速度
情報を検出するエンコーダが組み込まれており、近年、
検出する情報量の増加や機械の配線削減にむけ信号線を
少なくするためにエンコーダと駆動体の位置や速度を制
御する制御装置との間の情報交信にはシリアルデータに
よるデータ伝送がよく用いられている。
2. Description of the Related Art An encoder for detecting position information and speed information of a driving body is incorporated in a servo motor used for rotary drive or orthogonal drive of various machines.
In order to increase the amount of information to be detected and reduce the number of wiring in the machine, the data transmission by serial data is often used for information communication between the encoder and the control device that controls the position and speed of the driving body. ing.

【0003】以下に従来のサーボシステムにおけるエン
コーダと制御装置について説明する。
An encoder and a control device in a conventional servo system will be described below.

【0004】図5は従来のエンコーダ51と制御装置5
4の構成を示すものであり、52は駆動体(モータ)の
絶対位置を示す位置データやエンコーダ内部で検出した
異常情報などをパラレルデータとして出力する位置検出
部、53は位置検出部52からのデータをシリアルデー
タに変換し出力するデータ送信部、55はエンコーダか
らのシリアルデータを受信しパラレルデータに変換し出
力するデータ受信部、56はデータ受信部からのエンコ
ーダデータをもとに駆動体(モータ)の位置や速度を制
御するモータ駆動部である。
FIG. 5 shows a conventional encoder 51 and control device 5.
4 shows a configuration of No. 4, 52 is a position detection unit that outputs position data indicating the absolute position of the driving body (motor) and abnormality information detected inside the encoder as parallel data, and 53 is a position detection unit 52 A data transmission unit that converts data into serial data and outputs the data, 55 a data reception unit that receives serial data from the encoder, converts the serial data into parallel data, and outputs the parallel data, and a drive unit 56 based on the encoder data from the data reception unit ( A motor drive unit that controls the position and speed of the motor.

【0005】図6は従来のデータ送信部53およびデー
タ受信部55の構成を示すものであり、61はパラレル
データからなる送信データをシリアルデータに変換する
パラレルシリアル変換部、62はパラレルシリアル変換
部から出力されるNRZ符号のデータをマンチェスタ符
号のデータに変換し出力する符号変換部、63はRS4
22規格等に準じデータを送信する送信インターフェイ
ス部、64はRS422規格等に準じデータを受信する
受信インターフェイス部、65は受信インターフェース
部からのマンチェスタ符号のデータをNRZ符号のデー
タに変換し出力する符号変換部、66は符号変換部から
のシリアルデータをパラレルデータに変換するシリアル
パラレル変換部である。
FIG. 6 shows the configuration of a conventional data transmission section 53 and data reception section 55. Reference numeral 61 is a parallel-serial conversion section for converting transmission data composed of parallel data into serial data, and 62 is a parallel-serial conversion section. The code conversion unit 63 converts the NRZ code data output from the NRZ code data into the Manchester code data and outputs the code.
22. A transmission interface unit that transmits data according to the 22 standard, 64 is a reception interface unit that receives data according to the RS422 standard, and 65 is a code that converts Manchester code data from the reception interface unit into NRZ code data and outputs the converted data. The conversion unit 66 is a serial-parallel conversion unit that converts the serial data from the code conversion unit into parallel data.

【0006】図7はエンコーダと制御装置との間のシリ
アル通信の構成であり、エンコーダ51からは送信デー
タの内容の識別を示すコマンド部と、位置検出部52で
検出した位置データや異常情報を示すデータ部と、コマ
ンド部とデータ部から生成される送信用誤り検出データ
部とを定期的に繰り返し制御装置54へ送信する構成と
なっており、制御装置54では受信したエンコーダデー
タをもとに駆動体の位置や速度の制御や異常処理を行
う。
FIG. 7 shows the configuration of serial communication between the encoder and the control device. The encoder 51 displays a command section for identifying the content of the transmission data and the position data and abnormality information detected by the position detection section 52. The data unit shown and the transmission error detection data unit generated from the command unit and the data unit are periodically and repeatedly transmitted to the control device 54. The control device 54 uses the received encoder data based on the received encoder data. It controls the position and speed of the driver and handles abnormalities.

【0007】図8は符号変換部で扱うNRZ符号および
マンチェスタ符号を示しており、NRZ符号が1bit
の区間を”H”または”L”レベルを保持するのに対
し、マンチェスタ符号は1bitの区間の中央で信号が
変化する符号となっている。
FIG. 8 shows the NRZ code and the Manchester code handled by the code conversion unit, and the NRZ code is 1 bit.
While the "H" or "L" level is held in the section of, the Manchester code is a code in which the signal changes in the center of the section of 1 bit.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、上記従
来の構成では、エンコーダと制御装置との間の伝送線の
距離が例えば50m、100mなどと長距離になってく
ると図9に示すように伝送ケーブルの特性に伴う波形歪
みや受信側での回路しきい値等により、送信側では符号
の位相(デューティ)が50%であったものが受信側で
は10%から90%などに変化しシリアルデータが正常
に受信できないなどの問題点があった。
However, in the above-described conventional configuration, when the distance of the transmission line between the encoder and the control device becomes a long distance, for example, 50 m or 100 m, the transmission is performed as shown in FIG. Due to waveform distortion due to cable characteristics and circuit threshold on the receiving side, the phase (duty) of the code on the transmitting side changed from 10% to 90% on the receiving side, resulting in serial data. However, there was a problem that it could not be received normally.

【0009】また、従来の構成では、データ伝送がエン
コーダから制御装置へ一方向であるため任意の伝送経路
に対し安定なデータ伝送を行うには事前のテスト伝送お
よび個別に仕様決定をする必要があった。
Further, in the conventional configuration, since data transmission is unidirectional from the encoder to the control device, in order to perform stable data transmission on an arbitrary transmission path, it is necessary to perform test transmission in advance and individually determine specifications. there were.

【0010】本発明は上記従来の問題点を解決するもの
で、エンコーダと制御装置との配線長が変動しても良好
なシリアル伝送状態を提供することを目的とする。
The present invention solves the above-mentioned conventional problems, and an object thereof is to provide a good serial transmission state even if the wiring length between the encoder and the control device varies.

【0011】[0011]

【課題を解決するための手段】上記の課題を解決するた
めに本発明は、駆動体の位置を検出しシリアルデータか
らなる要求指令を受信して位置データをシリアルデータ
で出力するエンコーダと、エンコーダへシリアルデータ
からなる要求指令を送信しエンコーダから出力されるシ
リアルデータからなる位置データを受信する制御装置
と、前記エンコーダと前記制御装置との間のデータ通信
に用いるデータはマンチェスタ符号であり、エンコーダ
および制御装置にマンチェスタ符号のデューティを任意
に変更可能な符号変換部を設けたものである。
In order to solve the above problems, the present invention provides an encoder for detecting the position of a driver, receiving a request command consisting of serial data, and outputting the position data as serial data, and an encoder. To a control device that transmits a request command composed of serial data to and receives position data composed of serial data output from the encoder, and the data used for data communication between the encoder and the control device is a Manchester code. Further, the control device is provided with a code conversion unit capable of arbitrarily changing the duty of the Manchester code.

【0012】上記手段によって、両間をつなぐ配線の配
線長の変動に伴う伝送波形の歪によるデューティ変動が
生じてもデータ伝送に適したデューティを設定すること
ができる。
By the above means, it is possible to set the duty suitable for data transmission even if the duty variation due to the distortion of the transmission waveform occurs due to the variation of the wiring length of the wiring connecting the both.

【0013】[0013]

【発明の実施の形態】上記課題を解決するために本発明
は、回転駆動または直行駆動する駆動体の位置を検出す
る位置検出部、および、シリアルデータからなる要求指
令を受信し前記位置検出部のデータをシリアルデータで
出力する第1のデータ通信部とからなるエンコーダと、
エンコーダへシリアルデータからなる要求指令を送信し
エンコーダから出力されるシリアルデータからなる位置
データを受信する第2のデータ通信部を有し駆動体の位
置や速度を制御する制御装置とを備え、前記エンコーダ
と前記制御装置との間のデータ通信に用いるデータはマ
ンチェスタ符号であり、マンチェスタ符号のデューティ
を任意に変更可能な符号変換部を第1のデータ通信部お
よび第2のデータ通信部に設けたサーボシステムであ
る。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, the present invention is directed to a position detecting section for detecting the position of a driving body which is rotationally driven or orthogonally driven, and the position detecting section which receives a request command consisting of serial data. And an encoder including a first data communication unit that outputs the data as serial data,
A control device for controlling the position and speed of the driving body, the control device having a second data communication unit for transmitting a request command including serial data to the encoder and receiving position data including serial data output from the encoder; The data used for the data communication between the encoder and the control device is Manchester code, and the code conversion unit capable of arbitrarily changing the duty of the Manchester code is provided in the first data communication unit and the second data communication unit. It is a servo system.

【0014】また、任意のデューティに設定されたマン
チェスタ符号からなる要求信号を出力する第2のデータ
通信部と、この要求信号を正常に受信するとあらかじめ
設定された基本デューティからなるマンチェスタ符号で
位置データを出力する第1のデータ通信部を備えたサー
ボシステムである。
Further, the second data communication unit for outputting a request signal composed of a Manchester code set to an arbitrary duty, and the position data by the Manchester code composed of a preset basic duty when the request signal is normally received. Is a servo system including a first data communication unit that outputs

【0015】また、あらかじめ設定された基本デューテ
ィからなるマンチェスタ符号でデューティ設定を含む要
求信号を出力する第2のデータ通信部と、この要求信号
を正常に受信すると要求信号に含まれているデューティ
設定からなるマンチェスタ符号で位置データを出力する
第1のデータ通信部を備えたサーボシステムである。
Further, a second data communication section which outputs a request signal including a duty setting by a Manchester code having a preset basic duty, and a duty setting included in the request signal when the request signal is normally received. Is a servo system including a first data communication unit that outputs position data using Manchester code.

【0016】また、任意のデューティに設定されたマン
チェスタ符号からなる要求信号を出力する第2のデータ
通信部と、このマンチェスタ符号からなる要求信号をそ
のまま出力する第1のデータ通信部を備えたサーボシス
テムである。
A servo having a second data communication section for outputting a request signal composed of Manchester code set to an arbitrary duty and a first data communication section for directly outputting the request signal composed of Manchester code. System.

【0017】さらに、マンチェスタ符号のデューティは
50%を基本デューティとし符号を1/4もしくは1/
8もしくは1/16間隔でデューティを可変可能とした
サーボシステムである。
Further, the duty of the Manchester code is 50% as a basic duty, and the code is 1/4 or 1 /.
This is a servo system in which the duty can be changed at intervals of 8 or 1/16.

【0018】このように、伝送信号を変調することで伝
送経路に適したデータ通信を実現することができる。
In this way, by modulating the transmission signal, data communication suitable for the transmission path can be realized.

【0019】また、制御装置からエンコーダへ向かう伝
送経路に適したデューティ設定をサーチすることができ
る。
Further, it is possible to search the duty setting suitable for the transmission path from the control device to the encoder.

【0020】また、エンコーダから制御装置へ向かう伝
送経路に適したデューティ設定をサーチすることができ
る。
Further, it is possible to search the duty setting suitable for the transmission path from the encoder to the control device.

【0021】また、エンコーダでの受信動作に関わらず
制御装置〜エンコーダ〜制御装置の間の伝送経路に適し
たデューティ設定をサーチすることができる。
Further, the duty setting suitable for the transmission path between the control device, the encoder and the control device can be searched regardless of the receiving operation of the encoder.

【0022】さらに、符号変換部の回路構成に応じてデ
ューティ設定を粗い設定から細かい設定まですることが
できる。
Furthermore, the duty setting can be set from coarse to fine depending on the circuit configuration of the code conversion unit.

【0023】[0023]

【実施例】以下本発明の実施例について、図面を参照し
て説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0024】図1は本発明の実施例におけるサーボシス
テムのエンコーダと制御装置の構成図であり、11はエ
ンコーダ、14は制御装置である。
FIG. 1 is a block diagram of an encoder and a controller of a servo system according to an embodiment of the present invention, in which 11 is an encoder and 14 is a controller.

【0025】12は従来と同様に駆動体(モータ)の絶
対位置を示す位置データやエンコーダ内部で検出した異
常情報などをパラレルデータとして出力する位置検出
部、13は制御装置からのシリアルデータを受信し受信
した要求信号に応じて位置検出部12からのデータを選
択し出力する第1のデータ通信部、15はモータの制御
に必要なデータを要求信号としてエンコーダへ出力し、
エンコーダからのシリアルデータを受信する第2のデー
タ通信部、16は従来と同様に第2のデータ通信部15
で受信したエンコーダデータをもとに駆動体(モータ)
の位置や速度を制御するモータ駆動部である。
Reference numeral 12 is a position detecting section for outputting position data indicating the absolute position of the driving body (motor) and abnormality information detected inside the encoder as parallel data as in the conventional case, and 13 is for receiving serial data from the control device. The first data communication unit 15, which selects and outputs the data from the position detection unit 12 according to the received request signal, outputs the data necessary for controlling the motor to the encoder as a request signal,
A second data communication section 16 for receiving serial data from the encoder, and 16 is a second data communication section 15 as in the conventional case.
Drive unit (motor) based on the encoder data received by
Is a motor drive unit that controls the position and speed of the.

【0026】図2は第1のデータ通信部13および第2
のデータ通信部15の構成を示し、21はパラレルデー
タからなる送信データをシリアルデータに変換するパラ
レルシリアル変換部、22はパラレルシリアル変換部か
らのNRZ符号のデータをデューティ設定に応じてマン
チェスタ符号の信号変化点を可変して出力する送信符号
変換部、23はRS422やRS485規格に準じ送信
データおよび受信データを双方向シリアルデータとして
入出力を行う送受信インターフェイス部、24は送受信
インターフェイス部からのマンチェスタ符号を受信しN
RZ符号のデータに変換するとともに符号の信号変化点
(デューティ)を基準クロックを用いて計測し結果を出
力する受信符号変換部、25は受信符号変換部からのシ
リアルデータをパラレルデータに変換するシリアルパラ
レル変換部である。
FIG. 2 shows the first data communication unit 13 and the second data communication unit 13.
2 shows a configuration of the data communication unit 15 in which 21 is a parallel-serial conversion unit that converts transmission data composed of parallel data into serial data, and 22 is NRZ code data from the parallel-serial conversion unit that is converted into Manchester code according to the duty setting. A transmission code conversion unit that variably outputs a signal change point, 23 is a transmission / reception interface unit that inputs / outputs transmission data and reception data as bidirectional serial data according to the RS422 or RS485 standard, and 24 is a Manchester code from the transmission / reception interface unit. Received N
A reception code conversion unit that converts RZ code data and measures the signal change point (duty) of the code using a reference clock and outputs the result. Reference numeral 25 is a serial conversion unit that converts serial data from the reception code conversion unit to parallel data. It is a parallel conversion unit.

【0027】図3は本発明の実施例におけるエンコーダ
と制御装置との間のシリアル通信の構成であり、制御装
置14からコマンド部(要求信号)を含むシリアルデー
タを送信し、エンコーダ11がシリアルデータを正常に
受信するとエンコーダ11からはコマンド部(要求信
号)とデータ部(位置検出部12で検出したデータ)を
含むシリアルデータを出力し、このデータを制御装置1
4で受信する構成となっており、制御装置14では要求
したエンコーダデータをもとに駆動体の位置や速度の制
御や異常処理を行う。
FIG. 3 shows a configuration of serial communication between the encoder and the control device according to the embodiment of the present invention. The control device 14 transmits serial data including a command portion (request signal), and the encoder 11 transmits the serial data. When the data is normally received, the encoder 11 outputs serial data including a command part (request signal) and a data part (data detected by the position detection part 12), and this data is output to the control device 1
4, the control device 14 controls the position and speed of the driving body and performs abnormality processing based on the requested encoder data.

【0028】図4は本発明の実施例における送信符号変
換部の動作波形であり、デューティ設定に応じてマンチ
ェスタ符号の信号の変化点を可変(変調)できる構成に
なっている。
FIG. 4 is an operation waveform of the transmission code conversion section in the embodiment of the present invention, which has a configuration in which the change point of the Manchester code signal can be varied (modulated) according to the duty setting.

【0029】また、受信符号変換部24では、まずマン
チェスタ符号の信号変化点を検出し、立ち下がり変化か
ら立ち上がり変化までの”L”レベルの区間および立ち
上がり変化から立ち下がり変化までの”H”レベルの区
間をそれぞれ基準クロックを用いて計数し、この計数値
よりマンチェスタ符号の信号変化点(デューティ)を数
値化している。
In the reception code converter 24, first, the signal change point of the Manchester code is detected, and the "L" level section from the falling change to the rising change and the "H" level from the rising change to the falling change are detected. Each section is counted using a reference clock, and the signal change point (duty) of the Manchester code is digitized from this count value.

【0030】以下、図3および図4を用いて本発明の動
作説明をする。
The operation of the present invention will be described below with reference to FIGS.

【0031】まず、伝送経路の影響により生じるマンチ
ェスタ符号のデューティ変化量を測定する実施例につい
て説明する。
First, an embodiment in which the duty change amount of the Manchester code caused by the influence of the transmission path is measured will be described.

【0032】変化量の測定方法としては、まず、図3に
示すようにマンチェスタ符号のデューティ設定を含むシ
リアルデータを制御装置14よりエンコーダ11へ送信
する。ここで制御装置14から送信するマンチェスタ符
号のデューティは任意に可変可能とする。エンコーダ1
1では受信した上記デューティ設定に設定したマンチェ
スタ符号でエンコーダデータを制御装置14に向け送信
する。制御装置14では第2のデータ通信部15の受信
符号変換部24にて信号変化点(デューティ)を測定し
制御装置14よりエンコーダ11へ送信したデューティ
設定と受信したデューティ測定値との差より変化量を求
めることができる。
As a method of measuring the amount of change, first, as shown in FIG. 3, serial data including the duty setting of the Manchester code is transmitted from the control device 14 to the encoder 11. Here, the duty of the Manchester code transmitted from the control device 14 can be arbitrarily changed. Encoder 1
In No. 1, encoder data is transmitted to the control device 14 by the received Manchester code set to the duty setting. In the control device 14, the signal conversion point (duty) is measured by the reception code conversion part 24 of the second data communication part 15, and the signal change point is changed based on the difference between the duty setting transmitted from the control device 14 to the encoder 11 and the received duty measurement value. The quantity can be calculated.

【0033】次に、マンチェスタ符号の信号変換点の補
正について説明する。
Next, correction of the signal conversion point of the Manchester code will be described.

【0034】上記デューティ変化量が測定できれば、送
信側でこの変化を補正する方向にマンチェスタ符号の変
化点を可変させる。即ち、受信側でマンチェスタ符号の
変化点がビットの中央より遅れていれば送信側で変化点
をビットの中央より前へずらし、一方、受信側でマンチ
ェスタ符号の変化点がビットの中央より進んでいれば送
信側で変化点をビットの中央より後へずらすようにす
る。
If the duty change amount can be measured, the change point of the Manchester code is changed in the direction of correcting the change on the transmission side. That is, if the Manchester code change point is delayed from the center of the bit on the receiving side, the change point is shifted to the front of the center of the bit on the transmitting side, while the change point of the Manchester code is advanced from the center of the bit on the receiving side. If so, the transmitting side shifts the change point after the center of the bit.

【0035】このように、動作を満足するデューティ設
定をエンコーダと制御装置との間のデータ伝送を介して
サーチし、この設定を制御装置14よりエンコーダ11
へ送信し、エンコーダ11がデューティ設定に従ったデ
ータ送信を行えば伝送経路に適したシリアル伝送が可能
となる。
In this way, the duty setting satisfying the operation is searched through the data transmission between the encoder and the control device, and the setting is set by the control device 14 by the encoder 11
When the encoder 11 transmits the data according to the duty setting, serial transmission suitable for the transmission path can be performed.

【0036】次に伝送経路に適したシリアル伝送の実施
例について説明する。
Next, an embodiment of serial transmission suitable for the transmission path will be described.

【0037】1つ目の実施例は、制御装置14より任意
のデューティに設定されたマンチェスタ符号(要求信
号)をエンコーダ11へ送信し、この送信データをエン
コーダ11が正常に受信するとあらかじめ設定された基
本デューティからなるマンチェスタ符号で制御装置14
へデータを送信する構成であり、エンコーダからのデー
タ送信(要求信号に対する返信)の有無により、伝送経
路で使用可能なマンチェスタ符号のデューティの決定を
行うことができる。
In the first embodiment, the Manchester code (request signal) set to an arbitrary duty is transmitted from the control device 14 to the encoder 11, and is preset when the transmission data is normally received by the encoder 11. Control device 14 with Manchester code consisting of basic duty
The data is transmitted to the encoder, and the duty of the Manchester code that can be used in the transmission path can be determined depending on the presence or absence of data transmission (reply to the request signal) from the encoder.

【0038】2つ目の実施例は、制御装置14よりあら
かじめ設定された基本デューティからなるマンチェスタ
符号でデューティ設定を含むデータ(要求信号)をエン
コーダ11へ送信し、この送信データをエンコーダ11
が正常に受信すると要求信号に含まれているデューティ
設定からなるマンチェスタ符号で制御装置14へデータ
を送信する構成であり、エンコーダからのデータ送信
(要求信号に対する返信)の有無により、伝送経路で使
用可能なマンチェスタ符号のデューティの決定を行うこ
とができる。
In the second embodiment, data (request signal) including the duty setting is transmitted to the encoder 11 by the Manchester code having the basic duty preset by the control device 14, and the transmission data is transmitted to the encoder 11.
Is normally received, the data is transmitted to the control device 14 by the Manchester code including the duty setting included in the request signal, and is used in the transmission path depending on whether or not the encoder transmits data (replies to the request signal). A determination of the possible Manchester code duty can be made.

【0039】3つ目の実施例は、制御装置14より任意
のデューティに設定されたマンチェスタ符号をエンコー
ダ11へ送信し、このマンチェスタ符号からなる要求信
号をエンコーダ11がそのままの設定で再出力し、この
再出力されたマンチェスタ符号を再度制御装置14で受
信する構成であり、エンコーダ11での正常受信の有無
に関わらず伝送経路で使用可能なマンチェスタ符号のデ
ューティの決定を行うことができる。
In the third embodiment, the control unit 14 transmits the Manchester code set to an arbitrary duty to the encoder 11, and the encoder 11 re-outputs the request signal composed of the Manchester code as it is, The re-output Manchester code is received by the control device 14 again, and the duty of the Manchester code that can be used in the transmission path can be determined regardless of whether the encoder 11 normally receives the code.

【0040】次にマンチェスタ符号の信号変化の分解能
設定の実施例について説明する。
Next, an embodiment for setting the resolution of the Manchester code signal change will be described.

【0041】マンチェスタ符号の信号変化点(デューテ
ィ)の可変分解能は、基準クロックを10進数でカウン
トして変化点を生成するより2進数でカウントして生成
する方が回路規模が小さくできる点と、符号変換部のト
ータル回路規模を大きくしない点を考慮し、マンチェス
タ符号の1ビット幅は基準クロックの2N個(N=2、
3、4)とし、デューティ可変分解能(可変間隔)を1
/4ビット、1/8ビット、1/16ビットのいずれか
としている。
As for the variable resolution of the signal change point (duty) of the Manchester code, the circuit scale can be made smaller by counting and generating the change point by counting the reference clock in decimal number and generating the change point in binary number. Considering that the total circuit scale of the code conversion unit is not increased, the Manchester code has a 1-bit width of 2 N reference clocks (N = 2,
3, 4), and variable duty resolution (variable interval) is 1
/ 4 bit, 1/8 bit, or 1/16 bit.

【0042】なお、回路規模の制約がなければ上記分解
能設定に限定する必要はない。
If there is no restriction on the circuit scale, it is not necessary to limit to the above resolution setting.

【0043】以上が本実施例における構成と動作説明で
あり、伝送経路により生じるシリアルデータの変化に対
して、伝送経路を介した後のシリアルデータの受信可否
または受信時のシリアルデータのデューティ測定値をフ
ィードバックする構成にすることで伝送経路に適したシ
リアルデータの設定が可能となる。
The above is the description of the configuration and operation in the present embodiment. Whether or not serial data can be received via the transmission path or the duty measurement value of serial data at the time of reception with respect to changes in the serial data caused by the transmission path. With the configuration for feeding back, it becomes possible to set the serial data suitable for the transmission path.

【0044】以上のように本発明は、任意の伝送経路に
対しシリアルデータの変化の度合いを容易にサーチでき
る構成とすることで伝送経路に適した伝送条件を実現
し、安定したモータの駆動を提供することができる。
As described above, the present invention realizes the transmission condition suitable for the transmission path by providing the structure capable of easily searching the degree of change of the serial data with respect to the arbitrary transmission path, and drives the motor stably. Can be provided.

【0045】[0045]

【発明の効果】上記の実施例から明らかなように本発明
は、伝送符号の変調機能を備え、伝送経路に適したデー
タ符号のデューティ設定のサーチを行うことで伝送距離
や伝送線材質、回路構成などによって生じる伝送符号の
変化に対して変化分の補正が実施でき信頼性の高いデー
タ伝送が実現できる。
As is apparent from the above embodiments, the present invention has the function of modulating the transmission code and searches the duty setting of the data code suitable for the transmission path, thereby transmitting distance, transmission line material, and circuit. The change can be corrected for the change in the transmission code caused by the configuration, etc., and highly reliable data transmission can be realized.

【0046】また、本発明のように伝送経路に適した設
定をサーチし補正できるので伝送線長違いにおのおの対
応したエンコーダや制御装置を設けることなく共用化が
実現でき、また、手作業でデータ伝送状態を評価するこ
となく信頼性の高い駆動システムが提供できる。
Since the setting suitable for the transmission path can be searched and corrected as in the present invention, it is possible to realize sharing without providing an encoder or a control device corresponding to each transmission line length, and to manually perform data A highly reliable drive system can be provided without evaluating the transmission state.

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

【図1】本発明の実施例のサーボシステムの構成図FIG. 1 is a configuration diagram of a servo system according to an embodiment of the present invention.

【図2】本発明の実施例の第1および第2のデータ通信
部の構成図
FIG. 2 is a configuration diagram of first and second data communication units according to an embodiment of the present invention.

【図3】本発明の実施例のシリアルデータの構成図FIG. 3 is a configuration diagram of serial data according to the embodiment of this invention.

【図4】本発明の実施例のデータ符号図FIG. 4 is a data code diagram of the embodiment of the present invention.

【図5】従来のサーボシステムの構成図FIG. 5 is a block diagram of a conventional servo system

【図6】従来のデータ送信部およびデータ受信部の構成
FIG. 6 is a block diagram of a conventional data transmitter and data receiver.

【図7】従来のシリアルデータの構成図FIG. 7 is a configuration diagram of conventional serial data.

【図8】従来のデータ符号図FIG. 8 is a conventional data code diagram.

【図9】従来のシリアルデータ伝送波形図FIG. 9 is a conventional serial data transmission waveform diagram.

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

11 エンコーダ 12 位置検出部 13 第1のデータ通信部 14 制御装置 15 第2のデータ通信部 16 モータ駆動部 21 パラレルシリアル変換部 22 送信符号変換部 23 送受信インターフェイス部 24 受信符号変換部 25 シリアルパラレル変換部 11 encoder 12 Position detector 13 First data communication unit 14 Control device 15 Second data communication unit 16 Motor drive 21 Parallel-to-serial converter 22 Transmit Code Converter 23 Transmission / reception interface section 24 Received Code Converter 25 Serial-parallel converter

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 回転駆動または直行駆動する駆動体の位
置を検出する位置検出部、および、シリアルデータから
なる要求指令を受信し前記位置検出部のデータをシリア
ルデータで出力する第1のデータ通信部とからなるエン
コーダと、エンコーダへシリアルデータからなる要求指
令を送信しエンコーダから出力されるシリアルデータか
らなる位置データを受信する第2のデータ通信部を有し
駆動体の位置や速度を制御する制御装置とを備え、前記
エンコーダと前記制御装置との間のデータ通信に用いる
データはマンチェスタ符号であり、マンチェスタ符号の
デューティを任意に変更可能な符号変換部を第1のデー
タ通信部および第2のデータ通信部に設けたサーボシス
テム。
1. A first data communication for detecting a position of a driving body that is rotationally driven or orthogonally driven, and first data communication for receiving a request command including serial data and outputting the data of the position detection unit as serial data. And a second data communication unit that transmits a request command including serial data to the encoder and receives position data including serial data output from the encoder, and controls the position and speed of the driving body. The data used for data communication between the encoder and the control device is a Manchester code, and a code conversion unit that can arbitrarily change the duty of the Manchester code is provided in the first data communication unit and the second data communication unit. Servo system installed in the data communication section of.
【請求項2】 任意のデューティに設定されたマンチェ
スタ符号からなる要求信号を出力する第2のデータ通信
部と、この要求信号を正常に受信するとあらかじめ設定
された基本デューティからなるマンチェスタ符号で位置
データを出力する第1のデータ通信部からなる請求項1
記載のサーボシステム。
2. A second data communication unit for outputting a request signal composed of a Manchester code set to an arbitrary duty, and position data by a Manchester code composed of a preset basic duty when the request signal is normally received. The first data communication unit for outputting
The described servo system.
【請求項3】 あらかじめ設定された基本デューティか
らなるマンチェスタ符号でデューティ設定を含む要求信
号を出力する第2のデータ通信部と、この要求信号を正
常に受信すると要求信号に含まれているデューティ設定
からなるマンチェスタ符号で位置データを出力する第1
のデータ通信部からなる請求項1記載のサーボシステ
ム。
3. A second data communication unit which outputs a request signal including a duty setting by a Manchester code having a preset basic duty, and a duty setting included in the request signal when the request signal is normally received. To output position data in Manchester code consisting of
2. The servo system according to claim 1, which comprises the data communication unit.
【請求項4】 任意のデューティに設定されたマンチェ
スタ符号からなる要求信号を出力する第2のデータ通信
部と、このマンチェスタ符号からなる要求信号をそのま
ま出力する第1のデータ通信部からなる請求項1記載の
サーボシステム。
4. A second data communication section for outputting a request signal composed of a Manchester code set to an arbitrary duty, and a first data communication section for outputting the request signal composed of this Manchester code as they are. The servo system described in 1.
【請求項5】 マンチェスタ符号のデューティは50%
を基本デューティとし符号を1/4もしくは1/8もし
くは1/16間隔でデューティを可変可能とした請求項
1記載のサーボシステム。
5. The Manchester code duty is 50%.
The servo system according to claim 1, wherein the duty is variable at intervals of ¼, ⅛, or 1/16 with the reference duty as.
JP2001316428A 2001-10-15 2001-10-15 Servo system Pending JP2003122433A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001316428A JP2003122433A (en) 2001-10-15 2001-10-15 Servo system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001316428A JP2003122433A (en) 2001-10-15 2001-10-15 Servo system

Publications (1)

Publication Number Publication Date
JP2003122433A true JP2003122433A (en) 2003-04-25

Family

ID=19134450

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001316428A Pending JP2003122433A (en) 2001-10-15 2001-10-15 Servo system

Country Status (1)

Country Link
JP (1) JP2003122433A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006123697A1 (en) * 2005-05-20 2006-11-23 Nakagawa Laboratories, Inc. Data transmitting apparatus and data receiving apparatus
JP4851942B2 (en) * 2003-12-19 2012-01-11 ジェンテックス コーポレイション Equipment with improved serial communication

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4851942B2 (en) * 2003-12-19 2012-01-11 ジェンテックス コーポレイション Equipment with improved serial communication
WO2006123697A1 (en) * 2005-05-20 2006-11-23 Nakagawa Laboratories, Inc. Data transmitting apparatus and data receiving apparatus
JP2006325085A (en) * 2005-05-20 2006-11-30 Nakagawa Kenkyusho:Kk Data transmitter and data receiver
JP4692991B2 (en) * 2005-05-20 2011-06-01 株式会社中川研究所 Data transmitting apparatus and data receiving apparatus

Similar Documents

Publication Publication Date Title
US6459363B1 (en) Two wire communication system
US4622682A (en) ARQ transmission system
US7911967B2 (en) Control and monitor signal transmission system
JP2016072962A (en) Serial data transmission method and device via bidirectional data transmission channel
CN109814441A (en) A kind of method that STM32 microcontroller receives absolute encoder data
US9823646B2 (en) Device and method for generating a trigger signal in a position-measuring device and corresponding position-measuring device
US7551669B2 (en) System for multiplexing independent signals
US6185252B1 (en) Process for decoding a digital signal and a bus system and a peripheral unit therefor
JP2003122433A (en) Servo system
US7248641B2 (en) Device for transmitting digital signals among mobile units
CN105680985B (en) Method and device for reading in a series of data streams
EP1357351A3 (en) Angle and torque detection apparatus with malfunction detection system
JPH0142539B2 (en)
CN112923957B (en) Signal processing method and device for servo driver and encoder
KR100596141B1 (en) Dynamometer system
JPH0923190A (en) Infrared-ray communication equipment
CN114342311B (en) Apparatus and method for synchronous serial data transmission
JP2001273582A (en) Signal transmitting device
JP3531797B2 (en) Encoder receiving circuit
JPH01148906A (en) Apparatus for detecting angle of rotation of industrial robot
JPS61294940A (en) Power supply and communication equipment using two electric wires
JPH0894386A (en) Rotary encoder
JP2021043481A (en) Complex sensing device, rotary machine, and rotary machine control system
JPH0619814A (en) Interface for information transmission equipment
JPH01199299A (en) Detector for bidirectional transmission

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050701

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051209

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060131

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20060530