JP4667954B2 - Analysis support device - Google Patents
Analysis support device Download PDFInfo
- Publication number
- JP4667954B2 JP4667954B2 JP2005143937A JP2005143937A JP4667954B2 JP 4667954 B2 JP4667954 B2 JP 4667954B2 JP 2005143937 A JP2005143937 A JP 2005143937A JP 2005143937 A JP2005143937 A JP 2005143937A JP 4667954 B2 JP4667954 B2 JP 4667954B2
- Authority
- JP
- Japan
- Prior art keywords
- source code
- information
- unit
- control signal
- code information
- 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
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Description
本発明は、ソフトウェアの組み込まれた装置の解析を支援する解析支援装置に関する。 The present invention relates to an analysis support apparatus that supports analysis of an apparatus in which software is incorporated.
コンピュータソフトウェアの内容の理解を容易にするための装置は、いくつか提案されている。
例えば、特許文献1は、ソフトウェアのソースコードを解析し、その構文及び意味に関する情報を記憶する。ユーザからの問い合わせに応じて、モジュールの関係、変数の関係等を表示することにより、ソフトウェアの内容の理解を容易にするものである。
Several devices for facilitating understanding of the contents of computer software have been proposed.
For example,
特許文献2は、ソフトウェアのソースコードを解析して、その制御の流れに関する情報を記憶する。特に、制御の流れの分岐・合流に注目して、これを階層化し、制御の流れを階層レベルごとに視覚化して表示することにより、制御の流れの把握を容易にするものである。 Patent Document 2 analyzes software source code and stores information related to the flow of control. In particular, focusing on the branching / merging of the control flow, this is hierarchized, and the control flow is visualized and displayed for each hierarchical level, thereby facilitating understanding of the control flow.
特許文献3は、ソフトウェアの実行時の動作をソースコードのレベルで仮想的にシミュレートし、ソフトウェアを1ステップ実行するごとに、変数の値等を調べて、トレース情報として記憶する。記憶されたトレース情報に基づいて、ソフトウェアの実行時の振る舞いを仮想的に再現することで、ソフトウェアの処理を時間を追って見るだけでなく、時間を遡って見ることができる。また、制御の流れやデータの流れを時間軸上に表現した図形を表示することにより、制御の流れやデータの流れの把握を容易にするものである。
上記の装置は、ソフトウェア開発者等そのソフトウェアを記述したプログラム言語に精通した者が、ソフトウェアのデバッグ、保守、改良等する場合にそれを支援することを目的としている。 The above-described apparatus is intended to assist a software developer or other person familiar with a programming language describing the software when debugging, maintaining, or improving the software.
現代社会においては、多くの製品にコンピュータが組み込まれ、その中でソフトウェアを実行している。
このような製品が故障した場合、例えば、エレベータのように設置場所から動かせない製品であれば、修理担当者が現場に行って修理することになる。修理担当者が故障の原因を探索するにあたり、そのなかに組み込まれたソフトウェアの内容を理解する必要に迫られる場合もある。しかし、修理担当者は必ずしもそのソフトウェアを記述した言語に精通しているとは限らない。
In modern society, computers are built into many products, and software is executed in them.
When such a product breaks down, for example, if it is a product that cannot be moved from the installation location such as an elevator, a repair person will go to the site and repair it. When a repair person searches for the cause of a failure, it may be necessary to understand the contents of the software incorporated therein. However, repair personnel are not always familiar with the language in which the software is written.
従来のエレベータは、ラダー言語のような単純な論理の組み合わせで多くのプログラムが実装されていた。このため、故障が発生した場合も、論理式を解析することにより、比較的容易に、故障の直接の要因となっている変数から、故障の発端の原因となっている変数を探索することが可能であった。しかし、近年、エレベータの制御に対する仕様が大規模、複雑化し、ラダー言語以外の高級言語でプログラムが実装されることが多くなった。このため、従来のように論理式を解析する手法のみで、故障の直接の要因となっている変数から、故障の発端の原因となっている変数を探索することが困難となっていた。 In conventional elevators, many programs are implemented by a combination of simple logic such as a ladder language. For this reason, even when a failure occurs, it is relatively easy to search for a variable that causes the failure from the variables that are the direct cause of the failure by analyzing the logical expression. It was possible. However, in recent years, the specifications for elevator control have become large-scale and complicated, and programs are often implemented in high-level languages other than ladder languages. For this reason, it has been difficult to search for a variable that is the cause of a failure from variables that are a direct cause of the failure only by a conventional method of analyzing a logical expression.
エレベータの据付現場において、故障が発生した場合、本来ハードウェアをONする変数Aが、ONにならないような状況において、このハードウェアをONする変数Aが何であるかを調査し、なぜ、その変数AがONにならないかを、変数Aがプログラムでどこで使用されているかを調査し、更に、変数AをONにしない条件は何であるかを調べて、最終的に、故障の発端の原因となる変数を探索している。プログラムがラダーのような単純な論理の組み合わせで実装されている場合、この探索は比較的容易であるが、C言語のような高級言語でプログラムが実装されている場合は、探索の効率が悪く、これを効率的に行う必要があるという課題があった。 When a failure occurs at the elevator installation site, the variable A that originally turns on the hardware is investigated in the situation where the variable A that turns on the hardware is not turned on. Investigate whether A is not turned ON, where variable A is used in the program, and what is the condition that does not turn variable A ON, and eventually cause failure Searching for variables. This search is relatively easy when the program is implemented with a simple logic combination such as a ladder, but when the program is implemented with a high-level language such as C language, the efficiency of the search is poor. There was a problem that it was necessary to do this efficiently.
また、従来、ラダープログラムを対象に探索を実施していた作業者が、言語の仕様が複雑なC言語のような高級言語を対象に探索を実施するには、言語の理解に対するギャップを克服する必要があるという課題があった。 In addition, in order for a worker who has previously performed a search for a ladder program to perform a search for a high-level language such as C language having a complicated language specification, the gap in understanding the language is overcome. There was a problem that it was necessary.
そこで、ソフトウェアを記述したプログラム言語に精通していない者がそのソフトウェアの内容を理解するのを助けることが課題となる。 Therefore, it is an issue to help those who are not familiar with the programming language describing the software to understand the contents of the software.
更にいえば、修理担当者は故障の原因を探索するために必要な最小限の範囲でソフトウェアの内容を理解すればよいのであって、それ以上のことを知る必要はない。 Furthermore, the repair person only needs to understand the contents of the software to the minimum extent necessary for searching for the cause of the failure, and need not know any more.
したがって、装置に組み込まれたソフトウェアの内容を深く理解せずとも、その装置が解析できるのであれば、そのほうが好ましい。 Therefore, it is preferable if the device can be analyzed without deeply understanding the contents of the software incorporated in the device.
本発明は、例えば、上述したような課題を解決して、ソフトウェアの組み込まれた装置の解析を容易にし、作業効率を高めることを目的とする。 An object of the present invention is, for example, to solve the above-described problems, facilitate analysis of a device in which software is incorporated, and improve work efficiency.
本発明に係る解析支援装置は、
実行可能なソフトウェアを内蔵した制御部と、
上記制御部により制御される制御対象部と、
を有する解析対象装置の解析を支援する解析支援装置において、
上記ソフトウェアのソースコードの情報であるソースコード情報を記憶するソースコード情報記憶部と、
上記解析対象装置と接続して、上記解析対象装置の制御部と上記解析対象装置の制御対象部との間の制御信号を取得する制御信号取得部と、
上記解析対象装置の回路図の情報である回路図情報を記憶する回路図情報記憶部と、
上記ソースコード情報記憶部が記憶したソースコード情報を表示するソースコード情報表示部と、
上記制御信号取得部が取得した制御信号を表示する制御信号表示部と、
上記回路図情報記憶部が記憶した回路図情報を表示する回路図情報表示部と
を有することを特徴とする。
An analysis support apparatus according to the present invention includes:
A control unit with built-in executable software;
A control target controlled by the control unit;
In the analysis support device that supports the analysis of the analysis target device having
A source code information storage unit for storing source code information which is information of a source code of the software;
A control signal acquisition unit connected to the analysis target device to acquire a control signal between the control unit of the analysis target device and the control target unit of the analysis target device;
A circuit diagram information storage unit for storing circuit diagram information which is information of a circuit diagram of the analysis target device;
A source code information display unit for displaying the source code information stored in the source code information storage unit;
A control signal display unit for displaying the control signal acquired by the control signal acquisition unit;
And a circuit diagram information display unit for displaying circuit diagram information stored in the circuit diagram information storage unit.
本発明は、例えば、制御信号についての情報、ソフトウェアについての情報、回路図についての情報を表示することで、作業者の理解を容易にし、解析対象装置の解析の効率が高くなるとの効果を有する。 The present invention has an effect of facilitating the understanding of the operator and increasing the efficiency of analysis of the analysis target device by displaying, for example, information about control signals, information about software, and information about circuit diagrams. .
実施の形態1.
実施の形態1を図1〜図6を用いて説明する。
図1は、解析支援装置100のハードウェア構成の一例を示す。
図1において、解析支援装置100は、システムユニット910、CRT(Cathode Ray Tube)表示装置901、キーボード(K/B)902、マウス903、コンパクトディスク装置(CDD)905、プリンタ装置906、スキャナ装置907を備え、これらはケーブルで接続されている。
さらに、解析支援装置100は、FAX機932、電話器931とケーブルで接続され、また、ローカルエリアネットワーク(LAN)942、ゲートウェイ941を介してインターネット940に接続されている。
また、解析支援装置100は、LAN942を介して、エレベータ200(解析対象装置の一例)に接続されている。
しかし、必ずしもLANを介する必要はなく、直接接続する構成でもよい。逆に、インターネットを介して、遠隔接続する構成でもよい。また、常に接続されている必要もなく、コネクタを介して接続し、必要のないときには、外しておく構成でもよい。
The first embodiment will be described with reference to FIGS.
FIG. 1 shows an exemplary hardware configuration of the analysis support apparatus 100.
In FIG. 1, an analysis support apparatus 100 includes a system unit 910, a CRT (Cathode Ray Tube)
Further, the analysis support apparatus 100 is connected to the
The analysis support apparatus 100 is connected to an elevator 200 (an example of an analysis target apparatus) via a
However, it is not always necessary to connect via a LAN, and a configuration of direct connection may be used. Conversely, it may be configured to connect remotely via the Internet. Further, it is not always necessary to be connected, but it may be configured to connect via a connector and remove it when unnecessary.
図2は、解析支援装置100の内部構成の一例を示す。
図2において、解析支援装置100は、プログラムを実行するCPU(Central Processing Unit)911を備えている。CPU911は、バス912を介してROM913、RAM914、通信ボード915、CRT表示装置901、K/B902、マウス903、FDD(Flexible Disk Drive)904、磁気ディスク装置920、CDD905、プリンタ装置906、スキャナ装置907と接続されている。
RAM914は、揮発性メモリの一例である。ROM913、FDD904、CDD905、磁気ディスク装置920は、不揮発性メモリの一例である。これらは、記憶装置あるいは記憶部の一例である。
通信ボード915は、FAX機932、電話器931、LAN942等に接続されている。
例えば、通信ボード915、K/B902、スキャナ装置907、FDD904などは、入力部の一例である。
また、例えば、通信ボード915、CRT表示装置901などは、出力部の一例である。
ここで、通信ボード915は、LAN942に限らず、直接、インターネット940、或いはISDN等のWAN(ワイドエリアネットワーク)に接続されていても構わない。直接、インターネット940、或いはISDN等のWANに接続されている場合、解析支援装置100は、インターネット940、或いはISDN等のWANに接続され、ゲートウェイ941は不用となる。
FIG. 2 shows an example of the internal configuration of the analysis support apparatus 100.
2, the analysis support apparatus 100 includes a CPU (Central Processing Unit) 911 that executes a program. The
The
The
For example, the
Further, for example, the
Here, the
磁気ディスク装置920には、オペレーティングシステム(OS)921、ウィンドウシステム922、プログラム群923、ファイル群924が記憶されている。プログラム群923は、CPU911、OS921、ウィンドウシステム922により実行される。
上記プログラム群923には、以下に述べる実施の形態の説明において「〜部」として説明する機能を実行するプログラムが記憶されている。プログラムは、CPU911により読み出され実行される。
The
The
ファイル群924には、以下に述べる実施の形態の説明において、「〜の判定結果」、「〜の計算結果」、「〜の処理結果」として説明するものが、「〜ファイル」として記憶されている。
また、以下に述べる実施の形態の説明において説明するフローチャートの矢印の部分は主としてデータの入出力を示し、そのデータの入出力のためにデータは、磁気ディスク装置920、FD(Flexible Disk)、光ディスク、CD(コンパクトディスク)、MD(ミニディスク)、DVD(Digital Versatile Disk)等のその他の記録媒体に記録される。あるいは、信号線やその他の伝送媒体により伝送される。
In the
In addition, the arrow portion of the flowchart described in the description of the embodiment described below mainly indicates input / output of data, and for the input / output of the data, the data is a
また、以下に述べる実施の形態の説明において「〜部」として説明するものは、ROM913に記憶されたファームウェアで実現されていても構わない。或いは、ソフトウェアのみ、或いは、ハードウェアのみ、或いは、ソフトウェアとハードウェアとの組み合わせ、さらには、ファームウェアとの組み合わせで実施されても構わない。
In addition, what is described as “unit” in the description of the embodiment described below may be realized by firmware stored in the
また、以下に述べる実施の形態を実施するプログラムは、また、磁気ディスク装置920、FD(Flexible Disk)、光ディスク、CD(コンパクトディスク)、MD(ミニディスク)、DVD(Digital Versatile Disk)等のその他の記録媒体による記録装置を用いて記憶されても構わない。
The program for carrying out the embodiment described below is also a
図3は、解析の対象であるエレベータ200(解析対象装置の一例)の内部構成を示す。また、エレベータ200の制御部210が実行するソフトウェア511の開発過程を概念的に示している。
この例では、解析対象装置として、エレベータを例にとって説明するが、およそソフトウェアによって制御される装置であれば、何でも構わない。
エレベータ200は、実行可能なソフトウェアを実行する制御部210、制御部210と制御信号で結ばれた制御対象部220、解析支援装置100を接続するための接続部230などから成る。
制御対象部220に備えられた回転数センサー221、位置センサー222、積載重量センサー223、行き先ボタン224、呼出しボタン225等の情報収集部は、外部から情報を収集し、制御信号により、制御部210に伝える。
制御部210は、磁気ディスク装置240に記憶されたソフトウェア511を実行し、制御信号を出す。
制御信号は、駆動モータ226、現在階表示器227、到着表示灯228等の動作部に伝えられ、所定の動作をする。
FIG. 3 shows an internal configuration of an elevator 200 (an example of an analysis target apparatus) that is an analysis target. Moreover, the development process of the
In this example, an elevator will be described as an example of the analysis target device, but any device can be used as long as the device is controlled by software.
The
Information collection units such as a
The
The control signal is transmitted to operation units such as the
これらの制御信号は、制御部から見ると、所定のアドレスが割り付けられており、ROM(リードオンリーメモリ)やRAM(ランダムアクセスメモリ)に対するのと同じように書込み・読出しが可能である。 When viewed from the control unit, these control signals are assigned predetermined addresses, and can be written and read in the same manner as for a ROM (Read Only Memory) or a RAM (Random Access Memory).
制御部で実行されているソフトウェア511は、開発段階においてC言語で書かれたソースコードをコンパイルして得られた機械語によって記述されている。Cコンパイラ装置300がソースコード501をコンパイルして作成し、エレベータ200の磁気ディスク装置240が記憶する。
このとき、各制御信号に割り振られたアドレスは、コンパイル時に装置情報521としてCコンパイラ装置300に与えられており、Cコンパイラ装置300は、それに基づいて、制御信号を記述した変数を、所定のアドレスに変換する。
装置情報521には、その他に、制御部210が使用できるRAM251のアドレス等、ソースコードを制御部210で実行できるソフトウェアにコンパイルするのに必要な情報が含まれている。
なお、ソースコードはC言語で書かれているものに限らず、FORTRAN(フォートラン)、COBOL(コボル)、BASIC(ベーシック)などの言語で書かれていてもよいし、アセンブリ言語で書かれたものをアセンブルしてもよい。また、スクリプト言語で書かれたソースコードを制御部210がインタプリトしながら実行する形でも構わない。
The
At this time, the address assigned to each control signal is given to the
In addition, the
The source code is not limited to the one written in C language, but may be written in a language such as FORTRAN, COBOL, BASIC (basic), or the like. May be assembled. Alternatively, the
Cコンパイラ300は、コンパイルしたソフトウェア511のほか、ソースコードと機械語のアドレスとの対応を示すアドレス対応関係512、ソースコードにおいて記述されている変数と、それに対応するRAM上のアドレスとの対応を示す変数記憶対応関係513等も出力している。
アドレス対応関係512は、解析支援装置100のアドレス対応関係記憶部152が記憶する。同様に、変数記憶対応関係513は、記憶対応関係記憶部153が記憶する。
In addition to the compiled
The
また、同じソースコード501は、ソースコード解析装置400が解析を行う。ソースコード解析装置400は、ソースコード解析情報531として、例えば、以下のような情報を出力する。
関数の定義位置、戻り値、引数、使用している広域変数、局所変数、マクロ、呼び出している関数、呼び出されている関数、関数のプログラム図の情報を含む関数情報。
広域変数の定義位置、型、使用されている位置の情報を含む広域変数情報。
局所変数の定義位置、型、使用されている位置の情報を含む局所変数情報。
引数の定義位置、型、使用されている位置の情報を含む引数情報。
型の定義位置、定義の実体、使用されている位置の情報を含む型情報。
マクロの定義、使用されている位置の情報を含むマクロ情報。
定数の使用されている位置の情報を含む定数情報。
関数スコープの中での広域変数の依存関係を含む広域変数依存関係情報。
また、変数対応関係532として、制御信号を記述した変数とその変数によって記述された制御信号との対応を示す情報を出力する。
ソースコード501及びソースコード解析情報531は、ソースコード情報として解析支援装置100のソースコード情報記憶部151が記憶する。また、変数対応関係532は、記述対応関係記憶部154が記憶する。
Further, the source
Function information including function definition position, return value, argument, global variable used, local variable, macro, calling function, called function, function program diagram information.
Global variable information, including global variable definition position, type, and location information used.
Local variable information, including local variable definition location, type, and location information used.
Argument information including information on the argument definition position, type, and position used.
Type information including type definition location, definition entity, and location information used.
Macro information, including macro definition and location information used.
Constant information that contains information about where the constant is used.
Global variable dependency information including global variable dependency in function scope.
Further, as the
The
この他に、エレベータ200の回路図の情報である回路図情報551は回路図情報記憶部155が記憶する。
回路図情報551には、例えば、回路図のイメージデータあるいは回路図のCAD(Computer aided design:コンピュータ支援設計)データ等、回路図面そのものに関する情報のほか、装置のブロック構成や、各信号線の名称等の情報も含まれている。
In addition, the circuit diagram
The
また、エレベータ200における制御信号とその制御信号に対応する回路部分を示す回路情報との対応関係を示す制御対応関係561は制御対応関係記憶部156が記憶する。
制御対応関係561には、例えば、エレベータ200の情報収集部に対応する回路部分を示す回路情報と、その情報収集部が収集した情報を制御部210に伝えるための制御信号との対応を示す情報収集信号対応関係や、エレベータ200の動作部に対応する回路部分を示す回路情報と、その動作部を動作させるために制御部から伝えられる制御信号との対応を示す動作信号対応関係などがある。
例えば、回転数センサー221は、駆動モータ226の回転数を検知し、その情報を制御信号として制御部に伝える。したがって、回転数センサー221が検知した回転数を示す制御信号は、回路情報のうち、回転数センサー221を示す回路情報と対応している。
Further, the control correspondence
In the
For example, the
これら解析支援装置100の各記憶部は、解析支援装置100の磁気ディスク装置920の中に、これらの情報を記憶する。
これらの情報は、通常電子データの形で出力されるので、これをフレキシブルディスクに記憶し、解析支援装置100に読み込ませる。あるいは、インターネット等に接続されたサーバーに記憶し、必要に応じて、解析支援装置100がダウンロードしてもよい。更に、解析対象装置の種別を入力すると、解析支援装置100が自動的に読み込む構成としてもよい。
Each storage unit of the analysis support apparatus 100 stores such information in the
Since these pieces of information are usually output in the form of electronic data, they are stored on a flexible disk and read by the analysis support apparatus 100. Alternatively, it may be stored in a server connected to the Internet or the like and downloaded by the analysis support apparatus 100 as necessary. Furthermore, the analysis support apparatus 100 may be configured to automatically read when the type of the analysis target apparatus is input.
図4は、解析支援装置100のうち表示部に関連する部分を示す。
解析支援装置100には大きく分けて3つの表示部がある。
FIG. 4 shows a part related to the display unit in the analysis support apparatus 100.
The analysis support apparatus 100 is roughly divided into three display units.
制御信号表示部111は、エレベータ200内の制御信号名及び制御信号の内容をCRT(Cathode−Ray Tube:陰極線管)901に表示する。制御信号の内容は、制御信号取得部141がエレベータ200の接続部230と通信して、取得する。しかし、エレベータ200の接続部230を介して、直接、制御信号を伝える信号線に接続し、取得してもよい。
The control
ソースコード情報表示部112は、ソースコード情報記憶部151が記憶するソースコード情報をCRTに表示する。ソースコード情報には、ソースコード501やソースコード解析情報531等がある。
図5及び図6は、ソースコード情報表示部112が表示するソースコード情報の一例を示す。
The source code
5 and 6 show examples of source code information displayed by the source code
図5は、ソースコード情報のうち、関数の定義位置、戻り値、引数、使用しているグローバル変数(広域変数)、使用しているローカル変数(局所変数)、使用しているマクロ、呼び出している関数、呼び出されている関数などを含む関数情報と、広域変数の定義位置、型、使用されている位置などを含む広域変数情報を表示した例である。この例では、ソースコード情報記憶部151がHTML(Hypertext Markup Language:ハイパーテキストマークアップランゲージ)形式でソースコード情報を記憶し、ソースコード情報表示部112が表示形式に変換して表示する。しかし、ソースコード情報記憶部151が表示されるイメージデータを記憶し、そのまま表示する構成でも構わないし、データベースとして記憶し、表示形式に変換して表示する構成でも構わない。
5 shows the source code information, function definition position, return value, argument, used global variable (global variable), used local variable (local variable), used macro, call The function information including the function being called, the function being called, and the like, and the global variable information including the definition position, type, and used position of the global variable are displayed. In this example, the source code
また、図6は、ソースコード情報のうち、プログラムの制御の流れを図形化したチャート図形情報を表示した例である。この例では、HCPチャート(Hierarchical and Compact description chart:階層的簡略記述チャート)を用いているが、フローチャートを用いても構わないし、SPD(Structured Programming Diagram:構造化プログラミング図)チャートやNSチャート(Nassi−Shneiderman chart:ナシ・シュナイダーマンチャート)など他の構造化チャートを用いても構わない。あるいは、状態遷移図などを用いても構わない。 FIG. 6 is an example in which chart graphic information obtained by graphicizing the control flow of the program is displayed in the source code information. In this example, an HCP chart (Hierarchical and Compact description chart) is used, but a flow chart may be used, and an SPD (Structured Programming Diagram) chart or an NS chart (Nassi chart). -Other structured charts such as (Shneiderman chart) may also be used. Alternatively, a state transition diagram or the like may be used.
回路図情報表示部113は、回路図情報記憶部155が記憶する回路図情報をCRT901に表示する。
The circuit diagram
例えば、エレベータ200が故障したとする。修理担当者がエレベータ設置場所に派遣され、故障個所の探索を始める。
修理担当者は、解析支援装置100をエレベータ200に接続して、制御信号を調べる。
ここで、正常な制御信号が制御部210から駆動モータ226などの動作部に送られているにもかかわらず、それによって動作するはずの動作部が動作しないのであれば、その動作部が故障していることがわかる。
また、回転数センサー221などの情報収集部から制御部210に送られる制御信号が異常値であれば、その情報収集部が故障していることがわかる。
For example, assume that the
The person in charge of repair connects the analysis support apparatus 100 to the
Here, if a normal control signal is sent from the
Further, if the control signal sent from the information collecting unit such as the
このように、解析支援装置100のCRT901には、制御信号の内容とともに、エレベータの回路図及び制御部で実行されているソフトウェアのソースコード情報が表示されているので、どのような制御信号が出ていれば正常で、どのような制御信号が出ていれば異常なのかを理解することが容易になる。
As described above, the
更に、ソースコード情報として、ソースコードをそのまま表示するだけでなく、ソースコードを解析し、その結果得られる情報を様々な形で表示することにより、修理担当者がソースコードを記述した言語に精通していない場合であっても、制御部210が実行しているソフトウェアの処理内容を理解することが容易になる。
Furthermore, as source code information, not only the source code is displayed as it is, but also the source code is analyzed, and the information obtained as a result is displayed in various forms, so that repair personnel are familiar with the language in which the source code is written. Even if it is not, it becomes easy to understand the processing contents of the software executed by the
このように、解析対象装置の制御信号についての情報、解析対象装置の制御部が実行しているソフトウェアについての情報及び解析対象装置の回路図についての情報をCRT901に表示することにより、解析対象装置の解析の効率を高めることができる。
In this way, by displaying information about the control signal of the analysis target device, information about the software executed by the control unit of the analysis target device, and information about the circuit diagram of the analysis target device on the
実施の形態2.
実施の形態2を図1〜図8を用いて説明する。
この実施の形態における解析支援装置100の全体構成は、実施の形態1で説明した構成と同じ構成である。
Embodiment 2. FIG.
A second embodiment will be described with reference to FIGS.
The overall configuration of the analysis support apparatus 100 in this embodiment is the same as the configuration described in the first embodiment.
実施の形態1で挙げた例において、解析支援装置100のCRT901に表示される情報が、必要な情報だけに絞られていれば、修理担当者が故障個所を発見する効率が良くなる。
例えば、駆動モータ226が動かないという症状が出ているのであれば、制御部210から駆動モータ226に対して送られる制御信号を調べる必要がある。
この実施の形態では、特定の制御信号に着目し、着目した着目制御信号に関連する部分を強調して表示する。
まず、着目制御信号判別部121が特定の制御信号を着目制御信号として判別する。
制御信号表示部111は、着目制御信号の名称及び着目制御信号の内容をCRT901に強調して表示する。
In the example described in the first embodiment, if the information displayed on the
For example, if there is a symptom that the
In this embodiment, attention is paid to a specific control signal, and a portion related to the focused control signal is highlighted and displayed.
First, the target control
The control
ここで、「強調して表示する」とは、当該部分の色を変えて表示する、当該部分の背景の色を変えて表示する、当該部分の線を太くして表示する、当該部分を大きく表示する、当該部分を画面中央に表示するなどして、当該部分を目立つように表示することをいう。また、当該部分以外の部分の色を変えて表示する、当該部分以外の部分の背景の色を変えて表示する、当該部分以外の部分の線を細くして表示する、当該部分以外の部分を小さく表示する、当該部分以外の部分を画面の端に表示する、当該部分以外の部分の細部を省略して表示する、当該部分以外の部分を表示しないなどして、当該部分を目立つように表示することも含まれる。 Here, “display with emphasis” means to display by changing the color of the part, to display by changing the color of the background of the part, to display the part with a thick line, or to enlarge the part. This means displaying the part in a conspicuous manner by displaying the part in the center of the screen. Also, change the color of the part other than the part to be displayed, change the background color of the part other than the part to display, display the line of the part other than the part to be thin, and display the part other than the part. Display a small part, display a part other than the part at the edge of the screen, omit the details of the part other than the part, display no part other than the part, etc. To include.
制御信号がソースコードの中でどのように記述されているかについての情報である記述対応関係は、記述対応関係記憶部154が記憶している。
着目ソースコード情報判別部122は、記述対応関係記憶部154から記述対応関係を読出し、着目制御信号に対応するソースコード情報を選らび出す。これを着目ソースコード情報としてソースコード情報表示部112に送ると、ソースコード情報表示部112は着目ソースコード情報をCRT901に強調して表示する。
A description
The target source code
図7は、ソースコード501の中で制御信号を記述した一例である。
ここでは、制御信号はそれに対応する広域変数という形で記述されている。
例えば、駆動モータ226の回転数を制御するために制御部から伝えられる制御信号は、「motor_speed」という変数で記述されており、変数「motor_speed」に値を代入すると、その値が制御信号として駆動モータ226に送られ、駆動モータ226は与えられた回転数になるように動作する。
したがって、駆動モータ226を駆動する制御信号に着目した場合、ソースコード501の中で変数「motor_speed」が使われている部分が、着目制御信号に対応する部分となる。
FIG. 7 is an example in which control signals are described in the
Here, the control signal is described in the form of a corresponding global variable.
For example, a control signal transmitted from the control unit to control the rotation speed of the
Therefore, when attention is paid to the control signal for driving the
図8において、変数「global_in」及び変数「global_out」はソースコードのなかで制御信号を記述したものである。ここでは、すべての制御信号を着目制御信号としている。
ソースコード情報表示部112は、ここで、ソースコード情報のうちソフトウェアの制御の流れを図形化したチャート図形情報を表示している。このとき、チャート図形情報とともに、それに対応するソースコードも表示しているが、着目制御信号を記述した変数「global_in」及び「global_out」が表れる行はそのまま表示しているのに対し、それ以外の行はコメントのみとし、細部を省略して表示している。これにより、着目制御信号を記述した変数の表れる行が目立つようになる。
In FIG. 8, a variable “global_in” and a variable “global_out” describe control signals in the source code. Here, all the control signals are the target control signals.
Here, the source code
制御信号が回路図のどの部分と対応するかについての情報である制御対応関係は、制御対応関係記憶部156が記憶している。
着目回路部分判別部123は、制御対応関係記憶部156から制御対応関係を読出し、着目制御信号に対応する回路図情報を選び出す。これを着目回路部分として回路図情報表示部113に送ると、回路図情報表示部113は着目回路図情報をCRT901に強調して表示する。
例えば、駆動モータ226を駆動する制御信号に着目した場合には、駆動モータ226に対応する回路図情報が着目回路部分となる。また、回転数センサー221から送られる駆動モータ226の回転数を示す制御信号に着目した場合には、回転数センサー221に対応する回路図情報が着目回路部分となる。
A control correspondence relationship, which is information on which part of the circuit diagram the control signal corresponds to, is stored in the control correspondence
The target circuit
For example, when attention is paid to a control signal for driving the
例えば、駆動モータ226が動かないという症状が出ているのであれば、制御部210から駆動モータ226に対して送られる制御信号を着目制御信号とする。すると、その制御信号に関連する情報が強調して表示されるので、修理担当者が他の不必要な情報に気をとられることがなくなり、故障個所を容易に発見できるようになる。
For example, if there is a symptom that the
このように、CRT901に表示される情報のうち、着目制御信号に関連する情報を強調して表示することにより、解析対象装置の解析の効率を高めることができる。
Thus, by highlighting and displaying information related to the target control signal among the information displayed on the
実施の形態3.
実施の形態3を図1〜図9を用いて説明する。
この実施の形態における解析支援装置100の全体構成は、実施の形態1で説明した構成に、図9の構成を加えたものである。
図9は、この実施の形態における解析支援装置100の一部を示す。
Embodiment 3 FIG.
Embodiment 3 will be described with reference to FIGS.
The overall configuration of the analysis support apparatus 100 in this embodiment is obtained by adding the configuration of FIG. 9 to the configuration described in the first embodiment.
FIG. 9 shows a part of the analysis support apparatus 100 in this embodiment.
ここでは、着目制御信号判別部121がどのようにして着目制御信号を判別するかについて説明する。
Here, how the target control
実施の形態2で挙げた例において、修理担当者が、駆動モータ226を駆動する制御信号を調べたいと考えたとする。
修理担当者が注目したい制御信号の名前を知っている場合、制御信号表示部111がCRT901に表示した制御信号のなかから注目したい制御信号を選択し、例えば、マウス903でCRT901に表示されているマウスポインタを動かしてその制御信号をクリックする。あるいは、キーボード902のカーソルキーでCRT901に表示されているカーソルを動かしてその制御信号に合わせ、エンターキーを押す。
選択制御信号入力部131は、修理担当者によるこれらの操作を監視して、修理担当者が選択した制御信号を選択制御信号とし、着目制御信号判別部121に送る。
この場合、着目制御信号判別部121は、選択制御信号をそのまま着目制御信号として判別する。
In the example given in the second embodiment, it is assumed that the person in charge of repair wants to examine a control signal for driving the
When the person in charge of repair knows the name of the control signal to be noticed, the control
The selection control
In this case, the target control
これにより、修理担当者が注目したい制御信号を選択することで、着目制御信号を容易に決定することができる。着目制御信号に関連する情報を強調して表示するので、修理担当者が他の不必要な情報に気をとられることがなくなり、故障個所を容易に発見できるようになる。 Accordingly, the target control signal can be easily determined by selecting the control signal that the repair person wants to pay attention to. Since information related to the target control signal is highlighted and displayed, the person in charge of repair does not have to pay attention to other unnecessary information, and can easily find the fault location.
修理担当者が駆動モータ226を駆動する制御信号の名前を知らないが、回路図を見ればどの部分が駆動モータ226に対応する部分かわかる場合もある。その場合、修理担当者は、回路図情報表示部113がCRT901に表示した回路図情報のなかから駆動モータ226に対応する部分を選択し、マウス903でクリックする等の操作を行う。
選択回路部分入力部133は、修理担当者によるこれらの操作を監視して、修理担当者が選択した回路部分を選択回路部分とし、着目制御信号判別部121に送る。
制御信号が回路図のどの部分と対応するかについての情報である制御対応関係は、制御対応関係記憶部156が記憶している。
着目制御信号判別部121は、制御対応関係記憶部156から制御対応関係を読出し、選択回路部分に対応する制御信号を選び出して、これを着目制御信号として判別する。
Although the person in charge of repair does not know the name of the control signal for driving the
The selection circuit
A control correspondence relationship, which is information on which part of the circuit diagram the control signal corresponds to, is stored in the control correspondence
The target control
これにより、修理担当者が注目したい制御信号を知らない場合でも、回路図情報から、故障の症状が出ている個所に対応する部分を選択することで、着目制御信号を容易に決定することができる。着目制御信号に関連する情報を強調して表示するので、修理担当者が他の不必要な情報に気をとられることがなくなり、故障個所を容易に発見できるようになる。 This makes it possible to easily determine the control signal of interest by selecting the part corresponding to the location where the symptom of the failure appears from the circuit diagram information, even if the repair person does not know the control signal of interest. it can. Since information related to the target control signal is highlighted and displayed, the person in charge of repair does not have to pay attention to other unnecessary information, and can easily find the fault location.
修理担当者がソースコード情報表示部112がCRT901に表示したソースコード情報を眺めているうちに、怪しい部分を発見する場合もある。その場合、修理担当者は、ソースコード情報表示部112がCRT901に表示したソースコード情報のなかから怪しい部分を選択し、マウス903でクリックする等の操作を行う。
選択ソースコード情報入力部132は、修理担当者によるこれらの操作を監視して、修理担当者が選択したソースコード情報を選択ソースコード情報とし、着目制御信号判別部121に送る。
While the person in charge of repair looks at the source code information displayed on the
The selected source code
制御信号がソースコードの中でどのように記述されているかについての情報である記述対応関係は、記述対応関係記憶部154が記憶している。
着目制御信号判別部121は、記述対応関係記憶部154から記述対応関係を読出し、選択ソースコード情報に対応する制御信号を選び出して、これを着目制御信号として判別する。
A description
The target control
例えば、ソースコード情報表示部112がCRT901に図5のソースコード情報を表示しているときに、修理担当者が表示されている変数名をクリックしたとする。
着目制御信号判別部121は、記述対応関係記憶部154が記憶している記述対応関係のうち、ソースコード501のなかで制御信号を記述した変数とその変数によって記述された制御信号との対応を示す変数対応関係を読出し、選択された変数によって記述された制御信号を選び出して、それを着目制御信号として判別する。
For example, when the source code
The target control
また、ソースコード情報表示部112がCRT901に図6のソースコード情報を表示しているときに、修理担当者がチャート図形の一部をクリックしたとする。
着目制御信号判別部121は、記述対応関係記憶部154が記憶している記述対応関係のうち、ソースコード501のなかで変数が使用されている位置についての情報を読出し、選択された部分で使用されている変数を割り出す。
次に、記述対応関係記憶部154が記憶している記述対応関係のうち変数対応関係を読出し、選択された部分で使用されている変数によって記述された制御信号を選び出して、それを着目制御信号として判別する。
Further, it is assumed that the repair person clicks a part of the chart figure while the source code
The target control
Next, the variable correspondence among the description correspondence stored in the description
これにより、修理担当者がソースコード情報から怪しい部分を発見した場合でも、その部分を選択することで、着目制御信号を容易に決定することができる。着目制御信号に関連する情報を強調して表示するので、修理担当者が他の不必要な情報に気をとられることがなくなり、故障個所を容易に発見できるようになる。 Thus, even when the repair person finds a suspicious part from the source code information, the target control signal can be easily determined by selecting the part. Since information related to the target control signal is highlighted and displayed, the person in charge of repair does not have to pay attention to other unnecessary information, and can easily find the fault location.
制御信号が正常な場合にどのような値を示すかがあらかじめわかっている場合には、異常制御信号判別部124が正常な制御信号の範囲を記憶しておき、制御信号取得部141が取得した制御信号の値がその範囲から逸脱したら、異常制御信号判別部124がその制御信号を異常制御信号として判別する。
あるいは、修理担当者に正常な制御信号の範囲を入力させて、その範囲を逸脱したら、異常制御信号判別部124がその制御信号を異常制御信号として判別することとしてもよい。
着目制御信号判別部121は、異常制御信号判別部124が判別した異常制御信号をそのまま着目制御信号として判別する。
When it is known in advance what value the control signal shows when normal, the abnormal control
Alternatively, if the repair person in charge inputs a normal control signal range and deviates from the range, the abnormal control
The target control
これにより、異常な制御信号の発見を自動化することができ、着目制御信号を容易に決定することができる。着目制御信号に関連する情報を強調して表示するので、修理担当者が他の不必要な情報に気をとられることがなくなり、故障個所を容易に発見できるようになる。
このように、着目制御信号を容易に決定できることにより、解析対象装置の解析の効率を高めることができる。
Thereby, the discovery of an abnormal control signal can be automated, and the target control signal can be easily determined. Since information related to the target control signal is highlighted and displayed, the person in charge of repair does not have to pay attention to other unnecessary information, and can easily find the fault location.
As described above, since the target control signal can be easily determined, the analysis efficiency of the analysis target device can be increased.
実施の形態4.
実施の形態4を図1〜図13を用いて説明する。
この実施の形態における解析支援装置100の全体構成は、実施の形態3で説明した構成と同じ構成である。
A fourth embodiment will be described with reference to FIGS.
The overall configuration of the analysis support apparatus 100 in this embodiment is the same as the configuration described in the third embodiment.
エレベータ200の制御部210は、ソフトウェア511の実行により、入力された制御信号に基づいて複雑な計算を行っている。そして、その結果に基づいて制御信号を出力する。
したがって、制御信号同士の関係は非常に複雑に絡み合っている。
The
Therefore, the relationship between the control signals is very complicated.
修理担当者が故障個所を探索する場合、通常は故障の症状が出ている個所から探索を始める。例えば、駆動モータ226が動かないのであれば、駆動モータ226を駆動する制御信号を調べる。
ここで、駆動モータ226を駆動する制御信号が正常であるにもかかわらず、駆動モータ226が動かないのであれば、駆動モータ226が故障していることがわかる。
しかし、そもそも駆動モータ226を駆動する制御信号が異常値なのであれば、駆動モータ226が動かないのは当然であり、他の部分が故障していることになる。
そこで、修理担当者は、駆動モータ226を駆動する制御信号が異常値を示す原因を探索することになる。
When a person in charge of repair searches for a faulty part, the search is usually started from a part where a symptom of the fault appears. For example, if the
Here, if the
However, if the control signal for driving the
Therefore, the person in charge of repair searches for the cause that the control signal for driving the
しかし、この探索は容易ではない。エレベータ200の制御部210が実行しているソフトウェア511がどのような処理を行っているかを理解する必要があり、修理担当者がそのソフトウェア511のソースコード501を記述した言語に精通しているとは限らないからである。
However, this search is not easy. It is necessary to understand what kind of processing the
修理担当者は、制御信号が異常値を示す原因を探索しようとしているので、エレベータ200の制御部210におけるソフトウェア511の実行により、異常値を示している制御信号に影響を与えている制御信号がどれかを知りたいはずである。
Since the person in charge of the repair is trying to search for the cause of the control signal indicating an abnormal value, the control signal affecting the control signal indicating the abnormal value is detected by the execution of the
そこで、この実施の形態では、着目制御信号判別部121が判別した着目制御信号に基づき、依存制御信号判別部125がその着目制御信号と依存関係のある制御信号を依存制御信号として判別し、着目制御信号判別部121が、その依存制御信号を着目制御信号として判別する。
Therefore, in this embodiment, based on the target control signal determined by the target control
ここで、依存関係とは、ソフトウェア511を実行している制御部210に入力される制御信号が、制御部210から出力される制御信号に対して影響を与えるという関係にある2つの制御信号の間の関係をいう。
図10〜図13は、制御部210が実行しているソフトウェア511のソースコード501の一例である。
Here, the dependency relationship is a relationship between two control signals having a relationship in which a control signal input to the
10 to 13 are examples of the
図10において、変数「g_in1」及び変数「g_out1」はともに、ソースコード501のなかで制御信号を記述したものである。
関数「func_X」のなかで変数「g_in1」の値が変数「g_out1」に代入されている。したがって、関数「func_X」が実行されるとき、変数「g_in1」の値が変わっていれば、変数「g_out1」の値も変わる。したがって、変数「g_in1」によって記述されている制御信号の値が変われば、変数「g_out1」によって記述されている制御信号の値も変わる。すなわち、この2つの制御信号の間には、代入による依存関係がある。
In FIG. 10, a variable “g_in1” and a variable “g_out1” both describe control signals in the
In the function “func_X”, the value of the variable “g_in1” is assigned to the variable “g_out1”. Therefore, when the function “func_X” is executed, if the value of the variable “g_in1” changes, the value of the variable “g_out1” also changes. Therefore, if the value of the control signal described by the variable “g_in1” changes, the value of the control signal described by the variable “g_out1” also changes. That is, there is a dependency relationship between the two control signals by substitution.
図11において、変数「g_in2」及び変数「g_out2」はともに、ソースコード501のなかで制御信号を記述したものである。しかし、変数「l_cyuukan1」は、一時的に値を記憶するために設けられているもので、制御信号とは無関係である。
関数「func_X」のなかで変数「g_in2」と変数「g_out2」は、一つの代入式の右辺と左辺に記述されているのではないので、関係がないようにも見える。しかし、実際には、変数「g_in2」の値が変数「l_chuukan1」に代入され、変数「l_chuukan1」の値が変数「g_out2」に代入されている。したがって、変数「g_in2」の値が変わっていれば、変数「l_cyuukan1」の値が変わり、その結果、変数「g_out2」の値も変わる。すなわち、変数「g_in2」によって記述されている制御信号と、変数「g_out2」によって記述されている制御信号との間には、やはり代入による依存関係がある。
In FIG. 11, a variable “g_in2” and a variable “g_out2” both describe control signals in the
In the function “func_X”, the variable “g_in2” and the variable “g_out2” are not described on the right side and the left side of one assignment expression, and thus seem to have no relation. However, in practice, the value of the variable “g_in2” is substituted into the variable “l_chukan1”, and the value of the variable “l_chukan1” is substituted into the variable “g_out2”. Therefore, if the value of the variable “g_in2” is changed, the value of the variable “l_cyukan1” is changed, and as a result, the value of the variable “g_out2” is also changed. That is, there is still a dependency relationship between the control signal described by the variable “g_in2” and the control signal described by the variable “g_out2”.
図12において、変数「g_in3」及び変数「g_out3」はともに、ソースコード501のなかで制御信号を記述したものである。
関数「func_X」のなかで、変数「g_in3」の値が0と等しいかによってソフトウェアの実行経路が変わる。ソフトウェアの実行経路が変わることにより、変数「g_out3」に代入される値が変わる。したがって、変数「g_in3」の値が変われば、変数「g_out3」の値も変わる可能性がある。すなわち、変数「g_in3」によって記述されている制御信号と、変数「g_out3」によって記述されている制御信号との間には、条件分岐による依存関係がある。
In FIG. 12, a variable “g_in3” and a variable “g_out3” both describe a control signal in the
In the function “func_X”, the execution path of the software changes depending on whether the value of the variable “g_in3” is equal to zero. The value assigned to the variable “g_out3” changes as the execution path of the software changes. Therefore, if the value of the variable “g_in3” changes, the value of the variable “g_out3” may also change. That is, there is a dependency relationship due to conditional branching between the control signal described by the variable “g_in3” and the control signal described by the variable “g_out3”.
図13において、変数「g_in4」及び変数「g_out4」はともに、ソースコード501のなかで制御信号を記述したものである。しかし、変数「l_cyuukan2」は、一時的に値を記憶するために設けられているもので、制御信号とは無関係である。
関数「func_X」のなかで、変数「g_in3」の値が変数「l_cyuukan2」に代入される。次に、変数「l_cyuukan2」の値が0と等しいかによってソフトウェアの実行経路が変わる。ソフトウェアの実行経路が変わることにより、変数「g_out4」に代入される値が変わる。したがって、変数「g_in4」の値が変われば、変数「g_out4」の値も変わる可能性がある。すなわち、変数「g_in4」によって記述されている制御信号と、変数「g_out4」によって記述されている制御信号との間にも、条件分岐による依存関係がある。
In FIG. 13, a variable “g_in4” and a variable “g_out4” both describe control signals in the
In the function “func_X”, the value of the variable “g_in3” is substituted into the variable “l_cyukan2”. Next, the execution path of the software changes depending on whether the value of the variable “l_cyukan2” is equal to zero. The value assigned to the variable “g_out4” changes as the execution path of the software changes. Therefore, if the value of the variable “g_in4” changes, the value of the variable “g_out4” may also change. In other words, there is a dependency relationship between the control signal described by the variable “g_in4” and the control signal described by the variable “g_out4” due to conditional branching.
このような依存関係に基づけば、ある制御信号が異常値を示す原因となっている制御信号を絞り込むことが可能である。すなわち、異常値を示している制御信号と依存関係のある制御信号のどれかに原因となっている制御信号があるはずである。その制御信号と依存関係のない制御信号は無関係である。
したがって、修理担当者は、異常値を示している制御信号と依存関係のある制御信号だけを探索すればよい。
Based on such dependency relationships, it is possible to narrow down the control signals that cause a certain control signal to show an abnormal value. That is, there should be a control signal that is caused by one of the control signals that have a dependency relationship with the control signal that indicates an abnormal value. A control signal that does not depend on the control signal is irrelevant.
Therefore, the person in charge of repair need only search for a control signal having a dependency relationship with a control signal indicating an abnormal value.
そこで、この実施の形態では、着目制御信号と依存関係のある制御信号も、着目制御信号とすることにより、その制御信号に関連する情報を強調して表示する。修理担当者が他の不必要な情報に気をとられることがなくなり、故障個所を容易に発見できるようになる。
また、着目制御信号が複数ある場合には、2つ以上の着目制御信号と依存関係のある制御信号を特に注目すべき制御信号として、それに関連する情報を更に強調して表示することとしてもよい。2つ以上の症状が同時に出ている場合、その原因となっている故障は、一つであることが多い。したがって、これにより、探索すべき制御信号を更に絞り込むことができる。
Therefore, in this embodiment, a control signal having a dependency relationship with the target control signal is also used as the target control signal, so that information related to the control signal is emphasized and displayed. The repair staff will not be distracted by other unnecessary information, and will be able to easily find the fault location.
In addition, when there are a plurality of target control signals, a control signal having a dependency relationship with two or more target control signals may be used as a control signal to be particularly focused, and information related thereto may be further emphasized and displayed. . When two or more symptoms occur at the same time, the failure that is the cause is often one. Therefore, this makes it possible to further narrow down the control signals to be searched.
あるいは、依存制御信号と依存関係のある制御信号も、更に着目制御信号として、それに関連する情報も強調して表示することとしてもよい。そうすれば、ある制御信号に原因があるとすれば他にも影響が出そうな制御信号に注目することができる。その結果、他の制御信号には影響が出ていないのであれば、修理担当者は、その制御信号が原因ではないのではないかと推測することができる。 Alternatively, a control signal having a dependency relationship with the dependency control signal may be displayed as a target control signal with emphasis on information related thereto. Then, if there is a cause in a certain control signal, it is possible to focus on control signals that are likely to have other effects. As a result, if the other control signals are not affected, the repair person can infer that the control signals may be the cause.
これにより、修理担当者がソースコード501を記述した言語に精通していなくても、探索すべき制御信号を絞り込むことが容易となり、故障個所を容易に発見できるようになる。
As a result, even if the person in charge of repair is not familiar with the language in which the
このように、着目制御信号を容易に絞り込むことができることにより、解析対象装置の解析の効率を高めることができる。 As described above, since the target control signal can be easily narrowed down, the analysis efficiency of the analysis target device can be increased.
実施の形態5.
実施の形態5を図1〜図3及び図14を用いて説明する。
図1〜図3は、この実施の形態における解析支援装置100の構成を示す。図面の説明は、実施の形態1に記載したので、ここでは省略する。
この実施の形態における解析支援装置100は、更に、図14に示す構成を有する。
Embodiment 5. FIG.
A fifth embodiment will be described with reference to FIGS. 1 to 3 and FIG.
1 to 3 show the configuration of the analysis support apparatus 100 according to this embodiment. The description of the drawings has been described in
The analysis support apparatus 100 in this embodiment further has a configuration shown in FIG.
エレベータ200の制御部210は、通常、ソフトウェア511のすべての部分を実行しているわけではない。ソフトウェア511の制御の流れのなかには、いくつかの分岐点及び合流点が存在し、ある条件を満たした場合にのみ、その部分を実行する。
したがって、その条件を満たしていない状態では、ソフトウェア511のなかに実行されない部分が存在することになる。
The
Therefore, when the condition is not satisfied, there is a portion that is not executed in the
すなわち、ソースコード情報表示部112がCRT901に表示するソースコード情報のうち、実際に実行されていない部分に対応するソースコード情報は、表示する必要がない。それどころか、そのようなソースコード情報が表示されていると、修理担当者がその部分に気をとられてしまい、故障個所の発見の効率を悪くする原因にもなり得る。
That is, it is not necessary to display source code information corresponding to a portion that is not actually executed in the source code information displayed on the
そこで、この実施の形態では、実行ソースコード情報判別部161が、エレベータ200の制御部210が実際に実行しているソフトウェアの実行経路を判別し、ソースコード情報記憶部151が記憶しているソースコード情報のうち、その実行経路に関連するソースコード情報を実行ソースコード情報として判別する。ソースコード情報表示部112は、ソースコード情報記憶部151が記憶しているソースコード情報のうち実行ソースコード情報を強調して表示する。
Therefore, in this embodiment, the execution source code
その結果、修理担当者が他の不必要な情報に気をとられることがなくなり、故障個所を容易に発見できるようになる。 As a result, the person in charge of repair does not have to pay attention to other unnecessary information and can easily find the faulty part.
このように、CRT901に表示される情報のうち、実際に実行されている実行経路に関連する情報を強調して表示することにより、解析対象装置の解析の効率を高めることができる。
Thus, by highlighting and displaying information related to the execution path that is actually executed among the information displayed on the
実施の形態6.
実施の形態6を図1〜図3及び図14〜図16を用いて説明する。
この実施の形態における解析支援装置100の全体構成は、実施の形態5で説明した構成と同じである。
A sixth embodiment will be described with reference to FIGS. 1 to 3 and FIGS. 14 to 16.
The overall configuration of the analysis support apparatus 100 in this embodiment is the same as the configuration described in the fifth embodiment.
ここでは、実行ソースコード情報判別部161がどのようにして実行ソースコード情報を判別するかについて説明する。
Here, how the execution source code
図15及び図16は、制御部210が実行しているソフトウェア511のソースコード501の一例及びそれに対応してソースコード情報表示部112がCRT901に表示するチャート図形情報である。この例では、チャート図形情報としてフローチャートを用いている。
図15において、この例のソースコードは制御の流れにより、分岐位置及び合流位置で4つの部分に分割できる。すなわち、関数「func_X」を実行すると、「/* 処理A */」の部分は常に実行されるが、「/* 処理B */」の部分は分岐条件「g_in1>0」が真の場合にのみ実行される。「/* 処理C */」の部分は逆に分岐条件「g_in1>0」が偽の場合にのみ実行される。その後、制御の流れは合流し、「/* 処理D */」の部分は常に実行される。
したがって、「/* 処理B */」と「/* 処理C */」のどちらを実行するかは、分岐条件「g_in1>0」が真かどうかを見れば判別できる。
FIGS. 15 and 16 show an example of the
In FIG. 15, the source code of this example can be divided into four parts at the branch position and the merge position according to the flow of control. That is, when the function “func_X” is executed, the “/ * processing A * /” portion is always executed, but the “/ * processing B * /” portion is executed when the branch condition “g_in1> 0” is true. Only executed. On the contrary, the part of “/ * processing C * /” is executed only when the branch condition “g_in1> 0” is false. Thereafter, the flow of control is merged, and the portion of “/ * Processing D * /” is always executed.
Therefore, whether to execute “/ * processing B * /” or “/ * processing C * /” can be determined by checking whether the branch condition “g_in1> 0” is true.
図15において、変数「g_in1」は、ソースコード501のなかで制御信号を記述したものである。
したがって、変数「g_in1」によって記述されている制御信号の値がわかれば、分岐条件「g_in1>0」が真かどうかがわかり、「/* 処理B */」と「/* 処理C */」のどちらを実行するかも判別できる。
In FIG. 15, a variable “g_in1” describes a control signal in the
Therefore, if the value of the control signal described by the variable “g_in1” is known, it can be determined whether the branch condition “g_in1> 0” is true, and “/ * processing B * /” and “/ * processing C * /”. It is possible to determine which one is executed.
制御信号取得部141が制御信号の内容を取得する。
実行ソースコード情報判別部161は、記述対応関係記憶部154が記憶している変数対応関係532を読出し、変数「g_in1」によって記述されている制御信号の値から、変数「g_in1」の値を求める。
実行ソースコード情報判別部161は、更に、変数「g_in1」の値から、分岐条件「g_in1>0」が真かどうかを求める。以下、分岐条件「g_in1>0」が真だったとして説明する。
実行ソースコード情報判別部161は、分岐条件「g_in1>0」が真だったので、「/* 処理A */」「/* 処理B */」「/* 処理D */」に対応するソースコード情報を実行ソースコード情報として判別する。
ソースコード情報表示部112は、実行ソースコード情報を強調して表示する。図15では、「/* 処理A */」「/* 処理B */」「/* 処理D */」に対応する部分を大きく、かつ、線を太くして表示することで、強調部分が目立つようにしている。
The control
The execution source code
The execution source code
Since the branch condition “g_in1> 0” is true, the execution source code
The source code
このように、制御信号取得部141が取得した制御信号に基づいてエレベータ200の制御部210が実際に実行しているソフトウェア511の実行経路を特定することにより、制御部210の内部情報(例えば、実行アドレスなど)を取得しなくてもよいので、エレベータ200と解析支援装置100の接続のために必要な装置を軽減できる。
In this way, by specifying the execution path of the
図16において、この例のソースコードは制御の流れにより、分岐位置及び合流位置で5つの部分に分割できる。すなわち、必ず実行される部分「/* 処理A */」、変数「g_in2」の値によって、選択的に実行される部分「/* 処理B */」「/* 処理C */」「/* 処理D */」、そのあとで必ず実行される部分「/* 処理E */」である。 In FIG. 16, the source code of this example can be divided into five parts at the branch position and the merge position according to the flow of control. That is, the part “/ * process A * /” that is always executed and the part “/ * process B * /” “/ * process C * /” “/ *” that are selectively executed according to the value of the variable “g_in2”. “Process D * /” and a part “/ * Process E * /” that is always executed after that.
図16において、変数「g_in2」は、ソースコード501のなかで制御信号を記述したものであるが、変数「local」は、一時的に値を記憶するために設けられているもので、制御信号とは無関係である。
In FIG. 16, a variable “g_in2” describes a control signal in the
制御部210が、「/* 処理B */」「/* 処理C */」「/* 処理D */」のうち、どの処理を実行しているかを知るためには、分岐条件を調べる必要がある。
分岐条件「g_in2=0」が真の場合は、「/* 処理B */」が実行される。
分岐条件「g_in2=0」が偽であるが分岐条件「g_in2=local」が真の場合には、「/* 処理C */」が実行される。
上記分岐条件が両方とも偽の場合には、「/* 処理D */」が実行される。
In order for the
When the branch condition “g_in2 = 0” is true, “/ * processing B * /” is executed.
If the branch condition “g_in2 = 0” is false but the branch condition “g_in2 = local” is true, “/ * processing C * /” is executed.
If both of the above branch conditions are false, “/ * process D * /” is executed.
分岐条件「g_in2=0」が真かどうかを知るためには、変数「g_in2」の値を知る必要がある。変数「g_in2」はソースコード501のなかで制御信号を記述したものなので、変数「g_in2」によって記述されている制御信号の値がわかれば、変数「g_in2」の値がわかる。
In order to know whether or not the branch condition “g_in2 = 0” is true, it is necessary to know the value of the variable “g_in2”. Since the variable “g_in2” describes the control signal in the
制御信号取得部141が制御信号の内容を取得する。
実行ソースコード情報判別部161は、記述対応関係記憶部154が記憶している変数対応関係532を読出し、変数「g_in2」によって記述されている制御信号の値から、変数「g_in2」の値を求める。
実行ソースコード情報判別部161は、更に、変数「g_in2」の値から、分岐条件「g_in2=0」が真かどうかを求め、真の場合には、「/* 処理B */」に対応するソースコード情報を実行ソースコード情報として判別する。
The control
The execution source code
The execution source code
分岐条件「g_in2=0」が偽の場合には、分岐条件「g_in2=local」が真かどうかを知る必要がある。そのためには、変数「g_in2」の値だけでなく、変数「local」の値も知らなければならない。
変数「local」はソースコード501のなかで制御信号を記述したものではないので、制御信号取得部141が取得した制御信号の値から、変数「local」の値を知ることはできない。
When the branch condition “g_in2 = 0” is false, it is necessary to know whether the branch condition “g_in2 = local” is true. For this purpose, not only the value of the variable “g_in2” but also the value of the variable “local” must be known.
Since the variable “local” does not describe the control signal in the
変数「local」の値を知るには、エレベータ200の制御部210が実行しているソフトウェア511の処理を解析支援装置100の内部でシミュレートすればよい。
すなわち、エレベータ200の制御部210に入力される制御信号の値は、制御信号取得部141が取得しているので、その値に基づいて制御信号を記述した変数の値を求めることができる。
次に、その値に基づいて他の変数の値を計算している場合には、その計算と同じ計算をして、他の変数の値を求める。
また、それらの変数の値によって、制御の流れが分岐する場合には、計算した変数の値に基づいて分岐条件を満たすかどうかを調べ、次に実行する処理を求める。
このように、エレベータ200の制御部210が実行しているソフトウェア511の処理を、解析支援装置100の内部で模倣することで、変数「local」の値を知ることができる。
In order to know the value of the variable “local”, the processing of the
That is, since the control
Next, when the value of another variable is calculated based on the value, the same calculation as the calculation is performed to obtain the value of the other variable.
Further, when the flow of control branches depending on the values of these variables, it is checked whether the branch condition is satisfied based on the calculated values of the variables, and the process to be executed next is obtained.
Thus, the value of the variable “local” can be known by imitating the processing of the
このように、制御信号取得部141が取得した制御信号だけに基づいてエレベータ200の制御部210が実際に実行しているソフトウェア511の実行経路を特定することにより、制御部210の内部情報(例えば、実行アドレスなど)を取得しなくてもよいので、エレベータ200と解析支援装置100の接続のために必要な装置を軽減できる。
In this way, by specifying the execution path of the
しかし、別のやり方もある。エレベータ200のRAM251は変数「local」の値を記憶している。その内容を取得すれば、変数「local」の値を知ることができる。
エレベータ200のRAM251の記憶内容は、記憶内容取得部142がエレベータ200の接続部230と通信して、取得する。しかし、エレベータ200の接続部230を介して、直接、RAM251に接続し、例えばDMA(Direct Memory Access:ダイレクトメモリアクセス)により取得してもよい。
実行ソースコード情報判別部161は、記憶対応関係記憶部153が記憶している変数記憶対応関係513により、RAM251の記憶内容のうちのどこに変数「local」の値があるかを判別し、変数「local」の値を求める。
But there is another way. The
The storage content of the
The execution source code
ソフトウェア511の処理をシミュレートするやり方の場合、制御信号を取得するタイミングによっては、エレベータ200の制御部210が取得した制御信号の値と異なる値を取得してしまう可能性がある。その結果、シミュレートによる変数「local」の値が実際とは異なり、実際の実行経路に対応しないソースコード情報を、間違って実行ソースコード情報として判別してしまう場合がある。
In the method of simulating the processing of the
しかし、エレベータ200のRAM251の記憶内容を取得することにより、変数「local」の値を求めれば、実際の値と異なる値となることはないので、実行ソースコード情報を間違って判別することはない。
However, if the value of the variable “local” is obtained by acquiring the stored contents of the
このように、エレベータ200のRAM251が記憶した記憶内容を取得する記憶内容取得部142を設けることにより、エレベータ200の制御部210が実際に実行しているソフトウェア511の実行経路を特定できるので、ソフトウェア511の処理をシミュレートする必要がなく、実行ソースコード情報を間違って判別する心配もない。
In this way, by providing the storage
以上によって、分岐条件「g_in2=local」が真だということがわかった場合、実行ソースコード情報判別部161は、常に実行される「/* 処理A */」「/* 処理E */」及び選択的に実行される「/* 処理C */」に対応するソースコード情報を実行ソースコード情報として判別する。
ソースコード情報表示部112は、実行ソースコード情報を強調して表示する。図16では、「/* 処理A */」「/* 処理C */」「/* 処理E */」に対応する部分を大きく、かつ、線を太くして表示するだけでなく、それ以外の部分である「/* 処理B */」「/* 処理D */」に対応する部分を表示しないことにより、強調部分を目立たせている。
As described above, when it is found that the branch condition “g_in2 = local” is true, the execution source code
The source code
なお、以上のようにして計算あるいは取得した変数の値をCRT901に表示する構成とすれば、ソフトウェアの動作を理解することが更に容易になり、好ましい。
Note that it is preferable that the variable values calculated or obtained as described above are displayed on the
実施の形態7.
実施の形態7を図1〜図3及び図17を用いて説明する。
図1〜図3は、この実施の形態における解析支援装置100の構成を示す。図面の説明は実施の形態1に記載したので、ここでは省略する。
この実施の形態における解析支援装置100は、更に、図17に示す構成を有する。
Embodiment 7 FIG.
A seventh embodiment will be described with reference to FIGS. 1 to 3 and FIG.
1 to 3 show the configuration of the analysis support apparatus 100 according to this embodiment. Since the description of the drawings has been described in
The analysis support apparatus 100 in this embodiment further has a configuration shown in FIG.
エレベータ200の制御部210が実際に実行しているソフトウェア511の実行経路に対応する実行ソースコード情報を判別する方法として、もう一つのやり方がある。
エレベータ200の制御部210のPC(Program Counter:プログラムカウンタ)の値など、実際に実行しているソフトウェア511のメモリ上のアドレスである実行アドレスを取得すれば、実行経路が特定できるので、それに対応する実行ソースコード情報が判別できる。
There is another method for determining the execution source code information corresponding to the execution path of the
If the execution address that is the address on the memory of the
実行アドレスは、実行アドレス取得部143が、エレベータ200の接続部230を介して、取得する。具体的には、アドレスバスを監視して、制御部210が命令語を読み込むタイミングで出ているアドレスが実行アドレスである。あるいは、定期的に制御部210にハードウェア割込みをかけ、退避された戻りアドレスを取得すれば、その時の実行アドレスがわかる。これらの動作を行う部分はエレベータ200に設けてあり、実行アドレス取得部143は接続部230と通信して、実行アドレスを取得する。しかし、実行アドレス取得部143が接続部230を介して、直接、制御部210と接続し、これらの動作を実行アドレス取得部143が行うことで、実行アドレスを取得してもよい。
The execution
実行ソースコード情報判別部161は、アドレス対応関係記憶部152が記憶しているアドレス対応関係512により、その実行アドレスに対応するソースコード情報を、実行ソースコード情報として判別する。
The execution source code
このように、エレベータ200の制御部210の実行アドレスを取得する実行アドレス取得部143を設けることにより、エレベータ200の制御部210が実際に実行しているソフトウェア511の実行経路を特定できるので、ソフトウェア511の処理をシミュレートする必要がなく、実行ソースコード情報を間違って判別する心配もない。
Thus, by providing the execution
実施の形態8.
図18は、エレベータ故障解析装置(解析支援装置の一例)の構成の一例を示す図である。同図に示すエレベータ故障解析装置100は、入出力装置950と、解析対象ソフトウェア記憶部651と、ソフトウェア故障解析部671と、変数依存関係解析部672と、エレベータ故障解析情報記憶部652と、エレベータ通信部641と、故障解析情報表示部611と、実行経路表示部612と、変数値表示部613と、エレベータ構成情報記憶部654と、特定構成表示部614と、電気回路図面関連記憶部653と、電気回路図面記憶部655と、電解回路図面表示部615より構成される。
Embodiment 8 FIG.
FIG. 18 is a diagram illustrating an example of a configuration of an elevator failure analysis apparatus (an example of an analysis support apparatus). The elevator failure analysis apparatus 100 shown in the figure includes an input / output device 950, an analysis target
解析対象ソフトウェア記憶部651は、解析対象ソフトウェアを記憶する。
ソフトウェア故障解析部671は、解析対象のソフトウェアを解析し、関数の定義位置、戻り値、引数、使用しているグローバル変数、ローカル変数、マクロ、呼び出している関数、呼び出されている関数、関数のプログラム図の情報を含む関数情報、グローバル変数の定義位置、型、使用されている位置の情報を含むグローバル変数情報、ローカル変数の定義位置、型、使用されている位置の情報を含むローカル変数情報、引数の定義位置、型、使用されている位置の情報を含む引数情報、型の定義位置、定義の実体、使用位置の情報を含む型情報、マクロの定義、使用位置の情報を含むマクロ情報、定数の使用位置の情報を含む定数情報を含むエレベータのソフトウェアの情報を生成する。
変数依存関係解析部672は、関数スコープの中で、グローバル変数の依存関係を解析する。
エレベータ故障解析情報記憶部652は、ソフトウェア故障解析部671及び変数依存関係解析部672の解析結果を記憶する。
エレベータ通信部141は、エレベータと通信し、エレベータの実行経路の情報及び、エレベータ中の変数の値の情報を取得する。
故障解析情報表示部611は、エレベータ故障解析情報記憶部の情報を表示する。
実行経路表示部612は、エレベータ通信部を介してエレベータと通信し、実行経路を取得し、実行した経路に関係するエレベータ故障解析情報記憶部のみを表示する。
変数値表示部613は、エレベータ通信部を介してエレベータと通信し、定期的に、エレベータ中の変数の値を表示する。
エレベータ構成情報記憶部654は、エレベータソフトウェアの構成を記憶する。
特定構成表示部614は、エレベータ構成情報記憶部654を参照し、特定のエレベータ構成に関係する情報のみを表示する。
電気回路図面関連記憶部653は、関数や変数と、関数や変数に関連する電気回路図面との関連の情報を記憶する。
電気回路図面記憶部655は、電気回路図面を記憶する。
電気回路図面表示部は、電気回路図面関連記憶部653、電気回路図面記憶部655を参照して特定の関数や変数に関連する電気回路図面を表示する。
The analysis target
The software
The variable
The elevator failure analysis
The
The failure analysis
The execution
The variable
The elevator configuration
The specific
The electrical circuit diagram related
The electric circuit
The electric circuit drawing display unit displays an electric circuit drawing related to a specific function or variable with reference to the electric circuit drawing
本実施例においては、実施の形態1〜実施の形態7と異なり、エレベータ故障解析装置が、ソースコード解析装置400を含む構成となっている。
In the present embodiment, unlike the first to seventh embodiments, the elevator failure analysis device includes a source
本実施例において、エレベータ故障解析装置1は、図5に示すような高級言語であるC言語で記述されたプログラムを故障解析対象プログラムとする。
In this embodiment, the elevator
ソフトウェア故障解析部671は、解析対象ソフトウェア記憶部651が記憶する解析対象装置のソフトウェアのソースコードを解析し、下記の情報を含むエレベータ故障解析情報を生成する。
・ 関数情報:
関数の定義位置、戻り値、引数、使用しているグローバル変数、ローカル変数、マクロ、呼び出している関数、呼び出されている関数、関数のプログラム図の情報を含む関数情報
・ グローバル変数情報:
グローバル変数の定義位置、型、使用されている位置の情報を含むグローバル変数情報
・ ローカル変数情報:
ローカル変数の定義位置、型、使用されている位置の情報を含むローカル変数情報
・ 引数情報:
引数の定義位置、型、使用されている位置の情報を含む引数情報
・ 型情報:
型の定義位置、定義の実体、使用位置の情報を含む型情報
・ マクロ情報:
マクロの定義位置、定義、使用位置の情報を含むマクロ情報
・ 定数情報:
定数の使用位置の情報を含む定数情報
図5のソフトウェアを解析し、生成されたエレベータ故障解析情報を故障解析情報表示部611(ソースコード情報表示部の一例)を介してHTML形式で表示する。表示される関数情報及び、グローバル変数情報を図5に示す。表示の形式はHTML形式以外の任意の形式で構わない。
The software
Function information:
Function information and global variable information including function definition position, return value, argument, used global variable, local variable, macro, calling function, called function, function program diagram information:
Global variable information and local variable information including global variable definition position, type, and used position information:
Local variable information and argument information including local variable definition position, type, and used position information:
Argument information and type information including information on argument definition position, type, and used position:
Type information and macro information including type definition location, definition entity, and usage location information:
Macro information and constant information including macro definition position, definition, and use position information:
Constant information including constant usage position information The software in FIG. 5 is analyzed, and the generated elevator failure analysis information is displayed in HTML format via the failure analysis information display unit 611 (an example of a source code information display unit). The displayed function information and global variable information are shown in FIG. The display format may be any format other than the HTML format.
このように、解析支援装置にソースコード解析装置を含む構成とすることで、あらかじめソースコードを解析しておく必要がなくなる。 As described above, the analysis support apparatus includes the source code analysis apparatus, so that it is not necessary to analyze the source code in advance.
実施の形態9.
この実施の形態における解析支援装置100の構成は、実施の形態8で説明した構成と同じである。
この実施の形態は、更に、プログラム図を生成する際に、作業者に必要な情報のみを生成する。
Embodiment 9 FIG.
The configuration of the analysis support apparatus 100 in this embodiment is the same as that described in the eighth embodiment.
In this embodiment, when generating a program diagram, only information necessary for the operator is generated.
従来のプログラム図情報作成装置は
・ ソースとコメントの両者
・ ソースのみ
・ コメントのみ
の情報を抽出することが可能である。
The conventional program diagram information creation device can extract information of both source and comment, source only, and comment only.
しかし、全てのソースの情報をプログラム図情報として抽出すると、作業者に不要な情報を与えることになる場合があるため、全てのソースの情報についてプログラム図情報を生成するのではなく、プログラムの文法に着目して、作業者に必要な情報のみをプログラム図のソースとして抽出し、プログラム図を生成することが望ましいことがある。 However, extracting information from all sources as program diagram information may give unnecessary information to the operator, so program diagram information is not generated for all source information. Focusing on the above, it may be desirable to extract only the information necessary for the worker as the source of the program diagram and generate the program diagram.
たとえば、作業者がエレベータの故障解析時に最も有効な情報はグローバル変数への読み書きの情報であった場合、プログラムの解析を行うことで、グローバル変数への読み書きの部分を抽出する。図6のソフトウェアで、これまでのプログラム図生成ツールでは、ソースとコメントの情報を抽出しようとすると、図6のようにグローバル変数の読み書きに関係ないソースまで表示されてしまう。本装置を使用すると、プログラムの文法要素を解析した後で、プログラム図を生成するため、グローバル変数の読み書きに関係するソースのみを含む図8のようなプログラム図を生成することが可能である。作業者に必要な情報の絞込みは、文法要素のみだけでなく、変数や関数の命名規則など別の規則で与えることも可能である。 For example, if the most effective information for the failure analysis of the elevator is information on reading and writing to the global variable, the worker analyzes the program to extract the portion of reading and writing to the global variable. With the software of FIG. 6, with the conventional program diagram generation tool, when trying to extract source and comment information, even the source unrelated to reading and writing of global variables is displayed as shown in FIG. When this apparatus is used, since a program diagram is generated after analyzing a grammatical element of a program, it is possible to generate a program diagram as shown in FIG. 8 including only sources related to reading and writing of global variables. Narrowing down the information necessary for the worker can be given not only by grammar elements but also by other rules such as variable and function naming rules.
このように、プログラミングの段階で、あらかじめ、ソースコードの中で作業者に必要な情報と必要でない情報を区別できるように記述しておき、その記述に基づいて、強調して表示する部分を選択すれば、作業者が注目すべき情報をより素早く発見できるようになる。 In this way, at the programming stage, it is described in advance so that information necessary for the operator and information that is not necessary can be distinguished in the source code, and based on the description, the portion to be highlighted is selected. This makes it possible for workers to find information that should be noticed more quickly.
実施の形態10.
この実施の形態における解析支援装置100の構成は、実施の形態8で説明した構成と同じである。
この実施の形態は、更に、関数スコープの中で、解析対象の変数が依存している変数を、絞り込むことを支援する。
The configuration of the analysis support apparatus 100 in this embodiment is the same as that described in the eighth embodiment.
This embodiment further supports narrowing down the variables on which the variable to be analyzed depends in the function scope.
変数依存解析部672は、関数スコープにおけるグローバル変数の依存関係を抽出することが可能である。関数スコープにおけるグローバル変数の依存関係を抽出することで、エレベータの故障している信号に着目した故障原因の究明に役にたつ。依存関係には下記の種類がある。
・ 代入に関する依存関係
・ 制御に関する依存関係
また,依存関係は,内部変数を介して上記の依存関係が成立することがある。
The variable
・ Dependency related to substitution ・ Dependency related to control In addition, the dependency described above may be established via an internal variable.
代入に関する依存関係とは,図10に示すグローバル変数g_out1とg_in1の関係であり,g_out1はg_in1に依存している。これは一般的に,代入式の左辺のグローバル変数が,代入式の右辺に含まれるグローバル変数に依存するという関係である。 The dependency relationship regarding substitution is the relationship between the global variables g_out1 and g_in1 shown in FIG. 10, and g_out1 depends on g_in1. This is generally the relationship that the global variable on the left side of the assignment expression depends on the global variable contained on the right side of the assignment expression.
代入に関する依存関係が内部変数を介して成立する例を図11に示す。図に示すグローバル変数g_out2とg_in2の関係であり,g_out2はg_in2に依存している。この例では,l_cyuukan1という内部変数を介して代入に関する依存関係が成立している。一般的に内部変数を介して代入に関する依存関係が成立するとは,代入に関する依存関係において依存されるグローバル変数が内部変数Aに代入され,代入式の左辺にが,代入に関する依存関係において依存するグローバル変数であり,代入式の右辺に内部変数Aが含まれる場合である。 FIG. 11 shows an example in which the dependency relation regarding substitution is established via an internal variable. This is the relationship between the global variables g_out2 and g_in2 shown in the figure, and g_out2 depends on g_in2. In this example, the dependency relation regarding the substitution is established through the internal variable l_cyukan1. In general, a dependency related to assignment is established through an internal variable. A global variable that is dependent on an assignment dependency is assigned to an internal variable A, and the left side of the assignment expression is a global that depends on an assignment dependency. This is a case where the internal variable A is included on the right side of the assignment expression.
制御に関する依存関係とは,図12に示すグローバル変数g_out3とg_in3の関係であり,g_out3はg_in3に依存している。これは一般的には,制御文の条件式の評価結果によって,値が変更されるグローバル変数が,制御文の条件式に含まれるグローバル変数に依存するという関係である。 The dependency relation regarding control is the relation between the global variables g_out3 and g_in3 shown in FIG. 12, and g_out3 depends on g_in3. In general, this is a relationship in which a global variable whose value is changed depending on the evaluation result of the conditional expression of the control statement depends on the global variable included in the conditional expression of the control statement.
制御に関する依存関係が内部変数を介して成立する例を図に示す。図13に示すグローバル変数g_out4とg_in4の関係であり,g_out4はg_in4に依存している。この例では,l_cyuukan2という内部変数を介して制御に関する依存関係が成立している。一般的に内部変数を介して制御に関する依存関係が成立するとは,制御に関する依存関係において依存されるグローバル変数が内部変数Aに代入され,代入に関する依存関係において依存するグローバル変数が,制御文の条件式の評価結果によって,値が変更されるグローバル変数であり,制御文の制御式に内部変数Aが含まれる場合である。 An example in which the dependency relation regarding control is established through an internal variable is shown in the figure. The relationship between the global variables g_out4 and g_in4 shown in FIG. 13 is dependent on g_in4. In this example, the dependency relation regarding the control is established through an internal variable l_cyukan2. In general, a control dependency is established through an internal variable. A global variable that is dependent on the control dependency is assigned to the internal variable A, and the global variable that is dependent on the assignment dependency is the condition of the control statement. This is a global variable whose value is changed according to the evaluation result of the expression, and the internal variable A is included in the control expression of the control statement.
このように、変数の依存関係を表示することにより、作業者が注目すべき情報を容易に絞り込めるようになる。 In this way, by displaying the dependency relationship between variables, it is possible to easily narrow down information that should be noted by the operator.
実施の形態11.
この実施の形態における解析支援装置100の構成は、実施の形態8で説明した構成と同じである。
この実施の形態は、更に、動作中のエレベータと通信を行い、解析対象の変数の値を取得する。
Embodiment 11 FIG.
The configuration of the analysis support apparatus 100 in this embodiment is the same as that described in the eighth embodiment.
This embodiment further communicates with an operating elevator to obtain the value of a variable to be analyzed.
エレベータ通信部641は、エレベータ故障解析装置100とエレベータ200との通信インターフェースであり、ソフトウェアの実アドレスやプログラムにおける変数のスコープ及び変数名を指定することで、任意のエレベータの信号の状態を参照したり、変更したりする。エレベータ故障解析装置100を介することで、エレベータ故障解析情報の中での任意のグローバル変数の値の情報を、エレベータから取得し、変数値表示部613が取得した値を表示する。
The
このように、解析対象装置から情報を取得するだけでなく、解析対象装置の信号の状態を直接変更できる構成とすれば、信号の状態の変化が実際に解析対象装置の動作にどのように影響するかを直接確認することができるので、解析対象装置の解析の効率が高くなる。 In this way, in addition to acquiring information from the analysis target device, if the configuration is such that the signal state of the analysis target device can be directly changed, how the change in the signal state actually affects the operation of the analysis target device. Since it is possible to directly confirm whether or not to do so, the analysis efficiency of the analysis target device is increased.
実施の形態12.
この実施の形態における解析支援装置100の構成は、実施の形態8で説明した構成と同じである。
この実施の形態は、更に、動作中のエレベータと通信して取得した変数の値を参照して、プログラム図中で、実行されているプログラム経路を表示する。
The configuration of the analysis support apparatus 100 in this embodiment is the same as that described in the eighth embodiment.
This embodiment further displays the program path being executed in the program diagram with reference to the value of the variable acquired by communicating with the elevator in operation.
実行経路表示部、エレベータのプログラムの実行経路に影響を与えるグローバル変数の情報を定期的に、エレベータ通信部を介して得ることにより、プログラムの実行経路を監視し、その結果を表示する。図19に解析対象のソフトウェアのソースコードを示す。このソフトウェアのソースコードにおいて、グローバル変数g_in1及び,g_in2は分岐を含む関数func_X()の実行経路を決定する変数である。実行経路表示部612は定期的に,g_in1及び,g_in2の値を,エレベータ通信部641を介して得る。
The execution path display unit periodically obtains information on global variables that affect the execution path of the elevator program through the elevator communication unit, thereby monitoring the execution path of the program and displaying the result. FIG. 19 shows the source code of the software to be analyzed. In the source code of this software, global variables g_in1 and g_in2 are variables that determine the execution path of the function func_X () including a branch. The execution
g_in1が0より大きい場合は、/* 経路A1を実行 */の部分の色を変えるなどして、実行されていることが作業者が認知できるようにし、g_in1が0以下の場合は、/* 経路A2を実行 */の部分の色を変えるなどして、実行されていることを作業者が認知できるようにする。 If g_in1 is greater than 0, / * execute the path A1 * / to change the color of the part so that the operator can recognize that it is being executed. If g_in1 is 0 or less, / * The route A2 is executed. * The color of the portion of * / is changed so that the operator can recognize that it is being executed.
g_in2が0の場合は、/* 経路B1を実行 */の部分の色を変えるなどして,実行されていることが作業者が認知できるようにし、g_in2が1の場合は、/* 経路B2を実行 */の部分の色を変えるなどして、実行されていることが作業者が認知できるようにし、g_in2が0、1以外の場合は、/* 経路B3を実行 */の部分の色を変えるなどして、実行されていることを作業者が認知できるようにする。 When g_in2 is 0, / * execute the path B1 **, for example, by changing the color of the part so that the operator can recognize that it is being executed. When g_in2 is 1, / * the path B2 ** Change the color of the part * / so that the operator can recognize that it is being executed. If g_in2 is other than 0 or 1, / * execute the path B3 * / color of the part * / So that the worker can recognize that it is being executed.
このように、実際の実行経路に着目して、強調して表示する部分を選択すれば、作業者が注目すべき情報をより素早く発見できるようになる。 In this way, by focusing on the actual execution path and selecting the portion to be highlighted, the operator can more quickly find information to be noticed.
実施の形態13.
この実施の形態における解析支援装置100の構成は、実施の形態8で説明した構成と同じである。
この実施の形態は、更に、解析対象の変数に関連する電気回路図面を表示する。
The configuration of the analysis support apparatus 100 in this embodiment is the same as that described in the eighth embodiment.
This embodiment further displays an electrical circuit drawing associated with the variable to be analyzed.
電気回路図面表示部615は、関数と関数が実現する機能に関連する電気回路図面との関係を記憶している電気回路図面関連記憶部653の情報を参照し、エレベータ故障解析情報中の関数に関連する電気回路図を電気回路図面記憶部655から選択し表示する。図20に電気回路図面関連記憶部655が記憶する関連情報の例を示す。機能Aに関連するfuncXa()を指定し、関連する電気回路図面を示した場合、電気回路図面Aが表示され、機能Bに関連するfuncXb()を指定し、関連する電気回路図面を示した場合、電気回路図面Bが表示される。
The electric circuit
このように、制御信号を介することなく、ソースコードと回路図面との関係を直接記述して記憶しておけば、ソフトウェアと回路の対応関係を把握しやすくなる。 As described above, if the relationship between the source code and the circuit drawing is directly described and stored without using a control signal, the correspondence between the software and the circuit can be easily grasped.
実施の形態14.
この実施の形態における解析支援装置100の構成は、実施の形態8で説明した構成と同じである。
この実施の形態は、更に、エレベータの構成毎に、対象の構成の時に関係する情報のみを表示する。
Embodiment 14 FIG.
The configuration of the analysis support apparatus 100 in this embodiment is the same as that described in the eighth embodiment.
This embodiment further displays only information related to the target configuration for each elevator configuration.
特定構成表示部614は、エレベータのソフトウェアの構成を記憶しているエレベータ構成情報記憶部654を参照し、特定構成に関係している情報しか表示しない。図21に解析対象のソフトウェアのソースコード、図22にエレベータ構成情報記憶部中の構成情報の例を示す。関数funcXa()と、グローバル変数g_func_aは構成Aでのみにしか関係しないことを示し、関数funcXb()と、グローバル変数g_func_bは構成Bでのみにしか関係しないことを示す情報の例である。構成Aを指定した場合、関数funcXb()と、グローバル変数g_func_bに関係するの故障解析情報を非表示にし、構成Bを指定した場合は、関数funcXa()と、グローバル変数g_func_aに関する故障解析情報を非表示にする。
The specific
このように、解析対象装置の構成に着目して、強調して表示する部分を選択すれば、作業者が注目すべき情報をより素早く発見できるようになる。 In this way, by focusing on the configuration of the analysis target device and selecting a portion to be highlighted, information that should be noticed by the operator can be found more quickly.
以上に説明したように、効率的なエレベータの故障解析が可能となり、特に、エレベータプログラムの開発者以外でも,故障元の変数から,故障の原因となっている変数を調査する場合の作業効率が向上する。 As described above, it is possible to efficiently analyze the failure of an elevator. In particular, even when the developer is not an elevator program developer, the work efficiency when investigating the variable causing the failure from the variable of the failure source is improved. improves.
また、プログラム図情報として、(1)ソースとコメントの両者、(2)ソースのみ(3)コメントのみの情報が抽出可能になったり、対象の構成の時に関係する情報のみを表示することで、作業者が故障解析作業に必要最小限度の情報だけを参照することにより、故障解析を行うことが可能となる。 Also, as program diagram information, (1) both source and comment, (2) source only (3) only comment information can be extracted, or only relevant information at the time of target configuration is displayed, The operator can perform failure analysis by referring to only the minimum information necessary for failure analysis work.
さらに、稼動中のエレベータの信号の値を参照したり、実行経路を表示したり、関連する電気回路図面を参照したり、することで故障原因の調査が効率化される。 Further, the investigation of the cause of the failure is made efficient by referring to the value of the signal of the elevator in operation, displaying the execution route, and referring to the related electric circuit drawing.
これにより、エレベータの据付現場において、高度なC言語に対する理解がない作業者でも、故障の直接の要因となっている変数から、故障の発端の原因となっている変数を探索することが、効率的に実記可能となる。 As a result, even in an elevator installation site, even an operator who does not understand advanced C language can efficiently search for a variable that causes a failure from variables that are a direct cause of the failure. In fact, it becomes possible to record.
実施の形態15.
以上、実施の形態1〜実施の形態14で述べた構成は、任意に組み合わせることができる。
As described above, the configurations described in
これにより、各構成の効果を相乗させることができ、更に、解析対象装置の解析の効率を高めることができる。 Thereby, the effect of each structure can be made synergistic and the efficiency of analysis of an analysis object apparatus can be raised further.
100 解析支援装置、111 制御信号表示部、112 ソースコード情報表示部、113 回路図情報表示部、121 着目制御信号判別部、122 着目ソースコード情報判別部、123 着目回路部分判別部、124 異常制御信号判別部、125 依存制御信号判別部、131 選択制御信号入力部、132 選択ソースコード情報入力部、133 選択回路部分入力部、141 制御信号取得部、142 記憶内容取得部、143 実行アドレス取得部、151 ソースコード情報記憶部、152 アドレス対応関係記憶部、153 記憶対応関係記憶部、154 記述対応関係記憶部、155 回路図情報記憶部、156 制御対応関係記憶部、161 実行ソースコード情報判別部、200 エレベータ(解析対象装置の一例)、210 制御部、220 制御対象部、221 回転数センサー、222 位置センサー、223 積載重量センサー、224 行き先ボタン、225 呼出しボタン、226 駆動モータ、227 現在階表示器、228 到着表示灯、230 接続部、240 磁気ディスク装置、251 RAM(記憶部の一例)、300 Cコンパイラ装置、400 ソースコード解析装置、501 ソースコード、511 実行可能なソフトウェア、512 アドレス対応関係、513 変数記憶対応関係、521 装置情報、531 ソースコード解析情報、532 変数対応関係、551 回路図情報、561 制御対応関係、611 故障解析情報表示部、612 実行経路表示部、613 変数値表示部、614 特定構成表示部、615 電気回路図面表示部、641 エレベータ通信部、651 解析対象ソフトウェア記憶部、652 エレベータ故障解析情報記憶部、653 電気回路図面関連記憶部、654 エレベータ構成情報記憶部、655 電気回路図面記憶部、671 ソフトウェア故障解析部、672 変数依存関係解析部、901 CRT、902 キーボード、903 マウス、904 FDD(フレキシブルディスク装置)、905 CDD(コンパクトディスク装置)、906 プリンタ装置、907 スキャナ装置、910 システムユニット、911 CPU(中央処理装置)、912 バス、913 ROM、914 RAM、915 通信ボード、920 磁気ディスク装置、921 OS(オペレーティングシステム)、922 ウィンドウシステム、923 プログラム群、924 ファイル群、931 電話器、932 FAX(ファクス)機、940 インターネット、941 ゲートウェイ、942 LAN、950 入出力装置。 100 analysis support device, 111 control signal display unit, 112 source code information display unit, 113 circuit diagram information display unit, 121 target control signal determination unit, 122 target source code information determination unit, 123 target circuit part determination unit, 124 abnormality control Signal discriminating unit, 125 Dependent control signal discriminating unit, 131 Selection control signal input unit, 132 Selection source code information input unit, 133 Selection circuit part input unit, 141 Control signal acquisition unit, 142 Storage content acquisition unit, 143 Execution address acquisition unit 151, source code information storage unit, 152 address correspondence storage unit, 153 storage correspondence storage unit, 154 description correspondence storage unit, 155 circuit diagram information storage unit, 156 control correspondence storage unit, 161 execution source code information determination unit , 200 elevator (an example of analysis target device), 210 , 220 Control target part, 221 Rotational speed sensor, 222 Position sensor, 223 Load weight sensor, 224 Destination button, 225 Call button, 226 Drive motor, 227 Current floor indicator, 228 Arrival indicator, 230 Connection part, 240 Magnetic Disk device, 251 RAM (an example of a storage unit), 300 C compiler device, 400 source code analysis device, 501 source code, 511 executable software, 512 address correspondence, 513 variable storage correspondence, 521 device information, 531 source Code analysis information, 532 Variable correspondence, 551 Circuit diagram information, 561 Control correspondence, 611 Failure analysis information display unit, 612 Execution path display unit, 613 Variable value display unit, 614 Specific configuration display unit, 615 Electric circuit diagram display unit , 641 Elevator communication unit, 651 analysis target software storage unit, 652 elevator failure analysis information storage unit, 653 electrical circuit drawing related storage unit, 654 elevator configuration information storage unit, 655 electrical circuit drawing storage unit, 671 software failure analysis unit, 672 variable dependent Relationship analysis unit, 901 CRT, 902 keyboard, 903 mouse, 904 FDD (flexible disk device), 905 CDD (compact disk device), 906 printer device, 907 scanner device, 910 system unit, 911 CPU (central processing unit), 912 Bus, 913 ROM, 914 RAM, 915 communication board, 920 magnetic disk unit, 921 OS (operating system), 922 window system, 923 programs, 924 file Group, 931 telephone, 932 FAX (fax) machine, 940 Internet, 941 gateway, 942 LAN, 950 input / output device.
Claims (25)
上記ソフトウェアのソースコードの情報であるソースコード情報を記憶するソースコード情報記憶部と、
上記解析対象装置と接続して、上記解析対象装置の制御部と上記解析対象装置の制御対象部との間の制御信号を取得する制御信号取得部と、
上記解析対象装置の回路図の情報である回路図情報を記憶する回路図情報記憶部と、
上記回路図情報記憶部が記憶した回路図情報を表示する回路図情報表示部と、
上記回路図情報表示部が表示した回路図情報から選択した選択回路部分を入力させる選択回路部分入力部と、
上記解析対象装置のうち外部の情報を収集する情報収集部に対応する回路部分と上記情報収集部が収集する情報を上記解析対象装置の制御部へ伝達する上記制御信号との対応関係を示す情報収集信号対応関係と、上記解析対象装置のうち上記解析対象装置の制御部から伝達された制御信号によって動作する動作部に対応する回路部分と上記動作部に伝達される上記制御信号との対応関係を示す動作信号対応関係とのうち少なくともいずれかを、制御対応関係として記憶する制御対応関係記憶部と、
上記制御対応関係記憶部が記憶した制御対応関係に基づいて、上記選択回路部分入力部に入力された選択回路部分に対応する制御信号を着目制御信号として判別する着目制御信号判別部と、
上記ソースコード情報記憶部が記憶したソースコード情報を表示するソースコード情報表示部と、
上記制御信号取得部が取得した制御信号を表示し、上記制御信号のうち、上記着目制御信号判別部が判別した着目制御信号を強調して表示する制御信号表示部とを有することを特徴とする解析支援装置。 A controller having a built-in executable software, the analysis support apparatus for supporting the analysis of the analysis object device and a controlled portion which is controlled by the control unit,
A source code information storage unit for storing source code information which is information of a source code of the software;
A control signal acquisition unit connected to the analysis target device to acquire a control signal between the control unit of the analysis target device and the control target unit of the analysis target device;
A circuit diagram information storage unit for storing circuit diagram information which is information of a circuit diagram of the analysis target device;
A circuit diagram information display unit for displaying circuit diagram information stored in the circuit diagram information storage unit;
A selection circuit part input unit for inputting a selection circuit part selected from the circuit diagram information displayed by the circuit diagram information display unit;
Information indicating a correspondence relationship between a circuit portion corresponding to an information collection unit that collects external information in the analysis target device and the control signal that transmits information collected by the information collection unit to the control unit of the analysis target device Correspondence relationship between collected signal correspondence and circuit portion corresponding to operation unit operated by control signal transmitted from control unit of analysis target device among control target device and control signal transmitted to operation unit A control correspondence storage unit that stores at least one of the operation signal correspondences indicating as a control correspondence;
Based on the control correspondence stored by the control correspondence storage unit, a target control signal determination unit that determines a control signal corresponding to the selection circuit part input to the selection circuit part input unit as a target control signal;
A source code information display unit for displaying the source code information stored in the source code information storage unit;
Display control signals the control signal obtaining unit has obtained, among the control signals, characterized in that a control signal display unit to display highlights the focused control signal the interest control signal determining unit has determined Analysis support device.
上記ソフトウェアのソースコードの情報であるソースコード情報を記憶し、上記ソフトウェアのソースコードにおいて変数が使用されている位置についての変数使用位置情報を記憶するソースコード情報記憶部と、
上記解析対象装置と接続して、上記解析対象装置の制御部と上記解析対象装置の制御対象部との間の制御信号を取得する制御信号取得部と、
上記解析対象装置の回路図の情報である回路図情報を記憶する回路図情報記憶部と、
上記ソースコード情報記憶部が記憶したソースコード情報を表示するソースコード情報表示部と、
上記ソースコード情報表示部が表示したソースコード情報から選択した選択ソースコード情報を入力させる選択ソースコード情報入力部と、
上記ソフトウェアのソースコードにおいて上記制御信号を記述した変数と、上記変数によって記述された上記制御信号との対応関係を示す変数対応関係を記憶する記述対応関係記憶部と、
上記ソースコード情報記憶部が記憶した変数使用位置情報に基づいて、上記ソフトウェアのソースコードにおいて、上記選択ソースコード情報入力部に入力された選択ソースコード情報に対応する部分で使用されている変数を選択変数として判別し、上記記述対応関係記憶部が記憶した変数対応関係に基づいて、上記選択変数に対応する制御信号を着目制御信号として判別する着目制御信号判別部と、
上記制御信号取得部が取得した制御信号を表示し、上記制御信号のうち、上記着目制御信号判別部が判別した着目制御信号を強調して表示する制御信号表示部と、
上記回路図情報記憶部が記憶した回路図情報を表示する回路図情報表示部とを有することを特徴とする解析支援装置。 A controller having a built-in executable software, the analysis support apparatus for supporting the analysis of the analysis object device and a controlled portion which is controlled by the control unit,
A source code information storage unit that stores source code information that is source code information of the software, and stores variable use position information about positions where variables are used in the source code of the software ;
A control signal acquisition unit connected to the analysis target device to acquire a control signal between the control unit of the analysis target device and the control target unit of the analysis target device;
A circuit diagram information storage unit for storing circuit diagram information which is information of a circuit diagram of the analysis target device;
A source code information display unit for displaying the source code information stored in the source code information storage unit;
A selected source code information input unit for inputting selected source code information selected from the source code information displayed by the source code information display unit;
A description correspondence storage unit for storing a variable correspondence relationship indicating a correspondence relationship between the variable describing the control signal in the source code of the software and the control signal described by the variable;
Based on the variable use position information stored in the source code information storage unit, the variables used in the portion corresponding to the selected source code information input to the selected source code information input unit in the source code of the software A focused control signal discriminating unit that discriminates the control signal corresponding to the selected variable as a focused control signal based on the variable correspondence stored in the description correspondence storing unit;
A control signal display unit that displays the control signal acquired by the control signal acquisition unit and emphasizes and displays the target control signal determined by the target control signal determination unit among the control signals;
A circuit diagram information display unit for displaying circuit diagram information stored in the circuit diagram information storage unit.
上記ソフトウェアのソースコードの情報であるソースコード情報を記憶するソースコード情報記憶部と、
上記解析対象装置と接続して、上記解析対象装置の制御部と上記解析対象装置の制御対象部との間の制御信号を取得する制御信号取得部と、
上記解析対象装置の回路図の情報である回路図情報を記憶する回路図情報記憶部と、
上記回路図情報記憶部が記憶した回路図情報を表示する回路図情報表示部と、
上記回路図情報表示部が表示した回路図情報から選択した選択回路部分を入力させる選択回路部分入力部と、
上記解析対象装置のうち外部の情報を収集する情報収集部に対応する回路部分と上記情報収集部が収集する情報を上記解析対象装置の制御部へ伝達する上記制御信号との対応関係を示す情報収集信号対応関係と、上記解析対象装置のうち上記解析対象装置の制御部から伝達された制御信号によって動作する動作部に対応する回路部分と上記動作部に伝達される上記制御信号との対応関係を示す動作信号対応関係とのうち少なくともいずれかを、制御対応関係として記憶する制御対応関係記憶部と、
上記制御対応関係記憶部が記憶した制御対応関係に基づいて、上記選択回路部分入力部に入力された選択回路部分に対応する制御信号を着目制御信号として判別する着目制御信号判別部と、
上記ソフトウェアのソースコードにおいて上記制御信号を記述した変数と、上記変数によって記述された上記制御信号との対応関係を示す変数対応関係を記憶する記述対応関係記憶部と、
上記記述対応関係記憶部が記憶した変数対応関係に基づいて、上記ソースコード情報記憶部が記憶したソースコード情報のうち、上記着目制御信号判別部が判別した着目制御信号に対応するソースコード情報を着目ソースコード情報として判別する着目ソースコード情報判別部と、
上記ソースコード情報記憶部が記憶したソースコード情報を表示し、上記ソースコード情報のうち、上記着目ソースコード情報判別部が判別した着目ソースコード情報を強調して表示するソースコード情報表示部と、
上記制御信号取得部が取得した制御信号を表示する制御信号表示部とを有することを特徴とする解析支援装置。 A controller having a built-in executable software, the analysis support apparatus for supporting the analysis of the analysis object device and a controlled portion which is controlled by the control unit,
A source code information storage unit for storing source code information which is information of a source code of the software;
A control signal acquisition unit connected to the analysis target device to acquire a control signal between the control unit of the analysis target device and the control target unit of the analysis target device;
A circuit diagram information storage unit for storing circuit diagram information which is information of a circuit diagram of the analysis target device;
A circuit diagram information display unit for displaying circuit diagram information stored in the circuit diagram information storage unit;
A selection circuit part input unit for inputting a selection circuit part selected from the circuit diagram information displayed by the circuit diagram information display unit;
Information indicating a correspondence relationship between a circuit portion corresponding to an information collection unit that collects external information in the analysis target device and the control signal that transmits information collected by the information collection unit to the control unit of the analysis target device Correspondence relationship between collected signal correspondence and circuit portion corresponding to operation unit operated by control signal transmitted from control unit of analysis target device among control target device and control signal transmitted to operation unit A control correspondence storage unit that stores at least one of the operation signal correspondences indicating as a control correspondence;
Based on the control correspondence stored by the control correspondence storage unit, a target control signal determination unit that determines a control signal corresponding to the selection circuit part input to the selection circuit part input unit as a target control signal;
A description correspondence storage unit for storing a variable correspondence relationship indicating a correspondence relationship between the variable describing the control signal in the source code of the software and the control signal described by the variable;
Based on the variable correspondence stored by the description correspondence storage unit, the source code information corresponding to the target control signal determined by the target control signal determination unit is stored among the source code information stored by the source code information storage unit. A source code information discriminating unit that discriminates as source code information of interest;
A source code information display unit that displays the source code information stored in the source code information storage unit, and highlights and displays the target source code information determined by the target source code information determination unit among the source code information;
Analysis support apparatus characterized by a control signal display unit for displaying a control signal which the control signal obtaining unit has acquired.
上記ソフトウェアのソースコードの情報であるソースコード情報を記憶し、上記ソフトウェアのソースコードにおいて変数が使用されている位置についての変数使用位置情報を記憶するソースコード情報記憶部と、
上記解析対象装置と接続して、上記解析対象装置の制御部と上記解析対象装置の制御対象部との間の制御信号を取得する制御信号取得部と、
上記解析対象装置の回路図の情報である回路図情報を記憶する回路図情報記憶部と、
上記ソースコード情報記憶部が記憶したソースコード情報を表示するソースコード情報表示部と、
上記ソースコード情報表示部が表示したソースコード情報から選択した選択ソースコード情報を入力させる選択ソースコード情報入力部と、
上記ソフトウェアのソースコードにおいて上記制御信号を記述した変数と、上記変数によって記述された上記制御信号との対応関係を示す変数対応関係を記憶する記述対応関係記憶部と、
上記ソースコード情報記憶部が記憶した変数使用位置情報に基づいて、上記ソフトウェアのソースコードにおいて、上記選択ソースコード情報入力部に入力された選択ソースコード情報に対応する部分で使用されている変数を選択変数として判別し、上記記述対応関係記憶部が記憶した変数対応関係に基づいて、上記選択変数に対応する制御信号を着目制御信号として判別する着目制御信号判別部と、
上記記述対応関係記憶部が記憶した変数対応関係に基づいて、上記ソースコード情報記憶部が記憶したソースコード情報のうち、上記着目制御信号判別部が判別した着目制御信号に対応するソースコード情報を着目ソースコード情報として判別する着目ソースコード情報判別部と、
上記制御信号取得部が取得した制御信号を表示する制御信号表示部と、
上記回路図情報記憶部が記憶した回路図情報を表示する回路図情報表示部とを有し、
上記ソースコード情報表示部は、上記ソースコード情報のうち、上記着目ソースコード情報判別部が判別した着目ソースコード情報を強調して表示することを特徴とする解析支援装置。 A controller having a built-in executable software, the analysis support apparatus for supporting the analysis of the analysis object device and a controlled portion which is controlled by the control unit,
A source code information storage unit that stores source code information that is source code information of the software, and stores variable use position information about positions where variables are used in the source code of the software ;
A control signal acquisition unit connected to the analysis target device to acquire a control signal between the control unit of the analysis target device and the control target unit of the analysis target device;
A circuit diagram information storage unit for storing circuit diagram information which is information of a circuit diagram of the analysis target device;
A source code information display unit for displaying the source code information stored in the source code information storage unit;
A selected source code information input unit for inputting selected source code information selected from the source code information displayed by the source code information display unit;
A description correspondence storage unit for storing a variable correspondence relationship indicating a correspondence relationship between the variable describing the control signal in the source code of the software and the control signal described by the variable;
Based on the variable use position information stored in the source code information storage unit, the variables used in the portion corresponding to the selected source code information input to the selected source code information input unit in the source code of the software A focused control signal discriminating unit that discriminates the control signal corresponding to the selected variable as a focused control signal based on the variable correspondence stored in the description correspondence storing unit;
Based on the variable correspondence stored by the description correspondence storage unit, the source code information corresponding to the target control signal determined by the target control signal determination unit is stored among the source code information stored by the source code information storage unit. A source code information discriminating unit that discriminates as source code information of interest;
A control signal display unit for displaying the control signal acquired by the control signal acquisition unit;
Possess a circuit diagram information display unit that displays the circuit diagram information the circuit diagram information storage section is stored,
The source code information display unit highlights and displays the target source code information determined by the target source code information determination unit in the source code information .
上記回路図情報表示部が表示した回路図情報から選択した選択回路部分を入力させる選択回路部分入力部と、A selection circuit part input unit for inputting a selection circuit part selected from the circuit diagram information displayed by the circuit diagram information display unit;
上記解析対象装置のうち外部の情報を収集する情報収集部に対応する回路部分と上記情報収集部が収集する情報を上記解析対象装置の制御部へ伝達する上記制御信号との対応関係を示す情報収集信号対応関係と、上記解析対象装置のうち上記解析対象装置の制御部から伝達された制御信号によって動作する動作部に対応する回路部分と上記動作部に伝達される上記制御信号との対応関係を示す動作信号対応関係とのうち少なくともいずれかを、制御対応関係として記憶する制御対応関係記憶部とを有し、Information indicating a correspondence relationship between a circuit portion corresponding to an information collection unit that collects external information in the analysis target device and the control signal that transmits information collected by the information collection unit to the control unit of the analysis target device Correspondence relationship between collected signal correspondence and circuit portion corresponding to operation unit operated by control signal transmitted from control unit of analysis target device among control target device and control signal transmitted to operation unit A control correspondence storage unit that stores at least one of the operation signal correspondences indicating as a control correspondence,
上記着目制御信号判別部は、更に、上記制御対応関係記憶部が記憶した制御対応関係に基づいて、上記選択回路部分入力部に入力された選択回路部分に対応する制御信号を着目制御信号として判別することを特徴とする請求項2または請求項4に記載の解析支援装置。The target control signal determination unit further determines, as the target control signal, a control signal corresponding to the selection circuit portion input to the selection circuit portion input unit based on the control correspondence stored in the control correspondence storage unit. 5. The analysis support apparatus according to claim 2 or 4, wherein:
上記ソフトウェアのソースコードの情報であるソースコード情報を記憶するソースコード情報記憶部と、
上記解析対象装置と接続して、上記解析対象装置の制御部と上記解析対象装置の制御対象部との間の制御信号を取得する制御信号取得部と、
上記解析対象装置の回路図の情報である回路図情報を記憶する回路図情報記憶部と、
上記回路図情報記憶部が記憶した回路図情報を表示する回路図情報表示部と、
上記回路図情報表示部が表示した回路図情報から選択した選択回路部分を入力させる選択回路部分入力部と、
上記解析対象装置のうち外部の情報を収集する情報収集部に対応する回路部分と上記情報収集部が収集する情報を上記解析対象装置の制御部へ伝達する上記制御信号との対応関係を示す情報収集信号対応関係と、上記解析対象装置のうち上記解析対象装置の制御部から伝達された制御信号によって動作する動作部に対応する回路部分と上記動作部に伝達される上記制御信号との対応関係を示す動作信号対応関係とのうち少なくともいずれかを、制御対応関係として記憶する制御対応関係記憶部と、
上記制御対応関係記憶部が記憶した制御対応関係に基づいて、上記選択回路部分入力部に入力された選択回路部分に対応する制御信号を着目制御信号として判別する着目制御信号判別部と、
上記制御対応関係記憶部が記憶した制御対応関係に基づいて、上記着目制御信号判別部が判別した着目制御信号に対応する回路部分を着目回路部分として判別する着目回路部分判別部と、
上記ソースコード情報記憶部が記憶したソースコード情報を表示するソースコード情報表示部と、
上記制御信号取得部が取得した制御信号を表示する制御信号表示部とを有し、
上記回路図情報表示部は、上記回路図情報のうち、上記着目回路部分判別部が判別した着目回路部分を強調して表示することを特徴とする解析支援装置。 A controller having a built-in executable software, the analysis support apparatus for supporting the analysis of the analysis object device and a controlled portion which is controlled by the control unit,
A source code information storage unit for storing source code information which is information of a source code of the software;
A control signal acquisition unit connected to the analysis target device to acquire a control signal between the control unit of the analysis target device and the control target unit of the analysis target device;
A circuit diagram information storage unit for storing circuit diagram information which is information of a circuit diagram of the analysis target device;
A circuit diagram information display unit for displaying circuit diagram information stored in the circuit diagram information storage unit;
A selection circuit part input unit for inputting a selection circuit part selected from the circuit diagram information displayed by the circuit diagram information display unit;
Information indicating a correspondence relationship between a circuit portion corresponding to an information collection unit that collects external information in the analysis target device and the control signal that transmits information collected by the information collection unit to the control unit of the analysis target device Correspondence relationship between collected signal correspondence and circuit portion corresponding to operation unit operated by control signal transmitted from control unit of analysis target device among control target device and control signal transmitted to operation unit A control correspondence storage unit that stores at least one of the operation signal correspondences indicating as a control correspondence;
Based on the control correspondence stored by the control correspondence storage unit, a target control signal determination unit that determines a control signal corresponding to the selection circuit part input to the selection circuit part input unit as a target control signal;
Based on the control correspondence stored in the control correspondence storage unit, the circuit portion discriminating unit that discriminates the circuit part corresponding to the target control signal discriminated by the target control signal discriminating unit as the circuit part of interest;
A source code information display unit for displaying the source code information stored in the source code information storage unit;
And a control signal display unit for displaying a control signal which the control signal obtaining unit has obtained,
The circuit diagram information display unit, among the circuit diagram information, analysis support apparatus characterized by that displays highlights the target circuit portion where the focusing circuit portion determination unit has determined.
上記ソフトウェアのソースコードの情報であるソースコード情報を記憶し、上記ソフトウェアのソースコードにおいて変数が使用されている位置についての変数使用位置情報を記憶するソースコード情報記憶部と、
上記解析対象装置と接続して、上記解析対象装置の制御部と上記解析対象装置の制御対象部との間の制御信号を取得する制御信号取得部と、
上記解析対象装置の回路図の情報である回路図情報を記憶する回路図情報記憶部と、
上記ソースコード情報記憶部が記憶したソースコード情報を表示するソースコード情報表示部と、
上記ソースコード情報表示部が表示したソースコード情報から選択した選択ソースコード情報を入力させる選択ソースコード情報入力部と、
上記ソフトウェアのソースコードにおいて上記制御信号を記述した変数と、上記変数によって記述された上記制御信号との対応関係を示す変数対応関係を記憶する記述対応関係記憶部と、
上記ソースコード情報記憶部が記憶した変数使用位置情報に基づいて、上記ソフトウェアのソースコードにおいて、上記選択ソースコード情報入力部に入力された選択ソースコード情報に対応する部分で使用されている変数を選択変数として判別し、上記記述対応関係記憶部が記憶した変数対応関係に基づいて、上記選択変数に対応する制御信号を着目制御信号として判別する着目制御信号判別部と、
上記回路図情報記憶部が記憶した回路図情報において上記制御信号に対応する回路部分と上記回路部分に対応する上記制御信号との対応関係を示す制御対応関係を記憶する制御対応関係記憶部と、
上記制御対応関係記憶部が記憶した制御対応関係に基づいて、上記着目制御信号判別部が判別した着目制御信号に対応する回路部分を着目回路部分として判別する着目回路部分判別部と、
上記制御信号取得部が取得した制御信号を表示する制御信号表示部と、
上記回路図情報記憶部が記憶した回路図情報を表示し、上記回路図情報のうち、上記着目回路部分判別部が判別した着目回路部分を強調して表示する回路図情報表示部とを有することを特徴とする解析支援装置。 A controller having a built-in executable software, the analysis support apparatus for supporting the analysis of the analysis object device and a controlled portion which is controlled by the control unit,
A source code information storage unit that stores source code information that is source code information of the software, and stores variable use position information about positions where variables are used in the source code of the software ;
A control signal acquisition unit connected to the analysis target device to acquire a control signal between the control unit of the analysis target device and the control target unit of the analysis target device;
A circuit diagram information storage unit for storing circuit diagram information which is information of a circuit diagram of the analysis target device;
A source code information display unit for displaying the source code information stored in the source code information storage unit;
A selected source code information input unit for inputting selected source code information selected from the source code information displayed by the source code information display unit;
A description correspondence storage unit for storing a variable correspondence relationship indicating a correspondence relationship between the variable describing the control signal in the source code of the software and the control signal described by the variable;
Based on the variable use position information stored in the source code information storage unit, the variables used in the portion corresponding to the selected source code information input to the selected source code information input unit in the source code of the software A focused control signal discriminating unit that discriminates the control signal corresponding to the selected variable as a focused control signal based on the variable correspondence stored in the description correspondence storing unit;
A control correspondence storage unit that stores a control correspondence relationship indicating a correspondence relationship between a circuit portion corresponding to the control signal and the control signal corresponding to the circuit portion in the circuit diagram information stored in the circuit diagram information storage unit;
Based on the control correspondence stored in the control correspondence storage unit, the circuit portion discriminating unit that discriminates the circuit part corresponding to the target control signal discriminated by the target control signal discriminating unit as the circuit part of interest;
A control signal display unit for displaying the control signal acquired by the control signal acquisition unit;
The circuit diagram information stored in the circuit diagram information storage unit is displayed, and the circuit diagram information display unit that highlights and displays the circuit portion of interest identified by the circuit portion of interest determination unit of the circuit diagram information is included. Analysis support device characterized by
上記回路図情報表示部が表示した回路図情報から選択した選択回路部分を入力させる選択回路部分入力部を有し、A selection circuit part input unit for inputting a selection circuit part selected from the circuit diagram information displayed by the circuit diagram information display unit;
上記制御対応関係記憶部は、上記解析対象装置のうち外部の情報を収集する情報収集部に対応する回路部分と上記情報収集部が収集する情報を上記解析対象装置の制御部へ伝達する上記制御信号との対応関係を示す情報収集信号対応関係と、上記解析対象装置のうち上記解析対象装置の制御部から伝達された制御信号によって動作する動作部に対応する回路部分と上記動作部に伝達される上記制御信号との対応関係を示す動作信号対応関係とのうち少なくともいずれかを、制御対応関係として記憶し、The control correspondence storage unit transmits a circuit portion corresponding to an information collecting unit that collects external information of the analysis target device and information collected by the information collecting unit to the control unit of the analysis target device. The information collection signal correspondence relationship indicating the correspondence relationship with the signal, and the circuit portion corresponding to the operation portion operated by the control signal transmitted from the control portion of the analysis target device and the operation portion of the analysis target device are transmitted to the operation portion. And storing at least one of the operation signal correspondence relationship indicating the correspondence relationship with the control signal as the control correspondence relationship,
上記着目制御信号判別部は、更に、上記制御対応関係記憶部が記憶した制御対応関係に基づいて、上記選択回路部分入力部に入力された選択回路部分に対応する制御信号を着目制御信号として判別することを特徴とする請求項7に記載の解析支援装置。The target control signal determination unit further determines, as the target control signal, a control signal corresponding to the selection circuit portion input to the selection circuit portion input unit based on the control correspondence stored in the control correspondence storage unit. The analysis support apparatus according to claim 7, wherein:
上記ソフトウェアのソースコードの情報であるソースコード情報を記憶するソースコード情報記憶部と、
上記解析対象装置と接続して、上記解析対象装置の制御部と上記解析対象装置の制御対象部との間の制御信号を取得する制御信号取得部と、
上記解析対象装置の回路図の情報である回路図情報を記憶する回路図情報記憶部と、
上記制御信号のうち特定の制御信号を着目制御信号として判別する着目制御信号判別部と、
上記解析対象装置のうち外部の情報を収集する情報収集部に対応する回路部分と上記情報収集部が収集する情報を上記解析対象装置の制御部へ伝達する上記制御信号との対応関係を示す情報収集信号対応関係と、上記解析対象装置のうち上記解析対象装置の制御部から伝達された制御信号によって動作する動作部に対応する回路部分と上記動作部に伝達される上記制御信号との対応関係を示す動作信号対応関係とのうち少なくともいずれかを、制御対応関係として記憶する制御対応関係記憶部と、
上記制御対応関係記憶部が記憶した制御対応関係に基づいて、上記着目制御信号判別部が判別した着目制御信号に対応する回路部分を着目回路部分として判別する着目回路部分判別部と、
上記ソースコード情報記憶部が記憶したソースコード情報を表示するソースコード情報表示部と、
上記制御信号取得部が取得した制御信号を表示する制御信号表示部と、
上記回路図情報記憶部が記憶した回路図情報を表示し、上記回路図情報のうち、上記着目回路部分判別部が判別した着目回路部分を強調して表示する回路図情報表示部とを有することを特徴とする解析支援装置。 A controller having a built-in executable software, the analysis support apparatus for supporting the analysis of the analysis object device and a controlled portion which is controlled by the control unit,
A source code information storage unit for storing source code information which is information of a source code of the software;
A control signal acquisition unit connected to the analysis target device to acquire a control signal between the control unit of the analysis target device and the control target unit of the analysis target device;
A circuit diagram information storage unit for storing circuit diagram information which is information of a circuit diagram of the analysis target device;
A target control signal discriminating unit for discriminating a specific control signal among the control signals as a target control signal;
Information indicating a correspondence relationship between a circuit portion corresponding to an information collection unit that collects external information in the analysis target device and the control signal that transmits information collected by the information collection unit to the control unit of the analysis target device Correspondence relationship between collected signal correspondence and circuit portion corresponding to operation unit operated by control signal transmitted from control unit of analysis target device among control target device and control signal transmitted to operation unit A control correspondence storage unit that stores at least one of the operation signal correspondences indicating as a control correspondence;
Based on the control correspondence stored in the control correspondence storage unit, the circuit portion discriminating unit that discriminates the circuit part corresponding to the target control signal discriminated by the target control signal discriminating unit as the circuit part of interest;
A source code information display unit for displaying the source code information stored in the source code information storage unit;
A control signal display unit for displaying the control signal acquired by the control signal acquisition unit;
The circuit diagram information stored in the circuit diagram information storage unit is displayed, and the circuit diagram information display unit that highlights and displays the circuit portion of interest identified by the circuit portion of interest determination unit of the circuit diagram information is included. Analysis support device characterized by
上記ソフトウェアのソースコードにおいて上記制御信号を記述した変数と、上記変数によって記述された上記制御信号との対応関係を示す変数対応関係を記憶する記述対応関係記憶部と、A description correspondence storage unit for storing a variable correspondence relationship indicating a correspondence relationship between the variable describing the control signal in the source code of the software and the control signal described by the variable;
上記記述対応関係記憶部が記憶した変数対応関係に基づいて、上記ソースコード情報記憶部が記憶したソースコード情報のうち、上記着目制御信号判別部が判別した着目制御信号に対応するソースコード情報を着目ソースコード情報として判別する着目ソースコード情報判別部とを有し、Based on the variable correspondence stored by the description correspondence storage unit, the source code information corresponding to the target control signal determined by the target control signal determination unit is stored among the source code information stored by the source code information storage unit. A source code information discriminating unit that discriminates as source code information of interest,
上記ソースコード情報表示部は、上記ソースコード情報のうち、上記着目ソースコード情報判別部が判別した着目ソースコード情報を強調して表示することを特徴とする請求項6乃至請求項9のいずれかに記載の解析支援装置。10. The source code information display unit highlights and displays the target source code information determined by the target source code information determination unit among the source code information. The analysis support device described in 1.
上記着目ソースコード情報判別部は、上記記述対応関係記憶部が記憶した変数対応関係に基づいて、上記着目制御信号を記述した変数を着目変数として判別し、上記ソースコード情報記憶部が記憶した変数使用位置情報に基づいて、上記着目変数が使用されている位置に対応するソースコード情報を上記着目ソースコード情報として判別することを特徴とする請求項3または請求項4または請求項4を引用する請求項5または請求項10に記載の解析支援装置。 Upper Symbol Source code information storage unit stores the variable use position information about the location of Variable in the Source Code is used,
The target source code information determining unit determines a variable describing the target control signal as a target variable based on the variable correspondence stored in the description correspondence storage unit, and the variable stored in the source code information storage unit based on the use location information, citing claim 3 or claim 4 or claim 4 source code information corresponding to the position where the interest variable is used and discriminates as the focused source code information The analysis support apparatus according to claim 5 or 10 .
上記ソフトウェアのソースコードの情報であるソースコード情報を記憶し、上記ソフトウェアのソースコードにおける制御の流れの分岐位置及び合流位置を示す制御フロー情報を記憶し、上記分岐位置における分岐条件を示す制御条件情報を記憶するソースコード情報記憶部と、
上記解析対象装置と接続して、上記解析対象装置の制御部と上記解析対象装置の制御対象部との間の制御信号を取得する制御信号取得部と、
上記解析対象装置の回路図の情報である回路図情報を記憶する回路図情報記憶部と、
上記ソフトウェアのソースコードにおいて上記制御信号を記述した変数と、上記変数によって記述された上記制御信号との対応関係を示す変数対応関係を記憶する記述対応関係記憶部と、
上記ソースコード情報記憶部が記憶した制御フロー情報に基づいて、上記ソースコード情報記憶部が記憶したソースコード情報を上記分岐位置及び上記合流位置によって分割し、上記記述対応関係記憶部が記憶した変数対応関係に基づいて、上記制御信号取得部が取得した制御信号に対応する変数の値を判別し、上記ソースコード情報記憶部が記憶した制御条件情報に基づいて、上記分岐位置において、上記分岐条件を満たすかどうかを判別して、上記制御対象装置の制御部が実際に実行している上記ソフトウェアの実行経路を推定し、分割された上記ソースコード情報のうち、上記実行経路に対応するソースコード情報を実行ソースコード情報として判別する実行ソースコード情報判別部と、
上記ソースコード情報記憶部が記憶したソースコード情報を表示し、上記実行ソースコード情報判別部が判別した実行ソースコード情報を強調して表示するソースコード情報表示部と、
上記制御信号取得部が取得した制御信号を表示する制御信号表示部と、
上記回路図情報記憶部が記憶した回路図情報を表示する回路図情報表示部とを有することを特徴とする解析支援装置。 A controller having a built-in executable software, the analysis support apparatus for supporting the analysis of the analysis object device and a controlled portion which is controlled by the control unit,
Control condition indicating a branch condition at the branch position , storing source code information that is information of the software source code, storing control flow information indicating a branch position and a merge position of a control flow in the software source code and source code information storage unit for storing information,
A control signal acquisition unit connected to the analysis target device to acquire a control signal between the control unit of the analysis target device and the control target unit of the analysis target device;
A circuit diagram information storage unit for storing circuit diagram information which is information of a circuit diagram of the analysis target device;
A description correspondence storage unit for storing a variable correspondence relationship indicating a correspondence relationship between the variable describing the control signal in the source code of the software and the control signal described by the variable;
Based on the control flow information stored in the source code information storage unit, the source code information stored in the source code information storage unit is divided by the branch position and the merge position, and the variable stored in the description correspondence storage unit Based on the correspondence, the value of the variable corresponding to the control signal acquired by the control signal acquisition unit is determined, and the branch condition is determined at the branch position based on the control condition information stored in the source code information storage unit. Is determined, the control unit of the control target device estimates the execution path of the software that is actually executed, and the source code corresponding to the execution path in the divided source code information An execution source code information determination unit for determining information as execution source code information;
A source code information display unit that displays the source code information stored in the source code information storage unit and highlights and displays the execution source code information determined by the execution source code information determination unit ;
A control signal display unit for displaying the control signal acquired by the control signal acquisition unit;
A circuit diagram information display unit for displaying circuit diagram information stored in the circuit diagram information storage unit.
上記解析支援装置は、The analysis support apparatus is
上記ソフトウェアのソースコードにおいて上記制御信号を記述した変数と、上記変数によって記述された上記制御信号との対応関係を示す変数対応関係を記憶する記述対応関係記憶部と、A description correspondence storage unit for storing a variable correspondence relationship indicating a correspondence relationship between the variable describing the control signal in the source code of the software and the control signal described by the variable;
上記ソースコード情報記憶部が記憶した制御フロー情報に基づいて、上記ソースコード情報記憶部が記憶したソースコード情報を上記分岐位置及び上記合流位置によって分割し、上記記述対応関係記憶部が記憶した変数対応関係に基づいて、上記制御信号取得部が取得した制御信号に対応する変数の値を判別し、上記ソースコード情報記憶部が記憶した制御条件情報に基づいて、上記分岐位置において、上記分岐条件を満たすかどうかを判別して、上記制御対象装置の制御部が実際に実行している上記ソフトウェアの実行経路を推定し、分割された上記ソースコード情報のうち、上記実行経路に対応するソースコード情報を実行ソースコード情報として判別する実行ソースコード情報判別部とを有し、Based on the control flow information stored in the source code information storage unit, the source code information stored in the source code information storage unit is divided by the branch position and the merge position, and the variable stored in the description correspondence storage unit Based on the correspondence, the value of the variable corresponding to the control signal acquired by the control signal acquisition unit is determined, and the branch condition is determined at the branch position based on the control condition information stored in the source code information storage unit. Is determined, the control unit of the control target device estimates the execution path of the software that is actually executed, and the source code corresponding to the execution path in the divided source code information An execution source code information determination unit for determining information as execution source code information;
上記ソースコード情報表示部は、上記実行ソースコード情報判別部が判別した実行ソースコード情報を強調して表示することを特徴とする請求項1乃至請求項12のいずれかに記載の解析支援装置。The analysis support apparatus according to claim 1, wherein the source code information display unit highlights and displays the execution source code information determined by the execution source code information determination unit.
上記ソフトウェアのソースコードの情報であるソースコード情報を記憶し、上記ソフトウェアのソースコードにおける制御の流れの分岐位置及び合流位置を示す制御フロー情報を記憶し、上記分岐位置における分岐条件を示す制御条件情報を記憶するソースコード情報記憶部と、
上記解析対象装置と接続して、上記解析対象装置の制御部と上記解析対象装置の制御対象部との間の制御信号を取得する制御信号取得部と、
上記解析対象装置の回路図の情報である回路図情報を記憶する回路図情報記憶部と、
上記制御対象装置と接続して、上記制御対象装置の制御部が記憶する記憶内容を取得する記憶内容取得部と、
上記ソフトウェアのソースコードにおいて上記記憶内容を記述した変数と、上記変数によって記述された上記記憶内容との対応関係を示す変数記憶対応関係を記憶する記憶対応関係記憶部と、
上記ソースコード解析情報記憶部が記憶した制御フロー情報に基づいて、上記ソースコード情報記憶部が記憶したソースコード情報を上記分岐位置及び上記合流位置によって分割し、上記記憶対応関係記憶部が記憶した変数記憶対応関係に基づいて、上記記憶内容取得部が取得した記憶内容に対応する変数の値を判別し、上記ソースコード情報記憶部が記憶した制御条件情報に基づいて、上記分岐位置において、上記分岐条件を満たすかどうかを判別して、上記制御対象装置の制御部が実際に実行している上記ソフトウェアの実行経路を推定し、分割された上記ソースコード情報のうち、上記実行経路に対応するソースコード情報を実行ソースコード情報として判別する実行ソースコード情報判別部と、
上記ソースコード情報記憶部が記憶したソースコード情報を表示し、上記実行ソースコード情報判別部が判別した実行ソースコード情報を強調して表示するソースコード情報表示部と、
上記制御信号取得部が取得した制御信号を表示する制御信号表示部と、
上記回路図情報記憶部が記憶した回路図情報を表示する回路図情報表示部とを有することを特徴とする解析支援装置。 A controller having a built-in executable software, the analysis support apparatus for supporting the analysis of the analysis object device and a controlled portion which is controlled by the control unit,
Control condition indicating a branch condition at the branch position , storing source code information that is information of the software source code, storing control flow information indicating a branch position and a merge position of a control flow in the software source code and source code information storage unit for storing information,
A control signal acquisition unit connected to the analysis target device to acquire a control signal between the control unit of the analysis target device and the control target unit of the analysis target device;
A circuit diagram information storage unit for storing circuit diagram information which is information of a circuit diagram of the analysis target device;
A storage content acquisition unit that connects to the control target device and acquires the storage content stored in the control unit of the control target device;
A storage correspondence storage unit for storing a variable storage correspondence indicating a correspondence between the variable describing the storage content in the source code of the software and the storage content described by the variable;
Based on the control flow information stored in the source code analysis information storage unit, the source code information stored in the source code information storage unit is divided by the branch position and the merge position, and the storage correspondence storage unit stores the source code information. Based on the variable storage correspondence, the value of the variable corresponding to the storage content acquired by the storage content acquisition unit is determined, and at the branch position based on the control condition information stored by the source code information storage unit, It is determined whether the branch condition is satisfied, the execution path of the software that is actually executed by the control unit of the control target device is estimated, and the execution path of the divided source code information corresponds to the execution path An execution source code information determination unit for determining source code information as execution source code information;
A source code information display unit that displays the source code information stored in the source code information storage unit and highlights and displays the execution source code information determined by the execution source code information determination unit ;
A control signal display unit for displaying the control signal acquired by the control signal acquisition unit;
A circuit diagram information display unit for displaying circuit diagram information stored in the circuit diagram information storage unit.
上記解析支援装置は、The analysis support apparatus is
上記制御対象装置と接続して、上記制御対象装置の制御部が記憶する記憶内容を取得する記憶内容取得部と、A storage content acquisition unit that connects to the control target device and acquires the storage content stored in the control unit of the control target device;
上記ソフトウェアのソースコードにおいて上記記憶内容を記述した変数と、上記変数によって記述された上記記憶内容との対応関係を示す変数記憶対応関係を記憶する記憶対応関係記憶部と、A storage correspondence storage unit for storing a variable storage correspondence indicating a correspondence between the variable describing the storage content in the source code of the software and the storage content described by the variable;
上記ソースコード解析情報記憶部が記憶した制御フロー情報に基づいて、上記ソースコード情報記憶部が記憶したソースコード情報を上記分岐位置及び上記合流位置によって分割し、上記記憶対応関係記憶部が記憶した変数記憶対応関係に基づいて、上記記憶内容取得部が取得した記憶内容に対応する変数の値を判別し、上記ソースコード情報記憶部が記憶した制御条件情報に基づいて、上記分岐位置において、上記分岐条件を満たすかどうかを判別して、上記制御対象装置の制御部が実際に実行している上記ソフトウェアの実行経路を推定し、分割された上記ソースコード情報のうち、上記実行経路に対応するソースコード情報を実行ソースコード情報として判別する実行ソースコード情報判別部とを有し、Based on the control flow information stored in the source code analysis information storage unit, the source code information stored in the source code information storage unit is divided by the branch position and the merge position, and the storage correspondence storage unit stores the source code information. Based on the variable storage correspondence, the value of the variable corresponding to the storage content acquired by the storage content acquisition unit is determined, and at the branch position based on the control condition information stored by the source code information storage unit, It is determined whether the branch condition is satisfied, the execution path of the software that is actually executed by the control unit of the control target device is estimated, and the execution path of the divided source code information corresponds to the execution path An execution source code information determination unit for determining source code information as execution source code information;
上記ソースコード情報表示部は、上記ソースコード情報記憶部が記憶したソースコード情報を表示し、上記実行ソースコード情報判別部が判別した実行ソースコード情報を強調して表示することを特徴とする請求項1乃至請求項12のいずれかに記載の解析支援装置。The source code information display unit displays the source code information stored in the source code information storage unit, and highlights and displays the execution source code information determined by the execution source code information determination unit. The analysis support apparatus according to any one of Items 1 to 12.
上記ソフトウェアのソースコードの情報であるソースコード情報として、関数の定義位置、戻り値、引数、使用している広域変数、局所変数、マクロ、呼び出している関数、呼び出されている関数、関数のプログラム図の情報を含む関数情報と、広域変数の定義位置、型、使用されている位置の情報を含む広域変数情報と、局所変数の定義位置、型、使用されている位置の情報を含む局所変数情報と、引数の定義位置、型、使用されている位置の情報を含む引数情報と、型の定義位置、定義の実体、使用されている位置の情報を含む型情報と、マクロの定義、使用されている位置の情報を含むマクロ情報と、定数の使用されている位置の情報を含む定数情報と、関数スコープの中での広域変数の依存関係の情報を含む広域変数依存関係情報とのうち少なくともいずれかを記憶するソースコード情報記憶部と、
上記解析対象装置と接続して、上記解析対象装置の制御部と上記解析対象装置の制御対象部との間の制御信号を取得する制御信号取得部と、
上記解析対象装置の回路図の情報である回路図情報を記憶する回路図情報記憶部と、
上記ソースコード情報記憶部が記憶したソースコード情報を表示するソースコード情報表示部と、
上記制御信号取得部が取得した制御信号を表示する制御信号表示部と、
上記回路図情報記憶部が記憶した回路図情報を表示する回路図情報表示部とを有することを特徴とする解析支援装置。 A controller having a built-in executable software, the analysis support apparatus for supporting the analysis of the analysis object device and a controlled portion which is controlled by the control unit,
Source code information that is the source code information of the above software includes function definition position, return value, argument, global variable used, local variable, macro, calling function, called function, function program Function information including diagram information, global variable information including global variable definition position, type, and used position information, and local variable including local variable definition position, type, and used position information Argument information including information on information, argument definition position, type, used position information, type definition information including type definition position, definition entity, used position information, macro definition and use Macro information including information on the position where the constant is used, constant information including information on the position where the constant is used, global variable dependency information including information on the dependency of the global variable in the function scope, and Of the source code information storage unit for storing at least one,
A control signal acquisition unit connected to the analysis target device to acquire a control signal between the control unit of the analysis target device and the control target unit of the analysis target device;
A circuit diagram information storage unit for storing circuit diagram information which is information of a circuit diagram of the analysis target device;
A source code information display unit for displaying the source code information stored in the source code information storage unit;
A control signal display unit for displaying the control signal acquired by the control signal acquisition unit;
A circuit diagram information display unit for displaying circuit diagram information stored in the circuit diagram information storage unit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005143937A JP4667954B2 (en) | 2005-05-17 | 2005-05-17 | Analysis support device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2005143937A JP4667954B2 (en) | 2005-05-17 | 2005-05-17 | Analysis support device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2006323480A JP2006323480A (en) | 2006-11-30 |
| JP4667954B2 true JP4667954B2 (en) | 2011-04-13 |
Family
ID=37543134
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2005143937A Expired - Fee Related JP4667954B2 (en) | 2005-05-17 | 2005-05-17 | Analysis support device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4667954B2 (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008204446A (en) * | 2007-01-26 | 2008-09-04 | National Institute Of Advanced Industrial & Technology | Source file editing system |
| JP2008243042A (en) * | 2007-03-28 | 2008-10-09 | Toshiba Corp | Hybrid model simulation apparatus, method and program |
| WO2012011145A1 (en) | 2010-07-20 | 2012-01-26 | 株式会社 日立製作所 | Software maintenance supporting device and electronic control device verified by the same |
| JPWO2014141352A1 (en) * | 2013-03-11 | 2017-02-16 | 株式会社日立製作所 | System controller |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0573354A (en) * | 1991-09-12 | 1993-03-26 | Mitsubishi Electric Corp | Data processing device |
| JPH06171854A (en) * | 1992-12-03 | 1994-06-21 | Hitachi Building Syst Eng & Service Co Ltd | Display device for electrical connection diagram of elevator |
| JPH06263357A (en) * | 1993-03-12 | 1994-09-20 | Mitsubishi Electric Corp | Elevator control equipment |
| JPH06274567A (en) * | 1993-03-22 | 1994-09-30 | Mitsubishi Electric Corp | Logic simulation device |
| JPH08292881A (en) * | 1995-04-24 | 1996-11-05 | Nec Corp | Program influence range display device |
| JP2001157235A (en) * | 1999-11-30 | 2001-06-08 | Hitachi Commun Syst Inc | Automatic switchboard with storage program control |
| JP2002108649A (en) * | 2000-09-29 | 2002-04-12 | Toshiba Corp | Recording medium and program product recording program for supporting trace analysis |
| JP2002312197A (en) * | 2001-04-12 | 2002-10-25 | Toshiba Corp | Control device and monitor device |
| JP2003108404A (en) * | 2001-09-27 | 2003-04-11 | Toshiba Corp | Debugging device, debugging method, and debugging program |
-
2005
- 2005-05-17 JP JP2005143937A patent/JP4667954B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2006323480A (en) | 2006-11-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8612372B2 (en) | Detection rule-generating facility | |
| JP4148527B2 (en) | Functional test script generator | |
| EP2577463B1 (en) | Static analysis using interactive and integration tools | |
| JP6906677B2 (en) | Software visualization device, software visualization method and software visualization program | |
| WO2019144680A1 (en) | Automatic testing method and apparatus, storage medium and electronic device | |
| US20070162903A1 (en) | Systems and methods for identifying and displaying dependencies | |
| US20120116561A1 (en) | Program testing apparatus, method of testing a program, and program testing program | |
| JP5762154B2 (en) | Information processing apparatus, information processing method, and program | |
| CN102236550A (en) | Software development tool | |
| JP2005258944A (en) | Device for analyzing program, analyzing method thereof, and program | |
| JP3842592B2 (en) | Change risk measurement system, change risk measurement method, and change risk measurement program | |
| JP5556655B2 (en) | Analysis support program, analysis support apparatus, and analysis support method | |
| WO2010050381A1 (en) | Device for supporting detection of failure event, method for supporting detection of failure event, and computer program | |
| JP2015043198A (en) | Analysis system, analysis method and analysis program | |
| JP2017220008A (en) | Test supporting device and test supporting method | |
| US8798971B2 (en) | System and method for using a truth table graphical function in a statechart | |
| JP4667954B2 (en) | Analysis support device | |
| JP6692289B2 (en) | Screen information generating device, screen information generating method, and program | |
| JP4328328B2 (en) | Software development tool program | |
| US12271712B2 (en) | Providing metric data for patterns usable in a modeling environment | |
| GB2397905A (en) | Method for automatically generating and ordering test scripts | |
| CN105389164A (en) | COMPUTER-IMPLEMENTED METHOD FOR GENERATING control unit program code and message management environment relating thereto | |
| JP5019021B2 (en) | Control program development support device | |
| JP6534814B2 (en) | INFORMATION PROCESSING APPARATUS, INFORMATION PROCESSING METHOD, AND INFORMATION PROCESSING PROGRAM | |
| Novais et al. | Software evolution visualization: Status, challenges, and research directions |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080205 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20091119 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100608 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100802 |
|
| 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: 20110111 |
|
| 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: 20110112 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140121 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4667954 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| 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 |