JPS6346678B2 - - Google Patents
Info
- Publication number
- JPS6346678B2 JPS6346678B2 JP54082652A JP8265279A JPS6346678B2 JP S6346678 B2 JPS6346678 B2 JP S6346678B2 JP 54082652 A JP54082652 A JP 54082652A JP 8265279 A JP8265279 A JP 8265279A JP S6346678 B2 JPS6346678 B2 JP S6346678B2
- Authority
- JP
- Japan
- Prior art keywords
- output
- signal
- circuit
- group
- register
- 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
Links
- 238000000034 method Methods 0.000 claims description 32
- 238000001514 detection method Methods 0.000 claims description 26
- 238000005070 sampling Methods 0.000 claims description 4
- 238000004364 calculation method Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 49
- 230000006870 function Effects 0.000 description 26
- 230000001360 synchronised effect Effects 0.000 description 18
- 238000006243 chemical reaction Methods 0.000 description 13
- 230000000630 rising effect Effects 0.000 description 10
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 7
- 101150118744 UPS1 gene Proteins 0.000 description 6
- 230000006698 induction Effects 0.000 description 5
- 230000007257 malfunction Effects 0.000 description 4
- 230000003247 decreasing effect Effects 0.000 description 3
- 230000000717 retained effect Effects 0.000 description 3
- IPBCWPPBAWQYOO-UHFFFAOYSA-N 2-(tetradecylthio)acetic acid Chemical compound CCCCCCCCCCCCCCSCC(O)=O IPBCWPPBAWQYOO-UHFFFAOYSA-N 0.000 description 2
- 101100285389 Arabidopsis thaliana HLS1 gene Proteins 0.000 description 2
- 101150010842 PGC gene Proteins 0.000 description 2
- 101100243108 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) PDI1 gene Proteins 0.000 description 2
- 101150054754 UPS2 gene Proteins 0.000 description 2
- 239000003990 capacitor Substances 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 230000001934 delay Effects 0.000 description 2
- 238000009499 grossing Methods 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 101100397056 Caenorhabditis elegans inx-11 gene Proteins 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 230000000052 comparative effect Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 238000000556 factor analysis Methods 0.000 description 1
- 230000001771 impaired effect Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000000691 measurement method Methods 0.000 description 1
- 238000004804 winding Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02P—CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- H02P23/00—Arrangements or methods for the control of AC motors characterised by a control method other than vector control
- H02P23/0077—Characterised by the use of a particular software algorithm
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Control Of Motors That Do Not Use Commutators (AREA)
- Control Of Ac Motors In General (AREA)
Description
本発明は電動機の制御装置、特にインバータ駆
動される電動機を、デイジタル演算回路によつて
デイジタル的に制御するための電動機の制御装置
に関するものである。
近年電動機あるいは電動機を組込んだ装置の高
機能化として可変速電動機の需要が増大してお
り、これらの制御精度を向上させるための試みが
種々なされている。
その一つの方法は電動機を変速制御するための
電源回路に、スイツチング速度の速いパワー素子
を採用したインバータが用いられ、パルス幅変調
やチヨツパ制御によつて電動機の入力を制御する
ものである。
このような可変速電動機の制御においては個々
の制御対象ごとに制御回路が構成されるのが一般
的である。
また、最近、制御装置の高機能化をはかる目的
でマイクロコンピユータを用いて制御する装置が
発表され、このマイクロコンピユータを用いて制
御装置を構成する場合には、数多くの制御対象を
一括して制御することが可能となるため、例えば
電動機の制御にマイクロコンピユータを使用する
場合は各制御対象を総合的に制御することが望ま
しい。
しかしながら、多くの制御対象をパルス入出力
処理回路を有する制御装置で電動機を制御する場
合において、カウンタ機能が誤動作すると、これ
に付随する種々の電動機の動作の制御性を損うと
いう問題点を有する。
本発明はこのような問題点に着目し、その目的
とするところはカウンタ機能の誤動作を防止し、
制御性を損うことのない電動機の制御装置を提供
するにある。
本発明は入力された電動機の運転状態を表わす
情報を用い、この入力情報をデイジタル的に演算
処理し、この処理されたデータを各処理内容に応
じて各々保持できるようにして複数個のレジスタ
を備えており、これらの各レジスタ内には演算処
理を行なつて得られたデータを保持するだけでな
く、予じめ定められた値を表わすデータを保持す
るレジスタを含んでいる。
そしてこれらのレジスタに保持されているデー
タが共通して有している点は、これらのデータが
比較動作の基準値として用いられることであり、
従つて以下これらのレジスタを基準レジスタ群と
称し、この基準レジスタ群内に保持されているデ
ータを基準データと称する。
さらに、電動機の瞬時の状態を表わすデータを
保持する複数個のレジスタを備えており、このレ
ジスタを以下単に瞬時レジスタ群と称し、この瞬
時レジスタ群に保持されているデータを瞬時デー
タと称することにする。
本発明においては、基準レジスタ群、瞬時レジ
スタ群、データ1だけ増加あるいは減少させた
り、あるいはデータを0にしたりするためのイン
クリメンタ/デクリメンタ、このインクリメン
タ/デクリメンタを制御するためのインクリメン
タ/デクリメンタ・コントローラ、比較回路、比
較回路の出力を保持するための保持回路およびス
テージカウンタを備えている。
そして、前記ステージカウンタにより予じめ定
められた順序で経時的に各ステージの処理がなさ
れ、各ステージにおいて、そのステージで定めら
れた仕事を行なうために、上記基準レジスタ群と
瞬時レジスタ群の中から所定のレジスタが各々選
択され、それぞれのレジスタから基準データと瞬
時データが比較回路へ送られ、この比較結果が保
持回路によつて保持されるものである。
すなわち本発明は、電動機に速度指令を与える
速度指令手段、電動機の速度あるいは回転子の位
置等を検出する複数個の検出手段、これらの複数
個の検出手段の出力信号をデイジタル制御量とし
て演算処理するデイジタル演算回路、該デイジタ
ル演算回路の出力を所定のパルス出力に変換する
パルス入出力回路、該パルス入出力回路の出力に
基づいて上記電動機の複数のデイジタル制御量を
制御するための制御手段を備えたものにおいて、
前記デイジタル演算回路の出力を保持するための
基準レジスタ群と、前記複数個の検出手段の検出
信号を保持する瞬時レジスタ群と、該瞬時レジス
タ群の出力をサンプリングする出力レジスタ群
と、上記基準レジスタ群および瞬時レジスタ群の
中から選択された各レジスタの保持データを比較
する比較回路と、該比較回路の出力を保持する比
較出力ラツチ群と、各処理を時分割制御するため
のステージカウンタと、前記瞬時レジスタ群の保
持データをステージカウンタのステージ信号によ
つて選択し、前記選択された保持データをインク
リメンタ/デクリメンタを介して再び瞬時レジス
タに保持したものであつて、
第1に、前記比較出力ラツチ群は第1の比較出
力ラツチ群とこの第1の比較出力ラツチ群の出力
を保持する第2の比較出力ラツチ群とを含んでお
り、第2の比較出力ラツチ群の出力信号を電動機
の制御信号として出力すると共に、前記各ステー
ジのステージ信号に応じて選択された第2の比較
ラツチ群のいずれかの出力信号をインクリメン
タ/デクリメンタ・コントローラに付与するよう
に構成したことを特徴とする電動機の制御装置に
あり、
第2に、前記瞬時レジスタ群とインクリメン
タ/デクリメンタの間に該瞬時レジスタ群の瞬時
データを保持するデータラツチ回路を設けたこと
を特徴とする電動機の制御装置
にある。
またこの各ステージに於て、そのステージに関
係した瞬時レジスタに保持されている瞬時データ
が実際の電動機等の瞬時の状態に応じて書き替え
られる。この書き替え動作はインクリメンタ/デ
クリメンタとインクリメンタ/デクリメンタ・コ
ントローラによつて行なわれる。
すなわち時間の基準単位を表わす時間信号や電
動機のシヤフトの回転角単位を表わす位相角信号
の発生状態に応じ、例えば瞬時の時間を表わすデ
ータや位相角回転の瞬時回転角を表わすデータを
増加させるべきか減少させるべきかどうかをイン
クリメンタ/デクリメンタ・コントローラで判断
する。この判断結果に基づきインクリメンタ/デ
クリメンタで瞬時データの増加・減少を具体的に
行なう。このようにして瞬時データは時々刻々新
しい値に書き替えられ、このデータにより比較動
作が行なわれる。この比較により、基準データに
見合つたパルス出力を発生することができる。
この様な構成をとることにより、複雑な制御が
比較的簡単な回路構成により可能となる。さらに
不規則に入力されるパルス信号を同期化し、検出
しているので正確に各信号が検出でき、インクリ
メンタ/デクリメンタが正確に動作する。
次に本発明を位相検出器付電動機(無整流子電
動機)の実施例を、図を使用して説明する。第1
図は位相検出器付電動機の制御装置の回路構成を
示す。
マイクロコンピユータはセントラルプロセツサ
(以下、CPUを記す)114、ランダムアクセス
メモリ(以下、RAMと記す)116、リードオ
ンリーメモリ(以下、ROMと記す)118で構
成されている。
入出力回路120は、CPU114とのインタ
ーフエイス回路123、マルチプレクサ122を
備えたアナログ・デイジタル変換回路124(以
下、A/D変換器と記す)、マルチプレクサなし
のA/D変換器127、パルス出力回路126、
パルス入力回路128、デイスクリート入出力回
路125を有している。6個のサイリスタ136
〜191、6個フライホイール・ダイオード19
2〜197より構成される3相インバータ160
によつて電動機100は可変される。また直流電
源は、商用交流電源185をダイオード176〜
179によつて構成される整流回路175と平滑
コンデンサ135より作られる。
また、電動機100には位相検出器150が取
りつけられており、巻線U相、V相、W相の位相
が検出される。その位相検出信号PU、PV、PW
を出力する。さらに、入出力回路120から出力
されるパルス出力U+、U-,V+,V-,W+,W-
は、ゲート・ドライバー130を介して、サイリ
スタ186〜191を点弧したり、消弧したりす
る。ここで使用するパワー素子は自己消弧のサイ
リスタ例えばゲートターンオフサイリスタGT0
であると回路構成上、都合がよい。
マイクロコンピユータと入出力回路120のイ
ンターフエイスは、データ・バス162、アドレ
ス・バス164、コントロール・バス166によ
つて接続される。マイクロコンピユータと入出力
回路120はCPU114からイネーブル信号E
が印加され、同期をとつている。
アナログ入出としては、2つの抵抗137と1
38で分圧された直流電圧ED、シヤント抵抗1
36の直流電流ID、電動機100に取付けてある
温度センサ104の電動機温度TM、速度指令SP
がある。この入力のなかで、重要なアナログ入力
は、直流電流IDである。この直流電流IDは増幅器
131を介して、マルチ・プレクサなしのA/D
変換器127に入力される。その他の直流電圧
ED、電動機温度TM、速度指令SPはそれぞれ増幅
器132〜134マルチ・プレクサ122を介し
てA/D変換器124に入力される。マルチ・プ
レクサ122はCPU114から指令されたアナ
ログ入力の一つが選択されA/D変換器124へ
入力される。これらの入力は、ROM118に記
憶されていた命令プログラムに基づきOPU11
4がアドレスバスを介してそのアドレスが指定さ
れ、指定されたアナログ入力が取込まれる。ま
た、デイジタル変換された値はそれぞれの入力に
対応したレジスタに保持され、必要に応じ、デー
タ・バス164を介して送られてくる。
パルス入力回路128には位相検出器150よ
り位相信号PU,PV,PWが入力され、イネーブ
ル信号Eと同期化される。
また、CPU114により処理されたデータは
インターフエイス123に取込まれパルス出力回
路126に保持される。パルス出力回路126か
らの出力はインターフエイス123によつて入力
された信号に対応するパルス幅の信号を発生する
ものでその出力はパルス幅変調信号U+,V+,
W+,U-,V-,W-であり、これらの信号はデイ
スクリート入出力回路125には起動指令が入力
された後出力を発生するようになつている。
第2図はパルス出力回路126によつてパルス
幅変調信号U+,V+,W+,U-,V-,W-が発生
するタイミングを示す図であり、信号PWMはパ
ルス出力回路は6で作られる搬送波信号で、位相
検出信号PU,PV,PWの立上り、立下りでリセ
ツトされ、ある傾斜をもつて、増加、減少し、
CPU114からのデータD1レベルと比較し、
120度通電の後半60度のみに変調をかける。同様
にCPU114のデータD2レベルは前半60度の
立上りのみパルス幅を狭くし、それぞれのパルス
幅変調信号U+,V+,W+,U-,V-,W-を作る。
第3図は位相検出器なしの電動器(誘導電動
機)の回路構成を示す。第3図は第1図をほとん
ど同じで、第1図の位相検出器150の代りにパ
ルスジエネレータ152と代る。また、電圧制御
のために、サイリスタ198と抵抗181があ
り、サイリスタ198をチヨツピングすることに
より電圧制御を行う。そのために、入出力回路1
20のパルス出力回路126のチヨツパ信号
CHOPを使用する。
第4図は、パルス出力回路126によつて15個
の不等パルスのパルス幅変調信号U+,V+,W+,
U-,V-,W-を作るタイミングを示すもので、
搬送波信号PWMと変調波SU,SV,SWより作
られる。
第5図はパルス出力回路126の具体的な回路
を示すもので、レジスタ群570は上で述べた基
準レジスタ群であり、CPU114で処理された
データを保持したりあるいは予じめ定められた一
定値を示すデータを保持する。このデータは
CPU114より第8図に示すようにデータ・ラ
ツチ802、ライトバス806を介して送られ
る。そして、基準レジスタ群570のデータを保
持する各レジスタの指定はアドレスバス164よ
りアドレス・デコーダ906を介して行なわれ、
指定されたレジスタに上記データが入力され保持
される。
レジスタ群572は瞬時レジスタ群であり、電
動機等の瞬時の状態を保持する。瞬時レジスタ群
572とラツチ回路576とインクリメンタ/デ
クリメンタ578とでいわゆるカウンタ機能を呈
する。
出力レジスタ群574は例えば電動機の回転速
度を保持するレジスタとパルス入力の周期を保持
するレジスタを有している。これらの値は、ある
条件が満たされたとき瞬時レジスタの値が読み込
まれることにより得られる。出力レジスタ群57
4に保持されているデータはCPUからアドレス
バスとコントロールバスを介して送られてくる信
号により関係するレジスタが選ばれ、このレジス
タからリードバス808を介してCPU114に
送られる。
比較回路580は基準レジスタ群570の内の
選れれたレジスタからの基準データと瞬時レジス
タ群572の内の選ばれたレジスタからの瞬時デ
ータをそれぞれ入力端582と584から受け、
比較動作を行う。その比較結果は出力端586よ
り出力される。出力端は比較結果保持回路として
作用する第1比較出力ラツチ群602の内の所定
のラツチにセツトされる。さらにその後第2比較
出力ラツチ群604の所定のラツチにセツトされ
る。
基準レジスタ群570、瞬時レジスタ群57
2、出力レジスタ群574の読出しや書込み動
作、インクリメンタ/デクリメンタ578や比較
回路580の動作、第1比較出力ラツチ群60
2、第2比較出力ラツチ群604への出力セツト
動作は予じめ定められた時間内に処理される。ま
た種々の処理はステージ・カウンタ670のステ
ージ順序に従い、時分割で行なわれる。各ステー
ジ毎に基準レジスタ群570、瞬時レジスタ群5
72のそれぞれのレジスタ群の所定のレジスタ、
第1比較出力ラツチ群602内の所定のラツチお
よび必要に応じて出力レジスタ群574の内の所
定のレジスタが選ばれる。またインクリメンタ/
デクリメンタ578と比較回路580は基準レジ
スタ群570および瞬時レジスタ群572内の各
レジスタに対して共通に使用される。
第6図は第5図のタイミングを説明するための
図である。CPU114よりイネーブル信号Eが
入出力回路120に供給される。この信号をイに
示す。このイネーブル信号Eにより第7図のノン
オーバー・ラツプ回路701により重なりのない
2相のクロツク信号φ1とφ2を作る。この信号を
ハとロに示す。このクロツク信号φ1とφ2により
第5図に示す回路は動作する。
第6図ニはステージ・カウンタ670の出力信
号であり、クロツク信号φ1の立上りで計数され
る。しかし、ステージ・カウンタ670の出力信
号は、配線やゲートの遅れによつて斜線で示す部
分で確立される。そのステージ・カウンタ670
の出力信号ニはステージ・デコーダ672によつ
て各ステージの処理信号が発生する。しかし、
φ1より各ステージの処理信号がかなり遅れるた
め、各処理の有効時間が縮まる。その各処理の有
効時間を拡げるために、ステージ・ラツチ674
を設け、ステージ・ラツチ674の出力信号をホ
に示す。第6図において、“T”はラツチ回路や
レジスタ回路がイネーブル状態にあることを示
し、これらの回路の出力が入力に依存されること
を示す。また“L”とはこれらの回路があるデー
タを保持し、この回路の出力が入力に依存しない
ことを示す。
φ2=1で“T”になるステージ・ラツチ67
4はステージ・デコーダ672の出力信号を保持
し、ホがステージの処理信号となり、クロツク信
号φ2の立上りで切換えられ、各ステージの処理
がφ2に同期して行なわれる。このホに示すステ
ージ信号は基準レジスタ群570や瞬時レジスタ
群572の読出し信号となり、ある選ばれた所定
のレジスタからそのデータを読出す。ヘとホはそ
れぞれ、基準レジスタ群570と瞬時レジスタ群
572の動作を示す。基準レジスタ群570と瞬
時レジスタ群572の読出しは、ホのステージ信
号により行なわれる。また書込みは、φ1=1で
基準レジスタ群570および瞬時レジスタ群57
2を“T”にすることにより行ない、φ1に同期
してなされる。
データ・ラツチ回路576の動作をチに示す。
この回路はクロツク信号φ2=1で“T”にし、
瞬時レジスタ群572より読出されたある特定の
レジスタのデータを書込み、クロツク信号φ2=
0で“L”となる。このようにしてそのステージ
に対応した瞬時レジスタ群572の内の所定のレ
ジスタのデータを保持する。データ・ラツチ回路
576に保持されたデータはクロツク信号に同期
しないインクリメンタ/デクリメンタ578によ
り、各条件に基づいて修正される。
ここでインクリメンタ/デクリメンタ578は
インクリメンタ/デクリメンタ・コントローラ5
90からコントロール信号発生回路591の出力
信号500に基づき次のような機能を有する。第
1の機能はインクリメント/デクリメント機能で
入力データの示す値を1つ増加させたりもしくは
減少させたりする。第2の機能はノンインクリメ
ント/デクリメント機能で、入力データを増加も
しくは減少させないでそのまま通過させる。第3
の機能はリセツト機能で入力データを全て0の値
を示すデータに変えてしまう。
瞬時レジスタ群572内の各レジスタのデータ
の流れを見ると、瞬時レジスタ群572の内の1
つのレジスタがステージ・カウンタ672により
選ばれ、その保持データがデータ・ラツチ回路5
76とインクリメンタ/デクリメンタ578を介
して比較回路580に入力される。さらにインク
リメンタ/デクリメンタ578の出力から元の選
ばれたレジスタへ戻る閉ループができる。従つて
インクリメンタ/デクリメンタ578がデータに
対し1つ増加させるもしくは減少させる機能を呈
するとこの閉ループはカウントとしての機能を呈
する。しかしこの閉ループで瞬時レジスタ群57
2のデータが特定の選ばれたレジスタから出力さ
れながら、しかもデータが回り込んできて入力さ
れるような状態が生じるとカウンタ機能を有しな
くなり誤動作する。従つてデータを切るためにデ
ータ・ラツチ回路576を設けている。データ・
ラツチ回路576はクロツク信号φ2=1で“T”
になり、一方瞬時レジスタに入力データが書込ま
れる状態“T”はクロツク信号φ1=1であるた
め、瞬時レジスタ群572の特定のレジスタのデ
ータが変更になつてもデータ・ラツチ回路576
の出力は変化しない。その動作をチに示す。つま
り、φ2=0でデータカツトが行なろれる。また
クロツク信号に同期しないインクリメンタ/デク
リメンタ578の出力データリが確立するのは配
線やゲートの遅れによつて斜線の部分となる。
比較回路580もインクリメンタ/デクリメン
タ578と同様クロツク信号と同期せずに動作す
る。比較回路580の入力は基準レジスタ群57
0の内、ステージ信号ホにより選ばれた1つの基
準レジスタの基準データと、瞬時レジスタ群57
2の内、ステージ信号ホにより選ばれた1つのレ
ジスタの瞬時データのデータ・ラツチ回路576
とインクリメンタ/デクリメンタ578を介して
伝えられたデータとを受ける。これら2つのデー
タの比較結果は、クロツク信号φ1=1で“T”
になる第1の比較出力ラツチ群602の内、ステ
ージ信号ホにより選ばれたラツチへセツトされ
る。そのとき、比較回路580の比較結果出力信
号をヌに示し、信号が確立するのは斜線部分とな
る。さらにこの第1の比較出力ラツチ群602の
出力は、クロツク信号φ2=1で“T”になる第
2の比較出力ラツチ群604へセツトされる。こ
れら第1および第2の比較出力ラツチ群602,
604の動作をそれぞれル,ヲに示す。
また、第2の比較出力ラツチ群604の出力が
電動機のインバータのゲート信号UP,VP,
WP,UN,VN,WNやチヨツパ信号CHの出力
信号となつたり、瞬時レジスタ群572の各条件
となり、インクリメンタ/デクリメンタ・コント
ローラ590の入力信号となる。
また第2の比較出力ラツチ群604の出力信号
は瞬時レジスタ群572から出力レジスタ群57
4へ書込みを行う転送信号にもなる。
出力レジスタ群574の動作をワに示す。出力
レジスタ群574の内ステージ信号ホによつて選
ばれた出力レジスタはクロツク信号φ1=1で
“T”で瞬時レジスタ群572の内、ステージ信
号ホによつて選ばれた瞬時レジスタの瞬時データ
を書込まれ、クロツク信号φ1=0で“L”とな
る。
出力レジスタ群574に保持されているデータ
をCPU114が読む場合は、CPU114よりリ
ードバス808を介してレジスタを指定し、第5
図イに示すクロツク信号Eに同期してデータの取
込みが行なわれる。
そこで入出力回路123とCPU114とのイ
ンターフエイスは(例えば、CPU114に日立
製HD46800を用いた場合)、第6図のタイミング
では、CPU114からデータが書込まれる基準
レジスタ群570とCPU114へデータが読出
される出力レジスタ群574とでタイミングが異
なる。そのデータとアドレスのブロツク構成図を
第8,9図に示す。CPU114から書込まれる
ライト・データ806は、φ2=1で“T”にな
るライト・ラツチ回路802に保持され、φ1=
1で基準レジスタ群570のアドレス信号によつ
て選ばれた基準レジスタにデータが書込まれる。
またCPU114へ読出されるリードデータは、
リードバス808、CPU114のイネーブル信
号E=1でイネーブル状態のトライステート・バ
ツフア回路804によつてデータバス162へ送
り出し、CPU114へ取込まれる。
また、基準レジスタ群570と出力レジスタ群
574はCPU114からのアドレス信号によつ
て選ばれる。レジスタ選択信号SELは、データの
場合と同じように、基準レジスタ群570と出力
レジスタ群574とではタイミングが異なる。
基準レジスタ群570は、φ2=1で“T”と
なるアドレス・ラツチ回路902に保持され、次
に、ライト・データか、リード・データかをコン
トロールバスの信号によつて作られるチツプセレ
クトライト信号CSW、チツプセレクトリード信
号CSRによつて、アドレス・ラツチ回路902
の出力信号か、アドレスバス164上のアドレス
信号かを選ぶ。CSWの場合はアドレス・ラツチ
回路902の出力信号を、CSRの場合はアドレ
ス信号を選択する。この選択回路904を介して
アドレスデコーダ906によつてレジスタが選ば
れる。
また第1,3図で記述したごとく、インバータ
に制御整流素子を使用しているため、素子の電流
の大きさが問題となつたり、さらに電流制限を行
うことがある。そのため、入出力回路120は
A/D変換器124を有し、アナログ量をデイジ
タル量に変換する。電動機の制御に必要なアナロ
グ量はその他に直流電圧、速度指令等がある。し
かし素子の電流、直流電圧、速度指令等の内一番
重要なアナログ量は制御整流素子の電流である。
そのため、第5図中には素子の電流専用A/D変
換器127とマルチ・プレクサ122付A/D変
換器124の2個のA/D変換器を入出力回路1
20は有している。また、電流専用A/D変換器
127によつてデイジタル量に変換されたデータ
はデイジタル0レジスタ546、マルチ・プレク
サ付A/D変換器124によつてデイジタル量に
変換されたデータはデイジタル1レジスタ548
に保持される。しかし、デイジタル0レジスタ5
46の電流値の大きさはCPU114によつて演
算処理する時間的余裕がないため、入出力回路1
20内で処理する。具体的には、電流機への印加
電圧を小さくする処理を行う。
電流がA/D変換されたデイジタル量を保持し
ているデイジタル0レジスタ546のデイジタ
ル・データと電流制限値に等価なデータを保持し
ている基準レジスタ群570の基準データと比較
する。しかし、A/D変換器127はステージ信
号第6図ホとは無関係に動作している。そのた
め、各処理はある順序に従つてステージ信号ホを
発生するが、このステージ信号に電流値を比較す
るための処理ステージを設ける。これは1種のス
テージへの割込み機能である。ステージへの割込
み機能はφ1の立上りで発生するA/D変換終了
信号第6図中カで要求される。そのとき、ステー
ジ・ラツチ674はステージ・デコーダ672の
出力信号を保持せずに、A/D変換終了信号カを
保持し、デイジタル0レジスタ546の電流値の
デイジタル・データと制限すべて電流値を保持し
ている基準レジスタ群570の基準データとを比
較し、素子の電流が制限値に達したかどうか判定
する。そのとき、ステージ・カウンタ670の計
数は行わず、このステージの割込みが終了した時
点つまり次のφ2=1でステージ・デコーダ67
2の出力信号をステージ・ラツチ674に保持す
ることにより割込み処理以前の処理ステージが行
われ、引き続きある定つた順序に従つて各処理が
行われる。
また、マルチ・プレクサ付A/D変換器124
で変換されたデイジタル・データは、ステージへ
の割込み機能はなく、CPU114へのリード・
データとしてCPU114へ取込まれる。電流専
用A/D変換器540で変換されたデイジタル・
データもCPU114へ取込まれる。
入出力回路120は、CPU114への割込み
要求信号となるステータス・レジスタ550とそ
の割込み要求信号をマスクするためのマスク・レ
ジスタ552がある。ステータス・レジスタ55
0は、電動機や入出力回路120の内部状態が保
持されている。その内容を第1表に示す。
The present invention relates to an electric motor control apparatus, and more particularly to an electric motor control apparatus for digitally controlling an inverter-driven electric motor using a digital arithmetic circuit. In recent years, demand for variable speed motors has been increasing as electric motors or devices incorporating electric motors have become more sophisticated, and various attempts have been made to improve the control accuracy of these motors. One method is to use an inverter that employs a power element with a high switching speed in the power supply circuit for controlling the speed of the motor, and to control the input of the motor by pulse width modulation or chopper control. In controlling such a variable speed electric motor, a control circuit is generally configured for each control target. In addition, recently, devices that use microcomputers to control devices have been announced in order to improve the functionality of control devices.When configuring a control device using this microcomputer, it is possible to control many control objects at once. Therefore, when using a microcomputer to control an electric motor, for example, it is desirable to comprehensively control each control object. However, when many control objects are controlled by a control device having a pulse input/output processing circuit, if the counter function malfunctions, there is a problem in that the controllability of the various motor operations associated with this is impaired. . The present invention has focused on such problems, and its purpose is to prevent malfunction of the counter function,
An object of the present invention is to provide a control device for an electric motor that does not impair controllability. The present invention uses input information representing the operating state of the electric motor, digitally processes this input information, and uses a plurality of registers so that the processed data can be held according to each processing content. Each of these registers includes a register that not only holds data obtained by performing arithmetic processing but also holds data representing a predetermined value. What the data held in these registers have in common is that these data are used as reference values for comparison operations.
Therefore, these registers will hereinafter be referred to as a reference register group, and the data held within this reference register group will be referred to as reference data. Furthermore, it is equipped with a plurality of registers that hold data representing the instantaneous state of the motor, and these registers will hereinafter be simply referred to as the instantaneous register group, and the data held in this instantaneous register group will be referred to as instantaneous data. do. In the present invention, a reference register group, an instantaneous register group, an incrementer/decrementer for increasing or decreasing data by 1 or setting data to 0, and an incrementer/decrementer for controlling this incrementer/decrementer - Equipped with a controller, a comparison circuit, a holding circuit for holding the output of the comparison circuit, and a stage counter. Then, each stage is processed over time in a predetermined order by the stage counter, and in each stage, in order to perform the work determined at that stage, the reference register group and the instantaneous register group are processed. A predetermined register is selected from each register, reference data and instantaneous data are sent from each register to a comparison circuit, and the comparison result is held by a holding circuit. That is, the present invention provides a speed command means for giving a speed command to an electric motor, a plurality of detection means for detecting the speed of the motor or the position of a rotor, and arithmetic processing of the output signals of these plurality of detection means as digital control variables. a digital arithmetic circuit that converts the output of the digital arithmetic circuit into a predetermined pulse output; and a control means that controls a plurality of digital control variables of the electric motor based on the output of the pulse input/output circuit. In what you have prepared,
a reference register group for holding the output of the digital arithmetic circuit; an instantaneous register group for holding the detection signals of the plurality of detection means; an output register group for sampling the output of the instantaneous register group; and the reference register. a comparison circuit that compares the data held in each register selected from the group and the instantaneous register group, a group of comparison output latches that holds the output of the comparison circuit, and a stage counter for time-division control of each process; The data held in the instantaneous register group is selected by a stage signal of a stage counter, and the selected held data is held in the instantaneous register again via an incrementer/decrementer, and firstly, the comparison The output latch group includes a first comparison output latch group and a second comparison output latch group that holds the output of the first comparison output latch group, and outputs the output signal of the second comparison output latch group to the electric motor. The control signal is output as a control signal for the incrementer/decrementer controller, and the output signal of one of the second comparison latch groups selected according to the stage signal of each stage is applied to the incrementer/decrementer controller. Second, a data latch circuit for holding instantaneous data of the instantaneous register group is provided between the instantaneous register group and the incrementer/decrementer. . Furthermore, at each stage, the instantaneous data held in the instantaneous register related to that stage is rewritten in accordance with the actual instantaneous state of the motor, etc. This rewriting operation is performed by an incrementer/decrementer and an incrementer/decrementer controller. In other words, data representing instantaneous time or data representing instantaneous rotation angle of phase angle rotation should be increased depending on the generation state of the time signal representing the standard unit of time or the phase angle signal representing the rotation angle unit of the motor shaft. The incrementer/decrementer controller determines whether the value should be decreased. Based on this judgment result, the incrementer/decrementer specifically increases or decreases the instantaneous data. In this way, the instantaneous data is rewritten with new values from time to time, and a comparison operation is performed using this data. Through this comparison, a pulse output commensurate with the reference data can be generated. By adopting such a configuration, complex control is possible with a relatively simple circuit configuration. Furthermore, since irregularly input pulse signals are synchronized and detected, each signal can be detected accurately and the incrementer/decrementer can operate accurately. Next, an embodiment of the present invention of a motor with a phase detector (non-commutator motor) will be described with reference to the drawings. 1st
The figure shows the circuit configuration of a control device for a motor with a phase detector. The microcomputer is composed of a central processor (hereinafter referred to as CPU) 114, a random access memory (hereinafter referred to as RAM) 116, and a read only memory (hereinafter referred to as ROM) 118. The input/output circuit 120 includes an interface circuit 123 with the CPU 114, an analog/digital conversion circuit 124 (hereinafter referred to as an A/D converter) equipped with a multiplexer 122, an A/D converter 127 without a multiplexer, and a pulse output circuit. 126,
It has a pulse input circuit 128 and a discrete input/output circuit 125. 6 thyristors 136
~191, 6 flywheel diodes 19
3-phase inverter 160 composed of 2 to 197
The electric motor 100 is varied by. In addition, the DC power source connects the commercial AC power source 185 to the diode 176 to
179 and a smoothing capacitor 135. Further, a phase detector 150 is attached to the electric motor 100, and the phases of the windings U-phase, V-phase, and W-phase are detected. Its phase detection signal PU, PV, PW
Output. Furthermore, pulse outputs U + , U - , V + , V - , W + , W - output from the input/output circuit 120
ignites and extinguishes the thyristors 186 to 191 via the gate driver 130. The power device used here is a self-extinguishing thyristor, such as a gate turn-off thyristor GT0.
This is convenient in terms of circuit configuration. The microcomputer and input/output circuit 120 interfaces are connected by a data bus 162, an address bus 164, and a control bus 166. The microcomputer and input/output circuit 120 receive an enable signal E from the CPU 114.
is applied and synchronization is achieved. As analog input/output, two resistors 137 and 1
DC voltage E D divided by 38, shunt resistor 1
DC current ID of 36, motor temperature T M of temperature sensor 104 attached to motor 100, speed command S P
There is. Among these inputs, the important analog input is the DC current ID. This DC current ID is passed through an amplifier 131 to an A/ D converter without a multiplexer.
It is input to converter 127. Other DC voltages
E D , motor temperature T M , and speed command S P are input to A/D converter 124 via amplifiers 132 to 134 and multiplexer 122, respectively. The multiplexer 122 selects one of the analog inputs commanded by the CPU 114 and inputs it to the A/D converter 124 . These inputs are input to the OPU 11 based on the instruction program stored in the ROM 118.
4 is designated via the address bus, and the designated analog input is taken in. Further, the digitally converted values are held in registers corresponding to the respective inputs, and are sent via the data bus 164 as necessary. Phase signals PU, PV, and PW are inputted to the pulse input circuit 128 from the phase detector 150 and synchronized with the enable signal E. Furthermore, data processed by the CPU 114 is taken into the interface 123 and held in the pulse output circuit 126. The output from the pulse output circuit 126 generates a signal with a pulse width corresponding to the signal inputted by the interface 123, and the output is a pulse width modulated signal U + , V + ,
These signals are W + , U - , V - , and W - , and these signals are designed to generate outputs after a start command is input to the discrete input/output circuit 125. FIG. 2 is a diagram showing the timing at which the pulse width modulation signals U + , V + , W + , U - , V - , W - are generated by the pulse output circuit 126. A carrier wave signal generated by
Compare with the data D1 level from CPU114,
Modulation is applied only to the latter 60 degrees of 120 degrees of energization. Similarly, for the data D2 level of the CPU 114, the pulse width is narrowed only at the rising edge of the first half of 60 degrees, and the respective pulse width modulation signals U + , V + , W + , U - , V - , W - are generated. FIG. 3 shows the circuit configuration of an electric motor (induction motor) without a phase detector. FIG. 3 is almost the same as FIG. 1, except that the phase detector 150 in FIG. 1 is replaced by a pulse generator 152. Further, a thyristor 198 and a resistor 181 are provided for voltage control, and voltage control is performed by chopping the thyristor 198. For this purpose, input/output circuit 1
Chopper signal of 20 pulse output circuits 126
Use CHOP. FIG. 4 shows that the pulse output circuit 126 generates 15 unequal pulse width modulated signals U + , V + , W + ,
It indicates the timing of creating U - , V - , W - .
It is created from carrier signal PWM and modulated waves SU, SV, and SW. FIG. 5 shows a specific circuit of the pulse output circuit 126, and the register group 570 is the reference register group mentioned above, and is used to hold data processed by the CPU 114 or to store a predetermined constant value. Holds data that indicates a value. This data is
The data is sent from the CPU 114 via the data latch 802 and write bus 806 as shown in FIG. The designation of each register holding data in the reference register group 570 is performed from the address bus 164 via the address decoder 906.
The above data is input to the designated register and held. The register group 572 is a momentary register group and holds the instantaneous state of the electric motor and the like. The instantaneous register group 572, latch circuit 576, and incrementer/decrementer 578 provide a so-called counter function. The output register group 574 includes, for example, a register that holds the rotational speed of the electric motor and a register that holds the period of pulse input. These values are obtained by reading the values of instantaneous registers when certain conditions are met. Output register group 57
The data held in 808 is sent to a related register by a signal sent from the CPU via an address bus and a control bus, and is sent from this register to the CPU 114 via a read bus 808. Comparison circuit 580 receives reference data from a selected register of reference register group 570 and instantaneous data from a selected register of instantaneous register group 572 at inputs 582 and 584, respectively;
Perform a comparison operation. The comparison result is output from output terminal 586. The output terminal is set to a predetermined latch in a first comparison output latch group 602 which acts as a comparison result holding circuit. Furthermore, it is then set in a predetermined latch of the second comparison output latch group 604. Reference register group 570, instantaneous register group 57
2. Read and write operations of the output register group 574, operations of the incrementer/decrementer 578 and comparison circuit 580, first comparison output latch group 60
2. The output setting operation to the second comparison output latch group 604 is processed within a predetermined time. Further, various processes are performed in a time-sharing manner according to the stage order of the stage counter 670. A reference register group 570 and an instantaneous register group 5 for each stage
a predetermined register of each of the 72 register groups;
A predetermined latch in the first comparison output latch group 602 and, if necessary, a predetermined register in the output register group 574 is selected. Also the incrementer/
Decrementer 578 and comparator circuit 580 are commonly used for each register in reference register group 570 and instantaneous register group 572. FIG. 6 is a diagram for explaining the timing of FIG. 5. An enable signal E is supplied from the CPU 114 to the input/output circuit 120. This signal is shown in A. This enable signal E generates non-overlapping two-phase clock signals φ 1 and φ 2 by the non-overlap circuit 701 shown in FIG. This signal is shown in C and B. The circuit shown in FIG. 5 operates according to these clock signals φ1 and φ2 . FIG. 6D shows the output signal of the stage counter 670, which is counted at the rising edge of the clock signal φ1 . However, the output signal of the stage counter 670 is established in the shaded area due to wiring and gate delays. The stage counter 670
The stage decoder 672 generates a processed signal for each stage. but,
Since the processed signals of each stage are delayed considerably from φ 1 , the effective time of each process is shortened. In order to extend the effective time of each process, the stage latch 674
The output signal of the stage latch 674 is shown in E. In FIG. 6, "T" indicates that the latch circuit or register circuit is in an enabled state, indicating that the output of these circuits is dependent on the input. Further, "L" indicates that these circuits hold certain data and that the output of this circuit does not depend on the input. Stage latch 67 becomes “T” when φ 2 =1
4 holds the output signal of the stage decoder 672, and E becomes the stage processing signal, which is switched at the rising edge of the clock signal φ2 , and the processing of each stage is performed in synchronization with φ2 . The stage signal shown in E becomes a readout signal for the reference register group 570 and instantaneous register group 572, and reads the data from a selected predetermined register. H and H illustrate the operation of a reference register group 570 and an instantaneous register group 572, respectively. Reading of the reference register group 570 and the instantaneous register group 572 is performed by the stage signal E. Also, writing is performed with reference register group 570 and instantaneous register group 57 at φ 1 =1.
This is done by setting 2 to "T", and is done in synchronization with φ1 . The operation of data latch circuit 576 is shown in FIG.
This circuit is set to “T” by clock signal φ 2 =1,
The data of a certain register read from the instantaneous register group 572 is written, and the clock signal φ 2 =
When it is 0, it becomes “L”. In this way, data in a predetermined register in the instantaneous register group 572 corresponding to that stage is held. The data held in data latch circuit 576 is modified based on various conditions by incrementer/decrementer 578, which is not synchronized to the clock signal. Here, the incrementer/decrementer 578 is the incrementer/decrementer controller 5
It has the following functions based on the output signal 500 from the control signal generation circuit 591. The first function is an increment/decrement function that increases or decreases the value indicated by input data by one. The second function is a non-increment/decrement function, which allows input data to pass through without being increased or decreased. Third
The function is a reset function that changes all input data to data indicating a value of 0. Looking at the data flow of each register in the instantaneous register group 572, one of the instantaneous register group 572
One register is selected by the stage counter 672, and its held data is sent to the data latch circuit 5.
76 and an incrementer/decrementer 578 to a comparison circuit 580. Additionally, a closed loop is created from the output of incrementer/decrementer 578 back to the originally selected register. Therefore, when incrementer/decrementer 578 functions to increment or decrement data by one, this closed loop functions as a count. However, in this closed loop, the instantaneous register group 57
If a situation occurs in which the data of 2 is being output from a specific selected register, and the data is input in a loop, it will no longer have a counter function and will malfunction. Therefore, a data latch circuit 576 is provided to cut off the data. data·
The latch circuit 576 becomes “T” when the clock signal φ 2 =1.
On the other hand, in the state "T" in which input data is written to the instantaneous register, the clock signal φ 1 =1, so even if the data in a specific register in the instantaneous register group 572 is changed, the data latch circuit 576
The output of does not change. The operation is shown in q. In other words, data can be cut when φ 2 =0. Furthermore, the output data of the incrementer/decrementer 578 that is not synchronized with the clock signal is established as shown in the shaded area due to delays in wiring and gates. Similar to incrementer/decrementer 578, comparison circuit 580 also operates out of synchronization with the clock signal. The input of the comparison circuit 580 is the reference register group 57
0, the reference data of one reference register selected by the stage signal E and the instantaneous register group 57
2, a data latch circuit 576 for instantaneous data of one register selected by the stage signal H
and data communicated via incrementer/decrementer 578. The comparison result of these two data is “T” when the clock signal φ 1 =1.
Among the first comparison output latch group 602, the latch selected by the stage signal H is set. At this time, the comparison result output signal of the comparator circuit 580 is shown in the blank, and the area where the signal is established is the shaded area. Further, the output of the first comparison output latch group 602 is set to the second comparison output latch group 604 which becomes "T" when the clock signal φ 2 =1. These first and second comparison output latch groups 602,
The operations of 604 are shown in FIGS. Also, the output of the second comparison output latch group 604 is the motor inverter gate signal UP, VP,
It becomes the output signal of WP, UN, VN, WN and the chopper signal CH, becomes each condition of the instantaneous register group 572, and becomes the input signal of the incrementer/decrementer controller 590. Further, the output signal of the second comparison output latch group 604 is transferred from the instantaneous register group 572 to the output register group 57.
It also serves as a transfer signal for writing to 4. The operation of the output register group 574 is shown in FIG. Out of the output register group 574, the output register selected by the stage signal H outputs the instantaneous data of the instantaneous register selected by the stage signal H among the instantaneous register group 572 at "T" when the clock signal φ 1 =1. is written, and becomes "L" when the clock signal φ 1 =0. When the CPU 114 reads data held in the output register group 574, the CPU 114 specifies the register via the read bus 808, and
Data is taken in in synchronization with clock signal E shown in FIG. Therefore, the interface between the input/output circuit 123 and the CPU 114 (for example, when Hitachi HD46800 is used as the CPU 114), at the timing shown in FIG. The timing differs depending on the output register group 574. Block diagrams of the data and addresses are shown in FIGS. Write data 806 written from the CPU 114 is held in the write latch circuit 802 which becomes “T” when φ 2 =1, and is held in the write latch circuit 802 which becomes “T” when φ 2 =1 .
1, data is written into the reference register selected by the address signal of the reference register group 570.
Also, the read data read to the CPU 114 is
The data is sent to the data bus 162 by the read bus 808 and the tri-state buffer circuit 804 enabled by the enable signal E=1 of the CPU 114, and is taken into the CPU 114. Further, the reference register group 570 and the output register group 574 are selected by an address signal from the CPU 114. As in the case of data, the timing of the register selection signal SEL differs between the reference register group 570 and the output register group 574. The reference register group 570 is held in an address latch circuit 902 which becomes "T" when φ 2 =1, and then a chip select write is performed to determine whether write data or read data is generated by a signal on the control bus. The address latch circuit 902 is activated by the signal CSW and the chip select read signal CSR.
, or the address signal on the address bus 164. In the case of CSW, the output signal of the address latch circuit 902 is selected, and in the case of CSR, the address signal is selected. A register is selected by an address decoder 906 via this selection circuit 904. Furthermore, as described in FIGS. 1 and 3, since a controlled rectifier element is used in the inverter, the magnitude of the current in the element may become a problem, and the current may be further limited. Therefore, the input/output circuit 120 includes an A/D converter 124 to convert an analog quantity into a digital quantity. Other analog quantities required to control the electric motor include DC voltage and speed command. However, among the element current, DC voltage, speed command, etc., the most important analog quantity is the current of the control rectifier element.
Therefore, in FIG. 5, two A/D converters, an A/D converter 127 dedicated to the element current and an A/D converter 124 with a multiplexer 122, are connected to the input/output circuit 1.
20 have. Further, data converted into a digital amount by the current-only A/D converter 127 is stored in a digital 0 register 546, and data converted into a digital amount by the multiplexer-equipped A/D converter 124 is stored in a digital 1 register. 548
is maintained. However, digital 0 register 5
Since there is not enough time to process the current value of 46 by the CPU 114, the input/output circuit 1
Process within 20 seconds. Specifically, a process is performed to reduce the voltage applied to the current machine. The digital data of the digital 0 register 546, which holds the digital amount obtained by A/D conversion of the current, is compared with the reference data of the reference register group 570, which holds the data equivalent to the current limit value. However, the A/D converter 127 operates independently of the stage signal (E) in FIG. Therefore, each process generates a stage signal E in a certain order, and a processing stage is provided for comparing the current value with this stage signal. This is a type of stage interrupt function. The interrupt function to the stage is requested by the A/D conversion end signal (f) in FIG. 6, which is generated at the rising edge of φ1 . At that time, the stage latch 674 does not hold the output signal of the stage decoder 672, but holds the A/D conversion end signal, and holds the digital data of the current value in the digital 0 register 546 and all current values. It is determined whether the current of the element has reached the limit value by comparing it with the reference data of the reference register group 570. At this time, the stage counter 670 does not count, and the stage decoder 67
By holding the output signal No. 2 in the stage latch 674, the processing stages before the interrupt processing are performed, and each processing is subsequently performed in a certain fixed order. In addition, an A/D converter 124 with a multiplexer
The digital data converted by
The data is taken into the CPU 114 as data. The digital signal converted by the current-only A/D converter 540
Data is also taken into the CPU 114. The input/output circuit 120 includes a status register 550 that serves as an interrupt request signal to the CPU 114, and a mask register 552 that masks the interrupt request signal. Status register 55
0 holds the internal state of the motor and input/output circuit 120. The contents are shown in Table 1.
【表】
第10図はステータス・レジスタ550、マス
ク・レジスタ552と割込みコントローラ554
を示す。
ステータス・レジスタ550は、CPU114
で割込み要因分析を行うために、CPU114の
読出しレジスタとなつている。また、マスク・レ
ジスタ552はCPU114から指定するために
書込みレジスタとなつている。ステータス・レジ
スタ550とマスク・レジスタ552の出力信号
は各ビツトに対応して、アンドーオアーノツトが
とられ、その出力が割込み要求信号となる。
810は割込み要因となる信号である。
また、CPU114から入出力回路120への
モード指定を行うレジスタは、モード0・レジス
タ556、モード1・レジスタ558、モード
2・レジスタ560がある。その内容を第2表に
示す。[Table] Figure 10 shows the status register 550, mask register 552, and interrupt controller 554.
shows. The status register 550 is the CPU 114
It serves as a read register for the CPU 114 in order to perform interrupt factor analysis. Further, the mask register 552 is a write register for designation from the CPU 114. The output signals of status register 550 and mask register 552 are annotated corresponding to each bit, and the output thereof becomes an interrupt request signal.
810 is a signal that causes an interrupt. Further, the registers for specifying the mode from the CPU 114 to the input/output circuit 120 include a mode 0 register 556, a mode 1 register 558, and a mode 2 register 560. The contents are shown in Table 2.
【表】
モード0・レジスタ556、モード1・レジス
タ558、モード2・レジスタ560はすべて、
CPU114から各モードを指定するため書込み
レジスタとなる。
コントロール信号発生回路591はインクリメ
ンタ/デクリメンタ・コントローラ590によつ
て、インクリメンタ/デクリメンタ578の機能
であるインクリメント/デクリメント機能、ノン
インクリメント/デクリメント機能、リセツト機
能を制御するための、カウント信号、インクリメ
ント/デクリメント信号、リセツト信号を発生す
る。
また比較コントローラ581は、比較回路58
0の比較結果(≧,≦,=)を制御するためのもの
である。
出力コントローラ666は、パワー素子の最大
オン時間、最小オフ時間、P側アームとN側アー
ムのラツグ防止のための制御を行い、パワー素子
の保護、補償を行う。
トリガカウンタ660,661は、保護、補償
のための時間を発生させるためのカウンタで、ト
リガ・デコーダ662,663は、保護、補償の
ための時間を発生し、トリガ・ラツチ664,6
65はトリガ・パルスを発生する。
ステージ信号ホの発生回路を第11図に示す。
第7図のノンオーバー・ラツプ回路701からの
クロツク信号φ1=1でステージ・カウンタ67
0が計数を開始し、そのステージ・カウンタ67
0の出力C0〜C9と第5図のモード0・レジスタ
556のビツト2のM2、ビツト6のM6、モード
1・レジスタ558のビツト0,1,2のT0,
T1,T2を入力としてステージ・デコーダ672
に加えられる。ステージ・デコーダ672は出力
としてO0〜O23の信号を発生する。この出力信号
O0〜O23をステージ・ラツチ回路674へ入力
し、クロツク信号φ2=1でこのステージ・ラツ
チ回路674“T”にして前記ステージ・デコー
ダ672の出力O0〜O23を保持する。
またステージ・ラツチ回路674のリセツト入
力Rは第5図のモード0・レジスタ556のビツ
ト0のM0の信号が入力され、M0=0となるとき
はステージ・ラツチ回路674の総ての出力が
“0”(ローレベル)となり、どの処理動作も総て
停止する。一方、上記モード0・レジスタ556
のビツト0の信号M0=1になるとステージ信号
がある定つた順序で出力され、それに基づいて処
理が行われる。
上記ステージ・デコーダ672はリードオンリ
ーメモリなどを使用することにより容易に実現で
き、マイクロ・プログラミング方式とすることも
可能である。また、ステージへの割込み機能は
CMT−Pを出力しているステージ・ラツチ回路
674のラツチ1102で行う。先ず、ステー
ジ・ラツチ回路674のラツチ1102以外のラ
ツチ群1104をA/D変換終了信号で総てリセ
ツトし割込み動作以外は停止させる。そして、
A/D変換終了信号(第6図カ)をラツチ110
2に保持して、割込み動作を行う。
尚ステージ・ラツチ回路674の出力であるス
テージ信号の詳細な処理内容を第3表に示す。[Table] Mode 0 register 556, mode 1 register 558, mode 2 register 560 are all
It serves as a write register for specifying each mode from the CPU 114. The control signal generation circuit 591 generates a count signal, an increment/decrement function, and an increment/decrement function by an incrementer/decrementer controller 590 to control the increment/decrement function, non-increment/decrement function, and reset function, which are the functions of the incrementer/decrementer 578. Generates a decrement signal and a reset signal. The comparison controller 581 also controls the comparison circuit 58
This is for controlling the comparison result (≧,≦,=) of 0. The output controller 666 controls the maximum on time and minimum off time of the power element, and prevents lag between the P-side arm and the N-side arm, and protects and compensates the power element. Trigger counters 660 and 661 are counters for generating time for protection and compensation, trigger decoders 662 and 663 generate time for protection and compensation, and trigger latches 664 and 6
65 generates a trigger pulse. FIG. 11 shows a generation circuit for stage signal E.
When the clock signal φ 1 from the non-overlap circuit 701 in FIG. 7 is 1, the stage counter 67
0 starts counting and its stage counter 67
0 outputs C 0 to C 9 and M 2 of bit 2 of mode 0 register 556 in FIG .
Stage decoder 672 with T 1 and T 2 as input
added to. Stage decoder 672 generates signals O 0 -O 23 as outputs. This output signal
O 0 to O 23 are input to a stage latch circuit 674, and the stage latch circuit 674 is set to "T" by clock signal φ 2 =1 to hold the outputs O 0 to O 23 of the stage decoder 672. In addition, the reset input R of the stage latch circuit 674 receives the M0 signal of bit 0 of the mode 0 register 556 in FIG. 5, and when M0 = 0, all outputs of the stage latch circuit 674 are input. becomes "0" (low level), and all processing operations are stopped. On the other hand, the mode 0 register 556
When the signal M 0 of bit 0 becomes 1, stage signals are output in a certain order, and processing is performed based on this. The stage decoder 672 can be easily realized by using a read-only memory or the like, and can also be implemented using a micro-programming method. In addition, the interrupt function to the stage is
This is done by the latch 1102 of the stage latch circuit 674 which outputs CMT-P. First, all the latch groups 1104 other than the latch 1102 of the stage latch circuit 674 are reset with the A/D conversion end signal, and operations other than interrupt operations are stopped. and,
Latch 110 the A/D conversion end signal (FIG. 6 F)
2 and performs an interrupt operation. Table 3 shows detailed processing contents of the stage signal output from the stage latch circuit 674.
【表】【table】
【表】
次に、ステージ信号とステージカウンタ67
0、レジスタ556,558の出力との関係を示
すと第4表に示すようになる。[Table] Next, the stage signal and stage counter 67
0 and the outputs of registers 556 and 558 are shown in Table 4.
【表】【table】
【表】
先ず第11図のステージ・カウンタ670のリ
セツト端子にゼネラル・リセツト信号GRが入力
され、これによつてカウンタ出力C0〜C9は総て
0となる。このゼネラル・リセツト信号GRはこ
の制御回路の起動時CPU114より送られる。
この状態でステージカウンタ670のカウンタ
C0〜C3は0であり、モード1・レジスタのビツ
ト0のT0、ビツト1のT1とビツト2のT2が総て
0のとき、クロツク信号φ2が入力されるとφ2の
立上りで、PWM8−Pのステージ信号が出る。
このステージ信号によつてPWM8の処理を行
う。次にクロツク信号φ1=1でステージ・カウ
ンタ670が1つ計数され、さらに、クロツク信
号φ2の立上りで次のステージ信号のPN−Pが出
力され、このステージ信号によつてPNの処理が
行われる。このようにしてステージ・カウンタ6
70がφ1=1で計数し続けると、φ2の立上りで
ステージ信号が出力され、この信号に応じた処理
が行われる。
ステージ・カウンタ670のC0〜C9が総て1
となるとステージ信号PGN−Pが出力され(た
だし、モード0・レジスタのM2=0のとき)、
PGN処理が行われ、第4表の総ての処理が終了
する。次のクロツク信号φ1=1でステージ・カ
ウンタ670のC0〜C9は総て0となり、モード
1レジスタ558の出力が0ならば、クロツク信
号φ2=1でステージ信号PWM8−Pが出力さ
れ、PWMの処理が行われる。このように第4表
の処理を繰り返す。
そこで、入出力回路120のシステム・フロー
を第12図に示す。
ゼネラル・リセツト信号GR=0によつて、レ
ジスタ群やステージ・カウンタ670が総て0と
なる。ゼネラル・リセツト信号GR=1になる
と、先ずモード0・レジスタ556のビツト0つ
まり、入出力回路120の起動/停止を指令する
M0が1であるかどうかを判定し、M0=0のとき
はM0=1になるまで、入出力回路120は停止
状態にある。M0=1で、ステージ・カウンタ6
70の出力が0つまり、n=0番目のステージ信
号が発生する。ここから、実際の処理入る。ま
ず、M0=1であるとn番目のステージ信号がス
テージ・ラツチ回路674に保持されると同時に
以下の動作がある。
(i) 第1比較出力ラツチ群602の出力信号を第
2比較出力ラツチ群604へ保持する。
(ii) 瞬時レジスタ群572からステージ信号によ
つて選ばれた瞬時レジスタの内容をラツチ回路
576に保持する。
次に、転送信号MOVEが0か1かどうか判定
し、MOVE=0の場合、ステージ・カウンタ6
70は計数され、さらにラツチ回路576の出力
をインクリメンタ/デクリメンタ578に通し、
その出力は選ばれた瞬時レジスタに書込まれると
同時に、基準レジスタ群570からステージ信号
によつて選ばれた基準レジスタとの比較を行い、
その比較結果を第1比較出力ラツチ群602から
ステージ信号によつて選ばれた第1比較出力ラツ
チにセツトする。その後A/D変換終了信号
ADEの判定を行う。また、転送信号MOVE=1
のときは、ステージ・カウンタ670の計数する
と同時に、瞬時レジスタの内容を出力レジスタ群
574からステージ信号によつて選ばれた出力レ
ジスタを転送し、瞬時レジスタを総て0にする。
A/D変換終了信号ADEが0か1かの判定に
より、ステージへの割込みが要求される。ADE
=0のときは、再び元に戻つて次の処理を行う
が、ADE=1のときは、モード0・レジスタ5
56のビツト3のM3つまりステージへの割込み
マスクビツトが0か1かを判定し、M3=0のと
きは再び元に戻つて次の処理を行う。M3=1の
ときは、ステージへの割込み処理を行う。そのた
めに、A/D変換終了信号ADEをステージ・ラ
ツチ回路674に保持し、ステージ信号CMT−
Pを発生し、デイジタル0・レジスタの内容と基
準レジスタ群570の電流に関する基準レジスタ
の内容を比較し、その比較結果を第1比較出力ラ
ツチ群602の電流に関する第1比較出力ラツチ
にセツトし、再び元に戻りステージへの割込み前
の処理が以後行われる。
第12図の右上のフローは、モード0・レジス
タ556のM0=0のときのフローであり、入出
力回路120の動作が停止すると同時に、M0=
1となる起動指令まで待つことになる。
次に外部パルス信号PU,PV,PWの内容動作
に対する同期化の回路図を第13図、タイミング
を第14図に示す。
第11図のステージ・ラツチ回路674の出力
STAGE3−P、STAGE2−Pを使用してイネ
ーブル信号Eと上記外部パルス信号PU,PV,
PW(第14図タ)の同期をとつた信号を発生さ
せる。
電動機の位相検出器等の外部パルス信号PU,
PV,PWは、第11図のSTAGE3−Pとφ2を合
成した信号ツにより第13図のラツチ回路130
2,1304,1306にそれぞれラツチされ
る。
第14図でロはクロツク信号φ2、ハはクロツ
ク信号φ1、タは外部パルス信号PU,PV,PW、
レとソはステージ信号STAGE3−P、STAGE
2−Pである。このステージ信号は第11図で説
明した如く、φ2=1に同期して発生する。外部
パルス信号タとステージ信号レとソは時間的には
何ら無関係にある。
いま、第14図の如く、外部パルス信号タが第
13図のラツチ回路1302,1304,130
6に入力されたと仮定するとステージ信号
STAGE3−Pとクロツク信号φ2とのAND信号
STAGE3−P・φ2ツによつてそれぞれラツチさ
れる。従つて、ラツチ回路1302,1304,
1306の出力信号PU1,PV1,PW1は第1
4図のナに示すようになる。ラツチ回路130
8,1310,1312は出力信号PU1,PV
1,PW1をそれぞれステージ信号STAGE2−P
とクロツク信号φ2とのAND信号STAGE2−
P・φ2ネでラツチするため、ラツチ回路130
8,1310,1312の出力信号PU2,PV
2,PW2は第14図のラに示すようになる。
排他オア回路1314,1316,1318
は、それぞれ信号PU1とPU2、信号PV1とPV
2、信号PW1とPW2が入力され、外部パルス
信号PU,PV,PWの立上り、立下りの検出信号
PUS,PVS,PWSを発生し第13図ムステージ
信号STAGE3−PからSTAGE2−Pのパルス
幅となる。第13図の同期化回路680によれば
外部パルス信号の立上り、立下りを一定の幅のパ
ルスで検出でき、このパルス幅はステージ信号
STAGE3−PとSTAGE2−Pの時間差で定ま
る。従つてラツチ回路1302,1304,13
06と1308,1310,1312、へ入力す
るステージ信号を変更することによりパルス幅を
調整し変更することができる。
このパルス幅は第4表のステージ信号の割付け
に関連して定められる。つまり、処理の上で外部
パルス信号を必要としないSTAGE2−P以外に
外部パルスの立上り、立下りの検出信号ムが確立
するように定められている。この検出信号ムがイ
ンクリメンタ/デクリメンタ・コントローラ59
0の制御信号となる。
また、第13図に示す同期化回路680の外部
パルス信号PU,PV,PWはそれぞれ、120度の
位相差をもつ180度のパルスを考えた場合で、排
他オア回路1314,1316,1318の出力
を3入力のオア回路1320に入力し、その出力
をノツト回路1322に入力することにより、60
度のパルスを得ることができる。また、3入力で
なく、第3図に示すようにパルス・ジエネレータ
152の出力をこの同期化回路680の外部パル
ス信号PU,PV,PWのいずれか一つに入力する
ことによつて電動機102の回転数の検出を行う
ことができる。
また位相検出器等からの外部パルス信号に対し
て同期を確実にかけ、同期化パルスPUS,PVS,
PWSを確実に発生させるためには上記位相検出
器等からの出力が8μs以上のパルス幅をもつこと
が必要である。(本実施例ではCPU114からの
イネーブル信号Eが1μsとして、第4表のステー
ジ信号のPG−P、PULS−Pは8μs毎に出力され
る。)
例えば、位相検出器でなく、1回転に500パル
ス出力するパルス・ジエネレータをこの同期化回
路608に入力したとすると、パルス幅8μsにな
る回転数は7500回転/分である。これ以上の回転
数に追従するためには、この8μsを短くする必要
がある。
電動機等の入力データを取込みCPU114内
で演算処理された各パルス出力に応じた基準デー
タを保持している基準レジスタ群570の詳細な
内容を第5表に示す。またその構成図を第15図
に示す。[Table] First, the general reset signal GR is input to the reset terminal of the stage counter 670 shown in FIG. 11, so that the counter outputs C 0 to C 9 all become 0. This general reset signal GR is sent from the CPU 114 when this control circuit is activated.
In this state, the counter of the stage counter 670
C 0 to C 3 are 0, and when T 0 of bit 0, T 1 of bit 1, and T 2 of bit 2 of the mode 1 register are all 0, when clock signal φ 2 is input, φ 2 At the rising edge of , the PWM8-P stage signal is output.
PWM 8 processing is performed using this stage signal. Next, the stage counter 670 counts by one when the clock signal φ 1 =1, and furthermore, the next stage signal PN-P is outputted at the rising edge of the clock signal φ 2 , and the processing of PN is performed by this stage signal. It will be done. In this way, the stage counter 6
When 70 continues counting with φ 1 =1, a stage signal is output at the rising edge of φ 2 and processing is performed according to this signal. C 0 to C 9 of stage counter 670 are all 1
Then, the stage signal PGN-P is output (however, when M 2 = 0 in the mode 0 register),
PGN processing is performed, and all the processing in Table 4 is completed. When the next clock signal φ 1 =1, all C 0 to C 9 of the stage counter 670 become 0, and if the output of the mode 1 register 558 is 0, the stage signal PWM8-P is output when the clock signal φ 2 =1. and PWM processing is performed. In this way, the processing in Table 4 is repeated. Therefore, the system flow of the input/output circuit 120 is shown in FIG. The register group and stage counter 670 are all set to 0 by the general reset signal GR=0. When the general reset signal GR becomes 1, it first sets bit 0 of the mode 0 register 556, that is, commands to start/stop the input/output circuit 120.
It is determined whether M 0 is 1, and when M 0 =0, the input/output circuit 120 is in a stopped state until M 0 =1. With M 0 = 1, stage counter 6
The output of 70 is 0, that is, the n=0th stage signal is generated. From here, the actual processing begins. First, when M 0 =1, the nth stage signal is held in the stage latch circuit 674 and at the same time the following operation occurs. (i) The output signal of the first comparison output latch group 602 is held in the second comparison output latch group 604. (ii) The contents of the instantaneous register selected from the instantaneous register group 572 by the stage signal are held in the latch circuit 576. Next, it is determined whether the transfer signal MOVE is 0 or 1, and if MOVE=0, the stage counter 6
70 is counted, and the output of the latch circuit 576 is passed through an incrementer/decrementer 578.
The output is written to the selected instantaneous register and at the same time is compared with a reference register selected by the stage signal from the reference register group 570;
The comparison result is set in the first comparison output latch selected from the first comparison output latch group 602 by the stage signal. After that, A/D conversion end signal
Determine ADE. Also, the transfer signal MOVE=1
At the same time as the stage counter 670 counts, the contents of the instantaneous register are transferred from the output register group 574 to the output register selected by the stage signal, and all instantaneous registers are set to 0. Depending on whether the A/D conversion end signal ADE is 0 or 1, an interrupt to the stage is requested. ADE
When = 0, it returns to the original state and performs the next process, but when ADE = 1, mode 0 register 5
It is determined whether M 3 of bit 3 of 56, that is, the interrupt mask bit to the stage, is 0 or 1, and when M 3 =0, the process returns to the original state and performs the next process. When M 3 =1, interrupt processing to the stage is performed. For this purpose, the A/D conversion end signal ADE is held in the stage latch circuit 674, and the stage signal CMT-
P, compares the contents of the digital 0 register with the contents of the current-related reference register of the reference register group 570, and sets the comparison result in the current-related first comparison output latch of the first comparison output latch group 602; The process returns to the original state and the processing before interrupting the stage is performed thereafter. The flow at the upper right of FIG. 12 is the flow when M 0 =0 in mode 0 register 556, and at the same time as the input/output circuit 120 stops operating, M 0 =0.
It will wait until the activation command becomes 1. Next, a circuit diagram for synchronizing the contents and operations of external pulse signals PU, PV, and PW is shown in FIG. 13, and timing is shown in FIG. 14. Output of stage latch circuit 674 in FIG.
Using STAGE3-P and STAGE2-P, enable signal E and the above external pulse signals PU, PV,
Generates a signal synchronized with PW (Fig. 14). External pulse signal PU for motor phase detector, etc.
PV and PW are connected to the latch circuit 130 in Fig. 13 by a signal that is a combination of STAGE3-P and φ2 in Fig. 11.
2, 1304, and 1306, respectively. In Fig. 14, B is the clock signal φ 2 , C is the clock signal φ 1 , ta is the external pulse signal PU, PV, PW,
Re and G are stage signals STAGE3-P, STAGE
2-P. This stage signal is generated in synchronization with φ 2 =1, as explained in FIG. The external pulse signal T and the stage signals R and S have no relationship in terms of time. Now, as shown in FIG. 14, the external pulse signal is connected to the latch circuits 1302, 1304, 130 in FIG.
Assuming that it is input to 6, the stage signal
AND signal of STAGE3-P and clock signal φ2
STAGE3-P and φ2 are respectively latched. Therefore, latch circuits 1302, 1304,
The output signals PU1, PV1, and PW1 of 1306 are the first
The result will be as shown in Figure 4 (Na). Latch circuit 130
8, 1310, 1312 are output signals PU1, PV
1, PW1 as stage signal STAGE2-P
AND signal STAGE2- with clock signal φ2
The latch circuit 130 is used to latch with P・φ2 pin.
8, 1310, 1312 output signals PU2, PV
2. PW2 becomes as shown in A of Fig. 14. Exclusive OR circuit 1314, 1316, 1318
are the signals PU1 and PU2, and the signals PV1 and PV, respectively.
2. Signals PW1 and PW2 are input, and the rising and falling detection signals of external pulse signals PU, PV, and PW are detected.
PUS, PVS, and PWS are generated, and the pulse width becomes the stage signal STAGE3-P to STAGE2-P in FIG. According to the synchronization circuit 680 in FIG. 13, the rise and fall of the external pulse signal can be detected as pulses with a constant width, and this pulse width is determined by the stage signal.
It is determined by the time difference between STAGE3-P and STAGE2-P. Therefore, latch circuits 1302, 1304, 13
By changing the stage signals input to 06, 1308, 1310, and 1312, the pulse width can be adjusted and changed. This pulse width is determined in relation to the stage signal assignments in Table 4. That is, in addition to STAGE2-P, which does not require an external pulse signal for processing, detection signals for the rising and falling edges of external pulses are established. This detection signal is the incrementer/decrementer controller 59.
The control signal becomes 0. Furthermore, the external pulse signals PU, PV, and PW of the synchronization circuit 680 shown in FIG. By inputting 60 to the 3-input OR circuit 1320 and inputting its output to the NOT circuit 1322,
You can get a pulse of 100 degrees. Furthermore, instead of using three inputs, the output of the pulse generator 152 can be input to any one of the external pulse signals PU, PV, and PW of the synchronization circuit 680 as shown in FIG. The number of rotations can be detected. In addition, synchronization is reliably applied to external pulse signals from phase detectors, etc., and synchronization pulses PUS, PVS,
In order to reliably generate PWS, it is necessary that the output from the phase detector and the like has a pulse width of 8 μs or more. (In this embodiment, the enable signal E from the CPU 114 is assumed to be 1 μs, and the stage signals PG-P and PULS-P in Table 4 are output every 8 μs.) If a pulse generator that outputs pulses is input to this synchronization circuit 608, the number of revolutions at which the pulse width is 8 μs is 7500 revolutions/minute. In order to follow higher rotational speeds, it is necessary to shorten this 8μs. Table 5 shows the detailed contents of the reference register group 570, which holds reference data corresponding to each pulse output that receives input data from an electric motor, etc., and is processed in the CPU 114. Further, its configuration diagram is shown in FIG. 15.
【表】【table】
【表】
電動機等の瞬時の状態を保持し、カウンタ機能
を有する瞬時レジスタ群572の詳細な内容を第
6表に示す。その構成図を第16図に示す。[Table] Table 6 shows the detailed contents of the instantaneous register group 572 that holds the instantaneous state of the electric motor etc. and has a counter function. Its configuration diagram is shown in FIG.
【表】【table】
【表】
測定されたデータを保持している出力レジスタ
群574の詳細な内容を第7表に示す。その構成
図を第17図に示す。[Table] Table 7 shows detailed contents of the output register group 574 holding measured data. Its configuration diagram is shown in FIG.
【表】
比較回路580の比較出力を保持する第1比較
出力ラツチ群602と第2比較出力ラツチ群60
4の詳細な内容を第8表に示し、その構成図を第
18図に示す。[Table] First comparison output latch group 602 and second comparison output latch group 60 that hold the comparison output of comparison circuit 580
The detailed contents of 4 are shown in Table 8, and its configuration diagram is shown in FIG.
【表】【table】
【表】
第16図は第1図に示した位相検出器付電動機
(無整流子電動機)のインバータのゲート信号で
あるパルス幅変調信号の発生を説明した図であ
る。
パルス幅変調信号の搬送波PWMの発生はステ
ージ信号PWM−Pの処理によつて行う。搬送波
は瞬時レジスタ群572のPWMT、REG732
と基準レジスタ群570のP0 REG702と、
P1 REG704によつて作られる。ステージ
信号PWM−Pの処理のとき、PWMT REG73
2は無条件にインクリメンタ/デクリメンタ57
8によつてインクリメントもしくはデクリメント
される。また、位相検出器150の出力信号であ
るPU,PV,PWが外部パルス信号となつて入出
力回路120に入力され、それらの立上り、立下
りを示した同期化された外部パルス信号PSが
“1”のとき、PWMT REG732はリセツトさ
れる。
インクリメントとデクリメントの制御は、第2
比較出力ラツチ群604のP0 BE910とP
1BF912によつて行われる。P0 BF=1で
リセツト、P1 BF=1でリセツトされるフリ
ツプ・フロツプ(図示せず)の出力のDEC/
INCが“0”のとき、PWMT REG732はイ
ンクリメントされ、DFC/INCが“1”のとき、
PWMT REG732はデクリメントされる。
また、デクリメントされるときは、P0
REG702と比較され、P0 REG702の保
持データがPWMT REG732の保持データ以
上と条件を満足すると、第1比較出力ラツチ群6
02のP0 FF754に“1”をラツチする。
さらに、第2比較出力ラツチ群604のP0
BF910はP0 FF754の出力をラツチし、
P0 BF910の出力は“1”となる。
インクリメントされるときは、P1 REG7
04と比較され、P1 REG704の保持デー
タがPWMT REG732の保持データ以下の条
件を満足すると、第1比較出力ラツチ群602の
P1 FF756に“1”をラツチする。さらに、
第2比較出力ラツチ群604のP1 BF912
はP1 FF756の出力をラツチし、P1 BF
912の出力が“1”となる。第19図に示すよ
うにPWMT REG732の保持データは時間と
共に変化する。
次に、パルス変調信号のパルスの個数を計数す
るPN−Pの処理は、瞬時レジスタ群572の
PNC REG734はP0 BE910が“1”の
ときインクリメントされ、同期化された外部パル
ス信号PSが“1”のとき、PNC REG734の
保持データは出力レジスタ群574のCPN REG
752に転送し(第19図A)、書込まれ、PNC
REG734はリセツトされる。それ故CPU11
4はパルスの個数を読み取ることができる。
ステージ信号OP−Pの処理のとき、PWMT
REG732は無条件にノンインクリメントされ、
基準レジスタ群570のD2 REG708と比
較され、D2 REG708の保持データが
PWMT REG732の保持データ以下の条件を
満足するとき、第1比較出力ラツチ群574の
UP FF760,VP FF762、WP FF764、
UN FF766、VN FF768、WN FF770
を第20図の選択回路で選んで、その第1比較出
力ラツチ群602に“1”をラツチする。さらに
第2比較出力ラツチ群604のUP BF916、
VP BF918、WP BF920、UN BF92
2、VN BF924、WN BF926はそれぞれ、
UP FF760、VP FF762、WP FF764、
UN FF766、VN FF768、WN FF770
の出力をラツチする。
また、ステージ信号DP−Pの処理のとき、
PWMT REG732は無条件にノンインクリメ
ントされ、基準レジスタ群570のD1 REG
706と比較され、D1 REG706の保持デ
ータがPWMT REG732の保持データ以上の
条件を満足するとき、第1比較出力ラツチ群57
4のUP FF760、VP FF762、WP FF7
64、UN FF766、VN FF768、WN FF
770を第20図の選択回路で選んで、その第1
比較出力ラツチ群602に“1”をラツチする。
第2比較出力ラツチ群604のUP BF916、
VP BF918、WP BF920、UN BF92
2、VN BF924、WN BF926はそれぞれ
UP FF760、VP FF762、WP FF764、
UN FF766、VN FF768、WN FF770
の出力をラツチする。
UP BF916、VP BF918、WP BF92
0、UN BF922、VN BF924、WN BF
926の出力信号が各アームのパルス幅変調信号
となる。
第20図は、第13図に示す位相検出信号を同
期化した信号PU1,PV1,PW1により、ステ
ージ信号OP−P、DP−Pの処理に必要な第1比
較出力ラツチ群602の選択回路を示す。また、
第9表はPU1,PV1、PW1の位相モードに応
じた第1比較出力ラツチ群602の選択表であ
る。[Table] FIG. 16 is a diagram illustrating the generation of a pulse width modulation signal, which is the gate signal of the inverter of the motor with a phase detector (non-commutator motor) shown in FIG. The carrier wave PWM of the pulse width modulation signal is generated by processing the stage signal PWM-P. The carrier wave is PWMT of instantaneous register group 572, REG732
and P0 REG702 of the reference register group 570,
Made by P1 REG704. When processing stage signal PWM-P, PWMT REG73
2 is an unconditional incrementer/decrementer 57
Incremented or decremented by 8. Further, the output signals PU, PV, and PW of the phase detector 150 are inputted to the input/output circuit 120 as external pulse signals, and the synchronized external pulse signal PS indicating their rising and falling edges is " 1”, PWMT REG 732 is reset. Increment and decrement control is performed by the second
Comparison output latch group 604 P0 BE910 and P
1BF912. DEC/ of the output of a flip-flop (not shown) which is reset when P0 BF=1 and reset when P1 BF=1.
When INC is “0”, PWMT REG732 is incremented, and when DFC/INC is “1”,
PWMT REG 732 is decremented. Also, when decremented, P0
It is compared with REG702, and if the held data of P0 REG702 satisfies the condition that it is greater than or equal to the held data of PWMT REG732, the first comparison output latch group 6
Latch “1” to P0 FF754 of 02.
Furthermore, P0 of the second comparison output latch group 604
BF910 latches the output of P0 FF754,
The output of P0 BF910 becomes "1". When incremented, P1 REG7
04, and if the data held in the P1 REG 704 satisfies the condition below the data held in the PWMT REG 732, “1” is latched in the P1 FF 756 of the first comparison output latch group 602. moreover,
P1 BF912 of second comparison output latch group 604
latches the output of P1 FF756, and P1 BF
The output of 912 becomes "1". As shown in FIG. 19, the data held in the PWMT REG 732 changes with time. Next, the PN-P process of counting the number of pulses of the pulse modulation signal is performed by the instantaneous register group 572.
PNC REG734 is incremented when P0 BE910 is “1”, and when the synchronized external pulse signal PS is “1”, the data held in PNC REG734 is incremented by CPN REG of output register group 574.
Transferred to 752 (Fig. 19A), written, and PNC
REG 734 is reset. Therefore CPU11
4 can read the number of pulses. When processing stage signal OP-P, PWMT
REG732 is unconditionally non-incremented,
It is compared with D2 REG708 of the reference register group 570, and the data held in D2 REG708 is
When the following conditions are satisfied for the data held in PWMT REG 732, the first comparison output latch group 574
UP FF760, VP FF762, WP FF764,
UN FF766, VN FF768, WN FF770
is selected by the selection circuit shown in FIG. 20, and "1" is latched in the first comparison output latch group 602. Furthermore, the UP BF916 of the second comparison output latch group 604,
VP BF918, WP BF920, UN BF92
2. VN BF924 and WN BF926 are each
UP FF760, VP FF762, WP FF764,
UN FF766, VN FF768, WN FF770
Latch the output of Also, when processing the stage signal DP-P,
PWMT REG 732 is unconditionally non-incremented and D1 REG of reference register group 570
706, and when the data held in D1 REG 706 satisfies the condition that is greater than or equal to the data held in PWMT REG 732, the first comparison output latch group 57
4 UP FF760, VP FF762, WP FF7
64, UN FF766, VN FF768, WN FF
770 using the selection circuit shown in Figure 20, and the first
“1” is latched in the comparison output latch group 602.
UP BF916 of the second comparison output latch group 604,
VP BF918, WP BF920, UN BF92
2. VN BF924 and WN BF926 are respectively
UP FF760, VP FF762, WP FF764,
UN FF766, VN FF768, WN FF770
Latch the output of UP BF916, VP BF918, WP BF92
0, UN BF922, VN BF924, WN BF
The output signal of 926 becomes a pulse width modulation signal for each arm. FIG. 20 shows a selection circuit for the first comparison output latch group 602 necessary for processing the stage signals OP-P and DP-P using signals PU1, PV1, and PW1 that are synchronized with the phase detection signals shown in FIG. show. Also,
Table 9 is a selection table for the first comparison output latch group 602 according to the phase modes of PU1, PV1, and PW1.
【表】
第20図は、外部パルス信号である位相検出信
号をSTAGE3−P・φ2=1でラツチした信号
PU1,PV1,PW1を入力として、第9表に示
す位相信号であるPHASE0、PHASE1、
PHASE2、PHASE3、PHASE4、PHASE
5、PHASE6、PHASE7を位相デコーダ30
2、位相ラツチ回路304を介して発生させる。
そして、第1比較出力ラツチ群の選択するラツチ
は位相信号に対応して第9表にOP−P、DP−P
の処理毎に選ばれる。ここで、PHASE0、
PHASE7の状態は、位相検出器150の故障で
あり、あり得ない状態である。このような
PHASE0、PHASE7では、全アームを遮断し
て保護する。第20図は、位相検出器150の故
障診断機能を有していることになる。また、
PHASE0、PHASE7ではステータス・レジス
タ550のビツト4のS4へ“1”が書込まれ、
CPU114への割込み要求信号となり、パ
ワー素子の保護が可能である。
第21図は、第3図に示すような位相検出器な
しの電動機(誘導電動器)の不等パルスのインバ
ータのゲート信号であるパルス変調信号PWMの
発生を説明した図である。
パルス幅変調信号の搬送波PWMの発生はステ
ージ信号PWM−Pの処理によつて行われる。搬
送波PWMは瞬時レジスタ群572のPWMT、
REG732と基準レジスタ群570のP0
REG702、P1 REG704によつて作られ
る。ステージ信号PWM−Pの処理のとき、
PWMT REG732は無条件にインクリメン
タ/デクリメンタ578によつてインクリメント
もしくはデクリメントされる。インクリメントと
デクリメントの制御は、第2比較出力ラツチ群6
04のP0 BF910とP1 BF912によつ
て行われる。P0 BF=1でリセツト、P1
BF=1でリセツトされるフリツプ・フロツプ
(図示せず)の出力のDEC/INCが“0”のと
き、PWMT REG732はインクリメントされ、
DEC/INCが“1”のとき、PWMT REG73
2はデクリメントされる。
また、デクリメントされるときは、P0
REG702と比較され、P0 REG702の保
持データがPWMT REG732の保持データ以
上の条件を満足すると、第1比較出力ラツチ群6
02のP0 FF754に“1”をラツチする。
さらに、第2比較出力ラツチ群604のP0
BF910はP0 FF754の出力をラツチし、
P0 BF910の出力は“1”となる。
インクリメントされるときは、P1 REG7
04と比較され、P1 REG704の保持デー
タがPWNT REGの保持データ以下の条件を満
足すると、第1比較出力ラツチ群602のP1
FF756に“1”をラツチする。さらに、第2
比較出力ラツチ群604のP1 BF912はP
1 FF756の出力をラツチし、P1 BF91
2の出力が“1”となる。第21図に示すように
PWMT REG732の保持データは時間と共に
変化する。
次に、モード0・レジスタ556のビツト4の
M4を“1”にした場合の不等パルスの個数の制
御について説明する。
パルス変調信号のパルスの個数を計数するPN
−Pの処理は、瞬時レジスタ群572のPNC
REG734はP0 BF910が“1”のときイ
ンクリメントされ、基準レジスタ群570のPN
REG720と比較され、PN REG720の保持
データがPNC REG734の保持データ以下の条
件を満足すると、第1比較出力ラツチ群574の
PN FF758に“1”をラツチする。さらに、
第2比較出力ラツチ群604のPN BF912は
PN FF758の出力をラツチし、PN BF912
の出力は“1”となる。また、PNC REG734
はPN BF912の出力が“1”のとき、リセツ
トされる。このPN BF912によつて、パルス
の個数が制御される。
第22図は、位相検出器150の位相検出信号
PU,PV,PWに相当する信号PU1,PV1,
PW1の位相発生回路306を示す。位相発生回
路306は3段のシフト・レジスタであり、
PNBF1で1段づつシフトされ、そのシフト状態
を第10表に示す。位相モードは6モードあり、
PHASE1、PHASE2、PHASE3、PHASE
4、PHASE5、PHASE6である。[Table] Figure 20 shows the signal obtained by latching the phase detection signal, which is an external pulse signal, with STAGE3-P・φ 2 =1.
Using PU1, PV1, and PW1 as input, the phase signals shown in Table 9, PHASE0, PHASE1,
PHASE2, PHASE3, PHASE4, PHASE
5. PHASE6, PHASE7 as phase decoder 30
2. Generated through the phase latch circuit 304.
The latches selected in the first comparative output latch group are shown in Table 9 as OP-P and DP-P in accordance with the phase signal.
selected for each process. Here, PHASE0,
The state of PHASE7 is a failure of the phase detector 150 and is an impossible state. like this
In PHASE0 and PHASE7, all arms are blocked and protected. FIG. 20 has a failure diagnosis function for the phase detector 150. Also,
In PHASE0 and PHASE7, “1” is written to bit 4 S4 of status register 550,
This serves as an interrupt request signal to the CPU 114, making it possible to protect the power device. FIG. 21 is a diagram illustrating generation of a pulse modulation signal PWM, which is a gate signal of an inverter of unequal pulses in a motor (induction motor) without a phase detector as shown in FIG. The carrier wave PWM of the pulse width modulation signal is generated by processing the stage signal PWM-P. The carrier wave PWM is the PWMT of the instantaneous register group 572,
REG732 and P0 of reference register group 570
REG702, P1 Created by REG704. When processing the stage signal PWM-P,
PWMT REG 732 is unconditionally incremented or decremented by incrementer/decrementer 578. Increment and decrement control is performed by the second comparison output latch group 6.
This is done by P0 BF910 and P1 BF912 of 04. P0 Reset when BF=1, P1
When DEC/INC of the output of the flip-flop (not shown) which is reset by BF=1 is “0”, PWMT REG732 is incremented,
When DEC/INC is “1”, PWMT REG73
2 is decremented. Also, when decremented, P0
REG702, and if the held data of P0 REG702 satisfies the condition that is greater than or equal to the held data of PWMT REG732, the first comparison output latch group 6
Latch “1” to P0 FF754 of 02.
Furthermore, P0 of the second comparison output latch group 604
BF910 latches the output of P0 FF754,
The output of P0 BF910 becomes "1". When incremented, P1 REG7
04, and if the held data of P1 REG 704 satisfies the condition below the held data of PWNT REG, P1 of the first comparison output latch group 602
Latch “1” to FF756. Furthermore, the second
P1 of comparison output latch group 604 BF912 is P
1 Latch the output of FF756, P1 BF91
The output of 2 becomes "1". As shown in Figure 21
The data held in the PWMT REG 732 changes over time. Next, bit 4 of mode 0 register 556
Control of the number of unequal pulses when M 4 is set to "1" will be explained. PN that counts the number of pulses in a pulse modulation signal
-P processing is the PNC of the instantaneous register group 572.
REG734 is incremented when P0 BF910 is “1”, and PN of reference register group 570 is incremented.
REG720, and if the held data of PN REG720 satisfies the condition below the held data of PNC REG734, the first comparison output latch group 574
Latch “1” to PN FF758. moreover,
PN BF912 of the second comparison output latch group 604 is
Latch the output of PN FF758 and PN BF912
The output of is "1". Also, PNC REG734
is reset when the output of PN BF912 is "1". The number of pulses is controlled by this PN BF912. FIG. 22 shows the phase detection signal of the phase detector 150.
Signals PU1, PV1, corresponding to PU, PV, PW
The phase generation circuit 306 of PW1 is shown. The phase generation circuit 306 is a three-stage shift register,
PNBF1 is shifted one stage at a time, and the shift status is shown in Table 10. There are 6 phase modes,
PHASE1, PHASE2, PHASE3, PHASE
4, PHASE5, PHASE6.
【表】
次に不等パルスの各アームのパルス幅変調信号
はステージ信号UTM−P、VTM−P、WTM
−Pの処理によつて行われる。UTM−Pの処理
のとき、PWMT REG732は無条件にノンイ
ンクリメントされ、第23図の基準レジスタ群5
70の選択回路の基準レジスタ選択ラツチ312
によつて選ばれた変調波に関するレジスタ(D1
REG706,D2 REG708,D3 REG
710,D4 REG712,D5 REG714,
D6 REG716,D7 REG718)の保持
データと比較され、その比較結果は第23図の比
較結果選択ラツチ310によつて選ばれた比較出
力(基準レジスタ≦瞬時レジスタ、基準レジスタ
≧瞬時レジスタ、位相信号)を第1比較出力ラツ
チ群602のUP FF760にラツチすると同時
に、その比較出力の反転信号を第1比較出力ラツ
チ群602のUN FF766にラツチし、さら
に、第2比較出力ラツチ群604のUP BF91
6,UN BF922にそれぞれUP FF760,
UN FF766の出力をラツチする。また、ステ
ージ信号VTM−P;WTM−Pの処理も同様に
動作する。
第23図は、パルス幅変調制御回路を示す。P
0 BF910の出力が“1”が計数され、PN
BF914の出力が“1”でリセツトされるPNス
テージ・カウンタ314の出力SC0,SC1,SC2,
SC3と位相信号PU1,PV1,PW1を入力とす
るパルス幅変調デコーダ308によつて、基準レ
ジスタ群570の基準レジスタの選択および比較
結果の選択が行なわれる。ステージ信号UTM−
P,VTM−P,WTM−Pでラツチされる基準
レジスタ選択ラツチ312と比較結果選択ラツチ
310によつて、第11表に示す基準レジスタ選択
信号D1 REG SEL,D2 REG SEL,D3
REG SEL,D4 REG SEL,D5 REG
SEL,D6 REG SEL,D7 REG SELと比
較結果選択信号GE SEL(基準レジスタの保持デ
ータ≦瞬時レジスタの保持データ)、LESEL(基
準レジスタの保持データ≧瞬時レジスタの保持デ
ータ)、PHASE SEL(位相信号)を発生させる。[Table] Next, the pulse width modulation signals of each arm of the unequal pulse are the stage signals UTM-P, VTM-P, WTM.
- This is done by processing P. During UTM-P processing, PWMT REG732 is unconditionally non-incremented, and the reference register group 5 in FIG.
70 selection circuit reference register selection latch 312
A register (D1) related to the modulated wave selected by
REG706,D2 REG708,D3 REG
710, D4 REG712, D5 REG714,
D6 REG716, D7 REG718) are compared with the data held therein, and the comparison result is the comparison output (reference register≦instantaneous register, reference register≧instantaneous register, phase signal) selected by comparison result selection latch 310 in FIG. is latched to the UP FF760 of the first comparison output latch group 602, and at the same time, the inverted signal of the comparison output is latched to the UN FF766 of the first comparison output latch group 602, and further, the UP BF91 of the second comparison output latch group 604 is latched.
6, UP FF760 to UN BF922,
UN Latch the output of FF766. Furthermore, the processing of stage signals VTM-P; WTM-P operates similarly. FIG. 23 shows a pulse width modulation control circuit. P
0 BF910 output is counted as “1” and PN
The outputs SC 0 , SC 1 , SC 2 , of the PN stage counter 314 are reset when the output of the BF 914 is “1”.
A pulse width modulation decoder 308 receiving SC 3 and phase signals PU1, PV1, and PW1 selects a reference register of the reference register group 570 and selects a comparison result. Stage signal UTM−
The reference register selection latch 312 and comparison result selection latch 310 latched by P, VTM-P, and WTM-P generate the reference register selection signal D1 REG SEL, D2 REG SEL, D3 shown in Table 11.
REG SEL, D4 REG SEL, D5 REG
SEL, D6 REG SEL, D7 REG SEL and comparison result selection signal GE SEL (data held in the reference register ≦ data held in the instantaneous register), LESEL (data held in the reference register ≧ data held in the instantaneous register), PHASE SEL (phase signal ) occurs.
【表】【table】
【表】【table】
【表】
この結果第21図に示すUP BF916,
VPBF918,WP BF920,UN BF922,
VN BF924,WN BF926の信号が作られ、
各アームにゲート信号となる。第21図に示す15
個の不等パルスのパルス幅変調信号を発生するこ
とができる。また、9個の不等パルス、3個の不
等パルスも、基準レジスタ群570のPN REG
720のデータをCPU114より変更すること
によつて可能であり、インバータの周波数に応じ
て変更するのがよい。
さらに、等パルスについては、モード0・レジ
スタ556のビツト4のM4を“0”にすること
によつて、基準レジスタ570のD1 REG7
06のみを選択することで可能となる。
また、モード0・レジスタ556のビツト6の
M6を“0”にすると、第19図の位相検出器付
電動機(無整流子電動機)のパルス幅変調信号発
生となり、M6を“1”にすると第21図の誘導
電動機の不等パルスのパルス幅変調信号発生とな
る。
第24図はチヨツパ信号CHの発生を説明した
図である。チヨツパ信号CHはデユーテイ制御を
行う。基準レジスタ群570には第15図に示す
ように同期のデータを保持するCHP REG724
とオン時間のデータを保持するCHD REG72
6がある。またタイマとしては瞬時レジスタ群5
72のCHT REG740により作られる。
ステージ信号CHP−P処理のとき、CHT
REG740は無条件にインクリメントされ、ま
たCHP REG724と比較され、CHP REG72
4の保持データがCHT REG740の保持デー
タ以下の条件を満足するとき、第1比較出力ラツ
チ群602のCHP FF774に“1”をラツチ
する。さらに、第2比較出力ラツチ群604の
CHP BF930はCHP FF774の出力をラツ
チし、CHP BF930の出力は“1”となる。
ステージ信号CHD−Pの処理のとき、CHT
REG740は無条件にノンインクリメントされ
る。また、CHP BF930の出力が“1”で
CHT REG740はリセツトされる。この処理
では、CHD REG726の保持データがCHT
REG740の保持データ以下の条件を満足した
とき、第1比較出力ラツチ群602のCHD FF
776に“1”をラツチし、第2比較出力ラツチ
群604のCHD BF932はCHD FF776の
出力がラツチされ、CHDBF932の出力は
“1”となる。
このCHD BF932の反転出力がチヨツパ信
号CHである。
第25図は、同期化された外部パルス信号PS
のパルス時間幅を測定する2つの処理、PG処理、
PGN処理をモード0レジスタ556のM2=0の
ときの状態を説明した図である。
測定方法は、同期化された外部パルス信号PS
=1のときから測定が始まる。測定する時間幅は
瞬時レジスタ群572のPG REG738で決定
される。
PG REG738はステージ信号PG−Pの処理
のとき、瞬時レジスタ群572のPGT REG73
8は無条件にインクリメントされる。しかし、同
期化された外部パルス信号PSのパルス時間幅が
長くなるとPGT REG738はオーバーフローす
ることになる(第25図のB点)。そこで、PGT
REG738のオーバーフロー回数を計数するス
テージ信号PGN−P処理がある。
また、PGT REG738の保持データは基準レ
ジスタ群570のP0 REG702の保持デー
タ(通常、総て0である。)と比較され、P0
REG702の保持データがPGT REG738の
保持データ以上の条件を満足するとき、第1比較
出力ラツチ群602のPG FF780に“1”を
ラツチする。さらに、第2比較出力ラツチ群60
4のPG BF936はPG FF780の出力をラツ
チし、PG BF780の出力は“1”となり、
PGT REG738がオーバーフローしたことが分
る。また、オーバーフローの回数を計数するステ
ージ信号PGN−Pの処理はオーバーフローを示
すPG BFが“1”という条件で、瞬時レジスタ
群572のPGNCREG740はインクリメント
される。
同期化された外部パルス信号PS=1により、
ステージ信号PG−Pの処理で、PGT REG73
8の保持データを出力レジスタ群574のPG
REG748に転送し(第25図C)、書込みPG
REG738はリセツトされる。また、ステージ
信号PGN−Pの処理で、PGNC REG740の
保持データを出力レジスタ群574のPGN
REG750に転送し(第25図D)、書込み、
PGNC REG740はリセツトされる。
出力レジスタ群574のPG REG748と
PGN REG750のそれぞれの保持データで同
期化された外部パルス信号PSのパルス時間幅の
測定ができる。
第26図は、モード0レジスタ556のM=1
の状態におけるある時間幅内の同期化された外部
パルス信号PSを計数する方法や処理を説明した
図である。
時間幅を測定する瞬時レジスタ群572の
PULSWT REG736は、ステージ信号
PULSW−Pで無条件にインクリメントされ、ま
た、第2比較出力ラツチ群604のPULSW BF
928が“1”のときリセツトされる。また、基
準レジスタ群570のPULSW REG722の保
持データと瞬時レジスタ群572の
PULSWTREG736の保持データと比較され、
PULSWREG722の保持データがPULSWT
REG736の保持データ以下の条件を満足する
とき、第1比較出力ラツチ群602のPULSW
FF722に“1”をラツチする。さらに、第2
比較出力ラツチ群604のPULSW BF928は
PULSW FF772の出力をラツチし、PULSW
FF928の出力は“1”となり、ある時間幅を
得ることができる。
PULSW BF928の立上りを示すPULSWD
=1により、ステージ信号PULS−Pの処理で同
期化された外部パルス信号PSを計数した瞬時レ
ジスタ群572のPULSW REG738の保持デ
ータを出力レジスタ群574のPULS REG74
8に転送し(第26図E)、書込む。また、
PULSW BF928が“1”のとき、PULSC
REG738はリセツトされ、ある時間幅内の同
期化された外部パルス信号PSの計数が得られる。
第25図のPG−P,PGN−P処理、第26図
のPULS−P処理は共に電動機の回転数を示すも
ので、低速の時に精度のよいPG−P,PGN−P
処理、高速の時に精度がよいPULS−P処理は
CPU114より書込まれる第2表のモード0・
レジスタのM2によつて切換えられる。
第27図は、タイマとして動作し、ある時間毎
にCPU114に割込み要求するステージ信号
INTV−Pの処理を説明した図である。
時間幅を測定する瞬時レジスタ群572の
INTVT REG742は、ステージ信号INTV−
Pの処理で無条件にインクリメントされ、また、
第2比較出力ラツチ群604のINTV BF934
が“1”のときリセツトされる。また、基準レジ
スタ群570のINTV REG728の保持データ
と瞬時レジスタ群572のINTVT−REG744
と比較され、INTV REG728の保持データが
INTV REG744の保持データ以下の条件を満
足するとき、第1比較出力ラツチ群602の
INTV FF778に“1”をラツチする。さら
に、第2比較出力ラツチ群604のINTV BF9
34はINTV FF778の出力をラツチし、
INTV BF934の出力は“1”となる。
このINTV BF934の立上りを示すINTVD
=1でステータスレジスタ550のビツト5のS5
に1を書込むことにより、CPU114への割込
み要求信号となる。
第28図は、電流制限のためのステージへの割
込みを説明した図である。
ステージ信号CMT−Pの処理はある時間が経
過した後ではなく、電流専用A/D変換器546
のA/D変換終了信号ADE=1によつて発生す
る。
ステージ信号CMT−Pの処理は電流専用A/
D変換器546のA/D変換されたデイジタルデ
ータを保持しているDGTLO REG546と基準
レジスタ群570のCMT REG730の保持デ
ータと比較され、CMT REG730の保持デー
タ≦DGTLO REG546の保持データという条
件を満足するとき、第1比較出力ラツチ群602
のCMT FF782に“1”をラツチする。さら
に、第2比較出力ラツチ群604のCMT BF9
37はCMT FF782の出力をラツチし、CMT
BF937の出力は“1”となる。
このCMT BF937の立上りを示すCMTD=
1でステータスレジスタ550のビツト3のS3に
1を書込むことにより、CPU114への割込み
要求信号となる。
また、CMTD=1で出力パルスをオフする。
第29図は出力コントローラ666を制御する
ためのトリガ・パルス信号TRG0−PとTRG1
−Pを発生する詳細な回路図である。
このトリガ・パルス信号TRG0−PとTRG1
−Pは、インバータの各アームのパワー素子の保
護のため使用される。出力コントローラ666は
パワー素子の最小オン時間、最小オフ時間の補
償、およびインバータのP側アームのパワー素子
とN側アームのパワー素子のオーバーラツプ防止
という保護機能を有する。
ステージ信号STAGE3−P・φ1=1でトリガ
0・カウンタ660は計数され、その出力である
R00,R01,R02,R03,R04とモード2・レジスタ
560のG0,G1,G2を入力とするトリガ0・デ
コーダ662によつて、出力信号TRG0−8,
TRG0−16,TRG0−32,TRG0−64,
TRG0−128が作られる。トリガ0・デコー
ダ662の内容を第12表に示す。出力信号TRG
0−8,TRG0−16,TRG0−32,TRG
0−64,TRG0−128を5入力のNOR回路
412を介して、φ2=1で“T”となるラツチ
回路664で、ノア回路412の出力をラツチ
し、クロツク信号φ2とラツチ回路664の出力
を入力とするノア回路420の出力がTRG0−
Pとなる。[Table] The results shown in Figure 21 are UP BF916,
VPBF918, WP BF920, UN BF922,
VN BF924, WN BF926 signals are created,
A gate signal is provided to each arm. 15 shown in Figure 21
A pulse width modulated signal of unequal pulses can be generated. In addition, the nine unequal pulses and the three unequal pulses are also input to the PN REG of the reference register group 570.
This is possible by changing the data of 720 from the CPU 114, and it is preferable to change it according to the frequency of the inverter. Furthermore, for equal pulses, by setting M4 of bit 4 of mode 0 register 556 to “0”, D1 REG7 of reference register 570 is set to “0”.
This is possible by selecting only 06. Also, bit 6 of mode 0 register 556
When M 6 is set to "0", the pulse width modulation signal is generated in the motor with phase detector (non-commutator motor) shown in Figure 19, and when M 6 is set to "1", the pulse width modulation signal is generated in the induction motor shown in Figure 21. This results in the generation of a pulse width modulated signal. FIG. 24 is a diagram illustrating the generation of the chopper signal CH. The chopper signal CH performs duty control. The reference register group 570 includes a CHP REG 724 that holds synchronous data as shown in FIG.
and CHD REG72 that holds on-time data
There are 6. Also, as a timer, instantaneous register group 5
Made by CHT REG740 of 72. When processing stage signal CHP-P, CHT
REG740 is unconditionally incremented and also compared with CHP REG724, and CHP REG72
When the held data of CHT REG 740 satisfies the following conditions, the CHP FF 774 of the first comparison output latch group 602 is latched to “1”. Furthermore, the second comparison output latch group 604
CHP BF930 latches the output of CHP FF774, and the output of CHP BF930 becomes "1". When processing stage signal CHD-P, CHT
REG740 is unconditionally non-incremented. Also, the output of CHP BF930 is “1”.
CHT REG 740 is reset. In this process, the data held in CHD REG726 is
When the following conditions are satisfied for the held data of REG740, CHD FF of the first comparison output latch group 602
CHD FF 776 is latched to "1", and CHD BF 932 of the second comparison output latch group 604 latches the output of CHD FF 776, and the output of CHD BF 932 becomes "1". The inverted output of this CHD BF932 is the chopper signal CH. Figure 25 shows the synchronized external pulse signal PS
There are two processes to measure the pulse time width: PG process,
FIG. 7 is a diagram illustrating the state of PGN processing when M 2 =0 in the mode 0 register 556. The measurement method is a synchronized external pulse signal PS
Measurement starts when =1. The time width to be measured is determined by PG REG 738 of instantaneous register group 572. PG REG738 is the PGT REG73 of the instantaneous register group 572 when processing the stage signal PG-P.
8 is unconditionally incremented. However, if the pulse time width of the synchronized external pulse signal PS becomes longer, the PGT REG 738 will overflow (point B in FIG. 25). Therefore, P.G.T.
There is a stage signal PGN-P process that counts the number of overflows of REG738. Also, the data held in PGT REG 738 is compared with the data held in P0 REG 702 of the reference register group 570 (normally all 0), and P0
When the data held in REG 702 satisfies a condition that is greater than or equal to the data held in PGT REG 738, PG FF 780 of first comparison output latch group 602 is latched to “1”. Furthermore, the second comparison output latch group 60
4 PG BF936 latches the output of PG FF780, and the output of PG BF780 becomes “1”,
It can be seen that PGT REG738 has overflowed. Further, in processing the stage signal PGN-P for counting the number of overflows, PGNCREG 740 of the instantaneous register group 572 is incremented under the condition that PG BF indicating an overflow is "1". With the synchronized external pulse signal PS=1,
By processing stage signal PG-P, PGT REG73
PG of the register group 574 outputs the retained data of 8.
Transfer to REG748 (Figure 25C) and write PG
REG 738 is reset. In addition, in processing the stage signal PGN-P, the data held in the PGNC REG740 is transferred to the PGN of the output register group 574.
Transfer to REG750 (Fig. 25D), write,
PGNC REG 740 is reset. PG REG748 of output register group 574 and
It is possible to measure the pulse time width of the external pulse signal PS synchronized with the data held by each PGN REG750. FIG. 26 shows M=1 in mode 0 register 556.
FIG. 3 is a diagram illustrating a method and process for counting synchronized external pulse signals PS within a certain time width in the state of FIG. of the instantaneous register group 572 that measures the time width.
PULSWT REG736 is a stage signal
It is unconditionally incremented by PULSW-P, and PULSW BF of the second comparison output latch group 604
It is reset when 928 is "1". In addition, the data held in PULSW REG 722 of the reference register group 570 and the data of the instantaneous register group 572 are
Compared with the data held by PULSWTREG736,
The data held in PULSWREG722 is PULSWT
When the following conditions are satisfied for the held data of REG736, the PULSW of the first comparison output latch group 602
Latch “1” to FF722. Furthermore, the second
PULSW BF928 of comparison output latch group 604 is
Latch the output of PULSW FF772, and
The output of the FF928 becomes "1", and a certain time width can be obtained. PULSWD showing the rise of PULSW BF928
=1, the data held in the PULSW REG738 of the instantaneous register group 572 that counted the external pulse signal PS synchronized by the processing of the stage signal PULS-P is output to the PULS REG74 of the register group 574.
8 (Fig. 26E) and write. Also,
When PULSW BF928 is “1”, PULSC
REG 738 is reset and a count of synchronized external pulse signals PS within a certain time width is obtained. The PG-P, PGN-P processing in Figure 25 and the PULS-P processing in Figure 26 both indicate the rotational speed of the motor, and the PG-P, PGN-P processing with good accuracy at low speeds.
PULS-P processing has good accuracy at high speed.
Mode 0 in Table 2 written by CPU114
Switched by register M2 . Figure 27 shows a stage signal that operates as a timer and requests an interrupt to the CPU 114 at certain intervals.
It is a figure explaining the processing of INTV-P. of the instantaneous register group 572 that measures the time width.
INTVT REG742 is the stage signal INTV-
It is unconditionally incremented by the processing of P, and
INTV BF934 of second comparison output latch group 604
It is reset when is "1". In addition, the data held in INTV REG 728 of the reference register group 570 and the INTVT-REG 744 of the instantaneous register group 572 are
is compared, and the retained data of INTV REG728 is
When the following conditions are satisfied for the data held in INTV REG 744, the first comparison output latch group 602
Latch “1” to INTV FF778. Furthermore, INTV BF9 of the second comparison output latch group 604
34 latches the output of INTV FF778,
The output of INTV BF934 becomes "1". INTVD indicating the rise of this INTV BF934
= 1 and bit 5 of status register 550 S 5
By writing 1 to , it becomes an interrupt request signal to the CPU 114 . FIG. 28 is a diagram illustrating an interrupt to a stage for current limitation. The stage signal CMT-P is not processed after a certain period of time, but by the current-only A/D converter 546.
This is generated by the A/D conversion end signal ADE=1. Stage signal CMT-P is processed by current-only A/
The DGTLO REG 546 holding the A/D converted digital data of the D converter 546 is compared with the data held in the CMT REG 730 of the reference register group 570, and the condition that the data held in the CMT REG 730 ≦ the data held in the DGTLO REG 546 is satisfied. When the first comparison output latch group 602
Latch “1” to CMT FF782. Furthermore, CMT BF9 of the second comparison output latch group 604
37 latches the output of CMT FF782 and
The output of BF937 becomes "1". CMTD= which shows the rise of this CMT BF937
By writing 1 to S3, bit 3 of the status register 550, it becomes an interrupt request signal to the CPU 114. Also, when CMTD=1, the output pulse is turned off. FIG. 29 shows trigger pulse signals TRG0-P and TRG1 for controlling the output controller 666.
-P is a detailed circuit diagram for generating. These trigger pulse signals TRG0-P and TRG1
-P is used to protect the power elements of each arm of the inverter. The output controller 666 has a protection function of compensating for the minimum on time and minimum off time of the power devices, and preventing overlap between the power devices of the P side arm and the power device of the N side arm of the inverter. Trigger 0 counter 660 counts with stage signal STAGE3-P・φ 1 =1, and its output is
Output signals TRG0-8 , _ _ _ _
TRG0-16, TRG0-32, TRG0-64,
TRG0-128 is created. Table 12 shows the contents of trigger 0 decoder 662. Output signal TRG
0-8, TRG0-16, TRG0-32, TRG
0-64, TRG0-128 are passed through a 5-input NOR circuit 412, the output of the NOR circuit 412 is latched by the latch circuit 664 which becomes "T" when φ 2 =1, and the clock signal φ 2 and the latch circuit 664 are The output of the NOR circuit 420 whose input is the output of TRG0-
It becomes P.
【表】【table】
【表】
TRG1−Pについても、第13表に示すように
トリガ1・デコーダ663によつて出力され、
TRG0−Pと同じ動作である。
また、TRG0−8,TRG1−8は8μs毎、
TRG0−16,TRG1−16は16μs毎、TRG
0−32,TRG1−32は32μs毎、TRG0−6
4,TRG1−64は64μs毎、TRG0−128,
TRG1−128μs毎に発生するパルスであるが、
きめ細かくパルスを発生させるにはステージ信号
にTRG0−P,TRG1−Pを設けることも可能
である。この時間幅が補償や保護のための時間と
なる。
第30図は、出力コントローラ666の詳細な
回路図であり、第31図はそのタイミング図であ
る。
第2比較出力ラツチ群604のパルス幅変調信
号の2つUP BF916とUP BF922について
説明する。
トリガ0・パルス信号TRG0−P=1で
“Through”となるラツチ回路430の入力とな
るのはUP BF916の出力信号である。そのラ
ツチ回路430の出力信号UPS1が第31図に
示すような波形が得られる。UP BF916の出
力信号のαのTRG0−Pのパルス幅より短いた
め、UPS1には、パルスとして現われていない。
ここで、パワー素子の最小オン時間の補償を行う
ことができる。
ラツチ回路430と同じ動作をするラツチ回路
432の入力となるのはUN BF922の出力信
号である。そのラツチ回路432の出力信号
UNS1も第31図に示すような波形が得られる。
このUNS1もUPS1と同様にαに相当するパル
スは現われていない。ここで、パワー素子の最小
オン時間の補償を行うことができる。
さらに、トリガ1・パルス信号TRG1−P=
1で“1”となるラツチ回路442の入力となる
のはラツチ回路430の出力信号UPS1であり、
その出力信号はUPS2となる。UPS1とUPS2
を入力とするAND回路466の出力信号がU+で
ある。また、トリガ1・パルス信号TRG1−P
=1で“T”となるラツチ回路444の入力とな
るのは、ラツチ回路432の出力信号UNS1で
あり、その出力信号UNS2となる。UNS1と
UNS2を入力とするAND回路468の出力信号
がU-である。インバータのP側アームのゲード
信号となるU+とN側アームのゲート信号となる
U-は第31図に示すように時間γLagのノンオー
バーラツプがあり、U-のオフ信号が入つて、時
間γLag経過したときは、N側アームのパワー素子
は完全にオフとなつているため、U+にはオン信
号が発生しP側アームのパワー素子をオンする。
また、第2比較出力ラツチ群のVP BF918
とVN BP924との関係、WP BF920と
WN BF926との関係は、UP BF916とUN
BFとの関係と同じである。
さらにCHD BF932の出力と信号CHOPの
関係はUP BF918の出力とラツチ回路430
の出力信号UPS1との関係と同じで、最小オン
時間、最小オフ時間の補償ができる。
第30図のセレクター458,460,46
2,464は、モード0・レジスタ556のビツ
ト7のM7によつて制御される。M7=0のときは
U+,U-には、UP BF916とUN BF922の
出力が、W+,W-には、WP BF920とWN
BF926の出力が関係し、電動機は正転する。
しかし、M7=1のときはU+,U-には、WP BF
920とWN BF926の出力が、W+,W-に
は、UP BF916とUN BF922の出力が関
係し、電動機は逆転する。
このようにして、出力パルス信号のパルス幅変
調のゲート信号U+,U-,V+,V-,W+,W-と
チヨツパ信号CHOPは完全に補償や保護を行つた
後、ゲート・ドライバー130へ送られる。
次に基準レジスタ群570に基準データをセツ
トする方法について説明する。
例えば、第4図のパルス幅変調信号を発生させ
るためには、速度指令SPをA/D変換し、CPU
114内へ取込み、そのデータに基づいて、速度
指令SPからの周波数に対して、電動機152への
実効電圧と不等パルスの個数を計算処理あるいは
マツプ状に記憶されている情報より求める。周波
数に対してP0 RE702,P1 REG704
にデータをセツトし、さらに、パルスの個数であ
るPN REG720と実効電圧を決定する変調波
のD1〜D7 REG706〜718にデータを
セツトする。これらのデータがセツトされると、
第4図のパルス幅変調信号が発生する。さらに、
電動機152への実効電圧を変える場合、CPU
で計算処理し、D1〜D7 REG706〜71
8のデータをセツトすることにより、パルス幅変
調信号を発生させる。
チヨツパ信号CHOPは、第24図に示すごと
く、電動機の状態に応じて、CPU114内で計
算処理もしくはマツプ状の情報に基づいて得られ
た周期とオン時間のデータをそれぞれCHP REG
724,CHD REG726へセツトすることに
より、パワー素子の通電時間を制御する信号が発
生する。
第25図、第26図は回転数の計測である。第
25図は電動機の低速回転数の場合で、外部パル
ス信号の時間幅が計測され、出力レジスタ群の
PG REG748とPGN REG750へデータが
保持され、CPU114へ取込まれる。時間幅T
T=(PGN REG750の保持データ)×
2048μs+(PG REG748の保持データ)×8μs
として計算され、回転数が計測できる。
第26図は、ある時間幅内の外部パルスの個数
を計数し、PULS REG748へデータが保持さ
れ、CPU114へ取込まれる。また、時間幅を
決定するのはPULSW REG722へデータをセ
ツトすることにより発生する。
CPU114のタイマー割込み要求は、プログ
ラム作成上、タイマーが必要な時に使用され、必
要な時間のデータをINTV REG728にセツト
することにより、割込み要求が発生する。
電流制限は、ステージへの割込みによつて行な
われ、制限値のデータをCMT REG730にセ
ツトすることによつて行われる。また、ステージ
への割込みはA/D変換終了後に発生する。
以上の様に本発明の実施例によれば、ステージ
信号に対し不規則に入力される外部パルス信号を
同期化しているので正確な検出が可能であるばか
りでなく、ステージの順序を精度に応じて検出ス
テージを短縮でき、しかも同期化信号を各処理の
中へ入れているので電動機の高速回転時でも正確
な検出が可能となる。
以上の様に本発明は、電動機に速度指令を与え
る速度指令手段、電動機の速度あるいは回転子の
位置等を検出する複数個の検出手段、これらの複
数個の検出手段の出力信号をデイジタル制御量と
して演算処理するデイジタル演算回路、該デイジ
タル演算回路の出力を所定のパルス出力に変換す
るパルス入出力回路、該パルス入出力回路の出力
に基づいて上記電動機の複数のデイジタル制御量
を制御するための制御手段を備えたものにおい
て、前記デイジタル演算回路の出力を保持するた
めの基準レジスタ群と、前記複数個の検出手段の
検出信号を保持する瞬時レジスタ群と、該瞬時レ
ジスタ群の出力をサンプリングする出力レジスタ
群と、上記基準レジスタ群および瞬時レジスタ群
の中から選択された各レジスタの保持データを比
較する比較回路と、該比較回路の出力を保持する
比較出力ラツチ群と、各処理を時分割制御するた
めのステージカウンタと、前記瞬時レジスタ群の
保持データをステージカウンタのステージ信号に
よつて選択し、前記選択された保持データをイン
クリメンタ/デクリメンタを介して再び瞬時レジ
スタに保持したものであつて、
第1に、前記比較出力ラツチ群は第1の比較出
力ラツチ群とこの第1の比較出力ラツチ群の出力
を保持する第2の比較出力ラツチ群とを含んでお
り、第2の比較出力ラツチ群の出力信号を電動機
の制御信号として出力すると共に、前記各ステー
ジのステージ信号に応じて選択された第2の比較
ラツチ群のいずれかの出力信号をインクリメン
タ/デクリメンタ・コントローラに付与するよう
に構成し、
第2に、前記瞬時レジスタ群とインクリメン
タ/デクリメンタの間に該瞬時レジスタ群の瞬時
データを保持するデータラツチ回路を設けたの
で、特に、前者の第1の比較出力ラツチ群と第2
の比較出力ラツチ群は計数条件の回り込みを切
り、又後者のデータラツチ回路も同様にデータの
回り込みを切るので、カウンタ機能の誤動作が防
止され、制御性を損うことのない電動機の制御装
置が提供できるものである。[Table] TRG1-P is also output by the trigger 1 decoder 663 as shown in Table 13.
This is the same operation as TRG0-P. Also, TRG0-8, TRG1-8 every 8μs,
TRG0-16, TRG1-16 every 16μs, TRG
0-32, TRG1-32 every 32μs, TRG0-6
4, TRG1-64 every 64μs, TRG0-128,
It is a pulse that occurs every TRG1-128μs,
In order to generate fine pulses, it is also possible to provide TRG0-P and TRG1-P in the stage signals. This time span becomes the time for compensation and protection. FIG. 30 is a detailed circuit diagram of the output controller 666, and FIG. 31 is its timing diagram. Two of the pulse width modulated signals of the second comparison output latch group 604, UP BF 916 and UP BF 922, will be described. The output signal of the UP BF916 is input to the latch circuit 430 which becomes "Through" when the trigger 0 and pulse signal TRG0-P=1. The output signal UPS1 of the latch circuit 430 has a waveform as shown in FIG. Since it is shorter than the pulse width of TRG0-P of the output signal α of the UP BF916, it does not appear as a pulse in the UPS1.
Here, compensation for the minimum on-time of the power element can be performed. The output signal of UN BF 922 is the input to latch circuit 432, which operates in the same manner as latch circuit 430. The output signal of the latch circuit 432
UNS1 also has a waveform as shown in FIG. 31.
Similar to UPS1, this UNS1 also does not have a pulse corresponding to α. Here, compensation for the minimum on-time of the power element can be performed. Furthermore, trigger 1/pulse signal TRG1-P=
The output signal UPS1 of the latch circuit 430 is the input to the latch circuit 442 which becomes "1" when the signal is "1".
The output signal becomes UPS2. UPS1 and UPS2
The output signal of the AND circuit 466 inputting is U + . In addition, trigger 1/pulse signal TRG1-P
The output signal UNS1 of the latch circuit 432 is input to the latch circuit 444, which becomes "T" when =1, and becomes the output signal UNS2. UNS1 and
The output signal of the AND circuit 468 which receives UNS2 as an input is U - . U + serves as the gate signal for the P-side arm of the inverter, and serves as the gate signal for the N-side arm.
As shown in Figure 31, U - has a non-overlap of time γ Lag , and when the U - off signal is input and time γ Lag has elapsed, the power element on the N side arm is completely turned off. Therefore, an on signal is generated at U + , which turns on the power element of the P side arm. Also, VP BF918 of the second comparison output latch group
The relationship between and VN BP924, and WP BF920
The relationship with WN BF926 is UP BF916 and UN
It's the same with my relationship with BF. Furthermore, the relationship between the output of CHD BF932 and the signal CHOP is UP.The output of BF918 and the latch circuit 430
Same as the relationship with the output signal UPS1, it is possible to compensate for the minimum on time and minimum off time. Selectors 458, 460, 46 in Figure 30
2,464 is controlled by bit 7 of mode 0 register 556, M7 . When M 7 = 0
U + and U - have the outputs of UP BF916 and UN BF922, and W + and W - have the outputs of WP BF920 and WN.
The output of BF926 is involved, and the motor rotates in the normal direction.
However, when M 7 = 1, for U + and U - , WP BF
The outputs of UP BF916 and UN BF922 are related to W + and W - , and the motor is reversed. In this way, the gate signals U + , U - , V + , V - , W + , W - of the pulse width modulation of the output pulse signal and the chopper signal CHOP are completely compensated and protected before being applied to the gate driver. 130. Next, a method for setting reference data in the reference register group 570 will be explained. For example, in order to generate the pulse width modulation signal shown in Fig. 4, the speed command S P is A/D converted and the CPU
Based on the data, the effective voltage applied to the motor 152 and the number of unequal pulses are obtained by calculation processing or from information stored in a map form with respect to the frequency from the speed command SP . P0 RE702, P1 REG704 for frequency
Further, data is set in PN REG 720 which is the number of pulses and D1 to D7 REGs 706 to 718 of modulated waves which determine the effective voltage. Once these data are set,
The pulse width modulated signal of FIG. 4 is generated. moreover,
When changing the effective voltage to the electric motor 152, the CPU
Calculate and process D1 to D7 REG706 to 71
By setting the data of 8, a pulse width modulation signal is generated. As shown in FIG. 24, the chopper signal CHOP outputs cycle and on-time data obtained from calculation processing in the CPU 114 or based on map-like information according to the state of the motor, respectively, to CHP REG.
724 and CHD REG 726, a signal is generated to control the energization time of the power element. FIG. 25 and FIG. 26 show the measurement of the rotational speed. Figure 25 shows the case where the motor is running at a low speed, and the time width of the external pulse signal is measured, and the output register group is
Data is held in PG REG 748 and PGN REG 750 and taken into CPU 114. Time width T T = (PGN REG750 retained data) ×
It is calculated as 2048μs + (PG REG748 retention data) x 8μs, and the rotation speed can be measured. In FIG. 26, the number of external pulses within a certain time width is counted, the data is held in the PULS REG 748, and is taken into the CPU 114. Further, the time width is determined by setting data to the PULSW REG 722. A timer interrupt request from the CPU 114 is used when a timer is required in program creation, and an interrupt request is generated by setting data of the necessary time in INTV REG 728. Current limiting is performed by interrupting the stage and by setting limit value data in CMT REG 730. Furthermore, an interrupt to the stage occurs after the A/D conversion is completed. As described above, according to the embodiment of the present invention, since the external pulse signal input irregularly is synchronized with the stage signal, not only accurate detection is possible, but also the order of the stages can be adjusted according to the accuracy. This allows the detection stage to be shortened, and since the synchronization signal is included in each process, accurate detection is possible even when the motor is rotating at high speed. As described above, the present invention provides a speed command means for giving a speed command to an electric motor, a plurality of detection means for detecting the speed of the motor or the position of a rotor, and output signals of these plurality of detection means as digital control variables. a digital arithmetic circuit that performs arithmetic processing as a digital arithmetic circuit; a pulse input/output circuit that converts the output of the digital arithmetic circuit into a predetermined pulse output; In the device comprising a control means, a reference register group for holding the output of the digital arithmetic circuit, an instantaneous register group for holding the detection signals of the plurality of detection means, and sampling the output of the instantaneous register group. A comparison circuit that compares the data held in each register selected from the output register group and the reference register group and instantaneous register group, and a comparison output latch group that holds the output of the comparison circuit, and each process is time-divided. A stage counter for controlling and data held in the instantaneous register group are selected by a stage signal of the stage counter, and the selected held data is held in the instantaneous register again via an incrementer/decrementer. First, the comparison output latch group includes a first comparison output latch group and a second comparison output latch group that holds the output of the first comparison output latch group, and the second comparison output latch group holds the output of the first comparison output latch group. The output signal of the output latch group is outputted as a control signal for the electric motor, and the output signal of one of the second comparison latch groups selected according to the stage signal of each stage is applied to the incrementer/decrementer controller. Second, since a data latch circuit for holding the instantaneous data of the instantaneous register group is provided between the instantaneous register group and the incrementer/decrementer, in particular, the first comparison output latch group and Second
Since the comparison output latch group in the first embodiment cuts off the loop-around of counting conditions, and the latter data latch circuit also cuts off the loop-around on data, a malfunction of the counter function is prevented, and a motor control device that does not impair controllability is provided. It is possible.
第1図は本発明の一実施例における位相検出器
付電動機(無整流子電動器)の制御装置の回路構
成を示すブロツク図、第2図は第1図の各相のパ
ルス幅変調波を説明する図、第3図は位相検出器
なし電動機(誘導電動器)の制御装置の回路構成
図、第4図は第3図の各相のパルス幅変調波を説
明する図、第5図は入出力回路の詳細回路図、第
6図は入出力回路のタイミング図、第7図はノン
オーバーラツプ回路図、第8図はデータ・バスの
ブロツク構成図、第9図はアドレス・バスのブロ
ツク構成図、第10図はステータス・レジスタと
マスク・レジスタの説明図、第11図はステージ
信号発生回路図、第12図は入出力回路のミステ
ム・フロー図、第13図は外部パルスの同期化回
路図、第14図は第13図のタイミング図、第1
5図は基準レジスタ群の詳細レジスタ構成図、第
16図は瞬時レジスタ群の詳細レジスタ構成図、
第17図は出力レジスタ群の詳細レジスタ構成
図、第18図は第1および第2比較出力ラツチ群
のラツチ構成図、第19図は第2図のパルス幅変
調信号の発生処理タイミング図、第20図は第1
9図における第1比較出力ラツチ群の選択回路
図、第21図は第4図の不等パルス幅変調信号の
発生処理タイミング図、第22図は位相発生回路
図、第23図はパルス幅変調制御回路図、第24
図はチヨツパ信号の発生処理タイミング図、第2
5図は外部パルス信号のパルス時間幅測定処理タ
イミング図、第26図はある時間幅内のパルスの
計数処理タイミング図、第27図はタイマーの割
込みの発生処理タイミング図、第28図は電流制
限の処理タイミング図、第29図は出力コントロ
ーラの信号発生回路図、第30図は出力コントロ
ーラの詳細回路図、第31図は第30図のタイミ
ング図である。
100……位相検出器付電動機(無整流子電動
機)、102……位相検出器なし電動機(誘導電
動機)、104……温度センサ、114……
CPU、116……RAM、118……ROM、1
20……入出力回路、122……マルチ・プレク
サー、123……インターフエイス回路、12
4,127……アナログ・デイジタル変換回路、
125……デイスクリート入出力回路、126…
…パルス出力回路、128……パルス入力回路、
130……ゲート・ドライバー、131〜134
……増幅器、135……平滑コンデンサ、136
……シヤント抵抗、137,138……分圧抵
抗、150……位相検出器、152……パルス・
ジエネレータ、160……インバータ、162…
…データ・バス、164……アドレス・バス、1
66……コントロールバス、175……整流回
路、176〜179……ダイオード、181……
抵抗、185……電源、186〜191……サイ
リスタ、192〜197……ダイオード、198
……サイリスタ、302……位相デコーダ、30
4……位相ラツチ回路、306……位相発生回
路、308……パルス幅変調デコーダ、310…
…比較結果選択ラツチ、312……基準レジスタ
選択ラツチ、314……PN ステージ・カウン
タ、412,414……NOR回路、420,4
22……NOR回路、430,432,434,
436,438,440,442,444,44
6,448,450,452,454……ラツ
チ、456……NOTゲート、458,460,
462,464……AND−ORゲート、466,
468,470,472,474,476……
AND回路、500……インクリメンタ/デクリ
メンタ・コントロールバス、540,542……
アナログ・デイジタル変換回路、544……マル
チ・プレクサー、546,548……デイジタ
ル・レジスタ、550……ステータス・レジス
タ、552……マスク・レジスタ、554……割
込みコントローラ、556……モード0・レジス
タ、558……モード1・レジスタ、560……
モード2・レジスタ、570……基準レジスタ
群、572……瞬時レジスタ群、574……出力
レジスタ群、576……ラツチ回路、578……
インクリメンタ/デクリメンタ、580……比較
回路、581……比較結果コントローラ、590
……インクリメンタ/デクリメンタ・コントロー
ラ、591……コントロール信号発生回路、60
2……第1比較出力ラツチ群、604……第2比
較出力ラツチ群、660,661……トリガ・カ
ウンタ、662,663……トリガ・デコーダ、
664,665……ラツチ、666……出力コン
トローラ、670……ステージ・カウンタ、67
2……ステージ・デコーダ、674……ステー
ジ・ラツチ回路、680……同期化回路、701
……ノンオーバーラツプ回路、702,704,
706,708,710,712,714,71
6,718,720,722,724,726,
728,730,732,734,736,73
8,740,742,744,746,748,
750,752……レジスタ、754,756,
758,760,762,764,766,76
8,770,772,774,776,778,
780,782……ラツチ、802……データ・
ラツチ、804……トライステート・バツフア、
806……ライト・バス、808……リードバ
ス、810……割込み要因信号、902……アド
レス・ラツチ回路、904……アドレス・セレク
ター、906……アドレス・デコーダ、910,
912,914,916,918,920,92
2,924,926,928,930,932,
934,936,938……ラツチ、1102,
1104……ラツチ回路、1302,1304,
1306,1308,1310,1312……ラ
ツチ、1314,1316,1318……
EXCLUSIVE OR回路、1320……NOR回
路、1322……NOT回路。
Fig. 1 is a block diagram showing the circuit configuration of a control device for a motor with a phase detector (non-commutator motor) in one embodiment of the present invention, and Fig. 2 shows a pulse width modulated wave of each phase in Fig. 1. Figure 3 is a circuit configuration diagram of a control device for a motor without a phase detector (induction motor), Figure 4 is a diagram explaining the pulse width modulation waves of each phase in Figure 3, and Figure 5 is a diagram explaining the pulse width modulation wave of each phase in Figure 3. A detailed circuit diagram of the input/output circuit, Figure 6 is a timing diagram of the input/output circuit, Figure 7 is a non-overlap circuit diagram, Figure 8 is a block diagram of the data bus, and Figure 9 is a diagram of the address bus. Block configuration diagram, Figure 10 is an explanatory diagram of the status register and mask register, Figure 11 is a stage signal generation circuit diagram, Figure 12 is a system flow diagram of the input/output circuit, and Figure 13 is an external pulse synchronization diagram. Figure 14 is the timing diagram of Figure 13, and the first
Figure 5 is a detailed register configuration diagram of the reference register group, Figure 16 is a detailed register configuration diagram of the instantaneous register group,
FIG. 17 is a detailed register configuration diagram of the output register group, FIG. 18 is a latch configuration diagram of the first and second comparison output latch groups, and FIG. 19 is a timing diagram of the pulse width modulation signal generation process in FIG. 2. Figure 20 is the first
Fig. 9 is a selection circuit diagram of the first comparison output latch group, Fig. 21 is a timing diagram of the generation processing of the unequal pulse width modulation signal of Fig. 4, Fig. 22 is a phase generation circuit diagram, and Fig. 23 is a pulse width modulation signal diagram. Control circuit diagram, No. 24
The figure is a timing diagram of the chipping signal generation process, the second
Figure 5 is a timing diagram for measuring the pulse time width of an external pulse signal, Figure 26 is a timing diagram for counting pulses within a certain time width, Figure 27 is a timing diagram for timer interrupt generation processing, and Figure 28 is for current limiting. 29 is a signal generation circuit diagram of the output controller, FIG. 30 is a detailed circuit diagram of the output controller, and FIG. 31 is a timing diagram of FIG. 30. 100...Motor with phase detector (non-commutator motor), 102...Motor without phase detector (induction motor), 104...Temperature sensor, 114...
CPU, 116...RAM, 118...ROM, 1
20... Input/output circuit, 122... Multiplexer, 123... Interface circuit, 12
4,127...analog-digital conversion circuit,
125...Discrete input/output circuit, 126...
...Pulse output circuit, 128...Pulse input circuit,
130...Gate driver, 131-134
...Amplifier, 135 ...Smoothing capacitor, 136
...Shunt resistor, 137,138...Voltage dividing resistor, 150...Phase detector, 152...Pulse
Generator, 160... Inverter, 162...
...Data bus, 164 ...Address bus, 1
66... Control bus, 175... Rectifier circuit, 176-179... Diode, 181...
Resistor, 185... Power supply, 186-191... Thyristor, 192-197... Diode, 198
... Thyristor, 302 ... Phase decoder, 30
4... Phase latch circuit, 306... Phase generation circuit, 308... Pulse width modulation decoder, 310...
...Comparison result selection latch, 312...Reference register selection latch, 314...PN stage counter, 412, 414...NOR circuit, 420, 4
22...NOR circuit, 430, 432, 434,
436, 438, 440, 442, 444, 44
6,448,450,452,454...Latch, 456...NOT gate, 458,460,
462,464...AND-OR gate, 466,
468,470,472,474,476...
AND circuit, 500... Incrementer/decrementer control bus, 540, 542...
Analog-digital conversion circuit, 544...Multiplexer, 546, 548...Digital register, 550...Status register, 552...Mask register, 554...Interrupt controller, 556...Mode 0 register, 558...Mode 1 register, 560...
Mode 2 register, 570...Reference register group, 572...Momentary register group, 574...Output register group, 576...Latch circuit, 578...
Incrementer/decrementer, 580... Comparison circuit, 581... Comparison result controller, 590
... Incrementer/decrementer controller, 591 ... Control signal generation circuit, 60
2...First comparison output latch group, 604...Second comparison output latch group, 660, 661...Trigger counter, 662, 663...Trigger decoder,
664, 665...Latch, 666...Output controller, 670...Stage counter, 67
2... Stage decoder, 674... Stage latch circuit, 680... Synchronization circuit, 701
...Non-overlap circuit, 702, 704,
706, 708, 710, 712, 714, 71
6,718,720,722,724,726,
728, 730, 732, 734, 736, 73
8,740,742,744,746,748,
750,752...Register, 754,756,
758, 760, 762, 764, 766, 76
8,770,772,774,776,778,
780,782...Latch, 802...Data
Latsuchi, 804...Tri-state buffer,
806...Write bus, 808...Read bus, 810...Interrupt factor signal, 902...Address latch circuit, 904...Address selector, 906...Address decoder, 910,
912,914,916,918,920,92
2,924,926,928,930,932,
934,936,938...Ratsuchi, 1102,
1104...Latch circuit, 1302, 1304,
1306, 1308, 1310, 1312... Latch, 1314, 1316, 1318...
EXCLUSIVE OR circuit, 1320...NOR circuit, 1322...NOT circuit.
Claims (1)
動機の速度あるいは回転子の位置等を検出する複
数個の検出手段、これらの複数個の検出手段の出
力信号をデイジタル制御量として演算処理するデ
イジタル演算回路、該デイジタル演算回路の出力
を所定のパルス出力に変換するパルス入出力回
路、該パルス入出力回路の出力に基づいて上記電
動機の複数のデイジタル制御量を制御するための
制御手段を備えたものにおいて、 前記デイジタル演算回路の出力を保持するため
の基準レジスタ群と、前記複数個の検出手段の検
出信号を保持する瞬時レジスタ群と、該瞬時レジ
スタ群の出力をサンプリングする出力レジスタ群
と、上記基準レジスタ群および瞬時レジスタ群の
中から選択された各レジスタの保持データを比較
する比較回路と、該比較回路の出力を保持する比
較出力ラツチ群と、各処理を時分割制御するため
のステージカウンタと、前記瞬時レジスタ群の保
持データをステージカウンタのステージ信号によ
つて選択し、前記選択された保持データをインク
リメンタ/デクリメンタを介して再び瞬時レジス
タに保持し、前記比較出力ラツチ群は、第1の比
較出力ラツチ群とこの第1の比較出力ラツチ群の
出力を保持する第2の比較出力ラツチ群とを含ん
でおり、第2の比較出力ラツチ群の出力信号を電
動機の制御信号として出力すると共に、前記各ス
テージのステージ信号に応じて選択された第2の
比較ラツチ群のいずれかの出力信号をインクリメ
ンタ/デクリメンタ・コントローラに付与するよ
うに構成したことを特徴とする電動機の制御装
置。 2 電動機に速度指令を与える速度指令手段、電
動機の速度あるいは回転子の位置等を検出する複
数個の検出手段、これらの複数個の検出手段の出
力信号をデイジタル制御量として演算処理するデ
イジタル演算回路、該デイジタル演算回路の出力
を所定のパルス出力に変換するパルス入出力回
路、該パルス入出力回路の出力に基づいて上記電
動機の複数のデイジタル制御量を制御するための
制御手段を備えたものにおいて、 前記デイジタル演算回路の出力を保持するため
の基準レジスタ群と、前記複数個の検出手段の検
出信号を保持する瞬時レジスタ群と、該瞬時レジ
スタ群の出力をサンプリングする出力レジスタ群
と、上記基準レジスタ群および瞬時レジスタ群の
中から選択された各レジスタの保持データを比較
する比較回路と、該比較回路の出力を保持する比
較出力ラツチ群と、各処理を時分割制御するため
のステージカウンタと、前記瞬時レジスタ群の保
持データをステージカウンタのステージ信号によ
つて選択し、前記選択された保持データをインク
リメンタ/デクリメンタを介して再び瞬時レジス
タに保持し、前記瞬時レジスタ群とインクリメン
タ/デクリメンタの間に該瞬時レジスタ群の瞬時
データを保持するデータラツチ回路を設けたこと
を特徴とする電動機の制御装置。[Claims] 1. A speed command means for giving a speed command to the electric motor, a plurality of detection means for detecting the speed of the motor or the position of the rotor, and output signals of these plurality of detection means as digital control variables. A digital arithmetic circuit that performs arithmetic processing, a pulse input/output circuit that converts the output of the digital arithmetic circuit into a predetermined pulse output, and control for controlling a plurality of digital control amounts of the electric motor based on the output of the pulse input/output circuit. A reference register group for holding the output of the digital arithmetic circuit, an instantaneous register group for holding the detection signals of the plurality of detection means, and an output for sampling the output of the instantaneous register group. A comparison circuit that compares the data held in each register selected from the reference register group and instantaneous register group with the register group, a comparison output latch group that holds the output of the comparison circuit, and time-division control of each process. A stage counter for the purpose of the present invention and data held in the instantaneous register group are selected by a stage signal of the stage counter, the selected held data is held in the instantaneous register again via an incrementer/decrementer, and the comparison output is The latch group includes a first comparison output latch group and a second comparison output latch group that holds the output of the first comparison output latch group, and outputs the output signal of the second comparison output latch group to the electric motor. The control signal is output as a control signal for the incrementer/decrementer controller, and the output signal of one of the second comparison latch groups selected according to the stage signal of each stage is applied to the incrementer/decrementer controller. A control device for an electric motor. 2. A speed command means that gives a speed command to the electric motor, a plurality of detection means that detects the speed of the motor or the position of the rotor, etc., and a digital calculation circuit that processes the output signals of these plurality of detection means as digital control variables. , a pulse input/output circuit for converting the output of the digital arithmetic circuit into a predetermined pulse output, and a control means for controlling a plurality of digital control amounts of the electric motor based on the output of the pulse input/output circuit. , a reference register group for holding the output of the digital arithmetic circuit, an instantaneous register group for holding the detection signals of the plurality of detection means, an output register group for sampling the output of the instantaneous register group, and the above-mentioned standard. A comparison circuit that compares the data held in each register selected from the register group and the instantaneous register group, a comparison output latch group that holds the output of the comparison circuit, and a stage counter for time-division control of each process. , selects the data held in the instantaneous register group by a stage signal of a stage counter, holds the selected held data in the instantaneous register again via an incrementer/decrementer, and connects the instantaneous register group and the incrementer/decrementer. 1. A control device for an electric motor, characterized in that a data latch circuit for holding instantaneous data of the instantaneous register group is provided between the instantaneous registers.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8265279A JPS5610091A (en) | 1979-07-02 | 1979-07-02 | Controlling device for electric motor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8265279A JPS5610091A (en) | 1979-07-02 | 1979-07-02 | Controlling device for electric motor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5610091A JPS5610091A (en) | 1981-02-02 |
| JPS6346678B2 true JPS6346678B2 (en) | 1988-09-16 |
Family
ID=13780353
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8265279A Granted JPS5610091A (en) | 1979-07-02 | 1979-07-02 | Controlling device for electric motor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5610091A (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4415844A (en) * | 1981-02-09 | 1983-11-15 | Priam | Digital motor speed controller |
| DE3145232A1 (en) * | 1981-11-13 | 1983-06-01 | Quick-Rotan Elektromotoren GmbH, 6100 Darmstadt | DRIVE FOR WORKING MACHINES, IN PARTICULAR INDUSTRIAL SEWING MACHINES |
| ES8404580A1 (en) * | 1982-05-07 | 1984-05-01 | Babcock & Wilcox Co | Devices for generating three-phase PWM waveforms for control of induction motors. |
| JPS6149694A (en) * | 1984-08-13 | 1986-03-11 | Pioneer Electronic Corp | Drive device for dc motor |
| US4558264A (en) * | 1984-10-18 | 1985-12-10 | General Electric Company | Current control method and circuit for electronically-commutated motors |
| AU590795B2 (en) * | 1985-09-20 | 1989-11-16 | Sanyo Electric Co., Ltd. | Controller of dc brushless motor |
-
1979
- 1979-07-02 JP JP8265279A patent/JPS5610091A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5610091A (en) | 1981-02-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6156716B2 (en) | ||
| EP0538387B1 (en) | Digital motor controller | |
| US5270622A (en) | Brushless motor control system | |
| US4870556A (en) | Method and apparatus for controlling power converter | |
| EP0141859B1 (en) | Servo control circuit | |
| JPH036745B2 (en) | ||
| EP0082558B1 (en) | Control signal generator arrangement for semiconductor switches | |
| JPS6346678B2 (en) | ||
| US10003288B2 (en) | Motor control circuit and fan including the same | |
| JPS6346677B2 (en) | ||
| JPS6346676B2 (en) | ||
| JPWO2020149002A1 (en) | Motor control device | |
| JPH0974790A (en) | Inverter device | |
| JPS60174088A (en) | Digital control system of ac motor | |
| RU2098917C1 (en) | Valve-type motor digital control system | |
| JP3194067B2 (en) | PWM pulse generator | |
| CN111033270A (en) | Speed calculation device and power conversion device | |
| EP0373601B1 (en) | Reactive power compensation apparatus with improved gate circuit | |
| JP2674024B2 (en) | Servo controller | |
| JPH0145319B2 (en) | ||
| JP2019216566A (en) | Motor control device | |
| JPH09149679A (en) | Inverter device | |
| JP2002112579A (en) | Phase detector for rotating body | |
| JPS61191285A (en) | Motor controller | |
| JPS6387188A (en) | Operation control command issuing method of power driving device for servomotor |