JP3807133B2 - Debugging tool for programmable controller and processing method thereof - Google Patents
Debugging tool for programmable controller and processing method thereof Download PDFInfo
- 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
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
[0018]
The
[0019]
In addition, when the
[0020]
Furthermore, when the
[0021]
Next, the
[0022]
The
[0023]
In addition, when the
[0024]
Further, the
[0025]
FIG. 2 is a flowchart showing a processing procedure executed by the
[0026]
In the
[0027]
On the other hand, when an execution start command is received from the
[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
[0029]
Thereafter, when the
[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
[0031]
Next, when the
[0032]
Next, when the
[0033]
Next, when an error content and an error occurrence address are received from the
[0034]
As described above, according to the first embodiment, a grammar check command is automatically transmitted from the
[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
[0037]
First, the
[0038]
The
[0039]
When the
[0040]
Next, the
[0041]
The
[0042]
In addition, the
[0043]
Further, the
[0044]
FIG. 4 is a flowchart showing a processing procedure executed by the
[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
[0046]
On the other hand, when the execution state reading command is received from the
[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
[0048]
Thereafter, when the
[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
[0050]
Next, when the
[0051]
Next, when receiving a calculation error occurrence address read command from the
[0052]
Next, when an operation error occurrence address or the like is received from the
[0053]
As described above, according to the second embodiment, the calculation error occurrence address read command is automatically transmitted from the
[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
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.
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)
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 |
-
1998
- 1998-12-11 JP JP35329598A patent/JP3807133B2/en not_active Expired - Fee Related
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 |