JPH0315300A - Stepping motor controller - Google Patents

Stepping motor controller

Info

Publication number
JPH0315300A
JPH0315300A JP14858589A JP14858589A JPH0315300A JP H0315300 A JPH0315300 A JP H0315300A JP 14858589 A JP14858589 A JP 14858589A JP 14858589 A JP14858589 A JP 14858589A JP H0315300 A JPH0315300 A JP H0315300A
Authority
JP
Japan
Prior art keywords
excitation phase
minimum
data
exciting phase
stepping motor
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
JP14858589A
Other languages
Japanese (ja)
Inventor
Yoshio Nishimoto
西本 吉男
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP14858589A priority Critical patent/JPH0315300A/en
Publication of JPH0315300A publication Critical patent/JPH0315300A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve control accuracy by controlling the duration of each exciting phase signal for a plurality of step motors through control means according to the minimum exciting phase duration calculated through an operating means. CONSTITUTION:A maximum settable value is set, as an initial value, in a timer 5. Then judgement is made whether phase duration data are 0, and when the data are zero an exciting phase duration is taken out from a table 4 in order to modify the exciting phase duration data, thereafter next exciting phase signal data are read out from a memory 3 and subjected to operation. Then judgement is made whether the exciting phase duration data are smaller than the minimum duration data, and if the exciting phase duration data are smaller than the minimum duration data, content of the exciting phase duration data are substituted with the minimum duration data. Thereafter, the minimum duration data are subtracted from the exciting phase duration data for each motor.

Description

【発明の詳細な説明】 く産業上の利用分野〉 本発明は、複数のステッピングモーターを1個のCPU
により制御する制御装置に関する。
[Detailed Description of the Invention] Industrial Application Fields The present invention provides a method for integrating a plurality of stepping motors into one CPU.
The present invention relates to a control device that controls by.

く従来の技術〉 第4図はこの種の制御装置の構或を示している。Conventional technology FIG. 4 shows the structure of this type of control device.

このシステムでは、ステッピングモーター7の回転速度
の制御を、モーター内のコイルを流れる電流を制御する
励磁相信号の保持時間を制御することにより行う。なお
、図中※印を付した要素がモーターの個数だけ存在する
In this system, the rotational speed of the stepping motor 7 is controlled by controlling the holding time of an excitation phase signal that controls the current flowing through the coil in the motor. Note that there are as many elements marked with * in the diagram as there are motors.

励磁相信号保持時間データメモリー2は、励磁相信号保
持時間データを記憶する。この励磁相信号保持時間デー
タは、励磁相信号のあるパターンの開始から次のパター
ンの開始までの時間である。
The excitation phase signal retention time data memory 2 stores excitation phase signal retention time data. This excitation phase signal retention time data is the time from the start of one pattern of the excitation phase signal to the start of the next pattern.

励磁相信号データメモリー3は、励磁相信号データを記
憶している。この励磁相信号データは、次のタイごング
での励磁相信号のビフトパターンであり、このビットパ
ターンはステッピングモーター7の励磁方式によって固
定されたものである。
The excitation phase signal data memory 3 stores excitation phase signal data. This excitation phase signal data is a bift pattern of the excitation phase signal in the next timing, and this bit pattern is fixed by the excitation method of the stepping motor 7.

励磁相保持時間テーブル4は、あらかじめ用意されてい
る励磁相保持時間データの列を記憶している。タイマー
5は、設定された時間になると、それをCPU 1に知
らせる機能をもったハードウエアであり、励磁相を切換
える時間をカウントする。
The excitation phase holding time table 4 stores a column of excitation phase holding time data prepared in advance. The timer 5 is hardware that has a function of notifying the CPU 1 when a set time is reached, and counts the time for switching the excitation phase.

ドライバー6は、CPUIから与えられる励磁相信号デ
ータをラソチし、このデータにしたがってステッピング
モーター7へ供給する電流を制御する。
The driver 6 analyzes the excitation phase signal data given from the CPUI, and controls the current supplied to the stepping motor 7 according to this data.

第5図は動作手順を示している。まず、励磁相信号メモ
リー3から励磁相信号データを読み出し、これをドライ
バー6へ出力する(ステップ#1)。
FIG. 5 shows the operating procedure. First, excitation phase signal data is read from the excitation phase signal memory 3 and outputted to the driver 6 (step #1).

次にタイマー5にカウントの最小単位時間を設定し、タ
イムカウントを開始する(#2)。続いて、励磁相信号
保持時間データメモリー2から読み出した励磁相信号保
持時間データから1を減算する(#3).励磁相信号保
持時間データを判定し(#4)、これがOでないときは
タイマー5がタイムアップすると、ステップ#1へ戻る
。励磁相信号保持時間データが0になると、次の励磁相
信号データを励磁相信号データメモリー3から読み出し
、これを演算処理により調整し(#5)、続いて次の励
磁相保持時間データを設定し(#6)、タイマー5がタ
イムアソプすると、ステップ#1へ戻る。
Next, the minimum unit time for counting is set in the timer 5, and time counting is started (#2). Next, 1 is subtracted from the excitation phase signal retention time data read from the excitation phase signal retention time data memory 2 (#3). The excitation phase signal holding time data is determined (#4), and when the timer 5 times out when this is not O, the process returns to step #1. When the excitation phase signal holding time data becomes 0, the next excitation phase signal data is read from the excitation phase signal data memory 3, this is adjusted by arithmetic processing (#5), and the next excitation phase holding time data is then set. When the timer 5 completes the time adjustment (#6), the process returns to step #1.

く発明が解決しようとする課題〉 上記従来の制御装置においては、1個のCPUによって
制御するステッピングモーターの個数が多くなると、最
小単位時間を内部処理時間の関係から小さくできず、こ
れが高速化を妨げる原因になっていた。一方、ステッピ
ングモーターの個数が多く、最小単位時間が小さい場合
には、いくつかのモーターについての処理が完了しない
間に時間が経過してしまい、カウントダウンができなく
なる。これは制御精度を低下させる原因になっていた。
Problems to be Solved by the Invention In the conventional control device described above, when the number of stepping motors controlled by one CPU increases, the minimum unit time cannot be reduced due to internal processing time, and this makes it difficult to increase the speed. It was causing a hindrance. On the other hand, if the number of stepping motors is large and the minimum unit time is small, time will elapse while processing for some motors is not completed, making it impossible to count down. This caused a decrease in control accuracy.

く課題を解決するための手段〉 本発明は、複数のステノピングモーターの回転速度を1
個のCPUにより制御するステッピングモーターの制御
装置において、ステンピングモーターのコイルを流れる
電流を制御する励磁相信号の保持時間を制御する制御手
段と、各ステッピングモーターの励磁相切換処理におけ
る最も近い励磁相の切換えまでの時間の最小単位時間で
量子化された最小保持時間データを算出する演算手段と
を備え、上記演算手段により算出された励磁相保持時間
の最小値にしたがって上記制御手段は励磁相信号の保持
時間を制御することを特徴としている。
Means for Solving the Problems> The present invention reduces the rotational speed of a plurality of stenoping motors to one
In a stepping motor control device controlled by a CPU, there is provided a control means for controlling the holding time of an excitation phase signal that controls the current flowing through the coil of the stepping motor, and the nearest excitation phase in excitation phase switching processing of each stepping motor. and a calculation means for calculating minimum retention time data quantized in the minimum unit time of the time until switching, and the control means controls the excitation phase signal according to the minimum value of the excitation phase retention time calculated by the calculation means It is characterized by controlling the retention time of

く作用〉 本発明によるステッピングモーターの制御装置において
は、演算手段により算出された励磁相保持時間の最小値
にしたがって、制御手段は複数のステッピングモーター
の各々の励磁相信号の保持時間を制御することを特徴と
している。
Function> In the stepping motor control device according to the present invention, the control means controls the holding time of the excitation phase signal of each of the plurality of stepping motors according to the minimum value of the excitation phase holding time calculated by the calculation means. It is characterized by

く実施例〉 第1図は本実施例のステッピングモーターの制御装置の
構戊を示している。図において、1はCPU、2は励磁
相保持時間データメモリー、3は励磁相信号データメモ
リー、4は励磁相保持時間テーブル、5はタイマー、6
はドライバー、7はステッピングモーター、8は最小保
持時間データメモリーである。構或上は、最小保持時間
データメモリー8を除いて従来の構或(第4図)と同じ
であり、同し要素については第4図と同符号を付してい
る。なお、図中※印を付した要素については、ステ,ビ
ングモーターと同じ個数だけある。
Embodiment FIG. 1 shows the structure of a stepping motor control device according to this embodiment. In the figure, 1 is a CPU, 2 is an excitation phase retention time data memory, 3 is an excitation phase signal data memory, 4 is an excitation phase retention time table, 5 is a timer, and 6
is a driver, 7 is a stepping motor, and 8 is a minimum retention time data memory. The structure is the same as the conventional structure (FIG. 4) except for the minimum retention time data memory 8, and the same elements are given the same reference numerals as in FIG. 4. In addition, there are the same number of elements marked with * in the diagram as there are steering and bing motors.

最小保持時間データメモリー8が記憶する最小保持時間
データは、励磁相切換処理における最も近い励磁相の切
換えまでの時間の最小単位時間で量子化されたデータで
ある。第2図は2個のステノピングモーターA,Bの間
の励磁相の変化と最小保持時間データの関係を示してい
る。モーターAの励磁相の切り換わりとモーターBの励
磁相の切り換わりとの間の時間の中の最小の時間が最小
保持時間である。
The minimum retention time data stored in the minimum retention time data memory 8 is data quantized in the minimum unit time of the time until switching of the nearest excitation phase in the excitation phase switching process. FIG. 2 shows the relationship between the change in excitation phase and the minimum holding time data between the two stenoping motors A and B. The minimum time between the switching of the excitation phase of motor A and the switching of the excitation phase of motor B is the minimum holding time.

第3図は処理手順を示している。FIG. 3 shows the processing procedure.

まず、タイマー5に設定可能な最大値を最小保持時間デ
ータの初期値として設定する(ステップ#1)。次に、
励磁相保持時間データがOかどうか判定し(#2)、O
であるときには次の励位相保持時間値をテーブル4より
取り出し励磁相保持時間データを変更し(#3)、次の
励磁相信号データをメモリー3より読み出し演算を施し
設定する(#4)。
First, the maximum value that can be set in the timer 5 is set as the initial value of the minimum retention time data (step #1). next,
Determine whether the excitation phase holding time data is O (#2), and
When this is the case, the next excitation phase holding time value is taken out from table 4 and the excitation phase holding time data is changed (#3), and the next excitation phase signal data is read out from memory 3 and set by calculation (#4).

そして、励磁相保持時間データが最小保持時間データよ
り小さいかどうかを判定し(#5)、励磁相保持時間デ
ータが最小保持時間データよりも小さいときには、励磁
相保持時間データの内容を最小保持時間データに代入す
る(#6)。励磁相保持時間データが最小保持時間デー
タよりも小さくないときには、最小保持時間データの変
更は行わない。
Then, it is determined whether the excitation phase retention time data is smaller than the minimum retention time data (#5), and if the excitation phase retention time data is smaller than the minimum retention time data, the content of the excitation phase retention time data is changed to the minimum retention time. Assign to data (#6). When the excitation phase holding time data is not smaller than the minimum holding time data, the minimum holding time data is not changed.

また、ステソプ#2において判定結果がOでないときに
は、ステップ#5へ移行する。
Further, when the determination result in step #2 is not O, the process moves to step #5.

以上のステソプ#2よりステソブ#6までの処理をステ
・ノピングモータの個数だけ実行する。
The above processes from step #2 to step #6 are executed for the number of step knocking motors.

その後、各モータの励磁相保持時間データから最小保持
時間データを減算する(#7)。
After that, the minimum holding time data is subtracted from the excitation phase holding time data of each motor (#7).

以上の処理の後、タイマー5がタイムアンプすると(#
8)、励磁相信号データをドライバー6へ出力する(#
9)。そして、タイマー5に最小保持時間データを設定
しタイマーを起動して、ステップ#2に戻る。
After the above processing, when timer 5 time amps (#
8) Output the excitation phase signal data to the driver 6 (#
9). Then, the minimum holding time data is set in the timer 5, the timer is activated, and the process returns to step #2.

なお、第3図中※印は、この処理がステッピングモータ
ーの個数だけ実行されることを示している。
Note that the mark * in FIG. 3 indicates that this process is executed for the number of stepping motors.

く発明の効果〉 本発明によれば、モーター制御処理が入るのが最大全モ
ーターの励磁相切換え回数になるので、切換え間の時間
を小さくすることができる。したがって、ステッピング
モーターの高速化が達成できる。また、いくつかのモー
ターについて処理が完了しないうちにタイムアップして
時間がずれるといったことがないので、制御精度の劣化
が防止できる。さらに、励磁相切換処理以外の時間に別
の処理が実行可能となるので、システムの利用効率が向
上する。
Effects of the Invention According to the present invention, since the motor control process is performed at the maximum number of times the excitation phase is switched for all motors, the time between switching can be reduced. Therefore, higher speed stepping motors can be achieved. Further, since there is no possibility that the time will be delayed due to a time-out before processing is completed for some motors, deterioration of control accuracy can be prevented. Furthermore, since other processes can be executed at times other than the excitation phase switching process, the system utilization efficiency is improved.

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

第1図は本発明実施例の構戒を示すブロソク図、第2図
は本発明実施例の信号波形を示す図、第3図は本発明実
施例の処理手順を示す流れ図、第4図は従来例の構或を
示すブロソク図、第5図は従来例の処理手順を示す流れ
図である。 1 ・ ・ ・ CPU ・励磁相保持時間データメモリー ・励磁相信号データメモリー ・励磁相保持時間テーブル タイマー ドライバー ステッピングモーター 最小保持時間データメモリー 第2閃 ※
Fig. 1 is a block diagram showing the structure of the embodiment of the present invention, Fig. 2 is a diagram showing signal waveforms of the embodiment of the invention, Fig. 3 is a flowchart showing the processing procedure of the embodiment of the invention, and Fig. 4 is FIG. 5 is a block diagram showing the structure of the conventional example, and FIG. 5 is a flowchart showing the processing procedure of the conventional example. 1 ・ ・ ・ CPU ・Excited phase holding time data memory ・Excited phase signal data memory ・Excited phase holding time table timer driver stepping motor minimum holding time data memory 2nd flash*

Claims (1)

【特許請求の範囲】[Claims]  複数のステッピングモーターの回転速度を1個のCP
Uにより制御するステッピングモーターの制御装置にお
いて、ステッピングモーターのコイルを流れる電流を制
御する励磁相信号の保持時間を制御する制御手段と、各
ステッピングモーターの励磁相切換処理における最も近
い励磁相の切換えまでの時間の最小単位時間で量子化さ
れた最小保持時間データを算出する演算手段とを備え、
上記演算手段により算出された励磁相保持時間の最小値
にしたがって上記制御手段は励磁相信号の保持時間を制
御することを特徴とするステッピングモーターの制御装
置。
The rotational speed of multiple stepping motors can be combined into one CP.
A control device for a stepping motor controlled by U includes a control means for controlling the holding time of an excitation phase signal that controls the current flowing through the coil of the stepping motor, and switching of the nearest excitation phase in excitation phase switching processing of each stepping motor. and calculation means for calculating the minimum retention time data quantized in the minimum unit time of the time,
A control device for a stepping motor, wherein the control means controls the holding time of the excitation phase signal in accordance with the minimum value of the excitation phase holding time calculated by the calculation means.
JP14858589A 1989-06-12 1989-06-12 Stepping motor controller Pending JPH0315300A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14858589A JPH0315300A (en) 1989-06-12 1989-06-12 Stepping motor controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14858589A JPH0315300A (en) 1989-06-12 1989-06-12 Stepping motor controller

Publications (1)

Publication Number Publication Date
JPH0315300A true JPH0315300A (en) 1991-01-23

Family

ID=15456038

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14858589A Pending JPH0315300A (en) 1989-06-12 1989-06-12 Stepping motor controller

Country Status (1)

Country Link
JP (1) JPH0315300A (en)

Similar Documents

Publication Publication Date Title
JPS63225837A (en) System for vector access with distance
JPH0526439B2 (en)
JPS61246840A (en) Performance adjusting system for information processor
JPH0315300A (en) Stepping motor controller
JP3538358B2 (en) Programmable controller
JPS60255081A (en) Speed control system of sewing maghine
JP3736123B2 (en) Power control circuit
JP2003274695A (en) Stepping motor control circuit
JPS6087699A (en) Drive controller of stepping motor
JPH07264894A (en) Control circuit for stepping motor
JPS63174594A (en) Method and device for driving stepping motor
JPS61141041A (en) Program activating method in computer system
JPH0138692Y2 (en)
JP2770502B2 (en) Electronic disk drive control method
JPH02130794A (en) System for controlling refresh of storage device
JPH0540725A (en) Input and output controller
JPH0635696A (en) Controller
JP2000099453A (en) Input and output control device and method for controlling dma transfer
JPS61193255A (en) Operation method for high speed central processing unit
JPH07298692A (en) Controller and control method for four-phase stepper motor
JP2004236451A (en) Control method for stepping motor
JPH03252740A (en) Instruction generation control system
JPH05225049A (en) Controller
JPH05233851A (en) Microprocessor
JPH10191695A (en) Device for driving stepping motor