JPH11148843A - Detection method for bit skip in sampling encoder - Google Patents

Detection method for bit skip in sampling encoder

Info

Publication number
JPH11148843A
JPH11148843A JP31358597A JP31358597A JPH11148843A JP H11148843 A JPH11148843 A JP H11148843A JP 31358597 A JP31358597 A JP 31358597A JP 31358597 A JP31358597 A JP 31358597A JP H11148843 A JPH11148843 A JP H11148843A
Authority
JP
Japan
Prior art keywords
sampling
sampling data
encoder
absolute value
bit
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
JP31358597A
Other languages
Japanese (ja)
Inventor
Satoru Ohara
哲 大原
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.)
Tamagawa Seiki Co Ltd
Original Assignee
Tamagawa Seiki 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 Tamagawa Seiki Co Ltd filed Critical Tamagawa Seiki Co Ltd
Priority to JP31358597A priority Critical patent/JPH11148843A/en
Publication of JPH11148843A publication Critical patent/JPH11148843A/en
Pending legal-status Critical Current

Links

Landscapes

  • Transmission And Conversion Of Sensor Element Output (AREA)
  • Optical Transform (AREA)
  • Analogue/Digital Conversion (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve reliability of sampling data by always comparing previous sampling data and the present sampling data, comparing the absolute value of the difference and a set value and detecting a bit skip. SOLUTION: This sampling encoder 1 has a rotary detector 1a outputting an encoder signal 1aA, sampling data 2 is output from a sampling pulse detector 1d and an abnormal signal 3 form a bit skip detector 1g. That is, in the bit skip detector 1g, previous sampling data 2 and the present sampling data 2 are always compared and the difference is obtained as an absolute value. This absolute value is compared with a set value formed by maximum bit number in the same sampling angle range as the preset sampling data 2. When this absolute value is larger than the maximum bit number, an abnormal signal 3 indicating that the sampling encoder 1 is abnormal is output.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、サンプリング式エ
ンコーダにおけるビット飛び検出方法に関し、特に、前
回のサンプリングデータと今回のサンプリングデータと
を常時比較し、その差分の絶対値を予め設定値と比較し
てサンプリングデータのビット飛びを検出するための新
規な改良に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bit skip detection method in a sampling encoder, and more particularly, to a method of constantly comparing previous sampling data with current sampling data and comparing the absolute value of the difference with a preset value. And a new improvement for detecting bit skipping of sampling data.

【0002】[0002]

【従来の技術】従来、用いられていたこの種のサンプリ
ング式エンコーダにおいては、サンプリングデータが出
力されるのみで、ビット飛びの検出を行う機能は採用さ
れていなかった。
2. Description of the Related Art Conventionally, in this type of sampling encoder used, only a function of outputting sampling data, and no function of detecting bit skipping has been employed.

【0003】[0003]

【発明が解決しようとする課題】従来のサンプリング式
エンコーダは、以上のように構成されていたため、次の
ような課題が存在していた。すなわち、ビット飛びの検
出機能が設けられていなかったため、サンプリングデー
タ中にビット飛びが発生しても検出できず、サンプリン
グデータの信頼性に問題があり、このサンプリングデー
タを用いる制御系の精度が低下することがあった。
The conventional sampling type encoder has the following problems because it is configured as described above. That is, since the bit skipping detection function was not provided, even if bit skipping occurred in the sampling data, it could not be detected, and there was a problem in the reliability of the sampling data, and the accuracy of the control system using this sampling data deteriorated. There was something to do.

【0004】本発明は、以上のような課題を解決するた
めになされたもので、特に、前回のサンプリングデータ
と今回のサンプリングデータとを常時比較し、その差分
の絶対値を予め設定値と比較してサンプリングデータの
ビット飛びを検出するようにしたサンプリング式エンコ
ーダにおけるビット飛び検出方法を提供することを目的
とする。
[0004] The present invention has been made to solve the above problems, and in particular, always compares the previous sampling data with the current sampling data, and compares the absolute value of the difference with a preset value in advance. It is an object of the present invention to provide a bit skipping detection method in a sampling type encoder which detects bit skipping of sampling data.

【0005】[0005]

【課題を解決するための手段】本発明によるサンプリン
グ式エンコーダにおけるビット飛び検出方法は、回転検
出部から得られたエンコーダ信号を一定時間ごとにサン
プリングしてサンプリングデータの出力を得るようにし
たサンプリング式エンコーダにおいて、前回のサンプリ
ングデータと今回のサンプリングデータとを常時比較
し、その差分を絶対値として求め、前記絶対値と予め設
定され前記サンプリングデータと同じサンプリング角度
範囲の最大ビット数からなる設定値とを比較し、前記絶
対値が前記最大ビット数より大である時にサンプリング
式エンコーダが異常であることを示す異常信号を出力す
る方法である。
According to the present invention, there is provided a bit skip detection method in a sampling encoder according to the present invention, which samples an encoder signal obtained from a rotation detector at regular time intervals to obtain an output of sampling data. In the encoder, the previous sampling data and the current sampling data are constantly compared, the difference is obtained as an absolute value, and the absolute value is set in advance to a set value including the maximum number of bits in the same sampling angle range as the sampling data. And outputting an abnormal signal indicating that the sampling encoder is abnormal when the absolute value is larger than the maximum number of bits.

【0006】[0006]

【発明の実施の形態】以下、図面と共に本発明によるサ
ンプリング式エンコーダにおけるビット飛び検出方法の
好適な実施の形態について説明する。図1において符号
1で示されるものは、サンプリング式エンコーダであ
り、このサンプリング式エンコーダ1は、エンコーダ信
号1aAを出力する回転検出部1a、光コネクタ1b、
波形整形回路1c、サンプリングパルス検出器1d、ク
ロック発生器1e、同期回路1f及びビット飛び検出部
1gからなり、前記サンプリングパルス検出器1dから
はサンプリングデータ2が出力され、ビット飛び検出部
1gからは異常信号3が出力される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A preferred embodiment of a bit skip detection method in a sampling encoder according to the present invention will be described below with reference to the drawings. In FIG. 1, what is indicated by reference numeral 1 is a sampling encoder. The sampling encoder 1 includes a rotation detector 1a that outputs an encoder signal 1aA, an optical connector 1b,
It comprises a waveform shaping circuit 1c, a sampling pulse detector 1d, a clock generator 1e, a synchronizing circuit 1f, and a bit skip detection unit 1g. The sampling pulse detector 1d outputs sampling data 2, and the bit skip detection unit 1g outputs An abnormal signal 3 is output.

【0007】前記ビット飛び検出部1gは図2で示され
るように構成されている。すなわち、サンプリングデー
タ2は第1、第2ラッチ回路10,11を経て第1比較
器12に入力され、各ラッチ回路10,11の出力は直
接第3ラッチ回路13に入力され、第1比較器12の出
力も第1ゲート回路14を介して前記第3ラッチ回路1
3に入力されている。この第3ラッチ回路13の出力は
第2、第3ゲート回路15,16を介して引算器17で
引算処理され第2比較器18に入力され、この第2比較
器18には、前記サンプリングデータと同じサンプリン
グ角度(すなわち同じ時間長さ)の最大ビット数が設定
値19aとして記憶されているメモリ19からの前記設
定値19aが常時入力されている。前記第2比較器18
からの出力は第4ゲート回路20を介して第5ゲート回
路21に入力され、この第5ゲート回路21には、サン
プリングクロック22が入力される第4ラッチ回路23
からのラッチ出力23aが入力されている。
The bit skip detector 1g is configured as shown in FIG. That is, the sampling data 2 is input to the first comparator 12 via the first and second latch circuits 10 and 11, and the output of each of the latch circuits 10 and 11 is directly input to the third latch circuit 13 and the first comparator The output of the third latch circuit 1 is also transmitted through the first gate circuit 14 to the third latch circuit 1.
3 has been entered. The output of the third latch circuit 13 is subjected to subtraction processing by a subtracter 17 via second and third gate circuits 15 and 16 and is input to a second comparator 18. The set value 19a from the memory 19 in which the maximum number of bits at the same sampling angle (that is, the same time length) as the sampling data is stored as the set value 19a is constantly input. The second comparator 18
Is input to a fifth gate circuit 21 via a fourth gate circuit 20. The fifth gate circuit 21 has a fourth latch circuit 23 to which a sampling clock 22 is input.
From the latch output 23a.

【0008】従って、サンプリングデータ2は、所定の
間隔でサンプリング動作で第1ラッチ回路10、第2ラ
ッチ回路11、第3ラッチ回路13及び第1比較器12
に入力され、前回のサンプリングデータAとその後の今
回のサンプリングデータBとが第1比較器12で比較処
理されて第3ラッチ回路13から各ゲート回路15,1
6を経て引算器17に入力される。この引算器17にお
いては、前記各データA,BがA′,B′として引算処
理され、その差分が絶対値として第2比較器18に入力
されて設定値19aと比較処理される。この比較処理結
果は、A′<B′の場合はA′が設定値19a(B′)
を越えているため第5ゲート回路21が“HIGH”と
なって異常信号3が出力され、A′=B′K場合は第5
ゲート回路21が“LOW”となって正常であることを
示し異常信号3は出力されない。なお、図2のビット飛
び検出部1gは、ハードウェアで示したが、CPUのプ
ログラム処理によるソフトウェアによることもできる。
また、図1では、光ファイバエンコーダの場合について
述べたが、周知の光学式又は磁気式等でも可である。
Therefore, the sampling data 2 is supplied to the first latch circuit 10, the second latch circuit 11, the third latch circuit 13, and the first comparator 12 at a predetermined interval by a sampling operation.
The first sampling data A and the subsequent sampling data B are compared by the first comparator 12, and the third latch circuit 13 outputs the data to each of the gate circuits 15, 1.
The signal is input to the subtractor 17 through 6. In the subtracter 17, the data A and B are subtracted as A 'and B', and the difference is input to the second comparator 18 as an absolute value and compared with the set value 19a. The result of this comparison processing is that when A '<B', A 'is the set value 19a (B').
, The fifth gate circuit 21 becomes “HIGH” and an abnormal signal 3 is output, and when A ′ = B′K, the fifth gate circuit 21
The gate circuit 21 becomes "LOW" to indicate that it is normal, and the abnormal signal 3 is not output. Although the bit skip detection unit 1g in FIG. 2 is shown by hardware, it may be realized by software by CPU program processing.
In FIG. 1, the case of the optical fiber encoder has been described, but a known optical type or magnetic type may be used.

【0009】[0009]

【発明の効果】本発明によるサンプリング式エンコーダ
におけるビット飛び検出方法は、以上のように構成され
ているため、次のような効果を得ることができる。すな
わち、サンプリングデータのビット飛びがあった場合
は、異常信号が出力されるため、この異常信号を用いて
制御系の制御状態を変えることができ、サンプリングデ
ータの信頼性を向上させることができる。
The bit skip detection method in the sampling type encoder according to the present invention is configured as described above, so that the following effects can be obtained. That is, if there is a bit skip in the sampling data, an abnormal signal is output. Therefore, the control state of the control system can be changed using the abnormal signal, and the reliability of the sampling data can be improved.

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

【図1】本発明によるサンプリング式エンコーダにおけ
るビット飛び検出方法を示すブロック図である。
FIG. 1 is a block diagram showing a bit skip detection method in a sampling encoder according to the present invention.

【図2】図1のビット飛び検出部を示す回路図である。FIG. 2 is a circuit diagram showing a bit skip detector of FIG. 1;

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

1a 回転検出部 1aA エンコーダ信号 2 サンプリングデータ 3 異常信号 19a 設定値 1a Rotation detector 1aA Encoder signal 2 Sampling data 3 Abnormal signal 19a Set value

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 回転検出部(1a)から得られたエンコーダ
信号(1aA)を一定時間ごとにサンプリングしてサンプリ
ングデータ(2)の出力を得るようにしたサンプリング式
エンコーダにおいて、前回のサンプリングデータと今回
のサンプリングデータとを常時比較し、その差分を絶対
値として求め、前記絶対値と予め設定され前記サンプリ
ングデータ(2)と同じサンプリング角度範囲の最大ビッ
ト数からなる設定値(19a)とを比較し、前記絶対値が前
記最大ビット数より大である時にサンプリング式エンコ
ーダが異常であることを示す異常信号(3)を出力するこ
とを特徴とするサンプリング式エンコーダにおけるビッ
ト飛び検出方法。
1. A sampling encoder in which an encoder signal (1aA) obtained from a rotation detecting section (1a) is sampled at regular intervals to obtain an output of sampling data (2). Always compare the current sampling data, find the difference as an absolute value, and compare the absolute value with a preset value (19a) consisting of the maximum number of bits in the same sampling angle range as the previously set sampling data (2). A bit skip detection method in the sampling encoder, wherein when the absolute value is larger than the maximum number of bits, an abnormal signal (3) indicating that the sampling encoder is abnormal is output.
JP31358597A 1997-11-14 1997-11-14 Detection method for bit skip in sampling encoder Pending JPH11148843A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31358597A JPH11148843A (en) 1997-11-14 1997-11-14 Detection method for bit skip in sampling encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31358597A JPH11148843A (en) 1997-11-14 1997-11-14 Detection method for bit skip in sampling encoder

Publications (1)

Publication Number Publication Date
JPH11148843A true JPH11148843A (en) 1999-06-02

Family

ID=18043091

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31358597A Pending JPH11148843A (en) 1997-11-14 1997-11-14 Detection method for bit skip in sampling encoder

Country Status (1)

Country Link
JP (1) JPH11148843A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109520550A (en) * 2018-12-31 2019-03-26 中国电子科技集团公司第三十九研究所 A kind of high-precision encoder frame hopping appraisal procedure become suitable for multipole rotation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109520550A (en) * 2018-12-31 2019-03-26 中国电子科技集团公司第三十九研究所 A kind of high-precision encoder frame hopping appraisal procedure become suitable for multipole rotation
CN109520550B (en) * 2018-12-31 2022-09-20 中国电子科技集团公司第三十九研究所 High-precision encoder code hopping evaluation method suitable for multi-pole rotary transformer

Similar Documents

Publication Publication Date Title
US4747116A (en) Sync signal detecting device
JPH11148843A (en) Detection method for bit skip in sampling encoder
US4910517A (en) Digital data detector
US6378078B1 (en) Semiconductor integrated circuit supervising an illicit address operation
JP3156273B2 (en) Pointer processing circuit
US20230327522A1 (en) Method for fault processing of hall position sensor in brushless direct current motor
JPH0431211B2 (en)
JP2715953B2 (en) Synchronous circuit
JP2601172B2 (en) Clock signal surplus pulse detection circuit
JP3108328B2 (en) Synchronous playback circuit
JPH03102265A (en) Maximum value detecting circuit
JPS6128133B2 (en)
JP2576526B2 (en) I / O signal monitoring circuit
KR100262858B1 (en) High speed digital peak detector
JPH0745786Y2 (en) Full level detection circuit
JPH0634665A (en) Detecting device of glitch of digital oscillo-scope
JPH05134749A (en) Steering angle detection device
JPH0774762A (en) Bus line data controller
JPH0643518U (en) Encoder
JPS6377237A (en) Frame synchronizing circuit
JPH09312676A (en) Data detection circuit
JPH08331115A (en) Synchronous reproduction circuit
JPH01137728A (en) Circuit device for serial/parallel conversion
JPH05114898A (en) Frame synchronizing circuit for digital transmission system
JPS63215214A (en) Bit timing comparator

Legal Events

Date Code Title Description
A621 Written request for application examination

Effective date: 20040607

Free format text: JAPANESE INTERMEDIATE CODE: A621

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060712

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060725

A02 Decision of refusal

Effective date: 20070403

Free format text: JAPANESE INTERMEDIATE CODE: A02