JP3847601B2 - Control display device, control program, and recording medium recording the same - Google Patents
Control display device, control program, and recording medium recording the same Download PDFInfo
- Publication number
- JP3847601B2 JP3847601B2 JP2001328294A JP2001328294A JP3847601B2 JP 3847601 B2 JP3847601 B2 JP 3847601B2 JP 2001328294 A JP2001328294 A JP 2001328294A JP 2001328294 A JP2001328294 A JP 2001328294A JP 3847601 B2 JP3847601 B2 JP 3847601B2
- Authority
- JP
- Japan
- Prior art keywords
- state
- control
- data
- plc
- variable
- 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
【0001】
【発明の属する技術分野】
本発明は、外部の制御装置に接続されたデバイスを指定してその状態を取得または変更できるようにした制御表示装置、制御プログラムおよびそれを記録した記録媒体に関するものである。
【0002】
【従来の技術】
プログラマブルロジックコントローラ(以降、PLCと称する)などと呼ばれる産業用制御装置は、シーケンス制御をはじめとする各種制御を実現するために、CPUおよびメモリを中心とするハードウェアの部分と、制御を司るソフトウェアの部分とを備えている。ソフトウェアの部分は、PLCを設計当初の制御システム通りに動作させるためのシーケンス制御フローの設計、その制御フローの命令語への変換、命令語のメモリへの書き込みなどを含んでいる。一般に、この一連の作業をプログラミングと称している。
【0003】
このようなプログラミングにおいては、コンピュータの専門知識を持たなくても簡単にプログラム作成ができるように、独自の言語を用いており、利用者に使いやすい各種のプログラミング言語が次々と開発されるようになった。現在、IEC(International Electrotechnical Commission) において、標準のプログラミング言語が制定されている(IEC 6 1131-3 )。それは、SFC(Sequentia l Function Chart) 、LD(Ladder Diagram)、IL(Instruction List)、FBD(Function Block Diagram)およびST(Structured Text) の5言語である。
【0004】
上記のように、各種のプログラミング言語を用いてプログラム開発を行うことができるように環境が整えられつつある。例えば、ラダー図(LD)は、リレー記号を用いて比較的容易にラダー回路を設計することができるので従来から広く普及しており、現在でも最もよく用いられているプログラミング言語である。このようなプログラミング言語によるプログラミング作業において用いられるプログラミングツールとしては、ラダーエディタなどのプログラミングソフトウェアが普及してきている。このソフトウェアは、パーソナルコンピュータなどのコンピュータ装置において、ラダー図などをラダー記号を含む形態で作成できるので、プログラムの作成および編集を容易に行える。
【0005】
また、作成されたプログラムを実行するには、予めPLCの入力端子および出力端子のそれぞれに付与されている入力番号および出力番号(I/Oアドレス)と、各入出力端子に接続される制御対象機器(デバイス)との割り付けを行う必要がある。このため、上記のプログラミングソフトウェア(エディタ)では、その割り付けのための設定や登録を行えるようになっている。
【0006】
また、近年、HMI(Human Machine Interface) 機器としてのプログラマブル表示器やパネルコンピュータには、メーカ独自の仕様で構成されるPLCに対して、PLCの機能をソフトウェアで実現するとともに、I/Oなどを搭載することによってPLC機能を備えた機種が登場してきている。このようなHMI機器では、通常のプログラマブル表示器と同様、PLCを接続して、ディスプレイ上にPLCへの制御指示の入力やPLCの可動状況の表示などを行うとともに、上記のPLC機能を兼ね備えている機種もある。この機種では、自身のPLC機能によってI/Oに接続されたデバイスとデータのやり取りを行うとともに、専用のPLCを接続して、このPLCを介してデバイスとデータのやり取りを行うことができる。
【0007】
このようなPLC機能を備えた機器にも、PLCと同様、割り付けのための設定が必要となる。
【0008】
従来、I/Oアドレスの表記はPLCのメーカによって異なるが、上記のような割り付けは、基本的には、I/Oアドレスとして固定された絶対アドレスに1対1でデバイスを割り付ける。ただし、上記のPLC機能を備えたHMI機器では、IECに準拠した標準化されたプログラミング言語によるエディタを用いることによって、変数(自由変数)を介してデバイスとI/Oアドレスとを割り付けるので、I/O構成の変更などによってI/Oアドレスが変わっても、一度決定した割り付けを容易に変更することができる。
【0009】
【発明が解決しようとする課題】
複数のPLC同士を接続して相互にデータをやり取りするには、PLC間に共通のメモリを設け、あるPLCがその共有メモリにデータを書き込むと、他のPLCがそのデータを読み出すように構成するか、あるいは、複数のPLC間でネットワークを介してリンク通信を行うように構成する。このようなシステムでは、I/Oアドレスを介してデータの読み書きを行うので、I/Oアドレスが上記のようにPLCのメーカ毎に異なると、異なるメーカのPLC間ではデータをやり取りすることができない。
【0010】
また、前述のPLC機能を有するHMI機器では、外部に接続されたPLCと通信を行う場合、絶対アドレスを介してデバイスのデータを授受する通信手段を用いる一方、PLC機能を用いてデバイスと通信する場合、変数を介してデータを授受する通信手段を用いている。このため、上記のHMI機器は、PLC機能から直接PLCのデバイスを指定して、そのデバイスのデータを読み書きすることができない。
【0011】
本発明は、上記の事情に鑑みてなされたものであって、PLCから他のメーカの異なる他のPLCのデバイスを指定して、そのデバイスのデータを読み書きできる制御表示装置、制御プログラムおよびそれを記録した記録媒体を提供することを目的としている。
【0012】
【課題を解決するための手段】
本発明の制御表示装置は、複数の第1デバイスのうち状態が変化する第1デバイスの状態を取得する一方、複数の第1デバイスのうち状態の変更が可能な第1デバイスの状態を変更する制御装置と通信する通信手段と、上記通信手段が取得した各第1デバイスの状態を表示する一方、入力された操作に応じた上記第1デバイスの状態変更指示を上記制御装置に送信するように上記通信手段を制御する制御表示手段と、第2デバイスに対応する変数および該変数で対象(入出力の対象、演算の対象など)を特定した制御のための制御手順プログラムを記憶する記憶手段と、上記第2デバイスの状態をそれぞれに対応付けられた変数の内容として取得する一方、変数の内容に基づいて、上記制御手順プログラムが示す手順で更新すべき変数の内容を更新するとともに、該変数の内容に応じて、該変数に対応する上記第2デバイスの状態を変更する制御手段とを備えた制御表示装置において、上記の課題を解決するために、上記記憶手段が、上記第1デバイスに対応する変数を上記第1デバイスの種類を特定するデバイスコードおよび上記第1デバイスを特定する番号と対応付けた関連情報を記憶可能であり、制御表示装置が、上記変数に対応する状態が変化する上記第1デバイスの状態を書き替えるための第1テーブルと、前記通信手段が取得した状態が変化する上記第1デバイスの状態が当該第1デバイスに対応する変数と対応付けられて書き込まれる第2テーブルと、上記記憶手段に記憶された関連情報に対応する上記第1デバイスについての状態を取得するように上記通信手段に指示し、取得結果に応じて前記第2テーブルにおける上記第1デバイスの状態を更新し、上記第1テーブルにおける上記第1デバイスの状態を更新された上記第2テーブルにおける第1デバイスの状態と一致するように上記関連情報を参照して書き替える一方、上記第1テーブルにおいて書き替えられた上記第1デバイスの状態に応じた状態変更指示を上記制御装置に送信するように、上記通信手段へ指示する仲介手段とを備え、上記制御手段が、上記第1テーブルにおいて書き替えられた上記第1デバイスの状態に基づいて、上記制御手順プログラムが示す手順で更新すべき上記第1デバイスの状態を更新するための上記状態更新指示を上記仲介手段に与えることを特徴としている。
【0013】
上記の構成では、例えば、制御装置がPLCであり、制御表示装置がPLC機能を備えたプログラマブル表示器である。第2デバイスの状態(例えば、デバイスのON・OFFの状態を示すデータや数値データ)を取得する際、制御手段によって、第2デバイスの状態がそれぞれに対応付けられた変数の内容として取得される。そして、記憶手段に記憶された変数の内容が取得された内容に更新される。一方、第2デバイスの状態を変更する際、制御手段によって、変数の内容に基づいて、制御手順プログラムが示す手順で更新すべき変数の内容が更新され、また、その変数の内容に応じて、その変数に対応する第2デバイスの状態が更新される。例えば、スイッチがONするとランプがONする手順を含む制御手順プログラムの場合、スイッチの変数の内容がON(“1”)であるとき、ランプの変数をON(“1”)にするように、ランプの変数がOFF(“0”)からON(“1”)に変わるとともに、ランプの状態がOFFからONに変わる。
【0014】
制御手段から第1デバイスの状態を取得する際、制御手段が、第2デバイスの状態取得と同様に第1デバイスの状態を取得しようとすると、仲介手段は、それを受けて、記憶手段に記憶された関連情報に対応する第1デバイスについての状態を取得するように通信手段に指示する。通信手段は、その指示を受けて、制御装置との通信によって、変数で第1デバイスを指定して第1デバイスの状態を制御装置から取得する。そして、第2テーブルにおける第1デバイスの状態が取得された状態に更新され、第1テーブルにおける第1デバイスの状態が、更新された第2テーブルにおける第1デバイスの状態と一致するように関連情報を参照して書き替えられる。一方、制御手段から第1デバイスの状態を変更する際、制御手段は、第1テーブルにおいて書き替えられた第1デバイスの状態に基づいて、第1デバイスの状態を変更するための状態更新指示を仲介手段に与える。仲介手段は、制御手順プログラムが示す手順で更新すべき第1デバイスの状態を第1テーブルにおいて書き替えられた第1デバイスの状態に応じて変更する状態変更指示を制御装置に送信するように指示する。通信手段は、その指示を受けて、制御装置との通信によって、変数で第1デバイスを指定して第1デバイスの状態を制御装置に変更させる。
【0015】
このように、記憶手段に第1デバイスに対応する変数を記憶させるとともに、仲介手段がその変数で第1デバイスを指定して第1デバイスの状態取得および状態変更を通信手段に指示することによって、第2デバイスの状態取得および状態変更を行う制御手段から第1デバイスの状態取得および状態変更を行うことができる。
【0016】
上記の制御表示装置は、上記仲介手段による上記通信手段への指示手順が、上記制御表示手段による上記通信手段への指示手順と同一になるように設定されていることが好ましい。このような構成では、第1デバイスの状態取得のための指示が、表示制御手段および仲介手段のいずれからでも同じ手順で行われるので、仲介手段に合わせた特別の手順を用意する必要がない。
【0017】
本発明の制御プログラムは、上記制御表示装置を動作させ、コンピュータを上記制御表示装置を上記各手段として機能させるものである。また、本発明の記録媒体は、上記の制御プログラムを記録したコンピュータ読み取り可能な記録媒体である。
【0018】
これらの制御プログラムおよび記録媒体を用いても、上記の各制御表示装置で実現される制御表示装置から他のメーカのPLC(制御装置)の第1デバイスを指定して、データの読み書きを行うことを同様に実現することができる。
【0019】
【発明の実施の形態】
本発明の実施の一形態について図1ないし図6に基づいて説明すれば、以下の通りである。
【0020】
本実施の形態に係る表示/制御システムは、図2に示すように、プログラマブル表示器1およびPLC2を含んでいる。
【0021】
制御装置としてのPLC2は、CPU/電源モジュールと、入力ユニットと、出力ユニットとを備えている。CPU/電源モジュールは、CPUやメモリを含むCPU部と、PLC2の各部に電力を供給する電源部とからなっている。CPU部は、制御システムプログラムにしたがって、入力ユニットを介して入力機器から入力される信号に基づいて出力機器に与える制御データの演算処理を行う。入力ユニットおよび出力ユニットは、それぞれ入力機器および出力機器に接続されるインターフェース機能を有する部分であって、これらの機器との間で入出力されるデジタル信号またはアナログ信号を上記のCPU部とやり取りするようになっている。
【0022】
第1デバイスである入出力機器4を構成する上記の入力機器としては、センサ(温度センサ、光センサなど)、スイッチ(押ボタンスイッチ、リミットスイッチ、圧力スイッチなど)のような機器が用いられる。入出力機器4を構成する上記の出力機器としては、アクチュエータ、リレー、電磁弁、表示器などが用いられる。これらの入力機器および出力機器は、製造ラインなどの各種のターゲットシステムの所要各部に配置される。
【0023】
制御表示装置としてのプログラマブル表示器1は、CPU11、メモリ部12、VRAM13、ディスプレイ14、グラフィックコントローラ15、タッチパネル16、タッチパネルコントローラ17、メンテナンスポート18、I/Oユニット19およびI/O制御インターフェース20を備えている。
【0024】
記憶手段としてのメモリ部12は、DRAM12a、FEPROM(Flash Era sable and Programmable ROM) 12b等のメモリを含んでいる。DRAM12a は、主に、表示制御などの演算処理時の作業用に用いられる他、通信コントローラ19またはI/Oユニット20を介して入出力される入出力機器5のデータの一時的な記憶に用いられる。SRAM12cは、入出力機器5(入力機器)から得られたデータをロギングしたり、入出力機器5(出力機器)に与える制御データ(レシピデータ)を記憶したりするために用いられる。FEPROM12bは、書き替え可能な読み出し専用のフラッシュメモリであり、一般のパーソナルコンピュータにおけるハードディスクドライブの役割を果たす。フラッシュメモリは、可動部を持たず、かつ衝撃に強いので、劣悪な周囲環境でも安定して動作する。
【0025】
第2デバイスとしての上記の入出力機器5は、PLC2に接続される前述の入出力機器4と同様な機器である。
【0026】
また、上記のFEPROM12bは、図3に示すように、表示制御システムプログラムと、通信プロトコルと、画面データと、制御機能プログラムと、ラダープログラムとをそれぞれ格納するエリアを有している。
【0027】
表示制御システムプログラムは、画像表示制御を行うための基本機能を実現するためのプログラムである。この表示制御システムプログラムは、PLC2との通信を行って、PLC2への作業指示(データの書き込み)や入出力機器5…のデータ収集(データの読み出し)などを実行し、そのために必要な表示処理やディスプレイ14からの操作入力処理を行う。また、PLC機能を利用した、I/Oユニット20を介しての入出力機器5…のデータの読み書きを実行し、そのために必要な表示処理やディスプレイ14からの操作入力処理を行う。
【0028】
通信プロトコルは、PLC2との通信処理で用いられるプロトコルであり、PLC2の機種(メーカ)に応じて固有に定められている。FEPROM12bは、プログラマブル表示器1で接続が保証されているPLC2の通信プロトコルを格納している。
【0029】
画面データは、後述する作画エディタ32bによって作成されて、FEPROM12bにダウンロードされている。この画面データは、ディスプレイ14に表示すべきベース画面や図形要素としての部品のデータおよび各マークに付与された後述する処理指示語W(図4参照)などを含んでおり、表示内容プログラムを構成している。
【0030】
制御機能プログラムは、シーケンス制御の基本機能を実現するためのプログラムである。この制御機能プログラムは、ラダープログラムを実行するとともに、ラダーエディタ32aとの通信制御や、PLC2に接続された入出力機器4を指定してそのデータの読み書きを行う。
【0031】
ラダープログラム(制御手順プログラム)は、後述するラダーエディタ32aを用いてユーザによる入力操作によって作成されて、FEPROM12bにダウンロードされている。このラダープログラムは、入出力機器4・5(以降、入出力機器4・5に限定しない場合はデバイスと総称する)が所望のシーケンスにしたがって動作するように制御手順を定めるプログラムである。制御機能プログラムおよびラダープログラムは、プログラマブル表示器1のPLC機能を利用する際に用いられる。
【0032】
上記の画面データに含まれる部品は、タッチスイッチ、ランプ、各種表示器(例えば、数値表示器やメータ表示器)などの画像化された基本的な部品として予め用意されている。また、部品としては、スイッチや数値表示器などの動的変化を画面上の任意の位置で表現させるために、所望の位置に設定された矩形エリアに所望の動画機能が設定された機能部(タグ)も含まれる。このような部品を含むユーザ画面においては、部品がデバイスの動作に応じて動くようになっており、デバイスの動作状況が視覚化されている。
【0033】
図4に示すように、画面データに含まれる処理指示語Wは、ベース画面上で実行されるべき事象毎に作成されている。この処理指示語Wは、基本的には、表示制御動作を実行すべきベース画面のファイル番号Fと、このベース画面上で実行されるべき動作内容を特定する事象名Tと、各実行事象毎に参照される1または複数のデータからなる参照情報Iとを一組として備えている。
【0034】
CPU11は、前述のFEPROM12bに格納された表示制御システムプログラムにしたがって、プログラマブル表示器1の各部の動作を制御する。また、CPU11は、後述するメンテナンスポート18を介しての後述するコンピュータ装置3との通信を制御する機能を有しており、作画エディタからの画面データやユーザプログラムエディタからのユーザプログラムを受け取るとFEPROM12bに格納する。
【0035】
VRAM13は、ディスプレイ14に表示される画面のイメージを一時的に保持するメモリであり、FEPROM12bからの画面データのイメージを水平方向に表示される順にドットデータとして格納している。
【0036】
ディスプレイ14は、液晶パネルやELパネルのような平板型表示素子によって構成されている。グラフィックコントローラ15は、VRAM13に展開された画面のイメージを、ディスプレイ14に描画するドライバソフトウェアである。タッチパネル16は、ディスプレイ14の表示画面上で入力を行うために設けられており、アナログ抵抗膜式タッチパネルなどが好適である。タッチパネルコントローラ17は、タッチパネル16の出力電圧を入力位置情報に変換してCPU11に出力する。
【0037】
メンテナンスポート18は、後述するコンピュータ装置3との間の通信を行うための通信ポートである。
【0038】
通信コントローラ19は、通信ケーブル(例えばRS−232C)を介してPLC2との間で入出力機器4…の制御や監視に関するデータなどの転送やPLC2の出力データの取り込みを制御するインターフェースである。
【0039】
また、プログラマブル表示器1は、PLC機能を備えて入出力機器5…を直接制御するように構成されている。このため、プログラマブル表示器1は、図2に示すように、I/Oユニット20およびI/O制御インターフェース21を備えている。
【0040】
I/Oユニット20は、入出力機器5…が接続可能となるように、多数の入出力端子、入出力回路などを備えている。このI/Oユニット20は、接続される通信システムに応じて異なる機種が、プログラマブル表示器1の本体に着脱可能に取り付けられる。例えば、I/Oユニット20としては、デジタルデータの入出力を行うためのDIOユニットや、リモートI/Oユニット(アナログ/デジタル変換ユニット、高速カウンタユニットなど)が用いられる。プログラマブル表示器1には、装着可能であり、かつ動作を保証しているI/Oユニット20が予め規定されている。
【0041】
I/O制御インターフェース21は、CPU11と入出力ユニット20との間の信号の授受を仲介するインターフェース回路であって、入出力メモリ、D/A変換器、A/D変換器などを備えている。
【0042】
ここで、前述の表示制御システムプログラムおよび制御機能プログラムについて詳細に説明する。
【0043】
図1に示すように、表示制御システムプログラムは、制御表示部41およびPLC通信制御部42を含んでおり、制御機能システムプログラムは、実行部43、外部通信制御部44および中間処理部45を含んでいる。
【0044】
制御表示手段としての制御表示部41は、画面データ(ユーザ画面)やアラーム画面の表示、ラダープログラムのモニタリングといった各種の表示処理を行う。また、制御表示部41は、ディスプレイ14に表示されたユーザ画面上での操作入力にしたがったPLC2への作業指示(レシピデータの書き込み)操作入力処理や、PLC2からデータの読み出しなどの処理を行う。
【0045】
PLC2内のメモリには、アドレスを指定することにより、ワードデバイスおよびビットデバイスが格納場所を特定可能に設定されている。ワードデバイスは、入出力されるデータが数値のようなワードデータに対して設定され、ビットデバイスは、オン・オフ状態のようなビットデータに対して設定される。このような設定により、制御表示部41は、PLC2内の任意のワードデバイスまたはビットデバイスをアクセスするように、PLC通信制御部42に指示することによって、入出力機器4…の状態を個別に変更するとともに、入出力機器4の状態を個別に取得することができる。
【0046】
また、プログラマブル表示器1のSRAM12cには、PLC2内のメモリと同様、アドレスを指定することにより、ワードデバイスおよびビットデバイスが格納場所を特定可能に設定されている。このような設定により、制御表示部41は、SRAM12c内の任意のワードデバイスまたはビットデバイスをアクセスするだけで、入出力機器5…の状態を個別に変更するとともに、入出力機器5…の状態を個別に取得することができる。
【0047】
通信手段としてのPLC通信制御部42は、PLC2との通信を制御するために、FEPROM12bに格納された前述の通信プロトコルに基づいて通信を行うための手順を定めている。PLC通信制御部42は、制御表示部41によって、指定された入出力機器4のデータの読み出しが指示されると、PLC2のメモリに取り込まれたデータを読み込む。また、PLC通信制御部42は、制御表示部41によって、指定された入出力機器4のデータの書き込みが指示されると、PLC2のメモリに指定されたデータを書き込む。
【0048】
PLC通信制御部42は、制御表示部41の指示にしたがって、PLC2から入出力機器4のデータを読み出す(取得する)際、前述のビットデバイスまたはワードデバイスが示す状態情報のうち、必要な情報を適時(例えば、周期的)にメモリ部12に読み込む一方、上記の処理指示語Wを繰り返し読み出して各処理指示語Wの事象名Tで特定される内容の動作をPLC2側の状態情報を参照しながら実行する。これによって、ビットデバイスまたはワードデバイスの状態の変化に応じて変化する表示動作が実行される。
【0049】
また、PLC通信制御部42は、後述する中間処理部45の指示にしたがって、入出力機器5のデータを読み出す(取得する)際、上記のビットデバイスまたはワードデバイスが示す状態情報のうち、必要な情報を適時(例えば、周期的)にメモリ部12に読み込む一方、上記の処理指示語Wを繰り返し読み出して各処理指示語Wの事象名Tで特定される内容の動作をメモリ部12内の状態情報を参照しながら実行する。これによって、ビットデバイスまたはワードデバイスの状態の変化に応じて変化する表示動作が実行される。
【0050】
制御手段としての実行部43は、制御機能プログラムの中核をなしており、FEPROM12bに格納されたラダープログラムを所定のスキャンタイムで実行する。この実行部43は、ラダープログラムの実行に伴って、後述する変数で入出力機器4・5を指定して、入出力機器4・5へのデータの書き込みや入出力機器4・5からのデータの読み出しを行う。実行部43は、より詳しくは、入出力機器4・5の状態をそれぞれに対応付けられた変数のデータ(変数の内容)として後述するリフレッシュテーブルTrから取得する一方、リフレッシュテーブルTrに書き込んだ変数の内容に基づいて、ラダープログラムが示す手順で更新すべき変数のデータをリフレッシュテーブルTrにおいて更新するとともに、その変数のデータに応じて、その変数に対応する入出力機器4・5の状態を変更する。
【0051】
プログラマブル表示器1内のメモリ部12には、前述のPLC2のメモリと同様に、ワードデバイスおよびビットデバイスが格納場所を特定可能に設定されている。実行部43は、上記のビットデバイスまたはワードデバイスが示す状態情報のうち、必要な情報を適時にメモリ部12の他のエリアに読み込んで、制御表示部41と同様に、処理指示語Wを用いた表示動作を実行する。
【0052】
外部通信制御部44は、メンテナンスポート18による通信を制御する通信ドライバプログラムである。この外部通信制御部44の制御による通信で、コンピュータ装置3におけるラダーエディタ32aとの連携が行われる。
【0053】
中間処理部45は、実行部43によるPLC2に接続されたデバイスへのデータの読み書きを行うために、実行部43と前述の制御表示部41との間でデータのやり取りに必要な処理を行う。仲介手段としての中間処理部45は、制御表示部41から供給されたデバイスコード、割付番号および後述するメモリテーブルTm(図1参照)のポインタを含む基本デバイス情報(特定情報)に、後述する参照ファイルF(図1参照)に記述された参照デバイス情報(関連情報)を追加してPLC通信制御部42に送信して与えるとともに、その情報に基づいてPLC2に対するデータの読み書きを指示する。中間処理部45は、PLC2からのデータの読み出し(入出力機器4の状態の取得)およびデータの書き込み(入出力機器4の状態の変更)をPLC通信制御部42に指示する際、その指示を前述の制御表示部41と同一の手順で行う。
【0054】
デバイスコードは、PLC2の入出力端子に接続される入出力機器4の種類およびPLC2の内部デバイスの種類を特定するX(入力デバイス)、Y(出力デバイス)、M(内部リレー)、T(タイマー)、C(カウンタ)、R(シフトレジスタ)、D(データレジスタ)などを示すコードであり、16ビットで表される。割付番号(0,1,2,3,…)は、PLC2の入出力端子や内部デバイスの個々に付与された番号であり、16ビットで表される。上記のようなデバイスコードおよび割付番号は、PLC2のメーカ毎に独自に規定されており、これらの組み合わせからなるI/Oアドレスも同様に各メーカ間で異なっている。
【0055】
第2テーブルとしてのメモリテーブルTmは、PLC通信制御部42がPLC2から読み込んだデータを書き込むために、メモリ部12のSRAM12cに設けられたテーブルであって、データを変数と対応付けて格納している。ポインタは、読み込まれたデータをメモリテーブルTmにおいて書き込む位置を指定するために用いられる。
【0056】
参照デバイス情報は、PLC2に対してデータの読み書きを行う際に用いられる上記のデバイスコードおよび割付番号が変数と対応付けられた関係である。この参照デバイス情報は、後述するように、参照ファイル作成部32cで作成された参照ファイルFに特定されている。
【0057】
また、中間処理部45は、変数に対応するデバイスのデータを書き替えるためのリフレッシュテーブルTr(第1テーブル)を上記の参照ファイルFに基づいてSRAM12cに作成するとともに、PLC通信制御部42によってPLC2から読み出されたデータを書き込むためのメモリテーブルTmを作業領域としてのDRAM12aに作成する。中間処理部45は、メモリテーブルTmに書き込まれたデバイスデータと一致するように、リフレッシュテーブルTrのデータを書き替える。
【0058】
上記の制御表示部41、PLC通信制御部42、実行部43、外部通信制御部44および中間処理部45の間の相互の通信は、プログラマブル表示器1のOS(オペレーティングシステム)を介したタスク間メールによって行われる。
【0059】
また、上記の表示制御システムプログラムおよび制御機能プログラムは、通常、出荷時に予めプログラマブル表示器1のメモリ部12にインストールされているが、プログラマブル表示器1に対して着脱自在の記録媒体7によってインストールされてもよい。振動などの影響を受けても動作上の不都合がないように、プログラマブル表示器1が可動部を有する機械部品などを備えないことが好ましいことから、上記の記録媒体7としては、フラッシュメモリなどからなるメモリカードが適している。このような記録媒体7を利用すれば、上記の両プログラムのバージョンアップがされる際にも、最新バージョンのプログラムを記録媒体7によって提供することができる。
【0060】
続いて、コンピュータ装置3について説明する。
【0061】
コンピュータ装置3は、パーソナルコンピュータなどの汎用コンピュータによって構成されている。このコンピュータ装置3は、図2に示すように、CPU31、エディタ部32、ラダーファイル33、画面ファイル34、メモリ部35、ディスプレイ36、入力装置37、外部記憶装置38およびインターフェース部(図中、I/F)39を備えている。
【0062】
CPU31は、コンピュータ装置3にインストールされているOS上でエディタ部32を含む各種のアプリケーションソフトウェアを動作させる際の各部の制御や演算処理を行う。
【0063】
メモリ部35は、RAM、ROMなどのメモリを備えており、固定データの格納、一時的なデータ記憶、CPU31の演算処理時における作業エリアの提供といった役割を果たしている。
【0064】
エディタ部32は、ラダーエディタ32a、作画エディタ32bおよび参照ファイル作成部32cを含んでいる。
【0065】
ラダーエディタ32aは、デバイスが所望のシーケンスにしたがって動作するようにPLC2またはプログラマブル表示器1のPLC機能の制御手順を定めるラダープログラムを作成するためのプログラミングソフトウェアであり、ディスプレイ36の表示画面上でデバイスの動作に対応するラダー記号(図形要素)を配置してラダー図を作成できるように構成されている。このラダーエディタ32aにおいては、例えば、国際基準IECに準拠した前述のプログラミング言語が用いられる。ラダーエディタ32aで作成されたラダープログラムは、後述するI/O設定データとともに、プログラマブル表示器1を介して(または直接)PLC2に転送され、PLC2内のFEPROM12bにダウンロードされる。
【0066】
また、上記のラダーエディタ32aは、シンボルエディタを含んでいる。シンボルエディタは、デバイスに個々に対応付けられる変数(シンボル)を作成するためのエディタである。ラダープログラムに関するデータである変数としては、スイッチに対応するSW1やランプに対応するLAMP1のようにデバイスに対応する符号や、操作指示、デバイスの動作状態のような事象名やコメントが挙げられる。
【0067】
また、シンボルエディタは、I/Oユニット20の入力端子および出力端子に付与されている番号と、各入出力端子に接続されるデバイスについて設定された変数との対応付けを入出力番号の割り付け(I/Oアサイン)として行う。この割り付けの結果は、割り付け作業時には、メモリ部35のRAMにテンポラリファイルとして登録され、設定完了後にはI/O設定データとしてプログラムファイル34に保存される。
【0068】
IECに準拠したラダーエディタ32aは、自由変数によってユーザが入出力を決定できるので、一度決定した割り付けも、後に変更することができる。したがって、I/Oユニット20の機種が変更されても、すでに設定した変数にI/Oアドレスの対応付けを行うことによって、割り付けの変更を行うことができる。
【0069】
PLC2については、メーカに応じて使用するラダー命令が異なったり、I/Oアドレスの設定が異なったりするため、ラダーエディタ32aと異なる専用のプログラミングソフトウェアでラダープログラムが作成される。また、PLC2について割り付けを行う際、前述のデバイスコードおよび割付番号からなるI/Oアドレスと、各I/Oアドレスに対応するデバイスの名称(デバイス名)とを1組にしてI/O設定データが作成される。
【0070】
さらに、シンボルエディタでは、デバイスに入力されるデータおよびデバイスから出力されるデータである入出力データのタイプ(属性データ)として、「ディスクリート(ビット)」、「カウンタ」、「タイマ」、「整数」、「実数」または「文字列」が設定可能である。例えば、スイッチなど、デバイスがオン/オフの状態を取る場合には、「ディスクリート」が選択される。また、例えば、製品の生産個数を計数するようなカウンタである場合には、「カウンタ」が選択され、所定時間までの計時を行うようなタイマである場合には、「タイマ」が選択される。さらに、例えば、メータなどの数値を扱う場合は、「整数」または「実数」が選択される。
【0071】
加えて、シンボルエディタでは、変数が、PLC2を介して接続されるデバイス(入力デバイスおよび出力デバイス)に対応しているか、あるいは、プログラマブル表示器1の内部デバイスに対応しているかを属性データとして設定できる。内部デバイスは、例えば、操作回数を示すカウンタなど、プログラマブル表示器1の計算機能を利用して、PLC2と通信することなくデータを取得可能なプログラマブル表示器1に設けられるデバイスである。前者の場合は、「入力」または「出力」の設定入力を受け入れた後、デバイスに対応付けるI/Oアドレスの入力を受け付ける一方、後者の場合は「インターナル」の設定入力を受け入れる。
【0072】
作画エディタ32bは、プログラマブル表示器1が、デバイスの稼働状況や作業指示のような管理のための各種のモニタ、機器に対する設定値を入力する端末としての機能を備えるように、ディスプレイ14に表示させる画面を作成する画面作成ソフトウェアである。一般に、作画エディタ32bは、ユーザ独自の画面(ユーザ画面)を作成できるように、スイッチ、ランプ、テンキー、各種表示器(例えば、数値表示器、メータ表示器およびグラフ表示器)などの部品(図形要素)、描画機能、テキスト入力機能などを備えている。また、作画エディタ32bは、後述するシンボルエディタ32cによって設定された変数を部品に対応付けることができる。
【0073】
このようにして作成されたユーザ画面は、画面データとして画面ファイル34に格納され、必要に応じて、後述するI/O設定データとともに、インターフェース部39を介してプログラマブル表示器1に転送され、FEPROM12bに画面データとしてダウンロードされる。
【0074】
参照ファイル作成部32cは、前述の制御表示部41での処理に用いられる参照ファイルFを作成するために、シンボルエディタで作成された変数から、PLC2に接続される入出力機器4に付与された変数を検索し、その変数にデバイスコードおよび端子番号を対応付けて参照ファイルFを作成する。
【0075】
PLC2に接続される入出力機器の名称(デバイス名)は、ユーザによって、シンボルエディタに予め変数として入力されている。一般のPLC2において、デバイス名は、操作者が入出力機器4を特定しやすいように、便宜上、入出力機器4に付与する名称である。このため、入出力機器4のデータの読み書きは、デバイス名を介してではなく、デバイスコードおよび端子番号からなるI/Oアドレスを介して行われる。これに対し、本プログラマブル表示器1のPLC機能では、変数を介して入出力機器5のデータの読み書きを行うので、PLC2に対しても同様に読み書きを行うことができるように、デバイス名を変数として設定しておく。
【0076】
コンピュータ装置3は、エディタ部32を備えることによってラダープログラム、画面データなどの作成および編集を行うためのエディタ装置として機能する。
【0077】
エディタ部32は、パッケージソフトウェアまたはオーダーメイドソフトウェアとしてプログラムメディアの形態で提供可能なソフトウェアであって、例えば、コンピュータ装置3と分離可能な記録媒体6に記録されている。そして、エディタ部32は、記録媒体6からコンピュータ装置3にインストールされることによってエディタ機能を発揮することができる。また、エディタ部32は、共通のフレーム上に設けられた単一のアプリケーションプログラムとしてコンピュータ装置3にインストールされている。
【0078】
上記のプログラムメディアは、磁気テープやカセットテープなどのテープ系、フロッピディスクやハードディスクなどの磁気ディスク系、CD−ROM、MO、MD、DVDなどの光ディスク系、ICカード(メモリカードを含む)、光カードなどのカード系が好適である。その他、上記のプログラムメディアは、マスクROM、EPROM、EEPROM、フラッシュROMなどによる半導体メモリを含めた固定的にプログラムを担持する媒体であってもよい。
【0079】
また、コンピュータ装置3は、インターネットを含む通信ネットワークと接続可能であることから、通信ネットワークからプログラムをダウンロードするように流動的にプログラムを担持する媒体であってもよい。ただし、このように通信ネットワークからプログラムをダウンロードする場合には、そのダウンロード用プログラムは予めコンピュータ装置3に格納されるか、あるいは別な記録媒体からインストールされるものであってもよい。
【0080】
なお、プログラマブル表示器1が上記の通信ネットワークと接続可能に構成されていれば、このようなプログラマブル表示器1でも、表示制御システムプログラムおよび制御機能プログラムを上記と同様にダウンロードすることが可能である。
【0081】
ラダーファイル33は、ラダープログラムを格納している。ラダープログラムは、入力されたラダー記号に対応するニーモニック(ラダー命令)およびオペランドを含んでいる。
【0082】
画面ファイル34は、画面データを格納している。画面データは、入力された部品などについての図形データなどを含んでいる。この図形データは、グラフィックデータ、テキストデータおよび部品データを含んでいる。グラフィックデータは、線、円、楕円、三角形、四角形、塗り込み図形などのデータである。テキストデータは、文字や記号などによって構成されるユーザ画面のタイトルや文章などを含んでいる。部品データは、予め作画エディタ32bに用意されている前述の部品に関するデータである。
【0083】
ディスプレイ36は、CRT、LCDなどによって構成されるが、パネルコンピュータであるコンピュータ装置3においては、液晶パネルやELパネルのような平板型表示素子によって構成される。入力装置37は、キーボード、マウスなどの入力操作を行うための装置であり、特に、GUI(Graphical User Interface)環境上で動作するエディタ部32での入力作業にはマウスなどの装置が適している。
【0084】
外部記憶装置38は、ハードディスク装置などの磁気ディスクドライブ、CD−ROMドライブなどの光ディスクドライブ、ICカードなどのメモリカードドライブといった装置である。この外部記憶装置38は、少なくとも、前記の記録媒体6に記録されたプログラムなどの情報を読み出すことができる装置を含んでいる。
【0085】
インターフェース部39は、プログラマブル表示器1との間でデータ通信を行う入出力部である。ラダーエディタ32aで作成されたラダープログラムおよび作画エディタ32bで作成された画面データは、このインターフェース部39を介してプログラマブル表示器1に転送される。
【0086】
続いて、上記のように構成される表示/制御システムにおけるプログラマブル表示器1のPLC機能(制御機能プログラム)によるPLC2へのデバイスデータの読み書きについて説明する。
【0087】
まず、デバイスデータの読み書きに先立って、ラダーエディタ32aにより、デバイス名を変数として登録する作業が行われる。このとき、コンピュータ装置3において、ラダーエディタ32aが起動されており、シンボルエディタによる変数の入力が可能になっている。この状態で、ユーザによる操作で、PLC2に接続される入出力機器4の名称(デバイス名)が、変数として入力される。
【0088】
参照ファイル作成部32cは、まず、プログラマブル表示器1に接続されているPLC2のメーカ(機種)を選択させるとともに、PLC2に接続される入出力機器4を指定させる。すると、参照ファイル作成部32cは、上記のシンボルエディタで作成された全ての変数をインポートし、その変数から、指定された上記の入出力機器4についてのデバイス名(変数)を検索する。そして、参照ファイル作成部32cは、検索された入出力機器4に対応するデバイスコードおよび割付番号を、予めPLC2についてのデバイスコードおよび割付番号を格納したファイル(図示せず)から読み出して、これらと検索された変数とを対応付けることによって参照ファイルFを作成する。
【0089】
このようにして作成された参照ファイルFは、プログラマブル表示器1のFEPROM12bにダウンロードされる。
【0090】
プログラマブル表示器1において、実行部43からPLC2に対してデバイスデータの読み書きを行う場合、中間処理部45が、図5のフローチャートにしたがった次の処理を行う。
【0091】
まず、参照ファイルFに基づいて、リフレッシュテーブルTrを作成し(S1)、メモリテーブルTmを作成する(S2)。次いで、制御表示部41から供給される基本デバイス情報に、参照ファイルFに記述されている参照デバイス情報を追加して、PLC通信制御部42に送信する(S3)。
【0092】
PLC通信制御部42は、中間処理部45から送信された上記の情報に含まれる基本デバイス情報(デバイスコードおよび割付番号)に基づいた読み出しの指示を受けて、PLC2の内部メモリに書き込まれている入出力機器4のデータを読み出す。このとき、PLC通信制御部42は、参照デバイス情報で特定された入出力機器4のデータのみを読み出して、メモリテーブルTmにおける、基本デバイス情報のポインタで指定された領域に書き込む。
【0093】
そして、メモリテーブルTmに書き込まれたデータと一致するように、参照ファイルFを参照しながら、リフレッシュテーブルTrの変数のデータを書き替える(S4)。このとき、中間処理部45は、データを書き替えるべき変数に対応するデバイスコードおよび割付番号の変数に対応したポインタからデータを読み出し、リフレッシュテーブルTrにおいて、その変数のデータを読み出したデータに書き替える。
【0094】
さらに、何らかの障害によるラダープログラムの異常終了や強制終了などを表すアボートフラグがONしているか否かを監視する(S5)。ここで、アボートフラグがONしていない場合は、データの書き替え処理を続行し、アボートフラグがONしている場合は、処理を終える。
【0095】
ラダープログラムが実行されていく過程で、データを読み込むべき入出力機器4が変わると、そのデバイスに対応する変数も変わる。これに対し、中間処理部45は、変数が変わると、リフレッシュテーブルTrにおいて、その変数のデータ(変数の内容)を、メモリテーブルTmに読み込まれているその変数のデータに書き替える(更新する)。
【0096】
この結果、制御表示部41は、上記のメモリテーブルTmのポインタで指定されるデータをディスプレイ14に表示された画面上で必要に応じて更新する。一方、実行部43は、リフレッシュテーブルTrに書き込まれたデータを取り込む。このように、中間処理部45によるPLC2からのデータの読み出しおよび参照ファイルFを用いたデータの書き替えによって、入出力機器4に対しても、実行部43から変数を指定してデータを読み込む(取得する)ことが可能になる。
【0097】
なお、プログラマブル表示器1では、画面に表示されるデバイスデータの更新周期が、人間が認識できる程度の時間間隔(例えば、0.5秒)に設定されているので、ラダープログラムの実行周期であるスキャンタイム(μsオーダー)と同期しない。しかしながら、PLC2から読み出されたデバイスデータは、ラダープログラムのスキャンが終了したときの最終的な値がリフレッシュテーブルTrに書き替えられていればよい。
【0098】
実行部43からPLC2の入出力機器4へのデータの書き込みは、次のように行われる。例えば、テーブルが所定の位置まで移動したら方向を反転して移動させるというテーブルの運転制御において、テーブルが所定位置まで移動したことをリミットスイッチで検出したONデータとして読み込み、テーブルの移動方向を反転させるために、モータを逆回転させる指示をデータとしてPLC2に書き込む必要がある。
【0099】
上記のような指示または値(物理量)をデータとして入出力機器4に与える場合、まず、実行部43が、変数とデータ(変更すべき入出力機器4の状態)とを中間処理部45に送信する。すると、中間処理部45は、データ読み込みの場合と同様、制御表示部41から供給される基本デバイス情報に、参照ファイルFに記述されている参照デバイス情報を追加して、PLC通信制御部42に送信する。PLC通信制御部42は、中間処理部45から送信された上記の情報に含まれる基本デバイス情報(デバイスコードおよび割付番号)に基づいて、PLC2の内部メモリに、上記の変数に対応する入出力機器4のデータを書き込む。
【0100】
また、プログラマブル表示器1のタッチパネル16からユーザによる入力操作で指示(作業開始指示、製品カウント数など)がなされた場合は、その指示が、制御表示部41から中間処理部45を介して実行部43に送信される。実行部43は、この指示を受けて、上記の手順で、PLC2の内部メモリに入出力機器4のデータを書き込む。
【0101】
例えば、製品の良品検査で被検査対象となる製品の数をプログラマブル表示器1から入力した場合は、その数がデータとしてPLC2に書き込まれる。すると、PLC2では、その値が指定されたカウンタにプリセットされる。
【0102】
以下に、デバイスデータの読み書きについての具体例について説明する。
【0103】
例えば、図6(a)に示すように、ラダー図において、上の桁では、押しボタンスイッチに対応するa接点(常開接点)51と、ランプに対応するコイル出力52が設けられており、下の桁では、リミットスイッチに対応するa接点53と、加算器54とが設けられている。a接点51については、デバイスコード“X”および割付番号“0”からなる“X0”が変数として設定されており、コイル出力52については、同様に“Y0”が変数として設定されている。同様に、a接点53については、“X10”が変数として設定されており、加算器54については“D0000”、“D0001”、“D0010”が変数として設定されている。
【0104】
このようなラダープログラムが実行部43で実行されると、中間処理部45からPLC通信制御部42へ、入出力機器4としての押しボタンスイッチのON/OFF状態の読み込みが指示される。押しボタンスイッチがONすると、その状態が、PLC通信制御部42によって、PLC2からメモリテーブルTmに読み込まれ、さらに、中間処理部45によって、リフレッシュテーブルTrにおける変数“X0”のデータがONに書き替えられる。
【0105】
すると、実行部43は、変数“X0”のデータがONになったことを受けて、出力コイル52の変数“Y0”をONに書き替えるように、中間処理部45に指示する。PLC通信制御部42は、中間処理部45から、そのデータの書き替えの要求を受けると、PLC2における内部メモリのランプに割り当てられたエリアにONを書き込む。これにより、PLC2は入出力機器4としてのランプをONさせる。
【0106】
続いて、中間処理部45からPLC通信制御部42へ、入出力機器4としてのリミットスイッチのON/OFF状態の読み込みが要求される。リミットスイッチがONすると、その状態が、PLC通信制御部42によって、PLC2からメモリテーブルTmに読み込まれ、さらに、中間処理部45によって、リフレッシュテーブルTrにおける変数“X1”のデータがONに書き替えられる。
【0107】
すると、実行部43は、変数“X1”のデータがONになったことを受けて、加算器54のデータレジスタ“D0000”の値“1”とデータレジスタ“D0001”の値“2”とを加算して、その結果をデータレジスタ“D0010”に書き込むように、中間処理部45に指示する。PLC通信制御部42は、中間処理部45から、そのデータの書き替えの要求を受けると、PLC2におけるデータレジスタ“D0000”・“D0001”にそれぞれ上記の値“1”・“2”およびその加算結果をデータレジスタ“D0010”に書き込む指示を与える。
【0108】
さらに、中間処理部45からPLC通信制御部42へ、加算器54の演算結果の読み込みが要求されると、PLC通信制御部42によって、PLC2からメモリテーブルTmに読み込まれたデータレジスタ“D0010”の値“3”が、中間処理部45によって、リフレッシュテーブルTrにおける変数“D0010”のデータが“3”に書き替えられる。
【0109】
また、プログラマブル表示器1において、ラダープログラムのモニタリング機能によって、ラダープログラムの実行状況を表示させる場合、上記のa接点51 ・53およびコイル出力52の状態、ならびに加算器の被演算値および演算結果が、図6(b)に示すように表示される。例えば、a接点51の状態は“on”として表され、a接点53の状態は“off ”として表され、コイル出力54の状態は“on”として表示されるか、あるいは表示色の変更で表される。このとき、制御表示部41は、PLC2から読み出されたデータをメモリテーブルTmを参照してモニタリングの表示に反映させるとともに、PLC2への書き込みのデータを制御部43から中間処理部45を介して受け取ってモニタリングの表示に反映させる。
【0110】
以上に述べたように、本実施の形態に係るのプログラマブル表示器1は、入出力機器4の名称に関連付けられて入出力機器4を特定する固定の特定情報(I/Oアドレス)で指定した入出力機器4に対してデータの読み書きを行うPLC2が接続され、変数で指定した入出力機器4・5に対してデータの読み書きを指示する実行部43、入出力機器4・5の制御状態を表示し、かつPLC2および実行部43を制御するための操作入力機能を有する制御表示部41、ならびに制御表示部41とPLC2との間の通信を制御するPLC通信制御部42を有しており、実行部43によって変数で指定された入出力機器4へのデータの読み書き(状態の変更)が指示されると、PLC通信制御部42がその変数で入出力機器4を指定できるように、変数として設定された入出力機器4の名称と上記の特定情報とを関連付けた関連情報(参照ファイルF)をPLC通信制御部42に与える中間処理部45(関連情報付与部)を備えている。
【0111】
このように、本実施の形態に係るプログラマブル表示器1は、中間処理部45を備えることによって、PLC2に接続された入出力機器4を実行部45から変数で指定して、参照ファイルFを参照しながら、そのデバイスのデータの読み書きを行うことができる。また、入出力機器4のデバイス名を変数として利用することで、デバイスコードおよび割付番号で入出力機器4を指定するPLC2に対しても、プログラマブル表示器1のPLC機能によってデバイスデータの読み書きが可能になる。
【0112】
その結果、外部のPLC2をプログラマブル表示器1のリモートI/Oとして利用することができる。また、プログラマブル表示器1のメモリ部12がPLC機能およびPLC2の双方のデータの読み書きに使用されることから、メモリ部12を、同一メーカの複数のPLCが相互に接続される際にPLC間で用いられるリンクリレーと呼ばれる共有メモリとして用いることができる。
【0113】
また、プログラマブル表示器1は、ソフトウェア上で中間処理部45を設けることによって、前述のように、PLC機能による外部デバイス(PLC2に接続された入出力機器4)のデータの読み書きが可能になるので、ハードウェア上の改造が不要である。しかも、PLC2に応じた参照ファイルFをコンピュータ装置1におけるエディタ部32で作成してプログラマブル表示器1にダウンロードすることによって、PLC2のメーカに関わらず、PLC機能による外部デバイスのデータの読み書きを実現することかできる。
【0114】
また、プログラマブル表示器1においては、中間処理部45が、変数とデータとを対応付けたリフレッシュテーブルTrと、PLC通信制御部42がPLC2から読み出した入出力機器4のデータを上記の変数に対応付けて書き込むメモリテーブルTmとを作成するとともに、リフレッシュテーブルTrのデータをメモリテーブルTmの対応するデータに更新するデータ更新部として機能する。
【0115】
これにより、PLC2から読み出されたデータは、PLC通信制御部42によって、メモリテーブルTmに書き込まれる。中間処理部45は、リフレッシュテーブルTrにおいて、変数に対応するデータを、メモリテーブルTmに新たに書き込まれた、その変数に対応するデータに書き替えて更新する。実行部43は、リフレッシュテーブルTrに書き替えられたデータを取得することによって、PLC2からのデータの読み出しを完了する。
【0116】
このように、PLC2から読み出されたデータを一旦メモリテーブルTmに書き込むことによって、PLC通信制御部42によるデータの読み出しと実行部43によるデータ取得とのタイミングが異なっても、実行部43が、中間処理部45によって更新されたデータをリフレッシュテーブルTrから取得することができる。
【0117】
さらに、中間処理部45によるPLC通信制御部42への指示手順が、制御表示部41によるPLC通信制御部42への指示手順と同一になるように設定されていることにより、入出力機器4の状態取得のための指示が、制御表示部41および中間処理部45のいずれからでも同じ手順で行われるので、中間処理部45に合わせた特別の手順を用意する必要がない。したがって、PLC通信制御部42の変更を不要にすることができ、ソフトウェアの開発コストを低減することができる。
【0118】
なお、本実施の形態では、制御手順プログラムとしてラダー図を用いた例について説明したが、本発明は、ラダー図だけではなく、前述のIEC 6 1131-3 で規定された5言語を含む他の言語によるプログラミングにおいても適用されるのは勿論である。
【0119】
【発明の効果】
以上のように、本発明の制御表示装置は、複数の第1デバイスのうち状態が変化する第1デバイスの状態を取得する一方、複数の第1デバイスのうち状態の変更が可能な第1デバイスの状態を変更する制御装置と通信する通信手段と、上記通信手段が取得した各第1デバイスの状態を表示する一方、入力された操作に応じた上記第1デバイスの状態変更指示を上記制御装置に送信するように上記通信手段を制御する制御表示手段と、第2デバイスに対応する変数および該変数で対象を特定した制御のための制御手順プログラムを記憶する記憶手段と、上記第2デバイスの状態をそれぞれに対応付けられた変数の内容として取得する一方、変数の内容に基づいて、上記制御手順プログラムが示す手順で更新すべき変数の内容を更新するとともに、該変数の内容に応じて、該変数に対応する上記第2デバイスの状態を変更する制御手段とを備え、上記記憶手段が、上記第1デバイスに対応する変数を上記第1デバイスの種類を特定するデバイスコードおよび上記第1デバイスを特定する番号と対応付けた関連情報を記憶可能である。さらに、制御表示装置は、上記変数に対応する状態が変化する上記第1デバイスの状態を書き替えるための第1テーブルと、前記通信手段が取得した状態が変化する上記第1デバイスの状態が当該第1デバイスに対応する変数と対応付けられて書き込まれる第2テーブルと、上記記憶手段に記憶された関連情報に対応する上記第1デバイスについての状態を取得するように上記通信手段に指示し、取得結果に応じて前記第2テーブルにおける上記第1デバイスの状態を更新し、上記第1テーブルにおける上記第1デバイスの状態を更新された上記第2テーブルにおける第1デバイスの状態と一致するように上記関連情報を参照して書き替える一方、上記第1テーブルにおいて書き替えられた上記第1デバイスの状態に応じた状態変更指示を上記制御装置に送信するように、上記通信手段へ指示する仲介手段とを備え、上記制御手段が、上記第1テーブルにおいて書き替えられた上記第1デバイスの状態に基づいて、上記制御手順プログラムが示す手順で更新すべき上記第1デバイスの状態を更新するための上記状態更新指示を上記仲介手段に与える構成である。
【0120】
このように、記憶手段に関連情報を記憶させるとともに、仲介手段がその関連情報で第1デバイスを指定して第1デバイスの状態を取得し、取得結果に応じて第2テーブルにおける第1デバイスの状態を更新し、第1テーブルにおける第1デバイスの状態を更新された第2テーブルにおける第1デバイスの状態と一致するように関連情報を参照して書き替える一方、第1テーブルにおいて書き替えられた第1デバイスの状態に応じた状態変更を通信手段に指示することによって、第2デバイスの状態取得および状態変更を行う制御手段から第1デバイスの状態取得および状態変更を行うことができる。したがって、制御表示装置(制御手段)からデバイスの指定形態が異なる他のメーカのPLC(制御装置)の第1デバイスを指定して、データの読み書きを行うことができ、制御システムにおける制御装置間での高度な連携を実現することができるという効果を奏する。
【0121】
上記の制御システムは、上記仲介手段による上記通信手段への指示手順が、上記制御表示手段による上記通信手段への指示手順と同一になるように設定されているので、第1デバイスの状態取得のための指示が、表示制御手段および仲介手段のいずれからでも同じ手順で行われることになり、仲介手段に合わせた特別の手順を用意する必要がない。したがって、通信手段の変更を不要にすることができ、ソフトウェアの開発コストを低減することができるという効果を奏する。
【0122】
本発明の制御プログラムは、上記制御表示装置を動作させ、コンピュータを上記制御表示装置を上記各手段として機能させるものである。また、本発明の記録媒体は、上記の制御プログラムを記録したコンピュータ読み取り可能な記録媒体である。
【0123】
これらの制御プログラムおよび記録媒体を用いても、各制御表示装置によって奏される上記の効果を同様に奏することができる。
【図面の簡単な説明】
【図1】本発明の実施の一形態に係る表示/制御システムにおけるプログラマブル表示器のFEPROMに格納される表示制御システムプログラムおよび制御機能プログラムの構成を示す説明図である。
【図2】上記表示/制御システムの構成を示すブロック図である。
【図3】上記表示/制御システムにおけるプログラマブル表示器のFEPROMに格納されるプログラム構成を示す説明図である。
【図4】上記プログラマブル表示器で表示されるユーザ画面の画面データに含まれる指示処理語の基本的フォーマットを示す説明図である。
【図5】上記制御機能プログラムにおける中間処理部によるデータリフレッシュの処理手順を示すフローチャートである。
【図6】(a)はプログラマブル表示器のPLC機能で実行されるラダープログラムを示す説明図であり、(b)は上記ラダープログラムが実行に伴って、プログラマブル表示器に接続されるPLCに対しデータの読み書きが行われた結果をモニタリングした状態を示す説明図である。
【符号の説明】
1 プログラマブル表示器(制御表示装置)
2 PLC(制御装置)
3 コンピュータ装置
4 入出力機器(第1デバイス)
5 入出力機器(第2デバイス)
6・7 記録媒体
12 メモリ部(記憶手段)
41 制御表示部(制御表示手段)
42 PLC通信制御部(通信手段)
43 実行部(制御手段)
45 中間処理部(仲介手段)
F 参照ファイル
Tm メモリテーブル
Tr リフレッシュテーブル[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a control display device that allows a device connected to an external control device to be specified and to acquire or change the state thereof, a control program, and a recording medium on which the control program is recorded.
[0002]
[Prior art]
An industrial control device called a programmable logic controller (hereinafter referred to as PLC) or the like is a hardware part mainly including a CPU and a memory and software for controlling the control in order to realize various controls including sequence control. And have a part. The software part includes design of a sequence control flow for operating the PLC in accordance with the control system at the time of design, conversion of the control flow into an instruction word, writing of the instruction word into a memory, and the like. In general, this series of operations is called programming.
[0003]
In such programming, a unique language is used so that it is easy to create a program without having expertise in computers, and various programming languages that are easy to use for users will be developed one after another. became. At present, a standard programming language has been established in the International Electrotechnical Commission (IEC) (IEC 61131-3). The five languages are SFC (Sequentia Function Chart), LD (Ladder Diagram), IL (Instruction List), FBD (Function Block Diagram) and ST (Structured Text).
[0004]
As described above, an environment is being prepared so that program development can be performed using various programming languages. For example, a ladder diagram (LD) is a programming language that has been widely used since the ladder circuit can be designed relatively easily using a relay symbol, and is still the most commonly used programming language. Programming software such as a ladder editor has become widespread as a programming tool used in such programming work using a programming language. Since this software can create a ladder diagram or the like in a form including a ladder symbol in a computer device such as a personal computer, it is easy to create and edit a program.
[0005]
In addition, in order to execute the created program, the input number and output number (I / O address) previously assigned to the input terminal and output terminal of the PLC, and the control target connected to each input / output terminal It is necessary to make assignments with devices. For this reason, the above-described programming software (editor) can be set and registered for the assignment.
[0006]
In recent years, programmable displays and panel computers as HMI (Human Machine Interface) devices have implemented PLC functions with software, as well as I / O, etc., for PLCs with manufacturer-specific specifications. By installing it, models with PLC function have appeared. In such an HMI device, like a normal programmable display, a PLC is connected to input a control instruction to the PLC and display a movable state of the PLC on the display, and also has the PLC function described above. There are some models. In this model, data can be exchanged with a device connected to the I / O by its own PLC function, and a dedicated PLC can be connected to exchange data with the device via this PLC.
[0007]
A device having such a PLC function also needs to be set for allocation, like the PLC.
[0008]
Conventionally, the notation of an I / O address differs depending on the manufacturer of the PLC. However, the above assignment basically assigns devices one-to-one to an absolute address fixed as an I / O address. However, in the HMI device having the PLC function described above, the device and the I / O address are allocated via variables (free variables) by using an editor in a standardized programming language compliant with IEC. Even if the I / O address changes due to a change in the O configuration or the like, the allocation once determined can be easily changed.
[0009]
[Problems to be solved by the invention]
In order to connect a plurality of PLCs and exchange data with each other, a common memory is provided between the PLCs, and when one PLC writes data to the shared memory, another PLC reads the data. Alternatively, link communication is performed between a plurality of PLCs via a network. In such a system, data is read and written via the I / O address. Therefore, if the I / O address is different for each PLC manufacturer as described above, data cannot be exchanged between PLCs of different manufacturers. .
[0010]
In addition, in the HMI device having the above-described PLC function, when communicating with an externally connected PLC, a communication unit that transmits and receives device data via an absolute address is used, while the PLC function is used to communicate with the device. In some cases, a communication means for transmitting and receiving data via a variable is used. For this reason, the above-mentioned HMI device cannot directly specify and read / write data of a PLC device from the PLC function.
[0011]
The present invention has been made in view of the above circumstances. A control display device, a control program, and a control program that can specify a device of another PLC from another manufacturer and read / write data of the device from the PLC. The object is to provide a recorded recording medium.
[0012]
[Means for Solving the Problems]
The control display device of the present invention is The state of multiple first devices changes First device While the status of the first device is acquired, the status of the first device that can be changed among the plurality of first devices is changed. A communication unit that communicates with the control device and a state of each first device acquired by the communication unit are displayed, while a state change instruction of the first device according to the input operation is transmitted to the control device. Control display means for controlling the communication means; storage means for storing a variable corresponding to the second device and a control procedure program for control specifying a target (input / output target, calculation target, etc.) using the variable; , While acquiring the state of the second device as the content of the variable associated with each, while updating the content of the variable to be updated in the procedure indicated by the control procedure program based on the content of the variable, In order to solve the above problem, a control display device comprising: control means for changing the state of the second device corresponding to the variable according to the contents of Stage, the variable corresponding to the first device Related information associated with a device code for identifying the type of the first device and a number for identifying the first device; The control display device can be stored A first table for rewriting the state of the first device in which the state corresponding to the variable changes, and a variable in which the state of the first device in which the state acquired by the communication means changes corresponds to the first device. A second table written in association with Stored in the storage means Related information Instructing the communication means to acquire the state of the first device corresponding to the In the second table Of the first device Status Update Then, the state of the first device in the first table is rewritten with reference to the related information so as to match the state of the first device in the updated second table. on the other hand, Rewritten in the first table above Of the first device Status An intermediary unit that instructs the communication unit to transmit a state change instruction according to the control unit to the control device When With The state update for the control means to update the state of the first device to be updated according to the procedure indicated by the control procedure program based on the state of the first device rewritten in the first table. Give instructions to the mediator It is characterized by that.
[0013]
In the above configuration, for example, the control device is a PLC, and the control display device is a programmable display having a PLC function. When acquiring the state of the second device (for example, data indicating the ON / OFF state of the device or numerical data), the state of the second device is acquired by the control means as the contents of the variable associated with each. . And the content of the variable memorize | stored in the memory | storage means is updated by the acquired content. On the other hand, when changing the state of the second device, the control means updates the content of the variable to be updated in the procedure indicated by the control procedure program based on the content of the variable, and according to the content of the variable, The state of the second device corresponding to the variable is updated. For example, in the case of a control procedure program including a procedure in which the lamp is turned on when the switch is turned on, when the content of the switch variable is ON (“1”), the lamp variable is turned on (“1”). The lamp variable changes from OFF (“0”) to ON (“1”), and the lamp state changes from OFF to ON.
[0014]
When acquiring the state of the first device from the control unit, if the control unit attempts to acquire the state of the first device in the same manner as acquiring the state of the second device, the mediating unit receives it and stores it in the storage unit. Was Related information Corresponding to First device The communication means is instructed to obtain the status for. Upon receiving the instruction, the communication means designates the first device as a variable and acquires the state of the first device from the control device through communication with the control device. And State of the first device in the second table Was acquired Status Updated to The state of the first device in the first table is rewritten with reference to related information so as to match the state of the first device in the updated second table. . On the other hand, when changing the state of the first device from the control means, The control means gives the mediating means a state update instruction for changing the state of the first device based on the state of the first device rewritten in the first table. The mediation means should be updated according to the procedure indicated by the control procedure program The state of the first device is changed according to the state of the first device rewritten in the first table. Instructs the control device to transmit a state change instruction. Upon receiving the instruction, the communication means designates the first device as a variable and causes the control device to change the state of the first device through communication with the control device.
[0015]
In this way, by storing the variable corresponding to the first device in the storage unit, the mediating unit specifies the first device with the variable and instructs the communication unit to acquire the state of the first device and change the state. The state acquisition and state change of the first device can be performed from the control means for performing the state acquisition and state change of the second device.
[0016]
It is preferable that the control display device is set so that an instruction procedure to the communication unit by the mediation unit is the same as an instruction procedure to the communication unit by the control display unit. In such a configuration, since the instruction for acquiring the state of the first device is issued in the same procedure from both the display control means and the mediation means, it is not necessary to prepare a special procedure according to the mediation means.
[0017]
The control program of the present invention operates the control display device and causes a computer to function as the above-described means. The recording medium of the present invention is a computer-readable recording medium on which the control program is recorded.
[0018]
Even using these control programs and recording media, the first device of another manufacturer's PLC (control device) can be specified from the control display device realized by each of the control display devices described above to read and write data. Can be realized similarly.
[0019]
DETAILED DESCRIPTION OF THE INVENTION
An embodiment of the present invention will be described with reference to FIGS. 1 to 6 as follows.
[0020]
The display / control system according to the present embodiment includes a
[0021]
The
[0022]
As the input device constituting the input /
[0023]
The
[0024]
The
[0025]
The input /
[0026]
Further, as shown in FIG. 3, the
[0027]
The display control system program is a program for realizing a basic function for performing image display control. The display control system program communicates with the
[0028]
The communication protocol is a protocol used in communication processing with the
[0029]
The screen data is created by a drawing
[0030]
The control function program is a program for realizing the basic functions of sequence control. This control function program executes a ladder program, controls communication with the
[0031]
A ladder program (control procedure program) is created by a user input operation using a
[0032]
The components included in the above screen data are prepared in advance as imaged basic components such as a touch switch, a lamp, and various displays (for example, a numerical display and a meter display). In addition, as a component, in order to express a dynamic change such as a switch or a numerical value display at an arbitrary position on the screen, a function unit (in which a desired moving image function is set in a rectangular area set at a desired position ( Tag). On the user screen including such a component, the component moves according to the operation of the device, and the operation status of the device is visualized.
[0033]
As shown in FIG. 4, the processing instruction word W included in the screen data is created for each event to be executed on the base screen. The processing instruction word W basically includes the file number F of the base screen on which the display control operation is to be executed, the event name T that specifies the operation content to be executed on the base screen, and the execution event for each execution event. And a set of reference information I made up of one or a plurality of data.
[0034]
CPU11 controls operation | movement of each part of the
[0035]
The VRAM 13 is a memory that temporarily holds an image of the screen displayed on the display 14, and stores the image of the screen data from the
[0036]
The display 14 is configured by a flat display element such as a liquid crystal panel or an EL panel. The
[0037]
The
[0038]
The
[0039]
Moreover, the
[0040]
The I /
[0041]
The I /
[0042]
Here, the display control system program and the control function program will be described in detail.
[0043]
As shown in FIG. 1, the display control system program includes a
[0044]
The
[0045]
In the memory in the
[0046]
Further, in the
[0047]
The PLC
[0048]
When the PLC
[0049]
In addition, when the PLC
[0050]
The
[0051]
In the
[0052]
The external
[0053]
The
[0054]
The device code is X (input device), Y (output device), M (internal relay), T (timer) that specifies the type of input /
[0055]
The memory table Tm as the second table is a table provided in the
[0056]
The reference device information is a relationship in which the device code and assignment number used when reading / writing data from / to the
[0057]
Further, the
[0058]
The communication between the
[0059]
The display control system program and the control function program are normally installed in advance in the
[0060]
Next, the
[0061]
The
[0062]
The
[0063]
The
[0064]
The
[0065]
The
[0066]
The
[0067]
Further, the symbol editor assigns input / output numbers by associating the numbers assigned to the input terminals and output terminals of the I /
[0068]
Since the
[0069]
For PLC2, the ladder program used differs depending on the manufacturer, and the setting of the I / O address differs, so that a ladder program is created with dedicated programming software different from the
[0070]
Furthermore, in the symbol editor, “discrete (bit)”, “counter”, “timer”, “integer” are used as the type (attribute data) of input / output data that is data input to the device and data output from the device. , “Real number” or “character string” can be set. For example, when a device such as a switch is in an on / off state, “discrete” is selected. In addition, for example, when the counter is a counter that counts the number of products produced, “counter” is selected, and when it is a timer that counts up to a predetermined time, “timer” is selected. . Furthermore, for example, when dealing with a numerical value such as a meter, “integer” or “real number” is selected.
[0071]
In addition, in the symbol editor, it is set as attribute data whether the variable corresponds to a device (input device and output device) connected via the
[0072]
The drawing
[0073]
The user screen created in this way is stored in the
[0074]
The reference
[0075]
The name (device name) of the input / output device connected to the
[0076]
By providing the
[0077]
The
[0078]
The above-mentioned program media include tape systems such as magnetic tapes and cassette tapes, magnetic disk systems such as floppy disks and hard disks, optical disk systems such as CD-ROM, MO, MD, and DVD, IC cards (including memory cards), optical A card system such as a card is preferred. In addition, the program medium may be a medium that carries a fixed program including a semiconductor memory such as a mask ROM, EPROM, EEPROM, flash ROM, or the like.
[0079]
Further, since the
[0080]
If the
[0081]
The
[0082]
The
[0083]
The
[0084]
The
[0085]
The
[0086]
Next, reading and writing of device data to and from the
[0087]
First, prior to reading and writing device data, the
[0088]
The reference
[0089]
The reference file F created in this way is downloaded to the
[0090]
In the
[0091]
First, a refresh table Tr is created based on the reference file F (S1), and a memory table Tm is created (S2). Next, the reference device information described in the reference file F is added to the basic device information supplied from the
[0092]
The PLC
[0093]
Then, the variable data in the refresh table Tr is rewritten while referring to the reference file F so as to match the data written in the memory table Tm (S4). At this time, the
[0094]
Further, it is monitored whether or not an abort flag indicating an abnormal termination or forced termination of the ladder program due to some failure is ON (S5). If the abort flag is not ON, the data rewriting process is continued. If the abort flag is ON, the process is terminated.
[0095]
In the process of executing the ladder program, when the input /
[0096]
As a result, the
[0097]
In the
[0098]
Data is written from the
[0099]
When the instruction or value (physical quantity) as described above is given to the input /
[0100]
Further, when an instruction (operation start instruction, product count number, etc.) is given by a user's input operation from the
[0101]
For example, when the number of products to be inspected in the non-defective product inspection is input from the
[0102]
A specific example of reading / writing device data will be described below.
[0103]
For example, as shown in FIG. 6A, in the ladder diagram, in the upper digit, a contact (normally open contact) 51 corresponding to the push button switch and a
[0104]
When such a ladder program is executed by the
[0105]
The
[0106]
Subsequently, the
[0107]
The
[0108]
Further, when the
[0109]
Further, when displaying the execution status of the ladder program by the monitoring function of the ladder program in the
[0110]
As described above, the
[0111]
As described above, the
[0112]
As a result, the
[0113]
In addition, since the
[0114]
In the
[0115]
Thereby, the data read from the
[0116]
In this way, even when the data read by the PLC
[0117]
Furthermore, since the instruction procedure to the PLC
[0118]
In this embodiment, an example using a ladder diagram as a control procedure program has been described. However, the present invention is not limited to a ladder diagram, but includes other languages including the five languages defined in IEC 6 1131-3. Of course, this also applies to programming by language.
[0119]
【The invention's effect】
As described above, the control display device of the present invention is The state of multiple first devices changes First device While the status of the first device is acquired, the status of the first device that can be changed among the plurality of first devices is changed. A communication unit that communicates with the control device and a state of each first device acquired by the communication unit are displayed, while a state change instruction of the first device according to the input operation is transmitted to the control device. Control display means for controlling the communication means, storage means for storing a variable corresponding to the second device and a control procedure program for control specified by the variable, and a state of the second device, respectively On the other hand, the content of the variable is acquired, while the content of the variable to be updated is updated according to the procedure indicated by the control procedure program based on the content of the variable, and corresponding to the variable according to the content of the variable Control means for changing the state of the second device; With , The storage means can store related information in which a variable corresponding to the first device is associated with a device code specifying the type of the first device and a number specifying the first device. Furthermore, the control display device includes a first table for rewriting the state of the first device in which the state corresponding to the variable changes, and the state of the first device in which the state acquired by the communication unit is changed. A second table written in association with a variable corresponding to the first device; Stored in the storage means Related information Instructing the communication means to acquire the state of the first device corresponding to the In the second table Of the first device Status Update Then, the state of the first device in the first table is rewritten with reference to the related information so as to match the state of the first device in the updated second table. on the other hand, Rewritten in the first table above Of the first device Status An intermediary unit that instructs the communication unit to transmit a state change instruction according to the control unit to the control device When With The state update for the control means to update the state of the first device to be updated according to the procedure indicated by the control procedure program based on the state of the first device rewritten in the first table. Give instructions to the mediator It is a configuration.
[0120]
Thus, the storage means Related information And the mediation means Related information Specify the first device in the state of the first device The Get The state of the first device in the second table is updated according to the acquisition result, and the related information is set so that the state of the first device in the first table matches the state of the first device in the updated second table. While referring to and rewriting, according to the state of the first device rewritten in the first table By instructing the communication means to change the state, it is possible to acquire the state and change the state of the first device from the control unit that acquires and changes the state of the second device. Therefore, it is possible to read and write data by designating the first device of another manufacturer's PLC (control device) having a different device designation form from the control display device (control means), and between the control devices in the control system. There is an effect that it is possible to realize the advanced cooperation.
[0121]
In the control system, the instruction procedure for the communication means by the mediation means is set to be the same as the instruction procedure for the communication means by the control display means. Therefore, the same instruction is issued from both the display control means and the mediation means, and it is not necessary to prepare a special procedure according to the mediation means. Therefore, it is possible to eliminate the need to change the communication means, and it is possible to reduce the software development cost.
[0122]
The control program of the present invention operates the control display device and causes a computer to function as the above-described means. The recording medium of the present invention is a computer-readable recording medium on which the control program is recorded.
[0123]
Even if these control programs and recording media are used, the above-described effects produced by the respective control display devices can be similarly produced.
[Brief description of the drawings]
FIG. 1 is an explanatory diagram showing a configuration of a display control system program and a control function program stored in an FEPROM of a programmable display in a display / control system according to an embodiment of the present invention.
FIG. 2 is a block diagram showing a configuration of the display / control system.
FIG. 3 is an explanatory diagram showing a program configuration stored in FEPROM of a programmable display in the display / control system.
FIG. 4 is an explanatory diagram showing a basic format of instruction processing words included in screen data of a user screen displayed on the programmable display.
FIG. 5 is a flowchart showing a data refresh processing procedure by an intermediate processing unit in the control function program.
6A is an explanatory diagram showing a ladder program executed by a PLC function of a programmable display, and FIG. 6B is a diagram for a PLC connected to the programmable display as the ladder program is executed. It is explanatory drawing which shows the state which monitored the result by which the reading / writing of data was performed.
[Explanation of symbols]
1 Programmable display (control display device)
2 PLC (control device)
3 Computer equipment
4 Input / output equipment (first device)
5 Input / output equipment (second device)
6.7 Recording media
12 Memory unit (storage means)
41 Control display section (control display means)
42 PLC communication control unit (communication means)
43 execution part (control means)
45 Intermediate processing section (mediation means)
F Reference file
Tm memory table
Tr refresh table
Claims (4)
上記通信手段が取得した各第1デバイスの状態を表示する一方、入力された操作に応じた上記第1デバイスの状態変更指示を上記制御装置に送信するように上記通信手段を制御する制御表示手段と、
第2デバイスに対応する変数および該変数で対象を特定した制御のための制御手順プログラムを記憶する記憶手段と、
上記第2デバイスの状態をそれぞれに対応付けられた変数の内容として取得する一方、変数の内容に基づいて、上記制御手順プログラムが示す手順で更新すべき変数の内容を更新するとともに、該変数の内容に応じて、該変数に対応する上記第2デバイスの状態を変更する制御手段とを備えた制御表示装置において、
上記記憶手段が、上記第1デバイスに対応する変数を上記第1デバイスの種類を特定するデバイスコードおよび上記第1デバイスを特定する番号と対応付けた関連情報を記憶可能であり、
制御表示装置が、
上記変数に対応する状態が変化する上記第1デバイスの状態を書き替えるための第1テーブルと、
前記通信手段が取得した状態が変化する上記第1デバイスの状態が当該第1デバイスに対応する変数と対応付けられて書き込まれる第2テーブルと、
上記記憶手段に記憶された関連情報に対応する上記第1デバイスについての状態を取得するように上記通信手段に指示し、取得結果に応じて前記第2テーブルにおける上記第1デバイスの状態を更新し、上記第1テーブルにおける上記第1デバイスの状態を更新された上記第2テーブルにおける第1デバイスの状態と一致するように上記関連情報を参照して書き替える一方、上記第1テーブルにおいて書き替えられた上記第1デバイスの状態に応じた状態変更指示を上記制御装置に送信するように、上記通信手段へ指示する仲介手段とを備え、
上記制御手段が、上記第1テーブルにおいて書き替えられた上記第1デバイスの状態に基づいて、上記制御手順プログラムが示す手順で更新すべき上記第1デバイスの状態を更新するための上記状態更新指示を上記仲介手段に与えることを特徴とする制御表示装置。A communication unit that acquires a state of a first device whose state changes among a plurality of first devices, and communicates with a control device that changes a state of the first device capable of changing a state among the plurality of first devices ; ,
Control display means for displaying the state of each first device acquired by the communication means, and for controlling the communication means so as to transmit an instruction to change the state of the first device according to the input operation to the control device. When,
Storage means for storing a variable corresponding to the second device and a control procedure program for control specifying a target by the variable;
While acquiring the state of the second device as the contents of the variable associated with each, while updating the contents of the variable to be updated in the procedure indicated by the control procedure program based on the contents of the variable, In a control display device comprising control means for changing the state of the second device corresponding to the variable according to the contents,
The storage means can store related information in which a variable corresponding to the first device is associated with a device code specifying the type of the first device and a number specifying the first device ;
Control display device
A first table for rewriting the state of the first device whose state corresponding to the variable changes;
A second table in which the state of the first device in which the state acquired by the communication means changes is written in association with a variable corresponding to the first device;
It instructs the communication means to acquire the state of the first device corresponding to the related information stored in the storage means, and updates the state of the first device in the second table in accordance with the acquisition result while rewriting by referring to the related information to match the state of the first device in the first device the second table state is updated in the in the first table, rewritten in the first table and the health state change instruction in response to the first device to send to the control unit, and a mediating means for indicating to the communication means,
The state update instruction for updating the state of the first device to be updated by the control means according to the procedure indicated by the control procedure program based on the state of the first device rewritten in the first table. Is provided to the mediating means .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001328294A JP3847601B2 (en) | 2001-10-25 | 2001-10-25 | Control display device, control program, and recording medium recording the same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001328294A JP3847601B2 (en) | 2001-10-25 | 2001-10-25 | Control display device, control program, and recording medium recording the same |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2003131709A JP2003131709A (en) | 2003-05-09 |
JP3847601B2 true JP3847601B2 (en) | 2006-11-22 |
Family
ID=19144385
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2001328294A Expired - Fee Related JP3847601B2 (en) | 2001-10-25 | 2001-10-25 | Control display device, control program, and recording medium recording the same |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3847601B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101917015A (en) * | 2010-07-20 | 2010-12-15 | 国电南瑞科技股份有限公司 | Hydraulic power plant vibration region crossing method based on master station AGC system |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4774683B2 (en) * | 2004-05-31 | 2011-09-14 | 富士電機株式会社 | Support device for servo controller |
JP4778312B2 (en) * | 2005-12-26 | 2011-09-21 | 株式会社デジタル | Data processing device, program, editor device, and recording medium |
JP4554570B2 (en) * | 2006-07-27 | 2010-09-29 | 株式会社デジタル | Programmable display, control program and recording medium recording the same, and control system, client program and recording medium recording the same |
JP4509991B2 (en) * | 2006-10-17 | 2010-07-21 | 株式会社デジタル | Programmable display, program and recording medium recording the same |
JP4573883B2 (en) * | 2008-05-19 | 2010-11-04 | 三菱電機株式会社 | Clutch / brake power amplifier device and control system thereof |
CN103384858B (en) | 2011-02-21 | 2016-01-20 | 三菱电机株式会社 | Process planning apparatus |
CN105834327A (en) * | 2016-03-25 | 2016-08-10 | 江苏信息职业技术学院 | Control system and method for automatic fireproof door frame forming machine |
KR101907199B1 (en) * | 2016-11-11 | 2018-10-12 | (주)위너스엔지니어링 | Device and method for driving program in instrumentation and control facility |
-
2001
- 2001-10-25 JP JP2001328294A patent/JP3847601B2/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101917015A (en) * | 2010-07-20 | 2010-12-15 | 国电南瑞科技股份有限公司 | Hydraulic power plant vibration region crossing method based on master station AGC system |
CN101917015B (en) * | 2010-07-20 | 2012-12-05 | 国电南瑞科技股份有限公司 | Hydraulic power plant vibration region crossing method based on master station AGC system |
Also Published As
Publication number | Publication date |
---|---|
JP2003131709A (en) | 2003-05-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2008033573A (en) | Programmable display, control program, recording medium recording the same, control system, client program, and recording medium recording the same | |
CN111052008B (en) | Display device, picture generation method, and storage medium | |
JP3847601B2 (en) | Control display device, control program, and recording medium recording the same | |
JP3847585B2 (en) | Editor registration device, registration program, and recording medium recording the same | |
JP6954191B2 (en) | Control systems, development support equipment, and development support programs | |
JP2008084027A (en) | Programmable display device, display program and recording medium recording the same | |
JP2007179115A (en) | PROGRAMMABLE DISPLAY, CONTROL PROGRAM AND RECORDING MEDIUM RECORDING THE PROGRAM, AND SERVER, SERVER PROGRAM AND RECORDING MEDIUM RECORDING THE PROGRAM | |
JP2008033572A (en) | Screen generating apparatus, screen generating program and recording medium for recording this program | |
JP3913414B2 (en) | Editor device and recording medium recording editor program | |
JP3939518B2 (en) | Input / output address setting device, input / output address setting program and recording medium recording the same | |
JP3795357B2 (en) | Editor device, editor program, and recording medium recording the same | |
JP4566904B2 (en) | System, control program and recording medium recording the program, and image data creation program and recording medium recording the program | |
JP4463716B2 (en) | Programmable display, display control program, and recording medium recording the same | |
JP3795473B2 (en) | Editor device and recording medium recording editor program | |
JP4429990B2 (en) | SCREEN CREATION DEVICE, SCREEN CREATION PROGRAM, RECORDING MEDIUM RECORDING THE PROGRAM, PROGRAMMABLE DISPLAY, CONTROL PROGRAM, AND RECORDING MEDIUM RECORDING THE PROGRAM | |
JP2007179112A5 (en) | ||
JP3712640B2 (en) | Editor device and recording medium recording editor program | |
JP3195322B2 (en) | Editor device and recording medium recording editor program | |
JP4372739B2 (en) | PROGRAMMABLE DISPLAY, CONTROL PROGRAM, RECORDING MEDIUM RECORDING THE PROGRAM, SCREEN CREATION DEVICE, SCREEN CREATION PROGRAM, AND RECORDING MEDIUM RECORDING THE PROGRAM | |
JP2006134098A (en) | Programmable display, display control program, and recording medium with the program recorded thereon | |
JP2003044277A (en) | Program development support device, program development support program and recording medium having the same program recorded thereon | |
JP3512685B2 (en) | SCREEN DATA CREATION METHOD, SCREEN DATA CREATION DEVICE, AND RECORDING MEDIUM CONTAINING THE PROGRAM | |
JP4509991B2 (en) | Programmable display, program and recording medium recording the same | |
JP3730101B2 (en) | CONTROL SYSTEM, CONTROL SYSTEM DATA WRITE / READ METHOD, AND RECORDING MEDIUM CONTAINING PROGRAM FOR DATA WRITE / READ | |
JP2008097551A (en) | Unit information setting device, unit information setting program, and recording medium recording it |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20051121 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20051213 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060210 |
|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20060210 |
|
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: 20060822 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20060823 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 3847601 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090901 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100901 Year of fee payment: 4 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100901 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110901 Year of fee payment: 5 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120901 Year of fee payment: 6 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130901 Year of fee payment: 7 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |