JPS59106899A - Control device for motor - Google Patents

Control device for motor

Info

Publication number
JPS59106899A
JPS59106899A JP21764982A JP21764982A JPS59106899A JP S59106899 A JPS59106899 A JP S59106899A JP 21764982 A JP21764982 A JP 21764982A JP 21764982 A JP21764982 A JP 21764982A JP S59106899 A JPS59106899 A JP S59106899A
Authority
JP
Japan
Prior art keywords
output
motor
digital filter
input
pulse
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
JP21764982A
Other languages
Japanese (ja)
Inventor
Izuru Haruhara
春原 出
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP21764982A priority Critical patent/JPS59106899A/en
Publication of JPS59106899A publication Critical patent/JPS59106899A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P8/00Arrangements for controlling dynamo-electric motors of the kind having motors rotating step by step
    • H02P8/04Arrangements for starting

Abstract

PURPOSE:To exponentially drive in a simple structure by providing a IIR digital filter and an integrating resistor. CONSTITUTION:When a power surce becomes ON, a CPU initially sets a memory RAM, an I/O port and a counter. Then, a port connected to a drive direction instruction input CW/CCW of a motor drive circuit MD is set to CW level, and a target speed data corresponding to the speed IV is set to the output port connected to the primary IIR digital filter FLT. Since the IIR digital filter responds to the exponential function of K.DELTAt at the time constant, the exponential output can be obtained by merely applying the prescribed stational signal to the input. Accordingly, a step motor 4 is automatically accelerated in accordance with an exponential curve.

Description

【発明の詳細な説明】 ■技術分野 本発明は、駆動量に対応するパルスを発生してステッピ
ングモータ、直流サーボモータ等を駆動する制御装置に
関し、特に、モータの加減速制御に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to a control device that generates pulses corresponding to a driving amount to drive a stepping motor, a DC servo motor, etc., and particularly relates to acceleration/deceleration control of a motor.

■従来技術 ステッピングモータ、あるいは回転に応じた信号を発生
するロータリーエンコーダを備える直流サーボモータを
駆動する場合、モータ駆動量に応じたパルスを発生して
、モータを所定量ずつ変位させる。
■Prior Art When driving a stepping motor or a DC servo motor equipped with a rotary encoder that generates a signal according to rotation, pulses are generated according to the amount of motor drive to displace the motor by a predetermined amount.

ところで、モータの加減速制御には、速度を台形状に変
化させる台形波駆動、2次曲線駆動、指数関数駆動等が
知られている。台形波駆動では加速時および減速時の加
速度が一定であるので、パルス周期等の変更制御が比較
的簡単であり、一般的にはこの方式が用いられている。
Incidentally, known methods of motor acceleration/deceleration control include trapezoidal wave drive, quadratic curve drive, and exponential function drive, which change the speed in a trapezoidal manner. In trapezoidal wave driving, since the acceleration during acceleration and deceleration is constant, it is relatively easy to control changes in the pulse period, etc., and this method is generally used.

しかしながら、たとえば複写機光学系の走査駆動をする
場合のように、振動のない滑らかな動作を要求される分
野では、指数関数駆動を行なうのが最も好ましい。とこ
ろが、指数関数駆動では加・減速時の加速度が一定でな
いので、指数関数的なタイミング信号を生成しなければ
ならず、駆動パルスを発生するための制御が非常に難し
く、このような制御を行なう装置では一般に装置構成が
非常に複雑になっている。
However, in fields where vibration-free and smooth operation is required, such as scanning drive of a copying machine optical system, it is most preferable to use exponential function drive. However, in exponential drive, the acceleration during acceleration and deceleration is not constant, so an exponential timing signal must be generated, making control to generate drive pulses extremely difficult. Devices generally have very complicated device configurations.

指数関数駆動を行なう例としては、たとえば特公昭57
−10679号が知られている。しかしながら、これに
おいても読み出し専用メモリ、アドレスカウンタ、プリ
セットカウンタ、割算器等多数の構成要素を必要とし、
装置構成が複雑になるのは避けられない。
As an example of exponential function driving, for example, the
-10679 is known. However, even this requires a large number of components such as read-only memory, address counter, preset counter, divider, etc.
It is inevitable that the device configuration will become complicated.

■発明の目的 本発明は、比較的簡単な構成で指数関数駆動を行なうモ
ータ加減速制御回路を実現することを目的とする。
(2) Purpose of the Invention The object of the present invention is to realize a motor acceleration/deceleration control circuit that performs exponential function drive with a relatively simple configuration.

■構成 上記目的を達成するために、本発明においては、目標速
度データを一次ITRディジタルフィルタに入力し、こ
のフィルタの出力を積分し、積分出力の所定変化毎にモ
ータ駆動パルスを発生する。
(2) Structure In order to achieve the above object, in the present invention, target speed data is input to a primary ITR digital filter, the output of this filter is integrated, and a motor drive pulse is generated every time a predetermined change in the integrated output.

−次TIRディジタルフィルタでは、n番目の入力をX
n、n番目の出力をynとすると次式のようになる。
In a -order TIR digital filter, the nth input is
When n and the n-th output are yn, the following equation is obtained.

yn =Σ (Xn  −、&n−+)/ K ・・・
(1,)る。
yn =Σ(Xn-, &n-+)/K...
(1,)ru.

従って、このフィルタの伝達関数は次式で表わされる。Therefore, the transfer function of this filter is expressed by the following equation.

Y(s)=X/ (1十K ・△ts)−・(2)但し
、△tはクロックパルス周期である。
Y(s)=X/(10K·Δts)−(2) However, Δt is the clock pulse period.

従って、入力Xをステップ信号とする場合の出力変化は
次式で表わされる。
Therefore, the output change when input X is a step signal is expressed by the following equation.

y(し)= λ (1−εσ ) 但し、α=X/K・Δtである。y (shi) = λ (1-εσ) However, α=X/K·Δt.

すなわち、−次IIRディジタルフィルタは時定数がK
・Δtの指数関数応答をするので、入力に所定の固定信
号を印加するだけで指数関数的な出力が得られる。
In other words, the -order IIR digital filter has a time constant of K.
・Since the response is an exponential function of Δt, an exponential output can be obtained simply by applying a predetermined fixed signal to the input.

以下、図面を参照して本発明の一実施例を説明する。Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

第1図に、本発明を実施する複写機の光学系走査装置の
電気回路概鴫を示す。第1図を参照して説明する。4は
駆動源となる4相のステッピングモータであり、これの
各励磁コイルはモータ駆動回路MDに接続されている。
FIG. 1 shows a schematic diagram of an electric circuit of an optical system scanning device of a copying machine embodying the present invention. This will be explained with reference to FIG. 4 is a four-phase stepping motor serving as a driving source, and each excitation coil of this stepping motor is connected to a motor drive circuit MD.

モータ4を制御するのがマイクロコンピュータCPUで
ある。この例ではCPUは、マイクロプロセッサユニッ
トMPU、読み書きメモリRAM、動作プログラムデー
タを格納した読み出し専用メモリROM、カウンタおよ
び■/○ポート(出力はラッチ付゛き)で構成されてい
る。
A microcomputer CPU controls the motor 4. In this example, the CPU is comprised of a microprocessor unit MPU, read/write memory RAM, read-only memory ROM storing operating program data, a counter, and ■/○ ports (outputs with latches).

I10ボートの入力端にはホーム位置センサ、往走査限
界位置を検出するリミットスイッチおよび図示しない主
制御装置からの走査開始指示信号出力端が接続されてい
る。I10ボー1−の1つの出力端には、モータ駆動回
路MDの駆動方向指示入力端CW/CCVが接続されて
いる。I10ポートの残りの出力端には一次TIRディ
ジタルフィルタFLTが接続されており、このフィルタ
FLTの出力端に積分レジスタITRが接続されている
。積分レジスタのステップパルス出力端(モータ駆動パ
ルス出力端)は、モータ駆動回路MDのステップパルス
入力端、およびCPUのカウンタに接続されている。
Connected to the input end of the I10 boat are a home position sensor, a limit switch for detecting a forward scan limit position, and an output end for a scan start instruction signal from a main controller (not shown). A drive direction instruction input terminal CW/CCV of the motor drive circuit MD is connected to one output terminal of the I10 baud 1-. A primary TIR digital filter FLT is connected to the remaining output end of the I10 port, and an integration register ITR is connected to the output end of this filter FLT. A step pulse output end (motor drive pulse output end) of the integral register is connected to a step pulse input end of the motor drive circuit MD and a counter of the CPU.

1次IIRディジタルフィルタF L Tを説明すると
、これは第1の全加算器B B 1. 、第2の全加算
器BB2.B2−ジスタBB3および補数回路BB4で
なっている。第1の全加算器BBIは■/○ボートから
の入力データと、速度レジスタBB3の出力データの差
(補数回路BB4により得られる)を出力し、第2の全
加算器BB2は速度レジスタBB3の出力データと、全
加算器BBIの出力データの1/K(この例では後述す
るように1、/16)を加算する。速度レジスタBB3
の出力データは積分レジスタTTRにも出力される。
To explain the first-order IIR digital filter FLT, it consists of a first full adder B B1 . , second full adder BB2. B2-consists of a register BB3 and a complement circuit BB4. The first full adder BBI outputs the difference between the input data from the ■/○ boat and the output data of the speed register BB3 (obtained by the complement circuit BB4), and the second full adder BB2 outputs the difference between the input data from the The output data is added to the output data of the full adder BBI by 1/K (in this example, 1, /16 as described later). Speed register BB3
The output data is also output to the integral register TTR.

速度レジスタBB3は、外部からのクロックパルスCL
K 1により入力データをラッチする。
Speed register BB3 receives external clock pulse CL.
Input data is latched by K1.

積分レジスタITRは、第3の全加算器CCIとレジス
タCC2でなっている。全加算器CCIは、フィルタF
LTからの速度データとレジ久りCC2の出力データと
を加算し、レジスタCC2は外部からのクロックパルス
CLK2により、全加算器CCIの出力データをランチ
する。
The integral register ITR consists of a third full adder CCI and a register CC2. The full adder CCI is a filter F
The speed data from the LT and the output data of the register CC2 are added, and the register CC2 launches the output data of the full adder CCI in response to an external clock pulse CLK2.

第2図に、第1図の−次IIRディジタルフィルタFL
Tおよび積分レジスタ■TRの詳細な構成を示す。第2
図を参照して説明する。A、D]〜AD4が第1の全加
算器BB]、AD5〜AD8が第2の全加算器BB2、
AD9〜AD]3が第3の全加算器CCIである。FF
I〜FF4が、速度レジスタBB3および補数回路F3
B4を構成するフリップフロップであり、FF5〜FF
9がレジスタCC2を構成するフリップフロップである
Figure 2 shows the -order IIR digital filter FL in Figure 1.
The detailed configuration of T and integral register ①TR is shown. Second
This will be explained with reference to the figures. A, D] to AD4 are the first full adders BB], AD5 to AD8 are the second full adders BB2,
AD9 to AD]3 is the third full adder CCI. FF
I to FF4 are speed register BB3 and complement circuit F3
It is a flip-flop that constitutes B4, and FF5 to FF
9 is a flip-flop constituting the register CC2.

ここで使用している全加算器AD I −AD I 3
は、テキサスインスツルメンツ社製の4ビツト全加算器
5N748283であり、フリップフロップFF1〜F
F9は同社製の4ピツ1〜Dタイプフリツプフロツプ5
N74S]75である。全加算器AD1〜AD]3は、
各々A入力端A1〜A4.B入力端B】〜B4.C入力
端CO9加算出力端Σ1〜Σ4およびキャリー出力端c
4を備えており、A入力端、B入力端およびC入力端の
データを加算してΣ出力端に出力し、加U結果がオーバ
フローすると、キャリーが出力される。フリップフロッ
プFFI〜FF9は、D入力端10,20,3D。
Full adder AD I - AD I 3 used here
is a 4-bit full adder 5N748283 made by Texas Instruments, and the flip-flops FF1 to F
F9 is the company's 4-pitch 1-D type flip-flop 5.
N74S]75. The full adders AD1 to AD]3 are
A input terminals A1 to A4, respectively. B input end B] ~B4. C input terminal CO9 addition output terminal Σ1 to Σ4 and carry output terminal c
4, the data at the A input terminal, B input terminal, and C input terminal are added and outputted to the Σ output terminal, and when the addition result overflows, a carry is output. Flip-flops FFI to FF9 have D input terminals 10, 20, and 3D.

4D、Q出力端]、Q、2Q、3Q、4Q、反転出力端
Iζ、2◇、3G、4点、クロックパルス入力端CKを
備えている。この実施例では、最下位桁の全加算器AD
4の最少キャリー人力COを1にセットし、フリップフ
ロップFFI〜FF4の◇出力端を補数回路BB4の出
力端として使用している。
4D, Q output terminals], Q, 2Q, 3Q, 4Q, inverted output terminals Iζ, 2◇, 3G, 4 points, and a clock pulse input terminal CK. In this embodiment, the least significant digit full adder AD
The minimum carry power CO of 4 is set to 1, and the ◇ output terminals of the flip-flops FFI to FF4 are used as the output terminal of the complement circuit BB4.

全加算器BBIは4つの4ビット全加算器ADI〜A、
 D 4を用いて16ビツト構成にしてあり、各々のへ
入力端をCP T、Jの■/○ポートに接続しである。
Full adder BBI consists of four 4-bit full adders ADI~A,
It has a 16-bit configuration using D4, and the input terminals of each are connected to the ■/○ ports of CPT and J.

ADI〜AD4のB入力端は、速度レジスタFFI〜F
F4  (BB3)の対応する桁の反転出力端と接続し
である。全加算器FFI〜FF4の出力端(Σ)は、そ
れぞれ、対応する桁よりも4ビツト下位(1/16)の
、全加算器AD5〜AD8のへ入力端に接続しである。
The B input terminals of ADI to AD4 are speed registers FFI to F.
It is connected to the inverted output terminal of the corresponding digit of F4 (BB3). The output terminals (Σ) of the full adders FFI to FF4 are respectively connected to the input terminals of the full adders AD5 to AD8, which are 4 bits lower (1/16) than the corresponding digit.

AD1の最上位ビットΣ4は、符号ピッI−であるため
、全加算器AD5の全てのへ入力端にも接続して符号を
合わせている。速度レジスタF F 1−F F 4の
Q出力端は全加算器AD5〜AD8の対応する桁のB入
力端に接続し、AD5〜AD8の出力端(Σ)はFFI
〜FF4の対応する桁のD入力端に接続しである。
Since the most significant bit Σ4 of AD1 has a sign of I-, it is also connected to all input terminals of the full adder AD5 to match the signs. The Q output terminals of speed registers FF 1 to FF 4 are connected to the B input terminals of the corresponding digits of full adders AD5 to AD8, and the output terminals (Σ) of AD5 to AD8 are connected to the FFI
- Connected to the D input terminal of the corresponding digit of FF4.

積分レジスタITRは、5つの4ビット全加算器AD9
〜AD1.3で20ビツト構成にしてあり、下位16ビ
ツトのへ入力端にフィルタFLTの出力データを印加す
るように構成しである。AD9〜AD1.3のB入力端
にはレジスタ (フリップフロップ)FF5〜FF9の
Q出力端を接続し、FF5〜FF9のD入力端には、A
、D9〜AD13のΣ出力端を接続しである。また、符
号を合わせるため、最上位ビット(MSB)をAD9の
全てのへ入力端に接続しである。レジスタFF5の出力
端4Qを、モータ駆動パルス(ステップパルス)出力端
として外部に引き出しである。すなわち、FF5の4Q
のレベルが2回変化することにより、ステップパルスが
1つ出力される。
Integral register ITR consists of five 4-bit full adders AD9
~AD1.3 has a 20-bit configuration, and the output data of the filter FLT is applied to the input terminal of the lower 16 bits. The B input terminals of AD9 to AD1.3 are connected to the Q output terminals of registers (flip-flops) FF5 to FF9, and the D input terminals of FF5 to FF9 are connected to the A
, D9 to AD13 are connected to the Σ output terminals. Also, in order to match the signs, the most significant bit (MSB) is connected to all input terminals of AD9. The output end 4Q of the register FF5 is led out to the outside as a motor drive pulse (step pulse) output end. In other words, 4Q of FF5
By changing the level twice, one step pulse is output.

第3図に、第1図のモータ駆動回路MDとモータ4の詳
細を示す。第4図を参照して説明する。
FIG. 3 shows details of the motor drive circuit MD and motor 4 shown in FIG. 1. This will be explained with reference to FIG.

この実施例においては、相励磁分配回路に山洋電fJj
J、のユニバーサルコントローラIC,PMM8713
を使用している。そしてPMM8713の5.6および
7ピンをHにプルアップして4相モータ用の1−2相励
磁のモードを選択しである。出力端Φ1.Φ2.Φ3お
よびΦ4は、それぞれ増幅器を介して電力増幅器AI、
A2.A3およびA4に接続してあり、電力増幅器A1
〜A4の出力端(コレクタ)は、それぞれステッピング
モータ4の励磁コイル4a、4b、4cおよび4dの一
端ルこ接続しである。励磁コイル4a〜4dの他端は互
いに接続して、抵抗Rを介してトランジスタTriのコ
レクタに接続しである。抵抗Rの抵抗値は、各励磁コイ
ル4a〜4dの直流抵抗rの1/J7倍に設定しである
。MC14538はモ1−ローラ製のモノマルチのIC
であり、その入力端(ピン5)はPMM8713のCo
(入力パルスモニタ)に接続してあり、出力端は1−ラ
ンジスタT r 2を介してT r 1に接続しである
。Trlのエミッタ端にはモータ駆動用の直流定電圧+
Vdを印加してあり、Triのコレクタ端にはダイオー
ドD1を介して直流定電圧→−Vh(Vd>Vh)を印
加しである。CP Uが送出する方向指示信号CW/C
CWがCW(時計方向)になり、2MM8713のCk
端にステップパルスが印加されると、各励磁相Φ1〜Φ
4が順次に励磁レベル(H)になり、それに応じて増幅
器A】〜A4の1〜ランジスタがオンする。一方、ステ
ップパルスが入力されると2MM8713はCo端にパ
ルス信号を出力し、それによってMC]4538の出力
端には所定幅のパルス信号が現われる。そのパルス信号
によって、トランジスタT r 2およびTrlは所定
時間だけオンし、増幅器A1〜A4(7)うちオンした
ものに接続された励磁コイル4a〜4dに抵抗Rを介し
て電流が流れる。
In this embodiment, Sanyoden fJj is used in the phase excitation distribution circuit.
J, universal controller IC, PMM8713
are using. Then, pull up pins 5.6 and 7 of the PMM8713 to H to select the 1-2 phase excitation mode for the 4-phase motor. Output end Φ1. Φ2. Φ3 and Φ4 are respectively connected to power amplifier AI,
A2. A3 and A4 are connected to the power amplifier A1
The output ends (collectors) of ~A4 are connected to one end of the excitation coils 4a, 4b, 4c, and 4d of the stepping motor 4, respectively. The other ends of the excitation coils 4a to 4d are connected to each other and to the collector of the transistor Tri via a resistor R. The resistance value of the resistor R is set to 1/J7 times the DC resistance r of each exciting coil 4a to 4d. MC14538 is a monomulti IC made by Molola.
and its input terminal (pin 5) is Co of PMM8713.
(input pulse monitor), and the output end is connected to T r 1 via a 1-transistor T r 2. At the emitter end of TRL, there is a DC constant voltage + for driving the motor.
Vd is applied thereto, and a DC constant voltage ->-Vh (Vd>Vh) is applied to the collector end of Tri via the diode D1. Direction signal CW/C sent by CPU
CW becomes CW (clockwise), Ck of 2MM8713
When a step pulse is applied at the end, each excitation phase Φ1~Φ
4 sequentially becomes the excitation level (H), and accordingly transistors 1 to A4 of amplifiers A to A4 are turned on. On the other hand, when a step pulse is input, the 2MM8713 outputs a pulse signal to the Co terminal, and as a result, a pulse signal of a predetermined width appears at the output terminal of the MC]4538. The pulse signal turns on the transistors T r 2 and Trl for a predetermined period of time, and current flows through the resistor R to the excitation coils 4a to 4d connected to the one of the amplifiers A1 to A4 (7) that is turned on.

第4a図および第4b図に、第2図の1次TIRディジ
タルフィルタF L Tおよび積分レジスタITRの概
略動作タイミングを示す。
4a and 4b show schematic operation timings of the first-order TIR digital filter FLT and the integration register ITR of FIG. 2.

まず第4a図を参照して説明する。全加算器AD1〜A
D4のA入力端に印加される目標速度データがOのとき
は、フィルタF L Tの出力に現われる数値も0にな
る。モータを所定速度Vで駆動する場合、最初から、目
標速度データとしてVに対応する数値をセラ1−する。
First, explanation will be given with reference to FIG. 4a. Full adder AD1~A
When the target speed data applied to the A input terminal of D4 is O, the value appearing at the output of the filter FLT also becomes 0. When driving the motor at a predetermined speed V, a numerical value corresponding to V is set as target speed data from the beginning.

目標速度データがセットされると、フィルタFLTは、
フリップフロップFF1〜FF4に印加されるクロック
パルスCLKIに同期して変化し、この変化はクロック
パルスCL K ]の周期に応じた時定数の指数関数カ
ーブに従う。そして、目標速度■に対応する所定の数値
に収束する。つまり、フィルタF L Tの出力は、一
度目標速度をセラ1−すると、時間の経過に応じて自動
的に所定の数値におちつく。
When the target speed data is set, the filter FLT is
It changes in synchronization with the clock pulse CLKI applied to the flip-flops FF1 to FF4, and this change follows an exponential function curve with a time constant according to the period of the clock pulse CLK]. Then, the speed converges to a predetermined value corresponding to the target speed ■. That is, once the output of the filter FLT reaches the target speed, it automatically settles down to a predetermined value as time passes.

モータを停止させる場合には、目標速度データとしてO
をセラ1−する。すると、フィルタFLTの出力数値は
、クロックパルスCL K ]に同期して指数関数状に
小さくなり、所定時間を経過すると自動的に0におちつ
く。
When stopping the motor, set O as the target speed data.
Sera 1-. Then, the output numerical value of the filter FLT decreases exponentially in synchronization with the clock pulse CL K ], and automatically settles to 0 after a predetermined time has elapsed.

積分レジスタITRは、フリップフロップFF5〜FF
9に印加されるクロックパルスCLK2に同期して、全
加算器AD9〜AD13のA入力端に印加される速度デ
ータを積分し、その結果をフリップフロップFF5〜F
F9の出力端ににセットする。すなわち、たとえば最初
にブリップフロップFF5〜FF9の出力Qのデータが
0である場合にフィルタFLTから5が出力されると、
全加算器AD9〜A、D13の出力端Σには5(5十〇
)が出力され、これが次のタロツクパルス(CLK2)
でフリップフロップFF5〜FF9にセットされる。
Integral register ITR includes flip-flops FF5 to FF.
The speed data applied to the A input terminals of full adders AD9 to AD13 is integrated in synchronization with the clock pulse CLK2 applied to 9, and the result is integrated to the flip-flops FF5 to F.
Set it to the output terminal of F9. That is, for example, if the data of the output Q of the flip-flops FF5 to FF9 is 0 at first, and 5 is output from the filter FLT,
5 (500) is output to the output terminals Σ of full adders AD9 to A and D13, and this is the next tarok pulse (CLK2).
is set in flip-flops FF5 to FF9.

続いてF L Tから7が出力されると、全加算器AD
9〜AD]3の出力端Σには12が現われ、ここで次の
クロックパルス(CLK2)が印加されると、12がフ
リップフロップFF5〜FF9にセットされる。以下同
様にして積分が行なわれ、フリップフロップFF5〜F
 F9出力の数値はしだいに大きくなる。そして、FF
5の4Qのレベルが変化すると、すなわち積分数値の所
定変化毎にモータ駆動パルス(ステップパルス)が出力
される。
Next, when 7 is output from FLT, full adder AD
9-AD] 12 appears at the output terminal Σ of 3, and when the next clock pulse (CLK2) is applied here, 12 is set in the flip-flops FF5-FF9. Integration is performed in the same manner thereafter, and the flip-flops FF5 to F
The value of F9 output gradually increases. And F.F.
When the level of 4Q of No. 5 changes, that is, every time the integral value changes by a predetermined value, a motor drive pulse (step pulse) is output.

積分レジスタITRに印加される数値が小さい間は、1
クロツクパルスに対する積分数値の変化が小さく、従っ
てモータ駆動パルスの出現周期が長い(すなわちモータ
の回転速度が遅い)が、フィルタF L Tの出力数値
が大きくなるに従ってその出現周期が短くなり、モータ
は加速される。F LTの出力数値が収束し一定値にな
ると、1クロツクパルスに対する■ゴRの積分数値の変
化量も一定になり、モータ駆動パルス周期が一定になっ
てモータは定速駆動状態になる。モータを停止させるJ
jJ合も同(羊であり、フィルタFLTの出力数イ直が
指数関数状に小さくなると、それに応じてモータル12
動パルスの出現周期がしだいに小さなくなり、P L、
Tの出力数値すなわち全加算器AD9〜ADI3のΔ入
力が0になると、それ以」二数値が加算されないので積
分出力数値が変化し、なくなり、駆動パルスが現オフれ
なくなる。
1 while the value applied to the integral register ITR is small.
The change in the integral value with respect to the clock pulse is small, so the appearance period of the motor drive pulse is long (that is, the motor rotation speed is slow), but as the output value of the filter FLT increases, the appearance period becomes shorter, and the motor accelerates. be done. When the output value of FLT converges to a constant value, the amount of change in the integral value of GoR with respect to one clock pulse also becomes constant, the motor drive pulse cycle becomes constant, and the motor enters a constant speed drive state. Stop the motor
The same applies to the case of
The period of appearance of the dynamic pulse gradually becomes smaller, and P L,
When the output value of T, that is, the Δ input of the full adders AD9 to ADI3, becomes 0, two values are no longer added, so the integral output value changes and disappears, and the drive pulse no longer turns off.

第5図に、第1図のマイクロコンピュータCP[Iの既
+118動作を示す。第5図を参照して説明する。
FIG. 5 shows the already +118 operation of the microcomputer CP[I of FIG. 1. This will be explained with reference to FIG.

まず、電:原がオンになると、CPUはメモリRAM、
I10ポート・、カウンタ等を初期セット(りリア)す
る。次いで、データ駆動回路M Dの駆動方向指定人力
CW/CCWに接続されたポートをCWレベルにセット
し、1次TIRディジタルフィルタFLTに接続された
出カポ−1−に、速度v1に対応する目標速度データを
セラ1〜する。これで自動的に指数関数カーブに従って
加速が行なわれ、モータ4は往走査駆動を行なう。
First, when the power is turned on, the CPU uses the memory RAM,
Initialize (reset) the I10 port, counters, etc. Next, the port connected to the drive direction specifying human power CW/CCW of the data drive circuit MD is set to the CW level, and the target corresponding to the speed v1 is set to the output capo-1- connected to the primary TIR digital filter FLT. Set the speed data to 1~. Acceleration is then automatically performed according to the exponential curve, and the motor 4 performs forward scanning drive.

カウンタが所定数N1のステップパルスをカウントする
のを待ち、カウントが終了したらフィルタF L Tに
接続されたポー1へに、速度0に対応するデータを七ノ
1〜する。これで自動的に減速が行なわれ、ステップパ
ルスの周期が変化するので、カウンタの内容の変化を見
てモータ停止の有無を判定する。
Wait until the counter counts a predetermined number N1 of step pulses, and when the count is finished, send data corresponding to speed 0 to port 1 connected to filter FLT. This automatically decelerates and changes the cycle of the step pulses, so it is determined whether or not the motor has stopped by looking at changes in the contents of the counter.

モータが停止したら、9度はモータ駆動回路MDの方向
指定入力端のレベルをccwにセラ1へし、フィルタF
 L Tに速度■2のデータをセットして復走査を開始
する。示−入位置センサの出力を監視し、ホーム位置に
達したがどうかをチェックする。ホーム位置を検出した
ら、フィルタF T、Tに速度0のデータをセラ1−シ
てデータが停止するのを待つ。
When the motor stops, the level of the direction specifying input terminal of the motor drive circuit MD is set to ccw at 9 degrees, and the filter F is
Set data for speed 2 in LT and start backward scanning. The output of the input position sensor is monitored to check whether the home position has been reached. When the home position is detected, data with a speed of 0 is sent to the filters FT and T and waits until the data stops.

モータが停止したら、主制御装置から走査開始指示があ
るまで待つ。走査開始指示があったら、モータ駆動回路
MDの走査方向指定久方を往方向CWにセットし、フィ
ルタFLTに目標速度v1に対応するデータをセラ]−
する。これで往走査を開始する。
Once the motor has stopped, wait until the main controller instructs you to start scanning. When a scan start instruction is given, set the scan direction designation side of the motor drive circuit MD to the forward direction CW, and send data corresponding to the target speed v1 to the filter FLT.
do. Now start forward scanning.

カウンタが往走査開始位置から往走査終了位置までのス
テップ数N2のカラン1−を終了するが、もしくけ!!
ミノ1−スイッチがオンになったら、フィルタF L 
Tに速度0に対応するデータをセラl−L、モータ4が
停止するのを待つ。
The counter finishes running 1- for the number of steps N2 from the forward scanning start position to the forward scanning end position. !
Mino 1 - When the switch is turned on, filter F L
Data corresponding to speed 0 is sent to T, and waits until the motor 4 stops.

モータが停止したら、モータ駆動回路MDの方向指定入
力を復走査方向CCWレベルにセットし、フィルタF 
T−Tに目標速度V2 (V2>Vl、) に対応する
データをセットする。これで復走査を開始する。ホー1
1位置センサのd4カレベルを監視し、走査系がホーム
位置に達するのを待つ。
When the motor stops, set the direction designation input of the motor drive circuit MD to the backward scanning direction CCW level, and
Data corresponding to the target speed V2 (V2>Vl,) is set in T-T. Now start backward scanning. Ho 1
1 Monitor the d4 level of the position sensor and wait for the scanning system to reach the home position.

走査系がホーム位置に達したら、フィルタFLTに速度
0のデータをセットして、モータが停止するのを待つ。
When the scanning system reaches the home position, set zero speed data in the filter FLT and wait for the motor to stop.

モータが停止したら、再度走査開始指示の有無をチェッ
クして、以上の動作を繰り返す。
Once the motor has stopped, check again to see if there is an instruction to start scanning, and repeat the above operations.

」二記実施例においては、積分レジスタITRの所定ビ
ットの出力を直接、モータ駆動パルス出力としているが
、クロックパルス発生時に積分出力データを記憶する回
路を設けて、この記憶値と積分出力データとの差が所定
値になったら次のステップパルスを発生するように構成
してもよい。
In the second embodiment, the output of the predetermined bit of the integral register ITR is directly used as the motor drive pulse output, but a circuit is provided to store the integral output data when a clock pulse is generated, and this stored value and the integral output data are combined. The next step pulse may be generated when the difference between the two reaches a predetermined value.

また、実施例ではフィルタFLTに印加するクロックパ
ルスCL K 1、および積分レジスタITRに印加す
るクロックパルスCLK2について特別な説明はしてな
いが、発振器の出力に分周比を変えうる分周器を接続し
て、モータの目標速度に応じてCL K 1および/又
はCI−K 2の周期を変え、指数関数カーブの時定数
を変えるようにしてもよい。
In addition, although no special explanation is given regarding the clock pulse CLK1 applied to the filter FLT and the clock pulse CLK2 applied to the integration register ITR in the embodiment, a frequency divider capable of changing the frequency division ratio is provided for the output of the oscillator. The period of CL K 1 and/or CI-K 2 may be changed in accordance with the target speed of the motor, thereby changing the time constant of the exponential function curve.

更に、実施例ではステッピングモータを駆動する場合に
ついて説明したが、直流サーボモータにロータリーエン
コーダ等を接続して、検出したモータ位置に応じて駆動
パルスを発生する方式の制御装置でも、同様に本発明を
実施しうる。
Furthermore, although the embodiment describes the case of driving a stepping motor, the present invention can be applied to a control device that connects a rotary encoder or the like to a DC servo motor and generates drive pulses according to the detected motor position. can be carried out.

なお、実施例では第1の全加算器ADI〜AD4の出力
を]、 / ] 6 L、たちのを第2の全加算器AD
5〜AD8を印加しているが、この係数(I<)は任意
に定めうる。ただし構成を簡貼にするためには、Kを2
の1音数とするのが好ましい。
In the embodiment, the outputs of the first full adders ADI to AD4 are ], / ] 6 L, and the outputs of the second full adders AD
5 to AD8 is applied, but this coefficient (I<) can be arbitrarily determined. However, in order to simplify the configuration, set K to 2.
It is preferable that the number is one note.

(■効果 以上のとおり本発明によれば、多数の速度データをメモ
リに記憶させておく必要がなく、しかも1つの速度デー
タを1度セソ1−すれば自動的に指数関数状に速度が制
御されるので、制御が簡q1であり、装置構成が111
純になる。
(■Effects As described above, according to the present invention, there is no need to store a large number of speed data in memory, and moreover, by resetting one speed data once, the speed is automatically controlled in an exponential manner.) Therefore, the control is simple q1 and the device configuration is 111.
Become pure.

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

第1図は、本発明を実施する複写機の光学系走査装置の
電気回路概略構成を示すブロック図である。 第2図は、第1図の一次TIRディジタルフィルタF 
L、Tおよび積分レジスタITRの詳細な構成を示すブ
ロック図である。 第3図は、第1図のモータ駆動回路MDを詳細に示すブ
ロック図である。 第4a図および第4b図は、それぞれ−次IIRディジ
タルフィルタF L Tの概略動作、および積分レジス
タTTRの概略動作を示すタイミングチャートである。 第5図は、第1図のマイクロコンピュータCPUの概略
動作を示すフローチャー1−である。 4ニスチツピングモータ cpu :マイクロコンピュータ(目標速度出力手段)
FLTニー次■IRディジタルフィルタTTR:積分レ
ジスタ(積分回路) MD:モータドライバ ADI〜AD13:4ビツト全加算器 FFI〜FF9 : 4ピッI−DフリップフロップA
1−A4:電力増幅器
FIG. 1 is a block diagram showing a schematic configuration of an electric circuit of an optical system scanning device of a copying machine embodying the present invention. FIG. 2 shows the first-order TIR digital filter F shown in FIG.
FIG. 2 is a block diagram showing a detailed configuration of L, T and an integral register ITR. FIG. 3 is a block diagram showing the motor drive circuit MD of FIG. 1 in detail. FIGS. 4a and 4b are timing charts showing the general operation of the -order IIR digital filter FLT and the general operation of the integration register TTR, respectively. FIG. 5 is a flowchart 1- showing a schematic operation of the microcomputer CPU of FIG. 4 chipping motor CPU: Microcomputer (target speed output means)
FLT knee-order ■IR digital filter TTR: Integral register (integrator circuit) MD: Motor driver ADI to AD13: 4-bit full adder FFI to FF9: 4-bit I-D flip-flop A
1-A4: Power amplifier

Claims (1)

【特許請求の範囲】 二値情報の組合せでなる目標速度データを保持する目標
速度出力手段; 前記目標速度出力手段の出力に接続された、−次TIR
ディジタルフィルタ; 前記−次IIRディジタルフィルタの出力情報を積分し
、積分出力の所定変化毎にモータ駆動パルスを出力する
、積分回路;および 前記積分回路の出力パルスに応じてモータを駆動するモ
ータドライバ; を備えるモータ制御装置。
[Claims] Target speed output means for holding target speed data consisting of a combination of binary information; -th TIR connected to the output of the target speed output means;
a digital filter; an integrating circuit that integrates the output information of the -order IIR digital filter and outputs a motor driving pulse every predetermined change in the integrated output; and a motor driver that drives the motor in accordance with the output pulse of the integrating circuit; A motor control device comprising:
JP21764982A 1982-12-10 1982-12-10 Control device for motor Pending JPS59106899A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21764982A JPS59106899A (en) 1982-12-10 1982-12-10 Control device for motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21764982A JPS59106899A (en) 1982-12-10 1982-12-10 Control device for motor

Publications (1)

Publication Number Publication Date
JPS59106899A true JPS59106899A (en) 1984-06-20

Family

ID=16707562

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21764982A Pending JPS59106899A (en) 1982-12-10 1982-12-10 Control device for motor

Country Status (1)

Country Link
JP (1) JPS59106899A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997010642A1 (en) * 1995-09-11 1997-03-20 Ivac Holdings, Inc. Open-loop step motor control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997010642A1 (en) * 1995-09-11 1997-03-20 Ivac Holdings, Inc. Open-loop step motor control system
EP1178599A1 (en) * 1995-09-11 2002-02-06 Alaris Medical Systems, Inc. Open-loop step motor control system

Similar Documents

Publication Publication Date Title
US4518900A (en) Pulse motor driving apparatus
EP0123849B1 (en) Disk storage file with a four phase, single phase drive stepping motor
JPH0526439B2 (en)
JPS59106899A (en) Control device for motor
US5040234A (en) Apparatus for and method of generating a timing signal
US5278481A (en) Control of stepping motors
JPH1141989A (en) Drive gear for stepping motor and monitor camera system using it
JPS5921118B2 (en) Shift register and method of driving a motor using it
JPS6295994A (en) Control method of access of disk drive
JPH06141584A (en) Spindle motor controller
JPH03261866A (en) Speed detection circuit
JPH063441Y2 (en) Differential output circuit for actuator drive
JP2581289B2 (en) Index pulse generation circuit
JP2638855B2 (en) Motor speed control device
JPH08156328A (en) Timing control device
JPS5967897A (en) Drive controller for stepping motor
SU535751A1 (en) Device for managing the registration of information
JP2674409B2 (en) Magnetic recording / reproducing device
JPS5932238Y2 (en) Pulse motor rotation axis position detection device
JPH1198892A (en) Pulse motor driver
JPH0642233Y2 (en) Clock correction mechanism
JPH03155396A (en) Motor controller
JP2674414B2 (en) Magnetic recording / reproducing device
JPH09322579A (en) Speed control signal generation circuit of motor
SU1352463A1 (en) Device for programmed control of step motor