[go: up one dir, main page]

JP2011134061A - Programmable controller - Google Patents

Programmable controller Download PDF

Info

Publication number
JP2011134061A
JP2011134061A JP2009292355A JP2009292355A JP2011134061A JP 2011134061 A JP2011134061 A JP 2011134061A JP 2009292355 A JP2009292355 A JP 2009292355A JP 2009292355 A JP2009292355 A JP 2009292355A JP 2011134061 A JP2011134061 A JP 2011134061A
Authority
JP
Japan
Prior art keywords
communication
analysis
programmable controller
unit
storage unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009292355A
Other languages
Japanese (ja)
Inventor
Masayoshi Sudo
正義 須藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Industrial Equipment Systems Co Ltd
Original Assignee
Hitachi Industrial Equipment Systems Co 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 Hitachi Industrial Equipment Systems Co Ltd filed Critical Hitachi Industrial Equipment Systems Co Ltd
Priority to JP2009292355A priority Critical patent/JP2011134061A/en
Publication of JP2011134061A publication Critical patent/JP2011134061A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Programmable Controllers (AREA)

Abstract

【課題】通信の異常停止原因の究明作業負荷の軽減及び作業時間の短縮と異常検出の精度向上を実現するプログラマブルコントローラを提供する。
【解決手段】プログラマブルコントローラ1は、通信部2を介して送受信される通信パケットのヘッダ部とデータ部とのすべてを保存する第一の記憶部3と異常発生時にその記憶部3のデータを解析して原因を究明する解析部4を有する。異常発生時の直近の所定数の通信パケットの情報が記憶されるので、その記憶された情報に基づいて、解析部4が異常原因を究明する。
【選択図】図1
An object of the present invention is to provide a programmable controller capable of reducing the work load, shortening the work time, and improving the accuracy of abnormality detection.
A programmable controller includes a first storage unit that stores all of a header portion and a data portion of a communication packet transmitted and received via a communication unit, and analyzes data in the storage unit when an abnormality occurs. Thus, an analysis unit 4 is provided to investigate the cause. Since the information of the predetermined number of communication packets most recently at the time of occurrence of the abnormality is stored, the analysis unit 4 investigates the cause of the abnormality based on the stored information.
[Selection] Figure 1

Description

本発明は、プログラマブルコントローラ(以下、「PLC」という)と、イーサネット(登録商標)LANで接続されたPLC周辺の機器との間で生じた異常停止の原因を自動的に究明するPLCに関する。   The present invention relates to a PLC that automatically investigates the cause of an abnormal stop that occurs between a programmable controller (hereinafter referred to as “PLC”) and a peripheral device connected to the Ethernet (registered trademark) LAN.

図6(a)はアプリケーションプロトコルで遣り取りされる通信パケットの構成を示す概略図であり、制御情報によって構成されるヘッダ部11と、それに続くデータ部12とで構成される。PLCとPLC周辺の機器との間のデータ送受信において、ユーザが必要とする情報はデータ部12のみであるため、ヘッダ部11の情報は送信完了とともに破棄される。   FIG. 6A is a schematic diagram showing a configuration of a communication packet exchanged by the application protocol, and is composed of a header portion 11 constituted by control information and a data portion 12 subsequent thereto. In the data transmission / reception between the PLC and the PLC peripheral devices, the information required by the user is only the data portion 12, and therefore the information in the header portion 11 is discarded upon completion of transmission.

図6(b)は通信パケットのヘッダ部11の構成の一例を示す図である。ヘッダ部11には、パケット長13と、送信元アドレス14と、宛先アドレス15と、送信元ポート番号16と、宛先ポート番号17と、通信の通番であるシーケンス番号18と、受信したデータに対してどこまで受信できたのかを表す確認応答番号19と、パケット内のデータ部12の開始位置を表すヘッダ長20と、パケットの種別を表すコードビット21と、パケットの整合性を検査するためのチェックサム22との情報が含まれている。通信の異常停止が発生した場合には、異常停止直前に遣り取りされた通信パケットのヘッダ部11の情報を解析することが通信異常の原因究明に寄与する。   FIG. 6B is a diagram illustrating an example of the configuration of the header portion 11 of the communication packet. The header 11 includes a packet length 13, a source address 14, a destination address 15, a source port number 16, a destination port number 17, a sequence number 18 that is a communication serial number, and the received data. Confirmation number 19 indicating how far the packet has been received, header length 20 indicating the start position of data portion 12 in the packet, code bit 21 indicating the type of packet, and check for checking packet consistency Information with the thumb 22 is included. If an abnormal stop of communication occurs, analyzing the information in the header part 11 of the communication packet exchanged immediately before the abnormal stop contributes to investigation of the cause of the communication abnormality.

図7は通信の異常停止原因を究明するための従来の方法を示す概略図である。従来、通信の異常停止が発生した場合には、その原因を究明するために、PLC8とイーサネットLAN7で接続されたPLCの周辺機器9との間で遣り取りされる通信パケットを通信パケット取込装置10を使用して取り込み、異常停止時にその直前に遣り取りされたパケットのヘッダ部11の情報をユーザが解析を行っていた。通信パケット取込装置10はユーザが構成するシステムには含まれないことが多いため、異常停止発生後にその原因究明のためにシステム内に追加し、異常停止の再現を待ち、再現後に異常停止の原因となる要因が取り除かれるまでの間接続し続けることとなる。   FIG. 7 is a schematic view showing a conventional method for investigating the cause of abnormal communication stop. Conventionally, when an abnormal stop of communication occurs, in order to investigate the cause, a communication packet capturing device 10 transmits a communication packet exchanged between the PLC 8 and the peripheral device 9 of the PLC connected by the Ethernet LAN 7. The user has analyzed the information in the header portion 11 of the packet that was received immediately before the abnormal stop. Since the communication packet capturing device 10 is often not included in the system configured by the user, it is added to the system after the abnormal stop occurs to investigate the cause, waits for the abnormal stop to be reproduced, The connection will continue until the causal factor is removed.

複数台のPLCを含むネットワークと1台の開発支援装置で構成されており、通信障害時に開発支援装置が通信異常の原因究明を行うPLCシステムが提案されている(特許文献1、2)。開発支援装置は、区間分割による要因の絞り込み、又はルーティングテーブル解析による要因の絞り込みを行い、通信が正常な範囲と異常な範囲とを明確化した上でユーザに通知を行い、ユーザは絞り込まれた範囲で、通信経路の状態を確認することで、原因の究明に要する時間の短縮化を図っている。また、通信機器の運転状態等を示す多種類のデータを収集するPLCと、収集データを解析して基地局内機器の状態を診断する診断装置から成る通信施設の管理システムが提案されている(特許文献3)。   There has been proposed a PLC system that includes a network including a plurality of PLCs and one development support apparatus, and the development support apparatus investigates the cause of communication abnormality when a communication failure occurs (Patent Documents 1 and 2). The development support device narrows down the factors by section division or narrows down the factors by routing table analysis, clarifies the normal range and abnormal range of communication and notifies the user, and the user is narrowed down By checking the status of the communication path in the range, the time required for investigating the cause is shortened. There has also been proposed a communication facility management system comprising a PLC that collects various types of data indicating the operating state of communication equipment, and a diagnostic device that analyzes the collected data and diagnoses the state of equipment in the base station (patent). Reference 3).

特開2008−181572号公報JP 2008-181572 A 特開2006−277728号公報JP 2006-277728 A 特開2002−132995号公報JP 2002-132955 A

W・リチャード・スティーヴンス『詳解TCP/IP Vol.1プロトコル』、ピアソンエデュケーション、橘康雄、井上尚司訳、2000年W. Richard Stevens “Detailed TCP / IP Vol. 1 Protocol ”, Pearson Education, Yasuo Tachibana, Naoji Inoue, 2000

このような従来のやり方では、以下のような問題があった。即ち、異常発生後にシステム構成内に通信パケット取込装置を新たに追加し、異常再現時に原因の究明を行うことから即時性がない。異常現象の再現を待ってその原因の究明作業を実施するため、最初の異常現象発生時から原因究明作業開始までのタイムラグが生じてしまう。再現性の低い現象であった場合には、このタイムラグは1ヶ月以上に及ぶこともある。また、異常原因が究明され、その要因が取り除かれるまで、本来、システムには必要のない通信パケット取込装置などの通信監視装置を接続し続ける必要がある。   Such a conventional method has the following problems. That is, there is no immediacy because a communication packet capturing device is newly added in the system configuration after the occurrence of an abnormality and the cause is investigated at the time of reproducing the abnormality. Since the cause investigation work is carried out after the abnormal phenomenon is reproduced, there is a time lag from when the first abnormal phenomenon occurs until the cause investigation work starts. In the case of a phenomenon with low reproducibility, this time lag may extend over one month. Further, until the cause of the abnormality is investigated and the cause is removed, it is necessary to continue to connect a communication monitoring device such as a communication packet capturing device that is not originally required for the system.

ユーザが自分で通信パケットを解析するため、ユーザはアプリケーションプロトコルで遣り取りされる通信パケットの構成を理解していなければ判断できない。通信パケットの構成を理解していても、異常原因の解明のために多くの時間と手間を必要とする。また、通信異常の形態が多岐にわたるため、ノウハウを持ったユーザでないと異常原因の究明が難しい。   Since the user analyzes the communication packet by himself / herself, the user cannot make a determination unless he / she understands the configuration of the communication packet exchanged by the application protocol. Even if you understand the structure of the communication packet, it takes a lot of time and effort to elucidate the cause of the abnormality. In addition, since there are various forms of communication abnormality, it is difficult to investigate the cause of the abnormality unless the user has know-how.

本発明はこのような問題点を解決するためになされたものであり、原因究明のための作業負荷の軽減及び作業時間の短縮と通信パケットの欠落などによる通信順序の異常を自動的に検出することによる異常検出の精度向上を目的としている。   The present invention has been made to solve such problems, and automatically detects abnormalities in the communication sequence due to reduction of the work load for investigation of the cause, reduction of the work time, and loss of communication packets. The purpose is to improve the accuracy of abnormality detection.

この発明によるプログラマブルコントローラは、周辺機器を制御するための信号を含む通信パケットを送受信しながら前記周辺機器の制御を行うプログラマブルコントローラであって、前記通信パケットを保存する記憶部と、通信の異常停止時に前記記憶部に保存されている前記通信パケットを解析し、解析結果を基に異常停止原因を究明する解析部とを備えることを特徴としている。   A programmable controller according to the present invention is a programmable controller that controls the peripheral device while transmitting and receiving a communication packet including a signal for controlling the peripheral device, the storage unit storing the communication packet, and abnormal communication stop And an analysis unit that analyzes the communication packet stored in the storage unit and investigates the cause of the abnormal stop based on the analysis result.

このプログラマブルコントローラによれば、通信の異常停止時には前記記憶部に保存されている前記通信パケットを解析部で解析するので、異常停止の再現を待つ必要がなく、解析結果を基に異常停止原因を究明することができる。   According to this programmable controller, when the communication is abnormally stopped, the analysis unit analyzes the communication packet stored in the storage unit, so there is no need to wait for reproduction of the abnormal stop, and the cause of the abnormal stop can be determined based on the analysis result. Can be investigated.

このプログラマブルコントローラにおいて、前記記憶部は、前記通信パケットのログ解析に際してのログデータとして、異常停止直前の所定数の前記通信パケットのヘッダ部の情報、又はヘッダ部とデータ部の情報を保存することができる。異常停止の原因は異常停止直前の通信パケットの情報に隠れていると予想されるので、異常停止直前の所定数の前記通信パケットのヘッダ部の情報、又はヘッダ部とデータ部の情報を保存することで、異常停止の原因を十分な確度で究明可能と推測される。   In the programmable controller, the storage unit stores information on a header part of a predetermined number of the communication packets immediately before an abnormal stop, or information on a header part and a data part, as log data upon log analysis of the communication packet. Can do. Since the cause of the abnormal stop is expected to be hidden in the information of the communication packet immediately before the abnormal stop, the information of the header part of the predetermined number of the communication packets immediately before the abnormal stop or the information of the header part and the data part is stored. Therefore, it is estimated that the cause of the abnormal stop can be investigated with sufficient accuracy.

このプログラマブルコントローラにおいて、前記通信パケットを送受信する通信部を備えており、前記通信部は、前記通信の前記異常停止時に、前記記憶部3への前記通信パケットの保存を停止するとともに、前記解析部へ解析処理の開始要求を自動的に行うことができる。このように通信部の機能を備えることにより、通信の異常停止時には異常停止の原因究明を自動的に行うことができる。   The programmable controller includes a communication unit that transmits and receives the communication packet, and the communication unit stops storing the communication packet in the storage unit 3 and stops the analysis unit when the communication is abnormally stopped. It is possible to automatically request the start of analysis processing. By providing the function of the communication unit in this way, it is possible to automatically investigate the cause of the abnormal stop when the communication is abnormally stopped.

このプログラマブルコントローラにおいて、前記解析部で行われる解析の項目及び深さについてレベルが変更可能である。前記解析の前記レベルは、前記通信パケットのうち古いものから順にシーケンス番号と確認応答番号が正常な関係であるか否かを判定していくことにより、前記通信パケットの欠落の有無を解析する第1のレベルを含むことができる。また、前記解析の前記レベルは、前記第一のレベルよりもレベルが高く、通信の強制切断の有無に設定された第2レベルを含むことができる。   In this programmable controller, the level can be changed for the items and depth of analysis performed by the analysis unit. The level of the analysis is to determine whether or not the communication packet is missing by determining whether or not the sequence number and the acknowledgment number are in a normal relationship in order from the oldest of the communication packets. One level can be included. In addition, the level of the analysis may include a second level that is higher than the first level and set to whether or not communication is forcibly disconnected.

このプログラマブルコントローラにおいて、前記解析部がした解析結果を記憶する別の記憶部を備えることができる。また、前記解析部がした解析結果を表示する表示部を備えることができる。このような別の記憶部、表示部を備えることにより、ユーザに対して、通信パケットの異常や通信順序の異常等の異常停止の原因を、エラーコード等で容易に判断できるように資することができる。   The programmable controller may include another storage unit that stores the analysis result obtained by the analysis unit. Moreover, the display part which displays the analysis result which the said analysis part performed can be provided. By providing such a separate storage unit and display unit, it is possible to help the user to easily determine the cause of an abnormal stop, such as a communication packet error or a communication sequence error, using an error code or the like. it can.

本発明によれば、通信パケットを記憶部に保存しておき、通信の異常停止時に記憶部に保存されている前記通信パケットを解析部で解析して解析結果を基に異常停止原因を自動的に究明するので、異常原因究明のための作業負荷の軽減及び通信パケットの欠落などによる通信順序の異常検出の精度向上を見込むことができる。   According to the present invention, the communication packet is stored in the storage unit, and when the communication is abnormally stopped, the communication packet stored in the storage unit is analyzed by the analysis unit, and the cause of the abnormal stop is automatically determined based on the analysis result. Therefore, it is possible to reduce the workload for investigating the cause of the abnormality and to improve the accuracy of detecting the abnormality of the communication sequence due to the loss of the communication packet.

図1は、本発明の実施例1におけるプログラマブルコントローラの内部構成図である。FIG. 1 is an internal configuration diagram of a programmable controller in Embodiment 1 of the present invention. 図2は、本発明の実施例1にしたがって、解析部が実行する処理を示すフローチャートである。FIG. 2 is a flowchart showing processing executed by the analysis unit according to the first embodiment of the present invention. 図3は、本発明の実施例1のレベル1において解析部が参照するパケットデータの構成図である。FIG. 3 is a configuration diagram of packet data referred to by the analysis unit in level 1 of the first embodiment of the present invention. 図4は、本発明の実施例1にしたがって、解析部が実行する処理を示すフローチャートである。FIG. 4 is a flowchart showing processing executed by the analysis unit according to the first embodiment of the present invention. 図5は、本発明の実施例1のレベル2において解析部が参照するパケットデータの構成図である。FIG. 5 is a configuration diagram of packet data referred to by the analysis unit in level 2 of the first embodiment of the present invention. 図6は、アプリケーションプロトコルで遣り取りされる通信パケットの構成図である。FIG. 6 is a configuration diagram of communication packets exchanged by the application protocol. 図7は、通信の異常停止原因を究明するための従来方法を示す概略図である。FIG. 7 is a schematic diagram showing a conventional method for investigating the cause of abnormal communication stop.

以下、本発明を実施するための形態について図1〜図5の図面を基に説明する。なお、これらの図面と実施例は本発明の一実施形態を説明するための図面と実施例であって、これらの図面と実施例によって本発明が限定されるものではない。   Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings of FIGS. These drawings and examples are drawings and examples for explaining one embodiment of the present invention, and the present invention is not limited by these drawings and examples.

図1は、本発明の実施例1におけるプログラマブルコントローラ(PLC)の内部構成図である。図1において、本発明によるPLC1は、PLC1がイーサネットLAN7を介して図示しない他の装置と通信をする通信部2、通信パケットのヘッダ部11とデータ部12とのすべてを保存する第一の記憶部3、第一の記憶部3に格納されたパケットデータを用いて通信の停止原因を解析する解析部4を備えている。また、PLC1は、第一の記憶部3に格納されたパケットデータや解析部4において得られた解析結果などを表示する表示部5、解析部4において得られた解析結果をコード化して格納する第二の記憶部6を備えている。なお、第一の記憶部3と第二の記憶部6は、図1では異なるメモリ上に配置されているが、同一メモリ上に配置されていてもよい。   FIG. 1 is an internal configuration diagram of a programmable controller (PLC) in Embodiment 1 of the present invention. In FIG. 1, the PLC 1 according to the present invention is a first storage that stores all of the communication unit 2 that communicates with another device (not shown) via the Ethernet LAN 7 and the header unit 11 and the data unit 12 of the communication packet. 3 and an analysis unit 4 that analyzes the cause of communication stoppage using packet data stored in the first storage unit 3. The PLC 1 also encodes and stores the analysis results obtained in the display unit 5 and the analysis unit 4 that display packet data stored in the first storage unit 3 and the analysis results obtained in the analysis unit 4. A second storage unit 6 is provided. In addition, although the 1st memory | storage part 3 and the 2nd memory | storage part 6 are arrange | positioned on a different memory in FIG. 1, you may arrange | position on the same memory.

解析部4で実行される解析処理に対して、ユーザは解析レベルを設定することができる。解析レベルとしてはレベル0〜5のような表現が考えられる。レベルの数字が大きくなるにしたがって解析項目数が多くなり、又は解析の深さを深くしたよりきめの細かい解析が実行されることになる。   The user can set an analysis level for the analysis process executed by the analysis unit 4. As the analysis level, expressions such as levels 0 to 5 can be considered. As the level number increases, the number of analysis items increases, or finer analysis with a deeper analysis depth is executed.

このような特徴を備えた本発明の実施例において、解析レベルがレベル2であり、その解析項目は通信パケットの欠落(レベル1)と強制切断の有無(レベル2)である例としてPLCの作動について、図2及び図4のフローチャートを用いて詳細を説明する。   In the embodiment of the present invention having such a feature, the analysis level is level 2, and the analysis items are a communication packet loss (level 1) and presence / absence of forced disconnection (level 2). Will be described in detail with reference to the flowcharts of FIGS.

まず、PLCと周辺機器とが通信している間、その通信パケットのヘッダ部11及びデータ部12を第一の記憶部3へ保存していく。このとき第一の記憶部3には直近の所定数の前記通信パケットが保存される(S1)。通信が停止すると、通信部2から第一の記憶部3への前記通信パケットの保存を停止し、通信部2は解析部4へ解析処理の開始要求を発行する。また、解析処理の開始要求はユーザが直接入力してもよい。前記開始要求を受けた解析部4は第一の記憶部3に保存された通信パケットデータを用いて解析処理を実行する。   First, while the PLC and the peripheral device are communicating, the header part 11 and the data part 12 of the communication packet are stored in the first storage part 3. At this time, the first predetermined number of the communication packets are stored in the first storage unit 3 (S1). When the communication is stopped, the storage of the communication packet from the communication unit 2 to the first storage unit 3 is stopped, and the communication unit 2 issues an analysis process start request to the analysis unit 4. Also, the user may directly input the analysis process start request. Upon receiving the start request, the analysis unit 4 executes analysis processing using the communication packet data stored in the first storage unit 3.

解析処理の開始要求がある(S2)と、解析部4は、レベル1としてS3の処理を実行する。S3は第一の記憶部3に保存された通信パケットのうち古いものから順にシーケンス番号18と確認応答番号19が正常な関係であるか否かを判定していく処理である。   When there is a request to start the analysis process (S2), the analysis unit 4 executes the process of S3 as level 1. S3 is a process of determining whether or not the sequence number 18 and the acknowledgment number 19 are in a normal relationship in order from the oldest communication packet stored in the first storage unit 3.

この判定処理について図3を参照して説明する。図3はレベル1において解析部4が参照するパケットデータの構成図の例であり、ここで注目した例は、第一の記憶部3に保存された通信パケットデータにおいて、S3で判定するシーケンス番号18及び確認応答番号19の関係を表すために必要となる通信順序23と、送信元アドレス14と、送信元ポート番号16と、宛先アドレス15と、宛先ポート番号17と、コードビット21(図6(b))から得られるパケット種別24と、シーケンス番号18と、確認応答番号19と、パケット長13とヘッダ長20(図6(b))とから算出できるデータサイズ25とから成っている。   This determination process will be described with reference to FIG. FIG. 3 is an example of a configuration diagram of packet data referred to by the analysis unit 4 at level 1. The example noted here is the sequence number determined in S3 in the communication packet data stored in the first storage unit 3. 18 and the acknowledgment number 19 required to express the relationship, the transmission source address 14, the transmission source port number 16, the transmission destination address 15, the transmission destination port number 17, and the code bit 21 (FIG. 6). The packet type 24 obtained from (b)), the sequence number 18, the acknowledgment number 19, and the data size 25 that can be calculated from the packet length 13 and the header length 20 (FIG. 6B).

通信順序23が1番である通信パケット(以下、「1番」という)に注目すると、シーケンス番号18は「5」であり、確認応答番号19は「1」である。また、1番のパケット種別24は「送信」であり、そのデータサイズ25は「10」となっている。1番に対する応答は、通信順序23が2番の通信パケット(以下、「2番」という)である。1番の応答であることを示すために、2番のシーケンス番号18は1番の確認応答番号19と同じ「1」となる。さらに1番のデータを正常に受信したことを示すために、2番の確認応答番号19は、1番のシーケンス番号18である「5」にデータサイズ25である「10」を足した「15」となる。前述したS2では、このようなシーケンス番号18と確認応答番号19とデータサイズ25との関係が一意であることを利用して、パケットの欠落が発生していたか否かを判定する(S4)。   When attention is paid to a communication packet whose communication order 23 is No. 1 (hereinafter referred to as “No. 1”), the sequence number 18 is “5” and the confirmation response number 19 is “1”. The first packet type 24 is “transmission”, and its data size 25 is “10”. The response to No. 1 is a communication packet whose communication order 23 is No. 2 (hereinafter referred to as “No. 2”). In order to indicate that it is the first response, the second sequence number 18 is “1”, which is the same as the first confirmation response number 19. Further, in order to indicate that the first data has been normally received, the second confirmation response number 19 is “15” obtained by adding “10” which is the data size 25 to “5” which is the first sequence number 18. " In S2 described above, it is determined whether or not a packet has been lost by utilizing the unique relationship among the sequence number 18, the confirmation response number 19, and the data size 25 (S4).

S4でパケットの欠落が認められた場合には所定のエラーコードを第二の記憶部6に保存する(S5)と共に表示部5に前記エラーコードを表示して(S6)解析を終了する。S4でパケットの欠落が認められなかった場合には、未実行の項目の有無を判定し(S7)、未実行の項目がなければ終了し、未実行の項目があれば、次にレベル2として通信の強制切断が発生していたか否かの判定処理A(図4)を実行する。   When packet loss is recognized in S4, a predetermined error code is stored in the second storage unit 6 (S5) and the error code is displayed on the display unit 5 (S6), and the analysis is terminated. If no missing packet is recognized in S4, the presence / absence of an unexecuted item is determined (S7). If there is no unexecuted item, the process ends. A determination process A (FIG. 4) for determining whether or not a forced disconnection of communication has occurred is executed.

図5はレベル2において解析部4が参照するパケットデータの構成図であり、ここで注目した例は、第一の記憶部3に保存された通信パケットデータにおいて、通信順序23と、送信元アドレス14と、送信元ポート番号16と、宛先アドレス15と、宛先ポート番号17と、パケット種別24と、シーケンス番号18と、確認応答番号19と、データサイズ25とから成っている。   FIG. 5 is a configuration diagram of packet data referred to by the analysis unit 4 at level 2. The example noted here is the communication sequence 23 and the source address in the communication packet data stored in the first storage unit 3. 14, source port number 16, destination address 15, destination port number 17, packet type 24, sequence number 18, confirmation response number 19, and data size 25.

通信順序23が25番である通信パケット(以下、「25番」という)に注目すると、パケット種別24が「強制切断」である。この場合25番の宛先アドレス15が「192.168.0.1」である機器が通信不能状態に陥ったと考えることができ、これによって異常停止箇所の絞込みが可能となる。   When attention is paid to a communication packet whose communication order 23 is No. 25 (hereinafter referred to as “No. 25”), the packet type 24 is “forced disconnection”. In this case, it can be considered that the device whose destination address 15 of No. 25 is “192.168.0.1” has fallen into the communication disabled state, and thus it is possible to narrow down the abnormal stop points.

図4に示す処理Aにおいては、S10に示すように、通信の停止直前に第一の記憶手段に保存されていた通信パケットにて強制切断が発生していたか否かを判定する。即ち、S11の強制切断ありか否かの判定(S11)において、通信の強制切断が認められた場合には所定のエラーコードを第二の記憶部6に保存する(S12)と共に表示部5に前記エラーコードを表示して(S13)、解析を終了する。S11で通信の強制切断が認められなかった場合にも、処理Aとしては終了するが、引き続きチェックサム22の値が正常であるか否かなどの項目についてチェック処理を実行することが考えられる。   In process A shown in FIG. 4, as shown in S <b> 10, it is determined whether or not forced disconnection has occurred in the communication packet stored in the first storage unit immediately before the communication is stopped. That is, in the determination of whether or not there is a forced disconnection in S11 (S11), if the forced disconnection of communication is recognized, a predetermined error code is stored in the second storage unit 6 (S12) and displayed on the display unit 5 The error code is displayed (S13), and the analysis is terminated. Even if the forced disconnection of communication is not recognized in S11, the process A ends, but it is conceivable that the check process is continued for items such as whether or not the value of the checksum 22 is normal.

以上のように各解析項目に対してパケットデータの解析を実行し、異常停止と判断した場合には該当項目に対応したエラーコードを第二の記憶部6に保存すると共に表示部5に前記エラーコードを表示するため、ユーザは表示部5に表示されたエラーコードを見て、通信パケットの異常や通信順序の異常を容易に判断することができる。   As described above, the analysis of the packet data is executed for each analysis item, and when it is determined that the abnormal stop has occurred, the error code corresponding to the corresponding item is stored in the second storage unit 6 and the error is displayed on the display unit 5. Since the code is displayed, the user can easily determine whether the communication packet is abnormal or the communication sequence is abnormal by looking at the error code displayed on the display unit 5.

実施例1において解析部4で実行する解析手法の一端を示した。しかし、ユーザが通信パケットの解析において独自のノウハウを持っている場合も考えられる。そこで解析部4に保持された解析プログラムの項目にない解析をユーザが行いたい場合にも、表示部5から直接第一の記憶部3に格納されたデータを参照することによって外部機器を接続することなくユーザ独自のノウハウを生かした解析作業を実施することが可能となる。   One end of the analysis method executed by the analysis unit 4 in the first embodiment is shown. However, it is also conceivable that the user has unique know-how in analyzing communication packets. Therefore, even when the user wants to perform an analysis that is not included in the items of the analysis program held in the analysis unit 4, the external device is connected by referring to the data stored in the first storage unit 3 directly from the display unit 5. It is possible to carry out analysis work utilizing the user's unique know-how.

1 本発明のプログラマブルコントローラ(PLC) 2 通信部
3 第一の記憶部 4 解析部
5 表示部 6 第二の記憶部
7 イーサネットLAN 8 PLC
9 周辺機器 10 監視手段
11 ヘッダ部 12 データ部
13 パケット長 14 送信元アドレス
15 宛先アドレス 16 送信元ポート番号
17 宛先ポート番号 18 シーケンス番号
19 確認応答番号 20 ヘッダ長
21 コードビット 22 チェックサム
23 通信順序 24 パケット種別
25 データサイズ
DESCRIPTION OF SYMBOLS 1 Programmable controller (PLC) of this invention 2 Communication part 3 1st memory | storage part 4 Analysis part 5 Display part 6 2nd memory | storage part 7 Ethernet LAN 8 PLC
9 Peripheral device 10 Monitoring means 11 Header part 12 Data part 13 Packet length 14 Source address 15 Destination address 16 Source port number 17 Destination port number 18 Sequence number 19 Confirmation response number 20 Header length 21 Code bit 22 Checksum 23 Communication sequence 24 Packet type 25 Data size

Claims (8)

周辺機器を制御するための信号を含む通信パケットを送受信しながら前記周辺機器の制御を行うプログラマブルコントローラにおいて、
前記通信パケットを保存する記憶部と、通信の異常停止時に前記記憶部に保存されている前記通信パケットを解析し、解析結果を基に異常停止原因を究明する解析部とを備えること、
を特徴とするプログラマブルコントローラ。
In a programmable controller that controls the peripheral device while transmitting and receiving a communication packet including a signal for controlling the peripheral device,
A storage unit that stores the communication packet; and an analysis unit that analyzes the communication packet stored in the storage unit when communication is abnormally stopped and investigates the cause of the abnormal stop based on the analysis result;
Programmable controller characterized by
前記記憶部は、前記通信パケットのログ解析に際してのログデータとして、異常停止直前の所定数の前記通信パケットのヘッダ部の情報、又はヘッダ部とデータ部の情報を保存することを特徴とする請求項1に記載のプログラマブルコントローラ。   The storage unit stores information on a header part of a predetermined number of the communication packets immediately before an abnormal stop or information on a header part and a data part as log data upon log analysis of the communication packet. Item 12. The programmable controller according to item 1. 前記通信パケットを送受信する通信部を備えており、
前記通信部は、前記通信の前記異常停止時に、前記記憶部3への前記通信パケットの保存を停止するとともに、前記解析部へ解析処理の開始要求を自動的に行うことを特徴とする請求項1又は2に記載のプログラマブルコントローラ。
A communication unit for transmitting and receiving the communication packet;
The communication unit, when stopping the communication abnormally, stops storing the communication packet in the storage unit 3 and automatically requests the analysis unit to start an analysis process. The programmable controller according to 1 or 2.
前記解析部で行われる解析の項目及び深さについてレベルが変更可能であることを特徴とする請求項1〜3のいずれか一項に記載のプログラマブルコントローラ。   The programmable controller according to any one of claims 1 to 3, wherein the level of the items and depth of analysis performed by the analysis unit can be changed. 前記解析の前記レベルは、前記通信パケットのうち古いものから順にシーケンス番号と確認応答番号が正常な関係であるか否かを判定していくことにより、前記通信パケットの欠落の有無を解析する第1のレベルを含んでいることを特徴とする請求項4に記載のプログラマブルコントローラ。   The level of the analysis is to determine whether or not the communication packet is missing by determining whether or not the sequence number and the acknowledgment number are in a normal relationship in order from the oldest of the communication packets. 5. The programmable controller of claim 4, comprising one level. 前記解析の前記レベルは、前記第一のレベルよりもレベルが高く、通信の強制切断の有無に設定された第2レベルとを含むことを特徴とする請求項5に記載のプログラマブルコントローラ。   The programmable controller according to claim 5, wherein the level of the analysis includes a second level that is higher than the first level and is set to whether or not communication is forcibly disconnected. 前記解析部がした解析結果を記憶する別の記憶部を備えていることを特徴とする請求項1〜6のいずれか一項に記載のプログラマブルコントローラ。   The programmable controller according to claim 1, further comprising another storage unit that stores an analysis result obtained by the analysis unit. 前記解析部がした解析結果を表示する表示部を備えていることを特徴とする請求項1〜7のいずれか一項に記載のプログラマブルコントローラ。   The programmable controller according to any one of claims 1 to 7, further comprising a display unit that displays an analysis result obtained by the analysis unit.
JP2009292355A 2009-12-24 2009-12-24 Programmable controller Pending JP2011134061A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009292355A JP2011134061A (en) 2009-12-24 2009-12-24 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009292355A JP2011134061A (en) 2009-12-24 2009-12-24 Programmable controller

Publications (1)

Publication Number Publication Date
JP2011134061A true JP2011134061A (en) 2011-07-07

Family

ID=44346731

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009292355A Pending JP2011134061A (en) 2009-12-24 2009-12-24 Programmable controller

Country Status (1)

Country Link
JP (1) JP2011134061A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015001758A (en) * 2013-06-13 2015-01-05 オムロン株式会社 Information processing device, information processing device control method, and control program
JP2019197461A (en) * 2018-05-11 2019-11-14 オムロン株式会社 Analysis support device and analysis support method
WO2022004007A1 (en) * 2020-06-30 2022-01-06 日本電産株式会社 Error analysis device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015001758A (en) * 2013-06-13 2015-01-05 オムロン株式会社 Information processing device, information processing device control method, and control program
JP2019197461A (en) * 2018-05-11 2019-11-14 オムロン株式会社 Analysis support device and analysis support method
JP7192243B2 (en) 2018-05-11 2022-12-20 オムロン株式会社 Analysis support device and analysis support method
WO2022004007A1 (en) * 2020-06-30 2022-01-06 日本電産株式会社 Error analysis device

Similar Documents

Publication Publication Date Title
US9319284B2 (en) Operation delay monitoring method, operation management apparatus, and operation management program
CN101741637B (en) Method and device for diagnosing networks, in particular fieldbus systems
JP2009237725A (en) Monitoring system and monitoring server apparatus
JP2011134061A (en) Programmable controller
JP4697484B2 (en) PLC system
JP5029778B1 (en) Connection monitoring device and connection monitoring method
JP4616020B2 (en) Network monitoring program and network system
JP6612151B2 (en) Network equipment monitoring device
WO2019176386A1 (en) Control system, control method, and control program
JPWO2013014793A1 (en) Communication device
JP2011097226A (en) Network monitoring system
JP4922992B2 (en) Network log acquisition analysis system
JP6073211B2 (en) Server monitoring method and server monitoring system
WO2019142587A1 (en) Control device, control method, and control program
CN107995016B (en) Network fault processing method, device and system
JP5433219B2 (en) Cluster system
JP7622460B2 (en) Slave device, control method thereof, and communication anomaly location identification system
JP2008042470A (en) Network fault detecting method and network fault detection program
CN119094395B (en) LED sending card network port data anomaly detection method, device, equipment and medium
JP4810446B2 (en) Management system for managing communication device, communication device and management method thereof
JP2009038554A (en) Network communication apparatus
JPH0888672A (en) Intelligent communication protocol monitor
WO2014196078A1 (en) Programmable controller system and engineering tool
JP5573009B2 (en) Redundant call control server system, standby server call control confirmation method, program thereof, and program recording medium
JP4413758B2 (en) Monitoring device and program thereof