JP4659643B2 - Logging system - Google Patents

Logging system Download PDF

Info

Publication number
JP4659643B2
JP4659643B2 JP2006053160A JP2006053160A JP4659643B2 JP 4659643 B2 JP4659643 B2 JP 4659643B2 JP 2006053160 A JP2006053160 A JP 2006053160A JP 2006053160 A JP2006053160 A JP 2006053160A JP 4659643 B2 JP4659643 B2 JP 4659643B2
Authority
JP
Japan
Prior art keywords
logging
data
control
control device
control data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006053160A
Other languages
Japanese (ja)
Other versions
JP2007233593A (en
Inventor
剛志 柴田
宏紀 三嶋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2006053160A priority Critical patent/JP4659643B2/en
Publication of JP2007233593A publication Critical patent/JP2007233593A/en
Application granted granted Critical
Publication of JP4659643B2 publication Critical patent/JP4659643B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

この発明は、制御装置の動作状態や制御対象の状態を監視・解析するために制御装置の制御データ(入出力データおよび内部データ)を収集するロギング処理を行うロギングシステムに関し、さらに詳しくは制御データを制御周期と同期し且つ制御周期毎にロギングするロギングシステムに関する。   The present invention relates to a logging system that performs a logging process for collecting control data (input / output data and internal data) of a control device in order to monitor / analyze the operation state of the control device and the state of a control target. The present invention relates to a logging system that synchronizes with the control cycle and logs every control cycle.

従来のポーリング型のロギングを行うロギングシステムは、所定の制御を行う制御装置と、制御データのロギングを実行するロギング装置と、を備えて構成される。ここで、制御装置は、制御プログラムに従って所定の制御機能を実行する制御実行部と、制御実行部の制御対象となる制御データと、を備えて構成される。また、ロギング装置は、制御装置から制御データを取得し内部メモリに記録するロギング実行部と、制御装置と自ロギング装置の間で制御データをやりとりするために電気的に接続された内部バスと、制御装置から取得した制御データを時系列に記録するための内部メモリと、を備えて構成される。   A conventional logging system that performs polling logging is configured to include a control device that performs predetermined control and a logging device that performs logging of control data. Here, the control device includes a control execution unit that executes a predetermined control function in accordance with a control program, and control data that is a control target of the control execution unit. Further, the logging device acquires a control data from the control device and records it in an internal memory, an internal bus electrically connected to exchange control data between the control device and the own logging device, And an internal memory for recording the control data acquired from the control device in time series.

このように構成された従来のポーリング型のロギングを行うロギングシステムにおいては、ロギング実行部は周期的に制御データを取得し、これを内部メモリに時系列に記憶することによりロギングを実行する。制御データの取得においては、内部バスに流れるデータを直接取得する方法、または内部バス経由で制御装置にデータ取得の要求を行いその応答としてデータを取得する方法が用いられる。前者では内部バスに流れる制御装置の入出力データを比較的簡単に取得可能であるのに対し、後者では制御装置の内部データを含めた制御データを取得可能である。   In the conventional logging system that performs the polling type logging configured as described above, the logging execution unit periodically acquires the control data and stores the data in the internal memory in time series to execute the logging. In acquiring the control data, a method of directly acquiring data flowing in the internal bus or a method of acquiring a data acquisition request to the control device via the internal bus and acquiring the data as a response is used. In the former, input / output data of the control device flowing in the internal bus can be acquired relatively easily, whereas in the latter, control data including internal data of the control device can be acquired.

また、ロギング実行部は制御実行部の制御周期を監視することにより、制御データの取得を制御実行部の制御周期に同期する。制御周期の監視においては、内部バス上を流れる入出力データのパターンを監視する方法と、内部バス経由で制御装置に制御周期の終了時点を問い合わせる方法が考えられる(たとえば、特許文献1参照)。   Further, the logging execution unit synchronizes the acquisition of control data with the control cycle of the control execution unit by monitoring the control cycle of the control execution unit. In monitoring the control cycle, there are a method of monitoring a pattern of input / output data flowing on the internal bus and a method of inquiring the end point of the control cycle to the control device via the internal bus (for example, see Patent Document 1).

また、従来のロギングシステムとしては、プッシュ型のロギングを行うロギングシステムも用いられている。このようなプッシュ型のロギングシステムは、所定の制御を行う制御装置と、制御データのロギングを実行するロギング装置と、を備えて構成される。ここで、制御装置は、制御プログラムに従って所定の制御機能を実行する制御実行部と、制御実行部の制御対象となる制御データと、制御データの一時的時系列記録を実施するデータ収集部と、制御データを一時的に時系列記録するための一時メモリと、一時メモリ内の時系列データの読出し可否を示す読出し許可情報と、を備えて構成される。   As a conventional logging system, a logging system that performs push-type logging is also used. Such a push-type logging system includes a control device that performs predetermined control and a logging device that performs logging of control data. Here, the control device, a control execution unit that executes a predetermined control function according to a control program, control data to be controlled by the control execution unit, a data collection unit that performs temporary time series recording of the control data, It comprises a temporary memory for temporarily recording control data in time series, and read permission information indicating whether or not the time series data in the temporary memory can be read.

ここでデータ収集部は、専用のハードウェアまたはソフトウェアとして実現する場合と、制御実行部で実行可能な制御プログラムの一部として実現する場合とが考えられる。   Here, the data collection unit can be realized as dedicated hardware or software, or as a part of a control program that can be executed by the control execution unit.

また、ロギング装置は、制御装置から制御データを取得し内部メモリに記録するロギング実行部と、制御装置と自ロギング装置の間で制御データをやりとりするために電気的に接続された内部バスと、制御装置から取得した制御データを時系列に記録するための内部メモリと、を備えて構成される。   Further, the logging device acquires a control data from the control device and records it in an internal memory, an internal bus electrically connected to exchange control data between the control device and the own logging device, And an internal memory for recording the control data acquired from the control device in time series.

このように構成された従来のプッシュ型のロギングを行うロギングシステムにおいては、ロギング実行部はデータ収集部により制御装置内の一時メモリに時系列記録されたデータを取得し、これをロギング装置内の内部メモリに時系列に記録することによりロギングを実行する。   In the logging system that performs the conventional push type logging configured as described above, the logging execution unit acquires the data recorded in time series in the temporary memory in the control device by the data collection unit, and stores this data in the logging device. Logging is performed by recording time series in the internal memory.

先ず制御装置では、データ収集部が制御実行部の制御周期毎に制御データを一時メモリに時系列に記録する。同時にデータ収集部は一時メモリ内の時系列データが特定の条件を満たした時に、読出し許可フラグを読出し許可状態にする。この条件としては、時系列データが一時メモリの容量に達すること、制御データが特定の値に変化すること、あるいは制御装置で特定の事象が発生すること、等が考えられる。   First, in the control device, the data collection unit records the control data in a temporary memory in time series for each control cycle of the control execution unit. At the same time, when the time-series data in the temporary memory satisfies a specific condition, the data collection unit sets the read permission flag to the read permission state. This condition may be that the time series data reaches the capacity of the temporary memory, the control data changes to a specific value, or a specific event occurs in the control device.

一方、ロギング装置では、ロギング実行部は周期的にロギング装置内の読出し許可フラグを監視する。この監視は、ロギング実行部から内部バス経由で制御装置に読出し許可フラグの取得要求を行い、その応答として読出し許可フラグを取得する方法で実行される。   On the other hand, in the logging device, the logging execution unit periodically monitors the read permission flag in the logging device. This monitoring is executed by a method for making a read permission flag acquisition request from the logging execution unit to the control device via the internal bus and acquiring the read permission flag as a response.

監視の結果、読出し許可フラグの状態が読出し許可状態であれば、ロギング実行部は制御装置内の一時メモリの時系列データを一括で取得し、これをロギング装置内の内部メモリに時系列に記録する。ロギング実行部はこの動作を繰り返す事により効率的に制御データのロギングを実行する事ができる。   As a result of monitoring, if the read permission flag is in the read permission state, the logging execution unit collects the time series data of the temporary memory in the control device in a lump and records this in time series in the internal memory in the logging device. To do. The logging execution unit can efficiently execute control data logging by repeating this operation.

また、ロギング実行部が一時メモリ内のデータを取得している間の制御データもロギングするために、一時メモリを複数設けることも考えられている(たとえば、特許文献2参照)。   It is also conceivable to provide a plurality of temporary memories in order to log control data while the logging execution unit acquires data in the temporary memory (see, for example, Patent Document 2).

特開2000−235412号公報Japanese Patent Application Laid-Open No. 2000-235412 特開2004−310592号公報JP 2004-310592 A

しかしながら、上記従来のポーリング型のロギングを行うロギングシステムでは制御実行部の制御周期毎に、制御周期の監視、制御データの取得、内部メモリへの時系列記録を行う必要があり、制御実行部の制御周期が短い場合にはこれを実現する事は困難である。   However, in the conventional logging system that performs the polling type logging, it is necessary to monitor the control cycle, acquire the control data, and record the time series in the internal memory for each control cycle of the control execution unit. It is difficult to realize this when the control cycle is short.

また、制御装置の制御実行部の制御周期に比して高速なロギング実行部の動作を実現するために、ロギング装置を制御装置よりも高速・高価なハードウェアで構成する必要があるが、これは制御することを主たる目的とする制御システム全体から考えると本末転倒である。   Also, in order to realize the operation of the logging execution unit that is faster than the control cycle of the control execution unit of the control device, it is necessary to configure the logging device with hardware that is faster and more expensive than the control device. Is the end of the fall when considering the whole control system whose main purpose is to control.

また、上記従来のポーリング型のロギングを行うロギングシステムにおいて、制御周期の監視および制御データの取得を前述の前者の方式で行った場合、取得できる制御データは内部バス上に流れている入出力データのみであり、制御装置内の内部データを取得することができない。   Also, in the above-described conventional logging system that performs polling-type logging, when the former method is used to monitor the control cycle and acquire control data, the control data that can be acquired is the input / output data flowing on the internal bus. However, the internal data in the control device cannot be acquired.

また、制御周期の監視および制御データの取得を前述の後者の方式で行った場合、ロギング実行部は監視および取得の度に制御装置へ要求を行うため、制御装置はこれに応答する処理を実行する必要があり、制御装置の主たる目的である制御動作に遅延等の悪影響を及ぼしてしまう。また、制御装置が制御動作を優先するために、ロギング実行部からの要求への応答処理を遅延する場合、ロギング実行部は制御周期と同期したロギングを実現することが不可能となる。   In addition, when the control cycle is monitored and the control data is acquired by the latter method, the logging execution unit makes a request to the control device every time it is monitored and acquired. Therefore, the control operation, which is the main purpose of the control device, is adversely affected such as a delay. In addition, when the control device delays the response processing to the request from the logging execution unit in order to give priority to the control operation, the logging execution unit cannot realize logging synchronized with the control cycle.

一方、従来のプッシュ型のロギングを行うロギングシステムでは、ロギング実行部は読出し許可フラグの監視および一時メモリ内の時系列データ取得の度に制御装置へ要求を行うため、制御装置はこれに応答する処理を実行する必要があり、制御装置の主たる目的である制御動作に遅延等の悪影響を及ぼす。この場合、上記ポーリング型のロギングシステムに比して、データ取得処理は効率化されているため、制御装置に与える影響は全体としては小さいものの、一度に一括でデータを取得するために瞬間的に制御装置に悪影響を与える。   On the other hand, in a conventional logging system that performs push-type logging, the logging execution unit makes a request to the control device each time the read permission flag is monitored and time series data in the temporary memory is acquired, and the control device responds to this request. It is necessary to execute the process, which adversely affects the control operation, which is the main purpose of the control device, such as delay. In this case, since the data acquisition process is more efficient than the above-mentioned polling-type logging system, the influence on the control device is small as a whole, but in order to acquire data all at once, This will adversely affect the control device.

また、制御装置が制御動作を優先するために、ロギング実行部からの要求への応答処理を遅延する場合、ロギング実行部の一時メモリからのデータ取得に遅れが生じ、データ収集部による一時メモリへのデータの上書きが発生することにより、時系列データに欠落が発生する。   In addition, when the control device delays the response processing to the request from the logging execution unit in order to give priority to the control operation, a delay occurs in the data acquisition from the temporary memory of the logging execution unit, and the data collection unit stores the data in the temporary memory. When the data is overwritten, the time series data is lost.

さらに、プッシュ型のロギングを行うロギングシステムでは制御装置内にデータ収集部を設ける必要があるが、専用のハードウェアまたはソフトウェアで実現する場合にはコストがかかる。データ収集部を制御実行部で実行可能な制御プログラムの一部として実現する場合には、ロギング対象の制御データやロギングの条件が変更になる度にプログラムを作成する必要が発生し、人的コストがかかる。   Further, in a logging system that performs push-type logging, it is necessary to provide a data collection unit in the control device. However, when it is realized by dedicated hardware or software, there is a cost. If the data collection unit is implemented as part of a control program that can be executed by the control execution unit, it will be necessary to create a program each time the control data to be logged and the logging conditions change, resulting in human costs. It takes.

本発明は、上記に鑑みてなされたものであって、制御装置のデータをロギングするロギングシステムであって、制御装置と同等以下の性能のハードウェアを使用したロギング装置により、ロギング処理時に制御装置に負荷を与えずに且つ制御周期の大小に関わらず制御周期毎のデータのロギングの実行が可能なロギングシステムを得ることを目的とする。   The present invention has been made in view of the above, and is a logging system that logs data of a control device. The logging device uses hardware having performance equal to or less than that of the control device. It is an object of the present invention to provide a logging system that can execute data logging for each control period regardless of the control period.

上述した課題を解決し、目的を達成するために、本発明にかかるロギングシステムは、所定の制御を実行して該制御に関するデータを保持する制御装置と、制御装置とアクセス可能に接続され、制御装置の保持するデータを時系列的に記憶する記憶装置と、記憶装置とアクセス可能に接続され、記憶装置が記憶したデータを読み出してロギングするロギング装置と、を備え、制御装置は、制御装置に保持されたデータを取得して記憶装置に送出して書き込む機能部を有し、記憶装置は、機能部により書き込まれるデータをリングバッファ形式で時系列的に記憶する記憶領域と、機能部による記憶領域に対する前回の書き込み処理においてデータが書き込まれた位置を示す書き込み位置情報を記憶する書き込み位置領域と、ロギング装置による記憶領域からの前回の読み出し処理においてデータが読み出された位置を示す読み出し位置情報を記憶する読み出し位置領域と、を有し、機能部は、データを記憶領域に書き込む際に書き込み位置情報と読み出し位置情報とを記憶装置から取得してこれらの情報を照合し、これらの情報が一致する場合にはデータの取得を停止し、これらの情報が一致しない場合には記憶領域における書き込み位置情報で示される位置の次の位置にデータを記録し、制御装置からロギング装置に対して、記憶装置を介してプッシュ型のロギングを行なうことを特徴とする。 In order to solve the above-described problems and achieve the object, a logging system according to the present invention includes a control device that executes predetermined control and retains data related to the control, and is connected to the control device in an accessible manner. A storage device that stores data held by the device in time series, and a logging device that is connected to the storage device so as to be accessible and reads and logs the data stored in the storage device. The storage device has a function unit that acquires the retained data, sends it to the storage device, and writes it. The storage device stores the data written by the function unit in a ring buffer format in time series, and the storage by the function unit By the logging device and the writing position area that stores the writing position information indicating the position where the data was written in the previous writing process to the area A read position area for storing read position information indicating a position where data was read in the previous read process from the storage area, and the functional unit reads the write position information and the data when writing the data to the storage area. The position information is obtained from the storage device and the information is collated. When the information matches, the data acquisition is stopped. When the information does not match, the position information is indicated by the write position information in the storage area. Data is recorded at a position next to the position to be recorded, and push type logging is performed from the control device to the logging device via a storage device.

この発明によれば、制御装置とロギング装置との間にデータの時系列バッファリング用の記憶装置を有し、制御装置のデータを一旦該記憶装置に記憶し、記憶装置に記憶したデータをロギング装置に取り込んで記憶する。これにより、ロギング装置はデータを任意のタイミングで効率良く且つ高速に取得することができ、制御装置の制御周期が短い場合でも制御周期毎のロギングを実現することができる、という効果を奏する。   According to this invention, the storage device for time-series buffering of data is provided between the control device and the logging device, the control device data is temporarily stored in the storage device, and the data stored in the storage device is logged. Capture and store in the device. Thereby, the logging device can acquire data efficiently and at high speed at an arbitrary timing, and it is possible to realize logging for each control cycle even when the control cycle of the control device is short.

また、この発明によれば、ロギング装置が制御装置の制御周期に比して高速の動作を行う必要がないため、制御装置と同等またはそれ以下の性能を有する構成によりロギング装置を実現可能である、という効果を奏する。   Further, according to the present invention, since the logging device does not need to perform a high-speed operation as compared with the control cycle of the control device, the logging device can be realized with a configuration having a performance equivalent to or lower than that of the control device. , Has the effect.

また、ロギング装置が制御装置にロギング処理要求を出すことなく、ロギング装置が制御データを取得する際に制御装置はロギング装置からのデータ取得要求への応答処理を行う必要がないため、制御装置に負荷がかからず制御機能の実行に影響を及ぼすことがない、という効果を奏する。   In addition, the logging device does not issue a logging processing request to the control device, and when the logging device acquires control data, the control device does not need to perform response processing to the data acquisition request from the logging device. There is an effect that no load is applied and the execution of the control function is not affected.

以下に、本発明にかかるロギングシステムの実施の形態を図面に基づいて詳細に説明する。なお、本発明は以下の記述に限定されるものではなく、本発明の要旨を逸脱しない範囲において適宜変更可能である。   Hereinafter, an embodiment of a logging system according to the present invention will be described in detail with reference to the drawings. In addition, this invention is not limited to the following description, In the range which does not deviate from the summary of this invention, it can change suitably.

実施の形態.
図1は、本発明の好適な実施の形態にかかるロギングシステムの概略構成を示す図である。図1に示すように本実施の形態にかかるロギングシステムは、シーケンス制御を行なうための制御装置11と、制御データの時系列バッファリング用の記憶手段である共有メモリ21と、制御装置11内の制御データを取得するためのロギング装置31と、ロギングパラメータであるロギング対象となる制御データを指定する指定情報・ロギングの条件を指定するロギング条件情報の設定手段でありロギング設定ツール42がインストールされたパーソナルコンピュータ41と、を備えて構成される。
Embodiment.
FIG. 1 is a diagram showing a schematic configuration of a logging system according to a preferred embodiment of the present invention. As shown in FIG. 1, the logging system according to the present embodiment includes a control device 11 for performing sequence control, a shared memory 21 that is a storage unit for time-series buffering of control data, A logging device 31 for acquiring control data, a specification parameter for specifying control data to be logged as a logging parameter and a logging condition information setting means for specifying a logging condition, and a logging setting tool 42 are installed. And a personal computer 41.

制御装置11は、制御実行部13とデータ収集部15とを備える。制御実行部13は、自制御装置11が制御を行なうための制御プログラム12に従って所定の制御機能を実行する制御実行部13と、ロギング対象である制御実行部13の制御に関する制御データ14と、を備える。また、データ収集部15は、パーソナルコンピュータ41内のロギング設定ツール42で設定したロギング対象の制御データ14を取得し、共有メモリ21に記録する。   The control device 11 includes a control execution unit 13 and a data collection unit 15. The control execution unit 13 includes a control execution unit 13 that executes a predetermined control function in accordance with a control program 12 for the own control device 11 to perform control, and control data 14 related to the control of the control execution unit 13 that is a logging target. Prepare. Further, the data collection unit 15 acquires the control data 14 to be logged set by the logging setting tool 42 in the personal computer 41 and records it in the shared memory 21.

また、データ収集部15は、ロギング設定ツール42で設定された、ロギング対象となる制御データを指定する指定情報・ロギングの条件を指定するロギング条件情報を元に、制御装置11が制御可能なシーケンスプログラムとしてロギング装置31の生成部34が生成したプログラムによりその機能が実現されている。制御装置11とロギング装置31とは内部バス51により電気的に接続されている。   Further, the data collection unit 15 is a sequence that can be controlled by the control device 11 based on the designation information for specifying the control data to be logged and the logging condition information for specifying the logging condition set by the logging setting tool 42. The function is realized by a program generated by the generation unit 34 of the logging device 31 as a program. The control device 11 and the logging device 31 are electrically connected by an internal bus 51.

共有メモリ21は、制御装置11で生成された制御データ14を時系列的にバッファリングする記憶手段、いわゆる共有メモリであり、制御装置11とロギング装置31との双方向からアクセスすることができ、時系列のリングバッファリング形式で機能する。   The shared memory 21 is storage means for buffering the control data 14 generated by the control device 11 in a time series, so-called shared memory, and can be accessed from both directions of the control device 11 and the logging device 31. Works in a time-series ring buffering format.

この共有メモリ21は、制御データ14を記憶するために十分な容量があることとする。この共有メモリ21には、たとえば図1に示すように制御データレコード(1)、制御データレコード(2)、・・・、制御データレコード(M)、のように制御データ14が時系列的に記憶される。ここでは、制御データレコード(1)が時系列的に一番古いデータであり、制御データレコード(M)が時系列的に一番新しいデータである。   The shared memory 21 has a sufficient capacity for storing the control data 14. In the shared memory 21, for example, as shown in FIG. 1, the control data 14 such as the control data record (1), the control data record (2),... Remembered. Here, the control data record (1) is the oldest data in time series, and the control data record (M) is the newest data in time series.

また、共有メモリ21は、制御装置11におけるシーケンス制御周期毎にデータ収集部15が制御データ14を自共有メモリ21に書き込んだ位置を示す書き込み位置情報を、自メモリ内の領域「書き込み位置」に記憶する。また、共有メモリ21は、制御装置11におけるシーケンス制御周期毎にロギング装置31が自共有メモリ21から制御データ14を読み出した位置を示す読み出し位置情報を、自メモリ内の領域「読み出し位置」に記憶する。   In addition, the shared memory 21 stores the write position information indicating the position where the data collection unit 15 has written the control data 14 in the own shared memory 21 for each sequence control cycle in the control device 11 in the area “write position” in the own memory. Remember. In addition, the shared memory 21 stores read position information indicating the position at which the logging device 31 has read the control data 14 from the own shared memory 21 at each sequence control cycle in the control device 11 in the area “read position” in the own memory. To do.

ロギング装置31は、内部メモリ32とロギング実行部33と生成部34とを有する。内部メモリ32は、ロギング対象となる制御装置11内の制御データ14を最終的に格納するためのロギング装置31内の内部メモリである。そして内部メモリ32は、ロギング対象となる制御データ14を格納するために十分な容量を有する。   The logging device 31 includes an internal memory 32, a logging execution unit 33, and a generation unit 34. The internal memory 32 is an internal memory in the logging device 31 for finally storing the control data 14 in the control device 11 to be logged. The internal memory 32 has a sufficient capacity for storing the control data 14 to be logged.

この内部メモリ32には、たとえば図1に示すように制御データレコード(X)、制御データレコード(1)、制御データレコード(2)、・・・、制御データレコード(M)、制御データレコード(N)のように制御データ14が時系列的に記憶される。ここでは、制御データレコード(X)が時系列的に一番古いデータであり、制御データレコード(N)が時系列的に一番新しいデータであり、元々、制御データレコード(X)が内部メモリ32に記憶されていた状態において制御データレコード(1)、制御データレコード(2)、・・・、制御データレコード(M)、制御データレコード(N)がこの順で記憶された状態を示している。   In this internal memory 32, for example, as shown in FIG. 1, control data record (X), control data record (1), control data record (2),..., Control data record (M), control data record ( Control data 14 is stored in time series as in (N). Here, the control data record (X) is the oldest data in time series, the control data record (N) is the newest data in time series, and the control data record (X) is originally the internal memory. 32 shows a state in which the control data record (1), the control data record (2),..., The control data record (M), and the control data record (N) are stored in this order. Yes.

ロギング実行部33は、ロギング対象となる制御データ14をロギング装置内に収集する。すなわち、ロギング実行部33は、制御装置11内のデータ収集部15により制御装置11とロギング装置31との間にある共有メモリ21に書き込まれたロギング対象となる制御データ14を共有メモリ21から取得し、ロギング装置31内の内部メモリ32に書き込んで記憶させる実行部である。   The logging execution unit 33 collects the control data 14 to be logged in the logging device. That is, the logging execution unit 33 acquires from the shared memory 21 the control data 14 to be logged written in the shared memory 21 between the control device 11 and the logging device 31 by the data collecting unit 15 in the control device 11. And an execution unit for writing into the internal memory 32 in the logging device 31 and storing it.

また、ロギング実行部33は、ロギング設定ツール42で設定された、ロギング対象となる制御データを指定する指定情報・ロギングの条件を指定するロギング条件情報を元に、ロギング装置31が制御可能なプログラムとして生成部34が生成したプログラムによりその機能が実現されている。   Further, the logging execution unit 33 is a program that can be controlled by the logging device 31 based on the specification information for specifying the control data to be logged and the logging condition information for specifying the logging conditions set by the logging setting tool 42. The function is realized by a program generated by the generation unit 34.

生成部34は、制御装置11内の制御データ14をロギング装置31内の制御装置11とロギング装置31との間にある共有メモリ21に書き込むデータ収集部15を、制御装置11が実行することのできるシーケンスプログラムとして自動生成する。すなわち、生成部34は、ロギング設定ツール42で設定されたロギング対象となる制御データを指定する指定情報・ロギングの条件を指定するロギング条件情報を元に、データ収集部15を制御装置11が実行することのできるシーケンスプログラムとして自動生成する。   The generation unit 34 is configured to cause the control device 11 to execute the data collection unit 15 that writes the control data 14 in the control device 11 to the shared memory 21 between the control device 11 in the logging device 31 and the logging device 31. Automatically generated as a possible sequence program. That is, the control unit 11 executes the data collection unit 15 based on the specification information for specifying the control data to be logged and the logging condition information for specifying the logging condition set by the logging setting tool 42. It is automatically generated as a sequence program that can be used.

また、生成部34は、制御装置11とロギング装置31との間にある共有メモリ21に書き込まれた制御データ14をロギング装置31内の内部メモリ32に書き込むためのロギング実行部33を、ロギング装置31が実行することのできるプログラムとして自動生成する。すなわち、生成部34は、ロギング設定ツール42で設定されたロギング対象となる制御データを指定する指定情報・ロギングの条件を指定するロギング条件情報を元に、ロギング実行部33をロギング装置31が実行することのできるプログラムとして自動生成する。   The generation unit 34 also includes a logging execution unit 33 for writing the control data 14 written in the shared memory 21 between the control device 11 and the logging device 31 to the internal memory 32 in the logging device 31. 31 is automatically generated as a program that can be executed. That is, the generation unit 34 executes the logging execution unit 33 based on the specification information for specifying the control data to be logged and the logging condition information for specifying the logging condition set by the logging setting tool 42. Automatically generated as a program that can do.

つぎに、以上のように構成された本実施の形態にかかるロギングシステムにおけるロギング処理方法について説明する。図2は、本実施形態にかかるロギングシステムにおけるロギング処理の対象となる制御装置11内の制御データ14を設定するロギングパラメータの設定方法を示すフローチャートである。   Next, a logging processing method in the logging system according to the present embodiment configured as described above will be described. FIG. 2 is a flowchart showing a logging parameter setting method for setting the control data 14 in the control device 11 that is the target of the logging process in the logging system according to the present embodiment.

まず、パーソナルコンピュータ41内のロギング設定ツール42により、ロギング対象となる制御データ14の種類、サイズ等のロギングパラメータの入力設定を行なう(ステップS100)。ステップS100で設定されたロギング対象となる制御データ14は、通信ケーブル43を経由してロギング装置31内のたとえば内部メモリ32に書き込まれる(ステップS110)。   First, the logging setting tool 42 in the personal computer 41 is used to input and set logging parameters such as the type and size of the control data 14 to be logged (step S100). The control data 14 to be logged set in step S100 is written to, for example, the internal memory 32 in the logging device 31 via the communication cable 43 (step S110).

つぎに、ロギング装置31では、ステップS100で設定されステップS110で内部メモリ32に書き込まれたロギングパラメータに基づいて、データ収集部15として制御装置11が実行することのできるシーケンスプログラムを生成部34が自動生成し(ステップS120)、該自動生成されたシーケンスプログラム(データ収集部15)を内部バス51経由で制御装置11に書き込む(ステップS130)。   Next, in the logging device 31, the generation unit 34 generates a sequence program that can be executed by the control device 11 as the data collection unit 15 based on the logging parameters set in step S 100 and written in the internal memory 32 in step S 110. Automatically generated (step S120), and the automatically generated sequence program (data collection unit 15) is written to the control device 11 via the internal bus 51 (step S130).

また、ロギング装置31は、ステップS100で設定されステップS110で内部メモリ32に書き込まれたロギングパラメータに基づいて、制御装置11とロギング装置31との間にある共有メモリ21に書き込まれた制御データ14をロギング装置31内の内部メモリ32に書き込むためのロギング実行部33としてロギング装置31が実行することのできるプログラムを生成部34が自動生成し、ロギング装置31に書き込む。   Further, the logging device 31 controls the control data 14 written in the shared memory 21 between the control device 11 and the logging device 31 based on the logging parameters set in step S100 and written in the internal memory 32 in step S110. Is automatically generated by the generation unit 34 as the logging execution unit 33 for writing the data to the internal memory 32 in the logging unit 31 and written in the logging unit 31.

データ収集部15を書き込み後、制御装置11を実行すると、パーソナルコンピュータ41内のロギング設定ツール42で設定した種類、サイズの制御データ14がデータ収集部15によって制御装置11とロギング装置31の間にある共有メモリ21に書き込まれる。また、制御装置11が制御処理を実行中の場合には、ロギング装置31が制御装置11に内部バス51経由で書き込んだ時点で上述のロギングが開始される。   When the control device 11 is executed after writing the data collection unit 15, the control data 14 of the type and size set by the logging setting tool 42 in the personal computer 41 is transferred between the control device 11 and the logging device 31 by the data collection unit 15. It is written in a certain shared memory 21. Further, when the control device 11 is executing the control process, the above-described logging is started when the logging device 31 writes the control device 11 via the internal bus 51.

つぎに、制御装置11が制御データ14を制御装置11とロギング装置31の間にある共有メモリ21に書き込む処理の手順について図3を参照しながら説明する。図3は、本実施の形態にかかるロギングシステムにおいて、制御装置11が制御データ14を共有メモリ21に書き込む処理を説明するためのフローチャートである。   Next, a procedure of processing in which the control device 11 writes the control data 14 to the shared memory 21 between the control device 11 and the logging device 31 will be described with reference to FIG. FIG. 3 is a flowchart for explaining a process in which the control device 11 writes the control data 14 to the shared memory 21 in the logging system according to the present embodiment.

まず、ロギング装置31の起動時は、ロギング装置31内の内部メモリ32のデータはクリアされた状態である。また、制御装置11とロギング装置31との間にある共有メモリ21内の領域「書き込み位置」、領域「読み出し位置」には、共有メモリ21の先頭位置が代入されている。そして、図2に示した手順でロギング処理を開始させると、ロギングパラメータの設定により指定された制御データ14を、制御装置11のデータ収集部15が取得する(ステップS200)。   First, when the logging device 31 is activated, the data in the internal memory 32 in the logging device 31 is in a cleared state. Further, the head position of the shared memory 21 is assigned to the area “write position” and the area “read position” in the shared memory 21 between the control device 11 and the logging device 31. Then, when the logging process is started by the procedure shown in FIG. 2, the data collection unit 15 of the control device 11 acquires the control data 14 designated by the setting of the logging parameter (step S200).

取得した制御データ14を制御装置11とロギング装置31との間の共有メモリ21に書き込む際の書き込み位置を知るために、データ収集部15は、前回のデータ収集で共有メモリ21へ制御データ14を書き込んだ位置を、共有メモリ21の領域「書き込み位置」から書き込み位置情報として取得する(ステップS210)。ただし、初期時は前回の書き込み位置情報が存在しないので、初期化時に書き込んだ制御装置11とロギング装置31との間の共有メモリ21の先頭位置を使用する。   In order to know the writing position when the acquired control data 14 is written in the shared memory 21 between the control device 11 and the logging device 31, the data collection unit 15 sends the control data 14 to the shared memory 21 in the previous data collection. The writing position is acquired as writing position information from the area “writing position” of the shared memory 21 (step S210). However, since there is no previous writing position information at the initial time, the head position of the shared memory 21 between the control device 11 and the logging device 31 written at the initialization is used.

そして、たとえばロギング装置31のトラブル等により共有メモリ21から制御データ14を取得できなかった場合に、データ収集部15が共有メモリ21に制御データ14を上書きすることによって未だロギング実行部33が内部メモリ32に記録していない制御データ14が消されないように(上書きされないように)、データ収集部15は、前回にロギング実行部33が内部メモリ32に記録するために共有メモリ21から制御データ14を読み出した位置の情報として読み出し位置情報を取得する(ステップS220)。   For example, when the control data 14 cannot be acquired from the shared memory 21 due to a trouble of the logging device 31 or the like, the data collection unit 15 overwrites the control data 14 in the shared memory 21 so that the logging execution unit 33 is still in the internal memory In order to prevent the control data 14 not recorded in 32 from being deleted (so as not to be overwritten), the data collection unit 15 stores the control data 14 from the shared memory 21 for the logging execution unit 33 to record in the internal memory 32 last time. Read position information is acquired as the read position information (step S220).

そして、前述した理由から、データ収集部15は取得した読み出し位置情報と書き込み位置情報とを照合する(ステップS230)。   For the reason described above, the data collection unit 15 collates the acquired read position information with the write position information (step S230).

ここで、取得した読み出し位置情報と書き込み位置情報とを照合した結果、読み出し位置と書き込み位置とが一致する場合には(ステップS230肯定)、データ収集部15による共有メモリ21への制御データ14の上書きを防ぐために、制御装置11内のデータ収集部15は制御データ14の取得を停止する。   Here, if the read position and the write position match as a result of collating the acquired read position information and the write position information (Yes at Step S230), the control data 14 to the shared memory 21 by the data collecting unit 15 is stored. In order to prevent overwriting, the data collection unit 15 in the control device 11 stops acquiring the control data 14.

さらに、この制御データの取得停止をユーザに通知するために、データ収集部15はロギング装置31を経由して制御データ取得停止情報をパーソナルコンピュータ41に通知する。パーソナルコンピュータ41は、ロギングが実行されなかった旨の内容を伝えるエラーメッセージを接続される表示装置等に表示する(ステップS240)。これにより、本実施の形態にかかるロギングシステムにおいては、制御データ14をシーケンス制御周期毎に取得できていない事を検出・通知する機能が実現されている。   Further, the data collection unit 15 notifies the personal computer 41 of the control data acquisition stop information via the logging device 31 in order to notify the user of the control data acquisition stop. The personal computer 41 displays an error message informing the content that the logging has not been executed on a connected display device or the like (step S240). Thereby, in the logging system according to the present embodiment, a function of detecting and notifying that the control data 14 is not acquired every sequence control period is realized.

一方、ステップS230に戻って、取得した読み出し位置と書き込み位置とを照合した結果、書き込み位置と読み出し位置とが異なる場合は(ステップS230否定)、ステップS210において取得した書き込み位置をインクリメントする(ステップS250)。そして、制御装置11とロギング装置31の間の共有メモリ21のメモリ領域において、インクリメントされた書き込み位置にステップS200で取得した制御データ14を書き込む。   On the other hand, returning to step S230, when the acquired read position and the write position are collated, if the write position and the read position are different (No at step S230), the write position acquired at step S210 is incremented (step S250). ). Then, in the memory area of the shared memory 21 between the control device 11 and the logging device 31, the control data 14 acquired in step S200 is written in the incremented write position.

さらに、前述のステップS250でインクリメントした書き込み位置を、制御装置11とロギング装置31の間の共有メモリ21の領域「書き込み位置」に書き込み位置情報として書き込む(ステップS260)。   Further, the write position incremented in the above-described step S250 is written as write position information in the area “write position” of the shared memory 21 between the control device 11 and the logging device 31 (step S260).

そして、上述したステップS200〜ステップS260までの処理を一定周期で、たとえば制御装置11の制御実行部13における制御周期と同期して制御周期毎に実行することにより、制御装置11内のロギング対象データである制御データ14を制御装置11とロギング装置31の間の共有メモリ21に時系列的に書き込むことができる。また、ロギング装置31内のロギング実行部33が未だ内部メモリ32に書き込んでいない制御データ14の上書きを防止し、通知する機能を実現することができる。   Then, the processing from step S200 to step S260 described above is executed at regular intervals, for example, every control cycle in synchronism with the control cycle in the control execution unit 13 of the control device 11, whereby the data to be logged in the control device 11 is recorded. The control data 14 can be written to the shared memory 21 between the control device 11 and the logging device 31 in time series. In addition, the logging execution unit 33 in the logging device 31 can prevent the control data 14 that has not yet been written to the internal memory 32 from being overwritten and can realize a notification function.

つぎに、ロギング装置31内のロギング実行部33が共有メモリ21から制御データ14を取得して内部メモリ32へ書き込む処理の手順について図4を参照しながら説明する。図4は、本実施の形態にかかるロギングシステムにおいて、ロギング実行部33が共有メモリ21から制御データ14を取得して内部メモリ32へ書き込む処理を説明するためのフローチャートである。   Next, a procedure of processing in which the logging execution unit 33 in the logging device 31 acquires the control data 14 from the shared memory 21 and writes it in the internal memory 32 will be described with reference to FIG. FIG. 4 is a flowchart for explaining a process in which the logging execution unit 33 acquires the control data 14 from the shared memory 21 and writes it in the internal memory 32 in the logging system according to the present embodiment.

ロギング装置31内のロギング実行部33は、共有メモリ21のどこから制御データ14を取得するかを知るために、共有メモリ21内の領域「読み出し位置」に書き込まれた読み出し位置情報を読み出して取得する。ただし、初期時は前回の読み出し位置情報が存在しないので、初期化時に書き込んだ共有メモリ21の先頭位置を使用する(ステップS300)。   The logging execution unit 33 in the logging device 31 reads out and acquires the read position information written in the area “read position” in the shared memory 21 in order to know from where in the shared memory 21 the control data 14 is acquired. . However, since the previous read position information does not exist at the initial time, the head position of the shared memory 21 written at the initialization is used (step S300).

つぎに、ロギング装置31内のロギング実行部33は、共有メモリ21のどこまで制御データ14を取得するかを知るために、共有メモリ21内の領域「書き込み位置」から書き込み位置情報を読み出す(ステップS310)。   Next, the logging execution unit 33 in the logging device 31 reads the write position information from the area “write position” in the shared memory 21 in order to know how far the control data 14 is acquired in the shared memory 21 (step S310). ).

つぎに、ロギング装置31ではステップS300〜ステップS310で読み出した読み出し位置から書き込み位置までの共有メモリ21内の制御データ14を取得する(ステップS320)。すなわち、ロギング装置31内のロギング実行部33が、ステップS300〜ステップS310で読み出した読み出し位置から書き込み位置までの共有メモリ21内の制御データ14を読み出して、ロギング装置31内の内部メモリ32へ書き込む。書き込み先の内部メモリ32においては、前回書き込みが終了した位置から書き込みが行われる。   Next, the logging device 31 acquires the control data 14 in the shared memory 21 from the read position to the write position read in steps S300 to S310 (step S320). That is, the logging execution unit 33 in the logging device 31 reads the control data 14 in the shared memory 21 from the read position to the write position read in steps S300 to S310, and writes it in the internal memory 32 in the logging device 31. . In the internal memory 32 of the writing destination, writing is performed from the position where the previous writing has been completed.

内部メモリ32への制御データ14の書き込み完了後、ロギング装置31内のロギング実行部33は、共有メモリ21から制御データ14を読み出した位置を共有メモリ21の領域「読み出し位置」に読み出し位置情報として書き込み、設定する。また、ロギング装置31内のロギング実行部33は、ロギング装置31内の内部メモリ32に制御データ14の書き込みが完了した書き込み位置を、内部メモリ32内の領域「書き込み位置」に書き込み位置情報として書き込み、設定する(ステップS330)。   After completing the writing of the control data 14 to the internal memory 32, the logging execution unit 33 in the logging device 31 reads the position where the control data 14 is read from the shared memory 21 into the area “read position” of the shared memory 21 as read position information. Write and set. Further, the logging execution unit 33 in the logging device 31 writes the writing position where the control data 14 has been written to the internal memory 32 in the logging device 31 as writing position information in the area “writing position” in the internal memory 32. Are set (step S330).

上述したステップS300〜ステップS330までの処理を一定周期で、たとえば制御装置11の制御実行部13における制御周期と同期して制御周期毎に実行することにより、制御装置11とロギング装置31との間にある共有メモリ21に書き込まれたロギング対象の制御データ14を、ロギング実行部33によってロギング装置31内の内部メモリ32に書き込むことができる。   By executing the above-described processing from step S300 to step S330 in a constant cycle, for example, every control cycle in synchronization with the control cycle in the control execution unit 13 of the control device 11, between the control device 11 and the logging device 31. The logging target control data 14 written in the shared memory 21 can be written into the internal memory 32 in the logging device 31 by the logging execution unit 33.

以上のような本実施の形態にかかるロギングシステムにおいては、上述した処理を実行することにより、ロギング装置31が制御装置11にロギング処理要求を出すことなく、制御周期と同期して制御装置11内の制御データ14を制御周期毎にロギング装置31内の内部メモリ32に収集することができる。すなわち、本実施の形態にかかるロギングシステムにおいては、制御装置11とロギング装置31との間に制御データ14の時系列バッファリング用の共有メモリ21を有し、制御装置11の制御データ14を一旦該共有メモリ21に記憶し、共有メモリ21に記憶した制御データ14をロギング装置31に取り込んで記憶する。   In the logging system according to the present embodiment as described above, by executing the above-described processing, the logging device 31 does not issue a logging processing request to the control device 11, and synchronizes with the control cycle. The control data 14 can be collected in the internal memory 32 in the logging device 31 every control cycle. That is, in the logging system according to the present embodiment, the shared memory 21 for time series buffering of the control data 14 is provided between the control device 11 and the logging device 31, and the control data 14 of the control device 11 is temporarily stored. The control data 14 stored in the shared memory 21 and stored in the shared memory 21 is taken into the logging device 31 and stored.

これにより、ロギング装置31は制御データ14を任意のタイミングで効率良く且つ高速に取得することができ、制御装置11の制御周期が短い場合でも制御周期毎のロギングを実現することができる。また、ロギング処理時に制御装置11の制御動作に影響を与えることなくロギング装置31は制御装置11内のロギング対象である制御データ14を取得することができる。   Thereby, the logging device 31 can acquire the control data 14 efficiently and at high speed at an arbitrary timing, and can realize logging for each control cycle even when the control cycle of the control device 11 is short. Further, the logging device 31 can acquire the control data 14 that is the logging target in the control device 11 without affecting the control operation of the control device 11 during the logging process.

また、本実施の形態にかかるロギングシステムにおいては、ロギング処理要求を利用しないので、制御装置11の制御処理優先によるロギング装置31からのロギング処理要求待ちによる制御データ14の取りこぼしを防ぐ事ができる。   Further, in the logging system according to the present embodiment, since the logging process request is not used, it is possible to prevent the control data 14 from being overlooked due to the waiting for the logging process request from the logging apparatus 31 due to the priority of the control process of the control apparatus 11.

そして、ロギング装置31が制御データ14を取得する際に制御装置11はロギング装置31からのデータ取得要求への応答処理を行う必要がないため、制御装置11に負荷がかからず制御装置11の制御機能の実行に影響を及ぼすことがない。   When the logging device 31 acquires the control data 14, the control device 11 does not need to perform a response process to the data acquisition request from the logging device 31. Does not affect the execution of control functions.

また、上記のような本実施の形態にかかるロギングシステムでは、ロギング装置31のロギング実行部33において制御装置11の制御実行部13の制御周期に比して高速の動作を行う必要がないため、ロギング装置31を制御装置11と同等またはそれ以下の性能を有するハードウェア構成により実現可能である。   In the logging system according to the present embodiment as described above, the logging execution unit 33 of the logging device 31 does not need to perform a high-speed operation as compared with the control cycle of the control execution unit 13 of the control device 11, The logging device 31 can be realized by a hardware configuration having performance equivalent to or lower than that of the control device 11.

そして、制御装置11が実行可能であり且つ制御装置11が制御データ14をプッシュするためのプログラムを自動生成する機能をロギング装置31に備えた場合には、制御装置11内にデータ収集用の専用のハードウェアまたはソフトウェアを装備する必要がない。また、ロギング対象の制御データやロギングの条件が変更になる度にプログラムを作成する必要がない。ロギングシステムの運営に関して、物的コストおよび人的コストを抑制することができる。   If the logging device 31 has a function that can be executed by the control device 11 and automatically generates a program for the control device 11 to push the control data 14, the control device 11 has a dedicated function for collecting data. No need to equip any hardware or software. In addition, it is not necessary to create a program each time the control data to be logged or the logging conditions are changed. With regard to the operation of the logging system, physical costs and human costs can be suppressed.

さらに、制御データ14を制御周期毎に取得できない事を検出・通知する手段を備えた場合には、装置の故障または過大負荷により制御データのロギングに欠落が発生したことを検出・通知し、ユーザに通知することができる。   Further, when a means for detecting / notifying that the control data 14 cannot be acquired every control cycle is provided, it is detected / notified that the logging of the control data has been lost due to a device failure or an overload, and the user Can be notified.

さらに、ロギング対象となる制御データを指定する指定情報・ロギングの条件を指定するロギング条件情報の設定手段であるロギング設定ツール42と、これらの情報から制御装置が実行可能なプログラムを生成する手段である生成部34を備えた場合には、ユーザはロギング対象の制御データやロギングの条件の変更を容易に行うことが可能となる。   Further, there are designated information for specifying control data to be logged, a logging setting tool 42 for setting logging condition information for specifying logging conditions, and means for generating a program executable by the control device from these pieces of information. When a certain generation unit 34 is provided, the user can easily change the control data to be logged and the logging conditions.

以上のように、本発明にかかるロギングシステムは、プログラマブルコントローラ(PLC)などの制御装置の動作状態や制御対象の状態を監視・解析するために制御装置の制御データ(入出力データおよび内部データ)を収集するロギング処理を行うロギングシステムに有用である。   As described above, the logging system according to the present invention controls the control data (input / output data and internal data) of the control device in order to monitor and analyze the operation state of the control device such as the programmable controller (PLC) and the state of the control target. This is useful for logging systems that perform logging processing.

本発明の実施の形態にかかるロギングシステムの概略構成を示す図である。It is a figure showing a schematic structure of a logging system concerning an embodiment of the invention. 本発明の本実施形態にかかるロギングシステムにおけるロギング処理の対象となる制御装置内の制御データを設定するロギングパラメータの設定方法を示すフローチャートである。It is a flowchart which shows the setting method of the logging parameter which sets the control data in the control apparatus used as the object of the logging process in the logging system concerning this embodiment of this invention. 本発明の実施の形態にかかるロギングシステムにおいて、制御装置が制御データを共有メモリに書き込む処理を説明するためのフローチャートである。4 is a flowchart for explaining processing in which a control device writes control data to a shared memory in the logging system according to the embodiment of the present invention. 本発明の実施の形態にかかるロギングシステムにおいて、ロギング実行部が共有メモリから制御データを取得して内部メモリへ書き込む処理を説明するためのフローチャートである。6 is a flowchart for explaining a process in which a logging execution unit acquires control data from a shared memory and writes it to an internal memory in the logging system according to the embodiment of the present invention.

符号の説明Explanation of symbols

11 制御装置
12 制御プログラム
13 制御実行部
14 制御データ
15 データ収集部
21 共有メモリ
31 ロギング装置
32 内部メモリ
33 ロギング実行部
34 生成部
41 パーソナルコンピュータ
42 ロギング設定ツール
43 通信ケーブル
51 内部バス
DESCRIPTION OF SYMBOLS 11 Control apparatus 12 Control program 13 Control execution part 14 Control data 15 Data collection part 21 Shared memory 31 Logging apparatus 32 Internal memory 33 Logging execution part 34 Generation part 41 Personal computer 42 Logging setting tool 43 Communication cable 51 Internal bus

Claims (5)

所定の制御を実行して該制御に関するデータを保持する制御装置と、
前記制御装置とアクセス可能に接続され、前記制御装置の保持するデータを時系列的に記憶する記憶装置と、
前記記憶装置とアクセス可能に接続され、前記記憶装置が記憶した前記データを読み出してロギングするロギング装置と、
を備え、
前記制御装置は、
前記制御装置に保持された前記データを取得して前記記憶装置に送出して書き込む機能部を有し、
前記記憶装置は、
前記機能部により書き込まれる前記データをリングバッファ形式で時系列的に記憶する記憶領域と、
前記機能部による前記記憶領域に対する前回の書き込み処理において前記データが書き込まれた位置を示す書き込み位置情報を記憶する書き込み位置領域と、
前記ロギング装置による前記記憶領域からの前回の読み出し処理において前記データが読み出された位置を示す読み出し位置情報を記憶する読み出し位置領域と、
を有し、
前記機能部は、前記データを前記記憶領域に書き込む際に前記書き込み位置情報と前記読み出し位置情報とを前記記憶装置から取得してこれらの情報を照合し、これらの情報が一致する場合には前記データの取得を停止し、これらの情報が一致しない場合には前記記憶領域における前記書き込み位置情報で示される位置の次の位置に前記データを記録し、
前記制御装置からロギング装置に対して、前記記憶装置を介してプッシュ型のロギングを行なうこと
を特徴とするロギングシステム。
A control device for executing predetermined control and holding data related to the control;
A storage device that is connected to the control device in an accessible manner, and stores data held by the control device in time series;
A logging device that is connected to the storage device so as to be accessible and reads and logs the data stored in the storage device;
With
The control device includes:
A function unit that acquires the data stored in the control device, sends the data to the storage device, and writes the data;
The storage device
A storage area for storing the data written by the functional unit in a ring buffer format in a time series,
A writing position area for storing writing position information indicating a position where the data is written in the previous writing process to the storage area by the functional unit;
A read position area for storing read position information indicating a position where the data is read in the previous read process from the storage area by the logging device;
Have
The functional unit obtains the write position information and the read position information from the storage device when the data is written to the storage area, collates the information, and if the information matches, When the acquisition of data is stopped and these pieces of information do not match, the data is recorded at a position next to the position indicated by the write position information in the storage area,
A logging system, wherein push-type logging is performed from the control device to the logging device via the storage device.
前記ロギング装置は、前記機能部を、前記制御装置内に自動作成すること
を特徴とする請求項1に記載のロギングシステム。
The logging apparatus, logging system of claim 1, the pre-Symbol function unit, characterized in that it automatically created in the control device.
前記ロギング装置は、
ロギング対象となるデータを指定する指定情報を設定または変更する手段と、
前記設定または変更された指定情報を基に前記機能部を前記制御装置内に自動作成する手段と、
を備えることを特徴とする請求項2に記載のロギングシステム。
The logging device is
A means for setting or changing specification information for specifying data to be logged;
Means for automatically creating the functional unit in the control device based on the set or changed designation information;
The logging system according to claim 2, further comprising:
前記機能部を前記制御装置が実行可能なプログラムとして自動生成すること
を特徴とする請求項2に記載のロギングシステム。
The logging system according to claim 2, wherein the functional unit is automatically generated as a program executable by the control device.
前記データを制御の周期毎に取得できない事を検出・通知する手段を備えること
を特徴とする請求項1に記載のロギングシステム。
The logging system according to claim 1, further comprising means for detecting and notifying that the data cannot be acquired every control cycle.
JP2006053160A 2006-02-28 2006-02-28 Logging system Expired - Fee Related JP4659643B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006053160A JP4659643B2 (en) 2006-02-28 2006-02-28 Logging system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006053160A JP4659643B2 (en) 2006-02-28 2006-02-28 Logging system

Publications (2)

Publication Number Publication Date
JP2007233593A JP2007233593A (en) 2007-09-13
JP4659643B2 true JP4659643B2 (en) 2011-03-30

Family

ID=38554140

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006053160A Expired - Fee Related JP4659643B2 (en) 2006-02-28 2006-02-28 Logging system

Country Status (1)

Country Link
JP (1) JP4659643B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5264528B2 (en) * 2009-01-23 2013-08-14 三菱電機株式会社 Logging system
KR101277426B1 (en) 2009-03-23 2013-06-20 미쓰비시덴키 가부시키가이샤 A/d converter and programmable controller system
DE112012006775B4 (en) 2012-10-26 2018-12-27 Mitsubishi Electric Corporation Analog conversion device and programmable controller system
CN107615198B (en) * 2015-05-27 2019-11-08 三菱电机株式会社 Control device and data reproducing device
JP6926539B2 (en) * 2017-03-10 2021-08-25 オムロン株式会社 Controls and programs
JP6949274B1 (en) 2020-08-26 2021-10-13 三菱電機株式会社 Control device and control method
WO2022196562A1 (en) * 2021-03-17 2022-09-22 ファナック株式会社 Control device
JP7132461B1 (en) * 2021-03-17 2022-09-06 ファナック株式会社 Control device
JP7168114B1 (en) 2022-05-12 2022-11-09 富士電機株式会社 Programmable logic controller, support device, display device, logging method, support method, display method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06282314A (en) * 1993-03-26 1994-10-07 Mitsubishi Electric Corp Data logging device
JPH1141673A (en) * 1997-07-24 1999-02-12 Fuji Electric Co Ltd Data collection method
JP2000010608A (en) * 1998-06-24 2000-01-14 Omron Corp Communication equipment, plc unit and display unit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06282314A (en) * 1993-03-26 1994-10-07 Mitsubishi Electric Corp Data logging device
JPH1141673A (en) * 1997-07-24 1999-02-12 Fuji Electric Co Ltd Data collection method
JP2000010608A (en) * 1998-06-24 2000-01-14 Omron Corp Communication equipment, plc unit and display unit

Also Published As

Publication number Publication date
JP2007233593A (en) 2007-09-13

Similar Documents

Publication Publication Date Title
JP4659643B2 (en) Logging system
JP5122000B2 (en) A / D converter and programmable controller system
US20140236914A1 (en) Controller, information processing apparatus, and recording medium
US11644808B2 (en) Programable logic controller
JP6896195B1 (en) Control device and image recording method
JP2020134984A (en) Programmable logic controller and log data store method therefor
JP2023164999A (en) Program creation assistance device for programmable logic controller
CN103809502A (en) Controller and program
WO2020085077A1 (en) Control device and control program
US10627784B2 (en) Control system and control device
JP4894567B2 (en) Trace information output device and trace information output method
JP6727472B1 (en) Programmable logic controller, setting tool, and program
JP6079266B2 (en) Control device, log storage method, and control program
CN106484564B (en) Collected data storage method
JP2019159868A (en) Control system, controller and display device
JP5264528B2 (en) Logging system
JP2010188913A (en) Device and method for accumulating vehicle information
JP7282287B1 (en) Control device, control method and program
JP2019160148A (en) Data collection device, memory controller, arithmetic unit, information processing device, data collection system, and data collection method
JP3985530B2 (en) Fraud monitoring system
US20240045614A1 (en) Programmable controller, programmable controller system, data storage method, and recording medium
EP4365690A1 (en) Control device, system program, and method
JP6857068B2 (en) Time series data recording method and equipment
JP4876639B2 (en) Image verification processing system and environment reproduction method at the time of failure
JP2006039640A (en) Numerical controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090106

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100707

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100713

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100827

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20101227

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

Free format text: PAYMENT UNTIL: 20140107

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

LAPS Cancellation because of no payment of annual fees