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 PDF

Info

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
Application number
JP2001328294A
Other languages
Japanese (ja)
Other versions
JP2003131709A (en
Inventor
博一 石川
健一 胸元
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Schneider Electric Japan Holdings Ltd
Original Assignee
Digital Electronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Digital Electronics Corp filed Critical Digital Electronics Corp
Priority to JP2001328294A priority Critical patent/JP3847601B2/en
Publication of JP2003131709A publication Critical patent/JP2003131709A/en
Application granted granted Critical
Publication of JP3847601B2 publication Critical patent/JP3847601B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

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 programmable display 1 and a PLC 2 as shown in FIG.
[0021]
The PLC 2 as the control device includes a CPU / power supply module, an input unit, and an output unit. The CPU / power supply module includes a CPU section including a CPU and a memory, and a power supply section that supplies power to each section of the PLC 2. The CPU performs arithmetic processing of control data to be given to the output device based on a signal input from the input device via the input unit according to the control system program. The input unit and the output unit are parts having interface functions connected to the input device and the output device, respectively, and exchange digital signals or analog signals input / output with these devices with the CPU unit. It is like that.
[0022]
As the input device constituting the input / output device 4 as the first device, devices such as sensors (temperature sensors, optical sensors, etc.) and switches (push button switches, limit switches, pressure switches, etc.) are used. Actuators, relays, electromagnetic valves, indicators, and the like are used as the output devices constituting the input / output device 4. These input devices and output devices are arranged in required parts of various target systems such as a production line.
[0023]
The programmable display 1 as a control display device includes a CPU 11, a memory unit 12, a VRAM 13, a display 14, a graphic controller 15, a touch panel 16, a touch panel controller 17, a maintenance port 18, an I / O unit 19, and an I / O control interface 20. I have.
[0024]
The memory unit 12 as a storage means includes a memory such as a DRAM 12a and a FEPROM (Flash Erasable and Programmable ROM) 12b. The DRAM 12a is used not only for operations during arithmetic processing such as display control but also for temporary storage of data of the input / output device 5 input / output via the communication controller 19 or the I / O unit 20. It is done. The SRAM 12c is used for logging data obtained from the input / output device 5 (input device) and storing control data (recipe data) to be given to the input / output device 5 (output device). The FEPROM 12b is a rewritable read-only flash memory and plays a role of a hard disk drive in a general personal computer. A flash memory does not have a movable part and is resistant to impacts, and thus operates stably even in a poor ambient environment.
[0025]
The input / output device 5 as the second device is the same device as the input / output device 4 connected to the PLC 2.
[0026]
Further, as shown in FIG. 3, the FEPROM 12b has areas for storing a display control system program, a communication protocol, screen data, a control function program, and a ladder program.
[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 PLC 2 to execute work instructions (data writing) to the PLC 2, data collection (data reading) of the input / output devices 5. And operation input processing from the display 14 is performed. Further, the reading / writing of the data of the input / output devices 5 through the I / O unit 20 using the PLC function is executed, and display processing necessary for this and operation input processing from the display 14 are performed.
[0028]
The communication protocol is a protocol used in communication processing with the PLC 2 and is uniquely determined according to the model (manufacturer) of the PLC 2. The FEPROM 12b stores the communication protocol of the PLC 2 that is guaranteed to be connected by the programmable display 1.
[0029]
The screen data is created by a drawing editor 32b described later and downloaded to the FEPROM 12b. The screen data includes a base screen to be displayed on the display 14, data of parts as graphic elements, a processing instruction word W (see FIG. 4) given to each mark, and the like, and constitutes a display content program. is doing.
[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 ladder editor 32a, and designates the input / output device 4 connected to the PLC 2 to read / write data.
[0031]
A ladder program (control procedure program) is created by a user input operation using a ladder editor 32a described later, and is downloaded to the FEPROM 12b. This ladder program is a program that defines a control procedure so that the input / output devices 4 and 5 (hereinafter collectively referred to as devices when not limited to the input / output devices 4 and 5) operate according to a desired sequence. The control function program and the ladder program are used when the PLC function of the programmable display 1 is used.
[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 programmable display 1 according to the display control system program stored in the above-mentioned FEPROM12b. The CPU 11 has a function of controlling communication with a computer device 3 (to be described later) via a maintenance port 18 (to be described later). When receiving screen data from the drawing editor or a user program from the user program editor, the FEPROM 12b To store.
[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 FEPROM 12b as dot data in the order of display in the horizontal direction.
[0036]
The display 14 is configured by a flat display element such as a liquid crystal panel or an EL panel. The graphic controller 15 is driver software that draws an image of a screen developed in the VRAM 13 on the display 14. The touch panel 16 is provided for inputting on the display screen of the display 14, and an analog resistance film type touch panel or the like is preferable. The touch panel controller 17 converts the output voltage of the touch panel 16 into input position information and outputs it to the CPU 11.
[0037]
The maintenance port 18 is a communication port for performing communication with the computer apparatus 3 described later.
[0038]
The communication controller 19 is an interface that controls the transfer of data related to control and monitoring of the input / output devices 4... And the capture of the output data of the PLC 2 via the communication cable (for example, RS-232C).
[0039]
Moreover, the programmable display 1 is equipped with a PLC function and is configured to directly control the input / output devices 5. Therefore, the programmable display device 1 includes an I / O unit 20 and an I / O control interface 21 as shown in FIG.
[0040]
The I / O unit 20 includes a large number of input / output terminals, input / output circuits and the like so that the input / output devices 5 can be connected. Different models of the I / O unit 20 are detachably attached to the main body of the programmable display 1 according to the communication system to be connected. For example, as the I / O unit 20, a DIO unit for inputting / outputting digital data or a remote I / O unit (an analog / digital conversion unit, a high-speed counter unit, etc.) is used. The programmable display 1 is preliminarily defined with an I / O unit 20 that can be mounted and guarantees the operation.
[0041]
The I / O control interface 21 is an interface circuit that mediates transmission / reception of signals between the CPU 11 and the input / output unit 20, and includes an input / output memory, a D / A converter, an A / D converter, and the like. .
[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 control display unit 41 and a PLC communication control unit 42, and the control function system program includes an execution unit 43, an external communication control unit 44, and an intermediate processing unit 45. It is out.
[0044]
The control display unit 41 as a control display means performs various display processes such as display of screen data (user screen) and alarm screen, and monitoring of a ladder program. In addition, the control display unit 41 performs a process instruction input process (writing recipe data) to the PLC 2 in accordance with an operation input on the user screen displayed on the display 14 and a process of reading data from the PLC 2. .
[0045]
In the memory in the PLC 2, the storage location of the word device and the bit device can be specified by designating an address. In the word device, input / output data is set for word data such as a numerical value, and the bit device is set for bit data such as an on / off state. With such a setting, the control display unit 41 individually changes the state of the input / output devices 4 by instructing the PLC communication control unit 42 to access any word device or bit device in the PLC 2. In addition, the state of the input / output device 4 can be acquired individually.
[0046]
Further, in the SRAM 12c of the programmable display 1, as in the memory in the PLC 2, the storage location of the word device and the bit device can be specified by specifying the address. With such a setting, the control display unit 41 changes the state of the input / output devices 5... Individually and accesses the state of the input / output devices 5... Only by accessing an arbitrary word device or bit device in the SRAM 12 c. Can be acquired individually.
[0047]
The PLC communication control unit 42 as a communication means defines a procedure for performing communication based on the communication protocol stored in the FEPROM 12b in order to control communication with the PLC 2. When the control display unit 41 instructs the PLC communication control unit 42 to read the data of the designated input / output device 4, the PLC communication control unit 42 reads the data captured in the memory of the PLC 2. In addition, when the control display unit 41 instructs the PLC communication control unit 42 to write data of the specified input / output device 4, the PLC communication control unit 42 writes the specified data in the memory of the PLC 2.
[0048]
When the PLC communication control unit 42 reads (acquires) the data of the input / output device 4 from the PLC 2 in accordance with the instruction of the control display unit 41, the PLC communication control unit 42 obtains necessary information from the state information indicated by the bit device or the word device. While reading into the memory unit 12 in a timely manner (for example, periodically), the processing instruction word W is repeatedly read, and the operation specified by the event name T of each processing instruction word W is referred to the state information on the PLC 2 side. Run while. As a result, a display operation that changes according to a change in the state of the bit device or the word device is executed.
[0049]
In addition, when the PLC communication control unit 42 reads (acquires) data of the input / output device 5 in accordance with an instruction from the intermediate processing unit 45 to be described later, it is necessary among the state information indicated by the bit device or the word device. While the information is read into the memory unit 12 in a timely manner (for example, periodically), the processing instruction word W is repeatedly read out, and the operation of the content specified by the event name T of each processing instruction word W is the state in the memory unit 12 Execute while referring to the information. As a result, a display operation that changes according to a change in the state of the bit device or the word device is executed.
[0050]
The execution unit 43 as a control unit is the core of the control function program, and executes the ladder program stored in the FEPROM 12b at a predetermined scan time. As the ladder program is executed, the execution unit 43 designates the input / output devices 4 and 5 using variables to be described later, and writes data to the input / output devices 4 and 5 and data from the input / output devices 4 and 5. Is read out. More specifically, the execution unit 43 acquires the state of the input / output devices 4 and 5 from the refresh table Tr (to be described later) as variable data (variable contents) associated therewith, while the variable written to the refresh table Tr. Based on the contents of the variable, the data of the variable to be updated in the procedure indicated by the ladder program is updated in the refresh table Tr, and the state of the input / output devices 4 and 5 corresponding to the variable is changed according to the data of the variable To do.
[0051]
In the memory unit 12 in the programmable display 1, a word device and a bit device are set so that the storage location can be specified, as in the memory of the PLC 2 described above. The execution unit 43 reads necessary information out of the state information indicated by the bit device or the word device into another area of the memory unit 12 in a timely manner, and uses the processing instruction word W in the same manner as the control display unit 41. Execute the displayed operation.
[0052]
The external communication control unit 44 is a communication driver program that controls communication through the maintenance port 18. The communication with the ladder editor 32a in the computer apparatus 3 is performed by communication controlled by the external communication control unit 44.
[0053]
The intermediate processing unit 45 performs processing necessary for data exchange between the execution unit 43 and the above-described control display unit 41 in order to read / write data to / from a device connected to the PLC 2 by the execution unit 43. The intermediate processing unit 45 as an intermediary unit refers to basic device information (specific information) including a device code supplied from the control display unit 41, an allocation number, and a pointer of a memory table Tm (see FIG. 1) described later. Reference device information (related information) described in the file F (see FIG. 1) is added and transmitted to the PLC communication control unit 42, and data reading / writing to the PLC 2 is instructed based on the information. When the intermediate processing unit 45 instructs the PLC communication control unit 42 to read data from the PLC 2 (acquisition of the state of the input / output device 4) and write data (change of the state of the input / output device 4), the intermediate processing unit 45 The same procedure as that of the control display unit 41 is performed.
[0054]
The device code is X (input device), Y (output device), M (internal relay), T (timer) that specifies the type of input / output device 4 connected to the input / output terminal of PLC 2 and the type of internal device of PLC 2. ), C (counter), R (shift register), D (data register), and the like, which are represented by 16 bits. The allocation number (0, 1, 2, 3,...) Is a number assigned to each of the input / output terminals and internal devices of the PLC 2 and is represented by 16 bits. The device code and the allocation number as described above are uniquely defined for each manufacturer of the PLC 2, and the I / O addresses composed of these combinations are similarly different among the manufacturers.
[0055]
The memory table Tm as the second table is a table provided in the SRAM 12c of the memory unit 12 in order to write the data read from the PLC 2 by the PLC communication control unit 42, and stores the data in association with the variables. Yes. The pointer is used to designate a position where the read data is written in the memory table Tm.
[0056]
The reference device information is a relationship in which the device code and assignment number used when reading / writing data from / to the PLC 2 are associated with variables. As will be described later, the reference device information is specified in the reference file F created by the reference file creation unit 32c.
[0057]
Further, the intermediate processing unit 45 creates a refresh table Tr (first table) for rewriting the device data corresponding to the variable in the SRAM 12c based on the reference file F, and the PLC communication control unit 42 performs the PLC2 A memory table Tm for writing the data read from is created in the DRAM 12a as a work area. The intermediate processing unit 45 rewrites the data in the refresh table Tr so that it matches the device data written in the memory table Tm.
[0058]
The communication between the control display unit 41, the PLC communication control unit 42, the execution unit 43, the external communication control unit 44 and the intermediate processing unit 45 is performed between tasks via the OS (operating system) of the programmable display 1. Done by mail.
[0059]
The display control system program and the control function program are normally installed in advance in the memory unit 12 of the programmable display 1 at the time of shipment. However, the display control system program and the control function program are installed on the programmable display 1 by a detachable recording medium 7. May be. Since it is preferable that the programmable display 1 does not include a mechanical part having a movable part so that there is no inconvenience in operation even under the influence of vibration or the like, the recording medium 7 may be a flash memory or the like. A memory card is suitable. If such a recording medium 7 is used, the latest version of the program can be provided by the recording medium 7 even when both of the above programs are upgraded.
[0060]
Next, the computer device 3 will be described.
[0061]
The computer device 3 is constituted by a general-purpose computer such as a personal computer. As shown in FIG. 2, the computer device 3 includes a CPU 31, an editor unit 32, a ladder file 33, a screen file 34, a memory unit 35, a display 36, an input device 37, an external storage device 38, and an interface unit (in the figure, I / F) 39.
[0062]
The CPU 31 performs control and arithmetic processing of each unit when operating various application software including the editor unit 32 on the OS installed in the computer apparatus 3.
[0063]
The memory unit 35 includes a memory such as a RAM and a ROM, and plays a role of storing fixed data, temporarily storing data, and providing a work area when the CPU 31 performs arithmetic processing.
[0064]
The editor unit 32 includes a ladder editor 32a, a drawing editor 32b, and a reference file creation unit 32c.
[0065]
The ladder editor 32a is programming software for creating a ladder program that defines a control procedure of the PLC function of the PLC 2 or the programmable display 1 so that the device operates in accordance with a desired sequence, and the device is displayed on the display screen of the display 36. A ladder diagram can be created by arranging ladder symbols (graphic elements) corresponding to the above operations. In the ladder editor 32a, for example, the aforementioned programming language conforming to the international standard IEC is used. The ladder program created by the ladder editor 32a is transferred to the PLC 2 via the programmable display 1 (or directly) together with I / O setting data to be described later, and downloaded to the FEPROM 12b in the PLC 2.
[0066]
The ladder editor 32a includes a symbol editor. The symbol editor is an editor for creating variables (symbols) individually associated with devices. Examples of variables that are data related to the ladder program include codes corresponding to devices such as SW1 corresponding to switches and LAMP1 corresponding to lamps, operation instructions, and event names and comments such as device operating states.
[0067]
Further, the symbol editor assigns input / output numbers by associating the numbers assigned to the input terminals and output terminals of the I / O unit 20 with the variables set for the devices connected to the respective input / output terminals. (I / O assignment). The result of this allocation is registered as a temporary file in the RAM of the memory unit 35 at the time of allocation, and is stored in the program file 34 as I / O setting data after the setting is completed.
[0068]
Since the ladder editor 32a conforming to IEC allows the user to determine input / output by a free variable, the allocation once determined can be changed later. Therefore, even if the model of the I / O unit 20 is changed, the assignment can be changed by associating the I / O address with the already set variable.
[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 ladder editor 32a. Also, when assigning PLC2, I / O setting data is made by combining the I / O address consisting of the above-mentioned device code and assignment number and the device name (device name) corresponding to each I / O address. Is created.
[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 PLC 2 or an internal device of the programmable display 1 it can. The internal device is a device provided in the programmable display 1 that can acquire data without communicating with the PLC 2 by using a calculation function of the programmable display 1 such as a counter indicating the number of operations. In the former case, after accepting the “input” or “output” setting input, the input of the I / O address associated with the device is accepted, while in the latter case, the “internal” setting input is accepted.
[0072]
The drawing editor 32b displays the display 14 on the display 14 so that the programmable display device 1 has a function as a terminal for inputting various monitor values for management such as device operation status and work instructions, and setting values for the devices. This is screen creation software that creates screens. In general, the drawing editor 32b can generate components (graphics) such as switches, lamps, numeric keys, and various displays (for example, a numerical display, a meter display, and a graph display) so that a user-specific screen (user screen) can be created. Element), drawing function, text input function, etc. Further, the drawing editor 32b can associate a variable set by a symbol editor 32c described later with a component.
[0073]
The user screen created in this way is stored in the screen file 34 as screen data, and transferred to the programmable display device 1 through the interface unit 39 together with I / O setting data, which will be described later, as necessary. Downloaded as screen data.
[0074]
The reference file creation unit 32c is given to the input / output device 4 connected to the PLC 2 from the variables created by the symbol editor in order to create the reference file F used for the processing in the control display unit 41 described above. A variable is searched, and a reference file F is created by associating the variable with a device code and a terminal number.
[0075]
The name (device name) of the input / output device connected to the PLC 2 is previously input as a variable into the symbol editor by the user. In the general PLC 2, the device name is a name given to the input / output device 4 for convenience so that the operator can easily identify the input / output device 4. For this reason, reading / writing of data of the input / output device 4 is performed not via a device name but via an I / O address composed of a device code and a terminal number. On the other hand, the PLC function of the programmable display 1 reads / writes the data of the input / output device 5 via a variable, so that the device name is changed to a variable so that the PLC 2 can be similarly read / written. Set as.
[0076]
By providing the editor unit 32, the computer device 3 functions as an editor device for creating and editing ladder programs, screen data, and the like.
[0077]
The editor unit 32 is software that can be provided in the form of program media as package software or tailor-made software, and is recorded on the recording medium 6 that is separable from the computer device 3, for example. The editor unit 32 can exhibit an editor function by being installed in the computer device 3 from the recording medium 6. The editor unit 32 is installed in the computer device 3 as a single application program provided on a common frame.
[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 computer apparatus 3 can be connected to a communication network including the Internet, the computer apparatus 3 may be a medium that carries the program in a fluid manner so as to download the program from the communication network. However, when the program is downloaded from the communication network in this way, the download program may be stored in the computer device 3 in advance or may be installed from another recording medium.
[0080]
If the programmable display device 1 is configured to be connectable to the communication network, the programmable display device 1 can download the display control system program and the control function program in the same manner as described above. .
[0081]
The ladder file 33 stores a ladder program. The ladder program includes mnemonics (ladder instructions) and operands corresponding to the input ladder symbols.
[0082]
The screen file 34 stores screen data. The screen data includes graphic data about the input parts. This graphic data includes graphic data, text data, and component data. The graphic data is data such as a line, a circle, an ellipse, a triangle, a quadrangle, and a filled figure. The text data includes a user screen title and text composed of characters, symbols, and the like. The part data is data relating to the above-described parts prepared in advance in the drawing editor 32b.
[0083]
The display 36 is configured by a CRT, LCD, or the like, but the computer device 3 that is a panel computer is configured by a flat display element such as a liquid crystal panel or an EL panel. The input device 37 is a device for performing input operations such as a keyboard and a mouse. In particular, a device such as a mouse is suitable for input work in the editor unit 32 that operates in a GUI (Graphical User Interface) environment. .
[0084]
The external storage device 38 is a device such as a magnetic disk drive such as a hard disk device, an optical disk drive such as a CD-ROM drive, or a memory card drive such as an IC card. The external storage device 38 includes at least a device that can read out information such as a program recorded in the recording medium 6.
[0085]
The interface unit 39 is an input / output unit that performs data communication with the programmable display device 1. The ladder program created by the ladder editor 32a and the screen data created by the drawing editor 32b are transferred to the programmable display device 1 through the interface unit 39.
[0086]
Next, reading and writing of device data to and from the PLC 2 by the PLC function (control function program) of the programmable display 1 in the display / control system configured as described above will be described.
[0087]
First, prior to reading and writing device data, the ladder editor 32a performs an operation of registering a device name as a variable. At this time, the ladder editor 32a is activated in the computer device 3, and the variable can be input by the symbol editor. In this state, the name (device name) of the input / output device 4 connected to the PLC 2 is input as a variable by a user operation.
[0088]
The reference file creation unit 32c first selects the manufacturer (model) of the PLC 2 connected to the programmable display 1 and specifies the input / output device 4 connected to the PLC 2. Then, the reference file creation unit 32c imports all the variables created by the symbol editor, and searches the device name (variable) for the specified input / output device 4 from the variables. Then, the reference file creation unit 32c reads the device code and assignment number corresponding to the searched input / output device 4 from a file (not shown) that stores the device code and assignment number for the PLC 2 in advance, and A reference file F is created by associating the retrieved variables with each other.
[0089]
The reference file F created in this way is downloaded to the FEPROM 12b of the programmable display 1.
[0090]
In the programmable display 1, when reading / writing device data from the execution unit 43 to the PLC 2, the intermediate processing unit 45 performs the following processing according to the flowchart of FIG. 5.
[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 control display unit 41 and transmitted to the PLC communication control unit 42 (S3).
[0092]
The PLC communication control unit 42 receives a read instruction based on the basic device information (device code and assigned number) included in the information transmitted from the intermediate processing unit 45 and is written in the internal memory of the PLC 2. Reads data from the input / output device 4. At this time, the PLC communication control unit 42 reads only the data of the input / output device 4 specified by the reference device information and writes it in the area specified by the pointer of the basic device information in the memory table Tm.
[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 intermediate processing unit 45 reads the data from the pointer corresponding to the variable of the device code and the assignment number corresponding to the variable whose data is to be rewritten, and rewrites the data of the variable to the read data in the refresh table Tr. .
[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 / output device 4 from which data is read changes, the variable corresponding to that device also changes. On the other hand, when the variable changes, the intermediate processing unit 45 rewrites (updates) the data of the variable (contents of the variable) with the data of the variable read in the memory table Tm in the refresh table Tr. .
[0096]
As a result, the control display unit 41 updates the data designated by the pointer of the memory table Tm as necessary on the screen displayed on the display 14. On the other hand, the execution unit 43 takes in the data written in the refresh table Tr. In this way, by reading the data from the PLC 2 by the intermediate processing unit 45 and rewriting the data using the reference file F, the input / output device 4 is also read from the execution unit 43 by specifying the variable ( To get).
[0097]
In the programmable display 1, the update cycle of the device data displayed on the screen is set to a time interval (for example, 0.5 seconds) that can be recognized by humans, and is therefore the execution cycle of the ladder program. Does not synchronize with scan time (μs order). However, it is only necessary that the device data read from the PLC 2 has the final value when the ladder program scan is completed rewritten in the refresh table Tr.
[0098]
Data is written from the execution unit 43 to the input / output device 4 of the PLC 2 as follows. For example, in the operation control of the table in which the direction is reversed and moved when the table is moved to a predetermined position, it is read as ON data detected by the limit switch that the table has been moved to the predetermined position, and the moving direction of the table is reversed. Therefore, an instruction to reversely rotate the motor needs to be written in the PLC 2 as data.
[0099]
When the instruction or value (physical quantity) as described above is given to the input / output device 4 as data, first, the execution unit 43 transmits the variable and the data (the state of the input / output device 4 to be changed) to the intermediate processing unit 45. To do. Then, as in the case of data reading, the intermediate processing unit 45 adds the reference device information described in the reference file F to the basic device information supplied from the control display unit 41, and sends it to the PLC communication control unit 42. Send. Based on the basic device information (device code and assigned number) included in the information transmitted from the intermediate processing unit 45, the PLC communication control unit 42 stores the input / output device corresponding to the variable in the internal memory of the PLC 2. 4 data is written.
[0100]
Further, when an instruction (operation start instruction, product count number, etc.) is given by a user's input operation from the touch panel 16 of the programmable display device 1, the instruction is executed from the control display unit 41 via the intermediate processing unit 45. 43. The execution unit 43 receives this instruction, and writes the data of the input / output device 4 in the internal memory of the PLC 2 according to the above procedure.
[0101]
For example, when the number of products to be inspected in the non-defective product inspection is input from the programmable display 1, the number is written as data in the PLC 2. Then, in PLC2, the value is preset to the designated counter.
[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 coil output 52 corresponding to the lamp are provided. In the lower digit, an a contact 53 corresponding to the limit switch and an adder 54 are provided. For the contact a 51, “X0” consisting of the device code “X” and the assignment number “0” is set as a variable, and for the coil output 52, “Y0” is similarly set as a variable. Similarly, “X10” is set as a variable for the a contact 53, and “D0000”, “D0001”, and “D0010” are set as variables for the adder 54.
[0104]
When such a ladder program is executed by the execution unit 43, the intermediate processing unit 45 instructs the PLC communication control unit 42 to read the ON / OFF state of the push button switch as the input / output device 4. When the push button switch is turned on, the state is read from the PLC 2 to the memory table Tm by the PLC communication control unit 42, and further, the data of the variable “X0” in the refresh table Tr is turned on by the intermediate processing unit 45. It is done.
[0105]
The execution unit 43 then instructs the intermediate processing unit 45 to rewrite the variable “Y0” of the output coil 52 to ON when the data of the variable “X0” is turned ON. When the PLC communication control unit 42 receives a request for rewriting the data from the intermediate processing unit 45, the PLC communication control unit 42 writes ON in the area allocated to the lamp of the internal memory in the PLC2. As a result, the PLC 2 turns on the lamp as the input / output device 4.
[0106]
Subsequently, the intermediate processing unit 45 requests the PLC communication control unit 42 to read the ON / OFF state of the limit switch as the input / output device 4. When the limit switch is turned on, the state is read from the PLC 2 to the memory table Tm by the PLC communication control unit 42, and further, the data of the variable “X1” in the refresh table Tr is rewritten to ON by the intermediate processing unit 45. .
[0107]
The execution unit 43 receives the value “1” of the data register “D0000” and the value “2” of the data register “D0001” of the adder 54 in response to the data of the variable “X1” being turned ON. The intermediate processing unit 45 is instructed to add and write the result to the data register “D0010”. When the PLC communication control unit 42 receives a request for rewriting the data from the intermediate processing unit 45, the values “1” and “2” and the addition thereof are added to the data registers “D0000” and “D0001” in the PLC 2, respectively. An instruction to write the result to the data register “D0010” is given.
[0108]
Further, when the intermediate processing unit 45 requests the PLC communication control unit 42 to read the calculation result of the adder 54, the PLC communication control unit 42 stores the data register “D0010” read from the PLC 2 into the memory table Tm. With the value “3”, the intermediate processing unit 45 rewrites the data of the variable “D0010” in the refresh table Tr to “3”.
[0109]
Further, when displaying the execution status of the ladder program by the monitoring function of the ladder program in the programmable display 1, the state of the above-mentioned a contacts 51 and 53 and the coil output 52, the operation value and the operation result of the adder are displayed. , As shown in FIG. 6B. For example, the state of the a contact 51 is represented as “on”, the state of the a contact 53 is represented as “off”, and the state of the coil output 54 is represented as “on” or represented by changing the display color. Is done. At this time, the control display unit 41 reflects the data read from the PLC 2 in the monitoring display with reference to the memory table Tm, and writes the data written to the PLC 2 from the control unit 43 via the intermediate processing unit 45. Receive and reflect on the monitoring display.
[0110]
As described above, the programmable display device 1 according to the present embodiment is designated by fixed specific information (I / O address) that identifies the input / output device 4 in association with the name of the input / output device 4. The PLC 2 that reads / writes data to / from the input / output device 4 is connected, the execution unit 43 that instructs the input / output device 4/5 specified by the variable to read / write data, and the control status of the input / output devices 4/5. A control display unit 41 that displays and has an operation input function for controlling the PLC 2 and the execution unit 43, and a PLC communication control unit 42 that controls communication between the control display unit 41 and the PLC 2, When the execution unit 43 instructs the input / output device 4 specified by the variable to read / write data (change of state), the PLC communication control unit 42 can specify the input / output device 4 by the variable. And a middle section 45 to provide related information associating the name and the specific information input and output device 4 which is set as a number (see file F) to the PLC communication control unit 42 (related information adding unit).
[0111]
As described above, the programmable display device 1 according to the present embodiment includes the intermediate processing unit 45 so that the input / output device 4 connected to the PLC 2 is designated by the variable from the execution unit 45 and the reference file F is referred to. However, it is possible to read / write data of the device. Also, by using the device name of the input / output device 4 as a variable, the device data can be read and written by the PLC function of the programmable display 1 for the PLC 2 that designates the input / output device 4 by the device code and the assigned number. become.
[0112]
As a result, the external PLC 2 can be used as a remote I / O of the programmable display 1. Further, since the memory unit 12 of the programmable display 1 is used for reading and writing data of both the PLC function and the PLC 2, the memory unit 12 is connected between PLCs when a plurality of PLCs of the same manufacturer are connected to each other. It can be used as a shared memory called a link relay.
[0113]
In addition, since the programmable display device 1 can provide the intermediate processing unit 45 on the software, as described above, it is possible to read and write data of the external device (the input / output device 4 connected to the PLC 2) by the PLC function. No hardware modifications are required. In addition, the reference file F corresponding to the PLC 2 is created by the editor unit 32 in the computer apparatus 1 and downloaded to the programmable display device 1, thereby realizing reading and writing of external device data by the PLC function regardless of the manufacturer of the PLC 2. I can do it.
[0114]
In the programmable display 1, the intermediate processing unit 45 corresponds to the refresh table Tr in which variables and data are associated, and the data of the input / output device 4 read out from the PLC 2 by the PLC communication control unit 42 to the above variables. A memory table Tm to be appended is created and functions as a data updating unit that updates data in the refresh table Tr to corresponding data in the memory table Tm.
[0115]
Thereby, the data read from the PLC 2 is written to the memory table Tm by the PLC communication control unit 42. The intermediate processing unit 45 updates the data corresponding to the variable in the refresh table Tr by rewriting the data corresponding to the variable newly written in the memory table Tm. The execution unit 43 completes reading of data from the PLC 2 by acquiring the data rewritten in the refresh table Tr.
[0116]
In this way, even when the data read by the PLC communication control unit 42 and the timing of data acquisition by the execution unit 43 are different by temporarily writing the data read from the PLC 2 to the memory table Tm, the execution unit 43 Data updated by the intermediate processing unit 45 can be acquired from the refresh table Tr.
[0117]
Furthermore, since the instruction procedure to the PLC communication control unit 42 by the intermediate processing unit 45 is set to be the same as the instruction procedure to the PLC communication control unit 42 by the control display unit 41, Since the instruction for obtaining the state is issued from the control display unit 41 and the intermediate processing unit 45 in the same procedure, it is not necessary to prepare a special procedure according to the intermediate processing unit 45. Therefore, the change of the PLC communication control unit 42 can be made unnecessary, and the software development cost can be reduced.
[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デバイスの状態を取得する一方、複数の第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デバイスの状態を更新するための上記状態更新指示を上記仲介手段に与えることを特徴とする制御表示装置。
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 .
上記仲介手段による上記通信手段への指示手順が、上記制御表示手段による上記通信手段への指示手順と同一になるように設定されていることを特徴とする請求項1に記載の制御表示装置。2. The control display device according to claim 1, wherein an instruction procedure for the communication means by the mediating means is set to be the same as an instruction procedure for the communication means by the control display means. 請求項1または2に記載の制御表示装置を動作させる制御プログラムであって、コンピュータを上記各手段として機能させるための制御プログラム。A control program for operating the control display device according to claim 1 or 2 for causing a computer to function as each means. 請求項3に記載の制御プログラムを記録したコンピュータ読み取り可能な記録媒体。A computer-readable recording medium on which the control program according to claim 3 is recorded.
JP2001328294A 2001-10-25 2001-10-25 Control display device, control program, and recording medium recording the same Expired - Fee Related JP3847601B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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
US9632496B2 (en) 2011-02-21 2017-04-25 Mitsubishi Electric Corporation Engineering apparatus which associates programmable logic controller data with human machine interface data
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

Cited By (2)

* Cited by examiner, † Cited by third party
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
JP3847601B2 (en) Control display device, control program, and recording medium recording the same
JP2007179115A (en) Programmable display, control program, recording medium with the program recorded thereon, server, server program, and recording medium with the program recorded thereon
JP2006099568A (en) Screen forming device, screen forming program and storage medium recording the same
US11880625B2 (en) Display device, screen generation method, and screen generation program
JP3847585B2 (en) Editor registration device, registration program, and recording medium recording the same
JP2010287034A (en) Address display system of modbus protocol communication between external equipment and plc
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
JP6954191B2 (en) Control systems, development support equipment, and development support programs
JP2008084027A (en) Programmable display device, display program and recording medium recording the same
JP2007179112A5 (en)
JP2007094724A (en) Programmable display, control program, storage medium recording the program, screen generating device, screen generating program, and storage medium recording the 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
JP2007065907A (en) Screen preparation device, screen preparation program, record medium recording its program, programmable display unit, control program, and record medium recording its program
JP2001075791A (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
JP2001075790A (en) Editor device and recording medium recording editor program
JP3795473B2 (en) Editor device and recording medium recording editor program
JP2007065910A (en) Screen preparation device, and screen preparation program, and record medium recording its program
JP3712640B2 (en) Editor device and recording medium recording editor program
JP3195322B2 (en) Editor device and recording medium recording editor 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

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