TW201245527A - Control device of sewing machine and sewing machine - Google Patents

Control device of sewing machine and sewing machine Download PDF

Info

Publication number
TW201245527A
TW201245527A TW100143544A TW100143544A TW201245527A TW 201245527 A TW201245527 A TW 201245527A TW 100143544 A TW100143544 A TW 100143544A TW 100143544 A TW100143544 A TW 100143544A TW 201245527 A TW201245527 A TW 201245527A
Authority
TW
Taiwan
Prior art keywords
stepping motor
coil
value
current
gain
Prior art date
Application number
TW100143544A
Other languages
Chinese (zh)
Other versions
TWI541404B (en
Inventor
Akio Inada
Shinya Tsukahara
Original Assignee
Juki Kk
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 Juki Kk filed Critical Juki Kk
Publication of TW201245527A publication Critical patent/TW201245527A/en
Application granted granted Critical
Publication of TWI541404B publication Critical patent/TWI541404B/en

Links

Classifications

    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05BSEWING
    • D05B19/00Programme-controlled sewing machines
    • D05B19/02Sewing machines having electronic memory or microprocessor control unit
    • D05B19/12Sewing machines having electronic memory or microprocessor control unit characterised by control of operation of machine
    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05BSEWING
    • D05B69/00Driving-gear; Control devices
    • D05B69/10Electrical or electromagnetic drives
    • D05B69/12Electrical or electromagnetic drives using rotary electric motors
    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05BSEWING
    • D05B69/00Driving-gear; Control devices
    • D05B69/30Details
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02KDYNAMO-ELECTRIC MACHINES
    • H02K37/00Motors with rotor rotating step by step and without interrupter or commutator driven by the rotor, e.g. stepping motors
    • H02K37/10Motors with rotor rotating step by step and without interrupter or commutator driven by the rotor, e.g. stepping motors of permanent magnet type

Landscapes

  • Engineering & Computer Science (AREA)
  • Textile Engineering (AREA)
  • Mechanical Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Power Engineering (AREA)
  • Control Of Stepping Motors (AREA)
  • Sewing Machines And Sewing (AREA)

Abstract

The invention relates to a control device and a sewing machine provided with the control device. By using the control device, the power consumption of the stepping motor used in the sewing machine can be reduced. The control device (1) of the sewing machine comprises an offset generation part (40), a driving signal generation part (41) and a gain adjustment part (43). The offset generation part can be used to calculate the difference between the current identification value of the steeping motor (30) and the driving current value of the stepping motor, and can be used to generate the current value difference after the generation of the gain of the offset application. The driving signal generation part (41) can be used to generate the driving signal according to the current value. In order to perform the power saving control, the current from the self-induction of the coil (34a,34b) can flow back to the coil, and the when the absolute value of the driving current value can be decreased, compared to the absolute value of the driving current value, which is not necessary to decrease, the gain can be increased.

Description

201245527 六、發明說明: κ韻^明戶斤屬之__老^相牙々貝】 發明領域 本發明係有關於一種控制用於縫紉機之步進馬達之驅 動之控制裝置、及具備控制裝置之縫紉機。 【先前冬好】 發明背景 步進馬達,係作為可準確定位轉軸的角度之電動機而 為人所知’近年來’亦廣泛應用於縫紉機中。步進馬達有 許多種類’已知有二相步進馬達,其係以相互不同的激磁 時序激磁兩個線圈而動作。 作為步進馬達之控制,例如’於專利文獻1中,記載有 一種縫幼機的步進馬達之驅動裝置,其具備Η電橋電路,該 Η電橋電路具有:將步進馬達的線圈的兩端分別連接至電源 裝置的陽極之兩個開關元件、及將上述線圈的兩端分別連 接至地線之兩個開關元件,上述驅動裝置,於上述步進馬 達處於停止狀態時’控制上述開關元件之〇N/〇FF,以藉由 上述線圈之自感應使自該線圈流出之電流回流至該線圈本 身。 [先行技術文獻] [專利文獻] 專利文獻1 :曰本特開2009-095148號公報(0009、0010) t 明内容]j 發明概要 201245527 發明欲解決之課題 於專利文獻1中所記載之技術,由於減少驅動步進馬達 之電流之際,響應性較低,因此,可能產生以下現象:有 多於對於步進馬達之電流指令值之電流流經步進馬達。其 結果為:於專利文獻1中所記載之技術,存在無法充分抑制 電力消耗之虞。本發明係有鑒於上述情況而完成,其目的 在於降低用於縫紉機之步進馬達的電力消耗。 用以欲解決課題之手段 為了解決上述課題,並達成目的,本發明係一種縫紉 機控制裝置,其具有:驅動電路,其具有可將驅動縫紉機 的預定執行裝置之步進馬達的線圈的兩端分別連接至電源 的正極之兩個正極側開關元件、及可將上述線圈的兩端分 別連接至地線之兩個地線側開關元件;及, 控制手段,其控制上述驅動電路; 上述縫紉機控制裝置的特徵在於, 上述控制手段包括: 偏差生成部,其求出對於上述步進馬達之指令值與流 經上述步進馬達之電流的驅動電流值之偏差,生成賦予上 述偏差以預定增益之電流值偏差; 驅動信號生成部,其根據上述電流值偏差生成驅動信 號;及, 增益調整部,於控制上述驅動電路,以藉由上述線圈 之自感應使自上述線圈流出之電流回流至上述線圈本身之 情況下,比較上述驅動電流值的絕對值與上述電流指令值 201245527 的絕對值,調整上述增益。 作為本發明的理想態樣,較佳為,上述增益調整部, 使上述驅動電流值的絕對值不小於上述電流指令值的絕對 值時之上述增益,大於上述驅動電流值的絕對值小於上述 電流指令值的絕對值時之上述增益。 作為本發明的理想態樣,較佳為,上述步進馬達以預 定旋轉速度以τ之旋轉速度,使上述正極側開關元件及上 述地線側Μ元件受到控制,以藉由上述線圈之自感應使 自上述線圈流出之電流回流至上述線圈本身。 作為本發明的理想態樣,較佳為,上述執行裝置1 定位機構,上収位機構,將上料㈣物相對於縫句斜 相對定位,以可落針於待縫製物的任意位置。 為了解決上述課題,並達成目的,本發明,具體而言, 係一種控制驅動縫紉機的預定執行裝置之步進馬達之°么’ 機控制裝置,其特徵在於包括: 、刃 驅動電路’其具有可將上述步進馬達的線圈的兩端分 別連接至電流的正極之兩個正極側開關元件、及可將上2 線圈的兩端分別連接至地線之兩個地線側開關元件;述 控制切換指令控制信號生成部,其生成對於上述步進 馬達之指令值,並且,生成用於執行省電”之控制切換 指令,上述省電控制,驅動上述正極側開關元件及上述地 線側開關元件’以藉由上述線圈之自感應使自上述線圈流 出之電流回流至上述線圈本身; 偏差生成部,其求出對於上述步進馬達之指令值與流 201245527 經上述步進馬達之電流的驅動電流值之偏差,生成賦予上 述偏差以預定增益之電流值偏差; 驅動信號生成部,其根據上述電流值偏差,生成用於 驅動上述步進馬達之驅動信號,並輸入至上述兩個正極側 開關元件及上述兩個地線側開關元件;及, 增益調整部,其於執行上述省電控制之情況下,使上 述驅動電流值的絕對值不小於上述電流指令值的絕對值時 之上述增益,大於上述驅動電流值的絕對值小於上述電流 指令值的絕對值時之增益。 進而,本發明,控制步進馬達的動作,上述步進馬達 驅動定位機構,上述定位機構相對於縫紉針相對定位上述 待縫製物,以可落針於待縫製物的任意位置。 又,本發明,係一種縫紉機,其具有:上述步進馬達, 其驅動預定執行裝置; 驅動電路,其具有可將上述步進馬達的線圈的兩端分 別連接至電源的正極之兩個正極側開關元件、及可將上述 線圈的兩端分別連接至地線之兩個地線側開關元件;及 控制手段,其控制上述驅動電路; 上述縫紉機的特徵在於,上述控制手段包括: 偏差生成部,其求出對於上述步進馬達之指令值與流 經上述步進馬達之電流的驅動電流值之偏差,生成賦予上 述偏差以預定增益之電流值偏差; 驅動信號生成部,其根據上述電流值偏差生成上述驅 動信號;及,201245527 VI. DESCRIPTION OF THE INVENTION: κ 韵 明 明 户 户 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Sewing machine. BACKGROUND OF THE INVENTION A stepping motor is known as an electric motor capable of accurately positioning an angle of a rotating shaft. In recent years, it has been widely used in sewing machines. There are many types of stepping motors. A two-phase stepping motor is known which operates by exciting two coils with mutually different excitation timings. As a control of a stepping motor, for example, Patent Document 1 discloses a driving device for a stepping motor of a slitting machine, which is provided with a Η bridge circuit having a coil of a stepping motor. Two switching elements respectively connected to the anode of the power supply device and two switching elements respectively connecting the two ends of the coil to the ground, and the driving device controls the switch when the stepping motor is in a stop state The element 〇N/〇FF is such that the current flowing from the coil is returned to the coil itself by self-induction of the coil. [PRIOR ART DOCUMENT] [Patent Document] Patent Document 1: JP-A-2009-095148 (0009, 0010) t. Contents] j Summary of Invention 201245527 Problem to be Solved by the Invention Patent Document 1 Since the responsiveness is low when the current of the stepping motor is reduced, a phenomenon may occur in which more current than the current command value for the stepping motor flows through the stepping motor. As a result, in the technique described in Patent Document 1, there is a possibility that the power consumption cannot be sufficiently suppressed. The present invention has been made in view of the above circumstances, and an object thereof is to reduce power consumption of a stepping motor for a sewing machine. Means for Solving the Problems In order to solve the above problems and achieve the object, the present invention is a sewing machine control device having a drive circuit having two ends of a coil of a stepping motor that can drive a predetermined actuator of a sewing machine Two positive-side switching elements connected to the positive pole of the power source; and two ground-side switching elements that can connect the two ends of the coil to the ground respectively; and a control means for controlling the driving circuit; the sewing machine control device The control means includes: a deviation generating unit that obtains a deviation between a command value of the stepping motor and a drive current value of a current flowing through the stepping motor, and generates a current value that gives the deviation to a predetermined gain a driving signal generating unit that generates a driving signal based on the current value deviation; and a gain adjusting unit that controls the driving circuit to cause a current flowing from the coil to be reflowed to the coil itself by self-induction of the coil In the case, comparing the absolute value of the above drive current value with the above current command Adjust the above gain by the absolute value of 201245527. In a preferred aspect of the present invention, the gain adjustment unit preferably causes the gain of the drive current value to be not less than an absolute value of the current command value to be greater than an absolute value of the drive current value to be smaller than the current. The above gain in the absolute value of the command value. According to a preferred aspect of the present invention, preferably, the stepping motor controls the positive electrode side switching element and the ground line side element at a predetermined rotational speed at a rotational speed of τ to self-induced by the coil. The current flowing from the coil is returned to the coil itself. As an ideal aspect of the present invention, it is preferable that the positioning mechanism of the actuator 1 and the upper positioning mechanism relatively position the feeding member (four) relative to the slit sentence so as to be able to drop the needle at any position of the object to be sewn. In order to solve the above problems and achieve the object, the present invention is, in particular, a stepping motor control device for controlling a predetermined actuator for driving a sewing machine, characterized in that it comprises: a blade drive circuit having Two ends of the coil of the stepping motor are respectively connected to two positive side switching elements of the positive pole of the current, and two ground side switching elements that can connect the two ends of the upper two coils to the ground respectively; a command control signal generating unit that generates a command value for the stepping motor and generates a control switching command for performing power saving, wherein the power saving control drives the positive electrode side switching element and the ground line side switching element The current flowing from the coil is returned to the coil itself by self-induction of the coil; the deviation generating unit obtains a driving current value for a command value of the stepping motor and a current of the current stepping motor of the 201245527 Deviation, generating a current value deviation that gives the deviation to a predetermined gain; a drive signal generating unit that is based on the electric a flow value deviation, a drive signal for driving the stepping motor is generated, and input to the two positive electrode side switching elements and the two ground line side switching elements; and a gain adjustment unit that performs the power saving control In the case where the absolute value of the drive current value is not less than the absolute value of the current command value, the gain is greater than a gain when the absolute value of the drive current value is smaller than the absolute value of the current command value. Further, the present invention Controlling the action of the stepping motor, the stepping motor drives the positioning mechanism, and the positioning mechanism relatively positions the object to be sewn with respect to the sewing needle so as to be able to drop the needle at any position of the object to be sewn. Further, the present invention is a sewing machine. The stepping motor has a predetermined driving device, and a driving circuit having two positive-side switching elements that can respectively connect both ends of the coil of the stepping motor to the positive pole of the power source, and the coil can be Two ground-side switching elements respectively connected to the ground line at both ends; and a control means for controlling the above-mentioned driving circuit; In the sewing machine, the control means includes: a deviation generating unit that obtains a deviation between a command value of the stepping motor and a drive current value of a current flowing through the stepping motor, and generates a deviation to give a predetermined gain a current value deviation; a drive signal generating unit that generates the drive signal based on the current value deviation; and

S 6 201245527 增益調整部,於控制上述驅動電路,以藉由上述線圈 之自感應使自上述線圈流出之電流回流至上述線圏本身之 情況下,比較上述驅動電流值的絕對值與上述電流指令值 的絕對值,調整上述增益。 發明效果 本發明,可降低用於縫紉機之步進馬達的電力消耗。 圖式簡單說明 第1圖係繪示步進馬達及本實施方式的縫紉機用步進 馬達控制裝置之略圖。 第2圖係繪示本實施方式的馬達控制裝置的裝置構成 之圖。 第3圖係繪示本實施方式的馬達控制裝置所具有之信 號運算部的構成之說明圖。 第4圖係繪示控制信號的生成方法之說明圖。 第5圖係繪示控制信號的生成方法之說明圖。 第6圖係說明步進馬達的激磁方法之示意圖。 第7圖係繪示驅動步進馬達時之驅動電路的動作之說 明圖。 第7 -1圖繪示第一正極側元件與第二地線側元件處於 ON狀態,第二正極側元件與第一地線側元件處於OFF狀態。 第7 - 2圖繪示第二正極側元件與第一地線側元件處於 ON狀態,第一正極側元件與第二地線側元件處於OFF狀態。 第8圖係繪示流經步進馬達的線圈之電流的變化之示 意圖。 7 201245527 第9圖係繪示流經步進馬達的線圈之電流的變化之示 意圖。 第10圖係繪示流經步進馬達的線圈之電流的變化之示 意圖。 第11圖係用於說明執行省電控制之際,驅動電路的動 作之圖。 第12圖係用於說明執行省電控制之際,驅動電路的動 作之圖。 第13圖係繪示省電控制時,流經步進馬達的線圈之電 流的變化之示意圖。 第14圖係繪示省電控制時,流經步進馬達的線圈之電 流的變化之示意圖。 第15圖係用於說明本實施方式的省電控制中的增益之 設定之概念圖。 第16圖係用於說明本實施方式的省電控制中的增益之 設定之概念圖。 第17圖係繚不本實施方式的省電控制中的驅動電流值 的變化之示意圖。 第18圖係繪示利用馬達控制裝置控制步進馬達的一例 之流程圖。 第I9圖係、會示具備党本實施方式的馬達控制裝置控制 之步進馬達之縫紉機的一例之斜視圖。 第20圖係繪示第19圖所示之_機的定位機構之斜視 201245527 t實施方式】 用以實施發明之形態 於實施本發明之方式(實施方式)中,參照圖式予以詳細 地說明。以下實施方式所記載之内容並非用以限定本發 月又,以下所記載之構成要素,包括熟習此項技術者可 容易設想之内容、實際上相同之内容。進而,可適當組合 以下所記載之構成要素。若本發明係將步進馬達用於χ_γ 方向之驅動之縫幼機,則無論卫業用縫㉗機、家庭用縫幼 機均可適用。 於本實施方式中,步進馬達30,用於驅動縫紉機的定 位機構,但亦可用於驅動縫紉機的其他機構,例如,升降 機構、進給量調整機構等。於本實施方式中,步進馬達3〇 ’ 係所謂的永磁(Permanent Magnet,ρΜ)型二相步進馬達但 並非限定於此。步進馬達3〇,包括:轉軸31、轉子32、定 子33、芯部33a、33b及線圈34a、34b。 轉子32,係連結於步進馬達3〇的轉軸3i,且藉由步進 馬達30的框體可旋轉地設置之圓柱形的構造體。轉子32, 係永久磁石等磁性體。定子33,係設置於轉子32周圍之圓 筒形的磁性材料(例如,鐵)。定子33,具有於該定子33内周 部朝向轉子32突出之芯部33a、33b。線圈34a、34b,係纏 繞至芯部33a、33b之卷線。線圈34a、34b,係藉由流經電 流而被激磁’作為電磁鐵發揮功能。 步進馬達30之動作,係藉由設置於縫紉機主體内或設 置於縫紉機主體外的控制箱之縫紉機控制裝置(以下,視需 201245527 要稱為馬達控制裝置)ι來控制。 馬達控制裝置1包括:控制信號生成部2 ;信號運算部 4 ;及與各個線圈34a、34b相對應之驅動電路6、6。馬達控 制裝置卜生成與符合對步進馬達30的指令旋轉角度之激磁 模式柏對應之驅動信號,並基於該驅動信號,使電流流經 各個線圈34a、34b而將線圈34a、34b激磁。藉此,磁性體 之轉子32將旋轉符合線圈34a、34b之激磁模式之旋轉角 度’並維持上述旋轉角度,直到激磁模式變化為止。 因馬達控制裝置1而流經線圈34a、34b之電流的方向 (於第1圖所示之例中,線圈34a為箭頭A、B所示之方向,線 圈34b為箭頭c、D所示之方向),將因應驅動電路6之驅動而 變化。 以下,說明馬達控制裝置1。 於第2圖中,馬達控制裝置1,係控制步進馬達3〇之裝 置’具體而言,係控制驅動電路6之裝置。 如上所述’馬達控制裝置1包括:控制信號生成部2、 化號運算部4及驅動電路6。又,馬達控制裝置1,具有與第 1圖所示之步進馬達3〇所具有之各個線圈34a、^扑相應數量 的驅動電路6,為便於說明,於以下所示之例中,僅示出一 個驅動電路6。 控制信號生成部2’運算並生成作為用於控制步進馬達 30的動作之指令值之電流指令值。,並發送至信號運算部 4。電流指令值Ic係類比信號。又,控制信號生成部2,生 成用於切換省電控制及其以外的控制之控制切換指令ρι、S 6 201245527 The gain adjustment unit controls the drive circuit to compare the absolute value of the drive current value with the current command when the current flowing from the coil is returned to the coil itself by self-induction of the coil The absolute value of the value is adjusted to adjust the above gain. EFFECT OF THE INVENTION According to the present invention, power consumption of a stepping motor for a sewing machine can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a schematic view showing a stepping motor and a stepping motor control device for a sewing machine according to the present embodiment. Fig. 2 is a view showing the configuration of a device of the motor control device of the present embodiment. Fig. 3 is an explanatory view showing the configuration of a signal calculation unit included in the motor control device of the present embodiment. Fig. 4 is an explanatory diagram showing a method of generating a control signal. Fig. 5 is an explanatory diagram showing a method of generating a control signal. Fig. 6 is a view showing the excitation method of the stepping motor. Fig. 7 is an explanatory view showing the operation of the drive circuit when the stepping motor is driven. The 7-1th figure shows that the first positive electrode side element and the second ground line side element are in an ON state, and the second positive electrode side element and the first ground line side element are in an OFF state. Figs. 7-2 show that the second positive electrode side member and the first ground side member are in an ON state, and the first positive electrode side member and the second ground side member are in an OFF state. Fig. 8 is a diagram showing the change of the current flowing through the coil of the stepping motor. 7 201245527 Figure 9 is a diagram showing the change in current flowing through the coil of the stepper motor. Fig. 10 is a diagram showing the change of the current flowing through the coil of the stepping motor. Fig. 11 is a view for explaining the operation of the drive circuit at the time of performing the power saving control. Fig. 12 is a view for explaining the operation of the driving circuit at the time of performing the power saving control. Fig. 13 is a view showing the change of the current flowing through the coil of the stepping motor when the power saving control is performed. Fig. 14 is a view showing the change of the current flowing through the coil of the stepping motor when the power saving control is performed. Fig. 15 is a conceptual diagram for explaining the setting of the gain in the power saving control of the present embodiment. Fig. 16 is a conceptual diagram for explaining the setting of the gain in the power saving control of the present embodiment. Fig. 17 is a view showing the change of the drive current value in the power saving control of the present embodiment. Fig. 18 is a flow chart showing an example of controlling a stepping motor by a motor control device. Fig. I9 is a perspective view showing an example of a sewing machine including a stepping motor controlled by a motor control device according to the embodiment of the present invention. Fig. 20 is a perspective view showing a positioning mechanism of the machine shown in Fig. 19. 201245527 t. Embodiment Mode for carrying out the invention The embodiment (embodiment) for carrying out the invention will be described in detail with reference to the drawings. The contents described in the following embodiments are not intended to limit the present invention. The constituent elements described below include contents that can be easily conceived by those skilled in the art and actually have the same contents. Further, the constituent elements described below can be combined as appropriate. According to the present invention, the stepping motor can be applied to a slit machine driven by a χ_γ direction, and can be applied regardless of the sewing machine for the sanitary industry or the sewing machine for the household. In the present embodiment, the stepping motor 30 is used to drive the positioning mechanism of the sewing machine, but may be used to drive other mechanisms of the sewing machine, such as a lifting mechanism, a feed amount adjusting mechanism, and the like. In the present embodiment, the stepping motor 3'' is a so-called permanent magnet (ρΜ) type two-phase stepping motor, but is not limited thereto. The stepping motor 3A includes a rotating shaft 31, a rotor 32, a stator 33, core portions 33a and 33b, and coils 34a and 34b. The rotor 32 is a cylindrical structure that is coupled to the rotating shaft 3i of the stepping motor 3A and rotatably provided by the casing of the stepping motor 30. The rotor 32 is a magnetic body such as a permanent magnet. The stator 33 is a cylindrical magnetic material (e.g., iron) disposed around the rotor 32. The stator 33 has core portions 33a and 33b that protrude toward the rotor 32 at the inner circumference of the stator 33. The coils 34a, 34b are wound around the windings of the core portions 33a, 33b. The coils 34a and 34b are excited by the electric current to function as an electromagnet. The operation of the stepping motor 30 is controlled by a sewing machine control device (hereinafter, referred to as 201245527 as a motor control device) provided in a main body of the sewing machine or a control box provided outside the main body of the sewing machine. The motor control device 1 includes a control signal generating unit 2, a signal calculating unit 4, and drive circuits 6 and 6 corresponding to the respective coils 34a and 34b. The motor control device generates a drive signal corresponding to the excitation mode corresponding to the command rotation angle of the stepping motor 30, and based on the drive signal, causes a current to flow through the respective coils 34a and 34b to energize the coils 34a and 34b. Thereby, the rotor 32 of the magnetic body rotates in accordance with the rotation angle ' of the excitation mode of the coils 34a, 34b and maintains the above-described rotation angle until the excitation mode changes. The direction of the current flowing through the coils 34a and 34b by the motor control device 1 (in the example shown in Fig. 1, the coil 34a is in the directions indicated by the arrows A and B, and the coil 34b is in the directions indicated by the arrows c and D). ) will vary depending on the driving of the drive circuit 6. Hereinafter, the motor control device 1 will be described. In Fig. 2, the motor control device 1 is a device for controlling the stepping motor 3'. Specifically, it is a device for controlling the drive circuit 6. As described above, the motor control device 1 includes the control signal generating unit 2, the chemical number calculating unit 4, and the drive circuit 6. Further, the motor control device 1 has a corresponding number of drive circuits 6 corresponding to the respective coils 34a and 36b of the stepping motor 3A shown in Fig. 1, and for convenience of explanation, only the following examples show A drive circuit 6 is provided. The control signal generating unit 2' calculates and generates a current command value as a command value for controlling the operation of the stepping motor 30. And sent to the signal calculation unit 4. The current command value Ic is an analog signal. Further, the control signal generating unit 2 generates a control switching command ρι for switching the power-saving control and other control.

S 10 201245527 P2,並發送至信號運算部4。 省電控制’係控制驅動電路6,以藉由步進馬達30所具 有之線圈34a(34b)之自感應使自線圈34a(34b)流出之電流 回流至線圈34a(34b)本身。亦即,省電控制,係下述控制: 對驅動電路6所具有之正極側開關元件6〇a、6〇c及地線側開 關元件60b、60d進行驅動,以藉由步進馬達3〇所具有之線 圈34a(34b)之自感應使自線圈34a(34b)流出之電流回流至 線圈34a(34b)本身。關於省電控制,以後再詳細介紹。 控制彳s號生成部2 ’例如為中央運算裝置(Central Processing Unit ’ CPU)或微電腦裝置(Micr〇 c〇mputer Unit,MCU)。 控制信號生成部2,藉由執行用於控制步進馬達3〇的動 作之電腦程式,而使步進馬達3〇旋轉、停止,或對步進馬 達30執行上述省電控制。 控制彳5戒生成部2 ’可根據脈波頻率來辨識馬達的旋轉 數’並生成控制切換指令P1、P2,亦可根據計量步進馬達 3〇的旋轉數之未圖示之編碼器的信號來辨識步進馬達刺 旋轉數’並生成控制切換指令Pi、P2。 信號運算部4,基於控制信號生成部2所生成之電流指 令值1C、驅動電流值Id及控制切換指令P1、P2,生成用於驅 動步進馬達3〇之驅動信號Sdl、Sd2。 然後’信號運算部4, 藉由將生成之驅動信號Sdl、S 10 201245527 P2 is sent to the signal calculation unit 4. The power saving control unit controls the drive circuit 6 to recirculate the current flowing from the coil 34a (34b) to the coil 34a (34b) itself by self-induction of the coil 34a (34b) of the stepping motor 30. That is, the power-saving control is controlled by driving the positive-electrode-side switching elements 6a, 6〇c and the ground-side switching elements 60b and 60d of the drive circuit 6 to be driven by the stepping motor 3〇. The self-induction of the coil 34a (34b) has a current flowing from the coil 34a (34b) flowing back to the coil 34a (34b) itself. About power saving control, we will introduce it in detail later. The control 彳s number generation unit 2' is, for example, a central processing unit (CPU) or a microcomputer device (Micr〇 m〇mputer Unit, MCU). The control signal generating unit 2 rotates and stops the stepping motor 3 by executing a computer program for controlling the operation of the stepping motor 3A, or performs the above-described power saving control on the stepping motor 30. The control unit 5 or the generating unit 2' can recognize the number of rotations of the motor based on the pulse wave frequency and generate the control switching commands P1 and P2, and can also calculate the signal of the encoder (not shown) based on the number of rotations of the stepping motor 3〇. To identify the stepping motor spin number ' and generate control switching commands Pi, P2. The signal calculation unit 4 generates drive signals Sd1 and Sd2 for driving the stepping motor 3A based on the current command value 1C generated by the control signal generating unit 2, the drive current value Id, and the control switching commands P1 and P2. Then, the signal computing unit 4, by generating the generated driving signal Sd1,

供給T 34b, 11 201245527 部4的驅動信號Sdl、Sd2 ’經由驅動電路6,控制步進馬達 30 ° 如此一來,於本實施方式中,步進馬達30之驅動包括: 使步進馬達30旋轉、使步進馬達30停止之兩者。 又,驅動信號Sdl、Sd2,係用於對步進馬達30進行脈 波寬度調變(Pulse Width Modulation,PWM)控制之信號。 信號運算部4,係用於實現上述功能之處理裝置(例 如,微電腦),於本實施方式中,使用數位信號處理裝置 (Digital Signal Processor,DSP)。DSP,係特殊化為特定處 理之微處理器。以後再詳細介紹信號運算部4的詳情。 驅動電路6,具有:可將步進馬達30所具有之線圈 34a(34b)的兩端的導電部,分別連接至電源62的正極之兩個 正極側開關元件60a、60c ;及,可將線圈34a(34b)的兩端的 導電部,分別連接至地線63之兩個地線側開關元件6〇b、 60d。 如此一來’驅動電路6係全橋電路。驅動電路6,具有 與各個正極側開關元件60a、60c及各個地線側開關元件 60b、60d並聯之二極體61a、61c、及二極體61b、61d β 二 極體61a、61c及二極體61b、61d,係以使電流可自地線63 流向電源62的正極之方式而被連接。 利用此種構成’來自電源62之電流不會流經二極體 61a、61c及二極體61b、61d,當有與電源62的電流的方向 相反之電流流通時’該電流將流經二極體61a、61c及二極 體61b、61d。如此地構成驅動電路6,使得上述相反方向之The driving signals Sd1, Sd2' of the portion 4 are supplied to the T 34b, 11 201245527, and the stepping motor 30 is controlled via the driving circuit 6. In the present embodiment, the driving of the stepping motor 30 includes: rotating the stepping motor 30 Both the stepping motor 30 are stopped. Further, the drive signals Sd1 and Sd2 are signals for performing pulse width modulation (PWM) control on the stepping motor 30. The signal calculation unit 4 is a processing device (for example, a microcomputer) for realizing the above functions, and in the present embodiment, a digital signal processor (DSP) is used. DSP is a microprocessor that is specialized for a specific process. Details of the signal calculation unit 4 will be described in detail later. The drive circuit 6 has a conductive portion that can connect the both ends of the coil 34a (34b) of the stepping motor 30 to the positive electrode side switching elements 60a, 60c of the positive electrode of the power source 62; and the coil 34a The conductive portions at both ends of (34b) are respectively connected to the two ground line side switching elements 6〇b and 60d of the ground line 63. As a result, the drive circuit 6 is a full bridge circuit. The drive circuit 6 has diodes 61a and 61c and diodes 61b and 61d β diodes 61a and 61c and two poles connected in parallel to the respective positive electrode side switching elements 60a and 60c and the ground line side switching elements 60b and 60d. The bodies 61b and 61d are connected such that current can flow from the ground line 63 to the positive electrode of the power source 62. With such a configuration, the current from the power source 62 does not flow through the diodes 61a, 61c and the diodes 61b, 61d, and when there is a current opposite to the direction of the current of the power source 62, the current will flow through the diode. The bodies 61a and 61c and the diodes 61b and 61d. The drive circuit 6 is configured such that the opposite direction is

S 12 201245527 電流流經二極體61a、61c及二極體61b、61d,藉此,避免 正極側開關元件60a、6〇c及地線側開關元件60b、60d損壞。 亦即’二極體61a、61c及二極體61b、61d,係作為正 極側開關元件6〇a、60c及地線側開關元件60b、60d的保護 電路而發揮功能。 於本實施方式中,正極側開關元件60a、60c及地線側 開關元件60b、60d均為場效電晶體(Field Effect Transistor, FET)。 再者’將驅動信號Sdl輸入至正極側開關元件60a、60c 的閘極’將驅動信號Sd2輸入至地線側開關元件60b、60d 的閘極。再者,正極側開關元件6〇a、6〇c及地線側開關元 件60b、60d並非限定於FET,但由於fet控制閘極電壓,因 此,當步進馬達30中流經大電流時較佳。 正極側開關元件60a與地線側開關元件6〇b串聯。更具 體而s,正極側開關元件60a的汲極與地線側開關元件6〇b 的源極電性連接。同樣地,正極側開關元件6〇c的汲極與地 線側開關元件60d的源極電性連接,藉此使兩者串聯。因 此,線圈34a(34b)的兩端,分別連接至串聯之正極側開關元 件60a與地線側開關元件6〇b之間、及串聯之正極側開關元 件6〇c與地線側開關元件6〇d之間。 以下,根據需要,將正極側開關元件咖稱為第一正極 側元件60a,將正極側開關元件6〇c稱為第二正極側元件 6〇c,將地線側開II元件_稱為第一地線側元件·,將地 線側開關元件60d稱為第二地線側元件6〇d。 13 201245527 於線圈34a(34b)與驅動電路6之間,串聯有電流檢測電 路8a(8b),作為用於檢測流經步進馬達30之電流,更具體而 言,係作為檢測流經線圈34a(34b)之電流之驅動電流檢測手 段。再者’意味著:電流檢測電路8a對應於線圈34a,電流 檢測電路8b對應於線圈34b。 電流檢測電路8a(8b)所檢測之電流值,係流經步進馬達 3〇(更具體而言’係流經線圈34a(34b))並驅動步進馬達30之 電流(驅動電流)值,亦即驅動電流值Id。再者,上述驅動電 流’經電流檢測電路8a(8b)内的分路電阻轉換成電壓並輸 出。 因此,於本實施方式中,以電壓之方式輸出驅動電流 值Id。信號運算部4,用於獲取驅動電流值Id,並生成驅動 信號Sdl、Sd2。 於本實施方式中,馬達控制裝置丨,至少具有信號運算 部4即可,控制信號生成部2與驅動電路6中的至少任一者, 亦可與馬達控制裝置1分開而另行配備。 又,馬達控制裝置1具有控制信號生成部2及信號運算 部4時,如本實施方<,亦可配備其等,料另-個處理裝 置(例如,微電腦)。 又’馬達㈣裝置卜亦可將控制信號生成部2與信號 運算部4合併為一個處理裝置(例如,微電腦),透過上述處 理裝置執行另一個電腦程式,實現各個功能。 以下,更為詳細地說明信號運算部4。 於第3圖中’信號運算部4包括:偏差生成部4〇、驅動S 12 201245527 A current flows through the diodes 61a and 61c and the diodes 61b and 61d, thereby preventing the positive electrode side switching elements 60a and 6〇c and the ground line side switching elements 60b and 60d from being damaged. In other words, the diodes 61a and 61c and the diodes 61b and 61d function as protection circuits for the positive-electrode-side switching elements 6a and 60c and the ground-side switching elements 60b and 60d. In the present embodiment, the positive electrode side switching elements 60a and 60c and the ground line side switching elements 60b and 60d are field effect transistors (FETs). Further, the drive signal Sd1 is input to the gates of the positive electrode side switching elements 60a and 60c, and the drive signal Sd2 is input to the gates of the ground line side switching elements 60b and 60d. Further, the positive electrode side switching elements 6a, 6〇c and the ground line side switching elements 60b and 60d are not limited to the FET, but since the fet controls the gate voltage, it is preferable when a large current flows through the stepping motor 30. . The positive electrode side switching element 60a is connected in series with the ground line side switching element 6〇b. More specifically, the drain of the positive electrode side switching element 60a is electrically connected to the source of the ground side switching element 6〇b. Similarly, the drain of the positive electrode side switching element 6〇c is electrically connected to the source of the ground side switching element 60d, whereby the two are connected in series. Therefore, both ends of the coil 34a (34b) are respectively connected between the positive-electrode-side switching element 60a and the ground-side switching element 6〇b connected in series, and the positive-electrode-side switching element 6〇c and the ground-side switching element 6 connected in series. 〇d between. Hereinafter, the positive electrode side switching element will be referred to as a first positive electrode side element 60a, the positive electrode side switching element 6〇c will be referred to as a second positive electrode side element 6〇c, and the ground side open type II element will be referred to as a One ground side element, the ground side switching element 60d is referred to as a second ground side element 6〇d. 13 201245527 A current detecting circuit 8a (8b) is connected in series between the coil 34a (34b) and the driving circuit 6 as a current for detecting the flow through the stepping motor 30, more specifically as a detecting flow through the coil 34a. The driving current detecting means of the current of (34b). Furthermore, it means that the current detecting circuit 8a corresponds to the coil 34a, and the current detecting circuit 8b corresponds to the coil 34b. The current value detected by the current detecting circuit 8a (8b) flows through the stepping motor 3 (more specifically, 'flows through the coil 34a (34b)) and drives the current (drive current) value of the stepping motor 30, That is, the driving current value Id. Further, the drive current ' is converted into a voltage by the shunt resistor in the current detecting circuit 8a (8b) and output. Therefore, in the present embodiment, the drive current value Id is outputted as a voltage. The signal calculation unit 4 is configured to acquire the drive current value Id and generate drive signals Sd1 and Sd2. In the present embodiment, the motor control unit 即可 has at least the signal calculation unit 4, and at least one of the control signal generation unit 2 and the drive circuit 6 may be separately provided separately from the motor control unit 1. Further, when the motor control device 1 includes the control signal generating unit 2 and the signal computing unit 4, as in the present embodiment, it may be provided with another processing device (for example, a microcomputer). Further, the motor (four) device can also combine the control signal generating unit 2 and the signal calculating unit 4 into one processing device (for example, a microcomputer), and execute another computer program through the processing device to realize each function. Hereinafter, the signal calculation unit 4 will be described in more detail. In the third diagram, the signal calculation unit 4 includes a deviation generation unit 4A and a drive.

S 14 201245527 信號生成部41、三角波產生部42及增益調整部43。 又’信號運算部4,具有輸出部44,上述輸出部44對驅 動信號生成部41所生成之驅動信號Sd進行加工,使其成為 發送至驅動電路6之驅動信號Sd卜Sd2。藉此,信號運算部 4,具有用於控制可驅動步進馬達30之電流之A/D轉換功能 及PWM控制功能。 偏差生成部40,求出偏差d(=Ic-Id),生成電流值偏差 D(=dxG),上述偏差(1 ’係第2圖所示之控制信號生成部2所 生成之對於步進馬達30之電流指令值Ic、與流經步進馬達 3〇之驅動電流值Id間之偏差;上述電流值偏差〇,係將增益 調整部43所生成之預定增益G賦予至偏差d者。 驅動信號生成部41,根據電流值偏差D,生成用於驅動 步進馬達30之驅動信號sd。此時,驅動信號生成部41,利 用三角波產生部42所產生之三角波Vt生成驅動信號Sd。增 ,係電流值偏差D的加權。G越大,PWM信號之ON負 載之變化越大,電流響應性將提高,但是過大,於電流 變化之際,將產生過衝,電流變得不穩定。因此,需要使〇 為適當的值。 於本實施方式中,配備大小不同的2種增益,於執行上 述省電控制之情形下,當需要降低流經步進馬達30之電流 時,所使用之增益大於其他情況所使用之增益。 以下,說明驅動信號Sd之生成方法的—例。 於第4圖、第5圖中,三角波產生部们產生三角波 驅動信號生成部4卜比較三角波Vt與電流值偏差D,當 15 201245527S 14 201245527 Signal generation unit 41, triangular wave generation unit 42, and gain adjustment unit 43. Further, the signal calculation unit 4 includes an output unit 44 that processes the drive signal Sd generated by the drive signal generating unit 41 to be a drive signal Sd Sd2 that is sent to the drive circuit 6. Thereby, the signal calculation unit 4 has an A/D conversion function and a PWM control function for controlling the current that can drive the stepping motor 30. The deviation generation unit 40 obtains the deviation d (=Ic-Id) and generates a current value deviation D (=dxG) which is generated by the control signal generation unit 2 shown in FIG. 2 for the stepping motor. The deviation between the current command value Ic of 30 and the drive current value Id flowing through the stepping motor 3〇; and the deviation of the current value 〇 is given to the deviation d by the predetermined gain G generated by the gain adjustment unit 43. The generating unit 41 generates a driving signal sd for driving the stepping motor 30 based on the current value deviation D. At this time, the driving signal generating unit 41 generates a driving signal Sd by using the triangular wave Vt generated by the triangular wave generating unit 42. The weighting of the current value deviation D. The larger the G, the larger the change of the ON load of the PWM signal, the higher the current responsiveness will be, but if it is too large, the overshoot will occur and the current will become unstable when the current changes. Therefore, it is necessary In the present embodiment, two types of gains having different sizes are provided, and in the case where the above-described power saving control is performed, when the current flowing through the stepping motor 30 needs to be reduced, the gain used is greater than other Used by the situation . Benefits hereinafter described method for generating a drive signal Sd - The embodiment in FIG. 4, FIG. 5, the triangular wave generating portion are generating a triangular wave drive signal generating section 4 Bu Comparative triangular wave Vt and the current value of deviation D, as 15201245527.

Vt<D時’生成ON信號(時間tl至t2),當Vt>D時,生成OFF 信號(時間t2至t3)。如此所得之on信號與off信號組合而成 之ΟΝ/OFF信號,係驅動信號sd。三角波Vt的一個週期相當 於驅動信號Sd的一個週期。 由第4圖、第5圖可知’若電流值偏差d變大,驅動信號 Sd的一個週期中的on時間將會變長,若電流值偏差D變 小,驅動信號Sd的一個週期中的OFF時間將會變長。當驅 動信號Sd為ON信號時,電流流入步進馬達3〇,當驅動信號 Sd為OFF信號時,電流不流入步進馬達3〇。而且,驅動信 號Sd的ON時間越長,流入步進馬達30之電流越多。如此一 來,驅動信號Sd,透過ON時間的長度(時間tl與t2之間的間 隔,稱為脈波寬度),改變流經步進馬達30之電流的大小。 基於驅動信號Sd的脈波寬度,改變流經步進馬達3〇之電流 的大小之控制,係PWM控制。 於控制驅動電路6而藉由線圈34a(34b)之自感應使自線 圈34a(34b)流出之電流回流至線圈34a(34b)本身之情形 下,增益調整部43在需要減少驅動電流值Id的絕對值時, 使增益G大於無需減少驅動電流值Id的絕對值時之增益G。 亦即,於執行上述省電控制時,增益調整部43,在驅 動電流值Id的絕對值為電流指令值Ic的絕對值以上時,使增 益G大於驅動電流值id的絕對值小於電流指令值Ic的絕對 值時之增益G。 輸出部44 ’獲取驅動信號生成部41所生成之驅動信號 Sd,輸出至驅動電路6。輸出部44包括:第一反轉部45、第When Vt < D, an ON signal is generated (time t1 to t2), and when Vt > D, an OFF signal (time t2 to t3) is generated. The ΟΝ/OFF signal obtained by combining the on signal and the off signal thus obtained is the drive signal sd. One cycle of the triangular wave Vt is equivalent to one cycle of the drive signal Sd. As can be seen from Fig. 4 and Fig. 5, "If the current value deviation d becomes large, the on time in one cycle of the drive signal Sd becomes longer, and if the current value deviation D becomes smaller, the drive signal Sd is OFF in one cycle. The time will be longer. When the drive signal Sd is an ON signal, current flows into the stepping motor 3'', and when the drive signal Sd is OFF, the current does not flow into the stepping motor 3''. Moreover, the longer the ON time of the drive signal Sd, the more current flows into the stepping motor 30. In this manner, the drive signal Sd is transmitted through the length of the ON time (the interval between the times t1 and t2, referred to as the pulse width), and the magnitude of the current flowing through the stepping motor 30 is changed. Based on the pulse width of the drive signal Sd, the control of the magnitude of the current flowing through the stepping motor 3〇 is controlled by PWM. In the case where the driving circuit 6 is controlled to self-induced the current flowing from the coil 34a (34b) to the coil 34a (34b) itself, the gain adjusting portion 43 needs to reduce the driving current value Id. In the absolute value, the gain G is made larger than the gain G when it is not necessary to reduce the absolute value of the drive current value Id. In other words, when the power saving control is executed, the gain adjustment unit 43 causes the gain G to be larger than the absolute value of the drive current value id to be smaller than the current command value when the absolute value of the drive current value Id is equal to or greater than the absolute value of the current command value Ic. The gain G of the absolute value of Ic. The output unit 44' acquires the drive signal Sd generated by the drive signal generating unit 41, and outputs it to the drive circuit 6. The output unit 44 includes: a first inversion unit 45, and a

S 16 201245527 一邏輯積運算部46、第二邏輯積運算部47、第二反轉部48、 及第二反轉部49。 第〜邏輯積運算部46,得以輸入由第2圖所示之控制作 號生成邹2所發出之控制切換指令pi及驅動信號Sd,並輪出 兩者之邏輯積,作為驅動信號Sdl。 第二邏輯積運算部47,得以輸入由控制信號生成部2所 發出之控制切換指令P 2及通過第一反轉部4 5之驅動信號 Sd ’並輪出兩者之邏輯積,作為驅動信號Sd2。再者,藉由 第一反轉部45,驅動信號Sd得以反轉。 以下,為便於說明,根據需要,將驅動信號Sdl稱為第 1驅動信號Sdl ’將驅動信號Sd2稱為第2驅動信號Sd2。第1 驅動信號Sdl等於驅動信號Sd’第2驅動信號Sd2等於由驅動 信號Sd反轉而成之信號。 第一邏輯積運算部46所輸出之第1驅動信號Sdl,直接 輸入至第一正極側元件6〇a的閘極,並且,通過第二反轉部 48後’輸入至第一地線側元件60b的閘極。第二邏輯積運算 部47所輸出之第2驅動信號Sd2,直接輸入至第二正極側元 件60c的閘極,並且,通過第三反轉部49後,輸入至第二地 線側元件60d的閘極。 如此一來,向第一正極側元件60a的閘極’輸入第1驅 動信號Sdl,向第二正極側元件60c的閘極,輸入第2驅動信 號Sd2。輸入至第一地線側元件60b的閘極之信號,係第二 反轉部48將第1驅動信號Sdl反轉後所輸出之信號,因此, 為第2驅動信號Sd2。 17 201245527 又,輸入至第二地線側元件60d的閘極之信號,係第一 反轉部45將驅動信號Sd反轉之信號,亦即第三反轉部49將 第2驅動信號Sd2再次反轉後所輸出之信號,因此,為驅動 信號Sd,亦即第1驅動信號Sdl。如此一來,第一正極側元 件60a及第二地線側元件60d由第1驅動信號Sdl驅動,第二 正極側元件60c及第一地線侧元件60b由第2驅動信號Sd2驅 動0 如上所述,信號運算部4的構成部包括:偏差生成部 40、驅動信號生成部41、三角波產生部42、增益調整部43 及輸出部44。 信號運算部4 ’藉由執行容納於其自身的記憶部之電腦 程式,實現該等構成部的功能。亦即,信號運算部4,係利 用軟體來實現自身的功能。因此,若將上述電腦程式暗碼 化’則難以解析信號運算部4的功能,因此,可減少不正當 改造之虞。 又’當改變步進馬達30的規格及作為步進馬達3〇的適 用對象之縫紉機的規格等時,僅需重寫與之相應之電腦程 式,即可適用同一信號運算部4,因此,利便性得以提言 於第6圖中,第1圖所示之二相雙極型步進馬達%, 有兩個線圈34a' 34b。存在幾種向步進馬達3〇的線圈μ/、 34b中供給電流之方法(激磁方法),例如, __ w钓一一相混合 激磁方式之方法,其係交互切換A相(線圈34幻與8相(線 34b)並流入電流之方法。此方法具有以下優點:冗 "· 比較一 相激磁及二相激磁,並將步進角減半,因此, 進行平穩 18 201245527 旋轉。 於一二相混合激磁之情形下,流入各個線圏34a、34b 電之、且&,如第6圖所示,為〇至7之八個模式。依照步 M 1 2 3、4、5、6、7中的組合之順序對線圈34a、34b 激磁’切換流入各個線圈34a、34b之電流,藉此,步進馬 達30旋轉。 以下,針對A相,亦即線圈34a,說明第7圖至第1〇圖中 的驅動電路6之動作。 於第6圖的步驟〇、1、2中,流入線圈34a之電流,向第 7-1圖的箭頭E方向(自電源62的正極朝向地線63之方向,以 下,疋義為+方向)流動。此時,第一正極側元件60a與第 二地線側元件60d反覆ON/OFF,控制流入線圈34a之驅動電 流值Id。則’如第8圖的on部分所示,流經線圈34a之驅動 電流值Id增加。 當第一正極側元件60a與第二地線側元件6〇d為OFF 時’通過第二地線側元件6〇b的二極體61b、線圈34a及第一 正極側元件60c的二極體61c,電流以返回至電源62之方向 流動(第7-2圖的箭頭F所示之方向)。其原因在於:第一正極 側元件60a與第二地線側元件60d為OFF時,線圈34a將藉由 自感應,欲使電流流向先前流動之方向。此時,為了抑制 二極體61b、61c發熱,將第二地線側元件60b及第一正極側 元件60c控制為ON。則,如第8圖的OFF部分所示,流經線 圈34a之驅動電流值Id減少。 於第6圖所示之步驟3、步驟7中,電流指令值Ic為〇 A(安 19 201245527 培)。其意味著,驅動電流值Id為〇 a(安培)。此時,為了使 線圈34a的電流交互向+方向及其相反方向(―方向)流動,將 第一正極側元件60a與第二地線側元件6〇d、第二正極側元 件60c與第一地線側元件6〇b設定為〇n/〇FF(請參照第9 圖)。其結果為:流經線圈34a之電流的平均值為〇A,因此, 驅動電流值Id為Ο A。於第6圖所示之步驟4、5、ό中,流經 線圈34a之電流的方向為—方向(請參照第1〇圖)。 §流經線圈34a之電流的梯度為正時,第一正極側元件 60a及第二地線側元件60d為ON(第7-1圖)。又,當流經線圈 34a之電流的傾向為負時,第二正極側元件60c及第一地線 側元件60b為ON(第7-2圖)。 上述梯度,取決於線圈34a上所加之電壓,由於此電壓 係電源62的電壓(電源電壓)Vcc,因此,上述傾向其大小大 致相同(第8圖至第9圖)。上述梯度所導致之電流變化程度, 與電流指令值Ic的大小無關,而為大致相同,可能導致鐵 損。亦即’為了抑制步進馬達30發熱,於步進馬達30停止 中’即便減小流經線圈34a、34b之電流,可降低此電流所 引起之銅損,但無法降低鐵損。因而,藉由上述省電控制, 抑制步進馬達30發熱。 為方便起見,將抑制步進馬達30發熱之控制稱為省電 控制。於第11圖至第14圖中,說明省電控制。省電控制, 係藉由第2圖、第3圖所示之控制信號生成部2,將控制切換 指令PI、P2供給至信號運算部4而執行。 再者’當步進馬達30停止時,實施省電控制,此外,S 16 201245527 A logical product calculation unit 46, a second logical product calculation unit 47, a second inversion unit 48, and a second inversion unit 49. The first logical product calculation unit 46 inputs the control switching command pi and the drive signal Sd issued by the control signal shown in Fig. 2, and rotates the logical product of the two as the drive signal Sd1. The second logical product calculation unit 47 receives the control switching command P 2 issued by the control signal generating unit 2 and the drive signal Sd′ passing through the first inverting unit 45 and rotates the logical product of the two as a drive signal. Sd2. Further, the drive signal Sd is inverted by the first inverting portion 45. Hereinafter, for convenience of explanation, the drive signal Sd1 will be referred to as a first drive signal Sd1' and the drive signal Sd2 will be referred to as a second drive signal Sd2 as needed. The first drive signal Sd1 is equal to the drive signal Sd' and the second drive signal Sd2 is equal to the signal inverted by the drive signal Sd. The first drive signal Sd1 outputted by the first logical product calculation unit 46 is directly input to the gate of the first positive electrode side element 6a, and is input to the first ground line side element through the second inversion portion 48. The gate of 60b. The second drive signal Sd2 output from the second logical product calculation unit 47 is directly input to the gate of the second positive electrode side element 60c, and passes through the third inversion unit 49, and is input to the second ground line side element 60d. Gate. In this manner, the first driving signal Sd1 is input to the gate of the first positive electrode side element 60a, and the second driving signal Sd2 is input to the gate of the second positive electrode side element 60c. The signal input to the gate of the first ground line element 60b is a signal that the second inverting unit 48 inverts and outputs the first drive signal Sd1, and thus is the second drive signal Sd2. 17 201245527 The signal input to the gate of the second ground line side element 60d is a signal in which the first inverting unit 45 inverts the drive signal Sd, that is, the third inversion unit 49 turns the second drive signal Sd2 again. The signal output after the inversion is therefore the drive signal Sd, that is, the first drive signal Sd1. As a result, the first positive electrode side element 60a and the second ground line side element 60d are driven by the first drive signal Sd1, and the second positive electrode side element 60c and the first ground line side element 60b are driven by the second drive signal Sd2. The components of the signal calculation unit 4 include a deviation generation unit 40, a drive signal generation unit 41, a triangular wave generation unit 42, a gain adjustment unit 43, and an output unit 44. The signal calculation unit 4' realizes the functions of the components by executing a computer program stored in its own memory unit. That is, the signal calculation unit 4 uses the software to realize its own function. Therefore, if the computer program is ciphered, it is difficult to analyze the function of the signal computing unit 4, so that the tampering can be reduced. In addition, when the specifications of the stepping motor 30 and the specifications of the sewing machine to be applied to the stepping motor 3 are changed, the same signal computing unit 4 can be applied only by rewriting the corresponding computer program. The nature can be referred to in Fig. 6, the two-phase bipolar stepping motor % shown in Fig. 1 has two coils 34a' 34b. There are several methods of supplying current to the coils μ/, 34b of the stepping motor 3 (excitation method), for example, a method of __w fishing one-phase hybrid excitation, which alternately switches phase A (coil 34 illusion 8 phase (line 34b) and current flow method. This method has the following advantages: redundant " Compare one-phase excitation and two-phase excitation, and halve the step angle, therefore, perform a smooth 18 201245527 rotation. In the case of phase-mixed excitation, the currents flowing into the respective turns 34a, 34b and & as shown in Fig. 6, are the eight modes of 〇 to 7. According to steps M 1 2 3, 4, 5, 6, The order of the combination in 7 excites the coils 34a and 34b to switch the current flowing into the respective coils 34a and 34b, whereby the stepping motor 30 rotates. Hereinafter, the seventh phase to the first phase, that is, the coil 34a, will be described. The operation of the drive circuit 6 in the figure. In the steps 〇, 1, and 2 of Fig. 6, the current flowing into the coil 34a is in the direction of the arrow E in the 7-1th direction (from the positive electrode of the power source 62 toward the ground line 63). The direction, hereinafter, the + meaning is + direction) flows. At this time, the first positive electrode side member 60a and the second The line side element 60d is turned ON/OFF repeatedly, and the drive current value Id of the inflow coil 34a is controlled. Then, as shown by the on portion of Fig. 8, the drive current value Id flowing through the coil 34a is increased. When the first positive side element 60a is When the second ground side element 6〇d is OFF, the current is returned to the power source 62 through the diode 61b of the second ground side element 6〇b, the coil 34a, and the diode 61c of the first positive side element 60c. The direction flows (the direction indicated by the arrow F in Fig. 7-2). The reason is that when the first positive electrode side element 60a and the second ground side element 60d are OFF, the coil 34a will be self-induced, The current flows in the direction of the previous flow. At this time, in order to suppress the heat generation of the diodes 61b and 61c, the second ground line side element 60b and the first positive electrode side element 60c are controlled to be ON, as shown in the OFF portion of Fig. 8. The driving current value Id flowing through the coil 34a is decreased. In the steps 3 and 7 shown in Fig. 6, the current command value Ic is 〇A (An 19 201245527 培). This means that the driving current value Id is 〇 a (amperes). At this time, in order to make the current of the coil 34a interact in the + direction and in the opposite direction ( The first positive electrode side element 60a and the second ground side element 6〇d, the second positive electrode side element 60c, and the first ground line side element 6〇b are set to 〇n/〇FF (please refer to the ninth) The result is that the average value of the current flowing through the coil 34a is 〇A, and therefore, the driving current value Id is Ο A. In the steps 4, 5, and ό shown in Fig. 6, the coil 34a flows through The direction of the current is the direction (refer to Fig. 1). § When the gradient of the current flowing through the coil 34a is positive, the first positive electrode side element 60a and the second ground side element 60d are turned ON (Fig. 7-1) ). When the tendency of the current flowing through the coil 34a is negative, the second positive electrode side element 60c and the first ground side element 60b are turned ON (Fig. 7-2). The above gradient depends on the voltage applied to the coil 34a. Since this voltage is the voltage (supply voltage) Vcc of the power source 62, the above tendency is substantially the same (Figs. 8 to 9). The degree of current change caused by the above gradient is substantially the same as the magnitude of the current command value Ic, which may cause iron loss. That is, in order to suppress the heat generation of the stepping motor 30, the stepping motor 30 is stopped. Even if the current flowing through the coils 34a and 34b is reduced, the copper loss caused by the current can be reduced, but the iron loss cannot be reduced. Therefore, the above-described power saving control suppresses the heating of the stepping motor 30. For the sake of convenience, the control for suppressing the heat generation of the stepping motor 30 is referred to as power saving control. In the eleventh through fourteenth drawings, the power saving control will be described. In the power-saving control, the control signal generating unit 2 shown in Figs. 2 and 3 supplies the control switching commands PI and P2 to the signal computing unit 4 for execution. Furthermore, when the stepping motor 30 is stopped, power saving control is implemented, and

20 S 201245527 當步進馬達30低速旋轉時’具體而言,當步進馬達30的旋 轉數為200 rpm以下或300 rpm以下時’亦可實施省電控制。 於不執行省電控制之情形下,亦即,當步進馬達30常 規旋轉時,控制切換指令PI ' P2均為1。因此,輸入至第3 圖所示之第一邏輯積運算部46之控制切換指令pi及輸入至 第二邏輯積運算部47之控制切換指令P2均為1。其結果為, 第一邏輯積運算部46及第二邏輯積運算部47,直接輸出控 制切換指令PI、P2以外之輸入。具體而言,第一邏輯積運 算部46將驅動信號Sd作為第1驅動信號Sdl輸出,第二邏輯 積運算部47輸出由驅動信號Sd反轉而成之第2驅動信號 Sd2。因此,驅動電路6的各個元件,藉由第1驅動信號Sdl 及第2驅動信號Sd2,反覆ΟΝ/OFF。 如第7-1圖所示’當第一正極側元件6〇a及第二地線側 元件60d為ON,第二正極側元件60c及第一地線側元件60b 為OFF時’於線圈34a(34b)中,以第7-1圖的箭頭E所示之方 向流經電流。 又,如第7-2圖所示,當第二正極側元件6〇c及第一地 線側元件60b為ON,第一正極側元件60a及第二地線側元件 60d為OFF時,流經線圈34a(34b)之電流,如箭頭F所示,自 地線63流向電源62的正極。 以下’說明省電控制。省電控制,例如,是在當步進 馬達30停止中或低速旋轉時進行。進行省電控制時,若流 經線圈34a(34b)之電流為+方向,第2圖所示之控制信號生成 部2,則生成控制切換指令P1 = 1、p2=〇。又,若流經線圈 21 201245527 34a(34b)之電流為一方向,第2圖所示之控制信號生成部2, 則生成控制切換指令P1=0、P2=b又,若流經線圈34a(34b) 之電流為0 A,第2圖所示之控制信號生成部2,則生成控制 切換指令P1=0、P2=0。 第11圖、第12圖,繪示於省電控制中,流經線圈34a(34b) 之電流為+方向之情形。此時,由於Pl = l、P2=0,因此, 第3圖的第一邏輯積運算部46輸出第1驅動信號Sdl,第二邏 輯積運算部47輸出〇。因此’於省電控制中,若流經線圈 34a(34b)之電流為+方向,則第一正極側元件6〇a及第一地線 側元件60b反覆ON/OFF,第二正極側元件6〇c一般為〇ff, 第二地線側元件60d—般為ON。再者,當第一正極側元件 60a為ON時’第一地線側元件6〇b為off,當第一正極側元 件60a為OFF時,第一地線側元件6〇b為on。 如第11圖所示,於省電控制中,當第一正極側元件6〇a 為ON ’第二地線側元件60d為ON時,流經線圈34a(34b)之 電流’朝向第11圖的箭頭E所示之方向流動。當第一正極側 元件60a為OFF,第一地線側元件6〇b為on時,第二正極側 元件60c為OFF,第二地線側元件6〇d為〇N。 因此,如第12圖所示,藉由自感應而自線圈34a(34b) 流出之電流,不會通過第二正極側元件60(;的二極體61c返 回至電源62,係通過第一地線側元件6〇b及第二地線側元件 60d回流至線圈34a(34b)本身(第η圖的箭頭G所示之方向)。 此時’由於並未加有妨礙線圈34a(34b)電流之流動之反 向電壓,因此,電流之減少,如第丨3圖所示,變得非常平 2220 S 201245527 When the stepping motor 30 rotates at a low speed ‘Specifically, when the number of rotations of the stepping motor 30 is 200 rpm or less or 300 rpm or less, the power saving control can be performed. In the case where the power saving control is not performed, that is, when the stepping motor 30 is normally rotated, the control switching command PI 'P2 is 1 . Therefore, the control switching command pi input to the first logical product calculating unit 46 shown in Fig. 3 and the control switching command P2 input to the second logical product calculating unit 47 are both 1. As a result, the first logical product calculation unit 46 and the second logical product calculation unit 47 directly output inputs other than the control switching commands PI and P2. Specifically, the first logical product operation unit 46 outputs the drive signal Sd as the first drive signal Sd1, and the second logical product calculation unit 47 outputs the second drive signal Sd2 inverted by the drive signal Sd. Therefore, each element of the drive circuit 6 is repeatedly turned OFF/OFF by the first drive signal Sd1 and the second drive signal Sd2. As shown in Fig. 7-1, when the first positive electrode side element 6a and the second ground side element 60d are ON, and the second positive electrode side element 60c and the first ground side element 60b are OFF, the coil 34a is turned on. In (34b), a current flows in a direction indicated by an arrow E in Fig. 7-1. Further, as shown in FIG. 7-2, when the second positive electrode side element 6〇c and the first ground line side element 60b are ON, and the first positive electrode side element 60a and the second ground line side element 60d are OFF, the flow The current through the coil 34a (34b) flows from the ground line 63 to the anode of the power source 62 as indicated by the arrow F. The following 'Describes power saving control. The power saving control is performed, for example, when the stepping motor 30 is stopped or rotated at a low speed. When the power saving control is performed, if the current flowing through the coil 34a (34b) is in the + direction, and the control signal generating unit 2 shown in Fig. 2 generates the control switching command P1 = 1 and p2 = 〇. Further, when the current flowing through the coil 21 201245527 34a (34b) is one direction, the control signal generating unit 2 shown in Fig. 2 generates the control switching command P1 = 0, P2 = b, and flows through the coil 34a ( The current of 34b) is 0 A, and the control signal generation unit 2 shown in Fig. 2 generates control switching commands P1 = 0 and P2 = 0. Fig. 11 and Fig. 12 are diagrams showing the case where the current flowing through the coil 34a (34b) is in the + direction in the power saving control. At this time, since Pl = l and P2 = 0, the first logical product calculation unit 46 of Fig. 3 outputs the first drive signal Sd1, and the second logical product calculation unit 47 outputs 〇. Therefore, in the power saving control, if the current flowing through the coil 34a (34b) is in the + direction, the first positive electrode side element 6a and the first ground side element 60b are turned ON/OFF, and the second positive electrode side element 6 〇c is generally 〇ff, and the second ground side element 60d is normally ON. Further, when the first positive electrode side element 60a is ON, the first ground line side element 6〇b is off, and when the first positive electrode side element 60a is OFF, the first ground line side element 6〇b is on. As shown in Fig. 11, in the power saving control, when the first positive electrode side element 6a is ON, and the second ground side element 60d is ON, the current flowing through the coil 34a (34b) is directed to Fig. 11 The direction indicated by the arrow E flows. When the first positive electrode side element 60a is OFF and the first ground side element 6?b is on, the second positive electrode side element 60c is OFF, and the second ground line side element 6?d is 〇N. Therefore, as shown in Fig. 12, the current flowing from the coil 34a (34b) by self-induction does not pass through the second positive electrode side member 60 (; the diode 61c returns to the power source 62, passes through the first ground The line side element 6〇b and the second ground line side element 60d are reflowed to the coil 34a (34b) itself (the direction indicated by the arrow G in the nth diagram). At this time, 'the current is not hindered by the coil 34a (34b) The reverse voltage of the flow, therefore, the decrease in current, as shown in Fig. 3, becomes very flat 22

S 201245527 穩。 其結果為’流經線圈34a(34b)之電流的變化程度(電流 波動),與第9圖所示之情形相比較,其變化非常小。結果, 省電控制’具有可降低步進馬達3〇之鐵損所引起之發熱之 效果。而且,冒步進馬達3〇停止或低速旋轉時,藉由流經 步進馬達30之電流於一定狀態時執行省電控制,可於適用 步進馬達30之縫紉機待機時,降低電力消耗。 但是’省電控制時’使流經步進馬達30之電流(驅動電 流)減少時之響應性較低’因此,可能導致大於電流指令值 Ic之電流流入步進馬達3〇的線圈34a、34b中。其如第14圖所 示’於省電控制中’流經線圈34a、34b之電流之減少變得 緩和,因此’於驅動電流值比尚未降低至電流指令值1(;之 前,則進入後續PWM控制之on時間。 由於後續PWM控制的ON的比例少於前次,因此,驅動 電流值Id依次減少,反覆進行若干次pwM控制,使得驅動 電流值Id減少至電流指令值Ic。流經線圈34a、34b之電流增 加之際’係以與常規的控制,亦即省電控制以外的控制相 同的梯度而增加,因此’響應性並無問題《然而,僅於流 經線圈34a、34b之電流減少時,響應性降低,因此,該期 間會流通額外的電流,可能導致無法充分降低步進馬達30 的電力消耗。 為了充分確保流經線圈34a、34b之電流減少時之PWM 控制的OFF時間,有效方法為:於一(負)方向上,增大第2 圖、第3圖所示之信號運算部4所發出之電流值偏差D。為 23 201245527 此,將信號運算部4具有的增益調整部43所生成之增益G增 大即可。然而,若增大增益G ’在常規的控制及省電控制中, 流經線圈34a、34b之電流增加之際,上述電流過剩增加, 結果將導致產生超限之虞。 為解決此問題,於本實施方式的省電控制中,第3圖所 示之增益調整部43,在需要減少驅動電流值Id的絕對值 時,使增益G大於無需減少驅動電流值w的絕對值時(例 如,流經線圈34a、34b之電流增加時)之增益G。 藉此,於省電控制中,可僅於流經線圈34a、34b之電 流減少時,增大電流值偏差D,因此,可延長開關元件的 OFF時間。因此,流經步進馬達3〇之電流減少之際,可抑 制響應性降低。 其結果為,本實施方式的省電控制,可將驅動電流值 Id快速收斂至電流指令值1(;,因此,可抑制額外的電流流經 線圈34a、34b,充分降低步進馬達3〇的電力消耗。 又,增益調整部43,比較驅動電流值1(1的絕對值與電 流指令值Ic的絕對值,當需要減少驅動電流值1(1的絕對值 時’可以调整增益G,使其增大。進而,於執行省電控制時, 增益調整部43亦可調整增益G,在驅動電流值^的絕對值為 電机彳a令值I c的絕對值時、使前述增益G大於驅動電流值工d 的絕對值小於電流指令值Ic的絕對值時之增益G。 於本實施方式中,當步進馬達30的旋轉速度在預定旋 轉速度以下時,執行省電控制。預定旋轉速度以下,亦包 括步進馬達30停止之情形(旋轉速度為〇)。以上,為當步進S 201245527 stable. As a result, the degree of change (current fluctuation) of the current flowing through the coil 34a (34b) is extremely small as compared with the case shown in Fig. 9. As a result, the power saving control has the effect of reducing the heat generation caused by the iron loss of the stepping motor 3. Further, when the stepping motor 3 is stopped or rotated at a low speed, the power saving control is executed when the current flowing through the stepping motor 30 is in a certain state, and the power consumption can be reduced when the sewing machine to which the stepping motor 30 is applied is standby. However, in the case of 'power saving control', the responsiveness when the current (driving current) flowing through the stepping motor 30 is reduced is low. Therefore, it is possible to cause the current larger than the current command value Ic to flow into the coils 34a, 34b of the stepping motor 3A. in. As shown in Fig. 14, the decrease in the current flowing through the coils 34a, 34b in the power saving control is relaxed, so that the drive current value ratio has not been lowered to the current command value 1 (before, the subsequent PWM is entered. Since the ratio of ON of the subsequent PWM control is less than the previous time, the drive current value Id is sequentially decreased, and the pwM control is repeated several times, so that the drive current value Id is reduced to the current command value Ic. Flow through the coil 34a The current increase of 34b is increased by the same gradient as the conventional control, that is, the control other than the power-saving control, so that there is no problem in the responsiveness. However, only the current flowing through the coils 34a, 34b is reduced. When the responsiveness is lowered, an extra current may flow during this period, which may result in insufficient reduction of the power consumption of the stepping motor 30. In order to sufficiently ensure the OFF time of the PWM control when the current flowing through the coils 34a, 34b is reduced, it is effective. The method is to increase the current value deviation D generated by the signal calculation unit 4 shown in FIGS. 2 and 3 in the first (negative) direction. 23 201245527 Therefore, the signal calculation unit 4 The gain G generated by the gain adjustment unit 43 may be increased. However, if the gain G' is increased in the conventional control and power-saving control, the current flowing through the coils 34a, 34b increases, and the current excess increases. In order to solve this problem, in the power saving control of the present embodiment, the gain adjustment unit 43 shown in Fig. 3 makes the gain when it is necessary to reduce the absolute value of the drive current value Id. G is greater than the gain G when it is not necessary to reduce the absolute value of the drive current value w (for example, when the current flowing through the coils 34a, 34b is increased). Thereby, in the power saving control, only the current flowing through the coils 34a, 34b When the voltage is decreased, the current value deviation D is increased, so that the OFF time of the switching element can be lengthened. Therefore, when the current flowing through the stepping motor 3〇 is reduced, the responsiveness can be suppressed from being lowered. As a result, the province of the present embodiment is reduced. The electric control can quickly converge the drive current value Id to the current command value 1 (;, therefore, it is possible to suppress the extra current from flowing through the coils 34a, 34b, and sufficiently reduce the power consumption of the stepping motor 3A. Further, the gain adjustment portion 43 Comparison drive The dynamic current value 1 (the absolute value of 1 and the absolute value of the current command value Ic, when it is necessary to reduce the drive current value 1 (the absolute value of 1 ' can adjust the gain G to increase it. Further, when performing power saving control The gain adjustment unit 43 can also adjust the gain G. When the absolute value of the drive current value is the absolute value of the motor 彳a command value I c , the gain G is greater than the drive current value d is less than the current command value. In the present embodiment, when the rotational speed of the stepping motor 30 is equal to or lower than the predetermined rotational speed, the power saving control is executed. Below the predetermined rotational speed, the stepping motor 30 is also stopped ( The rotation speed is 〇). Above, when stepping

S 24 201245527 馬達30停止時執行省電控制,透過當步進馬達3〇旋轉時亦 適用省電控制,可進而更抑制步進馬達3〇的電力消耗。 上述預定旋轉速度,係用於規定步進馬達3〇以較低速 度旋轉之情況之旋轉速度,例如,2〇〇 rpm至300 rpm。以預 定旋轉速度以下之旋轉速度執行省電控制,其原因在於: 當步進馬達30鬲速旋轉時,響應性優先。 以下’利用第15圖至第π圖,更為詳細地說明本實施 方式的省電控制。 第15圖係流經線圈34a、3仆之電流的方向為+之情形 (Pl = l、P2=0),第16圖係流經線圈34a、3仆之電流的方向 為一之情形(P1=0、P2=l)。第17圖的實線係本實施方式的 省電控制的I峰H值id之變化,虛線係當增益固定時之 驅動電流值Id之變化。如上所述,本實施方式的省電控制, 使需要減少驅動電流值Id的⑽值|Id丨時之增益G2,大於無 需減少驅動電流值Id的絕對值丨Idl時之增益G1(G1<G2)。 於第15圖、第16圖所示之例中,當驅動電流值以的絕 對值IM丨小於電流指令值Ie的絕對值叫時(至㈣為止之區 域及t大於t2之區域)’需要增加驅動電流值Μ的絕對值丨^丨, 以使偏差d(=Ic — id)為〇。 此時,第3圖所示之增益調整部43使增益仏⑴,因此, 電流值偏差⑽仏⑴。又,當陶叫時㈣幻2之區域), 需要減少驅動電流值_絕對值Μ,以使偏差㈣卜⑷ 為〇。此時,增益調整部43使增益g=G2(>gi),因此 值偏差D為dxG2。如此一决,认4·由 來於本實施方式的省電控制 25 201245527 中,增益調整部43在驅動電流值Id的絕對值|Id丨為電流指令 值Ic的絕對值|ic|以上時,使增益〇大於|Id|小於丨Ic丨時祕、 G。 9 ^ 藉此’本實施方式的省電控制’可僅於流經線圈Μ 34b之電流減少時,增大電流值偏差D。 ' 結果’如第17圖所示’比較本實施方式的省電和希 驅動電流值Id之變化(實線)、當增益G固定時(虛線)無動的 流值Id之變化,流經步進馬連30之電流減少之際, 電 止 降低得以抑制,迅速收斂至電流指令值IC(步進馬達 時為0)。 因 結果’由於玎降低流經步進馬達30之額外的電流 圖所 此,充分降低步進馬達30的電力消耗。以下,說明第之 示之馬達控制裝置1控制步進馬達30的動作之一例。 於第18圖中,當控制步進馬達30的動作時,第2圖戶 之馬達控制裝置1的控制信號生成部2,生成電流指a斤布S 24 201245527 When the motor 30 is stopped, the power-saving control is executed, and when the stepping motor 3 is rotated, the power-saving control is also applied, and the power consumption of the stepping motor 3〇 can be further suppressed. The above predetermined rotational speed is used to specify the rotational speed of the stepping motor 3 旋转 at a lower speed, for example, 2 rpm to 300 rpm. The power saving control is performed at a rotation speed lower than a predetermined rotation speed because the responsiveness is prioritized when the stepping motor 30 is idling. Hereinafter, the power saving control of the present embodiment will be described in more detail using Figs. 15 to π. Fig. 15 is a case where the direction of the current flowing through the coils 34a, 3 is + (Pl = l, P2 = 0), and Fig. 16 is the case where the direction of the current flowing through the coils 34a, 3 is one (P1). =0, P2 = l). The solid line in Fig. 17 is a change in the I peak H value id of the power saving control of the present embodiment, and the broken line is a change in the driving current value Id when the gain is fixed. As described above, the power saving control of the present embodiment makes it necessary to reduce the gain G2 at the (10) value |Id 驱动 of the drive current value Id, which is larger than the gain G1 when the absolute value 丨Id1 of the drive current value Id is not required to be reduced (G1 < G2 ). In the examples shown in Fig. 15 and Fig. 16, when the absolute value IM of the drive current value is smaller than the absolute value of the current command value Ie (the area up to (4) and the area where t is greater than t2) needs to be increased. The absolute value of the driving current value Μ is 丨^丨 such that the deviation d(=Ic_id) is 〇. At this time, the gain adjustment unit 43 shown in Fig. 3 sets the gain 仏(1), so the current value varies (10) 仏 (1). Also, when the pottery is called (four) the area of the illusion 2, it is necessary to reduce the drive current value _ absolute value Μ so that the deviation (four) 卜 (4) is 〇. At this time, the gain adjustment unit 43 sets the gain g = G2 (> gi), so the value deviation D is dxG2. In the power saving control 25 201245527 of the present embodiment, the gain adjustment unit 43 causes the absolute value |Id 驱动 of the drive current value Id to be equal to or greater than the absolute value |ic| of the current command value Ic. Gain 〇 is greater than |Id| is less than 丨Ic丨, G, G. 9 ^ By the "power saving control" of the present embodiment, the current value deviation D can be increased only when the current flowing through the coil Μ 34b is decreased. 'Result' as shown in Fig. 17 'Compared with the change of the power saving and the driving current value Id (solid line) of the present embodiment, and the change of the flow value Id when the gain G is fixed (dashed line), flowing through the stepping When the current of the Marin 30 is reduced, the voltage drop is suppressed and quickly converges to the current command value IC (0 when the stepping motor is used). As a result, the power consumption of the stepping motor 30 is sufficiently reduced because the enthalpy reduces the extra current flowing through the stepping motor 30. Hereinafter, an example of the operation of the stepping motor 30 by the motor control device 1 shown in the first embodiment will be described. In Fig. 18, when the operation of the stepping motor 30 is controlled, the control signal generating unit 2 of the motor control device 1 of the second figure generates a current finger.

及控制切換指令pi、P2。然後,於步驟81〇1中,信鱿值1C 部4獲取控制信號生成部2所生成之電流指令值&, 算 S102中,自電流檢測電路8a(8b)獲取驅動電流 S103中,獲取控制信號生成部2所生成之控制切換指令η P2。再者,步驟Sl〇l、步驟S102及步驟Sl03的順序;森1、 定。 戈限 是) 於步驟S104中,當控制切換指令?1或?2為〇時(歩— Sl〇4,是),馬達控制裝置!執行省電控制。此時,進^骤 驟S105。於步驟Sl〇5中,當P1 = 1且1£^1(;時(步驟si〇s,八步 〇 26 201245527 流經步進馬達30的線圈34a、34b之電流的方向為+且|Id|> =|Ic|。此時’需要減少驅動電流值Id,因此,進入步驟si〇6, 偏差生成部40自增益調整部43獲取增益G2,將用於乘以偏 差d之增益G設定為G2。 於步驟S104中,當控制切換指令P1或P2不為〇時,亦 即’當Pl = l且P2=l時(步驟sl〇4,否),馬達控制裝置1不執 行省電控制。此時’進入步驟S107,偏差生成部4〇自增益 調整部43獲取增益G1,將用於乘以偏差d之增益G設定為 G1。於步驟S105中,當並非|>1 = 1且1(:|> =ic時,亦即,當p2=l 或Id<Ic時(步驟S105,否),進入步驟si〇8。於步驟S108中, 當P2=l且Ic>:=Id時(步驟S108,是),步進馬達30的流經線 圈34a ' 34b之電流的方向為—且|Id|>=|Ic卜此時,需要減 少驅動電流值Id ,因此,進入步驟si〇6,偏差生成部40自 增益調整部43獲取增益G2,將用於乘以偏差d之增益G設定 為G2。 於步驟S108中,當並非P2=l且lcgid時,亦即,當P2=0 或Ic<Id時(步驟S108,否),馬達控制裝置丨不執行省電控 制。此時’進入步驟Si〇7,偏差生成部4〇自增益調整部43 獲取增益G1,將用於乘以偏差d之增益g設定為gi。 以下,進入步驟S109,偏差生成部40,計算電流值偏 差D。然後,於步驟s 11 〇中,驅動信號生成部4〖,自三角波 產生部42獲取三角波Vt。以下,於步驟8111中,當D>% 時(步驟sm,是)進入步驟S112,驅動信號生成部41使驅動 信號Sd為1。當DSVt時(步驟S111,否)進入步驟S113,驅 27 201245527 動信號生成部41,使驅動信號Sd為0。於步驟Sill至步驟 S113中,驅動信號生成部41 ’生成包括ΟΝ/OFF之驅動信號 Sd。此驅動信號Sd,係用於PWM控制之信號。 以下,進入步驟S114,第3圖所示之信號運算部4 ’將 驅動信號Sd作為第1驅動信號Sdl ’將由驅動信號Sd反轉而 成之信號作為第2驅動信號Sd2。信號運算部4的第一反轉部 45,使驅動信號Sd反轉’並作為第2驅動信號Sd2。 於步驟S115中,當控制切換指令P1為1時(步驟S115、, 是),進入步驟S116。於步驟S116中,當控制切換信號P2為 1時(步驟S116,是)’進入步驟S117,信號運算部4,由第一 邏輯積運算部46,將第1驅動信號Sdl輸出至驅動電路6,由 第二邏輯積運算部47將第2驅動信號Sd2輸出至驅動電路6。 當步驟S115及步驟S116為是時,由於ρ1=Ρ2=ι,因而不 執行省電控制’以常規的控制驅動步進馬達3〇。 於步驟S115中’當控制切換指令ρ〗並非1時(步驟 S115 ’否)’進入步驟S118。此時,由於Pi=〇,因此,信號 運算部4的第一邏輯積運算部46 ’將第1驅動信號Sdl設定為 〇。之後,進入步驟S117,信號運算部46執行上述處理。此 時,由於第1驅動信號Sdl=〇且第2驅動信號Sd2=卜因此, 於步驟S117中,執行步進馬達3〇的流經線圈34a、34b之電 流的方向為一之情形下的省電控制。 於步驟S116中,當控制切換信號?2為1時(步驟S116, 否)’進入步驟S119。此時,由於p2=〇,因此,信號運算部 4的第二邏輯積運算部47,將第2驅動信號Sd2設定為0。And control switching instructions pi, P2. Then, in step 81〇1, the signal value 1C unit 4 acquires the current command value & generated by the control signal generating unit 2, and in S102, the drive current S103 is acquired from the current detecting circuit 8a (8b), and the control is acquired. The control switching command η P2 generated by the signal generating unit 2 is controlled. Furthermore, the order of step S1, step S102, and step S103; Ge limit Yes) In step S104, when the switching instruction is controlled? 1 or? 2 is the time (歩 - Sl〇4, yes), motor control device! Perform power saving control. At this time, the process proceeds to step S105. In step S1, when P1 = 1 and 1£^1 (; (step si〇s, eight steps 2012 26 201245527, the direction of the current flowing through the coils 34a, 34b of the stepping motor 30 is + and | Id |> =|Ic| At this time, it is necessary to reduce the drive current value Id. Therefore, the process proceeds to step si〇6, and the deviation generating unit 40 acquires the gain G2 from the gain adjustment unit 43, and sets the gain G for multiplying the deviation d. It is G2. In step S104, when the control switching command P1 or P2 is not 〇, that is, when 'Pl = l and P2 = 1 (step s1 〇 4, NO), the motor control device 1 does not perform power saving control. In this case, the process proceeds to step S107, and the deviation generating unit 4 obtains the gain G1 from the gain adjusting unit 43, and sets the gain G for multiplying the deviation d to G1. In step S105, when not >1 = 1 and 1 (:|> = ic, that is, when p2 = l or Id < Ic (step S105, NO), the process proceeds to step si 〇 8. In step S108, when P2 = 1 and Ic >: = Id When the step (step S108, YES), the direction of the current flowing through the coil 34a'34b of the stepping motor 30 is - and |Id|>=|Ic. At this time, it is necessary to reduce the drive current value Id, and therefore, the process proceeds to step si. 〇 6, deviation generation 40, the gain adjustment unit 43 obtains the gain G2, and sets the gain G for multiplying the deviation d to G2. In step S108, when not P2=l and lclid, that is, when P2=0 or Ic<Id (No in step S108), the motor control device does not perform the power saving control. At this time, the process proceeds to step Si7, and the deviation generating unit 4 obtains the gain G1 from the gain adjusting unit 43, and the gain g for multiplying the deviation d The process proceeds to step S109, and the deviation generation unit 40 calculates the current value deviation D. Then, in step s11, the drive signal generation unit 4 acquires the triangular wave Vt from the triangular wave generation unit 42. In step 8111, when D >% (step sm, YES), the drive signal generation unit 41 sets the drive signal Sd to 1. When DSVt (step S111, NO), the flow proceeds to step S113, and the drive 27 201245527 dynamic signal generation unit 41. The drive signal Sd is set to 0. In steps Sill to S113, the drive signal generating unit 41' generates a drive signal Sd including ΟΝ/OFF. This drive signal Sd is a signal for PWM control. S114, the signal calculation unit shown in Fig. 3 4' A signal obtained by inverting the drive signal Sd as the first drive signal Sd' is used as the second drive signal Sd2. The first inverting portion 45 of the signal calculation unit 4 inverts the drive signal Sd' The second drive signal Sd2 is used. In step S115, when the control switching command P1 is 1 (step S115, YES), the flow proceeds to step S116. In step S116, when the control switching signal P2 is 1 (YES in step S116), the signal computing unit 4 outputs the first drive signal Sd1 to the drive circuit 6 by the first logical product calculation unit 46. The second drive signal Sd2 is output to the drive circuit 6 by the second logical product calculation unit 47. When YES in steps S115 and S116, since ρ1 = Ρ2 = ι, the power saving control is not performed 'the stepping motor 3 is driven by the conventional control. In step S115, 'when the control switching command ρ is not 1 (NO in step S115)' proceeds to step S118. At this time, since Pi = 〇, the first logical product calculation unit 46' of the signal calculation unit 4 sets the first drive signal Sd1 to 〇. Thereafter, the process proceeds to step S117, and the signal calculation unit 46 executes the above processing. At this time, since the first drive signal Sdl=〇 and the second drive signal Sd2=b, in step S117, the province in which the direction of the current flowing through the coils 34a and 34b of the stepping motor 3〇 is one is performed. Electrical control. In step S116, when the switching signal is controlled? When 2 is 1 (step S116, NO), the process proceeds to step S119. At this time, since p2 = 〇, the second logical product calculation unit 47 of the signal calculation unit 4 sets the second drive signal Sd2 to zero.

S 28 201245527 碑t後’進人步驟S117’信號運算部4執行上述處理。此 夺,由於紅驅動信號Sdl=1且第2驅動信如㈣,因此, =步购Π中,執行步進馬達30的流經線圈施】之電 抓的方向為+之情形下的省電控制。 ^圖所示之縫幼機70,為電子猶環縫幼機。電子循 衣’、、刀機’具有保持進行縫製之待縫製物——布之保持 藉由其保持框相對於_針相對地移動,基於預定縫 製模式資料(縫製模式),於保持框所保持之布上形成針腳。 在此,將後述縫幼針78上下移動之方向定義私轴方向 二),將與此正交之-方向定義為X軸方向(左右方 ::前::向及x轴方向兩者正交之方~ 電子《縫_G(以下,稱為縫㈣7G)具備:勒機 有的用於=、·有的縫幼機主體71、縫切機台板了的下部具 上部具有1縫製之開始及停止之踏板R及縫_台板丁的 噠匆機抒7於岐肖者崎輸入_之㈣自板90等。 ^機主體叫備由側面觀察,外敎致呈 縫鲂機柩架72。 」子形之 縫紉機框架72具 主體71的上部,並^ 、錢機臂部7〜,其構成縫幼機 構成_機主體717後方向延展;勒機針床部72b,其 轉部下部’並沿前後方向延展;及,縱向 縫劫機主體Μ有是匆機機料7祕._機針床箱。 ㈣内配置有軸^及下轴,該主轴及下轴於縫勿機框 動機構,且樞轉自如地於前後方向延展。 29 201245527 W軸配置於縫紉機機臂部72a的内部,上述下軸配置於 縫鲂機針床部72b的内部。 一上述主軸,連結於縫紉機馬達,並藉由此縫紉機 賦予樞轉力^ X,上述下軸,經由縱軸連結於主轴,當主 軸樞轉時,主軸的動力將經由縱軸傳遞至下軸側,從:使 下軸拖轉。上述主軸的前端,連接有針桿—,其藉由上述 主軸之樞轉而於z軸方向上上下移動。於針桿78a的下端, 設置有可替換之肋針78。彻此種構成,_針^由 上述主轴之樞轉’可於z軸方向上上下移動。於上述下㈣ 前端上,設置有坑穴。當上述下軸與上述主軸同時樞轉時, 藉由縫紉針78與上述坑穴之相互作用形成針腳。 於縫紉機機臂部72a上設置有中壓腳裝置,該中壓腳裝 置具有壓腳,所述壓腳為了防止因縫紉針78上下移動導致 布鼓起,而與針桿78a之上下移動聯動地上下移動,且將縫 幼針78周圍的布向下方按壓。再者,上述中壓腳裝置的主 體配設於縫紉機機臂部72a的内部,縫紉針78插入至形成於 上述中壓腳的前端側之貫穿孔。 於縫紉機針床部72b上,配置有布板8〇〇於布板8〇的上 方,配置有作為布保持部之保持框81及縫纫針78。保持框 81,安裝於配備於縫紉機機臂部72a的前端部之安裝構件83 又’如第20圖所示’保持框81具有壓布腳86及下板87。 然後,壓布腳86 ’藉由配置於縫紉機機臂部72a内之壓布腳 圓筒之驅動,可上下驅動。利用此種構成,壓布腳86,當S 28 201245527 After the monument t, the incoming step S117' signal computing unit 4 executes the above processing. In this case, since the red drive signal Sdl=1 and the second drive signal is as follows (4), in the step shopping, the power consumption of the stepping motor 30 is performed by the coil. control. ^ The slitting machine 70 shown in the figure is an electronic quilting machine. The electronic garment ', the knife' has a workpiece to be sewn to be sewn - the holding of the cloth is relatively moved by the holding frame relative to the needle, and is retained in the holding frame based on the predetermined sewing pattern data (sewing mode) The stitches are formed on the cloth. Here, the direction in which the sewing needle 78 is moved up and down will be defined as the private axis direction (2), and the direction orthogonal thereto will be defined as the X-axis direction (left and right sides:: front:: direction and x-axis direction are orthogonal to each other) It is the beginning of the lower part of the lower part of the sewing machine main body 71 and the sewing machine table which are used for the sewing machine. And stop the pedal R and the seam _ plate ding's 哒 抒 抒 7 in the 岐 者 者 者 输入 input _ (four) from the board 90, etc. ^ machine body is called from the side view, the outer 敎 呈 鲂 72 72 72 72 The child-shaped sewing machine frame 72 has an upper portion of the main body 71, and a money machine arm portion 7~, which constitutes a slit machine configuration_the machine body 717 is extended in the rear direction; the needle machine bed portion 72b, the lower portion of the turning portion' And extending in the front and rear direction; and, the main body of the longitudinal seam hijacking machine is a rush machine material 7 secret. _ machine needle bed box. (4) is equipped with a shaft ^ and a lower shaft, the spindle and the lower shaft in the sewing machine frame mechanism And it is pivotally extended in the front-back direction. 29 201245527 The W-axis is disposed inside the sewing machine arm portion 72a, and the lower shaft is disposed inside the sewing machine needle bed portion 72b. The spindle is coupled to the sewing machine motor and is coupled to the spindle by the sewing machine. The lower shaft is coupled to the spindle via the longitudinal axis. When the spindle is pivoted, the spindle power is transmitted to the lower shaft via the longitudinal axis. Side, from: the lower shaft is dragged. The front end of the spindle is connected with a needle bar - which is moved up and down in the z-axis direction by the pivoting of the spindle. The lower end of the needle bar 78a is provided with a replaceable one. The rib needle 78. In this configuration, the _needle ^ can be moved up and down in the z-axis direction by the pivoting of the main shaft. On the lower (four) front end, a pit is provided. When the lower shaft pivots simultaneously with the spindle When the sewing needle 78 interacts with the above-mentioned pit, the stitch is formed. The sewing machine arm portion 72a is provided with a medium presser device having a presser foot for preventing the sewing needle 78. The upper and lower movement causes the cloth to bulge, and moves up and down in conjunction with the upward movement of the needle bar 78a, and presses the cloth around the sewing needle 78 downward. Further, the main body of the intermediate press device is disposed on the arm of the sewing machine. Inside the 72a, the sewing needle 78 is inserted The through hole formed in the front end side of the intermediate presser is placed on the sewing machine needle bed portion 72b, and the cloth 8 is placed above the cloth 8〇, and the holding frame 81 and the slit as the cloth holding portion are disposed. Needle 78. The holding frame 81 is attached to the mounting member 83 provided at the front end portion of the sewing machine arm portion 72a. As shown in Fig. 20, the holding frame 81 has the pressing leg 86 and the lower plate 87. Then, the pressing cloth is pressed. The leg 86' can be driven up and down by the driving of the presser foot cylinder disposed in the sewing machine arm portion 72a. With this configuration, the foot 86 is pressed.

S 30 201245527 自身下降時,與下板87之間夾持並保持布料。 呆持保持框81之安裝構件83,於容納保持於缝紉機框 架72内之X軸橫桿75上,經由滑組得以被支持。錄橫桿乃 於Y軸橫桿76上,經由滑組得以被支持。利用此種構成,保 持框81可經由安裝構⑽於χ_γ平面上㈣地移動。 又,於縫紉機針床部72b内,作為X軸馬達之第—步進 馬達30A及作為γ軸馬達之第二步進馬達細被設置為 驅動手&。第-步進馬達3QA,經由齒輪使進給軸77旋轉, 搬送連結於安裝構件83之時序皮帶84。 又,第一步進馬達30B ,經由傘形齒輪使進給軸78旋 轉,搬送連結於X軸橫桿75之時序皮帶85。 利用此種構成’當使第一步進馬達3〇A及第三步進馬達 30B驢動時,藉由該等之相互作用,可將安裝構件μ及保持 框81疋位於χ·γ平面的任意位置。 然後’藉由保持框81之移動與縫幼針78及上述坑穴之 動作聯動,基於預定縫製模式資料的針腳資料,可於布料 上形成針腳。 而且’保持框8卜安裝構件83、第-步進馬達3〇Α及第 二步進馬達30Β,係作為將縫_78及布料於球方向及γ 軸方向上相對定位之定位機構91而發揮功能,以可落針於 作為待縫製物之布料的任意位置。 、 第-步進馬達取及第二步進馬達通的動作,係藉由 第2圖所示之馬達控制裝置’而得以被㈣。藉此,第一曰步 進馬達30A及第二步進馬達細,驅動定位機構μ。而且, 31 201245527 定位機構91,進行縫紉針78與布料之相對性定位。 當第一步進馬達3〇A及第二步進馬達30B停止時或以 預定旋轉速度以下旋轉時,馬達控制裝置1 ’將執行上述本 實施方式的省電控制。由於本實施方式的省電控制,可降 低第一步進馬達30A及第二步進馬達30B的電力消耗,因 此,可降低縫紉機70的電力消耗。 以上,於本實施方式中’於省電控制中’使需要減少 流經步進馬達之電流的絕對值時之增益’大於其他情況的 增益。藉此,於PWM控制中,可延長開關元件之OFF時間, 因此’可充分確保流經步進馬達之電流減少之時間。其結 果為,可抑制上述電流減少之際的響應性降低,減少步進 馬達的電力消耗。又,於省電控制中,由於驅動電流值快 速收斂至電流指令值,因此,驅動電流值之振動得以降低。 其結果為,縫紉機的保持框之振動或步進馬達的噪音得以 降低。 又’於本實施方式中,藉由將信號運算部作為微處理 器(例如,DSP) ’可分別於省電控制及常規控制中,自動地 將增益之設定改變為適當的值。藉此,於省電控制中,可 抑制流經步進馬達之電流減少之際的響應性之降低。其結 果為,可減少流經步進馬達之額外的電流,因此,可減少 步進馬達的電力消耗。 又,於本實施方式中,藉由將信號運算部作為微處理 器,既便於文信號運算部控制之步進馬達改變之情形下, 可利用軟體改變,以求最佳增益。如此一來,本實施方式,S 30 201245527 When the self descends, the fabric is held and held between the lower plate 87 and the lower plate 87. The mounting member 83 holding the holding frame 81 is supported by the slide group on the X-axis rail 75 housed in the sewing machine frame 72. The crossbar is supported on the Y-axis rail 76 via the slide group. With this configuration, the holding frame 81 can be moved (4) on the χ_γ plane via the mounting structure (10). Further, in the sewing machine needle bed portion 72b, the first stepping motor 30A as the X-axis motor and the second stepping motor as the γ-axis motor are finely provided as the driving hand & The first stepping motor 3QA rotates the feed shaft 77 via a gear, and conveys the timing belt 84 coupled to the attachment member 83. Further, the first stepping motor 30B rotates the feed shaft 78 via the bevel gear, and conveys the timing belt 85 coupled to the X-axis rail 75. With such a configuration, when the first stepping motor 3A and the third stepping motor 30B are tilted, the mounting member μ and the holding frame 81 can be placed on the χ·γ plane by the interaction of the above. Anywhere. Then, by moving the holding frame 81 in conjunction with the action of the slit needle 78 and the above-described pit, the stitches can be formed on the cloth based on the stitch data of the predetermined sewing pattern data. Further, the holding frame 83, the first stepping motor 3'' and the second stepping motor 30' are used as the positioning mechanism 91 for positioning the slits _78 and the cloth in the spherical direction and the γ-axis direction. The function is to drop the needle at any position as the cloth to be sewn. The operation of the first stepping motor and the second stepping motor is performed by the motor control unit ’ shown in Fig. 2 (4). Thereby, the first stepping motor 30A and the second stepping motor are thin, and the positioning mechanism μ is driven. Moreover, 31 201245527 positioning mechanism 91 performs relative positioning of the sewing needle 78 and the cloth. When the first stepping motor 3A and the second stepping motor 30B are stopped or rotated at a predetermined rotation speed or lower, the motor control device 1' performs the above-described power saving control of the present embodiment. According to the power saving control of the present embodiment, the power consumption of the first stepping motor 30A and the second stepping motor 30B can be reduced, so that the power consumption of the sewing machine 70 can be reduced. As described above, in the present embodiment, the 'gain in the power-saving control' is required to reduce the absolute value of the current flowing through the stepping motor, which is larger than the gain in other cases. Thereby, in the PWM control, the OFF time of the switching element can be lengthened, so that the time during which the current flowing through the stepping motor is reduced can be sufficiently ensured. As a result, it is possible to suppress the decrease in responsiveness when the current is reduced, and to reduce the power consumption of the stepping motor. Further, in the power saving control, since the drive current value quickly converges to the current command value, the vibration of the drive current value is lowered. As a result, the vibration of the holding frame of the sewing machine or the noise of the stepping motor can be reduced. Further, in the present embodiment, the gain calculation unit can be automatically changed to an appropriate value in the power saving control and the normal control by using the signal calculation unit as a microprocessor (for example, DSP). Thereby, in the power saving control, it is possible to suppress a decrease in responsiveness when the current flowing through the stepping motor is reduced. As a result, the extra current flowing through the stepping motor can be reduced, thereby reducing the power consumption of the stepping motor. Further, in the present embodiment, by using the signal calculation unit as a microprocessor, it is possible to use the software change to obtain an optimum gain even when the stepping motor controlled by the text signal calculation unit is changed. In this way, the present embodiment,

S 32 201245527 無需替換硬體,即可實現最佳步進馬達之控制。又,透過 將信號運算部軟體化,藉由讀取信號運算部内的電腦程式 之際設置安全性等,亦可降低增益之設定或内部之控制等 技術資訊洩露至第三者之虞。又,於以硬體構成信號運算 部的偏差生成部之情形下,可以具有運算放大器及電阻器 之差動放大電路構成,但是,此時,增益係以電阻比率設 定,因此,於省電控制及其他情況下難以快速改變增益。 由於本實施方式,將信號運算部的偏差生成部軟體化,因 此,可容易實現於省電控制及其他情況下快速改變增益。 產業上之可利用性 如上所述,本發明的縫紉機控制裝置及縫紉機,有利 於降低電力消耗。 c圖式簡單說明3 第1圖係繪示步進馬達及本實施方式的縫紉機用步進 馬達控制裝置之略圖。 第2圖係繪示本實施方式的馬達控制裝置的裝置構成 之圖。 第3圖係繪示本實施方式的馬達控制裝置所具有之信 號運算部的構成之說明圖。 第4圖係繪示控制信號的生成方法之說明圖。 第5圖係繪示控制信號的生成方法之說明圖。 第6圖係說明步進馬達的激磁方法之示意圖。 第7圖係繪示驅動步進馬達時之驅動電路的動作之說 明圖。 33 201245527 第7 -1圖繪示第一正極側元件與第二地線側元件處於 ON狀態,第二正極側元件與第一地線側元件處於OFF狀態。 第7 - 2圖繪示第二正極側元件與第一地線側元件處於 ON狀態,第一正極側元件與第二地線側元件處於OFF狀態。 第8圖係繪示流經步進馬達的線圈之電流的變化之示 意圖。 第9圖係繪示流經步進馬達的線圈之電流的變化之示 意圖。 第10圖係繪示流經步進馬達的線圈之電流的變化之示 意圖。 第11圖係用於說明執行省電控制之際,驅動電路的動 作之圖。 第12圖係用於說明執行省電控制之際,驅動電路的動 作之圖。 第13圖係繪示省電控制時,流經步進馬達的線圈之電 流的變化之示意圖。 第14圖係繪示省電控制時,流經步進馬達的線圈之電 流的變化之示意圖。 第15圖係用於說明本實施方式的省電控制中的增益之 設定之概念圖。 第16圖係用於說明本實施方式的省電控制中的增益之 設定之概念圖。 第17圖係繪示本實施方式的省電控制中的驅動電流值 的變化之示意圖。S 32 201245527 Control of the best stepper motor is achieved without replacing the hardware. In addition, by softening the signal calculation unit and setting security in the computer program in the signal calculation unit, technical information such as setting of gain or internal control can be reduced to the third party. Further, in the case where the error generation unit of the signal calculation unit is configured by hardware, the differential amplifier circuit of the operational amplifier and the resistor may be provided. However, in this case, the gain is set by the resistance ratio, and thus the power saving control is performed. In other cases, it is difficult to change the gain quickly. According to the present embodiment, the deviation generation unit of the signal calculation unit is softened, so that the gain can be easily changed in the power-saving control and other cases. Industrial Applicability As described above, the sewing machine control device and the sewing machine of the present invention are advantageous in reducing power consumption. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a schematic view showing a stepping motor and a stepping motor control device for a sewing machine according to the present embodiment. Fig. 2 is a view showing the configuration of a device of the motor control device of the present embodiment. Fig. 3 is an explanatory view showing the configuration of a signal calculation unit included in the motor control device of the present embodiment. Fig. 4 is an explanatory diagram showing a method of generating a control signal. Fig. 5 is an explanatory diagram showing a method of generating a control signal. Fig. 6 is a view showing the excitation method of the stepping motor. Fig. 7 is an explanatory view showing the operation of the drive circuit when the stepping motor is driven. 33 201245527 The 7-1th diagram shows that the first positive electrode side element and the second ground line side element are in an ON state, and the second positive electrode side element and the first ground line side element are in an OFF state. Figs. 7-2 show that the second positive electrode side member and the first ground side member are in an ON state, and the first positive electrode side member and the second ground side member are in an OFF state. Fig. 8 is a diagram showing the change of the current flowing through the coil of the stepping motor. Fig. 9 is a diagram showing the change of the current flowing through the coil of the stepping motor. Fig. 10 is a diagram showing the change of the current flowing through the coil of the stepping motor. Fig. 11 is a view for explaining the operation of the drive circuit at the time of performing the power saving control. Fig. 12 is a view for explaining the operation of the driving circuit at the time of performing the power saving control. Fig. 13 is a view showing the change of the current flowing through the coil of the stepping motor when the power saving control is performed. Fig. 14 is a view showing the change of the current flowing through the coil of the stepping motor when the power saving control is performed. Fig. 15 is a conceptual diagram for explaining the setting of the gain in the power saving control of the present embodiment. Fig. 16 is a conceptual diagram for explaining the setting of the gain in the power saving control of the present embodiment. Fig. 17 is a view showing the change of the drive current value in the power saving control of the present embodiment.

34 S 201245527 第18圖係繪示利用馬達控制裝置控制步進馬達的一例 之流程圖。 第19圖係繪示具備受本實施方式的馬達控制裝置控制 之步進馬達之縫幼機的一例之斜視圖。 第20圖係繪示第19圖所示之縫紉機的定位機構之斜視 圖 【主要元件符號說明】 1.. .馬達控制裝置(縫紉機控制 裝置) 2.. .控制信號生成部 4.. .信號運算部 6.. .驅動電路 8a、8b...電流檢測電路 30.. .步進馬達 30A...第一步進馬達 30B...第二步進馬達 31.. .轉軸 32.. .轉子 33.. .定子 33a、33b...芯部 34a、34b…線圈 40.. .偏差生成部 41.. .驅動信號生成部 42…三角波產生部 43.. .增益調整部 44.. .輸出部 45.. .第一反轉部 46.. .第一邏輯積運算部 47.. .第二邏輯積運算部 48.. .第二反轉部 49··.第三反轉部 60.. .驅動電路 60a...正極側開關元件(第一正 極側元件) 60b...地線側開關元件(第一地 線側元件) 60c...正極側開關元件(第二正 極側元件) 60d…地線側開關元件(第二地 線側元件) 61a、61b、61c、61d...二極體 62.. .電源 63.. .地線 70.··縫紉機(電子循環縫紉機) 78…針 35 201245527 78a...針桿 80.. .布板 81.. .保持框 83.. .安裝構件 84.. . 85…時序皮帶 86.. .壓布腳 87.. .下板 90.. .操作面板 91.. .定位機構 d...偏差 tl、t2、t3...時間 A、B、C、D、E…箭頭 D...電流值偏差 G...預定增益 R...踏板 T...縫紉機台板 lc. ..電流指令值 ld. ..驅動電流值 PI、P2...控制切換指令 Sd、Sdl、Sd2...驅動信號 S101-S119···步驟 Vcc...電壓 Vt...三角波 3634 S 201245527 Figure 18 is a flow chart showing an example of controlling a stepping motor by a motor control device. Fig. 19 is a perspective view showing an example of a slitting machine including a stepping motor controlled by the motor control device of the embodiment. Figure 20 is a perspective view showing the positioning mechanism of the sewing machine shown in Figure 19 [Description of main components] 1. Motor control device (sewing machine control device) 2. Control signal generating unit 4.. Signal Operation unit 6.. drive circuit 8a, 8b... current detection circuit 30.. stepper motor 30A... first stepper motor 30B... second stepper motor 31.. revolving axis 32.. Rotor 33.. Stator 33a, 33b... Core 34a, 34b... Coil 40.. Deviation generating unit 41.. Drive signal generating unit 42... Triangular wave generating unit 43.. Gain adjusting unit 44.. Output unit 45.. First reverse unit 46.. First logical product calculation unit 47.. Second logical product calculation unit 48.. Second reverse unit 49.. Third reverse unit 60.. drive circuit 60a... positive side switching element (first positive side element) 60b... ground side switching element (first ground side element) 60c... positive side switching element (second positive side) Side element) 60d... Ground line side switching element (second ground side element) 61a, 61b, 61c, 61d... diode 62.. power supply 63.. ground wire 70.··sewing machine (electronic cycle Sewing machine) 78...needle 35 20124552 7 78a... Needle bar 80.. . Layout 81.. . Hold frame 83.. Mounting member 84.. . 85... Timing belt 86.. Pressing foot 87.. . Lower plate 90.. Operation panel 91.. Positioning mechanism d... Deviation t1, t2, t3... Time A, B, C, D, E... Arrow D... Current value deviation G... Predetermined gain R... Pedal T... sewing machine table lc. . . current command value ld. . . drive current value PI, P2 ... control switching command Sd, Sd1, Sd2 ... drive signal S101-S119 · · · Step Vcc. ..voltage Vt...triangular wave 36

SS

Claims (1)

201245527 七、申請專利範圍: 1· 一種縫紉機控制裝置,其具備: 驅動電路,其具有可將驅動縫紉機的預定執行裝置 之步進馬達的線圈的兩端分別連接至電源的正極之兩 個正極側開關元件、及可將上述線圈的兩端分別連接至 地線之兩個地線側開關元件;及 控制手段,其控制上述驅動電路; 上述縫紉機控制裝置的特徵在於,上述控制手段包 括: 偏差生成部,其求出對於上述步進馬達之電流指令 值與流經上述步進馬達之電流的驅動電流值間之偏 差’生成賦予上述偏差預定增益之電流值偏差; 驅動信號生成部’其根據上述電流值偏差生成驅動 信號;及, 增证調整部,其於控制上述驅動電路,以藉由上述 線圈之自感應使自上述線圈流出之電流回流至上述線 圈本身之情況下,比較上述驅動電流值的絕對值與上述 電流指令值的絕對值,調整上述增益。 …如申叫專利範圍第1項之縫紉機控制裝置,其中, 上述增益輕部,當上述Μ«值的絕對值為上 述電♦值的絕對值以上時,使上述增益大於上述驅 動電机值的絕對值小於上述電流指令值的絕對值時之 上述增益。 3.如申請專利第1幻項之_機控制裝置,其中,控 37 201245527 制上述正極側開關元件及上述地線側開關元件,上述步 進馬達為預定之旋轉速度以下,藉由上述線圈之自感應 使自上述線圈流出之電流回流至上述線圈本身。 4. 如申請專利範圍第1或2項之縫紉機控制裝置,其中,上 述執行裝置係定位機構,該定位機構將上述待縫製物相 對於縫紉針相對定位,以可落針於待縫製物的任意位 置。 5. —種縫紉機控制裝置,其控制驅動縫紉機的預定執行裝 置之步進馬達, 其特徵在於包括: 驅動電路,其具有可將上述步進馬達的線圈的兩端 分別連接至電源的正極之兩個正極側開關元件、及可將 上述線圈的兩端分別連接至地線之兩個地線側開關元 件; 控制信號生成部,其生成對於上述步進馬達之電流 指令值,並且,生成用於執行省電控制之控制切換指 令,上述省電控制驅動上述正極側開關元件及上述地線 側開關元件,以藉由上述線圈之自感應使自上述線圈流 出之電流回流至上述線圈本身; 偏差生成部,其求出對於上述步進馬達之電流指令 值與流經上述步進馬達之電流的驅動電流值間之偏 差,生成賦予上述偏差預定增益之電流值偏差; 驅動信號生成部,其根據上述電流值偏差,生成用 於驅動上述步進馬達之驅動信號,並將上述驅動信號輸 38 S 201245527 入至上述兩個正極側開關元件及上述兩個地線側開關 元件;及 增益調整部,其於執行上述省電控制之情況下,當 上述驅動電流值的絕對值為上述電流指令值的絕對值 以上時,使上述增益大於上述驅動電流值的絕對值小於 上述電流指令值的絕對值時之增益。 6. 如申請專利範圍第5項之縫紉機控制裝置,其中,上述 執行裝置係定位機構,該定位機構將上述待縫製物相對 於縫紉針相對定位,以可落針於待縫製物的任意位置。 7. —種縫紉機,其具備: 步進馬達,其驅動預定執行裝置; 驅動電路,其具有可將上述步進馬達的線圈的兩端 分別連接至電源的正極之兩個正極側開關元件、及可將 上述線圈的兩端分別連接至地線之兩個地線側開關元 件;及 控制手段,其控制上述驅動電路; 上述縫紉機的特徵在於,上述控制手段包括: 偏差生成部,其求出對於上述步進馬達之電流指令 值與流經上述步進馬達之電流的驅動電流值間之偏 差,生成賦予上述偏差預定增益之電流值偏差; 驅動信號生成部,其根據上述電流值偏差生成上述 驅動信號;及 增益調整部,其於控制上述驅動電路,以藉由上述 線圈之自感應使自上述線圈流出之電流回流至上述線 39 201245527 圈本身之情況下,比較上述驅動電流值的絕對值與上述 電流指令值的絕對值,調整上述增益。 8. 如申請專利範圍第7項之縫紉機,其中, 上述增益調整部,當上述驅動電流值的絕對值為上 述電流指令值的絕對值以上時,使上述增益大於上述驅 動電流值的絕對值小於上述電流指令值的絕對值時之 增益。 9. 如申請專利範圍第7或8項之縫紉機,其中,控制上述正 極側開關元件及上述地線側開關元件,上述步進馬達為 預定旋轉速度以下,藉由上述線圈之自感應使自上述線 圈流出之電流回流至上述線圈本身。 10. 如申請專利範圍第7項之縫紉機,其中,上述執行裝置 係定位機構,該定位機構將上述待縫製物相對於縫紉針 相對定位,以可落針於待縫製物的任意位置。 S 40201245527 VII. Patent application scope: 1. A sewing machine control device comprising: a drive circuit having two ends of a coil of a stepping motor that drives a predetermined actuator of a sewing machine, respectively, to two positive sides of a positive pole of a power source a switching element, and two ground-side switching elements that can connect the two ends of the coil to the ground; and a control means for controlling the driving circuit; wherein the sewing machine control device is characterized in that: the control means includes: a portion that obtains a deviation between a current command value of the stepping motor and a drive current value of a current flowing through the stepping motor to generate a current value deviation that gives the deviation predetermined gain; the drive signal generating unit' The current value deviation generates a drive signal; and the certificate adjustment unit controls the drive circuit to compare the drive current value when the current flowing from the coil is returned to the coil itself by self-induction of the coil The absolute value of the current value and the absolute value of the above current command value are adjusted. Gain. The sewing machine control device according to claim 1, wherein the gain portion is such that the absolute value of the Μ value is greater than or equal to the absolute value of the electric value, and the gain is greater than the value of the drive motor. The above gain when the absolute value is smaller than the absolute value of the current command value. 3. The device control device according to claim 1, wherein the positive electrode side switching element and the ground line side switching element are controlled by the method of 2012 201227, wherein the stepping motor is equal to or lower than a predetermined rotation speed, and the coil is Self-induction causes the current flowing from the coil to flow back to the coil itself. 4. The sewing machine control device of claim 1 or 2, wherein the actuating device is a positioning mechanism that positions the object to be sewn relative to the sewing needle so as to be able to drop the needle to the object to be sewn. position. 5. A sewing machine control device for controlling a stepping motor for driving a predetermined actuator of a sewing machine, comprising: a driving circuit having two positive electrodes for connecting the two ends of the coil of the stepping motor to a power source a positive side switching element and two ground side switching elements each of which can connect both ends of the coil to a ground; a control signal generating unit that generates a current command value for the stepping motor and generates a control switching command for performing power saving control, wherein the power-saving control drives the positive-side switching element and the ground-side switching element to cause a current flowing from the coil to reflow to the coil itself by self-induction of the coil; a portion that obtains a deviation between a current command value of the stepping motor and a drive current value of a current flowing through the stepping motor, and generates a current value deviation that gives the predetermined deviation gain; and a drive signal generating unit according to the above a current value deviation, generating a driving signal for driving the stepping motor, and driving the above No. 38 S 201245527, the two positive side switching elements and the two ground side switching elements; and a gain adjusting unit that performs the above-described power saving control, when the absolute value of the driving current value is the above When the current command value is equal to or greater than the absolute value of the current command value, the gain is greater than the gain when the absolute value of the drive current value is smaller than the absolute value of the current command value. 6. The sewing machine control device of claim 5, wherein the actuating device is a positioning mechanism that positions the object to be sewn relative to the sewing needle so as to be able to drop the needle at any position of the object to be sewn. 7. A sewing machine comprising: a stepping motor that drives a predetermined actuator; a driving circuit having two positive-side switching elements that connect the two ends of the coil of the stepping motor to a positive pole of a power source, and The two ends of the coil may be connected to the two ground-side switching elements of the ground line, and the control means may be configured to control the driving circuit. The sewing machine is characterized in that the control means includes: a deviation generating unit that determines a deviation between a current command value of the stepping motor and a drive current value of a current flowing through the stepping motor to generate a current value deviation that gives the predetermined deviation gain; and a drive signal generating unit that generates the drive based on the current value deviation And a gain adjusting unit that controls the driving circuit to compare the absolute value of the driving current value by returning the current flowing from the coil to the line 39 201245527 itself by self-induction of the coil The absolute value of the current command value is adjusted to adjust the gain. 8. The sewing machine according to claim 7, wherein the gain adjustment unit sets the absolute value of the drive current value to be smaller than an absolute value of the drive current value when the absolute value of the drive current value is equal to or greater than an absolute value of the current command value. The gain at the absolute value of the above current command value. 9. The sewing machine of claim 7 or 8, wherein the positive electrode side switching element and the ground line side switching element are controlled, wherein the stepping motor is at a predetermined rotation speed or less, and the self-induction of the coil is performed from the above The current flowing out of the coil flows back to the coil itself. 10. The sewing machine of claim 7, wherein the actuating device is a positioning mechanism that positions the object to be sewn relative to the sewing needle so as to be able to drop the needle at any position of the object to be sewn. S 40
TW100143544A 2010-11-29 2011-11-28 Sewing machine control device and sewing machine TWI541404B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010265706A JP5671315B2 (en) 2010-11-29 2010-11-29 Stepping motor control device for sewing machine and sewing machine

Publications (2)

Publication Number Publication Date
TW201245527A true TW201245527A (en) 2012-11-16
TWI541404B TWI541404B (en) 2016-07-11

Family

ID=46407434

Family Applications (1)

Application Number Title Priority Date Filing Date
TW100143544A TWI541404B (en) 2010-11-29 2011-11-28 Sewing machine control device and sewing machine

Country Status (4)

Country Link
JP (1) JP5671315B2 (en)
KR (1) KR101893133B1 (en)
CN (1) CN102560916B (en)
TW (1) TWI541404B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI686051B (en) * 2017-05-15 2020-02-21 日商東京威爾斯股份有限公司 Stepping motor driving device and stepping motor driving method

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102723904A (en) * 2012-07-03 2012-10-10 苏州张扬能源科技有限公司 Frequency-conversion energy-saving stepping motor
JP2015061467A (en) * 2013-09-20 2015-03-30 カシオ計算機株式会社 Stepping motor and clock
CN113832625B (en) * 2021-10-29 2022-07-19 诸暨创加电子设备有限公司 Embroidery machine tabouret driving gain adjusting method and device based on displacement graphic method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5216345A (en) * 1992-05-04 1993-06-01 Hughes Aircraft Company Mixed mode stepper motor controller and method
CN100411298C (en) * 2004-03-30 2008-08-13 日本伺服株式会社 Stepping motor driver
JP2009095148A (en) * 2007-10-09 2009-04-30 Juki Corp Driving device for stepping motor of sewing machine
JP2010074909A (en) * 2008-09-17 2010-04-02 Juki Corp Driving device for stepping motor
JP2010082149A (en) * 2008-09-30 2010-04-15 Juki Corp Sewing machine
CN101834557B (en) * 2010-04-29 2011-12-21 浙江工业大学 Closed-loop continuous tracking control method of electro-mechanical converter of stepping motor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI686051B (en) * 2017-05-15 2020-02-21 日商東京威爾斯股份有限公司 Stepping motor driving device and stepping motor driving method

Also Published As

Publication number Publication date
TWI541404B (en) 2016-07-11
CN102560916B (en) 2015-07-15
KR101893133B1 (en) 2018-08-30
KR20120058423A (en) 2012-06-07
JP5671315B2 (en) 2015-02-18
JP2012120273A (en) 2012-06-21
CN102560916A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
JP4259448B2 (en) Massage machine
US8659259B2 (en) Stepping motor driving apparatus
CN102570940B (en) The control appliance of brushless motor and brushless motor
TW201245527A (en) Control device of sewing machine and sewing machine
CN106877752B (en) Motor drive control device
JP2013163229A (en) Electric tool
CN106160591A (en) Motor drive control device
JP5613441B2 (en) Brushless motor control device, brushless motor device, and driving method of brushless motor
TWI288525B (en) Control circuit of a brushless DC motor
TW556407B (en) Electric motor driving circuit and its method with frequency setting and correction functions
WO2014038144A1 (en) Motor control device, washing machine comprising same, and washer/dryer
TWI297299B (en)
JP2009095148A (en) Driving device for stepping motor of sewing machine
US7467592B2 (en) Sewing machine
JP2018057163A (en) Device for controlling stepping motor and method for controlling stepping motor
US20080278104A1 (en) Control circuit of sensorless motor and control method thereof
Harkare et al. Design and development of a switched reluctance motor and dsPIC based drive
JP2006000393A (en) Sewing machine and control method of the same
JP2002186274A (en) Brushless dc motor controller
JP2012239301A (en) Motor controller
JP2005328972A (en) Device and method for controlling sewing machine motor
JP2001327786A (en) Sewing machine
JP2014090583A (en) Motor control device
JPH0583986A (en) Motor control circuit
TWI333313B (en)