JPH0427799B2 - - Google Patents

Info

Publication number
JPH0427799B2
JPH0427799B2 JP57198219A JP19821982A JPH0427799B2 JP H0427799 B2 JPH0427799 B2 JP H0427799B2 JP 57198219 A JP57198219 A JP 57198219A JP 19821982 A JP19821982 A JP 19821982A JP H0427799 B2 JPH0427799 B2 JP H0427799B2
Authority
JP
Japan
Prior art keywords
signal
motor
sgt
pulse
pulse train
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 - Lifetime
Application number
JP57198219A
Other languages
Japanese (ja)
Other versions
JPS5989590A (en
Inventor
Toyofumi Terawaki
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP57198219A priority Critical patent/JPS5989590A/en
Publication of JPS5989590A publication Critical patent/JPS5989590A/en
Publication of JPH0427799B2 publication Critical patent/JPH0427799B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P7/00Arrangements for regulating or controlling the speed or torque of electric DC motors
    • H02P7/06Arrangements for regulating or controlling the speed or torque of electric DC motors for regulating or controlling an individual dc dynamo-electric motor by varying field or armature current
    • H02P7/18Arrangements for regulating or controlling the speed or torque of electric DC motors for regulating or controlling an individual dc dynamo-electric motor by varying field or armature current by master control with auxiliary power
    • H02P7/24Arrangements for regulating or controlling the speed or torque of electric DC motors for regulating or controlling an individual dc dynamo-electric motor by varying field or armature current by master control with auxiliary power using discharge tubes or semiconductor devices
    • H02P7/28Arrangements for regulating or controlling the speed or torque of electric DC motors for regulating or controlling an individual dc dynamo-electric motor by varying field or armature current by master control with auxiliary power using discharge tubes or semiconductor devices using semiconductor devices
    • H02P7/2805Arrangements for regulating or controlling the speed or torque of electric DC motors for regulating or controlling an individual dc dynamo-electric motor by varying field or armature current by master control with auxiliary power using discharge tubes or semiconductor devices using semiconductor devices whereby the speed is regulated by measuring the motor speed and comparing it with a given physical value

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Direct Current Motors (AREA)
  • Control Of Stepping Motors (AREA)

Description

【発明の詳細な説明】[Detailed description of the invention]

技術分野 この発明はモータの速度制御におけるPWM制
御装置に関するものである。 従来技術 従来、この種のPWM制御装置は三角波若しく
はのこぎり波と、アナログ指令信号とを比較する
ことによりPWMを実現している。従つて、デジ
タル指令信号をD−A変換するD−A変換器を使
用する必要があり、その結果、ドリフト補正等回
路上の工夫が必要となるとともに、部品点数が多
くなる問題があつた。 また、三角波若しくはのこぎり波とアナログ信
号を用いるため、プログラマブルにPWA周波数
及びサーボゲインを変えることが簡単にはできな
かつた。 目 的 この発明は前記問題点を解消するためになされ
たものであつて、その目的は三角波若しくはのこ
ぎり波を使用しないことにより、アナログ部分の
調整をなくし、簡単な調整でプログラマブルに
PWM周波数及びサーボゲインを変えることがで
きるモータの速度制御におけるPWM制御装置を
提供するにある。 実施例 以下、この発明をパターン縫いミシンに具体化
した一実施例を図面に従つて説明する。 第1図に示すようにミシン本体1はミシンテー
ブル2に装置され、その一側にはミシン本体1内
のミシン主軸を駆動するミシンモータ(直流モー
タ)3が装置されている。ミシン本体1のブラケ
ツトアーム4の頭部4aには前記ミシン主軸と作
動的に連結された針棒5が上下動可能に装着さ
れ、同針棒5、主軸を含むミシン本体1等でミシ
ンモータ3の被駆動物を構成されている。 針棒5の縫針5aと対応してミシンテーブル2
上には加工布Kを保持するリング状の加工布保持
枠6が設けられ、X軸パルスモータ及びY軸パル
スモータ(共に図せず)の被駆動物を構成してい
る。そして、加工布保持枠6はX軸パルスモータ
の回動によりミシンテーブル2上を左右方向に、
又Y軸パルスモータの回動によりミシンテーブル
2上を前後方向に移動するように設けられてい
る。 次に、上記のように構成されたミシンの制御装
置について説明する。 制御装置は第1図において前記ミシンテーブル
2の前部下面に設けられたコントロールボツクス
7に内蔵されていて、そのパルス8にはミシンを
駆動させるためのスタート信号SGSTを出力する
スタートキー9と、ミシン1を非常停止させるた
めのストツプ信号SGSPを出力するストツプキー
10と、前記加工布保持枠6の位置設定を行うた
めの位置設定信号SGPOを出力する4個のジヨグ
キー11とが配設されている。ミシンモータ3に
は位置検出器13が設けられ、モータ1回転に対
して200個の正弦波状の位置信号SGMが出力され
るようになつている。又、前記X軸及びY軸パル
スモータにも同様な位置検出器が設けられ、それ
ぞれ各検出器から位置信号SGX、SGYが出力さ
れるようになつている。 第2図において、検出回路を構成する波形整形
回路14,15,16、逓倍回路17,18,1
9、及びカウンタ回路20,21等は前記位置信
号SGM、SGX、SGYに基づいて、ミシンモータ
3、X軸及びY軸パルスモータのその時々の回動
位置をデジタル信号として検出する。波形整形回
路14,15,16はそれぞれ前記正弦波状の位
置信号SGX、SGY、SGMを矩形波の位置信号
SGXa、SGYa、SGMaに波形整形し、次段の逓
倍回路17,18,19に出力される。又、各波
形整形回路14,15,16は前記正弦波状の位
置信号SGX、SGY、SGMに対して位相を90度ず
らした位置信号を受信してそれぞれを矩形波の位
置信号SGXa、SGYa、SGMaに波形成形し、次
段の逓倍回路17,18,19に出力する。 逓倍回路17,18,19はそれぞれ、対応す
る位置信号SGXa、SGXb、SGYa、SGYb、
SGMa、SGMbを入力し、この両信号の位相差に
基づいてモータの正逆転を判別し、モータが正転
されているときは、それぞれ前記位置信号を4倍
に逓倍してなる正転位置信号SGXP、SGYP、
SGMPを反対に逆転されているときには同じく
前記位置信号を4倍に逓倍してなる逆転位置信号
SGXN、SGYN、SGMNを出力する。2個のカ
ウンタ回路20,21はそれぞれ3個のカウンタ
で構成されていて、この各カウンタは前記正転、
逆転位置信号SGXP、SGYP、SGMP、SGXN、
SGYN、SGMNをそれぞれデジタルカウントし、
そのカウント値ECDNX、ECDPX、ECDNY、
ECDPY、ECDND、ECDPDに基づいて各モータ
の回動位置が算出される。 また、前記ミシンモータ3に対応する波形整形
回路16は前記位置信号SGMに基づいて原点信
号(縫針5aの針先が加工布Kから上方へ抜け出
る時に出力される信号)PGを出力する。この原
点信号PGは前記スタートキー9等の各キーの信
号SGS、SGSP、SGPOを入力する入力ポート2
2とフリツプフロツプ回路23に入力される。そ
してフリツプフロツプ回路23はこの原点信号
PGに基づいて同期信号SGSYを同入力ポート2
2に出力する。 算出手段としての中央処理装置(以下CPUと
いう)24は記憶手段としての各レジスタを含み
読み出し専用のメモリ(以下ROMという)25
に記憶された制御プログラムに従つて動作するよ
うになつていて、前記入力ポート22に入力され
る前記各信号を入力するとともに後記する一定の
周期(350μsec)で出力されるタイミング信号
SGTを入力する。そして、CPU24はこのタイ
ミング信号SGTを入力するたびごとに前記カウ
ンタ回路20,21の各カウンタのカウント値
ECDNX、ECDPX、ECDNY、ECDPY、
ECDND、ECDPDを読み取り、ミシンモータ3
等の各モータの回転位置を求め、そのタイミング
信号SGT発生時における各モータの回転速度
Vd、Vx、Vy及び回転加速度αd、αx、αy等を演
算する。 読み出し及び書き替え可能なメモリ(以下
RAMという)26は加工布Kに施すパターン縫
いのためすなわちミシンモータ3等の各モータの
回動量を指令するための速度指令信号としてのパ
ターンデータが格納されている。パターンデータ
は第3図に示すように縫製を開始するためのスタ
ートコードCOSTと縫製を終了するため終了コー
ドCOENとが最初と最後に記憶され、その両コー
ドCOST、COEN間には1針ごとに加工布保持枠
6をX方向及びY方向に移動させるためのX軸及
びY軸パルスモータの回転量データfdx、fdyと、
1針ごとのミシンモータ3の回転量(本実施例で
は終始一定の回転量)データfddが縫製順序に従
つて記憶されている。 そして、CPU24は前記タイミング信号SGT
を入力するたびごとに、前記回動量データfdx、
fdy、fddと回転速度Vd、Xx、Vyとの偏差εd、
εx、εyを演算するとともにその偏差εd、εx、εy
に前記回転速度Vd、Vx、Vy及び回転速度αd、
αx、αyの帰還を施す演算を行つて、偏差量
PWMAD、PWMBD、PWMAX、PWMBX、
PWMAY、PWMBY等を算出するようになつて
いる。 ミシンモータ3等の各モータに対応して設けら
れた3個のパルス発生手段としてのパルス発生回
路27,28,29はそれぞれプリセツト型16ビ
ツトカウンタを持つプログラマブルインターバル
タイマを3個有し、そのうち2つをそれぞれ、モ
ータに駆動電流を供給するためのトリガ信号TG
及びクロツク信号CKに基づいて出力されるパル
ス信号SGXPP、SGXPN、SGYPP、SGYPN、
SGMDP、SGMDNをそのデユーテイ比を変更制
御して出力するカウンタ27a,27b〜29
a,29bとして使用し、他の1つをそれぞれク
ロツク信号発生回路(分周回路)27c,28
c,29cとして使用される。カウンタ27a〜
29bはそれぞれCPU24から前記偏差量がロ
ードされ、その偏差量をトリガ信号TGが入力さ
れるごとに、クロツク信号CKの立ち下りにより
逐次カウントダウンし、その値がゼロになつた
時、プラス電位(以下Hレベル)のパルス信号を
出力する。 クロツク信号CKはパルス発振器(図示せず)
から出力される2MHzのパルス信号SGP1をY軸パ
ルスモータに対応するパルス発生回路28のクロ
ツク信号発生回路28cにて400KHzに分周する
ことにより、各カウンタ27a〜29bに出力さ
れる。トリガ信号TGは前記クロツク信号CKを
X軸パルスモータに対応するパルス発生回路27
のクロツク信号回路27Cにて6KHzに分周する
ことにより、各カウンタ27a〜29bに出力さ
れる。 又、ミシンモータ3に対応して設けられたパル
ス発生回路29のクロツク信号発生回路29cは
本実施例では前記タイミング信号SGTを出力す
るタイミング信号発生回路として使用され、パル
ス発振器(図示しない)から出力される154KHz
のパルス信号SGP2を2.8KHzのタイミング信号
SGTに分周して前記CPU24に出力するように
なつている。 次に、前記パルス発生回路27〜29から出力
されるパルス信号SGXPP〜SGMDNに基づい
て、それぞれ各モータに駆動電流を供給するスイ
ツチング回路について説明する。なお、各スイツ
チング回路はそれぞれ同じ回路構成であるので、
それぞれ符号を同じにしてミシンモータ3のスイ
ツチング回路について説明する。 パルス発生回路29のカウンタ29aのパルス
信号SGMDPはノツト回路30,31遅延回路3
2及びシユミツト回路33を介してナンド回路3
4に出力されるとともに、ノツト回路30、遅延
回路35及びシユミツト回路36を介してアンド
回路37に出力される。又、カウンタ29bのパ
ルス信号SGMDNはノツト回路38,39、遅
延回路40及びシユミツト回路41を介してアン
ド回路42に出力されるとともに、ノツト回路3
8、遅延回路43及びシユミツト回路44を介し
てナンド回路45に出力される。 そして、遅延回路35,43からHレベルの出
力信号が出力された時、スイツチング回路として
の駆動回路46のスイツチングトランジスタQ1
〜Q4のうちトランジスタQ1、Q4がオンし、ミシ
ンモータ3に駆動電流が供給され、同モータ3は
正転駆動される。前記アンド回路37,42及び
ナンド回路34,35には駆動回路46から出力
される電流制限用の制限信号と、ミシン非常停止
用の停止信号SGSVが入力されるようになつてい
る。 なお、このミシンの制御装置は入出力ポート4
7及びレベル変換器48を介してパーソナルコン
ピユータと接続でき、パーソナルコンピユータか
らのデータ転送及び動作制御が可能となるととも
に、又、入出力ポート49及びレベル変換器50
を介して他のミシンの制御装置と接続され、ミシ
ン間で互いに動作制御が行えるようになつてい
る。 次に、上記のように構成した制御装置の作用に
ついて前記CPU24の動作を示すフローチヤー
ト図に従つて説明する。 まず、第1図に示すように加工布Kをミシンテ
ーブル2上の加工布保持枠6により保持する。そ
の保持した状態で電源スイツチ(図示せず)をオ
ンさせると、CPU24は同CUP24内の各レジ
スタをクリアするとともにカウンタ回路20,2
1及びパルス発生回路27〜29を初期設定す
る。次に、CPU24はRAM26からパターンデ
ータを読み出すとともに、ミシンモータ3等の各
モータの駆動軸を予め定められた原点位置(ミシ
ンモータ3の場合には縫針5aが加工布Kから上
方に抜ける位置に対応する回動位置)に復帰させ
た後、スタートキー9のキー操作を待つ。 スタートキー9が押され、スタート信号SGST
がCPU24に入力されると、CPU24は前記ミ
シンモータ3の回動量データfddをCPU24の
FDDレジスタに入力し、このデータに基づいて
ミシンモータ3を駆動させ、同期信号SGSYが反
転するとすなわち、縫針5aが針上から針下位置
まで下降し、再び加工布Kから抜け出ると、2針
目の縫製位置に加工布Kを案内すべく、X軸及び
Y軸パルスモータの回動量データfdx、fdyをそ
れぞれCPU24のFDXレジスタとFDYレジスタ
に入力するとともに2針目のミシンモータ3の回
動量データfddをFDDレジスタに入力する。 従つて、この回動量データfdx、fdyに基づい
て、X軸及びY軸パルスモータは回転し、保持枠
6を介して加工布Kは所定の位置に移動され、前
記回動量データfddに基づき、ミシンモータ3は
回転し、縫針5aの下動して上動する1サイクル
運動が行われて2針目の縫製がなされる。 この間、CPU24は同CPU24の針数カウン
タで針数をカウントした後、パターンデータの次
の番地のデータが終了コードCOENかどうか判別
した後、前記同期信号SGSYの反転を待つ。そし
て、以後同期信号SGSYが反転するたびごとに、
すなわち1針ごとの縫製が終了するたびごとに、
前記と同様に次の縫目形成のための回動量データ
fdx、fdy、fddを読み出し、同データに基づいて
縫製が行われる。そして、最後に終了コード
COENが読み出されると、加工布Kの縫製は終了
し、次の加工布Kの縫製を待つ。 次に、上記縫製運転中、1針ごとの回動量デー
タfdx、fdy、fddに基づいて、各モータの1針ご
との回転制御について詳細に説明する。 CPU24は同期信号SGSYが反転する間、すな
わち1針の縫製サイクルが終了する間にパルス発
生回路29のタイミング信号発生回路として使用
されているクロツク信号発生回路29cから
350μsごとに出力されるタイミング信号SGTを割
り込み信号として入力している。又、カウンタ回
路20,21の各カウンタが逐次その時々のミシ
ンモータ3等の各モータの回転位置をデシタルカ
ウントしているとともに、各パルス発生回路27
〜29の各カウンタ27a,27b〜29a,2
9bには400KHzのクロツク信号CKと6KHzのト
リガ信号TGが入力されている。 今、前記同期信号SGSYが反転し、各回動量デ
ータfdx、fdy、fddが各レジスタに入力された状
態でCPU24に最初のタイミング信号SGTが入
力されると、CPU24はカウンタ回路20から
X軸パルスモータの正転及び逆転用のカウント値
ECDPX、ECDNXを読み出し、同モータにおけ
る駆動軸の回転位置θx(=ECDNX−ECDPX)
を求める。次に、CPU24は先に上記と同様な
方法で求められCPU24のθx0レジスタに一時記
憶されている先の回転位置θx0とからX軸モータ
のその時の回転速度Vx(=θx−θx0)を演算する
とともに、この回転位置θxを新たな先の回転位
置θx0のデータとしてθx0レジスタに記憶する。回
転速度Vxが求まると、CPU24はこの速度Vx
と上記と同様な方法で求められ、CPU24のVx0
レジスタに一時記憶されている先の回転速度Vx0
とからその時の回転加速度αx(=Vx−Vx0)を算
出するとともに、この回転速度Vxを新たな先の
回転速度Vx0のデータとしてVx0レジスタに記憶
する。 回転加速度αxを演算すると、CPU24はこの
加速度αxと、上記と同様な方法で求められ、
CPU24のαx0レジスタに一時記憶されている先
の回転加速度αx0とから、加速度増分△αx(=αx
−αx0)を算出するとともに、その加速度αxを新
たな先の回転加速度αx0のデータとしてαx0レジ
スタに記憶する。 CPU24は上記算出値と先のタイミング信号
SGTで求められた後記する偏差εx0とでその時の
偏差εx(=εx0−Vx−k1αxk2△αx、k1、k2は予
め定められた比例定数)を算出する。次にCPU
24はFDXレジスタに回動量データfdxがあるか
どうかを判別した後、同データfdxを予め定めた
後記する単位回動量△fdxで減算し、その減算さ
れた値(=fdx−△fdx)を新たな回動量データ
fdxとして前記FDXレジスタに記憶する。なお、
単位回動量△fdxは前記タイミング信号SGTが出
力されるごとに回転指令としての演算対象となる
デジタル値であつて、各1縫製サイクルごとの回
動量データfdxに対応して予め設定され、データ
fdxとともにRAM26に記憶されていて、同デ
ータfdxとともに読み出され△FDXレジスタに入
力される。なお、本実施例では、全て一定の値に
している。 次に、CPU24は前記算出した偏差εxと単位
回動量△fdxとを加算して、その加算値を新たな
偏差εx0(=εx+△fdx)としてεx0レジスタに記
憶するとともに、偏差量PWMAX(=εx0
PWS)、PWMBX(PWS−εx0)を算出し、パル
ス発生回路27の各カウンタ27a,27bにロ
ードする。ここでPWSは6KHzのトリガ信号TG
が出力されて、次のトリガ信号TGが出力される
間に出力される400KHzのクロツク信号CKの数
(≒66)を1/2した値(=33)に設定してある。 パルス発生回路27に偏差量PWMAX、
PWMBXをロードするとCPU24は上記と同様
な処理動作を行い、Y軸パルスモータについての
偏差量PWMAY、PWMBYを算出しパルス発生
回路28にロードするとともにミシンモータにつ
いての偏差量PWMAD、PWMBDを算出してパ
ルス発生回路29にロードする。 パルス発生回路27のカウンタ27a,27b
にトリガ信号TGが入力され偏差量PWMAX、
PWMBXがロードされると、各カウンタ27a,
27bはその出力信号SGXPP、SGXPNをLレ
ベルにするとともにこの偏差量PWMAX、
PWMBXを前記クロツク信号CKが入力されるご
とにカウントダウンする。PWMBX個目のクロ
ツク信号CKが入力されると、カウンタ27bは
0となりHレベルのパルス信号SGXPNを出力す
る。このHレベルのパルス信号SGXPNとLレベ
ルの出力信号SGXPPとでX軸パルスモータに駆
動電流が供給され、同パルスモータは正転駆動さ
れる。そして、PWMAX個目のクロツク信号CK
が入力されると、カウンタ27aは0となりHレ
ベルのパルス信号SGXPPを出力する。この両パ
ルス信号SGXPP、SGXPNがHレベルになるこ
とにより、X軸パルスモータへの駆動電流の供給
は停止される。 すなわち、CPU24で算出された偏差量
PWMAX、PWMBXに比例的なデユーテイー比
を有するパルス信号SGXPP、SGXPNに基づい
て正転駆動のための駆動電流が時間制御されてX
軸パルスモータに供給される。 そして、Y軸パルスモータ及びミシンモータ3
においても同様に駆動電流が供給制御される。 次のタイミング信号SGTがCPU24に入力さ
れると、同CPU24は再び前記同様な演算処理
動作を行う。まず、CPU24はカウンタ回路2
0からカウント値ECDPX、ECDNXを読み出し、
その時のX軸パルスモータの駆動軸の回転位置
θxを求め、この回転位置θxに基づいて、その時
の回転速度Vx(=θx−θx0)、回転加速度αx(=
Vx−Vx0)及び加速度増分△αx(=αx−αx0)を
算出するとともにその算出した各値θx、Vx、αx
を新たな値θx0、Vx0、αx0として各レジスタに記
憶する。 次にCPU24は先にεx0レジスタに記憶した先
の偏差εx0とこの新たな値Vx、αx、△αxとでそ
の時の偏差εx(=εx0−Vx−k1αx−k2△αx)を
求め、その求めた偏差εxに単位回動量△fxdを加
算して新たな偏差εx0(=εx+△fdx)を求める。
そして、CPU24は新たな偏差量PWMAX(=
εx0+PWS)、PWMBX(=PWS−εx0)を算出
し、パルス発生回路27の各カウンタ27a,2
7bにロードする。各カウンタ27a,27bは
トリガ信号TGに応答してこのロードされた偏差
量PWMAX、PWMBXをクロツク信号CKに基
づいてカウントダウンを行い、X軸パルスモータ
への駆動電流の供給が時間制御される。同様にY
軸パルスモータ及びミシンモータ3において同じ
方法で駆動電流が供給制御される。 以後、同期信号SGSYが反転するまでタイミン
グ信号SGTが出力されるごとに回動量データfdx
が単位回動量△fdxづつ読み出され、上記と同様
な演算が行われ、その時々のすなわち350μsごと
に駆動電流が時間制御される。 このように本実施例では同期信号SGSYが反転
されるまでの間において、そのサイクルにおける
回動量データfdxを全て1度に回転指令としての
演算対象とするのではなく、タイミング信号
SGTが出力されるごとに、同回動量データfdxか
ら単位回動量△fdxを差し引き、その単位回動量
△fdxを演算対象とするとともに、その時の回転
速度Vx、回転加速度αx及び加速度増分△αxを求
め、それぞれタイミング信号が入力されるごと
に、各値をそれぞれ累積しその累積した各値とそ
の時の回転速度Vx、回転加速度αx及び加速度増
分△αxとで、偏差εxを求める。そして、この偏
差εxに基づいて、その時の偏差量PWMAX、
PWMBXを求め、駆動電流の供給を制御する。 従つて、同期信号SGSYが反転されるまでの間
において、その時々の回転速度Vx及び回転加速
度αxの変化に応じて求められたその時々の回転
指令に応答するように駆動電流の供給が制御され
るため、モータは効率よくかつ正確に回転制御さ
れる。 ちなみに、ミシンモータ3について実験した結
果、表1に示す結果が得られた。この結果、回動
量データfdd(=1000)、単位回動量△fdd(=100)
に基づく回動量にミシンモータ3は安定した状態
で速やかに到達することがわかる。 また、前記タイミング信号SGTの周期を変え
るだけで、そのサーボゲインを変更でき、又、ト
リガ信号TG及びクロツク信号CKも簡単に可変
できるため、モータ制御をプログラマブルに調整
できる。 なお、前記実施例では実際の速度をデジタル値
で検出したが、これをアナログ量で検出し、偏差
量を求めた段階でデジタル値に変換してもよい。
Technical Field This invention relates to a PWM control device for controlling the speed of a motor. Prior Art Conventionally, this type of PWM control device realizes PWM by comparing a triangular wave or a sawtooth wave with an analog command signal. Therefore, it is necessary to use a DA converter that performs DA conversion of the digital command signal, and as a result, there is a problem in that circuit measures such as drift correction are required and the number of parts increases. Furthermore, since a triangular wave or sawtooth wave and an analog signal are used, it is not easy to programmably change the PWA frequency and servo gain. Purpose This invention was made to solve the above problems, and its purpose is to eliminate the need for adjusting the analog part by not using a triangular wave or a sawtooth wave, and to make it programmable with simple adjustment.
The present invention provides a PWM control device for controlling the speed of a motor that can change the PWM frequency and servo gain. Embodiment Hereinafter, an embodiment in which the present invention is embodied in a pattern sewing machine will be described with reference to the drawings. As shown in FIG. 1, a sewing machine main body 1 is mounted on a sewing machine table 2, and a sewing machine motor (DC motor) 3 for driving a main shaft of the sewing machine inside the sewing machine main body 1 is mounted on one side thereof. A needle bar 5, which is operatively connected to the main shaft of the sewing machine, is mounted on the head 4a of the bracket arm 4 of the sewing machine main body 1 so as to be movable up and down. driven object. The sewing machine table 2 corresponds to the sewing needle 5a of the needle bar 5.
A ring-shaped work cloth holding frame 6 for holding a work cloth K is provided above, and constitutes a driven object of an X-axis pulse motor and a Y-axis pulse motor (both not shown). The work cloth holding frame 6 moves horizontally on the sewing machine table 2 by the rotation of the X-axis pulse motor.
It is also provided so as to be moved back and forth on the sewing machine table 2 by rotation of the Y-axis pulse motor. Next, a control device for a sewing machine configured as described above will be explained. The control device is built in a control box 7 provided on the lower front surface of the sewing machine table 2 in FIG. A stop key 10 that outputs a stop signal SGSP for making an emergency stop of the sewing machine 1, and four jog keys 11 that output a position setting signal SGPO for setting the position of the work cloth holding frame 6 are provided. . The sewing machine motor 3 is provided with a position detector 13, so that 200 sinusoidal position signals SGM are output for one revolution of the motor. Similar position detectors are also provided for the X-axis and Y-axis pulse motors, and position signals SGX and SGY are output from each detector, respectively. In FIG. 2, waveform shaping circuits 14, 15, 16 and multiplier circuits 17, 18, 1 forming the detection circuit are shown.
9 and counter circuits 20, 21, etc. detect the rotational positions of the sewing machine motor 3, X-axis, and Y-axis pulse motors at any given time as digital signals based on the position signals SGM, SGX, and SGY. The waveform shaping circuits 14, 15, and 16 transform the sinusoidal position signals SGX, SGY, and SGM into rectangular position signals, respectively.
The waveforms are shaped into SGXa, SGYa, and SGMa, and output to the next-stage multiplier circuits 17, 18, and 19. Further, each waveform shaping circuit 14, 15, 16 receives a position signal whose phase is shifted by 90 degrees with respect to the sinusoidal position signals SGX, SGY, SGM, and converts them into rectangular wave position signals SGXa, SGYa, SGMa. The signal is shaped into a waveform and output to the next-stage multiplier circuits 17, 18, and 19. Multiplier circuits 17, 18, 19 respectively receive corresponding position signals SGXa, SGXb, SGYa, SGYb,
SGMa and SGMb are input, and based on the phase difference between these two signals, it is determined whether the motor is in forward or reverse direction. If the motor is rotating in the normal direction, the normal rotation position signal is generated by multiplying the position signal by four times. SGXP, SGYP,
When the SGMP is reversed, the reverse position signal is also obtained by multiplying the position signal by 4 times.
Output SGXN, SGYN, SGMN. The two counter circuits 20 and 21 are each composed of three counters, and each counter has the normal rotation,
Reverse position signal SGXP, SGYP, SGMP, SGXN,
Digitally count SGYN and SGMN,
Its count value ECDNX, ECDPX, ECDNY,
The rotational position of each motor is calculated based on ECDPY, ECDND, and ECDPD. Further, the waveform shaping circuit 16 corresponding to the sewing machine motor 3 outputs an origin signal PG (a signal output when the tip of the sewing needle 5a escapes upward from the workpiece cloth K) based on the position signal SGM. This origin signal PG is the input port 2 that inputs the signals SGS, SGSP, and SGPO of each key such as the start key 9.
2 and is input to the flip-flop circuit 23. The flip-flop circuit 23 then uses this origin signal.
The synchronization signal SGSY is input to the same input port 2 based on PG.
Output to 2. A central processing unit (hereinafter referred to as CPU) 24 as a calculation means includes a read-only memory (hereinafter referred to as ROM) 25 that includes each register as a storage means.
The timing signal is configured to operate according to a control program stored in the input port 22, and receives each of the signals inputted to the input port 22, and is outputted at a constant period (350 μsec) to be described later.
Enter SGT. Then, each time the CPU 24 inputs this timing signal SGT, the count value of each counter of the counter circuits 20 and 21 is calculated.
ECDNX, ECDPX, ECDNY, ECDPY,
Read ECDND, ECDPD, sewing machine motor 3
Find the rotational position of each motor, etc., and calculate the rotational speed of each motor when the timing signal SGT is generated.
Calculate Vd, Vx, Vy, rotational acceleration αd, αx, αy, etc. Readable and rewritable memory (hereinafter referred to as
A RAM 26 stores pattern data as a speed command signal for commanding the amount of rotation of each motor such as the sewing machine motor 3 for pattern sewing to be applied to the work cloth K. As shown in Figure 3, the pattern data includes a start code COST to start sewing and an end code COEN to end sewing, which are stored at the beginning and end. Rotation amount data fdx, fdy of the X-axis and Y-axis pulse motors for moving the work cloth holding frame 6 in the X direction and the Y direction,
Data fdd of the amount of rotation of the sewing machine motor 3 for each stitch (in this embodiment, the amount of rotation is constant from beginning to end) is stored in accordance with the sewing order. Then, the CPU 24 receives the timing signal SGT.
Each time you input the rotation amount data fdx,
Deviation εd between fdy, fdd and rotational speed Vd, Xx, Vy,
Calculate εx, εy and calculate their deviations εd, εx, εy
The rotational speed Vd, Vx, Vy and the rotational speed αd,
Calculate the feedback of αx and αy to calculate the deviation amount.
PWMAD, PWMBD, PWMAX, PWMBX,
It is designed to calculate PWMAY, PWMBY, etc. The three pulse generating circuits 27, 28, and 29 as pulse generating means provided corresponding to each motor such as the sewing machine motor 3 each have three programmable interval timers each having a preset type 16-bit counter, two of which are Trigger signal TG for supplying drive current to the motor
and pulse signals SGXPP, SGXPN, SGYPP, SGYPN, which are output based on the clock signal CK.
Counters 27a, 27b to 29 that output SGMDP and SGMDN by changing their duty ratios
a, 29b, and the other one is used as a clock signal generation circuit (frequency dividing circuit) 27c, 28, respectively.
c, 29c. Counter 27a~
29b is loaded with the deviation amount from the CPU 24, and each time the trigger signal TG is input, the deviation amount is sequentially counted down by the falling edge of the clock signal CK, and when the value reaches zero, it becomes a positive potential (hereinafter referred to as Outputs a pulse signal (H level). Clock signal CK is a pulse oscillator (not shown)
The 2MHz pulse signal SGP1 output from the Y-axis pulse motor is divided into 400KHz by the clock signal generation circuit 28c of the pulse generation circuit 28 corresponding to the Y-axis pulse motor, and is output to each of the counters 27a to 29b. The trigger signal TG converts the clock signal CK into a pulse generating circuit 27 corresponding to the X-axis pulse motor.
The clock signal circuit 27C divides the frequency into 6KHz and outputs it to each of the counters 27a to 29b. Further, in this embodiment, the clock signal generating circuit 29c of the pulse generating circuit 29 provided corresponding to the sewing machine motor 3 is used as a timing signal generating circuit for outputting the timing signal SGT, which is output from a pulse oscillator (not shown). 154KHz
Pulse signal SGP 2 2.8KHz timing signal
The frequency is divided into SGT and output to the CPU 24. Next, a switching circuit that supplies drive current to each motor based on the pulse signals SGXPP to SGMDN output from the pulse generation circuits 27 to 29 will be described. Note that each switching circuit has the same circuit configuration, so
The switching circuit of the sewing machine motor 3 will be explained using the same reference numerals. The pulse signal SGMDP of the counter 29a of the pulse generating circuit 29 is sent to the not circuits 30, 31 and the delay circuit 3.
2 and a NAND circuit 3 via a Schmitt circuit 33.
4, and is also output to an AND circuit 37 via a NOT circuit 30, a delay circuit 35, and a Schmitt circuit 36. Further, the pulse signal SGMDN of the counter 29b is output to the AND circuit 42 via the NOT circuits 38, 39, the delay circuit 40, and the Schmitt circuit 41, and is also output to the NOT circuit 3.
8, is outputted to a NAND circuit 45 via a delay circuit 43 and a Schmitt circuit 44. Then, when an H level output signal is output from the delay circuits 35 and 43, the switching transistor Q 1 of the drive circuit 46 serving as a switching circuit
Of the transistors Q 1 and Q 4 , transistors Q 1 and Q 4 are turned on, a drive current is supplied to the sewing machine motor 3, and the motor 3 is driven in normal rotation. The AND circuits 37, 42 and the NAND circuits 34, 35 are configured to receive a current limiting signal outputted from the drive circuit 46 and a stop signal SGSV for emergency stop of the sewing machine. In addition, the control device of this sewing machine is input/output port 4.
It can be connected to a personal computer via the input/output port 49 and the level converter 50, making it possible to transfer data and control operations from the personal computer.
The machine is connected to the control device of other sewing machines via the machine, so that the machines can control each other's operations. Next, the operation of the control device configured as described above will be explained with reference to a flowchart showing the operation of the CPU 24. First, as shown in FIG. 1, the work cloth K is held by the work cloth holding frame 6 on the sewing machine table 2. When the power switch (not shown) is turned on in this state, the CPU 24 clears each register in the CPU 24 and also clears the counter circuits 20 and 2.
1 and the pulse generation circuits 27 to 29 are initialized. Next, the CPU 24 reads the pattern data from the RAM 26, and moves the drive shaft of each motor such as the sewing machine motor 3 to a predetermined origin position (in the case of the sewing machine motor 3, to a position where the sewing needle 5a exits upward from the workpiece cloth K). After returning to the corresponding rotation position), it waits for the start key 9 to be operated. Start key 9 is pressed and start signal SGST
is input to the CPU 24, the CPU 24 inputs the rotation amount data fdd of the sewing machine motor 3 to the CPU 24.
The data is input to the FDD register and the sewing machine motor 3 is driven based on this data. When the synchronizing signal SGSY is reversed, that is, when the sewing needle 5a descends from the needle top position to the needle bottom position and comes out of the work cloth K again, the second stitch In order to guide the workpiece cloth K to the sewing position, the rotation amount data fdx and fdy of the X-axis and Y-axis pulse motors are input into the FDX register and FDY register of the CPU 24, respectively, and the rotation amount data fdd of the sewing machine motor 3 for the second stitch is input. Input to FDD register. Therefore, based on the rotation amount data fdx, fdy, the X-axis and Y-axis pulse motors rotate, and the work cloth K is moved to a predetermined position via the holding frame 6. Based on the rotation amount data fdd, The sewing machine motor 3 rotates, and the sewing needle 5a moves downward and upward in one cycle, thereby sewing the second stitch. During this time, the CPU 24 counts the number of stitches with its stitch counter, determines whether the data at the next address of the pattern data is the end code COEN, and waits for the synchronization signal SGSY to be inverted. Then, every time the synchronization signal SGSY is inverted,
In other words, each time each stitch is finished,
Rotation amount data for forming the next seam in the same way as above
The fdx, fdy, and fdd are read and sewing is performed based on the same data. And finally the exit code
When COEN is read out, the sewing of the work cloth K is completed and the sewing of the next work cloth K is awaited. Next, the rotation control of each motor for each stitch will be explained in detail based on the rotation amount data fdx, fdy, and fdd for each stitch during the sewing operation. The CPU 24 receives a clock signal from a clock signal generating circuit 29c, which is used as a timing signal generating circuit for the pulse generating circuit 29, while the synchronizing signal SGSY is inverted, that is, when one stitch sewing cycle is completed.
The timing signal SGT, which is output every 350 μs, is input as an interrupt signal. Further, the counters of the counter circuits 20 and 21 sequentially digitally count the rotational position of each motor such as the sewing machine motor 3, and each pulse generating circuit 27
~29 counters 27a, 27b ~ 29a, 2
A 400KHz clock signal CK and a 6KHz trigger signal TG are input to 9b. Now, when the synchronization signal SGSY is inverted and the first timing signal SGT is input to the CPU 24 with each rotation amount data fdx, fdy, fdd input to each register, the CPU 24 receives the X-axis pulse motor from the counter circuit 20. Count value for forward and reverse rotation of
Read ECDPX and ECDNX and find the rotational position θx of the drive shaft in the same motor (=ECDNX - ECDPX)
seek. Next, the CPU 24 determines the current rotational speed Vx (=θx−θx 0 ) of the X-axis motor from the previous rotational position θx 0 , which was previously determined in the same manner as above and temporarily stored in the θx 0 register of the CPU 24 . At the same time, this rotational position θx is stored in the θx 0 register as data of the new previous rotational position θx 0 . When the rotational speed Vx is determined, the CPU 24 uses this speed Vx
is obtained in the same way as above, and Vx 0 of CPU24
Destination rotation speed Vx 0 temporarily stored in register
The rotational acceleration αx (=Vx−Vx 0 ) at that time is calculated from the above, and this rotational speed Vx is stored in the Vx 0 register as data of the new previous rotational speed Vx 0 . When calculating the rotational acceleration αx, the CPU 24 calculates this acceleration αx and the same method as above,
Acceleration increment △αx (=αx
−αx 0 ), and the acceleration αx is stored in the αx 0 register as new data of the previous rotational acceleration αx 0 . The CPU 24 uses the above calculated value and the previous timing signal.
The deviation εx (=εx 0 −Vx−k1αxk2Δαx, k1, k2 are predetermined proportionality constants) is calculated from the deviation εx 0, which will be described later, obtained by SGT. Then the CPU
24 determines whether there is rotation amount data fdx in the FDX register, then subtracts the same data fdx by a predetermined unit rotation amount △fdx to be described later, and the subtracted value (= fdx − △fdx) is new. rotation amount data
Store it in the FDX register as fdx. In addition,
The unit rotation amount △fdx is a digital value to be calculated as a rotation command every time the timing signal SGT is output, and is set in advance corresponding to the rotation amount data fdx for each sewing cycle.
It is stored in the RAM 26 together with the data fdx, read out together with the same data fdx, and input into the ΔFDX register. Note that in this embodiment, all values are set to constant values. Next, the CPU 24 adds the calculated deviation εx and the unit rotation amount △fdx, stores the added value as a new deviation εx 0 (=εx+△fdx) in the εx 0 register, and also adds the deviation amount PWMAX ( =εx 0 +
PWS) and PWMBX (PWS-εx 0 ) are calculated and loaded into each counter 27a, 27b of the pulse generation circuit 27. Here PWS is 6KHz trigger signal TG
is output and the number of 400KHz clock signals CK (≒66) that are output while the next trigger signal TG is output is set to 1/2 (=33). Deviation amount PWMAX in pulse generation circuit 27,
When PWMBX is loaded, the CPU 24 performs the same processing operation as above, calculates the deviation amounts PWMAY and PWMBY for the Y-axis pulse motor, loads them into the pulse generation circuit 28, and calculates the deviation amounts PWMAD and PWMBD for the sewing machine motor. The pulse generation circuit 29 is loaded. Counters 27a and 27b of pulse generation circuit 27
The trigger signal TG is input to the deviation amount PWMAX,
When PWMBX is loaded, each counter 27a,
27b sets its output signals SGXPP and SGXPN to L level, and also sets the deviation amount PWMAX,
PWMBX is counted down every time the clock signal CK is input. When the PWMBX clock signal CK is input, the counter 27b becomes 0 and outputs an H level pulse signal SGXPN. Drive current is supplied to the X-axis pulse motor by the H-level pulse signal SGXPN and the L-level output signal SGXPP, and the pulse motor is driven to rotate in the forward direction. Then, PWMAX clock signal CK
When the counter 27a is inputted, the counter 27a becomes 0 and outputs the H level pulse signal SGXPP. When both pulse signals SGXPP and SGXPN become H level, the supply of drive current to the X-axis pulse motor is stopped. In other words, the deviation amount calculated by the CPU 24
The drive current for normal rotation drive is time-controlled based on pulse signals SGXPP and SGXPN, which have a duty ratio proportional to PWMAX and PWMBX.
Supplied to the shaft pulse motor. And Y-axis pulse motor and sewing machine motor 3
The drive current supply is controlled in the same way. When the next timing signal SGT is input to the CPU 24, the CPU 24 again performs the same arithmetic processing operation as described above. First, the CPU 24 is the counter circuit 2
Read count values ECDPX and ECDNX from 0,
The rotational position θx of the drive shaft of the X-axis pulse motor at that time is determined, and based on this rotational position θx, the rotational speed Vx (=θx−θx 0 ) and rotational acceleration αx (=
Vx − Vx 0 ) and acceleration increment △αx (= αx − αx 0 ), and each calculated value θx, Vx, αx
are stored in each register as new values θx 0 , Vx 0 , αx 0 . Next, the CPU 24 calculates the current deviation εx (=εx 0 −Vx−k1αx−k2Δαx) from the previous deviation εx 0 previously stored in the εx 0 register and these new values Vx, αx, Δαx, A new deviation εx 0 (=εx+Δfdx) is obtained by adding the unit rotation amount Δfxd to the obtained deviation εx.
Then, the CPU 24 generates a new deviation amount PWMAX (=
εx 0 +PWS) and PWMBX (=PWS−εx 0 ) are calculated, and each counter 27a, 2 of the pulse generation circuit 27
7b. Each counter 27a, 27b counts down the loaded deviation amounts PWMAX, PWMBX based on the clock signal CK in response to the trigger signal TG, and the supply of drive current to the X-axis pulse motor is time-controlled. Similarly Y
The supply of drive current to the shaft pulse motor and the sewing machine motor 3 is controlled in the same manner. From then on, rotation amount data fdx is generated every time the timing signal SGT is output until the synchronization signal SGSY is inverted.
is read out for each unit rotation amount Δfdx, the same calculation as above is performed, and the drive current is time-controlled at each time, that is, every 350 μs. In this way, in this embodiment, until the synchronization signal SGSY is inverted, the rotation amount data fdx in that cycle is not all subject to calculation as a rotation command at once, but the timing signal
Each time SGT is output, the unit rotation amount △fdx is subtracted from the same rotation amount data fdx, and the unit rotation amount △fdx is used as the calculation target, and the rotation speed Vx, rotation acceleration αx, and acceleration increment △αx at that time are calculated. Each time a timing signal is input, each value is accumulated, and a deviation εx is obtained from each accumulated value and the rotational speed Vx, rotational acceleration αx, and acceleration increment Δαx at that time. Then, based on this deviation εx, the deviation amount PWMAX at that time,
Find PWMBX and control the drive current supply. Therefore, until the synchronization signal SGSY is inverted, the supply of drive current is controlled so as to respond to the current rotation command determined according to the change in the rotational speed Vx and rotational acceleration αx. Therefore, the rotation of the motor can be controlled efficiently and accurately. Incidentally, as a result of experiments on the sewing machine motor 3, the results shown in Table 1 were obtained. As a result, rotation amount data fdd (=1000), unit rotation amount △fdd (=100)
It can be seen that the sewing machine motor 3 quickly reaches the amount of rotation based on . Furthermore, simply by changing the period of the timing signal SGT, the servo gain can be changed, and the trigger signal TG and clock signal CK can also be easily varied, so motor control can be adjusted programmably. In the above embodiment, the actual speed was detected as a digital value, but it may be detected as an analog value and converted to a digital value at the stage of determining the deviation amount.

【表】 効 果 このように本発明は、速度指令信号と実際の回
転速度との偏差量をデジタルデータとして算出
し、その算出したデータに基づいてパルス列発生
手段によりモータの駆動電流の導通遮断を行うパ
ルス列のデユーテイー比を可変するようにしたの
で、三角波等の発生回路を必要とせず、しかも、
前記パルス列発生手段はCPUに内蔵されるもの、
あるいは他の目的で付けられたタイマーICの流
用で構成することができるので、その構成が簡単
であるのみならず、信頼性を向上させることがで
き、簡単な調整でプログラマブルにPWM周波数
及びサーボゲインを変えることができる。
[Table] Effects As described above, the present invention calculates the amount of deviation between the speed command signal and the actual rotational speed as digital data, and uses the pulse train generation means to conduct or interrupt the drive current of the motor based on the calculated data. Since the duty ratio of the pulse train to be generated is variable, there is no need for a triangular wave generation circuit, and
The pulse train generating means is built in the CPU,
Alternatively, it can be configured by reusing a timer IC installed for other purposes, which not only simplifies the configuration, but also improves reliability, and allows programmable PWM frequency and servo gain with easy adjustment. can be changed.

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

第1図はこの発明を具体化したミシンの斜視
図、第2図はミシンのデジタルサーボ制御装置の
電気ブロツク回路図、第3図はパターンデータの
内容を示す図、第4図はパルス発生回路のタイム
チヤート図、第5図〜第9図はCPUの動作を説
明するフローチヤート図である。 ミシンモータ……3、位置検出器……13、カ
ウンタ回路……20,21、中央処理装置
(CPU)……24、パルス発生回路……27,2
8,29、駆動回路……46。
Fig. 1 is a perspective view of a sewing machine embodying the present invention, Fig. 2 is an electric block circuit diagram of the digital servo control device of the sewing machine, Fig. 3 is a diagram showing the contents of pattern data, and Fig. 4 is a pulse generation circuit. 5 to 9 are flowcharts explaining the operation of the CPU. Sewing machine motor...3, Position detector...13, Counter circuit...20, 21, Central processing unit (CPU)...24, Pulse generator circuit...27,2
8, 29, drive circuit...46.

Claims (1)

【特許請求の範囲】 1 モータ3等の回転速度を指令するための速度
指令信号fdd等と、そのモータ3等の実際の回転
速度を検出する検出回路20,21等からの回転
速度信号Vd等とに関連する偏差量PWMAD等に
応じた電流をモータ3等に供給し、前記速度指令
信号fdd等に基づく所望の回転速度でモータ3等
を回転するようにしてなるモータの速度制御にお
いて、 タイミング信号SGTを発生するタイミング信
号発生回路29cと、 前記タイミング信号SGTの周期よりも短い周
期を有するトリガ信号TGを発生するトリガ信号
発生回路27cと、 前記トリガ信号TGの周期よりも短い周期を有
するクロツク信号CKを発生するクロツク信号発
生回路28cと、 前記タイミング信号SGTが発生する毎に前回
のタイミング信号SGT発生時に起因して算出さ
れた前記偏差量PWMAD等に対して前記回転速
度信号Vd等に応じて補正を行い新たな偏差量
PWMAD等をデジタルデータとして算出する算
出手段24と、 前記タイミング信号SGTの発生に関連して出
力が反転し、前記トリガ信号TGが発生する毎に
前記クロツク信号CKの発生数をカウントし、そ
のカウント数が前記算出手段24の算出結果と対
応する所定値となつたときに関連して再び反転し
て、前記偏差量PWMAD等のデジタルデータと
関連するデユーテイー比を有するパルス列を発生
するパルス列発生手段27,28,29と、 そのパルス列発生手段27,28,29からのパ
ルス列に基づいてモータ3等への供給電流の導通
遮断を行うスイツチング回路46と、 を設けたことを特徴とするモータの速度制御に
おけるPWM制御装置。 2 前記速度指令信号fdd等及び回転速度信号Vd
等は共にデジタル量で表されるものであり、 前記算出手段24は前記タイミング信号SGT
が発生した時デジタル量で表される前記速度指令
信号fdd等及び回転速度信号Vd等を一時的に記憶
する第1の記憶手段24とその算出手段24によ
つて算出された算出結果を一時的に記憶する第2
の記憶手段24を含み、 前記パルス列発生手段27,28,29は前記
第2の記憶手段24にデジタルデータとして記憶
された偏差量PWMAD等の算出結果を前記トリ
ガTGに応答してロードするとともに、その偏差
量PWMAD等の算出結果から同じくデジタルデ
ータとして算出された前記クロツク信号CKの算
出結果を計数し、その計数結果に基づき前記パル
ス列の各パルスのデユーテイー比を変更制御する
カウンタ27a,27b等を含む ことを特徴とする特許請求の範囲第1項に記載の
モータの速度制御におけるPWM制御装置。 3 前記算出手段24は割込み可能なマイクロコ
ンピユータにより構成されており、 前記タイミング信号発生回路29cからのタイ
ミング信号SGTは前記マイクロコンピユータの
割込みトリガ信号として供給され、 前記パルス列発生手段27,28,29は前記
マイクロコンピユータに接続され、再トリガ可能
なワンシヨツトモードを有するプログラマブルカ
ウンタによつて構成されていること、 を特徴とする特許請求の範囲第1項に記載のモー
タの速度制御におけるPWM制御装置。
[Claims] 1. A speed command signal fdd, etc. for commanding the rotational speed of the motor 3, etc., and a rotational speed signal Vd, etc. from the detection circuits 20, 21, etc. that detect the actual rotational speed of the motor 3, etc. In motor speed control, the motor 3, etc. is supplied with a current according to the deviation amount PWMAD, etc. related to the timing, and rotates the motor 3, etc. at a desired rotation speed based on the speed command signal, fdd, etc. A timing signal generation circuit 29c that generates a signal SGT, a trigger signal generation circuit 27c that generates a trigger signal TG having a cycle shorter than the cycle of the timing signal SGT, and a clock having a cycle shorter than the cycle of the trigger signal TG. a clock signal generation circuit 28c that generates a signal CK; and a clock signal generation circuit 28c that generates a signal CK, and each time the timing signal SGT is generated, the deviation amount PWMAD, etc. calculated due to the previous generation of the timing signal SGT is calculated according to the rotational speed signal Vd, etc. to correct the new deviation amount.
a calculation means 24 for calculating PWMAD, etc. as digital data; and counting the number of occurrences of the clock signal CK each time the output is inverted in relation to the generation of the timing signal SGT and the trigger signal TG is generated; pulse train generating means 27 for generating a pulse train having a duty ratio associated with the digital data such as the deviation amount PWMAD by inverting the number again when the number reaches a predetermined value corresponding to the calculation result of the calculating means 24; , 28, 29, and a switching circuit 46 that conducts and cuts off the supply current to the motor 3 etc. based on the pulse train from the pulse train generating means 27, 28, 29. PWM control device in. 2 The speed command signal fdd, etc. and rotational speed signal Vd
etc. are both expressed as digital quantities, and the calculation means 24 calculates the timing signal SGT.
occurs, the first storage means 24 for temporarily storing the speed command signal fdd, etc. and the rotational speed signal Vd, etc. expressed in digital quantities and the calculation results calculated by the calculation means 24 are temporarily stored. 2nd to memorize
The pulse train generating means 27, 28, 29 load the calculation results of the deviation amount PWMAD etc. stored in the second storage means 24 as digital data in response to the trigger TG, and The counters 27a, 27b, etc. count the calculation results of the clock signal CK, which are also calculated as digital data, from the calculation results of the deviation amount PWMAD, etc., and change and control the duty ratio of each pulse of the pulse train based on the counting results. A PWM control device for controlling the speed of a motor according to claim 1. 3. The calculation means 24 is constituted by an interrupt-enabled microcomputer, the timing signal SGT from the timing signal generation circuit 29c is supplied as an interrupt trigger signal for the microcomputer, and the pulse train generation means 27, 28, 29 are 2. The PWM control device for motor speed control according to claim 1, further comprising a programmable counter connected to the microcomputer and having a retriggerable one-shot mode.
JP57198219A 1982-11-11 1982-11-11 Pwm controller in speed control of motor Granted JPS5989590A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57198219A JPS5989590A (en) 1982-11-11 1982-11-11 Pwm controller in speed control of motor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57198219A JPS5989590A (en) 1982-11-11 1982-11-11 Pwm controller in speed control of motor

Publications (2)

Publication Number Publication Date
JPS5989590A JPS5989590A (en) 1984-05-23
JPH0427799B2 true JPH0427799B2 (en) 1992-05-12

Family

ID=16387477

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57198219A Granted JPS5989590A (en) 1982-11-11 1982-11-11 Pwm controller in speed control of motor

Country Status (1)

Country Link
JP (1) JPS5989590A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH088783B2 (en) * 1985-12-13 1996-01-29 キヤノン株式会社 Motor control device
JP2724703B2 (en) * 1985-12-13 1998-03-09 キヤノン株式会社 Motor control device in tape transfer device
JP4802545B2 (en) * 2005-04-21 2011-10-26 ブラザー工業株式会社 Stepping motor drive control device and sewing machine
CN107623468A (en) * 2017-09-29 2018-01-23 深圳市巴丁微电子有限公司 A kind of motor control method and device based on FLL

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56110491A (en) * 1980-02-01 1981-09-01 Inoue Japax Res Inc Controller for driving of motor
JPS56129588A (en) * 1980-03-11 1981-10-09 Olympus Optical Co Ltd Controlling device for motor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56110491A (en) * 1980-02-01 1981-09-01 Inoue Japax Res Inc Controller for driving of motor
JPS56129588A (en) * 1980-03-11 1981-10-09 Olympus Optical Co Ltd Controlling device for motor

Also Published As

Publication number Publication date
JPS5989590A (en) 1984-05-23

Similar Documents

Publication Publication Date Title
US3828168A (en) Controlled velocity drive
US4751442A (en) Servomotor drive control system
KR880000419B1 (en) Method and apparatus for adjusting an installation position of a switch member in a numerical control system
JPH0427799B2 (en)
JPS6220093B2 (en)
US4415967A (en) Multi-axis controller
JPH1046456A (en) Control over motor of knitting machine and apparatus therefor
JPS5987516A (en) Digital servo-control device of motor for positioning object to be driven
JP3783625B2 (en) Control device
JP2833728B2 (en) Control device for automatic sewing machine
JPH0116397Y2 (en)
JPH0693941B2 (en) Cloth feeder for sewing machine
JPS5884309A (en) Pattern generator
JPS59123498A (en) Method for controlling pulse motor of sewing machine
JPS581805B2 (en) Positioning control method
JPS63273114A (en) Constant position stop controller
KR950002404B1 (en) Speed controlling method and apparatus of servomotor
JPH0344506B2 (en)
JPS6171947A (en) Positioning control device
JPS6027314B2 (en) industrial sewing machine control device
JPS59230593A (en) Automatic pattern sewing machine
JPH0627436Y2 (en) Pen head feeder for plotter
KR930004186B1 (en) Four shaft simultaneous potential control device by servo method
JPH04282710A (en) Speed control system
JPS5818852Y2 (en) Sewing machine cloth feed control device