JP2001147838A - Method for controlling open loop and closed loop of process - Google Patents

Method for controlling open loop and closed loop of process

Info

Publication number
JP2001147838A
JP2001147838A JP2000289866A JP2000289866A JP2001147838A JP 2001147838 A JP2001147838 A JP 2001147838A JP 2000289866 A JP2000289866 A JP 2000289866A JP 2000289866 A JP2000289866 A JP 2000289866A JP 2001147838 A JP2001147838 A JP 2001147838A
Authority
JP
Japan
Prior art keywords
program
control
loop control
loop
function 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.)
Pending
Application number
JP2000289866A
Other languages
Japanese (ja)
Inventor
Manfred Pisecky
ピセキー マンフレッド
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.)
Robert Bosch GmbH
Original Assignee
Robert Bosch GmbH
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 Robert Bosch GmbH filed Critical Robert Bosch GmbH
Publication of JP2001147838A publication Critical patent/JP2001147838A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/28Error detection; Error correction; Monitoring by checking the correct order of processing
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0428Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24024Safety, surveillance
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24125Watchdog, check at timed intervals

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Electrical Control Of Air Or Fuel Supplied To Internal-Combustion Engine (AREA)
  • Debugging And Monitoring (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a method and device for controlling the open loop/closed loop of a process for certainly reading a function program with prescribed frequency in an easy and simple method. SOLUTION: In this method for controlling the open loop and closed loop of a process using a control program divided into a plurality of function programs (E, F, G, and H) processed in a real time with prescribed frequency, at least one counter (ZE, ZF, ZG, and ZH) counts after the processing of the function programs (E, F, G, and H), and increases the count value only the one. In this case, the count value is searched at regular intervals.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は,プロセスの開ルー
プ制御/閉ループ制御方法及びその装置に関し,さらに
詳細には,リアルタイムで処理され,かつ各々所定頻度
で処理される複数の機能プログラムに分割される制御プ
ログラムを使用したプロセスの開ループ制御/閉ループ
制御方法及びその装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for controlling an open loop / closed loop of a process, and more particularly, to a method divided into a plurality of function programs which are processed in real time and are each processed at a predetermined frequency. The present invention relates to a method and an apparatus for controlling the open / closed loop of a process using a control program.

【0002】[0002]

【従来の技術】従来のプロセスの開ループ制御/閉ルー
プ制御方法及びその装置は,例えばドイツ公開公報第D
E19500957A1号から既知である。上記公報に
おいては,制御プログラムがリアルタイムで実行される
内燃機関の燃料噴射制御装置が開示されている。この制
御プログラムは,優先順位が付けられた複数の機能プロ
グラム(タスク)に分割されており,処理を実行中に,
所定の間隔で所定頻度で読み出される。また,制御装置
は,マイクロコンピュータ,書込み/読出しメモリ(R
AM),固定値メモリ(EPROM)及び不揮発性の書
込み/読出しメモリ(EEPROM)を有する。
2. Description of the Related Art A conventional open-loop / closed-loop control method and apparatus for a process are disclosed, for example, in German Offenlegungsschrift
It is known from E195500957A1. The above publication discloses a fuel injection control device for an internal combustion engine in which a control program is executed in real time. This control program is divided into a plurality of functional programs (tasks) with priorities.
It is read at a predetermined interval and at a predetermined frequency. The control device is a microcomputer, a write / read memory (R
AM), a fixed value memory (EPROM), and a nonvolatile write / read memory (EEPROM).

【0003】制御プログラムは,プロセッサの計算時間
の授与を制御して,全ての遂行機能プログラムを調整す
ると共に,複数の機能プログラムの準並列処理を許可す
る(マルチタスキング)。このように,制御プログラム
は,例えば処理中(計算中)のプログラムをいつでも中
断し,より重要な(優先度の高い)プロセス処理をおこ
なう機能プログラムが開始できるように設計されてい
る。このとき,中断された機能プログラムは,優先度の
高い機能プログラムが終了した後,制御プログラムによ
り中断した個所から続行される。
The control program controls the giving of the calculation time of the processor, adjusts all execution function programs, and permits quasi-parallel processing of a plurality of function programs (multitasking). In this way, the control program is designed so that, for example, a program being processed (during calculation) can be interrupted at any time and a functional program for performing more important (higher priority) process processing can be started. At this time, the interrupted function program is continued from the point where it was interrupted by the control program after the high-priority function program ends.

【0004】かかる処理方法は,「プリエンプティブ
スケジューリング(Preemptive Sched
uling)」または「プリエンプティブ マルチタス
キング(Preemptive Multitaski
ng)」とも称される。
Such a processing method is described in “Preemptive
Scheduling (Preemptive Sched
uling) or "Preemptive Multitasking"
ng) ".

【0005】上記のように,制御プログラムによりプロ
セスを開ループ制御/閉ループ制御する方法は,所定の
現象に迅速に対応できるため,特にリアルタイムシステ
ム(即ち,予め設定された時間限度内で所定の制御プロ
セスを実行する制御システム)にとって有用である。
As described above, the method of controlling the open / closed loop of the process by the control program can quickly respond to a predetermined phenomenon, and is particularly suitable for a real-time system (that is, a predetermined control within a predetermined time limit). Control system that executes the process).

【0006】[0006]

【発明が解決しようとする課題】しかしながら,上記プ
ロセスの開ループ制御/閉ループ制御方法では,機能プ
ログラムが,実際には,必ずしも所定頻度で読み出され
ないという問題がある。
However, in the open-loop control / closed-loop control method of the above process, there is a problem that the function program is not always read out at a predetermined frequency.

【0007】したがって,本発明の目的は,簡易かつ容
易な方法で,機能プログラムを確実に所定頻度で読み出
すことが可能な新規かつ改良されたプロセスの開ループ
制御/閉ループ制御方法及びその装置を提供することに
ある。
Accordingly, an object of the present invention is to provide a new and improved open-loop control / closed-loop control method of a process and an apparatus thereof, which enable a function program to be reliably read out at a predetermined frequency by a simple and easy method. Is to do.

【0008】[0008]

【課題を解決するための手段】上記課題を解決するた
め,請求項1に記載の発明では,リアルタイムで処理さ
れ,かつ各々所定頻度で処理される複数の機能プログラ
ムに分割される制御プログラムを使用してプロセスを開
ループ制御/閉ループ制御する方法であって,少なくと
も1つのカウンタが前記機能プログラムの処理後にカウ
ントしてカウント値を1だけ増分する共に,前記カウン
ト値は所定の間隔で調査される,ことを特徴とするプロ
セスの開ループ制御/閉ループ制御方法が提供される。
In order to solve the above-mentioned problems, the invention according to claim 1 uses a control program which is processed in real time and is divided into a plurality of function programs which are each processed at a predetermined frequency. And controlling the process in an open-loop / closed-loop manner, wherein at least one counter counts after processing the function program and increments the count value by one, and the count value is checked at predetermined intervals. , An open loop control / closed loop control method of a process is provided.

【0009】本項記載の発明では,1または複数のカウ
ンタは,機能プログラムが完全に処理された場合に初め
て,新たにカウントする。このカウンタは,1又は複数
の各機能プログラムに対して共通のカウンタを設けるこ
ともできる。このカウント値は規則的な間隔で判断さ
れ,予め設定されている目標値と比較してカウント値が
目標値と異なると判断される場合には,カウンタに対応
する1または複数の機能プログラムが要求された頻度で
読み出されなかったものと推定することができる。この
カウント値が目標値と異なる場合には,それに応じた手
段をとることができる。即ち,機能プログラムが十分な
頻度で処理されなかった場合には,その機能プログラム
に例えばより高い優先順位を設定することにより,より
高い頻度で処理することができる。各カウント値を調査
した後は,カウンタは続けてカウントしてもよく,ある
いはカウント値をリセットすることもできる。
In the present invention, one or more counters newly count only when the function program has been completely processed. This counter may be provided with a common counter for one or more functional programs. This count value is determined at regular intervals, and when it is determined that the count value is different from the target value by comparing with a preset target value, one or more function programs corresponding to the counter are requested. It can be estimated that they were not read out at the specified frequency. If the count value is different from the target value, it is possible to take a measure according to the count value. That is, when the function program is not processed with sufficient frequency, the function program can be processed with higher frequency by setting a higher priority to the function program, for example. After examining each count value, the counter may continue counting, or the count value may be reset.

【0010】また,請求項2に記載の発明のように,前
記カウンタは各機能プログラムごとに設けられると共
に,前記カウンタは,従属する機能プログラムの処理後
にカウントする,如く構成すれば,制御プログラムの各
機能プログラムごとに専用カウンタが設けられるので,
各機能プログラムごとに読み出された頻度を知ることが
できる。この結果,制御プログラムの各機能プログラム
が処理される実際の頻度を,正確かつ確実に監視するこ
とができる。
According to a second aspect of the present invention, the counter is provided for each function program, and the counter counts after processing of a dependent function program. Since a dedicated counter is provided for each function program,
The frequency read for each functional program can be known. As a result, the actual frequency at which each function program of the control program is processed can be monitored accurately and reliably.

【0011】また,請求項3に記載の発明のように,前
記カウント値は,所定頻度で読み出される監視機能プロ
グラムにより監視される,如く構成すれば,監視機能プ
ログラム(監視タスク)が読み出された場合には,実行
中の他の機能プログラムは中断され,監視機能プログラ
ムが完全に処理された後に,さらに続行される。このこ
とにより,監視機能プログラムは,実際にも所定頻度で
確実に処理される。なお,このとき,監視機能プログラ
ムに対しては,最高の優先順位が設定されるのが好まし
い。
According to another aspect of the present invention, the monitoring function program (monitoring task) is read by monitoring the count value by a monitoring function program read at a predetermined frequency. In this case, the other function program being executed is interrupted, and is continued after the monitoring function program has been completely processed. This ensures that the monitoring function program is actually processed at a predetermined frequency. At this time, it is preferable that the highest priority is set for the monitoring function program.

【0012】また,請求項4に記載の発明のように,監
視機能プログラムの実際の処理頻度が,ウォッチドッグ
により監視される,如く構成すれば,制御プログラム
が,「プリエンプティブ マルチタスキング」を許可し
ない場合には,監視機能プログラムが実際に所定頻度で
処理されているか否かが監視することができる。即ち,
監視機能プログラムの処理後に,この監視機能プログラ
ムはクィッティング信号を発生する。監視機能プログラ
ムが読み出されずに(あるいは処理されずに),クィッ
ティング信号が発生されなかったことを,ウォッチドッ
グが監視することができる。なお,かかるウォッチドッ
グは,時限装置として形成されており,所定時間内にク
ィッティング信号が発生されないことを,例えば中断
(インターラプト)信号により制御プログラムのシーケ
ンス制御に通知する。
Further, if the actual processing frequency of the monitoring function program is monitored by a watchdog, the control program permits “preemptive multitasking”. If not, it can be monitored whether or not the monitoring function program is actually being processed at a predetermined frequency. That is,
After processing of the monitoring function program, the monitoring function program generates a quitting signal. The watchdog can monitor that the quitting signal has not been generated without the monitoring function program being read (or processed). The watchdog is formed as a timed device, and notifies the sequence control of the control program that a quitting signal is not generated within a predetermined time by, for example, an interrupt signal.

【0013】また,請求項5に記載の発明のように,前
記制御プログラムをシーケンス制御するために駆動シス
テムが使用されると共に,前記ウォッチドッグは,前記
駆動システムのシーケンス制御とは独立して実行され
る,如く構成すれば,ウォッチドッグは,駆動システム
の誤作動や故障に影響されないので,いかなる状況下で
も監視機能プログラムを確実に監視することができる。
According to a fifth aspect of the present invention, a drive system is used for sequence-controlling the control program, and the watchdog is executed independently of the sequence control of the drive system. With such a configuration, the watchdog is not affected by a malfunction or failure of the drive system, so that the monitoring function program can be reliably monitored under any circumstances.

【0014】また,請求項6に記載の発明のように,前
記監視機能プログラムは,前記カウント値が少なくとも
1つの所定の度数ウィンドウ内にあるか否かを監視す
る,如く構成するのが好ましい。
It is preferable that the monitoring function program is configured to monitor whether the count value is within at least one predetermined frequency window.

【0015】また,請求項7に記載の発明のように,前
記度数ウィンドウは,前記制御シーケンスプログラムに
設けられている,如く構成するのが好ましい。さらに,
度数ウィンドウの上方閾値と下方閾値は,各制御シーケ
ンスプログラムについて個別に定められるので,各々の
制御プログラムに応じた閾値を設定することができる。
It is preferable that the frequency window is provided in the control sequence program. further,
Since the upper threshold value and the lower threshold value of the frequency window are individually determined for each control sequence program, it is possible to set a threshold value according to each control program.

【0016】また,請求項8に記載の発明のように,前
記度数ウィンドウの上方閾値と下方閾値は,前記制御プ
ログラムのシーケンス制御により決定される,如く構成
すれば,度数ウィンドウの上方閾値と下方閾値が,開ル
ープ制御/閉ループ制御されるプロセスの駆動状態に応
じて変化するので,開ループ制御/閉ループ制御するプ
ロセスの駆動状態への閾値を適応的に適合させることが
できる。また,度数ウィンドウの上方閾値及び/または
下方閾値を必要に応じてオフにすることができる。この
閾値オフの期間中は,カウント値は閾値を越えて度数ウ
ィンドウを逸脱することができるので,エラー報告や中
断信号がもたらされることはない。
According to the present invention, the upper threshold value and the lower threshold value of the frequency window are determined by the sequence control of the control program. Since the threshold value changes in accordance with the driving state of the open / closed loop controlled process, the threshold value for the driving state of the open / closed loop controlled process can be adaptively adapted. Also, the upper threshold and / or lower threshold of the frequency window can be turned off as needed. During this threshold off period, the count value can exceed the threshold value and deviate from the frequency window, so that no error report or interruption signal is provided.

【0017】上記課題を解決するため,請求項9に記載
の発明のように,リアルタイムに実行され,かつ各々所
定頻度で処理される各機能プログラムに分割される制御
プログラムを使用したプロセスの開ループ制御/閉ルー
プ制御装置であって,前記制御装置は,請求項1から8
のいずれか1項に記載の方法を実行する手段を有するこ
とを特徴とするプロセスの開ループ制御/閉ループ制御
装置が提供される。
In order to solve the above-mentioned problem, an open loop of a process using a control program which is executed in real time and divided into function programs which are each processed at a predetermined frequency is provided. A control / closed loop control device, wherein the control device is a control / closed loop control device.
An open-loop / closed-loop control of a process is provided, comprising means for performing the method according to any one of the preceding claims.

【0018】本項記載の発明では,請求項1から8に記
載の方法を実行するプロセスの開ループ制御/閉ループ
制御装置を提供することができる。
According to the present invention, an open-loop control / closed-loop control device for a process for executing the method according to any one of claims 1 to 8 can be provided.

【0019】[0019]

【発明の実施の形態】以下,本発明の好適な実施の形態
について,添付図面を参照しながら詳細に説明する。
尚,以下の説明及び添付図面において,同一の機能及び
構成を有する構成要素については,同一符号を付するこ
とにより,重複説明を省略する。
Preferred embodiments of the present invention will be described below in detail with reference to the accompanying drawings.
In the following description and the accompanying drawings, components having the same functions and configurations are denoted by the same reference numerals, and redundant description will be omitted.

【0020】(第1の実施の形態)以下,図1及び図2
に基づいて,第1の実施の形態について説明する。な
お,図1は,本実施形態にかかる制御装置の構成を示す
ブロック図である。
(First Embodiment) Hereinafter, FIGS. 1 and 2
The first embodiment will be described based on FIG. FIG. 1 is a block diagram illustrating a configuration of a control device according to the present embodiment.

【0021】まず,図1に示すように,内燃機関の燃料
噴射制御装置10は,マイクロコンピュータ11,書込
み/読出しメモリ(RAM)12,固定値メモリ(EP
ROM)13,不揮発性書込み/読出しメモリ(EEP
ROM)22及び入出力ユニット14,タイムパルスカ
ウンタ23,などから構成される。
First, as shown in FIG. 1, a fuel injection control device 10 for an internal combustion engine includes a microcomputer 11, a write / read memory (RAM) 12, and a fixed value memory (EP).
ROM) 13, nonvolatile write / read memory (EEP)
(ROM) 22, an input / output unit 14, a time pulse counter 23, and the like.

【0022】また,制御装置10には,エンジン温度セ
ンサ15,吸気温度センサ16,絞り弁ポテンショメー
タ17及び酸素センサ18,電磁噴射弁21が接続され
ている。信号入力19が点火制御装置から燃料噴射制御
装置10に供給され,かかる信号に基づいて回転数とク
ランク軸角度が計算される。他の入力20は,イグニッ
ションロックと結合されている。
The controller 10 is connected to an engine temperature sensor 15, an intake air temperature sensor 16, a throttle valve potentiometer 17, an oxygen sensor 18, and an electromagnetic injection valve 21. A signal input 19 is supplied from the ignition control device to the fuel injection control device 10, and the rotation speed and the crankshaft angle are calculated based on the signal. Another input 20 is coupled to the ignition lock.

【0023】燃料噴射制御装置10の機能を以下に説明
する。即ち,燃料噴射制御装置10は,印加される入力
信号を処理し,噴射燃料量の尺度としての噴射時間を計
算する。また,制御装置10は,回転数とクランク軸角
度に応じて,予め計算された噴射時間で噴射パルスを出
力する。かかる燃料噴射制御装置10の正確な機能方法
は,書籍「オットーエンジンにおける自動車電気設備/
自動車エレクトロニクス(Auto Elektrik
/ Autoelektronik am Ottom
otor)」,VDI出版,1987年,第258−2
68ページに記載されるように既知である。
The function of the fuel injection control device 10 will be described below. That is, the fuel injection controller 10 processes the applied input signal and calculates the injection time as a measure of the amount of injected fuel. Further, the control device 10 outputs an injection pulse for an injection time calculated in advance according to the rotation speed and the crankshaft angle. The exact functioning of such a fuel injection control device 10 is described in the book "Electric Vehicle Equipment for Otto Engines /
Auto Electronics (Auto Elektrik)
/ Autoelektronik am Ottom
otor) ", VDI Publishing, 1987, No. 258-2.
Known as described on page 68.

【0024】かかる燃料噴射制御装置10を実現するた
めには,一連の複数の機能プログラム(タスク)に分割
される複雑な制御プログラムが必要である。かかる機能
プログラムは,目的に応じて,制御プログラムのプログ
ラム部分が含まれるように分割されて形成される。ある
いは,シーケンスの観点から機能プログラムに分割する
こともできる。即ち,固定のタイムラスタ内部で処理さ
れなければならないプログラム部分が存在する場合に
は,複数の異なるタイムラスタが使用される。
In order to realize the fuel injection control device 10, a complicated control program divided into a series of a plurality of function programs (tasks) is required. Such a functional program is divided and formed so as to include the program part of the control program according to the purpose. Alternatively, it can be divided into functional programs from the viewpoint of the sequence. That is, if there is a program part that must be processed inside the fixed time raster, a plurality of different time rasters are used.

【0025】さらに,所定の駆動状態である場合,ある
いは例えばプログラム開始,プログラム終了,全負荷駆
動,アイドリング駆動,暖機運転などの外部または内部
現象の対応として,処理しなければならないプログラム
部分が存在する。
Further, there is a program part which must be processed in a predetermined driving state or in response to an external or internal phenomenon such as program start, program end, full load drive, idling drive, warm-up operation, etc. I do.

【0026】さらに所定のプログラム部分は,クランク
軸角度に応じて固定の角度ラスタの内部で処理される。
通常,同一のタイム/角度ラスタの内部で処理される全
てのプログラム部分は,1つの機能プログラムにまとめ
られる。例えばハードウェアにより周期的に,例えばミ
リ秒毎に生成されるインターラプトのインターラプト−
サービス−ルーチン内で増分されるタイムパルスカウン
タ23は,固定のタイムラスタ内で機能プログラムを読
み出すことができる。インターラプト−サービス−ルー
チン内では,タイムパルスカウンタの実際のカウント値
により,新しい機能プログラムが作動されるか否かが調
査される。
Furthermore, the predetermined program part is processed inside a fixed angle raster according to the crankshaft angle.
Normally, all program parts processed within the same time / angle raster are combined into one functional program. For example, an interrupt generated periodically by hardware, for example, every millisecond.
The time pulse counter 23, which is incremented in the service routine, can read out the function program in a fixed time raster. In the interrupt service routine, the actual count value of the time pulse counter checks whether a new function program is activated.

【0027】各機能プログラムには,機能プログラム処
理の重要性を示す優先順位を対応付けることにより,機
能プログラムの読み出しを効果的に調整することができ
る。かかる制御プログラムをシーケンス制御するために
(即ち,各機能プログラム処理を管理するために),駆
動システムが使用される。かかる駆動システムは,該当
プログラムを使用して,どの機能プログラムを予め設定
された時点でマイクロコンピュータが処理するかを決定
する。
By associating each function program with a priority indicating the importance of the processing of the function program, the reading of the function program can be effectively adjusted. A drive system is used to control the sequence of the control program (that is, to manage the processing of each function program). Such a drive system uses the corresponding program to determine which function program is to be processed by the microcomputer at a preset time.

【0028】上記制御装置10は,図2に示すように,
各制御装置10の機能プログラムE,F,G,Hに対応
するカウンタZE,ZF,ZG,ZHを有する。カウン
タZE,ZF,ZG,ZHは,付設された機能プログラ
ムE,F,G,Hの処理後に増分し,このカウント値が
規則的な間隔で監視される。このことにより,常時,所
定頻度で読み出す機能プログラムE,F,G,Hが,現
実に所定の頻度で確実に読み出すことができる。
As shown in FIG. 2, the control device 10
It has counters ZE, ZF, ZG, ZH corresponding to the function programs E, F, G, H of each control device 10. The counters ZE, ZF, ZG, ZH are incremented after the processing of the attached function programs E, F, G, H, and the count values are monitored at regular intervals. Thus, the function programs E, F, G, and H, which are always read at a predetermined frequency, can be reliably read at a predetermined frequency.

【0029】制御プログラムのプログラムシーケンスの
一部は,図2に示すように,例えば4つの異なる機能プ
ログラムE,F,G,Hが該当する。低い優先順位0の
機能プログラムEは固定のタイムラスタであり,緊急の
機能プログラムが処理されていない場合にのみ処理され
る。優先順位1の機能プログラムFは,百ミリ秒毎に処
理される。優先順位2の制御プログラムGは,クランク
軸角度180°の固定角度ラスタ内部で処理される。最
高の優先順位3の機能プログラムHは,固定のタイムラ
スタで10ミリ秒毎に処理される。
A part of the program sequence of the control program corresponds to, for example, four different function programs E, F, G and H as shown in FIG. The function program E having the lower priority 0 is a fixed time raster, and is processed only when the urgent function program is not processed. The function program F of the priority 1 is processed every 100 milliseconds. The control program G of priority 2 is processed inside a fixed angle raster with a crankshaft angle of 180 °. The highest priority 3 function program H is processed every 10 milliseconds on a fixed time raster.

【0030】図2に示すプログラムシーケンスでは,シ
ーケンス制御するために,個々の機能プログラムは,高
い優先順位の機能プログラムの処理要求に応じて,任意
の各時点で中断することができる駆動システムが使用さ
れる。かかるシーケンス制御は,「プリエンプティブ
マルチタスキング」に対応する。例えば時点t1で機能
プログラムEが中断され,機能プログラムHの処理が開
始される。時点t2で,機能プログラムHの処理が終了
する。
In the program sequence shown in FIG. 2, in order to control the sequence, a drive system is used in which individual function programs can be interrupted at any arbitrary point in time in response to a processing request of a high-priority function program. Is done. Such sequence control is referred to as “preemptive
Multitasking ". For example, at time t1, the function program E is interrupted, and the processing of the function program H is started. At time t2, the processing of the function program H ends.

【0031】次に,機能プログラムEの処理が,中断し
た個所から続行される。各機能プログラムの中断個所
は,図2に示すとおりである。全ての機能プログラム
は,さらにインターラプト−サービス−ルーチンによ
り,発生した中断要求により中断される(図示せず)。
Next, the processing of the function program E is continued from the place where it was interrupted. The locations where each function program is interrupted are as shown in FIG. All function programs are further interrupted by interrupt requests generated by interrupt service routines (not shown).

【0032】時点t0で,カウント値が読み出されて,
0にセットされる。機能プログラムHの処理後に,カウ
ンタZHは,例えば時点t2,t6,t9及びt12に
おいて1だけ増分される。同様にして,例えばカウンタ
ZEは,時点t13で1だけ増分される。規則的な間隔
で,カウンタZE,ZF,ZG,ZHの値が,監視機能
プログラムにより調査される。図2に示す例では,カウ
ント値は,例えば時点10とt14で調査される。次い
でカウンタが0にセットされて,再度,新たにカウント
を開始する。
At time t0, the count value is read, and
Set to 0. After the processing of the function program H, the counter ZH is incremented by 1, for example, at times t2, t6, t9 and t12. Similarly, for example, the counter ZE is incremented by one at time t13. At regular intervals, the values of the counters ZE, ZF, ZG, ZH are checked by the monitoring function program. In the example shown in FIG. 2, the count value is checked, for example, at time points 10 and t14. Next, the counter is set to 0, and counting is started again.

【0033】監視シーケンスプログラムにより,カウン
タZE,ZF,ZG,ZHの値が,シーケンスプログラ
ムE,F,G,Hに各々対応する度数ウィンドウの内部
にあるか否かが調査される。度数ウィンドウの上方閾値
と下方閾値は,各機能プログラムおいて,制御プログラ
ムのシーケンス制御を介して固有値として予め設定され
る。度数ウィンドウの上方閾値と下方閾値は,内燃機関
の駆動状態に応じて変えることができる。内燃機関の処
理の駆動状態においては,度数ウィンドウの上方閾値あ
るいは下方閾値は,必要に応じてオフにすることができ
る。
The monitoring sequence program checks whether or not the values of the counters ZE, ZF, ZG, ZH are inside the frequency windows respectively corresponding to the sequence programs E, F, G, H. The upper threshold value and the lower threshold value of the frequency window are set in advance in each function program as unique values through sequence control of a control program. The upper and lower thresholds of the frequency window can be changed according to the operating state of the internal combustion engine. In the operating state of the processing of the internal combustion engine, the upper threshold or the lower threshold of the frequency window can be turned off as required.

【0034】監視機能プログラムが実際に設定されてい
る頻度で処理されるか否かは,ウォッチドッグを使用し
て調査される。ウォッチドッグは,駆動システムのシー
ケンス制御とは別に実行されるので,駆動システムの誤
動作や故障とは無関係に作動される。
Whether or not the monitoring function program is actually processed at a set frequency is checked by using a watchdog. Since the watchdog is executed separately from the sequence control of the drive system, it is operated independently of the malfunction or failure of the drive system.

【0035】以上,本発明に係る好適な実施の形態につ
いて説明したが,本発明はかかる構成に限定されない。
当業者であれば,特許請求の範囲に記載された技術思想
の範囲内において,各種の修正例及び変更例を想定し得
るものであり,それらの修正例及び変更例についても本
発明の技術範囲に包含されるものと了解される。
While the preferred embodiment according to the present invention has been described above, the present invention is not limited to such a configuration.
Those skilled in the art can envisage various modified examples and modified examples within the scope of the technical idea described in the claims, and those modified examples and modified examples are also included in the technical scope of the present invention. It is understood to be included in.

【0036】[0036]

【発明の効果】1または複数のカウンタは,機能プログ
ラムが完全に処理された場合に初めて,さらにカウント
する。このカウント値は規則的な間隔で判断され,予め
設定されている目標値と比較してカウント値が目標値と
異なると判断される場合には,カウンタに対応する1ま
たは複数の機能プログラムが要求された頻度で読み出さ
れなかったものと推定することができる。
One or more counters will only count further if the functional program has been completely processed. This count value is determined at regular intervals, and when it is determined that the count value is different from the target value by comparing with a preset target value, one or more function programs corresponding to the counter are requested. It can be estimated that they were not read out at the specified frequency.

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

【図1】第1の実施の形態にかかる制御装置のブロック
回路図である。
FIG. 1 is a block circuit diagram of a control device according to a first embodiment.

【図2】第1の実施の形態にかかる制御シーケンスを示
すフローチャートである。
FIG. 2 is a flowchart illustrating a control sequence according to the first embodiment.

【符号の説明】[Explanation of symbols]

10 燃料噴射制御装置 11 マイクロコンピュータ 12 書込み/読出しメモリ(RAM) 13 固定値メモリ(EPROM) 14 入出力ユニット 15 エンジン温度センサ 16 吸気温度センサ 17 絞り弁ポテンショメータ 18 酸素センサ 19 信号入力 21 電磁噴射弁 22 不揮発性書込み/読出しメモリ(EEPROM) 23 タイムパルスカウンタ Reference Signs List 10 fuel injection control device 11 microcomputer 12 write / read memory (RAM) 13 fixed value memory (EPROM) 14 input / output unit 15 engine temperature sensor 16 intake temperature sensor 17 throttle valve potentiometer 18 oxygen sensor 19 signal input 21 electromagnetic injection valve 22 Non-volatile write / read memory (EEPROM) 23 Time pulse counter

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 リアルタイムで処理され,かつ各々所定
頻度で処理される複数の機能プログラムに分割される制
御プログラムを使用してプロセスを開ループ制御/閉ル
ープ制御する方法であって,少なくとも1つのカウンタ
が前記機能プログラムの処理後にカウントしてカウント
値を1だけ増分する共に,前記カウント値は所定の間隔
で調査される,ことを特徴とするプロセスの開ループ制
御/閉ループ制御方法。
1. A method for performing open-loop control / closed-loop control of a process using a control program that is processed in real time and is divided into a plurality of function programs that are each processed at a predetermined frequency, wherein at least one counter Counting after the processing of the function program, incrementing the count value by one, and checking the count value at a predetermined interval.
【請求項2】 前記カウンタは機能プログラムごとに設
けられると共に,前記カウンタは従属する機能プログラ
ムの処理後にカウントする,ことを特徴とする請求項1
に記載のプロセスの開ループ制御/閉ループ制御方法。
2. The apparatus according to claim 1, wherein said counter is provided for each function program, and said counter counts after processing of a dependent function program.
4. The open-loop control / closed-loop control method of the process according to 1.
【請求項3】 前記カウント値は,所定頻度で読み出さ
れる監視機能プログラムにより監視される,ことを特徴
とする請求項1または2に記載のプロセスの開ループ制
御/閉ループ制御方法。
3. The method according to claim 1, wherein the count value is monitored by a monitoring function program read at a predetermined frequency.
【請求項4】 前記監視機能プログラムの実際の処理頻
度が,ウォッチドッグにより監視される,ことを特徴と
する請求項3に記載のプロセスの開ループ制御/閉ルー
プ制御方法。
4. The method according to claim 3, wherein an actual processing frequency of the monitoring function program is monitored by a watchdog.
【請求項5】 前記制御プログラムをシーケンス制御す
るために駆動システムが使用されると共に,前記ウォッ
チドッグは,前記駆動システムのシーケンス制御とは独
立して実行される,ことを特徴とする請求項4に記載の
プロセスの開ループ制御/閉ループ制御方法。
5. The system according to claim 4, wherein a drive system is used to sequence the control program, and the watchdog is executed independently of the sequence control of the drive system. 4. The open-loop control / closed-loop control method of the process according to 1.
【請求項6】 前記監視機能プログラムは,前記カウン
ト値が少なくとも1つの所定の度数ウィンドウ内にある
か否かを監視する,ことを特徴とする請求項3,4ある
いは5項のうちいずれか1項に記載のプロセスの開ルー
プ制御/閉ループ制御方法。
6. The monitoring function program according to claim 3, wherein said monitoring function program monitors whether said count value is within at least one predetermined frequency window. An open-loop control / closed-loop control method of the process described in the paragraph.
【請求項7】 前記度数ウィンドウは,前記制御シーケ
ンスプログラムに設けられている,ことを特徴とする請
求項6に記載のプロセスの開ループ制御/閉ループ制御
方方法。
7. The method according to claim 6, wherein the frequency window is provided in the control sequence program.
【請求項8】 前記度数ウィンドウの上方閾値と下方閾
値は,前記制御プログラムのシーケンス制御により決定
される,ことを特徴とする請求項6または7に記載のプ
ロセスの開ループ制御/閉ループ制御方法。
8. The method according to claim 6, wherein an upper threshold value and a lower threshold value of the frequency window are determined by sequence control of the control program.
【請求項9】 リアルタイムに実行され,かつ各々所定
頻度で処理される各機能プログラムに分割される制御プ
ログラムを使用したプロセスの開ループ制御/閉ループ
制御装置であって,前記制御装置は,請求項1から8の
いずれか1項に記載の方法を実行する手段を有すること
を特徴とするプロセスの開ループ制御/閉ループ制御装
置。
9. An open-loop control / closed-loop control device for a process using a control program which is executed in real time and is divided into function programs which are each processed at a predetermined frequency, wherein the control device comprises: An open-loop / closed-loop control device for a process, characterized in that it comprises means for performing the method according to any one of claims 1 to 8.
JP2000289866A 1999-09-25 2000-09-25 Method for controlling open loop and closed loop of process Pending JP2001147838A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
DE1999146031 DE19946031A1 (en) 1999-09-25 1999-09-25 Control-program-based control internal combustion engine fuel-injection timing, involves dividing control program into several tasks for carrying out at precisely defined times
DE19946031.0 1999-09-25

Publications (1)

Publication Number Publication Date
JP2001147838A true JP2001147838A (en) 2001-05-29

Family

ID=7923307

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000289866A Pending JP2001147838A (en) 1999-09-25 2000-09-25 Method for controlling open loop and closed loop of process

Country Status (2)

Country Link
JP (1) JP2001147838A (en)
DE (1) DE19946031A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10220341C1 (en) * 2002-05-07 2003-10-30 Siemens Ag Method for determining the priority-dependent computing time distribution in a priority-controlled multi-process computing system
DE102005021986A1 (en) 2005-05-09 2006-11-16 Robert Bosch Gmbh Control device monitoring procedure
US7912623B2 (en) * 2007-09-25 2011-03-22 Denso Corporation Engine control system designed to manage schedule of engine control tasks

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0512040A (en) * 1991-07-04 1993-01-22 Mitsubishi Electric Corp Task execution control system
JPH0756772A (en) * 1993-08-10 1995-03-03 Toshiba Corp Program execution monitoring device for controller
JPH0962342A (en) * 1995-08-21 1997-03-07 Mitsubishi Electric Corp Computer system and its abnormality monitoring method
JPH09231105A (en) * 1996-02-23 1997-09-05 Mitsubishi Electric Corp Method for detecting program fault
JPH10198584A (en) * 1997-01-14 1998-07-31 Nippon Steel Corp Abnormality monitoring device for application software

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0512040A (en) * 1991-07-04 1993-01-22 Mitsubishi Electric Corp Task execution control system
JPH0756772A (en) * 1993-08-10 1995-03-03 Toshiba Corp Program execution monitoring device for controller
JPH0962342A (en) * 1995-08-21 1997-03-07 Mitsubishi Electric Corp Computer system and its abnormality monitoring method
JPH09231105A (en) * 1996-02-23 1997-09-05 Mitsubishi Electric Corp Method for detecting program fault
JPH10198584A (en) * 1997-01-14 1998-07-31 Nippon Steel Corp Abnormality monitoring device for application software

Also Published As

Publication number Publication date
DE19946031A1 (en) 2001-03-29

Similar Documents

Publication Publication Date Title
US6230094B1 (en) Electronic control system and method having monitor program
EP2192489A1 (en) Multi-core processing system for vehicle control or an internal combustion engine controller
US7013241B2 (en) Electronic control unit
JPH0436651A (en) Control method and controller for air fuel ratio of internal combustion engine
JPH03288942A (en) Program run-away detecting method for microcomputer
JP2003323353A (en) Memory diagnostic device and control device
US4312315A (en) System for digital control of operation of internal combustion engine
JP2001147838A (en) Method for controlling open loop and closed loop of process
JPH08503802A (en) Microcomputer
JPH04112967A (en) Ignition control method of internal combustion engine
US6807477B2 (en) Electronic control system and method having monitor program monitoring function
JP4445054B2 (en) Method and apparatus for operating internal combustion engine
US6029630A (en) Engine control device having an arrangement for limiting interrupt processing
JPS6170156A (en) Controller for engine
JP2003138973A (en) Electronic control device for vehicle
JPS63124867A (en) Control device for engine
JPS61286551A (en) Air-fuel ratio controller
JP3802576B2 (en) Method and apparatus for controlling a drive unit of a vehicle
JP3181236B2 (en) Rotation speed detection device and ignition control device for internal combustion engine
GB2328299A (en) Data processing system for ensuring data consistency
JP2713511B2 (en) Step motor control device for internal combustion engine
JP2787495B2 (en) Engine air-fuel ratio control device
JP2536296B2 (en) Internal combustion engine controller
JPH1082340A (en) Throttle control integrated engine control device and medium for recording engine control program
JPH0381566A (en) Ignition time controller of internal combustion engine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070921

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101026

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20110126

A602 Written permission of extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A602

Effective date: 20110201

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110215

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110308