JPH07219807A - Programmable controller system - Google Patents

Programmable controller system

Info

Publication number
JPH07219807A
JPH07219807A JP6014542A JP1454294A JPH07219807A JP H07219807 A JPH07219807 A JP H07219807A JP 6014542 A JP6014542 A JP 6014542A JP 1454294 A JP1454294 A JP 1454294A JP H07219807 A JPH07219807 A JP H07219807A
Authority
JP
Japan
Prior art keywords
trace
program
storage memory
programmable controller
controller device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP6014542A
Other languages
Japanese (ja)
Inventor
Koichi Kai
浩一 甲斐
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 JP6014542A priority Critical patent/JPH07219807A/en
Publication of JPH07219807A publication Critical patent/JPH07219807A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To regenerate and display the program executing state of a programmable controller after tracing it in a designated optional range. CONSTITUTION:A programmable controller controls a controlled system in a prescribed control cycle by a control program and also can trace the executing state of the program under the execution in an optional range and for each instructions. The controller is provided with a tracing result memory 15 which stores plural tracing results, a tracing start/stop means 12 which starts and stops the tracing operation in response to the tracing start/stop instructions 17, and a tracing result storing means 14 which stores in time series the tracing results obtained in each control cycle in the memory 15 in a trace executing period.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、プラントを構成する各
種設備機器のプロセス状態を制御するプログラマブルコ
ントローラ装置と、このプログラマブルコントローラ装
置における制御用プログラムの実行状態をトレースして
再現表示するプログミング装置とからなるプログラマブ
ルコントローラシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable controller device for controlling the process states of various equipments constituting a plant, and a programming device for tracing and reproducing the execution state of a control program in the programmable controller device. And a programmable controller system including.

【0002】[0002]

【従来の技術】プラントを構成する各種設備機器のプロ
セス状態を制御する一種のコンピュータで構成されたプ
ログラマブルコントローラ装置内には、前記各種設備機
器の動作を制御するためのプログラムが記憶されてい
る。
2. Description of the Related Art A program for controlling the operation of the various equipments is stored in a programmable controller device which is composed of a kind of computer for controlling the process states of various equipments which compose a plant.

【0003】プログラマブルコントローラ装置は、記憶
された制御用のプログラムに従って、一定の制御周期
(スキャン周期)で制御対象からプロセスデータが入力
される毎に、このプロセスデータに対して、PID演算
等を含む所定の制御演算を実行して、この演算結果を操
作量として制御対象機器へ送出して、制御対象機器の動
作状態を目標状態に制御する。
The programmable controller device includes a PID operation or the like for the process data every time process data is input from a control target at a constant control cycle (scan cycle) in accordance with a stored control program. A predetermined control calculation is executed, the calculation result is sent to the control target device as an operation amount, and the operating state of the control target device is controlled to the target state.

【0004】プラントが大規模化し、制御対象の各機器
の動作も複雑化の傾向にある。また、高い制御精度が求
められている。したがって、このような複雑な動作を精
度よく制御するためには、制御用のプログラムも複雑化
する。
[0004] As the plant becomes larger, the operation of each device to be controlled tends to be complicated. In addition, high control accuracy is required. Therefore, in order to control such a complicated operation with high accuracy, the control program also becomes complicated.

【0005】新規にプログラムを作成する場合は、作成
されたプログラムをプログラマブルコントローラ装置に
組込んで実際にプログラムを実行させて、正常に動作す
るか否かを確認するようにしている。したがって、プロ
グラムの実行状況を何等かの手法によって操作員が把握
する必要がある。このような要求に応じるために、プロ
グラムの実行状態を疑似リアルタイムで表示する機能を
備えたプログラマブルントローラ装置が提唱されてい
る。
When a new program is created, the created program is incorporated into a programmable controller device to actually execute the program, and it is confirmed whether or not the program operates normally. Therefore, it is necessary for the operator to grasp the execution status of the program by some method. In order to meet such a demand, a programmable controller device having a function of displaying a program execution state in pseudo real time has been proposed.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上述し
たプログラムの実行状態を疑似リアルタイムで表示する
プログラマブルコントローラ装置においても、まだ解消
すべき次のような課題があった。
However, even in the programmable controller device for displaying the execution state of the program in pseudo real time, there are still the following problems to be solved.

【0007】すなわち、上述したように、プログラムの
実行状態を疑似リアルタイムで表示することが可能であ
る。但し、各制御周期毎に実行するプログラムの実行状
態を随時トレースして表示するものではなく、プログラ
ムの制御周期とは別に操作者が目視可能な周期でプログ
ラムの実行状態をトレース(追跡)し、そのトレース結
果を表示している、一般に、プログラムの動作を検証す
るのみではこの方法でも十分である。しかし、プラント
の各機器に不審な挙動が発生し、これをプログラム動作
レベルで解折するには長時間に亘って操作者がプログラ
ムの実行状態を監視しなければならず、またトレース自
体も実時間で実行していないため実際の動作を把握する
ことは極めて困難である。
That is, as described above, it is possible to display the execution state of the program in pseudo real time. However, the execution state of the program executed in each control cycle is not displayed by tracing it at any time, but the execution state of the program is traced (tracked) at a cycle visible to the operator separately from the control cycle of the program, Displaying the trace result, generally, it is enough to verify the behavior of the program. However, suspicious behavior occurs in each equipment of the plant, and in order to break it down at the program operation level, the operator has to monitor the execution state of the program for a long time, and the trace itself is also real. It is extremely difficult to grasp the actual operation because it is not executed in time.

【0008】本発明はこのような事情に鑑みてなされた
ものであり、トレース結果を時系列的に記憶するトレー
ス結果メモリを設けることにより、常時操作者がプログ
ラムの実行状態を監視しなくても、必要に応じて後から
任意の期間を指定してトレース結果を再現表示でき、プ
ラント制御における現場での制御用プログラムの異常診
断,異常分析作業が簡単にかつ迅速に実施できるプログ
ラマブルコントローラ装置,プログラミング装置及びプ
ログラマブルコントローラシステムを提供することを目
的とする。
The present invention has been made in view of such circumstances, and by providing a trace result memory for storing trace results in time series, the operator does not have to constantly monitor the execution state of the program. , Programmable controller device that can trace and display trace results by specifying an arbitrary period later if necessary, and can easily and quickly perform abnormality diagnosis and abnormality analysis work for control programs in the field in plant control An object is to provide a device and a programmable controller system.

【0009】[0009]

【課題を解決するための手段】上記課題を解消するため
に本発明は、制御用のプログラムを用いて制御対象に対
して所定の制御周期で制御処理を実行すると共に、この
実行中のプログラムにおける任意の範囲の実行状態を命
令単位でトレース可能なプログラマブルコントローラ装
置に適用される。
SUMMARY OF THE INVENTION In order to solve the above problems, the present invention uses a control program to execute control processing on a control target at a predetermined control cycle, and It is applied to a programmable controller device capable of tracing an execution state in an arbitrary range for each instruction.

【0010】そして、図1に示すように、請求項1の発
明のプログラマブルコントローラ装置11においては、
複数のトレース結果を記憶するためのトレース結果記憶
メモリ15と、トレース開始停止指令に応じてトレース
を開始停止するトレース開始停止手段12と、トレース
実行期間中に、各制御周期毎に得られる各トレース結果
をトレース結果記憶メモリ15に時系列的に格納してい
くトレース結果格納手段14とを具備している。
Then, as shown in FIG. 1, in the programmable controller device 11 of the invention of claim 1,
A trace result storage memory 15 for storing a plurality of trace results, a trace start / stop means 12 for starting / stopping a trace in response to a trace start / stop command, and each trace obtained in each control cycle during a trace execution period. A trace result storage means 14 for storing the result in a trace result storage memory 15 in time series is provided.

【0011】また、請求項2のプログラマブルコントロ
ーラ装置においては、請求項1におけるトレース結果記
憶メモリ15を複数のスロット16を環状に接続してな
るリングバッファ構造で構成し、かつトレース結果格納
手段11は、トレース結果をこの環状に接続された各ス
ロット16へ順番に格納していく。
According to a second aspect of the programmable controller device of the present invention, the trace result storage memory 15 of the first aspect has a ring buffer structure in which a plurality of slots 16 are annularly connected, and the trace result storage means 11 is , The trace result is sequentially stored in each slot 16 connected in a ring.

【0012】請求項3のプログラマブルコントローラ装
置においては、請求項1のプログラマブルコントローラ
装置の各手段の他に、トレースの開始条件180とトレ
ースの停止条件181、及びトレース停止条件成立から
トレース停止までのディレィ時間182を記憶するデー
タ記憶メモリ17を設けている。さらに、トレース開始
停止手段12は、データ記憶メモリ17に記憶されてい
る各条件及びディレィ時間182に基づいてトレースを
開始停止するようにしている。
According to a third aspect of the programmable controller device, in addition to the means of the programmable controller device of the first aspect, a trace start condition 180, a trace stop condition 181, and a delay from the establishment of the trace stop condition to the trace stop. A data storage memory 17 for storing the time 182 is provided. Further, the trace start / stop means 12 starts / stops the trace based on each condition and the delay time 182 stored in the data storage memory 17.

【0013】請求項4の発明のプログラミング装置19
は、複数のトレース結果を記憶するためのトレース結果
記憶メモリ112と、接続されたプログラマブルコント
ローラ装置11における制御用のプログラムの各制御周
期毎のトレース結果を、このプログラマブルコントロー
ラ装置11から読出してトレース結果記憶メモリ112
へ時系列的に書込むトレース結果転送手段110と、ト
レース結果記憶メモリ112に記憶されている各トレー
ス結果を任意の時間帯を指定して取出すトレース結果取
出手段117と、プログラマブルコントローラ装置11
のプログラムと同一のプログラムを記憶するプログラム
ソース記憶メモリ114と、プログラムソース記憶メモ
リ114から読出した各プログラム情報とトレース結果
取出手段117にて取出された各トレース結果とを比較
照合してプログラマブルコントローラ装置11における
プログラムの実行状態を再現表示するプログラム実行再
現表示手段118と、トレース結果取出手段117及び
プログラム実行再現表示手段118を指定された周期で
実行させるプログラム実行再現管理手段116とで構成
されている。
The programming device 19 according to the invention of claim 4
Is a trace result storage memory 112 for storing a plurality of trace results, and a trace result for each control cycle of a control program in the connected programmable controller device 11 is read out from the programmable controller device 11 to obtain a trace result. Storage memory 112
Trace result transfer means 110 for writing in time series, trace result extraction means 117 for extracting each trace result stored in the trace result storage memory 112 by designating an arbitrary time zone, and programmable controller device 11
Program source storage memory 114 for storing the same program as the above program, the program information read from the program source storage memory 114 and the trace results fetched by the trace result fetching means 117 are compared and collated, and the programmable controller device The program execution reproduction display means 118 for reproducing and displaying the execution state of the program in 11, and the program execution reproduction management means 116 for executing the trace result extraction means 117 and the program execution reproduction display means 118 at a designated cycle. .

【0014】また、請求項5のプログラミング装置にお
いては、請求項4のプログラミング装置19におけるプ
ログラム実行再現管理手段116が、トレース結果取出
手段117にトレース結果記憶メモリ112における取
出開始位置113を指定し、かつトレース結果取出手段
117にて得られたトレース結果とプログラムソース記
憶メモリ114内の対応するプログラム115の指定情
報とをプログラム実行再現表示手段118に与えるよう
にしている。
In the programming device of claim 5, the program execution reproduction management means 116 in the programming device 19 of claim 4 specifies the extraction start position 113 in the trace result storage memory 112 to the trace result extraction means 117, Moreover, the trace result obtained by the trace result extracting means 117 and the designation information of the corresponding program 115 in the program source storage memory 114 are given to the program execution reproduction displaying means 118.

【0015】請求項6のプログラミング装置は、請求項
4のプログラミング装置19の各手段に加えて、プログ
ラマブルコントローラ装置11へトレースの開始終了指
令を送出すると共に、トレース結果転送手段110へ転
送開始終了指令を送出する再生停止要求発生手段123
を設けている。
In addition to the means of the programming device 19 of claim 4, the programming device of claim 6 sends a trace start / end command to the programmable controller device 11 and transfers to the trace result transfer means 110 a transfer start / end command. Reproduction stop request generating means 123 for transmitting
Is provided.

【0016】請求項7のプログラマブルコントローラシ
ステムは請求項1のプログラマブルコントローラ装置1
1と請求項4のプログラミング装置19とを接続したも
のである。
A programmable controller system according to claim 7 is the programmable controller device 1 according to claim 1.
1 and the programming device 19 of claim 4 are connected.

【0017】すなわち、制御用のプログラムを用いて制
御対象に対して所定の制御周期で制御処理を実行すると
共に、この実行中の前記プログラムにおける任意の範囲
の実行状態を命令単位でトレース可能なプログラマブル
コントローラ装置と、このプログラマブルコントローラ
装置に接続され、このプログラマブルコントローラ装置
におけるプログラムの実行状態を再現表示するプログラ
ミング装置とからなる。
That is, a control program is used to execute control processing on a controlled object at a predetermined control cycle, and the execution state of an arbitrary range in the program being executed can be traced in instruction units. It comprises a controller device and a programming device which is connected to the programmable controller device and reproduces and displays the execution state of the program in the programmable controller device.

【0018】具体的には、プログラマブルコントローラ
装置11に対して、複数のトレース結果を記憶するため
の第1のトレース結果記憶メモリ15と、トレース開始
停止指令に応じてトレースを開始停止するトレース開始
停止手段12と、トレース実行期間中に、各制御周期毎
に得られる各トレース結果を第1のトレース結果記憶メ
モリに時系列的に格納していくトレース結果格納手段1
4とを付加している。
Specifically, for the programmable controller device 11, a first trace result storage memory 15 for storing a plurality of trace results, and a trace start / stop for starting / stopping a trace in response to a trace start / stop command. Means 12 and a trace result storage means 1 for storing each trace result obtained for each control cycle in the first trace result storage memory in time series during the trace execution period.
4 and are added.

【0019】また、プログラミング装置19に対して、
複数のトレース結果を記憶するための第2のトレース結
果記憶メモリ112と、プログラマブルコントローラ装
置11の第1のトレース結果記憶メモリ15に記憶され
た各トレース結果を読出して第2のトレース結果記憶メ
モリへ時系列的に書込むトレース結果転送手段110
と、第2のトレース結果記憶メモリ12に記憶されてい
る各トレース結果を任意の時間帯を指定して取出すトレ
ース結果取出手段117と、プログラマブルコントロー
ラ装置11のプログラムと同一のプログラムを記憶する
プログラムソース記憶メモリ114と、このプログラム
ソース記憶メモリ114から読出した各プログラム情報
とトレース結果取出手段117にて取出された各トレー
ス結果とを比較照合してプログラマブルコントローラ装
置11におけるプログラムの実行状態を表示するプログ
ラム実行再現表示手段110と、トレース結果取出手段
117及びプログラム実行再現表示手段118を指定さ
れた周期で実行させるプログラム実行再現管理手段11
6とを付加している。
Also, for the programming device 19,
A second trace result storage memory 112 for storing a plurality of trace results and each trace result stored in the first trace result storage memory 15 of the programmable controller device 11 are read out to the second trace result storage memory. Trace result transfer means 110 for writing in time series
And a trace result extraction means 117 for extracting each trace result stored in the second trace result storage memory 12 by designating an arbitrary time period, and a program source for storing the same program as the program of the programmable controller device 11. A program for displaying the execution state of the program in the programmable controller device 11 by comparing and collating the storage memory 114, each program information read from the program source storage memory 114, and each trace result extracted by the trace result extraction means 117. Program execution reproduction management means 11 for executing the execution reproduction display means 110, the trace result extraction means 117, and the program execution reproduction display means 118 in a designated cycle.
6 and 6 are added.

【0020】[0020]

【作用】このように構成された請求項1のプログラマブ
ルコントローラ装置11においては、例えばプラントを
構成する各機器からなる制御対象に対して制御用のプロ
グラムを用いて所定の制御周期で制御処理を実行してい
る。そして、例えば外部からトレース開始指令を入力す
ると、プログラムの実行中のプログラムの実行状態が命
令単位でトレース(追跡)されて、トレース結果がトレ
ース結果メモリ15へ時系列的に書き込まれる。そし
て、トレース停止指令を入力すると、上記トレースが停
止される。
In the programmable controller device 11 according to the first aspect of the present invention configured as described above, for example, control processing is executed at a predetermined control cycle using a control program for a control target including each device constituting a plant. is doing. Then, for example, when a trace start command is input from the outside, the execution state of the program being executed is traced (traced) in units of instructions, and the trace result is written in the trace result memory 15 in time series. Then, when a trace stop command is input, the trace is stopped.

【0021】よって、プログラムコントローラ装置11
における実行中のプログラムの動作状態に任意の範囲を
指定してトレースし、そのトレース結果をトレース結果
記憶メモリに記憶保持できるので、このトレース結果記
憶メモリの記憶内容を読出することによって、プログラ
ムにおける任意位置の動作状態を把握できる。
Therefore, the program controller device 11
Since it is possible to trace by specifying an arbitrary range for the operating state of the program being executed in, and to store and hold the trace result in the trace result storage memory, by reading the stored contents of this trace result storage memory, the You can grasp the operating status of the position.

【0022】請求項2のプログラマブルコントローラ装
置11においては、トレース結果記憶メモリ15を複数
のスロット16を環状に接続してなるリングバッファ構
造で構成している。そして、トレース結果がこの環状に
接続された各スロット16へ順番に格納される。
According to another aspect of the programmable controller device 11 of the present invention, the trace result storage memory 15 has a ring buffer structure in which a plurality of slots 16 are annularly connected. Then, the trace result is sequentially stored in each slot 16 connected in a ring.

【0023】最終のスロット16に対するトレース結果
の格納が終了すると、トレース結果の格納スロットが先
頭のスロットに移動する。すなわち、トレース期間が長
くなると、トレース結果記憶メモリ15には常に所定量
の最新のトレース結果が記憶保持される。
When the storage of the trace result in the final slot 16 is completed, the trace result storage slot moves to the leading slot. That is, when the trace period becomes long, a predetermined amount of the latest trace result is always stored and held in the trace result storage memory 15.

【0024】よって、常時トレースを実行させておくこ
とによって、異常発生等におけるプログラムの動作状態
を見逃さずに確認できる。請求項3のプログラマブルコ
ントローラ装置11においては、操作者は、プログラム
動作の特に検証したい範囲をデータ記憶メモリ17内
に、トレースの開始条件180及びトレースの停止条件
181を予め設定しておくことによって、操作者は確実
に必要な部分のトレース結果を得ることが可能である。
Therefore, by always executing the trace, it is possible to confirm the operating state of the program in the event of an abnormality without overlooking it. In the programmable controller device 11 according to claim 3, the operator presets a trace start condition 180 and a trace stop condition 181 in the data storage memory 17 in a range to be particularly verified for the program operation. The operator can surely obtain the trace result of the necessary portion.

【0025】さらに、データ記憶メモリ17内に、ディ
レィ時間182を設定しておくことによって、トレース
停止条件で即座にトレース停止するのではなくて、トレ
ース停止条件が満足された後における所定期間分のトレ
ース結果を得ることが可能である。すなわち、所定事象
が発生して停止条件を満たしたとしてもその前後所定期
間のトーレス結果を観察することによって、事象の発生
原因やこの事象に起因して発生する数々の事象を確認で
きる。
Furthermore, by setting the delay time 182 in the data storage memory 17, the trace is not stopped immediately under the trace stop condition but for a predetermined period after the trace stop condition is satisfied. It is possible to get the trace result. That is, even if a predetermined event occurs and the stop condition is satisfied, by observing the Torres results for a predetermined period before and after that, it is possible to confirm the cause of the event and various events that occur due to this event.

【0026】請求項4のプログラミング装置19は請求
項1のプログラマブルコントローラ装置11にて自己の
トレース結果記憶メモリ15に記憶された各トレース結
果を用いてプログラムの実行状態を再現表示する機能を
有する。
The programming device 19 of claim 4 has a function of reproducing and displaying the execution state of the program by using each trace result stored in its own trace result storage memory 15 in the programmable controller device 11 of claim 1.

【0027】すなわち、プログラマブルコントローラ装
置11に記憶された各制御周期毎のトレース結果が読出
されて自己のトレース結果記憶メモリ112へ時系列的
に書込まれる。一方、プログラムソース記憶メモリ11
4にはプログラマブルコントローラ装置11で使用され
るプログラムが記憶されている。そして、このトレース
結果記憶メモリ112から各プログラム情報が読出され
ると同時に、プログラムソース記憶メモリ114からプ
ログラムの該当位置が読出されて、プログラムとトレー
ス結果とが比較対象されて例えばCRT表示装置に、プ
ログラムの実行状態として再現表示される。
That is, the trace result for each control cycle stored in the programmable controller device 11 is read and written in the trace result storage memory 112 of its own in time series. On the other hand, the program source storage memory 11
4 stores a program used in the programmable controller device 11. Then, at the same time that each program information is read from the trace result storage memory 112, the corresponding position of the program is read from the program source storage memory 114, and the program and the trace result are compared with each other, for example, on a CRT display device. It is reproduced and displayed as the execution status of the program.

【0028】このようにプログラマブルコントローラ装
置11に上記機能を有したプログラミング装置19を接
続することによって、操作者は、プログラマブルコント
ローラ装置11におけるプログラムの任意位置における
実行状態を表示画面上で確認できる。
By connecting the programming device 19 having the above functions to the programmable controller device 11 in this manner, the operator can confirm the execution state of the program in the programmable controller device 11 at an arbitrary position on the display screen.

【0029】請求項5のプログラミング装置19におい
ては、トレース結果記憶メモリ112のトレース結果の
取出開始位置及びプログラムソース記憶メモリ114の
プログラムの記憶位置を指定することによって、より確
実にプログラムとトレース結果とを比較対照してプログ
ラムの動作状態を把握できる。
In the programming device 19 according to the fifth aspect, by designating the extraction start position of the trace result in the trace result storage memory 112 and the storage position of the program in the program source storage memory 114, the program and the trace result can be more reliably generated. You can grasp the operating status of the program by comparing and contrasting.

【0030】また、請求項6のプログラミング装置19
においては、プログラミング装置19側からプログラマ
ブルコントローラ装置11に対して、トレースの開始停
止を指示できる。よって、プログラマブルコントローラ
装置11に対する遠隔操作が可能である。
The programming device 19 of claim 6
In, the programming device 19 side can instruct the programmable controller device 11 to start and stop the trace. Therefore, remote control of the programmable controller device 11 is possible.

【0031】また、請求項7のプログラマブルコントロ
ーラシステムにおいては、請求項1のプログラマブルコ
ントローラ装置11に請求項4のプログラミング装置1
9を接続したものである。したがって、プログラマブル
コントローラ装置におけるプログラムの実行状態をプロ
グラミング装置でもって簡単に再現表示するすることが
可能となる。
In the programmable controller system according to claim 7, the programmable controller device 11 according to claim 1 and the programming device 1 according to claim 4 are provided.
9 is connected. Therefore, the execution state of the program in the programmable controller device can be easily reproduced and displayed by the programming device.

【0032】[0032]

【実施例】以下本発明の一実施例を図面を用いて説明す
る。図2は本発明の実施例のブロクラマブルコントロー
ラ装置とプログラミンク装置が組込まれたプログラマブ
ルコントローラシステムの概略構成図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 2 is a schematic configuration diagram of a programmable controller system incorporating a blockable controller device and a programming device according to an embodiment of the present invention.

【0033】プログラマブルコントローラ装置23は伝
送ライン22を介してプログラミング装置21に接続さ
れている。プログラマブルコントローラ装置23に、I
/Oバス24を介して、プラントを構成する各種設備機
器からなる制御対象からのプロセスデータの入力出力処
理を行うための入出力カード25が接続されている。ま
た、プログラミング装置21に対してデータ及びプログ
ラム等の入力又は表示に使用するCRTディスプレイ2
6とキーボード27とが接続されている。
The programmable controller device 23 is connected to the programming device 21 via a transmission line 22. In the programmable controller device 23, I
An I / O card 25 for inputting / outputting process data from a control target, which is composed of various types of equipment constituting the plant, is connected via the / O bus 24. In addition, a CRT display 2 used for inputting or displaying data and programs to the programming device 21.
6 and the keyboard 27 are connected.

【0034】プログラマブルコントローラ装置23は例
えば図3に示すように構成されている。内部バス38に
対して、CPU部32,OS用メモリ33,プログラム
記憶メモリ34,データ記憶メモリ35,第1のトレー
ス結果記憶メモリとしてのトレース結果記憶メモリ31
1,伝送用インタフェース36,I/O入出力インタフ
ェース37等が接続されている。
The programmable controller device 23 is constructed, for example, as shown in FIG. For the internal bus 38, the CPU unit 32, the OS memory 33, the program storage memory 34, the data storage memory 35, and the trace result storage memory 31 as the first trace result storage memory.
1, a transmission interface 36, an I / O input / output interface 37, etc. are connected.

【0035】伝送用インタフェース36は伝送ライン2
2を介して前記プログラミング装置21との間で情報交
換を実施する。I/O入出力インタフェース37はI/
Oバス24及び前記各I/O入出力カード25を介して
制御対象との間でデータの入出力を行う。
The transmission interface 36 is the transmission line 2
Information is exchanged with the programming device 21 via the connection 2. The I / O input / output interface 37 is I / O
Data is input and output to and from the controlled object via the O bus 24 and the respective I / O input / output cards 25.

【0036】図5はプログラマブルコントローラ装置2
3のCPU部32が行う各種処理業務の構成図である。
これらの各処理業務の処理プログラムは、前記OS用メ
モリ33に予め書込まれていて、CPU部32で実行さ
れる。システムの電源が投入されると、全体実行管理部
51が起動され、各々の事象の発生に従って予め決めら
れた手順で該当する各処理部52〜57を起動する。
FIG. 5 shows the programmable controller device 2
It is a block diagram of various processing operations performed by the CPU unit 32 of FIG.
Processing programs for each of these processing tasks are written in the OS memory 33 in advance and are executed by the CPU unit 32. When the power of the system is turned on, the overall execution management unit 51 is activated, and the corresponding processing units 52 to 57 are activated in a predetermined procedure according to the occurrence of each event.

【0037】先ず、プログラム実行管理部54は、図6
の流れ図に示すように、プログラム記憶メモリ34から
プログラム612を抽出して実行するとともにトレース
開始停止判定処理63を実行する。
First, the program execution management unit 54 is shown in FIG.
3, the program 612 is extracted from the program storage memory 34 and executed, and the trace start / stop determination processing 63 is executed.

【0038】更に詳細に説明すると、図6の流れ図に示
すように、前記で述べたようにプログラム実行管理部5
1は制御周期の割込みにより起動され、プログラム番号
iを0に初期化する。次にトレース開始停止判定処理6
3を実行する。プログラム記憶メモリ35に書込まれて
いるプログラム611〜613の中からi番目のプログ
ラム612を抽出する。そして、ステップ65にてこの
抽出したプログラムi(612)を実行する。
More specifically, as shown in the flow chart of FIG. 6, the program execution management unit 5 as described above.
1 is activated by the interrupt of the control cycle and initializes the program number i to 0. Next, trace start / stop determination processing 6
Execute 3. The i-th program 612 is extracted from the programs 611 to 613 written in the program storage memory 35. Then, in step 65, the extracted program i (612) is executed.

【0039】プログラムiの実行が終了すると、プログ
ラム番号iを次の番号に更新し、番号iが最終プログラ
ム613の番号Nを越えていなければ、次のプログラム
を実行する。最終プログラムNの実行が終了するとプロ
グラム実行管理54の処理を終了する。
When the execution of the program i is completed, the program number i is updated to the next number. If the number i does not exceed the number N of the final program 613, the next program is executed. When the execution of the final program N ends, the processing of the program execution management 54 ends.

【0040】図7は、図6に示す前記プログラム実行管
理54が行う流れ図におけるトレース開始停止判定処理
63の動作を示すサブルーチンである。図7の流れ図が
開始されると、先ずデータ記憶メモリ35に書込まれて
いるトレース開始要求情報721の該当プログラム番号
715とこれから実行するプログラム番号iが同一であ
るか否かをチェックする。同一でないなら直ちにトレー
ス開始停止判定処理を終了する。同一ならばデータ記憶
メモリ714に書込まれているトレース中フラグ720
をチェックする。そして、ステップ73にてトレース中
でないならデータ記憶メモリ714に書込まれているト
レース開始要求情報721のトレース開始条件716を
取出してトレース開始条件716が成立しているかチェ
ックする。
FIG. 7 is a subroutine showing the operation of the trace start / stop judgment processing 63 in the flowchart executed by the program execution management 54 shown in FIG. When the flow chart of FIG. 7 is started, it is first checked whether or not the corresponding program number 715 of the trace start request information 721 written in the data storage memory 35 and the program number i to be executed are the same. If they are not the same, the trace start / stop determination processing is immediately terminated. If they are the same, a tracing flag 720 written in the data storage memory 714.
Check. If the trace is not being traced in step 73, the trace start condition 716 of the trace start request information 721 written in the data storage memory 714 is taken out to check whether the trace start condition 716 is satisfied.

【0041】ステップ74で成立していなければ直ちに
このトレース開始停止判定処理を終了する。成立してい
ればトレース割込みを許可にしトレース中フラグ720
をセットし、このトレース開始停止判定処理を終了す
る。
If not satisfied at step 74, the trace start / stop determination processing is immediately ended. If it is established, the trace interrupt is enabled and the tracing flag 720 is set.
Is set, and the trace start / stop determination processing ends.

【0042】また、ステップ73にてトレース中なら
ば、データ記憶メモリ714に書込まれているトレース
開始要求情報721のトレース停止条件717を取出し
て、ステップ78にてトレース停止条件717が成立し
ているかチェックする。成立していなければ直ちにトレ
ース開始停止判定処理を終了する。
If the trace is being traced in step 73, the trace stop condition 717 of the trace start request information 721 written in the data storage memory 714 is taken out, and the trace stop condition 717 is satisfied in step 78. Check if there is. If not satisfied, the trace start / stop determination processing is immediately ended.

【0043】ステップ78において、成立していればデ
ータ記憶メモリ35のディレィカウンター719を更新
する。ステップ710において、データ記憶メモリ35
に書き込まれているトレース開始停止要求情報のディレ
ィ時間718と比較し、時間に達していなければ直ちに
トレース開始停止判定処理を終了する。達していればデ
ィレィカウンター719をクリアし、トレース中フラグ
720をクリアし、トレース割込みを禁止し、このトレ
ース開始停止判定処理を終了する。
In step 78, the delay counter 719 of the data storage memory 35 is updated if it is established. In step 710, the data storage memory 35
Compared with the delay time 718 of the trace start / stop request information written in, the trace start / stop determination processing is immediately ended if the time is not reached. If it has reached, the delay counter 719 is cleared, the tracing flag 720 is cleared, the trace interrupt is prohibited, and the trace start / stop determination processing is ended.

【0044】図5におけるプログラマブルコントローラ
装置23のプログラム書込読出処理部55は、伝送処理
部57を介してプログラミング装置21から送られてき
たプログラム611をプログラム記憶メモリ34へ書込
む。また、プログラム書込読出処理部55は、プログラ
ミング装置21からのプログラム読出要求に応じてプロ
グラム記憶メモリ34からプログラム611を読出し
て、伝送処理部57を介してプログラミング装置21へ
送信する機能を有する。
The program writing / reading processing unit 55 of the programmable controller device 23 in FIG. 5 writes the program 611 sent from the programming device 21 via the transmission processing unit 57 into the program storage memory 34. The program writing / reading processing unit 55 has a function of reading the program 611 from the program storage memory 34 in response to a program reading request from the programming device 21 and transmitting the program 611 to the programming device 21 via the transmission processing unit 57.

【0045】また、図5におけるトレース結果格納処理
部53は、トレース割込みにより起動されると、トレー
ス結果を図9に示すトレース結果記憶メモリ311のリ
ングバッファ99の各スロット912へ格納する。
When activated by a trace interrupt, the trace result storage processor 53 in FIG. 5 stores the trace result in each slot 912 of the ring buffer 99 of the trace result storage memory 311 shown in FIG.

【0046】具体的には、図8で示すように、前記のト
レース開始停止判定処理53によりトレース割込みを許
可して、プログラムiを実行すると、一つの命令82,
83,84,…,85を実行する毎にトレース割込みが
発生して、トレース結果格納処理53が起動実行され
る。トレース割込みはプログラムiの最後を示すEND
命令86に対する実行が終わるまで連続して発生する。
Specifically, as shown in FIG. 8, when the trace interrupt is permitted by the trace start / stop determination processing 53 and the program i is executed, one instruction 82,
A trace interrupt occurs each time 83, 84, ..., 85 is executed, and the trace result storage processing 53 is activated and executed. Trace interrupt is END indicating the end of program i
It continuously occurs until the execution of the instruction 86 is completed.

【0047】図9は前記トレース結果格納処理53の処
理動作を示す流れ図である。流れ図が開始されると、先
ずトレース結果記憶メモリ311におけるリングバッフ
ァ919の現在のスロット番号j(910)を検出して
取出すべきスロットj(912)を割出す。次に命令の
実行結果を現在のスロットj(912)へ格納する。次
にステップ94において、現在実行している命令がEN
D命令か否かをチェックする。
FIG. 9 is a flow chart showing the processing operation of the trace result storage processing 53. When the flow chart starts, first, the current slot number j (910) of the ring buffer 919 in the trace result storage memory 311 is detected and the slot j (912) to be taken out is determined. Next, the execution result of the instruction is stored in the current slot j (912). Next, at step 94, the currently executed instruction is EN
Check if it is a D instruction.

【0048】END命令でなければトレース結果格納処
理を終了する。またEND命令ならばスロット番号j
(910)を更新する。ステップ95にて、更新したス
ロット番号j(910)が最終スロットn(913)を
越えていなければトレース結果格納処理を終了し、越え
ていればスロット番号j(910)をスロット0(91
1)に書換えて今回のトレース結果格納処理を終了す
る。
If it is not the END instruction, the trace result storing process is terminated. If it is an END instruction, the slot number j
Update (910). In step 95, if the updated slot number j (910) does not exceed the final slot n (913), the trace result storing process is terminated, and if it exceeds, the slot number j (910) is assigned to slot 0 (91).
The trace result storing process of this time is ended by rewriting to 1).

【0049】図5に示すトレース結果読出処理部52
は、プログラミング装置21からのトレース結果読出要
求に従ってトレース結果記憶メモリ311からトレース
結果を読出して、伝送処理部57を介してプログラミン
グ装置21へ送信する。
Trace result read processing unit 52 shown in FIG.
Reads the trace result from the trace result storage memory 311 according to the trace result read request from the programming device 21, and transmits it to the programming device 21 via the transmission processing unit 57.

【0050】図5に示すシステムデータ書込読出処理部
56は、伝送処理部57を介してプログラミング装置2
1から送られてきたシステムデータ等をデータ記憶メモ
リ35へ書込む。また、システムデータ書込読出処理部
56はプログラミング装置21からのシステムデータ等
の読出要求に応じてデータ記憶メモリ35からシステム
データ等を読出して伝送処理部57を介入してプログラ
ミング装置21へ送信する。
The system data writing / reading processing unit 56 shown in FIG.
The system data and the like sent from 1 are written in the data storage memory 35. Further, the system data writing / reading processing unit 56 reads the system data or the like from the data storage memory 35 in response to a request for reading the system data or the like from the programming device 21 and intervenes the transmission processing unit 57 to transmit to the programming device 21. .

【0051】また、伝送処理部57は、各処理部からの
要求に応じてデータ等をプログラミング装置21へ送信
し、かつプログラミング装置21から送られてくるデー
タ等を受信して所定の手順に従って各処理部へ通知す
る。
Further, the transmission processing unit 57 transmits data or the like to the programming device 21 in response to a request from each processing unit, receives data or the like sent from the programming device 21 and follows each predetermined procedure. Notify the processing unit.

【0052】次に、上述した構成を有するプログラマブ
ルコントローラ装置23に接続されたプログラミング装
置21を説明する。図4はプログラミング装置21の概
略構成を示すブロック図である。内部バス410に対し
て、CPU部42,OS用RAMメモリ43,データ記
憶メモリ44,プログラムソース記憶メモリ413,第
2のトレース結果記憶メモリとしてのトレース結果記憶
メモリ412,伝送用インタフェース46,CRTイン
タフェース45,キーボードインタフェース47が接続
されている。
Next, the programming device 21 connected to the programmable controller device 23 having the above configuration will be described. FIG. 4 is a block diagram showing a schematic configuration of the programming device 21. With respect to the internal bus 410, the CPU unit 42, the OS RAM memory 43, the data storage memory 44, the program source storage memory 413, the trace result storage memory 412 as the second trace result storage memory, the transmission interface 46, and the CRT interface. 45 and a keyboard interface 47 are connected.

【0053】伝送用インタフェース46は伝送ライン2
2を介してプログラマブルコントローラ装置23と情報
交換を行う。CRTインタフェース45はCRTディス
プレイ26へ所定のデータ及びプログラム等を表示す
る。キーボードインタフェース47はキーボード27か
ら所定のデータ及びプログラム等を入力する。
The transmission interface 46 is the transmission line 2
Information is exchanged with the programmable controller device 23 via the control unit 2. The CRT interface 45 displays predetermined data and programs on the CRT display 26. The keyboard interface 47 inputs predetermined data, programs and the like from the keyboard 27.

【0054】図10はプログラミング装置21の前記C
PU部42が実行する各処理を示す模式図である。これ
らの処理プログラムは予めOS用メモリ43に書込まれ
ている。システムの電源が投入され、システムリセット
が解除されると、全体実行管理部101は新しい事象が
発生する毎に所定の手順に従って各々の処理を起動実行
する。
FIG. 10 shows the C of the programming device 21.
5 is a schematic diagram showing each process executed by the PU unit 42. FIG. These processing programs are written in the OS memory 43 in advance. When the system is powered on and the system reset is released, the overall execution management unit 101 activates and executes each process according to a predetermined procedure every time a new event occurs.

【0055】キー入力処理部102はキーボード27か
らデータ等を入力して所定の手順に従って各処理部へ通
知し起動する。CRT表示処理部103は他の処理部か
ら所定の手続きに従ってデータ等をCRTディスプレイ
26へ表示する。
The key input processing unit 102 inputs data or the like from the keyboard 27, notifies each processing unit according to a predetermined procedure, and starts up. The CRT display processing unit 103 displays data and the like on the CRT display 26 from another processing unit according to a predetermined procedure.

【0056】プログラム書込読出処理部104は、所定
の手順に従ってキーボード27から入力したプログラム
をプログラムソース記憶メモリ413へ書込む。また、
プログラム書込読出処理部104は、所定の手順に従っ
てキーボード27から入力した読出要求によりプログラ
ムソース記憶メモリ413からプログラムを読出して所
定の手続きに従ってCRTディスプレイ26へ表示す
る。さらに、プログラム書込読出処理部104は、所定
の手順に従ってキーボード27から入力したプログラマ
ブルコントローラ書込要求に応じて、プログラムソース
記憶メモリ413からプログラムを読出して所定の手続
きに従って伝送処理部1010を介してプログラマブル
コントローラ装置23のプログラム記憶メモリ34へ送
信する。
The program writing / reading processing unit 104 writes the program input from the keyboard 27 into the program source storage memory 413 according to a predetermined procedure. Also,
Program write / read processing unit 104 reads a program from program source storage memory 413 according to a read request input from keyboard 27 according to a predetermined procedure, and displays it on CRT display 26 according to a predetermined procedure. Further, the program writing / reading processing unit 104 reads the program from the program source storage memory 413 in response to the programmable controller writing request input from the keyboard 27 according to a predetermined procedure, and through the transmission processing unit 1010 according to a predetermined procedure. It is transmitted to the program storage memory 34 of the programmable controller device 23.

【0057】図10におけるシステムデータ書込読出処
理部105は、所定の手順に従ってキーボード27から
入力したデータ等をデータ記憶メモリ44へ書き込む。
また、システムデータ書込読出処理部105は、所定の
手順に従ってキーボード27から入力したデータ等の読
出要求によりデータ記憶メモリ44からデータ等を読出
して所定の手続きに従ってCRTティスプレイ26へ表
示する。
The system data write / read processing unit 105 in FIG. 10 writes the data and the like input from the keyboard 27 into the data storage memory 44 according to a predetermined procedure.
The system data write / read processing unit 105 also reads data or the like from the data storage memory 44 in response to a read request for data or the like input from the keyboard 27 according to a predetermined procedure, and displays it on the CRT display 26 according to a predetermined procedure.

【0058】さらに、このシステムデータ書込読出処理
部105は、所定の手順に従ってキーボード27から入
力したプログラマブルコントローラ装置23に対する書
込要求によりデータ記憶メモリ44からデータ等を読出
して所定の手続きに従って伝送処理部1010を介して
プログラマブルコントローラ装置23のデータ記憶メモ
リ35へ送信する。
Further, the system data writing / reading processing unit 105 reads data and the like from the data storage memory 44 in response to a writing request to the programmable controller device 23 input from the keyboard 27 according to a predetermined procedure, and performs transmission processing according to a predetermined procedure. It is transmitted to the data storage memory 35 of the programmable controller device 23 via the unit 1010.

【0059】図10のプログラミング装置21のトレー
ス開始要求処理部106は、所定の手順に従ってキーボ
ード27から入力したトレース開始要求をプログラマブ
ルコントローラ装置23へ通知する。
The trace start request processing unit 106 of the programming device 21 of FIG. 10 notifies the programmable controller device 23 of the trace start request input from the keyboard 27 according to a predetermined procedure.

【0060】図11はこのトレース開始要求処理部10
6の動作を示す流れ図である。流れ図が開始されると、
ステップ112にて先ず所定の手順に従ってキーボード
27から入力したトレース開始要求情報118をデータ
記憶メモリ44へ一時的に書込む。次にステップ113
にて、データ記憶メモリ44からトレース開始要求情報
118を取出して、所定の手続きに従ってプログラマブ
ルコントローラ装置23へ送信した後、今回の処理を終
了する。
FIG. 11 shows the trace start request processing unit 10
6 is a flowchart showing the operation of No. 6. When the flow chart starts,
In step 112, first, the trace start request information 118 input from the keyboard 27 is temporarily written in the data storage memory 44 according to a predetermined procedure. Then step 113
Then, the trace start request information 118 is fetched from the data storage memory 44, transmitted to the programmable controller device 23 in accordance with a predetermined procedure, and then the present process is terminated.

【0061】図10におけるトレース結果読出処理部1
07は所定の手順に従ってキーボード27から入力した
トレース結果読出要求に従ってプログラマブルコントロ
ーラ装置23からトレース結果を読出す。
Trace result read processing unit 1 in FIG.
Reference numeral 07 reads a trace result from the programmable controller device 23 in accordance with a trace result read request input from the keyboard 27 according to a predetermined procedure.

【0062】図12はこのトレース結果読出処理部12
1の動作を示す流れ図である。先ずステップ122にお
いて、所定の手順に従ってプログラマブルコントローラ
装置23へトレース結果の読出要求を送信し、ステップ
123にて、その返答としてプログラマブルコントロー
ラ装置23からリングバッファ99ごと送られてきたト
レース結果を受信する。ステップ124にて、受信した
リングバッファ99ごと自分のトレース結果記憶メモリ
412へ自己のリングバッファ127として書込み、今
回の処理を終了する。
FIG. 12 shows the trace result read processing unit 12
6 is a flowchart showing the operation of No. 1; First, in step 122, a trace result read request is transmitted to the programmable controller device 23 in accordance with a predetermined procedure, and in step 123, the trace result sent from the programmable controller device 23 together with the ring buffer 99 is received as a response. In step 124, the received ring buffer 99 is written in its own trace result storage memory 412 as its own ring buffer 127, and this processing is ended.

【0063】図10のプログラム実行再現管理処理部1
08は、所定の手順に従ってキーボード27から入力し
た再現情報に従ってトレース結果記憶メモリ412のト
レース結果とプログラムソース記憶メモリ413のプロ
グラムソースからプログラムの実行結果を生成して、C
RTティスプレイ26へ再現表示する。
Program execution reproduction management processing unit 1 of FIG.
08 generates a program execution result from the trace result of the trace result storage memory 412 and the program source of the program source storage memory 413 according to the reproduction information input from the keyboard 27 according to a predetermined procedure, and C
It is reproduced and displayed on the RT display 26.

【0064】図13はこのプログラム実行再現処理部1
31の動作を示す流れ図である。先ずステップ132に
て、キーボード27から入力したプログラムの実行再現
に必要な再現情報1312をデータ記憶メモリ44へ書
込む。ステップ133にて、再現情報の開始スロット番
号kをデータ記憶メモリ44から取出す。ステップ13
4にて図14に示すトレース結果取出処理134を実行
する。
FIG. 13 shows the program execution reproduction processing section 1
31 is a flowchart showing the operation of 31. First, at step 132, the reproduction information 1312 necessary for execution reproduction of the program input from the keyboard 27 is written in the data storage memory 44. In step 133, the starting slot number k of the reproduction information is retrieved from the data storage memory 44. Step 13
At 4, the trace result extraction processing 134 shown in FIG. 14 is executed.

【0065】図14の流れ図において、ステップ142
にて、トレース結果記憶メモリ412のリングバッファ
127のスロット番号kが示すスロット147を割出
し、次に、ステップ144にて、そのスロット147か
らトレース結果を取出してデータ記憶メモリ44のトレ
ース結果保存エリア1313へ保存する。そして、この
トレース結果取出処理134を終了して図13の流れ図
へ戻る。
In the flow chart of FIG. 14, step 142
At step 144, the slot 147 indicated by the slot number k of the ring buffer 127 of the trace result storage memory 412 is indexed. Then, at step 144, the trace result is extracted from the slot 147 and the trace result storage area of the data storage memory 44 is obtained. Save to 1313. Then, the trace result extraction processing 134 is terminated and the process returns to the flowchart of FIG.

【0066】図13の流れ図において、図15に示すプ
ログラム実行再現表示処理135を実行する。図15の
流れ図が開始されると、ステップ152にて、再現情報
の該当プログラム番号をデータ記憶メモリ44から取出
し、次にステップ153にて、それをもとにプログラム
ソース記憶メモリ413からプログラムソース1318
を取出す。次にステップ154にて、データ記憶メモリ
44のトレース結果保存エリア1313からトレース結
果を取出す。次に、ステップ155にてプログラムソー
スにトレース結果を割付けプログラム実行結果を所定の
手続きに従ってCRTディスプレィ26へ表示する。そ
して、このプログラム実行再現表示処理135を終了し
て元の図13の流れ図に戻る。図13の流れ図におい
て、ステップ136にてスロット番号kを更新する。ス
テップ137にて、データ記憶メモリ44から図13に
示す停止フラグ1314を調べて停止要求があるか否か
をチェックする。
In the flow chart of FIG. 13, the program execution reproduction display processing 135 shown in FIG. 15 is executed. When the flow chart of FIG. 15 is started, in step 152, the relevant program number of the reproduction information is fetched from the data storage memory 44, and then in step 153, the program source storage memory 413 to the program source 1318 based on it.
Take out. Next, at step 154, the trace result is retrieved from the trace result storage area 1313 of the data storage memory 44. Next, in step 155, the trace result is assigned to the program source and the program execution result is displayed on the CRT display 26 according to a predetermined procedure. Then, the program execution reproduction display processing 135 is terminated and the original flow chart of FIG. 13 is returned to. In the flowchart of FIG. 13, the slot number k is updated at step 136. In step 137, the stop flag 1314 shown in FIG. 13 is checked from the data storage memory 44 to check whether there is a stop request.

【0067】停止要求が無ければ、ステップ138にて
データ記憶メモリ44から再現情報1312である実行
周期(制御周期)を取出してその時間だけ遅延する。そ
の後、再びステップ134へ戻り、トレース結果取出処
理から繰り返し実行する。
If there is no stop request, the execution cycle (control cycle) which is the reproduction information 1312 is fetched from the data storage memory 44 in step 138 and delayed by that time. After that, the process returns to step 134 again, and the trace result extraction processing is repeatedly executed.

【0068】そして、ステップ139において、停止要
求が有れば、停止フラグをクリアし、このプログラム実
行再現処理108を終了する。図10におけるプログラ
ミング装置21のプログラム実行停止処理部109は所
定の手順に従ってキーボード27から入力したプログラ
ム実行要求に従ってプログラム実行再現処理を停止す
る。
Then, in step 139, if there is a stop request, the stop flag is cleared and the program execution reproduction process 108 is ended. The program execution stop processing unit 109 of the programming device 21 in FIG. 10 stops the program execution reproduction process according to the program execution request input from the keyboard 27 according to a predetermined procedure.

【0069】図16はこのプログラム実行停止処理部1
09の動作を示す流れ図である。流れ図が開始される
と、ステップ162において、データ記憶メモリ44の
停止フラグ1314をセットし、この処理を終了する。
FIG. 16 shows the program execution stop processing section 1
It is a flowchart which shows the operation | movement of 09. When the flow chart is started, in step 162, the stop flag 1314 of the data storage memory 44 is set, and this processing ends.

【0070】図10における伝送処理部1010は、他
の処理部から所定の手続きに従って要求されたデータ等
の送信要求を所定の手順に従ってプログラマブルコント
ローラ装置23へ送信する。また、この伝送処理部10
10はプログラマブルコントローラ装置23から所定の
手順に従って受信したデータ等を他の処理部へ所定の手
続きに従って通知する。
The transmission processing unit 1010 in FIG. 10 transmits a transmission request for data or the like requested by another processing unit according to a predetermined procedure to the programmable controller device 23 according to a predetermined procedure. Also, this transmission processing unit 10
Reference numeral 10 notifies other processing units of data and the like received from the programmable controller device 23 according to a predetermined procedure according to a predetermined procedure.

【0071】次に、このように構成されたプログラマブ
ルコンシローラシステムの動作を説明する。先ず、操作
者がプログラミング装置23のキーボード27を用い
て、所定の手続きに従ってプログラムをプログラマブル
コントローラ装置23のプログラム記憶メモリ34へ書
込む。その後、このプログラマブルコントローラシステ
ムを起動する。そして、プログラマブルコントローラ装
置23で制御周期毎の割込みが発生すると自動的にプロ
グラムが実行される。
Next, the operation of the programmable conciroller system thus configured will be described. First, the operator uses the keyboard 27 of the programming device 23 to write a program in the program storage memory 34 of the programmable controller device 23 according to a predetermined procedure. Then, this programmable controller system is started. Then, when the programmable controller device 23 generates an interrupt for each control cycle, the program is automatically executed.

【0072】また、操作者がプログラミング装置23か
ら所定の手続きに従ってトレース開始要求を入力する
と、所定の手段に従ってプログラマブルコントローラ装
置23へトレース開始要求が通知され、必要なトレース
開始要求情報が書込まれる。その結果、プログラマブル
コントローラ装置23においては、所定の手段に従って
プログラムの実行に先だってトレース開始要求情報に該
当するプログラムを実行する度にトレース開始条件がチ
ェックされ、トレース開始条件が成立すればトレース割
込みが発生してトレース結果がトレース結果記憶メモリ
311へ自動的に時系列的に格納される。
When the operator inputs a trace start request from the programming device 23 according to a predetermined procedure, the programmable controller device 23 is notified of the trace start request according to a predetermined means, and necessary trace start request information is written. As a result, in the programmable controller device 23, the trace start condition is checked every time the program corresponding to the trace start request information is executed prior to the execution of the program according to a predetermined means, and if the trace start condition is satisfied, a trace interrupt is generated. Then, the trace result is automatically stored in time series in the trace result storage memory 311.

【0073】その後、データ記憶メモリ35に記憶され
たトレース停止条件がチェックされ、トレース停止条件
が成立すればトレース割込みを禁止し、自動的にトレー
ス結果の採集が停止する。
Thereafter, the trace stop condition stored in the data storage memory 35 is checked, and if the trace stop condition is satisfied, the trace interrupt is prohibited and the collection of the trace result is automatically stopped.

【0074】さらに、操作者は、プログラミング装置2
1から所定の手続きに従ってトレース結果の読出要求を
入力すると、所定の手段に従ってトレース結果をプログ
ラマブルコントローラ装置23からプログラミング装置
21へ読出される。そして、操作者が、プログラミング
装置21に所定の手続きに従ってプログラム実行再現要
求を入力すると、前記の要求でプログラマブルコントロ
ーラ装置23から読出したトレース結果を基に所定の手
段に従って目的のプログラムの実行状態がCRTティス
プレイ26上に再現表示される。また、操作者がプログ
ラミング装置21に所定の手続きに従ってプログラム実
行再現停止要求を入力すると、プログラムの実行再現動
作が停止される。
Further, the operator is the programming device 2
When a trace result read request is input from 1 according to a predetermined procedure, the trace result is read from the programmable controller device 23 to the programming device 21 according to a predetermined means. When the operator inputs a program execution reproduction request to the programming device 21 according to a predetermined procedure, the execution state of the target program is CRT according to a predetermined means based on the trace result read from the programmable controller device 23 by the request. It is reproduced and displayed on the display 26. When the operator inputs a program execution reproduction stop request to the programming device 21 according to a predetermined procedure, the execution reproduction operation of the program is stopped.

【0075】[0075]

【発明の効果】以上説明したように本発明のプログラマ
ブルコントローラ装置によれば、実行中のプログラムの
動作状態を任意の範囲を指定してトレースし、そのトレ
ース結果をトレース結果記憶メモリに記憶保持してい
る。したがって、このトレース結果記憶メモリの記憶内
容を読出しすることによって、プログラムにおける任意
位置の動作状態を把握できる。
As described above, according to the programmable controller device of the present invention, the operating state of the program being executed is traced by designating an arbitrary range, and the trace result is stored and held in the trace result storage memory. ing. Therefore, by reading the stored contents of the trace result storage memory, the operating state at an arbitrary position in the program can be grasped.

【0076】また、本発明のプログラミング装置によれ
ば、このプログラミング装置を上記発明のプログラマブ
ルコントローラ装置に接続することによって、操作者
は、プログラマブルコントローラ装置におけるプログラ
ムの任意位置における実行状態を表示画面上で確認でき
る。
Further, according to the programming device of the present invention, by connecting the programming device to the programmable controller device of the above invention, the operator can display the execution state of the program in the programmable controller device at an arbitrary position on the display screen. I can confirm.

【0077】さらに、本発明のプログラマブルコントロ
ーラシステムにおいては、上述した各発明の装置を組合
せている。したがって、プログラマブルコントローラ装
置の実時間で収集したプログラムの実行状態をプログラ
ミング装置において再生表示でき、プログラムの挙動の
把握及び実行分析を正確に行う事ができる。よって、プ
ラント制御における現場での制御プログラムの異常診
断,分析等の作業が非常に容易になる。
Further, in the programmable controller system of the present invention, the above-mentioned devices of the respective inventions are combined. Therefore, the execution state of the program collected in real time of the programmable controller device can be reproduced and displayed on the programming device, and the behavior of the program and the execution analysis can be accurately performed. Therefore, work such as abnormality diagnosis and analysis of the control program at the site in plant control becomes very easy.

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

【図1】 本発明の概略構成を示す機能ブロック図FIG. 1 is a functional block diagram showing a schematic configuration of the present invention.

【図2】 本発明の一実施例に係わるプログラマブルコ
ントローラシステム全体を示す模式図
FIG. 2 is a schematic diagram showing an entire programmable controller system according to an embodiment of the present invention.

【図3】 同実施例システムのプログラマブルコントロ
ーラ装置の概略構成図
FIG. 3 is a schematic configuration diagram of a programmable controller device of the system of the embodiment.

【図4】 同実施例システムのプログラミング装置の概
略構成図
FIG. 4 is a schematic configuration diagram of a programming device of the system of the embodiment.

【図5】 同実施例システムのプログラマブルコントロ
ーラ装置の各処理部の構成を示す図
FIG. 5 is a diagram showing a configuration of each processing unit of the programmable controller device of the system of the embodiment.

【図6】 同プログラマブルコントローラ装置のプログ
ラム実行管理処理部の動作を示す流れ図
FIG. 6 is a flowchart showing an operation of a program execution management processing unit of the programmable controller device.

【図7】 同プログラマブルコントローラ装置のトレー
ス開始停止判定諸部の動作を示す流れ図
FIG. 7 is a flowchart showing the operation of trace start / stop determination parts of the programmable controller device.

【図8】 同プログラマブルコントローラ装置のトレー
ス結果格納処理の開始手順を示す図
FIG. 8 is a diagram showing a start procedure of a trace result storing process of the programmable controller device.

【図9】 同プログラマブルコントローラ装置のトレー
ス結果格納処理部の動作を示す流れ図
FIG. 9 is a flowchart showing the operation of a trace result storage processing unit of the programmable controller device.

【図10】 同実施例システムのプログラミング装置の
各処理部の構成を示す図
FIG. 10 is a diagram showing a configuration of each processing unit of the programming device of the system of the embodiment.

【図11】 同プログラミング装置のトレース開始要求
処理部の動作を示す流れ図
FIG. 11 is a flowchart showing the operation of a trace start request processing unit of the programming device.

【図12】 同プログラミング装置のトレース結果読出
処理部の動作を示す流れ図
FIG. 12 is a flowchart showing the operation of a trace result read processing unit of the programming device.

【図13】 同プログラミング装置のプログラム実行再
現管理処理部の動作を示す流れ図
FIG. 13 is a flowchart showing the operation of a program execution reproduction management processing unit of the programming device.

【図14】 同プログラミング装置のトレース結果取出
処理部の動作を示す流れ図
FIG. 14 is a flowchart showing the operation of a trace result extraction processing unit of the programming device.

【図15】 同プログラミング装置におけるプログラム
実行再現処理を示す流れ図
FIG. 15 is a flowchart showing program execution reproduction processing in the programming device.

【図16】 同プログラミング装置のプログラム実行再
現停止処理部の動作を示す流れ図
FIG. 16 is a flowchart showing the operation of a program execution reproduction stop processing section of the programming device.

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

21…プログラミング装置、23…プログラマブルコン
トローラ装置、26…CRTディスプレイ、27…キー
ボード、34…プログラム記憶メモリ、35,44…デ
ータ記憶メモリ、311,412…トレース結果記憶メ
モリ、413…プログラムソース記憶メモリ。
21 ... Programming device, 23 ... Programmable controller device, 26 ... CRT display, 27 ... Keyboard, 34 ... Program storage memory, 35, 44 ... Data storage memory, 311, 412 ... Trace result storage memory, 413 ... Program source storage memory.

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 制御用のプログラムを用いて制御対象に
対して所定の制御周期で制御処理を実行すると共に、こ
の実行中の前記プログラムにおける任意の範囲の実行状
態を命令単位でトレース可能なプログラマブルコントロ
ーラ装置において、 複数のトレース結果を記憶するためのトレース結果記憶
メモリと、 トレース開始停止指令に応じて前記トレースを開始停止
するトレース開始停止手段と、 トレース実行期間中に、前記各制御周期毎に得られる各
トレース結果を前記トレース結果記憶メモリに時系列的
に格納していくトレース結果格納手段とを備えたプログ
ラマブルコントローラ装置。
1. A programmable program capable of executing a control process on a control target at a predetermined control cycle using a control program and tracing an execution state of an arbitrary range in the program being executed for each instruction. In the controller device, a trace result storage memory for storing a plurality of trace results, a trace start / stop means for starting / stopping the trace in response to a trace start / stop command, and a trace execution period for each control cycle. A programmable controller device comprising trace result storage means for storing each obtained trace result in the trace result storage memory in time series.
【請求項2】 前記トレース結果記憶メモリは複数のス
ロットを環状に接続してなるリングバッファ構造を有
し、前記トレース結果格納手段は、前記トレース結果を
環状に接続された各スロットへ順番に格納していくこと
を特徴とする請求項1記載のプログラマブルコントロー
ラ装置。
2. The trace result storage memory has a ring buffer structure in which a plurality of slots are connected in a ring shape, and the trace result storage means stores the trace result in each of the annularly connected slots in order. The programmable controller device according to claim 1, wherein
【請求項3】 前記トレースの開始条件とトレースの停
止条件、及びトレース停止条件成立からトレース停止ま
でのディレィ時間を記憶するデータ記憶メモリを有し、 前記トレース開始停止手段は、前記データ記憶メモリに
記憶されている各条件及びディレィ時間に基づいて前記
トレースを開始停止することを特徴とする請求項1記載
のプログラマブルコントローラ装置。
3. A trace storage start condition, a trace stop condition, and a data storage memory for storing a delay time from establishment of the trace stop condition to a trace stop, wherein the trace start / stop means stores in the data storage memory. 2. The programmable controller device according to claim 1, wherein the trace is started and stopped based on each stored condition and delay time.
【請求項4】 複数のトレース結果を記憶するためのト
レース結果記憶メモリと、 接続されたプログラマブルコントローラ装置における制
御用のプログラムの各制御周期毎のトレース結果を、こ
のプログラマブルコントローラ装置から読出して前記ト
レース結果記憶メモリへ時系列的に書込むトレース結果
転送手段と、 前記トレース結果記憶メモリに記憶されている各トレー
ス結果を任意の時間帯を指定して取出すトレース結果取
出手段と、 前記プログラマブルコントローラ装置のプログラムと同
一のプログラムを記憶するプログラムソース記憶メモリ
と、 このプログラムソース記憶メモリから読出した各プログ
ラム情報と前記トレース結果取出手段にて取出された各
トレース結果とを比較照合して前記プログラマブルコン
トローラ装置におけるプログラムの実行状態を再現表示
するプログラム実行再現表示手段と、 前記トレース結果取出手段及びプログラム実行再現表示
手段を指定された周期で実行させるプログラム実行再現
管理手段とを備えたプログラミング装置。
4. A trace result storage memory for storing a plurality of trace results, and a trace result for each control cycle of a control program in a connected programmable controller device is read from the programmable controller device and the trace is performed. Trace result transfer means for writing in a time series to the result storage memory; trace result extraction means for extracting each trace result stored in the trace result storage memory by designating an arbitrary time zone; and the programmable controller device A program source storage memory for storing the same program as the program, program information read from the program source storage memory, and trace results fetched by the trace result fetching means are compared and collated to the programmable controller device. A program execution reproduction display means for reproducing displaying the execution state of the program takes, programming device and a program execution reproduction management unit to execute at the specified trace results retriever and program execution reproduction display unit period.
【請求項5】 前記プログラム実行再現管理手段は、前
記トレース結果取出手段に前記トレース結果記憶メモリ
における取出開始位置を指定し、かつ前記トレース結果
取出手段にて得られたトレース結果と前記プログラムソ
ース記憶メモリ内の対応するプログラムの指定情報とを
前記プログラム実行再現表示手段に与えること特徴とす
る請求項4記載のプログラミング装置。
5. The program execution reproduction management means specifies the extraction start position in the trace result storage memory to the trace result extraction means, and stores the trace result obtained by the trace result extraction means and the program source storage. 5. The programming device according to claim 4, wherein the designation information of the corresponding program in the memory is given to the program execution reproduction display means.
【請求項6】 前記プログラマブルコントローラ装置へ
トレースの開始終了指令を送出すると共に、前記トレー
ス結果転送手段へ転送開始終了指令を送出する再生停止
要求発生手段を備えたことを特徴とする請求項4記載の
プログラミング装置。
6. A reproduction stop request generating means for transmitting a trace start / end command to the programmable controller device and a transfer start / end command to the trace result transfer means. Programming equipment.
【請求項7】 制御用のプログラムを用いて制御対象に
対して所定の制御周期で制御処理を実行すると共に、こ
の実行中の前記プログラムにおける任意の範囲の実行状
態を命令単位でトレース可能なプログラマブルコントロ
ーラ装置と、このプログラマブルコントローラ装置に接
続され、このプログラマブルコントローラ装置における
プログラムの実行状態を再現表示するプログラミング装
置とからなるプログラマブルコントローラシステムであ
って、 前記プログラマブルコントローラ装置は、 複数のトレース結果を記憶するための第1のトレース結
果記憶メモリと、 トレース開始停止指令に応じて前記トレースを開始停止
するトレース開始停止手段と、 トレース実行期間中に、前記各制御周期毎に得られる各
トレース結果を前記第1のトレース結果記憶メモリに時
系列的に格納していくトレース結果格納手段とを有し、 前記プログラミング装置は、 複数のトレース結果を記憶するための第2のトレース結
果記憶メモリと、 前記プログラマブルコントローラ装置の第1のトレース
結果記憶メモリに記憶された各トレース結果を読出して
前記第2のトレース結果記憶メモリへ時系列的に書込む
トレース結果転送手段と、 前記第2のトレース結果記憶メモリに記憶されている各
トレース結果を任意の時間帯を指定して取出すトレース
結果取出手段と、 前記プログラマブルコントローラ装置のプログラムと同
一のプログラムを記憶するプログラムソース記憶メモリ
と、 このプログラムソース記憶メモリから読出した各プログ
ラム情報と前記トレース結果取出手段にて取出された各
トレース結果とを比較照合して前記プログラマブルコン
トローラ装置におけるプログラムの実行状態を表示する
プログラム実行再現表示手段と、 前記トレース結果取出手段及びプログラム実行再現表示
手段を指定された周期で実行させるプログラム実行再現
管理手段とを有したことを特徴とするプログラマブルコ
ントローラシステム。
7. A programmable program capable of executing a control process on a controlled object at a predetermined control cycle using a control program and tracing an execution state of an arbitrary range in the program being executed for each instruction. A programmable controller system comprising a controller device and a programming device which is connected to the programmable controller device and reproduces and displays an execution state of a program in the programmable controller device, wherein the programmable controller device stores a plurality of trace results. A first trace result storage memory, a trace start / stop means for starting / stopping the trace according to a trace start / stop command, and a trace result obtained for each control cycle during the trace execution period. 1 to Trace result storage means for storing the result in a time series in a source result storage memory, the programming device includes a second trace result storage memory for storing a plurality of trace results, and the programmable controller device. Trace result transfer means for reading each trace result stored in the first trace result storage memory and writing the trace results in the second trace result storage memory in time series, and stored in the second trace result storage memory. Trace result extraction means for extracting each trace result by designating an arbitrary time zone, a program source storage memory for storing the same program as the program of the programmable controller device, and each program read from the program source storage memory Information and each tray extracted by the trace result extraction means Program execution reproduction display means for displaying the execution status of the program in the programmable controller device by comparing and collating the source execution result with the program execution reproduction means for executing the trace result extraction means and the program execution reproduction display means at a designated cycle. A programmable controller system comprising: a management unit.
JP6014542A 1994-02-08 1994-02-08 Programmable controller system Pending JPH07219807A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6014542A JPH07219807A (en) 1994-02-08 1994-02-08 Programmable controller system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6014542A JPH07219807A (en) 1994-02-08 1994-02-08 Programmable controller system

Publications (1)

Publication Number Publication Date
JPH07219807A true JPH07219807A (en) 1995-08-18

Family

ID=11864047

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6014542A Pending JPH07219807A (en) 1994-02-08 1994-02-08 Programmable controller system

Country Status (1)

Country Link
JP (1) JPH07219807A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1131004A (en) * 1997-07-09 1999-02-02 Howa Mach Ltd Programmable controller
JP2001236244A (en) * 2000-02-23 2001-08-31 Mitsubishi Electric Corp Debug system for robot program
US6467083B1 (en) 1998-09-30 2002-10-15 Nec Corporation Debugging system for computer program, method for checking target program and information storage medium for storing checking program
JP2005115969A (en) * 2005-01-11 2005-04-28 Toshiba Corp Programmable controller
JP2007299126A (en) * 2006-04-28 2007-11-15 Mitsubishi Electric Corp Controller and program for controller
JP2010205128A (en) * 2009-03-05 2010-09-16 Denso Wave Inc Robot control system
JP2012198896A (en) * 2011-03-22 2012-10-18 General Electric Co <Ge> Control system with state capture and restoration
JP2013168188A (en) * 2013-06-04 2013-08-29 Denso Wave Inc Robot control log acquiring system
CN104969191A (en) * 2013-03-13 2015-10-07 英特尔公司 Visualizing recorded executions of multi-threaded software programs for performance and correctness

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1131004A (en) * 1997-07-09 1999-02-02 Howa Mach Ltd Programmable controller
US6467083B1 (en) 1998-09-30 2002-10-15 Nec Corporation Debugging system for computer program, method for checking target program and information storage medium for storing checking program
JP2001236244A (en) * 2000-02-23 2001-08-31 Mitsubishi Electric Corp Debug system for robot program
JP2005115969A (en) * 2005-01-11 2005-04-28 Toshiba Corp Programmable controller
JP2007299126A (en) * 2006-04-28 2007-11-15 Mitsubishi Electric Corp Controller and program for controller
JP2010205128A (en) * 2009-03-05 2010-09-16 Denso Wave Inc Robot control system
JP2012198896A (en) * 2011-03-22 2012-10-18 General Electric Co <Ge> Control system with state capture and restoration
CN104969191A (en) * 2013-03-13 2015-10-07 英特尔公司 Visualizing recorded executions of multi-threaded software programs for performance and correctness
JP2016514318A (en) * 2013-03-13 2016-05-19 インテル・コーポレーション Visualization of recorded execution of multithreaded software programs for performance and accuracy
JP2013168188A (en) * 2013-06-04 2013-08-29 Denso Wave Inc Robot control log acquiring system

Similar Documents

Publication Publication Date Title
WO2015136959A1 (en) Control system, method, program and information processing device
US20030090491A1 (en) Simulation device
JP6171387B2 (en) Controller, information processing apparatus and program
JP6171386B2 (en) Controller, information processing apparatus and program
KR880000860A (en) Improvements on Programmable Logic Controllers
US20150058828A1 (en) Plc simulation system, plc simulator, recording medium, and simulation method
JPH07219807A (en) Programmable controller system
JP6442131B2 (en) Control system and control device
US6131109A (en) Multitask processor, a multitask processing method, a multitask processing display method and a storage medium for processing by correlating task and object
JPWO2016071974A1 (en) Remote control device and control system
JP6870664B2 (en) Control systems, controls and programs
JPH0743732B2 (en) Storage method of collected data
JPH1091477A (en) Control microcomputer device and maintenance tool for the same
JPH05128079A (en) Tracing system for multiprocessor system
JP2003036103A (en) Process control system
JPH08278809A (en) Plant controller
JPS63177231A (en) Debug system for parallel program
JP4192380B2 (en) PLC simulator apparatus, simulation program, and recording medium on which the program is recorded
JPH04373036A (en) Software testing device for computer system
JP2001209412A (en) Simulator for sequence program
JP2004139313A (en) Source code display system and program
JPH11110005A (en) Process simulator for distributed control system
JP2906382B2 (en) Trace method of user program in programmable controller
JP3456002B2 (en) Image processing inspection equipment
JP2001306356A (en) Method and device for predicting and displaying task scheduling