JPS6349852A - Simulation system - Google Patents

Simulation system

Info

Publication number
JPS6349852A
JPS6349852A JP61193631A JP19363186A JPS6349852A JP S6349852 A JPS6349852 A JP S6349852A JP 61193631 A JP61193631 A JP 61193631A JP 19363186 A JP19363186 A JP 19363186A JP S6349852 A JPS6349852 A JP S6349852A
Authority
JP
Japan
Prior art keywords
data
state
signal
output signal
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP61193631A
Other languages
Japanese (ja)
Inventor
Shiyouji Tsudera
津寺 省児
Sakae Ayabe
栄 綾部
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 High Tech Corp
Original Assignee
Hitachi Electronics Engineering Co 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 Electronics Engineering Co Ltd filed Critical Hitachi Electronics Engineering Co Ltd
Priority to JP61193631A priority Critical patent/JPS6349852A/en
Publication of JPS6349852A publication Critical patent/JPS6349852A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To perform the effective test and debug of a control program by producing input data based on signal data prescribed independently for each output signal of a device and with correspondence to the time for each signal state. CONSTITUTION:A data generator 16 produces the input data corresponding to the state of each output signal of a device based on the signal data prescribed independently for each output signal of the device and with correspondence to the time for each signal state and while a control program is simulated by a program simulator 10. These produced input data are inputted to the simulator 10. This signal data can be greatly reduced compared with the input data produced from said signal data since no consideration is required for other signals in a production or alteration mode. Thus it is possible to perform the effective test and debug of the control program.

Description

【発明の詳細な説明】 [産業上の利用分野コ この発明は、装置を制御するための制御プログラムのテ
ストおよびデバッグを行うためのシミュレーションシス
テムに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a simulation system for testing and debugging a control program for controlling an apparatus.

[従来の技術] ロボットシステムのように、制御プログラムに従って1
以上の装置を制御する制御システムの開発において、装
置の完成前に、制御プログラムのテストおよびデバッグ
を行うことが多い。
[Prior art] Like a robot system, one
In developing a control system for controlling the above devices, testing and debugging of the control program are often performed before the device is completed.

一般に、このようなテストおよびデバッグは、大型計算
機システム上でソフトウェアによって実現されたシミュ
レーションシステムを用いて行われる。
Generally, such testing and debugging is performed using a simulation system implemented by software on a large-scale computer system.

[解決しようとする問題点コ 従来のそのようなシミュレーションシステムは、制御プ
ログラムによって制御される装置の各出力信号の状態を
示す入力データを予め作成し、入力しなければならない
[Problems to be Solved] In such a conventional simulation system, input data indicating the state of each output signal of a device controlled by a control program must be created and input in advance.

ここで、制御プログラムによって制御される装置の出力
信号は、ビット毎に意味を有し非同期に状態が変化する
ものであるため、対象としている制御システムの実機と
同様な条件で、制御プログラムの充分なテストおよびデ
バッグを行うには、多量の入力データを作成する必要が
ある。
Here, since the output signal of the device controlled by the control program has a meaning for each bit and changes its state asynchronously, the control program should be fully tested under the same conditions as the actual device of the target control system. To perform extensive testing and debugging, it is necessary to generate large amounts of input data.

しかも、シミュレーションシステムには、装置出力信号
の状態情報をバイトデータとして入力する必要があり、
複数の出力信号の相互を意識して入力データを作成しな
ければならない。
Moreover, it is necessary to input the state information of the device output signal as byte data into the simulation system.
Input data must be created with mutual understanding of multiple output signals.

また、装置の異常状態の再現などのために、装置の動作
の変更が必要になることが少なくないが、その場合、そ
の変更に関連した出力信号だけではなく、他の出力信号
も含めてバイト単位で入力データを変更する必要がある
In addition, it is often necessary to change the operation of a device in order to reproduce an abnormal state of the device, and in that case, not only the output signals related to the change but also other output signals are processed by the byte. It is necessary to change the input data in units.

このようなことから、従来のシミュレーションシステム
によって制御プログラムのテストおよびデバッグを行う
場合、入力データの作成および変更のための作業量が膨
大であり、テストおよびデバッグの能率低下、ひいては
制御プログラムの開発時間の増大を招いている。
For these reasons, when testing and debugging control programs using conventional simulation systems, the amount of work required to create and change input data is enormous, reducing the efficiency of testing and debugging, and ultimately reducing the development time of control programs. This has led to an increase in

[発明の目的] したがって、この発明の目的は、入力データの作成およ
び変更の容易化を図り、装置制御プログラムのテストお
よびデバッグを能率的に行うことができるシミュレーシ
ョンシステムを提供することにある。
[Object of the Invention] Therefore, an object of the present invention is to provide a simulation system that facilitates creation and modification of input data and allows efficient testing and debugging of device control programs.

[問題点を解決するための手段] 前記従来の問題点を解決して前記目的を達成するために
、この発明によるシミュレーションシステムは、装置を
制御するための制御プログラムを模擬実杼するためのプ
ログラムシミュレータと、前記装置の個々の出力信号毎
に独立にその状態を時間と対応づけて記述した信号デー
タに基づき、前記プログラムシミュレータによる制御プ
ログラムの模擬実行中に前記装置の各出力信号の状態に
対応した入力データを生成して前記プログラムシミュレ
ータに入力するデータジェネレータとををする構成とさ
れる。
[Means for Solving the Problems] In order to solve the conventional problems and achieve the object, the simulation system according to the present invention includes a program for simulating a control program for controlling an apparatus. The program simulator corresponds to the state of each output signal of the device during the simulated execution of the control program by the program simulator, based on the signal data that independently describes the state of each output signal of the device in association with time. and a data generator that generates input data and inputs it to the program simulator.

[作用] このように、この発明のシミュレーションシステムにお
いては、装置の各出力信号の状態に対応した入力データ
そのものを予め作成して与える必要はなく、前記のよう
な信号データに基づき、データジェネレータによって入
力データが生成されてプログラムシミュレータに入力さ
れる。
[Operation] As described above, in the simulation system of the present invention, it is not necessary to create and provide the input data itself corresponding to the state of each output signal of the device in advance; Input data is generated and input to the program simulator.

そして、この信号データは、装置の個々の出力信号毎に
独立にその状態を時間と対応づけて記述したものである
から、作成または変更の際に他の信号を考慮する必要が
ない。また、この信号データは、それに基づき生成され
る入力データに比較し、そのデータ量を大幅に少なくで
きる。
Since this signal data independently describes the state of each output signal of the device in association with time, there is no need to consider other signals when creating or changing the signal data. Further, the amount of data of this signal data can be significantly reduced compared to the input data generated based on it.

したがって、従来のように入力データそものを用意する
場合に比較して、はるかに容易に信号データの作成およ
び変更を行い、制御プログラムのテストおよびデバッグ
を能率的に行うことができる。
Therefore, compared to the conventional case where input data itself is prepared, signal data can be created and changed much more easily, and control programs can be tested and debugged more efficiently.

[実施例コ 以下、図面を参照し、この発明の一実施例について説明
する。
[Example 1] An example of the present invention will be described below with reference to the drawings.

第1図は、この発明のシミュレーションシステムの機能
的構成を簡略化して示す概略ブロンク図である。第2図
は、このシミュレーションシステムが実現される計算機
システムの簡略化したシステム構成図である。
FIG. 1 is a schematic diagram showing a simplified functional configuration of the simulation system of the present invention. FIG. 2 is a simplified system configuration diagram of a computer system that implements this simulation system.

まず、第2図において計算機システムについて説明すれ
ば、1はメモリであり、これにはシステムバス2を介し
て中央演算処理装置(CPU)3およびチャネル4が接
続されている。チャネル4には、ディスク制御装置5を
介して磁気ディスク装置6が接続されている。
First, referring to FIG. 2, the computer system will be described. Reference numeral 1 denotes a memory, to which a central processing unit (CPU) 3 and a channel 4 are connected via a system bus 2. A magnetic disk device 6 is connected to the channel 4 via a disk controller 5 .

前記各部の機能は標準的であるから、その説明は割愛す
る。
Since the functions of each of the above-mentioned parts are standard, their explanation will be omitted.

つぎに第1図を参照し、このシミュレーションシステム
について説明するが、これは前記計算機システム上でソ
フトウェアによって実現されるので、以下の説明におい
て第2図も適宜参照する。
Next, this simulation system will be explained with reference to FIG. 1, but since this is realized by software on the computer system, FIG. 2 will also be referred to as appropriate in the following description.

/Oは制御プログラムの模擬実行を行うためのプログラ
ムシミュレータである。このプログラムシミュレータ/
Oは、計算機システムのハードウェア資源を利用し、ソ
フトウェアによって実現されるものである。そのための
プログラムは、ある磁気ディスク装置6からメモリ1の
特定領域にロードされてCPU3により実行される。
/O is a program simulator for performing simulated execution of a control program. This program simulator/
O is realized by software using the hardware resources of the computer system. A program for this purpose is loaded into a specific area of the memory 1 from a certain magnetic disk device 6 and executed by the CPU 3.

12はサイクルカウンタである。このサイクルカウンタ
12は、プログラムシミュレータ/Oによる制御プログ
ラムの模擬実行の開始時にリセットされ、以後、マシン
サイクルと同期してカウントアツプされる。したがって
、このサイクルカウンタ12によって、制御プログラム
の模擬実行時間(サイクル数)の情報が得られる。
12 is a cycle counter. This cycle counter 12 is reset at the start of simulated execution of the control program by the program simulator/O, and thereafter counts up in synchronization with the machine cycle. Therefore, the cycle counter 12 provides information on the simulated execution time (number of cycles) of the control program.

このサイクルカウンタ12は、例えばCPU3の内部レ
ジスタによって実現されるか、あるいは、メモリ1上に
ソフトウェアカウンタとして実現される。
This cycle counter 12 is realized, for example, by an internal register of the CPU 3 or as a software counter on the memory 1.

14はプログラムシミュレータ/Oのデータファイルと
してのプログラムファイルであり、テストおよびデバッ
グの対象となる制御システムの制御プログラムを格納し
ている。このプログラムファイル14は、実際にはある
磁気ディスク装置6が割り当てられ、その模擬実行に先
立ってメモリ1の特定領域(プログラムシミュレータ/
Oのデータ領域)にロードされる。
A program file 14 is a data file of the program simulator/O, and stores a control program for a control system to be tested and debugged. This program file 14 is actually allocated to a certain magnetic disk device 6, and is stored in a specific area of the memory 1 (program simulator/
(data area of O).

16はデータジェネレータであり、制御プログラムによ
って制御される装置からの入力データを生成してプログ
ラムシミュレータ/Oに入力するためのものである。こ
のデータジェネレータ16も、計算機システムのハード
ウェア資源を利用し、ソフトウェアによって実現される
ものである。そのためのプログラムは、ある磁気ディス
ク装置6からメモリ1の特定領域にロードされてCPU
3により実行される。
A data generator 16 generates input data from a device controlled by a control program and inputs it to the program simulator/O. This data generator 16 also utilizes the hardware resources of the computer system and is realized by software. The program for this purpose is loaded from a certain magnetic disk device 6 into a specific area of the memory 1, and is executed by the CPU.
3.

18はデータジェネレータ16のデータファイルとして
の信号データファイルである。この信号データファイル
18には、制御プログラムによって制御される装置の個
々の出力信号毎に独立にその状態を時間と対応づけて記
述した信号データが格納されている。
18 is a signal data file as a data file of the data generator 16. This signal data file 18 stores signal data in which the state of each output signal of the device controlled by the control program is described independently in association with time.

この信号データについて、第3図により説明する。This signal data will be explained with reference to FIG.

この図において、20は装置のある出力信号を示してい
る。22はこの出力信号20を記述した信号データを模
式的に示している。
In this figure, 20 indicates an output signal of the device. 22 schematically shows signal data describing this output signal 20.

図から明らかなように、この信号データ22は基本的に
は、出力信号20の状態変化の度に、その変化後の状態
(1または0)の情報と、その継続時間(t/−t2な
ど)の情報を1バイト(これは−例であり、その長さは
任意であるが)で記述したデータを時系列に配列したデ
ータ構造である。この継続時間の単位は、サイクルカウ
ンタ12のカウントアツプ周期と一致している。
As is clear from the figure, this signal data 22 basically includes information on the state after the change (1 or 0) and its duration (t/-t2, etc.) each time the output signal 20 changes state. ) information written in 1 byte (this is just an example, and the length is arbitrary) is a data structure in which data is arranged in chronological order. The unit of this duration matches the count-up period of the cycle counter 12.

また、時刻t4から時刻t8の区間のように、出力信号
20が同一の状態変化パターンを繰り返す部分について
は、その状態変化パターンを同様に記述したバイト列と
、開始マーク、繰り返し回数および終了マークの各バイ
トを組み合わせた構造とし、信号データ22の記述の簡
略化、およびそのデータ量の圧縮を図っている。
In addition, for a portion where the output signal 20 repeats the same state change pattern, such as the interval from time t4 to time t8, a byte string that similarly describes the state change pattern, a start mark, the number of repetitions, and an end mark are included. The structure is a combination of each byte to simplify the description of the signal data 22 and compress the amount of data.

同様の構造の信号データが装置のすべての出力信号につ
いて、それぞれ独立に作成され、信号データファイル1
8に格納される。
Signal data with a similar structure is created independently for all output signals of the device, and the signal data file 1
It is stored in 8.

このような信号データは、他の出力信号を意識すること
なく作成または変更が可能である。また、この信号デー
タは、それに基づき生成されるデータ、つまり従来、予
め作成する必要のあったデータに比較し、データ量が大
幅に少なくなる。したがって、信号データの作成および
変更の作業は、従来のデータ作成または変更の作業に比
較し、通に容易である。
Such signal data can be created or changed without being aware of other output signals. Further, the amount of data of this signal data is significantly smaller than that of data generated based on it, that is, data that conventionally needs to be created in advance. Therefore, the work of creating and modifying signal data is much easier than the work of creating or modifying conventional data.

再び第1図において、データジェネレータ16について
説明する。このデータジェネレータ16は機能的には、
制御部26、サイクルレジスタ28、データ制御部30
、このデータ制御部30に関連した継続時間累積カウン
タ320〜327および回数カウンタ340〜347、
合成レジスタ38、データ出力レジスタ32、さらに信
号データバッファ400〜407から構成されている。
Referring again to FIG. 1, the data generator 16 will be explained. This data generator 16 is functionally as follows.
Control unit 26, cycle register 28, data control unit 30
, duration cumulative counters 320 to 327 and frequency counters 340 to 347 related to this data control unit 30,
It consists of a synthesis register 38, a data output register 32, and further signal data buffers 400-407.

このようなデータジェネレータ16のバッファ、レジス
タ、カウンタなどは、メモリ1の特定の記憶域またはC
PU3の内部レジスタなどを用いて実現される。
Buffers, registers, counters, etc. of such data generator 16 are stored in specific storage areas of memory 1 or C
This is realized using internal registers of the PU3.

また、信号データバッファ400〜407には、制御プ
ログラムの模擬実行の開始に先立ち、信号データファイ
ル18から装置の対応した出力信号を記述した信号デー
タが予めロードされる。
Furthermore, signal data describing the corresponding output signals of the device is loaded in advance into the signal data buffers 400 to 407 from the signal data file 18 before the start of the simulated execution of the control program.

次に1.このシミュレーンヨンシステムにおける制御プ
ログラムの模擬実行と、データ生成および入力の動作に
ついて説明する。
Next 1. The simulated execution of the control program and the data generation and input operations in this simulation system will be explained.

プログラムシミュレータ/Oは、制御プログラム(メモ
リlにロード済み)の命令を1語ずつ読込んで解釈しな
がら、計算機システムのハードウェア資源を利用して制
御プログラムの模擬実行を行う。
The program simulator/O reads and interprets the instructions of the control program (loaded into the memory l) word by word and executes the control program in a simulated manner using the hardware resources of the computer system.

模擬実行中に、プログラムシミュレータ/Oはアクセス
アドレスから対象としている装置に対する入力命令を検
出すると、制御をデータジェネレータ16に渡す。
During simulated execution, when the program simulator/O detects an input command to the target device from the access address, it passes control to the data generator 16.

そうすると、データジェネレータ16の制御部26は、
プログラムシミュレータ/Oのサイクルカウンタ12の
値(この時点までの模擬実行時間の情報)をサイクルレ
ジスタ28にロードさせたのち、データ制御部30を作
動させる。
Then, the control unit 26 of the data generator 16
After loading the value of the cycle counter 12 of the program simulator/O (information on the simulated execution time up to this point) into the cycle register 28, the data control unit 30 is activated.

データ制御部30は、サイクルレジスタ28の値と各継
続時間累積カウンタ320〜32フの値とを比較する。
The data control unit 30 compares the value of the cycle register 28 with the value of each duration accumulation counter 320-32.

ここで、各継続時間累積カウンタ320〜327の値は
、その時点まで入力データ発生のために利用した各信号
データ(信号データバッファ400〜40)にロード済
み)の状態継続時間の累積値である。
Here, the value of each duration cumulative counter 320 to 327 is the cumulative value of the state duration of each signal data (loaded into the signal data buffers 400 to 40) used for input data generation up to that point. .

一例として第3図の出力信号20について考え、現在の
時刻が時刻1/から時刻t2の間であったとする。この
場合、出力信号20の信号データに対応する継続時間累
積カウンタの値は、tl−to +t2−tz =t2
−toとなっている。
As an example, consider the output signal 20 in FIG. 3 and assume that the current time is between time 1/ and time t2. In this case, the value of the duration cumulative counter corresponding to the signal data of the output signal 20 is tl-to +t2-tz =t2
-to.

さて、例えば継続時間累積カウンタ320の値がサイク
ルカウンタ28の値以上であれば、データ制御部30は
、その直前までデータ生成に利用していた信号データ(
信号データバッファ40゜内)の1バイトをそのまま選
択し、その状態情報(1または0)を合成レジスタ38
(8ビ・ットレジスタ)の対応ビットにセットする。
Now, for example, if the value of the duration cumulative counter 320 is greater than or equal to the value of the cycle counter 28, the data control unit 30 controls the signal data (
1 byte of the signal data buffer (within 40°) is selected as is, and its status information (1 or 0) is sent to the synthesis register 38.
(8-bit register).

逆に、例えば継続時間累積カウンタ327の値がサイク
ルカウンタ28の値より小さい場合、データ制御部30
は、その直前までデータ生成に利用していた信号データ
のバイトの次のバイト(信号データバッファ407内)
を選択し、その状態情報を合成レジスタ38の対応ビッ
トにセットする。また、その新しく選択した信号データ
のバイトの継続時間情報によって示される時間分だけ、
継続時間累積カウンタ327をインクリメントする。
Conversely, if the value of the duration cumulative counter 327 is smaller than the value of the cycle counter 28, for example, the data control unit 30
is the next byte (in the signal data buffer 407) of the byte of signal data that was used for data generation just before that.
is selected and its state information is set in the corresponding bit of the synthesis register 38. Also, for the time indicated by the duration information of the newly selected byte of signal data,
The duration cumulative counter 327 is incremented.

装置の他の出力信号に関しても同様の処理が行われる。Similar processing is performed for other output signals of the device.

このようにして、装置のすべての出力信号に関する状態
情報が合成レジスタ38にセットされると、制御部26
は合成レジスタ38の内容(信号データから生成された
8ビツトの入力データ)をデータ出力レジスタ32へ転
送させたのち、制御をプログラムシミュレータlOに戻
す。
In this way, when the state information regarding all output signals of the device is set in the synthesis register 38, the control unit 26
transfers the contents of the synthesis register 38 (8-bit input data generated from signal data) to the data output register 32, and then returns control to the program simulator IO.

そうすると、プログラムシミュレータ/Oはデータ出力
レジスタ32から入力データを取り込み(入力データが
制御プログラムに渡される)、制御プログラムの模擬実
行を続ける。
Then, the program simulator/O takes in input data from the data output register 32 (the input data is passed to the control program) and continues the simulated execution of the control program.

ここで、第3図に示した出力信号20の時刻tqから時
刻t8の区間のように、同一の状態変化パターンの繰り
返し区間に関するパターンジェネレータ16の動作を説
明する。
Here, the operation of the pattern generator 16 regarding a repeating section of the same state change pattern, such as the section from time tq to time t8 of the output signal 20 shown in FIG. 3, will be described.

なお、ここでは、そのような出力信号を記述した信号デ
ータが、信号データバッファ400にあるものとして説
明する。
Note that the following explanation assumes that signal data describing such an output signal exists in the signal data buffer 400.

データ制御部30は、新たに選択しようとした信号デー
タのバイトが開始マークの場合、まず、その開始マーク
の次のバイトである回数値を対応する回数カウンタ34
0にセットする。
When the byte of the signal data that is newly selected is a start mark, the data control unit 30 first calculates the number of times that is the next byte of the start mark to the corresponding number counter 34.
Set to 0.

次ニ、その回数値バイトの次のバイトを選択し、その状
態継続時間情報で示される時間分だけ対応した継続時間
累積カウンタ320の値を増加させる。そして、その状
態情報を合成レジスタ38の対応ビットにセットする。
Next, the next byte of the number value byte is selected, and the value of the corresponding duration cumulative counter 320 is increased by the time indicated by the state duration information. Then, the state information is set in the corresponding bit of the synthesis register 38.

その後、制御プログラムからの装置に対するデータ入力
命令が発行された時点で、継続時間累積カウンタ32o
の値がサイクルレジスタ28の値以上であれば、同じバ
イトが選択されて、その状態情報が合成レジスタ38に
セットされる。
Thereafter, when the control program issues a data input command to the device, the duration cumulative counter 32o
If the value is greater than or equal to the value in cycle register 28, the same byte is selected and its state information is set in synthesis register 38.

もし、継続時間累積カウンタ32oの値がサイクルレジ
スタ28の値より小さければ、データ制御部30は次の
バイトを選択して、その状態継続時間情報の値の分だけ
継続時間累積カウンタ320の値を増加させ、また、そ
の選択したバイトの状態情報を合成レジスタ38にセッ
トする。
If the value of the duration accumulation counter 32o is smaller than the value of the cycle register 28, the data control unit 30 selects the next byte and increases the value of the duration accumulation counter 320 by the value of the state duration information. The state information of the selected byte is also set in the synthesis register 38.

また、新たに選択しようとしたバイトが終了マークの場
合、データ制御部30は回数カウンタ340の値を1だ
けデクリメントし、その値がゼロであるか調べる。
Further, if the newly selected byte is an end mark, the data control unit 30 decrements the value of the number counter 340 by 1 and checks whether the value is zero.

もしゼロでなければ、その終了マークの前の回数値バイ
トの次のバイトを選択し、その状態継続時間を継続時間
累積カウンタ32oに加えるとともに、その状態情報を
合成レジスタ38にセットする。
If it is not zero, select the next byte of the number byte before the end mark, add the state duration to the duration accumulation counter 32o, and set the state information in the synthesis register 38.

このようにして、同一状態変化パターンの繰り返し区間
に関する入力データが生成される。
In this way, input data regarding repeated sections of the same state change pattern is generated.

他方、回数カウンタ340の値がゼロまでデクリメント
された場合、繰り返し状態変化パターンの区間は終了で
あるから、次のバイトデータが選択される。
On the other hand, when the value of the number counter 340 is decremented to zero, the section of the repeated state change pattern has ended, and the next byte data is selected.

以1、−・実施例について説明したが、この発明はそれ
だけに限定されるものではない。
Although the embodiments 1-- have been described above, the present invention is not limited thereto.

例えば、信号データの構造は前記のものに限定されるも
のではなく、適宜変更してよい。
For example, the structure of the signal data is not limited to the one described above, and may be changed as appropriate.

パターンジェネレータの構成も、信号データの構造など
に応じて変形が許される。また、パターンジェネレータ
を一部または全体をハードウェアまたはファームウェア
にって実現することも可能である。
The configuration of the pattern generator can also be modified depending on the structure of signal data. It is also possible to implement the pattern generator partially or entirely using hardware or firmware.

その外、この発明は、その要旨を逸脱しない範囲内で様
々に変形して実施し得るものである。
In addition, the present invention can be modified and implemented in various ways without departing from the spirit thereof.

[発明の効果コ 以上説明したように、この発明によるシミュレータシス
テムにあっては、装置の各出力信号の状態に対応した入
力データそのものを予め作成して与える必要はなく、装
置の個々の出力信号毎に独立にその状態を時間と対応づ
けて記述した信号データに基づき、データジェネレータ
によって入力データが生成されてプログラムシミュレー
タに入力される。
[Effects of the Invention] As explained above, in the simulator system according to the present invention, it is not necessary to create and provide the input data itself corresponding to the state of each output signal of the device in advance; Input data is generated by a data generator and input to the program simulator based on signal data in which the state is independently described in association with time.

このような信号データは、作成または変更の際に他の信
号を考慮する必要がなく、また、そのデータ量は、それ
に基づき生成される入力データに比較し大幅に少なくで
きるため、その作成および変更は入力データそのものを
直接作成または変更するよりも、遥に容易である。
Creating and modifying such signal data does not require consideration of other signals when creating or modifying it, and the amount of data can be significantly smaller than the input data that is generated based on it. is much easier than directly creating or changing the input data itself.

したがって、この発明のシミュレーションシステムによ
れば、従来のシミュレーションシステムを使用する場合
に比べ、制御プログラムのテストおよびデバッグを能率
的に行うことができる。
Therefore, according to the simulation system of the present invention, testing and debugging of a control program can be performed more efficiently than when using a conventional simulation system.

このように、この発明によれば、従来のシミュレーショ
ンシステムの問題点を解消し、装置制御プログラムのテ
ストおよびデバッグを能率的に行うことができるシミュ
レーションシステムを実現できる。
As described above, according to the present invention, it is possible to solve the problems of conventional simulation systems and realize a simulation system that can efficiently test and debug device control programs.

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

第1図は、この発明によるシミュレーションシステムの
一実施例の機能的構成を簡略化して示す概略ブロック図
、第2図は、このシミュレーションシステムが実現され
る計算機システムの簡略化したシステム構成図、第3図
は装置の出力信号の一例と、それを記述した信号データ
の構造を説明するための説明図である。 /O・・・プログラムシミュレータ、12・・・サイク
ルカウンタ、14・・・プログラムファイル、16・・
・データジェネレータ、18・・・信号データファイル
FIG. 1 is a schematic block diagram showing a simplified functional configuration of an embodiment of a simulation system according to the present invention, and FIG. 2 is a simplified system configuration diagram of a computer system in which this simulation system is realized. FIG. 3 is an explanatory diagram for explaining an example of an output signal of the device and the structure of signal data describing the output signal. /O...Program simulator, 12...Cycle counter, 14...Program file, 16...
・Data generator, 18...Signal data file.

Claims (4)

【特許請求の範囲】[Claims] (1)装置を制御するための制御プログラムを模擬実行
するためのプログラムシミュレータと、前記装置の個々
の出力信号毎に独立にその状態を時間と対応づけて記述
した信号データに基づき、前記プログラムシミュレータ
による前記制御プログラムの模擬実行中に、前記装置の
各出力信号の状態に対応した入力データを生成して前記
プログラムシミュレータに入力するデータジェネレータ
とを有することを特徴とするシミュレーションシステム
(1) A program simulator for simulating execution of a control program for controlling a device; and a program simulator for executing a control program for controlling a device; A simulation system comprising: a data generator that generates input data corresponding to the state of each output signal of the device and inputs it to the program simulator during simulated execution of the control program.
(2)データジェネレータは、信号データを記憶する記
憶手段と、プログラムシミュレータによる制御プログラ
ムの前記装置に対するI/O命令の模擬実行時に、前記
プログラムシミュレータから前記制御プログラムの模擬
実行時間の情報を得る手段と、この手段によって得た模
擬実行時間に対応した装置の各出力信号の状態情報を前
記信号データから得る手段と、この手段によって得られ
た前記各出力信号の状態情報を組み合わせて前記プログ
ラムシミュレータに対する入力データを合成する手段と
からなることを特徴とする特許請求の範囲第1項に記載
のシミュレーションシステム。
(2) The data generator includes a storage unit for storing signal data, and a unit for obtaining information on a simulated execution time of the control program from the program simulator when the program simulator simulates execution of an I/O command of the control program to the device. and a means for obtaining, from the signal data, state information of each output signal of the device corresponding to the simulated execution time obtained by this means, and a method for the program simulator by combining the state information of each output signal obtained by this means. 2. The simulation system according to claim 1, further comprising means for synthesizing input data.
(3)各出力信号に対する信号データは、その出力信号
の状態とその状態の継続時間とを示す情報を、状態変化
毎に順次記述した時系列データであることを特徴とする
特許請求の範囲第1項または第2項に記載のシミュレー
ションシステム。
(3) The signal data for each output signal is time series data in which information indicating the state of the output signal and the duration of that state is sequentially described for each state change. The simulation system according to item 1 or 2.
(4)各出力信号に対する信号データは、その出力信号
の状態とその状態の継続時間とを示す情報を、状態変化
毎に順次記述し、かつ同一の状態変化パターンの繰り返
しは、その状態変化パターン内の状態と継続時間を示す
情報および繰り返し回数の情報とで記述した時系列デー
タであることを特徴とする特許請求の範囲第1項または
第2項に記載のシミュレーションシステム。
(4) Signal data for each output signal describes information indicating the state of the output signal and the duration of that state sequentially for each state change, and repetition of the same state change pattern is determined by the state change pattern. The simulation system according to claim 1 or 2, characterized in that the simulation system is time series data described by information indicating a state and duration of the event, and information about the number of repetitions.
JP61193631A 1986-08-19 1986-08-19 Simulation system Pending JPS6349852A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61193631A JPS6349852A (en) 1986-08-19 1986-08-19 Simulation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61193631A JPS6349852A (en) 1986-08-19 1986-08-19 Simulation system

Publications (1)

Publication Number Publication Date
JPS6349852A true JPS6349852A (en) 1988-03-02

Family

ID=16311155

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61193631A Pending JPS6349852A (en) 1986-08-19 1986-08-19 Simulation system

Country Status (1)

Country Link
JP (1) JPS6349852A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04139539A (en) * 1990-10-01 1992-05-13 Alpine Electron Inc Simulation method for microcomputer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04139539A (en) * 1990-10-01 1992-05-13 Alpine Electron Inc Simulation method for microcomputer

Similar Documents

Publication Publication Date Title
US5126966A (en) High speed logic simulation system with stimulus engine using independent event channels selectively driven by independent stimulus programs
EP0129017B1 (en) Method and apparatus for modeling systems of complex circuits
EP0021404A1 (en) Computing system for the simulation of logic operations
JPH05224911A (en) Dynamic-instruction correcting and controlling apparatus
US3659272A (en) Digital computer with a program-trace facility
JP2000020349A (en) Device and method for supporting program development and medium recording program for program development support
JP3018912B2 (en) Verification support system
JPS6349852A (en) Simulation system
JP2861962B2 (en) Computer program simulation apparatus and method
JP3212709B2 (en) Logic simulation device
JPS6349851A (en) Simulation system
JP2001236247A (en) Software simulator and simulation processing method
JPH0352038A (en) Debugging device
JPH05289901A (en) Method and device for simulating single chip microcomputer
SU798841A1 (en) Device for automatic testing of large-scale integrated circuits
SU832558A1 (en) Device for simulating digital objects
JPH0667931A (en) Single chip microcomputer simulator
JP2972499B2 (en) Logic circuit delay simulator
JPH03130839A (en) On-line simulation system
JPS61239345A (en) I/o simulator
JPS5949609A (en) Programmable controller equipped with simulation performing function
JPH03250225A (en) Logical simulation environment setting system
JPH06161986A (en) Simulator for microcomputer
JPS62162107A (en) Program changing method for programmable controller
EP1850232A2 (en) Simulator