JP2003122405A - Programmable logic controller, method for confirming operation of ladder sequence program thereof, and debugging tool - Google Patents

Programmable logic controller, method for confirming operation of ladder sequence program thereof, and debugging tool

Info

Publication number
JP2003122405A
JP2003122405A JP2001316964A JP2001316964A JP2003122405A JP 2003122405 A JP2003122405 A JP 2003122405A JP 2001316964 A JP2001316964 A JP 2001316964A JP 2001316964 A JP2001316964 A JP 2001316964A JP 2003122405 A JP2003122405 A JP 2003122405A
Authority
JP
Japan
Prior art keywords
ladder
operation result
sequence program
programmable logic
logic controller
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
JP2001316964A
Other languages
Japanese (ja)
Inventor
Norihiro Aoyama
宣弘 青山
Shigeto Masuda
成人 増田
Juichi Koiwai
寿一 小祝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Hitachi Information and Control Systems Inc
Original Assignee
Hitachi Ltd
Hitachi Information and Control Systems Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd, Hitachi Information and Control Systems Inc filed Critical Hitachi Ltd
Priority to JP2001316964A priority Critical patent/JP2003122405A/en
Publication of JP2003122405A publication Critical patent/JP2003122405A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To debug a ladder sequence program even while the subject of control is being controlled. SOLUTION: A programmable logic controller 101 which controls the subject of control by repeatedly running the ladder sequence program 102 at fixed intervals according to signals inputted from the subject of control is provided with a ladder action result transmission program 105 which outputs the result of ladder action to the outside each time one sequence cycle of the ladder sequence program ends. Also a debugging tool 106 is provided with a storage device 111 which receives and stores the results of ladder action externally outputted from the programmable logic controller 101, and a display means 110 for displaying the results of ladder action read from the storage device 111. Thus, detailed data can be monitored off-line even while the sequence is being run.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プラント等の制御
対象を自動制御するプログラマブルロジックコントロー
ラとそのラダーシーケンスプログラム動作確認方法並び
にデバッグツールに係り、特に、動作確認時にシーケン
スを停止することなく動作確認を何度でも行うことが可
能なプログラマブルロジックコントローラ及びそのラダ
ーシーケンスプログラム動作確認方法並びにデバッグツ
ールに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a programmable logic controller for automatically controlling a controlled object such as a plant, a ladder sequence program operation confirmation method and a debug tool, and particularly, an operation confirmation without stopping the sequence when confirming the operation. PROGRAMMING LOGIC CONTROLLER AND OPERATION CONFIRMING METHOD FOR ladder sequence program and debugging tool.

【0002】[0002]

【従来の技術】ラダーシーケンスプログラムのデバッグ
は、プログラマブルロジックコントローラの入出力デバ
イスや内部ワークデバイスのオンオフ、及び、データ値
の動作確認をすることで行う。従来のラダーシーケンス
プログラムデバッグは、ラダーシーケンスプログラムを
実際に連続して動作させ、ラダーシーケンスプログラム
の動作結果を、モニタ装置が一定周期で読み込み、表示
画面に表示することで行っている。
2. Description of the Related Art A ladder sequence program is debugged by turning on / off an input / output device of a programmable logic controller and an internal work device, and checking the operation of a data value. The conventional ladder sequence program debugging is performed by actually operating the ladder sequence program continuously, and the monitor device reads the operation result of the ladder sequence program at regular intervals and displays it on the display screen.

【0003】図8は、従来のプログラマブルロジックコ
ントローラ101とそのラダーシーケンスプログラムの
デバッグツールであるモニタ装置の要部説明図である。
プログラマブルロジックコントローラ101内のラダー
シーケンスプログラム102は、入出力デバイス103
や内部ワークメモリ104を参照し、内部データを更新
する。パーソナルコンピュータ等のモニタ装置106の
動作結果モニタ部107は、ラダーシーケンスプログラ
ム102の動作結果を確認する為に、プログラマブルロ
ジックコントローラ101の動作結果送信部105に対
して、動作結果の送信を一定周期(例えば1s周期)毎
に要求する。
FIG. 8 is an explanatory view of essential parts of a conventional programmable logic controller 101 and a monitor device which is a debugging tool for a ladder sequence program thereof.
The ladder sequence program 102 in the programmable logic controller 101 is an input / output device 103.
The internal data is updated by referring to the internal work memory 104. The operation result monitor unit 107 of the monitor device 106 such as a personal computer transmits the operation result to the operation result transmission unit 105 of the programmable logic controller 101 in a predetermined cycle (in order to confirm the operation result of the ladder sequence program 102). For example, every 1 s cycle).

【0004】この送信要求を受けたプログラマブルロジ
ックコントローラ101内の動作結果送信部105は、
ラダーシーケンスプログラム102の入出力デバイス1
03等のオンオフ状態や内部ワークメモリ104の内容
を、モニタ装置106の動作結果モニタ部107に対し
て送信する。
The operation result transmitter 105 in the programmable logic controller 101 which receives the transmission request is
Input / output device 1 of ladder sequence program 102
An on / off state such as 03 and the contents of the internal work memory 104 are transmitted to the operation result monitor unit 107 of the monitor device 106.

【0005】プログラマブルロジックコントローラ10
1は、モニタ装置106からの送信要求周期とは同期し
ていない所定周期(例えば200ms周期)でラダーシ
ーケンスプログラムを実行しており、このため、動作結
果送信部105は、ラダーシーケンスプログラム実行周
期とは異なるタイミングのモニタ装置106からの動作
結果送信指令により起動する。
Programmable logic controller 10
1 executes the ladder sequence program in a predetermined cycle (for example, 200 ms cycle) that is not synchronized with the transmission request cycle from the monitor device 106, and therefore the operation result transmission unit 105 determines that the ladder sequence program execution cycle Are activated by operation result transmission commands from the monitor device 106 at different timings.

【0006】モニタ装置106の動作結果モニタ部10
7は、受信したラダーシーケンスプログラム動作結果1
08を、CRT表示更新周期毎にCRT制御部109が
CRT110に表示し、この表示を見ることで、ラダー
シーケンスプログラム102の入出力デバイスや内部ワ
ークデバイスのオンオフ状態、及びデータ値の動作確認
を行うことが可能となる。
The operation result monitor unit 10 of the monitor device 106
7 is the operation result 1 of the received ladder sequence program
08 is displayed on the CRT 110 by the CRT control unit 109 at every CRT display update cycle, and by checking this display, the on / off state of the input / output device of the ladder sequence program 102 and the internal work device and the operation of the data value are confirmed. It becomes possible.

【0007】この様に、従来技術では、ラダーシーケン
スプログラムの動作結果をモニタ装置が一定周期で読み
込み画面に表示することでプログラムの動作確認を行な
っている。ところが、モニタ装置の読込み周期がラダー
シーケンスの動作タイミングと同期していない為、ラダ
ーシーケンスサイクル毎の入力デバイス,出力デバイ
ス,内部ワークデバイスのオンオフ及びデータ値の変動
を正確に確認することができないという問題がある。
As described above, according to the conventional technique, the operation of the ladder sequence program is confirmed by the monitor device reading the operation result at a constant cycle on the screen. However, since the reading cycle of the monitor device is not synchronized with the operation timing of the ladder sequence, it is impossible to accurately confirm the on / off of the input device, output device, and internal work device and the fluctuation of the data value for each ladder sequence cycle. There's a problem.

【0008】例えば、図9に示す様に、ラダーシーケン
スプログラムでピストン制御をしている場合を考える。
この制御は、ピストンがC端からA端へ移動したらA端
からC端に戻し、ピストンがC端からB端で止まったら
B端からC端に戻すシーケンス制御である(120〜1
23)。ラダーシーケンスプログラムは、ピストン位置
がA端またはB端に来たらC端への移動指令を出力する
が、ピストン位置A端入力デバイス(X030)あるい
は、ピストン位置B端入力デバイス(X040)がON
(この図9では、オン状態を●、オフ状態を○で示
す。)するのは、1〜2ラダーシーケンスサイクルの間
(上記の例では、200ms〜400msの間)のみで
ある。
For example, consider the case where piston control is performed by a ladder sequence program as shown in FIG.
This control is a sequence control in which when the piston moves from the C end to the A end, the A end is returned to the C end, and when the piston stops from the C end to the B end, the B end is returned to the C end (120 to 1).
23). The ladder sequence program outputs a movement command to the C end when the piston position reaches the A end or the B end, but the piston position A end input device (X030) or the piston position B end input device (X040) is turned on.
(In this FIG. 9, the ON state is indicated by ● and the OFF state is indicated by ◯.) Only during one or two ladder sequence cycles (in the above example, between 200 ms and 400 ms).

【0009】このため、CRT110のCRT画面16
0では、A端入力デバイス(X030)あるいは、ピス
トン位置B端入力デバイス(X040)がオンしていて
も、それがモニタ装置の読込み周期が重ならない限り、
オン状態(●)では表示されず、オフ(○)として表示
されてしまい、実プラントの動きを確認することができ
ない。特に、A端とC端の間でピストンが不具合により
停止したような場合、A端からC端への移動中に停止し
たのかB端からC端への移動中に停止したのか識別でき
ず、不具合の原因解析に時間がかかることになる。
Therefore, the CRT screen 16 of the CRT 110 is
At 0, even if the A end input device (X030) or the piston position B end input device (X040) is turned on, as long as the reading cycle of the monitor device does not overlap,
It is not displayed in the ON state (●) and is displayed as OFF (○), and the movement of the actual plant cannot be confirmed. In particular, when the piston stops due to a problem between the A end and the C end, it cannot be identified whether it stopped during the movement from the A end to the C end or during the movement from the B end to the C end, It will take time to analyze the cause of the failure.

【0010】そこで、例えば、特開平11―16740
4号公報に記載されている従来技術では、プログラムや
操作量,制御量を所定動作単位毎に内部メモリに記憶し
ておき、トラブル発生時にこの内部メモリの蓄積内容を
読み出し、プログラムと対応付けながら時間的に順次遡
って解析していくことで、トラブルシューティングする
様にしている。
Therefore, for example, Japanese Patent Laid-Open No. 11-16740.
In the conventional technique described in Japanese Patent Publication No. 4, a program, an operation amount, and a control amount are stored in an internal memory for each predetermined operation unit, and when a trouble occurs, the stored contents of the internal memory are read out and associated with the program. I try to troubleshoot by going back and forth in time.

【0011】また、特開平7―114404号公報記載
の従来技術では、プログラム中の実行開始位置と実行停
止条件とを指定することで、実行停止条件が満足されて
プログラムが停止したときの実行状態をモニタ画面に表
示し、非制御側の実際の動作状態を確認できるようにし
ている。
Further, in the prior art disclosed in Japanese Patent Laid-Open No. 7-114404, the execution start position and the execution stop condition in the program are designated so that the execution state when the execution stop condition is satisfied and the program is stopped. Is displayed on the monitor screen so that the actual operating status of the non-control side can be confirmed.

【0012】[0012]

【発明が解決しようとする課題】しかしながら、上述し
た特開平11―167404号公報記載の従来技術で
は、プログラマブルロジックコントローラの内蔵メモリ
の内容をトラブル発生時にモニタ装置に読み出して表示
しなくてはならず、実プラントの制御中にプログラムの
検証を行うことができないという問題がある。
However, in the prior art described in Japanese Patent Laid-Open No. 11-167404, the contents of the built-in memory of the programmable logic controller must be read out and displayed on the monitor device when a trouble occurs. However, there is a problem that the program cannot be verified during the control of the actual plant.

【0013】また、特開平7−114404号公報記載
の従来技術は、ラダーシーケンスプログラムシミュレー
ション試験を対象としたもので、これも上記と同様に、
ラダーシーケンスプログラムの動作を途中で停止させな
ければならない為、実プラントの制御中にラダーシーケ
ンスプログラムの動作確認ができないという問題があ
る。
Further, the prior art disclosed in Japanese Patent Laid-Open No. 7-114404 is intended for a ladder sequence program simulation test.
Since the operation of the ladder sequence program must be stopped on the way, there is a problem that the operation of the ladder sequence program cannot be confirmed during control of the actual plant.

【0014】本発明の目的は、シミュレーション試験及
び実プラント試験時などにおいて、ラダーシーケンスサ
イクル毎のラダーシーケンスプログラムの動作確認を、
シーケンスの実行中であってもシーケンスを停止するこ
となく検証できるプログラマブルロジックコントローラ
及びそのラダーシーケンスプログラム動作確認方法並び
にデバッグツールを提供することにある。
An object of the present invention is to confirm the operation of a ladder sequence program for each ladder sequence cycle during simulation test and actual plant test.
(EN) Provided are a programmable logic controller capable of performing verification without stopping a sequence even during execution of the sequence, a ladder sequence program operation confirmation method thereof, and a debug tool.

【0015】[0015]

【課題を解決するための手段】上記目的は、制御対象か
らの入力信号を基にラダーシーケンスプログラムを所定
周期で繰り返し実行し前記制御対象を制御するプログラ
マブルロジックコントローラにおいて、前記ラダーシー
ケンスプログラムの1シーケンスサイクル終了毎にラダ
ー動作結果を外部出力する手段を備えることで、達成さ
れる。
In the programmable logic controller that controls a control target by repeatedly executing a ladder sequence program at a predetermined cycle based on an input signal from the control target, one sequence of the ladder sequence program is achieved. This is achieved by providing a means for externally outputting the ladder operation result each time the cycle ends.

【0016】上記目的は、制御対象からの入力信号を基
にラダーシーケンスプログラムを所定周期で繰り返し実
行し前記制御対象を制御するプログラマブルロジックコ
ントローラのラダーシーケンスプロクラム動作確認方法
において、前記ラダーシーケンスプログラムの1シーケ
ンスサイクル終了毎に前記プログラマブルロジックコン
トローラから外部出力されるラダー動作結果を受信して
記憶装置に格納しておき、前記ラダー動作結果をモニタ
し動作確認を行うことで、達成される。
[0016] The above-mentioned object is a ladder sequence program operation confirmation method of a programmable logic controller for controlling a control target by repeatedly executing a ladder sequence program at a predetermined cycle based on an input signal from the control target. This is achieved by receiving the ladder operation result externally output from the programmable logic controller at each end of the sequence cycle, storing it in a storage device, and monitoring the ladder operation result to confirm the operation.

【0017】上記目的は、制御対象からの入力信号を基
にラダーシーケンスプログラムを所定周期で繰り返し実
行し前記制御対象を制御するプログラマブルロジックコ
ントローラにおいて、前記ラダーシーケンスプログラム
の1シーケンスサイクル終了毎にラダー動作結果を外部
出力する手段と、この外部出力されるラダー動作結果を
受信して記憶する記憶装置と、該記憶装置から読み出し
た前記ラダー動作結果を表示する表示手段とを備えるこ
とで、達成される。
In the programmable logic controller for controlling the control target by repeatedly executing the ladder sequence program at a predetermined cycle based on the input signal from the control target, the ladder operation is performed every one sequence cycle of the ladder sequence program. This is achieved by providing means for outputting the result to the outside, a storage device for receiving and storing the ladder operation result output to the outside, and display means for displaying the ladder operation result read from the storage device. .

【0018】本発明は、上記構成とすることで、制御対
象の制御中であってもオフラインで動作結果をモニタす
ることができ、しかも1シーケンスサイクル毎のデータ
をモニタできるため、詳細にプログラムを検証すること
ができる。
According to the present invention, with the above configuration, the operation result can be monitored off-line even during the control of the controlled object, and the data for each sequence cycle can be monitored. Can be verified.

【0019】[0019]

【発明の実施の形態】以下、本発明の一実施形態を図面
を参照して説明する。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described below with reference to the drawings.

【0020】図1は、本発明の一実施形態に係るラダー
シーケンスプログラムデバッグツールのブロック図であ
る。プログラマブルロジックコントローラ101内のラ
ダーシーケンスプログラム102は、例えば200ms
毎に、入出力デバイス103と内部ワークデバイス10
4を参照して、内部データを更新する。
FIG. 1 is a block diagram of a ladder sequence program debug tool according to an embodiment of the present invention. The ladder sequence program 102 in the programmable logic controller 101 is, for example, 200 ms
Input / output device 103 and internal work device 10 for each
4, the internal data is updated.

【0021】そして、本実施形態に係るプログラマブル
ロジックコントローラ101は、ラダーシーケンスプロ
グラム102が、1シーケンスサイクル終了毎(200
ms毎)に、動作結果送信プログラム105を起動すべ
く送信指令をプログラム15に発行する。この送信指令
を受けたラダー動作結果送信プログラム105は、ラダ
ーシーケンスプログラム102の入出力デバイス103
の状態と内部ワークメモリ104の内容等すなわちラダ
ー動作結果を、モニタ装置106のラダー動作結果モニ
タプログラム107に対して送信する。
Further, in the programmable logic controller 101 according to the present embodiment, the ladder sequence program 102 is set at every end of one sequence cycle (200
every ms), a transmission command is issued to the program 15 to activate the operation result transmission program 105. The ladder operation result transmission program 105 that has received this transmission command is the input / output device 103 of the ladder sequence program 102.
And the contents of the internal work memory 104, that is, the ladder operation result is transmitted to the ladder operation result monitor program 107 of the monitor device 106.

【0022】この送信を受けたラダー動作結果モニタプ
ログラム107は、受信したシーケンスサイクル毎(2
00ms毎)のラダーシーケンスプログラム動作結果
を、ラダーシーケンスプログラム動作結果ファイル11
1に格納する。CRT制御プログラム109は、オペレ
ータからの要求があったときは、随時、このラダー動作
記録ファイル111を読み出し、ラダー動作記録データ
をCRT110に再生表示する。この再生表示は、オペ
レータからの指示に基づき、早送り、巻き戻し、スロー
再生、一時停止などが可能となっている。
The ladder operation result monitor program 107 that has received this transmission receives (2
The ladder sequence program operation result of every 00 ms) is stored in the ladder sequence program operation result file 11
Store in 1. When requested by the operator, the CRT control program 109 reads the ladder operation recording file 111 at any time and reproduces and displays the ladder operation recording data on the CRT 110. This reproduction display can be fast forwarded, rewound, slow reproduced, paused, etc. based on an instruction from the operator.

【0023】図2は、図1に示すラダーシーケンスプロ
グラム102からの送信指令を受けたラダー動作結果送
信プログラム105の行う送信手順を示すフローチャー
トである。ラダーシーケンスプログラム102は、1シ
ーケンスサイクルが終了する度に、ラダー終了報告をラ
ダー動作結果送信プログラム105に行う。ラダー動作
結果送信プログラム105は、このラダー終了報告が有
り、更に後述するラダー動作結果送信管理フラグがON
の時、ラダー動作結果である入出力デバイス103のオ
ンオフ状態等と、内部ワークメモリ104の内容等およ
びデータ値を、モニタ装置106のラダー動作結果モニ
タ部107に対して送信する(ステップ130〜13
2)。
FIG. 2 is a flow chart showing a transmission procedure performed by the ladder operation result transmission program 105 which receives a transmission command from the ladder sequence program 102 shown in FIG. The ladder sequence program 102 sends a ladder end report to the ladder operation result transmission program 105 every time one sequence cycle ends. The ladder operation result transmission program 105 has this ladder end report, and the ladder operation result transmission management flag described later is ON.
At this time, the on / off state of the input / output device 103, which is the ladder operation result, the content of the internal work memory 104, and the data value are transmitted to the ladder operation result monitor unit 107 of the monitor device 106 (steps 130 to 13)
2).

【0024】図3は、ラダー動作結果の送信要否を管理
する説明図である。本実施形態のプログラマブルロジッ
クコントローラ101は、無条件に1シーケンスサイク
ル毎にラダー動作結果をモニタ装置106に対して送信
するのではなく、モニタ装置106にオペレータが「送
信要」と入力したとき、1シーケンスサイクル毎にラダ
ー動作結果をモニタ装置106に対して送信させる様に
している。
FIG. 3 is an explanatory diagram for managing the necessity of transmission of the ladder operation result. The programmable logic controller 101 according to the present embodiment does not unconditionally transmit the ladder operation result to the monitor device 106 every sequence cycle, but when the operator inputs “transmission required” to the monitor device 106, 1 The ladder operation result is transmitted to the monitor device 106 every sequence cycle.

【0025】そのため、モニタ装置106のCRT11
0からオペレータが入力したラダー動作結果の送信要否
の管理条件は、CRT制御プログラム109を経由し、
ラダー動作結果送信条件プログラム107aよりプログ
ラマブルロジックコントローラ101に送信される。こ
れを受信したラダー動作結果送信条件プログラム102
aは、ラダー動作結果送信要否管理を行う。即ち、管理
条件に応じて、詳細は後述するようにして、上記のラダ
ー動作結果送信管理フラグを「ON」または「OFF」
にする。
Therefore, the CRT 11 of the monitor device 106
The management condition of the necessity of transmission of the ladder operation result input by the operator from 0 is via the CRT control program 109,
It is transmitted to the programmable logic controller 101 from the ladder operation result transmission condition program 107a. Ladder operation result transmission condition program 102 that received this
“A” manages the necessity of transmitting the ladder operation result. That is, the ladder operation result transmission management flag is set to “ON” or “OFF” according to the management condition, as will be described later in detail.
To

【0026】図4は、図3に示すラダー動作結果送信条
件プログラム107aの行う処理手順を示すフローチャ
ートである。ラダー動作結果送信条件プログラム107
aは、モニタ装置106のCRT110からラダー動作
結果送信自動指令を受信したか否かを判定し(ステップ
140)、送信自動指令を受信したときはラダー動作結
果管理テーブルのラダー動作結果送信管理モードを「自
動」とする(ステップ141)。ステップ140の判定
結果が否定のときは次にステップ142に進み、受信し
た指令がラダー動作結果送信手動指令であるか否かを判
定する。判定結果が否定のときはステップ144に進
み、判定結果が肯定のときはステップ143でラダー動
作結果送信管理モードを「手動」としてからステップ1
44に進む。
FIG. 4 is a flow chart showing a processing procedure performed by the ladder operation result transmission condition program 107a shown in FIG. Ladder operation result transmission condition program 107
a determines whether or not the ladder operation result transmission automatic command is received from the CRT 110 of the monitor device 106 (step 140), and when the transmission automatic command is received, the ladder operation result transmission management mode of the ladder operation result management table is set. It is set to "automatic" (step 141). When the determination result of step 140 is negative, the routine proceeds to step 142, and it is determined whether the received command is a ladder operation result transmission manual command. When the determination result is negative, the process proceeds to step 144, and when the determination result is affirmative, the ladder operation result transmission management mode is set to "manual" in step 143, and then step 1
Proceed to 44.

【0027】ステップ144では、ラダー動作結果送信
管理モードが「手動」であるか否かを判定する。この判
定結果が否定の時は後述のステップ149に進み、肯定
の時は、次にモニタ装置106よりラダー動作結果送信
開始指令を受信したか否かを判定する。送信開始指令を
受信した場合には、ステップ146に進み、ラダー動作
結果管理テーブルのラダー動作結果送信管理フラグをO
Nにする。次のステップ147では、モニタ装置106
よりラダー動作結果送信停止指令を受信したか否かを判
定し、停止指令を受信した時はラダー動作結果送信管理
フラグをOFFにする。
In step 144, it is determined whether or not the ladder operation result transmission management mode is "manual". When this determination result is negative, the process proceeds to step 149 described later, and when the determination result is affirmative, it is then determined whether or not a ladder operation result transmission start command has been received from the monitor device 106. When the transmission start command is received, the process proceeds to step 146, and the ladder operation result transmission management flag of the ladder operation result management table is set to O.
Set to N. In the next step 147, the monitor device 106
It is further determined whether or not the ladder operation result transmission stop command is received, and when the stop command is received, the ladder operation result transmission management flag is turned off.

【0028】ラダー動作結果送信管理モードが「自動」
のときはステップ144からステップ149に進み、以
後、ステップ145〜148と同様のステップ150〜
153で、モニタ装置106より受信したラダー動作結
果送信開始停止条件をもとにラダー動作結果送信管理フ
ラグの「ON」「OFF」を管理する。
The ladder operation result transmission management mode is "automatic"
If so, the process proceeds from step 144 to step 149, and thereafter, steps 150 to 148 similar to steps 145 to 148 are performed.
In 153, “ON” or “OFF” of the ladder operation result transmission management flag is managed based on the ladder operation result transmission start / stop condition received from the monitor device 106.

【0029】例えば、バルブ全開でラダー動作結果の送
信を開始し、バルブ全閉でラダー動作結果の送信を終了
する場合は、ラダー動作結果送信開始条件として「バル
ブ全開(デバイスX010)」を設定し、ラダー動作結
果送信停止条件として「バルブ全閉(デバイスX01
1)」を設定することになる。この場合、入出力デバイ
ス103を参照し、バルブ全閉(デバイスX011)が
オンしたときラダー動作結果送信管理フラグが「OF
F」される。また、バルブ全開(デバイスX010)が
オンしたときラダー動作結果送信管理フラグが「ON」
される。
For example, when the transmission of the ladder operation result is started when the valve is fully opened and the transmission of the ladder operation result is ended when the valve is completely closed, "valve fully open (device X010)" is set as the ladder operation result transmission start condition. , The ladder operation result transmission stop condition is “valve fully closed (device X01
1) ”will be set. In this case, referring to the input / output device 103, when the valve fully closed (device X011) is turned on, the ladder operation result transmission management flag is set to "OF".
F ”. Also, when the valve fully open (device X010) is turned on, the ladder operation result transmission management flag is "ON".
To be done.

【0030】そして、最後に、ステップ154で、モニ
タ装置との通信断であるか否かを判定し、通信断でない
場合にはリターン処理し、モニタ装置との通信が異常で
通信断のときは、ラダー動作結果送信管理フラグをOF
Fして(ステップ155)からリターン処理する。
Finally, in step 154, it is determined whether or not the communication with the monitor device is disconnected. If the communication is not disconnected, a return process is performed, and if the communication with the monitor device is abnormal and the communication is disconnected, , Ladder operation result transmission management flag is set to OF
After F (step 155), return processing is performed.

【0031】図5は、図3のCRT110からラダー動
作結果送信要否管理条件を設定するときのモニタ装置1
06におけるCRT画面の一例を示す図である。ラダー
動作結果送信管理モードは、CRT画面の手動切替SW
3及び自動切替SW4で切り替える。
FIG. 5 shows the monitor device 1 when the ladder operation result transmission necessity management condition is set from the CRT 110 of FIG.
It is a figure which shows an example of the CRT screen in 06. Ladder operation result transmission management mode, CRT screen manual switch SW
3 and automatic switch SW4.

【0032】更に「手動」を選択した時は、CRT画面
のラダー動作結果送信開始指令SW5及びラダー動作結
果送信停止指令SW6で切り替える。「自動」を選択し
た場合は、CRT画面で、ラダー動作結果送信開始停止
条件7を設定する。例えば、バルブ全開で開始しバルブ
全閉で終了する場合は、このCRT画面で、ラダー動作
結果送信開始条件7として「バルブ全開(入力デバイス
X010)」を設定入力し、ラダー動作結果送信停止条
件8として「バルブ全閉(入力デバイスX011)」を
設定入力する。
Further, when "manual" is selected, switching is performed by the ladder operation result transmission start command SW5 and the ladder operation result transmission stop command SW6 on the CRT screen. When "automatic" is selected, the ladder operation result transmission start / stop condition 7 is set on the CRT screen. For example, when starting with valve fully open and ending with valve fully closed, set "Valve fully open (input device X010)" as the ladder operation result transmission start condition 7 on this CRT screen, and ladder operation result transmission stop condition 8 Is set and input "valve fully closed (input device X011)".

【0033】CRT画面より入力されたラダー動作結果
送信管理モード切替え指令、及び、ラダー動作結果送信
開始条件,停止条件は、モニタ装置106のラダーシー
ケンスプログラム動作結果の条件送受信部112からプ
ログラマブルロジックコントローラ101に送信され
る。
The ladder operation result transmission management mode switching command, the ladder operation result transmission start condition and the stop condition input from the CRT screen are transmitted from the condition transmitting / receiving unit 112 of the ladder sequence program operation result of the monitor device 106 to the programmable logic controller 101. Sent to.

【0034】図6は、ラダーシーケンスプログラム動作
結果ファイル111の構成図である。ラダーシーケンス
プログラム動作結果ファイル111には、入出力デバイ
スのオンオフデータや、内部ワークデバイスのオンオフ
データ等が、動作結果の送信開始から停止までの間、シ
ーケンスサイクル毎に格納される。
FIG. 6 is a configuration diagram of the ladder sequence program operation result file 111. The ladder sequence program operation result file 111 stores ON / OFF data of the input / output device, ON / OFF data of the internal work device, and the like for each sequence cycle from the start to the stop of transmission of the operation result.

【0035】図7は、本実施形態に係るCRT110の
CRT画面160に、ラダー動作結果ファイル111を
参照し、時系列にラダーシーケンスサイクル毎の入力デ
バイスの情報をビット表示した例を示す図である。表示
時刻、デバイス名称は、この画面で設定変更可能となっ
ている。
FIG. 7 is a diagram showing an example in which the CRT screen 160 of the CRT 110 according to the present embodiment refers to the ladder operation result file 111 and bitwise displays the information of the input device for each ladder sequence cycle. . The display time and device name can be changed on this screen.

【0036】この図7の表示例は、ピストンがC端から
A端へ移動したらA端からC端に戻し、ピストンがC端
からB端で止まったらB端からC端に戻すシーケンス制
御の表示例であり(120〜123)、図9の従来例に
対応する図である。ラダーシーケンスプログラムは、ピ
ストン位置がA端またはB端に来たらC端への移動指令
を出力するので、ピストン位置A端入力デバイス(X0
30)あるいは、ピストン位置B端入力デバイス(X0
40)がオンするのは、図9で説明したように、200
ms〜400msの1〜2ラダーシーケンスサイクルの
間のみである。このような現象は、1s周期による観測
では不明であるが、本実施形態の様に、シーケンスサイ
クル毎にデータを収集しているため、図7に示すよう
に、入力デバイスのオン状態(●状態)が明確に判明す
る。
The display example of FIG. 7 is a sequence control table in which when the piston moves from the C end to the A end, the A end is returned to the C end, and when the piston stops from the C end to the B end, the B end is returned to the C end. It is an example (120-123) and is a figure corresponding to the prior art example of FIG. Since the ladder sequence program outputs a movement command to the C end when the piston position reaches the A end or the B end, the piston position A end input device (X0
30) Alternatively, the piston position B end input device (X0
40) is turned on, as described in FIG.
Only during 1-2 ladder sequence cycles from ms to 400 ms. Although such a phenomenon is unknown in the observation in the 1s cycle, since data is collected every sequence cycle as in the present embodiment, as shown in FIG. 7, the input device is in the ON state (● state). ) Is clearly revealed.

【0037】また、この画面表示において、デバイス情
報表示を、表示時刻を進める方向にスクロールさせた
り、過去の方向にスクロールすることで、時系列の情報
を画面で確認可能である。更に、表示時刻を変更すれ
ば、設定された表示時刻のデバイス情報が表示される。
この様な機能を操作することで、時系列に現象を確認で
きるばかりでなく、プラントで実際に起きた現象を再確
認する場合、再現試験をする必要が無くなる。
In this screen display, time-series information can be confirmed on the screen by scrolling the device information display in the direction of advancing the display time or in the past direction. Furthermore, if the display time is changed, the device information at the set display time is displayed.
By operating such a function, not only the phenomena can be confirmed in a time series, but also when the phenomenon actually occurred in the plant is to be reconfirmed, it is not necessary to perform a reproduction test.

【0038】[0038]

【発明の効果】本発明によれば、シミュレーション試験
や実プラント試験時において、ラダー動作結果、例えば
入出力デバイス,内部ワークデバイスのオンオフやデー
タ値がラダーシーケンスサイクル毎に変化する場合で
も、プログラマブルコントローラのラダーシーケンスサ
イクル毎の動作結果を容易に確認することができる。ま
た、実プラント稼動中の動作確認試験のように、何回も
行えない場合でも、シーケンスサイクル毎の動作結果を
ファイルに保存しているので、動作結果ファイルをもと
に何回もシーケンスサイクル毎の動作確認ができる。
According to the present invention, the programmable controller can be used in the simulation test or the actual plant test even when the ladder operation result, for example, the ON / OFF of the input / output device and the internal work device and the data value change every ladder sequence cycle. The operation result for each ladder sequence cycle can be easily confirmed. In addition, even if it cannot be performed many times, such as the operation confirmation test during actual plant operation, the operation result for each sequence cycle is saved in a file, so the operation result file can be used for every sequence cycle. You can check the operation of.

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

【図1】本発明の一実施形態に係るラダーシーケンスプ
ログラムデバッグツールのブロック図である。
FIG. 1 is a block diagram of a ladder sequence program debug tool according to an embodiment of the present invention.

【図2】本発明の一実施形態に係るラダー動作結果の送
信手順を示すフローチャートである。
FIG. 2 is a flowchart showing a procedure of transmitting a ladder operation result according to the embodiment of the present invention.

【図3】本発明の一実施形態に係るラダー動作結果の送
信要否の管理説明図である。
FIG. 3 is an explanatory diagram of management of necessity of transmission of a ladder operation result according to the embodiment of the present invention.

【図4】本発明の一実施形態に係るラダー動作結果送信
条件プログラムのラダー動作結果送信要否の管理手順を
示すフローチャートである。
FIG. 4 is a flowchart showing a procedure for managing whether or not ladder operation result transmission is required by the ladder operation result transmission condition program according to the embodiment of the present invention.

【図5】本発明の一実施形態に係るデバッグツールの画
面表示例を示す図である。
FIG. 5 is a diagram showing a screen display example of a debug tool according to an embodiment of the present invention.

【図6】図1に示すラダーシーケンスプログラム動作結
果ファイルの構成例を示す図である。
FIG. 6 is a diagram showing a configuration example of a ladder sequence program operation result file shown in FIG. 1.

【図7】図1に示すラダー動作結果ファイルを参照して
時系列にラダーシーケンスサイクル毎の入力デバイスを
ビット情報表示した例を示す図である。
FIG. 7 is a diagram showing an example in which bit information is displayed in time series on an input device for each ladder sequence cycle with reference to the ladder operation result file shown in FIG. 1;

【図8】従来のラダーシーケンスプログラムの動作確認
を行うデバッグツールのブロック図である。
FIG. 8 is a block diagram of a debug tool for confirming the operation of a conventional ladder sequence program.

【図9】従来のプログラマブルロジックコントローラに
おけるラダーシーケンスプログラムの動作結果を確認す
る画面表示例を示す図である。
FIG. 9 is a diagram showing a screen display example for confirming an operation result of a ladder sequence program in a conventional programmable logic controller.

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

101 プログラマブルロジックコントローラ 102 ラダーシーケンスプログラム 103 入出力デバイス 104 内部ワークデバイス 105 ラダー動作結果送信プログラム 106 モニタ装置 107 ラダー動作結果モニタプログラム 109 CRT制御プログラム 110 CRT 111 ラダーシーケンスプログラム動作結果ファイル 101 programmable logic controller 102 Ladder sequence program 103 I / O device 104 Internal work device 105 Ladder operation result transmission program 106 monitor device 107 Ladder operation result monitor program 109 CRT control program 110 CRT 111 Ladder sequence program operation result file

───────────────────────────────────────────────────── フロントページの続き (72)発明者 増田 成人 茨城県日立市大みか町五丁目2番1号 株 式会社日立情報制御システム内 (72)発明者 小祝 寿一 茨城県日立市大みか町五丁目2番1号 株 式会社日立製作所情報制御システム事業部 内 Fターム(参考) 5H220 AA01 BB10 DD04 JJ12 JJ26 JJ28 JJ53 JJ59 KK05 KK06 KK08 LL06 MM07 5H223 AA01 CC03 CC08 DD03 EE05 EE06 EE19 FF05    ─────────────────────────────────────────────────── ─── Continued front page    (72) Inventor Masuda Adult             5-2-1 Omika-cho, Hitachi City, Ibaraki Prefecture             Inside the Hitachi Information Control System (72) Inventor Koichi Juichi             5-2-1 Omika-cho, Hitachi City, Ibaraki Prefecture             Information Control Systems Division, Hitachi, Ltd.             Within F-term (reference) 5H220 AA01 BB10 DD04 JJ12 JJ26                       JJ28 JJ53 JJ59 KK05 KK06                       KK08 LL06 MM07                 5H223 AA01 CC03 CC08 DD03 EE05                       EE06 EE19 FF05

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 制御対象からの入力信号を基にラダーシ
ーケンスプログラムを所定周期で繰り返し実行し前記制
御対象を制御するプログラマブルロジックコントローラ
において、前記ラダーシーケンスプログラムの1シーケ
ンスサイクル終了毎にラダー動作結果を外部出力する手
段を備えることを特徴とするプログラマブルロジックコ
ントローラ。
1. In a programmable logic controller that controls a control target by repeatedly executing a ladder sequence program at a predetermined cycle based on an input signal from the control target, a ladder operation result is displayed every one sequence cycle of the ladder sequence program. A programmable logic controller comprising means for outputting externally.
【請求項2】 制御対象からの入力信号を基にラダーシ
ーケンスプログラムを所定周期で繰り返し実行し前記制
御対象を制御するプログラマブルロジックコントローラ
のラダーシーケンスプログラム動作確認方法において、
前記ラダーシーケンスプログラムの1シーケンスサイク
ル終了毎に前記プログラマブルロジックコントローラか
ら外部出力されるラダー動作結果を受信して記憶装置に
格納しておき、前記ラダー動作結果をモニタし動作確認
を行うことを特徴とするプログラマブルロジックコント
ローラのラダーシーケンスプログラム動作確認方法。
2. A ladder sequence program operation confirmation method of a programmable logic controller for controlling a control target by repeatedly executing a ladder sequence program at a predetermined cycle based on an input signal from the control target,
Each time a sequence cycle of the ladder sequence program is completed, a ladder operation result externally output from the programmable logic controller is received and stored in a storage device, and the ladder operation result is monitored to confirm the operation. A method for checking the operation of a ladder sequence program of a programmable logic controller.
【請求項3】 制御対象からの入力信号を基にラダーシ
ーケンスプログラムを所定周期で繰り返し実行し前記制
御対象を制御するプログラマブルロジックコントローラ
において、前記ラダーシーケンスプログラムの1シーケ
ンスサイクル終了毎にラダー動作結果を外部出力する手
段と、この外部出力されるラダー動作結果を受信して記
憶する記憶装置と、該記憶装置から読み出した前記ラダ
ー動作結果を表示する表示手段とを備えることを特徴と
するデバッグツール。
3. A programmable logic controller for controlling a control target by repeatedly executing a ladder sequence program at a predetermined cycle based on an input signal from the control target, and displaying a ladder operation result every one sequence cycle of the ladder sequence program. A debugging tool comprising: means for externally outputting; a storage device for receiving and storing the ladder operation result externally output; and a display means for displaying the ladder operation result read from the storage device.
【請求項4】 請求項3において、前記表示手段は、前
記シーケンスサイクル毎の動作記録を合成して表示する
ことを特徴とするデバッグツール。
4. The debug tool according to claim 3, wherein the display unit synthesizes and displays the operation record for each of the sequence cycles.
JP2001316964A 2001-10-15 2001-10-15 Programmable logic controller, method for confirming operation of ladder sequence program thereof, and debugging tool Pending JP2003122405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001316964A JP2003122405A (en) 2001-10-15 2001-10-15 Programmable logic controller, method for confirming operation of ladder sequence program thereof, and debugging tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001316964A JP2003122405A (en) 2001-10-15 2001-10-15 Programmable logic controller, method for confirming operation of ladder sequence program thereof, and debugging tool

Publications (1)

Publication Number Publication Date
JP2003122405A true JP2003122405A (en) 2003-04-25

Family

ID=19134899

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001316964A Pending JP2003122405A (en) 2001-10-15 2001-10-15 Programmable logic controller, method for confirming operation of ladder sequence program thereof, and debugging tool

Country Status (1)

Country Link
JP (1) JP2003122405A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005128721A (en) * 2003-10-22 2005-05-19 Omron Corp Data collecting unit, display system, and tool
JP7154466B1 (en) * 2022-02-18 2022-10-17 三菱電機株式会社 DEBUG SUPPORT PROGRAM, DEBUG SUPPORT DEVICE, AND DEBUG SUPPORT METHOD

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005128721A (en) * 2003-10-22 2005-05-19 Omron Corp Data collecting unit, display system, and tool
JP4538713B2 (en) * 2003-10-22 2010-09-08 オムロン株式会社 Data collection unit and display system
JP7154466B1 (en) * 2022-02-18 2022-10-17 三菱電機株式会社 DEBUG SUPPORT PROGRAM, DEBUG SUPPORT DEVICE, AND DEBUG SUPPORT METHOD
WO2023157257A1 (en) * 2022-02-18 2023-08-24 三菱電機株式会社 Debugging assistance program, debugging assistance device, and debugging assistance method

Similar Documents

Publication Publication Date Title
US6928337B2 (en) Robot simulation apparatus
JP2010247590A (en) Rewriting system for vehicle
CN110928243B (en) Method for configuring EtherCAT bus configuration through demonstrator
JPH1011118A (en) Sequence controller, data processor, data recording and reproducing method, and recording medium
JP2003122405A (en) Programmable logic controller, method for confirming operation of ladder sequence program thereof, and debugging tool
JP4542494B2 (en) Programmable display device, debugging support program, and debugging device control method
JP4286760B2 (en) A marine pneumatic self-diagnosis system and method, and a computer-readable recording medium on which a program for realizing the method is recorded.
JP4885639B2 (en) HILS equipment
JP2008084027A (en) Programmable display device, display program and recording medium recording the same
JP4297768B2 (en) Monitoring data collection device and monitoring data collection method for multiple programmable controllers
KR102302843B1 (en) Control system, control device, and program
JPH0924831A (en) Information transmitting device of vehicle
JP7152180B2 (en) system for operating equipment
JP3348251B2 (en) I / O device
JPH11167404A (en) Numerical controller
JP2531139B2 (en) Remote diagnostic device
KR100619679B1 (en) Real time monitoring apparatus and method for processor
JPS62162105A (en) Flow chart type programmable controller
JPH08286754A (en) Real-time verification operation system for robot or the like in remote place
JPH0784901A (en) Terminal operation reproducing device
JP2001209412A (en) Simulator for sequence program
JPH06231109A (en) System for supporing operation of real machine plant
JPH0217509A (en) Cad cam device
JPH1091477A (en) Control microcomputer device and maintenance tool for the same
JP2555182B2 (en) Process control system with monitor function