JPH06343298A - Stepping motor controller - Google Patents

Stepping motor controller

Info

Publication number
JPH06343298A
JPH06343298A JP5154284A JP15428493A JPH06343298A JP H06343298 A JPH06343298 A JP H06343298A JP 5154284 A JP5154284 A JP 5154284A JP 15428493 A JP15428493 A JP 15428493A JP H06343298 A JPH06343298 A JP H06343298A
Authority
JP
Japan
Prior art keywords
step motor
target value
stepping motor
time
difference
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
JP5154284A
Other languages
Japanese (ja)
Inventor
Katsumi Ishida
克己 石田
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.)
Aisan Industry Co Ltd
Original Assignee
Aisan Industry 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 Aisan Industry Co Ltd filed Critical Aisan Industry Co Ltd
Priority to JP5154284A priority Critical patent/JPH06343298A/en
Publication of JPH06343298A publication Critical patent/JPH06343298A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electrical Control Of Air Or Fuel Supplied To Internal-Combustion Engine (AREA)
  • Control Of Stepping Motors (AREA)

Abstract

PURPOSE:To provide a stepping motor controller which allows a stepping motor to follow a target value rapidly and accurately when the stepping motor starts up. CONSTITUTION:A stepping motor controller 17 is provided with a stepping motor accelerating and reducing program 25 which calculates a difference between a set target value TSTEP and a current position of a stepping motor 15 and then accelerates or reduces the stepping motor according to the difference and stops the stepping motor at the set target value and a start-up command discrimination program 27 which discriminates that a command has been issued to start up the stepping motor 15 from a shutdown state when there is a change in the set target value which has been kept at a constant value. This controller also has a start up delay program 28 which allows the stepping motor 15 to be started up by the stepping motor accelerating and reducing program 25 after the passage of a specified delay time TD.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ステップモータの目標
停止位置が時々刻々と変化するときに、変化する目標停
止位置に速やかにステップモータを加減速制御するステ
ップモータ制御装置に関し、さらに詳細には、ステップ
モータを迅速に起動させるためのステップモータ制御装
置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a step motor control device for rapidly accelerating and decelerating a step motor to a target stop position that changes when the target stop position of the step motor changes momentarily. Relates to a step motor control device for promptly starting a step motor.

【0002】[0002]

【従来の技術】近年、自動車エンジンのスロットルバル
ブをステップモータにより電子的に制御する方法が実施
され、自動車においてもステップモータの駆動および停
止を制御するためのステップモータ制御装置が広く使用
されている。ここで、スロットルバルブの開閉量をアク
セルの踏み込み量に追従して制御する必要があるため、
ステップモータ制御装置は、アクセルの踏み込み量をポ
テンショメータ等でアナログデータとして計測し、その
ポテンショメータの計測値を一定間隔でサンプリングし
A/D変換して目標値とし、その目標値に応じてステッ
プモータの停止位置を制御することにより、スロットル
バルブの開閉量を制御している。
2. Description of the Related Art In recent years, a method of electronically controlling a throttle valve of an automobile engine by a step motor has been implemented, and a step motor control device for controlling driving and stopping of the step motor is widely used in automobiles. . Here, since it is necessary to control the opening / closing amount of the throttle valve by following the depression amount of the accelerator,
The step motor control device measures the amount of depression of the accelerator as analog data with a potentiometer or the like, samples the measured value of the potentiometer at a constant interval, A / D-converts the target value, and sets the step motor according to the target value. By controlling the stop position, the opening / closing amount of the throttle valve is controlled.

【0003】スロットルバルブの開閉量を制御するため
に、ステップモータの停止位置を制御することは、通常
のステップモータの制御装置と、次の点で異なってい
る。すなわち、アクセルの踏み込み量は、自動車の運転
状態により時々刻々と変化するものであり、また、アク
セルの踏み込み量に対するスロットルバルブの開閉量の
制御も速やかな応答性が要求される。しかし、通常のス
テップモータの制御装置は、目標停止位置の変化が短時
間の間に発生することはないので、ステップモータの目
標停止位置まで、予め設定した速度パターンに従ってス
テップモータを駆動して精度よく停止することに関心が
集中していた。
Controlling the stop position of the step motor in order to control the opening / closing amount of the throttle valve differs from a normal step motor control device in the following points. That is, the amount of depression of the accelerator changes from moment to moment depending on the operating state of the vehicle, and control of the opening / closing amount of the throttle valve with respect to the amount of depression of the accelerator also requires prompt responsiveness. However, a normal step motor control device does not change the target stop position within a short time, so the step motor is driven according to a preset speed pattern to the target stop position of the step motor, and the accuracy is improved. The focus was on stopping often.

【0004】アクセルの踏み込み量をステップモータを
利用して電子的に制御することに対する要望が高まる
中、スロットルバルブの開閉に使用するステップモータ
の制御方法については、例えば、特開昭61−1388
55号公報に、アクセルにより指示された目標値とステ
ップモータの現在値とを比較して、異なる場合に記憶手
段に記憶されているテーブルに従って、ステップモータ
の回転スピードを制御する方法が開示されている。
With a growing demand for electronically controlling the amount of depression of the accelerator by using a step motor, a method of controlling the step motor used for opening and closing the throttle valve is disclosed in, for example, Japanese Patent Laid-Open No. 61-1388.
Japanese Patent No. 55 discloses a method of comparing the target value instructed by the accelerator with the current value of the step motor and controlling the rotation speed of the step motor according to the table stored in the storage means when the values differ. There is.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、従来の
ステップモータ制御装置には、次に示すような問題があ
った。ステップモータ制御装置は、アクセルの踏み込み
量を計測するポテンショメータを一定のサンプリング時
間毎にサンプリングして、ステップモータをサンプリン
グした目標値に近づけ、目標値が一定になったときにス
テップモータを停止させる制御を行っている。そして、
ステップモータを速やかに目標値に回転させるために、
回転の開始時に急速に加速し、目標値に近づいたときに
減速する加減速サイクルを行う制御が通常行われてい
る。ここで、一般にアクセルは始め徐々に踏み込まれそ
の後急速に踏み込み量が増やされることが多い。これ
は、運転者の心理がブレーキとアクセルとを踏み間違え
ていないことを確認しようとするためである。
However, the conventional step motor control device has the following problems. The step motor control device samples a potentiometer that measures the amount of depression of the accelerator at regular sampling times to bring the step motor closer to the sampled target value, and to stop the step motor when the target value becomes constant. It is carried out. And
In order to quickly rotate the step motor to the target value,
Control is usually performed in which an acceleration / deceleration cycle is performed in which acceleration is rapidly performed at the start of rotation and deceleration is performed when the target value is approached. Here, in general, the accelerator is first depressed gradually, and then the depression amount is rapidly increased in many cases. This is in order to confirm that the driver's psychology does not mistake the brake and the accelerator.

【0006】従来のステップモータ制御装置におけるア
クセル踏み込み開始時の具体的な制御方法を図6に基づ
いて説明する。図中Aは、アクセルの踏み込み量をポテ
ンショメータでアナログデータとして計測した値を示し
ている。また、TSTEPは、アクセルデータAを一定
のサンプリング時間Sでサンプリングして、A/D変換
した目標値の変化を示している。ここで、サンプリング
時間Sは、自動車の主制御を担当するCPUが同時に種
々の機器を制御している関係から、一般に6m秒(以下
msと表示する。)程度で行われている。従って、アク
セルの踏み込み開始時期とサンプリング時期とは必ずし
も同期しない。そのため、アクセル変化後、最初のサン
プリングにおいては、その変化量が実際の時間当りの変
化量より少なくなることが有り得る。STEPは、ステ
ップモータの現在あるステップを示している。またMS
PDは、ステップモータに与えられる駆動パルスの条件
を示し、具体的には、駆動周波数および励磁時間として
与えられる。ここで、ステップモータに与えられる駆動
周波数、およびその励磁時間は、ステップモータの現在
位置と目標値との差より、例えば、図5に示すようなテ
ーブルを用いて与えられる。
A specific control method at the start of accelerator depression in the conventional step motor control device will be described with reference to FIG. In the figure, A indicates a value obtained by measuring the accelerator depression amount as analog data with a potentiometer. Further, TSTEP indicates a change in the target value obtained by sampling the accelerator data A at a constant sampling time S and performing A / D conversion. Here, the sampling time S is generally about 6 msec (hereinafter referred to as ms) because the CPU in charge of the main control of the vehicle controls various devices at the same time. Therefore, the accelerator depression start timing and the sampling timing are not always synchronized. Therefore, in the first sampling after the accelerator change, the change amount may be smaller than the actual change amount per time. STEP indicates the current step of the step motor. Also MS
PD indicates the condition of the drive pulse given to the step motor, and is specifically given as the drive frequency and the excitation time. Here, the drive frequency given to the step motor and its excitation time are given from the difference between the current position of the step motor and the target value, for example, using a table as shown in FIG.

【0007】すなわち、サンプリングプログラムは、常
にサンプリング間隔S=6msでアクセルデータAをサ
ンプリングしているので、時間t1でTSTEP=2を
読み込む。TSTEPが変化すると、ステップモータの
現在位置と目標値との差DSTEPをなくす方向に、ス
テップモータがMSPD=1に加速され始動される。そ
して、TSTEPが近いためSTEP=TSTEPにな
った時点でステップモータは停止される。そして、ステ
ップモータは一度停止されると、再起動するまでに一定
の停止時間Bをおく必要があったため、アクセルデータ
Aが急速に増加しているのに、STEPの追従が大きく
遅れ、スロットルバルブを運転者の意図に従って迅速に
制御できず、自動車のスピードを迅速に速くできない問
題があった。ステップモータを一度停止すると、再起動
するまでに一定の停止時間Bをおく必要があった理由
は、ステップモータを停止させたときにスロットルバル
ブ等駆動系の慣性等により振動が発生するので、すぐに
再起動するとステップモータが脱調を起こす恐れがある
ためである。図6に示すステップモータでは、約20m
sの停止時間をおいている。
That is, since the sampling program always samples the accelerator data A at the sampling interval S = 6 ms, TSTEP = 2 is read at the time t1. When TSTEP changes, the step motor is accelerated to MSPD = 1 and started in a direction to eliminate the difference DSTEP between the current position of the step motor and the target value. Since TSTEP is close, the step motor is stopped when STEP = TSTEP. Then, once the step motor is stopped, it is necessary to wait for a certain stop time B before it is restarted. Therefore, although the accelerator data A is rapidly increasing, the follow-up of STEP is greatly delayed and the throttle valve There was a problem that the car could not be controlled quickly according to the driver's intention, and the speed of the car could not be increased quickly. Once the step motor is stopped, it is necessary to wait a certain stop time B before restarting. The reason for this is that when the step motor is stopped, vibration occurs due to inertia of the drive system such as the throttle valve. This is because the step motor may step out if restarted. With the step motor shown in FIG. 6, about 20 m
There is a s stoppage time.

【0008】本発明は、上記問題点を解決するためにな
されたものであり、ステップモータを起動するときに、
迅速かつ正確に目標値に追従することのできるステップ
モータ制御装置を提供することを目的とする。
The present invention has been made to solve the above problems, and when the step motor is started,
An object of the present invention is to provide a step motor control device that can quickly and accurately follow a target value.

【0009】[0009]

【課題を解決するための手段】この目的を達成するため
本発明のステップモータ制御装置は、設定目標値とステ
ップモータの現在位置との差を演算して、その差に応じ
てステップモータを加速し、設定目標値に近づいた時に
ステップモータを減速させ、設定目標値でステップモー
タを停止させるステップモータ加減速手段とを有するス
テップモータ制御装置であって、一定値に保持されてい
た前記設定目標値に変化があった場合に、ステップモー
タを停止状態から起動する指令があったと判別する起動
指令判別手段と、前記起動指令判別手段がステップモー
タの起動指令があったと判断した場合に、所定遅延時間
経過した後に、前記ステップモータ加減速手段によりス
テップモータを起動させる起動遅延手段とを有してい
る。また、上記ステップモータ制御装置において、時間
経過に伴って変化する設定目標値を一定のサンプリング
時間毎にサンプリングするサンプリング手段を有し、前
記起動遅延手段が、サンプリングされた前記設定目標値
と前記定位置との差を演算して、その差に応じて前記起
動遅延時間を変更することを特徴とする。
In order to achieve this object, a step motor control device of the present invention calculates a difference between a set target value and the current position of the step motor, and accelerates the step motor according to the difference. And a step motor acceleration / deceleration means for decelerating the step motor when approaching the set target value and stopping the step motor at the set target value, the set target being held at a constant value. When there is a change in the value, a start command determination means for determining that there is a command to start the step motor from a stopped state, and a predetermined delay when the start command determination means determines that there is a start command for the step motor After a lapse of time, the stepping motor accelerating / decelerating means starts up the stepping motor. Further, in the above step motor control device, there is a sampling means for sampling a set target value that changes with the passage of time at a constant sampling time, and the activation delay means has the sampled set target value and the constant value. The difference from the position is calculated, and the activation delay time is changed according to the difference.

【0010】[0010]

【作用】このような構成を有する本発明のステップモー
タは、駆動系を介してエンジンのスロットルバルブを駆
動する。また、ステップモータ制御装置のサンプリング
手段は、時間経過に伴って変化するアクセルの踏み込み
量を計測するポテンショメータから設定目標値を一定の
サンプリング時間毎にサンプリングする。また、ステッ
プモータ加減速手段は、サンプリングされた設定目標値
とステップモータの現在位置との差を演算して、その差
に応じてステップモータを加速し、ステップモータの現
在位置が設定目標値に近づいた時にステップモータを減
速させ、設定目標値でステップモータを停止させる。
The step motor of the present invention having such a structure drives the throttle valve of the engine through the drive system. Further, the sampling means of the step motor control device samples a set target value from the potentiometer, which measures the amount of depression of the accelerator, which changes with the passage of time, at a constant sampling time. Further, the step motor acceleration / deceleration means calculates the difference between the sampled set target value and the current position of the step motor, accelerates the step motor according to the difference, and sets the current position of the step motor to the set target value. When approaching, the step motor is decelerated and stopped at the set target value.

【0011】起動指令判別手段は、定位置にあった前記
設定目標値に変化があった場合に、ステップモータを停
止状態から起動する指令があったと判別する。また、起
動遅延手段は、前記起動指令判別手段がステップモータ
の起動指令があったと判断した場合に、所定遅延時間経
過した後に、前記ステップモータ加減速手段によりステ
ップモータを起動させる。ここで、起動遅延手段は、サ
ンプリングされた前記設定目標値と前記定位置との差を
演算して、その差に応じて前記起動遅延時間を変更す
る。
The start command determination means determines that there is a command to start the step motor from the stopped state when the set target value at the fixed position changes. Further, the start delay means causes the step motor acceleration / deceleration means to start the step motor after a predetermined delay time has elapsed when the start instruction determination means determines that the step motor start instruction has been issued. Here, the activation delay means calculates a difference between the sampled set target value and the fixed position, and changes the activation delay time according to the difference.

【0012】[0012]

【実施例】以下、本発明を具体化した一実施例を図面を
参照して説明する。図1に第一の実施例であるステップ
モータ制御装置17の構成をブロック図で示す。自動車
用ガソリンエンジン11に、ガソリンと空気の混合気体
を吸気する吸気パイプ13が接続している。吸気パイプ
13には、ガソリンエンジン11に供給する混合気体の
量を調節するためのスロットルバルブ12が、吸気パイ
プ13に対してスロットル軸14を中心に回転可能に保
持されている。スロットル軸14は、減速機構を介して
ステップモータ15の出力軸に接続している。ステップ
モータ15は、ステップモータ制御装置17のステップ
モータ用の駆動回路18に接続している。駆動回路18
は、演算装置であるCPU19に接続している。CPU
19には、一時的にデータ等を記憶するためのRAM2
3、制御プログラム等を記憶しているROM22が接続
している。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the step motor control device 17 according to the first embodiment. An intake pipe 13 for inhaling a mixed gas of gasoline and air is connected to an automobile gasoline engine 11. A throttle valve 12 for adjusting the amount of mixed gas supplied to the gasoline engine 11 is held in the intake pipe 13 so as to be rotatable about a throttle shaft 14 with respect to the intake pipe 13. The throttle shaft 14 is connected to the output shaft of the step motor 15 via a reduction mechanism. The step motor 15 is connected to the step motor drive circuit 18 of the step motor controller 17. Drive circuit 18
Is connected to the CPU 19, which is an arithmetic unit. CPU
A RAM 2 for temporarily storing data etc. in 19
3. A ROM 22 storing a control program and the like is connected.

【0013】ROM22には、ポテンショメータ16が
計測するアクセルデータを一定のサンプリング時間T毎
にサンプリングするためのサンプリングプログラム24
が記憶されている。また、ROM22には、そのサンプ
リング値とステップモータの現在位置との差を演算し
て、その差に応じて駆動回路18を介してステップモー
タ15を加速し、ステップモータ15がサンプリング値
に近づいたときにステップモータ15を減速させ、サン
プリング値でステップモータ15を停止させるステップ
モータ加減速プログラム25が記憶されている。
The ROM 22 has a sampling program 24 for sampling the accelerator data measured by the potentiometer 16 at a constant sampling time T.
Is remembered. In addition, the ROM 22 calculates the difference between the sampled value and the current position of the step motor, accelerates the step motor 15 via the drive circuit 18 according to the difference, and the step motor 15 approaches the sampled value. A step motor acceleration / deceleration program 25 for decelerating the step motor 15 and stopping the step motor 15 at a sampling value is stored.

【0014】また、ROM22には、アクセル26の踏
み込み量が0から変化したことによりスロットルバルブ
12を駆動するステップモータ15に起動指令が出たと
判断する起動指令判別プログラム27が記憶されてい
る。起動指令判別プログラム27は、アクセル26が一
定時間以上一定に保持されていた後変化した場合にも、
ステップモータ15に起動指令が出たと判断する。ま
た、ROM22には、スロットルバルブ12を駆動する
ステップモータ15が起動されたときに、ステップモー
タ加減速プログラム25の実行を所定時間遅延させる起
動遅延プログラム28が記憶されている。また、CPU
19には、ポテンショメータ16が計測するアナログデ
ータであるアクセルデータAをA/D変換するためのA
/Dコンバータ20が接続している。A/Dコンバータ
20は、入力インターフェース21を介してアクセル2
6の踏み込み量を計測するためのポテンショメータ16
に接続している。
Further, the ROM 22 stores a start instruction determination program 27 for determining that a start instruction has been issued to the step motor 15 for driving the throttle valve 12 due to a change in the amount of depression of the accelerator 26 from zero. The start instruction determination program 27, even when the accelerator 26 changes after being held constant for a certain time or more,
It is determined that the stepping command is issued to the step motor 15. The ROM 22 also stores an activation delay program 28 that delays execution of the step motor acceleration / deceleration program 25 for a predetermined time when the step motor 15 that drives the throttle valve 12 is activated. Also, CPU
Reference numeral 19 indicates A for A / D conversion of accelerator data A which is analog data measured by the potentiometer 16.
The / D converter 20 is connected. The A / D converter 20 is connected to the accelerator 2 via the input interface 21.
Potentiometer 16 for measuring the depression amount of 6
Connected to.

【0015】次に、上記構成を有するステップモータ制
御装置17の作用について説明する。アクセル26が運
転者により操作されると、ポテンショメータ16がアク
セル26の移動量をリニアなアナログデータAとして計
測する。CPU19は、サンプリングプログラム24に
より、ポテンショメータ16のアナログデータを一定の
サンプリング時間S毎に入力インターフェース21から
取り込んで、A/Dコンバータ20によりA/D変換し
て、その値をサンプリングした目標値としてRAM23
に記憶する。ここで、本実施例では、サンプリング時間
は従来と同様に、S=6msとしている。
Next, the operation of the step motor control device 17 having the above configuration will be described. When the accelerator 26 is operated by the driver, the potentiometer 16 measures the amount of movement of the accelerator 26 as linear analog data A. The CPU 19 fetches the analog data of the potentiometer 16 from the input interface 21 at every constant sampling time S by the sampling program 24, A / D converts it by the A / D converter 20, and RAM 23 as the sampled target value.
Remember. Here, in this embodiment, the sampling time is S = 6 ms, as in the conventional case.

【0016】ステップモータの制御状態を説明するため
の図を図2に示す。図2において、TSTEPは、ポテ
ンショメータ16の計測値をサンプリング時間S=6m
s毎にA/D変換した値、すなわち、スロットルバルブ
12を駆動するステップモータ15が停止すべき目標ス
テップ位置を示している。STEPは、ステップモータ
15の現在あるステップ位置を示している。またMSP
Dは、ステップモータに与えられる駆動パルスの条件を
示し、具体的には、図5に示すように、駆動周波数およ
び励磁時間として与えられる。
FIG. 2 shows a diagram for explaining the control state of the step motor. In FIG. 2, TSTEP indicates the measurement value of the potentiometer 16 at the sampling time S = 6 m.
A value obtained by A / D conversion for each s, that is, a target step position at which the step motor 15 that drives the throttle valve 12 should be stopped is shown. STEP indicates the current step position of the step motor 15. Also MSP
D indicates the condition of the drive pulse given to the step motor, and specifically, as shown in FIG. 5, it is given as the drive frequency and the excitation time.

【0017】ステップモータ15の加減速の方法を説明
する。図3にステップモータ制御装置17のステップモ
ータ加減速プログラム25、起動指令判別プログラム2
7および起動遅延プログラム28の作用をフローチャー
トで示す。本フローチャートは、メインプログラムによ
り、またはステップモータ15が1ステップ動作完了す
るタイミングでタイマー割り込みにより起動される。始
めに、後述する起動遅延プログラム28が実行されたと
きに立てられる出力要求フラグが立っているか否かを判
断する。出力要求フラグが1でないときは(S1,N
O)、S2へ進む。出力要求フラグが1のときは(S
1,YES)、出力要求フラグを0にして(S11)、
S7へ進む。
A method of accelerating and decelerating the step motor 15 will be described. FIG. 3 shows a step motor acceleration / deceleration program 25 of the step motor control device 17 and a start command determination program 2
7 and the operation of the activation delay program 28 are shown in a flowchart. This flowchart is activated by the main program or by a timer interrupt when the step motor 15 completes one step operation. First, it is determined whether or not an output request flag that is set when the activation delay program 28 described later is executed is set. When the output request flag is not 1, (S1, N
O), proceed to S2. When the output request flag is 1 (S
1, YES), the output request flag is set to 0 (S11),
Proceed to S7.

【0018】目標ステップTSTEPに向けて、ステッ
プモータ15の現在あるステップSTEPを1ステップ
更新する(S2)。次に、目標ステップTSTEPとス
テップモータ15が現在あるステップSTEPとの差D
STEPを演算し、DSTEPと現在のステップモータ
15の速度MSPDとを比較して、DSTEP>MSP
DならばMSPDを1増加させてステップモータ15を
加速し(S3)、DSTEP<MSPDならばMSPD
を1減少させてステップモータ15を減速する(S
3)。DSTEP=MSPDならば、MSPDを変更せ
ずに等速を保持する(S3)。次に、ステップモータ1
5が一定時間停止状態にあったか否かを判断する。すな
わち、一定時間MSPD=0に保持されていた後で、今
回MSPD=1に変化した場合に起動と判断し(S4,
YES)、S5へ進む。
The current step STEP of the step motor 15 is updated by one step toward the target step TSTEP (S2). Next, the difference D between the target step TSTEP and the step STEP at which the step motor 15 is present is
STEP is calculated, DSTEP is compared with the current speed MSPD of the step motor 15, and DSTEP> MSP
If D, increase MSPD by 1 to accelerate the step motor 15 (S3). If DSTEP <MSPD, MSPD.
Is decremented by 1 to decelerate the step motor 15 (S
3). If DSTEP = MSPD, constant speed is maintained without changing MSPD (S3). Next, step motor 1
It is determined whether or not No. 5 has been stopped for a certain period of time. That is, after MSPD = 0 is held for a certain period of time, it is determined to be activated when MSPD = 1 is changed this time (S4.
(YES), the process proceeds to S5.

【0019】次に、ステップモータ15を起動を遅延さ
せるための遅延時間TDの演算を行う(S5)。アクセ
ル26の踏み込み量が始めゆっくりの場合に、最初の目
標値TSTEPが小さく、ステップモータ15がすぐに
到達して停止すると次に再起動するのに時間がかかり問
題であるので、最初の目標値TSTEPと現在ステップ
の偏差が小さいときは、長い遅延時間TDを採り、最初
の目標値TSTEPと現在ステップとの偏差が大きい場
合は、遅延時間TDを採る必要がない。
Next, the delay time TD for delaying the activation of the step motor 15 is calculated (S5). When the amount of depression of the accelerator 26 is slow at the beginning, the first target value TSTEP is small, and if the step motor 15 reaches and stops immediately, it takes time to restart next, which is a problem. When the deviation between TSTEP and the current step is small, the long delay time TD is adopted, and when the deviation between the first target value TSTEP and the current step is large, it is not necessary to adopt the delay time TD.

【0020】具体的には、遅延時間TDは、目標設定値
TSTEPとの偏差の大きさが1ステップの場合は、サ
ンプリング時間S=6msと同じに、TD=6msとし
ている。偏差が2ステップのときは、MSPD=1のと
きの励磁時間が2msであるから、TD=6−2=4m
sとしている。偏差が3ステップのときは、MSPD=
1のときの励磁時間が2msであり、MSPD=1が等
速で繰り返されるから、TD=6−2*2=2msとし
ている。偏差が4のときは、MSPD=1のときの励磁
時間が2msであり、MSPD=2のときの励磁時間が
1.429msであり、減速されて再びMSPD=1が
励磁されるから、TD=6−2*2−1.429=0.
571msとしている。また、偏差が5以上の場合は、
TD=0としている。
More specifically, the delay time TD is set to TD = 6 ms in the same manner as the sampling time S = 6 ms when the deviation from the target set value TSTEP is one step. When the deviation is 2 steps, the excitation time when MSPD = 1 is 2 ms, so TD = 6-2 = 4 m
s. When the deviation is 3 steps, MSPD =
When 1 is set, the excitation time is 2 ms, and MSPD = 1 is repeated at a constant speed, so TD = 6-2 * 2 = 2 ms. When the deviation is 4, the excitation time is 2 ms when MSPD = 1, and the excitation time is 1.429 ms when MSPD = 2. The speed is reduced and MSPD = 1 is excited again, so TD = 6-2 * 2-1.429 = 0.
571 ms. If the deviation is 5 or more,
TD = 0 is set.

【0021】次に、TD=0のときは(S6,YE
S)、S7へ進む。また、TD=0でないときは(S
6,NO)、出力要求フラグを1として(S9)、TD
時間遅延させた後で割り込みをかけてS1へ戻す(S1
0)。次に、本実施例では、4相のステップモータを1
−2相励磁で制御しているので、ステップモータの現在
ステップSTEPの下位3ビットの値より図4に示すパ
ターンで、図5に示す駆動周波数でステップモータ15
の励磁を行う(S7)。ここで、図5に示す励磁時間が
割り込み時間としてセットされることにより(S8)、
割り込み時間経過後再びS1へ進むため、ステップモー
タ15は図5に示す励磁時間だけ励磁される。
Next, when TD = 0, (S6, YE
S) and S7. When TD = 0 is not satisfied (S
6, NO), the output request flag is set to 1 (S9), TD
After delaying for a time, interrupt and return to S1 (S1
0). Next, in this embodiment, a 4-phase step motor is
Since the control is performed by the -2 phase excitation, the step motor 15 is driven at the drive frequency shown in FIG. 5 according to the pattern shown in FIG.
Is excited (S7). Here, by setting the excitation time shown in FIG. 5 as the interrupt time (S8),
Since the process proceeds to S1 again after the interruption time has elapsed, the step motor 15 is excited for the excitation time shown in FIG.

【0022】次に、上記フローチャートを具体例により
説明する。図2のステップST1Aの位置にあるとき、
出力要求フラグは立っていないので(S1,NO)、S
2へ進む。そして、そのステップを基準とすれば、ST
EP=0であるから、ステップ更新することによりST
EP=1となる(S2)。次に、TSTEP=2、ST
EP=1であるから、DSTEP=1となる。そして、
MSPD=0、DSTEP=2であるからDSTEP>
MSPDとなりMSPD=1として増速する(S3)。
次に、MPSDが0から1に変化したので、起動指令が
出たと判断して(S4,YES)、遅延時間TDを計算
する。すなわち、ST1AとTSTEPとの偏差が2で
あるから、TD=4msとする(S5)。次に、TD=
0でないから(S6,NO)、出力要求フラグを1とす
る(S9)。
Next, the above flow chart will be described with reference to a concrete example. At the position of step ST1A in FIG. 2,
Since the output request flag is not set (S1, NO), S
Go to 2. Based on that step, ST
Since EP = 0, ST is updated by step updating.
EP = 1 (S2). Next, TSTEP = 2, ST
Since EP = 1, DSTEP = 1. And
Since MSPD = 0 and DSTEP = 2, DSTEP>
It becomes MSPD and the speed is increased with MSPD = 1 (S3).
Next, since MPSD has changed from 0 to 1, it is determined that a start command has been issued (S4, YES), and the delay time TD is calculated. That is, since the deviation between ST1A and TSTEP is 2, TD = 4 ms (S5). Next, TD =
Since it is not 0 (S6, NO), the output request flag is set to 1 (S9).

【0023】次に、TD=4msの間、MSPD=1の
励磁を遅延させる(S10)。すなわち、TD=4ms
経過後S1へ進む。次に、ST1Bにおいて、出力要求
フラグが立っているので(S1,YES)、出力要求フ
ラグを0として(S11)、S7へ進む。
Next, the excitation of MSPD = 1 is delayed for TD = 4 ms (S10). That is, TD = 4 ms
After the lapse of time, the process proceeds to S1. Next, in ST1B, since the output request flag is set (S1, YES), the output request flag is set to 0 (S11), and the process proceeds to S7.

【0024】次に、図5に示す駆動周波数500pps
の駆動パルスを、ステップの下位3ビットより図4に示
す所定の励磁パターンで駆動回路18を介してステップ
モータ15に与える(S7)。次に、図5の励磁時間に
示す時間経過後、割り込みを行ってS1へ進む。これに
より、2.000msの時間、上記駆動パルスが与えら
れる。そして、ステップモータの現在位置ステップST
EPはST2になる。
Next, the driving frequency shown in FIG. 5 is 500 pps.
Drive pulse is applied to the step motor 15 from the lower 3 bits of the step through the drive circuit 18 in a predetermined excitation pattern shown in FIG. 4 (S7). Next, after a lapse of time shown by the excitation time in FIG. 5, an interrupt is made and the process proceeds to S1. As a result, the drive pulse is applied for a time of 2.000 ms. Then, the current position step ST of the step motor
EP becomes ST2.

【0025】ST2の場合は、TSTEP=7、DST
EP=7−2=5であるから、MSPD=2に増速され
る(S3)。次に、起動ではないので(S4,NO)、
S8へ進む。次に、MSPD=2であるから図5によ
り、駆動周波数700ppsの駆動パルスを与える(S
7)。次に、図5の励磁時間に示す時間経過後、割り込
みを行ってS1へ進む。これにより、1.429msの
時間、上記駆動パルスが与えられる。そして、ステップ
モータの現在位置ステップSTEPはST3になる。
In the case of ST2, TSTEP = 7, DST
Since EP = 7-2 = 5, the speed is increased to MSPD = 2 (S3). Next, because it is not starting (S4, NO),
Proceed to S8. Next, since MSPD = 2, a drive pulse having a drive frequency of 700 pps is given according to FIG. 5 (S
7). Next, after a lapse of time shown by the excitation time in FIG. 5, an interrupt is made and the process proceeds to S1. As a result, the drive pulse is applied for 1.429 ms. Then, the current position step STEP of the step motor becomes ST3.

【0026】ST3の場合は、TSTEP=7、DST
EP=7−3=4であるから、MSPD=3に増速され
る(S3)。次に、起動ではないので(S4,NO)、
S8へ進む。次に、MSPD=3であるから図5によ
り、駆動周波数843ppsの駆動パルスを与える(S
7)。次に、図5の励磁時間に示す時間経過後、割り込
みを行ってS1へ進む。これにより、1.186msの
時間、上記駆動パルスが与えられる。そして、ステップ
モータの現在位置ステップSTEPはST4になる。こ
のようにして、サンプリングプログラム24により6m
s毎にサンプリングされる目標ステップTSTEPに、
現在ステップSTEPを順次近づける制御が行われる。
In the case of ST3, TSTEP = 7, DST
Since EP = 7-3 = 4, the speed is increased to MSPD = 3 (S3). Next, because it is not starting (S4, NO),
Proceed to S8. Next, since MSPD = 3, a drive pulse having a drive frequency of 843 pps is given according to FIG. 5 (S
7). Next, after a lapse of time shown by the excitation time in FIG. 5, an interrupt is made and the process proceeds to S1. As a result, the drive pulse is applied for 1.186 ms. Then, the current position step STEP of the step motor becomes ST4. In this way, 6m by the sampling program 24
At the target step TSTEP sampled every s,
At present, control is performed to sequentially bring the step STEP closer.

【0027】以上詳細に説明したように、本実施例のス
テップモータ制御装置によれば、アクセル26の踏み込
み量をサンプリングした目標値に応じて、ステップモー
タ15を起動するときに、最初の励磁をかけるタイミン
グを所定の遅延時間TDだけ遅延させているので、アク
セル26の踏み込み量が始め小さくても、ステップモー
タが途中で停止することがないため、アクセル26の踏
み込み量に応じてスロットルバルブ12を迅速かつ正確
に追従させることができる。
As described in detail above, according to the step motor controller of this embodiment, the first excitation is performed when the step motor 15 is started according to the target value obtained by sampling the depression amount of the accelerator 26. Since the application timing is delayed by the predetermined delay time TD, even if the depression amount of the accelerator 26 is small at the beginning, the step motor does not stop midway. Therefore, the throttle valve 12 is set according to the depression amount of the accelerator 26. It can be followed quickly and accurately.

【0028】以上、いくつかの実施例について本発明を
説明したが、本発明は上記実施例に何ら限定されるもの
ではなく、本発明の趣旨を逸脱しない範囲で種々の変形
改良が可能であることは容易に推察できるものである。
本実施例では、スロットルバルブを駆動するステップモ
ータの制御装置について説明したが、時々刻々変化する
目標値にステップモータを迅速に追従させる場合であれ
ば他の用途にも適用できる。
Although the present invention has been described with reference to some embodiments, the present invention is not limited to the above embodiments, and various modifications and improvements can be made without departing from the spirit of the present invention. This can be easily guessed.
In the present embodiment, the control device for the step motor that drives the throttle valve has been described, but the present invention can be applied to other applications as long as the step motor quickly follows a target value that changes momentarily.

【0029】[0029]

【発明の効果】以上説明したことから明かなように、本
発明のステップモータ制御装置によれば、定位置にあっ
た前記設定目標値に変化があった場合に、ステップモー
タを停止状態から起動する指令があったと判別する起動
指令判別手段と、前記起動指令判別手段がステップモー
タの起動指令があったと判断した場合に、所定遅延時間
経過した後に、前記ステップモータ加減速手段によりス
テップモータを起動させる起動遅延手段とを有している
ので、サンプリングされた設定目標値に応じて、ステッ
プモータを起動するときに、最初の励磁をかけるタイミ
ングを所定の遅延時間だけ遅延させているので、設定目
標値の最初の変化が始め小さくても、ステップモータが
途中で停止することがないため、設定目標値の変化量に
応じてステップモータを迅速かつ正確に追従させること
ができる。
As is apparent from the above description, according to the step motor control device of the present invention, when the set target value at the fixed position is changed, the step motor is started from the stopped state. Start command determining means for determining that there is a command to start the step motor, and when the start command determining means determines that there is a step motor starting command, the step motor acceleration / deceleration means starts the step motor after a predetermined delay time has elapsed. Since it has a starting delay means for starting, when the step motor is started, the timing for applying the first excitation is delayed by a predetermined delay time according to the sampled set target value. Even if the initial change in the value is small at the beginning, the step motor does not stop midway, so the step It can be quickly and accurately follow the data.

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

【図1】本発明の一実施例であるステップモータ制御装
置の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of a step motor control device that is an embodiment of the present invention.

【図2】上記ステップモータ制御装置により制御された
ステップモータの制御状態を示す説明図である。
FIG. 2 is an explanatory diagram showing a control state of a step motor controlled by the step motor control device.

【図3】上記ステップモータ制御装置の作用を示すフロ
ーチャートである。
FIG. 3 is a flowchart showing an operation of the step motor control device.

【図4】ステップモータの励磁パターンを示すデータ図
である。
FIG. 4 is a data diagram showing an excitation pattern of a step motor.

【図5】ステップモータの加減速用の駆動パルスを示す
データ図である。
FIG. 5 is a data diagram showing drive pulses for acceleration / deceleration of a step motor.

【図6】従来のステップモータ制御装置により制御され
たステップモータの制御状態を示す説明図である。
FIG. 6 is an explanatory diagram showing a control state of a step motor controlled by a conventional step motor control device.

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

12 スロットルバルブ 15 ステップモータ 16 ポテンショメータ 17 ステップモータ制御装置 18 駆動回路 19 CPU 20 A/Dコンバータ 24 サンプリングプログラム 25 ステップモータ加減速プログラム 27 起動指令判別プログラム 28 起動遅延プログラム TD 遅延時間 12 Throttle Valve 15 Step Motor 16 Potentiometer 17 Step Motor Controller 18 Drive Circuit 19 CPU 20 A / D Converter 24 Sampling Program 25 Step Motor Acceleration / Deceleration Program 27 Start Command Discrimination Program 28 Start Delay Program TD Delay Time

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 設定目標値とステップモータの現在位置
との差を演算して、その差に応じてステップモータを加
速し、設定目標値に近づいた時にステップモータを減速
させ、設定目標値でステップモータを停止させるステッ
プモータ加減速手段とを有するステップモータ制御装置
において、 一定値に保持されていた前記設定目標値に変化があった
場合に、ステップモータを停止状態から起動する指令が
あったと判別する起動指令判別手段と、 前記起動指令判別手段がステップモータの起動指令があ
ったと判断した場合に、所定遅延時間経過した後に、前
記ステップモータ加減速手段によりステップモータを起
動させる起動遅延手段とを有することを特徴とするステ
ップモータ制御装置。
1. A difference between a set target value and the current position of the step motor is calculated, the step motor is accelerated according to the difference, and the step motor is decelerated when the set target value is approached. In a step motor control device having a step motor acceleration / deceleration means for stopping the step motor, if there is a command to start the step motor from a stopped state when the set target value held at a constant value changes. A start command determining means for determining, and a start delay means for starting the step motor by the step motor accelerating / decelerating means after a predetermined delay time has elapsed when the start command determining means determines that there is a start command for the step motor. A stepping motor control device comprising:
【請求項2】 請求項1に記載するものにおいて、 時間経過に伴って変化する設定目標値を一定のサンプリ
ング時間毎にサンプリングするサンプリング手段を有
し、 前記起動遅延手段が、サンプリングされた前記設定目標
値と前記定位置との差を演算して、その差に応じて前記
起動遅延時間を変更することを特徴とするステップモー
タ制御手段。
2. The apparatus according to claim 1, further comprising sampling means for sampling a set target value that changes with time, at a constant sampling time, and the activation delay means includes the sampled setting. Step motor control means for calculating a difference between a target value and the fixed position, and changing the starting delay time according to the difference.
JP5154284A 1993-05-31 1993-05-31 Stepping motor controller Pending JPH06343298A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5154284A JPH06343298A (en) 1993-05-31 1993-05-31 Stepping motor controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5154284A JPH06343298A (en) 1993-05-31 1993-05-31 Stepping motor controller

Publications (1)

Publication Number Publication Date
JPH06343298A true JPH06343298A (en) 1994-12-13

Family

ID=15580790

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5154284A Pending JPH06343298A (en) 1993-05-31 1993-05-31 Stepping motor controller

Country Status (1)

Country Link
JP (1) JPH06343298A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100724259B1 (en) * 2006-03-30 2007-05-31 지멘스 오토모티브 주식회사 Method for controlling step motor of car
KR100725697B1 (en) * 2006-03-30 2007-06-07 지멘스 오토모티브 주식회사 Method for controlling step motor of car

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100724259B1 (en) * 2006-03-30 2007-05-31 지멘스 오토모티브 주식회사 Method for controlling step motor of car
KR100725697B1 (en) * 2006-03-30 2007-06-07 지멘스 오토모티브 주식회사 Method for controlling step motor of car

Similar Documents

Publication Publication Date Title
JPS62291449A (en) Adaptation controller for automobile engine throttle operator
US4955346A (en) Throttle control apparatus of internal combustion engine
JPS62258825A (en) Vehicle speed automatic control method and its device
JP2942441B2 (en) Step motor control device
JPH06343298A (en) Stepping motor controller
JPS5945515A (en) Method for controlling position of motor
JP3213121B2 (en) Step motor control device
JPH06336943A (en) Step motor controller
JPH10288052A (en) Throttle valve control device
JPH0734945A (en) Throttle valve control device
JPH0617662B2 (en) Slot valve control method
JP3352517B2 (en) Driving device for stepping motor
JP3020713B2 (en) Stepping motor driving method and device
JPH062598A (en) Step motor control device
JP4063458B2 (en) Diesel engine control device
JPH08186997A (en) Origin resetting control method for pulse motor
JPH06233594A (en) Controller of stepping motor
JPS63171198A (en) Controller for air quantity
JP2766683B2 (en) Constant speed traveling control device
JP3203697B2 (en) Electronic governor control device
JP2000299997A (en) Drive control system
JP2848636B2 (en) Constant speed traveling control device
JP2534814B2 (en) Engine controller
JPH08214595A (en) Controller of stepping motor
JPH06225592A (en) Controller for stepping motor

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term