JPS61154491A - Motor controller - Google Patents

Motor controller

Info

Publication number
JPS61154491A
JPS61154491A JP59273334A JP27333484A JPS61154491A JP S61154491 A JPS61154491 A JP S61154491A JP 59273334 A JP59273334 A JP 59273334A JP 27333484 A JP27333484 A JP 27333484A JP S61154491 A JPS61154491 A JP S61154491A
Authority
JP
Japan
Prior art keywords
counter
speed
time
interrupt pulse
current
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
JP59273334A
Other languages
Japanese (ja)
Inventor
Masaki Obara
正樹 小原
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP59273334A priority Critical patent/JPS61154491A/en
Publication of JPS61154491A publication Critical patent/JPS61154491A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P23/00Arrangements or methods for the control of AC motors characterised by a control method other than vector control
    • H02P23/16Controlling the angular speed of one shaft

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

PURPOSE:To eliminate the sampling delay between speed and current controls by providing two counters, controlling the speed at every pulse of the first counter, and controlling the current at every pulse of the second counter. CONSTITUTION:The first counter 2 for generating an interrupt pulse at every prescribed time T1 and the second counter 3 started by the first counter 3 for generating an interrupt pulse after a time T2 equal to the all executing time of a speed control program are provided in a digital controller for controlling the current and the speed. The speed is controlled at every interrupt pulse generation from the counter 2 or integer times thereof, and the current is controlled at every interrupt pulse from the counter 3 to eliminate the delay of sampling between the speed control and the current control, and the sampling interval of the speed and current controls is set to be constant to improve the controlling performance.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、マイク田コンピュータの如きディジタル制
御装置を用いて電動機の速度制御、電流制御を行なう電
動機制御装置に関する0〔従来の技術〕 第2図ないし第4図は、いずれもかかる制御方式の従来
例を説明するためのタイミング波形図である。
[Detailed Description of the Invention] [Field of Industrial Application] This invention relates to a motor control device that controls the speed and current of a motor using a digital control device such as a microphone computer. 4 through 4 are timing waveform diagrams for explaining conventional examples of such control systems.

第2図において、(イ)、(0)はそれぞれディジタル
制御装置に対する割込みパルスA、Bを示しており、こ
の各別込みパルスA、Bによって(ハ) 、 (=)に
示される如き電流制御、速度制御が行なわれる。この場
合、パルスA、Bは互いに非同期的に出されていること
から、電流制御プログラムと速度制御プログラムとは互
いに非同期に実行される。また、これは電流制御プログ
ラムの方の実行レベルが高い場合の例であり、したがっ
て、パルスBKより速度制御を行なっている場合にパル
スAが発せられると、速度制御プログラムは例えば同図
にt。で示される時間は中断され、電流制御プログラム
の終了迄その実行が待たされることになる。
In Fig. 2, (A) and (0) respectively indicate interrupt pulses A and B for the digital control device, and these separate pulses A and B control the current as shown in (C) and (=). , speed control is performed. In this case, since the pulses A and B are issued asynchronously with each other, the current control program and the speed control program are executed asynchronously with each other. Also, this is an example where the execution level of the current control program is higher. Therefore, when pulse A is issued while speed control is being performed using pulse BK, the speed control program will be changed to t in the same figure, for example. The time indicated by is interrupted, and the execution of the current control program is made to wait until the end of the current control program.

第3図は速度制御と電流制御が同期して実行される場合
の例であり、同図(イ)の如き割込みパルスCKよって
、(ロ)の如くまず電流制御が行なわれ、しかる後に(
ハ)の如く速度制御が行なわれる。
FIG. 3 shows an example in which speed control and current control are executed synchronously. In response to an interrupt pulse CK as shown in (a) in the figure, current control is first performed as shown in (b), and then (
Speed control is performed as shown in c).

#!4図も速度制御と電流制御が同期的に行なわれる場
合の例であるが、これは通常状電流制御プログラムを実
行し、速度制御プログラムも実行するときは速度制御を
先に行ない、その後に電流制御を行なうものである。
#! Figure 4 is also an example of a case where speed control and current control are performed synchronously. In this case, when a normal current control program is executed and a speed control program is also executed, speed control is performed first, and then current control is performed. It is for controlling.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

第2図の方式によれば、 イ)速度制御、電流制御との間にサンプリングに起因す
る遅れが生じ、しかもその値が変化する(同図の時間t
□、 1. 、1.参照)。
According to the method shown in Figure 2, a) there is a delay between speed control and current control due to sampling, and the value changes (time t in the figure).
□, 1. , 1. reference).

口)速度制御のためのサンプリング間隔が不定である(
同図の時間t4参照)。
口) The sampling interval for speed control is undefined (
(See time t4 in the figure).

などの問題があり、これKよって制御装置の性能が低下
する。
These problems cause the performance of the control device to deteriorate.

一方、痕3図の方式では速度制御と電流制御との間に、
同図にt、で示す如き一定のサンプリング遅れが生じる
という問題があり、また第4図の方式では、電流制御の
ためのサンプリング間隔が一定でなくなるという問題が
生じる◇ 〔問題点を解決するための手段〕 少なくとも電流制御、速度制御を行なうディジタル制御
装置に、一定時間T1毎に割込みパルスを発生する第1
のカウンタと、この第1カウンタにて起動され、速度制
御プログラムの全実行時間に等しい時間(予めわかって
いる) T2の経過後に割込みパルスを発生する第20
カウンタとを設ける。
On the other hand, in the method shown in Figure 3, between speed control and current control,
There is a problem that a certain sampling delay occurs as shown by t in the figure, and the method shown in Figure 4 also has a problem that the sampling interval for current control is not constant◇ [To solve the problem ] A first means for generating an interrupt pulse at fixed time intervals T1 in a digital control device that performs at least current control and speed control.
and a 20th counter that is activated by this first counter and generates an interrupt pulse after a time equal to the total execution time of the speed control program (known in advance) T2.
A counter is provided.

〔作用〕[Effect]

ディジタル制御装置は第1カウンタからの割込みパルス
発生毎またはその整数倍毎に速度制御を行ない、第2カ
ウンタからの割込みパルス発生毎に電流制御を行なうこ
とにより、速度制御と電流制御間のサンプリングの遅れ
を無くすとともに、速度制御および電流制御のサンプリ
ング間隔を一定となるようにし、制御性能を向上させる
The digital control device performs speed control every time an interrupt pulse is generated from the first counter or every integer multiple thereof, and current control is performed every time an interrupt pulse is generated from the second counter, thereby controlling sampling between speed control and current control. To improve control performance by eliminating delays and keeping sampling intervals of speed control and current control constant.

〔発明の実施例〕[Embodiments of the invention]

第1図はこの発明の実施例を示す構成図、第1A図はそ
の動作を説明するためのタイミング波形図である。
FIG. 1 is a configuration diagram showing an embodiment of the present invention, and FIG. 1A is a timing waveform diagram for explaining its operation.

第1図からも明らかなように、この実施例は。As is clear from FIG. 1, this embodiment.

例えばマイクロコンピュータなどから構成されたディジ
タル制御装置1に2個の割込みパルス発生用カウンタ2
,3を付加して構成される。
For example, a digital control device 1 consisting of a microcomputer etc. has two interrupt pulse generation counters 2.
, 3 are added.

こ\で、ディジタル制御装置1からカウンタ23にクロ
ックCLが与えられると、第1のカウンタ2からはディ
ジタル制御装置1に対しては第1A図(イ)の如き割込
みパルス信号となり、第20カウンタ3に対してはクリ
ア信号となる割込みパルスおよびクリア信号IN1が出
力され、第20カウンタ3からはディジタル制御装置1
に対して嬉IA図(ロ)の如き割込パルス信号IN2が
与えられる。つまり、電流制御のためのサンプリング時
間T1に相当するカウンタ値CT1、および速度制御プ
ログラムの実行時間T2に相当するカウンタ値CT2が
外部の設定器またはデータバスt−介してマイクロプロ
セッサ1よりそれぞれ第1のカウンタ2.第20カウン
タ3に与えられているので、第1のカウンタ2は時間T
I毎に割込みパルスおよびクリア信号INIを出力し、
第2のカウンタ3は信号INIを受は取るとカウント動
作を開始し、時間T2経過後に割込みパルスIN2を発
生する。これKよりディジタル制御装置1は、信号IN
Iを受は取る毎またはその整数倍毎に第fAIN(ハ)
の如く速度制御プログラムを実行する一方、信号IN2
を受は取る毎にilA図(ニ)の如<X光制御プログラ
ムを実行する。
Now, when the clock CL is given from the digital control device 1 to the counter 23, the first counter 2 generates an interrupt pulse signal as shown in FIG. 1A (a) to the digital control device 1, and the 20th counter An interrupt pulse and a clear signal IN1, which serve as a clear signal, are output to the 20th counter 3, and the 20th counter 3
For this, an interrupt pulse signal IN2 as shown in the diagram (b) is applied. That is, the counter value CT1 corresponding to the sampling time T1 for current control and the counter value CT2 corresponding to the execution time T2 of the speed control program are sent to the microprocessor 1 via an external setting device or data bus t. counter 2. Since the time T is given to the 20th counter 3, the first counter 2
Outputs an interrupt pulse and clear signal INI for each INI,
The second counter 3 starts a counting operation upon receiving the signal INI, and generates an interrupt pulse IN2 after time T2 has elapsed. From this K, the digital control device 1 outputs the signal IN.
Every time I is taken or an integer multiple thereof, the fAIN(c)
While executing the speed control program as in
Each time the receiver receives the light, it executes the light control program as shown in Figure (d).

〔発明の効果〕〔Effect of the invention〕

マイクロコンピュータなどから構成され電動機の回転速
度を制御するディジタル制御装置において、力、ウンタ
を2個付加し、第10カウンタが発生する一定間諷のパ
ルス毎またはその整数倍毎に速度制御を実行し、第10
カウンタのパルスにより起動され速度制御プログラムの
実行時間相当分経過後に第20カウンタから発生するパ
ルス毎に電流制御を行なうようにしたため、速度制御お
よび電流制御のサンプリング間隔が不変となり、しかも
速度制御と電流制御間のサンプリング遅れを無くすこと
が出来る利点がもたらされるものである0
In a digital control device that is composed of a microcomputer and controls the rotational speed of an electric motor, two force and counters are added, and speed control is executed for each fixed interval pulse generated by the 10th counter or for each integral multiple thereof. , 10th
Since current control is performed for each pulse generated from the 20th counter after the pulse of the counter starts and the execution time of the speed control program has elapsed, the sampling interval of speed control and current control remains unchanged. This brings about the advantage of being able to eliminate sampling delays between controls.

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

@1図はこの発明の実施例を示す構成図、第1A図はそ
の動作を説明するためのタイミング波形図、第2図ない
し第4図はいずれも電動機制御方式の従来例を説明する
ためのタイミング波形図である。 符号説明 1・・・・・・ディジタル制御装置、2・・・・・・第
1カウンタ、3・・・・・・第2カウンタ、CL・・・
・・・クロック信号、INI・・・・・・割込みおよび
クリア信号、IN2・・・・・・割込み信号。 代理人 弁理士 並 木 昭 夫 代理人 弁理士 松 崎    清 嬉 1 図 り 館IAII
@ Figure 1 is a configuration diagram showing an embodiment of the present invention, Figure 1A is a timing waveform diagram for explaining its operation, and Figures 2 to 4 are diagrams for explaining conventional examples of motor control systems. It is a timing waveform diagram. Description of symbols 1...Digital control device, 2...First counter, 3...Second counter, CL...
... Clock signal, INI ... Interrupt and clear signal, IN2 ... Interrupt signal. Agent Patent Attorney Akio Namiki Agent Patent Attorney Seiki Matsuzaki 1 Zurikan IAII

Claims (1)

【特許請求の範囲】 1)ディジタル制御装置と、該制御装置へ所定時間毎に
第1の割込みパルスを発生する第1のカウンタと、該第
1の割込みパルス発生毎に起動されそれから所定時間経
過後に前記制御装置へ第2の割込みパルスを発生する第
2のカウンタとを備え、該制御装置は前記第1の割込み
パルス発生毎またはその整数倍毎に速度制御を行ない、
前記第2の割込みパルス発生毎に電流制御を行なうこと
を特徴とする電動機制御装置。 2)特許請求の範囲第1項に記載の電動機制御装置にお
いて、前記第2カウンタが起動されて第2の割込みパル
スを発生する迄の時間を速度制御のための全演算実行時
間相当とすることを特徴とする電動機制御装置。
[Scope of Claims] 1) A digital control device, a first counter that generates a first interrupt pulse to the control device at predetermined time intervals, and a counter that is activated every time the first interrupt pulse is generated and a predetermined time has elapsed since then; a second counter that later generates a second interrupt pulse to the control device, and the control device performs speed control every time the first interrupt pulse is generated or every integral multiple thereof;
A motor control device characterized in that current control is performed every time the second interrupt pulse is generated. 2) In the motor control device according to claim 1, the time from when the second counter is activated to when the second interrupt pulse is generated corresponds to the total calculation execution time for speed control. An electric motor control device characterized by:
JP59273334A 1984-12-26 1984-12-26 Motor controller Pending JPS61154491A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59273334A JPS61154491A (en) 1984-12-26 1984-12-26 Motor controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59273334A JPS61154491A (en) 1984-12-26 1984-12-26 Motor controller

Publications (1)

Publication Number Publication Date
JPS61154491A true JPS61154491A (en) 1986-07-14

Family

ID=17526437

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59273334A Pending JPS61154491A (en) 1984-12-26 1984-12-26 Motor controller

Country Status (1)

Country Link
JP (1) JPS61154491A (en)

Similar Documents

Publication Publication Date Title
JPS61154491A (en) Motor controller
JPH06348507A (en) Microcomputer
JPS63211438A (en) Interruption control circuit
JPS60247745A (en) Interruption control circuit
JP2979918B2 (en) Interrupt detection circuit
JPH044614B2 (en)
JPH04288727A (en) A/d converter
JP2614931B2 (en) Interrupt control circuit
JP2513032B2 (en) Microcomputer input control circuit
JPH04107792A (en) Microcomputer
JPH02205940A (en) Watchdog timer device
JPS63223835A (en) Arithmetic processor
JPH01231103A (en) Programmable controller
JPH0784669A (en) Circuit device for decision of generation point of time of control signal supplied from microprocessor device
JPS63304181A (en) Test mode selecting circuit
JPS6117033B2 (en)
JPH02285566A (en) Magnetic recording device
JPS62131756A (en) Triac controller
JPS58223924A (en) Up-down counter
JPS63268484A (en) Digital type speed control system of motor
JPH0758891B2 (en) Pulse width modulator
JPH0212337A (en) Control system for interruption input signal
JPS60209851A (en) Program sequence stop system
JPS629441A (en) Timer interruption control system
JPS63174131A (en) Interruption controller