JP2005164329A - Rotary encoder detector - Google Patents

Rotary encoder detector Download PDF

Info

Publication number
JP2005164329A
JP2005164329A JP2003401871A JP2003401871A JP2005164329A JP 2005164329 A JP2005164329 A JP 2005164329A JP 2003401871 A JP2003401871 A JP 2003401871A JP 2003401871 A JP2003401871 A JP 2003401871A JP 2005164329 A JP2005164329 A JP 2005164329A
Authority
JP
Japan
Prior art keywords
unit
rotary encoder
operation knob
change
count value
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
JP2003401871A
Other languages
Japanese (ja)
Other versions
JP4463533B2 (en
Inventor
Masatoshi Uemura
昌利 植村
Yuji Hatanaka
裕二 畑中
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2003401871A priority Critical patent/JP4463533B2/en
Publication of JP2005164329A publication Critical patent/JP2005164329A/en
Application granted granted Critical
Publication of JP4463533B2 publication Critical patent/JP4463533B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a rotary encoder detector for detecting the rotating direction and the amount of change in a rotary encoder using a simplified structure. <P>SOLUTION: A diphase pulse counter part is used to acquire a count value, corresponding to the amount of change of normal rotation or reverse rotation operation of an operation knob part, based on the diphase pulse from a rotary encoder part. By a counter change detecting/processing part started periodically, the count value sampled this time of the counter part is compared with the stored value sampled the last time. When the two count values are not equal to each other, the knob part is determined as having been operated, and a result obtained by subtracting this time value from the last time value is outputted as argument. A rotation direction/change amount analyzing/processing part detects the rotation direction of the knob part, based on the positive or negative sign of the argument while detecting the amount of change of the knob part from the absolute value of the argument. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

この発明は、ロータリエンコーダを用いた入力装置において、操作の有無、回転方向および変化量を検出するロータリエンコーダ検出装置に関するものである。   The present invention relates to a rotary encoder detection device that detects the presence / absence of an operation, a rotation direction, and an amount of change in an input device using a rotary encoder.

ロータリエンコーダは、回転方向の機械的変位量(アナログ量)を電気的なパルス(デジタル量)に変換する検出器であるが、機械装置の位置、角度、速度などの測定やモータの回転速度、回転量の制御を行うために使用されている。近年はロボットや情報機器の位置決めサーボ系に使用されるなど、その用途が広がりつつある。その中で、無線機の選局装置においてロータリエンコーダの回転パルスを利用して送受信周波数を設定する技術がある(例えば、特許文献1参照)。   A rotary encoder is a detector that converts the amount of mechanical displacement (analog amount) in the rotational direction into an electrical pulse (digital amount), but measures the position, angle, speed, etc. of the mechanical device, the rotational speed of the motor, It is used to control the amount of rotation. In recent years, its applications are expanding, such as being used in positioning servo systems for robots and information devices. Among them, there is a technique for setting a transmission / reception frequency by using a rotary pulse of a rotary encoder in a radio channel selection device (see, for example, Patent Document 1).

この特許文献1の技術では、操作ツマミにより正転および逆転操作、およびロータリエンコーダの回転速度が与えられ、ロータリエンコーダ部からは操作に対応した回転パルスが出力されるようになっている。回転パルスは、それぞれ独立した右回転パルス計数部と左回転パルス計数部で計数される。その計数値の大小は、参照値を基に数値比較部で判定され、その大小に応じた係数を係数発生部から得る。この係数、上記回転パルス計数部の計数値および周波数帯に設定された固有のチャンネルステップ周波数を乗算部で乗算する。また、回転方向検知部により、一方の右回転パルス計数部の計数値を用いて、ロータリエンコーダの回転方向を表す検知情報を得るようにしている。次に、演算器において、上記乗算部の乗算結果と検知情報からロータリエンコーダの回転方向を判定し、乗算結果と現在の送受信周波数に基づいて演算を行う。この演算では、回転方向が右の場合には現在の送受信周波数に乗算結果を加算し、一方、回転方向が左の場合には現在の送受信周波数から乗算結果を減算する。この演算器で得られた演算結果、すなわち周波数データは局部発振器に与えられ、新たな送受信周波数を設定する。   In the technique of Patent Document 1, forward and reverse operations and a rotation speed of a rotary encoder are given by an operation knob, and a rotation pulse corresponding to the operation is output from the rotary encoder unit. The rotation pulses are counted by a right rotation pulse counting unit and a left rotation pulse counting unit which are independent of each other. The magnitude of the count value is determined by the numerical value comparison unit based on the reference value, and a coefficient corresponding to the size is obtained from the coefficient generation unit. The multiplication unit multiplies the coefficient, the count value of the rotation pulse counting unit, and the unique channel step frequency set in the frequency band. Further, the rotation direction detection unit obtains detection information indicating the rotation direction of the rotary encoder using the count value of one right rotation pulse counting unit. Next, in the computing unit, the rotational direction of the rotary encoder is determined from the multiplication result of the multiplication unit and the detection information, and the computation is performed based on the multiplication result and the current transmission / reception frequency. In this calculation, the multiplication result is added to the current transmission / reception frequency when the rotation direction is right, while the multiplication result is subtracted from the current transmission / reception frequency when the rotation direction is left. The calculation result obtained by the calculator, that is, the frequency data is given to the local oscillator, and a new transmission / reception frequency is set.

上記従来の技術によれば、選局時に周波数を大きく変化させる場合には、ロータリエンコーダを速く回転させるだけの単一操作で短時間に目的の周波数を設定し、一方、選局時に周波数を小さく変化させる場合、あるいは選局中に目的の周波数が近付いたときには、ロータリエンコーダを緩やかに回転させることで周波数を微細に変化させることができるというものである。   According to the above conventional technique, when the frequency is greatly changed at the time of channel selection, the target frequency is set in a short time by a single operation by simply rotating the rotary encoder, while the frequency is decreased at the time of channel selection. In the case of changing, or when the target frequency approaches during channel selection, the frequency can be finely changed by gently rotating the rotary encoder.

特開平6−216800号公報JP-A-6-216800

以上のような選局装置に適用した従来のロータリエンコーダ検出装置では、ロータリエンコーダの回転に対してパルスを計数するために独立した右回転パルス計数部と左回転パルス計数部を備え、その出力結果に基づいて乗算部で回転パルスの変化量を算出しているが、その分、装置構成が複雑となっている。また、最終的な回転方向と変化量は、回転方向検知部と乗算部の出力結果を演算部で算出する必要があり、検出結果を得るためのアルゴリズムが煩雑なものとなっている。   In the conventional rotary encoder detection device applied to the channel selection device as described above, an independent right rotation pulse counting unit and left rotation pulse counting unit are provided to count pulses with respect to the rotation of the rotary encoder, and the output result The amount of change of the rotation pulse is calculated by the multiplication unit based on the above, but the apparatus configuration is complicated accordingly. Further, the final rotation direction and the amount of change need to be calculated by the calculation unit with the output results of the rotation direction detection unit and the multiplication unit, and the algorithm for obtaining the detection result is complicated.

この発明は、上記のような問題点を解決するためになされたもので、ロータリエンコーダの回転方向と変化量を簡素化した構成で検出することができるロータリエンコーダ検出装置を得ることを目的とする   The present invention has been made to solve the above problems, and an object of the present invention is to provide a rotary encoder detection device that can detect the rotational direction and change amount of a rotary encoder with a simplified configuration.

この発明に係るロータリエンコーダ検出装置は、正転および逆転操作を行うことによりロータリエンコーダを回転させる操作ツマミ部と、操作ツマミ部の操作変化量を入力としてロータリエンコーダの回転を表す所定の位相差を持ったA相およびB相の二相パルスを出力するロータリエンコーダ部と、出力された二相パルスに基づいて操作ツマミ部の正転または逆転操作の変化量に対応したカウント値を得る二相パルスカウンタ部と、この二相パルスカウンタ部のカウント値に基づいて操作ツマミ部による入力状態を検出する制御部とを備え、記制御部は、定周期に起動され、今回サンプリングした二相パルスカウンタ部のカウント値と保存しておいた前回サンプリングしたカウント値を比較し、両カウント値が等しい場合には操作ツマミ部の操作が無いと判定し、一方、両カウント値が等しくない場合には操作ツマミ部の操作が有ると判定して今回サンプリングしたカウント値から前回サンプリングしたカウント値を減算した結果を引数として出力するカウンタ変化検出処理部と、引数の正負の符号に基づいて操作ツマミ部の回転方向を検出すると共に、引数の絶対値から操作ツマミ部の変化量を検出する回転方向・変化量解析処理部とを有するようにしたものである。   A rotary encoder detection device according to the present invention has an operation knob portion for rotating a rotary encoder by performing forward and reverse operations, and a predetermined phase difference representing rotation of the rotary encoder with an operation change amount of the operation knob portion as an input. A rotary encoder unit that outputs two-phase pulses of A phase and B phase, and a two-phase pulse that obtains a count value corresponding to the amount of change in forward or reverse operation of the operation knob unit based on the output two-phase pulse A counter unit, and a control unit that detects an input state by the operation knob unit based on the count value of the two-phase pulse counter unit, and the control unit is started at a fixed period and is sampled this time Compare the count value of the previous sample and the count value previously sampled, and if both count values are equal, the operation knob A counter that determines that there is no operation, and on the other hand, if both count values are not equal, determines that there is an operation on the operation knob and outputs the result of subtracting the previously sampled count value from the current sampled count value as an argument A change detection processing unit, and a rotation direction / change amount analysis processing unit that detects the rotation direction of the operation knob unit based on the sign of the argument and detects the change amount of the operation knob unit from the absolute value of the argument. It is what I did.

この発明によれば、二相パルスカウンタを用いてロータリエンコーダの二相パルス出力を計数し、二相パルスカウンタの計数結果を定周期にサンプリングすることにより操作の有無を検出し、それぞれのサンプリング値の差分計算だけで、回転方向および変化量を検出できるようにしたので、構成を簡素化することができる効果がある。   According to this invention, the two-phase pulse output of the rotary encoder is counted using the two-phase pulse counter, and the presence / absence of the operation is detected by sampling the count result of the two-phase pulse counter at a fixed period. Since the rotation direction and the amount of change can be detected only by calculating the difference between them, there is an effect that the configuration can be simplified.

実施の形態1.
図1はこの発明の実施形態1に係るロータリエンコーダ検出装置の構成を示すブロック回路図である。
図において、操作ツマミ部1を正転または逆転操作することによりロータリエンコーダは正方向または逆方向に回転される。ロータリエンコーダ部2は、操作ツマミ部1の正転および逆転操作の変化量を入力としてロータリエンコーダの回転を表す所定の位相差を持ったA相およびB相の二相パルスを二相パルスカウンタ部3へ出力する。二相パルスカウンタ部3は、ロータリエンコーダ部2から出力される二相パルスに基づいて加算または減算を行って操作ツマミ部1の正転または逆転の変化量に対応したカウント値を得る。
Embodiment 1 FIG.
1 is a block circuit diagram showing the configuration of a rotary encoder detection apparatus according to Embodiment 1 of the present invention.
In the figure, the rotary encoder is rotated in the forward direction or the reverse direction by rotating the operation knob 1 forward or backward. The rotary encoder unit 2 receives a change amount of the forward and reverse operations of the operation knob unit 1 as an input, and outputs a two-phase pulse of A phase and B phase having a predetermined phase difference representing rotation of the rotary encoder as a two-phase pulse counter unit. Output to 3. The two-phase pulse counter unit 3 performs addition or subtraction based on the two-phase pulse output from the rotary encoder unit 2 to obtain a count value corresponding to the forward or reverse change amount of the operation knob unit 1.

図4により、二相パルスカウンタ3の計数例を説明する。ここでは、操作ツマミ部1を正転および逆転操作した場合にロータリエンコーダ部2から出力される二相パルス波形を二相パルスカウンタ3がどのように計数するのかを示している。この場合の1変化量操作は操作ツマミの1クリック分を表わしている。二相パルスカウンタ部3は、入力されるA相パルスが「H」レベルの期間において、B相パルスの立ち上がりをアップカウントし、またB相パルスの立ち下がりをダウンカウントする機能を有している。図4の場合の1クリックでは、正転時のB相の立ち上がりが1回なので(+1)と計数され、逆転時のB相の立ち下がりも1回なので(−1)と計数されることになる。すなわち、二相パルスカウンタ部3は、操作ツマミ部1の正転1変化量毎に(+1)を計数し、逆転1変化量毎に(−1)を計数することを前提としている。したがって、例えば操作ツマミ部1をいずれかの方向に2クリック分(2変化量)進めれば、二相パルスカウンタ部3は(+2)または(−2)を計数(この発明では、これを「二相パルスカウンタ部のカウント値」と称している。)することになる。
なお、二相パルスカウンタ部3と制御部4は、具体的には一つのマイコン(例えば、シングルチップ16ビットCMOSマイクロコンピュータ:製品名「M16C/62N」)に内蔵された機能で構成される。
A counting example of the two-phase pulse counter 3 will be described with reference to FIG. Here, how the two-phase pulse counter 3 counts the two-phase pulse waveform output from the rotary encoder unit 2 when the operation knob unit 1 is rotated forward and backward is shown. One change amount operation in this case represents one click of the operation knob. The two-phase pulse counter unit 3 has a function of up-counting the rising edge of the B-phase pulse and down-counting the falling edge of the B-phase pulse during the period when the input A-phase pulse is at “H” level. . In the case of one click in FIG. 4, since the rise of the B phase at the time of forward rotation is one time, it is counted as (+1), and since the fall of the B phase at the time of reverse rotation is also one time, it is counted as (−1). Become. That is, it is assumed that the two-phase pulse counter unit 3 counts (+1) for each forward rotation change amount of the operation knob unit 1 and counts (−1) for each reverse rotation amount of change. Therefore, for example, if the operation knob section 1 is advanced by two clicks (two changes) in either direction, the two-phase pulse counter section 3 counts (+2) or (−2) (in the present invention, this is referred to as “ This is referred to as “the count value of the two-phase pulse counter unit”.
The two-phase pulse counter unit 3 and the control unit 4 are specifically configured with functions built in one microcomputer (for example, a single-chip 16-bit CMOS microcomputer: product name “M16C / 62N”).

二相パルスカウンタ部3のカウント値は制御部4に入力され、そのカウント値に基づいて操作ツマミ部1による入力状態が検出される。制御部4は、定周期処理部41、カウンタ変化検出処理部42および回転方向・変化量解析処理部43からなる処理ブロックを有する。定周期処理部41は、カウンタ変化検出処理部42を定周期に起動させる手段である。カウンタ変化検出処理部42は、定周期処理部41によって定周期に起動され、今回サンプリングした二相パルスカウンタ部3のカウント値と保存しておいた前回サンプリングしたカウント値とを比較して操作ツマミ部1の操作の有無を検出し、操作が有ると判定した時には今回サンプリングしたカウント値から前回サンプリングしたカウント値を減算した結果を引数として出力する手段である。回転方向・変化量解析処理部43は、カウンタ変化検出処理42から引数を受け取った場合、その引数の正負の符号に基づいて操作ツマミ部1の回転方向を検出すると共に、引数の絶対値から操作ツマミ部1の変化量を検出する手段である。   The count value of the two-phase pulse counter unit 3 is input to the control unit 4, and the input state by the operation knob unit 1 is detected based on the count value. The control unit 4 includes a processing block including a fixed cycle processing unit 41, a counter change detection processing unit 42, and a rotation direction / change amount analysis processing unit 43. The fixed cycle processing unit 41 is means for starting the counter change detection processing unit 42 at a fixed cycle. The counter change detection processing unit 42 is started at a fixed cycle by the fixed cycle processing unit 41, compares the count value of the two-phase pulse counter unit 3 sampled this time with the count value sampled last time stored and an operation knob. It is means for detecting the presence or absence of operation of the unit 1 and outputting the result obtained by subtracting the previously sampled count value from the currently sampled count value as an argument when it is determined that there is an operation. When the rotation direction / change amount analysis processing unit 43 receives an argument from the counter change detection processing 42, the rotation direction / change amount analysis processing unit 43 detects the rotation direction of the operation knob unit 1 based on the sign of the argument and operates from the absolute value of the argument. This is a means for detecting the amount of change in the knob section 1.

次に制御部4の動作について説明する。
カウンタ変化検出処理部42は、定周期処理部41から定周期に起動されて図2に示される手順の処理を行う。カウンタ変化検出処理部42では、二相パルスカウンタ部3のカウント値を読み取ると、今回サンプリング値と前回サンプリング値との比較を行う(ステップST61)。両サンプリング値が等しければ操作ツマミ部1の変化が無いと判定し、また、等しくなければ操作ツマミ部1の変化が有りと判定する(ステップST62)。変化が有りと判定した場合、(今回サンプリング値)−(前回サンプリング値)=Argを計算し、Argを引数として回転方向・変化量解析処理部43の起動を要求する(ステップST63)。また、起動する度に今回サンプリング値を前回サンプリング値に置き換えてメモリに保存し後(ステップST64)、処理を終了する。この実施の形態では、ロータリエンコーダが変化した時に発生するチャタリング時間より十分大きな周期でサンプリングを行う。
Next, the operation of the control unit 4 will be described.
The counter change detection processing unit 42 is started at a regular cycle from the regular cycle processing unit 41 and performs the process of the procedure shown in FIG. When the counter change detection processing unit 42 reads the count value of the two-phase pulse counter unit 3, it compares the current sampling value with the previous sampling value (step ST61). If the two sampling values are equal, it is determined that there is no change in the operation knob portion 1, and if it is not equal, it is determined that there is a change in the operation knob portion 1 (step ST62). If it is determined that there is a change, (current sampling value) − (previous sampling value) = Arg is calculated, and the rotation direction / change amount analysis processing unit 43 is requested to start using Arg as an argument (step ST63). Also, each time the system is started, the current sampling value is replaced with the previous sampling value and stored in the memory (step ST64), and the process is terminated. In this embodiment, sampling is performed with a period sufficiently larger than the chattering time that occurs when the rotary encoder changes.

カウンタ変化検出処理42から起動要求された回転方向・変化量解析処理部43は、図3に示す手順で処理を行う。回転方向・変化量解析処理43は、引数Argを符号付き整数として正負を判定する(ステップST71)。引数Argが正の整数の場合、操作ツマミ部1が「正転」方向に引数Argの絶対値分だけ回転したと判定する(ステップST72)。一方、引数Argが負の整数の場合、操作ツマミ部1が「逆転」方向に引数Argの絶対値分だけ回転したと判定する(ステップST73)。図4に示した例を前提にした場合のカウンタ変化検出処理部42と回転方向・変化量解析処理部43の動作状況を図5に示す。
制御部4は、以上の処理により得られた回転方向と変化量のデータを用いて被制御装置の設定を行うことができる。
The rotation direction / change amount analysis processing unit 43 requested to start from the counter change detection processing 42 performs the processing in the procedure shown in FIG. The rotation direction / change amount analysis processing 43 determines whether the argument Arg is a signed integer or not (step ST71). When the argument Arg is a positive integer, it is determined that the operation knob unit 1 has rotated in the “forward rotation” direction by the absolute value of the argument Arg (step ST72). On the other hand, when the argument Arg is a negative integer, it is determined that the operation knob unit 1 has rotated in the “reverse direction” by the absolute value of the argument Arg (step ST73). FIG. 5 shows operation states of the counter change detection processing unit 42 and the rotation direction / change amount analysis processing unit 43 on the assumption of the example shown in FIG.
The control unit 4 can set the controlled device using the rotation direction and change amount data obtained by the above processing.

なお、図4の例とは異なる動作として、二相パルスカウンタ3が、操作ツマミ部1の正転操作1変化量毎に(−1)を計数し、逆転操作1変化量毎に(+1)を計数するようにしてもよい。その場合、回転方向・変化量解析処理部43は、引数Argが正の整数であれば、操作ツマミ部1が「逆転」方向に引数Argの絶対値分だけ回転したと判定し、また、引数Argが負の整数であれば、操作ツマミ部1が「正転」方向に引数Argの絶対値分だけ回転したと判定することになる。   As an operation different from the example of FIG. 4, the two-phase pulse counter 3 counts (−1) for each forward operation 1 change amount of the operation knob unit 1 and (+1) for each reverse operation 1 change amount. May be counted. In this case, if the argument Arg is a positive integer, the rotation direction / change amount analysis processing unit 43 determines that the operation knob unit 1 has rotated in the “reverse direction” by the absolute value of the argument Arg. If Arg is a negative integer, it is determined that the operation knob 1 has rotated in the “forward rotation” direction by the absolute value of the argument Arg.

以上のように、この実施の形態1によれば、ロータリエンコーダ部2の二相パルスを二相パルスカウンタ部3で計数し、そのカウント値を制御部4で定周期にサンプリングし、今回サンプリング値と前回サンプリング値を比較することによって操作の有無を判定し、操作有りの場合には今回サンプリング値から前回サンプリング値を減算した結果に基づいて回転方向および変化量を検出するようにしたので、二相パルスカウンタ部3と制御部4によりロータリエンコーダ検出装置を簡単に構成できる効果が得られる。   As described above, according to the first embodiment, the two-phase pulse of the rotary encoder unit 2 is counted by the two-phase pulse counter unit 3, the count value is sampled at a constant period by the control unit 4, and the current sampling value And the previous sampling value are compared, and if there is an operation, the rotation direction and the amount of change are detected based on the result of subtracting the previous sampling value from the current sampling value. The phase pulse counter unit 3 and the control unit 4 provide an effect that the rotary encoder detection device can be configured easily.

この発明の実施形態1に係るロータリエンコーダ検出装置の構成を示すブロック回路図である。It is a block circuit diagram which shows the structure of the rotary encoder detection apparatus which concerns on Embodiment 1 of this invention. この発明の実施形態1に係るカウンタ変化検出処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the counter change detection process which concerns on Embodiment 1 of this invention. この発明の実施形態1に係る回転方向・変化量解析処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the rotation direction and variation | change_quantity analysis process which concerns on Embodiment 1 of this invention. この発明の実施形態1に係る二相パルスカウンタの計数例を示すタイムチャートである。It is a time chart which shows the example of a count of the two phase pulse counter which concerns on Embodiment 1 of this invention. この発明の実施形態1に係るカウンタ変化検出処理と回転方向・変化量解析処理の動作例を示す説明図である。It is explanatory drawing which shows the operation example of the counter change detection process which concerns on Embodiment 1 of this invention, and a rotation direction and change amount analysis process.

符号の説明Explanation of symbols

1 操作ツマミ部、2 ロータリエンコーダ部、3 二相パルスカウンタ部、4 制御部、41 定周期処理部、42 カウンタ変化検出処理部、43 回転方向・変化量解析処理部。   DESCRIPTION OF SYMBOLS 1 Operation knob part, 2 Rotary encoder part, 3 Two-phase pulse counter part, 4 Control part, 41 Fixed period process part, 42 Counter change detection process part, 43 Rotation direction and change amount analysis process part.

Claims (1)

正転および逆転操作を行うことによりロータリエンコーダを回転させる操作ツマミ部と、
操作ツマミ部の操作変化量を入力としてロータリエンコーダの回転を表す所定の位相差を持ったA相およびB相の二相パルスを出力するロータリエンコーダ部と、
出力された二相パルスに基づいて前記操作ツマミ部の正転または逆転操作の変化量に対応したカウント値を得る二相パルスカウンタ部と、
この二相パルスカウンタ部のカウント値に基づいて前記操作ツマミ部による入力状態を検出する制御部とを備え、
前記制御部は、
定周期に起動され、今回サンプリングした前記二相パルスカウンタ部のカウント値と保存しておいた前回サンプリングしたカウント値を比較し、両カウント値が等しい場合には前記操作ツマミ部の操作が無いと判定し、一方、前記両カウント値が等しくない場合には前記操作ツマミ部の操作が有ると判定して今回サンプリングしたカウント値から前回サンプリングしたカウント値を減算した結果を引数として出力するカウンタ変化検出処理部と、
前記引数の正負の符号に基づいて前記操作ツマミ部の回転方向を検出すると共に、前記引数の絶対値から前記操作ツマミ部の変化量を検出する回転方向・変化量解析処理部とを有するロータリエンコーダ検出装置。
An operation knob for rotating the rotary encoder by performing forward and reverse operations;
A rotary encoder unit that outputs an A-phase and B-phase two-phase pulse having a predetermined phase difference representing the rotation of the rotary encoder with an operation change amount of the operation knob unit as an input;
A two-phase pulse counter for obtaining a count value corresponding to the amount of change in forward or reverse operation of the operation knob based on the output two-phase pulse;
A control unit that detects an input state by the operation knob unit based on a count value of the two-phase pulse counter unit;
The controller is
Compared with the count value of the two-phase pulse counter section sampled this time, which was started at a fixed period, and the previously sampled count value stored, and if both count values are equal, there is no operation of the operation knob section On the other hand, if the two count values are not equal, it is determined that there is an operation of the operation knob unit, and the result of subtracting the previously sampled count value from the current sampled count value is output as an argument. A processing unit;
A rotary encoder having a rotation direction / change amount analysis processing unit for detecting a rotation direction of the operation knob unit based on a positive / negative sign of the argument and detecting a change amount of the operation knob unit from an absolute value of the argument Detection device.
JP2003401871A 2003-12-01 2003-12-01 Rotary encoder detection device Expired - Fee Related JP4463533B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003401871A JP4463533B2 (en) 2003-12-01 2003-12-01 Rotary encoder detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003401871A JP4463533B2 (en) 2003-12-01 2003-12-01 Rotary encoder detection device

Publications (2)

Publication Number Publication Date
JP2005164329A true JP2005164329A (en) 2005-06-23
JP4463533B2 JP4463533B2 (en) 2010-05-19

Family

ID=34725656

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003401871A Expired - Fee Related JP4463533B2 (en) 2003-12-01 2003-12-01 Rotary encoder detection device

Country Status (1)

Country Link
JP (1) JP4463533B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100989144B1 (en) 2009-11-30 2010-10-22 경상대학교산학협력단 Wireless rotary encoder and rotor control system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105856228B (en) * 2016-05-03 2018-01-09 杭州电子科技大学 A kind of six-shaft industrial robot speed-measuring method based on FPGA

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100989144B1 (en) 2009-11-30 2010-10-22 경상대학교산학협력단 Wireless rotary encoder and rotor control system

Also Published As

Publication number Publication date
JP4463533B2 (en) 2010-05-19

Similar Documents

Publication Publication Date Title
US8775117B2 (en) Encoder, servo unit, and method including calculating position data
JPH07218288A (en) Absolute position detector and its error correcting method
US20060145648A1 (en) Signal processing device, signal processing method, signal processing program, recording medium storing the program, speed detector and servomechanism
CN111752531B (en) Integer division device and motor control device
JP2010154728A (en) Low-speed control method and apparatus for servo motor
CN109768755B (en) Semiconductor device, angle value correction circuit and method thereof
JP4463533B2 (en) Rotary encoder detection device
JP2018004627A (en) Position detector
JP2010164540A (en) Controller and machining device
JP2006214972A (en) Signal processor for rotation detector
JPH07229910A (en) Pulse counter circuit
JPH061279B2 (en) Digital speed detector
JP2002116058A (en) Encoder data conversion circuit
JP2941790B1 (en) Pulse counter
JP2006300699A (en) Speed detector, and abnormal speed detecting method therefor
US6310458B1 (en) Blended velocity estimation
JP2002112566A (en) Motor controller
JP2002311040A (en) Speed detector
JPH07218290A (en) Multiple-rotation type absolute encoder
JPH04285815A (en) Position counter circuit of rotary encoder
JP2003005837A (en) Method for detecting position or method for controlling stop position by pulse encoder
JP2005207985A (en) Position detector
JPH04355326A (en) Rotary encoder with electrical angle output function
JPH0674787A (en) Absolute position detector
JP2016080547A (en) Position controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060522

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20071017

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080710

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081128

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081209

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090206

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: 20100209

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100217

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

Free format text: PAYMENT UNTIL: 20130226

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4463533

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130226

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140226

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees