JPS612015A - Rotary encoder device - Google Patents

Rotary encoder device

Info

Publication number
JPS612015A
JPS612015A JP12410284A JP12410284A JPS612015A JP S612015 A JPS612015 A JP S612015A JP 12410284 A JP12410284 A JP 12410284A JP 12410284 A JP12410284 A JP 12410284A JP S612015 A JPS612015 A JP S612015A
Authority
JP
Japan
Prior art keywords
pulse
pulse signal
period
rotary encoder
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.)
Pending
Application number
JP12410284A
Other languages
Japanese (ja)
Inventor
Hisao Nagao
長尾 久雄
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 JP12410284A priority Critical patent/JPS612015A/en
Publication of JPS612015A publication Critical patent/JPS612015A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D5/00Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
    • G01D5/12Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
    • G01D5/244Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means influencing characteristics of pulses or pulse trains; generating pulses or pulse trains
    • G01D5/24404Interpolation using high frequency signals

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

PURPOSE:To output a puse signal each 1/2 period by counting a clock pulse of the phase equivalent to 1/2 of one period of the pulse signal of a rotary encoder and by substracting the counted value thereof with the clock pulse of the following one period. CONSTITUTION:A clock pulse with a fixed period is outputted from a clock pulse generating circuit 8 to a 1/2 frequency dividing circuit 1 and the pulse of 1/2 of the frequency is outputted to a down counter 3. On the other hand a rotary encoder 7 generates a pulse and inputs into a differentiation circuit 4. A pulse is inputted into the down counter 3 synchronizing the front edge of the high level of the pulse thereof. The number equivalent to 1/2 of one period set by the counter 2 is substracted by the clock pulse in the following one period at the down counter 3, and the pulse signal is outputted at the time when the counting contents become in zero. Consequently the pulse signal can be obtd. even at the medium point of one period of the pulse signal of the rotary encoder.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ロークリエンコーダが出力するパルス信号の
周期を利用して各種制御を行うに際して、ロータリエン
コーダが出力するパルス信号の2周期のパルス信号を得
て制御に利用することを可能とした装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention utilizes two-cycle pulses of the pulse signal output from the rotary encoder when performing various controls using the cycle of the pulse signal output from the rotary encoder. This invention relates to a device that makes it possible to obtain signals and use them for control.

〔従来技術〕[Prior art]

ロークリエンコーダが出力するパルス信号を制御の基準
信号として、即ちパルス信号の1周期又は複数周期が検
出される都度、所定の動作を行うように装置を構成する
ことが多いが、このような装置ではパルス信号の1周期
以下を制御の基準として利用することはできないのが通
常である。
Devices are often configured to use the pulse signal output by the low-resolution encoder as a reference signal for control, that is, to perform a predetermined operation each time one or more periods of the pulse signal are detected. Normally, one period or less of a pulse signal cannot be used as a reference for control.

上述のような装置の一例として、たとえばドラム回転式
インクジェットプリンタがあるが、このプリンタは周囲
に用紙を巻回したドラムを回転させつつインク滴を用紙
に噴射して印字を行うものであり、インク滴の噴射位置
の制御にロータリエンコーダが出力するパルス信号を利
用している。
An example of the above-mentioned device is a drum-rotating inkjet printer, which prints by jetting ink droplets onto the paper while rotating a drum around which paper is wound. Pulse signals output by a rotary encoder are used to control the droplet ejection position.

ところで、上述の如きプリンタにおいては、ロータリエ
ンコーダにより発生される1パルス当たり、インク滴の
噴射による1ドツトの印字が行われ、通常は6ドソ) 
/ muの解像度の印字がおこなわれる構成とされてい
る場合に、通常の2倍の12ドツト/fiの解像度で印
字を行うに際してはロ−クリエンコーダが出力するパル
ス信号の1周期の中間点でインク滴を噴射する制御が必
要となる。
By the way, in the above-mentioned printer, one dot is printed by ejecting ink droplets for each pulse generated by the rotary encoder, and usually 6 dots are printed.
/ mu resolution, when printing at 12 dots/fi, which is twice the normal resolution, at the midpoint of one cycle of the pulse signal output by the low-return encoder. Control is required to eject ink droplets.

このような制御を実現するために、従来は第3図に示す
如き方法が採られていた。即ち、第3図+8)に示す如
きロータリエンコーダが出力するパルス信号の1周期P
において、第3図(b)に示す如くパルス信号の立ち上
がり(ハイレベル部分の前縁)及び第3図[C1に示す
如く立ち下がり(ハイレベル部分の後縁)をそれぞれ微
分回路にて検出して第3図(dlに示す如く元のパルス
信号の1周期の間に2個の信号を得るようにしている。
In order to realize such control, a method as shown in FIG. 3 has conventionally been adopted. That is, one period P of the pulse signal output by the rotary encoder as shown in Figure 3+8)
In this case, the rising edge of the pulse signal (the leading edge of the high level portion) as shown in FIG. 3(b) and the falling edge (the trailing edge of the high level portion) as shown in FIG. As shown in FIG. 3 (dl), two signals are obtained during one period of the original pulse signal.

しかし、このような方法では、ロークリエンコーダの出
力波形が周囲温度により変化して、ハイレベルの期間A
 (A ’ )とローレベルの期間B(B′)とはその
時間が一致せず、正確に元のパルス信号の2周期の時点
でパルス信号を得ることは困難であり、このため前述の
プリンタでは印字精度が低下し、良好な印字状態が得ら
れないのが実情であった。
However, with this method, the output waveform of the low reencoder changes depending on the ambient temperature, and the high level period A
(A') and the low level period B (B') do not match in time, and it is difficult to obtain a pulse signal exactly at the point of two cycles of the original pulse signal. However, the actual situation is that printing accuracy deteriorates and good printing conditions cannot be obtained.

〔発明の目的〕[Purpose of the invention]

本発明は上述の如き事情に鑑みてなされたものであり、
ロータリエンコーダが出力するパルス信号の1周期の1
/2相当のクロックパルス数をカウンタにて計数し、こ
の計数値を次の1周期においてクロックパルスにて減算
計数することによりパルス信号の1周期の丁度中間点を
検出する構成として、ロータリエンコーダが出力するパ
ルス信号の、+A同周期とに正確にパルス信号を得るこ
とを可能としたロータリエンコーダ装置の提供を目的と
する。
The present invention has been made in view of the above circumstances,
1 period of the pulse signal output by the rotary encoder
The rotary encoder is configured to detect the exact midpoint of one period of the pulse signal by counting the number of clock pulses equivalent to /2 with a counter and subtracting this counted value with the clock pulses in the next period. It is an object of the present invention to provide a rotary encoder device capable of accurately obtaining a pulse signal at the same period of +A of a pulse signal to be output.

〔発明の構成〕[Structure of the invention]

本発明に係るロータリエンコーダ装置は、ロークリエン
コーダが発するパルス信号の1周期をクロックパルスを
用いて計時するカウクと、該カウンタの計時結果により
前記パルス信号の1周期の各相当の数がセントされ、計
時したパルス信号の周期の次の1周期において前記クロ
ックパルスにより減算計数されるダウンカウンタとを備
え、該ダウンカウンタの計数内容が0となった時点でパ
ルス信号を出力すべくなしたことを特徴とする。
The rotary encoder device according to the present invention includes a counter that times one period of a pulse signal emitted by a rotary encoder using a clock pulse, and a clock that counts each corresponding number of one period of the pulse signal based on the timing result of the counter. , and a down counter that performs subtraction counting by the clock pulse in one period following the period of the timed pulse signal, and outputs the pulse signal when the count of the down counter becomes 0. Features.

〔実施例〕〔Example〕

以下、本発明をその実施例を示す図面に基づいて詳述す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below based on drawings showing embodiments thereof.

第1図は本発明に係るロークリエンコーダ装置の回路構
成を示すブロック図である。
FIG. 1 is a block diagram showing the circuit configuration of a low reencoder device according to the present invention.

ロークリエンコーダ7が出力するパルス信号PSは微分
回路4に入力される。微分回路4は入力されたパルス信
号の立ち上がりを検出し、この立ち上がりに同期して切
り出すパルス信号FEをダウンカウンタ3、モノマルチ
バイブレーク5及びORゲート6の一方の入力端子に出
力する。
The pulse signal PS output from the low-resolution encoder 7 is input to the differentiator circuit 4. The differentiating circuit 4 detects the rising edge of the input pulse signal, and outputs a pulse signal FE cut out in synchronization with this rising edge to one input terminal of the down counter 3, the mono-multi-by-break 5, and the OR gate 6.

モノマルチハイブレーク5は、微分回路4からのパルス
信号によりトリガされて短い時間幅のパルス信号を出力
してカウンタ2にリセットパルスRPとして与え、カウ
ンタ2をリセットする。
The mono-multi high break 5 is triggered by the pulse signal from the differentiating circuit 4 and outputs a pulse signal with a short time width, which is applied to the counter 2 as a reset pulse RP to reset the counter 2.

カウンタ2は、クロックパルス発生回路8により発生さ
れたクロックパルスCLの周波数を2分周回路1にて%
の周波数とした後計数するものであり、その計数値は前
記ダウンカウンタ3にあたえられる。また、クロックパ
ルス発生回路8が発生するクロックパルスCLは直接ダ
ウンカウンタ3にもあたえられており、カウンタ2から
ダウンカウンタ3に与えらえた計数値の減算計数に用い
られる。
The counter 2 divides the frequency of the clock pulse CL generated by the clock pulse generation circuit 8 into 2% by the frequency dividing circuit 1.
The count value is given to the down counter 3. Further, the clock pulse CL generated by the clock pulse generating circuit 8 is directly applied to the down counter 3 and is used for subtracting the count value applied from the counter 2 to the down counter 3.

ダウンカウンタ3ば、微分回路4が出力するパルス信号
FEがロート信号りとして与えられるように構成されて
おり、このロード信号りが与えられるとカウンタ2の計
数値をロードする。そして、この計数値をクロックパル
スCLにて減算計数し、この結果が0となった時点でパ
ルス信号DPをORゲート6の他方の入力端子に出力す
る。
The down counter 3 is configured so that the pulse signal FE output from the differentiating circuit 4 is applied as a rotary signal, and when this load signal is applied, the count value of the counter 2 is loaded. Then, this count value is subtracted and counted using the clock pulse CL, and when the result becomes 0, the pulse signal DP is outputted to the other input terminal of the OR gate 6.

以上のように構成された本発明装置の動作について、第
2図のタイムチャートに従って以下に説明する。
The operation of the apparatus of the present invention configured as described above will be explained below according to the time chart shown in FIG.

クロックパルス発生回路8は第2図(alに示す如く一
定周期のクロックパルスCLを2分周回路1及びダウン
カウンタ3に出力している。%分周回路1は第2図(Q
lに示す如く与えられたクロックパルスCLの周波数の
2の周波数のパルス信号をカウンタ2に与える。従って
、カウンタ2はクロソクパルス発生回路8が発生するク
ロックパルス数の2を計数していることになる。
The clock pulse generation circuit 8 outputs a clock pulse CL of a constant period to the divide-by-2 circuit 1 and the down counter 3 as shown in FIG.
A pulse signal having a frequency twice the frequency of the applied clock pulse CL is applied to the counter 2 as shown in FIG. Therefore, the counter 2 counts the number of clock pulses generated by the cross pulse generation circuit 8 by 2.

一方、ロータリエンコーダ7は第2図(blに示す如き
周期Pのパルス信号PSを発生しており、このパルス信
号PSは微分回路4に入力されている。
On the other hand, the rotary encoder 7 generates a pulse signal PS with a period P as shown in FIG.

微分回路4は第2図(C1に示す如く、ロータリエンコ
ーダ7が出力するパルス信号PSのハイレベル部分の前
縁、即ち立ち上がりに同期してパルス信号FEを出力す
る。このパルス信号FEは、ORゲート6の一方の入力
端子に与えられてORゲート6の出力端子から出力され
る。このため、ORゲート6の出力端子からはロータリ
エンコーダ7が出力するパルス信号psの立ち上がりに
同期した信号PS′が第2図(glに示す如く出力され
る。
As shown in FIG. 2 (C1), the differentiator circuit 4 outputs a pulse signal FE in synchronization with the leading edge, that is, the rising edge, of the high level portion of the pulse signal PS output by the rotary encoder 7. This pulse signal FE is It is applied to one input terminal of the gate 6 and is output from the output terminal of the OR gate 6. Therefore, from the output terminal of the OR gate 6, a signal PS' synchronized with the rising edge of the pulse signal ps output from the rotary encoder 7 is output. is output as shown in FIG. 2 (gl).

一方、微分回路4が発生するパルス信号FEはダウンカ
ウンタ3にもロード信号りとして与えられていて、ダウ
ンカウンタ3にこのパルス信号FEが与えられる都度、
ダウンカウンタ3にカウンタ2の計数値がロードされる
On the other hand, the pulse signal FE generated by the differentiating circuit 4 is also given to the down counter 3 as a load signal, and each time this pulse signal FE is given to the down counter 3,
The count value of counter 2 is loaded into down counter 3.

更に、微分回路4が発生するパルス信号FBはモノマル
チパイブレーク5にも与えられていて、これによりモノ
マルチバイブレーク5はトリガされて第2図(dlに示
す如くカウンタ2にリセットパルスRPを与える。
Furthermore, the pulse signal FB generated by the differentiating circuit 4 is also given to the mono multi-bi break 5, which triggers the mono multi-bi break 5 to give a reset pulse RP to the counter 2 as shown in FIG. 2 (dl). .

このためカウンタ2が、ロークリエンコーダ7が発生す
るパルス信号psの各1周期に相当するクロックパルス
CLの2の値を計数した時点で、その計数値がダウンカ
ウンタ30−ドされ、次いでカウンタ2の計数値はりセ
ントされる。
Therefore, when the counter 2 counts the value of 2 of the clock pulse CL corresponding to each period of the pulse signal ps generated by the low reencoder 7, the counted value is written to the down counter 30-, and then the counter 2 The counted value will be weighed in cents.

そして、ロータリエンコーダ7が発生するパルス信号P
Sの各1周期が開始される都度ダウンカウンタ3にロー
ドされたカウンタ2の計数値、即ちパルス信号PSの前
回の1周期に相当するクロックパルスCLO数の%の値
が、クロックパルス発生回路8が発生するクロックパル
スCLにより減算計数される。この減算計数の結果が0
になった時点、即ち第2図(g)に示す期間Xが終了し
た時点、換言すればパルス信号PSの前回の1周期の2
に相当する時点で、ダウンカウンタ3はORゲート6の
他方の入力端子にパルス信号DPを出力する。これによ
り第2図fg)に示す如<、ORゲート6の出力端子か
らはロータリエンコーダ7が出力するパルス信号の各1
周期の中間の時点に信号ps″が出力され、期間XとY
との時間が一致して、ロータリエンコーダ7が出力する
パルス信号psの1周期の丁度中間点にもパルス信号が
得られる。
Then, the pulse signal P generated by the rotary encoder 7
The count value of the counter 2 loaded into the down counter 3 each time each period of S starts, that is, the value of % of the number of clock pulses CLO corresponding to the previous one period of the pulse signal PS is calculated by the clock pulse generation circuit 8. is subtracted and counted by the clock pulse CL generated. The result of this subtraction count is 0
In other words, at the end of the period X shown in FIG. 2(g), in other words, at the end of the previous period
At a time point corresponding to , the down counter 3 outputs the pulse signal DP to the other input terminal of the OR gate 6. As a result, each pulse signal output from the rotary encoder 7 is output from the output terminal of the OR gate 6 as shown in FIG.
The signal ps'' is output at the middle point of the period, and the period X and Y
A pulse signal is obtained at exactly the midpoint of one period of the pulse signal ps outputted by the rotary encoder 7.

〔効果〕〔effect〕

以上詳述した如く本発明によれば、ロークリエンコーダ
が出力するパルス信号の各1周期の丁度中間点にもパル
ス信号が得られるため、ロークリエンコーダの温度特性
等に拘わらずロータリエンコーダが発生するパルス信号
の2周期(2倍の周波数)のパルス信号を得ることが可
能となる。
As detailed above, according to the present invention, a pulse signal can be obtained at the exact midpoint of each cycle of the pulse signal output by the rotary encoder, so that the rotary encoder generates a signal regardless of the temperature characteristics of the rotary encoder. It becomes possible to obtain a pulse signal with two periods (double the frequency) of the pulse signal.

従って、本発明装置を前述のドラム回転式インクジェッ
トプリンタに用いれば、通常の2倍の解像度にて印字を
行う場合にも良好な状態の印字結果が得られる。
Therefore, if the apparatus of the present invention is used in the above-mentioned drum rotation type inkjet printer, good printing results can be obtained even when printing is performed at twice the normal resolution.

【図面の簡単な説明】[Brief explanation of the drawing]

図面は本発明の実施例を示すものであり、第1図は本発
明装置の回路構成を示すブロック図、第2図はそのタイ
ムチャート、第3図は従来方法のタイムチャートである
。 1・・・2分周回路 2・・・カウンタ 3・・・ダウ
ンカウンタ 4・・・微分回路 7・・・ロータリエン
コーダ8・・・クロックパルス発生回路 CL・・・ク
ロックパルス ps・・・パルス信号
The drawings show an embodiment of the present invention; FIG. 1 is a block diagram showing the circuit configuration of the device of the present invention, FIG. 2 is a time chart thereof, and FIG. 3 is a time chart of a conventional method. 1...2 frequency divider circuit 2...Counter 3...Down counter 4...Differential circuit 7...Rotary encoder 8...Clock pulse generation circuit CL...Clock pulse ps...Pulse signal

Claims (1)

【特許請求の範囲】 1、ロータリエンコーダが発するパルス信号の1周期を
クロックパルスを用いて計時するカウタと、 該カウンタの計時結果により前記パルス信 号の1周期の1/2相当の数がセットされ、計時したパ
ルス信号の周期の次の1周期において前記クロックパル
スにより減算計数されるダウンカウンタとを備え、 該ダウンカウンタの計数内容が0となった 時点でパルス信号を出力すべくなしたことを特徴とする
ロータリエンコーダ装置。
[Claims] 1. A counter that measures one cycle of a pulse signal emitted by a rotary encoder using a clock pulse, and a number equivalent to 1/2 of one cycle of the pulse signal is set based on the time measurement result of the counter. , and a down counter that performs subtraction counting by the clock pulse in one period following the period of the timed pulse signal, and outputs the pulse signal when the count of the down counter becomes 0. Characteristic rotary encoder device.
JP12410284A 1984-06-15 1984-06-15 Rotary encoder device Pending JPS612015A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12410284A JPS612015A (en) 1984-06-15 1984-06-15 Rotary encoder device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12410284A JPS612015A (en) 1984-06-15 1984-06-15 Rotary encoder device

Publications (1)

Publication Number Publication Date
JPS612015A true JPS612015A (en) 1986-01-08

Family

ID=14876972

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12410284A Pending JPS612015A (en) 1984-06-15 1984-06-15 Rotary encoder device

Country Status (1)

Country Link
JP (1) JPS612015A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03296621A (en) * 1990-04-16 1991-12-27 Canon Inc Recording apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03296621A (en) * 1990-04-16 1991-12-27 Canon Inc Recording apparatus

Similar Documents

Publication Publication Date Title
US4167014A (en) Circuitry for perfecting ink drop printing at varying carrier velocity
JPH11277808A (en) Timing pulse generator and printer
US4769798A (en) Successive period-to-voltage converting apparatus
JPS612015A (en) Rotary encoder device
JPS6121011B2 (en)
US5216346A (en) Waveform processing circuit for pulse generator
US4527920A (en) Print hammer firing compensation circuit for printer velocity variation
US4167013A (en) Circuitry for perfecting ink drop printing at nonlinear carrier velocity
JP2996755B2 (en) Circuit device for generating a predetermined number of output pulses
GB1587811A (en) Ink jet pirnters
JPH0872341A (en) Raster type recording apparatus
JPS5694480A (en) Print timing correcting device
SU958982A1 (en) Device for measuring non-stationary random flow pulse average frequency
JP2001146054A (en) Recorder
JPS5511824A (en) Printing speed synchronizing device of ink jet recording device
JP2643008B2 (en) Emulator for dot printer
JPH07121594B2 (en) Print timing signal generator for serial printer
SU1674190A1 (en) Synchronizer for a character printer and fonts carried on tape
JPS61167276A (en) Left margin setting circuit
JPH0666666B2 (en) Pulse interval converter
JPS60154078A (en) Ink jet recording apparatus
JPS61284455A (en) Printing apparatus
KR880000997B1 (en) Rajor printer
JPH055143B2 (en)
JPH02245362A (en) Printing timing signal preparation system