Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0524522B2 - - Google Patents
[go: Go Back, main page]

JPH0524522B2 - - Google Patents

Info

Publication number
JPH0524522B2
JPH0524522B2 JP9483488A JP9483488A JPH0524522B2 JP H0524522 B2 JPH0524522 B2 JP H0524522B2 JP 9483488 A JP9483488 A JP 9483488A JP 9483488 A JP9483488 A JP 9483488A JP H0524522 B2 JPH0524522 B2 JP H0524522B2
Authority
JP
Japan
Prior art keywords
memory
value
output value
memory output
update
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.)
Expired - Lifetime
Application number
JP9483488A
Other languages
Japanese (ja)
Other versions
JPS63288301A (en
Inventor
Makoto Goto
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP63094834A priority Critical patent/JPS63288301A/en
Publication of JPS63288301A publication Critical patent/JPS63288301A/en
Publication of JPH0524522B2 publication Critical patent/JPH0524522B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Feedback Control In General (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、フイードバツク制御のループ内で使
用される補償器に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a compensator used within a feedback control loop.

従来の技術 フイードバツク制御の一例として、たとえば、
モータの回転速度を速度検出器により検出して、
その検出信号によつてモータへの供給電力を制御
するモータの速度制御装置は、ビデオテープレコ
ーダのキヤプスタンモータやシリンダヒータ等に
広く利用されている(例えば、本出願人が提案し
た特願昭56−142724号を参照)。しかしながら、
このような速度制御装置では、従来から利用され
ている比例・積分・微分制御を行つているだけで
あり、負荷トルク変動による回転速度の変動を十
分に仰制することができなかつた。
Conventional technology As an example of feedback control, for example,
The rotation speed of the motor is detected by a speed detector,
Motor speed control devices that control the power supplied to the motor based on the detection signal are widely used in video tape recorder capstan motors, cylinder heaters, etc. (for example, the patent application proposed by the present applicant (See No. 142724, 1983). however,
Such a speed control device only performs conventionally used proportional, integral, and differential control, and is unable to sufficiently control rotational speed fluctuations due to load torque fluctuations.

このような問題を解決するために、本出願人は
特願昭60−229143号および特願昭60−229144号に
負荷トルク変動に対して非常に強くした高性能な
モータの速度制御装置を提案した。すなわち、特
願昭60−229143号や特願昭60−229144号では、モ
ータの回転速度に応じた周期の交流信号を生じる
回転センサと、回転センサの交流信号によりモー
タの1回転当たり複数回の検出を行う速度検出手
段と、速度検出手段の検出信号にもとずき演算・
記憶して制御信号を作り出す補償手段と、補償手
段の制御信号に応じた電力を前記モータに供給す
る電力増幅手段(駆動手段)によつて速度制御系
を構成している。さらに、速度検出手段の検出信
号に応動した回転誤差を得る回転誤差検出手段
と、NxL個(複数個)のメモリ値群M[0]から
M[NxL−1]を格納するメモリ手段と、メモリ
手段のL間隔ずつ離れたNx個のメモリ値群を使
つて合成計算される合成値を実質的に算出する合
成値算出手段(メモリ出力値作成手段)と、合成
値算出手段の合成値と回転誤差検出手段の回転誤
差を演算合成した値に対応した更新値によつてメ
モリ手段のメモリ値を実質的に順番に更新保存す
る更新保存手段と、合成値算出手段の合成値と回
転誤差検出手段の回数誤差を演算合成して制御信
号を作り出す制御信号作成手段とを有する補償手
段を使用することによつて、高性能なモータの速
度制御装置を実現している。
In order to solve these problems, the present applicant proposed a high-performance motor speed control device that is extremely resistant to load torque fluctuations in Japanese Patent Application No. 60-229143 and No. 60-229144. did. In other words, Japanese Patent Application No. 60-229143 and Japanese Patent Application No. 60-229144 disclose a rotation sensor that generates an AC signal with a period corresponding to the rotation speed of the motor, and a rotation sensor that generates an AC signal with a period corresponding to the rotation speed of the motor. A speed detection means performs the detection, and calculations and calculations are performed based on the detection signal of the speed detection means.
A speed control system is constituted by a compensating means for storing and generating a control signal, and a power amplifying means (driving means) for supplying electric power to the motor according to the control signal of the compensating means. Furthermore, a rotation error detection means for obtaining a rotation error in response to a detection signal of the speed detection means, a memory means for storing NxL (plural) memory value groups M[0] to M[NxL−1], and a memory. A composite value calculation means (memory output value creation means) that essentially calculates a composite value that is compositely calculated using Nx memory value groups separated by L intervals of the means, and a composite value and rotation of the composite value calculation means. update storage means for substantially sequentially updating and storing memory values in the memory means with update values corresponding to values obtained by calculating and combining the rotational errors of the error detection means; and a composite value of the composite value calculation means and rotational error detection means. A high-performance motor speed control device is realized by using a compensating means having a control signal generating means that generates a control signal by calculating and synthesizing the number of errors.

発明が解決しようとする課題 しかしながら、特願昭60−229143号や特願昭60
−229144号では、多数のデジタルメモリを使用す
ることが必要不可欠であり、通常、16bits×
1000words=16kbits程度のメモリが必要とされ
る。近年の半導体製造技術の向上によつてメモリ
用のIC素子が急速に低価格化しているとはいえ、
16kbitsものメモリを使用することはコストの大
幅な上昇を招き、好ましくない。
Problems to be solved by the invention However, Japanese Patent Application No. 60-229143 and Japanese Patent Application No. 60
−229144, it is essential to use a large number of digital memories, typically 16 bits ×
A memory of about 1000 words = 16 kbits is required. Although the price of IC elements for memory is rapidly decreasing due to improvements in semiconductor manufacturing technology in recent years,
Using 16kbits of memory is undesirable, as it increases the cost significantly.

また、合成値算出手段(メモリ出力値作成手
段)や更新保存手段を含んだ補償手段の動作には
かなりの演算量があり、速度検出器の検出周期内
に所定の演算を終わるためには、高価な高速の乗
算器等を使つて高速演算する必要があつた。すな
わち、補償手段を実現するハードウエアの構成や
動作速度に関してからりの制約があつた。
In addition, the operation of the compensation means including the composite value calculation means (memory output value creation means) and the update storage means requires a considerable amount of calculation, and in order to complete the predetermined calculation within the detection period of the speed detector, it is necessary to It was necessary to perform high-speed calculations using expensive high-speed multipliers. That is, there are severe restrictions regarding the configuration and operating speed of the hardware that implements the compensation means.

本発明は、このような点を考慮して、上記の例
に示されるような多くのメモリを使用する制御装
置の補償器について検討し、制御性能を悪化させ
ることなく、必要メモリを大幅に低減し、かつ、
演算時間の制約も緩めるようにした補償器を提供
することを目的としている。
Taking these points into consideration, the present invention considers a compensator for a control device that uses a large amount of memory as shown in the example above, and significantly reduces the required memory without deteriorating control performance. And,
It is an object of the present invention to provide a compensator in which constraints on calculation time are relaxed.

課題を解決するための手段 上記目的を達成するために、本発明の補償器で
は、所定タイミング毎、もしくは略所定タイミン
グ毎にデイジタル誤差を得る誤差検出手段と、少
なくともNx・L個(ここに、Nxは1以上の整
数、Lは4以上の整数)の順序づけられたメモリ
値を格納保存するメモリ手段と、前記所定タイミ
ングのQ倍(ここに、Qは2以上の整数)の更新
タイミング毎に、前記Nx・L個のメモリ値を順
番に前記誤差検出手段のデジタル誤差とメモリ出
力値作成手段のメモリ出力を演算合成した更新値
によつて更新保存する更新保存手段と、Nxが1
の場合には少なくとも1個のメモリ値を使つて、
Nxが2以上の場合には更新間隔が前記更新タイ
ミングのL倍以上離れたNx個のメモリ値群を少
なくとも1組使つて、前記更新タイミングに同期
して前記メモリ出力値を作り出す前記メモリ出力
値作成手段と、前記所定タイミング毎に前記誤差
検出手段のデジタル誤差と前記メモリ出力値作成
手段のメモリ出力値を演算合成して制御信号を作
り出す制御信号作成手段と、プログラムに従つて
少なくとも前記メモリ出力値作成手段の動作と前
記更新保存手段の動作を実行する演算手段を具備
し、前記誤差検出手段が新しいデジタル誤差を得
る毎に前記制御信号作成手段は新しい制御信号を
作り出し、前記誤差検出手段が新しいデジタル誤
差をQ回得る毎に前記メモリ出力値作成手段と前
記更新保存手段は1個のメモリ値を更新し、か
つ、前記メモリ出力値作成手段と前記更新保存手
段による1個の前記メモリ値の更新動作を複数の
部分動作に分割し、前記各部分動作を前記誤差検
出手段の異なつたタイミングにおいて前記演算手
段により実行させるようにしている。
Means for Solving the Problems In order to achieve the above object, the compensator of the present invention includes error detection means for obtaining digital errors at every predetermined timing or approximately every predetermined timing, and at least Nx·L (herein, Nx is an integer of 1 or more; L is an integer of 4 or more; , updating storage means for updating and storing the Nx·L memory values in order by an updated value obtained by calculating and combining the digital error of the error detection means and the memory output of the memory output value creation means; and Nx is 1.
If , use at least one memory value,
When Nx is 2 or more, the memory output value generates the memory output value in synchronization with the update timing using at least one set of Nx memory value groups whose update intervals are L times or more apart from the update timing. generating means; control signal generating means for generating a control signal by calculating and combining the digital error of the error detecting means and the memory output value of the memory output value generating means at each predetermined timing; and at least the memory output according to a program. The control signal generating means generates a new control signal each time the error detecting means obtains a new digital error, and the error detecting means generates a new control signal. Every time a new digital error is obtained Q times, the memory output value creation means and the update storage means update one memory value, and the memory output value creation means and the update storage means update one memory value. The update operation is divided into a plurality of partial operations, and each partial operation is executed by the calculation means at different timings of the error detection means.

作 用 本発明では上記の構成にすることによつて、少
数(Q分の1)のメモリ数によつて高性能な補償
器を実現している。また、メモリ更新手段(メモ
リ出力値作成手段と更新保存手段)による1個の
メモリの値の更新動作を複数の部分動作に分割
し、誤差検出手段の異なつたタイミングにおいて
各部分動作を行なわせることにより、誤差検出手
段の1タイミング内に必要とされる演算量を大幅
に少なくしている。その結果、演算速度の遅い演
算手段を使用しても、本発明の補償器を実現する
ことが可能となつた。さらに、本発明の補償器を
使用したモータの速度制御装置においても、特願
昭60−229143号や特願昭60−229144号に示したよ
うに、負荷トルクの特定の周波数の変動の影響を
大幅に低減させることができる。すなわち、本発
明の補償器により高性能な制御装置を経済的に構
成することができる。
Effects In the present invention, by adopting the above configuration, a high-performance compensator is realized with a small number of memories (1/Q). Further, the update operation of one memory value by the memory update means (memory output value creation means and update storage means) is divided into a plurality of partial operations, and each partial operation is performed at different timings of the error detection means. This greatly reduces the amount of calculation required within one timing of the error detection means. As a result, it has become possible to realize the compensator of the present invention even when using a calculation means with a slow calculation speed. Furthermore, in a motor speed control device using the compensator of the present invention, as shown in Japanese Patent Application No. 60-229143 and Japanese Patent Application No. 60-229144, the influence of specific frequency fluctuations in load torque can be avoided. It can be significantly reduced. That is, by using the compensator of the present invention, a high-performance control device can be constructed economically.

実施例 以下、本発明の一実施例の補償器について、図
面を参照しながら説明する。第2図に本発明の補
償器を使用したモータの速度制御装置の例を表す
構成図を示す。第2図において、直流モータ1は
回転センサ2と負荷10を直接回転駆動する。回
転センサ2はモータ1の回転に伴つて1回転当た
りZq回(Zqは2以上の整数であり、ビデオテー
プレコーダのキヤプスタンモータでは、通常、
Zq=357)の交流信号aを発生する。回転センサ
2の交流信号aは速度検出器3に入力され、交流
信号aの周期に応じたデジタル信号bを得てい
る。
Embodiment A compensator according to an embodiment of the present invention will be described below with reference to the drawings. FIG. 2 is a block diagram showing an example of a motor speed control device using the compensator of the present invention. In FIG. 2, a DC motor 1 directly drives a rotation sensor 2 and a load 10 to rotate. The rotation sensor 2 rotates Zq times per rotation as the motor 1 rotates (Zq is an integer of 2 or more, and in a capstan motor of a video tape recorder, usually
generates an alternating current signal a of Zq=357). The alternating current signal a of the rotation sensor 2 is input to the speed detector 3, and a digital signal b corresponding to the period of the alternating current signal a is obtained.

速度検出器3の具体的な構成例を第3図に示
す。交流信号aは波形整形回路31によつて波形
整形され、整形信号gを得ている。整形信号gは
アンド回路33とフリツプフロツプ35に入力さ
れている。アンド回路33の入力側には、さら
に、発振回路32のクロツクパルスpとカウンタ
34のオーバーフロー出力信号wも入力されてい
る。発振回路32は水晶発振器と分周器等によつ
て構成され、整形信号gの周波数よりもかなり高
周波のクロツクパルスp(500kHz程度)を発生し
ている。カウンタ34は、アンド回路33の出力
パルスhの到来毎にその内容をカウントアツプす
る12ビツトのアツプカウンタになつている。ま
た、オーバフロー出力信号wはカウンタ34のカ
ウント内容が所定値以下のときには”H”であ
り、カウンタ34のカウント内容が所定値以上に
なるとwは”L”に変化する(ここに、”H”は
高電位状態を表し、”L”は低電位状態を表して
いる)。データ入力型フリツプフロツプ35は、
整形信号gの立ち下がりエツジをトリガ信号とし
てデータ入力端子に入力された”H”を取り込
み、その出力Qを”H”にする(q=”H”)。ま
た、補償器4からリセツト信号rが”H”になる
と、カウンタ34とフリツプフロツプ35の内部
状態がリセツトされる(b=”
LLLLLLLLLLLL”、w=”H”、q=”L”)。
A specific example of the configuration of the speed detector 3 is shown in FIG. The AC signal a is waveform-shaped by a waveform shaping circuit 31 to obtain a shaped signal g. The shaping signal g is input to an AND circuit 33 and a flip-flop 35. The clock pulse p of the oscillation circuit 32 and the overflow output signal w of the counter 34 are also input to the input side of the AND circuit 33. The oscillation circuit 32 is composed of a crystal oscillator, a frequency divider, etc., and generates a clock pulse p (approximately 500 kHz) which has a considerably higher frequency than the frequency of the shaped signal g. The counter 34 is a 12-bit up counter that counts up its contents every time the output pulse h of the AND circuit 33 arrives. Further, the overflow output signal w is "H" when the count content of the counter 34 is less than a predetermined value, and when the count content of the counter 34 is equal to or greater than the predetermined value, w changes to "L" (here, "H" represents a high potential state, and "L" represents a low potential state). The data input type flip-flop 35 is
The falling edge of the shaping signal g is used as a trigger signal to capture "H" input to the data input terminal, and the output Q is set to "H"(q="H"). Furthermore, when the reset signal r from the compensator 4 becomes "H", the internal states of the counter 34 and flip-flop 35 are reset (b="
LLLLLLLLLLLL”, w = “H”, q = “L”).

次に、第3図の速度検出器3の動作について説
明する。いま、カウンタ34とフリツプフロツプ
35がリセツト信号rによつてリセツトされてい
るものとする。波形整形回路31の出力信号g
が”L”から”H”に変わると、アンド回路33
の出力信号hとして発振回路32のクロツクパル
スpが出力されている。カウンタ34は出力信号
hをカウントし、その内部状態を変化させてい
く。波形整形回路31の出力信号gが”H”か
ら”L”に変わると、アンド回路33の出力信号
hは”L”になり、カウンタ34はその内部状態
を保存する。また、フリツプフロツプ35は信号
gの立ち下がりエツジによつてデータ”H”を取
り込み、その出力信号qを”L”から”H”に変
化させる。カウンタ34のデジタル信号bは、回
転センサ2の交流信号aの(半)周期長に比例し
た値であり、モータ1の回転速度に反比例してい
る。後述の補償器4は、フリツプフロツプ35の
出力信号qを見て、qが“H”になるとカウンタ
34のデジタル信号bを入力し、その後にリセツ
ト信号rを所定の短時間の間“H”にして、カウ
ンタ34とフリツプフロツプ35を初期状態にリ
セツトし、次の速度検出動作に備えている。な
お、モータ1の回転速度が遅過ぎるときには、波
形整形回路31の出力信号gの周期が長いために
カウンタ34の内部状態が所定値以上になり、オ
ーバフロー出力信号wが“H”から“L”に変わ
り、アンド回路33の出力信号hが“L”にな
り、カウンタ34が所定の大きな値を保持するこ
ともある。
Next, the operation of the speed detector 3 shown in FIG. 3 will be explained. Assume that the counter 34 and flip-flop 35 have been reset by the reset signal r. Output signal g of waveform shaping circuit 31
changes from “L” to “H”, AND circuit 33
The clock pulse p of the oscillation circuit 32 is outputted as the output signal h. The counter 34 counts the output signal h and changes its internal state. When the output signal g of the waveform shaping circuit 31 changes from "H" to "L", the output signal h of the AND circuit 33 becomes "L", and the counter 34 saves its internal state. Further, the flip-flop 35 takes in data "H" at the falling edge of the signal g, and changes its output signal q from "L" to "H". The digital signal b of the counter 34 is a value proportional to the (half) cycle length of the alternating current signal a of the rotation sensor 2, and is inversely proportional to the rotation speed of the motor 1. A compensator 4, which will be described later, looks at the output signal q of the flip-flop 35, and when q becomes "H", inputs the digital signal b of the counter 34, and then sets the reset signal r to "H" for a predetermined short period of time. Then, the counter 34 and flip-flop 35 are reset to their initial states in preparation for the next speed detection operation. Note that when the rotational speed of the motor 1 is too slow, the period of the output signal g of the waveform shaping circuit 31 is long, so the internal state of the counter 34 exceeds a predetermined value, and the overflow output signal w changes from "H" to "L". Instead, the output signal h of the AND circuit 33 becomes "L", and the counter 34 may hold a predetermined large value.

第2の補償器4は、補償器5とメモリ6とD/
A変換器7によつて構成され、速度検出器3のデ
ジタル信号bを後述する内蔵のプログラムによつ
て計算加工し、制御信号cを出力する。補償器4
の制御信号cは電力増幅器8(駆動部)に入力さ
れ、電力増幅された駆動信号d(制御信号cに比
例した電流)がモータ1に供給される。従つて、
モータ1と回転センサ2と速度検出器3と補償器
4と電力増幅器8(駆動部)によつて速度制御系
が構成され、モータ1の回転速度が所定の値に制
御される。
The second compensator 4 includes a compensator 5, a memory 6 and a D/
It is composed of an A converter 7, and calculates and processes the digital signal b of the speed detector 3 using a built-in program, which will be described later, and outputs a control signal c. Compensator 4
The control signal c is input to the power amplifier 8 (drive section), and the power amplified drive signal d (current proportional to the control signal c) is supplied to the motor 1. Therefore,
A speed control system is constituted by the motor 1, the rotation sensor 2, the speed detector 3, the compensator 4, and the power amplifier 8 (drive section), and the rotation speed of the motor 1 is controlled to a predetermined value.

本発明の補償器4のメモリ6は、所定のプラグ
ラムと定数が格納されたロム領域(ROM:リー
ドオンリーメモリ)と随時必要な値を格納するラ
ム領域(RAM:ランダムアクセスメモリ)に別
れている。演算器5はロム領域内のプログラムに
従つて所定の動作や演算を行つている。第1図に
そのプログラムの具体的な一例を示す。次に、そ
の動作について詳細に説明する。
The memory 6 of the compensator 4 of the present invention is divided into a ROM area (ROM: read-only memory) in which predetermined programs and constants are stored, and a RAM area (RAM: random access memory) in which necessary values are stored. . The arithmetic unit 5 performs predetermined operations and calculations according to a program in the ROM area. FIG. 1 shows a specific example of the program. Next, the operation will be explained in detail.

(1) <誤差検出部1A> まず、演算器5は速度検出器3のフリツプフ
ロツプ35の出力信号qを入力し、信号qが
“H”となるのを待つている。すなわち、速度
検出器3が交流信号aの(半)周期を検出し、
新しいデジタル信号bを出力するのをモニタし
ている。qが“H”になると、速度検出器3の
デジタル信号bを読み込んで、デジタル信号b
に対応する速度検出値S(デジタル値)に直す
と共に、リセツト信号rを所定時間“H”にし
て速度検出器3のカウンタ34とフリツプフロ
ツプ35をリセツトする。所定の基準値S
refから速度検出値Sを引いて、その値をR倍
(ここに、Rは所定の正の定数)し、モータ1
の現時点での回転誤差Eを計算する。[E=
R・(S ref−S)]。すなわち、所定タイミン
グ毎(速度検出器3が新しいデジタル信号bを
出力する毎)、もしくは略所定タイミング毎に
新しいデジタル誤差Eを得ている。
(1) <Error Detection Unit 1A> First, the arithmetic unit 5 inputs the output signal q of the flip-flop 35 of the speed detector 3, and waits for the signal q to become "H". That is, the speed detector 3 detects the (half) period of the AC signal a,
The output of a new digital signal b is monitored. When q becomes "H", the digital signal b of the speed detector 3 is read and the digital signal b
At the same time, the counter 34 and flip-flop 35 of the speed detector 3 are reset by setting the reset signal r to "H" for a predetermined period of time. Predetermined reference value S
Subtract the speed detection value S from ref, multiply that value by R (here, R is a predetermined positive constant), and
Calculate the current rotation error E of . [E=
R.(Sref-S)]. That is, a new digital error E is obtained at every predetermined timing (every time the speed detector 3 outputs a new digital signal b) or approximately every predetermined timing.

(2) <制御信号作成部1B> 後述するメモリ出力値作成部1Eによるメモ
リ出力値Voと誤差検出部1Aの現時点の回転
誤差Eを所定の比率D:1(ここに、Dは0<
D≦1なる定数で、好ましくは、D=1)にて
演算合成し、制御信号値Yを計算する(Y=E
+D・Vo)。制御信号値YをD/A変換器7に
出力し、Yの値に対応した直流的な電圧(制御
信号)に変換する。
(2) <Control signal generation section 1B> The memory output value Vo from the memory output value generation section 1E, which will be described later, and the current rotational error E of the error detection section 1A are divided into a predetermined ratio D:1 (here, D is 0<
The control signal value Y is calculated by performing calculation and synthesis using a constant D≦1, preferably D=1 (Y=E
+D・Vo). The control signal value Y is output to the D/A converter 7 and converted into a DC voltage (control signal) corresponding to the value of Y.

(3) <第1のカウント部IC> Q(ここに、Qは2以上の整数)をmod(法)
として、新しい速度検出値Sを得る毎に第1の
カウント変数I1をカウントアツプしていく。す
なわち、I1=I1+1(I1+1を新しくI1にする)
にした後に、I1=QならばI1を0にリセツトす
る。このような演算をするならば、I1は0から
Q−1の間の整数になる。なお、I1の初期値は
0とする。I1が0ならば(4)、(5)の動作を実行
し、I1が1ならば(6)の動作を実行し、I1が0や
1でないならば(1)の動作に復帰する。
(3) <First counting part IC> Q (here, Q is an integer of 2 or more) modulo
, the first count variable I1 is counted up each time a new speed detection value S is obtained. In other words, I1=I1+1 (I1+1 becomes new I1)
After setting I1 to 0, if I1=Q, reset I1 to 0. If such an operation is performed, I1 will be an integer between 0 and Q-1. Note that the initial value of I1 is 0. If I1 is 0, operations (4) and (5) are executed, if I1 is 1, operation (6) is executed, and if I1 is not 0 or 1, the operation returns to (1).

(4) <第2のカウント部ID> Nx・L(ここに、Nxは整数、Lは4以上の
整数。特に、Nx2以上の整数、Lが(Zq/Q)
の2以上の整数倍の整数であることが好ましい
ので、以後このような場合について説明する。)
をmod(法)として、第1のカウント変数I1が
0になる毎に(新しい速度検出値SをQ個得る
毎に)第2のカウント変数I2をカウントアツプ
していく。すなわち、I2=I2+1にした後に、
I2NxLならばI2を0にリセツトする。このよう
な演算をするならば、I2は0からNxL−1の
間の整数になる。なお、I2の初期値はNxL−
1とする。
(4) <Second count part ID> Nx・L (here, Nx is an integer, L is an integer of 4 or more. In particular, an integer of Nx2 or more, L is (Zq/Q)
Since it is preferable that the value be an integer multiple of 2 or more, such a case will be described below. )
With mod (mod), the second count variable I2 is counted up every time the first count variable I1 becomes 0 (every time Q new speed detection values S are obtained). In other words, after setting I2=I2+1,
If I2NxL, reset I2 to 0. If such an operation is performed, I2 will be an integer between 0 and NxL-1. Note that the initial value of I2 is NxL−
Set to 1.

(5) <メモリ出力値作成部1E> 整数JをI2に等しく(J=I2)、メモリ6の
ラム領域内のL間隔ずつ離れたNx個のメモリ
値群M[J−nL(mod NxL)](n=1、…、
Nx)を使つて、次式によりメモリ出力値Voを
作り出す。
(5) <Memory output value creation unit 1E> Set the integer J equal to I2 (J=I2), and create a group of Nx memory values M[J-nL (mod NxL) in the RAM area of the memory 6, spaced apart by L intervals. ] (n=1,...,
Nx) to create the memory output value Vo using the following formula.

Vo=Nxn-1 Wn・M[J−nL(mod NxL)] ……(1) ここに、比率Wの値は、 0<Wn<2/Nx(n=1、…、Nx) ……(2) であり、さらに、 Nxn-1 Wn=1 ……(3) と規格化している。具体的には、Nx≧2の場
合に Wn=1/Nx(n=1、…、Nx) ……(4) にすると、(1)式はメモリ値郡MP[J−nL(mod
NxL)](n=1、…、Nx)を単純に加算合成
した後にNx(整数)で割ることになり、演算が
非常に簡単になる。その後に、(1)の動作に復帰
する。
Vo= Nxn-1 Wn・M [J-nL (mod NxL)] ...(1) Here, the value of the ratio W is 0<Wn<2/Nx (n=1,...,Nx) ... ...(2), and is further standardized as Nxn-1 Wn=1 ...(3). Specifically, when Nx≧2, Wn=1/Nx (n=1,...,Nx)...(4), then equation (1) becomes the memory value group MP[J-nL(mod
NxL)] (n=1, . . . , Nx) are simply added and combined and then divided by Nx (an integer), making the calculation extremely simple. After that, the operation returns to (1).

(6) <更新保存部IF> メモリ出力値作成部1Eによるメモリ出力値
Voと誤差検出部1Aの回転誤差Eを1:1の
比率にて演算合成して更新値を計算し、第2の
カウント変動I2に対応したラム領域内のメモリ
値M[I2]を更新し(M[I2]=E+Vo)、次の
更新時まで格納保存する。その後に、(1)の動作
に復帰する。
(6) <Update storage unit IF> Memory output value by memory output value creation unit 1E
An updated value is calculated by calculating Vo and the rotational error E of the error detection unit 1A at a ratio of 1:1, and the memory value M[I2] in the ram area corresponding to the second count fluctuation I2 is updated. (M[I2]=E+Vo), stored and saved until the next update. After that, the operation returns to (1).

本実施例の補償器を使用したモータの速度制御
装置では、第2図の負荷10の生じる負荷トルク
変動の特定の周波数成分に対して極めて強くなる
ことは、先願の特許と同様である。さらに、本実
施例の補償器に示すように、誤差検出部1Aが新
しい誤差信号を得る毎に制御信号作成部1Bは新
しい制御信号を作り出すようにし、かつ、誤差検
出部1Aが新しい誤差信号をQ個得る毎に更新保
存部1Fが1個のメモリ値を更新するようになす
ならば、実質的にメモリ部に必要とされるメモリ
数がQ分の1に削減される。このようにメモリ数
を削減しても、制御装置において、前述の負荷ト
ルク変動の特定の周波数成分に対して極めて強く
なる効果(回転速度変動が生じない効果)は保持
されている。これは次のように説明できる。Lの
値を大きくすると、メモリ6やメモリ出力値作成
部1Eや更新保存部1Fの動作によつて改善され
る周波数成分が誤差検出部1Aの検出周波数に較
べてかなり低くできることがわかつた。従つて、
更新保存部1Fにおいて利用する誤差検出部1A
の誤差信号の頻度をQ分の1に小さくしても、上
述の改善効果に悪影響を生じないようにできるの
である。
In the motor speed control device using the compensator of the present embodiment, as in the prior patent, the variation is extremely strong against a specific frequency component of the load torque fluctuation caused by the load 10 shown in FIG. Furthermore, as shown in the compensator of this embodiment, the control signal generation section 1B generates a new control signal every time the error detection section 1A obtains a new error signal, and the error detection section 1A generates a new error signal. If the update storage unit 1F updates one memory value every time Q values are acquired, the number of memories required for the memory unit is substantially reduced to 1/Q. Even if the number of memories is reduced in this way, in the control device, the above-mentioned effect of being extremely strong against a specific frequency component of load torque fluctuation (effect of not causing rotational speed fluctuation) is maintained. This can be explained as follows. It has been found that by increasing the value of L, the frequency components improved by the operations of the memory 6, the memory output value creation section 1E, and the update storage section 1F can be made considerably lower than the detection frequency of the error detection section 1A. Therefore,
Error detection unit 1A used in update storage unit 1F
Even if the frequency of the error signal is reduced to 1/Q, it is possible to prevent the above-mentioned improvement effect from being adversely affected.

また、メモリ出力値作成部1Eと更新保存部1
Fによつてメモリ更新部が構成され、1個のメモ
リ値の更新動作(メモリ出力値作成部1Eと更新
保存部1Fによるメモリ更新動作)を号差検出部
1Aのデジタル誤差の検出動作に関してタイミン
グをずらせているので、誤差検出部1Aの1検出
周期内に必要とされる演算量が少なくなつてい
る。さらに、メモリ出力値作成部1Eの動作をI1
=0の時に行つているので、制御信号作成部1B
において利用するメモリ出力値Voは遅れなしに
変更される。
In addition, a memory output value creation unit 1E and an update storage unit 1
A memory update unit is configured by F, and the update operation of one memory value (memory update operation by the memory output value creation unit 1E and update storage unit 1F) is performed at the timing with respect to the digital error detection operation of the signal difference detection unit 1A. Since the values are shifted, the amount of calculation required within one detection period of the error detection section 1A is reduced. Furthermore, the operation of the memory output value creation section 1E is controlled by I1.
Since it is performed when = 0, the control signal generation unit 1B
The memory output value Vo used in is changed without delay.

また、本発明の補償器を使用したモータの速度
制御装置においては、L=(Zq/Q)・k(ここ
に、kは2以上の整数)とするならば、モータ1
の1回転周期のk倍の周期の負荷トルク変動によ
る回転速度変動を大幅に仰制する効果がある。こ
のような効果は、ビデオテープレコーダのキヤプ
スタンモータの場合、非常に好ましいものであ
る。これについて説明する。キヤプスタンモータ
の負荷は磁気テープやピンチローラであるので、
負荷10の発生する負荷変動はモータ1の回転に
周期している成分(モータ1の1回転を基本周期
とした周期的な負荷変動)以外に、モータ1の回
転周波数よりも低い周波数の負荷変動成分が生じ
ることが多い。このような負荷変動はキヤプスタ
ンモータの回転速度変動の原因であり、テープ速
度のワウ・フラツタを生じさせる。ところで、こ
のような負荷変動はモータ1の1回転の周期の整
数倍の周期を持つ周期的な変動が多いことがわか
つた。従つて、上述の効果によつて、負荷トルク
変動によるモータ1の回転速度のかなり低周波の
変動分を効果的に低減できる。なお、QはZqの
約数に限らないことを指摘しておく(たとえば、
Q=kとすれば、QはZqに無関係になる)。
In addition, in the motor speed control device using the compensator of the present invention, if L=(Zq/Q)・k (here, k is an integer of 2 or more), the motor 1
This has the effect of significantly suppressing rotational speed fluctuations due to load torque fluctuations with a period k times one rotation period. Such an effect is highly desirable in the case of video tape recorder capstan motors. This will be explained. The load on the capstan motor is magnetic tape or pinch rollers, so
The load fluctuations generated by the load 10 include not only components that are periodic to the rotation of the motor 1 (periodic load fluctuations with one revolution of the motor 1 as the basic cycle), but also load fluctuations at a frequency lower than the rotational frequency of the motor 1. components often occur. Such load fluctuations cause fluctuations in the rotational speed of the capstan motor, causing wow and flutter in the tape speed. By the way, it has been found that such load fluctuations are often periodic fluctuations having a period that is an integral multiple of the period of one revolution of the motor 1. Therefore, due to the above-mentioned effects, it is possible to effectively reduce considerably low-frequency fluctuations in the rotational speed of the motor 1 due to load torque fluctuations. It should be noted that Q is not limited to a divisor of Zq (for example,
If Q=k, Q becomes irrelevant to Zq).

第4図に制御系全体の安定性を考慮にいれた本
発明の補償器4のプログラム例を示す。ここで
は、更新保存部における更新値の計算の仕方と、
メモリ出力値作成部におけるメモリ出力値の準備
の個数と、制御信号作成部におけるメモリ出力値
作成部のメモリ出力値の利用の仕方を改良してい
る。次に、その動作について詳細に説明する(モ
ータの速度制御装置の全体の構成は第2図と同じ
であり、説明を省略する)。
FIG. 4 shows an example of a program for the compensator 4 of the present invention, which takes into consideration the stability of the entire control system. Here, we will explain how to calculate the update value in the update storage section,
The number of memory output values prepared in the memory output value generation section and the way the memory output value generation section uses the memory output values in the control signal generation section are improved. Next, its operation will be explained in detail (the overall configuration of the motor speed control device is the same as that shown in FIG. 2, and the explanation will be omitted).

(11) <誤差検出部4A> まず、演算器5は速度検出器3のフリツプフ
ロツプ35の出力信号qを入力し、信号qが
“H”となるのを待つている。すなわち、速度
検出器3が交流信号aの(半)周期を検出し、
新しいデジタル信号bを出力するのをモニタし
ている。qが“H”になると、速度検出器3の
デジタル信号bを読み込んで、デジタル信号b
に対応する速度検出値S(デジタル値)に直す
と共に、リセツト信号rを所定時間“H”にし
て速度検出器3のカウンタ34とフリツプフロ
ツプ35をリセツトする。所定の基準値S
refから速度検出値Sを引いて、その値をR倍
(ここに、Rは所定の正の定数)し、モータ1
の現時点での回転誤差Eを計算する[E=R・
(S ref−S)]。すなわち、所定タイミング
毎、(速度検出器3が新しいデジタル信号bを
出力する毎)、もしくは略所定タイミング毎に
新しいデジタル誤差Eを得ている。
(11) <Error Detection Unit 4A> First, the arithmetic unit 5 inputs the output signal q of the flip-flop 35 of the speed detector 3, and waits for the signal q to become "H". That is, the speed detector 3 detects the (half) period of the AC signal a,
The output of a new digital signal b is monitored. When q becomes "H", the digital signal b of the speed detector 3 is read and the digital signal b
At the same time, the counter 34 and flip-flop 35 of the speed detector 3 are reset by setting the reset signal r to "H" for a predetermined period of time. Predetermined reference value S
Subtract the speed detection value S from ref, multiply that value by R (here, R is a predetermined positive constant), and
Calculate the current rotation error E of [E=R・
(Sref-S)]. That is, a new digital error E is obtained at every predetermined timing (every time the speed detector 3 outputs a new digital signal b) or approximately every predetermined timing.

(12) <制御信号作成部4B> 後述するメモリ出力値作成部4Eによるメモ
リ出力値Voと誤差検出部4Aの現時点の回転
誤差Eを所定の比率D:1にて演算合成し、制
御信号値Yを計算する(Y=E+D・V0)。制
御信号値YをD/A変換器7に出力し、Yの値
に対応した直流的な電圧(制御信号)に変換す
る。
(12) <Control signal generation unit 4B> A control signal value is generated by calculating and combining the memory output value Vo by the memory output value generation unit 4E, which will be described later, and the current rotation error E of the error detection unit 4A at a predetermined ratio D:1. Calculate Y (Y=E+D・V0). The control signal value Y is output to the D/A converter 7 and converted into a DC voltage (control signal) corresponding to the value of Y.

(13) <第1のカウント部4C> Qをmod(法)として、新しい速度検出値S
を得る毎に第1のカウント変数I1をカウントア
ツプしていく。I1がQa(ここに、QaはQより
も小さい整数)に等しくなるメモリ出力値Vo
を後述のV[Px]に変更し、I1がQaに等しくな
い場合にはこのような変更動作を行わない。こ
れにより、I1<Qaの範囲ではVo=V[Px−1]
(後述)になり、I1≧Qaの範囲ではV0=V
[Px]になつている。さらに、I1が0ならば
(14)、(15)の動作を実行し、I1が0や1ならば(16)の
動作を実行し、I1が0や1でないならば(11)の動
作に復帰する。
(13) <First counting unit 4C> With Q as mod, new speed detection value S
The first count variable I1 is counted up each time . Memory output value Vo where I1 is equal to Qa (where Qa is an integer smaller than Q)
is changed to V[Px], which will be described later, and such a changing operation is not performed if I1 is not equal to Qa. As a result, in the range of I1<Qa, Vo=V[Px−1]
(described later), and in the range of I1≧Qa, V0=V
It has become [Px]. Furthermore, if I1 is 0,
The operations (14) and (15) are executed, and if I1 is 0 or 1, the operation (16) is executed, and if I1 is not 0 or 1, the operation returns to (11).

(14) <第2のカウント部4D> Nx・Lをmod(法)として、第1のカウント
変数I1が0になる毎に(新しい速度検出値Sを
Q個得る毎に)第2カウント変数I2をカウント
アツプしていく。
(14) <Second counting unit 4D> With Nx·L as mod, the second count variable is set every time the first count variable I1 becomes 0 (every time Q new speed detection values S are obtained). Count up I2.

(15) <メモリ出力値作成部4E> レジスタ変数V[m+1]の内容をV[m]に
順番に転送した後に(m=0、1、…、Px−
1)、NxLをmodとして第2カウント変数I2に
Px(ここに、Pxは1以上で3以下の整数であ
り、Px=1が好ましい)を足した整数Jを計
算する[J=I2+Px(mod NxL)]。ラム領域
内のメモリ値群M[J−nL(mod NxL)](n=
1、…、Nx)を使つて次の式によつて計算さ
れる最新のメモリ出力値をV[Px]に入れる。
(15) <Memory output value creation unit 4E> After sequentially transferring the contents of register variable V[m+1] to V[m] (m=0, 1,..., Px-
1), use NxL as mod to the second count variable I2
Px (here, Px is an integer greater than or equal to 1 and less than or equal to 3, preferably Px = 1) is added to calculate the integer J [J = I2 + Px (mod NxL)]. Memory value group M [J-nL (mod NxL)] (n=
1,...,Nx) and put the latest memory output value calculated by the following formula into V[Px].

V[Px]=Nxn-1 Wn・・M[J−nL(mod NxL)]
……(1) ここに、Wnの値は(2)式、(3)式および(4)式を
満たしている。すなわち、V[Px]からV[0]
に連続するPx+1個のメモリ出力値群を得る。
このとき、V[Px]を計算する時の(5)式中の整
数JをJ1とし、V[0]を計算する時の(5)式中
の整数JをJ2とすると、J1=J2+Pxの関係が
ある。次に、制御信号作成部4Bにおいて最初
に利用されるメモリ出力値VoをV[Px−1]
にする(Vo=V[Px−1])。その後に、(11)の
動作に復帰する。
V[Px] = Nxn-1 Wn...M[J-nL (mod NxL)]
...(1) Here, the value of Wn satisfies equations (2), (3), and (4). That is, from V[Px] to V[0]
Obtain a group of Px+1 consecutive memory output values.
At this time, if the integer J in formula (5) when calculating V[Px] is J1, and the integer J in formula (5) when calculating V[0] is J2, then J1=J2+Px. There is a relationship. Next, the memory output value Vo used first in the control signal generation unit 4B is set to V[Px-1]
(Vo=V[Px-1]). After that, the operation returns to (11).

(16) <更新保存部4F> レジスタ変数X[m+1]の内容をX[m]に
順番に転送した後に(m=0、1、2、…、
2Kd−1)、X[2Kd](ここに、Kdは整数であ
りKd=3が好ましい)にメモリ出力値作成部
4Eによつて作成された古いメモリ出力値V
[0]と誤差検出部4Aの回転誤差Eを1:1
の比率にて演算合成した合成値を入れる(X
[2Kd]=E+V[0])。すなわち、X[2Kd]か
らX[0]に連続する2Kd+1個の加算値(メ
モリ出力値と回転誤差の加算値)を得る。
NxLをmodとして第2のカウント変数I2から
Kdを引いた整数Kを計算する。[K=I2−Kd
(mod NxL)]。次に、X[m]に所定の比率
Cm(m=0、1、…、2Kd)を掛けた値を加算
合成した新しい更新値を得て、メモリ6のラム
領域内のメモリM[K]としての次の更新時ま
で格納保存する、すなわち、 M[K]=2Kdm-0 Cm・X[m] ……(6) とする。ここに、比率のCmには次の関係があ
る。
(16) <Update storage unit 4F> After sequentially transferring the contents of register variable X[m+1] to X[m] (m=0, 1, 2,...,
2Kd−1), X[2Kd] (here, Kd is an integer, and preferably Kd=3) is the old memory output value V created by the memory output value creation unit 4E.
[0] and the rotation error E of the error detection unit 4A at 1:1.
Input the composite value calculated and synthesized at the ratio of (X
[2Kd]=E+V[0]). That is, 2Kd+1 consecutive addition values (addition values of the memory output value and rotation error) from X[2Kd] to X[0] are obtained.
From the second count variable I2 with NxL as mod
Calculate the integer K by subtracting Kd. [K=I2−Kd
(mod NxL)]. Next, set a predetermined ratio to X[m]
Obtain a new updated value by adding and combining the values multiplied by Cm (m=0, 1,..., 2Kd), and store it as memory M[K] in the RAM area of memory 6 until the next update. That is, M[K] = 2Kdm-0 Cm・X[m] ...(6). Here, the ratio Cm has the following relationship.

Cm=C2Kd-n(m=0、1…、Kd)
……(7) Nxm-1 Cm=1 その後に、(11)の動作に復帰する。
Cm=C 2Kd-n (m=0, 1..., Kd)
...(7) Nxm-1 Cm=1 After that, the operation returns to (11).

本実施例の補償器のように、更新保存部4Fに
加重平均を取る演算を挿入したり、制御信号作成
部4Fにおいて使用するメモリ出力値作成部4E
の第一メモリ出力値Vo(V[Px]あと更新保存部
4Fにおいて使用するメモリ出力値作成部4Eの
第二のメモリ出力値V[0]の間に所定のズレ
(V[Px]がV[0]よりも進んでいる)を設ける
ならば、制御系全体の動作も安定になることを確
認した。特に、その利用タイミングに関係する
PxやQaの値はQの値に深く関係し、(QPx−Qa)
≧Q/2にしたほうが良いことも解かつた。これ
は、メモリ出力値作成部4Eの同一のメモリ出力
値(たとえば、V[0]の値)の更新保存部4F
における利用タイミングに較べて制御信号作成部
4Bにおける利用タイミングを、誤差検出部4A
の検出回数に換算したときに、Q/2回以上早く
することを意味する。
Like the compensator of this embodiment, a calculation for taking a weighted average may be inserted into the update storage section 4F, or a memory output value creation section 4E used in the control signal creation section 4F.
There is a predetermined deviation (V[Px] is V It was confirmed that if a control system (more advanced than [0]) is provided, the operation of the entire control system becomes stable.In particular, the
The values of Px and Qa are deeply related to the value of Q, and (QPx − Qa)
I also found out that it is better to set ≧Q/2. This is done in the update storage unit 4F of the same memory output value (for example, the value of V[0]) of the memory output value creation unit 4E.
The timing of use in the control signal generation unit 4B is compared to the timing of use in the error detection unit 4A.
When converted to the number of detections, this means Q/2 or more times faster.

また、本実施例の補償器に示すように、メモリ
出力値作成部4Eの動作や更新保存部4Fの動作
の中に転送や乗算を多数含んでいる場合には、メ
モリ出力値作成部4Eと更新保存部4Fからなる
メモリ更新部による1個のメモリ値の更新動作を
複数の部分動作に分割し、角部分動作を誤差検出
部4Aの異なつた検出タイミングにおいて演算・
処理するならば、誤差検出部4Aの1検出周期内
に必要とされる演算器5の演算量が大幅に少なく
なり、演算器5に必要な演算速度の制約は大幅に
緩和される。
Furthermore, as shown in the compensator of this embodiment, if the operation of the memory output value creation section 4E or the operation of the update storage section 4F includes many transfers and multiplications, the memory output value creation section 4E The update operation of one memory value by the memory update section consisting of the update storage section 4F is divided into a plurality of partial operations, and the corner section operations are calculated and executed at different detection timings of the error detection section 4A.
If it is processed, the amount of computation required by the arithmetic unit 5 within one detection period of the error detection unit 4A will be significantly reduced, and the restriction on the computation speed required by the arithmetic unit 5 will be significantly relaxed.

第5図に制御系全体の安定性を考慮にいれた本
発明の補償器4の他のプログラム例を示す。ここ
では、メモリ出力値作成部におけるメモリ出力値
の計算の仕方および準備の個数と、制御信号作成
部におけるメモリ出力値作成部のメモリ出力値の
利用の仕方を改良している。次に、その動作につ
いて詳細に説明する(モータの速度制御装置の全
体の構成は第2図と同じであり、説明を省略す
る)。
FIG. 5 shows another example of a program for the compensator 4 of the present invention, which takes into consideration the stability of the entire control system. Here, improvements have been made in the method of calculating memory output values in the memory output value generation section and the number of memory output values to be prepared, as well as the way in which the memory output values of the memory output value generation section are used in the control signal generation section. Next, its operation will be explained in detail (the overall configuration of the motor speed control device is the same as that shown in FIG. 2, and the explanation will be omitted).

(21) <誤差検出部5A> まず、演算器5は速度検出器3のフリツプフ
ロツプ35の出力信号qを入力し、信号qが
“H”となるのを待つている。すなわち、速度
検出器3が交流信号aの(半)周期を検出し、
新しいデジタル信号bを出力するのをモニタし
ている。qが“H”になると、速度検出器3の
デジタル信号bを読み込んで、デジタル信号b
に対応する速度検出値S(デジタル値)に直す
と共に、リセツト信号rを所定時間“H”にし
て速度検出器3のカウンタ34とフリツプフロ
ツプ35をリセツトする。所定の基準値S
refから速度検出値Sを引いて、その値をR倍
(ここに、Rは所定の正の定数)し、モータ1
の現時点で回転誤差Eを計算する。[E=R・
(S ref−S)]。すなわち、所定タイミング毎
(速度検出器3が新しいデジタル信号bを出力
する毎)、もしくは略所定タイミング毎に新し
いデジタル誤差Eを得ている。
(21) <Error Detection Unit 5A> First, the arithmetic unit 5 inputs the output signal q of the flip-flop 35 of the speed detector 3, and waits for the signal q to become "H". That is, the speed detector 3 detects the (half) cycle of the AC signal a,
The output of a new digital signal b is monitored. When q becomes "H", the digital signal b of the speed detector 3 is read and the digital signal b
The counter 34 and flip-flop 35 of the speed detector 3 are reset by setting the reset signal r to "H" for a predetermined period of time. Predetermined reference value S
Subtract the speed detection value S from ref, multiply that value by R (here, R is a predetermined positive constant), and
Calculate the rotation error E at the current point in time. [E=R・
(Sref-S)]. That is, a new digital error E is obtained at every predetermined timing (every time the speed detector 3 outputs a new digital signal b) or approximately every predetermined timing.

(22) <制御信号作成部5B> 後述するメモリ出力値作成部5Eによるメモ
リ出力値Voと誤差検出部5Aの現時点の回転
誤差Eを所定の比率D:1にて演算合成し、制
御信号値Yを計算する(Y=E+D・Vo)。制
御信号値YをD/A変換器7に出力し、Yの値
に対応した直流的な電圧(制御信号)に変換す
る。
(22) <Control signal generation unit 5B> A control signal value is generated by calculating and combining the memory output value Vo from the memory output value generation unit 5E (described later) and the current rotation error E of the error detection unit 5A at a predetermined ratio D:1. Calculate Y (Y=E+D・Vo). The control signal value Y is output to the D/A converter 7 and converted into a DC voltage (control signal) corresponding to the value of Y.

(23) <第1のカウント部5C> Qをmod(法)として、新しい速度検出値S
を得る毎に第1のカウント変数I1をカウントア
ツプしていく。I1がQa(ここに、QaはQより
も小さい整数)に等しくなるメモリ出力値Vo
を後述のV[Px]に変更し、I1がQaに等しくな
い場合にはこのような変更動作を行わない。こ
れにより、I1<Qaの範囲ではVo=V[Px−1]
(後述)になり、I1≧Qaの範囲ではV0=V
[Px]になつている。さらに、I1が0ならば
(24)、(25)の動作を実行し、I1が1ならば
(26)の動作を実行し、I1が0や1でないなら
ば(21)の動作に復帰する。
(23) <First counting unit 5C> With Q as mod, new speed detection value S
The first count variable I1 is counted up each time . Memory output value Vo where I1 is equal to Qa (where Qa is an integer smaller than Q)
is changed to V[Px], which will be described later, and such a changing operation is not performed if I1 is not equal to Qa. As a result, in the range of I1<Qa, Vo=V[Px−1]
(described later), and in the range of I1≧Qa, V0=V
It has become [Px]. Furthermore, if I1 is 0, execute operations (24) and (25), if I1 is 1, execute operation (26), and if I1 is not 0 or 1, return to operation (21). .

(24) <第2のカウント部5D> Nx・Lをmod(法)として、第1のカウント
変数I1が0になる毎に(新しい速度検出値Sを
Q個得る毎に)第2のカウント変数I2をカウン
トアツプしていく。
(24) <Second counting unit 5D> With Nx·L as mod, the second count is performed every time the first count variable I1 becomes 0 (every time Q new speed detection values S are obtained). The variable I2 is counted up.

(25) <メモリ出力値作成部5E> レジスタ変数X[m+1]の内容をX[m]に
順番に転送した後に(m=0、1、2、…、
2kd−1)、NxLをmodとして第2のカウント
変数12にPx+Kd(Pxは1以上で3以下の整
数であり、Kdは1以上の整数)を足した整数
Jを計算する[J=12+Px+Qx(modNxL)]。
ラム領域内のNx個のメモリ値群M[J−nL
(mod NxL)](n=1、…、Nx)を使つて次
式によつて算出した算出値をX[2Kd]に入れ
る。
(25) <Memory output value creation unit 5E> After sequentially transferring the contents of register variable X[m+1] to X[m] (m=0, 1, 2, ...,
2kd−1), and NxL as mod, calculate the integer J by adding Px+Kd (Px is an integer greater than or equal to 1 and less than or equal to 3, and Kd is an integer greater than or equal to 1) to the second count variable 12 [J=12+Px+Qx( modNxL)].
A group of Nx memory values in the RAM area M[J−nL
(mod NxL)] (n=1,...,Nx) and enter the calculated value calculated by the following formula into X[2Kd].

X[2Kd]=NXn-1 Wn・M[J−nL(modNxL)
……(9) ここに、Wnの値は(2)式、(3)式および(4)式を
満している。すなわち、X[2Kd]からX[0]
に連続する2Kd+1個の算出値(L間隔ずつ離
れたNx個のメモリ値から求めた算出値)を得
ている。次に、レジスタ変数V[m+1]の内
容をV[m]に順番に転送した後に(m=0、
1、…、Px−1)、X[m](m=0、1、…、
2Kd)に所定の正の比率Cm(m=0、1、…、
2Kd)を掛けた値を加算合成した最新のメモリ
出力値を得て、V[Px]に入れる。
X[2Kd] = NXn-1 Wn・M[J-nL (modNxL)
...(9) Here, the value of Wn satisfies equations (2), (3), and (4). That is, from X[2Kd] to X[0]
2Kd+1 consecutive calculated values (calculated values obtained from Nx memory values separated by L intervals) are obtained. Next, after sequentially transferring the contents of register variable V[m+1] to V[m] (m=0,
1,...,Px-1), X[m](m=0,1,...,
2Kd) to a predetermined positive ratio Cm (m=0, 1,...,
2Kd) to obtain the latest memory output value and put it in V[Px].

V[Px]=2Kdn-0Cm・X[m] ……(10) ここに、比率Cmには(7)式、(8)式の関係があ
る。すなわち、V[Px]からV[0]に連続す
るPx+1個のメモリ出力値を得ている。この
とき、実質的にV[Px]を計算する時の(9)式中
の整数JをJ1とし、実質的にV[0]を計算す
る時の(9)式中の整数JをJ2とすると、J1=J2+
Pxの関係がある。すなわち、V[Px]とV
[0]の間には整数Pxに対応したズレがある。
次に、メモリ出力値VoをV[Px−1]にする
(Vo=V[Px−1])。その後に、(21)の動作
に復帰する。
V[Px] = 2Kdn-0 Cm・X[m] ...(10) Here, the ratio Cm has the relationship of equations (7) and (8). That is, Px+1 memory output values consecutive from V[Px] to V[0] are obtained. At this time, the integer J in equation (9) when actually calculating V[Px] is set to J1, and the integer J in equation (9) when substantially calculating V[0] is set to J2. Then, J1=J2+
There is a Px relationship. That is, V[Px] and V
There is a gap between [0] corresponding to the integer Px.
Next, the memory output value Vo is set to V[Px-1] (Vo=V[Px-1]). After that, the operation returns to (21).

(26) <更新保存部5F> メモリ出力値作成部5Eによつて作成された
古いメモリ出力値V[0]と誤差検出部5Aの
回転誤差Eを1:1の比率にて演算合成して更
新値を計算し、第2のカウント変数12に対応
したメモリ6のラム領域内のメモリ値M[12]
を更新し(M[12]=E+V[0])、次の更新時
まで格納保存する。その後に、(21)の動作に
復帰する。
(26) <Update storage unit 5F> The old memory output value V[0] created by the memory output value creation unit 5E and the rotation error E of the error detection unit 5A are calculated and combined at a ratio of 1:1. Calculate the update value and calculate the memory value M[12] in the RAM area of the memory 6 corresponding to the second count variable 12
is updated (M[12]=E+V[0]) and stored until the next update. After that, the operation returns to (21).

本実施例の補償器のように、メモリ出力値作成
部5Eに加重平均を取る演算および複数個のメモ
リ出力値を準備する演算を挿入し、制御信号作成
部5Bにおいて使用するメモリ出力値作成部5E
の第一のメモリ出力値Vo(V[Px])と更新保存
部5Fにおいて使用するメモリ出力値作成部5E
の第二のメモリ出力値V[0]の間に所定のズレ
(V[Px]がV[0]よりも進んでいる)を設けて
おくと、制御系全体の動作も安定になる。この場
合も、(QPx−Qa)≧Q/2にしたほうが良い。
As in the compensator of the present embodiment, a memory output value creating section for use in the control signal creating section 5B includes an operation for taking a weighted average and an operation for preparing a plurality of memory output values in the memory output value creating section 5E. 5E
The first memory output value Vo (V [Px]) and the memory output value creation unit 5E used in the update storage unit 5F.
By providing a predetermined deviation (V[Px] is ahead of V[0]) between the second memory output values V[0], the operation of the entire control system becomes stable. In this case as well, it is better to set (QPx−Qa)≧Q/2.

なお、比率WnやCmによる演算は上記の形に
限られるものではなく、上記のプログラムの内容
を実質的に実現するものであればよく、各種の等
価的な式変形が可能であることは言うまでもな
い。また、新しいデジタル回転誤差が得られた時
に、最初に制御信号作成部による新しい制御信号
の出力動作を行い、その後に、メモリ出力値作成
部によつて次のサンプリング時点で使用するメモ
リ出力値を計算するようになすならば、メモリ出
力値作成部の演算時間を長くとれると共に、制御
信号の出力までの時間遅れを短くできるので、制
御系の安定性を確保し易い。その他、本発明の主
旨を変えずして種々の変更が可能である。
It should be noted that calculations using the ratios Wn and Cm are not limited to the above formats, as long as they substantially realize the contents of the above program, and it goes without saying that various equivalent formula transformations are possible. stomach. Also, when a new digital rotation error is obtained, the control signal generation section first outputs a new control signal, and then the memory output value generation section generates the memory output value to be used at the next sampling point. If the calculation is performed, the calculation time of the memory output value creation section can be lengthened, and the time delay until the control signal is output can be shortened, making it easier to ensure the stability of the control system. In addition, various modifications can be made without changing the gist of the present invention.

発明の効果 本発明の補償器は、少数のメモリを使用しなが
らも、特定の周波数に於て極めて良好な制御特性
が得られるようにしたものである。また、補償器
に要求される演算速度も遅くてよいように改良し
ている。従つて、本発明の補償器をフイードバツ
クループ内に使用して制御装置を構成するなら
ば、極めて高性能な制御特性を有する制御装置を
安価に得ることができる。たとえば、ビデオテー
プレコーダのキヤプスタンモータ用のモータの速
度制御装置に使用するならば、高性能なモータの
速度制御装置を経済的に構成できる。
Effects of the Invention The compensator of the present invention is capable of obtaining extremely good control characteristics at a specific frequency while using a small amount of memory. Furthermore, improvements have been made so that the computation speed required for the compensator can be reduced. Therefore, if a control device is constructed using the compensator of the present invention in a feedback loop, a control device having extremely high performance control characteristics can be obtained at low cost. For example, if used in a motor speed control device for a capstan motor of a video tape recorder, a high performance motor speed control device can be constructed economically.

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

第1図は本発明の補償器の内臓プログラムの一
例を表すフローチヤート図、第2図は本発明の補
償器を使用したモータの速度制御装置の一例の構
成を表す構成図、第3図は第2図の速度検出器の
具体的な構成例を表す構成図、第4図は本発明の
補償器の内臓プログラムの他の例を表すフローチ
ヤート図、第5図は本発明の補償器の内臓プログ
ラムの他の例を表すフローチヤート図である。 1……モータ、2……回転センサ、3……速度
検出器、4……補償器、5……演算器、6……メ
モリ、7……D/A変換器、8……電力増幅器、
10……負荷、1A,4A,5A……誤差検出
部、1B,4B,5B……制御信号作成部、1
C,4C,5C……第1カウント部、1D,4
D,5D……第2のカウント部、1E,4E,5
E……メモリ出力値作成部、1F,4F,5F…
…更新保存部。
FIG. 1 is a flowchart showing an example of the built-in program of the compensator of the present invention, FIG. 2 is a block diagram showing the configuration of an example of a motor speed control device using the compensator of the present invention, and FIG. FIG. 2 is a block diagram showing a specific example of the configuration of the speed detector, FIG. 4 is a flowchart showing another example of the built-in program of the compensator of the present invention, and FIG. 5 is a block diagram of the compensator of the present invention. FIG. 7 is a flowchart showing another example of a built-in program. DESCRIPTION OF SYMBOLS 1... Motor, 2... Rotation sensor, 3... Speed detector, 4... Compensator, 5... Arithmetic unit, 6... Memory, 7... D/A converter, 8... Power amplifier,
10...Load, 1A, 4A, 5A...Error detection section, 1B, 4B, 5B...Control signal creation section, 1
C, 4C, 5C...1st count section, 1D, 4
D, 5D...Second count section, 1E, 4E, 5
E...Memory output value creation section, 1F, 4F, 5F...
...Update storage department.

Claims (1)

【特許請求の範囲】[Claims] 1 所定タイミング毎、もしくは略所定タイミン
グ毎にデジタル誤差を得る誤差検出手段と、少な
くともNx・L個(ここに、Nxは1以上の整数、
Lは4以上の整数)の順序づけられたメモリ値を
格納保存するメモリ手段と、前記所定タイミング
のQ倍(ここに、Qは2以上の整数)の更新タイ
ミング毎に、前記Nx・L個のメモリ値を順番に
前記誤差検出手段のデジタル誤差とメモリ出力値
作成手段のメモリ出力を演算合成した更新値によ
つて更新保存する更新保存手段と、Nxが1の場
合には少なくとも1個のメモリ値を使つて、Nx
が2以上の場合には更新間隔が前記更新タイミン
グのL倍以上離れたNx個のメモリ値群を少なく
とも1組使つて、前記更新タイミングに同期して
前記メモリ出力値を作り出す前記メモリ出力値作
成手段と、前記所定タイミング毎に前記誤差検出
手段のデジタル誤差と前記メモリ出力値作成手段
のメモリ出力値を演算合成して制御信号を作り出
す制御信号作成手段と、プログラムに従つて少な
くとも前記メモリ出力値作成手段の動作と前記更
新保存手段の動作を実行する演算手段を具備し、
前記誤差検出手段が新しいデジタル誤差を得る毎
に前記制御信号作成手段は新しい制御信号を作り
出し、前記誤差検出手段が新しいデジタル誤差を
Q回得る毎に前記メモリ出力値作成手段と前記更
新保存手段は1個のメモリ値を更新し、かつ、前
記メモリ出力値作成手段と前記更新保存手段によ
る1個の前記メモリ値の更新動作を複数の部分動
作に分割し、前記各部分動作を前記誤差検出手段
の異なつたタイミングにおいて前記演算手段によ
り実行させた補償器。
1. Error detection means that obtains digital errors at every predetermined timing or approximately every predetermined timing, and at least Nx·L (here, Nx is an integer of 1 or more,
a memory means for storing ordered memory values (L is an integer of 4 or more); and a memory means for storing ordered memory values (L is an integer of 4 or more); update storage means for updating and storing memory values in order with updated values obtained by calculating and combining the digital error of the error detection means and the memory output of the memory output value creation means; and when Nx is 1, at least one memory; Using the value Nx
is 2 or more, creating the memory output value in synchronization with the update timing by using at least one set of Nx memory value groups whose update intervals are L times or more apart from the update timing; means for generating a control signal by calculating and combining the digital error of the error detecting means and the memory output value of the memory output value generating means at each predetermined timing, and controlling at least the memory output value according to a program. comprising a calculation means for executing the operation of the creation means and the operation of the update storage means,
Each time the error detection means obtains a new digital error, the control signal creation means creates a new control signal, and each time the error detection means obtains a new digital error Q times, the memory output value creation means and the update storage means One memory value is updated, and one memory value update operation by the memory output value creation means and the update storage means is divided into a plurality of partial operations, and each of the partial operations is processed by the error detection means. The compensator is executed by the calculation means at different timings.
JP63094834A 1988-04-18 1988-04-18 compensator Granted JPS63288301A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63094834A JPS63288301A (en) 1988-04-18 1988-04-18 compensator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63094834A JPS63288301A (en) 1988-04-18 1988-04-18 compensator

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP61052909A Division JPH0681535B2 (en) 1986-03-11 1986-03-11 Motor speed controller

Publications (2)

Publication Number Publication Date
JPS63288301A JPS63288301A (en) 1988-11-25
JPH0524522B2 true JPH0524522B2 (en) 1993-04-08

Family

ID=14121073

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63094834A Granted JPS63288301A (en) 1988-04-18 1988-04-18 compensator

Country Status (1)

Country Link
JP (1) JPS63288301A (en)

Also Published As

Publication number Publication date
JPS63288301A (en) 1988-11-25

Similar Documents

Publication Publication Date Title
JPH0524522B2 (en)
JP2574235B2 (en) Motor speed control device
JPH0681534B2 (en) Motor speed controller
JPH0681533B2 (en) Motor speed controller
JPH0681536B2 (en) Compensator
JPH0510032B2 (en)
JPH0681535B2 (en) Motor speed controller
JPS6380783A (en) compensator
JP2666563B2 (en) Motor speed control device
JPH0734667B2 (en) Motor speed controller
JP2819846B2 (en) Motor speed control device
JPS62254675A (en) Controller for cylinder motor
JPH06101949B2 (en) Cylinder motor control device
JPS63242189A (en) Motor speed control device
JPS62262683A (en) Speed controller for motor
JPS62254674A (en) Cylinder motor control device
JPS63242191A (en) Motor speed control device
JPS62233090A (en) Capstan motor control device
JPS62233089A (en) Capstan motor control device
JP2650251B2 (en) Motor speed control device
JPH04208083A (en) Motor speed control device
JPS62233088A (en) Controller for capstan motor
JPS61240871A (en) Speed controller for motor
JPS63242188A (en) Motor speed control device
JPH01129790A (en) motor control device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term