JPH01317257A - Tape feed controller - Google Patents

Tape feed controller

Info

Publication number
JPH01317257A
JPH01317257A JP63150738A JP15073888A JPH01317257A JP H01317257 A JPH01317257 A JP H01317257A JP 63150738 A JP63150738 A JP 63150738A JP 15073888 A JP15073888 A JP 15073888A JP H01317257 A JPH01317257 A JP H01317257A
Authority
JP
Japan
Prior art keywords
value
difference
output
motor
analog signal
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
JP63150738A
Other languages
Japanese (ja)
Inventor
Yoshiro Tsuchiyama
吉朗 土山
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 JP63150738A priority Critical patent/JPH01317257A/en
Publication of JPH01317257A publication Critical patent/JPH01317257A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To satisfactorily shorten the interruption processing time by decelerating the drive of a motor in the case it is detected with measurement of the FG pulse cycle that the tape speed is controller to a higher level as the shortage of the arithmetic processing time is increased. CONSTITUTION:A capstan motor 32 is prepared and the rotation detecting pulse (FG pulse) received from a rotation detector (frequency generator) 34 is inputted to a microcomputer 30. The microcomputer 30 outputs a control command of the motor 32 to a motor drive circuit 31 based on a command given from a system control circuit 33. In the case such a high speed that causes the shortage of the arithmetic processing time is detected by the speed information given from a speed detecting means 34, the multiplying process of the FG pulse is stopped and the filter arithmetic is omitted. Then a motor control command proportional to the speed error information or a deceleration command for a fixed degree is outputted to the circuit 31. The speed control is performs so as to perform the filter arithmetic again when the motor 32 is decelerated down to an arithmetic process enable state. As a result, the interruption processing time is extremely shortened.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、VTRなどのテープ装置における、テープ送
り制御に関するものであり、特にマイクロコンピュータ
を用いてテープ送りを制御する方法に関するものである
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to tape feeding control in a tape device such as a VTR, and more particularly to a method of controlling tape feeding using a microcomputer.

従来の技術 マイクロコンピュータを用いてテープ送りを制御する方
法として、例えば、特開昭61−178762号公報等
に示されているような方法がある。
2. Description of the Related Art As a method of controlling tape feeding using a microcomputer, there is a method as disclosed in, for example, Japanese Unexamined Patent Publication No. 178762/1983.

すなわち、第3図にしめすように、マイクロコンピュー
タ30は、システム制御回路33からの指令に基づき、
テープ送り速度の制御を行う。その構成は、テープ送り
をおこなうキャプスタンモータ32に取り付けられた回
転検出器(例えば周波数発電機)34からの回転検出パ
ルス(以下、FGパルスと称す)をマイクロコンピュー
タ30に入力し、マイクロコンピュータ30は、モータ
の制御指令を駆動回路31に出力し制御するものである
。マイクロコンピュータ30ではFGパルスを割込み入
力として用い、割込みパルスの時間間隔を持って速度を
検出するものである。このようにして得られた速度誤差
情報を、制御系の性能向上のためのフィルタ処理を行っ
て、その結果をモータ駆動回路31に送るものである。
That is, as shown in FIG. 3, the microcomputer 30 performs
Controls tape feed speed. Its configuration is such that a rotation detection pulse (hereinafter referred to as FG pulse) from a rotation detector (for example, a frequency generator) 34 attached to a capstan motor 32 that feeds the tape is input to a microcomputer 30. is for outputting a motor control command to the drive circuit 31 for control. The microcomputer 30 uses the FG pulse as an interrupt input, and detects the speed at the time interval of the interrupt pulse. The speed error information obtained in this manner is subjected to filter processing to improve the performance of the control system, and the results are sent to the motor drive circuit 31.

第2図にその構成を示す。FGパルスに対して十分に速
いクロックパルスを計数する巡回カウンタ21により、
時間を計数する。FGパルスが入ってくると、その変化
エツジで巡回カウンタ21の値をラッチレジスタ24に
ラッチする。同時にCPU20に対して、割り込み処理
を要求する信号を発生する。
Figure 2 shows its configuration. A cyclic counter 21 counts clock pulses that are sufficiently fast with respect to the FG pulse.
Count time. When the FG pulse comes in, the value of the cyclic counter 21 is latched into the latch register 24 at the edge of the change. At the same time, a signal requesting interrupt processing is generated to the CPU 20.

ROM27はCPU20の処理プログラムを格納するも
のであり、RAM27は処理結果を格納するだめのもの
である。
The ROM 27 is for storing processing programs of the CPU 20, and the RAM 27 is for storing processing results.

第6図は、CPU20の割り込み処理を示すフローチャ
ートである。まず処理60において、CPU20は、ラ
ッチレジスタ20の値と、RAM27のメモリBとの値
との差(割込み周期)を求める。次に処理61でこの差
と基準値(メモリC)との差を求め、その結果をメモリ
Aに格納する。
FIG. 6 is a flowchart showing the interrupt processing of the CPU 20. First, in process 60, the CPU 20 calculates the difference (interrupt cycle) between the value of the latch register 20 and the value of the memory B of the RAM 27. Next, in step 61, the difference between this difference and the reference value (memory C) is determined, and the result is stored in memory A.

これが速度誤差である。メモリCにはあらかじめ基準値
が格納されているものとする。次に処理62に進み、ラ
ッチレジスタ20の値をメモリBに格納する。次に、処
理63で制御系の性能を向上させるために、ディジタル
フィルタ演算を行って、モータの制御量を決定し、その
結果を、D/A変換器28へ送る。D/A変換器28の
出力はキャプスタンモータ32の駆動回路31に接続さ
れているので、D/A変換器28から出力される信号が
キャプスタンモータ32の駆動指令となる。
This is the speed error. It is assumed that a reference value is stored in memory C in advance. Next, the process proceeds to step 62, where the value of the latch register 20 is stored in the memory B. Next, in process 63, in order to improve the performance of the control system, a digital filter calculation is performed to determine the motor control amount, and the result is sent to the D/A converter 28. Since the output of the D/A converter 28 is connected to the drive circuit 31 of the capstan motor 32, the signal output from the D/A converter 28 becomes a drive command for the capstan motor 32.

第4図は、ディジタルフィルタの構成例を示す図である
。ここで、入力端子40から速度誤差信号が入力され、
加算器41、遅延器42により累積加算される。遅延器
42の遅延時間はFGパルスの周期に設定する。遅延器
42の手前及び、直後の信号を引き出し、それぞれ一定
の乗数AまたはBを掛けて、加算器45にてその差をと
る。その結果46が、フィルタの出力である。第5図は
、このフィルタの処理を示すフローチャートである。
FIG. 4 is a diagram showing an example of the configuration of a digital filter. Here, a speed error signal is input from the input terminal 40,
The adder 41 and the delay device 42 perform cumulative addition. The delay time of the delay device 42 is set to the period of the FG pulse. Signals before and after the delay device 42 are extracted, multiplied by a fixed multiplier A or B, and an adder 45 calculates the difference. The result 46 is the output of the filter. FIG. 5 is a flowchart showing the processing of this filter.

まず処理50において速度誤差値と、これまでの累積加
算値とを加算し、その結果をメモU Dへ格納する。メ
モIJ DO値は更新された累積加算値となる。つぎに
処理51へ進み、メモリDの値に係数Aを掛け、累積加
算値に係数Bを掛け、各々の乗算結果の差を求める。最
後に、処理52でメモIJ Dの値を累積加算値として
格納する。乗算結果の差の値が、フィルタの出力値であ
る。フィルタ演算は、かけ算を少なくとも2回用いるの
で、比較的演算時間がかかることになり、演算時間遅れ
が制御系に悪影響を及ぼさないようにしなければならな
い。
First, in process 50, the speed error value and the cumulative addition value up to now are added, and the result is stored in the memo UD. The memo IJDO value becomes the updated cumulative addition value. Next, the process proceeds to step 51, where the value in the memory D is multiplied by the coefficient A, the cumulative addition value is multiplied by the coefficient B, and the difference between the respective multiplication results is determined. Finally, in step 52, the value of the memo IJD is stored as a cumulative addition value. The difference value of the multiplication results is the output value of the filter. Since the filter calculation uses multiplication at least twice, it takes a relatively long calculation time, and it is necessary to prevent the calculation time delay from having an adverse effect on the control system.

VTRにおいてはテープを記録時と同じ速度で走行させ
る再生以外にも、特殊再生として、スロ=9− −モーション再生、早送り再生がある。早送り再生を行
うためには、キャプスタンモータの回転速度を上げてや
ることになる。キャプスタンモータの回転を上げること
は、FGパルスの周波数が上がることになり、このまま
ではマイクロコンピュータに割り込み処理が非常に頻雑
に発生し、時には、モータの駆動指令が計算できるまで
に、次のFGパルスが入力してくることが発生する。こ
のような事態を避けるため、FGパルスをあらかじめ、
分周して、制御回路に入力する方法が取られている。分
周は、第2図に示すように、CPU20がモードに応じ
て、可変分周器22を制御することにより実現できる。
In addition to playback in which the tape is run at the same speed as when it was recorded, VTRs also include slow-motion playback and fast-forward playback as special playbacks. To perform fast-forward playback, the rotational speed of the capstan motor must be increased. Increasing the rotation of the capstan motor means increasing the frequency of the FG pulse, and if this continues, the microcomputer will have to interrupt processing very frequently, and sometimes the next command will be delayed before the motor drive command can be calculated. An FG pulse may be input. To avoid this situation, set the FG pulse in advance.
A method is used to divide the frequency and input it to the control circuit. Frequency division can be realized by the CPU 20 controlling the variable frequency divider 22 according to the mode, as shown in FIG.

例えばN倍速での再生を実現するには、CPU20は可
変分周器22に1/N分周の指令を出し、記録または1
倍速再生であれば可変分周器に、分周なしの指令を出せ
ば良い。高速再生をするかどうかはシステム制御回路3
3より指令を受は取り判断する。また、低速再生を行う
場合は、FGパルスの周期が長くなり、安定な速度制御
が難しくなることがある。このため、第2図に示すよう
に、EX−OR回路23を用いて、割込みを受は付ける
たびにFG倍信号反転してやり、割込み周波数を逓倍し
てやり、FG速度誤差を得る周期を半分にする手段など
がとられている。
For example, to realize reproduction at N times speed, the CPU 20 issues a command to the variable frequency divider 22 to divide the frequency by 1/N, and performs recording or
For double-speed playback, all you have to do is issue a command to the variable frequency divider to not divide the frequency. System control circuit 3 determines whether or not to perform high-speed playback.
3. Receive orders and make decisions. Furthermore, when performing low-speed reproduction, the period of the FG pulse becomes long, which may make stable speed control difficult. For this reason, as shown in FIG. 2, an EX-OR circuit 23 is used to invert the FG times signal each time an interrupt is accepted, multiply the interrupt frequency, and halve the period for obtaining the FG speed error. etc. are taken.

発明が解決しようとする課題 以上水した方法で、テープ送り制御を高速制御から、低
速制御へ切り換える場合を考える。すなわち、CPUは
、システム制御指令に基づき、可変分周器22に対して
、1/N分周の指令を出していた状態から、分周をやめ
る指令に切り換える。
Let us consider a case where tape feed control is switched from high-speed control to low-speed control in a method that overcomes the problems that the invention aims to solve. That is, based on the system control command, the CPU switches from issuing a 1/N frequency division command to the variable frequency divider 22 to a command to stop frequency division.

このようにすれば、CPU20がらみたFGパルス周期
の目標値が等しくても、N倍速送りから、1倍速送りへ
の切り換えができることになる。さらに低速に制御する
場合は、前述のEX−OR回路23を用いて、実質的な
FG周波数を逓倍する方法がとられることもある。
In this way, even if the target values of the FG pulse periods from the perspective of the CPU 20 are the same, it is possible to switch from N times speed feeding to single speed feeding. When controlling the speed even further, a method may be used in which the above-mentioned EX-OR circuit 23 is used to multiply the actual FG frequency.

ところが、このように制御する場合、次の問題点がある
ことが判明する。すなわち、高速制御を行っている場合
には、可変分周器22を用いて、−11= CPU20に入るパルスを、1/Nにして、1倍速と同
じ周波数に変換しているが、実際のFGパルス周波数は
、N倍になっている。したがって、可変分周器22を通
さないように切り換えて、かつ減速指令を出すことがで
きても、送り用のモータ32はすぐには応答しないので
、FGパルスの周波数は、N倍に近い値となっている。
However, when controlling in this manner, it has been found that there are the following problems. In other words, when performing high-speed control, the variable frequency divider 22 is used to convert the pulse input to the CPU 20 to -11=1/N, and convert it to the same frequency as 1x speed. The FG pulse frequency is multiplied by N. Therefore, even if the variable frequency divider 22 is switched so as not to pass through, and a deceleration command can be issued, the feed motor 32 does not respond immediately, so the frequency of the FG pulse is set to a value close to N times. It becomes.

このときCPU20に対しては、割込み要求が頻雑に発
生することになり、CPU20がパルス周期内に、処理
を完了することができなくなることになる。
At this time, interrupt requests are frequently generated to the CPU 20, making it impossible for the CPU 20 to complete processing within the pulse cycle.

さらに低速に切り換える場合は、EX−OR回路23を
用いて、割込み周期が2倍になるので、実際の割込み周
波数は、2*N倍になり、さらに制御が困難になる。と
くに、割込み周波数を逓倍するにあたり、周期の検出を
正確に行うためには、FGパルスエツジを反転するタイ
ミングが、次のエツジの到来より遅れてはいけない。遅
れると、反転したタイミングがFGパルスエツジのタイ
ミングであると誤って検出される。
When switching to an even lower speed, the EX-OR circuit 23 is used and the interrupt period is doubled, so the actual interrupt frequency is multiplied by 2*N, making control even more difficult. In particular, when multiplying the interrupt frequency, in order to accurately detect the period, the timing of inverting the FG pulse edge must not be delayed from the arrival of the next edge. If there is a delay, the inverted timing will be erroneously detected as the FG pulse edge timing.

このような事態が発生しないために、高速再生から低速
再生に切り換える場合には、システム制御回路33が与
える速度指令を、高速から徐々に低速に切り換える方法
が考えられる。例えばN倍速再生から、 (N−1)倍
速再生、 (N−2)倍速再生・・・、と徐々に速度を
下げていく方法である。しかし、この場合、最終目標の
、低速になるまで、時間がかかるという欠点があるのは
、明白である。
In order to prevent such a situation from occurring, when switching from high-speed playback to low-speed playback, a method may be considered in which the speed command given by the system control circuit 33 is gradually switched from high speed to low speed. For example, the speed is gradually lowered from N times speed playback to (N-1) times speed playback, (N-2) times speed playback, and so on. However, in this case, it is obvious that the drawback is that it takes time to reach the final goal of slowing down.

課題を解決するための手段 本発明では、従来の欠点を克服するために、速度検出手
段による速度情報が、演算処理時間が不足するほど、高
速であることを検出した場合には、FGパルスの逓倍処
理を停止し、フィルタ演算を省略し、速度誤差情報に比
例したモータ制御指令もしくは一定量の減速指令をモー
タ駆動回路に出力し、演算処理可能な状態まで減速され
たら、再びフィルタ演算を行う速度制御を行う。
Means for Solving the Problems In the present invention, in order to overcome the conventional drawbacks, when it is detected that the speed information by the speed detection means is so high that the calculation processing time is insufficient, the FG pulse is Stop the multiplication process, omit the filter calculation, output a motor control command proportional to the speed error information or a fixed amount of deceleration command to the motor drive circuit, and once the speed is reduced to a state where calculation processing is possible, perform the filter calculation again. Perform speed control.

作用 CPUは割6込み処理としてFGパルス周期の計測を行
い、基準値と比較し、速度比較演算を行う。その結果、
速度が、演算処理時間が不足するほど高速移送制御であ
ることを検出した場合には、FGパルスの逓倍処理を停
止し、フィルタ演算を省略し、速度誤差情報に比例した
モータ制御指令、もしくは一定量の減速指令をモータ駆
動回路に出力し、演算処理可能な状態まで減速されたら
、再び、フィルタ演算を行う速度制御を行う。FGパル
スの逓倍処理を停止することにより、FGパルスの割込
み周波数は半分になり、さらに、フィルタ処理を省略す
ることにより、割り込み処理時間は大幅に減少する。こ
のため割り込み処理が次のFGパルスの到達までに完了
させることができ、正常な速度誤差検出が常にできる。
The active CPU measures the FG pulse period as an interrupt process, compares it with a reference value, and performs a speed comparison calculation. the result,
If it is detected that the speed is such a high-speed transfer control that the calculation processing time is insufficient, the multiplication process of the FG pulse is stopped, the filter calculation is omitted, and the motor control command is set proportional to the speed error information or constant. A deceleration command of the amount is output to the motor drive circuit, and when the motor is decelerated to a state where calculation processing is possible, speed control is performed again to perform filter calculation. By stopping the multiplication process of the FG pulse, the interrupt frequency of the FG pulse is halved, and furthermore, by omitting the filter process, the interrupt processing time is significantly reduced. Therefore, the interrupt processing can be completed before the next FG pulse arrives, and normal speed error detection can always be performed.

実施例 本発明の実施例を図面に基づき説明する。第2図は、本
発明の構成例を示す回路ブロック図であり、ハードウェ
ア構成は、従来例と同じである。
Embodiment An embodiment of the present invention will be described based on the drawings. FIG. 2 is a circuit block diagram showing a configuration example of the present invention, and the hardware configuration is the same as that of the conventional example.

すなわち、高速のクロックパルスを計数する巡回カウン
タ21を設け、クロックパルスを繰り返し計数する。キ
ャプスタンモータ32のFGパルスを可変分周回路22
及び、逓倍用のEX−OR回路23を通して、ラッチレ
ジスタ24へ入カスる。
That is, a cyclic counter 21 that counts high-speed clock pulses is provided to repeatedly count the clock pulses. Variable frequency dividing circuit 22 for FG pulse of capstan motor 32
The signal is then input to the latch register 24 through the EX-OR circuit 23 for multiplication.

ラッチレジスタ24では、EX−OR回路23の出力信
号のエツジにて巡回カウンタ21の計数値をラッチする
。同時に、EX−OR回路23の出力信号のエツジにて
、CPU20に割り込み処理を要求する。CPU20は
割り込み処理としてキャプスタンモータ32の回転速度
を求め、モータの駆動指令値を算出し、D/A変換器2
8へその値を出力する。D/A変換器28の出力信号は
キャプスタンモータ駆動回路31を通じてキャプスタン
モータ32の駆動指令となる。可変分周回路22の分周
比、およびEX−OR回路23の制御は、CPU20に
よりソフトウェアで制御される。
The latch register 24 latches the count value of the cyclic counter 21 at the edge of the output signal of the EX-OR circuit 23. At the same time, at the edge of the output signal of the EX-OR circuit 23, a request is made to the CPU 20 for interrupt processing. The CPU 20 determines the rotational speed of the capstan motor 32 as an interrupt process, calculates a motor drive command value, and sends the D/A converter 2
Output the value to 8. The output signal of the D/A converter 28 becomes a drive command for the capstan motor 32 via a capstan motor drive circuit 31. The frequency division ratio of the variable frequency divider circuit 22 and the control of the EX-OR circuit 23 are controlled by software by the CPU 20.

第1図はCPU20の割り込み処理の内容を示す流れ図
である。CPU20は割り込み処理として、まず処理1
に示すように、ラッチレジスタ24の値とメモリBとの
値との差を求め、その値をメモリAに書き込む。次に処
理2に進み、メモリAの値とメモリCの値との差を求め
、その結果を=15− メモリAに格納する。メモリCには基準周期の値があら
かじめ格納されているものとする。次に、処理3に示す
ように、現在の制御モードが低速モードかどうかを調べ
る。低速モードであれば処理4へ進み、高速モードであ
れば処理13へ進む。
FIG. 1 is a flowchart showing the contents of interrupt processing by the CPU 20. The CPU 20 first performs processing 1 as interrupt processing.
As shown in FIG. 2, the difference between the value in the latch register 24 and the value in memory B is determined, and that value is written into memory A. Next, proceed to process 2, find the difference between the value in memory A and the value in memory C, and store the result in memory A. It is assumed that the value of the reference period is stored in memory C in advance. Next, as shown in process 3, it is checked whether the current control mode is the low speed mode. If the mode is low speed mode, the process proceeds to process 4, and if the mode is high speed mode, the process proceeds to process 13.

以下低速モードの場合をまず説明する。処理4において
、現在逓倍処理を行っているかどうかを、フラグにより
判別する。逓倍処理を行っていれば処理7へ進み、そう
でなければ処理5へ進む。処理7ではメモリAの値が一
定値N2よりも小さいかどうかを調べる。小さければ処
理8へ進み、そうでなければ処理9へ進む。処理8では
逓倍処理をするフラグをクリアする。そして処理9へ進
む。
Below, the case of low speed mode will be explained first. In process 4, it is determined based on a flag whether multiplication processing is currently being performed. If multiplication processing is being performed, the process proceeds to process 7; otherwise, the process proceeds to process 5. In process 7, it is checked whether the value in memory A is smaller than a constant value N2. If it is smaller, proceed to process 8; otherwise, proceed to process 9. In process 8, the flag for performing multiplication processing is cleared. Then, the process proceeds to process 9.

同様に、処理5でもメモIJ Aの値が一定値N1より
も小さいかどうかを調べ、小さければ処理9へ進み、そ
うでなければ処理6を経由して処理9へ進む。処理6で
は逓倍処理をするフラグをセットする。
Similarly, in process 5, it is checked whether the value of memo IJA is smaller than the constant value N1, and if it is, the process proceeds to process 9; otherwise, the process proceeds to process 9 via process 6. In process 6, a flag for multiplication processing is set.

処理9では、逓倍処理をするフラグがセットされている
かどうかを調べ、セットされていれば処I6− 理10へ進み、セットされていなければ処理11へ進む
。処理10ではディジタルフィルタ演算を行い、演算結
果をD/A変換器28へ出力して、キャプスタンモータ
32の制御を行う。次に処理12へ進み、極性切り換え
レジスタ25の値を反転する。これによりEX−OR回
路23の出力が反転し、FGパルスの逓倍処理が行われ
たことになる。次に処理16へ進み、ラッチレジスタ2
4の値をメモU Bに格納して割り込み処理を終了する
。一方、処理11へ進んだ場合は、フィルタ演算を行わ
ないで、速度誤差(メモIJ Aに格納されている)の
値に比例するあたいをD/A変換器28に直接出力し、
最後に処理16を経て、割り込み処理を終了する。
In process 9, it is checked whether the flag for multiplication processing is set. If it is set, the process proceeds to process I6-10; if not, the process proceeds to process 11. In process 10, a digital filter calculation is performed, the calculation result is output to the D/A converter 28, and the capstan motor 32 is controlled. Next, the process proceeds to step 12, where the value of the polarity switching register 25 is inverted. As a result, the output of the EX-OR circuit 23 is inverted, and the FG pulse is multiplied. Next, proceed to process 16, and latch register 2
The value of 4 is stored in the memo UB and the interrupt processing ends. On the other hand, when proceeding to process 11, the value proportional to the speed error (stored in memo IJA) is directly output to the D/A converter 28 without performing the filter calculation.
Finally, through process 16, the interrupt process ends.

一方、高速モードのときには処理13へ進み、まず速度
誤差値(メモIJA)が一定値N3よりも小さいかどう
かを調べる。小さい場合には処理15へ進み、そうでな
ければ処理14へ進む。処理14では速度誤差値を用い
てフィルタ演算を行い、演算結果をD/A変換器28に
出力したのち、処理16へ進み、割り込み処理を終了す
る。また処理15へ進んだ場合には、フィルタ演算を行
わないで、速度誤差(メモリAに格納されている)の値
に比例する値をD/A変換器28に直接出力し、′最後
に処理16を経て、割り込み処理を終了する。
On the other hand, in the high speed mode, the process proceeds to step 13, where it is first checked whether the speed error value (memo IJA) is smaller than the constant value N3. If it is smaller, the process proceeds to process 15; otherwise, the process proceeds to process 14. In process 14, a filter calculation is performed using the velocity error value, and after outputting the calculation result to the D/A converter 28, the process proceeds to process 16, and the interrupt process is ended. In addition, when proceeding to process 15, a value proportional to the speed error (stored in memory A) is directly output to the D/A converter 28 without performing the filter calculation, and the final process is 16, the interrupt processing ends.

次に、以上の処理におlする、一定値Nl、N2゜N3
.  の関係について説明する。まずN1は、低速モー
ドにおける逓倍処理許可を示すしきい値である。またN
2は、逓倍処理を禁止するかどうかを示すしきい値であ
る。またN3は、高速モードにおけるフィルタ処理を省
略するかどうかのしきい値である。εのときN1に相当
する速度はN2に相当する速度よりも遅くなければなら
ない。なぜならば、N1に相当する速度が速ければ、N
1に相当する速度より遅くなった時点で、逓倍処理を開
始できるが、N2に相当する速度よりもまだ速いので、
逓倍処理を禁止する状態にもなり、矛盾を生じるからで
ある。そしてN1の値は、割り込み処理時間を考慮して
、逓倍処理をしても割り込み処理が十分にできる周期か
ら決定される。またN3の値も同様に、割り込み処理可
能な周期より決定することができる。
Next, the constant value Nl, N2°N3 used in the above processing
.. Explain the relationship between First, N1 is a threshold value indicating permission for multiplication processing in low-speed mode. Also N
2 is a threshold value indicating whether or not multiplication processing is prohibited. Further, N3 is a threshold value for determining whether to omit filter processing in the high-speed mode. When ε, the speed corresponding to N1 must be slower than the speed corresponding to N2. This is because if the speed corresponding to N1 is fast, then N
The multiplication process can be started when the speed becomes slower than the speed corresponding to N2, but since it is still faster than the speed corresponding to N2,
This is because it also becomes a state in which multiplication processing is prohibited, resulting in a contradiction. The value of N1 is determined based on the cycle in which interrupt processing can be performed sufficiently even with multiplication processing, taking into account the interrupt processing time. Similarly, the value of N3 can be determined based on the interrupt processing period.

発明の詳細 な説明したように、本発明は従来のプログラム処理では
難しかった、可変分周器の分周比を1に切り換えた場合
のFGパルスが多く入力されて、マイクロコンピュータ
の処理時間が不足する問題を解決するものであり、減速
を速やかにすることができる点や、新たな回路の追加を
必要としない点にあり、その効果は大きい。
As described in detail, the present invention solves the problem that is difficult with conventional program processing, because when the frequency division ratio of the variable frequency divider is switched to 1, many FG pulses are input, and the processing time of the microcomputer is insufficient. This technology solves the problem of speed reduction, and has great effects in that it can speed up deceleration and does not require the addition of new circuits.

なお、本実施例では、モータを減速させる方法として、
フィルタ演算を行わないで、速度誤差(メモリAに格納
されている)の値に比例するあたいをD/A変換器28
に直接出力する方法で説明したが、別の方法として、一
定の減速指令を用いて、減速させる方法もあり、同じ効
果を実現することができる。
In addition, in this embodiment, as a method of decelerating the motor,
The D/A converter 28 calculates a value proportional to the speed error (stored in memory A) without performing any filter calculation.
Although the explanation has been given on the method of directly outputting the signal to the vehicle, there is also a method of decelerating the vehicle using a fixed deceleration command, which can achieve the same effect.

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

第1図は本発明の一実施例における割り込み処理手順を
示すフローチャート、第2図は本発明の一実施例のマイ
クロコンピュータの構成図、第3図は同実施例における
制御系の構成図、第4図は同実施例におけるディジタル
フィルタの構成図、第5図は同ディジタルフィルタの演
算手順を示すフローチャート、第6図は従来例における
割り込み処理手順を示すフローチャートである。 20・・・CPU121・・・巡回カウンタ、22・・
・可変分周器、23・・・EX−OR回路、24・・・
ラッチレジスタ、2G・・・極性切り換えレジスタ、2
6・・・プログラムメモリ、27・・・データメモリ、
28・・・D/A変換器、30・・・マイクロコンピュ
ータ、31・・・駆動回路、32・・・キャプスタンモ
ータ、34・・・周波数発電機。 代理人の氏名 弁理士 中尾敏男 はか1名第2図 第3図 第4図 乙1 第5図 1r丁=−響ごN 第6図 0叫 ] 「−ご−レンズ。 −」 −リA−7 ■′ ロ177;遥τ− ■
FIG. 1 is a flowchart showing an interrupt processing procedure in an embodiment of the present invention, FIG. 2 is a block diagram of a microcomputer in an embodiment of the present invention, FIG. 3 is a block diagram of a control system in the same embodiment, and FIG. FIG. 4 is a block diagram of the digital filter in the same embodiment, FIG. 5 is a flowchart showing the calculation procedure of the digital filter, and FIG. 6 is a flowchart showing the interrupt processing procedure in the conventional example. 20...CPU121...Cyclic counter, 22...
・Variable frequency divider, 23...EX-OR circuit, 24...
Latch register, 2G...Polarity switching register, 2
6...Program memory, 27...Data memory,
28...D/A converter, 30...Microcomputer, 31...Drive circuit, 32...Capstan motor, 34...Frequency generator. Name of agent Patent attorney Toshio Nakao 1 person Figure 2 Figure 3 Figure 4 Figure Otsu 1 Figure 5 1R = - Hibiki N Figure 6 0 shout] "-Go-lens. -" -ReA −7 ■′ ro177;Harukaτ− ■

Claims (6)

【特許請求の範囲】[Claims] (1)テープをモータの回転動力により送り移動する装
置において、プログラムにより演算制御を実行する手段
と、前記演算制御手段の演算制御結果を記憶する記憶手
段と、クロックパルスを繰り返し計数する計数手段と、
モータの回転パルス信号もしくは前記回転軸の回転パル
ス信号を前記演算制御手段により可変分周する手段と、
前記可変分周手段の出力により前記演算制御手段に割り
込み処理を要求する手段と、前記可変分周手段の出力に
より前記繰返計数手段の計数結果をラッチする手段、前
記演算制御手段の演算結果をアナログ信号に変換する手
段と、前記アナログ信号を用いてモータを駆動する手段
を具備し、前記演算制御手段は、前記割り込み処理とし
て、前記ラッチ手段のラッチ結果と前回の割り込み発生
時のラッチ手段のラッチ結果との差を求めて第1の差と
し、前記第1の差から基準となる値を差し引いた第2の
差を求め、前記第2の差に基づいた値により、前記モー
タの制御指令を演算して、前記アナログ信号変換手段に
出力し、前記割り込み処理時、前記第2の差の値が第1
の閾値よりも大きい場合には、前記第2の差の値を用い
てフィルタ演算を実行し、演算結果を前記アナログ信号
変換手段に出力し、前記第2の差の値が前記第1の閾値
よりも小さいときには、前記第2の差の値もしくは一定
の値をもって前記アナログ信号変換手段に出力すること
を特徴とするテープ送り制御装置。
(1) A device that feeds and moves a tape by the rotational power of a motor, which includes means for executing arithmetic control according to a program, storage means for storing the arithmetic control results of the arithmetic control means, and counting means for repeatedly counting clock pulses. ,
means for variably frequency-dividing the rotation pulse signal of the motor or the rotation pulse signal of the rotating shaft by the calculation control means;
Means for requesting interrupt processing to the arithmetic control means by the output of the variable frequency dividing means; means for latching the count result of the repeat counting means by the output of the variable frequency divider; The arithmetic control means includes a means for converting into an analog signal and a means for driving a motor using the analog signal, and the arithmetic control means performs the interrupt processing by converting the latch result of the latch means and the latch result of the latch means when the previous interrupt occurred. A difference with the latch result is determined as a first difference, a second difference is determined by subtracting a reference value from the first difference, and a control command for the motor is determined based on a value based on the second difference. is calculated and output to the analog signal conversion means, and during the interrupt processing, the second difference value becomes the first difference value.
If the second difference value is larger than the first threshold value, a filter calculation is performed using the second difference value, the calculation result is output to the analog signal conversion means, and the second difference value is set to the first threshold value. When the difference is smaller than , the second difference value or a constant value is outputted to the analog signal converting means.
(2)テープをモータの回転動力により送り移動する装
置において、プログラムにより演算制御を実行する手段
と、前記演算制御手段の演算制御結果を記憶する記憶手
段と、クロックパルスを繰り返し計数する計数手段と、
排他的論理和演算手段と、演算制御手段により制御され
る第1および第2のレジスタを設け、前記モータの回転
に関連するパルス信号と前記第1のレジスタの出力とを
前記排他的論理和演算手段に入力し、前記排他的論理和
演算手段の出力により、前記演算制御手段に割り込み処
理を要求する手段と、前記排他的論理和演算手段の出力
により前記繰り返し計数手段の計数結果をラッチする手
段と、前記演算制御手段の演算結果をアナログ信号に変
換する手段と、前記アナログ信号を用いて前記モータを
駆動する手段を具備し、前記演算制御手段は、前記割り
込み処理として、前記ラッチ手段のラッチ結果と前回の
割り込み発生時のラッチ手段のラッチ結果との差を求め
て第1の差とし、前記第1の差から、基準となる値を差
し引いた第2の差を求め、前記第2の差に基づいた値に
より、前記モータの制御指令を演算して、前記アナログ
信号変換手段に出力市、前記割り込み処理時、前記第2
のレジスタの内容が前記第1のレジスタを使用している
状態を示すものであって、前記第2の差の値が第1の閾
値よりも大きい場合には、前記第1のレジスタの値を反
転させるとともに、前記第2の差の値を用いてフィルタ
演算を実行し、演算結果を前記アナログ信号変換手段に
出力し、前記第2のレジスタの内容が前記第1のレジス
タを使用している状態を示すように書き換える処理を行
い、前記第2の差の値が前記第1の閾値よりも小さいと
きには、前記第2の差の値をもって前記アナログ信号変
換手段に出力し、前記第2のレジスタの内容を前記第1
のレジスタを使用していない状態を示す内容に書き換え
る処理を行い、前記第2のレジスタの内容が前記第1の
レジスタを使用していない状態を示している場合であっ
て、前記第2の差の値が第2の閾値よりも大きい場合に
は、前記第1のレジスタの値を反転させるとともに、前
記第2の差の値を用いてフィルタ演算を実行し、演算結
果を前記アナログ信号変換手段に出力し、前記第2のレ
ジスタの内容が前記第1のレジスタを使用している状態
を示すように書き換える処理を行い、前記第2の差の値
が前記第1の閾値よりも小さいときには、前記第2の差
の値もしくは一定の値をもって前記アナログ信号変換手
段に出力し、前記第2のレジスタの内容を前記第1のレ
ジスタを使用していない状態を示す内容に書き換える処
理を行うことを特徴とするテープ送り制御装置。
(2) A device that feeds and moves a tape by the rotational power of a motor, comprising means for executing arithmetic control according to a program, a storage means for storing arithmetic control results of the arithmetic control means, and a counting means for repeatedly counting clock pulses. ,
Exclusive OR operation means and first and second registers controlled by operation control means are provided, and the pulse signal related to the rotation of the motor and the output of the first register are subjected to the exclusive OR operation. means for requesting interrupt processing from the arithmetic control means based on the output of the exclusive OR operation means; and means for latching the count result of the repeat counting means using the output of the exclusive OR operation means. and means for converting the calculation result of the calculation control means into an analog signal, and means for driving the motor using the analog signal, and the calculation control means is configured to latch the latch of the latch means as the interrupt processing. The difference between the result and the latch result of the latch means when the previous interrupt occurred is determined as a first difference, and a second difference is determined by subtracting a reference value from the first difference. Based on the value based on the difference, a control command for the motor is calculated and outputted to the analog signal converting means.
If the content of the register indicates that the first register is used, and the second difference value is greater than the first threshold, the value of the first register is changed to and performing a filter operation using the second difference value, outputting the operation result to the analog signal converting means, and the contents of the second register using the first register. When the second difference value is smaller than the first threshold value, the second difference value is output to the analog signal conversion means, and the second difference value is output to the analog signal conversion means, and The contents of the first
, and the content of the second register indicates that the first register is not used, and the second difference is If the value of When the second difference value is smaller than the first threshold, Outputting the second difference value or a constant value to the analog signal converting means, and performing a process of rewriting the contents of the second register to contents indicating a state in which the first register is not used. Characteristic tape feed control device.
(3)第1の閾値に相当する回転パルス周波数は、第2
の閾値に相当する回転パルス周波数よりも高くない周波
数であることを特徴とする請求項2記載のテープ送り制
御装置。
(3) The rotational pulse frequency corresponding to the first threshold is
3. The tape feeding control device according to claim 2, wherein the frequency is not higher than a rotation pulse frequency corresponding to a threshold value of .
(4)演算制御手段によりモータの回転に関連するパル
ス信号を可変分周する手段を設け、前記可変分周手段の
出力と第1のレジスタの出力を排他的論理和演算手段の
入力とすることを特徴とする請求項2もしくは3記載の
テープ送り制御装置。
(4) Providing means for variably frequency-dividing a pulse signal related to the rotation of the motor by an arithmetic control means, and using the output of the variable frequency dividing means and the output of the first register as inputs to the exclusive OR operation means. The tape feed control device according to claim 2 or 3, characterized in that:
(5)演算制御手段によりパルス信号を可変分周する手
段を設け、排他的論理和演算手段の出力を前記可変分周
手段の入力とし、前記可変分周手段の出力により前記演
算制御手段に割込み処理を要求し、前記可変分周手段の
出力によりクロックパルス計数手段の計数結果をラッチ
することを特徴とする請求項2もしくは3記載のテープ
送り制御装置。
(5) Providing means for variably frequency-dividing the pulse signal by the arithmetic control means, using the output of the exclusive OR arithmetic means as an input to the variable frequency dividing means, and interrupting the arithmetic control means by the output of the variable frequency dividing means. 4. The tape feeding control device according to claim 2, further comprising a step of requesting processing and latching the count result of the clock pulse counting means based on the output of the variable frequency dividing means.
(6)可変分周手段における分周比が1でないときには
第1のレジスタの値を固定し、かつ、第2の差の値が第
3の閾値より小さい場合には、前記第2の差の値を用い
てフィルタ演算を行い、演算結果をアナログ信号変換手
段に出力し、前記第3の閾値よりも大きい場合には、前
記第2の差の値もしくは一定の減速指令値を前記アナロ
グ信号変換手段に出力することを特徴とする請求項4も
しくは5記載のテープ送り制御装置。
(6) When the frequency division ratio in the variable frequency dividing means is not 1, the value of the first register is fixed, and when the value of the second difference is smaller than the third threshold value, the value of the second difference is A filter calculation is performed using the value, and the calculation result is output to the analog signal conversion means, and if it is larger than the third threshold value, the second difference value or a constant deceleration command value is converted to the analog signal conversion means. 6. The tape feed control device according to claim 4, wherein the tape feed control device outputs the information to a means.
JP63150738A 1988-06-17 1988-06-17 Tape feed controller Pending JPH01317257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63150738A JPH01317257A (en) 1988-06-17 1988-06-17 Tape feed controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63150738A JPH01317257A (en) 1988-06-17 1988-06-17 Tape feed controller

Publications (1)

Publication Number Publication Date
JPH01317257A true JPH01317257A (en) 1989-12-21

Family

ID=15503335

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63150738A Pending JPH01317257A (en) 1988-06-17 1988-06-17 Tape feed controller

Country Status (1)

Country Link
JP (1) JPH01317257A (en)

Similar Documents

Publication Publication Date Title
US4564794A (en) Phase locked loop and a motor control servo
JPH01317257A (en) Tape feed controller
JPH02165055A (en) Speed detector
JP2781327B2 (en) Speed detector for encoder type motor
JPS5873045A (en) Capstan servo circuit
JPH04217887A (en) Tape driving device
JPS60210185A (en) Chopper frequency measuring controller
JP3049671B2 (en) DC motor speed control device
JP2903903B2 (en) Microcomputer
JP2001352775A (en) Rotational speed detector for induction motor
KR100357873B1 (en) Apparatus of controlling rotate motor for apparatus of reproducing optical disc
JPH05227775A (en) Speed controller
KR0155858B1 (en) Capston servo circuit
JP3251007B2 (en) Disk drive device
JP2674409B2 (en) Magnetic recording / reproducing device
JP3227712B2 (en) Digital servo method for rotating body
JPH0831060A (en) Phase control servo circuit for rotating body and vtr
JP2778066B2 (en) Microprocessor with capture mechanism
JP2840406B2 (en) Error signal generator
KR0147344B1 (en) Capstan phase control method for vcr
JPH0340256A (en) Information reproducing device
JPH06169587A (en) Servo controller
JPS59113569A (en) Motor control circuit
JPH0265685A (en) Phase servo device
JPH06101161B2 (en) Tape drive