JP3659024B2 - Digital triangular waveform generator - Google Patents
Digital triangular waveform generator Download PDFInfo
- Publication number
- JP3659024B2 JP3659024B2 JP28765398A JP28765398A JP3659024B2 JP 3659024 B2 JP3659024 B2 JP 3659024B2 JP 28765398 A JP28765398 A JP 28765398A JP 28765398 A JP28765398 A JP 28765398A JP 3659024 B2 JP3659024 B2 JP 3659024B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- count
- down counter
- digital comparator
- 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 - Fee Related
Links
Images
Description
【0001】
【発明の属する技術分野】
本発明は、ACサーボコントローラ等における三相電動機PWM制御装置のディジタル三角波波形発生装置に関するものである。
【0002】
【従来の技術】
近年、ACサーボコントローラ等の電動機制御装置のディジタル化が進んでおり、これに伴い三相電動機のPWM制御装置においてPWM波形発生に使用される三角波波形発生装置もディジタル化に対応すべく手段が考案されている。
【0003】
図9は従来のディジタル三角波波形発生装置の代表例である。以下、その構成について図9を参照しながら説明する。
【0004】
図9に示すようにソースクロック80をカウントしカウントアップ動作とカウントダウン動作をカウント方向切換信号81にて切換可能なアップダウンカウンタ70と、マイコンにより書き換え可能なレジスタでカウントアップの最大値を保持する第1のレジスタ71と、アップダウンカウンタ70の内容が“0”と一致したことを検出する第1のディジタルコンパレータ72と、アップダウンカウンタ70の内容が第1のレジスタ71と一致したことを検出する第2のディジタルコンパレータ73と、第1のディジタルコンパレータ72の一致信号83にてカウント方向切換信号81をカウントアップ動作に、また第2のディジタルコンパレータ73の一致信号84にてカウントダウン動作に切換動作するカウント方向切換手段74と、第1のディジタルコンパレータ72の一致信号83と第2のディジタルコンパレータ73の一致信号84との論理和出力を行うOR素子75から構成されている。
【0005】
図10は、図9の動作概要を示す図であり、第1のディジタルコンパレータ72の出力83と第2のディジタルコンパレータ73の出力84に応じてカウント方向切換信号81が変化し、0から第1のレジスタ値までのアップダウン動作を繰り返し行う。
【0006】
図11は、図9のディジタル三角波波形発生装置を三相電動機の電動機制御に用いた場合の構成例であり、電動機を制御する指令やフィードバック情報を処理する制御処理手段90と、制御処理手段90からの情報を演算するマイコン91と、図9の構成からなるディジタル三角波波形発生装置92と、三相PWM信号発生手段93と、電動機96に電力供給するためのスイッチング手段94と、電動機96に供給する電流を検出する電流検出手段95からなる。
【0007】
図12は、図11における動作波形例であり、U指令101,V指令102,W指令103は三相PWM信号発生手段に入力される指令、COMPU,COMPV,COMPWは前記U指令101,V指令102,W指令103とディジタル三角波波形発生装置92の出力82とをディジタル的に大小比較しカウントデータより指令が大きいまたは等しい場合“H”,カウントデータより指令が小さい場合“L”となる波形、PWMU104,PWMV105,PWMW106は前記COMPU,COMPV,COMPWの立ち下がり変化に対して一定時間の遅延Tdを付加した波形、*PWMU107,*PWMV108,*PWMW109は前記COMPU,COMPV,COMPWを論理反転し、かつこの信号の立ち下がり変化に対して一定時間の遅延Tdを付加した波形である。
【0008】
信号検出タイミング85は、カウントデータ82の頂点すなわちカウントデータ82の値が“0”値もしくはレジスタ71が保持する値と一致したときに出力される信号であり、PWMU104,PWMV105,PWMW106および*PWMU107,*PWMV108,*PWMW109の信号変化と基本的に信号が重ならないタイミング関係にある。
【0009】
三相電動機のフィードバック制御においては、まず、図11に示すディジタル三角波波形発生装置92の出力である信号検出タイミング85によって位置、速度あるいは電流制御に必要なアナログまたはディジタル情報を制御処理手段90で検出し、電動機に電力供給するためマイコン91による演算により三相PWM信号発生手段93に入力するPWM指令 U指令101,V指令102,W指令103を生成し、U指令101,V指令102,W指令103とディジタル三角波波形発生装置92の出力であるカウントデータ82との比較によりPWM信号であるPWMU104,PWMV105,PWMW106および*PWMU107,*PWMV108,*PWMW109を生成し、さらにこの信号をもとに電動機96に電力供給するためのスイッチング手段94を介して三相電動機に電力供給が行われる。以後、信号検出タイミング85が出力される毎に制御指令情報やフィードバック情報が取り込まれ上記が繰り返される。
【0010】
このように、信号検出タイミング85とPWM信号であるPWMU104,PWMV105,PWMW106および*PWMU107,*PWMV108,*PWMW109の信号変化は基本的に信号が重ならないタイミング関係にあり、従って各種制御信号を検出する制御処理手段90はPWM信号にもとづきスイッチング手段94から発生する電気ノイズの影響を受けないよう考慮されている。
【0011】
【発明が解決しようとする課題】
しかしながら、上記従来の構成では、電動機の制御装置を単体で構成する範囲では各種制御信号を検出する制御処理手段90はPWM信号にもとづきスイッチング手段94から発生する電気ノイズの影響を受けない構成であるが、制御装置を複数ならべて構成する場合は、他の制御装置の制御処理手段90と別の制御装置のPWM信号、即ちスイッチング
手段94から発生する電気ノイズとはタイミング関係が無関係なため電気ノイズの影響を受ける可能性があり、特に制御処理手段90で処理する内容としてアナログ電圧からディジタル電圧への変換処理の場合、ノイズを誤って検出しアナログからディジタル変換してしまい、電動機の誤動作が生じる恐れがある。
【0012】
本発明は上記従来の課題を解決するもので、装置を複数同時に使用しても相互干渉の発生しないディジタル三角波波形発生装置およびディジタル三角波波形発生システムを提供することを目的とする。
【0013】
【課題を解決するための手段】
上記の課題を解決するために本発明は、一定の周波数で発振するソースクロックをカウントしカウントアップ動作とカウントダウン動作をカウント方向切換信号にて切換可能およびカウントクリア信号にてカウント内容を0にクリア可能なアップダウンカウンタと、データが書き換え可能なレジスタでカウントアップの最大値を保持する第1のレジスタと、前記アップダウンカウンタの内容が0と一致したことを検出する第1のディジタルコンパレータと、前記アップダウンカウンタの内容が前記第1のレジスタと一致したことを検出する第2のディジタルコンパレータと、前記カウント方向切換信号を前記第1のディジタルコンパレータの一致信号にてカウントアップ動作に、また前記第2のディジタルコンパレータの一致信号にてカウントダウン動作に切換動作するカウント方向切換手段と、前記第1のディジタルコンパレータの一致信号と第2のディジタルコンパレータの一致信号より同期制御信号を生成するホスト処理手段と、外部から入力される同期制御信号により前記アップダウンカウンタの動作を制御するスレーブ処理手段を備えたものである。
【0014】
【発明の実施の形態】
上記課題を解決するために本発明は、一定の周波数で発振するソースクロックをカウントしカウントアップ動作とカウントダウン動作をカウント方向切換信号にて切換可能およびカウントクリア信号にてカウント内容を0にクリア可能なアップダウンカウンタと、データが書き換え可能なレジスタでカウントアップの最大値を保持する第1のレジスタと、前記アップダウンカウンタの内容が0と一致したことを検出する第1のディジタルコンパレータと、前記アップダウンカウンタの内容が前記第1のレジスタと一致したことを検出する第2のディジタルコンパレータと、前記カウント方向切換信号を前記第1のディジタルコンパレータの一致信号にてカウントアップ動作に、また前記第2のディジタルコンパレータの一致信号にてカウントダウン動作に切換動作するカウント方向切換手段と、データが書き換え可能なレジスタで一致信号出力選択値を保持する第2のレジスタと、前記第2のレジスタにより第1のディジタルコンパレータの一致信号もしくは第2のディジタルコンパレータの一致信号のいずれか一方を同期制御出力信号として出力する第1のセレクタからなる前記第1のディジタルコンパレータの一致信号と第2のディジタルコンパレータの一致信号より同期制御信号を生成するホスト処理手段とを備えたディジタル三角波波形発生装置である。
【0015】
また、一定の周波数で発振するソースクロックをカウントしカウントアップ動作とカウントダウン動作をカウント方向切換信号にて切換可能およびカウントクリア信号にてカウント内容を0にクリア可能なアップダウンカウンタと、データが書き換え可能なレジスタでカウントアップの最大値を保持する第1のレジスタと、前記アップダウンカウンタの内容が0と一致したことを検出する第1のディジタルコンパレータと、前記アップダウンカウンタの内容が前記第1のレジスタと一致したことを検出する第2のディジタルコンパレータと、前記カウント方向切換信号を前記第1のディジタルコンパレータの一致信号にてカウントアップ動作に、また前記第2のディジタルコンパレータの一致信号にてカウントダウン動作に切換動作するカウント方向切換手段と、外部から入力される同期制御信号により前記アップダウンカウンタの動作を制御するスレーブ処理手段を備えたディジタル三角波波形発生装置である。
【0016】
また、第1のディジタルコンパレータの一致信号にてアップダウンカウンタの内容を0にクリアし、クリア状態を一定期間保持後、アップダウンカウンタの再動作、または、第1のディジタルコンパレータの一致信号にてアップダウンカウンタのクリア状態保持中に外部から入力される同期制御信号によりアップダウンカウンタの再動作、または、アップダウンカウンタの内容が設定値以内かつ外部から入力される同期制御信号によりアップダウンカウンタの内容を0にクリア後アップダウンカウンタの再動作のいずれかを行うスレーブ処理手段を備えたディジタル三角波波形発生装置である。
【0017】
また、データが書き換え可能なレジスタで外部から入力される同期制御入力信号の入力有効/無効のしきい値を保持する第3のレジスタと、アップダウンカウンタの内容が前記第3のレジスタと一致したことを検出する第3のディジタルコンパレータと、前記アップダウンカウンタがカウントダウン動作時に前記第3のディジタルコンパレータの一致信号により“H”レベルを保持し前記アップダウンカウンタの内容が0にクリア後カウント動作を始めると“L”レベルを保持する第1のデータ保持手段と、前記第1のデータ保持手段の出力が“H”レベルの期間に外部から入力される同期制御入力信号が“L”から“H”に変化すると前記アップダウンカウンタの内容を0にするため一時“L”レベルを保持する第2のデータ保持手段と、データが書き換え可能なレジスタでカウント動作停止数を保持する第4のレジスタと、一定の周波数で発振するソースクロックをカウントしてカウントダウン動作およびデータプリセット信号にてカウンタ内容を前記第4のレジスタの値にプリセット可能なプリセッタブルダウンカウンタと、前記プリセッタブルダウンカウンタの内容が0と一致したことを検出する第4のディジタルコンパレータと、第1のディジタルコンパレータの一致信号により“H”から“L”に変化かつ保持し、前記第4のレジスタに保持されたカウント動作停止数だけソースクロックを前記プリセッタブルダウンカウンタでカウントし、前記第4のディジタルコンパレータの一致信号により“H”レベルを保持する第3のデータ保持手段と、第2のデータ保持手段の出力と第3のデータ保持手段の出力よりアップダウンカウンタを0にするためのカウントクリア信号を出力するクリア信号発生手段からなるスレーブ処理手段を備えたディジタル三角波波形発生装置である。
【0018】
このように、ディジタル三角波波形より2種類の同期制御信号の内、いずれか一方を選択し出力することができる。
【0019】
また、外部から入力される同期制御信号によりディジタル三角波波形を生成することができる。
【0020】
また、ディジタル三角波の発生を三角波カウンタが“0”値にて一時停止し一定時間経過後に波形再生成、もしくはディジタル三角波の発生を三角波カウンタが“0”値にて一時停止し外部から入力される同期制御信号によりディジタル三角波波形を再生成、もしくはディジタル三角波の発生途中で外部から入力される同期制御信号により三角波カウンタの値を“0”にした後ディジタル三角波波形を再生成することができる。
【0021】
また、ディジタル三角波の発生途中で外部から入力される同期制御信号により三角波カウンタの値を“0”にした後ディジタル三角波波形を再生成する際の同期制御信号の入力有効範囲の設定およびディジタル三角波の発生を三角波カウンタが“0”値にて一時停止し一定時間経過後に波形再生成する際の停止時間の設定をすることができる。
【0022】
【実施例】
以下本発明の実施例について、図面を参照して説明する。
【0023】
図1は本発明の一実施例におけるディジタル三角波波形発生装置の構成を示す図で、従来例と同じものについては同じ番号を付す。
【0024】
図1に示すようにソースクロック80をカウントしカウントアップ動作とカウントダウン動作をカウント方向切換信号81にて切換可能なアップダウンカウンタ70と、マイコンにより書き換え可能なレジスタでカウントアップの最大値を保持する第1のレジスタ71と、アップダウンカウンタ70の内容が“0”と一致したことを検出する第1のディジタルコンパレータ72と、アップダウンカウンタ70の内容が第1のレジスタ71と一致したことを検出する第2のディジタルコンパレータ73と、第1のディジタルコンパレータ72の一致信号83にてカウント方向切換信号81をカウントアップ動作に、また第2のディジタルコンパレータ73の一致信号84にてカウントダウン動作に切換動作するカウント方向切換手段74と、第1のディジタルコンパレータ72の一致信号83と第2のディジタルコンパレータ73の一致信号84との論理和出力を行うOR素子75と、マイコンにより書き換え可能なレジスタを有し第1のディジタルコンパレータ72の一致信号83と第2のディジタルコンパレータ73の一致信号84から同期制御出力信号11を出力するホスト処理手段1と、マイコンにより書き換え可能なレジスタを有し外部から入力される同期制御入力信号12とカウント方向切換信号81と第1のディジタルコンパレータ72の一致信号83とアップダウンカウンタ70のカウントデータ82からアップダウンカウンタ70のクリアを行うカウントクリア信号13を出力するスレーブ処理手段2から構成されている。
【0025】
以下図2および図3によりホスト処理手段1およびスレーブ処理手段2について説明する。
【0026】
図2は図1におけるホスト処理手段1の構成を示す図で、マイコンにより書き換え可能なレジスタで第1のディジタルコンパレータ72の一致信号83と第2のディジタルコンパレータ73の一致信号84を切換える設定を保持する第2のレジスタ21と、第1のディジタルコンパレータ72の一致信号83と第2のディジタルコンパレータ73の一致信号84を切換え同期制御出力信号11を出力する第1のセレクタ22から構成されている。
【0027】
図3は図1におけるスレーブ処理手段2の構成を示す図で、マイコンにより書き換え可能なレジスタで外部から入力される同期制御入力信号の入力有効/無効のしきい値を保持する第3のレジスタ23と、アップダウンカウンタの内容82が前記第3のレジスタと一致したことを検出する第3のディジタルコンパレータ24と、カウント方向切換信号81により前記アップダウンカウンタがカウントダウン動作時に前記第3のディジタルコンパレータの一致信号41により“H”レベルを保持し前記アップダウンカウンタの内容が0にクリア後カウント動作を始めると“L”レベルを保持する第1のデータ保持手段25と、前記第1のデータ保持手段の出力42が“H”レベルの期間に外部から入力される同期制御入力信号12が“L”から“H”に変化すると前記アップダウンカウンタの内容を0にするため一時“L”レベルを保持する第2のデータ保持手段26と、データが書き換え可能なレジスタでカウント動作停止数を保持する第4のレジスタ28と、一定の周波数で発振するソースクロック80をカウントしてカウントダウン動作およびデータプリセット信号44にてカウンタ内容を前記第4のレジスタの値にプリセット可能なプリセッタブルダウンカウンタ29と、前記プリセッタブルダウンカウンタの内容45が0と一致したことを検出する第4のディジタルコンパレータ30と、第1のディジタルコンパレータの一致信号83により“H”から“L”に変化かつ保持し、前記第4のレジスタ28に保持されたカウント動作停止数だけソースクロック80を前記プリセッタブルダウンカウンタ29でカウントし、前記第4のディジタルコンパレータ30の一致信号46により“H”レベルを保持する第3のデータ保持手段27と、第2のデータ保持手段の出力43と第3のデータ保持手段の出力44よりアップダウンカウンタを0にするためのカウントクリア信号13を出力するクリア信号発生手段31から構成されている。
【0028】
次にホスト処理手段1およびスレーブ処理手段2の動作について図4および図5,図6,図7により説明する。
【0029】
図4はホスト処理手段1の動作およびスレーブ処理手段2との関係を示す図であり、ディジタル三角波波形発生装置をX,Yの2台使用した動作例である。Xをホスト側,Yをスレーブ側とし、X側ではアップダウンカウンタの内容82が0もしくは最大値のポイント即ち、第1のディジタルコンパレータ72の一致信号83と第2のディジタルコンパレータ73の一致信号84とを第2のレジスタで保持する設定により第1のセレクタ22で選択して出力を行い、第1のディジタルコンパレータ72の一致信号83を選択した場合11(a)信号が出力され、第2のディジタルコンパレータ73の一致信号84を選択した場合11(b)信号が出力される。
【0030】
一方Y側では、前記同期制御出力信号として出力された11(a)信号、または11(b)信号を同期制御入力信号として12(a)信号、または12(b)信号として受信し、スレーブ処理手段2を介して12(a)信号が同期制御入力信号の場合スレーブ(a)に示すディジタル三角波波形生成を、12(b)信号が同期制御入力信号の場合スレーブ(b)に示すディジタル三角波波形生成を行う。このようにして複数間でのディジタル三角波波形の生成同期化を行う。
【0031】
次に、スレーブ処理手段2の動作について説明する。
図5は図3のスレーブ処理手段2において同期制御入力信号12が全く入力されないもしくは入力有効範囲内で入力されない場合の動作図であり、この場合アップダウンカウンタ70はカウントデータ82が0になった時点でこの状態を保持し第4のレジスタ28に保持される待ち時間が経過後、再びカウント動作を再開する実施例である。
【0032】
まず、第3のディジタルコンパレータ24にて第3のレジスタ23に保持されたしきい値とアップダウンカウンタのカウントデータ82との一致検出を行い一致信号41を出力し、カウント方向切換信号81が“H”レベルすなわちカウントダウン動作時の前記一致信号41により同期制御入力信号を入力有効として第1のデータ保持手段25の出力42を“H”レベルに保持する。この保持された“H”レベルはアップダウンカウンタの内容が0になった後カウント動作を始めると“L”レベルが保持され以降同期制御入力信号が入力されても無効扱いとなる。
【0033】
次に第2のデータ保持手段26では、前記同期制御入力の有効を示す信号42が“H”にもかかわらず同期制御入力信号12が入力されないため第2のデータ保持手段26は出力43として“H”を保持する。
【0034】
次にアップダウンカウンタの内容が0になると第1のディジタルコンパレータ72の一致信号83が“H”となり、この信号により第3のデータ保持手段27の出力44は“H”から“L”に変化し、同時にプリセッタブルダウンカウンタ29は第4のレジスタで保持している値をデータプリセットする動作からソースクロック80をカウントする動作へ切換わる。
【0035】
同時にクリア信号発生手段31は前記第2のデータ保持手段26の出力43と第3のデータ保持手段27の出力44よりアップダウンカウンタ70のカウントクリア信号13として“L”を出力し、クリア状態にする。
【0036】
次にプリセッタブルダウンカウンタ29のカウントデータ45が0になり第4のディジタルコンパレータにて一致信号46を検出すると第3のデータ保持手段27の出力44は“L”から“H”に変化し、プリセッタブルダウンカウンタ29はカウント動作からデータプリセット動作へ切換わる。
【0037】
同時にクリア信号発生手段31は前記第2のデータ保持手段26の出力43と第3のデータ保持手段27の出力44よりアップダウンカウンタ70のカウントクリア信号13として“H”を出力し、カウント状態にする。
【0038】
このようにして外部から入力される同期制御入力信号が入力されない場合、第1のディジタルコンパレータの一致信号にてアップダウンカウンタの内容を0にクリアし、クリア状態を一定期間保持後、アップダウンカウンタの再動作によりディジタル三角波波形の生成を行う。
【0039】
図6は図3のスレーブ処理手段2においてアップダウンカウンタがクリア保持中に同期制御入力信号12が入力される場合の動作図であり、この場合アップダウンカウンタ70はカウントデータ82が0になった時点でこの状態を保持し同期制御入力信号により再びカウント動作を再開する実施例である。
【0040】
まず、図5の動作と同様にして第3のディジタルコンパレータ24と第3のレジスタ23とアップダウンカウンタのカウントデータ82とカウント方向切換信号81により同期制御入力信号を入力有効として第1のデータ保持手段25の出力42を“H”レベルに保持する。ここで第2のデータ保持手段26では、前記同期制御入力の有効を示す信号42が“H”にもかかわらず同期制御入力信号12の入力がないため第2のデータ保持手段26は出力43として“H”を保持する。
【0041】
次にアップダウンカウンタの内容が0になると第1のディジタルコンパレータ72の一致信号83が“H”となり、この信号により第3のデータ保持手段27の出力44は“H”から“L”に変化し、同時にプリセッタブルダウンカウンタ29は第4のレジスタで保持している値をデータプリセットする動作からソースクロック80をカウントする動作へ切換わる。
【0042】
同時にクリア信号発生手段31は前記第2のデータ保持手段26の出力43と第3のデータ保持手段27の出力44よりアップダウンカウンタ70のカウントクリア信号13として“L”を出力し、クリア状態にする。
【0043】
次にプリセッタブルダウンカウンタ29の出力45が0になる前に外部より同期制御入力信号12が“L”から“H”に変化すると第2のデータ保持手段26は前記アップダウンカウンタ70の内容を0にするため一時“L”レベルを保持する。このときクリア信号発生手段31は前記第2のデータ保持手段26の出力43と第3のデータ保持手段27の出力44よりアップダウンカウンタ70の動作を0保持からカウント動作に切り換えるためカウントクリア信号13として“H”を出力し、カウント状態にする。
【0044】
このようにしてアップダウンカウンタが0を保持中に外部から同期制御入力信号が入力された場合、同期制御入力信号が入力された時点でアップダウンカウンタの再動作によりディジタル三角波波形の生成を行う。
【0045】
図7は図3のスレーブ処理手段2においてアップダウンカウンタ70の内容がレジスタで保持される同期制御入力信号の入力有効範囲内で同期制御入力信号12が入力される場合の動作図であり、この場合、同期制御入力信号を受信した時点でアップダウンカウンタ70を一旦クリアし再びカウント動作を再開する実施例である。
【0046】
まず、図5の動作と同様にして第3のディジタルコンパレータ24と第3のレジスタ23とアップダウンカウンタのカウントデータ82とカウント方向切換信号81により同期制御入力信号を入力有効として第1のデータ保持手段25の出力42を“H”レベルに保持する。
【0047】
次にアップダウンカウンタの内容が0になる前に外部より同期制御入力信号12が“L”から“H”に変化すると第2のデータ保持手段26は前記アップダウンカウンタ70の内容を0にするため一時“L”レベルを保持する。
【0048】
このときクリア信号発生手段31は前記第2のデータ保持手段26の出力43と第3のデータ保持手段27の出力44よりアップダウンカウンタ70のカウントクリア信号13として一時“L”を出力しカウンタを一旦クリア後、カウント動作を再開する。
【0049】
このようにしてアップダウンカウンタの内容がレジスタで保持される同期制御入力信号の入力有効範囲内で同期制御入力信号が入力された場合、同期制御入力信号を受信した時点でアップダウンカウンタを一旦クリアし再びカウント動作を再開しディジタル三角波波形の生成を行う。
【0050】
図8は本発明におけるディジタル三角波波形発生装置60を三相電動機の制御装置61に用い、複数接続する一実施例の構成を示す図である。
【0051】
図8(a)は1つのディジタル三角波波形発生装置60をホスト側として同期制御出力信号11を出力し、他はすべてスレーブ側として前記ホスト側からの同期制御出力信号11を同期制御入力信号12として使用した並列接続の実施例であり、ディジタル三角波波形生成はホスト側を基準に同じタイミングで生成同期を行うシステムである。
【0052】
図8(b)は図(a)に対して直列接続の実施例であり、ディジタル三角波波形生成は一番先頭に位置するディジタル三角波波形発生装置を基準にして少しずつタイミングをずらして生成同期を行うシステムである。
【0053】
【発明の効果】
上記の実施例から明らかなように本発明は、電動機の制御装置を複数使用した場合でもディジタル三角波波形発生装置における三角波波形は、複数装置間においてタイミングの同期を得ることができ、アナログ情報およびディジタル情報の各種制御信号を検出する制御処理手段において、PWM信号にもとづきスイッチング手段から発生する電気ノイズに対して相互干渉などの影響を受けない信号検出が実現でき、ディジタル三角波波形発生装置を用いた電動機制御装置の信頼性向上を図ることができる。
【図面の簡単な説明】
【図1】 本発明の実施例のディジタル三角波波形発生装置の構成図
【図2】 本発明の実施例のホスト処理手段の構成図
【図3】 本発明の実施例のスレーブ処理手段の構成図
【図4】 本発明の実施例のホスト処理手段の動作説明図
【図5】 本発明の実施例のスレーブ処理手段の動作説明図
【図6】 本発明の実施例のスレーブ処理手段の動作説明図
【図7】 本発明の実施例のスレーブ処理手段の動作説明図
【図8】 本発明の実施例のディジタル三角波波形発生装置の接続構成図
【図9】 従来のディジタル三角波波形発生装置の構成図
【図10】 従来のディジタル三角波波形発生装置の動作説明図
【図11】 一般的な三相電動機制御装置の構成図
【図12】 一般的な三相電動機制御装置の動作説明図
【符号の説明】
1 ホスト処理手段
2 スレーブ処理手段
21 第2のレジスタ
22 第1のセレクタ
23 第3のレジスタ
24 第3のディジタルコンパレータ
25 第1のデータ保持手段
26 第2のデータ保持手段
27 第3のデータ保持手段
28 第4のレジスタ
29 プリセッタブルダウンカウンタ
30 第4のディジタルコンパレータ
31 クリア信号発生手段
70 アップダウンカウンタ
71 第1のレジスタ
72 第1のディジタルコンパレータ
73 第2のディジタルコンパレータ
74 カウント方向切換手段
75 OR素子
90 制御処理手段
91 マイコン
92 ディジタル三角波波形発生装置
93 三相PWM信号発生手段
94 スイッチング手段
95 電流検出手段
96 三相電動機[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a digital triangular waveform generator for a three-phase motor PWM controller in an AC servo controller or the like.
[0002]
[Prior art]
In recent years, motor control devices such as AC servo controllers have been digitized, and along with this, triangular wave waveform generators used for PWM waveform generation in PWM control devices for three-phase motors have also been devised as means to deal with digitization. Has been.
[0003]
FIG. 9 shows a typical example of a conventional digital triangular waveform generator. The configuration will be described below with reference to FIG.
[0004]
As shown in FIG. 9, the
[0005]
FIG. 10 is a diagram showing an outline of the operation of FIG. 9, in which the count
[0006]
FIG. 11 shows a configuration example when the digital triangular wave waveform generator of FIG. 9 is used for motor control of a three-phase motor. Control processing means 90 for processing instructions and feedback information for controlling the motor, and control processing means 90 9, a digital triangular
[0007]
FIG. 12 is an example of operation waveforms in FIG. 11.
[0008]
The
[0009]
In the feedback control of the three-phase motor, first, the control processing means 90 detects analog or digital information necessary for position, speed or current control based on the
[0010]
As described above, the signal change of the
[0011]
[Problems to be solved by the invention]
However, in the conventional configuration described above, the control processing means 90 for detecting various control signals is not affected by the electric noise generated from the switching means 94 based on the PWM signal within the range in which the motor control device is configured as a single unit. However, when a plurality of control devices are configured, the control processing means 90 of another control device and the PWM signal of another control device, that is, switching
Since the timing relationship is irrelevant to the electrical noise generated from the
[0012]
SUMMARY OF THE INVENTION An object of the present invention is to provide a digital triangular wave waveform generating apparatus and a digital triangular wave waveform generating system in which mutual interference does not occur even when a plurality of apparatuses are used simultaneously.
[0013]
[Means for Solving the Problems]
In order to solve the above problems, the present invention counts the source clock oscillating at a constant frequency, can switch between count-up operation and count-down operation by the count direction switching signal, and clears the count content to 0 by the count clear signal A possible up / down counter, a first register that holds a maximum count-up value in a rewritable register, a first digital comparator that detects that the content of the up / down counter matches zero, A second digital comparator for detecting that the contents of the up / down counter coincide with the first register; and the count direction switching signal is counted up by the coincidence signal of the first digital comparator; Counted by the coincidence signal of the second digital comparator Count direction switching means for switching to down operation, host processing means for generating a synchronization control signal from the coincidence signal of the first digital comparator and the coincidence signal of the second digital comparator, and a synchronization control signal input from the outside Thus, slave processing means for controlling the operation of the up / down counter is provided.
[0014]
DETAILED DESCRIPTION OF THE INVENTION
In order to solve the above problems, the present invention counts a source clock that oscillates at a constant frequency, can switch between count-up operation and count-down operation by a count direction switching signal, and can clear count content to 0 by a count clear signal. An up / down counter, a first register that holds a maximum count-up value in a rewritable register, a first digital comparator that detects that the content of the up / down counter matches zero, A second digital comparator for detecting that the content of the up / down counter matches that of the first register; and the count direction switching signal is counted up by the match signal of the first digital comparator; Counts with the coincidence signal of 2 digital comparators The counting direction switching means for switching and operating the down operation, A second rewritable register that holds the coincidence signal output selection value is synchronized with either the coincidence signal of the first digital comparator or the coincidence signal of the second digital comparator by the second register. Host processing means for generating a synchronization control signal from the coincidence signal of the first digital comparator and the coincidence signal of the second digital comparator comprising a first selector that outputs as a control output signal; Is a digital triangular waveform generator.
[0015]
The data is rewritten with an up / down counter that counts the source clock that oscillates at a constant frequency, can be switched between count-up and count-down operations with a count direction switching signal, and count contents can be cleared to 0 with a count clear signal. A first register that holds a maximum count-up value in a possible register, a first digital comparator that detects that the content of the up / down counter matches zero, and the content of the up / down counter is the first register A second digital comparator that detects that the register coincides with the first register, and the count direction switching signal is counted up by the coincidence signal of the first digital comparator, and the coincidence signal of the second digital comparator Cow that switches to countdown operation The winding direction switching means is a digital triangle wave waveform generator having a slave processing means for controlling the operation of the up-down counter by the synchronization control signal input from the outside.
[0016]
Also, the up / down counter contents are cleared to 0 by the coincidence signal of the first digital comparator and the clear state is maintained for a certain period, and then the up / down counter is restarted or by the coincidence signal of the first digital comparator. While the up / down counter is in the clear state, the up / down counter is restarted by the synchronization control signal input from the outside, or the up / down counter contents are within the set value and the synchronization control signal input from outside This is a digital triangular wave waveform generator provided with slave processing means for performing any of the re-operations of the up / down counter after clearing the contents to zero.
[0017]
Also, the third register that holds the threshold value of the valid / invalid input of the synchronization control input signal input from the outside in a rewritable register, and the contents of the up / down counter match the third register. The third digital comparator for detecting this and the up / down counter hold the “H” level by the coincidence signal of the third digital comparator when the count down operation is performed, and the count operation is performed after the content of the up / down counter is cleared to 0 When started, the first data holding means for holding the “L” level, and the synchronization control input signal input from the outside during the period when the output of the first data holding means is at the “H” level is changed from “L” to “H”. The second data holding means for temporarily holding the “L” level in order to set the content of the up / down counter to 0 when it changes to “ A rewritable register that holds a count operation stop count, and a source clock that oscillates at a constant frequency, counts down the counter contents by a count-down operation and a data preset signal. A presettable down counter that can be preset to a value, a fourth digital comparator that detects that the contents of the presettable down
[0018]
in this way , De One of two types of synchronization control signals can be selected and output from the digital triangular waveform.
[0019]
Also, a digital triangular waveform can be generated by a synchronization control signal input from the outside.
[0020]
Also, the generation of the digital triangular wave is temporarily stopped at the value “0” of the triangular wave counter, and the waveform is regenerated after a predetermined time has elapsed, or the generation of the digital triangular wave is temporarily stopped at the value “0” and is input from the outside. The digital triangular wave waveform can be regenerated by the synchronization control signal, or the digital triangular wave waveform can be regenerated after the value of the triangular wave counter is set to “0” by the synchronization control signal input from the outside during the generation of the digital triangular wave.
[0021]
Also, setting the effective range of the synchronization control signal when regenerating the digital triangle wave waveform after setting the value of the triangle wave counter to “0” by the synchronization control signal input from the outside during the generation of the digital triangle wave and the digital triangle wave It is possible to set a stop time when the generation of the triangular wave counter is temporarily stopped at a value of “0” and the waveform is regenerated after a predetermined time has elapsed.
[0022]
【Example】
Embodiments of the present invention will be described below with reference to the drawings.
[0023]
FIG. 1 is a diagram showing the configuration of a digital triangular wave waveform generator according to an embodiment of the present invention. The same reference numerals are assigned to the same components as in the conventional example.
[0024]
As shown in FIG. 1, the
[0025]
Hereinafter, the host processing means 1 and the slave processing means 2 will be described with reference to FIGS.
[0026]
FIG. 2 is a diagram showing the configuration of the host processing means 1 in FIG. 1, and holds the setting for switching the
[0027]
FIG. 3 is a diagram showing the configuration of the slave processing means 2 in FIG. 1, and a
[0028]
Next, operations of the host processing means 1 and the slave processing means 2 will be described with reference to FIGS. 4, 5, 6, and 7. FIG.
[0029]
FIG. 4 is a diagram showing the operation of the host processing means 1 and the relationship with the slave processing means 2, and is an operation example in which two digital triangular wave waveform generators X and Y are used. X is the host side, Y is the slave side, and on the X side, the up / down
[0030]
On the other hand, on the Y side, the 11 (a) signal or 11 (b) signal output as the synchronization control output signal is received as the synchronization control input signal as 12 (a) signal or 12 (b) signal, and slave processing is performed. When the 12 (a) signal is a synchronous control input signal via the
[0031]
Next, the operation of the
FIG. 5 is an operation diagram when the synchronous
[0032]
First, the third
[0033]
Next, in the second data holding means 26, the synchronization
[0034]
Next, when the content of the up / down counter becomes 0, the
[0035]
At the same time, the clear signal generating means 31 outputs "L" as the count
[0036]
Next, when the
[0037]
At the same time, the clear signal generating means 31 outputs "H" as the count
[0038]
When the synchronization control input signal input from the outside is not input in this way, the contents of the up / down counter are cleared to 0 by the coincidence signal of the first digital comparator, and after holding the clear state for a certain period, the up / down counter A digital triangular waveform is generated by re-operation.
[0039]
FIG. 6 is an operation diagram when the synchronous
[0040]
First, in the same manner as the operation of FIG. 5, the synchronization control input signal is validated by the third
[0041]
Next, when the content of the up / down counter becomes 0, the
[0042]
At the same time, the clear signal generating means 31 outputs "L" as the count
[0043]
Next, when the synchronization
[0044]
In this way, when the synchronization control input signal is input from the outside while the up / down counter holds 0, the digital triangular waveform is generated by the re-operation of the up / down counter when the synchronization control input signal is input.
[0045]
FIG. 7 is an operation diagram when the synchronization
[0046]
First, in the same manner as the operation of FIG. 5, the synchronization control input signal is validated by the third
[0047]
Next, when the synchronization
[0048]
At this time, the clear signal generating means 31 temporarily outputs "L" as the count
[0049]
When the synchronization control input signal is input within the effective range of the synchronization control input signal in which the contents of the up / down counter are held in the register in this way, the up / down counter is cleared once when the synchronization control input signal is received. Then, the count operation is resumed to generate a digital triangular waveform.
[0050]
FIG. 8 is a diagram showing a configuration of an embodiment in which a plurality of digital triangular
[0051]
In FIG. 8A, the synchronization control output signal 11 is output with one digital triangular
[0052]
FIG. 8B shows an embodiment connected in series with respect to FIG. 8A, and digital triangular wave waveform generation is performed by shifting the timing little by little with respect to the digital triangular wave waveform generator located at the top. It is a system to do.
[0053]
【The invention's effect】
As is clear from the above embodiments, the present invention can obtain timing synchronization among a plurality of devices even when a plurality of motor control devices are used, and the analog waveform and the digital information can be obtained. In the control processing means for detecting various control signals of information, it is possible to realize signal detection that is not affected by mutual interference or the like with respect to electrical noise generated from the switching means based on the PWM signal, and an electric motor using a digital triangular waveform generator The reliability of the control device can be improved.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of a digital triangular waveform generator according to an embodiment of the present invention.
FIG. 2 is a configuration diagram of host processing means according to the embodiment of this invention.
FIG. 3 is a block diagram of slave processing means of an embodiment of the present invention.
FIG. 4 is an operation explanatory diagram of host processing means of an embodiment of the present invention.
FIG. 5 is an operation explanatory diagram of slave processing means of an embodiment of the present invention.
FIG. 6 is a diagram for explaining the operation of the slave processing means according to the embodiment of the present invention.
FIG. 7 is an operation explanatory diagram of slave processing means of an embodiment of the present invention.
FIG. 8 is a connection configuration diagram of a digital triangular waveform generator according to an embodiment of the present invention.
FIG. 9 is a block diagram of a conventional digital triangular waveform generator
FIG. 10 is a diagram for explaining the operation of a conventional digital triangular waveform generator.
FIG. 11 is a configuration diagram of a general three-phase motor control device.
FIG. 12 is an operation explanatory diagram of a general three-phase motor control device.
[Explanation of symbols]
1 Host processing means
2 Slave processing means
21 Second register
22 First selector
23 Third register
24 Third digital comparator
25 First data holding means
26 Second data holding means
27 Third data holding means
28 Fourth register
29 Presettable down counter
30 Fourth digital comparator
31 Clear signal generating means
70 Up / Down Counter
71 First register
72 First digital comparator
73 Second digital comparator
74 Count direction switching means
75 OR element
90 Control processing means
91 Microcomputer
92 Digital triangular waveform generator
93 Three-phase PWM signal generation means
94 Switching means
95 Current detection means
96 Three-phase motor
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP28765398A JP3659024B2 (en) | 1998-10-09 | 1998-10-09 | Digital triangular waveform generator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP28765398A JP3659024B2 (en) | 1998-10-09 | 1998-10-09 | Digital triangular waveform generator |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2000114936A JP2000114936A (en) | 2000-04-21 |
JP3659024B2 true JP3659024B2 (en) | 2005-06-15 |
Family
ID=17719998
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP28765398A Expired - Fee Related JP3659024B2 (en) | 1998-10-09 | 1998-10-09 | Digital triangular waveform generator |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3659024B2 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4251776B2 (en) * | 2001-02-13 | 2009-04-08 | 株式会社日立産機システム | Inverter device |
JP4057438B2 (en) | 2003-02-04 | 2008-03-05 | ローム株式会社 | Triangular wave phase synchronization method and system |
WO2007114272A1 (en) * | 2006-03-30 | 2007-10-11 | Shindengen Electric Manufacturing Co., Ltd. | Battery charging device, 3-phase voltage generation circuit, 3-phase voltage generation method, and delay angle control method |
JP4556927B2 (en) * | 2006-08-10 | 2010-10-06 | パナソニック株式会社 | Motor drive device |
-
1998
- 1998-10-09 JP JP28765398A patent/JP3659024B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2000114936A (en) | 2000-04-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5917721A (en) | Apparatus for reducing the effects of turn on delay errors in motor control | |
JP3659024B2 (en) | Digital triangular waveform generator | |
JP3156269B2 (en) | Digital three-phase PWM waveform generator | |
JP2000270591A (en) | Chopping current application controller for electric motor | |
JPH06284779A (en) | Control circuit for brushless dc motor | |
JP2001157457A (en) | Three-phase pulse width modulation waveform generation device | |
JPH07163189A (en) | Pwm controller for motor | |
JPH08214585A (en) | Motor controller | |
KR0129983B1 (en) | Motor control apparatus | |
JPS5914394A (en) | Automatic switching device for inverter | |
KR970001866Y1 (en) | Variable speed control device of a washing machine motor | |
JP2002108414A (en) | Method and device for synchronously establishing plural servo-drive devices | |
JPH0332296B2 (en) | ||
JPH10225173A (en) | Control method of brushless motor | |
JPS62217862A (en) | Inverter unit | |
JP2000175497A (en) | Device and method for controlling pulse motor and recording medium with pulse motor control program recorded therein | |
KR100201956B1 (en) | Position control apparatus using digital speed sensor of invertor for elevator | |
JP3253890B2 (en) | Encoder device for brushless motor control | |
JPH1175375A (en) | 3-phase pulse width modulated waveform generator | |
SU826550A1 (en) | Method of control of dependent frequency converter | |
JPH0729745B2 (en) | Elevator speed control method | |
RU1817061C (en) | Device for controlling reeling machine | |
JPH08182379A (en) | Method and apparatus for detecting rotor position of brushless motor | |
JPS61128780A (en) | Stop controller of motor | |
JP2932294B2 (en) | Pulse generator |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20041201 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20041214 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050117 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20050222 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050307 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080325 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090325 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100325 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110325 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110325 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120325 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130325 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130325 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140325 Year of fee payment: 9 |
|
LAPS | Cancellation because of no payment of annual fees |