JPH10160516A - Encoder device and encoder data processing device - Google Patents

Encoder device and encoder data processing device

Info

Publication number
JPH10160516A
JPH10160516A JP31641396A JP31641396A JPH10160516A JP H10160516 A JPH10160516 A JP H10160516A JP 31641396 A JP31641396 A JP 31641396A JP 31641396 A JP31641396 A JP 31641396A JP H10160516 A JPH10160516 A JP H10160516A
Authority
JP
Japan
Prior art keywords
data
position data
relative position
encoder
rotation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP31641396A
Other languages
Japanese (ja)
Inventor
Hideyuki Ishii
秀幸 石井
Shigeharu Kato
茂春 加藤
Mitsuru Kurahashi
満 倉橋
Shoji Ito
昭二 伊藤
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.)
Sanyo Electric Co Ltd
Sanyo Denki Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Sanyo Denki 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 Sanyo Electric Co Ltd, Sanyo Denki Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP31641396A priority Critical patent/JPH10160516A/en
Publication of JPH10160516A publication Critical patent/JPH10160516A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an encoder device whose data processing time on the side of reception can be shortened. SOLUTION: A parallel-serial converting means 5 is composed so that relative position data and alarm-warning data may be accommodated in the first data frame to be previously transmitted, and absolute position data may be accommodated in the second data frame to be later transmitted. Relative position data counter 2 composes relative position data for one revolution of the bits of number obtained by subtracting the number of bits necessary for accommodating the alarm warning data from the number of bits allotted for the transmission of data in the first data frame.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ロータリエンコー
ダに異常が発生したことを示すアラーム・ワーニング・
データを出力するエンコーダ装置及びこのエンコーダ装
置からの出力を受信して処理するエンコーダ・データ処
理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an alarm / warning signal indicating that an abnormality has occurred in a rotary encoder.
The present invention relates to an encoder device that outputs data and an encoder / data processing device that receives and processes an output from the encoder device.

【0002】[0002]

【従来の技術】わが国において、最も一般的なエンコー
ダ装置のエンコーダ・データの送信フォーマットは、1
回転中の相対位置データを第1のデータ・フレームに収
納し、絶対位置データとアラーム・ワーニング・データ
を第2のデータ・フレームに収納し、第1のデータ・フ
レームを送信した後、所定時間経過した後に第2のデー
タ・フレームを送信するフォーマットである。
2. Description of the Related Art In Japan, the most common encoder data transmission format is an encoder data transmission format.
The relative position data during the rotation is stored in a first data frame, the absolute position data and the alarm warning data are stored in a second data frame, and after transmitting the first data frame, a predetermined time has elapsed. This is a format for transmitting a second data frame after a lapse.

【0003】[0003]

【発明が解決しようとする課題】しかしながら従来のよ
うに、アラーム・ワーニング・データを第2のデータ・
フレームに収納して伝送する場合、受信側の装置では常
に第2のデータ・フレームの受信の完了を待って、アラ
ーム・ワーニング・データが無いことを確認してから受
信したデータの処理を行っている。そのため従来のエン
コーダ装置を用いた場合には、受信側装置でのデータ処
理時間が遅くなる問題が発生する。
However, as in the prior art, the alarm warning data is stored in the second data
When transmitting data in a frame, the receiving device always waits for the completion of the reception of the second data frame, confirms that there is no alarm warning data, and processes the received data. I have. Therefore, when the conventional encoder device is used, there is a problem that the data processing time in the receiving device becomes slow.

【0004】本発明の目的は、受信側でのデータ処理時
間が速くなるエンコーダ装置を提供することにある。
[0004] It is an object of the present invention to provide an encoder device in which the data processing time on the receiving side is shortened.

【0005】本発明の他の目的は、受信側で従来よりも
速くアラーム・ワーニング・データの有無を確認できる
エンコーダ装置を提供することにある。
[0005] Another object of the present invention is to provide an encoder device capable of confirming presence / absence of alarm / warning data at a receiving side faster than before.

【0006】本発明の別の目的は、イニシャル段階だけ
第2のデータ・フレームのデータを必要とするが、その
後は第1のデータ・フレームのデータだけで、迅速に相
対的位置データと多回転データとを得ることができるエ
ンコーダ・データ処理装置を提供することにある。
It is another object of the present invention to require the data of the second data frame only in the initial stage, but thereafter, only the data of the first data frame, and quickly move relative position data and multiple rotations. An object of the present invention is to provide an encoder / data processing device capable of obtaining data.

【0007】[0007]

【課題を解決するための手段】本発明のエンコーダ装置
は、インクリメンタルなロータリエンコーダから出力さ
れるエンコーダ信号に基づいて1回転中の相対位置デー
タを出力する相対位置データ・カウンタと、エンコーダ
信号に基づいて絶対位置データを出力する絶対位置デー
タ・カウンタと、ロータリエンコーダの異常を検出し且
つ異常を検出したときにアラーム・ワーニング・データ
を出力する異常検出手段と、相対位置データと絶対位置
データとアラーム・ワーニング・データを第1及び第2
のデータ・フレームに分けて収納したシリアル・データ
を作成し、リクエスト信号に応じてシリアル・データを
送信手段を通して送信するパラレル・シリアル変換手段
とを具備するエンコーダ装置を改良の対象とする。
SUMMARY OF THE INVENTION An encoder device according to the present invention comprises a relative position data counter for outputting relative position data during one rotation based on an encoder signal output from an incremental rotary encoder; An absolute position data counter that outputs absolute position data by means of an encoder; an abnormality detector that detects an abnormality of the rotary encoder and outputs alarm warning data when the abnormality is detected; a relative position data, an absolute position data, and an alarm・ Warning data is first and second
An object of the present invention is to provide an encoder device having parallel data converting means for generating serial data stored in the form of a data frame and transmitting the serial data through a transmitting means in response to a request signal.

【0008】本発明においては、パラレル・シリアル変
換手段を、先に送信される第1のデータ・フレームに相
対位置データとアラーム・ワーニング・データを収納
し、そして後から送信される第2のデータ・フレームに
絶対位置データを収納するように構成する。そして本発
明では、ロータリエンコーダまたは相対位置データ・カ
ウンタを、第1のデータ・フレームにおいてデータ送信
に割り当てられているビットの数からアラーム・ワーニ
ング・データの収納に必要なビットの数を引いた数のビ
ットで相対位置データが構成されるように構成する。
In the present invention, the parallel-serial conversion means stores relative position data and alarm warning data in the first data frame transmitted first, and stores the second data transmitted later in the first data frame. -It is configured to store absolute position data in the frame. In the present invention, the rotary encoder or the relative position data counter is obtained by subtracting the number of bits required for storing alarm warning data from the number of bits allocated to data transmission in the first data frame. Are configured so that the relative position data is constituted by the bits.

【0009】従来、第2のデータ・フレームにアラーム
・ワーニング・データを収納していたのは、第1のデー
タ・フレームに収納するデータ量を1回転分のデータに
するためであった。しかしながら発明者の研究による
と、実際には従来のように1回転分のデータでなくて
も、各種の制御を十分に行えることが分かった。しかし
ながら既存のエンコーダ装置は、従来の常識に従って、
第2のデータ・フレームにアラーム・ワーニング・デー
タを収納していた。そこで発明者は、従来の常識を捨て
て、第1のデータ・フレームにアラーム・ワーニング・
データを収納することを考えた。第1のデータ・フレー
ムにアラーム・ワーニング・データを収納するために
は、アラーム・ワーニング・データを収納するためのビ
ットの数を第1のデータ・フレームでデータ送信に割当
てられたビットの数から引いたビットの数で1回転分の
相対位置データを構成することになる。例えば、15ビ
ットがデータ送信に割当てられたビットの数であり、ア
ラーム・ワーニング・データに2ビット必要であるとす
ると、1回転分の相対位置データには13ビット分が用
いられる。したがってこの場合には、分解能が213即ち
8192となる。この分解能は、15ビットを1回転分
の相対位置データのために使用した場合と比べて1/4
回転分のデータになるが、特に問題は生じない。そして
従来と同じ1回転あたり15ビット分の相対位置データ
を出力するロータリエンコーダを用いる場合には、相対
位置データ・カウンタの前段部に13ビットで1/4回
転分の相対位置データとするため手段を内蔵しておけば
よい。
Conventionally, the reason why alarm warning data is stored in the second data frame is to reduce the amount of data stored in the first data frame to one rotation of data. However, according to the study of the inventor, it has been found that various controls can be sufficiently performed without actually using data for one rotation as in the related art. However, existing encoder devices, according to conventional common sense,
The alarm data was stored in the second data frame. Therefore, the inventor discarded the conventional common sense and added an alarm warning to the first data frame.
I thought about storing data. In order to store the alarm warning data in the first data frame, the number of bits for storing the alarm warning data is calculated from the number of bits allocated to data transmission in the first data frame. The relative position data for one rotation is constituted by the number of subtracted bits. For example, if 15 bits are the number of bits allocated for data transmission and two bits are required for alarm warning data, 13 bits are used for relative position data for one rotation. Therefore, in this case, the resolution is 2 13, that is, 8192. This resolution is 1/4 of the case where 15 bits are used for relative position data for one rotation.
Although it becomes data for the rotation, no particular problem occurs. When using the same rotary encoder that outputs the relative position data of 15 bits per rotation as in the conventional case, the relative position data of 13 bits is set at the front stage of the relative position data counter to be 1/4 rotation. Should be built in.

【0010】受信側ではイニシャライズ(初期動作)に
おいて絶対位置データを得た以後は、相対位置データの
入力があれば受信側で多回転絶対位置データを作ること
ができる。したがってイニシャライズ以降は第2のデー
タ・フレームで送信されて来るデータは不要である。本
発明のように第1のデータ・フレームに相対位置データ
とアラーム・ワーニング・データを収納すれば、受信側
ではイニシャライズ以降は第1のデータ・フレームを受
信したら第2のデータ・フレームの受信を待たずに直ち
にデータ処理を開始することができる。そのため受信側
でのデータ処理時間が速くなる利点が得られる。
After obtaining the absolute position data in the initialization (initial operation) on the receiving side, if the relative position data is input, the receiving side can create the multi-rotation absolute position data. Therefore, after the initialization, the data transmitted in the second data frame is unnecessary. When the relative position data and the alarm warning data are stored in the first data frame as in the present invention, the reception side receives the first data frame after the initialization and then receives the second data frame. Data processing can be started immediately without waiting. Therefore, there is an advantage that the data processing time on the receiving side is shortened.

【0011】なおその場合に、受信側での多回転データ
の作成処理を容易にするためには、受信側の装置に、エ
ンコーダ装置から送信される相対位置データをn(nは
2以上の整数)分割してカウント値を更新する相対位置
データ受信カウンタと、絶対位置データを受信すると、
以後受信した絶対位置データをベースにして相対位置デ
ータ受信カウンタの出力に基づいて多回転データを作成
する多回転データ作成手段とを有するエンコーダ・デー
タ処理装置を設ければよい。相対位置データ受信カウン
タは、エンコーダ装置から送信される相対位置データが
1/n回転したことを示す相対位置データになるとカウ
ント・データを更新して(クリアして)、相対位置デー
タをn分割する。例えばnを4とすると、エンコーダ装
置から送信されてくる相対位置データが13ビット(2
13=8192)で構成されている場合には、受信側の相
対位置データ受信カウンタでは11ビットまでのデータ
(211=2048)でカウント値を更新すること意味す
る。これにより受信側では、相対位置データを4分割し
て処理する。多回転データ作成手段は、相対位置データ
受信カウンタが4回更新されると、1回転増えたと判断
して多回転データを更新する。
In this case, in order to facilitate the process of generating multi-rotation data on the receiving side, the relative position data transmitted from the encoder device is transmitted to the receiving side device by n (n is an integer of 2 or more). ) Relative position data reception counter that divides and updates the count value, and when absolute position data is received,
Thereafter, an encoder data processing device having multi-rotation data generating means for generating multi-rotation data based on the output of the relative position data reception counter based on the received absolute position data may be provided. The relative position data reception counter updates (clears) the count data when the relative position data transmitted from the encoder device becomes relative position data indicating 1 / n rotation, and divides the relative position data into n. . For example, if n is 4, the relative position data transmitted from the encoder device is 13 bits (2 bits).
13 = 8192), it means that the relative value data reception counter on the receiving side updates the count value with data of up to 11 bits (2 11 = 2048). Thus, the receiving side processes the relative position data by dividing it into four parts. When the relative position data reception counter is updated four times, the multi-rotation data creation unit determines that the rotation has increased by one rotation and updates the multi-rotation data.

【0012】[0012]

【発明の実施の形態】以下図面を参照して、本発明のエ
ンコーダ装置及びエンコーダ・データ処理装置の実施の
形態の一例を詳細に説明する。図1は、本発明のエンコ
ーダ装置の構成と受信側装置の一部の構成を概略的に示
すブロック図である。図1において、1はインクリメン
タルなロータリエンコーダであり、ロタリーエンコーダ
1からは例えばモータのシャフトによって回転駆動され
る回転板が1回転する間に一定周期で215個のパルス信
号と回転板が1回転する間に1回だけその絶対位置を示
す絶対位置信号(Cチャンネル信号)とが出力される。
相対位置データ・カウンタ2は、前段部にロータリエン
コーダ1から出力される215個のパルス信号を213のパ
ルス信号に分周する(1/4にする)分周手段を内蔵し
ていて、分周したパルス信号をカウントする。したがっ
て相対位置データ・カウンタ2は、二進値でデータを記
憶し、8192個のパルスをカウントする毎にデータを
更新する即ちリセットされる。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of an encoder apparatus and an encoder / data processing apparatus according to the present invention; FIG. 1 is a block diagram schematically showing a configuration of an encoder device according to the present invention and a partial configuration of a receiving side device. In Figure 1, 1 is a incremental rotary encoder, the rotary plate is rotated 1 and 2 15 pulses signal at a constant period while B tally rotating plate which is rotated by, for example, the shaft of the motor from the encoder 1 is rotated 1 During this operation, an absolute position signal (C channel signal) indicating the absolute position is output only once.
The relative position data counter 2 has a built-in frequency dividing means at its front stage to divide (2/4) the 2 15 pulse signals output from the rotary encoder 1 into 2 13 pulse signals. The divided pulse signal is counted. Thus, the relative position data counter 2 stores the data as a binary value and updates or resets the data every time 8192 pulses are counted.

【0013】絶対位置データ・カウンタ3は、二進値で
回転量を記憶しており、絶対位置信号(Cチャンネル信
号)が入力されるたびにカウント値をリセットする。
The absolute position data counter 3 stores the amount of rotation as a binary value, and resets the count value each time an absolute position signal (C channel signal) is input.

【0014】異常検出手段4は、ロータリエンコーダ1
に異常が発生したことを検出し、異常の発生の有無を示
す信号(アラーム・ワーニング・データ)を出力する。
なおこのエンコーダの異状検出方法は周知であるので詳
しい説明は省略するが、一般的には出力信号の発生状況
から異常の発生を判定する。
The abnormality detecting means 4 includes the rotary encoder 1
Detects that an error has occurred, and outputs a signal (alarm warning data) indicating whether or not the error has occurred.
Since a method for detecting the abnormality of the encoder is well known, a detailed description thereof will be omitted, but in general, the occurrence of an abnormality is determined from the state of occurrence of an output signal.

【0015】パラレル・シリアル変換手段5は、相対位
置データ・カウンタ2からの相対位置データと、絶対位
置データ・カウンタ3からの絶対位置データと、異常検
出手段4からのアラーム・ワーニング・データを、シリ
アルデータに変換する。パラレル・シリアル変換手段5
は、受信側の装置のリクエスト信号発生手段13からの
リクエスト信号を受信手段7が受信するたびに、その時
の各データをシリアルデータに変換して送信手段6から
受信側の装置に出力する。図2は、シリアルデータのフ
ォーマットを示している。この例では、それぞれ25ビ
ットからなる2つのデータ・フレームに、1回転中の相
対位置データと絶対位置データとアラーム・ワーニング
・データを分散する。特に、この例では、先に送信され
る第1のデータ・フレームAのデータ(15ビット)中
に2ビットを使ってアラーム・ワーニング・データを収
納し、残りの13ビットで相対位置データを送信する。
そして後から送信される第2のデータ・フレームB中に
絶対位置データを収納する。送信時間は、図2に示す通
りであり、第1のデータ・フレームAと第2のデータ・
フレームBとの間には16μsのスペース期間が含まれ
る。なお各データ・フレームのその他のビットは、スタ
ートビット,モードビット,アドレスビット,CRCビ
ット,ストップビットとして用いられる。
The parallel-serial conversion means 5 converts the relative position data from the relative position data counter 2, the absolute position data from the absolute position data counter 3, and the alarm warning data from the abnormality detection means 4 into Convert to serial data. Parallel / serial conversion means 5
Each time the receiving means 7 receives a request signal from the request signal generating means 13 of the receiving apparatus, it converts each data at that time into serial data and outputs it from the transmitting means 6 to the receiving apparatus. FIG. 2 shows a format of serial data. In this example, the relative position data, the absolute position data, and the alarm warning data during one rotation are distributed to two data frames each having 25 bits. Particularly, in this example, two bits are used to store the alarm warning data in the data (15 bits) of the first data frame A transmitted earlier, and the relative position data is transmitted using the remaining 13 bits. I do.
Then, the absolute position data is stored in the second data frame B transmitted later. The transmission time is as shown in FIG. 2, where the first data frame A and the second data frame
Between the frame B, a space period of 16 μs is included. The other bits of each data frame are used as a start bit, a mode bit, an address bit, a CRC bit, and a stop bit.

【0016】図3の(A)において破線で示した波形
が、相対位置データ・カウンタ2のデータ波形であり、
1回転中に8192のパルスをカウントしている。図3
(B)は1回転に1回ロータリエンコーダ1から出力さ
れるCチャンネル信号である。図3(C)はリクエスト
信号であり、この例では200〜250μsの周期でリ
クエスト信号が発生する。
The waveform shown by the broken line in FIG. 3A is the data waveform of the relative position data counter 2,
8192 pulses are counted during one rotation. FIG.
(B) is a C channel signal output from the rotary encoder 1 once per rotation. FIG. 3C shows a request signal. In this example, the request signal is generated at a period of 200 to 250 μs.

【0017】受信側の装置では、従来と同様にして相対
位置データ・カウンタ2のデータと絶対位置データ・カ
ウンタ3のデータをそのまま利用してもよい。しかしな
がら本発明のエンコーダ装置のように、第1のデータ・
フレームAにアラーム・ワーニング・データを含ませる
と、受信側では第1のデータ・フレームAを読み込んだ
段階で、異常(アラーム)がなければその後のデータの
処理を開始しても差支えがない。そこで、この例では受
信側の装置に、エンコーダ装置から送信される相対位置
データをn(nは2以上の整数)分割してカウント値を
更新する相対位置データ受信カウンタ11と、最初に絶
対位置データを受信すると、以後受信した絶対位置デー
タをベースにして相対位置データ受信カウンタの出力に
基づいて多回転データを作成する多回転データ作成手段
12とを備えたエンコーダ信号処理装置を設けている。
On the receiving side, the data of the relative position data counter 2 and the data of the absolute position data counter 3 may be used as they are in the same manner as in the prior art. However, as in the encoder device of the present invention, the first data
If the alarm warning data is included in the frame A, the receiving side can start the processing of the subsequent data if there is no abnormality (alarm) at the stage of reading the first data frame A. Therefore, in this example, the relative position data reception counter 11 that divides the relative position data transmitted from the encoder device into n (n is an integer of 2 or more) and updates the count value is provided to the receiving side device. An encoder signal processing device is provided which includes multi-rotation data generating means 12 for generating multi-rotation data based on the output of the relative position data reception counter based on the absolute position data received after receiving the data.

【0018】この相対位置データ受信カウンタ11は、
n=4に設定されていて、エンコーダ装置から送信され
る相対位置データが1/4回転(90度回転)したこと
を示す相対位置データになるとカウント・データを更新
して(クリアして)、相対位置データを4分割する。そ
の状態は図3(A)に実線波形で示した通りである。即
ち、エンコーダ装置から送信されてくる相対位置データ
は13ビット(213=8192)で構成されているが、
受信側の相対位置データ受信カウンタ11では11ビッ
トまでのデータ(211=2048)でカウント値を更新
する。その結果、受信側では、相対位置データを4分割
して処理し、多回転データ作成手段12は、相対位置デ
ータ受信カウンタ11が4回更新されると、1回転増え
たと判断して多回転データを更新する。
This relative position data reception counter 11
When n = 4 is set and the relative position data transmitted from the encoder device becomes relative position data indicating that the rotation has been performed by 1/4 rotation (rotation by 90 degrees), the count data is updated (cleared). The relative position data is divided into four parts. The state is as shown by the solid line waveform in FIG. That is, the relative position data transmitted from the encoder device is composed of 13 bits (2 13 = 8192),
The relative position data reception counter 11 on the receiving side updates the count value with data of up to 11 bits (2 11 = 2048). As a result, on the receiving side, the relative position data is divided into four and processed, and when the relative position data reception counter 11 is updated four times, the multi-rotation data generation unit 12 determines that the rotation has increased by one rotation, and To update.

【0019】このようなエンコーダ信号処理装置を受信
側に設けると、受信側ではイニシャライズ(初期動作)
において多回転データを得た以後は、相対位置データの
入力があれば受信側で多回転データを作ることができる
ので、イニシャライズ以降は第2のデータ・フレームの
受信を待たずに直ちにデータ処理を開始することができ
る。そのため受信側でのデータ処理時間が速くなる利点
が得られる。
When such an encoder signal processing device is provided on the receiving side, the receiving side initializes (initial operation)
After the multi-rotation data is obtained in step (1), if the relative position data is input, the multi-rotation data can be created on the receiving side. Therefore, after the initialization, the data processing is performed immediately without waiting for the reception of the second data frame. You can start. Therefore, there is an advantage that the data processing time on the receiving side is shortened.

【0020】上記例では、ロータリエンコーダが一方向
に回転するものとして説明したが、エンコーダが逆方向
に回転する場合には、逆方向判別回路を設けて、相対位
置データ・カウンタ2及び絶対位置データ・カウタン3
のカウンタ値を加減算するようにすればよい。受信側で
も同様である。なお、受信側で4分割した場合でも、リ
クエスト信号の周期を前述の200〜250μsに設定
すれば、ロータリエンコーダを取り付けるモータの回転
が4500rpmであっても、正転・逆転の判断は確実
に行える。
In the above example, the rotary encoder is described as rotating in one direction. However, when the encoder rotates in the reverse direction, a reverse direction discriminating circuit is provided to provide the relative position data counter 2 and the absolute position data.・ Coutan 3
May be added or subtracted. The same applies to the receiving side. Even if the receiving side is divided into four, if the cycle of the request signal is set to the above-described 200 to 250 μs, the forward rotation / reverse rotation can be reliably determined even if the rotation of the motor on which the rotary encoder is mounted is 4500 rpm. .

【0021】上記例では、相対位置データ・カウンタ2
として前段部に13ビットで1回転分の相対位置データ
とするための分周処理(1/4の分周)を行う分周手段
を内蔵するものを用いたが、ロータリエンコーダ1とし
て1回転あたり13ビット分のパルス信号を出力するロ
ータリエンコーダを用いてもよい。
In the above example, the relative position data counter 2
As the rotary encoder 1, a rotary encoder 1 has a built-in frequency dividing means for performing frequency division processing (1/4 frequency division) for obtaining relative position data for one rotation with 13 bits. A rotary encoder that outputs a 13-bit pulse signal may be used.

【0022】[0022]

【発明の効果】本発明のエンコーダ装置によれば、第1
のデータ・フレームに相対位置データとアラーム・ワー
ニング・データを収納するため、受信側ではイニシャラ
イズ以降は第1のデータ・フレームを受信したら第2の
データ・フレームの受信を待たずに直ちにデータ処理を
開始することができ、受信側でのデータ処理時間が速く
なる利点が得られる。
According to the encoder device of the present invention, the first
Since the relative position data and the alarm warning data are stored in the data frame of the first data frame after receiving the first data frame after the initialization, the data processing is immediately performed without waiting for the reception of the second data frame. It is possible to start, and the advantage that the data processing time on the receiving side is shortened is obtained.

【0023】また本発明のエンコーダ・データ処理装置
を用いると、イニシャル段階だけ第2のデータ・フレー
ムのデータを必要とするが、その後は第1のデータ・フ
レームのデータだけで、迅速に相対的位置データと多回
転データを得ることができるため、データ処理時間を速
くできる。
Further, when the encoder / data processing apparatus of the present invention is used, the data of the second data frame is required only in the initial stage, but thereafter, only the data of the first data frame is used. Since position data and multi-turn data can be obtained, data processing time can be shortened.

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

【図1】本発明のエンコーダ装置の構成と受信側装置の
一部の構成を概略的に示すブロック図である。
FIG. 1 is a block diagram schematically illustrating a configuration of an encoder device according to the present invention and a partial configuration of a reception-side device.

【図2】送信フォーマットの一例を示す図である。FIG. 2 is a diagram illustrating an example of a transmission format.

【図3】(A)は相対位置データを示すデータ波形であ
り、(B)は1回転に1回ロータリエンコーダから出力
されるCチャンネル信号であり、(C)はリクエスト信
号である。
3A is a data waveform showing relative position data, FIG. 3B is a C channel signal output from the rotary encoder once per rotation, and FIG. 3C is a request signal.

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

1 ロータリエンコーダ 2 相対位置データ・カウンタ 3 絶対位置データ・カウンタ 4 異常検出手段 5 パラレル・シリアル変換手段 6 送信手段 7 受信手段 11 相対位置データ受信カウンタ 12 多回転データ作成手段 DESCRIPTION OF SYMBOLS 1 Rotary encoder 2 Relative position data counter 3 Absolute position data counter 4 Abnormality detection means 5 Parallel / serial conversion means 6 Transmission means 7 Reception means 11 Relative position data reception counter 12 Multi-rotation data creation means

───────────────────────────────────────────────────── フロントページの続き (72)発明者 伊藤 昭二 東京都豊島区北大塚一丁目十五番一号 山 洋電気株式会社内 ────────────────────────────────────────────────── ─── Continued on the front page (72) Inventor Shoji Ito 1-15-1-1, Kita-Otsuka, Toshima-ku, Tokyo Inside Yamayo Denki Co., Ltd.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 インクリメンタルなロータリエンコーダ
から出力されるエンコーダ信号に基づいて相対位置デー
タを出力する相対位置データ・カウンタと、 前記エンコーダ信号に基づいて1回転中の絶対位置デー
タを出力する絶対位置データ・カウンタと、 前記ロータリエンコーダの異常を検出し且つ異常を検出
したときにアラーム・ワーニング・データを出力する異
常検出手段と、 前記相対位置データと前記絶対位置データと前記アラー
ム・ワーニング・データを第1及び第2のデータ・フレ
ームに分けて収納したシリアル・データを作成し、リク
エスト信号に応じて前記シリアル・データを送信手段を
通して送信するパラレル・シリアル変換手段とを具備す
るエンコーダ装置であって、 前記パラレル・シリアル変換手段は、先に送信される前
記第1のデータ・フレームに前記相対位置データと前記
アラーム・ワーニング・データを収納し、後から送信さ
れる第2のデータ・フレームに前記絶対位置データを収
納するように構成され、 前記ロータリエンコーダまたは前記相対位置データ・カ
ウンタは、前記第1のデータ・フレームにおいてデータ
送信に割り当てられているビットの数から前記アラーム
・ワーニング・データの収納に必要なビットの数を引い
た数のビットで相対位置データが構成されるように構成
されていることを特徴とするエンコーダ装置。
1. A relative position data counter for outputting relative position data based on an encoder signal output from an incremental rotary encoder, and an absolute position data for outputting absolute position data during one rotation based on the encoder signal. A counter, an abnormality detecting means for detecting an abnormality of the rotary encoder and outputting alarm warning data when the abnormality is detected, and transmitting the relative position data, the absolute position data and the alarm warning data to the An encoder device comprising: serial data stored in a first data frame and a second data frame; and parallel / serial conversion means for transmitting the serial data through a transmission means in response to a request signal. The parallel-to-serial conversion means transmits The first data frame contains the relative position data and the alarm warning data, and the second data frame transmitted later contains the absolute position data. The encoder or the relative position data counter has a number of bits obtained by subtracting the number of bits necessary for storing the alarm warning data from the number of bits allocated to data transmission in the first data frame. An encoder device configured to configure relative position data.
【請求項2】 請求項1に記載のエンコーダ装置から送
信されてきた前記シリアル・データを受信して相対位置
データと絶対位置データとを得るエンコーダ・データ処
理装置であって、 前記エンコーダ装置から送信される相対位置データをn
(nは2以上の整数)分割してカウント値を更新する相
対位置データ受信カウンタと、 前記絶対位置データを受信すると、以後受信した前記絶
対位置データをベースにして前記相対位置データ受信カ
ウンタの出力に基づいて多回転データを作成する多回転
データ作成手段とを具備するエンコーダ・データ処理装
置。
2. An encoder data processing device that receives the serial data transmitted from the encoder device according to claim 1 and obtains relative position data and absolute position data, and transmits the serial data from the encoder device. The relative position data to be
(N is an integer of 2 or more) a relative position data reception counter that divides and updates the count value; and, when the absolute position data is received, an output of the relative position data reception counter based on the absolute position data received thereafter. And a multi-rotation data generating means for generating multi-rotation data based on the data.
【請求項3】 前記nは4である請求項2に記載のエン
コーダ・データ処理装置。
3. The encoder / data processing apparatus according to claim 2, wherein n is 4.
JP31641396A 1996-11-27 1996-11-27 Encoder device and encoder data processing device Withdrawn JPH10160516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31641396A JPH10160516A (en) 1996-11-27 1996-11-27 Encoder device and encoder data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31641396A JPH10160516A (en) 1996-11-27 1996-11-27 Encoder device and encoder data processing device

Publications (1)

Publication Number Publication Date
JPH10160516A true JPH10160516A (en) 1998-06-19

Family

ID=18076802

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31641396A Withdrawn JPH10160516A (en) 1996-11-27 1996-11-27 Encoder device and encoder data processing device

Country Status (1)

Country Link
JP (1) JPH10160516A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6937169B2 (en) 2003-04-23 2005-08-30 Mitutoyo Corporation Data transmitting/receiving method and device for encoder
JP2009300354A (en) * 2008-06-17 2009-12-24 Fanuc Ltd Encoder with internal information output function
CN105261197A (en) * 2015-12-01 2016-01-20 西南交通大学 Wheel induction device and system
JP2020052584A (en) * 2018-09-25 2020-04-02 ファナック株式会社 Encoder and control system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6937169B2 (en) 2003-04-23 2005-08-30 Mitutoyo Corporation Data transmitting/receiving method and device for encoder
JP2009300354A (en) * 2008-06-17 2009-12-24 Fanuc Ltd Encoder with internal information output function
CN105261197A (en) * 2015-12-01 2016-01-20 西南交通大学 Wheel induction device and system
JP2020052584A (en) * 2018-09-25 2020-04-02 ファナック株式会社 Encoder and control system
US11237023B2 (en) 2018-09-25 2022-02-01 Fanuc Corporation Encoder and control system

Similar Documents

Publication Publication Date Title
EP0544964B1 (en) Store and forward apparatus and method of maintaining integrity of data during storage
US5982294A (en) Paging receiver which performs data communication protocol analysis through execution of control program
JPH10160516A (en) Encoder device and encoder data processing device
EP0476478B1 (en) Digital pulse processing device
JP2004264038A (en) Encoder signal processor and servo driver
JP3042102B2 (en) Multiplexing transmitter
JP3028289B2 (en) Transmission device for serial data
JPH074990A (en) Method for detecting absolute position in encoder apparatus
JPH08247788A (en) Rotary encoder receiving circuit
JP3241138B2 (en) Absolute encoder output signal abnormality detection method
JP3063291B2 (en) Line monitoring circuit
JP4475963B2 (en) Position detection device
JPH1013385A (en) Packet data error correction method, its equipment and packet receiver
JP4313884B2 (en) Multi-turn encoder and controller and multi-turn encoder output signal transmission system
JPS58104566A (en) Recorder automatic stop system in facsimile communication
KR100293452B1 (en) Receiver of asynchronous serial data
JPH01148906A (en) Apparatus for detecting angle of rotation of industrial robot
JP2793770B2 (en) Signal transmission device for position detector
JPH0626883A (en) Multiple revolution type absolute encoder
JP3342950B2 (en) Buffer memory delivery method for signal transmission equipment
JP3161763B2 (en) Facsimile machine
JP2581450B2 (en) Multiprocessor system initialization control apparatus and method
SU836803A1 (en) Device for preventing errors in received discrete information
JPH0667943A (en) Error pulse counting system
JPH09312572A (en) Biphase code decoding system

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20040203