JPS59155715A - Digital type multi-shaft position and speed detecting apparatus - Google Patents

Digital type multi-shaft position and speed detecting apparatus

Info

Publication number
JPS59155715A
JPS59155715A JP2925783A JP2925783A JPS59155715A JP S59155715 A JPS59155715 A JP S59155715A JP 2925783 A JP2925783 A JP 2925783A JP 2925783 A JP2925783 A JP 2925783A JP S59155715 A JPS59155715 A JP S59155715A
Authority
JP
Japan
Prior art keywords
axis
pulse
output
circuit
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.)
Pending
Application number
JP2925783A
Other languages
Japanese (ja)
Inventor
Masahiko Watanabe
正彦 渡辺
Tsutomu Omae
大前 力
Sanshiro Obara
小原 三四郎
Toshihiko Matsuda
敏彦 松田
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2925783A priority Critical patent/JPS59155715A/en
Publication of JPS59155715A publication Critical patent/JPS59155715A/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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P3/00Measuring linear or angular speed; Measuring differences of linear or angular speeds
    • G01P3/42Devices characterised by the use of electric or magnetic means
    • G01P3/44Devices characterised by the use of electric or magnetic means for measuring angular speed
    • G01P3/48Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage
    • G01P3/481Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage of pulse signals
    • G01P3/489Digital circuits therefor

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Linear Or Angular Velocity Measurement And Their Indicating Devices (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

PURPOSE:To make it possible to count plural kinds output pulses by one apparatus and to bring a multi-shaft position and speed detecting circuit to a simple one, by a method wherein the output state of each pulse generator is judged at every scheduled time and each outpt pulse thereof is counted while the counted value of a clock pulse is also latched at every output of the pulse generator. CONSTITUTION:Direction discriminating circuits 13-15 receive the supply of the two-phase output pulses 9A, 9B-11A, 11B generated from pulse generators 9- 11 and detect the rotary direction of each electric motor. The rotary direction signal of each electric motor is selected on the basis of the shaft indicating value generated from a shaft indicating circuit 16 by a multiplexer 17 every when a clock CLK for changing over shaft indication is inputted and supplied to a count circuit 18. The count circuit 18 adds 1 to the content of the predetermined address of the memory 20 indicated when an EN signal is outputted by the shaft indicating circuit 16 when the rotary direction of the shaft is positive and, to the contrary, subtract 1 therefrom when reverse. When the EN signal is not outputted, the count circuit 18 does not any operation.

Description

【発明の詳細な説明】 (利用分野) 本発明は、回転体などの移動体の位置や速度を検出する
ためのディジタル式多軸位置、速度検出装置に係り、特
に、複数個の回転体あるいは移動体を同時に制御するデ
ィジタル式の多軸位置、速度制御装置に好適なディジタ
ル式多軸位置、速度検出装置に関する。
Detailed Description of the Invention (Field of Application) The present invention relates to a digital multi-axis position and speed detection device for detecting the position and speed of a moving body such as a rotating body, and particularly relates to a digital multi-axis position and speed detection device for detecting the position and speed of a moving body such as a rotating body. The present invention relates to a digital multi-axis position and speed detection device suitable for a digital multi-axis position and speed control device that simultaneously controls moving objects.

(従来技術) 例えば、電動機の位置および速度をディジタル的に検出
するには、1回転に対してp個のパルスを発生するパル
ス発生器がよく用いられる。
(Prior Art) For example, to digitally detect the position and speed of an electric motor, a pulse generator that generates p pulses per revolution is often used.

すなわち、位置の検出には、このパルス発生器のパルス
計数値によって、移動距離を代表させることができるた
め、このパルス計数値を位置検出値とする方法がある。
That is, in detecting the position, since the moving distance can be represented by the pulse count value of this pulse generator, there is a method of using this pulse count value as the position detection value.

また、このパルス発生器を用いて速18′検出を行う方
法としては、ある一定の計数時間Td内におけるパルス
発生器の出力パルス数M1 と、前記計数時間Td  
内におけるクロックパルス数M2  とを用い、次の(
1)式によシ速変検出値Nfを得ることが知られている
Further, as a method for detecting speed 18' using this pulse generator, the number of output pulses M1 of the pulse generator within a certain counting time Td and the counting time Td
Using the number of clock pulses M2 within
It is known to obtain the gear speed change detection value Nf using equation 1).

1 Nf = K,□ ・・・・・・・・・・・り曲・・・
曲曲曲・・・・ +112 但し、K1は定数 上記方式1ごよる速度検出を実施するための回路として
、各パルスの計数及び計数時間Tdの決定までを専用の
ハードウェアで構成し、(1)式の演算をマイクロコン
ビ二一タのソフトウェアで処理する構成が提案されてい
る。
1 Nf = K, □ ・・・・・・・・・・・・・
Melody...+112 However, K1 is a constant circuit for speed detection using method 1 above, and consists of dedicated hardware for counting each pulse and determining the counting time Td. ) has been proposed in which the calculation of the equation is processed by the software of a microcombinator.

しかし、ロボット、NC工作機などのように、複数個の
電動機の速度検出を行う必要がある場合には、パルス発
生器の出力パルスを計数するカウンタとクロックパルス
を計数するカウンタ、及び周辺の専用ハードウェアが、
前記電動機の個数に応じて複数個必要となる。
However, when it is necessary to detect the speed of multiple electric motors, such as in robots and NC machine tools, a counter that counts the output pulses of the pulse generator, a counter that counts clock pulses, and a peripheral dedicated The hardware is
A plurality of electric motors are required depending on the number of electric motors.

このために、従来の手法では、ハードウェアが非常に大
規模になり、大型かつ高価になるという欠点があった。
For this reason, the conventional method has the disadvantage that the hardware becomes extremely large-scale, large-sized, and expensive.

(目  的) 本発明の目的は、複数個のパルス発生器からの出力パル
スを計数するカウンタ機能及び、グロックパルスを計数
するカウンタ機能を、各軸で共用することにより、ハー
ドウェアを簡単化すると共に、各々のパルス発生器の出
力パルスの計数値と、クロックパルスの計数値をハード
ウェア的に同期させることによ9、一 すなわち、各出
力パルスの計数時間と、タロツクパルスの計数時間とが
常に一致するように、各計測のタイミングを制御するこ
とにより、任意の電動機など、移動体の位置及び/また
は速度検出を、任意のタイミングで、マイクロコンピュ
ータが処理することのできるディジタル式多軸位置、速
度検出装置を提供することにある。
(Purpose) The purpose of the present invention is to simplify the hardware by sharing the counter function for counting output pulses from a plurality of pulse generators and the counter function for counting Glock pulses on each axis. In addition, by synchronizing the count value of the output pulses of each pulse generator and the count value of clock pulses in hardware,9. A digital multi-axis position system that allows a microcomputer to process the position and/or speed detection of a moving object, such as an electric motor, at any timing by controlling the timing of each measurement so that the An object of the present invention is to provide a speed detection device.

(概 要) 本発明は、前記目的を達成するために、複数のパルス発
生器の各出力パルスの最高周波数より高い周波数で、複
数個のパルス発生器を順次選択し、選択された時点での
各パルス発生器の出力パルスの状態に応じて、その選択
されたパルス発生器の出力パルス計数値を記憶している
記憶機能の内容を、→−1.−1あるいは、そのままの
値に保持することで、選択されたパルス発生器の出力パ
ルス計数値とする。
(Overview) In order to achieve the above object, the present invention sequentially selects a plurality of pulse generators at a frequency higher than the highest frequency of each output pulse of the plurality of pulse generators, and Depending on the state of the output pulses of each pulse generator, the contents of the memory function that stores the output pulse count value of the selected pulse generator are stored →-1. -1 or by keeping it at the same value, it becomes the output pulse count value of the selected pulse generator.

一力、任意のパルス発生器が出力パルスを発生した時点
で、そのパルス発生器を識別して、所定の記憶機能にタ
ロツクパルスを計数するカウンタの計数値を格納する。
Once an arbitrary pulse generator generates an output pulse, that pulse generator is identified and the count value of a counter for counting tarok pulses is stored in a predetermined storage function.

そして、任意の時点で、マイクロコンピュータがN番目
の電動機等移動体の、例えば速度を検出する場合1こは
、当該パルス発生器の出力パルス計数値が格納されてい
る記憶機能の内容MAN(ilと、クロックパルスの計
数値が格納されている記憶機能の内容MBN(11を各
々読み出し、また、前回のそれぞれの値MAN(1−1
) 、MBN(1−1)  により任意の時点における
N番目の電動機の速度NfNを次式により検出するもの
である。
When the microcomputer detects, for example, the speed of a moving object such as the Nth electric motor at an arbitrary point in time, the contents of the memory function MAN(il and the contents MBN (11) of the memory function in which the count value of clock pulses is stored, and also read out the respective previous values MAN (1-1
), MBN(1-1), the speed NfN of the Nth electric motor at any time is detected using the following equation.

但し、K2は定数 また、位置を検出する場合は、出力パルス計数値MAN
(1)(ど予定の定数を乗算するものである。
However, K2 is a constant, and when detecting the position, the output pulse count value MAN
(1) (This is a multiplication by a predetermined constant.

(実施例) 以下に、図面を参照して、本発明による実施例を説明す
る。第1図は、本発明の位置、速度検出装置を、3個の
電動機速度制御装置に適用した一実施例の概略ブロック
図である。
(Example) Examples according to the present invention will be described below with reference to the drawings. FIG. 1 is a schematic block diagram of an embodiment in which the position and speed detection device of the present invention is applied to three motor speed control devices.

マイクロコンピュータ2は、速度指令回路1から、3個
の電動機6,7.8に対するそれぞれの速度指令値Nc
、 r Nc、 、 Nc、を取シ込む。
The microcomputer 2 receives speed command values Nc from the speed command circuit 1 for the three electric motors 6, 7.8.
, r Nc, , Nc, are input.

一方、パルス発生器9,10.11 は、各々対応する
電動機6,7.8の回転数に比例した周波数のパルス列
を出力する。
On the other hand, the pulse generators 9, 10.11 output pulse trains of frequencies proportional to the rotational speed of the corresponding electric motors 6, 7.8, respectively.

各電動機に連結されたパルス発生器9,10゜11 の
出力パルスは、本発明による位置、速度検出回路12に
供給され、そこで計数される。こ\では、同時にタロツ
クパルスの計数も行なわれる。
The output pulses of the pulse generators 9, 10, 11 connected to each electric motor are supplied to a position and speed detection circuit 12 according to the invention and counted there. At this time, tarok pulses are counted at the same time.

マイクロコンピュータ2は、前記のパルス計数値および
クロックパルス計数値を取込んで、速度検出値Nf、 
、 Nf2. Nf、を演算し、さらに、これらの値に
基づいて、各々対応する駆動回路3,4゜5を動作させ
るための制御信号を出力する。
The microcomputer 2 takes in the pulse count value and the clock pulse count value, and generates a speed detection value Nf,
, Nf2. Nf is calculated, and furthermore, based on these values, control signals for operating the corresponding drive circuits 3, 4 and 5 are output.

駆動回路3,4.5は、例えばパワー半導体素子及びそ
の駆動部によυ構成され、マイクロコンピュータ2から
の制御信号に応じて電動機6,7゜8を所望の速度で回
転させる。
The drive circuits 3, 4.5 are constituted by, for example, a power semiconductor element and its drive section, and rotate the electric motors 6, 7.8 at a desired speed in response to control signals from the microcomputer 2.

なお、位置、速度検出回路12は、パルス発生器9,1
0.11の出力パルスを、マイクロコンピュータ2が速
度検出値を演算するための情報に変換するものである。
Note that the position and speed detection circuit 12 includes pulse generators 9 and 1.
The output pulse of 0.11 is converted into information for the microcomputer 2 to calculate a detected speed value.

この位置、速度検出回路12の構成図を第2図に示す。A configuration diagram of this position and speed detection circuit 12 is shown in FIG.

なお、図において、第2図、第1図と同一の符号は、同
一または同等部分をあられしている。
In the figures, the same reference numerals as in FIGS. 2 and 1 represent the same or equivalent parts.

方向判別回路13,14.15は公知のものでよく、パ
ルス発生器9,10.11から発生される二相出力パル
ス9A、9B、IOA、IOB、IIA、IIB を供
給され、公知の手法にしたがって、各々の電動機の回転
方向を検出する。
The direction determining circuits 13, 14.15 may be of known type, and are supplied with the two-phase output pulses 9A, 9B, IOA, IOB, IIA, IIB generated from the pulse generators 9, 10.11, and are processed using known methods. Therefore, the rotation direction of each electric motor is detected.

この各電動機の回転方向信号は、軸指定を切υ換えるグ
ロック(CLK)が入力される毎に、軸指定回路16が
発生する軸指定値に基づいて、マルチプレクサ17によ
って選択され、計数回路1Bに供給される。゛ なお、前記軸指定値は周期的に切換えられ、各軸が予定
の順序で指定される。また、分周器56は基準発振器の
出力CKを分周し、前記クロックCLKを発生する。
The rotation direction signal of each electric motor is selected by the multiplexer 17 based on the axis designation value generated by the axis designation circuit 16 every time the Glock (CLK) for switching the axis designation is input, and is sent to the counting circuit 1B. Supplied. Note that the axis designation values are periodically switched, and each axis is designated in a predetermined order. Further, the frequency divider 56 divides the frequency of the output CK of the reference oscillator to generate the clock CLK.

マルチプレクサ17  は、指定される各軸の回転方向
が正方向か逆方向かにしたがって、計数回路18が、計
数値を+1または−1するためのDIR(加減算指定)
信号として計数回路18に出力する。
The multiplexer 17 is a DIR (addition/subtraction designation) for the counting circuit 18 to increment the count value by +1 or -1 depending on whether the designated rotation direction of each axis is forward or backward.
It is output to the counting circuit 18 as a signal.

この計数回路18は、後で詳述するように・パルス同期
化回路19 から出力信号ENが出力されている状態、
つまり、ある軸が軸指定された時点において、その軸に
対応するパルス発生器(9゜10.11のいずれか)が
パルスを出力している時にだけ動作するものである。
This counting circuit 18 is in a state where the output signal EN is being outputted from the pulse synchronization circuit 19, as will be described in detail later.
In other words, it operates only when a certain axis is specified and the pulse generator (either 9°, 10, or 11) corresponding to that axis is outputting a pulse.

言い換えれば、計数回路18は、EN信号が出力されて
いる時に、軸指定回路16により指定されたメモリ20
  の所定のアドレスの内容(当該軸に対応する出力パ
ルスの累算値ス、当該軸の回転方向が正転の時には(+
1)し、また反対に、逆転の時には(−1)する。
In other words, the counting circuit 18 selects the memory 20 specified by the axis specifying circuit 16 when the EN signal is output.
The contents of the predetermined address (accumulated value of output pulses corresponding to the relevant axis, when the rotation direction of the relevant axis is forward rotation (+
1) and, conversely, (-1) in the case of a reversal.

また、ENlin号が出力されていない時には、この計
数回路18は何らの動作もしない。
Further, when the ENlin signal is not output, this counting circuit 18 does not perform any operation.

従って、メモリ20の前記アドレスの内容は、常に、パ
ルス発生器9,10.11  の各々に対応する出力パ
ルスの累算値に一致している。
Therefore, the content of said address in the memory 20 always corresponds to the accumulated value of the output pulses corresponding to each of the pulse generators 9, 10.11.

一方、クロックパルス発生器21が出力するクロックパ
ルスは、クロックカウンタ22によって、常に計数され
ている。こめ計数値は、パルス発生器9,10.11 
 の出力パルス9B、IOB、IIB(もちろん、9A
、 10A、 11A でもよい)が出力された時点で
、ラッチ回路23の中に、それぞれのパルス発生器ごと
に、各々対応して設けられたラッチに保持される。
On the other hand, the clock pulses output by the clock pulse generator 21 are constantly counted by the clock counter 22. The count value is the pulse generator 9, 10.11
output pulses 9B, IOB, IIB (of course, 9A
, 10A, 11A) is output, it is held in a latch provided in the latch circuit 23 corresponding to each pulse generator.

また、ラッチ回路23のゲート信号は、マイクロコンピ
ュータ2の出力信号T、)II 、 LH2、LH3を
各パルス発生器9,10.11の出力パルス9 B 、
IOB。
Furthermore, the gate signal of the latch circuit 23 is the output signal T, )II, LH2, LH3 of the microcomputer 2, and the output pulse 9B of each pulse generator 9, 10.11,
IOB.

lIB と共に、それぞれオア回路24,25.26の
入力として供給することによって得るような構成として
いる。
The configuration is such that it is obtained by supplying it as inputs to OR circuits 24, 25, and 26, respectively, along with IIB.

このため、マイクロコンピュータ2は、任意の時点にお
いて、ゲート信号LHI、LH2,LH3のいづれかを
出力することにより、クロックパルスの計数値であるカ
ウンタ22の計数値を取り込むことができる。
Therefore, the microcomputer 2 can take in the count value of the counter 22, which is the count value of clock pulses, by outputting any one of the gate signals LHI, LH2, and LH3 at any time.

なお、検出誤差の発生を防ぐためには、前記軸指定の切
換えの周期は、前記出力パルスの予想される最小周期を
、測定対象となる回転軸の数で除したときの商よ多小さ
い値に選定されなければならない。
In addition, in order to prevent detection errors from occurring, the cycle of switching the axis designation should be set to a value smaller than the quotient of the expected minimum cycle of the output pulse divided by the number of rotating axes to be measured. must be selected.

次Cご、第3図のタイムチャートを用いて、第2図の構
成による速度検出回路12の動作を説明する。
Next, the operation of the speed detection circuit 12 having the configuration shown in FIG. 2 will be explained using the time chart shown in FIG. 3.

軸指定回路16 は、分周器56から入力されるタロツ
クCLKIζ同期して、軸指定値を、例えば1.2.3
の頴序で、周期的に順次切り換える。
The axis designation circuit 16 synchronizes with the tally clock CLKIζ input from the frequency divider 56, and sets the axis designation value to, for example, 1.2.3.
Switch periodically and sequentially in this order.

この軸指定値により、マルチプレクサ17は、軸指定さ
れた電動機の回転方向信号をDIR(加減算指定)信号
として出力する。
Based on this axis designation value, the multiplexer 17 outputs a rotation direction signal of the motor with the designated axis as a DIR (addition/subtraction designation) signal.

なお、@3図においては、軸指定値1,3に対する電動
機の回転方向は正方向(または、順方向)であり、また
、軸指定値2に該当する電動機の回転方向は逆方向であ
る場合を例にとっている。
In addition, in Figure @3, the rotation direction of the electric motor corresponding to axis specification values 1 and 3 is the positive direction (or forward direction), and the rotation direction of the electric motor corresponding to axis specification value 2 is the opposite direction. is taken as an example.

このDIR信号と、計数回路18及びメモリ20を動作
させる信号ENとにより、各パルス発生器9.10.1
1の出力パルスの計数値MA 1 、 MA 2 、M
A3は、図示のようなタイミングで変化する。
This DIR signal and the signal EN that operates the counting circuit 18 and memory 20 cause each pulse generator 9.10.1 to
1 output pulse count MA 1 , MA 2 , M
A3 changes at the timing shown in the figure.

即ち、EN信号が出力されており、かつ軸指定信号が確
立された時に、DIR信号がハイレベルの時には、−す
なわち、対応する軸の回転が正方向ならばその時の軸指
定値tご対応するメモリ20の内容を(+1)する。ま
た、反対に、DIR信号がローレベル −すなわち、対
応する軸の回転が逆方向の時には、前記内容に(−1)
を加算する。
That is, when the EN signal is output and the axis designation signal is established, and the DIR signal is at a high level, - that is, if the rotation of the corresponding axis is in the positive direction, the axis designation value t at that time corresponds to The contents of the memory 20 are incremented by (+1). Conversely, when the DIR signal is at a low level - that is, when the rotation of the corresponding axis is in the opposite direction, the above content becomes (-1).
Add.

一方、クロックパルスの計数値MBI、MB2 。On the other hand, the clock pulse count values MBI and MB2.

Mn2は、パルス発生器9,10.11  の出力パル
ス9B、 IOB、 11B の各立上がりに同期して
、ラッ子回路23内の、各軸に対応して設けられたラッ
チに記憶される。
Mn2 is stored in a latch provided corresponding to each axis in the latch circuit 23 in synchronization with each rise of the output pulses 9B, IOB, 11B of the pulse generators 9, 10.11.

このような構成にすることにより、パルス発生器の出力
パルスを計数するカウンタ機能及びグロックパルスをi
t数するカウンタ機能は、複数個の@11に対しても、
た望1個で構成することができる。
With this configuration, the counter function that counts the output pulses of the pulse generator and the glock pulse can be
The counter function that counts t also works for multiple @11.
It can be composed of one wish.

このため、回路構成が簡単になる他、いつの時点Iごお
いてもメモリ20及びラッチ回路23には、各パルス発
生器の出力パルス計数値と、それに同期した(すなわち
、出力パルス計数時点と同時刻1どおける)クロックパ
ルスの計数値を、それぞれの対象軸ごとに記憶しておく
ことができる。
Therefore, in addition to simplifying the circuit configuration, at any time I, the memory 20 and latch circuit 23 contain the output pulse count value of each pulse generator and the output pulse count value synchronized therewith (that is, the same as the output pulse count time point). The count value of the clock pulse (at time 1) can be stored for each target axis.

それ故に、この両方の計数値を用いることによシ、マイ
クロコンピュータ2は、任意の時点において、前記した
(1)式にしたがって、任意の電動機の速度を検出する
ことができる。
Therefore, by using both counts, the microcomputer 2 can detect the speed of any motor at any time according to equation (1) above.

次IC1本発明ICよって速度検出を行なう場合の、マ
イクロコンピュータ2の処理フローチャートを第4図に
示し、以下に説明する。
FIG. 4 shows a processing flowchart of the microcomputer 2 when speed detection is performed using the IC 1 of the present invention, and will be described below.

マイクロコンピュータ2は、割込みを受付けることによ
りステップ30で検出すべき軸の指定値Nを取り込む。
The microcomputer 2 takes in the specified value N of the axis to be detected in step 30 by accepting the interrupt.

次に、ステップ31 fごおいて、メモリ20から第N
軸のパルス計数値MA7i1を取り込む。
Next, in step 31f, the Nth
Take in the pulse count value MA7i1 of the axis.

ステップ32では、マイクロコンピュータ2内の適当な
メモ1月ζ記憶されている前回の増9込み値MAN(1
−1)を用いて、パルス発生器の出力パルス計数値の前
回と今回の差 M 8N = MAN fi) −MAN (11)の
計算を行う。
In step 32, the previous increase 9 inclusive value MAN(1
-1), the difference between the previous and current output pulse count values of the pulse generator M 8N = MAN fi) - MAN (11) is calculated.

ステップ331ごおいて、 M、Nの値の正負を判定し
、MllNがOでないならばステップ34に進む。
At step 331, it is determined whether the values of M and N are positive or negative, and if MllN is not O, the process proceeds to step 34.

ステップ34では、ラッチ回路231ど保持されている
第N軸のクロックパルス計数値MBN (1)を取り込
む。
In step 34, the clock pulse count value MBN (1) of the Nth axis held by the latch circuit 231 is taken in.

ステップ35では、同様に、マイクロコンピュータ2の
メモリに記憶されている前回のクロックパルス計数値M
BN(1−1)を用いて、前回と今回との差 M4N−MBN(11−MBN(1−1)を計算する。
In step 35, similarly, the previous clock pulse count value M stored in the memory of the microcomputer 2 is
Using BN(1-1), calculate the difference between the previous time and this time, M4N-MBN(11-MBN(1-1)).

ステップ36においては、今回新たに取シ込んだ各パル
スの計数値NAN(11,MBN(i)を、次回の処理
の時のために、前回の値として、マイクロコンピュータ
2内の所定メモリに記憶すると共に、出力パルス計数値
の差M8Nを所定のメモリに記憶する。
In step 36, the count value NAN(11, MBN(i)) of each pulse newly imported this time is stored in a predetermined memory in the microcomputer 2 as the previous value for the next processing. At the same time, the difference M8N between the output pulse count values is stored in a predetermined memory.

ステップ37で、第N軸の速度 NfN−K、・MB / M4 を計算する。In step 37, the speed of the Nth axis NfN-K,・MB/M4 Calculate.

ステップ38 では、前のステップで得た速度検出値N
fNを所定のメモリに格納する。
In step 38, the speed detection value N obtained in the previous step is
fN is stored in a predetermined memory.

以上により、速度検出処理を終了する。With the above steps, the speed detection process ends.

なお、検出対象に指定された電動機の速度が予定値以下
になった場合には、マイクロコンピュータ2が、割込み
を受付ける間に、パルス発生器のパルスが出力されない
ことがある。
Note that if the speed of the electric motor designated as a detection target falls below a predetermined value, the pulse generator may not output pulses while the microcomputer 2 accepts an interrupt.

その場合には、前記の差M3Nが0になるので、マイク
ロコンピュータ2が、速度検出を行う場合に、上述した
処理では、正しい検出値を得ることができない。
In that case, the difference M3N becomes 0, so when the microcomputer 2 detects the speed, the above-described process cannot obtain a correct detected value.

それ故に、このような状態になった時には、ステップ3
3からステップ39に処理が移る。ステップ39では、
前回の処理におけるステップ32で求めた差M8Nを今
回の差殖、Nとして所定メモリから読取る。
Therefore, when this situation occurs, step 3
The process moves from step 3 to step 39. In step 39,
The difference M8N obtained in step 32 in the previous process is read from a predetermined memory as the current difference, N.

ステップ40 でLJ(Nの信号を出力して、その時点
でのクロックカウンタ22 の計数値を、ラッチ回路2
3に保持させる。
In step 40, the signal LJ(N) is output, and the count value of the clock counter 22 at that point is calculated by the latch circuit 2.
Hold it at 3.

その後、ステップ41 で、ラッチ回路23から、今指
定されている第N軸のクロックパルス計数値MBNO)
を取り込む。
Thereafter, in step 41, the latch circuit 23 outputs the clock pulse count value MBNO of the currently specified N-axis.
Incorporate.

ステップ42においては、前回のパルス計数値との差 M、。= MB711− MBN(1−1)を計算する
In step 42, the difference M from the previous pulse count value. = MB711-MBN(1-1) is calculated.

ステップ43では、パルス計数値M4Nを前回のM、N
とM4o の和の値とし、ステップ36に移る。
In step 43, the pulse count value M4N is set to the previous M, N
and M4o, and the process moves to step 36.

以下、前述したステップ36〜38の処理で速度検出値
NfNを求める。
Thereafter, the speed detection value NfN is determined through the processes of steps 36 to 38 described above.

前述のような低速時の処理は、指定された電動機に連結
されたパルス発生器からパルスが出力されるまで、くυ
返して実行されるが、この間の速度検出値としては、予
測値が得られることになる。
Processing at low speeds as described above is performed until pulses are output from the pulse generator connected to the specified motor.
The process is then executed again, but the predicted value is obtained as the speed detection value during this time.

そして、当該パルス発生器からパルスが出力された時点
で、正確な速度検出値が得られることになる。
Then, an accurate speed detection value can be obtained at the time when a pulse is output from the pulse generator.

以下、第2図ζζおけるパルス同期化回路19 および
計数回路18の詳細を説明する。
The details of the pulse synchronization circuit 19 and the counting circuit 18 in FIG. 2 ζζ will be explained below.

第5図にパルス同期化回路19のブロック図を示し、ま
た、第6図には、第5図の動作を説明するための、1軸
分のタイムチャートを示す。なお、このパルス同期化回
路は、3軸分とも同じであるため、1軸分のみについて
説明する。
FIG. 5 shows a block diagram of the pulse synchronization circuit 19, and FIG. 6 shows a time chart for one axis to explain the operation of FIG. 5. Note that this pulse synchronization circuit is the same for all three axes, so only one axis will be described.

デコーダ50は、軸指定回路16からの軸指定値「1」
に応じて、軸のセレクト信号81(選択されたとき、ロ
ーレベルになる)を出力する。フリップフロップ53 
は、後述するところから明らかなように、パルス発生器
9の出力パルス9Bを記憶しており、当該軸に対する軸
指定期間が終了した時点、つまり、セレクト信号S1の
立上がりに同期してリセットされる。
The decoder 50 receives the axis designation value “1” from the axis designation circuit 16.
In response to this, an axis select signal 81 (which becomes low level when selected) is output. flip flop 53
As is clear from what will be described later, the pulse generator 9 stores the output pulse 9B of the pulse generator 9, and is reset at the end of the axis designation period for the relevant axis, that is, in synchronization with the rise of the select signal S1. .

また、計数回路18及びメモリ20を動作させるEN信
号−すなわち、パルス同期化回路の出力は、セレクト信
号S1が出力されている(ローレベル)時点において、
フリップフロップ53がパルスを記憶している時(その
Q出力が 1″のとき)に、アンド回路54の出力FQ
Iがハイレベルになり、これがオア回路55を介して出
力されるものである。
In addition, the EN signal for operating the counting circuit 18 and the memory 20, that is, the output of the pulse synchronization circuit, is output at the time when the select signal S1 is output (low level).
When the flip-flop 53 stores a pulse (when its Q output is 1''), the output FQ of the AND circuit 54
I becomes high level, and this is outputted via the OR circuit 55.

なお、第6図に示すA点の時のように、軸指定期間中に
パルス発生器の出力パルス9Bが出力された(立上った
)場合には、EN信号が正しく軸指定期間中出力されな
くなるおそれがある。
If the output pulse 9B of the pulse generator is output (rises) during the axis specification period, as at point A shown in Figure 6, the EN signal will be correctly output during the axis specification period. There is a risk that it will not be possible.

この対策として、本実施例では、セレクト信号S1及び
フリップフロップ53の出力FQIが共にローレベルの
時には、これらの反転信号によって、アンド回路52の
出力を立上らせる。これによりゲート回路51のゲート
信号G1をハイレベルにして、パルス発生器9の出力パ
ルス9Bヲマスクする。
As a countermeasure against this, in this embodiment, when the select signal S1 and the output FQI of the flip-flop 53 are both at low level, the output of the AND circuit 52 is caused to rise by the inverted signals of these signals. As a result, the gate signal G1 of the gate circuit 51 is set to high level, and the output pulse 9B of the pulse generator 9 is masked.

すなわち、出力パルス9Bがフリップ70ツブ53 の
セット入力に供給されるのを阻止し、その出力FQIが
1″になるのを妨げる。前述のようにしてマスクされた
パルス発生器9の出力パルス9Bの情報は、この軸指定
期間が終了した時点(第6図のC時局で、フリップフロ
ップ53に記憶される。
That is, it prevents the output pulse 9B from being supplied to the set input of the flip 70 knob 53 and prevents its output FQI from reaching 1''.The output pulse 9B of the pulse generator 9 masked as described above is The information is stored in the flip-flop 53 at the end of this axis designation period (at time C in FIG. 6).

すなわち、当該軸1こ対する軸指定期間が終了する時点
Cに、軸セレクト信号S1が立上ることにより、アンド
回路52の出力であるゲート信号G1がローレベルとな
る。
That is, at time point C when the axis designation period for one axis ends, the axis select signal S1 rises, and the gate signal G1, which is the output of the AND circuit 52, becomes low level.

それ故に、出力パルス9Bによって7リツプフロツブ5
3がセットされ、その出力FQI が1”になる。
Therefore, the output pulse 9B causes the 7 lip flops 5
3 is set, and its output FQI becomes 1''.

前記のようにして記憶された出力パルス9Bの情報は、
当該軸に対する次の軸指定期間B点において反映される
。すなわち、EN信号が出力されて計数が実行される。
The information on the output pulse 9B stored as described above is
It will be reflected at point B during the next axis designation period for the relevant axis. That is, the EN signal is output and counting is performed.

このような回路構成にすることにより、パルス発生器出
力の情報は、その軸が選択されている期間に、正しく出
力に反映される。
With such a circuit configuration, the information of the pulse generator output is correctly reflected in the output during the period when that axis is selected.

次に、パルス発生器の出力パルスを計数する計数回路1
8の詳細を第7図に示し、また、第7図の動作を説明す
るタイムチャートを第8 図に示す。
Next, a counting circuit 1 that counts the output pulses of the pulse generator
8 is shown in detail in FIG. 7, and a time chart explaining the operation of FIG. 7 is shown in FIG.

この回路では、各部の動作を、基準クロックα及び、そ
れを分周回路56により1/2,1/4分周した出力、
および1/8分周した出力CLKにより同期をとってい
る。
In this circuit, the operation of each part is controlled by the reference clock α and the outputs obtained by dividing it into 1/2 and 1/4 by the frequency dividing circuit 56.
And synchronization is achieved by the output CLK which is frequency-divided by 1/8.

まず、アンド回路64からRD(読出)信号が出力され
ている時に、メモリ20は、軸重定回路16 の軸重定
出力に対応するアドレスの内容MA(すなわち、その時
までの累算値)を加算器59に出力する。
First, when the RD (read) signal is output from the AND circuit 64, the memory 20 stores the content MA of the address corresponding to the axle weight determination output of the axle weight determination circuit 16 (that is, the accumulated value up to that time) into the adder. 59.

加算器5つは、指定された軸の回転方向を示すDTTl
t信号によって選択された(+1)データ57、あるい
は(−1)データ58のいづれかの値と、Ail記のよ
うにして読出されたメモリ20の出力データMAとを加
算し、ラッチ回路60に出力する。
The five adders are DTTl indicating the direction of rotation of the specified axis.
The value of either (+1) data 57 or (-1) data 58 selected by the t signal is added to the output data MA of the memory 20 read as described in Ail, and the result is output to the latch circuit 60. do.

ラッチ回路60は、アンド回路61から出力されるST
B信号により加算器59が加算したデータ(すなわち、
更新された累算値)を保持する。
The latch circuit 60 receives the ST output from the AND circuit 61.
The data added by the adder 59 according to the B signal (i.e.
(updated cumulative value) is retained.

その後、ラッチ回路60は、アンド回路63からのWE
(書込)信号により、保持しているデータをメモリ20
に対して出力する。
Thereafter, the latch circuit 60 receives the WE from the AND circuit 63.
(Write) signal causes the stored data to be transferred to the memory 20.
Output for.

メモリ20  は、このようにラッチ回路60から出力
されたデータを、前記のWE期間中に、軸重定回路16
の軸重定出力値に対応するアドレスに記憶する。これに
より、軸重定されたパルス発生器の出力パルス計数を終
了する。
The memory 20 stores the data thus output from the latch circuit 60 in the axis weight determining circuit 16 during the WE period.
It is stored in the address corresponding to the axis weight fixed output value. This completes the counting of the output pulses of the pulse generator with the axis weight determined.

なお、メモリ20及びラッチ回路60に対する各種信号
は、アンド回路61,62,63,64によシ第6図に
表わすようなタイミングで生成している。
Note that various signals for the memory 20 and the latch circuit 60 are generated by AND circuits 61, 62, 63, and 64 at timings as shown in FIG.

また、第7図からも明らかなように、RD、WE。Moreover, as is clear from FIG. 7, RD and WE.

STB  などの各信号は、パルス同期化回路19の出
力であるEN信号が出力されていない時は、発生されな
い。このため、指定された軸に対応するパルス発生器の
出力が無い場合には、メモリ20の内容を更新するため
の前述の動作は実行されない。それ故に、正しくパルス
数をメモリ20に記憶することになる。
Each signal such as STB is not generated when the EN signal, which is the output of the pulse synchronization circuit 19, is not output. Therefore, if there is no output from the pulse generator corresponding to the designated axis, the above-described operation for updating the contents of the memory 20 is not performed. Therefore, the number of pulses will be correctly stored in the memory 20.

次に、計数回路18の他の具体例の詳細を第9図に示し
、また、第9図の動作を説明するタイムチャートを第1
0図に示す。なお、第9図と第7図及び第10図と第8
図における同符号のブロックは同一動作を行い、また、
同名信号は、同一タイミングで出力する。
Next, details of another specific example of the counting circuit 18 are shown in FIG. 9, and a time chart explaining the operation of FIG. 9 is shown in FIG.
Shown in Figure 0. In addition, Fig. 9 and Fig. 7, Fig. 10 and Fig. 8
Blocks with the same symbols in the diagram perform the same operations, and
Signals with the same name are output at the same timing.

まず、メモリ20は、RD信号の出力期間において、軸
重定回路16が出力する軸重定値に対応するアドレスの
内容MAを、アップダウンカウンタ68に出力する。
First, the memory 20 outputs the content MA of the address corresponding to the axle weight set value outputted by the axle weight setting circuit 16 to the up/down counter 68 during the output period of the RD signal.

アップダウンカウンタ68は、アンド回路67から供給
されるPR(プリセット)信号を受は取った時点で、こ
のデータを前記アップダウンカウンタ68にプリセット
する。その後、アンド回路61から送られてくるSTB
信号により、メモリ20の内容−すなわち、前述のよう
にしてプリセットした値を、DIR信号に応じて、1″
 だけアップカウントあるいはダウンカウントする。
When the up/down counter 68 receives a PR (preset) signal supplied from the AND circuit 67, it presets this data into the up/down counter 68. After that, the STB sent from the AND circuit 61
In response to the DIR signal, the content of the memory 20 - that is, the value preset as described above, is changed to 1'' in response to the DIR signal.
Only count up or count down.

このようなアップカウントとダウンカウントの切換えは
、DIR信号とSTB信号とをアンド回路65.66に
供給することによって行なわれる。
Such switching between up-counting and down-counting is performed by supplying the DIR signal and STB signal to AND circuits 65 and 66.

アップダウンカウンタ68の、更新された出力である、
アップカウントあるいはダウンカウントされた値は、バ
ッファ回路69に入力される。そして、WE傷信号より
、メモリ20に送られ、軸重定回路16が指定するアド
レスに・新たな累算値として記憶される。
The updated output of the up/down counter 68 is
The up-counted or down-counted value is input to the buffer circuit 69. The WE damage signal is then sent to the memory 20 and stored as a new cumulative value at the address designated by the axis weight determining circuit 16.

なお、メモリ20、アップダウンカウンタ68、バッフ
ァ回路69に対するRD、WE、PR,STBなどの各
種信号は、第10図に示すように、EN信号が出力され
ている期間に発生する。
Note that various signals such as RD, WE, PR, and STB to the memory 20, up/down counter 68, and buffer circuit 69 are generated during the period when the EN signal is output, as shown in FIG.

以上に詳細に述べたような方式で、パルス発生器の出力
パルスを計数する回路を構成することにより、複数個の
軸の出力パルスを計数する計数機能が、1個で構成する
ことができるようになる。
By configuring the circuit that counts the output pulses of the pulse generator using the method described in detail above, the counting function that counts the output pulses of multiple axes can be configured with a single unit. become.

このため、回路構成を簡単にすることができる。Therefore, the circuit configuration can be simplified.

上述したようにして速度検出回路を構成した場合、計数
回路18が、メモリ20に対して読み出し、あるいは書
込み動作をしている間に、マイクロコンピュータ2がメ
モリ20の内容を取り込みに行くと、メモリ20の内容
が破壊されてしまい、パルス発生器の出力パルスを正し
く計数することができなくなってしまうという問題があ
る。
When the speed detection circuit is configured as described above, when the microcomputer 2 goes to read the contents of the memory 20 while the counting circuit 18 is reading or writing to the memory 20, the memory There is a problem in that the contents of 20 are destroyed, making it impossible to correctly count the output pulses of the pulse generator.

このような状態をさけるための回路を第11図に示し、
また、第11図の動作を説明するタイムチャートを第1
2図に示す。
A circuit for avoiding such a situation is shown in Fig. 11.
In addition, the time chart explaining the operation in FIG.
Shown in Figure 2.

マイクロコンピュータ2が、メモリ20の内容を取り込
みに行く読取信号μRI)を出力した(立下った)時点
Aにおいて、@j数回路18が動作可能な状態であると
仮定する。
It is assumed that the @j number circuit 18 is in an operable state at a time A when the microcomputer 2 outputs (falls) a read signal μRI for reading the contents of the memory 20.

この仮定の下では、EN信号を制御するゲート回路75
のゲート信号ENGがハイレベルであるから、アンド回
路74のHLD (ホールド)出力がハイレベルになる
。これによって、マイクロコンピュータ2の動作は停止
される。
Under this assumption, the gate circuit 75 that controls the EN signal
Since the gate signal ENG of is at a high level, the HLD (hold) output of the AND circuit 74 is at a high level. As a result, the operation of the microcomputer 2 is stopped.

その後、計数回路18に対する動作が完了する時点B1
つまり、CLK信号が立下がった時、これにl’!して
フリップフロップ71のQ出力であるゲート信号ENG
 がローレベルになる。これにより、ゲート回路75が
閉じられ、計数回路18の動作は停止される。
Thereafter, the time point B1 when the operation for the counting circuit 18 is completed
In other words, when the CLK signal falls, l'! The gate signal ENG which is the Q output of the flip-flop 71
becomes low level. This closes the gate circuit 75 and stops the operation of the counting circuit 18.

一力、前記ゲート信号ENGがローレベルになるため、
アンド回路74の出力−すなわち、マイクロコンピュー
タ2を停止させるための信号HLD  もローレベルに
なる。したがって、マイクロコンピュータ2は、メモリ
20の内容を取シ込むことができるようになる。
First, because the gate signal ENG becomes low level,
The output of the AND circuit 74, that is, the signal HLD for stopping the microcomputer 2 also becomes low level. Therefore, the microcomputer 2 can read the contents of the memory 20.

また、同時点Bにおいて、アンド回路73の入力信号μ
RD  、ENGが共にローレベルになるため、アンド
回路73の出力はハイレベルとなる。
Also, at the same time point B, the input signal μ of the AND circuit 73
Since both RD and ENG become low level, the output of the AND circuit 73 becomes high level.

これにより、基準クロックCKを制御するゲート回路7
2が閉じられる。
As a result, the gate circuit 7 that controls the reference clock CK
2 is closed.

したがって、分周回路56には、クロックCKが入力さ
れ無くなり、CLK 信号も出力されなくなる。そのた
め、軸重定回路16を含むパルス発生器の出力パルス計
数機能は、すべて停止する。
Therefore, the clock CK is no longer input to the frequency dividing circuit 56, and the CLK signal is also no longer output. Therefore, all output pulse counting functions of the pulse generator including the axis weight determining circuit 16 are stopped.

その後、マイクロコンピュータ2が、メモリ20に対す
る動作を完了し、読取信号μRDが立上る時点Cにおい
て、ワンシ冒ット回路70がPR8(プリセット)信号
をフリップ70ツブ71 に出力する。
Thereafter, at time C when the microcomputer 2 completes the operation on the memory 20 and the read signal μRD rises, the one-off print circuit 70 outputs a PR8 (preset) signal to the flip 70 knob 71.

この結果、7リツプ70ツブ71のQ出力信号ENG 
がハイレベルになり、第11図の回路全体が、もとの状
態Iζ復帰する。
As a result, the Q output signal ENG of 7 lips 70 tubes 71
becomes high level, and the entire circuit of FIG. 11 returns to its original state Iζ.

前述のような構成にすることにより、適当な時点で、マ
イクロコンピュータ2がメモリ20ノ内容を取り込みに
行っても、パルス発生器の出力パルス計数値をこわすよ
うなことはなくなる。
By configuring as described above, even if the microcomputer 2 goes to read the contents of the memory 20 at an appropriate time, the output pulse count value of the pulse generator will not be corrupted.

また、マイクロコンビ為−り2が、メモリ20の内容を
取り込んでいる間、パルス計数機能を停止させ、マイク
ロコンピュータの動作が完了した時点で、直ちに計数機
能を復旧できるために、パルス計数の時間遅れを最短に
することができる。
In addition, the pulse counting function can be stopped while the microcombi counter 2 is importing the contents of the memory 20, and the counting function can be restored immediately when the microcomputer operation is completed. Delays can be minimized.

(効 果) 以上の説明から明らかなように、本発明によれば、予定
時間毎に各パルス発生器の出力状態を判定し、それぞれ
の出力パルスを計数するとともに、クロックパルスの計
数値も、パルス発生器の出力毎にラッチするようにした
ため、複数種の出力パルスの計数が、1個の装置ででき
るようになり、多軸の位置、速度検出回路を簡単な回路
で実現することができる。
(Effects) As is clear from the above description, according to the present invention, the output state of each pulse generator is determined at each scheduled time, each output pulse is counted, and the counted value of the clock pulse is also calculated. Since each output of the pulse generator is latched, multiple types of output pulses can be counted with one device, and a multi-axis position and speed detection circuit can be realized with a simple circuit. .

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

第1図は、本発明の多軸位置、速度検出装置を3軸の電
動機速度制御に適用する場合の概略ブロック図、第2図
は、本発明の多軸位置、速度検出装置の構成を表すブロ
ック図、第3図は、第2図の動作を説明するためのタイ
ムチャート、第4図は、本発明の多軸位置、速度検出装
置によシマイクロコンピュータが速度検出を行う場合の
、処理手順を表すタイムチャート、第5図は、第2図に
おけるパルス同期化回路の詳細ブロック図、第6図は、
第5図の動作を説明するためのタイムチャー1、第7図
は、第2図における計数回路の一具体例の詳細ブロック
図、第8図は、第7図の動作を説明するためのタイムチ
ャート、第9図は、第2図における割数回路の他の具体
例の詳細ブロック図、第10 図は、第9図の動作を説
明するためのタイムチャー1・、第11 図は、マイク
ロコンピュータが、パルス計数値を読出すタイミングを
作る回路のブロック図、第12図は、第11 図の動作
を説明するためのタイムチャートである。 1・・・速度指令回路、2・・・マ・rクロコンピユー
タ、3.4.5・・・駆動回路、6,7.8・・・電動
機、9.10.11・・・パルス発生器、12・・・多
軸位置速度検出回路、13,14.15・・・方向判別
回路、16・・・軸重定回路、17・・・マルチプレク
サ、18・・・組数回路、19 ・・・同期化回路、2
0・・・メモリ、21・・・クロックパルス発生回路、
22 ・・・カウンタ、23・・・ラッチ回路、50・
・・デコーダ、53・・・フリップフロップ、56・・
・分局回路、57・・・加算データ、58・・・減算デ
ータ、59・・・加算器、60・・・ラッチ、68・・
・アップダウンカウンタ、69・・・バッファ回路、7
0・・・ワンショット回路、71・・・フリップフロッ
プ代理人弁理士 平 木 道 人 第1図 第8図 MA 第9図
FIG. 1 is a schematic block diagram when the multi-axis position and speed detection device of the present invention is applied to three-axis motor speed control, and FIG. 2 shows the configuration of the multi-axis position and speed detection device of the present invention. The block diagram, FIG. 3 is a time chart for explaining the operation of FIG. 2, and FIG. 4 is a process when a microcomputer performs speed detection using the multi-axis position and speed detection device of the present invention. A time chart showing the procedure, FIG. 5 is a detailed block diagram of the pulse synchronization circuit in FIG. 2, and FIG. 6 is a detailed block diagram of the pulse synchronization circuit in FIG.
Time chart 1 for explaining the operation of FIG. 5, FIG. 7 is a detailed block diagram of a specific example of the counting circuit in FIG. 2, and FIG. 8 is a time chart for explaining the operation of FIG. 9 is a detailed block diagram of another specific example of the divisor circuit in FIG. 2, FIG. 10 is a time chart 1 for explaining the operation of FIG. 9, and FIG. FIG. 12, which is a block diagram of a circuit for determining the timing at which the computer reads out the pulse count value, is a time chart for explaining the operation of FIG. 11. 1... Speed command circuit, 2... Macro computer, 3.4.5... Drive circuit, 6, 7.8... Electric motor, 9.10.11... Pulse generator , 12... Multi-axis position and speed detection circuit, 13, 14. 15... Direction discrimination circuit, 16... Axis weight determination circuit, 17... Multiplexer, 18... Group number circuit, 19... Synchronization circuit, 2
0...Memory, 21...Clock pulse generation circuit,
22...Counter, 23...Latch circuit, 50...
...Decoder, 53...Flip-flop, 56...
- Branch circuit, 57... addition data, 58... subtraction data, 59... adder, 60... latch, 68...
・Up/down counter, 69...Buffer circuit, 7
0... One-shot circuit, 71... Flip-flop agent Michihito Hiraki, patent attorney Figure 1 Figure 8 MA Figure 9

Claims (2)

【特許請求の範囲】[Claims] (1)複数軸の駆動系を持つ移動体き、それぞれの軸に
対応して設けられ、各軸の移動距離に応じてパルスを発
生する複数のパルス発生器と、それぞれの軸の移動方向
を判定する手段と、前記パルス発生器の出力パルス周波
数よシ高い一定周波数を発生するクロックパルス発生器
と、前記複数個のパルス発生器を頴次に選択指定する軸
指定回路と、前記移動方向判定手段の出力に基づいて、
前記の指定されたパルス発生器の出力パルスを加減算す
るパルス計数回路と、前記パルス計数回路の計数値を、
それぞれの軸ごと(こ記憶する第1の記憶手段と、前記
グロックパルスを計数するクロックカウンタと、前記ク
ロックカウンタの計数値を、それぞれの軸ごとに記憶す
る第2の記憶手段と、第1及び第2の記憶手段の記憶内
容を用いて、各軸の位置、速度をディジタル演算する演
算手段とを備えたディジタル式多軸位置、速度検出装置
において、前記第2の記憶手段では、各パルス発生器か
らパルスが出力される毎に、前記クロックカウンタの計
数値を、各軸とさに予定のエリアに記憶し、一方、前記
演算手段は、前記第1の記憶手段及び第2の記憶手段に
保持された、各軸ごとの出力パルス計数値およびクロッ
ク計数値を、任意の時刻において取り出し、これらを用
いて、所望の軸の位置、速度を演算するように構成され
たことを特徴とするディジタル式多軸位置、速度検出装
置。
(1) A moving body with a drive system for multiple axes, with multiple pulse generators installed corresponding to each axis to generate pulses according to the travel distance of each axis, and a plurality of pulse generators that generate pulses according to the travel distance of each axis. a clock pulse generator that generates a constant frequency higher than the output pulse frequency of the pulse generator; an axis designation circuit that sequentially selects and designates the plurality of pulse generators; and the movement direction determination. Based on the output of the means,
A pulse counting circuit that adds and subtracts the output pulses of the specified pulse generator, and a count value of the pulse counting circuit,
a first storage means for storing the clock pulses for each axis; a clock counter for counting the glock pulse; a second storage means for storing the counted value of the clock counter for each axis; In a digital multi-axis position and speed detection device comprising calculation means for digitally calculating the position and speed of each axis using the stored contents of the second storage means, the second storage means is configured to detect each pulse Every time a pulse is output from the device, the count value of the clock counter is stored in a predetermined area for each axis, while the calculation means stores the count value in the first storage means and the second storage means. A digital device characterized in that the output pulse count value and clock count value for each axis are retrieved at an arbitrary time and are used to calculate the position and speed of a desired axis. Multi-axis position and speed detection device.
(2)前記パルス計数回路が、ある軸指定期間内におい
て、第1の記憶手段の軸指定回路によって指定された軸
に対応するアドレスに記憶されている計数値に、前記移
動方向手段の出力に応じて、予め定められた数を加減算
する加算器と、前記加算器の加減算結果を、前記第1の
記憶手段の前記アドレスに再び記憶させる手段とを具備
したことを特徴とする特許 ジタル式多軸位置、速度検出装置。
(2) The pulse counting circuit applies the count value stored at the address corresponding to the axis designated by the axis designation circuit of the first storage means to the output of the movement direction means within a certain axis designation period. Accordingly, there is provided a patented digital multifunction device characterized by comprising an adder for adding and subtracting a predetermined number, and means for storing the addition and subtraction results of the adder again in the address of the first storage means. Axis position and speed detection device.
JP2925783A 1983-02-25 1983-02-25 Digital type multi-shaft position and speed detecting apparatus Pending JPS59155715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2925783A JPS59155715A (en) 1983-02-25 1983-02-25 Digital type multi-shaft position and speed detecting apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2925783A JPS59155715A (en) 1983-02-25 1983-02-25 Digital type multi-shaft position and speed detecting apparatus

Publications (1)

Publication Number Publication Date
JPS59155715A true JPS59155715A (en) 1984-09-04

Family

ID=12271217

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2925783A Pending JPS59155715A (en) 1983-02-25 1983-02-25 Digital type multi-shaft position and speed detecting apparatus

Country Status (1)

Country Link
JP (1) JPS59155715A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62233766A (en) * 1986-04-04 1987-10-14 Hitachi Ltd Speed detecting method
JPH01138464A (en) * 1987-07-22 1989-05-31 Hitachi Ltd Rotation information output device
JPH0272978U (en) * 1988-11-24 1990-06-04

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57144465A (en) * 1981-02-28 1982-09-07 Hitachi Ltd Speed detecting method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57144465A (en) * 1981-02-28 1982-09-07 Hitachi Ltd Speed detecting method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62233766A (en) * 1986-04-04 1987-10-14 Hitachi Ltd Speed detecting method
JPH01138464A (en) * 1987-07-22 1989-05-31 Hitachi Ltd Rotation information output device
JPH0272978U (en) * 1988-11-24 1990-06-04

Similar Documents

Publication Publication Date Title
US4262336A (en) Multi-axis contouring control system
US4449196A (en) Data processing system for multi-precision arithmetic
JPS60131465A (en) Detector for rotating speed
US2817775A (en) Control circuit
GB1344386A (en) Phase signal responsive system
US4214823A (en) Animation stand control system
JPS59155715A (en) Digital type multi-shaft position and speed detecting apparatus
KR930002719B1 (en) Apparatus and method for increasing the accuracy of the encoder output
US4710770A (en) Phase modulation type digital position detector
JPS6275814A (en) Digital time difference measuring instrument
JPH0673168B2 (en) Control method of magnetic recording / reproducing apparatus
JPH0442606B2 (en)
JPH05188067A (en) Servo motor speed detecting device
JP2010172056A (en) Speed pattern generating apparatus
JPH05188068A (en) Servo motor speed detecting device
JPS5839613B2 (en) Table of Contents
JPH05150808A (en) Motion controller
JPS58120167A (en) Detection of speed
US4731568A (en) Error signal generator
RU2010293C1 (en) Linear-circular interpolator
JP3609891B2 (en) Microcomputer
JPH05188066A (en) Servo motor speed detecting device
JPS6015719A (en) Digital phase servo circuit
JPH05332788A (en) Data processing device for rotary encoder
JPH0585981B2 (en)