JPH0441329B2 - - Google Patents

Info

Publication number
JPH0441329B2
JPH0441329B2 JP58026847A JP2684783A JPH0441329B2 JP H0441329 B2 JPH0441329 B2 JP H0441329B2 JP 58026847 A JP58026847 A JP 58026847A JP 2684783 A JP2684783 A JP 2684783A JP H0441329 B2 JPH0441329 B2 JP H0441329B2
Authority
JP
Japan
Prior art keywords
time
control
motor
speed
mode
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
JP58026847A
Other languages
Japanese (ja)
Other versions
JPS59152435A (en
Inventor
Yoshikazu Ikenoe
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.)
Minolta Co Ltd
Original Assignee
Minolta 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 Minolta Co Ltd filed Critical Minolta Co Ltd
Priority to JP58026847A priority Critical patent/JPS59152435A/en
Publication of JPS59152435A publication Critical patent/JPS59152435A/en
Publication of JPH0441329B2 publication Critical patent/JPH0441329B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B27/00Photographic printing apparatus
    • G03B27/32Projection printing apparatus, e.g. enlarger, copying camera
    • G03B27/52Details
    • G03B27/522Projection optics
    • G03B27/525Projection optics for slit exposure
    • G03B27/526Projection optics for slit exposure in which the projection optics move

Landscapes

  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • General Physics & Mathematics (AREA)
  • Optical Systems Of Projection Type Copiers (AREA)
  • Stopping Of Electric Motors (AREA)
  • Control Of Direct Current Motors (AREA)
  • Exposure Or Original Feeding In Electrophotography (AREA)

Description

【発明の詳細な説明】 技術分野 本発明は複写機等における走査系を直流モータ
で往復動させる走査装置に関する。
TECHNICAL FIELD The present invention relates to a scanning device in which a scanning system in a copying machine or the like is reciprocated by a DC motor.

従来技術 近年、複写機の機能は増々高速化を要求されて
おり、特に、縮小複写機能を有する複写機の走査
系は複写紙搬送速度等に比べてより一層の高速化
が要求される。このために、従来のメインモータ
の駆動力をクラツチを介して伝達する方式にかえ
て直流モータによるオンオフ制御方式が提案され
ている。
BACKGROUND ART In recent years, the functions of copying machines have been required to be faster and faster, and in particular, the scanning system of a copying machine having a reduction copying function is required to be faster than copy paper conveyance speed. To this end, an on/off control system using a DC motor has been proposed in place of the conventional system of transmitting the driving force of a main motor via a clutch.

直流モータの制御は一定時間或いは一定回転数
の間のオン時間を制御して速度を得るものであ
る。このオンオフ制御は測定された速度とマイク
ロコンピユータのメモリに記憶された数値にもと
づいた演算によりおこなわれるが、定速制御時は
まだしも、起動時、制動時、方向転換時の速度が
変化している時はスムーズは速度変化を達成する
ためには大量の制御データを記憶しておかなけれ
ばならず、またそれらの制御データによる制御も
非常に複雑なものになるという欠点を有してい
た。スムーズな加減速制御は走査系に極力衝撃を
与えないために是否とも必要とされる。走査系に
与える衝撃が少ない程予備移動距離も短縮でき、
走査系を軽量コンパクトなものにするとができ、
ひいては高速化を達成できるからである。
The control of a DC motor is to obtain the speed by controlling the on time for a certain period of time or a certain number of revolutions. This on/off control is performed by calculations based on the measured speed and numerical values stored in the memory of the microcomputer, but while it is not constant speed control, the speed changes during startup, braking, and direction change. Time Smooth has the disadvantage that a large amount of control data must be stored in order to achieve speed changes, and control using such control data is also extremely complex. Smooth acceleration/deceleration control is essential in order to minimize impact on the scanning system. The smaller the impact on the scanning system, the shorter the preliminary travel distance.
The scanning system can be made lightweight and compact,
This is because speeding up can be achieved.

目的・要旨 本発明はこのような点に鑑みてなされたもの
で、大量の記憶容量、複雑な制御を要することな
くスムーズな加減速制御をおこなうことのできる
直流モータの制御方式を用いた走査装置を提供す
ることを目的とする。
Purpose/Summary The present invention was made in view of the above points, and provides a scanning device using a DC motor control method that can perform smooth acceleration/deceleration control without requiring a large amount of storage capacity or complicated control. The purpose is to provide

上記目的は、前記直流モータの回転に応じてパ
ルスを発生するパルス発生手段と、前記パルス発
生手段がパルスを発生する毎に所定時間の計時を
する計時手段と、加速時又は減速時における前記
直流モータへの通電を、前記計時手段が所定時間
を計時する間オフし、所定時間経過後から次のパ
ルスが発生するまでの間オンするように制御する
制御手段とによつて達成される。
The above object includes a pulse generating means that generates a pulse according to the rotation of the DC motor, a timing means that measures a predetermined time each time the pulse generating means generates a pulse, and a DC motor that generates a pulse during acceleration or deceleration. This is achieved by a control means that controls the power supply to the motor to be turned off while the timer measures a predetermined time, and to be turned on from the time the predetermined time elapses until the next pulse is generated.

前記パルスの間隔は、走査系の速度が遅いとき
は長く、走査系の速度が速くなると短くなる。従
つて、一定のオフ時間を定め残余をオン時間とす
れば、走査系の速度が遅いときはオン時間は長く
速度が速くなるとオン時間は短くなるので、加速
時においては低速度は加速度が大きく定速制御速
度に近づくに従つて加速度が小さくなり、減速時
においては高速時は制動力が小さく低速になるに
従つて大きな制動力を与えることができる。
The interval between the pulses is longer when the speed of the scanning system is slow, and becomes shorter when the speed of the scanning system is faster. Therefore, if we set a constant off time and use the remaining on time, when the speed of the scanning system is slow, the on time will be longer and when the speed is faster, the on time will be shorter, so when accelerating, the acceleration will be large at low speeds. As the speed approaches the constant control speed, the acceleration decreases, and during deceleration, the braking force is small at high speeds, and as the speed becomes low, a large braking force can be applied.

実施例 以下、本発明に係る走査装置の一実施例を添付
図面に従つて説明する。本実施例は電子写真複写
機に適用したもので、第1図において、1は照明
系を含んだ走査系、2は直流モータで、走査系1
はこの直流モータ2にて往復動、即ち矢印A方向
に往動、逆方向に復動される。3はエンコーダ
で、直流モータ2の回転軸に設置され、その回転
数に比例したパルスを発生する。
Embodiment Hereinafter, an embodiment of a scanning device according to the present invention will be described with reference to the accompanying drawings. This embodiment is applied to an electrophotographic copying machine, and in FIG. 1, 1 is a scanning system including an illumination system, 2 is a DC motor, and scanning system 1
is reciprocated by this DC motor 2, that is, forward in the direction of arrow A and backward in the opposite direction. 3 is an encoder, which is installed on the rotating shaft of the DC motor 2 and generates pulses proportional to the number of rotations thereof.

4はホームスイツチであり、走査系1がホーム
ポジシヨン(走査開始位置)にあることを検出す
る。この検出信号により走査開始時に走査系1が
ホームポジシヨンにないことが検出されると走査
系1をホームポジシヨンに戻す制御がおこなわれ
る。5はブレーキスイツチで、リターン時に走査
系1が所定位置に達したことを検出し、後述する
フローチヤートでリターン時の制動開始の信号と
して用いられる。
A home switch 4 detects that the scanning system 1 is at the home position (scanning start position). When it is detected by this detection signal that the scanning system 1 is not at the home position at the start of scanning, control is performed to return the scanning system 1 to the home position. A brake switch 5 detects that the scanning system 1 has reached a predetermined position during the return, and is used as a signal to start braking during the return in the flowchart described later.

第2図は、前記直流モータ2を制御するための
スイツチング回路を示し、該図において直流電源
Eはブリツジ接続されたトランジスタTr1〜Tr4
を介して直流モータ(2)に接続され、ダイオード
D1〜D4が逆起電圧のバイパスを形成するために
各トランジスタTr1〜Tr4と並列に接続されてい
る。
FIG. 2 shows a switching circuit for controlling the DC motor 2, and in this figure, the DC power supply E is connected to bridge-connected transistors Tr 1 to Tr 4 .
connected to the DC motor (2) through the diode
D 1 to D 4 are connected in parallel with each transistor Tr 1 to Tr 4 to form a bypass for back electromotive voltage.

入力端子9aは正転信号“H”、逆転信号“L”
が入力されるもので、アンドゲートAND1の入力
側及びトランジスタTr1のベースに接続されると
ともに、インバータIを介してアンドゲート
AND2の入力側及びトランジスタTr3のベースに
接続されている。いまひとつの入力端子9bはオ
ン信号“H”、オフ信号“L”が入力されるもの
で、アンドゲードAND1,AND2の入力側に接続
されている。
Input terminal 9a receives forward rotation signal “H” and reverse rotation signal “L”
is input, and is connected to the input side of AND gate AND 1 and the base of transistor Tr 1 , and is connected to the AND gate through inverter I.
Connected to the input side of AND 2 and the base of transistor Tr 3 . The other input terminal 9b receives an on signal "H" and an off signal "L", and is connected to the input sides of the AND gates AND1 and AND2 .

また、マンドゲートAND1の出力側はトランジ
スタTr2のベースに、アンドゲートAND2の出力
側はトランジスタTr4のベースに接続されてい
る。
Further, the output side of the mand gate AND 1 is connected to the base of the transistor Tr 2 , and the output side of the AND gate AND 2 is connected to the base of the transistor Tr 4 .

次に本発明の原理生命を第2図の回路の動作を
おっておこなう。原理説明のために走査系1の移
動を、第3図イに示すように、定速制御の往動か
ら減速して方向転換し加速して定速制御の往動に
連続的に移行する場合を例にとる。
Next, the principle of the present invention will be implemented through the operation of the circuit shown in FIG. To explain the principle, the movement of the scanning system 1 is as shown in Fig. 3A, when the movement of the scanning system 1 is continuously shifted from forward movement under constant speed control to deceleration, direction change, acceleration, and forward movement under constant speed control. Take for example.

定速スキヤンでは、入力端子9aは“H”、入
力端子9bはエンコーダ2からのパルスの測定に
もとづきオンオフ制御される。このとき入力端子
9bが“H”のときはトランジスタTr2とTr3
がオンしており直流電源Eからの電流は第2図a
方向に流れ、直流モータ2を往動方向に駆動す
る。
In the constant speed scan, the input terminal 9a is "H" and the input terminal 9b is controlled to be turned on or off based on the measurement of pulses from the encoder 2. At this time, when the input terminal 9b is "H", transistors Tr 2 and Tr 3 are on, and the current from the DC power supply E is as shown in Figure 2a.
direction, driving the DC motor 2 in the forward direction.

次に、往動方向で減速中の場合は、制動力を与
えるため入力端子9aは“L”に切換えられ、入
力端子9bは本発明の制御方式でオンオフ制御さ
れる。即ち、直流モータ2の回転に応じて発生さ
れるエンコーダパルス毎に一定のオフ時間を設定
し、次のエンコーダパルスまでをオン時間として
制御するのである。
Next, when the vehicle is decelerating in the forward direction, the input terminal 9a is switched to "L" in order to apply a braking force, and the input terminal 9b is controlled on and off by the control method of the present invention. In other words, a constant off time is set for each encoder pulse generated in response to the rotation of the DC motor 2, and the on time is controlled until the next encoder pulse.

入力端子9aが“L”で入力端子9bが“L”
の状態では、第2図でトランジスタTr1のみがオ
ンしている。走査系1は往動方向に移動している
ので、この移動によるモーター軸の回転で直流モ
ータ2ダイオードD3トランジスタTr1の閉ループ
で矢印b方向の逆起電圧が発生し往動方向の回転
に制動を与える。以下、この逆起電圧による制動
を回生ブレーキという。一方、入力端子9aが
“L”で入力端子9bが“H”の状態では、トラ
ンジスタTr1とTr4がオンし、直流電源Eの電流
は矢印b方向に流れ、直流モータ2を復動方向に
回転させようとする。この走査系1の移動方向と
反対方向に回転させて制動を与える場合を以下強
制ブレーキという。
Input terminal 9a is “L” and input terminal 9b is “L”
In the state shown in FIG. 2, only the transistor Tr 1 is turned on. Since the scanning system 1 is moving in the forward direction, the rotation of the motor shaft due to this movement generates a back electromotive force in the direction of arrow b in the closed loop of the DC motor 2 diode D 3 transistor Tr 1 , which causes the rotation in the forward direction. provide braking. Hereinafter, braking using this back electromotive force will be referred to as regenerative braking. On the other hand, when the input terminal 9a is "L" and the input terminal 9b is "H", transistors Tr 1 and Tr 4 are turned on, and the current of the DC power supply E flows in the direction of arrow b, causing the DC motor 2 to move in the backward direction. Try to rotate it. The case in which braking is applied by rotating the scanning system 1 in the opposite direction to the moving direction is hereinafter referred to as forced braking.

第3図イに戻つて、減速の最初は、エンコーダ
パルスの間隔は設定されたオフ時間より短いの
で、回生ブレーキのみが働く。この回生ブレーキ
の比較的弱い制動力により走査系1は徐々に減速
され、エンコーダパルス間隔がオフ時間よりも長
くなると、回生ブレーキとともに強制ブレーキも
働き、強い制動力で減速をおこなう(第3図ロ,
ハ参照)。
Returning to FIG. 3A, at the beginning of deceleration, the interval between encoder pulses is shorter than the set off time, so only regenerative braking is activated. The scanning system 1 is gradually decelerated by the relatively weak braking force of this regenerative brake, and when the encoder pulse interval becomes longer than the off time, the forced brake also works together with the regenerative brake, decelerating with a strong braking force (Figure 3, bottom). ,
(see c).

このように当初は弱い制動力を与え徐々に制動
力を強めていくため非常にスムーズに減速するこ
とができる。
In this way, a weak braking force is initially applied and the braking force is gradually strengthened, making it possible to decelerate very smoothly.

ちなみに、出願人の従来の提案では第3図に点
線で示すように、最初は回生ブレーキのみ(図中
O点からA点まで)、次に強制ブレーキのみ(図
中A点からB点まで)としていたが、回生ブレー
キは速度が低下するにつれ制動力が弱くなるので
減速に要する時間が長くなつてしまう。一方、こ
れに比べて本発明の方式では充分短時間のうちに
減速をおこなうことができる。
By the way, in the applicant's previous proposal, as shown by the dotted line in Figure 3, first only regenerative braking (from point O to point A in the diagram), then only forced braking (from point A to point B in the diagram) However, with regenerative braking, the braking force becomes weaker as the speed decreases, so it takes longer to decelerate. On the other hand, compared to this, the system of the present invention can perform deceleration in a sufficiently short time.

減速が終了すると走査系1は復動方向に加速さ
れる。このときの回路状態は上記の減速時の状態
と全く同じであり、ただ走査系1の実際の移動方
向が異なるだけである。従って上記の入力端子9
aが“L”で入力端子9bが“H”の状態は強制
的に駆動力を与え、入力端子9aが“L”で入力
端子9bが“L”の状態は慣性移動の状態とな
る。
When the deceleration ends, the scanning system 1 is accelerated in the backward movement direction. The circuit state at this time is exactly the same as the state during deceleration described above, only the actual moving direction of the scanning system 1 is different. Therefore, the above input terminal 9
When a is "L" and the input terminal 9b is "H", a driving force is forcibly applied, and when the input terminal 9a is "L" and the input terminal 9b is "L", it is a state of inertial movement.

加速の初期はエンコーダパスルの間隔が長いた
め直流モータ2のオン時間も長く強い通電トルク
によつて強力に加速される。そして、速度が定速
制御速度に近づくに従つてパルス間隔は短くなつ
て加速力は徐々に弱くなる。従つて、加速時にお
いても本発明の制御方式は非常にスムーズな加速
をおこなうことができる。
At the beginning of acceleration, the interval between encoder pulses is long, so the ON time of the DC motor 2 is also long, and the powerful acceleration is caused by the strong current torque. As the speed approaches the constant speed control speed, the pulse interval becomes shorter and the acceleration force gradually becomes weaker. Therefore, even during acceleration, the control system of the present invention can perform very smooth acceleration.

このように本発明の制御方式は、減速、加速及
び方向転換時の減速から加速への連続的移行の全
てにおいてスムーズな速度変化を簡単な制御で得
ることができる。尚、上記の説明は走査開始位置
からの加速、復動から往動への方向転換及び走査
開始位置で停止する際の減速にも適用できること
は明らかである。
As described above, the control system of the present invention can obtain smooth speed changes with simple control in all of deceleration, acceleration, and continuous transition from deceleration to acceleration when changing direction. It is clear that the above description can also be applied to acceleration from the scan start position, direction change from backward movement to forward movement, and deceleration when stopping at the scan start position.

第4図は走査系の移動を制御するための制御回
路のブロツク図であり、該図において20は走査
系制御用のマイクロコンピユータである。複写機
は走査系以外にも種々の制御対象を有するが、こ
れらはマクタと以下呼称する図示しないマイクロ
コンピユータで制御される。
FIG. 4 is a block diagram of a control circuit for controlling the movement of the scanning system, and in this figure, 20 is a microcomputer for controlling the scanning system. The copying machine has various control objects in addition to the scanning system, and these are controlled by a microcomputer (not shown) hereinafter referred to as a macrocomputer.

マイクロコンピユータ20は、セントラルプロ
セシングユニツトCPU、リードオンリーメモリ
ROM、ランダムアクセスメモリRAM、入力ポ
ートINPUT、出力ポートOUTPUT、カウンタ
Tf、タイマレジスタTwから構成され、INPUT
には前記マスタらの制御要求信号MAG,
SCAN,BRAKEが入力される。信号MAGは選
択された倍率を示し、この信号により走査速度が
設定される。信号SCANは“1”で往動を“0”
で復動を指示する。信号BRAKEは走査系1が復
動時ブレーキスイツチ5をオンする間“1”にな
るものである。
The microcomputer 20 has a central processing unit CPU and a read-only memory.
ROM, random access memory RAM, input port INPUT, output port OUTPUT, counter
Consists of Tf, timer register Tw, INPUT
is the control request signal MAG from the masters,
SCAN and BRAKE are input. Signal MAG indicates the selected magnification and sets the scanning speed. Signal SCAN is “1” and forward movement is “0”
to instruct return movement. The signal BRAKE becomes "1" while the scanning system 1 turns on the brake switch 5 during backward movement.

OUTPUTからはモータ駆動信号D正逆転信号
Fが第2図に示したスイツチング回路21に出力
され、これにより直流モータ2の制御がおこなわ
れる。
From OUTPUT, a motor drive signal D and a forward/reverse rotation signal F are outputted to a switching circuit 21 shown in FIG. 2, whereby the DC motor 2 is controlled.

CUPは2つの割込み端子を有しており、一方
の端子にはエンコーダ3の出力を波形整形回路2
2で整形したエンコーダパルスが入力される。他
方の端子はタイマレジスタTwと接続されてお
り、タイマレジスタTwには後述するフローチヤ
ートで説明するタイマ値Twが設定されている。
タイマレジスアTwはこのタイマ値Twと、外部
基準発振器23の基準パルスをカウントするカウ
ンタTfの基準時刻Tfとを比較して両者が一致す
るとCPUに割込み信号を入力する。
CUP has two interrupt terminals, and one terminal receives the output of the encoder 3 from the waveform shaping circuit 2.
The encoder pulse shaped in step 2 is input. The other terminal is connected to a timer register Tw, and a timer value Tw, which will be explained in the flowchart described later, is set in the timer register Tw.
The timer register Tw compares this timer value Tw with a reference time Tf of a counter Tf that counts reference pulses from the external reference oscillator 23, and when the two match, inputs an interrupt signal to the CPU.

第5図A,B,Cはマイクロコンピユータ20
の制御を説明するフローチヤートであり、第5図
Aがメインルーチンを、第5図Bがタイマレジス
タTwによるタイマ割込みINT−Tのルーチン
を、第5図Cがエンコーダパルスによる外部割込
みINT−Eのルーチンを示している。
Figure 5 A, B, and C are microcomputers 20
FIG. 5A is a flowchart explaining the control of the main routine, FIG. 5B is a routine for timer interrupt INT-T by timer register Tw, and FIG. 5C is a flowchart for explaining external interrupt INT-E by encoder pulse. shows the routine.

まず、第5図Aのメインルーチンを説明する
に、ステツプでリセツトがかかるとステツプ
でモータ駆動信号Dを“0”にする。D=0は第
2図のスイツチング回路で入力端子9bが“L”
の状態に対応し、D=1は“H”の状態に対応す
る。
First, to explain the main routine of FIG. 5A, when a reset is applied in step, the motor drive signal D is set to "0" in step. When D=0, the input terminal 9b is “L” in the switching circuit shown in Figure 2.
D=1 corresponds to the "H" state.

次にステツプでマスタから走査要求があるま
で待機し、走査要求が出ると(SCAN=1)ステ
ツプで複写倍率MAGの入力し、ステツプで
複写倍率に対応した走査速度を制御するための基
準エンコーダパルス間隔Tsを計算する。この基
準エンコーダパルス間隔Tsはあらかじめ設定さ
れた等倍時のエンコーダパルス間隔Toに複写倍
率を乗じることにより得られる。
Next, the step waits until there is a scanning request from the master, and when the scanning request is issued (SCAN = 1), the copying magnification MAG is input in the step, and the reference encoder pulse is applied to control the scanning speed corresponding to the copying magnification. Calculate the interval Ts. This reference encoder pulse interval Ts is obtained by multiplying a preset encoder pulse interval To at equal magnification by a copying magnification.

続いてステツプで正逆転信号Fを“1”にす
る。F=1は第2図のスイツチング回路で入力端
子9aが“H”の状態に対応し、F=0は“L”
の状態に対応する。
Subsequently, in a step, the forward/reverse rotation signal F is set to "1". F=1 corresponds to the state in which the input terminal 9a is "H" in the switching circuit shown in FIG. 2, and F=0 corresponds to the "L" state.
corresponds to the state of

これに続いてステツプでモータ駆動信号Dを
“1”にすることにより走査系1は往動を開始す
る。ステツプではエンコーダパルスと割込みル
ーチンとの同期をとるためのカウンタSYNCに
“2”をセツトし、割込みルーチンでの処理モー
ドを加速制御モード(MODE=1)にセツトし、
続くステツプで割込みを許可する。この割込み
の許可から走査系の制御は割込みルーチンで処理
され、メインルーチンでは走査要求SCANが
“0”になるまでステツプで待機する。そして
この間に本発明の制御方式による加速制御及び通
常の定速制御がおこなわれる。SCAN=1の時間
は複写紙サイズ、複写倍率によつてマスタ側で決
められる。
Following this, the scanning system 1 starts forward movement by setting the motor drive signal D to "1" in a step. In this step, the counter SYNC for synchronizing the encoder pulse and the interrupt routine is set to "2", the processing mode in the interrupt routine is set to acceleration control mode (MODE = 1),
Enable interrupts in the next step. Control of the scanning system from permission of this interrupt is processed by the interrupt routine, and the main routine waits in steps until the scan request SCAN becomes "0". During this time, acceleration control and normal constant speed control based on the control method of the present invention are performed. The time for SCAN=1 is determined by the master side depending on the copy paper size and copy magnification.

SCAN=0になると、ステツプで速度測定モ
ード(MODE=0)をセツトし、ステツプで
モータ駆動信号をオフし、ステツプで正逆転信
号を逆転(F=0)にする。割込み処理を一時速
度測定のみのモードに切換えるのは、一度割込み
処理を中断すると、次の割込み処理のとき再びエ
ンコーダパルスとの同期を取らなければならない
ので制御に遅れが生じるからである。
When SCAN=0, the speed measurement mode (MODE=0) is set in step, the motor drive signal is turned off in step, and the forward/reverse signal is set in reverse (F=0) in step. The reason why the interrupt processing is switched to the temporary speed measurement only mode is that once the interrupt processing is interrupted, synchronization with the encoder pulse must be achieved again in the next interrupt processing, which causes a delay in control.

ステツプに続いてステツプでは減速制御モ
ード(MODE=2)がセツトされ、割込みルー
チンにて本発明による減速制御がおこなわれる。
割込みルーチンではさらに減速が完了するとモー
タをオン状態にして速度測定モードをセツトす
る。速度測定モードは速度制御をおこなわないの
で走査系フルパワーで往動される。この間メイン
ルーチンは待機しており、マスタから制動要求
(BRAKE=1)が出されると(ステツプ)、ス
テツプでモータをオフし、正逆転信号Fを正転
(F=1)に切換え、ステツプで減速制御モー
ド(MODE=2)をセツトし、モードが速度測
定モード(MODE=0)になるまで待機する
(ステツプ)。
Following the step, a deceleration control mode (MODE=2) is set in a step, and deceleration control according to the present invention is performed in an interrupt routine.
In the interrupt routine, when deceleration is completed, the motor is turned on and the speed measurement mode is set. In the speed measurement mode, speed control is not performed, so the scanning system is moved forward at full power. During this time, the main routine is on standby, and when a braking request (BRAKE = 1) is issued from the master (step), the motor is turned off, the forward/reverse signal F is switched to forward rotation (F = 1), and the motor is turned off (step). Set the deceleration control mode (MODE=2) and wait until the mode changes to the speed measurement mode (MODE=0) (step).

速度測定モードがセツトされると、ステツプ
で割込みを禁止してステツプでモータをオフし
てステツプに戻る。
When the speed measurement mode is set, interrupts are disabled in step, the motor is turned off in step, and the process returns to step.

このようにメインルーチンの制御は極めてシン
プルな制御となつている。
In this way, the control of the main routine is extremely simple.

第5図Bはタイマ割込みルーチンINT−Tを
示し、このルーチンは外部割込みルーチンINT
−Eで設定されるタイマ値Twのタイムアツプ毎
にメインルーチンに割込みをかけて処理させる。
FIG. 5B shows the timer interrupt routine INT-T, which is the external interrupt routine INT-T.
Each time the timer value Tw set by -E expires, the main routine is interrupted and processed.

タイマ割込みがかかると、まずステツプでオ
ンオフフラグONOFFの状態を判別する。オンオ
フフラグONOFFは外部割込みルーチンで設定さ
れるフラグであり、ONOFF=1の場合はステツ
プでモータ駆動信号DをD=0にする。一方、
ONOFF=0の場合はステツプでモータ駆動信
号DをD=1にする。
When a timer interrupt occurs, the first step is to determine the ON/OFF state of the on/off flag. The on-off flag ONOFF is a flag set in an external interrupt routine, and if ONOFF=1, the motor drive signal D is set to D=0 in a step. on the other hand,
If ONOFF=0, set the motor drive signal D to D=1 in step.

原理説明で言及したように、定速制御はエンコ
ーダパルス間隔の間のオン時間を制御し、本発明
に係わる制御ではエンコーダパルス間隔の間で一
定のオフ時間を設定するものである。従つて、定
速制御ではオンオフフラグはONOFF=1にされ
ており、設定されたオン時間の経過後タイマ割込
みによりステツプでモータをオフする。
As mentioned in the explanation of the principle, constant speed control controls the on time between encoder pulse intervals, and the control according to the present invention sets a constant off time between encoder pulse intervals. Therefore, in constant speed control, the on/off flag is set to ONOFF=1, and the motor is turned off in steps by a timer interrupt after the set on-time has elapsed.

一方、本発明に係わる制御ではオンオフフラグ
はONOFF=0にされており、一定のオフ時間の
経過後タイマ割込みによりステツプでモータ
をオンする。
On the other hand, in the control according to the present invention, the on/off flag is set to ONOFF=0, and the motor is turned on in steps by a timer interrupt after a certain off time has elapsed.

次に第5図Cを用いて外部割込みルーチン
INT−Eを説明する。このルーチンはモータ2
の回転を検出するエンコーダ3からのパルスの発
生毎にメインルーチンに割込みをかけて処理され
るものである。
Next, use Figure 5C to create an external interrupt routine.
Explain INT-E. This routine
The processing is performed by interrupting the main routine every time a pulse is generated from the encoder 3 that detects the rotation of the main routine.

第5図Cにおいて割込みがかかると、まずステ
ツプ〓〓で、マイクロコンピユータ内の基準時刻と
なるカウンタTfの値TfをRAMの所定エリアに設
定されるレジスタTcにコピーする。従つてレジ
スアTcは今回のエンコーダパルスの発生時刻Tc
を示すことになる。
When an interrupt occurs in FIG. 5C, the value Tf of the counter Tf, which is the reference time in the microcomputer, is first copied to the register Tc set in a predetermined area of the RAM at step . Therefore, the register Tc is the generation time Tc of the current encoder pulse.
will be shown.

次にステツプ〓〓でカウンタSYNCの値を判定
し、零以外の場合はステツプ〓でカウント値から
「1」を減算する。
Next, the value of the counter SYNC is determined at step 〓〓, and if it is other than zero, "1" is subtracted from the count value at step 〓.

このカウンタSYNCはエンコーダパルスと割込
みルーチンの同期をとるためのもので、エンコー
ダのパルス間隔を求めるためには最低2エンコー
ダパルスを必要とするので、その間パルス間隔の
計算結果を無効にする目的で設定される。本実施
例では最初の1パルスも無視するためカウンタ
SYNCの初期値は「2」に設定される。
This counter SYNC is used to synchronize the encoder pulses and the interrupt routine.Since at least 2 encoder pulses are required to determine the encoder pulse interval, it is set to invalidate the pulse interval calculation results during that time. be done. In this example, since the first pulse is also ignored, the counter
The initial value of SYNC is set to "2".

ステツプ〓ではエンコーダのパルス間隔Tiを
求める。
In step 〓, the pulse interval Ti of the encoder is determined.

この演算はステツプ〓〓で設定された今回のエン
コーダパルス発生時刻Tcと前回のエンコーダル
パルス発生時刻Tpとの差をとることによつて得
られる。前回のエンコーダパルス発生時刻Tpは
レジスタTcと同様にRAM内に設定されるレジス
タTpに格納されており、次のステツプ〓〓で今回
のエンコーダパルス発生時刻TcをレジスタTpに
コピーすることにより更新させる。
This calculation is obtained by taking the difference between the current encoder pulse generation time Tc set in step 〓〓 and the previous encoder pulse generation time Tp. The previous encoder pulse generation time Tp is stored in the register Tp set in the RAM like the register Tc, and is updated by copying the current encoder pulse generation time Tc to the register Tp in the next step 〓〓. .

次のステツプ〓〓〓〓〓〓ではモード判定をおこな
う。本実施例ではモードは速度測定モード
(MODE=0)加速制御モード(MODE=1)、
減速制御モード(MODE=2)及び定速制御モ
ード(MODE=3)の4種類設定されており、
MODE=0はメインルーチン及び後述するステ
ツプ〓でセツトされ、MODE=1,2はメイン
ルーチンでセツトされ、MODE=3は、後述す
るステツプ〓でセツトされる。
In the next step, the mode is determined. In this example, the modes are speed measurement mode (MODE=0), acceleration control mode (MODE=1),
There are four types of settings: deceleration control mode (MODE=2) and constant speed control mode (MODE=3).
MODE=0 is set in the main routine and in the step below, MODE=1 and 2 are set in the main routine, and MODE=3 is set in the step below.

速度測定モード(MODE=0)の場合は、ス
テツプ〓〓〜〓〓の速度測定をおこなうだけで、すぐ
にメインルーチンにリターンする。
In the speed measurement mode (MODE=0), just measure the speed of steps 〓〓〓 to 〓〓 and immediately return to the main routine.

定速制御モード(MODE=3)の場合は、ス
テツプ〓〓でカウンタSYNCが“0”であるかを判
定した上で目標速度に対するモータのオン時間を
演算して一時記憶レジスタTonにセツトし(ステ
ツプ〓〓)オンオフフラグONOFFを“1”にし
(ステツプ〓)、モータ駆動信号Dを“1”にす
る。ここでオン時間Tonは、目標速度に対応して
設定されたオン時間Ttypに、測定されたエンコ
ーダパルス間隔Tiと目標速度に対応する基準エ
ンコーダパルス間隔Tsとの差に係数Kiを乗じた
値を加算して得られる。Ttyp,Ts,Kiは復動時
においては複写倍率によつて異なつた値が用いら
れる。
In the case of constant speed control mode (MODE=3), after determining whether the counter SYNC is "0" at step 〓〓, the motor on time for the target speed is calculated and set in the temporary memory register Ton ( Step〓〓) Set the on-off flag ONOFF to “1” (Step〓), and set the motor drive signal D to “1”. Here, the on time Ton is the value obtained by multiplying the on time Ttyp set corresponding to the target speed by a coefficient Ki by the difference between the measured encoder pulse interval Ti and the reference encoder pulse interval Ts corresponding to the target speed. Obtained by adding. Different values are used for Ttyp, Ts, and Ki during double movement depending on the copying magnification.

このようにして求められたオン時間Tonは、ス
テツプ〓〓で現在時刻Tfに加算されてタイマレジ
スタTwにセツトされる。前記したようにタイマ
レジスタTwは現在時刻を示すカウンタTfと常時
比較されており、両者が一致したときタイマ割込
みをかけるので、タイマレジスタTwがセツトさ
れてから丁度時間Ton後にタイマ割込みがかかる
ことになり、この間モータがオンしている。
The on-time Ton thus determined is added to the current time Tf in step <<> and set in the timer register Tw. As mentioned above, the timer register Tw is constantly compared with the counter Tf indicating the current time, and when the two match, a timer interrupt is generated, so a timer interrupt will be generated exactly at the time Ton after the timer register Tw is set. During this time, the motor is on.

次に加速制御モード(MODE=1)の場合は、
まずステツプ〓で同期がとれているか判定し、同
期がとれていれば測定されたエンコーダパルス間
隔Tiが目標速度に対応する基準エンコーダパル
ス間隔Ts以下になつたか、即ち、目標速度に達
したかどうか判定し(ステツプ〓〓)、YESであれ
ばモードをステツプ〓で定速制御モードに切換え
る。ステツプ〓〓〓のいずれかでNOの場合は立上
り途中とみなして一時記憶レジスタTonに設定オ
フ時間Tchoplをセツトし(ステツプ)、オンオ
フフラグONOFFを“0”に、モータ駆動信号D
を“0”に夫々セツトする。(ステツプ〓〓〓〓。
Next, in the case of acceleration control mode (MODE=1),
First, in step 〓, it is determined whether synchronization is achieved, and if synchronization is achieved, whether the measured encoder pulse interval Ti has become less than the reference encoder pulse interval Ts corresponding to the target speed, that is, whether the target speed has been reached. Make a judgment (Step〓〓), and if YES, change the mode to constant speed control mode with Step〓. If NO in either step or step, it is assumed that the start-up is in progress, and the off time Tchopl is set in the temporary memory register Ton (step), the on-off flag ONOFF is set to "0", and the motor drive signal D is set.
are set to "0". (Steps〓〓〓〓.

一時記憶レジスタTonにセツトされた値はステ
ツプ〓〓の演算によりタイマレジスタTwに加えら
れる。この場合はオフ時間制御であるので、タイ
マレジスタTwがセツトされてから時間Tchoplが
経過するまでの間モータはオフされる。
The value set in the temporary storage register Ton is added to the timer register Tw by the operation of step 〓〓. In this case, off-time control is used, so the motor is turned off from the time the timer register Tw is set until the time Tchopl has elapsed.

減速制御モード(MODE=2)の場合は、ま
ずステツプ〓〓で同期がとれているかどうか判定
し、同期がとれていれば測定されたエンコーダパ
ルス間隔Tiが減速制御終了速度に対応するパル
ス間隔Tstop以上になつかか、即ち、走査系の速
度が減速制御終了速度以下になつたかどうか判定
し(ステツプ〓)、YESであればステツプ〓でモ
ードを速度測定モード(MODE=0)に切換え
る。ステツプ〓〓〓のいずれかでNOの場合は減速
途中とみなして一時記憶レジスタTonに設定オフ
時間Tchop2をセツトし(ステツプ〓〓)、加速制御
モードと同様にステツプ〓〓〓〓の処理をおこなう。
これによりモータはタイマレジスタTwがセツト
されてから時間Tchop2が経過するでの間オフさ
れる。
In the case of deceleration control mode (MODE=2), first determine whether synchronization is achieved in step 〓〓, and if synchronization is established, the measured encoder pulse interval Ti becomes the pulse interval Tstop corresponding to the deceleration control end speed. It is determined whether the speed of the scanning system has fallen below the deceleration control end speed (step 〓), and if YES, the mode is switched to the speed measurement mode (MODE=0) at step 〓. If NO in any of the steps, it is assumed that the deceleration is in progress, and the set off time Tchop2 is set in the temporary memory register Ton (step), and the steps are processed in the same way as in the acceleration control mode. .
As a result, the motor is turned off until the time Tchop2 has elapsed since the timer register Tw was set.

上記のフローチヤートによつて走査系は、本発
明方式による加速制御、定速制御、本発明方式に
よる減速制御をうけてスキヤンをおこない、次に
フルパワー加速後本発明方式による減速制御をう
けてリターンしホームポジシヨンに停止する。多
数枚複写の場合はリターンの減速とスキヤンの加
速が連続しておこなわれる。いずれの場合も加減
速の制御は非常にスムーズである。
According to the above flowchart, the scanning system performs scanning under acceleration control according to the present invention, constant speed control, and deceleration control according to the present invention, and then, after full power acceleration, is subjected to deceleration control according to the present invention. Return and stop at home position. In the case of copying a large number of sheets, the return deceleration and the scan acceleration are performed successively. In either case, acceleration/deceleration control is extremely smooth.

本発明に係わるオフ時間は、第5図Cに示す時
間Tchop1とTchop2の種類で示してあるが、時間
Tchop1は複写倍率の変更による走査速度の変更
に対応して、また、時間Tchop2は走査距離の変
更による減速開始速度の変更に対応して夫々複数
用意され最適の加減速制御をおこなうようになつ
ている。
The off time according to the present invention is shown by the types of time Tchop1 and Tchop2 shown in FIG.
Tchop1 corresponds to changes in scanning speed due to changes in copying magnification, and time Tchop2 corresponds to changes in deceleration start speed due to changes in scanning distance. A plurality of Tchop1 and time Tchop2 are provided to perform optimal acceleration/deceleration control. There is.

効 果 以上詳述したように本発明は、走査系を直流モ
ータで往復動させる走査装置において、前記直流
モータの回転に応じてパルスを発生するパルス発
生手段と、前記パルス発生手段がパルスを発生す
る毎に所定時間の計時をする計時手段と、加速時
又は減速時における前記直流モータへの通電を、
前記計時手段が所定時間を計時す間オフし、所定
時間経過後から次のパルスが発生するまでの間オ
ンするように制御する制御手段を備えたものであ
るので、非常にスムーズな加減即制御を簡単にお
こなうことができる。
Effects As described in detail above, the present invention provides a scanning device in which a scanning system is reciprocated by a DC motor, including a pulse generating means that generates pulses in accordance with the rotation of the DC motor, and a pulse generating means that generates pulses. a timer that measures a predetermined time each time the DC motor is accelerated;
Since the control means is provided for controlling the clocking means to be turned off while counting a predetermined time and turned on after the elapse of the predetermined time until the next pulse is generated, very smooth adjustment control can be achieved. can be done easily.

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

第1図は本発明を適用した走査装置の斜視図、
第2図は直流モータのスイツチング回路図、第3
図イは原理説明のための走査系の動きを示す図、
第3図ロ,ハは第3図イに対応してエンコーダパ
ルスと通電トルクを示す図、第4図は制御手段の
ブロツク図、第5図A,B,Cは制御手段のフロ
ーチヤート図である。 1……走査系、2……直流モータ、3……エン
コーダ。
FIG. 1 is a perspective view of a scanning device to which the present invention is applied;
Figure 2 is a switching circuit diagram of a DC motor, Figure 3 is a switching circuit diagram of a DC motor.
Figure A is a diagram showing the movement of the scanning system to explain the principle.
Figures 3B and 3C are diagrams showing encoder pulses and energizing torque corresponding to Figure 3B, Figure 4 is a block diagram of the control means, and Figures 5A, B, and C are flowcharts of the control means. be. 1...Scanning system, 2...DC motor, 3...Encoder.

Claims (1)

【特許請求の範囲】 1 走査系を直流モータで往復動させる走査装置
において、 前記直流モータの回転に応じてパルスを発生す
るパルス発生手段と、 前記パルス発生手段がパルスを発生する毎に所
定時間の計時をする計時手段と、 加速時又は減速時における前記直流モータへの
通電を、前記計時手段が所定時間を計時する間オ
フし、所定時間経過後から次のパルスが発生する
までの間オンするように制御する制御手段と を備えたことを特徴とする走査装置。 2 前記計時手段の計時する所定時間が、加速後
の定速制御速度及び/又は減速開始速度に応じて
変更されることを特徴とする特許請求の範囲第1
項記載の走査装置。
[Claims] 1. A scanning device in which a scanning system is reciprocated by a DC motor, comprising: pulse generation means for generating pulses in accordance with the rotation of the DC motor; and a predetermined period of time each time the pulse generation means generates a pulse. a timer for measuring time; and a timer for turning off the current to the DC motor during acceleration or deceleration while the timer measures a predetermined time, and turning it on for a period from the elapse of the predetermined time until the next pulse is generated. What is claimed is: 1. A scanning device comprising: a control means for controlling the scanning device to control the scanning device; 2. Claim 1, characterized in that the predetermined time measured by the timer is changed according to the constant speed control speed after acceleration and/or the deceleration start speed.
Scanning device as described in Section.
JP58026847A 1983-02-18 1983-02-18 Scanner Granted JPS59152435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58026847A JPS59152435A (en) 1983-02-18 1983-02-18 Scanner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58026847A JPS59152435A (en) 1983-02-18 1983-02-18 Scanner

Publications (2)

Publication Number Publication Date
JPS59152435A JPS59152435A (en) 1984-08-31
JPH0441329B2 true JPH0441329B2 (en) 1992-07-08

Family

ID=12204663

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58026847A Granted JPS59152435A (en) 1983-02-18 1983-02-18 Scanner

Country Status (1)

Country Link
JP (1) JPS59152435A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07102712B2 (en) * 1985-06-13 1995-11-08 セイコーエプソン株式会社 Printing control device for thermal printer
JPH01222682A (en) * 1988-02-29 1989-09-05 Nitto Seiko Co Ltd Method of controlling speed of dc motor

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5536816A (en) * 1978-09-06 1980-03-14 Ricoh Co Ltd Optical system driving method
JPS56102764A (en) * 1980-01-17 1981-08-17 Takai Seisakusho:Kk Coagulation of soybean curd
JPS5727277A (en) * 1980-07-28 1982-02-13 Ricoh Co Ltd Uniform speed control device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5536816A (en) * 1978-09-06 1980-03-14 Ricoh Co Ltd Optical system driving method
JPS56102764A (en) * 1980-01-17 1981-08-17 Takai Seisakusho:Kk Coagulation of soybean curd
JPS5727277A (en) * 1980-07-28 1982-02-13 Ricoh Co Ltd Uniform speed control device

Also Published As

Publication number Publication date
JPS59152435A (en) 1984-08-31

Similar Documents

Publication Publication Date Title
JPH03242713A (en) Driving controller
JPH0441329B2 (en)
JPS60107635A (en) Electrophotographic copying machine
JPS59106009A (en) Backlash correcting method
JPS61132940A (en) Scanner
JPS62244287A (en) Digital control device for dc motor
JPS6445641A (en) Swing phase regulator for swing roller
GB1597790A (en) Variable reluctance motor drive systems
JPH06124124A (en) Motor stoppage controller
JPH0434730B2 (en)
JP2834288B2 (en) Motor stop device
JPH06121576A (en) Control method for motor
JPH0436379B2 (en)
JPH0355095A (en) Device for needle-stopping at set position for sewing machine for household
JP2551590B2 (en) Speed control method for copier optical system
JPS62129837A (en) Fixed position stopping device for optical part
JPH0454951B2 (en)
JP2820724B2 (en) Drive control device for servo motor of image reading device
JPS6380782A (en) Motor driving controller
JPS6159070B2 (en)
JPS61128780A (en) Stop controller of motor
JPH04351487A (en) Drive controller for dc motor
JPH0726704Y2 (en) Vehicle speed detection device
JPH05317562A (en) Needle stoppage controller in sewing machine
JPS63153531A (en) Method for controlling speed of moving body in copying machine