JPH02306603A - Solenoid driving circuit - Google Patents

Solenoid driving circuit

Info

Publication number
JPH02306603A
JPH02306603A JP12659389A JP12659389A JPH02306603A JP H02306603 A JPH02306603 A JP H02306603A JP 12659389 A JP12659389 A JP 12659389A JP 12659389 A JP12659389 A JP 12659389A JP H02306603 A JPH02306603 A JP H02306603A
Authority
JP
Japan
Prior art keywords
solenoid
voltage
duty ratio
power supply
pulse signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP12659389A
Other languages
Japanese (ja)
Inventor
Michio Hisatake
久武 通夫
Hidenori Sasako
秀紀 笹子
Takeshi Kongou
猛 金剛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Janome Corp
Original Assignee
Janome Sewing Machine Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Janome Sewing Machine Co Ltd filed Critical Janome Sewing Machine Co Ltd
Priority to JP12659389A priority Critical patent/JPH02306603A/en
Publication of JPH02306603A publication Critical patent/JPH02306603A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Vehicle Engines Or Engines For Specific Uses (AREA)
  • Electrical Control Of Air Or Fuel Supplied To Internal-Combustion Engine (AREA)
  • Regulating Braking Force (AREA)

Abstract

PURPOSE:To obtain almost constant attracting force and retaining force by providing a controlling means which drives a solenoid with a duty ratio obtained by a first operating means, and drives the solenoid with a duty ratio obtained by a second operating means after a specified time. CONSTITUTION:A solenoid SOL is connected between a power supply Vb and the drain of an element Q1. A free wheel diode D1 is connected parallel to the solenoid SOL. A controlling means which drives the solenoid SOL with a duty ratio obtained by a first operating means and drives the solenoid SOL with a duty ratio obtained by a second operating means after a specified time is provided. Thereby almost constant attracting torque and retaining torque can be obtained.

Description

【発明の詳細な説明】 【産業上の利用分野】 本発明は、パルス幅制御された電圧をソレノイドに印加
する方式のソレノイド駆動回路に関する。 1  【従来の技術及び発明が解決しようとする課題〕
従来の技術として、特開昭57−716号公報「ミシン
の駆動回路」、特開昭59−47714号公報「ミシン
駆動装置の電磁ソレノイド駆動回路」等に開示された技
術がある。 これらは、ソレノイドの吸引時には、ソレノイド用電源
電圧をそのまま印加し、保持時には、所定のデユーティ
−比のパルス信号により印加実効電圧を下げて保持する
技術である。 ソレノイド等の電源は、その電源容量が大きい関係から
、単にトランスの2次側電圧を整流し、平滑化したもの
を使用しているのが一般的である。 その結果、ソレノイド用電源電圧は、 ■)1次側の交流電圧が変動した場合 2)同じトランスから電流を供給している例えばモータ
等の負荷変動があった場合等に変動する。 電源電圧の変動に対処する方法について、ソレノイドの
印加電圧Vbとソレノイドの吸引力Fを示す第8図を参
照しながら説明する。 同図に示すように、ソレノイド吸引力の最小値Fm1n
は、変動するソレノイド用電源の最小電圧Vbmin時
に、作動機構の操作力よりも大きくなるように設計され
ている。 従って、同図における斜線で示す部分は、無用なソレノ
イド吸引力であり、電源回路に大型なものが要求される
と共にソレノイド用電源電圧が高くなるにつれソレノイ
ド吸引時のソレノイド自体および被作動部材の作動音が
大きくなるといった問題あった。          
  −【課題を解決するための手段及び発明の作用】本
発明は、ソレノイド用電源電圧のレベルを検出するソレ
ノイド用電源電圧検出手段と、この信号をデジタル信号
に変換するアナログ−デジタル変換手段と、一定の周期
のパルス信号を発生するパルス幅制御手段と、該パルス
信号により0N−OFF制御されソレノイドを駆動する
スイッチング素子と、ソレノイド吸引時にソレノイドに
かかる印加実効電圧が一定の高電圧Vaとなるように前
記デジタル信号に基づいて前記パルス信号のデユーティ
−比を演算する第1の演算手段と、ソレノイド保持時に
ソレノイドにがかる印加実効電圧が一定の低電圧Vhと
なるように前記デジタル信号に基づいて前記パルス信号
のデユーティ−比を演算する第2の演算手段と、ソレノ
イドの動作指令後、第1の演算手段で求めたデユーティ
−比でソレノイドを駆動し、所定時間後に第2の演算手
段で求めたデユーティ−比でソレノイドを駆動する制御
手段を備えているソレノイド駆動回路を提供するもので
、本発明によれば、 第1にソレノイド用電源電圧が変動しても、ソレノイド
の吸引時には一定の高電圧が、保持時には一定の低電圧
が印加されるので、はぼ一定の吸引力および保持力が得
られるという作用がある。 第2に、従来のように無用なソレノイド吸引力を発生ス
ることがないので、ソレノイド用電源電圧が高くなるに
つれソレノイド吸引時のソレノイド自体および被作動部
材の作動音が大きくなったり、電源回路に大型のものが
要求されるといった問題を解消できるという作用がある
。 【実施例】 以下、本発明を実施例により説明する。 Oソレノイド駆動回路の構成 まず、第1図を参照しながらソレノイド駆動回路の構成
について説明する。 同図において、本発明に無関係な部分の図示は省略しで
ある。 第1図において、ソレノイド用電源電圧Vb(以後電圧
Vb)は、電源回路(図示せず)を構成しているトラン
スの1次側の交流電圧が変−動した場合や同じトランス
から電流を供給しているモータ(図示せず)等の負荷変
動があった場合等にVbmin〜V maxの範囲で変
動する。 電源Vccは、回路制御用電源である。 抵抗RLR2は、電圧Vbの分圧抵抗で、これらの結接
点の分圧を8ビツトのアナログ−デジタル変換手段A/
D (以後A/D変換手段)に出力するようになってお
り、ソレノイド用電源電圧検出手段Vsenを構成して
いる。 このアナログ量の出力電圧は、A/D変換手段でデジタ
ル信号に変換される。 パルス幅制御手段PWMは、一定の周期Tのパルス信号
を発生し、H11出力期間のパルス幅を1周期の1/2
55単位で制御可能な手段である。 即ち、0〜255の数値PWMnにより、ソレノイド動
作時のパルス幅Tnを設定できる。 入出力ボートI10は、ソレノイドの作動指令により、
II L )lレベルとなりソレノイド作動指令信号5
QLonを出力するもので、その出力線はインバータI
NVIを介してアンド・ゲー1−ANDの一方の入力端
子に接続されている。 リード・オンリー・メモリROMには、ソレノイド制御
プログラムやその他側辺回路を動作させるためのプログ
ラムが記憶されている。 ランダム・アクセス・メモリRAMは、プログラム実行
時のデータ処理等に使用される。 パルス幅制御手段PWMの出力線は、アンド・ゲ−)A
NDの他方の入力端子に接続されている。 これら、ROM、RAM、PWMおよびA/D変換手段
は、バスBLIを介してマイクロプロセッサCPUIに
接続されている。 マスクのマイクロプロセッサCPU2は、CPU1に対
してソレノイドの動作等を指令するもので、バスBL2
を介してCPU1に接続されている。 以下、ソレノイドSQLのドライバについて説明する。 パワーMO3FET(以後素子Ql)は、ソレノイドS
QLをスイッチング制御する素子で、素子Q1保護用の
ダイオードD2が内蔵されている。 素子Q1のゲートには、抵抗R4を介してアンド・ゲー
)ANDIが接続されている。 抵抗R4は、アンド・ゲート出力トランジスタ保護用抵
抗である。 ソレノイドSQLは、電源Vbと素子Q1のドレイン間
に接続され、ソレノイドSQLと並列にフリーホイルダ
イオードDIが接続されている。 ダイオードD1には、逆回復時間の短い高周波用ダイオ
ードを使用している。 電源に対してソレノイドSQLと並列に接続されたコン
デンサC2は、ソレノイドのON、OFF時に電源電圧
Vbの電圧変動を軽減するためのものである。 インバータINVIの入力線側に接続され、電源Vcc
にプルアップされた抵抗R3は、電源投入時にインバー
タINVIの入力レベルをII HI+lレベルして、
ソレノイドが誤動作するのを防止するための抵抗である
。 OPWM制御による印加実効電圧の制御法に、PWM制
御によるソレノイドへの印加実効電圧としての一定の高
電圧Vaおよび一定の低電圧Vhの制御について説明す
る。 ソレノイド用電源電圧検出手段V senの出力電圧が
8ビツトのA/D変換手段でデジタル値に変換され、そ
のデジタル値ADxは、 ADx−KVb・・・・・・・・・・・・・・・・・・
・・(1)但し、K=255/VccXR1/(R1+
R2)となる。 1)まず、ソレノイドに前記した一定の印加実効電圧V
a、Vhを印加するには、パルス幅制御手段PWMに出
力する定数のデジタル値ADa、ADhをデータとして
メモリに記憶させておく。 これらのデジタル値は、予め以下に示す各式により決定
される。 ADa=KVa・・・・・・・・・・・・・・・・・・
・・(2)ADh−KVh・・・・・・・・・・・・・
・・・・・・・(3)2)次に、ソレノイドに一定の印
加実効電圧Va。 Vhを印加させるためのPWM値PWMa、PWMhの
計算式を求める。 第3図から、印加実効電圧Vaは、 Va−VbxPWMa/255”・、”(4)(4)式
から、 PWMa−255Va/Vb””(5)(1)式から、 Vb−ADx/K・・・・・・・・・・・・・・・・・
・(6)(2)式から、 V a = A D a / K・・・・・・・・・・
・・・・・・・・(7)(5)式に(6)式(7)式を
代入すると、PWMa−255ADa/ADx・・・(
8)同様にしてPWMhを求めると、 PWMh−255ADh/ADx・・・(9)となる。 電圧Va、Vhと電圧Vbとの関係については、電圧V
aが電圧Vhよりも高いことは勿論であるが、電圧Va
を電圧Vbの変動幅の最小値Vbminに対して、V 
a (V bminとなるように設定すれば、電圧Vb
が変動しても、常に一定の高電圧Va。 一定の低電圧Vhでソレノイドを制御することができる
。 ○ソレノイドの動作タイミング 次に、第7図のタイミング・チャートを参照しながらソ
レノイド動作のタイミングについて説明する。 同図において、5QLonは、ソレソイド動作指令信号
、SOLpwmはソレノイド作動時の素子Qlへの入力
信号である。 Tはパルス幅制御手段PWMの繰り返し周期である。 Taはソレノイド吸引時のII )i IT出力期間、
Thはソレノイド保持時の“H″出力期間、Ttはソレ
ノイドが作動機構(図示せず)の吸引に要する時間を上
回る所定時間である。 CHECK TIMMIIGは、ソレノイドSQLの電
源電圧■bを測定し、A/D変換して、一定の高電圧V
aまたは一定の低電圧Vhの″′H″出力期出力期間T
a全Thするタイミングで、時間間隔Tc毎に行ってい
る。 従って、電圧Vbが変動しても゛°H″出力期間Taま
たはThは、Tc時間毎に一定の高電圧Vaまたは一定
の低電圧Vhとなるように常に補正されている。 SQL iはソレノイドSQLを流れる電流である。 電流5oLiは前記した周期Tで変動するので、この周
期の電磁音が発生する。 従って、本実施例では周期Tが50μ以下(不可聴音の
20KHz以上)になるようにしている。 O全体の制御動作の概要 まず、第2図を参照しながらシステムに電源が投入され
た時点からのソレノイドを含む全体の制御動作の概要に
ついて説明する。 同図において、(An)(n=L2.3・−)は、各処
理ルーチンを示す。 (AI)マイクロプロセッサCPUIに内蔵されている
RAMのチェック/初期値設定、Iloの入出力の設定
、システムタイマの設定等を行う。 (A2)マイクロプロセッサCPUIに接続されている
周辺回路の論理レベル等の初期設定を行う。 (A3)マスクのマイクロプロセッサCPU2から制御
コマンドが送られている場合は、(A8)へ進む。 (A4)以下の(A5)〜(A7)の各ルーチンでの処
理タイミング、例えばLEDの点滅の時間間隔等のタイ
ミング等をとるためシステムタイマにより5msの時間
でカウントし、カウントが終了したかを判別する。 (A5)A/D変換手段の読み取り1、再実行等を行う
。 詳細については後記する。 (A6)  (A5)で読み取ったAD値に基づいてP
WMに設定する値を計算し、ソレノイドのPWM制御を
する。 詳細については後記する。 (A7)A/D変換手段、ソレノイド以外の周辺回路の
制御を行う。 詳細については省略する。 (A8)  (A3)でマスタCPUから制御コマンド
該送られて来た場合の処理を行う。(A9)  (A8
)から呼び出される処理ルーチンの一つで、ソレノイド
の0N1OFF制御を行う。 詳細については後記する。 (AIO)同じ< (A8)から呼び出される処理ルー
チンの一つで、ソレノイド以外の周辺回路のコマンド処
理を行う。これらの処理ルーチンの詳細については省略
する。 OA/D変換手段関係の制御 次に、第3図を参照しながらA/D変換手段関係の制御
について説明する。 同図において、(B n) (n−12,3−・)は制
御の各ルーチンを示す。 (B1)変換を開始した前回のA/D変換が終了してい
なければ、以下の処理を行わず終了する。 (B2)変換されたAD値を読み取る。 (B3)読み取ったAD値をRAMに保存する。 この値は後記するPWM制御の(C3) 、(C7)の
処理およびソレノイドの動作コマンド処理の(B4)の
処理で使用される。 AD値をRAMに保存するのは、これら(C3)、(C
7) 、(B4)の各処理でAD値を使用する時にA/
D変換中の可能性があるからである。 (B4)A/D変換が終了したことを知らせるためのA
/D変換終了フラグをクリアする。 このフラグは、A/D変換が終了するとハードウェアに
よって自動的にセットされるものである。従って、この
フラグを見ることにより、A/D変換中か終了したかが
分かる。 (B5)次回の処理の時に(B3)でAD値を読み込む
ためにA/D変換を開始し、処理を終了する。 ○ソレノイドのPWM制御 次に、第4図を参照しながらソレノイドのPWM制御に
ついて説明する。 同図において、(Cn) (n−1,2,3・・−)は
制御の各ルーチンを示す。 (C1)ソレノイドが動作中であるかを判別する。 ソレノイドが非動作状態(OFF)の場合には、以下の
何の処理も行わずに終了する。 (C2)現在、ソレノイドが保持中であるかを判別する
。保持中の場合、(C6)の処理ルーチンに進む。 保持中の判別は、(C5)で更新された吸引中カウンタ
の値が0になっているかで判別する。 (C3)前記した(B4)で保存したA−D値から印加
実効電圧が一定の高電圧Va(約28V)となるように
PWMのパルス幅を計算する。 (C4)  (C3)の計算値によってPWM制御手段
のPWM設定値を更新する。 (C5)吸引中カウンタの値をダウンカウントにより更
新し処理を終了する。 (C6)前記した(B4)で保存したAD値から印加実
効電圧が一定の低電圧Va(約12V)となるようにP
WMのパルス幅を計算する。 (C7)  (C6)の計算値によってPWM制御手段
のPWM設定値を更新し、処理を終了する。 ○ソレノイド制御のコマンド処理 次に、第5図を参照しながらソレノイド制御のコマンド
処理について説明する。同図において、(Dn)(n=
L2.3・・・)は制御の各ルーチンを示す。 (Di)マスクCPU(CPU2)からのコマンドがソ
レノイドの作動コマンドONか、停止コマンドOFFか
を判別し、作動コマンドの場合は(B2)〜(B7)の
処理を行い、停止コマンドの場合は(B8) 、(B9
)の処理を行う。 (B2)既にソレノイドが作動中ならば以後の処理を行
わずに終了する。 作動中であるかの判別は、以前ソレノイド作動コマンド
が実行されたときに次の(B3)で作動フラグがセット
されるので、これを調べる。 (B3)ソレノイドが作動中であることを示すフラグを
セットする。 このフラグのセットにより、コマンドの多重実行や第5
図のルーチンが無駄に実行されることが防止できる。 (B4)前記した(B4)で保存したAD値から印加実
効電圧が一定の高電圧Va(約28V)となるようにP
WMのパルス幅を計算する。 (B5)  (B4)の計算値によってPWM制御手段
のPWM設定値を更新し、処理を終了する。 (B6)ソレノイド出力ポートをII L I+レベル
にすると共にPWMの出力をソレノイドに加える。 これによって、ソレノイドは動作状態ONとなる。 (B7)一定の高電圧から一定の低電圧へ切り換える時
間(約100〜200m5)をカーウンタに設定し、処
理を終了する。 (B8)ソレノイド作ル中7ラグをクリアする。 (B9)ソレノイド出力ポートを” H”レベルにし、
ソレノイドをOFFさせる。 【発明の効果】 以上のように本発明は、第1にソレノイド用電源電圧が
変動しても、吸引時には一定の高電圧が、保持時には一
定の低電圧が印加されるので、はぼ一定の吸引トルクお
よび保持トルクが得られるという効果がある。 第2に、従来のように無用なソレノイド吸引力を発生す
ることがないので、ソレノイド用電源電圧が高くなるに
つれソレノイド吸引時のソレノイド自体および被作動部
材の作動音が大きくなったり、電源回路に大型のものが
要求されるといった問題を解消できるという効果がある
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a solenoid drive circuit that applies a voltage whose pulse width is controlled to a solenoid. 1 [Problems to be solved by conventional technology and invention]
As conventional techniques, there are techniques disclosed in Japanese Patent Laid-Open Publication No. 57-716 "Drive Circuit for Sewing Machine" and Japanese Patent Laid-open Publication No. 59-47714 "Electromagnetic Solenoid Drive Circuit for Sewing Machine Drive Device." These are techniques in which the solenoid power supply voltage is applied as is when the solenoid is attracted, and when the solenoid is held, the applied effective voltage is lowered and held using a pulse signal with a predetermined duty ratio. Due to the large capacity of the power source such as a solenoid, it is common to simply rectify and smooth the secondary voltage of a transformer. As a result, the solenoid power supply voltage fluctuates when (1) the alternating current voltage on the primary side fluctuates, and (2) when there is a load fluctuation of a motor or the like to which current is supplied from the same transformer. A method for dealing with fluctuations in power supply voltage will be described with reference to FIG. 8, which shows the applied voltage Vb of the solenoid and the attraction force F of the solenoid. As shown in the figure, the minimum value Fm1n of the solenoid suction force
is designed to be larger than the operating force of the actuating mechanism when the minimum voltage Vbmin of the varying solenoid power source is reached. Therefore, the shaded area in the figure is unnecessary solenoid suction force, which requires a larger power supply circuit, and as the solenoid power supply voltage increases, the solenoid itself and the actuated member operate when the solenoid is suctioned. There was a problem with the sound getting louder.
- [Means for Solving the Problems and Effects of the Invention] The present invention provides a solenoid power supply voltage detection means for detecting the level of the solenoid power supply voltage, an analog-to-digital conversion means for converting this signal into a digital signal, A pulse width control means that generates a pulse signal of a constant period, a switching element that is ON-OFF controlled by the pulse signal to drive the solenoid, and a switching element that drives the solenoid so that the effective voltage applied to the solenoid when the solenoid is attracted becomes a constant high voltage Va. a first calculation means for calculating the duty ratio of the pulse signal based on the digital signal; a second calculation means for calculating the duty ratio of the pulse signal; and after a command to operate the solenoid, the solenoid is driven with the duty ratio obtained by the first calculation means, and after a predetermined time, the duty ratio is calculated by the second calculation means. The present invention provides a solenoid drive circuit equipped with a control means for driving a solenoid at a duty ratio.Firstly, even if the solenoid power supply voltage fluctuates, a constant high voltage is maintained when the solenoid is attracted. However, since a constant low voltage is applied during holding, there is an effect that a more or less constant attractive force and holding force can be obtained. Second, unlike in the past, unnecessary solenoid suction force is not generated, so as the solenoid power supply voltage increases, the operating noise of the solenoid itself and the actuated member becomes louder when the solenoid is suctioned, and the power supply circuit This has the effect of solving the problem of requiring large-sized devices. [Examples] The present invention will be explained below using Examples. Configuration of O Solenoid Drive Circuit First, the configuration of the solenoid drive circuit will be explained with reference to FIG. In the figure, illustrations of parts unrelated to the present invention are omitted. In Figure 1, the solenoid power supply voltage Vb (hereinafter referred to as voltage Vb) is determined when the AC voltage on the primary side of the transformer that constitutes the power supply circuit (not shown) fluctuates or when current is supplied from the same transformer. When there is a load change on a motor (not shown), etc., which is running, the voltage changes within the range of Vbmin to Vmax. Power supply Vcc is a power supply for circuit control. The resistor RLR2 is a voltage dividing resistor for the voltage Vb, and converts the voltage at these junctions into an 8-bit analog-to-digital converter A/
D (hereinafter referred to as A/D conversion means), and constitutes solenoid power supply voltage detection means Vsen. This analog output voltage is converted into a digital signal by an A/D conversion means. The pulse width control means PWM generates a pulse signal with a constant period T, and sets the pulse width of the H11 output period to 1/2 of one period.
This is a means that can be controlled in units of 55. That is, the pulse width Tn during solenoid operation can be set by a numerical value PWMn from 0 to 255. The input/output boat I10 operates according to the solenoid activation command.
II L) becomes l level and solenoid operation command signal 5
It outputs QLon, and its output line is connected to inverter I.
It is connected to one input terminal of the AND gate 1-AND via the NVI. The read-only memory ROM stores a solenoid control program and other programs for operating side circuits. The random access memory RAM is used for data processing and the like during program execution. The output line of the pulse width control means PWM is
Connected to the other input terminal of ND. These ROM, RAM, PWM, and A/D conversion means are connected to the microprocessor CPUI via the bus BLI. The microprocessor CPU2 of the mask instructs the CPU1 to operate the solenoid, etc., and is connected to the bus BL2.
It is connected to CPU1 via. The solenoid SQL driver will be described below. The power MO3FET (hereinafter referred to as element Ql) is the solenoid S
This is an element that controls switching of QL, and includes a built-in diode D2 for protecting element Q1. ANDI is connected to the gate of element Q1 via resistor R4. The resistor R4 is a resistor for protecting the AND gate output transistor. The solenoid SQL is connected between the power supply Vb and the drain of the element Q1, and a freewheel diode DI is connected in parallel with the solenoid SQL. A high frequency diode with a short reverse recovery time is used as the diode D1. A capacitor C2 connected in parallel with the solenoid SQL to the power supply is for reducing voltage fluctuations in the power supply voltage Vb when the solenoid is turned on and off. Connected to the input line side of the inverter INVI, and the power supply Vcc
When the power is turned on, the resistor R3 pulled up to
This is a resistance to prevent the solenoid from malfunctioning. As a method of controlling the effective voltage applied by OPWM control, a method of controlling a constant high voltage Va and a constant low voltage Vh as the effective voltage applied to the solenoid by PWM control will be described. The output voltage of the solenoid power supply voltage detection means Vsen is converted into a digital value by an 8-bit A/D conversion means, and the digital value ADx is as follows: ADx-KVb...・・・・・・
...(1) However, K=255/VccXR1/(R1+
R2). 1) First, apply the above-mentioned constant effective voltage V to the solenoid.
In order to apply a and Vh, constant digital values ADa and ADh to be output to the pulse width control means PWM are stored in a memory as data. These digital values are determined in advance using the following formulas. ADa=KVa・・・・・・・・・・・・・・・・・・
・・・(2)ADh-KVh・・・・・・・・・・・・
(3) 2) Next, apply a constant effective voltage Va to the solenoid. Calculation formulas for PWM values PWMa and PWMh for applying Vh are determined. From Fig. 3, the applied effective voltage Va is: Va-VbxPWMa/255"." (4) From equation (4), PWMa-255Va/Vb"" (5) From equation (1), Vb-ADx/K.・・・・・・・・・・・・・・・・・・
・(6) From formula (2), V a = A Da / K・・・・・・・・・・・・
...... Substituting equations (6) and (7) into equations (7) and (5), PWMa-255ADa/ADx... (
8) Similarly, PWMh is calculated as follows: PWMh - 255ADh/ADx (9). Regarding the relationship between the voltages Va, Vh and the voltage Vb, the voltage V
It goes without saying that a is higher than the voltage Vh, but the voltage Va
is the minimum value Vbmin of the fluctuation range of voltage Vb, V
a (Vbmin), the voltage Vb
The high voltage Va is always constant even if the voltage Va changes. The solenoid can be controlled with a constant low voltage Vh. ○Operation Timing of Solenoid Next, the timing of solenoid operation will be explained with reference to the timing chart shown in FIG. In the figure, 5QLon is a solenoid operation command signal, and SOLpwm is an input signal to element Ql when the solenoid is activated. T is the repetition period of the pulse width control means PWM. Ta is II)i IT output period during solenoid suction,
Th is the "H" output period when the solenoid is held, and Tt is a predetermined time period that exceeds the time required for the solenoid to attract the actuating mechanism (not shown). CHECK TIMMIIG measures the power supply voltage b of solenoid SQL, A/D converts it, and outputs a constant high voltage V.
a or ``H'' output period T of a constant low voltage Vh
It is performed every time interval Tc at the timing of a total Th. Therefore, even if the voltage Vb fluctuates, the "°H" output period Ta or Th is always corrected so that it becomes a constant high voltage Va or a constant low voltage Vh every Tc time.SQL i is a solenoid SQL Since the current 5oLi fluctuates with the period T described above, electromagnetic sound with this period is generated. Therefore, in this embodiment, the period T is set to be 50 μ or less (20 KHz or more of inaudible sound). Outline of the overall control operation First, an overview of the overall control operation including the solenoid from the time the power is turned on to the system will be explained with reference to Figure 2. In the figure, (An) (n =L2.3・-) indicates each processing routine. (AI) Checks/initializes the RAM built in the microprocessor CPUI, sets Ilo input/output, and sets the system timer. ( A2) Initialize the logic level, etc. of the peripheral circuits connected to the microprocessor CPUI. (A3) If a control command is sent from the mask microprocessor CPU2, proceed to (A8). (A4) In order to determine the processing timing in each of the following routines (A5) to (A7), for example, the timing of blinking LEDs, etc., a system timer counts every 5 ms, and it is determined whether the counting is completed. (A5) Read 1 of the A/D conversion means, re-execute, etc. Details will be described later. (A6) Based on the AD value read in (A5), P
Calculate the value to be set for WM and perform PWM control of the solenoid. Details will be described later. (A7) Control peripheral circuits other than the A/D conversion means and solenoids. Details are omitted. (A8) In (A3), processing is performed when the control command is sent from the master CPU. (A9) (A8
) is one of the processing routines called from ) and performs ON/OFF control of the solenoid. Details will be described later. (AIO) Same < This is one of the processing routines called from (A8) and performs command processing for peripheral circuits other than solenoids. Details of these processing routines will be omitted. Control related to the OA/D conversion means Next, control related to the A/D conversion means will be explained with reference to FIG. In the figure, (B n) (n-12, 3-) indicates each control routine. (B1) If the previous A/D conversion that started the conversion has not been completed, the process ends without performing the following processing. (B2) Read the converted AD value. (B3) Save the read AD value in RAM. This value is used in the processes (C3) and (C7) of PWM control and the process (B4) of solenoid operation command processing, which will be described later. These (C3) and (C
7) When using the AD value in each process of (B4), A/
This is because there is a possibility that D conversion is in progress. (B4) A to notify that A/D conversion has finished
/Clear the D conversion end flag. This flag is automatically set by hardware when A/D conversion is completed. Therefore, by looking at this flag, it can be determined whether A/D conversion is in progress or has ended. (B5) During the next process, A/D conversion is started in order to read the AD value in (B3), and the process ends. PWM control of the solenoid Next, PWM control of the solenoid will be explained with reference to FIG. In the figure, (Cn) (n-1, 2, 3, . . . -) indicates each control routine. (C1) Determine whether the solenoid is in operation. If the solenoid is in a non-operating state (OFF), the process ends without performing any of the following processes. (C2) Determine whether the solenoid is currently being held. If it is being held, the process proceeds to (C6). It is determined whether the suction is being held or not by checking whether the value of the suction counter updated in (C5) is 0. (C3) Calculate the PWM pulse width from the A-D value saved in (B4) above so that the applied effective voltage becomes a constant high voltage Va (approximately 28 V). (C4) Update the PWM setting value of the PWM control means with the calculated value of (C3). (C5) Update the value of the in-suction counter by counting down, and end the process. (C6) From the AD value saved in (B4) above, set P so that the applied effective voltage becomes a constant low voltage Va (approximately 12V).
Calculate the WM pulse width. (C7) Update the PWM setting value of the PWM control means with the calculated value of (C6), and end the process. Command processing for solenoid control Next, command processing for solenoid control will be explained with reference to FIG. In the same figure, (Dn) (n=
L2.3...) indicates each control routine. (Di) Determine whether the command from the mask CPU (CPU2) is a solenoid operation command ON or a stop command OFF, and if it is an operation command, perform the processing of (B2) to (B7), and if it is a stop command, perform ( B8) , (B9
). (B2) If the solenoid is already in operation, the process ends without performing any further processing. To determine whether the solenoid is in operation, check the operation flag, which is set in the next step (B3) when the solenoid operation command was previously executed. (B3) Set a flag indicating that the solenoid is in operation. Setting this flag allows multiple execution of commands and
It is possible to prevent the routine shown in the figure from being executed in vain. (B4) From the AD value saved in (B4) above, set P so that the applied effective voltage becomes a constant high voltage Va (approximately 28V).
Calculate the WM pulse width. (B5) Update the PWM setting value of the PWM control means with the calculated value of (B4), and end the process. (B6) Set the solenoid output port to II L I+ level and apply PWM output to the solenoid. This turns the solenoid into an ON state. (B7) Set the time (approximately 100 to 200 m5) for switching from a constant high voltage to a constant low voltage in a counter, and end the process. (B8) Clear 7 lags during solenoid creation. (B9) Set the solenoid output port to "H" level,
Turn off the solenoid. Effects of the Invention As described above, the present invention has the following advantages: First, even if the power supply voltage for the solenoid fluctuates, a constant high voltage is applied during suction and a constant low voltage is applied during holding. This has the effect of providing suction torque and holding torque. Second, because it does not generate unnecessary solenoid suction force like in the past, as the solenoid power supply voltage increases, the operating noise of the solenoid itself and the actuated member when the solenoid is suction increases, and the power supply circuit This has the effect of solving the problem of requiring a large size.

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

第1図〜第7図は本発明の実施例に係り、第1図は制御
システムのブロック図、第2図はマイクロプロセッサC
PUI全体の制御動作を示す70−チャート、第3図は
A/D変換関係の制御動作を示すフローチャート、第4
図はソレノイドのPWM制御を示すフローチャート、第
5図はソレノイドの制御動作を示すフローチャート、第
6図はソレノイドの印加実効電圧を求めるための説明図
、第7図はソレノイド制御のタイミング・チャート、で
ある。 第8図はソレノイド用電圧Vbとソレノイド吸引力Fと
の関係により、従来例を説明する図である。 A/Dはアナログ−デジタル変換手段、ONはソレノイ
ドの動作指令、PWMはパルス幅制御手段、Qlはスイ
ッチング素子、SQLはソレノイド、Vbはソレノイド
用電源、Vaは一定の高電圧、Vhは一定の低電圧、T
cは一定時間間隔、Ttは所定時間、(C3) 、(D
4)は第1の演算手段、(C6)は第2の演算手段、(
C2) 、(C5) 、(C7)は制御手段である。 第  4  図 第5図
1 to 7 relate to embodiments of the present invention, FIG. 1 is a block diagram of a control system, and FIG. 2 is a microprocessor C
70-chart showing the control operation of the entire PUI, FIG. 3 is a flowchart showing the control operation related to A/D conversion, and FIG.
Figure 5 is a flowchart showing PWM control of the solenoid, Figure 5 is a flowchart showing the control operation of the solenoid, Figure 6 is an explanatory diagram for determining the effective voltage applied to the solenoid, and Figure 7 is a timing chart of solenoid control. be. FIG. 8 is a diagram illustrating a conventional example based on the relationship between the solenoid voltage Vb and the solenoid attraction force F. A/D is an analog-to-digital conversion means, ON is a solenoid operation command, PWM is a pulse width control means, Ql is a switching element, SQL is a solenoid, Vb is a power supply for the solenoid, Va is a constant high voltage, and Vh is a constant voltage. Low voltage, T
c is a fixed time interval, Tt is a predetermined time, (C3), (D
4) is the first calculation means, (C6) is the second calculation means, (
C2), (C5), and (C7) are control means. Figure 4 Figure 5

Claims (1)

【特許請求の範囲】 I.作動機構を駆動するソレノイドと、交流電源の変動
に伴い電圧変動するソレノイド用電源と、ソレノイド用
電源の電圧レベルを検出するソレノイド用電源電圧検出
手段と、該検出手段の検出信号をデジタル信号に変換す
るアナログ−デジタル変換手段と、一定の周期のパルス
信号を発生するパルス幅制御手段と、該パルス信号によ
りON−OFF制御されソレノイドを駆動するスイッチ
ング素子と、ソレノイド吸引時にソレノイドにかかる印
加実効電圧が一定の高電圧Vaとなるように前記デジタ
ル信号に基づいて前記パルス信号のデューティー比を演
算する第1の演算手段と、ソレノイド保持時にソレノイ
ドにかかる印加実効電圧が一定の低電圧Vhとなるよう
に前記デジタル信号に基づいて前記パルス信号のデュー
ティー比を演算する第2の演算手段と、ソレノイドの動
作指令後、第1の演算手段で求めたデューティー比でソ
レノイドを駆動し、所定時間後に第2の演算手段で求め
たデューティー比でソレノイドを駆動する制御手段を備
えていることを特徴とするソレノイド駆動回路。 II.前記一定の高電圧Vaは、ソレノイド用電源電圧
Vbの変動幅の最小値以下に設定され、デューティー比
はソレノイドの動作指令後から一定時間間隔毎に演算さ
れることを特徴とする請求項1に記載のソレノイド駆動
回路。
[Claims] I. A solenoid that drives the operating mechanism, a solenoid power source whose voltage fluctuates with alternating current power source fluctuations, a solenoid power source voltage detection means that detects the voltage level of the solenoid power source, and converts the detection signal of the detection means into a digital signal. an analog-to-digital conversion means for generating a pulse signal of a constant period; a switching element for driving a solenoid that is ON-OFF controlled by the pulse signal; and an effective voltage applied to the solenoid when the solenoid is attracted. a first calculating means for calculating the duty ratio of the pulse signal based on the digital signal so that a constant high voltage Va is applied; a second calculation means for calculating the duty ratio of the pulse signal based on the digital signal; and a second calculation means for driving the solenoid with the duty ratio determined by the first calculation means after a command to operate the solenoid; A solenoid drive circuit characterized by comprising a control means for driving a solenoid with a duty ratio determined by a calculation means. II. According to claim 1, the constant high voltage Va is set to be less than or equal to a minimum value of a fluctuation width of the solenoid power supply voltage Vb, and the duty ratio is calculated at regular time intervals after the solenoid operation command is issued. The solenoid drive circuit described.
JP12659389A 1989-05-22 1989-05-22 Solenoid driving circuit Pending JPH02306603A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12659389A JPH02306603A (en) 1989-05-22 1989-05-22 Solenoid driving circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12659389A JPH02306603A (en) 1989-05-22 1989-05-22 Solenoid driving circuit

Publications (1)

Publication Number Publication Date
JPH02306603A true JPH02306603A (en) 1990-12-20

Family

ID=14939025

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12659389A Pending JPH02306603A (en) 1989-05-22 1989-05-22 Solenoid driving circuit

Country Status (1)

Country Link
JP (1) JPH02306603A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008060461A (en) * 2006-09-01 2008-03-13 Fuji Electric Fa Components & Systems Co Ltd Electromagnetic drive unit
JP2010103262A (en) * 2008-10-22 2010-05-06 Mitsubishi Heavy Ind Ltd Inductor drive circuit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008060461A (en) * 2006-09-01 2008-03-13 Fuji Electric Fa Components & Systems Co Ltd Electromagnetic drive unit
JP2010103262A (en) * 2008-10-22 2010-05-06 Mitsubishi Heavy Ind Ltd Inductor drive circuit
US8508201B2 (en) 2008-10-22 2013-08-13 Mitsubishi Heavy Industries, Ltd. Inductor driving circuit

Similar Documents

Publication Publication Date Title
EP0700594B1 (en) Electric motor drive
JPH06178579A (en) Refrigeration cycle controller
US6759826B2 (en) Control strategy for switched reluctance drive systems
JPH02306603A (en) Solenoid driving circuit
JP2003284352A (en) Method and device for optimizing dead time of inverter
JP4423468B2 (en) Power start circuit, start / stop order control device, and start / stop order control method
JP3252603B2 (en) Inverter current limit loss increase prevention method
CN112313872A (en) Control device and control method for stepping motor
JPS58215997A (en) Driving method for stepping motor
JPH09285108A (en) Dc voltage step-up circuit and solenoid drive unit
JP2924347B2 (en) DC motor start / stop device
JPH1023779A (en) Voltage driven transistor drive power supply apparatus
JP3764513B2 (en) Method and apparatus for controlling current profile in an SRM
JP2003199334A (en) Power supply circuit and method of feeding power
JP4392897B2 (en) Drive control device for brushless motor
JP4143153B2 (en) Control device for DC / DC converter
JP2000287455A (en) Control of inverter circuit power supply
JPH0545110Y2 (en)
JPH0449892A (en) Pump drive
JPH02112208A (en) Solenoid drive circuit
JP2672698B2 (en) Hysteresis motor drive
JP2913596B2 (en) Stepping motor control device
JPS6218007Y2 (en)
JPS62233095A (en) Drive circuit for inductive load
JPS589599A (en) Stepping motor for electronic watch