JP4177801B2 - Control program - Google Patents
Control program Download PDFInfo
- Publication number
- JP4177801B2 JP4177801B2 JP2004294212A JP2004294212A JP4177801B2 JP 4177801 B2 JP4177801 B2 JP 4177801B2 JP 2004294212 A JP2004294212 A JP 2004294212A JP 2004294212 A JP2004294212 A JP 2004294212A JP 4177801 B2 JP4177801 B2 JP 4177801B2
- Authority
- JP
- Japan
- Prior art keywords
- output
- input
- storage unit
- parameters
- control program
- 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
Links
Images
Landscapes
- Combined Controls Of Internal Combustion Engines (AREA)
Description
この発明は制御プログラムに関し、より具体的には、例えば車両(プラント(制御対象))を制御するソースコードからなる制御プログラムであって、自動生成されたソースコードをそのまま用いることが可能な制御プログラムに関する。 The present invention relates to a control program, and more specifically, for example, a control program including source code for controlling a vehicle (plant (control target)), and can use an automatically generated source code as it is. About.
従来、例えば車両に搭載された内燃機関の燃料噴射装置、点火装置、トランスミッション、デファレンシャル、ブレーキなどを制御する制御プログラムを記憶してなる電子制御装置が採用されている。 2. Description of the Related Art Conventionally, for example, an electronic control device that stores a control program for controlling a fuel injection device, an ignition device, a transmission, a differential, a brake, and the like of an internal combustion engine mounted on a vehicle has been adopted.
この制御プログラムを作成する場合、設計者から要求された仕様に基づいてプログラマがフロー・チャートを作成し、作成されたフロー・チャートによりソースコードをコーディングする。コーディングされたソースコードは、アセンブラされて機械語に翻訳され、その機械語からなる制御プログラムが電子制御装置に搭載され、プラントを制御する。 When creating this control program, the programmer creates a flow chart based on the specifications requested by the designer, and codes the source code using the created flow chart. The coded source code is assembled and translated into a machine language, and a control program comprising the machine language is mounted on an electronic control unit to control the plant.
このようなソースコードの作成過程において、要求仕様が変更されたり、ソースコードの検証において不具合が発見された場合、プログラマが手作業によりソースコードを変更していた。近年、エレクトロニクス化の進展に伴い、ソースコードの記述量は急激に増加している。そのような状況においてプログラマが手作業によってソースコードを作成したり、変更することは工数を増大させるに止まらず、開発期間を引き延ばすと共に、開発コストの増加を招く。 In such a source code creation process, if a required specification is changed or a defect is found in the verification of the source code, the programmer has changed the source code manually. In recent years, with the progress of electronics, the amount of description of source code has increased rapidly. In such a situation, manual creation and modification of source code by a programmer not only increases man-hours, but also extends the development period and increases development costs.
そこで、以下に記載する特許文献1において自動生成装置を用いてソースコードの作成または変更を行う開発支援技術が提案されている。特許文献1記載の技術によるとき、ソースコードの作成工数を削減できると共に、手作業による人為的ミスなどを低減することができる。
ところで、プラントを制御するには、逐次更新される複数の入力パラメータに基づいて演算を行い、よって得た演算結果をプラントに出力することになるが、制御によっては演算において時間的に同期を取る必要があり、時間的な同期を考慮したソースコードを作成しなければならない。 By the way, in order to control the plant, the calculation is performed based on a plurality of input parameters that are sequentially updated, and the obtained calculation result is output to the plant. It is necessary to create a source code that considers time synchronization.
即ち、プラントを制御するには、逐次更新される複数の入力パラメータに基づいて演算を行うが、プラントへ出力する出力パラメータも複数ある場合、それら複数の出力パラメータのそれぞれについて演算を行わなければならない。その際、各々の出力パラメータの演算の都度、入力パラメータを取得してしまう不都合がある。同様のことは、プラントに複数の出力パラメータを出力する際にも生じる。 That is, in order to control the plant, calculation is performed based on a plurality of input parameters that are sequentially updated. When there are a plurality of output parameters to be output to the plant, the calculation must be performed for each of the plurality of output parameters. . In this case, there is a disadvantage that the input parameter is acquired every time each output parameter is calculated. The same thing happens when outputting multiple output parameters to the plant.
しかしながら、特許文献1で提案されるソースコードの自動生成においては、ブロックモデルなどに基づいてソースコードが自動生成されるため、その点が考慮されておらず、依然として手作業によってソースコードの記述を解析し、再度コーディングを行う必要があった。よって、工数や開発コストを大幅に削減するには至っていない不都合があった。
However, in the automatic generation of the source code proposed in
従って、この発明は上記した課題を解消し、ソースコードを含む制御プログラムの生成および修正に要する手作業を回避するようにした制御プログラムを提供することを目的とする。 SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a control program that solves the above-described problems and avoids manual work required for generation and correction of a control program including source code.
上記の目的を達成するために、請求項1においては、プラントのブロックモデルに基づいてシミュレーションによる検証を通じて自動生成装置により生成された前記プラントの制御アルゴリズムを記述するソースコードを含む、制御プログラムにおいて、前記制御プログラムが、前記プラントの出力を複数の入力パラメータとして逐次更新しつつ入力記憶部に記憶させる入力記憶手段と、前記複数の入力パラメータの更新を禁止する更新禁止手段と、前記入力記憶部に記憶された複数の入力パラメータを複数の時点の値として引渡し記憶部に引き渡す入力パラメータ引渡し手段と、前記複数の入力パラメータの更新を許可する更新許可手段と、前記引き渡された複数の時点の値からなる入力パラメータに基づき、前記ソースコードから構成される演算部において複数の制御データを算出させて演算記憶部に記憶させる演算処理手段と、前記算出された複数の制御データから得られる複数の出力パラメータが記憶される出力記憶部からの前記複数の出力パラメータの出力を禁止する出力禁止手段と、前記複数の出力パラメータを前記出力記憶部に受け渡す出力パラメータ受渡し手段と、および前記出力記憶部からの前記複数の出力パラメータの出力を許可する出力許可手段とを備える如く構成した。
In order to achieve the above object, in
請求項2に係る制御プログラムにおいては、さらに、前記引渡し記憶部に引き渡される前記複数の時点からなる入力パラメータを、複数の演算データに変換して演算データ記憶部に記憶させる入力変換処理手段を備えると共に、前記演算処理手段に、前記記憶された複数の演算データに基づいて前記複数の制御データを算出させる如く構成した。
The control program according to
請求項3に係る制御プログラムにあっては、さらに、前記算出される複数の制御データを前記複数の出力パラメータに変換して受渡し記憶部に記憶させる出力変換手段を備えると共に、前記出力許可手段は、前記記憶された複数の出力パラメータの出力を許可する如く構成した。
In the control program according to
請求項1に係る制御プログラムにあっては、プラントの出力を複数の入力パラメータとして逐次更新しつつ入力記憶部に記憶させる入力記憶手段と、複数の入力パラメータの更新を禁止する更新禁止手段と、入力記憶部に記憶された複数の入力パラメータを複数の時点の値として引渡し記憶部に引き渡す入力パラメータ引渡し手段と、複数の入力パラメータの更新を許可する更新許可手段と、引き渡された複数の時点の値からなる入力パラメータに基づき、ソースコードから構成される演算部において複数の制御データを算出させて演算記憶部に記憶させる演算処理手段と、算出された複数の制御データから得られる複数の出力パラメータが記憶される出力記憶部からの複数の出力パラメータの出力を禁止する出力禁止手段と、複数の出力パラメータを出力記憶部に受け渡す出力パラメータ受渡し手段と、および出力記憶部からの複数の出力パラメータの出力を許可する出力許可手段とを備える如く構成したので、必要に応じてパラメータを同期させることができ、自動生成されたソースコードを含む制御プログラムをそのまま用いることができるため、手作業による修正が不要となり、要求仕様への迅速な対応が図れると共に、工数を削減することができ、制御プログラムの開発期間を短縮できる。また、それに伴って開発コストを削減することができる。
In the control program according to
請求項2に係る制御プログラムにおいては、さらに、引渡し記憶部に引き渡される複数の時点からなる入力パラメータを、複数の演算データに変換して演算データ記憶部に記憶させる入力変換処理手段を備えると共に、演算処理手段に、記憶された複数の演算データに基づいて複数の制御データを算出させる如く構成したので、複数の入力パラメータを複数の時点からなる入力パラメータとして引き渡す処理を短縮することが可能となり、よって更新禁止時間を短縮することで他の制御プログラムがそれら複数の入力パラメータを使用する際の割込み禁止の待ち時間を短縮することができ、他の制御プログラムの演算への影響を低減することができる。
The control program according to
請求項3に係る制御プログラムにあっては、さらに、算出される複数の制御データを複数の出力パラメータに変換して受渡し記憶部に記憶させる出力変換手段を備えると共に、出力許可手段は、記憶された複数の出力パラメータの出力を許可する如く構成したので、出力パラメータの受け渡し処理を短縮することが可能となり、割込み禁止時間に起因する遅れを最小に抑えることができる。
The control program according to
以下、添付図面を参照してこの発明に係る制御プログラムを実施するための最良の形態について説明する。 The best mode for carrying out a control program according to the present invention will be described below with reference to the accompanying drawings.
図1は、この発明の第1実施例に係る制御プログラムの開発から量産までを全体的に示す概略図である。 FIG. 1 is a schematic diagram showing the entire process from development to mass production of a control program according to the first embodiment of the present invention.
図示の如く、設計者によってプラントのブロックモデル10によるモデリングで表現される要求仕様に基づいてシミュレーションによる検証を通じて作成されたプラントの制御アルゴリズムが生成される。図2にブロックモデル10をより詳細に示す。
As shown in the figure, a plant control algorithm created through verification by simulation based on the required specifications expressed by modeling by the
次いで、自動生成装置12により、この実施例に係る制御アルゴリズムを記述するソースコードが生成される。図2にそのソースコードを詳細に示す(後述)。自動生成装置12はマイクロコンピュータからなる。
Next, source code describing a control algorithm according to this embodiment is generated by the
生成されたソースコードを含む、制御プログラム14はECU(電子制御装置)16に格納され、さらにシミュレーションを通じてその適否が検証される。即ち、ECU16はいわゆるプロトタイプであり、例えばHILS(Hardware In the Loop Simulation)などのシミュレータに組み込まれて量産前に適否が検証される。
The
次いで、検証が完了すると、ソースコードを含む制御プログラムが搭載されたECU16は量産され、量産されたECU16aが、車両(プラント)18に搭載されて燃料噴射などの制御を実行する。
Next, when the verification is completed, the
図3は、自動生成装置12で生成されるソースコードを含む、制御プログラム14の構成を機能的に示すブロック図である。
FIG. 3 is a block diagram functionally showing the configuration of the
図示の如く、制御プログラム14は、大別すると、制御部14aと演算処理部14bとからなる。制御部14aは、入力記憶部14a1と、引渡し記憶部14a2と、入出力処理部14a3と、受渡し記憶部14a4と、出力記憶部14a5とからなる。
As shown in the figure, the
制御部14aは、入出力処理部14a3と演算処理部14bを管理する。入出力処理部14a3は、制御部14aと演算処理部14bとの間のデータの入出力処理を行う。演算処理部14bは、車両18を制御するための演算を行う。
The control unit 14a manages the input / output processing unit 14a3 and the arithmetic processing unit 14b. The input / output processing unit 14a3 performs data input / output processing between the control unit 14a and the arithmetic processing unit 14b. The arithmetic processing unit 14 b performs arithmetic operations for controlling the
詳しくは、制御部14aは、例えば車両(プラント)18に設けられた運転状態に応じた信号を出力する各種のセンサまたは車両以外の関連するプラント情報に基づく複数の入力パラメータを逐次記憶する入力記憶部14a1と、複数の入力パラメータのうち、ある時点における複数の入力パラメータを複数の時点の値として記憶する引渡し記憶部14a2と、入出力処理部14a3と、演算処理部14bで算出された複数の出力パラメータ(制御データ)を入出力処理部14a3を介して受け取って記憶する受渡し記憶部14a4と、それら複数の出力パラメータを車両18へ出力するために記憶する出力記憶部14a5の動作を管理する。
Specifically, for example, the control unit 14a sequentially stores a plurality of input parameters based on various types of sensors that output signals corresponding to the operation state provided in the vehicle (plant) 18 or related plant information other than the vehicle. Unit 14a1, a delivery storage unit 14a2 that stores a plurality of input parameters at a certain point in time as values at a plurality of points, a plurality of input parameters, a plurality of input parameters calculated by an arithmetic processing unit 14b It manages the operation of a delivery storage unit 14a4 that receives and stores output parameters (control data) via the input / output processing unit 14a3, and an output storage unit 14a5 that stores these output parameters for output to the
また、入出力処理部14a3は、入力変換処理部14a31と出力変換処理部14a32を備え、それらを介して制御部14aと演算処理部14bとの間で複数の時点からなる入力パラメータおよび複数の出力パラメータのデータの収受を処理する。 Further, the input / output processing unit 14a3 includes an input conversion processing unit 14a31 and an output conversion processing unit 14a32, through which input parameters and a plurality of outputs are formed between the control unit 14a and the arithmetic processing unit 14b. Process receipt of parameter data.
尚、演算処理部14bは、演算データ記憶部14b1と演算部14b2と演算記憶部14b3を備える。演算部14b2には、自動生成装置12により生成されたソースコードが機械語に翻訳されて格納されている。即ち、演算部14b2はソースコードから構成される。
The calculation processing unit 14b includes a calculation data storage unit 14b1, a calculation unit 14b2, and a calculation storage unit 14b3. In the calculation unit 14b2, the source code generated by the
上記において、一般的な意味では、制御部14aがOperating System、入出力処理部14a3がApplication Programming Interface、演算処理部14bがApplication program Logicに相当する。 In the above, in a general sense, the control unit 14a corresponds to the operating system, the input / output processing unit 14a3 corresponds to the application programming interface, and the arithmetic processing unit 14b corresponds to the application program logic.
次いで、図4フロー・チャートを参照しつつ、図3に示す制御プログラム14の動作を説明する。
Next, the operation of the
制御プログラム14の動作においては、先ず、制御部14aで車両18の前記したセンサなどからの出力(プラント情報)を複数の入力パラメータとして入力記憶部14a1に記憶させる(S10)。尚、車両18の運転状態など時々刻々と変化するため、それらについての複数の入力パラメータは逐次更新されつつ記憶される。
In the operation of the
次に、演算処理部14bでの演算のための複数の入力パラメータを得るために、更新の割り込み(入力割込)を禁止し(S12)、複数の時点の値からなる入力パラメータを引渡し記憶部14a2に記憶させる(S14)。 Next, in order to obtain a plurality of input parameters for calculation in the calculation processing unit 14b, update interruption (input interrupt) is prohibited (S12), and an input parameter consisting of values at a plurality of time points is delivered and stored. It is stored in 14a2 (S14).
複数の時点の値からなる入力パラメータを記憶した後、複数の入力パラメータの更新の割り込みが再び許可され、入力パラメータの更新が逐次行われる(S16)。このように割り込みを禁止した状態で、複数の時点の値からなる入力パラメータを得るため、その取得中に入力パラメータが更新されることがなく、時間的なずれがないものを得ることができる。 After storing the input parameters composed of values at a plurality of points in time, the updating of the plurality of input parameters is again permitted, and the updating of the input parameters is performed sequentially (S16). In this way, an input parameter consisting of values at a plurality of points in time is obtained in a state where interruption is prohibited, so that the input parameter is not updated during the acquisition, and the input parameter can be obtained without a time lag.
次いで、引渡し記憶部14a2に記憶された複数の時点の値からなる入力パラメータは、入出力処理部14a3の入力変換処理部14a31で複数の演算データに変換されて演算処理部14bへ入力され、そこで演算データ記憶部14b1に記憶される(S18)。 Next, the input parameters composed of values at a plurality of points stored in the delivery storage unit 14a2 are converted into a plurality of calculation data by the input conversion processing unit 14a31 of the input / output processing unit 14a3 and input to the calculation processing unit 14b. It is stored in the calculation data storage unit 14b1 (S18).
S18の入力変換処理について説明すると、複数の入力パラメータは、各種センサで検出された電圧などの出力をA/D変換したデータ、または車両18以外の(車両18に関連する)データで構成される。このようなデータは直接、演算に用いることができないため、物理値に変換されてから演算に用いられる。このような変換処理を入力変換処理部14a31は行う。 The input conversion process in S18 will be described. The plurality of input parameters are configured by data obtained by A / D conversion of outputs such as voltages detected by various sensors, or data other than the vehicle 18 (related to the vehicle 18). . Since such data cannot be directly used for calculation, it is used for calculation after being converted into a physical value. The input conversion processing unit 14a31 performs such conversion processing.
次いで演算処理部14bでは複数の時点の値からなる入力パラメータに基づく演算データを用い、演算部14b2で複数の制御データが算出される(後述)。算出された制御データは演算記憶部14b3に記憶される(S20)。 Next, the calculation processing unit 14b uses calculation data based on input parameters composed of values at a plurality of times, and the calculation unit 14b2 calculates a plurality of control data (described later). The calculated control data is stored in the calculation storage unit 14b3 (S20).
演算データは再び入出力処理部14a3へ送られ、その出力変換処理部14a32で複数の出力パラメータに変換され、受渡し記憶部14a4に記憶される(S22)。 The calculation data is sent again to the input / output processing unit 14a3, converted into a plurality of output parameters by the output conversion processing unit 14a32, and stored in the delivery storage unit 14a4 (S22).
S22の出力変換処理について説明すると、演算データは算出されたデータそのものであるため、そのままでは車両18を駆動制御することができない。そのため、車両18を駆動制御するためのデータに変換する必要がある。出力変換処理部14a32は、そのような処理を行う。
The output conversion process of S22 will be described. Since the calculation data is the calculated data itself, the
次いで、出力記憶部14a5の複数の出力パラメータを出力する割り込みを禁止し(S24)、複数の出力パラメータを受渡し記憶部14a4から出力記憶部14a5に受け渡す(引き渡す)処理が実行される(S26)。受け渡し処理が完了した後、出力記憶部14a5の複数の出力パラメータを出力する割り込みを許可する(S28)。それによって車両18への出力が行われ、車両18の動作が制御される。
Next, an interrupt for outputting a plurality of output parameters in the output storage unit 14a5 is prohibited (S24), and a process of transferring (delivering) the plurality of output parameters from the delivery storage unit 14a4 to the output storage unit 14a5 is executed (S26). . After the delivery process is completed, an interrupt for outputting a plurality of output parameters in the output storage unit 14a5 is permitted (S28). Thereby, the output to the
このように、割り込みを禁止した状態で出力記憶部14a5に記憶することで、出力記憶部14a5に複数の出力パラメータを受け渡している途中で車両18に出力されないため、時間的なずれを生じることなく、複数の出力パラメータを出力することができる。
As described above, by storing the output in the output storage unit 14a5 in a state in which the interruption is prohibited, the output storage unit 14a5 is not output to the
図5は、図4のS20の処理の具体的な例を示すフロー・チャートである。 FIG. 5 is a flowchart showing a specific example of the process of S20 of FIG.
上記した如く、複数の入力パラメータに基づき、入力変換処理により得た演算データで演算が実行されるが、それら複数の入力パラメータ、即ち、演算データとしては、車両18に配置された舵角センサ、横Gセンサ、ヨーレイトセンサ、車速センサ(全て図示せず)などの運転状態およびそれに関連する情報を挙げることができる。このような複数の入力パラメータがあるとき、制御によっては時間的なずれがない同期のとれた値を取得する必要がある。複数の出力パラメータの出力についても同様である。
As described above, the calculation is performed on the calculation data obtained by the input conversion process based on the plurality of input parameters. As the plurality of input parameters, that is, the calculation data, a steering angle sensor disposed on the
車両18に搭載される内燃機関にはインジェクタ、点火装置、トランスミッション、デファレンシャル、ブレーキなどの種々のデバイスが搭載されるが、図5においてはデファレンシャルによる左右輪の駆動力配分を制御する場合を例にとって説明する。
Various devices such as an injector, an ignition device, a transmission, a differential, and a brake are mounted on the internal combustion engine mounted on the
先ずS100において左輪の駆動力(L側トルク量)を算出し、S102において右側の駆動力(R側トルク量)を算出する。 First, the driving force (L side torque amount) of the left wheel is calculated in S100, and the right side driving force (R side torque amount) is calculated in S102.
このとき、図4のS12において入力割込禁止処理がなされないと仮定すると、入力パラメータは入力記憶部14a1で逐次更新されつつ入力されているため、S100の処理とS102の処理において同一時点での複数の入力パラメータを取得することができない。従って、左右輪の間で時間的なずれが生じた制御を行って車両の挙動へ影響を及ぼす恐れがある。 At this time, assuming that the input interrupt prohibition process is not performed in S12 of FIG. 4, the input parameters are input while being sequentially updated in the input storage unit 14a1, and therefore, the process at S100 and the process of S102 are performed at the same time. Multiple input parameters cannot be obtained. Therefore, there is a risk that the behavior of the vehicle may be affected by performing control in which a time shift occurs between the left and right wheels.
しかしながら、この実施例においては、図4フロー・チャートのS12およびS14までに示す処理を行うことで、左右輪間の出力パラメータを算出する際に同一時点での複数の時点入力パラメータに基づいて演算処理を行うことができるため、左右輪間の時間的なずれが生じることがなく、よって車両18の挙動が乱れることがない。
However, in this embodiment, by performing the processing up to S12 and S14 in the flow chart of FIG. 4, when calculating the output parameter between the left and right wheels, it is calculated based on a plurality of time point input parameters at the same time point. Since the process can be performed, there is no time lag between the left and right wheels, and the behavior of the
また、S100とS102で複数の制御データが算出され、その算出データに基づいて複数の出力パラメータが出力記憶部14a5に記憶される。このとき、図4フロー・チャートのS24からS28の処理がなされないと仮定すると、出力記憶部14a5への受渡し処理の途中で複数の出力パラメータを出力する割込み処理が入った場合、算出結果には更新された出力パラメータと更新される前の(前回算出された)出力パラメータが混在しているため、上記したのと同様、左右輪の間で時間的なずれが生じた制御が行われて車両18の挙動に悪影響を与える可能性がある。 A plurality of control data is calculated in S100 and S102, and a plurality of output parameters are stored in the output storage unit 14a5 based on the calculated data. At this time, assuming that the processing from S24 to S28 in the flowchart of FIG. 4 is not performed, if an interrupt processing for outputting a plurality of output parameters is entered during the delivery processing to the output storage unit 14a5, the calculation result includes Since the updated output parameter and the output parameter before being updated (previously calculated) are mixed, as described above, control is performed in which a time lag occurs between the left and right wheels. 18 behavior may be adversely affected.
しかしながら、この実施例においては、S24からS28の処理を行うことで、左右輪間で同一時点の入力パラメータから算出された演算データに基づいて複数の出力パラメータが更新、具体的には出力記憶部14a5に記憶した後、出力の割り込みを許可するため、車両18の挙動が乱れることがない。
However, in this embodiment, by performing the processing from S24 to S28, a plurality of output parameters are updated based on the operation data calculated from the input parameters at the same time between the left and right wheels. Specifically, the output storage unit Since the output interruption is permitted after storing in 14a5, the behavior of the
図6は、同様にS20の処理の別の具体例を示すフロー・チャートである。この例の場合、車両18の制御の中で、例えば燃料噴射装置によって燃料噴射を制御する場合を例にとる。
FIG. 6 is a flowchart showing another specific example of the process of S20. In the case of this example, a case where fuel injection is controlled by, for example, a fuel injection device in the control of the
以下説明すると、S200において複数の入力パラメメータ(複数の演算データ)から燃料噴射量のベース値を算出し、S202において燃料噴射量のベース値に対する燃料噴射量補正係数を算出し、次いでS204において算出された燃料噴射量のベース値と燃料噴射量補正係数とから燃料噴射量を算出する。 In the following description, the base value of the fuel injection amount is calculated from a plurality of input parameters (a plurality of calculation data) in S200, the fuel injection amount correction coefficient for the base value of the fuel injection amount is calculated in S202, and then calculated in S204. The fuel injection amount is calculated from the base value of the fuel injection amount and the fuel injection amount correction coefficient.
このとき、図4フロー・チャートのS12の入力割込禁止処理がなされないと仮定した場合、入力パラメータは入力記憶部14a1で逐次更新されているため、S200の燃料噴射量のベース値演算で用いた入力パラメータと、S202の燃料噴射量補正係数演算で用いた入力パラメータが、入力時点、換言すればサンプル時期において異なってしまい、S204で燃料噴射量を算出する際、燃料噴射量のベース値と同一の時点の入力パラメータから燃料噴射量補正係数が算出されていないため、所望の燃料噴射量が得られなくなってしまう。 At this time, if it is assumed that the input interrupt prohibition process of S12 in the flowchart of FIG. 4 is not performed, the input parameter is sequentially updated in the input storage unit 14a1, and therefore, it is used in the base value calculation of the fuel injection amount in S200. The input parameters used in the calculation of the fuel injection amount correction coefficient in S202 are different at the time of input, in other words, at the sample time, and when calculating the fuel injection amount in S204, the base value of the fuel injection amount Since the fuel injection amount correction coefficient is not calculated from the input parameters at the same time, a desired fuel injection amount cannot be obtained.
しかしながら、S12およびS14の処理を行うことで、燃料噴射量のベース値と燃料噴射量補正係数の演算に使用されるパラメータの入力時点に時間的なずれを生じることなく、S204で所望の燃料噴射量を演算することができる。 However, by performing the processing of S12 and S14, the desired fuel injection is performed in S204 without causing a time lag between the input points of the parameters used for calculating the base value of the fuel injection amount and the fuel injection amount correction coefficient. The amount can be calculated.
この実施例は上記した如く、車両18(プラント、より正確にはそのデファレンシャル、燃料噴射装置)のブロックモデル10に基づいてシミュレーションによる検証を通じて自動生成装置12により生成された前記プラントの制御アルゴリズムを記述するソースコードを含む、制御プログラム14において、前記制御プログラム14が、前記プラントの出力を複数の入力パラメータとして逐次更新しつつ入力記憶部14a1に記憶させる入力記憶手段(S10)と、前記複数の入力パラメータの更新を禁止する更新禁止手段(S12)と、前記入力記憶部に記憶された複数の入力パラメータを複数の時点の値として引渡し記憶部14a2に引き渡す入力パラメータ引渡し手段(S14)と、前記複数の入力パラメータの更新を許可する更新許可手段(S16)と、前記引き渡された複数の時点の値からなる入力パラメータに基づき、前記ソースコードから構成される演算部14b2において複数の制御データを算出させて演算記憶部14b3に記憶させる演算処理手段(S20)と、前記算出された複数の制御データから得られる複数の出力パラメータが記憶される出力記憶部14a5からの前記複数の出力パラメータの出力を禁止する出力禁止手段(S24)と、前記複数の出力パラメータを前記出力記憶部に受け渡す出力パラメータ受渡し手段(S26)と、および前記出力記憶部からの前記複数の出力パラメータの出力を許可する出力許可手段(S28)とを備える如く構成した。
In this embodiment, as described above, the control algorithm of the plant generated by the
このように、演算処理に用いる複数の入力パラメータおよび演算処理で算出された複数の出力パラメータは、それぞれ制御部14aが割込み処理を管理して演算部14b2への入力または出力処理を行っているため、演算処理は複数の入力パラメータの取得時または複数の出力パラメータの出力時の割込み処理による影響を考慮したコーディングをしなくとも良いことから、自動生成装置12で生成されたソースコードを修正することなく、そのまま使用することができる。
As described above, since the control unit 14a manages the interrupt process and performs the input or output process to the calculation unit 14b2 for the plurality of input parameters used for the calculation process and the plurality of output parameters calculated by the calculation process. Since the arithmetic processing does not need to be coded in consideration of the influence of the interrupt processing when acquiring a plurality of input parameters or outputting a plurality of output parameters, the source code generated by the
それにより、手作業による修正が不要となって、要求仕様への迅速な対応が図ることができると共に、工数を削減でき、制御プログラムの開発期間を短縮することができる。また、それに伴って開発コストの削減をすることができる。 This eliminates the need for manual correction and enables quick response to the required specifications, reduces man-hours, and shortens the development period of the control program. Along with this, development costs can be reduced.
さらに、前記引渡し記憶部14a2に引き渡される前記複数の時点からなる入力パラメータを、複数の演算データに変換して演算データ記憶部14b1に記憶させる入力変換処理手段(S18、入力変換処理部14a31)を備えると共に、前記演算処理手段に、前記記憶された複数の演算データに基づいて前記複数の制御データを算出させる如く構成したので、複数の入力パラメータを複数の時点の値(からなる入力パラメータ)として引渡す処理を短縮することが可能となり、よって更新禁止時間を短縮することで他の制御プログラムがそれら複数の入力パラメータを使用する際の割込み禁止の待ち時間を短縮することができ、他の制御プログラムの演算への影響を少なくすることができる。 Furthermore, an input conversion processing means (S18, input conversion processing unit 14a31) for converting the input parameters composed of the plurality of time points delivered to the delivery storage unit 14a2 into a plurality of computation data and storing them in the computation data storage unit 14b1. In addition, since the calculation processing means is configured to calculate the plurality of control data based on the plurality of stored calculation data, a plurality of input parameters are set as values at a plurality of points in time (input parameters consisting of). It is possible to shorten the delivery process. Therefore, by shortening the update prohibition time, it is possible to shorten the waiting time for interrupt prohibition when other control programs use these multiple input parameters. The influence on the calculation of can be reduced.
さらに、前記算出される複数の制御データを前記複数の出力パラメータに変換して受渡し記憶部14a4に記憶させる出力変換手段(S22、出力変換処理部14a32)を備えると共に、前記出力許可手段は、前記記憶された複数の出力パラメータの出力を許可する如く構成したので、出力パラメータの引渡し処理を短縮することが可能となり、割込み禁止時間に起因する遅れを最小に抑えることができる。 Furthermore, the calculated the plurality of output conversion means control data is stored in the plurality of receiving passing the storage unit 14a4 by converting the output parameter (S22, output conversion processing section 14A32) provided with a, the output permission unit, Since the output of the plurality of stored output parameters is permitted, the output parameter delivery process can be shortened, and the delay due to the interrupt inhibition time can be minimized.
尚、上記において、プラントとして車両18、より具体的に左右輪の駆動力配分、あるいは燃料噴射を制御する場合を例にとって説明したが、この発明はそれらに限定されるものではない。即ち、設計者によってプラントのブロックモデル10によるモデリングで表現される要求仕様に基づいてシミュレーションによる検証を通じて自動生成されたプラントの制御アルゴリズムが生成され、その制御アルゴリズムを記述するソースコードを含む制御プログラムであれば、どのようなプラントにも妥当する。
In the above description, the case of controlling the
10 ブロックモデル
12 自動生成装置
14 制御プログラム
14a 制御部
14a1 入力記憶部
14a2 引渡し記憶部
14a3 入出力処理部
14a31 入力変換処理部
14a32 出力変換処理部
14a4 受渡し記憶部
14a5 出力記憶部
14b 演算処理部
14b1 演算データ記憶部
14b2 演算部
14b3 演算記憶部
16,16a ECU
18 車両(プラント)
10
18 Vehicle (plant)
Claims (3)
a.前記プラントの出力を複数の入力パラメータとして逐次更新しつつ入力記憶部に記憶させる入力記憶手段と、
b.前記複数の入力パラメータの更新を禁止する更新禁止手段と、
c.前記入力記憶部に記憶された複数の入力パラメータを複数の時点の値として引渡し記憶部に引き渡す入力パラメータ引渡し手段と、
d.前記複数の入力パラメータの更新を許可する更新許可手段と、
e.前記引き渡された複数の時点の値からなる入力パラメータに基づき、前記ソースコードから構成される演算部において複数の制御データを算出させて演算記憶部に記憶させる演算処理手段と、
f.前記算出された複数の制御データから得られる複数の出力パラメータが記憶される出力記憶部からの前記複数の出力パラメータの出力を禁止する出力禁止手段と、
g.前記複数の出力パラメータを前記出力記憶部に受け渡す出力パラメータ受渡し手段と、
および
h.前記出力記憶部からの前記複数の出力パラメータの出力を許可する出力許可手段と、
を備えることを特徴とする制御プログラム。 In a control program comprising source code describing a control algorithm of the plant generated by an automatic generation device through verification by simulation based on a block model of the plant, the control program comprises:
a. Input storage means for storing the output of the plant in the input storage unit while sequentially updating the output as a plurality of input parameters;
b. Update prohibiting means for prohibiting updating of the plurality of input parameters;
c. Input parameter delivery means for delivering a plurality of input parameters stored in the input storage unit to a delivery storage unit as values at a plurality of time points;
d. Update permission means for permitting update of the plurality of input parameters;
e. An arithmetic processing means for calculating a plurality of control data in the arithmetic unit constituted by the source code and storing the calculation data in the arithmetic storage unit based on the input parameters composed of the values of the plurality of time points delivered,
f. Output prohibiting means for prohibiting output of the plurality of output parameters from an output storage unit in which a plurality of output parameters obtained from the plurality of calculated control data are stored;
g. Output parameter delivery means for delivering the plurality of output parameters to the output storage unit;
And h. Output permission means for permitting the output of the plurality of output parameters from the output storage unit;
A control program comprising:
i.前記引渡し記憶部に引き渡される前記複数の時点からなる入力パラメータを、複数の演算データに変換して演算データ記憶部に記憶させる入力変換処理手段、
を備えると共に、前記演算処理手段に、前記記憶された複数の演算データに基づいて前記複数の制御データを算出させることを特徴とする請求項1記載の制御プログラム。 further,
i. Input conversion processing means for converting the input parameters composed of the plurality of time points delivered to the delivery storage unit into a plurality of computation data and storing them in the computation data storage unit;
The control program according to claim 1, further comprising: causing the calculation processing unit to calculate the plurality of control data based on the plurality of stored calculation data.
j.前記算出される複数の制御データを前記複数の出力パラメータに変換して受渡し記憶部に記憶させる出力変換手段、
を備えると共に、前記出力許可手段は、前記記憶された複数の出力パラメータの出力を許可することを特徴とする請求項1または2記載の制御プログラム。 further,
j. Output conversion means for storing a plurality of control data the calculated the receiving pass storage unit into a plurality of output parameters,
The control program according to claim 1, wherein the output permission unit permits the output of the plurality of stored output parameters.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004294212A JP4177801B2 (en) | 2004-10-06 | 2004-10-06 | Control program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004294212A JP4177801B2 (en) | 2004-10-06 | 2004-10-06 | Control program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2006105051A JP2006105051A (en) | 2006-04-20 |
JP4177801B2 true JP4177801B2 (en) | 2008-11-05 |
Family
ID=36375077
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004294212A Expired - Fee Related JP4177801B2 (en) | 2004-10-06 | 2004-10-06 | Control program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4177801B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB0625832D0 (en) * | 2006-12-22 | 2007-02-07 | Ricardo Uk Ltd | Real-time in cycle engine model |
-
2004
- 2004-10-06 JP JP2004294212A patent/JP4177801B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2006105051A (en) | 2006-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Na et al. | Application of open-loop stackelberg equilibrium to modeling a driver's interaction with vehicle active steering control in obstacle avoidance | |
JP7118517B2 (en) | Methods and devices for implementing closed-loop advanced driver assistance devices | |
CN112236732B (en) | Method and system for controlling an autonomous vehicle device to repeatedly follow the same predetermined trajectory | |
KR101653756B1 (en) | Satellite Dynamics Simulator and Control Method thereof | |
WO2007116590A1 (en) | Operation control method, operation control device and operation control system | |
JP4177801B2 (en) | Control program | |
KR20220014284A (en) | Gear-shift control data generation method, gear-shift control device, and gear-shift control system | |
CN113944748B (en) | Method for learning hydraulic pressure of automatic transmission, and control device and system for automatic transmission | |
US8751094B2 (en) | Method for validation of a graphically based executable control specification using model extraction | |
JP2014164340A (en) | Control device | |
EP1327920A1 (en) | Method for synchronizing data utilized in redundant, closed loop control systems | |
US8751093B2 (en) | Hierarchical accumulated validation system and method | |
Hanselmann | Development speed-up for electronic control systems | |
CN106250623A (en) | A kind of semi physical rapid simulation method steadily switched based on state | |
JP6947091B2 (en) | Driving support device, driving support method, driving support program, motion control device, motion control method, and motion control program | |
Tan et al. | Speed control experiments with an automated heavy vehicle | |
JP5178878B2 (en) | Vehicle control device | |
CA2647860A1 (en) | Plant simulator and simulation method | |
CN117234215B (en) | Unmanned vehicle longitudinal control method and device, electronic equipment and unmanned vehicle | |
JP4795920B2 (en) | Control map optimization device | |
JP7451182B2 (en) | Control device | |
JPH04189631A (en) | Vehicle control metohd | |
Saikalis et al. | Hardware-in-the-loop real-time optimization of electronic controllers | |
JP2018081002A (en) | Steering simulator | |
CN114879627A (en) | Calibration method and device for auxiliary driving model |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080327 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080408 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080527 |
|
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: 20080805 |
|
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: 20080822 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110829 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4177801 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: 20110829 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120829 Year of fee payment: 4 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120829 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130829 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 |
|
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 |