JPH1091477A - Control microcomputer device and maintenance tool for the same - Google Patents

Control microcomputer device and maintenance tool for the same

Info

Publication number
JPH1091477A
JPH1091477A JP8265058A JP26505896A JPH1091477A JP H1091477 A JPH1091477 A JP H1091477A JP 8265058 A JP8265058 A JP 8265058A JP 26505896 A JP26505896 A JP 26505896A JP H1091477 A JPH1091477 A JP H1091477A
Authority
JP
Japan
Prior art keywords
trace
data
condition
memory
storage memory
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
JP8265058A
Other languages
Japanese (ja)
Inventor
Masashi Asano
昌志 浅野
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP8265058A priority Critical patent/JPH1091477A/en
Publication of JPH1091477A publication Critical patent/JPH1091477A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To precisely and speedily recognize the operation of a control program. SOLUTION: A trace condition storage memory 8 previously sets address information and the trace data collection period of an input point for reading and preserving data of a memory in accordance with the operation memory 5 as trace condition data. A trace data storage memory 9 reads data of the operation memory 5 and it is written. A main control part 2 reads pertinent data of the operation memory 5 in accordance with address information of the input point which is set when it becomes the trace data collection period by trace condition data, sequentially writes them in the trace data storage memory 9 ands necessary data are written without omission.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、制御用マイクロコ
ンピュータ装置及び該装置の保守ツールに関する。
The present invention relates to a control microcomputer device and a maintenance tool for the device.

【0002】[0002]

【従来の技術】図16に従来の制御用マイクロコンピュ
ータ装置のブロック構成図を示す。
2. Description of the Related Art FIG. 16 shows a block diagram of a conventional control microcomputer device.

【0003】図において、制御用マイクロコンピュータ
装置1は、主制御部2と外部入出力部3とプログラム格
納メモリ4と演算用メモリ5と、後述する保守ツール7
との伝送制御部6から構成されている。
In FIG. 1, a control microcomputer device 1 includes a main control unit 2, an external input / output unit 3, a program storage memory 4, an operation memory 5, and a maintenance tool 7 described later.
And a transmission control unit 6.

【0004】主制御部2は、演算処理部としてのマイク
ロプロセッサを備え、プログラム格納メモリ4に格納さ
れた制御プログラムに従って、演算用メモリ5の演算用
データを用いて演算処理を実行し、その結果を演算用メ
モリ5へ格納する。外部入出力部3は、プラントのデー
タを取り込み演算用メモリ5へ格納する一方、演算用メ
モリ5へ格納されたデータをプラントへ出力するインタ
フェースである。プログラム格納メモリ4は、後述する
保守ツール7等により作成された制御プログラムを格納
する。演算用メモリ5は、演算用データおよび、プラン
トとの入出力データを保存する。保守ツール7との伝送
制御部6は、後述する保守ツール7との伝送制御を実施
する。
The main control unit 2 includes a microprocessor as an arithmetic processing unit, and executes arithmetic processing using arithmetic data in the arithmetic memory 5 according to a control program stored in the program storage memory 4. Is stored in the calculation memory 5. The external input / output unit 3 is an interface that takes in the data of the plant and stores it in the operation memory 5, and outputs the data stored in the operation memory 5 to the plant. The program storage memory 4 stores a control program created by a maintenance tool 7 described later. The operation memory 5 stores operation data and input / output data with the plant. The transmission control unit 6 with the maintenance tool 7 controls transmission with the maintenance tool 7 described later.

【0005】上記した制御用マイクロコンピュータ装置
1では、図17に示す制御プログラムによる処理が実施
される。まず、外部入出力部3を介してプラントからデ
ータが取り込まれ、このデータが演算用メモリ5の指定
されたアドレスに順次格納される(S1)。
[0005] In the control microcomputer device 1 described above, the processing by the control program shown in FIG. 17 is performed. First, data is fetched from the plant via the external input / output unit 3, and this data is sequentially stored at the specified address of the arithmetic memory 5 (S1).

【0006】次に、プログラム格納メモリ4から制御プ
ログラムが順次取り出され(S2)、命令コードに従っ
て演算用メモリ5へ格納されたデータを用いて演算用処
理が順次実行され、演算処理された結果が演算用メモリ
5の指定されたアドレスへ格納される(S3,S4)。
全ての制御プログラムの命令の処理が終了すると、演
算用メモリ5の内容が、外部入出力部3からプラントへ
出力される(S5)。これによって、制御用マイクロコ
ンピュータ装置1によってプラント機器が制御される。
Next, the control programs are sequentially fetched from the program storage memory 4 (S2), and the arithmetic processing is sequentially executed using the data stored in the arithmetic memory 5 according to the instruction code. The data is stored at the designated address in the arithmetic memory 5 (S3, S4).
When the processing of all the control program instructions is completed, the contents of the operation memory 5 are output from the external input / output unit 3 to the plant (S5). Thereby, the plant equipment is controlled by the control microcomputer device 1.

【0007】次に、保守ツール7との間で伝送制御部6
を介し、保守ツール7との間でデータ授受が行われ(S
6)、保守ツール7による制御用マイクロコンピュータ
装置1の内部状態モニタ等の保守を可能としている。上
記処理は、所定周期で高速に繰り返し実行される。
Next, the transmission control unit 6 communicates with the maintenance tool 7.
Data is exchanged with the maintenance tool 7 via the
6) The maintenance of the internal state monitor and the like of the control microcomputer device 1 by the maintenance tool 7 is enabled. The above process is repeatedly executed at high speed in a predetermined cycle.

【0008】ところで、制御用マイクロコンピュータ装
置1が用いる制御プログラムは、保守ツール7または外
部の図示省略するプログラム作成装置によって作成さ
れ、保守ツール7との伝送制御部6等の伝送手段によっ
て制御用マイクロコンピュータ装置1のプログラム格納
メモリ4へ格納される。このとき、作成された制御プロ
グラムに誤りがないかどうかの確認、いわゆるデバッグ
や、制御用マイクロコンピュータ装置1が、プラントへ
想定しない出力を行った場合等の内部状態の確認は、従
来、以下のように実施されていた。
The control program used by the control microcomputer device 1 is created by the maintenance tool 7 or an external program creating device (not shown), and is transmitted to the maintenance tool 7 by a transmission means such as the transmission control unit 6 or the like. The program is stored in the program storage memory 4 of the computer device 1. At this time, it is conventionally required to check whether the created control program has an error, that is, to perform a so-called debugging, or to check an internal state when the control microcomputer device 1 performs an unexpected output to the plant. Had been implemented.

【0009】まず、制御用マイクロコンピュータ装置1
に保守ツール7を接続し、演算用メモリ5の内容を所定
周期で保守ツール7が入力し、保守ツール7の表示部に
表示する。これにより、オペレータが、制御用マイクロ
コンピュータ装置1の内部状態を目視で確認しながら、
制御プログラムのデバッグや、プラントへ想定しない出
力が行われた時の内部状態確認を実施していた。
First, the control microcomputer device 1
The maintenance tool 7 is connected to the maintenance tool 7, and the contents of the operation memory 5 are input at a predetermined cycle by the maintenance tool 7 and displayed on the display unit of the maintenance tool 7. This allows the operator to visually check the internal state of the control microcomputer device 1 while
The control program was debugged and the internal state was checked when unexpected output was performed to the plant.

【0010】一方、図18に従来の制御用マイクロコン
ピュータ装置の保守ツールのブロック構成図を示す。
On the other hand, FIG. 18 is a block diagram showing a maintenance tool of a conventional control microcomputer device.

【0011】図において、図16に示す制御用マイクロ
コンビュータ装置1に用いる保守ツール7は、制御部2
2と外部入出力部23とプログラム格納部24と前述の
制御用マイクロコンピュータ装置1との伝送部26から
構成されている。
In the figure, a maintenance tool 7 used for the control microcomputer device 1 shown in FIG.
2, an external input / output unit 23, a program storage unit 24, and a transmission unit 26 for the control microcomputer device 1 described above.

【0012】制御部22はマイクロプロセッサを備え、
オペレータが外部入出力部23より指定した情報に従っ
て、プログラム格納部24に格納されたプログラム情報
等を表示部25に表示する。また、伝送部26を介し、
制御用マイクロコンピュータ装置1の演算用メモリ5の
データ等を内部に入力し、このデータ等を表示部25に
プログラム情報等と共に表示する。
The control unit 22 includes a microprocessor,
The program information and the like stored in the program storage unit 24 are displayed on the display unit 25 according to the information specified by the operator from the external input / output unit 23. Also, via the transmission unit 26,
The data and the like of the arithmetic memory 5 of the control microcomputer device 1 are input into the inside, and the data and the like are displayed on the display unit 25 together with the program information and the like.

【0013】上記処理は、オペレータが外部入出力部2
3を用いて次の指示を行うまで、所定周期で繰り返し実
施される。
The above processing is performed by the operator using the external input / output unit 2.
Until the next instruction is performed using the command No. 3, the process is repeatedly performed at a predetermined cycle.

【0014】[0014]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の制御用マイクロコンピュータ装置1と保守ツ
ール7では、制御プログラムのデバッグや、プラントへ
想定しない出力等が行われた時の制御用マイクロコンピ
ュータ装置1の内部状態の確認が十分にできなかった。
また、制御用マイクロコンピュータ装置1の内部状態の
確認のために、多大の時間を要し、非常に効率が悪いと
いう問題があった。
However, such a conventional control microcomputer device 1 and maintenance tool 7 require a control microcomputer when a control program is debugged or an unexpected output is performed to a plant. The internal state of the device 1 could not be sufficiently confirmed.
In addition, there is a problem that it takes a lot of time to check the internal state of the control microcomputer device 1 and the efficiency is very low.

【0015】第1に、図16に示した制御用マイクロコ
ンピュータ装置1の内部の演算は、非常に高速に繰り返
し実施されており、その演算の都度、演算メモリのデー
タは更新されている。従って、制御プログラムのデバッ
グおよび、プラントへの想定しない出力が行われたデー
タの必要時に、確認等に必要なデータが更新されてお
り、演算用メモリに残っていない場合が多く、制御用マ
イクロコンピュータ装置1の内部状態を保守ツール7か
ら確認することが困難である場合があるという問題があ
った。
First, the operation inside the control microcomputer device 1 shown in FIG. 16 is repeatedly executed at a very high speed, and the data in the operation memory is updated each time the operation is performed. Therefore, when debugging of a control program and data that was unexpectedly output to the plant are needed, data necessary for confirmation and the like are updated and often not left in the arithmetic memory. There was a problem that it was sometimes difficult to confirm the internal state of the device 1 from the maintenance tool 7.

【0016】第2に、前述の通り、図16に示した制御
用マイクロコンピュータ装置1の内部の演算は非常に高
速に繰り返し実施されており、それに対し、保守ツール
7における表示部へのデータ表示の更新周期は、表示部
媒体への物理的なアクセススピードの限界により、制御
用マイクロコンピュータ装置1内部で行われている全て
の演算周期のデータをリアルタイムで表示部に表示する
ことはできなかった。
Second, as described above, the calculation inside the control microcomputer device 1 shown in FIG. 16 is repeatedly executed at a very high speed, whereas the data display on the display unit of the maintenance tool 7 is performed. Due to the limitation of the physical access speed to the display unit medium, the data of all the calculation periods performed inside the control microcomputer device 1 cannot be displayed on the display unit in real time. .

【0017】かかる場合に、仮に、表示可能であったと
しても、人間の目で高速に変化する表示データを確認す
ることは困難である。このため、従来保守ツール7で表
示可能なデータは、保守ツール7の表示部が表示可能で
ある周期毎の制御用マイクロコンピュータ装置1内部の
サンプリングデータしたデータとなり、制御用マイクロ
コンピュータ装置1内部で行われている全ての演算周期
のデータを漏れなく保守ツール7で確認することができ
ないという問題があった。
In such a case, even if display is possible, it is difficult for the human eyes to confirm display data that changes at high speed. For this reason, the data that can be displayed by the conventional maintenance tool 7 is data that is sampled data in the control microcomputer device 1 for each period in which the display unit of the maintenance tool 7 can display, and is internally stored in the control microcomputer device 1. There is a problem that the data of all the operation cycles being performed cannot be confirmed by the maintenance tool 7 without omission.

【0018】第3に、前述ように、保守ツール7を用い
て監視できる制御用マイクロコンピュータ装置1の内部
情報は、制御用マイクロコンピュータ装置1で高速に繰
り返し実行されている制御状態を所定の周期でサンプリ
ングしたデータとなるため、プラントへの想定しない出
力が行われたか否かを判断するためには、プラントへの
外部出力部3に、機械的または電気的な信号ラツチ回路
等を付加するか、制御プログラムに、プラントへの異常
信号出力が発生した旨をラツチし、必要な関連情報を演
算メモリ内に保存(ラツチ)する等のテストプログラム
を付加しなければならないという問題があった。
Third, as described above, the internal information of the control microcomputer device 1 that can be monitored using the maintenance tool 7 includes a control state that is repeatedly executed at high speed by the control microcomputer device 1 for a predetermined period. In order to determine whether or not an unexpected output to the plant has been performed, it is necessary to add a mechanical or electrical signal latch circuit or the like to the external output unit 3 to the plant. In addition, there is a problem that a test program for latching the occurrence of an abnormal signal output to the plant and for storing (latching) necessary related information in an operation memory must be added to the control program.

【0019】第4に、制御用マイクロコンピュータ装置
1が、期待する通りのプラント制御を実施しているか否
かは、プラントとの外部入出力部に、機械的または電気
的なな信号ラツチ回路等を付加することによって得られ
た情報、もしくは、保守ツール7を用いて表示される制
御用マイクロコンピュータ装置1内部の情報を、人間が
いちいち確認しながら判定する必要があった。
Fourth, whether or not the control microcomputer device 1 is performing plant control as expected is determined by providing a mechanical or electrical signal latch circuit or the like to an external input / output unit with the plant. It is necessary for a human to determine the information obtained by adding the information or the information inside the control microcomputer device 1 displayed using the maintenance tool 7 while checking each time.

【0020】そこで、本発明は、必要なデータを漏れな
く収集保存し、簡単で、かつ、短時間にしかも効率的
に、制御プログラムのデバッグや制御用マイクロコンピ
ュータ装置の内部状態を監視可能とする制御用マイクロ
コンピュータ装置及び該装置の保守ツールを提供するこ
とを目的とする。
Therefore, the present invention collects and stores necessary data without omission, and enables simple, short-time and efficient monitoring of the control program and monitoring of the internal state of the control microcomputer device. It is an object to provide a control microcomputer device and a maintenance tool for the device.

【0021】[0021]

【課題を解決するための手段】請求項1の発明は、プラ
ントのデータを取込みプラントへデータを出力する外部
入出力部と、演算処理のため制御プログラムを格納する
プログラム格納メモリと、演算用データと得られた演算
結果データを含むプラントとの間で入出力するデータを
格納する演算用メモリと、保守ツールとの間でデータを
伝送制御する伝送制御部と、制御周期毎に制御プログラ
ムの実行によって演算用データを用い演算を行い得られ
た演算結果データを演算用メモリへ格納すると共に、外
部入出力部からプラントへ出力する主制御部とを備える
制御用マイクロコンピュータ装置において、演算用メモ
リに対応して該メモリのデータを読み出して保存するた
めの入力点のアドレス情報とトレースデータ収集周期と
を予めトレース条件データとして設定するトレース条件
格納メモリと、演算用メモリのデータを読み出し読み込
みのためのトレースデータ格納メモリと、トレース条件
データによるトレースデータ収集周期になると、設定さ
れた入力点のアドレス情報に従って演算用メモリの該当
するデータを読み出しトレースデータ格納メモリへ順次
書込む手段とを設けるようにしたものである。この手段
によれば、予め定めたトレース条件データに基づき、ト
レースデータ収集周期になると、入力点のアドレス情報
に該当するデータが順次トレースデータ格納メモリへ保
存される。これにより、演算用メモリと別のトレースデ
ータ格納メモリへ必要なデータが取りこぼすことなく書
き込まれる。従って、従来のように必要なデータが更新
されて消えることがなく、漏れなく保守ツールでマイク
ロコンピュータ装置の内部動作の確認ができる。
According to a first aspect of the present invention, there is provided an external input / output unit for taking in plant data and outputting the data to the plant, a program storage memory for storing a control program for arithmetic processing, and an arithmetic data unit. And an operation memory for storing data to be input / output to / from the plant including the obtained operation result data, a transmission control unit for controlling transmission of data to / from the maintenance tool, and execution of a control program for each control cycle A control microcomputer device comprising: an operation result data obtained by performing the operation using the operation data by the operation data in the operation memory; and a main control unit that outputs from the external input / output unit to the plant. Correspondingly, the address information of the input point for reading and storing the data of the memory and the trace data collection cycle are set in advance in the trace condition. A trace condition storage memory to be set as data, a trace data storage memory for reading and reading data from an operation memory, and an operation memory according to address information of a set input point when a trace data collection cycle based on trace condition data comes. And means for sequentially writing the corresponding data to the trace data storage memory. According to this means, based on the predetermined trace condition data, at the trace data collection period, data corresponding to the address information of the input point is sequentially stored in the trace data storage memory. As a result, necessary data is written to the operation memory and the trace data storage memory without being missed. Therefore, the necessary data is not updated and disappears as in the prior art, and the internal operation of the microcomputer device can be confirmed with the maintenance tool without omission.

【0022】請求項2の発明は、プラントのデータを取
込みプラントへデータを出力する外部入出力部と、演算
処理のため制御プログラムを格納するプログラム格納メ
モリと、演算用データと得られた演算結果データを含む
プラントとの間で入出力するデータを格納する演算用メ
モリと、保守ツールの間でデータを伝送制御する伝送制
御部と、制御周期毎に制御プログラムの実行によって演
算用データを用い演算を行い得られた演算結果データを
演算用メモリへ格納すると共に、外部入出力部からプラ
ントへ出力する主制御部とを備えた制御用マイクロコン
ピュータ装置において、演算用メモリに対応し該メモリ
の指定された入力点のデータが所定条件となったときの
み読み出すときのトレース条件として格納するトレース
条件格納メモリと、演算用メモリのデータを読み出し読
み込みのためのトレースデータ格納メモリと、トレース
条件データによるトレース条件となったとき収集する入
力点のアドレス情報に従って演算用メモリのデータを読
み出しトレースデータ格納メモリへ順次書込む手段とを
設けるようにしたものである。この手段によれば、予め
定めたトレース条件データである演算用メモリの指定入
力点のデータが所定条件となったとき、収集する入力点
のアドレス情報に従って、データがトレースデータ格納
メモリへ書き込まれる。これによって、特定の事象が発
生したときの真に必要なデータのみ効率的にトレースデ
ータ格納メモリへ書き込まれる。従って、制御プログラ
ムのデバック作業が正確に迅速にでき、また、プラント
が特定事象となったとき装置に関する情報を容易に入手
でき、また、トレースデータ格納メモリも比較的小さな
容量とすることができる。
According to a second aspect of the present invention, there is provided an external input / output unit for taking in plant data and outputting the data to the plant, a program storage memory for storing a control program for operation processing, operation data and an obtained operation result. An operation memory that stores data input to and output from the plant that contains data, a transmission control unit that controls the transmission of data between maintenance tools, and an operation that uses the operation data by executing a control program at each control cycle And a main control unit for outputting the operation result data obtained from the operation to the operation memory and outputting the operation result data from the external input / output unit to the plant. A trace condition storage memory for storing as a trace condition for reading only when the data of the input point which has been input is a predetermined condition; Trace data storage memory for reading and reading data from the arithmetic memory, and read data from the arithmetic memory according to the address information of the input point to be collected when the trace condition is satisfied by the trace condition data, and sequentially write the data into the trace data storage memory. Means is provided. According to this means, when the data of the designated input point of the operation memory, which is the predetermined trace condition data, becomes the predetermined condition, the data is written to the trace data storage memory according to the address information of the input point to be collected. As a result, only the truly necessary data when a specific event occurs is efficiently written to the trace data storage memory. Therefore, the debugging work of the control program can be performed accurately and quickly, information about the apparatus can be easily obtained when a specific event occurs in the plant, and the trace data storage memory can have a relatively small capacity.

【0023】請求項3の発明は、請求項1または請求項
2記載の制御用マイクロコンピュータ装置において、ト
レース条件格納メモリはトレースデータ保存開始条件情
報とトレースデータ保存終了条件情報とを設定し、トレ
ースデータ保存開始条件情報がトレース許可で、かつ、
トレース条件となったとき演算用メモリのデータを読み
出してトレースデータ格納メモリへ順次書き込みを開始
する一方、トレースデータ保存終了条件情報がトレース
禁止となったとき書込みを終了させる手段を設けるよう
にしたものである。この手段によれば、プラントが特定
の条件となったときトレースデータの保存を開始すると
共に、プラントが別の特定条件になったときトレースデ
ータの保存を停止する。これにより、真に必要な特定の
場合だけのトレースデータが得られ、デバック等も効率
的にでき、装置自体の検証も短時間ででき、トレースデ
ータ格納メモリの容量の縮小が図れる。
According to a third aspect of the present invention, in the control microcomputer device according to the first or second aspect, the trace condition storage memory sets trace data storage start condition information and trace data storage end condition information, If the data storage start condition information is trace permission, and
Means for reading data from the operation memory and starting writing sequentially to the trace data storage memory when the trace condition is satisfied, and providing means for terminating the writing when the trace data storage end condition information indicates that the trace is prohibited. It is. According to this means, storage of the trace data is started when the plant has a specific condition, and storage of the trace data is stopped when the plant has another specific condition. As a result, trace data only in a specific case that is truly necessary can be obtained, debugging can be performed efficiently, verification of the apparatus itself can be performed in a short time, and the capacity of the trace data storage memory can be reduced.

【0024】請求項4の発明は、請求項3記載の制御用
マイクロコンピュータ装置において、トレース条件格納
メモリは、演算用メモリからトレース条件格納メモリへ
書き込む収集ポイントを特定する入力点のアドレス情報
を複数組設定した複数のトレース条件とこれらのトレー
ス条件を切替えるトリガ条件とを格納し、トリガ条件の
成立時に該当する収集ポイントのトレース条件の処理を
実行するように切替える手段を設けるようにしたもので
ある。この手段によれば、予め定めたトリガ条件が成立
すると複数組のトレースデータ収集ポイントの中から該
当するトレースデータ収集ポイントに切替える。これに
よって、プラントの事象に応じて真に必要なデータのみ
が選択され収集される。従って、収集されたデータから
必要なデータを選別する作業が不要となり、プラントの
詳細な挙動の解析や制御プログラムのデバックが効率的
にできる。
According to a fourth aspect of the present invention, in the control microcomputer device according to the third aspect, the trace condition storage memory includes a plurality of input point address information for specifying a collection point to be written from the operation memory to the trace condition storage memory. A plurality of set trace conditions and a trigger condition for switching these trace conditions are stored, and when the trigger condition is satisfied, means for switching to execute processing of the trace condition of the corresponding collection point is provided. . According to this means, when a predetermined trigger condition is satisfied, the trace data collection point is switched from the plurality of sets of trace data collection points to the corresponding trace data collection point. As a result, only data that is truly necessary according to the event of the plant is selected and collected. Therefore, the operation of selecting necessary data from the collected data is not required, and the detailed behavior analysis of the plant and the debugging of the control program can be efficiently performed.

【0025】請求項5の発明は、請求項3記載の制御用
マイクロコンピュータ装置において、トレース条件格納
メモリは、演算用メモリからトレースデータ格納メモリ
へ書き込むデータのトレースデータ収集周期情報を複数
設定した複数のトレース条件と、これらトレース条件を
切替えるトリガ条件とを格納し、トリガ条件の成立時に
該当するトレースデータ収集周期条件の処理を実行する
ように切替える手段を設けるようにしたものである。こ
の手段によれば、予め定めたトリガ条件が成立すると複
数組のトレースデータ収集周期情報の中から該当するト
レースデータ収集周期に切替える。これによって、プラ
ントの事象に応じ必要なトレースデータ収集周期でデー
タが収集される。従って、トレースデータ格納メモリの
容量を増加することなく必要なデータが収集でき、プラ
ントの詳細な挙動の解析や制御プログラムのデバックが
効率的にできる。
According to a fifth aspect of the present invention, in the control microcomputer device according to the third aspect, the trace condition storage memory is provided with a plurality of trace data collection cycle information of data to be written from the operation memory to the trace data storage memory. And a trigger condition for switching these trace conditions are stored, and when the trigger condition is satisfied, means for switching to execute the processing of the corresponding trace data collection cycle condition is provided. According to this means, when a predetermined trigger condition is satisfied, the trace data collection cycle is switched from a plurality of sets of trace data collection cycle information to the corresponding trace data collection cycle. As a result, data is collected at a necessary trace data collection cycle according to a plant event. Therefore, necessary data can be collected without increasing the capacity of the trace data storage memory, and the detailed behavior analysis of the plant and the debugging of the control program can be efficiently performed.

【0026】請求項6の発明は、請求項3記載の制御用
マイクロコンピュータ装置において、トレース条件格納
メモリは、演算用メモリからトレースデータ格納メモリ
へ書き込むトレースデータ一致条件を複数設定したトレ
ースデータ一致条件と、これらトレースデータ一致条件
を切替えるトリガ条件とを格納し、トリガ条件の成立時
に該当するトレースデータ一致条件の処理を実行するよ
うに切替える手段を設けるようにしたものである。この
手段によれば、予め定めたトリガ条件が成立すると複数
組のトレースデータ一致条件の中から該当するトレース
データ一致条件に切替える。これによって、プラントの
事象に応じて真に必要なデータのみが選択され収集され
る。従って、収集されたデータから必要なデータを選別
する作業が不要となり、プラントの詳細な挙動の解析や
制御プログラムのデバックが効率的にできる。
According to a sixth aspect of the present invention, in the control microcomputer device according to the third aspect, the trace condition storage memory includes a plurality of trace data match conditions in which a plurality of trace data match conditions to be written from the operation memory to the trace data storage memory are set. And a trigger condition for switching these trace data matching conditions, and a means for switching so as to execute the processing of the corresponding trace data matching condition when the trigger condition is satisfied is provided. According to this means, when a predetermined trigger condition is satisfied, the trace data matching condition is switched from a plurality of sets of trace data matching conditions. As a result, only data that is truly necessary according to the event of the plant is selected and collected. Therefore, the operation of selecting necessary data from the collected data is not required, and the detailed behavior analysis of the plant and the debugging of the control program can be efficiently performed.

【0027】請求項7の発明は、請求項3乃至請求項6
記載のいずれかの制御用マイクロコンピュータ装置にお
いて、トレースデータ格納メモリと別に補助のトレース
データ格納メモリを設け、トレース条件格納メモリに設
定されるデータ保存条件が検出されたときトレースデー
タ格納メモリの全データを補助のトレースデータ格納メ
モリへ複写する手段を付加するようにしたものである。
この手段によれば、プラントの事象が複数回重なって発
生したような場合でも補助のトレースデータ保存メモリ
へトレースデータを保存することができる。これによっ
て、一度に複数の事象分のトレースデータが抜けること
なく確実に採集される。従って、プラントの詳細な挙動
が解析でき、また、制御プログラムのデバック時間の短
縮が図れる。
[0027] The invention according to claim 7 is the invention according to claims 3 to 6.
In any of the control microcomputer devices described above, an auxiliary trace data storage memory is provided separately from the trace data storage memory, and when a data storage condition set in the trace condition storage memory is detected, all the data in the trace data storage memory are detected. Is added to the auxiliary trace data storage memory.
According to this means, the trace data can be stored in the auxiliary trace data storage memory even when the event of the plant occurs a plurality of times. As a result, trace data for a plurality of events can be collected without fail at a time. Therefore, the detailed behavior of the plant can be analyzed, and the debugging time of the control program can be reduced.

【0028】請求項8の発明は、請求項3乃至請求項7
記載のいずれかの制御用マイクロコンピュータ装置にお
いて、トレース条件格納メモリに格納されたデータ送信
条件が検出されたときトレースデータ格納メモリあるい
は補助トレースデータ格納メモリのデータを保守ツール
へ伝送制御部を介して伝送する手段を付加するようにし
たものである。この手段によれば、予め設定された送信
条件が成立するとトレースデータ格納メモリあるいはト
レースデータ保存メモリのデータが保守ツールへ送信さ
れ、保守ツール側でデータが保存される。これにより、
保守ツール側のハードディスクに空きがある限り大量の
データが漏れなく保存できる。従って、過去の履歴を含
むプラントの事象の解析ができる。
[0028] The invention of claim 8 is the invention of claims 3 to 7.
In any of the control microcomputer devices described above, when a data transmission condition stored in the trace condition storage memory is detected, the data in the trace data storage memory or the auxiliary trace data storage memory is transmitted to the maintenance tool via the transmission control unit. A transmission means is added. According to this means, when a preset transmission condition is satisfied, the data in the trace data storage memory or the trace data storage memory is transmitted to the maintenance tool, and the data is stored on the maintenance tool side. This allows
As long as the hard disk on the maintenance tool has free space, a large amount of data can be saved without omission. Therefore, the event of the plant including the past history can be analyzed.

【0029】請求項9の発明は、制御用マイクロコンピ
ュータ装置の制御プログラムあるいは演算用データを画
面に表示する表示部と、オペレータが要求を入力する入
力部と、制御プログラムを格納するプログラム格納部
と、制御用マイクロコンピュータ装置に設けられる演算
用メモリのデータをトレースデータ格納メモリへ書き込
むトレースデータ条件を設定するトレース条件設定部
と、制御用マイクロコンピュータ装置の伝送制御部との
間でデータの伝送を行う伝送部と、入力部からの表示要
求に従ってプログラム格納部から制御プログラムを取出
し表示部へ表示する一方、表示された制御プログラムに
基づいて制御用マイクロコンピュータのトレースデータ
格納メモリからトレースデータを取込み表示部へ目視可
能な周期で再生表示させ、入力部からトレース条件設定
要求に従ってトレース条件設定部によってトレース条件
を設定し、制御用マイクロコンピュータ装置に設けるト
レースデータ条件格納メモリへ伝送する制御部とを設け
るようにしたものである。この手段によれば、保守ツー
ルへ制御用マイクロコンピュータ装置からトレースデー
タが漏れなく取り込まれ目視可能なスピードで制御プロ
グラムとトレースデータとが再生表示される。これによ
り、高速に処理されたデータが取りこぼしなく表示され
るので、プラントの挙動の解析が容易に正確にでき、制
御プログラムのデバック作業も効率的にできる。
According to a ninth aspect of the present invention, there is provided a display unit for displaying a control program or operation data of a control microcomputer device on a screen, an input unit for inputting a request by an operator, and a program storage unit for storing the control program. The data transmission is performed between a trace condition setting unit that sets a trace data condition for writing data in an operation memory provided in the control microcomputer device to a trace data storage memory and a transmission control unit of the control microcomputer device. In accordance with the display request from the input unit and the transmission unit to be executed, the control program is retrieved from the program storage unit and displayed on the display unit, while the trace data is retrieved and displayed from the trace data storage memory of the control microcomputer based on the displayed control program. Playback display at a visible interval , Sets the trace condition by the trace condition setting unit according to the trace condition setting request from the input unit, in which the provided and a control unit for transmitting the trace data condition storage memory provided in the control microcomputer unit. According to this means, the trace data is taken into the maintenance tool from the control microcomputer device without omission, and the control program and the trace data are reproduced and displayed at a visible speed. As a result, the data processed at high speed is displayed without being missed, so that the analysis of the behavior of the plant can be easily and accurately analyzed, and the debugging of the control program can be efficiently performed.

【0030】請求項10の発明は、請求項9記載の制御
用マイクロコンピュータ装置の保守ツールにおいて、ト
レースデータを1トレースデータづつ順次表示部へ表示
する手段を設けるようにしたものである。この手段によ
れば、保守ツール側で制御プログラム、演算データ、プ
ラントデータ等が対比され1トレースデータづつ漏れな
く順次再生または逆再生表示される。これによって、人
間の目を介してプラントの挙動の解析や制御プログラム
のデバックが確実にできる。
According to a tenth aspect of the present invention, there is provided the maintenance tool for a control microcomputer device according to the ninth aspect, wherein means for displaying trace data on a display unit one by one in order of trace data is provided. According to this means, the control program, the calculation data, the plant data, and the like are compared on the maintenance tool side, and are sequentially reproduced or displayed in reverse reproduction without missing any trace data. This makes it possible to reliably analyze the behavior of the plant and debug the control program through human eyes.

【0031】請求項11の発明は、請求項9または請求
項10記載の制御用マイクロコンピュータ装置の保守ツ
ールにおいて、入力部からの既知データを保存する既知
データ保存部と、制御用マイクロコンピュータ装置から
取込んだトレースデータを保存するトレースデータ保存
部と、既知データとトレースデータを照合する手段を設
けるようにしたものである。この手段によれば、トレー
スデータと既知データとが照合されて、その結果が出力
される。これによって、制御用マイクロコンピュータ装
置が正常に動作したか否かを人間が介在することなく、
診断することができ、効率的に処理される。
According to an eleventh aspect of the present invention, in the maintenance tool for a control microcomputer device according to the ninth or tenth aspect, a known data storage unit for storing known data from an input unit and a control microcomputer device. A trace data storage unit for storing the acquired trace data and a means for comparing the known data with the trace data are provided. According to this means, the trace data and the known data are collated, and the result is output. This allows the control microcomputer device to operate normally without human intervention,
It can be diagnosed and processed efficiently.

【0032】[0032]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0033】図1は、本発明にかかる第1実施の形態を
示す制御用マイクロコンピュータ装置のブロック構成図
であり、従来例を示す図16と同一符号は同一部分また
は相当部分を示し、図1において、図16と異なる点
は、トレース条件格納メモリ8と、トレースデータ格納
メモリ9を迫設している点である。
FIG. 1 is a block diagram showing a control microcomputer device according to a first embodiment of the present invention. In FIG. 1, the same reference numerals as those in FIG. 16 is different from FIG. 16 in that a trace condition storage memory 8 and a trace data storage memory 9 are provided.

【0034】ここで、トレース条件格納メモリ8は、演
算用メモリ5内の、どのポイント(アドレス)のデータ
(トレースポイント情報)をいかなるトレースデータ収
集周期でトレースデータ格納メモリ9に保存するかの情
報を予め設定するものである。また、トレースデータ格
納メモリ9は、トレース条件格納メモリ8に設定された
トレースデータ条件を満足したとき、演算用データメモ
リ5内の指定ポイント(トレースポイント情報)のデー
タを順次保存するメモリである。なお、図においては、
説明を簡略化するため、トレース条件格納メモリ8およ
びトレースデータ格納メモリ9を1つづつ示したが、こ
れらメモリは、複数個有していても良い。
Here, the trace condition storage memory 8 stores information on which point (address) data (trace point information) in the arithmetic memory 5 is to be stored in the trace data storage memory 9 at what trace data collection cycle. Is set in advance. The trace data storage memory 9 is a memory for sequentially storing data of a designated point (trace point information) in the arithmetic data memory 5 when the trace data condition set in the trace condition storage memory 8 is satisfied. In the figure,
Although the trace condition storage memory 8 and the trace data storage memory 9 are shown one by one for the sake of simplicity, a plurality of these memories may be provided.

【0035】図2に、本発明にかかる第1実施の形態の
制御用マイクロコンピュータ装置の制御プログラム処理
を示す。従来例を示す図17と同一符号は同一部分また
は相当部分の処理を示す。
FIG. 2 shows a control program process of the control microcomputer device according to the first embodiment of the present invention. The same reference numerals as in FIG. 17 showing the conventional example indicate the processing of the same or corresponding parts.

【0036】上記した制御用マイクロコンピュータ装置
1では、図2に示す制御プログラムによる処理が実行さ
れ、まず、外部入出力部3を介してプラントから取り込
まれたデータが演算用メモリ5の指定されたアドレスに
順次格納される(S1)。
In the control microcomputer device 1 described above, the process according to the control program shown in FIG. 2 is executed, and first, the data fetched from the plant via the external input / output unit 3 is designated in the operation memory 5. The data is sequentially stored in the address (S1).

【0037】次に、プログラム格納メモリ4から制御プ
ログラムが順次取り出され(S2)、命令コードに従っ
て演算用メモリ5へ格納されたデータを用いて演算用処
理が順次実行され、演算処理された結果が演算用メモリ
5の指定されたアドレスへ格納される(S3,S4)。
全ての制御プログラムの命令の処理が終了すると、演算
用メモリ5の内容が、外部入出力部3からプラントへ出
力される(S5)。これによって、制御用マイクロコン
ピュータ装置1によってプラント機器が制御される。
Next, the control programs are sequentially fetched from the program storage memory 4 (S2), the arithmetic processing is sequentially executed using the data stored in the arithmetic memory 5 according to the instruction code, and the result of the arithmetic processing is obtained. The data is stored at the designated address in the arithmetic memory 5 (S3, S4).
When the processing of all the control program instructions is completed, the contents of the operation memory 5 are output from the external input / output unit 3 to the plant (S5). Thereby, the plant equipment is controlled by the control microcomputer device 1.

【0038】次に、トレース条件格納メモリ8に格納さ
れているトレースデータの収集周期条件を満足している
かをチェックし(S11)、データ収集周期でなければ
保守ツール7とのデータ伝送(S6)を実施する。デー
タ収集周期の条件チェック(S11)で、データ収集周
期が検出された場合、トレース条件格納メモリ8に格納
されているトレース条件データであるトレースポイント
情報を読み出し、該当する演算データメモリ5の該当ポ
イントのデータをトレースデータ格納メモリ9に保存す
る(S12)。この処理は、トレース条件格納メモリ8
に設定されているトレースポイント件数分繰り返し実施
される。
Next, it is checked whether or not the collection cycle condition of the trace data stored in the trace condition storage memory 8 is satisfied (S11). If not, the data transmission with the maintenance tool 7 is performed (S6). Is carried out. When the data collection cycle is detected in the condition check of the data collection cycle (S11), the trace point information which is the trace condition data stored in the trace condition storage memory 8 is read out, and the corresponding point of the corresponding operation data memory 5 is read. Is stored in the trace data storage memory 9 (S12). This processing is performed in the trace condition storage memory 8.
It is repeated for the number of trace points set in.

【0039】なお、トレースデータ格納メモリ9へのデ
ータ保存は、当該メモリ空間の最低位アドレス側より行
われ、当該メモリの最高位アドレスに達した場合は、最
低位アドレスよりデータ保存を繰り返す循環リスト形式
であり、途切れることなく継続して保存が行われる。
The data is stored in the trace data storage memory 9 from the lowest address side of the memory space. When the highest address of the memory is reached, the data is stored in the cyclic list which repeats the data storage from the lowest address. This is a format that is stored continuously without interruption.

【0040】また、トレース条件格納メモリ8およびト
レースデータ格納メモリ9が複数存在する場合は、トレ
ース条件格納メモリ8に格納されているトレースデータ
の収集周期条件を満足しているかをチェックする処理
(S11)およびこの処理でデータ収集周期を検出した
場合、トレース条件格納メモリ8に格納されているトレ
ースポイント情報を読み出し、該当する演算データメモ
リ5の該当ポイントのデータをトレースデータ格納メモ
リ9に保存する処理(S12)を実施する。そして、存
在しているトレース条件格納メモリ8およびトレースデ
ータ格納メモリ9の数だけ繰り返し実施する。以上の処
理が終了すると、次に保守ツール7との伝送(S6)を
実施する。制御用マイクロコンピュータ装置1は、以上
の処理を所定周期で高速に繰り返し実施する。
If there are a plurality of trace condition storage memories 8 and a plurality of trace data storage memories 9, it is checked whether or not the trace data collection cycle condition stored in the trace condition storage memory 8 is satisfied (S11). ) And when the data collection cycle is detected in this process, the process of reading out the trace point information stored in the trace condition storage memory 8 and storing the data of the corresponding point in the corresponding operation data memory 5 in the trace data storage memory 9 (S12) is performed. Then, the process is repeatedly performed by the number of the existing trace condition storage memories 8 and trace data storage memories 9. When the above processing is completed, transmission to the maintenance tool 7 is performed (S6). The control microcomputer device 1 repeatedly executes the above processing at a predetermined cycle at a high speed.

【0041】このように、本発明の第1実施の形態によ
れば、制御用マイクロコンピュータ装置内部で高速に変
化している演算用メモリ内の指定ポイントのデータが、
制御用マイクロコンピュータ装置のトレースデータ収集
周期毎に取りこぼしなくトレースデータ格納メモリに保
存される。従って、従来のように演算用メモリのデータ
の更新によって必要なデータが消えることが防止され
る。そして、上記トレースデータ格納メモリに保存され
たデータを利用することにより、制御用マイクロコンピ
ュータ装置内部の演算状態を正確に把握でき、制御プロ
グラムのデバッグ時間の短縮が図れる。また、トレース
データのみの利用により、制御プログラムの動作確認が
行え、確認時に制御用マイクロコンピュータ装置を占有
することなくオフラインでの動作確認(デバッグ)が可
能となると共に、試験データの整理等を含めたデバッグ
時間の短縮が図れる。さらに、トレース対象ポイント
に、プラントとの入出力データを指定することにより、
プラントの詳細な運転状態を把握することが可能とな
る。
As described above, according to the first embodiment of the present invention, the data of the designated point in the operation memory that changes at high speed inside the control microcomputer device is
The data is stored in the trace data storage memory without fail at every trace data collection cycle of the control microcomputer device. Therefore, it is possible to prevent the necessary data from being erased by updating the data in the operation memory as in the related art. Then, by using the data stored in the trace data storage memory, the operation state inside the control microcomputer device can be accurately grasped, and the debugging time of the control program can be reduced. In addition, by using only trace data, the operation of the control program can be checked, and the operation can be checked (debugged) off-line without occupying the control microcomputer device at the time of checking. Debugging time can be reduced. Furthermore, by specifying input / output data with the plant at the trace target point,
It is possible to grasp the detailed operation state of the plant.

【0042】図3に、本発明にかかる第2実施の形態の
制御用マイクロコンピュータ装置の制御プログラム処理
を示す。
FIG. 3 shows a control program process of the control microcomputer device according to the second embodiment of the present invention.

【0043】図3において、従来例を示す図17と同一
符号は、同一部分または相当部分であることを示す。ま
た、第1の実施の形態を示す図2と同一符号は、同一部
分または相当部分であることを示す。
In FIG. 3, the same reference numerals as in FIG. 17 showing the conventional example indicate the same or corresponding parts. Further, the same reference numerals as those in FIG. 2 showing the first embodiment indicate the same or corresponding parts.

【0044】また、本実施の形態の制御用マイクロコン
ピュータ装置のブロック構成図は、第1実施の形態で示
した図1と同様であり、第2実施の形態は、演算用メモ
リ5のあるポイントのデータがある状態となったとき等
に、設定されたポイントのデータをトレースデータ格納
メモリ9へ書き込むようにする点に特徴を有する。
Further, the block diagram of the control microcomputer device of the present embodiment is the same as that of FIG. 1 shown in the first embodiment. It is characterized in that the data at the set point is written into the trace data storage memory 9 when the data of a certain state exists.

【0045】ここで、トレース条件格納メモリ8は、演
算用メモリ5内のどのポイント(アドレス)のデータが
いかなるデータとなった時または、制御用マイクロコン
ピュータ装置1が管理している時刻がどの値となった
時、さらに、演算用メモリ5内のどのポイントのデータ
をどのアドレスへ保存するかのトレース条件データを予
め設定するものである。また、トレースデータ格納メモ
リ9は、トレース条件格納メモリ8に設定されたトレー
ス条件データに基づいてその条件を満足したとき、演算
用データメモリ5内の指定ポイントのデータを順次保存
するメモリである。
Here, the trace condition storage memory 8 stores which point (address) data in the arithmetic memory 5 becomes what data, or the time managed by the control microcomputer device 1 shows what value Then, the trace condition data indicating which point data in the arithmetic memory 5 is to be stored in which address is set in advance. The trace data storage memory 9 is a memory for sequentially storing data of designated points in the arithmetic data memory 5 when the conditions are satisfied based on the trace condition data set in the trace condition storage memory 8.

【0046】尚、図においては、説明を簡略化するた
め、トレース条件格納メモリ8およびトレースデータ格
納メモリ9を1つづつ示したが、これらメモリは、複数
個有していても良い。
In the figure, the trace condition storage memory 8 and the trace data storage memory 9 are shown one by one for the sake of simplicity, but a plurality of these memories may be provided.

【0047】上記した制御用マイクロコンピュータ装置
1では、図3に示す制御プログラムによる処理が実行さ
れ、まず、前半が第1実施の形態と同様に外部入出力部
3を介してプラントから取り込まれたデータが演算用メ
モリ5の指定されたアドレスに順次格納される(S
1)。
In the control microcomputer device 1 described above, the process according to the control program shown in FIG. 3 is executed. First, the first half is taken in from the plant via the external input / output unit 3 as in the first embodiment. Data is sequentially stored at designated addresses in the operation memory 5 (S
1).

【0048】次に、プログラム格納メモリ4から制御プ
ログラムが順次取り出され(S2)、命令コードに従っ
て演算用メモリ5へ格納されたデータを用いて演算用処
理が順次実行され、演算処理された結果が演算用メモリ
5の指定されたアドレスへ格納される(S3,S4)。
全ての制御プログラムの命令の処理が終了すると、演算
用メモリ5の内容が、外部入出力部3からプラントへ出
力される(S5)。これによって、制御用マイクロコン
ピュータ装置1によってプラント機器が制御される。
Next, the control programs are sequentially fetched from the program storage memory 4 (S2), the arithmetic processing is sequentially executed using the data stored in the arithmetic memory 5 in accordance with the instruction code, and the result of the arithmetic processing is obtained. The data is stored at the designated address in the arithmetic memory 5 (S3, S4).
When the processing of all the control program instructions is completed, the contents of the operation memory 5 are output from the external input / output unit 3 to the plant (S5). Thereby, the plant equipment is controlled by the control microcomputer device 1.

【0049】次に、演算用メモリ5内の指定ポイントの
データが、トレース条件格納メモリ8に格納されている
指定データ(条件)と一致しているかをチェックし(S
21)、条件を満足していなければ保守ツール7とのデ
ータ伝送(S6)を実施する。例えば、演算用メモリ5
内のブレークポイントを示す入力点が「1」→「0」と
なったとき等の条件が成立したとき設定されたトレース
条件が成立したとする。
Next, it is checked whether the data at the designated point in the operation memory 5 matches the designated data (condition) stored in the trace condition storage memory 8 (S).
21) If the conditions are not satisfied, data transmission with the maintenance tool 7 is performed (S6). For example, the operation memory 5
It is assumed that the set trace condition is satisfied when a condition such as when the input point indicating the breakpoint in the table changes from “1” to “0” is satisfied.

【0050】指定データとの条件チェック(S21)
で、条件一致を検出した場合は、トレース条件格納メモ
リ8に格納されているトレースポイント情報を読み出
し、該当する演算データメモリ5の該当ポイントのデー
タをトレースデータ格納メモリ9に保存する(S1
2)。この処理は、トレース条件格納メモリ8に設定さ
れているトレースポイント件数分繰り返し実施される。
Check condition with specified data (S21)
When a condition match is detected, the trace point information stored in the trace condition storage memory 8 is read, and the data of the corresponding point in the corresponding operation data memory 5 is stored in the trace data storage memory 9 (S1).
2). This process is repeated for the number of trace points set in the trace condition storage memory 8.

【0051】また、トレース条件格納メモリ8およびト
レースデータ格納メモリ9が複数存在した場合は、トレ
ース条件格納メモリ8に格納されている演算用メモリ5
の指定ポイントが指定条件となったかのチェックする処
理(S21)およびこの処理で条件成立を検出した場
合、トレース条件格納メモリ8に格納されているトレー
スポイント情報を読みだし、該当する演算データメモリ
5の該当ポイントのデータをトレースデータ格納メモリ
9に保存する処理(S12)を実施する。そして、存在
しているトレース条件格納メモリ8およびトレースデー
タ格納メモリ9の数だけ繰り返し実施する。
If there are a plurality of trace condition storage memories 8 and a plurality of trace data storage memories 9, the operation memory 5 stored in the trace condition storage memory 8
(S21) to check whether or not the designated point has become the designated condition, and if the condition is detected in this process, the trace point information stored in the trace condition storage memory 8 is read out and the corresponding operation data memory 5 A process (S12) of storing the data of the corresponding point in the trace data storage memory 9 is performed. Then, the process is repeatedly performed by the number of the existing trace condition storage memories 8 and trace data storage memories 9.

【0052】以上の処理が終了すると、次に保守ツール
7との伝送(S6)を実施する。制御用マイクロコンピ
ュータ装置1は、以上の処理を所定周期で高速に繰り返
し実施する。
When the above processing is completed, transmission with the maintenance tool 7 (S6) is performed. The control microcomputer device 1 repeatedly executes the above processing at a predetermined cycle at a high speed.

【0053】このように第2実施の形態によれば、制御
用マイクロコンピュータ装置内部で高速に変化している
演算用メモリ内のトレース開始条件で指定されたポイン
トのデータが、特定の条件になったときのみ、演算用メ
モリの指定ポイントのデータがトレースデータ格納メモ
リに保存される。このため、特定の事象が発生した時の
みにトレースデータが保存されるため、真に必要なデー
タのみを採取でき、当該データを用いた制御プログラム
のデバッグ時間が短縮できると共に、制御用マイクロコ
ンピュータ装置内に準備するトレースデータ格納メモリ
の容量を小さくすることができる。また、プラントが特
定の事象に至った瞬間の制御用マイクロコンピュータ装
置内の関連する情報を容易に把握可能となる。
As described above, according to the second embodiment, the data of the point designated by the trace start condition in the operation memory, which is changing at high speed inside the control microcomputer device, becomes the specific condition. Only when this occurs, the data at the designated point in the operation memory is stored in the trace data storage memory. For this reason, since trace data is stored only when a specific event occurs, only truly necessary data can be collected, the debugging time of a control program using the data can be reduced, and the control microcomputer device can be used. The capacity of the trace data storage memory prepared in the memory can be reduced. Further, related information in the control microcomputer device at the moment when the plant reaches a specific event can be easily grasped.

【0054】図4に、本発明にかかる第3実施の形態の
制御用マイクロコンピュータ装置の制御プログラム処理
を示す。
FIG. 4 shows a control program process of the control microcomputer device according to the third embodiment of the present invention.

【0055】図において、従来例を示す図17と同一符
号は、同一部分または相当部分であることを示す。ま
た、第1または第2の実施の形態を示す図2および図3
と同一符号は、同一部分または相当部分であることを示
す。また、本実施の形態の制御用マイクロコンピュータ
装置のブロック構成図は、第1実施の形態で示した図1
と同様であり、第3実施の形態は、演算用メモリ5から
トレースデータ格納メモリ9へ書き込みを開始する条件
と停止する条件を設けるようにする点に特徴を有する。
In the figure, the same reference numerals as in FIG. 17 showing the conventional example indicate the same or corresponding parts. FIGS. 2 and 3 show the first or second embodiment.
The same reference numerals indicate the same or corresponding parts. FIG. 1 is a block diagram of the control microcomputer device according to the present embodiment.
The third embodiment is characterized in that a condition for starting writing and a condition for stopping writing from the arithmetic memory 5 to the trace data storage memory 9 are provided.

【0056】ここで、トレース条件格納メモリ8は、演
算用メモリ5内のどのポイント(アドレス)のデータが
いかなるデータとなった時または、制御用マイクロコン
ピュータ装置1が管理している時刻がどの値となった
時、トレースデータ格納メモリ9へのトレースデータ保
存処理を開始/終了するか、および、トレースデータ格
納メモリ9に、演算用メモリ5内のどのポイントのデー
タを保存するかのトレース条件データを予め設定するも
のである。
Here, the trace condition storage memory 8 stores the data at which point (address) in the operation memory 5 becomes any data, or the time managed by the control microcomputer device 1 indicates which value. , Trace condition data indicating whether to start / end the trace data storage processing in the trace data storage memory 9 and which point data in the operation memory 5 should be stored in the trace data storage memory 9 Is set in advance.

【0057】尚、図においては、説明を簡略化するた
め、トレース条件格納メモリ8およびトレースデータ格
納メモリ9を1つづつ示したが、これらメモリは、複数
個有していても良い。
In the figure, the trace condition storage memory 8 and the trace data storage memory 9 are shown one by one for the sake of simplicity, but a plurality of these memories may be provided.

【0058】上記した制御用マイクロコンピュータ装置
1では、図4に示す制御プログラムによる処理が実施さ
れる。まず、トレースデータ格納メモリ9へのトレース
処理(データ保存処理)を禁止状態とする(S30)。
In the control microcomputer device 1 described above, the processing according to the control program shown in FIG. 4 is performed. First, the trace processing (data storage processing) to the trace data storage memory 9 is prohibited (S30).

【0059】次に、外部入出力部3を介してプラントか
ら取り込まれたデータが演算用メモリ5の指定されたア
ドレスに順次格納される(S1)。さらに、プログラム
格納メモリ4から制御プログラムが順次取り出され(S
2)、命令コードに従って演算用メモリ5へ格納された
データを用いて演算用処理が順次実行され、演算処理さ
れた結果が演算用メモリ5の指定されたアドレスへ格納
される(S3,S4)。全ての制御プログラムの命令の
処理が終了すると、演算用メモリ5の内容が、外部入出
力部3からプラントへ出力される(S5)。これによっ
て、制御用マイクロコンピュータ装置1によってプラン
ト機器が制御される。
Next, the data fetched from the plant via the external input / output unit 3 is sequentially stored at the designated address of the operation memory 5 (S1). Further, control programs are sequentially retrieved from the program storage memory 4 (S
2) The arithmetic processing is sequentially executed using the data stored in the arithmetic memory 5 in accordance with the instruction code, and the result of the arithmetic processing is stored in the arithmetic memory 5 at the designated address (S3, S4). . When the processing of all the control program instructions is completed, the contents of the operation memory 5 are output from the external input / output unit 3 to the plant (S5). Thereby, the plant equipment is controlled by the control microcomputer device 1.

【0060】次に、トレースデータ格納メモリ9へのト
レース処理(データ保存処理)が禁止中であるか否かの
チェックが実施される(S31)。チェックにて、トレ
ース処理が禁止中であった場合は、トレース条件格納メ
モリ8に設定されているトレースデータ保存開始条件情
報を読出し、当該条件で指定されている演算用メモリ5
の内容をチェックする(S32)。これにより、トレー
スデータ保存開始条件を検出した場合は、トレース処理
を許可とし(S33)、次の処理に移行する。また、ト
レースデータ保存開始条件を検出しなかった場合には、
保守ツール7との伝送(S6)に移行する。
Next, it is checked whether or not the tracing process (data saving process) to the trace data storage memory 9 is prohibited (S31). If the trace processing is prohibited by the check, the trace data storage start condition information set in the trace condition storage memory 8 is read, and the arithmetic memory 5 specified by the condition is read.
Is checked (S32). As a result, when the trace data storage start condition is detected, the trace process is permitted (S33), and the process proceeds to the next process. If the trace data saving start condition is not detected,
The process proceeds to transmission with the maintenance tool 7 (S6).

【0061】一方、チェック(S31)でトレース処理
が禁止中でなかった場合は、トレース条件格納メモリ8
に設定されているトレースデータ保存終了条件情報を読
出し、当該条件で指定されている演算用メモリ5の内容
をチェックする(S34)。これにより、トレースデー
タ保存終了条件を検出した場合は、トレース処理を禁止
とし(S35)、保守ツールとの伝送(S6)移行す
る。また、トレースデータ保存終了条件を検出しなかっ
た場合には、次の処理に移行する。
On the other hand, if the tracing process is not prohibited in the check (S31), the trace condition storage memory 8
Is read out, and the contents of the arithmetic memory 5 specified by the condition are checked (S34). As a result, when the trace data storage end condition is detected, the trace processing is prohibited (S35), and the transfer to the maintenance tool (S6) is performed. If no trace data storage end condition is detected, the process moves to the next process.

【0062】チェック処理(S33,S34)を実施し
た結果、トレース処理が許可状態であった場合は、トレ
ース条件格納メモリ8に設定されたトレース条件に従っ
て(S36)、トレース条件格納メモリ8に格納されて
いるトレースポイント情報を読出し、該当する演算デー
タメモリ5の該当ポイントのデータをトレースデータ格
納メモリ9に保存する(S12)。この処理は、トレー
ス条件格納メモリ8に設定されているトレースポイント
件数分繰り返し実施される。
If the result of the check processing (S33, S34) indicates that the trace processing is permitted, the trace processing is stored in the trace condition storage memory 8 according to the trace condition set in the trace condition storage memory 8 (S36). The read trace point information is read, and the data of the corresponding point in the corresponding operation data memory 5 is stored in the trace data storage memory 9 (S12). This process is repeated for the number of trace points set in the trace condition storage memory 8.

【0063】以上の処理が終了すると、次に保守ツール
7との伝送(S6)を実施する。なお、保守ツール7と
の伝送処理(S6)では、トレース条件格納メモリ8に
設定されているトレースデータ保存開始/終了条件によ
らず、保守ツール7からの要求に従ってトレース処理許
可/禁止状態を切り替えることも可能である。
When the above processing is completed, transmission to the maintenance tool 7 (S6) is performed. In the transmission process with the maintenance tool 7 (S6), the trace processing permission / prohibition state is switched according to a request from the maintenance tool 7, regardless of the trace data storage start / end conditions set in the trace condition storage memory 8. It is also possible.

【0064】このように第3実施の形態によれば、プラ
ントの制御状態が特定の条件になってから、別の特定条
件になるまでの間のトレースデータのみが容易に採取で
きるようになる。このため、追い求める事象が発生した
時点で、制御用マイクロコンピュータ装置にその保守ツ
ールを接続してトレースデータの情報を収集しなくて
も、当該トレースデータの情報がなくなることなく制御
用マイクロコンピュータ装置に保存されているため、必
要な情報を容易に得ることができる。また、真に必要な
データのみを採取でき、当該データを用いた制御プログ
ラムのデバッグ時間が短縮できると共に、制御用マイク
ロコンピュータ装置内に準備するトレースデータ格納メ
モリの容量を小さくすることができる。
As described above, according to the third embodiment, it is possible to easily collect only trace data from the time when the control state of the plant reaches a specific condition to the time when another specific condition occurs. For this reason, even when the maintenance tool is not connected to the control microcomputer device to collect trace data information at the time of occurrence of the pursued event, the control microcomputer device does not lose the trace data information. Since the information is stored, necessary information can be easily obtained. In addition, it is possible to collect only truly necessary data, shorten the debugging time of the control program using the data, and reduce the capacity of the trace data storage memory prepared in the control microcomputer device.

【0065】図5に、本発明にかかる第4実施の形態の
制御用マイクロコンピュータ装置の制御プログラム処理
を示す。
FIG. 5 shows the control program processing of the control microcomputer device according to the fourth embodiment of the present invention.

【0066】図において、従来例を示す図17と同一符
号は、同一部分または相当部分であることを示す。ま
た、第3の実施の形態を示す図4と同一符号は、同一部
分または相当部分であることを示す。また、本実施の形
態の制御用マイクロコンピュータ装置のブロック構成図
は、第1実施の形態で示した図1と同様であり、第4実
施の形態は、収集ポイント情報を複数設けてトリガ条件
の成立によって収集ポイント情報を切替えるようにする
点に特徴を有する。
In the figure, the same reference numerals as those in FIG. 17 showing the conventional example indicate the same or corresponding parts. The same reference numerals as those in FIG. 4 showing the third embodiment indicate the same or corresponding parts. Further, the block diagram of the control microcomputer device of the present embodiment is the same as that of FIG. 1 shown in the first embodiment, and the fourth embodiment provides a plurality of collection point information and sets the trigger condition. The feature is that the collection point information is switched according to the establishment.

【0067】ここで、トレース条件格納メモリ8は、演
算用メモリ5内のどのポイント(アドレス)のデータが
いかなるデータとなった時または、制御用マイクロコン
ピュータ装置1が管理している時刻がどの値となった
時、トレースデータ格納メモリ9へのトレースデータ保
存処理を開始/終了するかを設定する一方、トレースデ
ータ格納メモリ9に、演算用メモリ5内のどのポイント
のデータを保存するかの収集ポイント情報を複数組設定
し、トレースデータ格納メモリ9へ保存する演算用メモ
リ5の複数の収集ポイント情報を切り替えるためのトリ
ガ条件(複数でもよい)を予め設定するものである。
Here, the trace condition storage memory 8 stores the data at which point (address) in the arithmetic memory 5 becomes any data, or the time managed by the control microcomputer device 1 indicates the value. Is set, whether or not to start / end the trace data storage processing in the trace data storage memory 9 is set, while the trace data storage memory 9 is used to collect which point data in the arithmetic memory 5 is to be stored. A plurality of sets of point information are set, and a trigger condition (a plurality of conditions may be set) for switching a plurality of collection point information of the calculation memory 5 stored in the trace data storage memory 9 is set in advance.

【0068】また、図においては、説明を簡略化するた
め、トレース条件格納メモリ8およびトレースデータ格
納メモリ9を1つづつ示したが、これらメモリは、複数
個有していても良い。
Further, in the figure, the trace condition storage memory 8 and the trace data storage memory 9 are shown one by one for the sake of simplicity, but a plurality of these memories may be provided.

【0069】上記した制御用マイクロコンピュータ装置
1では、図5に示す制御プログラムによる処理が実施さ
れる。
In the control microcomputer device 1 described above, processing according to the control program shown in FIG. 5 is performed.

【0070】まず、トレース条件格納メモリ8に設定さ
れた第1のトレースデータ指定ポイント条件を使用する
とする(S40)。そして、トレースデータ格納メモリ
9へのトレース処理(データ保存処理)を禁止状態とす
る(S30)。続いて、外部入出力部3を介してプラン
トから取り込まれたデータが演算用メモリ5の指定され
たアドレスに順次格納される(S1)。
First, it is assumed that the first trace data designation point condition set in the trace condition storage memory 8 is used (S40). Then, the tracing process (data saving process) to the trace data storage memory 9 is prohibited (S30). Subsequently, the data fetched from the plant via the external input / output unit 3 is sequentially stored at the specified address of the arithmetic memory 5 (S1).

【0071】次に、プログラム格納メモリ4から制御プ
ログラムが順次取り出され(S2)、命令コードに従っ
て演算用メモリ5へ格納されたデータを用いて演算用処
理が順次実行され、演算処理された結果が演算用メモリ
5の指定されたアドレスへ格納される(S3,S4)。
全ての制御プログラムの命令の処理が終了すると、演算
用メモリ5の内容が、外部入出力部3からプラントへ出
力される(S5)。これによって、制御用マイクロコン
ピュータ装置1によってプラント機器が制御される。
Next, the control programs are sequentially fetched from the program storage memory 4 (S2), the arithmetic processing is sequentially executed using the data stored in the arithmetic memory 5 according to the instruction code, and the result of the arithmetic processing is obtained. The data is stored at the designated address in the arithmetic memory 5 (S3, S4).
When the processing of all the control program instructions is completed, the contents of the operation memory 5 are output from the external input / output unit 3 to the plant (S5). Thereby, the plant equipment is controlled by the control microcomputer device 1.

【0072】次に、トレースデータ格納メモリ9へのト
レース処理(データ保存処理)が禁止中であるか否かの
チェックを実施する(S31)。チェックにて、トレー
ス処理が禁止中であった場合は、トレース条件格納メモ
リ8に設定されているトレースデータ保存開始条件情報
を読出し、当該条件で指定されている演算用メモリ5の
内容をチェックする(S32)。これにより、トレース
データ保存開始条件を検出した場合は、トレース処理を
許可とし(S33)、次の処理に移行する。
Next, it is checked whether or not the trace processing (data storage processing) to the trace data storage memory 9 is prohibited (S31). If the trace processing is prohibited by the check, the trace data storage start condition information set in the trace condition storage memory 8 is read, and the contents of the arithmetic memory 5 specified by the condition are checked. (S32). As a result, when the trace data storage start condition is detected, the trace process is permitted (S33), and the process proceeds to the next process.

【0073】一方、トレースデータ保存開始条件を検出
しなかった場合には、保守ツールとの伝送(S6)に移
行する。また、チェック(S31)でトレース処理が禁
止中でなかった場合は、トレース条件格納メモリ8に設
定されているトレースデータ保存終了条件情報を読出
し、当該条件で指定されている演算用メモリ5の内容を
チェックする(S34)。これにより、トレースデータ
保存終了条件を検出した場合は、トレース処理を禁止と
し(S35)、保守ツール7との伝送(S6)移行す
る。
On the other hand, when the trace data storage start condition is not detected, the flow shifts to transmission with the maintenance tool (S6). If the trace processing is not prohibited in the check (S31), the trace data storage end condition information set in the trace condition storage memory 8 is read, and the contents of the arithmetic memory 5 specified by the condition are read. Is checked (S34). As a result, when the trace data saving end condition is detected, the trace processing is prohibited (S35), and the process shifts to transmission with the maintenance tool 7 (S6).

【0074】また、トレースデータ保存終了条件を検出
しなかった場合には、次の処理に移行する。チェック処
理(S33,S34)を実施した結果、トレース処理が
許可状態であった場合は、トレース条件格納メモリ8に
設定されているトリガ条件を検出したかのチェックを実
施し(S41)、トリガを検出した場合は、現在使用し
ている第n番目のトレースデータ指定ポイント条件か
ら、第n+1番目のトレースデータ指定ポイント条件に
切り替える処理を実施する(S42)。尚、トリガを検
出していなかった場合は、特別な処理を実施せず、次の
処理に進む。
If no trace data storage end condition is detected, the process proceeds to the next step. If the trace processing is permitted as a result of executing the check processing (S33, S34), it is checked whether a trigger condition set in the trace condition storage memory 8 has been detected (S41), and the trigger is activated. If detected, a process of switching from the currently used n-th trace data designated point condition to the (n + 1) -th trace data designated point condition is performed (S42). If no trigger has been detected, the process proceeds to the next process without performing any special process.

【0075】次に、トレース条件格納メモリ8に設定さ
れたトレース条件に従って(S36)、トレース条件格
納メモリ8に格納されている収集するためのトレースポ
イント情報を読出し、該当する演算データメモリ5の該
当ポイントのデータをトレースデータ格納メモリ9に保
存する(S12)。この処理は、トレース条件格納メモ
リ8に設定されているトレースポイント件数分繰り返し
実施される。
Next, in accordance with the trace conditions set in the trace condition storage memory 8 (S36), the trace point information for collection stored in the trace condition storage memory 8 is read, and the corresponding trace data in the corresponding operation data memory 5 is read. The data of the point is stored in the trace data storage memory 9 (S12). This process is repeated for the number of trace points set in the trace condition storage memory 8.

【0076】以上の処理が終了すると、次に保守ツール
7との伝送(S6)を実施する。なお、保守ツール7と
の伝送処理(S6)では、トレース条件格納メモリ8に
設定されているトレースデータ保存開始/終了条件や、
制御用マイクロコンピュータ装置1内部の動作状態に関
わらず、保守ツール7からの要求に従ってトレース処理
許可/禁止状態を切り替えること、同番目のトレースデ
ータ指定ポイント条件を使用するかを切り替えることも
可能である。制御用マイクロコンピュータ装置1は、以
上の処理を所定周期で高速に繰り返し実施する。
When the above processing is completed, transmission with the maintenance tool 7 (S6) is performed. In the transmission process with the maintenance tool 7 (S6), the trace data storage start / end conditions set in the trace condition storage memory 8,
Regardless of the operation state inside the control microcomputer device 1, it is also possible to switch the trace processing permission / prohibition state according to a request from the maintenance tool 7, and to switch whether to use the same trace data designation point condition. . The control microcomputer device 1 repeatedly executes the above processing at a predetermined cycle at a high speed.

【0077】このように第4実施の形態によれば、プラ
ントに特定の事象が発生した前後で、トレースデータ格
納メモリに保存される収集トレースポイントのデータを
切り替えられるため、事象発生前後で有効なデータのみ
を選択して収集することができ、トレースデータ格納メ
モリの容量を増やさなくても、真に必要なプラントの詳
細データが収集でき、そのトレースデータを解析するこ
とにより、プラントの詳細な挙動の解析や、制御プログ
ラムのデバッグ時間の短縮を図ることが可能となる。
As described above, according to the fourth embodiment, the data of the collected trace points stored in the trace data storage memory can be switched before and after the occurrence of a specific event in the plant. Only the data can be selected and collected, and the detailed data of the plant that is truly required can be collected without increasing the capacity of the trace data storage memory, and the detailed data of the plant can be analyzed by analyzing the trace data. Analysis and control program debugging time can be reduced.

【0078】図6に、本発明にかかる第5実施の形態の
制御用マイクロコンピュータ装置の制御プログラム処理
を示す。
FIG. 6 shows a control program process of the control microcomputer device according to the fifth embodiment of the present invention.

【0079】図において、従来例を示す図17と同一符
号は、同一部分または相当部分であることを示す。ま
た、第3の実施の形態を示す図4と同一符号は、同一部
分または相当部分であることを示す。また、本実施の形
態の制御用マイクロコンピュータ装置のブロック構成図
は、第1実施の形態で示した図1と同様であり、第5実
施の形態は、トリガ条件が成立すると予め設定された複
数のトレースデータ収集周期から予め定めた条件に応じ
たトレースデータ収集周期へ切替える点に特徴を有す
る。
In the figure, the same reference numerals as those in FIG. 17 showing the conventional example indicate the same or corresponding parts. The same reference numerals as those in FIG. 4 showing the third embodiment indicate the same or corresponding parts. Further, the block diagram of the control microcomputer device of the present embodiment is the same as that of FIG. 1 shown in the first embodiment. In the fifth embodiment, a plurality of preset microcomputers are set when the trigger condition is satisfied. The characteristic is that the trace data collection cycle is switched to the trace data collection cycle according to a predetermined condition.

【0080】ここで、トレース条件格納メモリ8は、演
算用メモリ5内のどのポイント(アドレス)のデータが
いかなるデータとなった時または、制御用マイクロコン
ピュータ装置1が管理している時刻がどの値となった
時、トレースデータ格納メモリ9へのトレースデータ保
存処理を開始/終了するか設定する一方、トレースデー
タ格納メモリ9に、演算用メモリ5内のどのポイントの
データを保存するかの情報と、トレースデータ格納メモ
リ9へ保存する演算用メモリ5の複数のトレースデータ
収集周期を切り替えるためのトリガ条件(複数でもよ
い)を予め設定するものである。
Here, the trace condition storage memory 8 stores what point (address) data in the operation memory 5 is what data or what time the control microcomputer 1 manages. Is set, whether or not to start / end the trace data storage processing in the trace data storage memory 9 is set, while information indicating which point data in the arithmetic memory 5 is to be stored in the trace data storage memory 9 is stored. Trigger conditions (or a plurality of trigger conditions) for switching a plurality of trace data collection periods of the operation memory 5 stored in the trace data storage memory 9 are set in advance.

【0081】また、図においては、説明を簡略化するた
め、トレース条件格納メモリ8およびトレースデータ格
納メモリ9を1つづつ示したが、これらメモリは、複数
個有していても良い。
In the figure, the trace condition storage memory 8 and the trace data storage memory 9 are shown one by one for the sake of simplicity, but a plurality of these memories may be provided.

【0082】上記した制御用マイクロコンピュータ装置
1では、図6に示す制御プログラムによる処理が実施さ
れる。
In the above-described control microcomputer device 1, the processing according to the control program shown in FIG. 6 is performed.

【0083】まず、トレース条件格納メモリ8に設定さ
れた第1のトレースデータ収集周期条件を使用するとす
る(S50)。そとて、トレースデータ格納メモリ9へ
のトレース処理(データ保存処理)を禁止状態とする
(S30)。続いて、外部入出力部3を介してプラント
から取り込まれたデータが演算用メモリ5の指定された
アドレスに順次格納される(S1)。
First, it is assumed that the first trace data collection cycle condition set in the trace condition storage memory 8 is used (S50). Then, the trace process (data save process) to the trace data storage memory 9 is prohibited (S30). Subsequently, the data fetched from the plant via the external input / output unit 3 is sequentially stored at the specified address of the arithmetic memory 5 (S1).

【0084】次に、プログラム格納メモリ4から制御プ
ログラムが順次取り出され(S2)、命令コードに従っ
て演算用メモリ5へ格納されたデータを用いて演算処理
が順次実行され、演算処理された結果が演算用メモリ5
の指定されたアドレスへ格納される(S3,S4)。全
ての制御プログラムの命令の処理が終了すると、演算用
メモリ5の内容が、外部入出力部3からプラントへ出力
される(S5)。これによって、制御用マイクロコンピ
ュータ装置1によってプラント機器が制御される。
Next, the control programs are sequentially fetched from the program storage memory 4 (S2), the arithmetic processing is sequentially executed using the data stored in the arithmetic memory 5 according to the instruction code, and the result of the arithmetic processing is calculated. Memory 5
(S3, S4). When the processing of all the control program instructions is completed, the contents of the operation memory 5 are output from the external input / output unit 3 to the plant (S5). Thereby, the plant equipment is controlled by the control microcomputer device 1.

【0085】次に、トレースデータ格納メモリ9へのト
レース処理(データ保存処理)が禁止中であるか否かの
チェックを実施する(S31)。チェックにて、トレー
ス処理が禁止中であった場合は、トレース条件格納メモ
リ8に設定されているトレースデータ保存開始条件情報
を読出し、当該条件で指定されている演算用メモリ5の
内容をチェックする(S32)。これにより、トレース
データ保存開始条件を検出した場合は、トレース処理を
許可とし(S33)、次の処理に移行する。
Next, it is checked whether or not the trace processing (data storage processing) to the trace data storage memory 9 is prohibited (S31). If the trace processing is prohibited by the check, the trace data storage start condition information set in the trace condition storage memory 8 is read, and the contents of the arithmetic memory 5 specified by the condition are checked. (S32). As a result, when the trace data storage start condition is detected, the trace process is permitted (S33), and the process proceeds to the next process.

【0086】一方、トレースデータ保存開始条件を検出
しなかった場合には、保守ツール7との伝送(S6)に
移行する。また、チェック(S31)でトレース処理が
禁止中でなかった場合は、トレース条件格納メモリ8に
設定されているトレースデータ保存終了条件情報を読出
し、当該条件で指定されている演算用メモリ5の内容を
チェックする(S34)。これにより、トレースデータ
保存終了条件を検出した場合は、トレース処理を禁止と
し(S35)、保守ツールとの伝送(S6)移行する。
On the other hand, if the trace data storage start condition is not detected, the flow shifts to transmission with the maintenance tool 7 (S6). If the trace processing is not prohibited in the check (S31), the trace data storage end condition information set in the trace condition storage memory 8 is read, and the contents of the arithmetic memory 5 specified by the condition are read. Is checked (S34). As a result, when the trace data storage end condition is detected, the trace processing is prohibited (S35), and the transfer to the maintenance tool (S6) is performed.

【0087】また、トレースデータ保存終了条件を検出
しなかった場合には、次の処理に移行する。チェック処
理(S33,S34)を実施した結果、トレース処理が
許可状態であった場合は、トレース条件格納メモリ8に
設定されているトリガ条件を検出したかのチェックを実
施し(S41)、トリガを検出した場合は、現在使用し
ている第n番目のトレースデータ収集周期条件から、第
n+1番目のトレースデータ収集周期条件に切り替える
処理を実施する(S52)。
If no trace data storage end condition is detected, the process proceeds to the next step. If the trace processing is permitted as a result of executing the check processing (S33, S34), it is checked whether a trigger condition set in the trace condition storage memory 8 has been detected (S41), and the trigger is activated. If it is detected, a process of switching from the currently used nth trace data collection cycle condition to the (n + 1) th trace data collection cycle condition is performed (S52).

【0088】尚、トリガを検出していなかった場合は、
特別な処理を実施せず、次の処理に進む。
If no trigger has been detected,
The processing proceeds to the next processing without performing any special processing.

【0089】次に、トレース条件格納メモリ8に設定さ
れたトレース条件によるトレースデータ収集周期となる
と(S36)、トレース条件格納メモリ8に格納されて
いるトレースポイント情報を読出し、該当する演算デー
タメモリ5の該当ポイントのデータをトレースデータ格
納メモリ9に保存する(S12)。この処理は、トレー
ス条件格納メモリ8に設定されているトレースポイント
件数分繰り返し実施される。
Next, when the trace data collection cycle based on the trace conditions set in the trace condition storage memory 8 comes (S36), the trace point information stored in the trace condition storage memory 8 is read out, and the corresponding operation data memory 5 is read. Is stored in the trace data storage memory 9 (S12). This process is repeated for the number of trace points set in the trace condition storage memory 8.

【0090】以上の処理が終了すると、次に保守ツール
7との伝送(S6)を実施する。なお、保守ツール7と
の伝送処理(S6)では、トレース条件格納メモリ8に
設定されているトレースデータ保存開始/終了条件や、
制御用マイクロコンピュータ装置1内部の動作状態に関
わらず、保守ツール7からの要求に従ってトレース処理
許可/禁止状態を切り替えること、何番目のトレースデ
ータ収集周期条件を使用するかを切り替えることも可能
である。制御用マイクロコンピュータ装置1は、以上の
処理を所定周期で高速に繰り返し実施する。
When the above processing is completed, transmission with the maintenance tool 7 (S6) is performed. In the transmission process with the maintenance tool 7 (S6), the trace data storage start / end conditions set in the trace condition storage memory 8,
Regardless of the operation state inside the control microcomputer device 1, it is also possible to switch the trace processing permission / prohibition state in accordance with a request from the maintenance tool 7, and to switch the order of the trace data collection cycle condition. . The control microcomputer device 1 repeatedly executes the above processing at a predetermined cycle at a high speed.

【0091】これにより第5実施の形態によれば、プラ
ントに特定の事象が発生した前後で、トレースデータ格
納メモリにデータを保存するトレースデータ周期を変え
られるため、トレースデータ格納メモリの容量を増やさ
なくても、真に必要なプラントの詳細データが収集で
き、そのトレースデータを解析することにより、プラン
トの詳細な挙動の解析や、制御プログラムのデバッグ時
間の短縮を図ることが可能となる。
According to the fifth embodiment, the trace data cycle for storing data in the trace data storage memory can be changed before and after a specific event occurs in the plant, so that the capacity of the trace data storage memory can be increased. Even without this, it is possible to collect the really necessary detailed data of the plant, and analyze the trace data to analyze the detailed behavior of the plant and shorten the debugging time of the control program.

【0092】図7に、本発明にかかる第6実施の形態の
制御用マイクロコンピュータ装置の制御プログラム処理
を示す。
FIG. 7 shows a control program process of the control microcomputer device according to the sixth embodiment of the present invention.

【0093】図において、従来例を示す図17と同一符
号は、同一部分または相当部分であることを示す。ま
た、第3の実施の形態を示す図4と同一符号は、同一部
分または相当部分であることを示す。また、本実施の形
態の制御用マイクロコンピュータ装置のブロック構成図
は、第1実施の形態で示した図1と同様であり、第6実
施の形態は、第3実施の形態のトレース条件を複数組設
けて、トリガ条件成立時に対応するトレース条件へ切替
える点に特徴を有する。
In the figure, the same reference numerals as those in FIG. 17 showing the conventional example indicate the same or corresponding parts. The same reference numerals as those in FIG. 4 showing the third embodiment indicate the same or corresponding parts. Further, the block diagram of the control microcomputer device of the present embodiment is the same as that of FIG. 1 shown in the first embodiment, and the sixth embodiment uses a plurality of trace conditions of the third embodiment. It is characterized in that a set is provided to switch to a trace condition corresponding to a trigger condition.

【0094】ここで、トレース条件格納メモリ8は、演
算用メモリ5内のどのポイント(アドレス)のデータが
いかなるデータとなった時または、制御用マイクロコン
ピュータ装置1が管理している時刻がどの値となった
時、トレースデータ格納メモリ9へのトレースデータ保
存処理を開始/終了するかを設定する一方、トレースデ
ータ格納メモリ9に、演算用メモリ5内のどのポイント
のデータを保存するかの情報と、トレースデータ格納メ
モリ9へ保存する複数のトレース条件から切替えるため
のトリガ条件(複数でもよい)を予め設定するものであ
る。
Here, the trace condition storage memory 8 stores the data at which point (address) in the arithmetic memory 5 becomes any data, or the time managed by the control microcomputer device 1 indicates which value. Is set, the start / end of the trace data storage processing in the trace data storage memory 9 is set, and the information on which point in the arithmetic memory 5 is stored in the trace data storage memory 9 is set. And a trigger condition (or a plurality of trigger conditions) for switching from a plurality of trace conditions stored in the trace data storage memory 9.

【0095】尚、演算用メモリ5内のどのポイント(ア
ドレス)のデータがいかなるデータとなった時または、
制御用マイクロコンピュータ装置1が管理している時刻
がどの値となった時、トレースデータ格納メモリ9への
データ保存を行うかのトレースデータ一致条件は、複数
設定されている。
When any point (address) data in the arithmetic memory 5 becomes any data, or
A plurality of trace data matching conditions are set as to what value the time managed by the control microcomputer 1 is to store the data in the trace data storage memory 9.

【0096】また、図においては、説明を簡略化するた
め、トレース条件格納メモリ8およびトレースデータ格
納メモリ9を1つづつ示したが、これらメモリは、複数
個有していても良い。
In the figure, the trace condition storage memory 8 and the trace data storage memory 9 are shown one by one for the sake of simplicity, but a plurality of these memories may be provided.

【0097】上記した制御用マイクロコンピュータ装置
1では、図7に示す制御プログラムによる処理が実施さ
れる。まず、トレース条件格納メモリ8に設定された第
1のトレースデータ一致条件を使用するとする(S6
0)。そして、トレースデータ格納メモリ9へのトレー
ス処理(データ保存処理)を禁止状態とする(S3
0)。続いて、外部入出力部3を介してプラントから取
り込まれたデータが演算用メモリ5の指定されたアドレ
スに順次格納される(S1)。
In the control microcomputer device 1 described above, processing according to the control program shown in FIG. 7 is performed. First, it is assumed that the first trace data matching condition set in the trace condition storage memory 8 is used (S6).
0). Then, the trace processing (data saving processing) to the trace data storage memory 9 is set to the prohibited state (S3).
0). Subsequently, the data fetched from the plant via the external input / output unit 3 is sequentially stored at the specified address of the arithmetic memory 5 (S1).

【0098】次に、プログラム格納メモリ4から制御プ
ログラムが順次取り出され(S2)、命令コードに従っ
て演算用メモリ5へ格納されたデータを用いて演算用処
理が順次実行され、演算処理された結果が演算用メモリ
5の指定されたアドレスへ格納される(S3,S4)。
全ての制御プログラムの命令の処理が終了すると、演算
用メモリ5の内容が、外部入出力部3からプラントへ出
力される(S5)。これによって、制御用マイクロコン
ピュータ装置1によってプラント機器が制御される。
Next, the control programs are sequentially fetched from the program storage memory 4 (S2), and the arithmetic processing is sequentially executed using the data stored in the arithmetic memory 5 according to the instruction code. The data is stored at the designated address in the arithmetic memory 5 (S3, S4).
When the processing of all the control program instructions is completed, the contents of the operation memory 5 are output from the external input / output unit 3 to the plant (S5). Thereby, the plant equipment is controlled by the control microcomputer device 1.

【0099】次に、トレースデータ格納メモリ9へのト
レース処理(データ保存処理)が禁止中であるか否かの
チェックを実施する(S31)。チェックにて、トレー
ス処理が禁止中であった場合は、トレース条件格納メモ
リ8に設定されているトレースデータ保存開始条件情報
を読出し、当該条件で指定されている演算用メモリ5の
内容をチェックする(S32)。これにより、トレース
データ保存開始条件を検出した場合は、トレース処理を
許可とし(S33)、次の処理に移行する。
Next, it is checked whether or not the tracing process (data saving process) to the trace data storage memory 9 is prohibited (S31). If the trace processing is prohibited by the check, the trace data storage start condition information set in the trace condition storage memory 8 is read, and the contents of the arithmetic memory 5 specified by the condition are checked. (S32). As a result, when the trace data storage start condition is detected, the trace process is permitted (S33), and the process proceeds to the next process.

【0100】一方、トレースデータ保存開始条件を検出
しなかった場合には、保守ツール7との伝送(S6)に
移行する。また、チェック(S31)でトレース処理が
禁止中でなかった場合は、トレース条件格納メモリ8に
設定されているトレースデータ保存終了条件情報を読出
し、当該条件で指定されている演算用メモリ5の内容を
チェックする(S34)。これにより、トレースデータ
保存終了条件を検出した場合は、トレース処理を禁止と
し(S35)、保守ツール7との伝送(S6)移行す
る。
On the other hand, if the trace data storage start condition is not detected, the flow shifts to transmission with the maintenance tool 7 (S6). If the trace processing is not prohibited in the check (S31), the trace data storage end condition information set in the trace condition storage memory 8 is read, and the contents of the arithmetic memory 5 specified by the condition are read. Is checked (S34). As a result, when the trace data saving end condition is detected, the trace processing is prohibited (S35), and the process shifts to transmission with the maintenance tool 7 (S6).

【0101】また、トレースデータ保存終了条件を検出
しなかった場合には、次の処理に移行する。チェック処
理(S33,S34)を実施した結果、トレース処理が
許可状態であった場合は、トレース条件格納メモリ8に
設定されているトリガ条件を検出したかのチェックを実
施し(S41)、トリガを検出した場合は、現在使用し
ている第n番目のトレースデータ一致条件から、第n+
1番目のトレースデータ一致条件に切り替える処理を実
施する(S62)。
If no trace data storage end condition is detected, the process moves to the next step. If the trace processing is permitted as a result of executing the check processing (S33, S34), it is checked whether a trigger condition set in the trace condition storage memory 8 has been detected (S41), and the trigger is activated. If it is detected, from the n-th trace data matching condition currently used,
A process for switching to the first trace data matching condition is performed (S62).

【0102】尚、トリガを検出していなかった場合は、
特別な処理を実施せず、次の処理に進む。
If no trigger has been detected,
The processing proceeds to the next processing without performing any special processing.

【0103】次に、トレース条件格納メモリ8に設定さ
れたトレース条件に従ってトレース条件が一致するかの
判定がされ、一致する場合(S36)、トレース条件格
納メモリ8に格納されているトレースポイント情報を読
出し、該当する演算データメモリ5の該当ポイントのデ
ータをトレースデータ格納メモリ9に保存する(S1
2)。この処理は、トレース条件格納メモリ8に設定さ
れているトレースポイント件数分繰り返し実施される。
Next, it is determined whether or not the trace conditions match in accordance with the trace conditions set in the trace condition storage memory 8. When the trace conditions match (S36), the trace point information stored in the trace condition storage memory 8 is read. The read data is stored in the trace data storage memory 9 at the corresponding point in the corresponding operation data memory 5 (S1).
2). This process is repeated for the number of trace points set in the trace condition storage memory 8.

【0104】以上の処理が終了すると、次に保守ツール
7との伝送(S6)を実施する。なお、保守ツール7と
の伝送処理(S6)では、トレース条件格納メモリ8に
設定されているトレースデータ保存開始/終了条件や、
制御用マイクロコンピュータ装置1内部の動作状態に関
わらず、保守ツール7からの要求に従ってトレース処理
許可/禁止状態を切り替えること、何番目のトレースデ
ータ一致条件を使用するかを切り替えることも可能であ
る。制御用マイクロコンピュータ装置1は、以上の処理
を所定周期で高速に繰り返し実施する。
When the above processing is completed, transmission to the maintenance tool 7 (S6) is performed. In the transmission process with the maintenance tool 7 (S6), the trace data storage start / end conditions set in the trace condition storage memory 8,
Regardless of the operation state inside the control microcomputer device 1, it is also possible to switch the trace processing permission / prohibition state in accordance with a request from the maintenance tool 7, and to switch the number of trace data matching conditions to be used. The control microcomputer device 1 repeatedly executes the above processing at a predetermined cycle at a high speed.

【0105】このように第6実施の形態によれば、プラ
ントに特定の事象が発生した前後で、トレースデータ格
納メモリに保存するためのトレースデータ一致条件を切
替えられるため、トレースデータ格納メモリの容量を増
やさなくても、真に必要なプラントの詳細データが収集
でき、そのトレースデータを解析することにより、プラ
ントの詳細な挙動の解析や、制御プログラムのデバッグ
時間の短縮を図ることが可能となる。
As described above, according to the sixth embodiment, before and after a specific event has occurred in the plant, the trace data matching condition for saving in the trace data storage memory can be switched. Without having to increase the amount of data, it is possible to collect the detailed data of the plant that is truly required, and analyze the trace data to analyze the detailed behavior of the plant and reduce the debugging time of the control program. .

【0106】図8は、本発明にかかる第7実施の形態を
示す制御用マイクロコンビュータ装置のブロック構成図
であり、従来例を示す図16と同一符号は同一部分また
は相当部分を示し、図8において、図16と異なる点
は、トレース条件格納メモリ8と、トレースデータ格納
メモリ9と、トレースデータ保存メモリ10とを迫設し
ている点である。
FIG. 8 is a block diagram of a control microcomputer device according to a seventh embodiment of the present invention. The same reference numerals as those in FIG. 16 denote the same or corresponding parts. 16 is different from FIG. 16 in that a trace condition storage memory 8, a trace data storage memory 9, and a trace data storage memory 10 are provided.

【0107】ここで、トレース条件格納メモリ8は、演
算用メモリ5内のどのポイント(アドレス)のデータが
いかなるデータとなった時または、制御用マイクロコン
ピュータ装置1が管理している時刻がどの値となった
時、トレースデータ格納メモリ9へのトレースデータ保
存処理を開始/終了するか設定する一方、トレースデー
タ格納メモリ9に、演算用メモリ5内のどのポイントの
データを保存するかの情報と、トレースデータ格納メモ
リ9のデータをトレースデータ保存メモリ10にコピー
処理するための保存条件を予め設定するものである。
Here, the trace condition storage memory 8 stores what point (address) data in the operation memory 5 becomes what data, or the time managed by the control microcomputer 1 shows what value Is set, whether or not to start / end the trace data storage processing in the trace data storage memory 9 is set, while information indicating which point data in the arithmetic memory 5 is to be stored in the trace data storage memory 9 is stored. The storage conditions for copying data in the trace data storage memory 9 to the trace data storage memory 10 are set in advance.

【0108】また、トレースデータ格納メモリ9は、ト
レース条件格納メモリ8に設定された各種条件を満足し
たとき、演算用データメモリ5内の指定ポイントのデー
タを順次保存するメモリである。トレースデータ保存メ
モリ10は、トレースデータ格納メモリ9の内容を保存
するメモリである。
The trace data storage memory 9 is a memory for sequentially storing data at designated points in the arithmetic data memory 5 when various conditions set in the trace condition storage memory 8 are satisfied. The trace data storage memory 10 is a memory for storing the contents of the trace data storage memory 9.

【0109】尚、図においては、説明を簡略化するた
め、トレース条件格納メモリ8およびトレースデータ格
納メモリ9およびトレースデータ保存メモリ10を1つ
づつ示したが、これらメモリは、複数個有していても良
い。
In the figure, the trace condition storage memory 8, the trace data storage memory 9, and the trace data storage memory 10 are shown one by one for the sake of simplicity, but a plurality of these memories are provided. May be.

【0110】上記した制御用マイクロコンピュータ装置
1では、図9に示す制御プログラムによる処理が実施さ
れる。
In the control microcomputer device 1 described above, the processing according to the control program shown in FIG. 9 is performed.

【0111】まず、トレースデータ格納メモリ9へのト
レース処理(データ保存処理)を禁止状態とする(S3
0)。そして、外部入出力部3を介してプラントから取
り込まれたデータが演算用メモリ5の指定されたアドレ
スに順次格納される(S1)。次に、プログラム格納メ
モリ4から制御プログラムが順次取り出され(S2)、
命令コードに従って演算用メモリ5へ格納されたデータ
を用いて演算用処理が順次実行され、演算処理された結
果が演算用メモリ5の指定されたアドレスへ格納される
(S3,S4)。
First, the trace processing (data storage processing) to the trace data storage memory 9 is disabled (S3).
0). Then, the data fetched from the plant via the external input / output unit 3 is sequentially stored at the designated address of the arithmetic memory 5 (S1). Next, control programs are sequentially fetched from the program storage memory 4 (S2),
The arithmetic processing is sequentially executed using the data stored in the arithmetic memory 5 in accordance with the instruction code, and the result of the arithmetic processing is stored at the designated address of the arithmetic memory 5 (S3, S4).

【0112】全ての制御プログラムの命令の処理が終了
すると、演算用メモリ5の内容が、外部入出力部3から
プラントへ出力される(S5)。これによって、制御用
マイクロコンピュータ装置1によってプラント機器が制
御される。全ての制御プログラムの命令の処理が終了す
ると、演算用メモリ5の内容が、外部入出力部3からプ
ラントへ出力される(S5)。これによって、制御用マ
イクロコンピュータ装置1によってプラント機器が制御
される。
When the processing of all the control program instructions is completed, the contents of the operation memory 5 are output from the external input / output unit 3 to the plant (S5). Thereby, the plant equipment is controlled by the control microcomputer device 1. When the processing of all the control program instructions is completed, the contents of the operation memory 5 are output from the external input / output unit 3 to the plant (S5). Thereby, the plant equipment is controlled by the control microcomputer device 1.

【0113】次に、トレースデータ格納メモリ9へのト
レース処理(データ保存処理)が禁止中であるか否かの
チェックを実施する(S31)。チェックにて、トレー
ス処理が禁止中であった場合は、トレース条件格納メモ
リ8に設定されているトレースデータ保存開始条件情報
を読出し、当該条件で指定されている演算用メモリ5の
内容をチェックする(S32)。これにより、トレース
データ保存開始条件を検出した場合は、トレース処理を
許可とし(S33)、次の処理に移行する。
Next, it is checked whether or not the trace processing (data storage processing) to the trace data storage memory 9 is prohibited (S31). If the trace processing is prohibited by the check, the trace data storage start condition information set in the trace condition storage memory 8 is read, and the contents of the arithmetic memory 5 specified by the condition are checked. (S32). As a result, when the trace data storage start condition is detected, the trace process is permitted (S33), and the process proceeds to the next process.

【0114】一方、トレースデータ保存開始条件を検出
しなかった場合には、保守ツール7との伝送(S6)に
移行する。さらに、チェック(S31)でトレース処理
が禁止中でなかった場合は、トレース条件格納メモリ8
に設定されているトレースデータ保存終了条件情報を読
出し、当該条件で指定されている演算用メモリ5の内容
をチェックする(S34)。これにより、トレースデー
タ保存終了条件を検出した場合は、トレース処理を禁止
とし(S35)、次の処理に移行する。
On the other hand, when the trace data storage start condition is not detected, the flow shifts to transmission with the maintenance tool 7 (S6). Further, if the trace processing is not prohibited in the check (S31), the trace condition storage memory 8
Is read out, and the contents of the arithmetic memory 5 specified by the condition are checked (S34). As a result, when the trace data storage end condition is detected, the trace processing is prohibited (S35), and the process proceeds to the next processing.

【0115】また、トレースデータ保存終了条件を検出
しなかった場合には、次の処理に移行する。チェック処
理(S33,S34)を実施した結果、トレース処理が
許可状態であった場合は、トレース条件格納メモリ8に
設定されたトレース条件に従って(S36)処理され、
トレース条件格納メモリ8に格納されているトレースポ
イント情報を読出し、該当する演算データメモリ5の該
当ポイントのデータをトレースデータ格納メモリ9に保
存する(S12)。この処理は、トレース条件格納メモ
リ8に設定されているトレースポイント件数分繰り返し
実施される。
If the condition for terminating the trace data storage is not detected, the processing shifts to the next processing. If the trace processing is permitted as a result of performing the check processing (S33, S34), the trace processing is performed according to the trace condition set in the trace condition storage memory 8 (S36).
The trace point information stored in the trace condition storage memory 8 is read, and the data of the corresponding point in the corresponding operation data memory 5 is stored in the trace data storage memory 9 (S12). This process is repeated for the number of trace points set in the trace condition storage memory 8.

【0116】以上の処理が終了すると、次に、トレース
条件格納メモリ8に設定されたトレースデータ保存メモ
リ10へのデータ保存条件を満足したかをチェックする
(S71)。この結果が、保存条件を満足した場合、そ
の時点のトレースデータ格納メモリ9の全データをトレ
ースデータ保存メモリ10にコピー(保存)する(S7
2)。
When the above processing is completed, it is next checked whether or not the data storage condition for the trace data storage memory 10 set in the trace condition storage memory 8 is satisfied (S71). If the result satisfies the storage condition, all data in the trace data storage memory 9 at that time is copied (saved) to the trace data storage memory 10 (S7).
2).

【0117】以上の処理が終了すると、次に保守ツール
7との伝送(S6)を実施する。なお、保守ツール7と
の伝送処理(S6)では、トレース条件格納メモリ8に
設定されているトレースデータ保存開始/終了条件によ
らず、保守ツール7からの要求に従ってトレース処理許
可/禁止状態の切り替えや、トレースデータ保存メモリ
10へのデータコピー処理を実施させる条件を設定する
ことも可能である。制御用マイクロコンピュータ装置1
は、以上の処理を所定周期で高速に繰り返し実施する。
When the above processing is completed, transmission with the maintenance tool 7 (S6) is performed. In the transmission processing with the maintenance tool 7 (S6), the trace processing permission / prohibition state is switched according to a request from the maintenance tool 7 regardless of the trace data storage start / end conditions set in the trace condition storage memory 8. Alternatively, it is possible to set conditions for executing a data copy process to the trace data storage memory 10. Control microcomputer device 1
Performs the above processing at high speed repeatedly at a predetermined cycle.

【0118】このように第7実施の形態によれば、デー
タ採取を行いたい事象が複数回発生した場合でも、各々
の事象発生時のトレースデータが抜けることがなく保存
可能となる。これにより、事象発生の度に保守ツールを
接続してトレースデータを吸い上げる処理が不要とな
り、1度に複数事象分のデータ採取が可能となり、その
トレースデータを解析することにより、プラントの詳細
な挙動の解析や、制御プログラムのデバッグ時間の短縮
を図ることが可能となる。
As described above, according to the seventh embodiment, even when an event for which data collection is to be performed has occurred a plurality of times, trace data at the time of occurrence of each event can be saved without missing. This eliminates the need to connect a maintenance tool and download trace data every time an event occurs, and to collect data for multiple events at one time. By analyzing the trace data, the detailed behavior of the plant Analysis and control program debugging time can be reduced.

【0119】図10に、本発明にかかる第8実施の形態
の制御用マイクロコンピュータ装置の制御プログラム処
理を示す。
FIG. 10 shows a control program process of the control microcomputer device according to the eighth embodiment of the present invention.

【0120】図において、従来例を示す図17と同一符
号は、同一部分または相当部分であることを示す。ま
た、第3の実施の形態を示す図4と同一符号は、同一部
分または相当部分であることを示す。また、本実施の形
態の制御用マイクロコンピュータ装置のブロック構成図
は、第1実施の形態で示した図1または、第7実施の形
態で示した図8と同様である。
In the figure, the same reference numerals as in FIG. 17 showing the conventional example indicate the same or corresponding parts. The same reference numerals as those in FIG. 4 showing the third embodiment indicate the same or corresponding parts. The block diagram of the control microcomputer device of the present embodiment is the same as FIG. 1 shown in the first embodiment or FIG. 8 shown in the seventh embodiment.

【0121】ここで、トレース条件格納メモリ8は、演
算用メモリ5内のどのポイント(アドレス)のデータが
いかなるデータとなった時または、制御用マイクロコン
ピュータ装置1が管理している時刻がどの値となった
時、トレースデータ格納メモリ9へのトレースデータ保
存処理を開始/終了するか設定する一方、トレースデー
タ格納メモリ9に、演算用メモリ5内のどのポイントの
データを保存するかの情報と、トレースデータ格納メモ
リ9のデータをトレースデータ保存メモリ10にコピー
処理するための保存条件および、保守ツール7へトレー
スデータ格納メモリ9または、トレースデータ保存メモ
リ10のデータを自動送信するための送信条件を予め設
定するものである。
Here, the trace condition storage memory 8 stores what point (address) data in the operation memory 5 is what data or what time the control microcomputer 1 manages. Is set, whether or not to start / end the trace data storage processing in the trace data storage memory 9 is set, while information indicating which point data in the arithmetic memory 5 is to be stored in the trace data storage memory 9 is stored. Storage conditions for copying data in the trace data storage memory 9 to the trace data storage memory 10 and transmission conditions for automatically transmitting the data in the trace data storage memory 9 or the trace data storage memory 10 to the maintenance tool 7. Is set in advance.

【0122】また、トレースデータ格納メモリ9は、ト
レース条件格納メモリ8に設定された各種条件を満足し
たとき、演算用データメモリ5内の指定ポイントのデー
タを順次保存するメモリである。トレースデータ保存メ
モリ10は、トレースデータ格納メモリ9の内容を保存
するメモリである。
The trace data storage memory 9 is a memory for sequentially storing data at designated points in the arithmetic data memory 5 when various conditions set in the trace condition storage memory 8 are satisfied. The trace data storage memory 10 is a memory for storing the contents of the trace data storage memory 9.

【0123】なお、図においては、説明を簡略化するた
め、トレース条件格納メモリ8およびトレースデータ格
納メモリ9およびトレースデータ保存メモリ10を1つ
づつ示したが、これらメモリは、複数個有していても良
い。
In the figure, the trace condition storage memory 8, the trace data storage memory 9, and the trace data storage memory 10 are shown one by one for the sake of simplicity, but a plurality of these memories are provided. May be.

【0124】上記した制御用マイクロコンピュータ装置
1では、図10に示す制御プログラムによる処理が実施
される。
In the control microcomputer device 1 described above, the processing according to the control program shown in FIG. 10 is performed.

【0125】まず、トレースデータ格納メモリ9へのト
レース処理(データ保存処理)を禁止状態とする(S3
0)。そして、外部入出力部3を介してプラントから取
り込まれたデータが演算用メモリ5の指定されたアドレ
スに順次格納される(S1)。続いて、プログラム格納
メモリ4から制御プログラムが順次取り出され(S
2)、命令コードに従って演算用メモリ5へ格納された
データを用いて演算用処理が順次実行され、演算処理さ
れた結果が演算用メモリ5の指定されたアドレスへ格納
される(S3,S4)。全ての制御プログラムの命令の
処理が終了すると、演算用メモリ5の内容が、外部入出
力部3からプラントへ出力される(S5)。これによっ
て、制御用マイクロコンピュータ装置1によってプラン
ト機器が制御される。
First, the trace processing (data storage processing) to the trace data storage memory 9 is disabled (S3).
0). Then, the data fetched from the plant via the external input / output unit 3 is sequentially stored at the designated address of the arithmetic memory 5 (S1). Subsequently, the control programs are sequentially fetched from the program storage memory 4 (S
2) The arithmetic processing is sequentially executed using the data stored in the arithmetic memory 5 in accordance with the instruction code, and the result of the arithmetic processing is stored in the arithmetic memory 5 at the designated address (S3, S4). . When the processing of all the control program instructions is completed, the contents of the operation memory 5 are output from the external input / output unit 3 to the plant (S5). Thereby, the plant equipment is controlled by the control microcomputer device 1.

【0126】次に、トレースデータ格納メモリ9へのト
レース処理(データ保存処理)が禁止中であるか否かの
チェックを実施する(S31)。チェックにて、トレー
ス処理が禁止中であった場合は、トレース条件格納メモ
リ8に設定されているトレースデータ保存開始条件情報
を読出し、当該条件で指定されている演算用メモリ5の
内容をチェックする(S32)。これにより、トレース
データ保存開始条件を検出した場合は、トレース処理を
許可とし(S33)、次の処理に移行する。
Next, it is checked whether or not the tracing process (data saving process) to the trace data storage memory 9 is prohibited (S31). If the trace processing is prohibited by the check, the trace data storage start condition information set in the trace condition storage memory 8 is read, and the contents of the arithmetic memory 5 specified by the condition are checked. (S32). As a result, when the trace data storage start condition is detected, the trace process is permitted (S33), and the process proceeds to the next process.

【0127】一方、トレースデータ保存開始条件を検出
しなかった場合には、保守ツール7との伝送(S6)に
移行する。また、チェック(S31)でトレース処理が
禁止中でなかった場合は、トレース条件格納メモリ8に
設定されているトレースデータ保存終了条件情報を読出
し、当該条件で指定されている演算用メモリ5の内容を
チェックする(S34)。これにより、トレースデータ
保存終了条件を検出した場合は、トレース処理を禁止と
し(S35)、次の処理に移行する。
On the other hand, if the trace data storage start condition is not detected, the flow shifts to transmission with the maintenance tool 7 (S6). If the trace processing is not prohibited in the check (S31), the trace data storage end condition information set in the trace condition storage memory 8 is read, and the contents of the arithmetic memory 5 specified by the condition are read. Is checked (S34). As a result, when the trace data storage end condition is detected, the trace processing is prohibited (S35), and the process proceeds to the next processing.

【0128】また、トレースデータ保存終了条件を検出
しなかった場合には、次の処理に移行する。チェック処
理(S33,S34)を実施した結果、トレース処理が
許可状態であった場合は、トレース条件格納メモリ8に
設定されたトレース条件に従って処理がされ(S3
6)、トレース条件格納メモリ8に格納されているトレ
ースポイント情報を読出し、該当する演算データメモリ
5の該当ポイントのデータをトレースデータ格納メモリ
9に保存する(S12)。この処理は、トレース条件格
納メモリ8に設定されているトレースポイント件数分繰
り返し実施される。
If the condition for terminating the storage of the trace data is not detected, the process proceeds to the next step. If the trace processing is permitted as a result of performing the check processing (S33, S34), the processing is performed according to the trace condition set in the trace condition storage memory 8 (S3).
6), the trace point information stored in the trace condition storage memory 8 is read, and the data of the corresponding point in the corresponding operation data memory 5 is stored in the trace data storage memory 9 (S12). This process is repeated for the number of trace points set in the trace condition storage memory 8.

【0129】以上の処理が終了すると、次に、トレース
条件格納メモリ8に設定されたトレースデータ保存メモ
リ10へのデータ保存条件を満足したかをチェックする
(S71)。この結果が保存条件を満足した場合、その
時点のトレースデータ格納メモリ9の全データをトレー
スデータ保存メモリ10にコピー(保存)する(S7
2)。
When the above processing is completed, it is checked whether or not the data storage condition for the trace data storage memory 10 set in the trace condition storage memory 8 is satisfied (S71). When the result satisfies the storage condition, all the data in the trace data storage memory 9 at that time is copied (saved) to the trace data storage memory 10 (S7).
2).

【0130】次に、トレース条件格納メモリ8に設定さ
れた保守ツール7へのトレースデータ送信条件が満足し
たかをチェックする(S80)。この結果が送信条件を
満足した場合、その時点のトレースデータ格納メモリ9
またはトレースデータ保存メモリ10のデータを保守ツ
ール7へ送信要とする(S81)。以上の処理が終了す
ると、次に保守ツール7との伝送(S6)を実施する。
この保守ツール7との伝送(S6)では、保守ツール7
へのトレースデータ送信が必要であるか否かの判断が実
施され、送信処理が必要であった場合は、自動的に保守
ツール7に対しトレースデータを送信する。
Next, it is checked whether the condition for transmitting the trace data to the maintenance tool 7 set in the trace condition storage memory 8 is satisfied (S80). If the result satisfies the transmission condition, the trace data storage memory 9 at that time
Alternatively, it is necessary to transmit the data in the trace data storage memory 10 to the maintenance tool 7 (S81). When the above processing is completed, transmission to the maintenance tool 7 is performed (S6).
In this transmission (S6) with the maintenance tool 7, the maintenance tool 7
It is determined whether or not it is necessary to transmit the trace data to the maintenance tool 7. If the transmission processing is necessary, the trace data is automatically transmitted to the maintenance tool 7.

【0131】なお、保守ツール7との伝送処理(S6)
では、トレース条件格納メモリ8に設定されているトレ
ースデータ保存開始/終了条件によらず、保守ツール7
からの要求に従ってトレース処理許可/禁止状態の切り
替えや、トレースデータ保存メモリ10へのデータのコ
ピー処理を実施させる条件を設定させることも可能であ
る。制御用マイクロコンピュータ装置1は、以上の処理
を所定周期で高速に繰り返し実施する。
The transmission processing with the maintenance tool 7 (S6)
Then, regardless of the trace data storage start / end conditions set in the trace condition storage memory 8, the maintenance tool 7
It is also possible to switch the trace processing permission / prohibition state and to set conditions for executing data copy processing to the trace data storage memory 10 in response to a request from the user. The control microcomputer device 1 repeatedly executes the above processing at a predetermined cycle at a high speed.

【0132】このように第8実施の形態によれば、予め
設定しておいた事象発生時、制御用マイクロコンピュー
タ装置に保存されているトレースデータ情報が保守ツー
ルに自動送信されるため、保守ツール側にてそのトレー
スデータをハードディスク等に保存することにより、制
御用マイクロコンピュータ装置側のトレースデータ情報
保存メモリ容量に制限されることなく、ハードディスク
の容量に空きがある限り、採取したいトレースデータを
自動的に採取可能となる。
As described above, according to the eighth embodiment, when a preset event occurs, the trace data information stored in the control microcomputer is automatically transmitted to the maintenance tool. By saving the trace data on the hard disk etc. on the side, the trace data to be collected can be automatically collected as long as there is free space on the hard disk, without being limited by the memory capacity for storing the trace data information on the control microcomputer side. It becomes possible to collect it.

【0133】次に、本発明にかかる第9実施の形態の制
御用マイクロコンピュータ装置の保守ツールを図11を
参照して説明する。
Next, a maintenance tool for a control microcomputer device according to a ninth embodiment of the present invention will be described with reference to FIG.

【0134】図11は、本発明に適用する保守ツールの
ブロック構成図を示し、従来例を示す図18と同一符号
は同一部分または相当部分を示し、図11において、図
18と異なる点は、トレース条件設定部27を迫設して
いる点である。
FIG. 11 is a block diagram of a maintenance tool applied to the present invention. In FIG. 11, the same reference numerals as those in FIG. 18 showing the conventional example indicate the same or corresponding parts. The point is that a trace condition setting unit 27 is provided.

【0135】図11において、保守ツール7Aは、入出
力部23とプログラム格納部24と表示部25と伝送部
26とトレース条件設定部27および制御部22からな
っている。
In FIG. 11, the maintenance tool 7A includes an input / output unit 23, a program storage unit 24, a display unit 25, a transmission unit 26, a trace condition setting unit 27, and a control unit 22.

【0136】ここで、表示部25は、制御プログラム等
を表示するものであり、入出力部23は、キーボードや
マウス等を用いオペレータが表示部25に従って情報を
入力したり、フロッピーディスク等の記憶媒体へデータ
を入出力するものである。プログラム格納部24は、制
御用マイクロコンピュータ装置1内に格納されている制
御プログラムと同じプログラムを格納する。伝送部26
は、トレース条件設定部27によって設定されたトレー
ス条件を制御用マイクロコンピュータ装置1へ送信する
一方、制御用マイクロコンピュータ装置1内に蓄えられ
たトレースデータ格納メモリ9またはトレースデータ保
存メモリ10のデータを受信する。
The display unit 25 displays a control program and the like. The input / output unit 23 allows the operator to input information according to the display unit 25 using a keyboard, a mouse, and the like, and to store information such as a floppy disk. It inputs and outputs data to and from the medium. The program storage unit 24 stores the same program as the control program stored in the control microcomputer device 1. Transmission unit 26
Transmits the trace conditions set by the trace condition setting unit 27 to the control microcomputer device 1, and transmits the trace data storage memory 9 or the data in the trace data storage memory 10 stored in the control microcomputer device 1. Receive.

【0137】制御部22は、入出力部23を介してオペ
レータより指示された情報に従い、トレース条件設定部
27へ条件を設定すると共に、設定された条件を伝送部
26に渡し、制御用マイクロコンピュータ装置1のトレ
ース条件格納メモリ8へ条件を設定する。また、オペレ
ータからの指示に従い、プログラム格納部24から制御
プログラムを取り出し表示部25へ表示すると共に、伝
送部26を介して制御用マイクロコンピュータ装置1か
ら受信したトレースデータ情報を表示部25に表示す
る。
The control unit 22 sets conditions to the trace condition setting unit 27 in accordance with the information specified by the operator via the input / output unit 23, passes the set conditions to the transmission unit 26, and controls the control microcomputer. The condition is set in the trace condition storage memory 8 of the device 1. In accordance with an instruction from the operator, the control program is retrieved from the program storage unit 24 and displayed on the display unit 25, and the trace data information received from the control microcomputer device 1 via the transmission unit 26 is displayed on the display unit 25. .

【0138】以下、図12を用いて、上記する保守ツー
ル7Aの処理を示す。
The processing of the maintenance tool 7A will be described below with reference to FIG.

【0139】まず、オペレータによる操作を入出力部2
5から入力する(T1)。操作指示がトレース条件設定
要求であるかをチェックし(T2)、トレース条件設定
要求であったなら、トレース条件を入出力部23を用い
て入力し、トレース条件設定部27へ格納する(T
3)。
First, the operation by the operator is input / output unit 2
5 (T1). It is checked whether the operation instruction is a trace condition setting request (T2). If the operation instruction is a trace condition setting request, the trace condition is input using the input / output unit 23 and stored in the trace condition setting unit 27 (T2).
3).

【0140】次に、設定されたトレース条件を伝送部2
6に渡し、制御用マイクロコンピュータ装置1に送信し
(T4)、次のオペレータからの操作指示待ち状態(T
1)に戻る。
Next, the set trace conditions are transmitted to the transmission unit 2.
6 to the control microcomputer device 1 (T4), and waits for an operation instruction from the next operator (T4).
Return to 1).

【0141】また、操作指示がトレース条件設定要求で
なかった場合は、トレースデータ表示要求であるかをチ
ェックし(T5)、要求であった場合、プログラム格納
部24よりプログラム情報を取り出し表示部25に表示
する(T6)。
If the operation instruction is not a trace condition setting request, it is checked whether the operation instruction is a trace data display request (T5). If the operation instruction is a request, program information is retrieved from the program storage unit 24 and displayed. (T6).

【0142】次に、伝送部26を介して、制御用マイク
ロコンピュータ装置1内に保存されているトレースデー
タを受信する(T7)。そして、受信したトレースデー
タを、プログラム情報が表示されている表示部25に重
ね合わせ、順次表示する(T8)。なお、この際のトレ
ースデータの表示更新周期は、オペレータからの操作指
示入力時に(T1)、オペレータが指定した周期であ
る。以上の処理が完了すると、次のオペレータからの操
作指示待ち状態(T1)に戻る。
Next, the trace data stored in the control microcomputer 1 is received via the transmission section 26 (T7). Then, the received trace data is superimposed on the display unit 25 on which the program information is displayed, and is sequentially displayed (T8). The display update cycle of the trace data at this time is the cycle specified by the operator when the operator inputs an operation instruction (T1). When the above processing is completed, the process returns to a state of waiting for an operation instruction from the next operator (T1).

【0143】このように第9実施の形態によれば、保守
ツールの表示部で、制御用マイクロコンピュータ装置内
部で高速に制御されている演算データおよびプラントデ
ータを取りこぼしなく目視可能なスピードで再生表示可
能となるため、プラントの詳細な挙動の解析や、制御プ
ログラムのデバッグ時間の短縮を図ることが可能とな
る。
As described above, according to the ninth embodiment, the display section of the maintenance tool reproduces and displays the operation data and the plant data, which are controlled at high speed inside the control microcomputer device, at a visual speed without missing. This makes it possible to analyze the detailed behavior of the plant and reduce the debugging time of the control program.

【0144】次に、本発明にかかる第10実施の形態の
制御用マイクロコンピュータ装置の保守ツールのプログ
ラム処理を図13を参照して説明する。
Next, the program processing of the maintenance tool of the control microcomputer device according to the tenth embodiment of the present invention will be described with reference to FIG.

【0145】図において、第9の実施の形態を示す図1
2と同一符号は、同一部分または相当部分であることを
示す。また、本実施の形態の制御用マイクロコンピュー
タ装置の保守ツールのブロック構成図は、第9実施の形
態で示した図11と同様である。
FIG. 1 shows a ninth embodiment.
The same reference numerals as 2 indicate the same or corresponding parts. The block diagram of the maintenance tool of the control microcomputer device of the present embodiment is the same as that of FIG. 11 shown in the ninth embodiment.

【0146】上記した制御用マイクロコンピュータ装置
の保守ツール7Bでは、図13に示す制御プログラムに
よる処理が実施されている。
In the above-described maintenance tool 7B of the control microcomputer device, processing according to the control program shown in FIG. 13 is performed.

【0147】まず、オペレータの操作指示が入出力部2
5から入力する(T1)。操作指示がトレース条件設定
要求であるかをチェックし(T2)、トレース条件設定
要求であったなら、トレース条件を入出力部23を用い
て入力し、トレース条件設定部27へ格納する(T
3)。
First, the operation instruction of the operator is transmitted to the input / output unit 2.
5 (T1). It is checked whether the operation instruction is a trace condition setting request (T2). If the operation instruction is a trace condition setting request, the trace condition is input using the input / output unit 23 and stored in the trace condition setting unit 27 (T2).
3).

【0148】次に、設定されたトレース条件を伝送部2
6に渡し、制御用マイクロコンピュータ装置1に送信し
(T4)、次のオペレータからの操作指示待ち状態に戻
る。操作指示がトレース条件設定要求でなかった場合
は、トレースデータ表示要求であるかをチェックし(T
5)、要求であった場合、プログラム格納部24よりプ
ログラム情報を取り出し表示部25に表示する(T
6)。
Next, the set trace conditions are transmitted to the transmission unit 2.
6 to the control microcomputer 1 (T4), and returns to a state of waiting for an operation instruction from the next operator. If the operation instruction is not a trace condition setting request, it is checked whether it is a trace data display request (T
5) If it is a request, the program information is retrieved from the program storage unit 24 and displayed on the display unit 25 (T
6).

【0149】次に、伝送部26を介して、制御用マイク
ロコンピュータ装置1内に保存されているトレースデー
タを受信する(T7)。そして、入出力部23を用いオ
ペレータからトレースデータの表示方法を入力し(T
9)、入力された指示が表示終了要求かをチェックし
(T10)、表示終了要求でない場合は、指示された表
示方法に従って、先に受信したトレースデータをプログ
ラム情報が表示されている表示部25に重ね合わせて表
示し(T11)、次のオペレータからの表示方法指示待
ち状態(T9)へ移行する。
Next, the trace data stored in the control microcomputer 1 is received via the transmission section 26 (T7). Then, the operator inputs a trace data display method using the input / output unit 23 (T
9) It is checked whether the input instruction is a display end request (T10). If it is not a display end request, according to the indicated display method, the previously received trace data is displayed on the display unit 25 on which the program information is displayed. (T11), and shifts to a state of waiting for a display method instruction from the next operator (T9).

【0150】なお、(T9)の処理でオペレータが指示
できるトレースデータの表示方法は、指定した時刻のト
レースデータ,指定したデータパターンを示したトレー
スデータ等の表示と現在表示中の1事象前および1事象
後のトレースデータ等である。以上の処理が完了する
と、次のオペレータからの操作指示待ち状態(T1)に
戻る。
The display method of the trace data that can be instructed by the operator in the processing of (T9) is to display the trace data at the designated time, the trace data indicating the designated data pattern, etc. This is trace data after one event. When the above processing is completed, the process returns to a state of waiting for an operation instruction from the next operator (T1).

【0151】このように第10実施の形態によれば、保
守ツールの表示部で、制御用マイクロコンピュータ装置
内部で高速に制御されている演算データおよびプラント
データを、1トレースデータづつ取りこぼしなく順次再
生または逆再生表示可能となるため、プラントの詳細な
挙動の解析や、制御プログラムのデバッグ時間の短縮を
図ることが可能となる。
As described above, according to the tenth embodiment, on the display unit of the maintenance tool, the operation data and the plant data which are controlled at high speed inside the control microcomputer device are successively reproduced without missing one trace data at a time. Alternatively, since reverse reproduction display is possible, it is possible to analyze the detailed behavior of the plant and shorten the debugging time of the control program.

【0152】次に、本発明にかかる第11実施の形態の
制御用マイクロコンピュータ装置の保守ツールを図14
を参照して説明する。
Next, the maintenance tool for the control microcomputer device according to the eleventh embodiment of the present invention is shown in FIG.
This will be described with reference to FIG.

【0153】図14は、本発明に適用する保守ツールの
ブロック構成図を示し、保守ツール7Bは、入出力部2
3とプログラム格納部24と表示部25と伝送部26と
トレース条件設定部27とトレースデータ保存部28と
既知データ保存部29および制御部22からなってい
る。
FIG. 14 is a block diagram of a maintenance tool applied to the present invention.
3, a program storage unit 24, a display unit 25, a transmission unit 26, a trace condition setting unit 27, a trace data storage unit 28, a known data storage unit 29, and a control unit 22.

【0154】図14は、本発明に適用する保守ツール7
Bのブロック構成図を示し、従来例を示す図18と同一
符号は同一部分または相当部分を示し、図14におい
て、図18と異なる点は、トレース条件設定部27とト
レースデータ保存部28と既知データ保存部29を迫設
している点である。
FIG. 14 shows a maintenance tool 7 applied to the present invention.
18 shows the block configuration diagram of FIG. 18, and the same reference numerals as in FIG. 18 showing the conventional example indicate the same or corresponding parts. In FIG. 14, the difference from FIG. 18 is that the trace condition setting unit 27 and the trace data storage unit 28 The point is that a data storage unit 29 is provided.

【0155】図14において、保守ツール21は、入出
力部23とプログラム格納部24と表示部25と伝送部
26とトレース条件設定部27とトレースデータ保存部
28と既知データ保存部29および制御部22からなっ
ている。
In FIG. 14, the maintenance tool 21 includes an input / output unit 23, a program storage unit 24, a display unit 25, a transmission unit 26, a trace condition setting unit 27, a trace data storage unit 28, a known data storage unit 29, and a control unit. 22.

【0156】ここで、表示部25は、制御プログラム等
を表示するものであり、入出力部23は、キーボードや
マウス等を用いオペレータが表示部25に従って情報を
入力したり、フロッピーディスク等の記憶媒体とデータ
を入出力するものである。
The display unit 25 displays a control program and the like. The input / output unit 23 allows the operator to input information according to the display unit 25 using a keyboard, a mouse, or the like, or to store information such as a floppy disk. It inputs and outputs data to and from the medium.

【0157】プログラム格納部24は、制御用マイクロ
コンピュータ装置1内に格納されている制御プログラム
と同じプログラムを格納する。伝送部26は、トレース
条件設定部27によって設定されたトレース条件を制御
用マイクロコンピュータ装置1へ送信する一方、制御用
マイクロコンピュータ装置1内に蓄えられたトレースデ
ータ格納メモリ9またはトレースデータ保存メモリ10
のデータを受信する。
The program storage section 24 stores the same program as the control program stored in the control microcomputer 1. The transmission unit 26 transmits the trace conditions set by the trace condition setting unit 27 to the control microcomputer device 1, and stores the trace data storage memory 9 or the trace data storage memory 10 stored in the control microcomputer device 1.
Receive data.

【0158】制御部22は、入出力部23を介してオペ
レータより指示された情報に従い、トレース条件設定部
27へ条件を設定すると共に、設定された条件を伝送部
26に渡し、制御用マイクロコンピュータ装置1にトレ
ース条件を設定する。また、入出力部23を介してオペ
レータより指示された情報に従い、既知データ保存部2
9に既知データを保存する。また、オペレータからの指
示に従い、プログラム格納部24から制御プログラムを
取り出し表示部25へ表示すると共に、伝送部26を介
して制御用マイクロコンピュータ装置1から受信したト
レースデータ情報をトレースデータ保存部28に保存す
ると共に、表示部25に表示する。
The control unit 22 sets conditions to the trace condition setting unit 27 in accordance with the information specified by the operator via the input / output unit 23, passes the set conditions to the transmission unit 26, and controls the control microcomputer. A trace condition is set in the device 1. Further, according to the information instructed by the operator via the input / output unit 23, the known data storage unit 2
9 stores the known data. In accordance with an instruction from the operator, the control program is retrieved from the program storage unit 24 and displayed on the display unit 25, and the trace data information received from the control microcomputer device 1 via the transmission unit 26 is stored in the trace data storage unit 28. It is stored and displayed on the display unit 25.

【0159】以下、図15を用いて、上記する保守ツー
ル7Bの処理を示す。
Hereinafter, the processing of the maintenance tool 7B will be described with reference to FIG.

【0160】まず、オペレータから操作要求があったか
否かをチェックする(T20)。オペレータからの操作
要求がなかった場合、次に、制御用マイクロコンピュー
タ装置1からトレースデータを受信したか否かをチェッ
クする(T21)。トレースデータを受信していた場合
は、受信したトレースデータをトレースデータ保存部2
8に保存する(T22)。そして、受信したトレースデ
ータと既知データ保存部29に保存されたデータを照合
し(T23)、その結果を表示部25に表示する。以上
の処理が終了すると、再びオペレータからの操作指示有
無チェック(T20)の処理に戻る。
First, it is checked whether or not there has been an operation request from the operator (T20). If there is no operation request from the operator, it is next checked whether or not trace data has been received from the control microcomputer device 1 (T21). If the trace data has been received, the received trace data is stored in the trace data storage unit 2.
8 (T22). Then, the received trace data is collated with the data stored in the known data storage unit 29 (T23), and the result is displayed on the display unit 25. When the above process is completed, the process returns to the process of checking for the presence or absence of an operation instruction from the operator (T20).

【0161】オペレータからの操作要求有無のチェック
(T20)で、操作要求有りを検出した場合は、以下に
示すオペレータからの操作指示に従った処理を行う。オ
ペレータからの操作指示が既知データ設定要求であるか
をチェックし(T25)、既知データ設定要求の場合
は、入出力部23を用いて既知データを入力し、既知デ
ータ保存部29に保存する(T26)。この処理は、オ
ペレータから既知データ入力の終了が指示される迄繰り
返し実施される。既知データ入力処理が終了すると、再
びオペレータからの操作指示有無チェック(T20)の
処理に戻る。
When the presence or absence of the operation request is detected in the check of the presence or absence of the operation request from the operator (T20), the processing according to the following operation instruction from the operator is performed. It is checked whether the operation instruction from the operator is a known data setting request (T25), and in the case of a known data setting request, known data is input using the input / output unit 23 and stored in the known data storage unit 29 ( T26). This process is repeated until the operator instructs the end of the known data input. When the known data input process is completed, the process returns to the process of checking the presence or absence of an operation instruction from the operator (T20).

【0162】次に、オペレータからの操作指示が既知デ
ータとトレースデータの照合要求であるかをチェックし
(T27)、その場合は、入出力部23を用いて保存さ
れたどのトレースデータと既知データを照合すべきなの
かをオペレータに選択させる(T28)。そして、指示
されたトレースデータをトレースデータ保存部28より
読出し、既知データ保存部29に設定されているデータ
との照合を行い(T29)、その結果を表示部25に表
示する。以上の処理が完了すると、再びオペレータから
の操作指示の有無チェック(T20)の処理に戻る。
Next, it is checked whether the operation instruction from the operator is a request to collate the known data and the trace data (T27). In this case, which trace data and the known data are stored using the input / output unit 23 is checked. Is to be selected by the operator (T28). Then, the instructed trace data is read from the trace data storage unit 28, collated with the data set in the known data storage unit 29 (T29), and the result is displayed on the display unit 25. Upon completion of the above process, the process returns to the process of checking for the presence or absence of an operation instruction from the operator (T20).

【0163】次に、オペレータからの操作指示がトレー
ス条件設定要求であるかをチェックし(T2)、トレー
ス条件設定要求であったなら、トレース条件を入出力部
23を用いて入力し、トレースデータ条件設定部27へ
格納する(T3)。そして、設定されたトレース条件を
伝送部26に渡し、制御用マイクロコンピュータ装置1
に送信し(T4)、既知データ入力処理が終了すると、
再びオペレータからの操作指示有無チェック(T20)
の処理に戻る。
Next, it is checked whether or not the operation instruction from the operator is a trace condition setting request (T2). If the operation instruction is a trace condition setting request, the trace condition is input using the input / output unit 23, and the trace data is input. It is stored in the condition setting unit 27 (T3). Then, the set trace conditions are passed to the transmission unit 26, and the control microcomputer 1
(T4), and when the known data input processing is completed,
Check for the presence of an operation instruction from the operator again (T20)
Return to the processing of.

【0164】操作指示がトレース条件設定要求でなかっ
た場合は、トレースデータ表示要求であるかをチェック
し(T5)、表示要求であった場合、プログラム格納部
24よりプログラム情報を取り出し表示部25に表示す
る(T6)。そして、伝送部26を介して、制御用マイ
クロコンピュータ装置1内に保存されているトレースデ
ータを受信する(T7)。さらに、受信したトレースデ
ータをプログラム情報が表示されている表示部25に重
ね合わせ、順次表示する(T9〜T11)。
If the operation instruction is not a trace condition setting request, it is checked whether it is a trace data display request (T5). If the operation instruction is a display request, program information is extracted from the program storage unit 24 and is displayed on the display unit 25. It is displayed (T6). Then, the trace data stored in the control microcomputer device 1 is received via the transmission unit 26 (T7). Further, the received trace data is superimposed on the display unit 25 on which the program information is displayed, and sequentially displayed (T9 to T11).

【0165】なお、この際のトレースデータの表示更新
周期は、オペレータからの操作指示入力時に(T1)、
オペレータが指定した周期である。以上の処理が完了す
ると、再びオペレータからの操作指示の有無チェック
(T20)の処理に戻る。
The display update cycle of the trace data at this time is set at the time of input of an operation instruction from the operator (T1).
This is the cycle specified by the operator. Upon completion of the above process, the process returns to the process of checking for the presence or absence of an operation instruction from the operator (T20).

【0166】このように第11実施の形態によれば、制
御用マイクロコンピュータ装置が予め設定された通りに
プラントの制御を実施しているか否かを人間系のチェッ
クを介在させることなく自動診断することが可能とな
る。
As described above, according to the eleventh embodiment, it is automatically diagnosed whether or not the control microcomputer performs the control of the plant as set in advance without the intervention of the human system. It becomes possible.

【0167】[0167]

【発明の効果】以上説明したように請求項1の発明によ
れば、予め定めたトレース条件データに基づき、トレー
スデータ収集周期になると、入力点のアドレス情報に該
当するデータを順次トレースデータ格納メモリへ保存す
るようにしたので、演算用メモリと別のトレースデータ
格納メモリへ必要なデータが取りこぼすことなく書き込
むことができる。従って、従来のように必要なデータが
更新され消えることがなく、トレースデータ格納メモリ
へ書き込まれたデータを保守ツールで利用することによ
って制御プログラムの動作確認やマイクロコンピュータ
装置の内部動作の確認ができる。
As described above, according to the first aspect of the present invention, data corresponding to the address information of the input point is sequentially stored in the trace data storage memory at the time of the trace data collection cycle based on the predetermined trace condition data. The necessary data can be written to the operation memory and another trace data storage memory without missing. Therefore, necessary data is not updated and erased as in the related art, and the operation of the control program and the internal operation of the microcomputer device can be confirmed by using the data written in the trace data storage memory with the maintenance tool. .

【0168】また、請求項2の発明によれば、予め定め
たトレース条件データである演算用メモリの指定入力点
のデータが所定条件となったとき、収集する入力点のア
ドレス情報に従って、データをトレースデータ格納メモ
リへ書き込むようにしたので、特定の事象が発生したと
きの真に必要なデータのみ効率的にトレースデータ格納
メモリへ書き込むことができる。従って、制御プログラ
ムのデバック作業が正確に迅速にでき、また、プラント
が特定事象となったとき装置に関する情報を容易に入手
でき、また、トレースデータ格納メモリも比較的小さな
容量とすることができる。
According to the second aspect of the present invention, when the data of the designated input point of the operation memory, which is the predetermined trace condition data, satisfies a predetermined condition, the data is collected according to the address information of the input point to be collected. Since the data is written to the trace data storage memory, only data that is truly necessary when a specific event occurs can be efficiently written to the trace data storage memory. Therefore, the debugging work of the control program can be performed accurately and quickly, information about the apparatus can be easily obtained when a specific event occurs in the plant, and the trace data storage memory can have a relatively small capacity.

【0169】また、請求項3の発明によれば、プラント
が特定の条件となったときトレースデータの保存を開始
すると共に、プラントが別の特定条件になったときトレ
ースデータの保存を停止するようにしたので、真に必要
な特定の場合だけのトレースデータが得られ、デバック
等も効率的にでき、装置自体の検証も短時間ででき、ト
レースデータ格納メモリの容量の縮小を図ることができ
る。
According to the invention of claim 3, storage of the trace data is started when the plant has a specific condition, and storage of the trace data is stopped when the plant has another specific condition. Therefore, it is possible to obtain trace data only in a specific case that is truly necessary, to efficiently debug and the like, to perform verification of the apparatus itself in a short time, and to reduce the capacity of the trace data storage memory. .

【0170】また、請求項4の発明によれば、予め定め
たトリガ条件が成立すると複数組のトレースデータ収集
ポイントの中から該当するトレースデータ収集ポイント
に切替えるようにしたので、プラントの事象に応じて真
に必要なデータのみが選択され収集できる。従って、収
集されたデータから必要なデータを選別する作業が不要
となり、プラントの詳細な挙動の解析や制御プログラム
のデバックが効率的にできる。
According to the fourth aspect of the present invention, when a predetermined trigger condition is satisfied, the trace data collection point is switched from a plurality of sets of trace data collection points to a corresponding trace data collection point. Only the data that is really needed can be selected and collected. Therefore, the operation of selecting necessary data from the collected data is not required, and the detailed behavior analysis of the plant and the debugging of the control program can be efficiently performed.

【0171】また、請求項5の発明によれば、予め定め
たトリガ条件が成立すると複数組のトレースデータ収集
周期情報の中から該当するトレースデータ収集周期に切
替えるようにしたので、プラントの事象に応じ必要なト
レースデータ収集周期でデータが収集することができ
る。従って、トレースデータ格納メモリの容量を増加す
ることなく必要なデータが収集でき、プラントの詳細な
挙動の解析や制御プログラムのデバックが効率的にでき
る。
According to the fifth aspect of the present invention, when a predetermined trigger condition is satisfied, a plurality of sets of trace data collection cycle information are switched to a corresponding trace data collection cycle. Data can be collected at a necessary trace data collection cycle. Therefore, necessary data can be collected without increasing the capacity of the trace data storage memory, and the detailed behavior analysis of the plant and the debugging of the control program can be efficiently performed.

【0172】また、請求項6の発明によれば、予め定め
たトリガ条件が成立すると複数組のトレースデータ一致
条件の中から該当するトレースデータ一致条件に切替え
るようにしたので、プラントの事象に応じて真に必要な
データのみが選択され収集することができる。従って、
収集されたデータから必要なデータを選別する作業が不
要となり、プラントの詳細な挙動の解析や制御プログラ
ムのデバックが効率的にできる。
According to the sixth aspect of the present invention, when a predetermined trigger condition is satisfied, a plurality of sets of trace data matching conditions are switched to a corresponding trace data matching condition. Only the data that is really needed can be selected and collected. Therefore,
The work of selecting necessary data from the collected data becomes unnecessary, and the detailed behavior analysis of the plant and the debugging of the control program can be efficiently performed.

【0173】また、請求項7の発明によれば、プラント
の事象が複数回重なって発生したような場合でも補助の
トレースデータ保存メモリへトレースデータを保存する
ようにしたので、一度に複数の事象分のトレースデータ
が抜けることなく確実に採集される。従って、プラント
の詳細な挙動が解析でき、また、制御プログラムのデバ
ック時間の短縮が図れる。
According to the seventh aspect of the present invention, the trace data is stored in the auxiliary trace data storage memory even when the event of the plant occurs a plurality of times. Minutes of trace data are collected without fail. Therefore, the detailed behavior of the plant can be analyzed, and the debugging time of the control program can be reduced.

【0174】また、請求項8の発明によれば、予め設定
された送信条件が成立するとトレースデータ格納メモリ
あるいはトレースデータ保存メモリのデータが保守ツー
ルへ送信され、保守ツール側でデータを保存するように
したので、保守ツール側のハードディスクに空きがある
限り大量のデータが漏れなく保存できる。従って、過去
の履歴を含むプラントの事象の解析ができる。
According to the invention of claim 8, when a preset transmission condition is satisfied, the data in the trace data storage memory or the trace data storage memory is transmitted to the maintenance tool, and the data is stored on the maintenance tool side. As a result, a large amount of data can be saved without omission as long as there is free space on the hard disk on the maintenance tool side. Therefore, the event of the plant including the past history can be analyzed.

【0175】また、請求項9の発明によれば、保守ツー
ルへ制御用マイクロコンピュータ装置からトレースデー
タが漏れなく取り込まれ目視可能なスピードで制御プロ
グラムとトレースデータとが再生表示するようにしたの
で、高速に処理されたデータが取りこぼしなく表示で
き、プラントの挙動の解析が容易に正確にでき、制御プ
ログラムのデバック作業も効率的にできる。
According to the ninth aspect of the present invention, the trace data is fetched from the control microcomputer device to the maintenance tool without omission, and the control program and the trace data are reproduced and displayed at a visible speed. High-speed processed data can be displayed without any loss, the behavior of the plant can be easily and accurately analyzed, and the debugging of the control program can be performed efficiently.

【0176】また、請求項10の発明によれば、保守ツ
ール側で制御プログラムとトレースデータとが対比され
1トレースデータづつ漏れなく順次再生または逆再生表
示するようにしたので、人間の目を介してプラントの挙
動の解析や制御プログラムのデバックが確実にできる。
Further, according to the tenth aspect of the present invention, the control program and the trace data are compared on the maintenance tool side, and the trace data is reproduced or displayed in reverse order without missing one trace data. Thus, the analysis of the behavior of the plant and the debugging of the control program can be reliably performed.

【0177】また、請求項11の発明によれば、トレー
スデータと既知データとを照合して、その結果を出力す
るようにしたので、制御用マイクロコンピュータ装置が
正常に動作したか否かを人間が介在することなく、診断
することができ、効率的に処理できる。
According to the eleventh aspect of the present invention, the trace data is compared with the known data, and the result is output, so that it is possible to determine whether or not the control microcomputer device operates normally. Can be diagnosed without intervention, and can be processed efficiently.

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

【図1】本発明の第1実施の形態を示す制御用マイクロ
コンピュータ装置の構成図である。
FIG. 1 is a configuration diagram of a control microcomputer device according to a first embodiment of the present invention.

【図2】本発明の第1実施の形態を示す制御用マイクロ
コンピュータ装置の処理手順を示すフローチャートであ
る。
FIG. 2 is a flowchart illustrating a processing procedure of a control microcomputer device according to the first embodiment of the present invention.

【図3】本発明の第2実施の形態を示す制御用マイクロ
コンピュータ装置の処理手順を示すフローチャートであ
る。
FIG. 3 is a flowchart illustrating a processing procedure of a control microcomputer device according to a second embodiment of the present invention.

【図4】本発明の第3実施の形態を示す制御用マイクロ
コンピュータ装置の処理手順を示すフローチャートであ
る。
FIG. 4 is a flowchart illustrating a processing procedure of a control microcomputer device according to a third embodiment of the present invention.

【図5】本発明の第4実施の形態を示す制御用マイクロ
コンピュータ装置の処理手順を示すフローチャートであ
る。
FIG. 5 is a flowchart illustrating a processing procedure of a control microcomputer device according to a fourth embodiment of the present invention.

【図6】本発明の第5実施の形態を示す制御用マイクロ
コンピュータ装置の処理手順を示すフローチャートであ
る。
FIG. 6 is a flowchart illustrating a processing procedure of a control microcomputer device according to a fifth embodiment of the present invention.

【図7】本発明の第6実施の形態を示す制御用マイクロ
コンピュータ装置の処理手順を示すフローチャートであ
る。
FIG. 7 is a flowchart illustrating a processing procedure of a control microcomputer device according to a sixth embodiment of the present invention.

【図8】本発明の第7実施の形態を示す制御用マイクロ
コンピュータ装置の構成図である。
FIG. 8 is a configuration diagram of a control microcomputer device according to a seventh embodiment of the present invention.

【図9】本発明の第7実施の形態を示す制御用マイクロ
コンピュータ装置の処理手順を示すフローチャートであ
る。
FIG. 9 is a flowchart illustrating a processing procedure of a control microcomputer device according to a seventh embodiment of the present invention.

【図10】本発明の第8実施の形態を示す制御用マイク
ロコンピュータ装置の処理手順を示すフローチャートで
ある。
FIG. 10 is a flowchart showing a processing procedure of a control microcomputer device according to an eighth embodiment of the present invention.

【図11】本発明の第9実施の形態を示す制御用マイク
ロコンピュータ装置の保守ツールの構成図である。
FIG. 11 is a configuration diagram of a maintenance tool of a control microcomputer device according to a ninth embodiment of the present invention.

【図12】本発明の第9実施の形態を示す制御用マイク
ロコンピュータ装置の保守ツールの処理手順を示すフロ
ーチャートである。
FIG. 12 is a flowchart illustrating a processing procedure of a maintenance tool of the control microcomputer device according to the ninth embodiment of the present invention.

【図13】本発明の第10実施の形態を示す制御用マイ
クロコンピュータ装置の保守ツールの処理手順を示すフ
ローチャートである。
FIG. 13 is a flowchart showing a processing procedure of a maintenance tool of the control microcomputer device according to the tenth embodiment of the present invention.

【図14】本発明の第11実施の形態を示す制御用マイ
クロコンピュータ装置の保守ツールの構成図である。
FIG. 14 is a configuration diagram of a maintenance tool of a control microcomputer device according to an eleventh embodiment of the present invention.

【図15】本発明の第11実施の形態を示す制御用マイ
クロコンピュータ装置の保守ツールの処理手順を示すフ
ローチャートである。
FIG. 15 is a flowchart illustrating a processing procedure of a maintenance tool of the control microcomputer device according to the eleventh embodiment of the present invention.

【図16】従来例を示す制御用マイクロコンピュータ装
置の構成図である。
FIG. 16 is a configuration diagram of a control microcomputer device showing a conventional example.

【図17】従来の制御用マイクロコンピュータ装置の処
理手順を示すフローチャートである。
FIG. 17 is a flowchart showing a processing procedure of a conventional control microcomputer device.

【図18】従来の制御用マイクロコンピュータ装置の保
守ツールを示すブロック構成図である。
FIG. 18 is a block diagram showing a maintenance tool of a conventional control microcomputer device.

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

1 制御用マイクロコンピュータ装置 2 主制御部 3 外部入出力部 4 プログラム格納メモリ 5 演算用メモリ 6 伝送部 7,7A,7B 保守ツール 8 トレース条件格納メモリ 9 トレースデータ格納メモリ 10 トレースデータ保存メモリ 22 制御部 23 入出力部 24 プログラム格納部 25 表示部 26 伝送部 27 トレース条件設定部 28 トレースデータ保存部 29 既知データ保存部 Reference Signs List 1 control microcomputer device 2 main control unit 3 external input / output unit 4 program storage memory 5 operation memory 6 transmission unit 7, 7A, 7B maintenance tool 8 trace condition storage memory 9 trace data storage memory 10 trace data storage memory 22 control Unit 23 input / output unit 24 program storage unit 25 display unit 26 transmission unit 27 trace condition setting unit 28 trace data storage unit 29 known data storage unit

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 プラントのデータを取込みプラントへデ
ータを出力する外部入出力部と、演算処理のため制御プ
ログラムを格納するプログラム格納メモリと、演算用デ
ータと得られた演算結果データを含むプラントとの間で
入出力するデータを格納する演算用メモリと、保守ツー
ルとの間でデータを伝送制御する伝送制御部と、制御周
期毎に前記制御プログラムの実行によって前記演算用デ
ータを用い演算を行い得られた演算結果データを前記演
算用メモリへ格納すると共に、前記外部入出力部からプ
ラントへ出力する主制御部とを備えた制御用マイクロコ
ンピュータ装置において、 前記演算用メモリに対応して該メモリのデータを読み出
して保存するための入力点のアドレス情報とトレースデ
ータ収集周期とを予めトレース条件データとして設定す
るトレース条件格納メモリと、 前記演算用メモリのデータを読み出し読み込みのための
トレースデータ格納メモリと、 前記トレース条件データによるトレースデータ収集周期
になると、設定された入力点のアドレス情報に従って前
記演算用メモリの該当するデータを読み出し前記トレー
スデータ格納メモリへ順次書込む手段とを備えることを
特徴とする制御用マイクロコンピュータ装置。
1. An external input / output unit for taking in plant data and outputting the data to the plant, a program storage memory for storing a control program for operation processing, and a plant including operation data and obtained operation result data. An operation memory for storing data to be input / output to / from, a transmission control unit for controlling transmission of data to / from a maintenance tool, and performing an operation using the operation data by executing the control program for each control cycle. A control microcomputer device comprising: a main control unit that stores the obtained operation result data in the operation memory and outputs the operation result data to the plant from the external input / output unit; the memory corresponding to the operation memory; The address information of the input point and the trace data collection cycle for reading and storing the A trace condition storage memory to be set; a trace data storage memory for reading and reading data from the arithmetic memory; and a trace data collection cycle based on the trace condition data, the arithmetic operation according to the address information of the set input point. Means for reading out corresponding data from the memory and sequentially writing the data into the trace data storage memory.
【請求項2】 プラントのデータを取込みプラントへデ
ータを出力する外部入出力部と、演算処理のため制御プ
ログラムを格納するプログラム格納メモリと、演算用デ
ータと得られた演算結果データを含むプラントとの間で
入出力するデータを格納する演算用メモリと、保守ツー
ルの間でデータを伝送制御する伝送制御部と、制御周期
毎に前記制御プログラムの実行によって前記演算用デー
タを用い演算を行い得られた演算結果データを前記演算
用メモリへ格納すると共に、前記外部入出力部からプラ
ントへ出力する主制御部とを備えた制御用マイクロコン
ピュータ装置において、 前記演算用メモリに対応し該メモリの指定された入力点
のデータが所定条件となったときのみ読み出すときのト
レース条件として格納するトレース条件格納メモリと、 前記演算用メモリのデータを読み出し読み込みのための
トレースデータ格納メモリと、 前記トレース条件データによるトレース条件となったと
き収集する入力点のアドレス情報に従って前記演算用メ
モリのデータを読み出し前記トレースデータ格納メモリ
へ順次書込む手段とを備えることを特徴とする制御用マ
イクロコンピュータ装置。
2. An external input / output unit for taking in plant data and outputting the data to the plant, a program storage memory for storing a control program for operation processing, and a plant containing operation data and obtained operation result data. An operation memory for storing data to be input / output to / from, a transmission control unit for controlling transmission of data between maintenance tools, and performing an operation using the operation data by executing the control program in each control cycle. And a main control unit for storing the calculated operation result data in the operation memory and outputting the operation result data from the external input / output unit to the plant. Trace condition storage memo that is stored as a trace condition for reading only when the data of the input point that has been entered meets the predetermined condition A trace data storage memory for reading and reading data from the operation memory; and reading the data from the operation memory according to address information of an input point to be collected when a trace condition based on the trace condition data is satisfied. Means for sequentially writing to a storage memory.
【請求項3】 前記トレース条件格納メモリはトレース
データ保存開始条件情報とトレースデータ保存終了条件
情報とを設定し、前記トレースデータ保存開始条件情報
がトレース許可で、かつ、トレース条件となったとき前
記演算用メモリのデータを読み出して前記トレースデー
タ格納メモリへ順次書き込みを開始する一方、前記トレ
ースデータ保存終了条件情報がトレース禁止となったと
き前記書込みを終了させる手段を設けたことを特徴とす
る請求項1または請求項2記載の制御用マイクロコンピ
ュータ装置。
3. The trace condition storage memory sets trace data storage start condition information and trace data storage end condition information. When the trace data storage start condition information indicates that the trace is permitted and the trace condition is satisfied, the trace condition storage memory sets the trace data storage start condition information. Means for reading data from an arithmetic memory and sequentially starting writing to the trace data storage memory, and terminating the writing when the trace data storage end condition information indicates that the trace is prohibited. 3. The control microcomputer device according to claim 1 or 2.
【請求項4】 前記トレース条件格納メモリは、前記演
算用メモリから前記トレース条件格納メモリへ書き込む
収集ポイントを特定する入力点のアドレス情報を複数組
設定した複数のトレース条件とこれらのトレース条件を
切替えるトリガ条件とを格納し、トリガ条件の成立時に
該当する収集ポイントのトレース条件の処理を実行する
ように切替える手段を設けたことを特徴とする請求項3
記載の制御用マイクロコンピュータ装置。
4. The trace condition storage memory switches a plurality of trace conditions in which a plurality of sets of address information of input points for specifying a collection point to be written from the operation memory to the trace condition storage memory are set, and the trace conditions are switched. 4. A storage device for storing a trigger condition and a switching means for executing processing of a trace condition of a corresponding collection point when the trigger condition is satisfied.
The control microcomputer device as described in the above.
【請求項5】 前記トレース条件格納メモリは、前記演
算用メモリから前記トレースデータ格納メモリへ書き込
むデータのトレースデータ収集周期情報を複数設定した
複数のトレース条件と、これらトレース条件を切替える
トリガ条件とを格納し、トリガ条件の成立時に該当する
トレースデータ収集周期条件の処理を実行するように切
替える手段を設けることを特徴とする請求項3記載の制
御用マイクロコンピュータ装置。
5. The trace condition storage memory includes a plurality of trace conditions in which a plurality of pieces of trace data collection cycle information of data to be written from the operation memory to the trace data storage memory are set, and a trigger condition for switching these trace conditions. 4. The control microcomputer device according to claim 3, further comprising means for storing and switching to execute processing of a trace data collection cycle condition when the trigger condition is satisfied.
【請求項6】 前記トレース条件格納メモリは、前記演
算用メモリから前記トレースデータ格納メモリへ書き込
むトレースデータ一致条件を複数設定したトレースデー
タ一致条件と、これらトレースデータ一致条件を切替え
るトリガ条件とを格納し、トリガ条件の成立時に該当す
るトレースデータ一致条件の処理を実行するように切替
える手段を設けることを特徴とする請求項3記載の制御
用マイクロコンピュータ装置。
6. The trace condition storage memory stores a trace data match condition in which a plurality of trace data match conditions set from the operation memory to the trace data storage memory are set, and a trigger condition for switching the trace data match conditions. 4. The control microcomputer device according to claim 3, further comprising means for switching so as to execute the processing of the trace data matching condition when the trigger condition is satisfied.
【請求項7】 前記トレースデータ格納メモリと別に補
助のトレースデータ格納メモリを設け、前記トレース条
件格納メモリに設定されるデータ保存条件が検出された
とき前記トレースデータ格納メモリの全データを前記補
助のトレースデータ格納メモリへ複写する手段を付加す
ることを特徴とする請求項3乃至請求項6記載のいずれ
かの制御用マイクロコンピュータ装置。
7. An auxiliary trace data storage memory is provided separately from the trace data storage memory, and when data storage conditions set in the trace condition storage memory are detected, all data in the trace data storage memory is converted to the auxiliary data. 7. The control microcomputer device according to claim 3, further comprising means for copying to a trace data storage memory.
【請求項8】 前記トレース条件格納メモリに格納され
たデータ送信条件が検出されたとき前記トレースデータ
格納メモリあるいは前記補助トレースデータ格納メモリ
のデータを前記保守ツールへ伝送制御部を介して伝送す
る手段を付加することを特徴とする請求項3乃至請求項
7記載のいずれかの制御用マイクロコンピュータ装置。
8. A means for transmitting data of said trace data storage memory or said auxiliary trace data storage memory to said maintenance tool via a transmission control unit when a data transmission condition stored in said trace condition storage memory is detected. The control microcomputer device according to any one of claims 3 to 7, further comprising:
【請求項9】 制御用マイクロコンピュータ装置の制御
プログラムあるいは演算用データを画面に表示する表示
部と、 オペレータが要求を入力する入力部と、 前記制御プログラムを格納するプログラム格納部と、 制御用マイクロコンピュータ装置に設けられる演算用メ
モリのデータをトレースデータ格納メモリへ書き込むト
レースデータ条件を設定するトレース条件設定部と、 制御用マイクロコンピュータ装置の伝送制御部との間で
データの伝送を行う伝送部と、 前記入力部からの表示要求に従って前記プログラム格納
部から制御プログラムを取出し前記表示部へ表示する一
方、表示された制御プログラムに基づいて制御用マイク
ロコンピュータのトレースデータ格納メモリからトレー
スデータを取込み前記表示部へ目視可能な周期で再生表
示させ、前記入力部からトレース条件設定要求に従って
前記トレース条件設定部によってトレース条件を設定
し、前記制御用マイクロコンピュータ装置に設けるトレ
ースデータ条件格納メモリへ伝送する制御部とを備える
ことを特徴とする制御用マイクロコンピュータ装置の保
守ツール。
9. A control unit for displaying a control program or calculation data of a control microcomputer device on a screen, an input unit for inputting a request by an operator, a program storage unit for storing the control program, and a control microcomputer. A trace condition setting unit that sets a trace data condition for writing data of an operation memory provided in a computer device to a trace data storage memory; and a transmission unit that transmits data between a transmission control unit of a control microcomputer device. Fetching a control program from the program storage unit in accordance with a display request from the input unit and displaying the control program on the display unit, while fetching trace data from a trace data storage memory of a control microcomputer based on the displayed control program, Playback with visible cycle And a control unit for setting a trace condition by the trace condition setting unit in accordance with the trace condition setting request from the input unit and transmitting the trace condition to a trace data condition storage memory provided in the control microcomputer device. Maintenance tool for control microcomputer device.
【請求項10】 前記トレースデータを1トレースデー
タづつ順次表示部へ表示する手段を備えることを特徴と
する請求項9記載の制御用マイクロコンピュータ装置の
保守ツール。
10. A maintenance tool for a control microcomputer device according to claim 9, further comprising means for sequentially displaying said trace data on a display unit one by one trace data.
【請求項11】 前記入力部からの既知データを保存す
る既知データ保存部と、 前記制御用マイクロコンピュータ装置から取込んだトレ
ースデータを保存するトレースデータ保存部と、 前記既知データと前記トレースデータを照合する手段を
備えることを特徴とする請求項9または請求項10記載
の制御用マイクロコンピュータ装置の保守ツール。
11. A known data storage unit for storing known data from the input unit, a trace data storage unit for storing trace data fetched from the control microcomputer device, and storing the known data and the trace data. 11. The maintenance tool for a control microcomputer device according to claim 9, further comprising means for checking.
JP8265058A 1996-09-17 1996-09-17 Control microcomputer device and maintenance tool for the same Pending JPH1091477A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8265058A JPH1091477A (en) 1996-09-17 1996-09-17 Control microcomputer device and maintenance tool for the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8265058A JPH1091477A (en) 1996-09-17 1996-09-17 Control microcomputer device and maintenance tool for the same

Publications (1)

Publication Number Publication Date
JPH1091477A true JPH1091477A (en) 1998-04-10

Family

ID=17412005

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8265058A Pending JPH1091477A (en) 1996-09-17 1996-09-17 Control microcomputer device and maintenance tool for the same

Country Status (1)

Country Link
JP (1) JPH1091477A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007500401A (en) * 2003-07-25 2007-01-11 ジンガー,アーサー,アール. Software debugging apparatus and method
WO2015136959A1 (en) * 2014-03-14 2015-09-17 オムロン株式会社 Control system, method, program and information processing device
JP2016085559A (en) * 2014-10-24 2016-05-19 ファナック株式会社 Programmable controller sampling signal address of sfc active step

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007500401A (en) * 2003-07-25 2007-01-11 ジンガー,アーサー,アール. Software debugging apparatus and method
WO2015136959A1 (en) * 2014-03-14 2015-09-17 オムロン株式会社 Control system, method, program and information processing device
JP2015176370A (en) * 2014-03-14 2015-10-05 オムロン株式会社 Control system, method, program and information processor
JP2016085559A (en) * 2014-10-24 2016-05-19 ファナック株式会社 Programmable controller sampling signal address of sfc active step

Similar Documents

Publication Publication Date Title
WO2015136959A1 (en) Control system, method, program and information processing device
JP6442131B2 (en) Control system and control device
JP3358759B2 (en) Data trace method for programmable controller
JPH1091477A (en) Control microcomputer device and maintenance tool for the same
JPH07219807A (en) Programmable controller system
JP3206096B2 (en) Input data processing device
JP2001154711A (en) Method and device for debugging process stepping type program
JP6870664B2 (en) Control systems, controls and programs
JPH0743732B2 (en) Storage method of collected data
JP2003208333A (en) Trace information searching device and method therefor
JP2005353020A (en) Simulation system for computer program
JP2595082B2 (en) Operation state monitoring device for programmable controller
JP7356778B2 (en) Program creation support device for programmable logic controllers
JP4569011B2 (en) Programmable controller and peripheral device thereof
JP2010182218A (en) Software behavior analysis system
JPH02253305A (en) Signal tracing system for programmable controller
JP2003263340A (en) Debug device
JPH05143395A (en) Diagnostic program execution system and log information display system to be used for the execution system
JP3456002B2 (en) Image processing inspection equipment
JPH0362104A (en) Inspection instrument
JPS644211B2 (en)
JPH04373036A (en) Software testing device for computer system
JPS60252959A (en) On-line trace controlling system
JPH0233178B2 (en)
JPH01134539A (en) Trace system for microprogram

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040323

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040713