JP2011109750A - Current controller for electric load - Google Patents

Current controller for electric load Download PDF

Info

Publication number
JP2011109750A
JP2011109750A JP2009259935A JP2009259935A JP2011109750A JP 2011109750 A JP2011109750 A JP 2011109750A JP 2009259935 A JP2009259935 A JP 2009259935A JP 2009259935 A JP2009259935 A JP 2009259935A JP 2011109750 A JP2011109750 A JP 2011109750A
Authority
JP
Japan
Prior art keywords
current
voltage
calibration
temperature
electric load
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.)
Granted
Application number
JP2009259935A
Other languages
Japanese (ja)
Other versions
JP4916543B2 (en
Inventor
Shuichi Matsumoto
修一 松本
Masao Motonobu
政郎 元信
Hiroto Arikata
浩人 有方
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2009259935A priority Critical patent/JP4916543B2/en
Publication of JP2011109750A publication Critical patent/JP2011109750A/en
Application granted granted Critical
Publication of JP4916543B2 publication Critical patent/JP4916543B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a current controller which improves the accuracy of current control by coping with solid dispersions and variations of parts and changes in environmental temperature. <P>SOLUTION: An electric load 107 is supplied with electricity via a switching element 121 and a current detecting resistor 126 from a driving power source 101, and a voltage across the current detecting resistor 126 is amplified by an amplifying circuit 150, and a monitoring voltage Ef roughly proportional to the load current is generated and fed back negatively into a comparative difference integrating circuit 140. A microprocessor 111A computes an estimated monitoring voltage Es corresponding to the target load current Is and inputs it into a comparative deviation integrating circuit 140 as a target set voltage, thus the duty of the switching element 121 is controlled according to the output signal of the comparative deviation integrating circuit 140. The current proportion coefficient and the error component of the monitoring voltage Ef are calibrated using an ammeter for calibration according to the environmental temperature and the target load current, and the calibrating operation is executed by the microprocessor 111A. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

この発明は、例えば車載電子制御装置において使用される誘導性電気負荷の電流制御装置、特に目標設定電流と検出負荷電流とが一致するように負帰還制御される電気負荷の電流制御装置に関するものである。   The present invention relates to a current control device for an inductive electric load used, for example, in an in-vehicle electronic control device, and more particularly to a current control device for an electric load that is negatively feedback controlled so that a target set current and a detected load current coincide with each other. is there.

駆動電源と電気負荷との間に接続された開閉素子の開閉通電率を制御して、通電目標電流と電流検出抵抗による検出電流とが一致する関係に制御する電気負荷の電流制御装置には様々な形態のものがあり、例えば広範囲な可変一定電流が要求されるリニアソレノイドの電流制御や、急速開弁後に一定の低電流で開弁保持を行う燃料噴射用電磁弁の電流制御などの用途がある。   There are various electric load current control devices that control the switching energization rate of the switching element connected between the drive power supply and the electric load so that the energization target current and the detection current by the current detection resistor coincide with each other. For example, there are applications such as current control of a linear solenoid that requires a wide range of variable constant current and current control of a solenoid valve for fuel injection that keeps the valve open at a constant low current after rapid opening. is there.

これらの電流制御装置では、マイクロプロセッサが目標電流指令を発生すると共に、自らが検出電流との偏差に応動する開閉駆動指令を発生する内部帰還制御方式のものと、マイクロプロセッサは単に目標電流指令を発生するだけで、マイクロプロセッサの外部に設けられた偏差積分回路によって目標電流と検出電流との偏差に応動して開閉駆動指令を発生する外部帰還制御方式のものがある。
例えば、後述の特許文献1や特許文献3によるものは内部帰還制御方式であり、特許文献2によるものは外部帰還制御方式となっていて、外部帰還制御方式のものはマイクロプロセッサの制御負担が軽減される反面でハードウエア構成が複雑となる形式のものとなっている。
In these current control devices, the microprocessor generates a target current command and also uses an internal feedback control method in which the microprocessor generates a switching drive command that responds to a deviation from the detected current, and the microprocessor simply outputs the target current command. There is an external feedback control type that generates an open / close drive command in response to a deviation between a target current and a detected current by a deviation integrating circuit provided outside the microprocessor.
For example, those described in Patent Document 1 and Patent Document 3 described later are internal feedback control systems, those described in Patent Document 2 are external feedback control systems, and those in the external feedback control system reduce the control burden on the microprocessor. However, the hardware configuration is complicated.

特許文献1あるいは特許文献2によれば、電気負荷に直列接続された電流検出抵抗の両端電圧を増幅して得られる監視電圧は電流比例成分と誤差成分を含み、当該誤差成分は電圧比例成分とオフセット成分に分割され、電流比例成分の電流比例係数と、電圧比例成分の電圧比例係数とオフセット成分を、校正用の電流計と電圧計を用いて手順良く算出し、これ等の校正定数を用いて高精度な電流制御を行う手段が開示されている。
また、特許文献3によれば、電流制御装置内の周囲温度(環境温度)を検出する温度検出手段と、検出された周囲温度に基づいて電流検出手段により検出された駆動電流(負荷電流)を補正する温度補正手段を備えたリニアソレノイドの制御装置が開示されている。
According to Patent Document 1 or Patent Document 2, the monitoring voltage obtained by amplifying the voltage across the current detection resistor connected in series to the electric load includes a current proportional component and an error component, and the error component is a voltage proportional component. It is divided into offset components, and the current proportionality factor of the current proportional component, the voltage proportionality factor of the voltage proportional component and the offset component are calculated with good procedures using a calibration ammeter and voltmeter, and these calibration constants are used. A means for performing highly accurate current control is disclosed.
According to Patent Document 3, the temperature detection means for detecting the ambient temperature (environment temperature) in the current control device, and the drive current (load current) detected by the current detection means based on the detected ambient temperature. A linear solenoid control device having a temperature correction means for correction is disclosed.

特開2006−238668号公報(要約の欄、図1)JP 2006-238668 (Summary column, FIG. 1) 特開2006−100509号公報(要約の欄、図1)JP 2006-100509 A (summary column, FIG. 1) 特開平10−225179号公報(要約の欄、図1)JP 10-225179 A (summary column, FIG. 1)

前記特許文献1あるいは特許文献2による電流制御装置は、電流検出誤差の要因別に校正が行なわれているので、部品の固体バラツキ変動と電源電圧の変動に対して高精度な電流制御を行うことができるものとなっている。しかし、環境温度変化に対応した制御誤差の補正が行なわれていないことと、目標電流に対する線形性誤差の補正が行なわれていない問題点がある。   Since the current control device according to Patent Document 1 or Patent Document 2 is calibrated for each factor of current detection error, it is possible to perform current control with high accuracy against variations in individual parts and power supply voltage. It is possible. However, there are a problem that the control error corresponding to the environmental temperature change is not corrected and the linearity error is not corrected for the target current.

これに対し、前記特許文献3による電流制御装置は、高精度電流計を用いた実負荷電流による校正が行なわれておらず、電流検出抵抗の抵抗値が一定不変で、固体バラツキ変動もなくて設計値どおりの正確な抵抗値を有するものであるとの前提において成立する制御方法となっている。従って、例え周囲温度による補正が行なわれたとしても、この周囲温度は電流制御装置内部の環境温度を測定するものであって、電流検出抵抗そのものの温度を検出しているわけではないので、負荷電流の二乗に比例する消費電力によって電流検出抵抗の抵抗値が変動し、正確な電流制御が行えない問題点がある。   On the other hand, the current control device according to Patent Document 3 is not calibrated with an actual load current using a high-precision ammeter, the resistance value of the current detection resistor is constant, and there is no variation in solids. This control method is established on the assumption that the resistance value is as accurate as the design value. Therefore, even if correction is performed based on the ambient temperature, the ambient temperature measures the environmental temperature inside the current control device, and does not detect the temperature of the current detection resistor itself. The resistance value of the current detection resistor fluctuates due to power consumption proportional to the square of the current, and there is a problem that accurate current control cannot be performed.

この発明の第1の目的は、部品の個体バラツキ変動と多様な環境変動に対応して高精度な電流制御を行うことができる外部帰還型、又は内部帰還型の電気負荷の電流制御装置を提供することである。   A first object of the present invention is to provide a current control device for an external feedback type or an internal feedback type electric load capable of performing highly accurate current control in response to individual variation of parts and various environmental changes. It is to be.

また、この発明の第2の目的は、電流検出抵抗の自己発熱による抵抗値の変動に基づいて、目標負荷電流に対応した実負荷電流の線形性誤差が発生するのを低減することができる外部帰還型、又は内部帰還型電気負荷の電流制御装置を提供することである。   A second object of the present invention is to reduce the occurrence of an error in the linearity of the actual load current corresponding to the target load current based on the resistance value variation due to self-heating of the current detection resistor. It is to provide a current control device of a feedback type or an internal feedback type electric load.

この発明の第1の発明による電気負荷の電流制御装置は、駆動電源から給電されると共に、開閉素子と電流検出抵抗と電気負荷とが直列接続された給電回路部と、前記電気負荷に対する目標負荷電流と前記電流検出抵抗による検出負荷電流とが一致する関係に前記開閉素子のON/OFF比率を制御する制御回路部と、を備えた電気負荷の電流制御装置であって、前記制御回路部は更に、制御定数校正手段、及び換算設定手段となる制御プログラムを包含する不揮発プログラムメモリと、不揮発データメモリとを備えたマイクロプロセッサと、前記電気負荷に直列接続された電流検出抵抗の両端電圧を増幅すると共に、前記電気負荷に対する負荷電流に比例した電流比例成分を主体とし、誤差成分を包含して発生する監視電圧を前記マイクロプロセッサに入力する増幅回路部と、前記電流制御装置の内部環境温度に対応した測定電圧を発生し、当該測定電圧を前記マイクロプロセッサに入力する温度検出回路と、目標負荷電流に対応した推定監視電圧を制御目標値とし、前記監視電圧を帰還値として前記開閉素子の通電を制御する帰還制御回路と、を備え、前記制御定数校正手段は、常温環境と高温環境の一方、又は両方の内部環境温度において、外部設置された校正用電流計による実負荷電流に基づいて前記監視電圧の電流比例成分に関する電流比例係数と誤差成分とを分離算出して、前記温度検出回路によって検出された実使用内部環境温度と、可変の目標負荷電流に対応した電流比例係数と誤差成分を補間算出するための演算算式、又はデータテーブルを前記不揮発データメモリに保存し、前記換算設定手段は、前記マイクロプロセッサによって決定される目標負荷電流と同じ電流が前記電気負荷に流れたと仮定した場合に、前記実使用内部環境温度に対応した前記電流比例係数と誤差成分に基づいて前記推定監視電圧を算出するものである。   According to a first aspect of the present invention, there is provided a current control device for an electric load, which is fed from a driving power source, a power feeding circuit unit in which a switching element, a current detection resistor, and an electric load are connected in series, and a target load for the electric load. A control circuit unit that controls an ON / OFF ratio of the switching element so that a current and a detected load current by the current detection resistor coincide with each other, wherein the control circuit unit includes: Further, a nonvolatile program memory including a control program serving as a control constant calibration unit and a conversion setting unit, a microprocessor having a nonvolatile data memory, and amplifies the voltage across the current detection resistor connected in series to the electrical load And a monitoring voltage generated mainly including a current proportional component proportional to the load current for the electric load and including an error component An amplification circuit unit that inputs to the processor, a temperature detection circuit that generates a measurement voltage corresponding to the internal environment temperature of the current control device, and inputs the measurement voltage to the microprocessor, and an estimated monitoring voltage that corresponds to the target load current And a feedback control circuit that controls the energization of the switching element using the monitoring voltage as a feedback value, and the control constant calibration means has an internal environment temperature of one or both of a normal temperature environment and a high temperature environment. In the actual use internal environment detected by the temperature detection circuit by separately calculating a current proportionality factor and an error component related to a current proportional component of the monitoring voltage based on an actual load current from an external calibration ammeter A calculation formula or data table for interpolating the temperature, the current proportionality coefficient corresponding to the variable target load current, and the error component, or a data table is stored in the nonvolatile data memory. The conversion setting means, when assuming that the same current as the target load current determined by the microprocessor flows to the electric load, the current proportional coefficient corresponding to the actual use internal environmental temperature and The estimated monitoring voltage is calculated based on the error component.

この発明の第2の発明による電気負荷の電流制御装置は、駆動電源から給電されると共に、開閉素子と電流検出抵抗と電気負荷とが直列接続された給電回路部と、前記電気負荷に対する目標負荷電流と前記電流検出抵抗による検出負荷電流とが一致する関係に前記開閉素子のON/OFF比率を制御する制御回路部と、を備えた電気負荷の電流制御装置であって、前記制御回路部は更に、制御定数校正手段、換算推定手段、及び帰還制御手段となる制御プログラムを包含する不揮発プログラムメモリと、不揮発データメモリとを備えたマイクロプロセッサと、前記電気負荷に直列接続された電流検出抵抗の両端電圧を増幅すると共に、前記電気負荷に対する負荷電流に比例した電流比例成分を主体とし、誤差成分を包含して発生する監視電圧を前記マイクロプロセッサに入力する増幅回路部と、前記電流制御装置の内部環境温度に対応した測定電圧を発生し、当該測定電圧を前記マイクロプロセッサに入力する温度検出回路と、を備え、前記制御定数校正手段は、常温環境と高温環境の一方、又は両方の内部環境温度において、外部設置された校正用電流計による実負荷電流に基づいて前記監視電圧の電流比例成分に関する電流比例係数と誤差成分とを分離算出して、前記温度検出回路によって検出された実使用内部環境温度と、可変の目標負荷電流に対応した電流比例係数と誤差成分を補間算出するための演算算式、又はデータテーブルを前記不揮発データメモリに保存し、前記換算推定手段は、前記監視電圧と前記実使用内部環境温度に対応した電流比例係数に基づいて推定負荷電流を算出するか、又は前記マイクロプロセッサによって決定される目標負荷電流と同じ電流が前記電気負荷に流れたと仮定した場合に、前記実使用内部環境温度に対応した推定監視電圧を算出し、前記帰還制御手段は、前記目標負荷電流を制御目標値とし、前記推定負荷電流を帰還値として前記開閉素子の通電デューティを制御するか、又は前記推定監視電圧を制御目標値として前記監視電圧を帰還値として前記開閉素子の通電デューティを制御するものである。   According to a second aspect of the present invention, there is provided a current control device for an electric load, wherein a power supply is supplied from a driving power source, and a power supply circuit unit in which an opening / closing element, a current detection resistor, and an electric load are connected in series, A control circuit unit that controls an ON / OFF ratio of the switching element so that a current and a detected load current by the current detection resistor coincide with each other, wherein the control circuit unit includes: Further, a nonvolatile program memory including a control program serving as a control constant calibration unit, a conversion estimation unit, and a feedback control unit, a microprocessor including a nonvolatile data memory, and a current detection resistor connected in series to the electrical load A monitoring voltage generated by amplifying the voltage at both ends, and mainly including a current proportional component proportional to the load current for the electric load, including an error component An amplification circuit unit that inputs to the microprocessor; and a temperature detection circuit that generates a measurement voltage corresponding to an internal environment temperature of the current control device and inputs the measurement voltage to the microprocessor, and the control constant calibration The means includes a current proportionality factor and an error component relating to the current proportional component of the monitoring voltage based on an actual load current by an externally installed ammeter for calibration at one or both of the normal temperature environment and the high temperature environment. A calculation formula or data table for performing interpolation calculation of the actual use internal environment temperature detected by the temperature detection circuit, the current proportionality coefficient corresponding to the variable target load current, and the error component is calculated as the non-volatile data. The conversion estimating means stores an estimated negative voltage based on a current proportional coefficient corresponding to the monitored voltage and the actual internal environment temperature. When it is assumed that the same current as the target load current determined by the microprocessor is flowing in the electric load, an estimated monitoring voltage corresponding to the actual use internal environment temperature is calculated, and the feedback The control means controls the energization duty of the switching element using the target load current as a control target value and the estimated load current as a feedback value, or uses the estimated monitoring voltage as a control target value and the monitoring voltage as a feedback value. It controls the energization duty of the switching element.

この発明の第1の発明による電気負荷の電流制御装置は、目標負荷電流に比例した設定信号を出力するマイクロプロセッサの外部に、負帰還制御用の比較偏差積分回路と電流検出抵抗を備えたものであって、製品の出荷段階で外部設置された校正用電流計を用いて電流制御特性の固体バラツキ変動、及び温度変動を補正する校正運転が行われ、当該校正運転は常温環境と高温環境の少なくとも一方において実施されて、制御要素の固体バラツキ変動と温度による特性変動と、自己発熱による電流検出抵抗の抵抗値の変動による誤差要因に基づいた校正定数を得るようになっている。   According to a first aspect of the present invention, there is provided a current control device for an electric load comprising a comparison deviation integrating circuit for negative feedback control and a current detection resistor outside a microprocessor for outputting a setting signal proportional to a target load current. A calibration operation is performed to correct the variation in the solid state of the current control characteristics and the temperature variation using an external calibration ammeter at the product shipment stage, and the calibration operation is performed in a normal temperature environment and a high temperature environment. Implemented in at least one of them, a calibration constant is obtained based on the error factor due to fluctuations in the solid variation of the control element, characteristic fluctuations due to temperature, and fluctuations in the resistance value of the current detection resistor due to self-heating.

従って、検出誤差の校正は検出誤差の発生要因別に行われ、しかも温度変動要因を加味して校正されているているので、様々な運転環境における電流制御装置の運転中において校正定数を的確に活用して、高精度な電流制御が行えると共に、簡易な外部校正設備によって手軽に校正運転が行える効果がある。   Therefore, calibration of detection error is performed for each cause of detection error, and it is calibrated taking temperature fluctuation factors into account, so the calibration constants can be used appropriately during operation of the current control device in various operating environments. Thus, highly accurate current control can be performed, and calibration operation can be easily performed with a simple external calibration facility.

また、この発明の第2の発明による電気負荷の電流制御装置は、目標負荷電流を設定し、負荷電流に比例した検出信号が入力されて、偏差信号電圧に応動したデューティのパルス出力を発生するマイクロプロセッサを備えたものであって、製品の出荷段階で外部設置された校正用電流計を用いて電流制御特性の固体バラツキ変動、及び温度変動を補正する校正運転が行われ、当該校正運転は常温環境と高温環境の少なくとも一方において実施されて、制御要素の固体バラツキ変動と温度による特性変動と、自己発熱による電流検出抵抗の抵抗値の変動による誤差要因に基づいた校正定数を得るようになっている。   According to a second aspect of the present invention, an electric load current control device sets a target load current, receives a detection signal proportional to the load current, and generates a pulse output having a duty corresponding to the deviation signal voltage. A calibration operation that includes a microprocessor and corrects for variations in current control characteristics and fluctuations in temperature using an external calibration ammeter at the product shipment stage. Performed in at least one of a normal temperature environment and a high temperature environment to obtain calibration constants based on error factors due to fluctuations in solids of control elements, characteristic fluctuations due to temperature, and fluctuations in resistance of current detection resistors due to self-heating. ing.

従って、検出誤差の校正は検出誤差の発生要因別に行われ、しかも温度変動要因を加味して校正されているているので、様々な運転環境における電流制御装置の運転中において校正定数を的確に活用して、高精度な電流制御が行えると共に、簡易な外部校正設備によって手軽に校正運転が行える効果がある。   Therefore, calibration of detection error is performed for each cause of detection error, and it is calibrated taking temperature fluctuation factors into account, so the calibration constants can be used appropriately during operation of the current control device in various operating environments. Thus, highly accurate current control can be performed, and calibration operation can be easily performed with a simple external calibration facility.

この発明の第1実施形態を示す全体回路図である。1 is an overall circuit diagram showing a first embodiment of the present invention. この発明の第1実施形態による校正運転用の動作フローチャートである。It is an operation | movement flowchart for the calibration driving | operation by 1st Embodiment of this invention. この発明の第1実施形態による校正運転用の動作フローチャートである3 is an operation flowchart for calibration operation according to the first embodiment of the present invention. この発明の第1実施形態による校正運転用の動作フローチャートである。It is an operation | movement flowchart for the calibration driving | operation by 1st Embodiment of this invention. この発明の第1実施形態による校正運転用の動作フローチャートである3 is an operation flowchart for calibration operation according to the first embodiment of the present invention. この発明の第1実施形態による校正運転用の動作フローチャートである3 is an operation flowchart for calibration operation according to the first embodiment of the present invention. この発明の第1実施形態による校正運転用の動作フローチャートである3 is an operation flowchart for calibration operation according to the first embodiment of the present invention. この発明の第1実施形態による校正定数のデータテーブルの枠組みを示した図である。It is the figure which showed the framework of the data table of the calibration constant by 1st Embodiment of this invention. この発明の第1実施形態による通常制御ルーチンの動作説明図である。It is operation | movement explanatory drawing of the normal control routine by 1st Embodiment of this invention. この発明の第1実施形態による割込制御ルーチンの動作説明図である。It is operation | movement explanatory drawing of the interruption control routine by 1st Embodiment of this invention. この発明の第2実施形態を示す全体回路図である。It is a whole circuit diagram which shows 2nd Embodiment of this invention. この発明の第2実施形態による校正運転用の動作フローチャートである。It is an operation | movement flowchart for the calibration driving | operation by 2nd Embodiment of this invention. この発明の第2実施形態による校正運転用の動作フローチャートである。It is an operation | movement flowchart for the calibration driving | operation by 2nd Embodiment of this invention. この発明の第2実施形態による校正運転用の動作フローチャートである。It is an operation | movement flowchart for the calibration driving | operation by 2nd Embodiment of this invention. この発明の第2実施形態による校正運転用の動作フローチャートである。It is an operation | movement flowchart for the calibration driving | operation by 2nd Embodiment of this invention. この発明の第2実施形態による校正運転用の動作フローチャートである。It is an operation | movement flowchart for the calibration driving | operation by 2nd Embodiment of this invention. この発明の第2実施形態による校正運転用の動作フローチャートである。It is an operation | movement flowchart for the calibration driving | operation by 2nd Embodiment of this invention. この発明の第2実施形態による校正定数のデータテーブルと電流検出の特性線図である。FIG. 10 is a calibration constant data table and current detection characteristic diagram according to the second embodiment of the present invention. この発明の第2実施形態による通常制御ルーチンの動作説明図である。It is operation | movement explanatory drawing of the normal control routine by 2nd Embodiment of this invention.

以下、添付の図面を参照して、この発明による電気負荷の電流制御装置について好適な実施の形態を説明する。なお、これらの実施の形態によりこの発明が限定されるものではない。   Preferred embodiments of a current control device for an electric load according to the present invention will be described below with reference to the accompanying drawings. Note that the present invention is not limited to these embodiments.

実施の形態1.
図1は、この発明の第1実施形態による電気負荷の電流制御装置を示す全体回路図である。図1において、電流制御装置100Aは、制御電源ユニット110から給電されるマイクロプロセッサ111Aを中心として、開閉回路部120、目標電流設定回路130、帰還制御回路を構成する比較偏差積分回路140、増幅回路部150、平滑回路160、温度検出回路170などの回路部によって構成され、図示しない密閉筐体に収納されている。
Embodiment 1 FIG.
FIG. 1 is an overall circuit diagram showing an electric load current control apparatus according to a first embodiment of the present invention. In FIG. 1, a current control device 100 </ b> A is centered on a microprocessor 111 </ b> A fed from a control power supply unit 110, and a switching circuit unit 120, a target current setting circuit 130, a comparison deviation integration circuit 140 constituting a feedback control circuit, and an amplification circuit Part 150, smoothing circuit 160, temperature detection circuit 170, and the like, and is housed in a sealed housing (not shown).

まず、電流制御装置100Aに接続される外部機器として、駆動電源101、ヒューズ102、電源スイッチ103によって構成された駆動電源回路が電源端子104Pと接地端子104N間に接続されている。各種アナログセンサであるアナログ入力群105aは、図示しないコネクタとインタフェース回路を介して後述のマイクロプロセッサ111Aのアナログ入力ポートAINに接続されている。また、センサスイッチや操作スイッチ等のスイッチ入力群105dは、図示しないコネクタとインタフェース回路を介してマイクロプロセッサ111Aのデジタル入力ポートDINに接続されている。   First, as an external device connected to the current control device 100A, a drive power supply circuit including a drive power supply 101, a fuse 102, and a power switch 103 is connected between a power supply terminal 104P and a ground terminal 104N. An analog input group 105a, which is various analog sensors, is connected to an analog input port AIN of a microprocessor 111A described later via a connector and an interface circuit (not shown). A switch input group 105d such as a sensor switch or an operation switch is connected to a digital input port DIN of the microprocessor 111A via a connector and an interface circuit (not shown).

アクチェータや表示機器等の電気負荷群106は、図示しないコネクタとインタフェース回路を介してマイクロプロセッサ111Aの出力ポートOUTに接続されている。電気負荷群106の中の一つである、例えばリニアソレノイド等の電流制御を必要とする電気負荷107は、出力端子108から給電されるようになっている。電気負荷群106の中の一つであり、異常報知手段である警報・表示器109は、マイクロプロセッサ111Aの異常報知出力DSPから駆動されるようになっている。   An electrical load group 106 such as an actuator or a display device is connected to an output port OUT of the microprocessor 111A via a connector and an interface circuit (not shown). An electric load 107 that requires current control, such as a linear solenoid, which is one of the electric load groups 106, is supplied with power from an output terminal 108. An alarm / display 109, which is one of the electrical load groups 106 and is an abnormality notification means, is driven from an abnormality notification output DSP of the microprocessor 111A.

なお、製品出荷前の校正運転に当たっては、外部ツール900がシリアルインタフェース回路116を介してマイクロプロセッサ111Aと接続され、電気負荷107に直列接続された校正用デジタル電流計901dの出力信号と、電源端子104Pに印加された駆動電源101の駆動電源電圧Vbを測定する校正用デジタル電圧計902dの出力信号と、電流制御装置100Aの内部の温度を推定する校正用デジタル温度計903dが、外部ツール900を介してマイクロプロセッサ111Aに供給され後述のRAMメモリ112に転送されるようになっている。   In the calibration operation before product shipment, the external tool 900 is connected to the microprocessor 111A via the serial interface circuit 116, the output signal of the calibration digital ammeter 901d connected in series to the electric load 107, and the power supply terminal The output signal of the calibration digital voltmeter 902d for measuring the drive power supply voltage Vb of the drive power supply 101 applied to 104P and the calibration digital thermometer 903d for estimating the internal temperature of the current control device 100A are connected to the external tool 900. And supplied to the microprocessor 111A via the RAM memory 112, which will be described later.

校正用デジタル温度計903dに接続される温度センサは、電流制御装置100Aの内部に設けられた温度検出回路170の近傍に設置されるのが理想的である。しかし、校正用デジタル温度計903dに接続される温度センサを電流制御装置100Aの外部近傍に設置した場合には、予め外部環境温度対内部環境温度特性を多数の実験データに基づいて測定しておいて、この実験測定データに基づいて、実際に測定された外部環境温度から内部環境温度を推定し、推定された内部環境温度をRAMメモリ112に換算書込みすることができる。また、温度検出回路170が予め部品レベルで校正されている場合には、校正用デジタル温度計903dを接続する必要はなく、所定の測定電圧対温度特性に基づいて電流制御装置100A内部の環境温度を知ることができる。   The temperature sensor connected to the calibration digital thermometer 903d is ideally installed in the vicinity of the temperature detection circuit 170 provided inside the current control device 100A. However, when a temperature sensor connected to the calibration digital thermometer 903d is installed near the outside of the current control device 100A, the external environment temperature vs. internal environment temperature characteristics are measured in advance based on a large number of experimental data. Based on the experimental measurement data, the internal environment temperature can be estimated from the actually measured external environment temperature, and the estimated internal environment temperature can be converted and written to the RAM memory 112. Further, when the temperature detection circuit 170 is calibrated in advance at the component level, it is not necessary to connect the calibration digital thermometer 903d, and the ambient temperature inside the current control device 100A based on a predetermined measured voltage vs. temperature characteristic. Can know.

電流制御装置100Aの内部の構成として、制御電源ユニット110は、例えばDC10〜16Vである駆動電源電圧Vbから、例えばDC5Vの安定化制御電源電圧Vccを発生して電流制御装置100A内部の各部に給電するようになっている。   As an internal configuration of the current control device 100A, the control power supply unit 110 generates a stabilized control power supply voltage Vcc of, for example, DC 5V from a drive power supply voltage Vb of, for example, DC 10 to 16V, and supplies power to each part in the current control device 100A. It is supposed to be.

マイクロプロセッサ111Aは、演算処理用のRAMメモリ112と、例えば電気的に一括消去して書込み・読出しが行える不揮発フラッシュメモリ等によるプログラムメモリ113Aと、1バイト単位で電気的に書込み・読出しが行える不揮発EEPROMメモリ等によるデータメモリ114Aと、多チャンネルAD変換器115と、シリアル通信用インタフェース回路116とで協働するように構成されている。   The microprocessor 111A includes a RAM memory 112 for arithmetic processing, a program memory 113A such as a non-volatile flash memory that can be erased electrically and written / read, and a non-volatile memory that can be electrically written / read in units of 1 byte. A data memory 114A such as an EEPROM memory, a multi-channel AD converter 115, and a serial communication interface circuit 116 are configured to cooperate with each other.

開閉回路部120は、例えばPNP接合形トランジスタである開閉素子121と、開閉素子121のベース回路に接続された駆動抵抗122とNPN形のトランジスタ123との直列回路と、開閉素子121のベース・エミッタ端子間に接続された第1の安定抵抗124と、トランジスタ123のベース・エミッタ端子間に接続された第2の安定抵抗125で構成されていて、開閉素子121の一端は電源端子104Pに接続され、他端は抵抗値がR1である電流検出抵抗126を介して出力端子108に接続されて電気負荷107に給電するようになっている。   The switch circuit unit 120 includes, for example, a switch circuit 121 that is a PNP junction transistor, a series circuit of a drive resistor 122 connected to the base circuit of the switch element 121 and an NPN transistor 123, and a base / emitter of the switch element 121. The switch is composed of a first stable resistor 124 connected between the terminals and a second stable resistor 125 connected between the base and emitter terminals of the transistor 123. One end of the switching element 121 is connected to the power supply terminal 104P. The other end is connected to the output terminal 108 via a current detection resistor 126 having a resistance value R1, and supplies power to the electric load 107.

転流ダイオード127は、電流検出抵抗126と誘導性負荷である電気負荷107との直列回路に対して並列接続されていて、開閉素子121が開路したときに電気負荷107の減衰電流が還流する極性に接続されている。   The commutation diode 127 is connected in parallel to the series circuit of the current detection resistor 126 and the electric load 107 which is an inductive load, and the polarity at which the attenuation current of the electric load 107 circulates when the switching element 121 is opened. It is connected to the.

目標電流設定回路130は、平滑抵抗131と平滑コンデンサ132によって構成されていて、マイクロプロセッサ111Aが発生するパルス幅変調制御出力PMWの出力信号を平滑して目標電圧Es=αVccを得る平滑回路となっている。但し、パルスデューティαは、パルス幅変調制御出力PWMが論理レベル「H」となって出力電圧として制御電源電圧Vccを発生している期間とパルス周期との比率である。なお、この目標電流設定回路130は、DA変換器に替わるアナログ変換手段として用いられていて、マイクロプロセッサ111Aのパルス列出力1点によってアナログ値としての目標電圧Esが得られるように構成されているもので、パルスデューティαと開閉素子121のON/OFF制御比率であるパルスデューティγとは直接的には一致するものではない。   The target current setting circuit 130 includes a smoothing resistor 131 and a smoothing capacitor 132, and is a smoothing circuit that smoothes the output signal of the pulse width modulation control output PMW generated by the microprocessor 111A to obtain the target voltage Es = αVcc. ing. However, the pulse duty α is a ratio between a period during which the pulse width modulation control output PWM is at the logic level “H” and the control power supply voltage Vcc is generated as an output voltage and the pulse cycle. The target current setting circuit 130 is used as analog conversion means in place of the DA converter, and is configured such that the target voltage Es as an analog value can be obtained by one pulse train output of the microprocessor 111A. Therefore, the pulse duty α and the pulse duty γ, which is the ON / OFF control ratio of the switching element 121, do not coincide directly.

比較偏差積分回路140は、比較器141、第1の入力抵抗142、第2の入力抵抗143、積分コンデンサ144、及びヒステリシス回路145によって構成されていて、上記目標電圧Esは、第1の入力抵抗142を介して比較器141の非反転入力に接続され、後述の監視電圧Efは、第2の入力抵抗143を介して比較器141の反転入力に接続され、積分コンデンサ144は、比較器141の出力端子と反転入力端子間に接続されて目標電圧Esと監視電圧Efとの偏差値に対する積分電圧出力が得られるように構成されている。   The comparison deviation integrating circuit 140 includes a comparator 141, a first input resistor 142, a second input resistor 143, an integrating capacitor 144, and a hysteresis circuit 145. The target voltage Es is a first input resistor. 142 is connected to the non-inverting input of the comparator 141, a monitoring voltage Ef described later is connected to the inverting input of the comparator 141 via the second input resistor 143, and the integrating capacitor 144 is connected to the comparator 141. Connected between the output terminal and the inverting input terminal, an integrated voltage output with respect to the deviation value between the target voltage Es and the monitoring voltage Ef is obtained.

ヒステリシス回路145は、比較器141の出力電圧が例えば3Vを超過したときに出力論理レベルが「H」となってトランジスタ123を通電駆動し、比較器141の出力電圧が例えば2.5V以下に低下したときに出力論理レベルが「L」に復帰してトランジスタ123を不導通にすることによって、開閉素子121を確実にON/OFF駆動する正帰還比較回路によって構成されている。なお、ヒステリシス回路145に替わって、マイクロプロセッサ111Aの制御出力信号PWMのパルス周期と同期した鋸歯状波信号生成回路の出力電圧と比較器141の出力電圧を比較して、その比較結果によってトランジスタ123の通電制御を行うようにすることも可能であり、この場合の開閉素子121の開閉周期はマイクロプロセッサ111の制御出力信号PWMのパルス周期と一致したものとなる。   The hysteresis circuit 145 drives the transistor 123 to be energized when the output voltage of the comparator 141 exceeds 3 V, for example, and the transistor 123 is energized, and the output voltage of the comparator 141 decreases to, for example, 2.5 V or less. In this case, the output logic level is returned to “L” and the transistor 123 is made non-conductive, so that the switching element 121 is reliably turned ON / OFF to constitute a positive feedback comparison circuit. Instead of the hysteresis circuit 145, the output voltage of the sawtooth wave signal generation circuit synchronized with the pulse period of the control output signal PWM of the microprocessor 111A is compared with the output voltage of the comparator 141, and the transistor 123 is determined according to the comparison result. In this case, the open / close cycle of the open / close element 121 coincides with the pulse cycle of the control output signal PWM of the microprocessor 111.

増幅回路部150は、駆動電源電圧Vbを電源電圧として動作する差動増幅器151と、抵抗値がR2である第3の入力抵抗152と、抵抗値がR3であって設計理論値としてはR2=R3である第4の入力抵抗153と、抵抗値がR4である分圧抵抗154と、抵抗値がR5であって設計理論値としてはR4=R5である負帰還抵抗155と、抵抗値がR6である第1のバイアス抵抗156と、抵抗値がR7であって設計理論値としてはR6=R7である第2のバイアス抵抗157と、バイアス補正回路を構成するバイアス電源158によって構成されている。   The amplification circuit unit 150 includes a differential amplifier 151 that operates using the drive power supply voltage Vb as a power supply voltage, a third input resistor 152 having a resistance value R2, a resistance value R3, and a design theoretical value R2 = A fourth input resistor 153 which is R3, a voltage dividing resistor 154 whose resistance value is R4, a negative feedback resistor 155 whose resistance value is R5 and whose design theoretical value is R4 = R5, and whose resistance value is R6 , A second bias resistor 157 whose resistance value is R7 and whose design theoretical value is R6 = R7, and a bias power source 158 constituting a bias correction circuit.

第3の入力抵抗152は、対地電位がV1となる電流検出抵抗126の正側端子と対地電位がE1となる差動増幅器151の非反転入力端子間に接続され、第4の入力抵抗153は、対地電位がV2となる電流検出抵抗126の負側端子と対地電位がE2となる差動増幅器151の反転入力端子間に接続されている。分圧抵抗154は、差動増幅器151の非反転入力端子と接地端子間に接続され、負帰還抵抗155は、対地電位がE0となる差動増幅器151の出力端子と反転入力端子間に接続されている。また、第1のバイアス抵抗156は、差動増幅器151の非反転入力端子とバイアス電源158との間に接続され、第2のバイアス抵抗157は、差動増幅器151の反転入力端子とバイアス電源158との間に接続されていて、バイアス電源158は電源端子104Pの入力電圧によって動作する基準電圧生成回路によって構成され、対地電位V0のバイアス電圧を発生するようになっている。   The third input resistor 152 is connected between the positive terminal of the current detection resistor 126 whose ground potential is V1 and the non-inverting input terminal of the differential amplifier 151 whose ground potential is E1, and the fourth input resistor 153 is Are connected between the negative terminal of the current detection resistor 126 whose ground potential is V2 and the inverting input terminal of the differential amplifier 151 whose ground potential is E2. The voltage dividing resistor 154 is connected between the non-inverting input terminal and the ground terminal of the differential amplifier 151, and the negative feedback resistor 155 is connected between the output terminal and the inverting input terminal of the differential amplifier 151 whose ground potential is E0. ing. The first bias resistor 156 is connected between the non-inverting input terminal of the differential amplifier 151 and the bias power supply 158, and the second bias resistor 157 is connected to the inverting input terminal of the differential amplifier 151 and the bias power supply 158. The bias power supply 158 is configured by a reference voltage generation circuit that operates by the input voltage of the power supply terminal 104P, and generates a bias voltage of the ground potential V0.

平滑回路160は、直列抵抗161、コンデンサ162、並列抵抗163、及び電圧制限ダイオード164によって構成されている。直列抵抗161は、差動増幅器151の出力端子とマイクロプロセッサ111Aの電圧監視入力端子Efとの間に接続され、コンデンサ162は、電圧監視入力端子Efと接地端子間に接続されている。また、並列抵抗163は、コンデンサ162に対して並列接続されており、電圧制限ダイオード164は電圧監視入力端子Efと制御電源ユニット110による制御電源電圧Vccの電源ラインに接続されている。   The smoothing circuit 160 includes a series resistor 161, a capacitor 162, a parallel resistor 163, and a voltage limiting diode 164. The series resistor 161 is connected between the output terminal of the differential amplifier 151 and the voltage monitoring input terminal Ef of the microprocessor 111A, and the capacitor 162 is connected between the voltage monitoring input terminal Ef and the ground terminal. The parallel resistor 163 is connected in parallel to the capacitor 162, and the voltage limiting diode 164 is connected to the voltage monitoring input terminal Ef and the power supply line of the control power supply voltage Vcc by the control power supply unit 110.

電流検出回路170は、温度検出素子171と直列抵抗172による直列回路に制御電源電圧Vccから給電し、温度検出素子171と直列抵抗172による分圧電圧を測定電圧Vtとしてマイクロプロセッサ111Aに入力するようになっている。   The current detection circuit 170 supplies power to the series circuit including the temperature detection element 171 and the series resistance 172 from the control power supply voltage Vcc, and inputs the divided voltage generated by the temperature detection element 171 and the series resistance 172 as the measurement voltage Vt to the microprocessor 111A. It has become.

なお、差動増幅器151の出力電圧E0は、マイクロプロセッサ111Aに入力される監視電圧Efの前段部の電圧になっており、前段部電圧E0を直列抵抗161と並列抵抗163で分圧した電圧が監視電圧Efとなっている。後述するように、前段部電圧E0は通常は電気負荷107に流れる負荷電流の大きさによってE0=0〜Vcc(=5V)の間で変化するが、短絡事故等の異常発生時にはE0=Vb(=10〜16V)まで上昇するものであり、このような異常発生時にマイクロプロセッサ111Aの入力端子に印加される電圧を制御電源電圧Vcc以下に制限するために電圧制限ダイオード164が接続されている。   The output voltage E0 of the differential amplifier 151 is the voltage at the front stage of the monitoring voltage Ef input to the microprocessor 111A, and the voltage obtained by dividing the front stage voltage E0 by the series resistor 161 and the parallel resistor 163 is The monitoring voltage Ef is set. As will be described later, the pre-stage voltage E0 usually varies between E0 = 0 and Vcc (= 5V) depending on the magnitude of the load current flowing through the electric load 107. However, when an abnormality such as a short circuit accident occurs, E0 = Vb ( = 10 to 16V), and a voltage limiting diode 164 is connected to limit the voltage applied to the input terminal of the microprocessor 111A to the control power supply voltage Vcc or lower when such an abnormality occurs.

平均電圧測定回路を構成する分圧抵抗191a、192aは、互いに直列接続されて電気負荷107に対して並列接続されていて、分圧抵抗192aの両端電圧が監視平均電圧Vaとして直列抵抗193を介してマイクロプロセッサ111Aに入力される。マイクロプロセッサ111Aの入力端子には平滑用コンデンサ194が接続されている。なお、図中点線で示されているように、電源電圧測定回路を構成する分圧抵抗191b、192bを、互いに直列接続して電源端子104pに印加される駆動電源電圧Vbを分圧し、電源監視電圧Vfとしてマイクロプロセッサ111Aに入力し、マイクロプロセッサ111A内で参考情報として活用できるようにすることもできる。   The voltage dividing resistors 191a and 192a constituting the average voltage measuring circuit are connected in series to each other and connected in parallel to the electric load 107, and the voltage across the voltage dividing resistor 192a is passed through the series resistor 193 as the monitored average voltage Va. To the microprocessor 111A. A smoothing capacitor 194 is connected to the input terminal of the microprocessor 111A. As shown by the dotted line in the figure, voltage dividing resistors 191b and 192b constituting the power supply voltage measuring circuit are connected in series with each other to divide the drive power supply voltage Vb applied to the power supply terminal 104p to monitor the power supply. The voltage Vf can be input to the microprocessor 111A so that it can be used as reference information in the microprocessor 111A.

以上のとおり構成された第1実施形態による電気負荷の電流制御装置において、開閉素子121のON時間をτon、OFF時間をτoff、開閉周期をτとすると、通電デューティγは次式で示される。
γ=τon/τ、(τ=τon+τoff) ・・・・(1)
In the current control device for an electrical load according to the first embodiment configured as described above, assuming that the ON time of the switching element 121 is τon, the OFF time is τoff, and the switching period is τ, the energization duty γ is expressed by the following equation.
γ = τon / τ, (τ = τon + τoff) (1)

一方、電気負荷107の温度変化に対応した最小抵抗Rminと最大抵抗Rmaxとの間で規格基準抵抗Rc=Rmin〜Rmaxを定め、駆動電源電圧Vbの変動範囲を最小値Vminと最大値Vmaxとしたときに、規格基準電流IrをIr=Vmin/Rcによって定義して、Rmin、Rc、Rmax、Vmin、Vmax等の固定定数は不揮発プログラムメモリ113A、又は不揮発データメモリ114A内に予め格納保存しておくようになっている。この場合、もしも電気負荷107の目標負荷電流がIsであって、電気負荷107の抵抗が規格基準抵抗Rcに合致しておれば、駆動電源電圧がVbであるときの通電デューティγ0は次式で示される。但し、電流検出抵抗126の抵抗値R1はR1<<Rminであって、無視できる値となっている。
γ0=(Is/Ir)×(Vmin/Vb)、Ir=Vmin/Rc ・・・・(2)
また、このときに電気負荷107に印加されている平均電圧Vaaは次式で算出される。
Vaa=γ0×Vb=Vmin×(Is/Ir)=Is×Rc、Rc
=Rmin〜Rmax・・・・(3)
On the other hand, the standard reference resistance Rc = Rmin to Rmax is determined between the minimum resistance Rmin and the maximum resistance Rmax corresponding to the temperature change of the electric load 107, and the fluctuation range of the drive power supply voltage Vb is set to the minimum value Vmin and the maximum value Vmax. Sometimes, the standard reference current Ir is defined by Ir = Vmin / Rc, and fixed constants such as Rmin, Rc, Rmax, Vmin, and Vmax are stored and stored in advance in the nonvolatile program memory 113A or the nonvolatile data memory 114A. It is like that. In this case, if the target load current of the electric load 107 is Is and the resistance of the electric load 107 matches the standard reference resistance Rc, the energization duty γ0 when the drive power supply voltage is Vb is given by Indicated. However, the resistance value R1 of the current detection resistor 126 is R1 << Rmin, which is a negligible value.
γ0 = (Is / Ir) × (Vmin / Vb), Ir = Vmin / Rc (2)
At this time, the average voltage Vaa applied to the electric load 107 is calculated by the following equation.
Vaa = γ0 × Vb = Vmin × (Is / Ir) = Is × Rc, Rc
= Rmin to Rmax (3)

次に、差動増幅器151関連の特性を明確にすると、非反転入力に流入しようとする電流の総和は略ゼロとなることより次式が成立する。
(V1−E1)/R2+(0−E1)/R4+(V0−E1)/R6=0
∴V1/R2+V0/R6=E1/R246 ・・・・(4)
但しR246=1/(1/R2+1/R4+1/R6)
Next, when the characteristics related to the differential amplifier 151 are clarified, the following equation is established because the sum of currents flowing into the non-inverting input is substantially zero.
(V1-E1) / R2 + (0-E1) / R4 + (V0-E1) / R6 = 0
∴V1 / R2 + V0 / R6 = E1 / R246 (4)
However, R246 = 1 / (1 / R2 + 1 / R4 + 1 / R6)

同様に差動増幅器151の反転入力に流入しようとする電流の総和は略ゼロとなることより次式が成立する。
(V2−E2)/R3+(E0−E2)/R5+(V0−E2)/R7=0
∴V2/R3+E0/R5+V0/R7=E2/R357 ・・・・(5)
但しR357=1/(1/R3+1/R5+1/R7)
Similarly, the following equation is established because the sum of the currents to flow into the inverting input of the differential amplifier 151 becomes substantially zero.
(V2-E2) / R3 + (E0-E2) / R5 + (V0-E2) / R7 = 0
∴V2 / R3 + E0 / R5 + V0 / R7 = E2 / R357 (5)
However, R357 = 1 / (1 / R3 + 1 / R5 + 1 / R7)

差動増幅器151の非反転入力の電位E1と反転入力の電位E2は略等しくなるので(4)式と(5)式によって以下のとおり出力電位E0が算出される。
R246×(V1/R2+V0/R6)=R357×(V2/R3+E0/R5+V0/R7)
∴(R246/R2)×V1−(R357/R3)×V2+[(R246/R6)−(R357/R7)]×V0=(R357/R5)×E0 ・・・・(6)
Since the non-inverting input potential E1 and the inverting input potential E2 of the differential amplifier 151 are substantially equal, the output potential E0 is calculated as follows using the equations (4) and (5).
R246 × (V1 / R2 + V0 / R6) = R357 × (V2 / R3 + E0 / R5 + V0 / R7)
∴ (R246 / R2) × V1− (R357 / R3) × V2 + [(R246 / R6) − (R357 / R7)] × V0 = (R357 / R5) × E0 (6)

ここで、電流検出抵抗126に流れる負荷電流をImとしたときには次式が成立する。
V2=V1−Im×R1 ・・・・(7)
従って、出力電圧E0は(6)式、(7)式を用いて次式で算出される。
E0=Kd×V1+Ki×Im+K0 ・・・・(8)
但し、Kd=(R246/R2−R357/R3)×(R5/R357)
=(R246/R357)×(R5/R2)−(R5/R3)
Ki=R1×(R357/R3)×(R5/R357)=R1×(R5/R3)
K0=[(R246/R6)−(R357/R7)]×(R5/R357)×V0
=[(R246/R357)×(R5/R6)−(R5/R7)]×V0
なお、R2≒R3、R4≒R5、R6≒R7であるから、R246≒R357となり、本来はKd≒0、K0≒0となるものである。
Here, when the load current flowing through the current detection resistor 126 is Im, the following equation is established.
V2 = V1-Im × R1 (7)
Therefore, the output voltage E0 is calculated by the following equation using the equations (6) and (7).
E0 = Kd × V1 + Ki × Im + K0 (8)
However, Kd = (R246 / R2-R357 / R3) × (R5 / R357)
= (R246 / R357) x (R5 / R2)-(R5 / R3)
Ki = R1 × (R357 / R3) × (R5 / R357) = R1 × (R5 / R3)
K0 = [(R246 / R6) − (R357 / R7)] × (R5 / R357) × V0
= [(R246 / R357) x (R5 / R6)-(R5 / R7)] x V0
Since R2≈R3, R4≈R5, and R6≈R7, R246≈R357, and originally Kd≈0 and K0≈0.

但し、微小負荷電流状態において差動増幅器151の出力電圧が負の値にならないように一部の抵抗は意図的に不一致にした設計が行われている。このように意図的な不平衡回路を構成するときには、例えば分圧抵抗154にその誤差比率に見合った微小な抵抗を直列接続しておけばよい。   However, some resistors are intentionally designed to be inconsistent so that the output voltage of the differential amplifier 151 does not become a negative value in a minute load current state. When an intentional unbalanced circuit is configured in this way, for example, a minute resistor corresponding to the error ratio may be connected in series to the voltage dividing resistor 154.

次に、並列抵抗163の抵抗値R163と直列抵抗161の抵抗値R161により分圧される監視電圧の平均値Efを算出すると、期間τonではV1=Vbであり、期間τoffではV1=−Vdとなるので次式で算出される。
Ef=[∫E0dt/τ]×[R163/(R163+R161)]
=[(Kd×Vb+Ki×Im+K0)×τon/τ+(−Kd×Vd+Ki×I
m+K0)×τoff/τ]×[R163/(R163+R161)]
∴Ef=A×(Vb+Vd)×γ+B×Im+C ・・・・(9)
但し、A=Kd×[R163/(R163+R161)]
B=Ki×[R163/(R163+R161)]
C=K0×[R163/(R163+R161)]
この場合の誤差成分は、ΔEf=A×(Vb+Vd)×γ+Cとなっている。
Next, when the average value Ef of the monitoring voltage divided by the resistance value R163 of the parallel resistor 163 and the resistance value R161 of the series resistor 161 is calculated, V1 = Vb in the period τon and V1 = −Vd in the period τoff. Therefore, it is calculated by the following formula.
Ef = [∫E0dt / τ] × [R163 / (R163 + R161)]
= [(Kd × Vb + Ki × Im + K0) × τon / τ + (− Kd × Vd + Ki × I
m + K0) × τoff / τ] × [R163 / (R163 + R161)]
∴Ef = A × (Vb + Vd) × γ + B × Im + C (9)
However, A = Kd × [R163 / (R163 + R161)]
B = Ki × [R163 / (R163 + R161)]
C = K0 × [R163 / (R163 + R161)]
The error component in this case is ΔEf = A × (Vb + Vd) × γ + C.

更に、分圧抵抗191a、192aの抵抗値をR191、R192として監視平均電圧Vaを算出すると、期間τonではV2≒Vbであり、期間τoffではV2≒−Vdとなるので次式で算出される。
Va=[Vb×τon/τ−Vd×τoff/τ]×G
=[(Vb+Vd)×γ−Vd]×G
≒(Vb+Vd)×γ×G ・・・・(10)
但し、G=R192/(R191+R192)
(9)式と(10)式により、監視電圧Efは次式によっても表現することができる。
Ef=D×Va+B×Im+C ・・・・(11)
但し、D=A/G=Kd×[R163/(R163+R161)]×(R191+R192)/R192
Further, when the monitored average voltage Va is calculated using the resistance values of the voltage dividing resistors 191a and 192a as R191 and R192, V2≈Vb in the period τon and V2≈−Vd in the period τoff.
Va = [Vb × τon / τ−Vd × τoff / τ] × G
= [(Vb + Vd) × γ−Vd] × G
≒ (Vb + Vd) x γ x G (10)
However, G = R192 / (R191 + R192)
From the equations (9) and (10), the monitoring voltage Ef can also be expressed by the following equation.
Ef = D × Va + B × Im + C (11)
However, D = A / G = Kd × [R163 / (R163 + R161)] × (R191 + R192) / R192

(9)式、(11)式における校正定数AとDは、監視電圧Efの誤差成分のうちの電圧比例係数となるもので、校正定数Bは電流比例係数、校正定数Cは誤差のオフセット成分となっている。この場合の誤差成分は、ΔEf=D×Va+Cとなっている。   The calibration constants A and D in the equations (9) and (11) are the voltage proportionality factors in the error component of the monitoring voltage Ef, the calibration constant B is the current proportionality factor, and the calibration constant C is the error offset component. It has become. The error component in this case is ΔEf = D × Va + C.

次に、第1実施形態による電気負荷の電流制御装置の動作について説明する。
図2は、第1実施形態による電気負荷の電流制御装置における校正運転用の動作フローチャートである。なお、図2における工程ブロック210a、工程ブロック210bの詳細は図3に示され、工程ブロック220a、工程ブロック220bの詳細は図4に示され、工程ブロック230a、工程ブロック230bの詳細は図5に示されている。また、工程ブロック240a、工程ブロック240bの詳細は図6に示され、工程ブロック250a、工程ブロック250bの詳細は図7に示されている。
Next, the operation of the electric load current control apparatus according to the first embodiment will be described.
FIG. 2 is an operation flowchart for the calibration operation in the electric load current control apparatus according to the first embodiment. The details of the process block 210a and the process block 210b in FIG. 2 are shown in FIG. 3, the details of the process block 220a and the process block 220b are shown in FIG. 4, and the details of the process block 230a and the process block 230b in FIG. It is shown. Details of the process block 240a and the process block 240b are shown in FIG. 6, and details of the process block 250a and the process block 250b are shown in FIG.

図2において、工程200はマイクロプロセッサ111Aの校正運転開始工程で、続く工程201は外部ツール900から校正運転指令を受信したかどうかを判定し、校正指令を受信すればYESの判定を行って工程202へ移行し、校正指令を受信していなければNOの判定を行って動作終了工程209へ移行するステップである。動作終了工程209では他の制御動作を行い、所定時間以内には再度開始工程200が活性化されるようになっている。   In FIG. 2, a process 200 is a calibration operation start process of the microprocessor 111A, and a subsequent process 201 determines whether or not a calibration operation command is received from the external tool 900. If a calibration command is received, a determination of YES is made. If the calibration command is not received, the process proceeds to 202, where NO is determined, and the operation is terminated. In the operation end step 209, another control operation is performed, and the start step 200 is activated again within a predetermined time.

工程200、工程201、工程209を循環しながら、やがて校正指令を受信すると工程202へ移行し、工程202では受信した校正指令が高温環境での校正運転指令であったときに、YESの判定を行って工程ブロック210aへ移行し、常温環境での校正運転指令であったときに、NOの判定を行って工程ブロック210bへ移行するようになっている。   When a calibration command is received in a cycle while circulating through step 200, step 201, and step 209, the process proceeds to step 202. In step 202, when the received calibration command is a calibration operation command in a high temperature environment, a determination of YES is made. The process proceeds to the process block 210a, and when it is a calibration operation command in a room temperature environment, NO is determined and the process proceeds to the process block 210b.

工程ブロック210a、工程ブロック210bの詳細を示す図3において、工程ブロック210a、工程ブロック210bの実行開始に伴ってサブルーチン開始工程210が活性化され、後述のサブルーチン復帰工程219に続いて図2の工程ブロック220a、工程ブロック220bへ移行するようになっている。   In FIG. 3 showing the details of the process block 210a and the process block 210b, the subroutine start process 210 is activated when the execution of the process block 210a and the process block 210b is started, and the process of FIG. 2 follows the subroutine return process 219 described later. The process proceeds to block 220a and process block 220b.

工程212は工程210に続いて実行され、外部ツール900が発信した第1の校正指令を受信したかどうかを判定する。そして、判定結果がYESであって受信したときには工程213へ移行し、未受信であるときには工程212へ復帰して第1の校正指令を受信するまで待機するようになっている。なお、第1の校正指令を発生するに当たっては、工程211によって事前に電流制御装置100Aに所定の駆動電源101を接続し、校正用電流計901d、校正用電圧計902d、校正用温度計903dを接続しておくようになっている。   Step 212 is performed subsequent to step 210 to determine whether the first calibration command transmitted by the external tool 900 has been received. When the determination result is YES and it is received, the process proceeds to step 213, and when it is not received, the process returns to step 212 and waits until the first calibration command is received. In order to generate the first calibration command, a predetermined drive power supply 101 is connected to the current control device 100A in advance in step 211, and a calibration ammeter 901d, a calibration voltmeter 902d, and a calibration thermometer 903d are connected. It is supposed to be connected.

工程213では温度検出回路170の測定電圧Vtを多チャンネルAD変換器115を介して読取り記憶し、続く工程214では校正用温度計903dから外部ツール900を介して入力された外部環境温度を読出し記憶する。   In step 213, the measured voltage Vt of the temperature detection circuit 170 is read and stored via the multi-channel AD converter 115, and in the subsequent step 214, the external environmental temperature input from the calibration thermometer 903d via the external tool 900 is read and stored. To do.

続く工程215ではパルス幅変調制御出力PWMのパルスデューティα=0にし、続く工程216ではこのときの監視電圧Efの値である誤差電圧Ef0を、例えばRAMメモリ112内の所定アドレスのメモリであるデータレジスタD10に転送してから復帰工程219へ移行する。   In the following step 215, the pulse duty α of the pulse width modulation control output PWM is set to 0, and in the subsequent step 216, the error voltage Ef0 which is the value of the monitoring voltage Ef at this time is converted into data, for example, a memory at a predetermined address in the RAM memory 112. After transferring to the register D10, the process proceeds to the return step 219.

続く工程ブロック220a、工程ブロック220bの詳細を示す図4において、工程ブロック220a、工程ブロック220bの実行開始に伴ってサブルーチン開始工程220が活性化され、後述のサブルーチン復帰工程229に続いて図2の工程ブロック230a、工程ブロック230bへ移行するようになっている。   In FIG. 4 showing the details of the subsequent process block 220a and process block 220b, the subroutine start process 220 is activated with the start of execution of the process block 220a and process block 220b, and the subroutine return process 229 described below is followed by the subroutine return process 229 of FIG. The process block 230a and the process block 230b are shifted to.

工程222は工程220に続いて実行され、外部ツール900が発信した第2の校正指令を受信したかどうかを判定する。そして、判定結果がYESであって受信したときには工程223へ移行し、未受信であるときには工程222へ復帰して第2の校正指令を受信するまで待機するようになっている。なお、第2の校正指令を発生するに当たっては、工程221によって事前に電流制御装置100Aに所定の駆動電源101を接続した状態で電気負荷107への接続回路を開放し、校正用電圧計902d、校正用温度計903dを接続しておくようになっている。   Step 222 is performed subsequent to step 220 and determines whether a second calibration command transmitted by the external tool 900 has been received. When the determination result is YES and it is received, the process proceeds to step 223, and when it is not received, the process returns to step 222 and waits until the second calibration command is received. In generating the second calibration command, the connection circuit to the electric load 107 is opened in a state where the predetermined drive power supply 101 is connected to the current control device 100A in advance in step 221, and the calibration voltmeter 902d, A calibration thermometer 903d is connected.

工程223ではパルス幅変調制御出力PWMのパルスデューティα=100%にし、続く工程224ではこのときの監視電圧Efの値である誤差電圧Ef1を、例えばRAMメモリ112内の所定アドレスのメモリであるデータレジスタD20に転送し、続く工程225ではこのときの監視平均電圧Vaの値をデータレジスタD21に転送する。続く工程226では校正用デジタル電圧計902dから外部ツール900を介して入力された駆動電源電圧Vbの値をデータレジスタD22に転送してから復帰工程229へ移行する。   In step 223, the pulse duty α of the pulse width modulation control output PWM is set to 100%, and in the subsequent step 224, the error voltage Ef1, which is the value of the monitoring voltage Ef at this time, is stored in, for example, data in a memory at a predetermined address in the RAM memory 112 In step 225, the value of the monitored average voltage Va at this time is transferred to the data register D21. In the subsequent step 226, the value of the drive power supply voltage Vb input from the calibration digital voltmeter 902d via the external tool 900 is transferred to the data register D22, and then the process proceeds to the return step 229.

続く工程ブロック230a、工程ブロック230bの詳細を示す図5において、工程ブロック230a、工程ブロック230bの実行開始に伴ってサブルーチン開始工程230が活性化され、後述のサブルーチン復帰工程239に続いて図2の工程ブロック240a、工程ブロック240bへ移行するようになっている。   In FIG. 5 showing the details of the subsequent process block 230a and process block 230b, the subroutine start process 230 is activated with the start of execution of the process block 230a and process block 230b, and the subroutine return process 239 described later is followed by the process shown in FIG. The process block 240a and the process block 240b are shifted to.

工程232は工程230に続いて実行され、外部ツール900が発信した第3の校正指令を受信したかどうかを判定する。そして、判定結果がYESであって受信したときには工程233へ移行し、未受信であるときには工程232へ復帰して第3の校正指令を受信するまで待機するようになっている。なお、第3の校正指令を発生するに当たっては、工程231によって事前に電流制御装置100Aに所定の駆動電源101を接続した状態で電気負荷107を接続し、校正用電流計901d、校正用電圧計902d、校正用温度計903dを接続しておくようになっている。   Step 232 is executed following step 230 to determine whether a third calibration command transmitted by the external tool 900 has been received. When the determination result is YES and it is received, the process proceeds to step 233, and when it is not received, the process returns to step 232 and waits until the third calibration command is received. In generating the third calibration command, the electric load 107 is connected in a state where the predetermined drive power source 101 is connected to the current control device 100A in advance in step 231, and the calibration ammeter 901d, the calibration voltmeter is connected. 902d and a calibration thermometer 903d are connected.

工程233ではパルス幅変調制御出力PWMのパルスデューティα=100%にし、続く工程234ではこのときの監視電圧Efの値である測定電圧Ef2を、例えばRAMメモリ112内の所定アドレスのメモリであるデータレジスタD30に転送し、続く工程235では校正用デジタル電流計901dから外部ツール900を介して入力された実負荷電流Immの値をデータレジスタD33に転送してから復帰工程239へ移行する。   In step 233, the pulse duty α of the pulse width modulation control output PWM is set to 100%, and in the subsequent step 234, the measured voltage Ef2, which is the value of the monitoring voltage Ef at this time, is stored in, for example, data in a memory at a predetermined address in the RAM memory 112. In step 235, the value of the actual load current Imm input from the calibration digital ammeter 901d through the external tool 900 is transferred to the data register D33, and then the process proceeds to the return step 239.

続く工程ブロック240a、工程ブロック240bの詳細を示す図6において、工程ブロック240a、工程ブロック240bの実行開始に伴ってサブルーチン開始工程240が活性化され、後述のサブルーチン復帰工程249に続いて図2の工程ブロック250a、工程ブロック250bへ移行するようになっている。   In FIG. 6 showing the details of the subsequent process block 240a and process block 240b, the subroutine start process 240 is activated with the start of execution of the process block 240a and process block 240b, and the subroutine return process 249 described later follows FIG. The process block 250a and the process block 250b are shifted to.

工程242は工程240に続いて実行され、外部ツール900が発信した第4の校正指令を受信したかどうかを判定する。そして、判定結果がYESであって受信したときには工程243へ移行し、未受信であるときには工程242へ復帰して第4の校正指令を受信するまで待機するようになっている。なお、第4の校正指令を発生するに当たっては、工程241によって校正指令1から3の発生が完了しているかどうかの確認を行うようになっている。   Step 242 is executed subsequent to step 240 to determine whether a fourth calibration command transmitted by the external tool 900 has been received. When the determination result is YES and it is received, the process proceeds to step 243. When it is not received, the process returns to step 242 and waits until the fourth calibration command is received. In generating the fourth calibration command, it is confirmed in step 241 whether or not the generation of calibration commands 1 to 3 has been completed.

工程243では工程225、工程226で転送記憶したデータレジスタの値によって平均電圧校正係数Kaを次式によって算出し、これをデータレジスタD41に転送書込みする。
Ka=Vb/Va=D22/D21→D41
In step 243, the average voltage calibration coefficient Ka is calculated by the following equation based on the value of the data register transferred and stored in step 225 and step 226, and this is transferred and written to the data register D41.
Ka = Vb / Va = D22 / D21 → D41

続く工程244では工程216で転送保存された誤差電圧Ef0の値をオフセット成分CとしてデータレジスタD42に転送書込みする。   In subsequent step 244, the value of error voltage Ef0 transferred and stored in step 216 is transferred and written to data register D42 as offset component C.

続く工程245では工程224、工程216、工程225で転送記憶したデータレジスタの値によって、監視電圧Efの誤差成分の電圧比例係数Dを次式によって算出し、これをデータレジスタD43に転送書込みする。
D=(Ef1−Ef0)/Va=(D20−D10)/D21→D43
In the following step 245, the voltage proportional coefficient D of the error component of the monitoring voltage Ef is calculated by the following equation based on the value of the data register transferred and stored in step 224, step 216, and step 225, and this is transferred and written to the data register D43.
D = (Ef1-Ef0) / Va = (D20-D10) / D21 → D43

続く工程246では工程234、工程224、工程235で転送記憶したデータレジスタの値によって、監視電圧Efの電流比例係数Bを次式によって算出し、これをデータレジスタD44に転送書込みしてから復帰工程249へ移行する。
B=(Ef2−Ef1)/Imm=(D30−D20)/D33→D44
In the following step 246, the current proportionality coefficient B of the monitoring voltage Ef is calculated by the following equation based on the value of the data register transferred and stored in the step 234, step 224, and step 235, and this is transferred to the data register D44 and written back. 249.
B = (Ef2−Ef1) / Imm = (D30−D20) / D33 → D44

なお、工程243は平均電圧校正手段、工程245は電圧比例係数演算手段、工程246は電流比例係数演算手段となっており、工程243から工程246を主体とする工程ブロック240a、工程ブロック240bは校正係数演算手段240Aを構成している。   Step 243 is an average voltage calibrating unit, step 245 is a voltage proportionality factor calculating unit, step 246 is a current proportionality factor calculating unit, and step block 240a and step block 240b mainly including step 243 to step 246 are calibrated. The coefficient calculation means 240A is configured.

続く工程ブロック250a、工程ブロック250bの詳細を示す図7において、工程ブロック250a、工程ブロック250bの実行開始に伴ってサブルーチン開始工程250が活性化され、後述のサブルーチン復帰工程259に続いて図2の工程203a、工程203bへ移行するようになっている。   In FIG. 7 showing the details of the subsequent process block 250a and process block 250b, the subroutine start process 250 is activated with the start of execution of the process block 250a and process block 250b, and the subroutine return process 259 described later is followed by FIG. The process proceeds to Step 203a and Step 203b.

工程252は工程250に続いて実行され、外部ツール900が発信した第5の校正指令を受信したかどうかを判定する。そして、判定結果がYESであって受信したときには工程253へ移行し、未受信であるときには工程252へ復帰して第5の校正指令を受信するまで待機するようになっている。なお、第5の校正指令を発生するに当たっては、工程251によって事前に電流制御装置100Aに所定の駆動電源101を接続した状態で電気負荷107を接続し、校正用電流計901d、校正用電圧計902d、校正用温度計903dを接続しておくようになっている。また、後述の工程253〜工程258では、目標負荷電流Isの最大値から最小値の間にかけて等比配分された複数の測定電流Isi(i=0、1、2、・・・n)を設定し、各測定電流Isiに対応した電流比例係数Biを算出するものである。なお、工程253〜工程256で構成された工程ブロック257は線形性校正手段となるものである。   Step 252 is executed following step 250 to determine whether a fifth calibration command transmitted by the external tool 900 has been received. When the determination result is YES and it is received, the process proceeds to step 253. When it is not received, the process returns to step 252 and waits until a fifth calibration command is received. In generating the fifth calibration command, the electric load 107 is connected in a state where the predetermined drive power source 101 is connected to the current control device 100A in advance in step 251, and the calibration ammeter 901d, the calibration voltmeter is connected. 902d and a calibration thermometer 903d are connected. In steps 253 to 258, which will be described later, a plurality of measurement currents Isi (i = 0, 1, 2,... N) equally distributed from the maximum value to the minimum value of the target load current Is are set. The current proportionality factor Bi corresponding to each measurement current Isi is calculated. In addition, the process block 257 comprised by the process 253-the process 256 becomes a linearity calibration means.

工程253では測定番号iとして例えば初期値i=0を設定し、続く工程254では所定の目標電流Isiを設定する。続く工程255では校正用電流計901dによる実負荷電流Immiを読出し、続く工程256では電流比例係数の補正値Biとして、Bi=B×Isi/Immiを算出記憶する。なお、ここで適用される電流比例係数Bは工程ブロック240a、工程ブロック240bで算出された値である。   In step 253, for example, an initial value i = 0 is set as the measurement number i, and in a subsequent step 254, a predetermined target current Isi is set. In the subsequent step 255, the actual load current Immi is read by the calibration ammeter 901d, and in the subsequent step 256, Bi = B × Isi / Immi is calculated and stored as the correction value Bi of the current proportionality coefficient. The current proportionality coefficient B applied here is a value calculated in the process block 240a and the process block 240b.

続く工程258では測定完了したかどうかを判定して、未完了であればNOの判定を行って工程253へ移行して測定番号iをi+1に増加させ、測定完了であればYESの判定を行って復帰工程259へ移行する。   In the following step 258, it is determined whether or not the measurement is completed. If it is not completed, NO is determined and the process proceeds to step 253 to increase the measurement number i to i + 1. If the measurement is completed, YES is determined. Then, the process proceeds to the return step 259.

工程203a、工程203bは工程ブロック250a、工程250bに続いて実行され、工程ブロック210a、工程ブロック210bから工程ブロック250a、工程ブロック250bで算出された各校正定数を不揮発データメモリ114Aへ転送保存し、図示しない転送確認照合を行ったうえで工程204a、工程204bへ移行する。なお、工程203a、工程203bによって構成された工程ブロック203Aは転送保存手段となるものである。   Process 203a and process 203b are executed following process block 250a and process 250b, and each calibration constant calculated in process block 250a and process block 250b is transferred and stored in nonvolatile data memory 114A from process block 210a and process block 210b. After performing transfer confirmation collation (not shown), the process proceeds to step 204a and step 204b. The process block 203A constituted by the processes 203a and 203b serves as a transfer storage unit.

工程204aでは高温校正完了フラグをセットしてから工程205へ移行し、工程204bでは常温校正完了フラグをセットしてから工程205へ移行する。工程205では工程204a、工程204bによるフラグの状態を監視することにより、常温、高温での校正が完了しておればYESの判定を行って工程207へ移行し、両方の校正が完了していなければNOの判定を行って工程206へ移行するようになっている。   In step 204a, the high temperature calibration completion flag is set and then the process proceeds to step 205. In step 204b, the normal temperature calibration completion flag is set and then the process proceeds to step 205. In step 205, by monitoring the flag states in steps 204a and 204b, if calibration at normal temperature and high temperature is completed, a determination of YES is made and the process proceeds to step 207, and both calibrations must be completed. If NO, the process proceeds to step 206.

工程206では外部ツール900に対する未完了メッセージ指令を発生して動作終了工程209へ移行する。   In step 206, an incomplete message command for the external tool 900 is generated, and the operation shifts to the operation end step 209.

工程207では工程ブロック210a、工程ブロック210b内の工程214で測定された外部環境温度を参照して内部環境温度を推定し、温度検出回路170の測定電圧Vt対内部環境温度Tの特性を校正記憶する。なお、マイクロプロセッサ111Aの不揮発プログラムメモリ113Aには、校正用温度計903dで測定された外部環境温度に対応する内部環境温度Tの関係を予め実験測定して得られる変換データが格納されていて、この場合の内部環境温度は高精度な校正用の温度センサと温度計によって測定されたものである。従って、図3の工程214で測定された外部環境温度とプログラムメモリ113Aに格納されている変換データにより内部環境温度Tが推定され、工程213で測定された温度検出回路170の測定電圧Vtと内部環境温度Tとの対応が検出されることになる。   In step 207, the internal environment temperature is estimated with reference to the external environment temperature measured in step 214 in the process block 210a and the process block 210b, and the characteristic of the measured voltage Vt of the temperature detection circuit 170 versus the internal environment temperature T is calibrated and stored. To do. The nonvolatile program memory 113A of the microprocessor 111A stores conversion data obtained by experimentally measuring in advance the relationship of the internal environment temperature T corresponding to the external environment temperature measured by the calibration thermometer 903d. The internal environment temperature in this case is measured by a highly accurate temperature sensor and thermometer for calibration. Therefore, the internal environmental temperature T is estimated from the external environmental temperature measured in step 214 of FIG. 3 and the conversion data stored in the program memory 113A, and the measured voltage Vt of the temperature detection circuit 170 measured in step 213 and the internal A correspondence with the environmental temperature T is detected.

温度検出回路170の検出温度校正手段となる工程207は、温度校正を常温環境のみで行うのか、常温環境と高温環境の2点で行うのかによって具体的な処理は異なったものとなる。
常温環境のみで温度校正を行う場合には、適用された温度検出回路170における所定の温度対測定電圧の特性データ、例えば標準的な温度対測定電圧の特性データが、近似算式、又はデータテーブルとして不揮発プログラムメモリ113Aに予め格納されていて、校正された常温環境温度を基準として校正現品の測定電圧Vt1と標準的な特性データから算出される測定電圧Vt2との比率によって校正定数が算出されることになる。
校正運転が常温環境と高温環境の両方の温度環境において行なわれる場合には、温度検出回路170の測定電圧Vtのデジタル変換値と、既知の内部環境温度、又は外部設置された校正用温度計903dによる推定内部環境温度を対比して、実際の測定電圧Vtから実使用環境温度Tを算出する補間演算算式、又はデータテーブルを算出することになる。
The process 207 serving as the detection temperature calibration means of the temperature detection circuit 170 differs in specific processing depending on whether the temperature calibration is performed only in the normal temperature environment or in the normal temperature environment and the high temperature environment.
When temperature calibration is performed only in a room temperature environment, predetermined temperature-to-measurement voltage characteristic data in the applied temperature detection circuit 170, for example, standard temperature-to-measurement voltage characteristic data is used as an approximate expression or data table. The calibration constant is calculated by the ratio between the measured voltage Vt1 of the actual calibration and the measured voltage Vt2 calculated from the standard characteristic data, which is stored in advance in the nonvolatile program memory 113A and is calibrated at the normal ambient temperature. become.
When the calibration operation is performed in both a normal temperature environment and a high temperature environment, the digital conversion value of the measurement voltage Vt of the temperature detection circuit 170 and a known internal environment temperature, or an externally installed calibration thermometer 903d. In comparison with the estimated internal environment temperature, the interpolation calculation formula for calculating the actual use environment temperature T from the actual measurement voltage Vt, or the data table is calculated.

制御定数校正手段となる工程208は、工程ブロック210a、工程ブロック210bから工程ブロック250a、工程ブロック250bに至る校正運転の結果として、電流比例係数Bと誤差成分の電圧比例係数Dとオフセット成分Cについて、図8で後述するようなデータテーブルを作成してから動作終了工程209へ移行するようになっている。   The step 208 serving as the control constant calibration means includes a current proportional coefficient B, a voltage proportional coefficient D of an error component, and an offset component C as a result of the calibration operation from the process block 210a and the process block 210b to the process block 250a and the process block 250b. Then, after creating a data table as will be described later with reference to FIG.

次に、校正定数のデータテーブルの枠組みを示した図8(A)〜図8(C)について説明する。
図8(A)は、温度検出回路170の出力電圧Vta〜Vteに対応した内部環境温度Ta〜Teを求めるデータテーブルで、このデータテーブルは、部品レベルで校正済の高精度な温度検出回路170の温度対測定電圧特性からそのまま抽出するか、又は比較的低精度な温度検出回路170が使用されているときには、例えば常温環境における内部環境温度Tbにおいて実測された現品の測定電圧Vtbの値と、適用された温度検出回路170の標準的な温度対測定電圧特性を基にして他の内部環境温度Ta、Tc、Td、Teにおける測定電圧Vta、Vtc、Vtd、Vteを比例算出したものとなっている。より望ましくは、常温環境Tbと高温環境Tdにおける2点の内部環境温度において実測された測定電圧VtbとVtdを基にして、内部環境温度Ta、Tc、Teにおける測定電圧Vta、Vtc、Vteを統計的に補間、延長して推定算出することである。
Next, FIG. 8A to FIG. 8C showing the framework of the calibration constant data table will be described.
FIG. 8A is a data table for obtaining internal environment temperatures Ta to Te corresponding to the output voltages Vta to Vte of the temperature detection circuit 170. This data table is a highly accurate temperature detection circuit 170 that has been calibrated at the component level. When the temperature detection circuit 170 having a relatively low accuracy is used as it is, the value of the actual measurement voltage Vtb actually measured at the internal environment temperature Tb in a normal temperature environment, Based on the standard temperature-to-measurement voltage characteristics of the applied temperature detection circuit 170, the measurement voltages Vta, Vtc, Vtd, and Vte at other internal environmental temperatures Ta, Tc, Td, and Te are proportionally calculated. Yes. More preferably, the measured voltages Vta, Vtc, and Vte at the internal environmental temperatures Ta, Tc, and Te are statistically calculated based on the measured voltages Vtb and Vtd that are actually measured at two internal environmental temperatures in the normal temperature environment Tb and the high temperature environment Td. This is to estimate and calculate by interpolation and extension.

図8(B)は、誤差成分のオフセット成分Cに関するデータテーブルの枠組みを示しており、オフセット成分Ca〜Ceは複数分割された実用環境温度帯域Ta〜Teごとに異なるデータが適用されるようになっている。内部環境温度Tb、Tdにおけるオフセット成分Cb、Cdは、工程ブロック210a、工程ブロック210bで実測された値を基にして、工程ブロック240a、工程ブロック240bで算出された値であり、その他の内部環境温度Ta、Tc、Teにおけるオフセット成分Ca、Cc、Ceは、実測されたオフセット成分Cb、Cdから統計的に補間、延長して推定算出したものとなっている。   FIG. 8B shows the framework of the data table related to the offset component C of the error component, and different data is applied to the offset components Ca to Ce for each of the divided practical environment temperature bands Ta to Te. It has become. The offset components Cb and Cd at the internal environment temperatures Tb and Td are values calculated in the process block 240a and the process block 240b based on values actually measured in the process block 210a and the process block 210b. Offset components Ca, Cc, and Ce at temperatures Ta, Tc, and Te are estimated and calculated by statistically interpolating and extending from actually measured offset components Cb and Cd.

図8(C)は、誤差成分の電圧比例係数Dに関するデータテーブルの枠組みを示しており、電圧比例係数Da〜Deは複数分割された実用環境温度帯域Ta〜Teごとに異なるデータが適用されるようになっている。内部環境温度Tb、Tdにおける電圧比例係数Db、Ddは、工程ブロック220a、工程ブロック220bで実測された値を基にして、工程ブロック240a、工程ブロック240bで算出された値であり、その他の内部環境温度Ta、Tc、Teにおける電圧比例係数Da、Dc、Deは、実測された電圧比例係数Db、Ddから統計的に補間、延長して推定算出したものとなっている。   FIG. 8C shows the framework of the data table related to the voltage proportional coefficient D of the error component, and the voltage proportional coefficients Da to De are applied with different data for each of the divided practical environment temperature bands Ta to Te. It is like that. The voltage proportional coefficients Db and Dd at the internal environmental temperatures Tb and Td are values calculated in the process block 240a and the process block 240b based on the values actually measured in the process block 220a and the process block 220b. The voltage proportional coefficients Da, Dc, De at the environmental temperatures Ta, Tc, Te are estimated and calculated by statistically interpolating and extending from the actually measured voltage proportional coefficients Db, Dd.

図8(D)は、電流比例係数Bに関するデータテーブルの枠組みを示しており、電流比例係数Bは、複数分割された実用環境温度帯域Ta〜Teと、設定電流帯域Is0〜Is5とに対応して異なるデータが適用されるようになっている。内部環境温度Tb、Tdにおける電流比例係数Bbi、Bdiは、工程ブロック230a、工程ブロック230bで実測された値を基にして、工程ブロック240a、工程ブロック240bで算出され、更に工程ブロック250a、工程ブロック250bによって測定された値が付加されたもので、その他の内部環境温度Ta、Tc、Teにおける電流比例成分Bai、Bci、Beiは、実測された電流比例係数Bbi、Bdiから統計的に補間、延長して推定算出したものとなっている。   FIG. 8D shows a data table framework for the current proportionality factor B. The current proportionality factor B corresponds to the divided practical environment temperature bands Ta to Te and the set current bands Is0 to Is5. Different data is applied. The current proportional coefficients Bbi and Bdi at the internal environmental temperatures Tb and Td are calculated in the process block 240a and the process block 240b based on the values actually measured in the process block 230a and the process block 230b, and further in the process block 250a and the process block. The values measured by 250b are added, and the current proportional components Bai, Bci, Bei at other internal environment temperatures Ta, Tc, Te are statistically interpolated and extended from the measured current proportional coefficients Bbi, Bdi. Thus, it is estimated and calculated.

なお、高精度温度検出回路170に関する温度対測定電圧特性、又は低精度温度検出回路170に関する標準的な温度対測定電圧特性については不揮発プログラムメモリ113Aに予め格納しておくようになっており、電流制御装置100Aとしての校正運転によって算出される各種校正データは、不揮発プログラムメモリ113A、又は不揮発データメモリ114Aに格納されるようになっている。   Note that the temperature-to-measurement voltage characteristic related to the high-accuracy temperature detection circuit 170 or the standard temperature-to-measurement voltage characteristic related to the low-accuracy temperature detection circuit 170 is stored in advance in the nonvolatile program memory 113A. Various calibration data calculated by the calibration operation as the control device 100A is stored in the nonvolatile program memory 113A or the nonvolatile data memory 114A.

次に、図9のフローチャートにより、第1実施形態による電気負荷の電流制御装置における通常制御ルーチンの動作について説明する。
図9において、工程300はマイクロプロセッサ111Aが実行する多数の制御フローの中の一つとして、目標負荷電流の設定値を出力するためのパルス幅変調制御に関する動作開始工程で、続く工程301は図示しない他の制御フローの中で決定された目標負荷電流Isの値を読出す工程である。また、続く工程302は以下の制御フローが運転開始後の初回動作であるかどうかを図示しないフラグの動作状態によって判定する工程で、工程302が初回動作の判定であったときには工程303へ移行し、初回動作ではない判定であったときには工程310へ移行するようになっている。
Next, the operation of the normal control routine in the electric load current control apparatus according to the first embodiment will be described with reference to the flowchart of FIG.
In FIG. 9, a process 300 is one of many control flows executed by the microprocessor 111A, and is an operation start process related to pulse width modulation control for outputting a set value of a target load current. This is a step of reading the value of the target load current Is determined in another control flow that is not performed. The subsequent step 302 is a step of determining whether or not the following control flow is the first operation after the start of operation based on the operation state of a flag (not shown). If the step 302 is a determination of the first operation, the process proceeds to step 303. If it is determined that the operation is not the first operation, the process proceeds to step 310.

工程303では工程301で読出設定された目標負荷電流Isの値と、不揮発プログラムメモリ113A、又は不揮発データメモリ114Aに予め格納されている固定定数としての規格基準抵抗Rc=Rmin〜Rmaxの値を用いて、前述の(3)式によって平均電圧Vaa=Is×Rcを算出する工程である。   In step 303, the value of the target load current Is read and set in step 301 and the standard reference resistance Rc = Rmin to Rmax as a fixed constant stored in advance in the nonvolatile program memory 113A or the nonvolatile data memory 114A are used. In this step, the average voltage Vaa = Is × Rc is calculated by the above-described equation (3).

続く工程304は目標負荷電流Isに対応した推定監視電圧Esを算出する工程で、この工程では前述の(11)式における負荷電流Imに替わって、工程301で設定された目標負荷電流Isが流れたと仮定したときの監視電圧Efの値を推定監視電圧Esとして次式により算出するのであって、定数D、B、Cは校正定数として不揮発データメモリ114Aに格納されているデータが読出し使用され、平均電圧Vaとしては工程303で算出された平均電圧Vaaの値が使用されるようになっている。
Es=D×Vaa+B×Is+C
The subsequent step 304 is a step of calculating the estimated monitoring voltage Es corresponding to the target load current Is. In this step, the target load current Is set in step 301 flows instead of the load current Im in the above-described equation (11). Assuming that the value of the monitoring voltage Ef is calculated as the estimated monitoring voltage Es, the constants D, B, and C are read and used as data stored in the nonvolatile data memory 114A as calibration constants. As the average voltage Va, the value of the average voltage Vaa calculated in step 303 is used.
Es = D × Vaa + B × Is + C

続く工程305はパルス幅変調制御出力PWMの出力電圧が論理レベル「H」となって制御電源電圧Vccとなっている期間とパルス周期との比率であるパルスデューティαとして、α=Es/Vccを算出する工程で、ここで使用される推定監視電圧Esは工程304で算出されたもので、制御電源電圧Vccの値は不揮発プログラムメモリ113A、又は不揮発データメモリ114Aに予め格納されている固定定数を読出し使用するようになっている。   In the subsequent step 305, α = Es / Vcc is set as a pulse duty α which is a ratio between a period in which the output voltage of the pulse width modulation control output PWM is the logic level “H” and the control power supply voltage Vcc and the pulse period. In the calculation step, the estimated monitoring voltage Es used here is the one calculated in step 304. The value of the control power supply voltage Vcc is a fixed constant stored in advance in the nonvolatile program memory 113A or the nonvolatile data memory 114A. It is designed to be used for reading.

続く工程306は工程305で算出されたパルスデューティαの値に所定倍率Nをかけてその整数値分をRAMメモリ112における特定のアドレスメモリであるデータレジスタD1に格納すると共に、N−D1の値をデータレジスタD2に格納する工程である。所定倍率Nとしては例えばN=1000である。   In the subsequent step 306, the value of the pulse duty α calculated in step 305 is multiplied by a predetermined magnification N, and the integer value is stored in the data register D1, which is a specific address memory in the RAM memory 112, and the value of N−D1. Is stored in the data register D2. As the predetermined magnification N, for example, N = 1000.

工程ブロック307は工程303から工程306によって構成された初期設定手段で、工程304は仮換算推定手段となっている。   The process block 307 is an initial setting means constituted by the processes 303 to 306, and the process 304 is a provisional conversion estimating means.

工程310は工程302の判定が初回動作ではなかったとき、又は工程306に続いて実行され、温度検出回路170の測定電圧Vtを読み出して、図8(A)のデータテーブルから内部環境温度Tを算出する。続く工程311では図8(B)、図8(C)のデータテーブルから現在の環境温度に対応したオフセット成分Cと電圧比例係数Dとを読出し、
続く工程312では図8(D)のデータテーブルから現在の環境温度と工程301で設定された目標負荷電流Isに対応した電流比例係数Bを算出する。なお、工程310、工程311、工程312によって構成された工程ブロック314によって校正定数確定手段が構成されている。
Step 310 is executed when the determination in step 302 is not the initial operation or subsequent to step 306, reads the measured voltage Vt of the temperature detection circuit 170, and calculates the internal environment temperature T from the data table of FIG. calculate. In the subsequent step 311, the offset component C and the voltage proportional coefficient D corresponding to the current environmental temperature are read from the data tables in FIGS. 8B and 8C,
In subsequent step 312, a current proportionality coefficient B corresponding to the current environmental temperature and the target load current Is set in step 301 is calculated from the data table of FIG. Note that the calibration constant determining means is configured by the process block 314 configured by the process 310, the process 311 and the process 312.

続く工程315はマイクロプロセッサ111Aに入力されている監視平均電圧Vaの値を読出す工程となっている。   A subsequent step 315 is a step of reading the value of the monitored average voltage Va input to the microprocessor 111A.

続く工程316は目標負荷電流Isに対応した推定監視電圧Esを算出する工程で、この工程では前述の(11)式における負荷電流Imに替わって、工程301で設定された目標負荷電流Isが流れたと仮定したときの監視電圧Efの値を推定監視電圧Esとして次式により算出する。定数D、B、Cは工程ブロック314で算出された値が使用され、平均電圧Vaとしては工程315で読み出された実際の平均電圧Vaの値が使用されるようになっている。
Es=D×Va+B×Is+C
The subsequent step 316 is a step of calculating the estimated monitoring voltage Es corresponding to the target load current Is. In this step, the target load current Is set in step 301 flows instead of the load current Im in the above-described equation (11). Assuming that the value of the monitoring voltage Ef is assumed, the estimated monitoring voltage Es is calculated by the following equation. As the constants D, B, and C, the values calculated in the process block 314 are used, and the actual average voltage Va read in the process 315 is used as the average voltage Va.
Es = D × Va + B × Is + C

続く工程317と工程318は工程305、工程306と同様にパルスデューティαの算出とデータレジスタD1、D2への書込みを行う工程である。ここで使用される推定監視電圧Esの値は工程315で読み出された平均電圧Vaの値によって変化するようになっている。   Subsequent Step 317 and Step 318 are steps of calculating the pulse duty α and writing to the data registers D1 and D2 as in Steps 305 and 306. The value of the estimated monitoring voltage Es used here changes according to the value of the average voltage Va read in step 315.

工程ブロック319は工程316、工程317、工程318で構成された換算設定手段となっていて、目標負荷電流Isに対応した監視電圧Efの推定値Esを目標電圧として設定し、目標電圧Esに対応したパルスデューティαのパルス幅変調制御出力PWMを発生するものとなっている。   The process block 319 is a conversion setting means constituted by the process 316, the process 317, and the process 318. The estimated value Es of the monitoring voltage Ef corresponding to the target load current Is is set as the target voltage and corresponds to the target voltage Es. The pulse width modulation control output PWM having the pulse duty α is generated.

続く工程320は負荷電流の最小値Imin=Ka×Va/Rmaxを算出する工程で、平均電圧校正係数Kaや電気負荷107の最大抵抗Rmaxは不揮発データメモリ114A、又は不揮発プログラムメモリ113Aに格納されている値が使用され、平均電圧Vaは工程315で読み出された平均電圧Vaの現在値となっていて、Ka×Vaの値は電気負荷107に印加されている平均電圧そのもの値に相当している。   The subsequent step 320 is a step of calculating the minimum load current value Imin = Ka × Va / Rmax. The average voltage calibration coefficient Ka and the maximum resistance Rmax of the electric load 107 are stored in the nonvolatile data memory 114A or the nonvolatile program memory 113A. The average voltage Va is the current value of the average voltage Va read in step 315, and the value of Ka × Va corresponds to the average voltage itself applied to the electric load 107. Yes.

続く工程321は負荷電流の最小値Imax=Ka×Va/Rminを算出する工程で、平均電圧校正係数Kaや電気負荷107の最小抵抗Rminは不揮発データメモリ114A、又は不揮発プログラムメモリ113Aに格納されている値が使用され、平均電圧Vaは工程315で読み出された平均電圧Vaの現在値となっていて、Ka×Vaの値は電気負荷107に印加されている平均電圧そのもの値に相当している。   The subsequent step 321 is a step of calculating the minimum value Imax = Ka × Va / Rmin of the load current, and the average voltage calibration coefficient Ka and the minimum resistance Rmin of the electric load 107 are stored in the nonvolatile data memory 114A or the nonvolatile program memory 113A. The average voltage Va is the current value of the average voltage Va read in step 315, and the value of Ka × Va corresponds to the average voltage itself applied to the electric load 107. Yes.

続く工程322は現在の監視電圧Efの値から前述の(11)式に基づいて負荷電流Imを算出する工程である。   A subsequent step 322 is a step of calculating the load current Im from the current monitoring voltage Ef based on the above-described equation (11).

続く工程323は過大電流状態検出手段となる工程で、この工程323では工程322で算出た負荷電流Imが工程321で算出された最大電流Imaxよりも大きいときにはYESの判定を行って過大電流状態であると判定して工程325へ移行し、工程322で算出た負荷電流Imが工程321算出された最大電流Imaxよりも大きくないときにはNOの判定を行って過大電流状態ではないと判定して工程324へ移行するようになっている。   Subsequent step 323 is a step serving as an overcurrent state detection means. In this step 323, when the load current Im calculated in step 322 is larger than the maximum current Imax calculated in step 321, a determination of YES is made and an excessive current state is detected. If the load current Im calculated in step 322 is not larger than the maximum current Imax calculated in step 321, NO is determined to determine that the current is not an excessive current state. It has come to move to.

工程324は過小電流状態検出手段となる工程で、この工程では工程322で算出た負荷電流Imが工程320で算出された最小電流Iminよりも小さいときにはYESの判定を行って過小電流状態であると判定して工程325へ移行し、工程322で算出た負荷電流Imが工程320算出された最小電流Iminよりも小さくないときにはNOの判定を行って過小電流状態ではないと判定して動作終了工程330へ移行するようになっている。   Step 324 is a step for detecting an undercurrent state. In this step, when the load current Im calculated in step 322 is smaller than the minimum current Imin calculated in step 320, a YES determination is made and an undercurrent state is assumed. If the load current Im calculated in step 322 is not smaller than the minimum current Imin calculated in step 320, NO is determined to determine that the current is not an undercurrent state, and the operation end step 330 is performed. It has come to move to.

工程325は工程323が過大電流状態を判定したとき、又は工程324が過小電流状態を判定したときに実行されて、パルスデューティαを決定するためのデータレジスタD1の値を0にして、マイクロプロセッサ111Aのパルス幅変調制御出力PWMを停止すると共に、異常報知出力DSPを発生して警報・表示器109を作動させるようになっている。   Step 325 is executed when step 323 determines an overcurrent state, or when step 324 determines an undercurrent state, sets the value of the data register D1 for determining the pulse duty α to 0, and the microprocessor The pulse width modulation control output PWM of 111A is stopped and an abnormality notification output DSP is generated to activate the alarm / display 109.

工程324の判定が過小電流状態ではなかったとき、又は工程325に続いて移行する動作終了工程330は、待機工程となっていて、マイクロプロセッサ111Aが他の制御フローの実行を行った後に再度動作開始工程300が活性化されて、工程300から工程330に至る制御フローが繰り返し実行されるようになっている。   When the determination in step 324 is not an under-current state, or the operation end step 330 that transitions to step 325 is a standby step, the operation is performed again after the microprocessor 111A executes another control flow. The start process 300 is activated, and the control flow from the process 300 to the process 330 is repeatedly executed.

以上のとおりに構成された制御フローについて全体概要を説明する。
まず、換算設定手段319で設定される目標電圧Esは、目標電流Isが実際に流れたとしたときの監視電圧Efに相当した値となっていて、本来は目標電流Isと実際に流れる負荷電流Imとは一致するように比較偏差積分回路140による負帰還制御がマイクロプロセッサ111Aの外部で実行されている。しかし、監視電圧Efには負荷電流Imに比例した主成分のほかに、電気負荷107に印加される平均電圧Vaに比例した誤差成分が含まれている。
An overview of the control flow configured as described above will be described.
First, the target voltage Es set by the conversion setting means 319 is a value corresponding to the monitoring voltage Ef when the target current Is actually flows, and originally the target current Is and the load current Im that actually flows. The negative feedback control by the comparison deviation integration circuit 140 is executed outside the microprocessor 111A so as to match. However, the monitoring voltage Ef includes an error component proportional to the average voltage Va applied to the electric load 107 in addition to the main component proportional to the load current Im.

電気負荷107の抵抗値は環境温度や負荷自体の温度上昇によって変化するので、所定の負荷電流Imを得るための平均電圧Vaも変化し、従って監視電圧Efの誤差成分も変化することになる。   Since the resistance value of the electric load 107 changes depending on the environmental temperature and the temperature rise of the load itself, the average voltage Va for obtaining the predetermined load current Im also changes, and therefore the error component of the monitoring voltage Ef also changes.

換算設定手段319は、電気負荷107の抵抗変動に伴って変化する平均電圧Vaの値をフィードバックして目標電圧Esの中に反映するようにしたものであって、比較偏差積分回路140による負帰還制御を一次帰還制御とすれば、換算設定手段319は二次帰還制御となっている。   The conversion setting means 319 feeds back the value of the average voltage Va that changes with the resistance fluctuation of the electric load 107 and reflects it in the target voltage Es. If the control is primary feedback control, the conversion setting means 319 is secondary feedback control.

初期設定手段307は、まだ平均電圧Vaが測定されていない運転開始時において、規格基準電流Irと目標負荷電流Isとを対比することによって平均電圧Vaaを推定したうえで仮の目標電圧Esを設定する手段となっている。   The initial setting means 307 estimates the average voltage Vaa by comparing the standard reference current Ir and the target load current Is at the start of operation when the average voltage Va has not yet been measured, and sets the temporary target voltage Es. It has become a means to do.

次に、過大電流状態検出手段323が過大電流状態の判定を行うときは、電気負荷107の正負の口出線間の短絡である負荷短絡、巻き線間の層間短絡、出力端子108に接続された正相配線と接地端子104Nに接続された接地線、又は車体や大地等に対するの地絡事故等が原因となるものであって、例えば負荷短絡によって電流検出抵抗126に過大電流が流れると、差動増幅器151の出力電圧E0は通常は0〜Vcc(例えば5V)の範囲にあるものが、突然に駆動電源電圧Vb(例えば10〜16V)まで増加する。しかし、監視電圧Efは制御電源電圧Vcc以上の値にならないように、電圧制限ダイオード164によって制限されているので、負荷電流Imが過大になったことを検出することはできない。   Next, when the overcurrent state detection means 323 determines the overcurrent state, the load is short-circuited between the positive and negative output wires of the electric load 107, the interlayer short-circuit between the windings, and the output terminal 108. Cause a ground fault connected to the positive phase wiring and the ground terminal 104N or the vehicle body, the ground, etc. The output voltage E0 of the differential amplifier 151 is normally in the range of 0 to Vcc (for example, 5V), but suddenly increases to the drive power supply voltage Vb (for example, 10 to 16V). However, since the monitoring voltage Ef is limited by the voltage limiting diode 164 so as not to become a value equal to or higher than the control power supply voltage Vcc, it cannot be detected that the load current Im is excessive.

しかしながら、負荷短絡によって平均電圧Vaが低下するので、工程321における最大電流Imaxの値が急減し、工程323によって過大電流状態の判定がなされるようになっている。   However, since the average voltage Va decreases due to the load short circuit, the value of the maximum current Imax in the step 321 decreases rapidly, and the overcurrent state is determined in the step 323.

一方、過小電流状態検出手段324が過小電流状態の判定を行うときは、電気負荷107や配線の断線事故の場合と、正相配線の天絡事故の場合とがある。特に、正相配線の天絡事故において、出力端子108と電源端子104Pが完全短絡した場合には電流検出抵抗126に流れる電流はゼロになるので、目標電流と実際の電流との間に乖離が発生して異常検出を簡単に行うことができる。   On the other hand, when the undercurrent state detection means 324 determines the undercurrent state, there are a case where the electrical load 107 and the wiring are disconnected and a case where the normal phase wiring is in a power fault. In particular, when the output terminal 108 and the power supply terminal 104P are completely short-circuited due to a power fault of the positive phase wiring, the current flowing through the current detection resistor 126 becomes zero, so there is a discrepancy between the target current and the actual current. Occurrence and abnormality detection can be easily performed.

同様に、断線事故が発生したときにも電流検出抵抗126に流れる電流はゼロになるので、目標電流と実際の電流との間に乖離が発生して異常検出を簡単に行うことができる。しかし、出力端子108から電気負荷107に至る正相配線の遠隔位置と電源端子104Pから駆動電源101に至る電源配線の遠隔位置との間で天絡事故が発生した場合には、配線抵抗R0と電流検出抵抗126の抵抗値R1との並列回路が構成され、電流検出抵抗126に流れる電流がR0/(R0+R1)の比率で減少することになる。   Similarly, when a disconnection accident occurs, the current flowing through the current detection resistor 126 becomes zero, so that a divergence occurs between the target current and the actual current, so that the abnormality detection can be easily performed. However, if a power fault occurs between the remote position of the positive phase wiring from the output terminal 108 to the electric load 107 and the remote position of the power supply wiring from the power supply terminal 104P to the drive power supply 101, the wiring resistance R0 A parallel circuit with the resistance value R1 of the current detection resistor 126 is configured, and the current flowing through the current detection resistor 126 decreases at a ratio of R0 / (R0 + R1).

このような場合には、単に目標電流と実際の電流とを比較するだけでは異常状態を検出することができない状態が発生する。例えば、抵抗R0による天絡事故が発生している状態で、開閉素子121を完全導通させたときに電流検出抵抗126に分流する電流をIxとしたとき、目標電流がIx以下の値であれば目標値と実測値とが合致するように帰還制御が可能であって、目標値と実測値との間で乖離が発生することはなく、従って異常検出は行えないことになる。   In such a case, an abnormal state cannot be detected simply by comparing the target current and the actual current. For example, if the current shunted to the current detection resistor 126 when the switching element 121 is completely turned on in a state where a power fault has occurred due to the resistor R0 is Ix, the target current is a value equal to or less than Ix. Feedback control is possible so that the target value matches the actual measurement value, and no divergence occurs between the target value and the actual measurement value. Therefore, abnormality detection cannot be performed.

しかし、工程323や工程324における比較基準は電気負荷107に印加されている現在の平均電圧Vaを監視して、電気負荷107の最大抵抗、最小抵抗から算出される最小電流、最大電流を推定し、これが電流検出抵抗126に流れているかどうかを判定するようになっているので、高精度な異常判定を行うことができるものである。なお、工程323や工程324では負荷電流Imと最大負荷電流Imax、最小負荷電流Iminとを比較したが、工程321、工程320で算出された最大負荷電流Imax、最小負荷電流Iminを差動増幅回路部150の出力電圧に換算した最大監視電圧Emax、最小監視電圧Eminに変換し、監視電圧Efと最大監視電圧Emax、最小監視電圧Eminとを比較するようにしても良い。要は監視電圧Efと監視平均電圧Vaとの相対関係が異常に乖離していないことを判定すればよいものである。   However, the comparison reference in step 323 and step 324 is to monitor the current average voltage Va applied to the electric load 107 and estimate the maximum current, the minimum current calculated from the minimum resistance, and the maximum current. Since it is determined whether or not this is flowing through the current detection resistor 126, a highly accurate abnormality determination can be performed. In steps 323 and 324, the load current Im is compared with the maximum load current Imax and the minimum load current Imin. However, the maximum load current Imax and the minimum load current Imin calculated in the steps 321 and 320 are used as a differential amplifier circuit. The maximum monitoring voltage Emax and the minimum monitoring voltage Emin converted into the output voltage of the unit 150 may be converted to compare the monitoring voltage Ef with the maximum monitoring voltage Emax and the minimum monitoring voltage Emin. In short, it is only necessary to determine that the relative relationship between the monitoring voltage Ef and the monitoring average voltage Va does not deviate abnormally.

次に、図10のフローチャートにより、第1実施形態による電気負荷の電流制御装置における割込制御ルーチンの動作について説明する。
図10において、工程400はマイクロプロセッサ111Aの割込み動作開始工程で、この開始工程は略一定時間間隔で活性化されるようになっている。
Next, the operation of the interrupt control routine in the electric load current control apparatus according to the first embodiment will be described with reference to the flowchart of FIG.
In FIG. 10, step 400 is an interrupt operation start step of the microprocessor 111A, and this start step is activated at substantially constant time intervals.

工程401は開始工程400に続いて実行され、図9の工程325による異常報知出力が発生しているかどうかを監視して、異常発生していなければNOの判定を行って工程402へ移行し、異常発生していればYESの判定を行って工程406へ移行するようになっている。   Step 401 is executed following the start step 400, and it is monitored whether or not an abnormality notification output in step 325 of FIG. 9 has occurred. If no abnormality has occurred, NO is determined and the process proceeds to step 402. If an abnormality has occurred, a determination of YES is made and the process proceeds to step 406.

工程402はマイクロプロセッサ111Aの運転開始後の初回動作であるかどうかを判定し、初回動作であれば工程403へ移行し、初回動作でなければ工程407へ移行するようになっている。工程403ではパルス幅変調制御出力PWMの論理レベルを「L」にし、続く工程404では割込み回数計数用減算カウンタの現在値レジスタD0の内容を1に設定し、続く工程405では出力フラグF0をONにセットし、続いて工程407へ移行するようになっている。   In step 402, it is determined whether or not the operation is an initial operation after the start of the operation of the microprocessor 111A. If the operation is an initial operation, the process proceeds to step 403. If not, the process proceeds to step 407. In step 403, the logic level of the pulse width modulation control output PWM is set to “L”. In the subsequent step 404, the content of the current value register D0 of the interruption count counting subtraction counter is set to 1, and in the subsequent step 405, the output flag F0 is turned ON. Then, the process proceeds to step 407.

出力停止・報知手段となる工程406ではパルス幅変調制御出力PWMの論理を「L」にし、出力フラグF0をリセットすると共に、異常報知出力DSPを発生して警報・表示器109を作動させ、続いて工程408へ移行して、工程408では割込み開始した時点における元の制御工程へ復帰するようになっている。   In step 406 serving as output stop / notification means, the logic of the pulse width modulation control output PWM is set to “L”, the output flag F0 is reset, the abnormality notification output DSP is generated, the alarm / display 109 is activated, In step 408, the process returns to the original control process at the time when the interruption was started.

工程407では工程405、又は後述の工程423で出力フラグF0がセットされているかどうかを判定し、セットされていれば工程410へ移行し、セットされていなければ工程420へ移行するようになっている。   In Step 407, it is determined whether or not the output flag F0 is set in Step 405 or Step 423 described later. If it is set, the process proceeds to Step 410, and if it is not set, the process proceeds to Step 420. Yes.

工程410は割込み回数を計数する減算カウンタの現在値から1カウント分の減算を行う工程で、続く工程411では現在値レジスタD0の値が依然としてゼロを超過しているかどうかを判定し、ゼロを超過しているときには工程408へ移行し、現在値がゼロになると工程412へ移行するようになっている。   Step 410 is a step of subtracting one count from the current value of the subtraction counter that counts the number of interruptions. In the following step 411, it is determined whether or not the value of the current value register D0 still exceeds zero. When the current value is zero, the process proceeds to step 408, and when the current value becomes zero, the process proceeds to step 412.

工程412では図9の工程306、又は工程318で設定されたデータレジスタD2の値を現在値レジスタD0に転送し、続く工程413では工程405、又は後述の工程423でセットされていた出力フラグF0をリセットし、続く工程414ではパルス幅変調制御出力PWMの論理レベルを「L」にし、工程408へ移行するようになっている。   In step 412, the value of the data register D 2 set in step 306 or 318 in FIG. 9 is transferred to the current value register D 0, and in the subsequent step 413, the output flag F 0 set in step 405 or step 423 described later. In step 414, the logic level of the pulse width modulation control output PWM is set to “L”, and the process proceeds to step 408.

工程420は割込み回数を計数する減算カウンタの現在値から1カウント分の減算を行う工程で、続く工程421では現在値レジスタD0の値が依然としてゼロを超過しているかどうかを判定し、ゼロを超過しているときには工程408へ移行し、現在値がゼロになると工程422へ移行するようになっている。   Step 420 is a step of subtracting one count from the current value of the subtraction counter that counts the number of interruptions. In the following step 421, it is determined whether or not the value of the current value register D0 still exceeds zero. If the current value is zero, the process proceeds to step 422.

工程422では図9の工程306、又は工程318で設定されたデータレジスタD1の値を現在値レジスタD0に転送し、続く工程423では工程413でリセットされていた出力フラグF0をセットし、続く工程424ではパルス幅変調制御出力PWMの論理レベルを「H」にし、工程408へ移行するようになっている。   In step 422, the value of the data register D1 set in step 306 or 318 of FIG. 9 is transferred to the current value register D0, and in the subsequent step 423, the output flag F0 that has been reset in step 413 is set. At 424, the logic level of the pulse width modulation control output PWM is set to “H”, and the process proceeds to step 408.

工程410から工程414によって構成された工程ブロック415は、工程423によって出力フラグF0がセットされてから工程413によってリセットされるまでの動作工程であって、その期間は工程422で設定されたデータレジスタD1の値に依存しており、これは制御出力PWMの論理レベルが「H」となっている期間に相当している。   The process block 415 constituted by the process 410 to the process 414 is an operation process from the output flag F0 being set by the process 423 to being reset by the process 413, and the period is the data register set in the process 422. It depends on the value of D1, which corresponds to a period during which the logic level of the control output PWM is “H”.

また、工程420から工程424によって構成された工程ブロック425は、工程413によって出力フラグF0がリセットされてから工程423によってセットされるまでの動作工程である。その期間は工程412で設定されたデータレジスタD2の値に依存しており、これは制御出力PWMの論理レベルが「L」となっている期間に相当している。   In addition, the process block 425 configured by the process 420 to the process 424 is an operation process from when the output flag F0 is reset by the process 413 until it is set by the process 423. The period depends on the value of the data register D2 set in Step 412. This corresponds to a period in which the logic level of the control output PWM is “L”.

以上詳説したように、第1実施形態による電気負荷の電流制御装置は、駆動電源101からから給電され、開閉素子121と電流検出抵抗126と電気負荷107とが直列接続された給電回路部と、電気負荷107に対する目標負荷電流Isと電流検出抵抗126による検出負荷電流Imとが一致する関係に開閉素子121のON/OFF比率を制御する制御回路部とを備えた電気負荷の電流制御装置100Aであって、前記制御回路部は更に、不揮発プログラムメモリ113Aと不揮発データメモリ114Aと演算処理用RAMメモリ112と多チャンネルAD変換器115とを備えたマイクロプロセッサ111Aと、増幅回路部150と、温度検出回路170と、比較偏差積分回路140とを備え、不揮発プログラムメモリ113Aは更に、制御定数校正手段208と、換算設定手段319となる制御プログラムを包含している。   As described in detail above, the current control device for an electrical load according to the first embodiment is fed from the drive power supply 101 and includes a power supply circuit unit in which the switching element 121, the current detection resistor 126, and the electrical load 107 are connected in series. In the electric load current control device 100A, the control circuit unit controls the ON / OFF ratio of the switching element 121 so that the target load current Is for the electric load 107 and the detection load current Im detected by the current detection resistor 126 coincide with each other. The control circuit unit further includes a microprocessor 111A including a non-volatile program memory 113A, a non-volatile data memory 114A, an arithmetic processing RAM memory 112, and a multi-channel AD converter 115, an amplifier circuit unit 150, and a temperature detection unit. Circuit 170 and comparison deviation integration circuit 140, and nonvolatile program memory 113A is further updated. A control constant calibration unit 208, which includes a control program to be converted setting means 319.

増幅回路部150は、電気負荷107に直列接続された電流検出抵抗126の両端電圧を増幅し、電気負荷107に対する負荷電流Imに比例した電流比例成分を主体として、誤差成分ΔEfを包含した監視電圧Efを発生し、校正監視情報としてマイクロプロセッサ111Aに入力する。また、温度検出回路170は、電流制御装置100Aの内部環境温度T(=Ta〜Te)に対応した測定電圧Vt(=Vta〜Vte)を発生して、当該測定電圧Vtは多チャンネルAD変換器115を介してマイクロプロセッサ111Aに入力される。   The amplification circuit unit 150 amplifies the voltage across the current detection resistor 126 connected in series to the electric load 107, and mainly includes a current proportional component proportional to the load current Im for the electric load 107, and includes a monitoring voltage including an error component ΔEf. Ef is generated and input to the microprocessor 111A as calibration monitoring information. The temperature detection circuit 170 generates a measurement voltage Vt (= Vta to Vte) corresponding to the internal environment temperature T (= Ta to Te) of the current control device 100A, and the measurement voltage Vt is a multi-channel AD converter. The data is input to the microprocessor 111A via 115.

制御定数校正手段208は、常温環境と高温環境の一方、又は両方の内部環境湿度T(=Tb、Td)において、外部設置された校正用電流計901dによる実負荷電流Immに基づいて監視電圧Efの電流比例成分に関する電流比例係数B(=Bb、Bd)と誤差成分ΔEf(=ΔEfb、ΔEfd)とを算出して、温度検出回路170によって検出された実使用内部環境温度T(=Ta〜Te)と、可変の目標負荷電流Isi(i=0、1、・・・n)に対応した電流比例係数Bi(=Bai〜Bei)と誤差成分ΔEf(=ΔEfa〜ΔEfe)を補間算出する演算算式、又はデータテーブルを不揮発データメモリ114Aに保存する。   The control constant calibration unit 208 is configured to monitor the monitoring voltage Ef based on the actual load current Imm from the calibration ammeter 901d installed externally in one or both of the internal environmental humidity T (= Tb, Td). A current proportional coefficient B (= Bb, Bd) and an error component ΔEf (= ΔEfb, ΔEfd) are calculated for the current proportional component of the actual use internal environment temperature T (= Ta to Te) detected by the temperature detection circuit 170. ) And a current proportionality factor Bi (= Bai to Bei) corresponding to the variable target load current Isi (i = 0, 1,... N) and an error component ΔEf (= ΔEfa to ΔEfe). Alternatively, the data table is stored in the nonvolatile data memory 114A.

換算設定手段319は、マイクロプロセッサ111Aによって決定される目標負荷電流Isと同じ電流が電気負荷107に流れたと仮定した場合に、実使用内部環境温度Tに対応した前記電流比例係数と誤差成分に基づいて推定監視電圧Esを算出する。   The conversion setting means 319 is based on the current proportional coefficient and the error component corresponding to the actual use internal environment temperature T, assuming that the same current as the target load current Is determined by the microprocessor 111A flows to the electric load 107. Thus, the estimated monitoring voltage Es is calculated.

比較偏差積分回路140は、目標負荷電流Isに対応した推定監視電圧Esを制御目標値とし、監視電圧Efを帰還値として開閉素子121の通電を制御する。   The comparison deviation integration circuit 140 controls the energization of the switching element 121 using the estimated monitoring voltage Es corresponding to the target load current Is as a control target value and the monitoring voltage Ef as a feedback value.

以上のように、第1実施形態による電気負荷の電流制御装置は、目標負荷電流に比例した設定信号を出力するマイクロプロセッサ111Aの外部に、負帰還制御用の比較偏差積分回路140と電流検出抵抗126を備えたものであって、製品の出荷段階で外部設置された校正用電流計を用いて電流制御特性の固体バラツキ変動、及び温度変動を補正する校正運転が行われ、当該校正運転は常温環境と高温環境の少なくとも一方において実施されて、制御要素の固体バラツキ変動と温度による特性変動、及び自己発熱による電流検出抵抗126の抵抗値の変動による誤差要因に基づいた校正定数を得る。従って、検出誤差の校正は検出誤差の発生要因別に行われ、しかも温度変動要因を加味して校正されているので、様々な運転環境における電流制御装置の運転中において校正定数を的確に活用して、高精度な電流制御が行えると共に、簡易な外部校正設備によって手軽に校正運転が行える特徴がある。   As described above, the electric load current control device according to the first embodiment has a negative feedback control comparison deviation integration circuit 140 and a current detection resistor outside the microprocessor 111A that outputs a setting signal proportional to the target load current. 126, and a calibration operation is performed to correct fluctuations in solids of current control characteristics and temperature fluctuations using a calibration ammeter installed externally at the product shipment stage, and the calibration operation is performed at room temperature. It is implemented in at least one of an environment and a high temperature environment to obtain a calibration constant based on error factors due to fluctuations in the solids of control elements, characteristic fluctuations due to temperature, and fluctuations in the resistance value of the current detection resistor 126 due to self-heating. Therefore, calibration of detection error is performed for each cause of detection error, and it is calibrated taking into account the factor of temperature fluctuation, so the calibration constant can be used properly during operation of the current control device in various operating environments. In addition to being able to perform high-precision current control, it is characterized by easy calibration operation with a simple external calibration facility.

また、第1実施形態による電気負荷の電流制御装置の不揮発プログラムメモリ113Aは更に、検出温度校正手段207となる制御プログラムを包含している。検出温度校正手段207は、常温環境と高温環境の少なくとも一方の温度環境において、温度検出回路170の測定電圧Vt(=Vtb、又はVtd)のデジタル変換値と、既知の内部環境温度、又は外部設置された校正用温度計903dによる推定内部環境温度T(=Tb、又はTd)を対比し、適用された温度検出回路170の標準的な温度対測定電圧特性に基づいて、実際の測定電圧Vt(=Vta〜Vte)から実使用内部環境温度T(=Ta〜Te)を推定する演算算式、又はデータテーブルを不揮発データメモリ114Aに保存する。   Further, the nonvolatile program memory 113A of the electric load current control device according to the first embodiment further includes a control program which becomes the detected temperature calibration means 207. The detected temperature calibration means 207 is a digital conversion value of the measured voltage Vt (= Vtb or Vtd) of the temperature detection circuit 170, a known internal environment temperature, or an external installation in at least one of a normal temperature environment and a high temperature environment. The estimated internal environment temperature T (= Tb or Td) by the calibration thermometer 903d is compared, and the actual measured voltage Vt (based on the standard temperature versus measured voltage characteristic of the applied temperature detection circuit 170 is compared. = A calculation formula for estimating the actual use internal environmental temperature T (= Ta to Te) from the Vta to Vte), or a data table is stored in the nonvolatile data memory 114A.

以上のように、第1実施形態による電気負荷の電流制御装置は、温度検出回路170の固体バラツキ変動のうち、少なくとも特定温度における測定電圧が正確に補足され、適用された温度検出回路170による標準的な測定電圧対温度特性を補正して、実際の測定電圧に対応した環境温度を推定することができる。従って、温度検出回路170の固体バラツキ変動のうち、少なくとも特定温度における測定電圧が正確に補足され、全体としての温度検出精度が向上する特徴がある。   As described above, the current control device for an electric load according to the first embodiment is a standard based on the applied temperature detection circuit 170 in which the measurement voltage at least at a specific temperature is accurately captured among the solid variation of the temperature detection circuit 170. The ambient temperature corresponding to the actual measurement voltage can be estimated by correcting the measured voltage vs. temperature characteristic. Therefore, among the solid variation fluctuations of the temperature detection circuit 170, at least the measurement voltage at a specific temperature is accurately supplemented, and the temperature detection accuracy as a whole is improved.

また、第1実施形態による電気負荷の電流制御装置の不揮発プログラムメモリ113Aは更に、検出温度校正手段207となる制御プログラムを包含している。検出温度校正手段207は、常温環境と高温環境の両方の温度環境において、温度検出回路170の測定電圧Vt(=Vtb、Vtd)のデジタル変換値と、既知の内部環境温度、又は外部設置された校正用温度計903dによる推定内部環境温度T(=Tb、Td)を対比して、実際の測定電圧Vt(=Vta〜Vte)から実使用内部環境温度T(=Ta〜Te)を推定する補間演算算式、又はデータテーブルを不揮発データメモリ114Aに保存する。   Further, the nonvolatile program memory 113A of the electric load current control device according to the first embodiment further includes a control program which becomes the detected temperature calibration means 207. The detected temperature calibration means 207 is a digitally converted value of the measurement voltage Vt (= Vtb, Vtd) of the temperature detection circuit 170 and a known internal environment temperature or an externally installed in both a normal temperature environment and a high temperature environment. Interpolation for estimating the actual use internal environment temperature T (= Ta to Te) from the actual measurement voltage Vt (= Vta to Vte) by comparing the estimated internal environment temperature T (= Tb, Td) by the calibration thermometer 903d. An arithmetic expression or a data table is stored in the nonvolatile data memory 114A.

以上のように、第1実施形態による電気負荷の電流制御装置は、温度検出回路170の常温、高温環境における固体バラツキ変動が正確に補足され、実際の測定電圧に対応した環境温度を正確に推定することができる。従って、温度検出回路170の固体バラツキ変動が補正されて、幅広い温度帯域において温度検出精度が向上する特徴がある。   As described above, the electric load current control device according to the first embodiment accurately captures the variation in solids in the temperature detection circuit 170 at room temperature and high temperature, and accurately estimates the environmental temperature corresponding to the actual measurement voltage. can do. Therefore, the variation in the solid state of the temperature detection circuit 170 is corrected, and the temperature detection accuracy is improved in a wide temperature range.

また、第1実施形態による電気負荷の電流制御装置の制御回路部は更に、校正操作用外部ツール900とマイクロプロセッサ111Aとの間を接続するシリアル通信用インタフェース回路116を備え、制御定数校正手段208、又は検出温度校正手段207における校正指令と、外部設置された校正用の電流計901d、又は温度計903dの測定値は、外部ツール900から入力されてRAMメモリ112に転送書込みされるものである。   In addition, the control circuit unit of the electric load current control apparatus according to the first embodiment further includes a serial communication interface circuit 116 for connecting the external tool 900 for calibration operation and the microprocessor 111A, and a control constant calibration unit 208. Alternatively, the calibration command in the detected temperature calibration means 207 and the measurement value of the calibration ammeter 901d or thermometer 903d installed externally are input from the external tool 900 and transferred and written to the RAM memory 112. .

以上のように、第1実施形態による電気負荷の電流制御装置は、校正操作用の外部ツール900を備え、当該外部ツール900は、測定信号をマイクロプロセッサ111Aに転送するために使用されている。従って、高精度な校正用測定器による測定値をデジタルデータとしてそのまま電流制御装置内のRAMメモリ112に転送することができる特徴がある。また、校正演算は電流制御装置側のマイクロプロセッサ111Aによって行なわれているので、外部設置される校正設備が簡単で、各種仕様の電流制御装置に対して標準適用することができる特徴がある。   As described above, the electric load current control apparatus according to the first embodiment includes the external tool 900 for calibration operation, and the external tool 900 is used to transfer the measurement signal to the microprocessor 111A. Therefore, there is a feature that a measurement value obtained by a high-precision calibration measuring instrument can be directly transferred to the RAM memory 112 in the current control device as digital data. Further, since the calibration calculation is performed by the microprocessor 111A on the current control device side, the calibration equipment installed outside is simple, and it is characterized in that it can be applied as standard to current control devices of various specifications.

また、第1実施形態による電気負荷の電流制御装置の増幅回路部150は、開閉素子121と電気負荷107との間に接続された電流検出抵抗126の両端電圧の差分電圧を差動増幅器151によって増幅すると共に、給電回路部は転流ダイオード127を備え、増幅回路部150はバイアス補正回路158を備えている。   In addition, the amplification circuit unit 150 of the electric load current control device according to the first embodiment uses the differential amplifier 151 to convert the differential voltage between the both ends of the current detection resistor 126 connected between the switching element 121 and the electric load 107. In addition to amplification, the power supply circuit unit includes a commutation diode 127, and the amplifier circuit unit 150 includes a bias correction circuit 158.

転流ダイオード127は、電気負荷107と開閉素子121との間に接続された電流検出抵抗126と電気負荷107との直列回路に対して並列接続されるか、又は電流検出抵抗126を含まないで電気負荷107に対して直接的に並列接続されたダイオードであって、開閉素子121が開路したときに電気負荷107のインダクタンスによる持続減衰電流が還流する極性に接続されている。   The commutation diode 127 is connected in parallel to the series circuit of the electric load 107 and the current detection resistor 126 connected between the electric load 107 and the switching element 121, or does not include the current detection resistor 126. The diode is directly connected in parallel to the electric load 107, and is connected to a polarity at which the continuous decay current due to the inductance of the electric load 107 flows back when the switching element 121 is opened.

バイアス補正回路158は、差動増幅器151の第1の入力E1、第2の入力E2に対して略均等な正のバイアス電圧を印加して、開閉素子121が開路しているときに転流ダイオード127の電圧降下によって印加される負電圧を相殺し、差動増幅器151に負電圧入力が印加されないようにしている。   The bias correction circuit 158 applies a substantially equal positive bias voltage to the first input E1 and the second input E2 of the differential amplifier 151, and the commutation diode when the switching element 121 is open. The negative voltage applied by the voltage drop of 127 is canceled out so that the negative voltage input is not applied to the differential amplifier 151.

制御定数校正手段208は更に、前記常温環境と高温環境の少なくとも2種類の内部環境温度T(=Tb、Td)において、監視電圧Efの電流比例係数B(=Bb、Bd)に加えて誤差成分ΔEfの電圧比例係数D(=Db、Dd)とオフセット成分C(=Cb、Cd)の少なくとも一方が算出され、実使用内部環境温度T(=Ta〜Te)における電圧比例係数D(=Da〜Dd)、又はオフセット成分C(=Ca〜Cd)を補間算出する演算算式、又はデータテーブルを不揮発データメモリ114Aに保存する。   The control constant calibration means 208 further includes an error component in addition to the current proportionality coefficient B (= Bb, Bd) of the monitoring voltage Ef at least two types of internal environment temperatures T (= Tb, Td) of the normal temperature environment and the high temperature environment. At least one of the voltage proportionality coefficient D (= Db, Dd) and the offset component C (= Cb, Cd) of ΔEf is calculated, and the voltage proportionality coefficient D (= Da˜) at the actual use internal environment temperature T (= Ta˜Te). Dd) or an arithmetic expression for interpolation calculation of the offset component C (= Ca to Cd) or a data table is stored in the nonvolatile data memory 114A.

以上のように、第1実施形態による電気負荷の電流制御装置は、給電回路部が転流ダイオード127を備え、増幅回路部150がバイアス補正回路158を備えている。従って、電流検出抵抗126がグランド側に設けられていないことに伴って発生する負電圧入力を相殺して、差動増幅器151や多チャンネルAD変換器115が正負の電圧を扱う必要がないようにすることができる特徴がある。   As described above, in the electric load current control device according to the first embodiment, the power supply circuit unit includes the commutation diode 127, and the amplifier circuit unit 150 includes the bias correction circuit 158. Therefore, the negative voltage input generated due to the fact that the current detection resistor 126 is not provided on the ground side is canceled so that the differential amplifier 151 and the multi-channel AD converter 115 do not need to handle positive and negative voltages. There are features that can be done.

また、第1実施形態による電気負荷の電流制御装置の制御回路部は更に、分圧抵抗191a、192aからなる平均電圧測定回路を備えると共に、不揮発プログラムメモリ113Aは更に、校正係数演算手段240Aと転送保存手段203Aとなる制御プログラムを包含している。   In addition, the control circuit unit of the electric load current control device according to the first embodiment further includes an average voltage measurement circuit including voltage dividing resistors 191a and 192a, and the nonvolatile program memory 113A further transfers to the calibration coefficient calculation means 240A. A control program serving as the storage unit 203A is included.

平均電圧測定回路は、電気負荷107の両端電圧を分圧してマイクロプロセッサ111Aに入力し、監視平均電圧Vaを得る。   The average voltage measurement circuit divides the voltage across the electric load 107 and inputs it to the microprocessor 111A to obtain the monitored average voltage Va.

校正係数演算手段240Aは、増幅回路部150による監視電圧の平均値Efと監視平均電圧Vaと負荷電流Imとの関係が、Ef=D×Va+B×Im+Cであるとし、この算式における誤差成分となるオフセット成分Cと電圧比例係数D、及び電流比例係数Bは校正運転による測定データから算出する。   The calibration coefficient calculation unit 240A assumes that the relationship between the average value Ef of the monitoring voltage by the amplifier circuit unit 150, the monitoring average voltage Va, and the load current Im is Ef = D × Va + B × Im + C, and becomes an error component in this formula. The offset component C, the voltage proportional coefficient D, and the current proportional coefficient B are calculated from measurement data obtained by calibration operation.

転送保存手段203Aは、校正係数演算手段240Aによる演算結果である電圧比例係数Dと電流比例係数Bとオフセット成分Cの値を校正定数として不揮発データメモリ114Aに転送保存し、前記校正定数は常温環境と高温環境の少なくとも2種類の環境温度において算出され、2種類の内部環境温度T(=Tb、Td)と電圧比例係数D(=Db、Dd)と電流比例係数B(=Bb、Bd)とオフセット成分C(=Cb、Cd)が転送保存される。   The transfer storage means 203A transfers and stores the values of the voltage proportionality coefficient D, current proportionality coefficient B, and offset component C, which are the calculation results of the calibration coefficient calculation means 240A, as calibration constants in the nonvolatile data memory 114A. And at least two kinds of environmental temperatures of the high temperature environment, two kinds of internal environment temperatures T (= Tb, Td), a voltage proportional coefficient D (= Db, Dd), and a current proportional coefficient B (= Bb, Bd), The offset component C (= Cb, Cd) is transferred and stored.

以上のように、第1実施形態による電気負荷の電流制御装置は、分圧抵抗191a、192aからなる平均電圧測定回路と、校正係数演算手段240Aと、転送保存手段203Aとを備えている。従って、要因別の校正定数を手順良く効率的に算出、保存することができるので、量産製品に対する生産ラインの中で手軽な自動化設備を付加することによって校正操作が行える特徴がある。   As described above, the electric load current control device according to the first embodiment includes the average voltage measurement circuit including the voltage dividing resistors 191a and 192a, the calibration coefficient calculation unit 240A, and the transfer storage unit 203A. Accordingly, the calibration constants for each factor can be calculated and stored efficiently in a step-by-step manner, and the calibration operation can be performed by adding a simple automated facility in the production line for mass-produced products.

また、第1実施形態による電気負荷の電流制御装置の校正係数演算手段240Aは更に、平均電圧校正手段243を包含している。   The calibration coefficient calculation means 240A of the electric load current control apparatus according to the first embodiment further includes an average voltage calibration means 243.

平均電圧校正手段243は、前記校正運転において、外部設置された校正用電圧計902dで測定された駆動電源の電圧Vbを入力してRAMメモリ112に書込み記憶すると共に、開閉素子121が完全導通しているときの監視平均電圧Vaと駆動電源電圧Vbとの間の平均電圧校正係数Ka=Vb/Vaを算出して不揮発データメモリ114Aに格納するか、又は電気負荷107の両端電圧に対する分圧比率の逆数として予め定められた固定定数を適用するようになっている。   In the calibration operation, the average voltage calibration means 243 inputs the driving power supply voltage Vb measured by the externally installed calibration voltmeter 902d, writes and stores it in the RAM memory 112, and the switching element 121 is completely conducted. The average voltage calibration coefficient Ka = Vb / Va between the monitored average voltage Va and the drive power supply voltage Vb is calculated and stored in the nonvolatile data memory 114A, or the voltage dividing ratio with respect to the voltage across the electric load 107 A fixed constant determined in advance is applied as the reciprocal of.

以上のように、第1実施形態による電気負荷の電流制御装置は、平均電圧校正手段243を備えている。従って、開閉素子121が完全導通している状態において、監視平均電圧Vaの値から駆動電源電圧Vbを正確に算出することができ、算出電圧を他の目的に利用することができる特徴がある。   As described above, the electric load current control apparatus according to the first embodiment includes the average voltage calibration means 243. Therefore, there is a feature that the drive power supply voltage Vb can be accurately calculated from the value of the monitored average voltage Va and the calculated voltage can be used for other purposes in a state where the open / close element 121 is completely conductive.

また、第1実施形態による電気負荷の電流制御装置の不揮発プログラムメモリ113Aは更に、線形性校正手段257となる制御プログラムを備えている。   Further, the nonvolatile program memory 113 </ b> A of the electric load current control device according to the first embodiment further includes a control program serving as the linearity calibration means 257.

線形性校正手段257は、複数の目標負荷電流Isi(i=0〜n)による校正運転において、外部設置された校正用電流計901dによって測定された実負荷電流Immiに基づいて、監視電圧Efの中の電流比例成分の電流比例係数Bi=B×(Isi/Immi)を算出して、近似算式、又はデータテーブルとして不揮発データメモリに保存する。線形性校正手段257による電流比例係数の算出は、常温環境と高温環境の一方、又は両方の内部環境温度T(=Tb、Td)において実行され、実用内部環境T(=Ta〜Te)における電流比例係数Bai〜Beiの値が近似算式、又はデータテーブルとして不揮発データメモリ114Aに保存される。   The linearity calibration unit 257 determines the monitoring voltage Ef based on the actual load current Immi measured by an externally installed calibration ammeter 901d in a calibration operation using a plurality of target load currents Isi (i = 0 to n). The current proportionality coefficient Bi = B × (Isi / Immi) of the current proportional component is calculated and stored in the nonvolatile data memory as an approximate expression or a data table. The calculation of the current proportionality coefficient by the linearity calibration means 257 is executed at the internal environment temperature T (= Tb, Td) in one or both of the normal temperature environment and the high temperature environment, and the current in the practical internal environment T (= Ta to Te). The values of the proportional coefficients Bai to Bei are stored in the nonvolatile data memory 114A as an approximate expression or a data table.

以上のように、第1実施形態による電気負荷の電流制御装置は、線形性校正手段257を備え、目標電流に比例した負荷電流が得られるように電流比例計数の補正を行うようになっている。従って、温度検出回路170は単に電流制御装置内部の環境温度を測定しているものであって、電流検出抵抗126そのものの温度を直接検出するものではないのに対し、電流検出抵抗126の温度が負荷電流の二乗に比例して変化し、これに伴って電流検出抵抗126の抵抗値が変化することによって電流制御の非線形誤差が発生するのを防止することができる特徴がある。   As described above, the electric load current control device according to the first embodiment includes the linearity calibration unit 257 and corrects the current proportionality count so that a load current proportional to the target current can be obtained. . Therefore, the temperature detection circuit 170 merely measures the environmental temperature inside the current control device and does not directly detect the temperature of the current detection resistor 126 itself, whereas the temperature of the current detection resistor 126 There is a feature that it is possible to prevent a non-linear error in current control from occurring due to a change in proportion to the square of the load current and a change in the resistance value of the current detection resistor 126 accordingly.

また、第1実施形態による電気負荷の電流制御装置100Aは、自動車用自動変速機における複数のリニアソレノイドに対する電流制御装置であって、密閉筐体に収納され、温度検出回路170はマイクロプロセッサ111Aの近傍温度、又はマイクロプロセッサ111Aと多チャンネルAD変換器115に給電する定電圧電源回路110の近傍温度を測定することによって前記密閉筐体内の平均環境温度を推定するものである。   The electric load current control device 100A according to the first embodiment is a current control device for a plurality of linear solenoids in an automatic transmission for an automobile, and is housed in a hermetically sealed housing, and the temperature detection circuit 170 includes a microprocessor 111A. By measuring the vicinity temperature or the vicinity temperature of the constant voltage power supply circuit 110 that supplies power to the microprocessor 111A and the multi-channel AD converter 115, the average environmental temperature in the sealed casing is estimated.

前記常温環境における校正運転は、電流制御装置100Aの組立検査工程において実施されるようになっており、前記高温環境における校正運転は、前記組立検査工程に続く高温試験工程において実施されるようになっている。   The calibration operation in the normal temperature environment is performed in the assembly inspection process of the current control device 100A, and the calibration operation in the high temperature environment is performed in the high temperature test process following the assembly inspection process. ing.

以上のように、第1実施形態による電気負荷の電流制御装置は、電流制御装置100Aの校正運転は、電流制御装置100Aの組立検査工程と高温出荷検査工程において行なわれるようになっている。従って、不揮発データメモリ114Aに一時保存された組立検査工程における常温環境での測定データと、高温試験工程における高温環境での測定データとを合成して校正定数が演算され、当該校正定数を不揮発データメモリ114Aに格納保存することによって校正運転のための専用の作業工程を必要としない特徴がある。   As described above, in the current control device for an electric load according to the first embodiment, the calibration operation of the current control device 100A is performed in the assembly inspection process and the high-temperature shipment inspection process of the current control device 100A. Therefore, the calibration constant is calculated by combining the measurement data in the normal temperature environment in the assembly inspection process temporarily stored in the nonvolatile data memory 114A and the measurement data in the high temperature environment in the high temperature test process, and the calibration constant is calculated as the nonvolatile data. By storing and storing in the memory 114A, there is a feature that does not require a dedicated work process for the calibration operation.

実施の形態2.
次に、この発明の第2実施形態による電気負荷の電流制御装置について説明する。図11は、第2実施形態による電気負荷の電流制御装置を示す全体回路図である。この第2実施形態においては、図1に示す第1実施形態との相違点を中心にして説明する。なお、各図において同一符号は同一又は相当部分を示しており、図1に示す第1実施形態においては、マイクロプロセッサ111Aの外部に帰還制御回路を構成する比較偏差積分回路140を備えた外部負帰還制御方式のものであるのに対し、図11に示す第2実施形態においては、マイクロプロセッサ111Bが比較偏差積分出力に応動してパルス幅変調信号を発生する内部負帰還方式のものとなっている。
Embodiment 2. FIG.
Next explained is a current control apparatus for electric loads according to a second embodiment of the invention. FIG. 11 is an overall circuit diagram showing a current control device for an electric load according to the second embodiment. The second embodiment will be described with a focus on differences from the first embodiment shown in FIG. In each figure, the same reference numerals indicate the same or corresponding parts. In the first embodiment shown in FIG. 1, an external negative circuit having a comparison deviation integrating circuit 140 that constitutes a feedback control circuit outside the microprocessor 111A. In contrast to the feedback control system, the second embodiment shown in FIG. 11 uses an internal negative feedback system in which the microprocessor 111B generates a pulse width modulation signal in response to the comparison deviation integral output. Yes.

図11において、電流制御装置100Bは、制御電源ユニット110から給電されるマイクロプロセッサ111Bを中心として、開閉回路部120、増幅回路部150、平滑回路160、温度検出回路170などの回路部によって構成され、図示しない密閉筐体に収納されている。   In FIG. 11, the current control device 100 </ b> B is composed of circuit units such as an open / close circuit unit 120, an amplification circuit unit 150, a smoothing circuit 160, and a temperature detection circuit 170, with a microprocessor 111 </ b> B fed from the control power supply unit 110 as a center. These are housed in a sealed housing (not shown).

電流制御装置100Bに接続される外部機器としては第1実施形態と同様であって、駆動電源101、ヒューズ102、電源スイッチ103によって構成された駆動電源回路が電源端子104Pと接地端子104N間に接続されている。また、アナログ入力群105a、スイッチ入力群105d、電気負荷群106、リニアソレノイド等の電流制御を必要とする電気負荷107、警報・表示器109も同様に接続されている。   The external device connected to the current control device 100B is the same as that of the first embodiment, and the drive power supply circuit configured by the drive power supply 101, the fuse 102, and the power switch 103 is connected between the power supply terminal 104P and the ground terminal 104N. Has been. Similarly, an analog input group 105a, a switch input group 105d, an electric load group 106, an electric load 107 such as a linear solenoid that requires current control, and an alarm / display 109 are also connected.

なお、製品出荷前の校正運転に当たっては、外部ツール990がシリアルインタフェース回路116を介してマイクロプロセッサ111Bと接続され、電気負荷107に直列接続された校正用デジタル電流計991dの出力信号と、電源端子104Pに印加された駆動電源101の駆動電源電圧Vbを測定する校正用デジタル電圧計992dの出力信号と、電流制御装置100Bの内部の温度を推定する校正用デジタル温度計993dが外部ツール990を介してマイクロプロセッサ111Bに供給され、後述のRAMメモリ112に転送されるようになっている。   In the calibration operation before product shipment, the external tool 990 is connected to the microprocessor 111B via the serial interface circuit 116, the output signal of the calibration digital ammeter 991d connected in series to the electric load 107, and the power supply terminal An output signal of a calibration digital voltmeter 992d for measuring the drive power supply voltage Vb of the drive power supply 101 applied to 104P and a calibration digital thermometer 993d for estimating the internal temperature of the current control device 100B are supplied via the external tool 990. Are supplied to the microprocessor 111B and transferred to a RAM memory 112 described later.

電流制御装置100Bの内部の構成として、制御電源ユニット110は、例えばDC10〜16Vである駆動電源電圧Vbから、例えばDC5Vの安定化制御電源電圧Vccを発生して電流制御装置100B内部の各部に給電するようになっている。   As an internal configuration of the current control device 100B, the control power supply unit 110 generates a stabilized control power supply voltage Vcc of, for example, DC 5V from a drive power supply voltage Vb of, for example, DC 10 to 16V, and supplies power to each part in the current control device 100B. It is supposed to be.

マイクロプロセッサ111Bは、演算処理用のRAMメモリ112と、例えば電気的に一括消去して書込み・読出しが行える不揮発フラッシュメモリ等によるプログラムメモリ113Bと、1バイト単位で電気的に書込み・読出しが行える不揮発EEPROMメモリ等によるデータメモリ114Bと、多チャンネルAD変換器115と、シリアル通信用インタフェース回路116とで協働するように構成されている。   The microprocessor 111B includes a RAM memory 112 for arithmetic processing, a program memory 113B such as a non-volatile flash memory that can be erased electrically and written / read, and a non-volatile memory that can be electrically written / read in units of 1 byte. A data memory 114B such as an EEPROM memory, a multi-channel AD converter 115, and a serial communication interface circuit 116 are configured to cooperate with each other.

開閉回路部120は、例えばPNP接合形トランジスタである開閉素子121と、開閉素子121のベース回路に接続された駆動抵抗122とNPN形のトランジスタ123との直列回路と、開閉素子121のベース・エミッタ端子間に接続された第1の安定抵抗124と、トランジスタ123のベース・エミッタ端子間に接続された第2の安定抵抗125で構成されていて、開閉素子121の一端は電源端子104Pに接続され、他端は抵抗値がR1である電流検出抵抗126を介して出力端子108に接続されて電気負荷107に給電するようになっている。   The switch circuit unit 120 includes, for example, a switch circuit 121 that is a PNP junction transistor, a series circuit of a drive resistor 122 connected to the base circuit of the switch element 121 and an NPN transistor 123, and a base / emitter of the switch element 121. The switch is composed of a first stable resistor 124 connected between the terminals and a second stable resistor 125 connected between the base and emitter terminals of the transistor 123. One end of the switching element 121 is connected to the power supply terminal 104P. The other end is connected to the output terminal 108 via a current detection resistor 126 having a resistance value R1, and supplies power to the electric load 107.

転流ダイオード127は、電流検出抵抗126と誘導性負荷である電気負荷107との直列回路に対して並列接続されていて、開閉素子121が開路したときに電気負荷107の減衰電流が還流する極性に接続されている。   The commutation diode 127 is connected in parallel to the series circuit of the current detection resistor 126 and the electric load 107 which is an inductive load, and the polarity at which the attenuation current of the electric load 107 circulates when the switching element 121 is opened. It is connected to the.

トランジスタ123は、マイクロプロセッサ111Bの帰還制御出力PWMから駆動抵抗128を介して駆動され、帰還制御出力PWMが論理レベル「H」であるときにトランジスタ123と開閉素子121が導通するようになっている。   The transistor 123 is driven from the feedback control output PWM of the microprocessor 111B via the drive resistor 128, and the transistor 123 and the switching element 121 are made conductive when the feedback control output PWM is at the logic level “H”. .

増幅回路部150は、駆動電源電圧Vbを電源電圧として動作する差動増幅器151を主体として、第1実施形態と同様に構成されていて、平滑回路160と温度検出回路170も第1実施形態と同様に構成されている。   The amplifier circuit unit 150 is mainly configured by a differential amplifier 151 that operates using the drive power supply voltage Vb as a power supply voltage, and is configured in the same manner as in the first embodiment. It is constituted similarly.

電源電圧測定回路を構成する分圧抵抗191b、192bは互いに直列接続されて開閉素子121の入力端子に接続されていて、分圧抵抗192bの両端電圧が電源監視電圧Vfとしてマイクロプロセッサ111Bに入力されている。また、図中、点線で示された平均電圧測定回路を構成する分圧抵抗191a、192aは、互いに直列接続されて電気負荷107に対して並列接続されていて、分圧抵抗192aの両端電圧が監視平均電圧Vaとして直列抵抗193を介してマイクロプロセッサ111Bに入力されている。マイクロプロセッサ111Bの入力端子には平滑用コンデンサ194が接続されている。   The voltage dividing resistors 191b and 192b constituting the power supply voltage measuring circuit are connected in series to each other and connected to the input terminal of the switching element 121. The voltage across the voltage dividing resistor 192b is input to the microprocessor 111B as the power supply monitoring voltage Vf. ing. In addition, the voltage dividing resistors 191a and 192a constituting the average voltage measuring circuit indicated by the dotted line in the figure are connected in series to each other and connected in parallel to the electric load 107, and the voltage across the voltage dividing resistor 192a is The monitoring average voltage Va is input to the microprocessor 111B via the series resistor 193. A smoothing capacitor 194 is connected to the input terminal of the microprocessor 111B.

以上のように構成された第2実施形態において、増幅回路部150に基づいて測定される監視電圧Efの値は、第1実施形態で説明した(9)式、(11)式に示すとおりとなる。また第1実施形態で説明した(1)式〜(11)式は、第2実施形態の場合でも同様に成立する。   In the second embodiment configured as described above, the value of the monitoring voltage Ef measured based on the amplifier circuit unit 150 is as shown in the equations (9) and (11) described in the first embodiment. Become. Further, the expressions (1) to (11) described in the first embodiment are similarly established in the case of the second embodiment.

次に、第2実施形態による電気負荷の電流制御装置の動作について説明する。
図12は、第2実施形態による電気負荷の電流制御装置における校正運転用の動作フローチャートである。なお、図12の構成は図2に示す第1実施形態の場合と同一構成となっていて、200番台の工程符号を1200番台に変更したものとなっている。但し、工程ブロック1210a、1210b、工程ブロック1220a、1220b、工程ブロック1230a、1230b、工程ブロック1240a、1240bの夫々の詳細を示す図13〜図16の内容が一部変更されている。
Next, the operation of the electric load current control apparatus according to the second embodiment will be described.
FIG. 12 is an operation flowchart for the calibration operation in the electric load current control apparatus according to the second embodiment. The configuration of FIG. 12 is the same as that of the first embodiment shown in FIG. 2, and the process code of the 200th series is changed to the 1200th series. However, the contents of FIGS. 13 to 16 showing the details of the process blocks 1210a and 1210b, the process blocks 1220a and 1220b, the process blocks 1230a and 1230b, and the process blocks 1240a and 1240b are partially changed.

変更の要点は、図2に示す第1実施形態の場合は前述の(11)式に基づく校正運転が行われているのに対し、図12に示す第2実施形態の場合は前述の(9)式に基づく校正運転が行われているためである。   The main point of the change is that the calibration operation based on the above-described equation (11) is performed in the case of the first embodiment shown in FIG. 2, whereas the above-mentioned (9) in the case of the second embodiment shown in FIG. This is because the calibration operation based on the formula) is performed.

工程ブロック1210a、工程ブロック1210bの詳細を示す図13において、工程ブロック1210a、工程ブロック1210bの実行開始に伴ってサブルーチン開始工程1210が活性化され、後述のサブルーチン復帰工程1219に続いて図12の工程ブロック1220a、工程ブロック1220bへ移行するようになっている。   In FIG. 13 showing the details of the process block 1210a and the process block 1210b, the subroutine start process 1210 is activated with the start of the execution of the process block 1210a and the process block 1210b, and the process of FIG. 12 follows the subroutine return process 1219 described later. The process proceeds to block 1220a and process block 1220b.

工程1212は工程1210に続いて実行され、外部ツール990が発信した第1の校正指令を受信したかどうかを判定する。そして、判定結果がYESであって受信したときには工程1213へ移行し、未受信であるときには工程1212へ復帰して第1の校正指令を受信するまで待機するようになっている。なお、第1の校正指令を発生するに当たっては、工程1211によって事前に電流制御装置100Bに所定の駆動電源101を接続し、校正用電流計991d、校正用電圧計992d、校正用温度計993dを接続しておくようになっている。   Step 1212 is executed subsequent to step 1210 to determine whether the first calibration command transmitted by the external tool 990 has been received. When the determination result is YES and it is received, the process proceeds to step 1213. When it is not received, the process returns to step 1212 and waits until the first calibration command is received. In order to generate the first calibration command, a predetermined drive power source 101 is connected to the current control device 100B in advance in step 1211, and the calibration ammeter 991d, the calibration voltmeter 992d, and the calibration thermometer 993d are connected. It is supposed to be connected.

工程1213ではAD変換器115を介して温度検出回路170の測定電圧Vtを読取り記憶し、続く工程1214では校正用温度計993dから外部ツール990を介して入力された外部環境温度を読出し記憶する。   In step 1213, the measured voltage Vt of the temperature detection circuit 170 is read and stored via the AD converter 115, and in the subsequent step 1214, the external environment temperature input from the calibration thermometer 993d via the external tool 990 is read and stored.

続く工程1215では帰還制御出力PWMの通電デューティγ=0にし、続く工程1216ではこのときの監視電圧Efの値である誤差電圧Ef0を、例えばRAMメモリ112内の所定アドレスのメモリであるデータレジスタD10に転送してから復帰工程1219へ移行する。   In the subsequent step 1215, the energization duty γ = 0 of the feedback control output PWM is set, and in the subsequent step 1216, the error voltage Ef0 which is the value of the monitoring voltage Ef at this time is converted into a data register D10 which is a memory of a predetermined address in the RAM memory 112, for example. Then, the process proceeds to the return step 1219.

工程ブロック1220a、工程ブロック1220bの詳細を示す図14において、工程ブロック1220a、工程ブロック1220bの実行開始に伴ってサブルーチン開始工程1220が活性化され、後述のサブルーチン復帰工程1229に続いて図12の工程ブロック1230a、工程ブロック1230bへ移行するようになっている。   In FIG. 14 showing the details of the process block 1220a and the process block 1220b, the subroutine start process 1220 is activated when the execution of the process block 1220a and the process block 1220b is started, and the process of FIG. 12 follows the subroutine return process 1229 described later. The process proceeds to block 1230a and process block 1230b.

工程1222は工程1220に続いて実行され、外部ツール990が発信した第2の校正指令を受信したかどうかを判定する。そして、判定結果がYESであって受信したときには工程1223へ移行し、未受信であるときには工程1222へ復帰して第2の校正指令を受信するまで待機するようになっている。なお、第2の校正指令を発生するに当たっては、工程1221によって事前に電流制御装置100Bに所定の駆動電源101を接続した状態で電気負荷107への接続回路を開放し、校正用電圧計992d、校正用温度計993dを接続しておくようになっている。   Step 1222 is executed following step 1220 to determine whether the second calibration command transmitted by the external tool 990 has been received. When the determination result is YES and it is received, the process proceeds to step 1223, and when it is not received, the process returns to step 1222 and waits until the second calibration command is received. In generating the second calibration command, the connection circuit to the electric load 107 is opened with the predetermined drive power supply 101 connected to the current control device 100B in advance in step 1221, and the calibration voltmeter 992d, A calibration thermometer 993d is connected.

工程1223では帰還制御出力PWMの通電デューティγ=100%にし、続く工程1224ではこのときの監視電圧Efの値である誤差電圧Ef1を、例えばRAMメモリ112内の所定アドレスのメモリであるデータレジスタD20に転送し、続く工程1225ではこのときの電源監視電圧Vfの値をデータレジスタD21に転送する。そして、続く工程1226では外部ツール990を介して校正用デジタル電圧計992dから入力された駆動電源電圧Vbの値をデータレジスタD22に転送してから復帰工程1229へ移行する。   In step 1223, the energization duty γ of the feedback control output PWM is set to 100%, and in the subsequent step 1224, the error voltage Ef1, which is the value of the monitoring voltage Ef at this time, is converted into a data register D20 which is a memory of a predetermined address in the RAM memory 112, for example. In the subsequent step 1225, the value of the power supply monitoring voltage Vf at this time is transferred to the data register D21. In the subsequent step 1226, the value of the drive power supply voltage Vb input from the calibration digital voltmeter 992d via the external tool 990 is transferred to the data register D22, and then the process proceeds to the return step 1229.

工程ブロック1230a、工程ブロック1230bの詳細を示す図15において、工程ブロック1230a、工程ブロック1230bの実行開始に伴ってサブルーチン開始工程1230が活性化され、後述のサブルーチン復帰工程1239に続いて図12の工程ブロック1240a、工程ブロック1240bへ移行するようになっている。   In FIG. 15 showing the details of the process block 1230a and the process block 1230b, the subroutine start process 1230 is activated with the start of execution of the process block 1230a and process block 1230b, and the process of FIG. 12 follows the subroutine return process 1239 described later. The process proceeds to block 1240a and process block 1240b.

工程1232は工程1230に続いて実行され、外部ツール990が発信した第3の校正指令を受信したかどうかを判定する。そして、判定結果がYESであって受信したときには工程1233へ移行し、未受信であるときには工程1232へ復帰して第3の校正指令を受信するまで待機するようになっている。なお、第3の校正指令を発生するに当たっては、工程1231によって事前に電流制御装置100Bに所定の駆動電源101を接続した状態で電気負荷107を接続し、校正用電流計991d、校正用電圧計992d、校正用温度計993dを接続しておくようになっている。   Step 1232 is executed following step 1230 to determine whether a third calibration command transmitted by the external tool 990 has been received. Then, when the determination result is YES and it is received, the process proceeds to Step 1233, and when it is not received, the process returns to Step 1232 and waits until the third calibration command is received. In generating the third calibration command, the electric load 107 is connected in a state where the predetermined drive power source 101 is connected to the current control device 100B in advance in step 1231, and the calibration ammeter 991d, the calibration voltmeter is connected. 992d and a calibration thermometer 993d are connected.

工程1233では帰還制御出力PWMの通電デューティγ=100%にし、続く工程1234ではこのときの監視電圧Efの値である測定電圧Ef2を、例えばRAMメモリ112内の所定アドレスのメモリであるデータレジスタD30に転送し、続く工程1235では外部ツール990を介して校正用デジタル電流計991dから入力された実負荷電流Immの値をデータレジスタD33に転送してから復帰工程1239へ移行する。   In step 1233, the energization duty γ of the feedback control output PWM is set to 100%, and in the subsequent step 1234, the measured voltage Ef2 which is the value of the monitoring voltage Ef at this time is used as a data register D30 which is a memory of a predetermined address in the RAM memory 112, for example. In the subsequent step 1235, the value of the actual load current Imm input from the calibration digital ammeter 991d via the external tool 990 is transferred to the data register D33, and then the process proceeds to the return step 1239.

工程ブロック1240a、工程ブロック1240bの詳細を示す図16において、工程ブロック1240a、工程ブロック1240bの実行開始に伴ってサブルーチン開始工程1240が活性化され、後述のサブルーチン復帰工程1249に続いて図12の工程ブロック1250a、工程ブロック1250bへ移行するようになっている。   In FIG. 16 showing the details of the process block 1240a and process block 1240b, the subroutine start process 1240 is activated with the start of execution of the process block 1240a and process block 1240b, and the process of FIG. 12 follows the subroutine return process 1249 described later. The process proceeds to block 1250a and process block 1250b.

工程1242は工程1240に続いて実行され、外部ツール990が発信した第4の校正指令を受信したかどうかを判定する。そして、判定結果がYESであって受信したときには工程1243へ移行し、未受信であるときには工程1242へ復帰して第4の校正指令を受信するまで待機するようになっている。なお、第4の校正指令を発生するに当たっては、工程1241によって校正指令1から3の発生が完了しているかどうかの確認を行うようになっている。   Step 1242 is executed following step 1240 to determine whether the fourth calibration command transmitted by the external tool 990 has been received. Then, when the determination result is YES and it is received, the process proceeds to Step 1243, and when it is not received, the process returns to Step 1242 and waits until the fourth calibration command is received. When the fourth calibration command is generated, it is confirmed in step 1241 whether or not the generation of the calibration commands 1 to 3 is completed.

工程1243では工程1225、工程1226で転送記憶したデータレジスタの値によって電源電圧校正係数Kvを次式によって算出し、これをデータレジスタD41に転送書込みする。
Kv=Vb/Vf=D22/D21→D41
なお、この電源電圧校正係数Kvの値は分圧抵抗191b、分圧抵抗192bの合計値を分圧抵抗192bの値で割って得られる逆分圧比に相当しており、設計理論値を使用しても精度に与える影響は大きくはないものである。
In step 1243, the power supply voltage calibration coefficient Kv is calculated from the value of the data register transferred and stored in steps 1225 and 1226 by the following equation, and this is transferred and written to the data register D41.
Kv = Vb / Vf = D22 / D21 → D41
Note that the value of the power supply voltage calibration coefficient Kv corresponds to the inverse voltage division ratio obtained by dividing the total value of the voltage dividing resistor 191b and the voltage dividing resistor 192b by the value of the voltage dividing resistor 192b. The design theoretical value is used. However, the effect on accuracy is not significant.

続く工程1244では、工程1216で転送保存された誤差電圧Ef0の値をオフセット成分CとしてデータレジスタD42に転送書込みする。   In subsequent step 1244, the value of error voltage Ef0 transferred and stored in step 1216 is transferred and written to data register D42 as offset component C.

続く工程1245では、工程1224、工程1216、工程1226で転送記憶したデータレジスタの値によって、監視電圧Efの誤差成分の電圧比例係数Aを次式によって算出し、これをデータレジスタD43に転送書込みする。
A=(Ef1−Ef0)/(Vb+Vd)=(D20−D10)/(D22+1)→D43
In the following step 1245, the voltage proportional coefficient A of the error component of the monitoring voltage Ef is calculated by the following equation based on the value of the data register transferred and stored in step 1224, step 1216, and step 1226, and this is transferred and written to the data register D43. .
A = (Ef1-Ef0) / (Vb + Vd) = (D20−D10) / (D22 + 1) → D43

続く工程1246では、工程1234、工程1224、工程1235で転送記憶したデータレジスタの値によって、監視電圧Efの電流比例係数Bを次式によって算出し、これをデータレジスタD44に転送書込みしてから復帰工程1249へ移行する。
B=(Ef2−Ef1)/Imm=(D30−D20)/D33→D44
In the following step 1246, the current proportionality coefficient B of the monitoring voltage Ef is calculated by the following equation based on the value of the data register transferred and stored in step 1234, step 1224, and step 1235, transferred to the data register D44, and then returned. Control goes to step 1249.
B = (Ef2−Ef1) / Imm = (D30−D20) / D33 → D44

なお、工程1243は電源電圧校正手段、工程1245は電圧比例係数演算手段、工程1246は電流比例係数演算手段となっており、工程1243から工程1246を主体とする工程ブロック1240a、工程ブロック1240bは校正係数演算手段1240Bを構成している。   Step 1243 is a power supply voltage calibration means, step 1245 is a voltage proportionality coefficient calculation means, and step 1246 is a current proportionality coefficient calculation means. Process blocks 1240a and 1240b mainly including steps 1243 to 1246 are calibrated. The coefficient calculation means 1240B is configured.

工程ブロック1250a、工程ブロック1250bの詳細を示す図17において、工程ブロック1250a、工程ブロック1250bの実行開始に伴ってサブルーチン開始工程1250が活性化され、後述のサブルーチン復帰工程1259に続いて図12の工程1203a、工程1203bへ移行するようになっている。   In FIG. 17 showing the details of the process block 1250a and process block 1250b, the subroutine start process 1250 is activated along with the start of execution of the process block 1250a and process block 1250b, and the process of FIG. 12 follows the subroutine return process 1259 described later. The process proceeds to 1203a and step 1203b.

工程1252は工程1250に続いて実行され、外部ツール990が発信した第5の校正指令を受信したかどうかを判定する。そして、判定結果がYESであって受信したときには工程1253へ移行し、未受信であるときには工程1252へ復帰して第5の校正指令を受信するまで待機するようになっている。なお、第5の校正指令を発生するに当たっては、工程1251によって事前に電流制御装置100Bに所定の駆動電源101を接続した状態で電気負荷107を接続し、校正用電流計991d、校正用電圧計992d、校正用温度計993dを接続しておくようになっている。   Step 1252 is executed following step 1250 to determine whether the fifth calibration command transmitted by the external tool 990 has been received. Then, when the determination result is YES and it is received, the process proceeds to Step 1253, and when it is not received, the process returns to Step 1252 and waits until the fifth calibration command is received. In generating the fifth calibration command, the electric load 107 is connected in a state where the predetermined drive power source 101 is connected to the current control device 100B in advance in step 1251, and the calibration ammeter 991d, the calibration voltmeter is connected. 992d and a calibration thermometer 993d are connected.

また、後述の工程1253〜工程1258は、目標負荷電流Isの最大値から最小値の間にかけて等比配分された複数の測定電流Isi(i=0、1、2、・・・n)を設定し、各測定電流Isiに対応した電流比例係数Biを算出するもので、工程1253〜工程1256で構成された工程ブロック1257は線形性校正手段となる。なお、工程ブロック1250a、工程ブロック1250bの作用動作は図2に示す第1実施形態の場合の工程ブロック250a、工程ブロック250bと同じものとなっている。   Steps 1253 to 1258 described later set a plurality of measurement currents Isi (i = 0, 1, 2,... N) equally distributed from the maximum value to the minimum value of the target load current Is. Then, the current proportionality factor Bi corresponding to each measurement current Isi is calculated, and the process block 1257 constituted by the processes 1253 to 1256 is a linearity calibration means. The operation of the process block 1250a and the process block 1250b is the same as the process block 250a and the process block 250b in the case of the first embodiment shown in FIG.

次に、図18に示されている校正定数のデータテーブルと電流検出の特性線図について説明する。図18(A)は、第1実施形態で説明した図8(A)の場合と同様の、温度検出回路170の出力電圧Vta〜Vteに対応した内部環境温度Ta〜Teを求めるためのデータテーブルを示したものである。図18(B)は、第1実施形態で説明した図8(B)の場合と同様の、誤差成分のオフセット成分Cに関するデータテーブルの枠組みを示しており、オフセット成分Ca〜Ceは複数分割された実用環境温度帯域Ta〜Teごとに異なるデータが適用されるようになっている。   Next, the calibration constant data table and current detection characteristic diagram shown in FIG. 18 will be described. 18A is a data table for obtaining internal environment temperatures Ta to Te corresponding to the output voltages Vta to Vte of the temperature detection circuit 170, similar to the case of FIG. 8A described in the first embodiment. Is shown. FIG. 18B shows a data table framework related to the offset component C of the error component, similar to the case of FIG. 8B described in the first embodiment, and the offset components Ca to Ce are divided into a plurality of parts. Different data is applied to each of the practical environmental temperature bands Ta to Te.

また、図18(C)は、第1実施形態で説明した図8(C)の電圧比例係数Dの場合と同様に、電圧比例係数Aに関するデータテーブルの枠組みを示しており、電圧比例係数Aa〜Aeは複数分割された実用環境温度帯域Ta〜Teごとに異なるデータが適用されるようになっている。図18(D)は、図15の工程1235で測定され、図16の工程1246で算出された時点の電流比例係数Bに関するデータテーブルの枠組みを示しており、電流比例係数Bは複数分割された実用環境温度帯域Ta〜Teに対応して異なるデータが適用されるようになっている。   FIG. 18C shows a data table framework for the voltage proportionality coefficient A, as in the case of the voltage proportionality coefficient D of FIG. 8C described in the first embodiment. ... Ae is applied with different data for each of the divided practical environmental temperature bands Ta to Te. FIG. 18D shows a data table framework for the current proportionality factor B measured at step 1235 in FIG. 15 and calculated in step 1246 in FIG. 16. The current proportionality factor B is divided into a plurality of parts. Different data are applied corresponding to the practical environment temperature bands Ta to Te.

内部環境温度Tb、Tdにおける電流比例係数Bb、Bdは工程ブロック1230a、工程ブロック1230bで実測された値を基にして、工程ブロック1240a、工程ブロック1240bで算出された値で、その他の内部環境温度Ta、Tc、Teにおける電流比例成分Ba、Bc、Beは、実測された電流比例係数Bb、Bdから統計的に補間、延長して推定算出したものとなっている。   The current proportionality coefficients Bb and Bd at the internal environment temperatures Tb and Td are values calculated at the process block 1240a and the process block 1240b based on the values actually measured at the process block 1230a and the process block 1230b. The current proportional components Ba, Bc, and Be in Ta, Tc, and Te are estimated and calculated by statistically interpolating and extending from the actually measured current proportional coefficients Bb and Bd.

図18(E)は、横軸を負荷電流Im、縦軸を監視電圧Efとした場合の特性線図で、理想特性80は、電流検出抵抗126の温度係数がゼロであって、負荷電流Imの増加に伴って電流検出抵抗126の発熱が増大しても抵抗値に変化がない場合の直線特性となっている。但し、負荷電流Im=0の場合であっても誤差成分として前述の(9)式から算出されるΔEf=A×(Vb+Vd)×γ+Cが含まれている。   FIG. 18E is a characteristic diagram when the horizontal axis represents the load current Im and the vertical axis represents the monitoring voltage Ef. The ideal characteristic 80 is that the temperature coefficient of the current detection resistor 126 is zero and the load current Im Even if the heat generation of the current detection resistor 126 increases with the increase of the resistance, the linear characteristic is obtained when the resistance value does not change. However, even when the load current Im = 0, ΔEf = A × (Vb + Vd) × γ + C calculated from the above equation (9) is included as an error component.

図18(E)の曲線81〜85は、正の温度係数を有する電流検出抵抗126が使用されていて、内部環境温度がTa〜Teの場合の監視電圧特性となっている。なお、温度検出回路170によって測定される内部環境温度は、マイクロプロセッサ111B、又は制御電源ユニット110の近傍温度であって、電流検出抵抗126の近傍温度ではない。   Curves 81 to 85 in FIG. 18E show monitoring voltage characteristics when the current detection resistor 126 having a positive temperature coefficient is used and the internal environment temperature is Ta to Te. Note that the internal environmental temperature measured by the temperature detection circuit 170 is a temperature in the vicinity of the microprocessor 111B or the control power supply unit 110, and not in the vicinity of the current detection resistor 126.

また、電流検出抵抗126は、負荷電流Imの二乗に比例する自己発熱によって内部環境温度よりも高い温度になっていて、負荷電流Imの増加に伴って抵抗値が増加する。従って、目標負荷電流をIsiとしたとき、内部環境温度Ta〜Teに対応した電流比例係数Bai〜Beiは、次に示す(12)式による近似算式が適用される。
Bai〜Bei=(Ba〜Be)/[K1+K2×T+K3×Isi2]
・・・・(12)
この近似算式における定数K1、K2、K3は、工程ブロック1250a、工程ブロック1250bによって測定された設定電流対実負荷電流のデータから統計的に算出され、不揮発プログラムメモリ113B、又は不揮発データメモリ114Bに格納されるようになっている。
The current detection resistor 126 is at a temperature higher than the internal environment temperature due to self-heating that is proportional to the square of the load current Im, and the resistance value increases as the load current Im increases. Therefore, when the target load current is Isi, the following approximate expression (12) is applied to the current proportional coefficients Bai to Bei corresponding to the internal environment temperatures Ta to Te.
Bai to Bei = (Ba to Be) / [K1 + K2 × T + K3 × Isi2]
(12)
The constants K1, K2, and K3 in this approximate expression are statistically calculated from the set current versus actual load current data measured by the process block 1250a and the process block 1250b, and stored in the nonvolatile program memory 113B or the nonvolatile data memory 114B. It has come to be.

次に、図19のフローチャートにより、第2実施形態による電気負荷の電流制御装置における通常制御ルーチンの動作について説明する。
図9において、工程1300は、マイクロプロセッサ111Bが実行する多数の制御フローの中の一つとして、帰還制御出力を発生するためのパルス幅変調制御に関する動作開始工程で、続く工程1301は、図示しない他の制御フローの中で決定された目標負荷電流Isの値を読出設定する工程である。また、続く工程1302は、電源監視電圧Vfの現在値を読み出しする工程である。
Next, the operation of the normal control routine in the electric load current control apparatus according to the second embodiment will be described with reference to the flowchart of FIG.
In FIG. 9, a process 1300 is an operation start process related to pulse width modulation control for generating a feedback control output as one of many control flows executed by the microprocessor 111B, and the subsequent process 1301 is not shown. This is a step of reading and setting the value of the target load current Is determined in another control flow. The subsequent step 1302 is a step of reading the current value of the power supply monitoring voltage Vf.

続く工程1303は、以下の制御フローが運転開始後の初回動作であるかどうかを、図示しないフラグの動作状態によって判定する工程で、工程1303が初回動作の判定であったときには工程1304へ移行し、初回動作ではない判定であったときには工程1310へ移行するようになっている。   Subsequent step 1303 is a step of determining whether or not the following control flow is the first operation after the start of operation based on the operation state of a flag (not shown). If step 1303 is the determination of the first operation, the process proceeds to step 1304. When the determination is not the first operation, the process proceeds to step 1310.

続く工程1304は、工程1301で読出設定された目標負荷電流Isの値と、不揮発プログラムメモリ113B、又は不揮発データメモリ114Bに予め格納されている固定定数としての規格基準抵抗Rc=Rmin〜Rmaxの値を用いて、第1実施形態で説明した(2)式によって推定通電デューティγ0を算出する工程である。但し、この(2)式における駆動電源電圧Vbの値は、工程1302で読み出された電源監視電圧Vfの値と校正定数である電源電圧校正係数Kvの値によって、Vb=Kv×Vfによって算出されるものであって、結果的には推定通電デューティγ0は次式で算出される。
γ0=(Is/Ir)×(Vmin/Vb)=Is×Rc/(Kv×Vf)
但し、Ir=Vmin/Rc、Rc=Rmin〜Rmax、
Vb=Kv×Vf=Vmin〜Vmax
In the subsequent step 1304, the value of the target load current Is read and set in step 1301 and the standard reference resistance Rc = Rmin to Rmax as a fixed constant stored in advance in the nonvolatile program memory 113B or the nonvolatile data memory 114B. Is a step of calculating the estimated energization duty γ0 by the equation (2) described in the first embodiment. However, the value of the drive power supply voltage Vb in the equation (2) is calculated by Vb = Kv × Vf based on the value of the power supply monitoring voltage Vf read in step 1302 and the value of the power supply voltage calibration coefficient Kv which is a calibration constant. As a result, the estimated energization duty γ0 is calculated by the following equation.
γ0 = (Is / Ir) × (Vmin / Vb) = Is × Rc / (Kv × Vf)
However, Ir = Vmin / Rc, Rc = Rmin to Rmax,
Vb = Kv × Vf = Vmin to Vmax

工程1304に続く工程1305は、工程1304で算出された通電デューティγ0の値に所定倍率Nをかけてその整数値分をRAMメモリ112の特定アドレスのメモリであるデータレジスタD1に格納すると共に、N−D1の値をデータレジスタD2に格納する工程で、所定倍率Nとしては例えばN=1000である。なお、工程1304と工程1305によって構成された工程ブロック1306は初期設定手段となるもので、工程1304は推定通電デューティ算出手段となっている。   In the step 1305 following the step 1304, the value of the energization duty γ0 calculated in the step 1304 is multiplied by a predetermined magnification N and the integer value is stored in the data register D1 which is a memory of a specific address in the RAM memory 112, and N In the step of storing the value of −D1 in the data register D2, the predetermined magnification N is, for example, N = 1000. The process block 1306 constituted by the processes 1304 and 1305 is an initial setting means, and the process 1304 is an estimated energization duty calculation means.

工程1310は工程1303の判定が初回動作ではなかったとき、又は工程1305に続いて実行される。そして、温度検出回路170の測定電圧Vtを読み出して図18(A)のデータテーブルから内部環境温度Tを読出す工程である。続く工程1311では図18(B)、図18(C)のデータテーブルから現在の環境温度に対応したオフセット成分Cと電圧比例係数Aとを読み出す。そして、続く工程1312では図8(D)のデータテーブルと、前述の近似算式の(12)式から現在の環境温度と工程1301で設定された目標負荷電流Isに対応した電流比例係数Bを算出する。なお、工程1310、工程1311、工程1312によって構成された工程ブロック1314によって校正定数確定手段を構成している。   Step 1310 is executed when the determination in step 1303 is not the first operation or following step 1305. Then, it is a step of reading the measurement voltage Vt of the temperature detection circuit 170 and reading the internal environment temperature T from the data table of FIG. In subsequent step 1311, the offset component C and the voltage proportional coefficient A corresponding to the current environmental temperature are read from the data tables of FIGS. 18B and 18C. Then, in the following step 1312, the current proportionality coefficient B corresponding to the current environmental temperature and the target load current Is set in step 1301 is calculated from the data table of FIG. 8D and the above-mentioned approximate equation (12). To do. It should be noted that the calibration constant determining means is configured by the process block 1314 configured by the processes 1310, 1311, and 1312.

続く工程1315はマイクロプロセッサ111Bに入力されている監視電圧Efの値を読出す工程となっていて、続く工程1316は工程1315で読み出された監視電圧Efの値を前述の(9)式に代入することによって、次式により負荷電流Imを換算推定する工程である。
Im=[Ef−A×(Vb+Vd)×γ−C]/B、Vb=Kv×Vf
なお、上式における通電デューティγの値は初回動作では工程1304で算出された通電デューティγ0が使用されるが、やがて後述の工程1324によって通電デューティγの補正が行われるので、工程1316おいて使用される通電デューティγはその時点における最新の値が使用されるものである。また、校正定数A、B、C、Kvの値は不揮発データメモリ114Bに格納されているデータが読出し使用され、電源監視電圧Vfの値は工程1302で読み出された値が使用される。
A subsequent step 1315 is a step of reading the value of the monitoring voltage Ef input to the microprocessor 111B, and a subsequent step 1316 is to convert the value of the monitoring voltage Ef read in step 1315 into the above-described equation (9). By substituting, the load current Im is converted and estimated by the following equation.
Im = [Ef−A × (Vb + Vd) × γ−C] / B, Vb = Kv × Vf
Note that the energization duty γ0 calculated in step 1304 is used in the initial operation for the value of the energization duty γ in the above equation. However, since the energization duty γ is corrected in step 1324 described later, it is used in step 1316. As the energization duty γ, the latest value at that time is used. Further, the values stored in the nonvolatile data memory 114B are read and used as the values of the calibration constants A, B, C, and Kv, and the value read at step 1302 is used as the value of the power supply monitoring voltage Vf.

工程1316に続いて実行される工程1317は、平均電圧推定手段となるもので、この工程1317では次式によって電気負荷107に印加されている平均電圧Vaを算出する。
Va=∫V2 dt/τ=Vb×τon/τ−Vd×τoff/τ
=(Vb+Vd)×γ−Vd (Vd≒1V)
≒Kv×Vf×γ
上式において、通電周期τ=ON期間τon+OFF期間τoffである。また、駆動電源電圧Vbの値や通電デューティγの値は工程1311で使用された値と同じである。但し、図11の点線で示したように監視平均電圧Vaがマイクロプロセッサ111Bに入力されている場合には、この入力信号電圧を読み出せばよい。
Step 1317 executed after step 1316 serves as an average voltage estimating means. In step 1317, the average voltage Va applied to the electric load 107 is calculated by the following equation.
Va = ∫V2 dt / τ = Vb × τon / τ−Vd × τoff / τ
= (Vb + Vd) × γ−Vd (Vd≈1V)
≒ Kv × Vf × γ
In the above equation, energization cycle τ = ON period τon + OFF period τoff. Further, the value of the drive power supply voltage Vb and the value of the energization duty γ are the same as those used in step 1311. However, when the monitored average voltage Va is input to the microprocessor 111B as indicated by the dotted line in FIG. 11, this input signal voltage may be read.

続く工程1318と工程1319では、工程1317で算出された平均電圧Vaの値と、固定定数として不揮発プログラムメモリ113B、又は不揮発データメモリ114Bに格納されている電気負荷107の最小抵抗Rminと最大抵抗Rmaxの値を読み出して、最大電流Imaxと最小電流Iminを算出する。なお、ここでいう最大抵抗、最小抵抗は、一つの電気負荷に関してその固体バラツキ変動分と環境温度の変化と電気負荷自体の温度上昇を考慮した電気抵抗の上下限値のことである。   In subsequent steps 1318 and 1319, the average voltage Va calculated in step 1317 and the minimum resistance Rmin and the maximum resistance Rmax of the electric load 107 stored in the nonvolatile program memory 113B or the nonvolatile data memory 114B as fixed constants. The maximum current Imax and the minimum current Imin are calculated. Here, the maximum resistance and the minimum resistance are the upper and lower limit values of the electric resistance in consideration of the variation of the solid variation, the change of the environmental temperature, and the temperature rise of the electric load itself with respect to one electric load.

続く工程1320は過大電流状態検出手段となる工程で、この工程1320では、工程1316で算出た負荷電流Imが工程1318で算出された最大電流Imaxよりも大きいときにはYESの判定を行って過大電流状態であると判定して工程1322へ移行し、工程1316で算出た負荷電流Imが工程1318算出された最大電流Imaxよりも大きくないときにはNOの判定を行って過大電流状態ではないと判定して工程1321へ移行するようになっている。   Subsequent step 1320 is a step serving as an overcurrent state detection means. In this step 1320, when the load current Im calculated in step 1316 is larger than the maximum current Imax calculated in step 1318, a determination of YES is made to determine an overcurrent state. If the load current Im calculated in step 1316 is not larger than the maximum current Imax calculated in step 1318, NO is determined to determine that the current is not an excessive current state. The process shifts to 1321.

工程1321は過小電流状態検出手段となる工程で、この工程1321では工程1316で算出た負荷電流Imが工程1319で算出された最小電流Iminよりも小さいときにはYESの判定を行って過小電流状態であると判定して工程1322へ移行し、工程1316で算出た負荷電流Imが工程1319算出された最小電流Iminよりも小さくないときにはNOの判定を行って過小電流状態ではないと判定して工程1323へ移行するようになっている。   Step 1321 is a step for detecting an undercurrent state. In this step 1321, when the load current Im calculated in step 1316 is smaller than the minimum current Imin calculated in step 1319, a determination of YES is made to indicate an undercurrent state. When the load current Im calculated in step 1316 is not smaller than the minimum current Imin calculated in step 1319, NO is determined to determine that the current is not an undercurrent state, and the flow proceeds to step 1323. It is supposed to migrate.

工程1322は工程1320が過大電流状態を判定したとき、又は工程1321が過小電流状態を判定したときに実行される。そして、通電デューティγを決定するためのデータレジスタD1の値をゼロにして、マイクロプロセッサ111Bの帰還制御出力であるパルス幅変調制御出力PWMを停止すると共に、異常報知出力DSPを発生して警報・表示器109を作動させるようになっている。   Step 1322 is performed when step 1320 determines an overcurrent condition or when step 1321 determines an undercurrent condition. Then, the value of the data register D1 for determining the energization duty γ is set to zero, the pulse width modulation control output PWM which is the feedback control output of the microprocessor 111B is stopped, and the abnormality notification output DSP is generated to The display 109 is activated.

工程1321の判定が過小電流状態ではなかったときに実行される工程1323では、工程1301で設定された目標電流Isと工程1316で算出された負荷電流Imの大小比較判定を行い、比較誤差が所定値以上であるときには工程1324へ移行し、比較誤差が微小であれば動作終了工程1330へ移行するようになっている。   In step 1323, which is executed when the determination in step 1321 is not an undercurrent state, the target current Is set in step 1301 is compared with the load current Im calculated in step 1316, and the comparison error is predetermined. If it is equal to or greater than the value, the process proceeds to step 1324, and if the comparison error is small, the process proceeds to operation end step 1330.

工程1324は、工程1323による比較偏差の大小、正負に応じて、現在の通電デューティγに対して補正値Δγを増減補正して、補正結果に所定倍率Nをかけてその整数値分をRAMメモリ112の特定アドレスのメモリであるデータレジスタD1に格納すると共に、N−D1の値をデータレジスタD2に格納する工程で、所定倍率Nとしては例えばN=1000である。   In step 1324, the correction value Δγ is increased or decreased with respect to the current energization duty γ in accordance with the magnitude or positive / negative of the comparison deviation in step 1323, the correction result is multiplied by a predetermined magnification N, and the integer value is stored in the RAM memory. In the step of storing in the data register D1, which is a memory having a specific address 112, and storing the value of N−D1 in the data register D2, the predetermined magnification N is, for example, N = 1000.

工程1323の判定が比較偏差微小であったとき、又は工程1322、工程1324に続いて移行する動作終了工程1330は待機工程となっていて、マイクロプロセッサ111Bが他の制御フローの実行を行った後に再度動作開始工程1300が活性化されて、工程1300から工程1330に至る制御フローが繰り返し実行されるようになっている。なお、工程1323と工程1324による工程ブロック1325は開閉制御出力発生手段となるもので、パルス幅変調制御による帰還制御出力を発生する帰還制御手段となっている。   When the judgment of the step 1323 is a small comparison deviation, or the operation end step 1330 which shifts to the step 1322 and the step 1324 is a standby step, and after the microprocessor 111B executes another control flow The operation start process 1300 is activated again, and the control flow from the process 1300 to the process 1330 is repeatedly executed. The process block 1325 by the processes 1323 and 1324 serves as an opening / closing control output generating means, and serves as a feedback control means for generating a feedback control output by pulse width modulation control.

以上のとおりに構成された制御フローについて全体概要を説明する。
まず、初期設定手段1306では、帰還制御による適正な通電デューティγがまだ決定されていない段階で、基準負荷電流Irと目標負荷電流Isとを対比し、現在の駆動電源電圧Vbにおける推定通電デューティγ0を決定するようになっている。
An overview of the control flow configured as described above will be described.
First, the initial setting means 1306 compares the reference load current Ir and the target load current Is at a stage where an appropriate energization duty γ by feedback control has not yet been determined, and estimates the energization duty γ0 at the current drive power supply voltage Vb. Is to decide.

換算推定手段1316では、測定された監視電圧Efの値と校正定数に基づいて負荷電流Imが算出され、電流検出抵抗126の固体バラツキや増幅回路部150の電流検出誤差を排除した正確な負荷電流Imが得られるようになっている。その結果、帰還制御手段1325によって目標電流Isと負荷電流Imに偏差があれば、通電率γを増減補正して両者が一致するように制御している。なお、マイクロプロセッサ111Bによるパルス幅変調制御は、第1実施形態で説明した図10と同様に実行され、データレジスタD1の内容によってPWM出力信号のON幅が決定され、データレジスタD2の内容によってOFF幅が決定されるようになっている。   In the conversion estimation means 1316, the load current Im is calculated based on the measured value of the monitoring voltage Ef and the calibration constant, and an accurate load current that eliminates the solid variation of the current detection resistor 126 and the current detection error of the amplifier circuit unit 150 is obtained. Im can be obtained. As a result, if there is a deviation between the target current Is and the load current Im by the feedback control means 1325, the energization rate γ is corrected to increase / decrease and control is performed so that they match. Note that the pulse width modulation control by the microprocessor 111B is executed in the same manner as in FIG. 10 described in the first embodiment, the ON width of the PWM output signal is determined by the contents of the data register D1, and is turned off by the contents of the data register D2. The width is determined.

次に、過大電流状態検出手段1320が過大電流状態の判定を行うときは、電気負荷107の正負の口出線間の短絡である負荷短絡、巻き線間の層間短絡、出力端子108に接続された正相配線と接地端子104Nに接続された接地線、又は車体や大地等に対するの地絡事故等が原因となるものである。   Next, when the overcurrent state detecting means 1320 determines the overcurrent state, it is connected to the load short circuit, which is a short circuit between the positive and negative output wires of the electric load 107, the interlayer short circuit between the windings, and the output terminal 108. This may be caused by a ground fault connected to the normal phase wiring and the grounding wire connected to the grounding terminal 104N or the vehicle body or the ground.

一方、過小電流状態検出手段1321が過小電流状態の判定を行うときは、電気負荷107や配線の断線事故の場合と、正相配線の天絡事故の場合とがある。特に、正相配線の天絡事故において、出力端子108と電源端子104Pが完全短絡した場合には電流検出抵抗126に流れる電流はゼロになるので、目標電流と実際の電流との間に乖離が発生して異常検出を簡単に行うことができる。同様に、断線事故が発生したときにも電流検出抵抗126に流れる電流はゼロになるので、目標電流と実際の電流との間に乖離が発生して異常検出を簡単に行うことができる。   On the other hand, when the undercurrent state detection means 1321 determines the undercurrent state, there are a case where the electric load 107 and the wiring are disconnected and a case where the normal phase wiring is in a power fault. In particular, when the output terminal 108 and the power supply terminal 104P are completely short-circuited due to a power fault of the positive phase wiring, the current flowing through the current detection resistor 126 becomes zero, so there is a discrepancy between the target current and the actual current. Occurrence and abnormality detection can be easily performed. Similarly, when a disconnection accident occurs, the current flowing through the current detection resistor 126 becomes zero, so that a divergence occurs between the target current and the actual current, so that the abnormality detection can be easily performed.

しかし、出力端子108から電気負荷107に至る正相配線の遠隔位置と、電源端子104Pから駆動電源101に至る電源配線の遠隔位置との間で天絡事故が発生した場合には、配線抵抗R0と電流検出抵抗126の抵抗値R1との並列回路が構成され、電流検出抵抗126に流れる電流がR0/(R0+R1)の比率で減少することになる。このような場合には、単に目標電流と実際の電流とを比較するだけでは異常状態を検出することができない状態が発生する。   However, if a power fault occurs between the remote position of the positive phase wiring from the output terminal 108 to the electric load 107 and the remote position of the power supply wiring from the power supply terminal 104P to the drive power supply 101, the wiring resistance R0 And a resistance value R1 of the current detection resistor 126 are configured, and the current flowing through the current detection resistor 126 decreases at a ratio of R0 / (R0 + R1). In such a case, an abnormal state cannot be detected simply by comparing the target current and the actual current.

例えば、抵抗R0による天絡事故が発生している状態で、開閉素子121を完全導通させたときに電流検出抵抗126に分流する電流をIxとしたとき、目標電流がIx以下の値であれば目標値と実測値とが合致するように帰還制御が可能であって、目標値と実測値との間で乖離が発生することはなく、従って異常検出は行えないことになる。しかし、工程1320や工程1321における比較基準は、電気負荷107に印加されている現在の平均電圧Vaを推定して電気負荷107の最大抵抗、最小抵抗から算出される最小電流、最大電流を算出し、これが電流検出抵抗126に流れているかどうかを判定するようになっているので、高精度な異常判定を行うことができるものである。   For example, if the current shunted to the current detection resistor 126 when the switching element 121 is completely turned on in a state where a power fault has occurred due to the resistor R0 is Ix, the target current is a value equal to or less than Ix. Feedback control is possible so that the target value matches the actual measurement value, and no divergence occurs between the target value and the actual measurement value. Therefore, abnormality detection cannot be performed. However, the comparison criteria in step 1320 and step 1321 are to estimate the current average voltage Va applied to the electric load 107 and calculate the minimum resistance and the maximum current calculated from the maximum resistance and the minimum resistance of the electric load 107. Since it is determined whether or not this is flowing through the current detection resistor 126, a highly accurate abnormality determination can be performed.

なお、工程1320や工程1321では、負荷電流Imと最大負荷電流Imax、最小負荷電流Iminとを比較したが、工程1318、工程1319で算出された最大負荷電流Imax、最小負荷電流Iminを増幅回路部150の出力電圧に換算した最大監視電圧Emax、最小監視電圧Eminに変換し、監視電圧Efと最大監視電圧Emax、最小監視電圧Eminとを比較するようにしても良い。要は監視電圧Efと推定平均電圧Vaとの相対関係が異常に乖離していないことを判定すればよいものである。   In step 1320 and step 1321, the load current Im is compared with the maximum load current Imax and the minimum load current Imin. However, the maximum load current Imax and the minimum load current Imin calculated in the steps 1318 and 1319 are compared with each other in the amplification circuit unit. The maximum monitoring voltage Emax and the minimum monitoring voltage Emin converted to an output voltage of 150 may be converted into the monitoring voltage Ef, and the maximum monitoring voltage Emax and the minimum monitoring voltage Emin may be compared. In short, it is only necessary to determine that the relative relationship between the monitoring voltage Ef and the estimated average voltage Va does not deviate abnormally.

以上の説明では、電流検出抵抗126が電気負荷107の上流側に接続されている場合について取り上げたが、電流検出抵抗126が電気負荷の下流位置に接続されるようにした回路形式のものであってもよく、この場合には増幅回路部150の誤差成分には電圧比例成分は含まれず、オフセット成分だけとなる。   In the above description, the case where the current detection resistor 126 is connected to the upstream side of the electric load 107 is taken up. However, the current detection resistor 126 is a circuit type in which the current detection resistor 126 is connected to the downstream position of the electric load. In this case, the error component of the amplifier circuit unit 150 does not include the voltage proportional component, but only the offset component.

また、第1実施形態を示す図1、第2実施形態を示す図11において、転流ダイオード127は電流検出抵抗126と電気負荷107の直列回路に対して並列接続されているが、電流検出抵抗126を転流ダイオード127の外部に接続するようにしてもよい。この場合、開閉素子121が開路している時に、増幅回路部150に入力される負電圧が軽減される特徴があるが、検出電流の脈動変動が増大するので平滑回路160の平滑時定数を大きくしておく必要がある。   Further, in FIG. 1 showing the first embodiment and FIG. 11 showing the second embodiment, the commutation diode 127 is connected in parallel to the series circuit of the current detection resistor 126 and the electric load 107. 126 may be connected to the outside of the commutation diode 127. In this case, when the open / close element 121 is open, the negative voltage input to the amplifier circuit unit 150 is reduced. However, since the pulsation fluctuation of the detection current increases, the smoothing time constant of the smoothing circuit 160 is increased. It is necessary to keep it.

更に、第1実施形態を示す図1、第2実施形態を示す図11において、校正用の電流計、電圧計、温度計はデジタル出力を発生し、外部ツール900、990を介してマイクロプロセッサ111A、111Bに入力するようにしたが、アナログメータを使用した場合にはアナログ入力群105aの一部としてアナログ入力ポートAINからマイクロプロセッサ111A、111Bに入力することも可能である。   Further, in FIG. 1 showing the first embodiment and FIG. 11 showing the second embodiment, the ammeter, voltmeter and thermometer for calibration generate digital outputs, and the microprocessor 111A is connected via the external tools 900 and 990. 111B, however, when an analog meter is used, it is also possible to input to the microprocessors 111A and 111B from the analog input port AIN as part of the analog input group 105a.

また、不揮発データメモリ114A、114Bは、不揮発プログラムメモリ113A、113Bの一部領域を使用することも可能であって、この場合には前述した「不揮発データメモリ114A、114Bに対するデータの読出し・書込み」は、「不揮発プログラムメモリ113A、113Bのデータメモリ領域に対するデータの読出し・書込み」と読み替えて表現する必要がある。   The nonvolatile data memories 114A and 114B can also use partial areas of the nonvolatile program memories 113A and 113B. In this case, the above-described “reading / writing of data with respect to the nonvolatile data memories 114A and 114B” Needs to be read as “read / write data to / from the data memory area of the non-volatile program memory 113A, 113B”.

なお、以上の説明では目標負荷電流Isが可変一定の値であって、高頻度な変化がなく、電流検出抵抗126の熱時定数が例えば数秒程度のものである場合に有効であり、もしも電気負荷107に対する通電電流が高頻度に変化する高速駆動用の過励磁電流と動作保持用の低定電流である場合には、高頻度に変化する大小の電流の二乗平均値を用いて現在の電流検出抵抗126の温度上昇を推定するようにすればよい。いずれの場合も、複数の電気負荷と当該各電気負荷と直列接続された複数の電流検出抵抗と、内部環境温度を測定する一つの温度検出素子とを有する電気負荷の電流制御装置において、個々の電流検出抵抗の温度を推定して、電流検出抵抗の抵抗値がその温度によって変化することに伴う電流制御精度の低下と線形性誤差の発生を防止することができるものである。   The above description is effective when the target load current Is is a variable and constant value, does not change frequently, and the thermal time constant of the current detection resistor 126 is, for example, about several seconds. When the energization current to the load 107 is a high-speed driving overexcitation current that changes frequently and a low constant current for maintaining operation, the current current is calculated using the mean square value of large and small currents that change frequently. The temperature rise of the detection resistor 126 may be estimated. In any case, in the current control device for an electric load having a plurality of electric loads, a plurality of current detection resistors connected in series with each electric load, and one temperature detection element for measuring the internal environment temperature, By estimating the temperature of the current detection resistor, it is possible to prevent a decrease in current control accuracy and the occurrence of a linearity error due to the resistance value of the current detection resistor changing depending on the temperature.

また、図8(B)(C)(D)と図18(B)(C)(D)で示されたデータテーブルにおいては、常温環境と高温環境における内部環境温度T(=Tb、Td)において校正運転が行なわれ、他の内部環境温度T(=Ta、Tc、Te)においては統計的手法によって補間・延長して算出するようになっている。しかし、多数の実験サンプルに基づいて、電流比例係数Bと誤差成分の電圧比例係数(A又はD)とオフセット成分Cに関する温度変動特性が測定され、標準的な温度変動特性が予め捕捉されている場合にあっては、出荷現品に関する校正運転は常温環境、又は高温環境のいずれか一方において行って、他の温度環境においては上記標準的な温度変動特性を参照して各校正定数を推定することが可能となるものである。   Further, in the data tables shown in FIGS. 8B, 8C, 8D, and 18B, 18C, 18D, the internal environment temperature T (= Tb, Td) in the normal temperature environment and the high temperature environment. A calibration operation is performed at, and other internal environmental temperatures T (= Ta, Tc, Te) are calculated by interpolation / extension by a statistical method. However, based on a large number of experimental samples, the temperature fluctuation characteristics relating to the current proportionality coefficient B, the error voltage proportionality coefficient (A or D), and the offset component C are measured, and the standard temperature fluctuation characteristics are captured in advance. In some cases, the calibration operation for the actual product should be performed in either a normal temperature environment or a high temperature environment, and in other temperature environments, each calibration constant should be estimated by referring to the standard temperature fluctuation characteristics described above. Is possible.

以上詳説したように、第2実施形態による電気負荷の電流制御装置は、駆動電源101からから給電され、開閉素子121と電流検出抵抗126と電気負荷107とが直列接続された給電回路部と、電気負荷107に対する目標負荷電流Isと電流検出抵抗126による検出負荷電流Imとが一致する関係に開閉素子121のON/OFF比率を制御する制御回路部とを備えた電気負荷の電流制御装置100Bであって、前記制御回路部は更に、不揮発プログラムメモリ113Bと不揮発データメモリ114Bと演算処理用RAMメモリ112と多チャンネルAD変換器115とを備えたマイクロプロセッサ111Bと、電流検出用増幅回路部150と、温度検出回路170とを備え、不揮発プログラムメモリ113Bは更に、制御定数校正手段1208と、換算推定手段1316と、帰還制御手段1325となる制御プログラムを包含している。   As described in detail above, the current control device for an electric load according to the second embodiment is fed from the drive power supply 101, and a power feeding circuit unit in which the switching element 121, the current detection resistor 126, and the electric load 107 are connected in series, In the electric load current control device 100B, the control circuit unit controls the ON / OFF ratio of the switching element 121 so that the target load current Is for the electric load 107 and the detected load current Im by the current detection resistor 126 coincide with each other. The control circuit unit further includes a microprocessor 111B including a nonvolatile program memory 113B, a nonvolatile data memory 114B, an arithmetic processing RAM memory 112, and a multi-channel AD converter 115, a current detection amplifying circuit unit 150, Temperature detection circuit 170, and nonvolatile program memory 113B further includes control constant calibration. A stage 1208, a conversion estimating means 1316, encompasses a control program of the feedback control means 1325.

増幅回路部150は、電気負荷107に直列接続された電流検出抵抗126の両端電圧を増幅し、電気負荷107に対する負荷電流Imに比例した電流比例成分を主体とし、誤差成分ΔEfを包含した監視電圧Efを発生して、負帰還制御情報及び校正情報として前記マイクロプロセッサ111Bに入力する。また、温度検出回路170は、電流制御装置100Bの内部環境温度T(=Ta〜Te)に対応した測定電圧Vt(=Vta〜Vte)を発生して、当該測定電圧Vtは多チャンネルAD変換器115を介してマイクロプロセッサ111Bに入力される。   The amplifying circuit unit 150 amplifies the voltage across the current detection resistor 126 connected in series to the electric load 107, and mainly includes a current proportional component proportional to the load current Im with respect to the electric load 107, and includes a monitoring voltage including an error component ΔEf. Ef is generated and input to the microprocessor 111B as negative feedback control information and calibration information. Further, the temperature detection circuit 170 generates a measurement voltage Vt (= Vta to Vte) corresponding to the internal environment temperature T (= Ta to Te) of the current control device 100B, and the measurement voltage Vt is a multi-channel AD converter. 115 to the microprocessor 111B.

制御定数校正手段1208は、常温環境と高温環境の一方、又は両方の内部環境湿度T(=Tb、Td)において、外部設置された校正用電流計991dによる実負荷電流Immに基づいて監視電圧Efの電流比例成分に関する電流比例係数B(=Bb、Bd)と誤差成分ΔEf(=ΔEfb、ΔEfd)とを算出して、温度検出回路170によって検出された実使用内部環境温度T(=Ta〜Te)と、可変の目標負荷電流Isi(i=0、1、・・n)に対応した電流比例係数Bi(=Bai〜Bei)と誤差成分ΔEf(=ΔEfa〜ΔEfe)を補間算出する演算算式、又はデータテーブルを不揮発データメモリ114Bに保存する。   The control constant calibration means 1208 is configured to monitor the voltage Ef based on the actual load current Imm from the calibration ammeter 991d installed externally in one or both of the ambient environment temperature T and the ambient temperature T (= Tb, Td). A current proportional coefficient B (= Bb, Bd) and an error component ΔEf (= ΔEfb, ΔEfd) are calculated for the current proportional component of the actual use internal environment temperature T (= Ta to Te) detected by the temperature detection circuit 170. ), A current proportionality factor Bi (= Bai to Bei) corresponding to a variable target load current Isi (i = 0, 1,... N) and an error calculation ΔEf (= ΔEfa to ΔEfe). Alternatively, the data table is stored in the nonvolatile data memory 114B.

換算推定手段1316は、監視電圧Efと実使用内部環境温度Tに対応した電流比例係数に基づいて推定負荷電流Imを算出するか、又はマイクロプロセッサ111Bによって決定される目標負荷電流Isと同じ電流が電気負荷107に流れたと仮定した場合に、実使用内部環境温度Tに対応した推定監視電圧Esを算出する。   The conversion estimating means 1316 calculates the estimated load current Im based on the current proportionality coefficient corresponding to the monitoring voltage Ef and the actual use internal environment temperature T, or the same current as the target load current Is determined by the microprocessor 111B. When it is assumed that the electric load 107 has flowed, an estimated monitoring voltage Es corresponding to the actual use internal environment temperature T is calculated.

帰還制御手段1325は、目標負荷電流Isを制御目標値とし、推定負荷電流Imを帰還値として開閉素子121の閉路期間/開閉周期である通電デューティγを制御するか、又は推定監視電圧Esを制御目標値とし、監視電圧Efを帰還値として開閉素子121の閉路期間/開閉周期である通電デューティγを制御する。   The feedback control means 1325 uses the target load current Is as a control target value and the estimated load current Im as a feedback value to control the energization duty γ that is the closing period / opening / closing cycle of the switching element 121 or to control the estimated monitoring voltage Es. The energization duty γ which is the closing period / opening / closing cycle of the switching element 121 is controlled using the monitoring voltage Ef as a feedback value as the target value.

以上のように、第2実施形態による電気負荷の電流制御装置は、目標電流を設定し、負荷電流に比例した検出信号が入力されて、偏差信号電圧に応動したデューティのパルス出力を発生するマイクロプロセッサ111Bを備えたものであって、製品の出荷段階で外部設置された校正用電流計を用いて電流制御特性の固体バラツキ変動、及び温度変動を補正する校正運転が行われ、当該校正運転は常温環境と高温環境の少なくとも一方において実施されて、制御要素の固体バラツキ変動と温度による特性変動、及び自己発熱による電流検出抵抗126の抵抗値の変動による誤差要因に基づいた校正定数を得るようになっている。従って、検出誤差の校正は検出誤差の発生要因別に行われ、しかも温度変動要因を加味して校正されているので、様々な運転環境における電流制御装置の運転中において校正定数を的確に活用して、高精度な電流制御が行えると共に、簡易な外部校正設備によって手軽に校正運転が行える特徴がある。   As described above, the current control device for an electric load according to the second embodiment sets a target current, receives a detection signal proportional to the load current, and generates a pulse output with a duty corresponding to the deviation signal voltage. A calibration operation that includes a processor 111B and that corrects fluctuations in solids of current control characteristics and temperature fluctuations using a calibration ammeter that is installed externally at the product shipment stage. It is implemented in at least one of a normal temperature environment and a high temperature environment so as to obtain a calibration constant based on an error factor due to a variation in solids of a control element, a characteristic variation due to temperature, and a variation in resistance value of the current detection resistor 126 due to self-heating. It has become. Therefore, calibration of detection error is performed for each cause of detection error, and it is calibrated taking into account the factor of temperature fluctuation, so the calibration constant can be used properly during operation of the current control device in various operating environments. In addition to being able to perform high-precision current control, it is characterized by easy calibration operation with a simple external calibration facility.

また、第2実施形態による電気負荷の電流制御装置の前記制御回路部は更に、分圧抵抗191b、192bからなる電源電圧測定回路を備えると共に、不揮発プログラムメモリ113Bは更に、校正係数演算手段1240Bと転送保存手段1203Bとなる制御プログラムを包含している。   In addition, the control circuit unit of the current control device for an electric load according to the second embodiment further includes a power supply voltage measurement circuit including voltage dividing resistors 191b and 192b, and the nonvolatile program memory 113B further includes a calibration coefficient calculation unit 1240B. A control program serving as the transfer storage unit 1203B is included.

前記電源電圧測定回路は、駆動電源101の駆動電源電圧Vbを分圧回路を介してマイクロプロセッサ111Bに入力し、電源監視電圧Vfを得る回路である。また、校正係数演算手段1240Bは、開閉素子121の通電デューティをγとし、転流ダイオード127の電圧降下をVd≒1Vとしたときに、電流検出用増幅回路部150による監視電圧の平均値Efと駆動電源電圧Vbと負荷電流Imとの関係が、
Ef=A×(Vb+Vd)×γ+B×Im+C
であるとし、この式における誤差成分となるオフセット成分Cと電圧比例係数A、及び電流比例係数Bは校正運転による測定データから算出する。
The power supply voltage measurement circuit is a circuit for obtaining a power supply monitoring voltage Vf by inputting the drive power supply voltage Vb of the drive power supply 101 to the microprocessor 111B through a voltage dividing circuit. Further, the calibration coefficient calculating means 1240B sets the average value Ef of the monitoring voltage by the current detecting amplifier circuit 150 when the energization duty of the switching element 121 is γ and the voltage drop of the commutation diode 127 is Vd≈1V. The relationship between the drive power supply voltage Vb and the load current Im is
Ef = A × (Vb + Vd) × γ + B × Im + C
And the offset component C, the voltage proportionality factor A, and the current proportionality factor B, which are error components in this equation, are calculated from the measurement data from the calibration operation.

転送保存手段1203Bは、校正係数演算手段1240Bによる演算結果である電圧比例係数Aと電流比例係数Bとオフセット成分Cの値を校正定数として不揮発データメモリ114Bに転送保存する。前記校正定数は常温環境と高温環境の少なくとも2種類の環境温度において算出され、2種類の内部環境温度T(=Tb、Td)と、電圧比例係数A(=Ab、Ad)と、電流比例係数B(=Bb、Bd)、及びオフセット成分C(=Cb、Cd)が転送保存される。   The transfer storage unit 1203B transfers and stores the values of the voltage proportionality factor A, the current proportionality factor B, and the offset component C, which are the calculation results of the calibration coefficient calculation unit 1240B, as calibration constants in the nonvolatile data memory 114B. The calibration constant is calculated at at least two kinds of ambient temperatures, a normal temperature environment and a high temperature environment, and two kinds of internal environment temperatures T (= Tb, Td), a voltage proportional coefficient A (= Ab, Ad), and a current proportional coefficient. B (= Bb, Bd) and offset component C (= Cb, Cd) are transferred and stored.

以上のように、第2実施形態による電気負荷の電流制御装置は、分圧抵抗191b、192bで構成される電源電圧測定回路と、校正係数演算手段1240Bと、転送保存手段1203Bとを備えている。従って、要因別の校正定数を手順良く効率的に算出、保存することができるので、量産製品に対する生産ラインの中で手軽な自動化設備を付加することによって校正操作が行える特徴がある。   As described above, the electric load current control apparatus according to the second embodiment includes the power supply voltage measurement circuit including the voltage dividing resistors 191b and 192b, the calibration coefficient calculation unit 1240B, and the transfer storage unit 1203B. . Accordingly, the calibration constants for each factor can be calculated and stored efficiently in a step-by-step manner, and the calibration operation can be performed by adding a simple automated facility in the production line for mass-produced products.

また、第2実施形態による電気負荷の電流制御装置の校正係数演算手段1240Bは更に、電源電圧校正手段1243を包含している。   The calibration coefficient calculation means 1240B of the electric load current control apparatus according to the second embodiment further includes a power supply voltage calibration means 1243.

電源電圧校正手段1243は、前記校正運転において、電源監視電圧VfをRAMメモリ112に書込み記憶して、外部設置された校正用電圧計992dによって測定された駆動電源電圧Vbと対比して電源電圧校正係数Kv=Vb/Vfを算出し、不揮発データメモリ114Bに格納するか、又は駆動電源電圧Vbに対する分圧比率の逆数として予め定められた固定定数を適用するようになっている。   In the calibration operation, the power supply voltage calibration unit 1243 writes and stores the power supply monitoring voltage Vf in the RAM memory 112 and compares the drive power supply voltage Vb measured by the externally installed calibration voltmeter 992d with the power supply voltage calibration. The coefficient Kv = Vb / Vf is calculated and stored in the nonvolatile data memory 114B, or a fixed constant determined in advance as the reciprocal of the voltage division ratio with respect to the drive power supply voltage Vb is applied.

以上のように、第2実施形態による電気負荷の電流制御装置は、電源電圧校正手段1243を備えている。従って、駆動電源電圧Vbを正確に算出することができると共に、算出電圧を他の目的に利用することができる特徴がある。   As described above, the electric load current control apparatus according to the second embodiment includes the power supply voltage calibration means 1243. Therefore, the driving power supply voltage Vb can be accurately calculated and the calculated voltage can be used for other purposes.

また、第2実施形態による電気負荷の電流制御装置の不揮発プログラムメモリ113Bは更に、線形性校正手段1257となる制御プログラムを備えている。   Further, the nonvolatile program memory 113B of the electric load current control apparatus according to the second embodiment further includes a control program serving as the linearity calibration means 1257.

線形性校正手段1257は、複数の目標負荷電流Isi(i=0〜n)による校正運転において、外部設置された校正用電流計991dによって測定された実負荷電流Immiに基づいて、監視電圧Efの中の電流比例成分の電流比例係数Bi=B×(Isi/Immi)を算出する。線形性校正手段1257による電流比例係数Biの算出は、常温環境と高温環境の一方、又は両方の内部環境温度T(=Tb、Td)において実行され、実用内部環境T(=Ta〜Te)における電流比例係数Bai〜Beiの値が近似算式、又はデータテーブルとして不揮発データメモリ114Bに保存される。   The linearity calibration unit 1257 calculates the monitoring voltage Ef based on the actual load current Immi measured by an externally installed calibration ammeter 991d in a calibration operation using a plurality of target load currents Isi (i = 0 to n). The current proportionality coefficient Bi = B × (Isi / Immi) of the current proportional component is calculated. The calculation of the current proportionality factor Bi by the linearity calibration means 1257 is executed at one or both internal temperature T (= Tb, Td) in the normal temperature environment and the high temperature environment, and in the practical internal environment T (= Ta to Te). The values of the current proportional coefficients Bai to Bei are stored in the nonvolatile data memory 114B as approximate formulas or data tables.

以上のように、第2実施形態による電気負荷の電流制御装置は、線形性校正手段1257を備え、目標電流に比例した負荷電流が得られるように電流比例計数Biの補正を行うようになっている。従って、温度検出回路170は単に電流制御装置内部の環境温度を測定しているものであって、電流検出抵抗126そのものの温度を直接検出するものではないのに対し、電流検出抵抗126の温度が負荷電流の二乗に比例して変化し、これに伴って電流検出抵抗126の抵抗値が変化することによって電流制御の非線形誤差が発生するのを防止することができる特徴がある。   As described above, the current control device for an electric load according to the second embodiment includes the linearity calibration unit 1257, and corrects the current proportionality factor Bi so that a load current proportional to the target current can be obtained. Yes. Therefore, the temperature detection circuit 170 merely measures the environmental temperature inside the current control device and does not directly detect the temperature of the current detection resistor 126 itself, whereas the temperature of the current detection resistor 126 There is a feature that it is possible to prevent a non-linear error in current control from occurring due to a change in proportion to the square of the load current and a change in the resistance value of the current detection resistor 126 accordingly.

また、第2実施形態による電気負荷の電流制御装置の線形性校正手段1257により算出される電流比例係数Biは、温度検出回路170による検出温度をTとし、目標負荷電流をIsiとしたときに近似算式として、Bi=B/[K1+K2×T+K3×Isi]の算式が適用される。線形性校正手段1257は、常温環境と高温環境の少なくとも一方において複数の目標負荷電流Isiに対応した電流比例係数Biを算出し、上記算式によって算式定数B、K1、K2、K3を算出して、当該算式定数を不揮発データメモリ114Bに書込み保存するようになっている。 The current proportionality factor Bi calculated by the linearity calibration means 1257 of the electric load current control device according to the second embodiment is approximated when the temperature detected by the temperature detection circuit 170 is T and the target load current is Isi. As a formula, a formula of Bi = B / [K1 + K2 × T + K3 × Isi 2 ] is applied. The linearity calibration means 1257 calculates current proportionality coefficients Bi corresponding to a plurality of target load currents Isi in at least one of a normal temperature environment and a high temperature environment, and calculates formula constants B, K1, K2, and K3 by the above formula, The formula constant is written and stored in the nonvolatile data memory 114B.

以上のように、第2実施形態による電気負荷の電流制御装置は、電流比例係数Biを算出する線形性校正手段1257を備え、電流比例係数Biは目標電流の二乗に反比例して補正されるようになっている。従って、簡易な近似算式により電流比例係数Biの補正を行うことができる特徴がある。   As described above, the current control device for an electric load according to the second embodiment includes the linearity calibration unit 1257 for calculating the current proportionality factor Bi, and the current proportionality factor Bi is corrected in inverse proportion to the square of the target current. It has become. Therefore, the current proportionality factor Bi can be corrected by a simple approximation formula.

100A、100B 電流制御装置
101 駆動電源
107 電気負荷
111A、111B マイクロプロセッサ
112 RAMメモリ
113A、113B プログラムメモリ
114A、114B データメモリ
115 AD変換器
116 シリアルインタフェース
121 開閉素子
126 電流検出抵抗
127 転流ダイオード
130 目標電流設定回路
140 比較偏差積分回路(帰還制御回路)
150 増幅回路部
151 差動増幅器
170 温度検出回路
900、990 外部ツール
901d、991d 校正用電流計
902d、992d 校正用電圧計
903d、993d 校正用温度計
203A、1203B 転送保存手段
240A、1240B 校正係数演算手段
207、1207 検出温度校正手段
208、1208 制御定数校正手段
243 平均電圧校正手段
1243 電源電圧校正手段
257、1257 線形性校正手段
319 換算設定手段
1316 換算推定手段
1325 帰還制御手段(開閉制御出力発生手段)
Ef 監視電圧
Es 目標電圧(推定監視電圧)
PWM 制御出力
Vb 駆動電源電圧
Vcc 制御電源電圧
Va 監視平均電圧
Vf 電源監視電圧
Vt 測定電圧
Is 目標負荷電流
Im 負荷電流(推定負荷電流、検出負荷電流)
Imm 実負荷電流
100A, 100B Current control device 101 Drive power supply 107 Electric load 111A, 111B Microprocessor 112 RAM memory 113A, 113B Program memory 114A, 114B Data memory 115 AD converter 116 Serial interface
121 switching element 126 current detection resistor 127 commutation diode 130 target current setting circuit 140 comparative deviation integrating circuit (feedback control circuit)
150 Amplifier circuit section 151 Differential amplifier 170 Temperature detection circuit 900, 990 External tool 901d, 991d Calibration ammeter 902d, 992d Calibration voltmeter 903d, 993d Calibration thermometer 203A, 1203B Transfer storage means 240A, 1240B Calibration coefficient calculation Means 207, 1207 Detection temperature calibration means 208, 1208 Control constant calibration means 243 Average voltage calibration means 1243 Power supply voltage calibration means 257, 1257 Linearity calibration means 319 Conversion setting means 1316 Conversion estimation means 1325 Feedback control means (open / close control output generation means) )
Ef Monitoring voltage Es Target voltage (estimated monitoring voltage)
PWM control output Vb Drive power supply voltage Vcc Control power supply voltage Va Monitor average voltage Vf Power supply monitor voltage Vt Measurement voltage
Is Target load current Im Load current (estimated load current, detected load current)
Imm Actual load current

Claims (13)

駆動電源から給電されると共に、開閉素子と電流検出抵抗と電気負荷とが直列接続された給電回路部と、前記電気負荷に対する目標負荷電流と前記電流検出抵抗による検出負荷電流とが一致する関係に前記開閉素子を制御する制御回路部と、
を備えた電気負荷の電流制御装置であって、
前記制御回路部は更に、
制御定数校正手段、及び換算設定手段となる制御プログラムを包含する不揮発プログラムメモリと、不揮発データメモリとを備えたマイクロプロセッサと、
前記電流検出抵抗の両端電圧を増幅すると共に、前記電気負荷に対する負荷電流に比例した電流比例成分を主体とし、誤差成分を包含して発生する監視電圧を前記マイクロプロセッサに入力する増幅回路部と、
前記電流制御装置の内部環境温度に対応した測定電圧を発生し、当該測定電圧を前記マイクロプロセッサに入力する温度検出回路と、
目標負荷電流に対応した推定監視電圧を制御目標値とし、前記監視電圧を帰還値として前記開閉素子の通電を制御する帰還制御回路と、を備え、
前記制御定数校正手段は、常温環境と高温環境の一方、又は両方の内部環境温度において、外部設置された校正用電流計による実負荷電流に基づいて前記監視電圧の電流比例成分に関する電流比例係数と誤差成分とを分離算出して、前記温度検出回路によって検出された実使用内部環境温度と、可変の目標負荷電流に対応した電流比例係数と誤差成分を補間算出する演算算式、又はデータテーブルを前記不揮発データメモリに保存し、
前記換算設定手段は、前記マイクロプロセッサによって決定される目標負荷電流と同じ電流が前記電気負荷に流れたと仮定した場合に、前記実使用内部環境温度に対応した前記電流比例係数と誤差成分に基づいて前記推定監視電圧を算出することを特徴とする電気負荷の電流制御装置。
A power supply circuit unit in which power is supplied from the drive power source and the switching element, the current detection resistor, and the electric load are connected in series, and the target load current for the electric load and the detection load current by the current detection resistor coincide with each other. A control circuit unit for controlling the open / close element;
A current control device for an electric load comprising:
The control circuit unit further includes
A non-volatile program memory including a control program serving as a control constant calibration unit and a conversion setting unit; and a microprocessor including a non-volatile data memory;
An amplification circuit unit that amplifies the voltage across the current detection resistor, inputs a monitoring voltage generated mainly including a current proportional component proportional to a load current to the electric load, and includes an error component, to the microprocessor;
A temperature detection circuit that generates a measurement voltage corresponding to the internal environmental temperature of the current control device, and inputs the measurement voltage to the microprocessor;
A feedback control circuit for controlling the energization of the switching element using the estimated monitoring voltage corresponding to the target load current as a control target value, and using the monitoring voltage as a feedback value;
The control constant calibration means includes a current proportionality factor relating to a current proportional component of the monitoring voltage based on an actual load current from an externally installed calibration ammeter at one or both of a normal temperature environment and a high temperature environment. A calculation formula or data table for calculating and interpolating an error component and an actual use internal environment temperature detected by the temperature detection circuit, a current proportional coefficient corresponding to a variable target load current, and an error component by separately calculating an error component Save to non-volatile data memory,
The conversion setting means is based on the current proportional coefficient and the error component corresponding to the actual use internal environment temperature, assuming that the same current as the target load current determined by the microprocessor flows to the electric load. A current control device for an electric load, wherein the estimated monitoring voltage is calculated.
駆動電源から給電されると共に、開閉素子と電流検出抵抗と電気負荷とが直列接続された給電回路部と、前記電気負荷に対する目標負荷電流と前記電流検出抵抗による検出負荷電流とが一致する関係に前記開閉素子を制御する制御回路部と、
を備えた電気負荷の電流制御装置であって、
前記制御回路部は更に、
制御定数校正手段、換算推定手段、及び帰還制御手段となる制御プログラムを包含する不揮発プログラムメモリと、不揮発データメモリとを備えたマイクロプロセッサと、
前記電流検出抵抗の両端電圧を増幅すると共に、前記電気負荷に対する負荷電流に比例した電流比例成分を主体とし、誤差成分を包含して発生する監視電圧を前記マイクロプロセッサに入力する増幅回路部と、
前記電流制御装置の内部環境温度に対応した測定電圧を発生し、当該測定電圧を前記マイクロプロセッサに入力する温度検出回路と、
を備え、
前記制御定数校正手段は、常温環境と高温環境の一方、又は両方の内部環境温度において、外部設置された校正用電流計による実負荷電流に基づいて前記監視電圧の電流比例成分に関する電流比例係数と誤差成分とを分離算出して、前記温度検出回路によって検出された実使用内部環境温度と、可変の目標負荷電流に対応した電流比例係数と誤差成分を補間算出する演算算式、又はデータテーブルを前記不揮発データメモリに保存し、
前記換算推定手段は、前記監視電圧と前記実使用内部環境温度に対応した電流比例係数に基づいて推定負荷電流を算出するか、又は前記マイクロプロセッサによって決定される目標負荷電流と同じ電流が前記電気負荷に流れたと仮定した場合に、前記実使用内部環境温度に対応した推定監視電圧を算出し、
前記帰還制御手段は、前記目標負荷電流を制御目標値とし、前記推定負荷電流を帰還値として前記開閉素子の通電デューティを制御するか、又は前記推定監視電圧を制御目標値として前記監視電圧を帰還値として前記開閉素子の通電デューティを制御することを特徴とする電気負荷の電流制御装置。
A power supply circuit unit in which power is supplied from the drive power source and the switching element, the current detection resistor, and the electric load are connected in series, and the target load current for the electric load and the detection load current by the current detection resistor coincide with each other. A control circuit unit for controlling the open / close element;
A current control device for an electric load comprising:
The control circuit unit further includes
A microprocessor including a non-volatile program memory including a control program that serves as a control constant calibration unit, a conversion estimation unit, and a feedback control unit; and a non-volatile data memory;
An amplification circuit unit that amplifies the voltage across the current detection resistor, inputs a monitoring voltage generated mainly including a current proportional component proportional to a load current to the electric load, and includes an error component, to the microprocessor;
A temperature detection circuit that generates a measurement voltage corresponding to the internal environmental temperature of the current control device, and inputs the measurement voltage to the microprocessor;
With
The control constant calibration means includes a current proportionality factor relating to a current proportional component of the monitoring voltage based on an actual load current from an externally installed calibration ammeter at one or both of a normal temperature environment and a high temperature environment. A calculation formula or data table for calculating and interpolating an error component and an actual use internal environment temperature detected by the temperature detection circuit, a current proportional coefficient corresponding to a variable target load current, and an error component by separately calculating an error component Save to non-volatile data memory,
The conversion estimating means calculates an estimated load current based on a current proportionality factor corresponding to the monitoring voltage and the actual use internal environment temperature, or the same current as a target load current determined by the microprocessor is the electric current. Assuming that it has flowed to the load, calculate the estimated monitoring voltage corresponding to the actual internal environment temperature,
The feedback control means controls the energization duty of the switching element using the target load current as a control target value and the estimated load current as a feedback value, or feeds back the monitoring voltage using the estimated monitoring voltage as a control target value. A current control device for an electric load, wherein the duty ratio of the switching element is controlled as a value.
前記不揮発プログラムメモリは更に、検出温度校正手段となる制御プログラムを包含し、前記検出温度校正手段は、常温環境と高温環境の少なくとも一方の温度環境において、前記温度検出回路の測定電圧のデジタル変換値と、既知の内部環境温度、又は外部設置された校正用温度計による推定内部環境温度を対比し、適用された温度検出回路における所定の温度対測定電圧特性に基づいて、実際の測定電圧から実使用内部環境温度を算出する演算算式、又はデータテーブルを前記不揮発データメモリに保存することを特徴とする請求項1又は請求項2に記載の電気負荷の電流制御装置。   The nonvolatile program memory further includes a control program serving as a detection temperature calibration unit, and the detection temperature calibration unit is a digital conversion value of a measurement voltage of the temperature detection circuit in at least one of a normal temperature environment and a high temperature environment. Is compared with the known internal environment temperature or the estimated internal environment temperature by an externally installed calibration thermometer, and the actual temperature is measured based on the predetermined temperature vs. measured voltage characteristics in the applied temperature detection circuit. The current control device for an electric load according to claim 1 or 2, wherein an arithmetic expression for calculating a use internal environmental temperature or a data table is stored in the nonvolatile data memory. 前記不揮発プログラムメモリは更に、検出温度校正手段となる制御プログラムを包含し、前記検出温度校正手段は、常温環境と高温環境の両方の温度環境において、前記温度検出回路の測定電圧のデジタル変換値と、既知の内部環境温度、又は外部設置された校正用温度計による推定内部環境温度を対比し、実際の測定電圧から実使用環境温度を算出する補間演算算式、又はデータテーブルを前記不揮発データメモリに保存することを特徴とする請求項1又は請求項2に記載の電気負荷の電流制御装置。   The nonvolatile program memory further includes a control program serving as a detection temperature calibration unit, and the detection temperature calibration unit includes a digital conversion value of a measurement voltage of the temperature detection circuit in both a normal temperature environment and a high temperature environment. Comparing the known internal environment temperature or the estimated internal environment temperature with a calibration thermometer installed externally, the interpolation calculation formula to calculate the actual use environment temperature from the actual measurement voltage, or the data table in the nonvolatile data memory The electrical load current control device according to claim 1 or 2, wherein the current control device is stored. 前記制御回路部は更に、外部ツールと前記マイクロプロセッサとの間を接続するシリアル通信用インタフェース回路を備え、
前記制御定数校正手段、又は前記検出温度校正手段における校正指令と、外部設置された校正用の電流計、又は温度計の測定値は、前記外部ツールから入力されて前記マイクロプロセッサのRAMメモリに転送書込みされるものであることを特徴とする請求項3又は請求項4に記載の電気負荷の電流制御装置。
The control circuit unit further includes a serial communication interface circuit for connecting between an external tool and the microprocessor.
The calibration command in the control constant calibration means or the detected temperature calibration means and the calibration ammeter or thermometer measurement value externally installed are input from the external tool and transferred to the RAM memory of the microprocessor. The current control device for an electric load according to claim 3 or 4, wherein the current control device is written.
前記給電回路部は、前記電流検出抵抗と前記電気負荷との直列回路に対して並列接続されるか、又は前記電気負荷に対して直接的に並列接続され、前記開閉素子が開路したときに前記電気負荷のインダクタンスによる持続減衰電流が還流する極性に接続される転流ダイオードを備えると共に、
前記増幅回路部は、前記電流検出抵抗の両端電圧の差分電圧を増幅する差動増幅器と、前記差動増幅器の入力に対して略均等な正のバイアス電圧を印加して、前記開閉素子が開路しているときに前記転流ダイオードの電圧降下によって印加される負電圧を相殺し、前記差動増幅器に負電圧入力が印加されないようにするバイアス補正回路を備え、
前記制御定数校正手段は更に、前記常温環境と高温環境の少なくとも2種類の内部環境温度において、前記監視電圧の電流比例係数に加えて誤差成分の電圧比例係数とオフセット成分の少なくとも一方が算出され、実使用内部環境温度における電圧比例係数又はオフセット成分を補間算出する演算算式、又はデータテーブルを前記不揮発データメモリに保存することを特徴とする請求項1又は請求項2に記載の電気負荷の電流制御装置。
The power supply circuit unit is connected in parallel to a series circuit of the current detection resistor and the electric load, or directly connected in parallel to the electric load, and when the switching element is opened Comprising a commutation diode connected to the polarity where the sustained decay current due to the inductance of the electrical load circulates;
The amplifying circuit unit applies a substantially equal positive bias voltage to a differential amplifier for amplifying a differential voltage between voltages across the current detection resistor, and an input of the differential amplifier, so that the switching element is opened. A bias correction circuit for canceling a negative voltage applied by a voltage drop of the commutation diode when the current is applied and preventing a negative voltage input from being applied to the differential amplifier;
The control constant calibration means further calculates at least one of a voltage proportional coefficient and an offset component of an error component in addition to the current proportional coefficient of the monitoring voltage at at least two types of internal environmental temperatures of the normal temperature environment and the high temperature environment. The current control of the electric load according to claim 1 or 2, wherein a calculation formula for interpolating a voltage proportionality coefficient or an offset component at an actual use internal environmental temperature or a data table is stored in the nonvolatile data memory. apparatus.
前記制御回路部は更に、前記電気負荷の両端電圧を分圧回路を介して前記マイクロプロセッサに入力することにより監視平均電圧を得る平均電圧測定回路を備えると共に、前記不揮発プログラムメモリは更に、校正係数演算手段と転送保存手段となる制御プログラムを包含するものであって、
前記校正係数演算手段は、前記増幅回路部による監視電圧の平均値をEf、前記監視平均電圧をVa、負荷電流をIm、誤差成分となるオフセット成分をC、電圧比例係数をD、及び電流比例係数をBとしたとき、前記監視電圧の平均値Efと前記監視平均電圧Vaと負荷電流Imとの関係算式が、Ef=D×Va+B×Im+Cで示される算式で、前記オフセット成分Cと前記電圧比例係数D、及び前記電流比例係数Bを校正運転による測定データから算出し、
前記転送保存手段は、前記校正係数演算手段による演算結果である前記電圧比例係数と前記電流比例係数と前記オフセット成分の値を校正定数として前記不揮発データメモリに転送保存し、前記転送保存される校正定数は、常温環境と高温環境の少なくとも2種類の環境温度において算出されるものであることを特徴とする請求項1に記載の電気負荷の電流制御装置。
The control circuit unit further includes an average voltage measurement circuit that obtains a monitored average voltage by inputting a voltage across the electric load to the microprocessor via a voltage dividing circuit, and the nonvolatile program memory further includes a calibration coefficient. Including a control program serving as a calculation means and a transfer storage means,
The calibration coefficient calculation means includes Ef as the average value of the monitoring voltage by the amplifier circuit unit, Va as the monitoring average voltage, Im as the load current, C as the offset component as an error component, D as the voltage proportional coefficient, and current proportionality When the coefficient is B, a relational expression among the average value Ef of the monitoring voltage, the monitoring average voltage Va, and the load current Im is an expression represented by Ef = D × Va + B × Im + C, and the offset component C and the voltage The proportionality coefficient D and the current proportionality coefficient B are calculated from the measurement data by the calibration operation,
The transfer storage means transfers and stores the voltage proportional coefficient, the current proportional coefficient, and the offset component values, which are the calculation results of the calibration coefficient calculation means, as calibration constants in the nonvolatile data memory, and the transfer stored calibration 2. The current control device for an electric load according to claim 1, wherein the constant is calculated at at least two kinds of environmental temperatures of a normal temperature environment and a high temperature environment.
前記校正係数演算手段は更に、平均電圧校正手段を包含し、
前記平均電圧校正手段は、前記校正運転において、外部設置された校正用電圧計で測定された前記駆動電源の電圧を入力して前記マイクロプロセッサのRAMメモリに書込み記憶すると共に、前記開閉素子が導通しているときの監視平均電圧をVa、前記駆動電源の電圧をVb、前記監視平均電圧Vaと前記駆動電源の電圧Vbとの間の平均電圧校正係数をKaとしたとき、Ka=Vb/Vaを算出して前記不揮発データメモリに格納するか、又は前記電気負荷の両端電圧に対する分圧比率の逆数として予め定められた固定定数を適用することを特徴とする請求項7に記載の電気負荷の電流制御装置。
The calibration coefficient calculation means further includes an average voltage calibration means,
In the calibration operation, the average voltage calibration means inputs the voltage of the driving power source measured by an externally installed calibration voltmeter, writes and stores it in the RAM memory of the microprocessor, and makes the switching element conductive. When the average monitoring voltage is Va, the voltage of the driving power source is Vb, and the average voltage calibration coefficient between the monitoring average voltage Va and the voltage Vb of the driving power source is Ka, Ka = Vb / Va 8 is calculated and stored in the non-volatile data memory, or a predetermined fixed constant is applied as a reciprocal of a voltage dividing ratio with respect to a voltage across the electric load. Current control device.
前記給電回路部は、前記電流検出抵抗と前記電気負荷との直列回路に対して並列接続されるか、又は前記電気負荷に対して直接的に並列接続され、前記開閉素子が開路したときに前記電気負荷のインダクタンスによる持続減衰電流が還流する極性に接続される転流ダイオードを備え、
前記制御回路部は更に、前記駆動電源の電圧を分圧回路を介して前記マイクロプロセッサに入力し、電源監視電圧を得る電源電圧測定回路を備えると共に、前記不揮発プログラムメモリは更に、校正係数演算手段と転送保存手段となる制御プログラムを包含し、
前記校正係数演算手段は、前記開閉素子の通電デューティをγ、前記転流ダイオードの電圧降下をVd≒1V、前記増幅回路部による監視電圧の平均値をEf、前記駆動電源の電圧をVb、前記負荷電流をIm、誤差成分となるオフセット成分をC、電圧比例係数をA、及び電流比例係数をBとしたとき、前記監視電圧の平均値Efと、前記駆動電源の電圧Vbと、前記負荷電流Imとの関係算式が、Ef=A×(Vb+Vd)×γ+B×Im+Cであるとし、前記算式のオフセット成分Cと電圧比例係数A、及び電流比例係数Bを校正運転による測定データから算出し、
前記転送保存手段は、前記校正係数演算手段による演算結果である前記電圧比例係数と前記電流比例係数と前記オフセット成分の値を校正定数として前記不揮発データメモリに転送保存し、前記転送保存される前記校正定数は、常温環境と高温環境の少なくとも2種類の環境温度において算出されるものであることを特徴とする請求項2に記載の電気負荷の電流制御装置。
The power supply circuit unit is connected in parallel to a series circuit of the current detection resistor and the electric load, or directly connected in parallel to the electric load, and when the switching element is opened Comprising a commutation diode connected to the polarity to which a sustained decay current due to the inductance of the electrical load circulates;
The control circuit unit further includes a power supply voltage measurement circuit that inputs a voltage of the drive power supply to the microprocessor via a voltage dividing circuit to obtain a power supply monitoring voltage, and the nonvolatile program memory further includes a calibration coefficient calculation unit. And a control program that serves as a transfer storage means,
The calibration coefficient calculation means is configured such that the energization duty of the switching element is γ, the voltage drop of the commutation diode is Vd≈1V, the average value of the monitoring voltage by the amplifier circuit unit is Ef, the voltage of the drive power supply is Vb, When the load current is Im, the offset component as an error component is C, the voltage proportionality factor is A, and the current proportionality factor is B, the average value Ef of the monitoring voltage, the voltage Vb of the drive power supply, and the load current The relational expression with Im is assumed to be Ef = A × (Vb + Vd) × γ + B × Im + C, and the offset component C, the voltage proportional coefficient A, and the current proportional coefficient B in the above formula are calculated from the measurement data obtained by the calibration operation,
The transfer storage means transfers and stores the voltage proportionality coefficient, the current proportionality coefficient, and the offset component values, which are calculation results by the calibration coefficient calculation means, as calibration constants in the nonvolatile data memory, and the transfer storage is performed. 3. The electric load current control device according to claim 2, wherein the calibration constant is calculated at at least two kinds of environmental temperatures of a normal temperature environment and a high temperature environment.
前記校正係数演算手段は更に、電源電圧校正手段を包含し、
前記電源電圧校正手段は、前記校正運転において、前記電源監視電圧を前記マイクロプロセッサのRAMメモリに書込み記憶して、外部設置された校正用電圧計によって測定された前記駆動電源の電圧と対比して電源電圧校正係数を算出し、前記不揮発データメモリに格納するか、又は前記駆動電源の電圧に対する分圧比率の逆数として予め定められた固定定数を適用することを特徴とする請求項9に記載の電気負荷の電流制御装置。
The calibration coefficient calculation means further includes a power supply voltage calibration means,
In the calibration operation, the power supply voltage calibration means writes and stores the power supply monitoring voltage in the RAM memory of the microprocessor, and compares it with the voltage of the drive power supply measured by an externally installed calibration voltmeter. The power supply voltage calibration coefficient is calculated and stored in the non-volatile data memory, or a predetermined fixed constant is applied as the reciprocal of the voltage division ratio with respect to the voltage of the drive power supply. Electric load current control device.
前記不揮発プログラムメモリは更に、線形性校正手段となる制御プログラムを備え、
前記線形性校正手段は、複数の目標負荷電流による校正運転において、外部設置された校正用電流計によって測定された実負荷電流に基づいて、前記監視電圧の中の電流比例成分の電流比例係数を算出し、前記算出は、常温環境と高温環境の一方、又は両方の内部環境温度において実行され、実用内部環境における電流比例係数の値が近似算式、又はデータテーブルとして前記不揮発データメモリに保存されることを特徴とする請求項1又は請求項2に記載の電気負荷の電流制御装置。
The nonvolatile program memory further includes a control program serving as linearity calibration means,
The linearity calibration means calculates a current proportional coefficient of a current proportional component in the monitoring voltage based on an actual load current measured by an external calibration ammeter in a calibration operation with a plurality of target load currents. The calculation is executed at the internal environment temperature of one or both of the normal temperature environment and the high temperature environment, and the value of the current proportional coefficient in the practical internal environment is stored in the nonvolatile data memory as an approximate expression or a data table. The current control device for an electric load according to claim 1, wherein the current control device is an electric load.
前記電流比例係数Biは、前記温度検出回路による検出温度をT、目標負荷電流をIsi、算式定数をB、K1、K2、K3としたときに近似算式として次の算式が適用され、
Bi=B/[K1+K2×T+K3×Isi
前記線形性校正手段は、常温環境と高温環境の少なくとも一方において複数の目標負荷電流に対応した電流比例係数を算出すると共に前記算式定数を算出し、当該算式定数を前記不揮発データメモリに書込み保存することを特徴とする請求項11に記載の電気負荷の電流制御装置。
For the current proportionality factor Bi, the following formula is applied as an approximate formula when the temperature detected by the temperature detection circuit is T, the target load current is Isi, and the formula constants are B, K1, K2, and K3.
Bi = B / [K1 + K2 × T + K3 × Isi 2 ]
The linearity calibration means calculates a current proportional coefficient corresponding to a plurality of target load currents in at least one of a normal temperature environment and a high temperature environment, calculates the formula constant, and writes and stores the formula constant in the nonvolatile data memory. The current control device for an electric load according to claim 11.
前記電流制御装置は、自動車用自動変速機における複数のリニアソレノイドに対する電流制御装置であって密閉筐体に収納され、
前記温度検出回路は、前記マイクロプロセッサの近傍温度、又は当該マイクロプロセッサと多チャンネルAD変換器に給電する定電圧電源回路の近傍温度を測定することによって前記密閉筐体内の平均環境温度を推定し、
前記常温環境における校正運転は、前記電流制御装置の組立検査工程で実施され、前記高温環境における校正運転は、前記組立検査工程に続く高温試験工程で実施されることを特徴とする請求項1又は請求項2に記載の電気負荷の電流制御装置。
The current control device is a current control device for a plurality of linear solenoids in an automatic transmission for an automobile, and is housed in a sealed housing.
The temperature detection circuit estimates an average ambient temperature in the sealed casing by measuring a temperature in the vicinity of the microprocessor, or a temperature in the vicinity of a constant voltage power supply circuit that supplies power to the microprocessor and the multi-channel AD converter,
The calibration operation in the normal temperature environment is performed in an assembly inspection process of the current control device, and the calibration operation in the high temperature environment is performed in a high temperature test process following the assembly inspection process. The electric load current control device according to claim 2.
JP2009259935A 2009-11-13 2009-11-13 Electric load current control device Active JP4916543B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009259935A JP4916543B2 (en) 2009-11-13 2009-11-13 Electric load current control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009259935A JP4916543B2 (en) 2009-11-13 2009-11-13 Electric load current control device

Publications (2)

Publication Number Publication Date
JP2011109750A true JP2011109750A (en) 2011-06-02
JP4916543B2 JP4916543B2 (en) 2012-04-11

Family

ID=44232634

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009259935A Active JP4916543B2 (en) 2009-11-13 2009-11-13 Electric load current control device

Country Status (1)

Country Link
JP (1) JP4916543B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101394519B1 (en) 2012-05-25 2014-05-14 전주대학교 산학협력단 Constant current circuit and illumination system using the same
JP6227090B1 (en) * 2016-10-27 2017-11-08 三菱電機株式会社 Power supply control device and method for generating correction data for control characteristics for power supply control device
JP2019083627A (en) * 2017-10-30 2019-05-30 アークレイ株式会社 Power supply for electrophoresis apparatus, electrophoresis apparatus, and method for controlling power supply of the same

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10225179A (en) * 1997-01-31 1998-08-21 Aisin Aw Co Ltd Control method and control device for linear solenoid
JP2006100509A (en) * 2004-09-29 2006-04-13 Mitsubishi Electric Corp Current controller for electric load
JP2006238668A (en) * 2005-02-28 2006-09-07 Mitsubishi Electric Corp Current controller of electrical load
JP2007182121A (en) * 2006-01-05 2007-07-19 Mitsubishi Electric Corp On-vehicle electronic control device
JP2008198850A (en) * 2007-02-14 2008-08-28 Hitachi Ltd Solenoid current controller and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10225179A (en) * 1997-01-31 1998-08-21 Aisin Aw Co Ltd Control method and control device for linear solenoid
JP2006100509A (en) * 2004-09-29 2006-04-13 Mitsubishi Electric Corp Current controller for electric load
JP2006238668A (en) * 2005-02-28 2006-09-07 Mitsubishi Electric Corp Current controller of electrical load
JP2007182121A (en) * 2006-01-05 2007-07-19 Mitsubishi Electric Corp On-vehicle electronic control device
JP2008198850A (en) * 2007-02-14 2008-08-28 Hitachi Ltd Solenoid current controller and method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101394519B1 (en) 2012-05-25 2014-05-14 전주대학교 산학협력단 Constant current circuit and illumination system using the same
JP6227090B1 (en) * 2016-10-27 2017-11-08 三菱電機株式会社 Power supply control device and method for generating correction data for control characteristics for power supply control device
JP2018074697A (en) * 2016-10-27 2018-05-10 三菱電機株式会社 Power supply control device, and method for generating correction data on control characteristics for the power supply control device
US10381913B2 (en) 2016-10-27 2019-08-13 Mitsubishi Electric Corporation Power supply control device and control characteristic correction data generation method for power supply control device
DE102017218349B4 (en) 2016-10-27 2020-01-09 Mitsubishi Electric Corporation Power supply control device and control characteristic correction data generation method for power supply control device
JP2019083627A (en) * 2017-10-30 2019-05-30 アークレイ株式会社 Power supply for electrophoresis apparatus, electrophoresis apparatus, and method for controlling power supply of the same

Also Published As

Publication number Publication date
JP4916543B2 (en) 2012-04-11

Similar Documents

Publication Publication Date Title
US8890554B2 (en) Current control device for electric load
JP4158176B2 (en) Electric load current control device
JP7004585B2 (en) Current detection method for semiconductor devices, load drive systems and inductor currents
JP5140113B2 (en) Electronic control unit
CN103226370B (en) Voltage regulator
US7504743B2 (en) Power supply control device for on-vehicle electrical loads
JP5448706B2 (en) Current detection device and current detection method
JP4335107B2 (en) Electric load current control device
JP4916543B2 (en) Electric load current control device
US7813885B2 (en) Method and apparatus for measurement of AC voltages in an HVAC system
US20160172971A1 (en) Circuitry and method for regulating a current for an electromechanical load
JP5516350B2 (en) Load drive circuit
CN102057573B (en) Overcurrent protective device for load circuit
JP4229945B2 (en) In-vehicle electronic control unit
GB2226896A (en) &#34;Abnormality detecting system for electric circuits&#34;
EP2750147B1 (en) Electromagnetic coil drive device
CN110676804B (en) Detection circuit and switch module using same
US20060022527A1 (en) Protective device in a controller
JP2007218664A (en) Electrical current detector
US11824524B2 (en) Semiconductor device
US11876529B2 (en) Current output module
US20150153751A1 (en) Power supply circuit and electronic control unit employing the same
JP2016017943A (en) Temperature detector and temperature detector inspection method
JP5949420B2 (en) Power circuit
JP2020136735A (en) Protection circuit

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111222

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120110

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120124

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150203

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 4916543

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150203

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250