JP2006285734A - Method for diagnosing controller - Google Patents

Method for diagnosing controller Download PDF

Info

Publication number
JP2006285734A
JP2006285734A JP2005105986A JP2005105986A JP2006285734A JP 2006285734 A JP2006285734 A JP 2006285734A JP 2005105986 A JP2005105986 A JP 2005105986A JP 2005105986 A JP2005105986 A JP 2005105986A JP 2006285734 A JP2006285734 A JP 2006285734A
Authority
JP
Japan
Prior art keywords
processing
execution order
task
execution
control device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2005105986A
Other languages
Japanese (ja)
Other versions
JP4328969B2 (en
Inventor
Toshio Hatano
俊雄 波多野
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP2005105986A priority Critical patent/JP4328969B2/en
Publication of JP2006285734A publication Critical patent/JP2006285734A/en
Application granted granted Critical
Publication of JP4328969B2 publication Critical patent/JP4328969B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To realize the diagnostic method of a controller for detecting any abnormality in various processing tasks without omission, and for detecting that necessary processing is normally executed in an intended order. <P>SOLUTION: This diagnostic method for monitoring the task executing circumstances of a controller which executes various processing tasks is provided with execution order information for storing the execution order of processing units in the processing tasks, and characterized to diagnose the actual executing circumstances of the processing units based on the execution order information. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、プラントに配置されたフィールド機器を管理・制御するプラント制御システムにおいて、制御動作における各種処理タスクの実行状況を監視する診断方法に関するものである。   The present invention relates to a diagnostic method for monitoring the execution status of various processing tasks in a control operation in a plant control system that manages and controls field devices arranged in a plant.

このようなプラント制御システムにおいては、プラントの安全を図るために安全システムが導入されている。安全システムは、フィールド機器などに異常が認められた場合に、警報を通知するとともに、必要な措置を実行するシステムであり、プラント制御システムの一部として、あるいは、プラント制御システムとは独立して設けられる。   In such a plant control system, a safety system is introduced in order to ensure plant safety. A safety system is a system for notifying an alarm and performing necessary measures when an abnormality is found in a field device, etc., and as a part of the plant control system or independent of the plant control system. Provided.

図8は、従来の診断機能を有する制御装置の一例を示す構成図である。図において、1はフィールド機器からのプロセスデータを取り込み、制御バルブなどの操作端を駆動する制御信号を出力する制御装置、2は制御装置1の設定値を変更したり、動作状態の監視などを行うエンジニアリングステーション、3はこれらの機器間を接続する制御バスである。制御装置1は各種の処理タスクを有するものであるが、ここでは、診断タスク10および制御タスク20を例示している。   FIG. 8 is a configuration diagram illustrating an example of a control device having a conventional diagnostic function. In the figure, 1 is a control device that captures process data from a field device and outputs a control signal for driving an operation end such as a control valve. 2 is a method for changing a set value of the control device 1 or monitoring an operation state. An engineering station 3 is a control bus for connecting these devices. The control device 1 has various processing tasks. Here, the diagnosis task 10 and the control task 20 are illustrated.

診断タスク10は、設定された診断周期(例えば、1秒)で動作し、フィールド機器の異常診断や、制御装置1の自己診断などを行い(診断処理11)、異常が認められた場合には、警報を通知するとともに、必要な措置を実行したり、システムを停止させる。   The diagnosis task 10 operates in a set diagnosis cycle (for example, 1 second), performs field device abnormality diagnosis, self-diagnosis of the control device 1 (diagnosis processing 11), and when an abnormality is recognized. Notify alarms, take necessary measures or shut down the system.

制御タスク20は、設定された制御周期(スキャン周期)で動作し、プロセスデータなどを取り込むINPUT処理21、各種演算などを行うLOGIC処理22、制御信号などを出力するOUTPUT処理23を実行する。また、処理の異常を検出するために、ウォッチドックタイマーを起動するWDT(ウォッチドックタイマー)処理24を行う。   The control task 20 operates in a set control cycle (scan cycle), and executes an INPUT process 21 for fetching process data, a LOGIC process 22 for performing various calculations, and an OUTPUT process 23 for outputting a control signal. Further, in order to detect an abnormality in processing, WDT (watch dock timer) processing 24 for starting a watch dock timer is performed.

したがって、フィールド機器や制御装置1のハードウエア的な故障などは、診断処理11により検出することができ、ソフトウエアの暴走などは、WDT処理24により検出することができる。   Therefore, a hardware failure or the like of the field device or the control device 1 can be detected by the diagnostic processing 11, and a software runaway can be detected by the WDT processing 24.

特開平07−056773号公報JP 07-056773 A

しかしながら、上記のような制御装置の診断方法においては、以下のような状況においては、異常が検出されず、安全上問題となってしまう。   However, in the control device diagnosis method as described above, no abnormality is detected in the following situation, which causes a safety problem.

図9は、診断処理11における各種診断(処理単位)の流れを示すフロー図である。図において、(a)は本来の処理順を示すフローであり、例えば、フィールド機器(1)の診断11−1、フィールド機器(2)の診断11−2、フィールド機器(3)の診断11−3、・・・の順で診断の実行が設定されている。   FIG. 9 is a flowchart showing the flow of various diagnoses (processing units) in the diagnostic processing 11. In the figure, (a) is a flow showing the original processing order. For example, diagnosis 11-1 of field device (1), diagnosis 11-2 of field device (2), diagnosis 11- of field device (3). Execution of diagnosis is set in order of 3,.

これに対して、(b)に示す如く、一部の処理(診断11−2)が抜けてしまうと、フィールド機器(2)の故障を検出することができず、故障した機器により制御動作が継続されてしまう恐れがある。   On the other hand, as shown in (b), if a part of the processing (diagnosis 11-2) is lost, the failure of the field device (2) cannot be detected, and the control operation is performed by the failed device. There is a risk of being continued.

図10は、LOGIC処理22における各種処理(処理単位)の流れを示すフロー図である。図において、(a)は本来の処理順を示すフローであり、例えば、演算(1)22−1、演算(2)22−2、演算(3)22−3、・・・の順で各種演算の実行が設定されている。   FIG. 10 is a flowchart showing the flow of various processes (processing units) in the LOGIC process 22. In the figure, (a) is a flow showing the original processing order. For example, in the order of calculation (1) 22-1, calculation (2) 22-2, calculation (3) 22-3,. Calculation execution is set.

これに対して、(b)に示す如く、演算の順序が入れ替わってしまうと、意図した演算結果を得ることができず、正常な制御動作を行うことができなくなってしまう。
また、INPUT処理21やOUTPUT処理23においても、処理順が狂うと、適切でないデータを読み込んだり、書き込んでしまう可能性がある。
On the other hand, as shown in (b), if the order of computation is changed, the intended computation result cannot be obtained and normal control operation cannot be performed.
Also, in the INPUT process 21 and the OUTPUT process 23, if the processing order is out of order, there is a possibility that inappropriate data is read or written.

図11は、WDT処理24における誤検出の様子を示すフロー図である。図において、(a)を本来の処理順を示すフローとし、例えば、処理(1)25−1、処理(2)25−2、処理(3)25−3、・・・の順で各処理が実行され、各処理の終了に応じてWDTがトリガされているとする。   FIG. 11 is a flowchart showing a state of erroneous detection in the WDT processing 24. In the figure, (a) is a flow showing the original processing order. For example, each processing in the order of processing (1) 25-1, processing (2) 25-2, processing (3) 25-3,. Is executed, and WDT is triggered according to the end of each process.

ここで、(b)に示す如く、同じ処理25−4が繰り返され、WDTにトリガが供給され続けた場合には、WDTは期待される監視動作を行うことができず、処理の異常を検出することができない。   Here, as shown in (b), when the same processing 25-4 is repeated and the trigger continues to be supplied to the WDT, the WDT cannot perform the expected monitoring operation and detects a processing abnormality. Can not do it.

従来、このような処理タスク内の処理順に関しては、監視する手段がなく、必要な処理が意図した順序で正常に実行されているか否かを検出することはできない。   Conventionally, with respect to the processing order in such processing tasks, there is no means for monitoring and it is not possible to detect whether or not necessary processing is normally executed in the intended order.

本発明は、上記のような従来装置の欠点をなくし、各種処理タスクにおける異常を漏れなく検出し、必要な処理が意図した順序で正常に実行されていることを検出することのできる制御装置の診断方法を実現することを目的としたものである。   The present invention eliminates the drawbacks of the conventional apparatus as described above, detects abnormalities in various processing tasks without omission, and can detect that necessary processes are normally executed in the intended order. The purpose is to realize a diagnostic method.

上記のような目的を達成するために、本発明の請求項1では、各種処理タスクを実行する制御装置のタスク実行状況を監視する診断方法において、前記処理タスクにおける処理単位の実行順を記憶した実行順情報を有し、この実行順情報を基にして実際の処理単位の実行状況を診断することを特徴とする。   In order to achieve the above object, in claim 1 of the present invention, in the diagnostic method for monitoring the task execution status of the control device that executes various processing tasks, the execution order of the processing units in the processing tasks is stored. It has an execution order information, and the execution status of an actual processing unit is diagnosed based on the execution order information.

請求項2では、請求項1の制御装置の診断方法において、前記処理タスクにおける処理単位は、プログラムのファンクション単位であることを特徴とする。   According to a second aspect of the present invention, in the control device diagnosis method according to the first aspect, the processing unit in the processing task is a function unit of a program.

請求項3では、請求項1または2の制御装置の診断方法において、前記実行順情報は、処理順をインデックスとして、その時に処理すべき処理単位と、次に処理すべき処理単位とを関連させて記憶することを特徴とする。   According to a third aspect of the present invention, in the diagnosis method of the control device according to the first or second aspect, the execution order information associates a processing unit to be processed at that time with a processing unit to be processed next, using the processing order as an index. And memorize it.

請求項4では、請求項1乃至3のいずれかの制御装置の診断方法において、前記実行順情報は、処理タスクの最初の実行時に、プログラムを基に構築されることを特徴とする。   According to a fourth aspect of the present invention, in the method for diagnosing a control device according to any one of the first to third aspects, the execution order information is constructed based on a program when the processing task is first executed.

請求項5では、請求項1乃至4のいずれかの制御装置の診断方法において、前記処理タスクには、ウォッチドックタイマー処理を含むことを特徴とする。   According to a fifth aspect of the present invention, in the diagnosis method for a control device according to any one of the first to fourth aspects, the processing task includes a watchdog timer process.

請求項6では、請求項1乃至5のいずれかの制御装置の診断方法において、前記処理タスクは、制御タスクであることを特徴とする。   According to a sixth aspect of the present invention, in the control device diagnosis method according to any one of the first to fifth aspects, the processing task is a control task.

請求項7では、請求項6の制御装置の診断方法において、前記制御タスクには、装置の自己診断を行う診断処理を含むことを特徴とする。   According to a seventh aspect of the present invention, in the control device diagnosis method according to the sixth aspect, the control task includes a diagnostic process for performing self-diagnosis of the device.

請求項8では、請求項1乃至7のいずれかの制御装置の診断方法において、前記実行順情報を基にして実際の処理単位の実行状況を診断する動作を、前記処理タスクの一部として実行することを特徴とする。   According to claim 8, in the diagnosis method of the control device according to any one of claims 1 to 7, an operation of diagnosing an execution status of an actual processing unit based on the execution order information is executed as a part of the processing task. It is characterized by doing.

このように、処理タスクにおける処理単位の実行順を記憶した実行順情報を設け、この実行順情報を基にして実際の処理単位の実行状況を診断するように構成すると、必要な処理が意図した順序で実行されているか否かを容易に検出することができる。
また、処理タスクの最初の実行時に実行順情報を構築するようにすると、処理タスクの実行内容が逐次変更されるような場合でも、処理タスクの変更の都度、実行順情報を再構築することができ、常に変更された実行内容に基づいて監視を行うことができる。
さらに、WDT処理を処理タスクの中に含めることにより、処理時間に対する異常を検出することができ、一連の処理が時間内に実行されているか否かを検出することができる。
As described above, when the execution order information storing the execution order of the processing units in the processing task is provided and the execution status of the actual processing unit is diagnosed based on the execution order information, the necessary processing is intended. It is possible to easily detect whether or not they are executed in order.
In addition, if the execution order information is constructed at the first execution of the processing task, the execution order information can be reconstructed every time the processing task is changed even if the execution contents of the processing task are sequentially changed. It is possible to monitor based on the changed execution contents.
Furthermore, by including the WDT process in the processing task, it is possible to detect an abnormality with respect to the processing time, and it is possible to detect whether or not a series of processes are executed within the time.

以下、図面を用いて、本発明の制御装置の診断方法を説明する。   Hereinafter, a diagnosis method for a control device of the present invention will be described with reference to the drawings.

図1は、本発明の制御装置の診断方法の一実施例を示す構成図である。図において、前記図8と同様のものは同一符号を付して示す。30は制御装置1内で実行される制御タスクであり、この制御タスク30は、診断処理31、INPUT処理32、LOGIC処理33、OUTPUT処理34、WDT処理35から構成され、これらの処理を順次実行する。なお、各処理の内容は、前記図8における同一名の処理と同様である。
また、制御タスク30は、各処理の実行順および各処理内における処理単位の実行順を監視する実行順監視機能36を有している。
FIG. 1 is a configuration diagram showing an embodiment of a diagnosis method for a control device of the present invention. In the figure, the same components as those in FIG. Reference numeral 30 denotes a control task executed in the control device 1, and this control task 30 includes a diagnosis process 31, an INPUT process 32, a LOGIC process 33, an OUTPUT process 34, and a WDT process 35, and these processes are sequentially executed. To do. The contents of each process are the same as those of the same name in FIG.
Further, the control task 30 has an execution order monitoring function 36 for monitoring the execution order of each process and the execution order of processing units in each process.

図2は、制御タスク30における各処理の実行順および実行順監視動作の一例を示すフロー図である。設定された制御周期に応じて制御タスク30が起動されると、まず、診断処理31が実行される。   FIG. 2 is a flowchart showing an example of the execution order and execution order monitoring operation of each process in the control task 30. When the control task 30 is started according to the set control cycle, first, a diagnosis process 31 is executed.

図3は、診断処理31の一例を示すもので、フィールド機器の故障診断やメモリのチェックなど、一連の診断処理1〜診断処理Nを決められた順序で実行する。
ここで、各診断処理1〜診断処理Nの終了時には、実行順のチェックが行われ、実行順の異常が検出された場合には、異常終了として、警報の通知やシステムのシャットダウンなど、必要な措置が取られる。
FIG. 3 shows an example of the diagnosis process 31. A series of diagnosis processes 1 to N, such as field device failure diagnosis and memory check, are executed in a predetermined order.
Here, at the end of each diagnosis process 1 to diagnosis process N, the execution order is checked, and if an abnormality in the execution order is detected, it is necessary to notify the alarm or shut down the system as an abnormal end. Measures are taken.

図4は、実行順のチェック動作を説明するフロー図である。なお、診断処理1〜診断処理Nなどの処理単位における実行順情報は、図5の如き実行順テーブルとして記憶されている。
このテーブルにおいて、Indexは処理単位の処理順、Currentは現在地点を0以外の整数で指定したもので、最初の地点ならばSTARTを指定する。Nextは次に呼び出す地点を0以外の整数で指定したもので、最初の地点ならばSTARTを指定する。
FIG. 4 is a flowchart illustrating the execution order check operation. Note that the execution order information in the processing units such as the diagnostic process 1 to the diagnostic process N is stored as an execution order table as shown in FIG.
In this table, Index is the processing order of the processing unit, and Current is the current point designated by an integer other than 0, and if it is the first point, START is designated. Next designates a point to be called next by an integer other than 0, and if it is the first point, START is designated.

図4に戻って、実行順チェックの開始時には、実行順テーブルのIndexポインタを初期化し、処理1(診断処理1)の実行順をテーブルと比較する。実行順テーブルのIndexが指す所に処理1の情報があるか、情報があれば処理1のCurrentおよびNextが実行順テーブルの各々と一致しているかを調べる。なお、CurrentまたはNextが0ならば、情報未登録である。   Returning to FIG. 4, when the execution order check is started, the Index pointer of the execution order table is initialized, and the execution order of process 1 (diagnostic process 1) is compared with the table. It is checked whether the information of the process 1 exists at the position indicated by the index of the execution order table, and if there is information, the current and the next of the process 1 match each of the execution order tables. If Current or Next is 0, the information is not registered.

比較結果が正常であれば、処理単位(診断処理1〜診断処理N)の実行終了に合わせて、順次Indexポインタを更新し、同様な比較動作を繰り返す。
最後の処理Nまで比較を行い、異常が検出されなければ、診断処理31が実行順を含めて正常に終了したことになる。
If the comparison result is normal, the Index pointer is sequentially updated in accordance with the end of execution of the processing unit (diagnosis process 1 to diagnosis process N), and the same comparison operation is repeated.
The comparison is made up to the last process N, and if no abnormality is detected, the diagnosis process 31 has been normally completed including the execution order.

したがって、診断処理31を処理単位(診断処理1〜診断処理N)の実行順を含めて監視することができ、前記した図9のような処理の抜けによる不具合を防止することができる。   Therefore, the diagnostic process 31 can be monitored including the execution order of the processing units (diagnostic process 1 to diagnostic process N), and a problem due to the missing process as shown in FIG. 9 can be prevented.

図2に戻って、診断処理31が終了すると、この診断処理31に対する実行順のチェックが行われ、処理がINPUT処理32へ移される。
このとき使用される実行順情報は、前記図5の如き、実行順テーブルの形式で記憶したものでも良いし、制御タスク30中に持っている順序情報を利用しても良い。
Returning to FIG. 2, when the diagnosis process 31 is completed, the execution order of the diagnosis process 31 is checked, and the process is moved to the INPUT process 32.
The execution order information used at this time may be stored in the form of an execution order table as shown in FIG. 5, or the order information held in the control task 30 may be used.

INPUT処理32の次は、LOGIC処理33に移るが、LOGIC処理33はエンジニアリングステーション2などからのオンラインメンテナンス操作により、処理の内容が変更される可能性がある。
このような場合には、LOGIC処理33を実行する前に、図6に示す如く、実行順情報の作成を行う。
After the INPUT process 32, the process moves to the LOGIC process 33. The contents of the LOGIC process 33 may be changed by an online maintenance operation from the engineering station 2 or the like.
In such a case, before executing the LOGIC processing 33, execution order information is created as shown in FIG.

図6は、LOGIC処理33の一例を示すフロー図である。LOGIC処理33においては、その実行前に、処理が初回の実行であるか否かが判断される。初回の実行とは、制御装置1の起動後に、制御タスク30が始めて動作した場合と、処理の内容が変更された後に、制御タスク30が始めて動作した場合とが該当する。   FIG. 6 is a flowchart showing an example of the LOGIC process 33. In the LOGIC process 33, it is determined whether or not the process is the first execution before the execution. The first execution corresponds to a case where the control task 30 operates for the first time after the activation of the control device 1 and a case where the control task 30 operates for the first time after the contents of processing are changed.

制御タスク30が初回の実行であった場合、処理単位(LOGIC処理1〜LOGIC処理N)の実行前に実行順情報の作成が行われる。
実行順情報の作成は、プログラムの記載に基づき、図7に示す如き手順により行われ、前記図5の如き、実行順テーブルを再構築する。図7に示すように、処理1(LOGIC処理1)の実行順を実行順テーブルのNo.1(Index)に登録し、以下、順に処理N(LOGIC処理N)までを実行順テーブルに登録する。最後に、実行順テーブルに登録された数字に重複がないか、整合が取れているかなど、実行順テーブルのチェックをして、実行順テーブルの作成を終了する。
When the control task 30 is executed for the first time, execution order information is created before execution of a processing unit (LOGIC processing 1 to LOGIC processing N).
Creation of the execution order information is performed according to the procedure shown in FIG. 7 based on the description of the program, and the execution order table is reconstructed as shown in FIG. As shown in FIG. 7, the execution order of process 1 (LOGIC process 1) is set to No. in the execution order table. 1 (Index), and thereafter, processing up to processing N (LOGIC processing N) is sequentially registered in the execution order table. Finally, the execution order table is checked, for example, whether the numbers registered in the execution order table are duplicated or consistent, and the creation of the execution order table is terminated.

このように、初回の実行時には、実行順情報(実行順テーブル)が構築され、その後、処理単位(LOGIC処理1〜LOGIC処理N)とともに、この実行順情報を使用して実行順のチェックが行われる。
したがって、処理タスクの実行内容が逐次変更されるような場合であっても、処理タスクの変更の都度、実行順情報を再構築することができ、常に変更された実行内容に基づいて実行順の監視を行うことができる。
また、実行順情報(実行順テーブル)の構築を自動的に行うため、実行内容の変更に対処するための特別なエンジニアリングは必要としない。
Thus, at the first execution time, execution order information (execution order table) is constructed, and thereafter, the execution order is checked using this execution order information together with processing units (LOGIC processing 1 to LOGIC processing N). Is called.
Therefore, even if the execution contents of the processing task are changed sequentially, the execution order information can be reconstructed every time the processing task is changed, and the execution order is always changed based on the changed execution contents. Monitoring can be performed.
In addition, since execution order information (execution order table) is automatically constructed, no special engineering is required to cope with changes in execution contents.

なお、ここでは、LOGIC処理33内の処理単位(LOGIC処理1〜LOGIC処理N)に対する実行順情報(実行順テーブル)のみを書き換える場合を例示したが、他の処理に対する実行順情報(実行順テーブル)も同時に書き換えるようにすることも可能である。   In this example, only the execution order information (execution order table) for the processing units (LOGIC process 1 to LOGIC process N) in the LOGIC process 33 is rewritten. However, the execution order information (execution order table) for other processes is illustrated. ) Can be rewritten at the same time.

その後、タスクの実行は、OUTPUT処理34、WDT処理35と進み、全ての処理に対して、同様の実行順チェックが実施される。
ここで、WDT処理35のように、時間に制約を持たせる処理を実行順チェックの対象に含ませているので、ソフトウエアの暴走などとともに、必要な一連の処理が時間内に実行されているか否かを検出することができる。
Thereafter, the execution of the task proceeds to the OUTPUT process 34 and the WDT process 35, and the same execution order check is performed for all the processes.
Here, since a process with time constraints, such as the WDT process 35, is included in the execution order check target, whether a necessary series of processes are executed in time along with software runaway etc. Whether or not can be detected.

また、制御タスク30の中に診断処理31が含まれているので、制御タスク30が起動される都度、診断動作を実行することができ、制御周期に合わせて、きめ細かく診断処理31を行うことができる。   In addition, since the diagnostic process 31 is included in the control task 30, the diagnostic operation can be executed every time the control task 30 is activated, and the diagnostic process 31 can be performed in detail in accordance with the control cycle. it can.

以上説明したように、処理タスクにおける処理単位の実行順を記憶した実行順情報を設け、この実行順情報を基にして実際の処理単位の実行状況を診断するように構成すると、必要な処理が意図した順序で実行されているか否かを容易に検出することができる。
また、実行順チェックのために、高速なCPU演算能力や特別なメモリなど、特別な機構を必要としないので、CPUの負荷を増加させることなく、確実に監視動作を行うことができる。
As described above, if the execution order information storing the execution order of the processing units in the processing task is provided and the execution status of the actual processing unit is diagnosed based on the execution order information, the necessary processing is performed. It can be easily detected whether or not it is executed in the intended order.
Further, since a special mechanism such as a high-speed CPU computing capacity and a special memory is not required for execution order check, the monitoring operation can be reliably performed without increasing the CPU load.

なお、上記の説明においては、処理タスクの一例として制御タスク30を例示したが、本発明の対象は制御タスク30のみに限らず、他の処理タスクにも応用することができるものである。   In the above description, the control task 30 is illustrated as an example of the processing task. However, the subject of the present invention is not limited to the control task 30 and can be applied to other processing tasks.

また、実行順監視機能36を制御タスク30の中に持たせる場合を例示したが、実行順監視機能36を監視すべき処理タスクと独立に動作させることも可能である。   Further, although the case where the execution order monitoring function 36 is provided in the control task 30 is illustrated, the execution order monitoring function 36 can be operated independently of the processing task to be monitored.

図1は本発明の制御装置の診断方法の一実施例を示す構成図。FIG. 1 is a configuration diagram showing an embodiment of a diagnosis method for a control device of the present invention. 図2は制御タスク30における各処理の実行順および実行順監視動作の一例を示すフロー図。FIG. 2 is a flowchart showing an example of the execution order and execution order monitoring operation of each process in the control task 30. 図3は診断処理31の一例を示すフロー図。FIG. 3 is a flowchart showing an example of the diagnostic process 31. 図4は実行順のチェック動作を説明するフロー図。FIG. 4 is a flowchart for explaining an execution order check operation. 図5は実行順のチェック動作に使用される実行順テーブル。FIG. 5 is an execution order table used for execution order check operations. 図6はLOGIC処理33の一例を示すフロー図。FIG. 6 is a flowchart showing an example of the LOGIC process 33. 図7は実行順情報の作成動作を説明するフロー図。FIG. 7 is a flowchart for explaining execution order information creation operation. 図8は従来の診断機能を有する制御装置の一例を示す構成図。FIG. 8 is a block diagram showing an example of a conventional control device having a diagnostic function. 図9は診断処理11における各種診断(処理単位)の流れを示すフロー図。FIG. 9 is a flowchart showing the flow of various diagnoses (processing units) in the diagnostic processing 11. 図10はLOGIC処理22における各種処理(処理単位)の流れを示すフロー図。FIG. 10 is a flowchart showing the flow of various processes (processing units) in the LOGIC process 22. 図11はWDT処理24における誤検出の様子を示すフロー図。FIG. 11 is a flowchart showing a state of erroneous detection in the WDT processing 24.

符号の説明Explanation of symbols

1 制御装置
2 エンジニアリングステーション
3 制御バス
10 診断タスク
11、31 診断処理
20、30 制御タスク
21、32 INPUT処理
22、33 LOGIC処理
23、34 OUTPUT処理
24、35 WDT処理
36 実行順監視機能
DESCRIPTION OF SYMBOLS 1 Control apparatus 2 Engineering station 3 Control bus 10 Diagnostic task 11, 31 Diagnostic process 20, 30 Control task 21, 32 INPUT process 22, 33 LOGIC process 23, 34 OUTPUT process 24, 35 WDT process 36 Execution order monitoring function

Claims (8)

各種処理タスクを実行する制御装置のタスク実行状況を監視する診断方法において、
前記処理タスクにおける処理単位の実行順を記憶した実行順情報を有し、
この実行順情報を基にして実際の処理単位の実行状況を診断することを特徴とする制御装置の診断方法。
In a diagnostic method for monitoring the task execution status of a control device that executes various processing tasks,
Execution order information storing the execution order of processing units in the processing task;
A diagnosis method for a control device, characterized in that an execution status of an actual processing unit is diagnosed based on the execution order information.
前記処理タスクにおける処理単位は、プログラムのファンクション単位であることを特徴とする請求項1に記載の制御装置の診断方法。   2. The control device diagnosis method according to claim 1, wherein a processing unit in the processing task is a function unit of a program. 前記実行順情報は、処理順をインデックスとして、その時に処理すべき処理単位と、次に処理すべき処理単位とを関連させて記憶することを特徴とする請求項1または2に記載の制御装置の診断方法。   The control apparatus according to claim 1, wherein the execution order information stores the processing unit to be processed at that time and the processing unit to be processed next in association with each other using the processing order as an index. Diagnosis method. 前記実行順情報は、処理タスクの最初の実行時に、プログラムを基に構築されることを特徴とする請求項1乃至3のいずれかに記載の制御装置の診断方法。   The control device diagnosis method according to claim 1, wherein the execution order information is constructed based on a program when the processing task is first executed. 前記処理タスクには、ウォッチドックタイマー処理を含むことを特徴とする請求項1乃至4のいずれかに記載の制御装置の診断方法。   5. The control device diagnosis method according to claim 1, wherein the processing task includes a watchdog timer process. 前記処理タスクは、制御タスクであることを特徴とする請求項1乃至5のいずれかに記載の制御装置の診断方法。   The control device diagnosis method according to claim 1, wherein the processing task is a control task. 前記制御タスクには、装置の自己診断を行う診断処理を含むことを特徴とする請求項6に記載の制御装置の診断方法。   7. The control device diagnosis method according to claim 6, wherein the control task includes a diagnosis process for performing self-diagnosis of the device. 前記実行順情報を基にして実際の処理単位の実行状況を診断する動作を、前記処理タスクの一部として実行することを特徴とする請求項1乃至7のいずれかに記載の制御装置の診断方法。
8. The diagnosis of a control device according to claim 1, wherein an operation for diagnosing an execution status of an actual processing unit based on the execution order information is executed as a part of the processing task. Method.
JP2005105986A 2005-04-01 2005-04-01 Diagnosis method of control device Active JP4328969B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005105986A JP4328969B2 (en) 2005-04-01 2005-04-01 Diagnosis method of control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005105986A JP4328969B2 (en) 2005-04-01 2005-04-01 Diagnosis method of control device

Publications (2)

Publication Number Publication Date
JP2006285734A true JP2006285734A (en) 2006-10-19
JP4328969B2 JP4328969B2 (en) 2009-09-09

Family

ID=37407585

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005105986A Active JP4328969B2 (en) 2005-04-01 2005-04-01 Diagnosis method of control device

Country Status (1)

Country Link
JP (1) JP4328969B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011039882A (en) * 2009-08-14 2011-02-24 Nippon Telegr & Teleph Corp <Ntt> Application process evaluation apparatus, method thereof, and program
JP2011159114A (en) * 2010-02-01 2011-08-18 Fuji Electric Co Ltd Module arithmetic processing apparatus
JP2015508517A (en) * 2011-12-02 2015-03-19 フィッシャー コントロールズ インターナショナル リミテッド ライアビリティー カンパニー Program flow control monitoring routine, related methods and systems
CN116149304A (en) * 2023-04-21 2023-05-23 中国第一汽车股份有限公司 Vehicle diagnosis system, method, equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011039882A (en) * 2009-08-14 2011-02-24 Nippon Telegr & Teleph Corp <Ntt> Application process evaluation apparatus, method thereof, and program
JP2011159114A (en) * 2010-02-01 2011-08-18 Fuji Electric Co Ltd Module arithmetic processing apparatus
JP2015508517A (en) * 2011-12-02 2015-03-19 フィッシャー コントロールズ インターナショナル リミテッド ライアビリティー カンパニー Program flow control monitoring routine, related methods and systems
CN116149304A (en) * 2023-04-21 2023-05-23 中国第一汽车股份有限公司 Vehicle diagnosis system, method, equipment and storage medium
CN116149304B (en) * 2023-04-21 2023-07-18 中国第一汽车股份有限公司 Vehicle diagnosis system, method, equipment and storage medium

Also Published As

Publication number Publication date
JP4328969B2 (en) 2009-09-09

Similar Documents

Publication Publication Date Title
EP0401816A2 (en) Plant operation supporting method
US6195763B1 (en) Fault diagnostic device and method
CN107003915A (en) Drive dynamic control device
US20230367296A1 (en) Industrial system, abnormality detection system, and abnormality detection method
JP4328969B2 (en) Diagnosis method of control device
US10899010B2 (en) Cable damage detection assistance apparatus and cable damage detection assistance method in robot mechanism
JP2008052315A (en) Field bus communication diagnostic apparatus and field bus communication diagnostic method
JP5041290B2 (en) PROGRAMMABLE CONTROLLER AND ITS ERROR RECOVERY METHOD
JP2006040122A (en) Programmable controller
JP6408482B2 (en) Programmable device and electronic system apparatus using the same
JP4538730B2 (en) Motor control device
JP5726100B2 (en) Control logic management device
JP4747683B2 (en) On-vehicle electronic control system, fault diagnosis method thereof, and on-vehicle electronic control device
JPH04245309A (en) Digital controller for control
JP5559100B2 (en) Electronic control system
WO2023162364A1 (en) Abnormality diagnosis device and method
JP2006058983A (en) Process data collector
JPS61813A (en) Deciding system for faulty area of sequence controller
JP2007042017A (en) Fault diagnostic system, fault diagnostic method, and fault diagnostic program
JP6813963B2 (en) Operating status recording system and operating status recording method
JP2007096005A (en) Surface mounter
JP2008230563A (en) Platform door operation monitoring control system
JP2020046979A (en) In-vehicle electronic control device
JP2990008B2 (en) Processor self-diagnosis method
JP2015197729A (en) Microprocessor failure diagnostic method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071221

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080107

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080305

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090309

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090423

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4328969

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130626

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20140626

Year of fee payment: 5