JP3712640B2 - Editor device and recording medium recording editor program - Google Patents

Editor device and recording medium recording editor program Download PDF

Info

Publication number
JP3712640B2
JP3712640B2 JP2001222084A JP2001222084A JP3712640B2 JP 3712640 B2 JP3712640 B2 JP 3712640B2 JP 2001222084 A JP2001222084 A JP 2001222084A JP 2001222084 A JP2001222084 A JP 2001222084A JP 3712640 B2 JP3712640 B2 JP 3712640B2
Authority
JP
Japan
Prior art keywords
editor
program
data
control procedure
display content
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
JP2001222084A
Other languages
Japanese (ja)
Other versions
JP2002062911A (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 JP2001222084A priority Critical patent/JP3712640B2/en
Publication of JP2002062911A publication Critical patent/JP2002062911A/en
Application granted granted Critical
Publication of JP3712640B2 publication Critical patent/JP3712640B2/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(Sequential Function Chart) 、LD(Ladder Diagram)、IL(Instruction List)、FBD(Function Block Diagram)およびST(Structured Text) の5言語である。
【0004】
上記のように、各種のプログラミング言語を用いてプログラム開発を行うことができるように環境が整えられつつある。例えば、ラダー図(LD)は、リレーシンボルを用いて比較的容易にラダー回路を設計することができるので従来から広く普及しており、現在でも最もよく用いられているプログラミング言語である。このようなプログラミング言語を用いたプログラミング作業において用いられるプログラミングツールとしては、ラダーエディタなどのプログラミングソフトウェアが普及してきている。このソフトウェアは、パーソナルコンピュータなどのコンピュータ装置において、ラダー図などをシンボルを含む形態で作成できるので、プログラムの作成および編集が容易に行える。
【0005】
一方、プログラマブル表示器は、ドット表示画面、操作用入力スイッチ、ホストコントローラ(PLC)とのインターフェース、画面上での操作入力のような制御のためのプログラムメモリなどを備えた操作用表示器である。一般に、プログラマブル表示器は、グラフィック表示を行うので、操作盤、スイッチ、表示灯などの機能を備えることができる他、制御対象機器(デバイス)の稼働状況や作業指示のような管理のための各種のモニタ、機器に対する設定値を入力する端末としての機能を備えている。
【0006】
また、近年では、制御対象機器を接続するための入出力ユニットなどを搭載することによってPLCの制御機能を備えたプログラマブル表示器も登場してきている。
【0007】
このようなプログラマブル表示器で表示される制御画面(表示内容プログラム)は、画面作成ソフトウェア(作画エディタ)を用いてユーザ独自で作成できるようになっている。画面作成に際しては、ユーザが、パーソナルコンピュータなどにおいて作画ソフトによって提供されるスイッチ、ランプ、テンキー、メータ表示器、グラフ表示器などの部品(マーク)、描画機能などを用いて所望の制御画面を構成する。
【0008】
作成された制御画面は、画面データとしてプログラマブル表示器に転送されて記憶される。PLCの稼働時には、プログラマブル表示器は、PLCとの間でやり取りされるデータに基づいて、制御対象機器の動作状態に応じて制御画面上に各部品や図形を表示させる。
【0009】
ところで、ラダーエディタなどを用いた制御手順プログラムの作成(プログラミング)と、作画エディタを用いた表示内容プログラムの作成(画面作成)とは、一般には独立して行われる。例えば、作成された制御手順プログラムに基づいて表示内容プログラムを作成する場合は、制御手順プログラムの作成時に各デバイスについて入力された名称およびアドレスをテーブルの形式で書き留めたような設計資料を作成しておき、その設計資料を参照しながらI/Oアドレスの定義付けなどを含む表示内容プログラムの作成作業を行う。また、作成された表示内容プログラムに基づいて制御手順プログラムを作成する場合も同様に、予め用意された設計資料に基づいて作業を行う。
【0010】
しかしながら、このような方法では、表示内容プログラムの作成のための入力作業が制御手順プログラムの作成のための入力作業と別途必要であるので、多大な時間と労力とを要する。また、一方のプログラムに対応する設計資料を参照しながら他方のプログラムを作成するので、他方のプログラムの作成時に誤入力が生じるおそれがあり、誤入力によってプログラムのデバッグ作業が困難になる。さらに、作成されたプログラムに対応する設計資料を予め用意しなければならず、これによって作業効率が低下するという不都合がある。
【0011】
このような不都合を解消するためになされた発明として、特開平11−175326号公報には、ラダー図を作成するラダーエディタと画面を作成する作画エディタとの間でラダーシンボルと画面に配置されるマークとを対応付けるエディタ装置が開示されている。このエディタ装置では、例えば、ラダー図のシンボルを作画エディタの作画ウインドウにドラッグ&ドロップすることによって、1つのシンボルおよびこのシンボルに対応する少なくとも1つのマークについて共通する制御対象機器の名称およびアドレスを含む属性データが共通データベースに蓄えられるとともに、その属性データを参照して作画ウインドウにドラッグされた上記のシンボルに対応するマークが表示される。
【0012】
【発明が解決しようとする課題】
ところが、上記公報に開示されたエディタ装置では、データの共通化を図ることによって、ラダーエディタと作画エディタとで重複するデータの再入力を避けることができるものの、属性データを蓄えるための共通データベースを、ラダーエディタ用のラダーファイルおよび作画エディタ用の画面ファイルと別途設ける必要がある。しかも、作成されたラダー図(ユーザプログラム)および画面(ユーザ画面)を、最終的にそれぞれラダーファイルおよび画面ファイルに登録する際に、両ファイルにも上記の属性データが格納されるため、さらに属性データが重複して登録されることになる。また、属性データが共通データベースからラダーファイルまたは画面ファイルに複写されるため、外部システムのデータをラダーファイルおよび画面ファイルと共有させる場合、そのシステムからのデータを共通データベースに複写してから、さらにラダーファイルおよび画面ファイルに複写するという手順を経る必要がある。
【0013】
このように、従来のエディタ装置では、データベースの効率的な利用が図られていないという不都合がある。
【0014】
本発明は、上記の事情に鑑みてなされたものであって、データの重複入力を避けることができるという従来のエディタ装置が備える操作性を維持しながら、データベースを効率的に利用し、さらには、外部システムとのデータの共有を容易に実現することができるエディタ装置およびエディタプログラムを記録した記録媒体を提供することを目的としている。
【0015】
本発明のエディタ装置は、制御対象機器の状態を表示する表示内容を定めるための表示内容プログラムを作成する第1エディタ手段と、上記制御対象機器を制御する制御手順を定めるための制御手順プログラムを作成する第2エディタ手段と、上記表示内容プログラムを格納する表示内容プログラムファイルと上記制御手順プログラムを格納する制御手順プログラムファイルとの間で上記両プログラムに共通するデータを複写するデータ複写手段とを備えるエディタ装置であって、上記の課題を解決するために、上記データ複写手段が、上記表示内容プログラムまたは上記制御手順プログラムとCADにより作成された図記号との間で共通するデータを、当該図記号名と、上記制御対象機器に接続される機器に割り付けられるアドレスの代わりに用いられる変数とが同一に設定されているCADデータベースから上記表示内容プログラムまたは上記制御手順プログラムファイルに複写することを特徴としている。
【0016】
上記の構成では、CADによって作成された図記号がCADデータベースに格納されている。また、CADによる図記号の作成後に、第1エディタ手段の操作によって表示内容プログラムを作成する場合、または第2エディタ手段の操作によって制御手順プログラムを作成する場合、データ複写手段によって、表示内容プログラムまたは制御手順プログラムとCADにより作成された図記号との間で共通するデータが、CADデータベースから表示内容プログラムファイルまたは上記制御手順プログラムファイルに複写される。
【0017】
このように、CADデータベースに格納されたデータが表示内容プログラムファイルまたは上記制御手順プログラムファイルに複写されるので、CADで作成されたデータを表示内容または制御手順プログラムの作成に利用することができる。しかも、CADと両エディタ手段とによるデータの重複入力を避けることができる。
【0018】
上記のエディタ装置においては、ネットワークを介して他のシステムに接続されており、上記データ複写手段が上記両ファイルと上記システムとの間でデータを複写することが好ましい。これによって、システムから直接上記両ファイルのいずれか一方にデータを複写することができる。
【0019】
上記のエディタ装置においては、上記データが複写されたいずれか一方の上記ファイルに対応する上記第1または第2エディタ手段が、複写された上記データを参照することによって、上記データに関連する画像ブロックを表示することが好ましい。
【0020】
上記の構成では、データ複写手段によって、データがCADデータベースから表示内容プログラムファイルまたは制御手順プログラムファイルに複写される際に、第1または第2エディタ手段が、複写されたデータを参照することで、そのデータに関連する画像ブロックを表示する。それゆえ、データの複写と併せて画像ブロックを表示することができる。
【0021】
また、上記データ複写手段が、CAD画面上に表示された図記号を選択し、かつ上記第1または第2エディタ手段のエディタ画面上へ複写させる操作に応じて、上記図記号と上記表示内容プログラムまたは上記制御手順プログラムとの間で共通するデータを複写することが好ましい。これにより、例えば、すでに作成された図記号に基づいて表示内容プログラムまたは制御手順プログラムを作成する場合、データ複写手段によって、CAD画面上での図記号の選択およびそれをエディタ画面上へ複写させる操作に応じて、上記のデータが、CADデータベースから表示内容プログラムファイルまたは制御手順プログラムファイルに複写される。
【0022】
本発明のエディタプログラムが記録された記録媒体は、制御対象機器の状態を表示する表示内容を定めるための表示内容プログラムを作成する第1エディタ処理と、上記制御対象機器を制御する制御手順を定めるための制御手順プログラムを作成する第2エディタ処理と、上記表示内容プログラムを格納する表示内容プログラムファイルと上記制御手順プログラムを格納する制御手順プログラムファイルとの間で上記両プログラムに共通するデータを複写するデータ複写処理とを含むエディタプログラムを記録したコンピュータ読み取り可能な記録媒体であって、前記の課題を解決するために、上記データ複写処理が、上記表示内容プログラムまたは上記制御手順プログラムとCADにより作成された図記号との間で共通するデータを、当該図記号名と、上記制御対象機器に接続される機器に割り付けられるアドレスの代わりに用いられる変数とが同一に設定されているCADデータベースから上記表示内容プログラムまたは上記制御手順プログラムファイルに複写することを特徴している。
【0023】
この記録媒体を用いると、データ複写処理によって、本発明のエディタ装置と同様、図記号と両プログラムとの間で共通するデータが、CADデータベースから両ファイルに複写される。それゆえ、CADで作成されたデータを表示内容または制御手順プログラムの作成に利用することができる。
【0024】
本発明のエディタプログラムが記録された他の記録媒体は、制御対象機器の状態を表示する表示内容を定めるための表示内容プログラムを作成する第1エディタ処理または上記制御対象機器を制御する制御手順を定めるための制御手順プログラムを作成する第2エディタ処理のいずれか一方と、上記表示内容プログラムを格納する表示内容プログラムファイルと上記制御手順プログラムを格納する制御手順プログラムファイルとの間で上記両プログラムに共通するデータを複写するデータ複写処理とを含むエディタプログラムを記録したコンピュータ読み取り可能な記録媒体であって、前記の課題を解決するために、上記データ複写処理が、上記表示内容プログラムまたは上記制御手順プログラムとCADにより作成された図記号との間で共通するデータを、当該図記号名と、上記制御対象機器に接続される機器に割り付けられるアドレスの代わりに用いられる変数とが同一に設定されているCADデータベースから上記表示内容プログラムまたは上記制御手順プログラムファイルに複写することを特徴としている。
【0025】
この記録媒体を用いれば、前記の記録媒体と同様、データ複写処理によって、図記号と両プログラムとの間で共通するデータがCADデータベースから両ファイルに間複写されるので、CADで作成されたデータを表示内容または制御手順プログラムの作成に利用することができる。さらに、この記録媒体によれば、第1または第2エディタ処理のいずれか一方とデータ複写処理とを含んでいる2種類のエディタプログラム、すなわち第1または第2エディタプログラムを提供することができる。
【0026】
上記の両記録媒体は、上記第1エディタ処理が、上記データが複写されたいずれか一方の上記ファイルに対応する上記第1または第2エディタ処理が、複写された上記データを参照することによって、上記データに関連する画像ブロックを表示することが好ましい。
【0027】
このような記録媒体を用いれば、前述のエディタ装置と同様、データ複写処理によって、第2エディタ処理が、複写されたデータを参照することで、そのデータに関連する画像ブロックを表示する一方、第1エディタ処理が、複写されたデータを参照することで、そのデータに関連する画像ブロックを表示する。それゆえ、データの複写と併せて画像ブロックを表示することができる。
【0028】
また、上記データ複写処理が、上記データ複写処理が、CAD画面上に表示された上記図記号を選択し、かつ上記第1または第2エディタ処理のエディタ画面上へ複写させる操作に応じて、上記図記号と上記表示内容プログラムまたは上記制御手順プログラムとの間で共通するデータを複写することが好ましい。これにより、前述のエディタ装置と同様、作成された図記号に基づいて表示内容プログラムまたは制御手順プログラムを作成する場合、データ複写手段によって、CAD画面上での図記号の選択およびそれをエディタ画面上へ複写させる操作に応じて、上記のデータが、CADデータベースから表示内容プログラムファイルまたは制御手順プログラムファイルに複写される。
【0029】
【発明の実施の形態】
本発明の実施の一形態について図1ないし図21に基づいて説明すれば、以下の通りである。
【0030】
本実施の形態に係る表示/制御システムは、様々な構成が考えられるが、ここでは、第1ないし第3の構成について説明する。
【0031】
まず、図1に示す第1の表示/制御システムは、プログラマブル表示器1およびPLC2を含んでいる。
【0032】
表示機能部としてのプログラマブル表示器1は、CPU11、メモリ部12、VRAM13、ディスプレイ14、グラフィックコントローラ15、タッチパネル16、タッチパネルコントローラ17、メンテナンスポート18および通信コントローラ19を備えている。
【0033】
メモリ部12は、DRAM12a、FEPROM(Flash Erasable and Programmable ROM)12b等のメモリを含んでいる。DRAM12aは、主に、表示制御などの演算処理時の作業用に用いられる他、PLC2との間でやり取りされるデータの一時的な記憶に用いられる。FEPROM12bは、書き替え可能な読み出し専用のフラッシュメモリであり、一般のパーソナルコンピュータにおけるハードディスクドライブの役割を果たす。フラッシュメモリは、可動部を持たず、かつ衝撃に強いので、劣悪な周囲環境でも安定して動作する。
【0034】
また、上記のFEPROM12bは、図2に示すように、表示制御システムプログラムと、通信プロトコルと、画面データとをそれぞれ格納するエリアを有している。表示制御システムプログラムは、画像表示制御を行うための基本機能を実現するためのプログラムである。通信プロトコルは、PLC2との通信処理で用いられるプロトコルであり、PLC2の機種(メーカ)に応じて固有に定められている。画面データは、後述する作画エディタ32bによって作成されて、FEPROM12bにダウンロードされている。この画面データは、ディスプレイ14に表示すべきベース画面や画像ブロックとしてのマークのデータおよび各マークに付与された後述する処理指示語W(図3参照)などを含んでおり、表示内容プログラムを構成している。
【0035】
上記のマークは、タッチスイッチ、ランプ、各種表示器などの画像化された基本的な部品として予め用意されている。また、マークとしては、スイッチや数値表示器などの動的変化を画面上の任意の位置で表現させるために、所望の位置に設定された矩形エリアに所望の動画機能が設定された機能部も含まれる。
【0036】
図3に示すように、画面データに含まれる処理指示語Wは、ベース画面上で実行されるべき事象毎に作成されている。この処理指示語Wは、基本的には、表示制御動作を実行すべきベース画面のファイル番号Fと、このベース画面上で実行されるべき動作内容を特定する事象名Tと、各実行事象毎に参照される1または複数のデータからなる参照情報Iとを一組として備えている。
【0037】
CPU11は、前述のFEPROM12bに格納された表示制御システムプログラムにしたがって、プログラマブル表示器1の各部の動作を制御する。また、CPU11は、後述するメンテナンスポート18を介しての後述するコンピュータ装置3との通信を制御する機能を有しており、作画エディタ32bからの画面データを受け取るとFEPROM12bに格納したり、ラダーエディタ32aからのラダープログラム(ユーザプログラム)を受け取るとPLC2に転送したりする。
【0038】
VRAM13は、ディスプレイ14に表示される画面のイメージを一時的に保持するメモリであり、FEPROM12bからの画面データのイメージを水平方向に表示される順にドットデータとして格納している。
【0039】
ディスプレイ14は、液晶パネルやELパネルのような平板型表示素子によって構成されている。グラフィックコントローラ15は、VRAM13に展開された画面のイメージを、ディスプレイ14に描画するドライバソフトウェアである。タッチパネル16は、ディスプレイ14の表示画面上で入力を行うために設けられており、アナログ抵抗膜式タッチパネルなどが好適である。タッチパネルコントローラ17は、タッチパネル16の出力電圧を入力位置情報に変換してCPU11に出力する。
【0040】
メンテナンスポート18は、後述するコンピュータ装置3との間の通信を行うための通信ポートである。一方、通信コントローラ19は、通信ケーブル(例えばRS−232C)を介してPLC2との間で入出力機器4…の制御や監視に関するデータなどの転送やPLC2の出力データの取り込みを制御するインターフェースである。
【0041】
制御機能部としてのPLC2は、内蔵するCPU部によって、制御機能プログラムにしたがい、ラダーエディタ32aで作成されたユーザプログラム(制御手順プログラム)で定められた手順で、入出力機器4…の動作を制御する。
【0042】
PLC2内のメモリには、アドレスを指定することにより、ワードデバイスおよびビットデバイスが格納場所を特定可能に設定されている。ワードデバイスは、入出力されるデータが数値のようなワードデータに対して設定され、ビットデバイスは、オン・オフ状態のようなビットデータに対して設定される。このような設定により、PLC2内の任意のワードデバイスまたはビットデバイスをアクセスするだけで入出力機器4…を制御し、またはその動作状態に関する情報を個別に取り出すことができる。
【0043】
プログラマブル表示器1は、上記のビットデバイスまたはワードデバイスが示す状態情報のうち、必要な情報を適時にメモリ部12に読み込む一方、上記の処理指示語Wを繰り返し読み出して各処理指示語Wの事象名Tで特定される内容の動作をPLC2側の状態情報を参照しながら実行する。これによって、ビットデバイスまたはワードデバイスの状態の変化に応じて変化する表示動作が実行される。
【0044】
プログラマブル表示器1の表示動作は、図4に示すフローチャートの手順にしたがって行われる。
【0045】
まず、PLC2と通信が可能なオンラインモード、またはプログラマブル表示器1のみを動作させるオフラインモードのいずれか一方を選択する(S1)。オフラインモードが選択された場合(NO)、プログラマブル表示器1において、設定処理、診断処理などの各種の処理を行い(S6)、処理をS1に戻す。
【0046】
S1でオンラインモードが選択された場合(YES)、起動処理としてプログラマブル表示器1のメモリ部12に設定されている前記の処理指示語Wで引用されているPLC2側の状態情報がプログラマブル表示器1側に取り出される。具体的には、メモリ部12に格納されている処理指示語W…のうち、現在表示されているベース画面に関係する処理指示語Wに含まれる情報から、PLC2に設定されたワードデバイスおよびビットデバイスのアドレスが抽出される。そして、そのアドレスに基づいてPLC2のメモリに直接アクセスすることによって、アドレス指定された状態情報がメモリ部12に展開され、操作画面上に表示される。オンラインモードでは、プログラマブル表示器1に表示された操作パネル画面による入力操作があったか否かを判断する(S2)。ここで、入力操作があった場合は、入力されたデータに基づいて所定の演算処理を実行し(S3)、さらにデータ通信処理を行う(S4)。
【0047】
次いで、各事象の表示処理を実行する(S5)。このとき、メモリ部12に格納されている処理指示語Wのうち、通信処理によって抽出された状態情報に基づく表示動作が行われる。
【0048】
続いて、コンピュータ装置3について説明する。
【0049】
図1に示すように、コンピュータ装置3は、パーソナルコンピュータなどの汎用コンピュータによって構成されている。このコンピュータ装置3は、CPU31、エディタ部32、データファイル33、メモリ部34、ディスプレイ35、入力装置36、外部記憶装置37およびインターフェース部(図中、I/F)38を備えている。
【0050】
CPU31は、コンピュータ装置3にインストールされているOS(オペレーティングシステム)上でエディタ部32を含む各種のアプリケーションソフトウェアを動作させる際の各部の制御や演算処理を行う。
【0051】
メモリ部34は、RAM、ROMなどのメモリを備えており、固定データの格納、一時的なデータ記憶、CPU31の演算処理時における作業エリアの提供といった役割を果たしている。
【0052】
エディタ部32は、ラダーエディタ32a、作画エディタ32b、アプリケーション32cおよび複写機能部32dを含んでいる。
【0053】
第2エディタ手段としてのラダーエディタ32aは、入出力機器4…が所望のシーケンスにしたがって動作するようにPLC2の制御手順を定めるユーザプログラムを作成するためのプログラミングソフトウェアであり、ディスプレイ35の表示画面35a(図15(a)参照)上で入出力機器4の動作に対応するラダー記号(シンボル)を配置してラダー図を作成できるように構成されている。このラダーエディタ32aにおいては、例えば、国際基準IECに準拠した前述のプログラミング言語が用いられる。
【0054】
また、ラダーエディタ32aは、PLC2の入力端子および出力端子のそれぞれに付与されている入力番号および出力番号と、各入出力端子に接続される入出力機器4の名称(デバイス名)との対応付けを入出力番号の割り付け(I/Oアサイン)として行う。この割り付けの結果は、後述のラダーファイル33aに保存される。
【0055】
割り付けを行う際、メモリ部34には、入力番号および出力番号をそれぞれアドレスとして、各アドレスに対応するデバイス名が格納される。従来、このような割り付けは、PLCのメーカによって異なっており、絶対アドレスで設定されるので、メーカに応じたメモリテーブルを用意する必要がある。ただし、IECに準拠した本ラダーエディタ32aは、自由変数によってユーザが入出力を決定できるので、上記のようなメモリテーブルは不要である。また、一度決定した割り付けも、後に変更することができる。
【0056】
ラダーエディタ32aで作成されたユーザプログラムは、プログラマブル表示器1を介して(または直接)PLC2に転送され、PLC2内のメモリにダウンロードされる。
【0057】
第1エディタ手段としての作画エディタ32bは、プログラマブル表示器1が、入出力機器4…の稼働状況や作業指示のような管理のための各種のモニタ、機器に対する設定値を入力する端末としての機能を備えるように、ディスプレイ14に表示させる画面を作成する画面作成ソフトウェアである。一般に、作画エディタ32bは、ユーザ独自の画面(ユーザ画面)を作成できるように、スイッチ、ランプ、テンキー、各種表示器(例えば、数値表示器、メータ表示器およびグラフ表示器)などの部品(マーク)、描画機能、テキスト入力機能などを備えている。また、作画エディタ32bは、作成された画面に配置されたマークの各入出力機器4に対する前記の入出力番号(アドレス)を割り付ける。
【0058】
このようにして作成されたユーザ画面は、後述の画面ファイル33bに格納され、必要に応じてインターフェース部38を介してプログラマブル表示器1に転送され、FEPROM12bに画面データとしてダウンロードされる。
【0059】
アプリケーション32cは、主に汎用のアプリケーションソフトウェアであって、ラダーエディタ32aおよび作画エディタ32bとやり取りを行うことができる属性データを生成するソフトウェアによって構成されている。そのソフトウェアとしては、データを作成することができる表計算ソフトウェアや、回路などを設計するためのCADソフトウェアなどが挙げられる。
【0060】
データ複写手段としての複写機能部32dは、OSのデータ複写機能を利用して、作画エディタ32bで作成される画面において、ラダーエディタ32aで作成されたラダー図におけるラダー記号に対応するマークを自動的に生成(描画)させるとともに、そのラダー記号の属性データをマークの属性データとして複写する。また、複写機能部32dは、同様にOSのデータ複写機能を利用して、ラダーエディタ32aで作成されるラダー図において、作画エディタ32bで作成された画面におけるマークに対応するラダー記号を自動的に生成(描画)させるとともに、そのマークの属性データをラダー記号の属性データとして複写する。
【0061】
具体的には、属性データの複写は、メモリ部34に設けられる後述のクリップボードCB(図16および図18参照)を介して、ドラッグ&ドロップまたはコピー&ペーストの機能を利用して行われる。
【0062】
クリップボードCBに格納されるデータ構造は、図5(a)に示すように、ヘッダーコード、メモリサイズ、オブジェクトタイプ、予約、アドレス情報数、アドレス情報(1〜N)および予約によって構成されている。このうち、メモリサイズは、クリップボードCBへデータを格納する際に必要となるメモリのサイズであり、オブジェクトタイプは、クリップボードCBに格納する部品の予め設定された種類である。このオブジェクトタイプは、図5(b)に示すように、ビットスイッチ、トグルスイッチ、ランプ、数値表示器、棒グラフ、円グラフ、半円グラフ、タンクグラフ、メータグラフおよび設定値表示器が設定される。アドレス情報は、図5(c)に示すように、アドレス(アドレス名)、予約、アドレス付加情報、予約、オブジェクトタイプおよび予約によって構成されている。アドレス付加情報は、シンボルの種類(整数シンボル、ディスクリートシンボルなど)に関する情報である。アドレス情報におけるオブジェクトタイプは、上記のオブジェクトタイプと同じ内容であって、アドレスがどの部品に対応しているかを指定し、このために必要な部品のビットのみONする。
【0063】
なお、上記の複写機能部32dは、ラダーエディタ32aまたは作画エディタ32bのいずれか一方の一機能としてそれぞれに含まれていてもよい。
【0064】
コンピュータ装置3は、エディタ部32を備えることによってユーザプログラムおよびユーザ画面の作成および編集を行うためのエディタ装置として機能する。
【0065】
エディタ部32は、パッケージソフトウェアまたはオーダーメイドソフトウェアとしてプログラムメディアの形態で提供可能なソフトウェアであって、例えば、コンピュータ装置3と分離可能な記録媒体5に記録されている。そして、エディタ部32は、記録媒体5からコンピュータ装置3にインストールされることによってエディタ機能を発揮することができる。
【0066】
なお、エディタ部32は、単一の記録媒体5に記録されていてもよいが、ラダーエディタ32aと作画エディタ32bとがそれぞれ別個の記録媒体に記録されていてもよい。
【0067】
上記のプログラムメディアは、磁気テープやカセットテープなどのテープ系、フロッピディスクやハードディスクなどの磁気ディスク系、CD−ROM、MO、MD、DVDなどの光ディスク系、ICカード(メモリカードを含む)、光カードなどのカード系が好適である。その他、上記のプログラムメディアは、マスクROM、EPROM、EEPROM、フラッシュROMなどによる半導体メモリを含めた固定的にプログラムを担持する媒体であってもよい。
【0068】
また、コンピュータ装置3は、インターネットを含む通信ネットワークと接続可能であることから、通信ネットワークからプログラムをダウンロードするように流動的にプログラムを担持する媒体であってもよい。ただし、このように通信ネットワークからプログラムをダウンロードする場合には、そのダウンロード用プログラムは予めコンピュータ装置3に格納されるか、あるいは別な記録媒体からインストールされるものであってもよい。
【0069】
データファイル33は、ラダーファイル33a、画面ファイル33bおよびアプリケーションファイル33cを含んでいる。
【0070】
制御手順プログラムファイルとしてのラダーファイル33aは、図6(a)に示すように、コマンドファイル部33a1 および属性データファイル部33a2 から構成されている。コマンドファイル部33a1 は、入力されたラダー記号に対応するニーモニック(ラダー命令)およびオペランドを格納し、属性データファイル部33a2 は、コマンドファイル部33a1 に対応するように、入力されたラダー命令についてデバイスの名称およびアドレスを格納している。
【0071】
表示内容プログラムファイルとしての画面ファイル33bは、図6(b)に示すように、図形データファイル部33b1 および属性データファイル部33b2 から構成されている。図形データファイル部33b1 は、入力されたマークについての図形データを格納し、属性データファイル部33b2 は、図形データファイル部33b1 に対応するように、入力されたマークについてデバイスの名称およびアドレスを格納している。
【0072】
ラダーファイル33aおよび画面ファイル33bが、属性データファイル部33a2 ・33b2 によって互いに関連付けられているので、第1ないし第3の表示/制御システムにおける表示動作および制御動作は互いに関連する。
【0073】
アプリケーションファイル33cは、アプリケーション32cで作成されたデータを上記の属性データファイル部33a2 ・33b2 の属性データと関連付けられる属性データを格納している。
【0074】
ディスプレイ35は、CRT、LCDなどによって構成されるが、パネルコンピュータであるコンピュータ装置3においては、液晶パネルやELパネルのような平板型表示素子によって構成される。入力装置36は、キーボード、マウスなどの入力操作を行うための装置であり、特に、GUI(Graphical User Interface)環境上で動作するエディタ部32での入力作業にはマウスなどの装置が適している。外部記憶装置37は、ハードディスク装置などの磁気ディスクドライブ、CD−ROMドライブなどの光ディスクドライブといった装置であり、少なくとも、前記の記録媒体5に記録されたプログラムなどの情報を読み出すことができる装置を含んでいる。インターフェース部38は、プログラマブル表示器1との間でデータ通信を行う入出力部である。ラダーエディタ32aで作成されたユーザプログラムおよび作画エディタ32bで作成されたユーザ画面は、このインターフェース部38を介してプログラマブル表示器1に転送される。
【0075】
続いて、第2の表示/制御システムについて説明する。
【0076】
図7に示す第2の表示/制御システムは、前述の第1の表示/制御システムと同様、プログラマブル表示器1およびPLC2を含んでいるが、ここでのプログラマブル表示器1は、さらにPLC機能を備えており、入出力機器4…を直接制御するように構成されている。このため、プログラマブル表示器1は、メモリ部12にSRAM12cを備えるとともに、前述の通信コントローラ19に加えて入出力ユニット(図中、I/Oユニット)20およびI/O制御インターフェース21を備えている。
【0077】
SRAM12cは、ラダーエディタ32aによって作成されたユーザプログラムを格納するエリアを有している。また、FEPROM12bは、PLC機能を備えるために、図8に示すように、表示制御システムプログラムと、通信プロトコルと、画面データとをそれぞれ格納するエリアに加えて、制御機能プログラムとユーザプログラムとをそれぞれ格納するエリアを有している。制御機能プログラムは、シーケンス制御の基本機能を実現するためのプログラムである。
【0078】
入出力ユニット20は、入出力機器4…が接続可能となるように、多数の入出力端子、入出力回路などを備えている。I/O制御インターフェース21は、CPU11と入出力ユニット20との間の信号の授受を仲介するインターフェース回路であって、入出力メモリ、D/A変換器、A/D変換器などを備えている。
【0079】
引き続き、第3の表示/制御システムについて説明する。
【0080】
図9に示す第3表示/制御システムは、ソフトウェアで動作するいわゆるオープンコントローラ(ソフトウェアPLC)を中心として構成されている。
【0081】
オープンコントローラは、コンピュータ装置3によって構成されており、入出力機器4…を接続するために、前述の第1の表示/制御システムにおけるコンピュータ装置3のインターフェース部38の代わりに入出力ユニット(図中、I/Oユニット)39およびI/O制御インターフェース40を備えている。
【0082】
入出力ユニット39は、入出力機器4…が接続可能となるように、多数の入出力端子、入出力回路などを備えている。このような入出力ユニット39は、I/Oボードとしてコンピュータ装置3内に実装されるが、リモートI/Oとしてコンピュータ装置3の外部に独立して設けられてもよい。
【0083】
I/O制御インターフェース40は、CPU31と入出力ユニット39との間の信号の授受を仲介するインターフェース回路であって、入出力メモリ、D/A変換器、A/D変換器などを備えている。このI/O制御インターフェース40は、入出力機器4…との間で入出力されるデジタル信号またはアナログ信号をCPU31とやり取りするようになっている。
【0084】
また、コンピュータ装置3は、オープンコントローラとして機能するように、インターフェースユニット(図中、I/Fユニット)41を備えている。インターフェースユニット41は、イーサネット(登録商標)などの汎用の通信プロトコルを用いるオープンネットワーク8に対応した入出力部であり、オープンネットワーク8に接続されている。これによって、コンピュータ装置3は、オープンネットワーク8を介して他のコンピュータ装置、プログラマブル表示器、PLCなどと接続される。
【0085】
メモリ部34は、前述のSRAM12cと同様、図8に示すように、表示制御システムプログラムと、通信プロトコルと、画面データと、制御機能プログラムと、ユーザプログラムとをそれぞれ格納するエリアを有している。
【0086】
このように構成されるコンピュータ装置3は、入出力機器4…が配備されたターゲットシステムの運転時(オンライン状態)では、作成された画面や現場の様子をディスプレイ35に表示させることによってターゲットシステムの運転状況を監視するモニタとして機能するとともに、ターゲットシステムにおける入出力機器4…の制御を行う。このとき、コンピュータ装置3は、ラダーエディタ32aで作成され、ラダーファイル33aに格納されているユーザプログラムを、制御機能プログラムにしたがって実行する。一方、コンピュータ装置3は、ターゲットシステムの非運転時(オフライン状態)において、ラダーエディタ32aまたは作画エディタ32bを起動することによってユーザプログラムまたはユーザ画面を作成するためのエディタ装置として機能する。
【0087】
ここで、第1ないし第3の表示/制御システムにおけるユーザプログラムおよびユーザ画面の作成手順について、図10ないし図14のフローチャートを参照して説明する。
【0088】
図10に示すように、先にユーザ画面を作成(作画)するか、ユーザプログラムを作成する(プログラミング)かをユーザによる入力操作に応じて判断する(S11)。先にユーザプログラムを作成する場合は、ラダーエディタ32aを用いたプログラミング処理(1)を実行し(S12)、その後、作画エディタ32bを用いた作画処理(2)を実行する(S13)。一方、先にユーザ画面を作成する場合は、作画エディタ32bを用いた作画処理(1)を実行し(S14)、その後、ラダーエディタ32aを用いたプログラミング処理(2)を実行する(S15)。
【0089】
次いで、作成されたユーザプログラムおよびユーザ画面を利用可能にするように所定の格納先に格納する(S16)。このとき、第1または第2の表示/制御システムでは、ユーザプログラムおよびユーザ画面が、一旦データファイル33に格納された後、それぞれPLC2およびプログラマブル表示器1にダウンロードされ、メモリに格納される。あるいは、第2の表示/制御システムでは、ユーザプログラムおよびユーザ画面が、一旦データファイル33に格納された後、プログラマブル表示器1にダウンロードされ、メモリ部12に格納される。第3の表示/制御システムでは、ユーザプログラムおよびユーザ画面がデータファイル33に格納される。
【0090】
なお、上記の例では、作画またはプログラミングの何れかを先に実行した後に他方を実行する手順について説明しているが、これに限らず、両方を並行して実行することも可能である。
【0091】
先にプログラミング処理(1)を実行する場合は、図11のフローチャートに示す手順にしたがう。ここでは、コンピュータ装置3において、ラダーエディタ32aおよび作画エディタ32bが起動されており、ディスプレイ35の表示部35a(図15(a)参照)には、ユーザ画面作成用のエディタ画面(第1エディタ画面)を表示するウインドウ(以降、作画ウインドウと称する)32b1 およびユーザプログラム作成用のエディタ画面(第2エディタ画面)を表示するウインドウ(以降、ラダーウインドウと称する)32a1 が同時に開いているものとする。しかしながら、先にプログラミング処理(1)を実行する際には、少なくともラダーエディタ32aが起動されていればよい。
【0092】
まず、ラダーウインドウ32a1 上にて、各入出力機器4を対象としてラダー記号を配置することによってラダー命令を記述する(S21)。次いで、記述されたラダー命令について使用する名称、アドレスなどの属性データを入力し(S22)、ラダー記号および属性データをテンポラリファイルに登録する(S23)。その後、ユーザの操作に応じてプログラミング処理を終了するか否かを判断する(S24)。ここで、終了しない場合はS21に処理を戻す一方、終了する場合は作成されたユーザプログラムをラダーファイル33aに登録する(S25)。
【0093】
続いて実行される作画(2)においては、図12のフローチャートに示す手順にしたがう。
【0094】
まず、予め、ラダーファイル33aに登録されたラダー記号(ラダー命令)についての属性データを画面ファイル33bにインポートする(S31)。ラダーウインドウ32a1 上のラダー記号がマウスなどによってドラッグされたか否かを判断し(S32)、ドラッグされた場合は、ドラッグされたラダー記号が作画ウインドウ32b1 にドロップされたか否かを判断する(S33)。ここで、ラダー記号のドロップが確認されると、ドラッグされたラダー記号についての属性データに含まれる機能に基づいて、その機能を有する複数のマークを含むダイアログボックスD1 (図15(c)参照)を表示する(S34)。
【0095】
上記の手順では、ラダーエディタ32aで作成された全てのラダー記号についての属性データが、予めS31でのインポートによって一括して画面ファイル33bに複写される。しかしながら、これの代わりに、1つのラダー記号についての属性データが、ドラッグおよびドロップ毎に逐次インポートされてもよい。特に、多数のラダー記号を含むラダー図を作成する場合は、属性データを一括してインポートすることにより、処理効率の向上が可能になる。一方、少数のラダー記号を含むラダー図を作成する場合は、属性データを逐次インポートしても処理効率の低下はほとんどない。したがって、いずれのインポートを採用するかは、ラダー図の大きさやその他の要因に基づいて選択することが望ましい。
【0096】
その後、ダイアログボックスD1 に表示された複数のマークから1つのマークが選択されると、そのマークをテンポラリファイルに登録する(S35)。そして、ユーザの操作に応じて作画処理を終了するか否かを判断する(S36)。ここで、終了しない場合はS31に処理を戻す一方、終了する場合は作成されたユーザ画面を画面ファイル33bに登録する(S37)。
【0097】
ここで、図12のフローチャートの手順で行われる作画処理(2)の具体例について説明する。
【0098】
まず、図15(a)に示すように、ラダーウインドウ32a1 上には、ラダーエディタ32aによって既にスイッチ(入力)を表すラダー記号Lとランプ(出力)を表すラダー記号L′とが描画されている。これに伴って、ラダーファイル33aは、図16に示すように、スイッチおよびランプについてのデータを登録している。具体的には、スイッチについては、名称としての“SW1”およびアドレスとしての“XB0001”が少なくとも登録されている。また、ランプについては、名称としての“LAMP1”およびアドレスとしての“YB0001”が少なくとも登録されている。
【0099】
この状態で、図15(a)に示すように、作画ウインドウ32b1 を開いておく。さらに、図15(b)に示すようにラダーウインドウ32a1 におけるラダー記号Lが作画ウインドウ32b1 にドラッグされた後にドロップされると、図15(c)に示すように、ダイアログボックスD1 が作画ウインドウ32b1 に表示される。
【0100】
前述のように、ラダーエディタ32aで作成された全てのラダー記号についての属性データは、予めインポートによって一括して画面ファイル33bに複写されている。あるいは、1つのラダー記号についての属性データが、ドラッグおよびドロップ毎にインポートされる。このインポートは、図16に示すように、属性データをクリップボードCBに一旦記憶させた後に画面ファイル33bに複写することによって実現される。
【0101】
ダイアログボックスD1 におけるスイッチの機能を有する複数種類のマークの中から適当な1つのマークが選択されると、図15(d)に示すように、選択されたマークの画像Mが作画ウインドウ32b1 に表示されるとともに、属性データ(名称“SW1”および特性“ON”)を含むダイアログボックスD2 が表示される。ここで、OKボタンがクリックされると、作画ウインドウ32b1 上のマークMおよび属性データが確定し、画面ファイル33bの図形データファイル部33b1 および属性データファイル部33b2 に、スイッチのマークMについての図形データおよび属性データが関連付けられて格納される(図16参照)。
【0102】
したがって、ユーザは、作画ウインドウ32b1 上でスイッチのマークを描画する作業や必要な属性データを入力する作業を行う必要がなく、極めて容易にユーザ画面を作成することができる。
【0103】
一方、先に作画処理(1)を実行する場合は、図13のフローチャートに示す手順にしたがう。ここでは、コンピュータ装置3において、ラダーエディタ32aおよび作画エディタ32bが起動されており、ディスプレイ35の表示部35a(図17(a)参照)には、ラダーウインドウ32a1 および作画ウインドウ32b1 が同時に開いているものとする。しかしながら、先に作画処理(1)を実行する際には、少なくとも作画エディタ32bが起動されていればよい。
【0104】
まず、作画ウインドウ32b1 上にて、各入出力機器4を対象としてマークを配置する(S41)。次いで、配置されたマークについて使用する名称、アドレスなどの属性データを入力し(S42)、マークおよび属性データをテンポラリファイルに登録する(S43)。その後、ユーザの操作に応じて作画処理を終了するか否かを判断する(S44)。ここで、終了しない場合はS41に処理を戻す一方、終了する場合は作成されたユーザ画面を画面ファイル33bに登録する(S45)。
【0105】
続いて実行されるプログラミング処理(2)は、図14のフローチャートに示す手順にしたがう。
【0106】
まず、予め、画面ファイル33bに登録されたマークについての属性データをラダーファイル33aにインポートする(S51)。作画ウインドウ32b1 上のマークがドラッグされたか否かを判断し(S52)、ドラッグされた場合は、ドラッグされたマークがラダーウインドウ32a1 にドロップされたか否かを判断する(S53)。ここで、マークのドロップが確認されると、ドラッグされたマークについての属性データに含まれる機能に基づいて、その機能に対応するラダー記号とともに、上記の属性データを表示する(S54)。
【0107】
上記の手順では、作画エディタ32bで配置された全てのマークについての属性データが、予めS51でのインポートによって一括してラダーファイル33aに複写される。しかしながら、これの代わりに、1つのマークについての属性データが、ドラッグおよびドロップ毎に逐次インポートされてもよい。
【0108】
その後、表示されたラダー記号をテンポラリファイルに登録する(S55)。そして、ユーザの操作に応じてプログラミング処理を終了するか否かを判断する(S56)。ここで、終了しない場合はS51に処理を戻す一方、終了する場合は作成されたユーザプログラムをラダーファイル33aに登録する(S57)。
【0109】
ここで、図14のフローチャートの手順で行われるプログラミング処理(2)の具体例について説明する。
【0110】
まず、図17(a)に示すように、作画ウインドウ32b1 上には、作画エディタ32bによって既にスイッチ(入力)を表すマークMが配置かつ描画されている。これに伴って、画面ファイル33bは、図18に示すように、スイッチについてのデータを登録している。具体的には、スイッチについては、名称としての“SW1”、アドレスとしての“XB0001”が少なくとも登録されている。
【0111】
この状態で、図17(a)に示すように、ラダーウインドウ32a1 を開いておく。さらに、図17(b)に示すように作画ウインドウ32b1 におけるマークMがラダーウインドウ32a1 にドラッグされた後にドロップされると、図17(c)に示すように、ラダー記号LおよびダイアログボックスD3 がラダーウインドウ32a1 に表示される。
【0112】
前述のように、作画エディタ32bで配置された全てのマークについての属性データは、予めインポートによって一括してラダーファイル33aに複写されている。あるいは、1つのマークについての属性データが、ドラッグおよびドロップ毎にインポートされる。このインポートは、図18に示すように、属性データをクリップボードCBに一旦記憶させた後にラダーファイル33aに複写することによって実現される。
【0113】
そして、図17(c)に示すように、スイッチの機能に対応するラダー記号Lがラダーウインドウ32a1 に描画されるとともに、属性データ(名称“SW1”)を含むダイアログボックスD3 が表示される。ここで、OKボタンがクリックされると、ラダーウインドウ32a1 上のラダー記号Lおよび属性データが確定し、ラダーファイル33aのコマンドファイル部33a1 および属性データファイル部33a2 に、スイッチのラダー記号Lについてのコマンドおよび属性データが関連付けられて格納される(図18参照)。
【0114】
したがって、ユーザは、ラダーウインドウ32a1 上でスイッチのラダー記号を描画する作業や必要な属性データを入力する作業を行う必要がなく、極めて容易にユーザプログラムを作成することができる。
【0115】
上記のように、本実施の形態に係る第1ないし第3の表示/制御システムでは、ラダーエディタ32aで作成されたユーザプログラムを格納するラダーファイル33aと、作画エディタ32bで作成されたユーザ画面を格納する画面ファイル33bとを個別に備え、複写機能部32dによって、ラダー記号の属性データを画面ファイル33bに複写するとともに、マークの属性データをラダーファイル33aに複写するように構成されている。これにより、両ファイル33a・33bで共通する属性データを持つことができ、両ファイル33a・33b間での属性データを容易に関連付けることができる。
【0116】
また、このように、ユーザプログラムとユーザ画面とで独立したデータベースを有することで、それぞれのデータベースと他のデータベースとの間で上記のような属性データの複写を行うことができる。具体的には、汎用のアプリケーションソフトウェア(表計算ソフトウェアなど)を利用したデータベース、電子回路用CADのデータベース、NC制御装置のGコードプログラミング(加工プログラミング)のためのソフトウェアなどによって作成されたデータベースのデータを、そのソフトウェアの操作入力画面上に入力されたデータなどを画像ブロックとして選び、かつ前述のようにドラッグ&ドロップ(またはコピー&ペースト)することによってユーザプログラムまたはユーザ画面のデータベースにそのデータを複写する。
【0117】
特に、CADソフトウェア(CADソフト)によって制御盤設計を行う際には、ラダーエディタおよび作画エディタとでデータをやり取りすることが有効である。
【0118】
あらゆる装置システムを開発するためには、機械設計図をはじめ電気システム図が必要になる。また、電気システム図を作成するには、電気的な仕様書、制御盤図、部品リスト、ハードウェア図(回路図など)を作成する必要がある。そして、作成された電気システム図に基づいて、制御盤を製作し、制御盤が設置される装置システムの電気工事などを進めていく。また、制御盤を設計および製作していく工程においては、まず、仕様の取り決めを行い、その仕様に基づいてCADソフトのような図面を作成するツールにより、電気的構成を設計した上でPLCなどを含む表示/制御システムのプログラム作成に移行する。この際、本実施の形態に係る複写機能部32dの機能を利用することによって、ユーザプログラムおよびユーザ画面の作成にCADソフトで入力されたデータを利用することができる。
【0119】
具体的には、コンピュータ装置3のアプリケーション32c(図1、図7および図9参照)にCADソフトが組み込まれている場合、CADソフトを起動して、図19(a)に示すように、表示部35aに、CADウインドウ32c1 とラダーウインドウ32a1 とを表示させる。CADウインドウ32c1 には、PLCの入力部に接続された押しボタンスイッチ(図記号名PB001で表される)と、PLCの出力部に接続されたパイロットランプ(図記号名PL001で表される)とが表示されている。この状態で、CADウインドウ32c1 に表示された押しボタンスイッチの図記号(画像ブロック)をドラッグし、かつラダーウインドウ32a1 にドロップすれば、図14のフローチャートに示す手順とほぼ同様の手順で、押しボタンスイッチに対応するラダー記号L1 (LD命令など)がラダーウインドウ32a1 に表示される。同様に、パイロットランプもラダー記号L2 (OUT命令)としてラダーウインドウ32a1 に表示される。
【0120】
一方、CADのデータを用いてユーザ画面を作成する場合、図19(b)に示すように、表示部35aに、CADウインドウ32c1 と作画ウインドウ32b1 とを表示させる。この状態で、CADウインドウ32c1 に表示された押しボタンスイッチの図記号をドラッグし、かつ作画ウインドウ32b1 にドロップすれば、図12のフローチャートに示す手順とほぼ同様の手順で、押しボタンスイッチに対応するマークMが作画ウインドウ32b1 に表示される。このとき、PLCの入力部と出力部とで押しボタンスイッチおよびパイロットランプの機能を共通化させておけば、押しボタンスイッチとパイロットランプとを兼ねたマークMが作画ウインドウ32b1 に表示される。
【0121】
上記の処理の際にラダーファイル33aおよび作画ファイル33bにインポートされるデータは、図20に示すように、アプリケーションファイル33cに構築されるCADデータベースに格納されている。具体的には、図記号名、コメント、PLC関連アドレスなどが格納されている。PLC関連アドレスは、PLC2に接続される押しボタンスイッチやパイロットランプなどの機器に割り付けられるアドレスである。図記号名は、CADソフトで作成される上記の図における押しボタンスイッチやパイロットランプなどに付与される記号名である。この図記号名は、上記のアドレスに対応付けられ、押しボタンスイッチやパイロットランプなどのアドレスをラダー記号やマークに割り付ける際にアドレスの代わりに用いられる変数と同一に設定されている。コメントは、機器の動作状態などを示すために設けられる。
【0122】
上記のCADデータベースにおいては、図記号名および変数を同一に設定することによって、図記号名(名称)とPLC関連アドレス(アドレス)とを属性データ(図6(a)および(b)参照)として扱うことができる。これにより、ラダーエディタ32aおよび作画エディタ32bは、図記号名を変数としてラダー記号L1 ・L2 およびマークMと併せて表示する。また、作画エディタ32bは、「運転」というコメントをマークM上に表示する。
【0123】
ここで、第3の表示/制御システムでは、図9に示すように、エディタ機能およびPLC機能を有するコンピュータ装置3がオープンネットワーク8に接続されているので、コンピュータ装置3におけるデータベースと、このようなオープンネットワーク8に接続された他のシステムA〜Cなどにおけるデータベースとの間でラダー記号およびマークに関する属性データをネットワーク経由でやり取りすることができる。また、コンピュータ装置3とネットワークを介しての遠隔地のシステムとの間で同じデータベースを共有することが可能になる。
【0124】
第2の表示/制御システムにおいても、プログラマブル表示器1がオープンネットワーク8に接続可能なインターフェースを備えていれば、プログラマブル表示器1を図21(a)に示すようにオープンネットワーク8を介してコンピュータ装置3や他のシステムA〜Cなどと接続することができる。また、第1の表示/制御システムの場合、第2の表示/制御システムと同様にしてプログラマブル表示器1をオープンネットワーク8に接続することができるが、プログラマブル表示器1とPLC2との間の通信では、PLC2のメーカ毎に異なる通信プロトコルに対応する必要がある。このため、本願出願人が先に出願した特願平10−117117号に記載されているように、オープンネットワーク8での通信に用いられる共通の通信プロトコルと、PLC2の機種に応じた通信プロトコルとを相互に変換する機能をプログラマブル表示器1に備えさせる。
【0125】
しかも、1つのユーザプログラムに対して異なるパターンの複数のユーザ画面を作成する場合や、第1の表示/制御システムにおいて1台のプログラマブル表示器1に複数のPLC2を接続する場合でも、データベース間でのデータの複写によって、一対多のデータベース間のリンクを容易に実現することができる。
【0126】
また、本実施の形態では、ラダーウインドウと作画ウインドウとが同一のディスプレイに表示される例について説明したが、ラダーウインドウと作画ウインドウとがネットワークを介した異なる機器のデータベースを基に表示される場合も本発明の適用が可能である。
【0127】
具体的には、図21(a)に示すように、第1の表示/制御システムにおけるPLC2にダウンロードされたユーザプログラムが格納されているデータベースDB1 と、第2の表示/制御システムにおけるプログラマブル表示器1にダウンロードされたユーザ画面が格納されているデータベースDB2 との間でデータがやり取りされる。この場合、コンピュータ装置3においては、図21(b)に示すように、ラダーウインドウ32a1 に表示されるデータベースDB1 におけるユーザプログラムと、作画ウインドウ32b1 に表示されるデータベースDB2 におけるユーザ画面との間でドラッグ&ドロップによってラダー記号およびマークの自動生成を行うことができる。したがって、すでにPLC2にダウンロードされたユーザプログラムと、プログラマブル表示器1にダウンロードされたユーザ画面との間でも編集や修正を容易に行うことができる。
【0128】
なお、本発明は、ラダー図だけではなく、前述のIEC 6 1131-3 で規定された5言語を含む他の言語によるプログラミングにおいても適用されるのは勿論である。
【0129】
本発明のエディタ装置は、制御対象機器の状態を表示する表示機能部と、該制御対象機器の動作を制御する制御機能部とを有する表示/制御システムを対象として、上記表示機能部が実行する表示の内容を定めるための表示内容プログラムを第1エディタ画面上での入力操作に応じて作成する第1エディタ手段と、上記制御機能部が実行する制御の手順を定めるための制御手順プログラムを第2エディタ画面上での入力操作に応じて作成するための第2エディタ手段とを備えたエディタ装置であって、いずれか一方の上記第1または第2エディタ画面上で入力したデータに関して該エディタ画面上に表示されている画像ブロックを選択し、かつ他方のエディタ画面上へ複写させる操作に応じて、上記表示内容プログラムと上記制御手順プログラムとの間で共通するデータを、上記表示内容プログラムを格納する表示内容プログラムファイルと上記制御手順プログラムを格納する制御手順プログラムファイルとの間で複写するデータ複写手段を備えていることを特徴とするデータ複写手段を備えていることを特徴としている。
【0130】
上記の構成では、第1エディタ手段によって作成された表示内容プログラムが表示内容プログラムファイルに格納され、第2エディタ手段によって作成された制御手順プログラムが制御手順プログラムファイルに格納されている。また、第1エディタ手段の操作による表示内容プログラムの作成後または表示内容プログラムの作成時に、第2エディタ手段の操作によって制御手順プログラムを作成する場合、データ複写手段によって、第1エディタ画面上での画像ブロックの選択およびそれを第2エディタ画面へ複写させる操作に応じて、両プログラムの間で共通するデータが、両ファイルの間で複写される。一方、第2エディタ手段の操作による制御手順プログラムの作成後または制御手順プログラムの作成時に、第1エディタ手段の操作による表示内容プログラムを作成する場合、データ複写手段によって、第2エディタ画面上での画像ブロックの選択およびそれを第1エディタ画面へ複写させる操作に応じて、両プログラムの間で共通するデータが、両ファイルの間で複写される。
【0131】
このように、画像ブロックの選択および複写の操作を行うことによって、一方のファイルに格納されたデータが他方のファイルに複写されるので、両ファイルの間で共通のデータベースを作成することができる。その結果、両エディタ手段に共通のデータベースを作成する必要がなくなる。しかも、両エディタ手段によるデータの重複入力を避けることができる。
【0132】
上記のエディタ装置においては、上記第1エディタ手段が、上記第1エディタ画面に上記制御対象機器およびそれらの状態を画像ブロックとして描画するとともに、各制御対象機器を特定する属性データを入力し、上記第2エディタ手段が、上記第2エディタ画面に上記制御対象機器に対応する制御動作を表す複数のシンボルを画像ブロックとして描画するとともに、上記属性データを入力し、上記データ複写手段が、いずれか一方の上記第1または第2エディタ画面上で選択された上記画像ブロックに付随する属性データを上記両ファイル間で複写するとともに、属性データが複写されたいずれか一方の上記ファイルに対応する上記第1または第2エディタ手段に、複写された属性データを参照することによって、選択された画像ブロックに対応する制御対象機器と同一の制御対象機器についての画像ブロックを自動的に描画させることが好ましい。
【0133】
上記の構成では、第1エディタ手段の操作によって、制御対象機器に対応するマークが第1エディタ画面に画像ブロックとして描画されるとともに、制御対象機器に関する属性データが入力される。一方、第2エディタ手段の操作によって、制御対象機器に対応するシンボル(例えばラダー記号)が第2エディタ画面に画像ブロックとして描画されるとともに、制御対象機器に関する属性データが入力される。
【0134】
また、データ複写手段によって、第1エディタ画面上で選択されたマークに付随する属性データが表示内容プログラムファイルから制御手順プログラムファイルに複写される際に、第2エディタ手段が、複写された属性データを参照することで、選択されたマークに対応する制御対象機器と同一の制御対象機器についてのシンボルを自動的に描画する。一方、データ複写手段によって、第2エディタ画面上で選択されたシンボルに付随する属性データが制御手順プログラムファイルから表示内容プログラムファイルに複写される際に、第1エディタ手段が、複写された属性データを参照することで、選択されたシンボルに対応する制御対象機器と同一の制御対象機器についてのマークを自動的に描画する。
【0135】
このように、先に一方のエディタ手段で作成されたマークまたはシンボルと、それらに付随する属性データとに基づいて、他方のエディタ手段でのシンボルまたはマークの作成および属性データの複写が行われる。それゆえ、他方のエディタ手段によるシンボルまたはマークの作成が容易になるとともに、属性データの入力が不要になる。
【0136】
また、上記データ複写手段が、上記属性データを画像ブロックの選択および複写の操作に先立って複写することが好ましい。これにより、例えば、すでに作成されたプログラムに基づいて他方のプログラムを作成する場合、予め属性データを一括して複写した後に、マークまたはシンボルが描画される。また、一方のプログラムを作成しながら他方のプログラムを作成する場合、一方のエディタ画面上でマークまたはシンボルが作成される毎に属性データが逐次複写されて、他方のエディタ画面上でシンボルまたはマークが描画される。
【0137】
上記のいずれの構成のエディタ装置も、上記データ複写手段が、アプリケーションプログラムの操作入力画面で入力したデータに関して該操作画面上に表示される画像ブロックを選択し、かつ上記第1または第2エディタ画面上へ複写させる操作に応じて、上記表示内容プログラムまたは上記制御手順プログラムと上記アプリケーションプログラムのデータとの間で共通するデータを、上記表示内容プログラムファイルまたは上記制御手順プログラムファイルに複写することが好ましい。これによって、表示内容プログラムファイルまたは制御手順プログラムファイルは、CADなどのアプリケーションプログラムのデータを取り込むことができる。
【0138】
上記のいずれの構成のエディタ装置も、ネットワークを介して上記表示/制御システムと異なるシステムに接続されており、上記データ複写手段が上記両ファイルと上記システムとの間でデータを複写することが好ましい。これによって、システムから直接上記両ファイルのいずれか一方に属性データを複写することができる。
【0139】
本発明のエディタプログラムが記録された記録媒体は、制御対象機器の状態を表示する表示機能部と、該制御対象機器の動作を制御する制御機能部とを有する表示/制御システムを対象として、上記表示機能部が実行する表示の内容を定めるための表示内容プログラムを第1エディタ画面上での入力操作に応じて作成する第1エディタ処理と、上記制御機能部が実行する制御の手順を定めるための制御手順プログラムを第2エディタ画面上での入力操作に応じて作成するための第2エディタ処理とを含むエディタプログラムが記録されたコンピュータ読み取り可能な記録媒体であって、上記エディタプログラムが、いずれか一方の上記第1または第2エディタ画面上で入力したデータに関して該エディタ画面上に表示されている画像ブロックを選択し、かつ他方のエディタ画面上へ複写させる操作に応じて、上記表示内容プログラムと上記制御手順プログラムとの間で共通するデータを、上記表示内容プログラムを格納する表示内容プログラムファイルと上記制御手順プログラムを格納する制御手順プログラムファイルとの間で複写するデータ複写処理を含んでいることを特徴としている。
【0140】
この記録媒体を用いると、データ複写処理によって、本発明のエディタ装置と同様、第2エディタ画面上での画像ブロックの選択およびそれを第1エディタ画面へ複写させる操作に応じて、両プログラムの間で共通するデータが、両ファイルの間で複写される。それゆえ、両ファイルの間で共通のデータベースが作成される結果、両エディタ処理に共通のデータベースを作成する必要がなくなる。しかも、両エディタ処理によるデータの重複入力を避けることができる。
【0141】
本発明のエディタプログラムが記録された他の記録媒体は、制御対象機器の状態を表示する表示機能部と、該制御対象機器の動作を制御する制御機能部とを有する表示/制御システムを対象として、上記表示機能部が実行する表示の内容を定めるための表示内容プログラムを第1エディタ画面上での入力操作に応じて作成する第1エディタ処理または上記制御機能部が実行する制御の手順を定めるための制御手順プログラムを第2エディタ画面上での入力操作に応じて作成するための第2エディタ処理のいずれか一方を含むエディタプログラムが記録されたコンピュータ読み取り可能な記録媒体であって、上記エディタプログラムが、いずれか一方の上記第1または第2エディタ画面上で入力したデータに関して該エディタ画面上に表示されている画像ブロックを選択し、かつ他方のエディタ画面上へ複写させる操作に応じて、上記表示内容プログラムと上記制御手順プログラムとの間で共通するデータを、上記表示内容プログラムを格納する表示内容プログラムファイルと上記制御手順プログラムを格納する制御手順プログラムファイルとの間で複写するデータ複写処理を含んでいることを特徴としている。
【0142】
この記録媒体を用いれば、前記の記録媒体と同様、データ複写処理によって、両プログラムの間で共通するデータが両ファイルの間で複写されるので、両エディタ処理に共通のデータベースの作成を不要にするとともに、両エディタ処理によるデータの重複入力を避けることができる。さらに、この記録媒体によれば、第1または第2エディタ処理のいずれか一方とデータ複写処理とを含んでいる2種類のエディタプログラム、すなわち第1または第2エディタプログラムを提供することができる。
【0143】
上記の両記録媒体は、上記第1エディタ処理が、上記第1エディタ画面に上記制御対象機器およびそれらの状態を画像ブロックとして描画するとともに、各制御対象機器を特定する属性データを入力し、上記第2エディタ処理が、上記第2エディタ画面に上記制御対象機器に対応する制御動作を表す複数のシンボルを画像ブロックとして描画するとともに、上記属性データを入力し、上記データ複写処理が、いずれか一方の上記第1または第2エディタ画面上で選択された上記画像ブロックに付随する属性データを上記両ファイル間で複写するとともに、属性データが複写されたいずれか一方の上記ファイルに対応する上記第1または第2エディタ処理に、複写された属性データを参照することによって、選択された画像ブロックに対応する制御対象機器と同一の制御対象機器についての画像ブロックを自動的に描画させることが好ましい。
【0144】
このような記録媒体を用いれば、前述のエディタ装置と同様、第1エディタ処理によるマークの描画および属性データの入力が行われる一方、第2エディタ処理によるシンボルの描画および属性データの入力が行われる。また、データ複写処理によって、第2エディタ処理が、複写された属性データを参照することで、選択されたマークに対応する制御対象機器と同一の制御対象機器についてのシンボルを自動的に描画する一方、第1エディタ処理が、複写された属性データを参照することで、選択されたシンボルに対応する制御対象機器と同一の制御対象機器についてのマークを自動的に描画する。それゆえ、他方のエディタ処理によるシンボルまたはマークの作成が容易になるとともに、属性データの入力が不要になる。
【0145】
また、上記データ複写処理が、上記属性データを画像ブロックの選択および複写の操作に先立って複写することが好ましい。これにより、前述のエディタ装置と同様、作成されたプログラムに基づいて他方のプログラムを作成する場合、予め属性データを一括して複写した後に、マークまたはシンボルが描画される。また、一方のプログラムを作成しながら他方のプログラムを作成する場合、一方のエディタ画面上でマークまたはシンボルが作成される毎に属性データが逐次複写されて、他方のエディタ画面上でシンボルまたはマークが描画される。
【0146】
あるいは、上記データ複写処理が、アプリケーションプログラムの操作入力画面で入力したデータに関して該操作画面上に表示される画像ブロックを選択し、かつ上記第1または第2エディタ画面上へ複写させる操作に応じて、上記表示内容プログラムまたは上記制御手順プログラムと上記アプリケーションプログラムのデータとの間で共通するデータを、上記表示内容プログラムファイルまたは上記制御手順プログラムファイルに複写することが好ましい。これによって、前述のエディタ装置と同様、表示内容プログラムファイルまたは制御手順プログラムファイルは、CADなどのアプリケーションプログラムのデータを取り込むことができる。
【0147】
【発明の効果】
以上のように、本発明のエディタ装置は、制御対象機器の状態を表示する表示内容を定めるための表示内容プログラムを作成する第1エディタ手段と、上記制御対象機器を制御する制御手順を定めるための制御手順プログラムを作成する第2エディタ手段と、上記表示内容プログラムを格納する表示内容プログラムファイルと上記制御手順プログラムを格納する制御手順プログラムファイルとの間で上記両プログラムに共通するデータを複写するデータ複写手段とを備えるエディタ装置であって、上記データ複写手段が、上記表示内容プログラムまたは上記制御手順プログラムとCADにより作成された図記号との間で共通するデータを、当該図記号名と、上記制御対象機器に接続される機器に割り付けられるアドレスの代わりに用いられる変数とが同一に設定されているCADデータベースから上記表示内容プログラムまたは上記制御手順プログラムファイルに複写する構成である。
【0148】
また、本発明のエディタプログラムが記録された記録媒体は、制御対象機器の状態を表示する表示内容を定めるための表示内容プログラムを作成する第1エディタ処理と、上記制御対象機器を制御する制御手順を定めるための制御手順プログラムを作成する第2エディタ処理と、上記表示内容プログラムを格納する表示内容プログラムファイルと上記制御手順プログラムを格納する制御手順プログラムファイルとの間で上記両プログラムに共通するデータを複写するデータ複写処理とを含むエディタプログラムを記録したコンピュータ読み取り可能な記録媒体であって、上記データ複写処理が、上記表示内容プログラムまたは上記制御手順プログラムとCADにより作成された図記号との間で共通するデータを、当該図記号名と、上記制御対象機器に接続される機器に割り付けられるアドレスの代わりに用いられる変数とが同一に設定されているCADデータベースから上記表示内容プログラムまたは上記制御手順プログラムファイルに複写する。
【0149】
本発明のエディタプログラムが記録された他の記録媒体は、制御対象機器の状態を表示する表示内容を定めるための表示内容プログラムを作成する第1エディタ処理または上記制御対象機器を制御する制御手順を定めるための制御手順プログラムを作成する第2エディタ処理のいずれか一方と、上記表示内容プログラムを格納する表示内容プログラムファイルと上記制御手順プログラムを格納する制御手順プログラムファイルとの間で上記両プログラムに共通するデータを複写するデータ複写処理とを含むエディタプログラムを記録したコンピュータ読み取り可能な記録媒体であって、上記データ複写処理が、上記表示内容プログラムまたは上記制御手順プログラムとCADにより作成された図記号との間で共通するデータを、当該図記号名と、上記制御対象機器に接続される機器に割り付けられるアドレスの代わりに用いられる変数とが同一に設定されているCADデータベースから上記表示内容プログラムまたは上記制御手順プログラムファイルに複写する。
【0150】
これによって、CADデータベースに格納されたデータが表示内容プログラムファイルまたは上記制御手順プログラムファイルに複写されるので、CADで作成されたデータを表示内容または制御手順プログラムの作成に利用することができる。しかも、CADと両エディタ手段とによるデータの重複入力を避けることができる。したがって、入力操作の簡素化を図りつつ、データベースを効率的に利用することができるという効果を奏する。
【図面の簡単な説明】
【図1】本発明の実施の一形態に係る第1の表示/制御システムの構成を示すブロック図である。
【図2】上記第1の表示/制御システムにおけるプログラマブル表示器のFEPROMに格納されるプログラムを示す説明図である。
【図3】上記プログラマブル表示器などで表示されるユーザ画面に含まれる処理指示語の基本的フォーマットを示す説明図である。
【図4】上記プログラマブル表示器の表示動作の処理手順を示すフローチャートである。
【図5】(a)ないし(c)は、それぞれ第1ないし第3の表示/制御システムにおけるコンピュータ装置で実行される属性データの複写のために用いられるデータ構造、このデータ構造におけるオブジェクトタイプおよび上記データ構造におけるアドレス情報を示す説明図である。
【図6】(a)および(b)はそれぞれ上記コンピュータ装置において形成されるラダーファイルおよび画面ファイルを示す説明図である。
【図7】本発明の実施の一形態に係る第2の表示/制御システムの構成を示すブロック図である。
【図8】第2および第3の表示/制御システムにおけるプログラマブル表示器のFEPROMに格納されるプログラムを示す説明図である。
【図9】本発明の実施の一形態に係る第3の表示/制御システムの構成を示すブロック図である。
【図10】上記第1ないし第3の表示/制御システムにおけるコンピュータ装置で実行されるエディタ処理の手順を示すフローチャートである。
【図11】上記エディタ処理において先に実行されるプログラミング処理の手順を示すフローチャートである。
【図12】図11のプログラミング処理の後に実行される作画処理の手順を示すフローチャートである。
【図13】上記エディタ処理において先に実行される作画処理の手順を示すフローチャートである。
【図14】図13の作画処理の後に実行されるプログラミング処理の手順を示すフローチャートである。
【図15】(a)ないし(d)は図12の手順の具体例を示す説明図である。
【図16】図12の手順にしたがって実行される属性データの複写の具体的な形態を示す説明図である。
【図17】(a)ないし(c)は図14の手順の具体例を示す説明図である。
【図18】図14の手順にしたがって実行される属性データの複写の具体的な形態を示す説明図である。
【図19】(a)はCADソフトのデータを用いてラダーエディタでラダー記号を自動生成する例を示す説明図であり、(b)はCADソフトのデータを用いて作画エディタでマークを自動生成する例を示す説明図である。
【図20】上記CADソフトのデータを保存するCADデータベースの構成を示す説明図である。
【図21】(a)は他のシステムとオープンネットワークを介して接続された第1ないし第3の表示/制御システムを示すブロック図であり、(b)はオープンネットワークに接続されるコンピュータ装置において、異なるシステムのデータベースを用いてラダー記号およびマークの自動生成を行う例を示す説明図である。
【符号の説明】
1 プログラマブル表示器(表示機能部)
2 PLC(制御機能部)
3 コンピュータ装置(表示機能部、制御機能部)
4 入出力機器(制御対象機器)
5 記録媒体
32a ラダーエディタ(第2エディタ手段)
32b 作画エディタ(第1エディタ手段)
32c アプリケーション(アプリケーションプログラム)
32d 複写機能部(データ複写手段)
33a ラダーファイル(制御手順プログラムファイル)
33b 画面ファイル(表示内容プログラムファイル)
33c アプリケーションファイル(CADデータベース)
A〜C システム
DB1 ・DB2 データベース
L・L′ ラダー記号(画像ブロック)
M マーク(画像ブロック)
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an editor device for programming display contents according to a state of a control target device and a control procedure of the control target device in a system having a function of displaying the state of the control target device and a function of controlling the operation of the control target device. The present invention also relates to a recording medium on which an editor 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 (Sequential 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) has been widely used in the past because a ladder circuit can be designed relatively easily using relay symbols, and is still the most frequently used programming language. Programming software such as a ladder editor has become widespread as a programming tool used in programming work using such a programming language. Since this software can create a ladder diagram or the like in a form including a symbol in a computer device such as a personal computer, the program can be easily created and edited.
[0005]
On the other hand, the programmable display is an operation display having a dot display screen, an operation input switch, an interface with a host controller (PLC), a program memory for control such as operation input on the screen, and the like. . In general, since the programmable display performs graphic display, it can be provided with functions such as an operation panel, a switch, and an indicator lamp, and various types of management such as operating status of the control target device (device) and work instructions. Functions as a terminal for inputting set values for the monitor and the device.
[0006]
In recent years, a programmable display device having a PLC control function by mounting an input / output unit for connecting a device to be controlled has also appeared.
[0007]
The control screen (display content program) displayed on such a programmable display can be created by the user by using screen creation software (drawing editor). When creating a screen, the user configures a desired control screen using parts (marks) such as switches, lamps, numeric keys, meter display, graph display, graph display, etc. provided by the drawing software on a personal computer. To do.
[0008]
The created control screen is transferred to the programmable display device as screen data and stored. When the PLC is in operation, the programmable display device displays each component or figure on the control screen according to the operation state of the control target device based on data exchanged with the PLC.
[0009]
Incidentally, the creation of a control procedure program (programming) using a ladder editor or the like and the creation of a display content program (screen creation) using a drawing editor are generally performed independently. For example, when creating a display content program based on the created control procedure program, create a design document in which the names and addresses entered for each device at the time of creation of the control procedure program are written down in the form of a table. In addition, while referring to the design material, a display content program including I / O address definition is created. Similarly, when creating a control procedure program based on the created display content program, work is performed based on design materials prepared in advance.
[0010]
However, in such a method, since the input work for creating the display content program is required separately from the input work for creating the control procedure program, much time and labor are required. In addition, since the other program is created while referring to the design material corresponding to one program, there is a possibility that an erroneous input may occur when the other program is created, and it becomes difficult to debug the program due to the erroneous input. Furthermore, design materials corresponding to the created program must be prepared in advance, which has the disadvantage of reducing work efficiency.
[0011]
As an invention made to eliminate such inconvenience, Japanese Patent Application Laid-Open No. 11-175326 discloses a ladder symbol and a screen arranged between a ladder editor that creates a ladder diagram and a drawing editor that creates a screen. An editor device that associates marks is disclosed. In this editor device, for example, by dragging and dropping a symbol of a ladder diagram into a drawing window of the drawing editor, the name and address of a control target device common to at least one mark corresponding to the symbol and the symbol are included. The attribute data is stored in the common database, and a mark corresponding to the symbol dragged to the drawing window with reference to the attribute data is displayed.
[0012]
[Problems to be solved by the invention]
However, in the editor device disclosed in the above publication, by sharing data, it is possible to avoid re-entry of duplicate data between the ladder editor and the drawing editor, but a common database for storing attribute data is provided. It is necessary to provide a ladder file for the ladder editor and a screen file for the drawing editor separately. In addition, when the created ladder diagram (user program) and screen (user screen) are finally registered in the ladder file and the screen file, respectively, the attribute data is stored in both files. Duplicate data will be registered. In addition, since attribute data is copied from a common database to a ladder file or screen file, if data from an external system is shared with a ladder file and screen file, the data from that system is copied to the common database and then the ladder is further copied. It is necessary to go through the procedure of copying to file and screen file.
[0013]
Thus, the conventional editor device has a disadvantage that the database is not efficiently used.
[0014]
The present invention has been made in view of the above circumstances, and efficiently utilizes a database while maintaining the operability of a conventional editor device capable of avoiding duplicate input of data. An object of the present invention is to provide an editor device that can easily share data with an external system and a recording medium that records the editor program.
[0015]
The editor apparatus of the present invention includes a first editor means for creating a display content program for defining display contents for displaying the status of a control target device, and a control procedure program for determining a control procedure for controlling the control target device. A second editor means for creating, and a data copying means for copying data common to the two programs between the display contents program file for storing the display contents program and the control procedure program file for storing the control procedure program. In order to solve the above-mentioned problem, the data copying means includes data common between the display content program or the control procedure program and a graphic symbol created by CAD. The graphic symbol name and the variable used in place of the address assigned to the device connected to the control target device are set the same. The CAD database is copied to the display content program or the control procedure program file.
[0016]
In the above configuration, graphic symbols created by CAD are stored in the CAD database. Further, when a display content program is created by operating the first editor means after creating graphic symbols by CAD, or when a control procedure program is created by operating the second editor means, the display content program or Data common between the control procedure program and the graphic symbols created by CAD is copied from the CAD database to the display content program file or the control procedure program file.
[0017]
Thus, since the data stored in the CAD database is copied to the display content program file or the control procedure program file, the data created by CAD can be used to create the display content or control procedure program. In addition, it is possible to avoid redundant input of data by the CAD and both editor means.
[0018]
The editor device is preferably connected to another system via a network, and the data copying means preferably copies data between the two files and the system. As a result, data can be copied directly from the system to either one of the two files.
[0019]
In the editor device, the first or second editor means corresponding to any one of the files in which the data is copied refers to the copied data, whereby an image block related to the data is stored. Is preferably displayed.
[0020]
In the above configuration, when the data is copied from the CAD database to the display content program file or the control procedure program file by the data copying means, the first or second editor means refers to the copied data, The image block associated with the data is displayed. Therefore, an image block can be displayed together with data copying.
[0021]
In addition, the data copying means selects the graphic symbol displayed on the CAD screen and copies the graphic symbol on the editor screen of the first or second editor means according to the operation described above. Alternatively, it is preferable to copy data common to the control procedure program. Thus, for example, when a display content program or a control procedure program is created based on a graphic symbol that has already been created, an operation for selecting a graphic symbol on the CAD screen and copying it on the editor screen by the data copying means In response, the above data is copied from the CAD database to the display content program file or control procedure program file.
[0022]
The recording medium on which the editor program of the present invention is recorded defines a first editor process for creating a display content program for defining the display content for displaying the state of the control target device, and a control procedure for controlling the control target device. Data common to the two programs is copied between the second editor process for creating a control procedure program for the program, the display content program file for storing the display content program, and the control procedure program file for storing the control procedure program A computer-readable recording medium on which an editor program including a data copying process is recorded, wherein the data copying process is created by the display content program or the control procedure program and CAD in order to solve the above problems Data that is shared with The graphic symbol name and the variable used in place of the address assigned to the device connected to the control target device are set the same. The CAD database is copied to the display content program or the control procedure program file.
[0023]
When this recording medium is used, data common to both the graphic symbols and both programs is copied from the CAD database to both files by the data copying process, like the editor device of the present invention. Therefore, data created by CAD can be used to create display contents or a control procedure program.
[0024]
Another recording medium in which the editor program of the present invention is recorded is a first editor process for creating a display content program for defining a display content for displaying the state of the control target device or a control procedure for controlling the control target device. Both of the above-mentioned programs are included between any one of the second editor processes for creating a control procedure program for determining, a display content program file for storing the display content program, and a control procedure program file for storing the control procedure program. A computer-readable recording medium on which an editor program including a data copying process for copying common data is recorded, wherein the data copying process includes the display content program or the control procedure. Between the program and graphic symbols created by CAD The data you want to, The graphic symbol name and the variable used in place of the address assigned to the device connected to the control target device are set the same. The CAD database is copied to the display content program or the control procedure program file.
[0025]
If this recording medium is used, data common to both the graphic symbols and both programs is copied from the CAD database to both files by the data copying process, as with the recording medium described above. Can be used to create display contents or control procedure programs. Furthermore, according to this recording medium, it is possible to provide two types of editor programs including either the first or second editor process and the data copying process, that is, the first or second editor program.
[0026]
In both the recording media, the first editor process refers to the copied data by the first or second editor process corresponding to one of the files in which the data is copied, Preferably, image blocks associated with the data are displayed.
[0027]
By using such a recording medium, the second editor process refers to the copied data by the data copying process as in the editor device described above, and displays the image block related to the data, while the second editor process displays the image block. One editor process displays an image block related to the copied data by referring to the copied data. Therefore, an image block can be displayed together with data copying.
[0028]
In addition, the data copying process may be performed in response to an operation in which the data copying process selects the graphic symbol displayed on the CAD screen and causes the data to be copied on the editor screen of the first or second editor process. It is preferable to copy common data between the graphic symbol and the display content program or the control procedure program. Thus, as in the above-described editor device, when a display content program or a control procedure program is created based on the created graphical symbol, the data copying means selects the graphical symbol on the CAD screen and displays it on the editor screen. In response to the operation to be copied to, the above data is copied from the CAD database to the display contents program file or the control procedure program file.
[0029]
DETAILED DESCRIPTION OF THE INVENTION
An embodiment of the present invention will be described with reference to FIGS. 1 to 21 as follows.
[0030]
The display / control system according to the present embodiment may have various configurations, but here, the first to third configurations will be described.
[0031]
First, the first display / control system shown in FIG. 1 includes a programmable display 1 and a PLC 2.
[0032]
The programmable display device 1 as a display function unit 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, and a communication controller 19.
[0033]
The memory unit 12 includes memories 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 exchanged with the PLC 2. 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.
[0034]
Further, as shown in FIG. 2, the FEPROM 12b has areas for storing a display control system program, a communication protocol, and screen data, respectively. The display control system program is a program for realizing a basic function for performing image display control. 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 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, mark data as an image block, a processing instruction word W (see FIG. 3) given to each mark, and the like, and constitutes a display content program. are doing.
[0035]
The mark is prepared in advance as a basic imaged part such as a touch switch, a lamp, and various displays. In addition, as a mark, there is also a functional unit in which a desired moving image function is set in a rectangular area set at a desired position in order to express a dynamic change such as a switch or a numerical display at an arbitrary position on the screen. included.
[0036]
As shown in FIG. 3, 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.
[0037]
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. Further, 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 screen data is received from the drawing editor 32b, the CPU 11 stores it in the FEPROM 12b, When the ladder program (user program) from 32a is received, it is transferred to the PLC2.
[0038]
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.
[0039]
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.
[0040]
The maintenance port 18 is a communication port for performing communication with the computer apparatus 3 described later. On the other hand, 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). .
[0041]
The PLC 2 as the control function unit controls the operation of the input / output devices 4 according to the procedure defined by the user program (control procedure program) created by the ladder editor 32a according to the control function program by the built-in CPU unit. To do.
[0042]
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, it is possible to control the input / output devices 4 simply by accessing an arbitrary word device or bit device in the PLC 2 or to individually retrieve information regarding the operation state.
[0043]
The programmable display 1 reads necessary information among the state information indicated by the bit device or the word device into the memory unit 12 in a timely manner, while repeatedly reading the processing instruction word W and causing an event of each processing instruction word W. The operation specified by the name T is executed while referring to the state information on the PLC 2 side. 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.
[0044]
The display operation of the programmable display 1 is performed according to the procedure of the flowchart shown in FIG.
[0045]
First, either an online mode capable of communicating with the PLC 2 or an offline mode in which only the programmable display 1 is operated is selected (S1). When the offline mode is selected (NO), the programmable display 1 performs various processes such as a setting process and a diagnostic process (S6), and returns the process to S1.
[0046]
When the online mode is selected in S1 (YES), the state information on the PLC 2 side quoted in the processing instruction word W set in the memory unit 12 of the programmable display 1 as the starting process is the programmable display 1 Take out to the side. Specifically, the word device and bit set in the PLC 2 from information included in the processing instruction word W related to the currently displayed base screen among the processing instruction words W... Stored in the memory unit 12. The device address is extracted. Then, by directly accessing the memory of the PLC 2 based on the address, the addressed status information is expanded in the memory unit 12 and displayed on the operation screen. In the online mode, it is determined whether or not there is an input operation on the operation panel screen displayed on the programmable display 1 (S2). Here, if there is an input operation, predetermined calculation processing is executed based on the input data (S3), and further data communication processing is performed (S4).
[0047]
Next, display processing of each event is executed (S5). At this time, the display operation based on the status information extracted by the communication process among the process instructions W stored in the memory unit 12 is performed.
[0048]
Next, the computer device 3 will be described.
[0049]
As shown in FIG. 1, the computer apparatus 3 is configured by a general-purpose computer such as a personal computer. The computer device 3 includes a CPU 31, an editor unit 32, a data file 33, a memory unit 34, a display 35, an input device 36, an external storage device 37, and an interface unit (I / F in the figure) 38.
[0050]
The CPU 31 performs control and arithmetic processing of each unit when operating various application software including the editor unit 32 on an OS (operating system) installed in the computer apparatus 3.
[0051]
The memory unit 34 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.
[0052]
The editor unit 32 includes a ladder editor 32a, a drawing editor 32b, an application 32c, and a copy function unit 32d.
[0053]
The ladder editor 32a as the second editor means is programming software for creating a user program that determines the control procedure of the PLC 2 so that the input / output devices 4... Operate according to a desired sequence, and a display screen 35a of the display 35. (See FIG. 15 (a)). Ladder symbols (symbols) corresponding to the operation of the input / output device 4 are arranged above so that a ladder diagram can be created. In the ladder editor 32a, for example, the aforementioned programming language conforming to the international standard IEC is used.
[0054]
The ladder editor 32a associates the input number and output number assigned to the input terminal and output terminal of the PLC 2 with the name (device name) of the input / output device 4 connected to each input / output terminal. Are assigned as input / output numbers (I / O assignment). The result of this allocation is stored in a ladder file 33a described later.
[0055]
When performing allocation, the memory unit 34 stores device names corresponding to the addresses, with the input number and output number as addresses. Conventionally, such allocation differs depending on the manufacturer of the PLC, and is set with an absolute address. Therefore, it is necessary to prepare a memory table according to the manufacturer. However, the ladder editor 32a conforming to IEC does not require a memory table as described above because the user can determine input / output by a free variable. Moreover, the allocation once determined can be changed later.
[0056]
The user program created by the ladder editor 32a is transferred to the PLC 2 via the programmable display 1 (or directly) and downloaded to the memory in the PLC 2.
[0057]
The drawing editor 32b as the first editor means functions as a terminal through which the programmable display device 1 inputs various monitor values for management such as the operating status of the input / output devices 4. Is a screen creation software for creating a screen to be displayed on the display 14. In general, the drawing editor 32b has components (marks) 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. ), Drawing function, text input function, etc. The drawing editor 32b assigns the input / output numbers (addresses) to the respective input / output devices 4 of the marks arranged on the created screen.
[0058]
The user screen created in this way is stored in a screen file 33b described later, transferred to the programmable display 1 via the interface unit 38 as necessary, and downloaded as screen data to the FEPROM 12b.
[0059]
The application 32c is mainly general-purpose application software, and is configured by software that generates attribute data that can be exchanged with the ladder editor 32a and the drawing editor 32b. Examples of the software include spreadsheet software capable of creating data, CAD software for designing circuits, and the like.
[0060]
The copy function unit 32d as the data copy means automatically uses the OS data copy function to automatically mark the mark corresponding to the ladder symbol in the ladder diagram created by the ladder editor 32a on the screen created by the drawing editor 32b. The attribute data of the ladder symbol is copied as the mark attribute data. Similarly, the copy function unit 32d automatically uses the OS data copy function to automatically display ladder symbols corresponding to the marks on the screen created by the drawing editor 32b in the ladder diagram created by the ladder editor 32a. At the same time, the mark attribute data is copied as ladder symbol attribute data.
[0061]
Specifically, the attribute data is copied using a drag and drop or copy and paste function via a clipboard CB (see FIGS. 16 and 18) provided in the memory unit 34, which will be described later.
[0062]
As shown in FIG. 5A, the data structure stored in the clipboard CB includes a header code, a memory size, an object type, a reservation, the number of address information, address information (1 to N), and a reservation. Among these, the memory size is the size of memory required when data is stored in the clipboard CB, and the object type is a preset type of components stored in the clipboard CB. As this object type, as shown in FIG. 5B, a bit switch, a toggle switch, a lamp, a numerical value indicator, a bar graph, a pie graph, a semicircle graph, a tank graph, a meter graph, and a set value indicator are set. . As shown in FIG. 5C, the address information includes an address (address name), a reservation, additional address information, a reservation, an object type, and a reservation. The address additional information is information regarding the type of symbol (integer symbol, discrete symbol, etc.). The object type in the address information has the same contents as the above object type, specifies which part the address corresponds to, and turns on only the bit of the part necessary for this purpose.
[0063]
The copy function unit 32d may be included as one function of either the ladder editor 32a or the drawing editor 32b.
[0064]
The computer device 3 functions as an editor device for creating and editing user programs and user screens by including the editor unit 32.
[0065]
The editor unit 32 is software that can be provided in the form of program media as package software or custom-made software, and is recorded in the recording medium 5 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 5.
[0066]
The editor unit 32 may be recorded on a single recording medium 5, but the ladder editor 32a and the drawing editor 32b may be recorded on separate recording media.
[0067]
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.
[0068]
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.
[0069]
The data file 33 includes a ladder file 33a, a screen file 33b, and an application file 33c.
[0070]
As shown in FIG. 6A, the ladder file 33a as the control procedure program file is a command file portion 33a. 1 And attribute data file section 33a 2 It is composed of Command file part 33a 1 Stores a mnemonic (ladder instruction) and operand corresponding to the input ladder symbol, and an attribute data file section 33a. 2 The command file part 33a 1 The device name and address are stored for the entered ladder instruction.
[0071]
As shown in FIG. 6B, the screen content file 33b as the display content program file is a graphic data file section 33b. 1 And attribute data file part 33b 2 It is composed of Graphic data file section 33b 1 Stores the graphic data for the input mark, and the attribute data file part 33b. 2 The graphic data file part 33b 1 The name and address of the device are stored for the input mark.
[0072]
Ladder file 33a and screen file 33b are attribute data file part 33a. 2 ・ 33b 2 The display operation and the control operation in the first to third display / control systems are related to each other.
[0073]
The application file 33c converts the data created by the application 32c into the attribute data file portion 33a. 2 ・ 33b 2 The attribute data associated with the attribute data is stored.
[0074]
The display 35 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 36 is a device for performing an input operation such as a keyboard and a mouse. In particular, a device such as a mouse is suitable for an input operation in the editor unit 32 operating in a GUI (Graphical User Interface) environment. . The external storage device 37 is a device such as a magnetic disk drive such as a hard disk device or an optical disk drive such as a CD-ROM drive, and includes at least a device that can read information such as a program recorded in the recording medium 5. It is out. The interface unit 38 is an input / output unit that performs data communication with the programmable display device 1. The user program created by the ladder editor 32 a and the user screen created by the drawing editor 32 b are transferred to the programmable display device 1 through the interface unit 38.
[0075]
Next, the second display / control system will be described.
[0076]
The second display / control system shown in FIG. 7 includes the programmable display 1 and the PLC 2 as in the first display / control system described above. The programmable display 1 here further has a PLC function. The input / output devices 4 are directly controlled. For this reason, the programmable display 1 includes an SRAM 12c in the memory unit 12, and an input / output unit (I / O unit in the figure) 20 and an I / O control interface 21 in addition to the communication controller 19 described above. .
[0077]
The SRAM 12c has an area for storing a user program created by the ladder editor 32a. Further, since the FEPROM 12b has a PLC function, as shown in FIG. 8, in addition to an area for storing a display control system program, a communication protocol, and screen data, a control function program and a user program are respectively stored. It has an area to store. The control function program is a program for realizing the basic functions of sequence control.
[0078]
The input / output unit 20 includes a large number of input / output terminals and input / output circuits so that the input / output devices 4... Can be connected. 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. .
[0079]
Next, the third display / control system will be described.
[0080]
The third display / control system shown in FIG. 9 is configured around a so-called open controller (software PLC) that operates by software.
[0081]
The open controller is constituted by the computer device 3, and in order to connect the input / output devices 4..., An input / output unit (in FIG. , I / O unit) 39 and I / O control interface 40.
[0082]
The input / output unit 39 includes a large number of input / output terminals and input / output circuits so that the input / output devices 4... Can be connected. Such an input / output unit 39 is mounted in the computer apparatus 3 as an I / O board, but may be independently provided outside the computer apparatus 3 as a remote I / O.
[0083]
The I / O control interface 40 is an interface circuit that mediates transmission / reception of signals between the CPU 31 and the input / output unit 39, and includes an input / output memory, a D / A converter, an A / D converter, and the like. . The I / O control interface 40 exchanges digital signals or analog signals input / output to / from the input / output devices 4 with the CPU 31.
[0084]
Further, the computer apparatus 3 includes an interface unit (I / F unit in the figure) 41 so as to function as an open controller. The interface unit 41 is an input / output unit corresponding to the open network 8 using a general-purpose communication protocol such as Ethernet (registered trademark), and is connected to the open network 8. As a result, the computer apparatus 3 is connected to another computer apparatus, a programmable display, a PLC, and the like via the open network 8.
[0085]
Similar to the above-described SRAM 12c, the memory unit 34 has areas for storing a display control system program, a communication protocol, screen data, a control function program, and a user program, respectively, as shown in FIG. .
[0086]
The computer device 3 configured as described above displays the created screen and the state of the site on the display 35 when the target system in which the input / output devices 4. In addition to functioning as a monitor for monitoring operating conditions, it controls the input / output devices 4 in the target system. At this time, the computer apparatus 3 executes the user program created by the ladder editor 32a and stored in the ladder file 33a according to the control function program. On the other hand, the computer device 3 functions as an editor device for creating a user program or a user screen by activating the ladder editor 32a or the drawing editor 32b when the target system is not in operation (offline state).
[0087]
Here, a user program and user screen creation procedure in the first to third display / control systems will be described with reference to the flowcharts of FIGS. 10 to 14.
[0088]
As shown in FIG. 10, it is determined according to the input operation by the user whether the user screen is to be created (drawing) or the user program is to be created (programming) (S11). When the user program is created first, the programming process (1) using the ladder editor 32a is executed (S12), and then the drawing process (2) using the drawing editor 32b is executed (S13). On the other hand, when the user screen is created first, the drawing process (1) using the drawing editor 32b is executed (S14), and then the programming process (2) using the ladder editor 32a is executed (S15).
[0089]
Next, the created user program and user screen are stored in a predetermined storage location so that they can be used (S16). At this time, in the first or second display / control system, the user program and the user screen are temporarily stored in the data file 33, and then downloaded to the PLC 2 and the programmable display 1, respectively, and stored in the memory. Alternatively, in the second display / control system, the user program and the user screen are temporarily stored in the data file 33, downloaded to the programmable display device 1, and stored in the memory unit 12. In the third display / control system, the user program and the user screen are stored in the data file 33.
[0090]
In the above example, the procedure of executing one of drawing and programming first and then executing the other is described. However, the present invention is not limited to this, and both can be executed in parallel.
[0091]
When the programming process (1) is executed first, the procedure shown in the flowchart of FIG. 11 is followed. Here, the ladder editor 32a and the drawing editor 32b are activated in the computer device 3, and an editor screen (first editor screen) for creating a user screen is displayed on the display unit 35a (see FIG. 15A) of the display 35. ) (Hereinafter referred to as a drawing window) 32b 1 And a window (hereinafter referred to as a ladder window) 32a for displaying an editor screen (second editor screen) for creating a user program. 1 Are open at the same time. However, when executing the programming process (1) first, it is sufficient that at least the ladder editor 32a is activated.
[0092]
First, the ladder window 32a 1 Above, a ladder command is described by arranging ladder symbols for each input / output device 4 (S21). Next, attribute data such as a name and an address used for the described ladder instruction are input (S22), and the ladder symbol and attribute data are registered in the temporary file (S23). Thereafter, it is determined whether or not to end the programming process according to the user's operation (S24). Here, if the process is not terminated, the process returns to S21. If the process is terminated, the created user program is registered in the ladder file 33a (S25).
[0093]
In the subsequent drawing (2), the procedure shown in the flowchart of FIG. 12 is followed.
[0094]
First, attribute data regarding a ladder symbol (ladder instruction) registered in the ladder file 33a in advance is imported into the screen file 33b (S31). Ladder window 32a 1 It is determined whether or not the upper ladder symbol has been dragged with a mouse or the like (S32). If dragged, the dragged ladder symbol is displayed in the drawing window 32b. 1 It is determined whether or not it has been dropped (S33). Here, when the drop of the ladder symbol is confirmed, the dialog box D including a plurality of marks having the function based on the function included in the attribute data of the dragged ladder symbol. 1 (See FIG. 15C) is displayed (S34).
[0095]
In the above procedure, the attribute data for all the ladder symbols created by the ladder editor 32a is copied in advance to the screen file 33b by the import in S31. However, instead of this, the attribute data for one ladder symbol may be imported sequentially for each drag and drop. In particular, when creating a ladder diagram including a large number of ladder symbols, the processing efficiency can be improved by importing the attribute data collectively. On the other hand, when creating a ladder diagram including a small number of ladder symbols, even if attribute data is imported sequentially, there is almost no decrease in processing efficiency. Therefore, it is desirable to select which import is adopted based on the size of the ladder diagram and other factors.
[0096]
Then dialog box D 1 When one mark is selected from the plurality of marks displayed in (1), the mark is registered in the temporary file (S35). Then, it is determined whether or not to end the drawing process according to the user's operation (S36). Here, if not finished, the process is returned to S31. If finished, the created user screen is registered in the screen file 33b (S37).
[0097]
Here, a specific example of the drawing process (2) performed in the procedure of the flowchart of FIG. 12 will be described.
[0098]
First, as shown in FIG. 15A, a ladder window 32a. 1 Above, a ladder symbol L representing a switch (input) and a ladder symbol L ′ representing a lamp (output) have already been drawn by the ladder editor 32a. Along with this, the ladder file 33a registers data on switches and lamps as shown in FIG. Specifically, for the switch, at least “SW1” as a name and “XB0001” as an address are registered. For the lamp, at least “LAMP1” as a name and “YB0001” as an address are registered.
[0099]
In this state, as shown in FIG. 15A, the drawing window 32b 1 Keep open. Further, as shown in FIG. 15B, a ladder window 32a. 1 The ladder symbol L in the drawing window 32b 1 When it is dropped after being dragged to the dialog box D, as shown in FIG. 1 Is the drawing window 32b 1 Is displayed.
[0100]
As described above, the attribute data for all the ladder symbols created by the ladder editor 32a is copied in advance to the screen file 33b by import. Alternatively, attribute data for one ladder symbol is imported for each drag and drop. As shown in FIG. 16, this import is realized by temporarily storing the attribute data in the clipboard CB and then copying it to the screen file 33b.
[0101]
Dialog box D 1 When an appropriate mark is selected from a plurality of types of marks having the switch function in FIG. 15, as shown in FIG. 15D, an image M of the selected mark is displayed in the drawing window 32b. 1 And a dialog box D containing attribute data (name "SW1" and characteristic "ON") 2 Is displayed. Here, when the OK button is clicked, the drawing window 32b. 1 The upper mark M and attribute data are confirmed, and the graphic data file portion 33b of the screen file 33b. 1 And attribute data file part 33b 2 The graphic data and attribute data for the switch mark M are stored in association with each other (see FIG. 16).
[0102]
Therefore, the user can draw the drawing window 32b. 1 There is no need to perform the work of drawing the switch mark or inputting the necessary attribute data, and the user screen can be created very easily.
[0103]
On the other hand, when the drawing process (1) is executed first, the procedure shown in the flowchart of FIG. 13 is followed. Here, in the computer apparatus 3, a ladder editor 32a and a drawing editor 32b are activated, and a ladder window 32a is displayed on the display unit 35a (see FIG. 17A) of the display 35. 1 And the drawing window 32b 1 Are open at the same time. However, when the drawing process (1) is executed first, it is sufficient that at least the drawing editor 32b is activated.
[0104]
First, the drawing window 32b 1 Above, a mark is arranged for each input / output device 4 (S41). Next, attribute data such as a name and an address used for the arranged mark are input (S42), and the mark and the attribute data are registered in the temporary file (S43). Thereafter, it is determined whether or not to end the drawing process according to the user's operation (S44). Here, if not finished, the process returns to S41, and if finished, the created user screen is registered in the screen file 33b (S45).
[0105]
The programming process (2) executed subsequently follows the procedure shown in the flowchart of FIG.
[0106]
First, attribute data for marks registered in the screen file 33b is imported into the ladder file 33a in advance (S51). Drawing window 32b 1 It is determined whether or not the upper mark has been dragged (S52). If dragged, the dragged mark is displayed in the ladder window 32a. 1 It is determined whether or not it has been dropped (S53). Here, when the drop of the mark is confirmed, the attribute data is displayed together with the ladder symbol corresponding to the function based on the function included in the attribute data of the dragged mark (S54).
[0107]
In the above procedure, the attribute data for all the marks arranged in the drawing editor 32b are copied in advance to the ladder file 33a by importing in S51 in advance. However, instead of this, the attribute data for one mark may be imported sequentially for each drag and drop.
[0108]
Thereafter, the displayed ladder symbol is registered in the temporary file (S55). Then, it is determined whether or not to end the programming process according to the user's operation (S56). If the process is not terminated, the process returns to S51. If the process is terminated, the created user program is registered in the ladder file 33a (S57).
[0109]
Here, a specific example of the programming process (2) performed in the procedure of the flowchart of FIG. 14 will be described.
[0110]
First, as shown in FIG. 17A, the drawing window 32b 1 On the top, a mark M representing a switch (input) is already arranged and drawn by the drawing editor 32b. Accordingly, as shown in FIG. 18, the screen file 33b registers data about the switch. Specifically, at least “SW1” as a name and “XB0001” as an address are registered for the switch.
[0111]
In this state, as shown in FIG. 1 Keep open. Further, as shown in FIG. 17B, the drawing window 32b 1 The mark M at is the ladder window 32a 1 When it is dropped after being dragged, the ladder symbol L and the dialog box D are displayed as shown in FIG. Three The ladder window 32a 1 Is displayed.
[0112]
As described above, the attribute data for all the marks arranged in the drawing editor 32b is copied to the ladder file 33a in a batch by importing in advance. Alternatively, attribute data for one mark is imported for each drag and drop. As shown in FIG. 18, this import is realized by temporarily storing the attribute data in the clipboard CB and then copying it to the ladder file 33a.
[0113]
As shown in FIG. 17C, a ladder symbol L corresponding to the function of the switch is displayed in the ladder window 32a. 1 Draw a dialog box D that contains attribute data (named “SW1”) Three Is displayed. Here, when the OK button is clicked, the ladder window 32a. 1 The upper ladder symbol L and attribute data are finalized, and the command file portion 33a of the ladder file 33a. 1 And attribute data file section 33a 2 The command and attribute data for the ladder symbol L of the switch are stored in association with each other (see FIG. 18).
[0114]
Therefore, the user can enter the ladder window 32a. 1 There is no need to perform the work of drawing the ladder symbol of the switch or the input of necessary attribute data, and the user program can be created very easily.
[0115]
As described above, in the first to third display / control systems according to the present embodiment, the ladder file 33a that stores the user program created by the ladder editor 32a and the user screen created by the drawing editor 32b are displayed. A screen file 33b to be stored is provided separately, and the copy function unit 32d is configured to copy the attribute data of the ladder symbol to the screen file 33b and copy the mark attribute data to the ladder file 33a. Thereby, it is possible to have attribute data common to both files 33a and 33b, and to easily associate attribute data between both files 33a and 33b.
[0116]
In addition, by having independent databases for the user program and the user screen as described above, the attribute data as described above can be copied between each database and another database. Specifically, a database using general-purpose application software (spreadsheet software, etc.), a CAD database for electronic circuits, a database data created by software for G code programming (machining programming) of NC controllers, etc. Copy the data to the user program or user screen database by selecting the data input on the operation input screen of the software as an image block and dragging and dropping (or copying and pasting) as described above To do.
[0117]
In particular, when designing a control panel using CAD software (CAD software), it is effective to exchange data with a ladder editor and a drawing editor.
[0118]
In order to develop all equipment systems, mechanical system drawings and electrical system diagrams are required. In order to create an electrical system diagram, it is necessary to create an electrical specification, a control panel diagram, a parts list, and a hardware diagram (circuit diagram, etc.). Then, the control panel is manufactured based on the created electrical system diagram, and the electrical work of the device system in which the control panel is installed is advanced. Also, in the process of designing and manufacturing the control panel, first the specifications are decided, and the electrical configuration is designed with a tool such as a CAD software based on the specifications, and then the PLC etc. Transition to program creation of display / control system including At this time, by using the function of the copy function unit 32d according to the present embodiment, data input by CAD software can be used to create a user program and a user screen.
[0119]
Specifically, when the CAD software is incorporated in the application 32c (see FIGS. 1, 7, and 9) of the computer apparatus 3, the CAD software is started and the display as shown in FIG. In the part 35a, a CAD window 32c 1 And ladder window 32a 1 Is displayed. CAD window 32c 1 Displays a push button switch (represented by the symbol symbol PB001) connected to the input portion of the PLC and a pilot lamp (represented by the symbol symbol PL001) connected to the output portion of the PLC. ing. In this state, the CAD window 32c 1 Drag the graphic symbol (image block) of the push button switch displayed on the 1 If it is dropped, the ladder symbol L corresponding to the push button switch is almost the same as the procedure shown in the flowchart of FIG. 1 (LD instruction etc.) is a ladder window 32a 1 Is displayed. Similarly, the pilot lamp has a ladder symbol L 2 Ladder window 32a as (OUT command) 1 Is displayed.
[0120]
On the other hand, when a user screen is created using CAD data, the CAD window 32c is displayed on the display unit 35a as shown in FIG. 1 And drawing window 32b 1 Is displayed. In this state, the CAD window 32c 1 Drag the graphic symbol of the push button switch displayed on the screen, and draw the drawing window 32b 1 The mark M corresponding to the push button switch is displayed in the drawing window 32b in substantially the same procedure as shown in the flowchart of FIG. 1 Is displayed. At this time, if the functions of the push button switch and the pilot lamp are made common in the input section and the output section of the PLC, the mark M which serves as both the push button switch and the pilot lamp is displayed in the drawing window 32b. 1 Is displayed.
[0121]
Data imported into the ladder file 33a and the drawing file 33b during the above processing is stored in a CAD database constructed in the application file 33c as shown in FIG. Specifically, graphic symbol names, comments, PLC related addresses, and the like are stored. The PLC-related address is an address assigned to a device such as a push button switch or a pilot lamp connected to the PLC 2. The symbol name is a symbol name given to the push button switch, pilot lamp, etc. in the above diagram created by CAD software. This graphic symbol name is associated with the above address, and is set to be the same as a variable used in place of the address when assigning an address such as a push button switch or a pilot lamp to a ladder symbol or mark. The comment is provided to indicate the operating state of the device.
[0122]
In the above CAD database, by setting the graphic symbol name and the variable to be the same, the graphic symbol name (name) and the PLC-related address (address) are used as attribute data (see FIGS. 6A and 6B). Can be handled. As a result, the ladder editor 32a and the drawing editor 32b use the ladder symbol L as a graphic symbol name as a variable. 1 ・ L 2 And the mark M. Further, the drawing editor 32b displays a comment “driving” on the mark M.
[0123]
Here, in the third display / control system, as shown in FIG. 9, since the computer device 3 having the editor function and the PLC function is connected to the open network 8, the database in the computer device 3 and such Attribute data regarding ladder symbols and marks can be exchanged with a database in other systems A to C connected to the open network 8 via the network. In addition, it is possible to share the same database between the computer device 3 and a remote system via a network.
[0124]
Also in the second display / control system, if the programmable display 1 has an interface connectable to the open network 8, the programmable display 1 is connected to the computer via the open network 8 as shown in FIG. It can be connected to the apparatus 3 and other systems A to C. In the case of the first display / control system, the programmable display 1 can be connected to the open network 8 in the same manner as the second display / control system, but communication between the programmable display 1 and the PLC 2 is possible. Then, it is necessary to cope with a different communication protocol for each manufacturer of PLC2. For this reason, as described in Japanese Patent Application No. 10-117117 filed earlier by the applicant of the present application, a common communication protocol used for communication in the open network 8 and a communication protocol corresponding to the model of PLC2 The programmable display device 1 is provided with a function of mutually converting.
[0125]
Moreover, even when a plurality of user screens with different patterns are created for one user program, or when a plurality of PLCs 2 are connected to one programmable display 1 in the first display / control system, between the databases. By copying the data, a link between one-to-many databases can be easily realized.
[0126]
In the present embodiment, an example in which the ladder window and the drawing window are displayed on the same display has been described. However, the ladder window and the drawing window are displayed based on a database of different devices via a network. The present invention can also be applied.
[0127]
Specifically, as shown in FIG. 21A, a database DB storing user programs downloaded to the PLC 2 in the first display / control system. 1 And a database DB storing user screens downloaded to the programmable display 1 in the second display / control system 2 Data is exchanged with In this case, in the computer apparatus 3, as shown in FIG. 1 Database DB displayed in 1 User program and drawing window 32b 1 Database DB displayed in 2 It is possible to automatically generate ladder symbols and marks by dragging and dropping between the user screen and the user screen. Therefore, editing and correction can be easily performed between the user program already downloaded to the PLC 2 and the user screen downloaded to the programmable display 1.
[0128]
Of course, the present invention is applied not only to the ladder diagram but also to programming in other languages including the five languages defined in the above-mentioned IEC 6 1131-3.
[0129]
The editor device according to the present invention is executed by the display function unit for a display / control system including a display function unit that displays a state of a control target device and a control function unit that controls the operation of the control target device. First editor means for creating a display content program for determining the contents of display in response to an input operation on the first editor screen, and a control procedure program for defining a control procedure executed by the control function unit 2. An editor device comprising a second editor means for creating in response to an input operation on the editor screen, the editor screen relating to data input on one of the first or second editor screens The display content program and the control procedure program are selected according to the operation of selecting the image block displayed above and copying it to the other editor screen. Data copying means for copying the data common to the display program between the display content program file for storing the display content program and the control procedure program file for storing the control procedure program It is characterized by providing data copying means.
[0130]
In the above configuration, the display content program created by the first editor means is stored in the display content program file, and the control procedure program created by the second editor means is stored in the control procedure program file. Further, when the control procedure program is created by operating the second editor means after the display contents program is created by the operation of the first editor means or at the time of creating the display contents program, the data copying means is used on the first editor screen. In accordance with the selection of the image block and the operation for copying it to the second editor screen, data common to both programs is copied between both files. On the other hand, when creating a display content program by operating the first editor means after creating the control procedure program by operating the second editor means or at the time of creating the control procedure program, the data copying means creates a program on the second editor screen. In accordance with the selection of the image block and the operation for copying it to the first editor screen, data common to both programs is copied between both files.
[0131]
In this way, by selecting and copying image blocks, the data stored in one file is copied to the other file, so that a common database can be created between the two files. As a result, there is no need to create a common database for both editor means. In addition, duplicate input of data by both editor means can be avoided.
[0132]
In the editor device, the first editor means draws the control target devices and their states as image blocks on the first editor screen, and inputs attribute data specifying each control target device. The second editor means draws a plurality of symbols representing the control operation corresponding to the control target device as an image block on the second editor screen, inputs the attribute data, and the data copying means The attribute data associated with the image block selected on the first or second editor screen is copied between the two files, and the first data corresponding to one of the files to which the attribute data is copied. Or the selected image block by referring to the copied attribute data in the second editor means It is preferable to automatically draw the image block for the corresponding control target device and the same control target device.
[0133]
In the above configuration, by operating the first editor unit, a mark corresponding to the control target device is drawn as an image block on the first editor screen, and attribute data related to the control target device is input. On the other hand, by operating the second editor means, a symbol (for example, a ladder symbol) corresponding to the control target device is drawn as an image block on the second editor screen, and attribute data related to the control target device is input.
[0134]
When the attribute data associated with the mark selected on the first editor screen is copied from the display contents program file to the control procedure program file by the data copying means, the second editor means copies the attribute data copied. By referring to, a symbol for a control target device identical to the control target device corresponding to the selected mark is automatically drawn. On the other hand, when the attribute data associated with the symbol selected on the second editor screen is copied from the control procedure program file to the display content program file by the data copying means, the first editor means copies the attribute data copied. By referring to, a mark is automatically drawn for the same control target device as the control target device corresponding to the selected symbol.
[0135]
Thus, based on the mark or symbol previously created by one editor means and the attribute data associated therewith, the symbol or mark is created and the attribute data is duplicated by the other editor means. Therefore, the symbol or mark can be easily created by the other editor means, and attribute data need not be input.
[0136]
Preferably, the data copying means copies the attribute data prior to image block selection and copying operations. Thereby, for example, when the other program is created based on the already created program, the mark or symbol is drawn after the attribute data is copied in advance. In addition, when creating one program while creating one program, the attribute data is sequentially copied each time a mark or symbol is created on one editor screen, and the symbol or mark is created on the other editor screen. Drawn.
[0137]
In any of the above-described editor devices, the data copying means selects an image block displayed on the operation screen with respect to data input on the operation input screen of the application program, and the first or second editor screen. It is preferable to copy data common between the display content program or the control procedure program and the application program data to the display content program file or the control procedure program file in accordance with the operation to be copied upward. . As a result, the display content program file or the control procedure program file can capture data of an application program such as CAD.
[0138]
It is preferable that the editor apparatus having any of the above-described configurations is connected to a system different from the display / control system via a network, and the data copying means copies data between the both files and the system. . As a result, the attribute data can be copied directly from the system to one of the two files.
[0139]
A recording medium on which an editor program of the present invention is recorded is a display / control system having a display function unit that displays a state of a control target device and a control function unit that controls the operation of the control target device. To define a first editor process for creating a display content program for determining the contents of display executed by the display function unit in response to an input operation on the first editor screen, and a control procedure executed by the control function unit Is a computer-readable recording medium in which an editor program including a second editor process for creating the control procedure program according to an input operation on the second editor screen is recorded. An image block displayed on the editor screen with respect to data input on the first or second editor screen. In accordance with an operation to be selected and copied onto the other editor screen, data common between the display content program and the control procedure program, a display content program file storing the display content program, and the control procedure It is characterized by including a data copying process for copying with a control procedure program file for storing a program.
[0140]
When this recording medium is used, both the programs are selected according to the selection of the image block on the second editor screen and the operation of copying it to the first editor screen by the data copying process, as in the editor device of the present invention. The common data is copied between both files. Therefore, as a result of creating a common database between both files, there is no need to create a common database for both editor processes. Moreover, it is possible to avoid duplicate data input by both editor processes.
[0141]
Another recording medium in which the editor program of the present invention is recorded is intended for a display / control system having a display function unit for displaying the state of a control target device and a control function unit for controlling the operation of the control target device. The first editor process for creating a display content program for determining the content of the display executed by the display function unit according to the input operation on the first editor screen or the control procedure executed by the control function unit A computer-readable recording medium on which an editor program including any one of second editor processes for creating a control procedure program for generating a control procedure program in response to an input operation on the second editor screen is recorded. The program is displayed on the editor screen with respect to the data entered on either one of the first or second editor screens. A display content program file for storing the display content program as data common to the display content program and the control procedure program in accordance with an operation of selecting an image block and copying it to the other editor screen And a control procedure program file for storing the control procedure program.
[0142]
If this recording medium is used, data common to both programs is copied between both files by the data copying process as in the case of the recording medium described above, so that it is not necessary to create a database common to both editor processes. In addition, it is possible to avoid duplicate data input by both editor processes. Furthermore, according to this recording medium, it is possible to provide two types of editor programs including either the first or second editor process and the data copying process, that is, the first or second editor program.
[0143]
In both the recording media, the first editor process draws the control target devices and their states as image blocks on the first editor screen, and inputs attribute data specifying each control target device. The second editor process draws a plurality of symbols representing the control operation corresponding to the controlled device on the second editor screen as an image block, inputs the attribute data, and either of the data copying processes The attribute data associated with the image block selected on the first or second editor screen is copied between the two files, and the first data corresponding to one of the files to which the attribute data is copied. Or, the second editor process corresponds to the selected image block by referring to the copied attribute data. It is preferable to automatically draw the image blocks for your target device and the same control target device.
[0144]
If such a recording medium is used, the drawing of the mark and the input of the attribute data are performed by the first editor process, while the drawing of the symbol and the input of the attribute data are performed by the second editor process, as in the above-described editor device. . Further, by the data copying process, the second editor process refers to the copied attribute data and automatically draws a symbol for the same control target device as the control target device corresponding to the selected mark. The first editor process automatically draws a mark for the same control target device as the control target device corresponding to the selected symbol by referring to the copied attribute data. Therefore, the symbol or mark can be easily created by the other editor process, and attribute data need not be input.
[0145]
Preferably, the data copying process copies the attribute data prior to image block selection and copying operations. As a result, when the other program is created based on the created program, the mark or symbol is drawn after the attribute data is copied in advance in the same manner as in the editor device described above. In addition, when creating one program while creating one program, the attribute data is sequentially copied each time a mark or symbol is created on one editor screen, and the symbol or mark is created on the other editor screen. Drawn.
[0146]
Alternatively, the data copying process selects an image block displayed on the operation screen with respect to data input on the operation input screen of the application program and copies the data on the first or second editor screen. It is preferable that data common between the display content program or the control procedure program and the data of the application program is copied to the display content program file or the control procedure program file. As a result, similar to the above-described editor device, the display content program file or the control procedure program file can capture data of an application program such as CAD.
[0147]
【The invention's effect】
As described above, the editor device of the present invention is for defining the first editor means for creating the display content program for determining the display content for displaying the state of the control target device and the control procedure for controlling the control target device. The data common to the two programs is copied between the second editor means for creating the control procedure program, the display content program file for storing the display content program, and the control procedure program file for storing the control procedure program. An editor apparatus comprising data copying means, wherein the data copying means stores data common between the display content program or the control procedure program and a graphic symbol created by CAD, The graphic symbol name and the variable used in place of the address assigned to the device connected to the control target device are set the same. The CAD database is copied to the display content program or the control procedure program file.
[0148]
In addition, the recording medium on which the editor program of the present invention is recorded includes a first editor process for creating a display content program for defining a display content for displaying the state of the control target device, and a control procedure for controlling the control target device. Data common to both programs between a second editor process for creating a control procedure program for determining the display content program file, a display content program file for storing the display content program, and a control procedure program file for storing the control procedure program A computer-readable recording medium on which an editor program including a data copying process for copying is recorded, wherein the data copying process is performed between the display content program or the control procedure program and a graphic symbol created by CAD. The common data in The graphic symbol name and the variable used in place of the address assigned to the device connected to the control target device are set the same. Copy from the CAD database to the display content program or the control procedure program file.
[0149]
Another recording medium in which the editor program of the present invention is recorded is a first editor process for creating a display content program for defining a display content for displaying the state of the control target device or a control procedure for controlling the control target device. Both of the above-mentioned programs are included between any one of the second editor processes for creating a control procedure program for determining, a display content program file for storing the display content program, and a control procedure program file for storing the control procedure program. A computer-readable recording medium on which an editor program including a data copying process for copying common data is recorded, wherein the data copying process is generated by the display content program or the control procedure program and CAD Data common to The graphic symbol name and the variable used in place of the address assigned to the device connected to the control target device are set the same. Copy from the CAD database to the display content program or the control procedure program file.
[0150]
As a result, the data stored in the CAD database is copied to the display content program file or the control procedure program file, so that the data created by CAD can be used to create the display content or control procedure program. In addition, it is possible to avoid redundant input of data by the CAD and both editor means. Therefore, there is an effect that the database can be used efficiently while simplifying the input operation.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of a first display / control system according to an embodiment of the present invention.
FIG. 2 is an explanatory diagram showing a program stored in an FEPROM of a programmable display in the first display / control system.
FIG. 3 is an explanatory diagram showing a basic format of a processing instruction word included in a user screen displayed on the programmable display or the like.
FIG. 4 is a flowchart showing a processing procedure of display operation of the programmable display device.
FIGS. 5A to 5C are respectively a data structure used for copying attribute data executed by a computer apparatus in the first to third display / control systems, an object type in the data structure, and It is explanatory drawing which shows the address information in the said data structure.
FIGS. 6A and 6B are explanatory diagrams showing a ladder file and a screen file formed in the computer device, respectively.
FIG. 7 is a block diagram showing a configuration of a second display / control system according to an embodiment of the present invention.
FIG. 8 is an explanatory diagram showing a program stored in the FEPROM of the programmable display in the second and third display / control systems.
FIG. 9 is a block diagram showing a configuration of a third display / control system according to an embodiment of the present invention.
FIG. 10 is a flowchart showing a procedure of editor processing executed by a computer device in the first to third display / control systems.
FIG. 11 is a flowchart showing a procedure of a programming process executed first in the editor process.
12 is a flowchart showing a procedure of a drawing process executed after the programming process of FIG.
FIG. 13 is a flowchart showing a procedure of a drawing process executed first in the editor process.
14 is a flowchart showing a procedure of programming processing executed after the drawing processing of FIG.
FIGS. 15A to 15D are explanatory views showing a specific example of the procedure of FIG.
16 is an explanatory diagram showing a specific form of copying of attribute data executed in accordance with the procedure of FIG.
FIGS. 17A to 17C are explanatory views showing a specific example of the procedure of FIG.
FIG. 18 is an explanatory diagram showing a specific form of attribute data copying executed in accordance with the procedure of FIG. 14;
FIG. 19A is an explanatory diagram showing an example in which a ladder symbol is automatically generated by a ladder editor using CAD software data, and FIG. 19B is an automatic generation of a mark by a drawing editor using CAD software data. It is explanatory drawing which shows the example to do.
FIG. 20 is an explanatory diagram showing a configuration of a CAD database for storing data of the CAD software.
FIG. 21A is a block diagram showing first to third display / control systems connected to another system via an open network, and FIG. 21B is a computer device connected to the open network. It is explanatory drawing which shows the example which performs the automatic generation | occurrence | production of a ladder symbol and a mark using the database of a different system.
[Explanation of symbols]
1 Programmable display (display function unit)
2 PLC (control function part)
3 Computer devices (display function section, control function section)
4 Input / output devices (devices to be controlled)
5 recording media
32a Ladder editor (second editor means)
32b Drawing editor (first editor means)
32c application (application program)
32d Copy function section (data copy means)
33a Ladder file (control procedure program file)
33b Screen file (display content program file)
33c Application file (CAD database)
AC system
DB 1 ・ DB 2 The database
L / L 'ladder symbol (image block)
M mark (image block)

Claims (8)

制御対象機器の状態を表示する表示内容を定めるための表示内容プログラムを作成する第1エディタ手段と、上記制御対象機器を制御する制御手順を定めるための制御手順プログラムを作成する第2エディタ手段と、上記表示内容プログラムを格納する表示内容プログラムファイルと上記制御手順プログラムを格納する制御手順プログラムファイルとの間で上記両プログラムに共通するデータを複写するデータ複写手段とを備えるエディタ装置であって、
上記データ複写手段が、上記表示内容プログラムまたは上記制御手順プログラムとCADにより作成された図記号との間で共通するデータを、当該図記号名と、上記制御対象機器に接続される機器に割り付けられるアドレスの代わりに用いられる変数とが同一に設定されているCADデータベースから上記表示内容プログラムまたは上記制御手順プログラムファイルに複写することを特徴とするエディタ装置。
First editor means for creating a display content program for defining display contents for displaying the status of the control target device; and second editor means for creating a control procedure program for defining a control procedure for controlling the control target device; An editor device comprising: a data copying means for copying data common to both programs between a display content program file for storing the display content program and a control procedure program file for storing the control procedure program,
The data copying means assigns the data common between the display content program or the control procedure program and the graphic symbol created by CAD to the graphic symbol name and the device connected to the control target device. An editor apparatus for copying from a CAD database in which variables used instead of addresses are set to the same to the display content program or the control procedure program file.
ネットワークを介して他のシステムに接続されており、上記データ複写手段が上記両ファイルと上記システムとの間でデータを複写することを特徴とする請求項1に記載のエディタ装置。  2. The editor apparatus according to claim 1, wherein the editor apparatus is connected to another system via a network, and the data copying means copies data between the two files and the system. 上記データが複写されたいずれか一方の上記ファイルに対応する上記第1または第2エディタ手段が、複写された上記データを参照することによって、上記データに関連する画像ブロックを表示することを特徴とする請求項1に記載のエディタ装置。  The first or second editor means corresponding to any one of the files in which the data is copied displays an image block related to the data by referring to the copied data. The editor device according to claim 1. 上記データ複写手段が、CAD画面上に表示された図記号を選択し、かつ上記第1または第2エディタ手段のエディタ画面上へ複写させる操作に応じて、上記図記号と上記表示内容プログラムまたは上記制御手順プログラムとの間で共通するデータを複写することを特徴とする請求項1に記載のエディタ装置。  The data copying means selects the graphic symbol displayed on the CAD screen and copies the graphic symbol on the editor screen of the first or second editor means according to the operation described above. The editor apparatus according to claim 1, wherein data common to the control procedure program is copied. 制御対象機器の状態を表示する表示内容を定めるための表示内容プログラムを作成する第1エディタ処理と、上記制御対象機器を制御する制御手順を定めるための制御手順プログラムを作成する第2エディタ処理と、上記表示内容プログラムを格納する表示内容プログラムファイルと上記制御手順プログラムを格納する制御手順プログラムファイルとの間で上記両プログラムに共通するデータを複写するデータ複写処理とを含むエディタプログラムを記録したコンピュータ読み取り可能な記録媒体であって、
上記データ複写処理が、上記表示内容プログラムまたは上記制御手順プログラムとCADにより作成された図記号との間で共通するデータを、当該図記号名と、上記制御対象機器に接続される機器に割り付けられるアドレスの代わりに用いられる変数とが同一に設定されているCADデータベースから上記表示内容プログラムまたは上記制御手順プログラムファイルに複写
することを特徴とするエディタプログラムを記録した記録媒体。
A first editor process for creating a display content program for determining display contents for displaying the status of the control target device; a second editor process for creating a control procedure program for determining a control procedure for controlling the control target device; A computer recording an editor program including a display content program file for storing the display content program and a data copying process for copying data common to the two programs between the control procedure program file for storing the control procedure program A readable recording medium,
In the data copying process, data common between the display content program or the control procedure program and a graphic symbol created by CAD is assigned to the graphic symbol name and a device connected to the control target device. A recording medium having an editor program recorded thereon, wherein the editor program is copied from a CAD database in which variables used instead of addresses are set to be the same to the display content program or the control procedure program file.
制御対象機器の状態を表示する表示内容を定めるための表示内容プログラムを作成する第1エディタ処理または上記制御対象機器を制御する制御手順を定めるための制御手順プログラムを作成する第2エディタ処理のいずれか一方と、上記表示内容プログラムを格納する表示内容プログラムファイルと上記制御手順プログラムを格納する制御手順プログラムファイルとの間で上記両プログラムに共通するデータを複写するデータ複写処理とを含むエディタプログラムを記録したコンピュータ読み取り可能な記録媒体であって、
上記データ複写処理が、上記表示内容プログラムまたは上記制御手順プログラムとCADにより作成された図記号との間で共通するデータを、当該図記号名と、上記制御対象機器に接続される機器に割り付けられるアドレスの代わりに用いられる変数とが同一に設定されているCADデータベースから上記表示内容プログラムまたは上記制御手順プログラムファイルに複写することを特徴とするエディタプログラムを記録した記録媒体。
Either the first editor process for creating a display content program for determining the display contents for displaying the state of the control target device or the second editor process for creating a control procedure program for determining a control procedure for controlling the control target device An editor program comprising: a display content program file for storing the display content program; and a data copying process for copying data common to the two programs between the control procedure program file for storing the control procedure program. A recorded computer-readable recording medium,
In the data copying process, data common between the display content program or the control procedure program and a graphic symbol created by CAD is assigned to the graphic symbol name and a device connected to the control target device. A recording medium having an editor program recorded thereon, wherein the editor program is copied from a CAD database in which variables used instead of addresses are set to be the same to the display content program or the control procedure program file.
上記データが複写されたいずれか一方の上記ファイルに対応する上記第1または第2エディタ処理が、複写された上記データを参照することによって、上記データに関連する画像ブロックを表示することを特徴とする請求項5または6に記載の記録媒体。  The first or second editor process corresponding to any one of the files in which the data is copied displays an image block related to the data by referring to the copied data. The recording medium according to claim 5 or 6. 上記データ複写処理が、CAD画面上に表示された上記図記号を選択し、かつ上記第1または第2エディタ処理のエディタ画面上へ複写させる操作に応じて、上記図記号と上記表示内容プログラムまたは上記制御手順プログラムとの間で共通するデータを複写することを特徴とする請求項7に記載の記録媒体。  In response to an operation in which the data copying process selects the graphic symbol displayed on the CAD screen and copies it to the editor screen of the first or second editor processing, the graphic symbol and the display content program or 8. The recording medium according to claim 7, wherein data common to the control procedure program is copied.
JP2001222084A 2001-07-23 2001-07-23 Editor device and recording medium recording editor program Expired - Fee Related JP3712640B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001222084A JP3712640B2 (en) 2001-07-23 2001-07-23 Editor device and recording medium recording editor program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001222084A JP3712640B2 (en) 2001-07-23 2001-07-23 Editor device and recording medium recording editor program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP24640299A Division JP2001075614A (en) 1999-08-31 1999-08-31 Editor device and recording medium recording editor program

Publications (2)

Publication Number Publication Date
JP2002062911A JP2002062911A (en) 2002-02-28
JP3712640B2 true JP3712640B2 (en) 2005-11-02

Family

ID=19055636

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001222084A Expired - Fee Related JP3712640B2 (en) 2001-07-23 2001-07-23 Editor device and recording medium recording editor program

Country Status (1)

Country Link
JP (1) JP3712640B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4509979B2 (en) * 2006-07-27 2010-07-21 株式会社デジタル CONTROL SYSTEM, PROGRAMMABLE DISPLAY AND SERVER COMPUTER, PROGRAM FOR PROGRAMMABLE DISPLAY AND SERVER COMPUTER, AND RECORDING MEDIUM CONTAINING THE PROGRAM
JP4784754B2 (en) * 2006-07-28 2011-10-05 オムロン株式会社 Control system setting device

Also Published As

Publication number Publication date
JP2002062911A (en) 2002-02-28

Similar Documents

Publication Publication Date Title
US7603183B1 (en) Editor device and recorded medium on which editor program is recorded
CN100511221C (en) Methods and apparatus for importing device data into a database system used in a process plant
JP2006134097A (en) Programmable display, display control program, and recording medium with the program recorded thereon
JP3847585B2 (en) Editor registration device, registration program, and recording medium recording the same
JP3835589B2 (en) Drawing device and computer-readable recording medium recording drawing program
JP3913414B2 (en) Editor device and recording medium recording editor program
JP3847601B2 (en) Control display device, control program, and recording medium recording the same
JP2000259216A (en) System and method for programming industrial controller and recording medium recording software of the system and method
JP3712640B2 (en) Editor device and recording medium recording editor program
JP2007094724A (en) Programmable display, control program, storage medium recording the program, screen generating device, screen generating program, and storage medium recording the program
JP2001075614A (en) Editor device and recording medium recording editor program
JP2002062910A (en) Editor device and storage medium recording editor program
JP4322780B2 (en) Screen creation device, screen creation program and recording medium
JP3710731B2 (en) Editor device and recording medium recording editor program
JP3712641B2 (en) Editor device and recording medium recording editor program
JP3795473B2 (en) Editor device and recording medium recording editor program
JP3939518B2 (en) Input / output address setting device, input / output address setting program and recording medium recording the same
JP4335109B2 (en) Screen creation device, screen creation program, and recording medium recording the same
JP2001075616A (en) Editor device and recording medium recording editor program
JP3795357B2 (en) Editor device, editor program, and recording medium recording the same
JPH11265280A (en) Graphic editor and computer-readable recording medium for recording editor program
JP2001075791A (en) Editor device and recording medium recording editor program
JP2001075615A (en) Editor device and recording medium recording editor program
JPH11175326A (en) Editor device and computer readable 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

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040304

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040629

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040827

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050817

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080826

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20090826

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090826

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100826

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110826

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110826

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120826

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120826

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130826

Year of fee payment: 8

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