JP2001082983A - Encoder receiving circuit - Google Patents

Encoder receiving circuit

Info

Publication number
JP2001082983A
JP2001082983A JP25668299A JP25668299A JP2001082983A JP 2001082983 A JP2001082983 A JP 2001082983A JP 25668299 A JP25668299 A JP 25668299A JP 25668299 A JP25668299 A JP 25668299A JP 2001082983 A JP2001082983 A JP 2001082983A
Authority
JP
Japan
Prior art keywords
data
encoder
circuit
receiving circuit
down counter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP25668299A
Other languages
Japanese (ja)
Other versions
JP3531797B2 (en
Inventor
Satoru Akase
悟 赤瀬
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.)
CKD Nikki Denso Co Ltd
Original Assignee
Nikki Denso 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 Nikki Denso Co Ltd filed Critical Nikki Denso Co Ltd
Priority to JP25668299A priority Critical patent/JP3531797B2/en
Publication of JP2001082983A publication Critical patent/JP2001082983A/en
Application granted granted Critical
Publication of JP3531797B2 publication Critical patent/JP3531797B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To enhance the position detecting accuracy of a motor control device combined with an encoder for detecting the amount of movement or the absolute position of a motor and transmitting detected data to the motor control device by serial data transmission. SOLUTION: This encoder receiving circuit comprises: a serial-to-parallel converting part 1 for receiving serial data and converting it into parallel data; a data latching circuit 2 for latching count data; a presettable up-down counter 3 for simulating count data for the actual time of an encoder; a pulse oscillator 4 for generating up-down pulses; a frequency setting circuit 5 determining the frequencies and directions of the pulses; and a capturing circuit 6 for capturing data on the up-down counter.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、モータの移動量あるい
は絶対位置を検出し、検出したデータをシリアルデータ
伝送によりモータ制御装置に送信するエンコーダと組み
合わせるモータ制御装置のエンコーダ受信回路に関する
ものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an encoder receiving circuit of a motor control device for detecting a moving amount or an absolute position of a motor and combining the detected data with an encoder for transmitting the detected data to the motor control device by serial data transmission. .

【0002】[0002]

【従来の技術】モータの移動量をパルスの数として検出
するエンコーダにおいて、移動量の分解能を上げるため
には単位長さ当たりのエンコーダの出力するパルス数を
多くする必要がある。 しかし反面、パルス周波数が高
くなり、データ伝送路に混入するノイズの周波数に近く
なりモータ制御装置側で正しく計数できない場合があ
る。
2. Description of the Related Art In an encoder that detects the amount of movement of a motor as the number of pulses, it is necessary to increase the number of pulses output from the encoder per unit length in order to increase the resolution of the amount of movement. However, on the other hand, the pulse frequency increases, and becomes close to the frequency of noise mixed into the data transmission path, so that the motor control device may not be able to count correctly.

【0003】この解決策として、エンコーダ側でパルス
を計数し、計数したカウントデータを、シリアル通信の
手法を用いて、一定の時間毎にモータ制御装置に送信す
る方法がある。 この方法によれば、データ変調速度即
ちパルス周波数はモータの移動速度によらず一定とな
り、データ変調速度をノイズの周波数より十分低くすれ
ばモータ制御装置側で正しく計数する事ができる。 ま
た、この方法によれば、モータの絶対位置をパルス符号
として検出したデータを同じ方法で処理することができ
る。 さらに、伝送データに誤り訂正符号を付加すれば
より正確に受信できる。
As a solution to this, there is a method in which pulses are counted on the encoder side, and the counted data is transmitted to the motor control device at regular intervals using a serial communication technique. According to this method, the data modulation speed, that is, the pulse frequency is constant irrespective of the moving speed of the motor, and if the data modulation speed is sufficiently lower than the frequency of the noise, the motor control device can correctly count. Further, according to this method, data obtained by detecting the absolute position of the motor as a pulse code can be processed by the same method. Further, if an error correction code is added to transmission data, more accurate reception can be achieved.

【0004】しかし、この方法ではエンコーダで計数し
たカウントデータを一定の時間毎にモータ制御装置に送
信するため、モータ制御装置は受信した時点でのカウン
トデータしか再生できない。 即ち、データ伝送時点の
間に変化しているカウントデータは分からない。
However, in this method, the count data counted by the encoder is transmitted to the motor control device at regular intervals, so that the motor control device can reproduce only the count data at the time of reception. That is, the count data changing during the data transmission time is not known.

【0005】[0005]

【発明が解決しようとする課題】解決しようとする問題
点は、モータの移動量あるいは絶対位置を検出し、検出
したデータをシリアルデータ伝送によりモータ制御装置
に送信するエンコーダと組み合わせるモータ制御装置の
エンコーダ受信回路において、データ伝送時点の間のエ
ンコーダの実時間のカウントデータが検出できない点で
ある。
The problem to be solved is that the encoder of the motor control device is combined with an encoder that detects the amount of movement or the absolute position of the motor and transmits the detected data to the motor control device by serial data transmission. The point that the receiving circuit cannot detect the real-time count data of the encoder during the data transmission time point.

【0006】[0006]

【課題を解決するための手段】請求項1に記載の発明
は、エンコーダ受信回路内にエンコーダのカウントデー
タを模擬するアップダウンカウンタを内蔵していること
を特徴とし、エンコーダから受信したカウントデータを
前記アップダウンカウンタにプリセットし、今回受信し
たカウントデータと前回までに受信したカウンタデータ
の変化分から計算した周波数と方向で前記アップダウン
カウンタのカウントデータを変化させるものである。
The invention according to claim 1 is characterized in that an up / down counter for simulating the count data of the encoder is built in the encoder receiving circuit, and the count data received from the encoder is stored in the up / down counter. The up / down counter is preset, and the count data of the up / down counter is changed at the frequency and direction calculated from the count data received this time and the change amount of the counter data received up to the previous time.

【0007】請求項2に記載の発明は、請求項1に記載
の発明において、エンコーダのカウントデータを模擬す
るアップダウンカウンタのカウントデータをキャプチャ
する回路を有することを特徴とし、時間的に変化するカ
ウントデータを外部事象に同期したタイミングでキャプ
チャさせるものである。
According to a second aspect of the present invention, in the first aspect of the present invention, there is provided a circuit for capturing count data of an up / down counter simulating count data of an encoder, and changes with time. The count data is captured at a timing synchronized with an external event.

【0008】本発明によれば、エンコーダのカウントデ
ータを模擬するアップダウンカウンタを設けたので、デ
ータ伝送時点の間のエンコーダの実時間のカウントデー
タを推定検出できる。 また、前記カウントデータを外
部信号によりキャプチャすることによりデータ伝送周期
と非同期な外部事象発生時のカウントデータを推定検出
できる。 また、前記キャプチャ機能によりデータ伝送
周期と速度などの制御周期を非同期にできる。
According to the present invention, since the up / down counter for simulating the count data of the encoder is provided, it is possible to estimate and detect the real-time count data of the encoder during the data transmission time. Further, by capturing the count data with an external signal, the count data at the time of occurrence of an external event that is asynchronous with the data transmission cycle can be estimated and detected. Further, the data transmission cycle and the control cycle such as speed can be made asynchronous by the capture function.

【0009】請求項3に記載の発明は、請求項1および
請求項2記載の発明において、周波数設定回路をソフト
ウェア処理で置き換えたものである。
According to a third aspect of the present invention, in the first and second aspects, the frequency setting circuit is replaced by software processing.

【0010】本発明によれば、ハードウェア回路の規模
を小さくすることができる。 さらに、周波数計算方法
の自由度が増え、ハードウェア回路では成し得ない高度
な計算手法を採ることができる。
According to the present invention, the scale of a hardware circuit can be reduced. Furthermore, the degree of freedom of the frequency calculation method is increased, and an advanced calculation method that cannot be performed by a hardware circuit can be employed.

【0011】[0011]

【実施例】以下本発明の一実施例について説明する。An embodiment of the present invention will be described below.

【0012】図1は本発明の一実施例におけるエンコー
ダ受信回路のブロック図である。図1において、1はシ
リアルパラレル変換部、2はデータラッチ部、3はアッ
プダウンカウンタ、4はパルス発振器、5は周波数設定
回路、6はキャプチャ回路である。
FIG. 1 is a block diagram of an encoder receiving circuit according to one embodiment of the present invention. In FIG. 1, 1 is a serial / parallel converter, 2 is a data latch, 3 is an up / down counter, 4 is a pulse oscillator, 5 is a frequency setting circuit, and 6 is a capture circuit.

【0013】以上のように構成されたエンコーダ受信回
路について、その動作を説明する。エンコーダからは一
定の時間毎にサンプリングされたエンコーダのカウント
データ、およびエンコーダの状態データなどがシリアル
データとして送られてくる。
The operation of the encoder receiving circuit configured as described above will be described. From the encoder, count data of the encoder sampled at regular intervals and status data of the encoder are transmitted as serial data.

【0014】シリアルパラレル変換部1は、前記シリア
ルデータをパラレルデータに変換する。 変換されたパ
ラレルデータ内のカウントデータ以外の部分は不図示の
回路により処理される。
The serial / parallel converter 1 converts the serial data into parallel data. Parts other than the count data in the converted parallel data are processed by a circuit (not shown).

【0015】パラレルデータに変換されたカウントデー
タはデータラッチ部2にラッチされる。
The count data converted into parallel data is latched by the data latch unit 2.

【0016】データラッチ部2から出力されるラッチ完
了信号により、ラッチされたカウントデータがアップダ
ウンカウンタ3にプリセットされるとともに、周波数設
定回路5は、前回までのカウントデータと、データラッ
チ部2内のカウントデータの変化から、次回のデータ伝
送までの変化量を予測し、この変化量分のパルスをデー
タ伝送周期中に等間隔で発生する周波数と、前記変化の
方向を決定する。
The latched count data is preset in the up / down counter 3 by the latch completion signal output from the data latch unit 2, and the frequency setting circuit 5 compares the count data up to the previous time with the data in the data latch unit 2. From the change in the count data, the amount of change until the next data transmission is predicted, and the frequency at which pulses corresponding to the amount of change are generated at equal intervals during the data transmission cycle and the direction of the change are determined.

【0017】周波数設定回路5で決定された周波数と方
向により、パルス発振器4は前記周波数で、前記方向で
指示されたアップパルス、または、ダウンパルスを発生
する。
According to the frequency and direction determined by the frequency setting circuit 5, the pulse generator 4 generates an up pulse or a down pulse designated by the direction at the frequency.

【0018】パルス発振器4で発生したパルスをアップ
ダウンカウンタ3で計数する。
The pulses generated by the pulse oscillator 4 are counted by the up / down counter 3.

【0019】以上の動作により、アップダウンカウンタ
3には、データ伝送時点の間のエンコーダの実時間のカ
ウントデータの推定値が得られる。 なお、アップダウ
ンカウンタ3は、最新の受信データでプリセットされる
ので、推定誤差は累積しない。
With the above operation, the estimated value of the real-time count data of the encoder during the data transmission time is obtained in the up-down counter 3. Since the up / down counter 3 is preset with the latest received data, the estimation error does not accumulate.

【0020】次に、キャプチャ機能について説明する。
キャプチャ回路6は、外部信号によりアップダウンカ
ウンタ3のカウントデータをキャプチャする。
Next, the capture function will be described.
The capture circuit 6 captures count data of the up / down counter 3 using an external signal.

【0021】以上の動作により、キャプチャ回路6に
は、データ伝送周期とは非同期の外部事象発生時のエン
コーダの実時間のカウントデータの推定値が得られる。
前記外部事象を速度制御のサンプリング周期にすれば
データ伝送周期と速度制御の周期を非同期にできる。
なお、キャプチャ回路を複数個設ければ複数の外部事象
に対応できる。
By the above operation, the capture circuit 6 obtains an estimated value of the real-time count data of the encoder when an external event occurs which is asynchronous with the data transmission cycle.
If the external event is used as a sampling cycle for speed control, the data transmission cycle and the speed control cycle can be made asynchronous.
If a plurality of capture circuits are provided, a plurality of external events can be handled.

【0022】[0022]

【発明の効果】以上説明したように本発明のエンコーダ
受信回路は、受信回路内にエンコーダの実時間のカウン
トデータの推定値を持っているので、データ伝送時点の
間のカウントデータを推定検出できる。 また、前記カ
ウントデータの推定値を外部信号によりキャプチャする
ことによりデータ伝送周期と非同期な外部事象発生時の
エンコーダの実時間のカウントデータを推定検出でき
る。 また、前記キャプチャ機能によりデータ伝送周期
と速度などの制御周期を非同期にできる。
As described above, since the encoder receiving circuit of the present invention has an estimated value of the real-time count data of the encoder in the receiving circuit, the count data during the data transmission time can be estimated and detected. . Further, by capturing the estimated value of the count data by an external signal, it is possible to estimate and detect the real-time count data of the encoder when an external event occurs that is asynchronous with the data transmission cycle. Further, the data transmission cycle and the control cycle such as speed can be made asynchronous by the capture function.

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

【図1】本発明のエンコーダ受信回路の一実施例の説明
図である。
FIG. 1 is an explanatory diagram of one embodiment of an encoder receiving circuit of the present invention.

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

1 シリアルパラレル変換部 2 データラッチ部 3 アップダウンカウンタ 4 パルス発振器 5 周波数設定回路 6 キャプチャ回路 DESCRIPTION OF SYMBOLS 1 Serial-parallel conversion part 2 Data latch part 3 Up / down counter 4 Pulse oscillator 5 Frequency setting circuit 6 Capture circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 モータの移動量あるいは絶対位置を検出
し、検出したデータをシリアルデータ伝送によりモータ
制御装置に送信するエンコーダと組み合わせるモータ制
御装置のエンコーダ受信回路において、エンコーダから
伝送されてくるシリアルデータを受信し、パラレル変換
するシリアルパラレル変換部と、前記シリアルパラレル
変換部からのカウントデータをラッチするデータラッチ
部と、エンコーダの実時間のカウントデータを模擬する
プリセット可能なアップダウンカウンタと、アップダウ
ンパルスを発生するパルス発振器と、パルス周波数と方
向を決定する周波数設定回路を備えたエンコーダ受信回
路。
1. An encoder receiving circuit of a motor control device for detecting an amount of movement or an absolute position of a motor and transmitting the detected data to the motor control device by serial data transmission in an encoder receiving circuit of the motor control device. A serial-to-parallel conversion unit for receiving and parallel-converting the data, a data latch unit for latching count data from the serial-to-parallel conversion unit, a presettable up / down counter that simulates real-time count data of an encoder, and an up / down counter. An encoder receiving circuit including a pulse generator that generates a pulse and a frequency setting circuit that determines a pulse frequency and a direction.
【請求項2】 エンコーダの実時間のカウントデータを
模擬するプリセット可能なアップダウンカウンタのデー
タを、エンコーダからのデータ伝送タイミングとは非同
期のタイミングでキャプチャするキャプチャ回路を備え
た請求項1記載のエンコーダ受信回路。
2. The encoder according to claim 1, further comprising a capture circuit for capturing data of a presettable up / down counter simulating real-time count data of the encoder at a timing asynchronous with a data transmission timing from the encoder. Receiver circuit.
【請求項3】 請求項1に記載のエンコーダ受信回路に
おいて、データラッチ部をCPUから読み出し可能と
し、パルス発振器をCPUから書き込み可能とし、周波
数設定回路をソフトウェア処理で置き換えた請求項1お
よび請求項2記載のエンコーダ受信回路。
3. The encoder receiving circuit according to claim 1, wherein the data latch unit is readable from the CPU, the pulse oscillator is writable from the CPU, and the frequency setting circuit is replaced by software processing. 2. The encoder receiving circuit according to 2.
JP25668299A 1999-09-10 1999-09-10 Encoder receiving circuit Expired - Fee Related JP3531797B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25668299A JP3531797B2 (en) 1999-09-10 1999-09-10 Encoder receiving circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25668299A JP3531797B2 (en) 1999-09-10 1999-09-10 Encoder receiving circuit

Publications (2)

Publication Number Publication Date
JP2001082983A true JP2001082983A (en) 2001-03-30
JP3531797B2 JP3531797B2 (en) 2004-05-31

Family

ID=17296015

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25668299A Expired - Fee Related JP3531797B2 (en) 1999-09-10 1999-09-10 Encoder receiving circuit

Country Status (1)

Country Link
JP (1) JP3531797B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015026995A (en) * 2013-07-26 2015-02-05 村田機械株式会社 Receiver for remote control device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01237416A (en) * 1988-03-17 1989-09-21 Mitsutoyo Corp Absolute length measuring method
JPH06258097A (en) * 1993-03-09 1994-09-16 Mitsutoyo Corp Displacement measuring apparatus
JPH08261794A (en) * 1995-03-24 1996-10-11 Mitsubishi Electric Corp Encoder apparatus and servo motor control apparatus
JPH0972928A (en) * 1995-09-07 1997-03-18 Honda Motor Co Ltd Number-of-revolution measuring apparatus
JPH10170307A (en) * 1996-12-12 1998-06-26 Meidensha Corp Device for detecting position of magnetic pole of rotary electric machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01237416A (en) * 1988-03-17 1989-09-21 Mitsutoyo Corp Absolute length measuring method
JPH06258097A (en) * 1993-03-09 1994-09-16 Mitsutoyo Corp Displacement measuring apparatus
JPH08261794A (en) * 1995-03-24 1996-10-11 Mitsubishi Electric Corp Encoder apparatus and servo motor control apparatus
JPH0972928A (en) * 1995-09-07 1997-03-18 Honda Motor Co Ltd Number-of-revolution measuring apparatus
JPH10170307A (en) * 1996-12-12 1998-06-26 Meidensha Corp Device for detecting position of magnetic pole of rotary electric machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015026995A (en) * 2013-07-26 2015-02-05 村田機械株式会社 Receiver for remote control device

Also Published As

Publication number Publication date
JP3531797B2 (en) 2004-05-31

Similar Documents

Publication Publication Date Title
US4549297A (en) Data retransmitting system
CN111726115A (en) Frequency division and counting system and method for pulse signals of rotary pulse encoder
US9823646B2 (en) Device and method for generating a trigger signal in a position-measuring device and corresponding position-measuring device
CN110879298B (en) Speed acquisition method based on communication type encoder
JPH04222130A (en) Interference detection circuit
JP2001082983A (en) Encoder receiving circuit
KR100735407B1 (en) Apparatus and method for estimating distance using time of arrival
JP3846330B2 (en) Collected data synchronization method and data processing system
JP2002341943A (en) Method for inputting positional data of servo motor into motion controller and device for carrying out the same method
CN110823261B (en) Encoder and data transmission method
JPH061279B2 (en) Digital speed detector
JP2638329B2 (en) Distance measurement method for laser radar
JP4202187B2 (en) Encoder data transmission / reception method and apparatus
JP2005091270A (en) Encoder communication abnormality detection device
JP4857575B2 (en) Pulse radar equipment
KR100195645B1 (en) Method for detecting the code-data in remote controller signal
JP2559237Y2 (en) Serial data sampling signal generator
JP2003185465A (en) Inertia equipment
JPH0815362A (en) Surge location system for transmission line
CN114440872A (en) Synchronous sampling method and device for multiple groups of inertial sensors
JP3824043B2 (en) Encoder system
SU1628215A1 (en) Data transceiver
JP3268320B2 (en) SN ratio judgment circuit
JPH1188446A (en) Data sampling circuit
KR0174970B1 (en) Code data detection method of remote control signal

Legal Events

Date Code Title Description
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: 20040210

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040226

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees