Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4196773B2 - Electronic control device design and development system, program, recording medium - Google Patents
[go: Go Back, main page]

JP4196773B2 - Electronic control device design and development system, program, recording medium - Google Patents

Electronic control device design and development system, program, recording medium Download PDF

Info

Publication number
JP4196773B2
JP4196773B2 JP2003279245A JP2003279245A JP4196773B2 JP 4196773 B2 JP4196773 B2 JP 4196773B2 JP 2003279245 A JP2003279245 A JP 2003279245A JP 2003279245 A JP2003279245 A JP 2003279245A JP 4196773 B2 JP4196773 B2 JP 4196773B2
Authority
JP
Japan
Prior art keywords
control data
control
data
point type
storage area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2003279245A
Other languages
Japanese (ja)
Other versions
JP2005044227A (en
Inventor
修二 中崎
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.)
Denso Corp
Original Assignee
Denso 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 Denso Corp filed Critical Denso Corp
Priority to JP2003279245A priority Critical patent/JP4196773B2/en
Publication of JP2005044227A publication Critical patent/JP2005044227A/en
Application granted granted Critical
Publication of JP4196773B2 publication Critical patent/JP4196773B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)

Description

本発明は電子制御装置の設計開発システム、プログラム、記録媒体に係り、詳しくは、電子制御装置の設計開発システムを実現するようにコンピュータシステムを機能させるためのプログラム、そのプログラムが記録されたコンピュータで読み取り可能な記録媒体に関するものである。   The present invention relates to an electronic control device design and development system, a program, and a recording medium. More specifically, the present invention relates to a program for causing a computer system to function so as to realize an electronic control device design and development system, and a computer on which the program is recorded. The present invention relates to a readable recording medium.

従来より、被制御装置(例えば、自動車のエンジンなど)を電子制御するための電子制御装置(ECU:Electronic Control Unit)では、固定小数点型データを用いて各種演算を行い、その演算結果に基づいて電子制御を実行していた。   Conventionally, an electronic control unit (ECU: Electronic Control Unit) for electronically controlling a controlled device (for example, an automobile engine) performs various calculations using fixed-point data, and based on the calculation results. Electronic control was being executed.

固定小数点型データには複雑なフォーマットがないため、電子制御装置の演算処理速度を高速にできるという利点がある。また、固定小数点型データを用いると電子制御装置のハードウェア構成がシンプルになるため、電子制御装置を安価に提供できるという利点もある。   Since fixed-point data does not have a complicated format, there is an advantage that the processing speed of the electronic control device can be increased. Further, when fixed-point data is used, the hardware configuration of the electronic control device is simplified, and there is an advantage that the electronic control device can be provided at a low cost.

しかし、近年、浮動小数点型データを用いて各種演算を行う浮動小数点演算プロセッサ(FPU:Floating Point Unit)を内蔵した電子制御装置を用い、浮動小数点演算プロセッサの演算結果に基づいて電子制御装置が電子制御を実行する技術が提案されている(例えば、特許文献1参照。)。   However, in recent years, an electronic control unit incorporating a floating point arithmetic processor (FPU: Floating Point Unit) that performs various calculations using floating point type data is used, and the electronic control unit is electronic based on the calculation result of the floating point arithmetic processor. A technique for executing control has been proposed (see, for example, Patent Document 1).

浮動小数点型データは、固定小数点型データに比べて表現できる数値の範囲が桁外れに広い。そのため、浮動小数点型データを用いた演算結果は、固定小数点型データを用いた演算結果に比べて、非常に高精度になる。   Floating-point data has an extremely large range of numerical values that can be expressed compared to fixed-point data. For this reason, the calculation result using floating-point type data is much more accurate than the calculation result using fixed-point type data.

特に、自動車のエンジン制御では、低公害・低燃費および乗り心地の向上を図るために近年ますます高精度化が求められており、浮動小数点演算プロセッサを電子制御装置に内蔵することにより、高精度化を実現することが期待されている。
特開平11−212763号公報(第2〜4頁、図1)
In particular, in the engine control of automobiles, in recent years, higher precision has been demanded in order to improve low pollution, low fuel consumption and improved ride comfort. By incorporating a floating-point arithmetic processor in the electronic control unit, high precision has been achieved. It is expected to be realized.
Japanese Patent Laid-Open No. 11-212763 (pages 2 to 4, FIG. 1)

電子制御装置の設計開発において、制御に適合した制御変数および制御定数を検討する際には適合ツール(適合装置)が使用されている。   In designing and developing an electronic control unit, a matching tool (matching device) is used when examining control variables and control constants suitable for control.

この適合ツールは、電子制御装置の制御変数および制御定数を任意に設定するための入力装置と、その設定した制御変数および制御定数をモニタするための表示装置とを備えている。   The adaptation tool includes an input device for arbitrarily setting control variables and control constants of the electronic control device, and a display device for monitoring the set control variables and control constants.

電子制御装置の設計開発者は、設計ベンチにて電子制御装置に適合ツールを接続し、適合ツールの入力装置を用いて制御変数および制御定数を任意に設定し、その設定した制御変数および制御定数を電子制御装置内の記憶装置(例えばRAMなど)に書き込み、その制御変数および制御定数を表示装置を用いてモニタする。   The design developer of the electronic control unit connects the calibration tool to the electronic control unit on the design bench, and arbitrarily sets the control variables and control constants using the input device of the calibration tool, and the set control variables and control constants Is stored in a storage device (such as a RAM) in the electronic control unit, and the control variables and control constants are monitored using a display unit.

そして、設計開発者は適合ツールを用い、電子制御装置の制御が最適になるような制御変数および制御定数をカット・アンド・トライで実験的に求める。   Then, the design developer uses a matching tool to experimentally determine control variables and control constants that optimize the control of the electronic control device by cut-and-try.

従来、固定小数点型データを用いて各種演算を行う電子制御装置の設計開発には、固定小数点型データに対応した適合ツールを使用していた。   Conventionally, an adaptive tool corresponding to fixed-point type data has been used in the design and development of an electronic control device that performs various operations using fixed-point type data.

ところが、浮動小数点型データを用いて各種演算を行う浮動小数点演算プロセッサを内蔵した電子制御装置では、浮動小数点型データに対応した適合ツールを使用する必要がある。   However, in an electronic control device incorporating a floating-point arithmetic processor that performs various operations using floating-point type data, it is necessary to use an adaptation tool corresponding to the floating-point type data.

しかし、浮動小数点型データに対応した適合ツールを新規に開発するには膨大な開発コストがかかる。また、従来から使用されている固定小数点型データに対応した適合ツールを、浮動小数点型データに対応するように改造することも考えられるが、その改造には新規開発と同様に膨大な開発コストがかかる。   However, enormous development costs are required to newly develop a calibration tool that supports floating-point data. In addition, it is possible to modify the conventional calibration tool that supports fixed-point type data so that it corresponds to floating-point type data. Take it.

さらに、固定小数点型データに対応した適合ツールを使い慣れた設計開発者にとって、浮動小数点型データに対応した適合ツールの使用方法を新たに習得することは非常に面倒であり多大な労力を必要とするため、その習得に要する時間分だけ電子制御装置の設計開発が遅れるおそれもある。   In addition, for design developers who are familiar with calibration tools that support fixed-point data, it is very cumbersome and labor-intensive to learn how to use calibration tools that support floating-point data. Therefore, there is a possibility that the design and development of the electronic control device may be delayed by the time required for the acquisition.

さらに、請求項1に記載の電子制御装置の設計開発システムにおいて、
前記変換手段は、前記演算手段が前記演算に使用している浮動小数点型の制御データを固定小数点型データにデータ変換し、
前記記憶手段は、前記変換手段によってデータ変換された固定小数点型の制御データを記憶するものであって、その上で、
前記記憶手段は、前記変換手段(61)によって固定小数点型にデータ変換された第1制御データ(A1)を記憶する第1記憶領域(51)と、
前記入力手段(31)によって設定された第2制御データ(A2)を記憶する第2記憶領域(52)とを備え、
前記変換手段は、
第1記憶領域(51)に記憶されている第1制御データ(A1)と、第2記憶領域(52)に記憶されている第2制御データ(A2)とを比較し、
第1制御データ(A1)と第2制御データ(A2)とが異なる場合には(S201:Yes)、第2記憶領域(52)に新たな第2制御データ(A2)が書き込まれたと判定し、その第2制御データを浮動小数点型データにデータ変換して前記演算手段(41)へ送出すると共に、その第2制御データ(A2)を第1記憶領域(51)に上書きすることにより、第1記憶領域(51)に書き込まれている第1制御データ(A1)を第2制御データ(A2)に更新させ(S203)、第1制御データ(A1)と第2制御データ(A2)とが同じ場合には(S201:No)、第2記憶領域(52)に新たな第2制御データ(A2)が書き込まれていないと判定し、前記演算手段(41)が前記演算に使用している制御データを固定小数点型データにデータ変換して第1制御データ(A1)を生成し、その第1制御データ(A1)を第1記憶領域(51)に書き込むと共に、その第1制御データ(A1)を第2記憶領域(52)に上書きすることにより、第2記憶領域(52)に書き込まれている第2制御データ(A2)を第1制御データ(A1)に更新させる(S205)ことを技術的特徴とする。
尚、( )内の符号等は、後述する[発明を実施するための最良の形態]に記載した構成部材・構成要素の符号等に対応したものである。
(請求項
請求項に記載の発明は、請求項1に記載の電子制御装置の設計開発システムにおいて、
前記表示手段は、前記記憶手段に記憶されている固定小数点型の制御データを読み出して表示する
ことを技術的特徴とする。
Furthermore, in the design development system of the electronic control device according to claim 1 ,
The conversion means converts the floating-point type control data used by the calculation means to the calculation into fixed-point type data,
The storage means stores fixed-point type control data converted by the conversion means .
The storage means includes a first storage area (51) for storing first control data (A1) converted into a fixed-point data type by the conversion means (61);
A second storage area (52) for storing the second control data (A2) set by the input means (31),
The converting means includes
Comparing the first control data (A1) stored in the first storage area (51) with the second control data (A2) stored in the second storage area (52);
When the first control data (A1) and the second control data (A2) are different (S201: Yes), it is determined that new second control data (A2) is written in the second storage area (52). Then, the second control data is converted into floating point type data and sent to the arithmetic means (41), and the second control data (A2) is overwritten in the first storage area (51). The first control data (A1) written in the one storage area (51) is updated to the second control data (A2) (S203), and the first control data (A1) and the second control data (A2) are updated. If they are the same (S201: No), it is determined that new second control data (A2) is not written in the second storage area (52), and the calculation means (41) is using the calculation. Control data is fixed point data The first control data (A1) is generated by converting the data into the first storage area (51), and the first control data (A1) is written to the second storage area (51). 52), the second control data (A2) written in the second storage area (52) is updated to the first control data (A1) (S205).
Reference numerals in parentheses and the like correspond to reference numerals and the like of constituent members and constituent elements described in [Best Mode for Carrying Out the Invention] to be described later.
(Claim 2 )
The invention described in claim 2 is the electronic control device design and development system according to claim 1 ,
The display means reads and displays the fixed-point type control data stored in the storage means.

(請求項
請求項に記載の発明は、請求項1または2に記載の電子制御装置の設計開発システムにおいて、
前記電子制御装置の生産時には、前記記憶手段および前記変換手段を機能させないよう
にすることを技術的特徴とする。
(Claim 3 )
According to a third aspect of the present invention, in the design and development system for the electronic control device according to the first or second aspect ,
The technical feature is that the storage means and the conversion means are prevented from functioning during production of the electronic control unit.

(請求項
請求項に記載の発明は、請求項1〜のいずれか1項に記載の電子制御装置の設計開発システムにおける前記各手段としてコンピュータシステムを機能させるためのプログラムを提供するものである。
(Claim 4 )
According to a fourth aspect of the present invention, there is provided a program for causing a computer system to function as each of the means in the electronic control device design and development system according to any one of the first to third aspects.

(請求項
請求項に記載の発明は、請求項1〜のいずれか1項に記載の電子制御装置の設計開発システムにおける前記各手段としてコンピュータシステムを機能させるためのプログラムが記録されたコンピュータで読み取り可能な記録媒体を提供するものである。
(Claim 5 )
The invention according to claim 5 is readable by a computer in which a program for causing a computer system to function as each of the means in the electronic control device design and development system according to any one of claims 1 to 4 is recorded. A simple recording medium is provided.

(3)前記(1)の電子制御装置の設計開発システムを実現するようにコンピュータシステムを機能させるためのプログラムが記録されたコンピュータで読み取り可能な記録媒体を提供する。   (3) Provided is a computer-readable recording medium in which a program for causing a computer system to function is realized so as to realize the electronic control device design and development system of (1).

(請求項1)
請求項1に記載の発明は、
被制御装置を電子制御するために浮動小数点型データを用いて演算を行う電子制御装置と、
その電子制御装置の制御に適合した制御データを検討するために使用される固定小数点型データに対応した適合ツールと
を備えた電子制御装置の設計開発システムであって、
前記適合ツールは、
前記電子制御装置の制御データを任意に設定するための入力手段と、
その設定した制御データをモニタするための表示手段とを備え、
前記電子制御装置は、
前記入力手段によって設定された固定小数点型の制御データを記憶する記憶手段と、
その記憶手段に記憶されている固定小数点型の制御データを読み出し、その固定小数点型データを浮動小数点型データにデータ変換する変換手段と、
その変換手段によってデータ変換された浮動小数点型の制御データを用いて被制御装置を電子制御するための演算を行う演算手段とを備えた
ことを技術的特徴とする。
(Claim 1)
The invention described in claim 1
An electronic control device that performs calculations using floating-point data to electronically control the controlled device;
A design and development system for an electronic control unit including a calibration tool corresponding to fixed-point data used for examining control data suitable for control of the electronic control unit,
The adaptation tool is:
Input means for arbitrarily setting control data of the electronic control unit;
And display means for monitoring the set control data,
The electronic control device
Storage means for storing fixed-point type control data set by the input means;
Conversion means for reading out the fixed-point type control data stored in the storage means and converting the fixed-point type data into floating-point type data;
The present invention is characterized in that it comprises calculation means for performing calculation for electronically controlling the controlled device using the floating-point control data converted by the conversion means.

(請求項
請求項に記載の発明において、適合ツールの表示手段は、記憶手段に記憶されている固定小数点型の制御データを読み出して表示する。
そのため、電子制御装置の設計開発者は、表示手段に表示された制御データをモニタすることが可能である。
(Claim 2 )
In the invention according to claim 2 , the display means of the matching tool reads out and displays the fixed-point type control data stored in the storage means.
Therefore, the design developer of the electronic control device can monitor the control data displayed on the display means.

(請求項3)
請求項3に記載の発明は、請求項1または請求項2に記載の電子制御装置の設計開発システムにおいて、
前記電子制御装置の生産時には、前記記憶手段および前記変換手段を機能させないようにすることを技術的特徴とする。
(Claim 3)
According to a third aspect of the present invention, in the design and development system for the electronic control device according to the first or second aspect,
A technical feature is that the storage means and the conversion means are prevented from functioning during production of the electronic control unit.

(請求項
請求項1または2に記載の発明において、電子制御装置の記憶手段および変換手段は、電子制御装置の設計開発時のみに必要であり、電子制御装置の生産時(量産時)には不要である。
電子制御装置の生産時に記憶手段および変換手段の機能が残っている場合、その機能分だけ電子制御装置の他の動作に負担がかかり、演算手段の処理速度が低下するおそれがある。
そこで、請求項3に記載の発明によれば、電子制御装置の生産時には記憶手段および変換手段を機能させないようにすることで、演算手段の処理速度が低下するのを防止する。
(Claim 3 )
In the invention described in claim 1 or 2, the storage means and the conversion means of the electronic control device are necessary only at the time of design development of the electronic control device, and are not necessary at the time of production (mass production) of the electronic control device. .
If the functions of the storage means and the conversion means remain during the production of the electronic control device, other operations of the electronic control device are burdened by the function, and the processing speed of the calculation means may be reduced.
Therefore, according to the third aspect of the present invention, it is possible to prevent the processing speed of the computing means from being lowered by preventing the storage means and the conversion means from functioning during the production of the electronic control device.

(請求項、請求項
請求項に記載の発明によれば、請求項1〜のいずれか1項に記載の電子制御装置を実現するようにコンピュータシステムを機能させるためのプログラムを提供できる。
また、請求項に記載の発明によれば、請求項のプログラムが記録されたコンピュータで読み取り可能な記録媒体を提供できる。
(Claim 4 and Claim 5 )
According to invention of Claim 4 , the program for functioning a computer system can be provided so that the electronic control apparatus of any one of Claims 1-3 may be implement | achieved.
According to the invention described in claim 5 , it is possible to provide a computer-readable recording medium in which the program of claim 4 is recorded.

(請求項1)
請求項1に記載の発明において、電子制御装置の設計開発者が適合ツールの入力手段を使用して任意の制御データを設定すると、その制御データは電子制御装置の記憶手段に記憶される。電子制御装置の変換手段は、記憶手段に記憶されている固定小数点型の制御データを読み出し、その固定小数点型データを浮動小数点型データにデータ変換する。電子制御装置の演算手段は、変換手段が浮動小数点型データにデータ変換した制御データに基づいて、被制御装置を電子制御するための演算を行う。
(Claim 1)
In the first aspect of the invention, when the design developer of the electronic control device sets arbitrary control data using the input means of the adaptive tool, the control data is stored in the storage means of the electronic control device. The conversion means of the electronic control device reads the fixed-point type control data stored in the storage means, and converts the fixed-point type data into floating-point type data. The calculation means of the electronic control device performs calculation for electronically controlling the controlled device based on the control data converted into floating point type data by the conversion means.

(用語の説明)
尚、上述した[特許請求の範囲]および[課題を解決するための手段・作用および発明の効果]に記載した構成要素と、後述する[発明の実施の形態]に記載した構成部材との対応関係は以下のようになっている。
「入力手段」は、入力装置31に該当する。
「出力手段」は、表示装置32に該当する。
「記憶手段」は、適合インターフェース(I/F)処理部43に該当する。
「変換手段」は、データ変換処理部42に該当する。
「演算手段」は、制御プログラム処理部41に該当する。
「固定小数点型の制御データ」は、モニタ用適合変数A1、書込用適合変数A2、適合
定数Bのいずれかに該当する。
「浮動小数点型の制御データ」は、制御変数aまたは制御定数bに該当する。
さらに、「変換手段」は、データ変換処理部42における変数変換処理部61を含む
「第1記憶領域」は、記憶領域51に該当する。
「第2記憶領域」は、記憶領域52に該当する。
「第1制御データ」は、モニタ用適合変数A1に該当する。
「第2制御データ」は、書込用適合変数A2に該当する。
「プログラム」は、マイクロコンピュータ21が実行する図3および図4に示すフローチャートの処理に該当する。
「記録媒体」は、ROM23に該当する。
(Explanation of terms)
Correspondence between the constituent elements described in [Claims] and [Means / Operations for Solving the Problems and Effects of the Invention] described above and the constituent members described in [Embodiments of the Invention] described later. The relationship is as follows.
The “input unit” corresponds to the input device 31.
The “output unit” corresponds to the display device 32.
The “storage unit” corresponds to the compatible interface (I / F) processing unit 43.
The “conversion unit” corresponds to the data conversion processing unit 42.
The “calculation unit” corresponds to the control program processing unit 41.
The “fixed-point type control data” corresponds to any one of the monitor compatible variable A1, the write compatible variable A2, and the compatible constant B.
The “floating point type control data” corresponds to the control variable a or the control constant b.
Furthermore, "converting means" includes a variable conversion processing unit 61 in the data conversion processing unit 42.
The “first storage area” corresponds to the storage area 51.
The “second storage area” corresponds to the storage area 52.
The “first control data” corresponds to the monitor compatible variable A1.
The “second control data” corresponds to the writing compatible variable A2.
The “program” corresponds to the processing of the flowcharts shown in FIGS. 3 and 4 executed by the microcomputer 21.
“Recording medium” corresponds to the ROM 23.

このように、請求項1に記載の発明によれば、従来から使用されている固定小数点型データに対応した適合ツールを流用することが可能である。   As described above, according to the first aspect of the present invention, it is possible to use a matching tool corresponding to fixed-point type data that has been conventionally used.

そのため、請求項1に記載の発明によれば、浮動小数点型データに対応した適合ツールを新規に開発する場合や、固定小数点型データに対応した適合ツールを浮動小数点型データに対応するように改造する場合に比べて、設計開発システムの開発コストを低く抑えることができる。   Therefore, according to the first aspect of the present invention, when a calibration tool corresponding to floating-point type data is newly developed, or a calibration tool corresponding to fixed-point type data is modified to support floating-point type data. Compared to the case, the development cost of the design development system can be kept low.

また、請求項1に記載の発明によれば、固定小数点型データに対応した適合ツールを使い慣れた設計開発者を戸惑わせることがなく、設計開発者は適合ツールを使用して従来通りの操作を行うだけでよいため、電子制御装置の設計開発の遅れを防止できる。   Further, according to the first aspect of the present invention, the design developer who uses the calibration tool corresponding to the fixed-point type data is not confused, and the design developer uses the calibration tool to perform the conventional operation. Therefore, delays in the design and development of the electronic control device can be prevented.

(請求項2)
請求項2に記載の発明において、電子制御装置の演算手段が演算に使用している浮動小数点型の制御データは、変換手段によって固定小数点型データにデータ変換され、その固定小数点型の制御データは記憶手段に記憶される。そして、適合ツールの表示手段は、記憶手段に記憶されている固定小数点型の制御データを読み出して表示する。
(Claim 2)
According to the second aspect of the present invention, the floating point type control data used by the calculation means of the electronic control unit for the calculation is converted into fixed point type data by the conversion means, and the fixed point type control data is Stored in the storage means. The display unit of the matching tool reads out and displays the fixed-point type control data stored in the storage unit.

そのため、電子制御装置の設計開発者は、表示手段に表示された制御データをモニタすることが可能である。   Therefore, the design developer of the electronic control device can monitor the control data displayed on the display means.

そして、記憶手段に書き込まれている制御データは演算手段が演算に使用中の制御データと常に対応しているため、電子制御装置の設計開発者は、表示手段に表示された制御データをモニタすることにより、その時点で演算手段が演算に使用中の制御データを確実に認知することができる。   Since the control data written in the storage means always corresponds to the control data being used by the calculation means, the design developer of the electronic control unit monitors the control data displayed on the display means. This makes it possible to reliably recognize the control data being used by the calculation means at that time.

そのため、電子制御装置の設計開発者は、モニタ結果に従い、入力手段を使用して任意の制御データを設定することにより、電子制御装置の制御が最適になるような制御データをカット・アンド・トライで実験的に求める操作を容易に行うことができる。   Therefore, the design developer of the electronic control device cuts and tries the control data that optimizes the control of the electronic control device by setting arbitrary control data using the input means according to the monitor result. The operation required experimentally can be easily performed.

(請求項3)
請求項1または請求項2に記載の発明において、電子制御装置の記憶手段および変換手段は、電子制御装置の設計開発時のみに必要であり、電子制御装置の生産時(量産時)には不要である。
(Claim 3)
In the first or second aspect of the invention, the storage means and the conversion means of the electronic control device are necessary only during the design and development of the electronic control device, and are not required during the production of the electronic control device (during mass production). It is.

電子制御装置の生産時に記憶手段および変換手段の機能が残っている場合、その機能分だけ電子制御装置の他の動作に負担がかかり、演算手段の処理速度が低下するおそれがある。   If the functions of the storage means and the conversion means remain during the production of the electronic control device, other operations of the electronic control device are burdened by the function, and the processing speed of the calculation means may be reduced.

そこで、請求項3に記載の発明によれば、電子制御装置の生産時には記憶手段および変換手段を機能させないようにすることで、演算手段の処理速度が低下するのを防止する。   Therefore, according to the third aspect of the present invention, it is possible to prevent the processing speed of the computing means from being lowered by preventing the storage means and the conversion means from functioning during the production of the electronic control device.

(請求項4、請求項5)
請求項4に記載の発明によれば、請求項1〜3のいずれか1項に記載の電子制御装置を実現するようにコンピュータシステムを機能させるためのプログラムを提供できる。
(Claims 4 and 5)
According to invention of Claim 4, the program for functioning a computer system can be provided so that the electronic control apparatus of any one of Claims 1-3 may be implement | achieved.

また、請求項5に記載の発明によれば、請求項4のプログラムが記録されたコンピュータで読み取り可能な記録媒体を提供できる。   According to the invention described in claim 5, it is possible to provide a computer-readable recording medium in which the program of claim 4 is recorded.

このプログラムは、例えば、ROMやバックアップRAMをコンピュータで読み取り可能な記録媒体として前記プログラムを記録しておき、このROMまたはバックアップRAMをコンピュータシステムに組み込んで用いることができる。   For example, the program can be recorded by using a ROM or backup RAM as a computer-readable recording medium, and the ROM or backup RAM can be incorporated into a computer system.

この他、前記プログラムを、コンピュータで読み取り可能な記録媒体を備えた外部記録装置(外部記憶装置)に記録(記憶)しておき、当該プログラムを必要に応じて外部記録装置からコンピュータシステムにロードして用いるようにしてもよい。   In addition, the program is recorded (stored) in an external recording device (external storage device) having a computer-readable recording medium, and the program is loaded from the external recording device to the computer system as necessary. May be used.

(用語の説明)
尚、上述した[特許請求の範囲]および[課題を解決するための手段・作用および発明の効果]に記載した構成要素と、後述する[発明の実施の形態]に記載した構成部材との対応関係は以下のようになっている。
(Explanation of terms)
Correspondence between the constituent elements described in [Claims] and [Means / Operations for Solving the Problems and Effects of the Invention] described above and the constituent members described in [Embodiments of the Invention] described later. The relationship is as follows.

「入力手段」は、入力装置31に該当する。   The “input unit” corresponds to the input device 31.

「出力手段」は、表示装置32に該当する。   The “output unit” corresponds to the display device 32.

「記憶手段」は、適合インターフェース(I/F)処理部43に該当する。   The “storage unit” corresponds to the compatible interface (I / F) processing unit 43.

「変換手段」は、データ変換処理部42に該当する。   The “conversion unit” corresponds to the data conversion processing unit 42.

「演算手段」は、制御プログラム処理部に該当する。   The “calculation means” corresponds to the control program processing unit.

「固定小数点型の制御データ」は、モニタ用適合変数A1、書込用適合変数A2、適合定数Bのいずれかに該当する。   The “fixed-point type control data” corresponds to any one of the monitor compatible variable A1, the write compatible variable A2, and the compatible constant B.

「浮動小数点型の制御データ」は、制御変数aまたは制御定数bに該当する。   The “floating point type control data” corresponds to the control variable a or the control constant b.

「プログラム」は、マイクロコンピュータ21が実行する図3および図4に示すフローチャートの処理に該当する。   The “program” corresponds to the processing of the flowcharts shown in FIGS. 3 and 4 executed by the microcomputer 21.

「記録媒体」は、ROM23に該当する。   “Recording medium” corresponds to the ROM 23.

以下、本発明を具体化した一実施形態について図面を参照しながら説明する。   Hereinafter, an embodiment embodying the present invention will be described with reference to the drawings.

[実施形態の主要構成]
図1は、本実施形態における電子制御装置の設計開発システムの主要構成を示すブロック回路図である。
[Main configuration of the embodiment]
FIG. 1 is a block circuit diagram showing a main configuration of a design and development system for an electronic control unit according to this embodiment.

本実施形態の設計開発システム10は、電子制御装置(ECU)20および適合ツール(適合装置)30から構成されている。   The design and development system 10 of this embodiment includes an electronic control unit (ECU) 20 and a matching tool (matching device) 30.

ECU20にはマイクロコンピュータ(以下、「マイコン」と略称する)21が内蔵されている。   The ECU 20 includes a microcomputer (hereinafter abbreviated as “microcomputer”) 21.

マイコン21には、中央演算処理装置(CPU)22、読み取り専用の記憶装置(ROM)23、読み書き可能な記憶装置(RAM)24、入出力装置(I/O)25、浮動小数点演算プロセッサ(FPU)26などが内蔵されている。   The microcomputer 21 includes a central processing unit (CPU) 22, a read-only storage device (ROM) 23, a readable / writable storage device (RAM) 24, an input / output device (I / O) 25, a floating point arithmetic processor (FPU). ) 26 and the like are incorporated.

ECU20のI/O25には、従来から使用されている固定小数点型データに対応した適合ツール30が接続されている。   The I / O 25 of the ECU 20 is connected with a matching tool 30 corresponding to fixed-point type data that has been conventionally used.

適合ツール30には、ECU20の制御変数および制御定数(適合変数および適合定数)を任意に設定するための入力装置31と、その設定した制御変数および制御定数をモニタするための表示装置32とが設けられている。   The adaptation tool 30 includes an input device 31 for arbitrarily setting control variables and control constants (adaptation variables and adaptation constants) of the ECU 20, and a display device 32 for monitoring the set control variables and control constants. Is provided.

具体的には、入力装置31は操作スイッチやキーボードなどから構成され、表示装置32はLCDやCRTなどのディスプレイまたはデジタル表示カウンタなどから構成されている。   Specifically, the input device 31 includes an operation switch and a keyboard, and the display device 32 includes a display such as an LCD or a CRT, a digital display counter, or the like.

図2は、図1に示す設計開発システム10を本実施形態に係る機能ブロックによって表した機能ブロック回路図である。   FIG. 2 is a functional block circuit diagram in which the design and development system 10 shown in FIG. 1 is represented by functional blocks according to the present embodiment.

ECU20のマイコン21は、CPU22およびFPU26が起動すると、ROM23に記憶(記録)されているコンピュータプログラムをCPU22またはFPU26にロードし、そのコンピュータプログラムに従い、CPU22またはFPU26が実行する各種演算処理により、図2に示す各機能ブロック(制御プログラム処理部41、データ変換処理部42、適合インターフェース(I/F)処理部43)を実現するようにコンピュータシステムを機能させる。   When the CPU 22 and the FPU 26 are activated, the microcomputer 21 of the ECU 20 loads a computer program stored (recorded) in the ROM 23 to the CPU 22 or the FPU 26, and performs various arithmetic processes executed by the CPU 22 or the FPU 26 according to the computer program, as shown in FIG. The computer system is caused to function so as to realize the functional blocks (control program processing unit 41, data conversion processing unit 42, and compatible interface (I / F) processing unit 43) shown in FIG.

尚、前記コンピュータプログラムを、マイコン21に内蔵したROM23ではなく、マイコン21に内蔵した図示しないバックアップRAMや、コンピュータで読み取り可能な記録媒体を備えた図示しない外部記録装置(外部記憶装置)に記録(記憶)しておき、当該コンピュータプログラムを必要に応じてバックアップRAMや外部記録装置からCPU22またはFPU26にロードして用いるようにしてもよい。   The computer program is recorded not in the ROM 23 incorporated in the microcomputer 21 but in a backup RAM (not shown) built in the microcomputer 21 or an external recording device (external storage device) (not shown) provided with a computer-readable recording medium ( The computer program may be loaded into the CPU 22 or the FPU 26 from a backup RAM or an external recording device and used as necessary.

ちなみに、コンピュータで読み取り可能な記録媒体には、半導体メモリ(スマートメディア,メモリスティックなど)、ハードディスク、FD(Floppy Disk)、データカード(ICカード(IC:Integrated Circuit),磁気カードなど)、光ディスク(CD−ROM,DVDなど)、光磁気ディスク(MOなど)、相変化ディスク、磁気テープなどがある。ところで、前記記録媒体の具体例の名称には登録商標が含まれる。   Incidentally, computer-readable recording media include semiconductor memory (smart media, memory stick, etc.), hard disk, FD (Floppy Disk), data card (IC card (IC: Integrated Circuit), magnetic card, etc.), optical disk ( CD-ROM, DVD, etc.), magneto-optical disk (MO, etc.), phase change disk, magnetic tape, etc. By the way, the names of specific examples of the recording medium include registered trademarks.

適合I/F処理部43内には各記憶領域51〜53が設定されている。また、制御プログラム処理部41内には記憶領域54が設定されている。   Each storage area 51 to 53 is set in the compatible I / F processing unit 43. A storage area 54 is set in the control program processing unit 41.

尚、各記憶領域51〜54は、実際にはRAM24内に設けられている。そして、CPU22またはFPU26が実行する各種演算処理によって実現される各処理部41〜43は、RAM24内に設けられた各記憶領域51〜54に対して読み出し及び書き込み動作を行う。   The storage areas 51 to 54 are actually provided in the RAM 24. The processing units 41 to 43 realized by various arithmetic processes executed by the CPU 22 or the FPU 26 perform read and write operations on the storage areas 51 to 54 provided in the RAM 24.

適合I/F処理部43には、I/O25(図2では図示略)を介して適合ツール30が接続されている。   The matching tool 30 is connected to the matching I / F processing unit 43 via an I / O 25 (not shown in FIG. 2).

適合I/F処理部43は、データ変換処理部42から転送されてくるモニタ用適合変数A1を記憶領域51に書き込んで記憶させる。   The adaptation I / F processing unit 43 writes the monitoring adaptation variable A1 transferred from the data conversion processing unit 42 in the storage area 51 and stores it.

また、適合I/F処理部43は、適合ツール30の入力装置31から転送されてくる書込用適合変数A2を記憶領域52に書き込んで記憶させると共に、入力装置31から転送されてくる適合定数Bを記憶領域53に書き込んで記憶させる。   Further, the adaptive I / F processing unit 43 writes and stores the write adaptive variable A2 transferred from the input device 31 of the adaptive tool 30 in the storage area 52 and also stores the adaptive constant transferred from the input device 31. B is written in the storage area 53 and stored.

尚、モニタ用適合変数A1、書込用適合変数A2、適合定数Bは、固定小数点型データである。   The monitor compatible variable A1, the write compatible variable A2, and the compatible constant B are fixed-point data.

データ変換処理部42内には、変数変換処理部61および定数変換処理部62が設けられている。   In the data conversion processing unit 42, a variable conversion processing unit 61 and a constant conversion processing unit 62 are provided.

変数変換処理部61は、適合I/F処理部43の記憶領域52に書き込まれている書込用適合変数A2を読み出し、固定小数点型データである書込用適合変数A2を浮動小数点型データにデータ変換して制御変数aを生成し、その制御変数aを制御プログラム処理部41の記憶領域54に書き込んで記憶させる。   The variable conversion processing unit 61 reads the adaptive variable A2 for writing written in the storage area 52 of the adaptive I / F processing unit 43, and converts the adaptive variable for writing A2 that is fixed-point type data into floating-point type data. The control variable a is generated by data conversion, and the control variable a is written and stored in the storage area 54 of the control program processing unit 41.

また、変数変換処理部61は、制御プログラム処理部41の記憶領域54に書き込まれている制御変数aを読み出し、浮動小数点型データである制御変数aを固定小数点型データにデータ変換してモニタ用適合変数A1を生成し、そのモニタ用適合変数A1を適合I/F処理部43の記憶領域51に書き込んで記憶させる。   The variable conversion processing unit 61 reads the control variable a written in the storage area 54 of the control program processing unit 41, converts the control variable a, which is floating-point type data, into fixed-point type data, and monitors it. The adaptive variable A1 is generated, and the adaptive variable A1 for monitoring is written and stored in the storage area 51 of the adaptive I / F processing unit 43.

定数変換処理部62は、適合I/F処理部43の記憶領域53に書き込まれている適合定数Bを読み出し、固定小数点型データである適合定数Bを浮動小数点型データにデータ変換して制御定数bを生成し、その制御定数bを制御プログラム処理部41へ転送する。   The constant conversion processing unit 62 reads the calibration constant B written in the storage area 53 of the calibration I / F processing unit 43, converts the calibration constant B, which is fixed-point type data, into floating-point type data, and converts the data into a control constant. b is generated, and the control constant b is transferred to the control program processing unit 41.

制御プログラム処理部41は、データ変換処理部42から転送されてくる制御変数aおよび制御定数bに基づき、ECU20が搭載された被制御装置(例えば、自動車のエンジンなど)を電子制御するための制御プログラムを実行する。   The control program processing unit 41 is a control for electronically controlling a controlled device (for example, an automobile engine) on which the ECU 20 is mounted, based on the control variable a and the control constant b transferred from the data conversion processing unit 42. Run the program.

尚、CPU22は固定小数点型データを用いて各種演算処理を行い、FPU26は浮動小数点型データを用いて各種演算処理を行う。そのため、制御プログラム処理部41が浮動小数点型データである制御変数aおよび制御定数bに基づいて実行する制御プログラムは、FPU26の各種演算処理によって実現される。   The CPU 22 performs various arithmetic processes using fixed-point type data, and the FPU 26 performs various arithmetic processes using floating-point type data. Therefore, the control program executed by the control program processing unit 41 based on the control variable a and the control constant b, which is floating point type data, is realized by various arithmetic processes of the FPU 26.

ちなみに、浮動小数点型データである制御変数aおよび制御定数bは、例えば、IEEE754規格に従って構成されている。   Incidentally, the control variable a and the control constant b which are floating point type data are configured in accordance with, for example, the IEEE754 standard.

[適合した制御定数を検討する場合の動作]
次に、本実施形態の設計開発システム10を用い、ECU20の制御に適合した制御定数を検討する場合の動作について説明する。
[Operation when considering suitable control constants]
Next, the operation in the case where the control constant suitable for the control of the ECU 20 is examined using the design and development system 10 of the present embodiment will be described.

ECU20の設計開発者は、設計ベンチにてECU20に適合ツール30を接続し、適合ツール30の入力装置31を用いて、固定小数点型データである適合定数Bを任意に設定する。   The design developer of the ECU 20 connects the calibration tool 30 to the ECU 20 on the design bench, and arbitrarily sets the calibration constant B, which is fixed-point data, using the input device 31 of the calibration tool 30.

その入力装置31を用いて設定された適合定数Bは、適合I/F処理部43へ転送され、記憶領域53に書き込まれる。   The adaptation constant B set using the input device 31 is transferred to the adaptation I / F processing unit 43 and written in the storage area 53.

定数変換処理部62は、記憶領域53に書き込まれている適合定数Bを読み出し、固定小数点型データである適合定数Bを浮動小数点型データにデータ変換して制御定数bを生成し、その制御定数bを制御プログラム処理部41へ転送する。   The constant conversion processing unit 62 reads the adaptive constant B written in the storage area 53, converts the adaptive constant B, which is fixed-point type data, into data of floating-point type data, generates a control constant b, and the control constant b is transferred to the control program processing unit 41.

制御プログラム処理部41は、データ変換処理部42から転送されてくる制御定数bに基づいて制御プログラムを実行する。   The control program processing unit 41 executes the control program based on the control constant b transferred from the data conversion processing unit 42.

このとき、適合ツール30の表示装置32は、適合I/F処理部43の記憶領域53に書き込まれている適合定数Bを読み出し、その適合定数Bを表示する。   At this time, the display device 32 of the matching tool 30 reads the matching constant B written in the storage area 53 of the matching I / F processing unit 43 and displays the matching constant B.

従って、ECU20の設計開発者は、表示装置32に表示された適合定数Bをモニタすることができる。   Therefore, the design developer of the ECU 20 can monitor the adaptation constant B displayed on the display device 32.

そして、ECU20の設計開発者は、適合ツール30を使用し、ECU20の制御が最適になるような制御定数bをカット・アンド・トライで実験的に求める。   Then, the design developer of the ECU 20 uses the matching tool 30 and experimentally obtains a control constant b that optimizes the control of the ECU 20 by cut-and-try.

尚、制御定数bは、ECU20による被制御装置の電子制御に際して規定されている制御のための定数である。   The control constant b is a constant for control that is defined when the ECU 20 performs electronic control of the controlled device.

例えば、被制御装置が自動車の燃料噴射式エンジンの場合、エンジン回転数がレッドゾーンとなる所定回転数で燃料噴射を停止させるが、その所定回転数はエンジンの機種によって規定されているため、その所定回転数を制御定数bとして設定する必要がある。   For example, when the controlled device is a fuel injection engine of an automobile, the fuel injection is stopped at a predetermined rotational speed at which the engine rotational speed is in the red zone, but the predetermined rotational speed is defined by the engine model. It is necessary to set the predetermined rotation speed as the control constant b.

そこで、制御定数bである当該所定回転数を検討する際に、本実施形態の設計開発システム10を用いるわけである。   Therefore, the design development system 10 of the present embodiment is used when examining the predetermined rotational speed that is the control constant b.

[適合した制御変数を検討する場合の動作]
次に、本実施形態の設計開発システム10を用い、ECU20の制御に適合した制御変数を検討する場合の動作について説明する。
[Operation when examining suitable control variables]
Next, the operation in the case where the control variable suitable for the control of the ECU 20 is examined using the design and development system 10 of the present embodiment will be described.

ECU20のマイコン21は、ROM23に記録(記憶)されているプログラムに従い、コンピュータによる各種演算処理によって、以下の各ステップ(以下、「S」と記載する)の処理を実行する。   The microcomputer 21 of the ECU 20 executes processes of the following steps (hereinafter referred to as “S”) by various arithmetic processes by the computer in accordance with a program recorded (stored) in the ROM 23.

図3は、適合I/F処理部43の初期化処理の流れを示すフローチャートである。   FIG. 3 is a flowchart showing a flow of initialization processing of the compatible I / F processing unit 43.

適合I/F処理部43の初期化処理は、制御プログラム処理部41が実行する制御プログラムの初期化処理と同じタイミングで行われる。   The initialization process of the adaptive I / F processing unit 43 is performed at the same timing as the initialization process of the control program executed by the control program processing unit 41.

尚、モニタ用適合変数A1の初期化処理は制御変数aの初期化処理の後で行う必要があるため、適合I/F処理部43の初期化処理は、制御プログラム処理部41が実行する制御プログラムの初期化処理の後で行われる。   It should be noted that the initialization process for the monitor adaptation variable A1 needs to be performed after the initialization process for the control variable a. Therefore, the initialization process of the adaptation I / F processing unit 43 is performed by the control program processing unit 41. This is done after program initialization.

つまり、変数変換処理部61は、制御プログラム処理部41にて制御プログラムの初期化処理が開始されたかどうかを判定し(S101)、制御プログラムの初期化処理が開始された場合には(S101:Yes)、制御プログラム処理部41の記憶領域54に書き込まれている制御変数aを読み出し、浮動小数点型データである制御変数aを固定小数点型データにデータ変換してモニタ用適合変数A1を生成し、そのモニタ用適合変数A1を適合I/F処理部43の記憶領域51に書き込んで記憶させる(S102)。   That is, the variable conversion processing unit 61 determines whether or not the control program initialization process is started by the control program processing unit 41 (S101), and when the control program initialization process is started (S101: Yes), the control variable a written in the storage area 54 of the control program processing unit 41 is read, and the control variable a, which is floating-point type data, is converted into fixed-point type data to generate a monitor compatible variable A1. Then, the monitoring compatible variable A1 is written and stored in the storage area 51 of the compatible I / F processing unit 43 (S102).

尚、図3に示す「g( )」は、浮動小数点型データから固定小数点型データへの変換式を表すものである。   Note that “g ()” shown in FIG. 3 represents a conversion formula from floating point type data to fixed point type data.

そして、適合I/F処理部43は、記憶領域51に書き込まれたモニタ用適合変数A1を読み出し、そのモニタ用適合変数A1を記憶領域52に上書きすることにより、記憶領域52に書き込まれている書込用適合変数A2をモニタ用適合変数A1に更新させる(S103)。   Then, the compatible I / F processing unit 43 reads the monitor compatible variable A1 written in the storage area 51, and overwrites the monitor compatible variable A1 in the storage area 52, thereby writing it in the storage area 52. The writing adaptive variable A2 is updated to the monitoring adaptive variable A1 (S103).

S103の処理が終わると、適合I/F処理部43の初期化処理が終了される。   When the process of S103 is completed, the initialization process of the compatible I / F processing unit 43 is ended.

図4は、制御変数の検討に際してECU20のマイコン21が行う処理の流れを示すフローチャートである。   FIG. 4 is a flowchart showing a flow of processing performed by the microcomputer 21 of the ECU 20 when examining the control variable.

ECU20の設計開発者は、設計ベンチにてECU20に適合ツール30を接続し、適合ツール30の入力装置31を用いて、固定小数点型データである書込用適合変数A2を任意に設定する。   The design developer of the ECU 20 connects the adaptive tool 30 to the ECU 20 on the design bench, and arbitrarily sets the adaptive variable A2 for writing, which is fixed-point type data, using the input device 31 of the adaptive tool 30.

その入力装置31を用いて設定された書込用適合変数A2は、適合I/F処理部43へ転送され、記憶領域52に書き込まれる。   The adaptive parameter A2 for writing set using the input device 31 is transferred to the adaptive I / F processing unit 43 and written in the storage area 52.

変数変換処理部61は、適合I/F処理部43の各記憶領域51,52に書き込まれている各適合変数A1,A2をそれぞれ読み出し、各適合変数A1,A2を比較して異なるかどうかを判定する(S201)。   The variable conversion processing unit 61 reads out the adaptation variables A1 and A2 written in the storage areas 51 and 52 of the adaptation I / F processing unit 43, respectively, and compares the adaptation variables A1 and A2 to determine whether they are different. Determine (S201).

そして、変数変換処理部61は、各適合変数A1,A2が異なる場合には(S201:Yes)、記憶領域52に新たな書込用適合変数A2が書き込まれたと判定し、固定小数点型データである書込用適合変数A2を浮動小数点型データにデータ変換して制御変数aを生成し、その制御変数aを制御プログラム処理部41の記憶領域54に書き込んで記憶させる(S202)。   Then, when each of the adaptive variables A1 and A2 is different (S201: Yes), the variable conversion processing unit 61 determines that a new adaptive variable for writing A2 has been written in the storage area 52, and uses the fixed-point type data. A certain adaptive variable A2 for writing is converted into floating point type data to generate a control variable a, and the control variable a is written and stored in the storage area 54 of the control program processing unit 41 (S202).

尚、図4に示す「f( )」は、固定小数点型データから浮動小数点型データへの変換式を表すものである。   Note that “f ()” shown in FIG. 4 represents a conversion formula from fixed-point type data to floating-point type data.

制御プログラム処理部41は、記憶領域54に書き込まれた制御変数aに基づいて制御プログラムを実行する。   The control program processing unit 41 executes the control program based on the control variable a written in the storage area 54.

次に、適合I/F処理部43は、記憶領域52に書き込まれた書込用適合変数A2を読み出し、その書込用適合変数A2を記憶領域51に上書きすることにより、記憶領域51に書き込まれているモニタ用適合変数A1を書込用適合変数A2に更新させる(S203)。   Next, the adaptive I / F processing unit 43 reads the adaptive variable A2 for writing written in the storage area 52, and writes it in the storage area 51 by overwriting the adaptive variable A2 for writing on the storage area 51. The monitoring adaptation variable A1 is updated to the writing adaptation variable A2 (S203).

また、変数変換処理部61は、各適合変数A1,A2が同じ場合には(S201:No)、記憶領域52に新たな書込用適合変数A2が書き込まれていないと判定し、浮動小数点型データである制御変数aを固定小数点型データにデータ変換してモニタ用適合変数A1を生成し、そのモニタ用適合変数A1を適合I/F処理部43の記憶領域51に書き込んで記憶させる(S204)。   In addition, when the matching variables A1 and A2 are the same (S201: No), the variable conversion processing unit 61 determines that a new writing matching variable A2 is not written in the storage area 52, and the floating-point type The control variable a, which is data, is converted into fixed-point type data to generate a monitor compatible variable A1, and the monitor compatible variable A1 is written and stored in the storage area 51 of the compatible I / F processing unit 43 (S204). ).

尚、図4に示す「g( )」は、浮動小数点型データから固定小数点型データへの変換式を表すものである。   Note that “g ()” shown in FIG. 4 represents a conversion formula from floating point type data to fixed point type data.

そして、適合I/F処理部43は、記憶領域51に書き込まれたモニタ用適合変数A1を読み出し、そのモニタ用適合変数A1を記憶領域52に上書きすることにより、記憶領域52に書き込まれている書込用適合変数A2をモニタ用適合変数A1に更新させる(S205)。   Then, the compatible I / F processing unit 43 reads the monitor compatible variable A1 written in the storage area 51, and overwrites the monitor compatible variable A1 in the storage area 52, thereby writing it in the storage area 52. The adaptive variable A2 for writing is updated to the adaptive variable A1 for monitoring (S205).

S203またはS205の処理が終わると、制御変数の検討に際してECU20のマイコン21が行う処理が終了される。   When the process of S203 or S205 is finished, the process performed by the microcomputer 21 of the ECU 20 when the control variable is examined is finished.

このとき、適合ツール30の表示装置32は、適合I/F処理部43の記憶領域51に書き込まれているモニタ用適合変数A1を読み出し、そのモニタ用適合変数A1を表示する。   At this time, the display device 32 of the calibration tool 30 reads the monitor calibration variable A1 written in the storage area 51 of the calibration I / F processing unit 43 and displays the monitor calibration variable A1.

従って、ECU20の設計開発者は、表示装置32に表示されたモニタ用適合変数A1をモニタすることができる。   Therefore, the design developer of the ECU 20 can monitor the monitoring compatible variable A1 displayed on the display device 32.

そして、ECU20の設計開発者は、適合ツール30を使用し、ECU20の制御が最適になるような制御変数aをカット・アンド・トライで実験的に求める。   Then, the design developer of the ECU 20 uses the matching tool 30 to experimentally obtain the control variable a that optimizes the control of the ECU 20 by cut-and-try.

ここで、適合I/F処理部43の記憶領域51に書き込まれているモニタ用適合変数A1は、図3および図4に示す処理により、制御プログラム処理部41が制御プログラムの実行に使用中の制御変数a(記憶領域54に書き込まれている制御変数a)と常に対応している。   Here, the monitoring adaptation variable A1 written in the storage area 51 of the adaptation I / F processing unit 43 is being used by the control program processing unit 41 for executing the control program by the processing shown in FIGS. It always corresponds to the control variable a (control variable a written in the storage area 54).

そのため、ECU20の設計開発者は、表示装置32に表示されたモニタ用適合変数A1をモニタすることにより、その時点で制御プログラム処理部41が制御プログラムの実行に使用中の制御変数aを確実に認知することができる。   For this reason, the design developer of the ECU 20 monitors the monitoring compatible variable A1 displayed on the display device 32, so that the control variable a used by the control program processing unit 41 for execution of the control program at that time is surely determined. Can be recognized.

尚、制御変数aは、ECU20による被制御装置の電子制御に際して規定されている制御のための変数である。   The control variable a is a variable for control that is defined when the ECU 20 performs electronic control of the controlled device.

例えば、被制御装置が自動車の水冷式エンジンの場合、エンジン回転数や冷却水温などを制御変数aとして設定する必要がある。   For example, when the controlled device is a water-cooled engine of an automobile, it is necessary to set the engine speed, the cooling water temperature, etc. as the control variable a.

そこで、制御変数aであるエンジン回転数や冷却水温などを検討する際に、本実施形態の設計開発システム10を用いるわけである。   Therefore, the design development system 10 of the present embodiment is used when examining the engine speed, the cooling water temperature, and the like, which are the control variables a.

[実施形態の作用・効果]
以上詳述した本実施形態の設計開発システム10では、従来から使用されている固定小数点型データに対応した適合ツール30を流用することが可能である。
[Operations and effects of the embodiment]
In the design and development system 10 of the present embodiment described in detail above, it is possible to divert the matching tool 30 corresponding to fixed-point type data that has been used conventionally.

そのため、本実施形態の設計開発システム10によれば、浮動小数点型データに対応した適合ツールを新規に開発する場合や、固定小数点型データに対応した適合ツール30を浮動小数点型データに対応するように改造する場合に比べて、設計開発システムの開発コストを低く抑えることができる。   For this reason, according to the design and development system 10 of the present embodiment, when an adaptive tool corresponding to floating-point type data is newly developed, or the adaptive tool 30 corresponding to fixed-point type data is compatible with floating-point type data. The development cost of the design and development system can be kept low compared to the case of remodeling.

また、本実施形態の設計開発システム10によれば、固定小数点型データに対応した適合ツール30を使い慣れた設計開発者を戸惑わせることがなく、設計開発者は適合ツール30を使用して従来通りの操作を行うだけでよいため、ECU20の設計開発の遅れを防止できる。   Further, according to the design and development system 10 of the present embodiment, the design developer who uses the calibration tool 30 corresponding to the fixed-point type data is not confused, and the design developer uses the calibration tool 30 in the past. Since it is only necessary to perform the operation as described above, it is possible to prevent delay in the design and development of the ECU 20.

[別の実施形態]
ところで、本発明は上記実施形態に限定されるものではなく、以下のように具体化してもよく、その場合でも、上記実施形態と同等もしくはそれ以上の作用・効果を得ることができる。
[Another embodiment]
By the way, the present invention is not limited to the above-described embodiment, and may be embodied as follows, and even in that case, operations and effects equivalent to or higher than those of the above-described embodiment can be obtained.

[1]上記実施形態において、CPU22またはFPU26が実行する各種演算処理によって実現されるデータ変換処理部42および適合I/F処理部43は、ECU20の設計開発時のみに必要であり、ECU20の生産時(量産時)には不要である。   [1] In the above embodiment, the data conversion processing unit 42 and the adaptive I / F processing unit 43 realized by various arithmetic processes executed by the CPU 22 or the FPU 26 are necessary only during the design development of the ECU 20, and the production of the ECU 20 It is not necessary at times (during mass production).

ECU20の生産時に各処理部42,43の機能が残っている場合、各処理部42,43の機能分だけCPU22またはFPU26の動作に負担がかかり、制御プログラム処理部41の実行する制御プログラムの処理速度が低下するおそれがある。また、ECU20の生産時に各処理部42,43の機能が残っている場合、RAM24内に各記憶領域51〜53が設定されるため、各記憶領域51〜53の分だけRAM24の使用効率が低下するおそれがある。   When the functions of the processing units 42 and 43 remain during the production of the ECU 20, the operation of the CPU 22 or the FPU 26 is burdened by the functions of the processing units 42 and 43, and the processing of the control program executed by the control program processing unit 41 The speed may be reduced. Further, when the functions of the processing units 42 and 43 remain during the production of the ECU 20, the storage areas 51 to 53 are set in the RAM 24, so that the use efficiency of the RAM 24 is reduced by the storage areas 51 to 53. There is a risk.

そこで、ROM23に記憶されているコンピュータプログラムに選択コンパイル機能を設け、ECU20の生産時には各処理部42,43を機能させないようにすると共に各記憶領域51〜53が設定されないようにすることにより、制御プログラム処理部41の処理速度が低下するのを防止すると共に、RAM24の使用効率の低下を防止する。   Therefore, a selective compilation function is provided in the computer program stored in the ROM 23 so that the processing units 42 and 43 are not functioned during the production of the ECU 20 and the storage areas 51 to 53 are not set. While preventing the processing speed of the program processing unit 41 from being lowered, the use efficiency of the RAM 24 is prevented from being lowered.

図5は、設計開発時および生産時においてROM23に記憶されているコンピュータプログラムの一例を模式的に示す説明図である。   FIG. 5 is an explanatory diagram schematically showing an example of a computer program stored in the ROM 23 at the time of design development and production.

各処理部42,43を機能させるためのコンピュータプログラムの先頭側と末尾側とにコンパイラに対する選択コンパイル命令を埋め込んでおくことにより、ECU20の設計開発時には各処理部42,43を機能させ、ECU20の生産時には選択コンパイル機能によって各処理部42,43を機能させないようにする。   By embedding selective compilation instructions for the compiler at the beginning and end of the computer program for causing the processing units 42 and 43 to function, the processing units 42 and 43 are caused to function during the design development of the ECU 20. At the time of production, the processing units 42 and 43 are prevented from functioning by the selective compilation function.

このようにした場合、ECU20の生産時には、各処理部42,43を機能させるためのコンピュータプログラムおよび選択コンパイル命令がROM23内から削除されるため、ROM23の使用効率を高めることもできる。   In this case, when the ECU 20 is produced, the computer program and the selected compilation instruction for causing the processing units 42 and 43 to function are deleted from the ROM 23, so that the usage efficiency of the ROM 23 can be improved.

[2]ROM23に記憶されているコンピュータプログラムに、ECU20の設計開発時と生産時を判別するための判別用フラグを埋め込んでおき、ECU20の生産時には各処理部42,43を機能させないようにすると共に各記憶領域51〜53が設定されないようにすることにより、制御プログラム処理部41の処理速度が低下するのを防止すると共に、RAM24の使用効率の低下を防止する。   [2] A discrimination flag for discriminating between design development and production of the ECU 20 is embedded in the computer program stored in the ROM 23 so that the processing units 42 and 43 do not function during the production of the ECU 20. In addition, by preventing the storage areas 51 to 53 from being set, it is possible to prevent the processing speed of the control program processing unit 41 from being lowered and to prevent the use efficiency of the RAM 24 from being lowered.

図6は、設計開発時および生産時においてROM23に記憶されているコンピュータプログラムの一例を模式的に示す説明図である。   FIG. 6 is an explanatory diagram schematically showing an example of a computer program stored in the ROM 23 at the time of design development and production.

各処理部42,43を機能させるためのコンピュータプログラムの先頭側に、ECU20の設計開発時と生産時を判別するための判別用フラグを埋め込んでおき、ECU20の設計開発時には各処理部42,43を機能させ、ECU20の生産時には判別用フラグから各処理部42,43を機能させるコンピュータプログラム部分を飛ばして次の制御プログラムへ移行させるようにする。   A discrimination flag for discriminating between the design development time and the production time of the ECU 20 is embedded in the head side of the computer program for causing the processing units 42 and 43 to function. And the computer program part for causing the processing units 42 and 43 to function is skipped from the determination flag when the ECU 20 is produced, and the process proceeds to the next control program.

[3]上記実施形態では、固定小数点型データである適合定数Bを浮動小数点型データである制御定数bにデータ変換しているが、定数をマップに置き代え、固定小数点型データである適合マップを浮動小数点型データである制御マップにデータ変換するようにしてもよい。   [3] In the above embodiment, the adaptation constant B, which is fixed-point type data, is converted to the control constant b, which is floating-point type data, but the constant is replaced with a map, and the adaptation map is fixed-point type data. May be converted into a control map which is floating point type data.

尚、制御マップは、ECU20による被制御装置の電子制御に際して規定されている制御のためのマップデータである。   The control map is map data for control that is defined when the ECU 20 performs electronic control of the controlled device.

例えば、被制御装置が自動車の燃料噴射式エンジンの場合、エンジン回転数に対応して燃料噴射量の限度値が決まるが、そのエンジン回転数に対応する燃料噴射量の限度値はエンジンの機種によって規定されているため、そのエンジン回転数に対応する燃料噴射量の限度値を制御マップとして設定する必要がある。   For example, when the controlled device is a fuel injection engine of an automobile, the limit value of the fuel injection amount is determined according to the engine speed, and the limit value of the fuel injection amount corresponding to the engine speed depends on the model of the engine. Since it is defined, it is necessary to set a limit value of the fuel injection amount corresponding to the engine speed as a control map.

そこで、制御マップであるエンジン回転数に対応する燃料噴射量の限度値を検討する際に、上記実施形態の設計開発システム10を用いるわけである。   Therefore, when the limit value of the fuel injection amount corresponding to the engine speed, which is the control map, is examined, the design and development system 10 of the above embodiment is used.

[4]上記実施形態はCPU22およびFPU26を内蔵したマイコン21に適用したものであるが、本発明は、CPU22を省いてFPU26のみを内蔵したマイコンに適用してもよい。   [4] Although the above embodiment is applied to the microcomputer 21 incorporating the CPU 22 and the FPU 26, the present invention may be applied to a microcomputer incorporating only the FPU 26 without the CPU 22.

図1は、本発明を具体化した一実施形態における電子制御装置の設計開発システム10の主要構成を示すブロック回路図である。FIG. 1 is a block circuit diagram showing a main configuration of an electronic control device design and development system 10 according to an embodiment of the present invention. 図2は、図1に示す設計開発システム10を一実施形態に係る機能ブロックによって表した機能ブロック回路図である。FIG. 2 is a functional block circuit diagram showing the design development system 10 shown in FIG. 1 by functional blocks according to an embodiment. 図3は、適合I/F処理部43の初期化処理の流れを示すフローチャートである。FIG. 3 is a flowchart showing a flow of initialization processing of the compatible I / F processing unit 43. 図4は、制御変数の検討に際してECU20のマイコン21が行う処理の流れを示すフローチャートである。FIG. 4 is a flowchart showing a flow of processing performed by the microcomputer 21 of the ECU 20 when examining the control variable. 図5は、設計開発時および生産時においてROM23に記憶されているコンピュータプログラムの一例を模式的に示す説明図である。FIG. 5 is an explanatory diagram schematically showing an example of a computer program stored in the ROM 23 at the time of design development and production. 図6は、設計開発時および生産時においてROM23に記憶されているコンピュータプログラムの一例を模式的に示す説明図である。FIG. 6 is an explanatory diagram schematically showing an example of a computer program stored in the ROM 23 at the time of design development and production.

符号の説明Explanation of symbols

10…設計開発システム
20…電子制御装置(ECU)
21…マイクロコンピュータ
30…適合ツール
31…入力装置
32…表示装置
41…制御プログラム処理部
42…データ変換処理部
43…適合インターフェース(I/F)処理部
A1…モニタ用適合変数
A2…書込用適合変数
B…適合定数
a…制御変数
b…制御定数
10. Design and development system 20. Electronic control unit (ECU)
DESCRIPTION OF SYMBOLS 21 ... Microcomputer 30 ... Conformity tool 31 ... Input device 32 ... Display apparatus 41 ... Control program processing part 42 ... Data conversion processing part 43 ... Conformity interface (I / F) processing part A1 ... Monitor suitable variable A2 ... For writing Conformance variable B ... Conformance constant a ... Control variable b ... Control constant

Claims (5)

被制御装置を電子制御するために浮動小数点型データを用いて演算を行う電子制御装置と、
その電子制御装置の制御に適合した制御データを検討するために使用される固定小数点型データに対応した適合ツールと
を備えた電子制御装置の設計開発システムであって、
前記適合ツールは、
前記電子制御装置の制御データを任意に設定するための入力手段と、
その設定した制御データをモニタするための表示手段とを備え、
前記電子制御装置は、
前記入力手段によって設定された固定小数点型の制御データを記憶する記憶手段と、
その記憶手段に記憶されている固定小数点型の制御データを読み出し、その固定小数点型データを浮動小数点型データにデータ変換する変換手段と、
その変換手段によってデータ変換された浮動小数点型の制御データを用いて被制御装置を電子制御するための演算を行う演算手段とを備え、
前記変換手段は、前記演算手段が前記演算に使用している浮動小数点型の制御データを固定小数点型データにデータ変換し、
前記記憶手段は、前記変換手段によってデータ変換された固定小数点型の制御データを第1制御データとして記憶する第1記憶領域と、前記入力手段によって設定された第2制御データを記憶する第2記憶領域とを有し、
さらに前記変換手段は、
前記第1記憶領域に記憶されている第1制御データと、前記第2記憶領域に記憶されている第2制御データとを比較し、該第1制御データと該第2制御データとが異なる場合には、前記第2記憶領域に新たな第2制御データが書き込まれたと判定し、その第2制御データを浮動小数点型データにデータ変換して前記演算手段へ送出すると共に、その第2制御データを前記第1記憶領域に上書きすることにより、前記第1記憶領域に書き込まれている第1制御データを第2制御データに更新させ、
前記第1制御データと前記第2制御データとが同じ場合には、前記第2記憶領域に新たな第2制御データが書き込まれていないと判定し、前記演算手段が前記演算に使用している制御データを固定小数点型データにデータ変換して第1制御データを生成し、その第1制御データを前記第1記憶領域に書き込むと共に、その第1制御データを前記第2記憶領域に上書きすることにより、前記第2記憶領域に書き込まれている第2制御データを第1制御データに更新させる
ことを特徴とする電子制御装置の設計開発システム。
An electronic control device that performs calculations using floating-point data to electronically control the controlled device;
A design and development system for an electronic control unit including a calibration tool corresponding to fixed-point data used for examining control data suitable for control of the electronic control unit,
The adaptation tool is:
Input means for arbitrarily setting control data of the electronic control unit;
And display means for monitoring the set control data,
The electronic control device
Storage means for storing fixed-point type control data set by the input means;
Conversion means for reading out the fixed-point type control data stored in the storage means and converting the fixed-point type data into floating-point type data;
Bei example and arithmetic means for performing an operation for electronically controlling the controlled device using control data of the floating point type, which is data converted by the conversion means,
The conversion means converts the floating-point type control data used by the calculation means to the calculation into fixed-point type data,
The storage means stores a first storage area that stores fixed-point control data converted by the conversion means as first control data, and a second storage that stores second control data set by the input means. And having an area
Further, the conversion means includes
When the first control data stored in the first storage area is compared with the second control data stored in the second storage area, and the first control data and the second control data are different Determines that new second control data has been written in the second storage area, converts the second control data into floating-point data, sends it to the computing means, and sends the second control data. Overwriting the first storage area to update the first control data written in the first storage area to the second control data,
When the first control data and the second control data are the same, it is determined that new second control data is not written in the second storage area, and the calculation means uses the calculation data. The control data is converted into fixed-point type data to generate first control data, the first control data is written to the first storage area, and the first control data is overwritten on the second storage area. The electronic control unit design and development system , wherein the second control data written in the second storage area is updated to the first control data .
請求項1に記載の電子制御装置の設計開発システムにおいて、
前記表示手段は、前記記憶手段に記憶されている固定小数点型の制御データを読み出して表示することを特徴とする電子制御装置の設計開発システム。
The electronic control device design and development system according to claim 1 ,
The electronic control unit design and development system, wherein the display unit reads out and displays fixed-point type control data stored in the storage unit.
請求項1または2に記載の電子制御装置の設計開発システムにおいて、
前記電子制御装置の生産時には、前記記憶手段および前記変換手段を機能させないようにすることを特徴とする電子制御装置の設計開発システム。
In the design development system of the electronic control unit according to claim 1 or 2 ,
A design and development system for an electronic control device, wherein the storage means and the conversion means are prevented from functioning during production of the electronic control device.
請求項1〜のいずれか1項に記載の電子制御装置の設計開発システムにおける前記各手段としてコンピュータシステムを機能させるためのプログラム。 The program for functioning a computer system as said each means in the design development system of the electronic controller of any one of Claims 1-3 . 請求項1〜のいずれか1項に記載の電子制御装置の設計開発システムにおける前記各手段としてコンピュータシステムを機能させるためのプログラムが記録されたコンピュータで読み取り可能な記録媒体。 A computer-readable recording medium in which a program for causing a computer system to function as each of the means in the design and development system for an electronic control device according to any one of claims 1 to 4 is recorded.
JP2003279245A 2003-07-24 2003-07-24 Electronic control device design and development system, program, recording medium Expired - Fee Related JP4196773B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003279245A JP4196773B2 (en) 2003-07-24 2003-07-24 Electronic control device design and development system, program, recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003279245A JP4196773B2 (en) 2003-07-24 2003-07-24 Electronic control device design and development system, program, recording medium

Publications (2)

Publication Number Publication Date
JP2005044227A JP2005044227A (en) 2005-02-17
JP4196773B2 true JP4196773B2 (en) 2008-12-17

Family

ID=34265413

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003279245A Expired - Fee Related JP4196773B2 (en) 2003-07-24 2003-07-24 Electronic control device design and development system, program, recording medium

Country Status (1)

Country Link
JP (1) JP4196773B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6812818B2 (en) * 2017-02-06 2021-01-13 株式会社デンソー Electronic control device

Also Published As

Publication number Publication date
JP2005044227A (en) 2005-02-17

Similar Documents

Publication Publication Date Title
US8731737B2 (en) Microcontroller having a computing unit and a logic circuit, and method for carrying out computations by a microcontroller for a regulation or a control in a vehicle
JP4515701B2 (en) VEHICLE CONTROL PROGRAM AND VEHICLE CONTROL DEVICE
US6226777B1 (en) Method and system for improving the performance of a circuit design verification tool
US20090187892A1 (en) Apparatus and program for test case generation
US7269820B2 (en) Program code generator and program
JP2005078243A (en) Microcomputer resource consumption estimation program, microcomputer resource consumption estimation device, and program generation method
CN101551740A (en) Embedded control system
US6321290B1 (en) Program checking method, program checking apparatus, and computer-readable recording medium for recording target program checking program capable of reducing tracing interrupt time
JP5589919B2 (en) Design support device, design support program
JP4196773B2 (en) Electronic control device design and development system, program, recording medium
CN115657537B (en) Calibration data management method, device and medium for vehicle and electronic control unit
JP4728563B2 (en) Code generation device, code generation program, function execution device, function execution program, model generation device, and model generation program
CN101813486B (en) Navigation system
CN100430892C (en) Ways to reduce boot time
JP2012185542A (en) Code generation device and code generation program
JP2008305246A (en) Information processing apparatus, cache flash control method, and information processing control apparatus
JP3693642B2 (en) Navigation device
US20070271080A1 (en) Model generation method for software/hardware collaboration design
WO2022239220A1 (en) High-level synthesis device, high-level synthesis method, and information processing device
JP2016071883A (en) Identifying the signal to read back from the FPGA
JP2004225668A (en) Electronic control device and storage device of the electronic control device
JP2513142B2 (en) Program simulator device
JP2010009435A (en) Software development environment, and equipment mounted with software developed using the same
JP6085264B2 (en) Controller development tool
JP5530417B2 (en) Controller development tool

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20051011

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051116

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080311

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080507

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080603

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080801

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20080807

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: 20080909

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: 20080922

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

Free format text: PAYMENT UNTIL: 20111010

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4196773

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20121010

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20121010

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20131010

Year of fee payment: 5

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

LAPS Cancellation because of no payment of annual fees