JP2010066901A - Log data acquisition system and programmable display unit - Google Patents

Log data acquisition system and programmable display unit Download PDF

Info

Publication number
JP2010066901A
JP2010066901A JP2008231242A JP2008231242A JP2010066901A JP 2010066901 A JP2010066901 A JP 2010066901A JP 2008231242 A JP2008231242 A JP 2008231242A JP 2008231242 A JP2008231242 A JP 2008231242A JP 2010066901 A JP2010066901 A JP 2010066901A
Authority
JP
Japan
Prior art keywords
log data
storage area
write address
data acquisition
address
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.)
Granted
Application number
JP2008231242A
Other languages
Japanese (ja)
Other versions
JP5241388B2 (en
Inventor
Kengo Koara
健吾 小荒
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2008231242A priority Critical patent/JP5241388B2/en
Publication of JP2010066901A publication Critical patent/JP2010066901A/en
Application granted granted Critical
Publication of JP5241388B2 publication Critical patent/JP5241388B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide a log data acquisition system to be applied to various control equipment. <P>SOLUTION: The log data acquisition system includes: control equipment having a log data storage region, an address storage region for storing the latest write address of log data to the log data storage region, and a control equipment control part for collecting log data on controlled equipment, successively writing the log data in the log data storage region, and writing the current write address of the log data in the address storage region; and a programmable display unit having a storage region for storing the log data and a logging part for acquiring a predetermined amount of the log data from the log data storage region based on the write address stored in the address storage region, and writing the log data in the storage region. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、被制御機器に関するログデータを収集する制御機器と、該制御機器からログデータを取得するプログラマブル表示器と、を有するログデータ取得システムおよびプログラマブル表示器に関するものである。   The present invention relates to a log data acquisition system and a programmable display that include a control device that collects log data related to a controlled device, and a programmable display that acquires log data from the control device.

従来、サーボモータ等の被制御機器を制御し、該被制御機器に関する情報をサンプリングする制御機器からの情報をプログラマブル表示器でリアルタイム表示する場合、制御機器とプログラマブル表示器との間は通信により値を取得する必要があるため、通信速度がボトルネックとなってサンプリング間隔はせいぜい100msオーダーまでしか縮めることができない。一方、被制御機器の動作を分析するためには、数ms以下の高速なサンプリング間隔でログデータを収集する必要があった。   Conventionally, when a controlled device such as a servo motor is controlled and information about the controlled device that samples the controlled device is displayed in real time on a programmable display, the value between the control device and the programmable display is communicated. Since the communication speed becomes a bottleneck, the sampling interval can be reduced to the order of 100 ms at most. On the other hand, in order to analyze the operation of the controlled device, it is necessary to collect log data at a high sampling interval of several ms or less.

これに関連し、例えば特許文献1によれば、下位の機器は、高速なサンプリング間隔で収集したログデータを蓄積するバッファ領域を備え、このサンプリング間隔よりも長い間隔の周期で上位の装置に対してバッファ領域に蓄積されたログデータを送信することによって、通常は通信速度の関係で上位の装置が収集できないような短周期で変動するログデータを収集できるようにする技術が開示されている。   In this connection, for example, according to Patent Document 1, the lower device includes a buffer area for accumulating log data collected at a high-speed sampling interval, and with respect to a host device at a cycle longer than the sampling interval. In other words, a technique has been disclosed in which log data accumulated in the buffer area can be collected so as to collect log data that fluctuates in a short cycle that normally cannot be collected by a host device due to the communication speed.

特開平1−266684号公報Japanese Patent Laid-Open No. 1-266684

一般的に、プログラマブル表示器は、特定の制御機器のみを接続対象としているわけではなく、例えば同じメーカが保有する他の制御機器や、さらには異なるメーカにより提供される制御機器などとも接続される。したがって、制御機器からプログラマブル表示器にログデータを収集する技術には、様々な制御機器に適用できるような汎用性が求められる。   In general, a programmable display is not limited to a specific control device. For example, the programmable display is connected to another control device owned by the same manufacturer or a control device provided by a different manufacturer. . Therefore, the technique for collecting log data from the control device to the programmable display is required to be versatile so that it can be applied to various control devices.

しかしながら、特許文献1の技術によれば、下位の機器と上位の機器とがセットになった専用の構成を有するようにしており、プログラマブル表示器と「任意の」制御機器とからなるシステムへの適用のための汎用的な解決策については開示されていない。また、特許文献1の技術によれば、下位の機器は上位の機器に対してログデータを送信するアクティブな動作を行うが、一般的に、制御機器はプログラマブル表示器に対してアクティブな動作を行うことができない。したがって、特許文献1の技術を制御機器とプログラマブル表示器とのシステムに適用することはできない。   However, according to the technique of Patent Document 1, a low-order device and a high-order device have a dedicated configuration, and a system including a programmable display and an “arbitrary” control device is used. No universal solution for application is disclosed. Further, according to the technique of Patent Document 1, the lower device performs an active operation of transmitting log data to the upper device, but in general, the control device performs an active operation on the programmable display. I can't do it. Therefore, the technique of Patent Document 1 cannot be applied to a system of a control device and a programmable display.

本発明は、上記に鑑みてなされたものであって、プログラマブル表示器が制御機器からログデータを取得するログデータ取得システムにおいて、制御機器の適用範囲が広いログデータ取得システムおよびプログラマブル表示器を得ることを目的とする。   The present invention has been made in view of the above, and in a log data acquisition system in which a programmable display device acquires log data from a control device, a log data acquisition system and a programmable display device having a wide application range of the control device are obtained. For the purpose.

上述した課題を解決し、目的を達成するために、本発明は、リングバッファ構成のログデータ格納領域と、前記ログデータ格納領域に対するログデータの最新の書き込みアドレスが記憶されるアドレス記憶領域と、被制御機器に関するログデータを収集して前記ログデータ格納領域に順次書き込むとともに、前記ログデータの現在の書き込みアドレスを前記アドレス記憶領域に書き込むログデータ収集制御部とを有する制御機器と、ログデータを蓄積する記憶領域と、前記アドレス記憶領域に記憶されている書き込みアドレスに基づいて前記ログデータ格納領域からログデータを所定量取得して前記記憶領域に書き込むロギング処理部と、前記記憶領域に蓄積されているログデータを表示部に表示させる表示処理部と、を有するプログラマブル表示器と、を備えることを特徴とする。   In order to solve the above-described problems and achieve the object, the present invention provides a log data storage area having a ring buffer configuration, an address storage area in which the latest write address of log data to the log data storage area is stored, Collecting log data related to the controlled device and sequentially writing it to the log data storage area, and having a log data collection control unit for writing the current write address of the log data to the address storage area, and log data A storage area to be accumulated, a logging processing unit that obtains a predetermined amount of log data from the log data storage area based on a write address stored in the address storage area, and writes the log data to the storage area, and is accumulated in the storage area And a display processing unit for displaying the log data on the display unit. Characterized in that it comprises a display device.

この発明によれば、プログラマブル表示器が制御機器からログデータを取得するログデータ取得システムにおいて、制御機器の適用範囲が広いログデータ取得システムおよびプログラマブル表示器を得ることができる。   According to this invention, in a log data acquisition system in which a programmable display acquires log data from a control device, it is possible to obtain a log data acquisition system and a programmable display with a wide application range of the control device.

以下に、本発明にかかるログデータ取得システムの実施の形態を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。   Embodiments of a log data acquisition system according to the present invention will be described below in detail with reference to the drawings. Note that the present invention is not limited to the embodiments.

実施の形態1.
本実施の形態1においては、プログラマブル表示器の接続対象の制御機器として、被制御機器のログデータを収集できる制御装置で、かつメモリ領域を有し、使用者(ユーザ)がこのメモリ領域の使用方法をプログラミングによりコンフィギュアラブルに設定できる制御装置を想定している。
Embodiment 1 FIG.
In this Embodiment 1, it is a control apparatus which can collect the log data of a controlled apparatus as a control apparatus of a programmable display connection object, has a memory area, and a user (user) uses this memory area. A control device that can be configured in a configurable manner by programming is assumed.

例えば、プログラマブルコントローラ(以降、単にPLCという)は、デバイスの状態を示すデータを格納するデバイスメモリ領域を有する。使用者は、デバイスメモリ領域に格納されたデータを用いてPLCに制御動作させるシーケンスプログラムをプログラミングする。すなわち、使用者は、プログラミングによりデバイスメモリ領域へのアクセスをある程度自由に設定できる。PLCを用いてサーボモータを制御する場合、PLCのバスに数値制御装置などサーボモータの制御を行うユニットを接続し、該ユニットをシーケンスプログラムを用いて制御することによってサーボモータの制御を行う。該ユニットは例えばモータの現在位置などサーボモータに関する状態を示すデバイスメモリをPLCとは別に有しており、PLCは、PLCとプログラマブル表示器との間の通信速度に比して高速なバスを介して該ユニットのデバイスメモリにアクセスしてサーボモータの状態を知ることができる。すなわち、PLCは、サーボモータに関するログデータを高速なサンプリング間隔で収集することができる。したがって、サーボモータと該サーボモータの制御を行うユニットとを合わせて被制御機器とし、PLCを制御機器と考えることもできる。また、サーボモータを制御するユニットとPLCとを合わせたシステム(PLCシステム)を制御機器と考えることもできる。   For example, a programmable controller (hereinafter simply referred to as “PLC”) has a device memory area for storing data indicating the state of the device. The user programs a sequence program that causes the PLC to perform a control operation using data stored in the device memory area. That is, the user can freely set the access to the device memory area to some extent by programming. When a servo motor is controlled using a PLC, a servo motor control unit such as a numerical controller is connected to the PLC bus, and the servo motor is controlled by controlling the unit using a sequence program. The unit has a device memory that indicates the status related to the servo motor, such as the current position of the motor, separately from the PLC. The PLC is connected via a high-speed bus compared to the communication speed between the PLC and the programmable display. By accessing the device memory of the unit, the state of the servo motor can be known. In other words, the PLC can collect log data related to the servo motor at a high sampling interval. Therefore, the servo motor and the unit for controlling the servo motor can be combined into a controlled device, and the PLC can be considered as a control device. A system (PLC system) that combines a unit that controls a servo motor and a PLC (PLC system) can also be considered as a control device.

まず、実施の形態1のログデータ取得システムの概要を説明する。図1は、本実施の形態1のログデータ取得システムの概要を説明する図である。図1においては、制御機器としてPLCを使用している。   First, an overview of the log data acquisition system according to the first embodiment will be described. FIG. 1 is a diagram for explaining the outline of the log data acquisition system according to the first embodiment. In FIG. 1, a PLC is used as a control device.

PLCは、図示するように、PLC内に有するデバイスメモリの一部をログデータを格納するバッファ(ログデータ格納領域)として用い、該ログデータ格納領域の連続したデバイスに時系列順に、被制御機器のログデータを高速なサンプリング間隔で一件ずつ収集して格納する。ここでは、温度、圧力、および位置からなる一件のログデータを20ワードの領域に格納している。ログデータは、ログデータを格納する位置を示す書き込みアドレスが示す位置に書き込まれる。書き込みアドレスは、一件のログデータが書き込まれる度に20ワード分インクリメントされるが、インクリメントによりログデータ用のバッファからオーバーフローした場合、該バッファの先頭アドレスに移動するようにプログラムされている。すなわち、ログデータ用のバッファは、リングバッファとして用いられる。   As shown in the figure, the PLC uses a part of the device memory included in the PLC as a buffer (log data storage area) for storing log data, and the devices to be controlled are arranged in time-series order in continuous devices in the log data storage area. Log data is collected and stored one by one at high sampling intervals. Here, one piece of log data consisting of temperature, pressure, and position is stored in a 20-word area. The log data is written at a position indicated by a write address indicating a position where the log data is stored. The write address is incremented by 20 words each time a piece of log data is written, but is programmed to move to the top address of the buffer when the log data overflows due to the increment. That is, the log data buffer is used as a ring buffer.

通常、PLCなどの制御機器が有する使用者が自由に使えるデバイスメモリの容量は、一般的なコンピュータのRAMやハードディスクなどに比して小さく、その限られた容量を被制御機器に対する各種の制御動作にも使用されるので、ログデータ用のバッファはさらに小さな容量となる。この小さな容量がログデータで一杯になったときにプログラマブル表示器がログデータを取得するようにすると、プログラマブル表示器によりログデータ取得中はバッファ内のデータを書き換えないように排他処理をすることとなる。そうすると、制御機器は、プログラマブル表示器によるログデータ取得中は、被制御機器に関するログデータを収集できないこととなる。   Usually, the device memory capacity of a control device such as a PLC that can be freely used by a user is smaller than that of a general computer RAM or hard disk, and the limited capacity can be used for various control operations on the controlled device. Therefore, the log data buffer has a smaller capacity. If the programmable display gets log data when this small capacity is full of log data, exclusive processing is performed so that the data in the buffer is not rewritten during log data acquisition by the programmable display. Become. Then, the control device cannot collect the log data related to the controlled device while acquiring the log data by the programmable display.

そこで、プログラマブル表示器は、書き込みアドレスを監視し、予め設定された件数のログデータを一回の通信でまとめて取得する処理を、該設定された件数分PLCのログデータ用のバッファに溜まる度に行う。一回の通信で取得される設定件数分のログデータの容量は、バッファの容量に比して小さい容量になるように設定し、PLCはプログラマブル表示器がログデータを取得中でも被制御機器のログデータを収集してログデータ格納領域に書き込めるようにする。例えば図示するようにD10160の書き込みアドレスから20件分のログデータを取得される場合、D10160に書き込まれているログデータを先頭として20件分のログデータが順番に取得される。   Therefore, the programmable display unit monitors the write address, and collects a predetermined number of log data in a single communication and collects the set number of log data in the PLC log data buffer for the set number of times. To do. The log data capacity for the number of settings acquired in one communication is set to be smaller than the buffer capacity, and the PLC logs the controlled device even while the programmable display is acquiring log data. Collect data so that it can be written to the log data storage area. For example, as shown in the figure, when 20 log data items are acquired from the write address of D10160, the 20 log data items are sequentially acquired starting from the log data written in D10160.

プログラマブル表示器は前記するPLCのデバイスメモリ領域に比して大容量のRAMなどにより構成されるログバッファを備え、一回の通信で取得した20件分のログデータを該ログバッファに格納し、表示部に、前回までに取得したログデータとともにログデータの内容を時系列に並べたヒストリカルトレンドを表示する。   The programmable display device includes a log buffer composed of a large-capacity RAM or the like compared to the device memory area of the PLC, and stores 20 log data items acquired in one communication in the log buffer. A historical trend in which the contents of the log data are arranged in time series together with the log data acquired up to the previous time is displayed on the display unit.

以上のように、本実施の形態1によれば、使用者が制御機器に対してデバイスメモリ領域の一部にログデータ用のリングバッファを設定し、書き込みアドレスを参照できるようにするようにするだけで、プログラマブル表示器は短周期のサンプリング間隔のログデータを取得することができる。すなわち、本実施の形態1は、特許文献1に開示される専用構成を必要とするログ取得技術の場合よりも範囲の広い制御機器に対して適用することができるようになっている。また、特許文献1に開示されるログ取得技術とは異なり、上位の装置であるプログラマブル表示器側から下位の装置である制御機器に対してログデータを取得しにいく仕組みとなっている。   As described above, according to the first embodiment, the user sets a ring buffer for log data in a part of the device memory area for the control device so that the write address can be referred to. As a result, the programmable display can acquire log data of a sampling interval of a short period. That is, the first embodiment can be applied to a control device having a wider range than the case of the log acquisition technology that requires the dedicated configuration disclosed in Patent Document 1. Further, unlike the log acquisition technique disclosed in Patent Document 1, the system is configured to acquire log data from a programmable display device that is a higher-level device to a control device that is a lower-level device.

次に、このような特徴を有する本実施の形態1のログデータ取得システムについて、詳細に説明する。図2は、本実施の形態1のログデータ取得システムの構成を示す図である。図2において、本実施の形態1のログデータ取得システム1000は、プログラマブル表示器(以降、単に表示器)100と制御機器200とを有する。   Next, the log data acquisition system according to the first embodiment having such characteristics will be described in detail. FIG. 2 is a diagram illustrating a configuration of the log data acquisition system according to the first embodiment. In FIG. 2, the log data acquisition system 1000 according to the first embodiment includes a programmable display (hereinafter simply referred to as a display) 100 and a control device 200.

制御機器200は、使用者による設定の自由度を有するデバイスメモリ領域210およびログデータ収集プログラム220を有する。デバイスメモリ領域210には、ログデータ収集プログラム220により収集される被制御機器(図示せず)に関するログデータが一件毎に書き込まれるログデータ格納領域であるリングバッファ211が設けられている。デバイスメモリ領域210は、さらに、リングバッファ211における現在の書き込み位置を示す書き込みアドレス212を記憶するように設定されている。   The control device 200 includes a device memory area 210 having a degree of freedom of setting by a user and a log data collection program 220. The device memory area 210 is provided with a ring buffer 211 that is a log data storage area in which log data relating to controlled devices (not shown) collected by the log data collection program 220 is written on a case-by-case basis. The device memory area 210 is further set to store a write address 212 indicating the current write position in the ring buffer 211.

すなわち、ログデータ収集プログラム220は、書き込みアドレス212に格納されるオフセットアドレスが指す位置に一件のログデータを書き込む。そして、ログデータ収集プログラム220は、リングバッファ211に一件のログデータを書き込むたびに書き込みアドレス212をログデータ一件分の容量だけインクリメントする更新を行う。ログデータ収集プログラム220は、書き込みアドレス212の値がリングバッファ211の最後尾のアドレスからオーバーフローするとき、書き込みアドレス212をリングバッファ211の先頭アドレスに移動させる。このような動作を行うログデータ収集プログラム220のプログラムおよびリングバッファ211の確保は、制御機器200の使用者により行われる。   That is, the log data collection program 220 writes a single piece of log data at the position indicated by the offset address stored in the write address 212. The log data collection program 220 updates the write address 212 by the capacity of one log data each time one log data is written to the ring buffer 211. When the value of the write address 212 overflows from the last address of the ring buffer 211, the log data collection program 220 moves the write address 212 to the start address of the ring buffer 211. The log data collection program 220 and the ring buffer 211 that perform such operations are secured by the user of the control device 200.

表示器100と制御機器200との間は通信手段により接続されており、表示器100は該通信手段を介してデバイスメモリ領域210にアクセスすることができるようになっている。通信手段の種類は特に限定されるものではなく、例えば、RS(Recommended Standard)−232、RS−422などのシリアル通信や、USB(Universal Serial Bus)、Ethernet(登録商標)などであってよい。また、無線方式であってもよい。   The display device 100 and the control device 200 are connected by communication means, and the display device 100 can access the device memory area 210 via the communication means. The type of communication means is not particularly limited, and may be serial communication such as RS (Recommended Standard) -232, RS-422, USB (Universal Serial Bus), Ethernet (registered trademark), or the like. Further, a wireless system may be used.

表示器100は、入力手段付き表示部110と、ユーザデータ処理部120と、一時記憶メモリ領域130と、不揮発性メモリ領域140と、を有する。   The display device 100 includes a display unit 110 with input means, a user data processing unit 120, a temporary storage memory area 130, and a nonvolatile memory area 140.

入力手段付き表示部110は、典型的にはタッチパネルディスプレイであり、表示器100が備える各部からの出力信号に基づいて使用者が出力情報を視認可能なように出力するとともに、使用者からの入力を受け付ける装置である。ここでいう入力手段は、例えばタッチパネルのソフトスイッチであってもよいし、表示画面付近に設置されるハードスイッチであってもよい。   The display unit with input means 110 is typically a touch panel display, and outputs the output information so that the user can visually recognize the output information based on the output signals from the respective units included in the display device 100, and inputs from the user. It is a device that accepts. The input means here may be, for example, a soft switch of a touch panel or a hard switch installed near the display screen.

不揮発性メモリ領域140は、例えばフラッシュメモリやハードディスクなど、書き換え可能な不揮発性メモリにより構成され、表示器100が一般的なプログラマブル表示器として動作するための種々の設定情報(図示せず)を記憶するとともに、本実施の形態1にとって特に重要な事柄として、制御機器200から一度の通信で何件のログデータを取得するかを設定する取得実施件数設定141と、デバイスメモリ領域210におけるリングバッファ211の先頭アドレスであるリングバッファ先頭アドレス142と、リングバッファ211のサイズであるリングバッファサイズ143と、を記憶している。前記する種々の設定情報を含め、不揮発性メモリ領域140に格納されている各情報は、接続される制御機器200の設定に対応するように使用者により与えられる情報である。   The nonvolatile memory area 140 is configured by a rewritable nonvolatile memory such as a flash memory or a hard disk, and stores various setting information (not shown) for the display device 100 to operate as a general programmable display device. In addition, as important matters for the first embodiment, the acquisition execution number setting 141 for setting how many log data are acquired from the control device 200 by one communication, and the ring buffer 211 in the device memory area 210 are set. The ring buffer head address 142 which is the head address of the ring buffer and the ring buffer size 143 which is the size of the ring buffer 211 are stored. Each information stored in the nonvolatile memory area 140 including the various setting information described above is information given by the user so as to correspond to the setting of the connected control device 200.

一時記憶メモリ領域130は、例えばRAMなどで構成される、デバイスメモリ領域210に比して大容量のメモリ領域であって、リングバッファ211から取得したログデータを記憶するログバッファ132を備える。また、一時記憶メモリ領域130は、後述するユーザデータ処理部120が使用する前回取得時書き込みアドレス131を記憶する。   The temporary storage memory area 130 is a memory area having a capacity larger than that of the device memory area 210, which is configured by a RAM or the like, for example, and includes a log buffer 132 that stores log data acquired from the ring buffer 211. The temporary storage memory area 130 stores a previous acquisition write address 131 used by a user data processing unit 120 described later.

ユーザデータ処理部120は、表示器100全体の動作を制御する制御部であり、前記する不揮発性メモリ領域140に記憶されている種々の設定情報を使用してプログラマブル表示器としての動作を実現するほか、本実施の形態1にとって特に重要な事柄として、ログバッファ132に記憶されているログデータからヒストリカルトレンドを作成して入力手段付き表示部110に表示する表示処理部121と、不揮発性メモリ領域140に記憶されている前記する各情報および前回取得時オフセットアドレス131に基づき制御機器200のリングバッファ211にアクセスしてログデータを取得するロギング処理部122と、を有する。   The user data processing unit 120 is a control unit that controls the entire operation of the display device 100, and realizes the operation as a programmable display device using various setting information stored in the nonvolatile memory area 140 described above. In addition, as a particularly important matter for the first embodiment, a display processing unit 121 that creates a historical trend from log data stored in the log buffer 132 and displays the historical trend on the display unit with input means 110, and a nonvolatile memory area A logging processing unit 122 that accesses the ring buffer 211 of the control device 200 based on each of the information stored in 140 and the previously acquired offset address 131 to acquire log data.

ロギング処理部122は、ログデータ取得条件判定部123と、ログデータ取得部124と、を有する。   The logging processing unit 122 includes a log data acquisition condition determination unit 123 and a log data acquisition unit 124.

ログデータ取得部124は、ログデータ取得条件判定部123からのログデータ取得の指示に基づき、リングバッファ211の前回取得時書き込みアドレス131が示すアドレスから、取得実施件数設定140において設定されている件数のログデータを取得する。   Based on the log data acquisition instruction from the log data acquisition condition determination unit 123, the log data acquisition unit 124 starts from the address indicated by the previous acquisition write address 131 in the ring buffer 211 and is set in the acquisition execution number setting 140. Get log data.

ログデータ取得条件判定部123は、書き込みアドレス212を監視し、前回取得時書き込みアドレス131から取得実施件数設定141が示す件数分のログデータが蓄積されたか否かを判定し、蓄積されたと判定したとき、ログデータ取得部124にログデータ取得の指示を出してログデータを取得させる。ログデータを取得した後、ログデータ取得条件判定部123は、前回取得時書き込みアドレス131の値を、リングバッファ211における今回取得したログデータのうち最新のログデータが記憶されていたアドレスの値で更新する。   The log data acquisition condition determination unit 123 monitors the write address 212, determines whether or not the log data for the number indicated by the acquisition execution number setting 141 has been accumulated from the write address 131 at the time of previous acquisition, and determines that the log data has been accumulated. The log data acquisition unit 124 is instructed to acquire the log data. After acquiring the log data, the log data acquisition condition determination unit 123 sets the value of the write address 131 at the time of previous acquisition to the value of the address where the latest log data of the currently acquired log data in the ring buffer 211 is stored. Update.

ここで、リングバッファ211と、書き込みアドレス212と、リングバッファ先頭アドレスと、取得実施件数設定141に設定される取得実施件数と、リングバッファ211のサイズと、の関係を説明する。図3は、該関係を説明する図である。   Here, the relationship among the ring buffer 211, the write address 212, the ring buffer head address, the number of acquired executions set in the acquisition execution number setting 141, and the size of the ring buffer 211 will be described. FIG. 3 is a diagram for explaining the relationship.

図3において、位置aをリングバッファ211の先頭アドレス、位置bを前回取得時書き込みアドレス131が示すアドレス、位置cを前回取得時書き込みアドレス131に取得実施件数分のログデータの容量を足したアドレス、そして位置dをリングバッファ211の最後尾のアドレスとする。   In FIG. 3, the position a is the start address of the ring buffer 211, the position b is the address indicated by the write address 131 at the previous acquisition, and the position c is the write address 131 at the previous acquisition plus the capacity of the log data to be acquired. , And position d is the last address of the ring buffer 211.

ログデータ収集プログラム220は、前記するようにログデータを一件リングバッファ211に書き込む度に書き込みアドレス212をインクリメントすることによって、ログデータ収集状況に応じて移動させる。位置cに書き込みアドレス212が到達したとき、位置bと位置cとの間の領域1に記憶されているログデータがログデータ取得部124によって取得される。取得されたログデータは、ログバッファ132における前回記憶させた記録済みのログデータに連続する位置に今回取得したログデータを記憶させる。   As described above, the log data collection program 220 increments the write address 212 each time log data is written to the one-ring buffer 211, and moves the log data according to the log data collection status. When the write address 212 reaches the position c, the log data acquisition unit 124 acquires the log data stored in the area 1 between the position b and the position c. As for the acquired log data, the log data acquired this time is stored at a position continuous with the previously recorded log data stored in the log buffer 132.

ここで、リングバッファ211の容量をSb、取得実施件数分の容量をSn、サンプリング間隔をTs、表示器100が取得実施件数分の容量のデータを取得するのに要する時間をTnとすると、
(Sb−Sn)×Ts>Tn (式1)
および、
Sn×Ts>Tn (式2)
(ここで、Sb、Snはデータ件数、Ts、Tnは時間の単位をもつ量とする。)
の関係を保持するようにリングバッファ211の容量および取得実施件数設定141が設定されるようにする。すなわち、ログデータ収集プログラム220は、表示器100が領域1に記憶されているログデータを取得する通信を行っている間においても被制御機器に関するログデータを収集し続け、収集したログデータを領域2に順次書き込む。このとき、式1のように設定すると、表示器100へのログデータ取得の通信が終わるまでの間に、書き込みアドレスが位置bに到達することはない。
Here, assuming that the capacity of the ring buffer 211 is Sb, the capacity for the number of acquired executions is Sn, the sampling interval is Ts, and the time required for the display unit 100 to acquire the capacity of the acquisition execution number is Tn.
(Sb−Sn) × Ts> Tn (Formula 1)
and,
Sn × Ts> Tn (Formula 2)
(Here, Sb and Sn are the number of data, and Ts and Tn are amounts having a unit of time.)
The capacity of the ring buffer 211 and the acquisition execution number setting 141 are set so as to hold the above relationship. That is, the log data collection program 220 continues to collect log data related to the controlled device even while the display device 100 performs communication for acquiring the log data stored in the area 1, and the collected log data is stored in the area. Write to 2 sequentially. At this time, if setting is performed as in Expression 1, the write address does not reach the position b until the log data acquisition communication to the display device 100 is completed.

次に、本実施の形態1のログデータ取得システム1000の動作を説明する。図4は、本実施の形態1におけるロギング処理部122の動作を説明するフローチャートである。   Next, the operation of the log data acquisition system 1000 according to the first embodiment will be described. FIG. 4 is a flowchart for explaining the operation of the logging processing unit 122 according to the first embodiment.

まず、ログデータ取得条件判定部123は、デバイスメモリ領域210にアクセスし、書き込みアドレス212を取得する(ステップS1)。そして、ログデータ取得条件判定部123は、取得した書き込みアドレス212の値から前回取得時書き込みアドレス131の値を引いた値(差分値)と、取得実施件数設定140に設定されている取得実施件数の分の容量と、を比較し、差分値が取得実施件数分の容量に達しているか否かを判定する(ステップS2)。   First, the log data acquisition condition determination unit 123 accesses the device memory area 210 and acquires the write address 212 (step S1). Then, the log data acquisition condition determination unit 123 subtracts the value of the acquired write address 131 from the acquired write address 212 value (difference value) and the number of acquired executions set in the acquisition execution number setting 140. Are compared with each other, and it is determined whether or not the difference value has reached the capacity corresponding to the number of acquired cases (step S2).

ここで、書き込みアドレス212がリングバッファ211の最後尾に達して先頭アドレスに移行していると、書き込みアドレス212が前回取得時書き込みアドレス131よりも前のアドレスを指しているので、差分値が負の値になる。この場合、ログデータ取得条件判定部123は、書き込みアドレス212の値にリングバッファサイズ143に設定されているリングバッファ211のサイズを足した値から前回取得時書き込みアドレス131の値を引いた値をもって差分値とする。   Here, when the write address 212 reaches the end of the ring buffer 211 and shifts to the start address, the write address 212 indicates an address before the previous acquisition write address 131, and thus the difference value is negative. Value. In this case, the log data acquisition condition determination unit 123 has a value obtained by subtracting the value of the write address 131 at the time of previous acquisition from the value of the write address 212 plus the size of the ring buffer 211 set in the ring buffer size 143. The difference value.

ログデータ取得条件判定部123は、差分値が取得実施件数分の容量に達していないと判定した場合(ステップS2、No)、ステップS1に移行する。差分値が取得実施件数分の容量に達していると判定した場合(ステップS2、Yes)、ログデータ取得条件判定部123は、ログデータ取得部124にログデータ取得の指示を出し、ログデータ取得部124は、前回取得時書き込みアドレス131が指す位置からリングバッファ211から取得実施件数分のログデータを取得し、取得したログデータをログバッファ132に記憶させる(ステップS3)。そして、ログデータ取得条件判定部123は、ステップS1にて取得した書き込みアドレス212の値で前回取得時書き込みアドレス131を更新し(ステップS4)、ステップS1に移行する。   When the log data acquisition condition determination unit 123 determines that the difference value has not reached the capacity for the number of acquisition cases (No in step S2), the log data acquisition condition determination unit 123 proceeds to step S1. When it is determined that the difference value has reached the capacity corresponding to the number of acquisition cases (step S2, Yes), the log data acquisition condition determination unit 123 instructs the log data acquisition unit 124 to acquire log data and acquires the log data. The unit 124 acquires log data corresponding to the number of acquisition cases from the ring buffer 211 from the position indicated by the write address 131 at the time of previous acquisition, and stores the acquired log data in the log buffer 132 (step S3). Then, the log data acquisition condition determination unit 123 updates the previous acquisition write address 131 with the value of the write address 212 acquired in step S1 (step S4), and proceeds to step S1.

表示処理部121は、このような動作によってログバッファ132に記憶されたログデータの内容をグラフ化してヒストリカルトレンドを作成し、入力手段付き表示部110に表示させる。   The display processing unit 121 creates a historical trend by graphing the contents of the log data stored in the log buffer 132 by such an operation, and displays the historical trend on the display unit with input means 110.

以上の構成および動作により、表示器100は、高速なサンプリング間隔でログデータを収集する制御機器200からも、通信手段が対応できるような長い周期間隔で該ログデータを取得することができる。なお、本実施の形態1のシステムによれば、設定された件数のログデータが制御機器側に蓄積されるたびに表示器はログデータを取得しに行くので、例えばベルトコンベアを動作させるようなモータなど、連続的に同じ動作を行うタイプの被制御機器に関するログを取得するシステムに適用することができる。図5は、一つの適用例を示す図である。   With the above configuration and operation, the display device 100 can acquire the log data from the control device 200 that collects the log data at a high sampling interval at a long cycle interval that the communication means can handle. In addition, according to the system of the first embodiment, every time the set number of log data is accumulated on the control device side, the display goes to acquire the log data. For example, the belt conveyor is operated. The present invention can be applied to a system that acquires a log related to a controlled device of a type that continuously performs the same operation, such as a motor. FIG. 5 is a diagram illustrating one application example.

図5において、定常的に回転子を回転させる被制御機器であるサーボモータと、サーボモータをコントロールするコントローラ(制御機器200)と、コントローラからログデータを取得するプログラマブル表示器100とを示している。コントローラは、サーボモータのモータの位置および負荷を常時、高速にサンプリングし、リングバッファ211に記憶させる。プログラマブル表示器100は、式1に基づき決定された件数ずつログデータをリングバッファ211から取得し、入力手段付き表示部110にグラフ化したヒストリカルトレンドを表示することができる。   FIG. 5 shows a servo motor that is a controlled device that rotates the rotor steadily, a controller (control device 200) that controls the servo motor, and a programmable display 100 that acquires log data from the controller. . The controller always samples the position and load of the servo motor at high speed and stores them in the ring buffer 211. The programmable display 100 can acquire log data from the ring buffer 211 for each number determined based on Equation 1, and display the historical trend graphed on the display unit 110 with input means.

このように、本実施の形態1によれば、使用者が制御機器に対してデバイスメモリ領域の一部にログデータ用のリングバッファの確保と書き込みアドレスの設定を行い、プログラマブル表示器は接続対象の制御機器のリングバッファにアクセスするための設定を行うだけで制御機器から短周期のサンプリング間隔のログデータを取得できるように構成したので、プログラマブル表示器が制御機器からログデータを取得するログデータ取得システムにおいて、制御機器の適用範囲が広いログデータ取得システムおよびプログラマブル表示器を得ることができるという効果を奏する。また、制御機器に記憶されているログデータをプログラマブル表示器側から取得しにいく仕組みとなっているため、プログラマブル表示器側の設定を変えるだけで制御機器に対してログデータを取得しにいくタイミングの変更ができるという効果も奏する。また、プログラマブル表示器は、ログデータの内容をグラフ化して表示するので、使用者は被制御機器の状態の推移を視認しやすくなるという効果を奏する。   As described above, according to the first embodiment, the user secures the ring buffer for log data and sets the write address in a part of the device memory area for the control device, and the programmable display is connected to Log data for which the programmable display unit obtains log data from the control device because it is configured to obtain log data at a short sampling interval from the control device simply by making settings for accessing the ring buffer of the control device In the acquisition system, there is an effect that a log data acquisition system and a programmable display with a wide application range of the control device can be obtained. In addition, since it is structured to acquire log data stored in the control device from the programmable display side, it is possible to acquire log data for the control device simply by changing the setting on the programmable display side. There is also an effect that the timing can be changed. Moreover, since the programmable display displays the contents of the log data in a graph, the user can easily see the transition of the state of the controlled device.

ところで、以上の説明において、取得実施件数を設定する際、使用者は式1の計算に基づいて取得実施件数を設定するとしたが、例えば使用者がリングバッファサイズ143を設定すると、表示器100が通信速度を計測し、自動的に取得実施件数を算出するような機能を表示器100に実装すると便利である。また、制御機器200に接続したとき、リングバッファサイズおよびリングバッファの先頭アドレスを制御機器200から自動的に取得し、リングバッファ先頭アドレス142およびリングバッファサイズ143を設定するような機能を表示器100に実装しても便利である。   By the way, in the above description, when setting the number of acquisition execution cases, the user sets the acquisition execution number based on the calculation of Expression 1, but when the user sets the ring buffer size 143, for example, the display device 100 It is convenient to mount a function on the display device 100 that measures the communication speed and automatically calculates the number of acquisitions. Further, when connected to the control device 200, the display device 100 has a function of automatically acquiring the ring buffer size and the ring buffer start address from the control device 200 and setting the ring buffer start address 142 and the ring buffer size 143. It is also convenient to implement in

実施の形態2.
実施の形態1においては、プログラマブル表示器は、制御機器のリングバッファの書き込みアドレスを監視し、リングバッファに一定量のログデータが溜まる度に溜まった分のログデータを取得していた。これに対し、本実施の形態2にかかるログデータ取得システムは、制御機器は所定の動作を完了するたびに制御信号である完了信号を発行し、プログラマブル表示器は、該完了信号を監視し、完了信号が発行されたとき、リングバッファに前回取得した後に溜まったログデータを取得するようにする。
Embodiment 2. FIG.
In the first embodiment, the programmable display device monitors the write address of the ring buffer of the control device, and acquires the log data that has accumulated every time a certain amount of log data accumulates in the ring buffer. On the other hand, in the log data acquisition system according to the second embodiment, the control device issues a completion signal that is a control signal every time a predetermined operation is completed, and the programmable display monitors the completion signal, When a completion signal is issued, log data accumulated after the previous acquisition in the ring buffer is acquired.

図6は、本実施の形態2のログデータ取得システムの構成を示す図である。図6において、本実施の形態2のログデータ取得システム1001は、プログラマブル表示器101と制御機器201とを有する。以下、本実施の形態のログデータ取得システム1001の各構成部について、実施の形態1の構成部と同一の機能を有する構成部に対しては同一の符号を付し、実施の形態1と異なる部分についてのみ説明する。   FIG. 6 is a diagram illustrating a configuration of the log data acquisition system according to the second embodiment. In FIG. 6, the log data acquisition system 1001 according to the second embodiment includes a programmable display device 101 and a control device 201. Hereinafter, with respect to each component of the log data acquisition system 1001 of the present embodiment, components having the same functions as those of the components of the first embodiment are denoted by the same reference numerals and are different from those of the first embodiment. Only the part will be described.

使用者は、被制御機器が所定の動作を完了したとき、完了信号をデバイスメモリ領域210に書き込むように制御機器201にプログラムしておく。すなわち、制御機器201は、実施の形態1の制御機器201に加えて完了信号発行部230をさらに備え、デバイスメモリ領域210には完了信号213が書き込まれる。   The user programs the control device 201 to write a completion signal to the device memory area 210 when the controlled device completes a predetermined operation. That is, the control device 201 further includes a completion signal issuing unit 230 in addition to the control device 201 of the first embodiment, and the completion signal 213 is written in the device memory area 210.

プログラマブル表示器101の構成は、実施の形態1の場合と略同じであって、以下の2点のみ異なる。すなわち、本実施の形態2においては、不揮発性メモリ領域140に取得実施件数設定情報を必要せず、ログデータ取得条件判定部の機能が異なる。本実施の形態2のログデータ取得条件判定部125は、デバイスメモリ領域210を監視し、完了信号213が書き込まれたとき、ログデータ取得条件が成立したと判定し、デバイスメモリ領域210から書き込みアドレス212を取得するとともにログデータ取得部124にログデータ取得の指示を発行する。ログデータ取得部124は、リングバッファ211における前回取得時書き込みアドレス131が示す位置から該取得した書き込みアドレス212が示す位置までの領域に書き込まれているログデータを取得する。ログデータ取得条件判定部125は、前回取得時書き込みアドレス131を前記する取得した書き込みアドレス212で更新する。   The configuration of the programmable display 101 is substantially the same as that of the first embodiment, and only the following two points are different. That is, in the second embodiment, the acquisition execution number setting information is not required in the nonvolatile memory area 140, and the function of the log data acquisition condition determination unit is different. The log data acquisition condition determination unit 125 of the second embodiment monitors the device memory area 210, determines that the log data acquisition condition is satisfied when the completion signal 213 is written, and writes the write address from the device memory area 210. 212 is issued and a log data acquisition instruction is issued to the log data acquisition unit 124. The log data acquisition unit 124 acquires log data written in an area from the position indicated by the write address 131 at the previous acquisition time to the position indicated by the acquired write address 212 in the ring buffer 211. The log data acquisition condition determination unit 125 updates the previous acquisition write address 131 with the acquired write address 212 described above.

例えば、実施の形態2の適用対象の制御機器として、射出成形機においてプラスチックを射出する動作を行うサーボモータのコントローラがある。こういったタイプのサーボモータは、1サイクルの動作でシリンダを1ストロークさせ、プラスチックを押し出す1ショットの動作を完了する。図7は、このようなタイプの制御機器に本実施の形態2のログデータ取得システムを適用した場合の例を示す図である。   For example, as a control device to which the second embodiment is applied, there is a servo motor controller that performs an operation of injecting plastic in an injection molding machine. These types of servo motors complete a one-shot operation of pushing the plastic by one stroke of the cylinder in one cycle of operation. FIG. 7 is a diagram showing an example in which the log data acquisition system of the second embodiment is applied to such a type of control device.

図7に示すように、サーボモータ(被制御機器)の1ショット分の動作が完了したとき、コントローラ(制御機器201)は完了信号213をデバイスメモリ領域210に書き込む。プログラマブル表示器101は、この書き込みをトリガとし、前回ログデータを取得したあとリングバッファ211に蓄積されたログデータを取得する。   As shown in FIG. 7, when the operation for one shot of the servo motor (controlled device) is completed, the controller (control device 201) writes a completion signal 213 in the device memory area 210. The programmable display 101 uses this writing as a trigger, and acquires log data accumulated in the ring buffer 211 after acquiring log data last time.

このように、実施の形態2によれば、被制御機器が所定の動作を終了する毎にログデータを取得できるので、使用者は、被制御機器が所定の動作を終了する毎にログデータの内容を閲覧して被制御機器の分析を行うことができるようになる。   As described above, according to the second embodiment, the log data can be acquired every time the controlled device finishes the predetermined operation, so that the user can save the log data every time the controlled device finishes the predetermined operation. The contents can be browsed and the controlled device can be analyzed.

実施の形態3.
実施の形態2によれば、プログラマブル表示器は、制御機器が内部に生成する完了信号をトリガとし、制御機器からログデータを取得するが、本実施の形態3によれば、プログラマブル表示器は、使用者からの入力をトリガとし、制御機器からログデータを取得する。
Embodiment 3 FIG.
According to the second embodiment, the programmable display device uses the completion signal generated by the control device as a trigger to acquire log data from the control device, but according to the third embodiment, the programmable display device Log data is acquired from the control device using the input from the user as a trigger.

図8は、実施の形態3のログデータ取得システムの構成を説明する図である。以下、実施の形態1と異なる部分についてのみ説明する。   FIG. 8 is a diagram illustrating the configuration of the log data acquisition system according to the third embodiment. Only the parts different from the first embodiment will be described below.

図8において、ログデータ取得システム103は、プログラマブル表示器103と制御機器202とを有する。制御機器202の構成は、実施の形態1と全く同一である。プログラマブル表示器103は、入力手段付き表示画面110に、ログデータ取得要求を入力するログデータ取得要求入力部111を有する。入力手段付き表示部がタッチパネル表示画面であるとすると、該表示画面に「状態更新」などを表記したソフトウェアボタンを設けてログデータ取得要求入力部111とするとよい。すなわち、該ボタンが押下されると、ログデータ取得要求が入力されたとみなすようにするとよい。   In FIG. 8, the log data acquisition system 103 includes a programmable display 103 and a control device 202. The configuration of the control device 202 is exactly the same as in the first embodiment. The programmable display 103 has a log data acquisition request input unit 111 for inputting a log data acquisition request on the display screen 110 with input means. Assuming that the display unit with input means is a touch panel display screen, a log data acquisition request input unit 111 may be provided by providing a software button indicating “status update” on the display screen. That is, when the button is pressed, it may be considered that a log data acquisition request has been input.

ログデータ取得条件判定部126は、ログデータ取得要求入力部111からログデータ取得要求が入力されたとき、該入力をトリガとし、デバイスメモリ領域210から書き込みアドレス212を取得するとともに、ログデータ取得部124にログデータ取得の指示を発行する。ログデータ取得部124は、該指示が発行されると、リングバッファ211において前記する取得した書き込みアドレス212が指す位置から前に書かれているログデータを、取得実施件数設定141に設定されている取得実施件数分だけ取得し、ログバッファ132に格納する。   When a log data acquisition request is input from the log data acquisition request input unit 111, the log data acquisition condition determination unit 126 uses the input as a trigger to acquire the write address 212 from the device memory area 210, and the log data acquisition unit A log data acquisition instruction is issued to 124. When the instruction is issued, the log data acquisition unit 124 sets the log data written before from the position indicated by the acquired write address 212 in the ring buffer 211 in the acquisition execution number setting 141. Only the number of acquisition cases is acquired and stored in the log buffer 132.

以上のように、実施の形態3によれば、ログデータ取得要求の入力をトリガとしてプログラマブル表示器が制御機器からログデータを取得するようにしたので、使用者は所望のタイミングでログデータを閲覧して被制御機器の分析を行うことができるようになる。   As described above, according to the third embodiment, the programmable display device acquires log data from the control device using the input of the log data acquisition request as a trigger, so that the user views the log data at a desired timing. As a result, the controlled device can be analyzed.

なお、本実施の形態3により取得されるログデータは、ログデータ取得要求が入力される毎に一定量の件数のログデータを取得するので、ログバッファ132に記憶されたログデータは時系列的な連続性を有しない。これを解決するためには、実施の形態1と実施の形態3とを併用するとともに、プログラマブル表示器102は、ログデータ取得要求が入力されたとき、前回取得時書き込みアドレスが示す位置からログデータ取得要求が入力された時点の書き込みアドレスが示す位置までに書き込まれているログデータを取得するようにするとよい。この場合、ログデータを取得したとき、前回取得時書き込みアドレスをログデータ取得要求が入力された時点の書き込みアドレスで更新するようにするとよい。   The log data acquired according to the third embodiment acquires a certain amount of log data every time a log data acquisition request is input, and therefore the log data stored in the log buffer 132 is time-series. There is no continuity. In order to solve this, together with the first embodiment and the third embodiment, when the log data acquisition request is input, the programmable display 102 starts the log data from the position indicated by the write address at the time of previous acquisition. The log data written up to the position indicated by the write address at the time when the acquisition request is input may be acquired. In this case, when log data is acquired, the write address at the time of previous acquisition may be updated with the write address at the time when the log data acquisition request is input.

実施の形態4.
実施の形態1〜3によれば、表示処理部121は、入力手段付き表示部110にグラフ化されたヒストリカルトレンドが表示されていたが、図9に示すように、表示処理部121はログデータを表形式に並べたヒストリカルデータリストを表示させるようにしてもよい。このようにすることにより、使用者はログデータの内容の時系列情報を数値で確認できるので、より精度の高い分析を行うことができるようになる。
Embodiment 4 FIG.
According to the first to third embodiments, the display processing unit 121 displays the historical trend graphed on the display unit 110 with input means. As shown in FIG. A historical data list arranged in a table format may be displayed. By doing so, the user can confirm the time-series information of the contents of the log data with numerical values, so that a more accurate analysis can be performed.

また、プログラマブル表示器のログバッファに蓄積されたログデータを、大容量で、不揮発性かつ着脱可能な記憶媒体、例えばCFカードに移すことができるようにしてもよい。このようにすることにより、使用者は、プログラマブル表示器からのログデータの持ち出しを行うことが可能になる。また、ログデータをログバッファから時々退避させることによって、ログデータがログバッファからオーバーフローすることを防止できるようになる。   Further, the log data stored in the log buffer of the programmable display device may be transferred to a large-capacity nonvolatile and detachable storage medium such as a CF card. In this way, the user can take out log data from the programmable display. Further, by occasionally saving the log data from the log buffer, the log data can be prevented from overflowing from the log buffer.

以上のように、本発明にかかるログデータ取得システムおよびプログラマブル表示器は、高速なサンプリング間隔でログデータを収集する制御機器と、該制御機器から前記サンプリング間隔に比して長い間隔でログデータを取得するプログラマブル表示器と、を有するログデータ取得システムおよびプログラマブル表示器に適用して好適である。   As described above, the log data acquisition system and the programmable display according to the present invention include a control device that collects log data at a high-speed sampling interval, and log data that is longer than the sampling interval from the control device. The present invention is suitably applied to a log data acquisition system and a programmable display having a programmable display to be acquired.

ログデータ取得システムの概要を説明する図である。It is a figure explaining the outline | summary of a log data acquisition system. 実施の形態1のログデータ取得システムの構成を示す図である。1 is a diagram illustrating a configuration of a log data acquisition system according to a first embodiment. 位置関係を説明する図である。It is a figure explaining positional relationship. 実施の形態1におけるロギング処理部の動作を説明するフローチャートである。3 is a flowchart for explaining the operation of a logging processing unit according to the first embodiment. 実施の形態1の適用例を示す図である。6 is a diagram illustrating an application example of the first embodiment. FIG. 実施の形態2のログデータ取得システムの構成を示す図である。It is a figure which shows the structure of the log data acquisition system of Embodiment 2. FIG. 実施の形態2の適用例を示す図である。FIG. 11 is a diagram illustrating an application example of the second embodiment. 実施の形態3のログデータ取得システムの構成を示す図である。FIG. 10 is a diagram illustrating a configuration of a log data acquisition system according to a third embodiment. 実施の形態4のログデータ取得システムの概要を説明する図である。It is a figure explaining the outline | summary of the log data acquisition system of Embodiment 4. FIG.

符号の説明Explanation of symbols

101、102、103 プログラマブル表示器
110 表示画面
110 入力手段付き表示部
111 ログデータ取得要求入力部
120 ユーザデータ処理部
121 表示処理部
122 ロギング処理部
123、125、126 ログデータ取得条件判定部
124 ログデータ取得部
130 一時記憶メモリ領域
131 前回取得時オフセットアドレス
132 ログバッファ
140 不揮発性メモリ領域
141 取得実施件数設定
142 リングバッファ先頭アドレス
143 リングバッファサイズ
200、201、202 制御機器
210 デバイスメモリ領域
211 リングバッファ
212 書き込みアドレス
220 ログデータ収集プログラム
230 完了信号発行部
1000、1001、1002 ログデータ取得システム
101, 102, 103 Programmable display 110 Display screen 110 Display unit with input means 111 Log data acquisition request input unit 120 User data processing unit 121 Display processing unit 122 Logging processing unit 123, 125, 126 Log data acquisition condition determination unit 124 Log Data acquisition unit 130 Temporary storage memory area 131 Offset address at the time of previous acquisition 132 Log buffer 140 Non-volatile memory area 141 Acquisition number setting 142 Ring buffer head address 143 Ring buffer size 200, 201, 202 Control device 210 Device memory area 211 Ring buffer 212 Write address 220 Log data collection program 230 Completion signal issuing unit 1000, 1001, 1002 Log data acquisition system

Claims (5)

リングバッファ構成のログデータ格納領域と、前記ログデータ格納領域に対するログデータの最新の書き込みアドレスが記憶されるアドレス記憶領域と、被制御機器に関するログデータを収集して前記ログデータ格納領域に順次書き込むとともに、前記ログデータの現在の書き込みアドレスを前記アドレス記憶領域に書き込むログデータ収集制御部とを有する制御機器と、
ログデータを蓄積する記憶領域と、前記アドレス記憶領域に記憶されている書き込みアドレスに基づいて前記ログデータ格納領域からログデータを所定量取得して前記記憶領域に書き込むロギング処理部と、前記記憶領域に蓄積されているログデータを表示部に表示させる表示処理部と、を有するプログラマブル表示器と、
を備えることを特徴とするログデータ取得システム。
A log data storage area having a ring buffer configuration, an address storage area in which the latest write address of log data to the log data storage area is stored, and log data related to the controlled device are collected and sequentially written in the log data storage area And a control device having a log data collection control unit for writing a current write address of the log data to the address storage area;
A storage area for accumulating log data; a logging processing unit for acquiring a predetermined amount of log data from the log data storage area based on a write address stored in the address storage area and writing the log data in the storage area; and the storage area A display unit for displaying the log data stored in the display unit, and a programmable display device,
A log data acquisition system comprising:
前記プログラマブル表示器は、ログデータを取得した時点における書き込みアドレスである取得時書き込みアドレスを記憶する取得時書き込みアドレス記憶領域をさらに有し、
前記ロギング処理部は、前記制御機器のアドレス記憶領域に記憶されている書き込みアドレスを監視し、未取得のログデータの量が前記所定量に達する毎に、前記取得時書き込みアドレスを前記書き込みアドレスで更新するとともに、前記未取得のログデータを前記ログデータ格納領域から取得して前記記憶領域に書き込む、
ことを特徴とする請求項1に記載のログデータ取得システム。
The programmable display further includes an acquisition write address storage area for storing an acquisition write address that is a write address at the time of acquiring log data,
The logging processing unit monitors the write address stored in the address storage area of the control device, and each time the amount of unacquired log data reaches the predetermined amount, the write address at acquisition is the write address. Updating and acquiring the unacquired log data from the log data storage area and writing to the storage area;
The log data acquisition system according to claim 1.
前記制御機器は、前記被制御機器の状態に応じて制御信号を随時発行する制御信号発行部と、該制御信号発行部により前記制御信号が書き込まれる制御信号記憶領域とをさらに有し、
前記ロギング処理部は、前記制御信号記憶領域を監視し、前記制御信号の発行を検知する毎に前記ログデータ格納領域からログデータを取得して前記記憶領域に書き込む、
ことを特徴とする請求項1に記載のログデータ取得システム。
The control device further includes a control signal issuing unit that issues a control signal as needed according to the state of the controlled device, and a control signal storage area in which the control signal is written by the control signal issuing unit,
The logging processing unit monitors the control signal storage area, and acquires log data from the log data storage area and writes the log data to the storage area every time the issuance of the control signal is detected.
The log data acquisition system according to claim 1.
前記プログラマブル表示器は、ログデータ取得要求が入力される入力部をさらに有し、 前記ロギング処理部は、前記ログデータ取得要求が入力される毎に前記ログデータ格納領域から未取得のログデータを取得して前記記憶領域に書き込む、
ことを特徴とする請求項1に記載のログデータ取得システム。
The programmable display further includes an input unit to which a log data acquisition request is input, and the logging processing unit stores unacquired log data from the log data storage area every time the log data acquisition request is input. Obtain and write to the storage area,
The log data acquisition system according to claim 1.
請求項1〜4うちの何れか一つに記載のログデータ取得システムを構成することを特徴とするプログラマブル表示器。   A programmable display comprising the log data acquisition system according to any one of claims 1 to 4.
JP2008231242A 2008-09-09 2008-09-09 Log data acquisition system and programmable display Active JP5241388B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008231242A JP5241388B2 (en) 2008-09-09 2008-09-09 Log data acquisition system and programmable display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008231242A JP5241388B2 (en) 2008-09-09 2008-09-09 Log data acquisition system and programmable display

Publications (2)

Publication Number Publication Date
JP2010066901A true JP2010066901A (en) 2010-03-25
JP5241388B2 JP5241388B2 (en) 2013-07-17

Family

ID=42192451

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008231242A Active JP5241388B2 (en) 2008-09-09 2008-09-09 Log data acquisition system and programmable display

Country Status (1)

Country Link
JP (1) JP5241388B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016157319A (en) * 2015-02-25 2016-09-01 東洋電機製造株式会社 Display controller
JP2016207148A (en) * 2015-04-28 2016-12-08 株式会社Ihi Waste heat power generating system
DE102016007778A1 (en) 2015-07-01 2017-01-05 Fanuc Corporation Data logger, set up to save collected data in separate storage media, date by date
JP2018124951A (en) * 2016-08-18 2018-08-09 富士電機株式会社 Control equipment and control method
JP2020131580A (en) * 2019-02-21 2020-08-31 株式会社日本製鋼所 Internal variable logging method of injection molding machine
JP2020166827A (en) * 2019-03-29 2020-10-08 株式会社キーエンス Programmable display device and programmable logic controller system including the same

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6186846A (en) * 1984-10-05 1986-05-02 Mitsubishi Electric Corp Program debugging device
JPH01266684A (en) * 1988-04-18 1989-10-24 Yokogawa Electric Corp Distributed control system
JPH0355646A (en) * 1989-07-25 1991-03-11 Fujitsu Ltd Data storage circuit
JPH09170932A (en) * 1995-12-21 1997-06-30 Denshi Giken:Kk Data recording device for abnormality analysis
JP2006202311A (en) * 2006-02-17 2006-08-03 Digital Electronics Corp Communication system for control and computer-readable recording medium recording communication program for control

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6186846A (en) * 1984-10-05 1986-05-02 Mitsubishi Electric Corp Program debugging device
JPH01266684A (en) * 1988-04-18 1989-10-24 Yokogawa Electric Corp Distributed control system
JPH0355646A (en) * 1989-07-25 1991-03-11 Fujitsu Ltd Data storage circuit
JPH09170932A (en) * 1995-12-21 1997-06-30 Denshi Giken:Kk Data recording device for abnormality analysis
JP2006202311A (en) * 2006-02-17 2006-08-03 Digital Electronics Corp Communication system for control and computer-readable recording medium recording communication program for control

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016157319A (en) * 2015-02-25 2016-09-01 東洋電機製造株式会社 Display controller
JP2016207148A (en) * 2015-04-28 2016-12-08 株式会社Ihi Waste heat power generating system
DE102016007778A1 (en) 2015-07-01 2017-01-05 Fanuc Corporation Data logger, set up to save collected data in separate storage media, date by date
JP2018124951A (en) * 2016-08-18 2018-08-09 富士電機株式会社 Control equipment and control method
JP2020131580A (en) * 2019-02-21 2020-08-31 株式会社日本製鋼所 Internal variable logging method of injection molding machine
JP2020166827A (en) * 2019-03-29 2020-10-08 株式会社キーエンス Programmable display device and programmable logic controller system including the same
JP7466319B2 (en) 2019-03-29 2024-04-12 株式会社キーエンス Programmable display and programmable logic controller system equipped with the same

Also Published As

Publication number Publication date
JP5241388B2 (en) 2013-07-17

Similar Documents

Publication Publication Date Title
JP5241388B2 (en) Log data acquisition system and programmable display
JP5218585B2 (en) Control device and system program
EP2549344B1 (en) Simulation method of control program enabling a selective restart of the simulation
TWI521316B (en) Peripheral device of programmable logic controller and debug support program product
JP5561357B2 (en) Control system with programmable display, programmable display, and drawing data creation means thereof
JP6747104B2 (en) Safety systems, programs, and methods
CN105765471B (en) Sequencer creates auxiliary device
JP2020134984A (en) Programmable logic controller and log data store method therefor
KR102198204B1 (en) Simulation device
US20210356932A1 (en) NC Program Conversion Processing Method and Conversion Use Computer
JPWO2014064830A1 (en) Development support device and development support program
TWI522759B (en) Apparatus for assisting the construction of a system, method, and a recording medium
CN103345413A (en) Method and device for updating codes and electronic equipment
WO2016071974A1 (en) Remote control device and control system
CN113632017A (en) Drive control device
JP6253846B1 (en) Programmable display
JP2007024838A (en) Data recording device
WO2021044654A1 (en) Information processing system, programmable display device, and information processing device
EP3696626B1 (en) Communication system, communication method, and program
JP6693988B2 (en) Processing program editing device
JP6469330B1 (en) MONITOR SUPPORT DEVICE, MONITOR SUPPORT METHOD, AND MONITOR SUPPORT PROGRAM
JP2013111892A (en) Troubleshooting method of injection molding machine
EP3633471B1 (en) Program development support device, program development support system, program development support method, and program development support program
JP6951157B2 (en) Programmable controller and ladder circuit program verification system
CN107430385B (en) Arithmetic element, engineering tools and the storage device for being stored with engineering tools program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110412

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120724

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120731

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120921

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: 20130305

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130402

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

Free format text: PAYMENT UNTIL: 20160412

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250