JP3060473U - Motor control device - Google Patents

Motor control device

Info

Publication number
JP3060473U
JP3060473U JP1998010288U JP1028898U JP3060473U JP 3060473 U JP3060473 U JP 3060473U JP 1998010288 U JP1998010288 U JP 1998010288U JP 1028898 U JP1028898 U JP 1028898U JP 3060473 U JP3060473 U JP 3060473U
Authority
JP
Japan
Prior art keywords
motor
rotation speed
ramp table
ramp
drive control
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
JP1998010288U
Other languages
Japanese (ja)
Inventor
泰弘 和田
忠久 橋本
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.)
Funai Electric Co Ltd
Original Assignee
Funai Electric 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 Funai Electric Co Ltd filed Critical Funai Electric Co Ltd
Priority to JP1998010288U priority Critical patent/JP3060473U/en
Application granted granted Critical
Publication of JP3060473U publication Critical patent/JP3060473U/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

(57)【要約】 (修正有) 【課題】 Rampテーブルを格納するためのシステムRO
Mの領域を削減する。 【解決手段】 CPU1はステップの関数として回転速
度を計算してRAM2に格納する。例えば、パワーオン
リセット信号又はリセット信号を受けると、係数にキャ
リアモータの9ips 用Rampテーブルに応じた定数を設定
して演算手段1aにより演算し、9ips 用Rampテーブルを
求めてRAM2のRampテーブル格納領域2aへ格納する。
続いて、係数にキャリアモータの15ips 用Rampテーブル
に応じた定数を設定して演算手段1aにより演算し、求め
た15ips 用RampテーブルをRampテーブル格納領域2aへ格
納する。以下、同様にしてキャリアモータの23ips 用Ra
mpテーブル,フィードモータのSlow用Rampテーブル,フ
ィードモータのMiddle用Rampテーブル及びフィードモー
タのHigh用Rampテーブルを順次求め、その都度、求めた
RampテーブルをRampテーブル格納領域2aへ格納する。
(57) [Summary] (With correction) [Problem] A system RO for storing a Ramp table
The area of M is reduced. A CPU calculates a rotation speed as a function of a step and stores the rotation speed in a RAM. For example, when a power-on reset signal or a reset signal is received, a coefficient is set to a constant corresponding to the 9-ips Ramp table of the carrier motor, and the calculation is performed by the calculating means 1a to obtain a 9-ips Ramp table. Store to 2a.
Subsequently, a constant corresponding to the 15-ips Ramp table of the carrier motor is set as a coefficient, and the calculation is performed by the calculating means 1a, and the obtained 15-ips Ramp table is stored in the Ramp table storage area 2a. The same applies to the carrier motor Ra for 23ips.
The mp table, the Samp ramp table for the feed motor, the Ramp table for the middle of the feed motor, and the Ramp table for the high of the feed motor were sequentially obtained.
The Ramp table is stored in the Ramp table storage area 2a.

Description

【考案の詳細な説明】[Detailed description of the invention]

【0001】[0001]

【考案の属する技術分野】[Technical field to which the invention belongs]

本考案は、パルスモータを駆動制御するモータ制御装置、特にパルスモータの 速度パターンに対応する回転速度を駆動制御のステップ毎に格納したテーブルに 基づいて回転速度を設定し駆動制御することに特徴を有するモータ制御装置に関 する。 The present invention is characterized in that a motor control device for driving and controlling a pulse motor, in particular, a drive speed is set based on a table in which a rotation speed corresponding to a speed pattern of a pulse motor is stored for each drive control step and drive control is performed. Motor control device.

【0002】[0002]

【従来の技術】[Prior art]

パルスモータは、パルスの数を変位に変換する目的に用いられる電動機であっ て、与えられたパルス信号の素パルスに対応して、その回転子が所定の角度だけ 回転する構成にしてある。この角度を基本ステップ角度と呼ぶ。 具体的には、素パルスが与えられると、その時点の回転子の停止位置及び予め 設定してある回転方向から定まる目標停止位置と対応する固定子、即ち電磁石に 所定量の電流を供給して励磁させ、前記回転子の磁極を吸引して停止させる。こ のような電磁石への電流供給状態をその目標停止位置によって区別するとき、各 状態をフェーズと呼ぶ。 また、連続して供給されるパルス信号に応じて、所定の順序に従ってフェーズ を切り換えることにより、回転子を回動自在に駆動制御することができる。 A pulse motor is an electric motor used for converting the number of pulses into displacement, and has a configuration in which a rotor rotates by a predetermined angle in response to an elementary pulse of a given pulse signal. This angle is called a basic step angle. Specifically, when an elementary pulse is given, a predetermined amount of current is supplied to the stator, ie, the electromagnet, corresponding to the rotor stop position at that time and a target stop position determined from a preset rotation direction. The rotor is excited and the magnetic poles of the rotor are attracted and stopped. When distinguishing such a current supply state to the electromagnet by its target stop position, each state is called a phase. Further, by switching the phases in accordance with a predetermined sequence in accordance with the continuously supplied pulse signals, the rotor can be rotatably controlled.

【0003】 前述の如きパルスモータは、デジタル制御が容易であることから、例えば熱転 写プリンタ,シリアルプリンタなどの印刷装置におけるキャリッジ駆動機構(キ ャリアモータ)及び紙送り機構(フィードモータ)などに採用されている。The above-described pulse motor is easily used in a carriage drive mechanism (carrier motor) and a paper feed mechanism (feed motor) in a printing apparatus such as a thermal transfer printer or a serial printer because of its easy digital control. Have been.

【0004】 図4はパルスモータの駆動制御の概念を説明する速度線図であって、横軸には 時間を、また縦軸にはパルスモータの回転速度を夫々対応付け、停止状態のT0 からの時間の経過に伴って目標設定される回転速度の変化を表している。FIG. 4 is a velocity diagram for explaining the concept of the drive control of the pulse motor, in which the horizontal axis corresponds to time, and the vertical axis corresponds to the rotation speed of the pulse motor. Of the rotational speed set as a target with the lapse of time.

【0005】 図において、速度線が上り勾配を示す時刻T0から時刻T1までの期間は加速 駆動が行われる。パルスモータの回転速度は、パルス信号の単位時間当たりの素 パルスの数に比例する。言い換えると、前記回転速度はパルス信号の隣り合う素 パルスの間隔に反比例する。従って、この期間はパルス信号の周期が徐々に短く なるように制御する。 速度線が横這いになる時刻T1から時刻T2までの期間は回転速度を一定に保 って駆動する等速駆動が行われる。すなわち、この期間はパルス信号の周期が一 定に保たれる。[0005] In the figure, acceleration driving is performed during a period from time T0 to time T1 at which the speed line shows an upward gradient. The rotation speed of the pulse motor is proportional to the number of elementary pulses per unit time of the pulse signal. In other words, the rotation speed is inversely proportional to the interval between adjacent pulses of the pulse signal. Therefore, control is performed such that the period of the pulse signal is gradually shortened during this period. During the period from time T1 to time T2 when the speed line is level, constant speed driving for driving while keeping the rotation speed constant is performed. That is, during this period, the period of the pulse signal is kept constant.

【0006】 また、速度線が下り勾配を示す時刻T2から時刻T3までの期間は減速駆動が 行われる。すなわち、この期間はパルス信号の周期が徐々に長くなるように制御 する。 例えば、パルスモータが1600pps の回転速度で駆動制御されているときのパル ス信号の周期を1とすると、そのパルス信号の周期を4/3にすることにより、 回転速度は1200pps に減速される。また、パルス信号の周期を2にすることによ り、回転速度は800ppsに減速される。更にまた、パルス信号の周期を4にするこ とにより、400ppsに減速される。[0006] During the period from time T2 to time T3 at which the speed line shows a downward slope, deceleration driving is performed. That is, control is performed so that the period of the pulse signal gradually increases during this period. For example, if the period of the pulse signal is 1 when the drive of the pulse motor is controlled at a rotation speed of 1600 pps, the rotation speed is reduced to 1200 pps by setting the period of the pulse signal to 4/3. By setting the cycle of the pulse signal to 2, the rotation speed is reduced to 800 pps. Further, by setting the period of the pulse signal to 4, the speed is reduced to 400 pps.

【0007】 このパルス信号の周期は、システムROMに格納してあるRampテーブルに基づ き設定される。Rampテーブルは、速度パターンに対応する回転速度を表すRampデ ータを駆動制御のステップ毎に格納したものであって、複数通りの速度パターン に駆動制御する場合には、各々と対応するRampテーブルを用意しておく。各Ramp テーブルは初期設定時に読み出されて、ROMより読み出し動作の速度が高速で あるRAMに書き込まれる。そして、駆動制御を1ステップ実行する都度、新た なRampデータが前記RAMから読み出されて次のステップにおけるパルス信号の 周期の設定に使用される。 すなわち、システムROMのRampテーブルを格納してある領域は、駆動制御時 に読み出されることはなく、遊休状態にある。The cycle of the pulse signal is set based on a ramp table stored in a system ROM. The Ramp table stores the Ramp data representing the rotation speed corresponding to the speed pattern for each drive control step. When the drive control is performed in a plurality of speed patterns, the Ramp table corresponding to each of the Ramp tables is stored. Have prepared. Each Ramp table is read at the time of initialization, and is written to the RAM, which has a higher read operation speed than the ROM. Each time one step of drive control is performed, new ramp data is read from the RAM and used for setting the cycle of the pulse signal in the next step. That is, the area of the system ROM in which the Ramp table is stored is not read out at the time of drive control and is in an idle state.

【0008】 特開平5−122470号公報において提案されているファクシミリ装置は、駆動制 御に係る複数のテーブルの格納形態に特徴を有する発明であって、 ホストCPUによる制御を受けるスレーブCPUによってモータの駆動制御を行 うファクシミリ装置において、速度パターンに対応する複数の加速情報テーブル をホストCPU側に格納し、送信原稿の読み取りに先立ち所要の加速情報テーブ ルを選択して転送すべくなすことにより、メモリ容量に限りのあるスレーブCP U側の負担を抑えることを目的とする。A facsimile apparatus proposed in Japanese Patent Application Laid-Open No. 5-122470 is an invention characterized by a storage form of a plurality of tables related to drive control, wherein a slave CPU controlled by a host CPU controls a motor. In a facsimile apparatus that performs drive control, a plurality of acceleration information tables corresponding to speed patterns are stored in the host CPU side, and a required acceleration information table is selected and transferred prior to reading of a transmission original, thereby enabling It is an object of the present invention to reduce a burden on a slave CPU having a limited memory capacity.

【0009】 ところで、部品点数の削減は、その製造コストの低減に貢献するため、製造業 者において重要な課題として認識されている。その具体例として、前述の如く駆 動制御時に遊休状態にある領域のメモリ容量を削減することが挙げられる。[0009] By the way, reduction of the number of parts contributes to reduction of the manufacturing cost, and is recognized as an important issue by manufacturers. As a specific example, it is possible to reduce the memory capacity of an area in an idle state during drive control as described above.

【0010】 特開平3−139198号公報において提案されているステッピングモータの制御装 置は、ステッピングモータ(パルスモータ)の速度制御のためのメモリ容量の削 減に関する発明であって、ステッピングモータの速度パターンに対応する励磁信 号の切換周期を表す一つのタイミングテーブル(Rampテーブル)から、所定のパ ラメータ及び演算方法に基づいて複数の速度パターンに対応するタイミングテー ブルを夫々作り出し、これをモータ制御に使用することにより、タイミングテー ブルを格納するためのメモリ容量の節約を図ることを目的とする。A control device for a stepping motor proposed in Japanese Patent Application Laid-Open No. 3-139198 is an invention relating to a reduction in a memory capacity for speed control of a stepping motor (pulse motor). From one timing table (Ramp table) that indicates the switching cycle of the excitation signal corresponding to the pattern, a timing table corresponding to a plurality of speed patterns is created based on predetermined parameters and a calculation method. The purpose of this is to save the memory capacity for storing the timing table.

【0011】[0011]

【考案が解決しようとする課題】[Problems to be solved by the invention]

前述のステッピングモータの制御装置によるメモリ容量の節約の効果は、作り 出される複数のタイミングテーブルの基となる一つのタイミングテーブルを格納 するためのメモリ容量までは及ばない。 従って、前述の如くRampテーブルをシステムROMから読み出して一旦RAM に書き込み、該RAMから改めてRampテーブルを読み出す状況においては、駆動 制御時に遊休状態にある前記Rampテーブルを格納してあるシステムROMの領域 について、その削減の余地が残っていた。 また、RampテーブルをシステムROMに格納すると書換えが不可能であるため 、その変更を行う場合には変更前のシステムROMを新たなシステムROMと取 り替える必要があるため、対応が困難である。 The effect of saving memory capacity by the above-described stepping motor control device does not extend to the memory capacity for storing one timing table that is the basis of a plurality of created timing tables. Therefore, as described above, in a situation where the Ramp table is read from the system ROM, temporarily written to the RAM, and then the Ramp table is read from the RAM again, the area of the system ROM where the Ramp table is idle during drive control is stored. There was room for reduction. In addition, since rewriting is impossible if the Ramp table is stored in the system ROM, it is difficult to perform the change because it is necessary to replace the system ROM before the change with a new system ROM.

【0012】 本考案は斯かる事情に鑑みてなされたものであって、Rampテーブルを格納する ためのシステムROMの容量を削減することが可能であって、またRampテーブル の変更に際しての対応が容易であるようなモータ制御装置の提供を目的とする。The present invention has been made in view of such circumstances, and it is possible to reduce the capacity of a system ROM for storing a ramp table, and to easily cope with a change in the ramp table. It is an object of the present invention to provide a motor control device as described above.

【0013】[0013]

【課題を解決するための手段】[Means for Solving the Problems]

第1考案に係るモータ制御装置は、駆動制御の各ステップとモータの回転速度 とを対応付けて格納するための記憶手段を有し、ステップに応じて前記記憶手段 を参照して回転速度を得て、該回転速度に対応するパルス信号を生成し、これを 前記モータへ与えて駆動制御するモータ制御装置において、駆動制御の開始に先 立ち、駆動制御のステップの関数として予め与えられるモータの回転速度の計算 式を用いて、各ステップと対応付けられるモータの回転速度を求め、これを前記 記憶手段へ格納する手段を備えることを特徴とする。 The motor control device according to the first invention has storage means for storing each step of drive control and the rotation speed of the motor in association with each other, and obtains the rotation speed by referring to the storage means according to the step. In the motor control device that generates a pulse signal corresponding to the rotation speed and supplies the pulse signal to the motor to perform drive control, prior to the start of the drive control, the rotation of the motor given in advance as a function of the step of the drive control is performed. There is provided a means for calculating a rotational speed of the motor associated with each step using a speed calculation formula, and storing the obtained rotational speed in the storage means.

【0014】 以下に、計算式の設計方法を説明する。 まず実機の駆動機構、例えばキャリッジ駆動機構のキャリアモータに対して、 パルス信号の周期を様々に変化させて対応する回転速度を実測する。この実測値 の速度線図を多項式を用い近似して、駆動制御の各ステップとモータの回転速度 との相関関数を求める。更に、演算の処理負担を軽減するために前記相関関数を 単純化する。以下に、単純化された相関関数の一例を示す。Hereinafter, a method of designing a calculation formula will be described. First, for a driving mechanism of an actual machine, for example, a carrier motor of a carriage driving mechanism, the cycle of a pulse signal is variously changed, and a corresponding rotation speed is measured. The speed diagram of the actually measured values is approximated using a polynomial to obtain a correlation function between each step of the drive control and the rotation speed of the motor. Further, the correlation function is simplified in order to reduce the processing load of the operation. The following is an example of a simplified correlation function.

【0015】 式1は、キャリアモータについて搬送速度23ips (inch per second) 、即ち回 転速度に換算すると3450pps を目標に加速駆動するときの実測値に基づき導き出 される、駆動制御のステップsとモータの回転速度との相関関数である。 回転速度 ={ 104/(s+1)}+210 …(式1)Equation 1 shows the drive control steps s derived based on the actual measured value when accelerating the carrier motor at a target speed of 3450 pps when converted to a transport speed of 23 ips (inch per second), that is, a rotational speed. This is a correlation function with the rotation speed of the motor. Speed = {10 4 / (s + 1)} + 210 ... ( Equation 1)

【0016】 このようにして求めた回転速度の計算式を用いてRampテーブルを求め、これに 従ってモータを駆動制御する。 また、他の測定条件について同様にして求めた相関関数の定数部分を係数に置 き換え、目標の回転速度に応じて選択した定数を前記係数に代入すべくなすこと により、一つの相関関数から複数のRampテーブルを求めることができる。A ramp table is obtained using the rotational speed calculation formula thus obtained, and the motor is driven and controlled in accordance with the table. Also, by replacing the constant part of the correlation function similarly obtained for other measurement conditions with a coefficient, and substituting the constant selected according to the target rotation speed into the coefficient, one correlation function can be obtained. Multiple Ramp tables can be determined.

【0017】 この考案においては、駆動制御の各ステップと対応付けられるモータの回転速 度を所与の計算式を用い求めて記憶手段に格納し、ステップに応じて該記憶手段 を参照して得た回転速度にモータを駆動制御するから、システムROM内のRamp テーブルを格納するための領域を削減することができる。In this invention, the rotational speed of the motor associated with each step of the drive control is obtained using a given calculation formula, stored in the storage means, and obtained by referring to the storage means according to the step. Since the drive of the motor is controlled at the adjusted rotation speed, the area for storing the Ramp table in the system ROM can be reduced.

【0018】 第2考案に係るモータ制御装置は、モータの所定の回転速度に対応するパルス 信号を生成し、これを前記モータへ与えて駆動制御するモータ制御装置において 、駆動制御のステップの遷移に応じて、駆動制御のステップの関数として予め与 えられるモータの回転速度の計算式を用いて、モータの回転速度を求める手段と 、求めた回転速度に対応するパルス信号を生成する手段とを備えることを特徴と する。A motor control device according to the second invention generates a pulse signal corresponding to a predetermined rotation speed of a motor, and supplies the pulse signal to the motor to perform drive control. Accordingly, the apparatus includes means for determining the motor rotation speed using a motor rotation speed calculation formula given in advance as a function of the drive control step, and means for generating a pulse signal corresponding to the determined rotation speed. It is characterized.

【0019】 この考案においては、駆動制御の各ステップと対応付けられるモータの回転速 度を所与の計算式を用いて求め、求めた回転速度にモータを駆動制御するから、 システムROM内のRampテーブルを格納するための領域を削減し、しかも駆動制 御のステップと対応付けられるモータの回転速度を格納するための領域を削減す ることができる。In the present invention, the rotational speed of the motor associated with each step of the drive control is determined using a given formula, and the drive of the motor is controlled at the determined rotational speed. The area for storing the table can be reduced, and the area for storing the rotation speed of the motor associated with the drive control step can be reduced.

【0020】[0020]

【考案の実施の形態】[Embodiment of the invention]

図1は本考案に係るモータ制御装置の構成を示すブロック図である。図におい てCPU1は、所与の計算式を用いて駆動制御の各ステップと対応付けられるモ ータの回転速度を求める演算手段1aとしてのプログラム手段を備える。演算手段 1aによる演算結果、即ちRampデータはRAM2へ与えられてRampテーブル格納領 域2aに格納される。Rampテーブル格納領域2aに格納されたRampデータは、パルス 生成回路3により読み出し可能になしてある。パルス生成回路3は、モータのフ ェーズ情報を格納するためのフェーズレジスタ4と接続してある。 FIG. 1 is a block diagram showing the configuration of the motor control device according to the present invention. In the figure, a CPU 1 is provided with a program unit as a calculation unit 1a for obtaining a rotational speed of a motor associated with each step of drive control using a given calculation formula. The calculation result by the calculation means 1a, that is, Ramp data, is given to the RAM 2 and stored in the Ramp table storage area 2a. The Ramp data stored in the Ramp table storage area 2a can be read by the pulse generation circuit 3. The pulse generation circuit 3 is connected to a phase register 4 for storing phase information of the motor.

【0021】 またパルス生成回路3は、高周波クロック及び駆動方向の設定を受け付けるべ くなしてあって、所定のトリガ信号を受け付けたとき、RAM2のRampテーブル 格納領域2aから読み出したRampデータ,フェーズレジスタ4から読み出したフェ ーズ情報及び受け付けた駆動方向に基づいてパルス信号を生成し、これをモータ ドライバ5へ与える。モータドライバ5はパルス信号を受けたとき、目標停止位 置に応じて所定の電流をモータ6へ供給する。 更にまた、パルス生成回路3はパルス信号を出力する都度、フェーズ識別回路 7へトリガ信号を与える。フェーズ識別回路7は駆動方向の設定を受け付けるべ くなしてあって、トリガ信号を受け付けたとき、設定してある駆動方向に基づき フェーズの遷移を識別して、これをフェーズレジスタ4へ格納する。The pulse generation circuit 3 is supposed to accept the setting of the high-frequency clock and the driving direction. When a predetermined trigger signal is received, the pulse generation circuit 3 reads out the Ramp data read from the Ramp table storage area 2a of the RAM 2 and the phase register. A pulse signal is generated on the basis of the phase information read out from the drive signal 4 and the received driving direction, and the pulse signal is supplied to the motor driver 5. When receiving the pulse signal, the motor driver 5 supplies a predetermined current to the motor 6 according to the target stop position. Furthermore, each time the pulse generation circuit 3 outputs a pulse signal, it supplies a trigger signal to the phase identification circuit 7. The phase identification circuit 7 must accept the setting of the driving direction. When the trigger signal is accepted, the phase identifying circuit 7 identifies the phase transition based on the set driving direction and stores it in the phase register 4.

【0022】 図2は本考案に係るモータ制御装置のRampテーブル設定手順を示すフローチャ ートである。CPU1はパワーオンリセット信号又はリセット信号を受けると、 係数にキャリアモータの9ips 用Rampテーブルに応じた定数を設定して演算手段 1aにより演算し、9ips 用Rampテーブルを求めてRAM2のRampテーブル格納領 域2aへ格納する(S1)。続いて、係数にキャリアモータの15ips 用Rampテーブルに 応じた定数を設定して演算手段1aにより演算し、求めた15ips 用Rampテーブルを Rampテーブル格納領域2aへ格納する(S2)。以下、同様にしてキャリアモータの23 ips 用Rampテーブル,フィードモータのSlow用Rampテーブル,フィードモータの Middle用Rampテーブル及びフィードモータのHigh用Rampテーブルを順次求め、そ の都度、求めたRampテーブルをRampテーブル格納領域2aへ格納する(S3)(S4)(S5) (S6)。FIG. 2 is a flowchart showing a procedure for setting a Ramp table of the motor control device according to the present invention. When the CPU 1 receives the power-on reset signal or the reset signal, the coefficient is set to a constant corresponding to the 9-ips Ramp table of the carrier motor, the calculation is performed by the calculating means 1a, the 9-ips Ramp table is obtained, and the Ramp table storage area of the RAM 2 is obtained. It is stored in the area 2a (S1). Subsequently, a constant corresponding to the 15-ips Ramp table of the carrier motor is set as the coefficient, and the coefficient is calculated by the calculating means 1a, and the obtained 15-ips Ramp table is stored in the Ramp table storage area 2a (S2). In the same manner, the Ramp table for 23 ips of the carrier motor, the Ramp table for Slow of the feed motor, the Ramp table for Middle of the feed motor, and the Ramp table for High of the feed motor are sequentially obtained in the same manner, and each time the obtained Ramp table is obtained. It is stored in the Ramp table storage area 2a (S3) (S4) (S5) (S6).

【0023】 なお、所要のRampテーブルに応じた定数の設定をデバイスドライバなどにおい て予め受け付けておき、必要に応じて該デバイスドライバが前記定数をCPU1 へ与えて、これに基づき計算式を用いてRampテーブルを生成する構成になすこと により、Rampテーブルの変更に際して、前記デバイスドライバへ設定しておく定 数を変更することで対応できるから、システムROMを新たなものと取り替える 手間を省くことが可能になる。The setting of a constant according to a required ramp table is received in advance by a device driver or the like, and the device driver gives the constant to the CPU 1 as necessary, and uses a calculation formula based on the constant. By using a configuration that generates a Ramp table, it is possible to respond to changes in the Ramp table by changing the constants set in the device driver, thereby eliminating the need to replace the system ROM with a new one. become.

【0024】 図3は本考案に係るモータ制御装置の他の構成を示すブロック図である。 図においてパルス生成回路8は、所与の計算式を用いて駆動制御の各ステップと 対応付けられるモータの回転速度を求める演算手段8aとしてのプログラム手段を 備える。パルス生成回路8は、モータのフェーズ情報を格納するためのフェーズ レジスタ4と接続してある。FIG. 3 is a block diagram showing another configuration of the motor control device according to the present invention. In the figure, the pulse generation circuit 8 is provided with a program unit as a calculation unit 8a for obtaining a rotation speed of a motor associated with each step of drive control using a given calculation formula. The pulse generation circuit 8 is connected to the phase register 4 for storing phase information of the motor.

【0025】 またパルス生成回路3は、高周波クロック及び駆動方向の設定を受け付けるべ くなしてあって、所定のトリガ信号を受け付けたとき、演算手段8aによりRampデ ータを演算し、このRampデータ,フェーズレジスタ4から読み出したフェーズ情 報及び受け付けた駆動方向に基づいてパルス信号を生成し、これをモータドライ バ5へ与える。モータドライバ5はパルス信号を受けたとき、目標停止位置に応 じて所定の電流をモータ6へ供給する。他の図1と同様の構成要素については、 同一符号を付して説明を省略する。The pulse generation circuit 3 is supposed to accept the setting of the high-frequency clock and the driving direction. When a predetermined trigger signal is received, the pulse generation circuit 3 computes the Ramp data by the computing means 8a. A pulse signal is generated based on the phase information read from the phase register 4 and the received driving direction, and the pulse signal is supplied to the motor driver 5. Upon receiving the pulse signal, the motor driver 5 supplies a predetermined current to the motor 6 according to the target stop position. The same components as those in FIG. 1 are denoted by the same reference numerals and description thereof is omitted.

【0026】 なお、所要のRampテーブルに応じた定数の設定をデバイスドライバなどにおい て受け付けておき、該デバイスドライバが受け付けた定数をパルス生成回路8へ 与えて、これに基づき計算式を用いてRampテーブルを生成する構成になすことに より、Rampテーブルの変更に際して、前記デバイスドライバへ設定しておく定数 を変更することで対応できるから、システムROMを新たなものと取り替える手 間を省くことが可能になる。The setting of a constant according to a required Ramp table is received by a device driver or the like, and the constant received by the device driver is given to the pulse generation circuit 8. By using a configuration that generates a table, it is possible to respond to changes in the Ramp table by changing the constants set in the device driver, eliminating the need to replace the system ROM with a new one. become.

【0027】 なお、所要のRampテーブルに応じた定数の設定をデバイスドライバなどにおい て予め受け付けておき、必要に応じて該デバイスドライバが前記定数をパルス生 成回路8へ与えて、これに基づき計算式を用いて駆動制御の各ステップと対応付 けられるモータの回転速度を求める構成になすことにより、Rampテーブルの変更 に際して、前記デバイスドライバへ設定しておく定数を変更することで対応でき るから、システムROMを新たなものと取り替える手間を省くことが可能になる 。The setting of a constant corresponding to a required Ramp table is received in advance by a device driver or the like, and the device driver supplies the constant to the pulse generation circuit 8 as needed, and calculates based on the constant. By using a formula to determine the rotational speed of the motor that is associated with each step of the drive control, it is possible to change the ramp table by changing the constants set in the device driver. Therefore, it is possible to save the trouble of replacing the system ROM with a new one.

【0028】[0028]

【考案の効果】[Effect of the invention]

以上の如き第1考案及び第2考案のモータ制御装置によっては、所与の計算式 を用いて駆動制御の各ステップと対応付けられるモータの回転速度を求めて記憶 手段に格納し、ステップに応じて該記憶手段を参照して得た回転速度にモータを 駆動制御するから、駆動制御時に遊休状態にあるRampテーブルを格納してあるシ ステムROMの領域の削減に優れた効果を奏する。 また、所要の速度パターンに対応する計算式の定数をデバイスドライバから与 え、該デバイスドライバから与えられた定数に基づき計算式を用いて駆動制御の 各ステップと対応付けられるモータの回転速度を求める構成になすことで、Ramp テーブルの変更に際しての対応を容易にすることに優れた効果を奏する。 According to the motor control devices of the first invention and the second invention as described above, the rotational speed of the motor associated with each step of the drive control is obtained by using a given calculation formula, stored in the storage means, and according to the step. Thus, since the motor is driven and controlled at the rotation speed obtained by referring to the storage means, an excellent effect can be obtained in reducing the area of the system ROM storing the idle Ramp table during the drive control. In addition, a constant of a calculation formula corresponding to a required speed pattern is given from the device driver, and the rotation speed of the motor associated with each step of the drive control is obtained using the calculation formula based on the constant given by the device driver. The configuration has an excellent effect in facilitating the response when the ramp table is changed.

【0029】 また、第2考案のモータ制御装置によっては、所与の計算式を用いて駆動制御 の各ステップと対応付けられるモータの回転速度を求め、求めた回転速度にモー タを駆動制御するから、求めたモータの回転速度を格納するための領域の削減に 優れた効果を奏する。Further, according to the motor control device of the second invention, the rotation speed of the motor associated with each step of the drive control is obtained using a given calculation formula, and the motor is driven and controlled at the obtained rotation speed. Therefore, an excellent effect is obtained in reducing the area for storing the obtained motor rotation speed.

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

【図1】本考案に係るモータ制御装置の構成を示すブロ
ック図である。
FIG. 1 is a block diagram showing a configuration of a motor control device according to the present invention.

【図2】本考案に係るモータ制御装置のRampテーブル設
定手順を示すフローチャートである。
FIG. 2 is a flowchart illustrating a Ramp table setting procedure of the motor control device according to the present invention.

【図3】本考案に係るモータ制御装置の他の構成を示す
ブロック図である。
FIG. 3 is a block diagram showing another configuration of the motor control device according to the present invention.

【図4】パルスモータの駆動制御の概念を説明する速度
線図である。
FIG. 4 is a velocity diagram illustrating the concept of drive control of a pulse motor.

【符号の説明】[Explanation of symbols]

1 CPU 1a,8a 演算手段 2 RAM 2a Rampテーブル格納領域 3,8 パルス生成回路 1 CPU 1a, 8a arithmetic means 2 RAM 2a Ramp table storage area 3, 8 pulse generation circuit

Claims (2)

【実用新案登録請求の範囲】[Utility model registration claims] 【請求項1】 駆動制御の各ステップとモータの回転速
度とを対応付けて格納するための記憶手段を有し、ステ
ップに応じて前記記憶手段を参照して回転速度を得て、
該回転速度に対応するパルス信号を生成し、これを前記
モータへ与えて駆動制御するモータ制御装置において、 駆動制御の開始に先立ち、駆動制御のステップの関数と
して予め与えられるモータの回転速度の計算式を用い
て、各ステップと対応付けられるモータの回転速度を求
め、これを前記記憶手段へ格納する手段を備えることを
特徴とするモータ制御装置。
1. A storage unit for storing each step of drive control and a rotation speed of a motor in association with each other, and obtaining a rotation speed by referring to the storage unit in accordance with the step.
In a motor control device for generating a pulse signal corresponding to the rotation speed and supplying the pulse signal to the motor to perform drive control, a calculation of a motor rotation speed given in advance as a function of a drive control step prior to the start of drive control A motor control device comprising: means for calculating a rotation speed of a motor associated with each step using an equation, and storing the rotation speed in the storage means.
【請求項2】 モータの所定の回転速度に対応するパル
ス信号を生成し、これを前記モータへ与えて駆動制御す
るモータ制御装置において、 駆動制御のステップの遷移に応じて、駆動制御のステッ
プの関数として予め与えられるモータの回転速度の計算
式を用いて、モータの回転速度を求める手段と、 求めた回転速度に対応するパルス信号を生成する手段と
を備えることを特徴とするモータ制御装置。
2. A motor control device for generating a pulse signal corresponding to a predetermined rotation speed of a motor and applying the pulse signal to the motor to control the drive, wherein a step of the drive control step is performed in accordance with a transition of the drive control step. What is claimed is: 1. A motor control device comprising: means for obtaining a motor rotation speed using a motor rotation speed calculation formula given in advance as a function; and means for generating a pulse signal corresponding to the obtained rotation speed.
JP1998010288U 1998-12-25 1998-12-25 Motor control device Expired - Lifetime JP3060473U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1998010288U JP3060473U (en) 1998-12-25 1998-12-25 Motor control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1998010288U JP3060473U (en) 1998-12-25 1998-12-25 Motor control device

Publications (1)

Publication Number Publication Date
JP3060473U true JP3060473U (en) 1999-08-31

Family

ID=43194289

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1998010288U Expired - Lifetime JP3060473U (en) 1998-12-25 1998-12-25 Motor control device

Country Status (1)

Country Link
JP (1) JP3060473U (en)

Similar Documents

Publication Publication Date Title
CN100517946C (en) Method and apparatus for controlling motor drive
CN102207704B (en) Image forming apparatus
US20040036439A1 (en) Apparatus and method of controlling a stepper motor
JP3060473U (en) Motor control device
JPS61150699A (en) Step motor controller
JPH0664275A (en) Carriage motor control device of printer
JPH06115139A (en) Method of controlling thermal printer
JP2000358390A (en) Servo control device of motor
JPH0156916B2 (en)
JPH07106659B2 (en) Carriage drive control method for serial printer
JP2539412B2 (en) Servo controller
JP3362686B2 (en) Motor control device
JPH10193664A (en) Thermal printer
JP4654512B2 (en) Stepping motor control device
JP2000184790A (en) Motor controller
JP3284553B2 (en) Serial printer
JPH07329339A (en) Line type thermal printer, and sheet-feed motor driving method therefor
KR100346698B1 (en) Motor driving system of printer
CN115378315A (en) Method and device for compensating error of reverse clearance of stepping motor, household appliance and medium
JPH08126392A (en) Drive controller for stepping motor, drive system and apparatus employing it
JP3416684B2 (en) Energization control device for electric motor
JP2580394B2 (en) DC servo motor control method
JPH11129578A (en) Fan control apparatus
JP2000078889A (en) Device and method for controlling drive
JP2000177161A (en) Method for controlling thermal history of printer