JP3807133B2 - Debugging tool for programmable controller and processing method thereof - Google Patents

Debugging tool for programmable controller and processing method thereof Download PDF

Info

Publication number
JP3807133B2
JP3807133B2 JP35329598A JP35329598A JP3807133B2 JP 3807133 B2 JP3807133 B2 JP 3807133B2 JP 35329598 A JP35329598 A JP 35329598A JP 35329598 A JP35329598 A JP 35329598A JP 3807133 B2 JP3807133 B2 JP 3807133B2
Authority
JP
Japan
Prior art keywords
programmable controller
program
command
tool
processing
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.)
Expired - Fee Related
Application number
JP35329598A
Other languages
Japanese (ja)
Other versions
JP2000181515A (en
Inventor
達夫 近藤
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP35329598A priority Critical patent/JP3807133B2/en
Publication of JP2000181515A publication Critical patent/JP2000181515A/en
Application granted granted Critical
Publication of JP3807133B2 publication Critical patent/JP3807133B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、コマンドに応じて処理を行うプログラマブルコントローラと通信可能に接続されて使用されるデバッグツールおよびその処理方法に関するものである。
【0002】
【従来の技術】
従来、文法エラーまたは演算エラーの発生に起因して、プログラマブルコントローラ(PLC)の実行を継続することができなくなると、新たにデバックツールを用いて文法エラーまたは演算エラーの内容とその発生箇所を探す操作を行って、その原因を究明して実行可能にする処理がユーザによって行われていた。
【0003】
なお、特開平8−95613号公報には、通信手段により決定された未作成記憶手段の種別に基づいてシーケンスプログラムの実行を禁止する制御手段を備えるプログラマブルコントローラが開示されている。
【0004】
【発明が解決しようとする課題】
しかしながら、上記のような従来のデバック方法では、新たにデバックツールを用いてエラーの内容とその発生箇所を探す操作を行わなければならず、デバック作業に時間がかかるという問題があった。
【0005】
本発明は、上記事情に鑑みてなされたものであり、デバック作業の時間短縮が可能なプログラマブルコントローラ用デバッグツールおよびその処理方法を提供することを目的とする。
【0006】
【課題を解決するための手段】
上記課題を解決するための請求項1記載の発明は、コマンドに応じて処理を行うプログラマブルコントローラと通信可能に接続されて使用されるデバッグツールであって、前記プログラマブルコントローラは、前記処理結果をレスポンスとして前記デバッグツールに返信する返信手段を有し、前記デバッグツールは、プログラム表示用の表示手段、および前記プログラマブルコントローラに対して前記コマンドを送信する送信手段を有し、当該デバッグツールからの実行開始のコマンドに応じて、前記プログラマブルコントローラがプログラム上の文法エラーにより処理を実行することができないとき、前記プログラマブルコントローラから得た文法エラー発生アドレスを基に、プログラム内の文法エラー発生部分を含むプログラムを前記表示手段に自動的に表示するものである。
【0007】
この構成では、プログラム内の文法エラー発生部分を含むプログラムが表示手段に自動的に表示されるので、デバック作業の時間が短縮するようになる。
【0008】
請求項2記載の発明は、コマンドに応じて処理を行うプログラマブルコントローラと通信可能に接続されて使用されるデバッグツールの処理方法であって、前記プログラマブルコントローラに対して実行開始のコマンドを送信する処理を行うステップと、前記プログラマブルコントローラがプログラム上の文法エラーにより前記コマンドに応じて処理を実行することができないとき、前記プログラマブルコントローラから得た文法エラー発生アドレスを基に、プログラム内の文法エラー発生部分を含むプログラムの生成処理を行うステップと、前記生成処理により得られるプログラムを前記表示手段に自動的に表示するステップとを備えるものである。
【0009】
この方法では、プログラム内の文法エラー発生部分を含むプログラムが表示手段に自動的に表示されるので、デバック作業の時間が短縮するようになる。
【0010】
請求項3記載の発明は、コマンドに応じて処理を行うプログラマブルコントローラと通信可能に接続されて使用されるデバッグツールであって、前記プログラマブルコントローラは、前記処理結果をレスポンスとして前記デバッグツールに返信する返信手段を有し、前記デバッグツールは、プログラム表示用の表示手段、および前記プログラマブルコントローラに対して前記コマンドを送信する送信手段を有し、当該デバッグツールから常時送信される実行状態読出しのコマンドに応じて、前記プログラマブルコントローラがプログラム上の演算エラーにより処理を実行することができないとき、前記プログラマブルコントローラから得た演算エラー発生アドレスを基に、プログラム内の演算エラー発生部分を含むプログラムを前記表示手段に自動的に表示するものである。
【0011】
この構成では、プログラム内の演算エラー発生部分を含むプログラムが表示手段に自動的に表示されるので、デバック作業の時間が短縮するようになる。
【0012】
請求項4記載の発明は、コマンドに応じて処理を行うプログラマブルコントローラと通信可能に接続されて使用されるデバッグツールの処理方法であって、前記プログラマブルコントローラに対して実行状態読出しのコマンドを常時送信する処理を行うステップと、前記プログラマブルコントローラがプログラム上の演算エラーにより処理を実行することができないとき、前記プログラマブルコントローラから得た演算エラー発生アドレスを基に、プログラム内の演算エラー発生部分を含むプログラムの生成処理を行うステップと、前記生成処理により得られるプログラムを前記表示手段に自動的に表示するステップとを備えるものである。
【0013】
この方法では、プログラム内の演算エラー発生部分を含むプログラムが表示手段に自動的に表示されるので、デバック作業の時間が短縮するようになる。
【0014】
なお、上記請求項1または3に記載の発明において、前記プログラマブルコントローラは前記コマンド受信用の受信手段を備え、前記デバッグツールは前記プログラマブルコントローラからのレスポンス受信用の受信手段を備える構成でもよい。この構成によれば、デバック作業の時間が短縮するようになる。
【0015】
【発明の実施の形態】
図1は本発明の第1実施形態に係るプログラマブルコントローラ用デバッグツールの概略構成図で、以下この図を用いて、第1実施形態について、本発明の一実施形態に係るプログラマブルコントローラ用デバッグツールの処理方法とともに説明する。
【0016】
本プログラマブルコントローラ用デバッグツール(デバッグツール)10は、コマンドに応じて処理を行うプログラマブルコントローラ(PLC)11と通信可能に接続されて使用されるものである。
【0017】
まず、PLC11について説明すると、このPLC11は、ネットワークを介して信号の受信および送信をそれぞれ行う受信部(受信手段)111および返信部(返信手段)112を備えているとともに、制御部113を備えている。
【0018】
この制御部113は、CPU(中央処理装置)などにより構成され、所定のプログラムに従って種々の処理を行うもので、例えば、受信部111を介してデバッグツール10から実行開始のコマンドを受信すると、そのコマンドに応じて所定のプログラムに従って処理を実行する。
【0019】
また、制御部113は、プログラム上の文法エラーにより実行開始のコマンドに応じて上記処理を実行することができないとき、返信部112を介して文法エラー発生アドレスなどをデバッグツール10に返す処理を行う。
【0020】
さらに、制御部113は、受信部111を介してデバッグツール10からコマンドを受信すると、そのコマンドに応じて処理を行い、この処理結果をレスポンスとして返信部112を介してデバッグツール10に返信する処理を行う。
【0021】
次に、デバッグツール10について説明すると、このデバッグツール10は、ネットワークを介して信号の送信および受信をそれぞれ行う送信部(送信手段)101および受信部(受信手段)102を備えているとともに、液晶ディスプレイやCRTなどのプログラム表示用の表示部(表示手段)103、および制御部104を備えている。
【0022】
この制御部104は、CPUなどにより構成され、PLC11の所定のプログラムに対するデバック用の種々の処理を行うもので、例えば、送信部101を介して実行開始のコマンドをPLC11に送信する処理を行う。
【0023】
また、制御部104は、実行開始のコマンドに応じて、PLC11がプログラム上の文法エラーにより処理を実行することができないとき、PLC11から得た文法エラー発生アドレスなどを基に、プログラム内の文法エラー発生部分を含むプログラムの生成処理を行う。
【0024】
さらに、制御部104は、上記生成処理で得られるプログラムを表示部103の画面に自動的に表示する処理を行う。
【0025】
図2はデバッグツール10およびPLC11により実行される処理手順を示すフローチャートで、以下この図を用いて上記処理手順の説明を行う。ただし、ステップD10〜D14はデバッグツール10による処理手順を示し、ステップP10〜P17はPLC11による処理手順を示す。
【0026】
デバックツール10において、実行開始処理がスタートし(D10)、PROGモードからRUNモードに切り替えられると、実行開始のコマンドをPLC11に送信する処理が行われる(D11)。これにより、デバックツール10からPLC11に実行開始のコマンドが送信される。この後、この実行開始のコマンドに対するPLC11からのレスポンスの受信待ち状態となる。
【0027】
一方、PLC11において、デバックツール10から実行開始のコマンドを受信すると、実行開始処理がスタートし(P10)、実行開始に先立ち所定のプログラムの文法チェックを行う処理が実行される(P11)。次いで、その文法チェックで文法エラーが発生したか否かを判定する処理が行われる(P12)。
【0028】
文法エラーが発生しなければ(P12でNO)、実行開始処理、すなわち所定のプログラムに従った処理が実行される(P13)。次いで、その処理が正常に終了したことを示すレスポンスをデバックツール10に返信する処理が行われる(P14)。これにより、そのレスポンスがPLC11からデバックツール10に送信される。この後、PLC11の実行開始処理が終了する。
【0029】
この後、デバックツール10において、処理が正常に終了したことを示すレスポンスを受信すると、そのレスポンスに応じて、文法エラーが発生したか否かを判定する処理が行われる(D12)。この場合、文法エラーが発生しなかったので(D12でNO)、デバックツール10の実行開始処理が終了する。
【0030】
一方、PLC11において、文法エラーが発生し(P12でYES)、RUNモードに移行できなければ、文法エラーが発生したことを示すレスポンスをデバックツール10に返信する処理が行われる(P15)。これにより、そのレスポンスがPLC11からデバックツール10に送信される。この後、受信待ち状態となる。
【0031】
次いで、デバックツール10において、PLC11から文法エラーが発生したことを示すレスポンスを受信すると、そのレスポンスに応じて、文法エラーが発生したか否かを判定する処理が行われる(D12)。この場合、文法エラーが発生したので(D12でYES)、プログラムのトータル文法チェックのコマンドをPLC11に送信する処理が行われる(D13)。これにより、そのコマンドがデバックツール10からPLC11に自動的に送信される。この後、受信待ち状態となる。
【0032】
次いで、PLC11において、デバックツール10からプログラムのトータル文法チェックのコマンドを受信すると、プログラムの文法チェックを行い(D16)、文法エラーの発生しているプログラム部分などのエラー内容およびエラー発生アドレスをレスポンスとしてデバックツール10に送信する処理が行われる(D17)。これにより、エラー内容およびエラー発生アドレスがPLC11からデバックツール10に送信される。この後、PLC11の実行開始処理が終了する。
【0033】
次いで、PLC11からエラー内容およびエラー発生アドレスを受信すると、この受信情報を使用して、文法エラーの発生しているプログラム部分を表示部103の画面に表示する処理が実行される(D14)。これにより、文法エラーの発生しているプログラム部分が表示部103の画面に自動的に表示される。この後、デバックツール10の実行開始処理が終了する。
【0034】
以上、第1実施形態によれば、文法チェックのコマンドがデバックツール10からPLC11に自動的に送信され、文法エラーの発生しているプログラム部分(実行不可原因となる箇所)が表示部103の画面に自動的に表示されるので、ユーザのデバック作業の時間短縮が可能になる。
【0035】
図3は本発明の第2実施形態に係るプログラマブルコントローラ用デバッグツールの概略構成図で、以下この図を用いて、第2実施形態について、本発明の別の実施形態に係るプログラマブルコントローラ用デバッグツールの処理方法とともに説明する。
【0036】
本デバッグツール20は、コマンドに応じて処理を行うPLC21と通信可能に接続されて使用されるものである。
【0037】
まず、PLC11について説明すると、このPLC11は、受信部111および返信部112を第1実施形態と同様に備えているほか、制御部213を備えている。
【0038】
この制御部213は、CPUなどにより構成され、所定のプログラムに従って種々の処理を行うもので、例えば、受信部111を介してデバッグツール10から実行状態読出しのコマンドを受信すると、プログラム上の演算エラー発生の有無を確認し、演算エラーが発生すれば(実行の継続が不能になれば)、演算エラー発生アドレスなどをデバッグツール20に返す処理を行う。
【0039】
また、制御部213は、受信部111を介してデバッグツール20からコマンドを受信すると、そのコマンドに応じて処理を行い、この処理結果をレスポンスとして返信部112を介してデバッグツール20に返信する処理を行う。
【0040】
次に、デバッグツール20について説明すると、このデバッグツール20は、送信部101、受信部102および表示部103を第1実施形態と同様に備えているほか、制御部204を備えている。
【0041】
この制御部204は、CPUなどにより構成され、PLC21の所定のプログラムに対するデバック用の種々の処理を行うもので、例えば、送信部101を介して実行状態読出しのコマンドをPLC21に常時送信する処理を行う。すなわち、PLC21が処理の実行を開始してRUNモードに移行後、オンライン接続中のデバッグツール20は、PLC21の実行状態を常時モニタするべく、実行状態読出しのコマンドをPLC21に常時送信する。
【0042】
また、制御部204は、デバッグツール20から常時送信される実行状態読出しのコマンドに応じて、PLC21がプログラム上の演算エラーにより処理を実行することができないとき、PLC21から得た演算エラー発生アドレスなど用いて、プログラム内の演算エラー発生部分を含むプログラムの生成処理を行う。
【0043】
さらに、制御部204は、上記生成処理で得られるプログラムを表示部103の画面に自動的に表示する処理を行う。
【0044】
図4はデバッグツール20およびPLC21により実行される処理手順を示すフローチャートで、以下この図を用いて上記処理手順の説明を行う。ただし、ステップD20〜D24はデバッグツール20による処理手順を示し、ステップP20〜P25はPLC21による処理手順を示す。
【0045】
まず、デバックツール20において、実行状態読出し処理が開始すると(D20)、実行状態読出しのコマンドをPLC21に送信する処理が行われる(D21)。これにより、デバックツール20からPLC21に実行状態読出しのコマンドが送信される。この後、この実行状態読出しのコマンドに対するPLC21からのレスポンスの受信待ち状態となる。
【0046】
一方、PLC21において、デバックツール20から実行状態読出しのコマンドを受信すると、実行状態読出し処理がスタートし(P20)、演算エラーのチェックを行う処理が実行される(P21)。次いで、そのチェックで演算エラーが発生したか否かを判定する処理が行われる(P22)。
【0047】
演算エラーが発生しなければ(P22でNO)、演算が正常に実行されたことを示すレスポンスをデバックツール20に返す処理が行われる(P23)。これにより、そのレスポンスがPLC21からデバックツール20に送信される。この後、PLC11の実行状態読出し処理が終了する。
【0048】
この後、デバックツール20において、演算が正常に実行されたことを示すレスポンスを受信すると、そのレスポンスに応じて、演算エラーが発生したか否かを判定する処理が実行される(D22)。この場合、演算エラーが発生しなかったので(D22でNO)、ステップD21に戻る。
【0049】
一方、PLC21において、演算エラーが発生すれば(P22でYES)、演算エラーが発生したことを示すレスポンスをデバックツール20に返信する処理が行われる(P24)。これにより、そのレスポンスがPLC21からデバックツール20に送信される。この後、受信待ち状態となる。
【0050】
次いで、デバックツール20において、PLC21から演算エラーが発生したことを示すレスポンスを受信すると、そのレスポンスに応じて、演算エラーが発生したか否かを判定する処理が行われる(D22)。この場合、演算エラーが発生したので(D22でYES)、演算エラー発生アドレス読出しのコマンドをPLC21に送信する処理が行われる(D23)。これにより、そのコマンドがデバックツール20からPLC21に自動的に送信される。この後、受信待ち状態となる。
【0051】
次いで、PLC21において、デバックツール20から演算エラー発生アドレス読出しのコマンドを受信すると、演算エラー発生アドレスおよびそのアドレスの命令を含むプログラム部分などをレスポンスとしてデバックツール20に送信する処理が行われる(D25)。これにより、演算エラー発生アドレスなどがPLC21からデバックツール20に送信される。この後、PLC21の実行状態読出し処理が終了する。
【0052】
次いで、PLC21から演算エラー発生アドレスなどを受信すると、受信情報を使用して、演算エラーの発生している部分(演算エラーが発生したプログラムアドレスの命令を含むプログラムエリア)を表示部103の画面に表示する処理が行われる(D24)。これにより、演算エラーの発生している部分が表示部103の画面に自動的に表示される。この後、デバックツール20の実行状態読出し処理が終了する。
【0053】
以上、第2実施形態によれば、演算エラー発生アドレス読出しのコマンドがデバックツール20からPLC21に自動的に送信され、演算エラーの発生している部分が表示部103の画面に自動的に表示されるので、ユーザのデバック作業の時間短縮が可能になる。
【0054】
なお、第1および第2実施形態では、デバッグツールおよびPLCは、ネットワークを介して信号の受信および送信をそれぞれ行う受信部および返信部(または送信部)を備える構成になっているが、これに限らず、例えばリモートコントロールユニットなどで使用される赤外線送受信機を備える構成でもよい。
【0055】
【発明の効果】
以上のことから明らかなように、請求項1記載の発明によれば、コマンドに応じて処理を行うプログラマブルコントローラと通信可能に接続されて使用されるデバッグツールであって、前記プログラマブルコントローラは、前記処理結果をレスポンスとして前記デバッグツールに返信する返信手段を有し、前記デバッグツールは、プログラム表示用の表示手段、および前記プログラマブルコントローラに対して前記コマンドを送信する送信手段を有し、当該デバッグツールからの実行開始のコマンドに応じて、前記プログラマブルコントローラがプログラム上の文法エラーにより処理を実行することができないとき、前記プログラマブルコントローラから得た文法エラー発生アドレスを基に、プログラム内の文法エラー発生部分を含むプログラムを前記表示手段に自動的に表示するものであるので、デバック作業の時間短縮が可能になる。
【0056】
請求項2記載の発明によれば、コマンドに応じて処理を行うプログラマブルコントローラと通信可能に接続されて使用されるデバッグツールの処理方法であって、前記プログラマブルコントローラに対して実行開始のコマンドを送信する処理を行うステップと、前記プログラマブルコントローラがプログラム上の文法エラーにより前記コマンドに応じて処理を実行することができないとき、前記プログラマブルコントローラから得た文法エラー発生アドレスを基に、プログラム内の文法エラー発生部分を含むプログラムの生成処理を行うステップと、前記生成処理により得られるプログラムを前記表示手段に自動的に表示するステップとを備えるので、デバック作業の時間短縮が可能になる。
【0057】
請求項3記載の発明によれば、コマンドに応じて処理を行うプログラマブルコントローラと通信可能に接続されて使用されるデバッグツールであって、前記プログラマブルコントローラは、前記処理結果をレスポンスとして前記デバッグツールに返信する返信手段を有し、前記デバッグツールは、プログラム表示用の表示手段、および前記プログラマブルコントローラに対して前記コマンドを送信する送信手段を有し、当該デバッグツールから常時送信される実行状態読出しのコマンドに応じて、前記プログラマブルコントローラがプログラム上の演算エラーにより処理を実行することができないとき、前記プログラマブルコントローラから得た演算エラー発生アドレスを基に、プログラム内の演算エラー発生部分を含むプログラムを前記表示手段に自動的に表示するものであるので、デバック作業の時間短縮が可能になる。
【0058】
請求項4記載の発明によれば、コマンドに応じて処理を行うプログラマブルコントローラと通信可能に接続されて使用されるデバッグツールの処理方法であって、前記プログラマブルコントローラに対して実行状態読出しのコマンドを常時送信する処理を行うステップと、前記プログラマブルコントローラがプログラム上の演算エラーにより処理を実行することができないとき、前記プログラマブルコントローラから得た演算エラー発生アドレスを基に、プログラム内の演算エラー発生部分を含むプログラムの生成処理を行うステップと、前記生成処理により得られるプログラムを前記表示手段に自動的に表示するステップとを備えるので、デバック作業の時間短縮が可能になる。
【0059】
請求項5記載の発明によれば、前記プログラマブルコントローラは前記コマンド受信用の受信手段を備え、前記デバッグツールは前記プログラマブルコントローラからのレスポンス受信用の受信手段を備えるので、デバック作業の時間短縮が可能になる。
【図面の簡単な説明】
【図1】本発明の第1実施形態に係るプログラマブルコントローラ用デバッグツールの概略構成図である。
【図2】図1に示すデバッグツールおよびプログラマブルコントローラにより実行される処理手順を示すフローチャートである。
【図3】本発明の第2実施形態に係るプログラマブルコントローラ用デバッグツールの概略構成図である。
【図4】図3に示すデバッグツールおよびプログラマブルコントローラにより実行される処理手順を示すフローチャートである。
【符号の説明】
10,20 デバッグツール
11,21 プログラマブルコントローラ(PLC)
101 送信部
102 受信部
103 表示部
104,204 制御部
111 受信部
112 返信部
113,213 制御部
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a debugging tool used in a communicable manner with a programmable controller that performs processing according to a command, and a processing method thereof.
[0002]
[Prior art]
Conventionally, when the execution of the programmable controller (PLC) cannot be continued due to the occurrence of a grammatical error or an arithmetic error, the contents of the grammatical error or the arithmetic error and its occurrence location are newly searched using a debugging tool. The user has performed a process of investigating the cause and making it executable.
[0003]
Japanese Patent Laid-Open No. 8-95613 discloses a programmable controller including a control unit that prohibits execution of a sequence program based on the type of an uncreated storage unit determined by a communication unit.
[0004]
[Problems to be solved by the invention]
However, in the conventional debugging method as described above, there is a problem that it is necessary to newly perform an operation of searching for the contents of an error and the location where the error has occurred using a debugging tool.
[0005]
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a debugging tool for a programmable controller and a processing method thereof that can shorten the time required for debugging.
[0006]
[Means for Solving the Problems]
The invention according to claim 1 for solving the above-mentioned problem is a debugging tool that is used by being communicably connected to a programmable controller that performs processing according to a command, and the programmable controller responds with the processing result. As a reply means for returning to the debug tool, and the debug tool has a display means for displaying a program and a transmission means for sending the command to the programmable controller, and the execution from the debug tool is started. A program including a grammatical error occurrence part in the program based on a grammatical error occurrence address obtained from the programmable controller when the programmable controller cannot execute processing due to a grammatical error on the program The table It is intended to automatically be displayed in the means.
[0007]
In this configuration, since the program including the grammatical error occurrence portion in the program is automatically displayed on the display means, the time required for debugging is reduced.
[0008]
The invention according to claim 2 is a processing method of a debug tool that is used by being communicably connected to a programmable controller that performs processing in accordance with a command, and that transmits an execution start command to the programmable controller A grammatical error occurrence part in the program based on the grammatical error occurrence address obtained from the programmable controller when the programmable controller cannot execute processing according to the command due to a grammatical error on the program. And a step of automatically displaying a program obtained by the generation processing on the display means.
[0009]
In this method, since the program including the grammatical error occurrence part in the program is automatically displayed on the display means, the time required for debugging is shortened.
[0010]
The invention according to claim 3 is a debugging tool that is used in a communicable connection with a programmable controller that performs processing according to a command, and the programmable controller returns the processing result as a response to the debugging tool. The debug tool has a display means for displaying a program, and a transmission means for transmitting the command to the programmable controller. Accordingly, when the programmable controller cannot execute processing due to a calculation error on the program, the display means includes a calculation error generation part in the program based on the calculation error generation address obtained from the programmable controller. It is intended to automatically display.
[0011]
In this configuration, the program including the operation error occurrence portion in the program is automatically displayed on the display means, so that the time required for debugging is shortened.
[0012]
The invention according to claim 4 is a processing method of a debug tool used in a communicable manner with a programmable controller that performs processing according to a command, and constantly transmits an execution state read command to the programmable controller. And a program including an operation error occurrence part in the program based on an operation error occurrence address obtained from the programmable controller when the programmable controller cannot execute the process due to an operation error on the program. And a step of automatically displaying a program obtained by the generation process on the display means.
[0013]
In this method, since the program including the operation error occurrence part in the program is automatically displayed on the display means, the time required for debugging is shortened.
[0014]
In the invention according to claim 1 or 3, the programmable controller may include a receiving unit for receiving the command, and the debug tool may include a receiving unit for receiving a response from the programmable controller. According to this configuration, the time for debugging work is shortened.
[0015]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a schematic configuration diagram of a debug tool for a programmable controller according to a first embodiment of the present invention. Hereinafter, the debug tool for a programmable controller according to one embodiment of the present invention will be described with reference to this figure. It will be described together with the processing method.
[0016]
The programmable controller debug tool (debug tool) 10 is used by being communicably connected to a programmable controller (PLC) 11 that performs processing according to a command.
[0017]
First, the PLC 11 will be described. The PLC 11 includes a reception unit (reception unit) 111 and a return unit (reply unit) 112 that respectively receive and transmit signals via a network, and a control unit 113. Yes.
[0018]
The control unit 113 is configured by a CPU (Central Processing Unit) or the like, and performs various processes in accordance with a predetermined program. For example, when an execution start command is received from the debug tool 10 via the reception unit 111, the control unit 113 Processing is executed according to a predetermined program in response to the command.
[0019]
In addition, when the control unit 113 cannot execute the above process in response to a command to start execution due to a grammatical error on the program, the control unit 113 performs a process of returning a grammatical error occurrence address or the like to the debug tool 10 via the reply unit 112 .
[0020]
Furthermore, when the control unit 113 receives a command from the debug tool 10 via the reception unit 111, the control unit 113 performs processing according to the command, and returns the processing result as a response to the debug tool 10 via the return unit 112. I do.
[0021]
Next, the debug tool 10 will be described. The debug tool 10 includes a transmission unit (transmission unit) 101 and a reception unit (reception unit) 102 that respectively transmit and receive signals via a network, and a liquid crystal display. A display unit (display unit) 103 for displaying a program such as a display or a CRT, and a control unit 104 are provided.
[0022]
The control unit 104 is configured by a CPU or the like, and performs various processes for debugging a predetermined program of the PLC 11. For example, the control unit 104 performs a process of transmitting an execution start command to the PLC 11 via the transmission unit 101.
[0023]
In addition, when the PLC 11 cannot execute a process due to a grammatical error on the program in response to the execution start command, the control unit 104 performs a grammatical error in the program based on the grammatical error occurrence address obtained from the PLC 11. Generates a program including the generated part.
[0024]
Further, the control unit 104 performs processing for automatically displaying the program obtained by the generation processing on the screen of the display unit 103.
[0025]
FIG. 2 is a flowchart showing a processing procedure executed by the debug tool 10 and the PLC 11. The processing procedure will be described below with reference to FIG. However, steps D10 to D14 show the processing procedure by the debug tool 10, and steps P10 to P17 show the processing procedure by the PLC 11.
[0026]
In the debug tool 10, when the execution start process starts (D10) and is switched from the PROG mode to the RUN mode, a process of transmitting an execution start command to the PLC 11 is performed (D11). As a result, a command to start execution is transmitted from the debug tool 10 to the PLC 11. After that, the system enters a state of waiting for receiving a response from the PLC 11 with respect to this execution start command.
[0027]
On the other hand, when an execution start command is received from the debug tool 10 in the PLC 11, an execution start process starts (P10), and a process for checking a grammar of a predetermined program is executed prior to the start of execution (P11). Next, processing for determining whether or not a grammatical error has occurred in the grammatical check is performed (P12).
[0028]
If no grammatical error occurs (NO in P12), an execution start process, that is, a process according to a predetermined program is executed (P13). Next, a process of returning a response indicating that the process has been normally completed to the debug tool 10 is performed (P14). As a result, the response is transmitted from the PLC 11 to the debugging tool 10. Thereafter, the execution start process of the PLC 11 ends.
[0029]
Thereafter, when the debug tool 10 receives a response indicating that the process has been normally completed, a process for determining whether or not a grammatical error has occurred is performed according to the response (D12). In this case, since no grammatical error has occurred (NO in D12), the execution start process of the debug tool 10 ends.
[0030]
On the other hand, if a grammatical error occurs in the PLC 11 (YES in P12) and the transition to the RUN mode cannot be made, a process indicating that a grammatical error has occurred is returned to the debugging tool 10 (P15). As a result, the response is transmitted from the PLC 11 to the debugging tool 10. After that, it enters a reception waiting state.
[0031]
Next, when the debug tool 10 receives a response indicating that a grammatical error has occurred from the PLC 11, a process for determining whether or not a grammatical error has occurred is performed according to the response (D12). In this case, since a grammatical error has occurred (YES in D12), processing for transmitting a total grammar check command of the program to the PLC 11 is performed (D13). As a result, the command is automatically transmitted from the debug tool 10 to the PLC 11. After that, it enters a reception waiting state.
[0032]
Next, when the PLC 11 receives a command for checking the total grammar of the program from the debug tool 10, the grammar of the program is checked (D16), and the error contents such as the program part where the grammatical error has occurred and the error occurrence address are used as a response. Processing to transmit to the debug tool 10 is performed (D17). As a result, the error content and the error occurrence address are transmitted from the PLC 11 to the debugging tool 10. Thereafter, the execution start process of the PLC 11 ends.
[0033]
Next, when an error content and an error occurrence address are received from the PLC 11, a process for displaying a program part in which a grammatical error has occurred on the screen of the display unit 103 is executed using the received information (D14). As a result, the program part in which the grammatical error has occurred is automatically displayed on the screen of the display unit 103. Thereafter, the execution start process of the debug tool 10 ends.
[0034]
As described above, according to the first embodiment, a grammar check command is automatically transmitted from the debug tool 10 to the PLC 11, and a program part in which a grammatical error has occurred (a part that causes execution impossible) is displayed on the screen of the display unit 103. Since it is automatically displayed on the screen, it is possible to shorten the debugging time of the user.
[0035]
FIG. 3 is a schematic configuration diagram of a debug tool for a programmable controller according to the second embodiment of the present invention. Hereinafter, a debug tool for a programmable controller according to another embodiment of the present invention will be described using FIG. The processing method will be described.
[0036]
The debug tool 20 is used by being communicably connected to a PLC 21 that performs processing according to a command.
[0037]
First, the PLC 11 will be described. The PLC 11 includes a receiving unit 111 and a reply unit 112 as in the first embodiment, and also includes a control unit 213.
[0038]
The control unit 213 is configured by a CPU or the like, and performs various processes according to a predetermined program. For example, when an execution state read command is received from the debug tool 10 via the receiving unit 111, an arithmetic error in the program occurs. The presence or absence of the occurrence is confirmed, and if an operation error occurs (if execution cannot be continued), processing for returning the operation error occurrence address and the like to the debug tool 20 is performed.
[0039]
When the control unit 213 receives a command from the debug tool 20 via the reception unit 111, the control unit 213 performs processing according to the command, and returns the processing result as a response to the debug tool 20 via the return unit 112. I do.
[0040]
Next, the debug tool 20 will be described. The debug tool 20 includes a transmission unit 101, a reception unit 102, and a display unit 103 as in the first embodiment, and also includes a control unit 204.
[0041]
The control unit 204 is configured by a CPU or the like, and performs various processes for debugging a predetermined program of the PLC 21. For example, the control unit 204 performs a process of constantly transmitting an execution state read command to the PLC 21 via the transmission unit 101. Do. That is, after the PLC 21 starts executing the process and shifts to the RUN mode, the debug tool 20 that is connected online constantly transmits an execution state read command to the PLC 21 so as to constantly monitor the execution state of the PLC 21.
[0042]
In addition, the control unit 204, when the PLC 21 cannot execute processing due to an operation error on the program in response to the execution state read command constantly transmitted from the debug tool 20, an operation error occurrence address obtained from the PLC 21, etc. The program generation process including the operation error occurrence part in the program is performed.
[0043]
Further, the control unit 204 performs processing for automatically displaying the program obtained by the generation processing on the screen of the display unit 103.
[0044]
FIG. 4 is a flowchart showing a processing procedure executed by the debug tool 20 and the PLC 21. Hereinafter, the processing procedure will be described with reference to FIG. However, steps D20 to D24 show the processing procedure by the debug tool 20, and steps P20 to P25 show the processing procedure by the PLC 21.
[0045]
First, when the execution state reading process is started in the debugging tool 20 (D20), a process for transmitting an execution state reading command to the PLC 21 is performed (D21). As a result, a command for reading the execution state is transmitted from the debug tool 20 to the PLC 21. After this, a response reception from the PLC 21 with respect to the execution state read command is awaited.
[0046]
On the other hand, when the execution state reading command is received from the debug tool 20 in the PLC 21, the execution state reading process starts (P20), and a process for checking an operation error is executed (P21). Next, a process for determining whether or not a calculation error has occurred in the check is performed (P22).
[0047]
If a calculation error does not occur (NO in P22), a process of returning a response indicating that the calculation has been executed normally to the debugging tool 20 is performed (P23). As a result, the response is transmitted from the PLC 21 to the debugging tool 20. Thereafter, the execution state reading process of the PLC 11 ends.
[0048]
Thereafter, when the debug tool 20 receives a response indicating that the calculation has been normally executed, a process for determining whether or not a calculation error has occurred is executed according to the response (D22). In this case, since no calculation error has occurred (NO in D22), the process returns to step D21.
[0049]
On the other hand, if a calculation error occurs in the PLC 21 (YES in P22), a process of returning a response indicating that the calculation error has occurred to the debugging tool 20 is performed (P24). As a result, the response is transmitted from the PLC 21 to the debugging tool 20. After that, it enters a reception waiting state.
[0050]
Next, when the debug tool 20 receives a response indicating that a calculation error has occurred from the PLC 21, a process for determining whether or not a calculation error has occurred is performed according to the response (D22). In this case, since a calculation error has occurred (YES in D22), a process of transmitting a calculation error occurrence address read command to the PLC 21 is performed (D23). Thereby, the command is automatically transmitted from the debug tool 20 to the PLC 21. After that, it enters a reception waiting state.
[0051]
Next, when receiving a calculation error occurrence address read command from the debug tool 20, the PLC 21 performs a process of transmitting the calculation error occurrence address and a program portion including an instruction at the address to the debug tool 20 as a response (D25). . As a result, an operation error occurrence address or the like is transmitted from the PLC 21 to the debugging tool 20. Thereafter, the execution state reading process of the PLC 21 ends.
[0052]
Next, when an operation error occurrence address or the like is received from the PLC 21, the received information is used to display the portion where the operation error has occurred (the program area including the instruction of the program address where the operation error has occurred) on the screen of the display unit 103. A display process is performed (D24). As a result, the part where the calculation error has occurred is automatically displayed on the screen of the display unit 103. Thereafter, the execution state reading process of the debug tool 20 ends.
[0053]
As described above, according to the second embodiment, the calculation error occurrence address read command is automatically transmitted from the debug tool 20 to the PLC 21, and the part where the calculation error has occurred is automatically displayed on the screen of the display unit 103. Therefore, it is possible to shorten the time for the user's debugging work.
[0054]
In the first and second embodiments, the debug tool and the PLC are configured to include a reception unit and a return unit (or transmission unit) that respectively receive and transmit signals via a network. For example, a configuration including an infrared transceiver used in a remote control unit or the like may be used.
[0055]
【The invention's effect】
As is apparent from the above, according to the first aspect of the present invention, there is provided a debugging tool that is used so as to be communicable with a programmable controller that performs processing in accordance with a command. A return unit that returns a processing result as a response to the debug tool, the debug tool including a display unit for displaying a program and a transmission unit that transmits the command to the programmable controller; When the programmable controller cannot execute processing due to a grammatical error in the program in response to the execution start command from the grammatical error occurrence part in the program based on the grammatical error occurrence address obtained from the programmable controller Including blog Since the beam is intended to automatically display on the display unit, it is possible to save time for debugging operations.
[0056]
According to a second aspect of the present invention, there is provided a debugging tool processing method that is used by being communicably connected to a programmable controller that performs processing according to a command, and that transmits an execution start command to the programmable controller. And a grammatical error in the program based on the grammatical error occurrence address obtained from the programmable controller when the programmable controller cannot execute the process according to the command due to a grammatical error on the program. Since a step of generating a program including the generation part and a step of automatically displaying the program obtained by the generation processing on the display means are provided, it is possible to reduce the time for debugging work.
[0057]
According to invention of Claim 3, it is a debug tool used communicably connected with the programmable controller which processes according to a command, Comprising: The said programmable controller uses the said process result as a response to the said debug tool. The debug tool has a display means for displaying a program, and a transmission means for sending the command to the programmable controller, and the execution state read-out constantly transmitted from the debug tool. In response to a command, when the programmable controller cannot execute processing due to a calculation error on the program, based on the calculation error occurrence address obtained from the programmable controller, a program including a calculation error generation part in the program table Since those automatically displayed on unit, it is possible to save time for debugging operations.
[0058]
According to invention of Claim 4, it is a processing method of the debugging tool used by being connected so that communication with the programmable controller which processes according to a command is used, Comprising: The command of execution state read-out with respect to the said programmable controller The step of performing the process of constantly transmitting, and when the programmable controller cannot execute the process due to an operation error on the program, the operation error occurrence part in the program is determined based on the operation error occurrence address obtained from the programmable controller. Since it includes the step of performing the generation processing of the program including the step of automatically displaying the program obtained by the generation processing on the display means, it is possible to shorten the time for debugging.
[0059]
According to a fifth aspect of the present invention, the programmable controller includes a receiving unit for receiving the command, and the debug tool includes a receiving unit for receiving a response from the programmable controller. become.
[Brief description of the drawings]
FIG. 1 is a schematic configuration diagram of a debug tool for a programmable controller according to a first embodiment of the present invention.
FIG. 2 is a flowchart showing a processing procedure executed by the debug tool and the programmable controller shown in FIG. 1;
FIG. 3 is a schematic configuration diagram of a programmable controller debug tool according to a second embodiment of the present invention.
4 is a flowchart showing a processing procedure executed by the debug tool and the programmable controller shown in FIG. 3;
[Explanation of symbols]
10, 20 Debug tools 11, 21 Programmable controller (PLC)
101 Transmission Unit 102 Reception Unit 103 Display Unit 104, 204 Control Unit 111 Reception Unit 112 Reply Unit 113, 213 Control Unit

Claims (5)

コマンドに応じて処理を行うプログラマブルコントローラと通信可能に接続されて使用されるデバッグツールであって、
前記プログラマブルコントローラは、前記処理結果をレスポンスとして前記デバッグツールに返信する返信手段を有し、
前記デバッグツールは、プログラム表示用の表示手段、および前記プログラマブルコントローラに対して前記コマンドを送信する送信手段を有し、当該デバッグツールからの実行開始のコマンドに応じて、前記プログラマブルコントローラがプログラム上の文法エラーにより処理を実行することができないとき、前記プログラマブルコントローラから得た文法エラー発生アドレスを基に、プログラム内の文法エラー発生部分を含むプログラムを前記表示手段に自動的に表示する
プログラマブルコントローラ用デバッグツール。
A debugging tool that is used in a communicable manner with a programmable controller that performs processing according to a command.
The programmable controller has return means for returning the processing result as a response to the debug tool,
The debug tool has a display means for displaying a program and a transmission means for transmitting the command to the programmable controller, and the programmable controller is on the program in response to an execution start command from the debug tool. Debugging for a programmable controller that automatically displays a program including a grammatical error occurrence part in a program on the display means based on a grammatical error occurrence address obtained from the programmable controller when processing cannot be executed due to a grammatical error tool.
コマンドに応じて処理を行うプログラマブルコントローラと通信可能に接続されて使用されるデバッグツールの処理方法であって、
前記プログラマブルコントローラに対して実行開始のコマンドを送信する処理を行うステップと、
前記プログラマブルコントローラがプログラム上の文法エラーにより前記コマンドに応じて処理を実行することができないとき、前記プログラマブルコントローラから得た文法エラー発生アドレスを基に、プログラム内の文法エラー発生部分を含むプログラムの生成処理を行うステップと、
前記生成処理により得られるプログラムを前記表示手段に自動的に表示するステップと
を備えるプログラマブルコントローラ用デバッグツールの処理方法。
It is a processing method of a debug tool that is used so as to be communicable with a programmable controller that performs processing according to a command,
Performing a process of transmitting an execution start command to the programmable controller;
Generation of a program including a grammatical error occurrence part in a program based on a grammatical error occurrence address obtained from the programmable controller when the programmable controller cannot execute processing according to the command due to a grammatical error on the program Processing steps;
A method for processing a debugging tool for a programmable controller comprising: automatically displaying a program obtained by the generation processing on the display means.
コマンドに応じて処理を行うプログラマブルコントローラと通信可能に接続されて使用されるデバッグツールであって、
前記プログラマブルコントローラは、前記処理結果をレスポンスとして前記デバッグツールに返信する返信手段を有し、
前記デバッグツールは、プログラム表示用の表示手段、および前記プログラマブルコントローラに対して前記コマンドを送信する送信手段を有し、当該デバッグツールから常時送信される実行状態読出しのコマンドに応じて、前記プログラマブルコントローラがプログラム上の演算エラーにより処理を実行することができないとき、前記プログラマブルコントローラから得た演算エラー発生アドレスを基に、プログラム内の演算エラー発生部分を含むプログラムを前記表示手段に自動的に表示する
プログラマブルコントローラ用デバッグツール。
A debugging tool that is used in a communicable manner with a programmable controller that performs processing according to a command.
The programmable controller has return means for returning the processing result as a response to the debug tool,
The debug tool includes a display unit for displaying a program and a transmission unit that transmits the command to the programmable controller, and the programmable controller according to an execution state read command that is constantly transmitted from the debug tool. Automatically displays a program including an operation error occurrence part in the program on the display unit based on the operation error occurrence address obtained from the programmable controller when the process cannot be executed due to an operation error on the program. A debugging tool for programmable controllers.
コマンドに応じて処理を行うプログラマブルコントローラと通信可能に接続されて使用されるデバッグツールの処理方法であって、
前記プログラマブルコントローラに対して実行状態読出しのコマンドを常時送信する処理を行うステップと、
前記プログラマブルコントローラがプログラム上の演算エラーにより処理を実行することができないとき、前記プログラマブルコントローラから得た演算エラー発生アドレスを基に、プログラム内の演算エラー発生部分を含むプログラムの生成処理を行うステップと、
前記生成処理により得られるプログラムを前記表示手段に自動的に表示するステップと
を備えるプログラマブルコントローラ用デバッグツールの処理方法。
It is a processing method of a debug tool that is used so as to be communicable with a programmable controller that performs processing according to a command,
Performing a process of constantly transmitting an execution state read command to the programmable controller;
When the programmable controller cannot execute processing due to a calculation error on the program, a step of generating a program including a calculation error occurrence part in the program based on the calculation error occurrence address obtained from the programmable controller; ,
A method for processing a debugging tool for a programmable controller comprising: automatically displaying a program obtained by the generation processing on the display means.
前記プログラマブルコントローラは前記コマンド受信用の受信手段を備え、前記デバッグツールは前記プログラマブルコントローラからのレスポンス受信用の受信手段を備える請求項1または3に記載のプログラマブルコントローラ用デバッグツール。4. The debug tool for a programmable controller according to claim 1, wherein the programmable controller includes a reception unit for receiving the command, and the debug tool includes a reception unit for receiving a response from the programmable controller. 5.
JP35329598A 1998-12-11 1998-12-11 Debugging tool for programmable controller and processing method thereof Expired - Fee Related JP3807133B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP35329598A JP3807133B2 (en) 1998-12-11 1998-12-11 Debugging tool for programmable controller and processing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP35329598A JP3807133B2 (en) 1998-12-11 1998-12-11 Debugging tool for programmable controller and processing method thereof

Publications (2)

Publication Number Publication Date
JP2000181515A JP2000181515A (en) 2000-06-30
JP3807133B2 true JP3807133B2 (en) 2006-08-09

Family

ID=18429879

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35329598A Expired - Fee Related JP3807133B2 (en) 1998-12-11 1998-12-11 Debugging tool for programmable controller and processing method thereof

Country Status (1)

Country Link
JP (1) JP3807133B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100464255B1 (en) * 2002-02-14 2005-01-03 엘지산전 주식회사 Remote controlling method for programmable logic controller
JP5796311B2 (en) * 2011-03-15 2015-10-21 オムロン株式会社 Control device and system program

Also Published As

Publication number Publication date
JP2000181515A (en) 2000-06-30

Similar Documents

Publication Publication Date Title
JP6111675B2 (en) Method, apparatus and program for supporting user program design of safety controller
JP2526688B2 (en) Programmable controller and partial execution method of sequence program
JP2000330822A (en) Concentrated tracing function by dynamic tracing in data processing system
JPS582761A (en) Method of testing unit
JP3807133B2 (en) Debugging tool for programmable controller and processing method thereof
JP2000138726A (en) Data processor
JP2008181572A (en) Plc system
KR101447845B1 (en) Communication device
CN111033400B (en) Control device, control method, and storage medium for control program
US8626395B2 (en) Method for processing data in an influencing device
JP3257656B2 (en) Debug device
JP3367761B2 (en) Control system program collation method and control system
JPH04373036A (en) Software testing device for computer system
JP6836549B2 (en) Ladder display device
JPH096702A (en) Peripheral device, automatic device driver software preparation system, automatic preparing method for device driver software and inquiry responding method for peripheral device
JPH0784901A (en) Terminal operation reproducing device
JP3350699B2 (en) Programmable controller
JPH047655A (en) Program evaluation method and communication system evaluation device
CA2366977A1 (en) Method and arrangement for monitoring a program
JP2520172B2 (en) Abnormality information detection device
JP2001255935A (en) Monitor system for controller
JP2001282330A (en) Monitoring device in sequential function chart type programmable controller
JP2003256026A (en) Plant monitoring and operating device
JP2003241805A (en) Development support system and program product
JPH103402A (en) System diagnosis device/method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20031212

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060323

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060425

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060508

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090526

Year of fee payment: 3

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090526

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100526

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100526

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110526

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees