JPH03176747A - Debugging method - Google Patents

Debugging method

Info

Publication number
JPH03176747A
JPH03176747A JP1315330A JP31533089A JPH03176747A JP H03176747 A JPH03176747 A JP H03176747A JP 1315330 A JP1315330 A JP 1315330A JP 31533089 A JP31533089 A JP 31533089A JP H03176747 A JPH03176747 A JP H03176747A
Authority
JP
Japan
Prior art keywords
display
debugging
crt
state
crt display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1315330A
Other languages
Japanese (ja)
Inventor
Tatsuo Unno
海野 達夫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Engineering Co Ltd
Hitachi Ltd
Original Assignee
Hitachi Engineering Co Ltd
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Engineering Co Ltd
Priority to JP1315330A priority Critical patent/JPH03176747A/en
Publication of JPH03176747A publication Critical patent/JPH03176747A/en
Pending legal-status Critical Current

Links

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Debugging And Monitoring (AREA)
  • Digital Computer Display Output (AREA)
  • Alarm Systems (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To improve the debugging efficiency of displaying software by simulately changing the state of an apparatus for the CRT display software by using the specification information of the apparatus and updating display data in a plant monitoring system. CONSTITUTION:In a debugging mode, a plant state forming processing part 7 inhibits the data writing in a plant state table 4 and the data are written in the table 4 by a CRT display debugging processing part 6 instead of the part 7. The name and display format of an apparatus to be displayed on a CRT are defined in display specification information 3. A CRT display processing part 2 edits the state of the apparatus from the table 4 in accordance with the name of the apparatus for the information 3 and displays the edited result on a CRT display/input device 5. At the time of debugging, the debugging processing part 6 is interrupted by an instruction from the device 5 and each apparatus in the information 3 is read out in each interruption to change the state of the corresponding table 4.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、計算機システムにおけるデバッグ方法に係り
、CRTを用いた画面表示を目的としたソフトウェアの
効率的なデバッグ方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a debugging method in a computer system, and more particularly to an efficient debugging method for software intended for screen display using a CRT.

〔従来の技術〕[Conventional technology]

従来の計算機システムにおけるCRT表示のデバッグ方
法としては、第5図(a)に示す様に、計算機1に接続
されたシミュレータ9を用いる方法が一般的である。実
際の計算機システムでは、プラントの状態をとらえる計
装群またはその計装群の情報を分散処理し上位へ伝える
下位計算機の役割をシミュレータ9がデバッグ時に模擬
的に行う、これにより、弁の開、閉の状態やポンプの運
転・停止の状態などのプラントの装置・機器の状態を反
映させたプラント状態テーブル4をプラント状態作成処
理7がシミュレータの入力情報を基にプラント状態テー
ブルを変更することでCRT表示処理2がCRT表示装
置入力装置5への表示を基にソフトウェアのデバッグを
行う。このとき、デバッグ者は、シミュレータのスイッ
チをON・○FFL、それに対応した表示が、仕様と同
じになっているか確認し同じであれば、次の入力のスイ
ッチを0N−OFFさせ再び確認するという作業となる
A common method for debugging a CRT display in a conventional computer system is to use a simulator 9 connected to a computer 1, as shown in FIG. 5(a). In an actual computer system, during debugging, the simulator 9 simulates the role of the instrumentation group that captures the plant status or the lower-level computer that processes the information of the instrumentation group in a distributed manner and transmits it to the upper level. The plant state creation process 7 creates a plant state table 4 that reflects the state of plant devices and equipment, such as closed state and pump operation/stop state, by changing the plant state table based on the input information of the simulator. A CRT display processing 2 debugs software based on the display on the CRT display input device 5. At this time, the debugger turns the simulator switch ON and ○FFL, checks whether the corresponding display is the same as the specification, and if it is the same, turns the next input switch 0N-OFF and checks again. It becomes work.

また、第5図(b)にシミュレータを使用しないで下位
計算機または計装群8をハード的にはそのままで、CR
Tから装置・機器名称及びその状態を入力してプラント
状態テーブルを書き換えるデバッグ方法も増えつつある
。デバッグモード時には、プラント状態作成処理7がプ
ラント状態テーブル4へ書き込みをしない様にし、代わ
りに、デバッグ用プラント状態作成処理10が、書き込
み可となる様にしてある。このデバッグ用プラント状態
作成処理10も人が、1つ1つシミュレータと同様に、
各機器の名称・状態を入力せねばならず、多くの手間が
かかる。なお、デバッグ方法として関連するものとして
特公昭61−24733号がある。
In addition, in Figure 5(b), without using a simulator, the CR
A debugging method that rewrites the plant status table by inputting device/equipment names and their status from T is also increasing. In the debug mode, the plant state creation process 7 is prevented from writing to the plant state table 4, and instead, the debug plant state creation process 10 is enabled to write. This debugging plant state creation process 10 is also performed by humans one by one, just like the simulator.
The name and status of each device must be entered, which takes a lot of effort. Note that Japanese Patent Publication No. 61-24733 is related to the debugging method.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記従来技術は、プラントの状態を表示することを目的
とした数多くの装置・機器の状態を表示するCRT表示
処理の様な確認点数の多いソフトウェアにおいて、その
デバッグ項目の作成とそのテスト項目に従ったシミュレ
ータを用いたプラント状態テーブルの書き換えによる装
置・機器の状態を変えてゆく作業時間と作業量の多さと
いう問題があり、これがテスト項目の抜けなどを誘発し
、ソフトウェアそのものの品質にまで影響を与えている
The above-mentioned conventional technology is designed to create debug items and follow the test items for software that requires a large number of points to be checked, such as CRT display processing that displays the status of numerous devices and equipment for the purpose of displaying the status of a plant. There is a problem in that it takes a lot of time and amount of work to change the state of equipment and equipment by rewriting the plant state table using a simulator, which leads to omission of test items and affects the quality of the software itself. is giving.

近年、CRT表示を行う様なソフトウェアも含めて作成
する作業自体は、容易になる方向へ進んでいるが、ソフ
トウェアのデバッグ方法は、依然として前記の様な手間
のかかる手法がとられておりデバッグ時間の短縮が求め
られている。さらにプラントの状態表示が、グラフィッ
クパネルなどからCRT表示へと移ってきたことからも
上記の様な多数のデバッグ件数を必要とするソフトウェ
アは、増加する方向にある。
In recent years, the task of creating software, including software for CRT display, has become easier, but the method of debugging software still requires the labor-intensive method described above, which reduces debugging time. is required to be shortened. Furthermore, as plant status display has shifted from graphic panels and the like to CRT displays, the number of software requiring a large number of debugs as described above is increasing.

本発明の目的は、CRT表示のソフトウェアのデバッグ
時における時間と手順の多さを減らすことにある。
An object of the present invention is to reduce the time and number of steps required when debugging CRT display software.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的を遠戚するためにデバッグ時に装置・機器の状
態をテスト方案通りに人手で設定していたものを、すで
に計算機の中に定義されている表示仕様情報を用いて定
義されている装置・機器の状態を模擬的に順次変更して
ゆく様なCRT表示デバッグ処理をデバッグ時に動作す
る様にする。
In order to achieve the above purpose, the state of devices and equipment was manually set according to the test plan during debugging, but the state of devices and devices defined using display specification information already defined in the computer To operate a CRT display debugging process that sequentially changes the state of a device in a simulated manner during debugging.

このとき、CRT表示デバッグ処理は1表示仕様として
定義された通りに装置・機器の状態テーブルを書き換え
るため、テストデータ作成しないでかつテストデータの
手入力なしにテストが可能となる。
At this time, since the CRT display debugging process rewrites the status table of the device/equipment as defined as one display specification, testing can be performed without creating test data and without manually inputting test data.

以上の様に、本デバッグ方法は、CRT表示処理のソフ
トウェアのデバッグ時の時間、と手順の多さを減らすこ
とが可能となる。
As described above, the present debugging method makes it possible to reduce the time and number of steps when debugging software for CRT display processing.

〔作用〕[Effect]

CRT表示デバッグ処理は、CRT表示を行うための表
示仕様情報の装置・機器名称や表示フォーマットといっ
た表示用にあらかじめ定義されている情報を用いて、そ
の装置・機器毎の状態が格納されているプラント状態テ
ーブルの状態を模擬的に書き変える。それによって、デ
バッグ対象であるCRT表示処理により表示された結果
と仕様とを対比させることでデバッグが可能である。こ
れを繰り返すことで、人手によるテストデータの入力な
どのわずられしさなしに簡単にテスト可能となる。
CRT display debug processing uses information predefined for display, such as device/equipment names and display formats of display specification information for CRT display, and uses plant information that stores the status of each device/equipment. Rewrite the state of the state table in a simulated manner. Thereby, debugging is possible by comparing the results displayed by the CRT display processing to be debugged with the specifications. By repeating this process, testing can be easily performed without the hassle of manually inputting test data.

〔実施例〕〔Example〕

以下、本発明の一実施例を示す。 An embodiment of the present invention will be shown below.

第1図に示すCRT表示デバッグ処理6は1表示仕様情
報3に定義されている表示仕様に従い、プラント状態テ
ーブル4の装置・機器の状態を変える処理を行う、プラ
ント状態テーブルにはプラントの装置・機器毎の状態が
格納されている。第1図で通常時のオンラインモード時
は、下位計算機または、計算群8の状態を、プラント状
態作成処理7が、各装置・機器の状態としてプラント状
態テーブル4の該当するエリアに格納する。デバッグモ
ード時には、プラント状態作成処理7は、プラント状態
テーブル4へは書き込まない様にし、代わりにCRT表
示デバッグ処理6により書き込む様にする。
The CRT display debugging process 6 shown in FIG. The status of each device is stored. In FIG. 1, in the normal online mode, the plant state creation process 7 stores the state of the lower-level computer or the calculation group 8 in the corresponding area of the plant state table 4 as the state of each device/equipment. In the debug mode, the plant state creation process 7 does not write to the plant state table 4, but instead writes in the CRT display debug process 6.

表示仕様情報3は、CRTに表示すべき装置・機器の名
称を定義し、またその表示フォーマットも併せて定義し
てある。CRT表示処理2は、この表示仕様情報3の装
置・機器の名称に従いその状態をプラント状態テーブル
4より編集し、CRT表示装置・入力装置5へ表示を行
う。このときデバッグ時においてはCRT表示装置・入
力装置5の指示により、CRT表示デバッグ処理に割り
込みが入り、表示仕様情報3の装置・機器を1つずつ割
込み毎に読み込み対応す°るプラント状態テーブルの状
態を変える。
The display specification information 3 defines the name of the device/equipment to be displayed on the CRT, and also defines the display format thereof. The CRT display processing 2 edits the status from the plant status table 4 according to the name of the device/equipment in the display specification information 3, and displays it on the CRT display/input device 5. At this time, during debugging, an instruction from the CRT display/input device 5 causes an interrupt to the CRT display debugging process, and the devices/equipment in the display specification information 3 are read one by one for each interrupt, and the corresponding plant status table is created. change the state.

第2図にCRTデバッグ処理を示す。入出力装置よりの
割込み発生毎に第1図に示す表示仕様情報3より装置・
機器の定義を参照しく101)、その装置・機器に対応
するプラント状態テーブル4を変更する(102)。そ
して、その変更したテスト対象の装置・機器名称とその
状態を表示する(102)。
FIG. 2 shows CRT debugging processing. Each time an interrupt occurs from an input/output device, the device/output device is
Refer to the equipment definition (101) and change the plant status table 4 corresponding to the device/equipment (102). Then, the changed test target device/equipment name and its status are displayed (102).

第3図には、CRT表示処理2による表示の具体例を示
す。右下の点線で囲ったものが、CRT表示デバッグ処
理が、バルブAを閉として処理したことを示す表示であ
り、それ以外の表示がデバッグ対象のソフトウェアCR
T表示処理2による表示となる。
FIG. 3 shows a specific example of display by CRT display processing 2. The one surrounded by a dotted line at the bottom right is the display indicating that the CRT display debugging process has processed valve A as closed, and the other displays are the software CR to be debugged.
The display is performed using T display processing 2.

第4図に示すのは、表示仕様情報で装置・機器名A、B
、C・・・他が順に定義されている。この定義順序は、
CRT表示の仕様書に対応しているので、まず、最初の
CRT表示装置・入力装置5からのCRT表示デバッグ
処理6への割込みで装置・機器のバルブAのプラント状
態テーブル4を書き換えると、CRT表示処理2が、第
4図の表示仕様情報に従いバルブAの表示を第3図のA
の位置に行う。このとき画面の右下にはCRT表示デバ
ッグ処理6によりAの状態が表示されるのでこれらを仕
様書と対比させることで表示位置・シンボル・表示機器
名称等の確認ができる。次の装置・機器Bをデバッグし
たい場合には、第1図のCRT表示装置を兼ねているC
RT表示装置・入力装置5から次の装置・at器の処理
を要求する割込を入れれば良い。これは、キーボードな
どの入力装置の予備となっているキーをこの割込用に割
り当てることで可能となる。この割込み毎に第2図の1
01で表示仕様情報3を参照するときに参照データを1
つずつ更新してゆけば、つぎづきとデバッグが可能とな
る。
Figure 4 shows the display specification information for device/equipment names A and B.
, C... and others are defined in order. This definition order is
Since it corresponds to the CRT display specifications, first, when the plant status table 4 of the valve A of the device/equipment is rewritten by an interrupt to the CRT display debugging process 6 from the first CRT display/input device 5, the CRT Display processing 2 changes the display of valve A to A in Figure 3 according to the display specification information in Figure 4.
Do it in the position. At this time, the status of A is displayed at the bottom right of the screen by the CRT display debugging process 6, so by comparing these with the specifications, the display position, symbol, display device name, etc. can be confirmed. If you want to debug the next device/equipment B, use the CRT display device shown in Figure 1.
It is sufficient to insert an interrupt from the RT display device/input device 5 to request processing of the next device/at device. This can be done by assigning a spare key on an input device such as a keyboard to this interrupt. 1 in Figure 2 for each interrupt.
When referencing display specification information 3 with 01, set the reference data to 1.
If you update them one by one, you will be able to continue debugging.

CRT表示デバッグ処理6に対する割込みは、計算機内
部のタイマーで一定間隔で発生させることもできる。こ
のときは、人手による入力の必要もないため一層の効率
向上が図れる。
Interrupts to the CRT display debugging process 6 can also be generated at regular intervals using a timer inside the computer. At this time, there is no need for manual input, so efficiency can be further improved.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、CRT表示処理のテストにおいて、装
置・機器の表示位置及び、データ定義テーブルの定義ま
ちがいなどもCRTに表示された、デバッグ用の装置・
機器とその状態とCRT上のシンボルと、仕様書の対比
でデバッグデータの作成することなしに容易に行え、か
つ、−度行ったデバッグの再現も容易に行える。これに
よりデバッグ効率を上げるという効果がある。
According to the present invention, in a test of CRT display processing, the display position of the device/equipment and definition mistakes in the data definition table are also displayed on the CRT.
By comparing the equipment, its status, symbols on the CRT, and specifications, debugging can be easily performed without creating debugging data, and it is also easy to reproduce debugging that has been performed several times. This has the effect of increasing debugging efficiency.

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

第工図は本発明の一実施例のCRT表示デバッグ処理の
動作概念図、第2図はデバッグ処理のフロー図、第3図
はデバッグ用の表示例を示す図、第4図は表示仕様情報
の定義の概念図、第5図(a)、(b)は、従来の方法
を示す図である。 1・・・計算機、2・・・CRT表示処理、3・・・表
示仕様情報、4・・・プラント状態テーブル、5・・・
CRT表示装置・入力装置、6・・・CRT表示デバッ
グ処理、7・・・プラント状態作成処理、8・・・下位
計算機また弔 1 図 弔 図 第 図 弔 図 0 第 図 (α)
Fig. 2 is a conceptual diagram of the operation of CRT display debug processing according to an embodiment of the present invention, Fig. 2 is a flow diagram of debug processing, Fig. 3 is a diagram showing an example of display for debugging, and Fig. 4 is display specification information. 5(a) and 5(b) are diagrams showing the conventional method. 1... Computer, 2... CRT display processing, 3... Display specification information, 4... Plant status table, 5...
CRT display/input device, 6...CRT display debugging process, 7...Plant status creation process, 8...Lower computer or condolence 1 Diagram 1 Diagram 0 Diagram (α)

Claims (1)

【特許請求の範囲】[Claims] 1、プラントの状態を、CRTを用いて監視する計算機
システムにおいて、CRT表示ソフトウェア用にすでに
作成してある装置・機器の表示仕様情報を用いて、ただ
1つの信号の入力でプラントの機器の状態を順次模擬的
に変更し、表示データを更新することによりCRT表示
ソフトウェアをデバッグすることを特徴とするデバッグ
方法。
1. In a computer system that monitors the status of a plant using a CRT, the status of plant equipment can be monitored by inputting only one signal using display specification information for devices and equipment that has already been created for CRT display software. 1. A debugging method characterized in that CRT display software is debugged by sequentially simulating changes and updating display data.
JP1315330A 1989-12-06 1989-12-06 Debugging method Pending JPH03176747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1315330A JPH03176747A (en) 1989-12-06 1989-12-06 Debugging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1315330A JPH03176747A (en) 1989-12-06 1989-12-06 Debugging method

Publications (1)

Publication Number Publication Date
JPH03176747A true JPH03176747A (en) 1991-07-31

Family

ID=18064112

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1315330A Pending JPH03176747A (en) 1989-12-06 1989-12-06 Debugging method

Country Status (1)

Country Link
JP (1) JPH03176747A (en)

Similar Documents

Publication Publication Date Title
US20060085783A1 (en) Multi-process display method in debugger system
JPS6116100B2 (en)
JP2002163020A (en) Method and device for detecting abnormality in programmable controller
JPH03176747A (en) Debugging method
JP3167245B2 (en) Programmable controller operating state monitoring device
JPH0938876A (en) Simulation device
JPH1011116A (en) Data processor, simulation method, and recording medium
JPH10133559A (en) Maintenance training simulator
Gray A computer simulator for use in an introductory course on computer systems and assembly language programming
JPH0244269A (en) System for analyzing trouble of lsi
JP2953932B2 (en) Maintenance panel operation training device
JP2637343B2 (en) Plant simulator
JP3443184B2 (en) Programmer for programmable controller
JPS63247842A (en) Evaluation system for test program
JPH01250109A (en) Robot simulation device
JPH01307837A (en) Mpu simulation method and mpu simulator
JPH05334135A (en) Error information display system for abnormal end of program
JPH11134218A (en) Display screen debugging device for program type display device
JPH0651692A (en) Plant simulating device
Kaplan Some debugging strategies for assembler-based minicomputer operating systems
JPH1115697A (en) Debugging method for program type display device
JPS63188268A (en) Design supporting device
JPH11191072A (en) Debug break processing method and debug processor
JPH0233178B2 (en)
JPH02253305A (en) Signal tracing system for programmable controller