JP2017134493A - Ladder program display device with automatic tracing function for self-holding circuit of ladder program - Google Patents
Ladder program display device with automatic tracing function for self-holding circuit of ladder program Download PDFInfo
- Publication number
- JP2017134493A JP2017134493A JP2016012314A JP2016012314A JP2017134493A JP 2017134493 A JP2017134493 A JP 2017134493A JP 2016012314 A JP2016012314 A JP 2016012314A JP 2016012314 A JP2016012314 A JP 2016012314A JP 2017134493 A JP2017134493 A JP 2017134493A
- Authority
- JP
- Japan
- Prior art keywords
- trace
- result
- ladder program
- self
- holding circuit
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
- G06F11/0736—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0259—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the response to fault detection
- G05B23/0262—Confirmation of fault detection, e.g. extra checks to confirm that a failure has indeed occurred
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/348—Circuit details, i.e. tracer hardware
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/079—Root cause analysis, i.e. error or fault diagnosis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3471—Address tracing
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24065—Real time diagnostics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/865—Monitoring of software
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Automation & Control Theory (AREA)
- Programmable Controllers (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
本発明は、ラダープログラム表示装置に関し、特にラダープログラムの自己保持回路の自動トレース機能を備えたラダープログラム表示装置に関する。 The present invention relates to a ladder program display device, and more particularly to a ladder program display device having an automatic trace function of a self-holding circuit for a ladder program.
プログラマブルコントローラの運転においてユーザが意図しない現象すなわち不具合が発生した場合、トレース機能を使用し、不具合を引き起こした信号および関連信号の変化を確認して原因を特定する方法が一般的に知られている。
トレース機能とは、各信号の状態を時系列で記録し、記録結果を表示する機能である。
トレース機能を活用する方法としては、特許文献1に開示されるように、指定したコイルに対して影響を及ぼす接点を、自動的に検索してトレース対象に設定する方法等がある。
When a phenomenon unintended by the user, that is, a malfunction occurs in the operation of the programmable controller, a method is generally known in which a trace function is used to identify a cause by checking a change in a signal causing a malfunction and a related signal. .
The trace function is a function for recording the state of each signal in time series and displaying the recording result.
As a method of utilizing the trace function, as disclosed in Patent Document 1, there is a method of automatically searching for a contact that affects a designated coil and setting it as a trace target.
ラダープログラムでは、信号状態を保持するために図7に示すような自己保持回路を数多く使用しており、この自己保持回路が誤ったタイミングで保持を開始・終了すると、制御対象の装置で誤動作が発生する。
例えば、図7に示す自己保持回路の例では、X0.0がONになるとR0.0がONになり、その後、X0.0がOFFになってもR0.0はONの状態を保持する。そして、X1.0がONになるとR0.0がOFFとなるものである。このように自己保持回路は、コイルに設定されている信号が、同じネット上のいずれかの接点で使用されているといった特徴がある。
In the ladder program, many self-holding circuits as shown in FIG. 7 are used to hold the signal state. If this self-holding circuit starts and ends holding at an incorrect timing, a malfunction occurs in the controlled device. Occur.
For example, in the example of the self-holding circuit shown in FIG. 7, R0.0 is turned on when X0.0 is turned on, and then R0.0 is kept on even when X0.0 is turned off. And when X1.0 is turned on, R0.0 is turned off. Thus, the self-holding circuit is characterized in that the signal set in the coil is used at any contact on the same net.
実際のラダープログラムにおいては、いくつかの信号の複合条件によって自己保持の開始・終了が制御されており、自己保持回路が正しく動作しない場合には、いくつもの信号状態の組み合わせを調査する必要がある。この調査は以下のような手順で行われるが、特に不具合の発生が間欠的な場合には、原因の特定に非常に多くの時間を必要としていた。
●手順1:ラダープログラム上で、不具合の発生している自己保持回路を検索する。
●手順2:手順1の回路で使用されている接点およびコイルの信号をトレース対象に設定する。
●手順3:トレース機能を実行し、正常時の信号変化を記録する。
●手順4:再度トレース機能を実行後、不具合現象を再現させて、信号変化を記録する。
●手順5:手順3と手順4の信号変化を比較して不具合原因を特定する。
In an actual ladder program, the start / end of self-holding is controlled by the composite conditions of several signals. If the self-holding circuit does not operate correctly, it is necessary to investigate a number of combinations of signal states. . This investigation is carried out according to the following procedure, but it takes a very long time to identify the cause, particularly when the occurrence of a problem is intermittent.
● Procedure 1: Search the ladder program for the self-holding circuit where the problem has occurred.
● Procedure 2: Set the contact and coil signals used in the circuit of Procedure 1 to be traced.
● Procedure 3: Execute the trace function and record normal signal changes.
● Step 4: After executing the trace function again, reproduce the failure phenomenon and record the signal change.
● Procedure 5: Compare the signal changes in procedure 3 and procedure 4 to identify the cause of the problem.
特許文献1に開示される技術では、上記手順2を簡略化することは可能ではあるが、上記手順1の自己保持回路を特定することはできなかった。
In the technique disclosed in Patent Document 1, the
そこで本発明の目的は、自己保持回路を自動で検出し、関連する信号を自動的に常時トレースすることで、異常発生時におけるラダープログラムのデバッグ作業を減らす機能を備えたラダープログラム表示装置を提供することである。 Therefore, an object of the present invention is to provide a ladder program display device having a function of reducing ladder program debugging work when an abnormality occurs by automatically detecting a self-holding circuit and always automatically tracing related signals. It is to be.
本願の請求項1に係る発明は、シーケンス制御装置により実行されるラダープログラムの動作状況を表示するラダープログラム表示装置において、前記ラダープログラムに含まれる回路の内で、当該回路に含まれる入力および出力の信号アドレスに基づいて自己保持回路を特定して抽出する自己保持回路抽出部と、前記自己保持回路抽出部が抽出した前記自己保持回路において用いられている信号アドレスをトレース対象として設定するトレース対象設定部と、前記トレース対象設定部により設定されたトレース対象となる前記信号アドレスを前記シーケンス制御装置がトレースした結果の表示を出力するトレース結果表示部と、を備えることを特徴とするラダープログラム表示装置である。 The invention according to claim 1 of the present application is a ladder program display device that displays an operation status of a ladder program executed by a sequence control device. Among the circuits included in the ladder program, the input and output included in the circuit A self-holding circuit extraction unit that identifies and extracts a self-holding circuit based on the signal address of the signal, and a trace target that sets a signal address used in the self-holding circuit extracted by the self-holding circuit extraction unit as a trace target A ladder program display comprising: a setting unit; and a trace result display unit that outputs a display result of the sequence control device tracing the signal address to be traced set by the trace target setting unit Device.
本願の請求項2に係る発明は、前記自己保持回路抽出部は、前記回路に同じ信号アドレスの入力および出力が含まれている場合に、当該回路を自己保持回路と特定する、ことを特徴とする請求項1に記載のラダープログラム表示装置である。
The invention according to
本願の請求項3に係る発明は、前記シーケンス制御装置によるトレースの結果を記憶するトレース結果記憶部をさらに備え、前記トレース結果表示部は、前記トレース結果記憶部に記憶された過去のトレースの結果と、現在のトレースの結果とを比較することで、過去のトレースの結果と現在のトレースの結果とに差異があることを検出し、前記過去のトレースの結果と前記現在のトレースの結果との差異が検出された信号アドレスが把握できるように表示する、ことを特徴とする請求項1または2に記載のラダープログラム表示装置である。 The invention according to claim 3 of the present application further includes a trace result storage unit that stores a trace result by the sequence control device, and the trace result display unit is a result of a past trace stored in the trace result storage unit. Is compared with the result of the current trace to detect that there is a difference between the result of the past trace and the result of the current trace, and the result of the previous trace and the result of the current trace are detected. The ladder program display device according to claim 1, wherein the ladder program display device displays the signal address where the difference is detected so as to be grasped.
本願の請求項4に係る発明は、前記トレース結果表示部は、差異が検出された前記信号アドレスに係る表示を強調表示することで、前記過去のトレースの結果と前記現在のトレースの結果との差異が検出された信号アドレスが把握できるようにする、ことを特徴とする請求項3に記載のラダープログラム表示装置である。 In the invention according to claim 4 of the present application, the trace result display unit highlights the display related to the signal address where the difference is detected, so that the past trace result and the current trace result are displayed. 4. The ladder program display device according to claim 3, wherein a signal address where a difference is detected can be grasped.
本願の請求項5に係る発明は、前記トレース結果表示部は、前記過去のトレースの結果と、前記現在のトレースの結果とを比較できるように表示することで、前記過去のトレースの結果と前記現在のトレースの結果との差異が検出された信号アドレスが把握できるようにする、ことを特徴とする請求項3に記載のラダープログラム表示装置である。 The invention according to claim 5 of the present application is such that the trace result display unit displays the result of the past trace and the result of the current trace so that the result of the past trace can be compared. 4. The ladder program display device according to claim 3, wherein a signal address where a difference from a current trace result is detected can be grasped.
本願の請求項6に係る発明は、前記トレース対象設定部によりトレース対象として設定された信号アドレスの内で、トレース対象とする信号アドレスの範囲を限定することができる、ことを特徴とする請求項1〜5のいずれか1つに記載のラダープログラム表示装置である。 The invention according to claim 6 of the present application is capable of limiting a range of signal addresses to be traced among signal addresses set as trace targets by the trace target setting unit. It is a ladder program display device given in any 1 of 1-5.
本発明により、自己保持回路が自動抽出されているため、ユーザがラダープログラムを解析して自己保持回路を探す必要がなく、自己保持回路に関連する信号がトレース対象として自動設定されるため、ユーザがトレース設定を行う必要がなく、ラダープログラムのデバッグのための作業を効率化できる。 According to the present invention, since the self-holding circuit is automatically extracted, it is not necessary for the user to analyze the ladder program to search for the self-holding circuit, and a signal related to the self-holding circuit is automatically set as a trace target. However, it is not necessary to set the trace, and the work for debugging the ladder program can be made more efficient.
また、上記でトレース設定された信号を常時トレースしておくことで、異常発生時には予め記録されたトレース結果を参照すればよいため、異常を再現せずとも、原因の調査が行うことが可能となる。更に、正常ケースと異常ケースの違いを表示することにより、不具合原因が見つけ出しやすくなる。 In addition, by always tracing the signal set as described above, it is only necessary to refer to the trace result recorded in advance when an abnormality occurs, so the cause can be investigated without reproducing the abnormality. Become. Furthermore, displaying the difference between the normal case and the abnormal case makes it easier to find the cause of the problem.
以下、本発明の実施形態を図面と共に説明する。
図1は、本発明の一実施形態によるラダープログラム表示装置の概略構成図である。本実施形態のラダープログラム表示装置1は、CPU10、ROM11、RAM12、二次記憶装置13、キーボード14、表示器15、通信インタフェース16を備える。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a schematic configuration diagram of a ladder program display device according to an embodiment of the present invention. The ladder program display device 1 of this embodiment includes a
ラダープログラム表示装置1が備えるCPU10は、ラダープログラム表示装置1を全体的に制御するプロセッサであり、ROM11に格納されたシステムプログラムをバスを介して読み出し、該システムプログラムに従ってラダープログラム表示装置1を制御する。システムプログラムには、シーケンスプログラムから自己保持回路を抽出するためのプログラムや、自己保持回路において用いられている信号アドレスをトレース対象として設定するためのプログラムもまた含まれており、該プログラムを実行することにより後述する機能やフローチャートにより説明される各処理が実行される。
The
RAM12には、一時的な計算データや表示器15に表示される表示データ、キーボード14などの入力機器を介して入力された各種データを格納するワークメモリ領域121と、編集対象となるラダープログラムなどのシーケンスプログラムのプログラムデータを格納するプログラム格納領域122が設けられている。また、RAM12には、本発明の自己保持回路抽出機能のプログラムやトレース機能のプログラムが実行される際に用いられる一時的なデータを記憶する領域が確保される。
The
二次記憶装置13は、ハードディスク装置、メモリカード、USBメモリといった不揮発性の記憶装置や、バッテリバックアップされた不揮発性のメモリなどで構成され、ラダープログラム表示装置1が取り扱うラダープログラムなどのシーケンスプログラムや、設定ファイル、パラメータファイルなどの各種ファイルが記憶されている。
The
キーボード14は、ユーザからの入力を受け付ける入力機器であり、自己保持回路抽出機能やトレース機能の実行指示等に用いられる。また、表示器15は、ラダープログラム表示装置1の内部状態の表示や、シーケンスプログラム、トレース結果などを表示するための液晶表示装置やタッチパネルなどである。
The keyboard 14 is an input device that receives input from the user, and is used for an instruction to execute a self-holding circuit extraction function or a trace function. The
通信インタフェース16には、LANやWANなどのネットワークが接続されており、該通信インタフェース16を介してシーケンス制御装置2との間でラダープログラムなどのシーケンスプログラムの送受信を行う。
A network such as a LAN or WAN is connected to the
一方で、シーケンス制御装置2は、CPU20、ROM21、RAM22、I/O機器インタフェース23、通信インタフェース24を備える。
CPU20はシーケンス制御装置2の全体の制御の中心となるプロセッサである。CPU20は、シーケンス制御装置2の電源投入時にバスを介して、ROM21に格納されたシステムプログラムを読み出し、このシステムプログラムに従ってシーケンス制御装置2の全体の制御を実行する。システムプログラムには、信号変化をトレースするためのプログラムもまた含まれている。RAM22には機械の信号アドレスの状態を示す信号メモリ221、CPU20により実行されるラダープログラムなどのシーケンスプログラムを格納するプログラム格納領域222などが設けられている。
On the other hand, the
The
シーケンス制御装置2では、RAM22のプログラム格納領域222に格納されるシーケンスプログラムに基づいてシーケンス制御装置2からの出力信号をI/O機器インタフェース23を経由して図示しない機械や周辺機器に出力する。また、I/O機器インタフェース23を経由して、図示しない機械や該機械に備えられた操作盤の操作スイッチの信号、センサ機器や周辺機器からの信号などの入力信号を受信し、プログラム格納領域222に格納されるシーケンスプログラムに基づいて必要な処理を施し、処理結果を信号メモリ221に格納する。
The
また、シーケンス制御装置2は、通信インタフェース24を介してラダープログラム表示装置1との間で信号メモリ221に示される信号アドレスの状態を含むシーケンスプログラムの実行状況を示すデータを送信したり、プログラム格納領域222に格納されるシーケンスプログラムを送受信したりする。このような構成により、ラダープログラム表示装置1はシーケンス制御装置2のプログラム格納領域222に格納されるシーケンスプログラムを取得して表示器15へと表示すると共にシーケンスプログラムの実行状況を示すデータに基づいた表示を行ったり、ラダープログラム表示装置1からシーケンス制御装置2に対するシーケンスプログラムの実行指令を送信したり、ラダープログラム表示装置1上で編集されたシーケンスプログラムをプログラム格納領域222へと記憶したりすることができる。
Further, the
なお、本実施形態のラダープログラム表示装置1は、例えばシーケンスプログラムの動作をモニタするシーケンスプログラムモニタ装置や、シーケンスプログラムの編集機能を備えたシーケンスプログラム編集装置などを含む。また、ラダープログラム表示装置1の機能はシーケンス制御装置2に内蔵されていてもよい。
Note that the ladder program display device 1 according to the present embodiment includes, for example, a sequence program monitor device that monitors the operation of a sequence program, a sequence program editing device that includes a sequence program editing function, and the like. The function of the ladder program display device 1 may be incorporated in the
図2は、本実施形態のラダープログラム表示装置1の機能ブロック図である。ラダープログラム表示装置1は、機能手段としての自己保持回路抽出部30、トレース対象設定部31、トレース結果表示部32を備える。
自己保持回路抽出部30は、プログラム格納領域122に格納されているラダープログラム40から、当該ラダープログラム40に含まれる回路の中からすべての自己保持回路を自動的に抽出する。自己保持回路は、上記したようにコイル(信号アドレスへの出力)に設定されている信号が同じネット上のいずれかの接点(信号アドレスからの入力)で使用されているという特徴があるため、そのような特徴のある回路を自己保持回路抽出部30は自己保持回路として抽出する。
また、トレース対象設定部31は、自己保持回路抽出部30が抽出した自己保持回路に用いられているすべての接点とコイルの信号アドレスをトレース対象としてRAM12上などに設けられたトレース対象記憶部41へと記憶する。
FIG. 2 is a functional block diagram of the ladder program display device 1 of the present embodiment. The ladder program display device 1 includes a self-holding
The self-holding
In addition, the trace
シーケンス制御装置2が備えるトレース部51は、ユーザによるトレース処理の開始指令に応じて信号メモリ221のトレース処理を実行する。トレース部51は、信号メモリ221からトレース対象記憶部41に記憶されているトレース対象の信号アドレスの状態を抽出してトレース結果記憶部42へと出力する。トレース結果記憶部42には、現在のトレースしているトレース結果とは別に、過去に信号メモリ221をトレースしたトレース結果を記憶して残しておくことが可能となっている。これにより、後にトレース結果表示部32で現在の信号メモリ221のトレース結果と、過去の信号メモリ221のトレース結果とを比較可能に表示をすることができ、例えば過去のトレース結果としてあらかじめ正常状態でのトレース結果をトレース結果記憶部42へと記憶しておけば、現在の信号のトレース結果と正常状態でのトレース結果を比較することで異常な信号変化を検出することも可能となる。なお、過去の信号メモリ221のトレース結果はRAM12の容量などに応じて複数記憶しておけるようにしてもよい。
The
トレース結果表示部32は、トレース部51によりトレース結果記憶部42へと記憶されたトレース結果に基づいてトレース結果の表示画面を生成し、表示器15へと表示する。トレース結果表示部32は、トレース結果記憶部42に記憶された現在のトレース結果を、例えば各信号アドレス毎に信号の状態の変化を時系列で表示するようにしてもよい。また、トレース結果表示部32は、トレース結果記憶部42に記憶された現在の信号アドレスのトレース結果と過去の信号アドレスのトレース結果とを比較し、比較した結果に基づいてトレース結果の表示画面を生成するようにしても良く、そのような表示をする際には、現在のトレースの結果の内で過去のトレースの結果との差異が生じた部分を把握できるように表示(色の変更や点滅などによる強調表示)したり、また、単に過去のトレースの結果と現在のトレースの結果とを並べて表示することで差異が生じた部分をユーザが把握できるようにしてもよい。
The trace
以下では、本実施形態のラダープログラム表示装置1を用いて、ある操作盤が正しく動作しない原因を調べる実施例を挙げる。
図3は、本実施例で異常動作の原因を調べる対象とする操作盤の構造を示す図である。本実施例では、ある装置にランプAとボタンB、キーCが付いた操作盤がある場合を想定する。
Below, the Example which investigates the cause which a certain operation panel does not operate | move correctly using the ladder program display apparatus 1 of this embodiment is given.
FIG. 3 is a diagram showing a structure of an operation panel which is a target for examining the cause of abnormal operation in the present embodiment. In the present embodiment, it is assumed that a certain apparatus has an operation panel with lamp A, button B, and key C.
ここで設計者はキーCがONになった状態で、ボタンBを押下するとランプAが点灯するラダープログラム40を設計しようとしたとする。そして、そのラダープログラム40を運転した際に、ボタンBを押下してもランプAが点灯しなかったとする。(異常現象)。この現象の原因を調べたい場合、以下の流れとなる。
Here, it is assumed that the designer tries to design a
(ラダー起動時のシステム処理)
●手順1:自己保持回路抽出部30は、ラダー起動時にラダープログラム40を自動で検索して、すべての自己保持回路を抽出する。自己保持回路を検出する内部処理については、後述のフローチャートに記載する。ここでは、図4に示すような回路でランプAが制御されているとする。ランプA(信号アドレスY0.0)はコイルR(信号アドレスR0.0)によって制御されている。また、図4中で点線により囲まれたネットにおいて、コイルRはボタンB(信号アドレスX0.0)がONになるとONとなり、その後、コイルRが自分自身をONし続ける作りになっている。したがって、図4中で点線により囲まれたネットは自己保持回路として抽出対象になる。
(System processing at ladder startup)
Procedure 1: The self-holding
●手順2:続いて、トレース対象設定部31は、上記した手順1で抽出したネットにおいて、入力信号として使用されている信号アドレスをトレース対象として設定する。手順1で例に挙げた自己保持回路からはX0.0、X1.0、R0.0をトレース対象の信号とする。
●手順3:トレース部51は、上記した手順2が完了した後に、手順2で設定した信号アドレスのトレースを開始する
Procedure 2: Subsequently, the trace
Procedure 3: The
(異常発生時の処理)
●手順4:ランプAが動作しない異常現象が発生すると、前回までの正常ケースでトレースされた各信号の波形と異常時にトレースされた各信号の波形とがトレース結果表示部32により比較されることで当該異常現象が検出される。
●手順5:図5は正常時と異常時のトレース結果の比較を示す例である。今回の例ではX1.0とR0.0の波形が前回と異なっており、ここで異常の原因が発生している可能性が高いと診断される。ユーザはその診断結果を受けてX1.0を使用するネットの構造を確認し、何が問題か調査すればよい。ここで、R0.0はランプAを直接制御する信号のため除外する。今回の例では、X1.0がOFFになっていないと、X0.0がONになってもR0.0がONとならない構造になっており、X1.0がラダープログラム表示装置1の診断の通り、異常の原因であることが分かる。
なお、正常ケースのサンプルがまだ存在しない場合、あるいは比較しても異常が見つからない場合は、ユーザの指示により異常発生時のトレース結果をトレース結果記憶部42へと記憶し、記憶したトレース結果をユーザが参照して異常な波形となっている信号を確認するようにすればよい。
(Processing when an error occurs)
Procedure 4: When an abnormal phenomenon occurs in which lamp A does not operate, the waveform of each signal traced in the normal case up to the previous time and the waveform of each signal traced at the time of abnormality are compared by the trace
● Procedure 5: FIG. 5 is an example showing a comparison of trace results between normal and abnormal. In this example, the waveforms of X1.0 and R0.0 are different from the previous time, and it is diagnosed that there is a high possibility that the cause of the abnormality has occurred. The user receives the diagnosis result, confirms the structure of the net using X1.0, and investigates what is the problem. Here, R0.0 is excluded because it is a signal for directly controlling the lamp A. In this example, if X1.0 is not OFF, R0.0 does not turn ON even if X0.0 is ON. X1.0 is used to diagnose the ladder program display device 1. As you can see, it is the cause of the abnormality.
If there is no normal case sample yet or no abnormality is found by comparison, the trace result at the time of occurrence of an abnormality is stored in the trace
上記のように、予め異常原因となりやすい自己保持回路を自動的にトレースしておき、さらに異常発生時にはトレース結果を自動的に比較することで、異常原因の調査が容易になる。また、予めトレースしておいた結果を見ることができるため、トレース設定と現象再現を必要とせず、デバッグ作業を削減できる。 As described above, a self-holding circuit that is likely to cause an abnormality is automatically traced in advance, and when the abnormality occurs, the trace results are automatically compared to facilitate investigation of the cause of the abnormality. In addition, since the result of tracing in advance can be seen, it is not necessary to set the trace and reproduce the phenomenon, and the debugging work can be reduced.
図6は、自己保持回路抽出部30、トレース対象設定部31により実行される処理のフローチャートである。
●[ステップSA01]自己保持回路抽出部30は、ラダープログラム40からネットを抽出し、更に、抽出したネットの回路からすべての接点とコイルを抽出する。
●[ステップSA02]自己保持回路抽出部30は、ステップSA01で抽出した各コイルのアドレスが、ステップSA01で抽出したいずれかの接点で使用されているかを検索する。
FIG. 6 is a flowchart of processing executed by the self-holding
[Step SA01] The self-holding
[Step SA02] The self-holding
●[ステップSA03]自己保持回路抽出部30は、ステップSA02での検索の結果として、いずれかのコイルの信号アドレスが同一ネットの回路内でいずれかの接点に使用されているか否かを判定する。接点に使用されている場合にはステップSA04へ処理を移行し、接点に使用されていない場合にはステップSA05へと処理を移行する。
●[ステップSA04]トレース対象設定部31は、ステップSA02で抽出されたすべての接点とコイルの信号アドレスをトレース対象としてトレース対象記憶部41へと記憶する。
●[ステップSA05]自己保持回路抽出部30は、ラダープログラム40内に次のネットが残っているか否かを判定する。次のネットが残っている場合にはステップSA01へと処理を移行し、ネットが残っていない場合には本処理を終了する。
[Step SA03] The self-holding
[Step SA04] The trace
[Step SA05] The self-holding
以上、本発明の実施の形態について説明したが、本発明は上述した実施の形態の例にのみ限定されるものでなく、適宜の変更を加えることにより様々な態様で実施することができる。
例えば、上記した実施形態では、自己保持回路抽出部30はラダープログラム40内から自己保持回路を自動的に抽出し、抽出された自己保持回路に含まれる接点とコイルの信号アドレスをトレース対象設定部31がトレース対象として設定しているが、このようにして自動的に設定されたトレース対象の信号について、ユーザがトレースする対象とする信号を更に絞り込んで限定する手段を別途設けてもよい。
また、トレース結果表示部32によるトレース結果の表示では、トレース結果を自己保持回路毎にまとめて表示するようにしてもよい。
このようにすることで、ユーザは確認するべき回路や信号アドレスを整理して確認することができるため、デバッグ作業を効率的に行うことができる。
Although the embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments, and can be implemented in various modes by adding appropriate changes.
For example, in the above-described embodiment, the self-holding
Further, in the display of the trace result by the trace
By doing so, the user can organize and confirm the circuits and signal addresses to be confirmed, and therefore can perform debugging work efficiently.
上記した実施形態ではトレース対象記憶部41、トレース結果記憶部42をラダープログラム表示装置1側に設ける構成としているが、トレース対象記憶部41、トレース結果記憶部42はシーケンス制御装置2上に設けるようにしても良い。
また、トレース部51において現在のトレース結果と過去のトレース結果とをリアルタイムに比較し、比較した結果、異なる信号状態が検出された場合に警告を発するように構成しても良く、そのようにした場合にはトレース部51において現在のトレース結果と過去のトレース結果との比較結果を、トレース結果記憶部を42を介して、または直接、トレース結果表示部32へと出力し、トレース結果表示部32はトレース部51から受け付けた現在のトレース結果と過去のトレース結果との比較結果を表示するようにしても良い。
In the embodiment described above, the trace
Further, the
1 ラダープログラム表示装置
2 シーケンス制御装置
10 CPU
11 ROM
12 RAM
13 二次記憶装置
14 キーボード
15 表示器
16 通信インタフェース
20 CPU
21 ROM
22 RAM
23 I/O機器インタフェース
24 通信インタフェース
30 自己保持回路抽出部
31 トレース対象設定部
32 トレース結果表示部
40 ラダープログラム
41 トレース対象記憶部
42 トレース結果記憶部
51 トレース部
121 ワークメモリ領域
122 プログラム格納領域
221 信号メモリ
222 プログラム格納領域
1 Ladder
11 ROM
12 RAM
13 Secondary storage device 14
21 ROM
22 RAM
23 I /
Claims (6)
前記ラダープログラムに含まれる回路の内で、当該回路に含まれる入力および出力の信号アドレスに基づいて自己保持回路を特定して抽出する自己保持回路抽出部と、
前記自己保持回路抽出部が抽出した前記自己保持回路において用いられている信号アドレスをトレース対象として設定するトレース対象設定部と、
前記トレース対象設定部により設定されたトレース対象となる前記信号アドレスを前記シーケンス制御装置がトレースした結果の表示を出力するトレース結果表示部と、
を備えることを特徴とするラダープログラム表示装置。 In the ladder program display device that displays the operation status of the ladder program executed by the sequence control device,
Among the circuits included in the ladder program, a self-holding circuit extraction unit that identifies and extracts a self-holding circuit based on input and output signal addresses included in the circuit;
A trace target setting unit that sets a signal address used in the self-holding circuit extracted by the self-holding circuit extraction unit as a trace target;
A trace result display unit for outputting a display result of the sequence control device tracing the signal address to be traced set by the trace target setting unit;
A ladder program display device comprising:
ことを特徴とする請求項1に記載のラダープログラム表示装置。 The self-holding circuit extraction unit identifies the circuit as a self-holding circuit when the circuit includes an input and an output of the same signal address;
The ladder program display device according to claim 1.
前記トレース結果表示部は、前記トレース結果記憶部に記憶された過去のトレースの結果と、現在のトレースの結果とを比較することで、過去のトレースの結果と現在のトレースの結果とに差異があることを検出し、前記過去のトレースの結果と前記現在のトレースの結果との差異が検出された信号アドレスが把握できるように表示する、
ことを特徴とする請求項1または2に記載のラダープログラム表示装置。 A trace result storage unit for storing a trace result by the sequence control device;
The trace result display unit compares the past trace result stored in the trace result storage unit with the current trace result, so that there is a difference between the past trace result and the current trace result. Detecting that there is a signal address where a difference between the result of the past trace and the result of the current trace is detected is displayed.
The ladder program display device according to claim 1 or 2.
ことを特徴とする請求項3に記載のラダープログラム表示装置。 The trace result display unit highlights the display related to the signal address where the difference is detected, thereby grasping the signal address where the difference between the past trace result and the current trace result is detected. To
The ladder program display device according to claim 3.
ことを特徴とする請求項3に記載のラダープログラム表示装置。 The trace result display unit displays a difference between the past trace result and the current trace result by displaying the result so that the past trace result and the current trace result can be compared. To be able to know the signal address
The ladder program display device according to claim 3.
ことを特徴とする請求項1〜5のいずれか1つに記載のラダープログラム表示装置。 Within the signal address set as the trace target by the trace target setting unit, the range of the signal address to be traced can be limited,
The ladder program display device according to any one of claims 1 to 5.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016012314A JP2017134493A (en) | 2016-01-26 | 2016-01-26 | Ladder program display device with automatic tracing function for self-holding circuit of ladder program |
DE102017000477.3A DE102017000477A1 (en) | 2016-01-26 | 2017-01-19 | Ladder program display device with automatic tracking function for self-holding circuit of the ladder program |
CN201710062919.7A CN106997199A (en) | 2016-01-26 | 2017-01-25 | Trapezoid program display device |
US15/414,790 US20170212798A1 (en) | 2016-01-26 | 2017-01-25 | Ladder program display device having automatic trace function for self-holding circuit of ladder program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016012314A JP2017134493A (en) | 2016-01-26 | 2016-01-26 | Ladder program display device with automatic tracing function for self-holding circuit of ladder program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2017134493A true JP2017134493A (en) | 2017-08-03 |
Family
ID=59295664
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016012314A Pending JP2017134493A (en) | 2016-01-26 | 2016-01-26 | Ladder program display device with automatic tracing function for self-holding circuit of ladder program |
Country Status (4)
Country | Link |
---|---|
US (1) | US20170212798A1 (en) |
JP (1) | JP2017134493A (en) |
CN (1) | CN106997199A (en) |
DE (1) | DE102017000477A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6773732B2 (en) * | 2018-08-03 | 2020-10-21 | ファナック株式会社 | Trace device |
JP6795568B2 (en) * | 2018-11-07 | 2020-12-02 | ファナック株式会社 | Tracer and programmable controller |
JP7021146B2 (en) * | 2019-04-01 | 2022-02-16 | ファナック株式会社 | Ladder display device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS60218117A (en) * | 1984-04-13 | 1985-10-31 | Fuji Electric Co Ltd | Operation state monitoring device of programmable controller |
JPH02214904A (en) * | 1989-02-16 | 1990-08-27 | Fuji Electric Co Ltd | Working state monitor device for programmable controller |
JPH07160312A (en) * | 1993-12-08 | 1995-06-23 | Hitachi Ltd | Programming device of programmable controller |
JP2001202107A (en) * | 2000-01-18 | 2001-07-27 | Denso Corp | Method for checking ladder sequence circuit |
JP2007280378A (en) * | 2006-03-15 | 2007-10-25 | Omron Corp | Programmable controller system |
WO2014167726A1 (en) * | 2013-04-12 | 2014-10-16 | 三菱電機株式会社 | Programmable controller peripheral device and debug assistance program |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140304551A1 (en) * | 2012-12-17 | 2014-10-09 | Mitsubishi Electric Corporation | Program analysis supporting device and control device |
US9600385B2 (en) * | 2014-02-25 | 2017-03-21 | Arrow Devices Pvt Ltd | Analyzing behavior of a device under test |
-
2016
- 2016-01-26 JP JP2016012314A patent/JP2017134493A/en active Pending
-
2017
- 2017-01-19 DE DE102017000477.3A patent/DE102017000477A1/en not_active Withdrawn
- 2017-01-25 CN CN201710062919.7A patent/CN106997199A/en active Pending
- 2017-01-25 US US15/414,790 patent/US20170212798A1/en not_active Abandoned
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS60218117A (en) * | 1984-04-13 | 1985-10-31 | Fuji Electric Co Ltd | Operation state monitoring device of programmable controller |
JPH02214904A (en) * | 1989-02-16 | 1990-08-27 | Fuji Electric Co Ltd | Working state monitor device for programmable controller |
JPH07160312A (en) * | 1993-12-08 | 1995-06-23 | Hitachi Ltd | Programming device of programmable controller |
JP2001202107A (en) * | 2000-01-18 | 2001-07-27 | Denso Corp | Method for checking ladder sequence circuit |
JP2007280378A (en) * | 2006-03-15 | 2007-10-25 | Omron Corp | Programmable controller system |
WO2014167726A1 (en) * | 2013-04-12 | 2014-10-16 | 三菱電機株式会社 | Programmable controller peripheral device and debug assistance program |
Also Published As
Publication number | Publication date |
---|---|
US20170212798A1 (en) | 2017-07-27 |
DE102017000477A1 (en) | 2017-07-27 |
CN106997199A (en) | 2017-08-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20140304551A1 (en) | Program analysis supporting device and control device | |
US9740185B2 (en) | Peripheral device for programmable controller and debug support program | |
US10769049B2 (en) | Debugging support apparatus and debugging support method | |
JP2017134493A (en) | Ladder program display device with automatic tracing function for self-holding circuit of ladder program | |
WO2024098753A1 (en) | Abnormality detection method, apparatus and system, and host device and storage medium | |
US20180101159A1 (en) | Programmable logic controller, engineering tool, and engineering tool program | |
JPS58190784A (en) | Testing device for digital device and its test method | |
CN108594051B (en) | Automatic detection method and system for electrical equipment fault | |
JP6245429B2 (en) | Program development support apparatus and computer program | |
JP2009122936A (en) | Sequence program monitor device equipped with display function for abnormality research and programmable controller | |
JP2006072408A (en) | Facility control method, facility control device, and program for facility control | |
CN108681506B (en) | Pressure testing method and device | |
JP2009223714A (en) | Arithmetic circuit and failure analysis method of arithmetic circuit | |
CN109445877B (en) | Method for detecting same virtual machine used by multiple threads of game server | |
JP3692990B2 (en) | Numerical controller | |
US20210366437A1 (en) | Device state reproduction device, device state reproduction method, and storage medium | |
CN112748294B (en) | Automatic switching control method and test device for load of converter test bed | |
JP2572386B2 (en) | Fault diagnosis device | |
CN112748300A (en) | Test method, test device and test system for microwave equipment | |
JP6773732B2 (en) | Trace device | |
JPH0854922A (en) | Process controller | |
JP2001209415A (en) | Method of generating standard pattern for fault diagnosis and fault diagnosis equipment | |
JPH1091477A (en) | Control microcomputer device and maintenance tool for the same | |
JP2006202102A (en) | Simulation apparatus | |
CN116167724A (en) | Method, device, equipment and storage medium for realizing process automation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A871 | Explanation of circumstances concerning accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A871 Effective date: 20171204 |
|
A975 | Report on accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A971005 Effective date: 20171221 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20171226 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20171227 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20180313 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20180911 |