JPH09121549A - Ac output controller - Google Patents

Ac output controller

Info

Publication number
JPH09121549A
JPH09121549A JP8241354A JP24135496A JPH09121549A JP H09121549 A JPH09121549 A JP H09121549A JP 8241354 A JP8241354 A JP 8241354A JP 24135496 A JP24135496 A JP 24135496A JP H09121549 A JPH09121549 A JP H09121549A
Authority
JP
Japan
Prior art keywords
value
voltage
output
data
current
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
JP8241354A
Other languages
Japanese (ja)
Inventor
Keiji Iwata
圭司 岩田
Michihisa Murasato
道久 村里
Kenichi Tanigawa
健一 谷川
Sadaji Tamoto
貞治 田本
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.)
Nippon Steel Corp
Original Assignee
Nippon Steel Corp
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 Nippon Steel Corp filed Critical Nippon Steel Corp
Priority to JP8241354A priority Critical patent/JPH09121549A/en
Publication of JPH09121549A publication Critical patent/JPH09121549A/en
Pending legal-status Critical Current

Links

Landscapes

  • Inverter Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain an inverter which shows a high control precision and excellent stability. SOLUTION: In an inverter for DC-AC conversion which has an inverter bridge controlled by a PWM controller, the PWM control is performed in a first control loop 22a by using the difference between the AC instantaneous value of an inverter output and the amplitude of a waveform datum which is read out of an AC waveform memory. Further, the amplitude value of the waveform datum is multiplied by a factor which is adjusted in accordance with the error between the AC average value of the current or voltage of the inverter output and a control target value and the PWM control is performed in a second control loop 22b by using the waveform datum having the adjusted amplitude. As the factor by which the waveform datum is multiplied is adjusted by a delta method wherein only a minute increase/decrease is operated, an inverter which shows a high precision and excellent stability can be obtained.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、交流出力の制御装
置に関し、特に、直流電力を交流電力に変換して負荷に
給電するインバータ、即ち、スイッチング素子で直流電
圧をチョッピングして正,負パルス状に交番する交流電
圧を生成するスイッチング回路と、このスイッチング回
路に、その交流出力電圧を時系列で所定周波数の正弦波
状交流電圧とするための、PWMパルスを与えるPWM
コントローラを備える、いわゆる電子式のインバータに
適用して好ましい交流出力制御装置に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an AC output control device, and more particularly to an inverter for converting DC power into AC power and feeding the load to the load, that is, a DC voltage is chopped by a switching element to generate positive and negative pulses. A switching circuit for generating alternating alternating voltage, and a PWM for giving a PWM pulse to the switching circuit so that the alternating output voltage becomes a sinusoidal alternating voltage of a predetermined frequency in time series.
The present invention relates to an alternating-current output control device that is preferably applied to a so-called electronic inverter having a controller.

【0002】[0002]

【従来の技術】この種のインバータの上述のスイッチン
グ回路は、本発明の実施の形態を示す図1を参照して説
明すると、直流電圧入力端(2a,2b) と交流出力端(4a,4
b) の間にあって、交流出力端の一方(4a)と直流電圧入
力端の一方(2a)の間、および、交流出力端の他方(4b)と
直流電圧入力端の他方(2b)の間を、同時に同期してオン
/オフする第1組のスイッチング回路(Qu,Qy,3u,3y) 、
および、交流出力端の前記一方(4a)と直流電圧入力端の
前記他方(2b)の間、および、交流出力端の前記他方(4b)
と直流電圧入力端の前記一方(2a)の間を、同時に同期し
てオン/オフする第2組のスイッチング回路(Qv,Qx,3v,
3x) 、を含み、その交流出力端(4a,4b) に昇圧ラトンス
(6) の一次巻線が接続され、その二次巻線が負荷出力端
(14a,14b) に接続されている。
2. Description of the Related Art The above-mentioned switching circuit of an inverter of this type will be described with reference to FIG. 1 showing an embodiment of the present invention.
b) between one of the AC output terminals (4a) and one of the DC voltage input terminals (2a), and between the other of the AC output terminals (4b) and the other of the DC voltage input terminals (2b). , A first set of switching circuits (Qu, Qy, 3u, 3y) that are turned on / off synchronously at the same time,
And between the one of the AC output terminals (4a) and the other of the DC voltage input terminals (2b), and the other of the AC output terminals (4b)
The second set of switching circuits (Qv, Qx, 3v,
3x), and the boost latons at its AC output terminals (4a, 4b).
(6) The primary winding is connected and the secondary winding is connected to the load output terminal.
It is connected to (14a, 14b).

【0003】第1組および第2組のスイッチング回路(Q
u,Qy,3u,3y) ,(Qv,Qx,3v,3x) の、PWMパルスによる
スイッチングにより得られる矩形波電圧は、昇圧トラン
ス(6) およびコンデンサならびにインダクタンス素子(1
0)で低周波交流電圧( 例えば50Hz) に平滑化されて負荷
出力端子(14a,14b) から、負荷(LD)に出力される。この
交流出力電圧および電流は電力制御回路(16)にフィード
バックされる。電力制御回路(16)は、出力電圧を目的の
値とするようにPWMパルスのデューティ比を制御す
る。
The first and second sets of switching circuits (Q
u, Qy, 3u, 3y), (Qv, Qx, 3v, 3x), the rectangular wave voltage obtained by the PWM pulse switching is the step-up transformer (6)
At 0), it is smoothed to a low frequency AC voltage (eg 50Hz) and output from the load output terminals (14a, 14b) to the load (LD). This AC output voltage and current are fed back to the power control circuit (16). The power control circuit (16) controls the duty ratio of the PWM pulse so that the output voltage has a target value.

【0004】このような、PWM(パルス幅制御)によ
る交流出力電圧制御の場合、PWMパルスのデューティ
比Dと交流出力電圧瞬時値Vout との間には、 Vout =2Vin(D−0.5 ) の関係がほぼ成り立ち、このデューティ比Dを、例えば
50Hzで増減することにより、出力交流電圧が50H
zとなる。
In the case of such AC output voltage control by PWM (pulse width control), the relationship of Vout = 2Vin (D-0.5) is established between the duty ratio D of the PWM pulse and the AC output voltage instantaneous value Vout. Is substantially established, and the output AC voltage is increased to 50H by increasing / decreasing the duty ratio D at, for example, 50 Hz.
z.

【0005】PWM方式においては、ROMなどのメモ
リに位相をアドレスとしてアドレス対応の正弦波レベル
データ(PWMパルスの高レベル幅、デューティなど)
を0〜90度分、0〜180度分あるいは0〜360度
分格納しておき、クロックパルスをカウントして位相デ
ータを形成し、位相データ対応のレベルデータをメモリ
から読出して、読出したレベルデータに基づいてPWM
パルスを生成して、このPWMパルスに基づいて上述の
各組のスイッチング回路のオン/オフドライブする。こ
れにより波形精度が高い正弦波交流電圧が生成される。
In the PWM system, sine wave level data (high level width of PWM pulse, duty, etc.) corresponding to an address using a phase as an address in a memory such as a ROM.
Stored for 0 to 90 degrees, 0 to 180 degrees, or 0 to 360 degrees, counts clock pulses to form phase data, reads the level data corresponding to the phase data from the memory, and reads the read level. PWM based on data
A pulse is generated, and based on this PWM pulse, the ON / OFF drive of each of the above-mentioned switching circuits is performed. As a result, a sine wave AC voltage with high waveform accuracy is generated.

【0006】このようなインバータ(直流/交流電力変
換装置)は、小型、高効率の特徴を持つことから近年に
おいて情報処理装置等の各種電子機器の電源回路として
広く用いられている。従来は電力制御回路(16)の多くは
専用のアナログICが使用されているが、近年アナログIC
をデジタル処理デバイス、具体的にはマイクロコンピュ
ータ又はワンチップマイクロコンピュータもしくはCP
Uに置き換え、これに制御プログラムを組み込んだもの
が実現されている。デジタル処理デバイスは、インバー
タ回路に対する高度な制御を、少い素子数で実現できる
ため、高機能で安価なインバータが提供される。デジタ
ル処理デバイスを電力制御回路(16)の主体とした場合、
交流出力電圧をA/D変換によって電圧データに変換
し、基準正弦波レベルデータで前述のスイッチング回路
に与える駆動パルスすなわちPWMパルスのデューティ
比Dを定め、このデューティ比Dを電圧データで補正す
ることにより、交流出力電圧を目的のレベルに制御する
ことができる。PWMパルスのデューティ比Dは一般に
入力データ(基準正弦波レベルデータ、電圧データ)と
比例関係を持ち、0〜100%又はα〜(100−α)
%、αは数%、の範囲で変化する。
Since such an inverter (DC / AC power converter) has characteristics of small size and high efficiency, it has been widely used in recent years as a power supply circuit for various electronic equipment such as an information processing apparatus. Conventionally, most of the power control circuits (16) used dedicated analog ICs, but in recent years analog ICs have been used.
A digital processing device, specifically a microcomputer or a one-chip microcomputer or CP
It has been realized by replacing it with U and incorporating a control program into it. Since the digital processing device can realize high-level control of the inverter circuit with a small number of elements, a highly functional and inexpensive inverter is provided. When the digital processing device is the main body of the power control circuit (16),
The AC output voltage is converted into voltage data by A / D conversion, the duty ratio D of the drive pulse, that is, the PWM pulse given to the above-mentioned switching circuit is determined by the reference sine wave level data, and this duty ratio D is corrected by the voltage data. Thus, the AC output voltage can be controlled to a target level. The duty ratio D of the PWM pulse is generally proportional to the input data (reference sine wave level data, voltage data) and is 0 to 100% or α to (100-α).
% And α vary within a range of several%.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、負荷に
電力を供給すると、負荷の電気的特性あるいは変動なら
びに、スイッチング回路を含めてそれから負荷に至る電
気回路の特性により、負荷に加わる交流電圧が正弦波か
らひずんだり、交流電圧レベルが変動したり、過電流が
流れたり、あるいは直流分を含んだり(交流の、正方向
又は負方向へのレベルシフト)を含んだりすることがあ
る。これらは、一時的に生ずることがあるばかりでな
く、定常的に生ずることもあり、電力損失を生ずるばか
りでなく、負荷および又はインバータ自身に故障をもた
らす原因ともなる。特に、定電流,定電圧および又は高
い正弦波波形精度が要求される負荷に対しては、負荷に
動作エラー又は機能劣化をもたらすことになる。
However, when electric power is supplied to the load, the AC voltage applied to the load becomes a sine wave due to the electric characteristics or fluctuations of the load and the characteristics of the electric circuit including the switching circuit to the load. It may be distorted, the AC voltage level may fluctuate, an overcurrent may flow, or a DC component may be included (AC level shift in the positive or negative direction). These not only occur temporarily but also steadily, which not only causes power loss but also causes a failure in the load and / or the inverter itself. In particular, for a load requiring a constant current, a constant voltage and / or a high sine wave waveform accuracy, the load may cause an operation error or a functional deterioration.

【0008】また、上述のスイッチング回路の出力負荷
には、昇圧トランス(6) ,リアクタ(10)などのインダク
タンス素子があり、また負荷(LD)内にも同様なイン
ダクタンス素子があることがある。この場合、交流出力
に直流成分が重畳していると、この直流成分によりイン
ダクタンス素子の磁芯が飽和してしまい、結果としてイ
ンダクタンス素子のインダクタンスが低下し、インダク
タンス素子の正常な動作又は機能が損なわれる。前述の
スイッチング回路が、交流成分のみ出力するようにスイ
ッチング動作していても、他のインバータ構成素子の特
性のばらつきや外部ノイズの影響により、交流出力に直
流分が重畳してしまう可能性があり、直流成分を抑止も
しくは抑制する必要がある。
The output load of the above-mentioned switching circuit may include an inductance element such as a step-up transformer (6) and a reactor (10), and the load element (LD) may also have a similar inductance element. In this case, when a direct current component is superimposed on the alternating current output, the direct current component saturates the magnetic core of the inductance element, and as a result, the inductance of the inductance element decreases, impairing the normal operation or function of the inductance element. Be done. Even if the switching circuit described above performs switching operation to output only the AC component, the DC component may be superimposed on the AC output due to variations in the characteristics of other inverter components and the effects of external noise. , It is necessary to suppress or suppress the DC component.

【0009】このため、従来のアナログICの場合で
は、フィードバック電圧に、直流分補正用の直流電圧を
バイアスする方法がとられている。デジタル処理デバイ
スを用いる場合も同様に、フィードバック電圧のA/D
変換の前で該電圧に直流バイアスを加えることにより、
同様に直流分を補正することができる。しかし、直流分
補正用の直流電圧は固定値(一値)ではなく、調整する
必要があるため、直流バイアス回路は複雑となり追加部
品が多くなる。
Therefore, in the case of the conventional analog IC, a method of biasing the feedback voltage with the DC voltage for correcting the DC component is adopted. Similarly, when a digital processing device is used, the feedback voltage A / D
By applying a DC bias to the voltage before conversion,
Similarly, the DC component can be corrected. However, the DC voltage for correcting the DC component is not a fixed value (single value) but needs to be adjusted, so the DC bias circuit becomes complicated and the number of additional components increases.

【0010】交流出力の直流分抑止のために、デジタル
処理デバイス内でデジタル演算処理により、PWMパル
スのデューティ比Dを補正するには、例えば、所定レベ
ルの正弦波交流を出力するために決定したPWMデータ
NCPU に一律に直流分補正用の補正量NC を加え、一方
向にデータシフトすればよい。すなわち、PWMパルス
のデューティ比Dを定めるデータNPWM を、 NPWM =NCPU +NC とすればよい。この場合、デューティ比Dの最小変化幅
ΔDは、入力データ(基準正弦波レベルデータおよびフ
ィードバック電圧データ)のビット数Nb で決まり、そ
の値は、 ΔD=〔1/(2のNb 乗)〕×100% となる。
In order to suppress the direct current component of the alternating current output, in order to correct the duty ratio D of the PWM pulse by digital arithmetic processing in the digital processing device, for example, it was decided to output a sine wave alternating current of a predetermined level. The correction amount NC for DC component correction may be uniformly added to the PWM data NCPU, and the data may be shifted in one direction. That is, the data NPWM that determines the duty ratio D of the PWM pulse may be set as NPWM = NCPU + NC. In this case, the minimum change width ΔD of the duty ratio D is determined by the number of bits Nb of the input data (reference sine wave level data and feedback voltage data), and its value is ΔD = [1 / (2 Nb power)] × It will be 100%.

【0011】入力データが16ビットなど、ビット数
(桁数)が多い場合、量子化範囲が、2の16乗=65
536段階と細かい幅でデューティ比を指定出来るた
め、上述の補正方法でも容易に直流成分を影響のない範
囲に減少させることが可能であるが、8ビットなど、ビ
ット数が少い場合には、2の8乗=256段階とデュー
ティ比の変化幅ΔDが粗く、直流成分をより細かく正確
に抑制できない場合がある。このため直流成分をキャン
セルさせるためには、ビット数の多いデジタル処理デバ
イスを用いなければならず、そのため部品コストが上昇
する。
When the input data has a large number of bits (digits) such as 16 bits, the quantization range is 2 16 = 65.
Since the duty ratio can be specified with a fine width of 536 steps, it is possible to easily reduce the DC component to a range that does not affect even with the above correction method, but when the number of bits is small, such as 8 bits, There are cases in which the variation width ΔD of the duty ratio is coarse, as 2 8 = 256 steps, and the DC component cannot be suppressed more finely and accurately. Therefore, in order to cancel the DC component, it is necessary to use a digital processing device having a large number of bits, which increases the cost of parts.

【0012】そこで、本発明は、上記の欠点を除去する
ために成されたもので、正弦波波形精度が高い交流出力
電圧を発生するインバータを提供することを第1の目的
とし、過電流抑止効果が高いインバータを提供すること
を第2の目的とし、定電圧特性が高いインバータを提供
することを第3の目的とし、出力交流の直流分を抑制す
ることを第4の目的とする。更に、本発明は、比較的に
少いビット数のデータ処理にて高い直流分抑止効果を得
るデジタル処理方式のインバータを提供することを第5
の目的とする。
Therefore, the present invention has been made in order to eliminate the above-mentioned drawbacks, and its first object is to provide an inverter for generating an AC output voltage having a high sine wave waveform accuracy, and to suppress an overcurrent. A second object is to provide an inverter having a high effect, a third object is to provide an inverter having a high constant voltage characteristic, and a fourth object is to suppress the DC component of the output AC. Further, the present invention provides a digital processing type inverter that obtains a high DC component suppressing effect by processing data with a relatively small number of bits.
The purpose of.

【0013】[0013]

【課題を解決するための手段】本発明に係る交流出力制
御装置は、交流波形メモリから読出した波形データに基
づいて負荷に供給する交流出力を制御する交流出力制御
装置であって、負荷に供給する電圧若しくは電流の瞬時
値を検出する瞬時値検出手段と、負荷に供給する電圧若
しくは電流の瞬時値を特定の位相区間ごとに積算して交
流平均値を算出する平均値検出手段と、上記電圧または
電流の瞬時値と上記交流波形メモリからの波形データと
の差に基づいて第1の制御データを形成する第1の制御
手段と、上記交流平均値と所定の制御目標値とを比較
し、両者の大小関係に応じて増減した係数値を、上記波
形メモリからの波形データの振幅値に掛けて第2の制御
データを形成する第2の制御手段と、上記第1および第
2の制御データにより制御され、電流若しくは電圧が上
記制御目標値に対して制御された出力を発生する交流発
生手段とを備えることを特徴とする。また、上記交流発
生手段は、入力制御データの振幅値に対応してデューテ
ィが時間変化するPWMパルスを発生するPWM手段
と、上記PWM手段の出力パルスによりスイッチング動
作され、直流入力を交流出力に変換するインバータブリ
ッジスイッチとを備えることを特徴とする。本発明に係
る交流出力制御装置は、交流波形メモリから読出した波
形データに基づいて負荷に供給する交流出力を制御する
交流出力制御装置であって、負荷に供給する電圧の瞬時
値を検出する瞬時値検出手段と、負荷に供給する電圧の
瞬時値を特定の位相区間ごとに積算して交流電圧平均値
を算出する平均値検出手段と、上記電圧の瞬時値と上記
交流波形メモリからの波形データとの差に基づいて第1
の制御データを形成する第1の制御手段と、上記電圧の
平均値と所定の電圧目標値とを比較し、両者の大小関係
に応じて増減した係数値を、上記波形メモリからの波形
データの振幅値に掛けて第2の制御データを形成する第
2の制御手段と、上記第1および第2の制御データによ
り制御され、電圧が上記電圧目標値に対して制御された
出力を発生する交流発生手段とを備えることを特徴とす
る。また、上記交流発生手段は、入力制御データの振幅
値に対応してデューティが時間変化するPWMパルスを
発生するPWM手段と、上記PWM手段の出力パルスに
よりスイッチング動作され、直流入力を交流出力に変換
するインバータブリッジスイッチとを備えることを特徴
とする。本発明に係る交流出力制御装置は、交流波形メ
モリから読出した波形データに基づいて負荷に供給する
交流出力を制御する交流出力制御装置であって、負荷に
供給する電圧および電流の瞬時値を検出する瞬時値検出
手段と、負荷に供給する電流の瞬時値を特定の位相区間
ごとに積算して交流電流平均値を算出する平均値検出手
段と、上記電流の平均値と所定の電流目標値とを比較
し、両者の大小関係に応じて増減した係数値を、上記波
形メモリからの波形データの振幅値に掛ける振幅調整手
段と、上記電圧の瞬時値と上記振幅調整手段からの振幅
調整された波形データとの差に基づいて制御データを形
成する制御手段と、上記制御データにより制御され、電
流が上記電流目標値に対して制御された出力を発生する
交流発生手段とを備えることを特徴とする。また、上記
交流発生手段は、入力制御データの振幅値に対応してデ
ューティが時間変化するPWMパルスを発生するPWM
手段と、上記PWM手段の出力パルスによりスイッチン
グ動作され、直流入力を交流出力に変換するインバータ
ブリッジスイッチとを備えることを特徴とする。本発明
に係る交流出力制御装置は、交流波形メモリから読出し
た波形データに基づいて負荷に供給する交流出力を制御
する交流出力制御装置であって、負荷に供給する電圧の
瞬時値を検出する瞬時値検出手段と、負荷に供給する電
圧の瞬時値を特定の位相区間ごとに積算して交流電圧平
均値を算出する平均値検出手段と、上記電圧の平均値と
所定の電圧目標値とを比較し、両者の大小関係に応じて
増減した係数値を、上記波形メモリからの波形データの
振幅値に掛ける振幅調整手段と、上記電圧の瞬時値と上
記振幅調整手段からの振幅調整された波形データとの差
に基づいて制御データを形成する制御手段と、上記制御
データにより制御され、電圧が上記電圧目標値に対して
制御された出力を発生する交流発生手段とを備えること
を特徴とする。また、上記交流発生手段は、入力制御デ
ータの振幅値に対応してデューティが時間変化するPW
Mパルスを発生するPWM手段と、上記PWM手段の出
力パルスによりスイッチング動作され、直流入力を交流
出力に変換するインバータブリッジスイッチとを備える
ことを特徴とする。本発明に係る交流出力制御装置は、
交流波形メモリから読みだした波形データに基づいて負
荷に供給する交流出力を制御する交流出力制御装置であ
って、負荷に供給する電圧及び電流の瞬時値を検出する
瞬時値検出手段と、負荷に供給する電圧及び電流の瞬時
値を特定の位相区間ごとに積算して電流及び電圧の交流
平均値を算出する平均値検出手段と、上記電圧の平均値
と所定の電圧目標値とを比較し、両者の大小関係に応じ
て増減した係数値を、上記波形メモリから波形データの
振幅値に掛ける振幅調整手段と、上記電流の平均値と所
定の電流目標値とを比較し、両者の大小関係に応じて上
記電圧目標値を増減する目標値調整手段と、上記電圧の
瞬時値と上記振幅調整手段からの振幅調整された波形デ
ータとの差に基づいて制御データを形成する制御手段
と、上記制御データにより制御され、電圧が上記電圧目
標値に対して制御された出力を発生する交流発生手段と
を備えることを特徴とする。また、上記交流発生手段
は、入力制御データの振幅値に対応してデューティが時
間変化するPWMパルスを発生するPWM手段と、上記
PWM手段の出力パルスによりスイッチング動作され、
直流入力を交流出力に変換するインバータブリッジスイ
ッチとを備えることを特徴とする。本発明に係る交流出
力制御装置は、交流波形メモリから読出した波形データ
に基づいて負荷に供給する交流出力を制御する交流出力
制御装置であって、負荷に供給する電圧および電流の瞬
時値を検出する瞬時値検出手段と、負荷に供給する電圧
および電流の瞬時値を特定の位相区間ごとに積算して電
圧および電流の交流平均値を算出する平均値検出手段
と、上記電流の平均値と所定の電流目標値とを比較し、
両者の大小関係に応じて増減した係数値を、上記波形メ
モリからの波形データの振幅値に掛けて第1の制御デー
タを形成する第1の制御データ形成手段と、上記電圧の
平均値と所定の電圧目標値とを比較し、両者の大小関係
に応じて増減した係数値を、上記波形メモリからの波形
データの振幅値に掛けて第2の制御データを形成する第
2の制御データ形成手段と、上記電流の平均値と所定の
電流目標値とを比較し、両者の大小関係に応じて上記電
圧目標値を増減する目標値調整手段と、上記電圧の瞬時
値と上記第1又は第2の制御データの一方との差に制御
データの他方を加えて第3の制御データを形成する第3
の制御データ形成手段と、上記第3の制御データにより
制御され、電流、電圧が上記各目標値に対して制御され
た出力を発生する交流発生手段とを備えることを特徴と
する。また、上記交流発生手段は、入力制御データの振
幅値に対応してデューティが時間変化するPWMパルス
を発生するPWM手段と、上記PWM手段の出力パルス
によりスイッチング動作され、直流入力を交流出力に変
換するインバータブリッジスイッチとを備えることを特
徴とする。また、上記第3の制御データ形成手段は、上
記第1及び第2の制御データの和と上記電圧の瞬時値と
の差を形成する手段であることを特徴とする。また、上
記第3の制御データ形成手段が上記第1の制御データか
ら上記電圧の瞬時値との差に所定のゲインを掛け、上記
第2の制御データを加算して第3の制御データを形成す
る手段であることを特徴とする。また、上記第2の制御
データ形成手段は、上記第1の制御データの係数値の増
減を所定の上限値と下限値との間に制限するリミット手
段を備えることを特徴とする。また、上記目標値調整手
段は、上記電流の平均値が電流目標値より大のとき上記
電圧目標値を微小値だけ減少させ、上記電流の平均値が
電流目標値より小のとき上記電圧目標値を微小値だけ増
加させる演算手段と、上記演算手段の出力に対し、所定
上限値と下限値の間を越えないように制限するリミット
手段とを備え、上記上限値は、上記交流発生手段の出力
電圧が上記電圧目標値に一致したとき、定格出力電圧を
負荷に供給するような定数値に設定されていることを特
徴とする。また、上記電流または電圧の平均値を交流半
周期ごとの極性を考慮して積算して交流出力の直流分を
検出する積算手段と、上記積算手段の出力と所定のレン
ジとを比較し、レンジ外であるときレンジの上下に対応
して直流調整データを微小量増減し、レンジ内であると
き上記直流調整データの前値を保持する調整手段と、上
記直流調整データを上記第2の制御データに加算する直
流シフト手段とを更に具備し、上記交流発生手段の出力
の直流分が上記レンジ内の値となって交流分に対し実質
的に無視し得る量となるように直流補正ループ動作が行
なわれるようにしたことを特徴とする。また、上記演算
手段の出力が上記レンジ内であることを示す比較結果を
所定ループ回数以上計数することにより、補正ループの
収束を検出する計数手段と、上記計数手段の収束検出出
力により閉じられて上記交流発生手段の出力を上記負荷
に供給するスイッチ手段とを備えることを特徴とする。
また、上記直流調整データを上記第2の制御データに加
算する上記直流シフト手段は、上記直流調整データの上
位ビット群を上記第2の制御データに加算する第1の加
算手段と、上記直流調整データの下位ビット群をアドレ
スとして、下位ビット群が表わす値に応じた“1”の数
を有する微調整データが読み出されるメモリ手段と、上
記微調整データを直流補正ループの1回ごとに1ビット
ずつシリアルシフトさせるシリアルシフト手段と、上記
シリアルシフト手段の“1”の出力を上記第1の加算手
段の出力に加算する第2の加算手段とを備えることを特
徴とする。
An AC output control device according to the present invention is an AC output control device for controlling an AC output to be supplied to a load based on waveform data read from an AC waveform memory. An instantaneous value detecting means for detecting an instantaneous value of the voltage or current, an average value detecting means for accumulating the instantaneous value of the voltage or current supplied to the load for each specific phase section, and calculating an AC average value; Or, a first control means for forming first control data based on a difference between the instantaneous value of the current and the waveform data from the AC waveform memory is compared with the AC average value and a predetermined control target value, Second control means for forming second control data by multiplying the amplitude value of the waveform data from the waveform memory by a coefficient value increased or decreased according to the magnitude relation between the two, and the first and second control data. By Controlled, current or voltage, characterized in that it comprises an AC generator for generating an output which is controlled with respect to the control target value. Further, the alternating current generating means performs a switching operation by a PWM means for generating a PWM pulse whose duty changes with time according to an amplitude value of the input control data, and an output pulse of the PWM means to convert a direct current input into an alternating current output. And an inverter bridge switch that operates. An AC output control device according to the present invention is an AC output control device that controls an AC output supplied to a load based on waveform data read from an AC waveform memory, and an instantaneous value for detecting an instantaneous value of a voltage supplied to the load. Value detection means, average value detection means for calculating the AC voltage average value by integrating the instantaneous value of the voltage supplied to the load for each specific phase section, the instantaneous value of the voltage and the waveform data from the AC waveform memory First based on the difference between
Of the waveform data from the waveform memory, comparing the average value of the voltage with a predetermined voltage target value and increasing or decreasing the coefficient value according to the magnitude relationship between the two. Second control means for multiplying the amplitude value to form second control data, and an alternating current that is controlled by the first and second control data and that produces a controlled voltage output relative to the voltage target value. And a generating means. Further, the alternating current generating means performs a switching operation by a PWM means for generating a PWM pulse whose duty changes with time according to an amplitude value of the input control data, and an output pulse of the PWM means to convert a direct current input into an alternating current output. And an inverter bridge switch that operates. An AC output control device according to the present invention is an AC output control device that controls an AC output supplied to a load based on waveform data read from an AC waveform memory, and detects an instantaneous value of a voltage and a current supplied to the load. Instantaneous value detecting means, an average value detecting means for calculating the alternating current average value by integrating the instantaneous value of the current supplied to the load for each specific phase section, the average value of the current and a predetermined current target value And an amplitude adjusting means for multiplying the amplitude value of the waveform data from the waveform memory by the coefficient value increased / decreased according to the magnitude relationship between the two, and the instantaneous value of the voltage and the amplitude adjustment from the amplitude adjusting means. Control means for forming control data based on a difference from the waveform data, and alternating current generation means for generating an output controlled by the control data, the current being controlled with respect to the current target value, are provided. And it features. Further, the AC generation means is a PWM for generating a PWM pulse whose duty changes with time in accordance with the amplitude value of the input control data.
Means and an inverter bridge switch that is switched by the output pulse of the PWM means and converts a DC input into an AC output. An AC output control device according to the present invention is an AC output control device that controls an AC output supplied to a load based on waveform data read from an AC waveform memory, and an instantaneous value for detecting an instantaneous value of a voltage supplied to the load. A value detecting means, an average value detecting means for calculating an AC voltage average value by integrating the instantaneous value of the voltage supplied to the load for each specific phase section, and comparing the average value of the voltage with a predetermined voltage target value. Amplitude adjusting means for multiplying the amplitude value of the waveform data from the waveform memory by the coefficient value increased / decreased according to the magnitude relationship between the two, the instantaneous value of the voltage, and the amplitude adjusted waveform data from the amplitude adjusting means. And control means for forming control data based on the difference between the control data and the alternating current generation means for generating an output controlled by the control data with respect to the voltage target value. . Further, the AC generating means is a PW whose duty changes with time in accordance with the amplitude value of the input control data.
It is characterized by comprising PWM means for generating M pulses, and an inverter bridge switch which is switched by an output pulse of the PWM means and converts a DC input into an AC output. The AC output control device according to the present invention,
An AC output control device for controlling an AC output supplied to a load on the basis of waveform data read from an AC waveform memory, wherein an instantaneous value detecting means for detecting an instantaneous value of a voltage and a current supplied to the load and a load Average value detecting means for calculating the AC average value of the current and voltage by integrating the instantaneous values of the voltage and current to be supplied for each specific phase section, and comparing the average value of the voltage with a predetermined voltage target value, Amplitude adjusting means for multiplying the amplitude value of the waveform data from the waveform memory by the coefficient value increased / decreased according to the magnitude relationship between the two and the average value of the current and the predetermined current target value are compared, and the magnitude relationship between the two is determined. Target value adjusting means for increasing / decreasing the voltage target value in response to the control means, and control means for forming control data based on the difference between the instantaneous value of the voltage and the amplitude-adjusted waveform data from the amplitude adjusting means, data More controlled, the voltage, characterized in that it comprises an AC generator for generating an output which is controlled with respect to the voltage target value. Further, the alternating current generating means is switching-operated by a PWM means for generating a PWM pulse whose duty changes with time according to an amplitude value of the input control data, and an output pulse of the PWM means,
And an inverter bridge switch for converting a DC input into an AC output. An AC output control device according to the present invention is an AC output control device that controls an AC output supplied to a load based on waveform data read from an AC waveform memory, and detects an instantaneous value of a voltage and a current supplied to the load. An instantaneous value detecting means, an average value detecting means for accumulating instantaneous values of voltage and current supplied to the load for each specific phase section to calculate an AC average value of the voltage and current, and an average value of the current and a predetermined value. Compare the current target value of
First control data forming means for forming first control data by multiplying the amplitude value of the waveform data from the waveform memory by the coefficient value increased or decreased according to the magnitude relation between the two, and the average value of the voltage and the predetermined value. Second control data forming means for forming the second control data by comparing the amplitude value of the waveform data from the waveform memory with the coefficient value increased / decreased according to the magnitude relationship between the two. And a target value adjusting means for comparing the average value of the current with a predetermined current target value and increasing or decreasing the voltage target value according to the magnitude relation between the two, an instantaneous value of the voltage and the first or second The third control data is formed by adding the other of the control data to one of the control data of
Control data forming means, and alternating current generating means controlled by the third control data to generate outputs whose current and voltage are controlled with respect to the respective target values. Further, the alternating current generating means performs a switching operation by a PWM means for generating a PWM pulse whose duty changes with time according to an amplitude value of the input control data, and an output pulse of the PWM means to convert a direct current input into an alternating current output. And an inverter bridge switch that operates. Further, the third control data forming means is means for forming a difference between the sum of the first and second control data and the instantaneous value of the voltage. Also, the third control data forming means forms a third control data by multiplying the difference between the first control data and the instantaneous value of the voltage by a predetermined gain, and adding the second control data. It is a means to do. Further, the second control data forming means is provided with a limit means for limiting increase / decrease of the coefficient value of the first control data between a predetermined upper limit value and a predetermined lower limit value. Further, the target value adjusting means decreases the voltage target value by a minute value when the average value of the current is larger than the current target value, and the voltage target value when the average value of the current is smaller than the current target value. Is increased by a very small value, and limit means for limiting the output of the calculating means so as not to exceed a predetermined upper limit value and a lower limit value, the upper limit value being the output of the alternating current generating means. It is characterized in that it is set to a constant value such that the rated output voltage is supplied to the load when the voltage matches the voltage target value. In addition, integrating means for integrating the average value of the current or voltage in consideration of the polarity of each AC half cycle to detect the DC component of the AC output, and comparing the output of the integrating means with a predetermined range, the range When it is outside, the DC adjustment data is increased or decreased by a small amount corresponding to the upper and lower parts of the range, and when it is within the range, adjustment means for holding the previous value of the DC adjustment data, and the DC adjustment data for the second control data. Further comprising a DC shift means for adding to the DC correction loop operation so that the DC component of the output of the AC generating unit becomes a value within the range and becomes a substantially negligible amount with respect to the AC component. It is characterized by being performed. Further, by counting the comparison result indicating that the output of the arithmetic means is within the range over a predetermined number of loops, the counting means for detecting the convergence of the correction loop and the convergence detection output of the counting means are closed. Switch means for supplying the output of the alternating current generating means to the load.
The DC shift means for adding the DC adjustment data to the second control data includes a first adding means for adding an upper bit group of the DC adjustment data to the second control data, and the DC adjustment. Memory means for reading fine adjustment data having a number of "1" according to the value represented by the lower bit group, using the lower bit group of the data as an address, and the fine adjustment data for one bit for each DC correction loop. It is characterized by comprising serial shift means for serially shifting each by one, and second adding means for adding the output of "1" of the serial shift means to the output of the first adding means.

【0014】[0014]

【作用】本発明によれば、交流波形メモリから読出した
波形データに基づいて、負荷に供給する交流出力を制御
するインバータが提示される。交流出力端に設けられた
瞬時値検出手段と平均値検出手段により、負荷に供給す
る電圧および電流の瞬時値が検出され、また、負荷に供
給する電圧および電流の瞬時値が特定の位相区間ごとに
積算され交流平均値が算出される。第1の制御データ形
成手段は、電流の平均値と所定の電流目標値とを比較
し、両者の大小関係に応じて増幅した係数値を、波形メ
モリからの波形データの振幅値に掛けて第1の制御デー
タを形成する。第2の制御データ形成手段は、上記電圧
の平均値と所定の電圧目標値とを比較し、両者の大小関
係に応じて増減した係数値を、上記波形メモリからの波
形データの振幅値に掛けて第2の制御データを形成す
る。目標値調整手段は、上記電流の平均値と所定の電流
目標値とを比較し、両者の大小関係に応じて上記電圧目
標値を増減する。第3の制御データ形成手段は、上記電
圧の瞬時値と上記第1又は第2の制御データの一方との
差に制御データの他方を加えて第3の制御データを形成
する。交流発生手段は、上記第3の制御データにより制
御され、電流及び電圧が上記各目標値に対して制御され
た出力を発生する。これにより、第1、第2の制御デー
タを用いた二重制御系で、瞬時値制御とは独立した目標
値制御が行われる。また、波形データに掛ける係数の調
整が一度に微量増減するデルタ方式となる。さらに、電
流目標値として過電流制限値が設定される。また、本発
明によれば、積算手段は、電流または電圧の平均値を交
流半周期ごとの極性を考慮して積算して交流出力の直流
分を検出する。調整手段は、上記積算手段の出力と所定
のレンジとを比較し、レンジ外であるときレンジの上下
に対応して直流調整データを微小量増減し、レンジ内で
あるとき上記直流調整データの前値を保持する。直流シ
フト手段は、直流調整データを上記第2の制御データに
加算する。これにより、上記交流発生手段の出力の直流
分が上記レンジ内の値となって交流分に対し実質的に無
視し得る量となるように直流補正ループ動作が行なわれ
る。また、本発明によれば、第1の加算手段は、直流調
整データの上位ビット群を上記第2の制御データに加算
する。メモリ手段からは、上記直流調整データの下位ビ
ット群をアドレスとして、下位ビット群が表わす値に応
じた“1”の数を有する微調整データが読み出される。
シリアルシフト手段は、上記微調整データを直流補正ル
ープの1回ごとに1ビットずつシリアルシフトさせる。
そして、第2の加算手段は、上記シリアルシフト手段の
“1”の出力を上記第1の加算手段の出力に加算する。
これにより、比較的に少ないビット数でデータ処理が行
われる。
According to the present invention, an inverter for controlling an AC output supplied to a load is presented based on waveform data read from an AC waveform memory. Instantaneous values of the voltage and current supplied to the load are detected by the instantaneous value detection means and the average value detection means provided at the AC output terminal, and the instantaneous values of the voltage and current supplied to the load are detected for each specific phase section. And the AC average value is calculated. The first control data forming means compares the average value of the current with a predetermined current target value, and multiplies the amplitude value of the waveform data from the waveform memory by a coefficient value amplified according to the magnitude relationship between the two. 1 to form control data. The second control data forming means compares the average value of the voltage with a predetermined voltage target value, and multiplies the amplitude value of the waveform data from the waveform memory by a coefficient value increased or decreased according to the magnitude relationship between the two. Form the second control data. The target value adjusting means compares the average value of the current with a predetermined current target value, and increases or decreases the voltage target value according to the magnitude relationship between the two. The third control data forming means forms the third control data by adding the other of the control data to the difference between the instantaneous value of the voltage and one of the first or second control data. The alternating current generating means is controlled by the third control data and generates an output in which the current and the voltage are controlled with respect to the respective target values. Thereby, in the dual control system using the first and second control data, the target value control independent of the instantaneous value control is performed. In addition, the adjustment of the coefficient applied to the waveform data is a delta method in which a small amount is increased or decreased at a time. Further, an overcurrent limit value is set as the current target value. Also, according to the present invention, the integrating means detects the DC component of the AC output by integrating the average value of the current or voltage in consideration of the polarity of each AC half cycle. The adjusting means compares the output of the integrating means with a predetermined range, minutely increases or decreases the DC adjustment data corresponding to the upper and lower parts of the range when it is out of the range, and outputs the DC adjustment data before it when it is within the range. Holds the value. The DC shift means adds the DC adjustment data to the second control data. As a result, the DC correction loop operation is performed so that the DC component of the output of the AC generating means becomes a value within the range and becomes a substantially negligible amount with respect to the AC component. Further, according to the present invention, the first adding means adds the higher-order bit group of the DC adjustment data to the second control data. Fine adjustment data having a number of "1" corresponding to the value represented by the lower bit group is read from the memory means by using the lower bit group of the DC adjustment data as an address.
The serial shift means serially shifts the fine adjustment data by one bit for each DC correction loop.
Then, the second adding means adds the output of "1" of the serial shifting means to the output of the first adding means.
As a result, data processing is performed with a relatively small number of bits.

【0015】[0015]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を用いて説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0016】まず、第1の実施の形態について説明す
る。
First, the first embodiment will be described.

【0017】本発明に係る交流出力制御装置は、例え
ば、図1に示すようなインバータ回路に適用される。
The AC output control device according to the present invention is applied to, for example, an inverter circuit as shown in FIG.

【0018】このインバータ回路では、上記図1に示す
ように、直流電源1に、コンデンサ2およびインバータ
ブリッジ3が接続されている。インバータブリッジ3
は、スイッチング素子QxとQyの直列回路、および、
スイッチング素子QuとQvの直列回路を備える。スイ
ッチング素子QxとQyの間の端子4bと、スイッチン
グ素子QuとQvの間の端子4aが、スイッチング素子
QxとQyおよびQuとQvでなるインバータブリッジ
3の交流出力端である。インバータブリッジ3から見れ
ば、その直流電圧入力端2a,2bに直流電源1および
コンデンサ2が並列に接続されている。
In this inverter circuit, as shown in FIG. 1, a DC power supply 1 is connected to a capacitor 2 and an inverter bridge 3. Inverter bridge 3
Is a series circuit of switching elements Qx and Qy, and
A series circuit of switching elements Qu and Qv is provided. A terminal 4b between the switching elements Qx and Qy and a terminal 4a between the switching elements Qu and Qv are AC output terminals of the inverter bridge 3 formed by the switching elements Qx and Qy and Qu and Qv. When viewed from the inverter bridge 3, the DC power supply 1 and the capacitor 2 are connected in parallel to the DC voltage input terminals 2a and 2b.

【0019】スイッチング素子QxとQyならびにQu
とQvは、それぞれスイッチング駆動回路3xと3yな
らびに3uと3vにより、オン(導通)/オフ(非導
通)駆動される。各スイッチング素子宛てのオン/オフ
指示信号(低レベルLがオン指示/高レベルHがオフ指
示)XとYならびにUとVは、電力制御回路16から、
スイッチング駆動回路3xと3yならびに3uと3vに
与えられる。オン/オフ指示信号XとVをオン指示レベ
ルLとし同時にYとUをオフ指示レベルHとすることに
より、スイッチング素子QxおよびQvがオン(導通)
となりQyおよびQuはオフ(非導通)となって、スイ
ッチング出力端子4bが直流電源1の正極電位(+)
に、スイッチング出力端子4aが負極電位(−)にな
る。逆にオン/オフ指示信号XとVをオフ指示レベルH
とし同時にYとUをオン指示レベルLとすることによ
り、スイッチング素子QxおよびQvがオフとなりQy
およびQuはオンとなって、スイッチング出力端子4b
が直流電源1の負極電位(−)に、スイッチング出力端
子4aが正極電位(+)になる。
Switching elements Qx, Qy and Qu
And Qv are driven on (conduction) / off (non-conduction) by switching drive circuits 3x and 3y and 3u and 3v, respectively. An ON / OFF instruction signal (low level L indicates ON / high level H indicates OFF) X and Y and U and V addressed to each switching element are output from the power control circuit 16.
It is applied to the switching drive circuits 3x and 3y and 3u and 3v. By setting the on / off instruction signals X and V to the on instruction level L and simultaneously setting the Y and U to the off instruction level H, the switching elements Qx and Qv are turned on (conduction).
Then Qy and Qu are turned off (non-conducting), and the switching output terminal 4b becomes the positive electrode potential (+) of the DC power supply 1.
Then, the switching output terminal 4a becomes the negative electrode potential (-). On the contrary, the on / off instruction signals X and V are turned off to the instruction level H.
At the same time, by setting Y and U to the on instruction level L, the switching elements Qx and Qv are turned off and Qy
And Qu are turned on, and the switching output terminal 4b
Becomes the negative electrode potential (−) of the DC power supply 1, and the switching output terminal 4a becomes the positive electrode potential (+).

【0020】オン/オフ指示信号XとVをオン指示レベ
ルLとしかつYとUをオフ指示レベルHとするX,V導
通モードと、オン/オフ指示信号XとVをオフ指示レベ
ルHとしかつYとUをオン指示レベルLとするY,U導
通モードを交互に繰返すことにより、スイッチング出力
端子4a/4b間に、交流電圧(パルス)が発生する。
An X / V conduction mode in which the on / off instruction signals X and V are set to the on instruction level L and Y and U are set to the off instruction level H, and the on / off instruction signals X and V are set to the off instruction level H and An alternating voltage (pulse) is generated between the switching output terminals 4a / 4b by alternately repeating the Y and U conduction modes in which Y and U are set to the ON instruction level L.

【0021】この交流電圧は、電流検出用トランス5を
介して昇圧トランス6で昇圧され、トランス6の2次巻
線に並列接続されたコンデンサでサイン波に整形され、
ノイズ除去用のインダクタンス素子(リアクタ)10を
通して、コンデンサ11〜13に印加される。コンデン
サ11,12は交流電圧の上下ピークの中間点に共通電
位(機器アース)を設定する。ノイズ除去(吸収)用の
コンデンサ13に並列に負荷LDが接続される。
This AC voltage is stepped up by a step-up transformer 6 via a current detecting transformer 5, shaped into a sine wave by a capacitor connected in parallel to a secondary winding of the transformer 6,
It is applied to the capacitors 11 to 13 through the noise removing inductance element (reactor) 10. The capacitors 11 and 12 set a common potential (equipment ground) at the midpoint between the upper and lower peaks of the AC voltage. A load LD is connected in parallel with the noise removal (absorption) capacitor 13.

【0022】14a,14bが、負荷接続端子すなわち
図1に示すインバータ(直流/交流変換器)の出力端子
である。昇圧トランス6の2次コイルに並列に、出力電
圧検出用のトランス15が接続されている。
Reference numerals 14a and 14b are load connection terminals, that is, output terminals of the inverter (DC / AC converter) shown in FIG. A transformer 15 for output voltage detection is connected in parallel with the secondary coil of the step-up transformer 6.

【0023】昇圧トランス6とリアクタ10の間に、リ
レー8rの常開接片が介挿されており、リレー駆動回路
8dが、このリレー8rに通電する。通電指示信号S1は
電力制御回路16がリレー駆動回路8dに与える。通電
指示信号S1が低レベルLになるとリレー駆動回路8dが
リレー8rの電気コイル(図示略)に通電し、リレー接
片が閉となる。すなわちインバータ出力端子(負荷接続
端子)14a─14b間に接続された負荷LDに交流電
圧が印加される(負荷通電)。通電指示信号S1が高レベ
ルHになるとリレー駆動回路8dがリレー8rの電気コ
イル(図示略)への通電を遮断し、リレー接片が開とな
る。すなわちインバータ出力端子14a―14b間に接
続された負荷LDには、電圧が印加されない(負荷遮
断:無負荷)。
A normally open contact piece of a relay 8r is interposed between the step-up transformer 6 and the reactor 10, and a relay drive circuit 8d energizes the relay 8r. The power control circuit 16 gives the energization instruction signal S1 to the relay drive circuit 8d. When the energization instruction signal S1 becomes low level L, the relay drive circuit 8d energizes the electric coil (not shown) of the relay 8r, and the relay contact is closed. That is, an AC voltage is applied to the load LD connected between the inverter output terminals (load connection terminals) 14a-14b (load energization). When the energization instruction signal S1 becomes high level H, the relay drive circuit 8d cuts off the energization of the electric coil (not shown) of the relay 8r, and the relay contact piece is opened. That is, no voltage is applied to the load LD connected between the inverter output terminals 14a and 14b (load cutoff: no load).

【0024】図2に、図1に示す電力制御回路16の構
成を示す。この電力制御回路16の主体は8ビットマイ
クロコンピュータ22である。負荷電流検出用のトラン
ス5の2次巻線の電流(負荷電流瞬時値)が、整流、増
幅回路17で整流、ノイズ(高周波)除去および増幅さ
れて、負半波が正半波に反転された脈流電流値を表わす
電圧に変換されて、コンピュータ22の第2のA/D変
換入力ポートA/D2に印加される。
FIG. 2 shows the configuration of the power control circuit 16 shown in FIG. The main body of the power control circuit 16 is an 8-bit microcomputer 22. The current (load current instantaneous value) of the secondary winding of the transformer 5 for detecting the load current is rectified by the rectifying / amplifying circuit 17, noise (high frequency) removed and amplified, and the negative half-wave is inverted into the positive half-wave. Is converted into a voltage representing the pulsating current value and applied to the second A / D conversion input port A / D2 of the computer 22.

【0025】コンピュータ22は、所定のサンプリング
周期(Ts2=6/9.6KHz≒625μsec )で、
この電圧(負荷電流瞬時値の絶対値)をデジタル変換し
て読込む。このデータを以下、負荷電流検出値と称す。
この負荷電流検出値は、交流電流出力(負荷電流)の瞬
時値(ただし絶対値)すなわち出力電流瞬時値(ただし
絶対値)である点に注意されたい。
The computer 22 has a predetermined sampling period (Ts2 = 6 / 9.6 KHz≈625 μsec),
This voltage (absolute value of the instantaneous value of load current) is digitally converted and read. Hereinafter, this data is referred to as a load current detection value.
Note that this load current detection value is the instantaneous value (but absolute value) of the alternating current output (load current), that is, the output current instantaneous value (but absolute value).

【0026】負荷電圧検出用のトランス15の2次巻線
電圧(負荷電圧瞬時値)は、共通電位(機器アース)を
中心に正,負方向に振れる正弦波(50Hz)である
が、バイアス回路18が、この交流を+2.5Vバイア
スして、実質上正電圧範囲で振れる脈流とする。高周波
ノイズを除去するフィルター19を通してこの脈流が、
コンピュータ22の第1のA/D変換入力ポートA/D
1に印加される。コンピュータ22は、所定のサンプリ
ング周期(Ts1=1/9.6KHz≒104.17μ
sec )で、この電圧(負荷電圧瞬時値)をデジタル変換
して読込む。このデータを以下、負荷電圧瞬時値と称
す。この負荷電圧瞬時値は、交流電圧出力(負荷電圧)
の瞬時値(ただし、正バイアスした値)である点に注意
されたい。
The secondary winding voltage (instantaneous value of the load voltage) of the transformer 15 for detecting the load voltage is a sine wave (50 Hz) that swings in the positive and negative directions about the common potential (ground of the equipment). 18 biases this alternating current by +2.5 V to produce a pulsating current that swings substantially in the positive voltage range. This pulsating flow passes through a filter 19 that removes high frequency noise.
First A / D conversion input port A / D of computer 22
1 is applied. The computer 22 has a predetermined sampling period (Ts1 = 1 / 9.6 KHz≈104.17 μ).
sec), this voltage (instantaneous value of load voltage) is digitally converted and read. Hereinafter, this data is referred to as a load voltage instantaneous value. This instantaneous value of load voltage is the AC voltage output (load voltage)
Note that it is the instantaneous value of (but positively biased).

【0027】発振器20は、周波数f=7.3728M
Hzで発振し、この周波数の信号(クロックパルス)を
コンピュータ22に与える。21はリセットスイッチで
ある。
The oscillator 20 has a frequency f = 7.3728M.
It oscillates at Hz and gives a signal (clock pulse) of this frequency to the computer 22. Reference numeral 21 is a reset switch.

【0028】コンピュータ22は、そのPWMパルス出
力端「PWM」から、所定のパルス周期(Tpwm =25
5/f≒34.59μsec )のPWMパルスをパルス反
転回路23に出力する。パルス反転回路23は、このP
WMパルスと同相のパルスをアンドゲートAN1に、逆
相の(反転した)パルスをアンドゲートAN2に出力す
る。アンドゲートAN1およびAN2はそれぞれ、PW
Mパルスと同相のパルス(以下、正相パルス)および逆
相のパルス(以下、逆相パルス)を、デッドタイム発生
回路24に与える。
The computer 22 starts a predetermined pulse cycle (Tpwm = 25) from its PWM pulse output terminal "PWM".
The PWM pulse of 5 / f≈34.59 μsec) is output to the pulse inversion circuit 23. The pulse inversion circuit 23 uses this P
The pulse having the same phase as the WM pulse is output to the AND gate AN1, and the pulse having the opposite phase (inverted) is output to the AND gate AN2. AND gates AN1 and AN2 are respectively PW
A pulse having the same phase as the M pulse (hereinafter, a positive phase pulse) and a pulse having a negative phase (hereinafter, a negative phase pulse) are applied to the dead time generation circuit 24.

【0029】デッドタイム発生回路24は、正相パルス
に同期しかつそのL(Low )からH(High)の立上り
が、抵抗R1およびコンデンサC1の値で定まる微小時
間遅延し、かつ、HからLへの立下りは実質上遅れがな
い正相駆動パルスを発生してバッファアンプBAuおよ
びBAy(インバータ)を介してレベル反転をして、ス
イッチング駆動回路3uおよび3yに出力する(信号U
およびY)。デッドタイム発生回路24はまた、逆相パ
ルスに同期しかつそのLからHの立上りが、抵抗R2お
よびコンデンサC2の値で定まる微小時間遅延し、か
つ、HからLへの立下りは実質上遅れがない逆相駆動パ
ルスを発生してバッファアンプBAvおよびBAxを介
してレベルを反転して、スイッチング駆動回路3vおよ
び3xに出力する(信号VおよびX)。
The dead time generation circuit 24 is synchronized with the positive phase pulse, and its rising from L (Low) to H (High) is delayed by a minute time determined by the values of the resistor R1 and the capacitor C1, and from H to L. The falling edge to generate a positive phase drive pulse with substantially no delay, level inversion is performed via the buffer amplifiers BAu and BAy (inverter), and output to the switching drive circuits 3u and 3y (signal U
And Y). The dead time generation circuit 24 is also synchronized with the negative phase pulse, and its rising edge from L to H is delayed by a minute time determined by the values of the resistor R2 and the capacitor C2, and the falling edge from H to L is substantially delayed. Generates a reverse-phase driving pulse that does not exist, inverts the level through the buffer amplifiers BAv and BAx, and outputs the inverted signals to the switching drive circuits 3v and 3x (signals V and X).

【0030】したがって、PWMパルス出力の一周期
(Tpwm =255/f≒34.59 μsec)内において、始
端でPWMパルスがHに立上ってから上記微小時間の間
は、正相駆動パルスおよび逆相駆動パルス共にLで、全
スイッチング素子(Qu,Qy),(Qv,Qx)がオ
フである。そして、上記微小時間経過後、PWMパルス
のH(High)区間(Vpwm )の終りまで、正相駆動パル
スがHで、スイッチング素子(Qu,Qy)がオン(4
aが+/4bが−)となり、(Qv,Qx)はオフを維
持する。そしてPWMパルスがLに立下がり、これと同
様に正相駆動パルスがLに立下がり、スイッチング素子
(Qu,Qy)がオフに転ずるが、逆相駆動パルスは上
記微小時間の間Lを継続するので、該微小時間の間全ス
イッチング素子(Qu,Qy)および(Qv,Qx)は
オフである。そして該微小時間の後、PWMパルスはL
区間であるが逆相駆動パルスがHに立上って、スイッチ
ング素子(Qv,Qx)がオン(4aが−/4bが+)
に転ずる。そして、PWMパルスの一周期の終り(次の
周期の始まり)でそれがHに立上り、これに実質上同期
して逆相駆動パルスがLに立下がり、次の微小時間(次
の周期の始めの微小時間)は、全スイッチング素子(Q
u,Qy),(Qv,Qx)はオフとなる。
Therefore, within one cycle of the PWM pulse output (Tpwm = 255 / f≈34.59 μsec), the positive phase drive pulse and the negative phase drive pulse are generated during the above-described minute time after the PWM pulse rises to H at the start end. The drive pulses are both L, and all the switching elements (Qu, Qy) and (Qv, Qx) are off. After the lapse of the minute time, the positive phase drive pulse is H and the switching elements (Qu, Qy) are on (4) until the end of the H (High) section (Vpwm) of the PWM pulse.
a becomes + / 4-b, and (Qv, Qx) remains off. Then, the PWM pulse falls to L, the positive phase drive pulse falls to L in the same manner, and the switching elements (Qu, Qy) turn off, but the negative phase drive pulse continues to be L for the minute time. Therefore, all the switching elements (Qu, Qy) and (Qv, Qx) are off during the minute time. Then, after the minute time, the PWM pulse becomes L
Although in the interval, the anti-phase drive pulse rises to H and the switching elements (Qv, Qx) are turned on (4a is − / 4b is +).
To fall. Then, at the end of one cycle of the PWM pulse (beginning of the next cycle), it rises to H, and in synchronism with this, the reverse-phase drive pulse falls to L, and at the next minute time (beginning of the next cycle Of the switching element (Q
u, Qy) and (Qv, Qx) are turned off.

【0031】すなわち、デッドタイム発生回路24によ
り、スイッチング素子(Qu,Qy)と(Qv,Qx)
のオンの切換わり時に、微小時間の全スイッチング素子
オフ区間が置かれる。これは、スイッチング素子(Q
u,Qy)と(Qv,Qx)の同時オン(直流電源1の
短絡となる)の可能性を無くすためである。
That is, the dead time generation circuit 24 causes the switching elements (Qu, Qy) and (Qv, Qx).
At the time of switching on, all switching element off sections of a minute time are placed. This is a switching element (Q
This is to eliminate the possibility of simultaneous turning on (u, Qy) and (Qv, Qx) (shorting the DC power supply 1).

【0032】上述のように、PWMパルスの一周期(T
pwm =255/f≒34.59 μsec )内において、上記微
小時間を無視して説明すると、PWMパルスのH区間
(Vpwm )でスイッチング素子(Qu,Qy)が導通し
て端子4aが+、4bが−となり、次のL区間(Tpwm
−Vpwm )でスイッチング素子(Qv,Qx)が導通し
て端子4aが−、4bが+となる。
As described above, one cycle of the PWM pulse (T
In pwm = 255 / f≈34.59 μsec), ignoring the minute time, the explanation will be made. In the H section (Vpwm) of the PWM pulse, the switching elements (Qu, Qy) are turned on and the terminals 4a are +, 4b are −. And the next L section (Tpwm
The switching element (Qv, Qx) becomes conductive at −Vpwm) and the terminal 4a becomes − and 4b becomes +.

【0033】すなわち、PWMパルスの一周期(Tpwm
)内で、一周期の交流(パルス)が、スイッチング回
路の出力端4a/4bに現われる。PWMパルスのデュ
ーティ比が50%(Vpwm =Tpwm /2)のときには、
昇圧トランス6の2次巻線電圧は、それにコンデンサが
並列接続されこれが高周波を吸収(平滑化)するので、
低周波分(50Hz)は実質上零となる。PWMパルス
のデューティ比(そのH区間)を、デューティ比が50
%を中心に、例えば50Hz対応の周期で繰返し増減す
るとすなわちパルス幅変調(PWM)すると、昇圧トラ
ンス6の2次巻線電圧(それに並列接続されたコンデン
サ)の電圧が50Hzの交流電圧となる。この第1の実
施の形態では、コンピュータ22がこのパルス幅変調を
行なう。すなわち、50Hzの交流電圧を出力するため
のパルス幅変調(PWM)を行なう。
That is, one cycle of the PWM pulse (Tpwm
), One cycle of alternating current (pulse) appears at the output terminals 4a / 4b of the switching circuit. When the duty ratio of the PWM pulse is 50% (Vpwm = Tpwm / 2),
As for the secondary winding voltage of the step-up transformer 6, a capacitor is connected in parallel to the secondary winding voltage, and this absorbs (smooths) a high frequency.
The low frequency component (50 Hz) is substantially zero. If the duty ratio of the PWM pulse (the H section) is 50
When the pulse width modulation (PWM) is performed repeatedly, for example, in a cycle corresponding to 50 Hz centering around%, the voltage of the secondary winding voltage of the step-up transformer 6 (capacitor connected in parallel thereto) becomes an AC voltage of 50 Hz. In the first embodiment, the computer 22 performs this pulse width modulation. That is, pulse width modulation (PWM) for outputting an AC voltage of 50 Hz is performed.

【0034】この第1の実施の形態では、図1に示すイ
ンバータ回路に電源が投入されるとただちに負荷LDに
交流電圧を出力するのではなく、インバータ回路に電源
が投入されるとまず出力電流を検出し、過電流制御およ
び直流分補正をしてから、リレー8rをオンにして、負
荷に電力供給を行なうようにしている。コンピュータ2
2のポート1から、リレー8rのオン指令信号(H:リ
レーオン/L:リレーオフ)が、バッフアアンプ(イン
バータ)BA1を介してレベルが反転されて(これが電
力制御回路16の出力S1)、リレー駆動回路8dに与え
られる。
In the first embodiment, when the inverter circuit shown in FIG. 1 is turned on, the AC voltage is not output to the load LD immediately, but when the inverter circuit is turned on, the output current is first output. Is detected, and after overcurrent control and DC component correction, the relay 8r is turned on to supply power to the load. Computer 2
The ON command signal (H: relay ON / L: relay OFF) of the relay 8r from the port 1 of 2 is inverted in level via the buffer amplifier (inverter) BA1 (this is the output S1 of the power control circuit 16), and the relay drive circuit. Given to 8d.

【0035】つぎに、図3を参照して、第1の実施の形
態におけるPWMインバータの構成要素と動作の概要を
説明する。
Next, referring to FIG. 3, an outline of the constituent elements and operation of the PWM inverter in the first embodiment will be described.

【0036】上述のように、直流電源1の電力がインバ
ータブリッジ3により交番PWMパルス電力に変換さ
れ、図1のトランス6およびコンデンサ7からなるフィ
ルタ40により正弦波交流波形に変換され、リレー8r
を介して負荷LDに供給される。負荷に供給される交流
電力の電流、電圧は、図1の負荷電流検出用トランス5
に相当する出力電流検出器41および負荷電圧検出用ト
ランス15に相当する出力電圧検出器42により夫々検
出される。検出された瞬時出力電流および瞬時出力電圧
は、夫々A/D変換器22d、22eによりデジタルデ
ータJout ,Vout に変換される。
As described above, the power of the DC power supply 1 is converted into the alternating PWM pulse power by the inverter bridge 3, converted into the sine wave AC waveform by the filter 40 including the transformer 6 and the capacitor 7 in FIG. 1, and the relay 8r.
Is supplied to the load LD via. The current and voltage of the AC power supplied to the load are the load current detection transformer 5 of FIG.
Is detected by the output current detector 41 corresponding to the load voltage detecting transformer 15 and the output voltage detector 42 corresponding to the load voltage detecting transformer 15. The detected instantaneous output current and instantaneous output voltage are converted into digital data Jout and Vout by A / D converters 22d and 22e, respectively.

【0037】図2のマイクロコンピュータ22のプログ
ラムにより具現されている制御機能は、概ね図3におい
て破線で示す比例制御部22a、積分制御部22bおよ
び直流分補正部22cからなる。比例制御部22aおよ
び積分制御部22bは、インバータのイニシャライズお
よび負荷給電中に動作するが、直流分検出部22cはイ
ンバータのイニシャライズのときのみ動作する。比例制
御部22aおよび積分制御部22bの各出力は交流出力
を決定する正弦波の振幅データであって、加算部22g
で加算されてから、振幅データをPWMパルスのデュー
ティ比に変換するPWM部22fに供給される。PWM
部22fは正弦波の瞬時振幅値にデューティ比が対応
し、振幅値の正弦変化に対応して連続的にデューティ比
が変化するPWMパルスを発生し、インバータブリッジ
3に供給する。
The control function embodied by the program of the microcomputer 22 of FIG. 2 comprises a proportional control unit 22a, an integral control unit 22b and a DC component correction unit 22c, which are generally indicated by broken lines in FIG. The proportional control unit 22a and the integral control unit 22b operate during initialization of the inverter and during power supply to the load, but the DC component detection unit 22c operates only during initialization of the inverter. Each output of the proportional control unit 22a and the integration control unit 22b is amplitude data of a sine wave that determines an AC output, and the addition unit 22g
After being added by, the amplitude data is supplied to the PWM unit 22f that converts the amplitude data into the duty ratio of the PWM pulse. PWM
The part 22f generates a PWM pulse whose duty ratio corresponds to the instantaneous amplitude value of the sine wave and whose duty ratio changes continuously in accordance with the sine change of the amplitude value, and supplies the PWM pulse to the inverter bridge 3.

【0038】比例制御部22aにおいて、A/D変換部
22eからの瞬時出力電圧Vout は、減算部227にお
いて第1目標値V1から減算され、目標値に対する誤差
信号V1−Vout が求められる。この誤差信号はゲイン
乗算部228でゲインGが掛けられてから上記の加算部
22gに導出される。従って比例制御部22aの出力
は、 G*(V1−Vout ) である。ゲインGは、例えば1であってよい。
In the proportional control section 22a, the instantaneous output voltage Vout from the A / D conversion section 22e is subtracted from the first target value V1 in the subtraction section 227 to obtain an error signal V1-Vout for the target value. This error signal is multiplied by the gain G in the gain multiplication unit 228 and then derived to the addition unit 22g. Therefore, the output of the proportional control unit 22a is G * (V1-Vout). The gain G may be 1, for example.

【0039】第1目標値V1は、マイクロコンピュータ
22内のROMで構成された正弦波データメモリ225
(テーブルTSIN1)から所定の時間軸アドレスで読
み出された第1基準正弦波データVref1(asin ωt)
に基づいて形成される。この第1基準正弦波データには
掛算部226において過電流制御用の第1調整係数RA
AF/256(256は8ビットフルスケール値)が掛
けられ、第1目標値V1 として減算部227に与えら
れ、上述のように瞬時出力電圧Vout が減算され、誤差
信号V1−Vout が計算される。
The first target value V1 is stored in the sine wave data memory 225 composed of ROM in the microcomputer 22.
First reference sine wave data Vref1 (asin ωt) read from the (table TSIN1) at a predetermined time axis address
Is formed based on. In the multiplication unit 226, the first reference sine wave data is supplied with a first adjustment coefficient RA for overcurrent control.
AF / 256 (256 is an 8-bit full scale value) is multiplied and given to the subtraction unit 227 as the first target value V1, and the instantaneous output voltage Vout is subtracted as described above to calculate the error signals V1-Vout. .

【0040】第1調整係数RAAF/256は、A/D
変換部22dからの瞬時出力電流値Jout を積算平均部
221に与えて交流電流平均値Javを算出し、この平均
値JavとROM内の過電流記憶部222に記憶された過
電流設定値Jref とを比較部223で比較し、比較結果
(Jav>Jref 、Jav<Jref 、Jav=Jref )により
調整部224で第1調整値RAFFを微小量ΔAFずつ
増減若しくは前値保持することにより形成される。従っ
て第1目標値V1は、第1基準正弦波データVref1の振
幅を調整係数RAAFにより増減して得た瞬時正弦波デ
ータ(Vref1*RAAF/256)であり、出力交流電
圧波形を基準正弦波の振幅に追従させ、交流電流平均値
Javが過電流設定値Jref を越えないように、瞬時出力
電圧Vout にフィードバックを掛けるための制御データ
である。なお積算平均部221は、典型的には瞬時交流
電流Jout の半波区間ごとにその区間内のサンプル振幅
値を積算し、サンプル数nで除算して交流平均値Javを
計算する。
The first adjustment coefficient RAAF / 256 is A / D
The instantaneous output current value Jout from the conversion unit 22d is given to the integrating and averaging unit 221 to calculate the AC current average value Jav, and the average value Jav and the overcurrent setting value Jref stored in the overcurrent storage unit 222 in the ROM are calculated. Are compared by the comparison unit 223, and the adjustment unit 224 increases or decreases the first adjustment value RAFF by the minute amount ΔAF or holds the previous value according to the comparison results (Jav> Jref, Jav <Jref, Jav = Jref). Therefore, the first target value V1 is instantaneous sine wave data (Vref1 * RAAF / 256) obtained by increasing / decreasing the amplitude of the first reference sine wave data Vref1 by the adjustment coefficient RAAF, and the output AC voltage waveform of the reference sine wave This is control data for making the amplitude follow and feeding back the instantaneous output voltage Vout so that the alternating current average value Jav does not exceed the overcurrent set value Jref. Note that the integration / averaging unit 221 typically integrates the sample amplitude values in each half-wave section of the instantaneous AC current Jout and divides by the number of samples n to calculate the AC average value Jav.

【0041】図4に調整部224の詳細を示す。平均電
流値Javと設定電流値Jref との比較結果により演算部
224aで±ΔAFの増減が電圧基準値RAAFに対し
て行なわれる。調整結果を保持したレジスタ224bの
データはリミッタ部224cに与えられ、その値が上限
値および下限値を越えないように制限される。
FIG. 4 shows details of the adjusting section 224. Based on the result of comparison between the average current value Jav and the set current value Jref, the calculation unit 224a increases or decreases ± ΔAF with respect to the voltage reference value RAAF. The data of the register 224b holding the adjustment result is given to the limiter unit 224c, and its value is limited so as not to exceed the upper limit value and the lower limit value.

【0042】積分制御部22bでは、交流電圧平均値に
基づいて第2目標値V2を形成する。即ち、基本的に
は、A/D変換部22eからの瞬時出力電圧Vout を積
算平均部232に与えて半周期ごとの交流電圧平均値S
Vを算出し、この平均値に応じて調整される第2調整係
数RADR/256を、マイクロコンピュータ22内の
ROMで構成された正弦波データメモリ235(テーブ
ルTSIN2)から所定の時間軸アドレスで読み出され
た第2基準正弦波データVref2(bsin ωt)の振幅値
に掛けることにより、第2目標値V2(Vref2*RAA
F/256)が形成される。
The integration controller 22b forms the second target value V2 based on the average value of the AC voltage. That is, basically, the instantaneous output voltage Vout from the A / D conversion unit 22e is given to the integration and averaging unit 232, and the AC voltage average value S for every half cycle is given.
V is calculated, and the second adjustment coefficient RADR / 256 adjusted according to the average value is read from the sine wave data memory 235 (table TSIN2) configured by the ROM in the microcomputer 22 at a predetermined time axis address. By multiplying the amplitude value of the output second reference sine wave data Vref2 (bsin ωt), the second target value V2 (Vref2 * RAA
F / 256) is formed.

【0043】詳細には、積分制御部22bにおいて、積
算平均部232からの交流電圧平均値SVは、比較部2
33にて電圧基準値Sref と比較され、比較結果(SV
<Sref 、SV>Sref 、SV=Sref )により調整部
234で第2調整値RADRを微小量ΔDRずつ増減若
しくは前値保持することにより第2調整係数RADR/
256が形成される。この調整係数RADR/256は
掛算部236において第2基準正弦波データVref2に掛
けられ、直流シフト部237(後述)を介して第2目標
値V2が出力される。
More specifically, in the integration control unit 22b, the AC voltage average value SV from the integration and averaging unit 232 is calculated by the comparison unit 2
At 33, the voltage reference value Sref is compared, and the comparison result (SV
<Sref, SV> Sref, SV = Sref), the adjustment unit 234 increases or decreases the second adjustment value RADR by a small amount ΔDR or holds the previous value to obtain a second adjustment coefficient RADR /
256 is formed. This adjustment coefficient RADR / 256 is multiplied by the second reference sine wave data Vref2 in the multiplication unit 236, and the second target value V2 is output via the DC shift unit 237 (described later).

【0044】積分制御部22bの出力V2は、加算部2
2gに導出され、比例制御部22aの出力G*(V1 −
Vout )と加算される。従って、PWM部22fに与え
る制御データは、最終的には、 G*(V1−Vout )+V2 となる。ゲインGを1とすると、上式は、(V1+V
2)−Vout 若しくは(V2−Vout )+V1と同等で
ある。このことから第2目標値V2は、第2基準正弦波
データVref2の振幅を調整係数RADRにより増減して
得た瞬時正弦波データであり、出力交流電圧波形を基準
正弦波の振幅に追従させ、かつ検出した交流電圧平均値
SVを電圧基準値Sref に一致させるように、瞬時出力
電圧Vout にフィードバックを掛けるための制御データ
となっている。
The output V2 of the integration controller 22b is used as the adder 2
2g and output G * (V1−
Vout). Therefore, the control data given to the PWM unit 22f finally becomes G * (V1-Vout) + V2. If the gain G is 1, the above equation becomes (V1 + V
2) -Vout or (V2-Vout) + V1. From this, the second target value V2 is instantaneous sine wave data obtained by increasing or decreasing the amplitude of the second reference sine wave data Vref2 by the adjustment coefficient RADR, and makes the output AC voltage waveform follow the amplitude of the reference sine wave, The control data is for feeding back the instantaneous output voltage Vout so that the detected AC voltage average value SV matches the voltage reference value Sref.

【0045】電圧基準値Sref は、比例制御部22aに
おける平均電流値Javと設定電流値Jref との比較結果
(比較部223の出力)を利用して、調整部231にお
いて微小量ΔSref ずつ増減若しくは前値保持すること
により調整される。図5に調整部231の詳細を示すよ
うに、平均電流値Javと設定電流値Jref との比較結果
により演算部231aで±ΔSref の増減が電圧基準値
Sref に対して行なわれる。調整結果を保持したレジス
タ231bのデータはリミッタ部231cに与えられ、
その値が上限値Smax および下限値Smin を越えないよ
うに制限される。上限値Smax は、交流出力電圧の実効
値が定格の100Vになるような定数値に設定されてい
る。
The voltage reference value Sref is increased or decreased by a small amount ΔSref by the adjustment unit 231 by using the comparison result (output of the comparison unit 223) of the average current value Jav and the set current value Jref in the proportional control unit 22a. Adjusted by holding the value. As shown in detail in the adjusting unit 231, the calculating unit 231a increases or decreases ± ΔSref with respect to the voltage reference value Sref based on the result of comparison between the average current value Jav and the set current value Jref. The data of the register 231b holding the adjustment result is given to the limiter unit 231c,
The value is limited so as not to exceed the upper limit value Smax and the lower limit value Smin. The upper limit value Smax is set to a constant value such that the effective value of the AC output voltage becomes the rated value of 100V.

【0046】したがって、過電流が流れない定格以下の
負荷を駆動している場合には、Jav<Jref であるか
ら、電圧基準値Sref は上限値Smax に向けて増大さ
れ、上限値で増大が停止する。この状態で、上述のよう
に電圧基準値Sref と交流出力平均値SVとが比較さ
れ、比較結果により調整された調整係数RADR/25
6が第2基準正弦波データVref2に掛けられて、第2目
標値V2が出力される。このためインバータの出力電圧
は定格の100V(実効値)に維持される。
Therefore, when driving a load below the rated value at which overcurrent does not flow, since Jav <Jref, the voltage reference value Sref is increased toward the upper limit value Smax and stops increasing at the upper limit value. To do. In this state, the voltage reference value Sref and the AC output average value SV are compared as described above, and the adjustment coefficient RADR / 25 adjusted by the comparison result.
6 is multiplied by the second reference sine wave data Vref2, and the second target value V2 is output. Therefore, the output voltage of the inverter is maintained at the rated value of 100V (effective value).

【0047】過電流が流れるような負荷がインバータの
出力に接続されると、Jav>Jrefであるので、電圧基
準値Sref は減少され、交流電圧平均値がSV>Sref
となる。このため第2調整値RADRが減少されるの
で、上述のループ制御によりインバータの出力電圧は引
き下げられ、平均電流値Javが低下される。この平均電
流の低下は、比例制御部22aにおける第1調整値RA
FFの減少によっても実行される。
When a load that causes an overcurrent to flow is connected to the output of the inverter, since Jav> Jref, the voltage reference value Sref is reduced, and the AC voltage average value becomes SV> Sref.
Becomes As a result, the second adjustment value RADR is reduced, so that the output voltage of the inverter is lowered by the loop control described above, and the average current value Jav is lowered. This decrease in the average current is caused by the first adjustment value RA in the proportional controller 22a.
It is also executed by reducing FF.

【0048】ここで、比例制御部22aと積分制御部2
2bの双方において過電流制限の制御を行っているの
は、積分制御部22bにおいて過電流時に基準電圧Sre
f を引き下げる制御を行わないと、比例制御部22bに
おいて過電流時に平均電流Javを引き下げるために電圧
Vout を低下させる帰還制御が行われたとき、積分制御
部22bでは基準電圧Sref よりも出力電圧Vout を低
下させないようにする全く逆の帰還が働くからである。
Here, the proportional controller 22a and the integral controller 2
The control of the overcurrent limitation is performed in both 2b because the integral control unit 22b controls the reference voltage Sre during the overcurrent.
If the control to reduce f is not performed, when the proportional control unit 22b performs the feedback control to reduce the voltage Vout in order to reduce the average current Jav at the time of overcurrent, the integral control unit 22b outputs the output voltage Vout rather than the reference voltage Sref. This is because the exact reverse feedback that works to prevent

【0049】上述のように、PWM部22fに与える最
終的な制御データは、(V1+V2)−Vout 若しくは
(V2−Vout )+V1と同等であるので、図6または
図7に示すような変更が可能である。図6では、比例制
御部22aの掛算部226からの第1目標値V1と積分
制御部22bからの第2目標値V2とを加算部22hで
加算し、加算結果から瞬時出力電圧Vout を減算部22
iで減算し、制御データを得ている(変形例1)。図7
では、積分制御部22bからの第2目標値V2から瞬時
出力電圧Vout を減算部22jで減算し、減算結果と比
例制御部22aの掛算部226からの第1目標値V1 と
を加算部22kで加算し、最終制御データを得ている
(変形例2)。何れの変形例も、マイクロコンピュータ
22のプログラムステップの順序の変更に過ぎない。
As described above, the final control data given to the PWM unit 22f is equivalent to (V1 + V2) -Vout or (V2-Vout) + V1. Therefore, the change shown in FIG. 6 or 7 is possible. Is. In FIG. 6, the first target value V1 from the multiplication unit 226 of the proportional control unit 22a and the second target value V2 from the integration control unit 22b are added by the addition unit 22h, and the instantaneous output voltage Vout is subtracted from the addition result. 22
i is subtracted to obtain control data (Modification 1). FIG.
Then, the subtraction unit 22j subtracts the instantaneous output voltage Vout from the second target value V2 from the integration control unit 22b, and the subtraction result and the first target value V1 from the multiplication unit 226 of the proportional control unit 22a are added by the addition unit 22k. The final control data is obtained by adding (Modification 2). Each modification is merely a change in the order of the program steps of the microcomputer 22.

【0050】図3に戻って、直流分補正部22cを説明
する。
Returning to FIG. 3, the DC component correcting section 22c will be described.

【0051】この直流分補正部22cは、インバータの
イニシャライズ時に作動して直流分補正データを形成
し、以後は補正データに基づく直流シフト若しくは直流
キャンセルのみが行なわれる。この直流分補正データ
は、積分制御部22bの出力端に設けた直流シフト部2
37に供給され、第2目標値V2に単純に加算される。
The DC component correction unit 22c operates at the time of initialization of the inverter to form DC component correction data, and thereafter, only DC shift or DC cancellation based on the correction data is performed. This DC component correction data is stored in the DC shift unit 2 provided at the output end of the integration control unit 22b.
37 and is simply added to the second target value V2.

【0052】直流分補正部22cでは、比例制御部22
aの積算平均部221で得られる交流半周期ごとの電流
平均値Javを正の半周期分をプラス、負の半周期分をマ
イナスとして積算部241にて例えば5周期分(10半
周期)積算する。この結果、積算部241からインバー
タ出力の直流分SJavを検出することができる。
In the DC component correction unit 22c, the proportional control unit 22
The current average value Jav for each AC half cycle obtained by the integration and averaging unit 221 of a is integrated by, for example, five cycles (10 half cycles) in the integration unit 241 with a positive half cycle being positive and a negative half cycle being negative. To do. As a result, the direct current component SJav of the inverter output can be detected from the integrating unit 241.

【0053】直流分SJavは、レンジ比較部242で設
定目標範囲SJavmax 、SJavminと比較され、比較結
果により、直流分調整値RACENTERが調整部24
3において±1増減される。即ち、直流分SJavが目標
上限SJavmax を越えていれば、1を減算し、直流分S
Javが目標下限SJavmin 以下であれば、1を加算し、
目標範囲内であれば調整値の前値を保持する。
The DC component SJav is compared with the set target ranges SJavmax and SJavmin in the range comparison unit 242, and the DC component adjustment value RACENTER is determined by the comparison result.
Increase or decrease ± 1 in 3. That is, if the DC component SJav exceeds the target upper limit SJavmax, 1 is subtracted from the DC component SJav.
If Jav is less than or equal to the target lower limit SJavmin, add 1
If it is within the target range, the previous value of the adjustment value is held.

【0054】調整値RACENTERは、直流シフト部
237に送られ、ここで掛算部236の出力(RADR
/256)*Vref2に加算される。これによって直流分
は制御ループの周期で±1ずつ補正され、目標範囲に入
れば、即ちSJavmax ≧SJav≧SJavmin であれば補
正ループ制御は停止し、そのときの直流分調整値RAC
ENTERが保持される。以後はこの調整値に基づく直
流キャンセルのみが直流シフト部237で実行される。
The adjustment value RACENTER is sent to the DC shift unit 237, where the output of the multiplication unit 236 (RADR
/ 256) * Vref2 is added. As a result, the DC component is corrected by ± 1 in the cycle of the control loop, and if it is within the target range, that is, if SJavmax ≧ SJav ≧ SJavmin, the correction loop control is stopped, and the DC component adjustment value RAC at that time is adjusted.
ENTER is retained. After that, only the DC cancellation based on this adjustment value is executed by the DC shift unit 237.

【0055】レンジ比較部242でSJavmax ≧SJav
≧SJavmin を検出した場合、その検出結果はnカウン
ト部250に送られ、補正ループがn回、例えば12回
この状態を検出したことが計測されると、判定部251
が直流補正ループの収束を確認し、インバータの出力リ
レースイッチ8rを閉じる。この結果負荷LDに直流分
がキャンセルされたインバータ出力が供給されるように
なる。
In the range comparison unit 242, SJavmax ≧ SJav
When ≧ SJavmin is detected, the detection result is sent to the n count unit 250, and when it is measured that the correction loop has detected this state n times, for example, 12 times, the determination unit 251
Confirms the convergence of the DC correction loop and closes the output relay switch 8r of the inverter. As a result, the inverter output in which the DC component is canceled is supplied to the load LD.

【0056】直流分調整値RACENTERの精度を確
保するためこのデータは16ビットで表わされる。しか
しマイクロコンピュータ22は一度に8ビットのデータ
しか扱えないので、8ビット相当の分解能での補正しか
できない。このため、図8に示すように、直流シフト部
237においては、16ビットの調整値の上位ビットと
下位ビットとに分けて粗調整と微調整をタイムシリアル
に行なっている。
This data is represented by 16 bits in order to ensure the accuracy of the DC component adjustment value RACENTER. However, since the microcomputer 22 can handle only 8-bit data at a time, it can only perform correction with a resolution equivalent to 8-bit. For this reason, as shown in FIG. 8, in the DC shift unit 237, the coarse adjustment and the fine adjustment are performed time serially by dividing the upper bit and the lower bit of the 16-bit adjustment value.

【0057】図8において、直流分調整値RACENT
ERを保持したレジスタ237aの下位3ビットを除外
した上位の8ビットデータが元の調整値の1/8の精度
の粗調整データRACENTとしてレジスタ237bに
抽出される。このデータは、加算部237fにおいて積
分制御部22bの掛算部236からの第2調整係数RA
DR/256を掛けた第2基準正弦波データVref2に直
流分補正ループの1回転(1回の補正動作)ごとに加算
される。したがって、第2制御データV2は、 V2=(RADR/256)*Vref2+RACENT となる。
In FIG. 8, the DC component adjustment value RACENT
The high-order 8-bit data excluding the low-order 3 bits of the register 237a holding the ER is extracted to the register 237b as the rough adjustment data RACENT with an accuracy of ⅛ of the original adjustment value. This data is the second adjustment coefficient RA from the multiplication unit 236 of the integration control unit 22b in the addition unit 237f.
It is added to the second reference sine wave data Vref2 multiplied by DR / 256 every one rotation (one correction operation) of the DC component correction loop. Therefore, the second control data V2 becomes V2 = (RADR / 256) * Vref2 + RACENT.

【0058】一方、直流分調整値RACENTERの下
位3ビットは、ROM237cにアドレスとして与えら
れ、3ビットが表わす値0〜7と同数の“1”を含む8
ビットの微調データRACENTSUBがレジスタ23
7dに読み出される。例えば下位3ビットの値が3のと
きは微調データとして“10010010”が読み出さ
れる。この微調データはシリアルシフト部237eによ
り、直流補正ループの1回転ごとに加算部237gにお
いて加算部237fの出力に加算される。従って8回の
補正ループ動作で+1の加算が3回実行されるから、平
均的には粗調整データの最小補正単位に対し3/8の精
度で直流分補正が行なわれる。
On the other hand, the lower 3 bits of the DC component adjustment value RACENTER are given to the ROM 237c as an address, and 8 including the same number of "1" as the value 0 to 7 represented by 3 bits.
Bit fine adjustment data RACENTSUB is set in the register 23.
7d is read. For example, when the value of the lower 3 bits is 3, "10010010" is read as fine adjustment data. This fine adjustment data is added to the output of the adder 237f in the adder 237g for each rotation of the DC correction loop by the serial shifter 237e. Therefore, since the addition of +1 is performed three times in the correction loop operation of eight times, the DC component correction is performed with an accuracy of 3/8 on average on the minimum correction unit of the rough adjustment data.

【0059】以上の説明においては、比例制御部22a
及び積分制御部22bにおいて個別の正弦波データメモ
リ225、235を使用しているが、これらを単一のメ
モリとすることができる。すなわち、振幅が1の正弦波
を記憶した単一のメモリを使用し、正弦波メモリ22
5、235の第1、第2基準正弦波データVref1及びV
ref2の振幅a及びbを、それぞれ第1調整値RAAF及
び第2調整値RADRに含ませるようにする。
In the above description, the proportional controller 22a is used.
The sine wave data memories 225 and 235 are used in the integration control unit 22b and the integration control unit 22b, but these may be a single memory. That is, a single memory that stores a sine wave with an amplitude of 1 is used, and the sine wave memory 22
5, 235 first and second reference sine wave data Vref1 and Vref
The amplitudes a and b of ref2 are included in the first adjustment value RAAF and the second adjustment value RADR, respectively.

【0060】また、以上の説明においては、出力電流検
出器41及び出力電圧検出器42の交流正弦波信号をそ
のまま処理しているが、マイクロコンピュータでの処理
を容易にするために、以下の実施の形態で示すように、
検出した交流正弦波信号にバイアスを加えて、単一極性
の検出信号として扱うことができる。この場合には、比
例制御部22aにおいて、減算部227においてV1−
Vout を実行する前に、バイアス分に相当する定数を加
算する必要がある。例えば、V1+128とする。
Further, in the above description, the AC sine wave signals of the output current detector 41 and the output voltage detector 42 are processed as they are. As shown in the form of
A bias can be applied to the detected AC sine wave signal to treat it as a single polarity detection signal. In this case, V1-in the subtraction unit 227 in the proportional control unit 22a.
Before executing Vout, it is necessary to add a constant corresponding to the bias amount. For example, V1 + 128.

【0061】また、以上の説明において、正弦波波形デ
ータVref として1周期分の全波を波形メモリに格納す
ることが可能であるが、以下の実施の形態に示すよう
に、半波分の波形データのみを格納して波形データのた
めのROM領域を節約することができる。この場合に
は、掛算部226及び236の出力V1、V2に対し、
正の半波と負の半波で極性を反転させる処理を行う。ま
た、処理データにバイアスを与えている場合には、掛算
部226の出力V1に対しV1+128、128−V1
の演算を正の半波と負の半波で交互に行う。さらに、積
分制御部22bの直流シフト部237においても、 V2=(RADR/256)*Vref2+RACENT V2=RACENT−(RADR/256)*Vref2 のように、直流分補正のためのシフト処理演算を正の半
波と負の半波で交互に行う。
Further, in the above description, it is possible to store one cycle of the full wave as the sine wave waveform data Vref in the waveform memory, but as shown in the following embodiment, the half wave waveform is stored. Only the data can be stored to save the ROM area for the waveform data. In this case, with respect to the outputs V1 and V2 of the multiplication units 226 and 236,
A process of reversing the polarity between the positive half wave and the negative half wave is performed. When a bias is applied to the processed data, V1 + 128, 128-V1 is added to the output V1 of the multiplication unit 226.
The positive half-wave and the negative half-wave are alternately calculated. Further, also in the DC shift unit 237 of the integration control unit 22b, the shift process operation for correcting the DC component is positive as in V2 = (RADR / 256) * Vref2 + RACENT V2 = RACENT- (RADR / 256) * Vref2. Alternate half-wave and negative half-wave.

【0062】尚、図7のように、第2目標値V2から電
圧瞬時値Vout を減算する構成の場合、第1目標値V1
の加算経路(加算部22k)及び比例制御部22aにお
ける波形データメモリ225、掛算部226、係数調整
部224を省略してもよい。すなわち、制御部22bに
おいて、上述のように出力電圧Vout が所定の基準電圧
Sref と一致するように、Vref2*RADR/256−
Vout の帰還制御が行われる。また、基準電圧Sref
は、上述のように平均電流Javが過電流設定値Jref を
超えないように比較部223の出力により調整される。
したがって、制御部22bのみで電圧と電流の制御が行
われる。
In the case of the configuration in which the voltage instantaneous value Vout is subtracted from the second target value V2 as shown in FIG. 7, the first target value V1
The waveform data memory 225, the multiplication unit 226, and the coefficient adjustment unit 224 in the addition path (addition unit 22k) and the proportional control unit 22a may be omitted. That is, in the control unit 22b, Vref2 * RADR / 256- is set so that the output voltage Vout matches the predetermined reference voltage Sref as described above.
Feedback control of Vout is performed. In addition, the reference voltage Sref
Is adjusted by the output of the comparison unit 223 so that the average current Jav does not exceed the overcurrent setting value Jref as described above.
Therefore, the voltage and current are controlled only by the control unit 22b.

【0063】図9に、図2に示すコンピュータ22の電
力制御動作の概要を示す。以下、図9を用いて、コンピ
ュータ22の電力制御動作について説明する。
FIG. 9 shows an outline of the power control operation of the computer 22 shown in FIG. Hereinafter, the power control operation of the computer 22 will be described with reference to FIG.

【0064】(1)内部RAMの初期化:電源が投入さ
れるとコンピュータ22は、データの一時格納用の内部
RAMを初期化する(ステップ1)。
(1) Initialization of internal RAM: When the power is turned on, the computer 22 initializes the internal RAM for temporary storage of data (step 1).

【0065】(2)レジスタに初期値を設定:コンピュ
ータ22は次に、内部RAMに割り当てたレジスタの所
要のものに初期値を設定する(書込む:ステップ2)。
(2) Setting initial values in registers: The computer 22 then sets initial values in the required registers of the internal RAM (writing: step 2).

【0066】レジスタの数例と、それに書込む初期値を
図9中に示す。
FIG. 9 shows an example of the number of registers and initial values to be written therein.

【0067】すなわち、レジスタRAF1は、現時点
が、交流出力電圧(50Hz)の正半波期間〔0 〜180*
(95/96) 〕であるか、又は、負半波期間〔180 〜180+18
0*(95/96) 〕であるかを表わすデータ(0:正半波期間
/1:負半波期間)を格納するためのフラグレジスタで
あり、これに格納する初期値は0である。なお、一周期
を192(=96×2)分割した一単位(180度/9
6)を、出力電圧制御(PWMパルスのH区間データV
pwm の更新) のための繰返し計算周期(後述のタイマ1
割込処理IRT1の実行周期:Vpwm の更新周期)に定
め、かつ、ゼロクロス点(0,180度)をそれぞれ交
流出力電圧(50Hz)の正半波期間および負半波期間
の始点に含めている。
That is, the register RAF1 is currently in the positive half-wave period [0 to 180 * of the AC output voltage (50 Hz).
(95/96)] or the negative half-wave period (180-180 + 18)
0 * (95/96)] is a flag register for storing data (0: positive half-wave period / 1: negative half-wave period), and the initial value stored in this is 0. In addition, one unit (180 degrees / 9) obtained by dividing one cycle into 192 (= 96 × 2)
6), output voltage control (H section data V of PWM pulse
Iterative calculation cycle (update of pwm) (timer 1 described later)
The execution cycle of the interrupt process IRT1: the update cycle of Vpwm), and the zero-cross points (0, 180 degrees) are included in the start points of the positive half-wave period and the negative half-wave period of the AC output voltage (50 Hz), respectively. .

【0068】レジスタRAF2は、交流出力電流(50
Hz)の過電流を抑制する過電流制御中か否かを表わす
データ(0:過電流制御なし/1:過電流制御中)を格
納するためのフラグレジスタである。これに格納する初
期値は0である。
The register RAF2 has an AC output current (50
Is a flag register for storing data (0: no overcurrent control / 1: overcurrent control) indicating whether or not overcurrent control for suppressing an overcurrent of (Hz) is being performed. The initial value stored in this is 0.

【0069】レジスタRASVは、交流出力電圧(50
Hz)の各半波期間の出力電圧積算値を算出するための
電圧積分レジスタである。これに格納する初期値は0で
ある。
The register RASV is an AC output voltage (50
(Hz) is a voltage integration register for calculating an output voltage integrated value in each half-wave period. The initial value stored in this is 0.

【0070】レジスタRASJは、交流出力電流(50
Hz)の出力電流平均値を算出するための積算レジスタ
である。これに格納する初期値は0である。出力電流平
均値のサンプリングおよび積算区間は交流出力電流(5
0Hz)の一周期の1/2の区間であり、この区間の終
りに平均値を算出し、新たに電流値のサンプリングおよ
び積算を開始する。
The register RASJ is an AC output current (50
Hz) is an integrating register for calculating an average output current value. The initial value stored in this is 0. The AC output current (5
It is a half of one cycle of 0 Hz), an average value is calculated at the end of this period, and sampling and integration of current values are newly started.

【0071】レジスタRAAFは、過電流制御のための
調整値を格納するレジスタ。0〜255が格納され、基
準交流電圧を発生するための第1基準電圧(正弦波)V
ref1(N)に、RAAF/256が乗算されることによ
り、出力電圧が調整される。RAAF/256の「RA
AF」は、レジスタRAAFのデータを意味する。レジ
スタRAAFの初期値は255である。
The register RAAF is a register for storing an adjustment value for overcurrent control. 0 to 255 is stored, and a first reference voltage (sine wave) V for generating a reference AC voltage
The output voltage is adjusted by multiplying ref1 (N) by RAAF / 256. RAAF / 256 “RA
"AF" means the data in the register RAAF. The initial value of the register RAAF is 255.

【0072】レジスタRADRは、交流出力電圧(50
Hz)を設定値とするための調整値を格納するレジス
タ。基準交流電圧を発生するための第2基準電圧(正弦
波)Vref2(N)に、RADR/256が乗算されるこ
とにより、出力電圧が調整される。RADR/256の
「RADR」は、レジスタRADRのデータを意味す
る。レジスタRADRの初期値は0である。
The register RADR has an AC output voltage (50
(Hz) is a register that stores adjustment values for setting values. The output voltage is adjusted by multiplying the second reference voltage (sine wave) Vref2 (N) for generating the reference AC voltage by RADR / 256. “RADR” of RADR / 256 means the data of the register RADR. The initial value of the register RADR is 0.

【0073】レジスタRANは、位相カウントレジスタ
であり、一周期を96×2分割した一単位(180度/
96)を位相カウントの一単位とし、95までカウント
アップすると(半波周期の終わりで)、その値を初期化
する。初期値は0である。
The register RAN is a phase count register and is a unit (180 degrees /
96) as one unit of the phase count, and when it counts up to 95 (at the end of the half-wave cycle), the value is initialized. The initial value is 0.

【0074】レジスタRAIは、交流出力電流(50H
z)の出力電流平均値を算出するための積算回数レジス
タである。これに格納する初期値は9である。出力電流
平均値のサンプリングおよび積算区間(レジスタRAI
のデータが1から16になる間)は交流出力電流(50
Hz)の一周期の1/2の区間であり、この区間の終り
に交流出力電流の平均値Jav=RASJ/16(RAS
Jは上述の積算レジスタRASJのデータ、16は積算
回数レジスタRAIのデータ)を算出し、新たに電流値
のサンプリングおよび積算を開始する。
The register RAI has an AC output current (50H).
It is a cumulative number register for calculating the output current average value of z). The initial value stored in this is 9. Output current average value sampling and integration interval (register RAI
The AC output current (50
(Hz) 1/2 period of one cycle, and at the end of this period, the average value of AC output current Jav = RASJ / 16 (RAS
J is the data of the integration register RASJ and 16 is the data of the integration number register RAI), and sampling and integration of the current value are newly started.

【0075】ここで、RAIの初期値を9にしたのは、
無負荷状態では出力端子4a,4b間には2次側に負荷
が接続されていない昇圧用トランスと電流検出用トラン
ス5のみ、すなわちインダクタ部品のみが接続されてい
るため、出力交流電圧と出力交流電流の間に約90度の
位相差が生じるので、この位相差を解消し出力交流電流
の正半波と負半波を区別して積算するためである。この
初期値の意義は、後に「直流分補正」(ステップ12)
の内容説明の箇所でより詳しく説明する。
Here, the initial value of RAI is set to 9 because
In the no-load state, since the load is not connected to the secondary side between the output terminals 4a and 4b, only the step-up transformer and the current detecting transformer 5, that is, only the inductor component is connected, the output AC voltage and the output AC This is because a phase difference of about 90 degrees occurs between the currents, and this phase difference is eliminated and the positive half wave and the negative half wave of the output AC current are distinguished and integrated. The significance of this initial value will be described later in “DC component correction” (step 12).
It will be described in more detail in the section of the content description of.

【0076】レジスタRPWMは、出力するPWMパル
スのH(ハイレベル)幅を定めるデータVpwm を格納す
るPWM出力レジスタである。レジスタRPWMのデー
タVpwm の初期値は128(PWMパルスのデューティ
比50%)である。
The register RPWM is a PWM output register that stores data Vpwm that defines the H (high level) width of the PWM pulse to be output. The initial value of the data Vpwm of the register RPWM is 128 (the duty ratio of the PWM pulse is 50%).

【0077】レジスタRASJAVは、交流出力電流
(50Hz)の5周期の間の出力電流平均値Javの直流
分の積算値(出力電流平均値Javの10回のサンプリン
グ値に含まれる直流分の積算値)を格納するための直流
分積算レジスタである。交流分を除去するため、交流出
力電流(50Hz)の90〜270度の範囲のJavの値
は正値として、270〜0〜90度の範囲のJavの値は
負値として積算される。交流出力電流(50Hz)の5
周期の間のレジスタRASJAVの積算データRASJ
AVは、5周期の間の直流分平均値を示す。このレジス
タRASJAVの初期値は1000H(Hはヘキサデシ
マルノーテーション)である。
The register RASJAV is an integrated value of the direct current component of the output current average value Jav during the 5 cycles of the alternating current output current (50 Hz) (the integrated value of the direct current component included in the sampling value of the output current average value Jav of 10 times). ) Is a direct current component integration register for storing). In order to remove the AC component, the value of Jav in the range of 90 to 270 degrees of the AC output current (50 Hz) is integrated as a positive value, and the value of Jav in the range of 270 to 0 to 90 degrees is integrated as a negative value. AC output current (50Hz) of 5
Accumulated data RASJ of register RASJAV during the cycle
AV represents the average value of the DC component during 5 cycles. The initial value of this register RASJAV is 1000H (H is hexadecimal notation).

【0078】レジスタRAJは、直流分の積算のための
積算回数レジスタであり、その初期値は0である。
The register RAJ is a number-of-integration register for integrating the DC component, and its initial value is 0.

【0079】レジスタRAOKは、直流分検出の繰返し
において、直流分が適値範囲であった連続回数を格納す
るカウントレジスタであり、初期値は0である。
The register RAOK is a count register for storing the number of times the DC component is in the proper value range in the repeated DC component detection, and its initial value is 0.

【0080】レジスタRACENTERは、直流分調整
のための調整値を格納するレジスタであり、初期値は0
400Hである。
The register RACENTER is a register for storing the adjustment value for adjusting the DC component, and the initial value is 0.
It is 400H.

【0081】レジスタRACENTは、レジスタRAC
ENTERのデータの1/8の整数値を格納するレジス
タであり、初期値は80Hである。
The register RACENT is the register RAC
The register stores an integer value of 1/8 of the ENTER data, and the initial value is 80H.

【0082】レジスタRACENTSUBは、レジスタ
RACENTERのデータの1/8の小数値に対応する
データを格納するレジスタであり、初期値は00Hであ
る。
The register RACENTSUB is a register for storing data corresponding to a decimal value of 1/8 of the data in the register RACENTER, and its initial value is 00H.

【0083】その他各種のレジスタ(内部RAMに割り
当て)およびデータテーブル(内部ROMに割り当て)
があるが、それらは、以下のフローチャートに基づいた
コンピュータ22の動作説明において明らかにする。
Various other registers (assigned to internal RAM) and data tables (assigned to internal ROM)
However, they will be clarified in the description of the operation of the computer 22 based on the following flow chart.

【0084】(3)PWMパルス周期Tpwm の設定:コ
ンピュータ22は、その出力ポート「PWM」からパル
ス反転回路23に出力するPWMパルスの周期Tpwm =
255/f≒34.59 μsec をレジスタTpwmに書込む
(ステップ3)。fは、発振器20が発生するクロック
パルスの周波数である。なお、この実施の形態では、負
荷LDに与える交流電圧の周波数を50Hzとしてい
る。
(3) Setting of PWM pulse cycle Tpwm: The computer 22 outputs the PWM pulse cycle Tpwm from the output port "PWM" to the pulse inverting circuit 23 = Tpwm =
Write 255 / f≈34.59 μsec into the register Tpwm (step 3). f is the frequency of the clock pulse generated by the oscillator 20. In addition, in this embodiment, the frequency of the AC voltage applied to the load LD is 50 Hz.

【0085】(4)タイマ割込1の割込周期Ts1の設
定:タイマ1の時限値Ts1=1/9.6KHz≒104.
17μsec をレジスタTs1に書込む(ステップ4)。
(4) Setting of interrupt cycle Ts1 of timer interrupt 1: time limit value Ts1 of timer 1 = 1 / 9.6 KHz≈104.
Write 17 μsec to the register Ts1 (step 4).

【0086】(5)タイマ割込2の割込周期Ts2の設
定:タイマ2の時限値Ts2=6/9.6KHz≒625
μsec をレジスタTs2に書込む(ステップ5)。
(5) Setting of interrupt cycle Ts2 of timer interrupt 2: time limit value Ts2 of timer 2 = 6 / 9.6 KHz≈625
.mu.sec is written in the register Ts2 (step 5).

【0087】(6)タイマ割込みの許可:タイマ1およ
びタイマ2のタイムオーバに応答するタイマ1割込処理
およびタイマ2割込処理を許可する(ステップ6)。こ
れにより、以後、タイマ1がタイムオーバするたびに図
14〜図18に示す「タイマ1割込処理」(IRT1)
を実行し、タイマ2がタイムオーバするたびに図10に
示す「タイマ2割込処理」(IRT2)を実行する。タ
イマ1およびタイマ2にはそれぞれ時限値Ts1および
Ts2が設定されるので、「タイマ1割込処理」(IR
T1)はTs1周期で実行され、「タイマ2割込処理」
(IRT2)はTs2周期で実行される。
(6) Permitting timer interrupts: Permit timer 1 interrupt processing and timer 2 interrupt processing in response to timer 1 and timer 2 timeout (step 6). As a result, thereafter, every time the timer 1 times out, the "timer 1 interrupt process" (IRT1) shown in FIGS.
Every time the timer 2 times out, the "timer 2 interrupt process" (IRT2) shown in FIG. 10 is executed. Since the timers 1 and 2 are set with the time limit values Ts1 and Ts2, respectively, the "timer 1 interrupt process" (IR
T1) is executed in Ts1 cycle, and "timer 2 interrupt processing"
(IRT2) is executed in Ts2 cycle.

【0088】Ts2=Ts1×6であるので、「タイマ
1割込処理」(IRT1)の6回の実行につき、「タイ
マ2割込処理」(IRT2)は1回の実行、となる。
「タイマ1割込処理」(IRT1)の内容は図14〜図
18を参照して後述し、「タイマ2割込処理」(IRT
2)の内容も図10を参照して後述する。
Since Ts2 = Ts1 × 6, the “timer 2 interrupt process” (IRT2) is executed once for every 6 times of the “timer 1 interrupt process” (IRT1).
The contents of the "timer 1 interrupt process" (IRT1) will be described later with reference to FIGS.
The contents of 2) will be described later with reference to FIG.

【0089】(7)タイマスタート:タイマ1に時限値
Ts1(レジスタTs1のデータ)を、タイマ2に時限
値Ts2(レジスタTs2のデータ)を設定して、それ
ぞれスタート(計時開始)する(ステップ7)。
(7) Timer start: Set the time limit value Ts1 (data of the register Ts1) to the timer 1 and the time limit value Ts2 (data of the register Ts2) to the timer 2, and start (start time counting) respectively (step 7). ).

【0090】(8)PWMパルスの出力開始:コンピュ
ータ22は、その出力ポート「PWM」に高レベルHを
セットして、Vpwm (レジスタVpwm のデータ)時限の
割込タイマVpwm をスタートして、「PWM割込処理」
を許可する(ステップ8)。
(8) PWM pulse output start: The computer 22 sets a high level H to its output port "PWM" and starts an interrupt timer Vpwm for Vpwm (data of register Vpwm) time, PWM interrupt processing "
Is allowed (step 8).

【0091】これ以後、PWMパルス出力は、コンピュ
ータ22の、図示を省略した「PWM割込処理」(PW
M出力のための割込処理)で行なわれる。PWM周期T
pwm は、ステップ3でレジスタTpwm に設定した値、2
55/f≒34.59μsec である。Vpwm およびTpwm の
計測(時間カウント)は発振器20の出力パルス(周波
数f)のカウント(クロックパルスカウント)により行
なわれる。この割込処理においては、Vpwm を計時する
タイマVpwm をスタートし、出力ポート(PWM)に高
レベルHを設定し、タイマVpwm がタイムオーバする
と、出力ポート(PWM)に低レベルLを設定し、Tpw
m −Vpwm を計時するタイマ(Tpwm −Vpwm )をスタ
ートし、このタイマ(Tpwm −Vpwm )がタイムオーバ
すると、Vpwm を計時するタイマVpwm をスタートし、
出力ポート(PWM)に高レベルHを設定する。以下同
様である。この割込処理において、Vpwm は、後述する
レジスタRPWMのデータにより、Ts1周期で更新さ
れる。この時のVpwm はVpwm =RPWM/255*T
pwm(但しRPWMはレジスタRPWMのデータ)で表
され、例えばRPWM=128の時出力ポート「PW
M」から出力されるパルスのデューティ比はほぼ50%
となる。この「PWM割込処理」により、出力ポート
「PWM」からパルス反転回路23にPWMパルスが出
力される。
Thereafter, the PWM pulse output is output from the computer 22 by the "PWM interrupt processing" (PW
Interrupt processing for M output). PWM cycle T
pwm is the value set in the register Tpwm in step 3, 2
55 / f≈34.59 μsec. Measurement of Vpwm and Tpwm (time counting) is performed by counting output pulses (frequency f) of the oscillator 20 (clock pulse counting). In this interrupt processing, a timer Vpwm that measures Vpwm is started, a high level H is set to the output port (PWM), and when the timer Vpwm times out, a low level L is set to the output port (PWM), Tpw
A timer (Tpwm-Vpwm) for measuring m-Vpwm is started, and when this timer (Tpwm-Vpwm) times out, a timer Vpwm for measuring Vpwm is started,
High level H is set to the output port (PWM). The same applies hereinafter. In this interrupt process, Vpwm is updated every Ts1 cycle by the data of the register RPWM described later. At this time, Vpwm is Vpwm = RPWM / 255 * T
It is represented by pwm (however, RPWM is the data of register RPWM). For example, when RPWM = 128, the output port "PW
The duty ratio of the pulse output from "M" is almost 50%.
Becomes By this "PWM interrupt process", a PWM pulse is output from the output port "PWM" to the pulse inverting circuit 23.

【0092】図19に、PWMパルスを示す。Ts1≒
104.17μsec 、Tpwm ≒34.59 μsec であり、Ts1周
期でVpwm が更新されるので、PWMパルスの3パルス
(3周期)又は4パルスの間、オン(H)幅が同一のP
WMパルスが出力される。即ち、Ts1の時間内でパル
スオン(H)の幅Vpwm を演算し、レジスタRPWMの
内容を書換えると、PWM周期は一定で、オン幅が同一
のパルスが出力される。後述するように、Ts1周期で
実行する「タイマ1割込処理」(IRT1:図14〜図
18)では、過電流抑制,直流分抑制および出力電圧制
御のための各種演算を行ない、これらの演算に比較的に
時間を要する。このため、Ts1はPWMパルス周期T
pwm よりも長く設定されている。
FIG. 19 shows the PWM pulse. Ts1 ≒
Since 104.17 μsec and Tpwm ≈ 34.59 μsec, and Vpwm is updated in one cycle of Ts, P having the same on (H) width during 3 pulses (3 cycles) or 4 pulses of the PWM pulse.
The WM pulse is output. That is, when the pulse-on (H) width Vpwm is calculated within the time Ts1 and the contents of the register RPWM are rewritten, pulses having a constant PWM cycle and the same on-width are output. As will be described later, in the "timer 1 interrupt process" (IRT1: FIG. 14 to FIG. 18) executed in the Ts1 cycle, various calculations for overcurrent suppression, DC component suppression and output voltage control are performed, and these calculations are performed. Takes a relatively long time. Therefore, Ts1 is the PWM pulse period T
It is set longer than pwm.

【0093】(9)負荷LDへの出力遮断:PWMパル
ス出力の開始と同時に、コンピュータ22は、その出力
ポート1にL(ロー)を設定する(ステップ9)。この
LはバッファアンプBA1でH(ハイ)に反転されてリ
レー駆動回路8dに与えられる。リレー駆動回路8d
は、このHに応答してリレー8rを消勢(通電停止)す
る。リレー接片は開となる(なお、電源オフ時が開であ
り、電源オンからここまでの過程でもリレー接片は実質
上開である)。
(9) Output cutoff to load LD: Simultaneously with the start of PWM pulse output, the computer 22 sets L (low) to its output port 1 (step 9). This L is inverted to H (high) by the buffer amplifier BA1 and given to the relay drive circuit 8d. Relay drive circuit 8d
Responds to this H and deactivates relay 8r (stops energization). The relay contact is open (note that the relay contact is open when the power is off, and the relay contact is substantially open during the process from power on to here).

【0094】(10)「出力電流の検出A」(ステップ
10):ここでは、電流検出用トランス5により検出す
る出力電流(50Hz)の瞬時値(の絶対値)を読込
み、平均値Javを算出する(ステップ10)。この内容
は、図11を参照して後述する。
(10) "Detection of output current A" (step 10): Here, the instantaneous value (absolute value) of the output current (50 Hz) detected by the current detection transformer 5 is read, and the average value Jav is calculated. (Step 10). The contents will be described later with reference to FIG.

【0095】(11)「過電流制御A」(ステップ1
1):ここでは0出力電流(50Hz)が設定範囲内か
否かを検出し、設定範囲を外れるときには、該範囲内に
入るように調整値を変更する(ステップ11)。この内
容は、図12を参照して後述する。
(11) "Overcurrent control A" (step 1
1): Here, it is detected whether or not the 0 output current (50 Hz) is within the set range, and when it is out of the set range, the adjustment value is changed so as to be within the range (step 11). The contents will be described later with reference to FIG.

【0096】(12)「直流分補正」(ステップ1
2):ここでは、出力電流(50Hz)の直流分を検出
し、それが適値範囲内か否かを判定し、該範囲を外れて
いるときには該範囲内に入るように調整値を変更する
(ステップ12)。適値範囲内となるまで、ステップ1
0〜12を繰返す。適値範囲となると、次のステップ1
3に進む。この「直流分補正」の内容は、図13を参照
して後述する。
(12) "DC component correction" (step 1
2): Here, the direct current component of the output current (50 Hz) is detected, it is determined whether or not it is within an appropriate value range, and when it is out of the range, the adjustment value is changed so as to be within the range. (Step 12). Step 1 until it is within the appropriate range
Repeat 0 to 12. When the appropriate value range is reached, the next step 1
Proceed to 3. The contents of this "DC component correction" will be described later with reference to FIG.

【0097】(13)負荷LDへ給電開始:コンピュー
タ22は、その出力ポート1にH(ハイ)を設定する
(ステップ13)。このHはバッファアンプBA1でL
(ロー)に反転されてリレー駆動回路8dに与えられ
る。リレー駆動回路8dは、このLに応答してリレー8
rに通電する。リレー接片は閉となる。これにより、図
1に示すインバータの交流出力電圧(50Hz)が負荷
LDに加わる。
(13) Start power supply to the load LD: The computer 22 sets H (high) to its output port 1 (step 13). This H is L by the buffer amplifier BA1
It is inverted to (low) and applied to the relay drive circuit 8d. The relay drive circuit 8d responds to this L by the relay 8
Energize r. The relay contact is closed. As a result, the AC output voltage (50 Hz) of the inverter shown in FIG. 1 is applied to the load LD.

【0098】(14)「出力電流の検出B」(ステップ
14):ここでコンピュータ22が実行する処理は、
「出力電流の検出A」(ステップ10)と同一である。
したがって、その内容の詳細説明は省略する。
(14) "Detection B of output current" (step 14): Here, the processing executed by the computer 22 is
This is the same as the "output current detection A" (step 10).
Therefore, detailed description of the contents is omitted.

【0099】(15)「過電流制御B」(ステップ1
5):ここでコンピュータ22が実行する処理は、「過
電流制御A」(ステップ11)と同一である。したがっ
て、その内容の詳細説明は省略する。
(15) "Overcurrent control B" (step 1
5): Here, the processing executed by the computer 22 is the same as the “overcurrent control A” (step 11). Therefore, detailed description of the contents is omitted.

【0100】リレー8rに通電した後(負荷通電中)
は、コンピュータ22は、電源オフになるか、あるいは
リセットスイッチ21がオンになるまで、「出力電流の
検出B」(ステップ14)および「過電流制御B」(ス
テップ15)のみを、この順に繰返し実行する。リセッ
トスイッチ21がオンになるとコンピュータ22は動作
を停止し、リセットスイッチ21がオフに戻ると、上述
の一連のステップ1から、動作を再開する。
After energizing the relay 8r (while the load is energized)
The computer 22 repeats only "output current detection B" (step 14) and "overcurrent control B" (step 15) in this order until the power is turned off or the reset switch 21 is turned on. Run. When the reset switch 21 is turned on, the computer 22 stops operating, and when the reset switch 21 is turned off again, the operation is restarted from the series of steps 1 described above.

【0101】ステップ1〜12までの処理は、負荷LD
に電力を供給するための準備処理(前処理)であり、無
負荷時の出力直流分を適正範囲に抑制するまで、ステッ
プ10〜12が繰返えされる。直流分を適正範囲に抑制
すると負荷LDに電力供給を開始(リレー8rオン)
し、その後の負荷への供給電力制御は、「出力電流の検
出B」(ステップ14)および「過電流制御B」(ステ
ップ15)のみで行なわれる。
The processing from step 1 to step 12 is the load LD.
Is a preparatory process (pre-processing) for supplying electric power to the device, and steps 10 to 12 are repeated until the output direct current component under no load is suppressed within an appropriate range. When the direct current component is suppressed within the proper range, power supply to the load LD starts (relay 8r on)
However, the subsequent power supply control to the load is performed only by "output current detection B" (step 14) and "overcurrent control B" (step 15).

【0102】図10を参照して、「タイマ2割込処理」
(IRT2)の内容を説明する。
Referring to FIG. 10, "timer 2 interrupt processing"
The contents of (IRT2) will be described.

【0103】タイマ2のタイムオーバに応答してコンピ
ュータ22は、タイマ2にTs2(レジスタTs2のデ
ータ)を再設定して、タイマ2を再スタートし(ステッ
プ21)、「出力電流の検出」の実行要を示す1をレジ
スタIRF2に書込む(ステップ22)。そしてそこで
「タイマ2割込処理」(IRT2)を終了し、元のルー
チン(この割込処理に進む直前の処理)に復帰する。
In response to the time-out of the timer 2, the computer 22 resets Ts2 (data of the register Ts2) in the timer 2 and restarts the timer 2 (step 21), and the "output current detection" The value 1 indicating the execution requirement is written in the register IRF2 (step 22). Then, the "timer 2 interrupt process" (IRT2) is terminated, and the process returns to the original routine (process immediately before proceeding to this interrupt process).

【0104】図11を参照して、「出力電流の検出A」
(ステップ10)の内容を説明する。
Referring to FIG. 11, "output current detection A"
The contents of (step 10) will be described.

【0105】ここでコンピュータ22は先ず、レジスタ
IRF2に1(出力電流の検出の実行要)があるかをチ
ェックする(ステップ31)。1でないと、レジスタI
RF2のデータが1になるのを待つ。すなわち、出力電
流の検出(サンプリング)タイミングになるのを待つ。
レジスタIRF2のデータが1であると、又は1になる
と、コンピュータ22は、レジスタIRF2のデータを
クリアし(0の書込みと同義)(ステップ32)、第2
のA/D変換入力ポートA/D2の入力電圧(出力電流
50Hzの瞬時値;ただし絶対値)のデジタル変換の終
了を待つ(33)。このデジタル変換は後述する「タイ
マ1割込処理」(IRT1:図14〜図18)のステッ
プ106(図16)で開始している(電流検出値のA/
D変換は、Ts1周期で行なっている)。
Here, the computer 22 first checks whether the register IRF2 has 1 (necessary to detect the output current) (step 31). If not 1, register I
Wait for the RF2 data to become 1. That is, it waits for the output current detection (sampling) timing.
When the data in the register IRF2 is 1 or becomes 1, the computer 22 clears the data in the register IRF2 (same as writing 0) (step 32), and the second
Wait for the end of digital conversion of the input voltage (instantaneous value of output current 50 Hz; absolute value) of the A / D conversion input port A / D2 of (33). This digital conversion is started at step 106 (FIG. 16) of “timer 1 interrupt processing” (IRT1: FIG. 14 to FIG. 18) described later (current detection value A /
(D conversion is performed in Ts1 cycle).

【0106】再度図11を参照すると、このデジタル変
換の終了を待って(ステップ33)、終了すると電流検
出値(データ)Jout をレジスタRAJOUTに書込む
(ステップ34)。すなわち、最新の電流検出値をレジ
スタRAJOUTに書込む。
Referring again to FIG. 11, after completion of the digital conversion (step 33), the current detection value (data) Jout is written in the register RAJOUT (step 34). That is, the latest current detection value is written in the register RAJOUT.

【0107】次に、積算レジスタRASJに、その内容
にJout を加えた和を更新書込みする(ステップ3
5)。すなわち今回読込んだ電流検出値Jout をレジス
タRASJに積算する。積算値が大きくなるので、それ
を表わすためにレジスタRASJには2バイトを割り当
てている。
Next, the sum obtained by adding Jout to the contents is updated and written in the integration register RASJ (step 3).
5). That is, the current detection value Jout read this time is integrated in the register RASJ. Since the integrated value becomes large, 2 bytes are assigned to the register RASJ to represent it.

【0108】次に積算回数レジスタRAIのデータRA
Iが、16を表わすものになっている(16回の積算を
行なった)かをチェックする(ステップ36)。16に
なっていないと、積算回数レジスタRAIのデータRA
Iを1インクレメントして(ステップ37)、レジスタ
IRF2のデータが1になるのを待つ(ステップ3
1)。すなわち、次の電流値サンプリングタイミングに
なるのを待つ。先に説明したように、「タイマ2割込処
理」(IRT2)を終えたときにレジスタIRF2のデ
ータが1になるので、出力電流のサンプリング周期はT
s2であり、ここでは、Ts2の時間経過を待つことに
なる。このようにして、16回の電流値の読込みと積算
を行なうと(計16×Ts2の時間となる)、コンピュ
ータ22は、電流平均値Jav=RASJ/16を算出し
て、レジスタJavに書込む(ステップ38)。そして、
積算回数レジスタRAIのデータRAIを1に初期化し
(ステップ39)、積算レジスタRASJのデータを0
に初期化する(ステップ40)。
Next, the data RA of the integration count register RAI
It is checked whether I represents 16 (accumulation of 16 times has been performed) (step 36). If it is not 16, the data RA of the integration count register RAI
Increment I by 1 (step 37) and wait until the data in the register IRF2 becomes 1 (step 3).
1). That is, it waits for the next current value sampling timing. As described above, since the data in the register IRF2 becomes 1 when the "timer 2 interrupt process" (IRT2) is completed, the sampling cycle of the output current is T.
s2, and here, the time lapse of Ts2 is awaited. In this way, when the current value is read and integrated 16 times (total time is 16 × Ts2), the computer 22 calculates the current average value Jav = RASJ / 16 and writes it in the register Jav. (Step 38). And
The data RAI of the integration count register RAI is initialized to 1 (step 39), and the data of the integration register RASJ is set to 0.
(Step 40).

【0109】すなわち、「出力電流の検出A」(ステッ
プ10)により、Ts2×16の間、Ts2周期で16
回、出力電流検出値Jout を読込んで、その平均値Jav
を算出するので、電流平均値Jav(レジスタJavのデー
タJav)はTs2×16周期で更新される。この電流平
均値の更新を行なうたびに「過電流制御A」(11)に
進むので、「過電流制御A」(ステップ11)は、Ts
2×16周期で実行される。
That is, by "detection A of output current" (step 10), 16 times in Ts2 cycle during Ts2 × 16.
The output current detection value Jout is read, and the average value Jav is read.
Is calculated, the current average value Jav (data Jav of the register Jav) is updated in Ts2 × 16 cycles. Every time the current average value is updated, the process proceeds to "overcurrent control A" (11). Therefore, "overcurrent control A" (step 11)
It is executed in 2 × 16 cycles.

【0110】以上が、「出力電流の検出A」(ステップ
10)の内容であり、この「出力電流の検出A」(ステ
ップ10)がTs2×16周期で実行される。なお、負
荷LDに電力供給を開始した後の「出力電流の検出B」
(ステップ14)の内容も「出力電流の検出A」(ステ
ップ10)の内容と同一である。すなわち、負荷LDに
電力供給を開始する前および開始後ともに、上述の「出
力電流の検出」がTs2×16周期で実行される。
The above is the contents of the "output current detection A" (step 10), and this "output current detection A" (step 10) is executed in Ts2 × 16 cycles. It should be noted that "output current detection B" after power supply to the load LD is started
The contents of (step 14) are also the same as the contents of "Detection A of output current" (step 10). That is, the above-mentioned "detection of output current" is executed in Ts2 × 16 cycles both before and after the start of power supply to the load LD.

【0111】図12を参照して「過電流制御A」(ステ
ップ11)の内容を説明する。
The contents of the "overcurrent control A" (step 11) will be described with reference to FIG.

【0112】ここでコンピュータ22は、その内部のR
OMより過電流設定値Jref を読み出して、電流平均値
Javをこの過電流設定値Jref と比較して、Jref =J
avか、Jref <Javか、あるいはJref >Javか、をチ
ェックする(ステップ41)。
Here, the computer 22 has an internal R
The overcurrent set value Jref is read from the OM, the current average value Jav is compared with this overcurrent set value Jref, and Jref = J
It is checked whether av, Jref <Jav, or Jref> Jav (step 41).

【0113】Jref <Javであるとコンピュータ22
は、出力電流値調整用の第1調整値RAAFを格納する
レジスタRAAF(この初期値は255)の値を、第1
調整値の1単位ΔAF分小さい値に更新する(ステップ
45)。この更新は、レジスタRAAFのデータRAA
Fを、それが表わす数値より1を減算した差を表わすデ
ータに更新すること(データの1デクレメント)と同義
である。次に更新した値が下限値(0)以下になったか
をチェックして、下限値(0)以下になっていると、下
限値(0)に変更する(ステップ44,ステップ4
5)。すなわち、レジスタRAAFのデータは下限値
(0)を下リミットとしている。電流値の調整(低減)
が必要であるので、これを意味する1を、レジスタRA
F2に書込む(ステップ46)。なお、レジスタRAF
2のデータは、後述の「タイマ1割込処理」(IRT
1)で参照される。
If Jref <Jav, the computer 22
Is the value of a register RAAF (this initial value is 255) that stores a first adjustment value RAAF for adjusting the output current value,
The adjustment value is updated to a value smaller by one unit ΔAF (step 45). This update is performed by register RAAF data RAA.
This is synonymous with updating F to data representing the difference obtained by subtracting 1 from the numerical value represented by it (1 decrement of data). Next, it is checked whether the updated value is equal to or lower than the lower limit value (0), and if it is equal to or lower than the lower limit value (0), the value is changed to the lower limit value (0) (step 44, step 4).
5). That is, the lower limit value (0) of the data of the register RAAF is set as the lower limit. Adjustment (reduction) of current value
Is required, the value 1 which means this is set in the register RA
Write to F2 (step 46). The register RAF
The data of 2 is the "timer 1 interrupt process" (IRT
Referenced in 1).

【0114】次にコンピュータ22は、出力電流値調整
用の第2調整値RASREFを格納するレジスタRAS
REFの値を、第2調整値の1単位ΔSref 分小さい値
に更新する(ステップ47)。この更新は、レジスタR
ASREFのデータRASREFを、それが表わす数値
より32を減算した差を表わすデータに更新することと
同義である。次に更新した値が下限値(12288 )以下に
なったかをチェックして、下限値(12288 )以下になっ
ていると、下限値(12288 )に変更する(ステップ4
8,ステップ49)。すなわち、レジスタRASREF
のデータは下限値(12288 )を下リミットとしている。
この下限値は、図20に示す斜線領域の面積に相当す
る。即ち、下限値(12288 )は、半周期の範囲内で正弦
波の中心軸値(128 )と位相軸が囲む面積(128 ×96)
である。
Next, the computer 22 causes the register RAS for storing the second adjustment value RASREF for adjusting the output current value.
The value of REF is updated to a value smaller by one unit ΔSref than the second adjustment value (step 47). This update is done by register R
It is synonymous with updating the data RASREF of ASREF to data representing the difference obtained by subtracting 32 from the numerical value represented by it. Next, it is checked whether the updated value is below the lower limit value (12288), and if it is below the lower limit value (12288), it is changed to the lower limit value (12288) (step 4).
8, step 49). That is, the register RASREF
The lower limit of the lower limit value (12288) for the data is.
This lower limit value corresponds to the area of the hatched area shown in FIG. That is, the lower limit value (12288) is the area enclosed by the central axis value (128) of the sine wave and the phase axis (128 × 96) within the half cycle range.
It is.

【0115】電流平均値Javを過電流設定値Jref と比
較して(ステップ41)、Jref >Javであったときに
は、コンピュータ22は、出力電流値調整用の第1調整
値RAAFを格納するレジスタRAAFの値を、第1調
整値の1単位ΔAF分大きい値に更新する(ステップ5
0)。この更新は、レジスタRAAFのデータRAAF
を、それが表わす数値に1を加算した和を表わすデータ
に更新すること(データの1インクレメント)と同義で
ある。次に更新した値が上限値(255)を越えたかを
チェックして、上限値(255)を越えていると、上限
値(255)に変更する(ステップ51,ステップ5
2)。すなわち、レジスタRAAFのデータは上限値
(255)を上リミットとしている。上限値を越えた場
合には、電流値の調整(増大)が不可能であるので、電
流値の調整が不要(調整不可)を意味する0を、レジス
タRAF2に書込む(ステップ53)。上限値を越えな
かった場合には、電流値の調整要を示す1をレジスタR
AF2に書込む(ステップ54)。次にコンピュータ2
2は、出力電流値調整用の第2調整値RASREFを格
納するレジスタRASREFの値を、第2調整値の1単
位ΔSref 分大きい値に更新する(ステップ55)。次
に更新した値が上限値(18888 )を越えているかをチェ
ックして、上限値(18888 )を越えていると、上限値
(18888 )に変更する(ステップ56,ステップ5
7)。すなわち、レジスタRASREFのデータは上限
値(18888 )を上リミットとしている。この上限値は、
図21に示す斜線領域の面積に相当する。なお上限値
(18888 )は、半周期の範囲内で108sin(180°* N/96+
128), N=0〜95と位相軸が囲む面積を示す(斜線部
分)。この上限値は、インバータの出力電圧が実行値1
00Vになるように制御するための設定値である。
The current average value Jav is compared with the overcurrent set value Jref (step 41). When Jref> Jav, the computer 22 stores the first adjustment value RAAF for adjusting the output current value in the register RAAF. Is updated to a value that is larger than the first adjustment value by one unit ΔAF (step 5).
0). This update is performed by the data RAAF in the register RAAF.
Is updated to data representing a sum obtained by adding 1 to the numerical value represented by the value (1 increment of data). Next, it is checked whether the updated value exceeds the upper limit value (255). If the updated value exceeds the upper limit value (255), the value is changed to the upper limit value (255) (step 51, step 5).
2). That is, the upper limit of the data of the register RAAF (255) is set as the upper limit. When the upper limit is exceeded, the current value cannot be adjusted (increased), so 0 is written in the register RAF2, which means that the current value does not need to be adjusted (unadjustable) (step 53). When the upper limit value is not exceeded, 1 indicating the necessity of current value adjustment is set in the register R.
Write to AF2 (step 54). Computer 2
2 updates the value of the register RASREF that stores the second adjustment value RASREF for adjusting the output current value to a value larger by one unit ΔSref than the second adjustment value (step 55). Next, it is checked whether the updated value exceeds the upper limit value (18888). If it exceeds the upper limit value (18888), the value is changed to the upper limit value (18888) (step 56, step 5).
7). That is, the upper limit value (18888) of the data of the register RASREF is the upper limit. This upper limit is
This corresponds to the area of the hatched area shown in FIG. The upper limit (18888) is 108sin (180 ° * N / 96 +) within the half cycle.
128), N = 0 to 95 and the area surrounded by the phase axis is shown (hatched portion). As for this upper limit value, the output voltage of the inverter is the execution value 1
It is a set value for controlling the voltage to be 00V.

【0116】電流平均値Javを過電流設定値Jref と比
較して(ステップ41)、Jref =Javであったときに
は、コンピュータ22は、第1調整値RAAFおよび第
2調整値RASREFの変更はせず(前回値に維持
し)、電流値の調整要を示す1をレジスタRAF2に書
込む(ステップ42)。
The current average value Jav is compared with the overcurrent set value Jref (step 41), and when Jref = Jav, the computer 22 does not change the first adjustment value RAAF and the second adjustment value RASREF. (Maintain the previous value) and write 1 indicating that the current value needs to be adjusted in the register RAF2 (step 42).

【0117】以上が、「過電流制御A」(ステップ1
1)の内容であり、この「過電流制御A」(ステップ1
1)がTs2×16周期で実行される。なお、負荷LD
に電力供給を開始した後の「過電流制御B」(ステップ
15)の内容も「過電流制御A」(ステップ11)の内
容と同一である。すなわち、負荷LDに電力供給を開始
する前および開始後ともに、上述の過電流制御がTs2
×16周期で実行される。
The above is the "overcurrent control A" (step 1).
This is the content of 1), and this "overcurrent control A" (step 1
1) is executed in Ts2 × 16 cycles. In addition, load LD
The contents of the "overcurrent control B" (step 15) after the start of the power supply is also the same as the contents of the "overcurrent control A" (step 11). That is, the above-described overcurrent control is performed for Ts2 both before and after the power supply to the load LD is started.
It is executed in × 16 cycles.

【0118】図13を参照して「直流分補正」(ステッ
プ12)の内容を説明する。
The contents of the "DC component correction" (step 12) will be described with reference to FIG.

【0119】この「直流分補正」(ステップ12)は、
負荷LDへの電力供給の開始前のみ、周期Ts2×16
=625×16=10000 μsec (50Hzの出力交流電
圧の周期20000 μsec の1/2)で繰返し実行され、5
0Hzの出力交流電圧の発生開始時(図9のステップ
8)のみはRAIの初期値が9であることから5000μse
c 経過時(該交流電圧の第1波の位相90度時点)に第
1回の「直流分補正」(ステップ12)が実行され、そ
の後Ts2×16=10000 μsec 周期で繰返し実行され
る点に注意されたい。
This "DC component correction" (step 12)
Only before the start of the power supply to the load LD, the cycle Ts2 × 16
= 625 × 16 = 10000 μsec (1/2 of the cycle of 20000 μsec of the output AC voltage of 50 Hz).
5000 μse because the initial value of RAI is 9 only when the generation of the output AC voltage of 0 Hz is started (step 8 in FIG. 9).
When “c” has elapsed (at the time when the phase of the first wave of the AC voltage is 90 degrees), the first “DC component correction” (step 12) is executed, and then Ts2 × 16 = 10000 μsec. Please be careful.

【0120】上記で50Hzの出力交流電圧の発生開始
時のみ通常周期の半分のTs2×8=5000μsec 経過時
に第1回の「直流分補正」(ステップ12)が実行され
ると説明した。これは無負荷状態では出力端子4a,4
b間には、2次側に負荷が接続されていない昇圧用トラ
ンスと電流検出用トランス5のみ、すなわちインダクタ
部品のみが接続されているため、出力交流電圧と出力交
流電流との間に約90度の位相差が生じてしまい、後で
説明するように出力交流電流の正半波と負半波を区別し
て直流分補正処理を行うためには、「直流分補正」(ス
テップ12)の開始点を50Hz出力電圧波形よりも9
0度遅らせなければならないので、RAIの初期値を9
として第1回の「直流分補正」(ステップ12)の実行
を90度(5000μsec )ずらしたからである。
It has been described above that the first "DC component correction" (step 12) is executed when Ts2 × 8 = 5000 μsec, which is a half of the normal cycle, elapses only when the generation of the output AC voltage of 50 Hz starts. This is the output terminal 4a, 4 in the unloaded state
Between b, only the step-up transformer and the current detection transformer 5, which are not connected to the load on the secondary side, are connected, that is, only the inductor component. Therefore, between the output AC voltage and the output AC current, about 90 Therefore, in order to perform the DC component correction processing by distinguishing between the positive half-wave and the negative half-wave of the output AC current as described later, the “DC component correction” (step 12) is started. 9 points from the 50Hz output voltage waveform
Since it must be delayed by 0 degrees, the initial value of RAI is 9
This is because the execution of the first “DC component correction” (step 12) is shifted by 90 degrees (5000 μsec).

【0121】「直流分補正」(ステップ12)では、コ
ンピュータ22は、まず積算回数レジスタRAJのデー
タRAJ(初期値は0)を1インクレメントして(ステ
ップ61)、その値が偶数であるかをチェックし(ステ
ップ62)、偶数であると、レジスタJavのデータJav
を積算レジスタRASJAVのデータRASJAVに加
えた和を、積算レジスタRASJAVに更新書込みする
(ステップ63)。データRASJAVには2バイトを
割り当てている。積算回数レジスタRAJのデータRA
Jが奇数であったときには、レジスタJavのデータJav
を積算レジスタRASJAVのデータRASJAVより
減算した差を、積算レジスタRASJAVに更新書込み
する(ステップ64)。そして積算回数レジスタRAJ
のデータRAJが10を示すものになった(10回の積
算を終了した)かをチェックし(ステップ65)、10
に達していないと、そこで「直流分補正」(ステップ1
2)を終了し、「出力電流の検出A」(ステップ10)
に進む。
In the "DC component correction" (step 12), the computer 22 first increments the data RAJ (initial value is 0) of the integration number register RAJ by 1 (step 61), and whether the value is an even number. Is checked (step 62), and if it is even, the data Jav of the register Jav
Is added to the data RASJAV of the integration register RASJAV to update and write it in the integration register RASJAV (step 63). 2 bytes are allocated to the data RASJAV. Data RA of integrated count register RAJ
When J is an odd number, the data Jav of the register Jav
The difference obtained by subtracting from the data RASJAV of the integration register RASJAV is updated and written in the integration register RASJAV (step 64). And the accumulated number register RAJ
It is checked whether the data RAJ of 10 has become 10 (integration of 10 times is completed) (step 65), 10
If it has not reached, then "DC correction" (Step 1
2) is ended, and "output current detection A" (step 10)
Proceed to.

【0122】積算回数レジスタRAJのデータが10を
示すものになったときには、50Hz交流電圧出力(無
負荷)の、第1波の位相270度から第2波の位相90
度の間の、出力電流の整流値(絶対値)の平均値(Jav
1)が−(マイナス)値でレジスタRASJAVに積算
され、第2波の位相90度〜270度までの出力電流の
平均値(Jav2)が、+値でレジスタRASJAVに積
算され、第2波の位相270度から第2波の位相90度
までの出力電流の平均値(Jav3)が、−(マイナス)
値でレジスタRASJAVに積算され、以下同様にし
て、Jav4,Jav5,Jav6,Jav7,Jav8,Jav9
および、第5波の位相90度〜270度までの出力電流
の平均値(Jav10) が+値で、レジスタRASJAV
に積算されていることになる。
When the data of the integration count register RAJ indicates 10, the phase of the first wave 270 degrees to the phase 90 of the second wave of the 50 Hz AC voltage output (no load).
Average value (Jav) of the rectified value (absolute value) of the output current
1) is added to the register RASJAV with a- (minus) value, and the average value (Jav2) of the output current from the phase 90 degrees to 270 degrees of the second wave is added to the register RASJAV with a + value to obtain the value of the second wave. The average value (Jav3) of the output current from the phase 270 degrees to the phase 90 degree of the second wave is-(minus)
The value is added to the register RASJAV, and the same is done for the following items: Jav4, Jav5, Jav6, Jav7, Jav8, Jav9
And, the average value (Jav10) of the output current from the 90th phase to the 270th phase of the fifth wave is a positive value, and the register RASJAV
Will be added to.

【0123】但し、起動直後の最初の「直流成分補正」
(ステップ12)では、電流の位相を合わせるためレジ
スタRAIの初期値を9としてあることより、RAJの
データが1の時の積算データ(Jav1)は、50Hz交
流電圧出力(無負荷)の、第2波の位相0〜90度の間
の、出力電流の整流値(絶対値)の平均値となってい
る。
However, the first "DC component correction" immediately after start-up
In (Step 12), since the initial value of the register RAI is set to 9 in order to match the phase of the current, the integrated data (Jav1) when the data of RAJ is 1 is the 50 Hz AC voltage output (no load), It is the average value of the rectified value (absolute value) of the output current between the phases of two waves of 0 to 90 degrees.

【0124】直流分が存在するときには、それが正のレ
ベル(第1波の正半波ピークを高くする極性)であると
レジスタRASJAVのデータが表わす値は大きい正
値、負のレベル(第1波の正半波ピークを低くする極
性)であるとレジスタRASJAVのデータが表わす値
は、小さい正値となっている(レジスタRASJAVの
初期値が1000Hであるため)。
When the DC component is present, the value represented by the data in the register RASJAV indicating that the DC component has a positive level (the polarity that raises the positive half-wave peak of the first wave) is large. The value represented by the data in the register RASJAV has a small positive value (because the initial value of the register RASJAV is 1000H).

【0125】コンピュータ22は、積算回数レジスタR
AJのデータRAJが10を示すものになると、ステッ
プ65でこれを検知し、積算回数レジスタRAJをクリ
アする(ステップ66)。そして、直流分(レジスタR
ASJAVのデータRASJAV)が、設定範囲(適値
範囲)すなわち、SJAVMAX(レジスタSJAVM
AXのデータであり、100AHを表わす固定値)以
下、SJAVMIN(レジスタSJAVMINのデータ
であり、0FFHを表わす固定値)以上、であるかをチ
ェックする。すなわち、SJAVMAX≧RASJAV
≧SJAVMINであるかをチェックする(ステップ6
7,ステップ69)。この設定範囲をRASJAV(直
流分)が上側に外れているとき(直流成分が、50Hz
交流の無負荷出力電流の正半波ピークを高くする極性の
とき)には、直流分調整値RACENTER(レジスタ
RACENTERのデータ)を、1デクレメントし(ス
テップ68)、下側に外れているとき(直流成分が、5
0Hz交流の無負荷出力電流の正半波ピークを低くする
極性のとき)には直流分調整値RACENTERを1イ
ンクレメントする(ステップ70)。
The computer 22 uses the integration count register R
When the data RAJ of AJ becomes 10, it is detected in step 65 and the integrated number register RAJ is cleared (step 66). And DC component (register R
The data RASJAV of ASJAV is set range (appropriate value range), that is, SJAVMAX (register SJAVM).
It is checked whether the data is AX data, which is a fixed value representing 100 AH) or less, and SJAVMIN (data of register SJAVMIN, which is a fixed value representing 0FFH) or more. That is, SJAVMAX ≧ RASJAV
It is checked whether ≧ SJAVMIN (step 6)
7, step 69). When RASJAV (DC component) is outside of this setting range (DC component is 50Hz
When the positive half-wave peak of the AC no-load output current is high), the DC component adjustment value RACENTER (data of the register RACENTER) is decremented by 1 (step 68), and when it is off to the lower side. (DC component is 5
When the positive half-wave peak of the 0 Hz AC unloaded output current is low), the DC component adjustment value RACENTER is incremented by 1 (step 70).

【0126】このように直流分調整値RACENTER
を変更したときには、調整中であることを表わす0をレ
ジスタRAOKに書込み(ステップ71)、積算レジス
タRASJAVを初期化する。すなわち積算レジスタR
ASJAVに初期値1000Hを書込む(ステップ7
4)。コンピュータ22は次に、レジスタRACENT
ERの2バイト構成のデータRACENTER(データ
構成を図22に示す)の、数値i(i=0〜7)を表わ
す下位3ビットを摘出して(ステップ75)、それが表
わす数値i(i=0〜7)に対応する8ビットデータ
(図23に示す)を内部ROMより読み出し、レジスタ
RACENTSUBに書込む(ステップ76)。即ち、
RACENTERの下位3ビットを相対値iとしてRA
CENTSUB0+i番地のROMデータを読出し、こ
のデータをRACENTSUBに格納する。ROMには
RACENTSUB0から0/8、1/8、…、7/8
の割合で1を含むデータが予め格納されている。従っ
て、摘出した3ビットがi=0を表わすものであるとき
には、「00000000」(後述の処理との関係で、
端数0/8を意味する)を、i=1であるときには「1
0000000」(端数1/8を意味する)を、i=2
であるときには「10001000」(端数2/8を意
味する)を、i=3であるときには「1001001
0」(端数3/8を意味する)を、i=4であるときに
は「10101010」(端数4/8を意味する)を、
i=5であるときには「11011010」(端数5/
8を意味する)を、i=6であるときには「11101
110」(端数6/8を意味する)を、i=7であると
きには「11111110」(端数7/8を意味する)
を、レジスタRACENTSUBに書込む(ステップ7
6)。
Thus, the DC component adjustment value RACENTER
When is changed, 0 indicating that the adjustment is being performed is written in the register RAOK (step 71), and the integration register RASJAV is initialized. That is, the accumulation register R
Write an initial value of 1000H to ASJAV (step 7
4). The computer 22 then proceeds to the register RACENT.
The lower 3 bits representing the numerical value i (i = 0 to 7) of the 2-byte data RACENTER of the ER (data structure is shown in FIG. 22) are extracted (step 75), and the numerical value i (i = i) 8-bit data (shown in FIG. 23) corresponding to 0 to 7) is read from the internal ROM and written in the register RACENTSUB (step 76). That is,
RA with the lower 3 bits of RACENTER as relative value i
The ROM data at the address CENTSUB0 + i is read and this data is stored in RACENTSUB. From ROMENTSUB0 to ROM, 0/8, 1/8, ..., 7/8
The data containing 1 at the ratio of is stored in advance. Therefore, when the extracted 3 bits represent i = 0, "00000000" (in relation to the processing described later,
(Meaning fraction 0/8) is set to "1" when i = 1.
0000000 "(meaning a fraction ⅛), i = 2
Is 10001000 (meaning fractional 2/8), and i = 3 is 1001001.
0 "(meaning fractional 3/8), and when i = 4," 10101010 "(meaning fractional 4/8),
When i = 5, "11011010" (fraction 5 /
(Meaning 8) is added to “11101 when i = 6.
110 "(meaning a fraction of 6/8) is" 11111110 "(meaning a fraction of 7/8) when i = 7.
To the register RACENTSUB (step 7
6).

【0127】次に、コンピユータ22は、レジスタRA
CENTERの2バイト構成のデータRACENTER
の下位4ビットから11ビットまでの8ビットデータ
(データRACENTERの1/8を表わすデータの整
数値)を摘出し(すなわち1/8の割算をして)、レジ
スタRACENTに書込む(ステップ78)。概略で言
うと、上述のステップ75〜78の処理は、レジスタR
ACENTERのデータRACENTERの1/8を求
める割算をして、得た整数をレジスタRACENTに書
込み、端数に相当するデータをレジスタRACENTS
UBに書込む、ということである。
Next, the computer 22 sends the register RA
2-byte data RACENTER of CENTER
8-bit data from the lower 4 bits to 11 bits (an integer value of data representing 1/8 of data RACENTER) is extracted (that is, divided by 1/8) and written in the register RACENT (step 78). ). Roughly speaking, the processing of steps 75 to 78 described above is performed by the register R
Divide to obtain 1/8 of the data RACENTER of ACENTER, write the obtained integer in the register RACENT, and write the data corresponding to the fraction to the register RACENTS.
It means to write in UB.

【0128】以上のステップ65,ステップ66〜78
の処理を実行すると、また「出力電流の検出A」(ステ
ップ10)を実行し、更に「過電流制御A」(ステップ
11)を実行して、再度「直流分補正」(ステップ1
2)を実行する。すでに説明したように、これら3組の
処理はそれぞれTs2×16≒10000 μsec の周期で、
この順に繰返すが、後述の「タイマ1割込処理」(IR
T1)はTs1≒104.17μsec の短周期で繰返し、この
「タイマ1割込処理」(IRT1)において、「過電流
制御A」(ステップ11)で設定した調整値(RAA
F,RASREF)および「直流分補正」(ステップ1
2)で設定した調整値(RACENT,RACENTS
UB)に基づいて、PWMパルスのH幅Vpwm を定め、
前述のPWM割込処理で、この設定したVpwm のPWM
パルスを生成してパルス反転回路23に出力するので、
上述のように「直流分補正」(ステップ12)で調整値
(RACENT,RACENTSUB)を変更すること
により、50Hz無負荷交流出力電流の値が変化して、
「直流分補正」(ステップ12)の繰返しにより、直流
分RASJAVが、適値範囲(SJAVMAX以下、S
JAVMIN以上)に入る方向に変化する。
Step 65 and steps 66 to 78 described above
When the process of (1) is executed, "output current detection A" (step 10) is executed again, "overcurrent control A" (step 11) is executed, and "DC component correction" (step 1) is executed again.
Perform 2). As already explained, each of these three sets of processing has a cycle of Ts2 × 16≈10000 μsec,
This process is repeated in this order, but will be described later in "Timer 1 interrupt process" (IR
T1) is repeated in a short cycle of Ts1≈104.17 μsec, and the adjustment value (RAA) set in “Overcurrent control A” (step 11) is set in this “timer 1 interrupt process” (IRT1).
F, RASREF) and "DC component correction" (step 1
Adjustment value (RACENT, RACENTS) set in 2)
UB), the H width Vpwm of the PWM pulse is determined,
The PWM of this set Vpwm by the above-mentioned PWM interrupt processing
Since the pulse is generated and output to the pulse inversion circuit 23,
As described above, by changing the adjustment value (RACENT, RACENTSUB) in the “DC component correction” (step 12), the value of the 50 Hz no-load AC output current changes,
By repeating the “DC component correction” (step 12), the DC component RASJAV can be adjusted to an appropriate value range (SJAVMAX or less, S
Change to JAVMIN or above).

【0129】適値範囲に入ると、すなわちSJAVMA
X≧RASJAV≧SJAVMINになると、コンピュ
ータ22は、図13のステップ67,69を経て、レジ
スタRAOK(この初期値は0であり、しかも適値範囲
を外れているときクリアにより0である)のデータRA
OKを1インクレメントする(ステップ72)。そして
RAOKが12に達したかをチェックする。すなわち連
続12回の「直流分補正」(ステップ12)において、
適値範囲SJAVMAX≧RASJAV≧SJAVMI
Nであったかをチェックする。それが是(YES)とな
ると、ここでコンピュータ22は、負荷LDに50Hz
交流出力電圧を印加する(図9のステップ13)。これ
で「直流分補正」(ステップ12)は終了し、以降、リ
セットスイッチ21によってリセットがかからない限
り、かつ、電源が継続して投入されている限り、「直流
分補正」(ステップ12)は実行せず、「出力電流の検
出B」(ステップ14)および「過電流制御B」(ステ
ップ15)のみを、それぞれTs2×16周期で、この
順に繰返し実行する。この間、前述の「タイマ2割込処
理」(IRT2)および「タイマ1割込処理」(IRT
1)がそれぞれTs2周期およびTs1周期で繰返し実
行される。「出力電流の検出B」(ステップ14)およ
び「過電流制御B」(ステップ15)の内容はそれぞれ
前述の「出力電流の検出A」(ステップ10)および
「過電流制御A」(ステップ11)の内容と同一である
ので、説明は省略する。
When the value is within the appropriate range, that is, SJAVMA
When X ≧ RASJAV ≧ SJAVMIN, the computer 22 goes through the steps 67 and 69 of FIG. 13 and stores the data in the register RAOK (this initial value is 0 and is 0 when it is out of the appropriate value range). RA
The OK is incremented by 1 (step 72). Then check if RAOK has reached 12. That is, in 12 consecutive “DC component corrections” (step 12),
Appropriate value range SJAVMAX ≧ RASJAV ≧ SJAVMI
Check if it was N. If that is the case (YES), then the computer 22 sets the load LD to 50 Hz.
An AC output voltage is applied (step 13 in FIG. 9). This completes the "DC component correction" (step 12), and thereafter, the "DC component correction" (step 12) is executed unless reset by the reset switch 21 and the power is continuously turned on. Instead, only the “output current detection B” (step 14) and the “overcurrent control B” (step 15) are repeatedly executed in this order at Ts2 × 16 cycles. During this period, the above-mentioned "timer 2 interrupt process" (IRT2) and "timer 1 interrupt process" (IRT
1) is repeatedly executed in the Ts2 cycle and the Ts1 cycle, respectively. The contents of the “output current detection B” (step 14) and the “overcurrent control B” (step 15) are the same as the above-mentioned “output current detection A” (step 10) and “overcurrent control A” (step 11), respectively. Since it is the same as the content of, the description will be omitted.

【0130】つぎに、図14〜図18に示す「タイマ1
割込処理」(IRT1)の内容を説明する。
Next, the "timer 1" shown in FIGS.
The contents of "interrupt processing" (IRT1) will be described.

【0131】まず、図14に示すように、この「タイマ
1割込処理」(IRT1)に進むとコンピュータ22は
まずタイマ1を再スタートする(ステップ81)。すな
わち、タイマ1にレジスタTs1のデータTs1を設定
して、計時を開始する。これは、次回のこの「タイマ1
割込処理」(IRT1)の実行開始タイミングを定める
ためである。タイマ1がタイムオーバするとこの「タイ
マ1割込処理」(IRT1)を実行しタイマ1を再スタ
ート(ステップ81)するので、「タイマ1割込処理」
(IRT1)はTs1周期で繰返し実行される。
First, as shown in FIG. 14, when proceeding to this "timer 1 interrupt process" (IRT1), the computer 22 first restarts the timer 1 (step 81). That is, the data Ts1 of the register Ts1 is set in the timer 1 and the time counting is started. This is the next "Timer 1"
This is to determine the execution start timing of the "interrupt processing" (IRT1). When the timer 1 times out, this "timer 1 interrupt process" (IRT1) is executed and the timer 1 is restarted (step 81). Therefore, "timer 1 interrupt process"
(IRT1) is repeatedly executed in the Ts1 cycle.

【0132】第2正弦波のレベルデータV2の算出処理
について述べると、先ず、タイマ1を再スタートすると
コンピュータ22は、第1のA/D変換入力ポートA/
D1の電圧(50Hz交流出力電圧の瞬時値:ただし、
バイアス回路18により正バイアスされている)のデジ
タル変換すなわちA/D1変換を開始する(ステップ8
2)。そして、レジスタRANのデータN(0〜95;
以下においてRANで表わす場合もある)を読み出し
(ステップ83)、テーブルTSIN2の、アドレスN
のデータVref2を読み出す(ステップ84)。テーブル
TSIN2は、コンピュータ22の内部ROMの一領域
に当てられており、アドレスN=0〜95のそれぞれ
に、第2基準正弦波の半周期を96分割した各点(位
相)のレベルデータ Vref2(N)=123sin(180°* N/96),N=0〜95 が格納されている。このデータを模式的に、図24に示
す。例えば、テーブルのアドレス0には、位相0°のデ
ータ(0)が、アドレス48には、位相90°の上ピー
クデータ(123)が、そしてアドレス95には位相1
80°*95/96のデータが格納されている。ステッ
プ84のデータ読出しでは、このデータVref2(N)=
123sin(180°* N/96),NはレジスタRANのデータ、
を読出す。
The process of calculating the second sine wave level data V2 will be described. First, when the timer 1 is restarted, the computer 22 causes the first A / D conversion input port A /
Voltage of D1 (Instantaneous value of 50Hz AC output voltage:
Digital conversion of the positive bias by the bias circuit 18, that is, A / D1 conversion is started (step 8).
2). Then, the data N (0 to 95;
In the following, it may be represented by RAN) (step 83) and the address N of the table TSIN2 is read.
The data Vref2 of is read (step 84). The table TSIN2 is assigned to one area of the internal ROM of the computer 22, and the level data Vref2 () of each point (phase) obtained by dividing the half cycle of the second reference sine wave into 96 is assigned to each of the addresses N = 0 to 95. N) = 123sin (180 ° * N / 96), N = 0 to 95 are stored. This data is shown schematically in FIG. For example, the address 0 of the table is the data (0) of the phase 0 °, the address 48 is the upper peak data of the phase 90 ° (123), and the address 95 is the phase 1 data.
Data of 80 ° * 95/96 is stored. In the data reading of step 84, this data Vref2 (N) =
123sin (180 ° * N / 96), N is the data of register RAN,
Is read.

【0133】コンピュータ22は次に、レジスタRAD
RのデータRADR(出力電圧調整値)に基づいて、電
圧調整用の補正を施した、補正第2正弦波データVA
2、 VA2=Vref2(N)*(RADR/256) 、NはレジスタRANのデータ、を算出する(ステップ
85)。つまりテーブルTSN2のレベルデータをRA
DR/256倍して、正弦波VA2の振幅を変化させ
る。VA2とVref2(N)の関係を図25に示す。レジ
スタRADRのデータRADRは、後述する処理(図1
8のステップ112〜115)で設定されるものであ
り、大略で言うと、過電流抑制のための調整値RASR
EF(レジスタRASREFのデータ)と、50Hz交
流出力電圧の半波区間の電圧積分値に基づいて、過電流
を抑制しかつ50Hz交流出力電圧を設定範囲にするた
めの調整値である。この詳細は、図18および図19を
参照して後述する。
The computer 22 then proceeds to register RAD.
Corrected second sine wave data VA that has been corrected for voltage adjustment based on R data RADR (output voltage adjustment value)
2. VA2 = Vref2 (N) * (RADR / 256), where N is the data of the register RAN is calculated (step 85). That is, the level data of the table TSN2 is RA
DR / 256 is multiplied to change the amplitude of the sine wave VA2. The relationship between VA2 and Vref2 (N) is shown in FIG. The data RADR of the register RADR is processed later (see FIG. 1).
8 is set in steps 112 to 115), and roughly speaking, the adjustment value RASR for suppressing the overcurrent is set.
It is an adjustment value for suppressing overcurrent and for setting the 50 Hz AC output voltage within the set range based on EF (data of the register RASREF) and the voltage integral value of the half-wave section of the 50 Hz AC output voltage. Details of this will be described later with reference to FIGS. 18 and 19.

【0134】コンピュータ22は次に、現時点が50H
z交流出力電圧の正半波区間か負半波区間かをチェック
する(ステップ86)。後述する図17のステップ11
0ならびに後述する図18のステップ117〜119
で、正半波区間/負半波区間の切換わりを検知し、切換
わった区間を表わすデータ(0:正半波区間/1:負半
波区間)をレジスタRAF1に書込む。ステップ86の
チェックでは、このレジスタRAF1のデータRAF1
をチェックして、正半波区間か負半波区間かを判定す
る。正半波区間であると、 V2=VA2+RACENT を、負半波区間であると、 V2=RACENT−VA2 を、算出する(ステップ87,88)。即ち、図26に
示すように、テーブルTSIN2のレベルデータをRA
DR/256倍して得られた正弦波VA2の中心軸をR
ACENTに変換した第2正弦波V2のレベルデータを
算出する。RACENTはレジスタRACENTのデー
タであり、直流分を設定範囲とするための調整値の整数
値である(既述の図13のステップ66〜78)。
The computer 22 next has a current time of 50H.
It is checked whether the AC output voltage is in the positive half-wave section or the negative half-wave section (step 86). Step 11 of FIG. 17 described later
0 and steps 117 to 119 of FIG. 18 described later.
Then, switching between the positive half-wave section / negative half-wave section is detected, and data representing the switched section (0: positive half-wave section / 1: negative half-wave section) is written to the register RAF1. In the check at step 86, the data RAF1 of this register RAF1 is
Is checked to determine whether it is a positive half-wave section or a negative half-wave section. If it is a positive half-wave section, V2 = VA2 + RACENT is calculated, and if it is a negative half-wave section, V2 = RACENT-VA2 is calculated (steps 87 and 88). That is, as shown in FIG. 26, the level data of the table TSIN2 is RA
The central axis of the sine wave VA2 obtained by multiplying DR / 256 is R
The level data of the second sine wave V2 converted into ACENT is calculated. RACENT is data of the register RACENT and is an integer value of the adjustment value for setting the DC component as the setting range (steps 66 to 78 in FIG. 13 described above).

【0135】コンピュータ22は次に、直流分を設定範
囲とするための調整値の端数相当のデータRACENT
SUB(8ビット:図23の8組の1つ。ただし後述の
循環シフトにより、各桁位置のデータは左に循環シフト
したものとなっている)を、レジスタRACENTSU
Bから読出し(ステップ89)、その最下位桁ビットが
1であると、V2を1大きい値に更新する(ステップ9
0,91)。0であったときには、V2のこの変更は行
なわない。そしてレジスタRACENTSUBのデータ
を、下位桁から上位桁の方向に、1ビット分循環シフト
する(ステップ92)。このシフト処理を模式的に図2
7に示す。即ち、1ビットずつ内容を上位ビット(左)
にシフトする。最上位ビット内容(b7)は最下位ビッ
ト(b0)に移す。
The computer 22 then outputs data RACENT corresponding to the fraction of the adjustment value for setting the DC component as the setting range.
SUB (8 bits: one of the 8 groups in FIG. 23. However, the data at each digit position is circularly shifted to the left by the circular shift described later) is stored in the register RACENTSU.
It is read from B (step 89), and when the least significant digit bit is 1, V2 is updated to a value larger by 1 (step 9).
0, 91). When it is 0, this change of V2 is not performed. Then, the data in the register RACENTSUB is cyclically shifted by one bit from the lower digit to the upper digit (step 92). This shift process is schematically shown in FIG.
FIG. That is, the contents of each bit are the upper bits (left)
Shift to The most significant bit content (b7) is moved to the least significant bit (b0).

【0136】コンピュータ22は次に、算出したデータ
V2をレジスタRAV2に書込む(ステップ93)。例
えば、先に説明した図13のステップ75で摘出したR
ACENTERの下位3ビットが数値3(RACENT
が表わす整数値に対しては、3/8の端数を意味する)
であって、「10010010」を、図13のステップ
76でRACENTSUBに格納した後、第1回目の
「タイマ1割込処理」(IRT1)では、RACENT
SUBの最下位ビットが0であるので、図14のステッ
プ90〜92において、V2の補正(ステップ91)は
実行しないが、ステップ92でRACENTSUBの1
ビット循環シフトを行なうので、RACENTSUB
は、「00100101」となり、第2回目の「タイマ
1割込処理」(IRT1)では、RACENTSUBの
最下位ビットが1であるので、図14のステップ90〜
92において、V2の補正(ステップ91)を実行し、
ステップ92でRACENTSUBの1ビット循環シフ
トを行なう。このようにして、図13のステップ75で
摘出したRACENTERの下位3ビットが数値3を表
わすものであったときには、「タイマ1割込処理」(I
RT1)の繰返し8回の実行の間、ステップ87,88
で算出されたV2を1だけ増やす変更(ステップ91)
は、3回だけ実行される。すなわち、3/8の確率で実
行される。つまり、図13のステップ75で摘出したR
ACENTERの下位3ビットが数値i(=0〜7)で
あると、ステップ91のV2の変更を実行する確率は、
i/8となり、時系列でならして見ると(統計的に見る
と)、図13のステップ75で摘出したRACENTE
Rの下位3ビットが表わす数値iを8で割った値(端
数)分、V2が変更される、ということになる。以上の
演算により得られるデータV2を模式的に、図26に示
す。
The computer 22 then writes the calculated data V2 in the register RAV2 (step 93). For example, R extracted in step 75 of FIG. 13 described above
The lower 3 bits of ACENTER are the numerical value 3 (RACENT
For the integer value represented by means a fraction of 3/8)
Then, after storing "10010010" in RACENTSUB in step 76 of FIG. 13, in the first "timer 1 interrupt process" (IRT1), RACENT
Since the least significant bit of SUB is 0, V2 correction (step 91) is not executed in steps 90 to 92 in FIG. 14, but 1 in RACENTSUB in step 92.
Since the bit cyclic shift is performed, RACENTSUB
Becomes "00100101", and since the least significant bit of RACENTSUB is 1 in the second "timer 1 interrupt process" (IRT1), steps 90 to 90 in FIG.
At 92, V2 correction (step 91) is executed,
At step 92, RACENTSUB is subjected to a 1-bit cyclic shift. In this way, when the lower 3 bits of RACENTER extracted in step 75 of FIG. 13 represent the numerical value 3, "timer 1 interrupt process" (I
During execution of RT1) repeated 8 times, steps 87, 88
Change to increase V2 calculated by 1 by 1 (step 91)
Is only executed 3 times. That is, it is executed with a probability of 3/8. That is, R extracted in step 75 of FIG.
If the lower 3 bits of ACENTER is a numerical value i (= 0 to 7), the probability of executing the change of V2 in step 91 is
It becomes i / 8, and when viewed in time series (statistically viewed), RACENTE extracted in step 75 of FIG.
This means that V2 is changed by a value (fractional value) obtained by dividing the numerical value i represented by the lower 3 bits of R by 8. The data V2 obtained by the above calculation is schematically shown in FIG.

【0137】図15を参照して、第1正弦波のレベルデ
ータV1の算出処理について説明する。
The calculation process of the level data V1 of the first sine wave will be described with reference to FIG.

【0138】V2を上述のように算出しレジスタRAV
2に格納する(図14の93)とコンピュータ22は、
レジスタRANのデータNを読み出し(ステップ9
4)、テーブルTSIN1の、アドレスNのデータVre
f1を読み出す(ステップ95)。ここでテーブルTSI
N1は、コンピュータ22の内部ROMの一領域に当て
られており、アドレスN=0〜95のそれぞれに、第1
基準正弦波の半周期を96分割した各点(位相)のレベ
ルデータ Vref1(N)=120sin(180°* N/96),N=0〜95 が格納されている。このデータを模式的に、図28に示
す。ステップ95のデータ読出しでは、このデータVre
f1(N)=120sin(180°* N/96),NはレジスタRAN
のデータ、を読出す。例えば、テーブルのアドレス0に
は、位相0°のデータ(0)が、アドレス48には、位
相90°の上ピーク値データ(123)が、そしてアド
レス95には位相180 °* 95/96 のデータが格納されて
いる。
V2 is calculated as described above and the register RAV is calculated.
2 (93 in FIG. 14), the computer 22
The data N of the register RAN is read (step 9
4), data Vre of address N in table TSIN1
f1 is read (step 95). Here table TSI
N1 is assigned to one area of the internal ROM of the computer 22, and the first address is assigned to each of the addresses N = 0 to 95.
Level data Vref1 (N) = 120sin (180 ° * N / 96), N = 0 to 95 at each point (phase) obtained by dividing the half cycle of the reference sine wave into 96 are stored. This data is shown schematically in FIG. In the data read of step 95, this data Vre
f1 (N) = 120sin (180 ° * N / 96), N is register RAN
The data of is read. For example, at address 0 of the table, data of phase 0 ° (0), at address 48, upper peak value data of phase 90 ° (123), and at address 95 of phase 180 ° * 95/96. The data is stored.

【0139】コンピュータ22は次に、レジスタRAF
2のデータを参照して、過電流制御の要否をチェックす
る(ステップ96)。すでに説明したように、過電流制
御用の第1調整値RAAF(レジスタRAAFのデー
タ)が上限値(255)でないときには、過電流制御要
を表わす1をレジスタRAF2に書込んでいる(図1
2)。レジスタRAF2のデータが1であると、この第
1調整値RAAFを用いて、第1正弦波のレベルデータ
Vref1(N)を補正した値VA1、 VA1=Vref1(N)*(RAAF/256) を算出する。つまり過電流制御動作時(RAF2=1)
には、テーブルTSIN1のレベルデータをRAAF/
256倍して、正弦波VA1の振幅を変化させる。レジ
スタRAF2のデータが0のとき(RAAF=255の
とき)には、 VA1=Vref1(N) とする(ステップ97,98)。図29に、Vref1
(N)とVA1の関係を模式的に示す。
Computer 22 then proceeds to register RAF
The necessity of overcurrent control is checked with reference to the data of No. 2 (step 96). As described above, when the first adjustment value RAAF for overcurrent control (data of the register RAAF) is not the upper limit value (255), 1 indicating that overcurrent control is necessary is written in the register RAF2 (FIG. 1).
2). When the data of the register RAF2 is 1, the value VA1 obtained by correcting the level data Vref1 (N) of the first sine wave using this first adjustment value RAAF, VA1 = Vref1 (N) * (RAAF / 256) calculate. That is, during overcurrent control operation (RAF2 = 1)
To the level data of table TSIN1 in RAAF /
It is multiplied by 256 to change the amplitude of the sine wave VA1. When the data in the register RAF2 is 0 (when RAAF = 255), VA1 = Vref1 (N) is set (steps 97, 98). In FIG. 29, Vref1
The relationship between (N) and VA1 is schematically shown.

【0140】次に、レジスタRAF1のデータより、現
在が正半波区間(RAF1=0)か、負半波区間(RA
F1=1)かをチェックして(99)、正半波区間であ
ると、 V1=VA1+128(80H) を、負半波区間であると、 V1=128(80H)−VA1 を、算出する(ステップ100,101)。128(8
0H)は中心軸値である。つまりテーブルTSIN1の
レベルデータをRAAF/256倍して得られた正弦波
VA2の中心軸を128(80H)に変換した第1正弦
波V1のレベルデータを算出する。V1により表わされ
る正弦波を、図30に模式的に示す。
Next, according to the data in the register RAF1, the present time is the positive half-wave section (RAF1 = 0) or the negative half-wave section (RA
Whether F1 = 1) is checked (99), and V1 = VA1 + 128 (80H) is calculated in the positive half-wave section, and V1 = 128 (80H) −VA1 is calculated in the negative half-wave section ((1)) ( Steps 100, 101). 128 (8
0H) is the central axis value. That is, the level data of the first sine wave V1 in which the central axis of the sine wave VA2 obtained by multiplying the level data of the table TSIN1 by RAAF / 256 is converted to 128 (80H) is calculated. The sine wave represented by V1 is schematically shown in FIG.

【0141】図16を参照して、PWMパルスのH幅V
pwm の算出処理について説明する。
Referring to FIG. 16, H width V of PWM pulse
The calculation process of pwm will be described.

【0142】コンピュータ22は次に、レジスタRAV
OUTのデータVout を読出して、交流出力電圧Vout
を、V1とするためのPWMパルスのH幅G*(V1−
Vout)を算出する(ステップ101)。この第1実施例
ではG=1である。なお、前述のステップ82(図1
4)で、交流出力電圧Vout (瞬時値)の読込み(A/
D1変換)を開始しており、後述のステップ104,1
05(図16)で、このA/D1変換で得たデジタルデ
ータVout をレジスタRAVOUTに格納し、この処理
が、「タイマ1割込処理」(IRT1)の内部で行なわ
れる(Ts1周期で読込みが行なわれる)ので、ステッ
プ101で用いる交流出力電圧(瞬時値)データVout
は、現在読込み(A/D1変換)中のもの(ステップ8
2でスタートしたもの)よりTs1前の読込み値であ
る。
Computer 22 then proceeds to register RAV
The data Vout of OUT is read and the AC output voltage Vout
H width G * (V1-
Vout) is calculated (step 101). In this first embodiment, G = 1. Note that the above-mentioned step 82 (see FIG.
In 4), read the AC output voltage Vout (instantaneous value) (A /
D1 conversion) is started, and steps 104 and 1 to be described later are started.
05 (FIG. 16), the digital data Vout obtained by this A / D1 conversion is stored in the register RAVOUT, and this processing is performed inside the "timer 1 interrupt processing" (IRT1) (reading at the Ts1 cycle). AC output voltage (instantaneous value) data Vout used in step 101
Is currently being read (A / D1 conversion) (step 8
It is a read value before Ts1 from (starting at 2).

【0143】コンピュータ22は次に、算出したG*
(V1−Vout)にV2を加えて、PWMパルスのH幅V
pwm 、 Vpwm =G*(V1−Vout)+V2 を算出する(ステップ102)。G=1であるので、上
式は、 Vpwm =(V1+V2)−Vout である。この算出データVpwm をレジスタRPWMに格
納する(ステップ103)。すなわちレジスタRPWM
のデータを、最新の演算値に更新する。なお、すでに説
明したPWM割込処理により、レジスタRPWMのデー
タVpwm が示す時間の間Hレベルで、次のTpwm −Vpw
m の間はLレベルのPWMパルスが、コンピュータ22
の出力ポート「PWM」からパルス反転回路23に出力
される。
The computer 22 then calculates the calculated G *
V2 is added to (V1-Vout) to obtain the H width V of the PWM pulse
pwm and Vpwm = G * (V1-Vout) + V2 are calculated (step 102). Since G = 1, the above equation is Vpwm = (V1 + V2) -Vout. This calculated data Vpwm is stored in the register RPWM (step 103). Ie register RPWM
The data of is updated to the latest calculated value. By the PWM interrupt processing described above, the following Tpwm-Vpw is maintained at the H level during the time indicated by the data Vpwm of the register RPWM.
While m, the PWM pulse of L level is
Is output to the pulse inverting circuit 23 from the output port “PWM” of the.

【0144】ここで、PWMパルスの高レベルH幅Vpw
m と、50Hz交流出力電圧との関係を説明する。上記
Vpwm の演算式は、この実施の形態では演算を簡単にす
るためG=1としているので、Vpwm =(V1+V2)
−Vout である。V1は図30に表わすもの、V2は図
26に表わすものであり、V1の中心軸値は128(8
0H)、V2の中心軸値はRACENTであり、両者
の、中心軸を横切る位置(時刻)は同一である。すなわ
ちV1とV2は同期している。したがって(V1+V
2)は、V1,V2に同期した正弦波(合成波)であ
り、その中心軸値はRACENT+128(80H)と
なる。ここで、説明を容易にするために、RACENT
の値が直流分補正の結果、初期値の128(80H)の
値を取ったとすると、(V1+V2)の中心軸値は、1
28×2となる。一方、出力電圧が0Vの時、コンピュ
ータ22のA/D1変換で得られる値は、出力電圧がバ
イアス回路18で正バイアスされているのでVout =1
28となる。したがって、このときのVpwm =(V1+
V2)−Vout は、128となり、これが中心軸値とな
る。この中心軸より高レベルの区間を正半波区間、低レ
ベルの区間を負半波区間というと、正半波区間の始点
(0度)および負半波区間の始点(180度)の電圧レ
ベル0を与えるPWMパルスのH幅は、Tpwm /2(デ
ューティ比50%)である。これは、PWMパルスのH
幅区間でスイッチング素子Qy,Quがオンで、スイッ
チング回路出力端子4aが+電位、4bが−電位とな
り、PWMパルスのL幅区間でスイッチング素子Qx,
Qvがオンで、スイッチング回路出力端子4aが−電
位、4bが+電位となり、PWMパルスのデューティ比
が50%のとき、時系列平均で、端子4aおよび4bが
共に0電位(出力電圧0)となるからである。このPW
MパルスのH幅を、デューティ比50%から広げて行く
と(デューティ比を大きくして行くと)、時系列平均
で、出力端子4aが+電位、4bが−電位となり端子4
a/4b間の電圧(正電圧)が増大する。PWMパルス
のH幅を、デューティ比50%から狭めて行くと(デュ
ーティ比を小さくして行くと)、時系列平均で、出力端
子4aが−電位、4bが+電位となり端子4a/4b間
の電圧(負電圧)の絶対値が増大する。
Here, the high level H width Vpw of the PWM pulse
The relationship between m and the 50 Hz AC output voltage will be described. In the present embodiment, the calculation formula of Vpwm is G = 1 in order to simplify the calculation in this embodiment, so Vpwm = (V1 + V2)
-Vout. V1 is shown in FIG. 30, V2 is shown in FIG. 26, and the central axis value of V1 is 128 (8
0H), the central axis value of V2 is RACENT, and the position (time) of crossing the central axis of both is the same. That is, V1 and V2 are synchronized. Therefore, (V1 + V
2) is a sine wave (composite wave) synchronized with V1 and V2, and its central axis value is RACENT + 128 (80H). Here, for ease of explanation, RACENT
Assuming that the value of has a value of 128 (80H) which is the initial value as a result of the DC correction, the value of the central axis of (V1 + V2) is 1
It becomes 28 × 2. On the other hand, when the output voltage is 0V, the value obtained by the A / D1 conversion of the computer 22 is Vout = 1 because the output voltage is positively biased by the bias circuit 18.
28. Therefore, Vpwm = (V1 +
V2) -Vout is 128, which is the central axis value. The voltage level at the start point (0 degree) of the positive half-wave section and the start point (180 degree) of the positive half-wave section is referred to as the positive half-wave section and the low half-wave section as the high-level section and the low-level section, respectively. The H width of the PWM pulse that gives 0 is Tpwm / 2 (duty ratio 50%). This is H of PWM pulse
In the width section, the switching elements Qy and Qu are turned on, the switching circuit output terminal 4a becomes + potential, and 4b becomes −potential, and the switching element Qx, in the L width section of the PWM pulse.
When Qv is on, the switching circuit output terminal 4a has a − potential, 4b has a + potential, and the duty ratio of the PWM pulse is 50%, both terminals 4a and 4b have a 0 potential (output voltage 0) on a time series average. Because it will be. This PW
When the H width of the M pulse is expanded from the duty ratio of 50% (when the duty ratio is increased), the output terminal 4a becomes + potential and 4b becomes −potential in time series average.
The voltage between a / 4b (positive voltage) increases. When the H width of the PWM pulse is narrowed from the duty ratio of 50% (when the duty ratio is decreased), the output terminal 4a becomes −potential and 4b becomes + potential, and the terminals 4a / 4b are in a time series average. The absolute value of the voltage (negative voltage) increases.

【0145】以上の説明は、単純化したものであり、実
際には、デッドタイム発生回路24(図2)で、スイッ
チング素子(Qy,Qu)と(Qx,Qv)の同時オン
(直流電源1の短絡)の可能性をなくすために、オン立
上り時点にデッドタイム(遅延時間)を与えており、し
かも、出力直流分の調整のための補正(RACENTの
調整等)などを加えているので、上述の単純化した説明
の場合より、少々のずれがある。
The above description is a simplified one. In practice, in the dead time generation circuit 24 (FIG. 2), the switching elements (Qy, Qu) and (Qx, Qv) are turned on simultaneously (DC power supply 1 In order to eliminate the possibility of (short circuit of), dead time (delay time) is given at the time of on-rising, and in addition, correction for adjustment of output DC component (adjustment of RACENT etc.) is added. There is a slight deviation from the simplified description above.

【0146】再度図16を参照する。コンピュータ22
は上述のようにPWMパルスのH幅区間Vpwm を算出し
てレジスタRPWMに更新書込みする(103)と、次
に、ステップ82(図14)で開始したA/D1変換の
終了を待って(104)、変換データVout を、レジス
タRAVOUTに更新書込みする(105)。ここで、
レジスタRAVOUTのデータは最新の出力交流電圧
(瞬時値)に更新されたことになる。
Referring again to FIG. Computer 22
Calculates the H width section Vpwm of the PWM pulse as described above and updates and writes it in the register RPWM (103), and then waits for the end of A / D1 conversion started in step 82 (FIG. 14) (104). ), And the converted data Vout is updated and written in the register RAVOUT (105). here,
The data of the register RAVOUT has been updated to the latest output AC voltage (instantaneous value).

【0147】次にコンピュータ22は、第2のA/D変
換入力ポートA/D2の入力電圧(50Hz交流出力電
流の瞬時値)のA/D変換を開始する(ステップ10
6)。このA/D2変換で得るデータJout は、無負荷
時には図11に示す「出力電流の検出A」(ステップ1
0)のステップ33,34でレジスタRAJOUTに書
込まれる。負荷通電中には「出力電流の検出B」(ステ
ップ14)の対応ステップで同様にレジスタRAJOU
Tに書込まれる。これらの「出力電流の検出A」(ステ
ップ10)および「出力電流の検出B」(ステップ1
4)による、データJout の上述の読込みはTs2周期
であるが、A/D2のA/D変換の開始(ステップ10
6)はTs1周期である。Ts2=6×Ts1であるの
で、6回のA/D2変換の内の、1回のA/D2変換デ
ータのみがサンプリングされることになる。
Next, the computer 22 starts the A / D conversion of the input voltage (the instantaneous value of the 50 Hz AC output current) of the second A / D conversion input port A / D2 (step 10).
6). The data Jout obtained by this A / D2 conversion is the "output current detection A" shown in FIG.
It is written in the register RAJOUT in steps 33 and 34 of 0). While the load is energized, the register RAJOU is similarly set in the corresponding step of "Detection B of output current" (step 14).
Written in T. These "output current detection A" (step 10) and "output current detection B" (step 1)
The above-mentioned reading of the data Jout by 4) is the Ts2 cycle, but the A / D conversion of the A / D2 is started (step 10).
6) is the Ts1 cycle. Since Ts2 = 6 × Ts1, only one A / D2 conversion data out of six A / D2 conversions is sampled.

【0148】図17を参照して、交流出力電圧のフィー
ドバックについて説明する。
Feedback of the AC output voltage will be described with reference to FIG.

【0149】コンピュータ22は、レジスタRAF1の
データより、現時点で交流出力電圧が正半波区間か負半
波区間かをチェックして(ステップ107)、正半波区
間であると、電圧積算レジスタRASVに、最新に得た
データVout (ステップ105でレジスタRAVOUT
に格納したもの)を積算(プラス積算)する。すなわ
ち、レジスタRASVのデータRASVにVout を加算
し、得た和をレジスタRASVに更新書込みする(ステ
ップ108)。すなわち、図31に右下り斜線で示す領
域S1のように、電圧積分する。負半波区間であるとき
には、検出電圧Vout が中心軸値128より低レベル側
になるので、検出電圧Vout を中心軸値128に関して
反転して、反転値を電圧積算レジスタRASVに積算す
る。すなわち、128+(128−Vout )=2*12
8−Vout を、レジスタRASVのデータRASVに加
算し、得た和をレジスタRASVに更新書込みする(ス
テップ109)。これは、図31に縦線で示す領域S2
のように、電圧積分することを意味する。
The computer 22 checks from the data of the register RAF1 whether the AC output voltage is the positive half-wave section or the negative half-wave section at the present time (step 107), and if it is the positive half-wave section, the voltage integration register RASV. Then, the latest data Vout (register RAVOUT in step 105)
Accumulated (plus accumulated). That is, Vout is added to the data RASV of the register RASV, and the obtained sum is updated and written in the register RASV (step 108). That is, the voltage integration is performed as in the area S1 indicated by the diagonal line to the right in FIG. In the negative half-wave section, the detected voltage Vout is lower than the central axis value 128, so the detected voltage Vout is inverted with respect to the central axis value 128, and the inverted value is integrated in the voltage integration register RASV. That is, 128+ (128-Vout) = 2 * 12
8-Vout is added to the data RASV of the register RASV, and the obtained sum is updated and written in the register RASV (step 109). This is the area S2 indicated by the vertical line in FIG.
It means that the voltage is integrated.

【0150】次にコンピュータ22は、半波区間の終端
であるかをチェックする(ステップ110)。半波区間
の終端でないと、位相カウントレジスタRANのデータ
RANを1インクレメント(Nを1大きい値に更新)し
(111)、ここで今回の「タイマ1割込処理」(IR
T1)を終了する(タイマ1割込処理に進む直前の処理
に復帰する)。
Next, the computer 22 checks whether it is the end of the half-wave section (step 110). If it is not the end of the half-wave section, the data RAN of the phase count register RAN is incremented by 1 (N is updated to a value larger by 1) (111), and this "timer 1 interrupt process" (IR
T1) ends (returns to the process immediately before proceeding to the timer 1 interrupt process).

【0151】半波区間の終端であったときにはコンピュ
ータ22は、図18を参照すると、電圧積算レジスタR
ASVのデータSVを、レジスタRASREFのデータ
Sref と対比する。後述のステップ116でレジスタR
ASVをクリアするので、ここでは電圧積算レジスタR
ASVのデータSVは、今回終了した半波区間の電圧積
分値(図31のS1又はS2)を示すものである。ま
た、レジスタRASREFのデータSref は、負荷LD
に給電を開始する前では、図9の「過電流制御A」(ス
テップ11)で、給電を開始した後は「過電流制御B」
(ステップ15)で、過電流調整のためにレジスタRA
SREFに設定されたものである(図12のステップ4
7〜49/ステップ55〜57および図14を参照)。
When it is at the end of the half-wave section, the computer 22 refers to FIG.
The data SV of the ASV is compared with the data Sref of the register RASREF. In step 116 described later, the register R
Since ASV is cleared, the voltage integration register R is used here.
The data SV of the ASV shows the voltage integrated value (S1 or S2 in FIG. 31) in the half-wave section which is finished this time. Further, the data Sref of the register RASREF is the load LD
Before starting the power supply to the device, "Overcurrent control A" (step 11) in Fig. 9 is performed, and after starting the power supply, "Overcurrent control B".
In (step 15), the register RA is used to adjust the overcurrent.
It is set to SREF (step 4 in FIG. 12).
7-49 / steps 55-57 and FIG. 14).

【0152】レジスタRASREFのデータSref の上
限値18888は、50Hz交流出力電圧の実効値が1
00Vになるように、Vpwm を定める設定値(固定値)
である。過電流が流れるときには、レジスタRASRE
FのデータSref が低減され(図12のステップ41─
ステップ43〜48)、過電流が流れないときには上限
値に向けて増大され(図12のステップ41─ステップ
50〜56)、過電流設定値Jref と同一レベルの電流
が流れている間は、Sref の変更は停止される(図12
のステップ41─ステップ42─リターン)。
The upper limit value 18888 of the data Sref of the register RASREF is 1 when the effective value of the 50 Hz AC output voltage is 1.
Set value (fixed value) that determines Vpwm so that it becomes 00V
It is. When overcurrent flows, register RASRE
The data Sref of F is reduced (step 41--
Steps 43 to 48) are increased toward the upper limit value when no overcurrent flows (step 41 to steps 50 to 56 in FIG. 12), and Sref is maintained while a current of the same level as the overcurrent set value Jref is flowing. Change is stopped (Fig. 12
Step 41-Step 42-Return).

【0153】図18のステップ112では、半波区間の
電圧積分値SVと上述の過電流抑制用のデータSref と
を比較し、SV=Sref のときには、SVおよびSref
をVpwm に反映するための調整値RADR(レジスタR
ADRの格納データ)を変更しない(ステップ11
3)。SV>Sref のときには、出力電圧が高過ぎるの
で、調整値RADRを最小調整単位ΔDR分小さく変更
する。すなわち、レジスタRADRのデータを1デクレ
メントする(ステップ114)。SV<Sref のときに
は、出力電圧は低いので、調整値RADRを最小調整単
位ΔDR分大きく変更する。すなわち、レジスタRAD
Rのデータを1インクレメントする(ステップ11
5)。なお、この調整値RADR(レジスタRADRの
格納データ)は、前述の通り、図14のステップ85に
おいて、前述の補正レベルVA2(これに基づいてV2
が算出される)の算出に用いられる。
In step 112 of FIG. 18, the voltage integrated value SV in the half-wave section is compared with the above-mentioned overcurrent suppressing data Sref. When SV = Sref, SV and Sref are compared.
Adjustment value RADR (register R
Data stored in ADR) is not changed (step 11)
3). When SV> Sref, the output voltage is too high, so the adjustment value RADR is changed to be smaller by the minimum adjustment unit ΔDR. That is, the data in the register RADR is decremented by 1 (step 114). When SV <Sref, the output voltage is low, and therefore the adjustment value RADR is greatly changed by the minimum adjustment unit ΔDR. That is, the register RAD
The R data is incremented by 1 (step 11
5). The adjustment value RADR (data stored in the register RADR) is stored in the correction level VA2 (V2 based on the correction level VA2) in step 85 of FIG. 14 as described above.
Is calculated).

【0154】次にコンピュータ22は、この時点は半波
区間の終端であるので、位相カウントレジスタRANを
クリアし、電圧積分レジスタRASVをクリアして(ス
テップ116)、今迄が正半波区間(RAF1=0)か
又は負半波区間(RAF=1)かをチェックして(ステ
ップ117)、正半波区間(RAF1=0)であると今
度は負半波区間となるのでこれを表わす1をレジスタR
AF1に書込み、負半波区間(RAF=1)であると今
度は正半波区間であるのでこれを表わす0をレジスタR
AF1に書込む(ステップ118,119)。そして、
今回の「タイマ1割込処理」(IRT1)を終了する
(今回のタイマ1割込処理に進む直前の処理に復帰す
る)。
Next, the computer 22 clears the phase count register RAN and the voltage integration register RASV (step 116) since the end of the half-wave section at this time, and the previous half-wave section ( It is checked whether it is RAF1 = 0) or a negative half-wave section (RAF = 1) (step 117). If it is a positive half-wave section (RAF1 = 0), this time it is a negative half-wave section. Register R
When the data is written in AF1, and the negative half-wave section (RAF = 1) is the positive half-wave section this time, 0 representing this is registered in the register R.
Write to AF1 (steps 118 and 119). And
The current "timer 1 interrupt process" (IRT1) is terminated (returns to the process immediately before proceeding to the current timer 1 interrupt process).

【0155】以上が、「タイマ1割込処理」(IRT
1)の内容であり、これが前述のようにTs1=1/
9.6KHz≒104.17μsec で繰返えされる。
The above is the "timer 1 interrupt processing" (IRT).
This is the content of 1), and this is Ts1 = 1/1 / as described above.
Repeated at 9.6 KHz ≈ 104.17 μsec.

【0156】つぎに、上述した第1の実施の形態におけ
る特徴点を説明する。
Next, the characteristic points in the above-described first embodiment will be described.

【0157】(1)無負荷時の処理:すでに説明した
が、PWMパルスの出力開始(図9のステップ8)から
負荷LDに給電を開始する(図9のステップ13)まで
は、 Tpwm =255/f≒34.59 μsec の周期のPWMパルスがコンピュータ22からパルス反
転回路23に継続して出力される。なお、インバータの
交流出力電圧の周波数は50Hzで、周期T50は T50=1sec /50=20000 μsec である。「タイマ1割込処理」(IRT1:図14〜図
18)が、 Ts1=1/9.6KHz≒104.17μsec の周期で繰返えされ、この「タイマ1割込処理」で、交
流出力電圧(瞬時値)Vout の読込みのための第1のA
/D変換A/D1が行なわれて、そのデータVout がレ
ジスタRAVOUTに格納される(図14のステップ8
2,図16のステップ105)。すなわち、交流出力電
圧(瞬時値)Vout のサンプリングはTs1周期で行な
われる。
(1) No load processing: As described above, Tpwm = 255 from the start of PWM pulse output (step 8 in FIG. 9) to the start of power supply to the load LD (step 13 in FIG. 9). A PWM pulse having a period of /f≈34.59 μsec is continuously output from the computer 22 to the pulse inverting circuit 23. The frequency of the AC output voltage of the inverter is 50 Hz, and the cycle T50 is T50 = 1 sec / 50 = 20,000 μsec. The "timer 1 interrupt process" (IRT1: Fig. 14 to Fig. 18) is repeated at a cycle of Ts1 = 1 / 9.6 KHz ≈ 104.17 µsec. In this "timer 1 interrupt process", the AC output voltage ( Instantaneous value) First A for reading Vout
A / D conversion A / D1 is performed and the data Vout is stored in the register RAVOUT (step 8 in FIG. 14).
2, step 105 in FIG. 16. That is, the sampling of the AC output voltage (instantaneous value) Vout is performed in the Ts1 cycle.

【0158】「タイマ1割込処理」で、交流出力電流
(瞬時値)Jout の読込みのための第2のA/D変換A
/D2が行なわれる。しかし、この変換データJout の
レジスタRAJOUTへの書込みは、「出力電流の検出
A」(ステップ10)のステップ34(図5)で行なわ
れ、「出力電流の検出A」(ステップ10)がTs2周
期で実行されるので、交流出力電流( 瞬時値) Jout の
サンプリングは実質上Ts2周期である。
In the "timer 1 interrupt process", the second A / D conversion A for reading the AC output current (instantaneous value) Jout
/ D2 is performed. However, this conversion data Jout is written to the register RAJOUT in step 34 (FIG. 5) of "output current detection A" (step 10), and "output current detection A" (step 10) is Ts2 cycle. The sampling of the AC output current (instantaneous value) Jout is substantially Ts2 cycles.

【0159】「タイマ2割込処理」(IRT2:図1
0)が、 Ts2=6/9.6KHz≒625 μsec の周期で繰返えされ、「出力電流の検出A」(ステップ
10)で、タイマ2割込処理の終了(IRF2=0→I
RF2=1)を待って、交流出力電流(瞬時値)Jout
の読込み(A/D2変換データの格納)および電流平均
値Javを算出する処理を行なうので、「出力電流の検出
A」(ステップ10)の内部演算処理は、Ts2周期で
繰返えされるが、16個(回)のサンプリングデータJ
out が整うまで、「出力電流の検出A」(ステップ1
0)に留まり、16個(回)のサンプリングデータJou
t が整ってそれらの平均値Javを算出すると、1回の
「出力電流の検出A」を終えることになり、結局、「出
力電流の検出A」(ステップ10)は、Ts2×16の
周期で繰返えされる。
"Timer 2 interrupt processing" (IRT2: FIG. 1
0) is repeated at a cycle of Ts2 = 6 / 9.6 KHz≈625 μsec, and the timer 2 interrupt process ends (IRF2 = 0 → I) at “output current detection A” (step 10).
Wait for RF2 = 1), then AC output current (instantaneous value) Jout
Is performed (the A / D2 converted data is stored) and the current average value Jav is calculated. Therefore, the internal calculation process of “output current detection A” (step 10) is repeated in the Ts2 cycle. 16 (times) sampling data J
Until the output is ready, "Output current detection A" (Step 1
0) and 16 (times) sampling data Jou
When t is adjusted and their average value Jav is calculated, one "output current detection A" ends, and in the end, "output current detection A" (step 10) is performed in a cycle of Ts2 × 16. Repeated.

【0160】「過電流制御A」(ステップ11)には、
「出力電流の検出A」(ステップ10)の実行直後に進
入するので、これもTs2×16の周期で繰返えされ
る。
In the "overcurrent control A" (step 11),
Since the process immediately after the execution of the "output current detection A" (step 10), the process is repeated in the cycle of Ts2 × 16.

【0161】「直流分補正」(ステップ12)も同様
に、Ts2×16の周期で繰返えされる。この「直流分
補正」(ステップ12)の繰返しで、直流分が設定範囲
内に入るように調整値を調整し、直流分が設定範囲内に
入ると、そこで、負荷通電のための前準備(図9のステ
ップ10〜12の繰返し)を終了し、負荷通電のために
リレー8rをオンにする。
Similarly, the "DC component correction" (step 12) is repeated in the cycle of Ts2 × 16. By repeating this "DC component correction" (step 12), the adjustment value is adjusted so that the DC component is within the setting range, and when the DC component is within the setting range, the preparation for load energization ( After repeating steps 10 to 12 in FIG. 9), the relay 8r is turned on to energize the load.

【0162】(2)負荷通電中の処理: Tpwm =255/f≒34.59 μsec の周期のPWMパルスがコンピュータ22からパルス反
転回路23に継続して出力される。「タイマ1割込処
理」(IRT1:図14〜図18)が、 Ts1=1/9.6KHz≒104.17μsec の周期で繰返えされる。交流出力電圧(瞬時値)Vout
のサンプリングはTs1周期で行なわれ、交流出力電流
(瞬時値)Jout のサンプリングは実質上Ts2周期で
ある。
(2) Processing during load energization: A PWM pulse having a cycle of Tpwm = 255 / f≈34.59 μsec is continuously output from the computer 22 to the pulse inverting circuit 23. The "timer 1 interrupt process" (IRT1: FIG. 14 to FIG. 18) is repeated at a cycle of Ts1 = 1 / 9.6 KHz≈104.17 μsec. AC output voltage (instantaneous value) Vout
Is sampled in the Ts1 cycle, and the AC output current (instantaneous value) Jout is sampled in the Ts2 cycle.

【0163】「タイマ2割込処理」(IRT2:図1
0)が、 Ts2=6/9.6KHz≒625 μsec の周期で繰返えされ、「出力電流の検出A」(ステップ
10)の処理と同一の処理を行なう「出力電流の検出
B」(ステップ14)で、タイマ2割込処理の終了(I
RF2=0→IRF2=1)を待って、交流出力電流
(瞬時値)Jout の読込み(A/D2変換データの格
納)および電流平均値Javを算出する処理を行なうの
で、「出力電流の検出B」(ステップ14)の内部演算
処理は、Ts2周期で繰返えされるが、16個(回)の
サンプリングデータJout が整うまで、「出力電流の検
出B」(ステップ14)に留まり、16個(回)のサン
プリングデータJout が整ってそれらの平均値Javを算
出すると、1回の「出力電流の検出B」を終えることに
なり、結局、「出力電流の検出B」(ステップ14)
は、Ts2×16の周期で繰返えされる。
"Timer 2 interrupt processing" (IRT2: FIG. 1
0) is repeated at a cycle of Ts2 = 6 / 9.6 KHz≈625 μsec, and the same process as the “output current detection A” (step 10) is performed “output current detection B” (step 14), the timer 2 interrupt process ends (I
Waiting for (RF2 = 0 → IRF2 = 1), the process of reading the AC output current (instantaneous value) Jout (storing the A / D2 conversion data) and calculating the current average value Jav is performed. The internal calculation process of (step 14) is repeated in the cycle of Ts2. However, until 16 (times) sampling data Jout are prepared, the output current detection B remains (step 14) and 16 ( Once the sampling data Jout has been prepared and the average value Jav thereof has been calculated, one "output current detection B" ends, and in the end, "output current detection B" (step 14).
Is repeated in a cycle of Ts2 × 16.

【0164】「過電流制御A」(ステップ11)の処理
と同一の処理を行なう「過電流制御B」(ステップ1
5)には、「出力電流の検出B」(ステップ14)の実
行直後に進入するので、これもTs2×16の周期で繰
返えされる。
"Overcurrent control B" (step 1) which performs the same processing as "overcurrent control A" (step 11)
Since 5) is entered immediately after the execution of the "output current detection B" (step 14), this is also repeated in the cycle of Ts2 × 16.

【0165】すなわち負荷通電中(リレー8rオン)
は、PWMパルス出力のためのPWM割込処理,「タイ
マ1割込処理」(IRT1)および「タイマ2割込処
理」(IRT2)が実行され、「出力電流の検出B」
(ステップ14)と「過電流制御B」(ステップ15)
が、それぞれTs2×16の周期で、連続して繰返し実
行される。「直流分補正」(ステップ12)を実行しな
いので、直流分補正のための調整値は、リレー8rをオ
フからオンに切換えた直前の調整値(無負荷時直流分調
整のための調整値)に留まり、「タイマ1割込処理」
(IRT1)で、この調整値と、「過電流制御B」(ス
テップ15)で定められる調整値に基づいてPWMパル
スH幅Vpwm が決定される。
That is, the load is energized (relay 8r is on).
Performs PWM interrupt processing for PWM pulse output, "timer 1 interrupt processing" (IRT1) and "timer 2 interrupt processing" (IRT2), and "output current detection B"
(Step 14) and "Overcurrent control B" (Step 15)
Are each repeatedly executed with a cycle of Ts2 × 16. Since the "DC component correction" (step 12) is not executed, the adjustment value for DC component correction is the adjustment value immediately before the relay 8r was switched from OFF to ON (adjustment value for DC component adjustment at no load). Staying at "Timer 1 interrupt processing"
In (IRT1), the PWM pulse H width Vpwm is determined based on this adjustment value and the adjustment value determined in the "overcurrent control B" (step 15).

【0166】(3)交流出力電圧(50Hz)の生成処
理1:上述の実施例では、所定レベルの正弦波交流出力
を行なうために、Ts1周期で繰返す「タイマ1割込処
理」(IRT1)で、レジスタRANで、交流出力位相
(N)をカウントし、交流出力電圧(瞬時値)Vout を
サンプリングし、テーブルTSIN1の半周期分の正弦
波レベルデータVref1(N),N=0〜95、の位相
(N)のものVref1(N)を読出し、読出したVref1
(N)と検出した交流出力電圧Vout の差に対応する出
力PWMパルスのデューティ比(Vpwm /Tpwm )を決
定している(図15,図16)。
(3) AC output voltage (50 Hz) generation processing 1: In the above-described embodiment, the "timer 1 interrupt processing" (IRT1) is repeated in Ts1 cycle in order to perform the sine wave AC output of a predetermined level. , The register RAN counts the AC output phase (N), samples the AC output voltage (instantaneous value) Vout, and outputs half-cycle sine wave level data Vref1 (N), N = 0 to 95 of the table TSIN1. Vref1 (N) of phase (N) is read, and the read Vref1
The duty ratio (Vpwm / Tpwm) of the output PWM pulse corresponding to the difference between (N) and the detected AC output voltage Vout is determined (FIGS. 15 and 16).

【0167】この処理は比較的に簡単であり、所定レベ
ルの、波形精度が高い正弦波交流電圧が発生する。交流
出力電圧Vout のフィードバックは、電圧瞬時値を目標
瞬時値に沿わせる(正確な正弦波を生成する)意義があ
る。
This processing is relatively simple, and a sine wave AC voltage having a predetermined level and high waveform accuracy is generated. Feedback of the AC output voltage Vout has the significance of causing the instantaneous voltage value to follow the target instantaneous value (generating an accurate sine wave).

【0168】(4)上述した実施の形態では、Ts2×
16の周期で繰返す「過電流制御A」(ステップ11)
および「過電流制御B」(ステップ15)で、交流出力
電流の平均値Javを算出し、過電流設定値Jref と比較
して、平均値Javが過電流設定値Jref より大きいとき
には調整値RAAFを小さくするよう調整し、平均値J
avが過電流設定値Jref より小さいときには調整値RA
AFを大きくするよう調整し、Ts1の周期で繰返す
「タイマ1割込処理」(IRT1)で、上記読出したV
ref1(N)に(RAAF/256)に乗算してVA1=
Vref1(N)*(RAAF/256)を得て、このVA
1と検出した交流出力電圧Vout の差に対応する出力P
WMパルスのデューティ比(Vpwm /Tpwm )を決定し
ている(図15,図16)。
(4) In the above embodiment, Ts2 ×
"Overcurrent control A" repeated in 16 cycles (step 11)
In "and overcurrent control B" (step 15), the average value Jav of the AC output current is calculated and compared with the overcurrent set value Jref. When the average value Jav is larger than the overcurrent set value Jref, the adjustment value RAAF is set. Adjust to make it smaller, and average value J
When av is smaller than the overcurrent setting value Jref, the adjustment value RA
Adjust the AF to be larger and repeat the cycle of Ts1 in the "timer 1 interrupt process" (IRT1) to read the above V
multiply ref1 (N) by (RAAF / 256) and VA1 =
Vref1 (N) * (RAAF / 256) is obtained and this VA
Output P corresponding to the difference between the detected AC output voltage Vout and 1
The duty ratio (Vpwm / Tpwm) of the WM pulse is determined (FIGS. 15 and 16).

【0169】これにより交流出力電流の平均値Javが過
電流設定値Jref 以下に収束する。すなわち過電流が抑
制される。
As a result, the average value Jav of the AC output current converges below the overcurrent set value Jref. That is, overcurrent is suppressed.

【0170】(5)交流出力電圧(50Hz)の生成処
理2:上述の実施の形態では、所定レベルの正弦波交流
出力を行なうために、Ts1周期で繰返す「タイマ1割
込処理」(IRT1)で、レジスタRANで、交流出力
位相(N)をカウントし、交流出力電圧(瞬時値)Vou
t をサンプリングし、テーブルTSIN2の半周期分の
正弦波レベルデータVref2(N),N=0〜95、の位
相(N)のものVref2(N)を読出し、読出したVref2
(N)と検出した交流出力電圧Vout の差に対応する出
力PWMパルスのデューティ比(Vpwm/Tpwm )を決
定している(図14,図16のステップ102,ステッ
プ103)。
(5) AC output voltage (50 Hz) generation processing 2: In the above-described embodiment, "timer 1 interrupt processing" (IRT1) is repeated in Ts1 cycle in order to perform sine wave AC output at a predetermined level. Then, the AC output phase (N) is counted by the register RAN, and the AC output voltage (instantaneous value) Vou
Sampling t, reading out Vref2 (N) of the phase (N) of the sine wave level data Vref2 (N), N = 0 to 95 for half cycle of the table TSIN2, and reading Vref2
The duty ratio (Vpwm / Tpwm) of the output PWM pulse corresponding to the difference between the detected AC output voltage Vout and (N) is determined (steps 102 and 103 in FIGS. 14 and 16).

【0171】この処理は比較的に簡単であり、所定レベ
ルの、波形精度が高い正弦波交流電圧が発生する。
This processing is relatively simple and a sine wave AC voltage having a predetermined level and high waveform accuracy is generated.

【0172】(6)上述の実施の形態では、Ts1周期
で繰返す「タイマ1割込処理」(IRT1)で、交流出
力電圧の積分値SV(半周期終端のレジスタRASVの
データ)を検出し、交流出力電圧の半周期毎に積分値S
Vが基準値Sref (レジスタRASREFのデータ)よ
り高いと調整値RADRを小さく、積分値SVが基準値
Sref より小さいと調整値RADRを大きくし、VA2
=Vref2(N)*(RADR/256)を算出して、こ
のVA2と検出した交流出力電圧Vout の差に対応する
出力PWMパルスのデューティ比(Vpwm /Tpwm )を
決定している(図14,図16のステップ102,ステ
ップ103)。
(6) In the above embodiment, the integrated value SV of the AC output voltage (data of the register RASV at the half cycle end) is detected by the "timer 1 interrupt processing" (IRT1) repeated in the cycle Ts1. Integral value S for each half cycle of AC output voltage
If V is higher than the reference value Sref (data of the register RASREF), the adjustment value RADR is made smaller, and if the integration value SV is smaller than the reference value Sref, the adjustment value RADR is made larger, and VA2
= Vref2 (N) * (RADR / 256) is calculated, and the duty ratio (Vpwm / Tpwm) of the output PWM pulse corresponding to the difference between this VA2 and the detected AC output voltage Vout is determined (FIG. 14, Steps 102 and 103 in FIG. 16).

【0173】これにより、交流出力電圧が基準値に収束
する。すなわち過電圧あるいは電圧低下が抑制される。
交流出力電圧Vout のフィードバックは、電圧瞬時値を
目標瞬時値に沿わせる(正確な正弦波を生成する)意義
がある。
As a result, the AC output voltage converges on the reference value. That is, overvoltage or voltage drop is suppressed.
Feedback of the AC output voltage Vout has the significance of causing the instantaneous voltage value to follow the target instantaneous value (generating an accurate sine wave).

【0174】(7)交流出力電圧(50Hz)の生成処
理(1+2):上記実施例は、上記(3)の交流出力電
圧(50Hz)の生成処理1と、上記(5)の交流出力
電圧(50Hz)の生成処理2を組合せている。すなわ
ち、上記実施例ではG=1で、Vpwm =G*(V1−V
out )+V2(図16のステップ102)としている。
すなわち、 Vpwm =(V1+V2)−Vout V1=128(80H)−VA1 (負半波区間)、又
は VA1+128(80H) (正半波区間)、 VA1=Vref1(N)*(RAAF/256) V2=RACENT−VA2 (負半波区間)、又は VA2+RACENT (正半波区間)、 VA2=Vref2(N)*(RADR/256) であり、上記(3)〜(6)の効果が同時にもたらされ
る。
(7) AC output voltage (50 Hz) generation processing (1 + 2): In the above embodiment, the AC output voltage (50 Hz) generation processing 1 of (3) and the AC output voltage (5) of 50 Hz) generation processing 2 is combined. That is, in the above embodiment, G = 1 and Vpwm = G * (V1-V
out) + V2 (step 102 in FIG. 16).
That is, Vpwm = (V1 + V2) -Vout V1 = 128 (80H) -VA1 (negative half-wave section), or VA1 + 128 (80H) (positive half-wave section), VA1 = Vref1 (N) * (RAAF / 256) V2 = RACENT-VA2 (negative half-wave section), or VA2 + RACENT (positive half-wave section), VA2 = Vref2 (N) * (RADR / 256), and the effects of (3) to (6) are simultaneously brought about.

【0175】(8)直流成分の抑制:上記実施例では、
「直流分補正」(ステップ12)で交流出力の直流成分
積分値RASJAV(出力交流の5周期期間)を検出
し、これを設定範囲(SJAVMAX以下、SJAVM
IN以下)とするように、調整値RACENTERを調
整する(図7)。この調整値RACENTERの値が大
きくなり、基準の1バイトデータでは表わせず、2バイ
トデータとしている。
(8) Suppression of DC component: In the above embodiment,
In the "DC component correction" (step 12), the DC component integrated value RASJAV (5 cycles of the output AC) of the AC output is detected, and this is set to a setting range (SJAVMAX or less, SJAVM
The adjustment value RACENTER is adjusted so that the value is equal to or less than IN (FIG. 7). The value of the adjustment value RACENTER becomes large, so that it cannot be represented by the reference 1-byte data and is 2-byte data.

【0176】演算処理を簡単にするために、この2バイ
トデータRACENTERの1/8を算出してこれをレ
ジスタRACENTに格納する。このレジスタRACE
NTのデータRACENTを、交流出力の中心軸レベル
(電位零レベル)に対応させている。
To simplify the arithmetic processing, 1/8 of the 2-byte data RACENTER is calculated and stored in the register RACENT. This register RACE
The data RACENT of NT is made to correspond to the central axis level (potential zero level) of the AC output.

【0177】上述の1/8のデータを得る割算は、処理
を簡単にするために、2バイトデータRACENTER
の下位3ビットのデータを捨てて、下位4ビットから1
1ビットまでの8ビットデータをRACENTとして摘
出することにより行なっている。したがって、RACE
NTには、1/8とする割算で生ずる端数は捨てられて
いる。
In order to simplify the processing, the division to obtain the 1/8 data described above is performed by the 2-byte data RACENTER.
Discard the lower 3 bits of data, and start from the lower 4 bits
This is done by extracting 8-bit data up to 1 bit as RACENT. Therefore, RACE
In NT, fractions generated by dividing 1/8 are discarded.

【0178】この端数を摘出し、直流分抑制に反映する
ために、上述のように捨てる下位3ビットのデータ(0
〜7のいずれかiを示し、それぞれ割算後は0/8〜7
/8となるべき値)を、それが表わす数i(0〜7)分
の「1」を含み、かつ「1」が極力等ピッチで分布する
8ビットデータ(図23のROMデータ内容)に変換し
て、これをレジスタRACENTSUBに格納してい
る。そしてこの端数調整用データRACENTSUB
(レジスタRACENTSUBのデータ)に基づいて、
V2を、その8回の算出(「タイマ1割込処理」(IR
T1)の8回の実行)において、RACENTSUBの
「1」の数分の回数だけ、最小単位だけ変更する。
In order to extract this fraction and reflect it in the DC component suppression, the lower 3 bits of data (0
1 to 7 and 0/8 to 7 after division, respectively
/ 8) into 8-bit data (ROM data contents in FIG. 23) that includes "1" for the number i (0 to 7) represented by "1" and that "1" is distributed at an equal pitch as much as possible. It is converted and stored in the register RACENTSUB. And this fraction adjustment data RACENTSUB
Based on (data of register RACENTSUB),
V2 is calculated eight times ("Timer 1 interrupt processing" (IR
In 8 times of execution of T1), the minimum unit is changed by the number of times of “1” of RACENTSUB.

【0179】これにより、「タイマ1割込処理」(IR
T1)の8回の実行時間の間をならして見れば(時系列
平均では)、V2がi/8分変更されることになる。こ
れを実現するために、RACENTSUBのデータは、
「タイマ1割込処理」(IRT1)の1回の実行毎に、
1ビット分循環シフトされる(図14のステップ89〜
93,図18)。
Thus, the "timer 1 interrupt process" (IR
V8 is changed by i / 8 minutes if the time is averaged over eight execution times of T1) (in time series average). In order to realize this, the data of RACENTSUB is
Each time "Timer 1 interrupt processing" (IRT1) is executed,
It is cyclically shifted by one bit (steps 89 to 89 in FIG. 14).
93, FIG. 18).

【0180】なお割算を、1/(2のn乗)とする場合
(上述の実施の形態ではn=3)、端数分として摘出す
るデータは、RACENTERの下位nビットとなり、
このnビットが表わす数値iは、0〜(2のn乗−1)
となり、RACENTSUBの所要データビット数は2
のn乗となる。nが大きいほど、直流補正を目的とした
V2への補正量を細かく変更することが可能となるが、
RACENTSUBデータビット数は多く必要となる。
データRACENTSUBは、上記RACENTERの
下位nビットが表す数値iに対するデータをROMより
読み出したり(図13のステップ76)、次回タイマ1
割り込みでの補正のためにRACENTSUBデータを
循環シフトする(図14のステップ92)等の演算操作
を行っている。この様な演算操作を単純化させ処理時間
を短くさせるためには、RACENTSUBデータもコ
ンピュータ22の標準のデータ長単位(上述の実施の形
態では1バイト=8ビット)に合せることが望ましい。
When the division is 1 / (2 to the nth power) (n = 3 in the above embodiment), the data extracted as a fraction is the lower n bits of RACENTER,
The numerical value i represented by the n bits is 0 to (2 to the nth power −1).
Therefore, the required number of data bits of RACENTSUB is 2
To the nth power. The larger n is, the finer the amount of correction to V2 for the purpose of DC correction can be changed.
A large number of RACENTSUB data bits is required.
As the data RACENTSUB, the data for the numerical value i represented by the lower n bits of the RACENTER is read from the ROM (step 76 in FIG. 13), and the next timer 1
An arithmetic operation such as cyclically shifting the RACENTSUB data for correction by an interrupt (step 92 in FIG. 14) is performed. In order to simplify such an arithmetic operation and shorten the processing time, it is desirable to match the RACENTSUB data with the standard data length unit of the computer 22 (1 byte = 8 bits in the above embodiment).

【0181】(9)上述した第1の実施の形態では、T
s2×16の周期で実行する「直流分補正」(ステップ
12)の連続12回の実行において継続して、直流分が
設定範囲内に入っていることを検知すると、そこで「直
流分補正」(ステップ12)は実行しなくなり、以後、
該連続12回の実行の直前に定めた調整値RACENT
およびRACENTSUBをそのまま保持して、これら
に基づいて、Vpwm を算出する。
(9) In the above-described first embodiment, T
When it is detected that the direct current component is within the set range by continuously executing the "direct current component correction" (step 12) performed 12 times in a cycle of s2x16, the "direct current component correction" ( Step 12) is not executed,
Adjustment value RACENT determined immediately before the execution of the 12 consecutive times
And RACENTSUB are held as they are, and Vpwm is calculated based on them.

【0182】(10)「直流分補正」(ステップ12)
は、無負荷状態で行ない、上記(9)の通り、「直流分
補正」(ステップ12)の連続12回の実行において継
続して、直流分が設定範囲内に入っていることを検知す
ると、負荷への通電を開始し、負荷通電中は、該連続1
2回の実行の直前に定めた調整値RACENTおよびR
ACENTSUBをそのまま保持して、「直流分補正」
(ステップ12)は実行せず、「出力電流の検出B」
(ステップ14)および「過電流制御B」(ステップ1
5)のみを、Ts2×16の周期で繰返しこの順に実行
する。この間、調整値RACENTおよびRACENT
SUBに基づいて、また、過電流抑制のための調整値R
AAF、ならびに、過電流抑制のための調整値RASR
EF(Sref )および出力電圧実績値RASV(SV)
に基づいた調整値RADR、に基づいて、Vpwm を調整
する。
(10) "DC correction" (step 12)
Performs in a no-load state, and as described in (9) above, when it is detected that the DC component is within the set range by continuously executing the "DC component correction" (step 12) 12 times in succession, When the load is energized and the load is energized, the continuous 1
Adjustment values RACENT and R defined immediately before the second execution
Hold ACENTSUB as it is and perform "DC component correction"
(Step 12) is not executed, but “Detection B of output current”
(Step 14) and "Overcurrent control B" (Step 1
Only 5) is repeatedly executed in this order in a cycle of Ts2 × 16. During this time, the adjustment values RACENT and RACENT
Adjustment value R for suppressing overcurrent based on SUB
Adjustment value RASR for AAF and overcurrent suppression
EF (Sref) and actual output voltage value RASV (SV)
Vpwm is adjusted based on the adjustment value RADR based on

【0183】したがって無負荷時の直流成分が抑制され
かつ過電流が抑制されしかも出力電圧が所定レベル(実
効値100V)に維持されると共に、負荷通電中におい
ても、直流成分が抑制されかつ過電流が抑制されしかも
出力電圧が所定レベル(実効値100V)に維持され
る。
Therefore, the DC component under no load is suppressed, the overcurrent is suppressed, the output voltage is maintained at a predetermined level (effective value 100V), and the DC component is suppressed and the overcurrent is maintained even while the load is energized. Is suppressed and the output voltage is maintained at a predetermined level (effective value 100V).

【0184】ここで、「直流分補正」(ステップ12)
を無負荷状態で行う理由を説明する。本実施例では直流
成分がある場合、出力端子4a/4b間に流れる出力交
流電流の正半波と負半波のバランスが崩れるという現象
を利用して、出力交流電流のバランスを見ることにより
直流分補正を行っている。この直流成分による出力交流
電流のバランスの崩れは出力端子4a/4b間にインダ
クタ部品のみが接続される場合に特に大きく現れる。よ
って直流分補正を行う場合には、リレー8rをオフにし
て無負荷状態にすることにより、4a/4b間にインダ
クタ部品(5,6)のみが接続される状況を作りだし、
補正を行っている。
Here, “DC component correction” (step 12)
The reason why the operation is performed under no load will be described. In the present embodiment, when there is a DC component, the phenomenon that the balance between the positive half-wave and the negative half-wave of the output AC current flowing between the output terminals 4a / 4b is lost is used to check the balance of the output AC current and The minute is corrected. The imbalance of the output AC current due to the DC component is particularly significant when only the inductor component is connected between the output terminals 4a / 4b. Therefore, when correcting the direct current component, the relay 8r is turned off to put it in a no-load state to create a situation in which only the inductor components (5, 6) are connected between 4a / 4b,
Correction has been performed.

【0185】つぎに、第2の実施の形態について説明す
る。
Next, the second embodiment will be described.

【0186】本発明に係る交流出力制御装置は、例え
ば、図32に示すようなインバータ回路に適用される。
The AC output control device according to the present invention is applied to, for example, an inverter circuit as shown in FIG.

【0187】このインバータ回路では、直流電源1が、
直流入力端2a/2b間に160Vを印加する。スイッ
チング回路(Qu,Qy,3u,3y/qv,qy,3
u,3x)の交流出力端4a,4bには、リアクトル6
Lが接続され、このリアクトル6Lにコンデンサ7が接
続されている。
In this inverter circuit, the DC power supply 1 is
160V is applied between the DC input terminals 2a / 2b. Switching circuit (Qu, Qy, 3u, 3y / qv, qy, 3
u, 3x) AC output terminals 4a, 4b are connected to a reactor 6
L is connected, and the condenser 7 is connected to the reactor 6L.

【0188】上述した第1の実施の形態では、昇圧トラ
ンス6とコンデンサ7が50Hz交流生成用のLCロー
パスフィルタ回路となっており、昇圧トランス6が、直
流48Vを実効値が100Vの50Hz交流に昇圧して
いるが、この第2の実施の形態では、リアクトル6Lお
よびコンデンサ7は50Hz交流生成用のLCローパス
フィルタ回路であるが、昇圧は行なわない。したがって
直流電源1には160Vを用いている。100V交流電
圧を得るためには直流電圧は141Vであればよいが、
スイッチングによる電圧降下がありそれを補うため、し
かも負荷変動にも対応しうるように、160Vの直流電
圧を直流入力端2a/2b間に印加する。
In the first embodiment described above, the step-up transformer 6 and the capacitor 7 are an LC low-pass filter circuit for generating a 50 Hz AC, and the step-up transformer 6 converts the DC 48 V into a 50 Hz AC having an effective value of 100 V. Although boosting is performed, in the second embodiment, the reactor 6L and the capacitor 7 are LC low-pass filter circuits for generating 50 Hz AC, but boosting is not performed. Therefore, 160V is used for the DC power supply 1. To obtain 100V AC voltage, the DC voltage may be 141V,
In order to compensate for the voltage drop caused by switching and to cope with load fluctuation, a DC voltage of 160 V is applied between the DC input terminals 2a / 2b.

【0189】尚、第2の実施の形態におけるインバータ
回路において、上述した各構成以外のハードウェア構成
は、上述した第1の実施の形態におけるインバータ回路
と同様である。また、第2の実施の形態における電力制
御回路16のハードウェア構成および制御動作は、上述
した第1の実施の形態における電力制御回路16と全く
同じである。
The inverter circuit according to the second embodiment has the same hardware configuration as that of the above-described inverter circuit according to the first embodiment except for the above-described configurations. Further, the hardware configuration and control operation of the power control circuit 16 in the second embodiment are exactly the same as those of the power control circuit 16 in the first embodiment described above.

【0190】つぎに、第3の実施の形態について説明す
る。
Next, a third embodiment will be described.

【0191】本発明に係る交流出力制御装置は、例え
ば、図33に示すようなインバータ回路に適用される。
The AC output control device according to the present invention is applied to, for example, an inverter circuit as shown in FIG.

【0192】このインバータ回路では、上記図33に示
すように、上述の第1及び第2の実施の形態におけるイ
ンバータ回路のスイッチング回路がフルブリッジである
のに対して、ハーフブリッジとしている。また、昇圧ト
ランス6(第1の実施の形態)に代えて、第2の実施の
形態と同様にリアクトル6Lを用いている。この第3の
実施の形態では、直流電源1Pが、直流入力端2aに+
160Vを印加し、もう1つの直流電源1Nが、直流入
力端2bに−160Vを印加する。直流入力端2a/2
b間の電圧は320Vであり、その中位電位端(直流電
源の基準電位0の端子)2cに、交流電圧出力端の1つ
4bを接続し、そこにリアクトル6Lを接続してもよ
い。なおリアクトル6Lを昇圧トランス6に代えて、直
流各電源の電圧を48Vとしてもよい。この第3の実施
の形態でも、リアクトル6Lおよびコンデンサ7は50
Hz交流生成用のLCローパスフィルタ回路である。ま
た、この第3の実施の形態における電力制御回路16の
ハードウェア構成および制御動作は、前述の第1の実施
の形態における電力制御回路16と全く同じである。
In this inverter circuit, as shown in FIG. 33, the switching circuit of the inverter circuit in the above-described first and second embodiments is a full bridge, whereas it is a half bridge. Further, in place of the step-up transformer 6 (first embodiment), the reactor 6L is used as in the second embodiment. In the third embodiment, the DC power supply 1P is connected to the DC input terminal 2a by +
160V is applied, and another DC power supply 1N applies -160V to the DC input terminal 2b. DC input terminal 2a / 2
The voltage between the terminals b is 320V, and one of the AC voltage output terminals 4b may be connected to the middle potential terminal (terminal of the DC power supply at the reference potential 0) 2c, and the reactor 6L may be connected thereto. The reactor 6L may be replaced with the step-up transformer 6 and the voltage of each DC power source may be set to 48V. Also in this third embodiment, the reactor 6L and the capacitor 7 are 50
It is an LC low pass filter circuit for Hz alternating current generation. The hardware configuration and control operation of the power control circuit 16 in the third embodiment are exactly the same as those of the power control circuit 16 in the first embodiment.

【0193】[0193]

【発明の効果】以上説明したように本発明によれば、交
流波形メモリから読出した波形データに基づいて負荷に
供給する交流出力を制御するインバータが提示される。
負荷に供給する電圧および電流の瞬時値を検出する瞬時
値検出手段と、負荷に供給する電圧および電流の瞬時値
を特定の位相区間ごとに積算して交流平均値を算出する
平均値検出手段が交流出力端に設けられる。電流の平均
値と所定の電流目標値とを比較し、両者の大小関係に応
じて増減した係数値を、波形メモリからの波形データの
振幅値に掛けて第1の制御データを形成する第1の制御
データ形成手段と、上記電圧の平均値と所定の電圧目標
値とを比較し、両者の大小関係に応じて増減した係数値
を、上記波形メモリからの波形データの振幅値に掛けて
第2の制御データを形成する第2の制御データ形成手段
と、上記電流の平均値と所定の電流目標値とを比較し、
両者の大小関係に応じて上記電圧目標値を増減する目標
値調整手段とを設ける。上記電圧の瞬時値と上記第1又
は第2の制御データの一方との差に制御データの他方を
加えて第3の制御データを形成する第3の制御データ形
成手段を設ける。上記第3の制御データにより交流発生
手段を制御し、電流及び電圧が上記各目標値に対して制
御された出力を発生する。したがって、第1、第2の制
御データを用いた二重制御系により、高い波形精度およ
び高精度の目標値制御性能が得られる。目標値制御は瞬
時値制御とは独立して行なわれ、波形データに掛ける係
数の調整を一度に微量増減するデルタ方式とすることに
より、制御精度が高く、安定性のよい制御系となる。ま
た電流目標値として過電流制限値を設定することによ
り、過電流保護の機能が得られる。また、本発明によれ
ば、電流または電圧の平均値を交流半周期ごとの極性を
考慮して積算して交流出力の直流分を検出する積算手段
を設けている。この積算手段の出力と所定のレンジとを
比較し、レンジ外であるときレンジの上下に対応して直
流調整データを微小量増減し、レンジ内であるとき上記
直流調整データの前値を保持する調整手段と、直流調整
データを上記第2の制御データに加算する直流シフト手
段とを更に設けることにより、上記交流発生手段の出力
の直流分が上記レンジ内の値となって交流分に対し実質
的に無視し得る量となるように直流補正ループ動作が行
なわれるようになされている。このため出力交流の直流
分を十分に抑制することができる。また、本発明によれ
ば、直流調整データの上位ビット群を上記第2の制御デ
ータに加算する第1の加算手段と、上記直流調整データ
の下位ビット群をアドレスとして、下位ビット群が表わ
す値に応じた“1”の数を有する微調整データが読み出
されるメモリ手段と、上記微調整データを直流補正ルー
プの1回ごとに1ビットずつシリアルシフトさせるシリ
アルシフト手段と、上記シリアルシフト手段の“1”の
出力を上記第1の加算手段の出力に加算する第2の加算
手段とを設けている。従って、比較的に少いビット数の
データ処理にて高い直流分抑止効果が得られる。
As described above, according to the present invention, an inverter for controlling the AC output supplied to the load based on the waveform data read from the AC waveform memory is presented.
An instantaneous value detecting means for detecting an instantaneous value of a voltage and a current supplied to the load, and an average value detecting means for calculating an AC average value by accumulating the instantaneous values of the voltage and the current supplied to the load for each specific phase section. It is provided at the AC output end. A first control data is formed by comparing an average current value with a predetermined current target value, and multiplying an amplitude value of the waveform data from the waveform memory by a coefficient value increased / decreased according to the magnitude relationship between the two. Of the control data forming means, the average value of the voltage and a predetermined voltage target value are compared, and a coefficient value increased or decreased in accordance with the magnitude relationship between the two is multiplied by the amplitude value of the waveform data from the waveform memory to obtain a first value. The second control data forming means for forming the second control data is compared with the average value of the current and a predetermined current target value,
Target value adjusting means for increasing / decreasing the voltage target value according to the magnitude relation between the two is provided. There is provided third control data forming means for forming third control data by adding the other of the control data to the difference between the instantaneous value of the voltage and one of the first or second control data. The alternating current generating means is controlled by the third control data, and the current and the voltage generate controlled outputs for the respective target values. Therefore, by the dual control system using the first and second control data, high waveform precision and high precision target value control performance can be obtained. The target value control is performed independently of the instantaneous value control. By using the delta method for adjusting the coefficient applied to the waveform data by a small amount at a time, the control system has high control accuracy and good stability. Also, by setting the overcurrent limit value as the current target value, the function of overcurrent protection can be obtained. Further, according to the present invention, there is provided integrating means for integrating the average value of the current or voltage in consideration of the polarity of each AC half cycle to detect the DC component of the AC output. The output of the integrating means is compared with a predetermined range, and when it is out of the range, the DC adjustment data is increased or decreased by a small amount corresponding to the upper and lower parts of the range, and when it is in the range, the previous value of the DC adjustment data is held. By further providing the adjusting means and the DC shift means for adding the DC adjusting data to the second control data, the DC component of the output of the AC generating means becomes a value within the range and substantially the AC component is obtained. The DC correction loop operation is performed so that the amount becomes negligible. Therefore, the direct current component of the output alternating current can be sufficiently suppressed. Further, according to the present invention, the first addition means for adding the upper bit group of the DC adjustment data to the second control data, and the value represented by the lower bit group with the lower bit group of the DC adjustment data as an address. Memory means for reading out the fine adjustment data having a number of "1" according to the above, serial shift means for serially shifting the fine adjustment data one bit at a time for each DC correction loop, and "" for the serial shift means. Second addition means for adding the output of 1 "to the output of the first addition means is provided. Therefore, a high DC component suppressing effect can be obtained by data processing with a relatively small number of bits.

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

【図1】第1の実施の形態において、本発明に係る交流
出力制御装置を適用したPWMインバータの構成を示す
回路図である。
FIG. 1 is a circuit diagram showing a configuration of a PWM inverter to which an AC output control device according to the present invention is applied in the first embodiment.

【図2】上記PWMインバータ回路の電力制御回路の構
成を示す回路図である。
FIG. 2 is a circuit diagram showing a configuration of a power control circuit of the PWM inverter circuit.

【図3】上記電力制御回路のマイクロコンピュータおよ
びその実行プログラムによって具現されたPWMインバ
ータの機能を示すブロック図である。
FIG. 3 is a block diagram showing a function of a PWM inverter implemented by a microcomputer of the power control circuit and an execution program thereof.

【図4】上記PWMインバータにおいて、比例制御部の
調整部の構成を詳細に示すブロック図である。
FIG. 4 is a block diagram showing in detail a configuration of an adjusting unit of a proportional control unit in the PWM inverter.

【図5】上記PWMインバータにおいて、積分制御部の
調整部の構成を詳細に示すブロック図である。
FIG. 5 is a block diagram showing in detail the configuration of an adjusting unit of the integral control unit in the PWM inverter.

【図6】上記PWMインバータの一部の変形例1を示す
要部ブロック図である。
FIG. 6 is a principal block diagram showing a first modification of a part of the PWM inverter.

【図7】上記PWMインバータの一部の変形例2を示す
要部ブロック図である。
FIG. 7 is a principal block diagram showing a second modification of a part of the PWM inverter.

【図8】上記PWMインバータの直流補正シフト部の構
成を詳細に示すブロック図である。
FIG. 8 is a block diagram showing in detail the configuration of a DC correction shift unit of the PWM inverter.

【図9】上記マイクロコンピュータの制御動作の概要を
示すフローチャートである。
FIG. 9 is a flowchart showing an outline of control operation of the microcomputer.

【図10】上記マイクロコンピュータの「タイマ2割込
処理」の内容を示すフローチャートである。
FIG. 10 is a flowchart showing the contents of a “timer 2 interrupt process” of the microcomputer.

【図11】上記マイクロコンピュータの「出力電流の検
出A」処理の内容を示すフローチャートである。
FIG. 11 is a flowchart showing the content of “output current detection A” processing of the microcomputer.

【図12】上記マイクロコンピュータの「過電流制御
A」処理の内容を示すフローチャートである。
FIG. 12 is a flowchart showing the contents of “overcurrent control A” processing of the microcomputer.

【図13】上記マイクロコンピュータの「直流分補正」
処理の内容を示すフローチャートである。
FIG. 13 “DC component correction” of the above microcomputer
It is a flow chart which shows the contents of processing.

【図14】上記マイクロコンピュータの「タイマ1割込
処理」の内容のステップ81〜93を示すフローチャー
トである。
FIG. 14 is a flowchart showing steps 81 to 93 of the content of “timer 1 interrupt processing” of the microcomputer.

【図15】上記マイクロコンピュータの「タイマ1割込
処理」の内容のステップ94〜101を示すフローチャ
ートである。
FIG. 15 is a flowchart showing steps 94 to 101 of the contents of “timer 1 interrupt processing” of the microcomputer.

【図16】上記マイクロコンピュータの「タイマ1割込
処理」の内容のステップ101〜106を示すフローチ
ャートである。
FIG. 16 is a flowchart showing steps 101 to 106 of the content of “timer 1 interrupt processing” of the microcomputer.

【図17】上記マイクロコンピュータの「タイマ1割込
処理」の内容のステップ107〜111を示すフローチ
ャートである。
FIG. 17 is a flowchart showing steps 107 to 111 of the contents of “timer 1 interrupt processing” of the microcomputer.

【図18】上記マイクロコンピュータの「タイマ1割込
処理」の内容のステップ112〜119を示すフローチ
ャートである。
FIG. 18 is a flowchart showing steps 112 to 119 of the content of “timer 1 interrupt processing” of the microcomputer.

【図19】上記マイクロコンピュータが発生するPWM
パルスを示すタイムチャートである。
FIG. 19 is a PWM generated by the microcomputer.
It is a time chart which shows a pulse.

【図20】上記「過電流制御A」処理において、上記マ
イクロコンピュータが設定するRASREFの下限値
(右下り斜線領域の面積)と交流出力電圧レベル(電圧
波形)の関係を示す波形図である。
FIG. 20 is a waveform diagram showing a relationship between a lower limit value of RASREF (area of a right-downward diagonally shaded region) set by the microcomputer and an AC output voltage level (voltage waveform) in the “overcurrent control A” process.

【図21】上記「過電流制御A」処理において、上記マ
イクロコンピュータが設定するRASREFの上限値
(右下り斜線領域の面積)と交流出力電圧レベル(電圧
波形)の関係を示す波形図である。
FIG. 21 is a waveform diagram showing a relationship between an upper limit value of RASREF (area of a right-downward diagonally shaded region) set by the microcomputer and an AC output voltage level (voltage waveform) in the “overcurrent control A” process.

【図22】上記「直流分補正」処理で上記マイクロコン
ピュータが設定するデータRACENTERのビット構
成を示すデータ構成図である。
FIG. 22 is a data configuration diagram showing a bit configuration of data RACENTER set by the microcomputer in the “DC component correction” process.

【図23】上記「直流分補正」処理で上記マイクロコン
ピュータが設定するデータRACENTSUB(8組)
のデータを示すデータ構成図である。
FIG. 23 is data RACENTSUB (8 sets) set by the microcomputer in the “DC component correction” process.
It is a data configuration diagram showing the data of.

【図24】上記「タイマ1割込処理」で上記マイクロコ
ンピュータが内部ROMから読み出す正弦波レベルデー
タVref2(N)によって表わされる電圧波形を示す波形
図である。
FIG. 24 is a waveform diagram showing a voltage waveform represented by sine wave level data Vref2 (N) read from the internal ROM by the microcomputer in the “timer 1 interrupt process”.

【図25】過電流制御および電圧制御のための調整値R
ADRに基づいてVref2(N)を補正したデータVA2
によって表わされる電圧波形を示す波形図である。
FIG. 25: Adjustment value R for overcurrent control and voltage control
Data VA2 in which Vref2 (N) is corrected based on ADR
It is a wave form diagram which shows the voltage waveform represented by.

【図26】直流分補正のための調整値RACENTと該
データVA2に基づいて生成されたデータV2によって
表わされる電圧波形を示す波形図である。
FIG. 26 is a waveform diagram showing a voltage waveform represented by an adjustment value RACENT for DC component correction and data V2 generated based on the data VA2.

【図27】上記「タイマ1割込処理」における、調整デ
ータRACENTSUBの循環シフトを示すデータ構成
図である。
FIG. 27 is a data configuration diagram showing a cyclic shift of the adjustment data RACENTSUB in the “timer 1 interrupt process”.

【図28】上記「タイマ1割込処理」で上記マイクロコ
ンピュータが内部ROMから読み出す正弦波レベルデー
タVref1(N)によって表わされる電圧波形を示す波形
図である。
FIG. 28 is a waveform diagram showing a voltage waveform represented by sine wave level data Vref1 (N) read from the internal ROM by the microcomputer in the “timer 1 interrupt process”.

【図29】過電流制御のための調整値RAAFに基づい
てVref1(N)を補正したデータVA1によって表わさ
れる電圧波形を示す波形図である。
FIG. 29 is a waveform diagram showing a voltage waveform represented by data VA1 in which Vref1 (N) is corrected based on an adjustment value RAAF for overcurrent control.

【図30】直流分補正のための調整値RACENTと該
データVA1に基づいて生成されたデータV1によって
表わされる電圧波形を示す波形図である。
FIG. 30 is a waveform diagram showing a voltage waveform represented by an adjustment value RACENT for DC component correction and data V1 generated based on the data VA1.

【図31】上記「タイマ1割込処理」で上記マイクロコ
ンピュータが算出する、出力交流電圧の検出値の積分値
を斜線領域(正半波区間)および縦線領域(負半波区
間)で示す波形図である。
FIG. 31 shows the integrated value of the detection value of the output AC voltage calculated by the microcomputer in the “timer 1 interrupt process” in the shaded area (positive half-wave section) and the vertical line area (negative half-wave section). It is a waveform diagram.

【図32】第2の実施の形態において、本発明に係る交
流出力制御装置を適用したPWMインバータの構成を示
す回路図である。
FIG. 32 is a circuit diagram showing a configuration of a PWM inverter to which the AC output control device according to the present invention is applied in the second embodiment.

【図33】第3の実施の形態において、本発明に係る交
流出力制御装置を適用したPWMインバータの構成を示
す回路図である。
FIG. 33 is a circuit diagram showing a configuration of a PWM inverter to which the AC output control device according to the present invention is applied in the third embodiment.

【符号の説明】 1 直流電源 3 インバータブリッジ 8r リレースイッチ 22a 比例制御部 22b 積分制御部 22c 直流分補正部 22d,22e A/D変換器 22f PWM部 22g 加算部 40 フィルタ 41 出力電流検出器 42 出力電圧検出器 225,235 正弦波データメモリ 232 積算平均部 LD 負荷[Description of symbols] 1 DC power supply 3 Inverter bridge 8r Relay switch 22a Proportional control unit 22b Integral control unit 22c DC component correction unit 22d, 22e A / D converter 22f PWM unit 22g Adder unit 40 Filter 41 Output current detector 42 Output Voltage detector 225, 235 Sine wave data memory 232 Integrated averaging unit LD load

フロントページの続き (72)発明者 田本 貞治 川崎市中原区苅宿228番地 株式会社ユタ カ電機製作所内Front page continuation (72) Inventor Sadaharu Tamoto 228 Kayajuku, Nakahara-ku, Kawasaki City Yutaka Electric Co., Ltd.

Claims (14)

【特許請求の範囲】[Claims] 【請求項1】 交流波形メモリから読出した波形データ
に基づいて負荷に供給する交流出力を制御する交流出力
制御装置であって、 負荷に供給する電圧若しくは電流の瞬時値を検出する瞬
時値検出手段と、 負荷に供給する電圧若しくは電流の瞬時値を特定の位相
区間ごとに積算して交流平均値を算出する平均値検出手
段と、 上記電圧または電流の瞬時値と上記交流波形メモリから
の波形データとの差に基づいて第1の制御データを形成
する第1の制御手段と、 上記交流平均値と所定の制御目標値とを比較し、両者の
大小関係に応じて増減した係数値を、上記波形メモリか
らの波形データの振幅値に掛けて第2の制御データを形
成する第2の制御手段と、 上記第1および第2の制御データにより制御され、電流
若しくは電圧が上記制御目標値に対して制御された出力
を発生する交流発生手段とを備えることを特徴とする交
流出力制御装置。
1. An AC output control device for controlling an AC output supplied to a load based on waveform data read from an AC waveform memory, wherein an instantaneous value detecting means for detecting an instantaneous value of a voltage or a current supplied to the load. An average value detecting means for calculating an AC average value by integrating the instantaneous value of the voltage or current supplied to the load for each specific phase section; the instantaneous value of the voltage or current and the waveform data from the AC waveform memory. The first control means that forms the first control data based on the difference between the above-mentioned AC average value and the predetermined control target value are compared, and the coefficient value increased or decreased according to the magnitude relation between the two is calculated as above. Second control means for forming second control data by multiplying the amplitude value of the waveform data from the waveform memory, and the current or voltage controlled by the first and second control data, and the control target value. AC output control device, characterized in that it comprises a AC generation means for generating an output which is controlled for.
【請求項2】 交流波形メモリから読出した波形データ
に基づいて負荷に供給する交流出力を制御する交流出力
制御装置であって、 負荷に供給する電圧の瞬時値を検出する瞬時値検出手段
と、 負荷に供給する電圧の瞬時値を特定の位相区間ごとに積
算して交流電圧平均値を算出する平均値検出手段と、 上記電圧の瞬時値と上記交流波形メモリからの波形デー
タとの差に基づいて第1の制御データを形成する第1の
制御手段と、 上記電圧の平均値と所定の電圧目標値とを比較し、両者
の大小関係に応じて増減した係数値を、上記波形メモリ
からの波形データの振幅値に掛けて第2の制御データを
形成する第2の制御手段と、 上記第1および第2の制御データにより制御され、電圧
が上記電圧目標値に対して制御された出力を発生する交
流発生手段とを備えることを特徴とする交流出力制御装
置。
2. An AC output control device for controlling an AC output supplied to a load based on waveform data read from an AC waveform memory, wherein the instantaneous value detecting means detects an instantaneous value of a voltage supplied to the load. Average value detection means for calculating the AC voltage average value by integrating the instantaneous value of the voltage supplied to the load for each specific phase section, and based on the difference between the instantaneous value of the voltage and the waveform data from the AC waveform memory. Comparing the average value of the above voltage with a predetermined voltage target value, and increasing or decreasing the coefficient value according to the magnitude relationship between the two values from the waveform memory. Second control means for forming second control data by multiplying the amplitude value of the waveform data, and an output controlled by the first and second control data and having a voltage controlled with respect to the voltage target value. Generated alternating current AC output control device, characterized in that it comprises a stage.
【請求項3】 交流波形メモリから読出した波形データ
に基づいて負荷に供給する交流出力を制御する交流出力
制御装置であって、 負荷に供給する電圧および電流の瞬時値を検出する瞬時
値検出手段と、 負荷に供給する電流の瞬時値を特定の位相区間ごとに積
算して交流電流平均値を算出する平均値検出手段と、 上記電流の平均値と所定の電流目標値とを比較し、両者
の大小関係に応じて増減した係数値を、上記波形メモリ
からの波形データの振幅値に掛ける振幅調整手段と、 上記電圧の瞬時値と上記振幅調整手段からの振幅調整さ
れた波形データとの差に基づいて制御データを形成する
制御手段と、 上記制御データにより制御され、電流が上記電流目標値
に対して制御された出力を発生する交流発生手段とを備
えることを特徴とする交流出力制御装置。
3. An AC output control device for controlling an AC output supplied to a load based on waveform data read from an AC waveform memory, wherein an instantaneous value detecting means detects an instantaneous value of a voltage and a current supplied to the load. And an average value detecting means for calculating the AC current average value by integrating the instantaneous value of the current supplied to the load for each specific phase section, and comparing the average value of the current with a predetermined current target value. Of the amplitude value of the waveform data from the waveform memory and the difference between the instantaneous value of the voltage and the amplitude-adjusted waveform data from the amplitude adjusting means. AC means for generating control data based on the control data, and AC generation means for generating an output that is controlled by the control data and the current is controlled with respect to the current target value. Force control apparatus.
【請求項4】 交流波形メモリから読出した波形データ
に基づいて負荷に供給する交流出力を制御する交流出力
制御装置であって、 負荷に供給する電圧の瞬時値を検出する瞬時値検出手段
と、 負荷に供給する電圧の瞬時値を特定の位相区間ごとに積
算して交流電圧平均値を算出する平均値検出手段と、 上記電圧の平均値と所定の電圧目標値とを比較し、両者
の大小関係に応じて増減した係数値を、上記波形メモリ
からの波形データの振幅値に掛ける振幅調整手段と、 上記電圧の瞬時値と上記振幅調整手段からの振幅調整さ
れた波形データとの差に基づいて制御データを形成する
制御手段と、 上記制御データにより制御され、電圧が上記電圧目標値
に対して制御された出力を発生する交流発生手段とを備
えることを特徴とする交流出力制御装置。
4. An AC output control device for controlling an AC output supplied to a load on the basis of waveform data read from an AC waveform memory, and an instantaneous value detecting means for detecting an instantaneous value of a voltage supplied to the load. Average value detection means for calculating the AC voltage average value by integrating the instantaneous value of the voltage supplied to the load for each specific phase section and the average value of the above voltage and a predetermined voltage target value are compared, Based on the difference between the amplitude adjustment means for multiplying the amplitude value of the waveform data from the waveform memory by the coefficient value increased or decreased according to the relationship and the instantaneous value of the voltage and the amplitude adjusted waveform data from the amplitude adjustment means. AC output control device comprising: control means for generating control data by means of the control data; and AC generation means for generating an output controlled by the control data, the voltage being controlled with respect to the voltage target value. .
【請求項5】 交流波形メモリから読みだした波形デー
タに基づいて負荷に供給する交流出力を制御する交流出
力制御装置であって、 負荷に供給する電圧及び電流の瞬時値を検出する瞬時値
検出手段と、 負荷に供給する電圧及び電流の瞬時値を特定の位相区間
ごとに積算して電流及び電圧の交流平均値を算出する平
均値検出手段と、 上記電圧の平均値と所定の電圧目標値とを比較し、両者
の大小関係に応じて増減した係数値を、上記波形メモリ
から波形データの振幅値に掛ける振幅調整手段と、 上記電流の平均値と所定の電流目標値とを比較し、両者
の大小関係に応じて上記電圧目標値を増減する目標値調
整手段と、 上記電圧の瞬時値と上記振幅調整手段からの振幅調整さ
れた波形データとの差に基づいて制御データを形成する
制御手段と、 上記制御データにより制御され、電圧が上記電圧目標値
に対して制御された出力を発生する交流発生手段とを備
えることを特徴とする交流出力制御装置。
5. An AC output control device for controlling an AC output supplied to a load based on waveform data read from an AC waveform memory, the instantaneous value detection detecting an instantaneous value of a voltage and a current supplied to the load. Means, an average value detection means for calculating the AC average value of the current and the voltage by integrating the instantaneous values of the voltage and the current supplied to the load for each specific phase section, the average value of the voltage and the predetermined voltage target value. And a coefficient value increased or decreased according to the magnitude relationship between the two, an amplitude adjusting means for multiplying the amplitude value of the waveform data from the waveform memory, and an average value of the current and a predetermined current target value are compared, Target value adjusting means for increasing / decreasing the voltage target value according to the magnitude relationship between the two, and control for forming control data based on the difference between the instantaneous value of the voltage and the amplitude-adjusted waveform data from the amplitude adjusting means. Means and Is controlled by the control data, AC output control unit in which the voltage; and a AC generation means for generating an output which is controlled with respect to the voltage target value.
【請求項6】 交流波形メモリから読出した波形データ
に基づいて負荷に供給する交流出力を制御する交流出力
制御装置であって、 負荷に供給する電圧および電流の瞬時値を検出する瞬時
値検出手段と、 負荷に供給する電圧および電流の瞬時値を特定の位相区
間ごとに積算して電圧および電流の交流平均値を算出す
る平均値検出手段と、 上記電流の平均値と所定の電流目標値とを比較し、両者
の大小関係に応じて増減した係数値を、上記波形メモリ
からの波形データの振幅値に掛けて第1の制御データを
形成する第1の制御データ形成手段と、 上記電圧の平均値と所定の電圧目標値とを比較し、両者
の大小関係に応じて増減した係数値を、上記波形メモリ
からの波形データの振幅値に掛けて第2の制御データを
形成する第2の制御データ形成手段と、 上記電流の平均値と所定の電流目標値とを比較し、両者
の大小関係に応じて上記電圧目標値を増減する目標値調
整手段と、 上記電圧の瞬時値と上記第1又は第2の制御データの一
方との差に制御データの他方を加えて第3の制御データ
を形成する第3の制御データ形成手段と、 上記第3の制御データにより制御され、電流、電圧が上
記各目標値に対して制御された出力を発生する交流発生
手段とを備えることを特徴とする交流出力制御手段。
6. An AC output control device for controlling an AC output supplied to a load based on waveform data read from an AC waveform memory, wherein an instantaneous value detecting means detects an instantaneous value of a voltage and a current supplied to the load. An average value detecting means for calculating an AC average value of voltage and current by integrating instantaneous values of voltage and current supplied to the load for each specific phase section; and an average value of the current and a predetermined current target value. And a first control data forming means for forming first control data by multiplying the amplitude value of the waveform data from the waveform memory by a coefficient value increased / decreased according to the magnitude relationship between the two, and A second control data is formed by comparing the average value with a predetermined voltage target value and multiplying the amplitude value of the waveform data from the waveform memory by a coefficient value increased or decreased according to the magnitude relationship between the two. Control data type Means, a target value adjusting means for comparing the average value of the current with a predetermined current target value, and increasing or decreasing the voltage target value according to the magnitude relation between the two, an instantaneous value of the voltage, and the first or first value. The third control data forming means for forming the third control data by adding the other of the control data to the difference of the one of the two control data, and the current and the voltage controlled by the third control data. AC output control means comprising: an AC generating means for generating an output controlled with respect to a target value.
【請求項7】 上記第3の制御データ形成手段が、上記
第1及び第2の制御データの和と上記電圧の瞬時値との
差を形成する手段であることを特徴とする請求項6記載
の交流出力制御装置。
7. The third control data forming means is a means for forming a difference between a sum of the first and second control data and an instantaneous value of the voltage. AC output control device.
【請求項8】 上記第3の制御データ形成手段が上記第
1の制御データから上記電圧の瞬時値との差に所定のゲ
インを掛け、上記第2の制御データを加算して第3の制
御データを形成する手段であることを特徴とする請求項
6記載の交流出力制御装置。
8. The third control data forming means multiplies a difference between the first control data and the instantaneous value of the voltage by a predetermined gain and adds the second control data to obtain a third control. 7. The AC output control device according to claim 6, which is means for forming data.
【請求項9】 上記第2の制御データ形成手段は、上記
第1の制御データの係数値の増減を所定の上限値と下限
値との間に制限するリミット手段を備えることを特徴と
する請求項6記載の交流出力制御装置。
9. The second control data forming means comprises limit means for limiting increase or decrease of the coefficient value of the first control data between a predetermined upper limit value and a predetermined lower limit value. Item 7. The AC output control device according to item 6.
【請求項10】 上記目標値調整手段は、 上記電流の平均値が電流目標値より大のとき上記電圧目
標値を微小値だけ減少させ、上記電流の平均値が電流目
標値より小のとき上記電圧目標値を微小値だけ増加させ
る演算手段と、 上記演算手段の出力に対し、所定上限値と下限値の間を
越えないように制限するリミット手段とを備え、 上記上限値は、上記交流発生手段の出力電圧が上記電圧
目標値に一致したとき、定格出力電圧を負荷に供給する
ような定数値に設定されていることを特徴とする請求項
6記載の交流出力制御装置。
10. The target value adjusting means decreases the voltage target value by a small value when the average value of the current is larger than the current target value, and when the average value of the current is smaller than the current target value, The calculating means for increasing the voltage target value by a small value, and the limiting means for limiting the output of the calculating means so as not to exceed the predetermined upper limit value and the lower limit value, the upper limit value being the AC generation 7. The AC output control device according to claim 6, wherein when the output voltage of the means matches the voltage target value, a constant value is set so that the rated output voltage is supplied to the load.
【請求項11】 上記電流または電圧の平均値を交流半
周期ごとの極性を考慮して積算して交流出力の直流分を
検出する積算手段と、 上記積算手段の出力と所定のレンジとを比較し、レンジ
外であるときレンジの上下に対応して直流調整データを
微小量増減し、レンジ内であるとき上記直流調整データ
の前値を保持する調整手段と、 上記直流調整データを上記第2の制御データに加算する
直流シフト手段とを更に具備し、 上記交流発生手段の出力の直流分が上記レンジ内の値と
なって交流分に対し実質的に無視し得る量となるように
直流補正ループ動作が行なわれるようにしたことを特徴
とする請求項10記載の交流出力制御装置。
11. An integrating means for integrating the average value of the current or voltage in consideration of the polarity of each AC half cycle to detect the DC component of the AC output, and comparing the output of the integrating means with a predetermined range. Then, when it is out of the range, the DC adjustment data is slightly increased or decreased corresponding to the upper and lower parts of the range, and when it is within the range, an adjusting means for holding the previous value of the DC adjustment data; And a DC shift means for adding the control data to the DC control means so that the DC component of the output of the AC generating unit becomes a value within the range and is a substantially negligible amount with respect to the AC component. The AC output control device according to claim 10, wherein a loop operation is performed.
【請求項12】 上記演算手段の出力が上記レンジ内で
あることを示す比較結果を所定ループ回数以上計数する
ことにより、補正ループの収束を検出する計数手段と、 上記計数手段の収束検出出力により閉じられて上記交流
発生手段の出力を上記負荷に供給するスイッチ手段とを
備えることを特徴とする請求項11記載の交流出力制御
装置。
12. A counting means for detecting the convergence of a correction loop by counting a comparison result indicating that the output of the arithmetic means is within the range by a predetermined number of loops or more, and a convergence detection output of the counting means. 12. The AC output control device according to claim 11, further comprising switch means which is closed and supplies the output of the AC generating means to the load.
【請求項13】 上記直流調整データを上記第2の制御
データに加算する上記直流シフト手段が、 上記直流調整データの上位ビット群を上記第2の制御デ
ータに加算する第1の加算手段と、 上記直流調整データの下位ビット群をアドレスとして、
下位ビット群が表わす値に応じた“1”の数を有する微
調整データが読み出されるメモリ手段と、 上記微調整データを直流補正ループの1回ごとに1ビッ
トずつシリアルシフトさせるシリアルシフト手段と、 上記シリアルシフト手段の“1”の出力を上記第1の加
算手段の出力に加算する第2の加算手段とを備えること
を特徴とする請求項11記載の交流出力制御装置。
13. The first DC conversion means for adding the DC adjustment data to the second control data, the first addition means for adding an upper bit group of the DC adjustment data to the second control data, Using the lower bit group of the DC adjustment data as an address,
Memory means for reading out fine adjustment data having a number of "1" corresponding to the value represented by the lower bit group; serial shift means for serially shifting the fine adjustment data by one bit for each DC correction loop; 12. The AC output control device according to claim 11, further comprising a second addition unit that adds the output of "1" of the serial shift unit to the output of the first addition unit.
【請求項14】 上記交流発生手段が、 入力制御データの振幅値に対応してデューティが時間変
化するPWMパルスを発生するPWM手段と、 上記PWM手段の出力パルスによりスイッチング動作さ
れ、直流入力を交流出力に変換するインバータブリッジ
スイッチとを備えることを特徴とする請求項1から6の
何れかに記載の交流出力制御装置。
14. The alternating current generating means performs a switching operation by a PWM means for generating a PWM pulse whose duty changes with time according to the amplitude value of the input control data, and an output pulse of the PWM means to perform a switching operation to convert a direct current input to an alternating current. The AC output control device according to any one of claims 1 to 6, further comprising an inverter bridge switch for converting the output.
JP8241354A 1995-08-24 1996-08-23 Ac output controller Pending JPH09121549A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8241354A JPH09121549A (en) 1995-08-24 1996-08-23 Ac output controller

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP7-216246 1995-08-24
JP21610295 1995-08-24
JP21624695 1995-08-24
JP7-216102 1995-08-24
JP8241354A JPH09121549A (en) 1995-08-24 1996-08-23 Ac output controller

Publications (1)

Publication Number Publication Date
JPH09121549A true JPH09121549A (en) 1997-05-06

Family

ID=27329839

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8241354A Pending JPH09121549A (en) 1995-08-24 1996-08-23 Ac output controller

Country Status (1)

Country Link
JP (1) JPH09121549A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001157456A (en) * 1999-11-25 2001-06-08 Toshiba Lighting & Technology Corp Constant-current power supply
JP2002204577A (en) * 2001-01-09 2002-07-19 Toshiba Corp Inverter
JP2006204067A (en) * 2005-01-24 2006-08-03 Kawamura Electric Inc System interconnection inverter of distributed power supply, and method of system interconnection
JP2018514698A (en) * 2015-05-14 2018-06-07 エルドル コーポレイション エセ.ペー.アー. Electronic ignition system for internal combustion engine and method for controlling the electronic ignition system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001157456A (en) * 1999-11-25 2001-06-08 Toshiba Lighting & Technology Corp Constant-current power supply
JP4560690B2 (en) * 1999-11-25 2010-10-13 東芝ライテック株式会社 Constant current power supply
JP2002204577A (en) * 2001-01-09 2002-07-19 Toshiba Corp Inverter
JP4672149B2 (en) * 2001-01-09 2011-04-20 東芝コンシューマエレクトロニクス・ホールディングス株式会社 Inverter device
JP2006204067A (en) * 2005-01-24 2006-08-03 Kawamura Electric Inc System interconnection inverter of distributed power supply, and method of system interconnection
JP4654043B2 (en) * 2005-01-24 2011-03-16 河村電器産業株式会社 System connection inverter for distributed power source and system connection method
JP2018514698A (en) * 2015-05-14 2018-06-07 エルドル コーポレイション エセ.ペー.アー. Electronic ignition system for internal combustion engine and method for controlling the electronic ignition system
US10871139B2 (en) 2015-05-14 2020-12-22 Eldor Corporation S.P.A. Electronic ignition system for an internal combustion engine and control method for said electronic ignition system

Similar Documents

Publication Publication Date Title
US7511973B2 (en) Constant current mode ripple attenuation method in flyback power supply
US6970365B2 (en) Controlled frequency power factor correction circuit and method
US5680302A (en) AC output control apparatus
US20010033504A1 (en) Analog/digital PWM control circuit of a winding
EP1920532A2 (en) Power conversion regulator with predictive energy balancing
WO1996027154A1 (en) One cycle control of bipolar switching power amplifiers
JP2004274899A (en) Converter arrangement
JPH0335627B2 (en)
TWI700882B (en) Circuit for use with a switching converter and method performed by a switching converter
JP3873972B2 (en) Power supply device and method for creating switching signal for on / off control of switching element of converter section constituting power supply device
US7312597B2 (en) Actuation circuit for a switch in a switch-mode converter for improving the response to sudden changes
JPH09121549A (en) Ac output controller
JP3565416B2 (en) Power factor improvement circuit
AU2002358783B2 (en) Electronic ballast and operating method for a gas discharge lamp
JP2001037210A (en) Dc power source unit connecting a plurality of dc power source circuit in parallel
JP3510805B2 (en) Piezo transformer drive circuit
EP3827321A1 (en) Precision high voltage power supply utilizing feedback through return side output
JP4003501B2 (en) Three-phase PWM rectifier controller
JP2001339953A (en) Switching power supply
CN113852076A (en) Power supply circuit, compensation circuit and harmonic distortion compensation method thereof
JPH09135568A (en) Dc/dc converter
US20050104536A1 (en) Device and method for operating a discharge lamp
EP1454405B1 (en) Controlled frequency power factor correction circuit and method
JP6639037B2 (en) Switching power supply
JP3495287B2 (en) Power supply

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20021126