JP4085286B2 - PLC monitoring system - Google Patents
PLC monitoring system Download PDFInfo
- Publication number
- JP4085286B2 JP4085286B2 JP2006355613A JP2006355613A JP4085286B2 JP 4085286 B2 JP4085286 B2 JP 4085286B2 JP 2006355613 A JP2006355613 A JP 2006355613A JP 2006355613 A JP2006355613 A JP 2006355613A JP 4085286 B2 JP4085286 B2 JP 4085286B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- variable
- plc
- collection unit
- virtual
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Programmable Controllers (AREA)
Description
この発明は、データ収集ユニットがプログラマブル・コントローラのメモリから収集した複数の変数の各収集時点の値のそれぞれに相当する一連の時系列ビットデータを画像表示器を介してモニタするPLCのモニタシステムに関する。 The present invention relates to a PLC monitoring system for monitoring a series of time-series bit data corresponding to respective values at each collection time of a plurality of variables collected from a memory of a programmable controller by a data collection unit via an image display. .
プログラマブル・コントローラ(PLC)は、制御を司るCPUユニット、外部とデータ通信する通信ユニット、センサなどを接続するI/Oユニット等をバス接続して構成される。CPUユニットはマイクロプロセッサと、制御内容に応じて予め作成されたユーザプログラムを記憶したユーザメモリとを内蔵している。所定のシステムプログラムを実行することによって、I/Oリフレッシュ処理、ユーザプログラム実行処理、周辺サービス処理をサイクリックに実行する。この一巡実行サイクルをサイクルタイムと一般に称する。I/Oリフレッシュ処理とは、PLCのCPUユニットがI/Oユニットとの間でバス通信を介して制御データであるINデータ、OUTデータを交換する処理である。CPUユニットは制御データであるINデータ、OUTデータを記憶するメモリ(例えば、入出力メモリ、データメモリ等々)を内蔵している。ところでPLCに接続可能なデータ収集ユニットが従来から知られている。このデータ収集ユニットは、CPUユニットのメモリに記憶された各種の制御データ(前述のINデータ、OUTデータを含む。具体的には例えば入出力信号のオンオフデータ)を周期的にかつ自動的に収集する機能を備えている。データ収集ユニットは、CPUユニットから指定周期でデータを収集し続け、時系列的な一連の制御データの変化を記憶する。なおデータ収集ユニットを「SPU」と略称する場合もある。データ収集ユニットはCPUユニットとバス接続している(特許文献1参照)。また、この種のデータ収集装置が収集した一連の制御データを表示器等のモニタ装置にてモニタすることが従来から知られている(特許文献2参照)。一連の制御データを記憶することで、例えば時系列的に変化する入出力信号のオンオフ信号(時系列ビットデータ列)を後述するモニタ装置で把握できる。 The programmable controller (PLC) is configured by bus-connecting a CPU unit that performs control, a communication unit that performs data communication with the outside, an I / O unit that connects sensors, and the like. The CPU unit includes a microprocessor and a user memory that stores a user program created in advance according to the control content. By executing a predetermined system program, I / O refresh processing, user program execution processing, and peripheral service processing are cyclically executed. This one-round execution cycle is generally called a cycle time. The I / O refresh process is a process in which the PLC CPU unit exchanges IN data and OUT data as control data with the I / O unit via bus communication. The CPU unit includes a memory (for example, an input / output memory, a data memory, etc.) for storing IN data and OUT data as control data. By the way, a data collection unit that can be connected to a PLC is conventionally known. This data collection unit periodically and automatically collects various control data (including the above-mentioned IN data and OUT data. Specifically, for example, on / off data of input / output signals) stored in the memory of the CPU unit. It has a function to do. The data collection unit continues to collect data from the CPU unit at a specified cycle, and stores a series of changes in control data in a time series. The data collection unit may be abbreviated as “SPU”. The data collection unit is connected to the CPU unit by a bus (see Patent Document 1). In addition, it is conventionally known that a series of control data collected by this type of data collection device is monitored by a monitor device such as a display (see Patent Document 2). By storing a series of control data, for example, an on / off signal (time-series bit data string) of an input / output signal that changes in time series can be grasped by a monitor device described later.
この種のモニタ装置では、データ収集ユニットにて収集された複数の変数のそれぞれに関する一連の時系列ビットデータに相当するパルス列波形を、画像表示器の画面上に複数行にわたり並べて表示させるのが通例である。 In this type of monitor device, it is common to display a pulse train waveform corresponding to a series of time-series bit data relating to each of a plurality of variables collected by a data collection unit, arranged side by side on a screen of an image display. It is.
ところで、この種のデータ収集ユニットにとって収集可能であるためには、PLCにおいて制御データや変数として扱われることが必要である。さらにCPUユニットに内蔵されるI/Oメモリ、データメモリに割り付けられている必要、つまりメモリの格納エリアが一義に決まっていることが必要である。したがって、例えば変数どうしの計算により求められるような特殊なデータをデータ収集ユニットにて収集したい場合には、変数を新しく設定し、PLCが変数どうしの計算を演算実行するようにユーザプログラム(例えばラダー図言語で作成されるプログラム)を追加修正するとともに、その新しい変数をI/Oメモリまたはデータメモリ内に割付ることが必要である。データ収集ユニット側でも、PLCのCPUユニットのメモリの割付エリアからその新たな変数を周期的に収集するように設定し、モニタ装置がそのデータを読み込んで表示するように設定することが必要である。 By the way, in order to be able to collect for this type of data collection unit, it is necessary to be treated as control data and variables in the PLC. Furthermore, it is necessary to allocate to the I / O memory and data memory built in the CPU unit, that is, the memory storage area must be uniquely determined. Therefore, for example, when it is desired to collect special data required by calculation between variables in the data collection unit, a new variable is set, and a user program (for example, a ladder program) is set so that the PLC performs calculation between variables. It is necessary to add and modify the program created in the graphic language and to allocate the new variable in the I / O memory or the data memory. The data collection unit also needs to be set so that the new variable is periodically collected from the memory allocation area of the PLC CPU unit, and set so that the monitor device reads and displays the data. .
例えば、一般に、PLCのデータメモリ内には、生産数や不良数と言ったアナログ変数が定義されているのであるが、それとは別に、良品数や良品率と言ったアナログ変数を取得しようとした場合には、PLC固有の命令語を使用してそれらの変数に相当する演算式をPLC側で定義しなければならない。具体的な演算式を書くと「良品数=生産数−不良数」、「良品率=(生産数−不良数)÷生産数」となるが、これをユーザプログラムに書き加えなければならない。
しかしながら、既に、PLCが運転状態に移行して正常に稼働しているときに、新たに、ユーザプログラムの追加修正等を行うことは、サイクルタイムの増加や予期せぬ誤動作の原因となることが懸念され、そのような要請はあるものの、一般には作業を躊躇することが多い。その結果、一旦、稼働状態に導入された後にあっては、モニタ装置側における使い勝手は制約を受けるのが現状である。 However, when the PLC has already shifted to the operating state and is operating normally, new corrections to the user program may cause an increase in cycle time and unexpected malfunctions. Although there is concern and there is such a request, in general, the work is often hesitant. As a result, once it is introduced into the operating state, the user-friendliness on the monitor device side is currently limited.
この発明は、上述の問題点に着目してなされたものであり、その目的とするところは、PLCが稼働状態に移行したのちにあっても、PLCのユーザプログラムを追加変更等をすることなく、変数どうしの計算を伴なうような新たな情報を生成し、モニタ表示することを可能としたPLCのモニタシステムを提供することにある。 The present invention has been made paying attention to the above-mentioned problems, and the object of the present invention is to make no additional changes to the PLC user program even after the PLC has shifted to the operating state. Another object of the present invention is to provide a PLC monitoring system that can generate new information that involves calculation of variables and display the information on a monitor.
この発明のさらに他の目的並びに作用効果については、明細書の以下の記述を参照することにより、当業者であれば容易に理解されるであろう。 Other objects and operational effects of the present invention will be easily understood by those skilled in the art by referring to the following description of the specification.
この発明のPLCのモニタシステムは、PLCに接続可能であり、実変数データを収集するデータ収集ユニットと、データ収集ユニットと通信を介して結ばれたモニタ装置とを含む。 The PLC monitor system of the present invention includes a data collection unit that is connectable to the PLC and collects real variable data, and a monitor device connected to the data collection unit through communication.
モニタ装置には、2以上の実変数を使用した演算式により定義された仮想変数を設定するモニタ装置の第1の手段と、第1の手段により設定された仮想変数に相当する演算式をデータ収集ユニットに送信するモニタ装置の第2の手段と、データ収集ユニットから実変数データ列及び仮想変数データ列を受信するモニタ装置の第3の手段と、実変数データ列と仮想変数データ列とを内部テーブルに格納するモニタ装置の第4の手段と、内部テーブルに格納された各実変数データ列と仮想変数データ列とに基づいてモニタ装置の画像表示器の画面上に対応する波形表示を行うモニタ装置の第5の手段と、が設けられている。 The monitor device includes a first means for setting a virtual variable defined by an arithmetic expression using two or more real variables, and an arithmetic expression corresponding to the virtual variable set by the first means as data. A second means of the monitoring device that transmits to the collection unit; a third means of the monitoring device that receives the real variable data string and the virtual variable data string from the data collection unit; a real variable data string and a virtual variable data string; Based on the fourth means of the monitor device stored in the internal table and each real variable data sequence and virtual variable data sequence stored in the internal table, a corresponding waveform display is performed on the screen of the image display of the monitor device. And a fifth means of the monitor device.
データ収集ユニットには、モニタ装置から設定された仮想変数に相当する演算式を受信するデータ収集ユニットの第1の手段と、データ収集ユニットの第1の手段で受信された演算式に含まれた各実変数データ列とPLCのメモリ内実変数のアドレスとの対応についてマッピング情報を生成するデータ収集ユニットの第2の手段と、PLCのサイクルタイムに同期して、前記マッピング情報に基づいてPLCのメモリから該当する実データを読み出すデータ収集ユニットの第3の手段と、データ収集ユニットの第3の手段で読み出され、同期した実データ同士を仮想変数を定義する演算式に代入して仮想変数データ列を生成するデータ収集ユニットの第4の手段と、データ収集ユニットの第4の手段により生成された仮想変数データ列とPLCのメモリから読み出された実変数データ列とをモニタ装置へと送信するデータ収集ユニットの第5の手段と、が設けられている。 The data collection unit includes the first means of the data collection unit that receives the arithmetic expression corresponding to the virtual variable set from the monitor device, and the arithmetic expression received by the first means of the data collection unit . The second means of the data collection unit for generating mapping information for the correspondence between each real variable data string and the address of the real variable in the memory of the PLC, and the PLC memory based on the mapping information in synchronization with the cycle time of the PLC The virtual variable is obtained by substituting the synchronized real data between the third means of the data collection unit for reading the corresponding real data from the data and the third means of the data collection unit and defining the virtual variables. a fourth means of the data acquisition unit for generating a data sequence, the virtual variable data string and PL generated by the fourth means of data collection units A fifth means of the data acquisition unit to transmit the real variable data sequences read to the monitor device from the memory, is provided for.
このような構成によれば、データ収集ユニットの第3の手段で読み出された実データを仮想変数を定義する演算式に代入して仮想変数データ列を生成し、生成された仮想変数データ列とPLC側のメモリから読み出された実変数データ列とをモニタ装置へと送信するようにしているため、新たな変数を定義するについても、PLC側でラダー図言語等々の固有言語を使用してメモリ割付を追加乃至変更することは不要であるから、ユーザプログラムの追加によるサイクルタイムの遅れ等が発生することを気にすることなくもモニタ対象データを拡張することができる。 According to such a configuration, the actual data read by the third means of the data collection unit is substituted into the arithmetic expression defining the virtual variable to generate the virtual variable data string, and the generated virtual variable data string And the actual variable data string read from the memory on the PLC side are transmitted to the monitor device. Therefore, a unique language such as a ladder diagram language is used on the PLC side to define a new variable. Therefore, it is not necessary to add or change the memory allocation, so that the monitoring target data can be expanded without worrying about the delay of the cycle time caused by the addition of the user program.
また、この発明のデータ収集ユニットは、ユーザプログラムを実行して制御を行うPLCに接続され、PLCの実変数のデータを記憶するメモリから周期的に制御データを読み出すとともに、表示器の画面上に対応する波形表示を行うモニタ装置とデータ通信するデータ収集ユニットであって、PLCにおける2以上の実変数を使用した演算式を、予め設定された仮想変数に相当する演算式を記憶する第1の手段と、第1の手段に記憶した演算式に基づいて、PLC側のメモリの実変数のマッピング情報を記憶する第2の手段と、PLCのサイクルタイムに同期して、第2の手段に記憶したマッピング情報に基づいてPLCのメモリから該当する実変数のデータを読み出すPLC側の第3の手段と、第3の手段で読み出した実変数のデータを、第1の記憶手段に記憶した演算式に代入して仮想変数データ列を生成する第4の手段と、第4の手段により生成された仮想変数データ列と、第2の記憶手段により読み出した実変数データ列とをモニタ装置へ送信する第5の手段と、が設けられている。 Further, the data collection unit of the present invention is connected to a PLC that performs control by executing a user program, and periodically reads control data from a memory that stores data of real variables of the PLC , and displays the control data on the display screen. A data collection unit that performs data communication with a monitor device that displays a corresponding waveform, and that stores an arithmetic expression using two or more real variables in the PLC as an arithmetic expression corresponding to a preset virtual variable Means, second means for storing real variable mapping information in the memory on the PLC side based on the arithmetic expression stored in the first means, and storage in the second means in synchronization with the cycle time of the PLC Based on the mapping information, the third means on the PLC side for reading the corresponding real variable data from the PLC memory, and the real variable data read by the third means , A fourth means for generating a virtual variable data string by substituting into the arithmetic expression stored in the first storage means, a virtual variable data string generated by the fourth means, and a read by the second storage means And a fifth means for transmitting the real variable data string to the monitor device.
このような構成によれば、新たな変数を定義するについても、PLCでラダー図言語等々の固有言語を使用してメモリ割付を追加乃至変更することは不要であるから、ユーザプログラムの追加によるサイクルタイムの遅れ等が発生することを気にすることなくもモニタ対象データを拡張することができる。 According to such a configuration, it is not necessary to add or change memory allocation using a specific language such as a ladder diagram language in the PLC even when defining a new variable. The monitoring target data can be expanded without worrying about the occurrence of time delay.
本発明によれば、データ収集ユニットの第3の手段で読み出された実データを仮想変数を定義する演算式に代入して仮想変数データ列を生成し、生成された仮想変数データ列とPLC側のメモリから読み出された実変数データ列とをモニタ装置へと送信するようにしているため、新たな変数を定義するについても、PLC側でラダー図言語等々の固有言語を使用してメモリ割付を追加乃至変更することは不要であるから、ユーザプログラムの追加によるサイクルタイムの遅れ等が発生することを気にすることなくもモニタ対象データを拡張することができる。 According to the present invention, the virtual variable data string is generated by substituting the real data read by the third means of the data collection unit into the arithmetic expression defining the virtual variable, and the generated virtual variable data string and the PLC Since the real variable data string read from the memory on the side is transmitted to the monitor device, even when defining a new variable, the PLC side uses a unique language such as a ladder diagram language. Since it is not necessary to add or change the assignment, it is possible to extend the monitoring target data without worrying about the delay of the cycle time caused by the addition of the user program.
以下に、本発明に係るPLCのモニタシステムの好適な実施の一形態を添付図面を参照しつつ詳細に説明する。 Hereinafter, a preferred embodiment of a PLC monitor system according to the present invention will be described in detail with reference to the accompanying drawings.
データ収集ユニットを含むPLCシステムのハードウェア構成図の一例が図1に示されている。同図に示されるように、このPLCシステムは、第1のPLC1と、第2のPLC5と、パーソナル・コンピュータ(以下、PCと言う)2とを中心として構成されている。第1のPLC1とPC2とは通信線9aを介して結ばれており、第1のPLC1と第2のPLC5とは通信線9bを介して結ばれている。
An example of a hardware configuration diagram of a PLC system including a data collection unit is shown in FIG. As shown in the figure, this PLC system is mainly configured by a
第1のPLC1はビルディング・ブロック型に構成されており、この例では、制御を司るCPUユニット11と、外部とデータ通信する通信ユニット12と、入力機器または出力機器を接続するI/Oユニット13と、データ収集ユニット(SPU)14とを含んでいて、それらのユニットがバックプレインボードを介してバス接続されている。
The
CPUユニット11は、当業者にはよく知られているように、全般の処理を実行するマイクロプロセッサと、ユーザプログラムを記憶するユーザプログラムメモリと、いわゆるI/Oデータを記憶するI/Oメモリと、データメモリとを内蔵している。そして、CPUユニット11の内蔵マイクロプロセッサは、所定のシステムプログラムを実行することによって、I/Oリフレッシュ処理と、ユーザプログラム実行処理と、周辺サービス処理とをサイクリックに実行する。このとき一巡実行サイクルをサイクルタイムと一般に称する。
As is well known to those skilled in the art, the
I/Oユニット13は複数の入力機器、出力機器が接続されていて(図示せず)、各機器に対応するデータを記憶するメモリを備えている。そして定期的に外部センサ4から入力データ(オンオフデータであるビット変数データ、数値データであるアナログ変数データを含む)を取り込んで記憶する。また、CPUユニット11のIOリフレッシュ処理により送られて来た出力データ(ユーザプログラム実行結果であるデータを含む)を外部のアクチュエータ3などに送出する。
The I /
CPUユニット11におけるI/Oリフレッシュ処理において、マイクロプロセッサがI/Oユニット13からバスを介して入力データをI/Oメモリの該当エリアに書き込む。また、マイクロプロセッサがI/Oメモリの該当エリアの出力データを、バスを介してI/Oユニット13へ送る。CPUユニット11におけるユーザプログラム実行処理において、マイクロプロセッサがユーザプログラムメモリに記憶されたユーザプログラムのユーザ命令を順に実行する。つまり、I/Oメモリに記憶した入力データの内容を参照してユーザ命令に従って演算実行し、その実行結果に基づいてメモリの出力データの内容を書き換える。
In the I / O refresh process in the
CPUユニット11における周辺サービス処理においては、通信ユニット12を介して例えば第2のPLC5と通信を行うことにより、第2のPLC5との間でI/Oデータの交換などを行う。
In the peripheral service processing in the
データ収集ユニット14はプロセッサを内蔵しており、プロセッサが上述したCPUユニット11におけるI/Oリフレッシュ処理に際して、CPUユニット1からバスを介してI/Oメモリの全てのデータを読み出すと共に、これをデータ収集ユニット(SPU)14内のメモリに蓄積保存する。なお、全てのデータを読み出す代わりに、データ収集ユニット14に対して読み出す対象を予め設定しておくことにより、指定されたデータのみをCPUユニット1のメモリから読み出すようにしてもよい。なお、データ収集するのを、CPUユニット1のI/Oリフレッシュ処理に際して行うことに代えて、例えば周辺サービス処理に際して行うことでもよいし、ユーザプログラム実行処理の前あるいは後に別途の処理期間を設けて行うことでもよい。要するに、CPUユニット1における一巡実行サイクルごとに1回データ収集するような構成であればよい。さらに、データ収集周期をCPUユニット1における一巡実行サイクルに同期せずに、CPUユニット1における複数回の実行サイクルごとにデータ収集を1回するように収集周期を長くしてもよい。
The
こうしてCPUユニットの制御データはデータ収集ユニット14によって収集され、データ収集ユニット14のメモリ内に蓄積保存される。この収集データは、CPUユニットの制御データであり、ビット変数、アナログ変数を含むし、あるいは入力データ、出力データを含む。データ収集ユニット14は、CPUユニット側の制御データや変数のメモリ割付情報を持っている。データ収集ユニット側に収集対象となるデータがCPUユニットのどのメモリエリアに記憶されているかという情報を予め設定しておくことにより、データ収集ユニット14は収集データをCPUユニットから周期的に収集できるようになる。なおデータ収集ユニット14にメモリ割付情報に加えてシンボル情報を登録しておくのが好ましい。シンボル情報とは、ユーザがある制御データや変数を認識あるいは特定するのを補助する情報であり、例えば「センサ4からの入力信号」である旨や「アクチュエータ3への出力信号」である旨の情報である。前述の「生産数」「不良数」もシンボル情報である。このシンボル情報は文字列で表わされる情報であり、タグ情報またはコメント(図9のコメント133と同視できる)と呼ばれる場合もある。そして収集データは、適当なタイミングでPC2とデータ収集ユニット14とが通信することにより、データ収集ユニット14から読み出されて、PC2へと送り込まれる。
Thus, the control data of the CPU unit is collected by the
データ収集ユニットが収集するデータのシンボル情報やCPUユニットのメモリ割付情報についてはPC2にも予め登録しておく(なお、シンボル情報は図9のコメント133の表示に用いられ、メモリ割付情報は図9のアドレス132の表示に用いられる)。PC2は適当なタイミングでデータ収集ユニット14と通信を行うことにより、データ収集ユニット14から収集データとを取得する。なお、シンボル情報とメモリ割付情報とについては、予め登録することに代えて、PC2がデータ収集ユニット14と通信することにより取得するようにしてもよい。こうして取得された取得データは、PC2のメモリ内に設けた変数テーブルへと記憶される。
The symbol information of the data collected by the data collection unit and the memory allocation information of the CPU unit are registered in advance in the PC 2 (note that the symbol information is used for displaying the
そして、PC2は、それらの取得データに基づき、画像表示器の画面上に各制御データに対応させて、時系列的な変化をパルス列波形やアナログ波形で表示する(図9にて詳述する)。こうすることによって、ユーザは画像表示器の画面を介して、PLC1の取り扱う制御データや各種アナログデータを視覚的にモニタすることができる。なお第1のPLC1(CPUユニット11とも言ってもよい)が周辺サービス処理を行うことにより第2のPLC5のデータを取得し、データ収集ユニット14がCPUユニット11を経由してPLC2のデータを収集するようにすれば、PC2にて第2のPLCのデータも同様にモニタすることができるようになる。
Then, the
データ収集ユニット14の機能構成図が図2に示されている。同図に示されるように、データ収集ユニット14は、PLCインタフェース14aと、サンプリング部14bと、演算処理部14cと、記憶部14dと、ファイル管理部14eと、ファイル書込部14fと、PCインタフェース14gとを備えている。
A functional block diagram of the
PLCインタフェース14aはPLC側との接続を行うための機能を有するものであり、具体的にはPLCのバックプレインバスに接続し、CPUユニット11や他のユニットとの間でデータ通信を行う機能を有している。PCインタフェース14gはPC側との接続を行うための機能を有するものであり、通信線9aに接続し、PC2との間でデータ通信を行う機能を有している。
The
サンプリング部14bはPLCインタフェース14aを介してPLC1のCPUユニット11にアクセスすることにより、そのCPUユニット11の内部のI/Oメモリやデータメモリからあらかじめマッピングされたデータを周期的かつ自動的にサンプリングする機能を有するものである。
The
こうしてサンプリングされたデータのうちで、PLC側の変数(実変数)に関するデータについてはそのまま記憶部14dへと送られる。これに対し、仮想変数に関するデータについては、あらかじめ指定された演算式に従って演算処理部14cが実変数を代入して演算処理を行い、その演算結果が記憶部14dへと送られる。
Of the data sampled in this way, data related to variables (real variables) on the PLC side is sent to the
記憶部14dに保存された実変数並びに仮想変数のそれぞれに相当するデータは、ファイル管理部14e及びファイル書込部14fの作用で、PCインタフェース14gを介して、PC2側へと送信される。このように、本発明のデータ収集ユニットにあっては、サンプリング部14bにてサンプルされたデータは、実変数に関するデータとしてそのまま記憶部14dに格納される。また、仮想変数を求めるのに用いる対象となる実変数データについても、単に収集するだけでよい実変数と同様に記憶部14dにいったん格納し、仮想変数を求めるのに必要な際に演算処理部14cが記憶部14dから読み出す構成としている。なお、仮想変数を求めるのに用いるだけの実変数は、記憶部14dに格納することなく、演算処理部14cの内部バッファ等に一時記憶し、所定の演算処理をする際に直接用いるような構成とすることもできる。演算処理した結果である仮想変数は記憶部14dに書き込まれる。
Data corresponding to each of the real variable and the virtual variable stored in the
その後、記憶部14dに格納された実変数並びに仮想変数に対応するデータは、ファイル管理部14e並びにファイル書込部14fの作用によって、あたかも全て実変数であるかのごとくして、PCインタフェース14gを介してPC2側へと送信されるのである。
Thereafter, the data corresponding to the real variable and the virtual variable stored in the
モニタ装置2側で実行される仮想変数設定処理のフローチャートが図2に、また仮想変数設定画面のイメージ図が図6にそれぞれ示されている。この一連の処理によって仮想変数に関する演算式がプログラミングされ、その演算式はデータ収集ユニットへ送信されデータ収集ユニットの記憶部14dに記憶される。
A flowchart of the virtual variable setting process executed on the
図3のフローチャートに示されるように、仮想変数の設定処理においては、まず所望の仮想変数の『名称』及び『データ型』を設定する(ステップ301)。この設定操作は、図9に示されるように、仮想変数設定画面に従って行われる。 As shown in the flowchart of FIG. 3, in the virtual variable setting process, first, the “name” and “data type” of a desired virtual variable are set (step 301). This setting operation is performed according to the virtual variable setting screen as shown in FIG.
図9の仮想変数設定画面は、PC2の画像表示器の画面上に表示される。この仮想変数設定画面には、図9に示されるように、仮想変数の『名前』を表示するための名前表示領域101と、仮想変数の『データ型』を表示するためのデータ型表示領域102と、仮想変数の『演算式』を定義するための演算式表示領域103と、仮想変数の設定に使用可能な変数(ビット変数、アナログ変数)及び仮想変数の一覧をメニュー表示可能な変数一覧表示領域104と、仮想変数の設定に必要な各種操作キーを表示させた操作キー表示領域105と、OKボタン106及びキャンセルボタン107とが表示されている。
The virtual variable setting screen of FIG. 9 is displayed on the screen of the image display device of the
変数一覧表示領域104には、各変数並びに仮想変数に対応する『データ型』、『アドレス』、『説明』(変数の意味内容を示す文字列)とが表示される。のちに、図2のフローチャートを参照しつつ詳述するように、この変数一覧表示領域104には、ユーザの設定した『データ型』に応じて最適なメニュー表示が行われる。
The variable
また、操作キー表示領域105には、バックキー105a、クリアキー105b、数値キー105c、数値演算子キー105d、論理演算子キー105e、論理値キー105fが含まれている。
The operation
従って、この仮想変数設定画面を見ながら、仮想変数を設定しようとするユーザは、まず、パソコンのワープロ機能を利用して、名前表示領域101及びデータ型表示領域102のそれぞれに、該当する仮想変数の名前(例えば、『稼働時間』)及びデータ型(例えば『REAL』など)を入力する。しかる後、変数一覧表示領域104内においてカーソルを上下して所望の変数あるいは仮想変数を選択し、同時に操作キー表示領域105に表示された各種のキー105a〜105fを操作することにより、所望の仮想変数に相当する演算式を作成して、これを演算式表示領域103に表示させる。しかる後、OKボタン106を操作するなどによって、演算式表示領域103の内容で定義された仮想変数『稼働時間』はPCのメモリ内所定エリアに格納される。
Therefore, a user who wants to set a virtual variable while looking at this virtual variable setting screen first uses the word processor function of the personal computer to apply the corresponding virtual variable to each of the
このとき、図3のフローチャートに示されるように、オペレータが『データ型』を設定すると、そのデータ型が『ビット型』(オンオフ信号)であれば、変数一覧表示領域104に表示される変数は全てビット型とされ(ステップ303)、以後論理演算式105eと論理値キー105fとを操作しつつ、所望の演算式を作成して、これをPC内メモリの所定エリアへ登録することができる(ステップ304)。
At this time, as shown in the flowchart of FIG. 3, when the operator sets “data type”, if the data type is “bit type” (on / off signal), the variable displayed in the variable
これに対して、ユーザが設定した『データ型』が『ビット型』でないと判定されれば(ステップ302NO)、変数一覧表示領域104に表示される変数は全て『変数型』とされる。そのため、ユーザは、数値キー105cと数値演算式105dとを操作しつつ四則演算式を生成して、これをPC内メモリの所定エリアに登録することができる(ステップ306)。
On the other hand, if it is determined that the “data type” set by the user is not “bit type” (NO in step 302), all variables displayed in the variable
このようにして、仮想変数設定処理が完了すると、こうして得られた各仮想変数を規定する演算式を含む設定情報はPLC側のデータ収集ユニット14へと送信される(ステップ307)。設定情報はファイル形式にすると好都合である。データ収集ユニット14はその設定ファイルをPCインタフェース14g経由で受け取り、ファイル書込部14fの制御により記憶部14dに記憶する。データ収集ユニット14が設定ファイルを記憶した後であれば、PC2内メモリに登録した演算式やその他の設定情報を消去してもよい。なお、この一連の設定をPC2に代えて別の設定ツール装置(図示せず)で行うようにしてもよい。
In this way, when the virtual variable setting process is completed, the setting information including the arithmetic expression defining each virtual variable thus obtained is transmitted to the
データ収集のために選択可能な仮想変数一覧画面のイメージ図が図11に示されている。このように、PC2の画像表示器の画面上には、所定の表示モードに設定することにより、仮想変数一覧画面を表示させることができる。なお、演算式を登録した後、演算式をPC2内のメモリに登録したままであれば、PC2内のメモリから演算式の情報を読み出してきて再度表示することもできる。PC2内のメモリから演算式の情報を消去した場合には、データ収集ユニットから演算式のデータを読み出して表示すればよい。この一覧画面を観察すれば、選択可能な仮想変数の『名前』、『データ型』、『演算式』をオペレータは認識できる。また、この一覧画面に基づいて表示器に表示したい所望の仮想変数を任意に選択設定するようにしてもよい。なお、この一連の表示動作についてもPC2に代えて別の設定ツール装置(図示せず)で行うようにしてもよい。
An image diagram of a virtual variable list screen that can be selected for data collection is shown in FIG. As described above, the virtual variable list screen can be displayed on the screen of the image display device of the
収集設定画面のイメージ図の一例が図10に示されている。同図に示されるように、表示モードを所定のモードに設定することにより、PC2の画像表示器の画面上には、図10に示される収集設定画面を表示させることができる。この収集設定画面には、データ収集対象として選択された実変数のみならず任意の仮想変数を含ませることができる。なお、この一連の表示動作についてもPC2に代えて別の設定ツール装置(図示せず)で行うようにしてもよい。図10の例にあっては、『良品数』、『良品率』は仮想変数に相当する。
An example of an image diagram of the collection setting screen is shown in FIG. As shown in the figure, the collection setting screen shown in FIG. 10 can be displayed on the screen of the image display device of the
そして、こうして選択設定された仮想変数は、データ収集ユニットにて演算して求められるので、モニタ処理においてあたかもPLC側において新たに変数をラダー図言語を用いて設定したかのように、その演算式で示される仮想変数を取り扱うことができる。 Since the virtual variable selected and set in this way is obtained by calculation in the data collection unit, its calculation formula is as if the variable was newly set on the PLC side using the ladder diagram language in the monitoring process. Can be handled.
次に、データ収集ユニット(SPU)14の側で行われる収集処理全体を示すフローチャートが図6に示されている。同図において処理が開始されると、まず、ファイル管理部14eを介して記憶部14dから設定情報(演算式を含む)の読み出しが行われる(ステップ601)。
Next, FIG. 6 shows a flowchart showing the entire collection processing performed on the data collection unit (SPU) 14 side. When processing is started in the figure, first, setting information (including an arithmetic expression) is read from the
設定情報読み出し処理の詳細フローチャートが図7に示されている。同図に示されるように、この演算式読み出し処理においては、まず、設定ファイル(図10に示される収集設定画面、図11に示される仮想変数一覧画面に相当)から仮想変数を読み出す(ステップ401)。 A detailed flowchart of the setting information read process is shown in FIG. As shown in the figure, in this arithmetic expression reading process, first, virtual variables are read from a setting file (corresponding to the collection setting screen shown in FIG. 10 and the virtual variable list screen shown in FIG. 11) (step 401). ).
続いて、読み出された仮想変数の演算式の入れ子処理を分解する(ステップ702)。ここで、仮想変数に相当する各演算式は演算式記憶テーブルに格納されている。 Subsequently, the nesting process of the arithmetic expression of the read virtual variable is decomposed (step 702). Here, each arithmetic expression corresponding to the virtual variable is stored in the arithmetic expression storage table.
図5に示されるように、実IO値、仮想変数のそれぞれにはポインタP(n)が付されている。例えば、実IO値Aのポインタはp1、実IO値Bのポインタはp2、・・・と言ったような具合である。また、各仮想変数は、それら実IO値を示すポインタを利用して表されている。例えば、仮想変数Aにはポインタp11が付されており、この仮想変数Aは実IO値Bを示すポインタp2と実IO値Hを示すポインタp8との加算結果(つまり加算式)として表現されている。同様に、仮想変数Cにはポインタp31が付されており、この仮想変数Cを求める式は仮想変数Aを示すポインタp11と仮想変数Bを示すポインタp21との積として表現されている。従って、ステップ402の演算式の入れ子処理を分解するとは、図5の演算式記憶テーブルにおけるポインタのかかり具合を分解することを意味している。
As shown in FIG. 5, a pointer P (n) is attached to each of the real IO value and the virtual variable. For example, the pointer of the actual IO value A is p1, the pointer of the actual IO value B is p2, and so on. Each virtual variable is represented using a pointer indicating the actual IO value. For example, a pointer p11 is attached to the virtual variable A, and this virtual variable A is expressed as an addition result (that is, an addition expression) of a pointer p2 indicating the real IO value B and a pointer p8 indicating the real IO value H. Yes. Similarly, a pointer p31 is attached to the virtual variable C, and an expression for obtaining the virtual variable C is expressed as a product of a pointer p11 indicating the virtual variable A and a pointer p21 indicating the virtual variable B. Therefore, decomposing the arithmetic expression nesting process in
続いて、演算式の処理順をソートする処理が実行される(ステップ703)。このソート処理は、演算式の入れ子は演算のしやすさを考慮して、後の演算に用いる変数についての演算処理を先に済ませておくような処理順にするようにソートされる。 Subsequently, processing for sorting the processing order of the arithmetic expressions is executed (step 703). In this sort processing, the calculation formulas are sorted so that the calculation processing is performed in advance for the variables used in the subsequent calculation in consideration of the ease of calculation.
続いて、以上のソート結果に基づき、演算処理の最適化ルーチンが作成される(ステップ704)。ここで、『最適化ルーチン』とは、各演算式の中で同じ演算式(例えば、A+B−C)がある場合、それを別変数として登録し、各演算式で再利用することで処理時間を短縮するといったことを意味している。 Subsequently, an optimization routine for arithmetic processing is created based on the sorting result (step 704). Here, the “optimization routine” means that when there is the same arithmetic expression (for example, A + B−C) in each arithmetic expression, it is registered as a separate variable and reused in each arithmetic expression, thereby processing time. It means to shorten.
例えば、X=A+B−C+D−Eの式と、Y=G−H+A+B−C+Fの式とがあったとする。2つの式の中で同じ演算式(共通する式)はA+B−Cであるから、それを別の変数Zとおき、
X=A+B−C+D−E → X=変数Z+D−E
Y=G−H+A+B−C+F → Y=G−H+変数Z+F
として最適化をはかる。
For example, suppose that there is an equation of X = A + BC + DE and an equation of Y = GH + A + BC + F. Among the two expressions, the same arithmetic expression (common expression) is A + B−C, so that it is set as another variable Z,
X = A + BC + DE → X = variable Z + DE
Y = GH + A + BC + F → Y = GH + variable Z + F
As an optimization.
続くステップ602においては、読み出しデータを特定するためのマッピング情報をPLC(CPUユニット)へ通知する(ステップ602)。
In the
以後、データ収集ユニット(SPU)14の側では、PLC(CPU)からサイクルタイム毎の割込が到来するのを待機する状態となる(ステップ603)。この状態において、割込が発生すると(ステップ603YES)、データ収集ユニット(SPU)14は、サンプリング部14b、PLCインタフェース14aを通じて、各仮想変数を定義する実データを格納するPLCのマッピングエリアから該当するデータを読み出す(ステップ604)。読み出したデータは記憶部14dに格納する。なお、ステップ603については、前述の処理内容に代えて、データ収集ユニットにてデータを収集するサンプリング周期ごとに自ら割込みタイミングを発生し、自らの割込みによってCPUユニットからデータ読出すような処理にしてもよい。続いて、演算処理部14cは各仮想変数に対応してあらかじめ設定された演算式に基づき、収集したデータの値を演算式に代入する等の演算処理を実行し、仮想変数の値を求める(ステップ605)。
Thereafter, the data collection unit (SPU) 14 waits for an interrupt for each cycle time from the PLC (CPU) (step 603). In this state, when an interrupt occurs (step 603 YES), the data collection unit (SPU) 14 falls under the mapping area of the PLC that stores the actual data defining each virtual variable through the
次いで、こうして求められた演算結果は、データ収集ユニット(SPU)14の記憶部14d内の所定仮想変数エリアに格納される(ステップ606)。その後、仮想変数エリアを含む収集エリアをサンプリングし(ステップ607)、収集データをメモリ内の所定ファイルへと保存する(ステップ608)。ステップ607、608のファイル保存処理は、サンプリング毎におこなってもよいし、複数のサンプリング周期にまたがってまとめてファイル保存してもよい。
Next, the calculation result thus obtained is stored in a predetermined virtual variable area in the
こうしてファイルに保存された収集データ(実変数のデータ)および演算結果(仮想変数のデータ)は、適当なタイミングで、PC2とデータ収集ユニット14とが通信を行うことにより、PC2の側へと伝送され、先に述べたようにPC2のメモリ内の内部テーブルに格納されるのである。
Collected data (real variable data) and calculation results (virtual variable data) saved in the file in this way are transmitted to the
メモリマッピングと収集方式との関係を示す概念図が図8に示されている。同図に示されるように、CPU11は所定のサイクルタイムをもって、I/Oリフレッシュ処理、ユーザプログラム実行処理、周辺サービス処理をサイクリックに実行している。
A conceptual diagram showing the relationship between the memory mapping and the collection method is shown in FIG. As shown in the figure, the
そして、データ収集ユニット14は、CPUユニット11の毎サイクルタイムごとに、マッピング情報で指定された変数データ(オンオフデータであるビット変数データ、数値データであるアナログ変数データ)を収集し、実I/O変数エリアへと書き込む。
The
一方、データ収集ユニット(SPU)14の側では、毎サイクルタイムに同期して、あらかじめ設定された演算式に従い、仮想変数の値を実変数の値に基づき算出し、これをデータ収集ユニット(SPU)14のメモリ内の仮想変数エリアへと書き込む。 On the other hand, on the side of the data collection unit (SPU) 14, in synchronization with each cycle time, the value of the virtual variable is calculated based on the value of the real variable according to a preset arithmetic expression, and this is calculated as the data collection unit (SPU). ) Write to the virtual variable area in 14 memory.
一方、これとは別に、それぞれ独立したサンプリング周期(CPUユニットのサイクルタイムに同期したサンプリング周期よりも長い周期)を有する3種類の収集処理(収集A,収集B,収集C)が用意されており、それらの収集処理によって、CPUユニット側の実変数エリアの実変数が独立して収集され、データ収集ユニット14の実変数エリアに格納される。そして実変数を演算式に代入することによって仮想変数が求められ、データ収集ユニット14の仮想変数エリアに格納される。これは、収集するデータの中には、CPUユニットのサイクルタイムに同期する短いサンプリング周期でデータを監視したいものや、CPUユニットのサイクルタイムよりも長いサンプリング周期(例えば100ms)でデータを監視したいものや、さらに長いサンプリング周期(1s)でデータを監視したいものが混在する場合があり、それに対応できるようにしたものである。
On the other hand, three types of collection processing (collection A, collection B, and collection C) having independent sampling periods (periods longer than the sampling period synchronized with the cycle time of the CPU unit) are prepared. Through these collection processes, the actual variables in the actual variable area on the CPU unit side are independently collected and stored in the actual variable area of the
こうして収集された実変数のデータと演算式で求められた仮想変数とはファイルへと保存され、必要に応じて、PC2の側へと転送される。しかる後、PC2の側では、実変数並びに仮想変数に相当するデータ列に基づき、画像表示器の画面上に、図12に示されるように、波形図を複数行にわたって表示させることができ、これにより各制御対象機器に則した適切な監視項目に従ったモニタが可能となる。
The real variable data collected in this way and the virtual variable obtained by the arithmetic expression are stored in a file and transferred to the
次にモニタ処理について説明する。モニタ処理全体のゼネラルフローチャートが図3に示されている。 Next, the monitoring process will be described. A general flowchart of the entire monitoring process is shown in FIG.
同図において、処理が開始されると、まず、演算式の読み出し処理が実行される(ステップ301)。続くステップ302においては、PLC1のデータ収集ユニット(SPU)14から読み出して内部テーブルあるいはデータベースに格納された各変数データの読み出しが行われる。
In the figure, when processing is started, first, arithmetic expression read processing is executed (step 301). In the
モニタ装置2の側で実行されるモニタ処理全体のゼネラルフローチャートが図4に示されている。同図に示されるように、モニタ処理が開始されると、まず、データ収集ユニット(SPU)14と通信を行うことにより、データ収集ユニット(SPU)14の記憶部14dから該当するデータ(実変数、仮想変数を含む)を読み出す処理が実行される(ステップ401)。この処理は、PC2がデータ収集ユニット14にデータ転送要求をし、その返信を受信する構成でもよいし、データ収集ユニット14が独自にデータ送信をし、それを受信する構成でもよい。
FIG. 4 shows a general flowchart of the entire monitoring process executed on the
続いて、PLC1のデータ収集ユニット(SPU)14から読み出されたデータは、PC2のメモリ内の内部テーブルに格納される(ステップ402)。続いて、内部テーブルに格納されたデータ(実変数及び仮想変数を含む)は、PC2内部のプロセッサの処理によってPC2の画像表示器の画面100上に表示される。
Subsequently, the data read from the data collection unit (SPU) 14 of the
このときの、モニタ画面全体のイメージ図が図12に示されている。同図に示されるように、モニタ画面100の全体は、ビット変数波形表示領域110と、アナログ変数波形表示領域120と、ビット変数関連情報表示領域130と、アナログ変数関連情報表示領域140とを含んでいる。
FIG. 12 shows an image diagram of the entire monitor screen at this time. As shown in the figure, the
ビット変数波形表示領域110には、L1〜L16に対応する表示行が設定されており、各表示行には16個のビット変数のそれぞれに対応するデータ列に相当するパルス列波形が表示可能となされている。一方、アナログ変数波形表示領域120にも、所定個数のアナログ変数のそれぞれに相当するアナログ変数波形がそれぞれ固有の色を有する線で描かれている。
Display rows corresponding to L1 to L16 are set in the bit variable
また、ビット変数関連情報表示領域130には、各表示行をアクティブとするかノンアクティブとするかを設定するチェックボックス列131と、各表示行に対応する変数色を表す色ボックス列132と、各変数に対応するアドレス又はコメントを択一的に表示可能なアドレス/コメント表示列133と、各表示行L1〜L16においてカーソル線111が指し示す時点のオンオフ状態を2色の色で示すオンオフ色ボックス列134と、同様にオンオフ状態をON/OFFの何れかで示すON/OFF文字列135と、カーソル線111が指し示すオンパルスまたはオフパルスのオン時間またはオフ時間を表示するON/OFF時間列136が設けられている。
In the bit variable related
同様にして、アナログ変数関連情報表示領域140には、各アナログ変数の表示をアクティブまたはノンアクティブの何れかに設定するチェックボックス列141と、各変数の線色を示す色ボックス列142と、各変数の説明(コメント)を表示するためのコメント列143と、カーソル線111が指し示す時点における各変数の値を示す数値ボックス列144とが設けられている。
Similarly, in the analog variable related
そして、特にこの発明と関連して、『良品数』および『良品率』に対応する仮想変数がコメント列に表示されており、これに対応してアナログ変数波形表示領域120には、生産数に対応する波形121と、良品数に対応する波形122と、不良数に対応する波形123とが表示されている。波形122の良品数は、PC2にて演算式=生産数−不良数で求めた値である。これらの波形で示されるように、生産数と不良数と良品数の関係の推移を観察することができる。なお、仮想変数の良品率については、演算式=(生産数−不良数)÷生産数で求められる値である。アナログ変数波形表示領域120に表示する場合は、縦軸に率をとり、最下点を0%、最高点を100%とするとよい。
In particular, in connection with the present invention, virtual variables corresponding to “number of non-defective products” and “non-defective product ratio” are displayed in the comment column. Correspondingly, the analog variable
言うまでもないが、この仮想変数データは、PC2の側で独自に生成したものであって、PLC1の側のメモリには存在しない。またPC2側で演算して求めたものではない。このように、本発明によれば、あたかもPLC1側においてラダー図言語などで変数を新たに設定したかのごとく、仮想変数データを取り扱うことができるから、様々な仮想変数を設定してはその時間的推移をモニタ画面を介して観察することにより、生産設備のメンテナンスや故障原因分析に最適な仮想変数を導くことが可能となる。
Needless to say, the virtual variable data is uniquely generated on the
本発明によれば、PLC側の第3の手段で読み出された実データを仮想変数を定義する演算式に代入して仮想変数データ列を生成し、生成された仮想変数データ列とPLC側のメモリから読み出された実変数データ列とをモニタ装置へと送信するようにしているため、新たな変数を定義するについても、PLC側でラダー図言語等々の固有言語を使用してメモリ割付を追加乃至変更することは不要であるから、ユーザプログラムの追加によるサイクルタイムの遅れ等が発生することを気にすることなくもモニタ対象データを拡張することができる。 According to the present invention, a virtual variable data string is generated by substituting real data read by the third means on the PLC side into an arithmetic expression that defines a virtual variable, and the generated virtual variable data string and the PLC side Since the real variable data string read from the memory is sent to the monitor device, even when defining a new variable, memory allocation is performed using a specific language such as a ladder diagram language on the PLC side. Since it is not necessary to add or change the data to be monitored, it is possible to extend the monitoring target data without worrying about the delay of the cycle time caused by the addition of the user program.
1 第1のPLC
2 PC
3 アクチュエータ
4 センサ
5 第2のPLC
6 アナログI/Oユニット
7 デジタルI/Oユニット
11 CPUユニット
12 通信ユニット
13 I/Oユニット
14 データ収集ユニット(SPU)
14a PLCインタフェース
14b サンプリング部
14c 演算処理部
14d 記憶部
14e ファイル管理部
14f ファイル書込部
14g PCインタフェース
51 CPUユニット
52 通信ユニット
53 I/Oユニット
100 表示画面
101 名前表示領域
102 データ型表示領域
103 演算式表示領域
104 変数一覧表示領域
105 操作キー表示領域
106 OKボタン
107 キャンセルボタン
110 ビット変数波形表示領域
120 アナログ変数波形表示領域
130 ビット変数関連情報表示領域
140 アナログ変数関連情報表示領域
1 First PLC
2 PC
3
6 Analog I /
Claims (3)
モニタ装置には、
2以上の実変数を使用した演算式により定義された仮想変数を設定するモニタ装置の第1の手段と、
第1の手段により設定された仮想変数に相当する演算式をデータ収集ユニットに送信するモニタ装置の第2の手段と、
データ収集ユニットから実変数データ列及び仮想変数データ列を受信するモニタ装置の第3の手段と、
実変数データ列と仮想変数データ列とを内部テーブルに格納するモニタ装置の第4の手段と、
内部テーブルに格納された各実変数データ列と仮想変数データ列とに基づいてモニタ装置の画像表示器の画面上に対応する波形表示を行うモニタ装置の第5の手段と、が設けられており、
データ収集ユニットには、
モニタ装置から設定された仮想変数に相当する演算式を受信するデータ収集ユニットの第1の手段と、
データ収集ユニットの第1の手段で受信された演算式に含まれた各実変数データ列とPLCのメモリ内実変数のアドレスとの対応についてのマッピング情報を生成するデータ収集ユニットの第2の手段と、
PLCのサイクルタイムに同期して、前記マッピング情報に基づいてPLCのメモリから該当する各実データを読み出すデータ収集ユニットの第3の手段と、
データ収集ユニットの第3の手段で読み出され、同期した実データ同士を仮想変数を定義する演算式に代入して仮想変数データ列を生成するデータ収集ユニットの第4の手段と、
データ収集ユニットの第4の手段により生成された仮想変数データ列とPLCのメモリから読み出された実変数データ列とをモニタ装置へと送信するデータ収集ユニットの第5の手段と、が設けられている、ことを特徴とするPLCのモニタシステム。 A data collection unit that is connectable to the PLC and collects real variable data; and a monitor device connected to the data collection unit via communication,
In the monitor device,
A first means of a monitor device for setting a virtual variable defined by an arithmetic expression using two or more real variables;
A second means of the monitor device for transmitting an arithmetic expression corresponding to the virtual variable set by the first means to the data collection unit;
A third means of the monitoring device for receiving the real variable data string and the virtual variable data string from the data collection unit;
A fourth means of the monitoring device for storing the real variable data string and the virtual variable data string in the internal table;
And a fifth means of the monitor device for displaying the corresponding waveform on the screen of the image display device of the monitor device based on each real variable data string and virtual variable data string stored in the internal table. ,
The data collection unit includes
A first means of a data collection unit for receiving an arithmetic expression corresponding to a virtual variable set from a monitor device;
Second means of the data collection unit for generating mapping information about the correspondence between each real variable data string included in the arithmetic expression received by the first means of the data collection unit and the address of the real variable in the PLC memory; ,
In synchronization with the PLC cycle time, and the third means of the data collection unit to read out the actual data corresponding from the memory of the PLC on the basis of the mapping information,
Read the third means of the data collection unit, and the fourth means of a data acquisition unit for generating a virtual variable data sequence are substituted into the calculation equation for defining a virtual variable actual data together with synchronized,
A fifth means of the data acquisition unit that transmits the real variable data sequences read from the virtual variable data string and the PLC memory generated by the fourth means of the data collection unit to the monitor device, is provided A PLC monitoring system characterized by the above.
PLCにおける2以上の実変数を使用した演算式を、予め設定された仮想変数に相当させて記憶する第1の手段と、
第1の手段に記憶した演算式に含まれた各実変数データ列と、PLCのメモリの実変数のアドレスとの対応についてのマッピング情報を記憶する第2の手段と、
PLCのサイクルタイムに同期して、第2の手段に記憶したマッピング情報に基づいてPLCのメモリから該当する実変数のデータを読み出すの第3の手段と、
第3の手段で読み出され、同期した実変数のデータ同士を、第1の記憶手段に記憶した演算式に代入して仮想変数データ列を生成する第4の手段と、
第4の手段により生成された仮想変数データ列と、第2の記憶手段により読み出した実変数データ列とをモニタ装置へ送信する第5の手段と、が設けられている、ことを特徴とするデータ収集ユニット。 Monitor device and data that are connected to a PLC that executes control by executing a user program, periodically reads control data from a memory that stores data of real variables of the PLC , and displays a corresponding waveform on the display screen A data collection unit for communication,
First means for storing an arithmetic expression using two or more real variables in the PLC in correspondence with a preset virtual variable;
Second means for storing mapping information about correspondence between each real variable data string included in the arithmetic expression stored in the first means and the address of the real variable in the PLC memory;
Third means for reading out data of the corresponding real variable from the memory of the PLC based on the mapping information stored in the second means in synchronization with the cycle time of the PLC;
Is read out by the third means, the fourth means for generating a data each other real variable synchronized, virtual variable data sequence by substituting the stored arithmetic expression in the first storage means,
A fifth means for transmitting the virtual variable data string generated by the fourth means and the real variable data string read by the second storage means to the monitor device is provided. Data collection unit.
前記第4の手段は、同期した実変数のデータ同士を演算式に代入して生成した仮想変数を、前記仮想変数を使用した演算式に代入して別の仮想変数として生成する機能を有する、ことを特徴とする請求項2に記載のデータ収集ユニット。 The fourth means has a function of substituting a virtual variable generated by substituting data of synchronized real variables into an arithmetic expression, and generating as another virtual variable by substituting into the arithmetic expression using the virtual variable, The data collection unit according to claim 2.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006355613A JP4085286B2 (en) | 2006-02-14 | 2006-12-28 | PLC monitoring system |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006037293 | 2006-02-14 | ||
| JP2006355613A JP4085286B2 (en) | 2006-02-14 | 2006-12-28 | PLC monitoring system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2007249936A JP2007249936A (en) | 2007-09-27 |
| JP4085286B2 true JP4085286B2 (en) | 2008-05-14 |
Family
ID=38594098
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2006355613A Expired - Fee Related JP4085286B2 (en) | 2006-02-14 | 2006-12-28 | PLC monitoring system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4085286B2 (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009223586A (en) * | 2008-03-15 | 2009-10-01 | Omron Corp | Building block type plc |
| KR100983153B1 (en) * | 2008-11-10 | 2010-09-20 | 엘에스산전 주식회사 | PLC device and logic control method using the same. |
| JP5771782B2 (en) * | 2011-06-21 | 2015-09-02 | パナソニックIpマネジメント株式会社 | Monitoring device, monitoring system, program |
| US11442433B2 (en) | 2019-02-14 | 2022-09-13 | Mitsubishi Electric Corporation | Management device, management system, management method, and program for providing virtual and real resource information values |
| JP2021144651A (en) * | 2020-03-13 | 2021-09-24 | 株式会社安川電機 | Production system, data transmission method, and program |
-
2006
- 2006-12-28 JP JP2006355613A patent/JP4085286B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2007249936A (en) | 2007-09-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1818743B1 (en) | Monitor system, and monitor device and data collecting device therefor | |
| CN103403793B (en) | Programmable display apparatus and image data creation method | |
| US9740186B2 (en) | Monitoring control system and control device | |
| KR101860252B1 (en) | Plotting device and control system | |
| EP2952992A1 (en) | Control system, control device, image processing device, and control method | |
| US12014156B2 (en) | Program creation support program to provide log data on device values and dependency relationships between devices | |
| TWI541622B (en) | Apparatus for supporting the compilation of a sequence program | |
| CN110651231B (en) | Data reproducing device for industrial plant | |
| CN102105843B (en) | Plant monitoring control system | |
| JP4085286B2 (en) | PLC monitoring system | |
| CN112654939B (en) | Control systems and control devices | |
| JP2009230572A (en) | Design support device | |
| CN111065979A (en) | Plant monitoring device and distributed control system | |
| JP2011081430A (en) | Design support device | |
| JP2005259079A (en) | tool | |
| JP2007249937A (en) | Method and apparatus for monitoring collected data | |
| JP2020135213A (en) | Controller, control program, and control system | |
| JP7385825B2 (en) | Motion analysis device, motion analysis method, and motion analysis program | |
| JP7044086B2 (en) | Control systems, control methods, and control programs | |
| US12372937B2 (en) | Control system, information processing apparatus, and information processing program | |
| CN107018673B (en) | Information acquisition and display program, information acquisition and display device, and information acquisition and display method | |
| JP2008077467A (en) | Display unit | |
| JP2019096206A (en) | Information processing system, information processing device, and program | |
| CN121444078A (en) | Programmable controller, terminal device, information providing method and program | |
| WO2026003946A1 (en) | Display control program, display control device, display control system, and display control method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A871 | Explanation of circumstances concerning accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A871 Effective date: 20070911 |
|
| A975 | Report on accelerated examination |
Free format text: JAPANESE INTERMEDIATE CODE: A971005 Effective date: 20071011 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20071017 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20071217 |
|
| 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: 20080123 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080205 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110228 Year of fee payment: 3 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 4085286 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110228 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120229 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120229 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130228 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140228 Year of fee payment: 6 |
|
| LAPS | Cancellation because of no payment of annual fees |