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

Editor device and recording medium recording editor program

Info

Publication number
JP3195322B2
JP3195322B2 JP24922199A JP24922199A JP3195322B2 JP 3195322 B2 JP3195322 B2 JP 3195322B2 JP 24922199 A JP24922199 A JP 24922199A JP 24922199 A JP24922199 A JP 24922199A JP 3195322 B2 JP3195322 B2 JP 3195322B2
Authority
JP
Japan
Prior art keywords
program
editor
display
ladder
screen
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
JP24922199A
Other languages
Japanese (ja)
Other versions
JP2001075618A (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
Priority to JP24922199A priority Critical patent/JP3195322B2/en
Application filed by Digital Electronics Corp filed Critical Digital Electronics Corp
Priority to PCT/JP2000/005803 priority patent/WO2001016657A1/en
Priority to US10/069,542 priority patent/US7603183B1/en
Priority to EP07009511A priority patent/EP1816532A3/en
Priority to CNB2004100004348A priority patent/CN100368986C/en
Priority to DE60045196T priority patent/DE60045196D1/en
Priority to DE60035202T priority patent/DE60035202T2/en
Priority to AU67329/00A priority patent/AU6732900A/en
Priority to EP07009509A priority patent/EP1816531A3/en
Priority to CNB2004100004367A priority patent/CN100368987C/en
Priority to EP00955074A priority patent/EP1213633B9/en
Priority to CNB2004100004371A priority patent/CN100368988C/en
Priority to CNB2004100004386A priority patent/CN1302375C/en
Priority to CNB008122660A priority patent/CN1160601C/en
Priority to EP07009510A priority patent/EP1821166B1/en
Publication of JP2001075618A publication Critical patent/JP2001075618A/en
Application granted granted Critical
Publication of JP3195322B2 publication Critical patent/JP3195322B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、制御対象機器の状
態を表示させる機能および制御対象機器の動作を制御す
る機能を有するシステムにおいて、制御対象機器の状態
に応じた表示内容および制御対象機器の制御手順をプロ
グラミングするエディタ装置およびエディタプログラム
が記録された記録媒体に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system having a function of displaying the state of a controlled device and a function of controlling the operation of the controlled device. The present invention relates to an editor device for programming a control procedure and a recording medium on which an editor program is recorded.

【0002】[0002]

【従来の技術】プログラマブルロジックコントローラ
(以降、PLCと称する)などと呼ばれる産業用制御装
置は、シーケンス制御をはじめとする各種制御を実現す
るために、CPUおよびメモリを中心とするハードウェ
アの部分と、制御を司るソフトウェアの部分とを備えて
いる。ソフトウェアの部分は、PLCを設計当初の制御
システム通りに動作させるためのシーケンス制御フロー
の設計、その制御フローの命令語への変換、命令語のメ
モリへの書き込みなどを含んでいる。一般に、この一連
の作業をプログラミングと称している。
2. Description of the Related Art An industrial control device called a programmable logic controller (hereinafter, referred to as a PLC) or the like includes a hardware portion mainly including a CPU and a memory for realizing various controls including a sequence control. And a software part for controlling. The software portion includes designing a sequence control flow for operating the PLC according to the control system originally designed, converting the control flow into a command, writing the command to a memory, and the like. Generally, this series of operations is called programming.

【0003】このようなプログラミングにおいては、コ
ンピュータの専門知識を持たなくても簡単にプログラム
作成ができるように、独自の言語を用いており、利用者
に使いやすい各種のプログラミング言語が次々と開発さ
れるようになった。現在、IEC(International Elect
rotechnical Commission) において、標準のプログラミ
ング言語が制定されている(IEC 6 1131-3 )。それ
は、SFC(Sequential Function Chart) 、LD(Ladde
r Diagram)、IL(Instruction List)、FBD(Functio
n Block Diagram)およびST(Structured Text) の5言
語である。
[0003] In such programming, a proprietary language is used so that a program can be easily created without having specialized knowledge of a computer, and various programming languages which are easy for a user to use have been developed one after another. It became so. Currently, IEC (International Elect
The Rotechnical Commission) has established a standard programming language (IEC 61131-3). They are SFC (Sequential Function Chart), LD (Ladde
r Diagram), IL (Instruction List), FBD (Functio
n Block Diagram) and ST (Structured Text).

【0004】上記のように、各種のプログラミング言語
を用いてプログラム開発を行うことができるように環境
が整えられつつある。例えば、ラダー図(LD)は、リ
レーシンボルを用いて比較的容易にラダー回路を設計す
ることができるので従来から広く普及しており、現在で
も最もよく用いられているプログラミング言語である。
このようなプログラミング言語を用いたプログラミング
作業において用いられるプログラミングツールとして
は、ラダーエディタなどのプログラミングソフトウェア
が普及してきている。このソフトウェアは、パーソナル
コンピュータなどのコンピュータ装置において、ラダー
図などをシンボルを含む形態で作成できるので、プログ
ラムの作成および編集が容易に行える。
[0004] As described above, an environment is being prepared so that programs can be developed 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 a relay symbol, and is a programming language most often used at present.
As a programming tool used in a programming operation using such a programming language, a programming software such as a ladder editor has been widely used. Since this software can create a ladder diagram or the like in a form including symbols in a computer device such as a personal computer, it is easy to create and edit a program.

【0005】一方、プログラマブル表示器は、ドット表
示画面、操作用入力スイッチ、ホストコントローラ(P
LC)とのインターフェース、画面上での操作入力のよ
うな制御のためのプログラムメモリなどを備えた操作用
表示器である。一般に、プログラマブル表示器は、グラ
フィック表示を行うので、操作盤、スイッチ、表示灯な
どの機能を備えることができる他、制御対象機器(デバ
イス)の稼働状況や作業指示のような管理のための各種
のモニタ、機器に対する設定値を入力する端末としての
機能を備えている。
On the other hand, the programmable display has a dot display screen, an operation input switch, and a host controller (P).
LC), and an operation display having a program memory for control such as operation input on a screen. Generally, since a programmable display performs a graphic display, it can be provided with functions such as an operation panel, a switch, and an indicator light, and various kinds of management such as an operation status of a control target device (device) and a work instruction. It has a function as a monitor and a terminal for inputting setting values for the devices.

【0006】また、近年では、制御対象機器を接続する
ための入出力ユニットなどを搭載することによってPL
Cの制御機能を備えたプログラマブル表示器も登場して
きている。
[0006] In recent years, a P / L is mounted by mounting an input / output unit or the like for connecting a device to be controlled.
Programmable displays with C control functions have also appeared.

【0007】このようなプログラマブル表示器で表示さ
れる制御画面(表示内容プログラム)は、画面作成ソフ
トウェア(作画エディタ)を用いてユーザ独自で作成で
きるようになっている。画面作成に際しては、ユーザ
が、パーソナルコンピュータなどにおいて作画ソフトに
よって提供されるスイッチ、ランプ、テンキー、メータ
表示器、グラフ表示器などの部品(マーク)、描画機能
などを用いて所望の制御画面を構成する。
A control screen (display content program) displayed on such a programmable display can be created by a user 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, a meter display, a graph display, and drawing functions provided by drawing software on a personal computer or the like. I do.

【0008】また、作画エディタは、上記のような単一
の機能だけではなく、複数の機能が複合された複合部品
も用意している。複合部品としては、複合スイッチや、
カウンタなどが挙げられる。複合スイッチは、例えば、
複数のスイッチの組み合わせからなり、必要に応じてス
イッチの動作に連動するランプを備えている。また、カ
ウンタは、設定値とカウント値とをそれぞれ表示する数
値表示器、カウントアップ時に点灯するランプ、リセッ
ト操作のためのボタンなどを備えている。このような複
合部品は、通常、ライブラリ形式で登録されており、作
画エディタのウインドウ上でユーザが選択自在となるよ
うに提供される。
The drawing editor also provides not only a single function as described above, but also a composite part in which a plurality of functions are compounded. Composite components include composite switches,
And a counter. A compound switch is, for example,
It is composed of a combination of a plurality of switches, and has a lamp that is linked to the operation of the switches as necessary. The counter also includes a numerical display for displaying the set value and the count value, a lamp that lights up when the count is up, a button for a reset operation, and the like. Such composite parts are usually registered in a library format, and are provided so that a user can freely select them on a window of a drawing editor.

【0009】作成された制御画面は、画面データとして
プログラマブル表示器に転送されて記憶される。PLC
の稼働時には、プログラマブル表示器は、PLCとの間
でやり取りされるデータに基づいて、制御対象機器の動
作状態に応じて制御画面上に各部品や図形を表示させ
る。
[0009] The created control screen is transferred to and stored in the programmable display as screen data. PLC
During the operation of, the programmable display displays each component or graphic on the control screen according to the operation state of the control target device based on data exchanged with the PLC.

【0010】ラダーエディタなどを用いた制御手順プロ
グラムの作成(プログラミング)と、作画エディタを用
いた表示内容プログラムの作成(画面作成)とは、一般
には独立して行われる。例えば、作成された制御手順プ
ログラムに基づいて表示内容プログラムを作成する場合
は、制御手順プログラムの作成時に各デバイスについて
入力された名称およびアドレスをテーブルの形式で書き
留めたような設計資料を作成しておき、その設計資料を
参照しながらI/Oアドレスの定義付けなどを含む表示
内容プログラムの作成作業を行う。また、作成された表
示内容プログラムに基づいて制御手順プログラムを作成
する場合も同様に、予め用意された設計資料に基づいて
作業を行う。
The creation (programming) of a control procedure program 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 design data in which the names and addresses entered for each device at the time of creating the control procedure program are written down in a table format. Then, a display content program including definition of an I / O address is created with reference to the design data. Similarly, when a control procedure program is created based on the created display content program, work is performed based on design materials prepared in advance.

【0011】[0011]

【発明が解決しようとする課題】上記のプログラム作成
方法では、両プログラムが、共通するデバイスに対応付
けてそれぞれ作成されるにも関わらず、独立して作成さ
れるので、デバイスのアドレスとラダー命令および部品
との割り付けのための入力操作が別途必要である。ま
た、上記のプログラム作成方法は、設計資料を作成する
必要がある上、プログラム作成が全てユーザの入力操作
による。それゆえ、上記のプログラム作成方法には、作
業効率が低く、プログラム作成に多大の時間を要する問
題がある。また、プログラム作成がユーザの入力操作に
よることから、一方のプログラム作成後に他方のプログ
ラムを作成する際に、設計資料を参照しながらの入力操
作において誤入力の生じるおそれがある。また、このよ
うな誤入力が生じると、プログラムのデバッグ作業がよ
り増大するという問題がある。
In the above-described program creation method, both programs are created independently of each other, although they are created in association with a common device. In addition, an input operation for assignment with parts is separately required. Further, in the above-described program creation method, design materials need to be created, and the program creation is entirely performed by a user's input operation. Therefore, the above-described program creation method has a problem that the work efficiency is low and the program creation takes a lot of time. In addition, since the program creation is performed by the user's input operation, there is a possibility that an erroneous input may occur in the input operation while referring to the design data when creating the other program after creating one program. Further, when such an erroneous input occurs, there is a problem that the debugging work of the program is further increased.

【0012】このような不都合を解消するためになされ
た発明として、特開平11−175326号公報には、
ラダー図を作成するラダーエディタと画面を作成する作
画エディタとの間でラダー命令(ラダー記号)と画面に
配置されるマーク(部品など)とを対応付けるエディタ
装置が開示されている。このエディタ装置は、ラダーウ
インドウ上に表示されているラダー命令を作画ウインド
ウに、例えばドラッグ&ドロップすることによって、そ
のラダー命令に対応するマークを作画ウインドウに表示
する一方、その逆の動作を行うようにも構成されてい
る。
As an invention made to solve such a disadvantage, Japanese Patent Application Laid-Open No. H11-175326 discloses an invention.
An editor device that associates a ladder command (ladder symbol) with a mark (part or the like) arranged on a screen between a ladder editor for creating a ladder diagram and a drawing editor for creating a screen is disclosed. This editor device displays a mark corresponding to the ladder command in the drawing window by dragging and dropping the ladder command displayed on the ladder window into the drawing window, for example, and performs the reverse operation. It is also configured.

【0013】これにより、予めラダー図または画面の一
方が作成されておれば、それに基づいてユーザがドラッ
グ&ドロップなどの操作を行うのみで他方を容易に作成
することができる。
Thus, if one of the ladder diagram and the screen is created in advance, the other can be easily created only by the user performing an operation such as drag and drop based on the ladder diagram or the screen.

【0014】しかしながら、このような方法では、作成
された画面に基づいてラダー図を作成する場合、1つの
マークに対し1つのラダー命令を自動的に生成すること
ができるものの、前記のような複合部品に対しては、複
数のラダー命令を組み合わせて最適なラダー回路を自動
生成することができない。
However, in such a method, when a ladder diagram is created on the basis of the created screen, one ladder command can be automatically generated for one mark. For components, an optimal ladder circuit cannot be automatically generated by combining a plurality of ladder instructions.

【0015】本発明は、上記の事情に鑑みてなされたも
のであって、表示内容プログラム作成時に入力される複
合部品に対応する制御手順プログラムを自動的に生成す
るようにしたエディタ装置およびエディタプログラムを
記録した記録媒体を提供することを目的としている。
The present invention has been made in view of the above circumstances, and has an editor apparatus and an editor program for automatically generating a control procedure program corresponding to a composite component input when a display content program is created. The purpose of the present invention is to provide a recording medium on which is recorded.

【0016】[0016]

【課題を解決するための手段】本発明のエディタ装置
は、制御対象機器の状態を表示する表示機能部が実行す
る表示の内容を定めるための表示内容プログラムを作
する第1エディタ手段と、上記制御対象機器の動作を制
御する制御機能部が実行する制御の手順を定めるための
制御手順プログラムを作成するための第2エディタ手段
とを備えるエディタ装置において、上記の課題を解決す
るために、上記第1エディタ手段は、複数の機能を有す
る画像ブロックの個々の機能について、上記制御対象機
器のアドレスと当該制御対象機器の名称とを対応付ける
変数を介してアドレスを割り付けると共に、複数の機能
を有する画像ブロックが上記第1エディタ手段によっ
1エディタ画面に配置されると、当該画像ブロックの
各機能に関連付けられた変数を、上記制御手順プログラ
ムを構成する命令を実行順に格納するプログラムリスト
に登録することによって、上記画像ブロックに対応する
部分プログラムを生成するプログラム生成手段を備えて
いることを特徴としている。
Editor apparatus of the present invention SUMMARY OF THE INVENTION comprises a first editor means for creating the display content program for determining the contents of the display of the display function unit executes to display the status of the control target device, Controls the operation of the above controlled equipment
In the editor apparatus and a second editor means for creating the control procedure program for determining the control procedure by the control function unit executes the control, in order to solve the above problems, the first editor means Has multiple functions
For each function of the image block
The address of the device and the name of the device to be controlled
With assigned address via the variable image block having a plurality of functions depending on the first editor means
When placed on the first editor screen, the variables associated with each function of the image block, by registering the program list for storing instructions to configure the control procedure program execution order, corresponding to the image block It is characterized by comprising a program generating means for generating a partial program.

【0017】上記の構成では、画像ブロックが第1エデ
ィタ画面に配置されると、プログラム生成手段によっ
て、変数がプログラムリストに登録される。プログラム
リストには、制御手順プログラムを構成する命令が実行
順に格納されるので、アドレスおよび画像ブロックの機
能に対応する変数がプログラムリストに登録されること
で、変数を介して画像ブロックの機能に対応する命令群
が生成されて、これによって部分プログラムが構成され
る。このように、操作上では、画像ブロックを第1エデ
ィタ画面に配置するだけで、部分プログラムが生成され
るので、ユーザによる部分プログラムの設計工数を大幅
に削減することができる。
In the above arrangement, when the image block is arranged on the first editor screen, the variables are registered in the program list by the program generating means. In the program list, the instructions that make up the control procedure program are stored in the order of execution, so the variables corresponding to the address and the function of the image block are registered in the program list, and the function of the image block is supported via the variable. An instruction group to be executed is generated, and a partial program is constituted by the generated instruction group. In this manner, in operation, a partial program is generated simply by arranging an image block on the first editor screen, so that the number of design steps of the partial program by the user can be significantly reduced.

【0018】上記のエディタ装置においては、上記プロ
グラム生成手段が、上記第2エディタ手段の第2エディ
タ画面へ、上記部分プログラムを構成する命令群を視
化させることが好ましい。具体的には、制御手順プログ
ラムがラダー図である場合、部分プログラムであるラダ
ー回路が第2エディタ画面に表示されることになる。こ
のように、プログラム生成手段を構成することによっ
て、画像ブロックが第1エディタ画面に配置されるだけ
で、第2エディタ画面にラダー回路などが表示されるの
で、視覚的に分かりやすい操作環境が提供される。
In the above-mentioned editor device, the program generating means may be a second editor of the second editor means .
To another screen, it is preferable to visualizes the command group constituting the partial program. Specifically, when the control procedure program is a ladder diagram, a ladder circuit which is a partial program is displayed on the second editor screen. By configuring the program generating means in this manner, a ladder circuit or the like is displayed on the second editor screen only by arranging the image blocks on the first editor screen, so that an operation environment which is easy to understand visually is provided. Is done.

【0019】上記のエディタ装置においては、上記プロ
グラム生成手段が、生成された上記部分プログラムを個
別のファイルに保存することが好ましい。従来、制御手
順プログラムは、1つのファイルに保存されていたが、
上記のように部分プログラムを個別のファイルに保存す
ることによって、分散処理を可能にするとともに、制御
区分におけるファイル管理を容易にする。しかも、この
ようなファイル構成を採用することによって、複合部品
と部分プログラムとが容易に関連付けられる。
In the above-described editor device, it is preferable that the program generation means saves the generated partial program in a separate file. Conventionally, the control procedure program was stored in one file.
By storing the partial programs in individual files as described above, distributed processing is enabled and file management in the control section is facilitated. Moreover, by adopting such a file configuration, the composite part and the partial program can be easily associated with each other.

【0020】なお、このエディタ装置においては、上記
プログラム生成手段が、生成された上記部分プログラム
を上記制御手順プログラムのサブルーチンとして該サブ
ルーチン毎に分割して保存することが好ましい。これに
よって、制御手順プログラムにおいて繰り返し使用され
る部分プログラムがサブルーチン化された場合でも、上
記のような分散処理および容易なファイル管理を可能に
する。したがって、上記のエディタ装置と同様、制御手
順プログラムの管理の効率化ならびに表示内容プログラ
ムおよび制御手順プログラムの開発の効率化を図ること
ができる。
[0020] Incidentally, in the editor apparatus, the program generation unit, the generated the partial program is preferably stored by dividing each said subroutine as a subroutine of the control procedure program. This enables the above-described distributed processing and easy file management even when a subprogram repeatedly used in the control procedure program is converted into a subroutine. Therefore, similar to the above editor device, the control
Improvement of program management efficiency and display contents program
Improve the efficiency of program and control procedure program development
Can be.

【0021】また、このエディタ装置においては、上記
プログラム生成手段は、上記部分プログラムを生成する
際、上記画像ブロックの機能を実現するように、上記プ
ログラムリストに、上記変数に対応するラダー命令と、
当該変数に割り付けられたア ドレスとを登録してもよ
い。これにより、ラダー命令とアドレスとの組み合わせ
による命令が得られる。
In this editor device, the above
The program generating means generates the partial program
In order to realize the function of the image block,
A ladder instruction corresponding to the above variable is added to the program list,
It is registered and the address assigned to the variable
No. This allows the combination of ladder instruction and address
Is obtained.

【0022】本発明のエディタプログラムが記録された
記録媒体は、制御対象機器の状態を表示する表示機能
実行する表示の内容を定めるための表示内容プログラ
を作成する第1エディタ処理と、上記制御対象機器の
動作を制御する制御機能部が実行する制御の手順を定め
るための制御手順プログラムを作成するための第2エデ
ィタ処理とを含むエディタプログラムを記録したコンピ
ュータ読み取り可能な記録媒体であって、前記の課題を
解決するために、上記第1エディタ処理は、複数の機能
を有する画像ブロックの個々の機能について、上記制御
対象機器のアドレスと当該制御対象機器の名称とを対応
付ける変数を介してアドレスを割り付けると共に、上記
エディタプログラムが、複数の機能を有する画像ブロッ
クが上記第1エディタ処理によって第1エディタ画面に
配置されると、当該画像ブロックの各機能に関連付けら
れた変数を、上記制御手順プログラムを構成する命令を
実行順に格納するプログラムリストに登録することによ
って、上記画像ブロックに対応する部分プログラムを生
成するプログラム生成処理を含んでいることを特徴とし
ている。
A recording medium on which the editor program of the present invention is recorded has a display function unit for displaying a state of a device to be controlled.
There a first editor processing to create a display content program for determining the contents of the display to be executed, the control target device
A computer-readable recording medium recording an editor program and a second editor processing for creating the control procedure program for determining the control procedure by the control function unit executes for controlling the operation of the In order to solve the problem, the first editor process includes a plurality of functions.
The above control is performed for each function of the image block having
Correspondence between the address of the target device and the name of the control target device
With assigned address via the variable attaching, the editor program, the image block having a plurality of functions are arranged in the first editor screen depending on the first editor processing, associated with each function of the image block The program includes a program generation process for generating a partial program corresponding to the image block by registering the variables set in a program list storing instructions constituting the control procedure program in an execution order.

【0023】この記録媒体を用いると、本発明のエディ
タ装置と同様、プログラム生成処理によって、操作上で
は、画像ブロックを第1エディタ画面に配置するだけ
で、部分プログラムが生成されるので、ユーザによる部
分プログラムの設計工数を大幅に削減することができ
る。
When this recording medium is used, similar to the editor apparatus of the present invention, the partial program is generated by simply arranging the image blocks on the first editor screen by the program generation processing, so that the user The design man-hours for the partial program can be greatly reduced.

【0024】本発明のエディタプログラムが記録された
他の記録媒体は、制御対象機器の状態を表示する表示機
部が実行する表示の内容を定めるための表示内容プロ
グラムを作成する第1エディタ処理または上記制御対象
機器の動作を制御する上記制御機能部が実行する制御の
手順を定めるための制御手順プログラムを作成するため
の第2エディタ処理のいずれか一方を含むエディタプロ
グラムが記録されたコンピュータ読み取り可能な記録媒
体であって、前記の課題を解決するために、 記第1エ
ディタ処理は、複数の機能を有する画像ブロックの個々
の機能について、上記制御対象機器のアドレスと当該制
御対象機器の名称とを対応付ける変数を介してアドレス
を割り付けると共に、上記エディタプログラムが、複数
の機能を有する画像ブロックが上記第1エディタ処理に
よって第1エディタ画面に配置されると、当該画像ブロ
ックの各機能に関連付けられた変数を、上記制御手順プ
ログラムを構成する命令を実行順に格納するプログラム
リストに登録することによって、上記画像ブロックに対
応する部分プログラムを生成するプログラム生成処理を
含んでいることを特徴としている。
[0024] Another recording medium which editor program is recorded of the present invention, the first editor processing to create a display content program for determining the contents of the display of the display function unit executes to display the status of the control target device Or the above controlled object
The control function unit computer readable editor program is recorded, including one of the second editor processing to create a control procedure program for defining the control to execute steps recorded for controlling the operation of the apparatus a medium, in order to solve the above problems, the upper Symbol first d
Data processing is performed on individual image blocks with multiple functions.
For the function of
Address via a variable that associates the name of the target device
With allocating, the editor program, the image block having a plurality of functions are arranged in the first editor screen by <br/> to the first editor processing, variables associated with each function of the image block Is registered in a program list storing instructions constituting the control procedure program in the order of execution, thereby generating a partial program corresponding to the image block.

【0025】この記録媒体を用いれば、前記の記録媒体
と同様、プログラム生成処理によって、画像ブロックを
第1エディタ画面に配置するだけで、部分プログラムが
生成されるので、ユーザによる部分プログラムの設計工
数を大幅に削減することができる。さらに、この記録媒
体によれば、第1または第2エディタ処理のいずれか一
方とプログラム生成処理とを含んでいる2種類のエディ
タプログラム、すなわち第1または第2エディタプログ
ラムを提供することができる。
When this recording medium is used, similar to the above-described recording medium, a partial program is generated only by arranging an image block on the first editor screen by the program generation processing, so that the user can design the partial program by man-hours. Can be greatly reduced. Further, 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 program generation process, that is, the first or second editor program.

【0026】上記の両記録媒体においては、上記プログ
ラム生成処理が、上記第2エディタ処理の第2エディタ
画面へ、上記部分プログラムを構成する命令群を視覚化
させることが好ましい。このように構成することによっ
て、前述のエディタ装置と同様、画像ブロックが第1エ
ディタ画面に配置されるだけで、第2エディタ画面に部
分プログラムが視覚化されるので、視覚的に分かりやす
い操作環境が提供される。
In the above two recording media, the program generation processing is performed by the second editor processing of the second editor processing .
To the screen, thereby visualizes the command group constituting the partial program is preferred. With this configuration, similar to the above-described editor device, only the image blocks are arranged on the first editor screen, and the partial programs are visualized on the second editor screen. Is provided.

【0027】また、この記録媒体においては、上記プロ
グラム生成処理が、生成された上記部分プログラムを上
記制御手順プログラムのサブルーチンとして該サブルー
チン毎に分割して保存することが好ましい。これによっ
て、前述のエディタ装置と同様、部分プログラムがサブ
ルーチン化された場合でも、上記のような分散処理およ
び容易なファイル管理を可能にする。
In this recording medium, it is preferable that the program generation process divides and stores the generated partial program as a subroutine of the control procedure program for each subroutine. This enables the above-described distributed processing and easy file management even when the partial program is converted into a subroutine, similarly to the above-described editor device.

【0028】なお、上記の両記録媒体においては、上記
プログラム生成処理が、生成された上記部分プログラム
を個別のファイルに保存することが好ましい。このよう
に構成することによって、前述のエディタ装置と同様、
分散処理を可能にするとともに、制御区分におけるファ
イル管理を容易にする。しかも、このようなファイル構
成を採用することによって、複合部品と部分プログラム
とが容易に関連付けられる。したがって、上記の記録媒
体と同様、制御手順プログラムの管理の効率化ならびに
表示内容プログラムおよび制御手順プログラムの開発の
効率化を図ることができる。
[0028] In the above two recording media, the program generation processing, it is preferable to store the generated the partial program in a separate file. With this configuration, similar to the above-described editor device,
It enables distributed processing and facilitates file management in the control section. Moreover, by adopting such a file configuration, the composite part and the partial program can be easily associated with each other. Therefore, the above recording medium
As with the body, the efficiency of management of the control procedure program and
Development of display contents program and control procedure program
Efficiency can be improved.

【0029】また、上記の両記録媒体においては、上記
プログラム生成処理は、上記部分プログラムを生成する
際、上記画像ブロックの機能を実現するように、上記プ
ログラムリストに、上記変数に対応するラダー命令と、
当該変数に割り付けられたアドレスとを登録してもよ
い。これにより、前述のエディタ装置と同様、ラダー命
令とアドレスとの組み合わせによる命令が得られる。
In the above two recording media,
The program generation process generates the partial program
In order to realize the function of the image block,
A ladder instruction corresponding to the above variable is added to the program list,
The address assigned to the variable may be registered.
No. As a result, the ladder command is executed in the same way as the editor device described above.
An instruction is obtained by a combination of the instruction and the address.

【0030】[0030]

【発明の実施の形態】本発明の実施の一形態について図
1ないし図16に基づいて説明すれば、以下の通りであ
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to FIGS.

【0031】本実施の形態に係る表示/制御システム
は、様々な構成が考えられるが、ここでは、第1ないし
第3の構成について説明する。
Various configurations are conceivable for the display / control system according to the present embodiment. Here, the first to third configurations will be described.

【0032】まず、図1に示す第1の表示/制御システ
ムは、プログラマブル表示器1およびPLC2を含んで
いる。
First, the first display / control system shown in FIG. 1 includes a programmable display 1 and a PLC 2.

【0033】表示機能部としてのプログラマブル表示器
1は、CPU11、メモリ部12、VRAM13、ディ
スプレイ14、グラフィックコントローラ15、タッチ
パネル16、タッチパネルコントローラ17、メンテナ
ンスポート18および通信コントローラ19を備えてい
る。
The programmable display 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.

【0034】メモリ部12は、DRAM12a、FEP
ROM(Flash Erasable and Programmable ROM)12b
等のメモリを含んでいる。DRAM12aは、主に、表
示制御などの演算処理時の作業用に用いられる他、PL
C2との間でやり取りされるデータの一時的な記憶に用
いられる。FEPROM12bは、書き替え可能な読み
出し専用のフラッシュメモリであり、一般のパーソナル
コンピュータにおけるハードディスクドライブの役割を
果たす。フラッシュメモリは、可動部を持たず、かつ衝
撃に強いので、劣悪な周囲環境でも安定して動作する。
The memory unit 12 includes a DRAM 12a, an FEP
ROM (Flash Erasable and Programmable ROM) 12b
Etc. memory. The DRAM 12a is mainly used for operations at the time of arithmetic processing such as display control.
Used for temporary storage of data exchanged with C2. The FEPROM 12b is a rewritable read-only flash memory and plays a role of a hard disk drive in a general personal computer. The flash memory has no moving parts and is resistant to impact, so that it operates stably even in a poor surrounding environment.

【0035】また、上記のFEPROM12bは、図2
に示すように、表示制御システムプログラムと、通信プ
ロトコルと、ユーザ画面とをそれぞれ格納するエリアを
有している。表示制御システムプログラムは、画像表示
制御を行うための基本機能を実現するためのプログラム
である。通信プロトコルは、PLC2との通信処理で用
いられるプロトコルであり、PLC2の機種(メーカ)
に応じて固有に定められている。ユーザ画面は、後述す
る作画エディタ32bによって作成されて、FEPRO
M12bにダウンロードされている。このユーザ画面
は、ディスプレイ14に表示すべきベース画面や画像ブ
ロックとしての部品のデータおよび各部品に付与された
後述する処理指示語W(図3参照)などを含んでおり、
表示内容プログラムを構成している。
Further, the above-mentioned FEPROM 12b is similar to that shown in FIG.
As shown in (1), the display control system program has an area for storing a display control system program, a communication protocol, and a user screen. 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 a communication process with the PLC 2, and a model (manufacturer) of the PLC 2
It is uniquely determined according to. The user screen is created by a drawing editor 32b to be described later, and
Downloaded to M12b. The user screen includes a base screen to be displayed on the display 14, data of parts as image blocks, and a processing instruction word W (see FIG. 3) given to each part, which will be described later.
A display content program is configured.

【0036】上記の部品は、スイッチ、ランプ、各種表
示器などの画像化された基本的な部品として予め用意さ
れている。また、部品としては、スイッチや数値表示器
などの動的変化を画面上の任意の位置で表現させるため
に、所望の位置に設定された矩形エリアに所望の動画機
能が設定された動画機能部(いわゆるタグ)も含まれ
る。
The above-described components are prepared in advance as imaged basic components such as switches, lamps, and various display devices. Also, as a component, a moving image function 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 of a switch, a numerical display, or the like at an arbitrary position on the screen. (So-called tags) are also included.

【0037】図3に示すように、画面データに含まれる
処理指示語Wは、ベース画面上で実行されるべき事象毎
に作成されている。この処理指示語Wは、基本的には、
表示制御動作を実行すべきベース画面のファイル番号F
と、このベース画面上で実行されるべき動作内容を特定
する事象名Tと、各実行事象毎に参照される1または複
数のデータからなる参照情報Iとを一組として備えてい
る。
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. This processing instruction word W is basically
File number F of base screen on which display control operation is to be executed
, An event name T for specifying an operation content to be executed on the base screen, and reference information I including one or a plurality of data referred to for each execution event.

【0038】CPU11は、前述のFEPROM12b
に格納された表示制御システムプログラムにしたがっ
て、プログラマブル表示器1の各部の動作を制御する。
また、CPU11は、後述するメンテナンスポート18
を介しての後述するコンピュータ装置3との通信を制御
する機能を有しており、作画エディタ32bからの画面
データを受け取るとFEPROM12bに格納したり、
ラダーエディタ32aからのラダープログラム(ユーザ
プログラム)を受け取るとPLC2に転送したりする。
The CPU 11 is connected to the FEPROM 12b
The operation of each unit of the programmable display 1 is controlled in accordance with the display control system program stored in.
The CPU 11 also includes a maintenance port 18 described later.
And has a function of controlling communication with a computer device 3 to be described later through the FAX. When receiving screen data from the drawing editor 32b, the screen data is stored in the FEPROM 12b,
When a ladder program (user program) is received from the ladder editor 32a, it is transferred to the PLC 2.

【0039】VRAM13は、ディスプレイ14に表示
される画面のイメージを一時的に保持するメモリであ
り、FEPROM12bからの画面データのイメージを
水平方向に表示される順にドットデータとして格納して
いる。
The VRAM 13 is a memory for temporarily storing the 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 displayed in the horizontal direction.

【0040】ディスプレイ14は、液晶パネルやELパ
ネルのような平板型表示素子によって構成されている。
グラフィックコントローラ15は、VRAM13に展開
された画面のイメージを、ディスプレイ14に描画する
ドライバソフトウェアである。タッチパネル16は、デ
ィスプレイ14の表示画面上で入力を行うために設けら
れており、アナログ抵抗膜式タッチパネルなどが好適で
ある。タッチパネルコントローラ17は、タッチパネル
16の出力電圧を入力位置情報に変換してCPU11に
出力する。
The display 14 is composed of a flat display element such as a liquid crystal panel or an EL panel.
The graphic controller 15 is driver software for drawing an image of a screen developed in the VRAM 13 on the display 14. The touch panel 16 is provided for performing input on the display screen of the display 14, and is preferably an analog resistive touch panel or the like. The touch panel controller 17 converts the output voltage of the touch panel 16 into input position information and outputs the input position information to the CPU 11.

【0041】メンテナンスポート18は、後述するコン
ピュータ装置3との間の通信を行うための通信ポートで
ある。一方、通信コントローラ19は、通信ケーブル
(例えばRS−232C)を介してPLC2との間で入
出力機器4…の制御や監視に関するデータなどの転送や
PLC2の出力データの取り込みを制御するインターフ
ェースである。
The maintenance port 18 is a communication port for performing communication with the computer device 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 like and the capture of output data of the PLC 2 with the PLC 2 via a communication cable (for example, RS-232C). .

【0042】制御機能部としてのPLC2は、内蔵する
CPU部によって、後述する制御機能プログラムにした
がい、ラダーエディタ32aで作成されたユーザプログ
ラム(制御手順プログラム)で定められた手順で、入出
力機器4…の動作を制御する。
The PLC 2 serving as a control function unit uses the built-in CPU unit to execute a procedure defined by a user program (control procedure program) created by the ladder editor 32a in accordance with a control function program described later. The operation of ... is controlled.

【0043】PLC2内のメモリには、アドレスを指定
することにより、ワードデバイスおよびビットデバイス
が格納場所を特定可能に設定されている。ワードデバイ
スは、入出力されるデータが数値のようなワードデータ
に対して設定され、ビットデバイスは、オン・オフ状態
のようなビットデータに対して設定される。このような
設定により、PLC2内の任意のワードデバイスまたは
ビットデバイスをアクセスするだけで入出力機器4…を
制御し、またはその動作状態に関する情報を個別に取り
出すことができる。
The memory in the PLC 2 is set so that a word device and a bit device can specify a storage location by specifying an address. In the word device, input / output data is set for word data such as a numerical value, and for the bit device, bit data such as an on / off state is set. 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 extract information on the operation state.

【0044】プログラマブル表示器1は、上記のビット
デバイスまたはワードデバイスが示す状態情報のうち、
必要な情報を適時にメモリ部12に読み込む一方、上記
の処理指示語Wを繰り返し読み出して各処理指示語Wの
事象名Tで特定される内容の動作をPLC2側の状態情
報を参照しながら実行する。これによって、ビットデバ
イスまたはワードデバイスの状態の変化に応じて変化す
る表示動作が実行される。
The programmable display 1 includes, among the status information indicated by the bit device or the word device,
While the necessary information is read into the memory unit 12 in a timely manner, the processing instruction word W is repeatedly read and the operation of the content specified by the event name T of each processing instruction word W is executed while referring to the state information on the PLC 2 side. I do. Thus, a display operation that changes according to a change in the state of the bit device or the word device is performed.

【0045】プログラマブル表示器1の表示動作は、図
4に示すフローチャートの手順にしたがって行われる。
The display operation of the programmable display 1 is performed according to the procedure of the flowchart shown in FIG.

【0046】まず、入出力機器4…の制御が可能なオン
ラインモード、またはプログラマブル表示器1のみを動
作させるオフラインモードのいずれか一方を選択する
(S1)。オフラインモードが選択された場合(N
O)、プログラマブル表示器1において、設定処理、診
断処理などの各種の処理を行い(S6)、処理をS1に
戻す。
First, either the online mode in which the input / output devices 4 can be controlled or the offline mode in which only the programmable display 1 is operated is selected (S1). When the offline mode is selected (N
O) In the programmable display 1, various processes such as a setting process and a diagnostic process are performed (S6), and the process returns to S1.

【0047】S1でオンラインモードが選択された場合
(YES)、起動処理としてプログラマブル表示器1の
メモリ部12に設定されている前記の処理指示語Wで引
用されているPLC2側の状態情報がプログラマブル表
示器1側に取り出される。具体的には、メモリ部12に
格納されている処理指示語W…のうち、現在表示されて
いるベース画面に関係する処理指示語Wに含まれる情報
から、PLC2に設定されたワードデバイスおよびビッ
トデバイスのアドレスが抽出される。そして、そのアド
レスに基づいてPLC2のメモリに直接アクセスするこ
とによって、アドレス指定された状態情報がメモリ部1
2に展開され、操作画面上に表示される。オンラインモ
ードでは、プログラマブル表示器1に表示された操作パ
ネル画面による入力操作があったか否かを判断する(S
2)。ここで、入力操作があった場合は、入力されたデ
ータに基づいて所定の演算処理を実行し(S3)、さら
にデータ通信処理を行う(S4)。
When the online mode is selected in S1 (YES), the status information on the PLC 2 side referred to by the processing instruction word W set in the memory unit 12 of the programmable display 1 as a start-up process is programmable. It is taken out to the display 1 side. Specifically, among the processing instruction words W stored in the memory unit 12, from the information included in the processing instruction word W related to the currently displayed base screen, the word device and bit set in the PLC 2 are determined. The device address is extracted. Then, by directly accessing the memory of the PLC 2 based on the address, the addressed state information is stored in the memory unit 1.
2 and displayed on the operation screen. In the online mode, it is determined whether or not an input operation has been performed on the operation panel screen displayed on the programmable display 1 (S).
2). Here, if there is an input operation, a predetermined calculation process is performed based on the input data (S3), and further a data communication process is performed (S4).

【0048】次いで、各事象の表示処理を実行する(S
5)。このとき、メモリ部12に格納されている処理指
示語Wのうち、通信処理によって抽出された状態情報に
基づく表示動作が行われる。
Next, display processing of each event is executed (S
5). At this time, a display operation is performed based on the state information extracted by the communication processing from the processing instruction words W stored in the memory unit 12.

【0049】続いて、コンピュータ装置3について説明
する。
Next, the computer device 3 will be described.

【0050】図1に示すように、コンピュータ装置3
は、パーソナルコンピュータなどの汎用コンピュータに
よって構成されている。このコンピュータ装置3は、C
PU31、エディタ部32、データファイル33、メモ
リ部34、ディスプレイ35、入力装置36、外部記憶
装置37およびインターフェース部(図中、I/F)3
8を備えている。
[0050] As shown in FIG.
Is constituted by a general-purpose computer such as a personal computer. This computer device 3 is C
PU 31, editor unit 32, data file 33, memory unit 34, display 35, input device 36, external storage device 37, and interface unit (I / F in the figure) 3
8 is provided.

【0051】CPU31は、コンピュータ装置3にイン
ストールされているOS(オペレーティングシステム)
上でエディタ部32を含むアプリケーションソフトウェ
アを動作させる際の各部の制御や演算処理を行う。
The CPU 31 is an operating system (OS) installed in the computer device 3.
The control and calculation processing of each unit when operating the application software including the editor unit 32 are performed.

【0052】メモリ部34は、RAM、ROMなどのメ
モリを備えており、固定データの格納、一時的なデータ
記憶、CPU31の演算処理時における作業エリアの提
供といった役割を果たしている。
The memory section 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.

【0053】エディタ部32は、ラダーエディタ32
a、作画エディタ32bおよびラダー回路生成部32c
を含んでいる。
The editor section 32 is a ladder editor 32
a, drawing editor 32b and ladder circuit generation unit 32c
Contains.

【0054】第2エディタ手段としてのラダーエディタ
32aは、入出力機器4…が所望のシーケンスにしたが
って動作するようにPLC2の制御手順を定めるユーザ
プログラムを作成するためのプログラミングソフトウェ
アであり、ディスプレイ35の表示画面35a(例えば
図12(a)参照)上で入出力機器4の動作に対応する
ラダー記号(ラダー命令)を配置してラダー図を作成で
きるように構成されている。このラダーエディタ32a
においては、例えば、国際基準IECに準拠した前述の
プログラミング言語が用いられる。
The ladder editor 32a as the second editor means is programming software for creating a user program for defining the control procedure of the PLC 2 so that the input / output devices 4 operate in accordance with a desired sequence. A ladder diagram can be created by arranging ladder symbols (ladder commands) corresponding to the operation of the input / output device 4 on the display screen 35a (for example, see FIG. 12A). This ladder editor 32a
For example, the above-mentioned programming language conforming to the international standard IEC is used.

【0055】また、ラダーエディタ32aは、PLC2
の入力端子および出力端子のそれぞれに付与されている
入力番号および出力番号と、各入出力端子に接続される
入出力機器4の名称(デバイス名)との対応付けを変数
を介して入出力番号の割り付け(I/Oアサイン)とし
て行う。この割り付けの結果は、後述するラダーファイ
ル33aに保存される。
The ladder editor 32a is a PLC2.
The input number and output number assigned to each of the input terminal and the output terminal are associated with the name (device name) of the input / output device 4 connected to each input / output terminal through input / output numbers via variables. (I / O assignment). The result of this allocation is stored in a ladder file 33a described later.

【0056】割り付けを行う際、メモリ部34には、入
力番号および出力番号をそれぞれアドレスとして、各ア
ドレスに対応するデバイス名が格納される。従来、この
ような割り付けは、PLCのメーカによって異なってお
り、絶対アドレスで設定されるので、メーカに応じたメ
モリテーブルを用意する必要がある。ただし、IECに
準拠した本ラダーエディタ32aは、上記の変数(自由
変数)によってユーザが入出力を決定できるので、上記
のようなメモリテーブルは不要である。また、一度決定
した割り付けも、後に変更することができる。
At the time of allocation, the memory 34 stores a device name corresponding to each address, with the input number and the output number as addresses. Conventionally, such allocation differs depending on the manufacturer of the PLC, and is set by an absolute address. Therefore, it is necessary to prepare a memory table corresponding to the manufacturer. However, in the ladder editor 32a conforming to the IEC, the user can determine the input / output based on the above-mentioned variables (free variables), so that the memory table as described above is unnecessary. Also, the assignment once determined can be changed later.

【0057】ラダーエディタ32aで入力されたラダー
命令は、アドレスを割り付けた状態で記憶するためにメ
モリ部34に形成されるラダーリスト(プログラムリス
ト)に一時的に登録される。このようなラダー命令の組
み合わせによって作成されたユーザプログラムは、プロ
グラマブル表示器1を介して(または直接)PLC2に
転送され、PLC2内のメモリにダウンロードされる。
The ladder command input by the ladder editor 32a is temporarily registered in a ladder list (program list) formed in the memory unit 34 in order to store the ladder command in a state where addresses are allocated. The user program created by such a combination of the ladder instructions is transferred to the PLC 2 via the programmable display 1 (or directly), and downloaded to the memory in the PLC 2.

【0058】第1エディタ手段としての作画エディタ3
2bは、プログラマブル表示器1が、入出力機器4…の
稼働状況や作業指示のような管理のための各種のモニ
タ、機器に対する設定値を入力する端末としての機能を
備えるように、ディスプレイ14に表示させる画面を作
成する画面作成ソフトウェアである。
Drawing editor 3 as first editor means
2b, the display 14 is provided so that the programmable display 1 has a function as a terminal for inputting set values for various monitors and devices for management such as operation status of the input / output devices 4 and work instructions. Screen creation software for creating screens to be displayed.

【0059】一般に、作画エディタ32bは、ユーザ独
自の画面(ユーザ画面)を作成できるように、スイッ
チ、ランプ、テンキー、各種表示器(例えば、数値表示
器、メータ表示器およびグラフ表示器)などの部品、描
画機能、テキスト入力機能などを備えている。部品とし
ては、単一の機能を有する単一部品だけでなく、複数の
機能を有する、複合スイッチ、カウンタ、タイマといっ
た複合部品が用意されている。このような複合は、単一
部品と同様、ドラッグ&ドロップなどの操作によってベ
ース画面の所望の位置に配置できるようにライブラリ形
式で登録されている。
In general, the drawing editor 32b includes a switch, a lamp, a numeric keypad, various displays (for example, a numerical display, a meter display, and a graph display) so that a user's own screen (user screen) can be created. It has parts, drawing function, text input function, etc. As the components, not only a single component having a single function but also a composite component having a plurality of functions, such as a composite switch, a counter, and a timer, are prepared. Such a composite is registered in a library format so that it can be arranged at a desired position on the base screen by an operation such as drag and drop like a single component.

【0060】また、作画エディタ32bは、作成された
画面に配置された部品の各入出力機器4に対する前記の
入出力番号(アドレス)を前記の変数を介して割り付け
る。
The drawing editor 32b allocates the input / output numbers (addresses) of the components arranged on the created screen to the input / output devices 4 via the variables.

【0061】上記の作画エディタ32bによって作成さ
れたユーザ画面は、後述の画面ファイル33bに格納さ
れる。このユーザ画面は、必要に応じてインターフェー
ス部38を介してプログラマブル表示器1に転送され、
FEPROM12bにダウンロードされる。
The user screen created by the screen editor 32b is stored in a screen file 33b described later. This user screen is transferred to the programmable display 1 via the interface unit 38 as necessary,
It is downloaded to the FEPROM 12b.

【0062】プログラム生成手段としてのラダー回路生
成部32cは、作画エディタ32bを用いたユーザの操
作によって、後述する作画ウインドウ32b1 (図12
(a)参照)に選択された部品が配置されると、その部
品に応じたラダー回路をラダーエディタ32aに自動的
に生成させる。ラダー回路生成部32cは、具体的に
は、作画エディタ32bで入力された上記の変数を、ラ
ダーエディタ32aで入力されたラダー命令と対応させ
て前記のラダーリストに登録するとともに、予め変数に
関連付けられたラダー命令群を生成し、この命令群をラ
ダーエディタ32aに与えて、後述するラダーウインド
ウ32a1 (図12(a)参照)に表示させる。変数と
ラダー命令との関連付けは、ユーザが行えるようにして
もよいし、エディタ部32をソフトウェアとして供給す
る供給者によって予め設定されていてもよい。
A ladder circuit generation unit 32c as a program generation means operates a drawing window 32b 1 (FIG. 12) described later by a user operation using a drawing editor 32b.
When the component selected in (a) is placed, the ladder editor 32a automatically generates a ladder circuit corresponding to the component. Specifically, the ladder circuit generation unit 32c registers the above variables input by the drawing editor 32b in the ladder list in association with the ladder instructions input by the ladder editor 32a, and associates the variables with the variables in advance. The generated ladder instruction group is generated, and this instruction group is given to the ladder editor 32a to be displayed on a ladder window 32a 1 (see FIG. 12A) described later. The association between the variable and the ladder instruction may be performed by the user, or may be set in advance by a supplier that supplies the editor unit 32 as software.

【0063】なお、上記のラダー回路生成部32cは、
ラダーエディタ32aまたは作画エディタ32bのいず
れか一方の一機能または両エディタ32a・32bに共
通の一機能としてそれぞれに含まれていてもよい。
Note that the ladder circuit generation unit 32c
It may be included as one function of either the ladder editor 32a or the drawing editor 32b or one function common to both editors 32a and 32b.

【0064】コンピュータ装置3は、エディタ部32を
備えることによってユーザプログラムおよびユーザ画面
の作成および編集を行うためのエディタ装置として機能
する。
The computer device 3 functions as an editor device for creating and editing a user program and a user screen by including the editor unit 32.

【0065】エディタ部32は、パッケージソフトウェ
アまたはオーダーメイドソフトウェアとしてプログラム
メディアの形態で提供可能なソフトウェアであって、例
えば、コンピュータ装置3と分離可能な記録媒体5に記
録されている。そして、エディタ部32は、記録媒体5
からコンピュータ装置3にインストールされることによ
ってエディタ機能を発揮することができる。
The editor section 32 is software that can be provided in the form of a program medium as package software or custom software, and is recorded, for example, on the recording medium 5 separable from the computer device 3. Then, the editor unit 32 stores the recording medium 5
When installed in the computer device 3, the editor function can be exhibited.

【0066】なお、エディタ部32は、単一の記録媒体
5に記録されていてもよいが、ラダーエディタ32aと
作画エディタ32bとがそれぞれ別個の記録媒体に記録
されていてもよい。
The editor section 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】上記のプログラムメディアは、磁気テープ
やカセットテープなどのテープ系、フロッピディスクや
ハードディスクなどの磁気ディスク系、CD−ROM、
MO、MD、DVDなどの光ディスク系、ICカード
(メモリカードを含む)、光カードなどのカード系が好
適である。その他、上記のプログラムメディアは、マス
クROM、EPROM、EEPROM、フラッシュRO
Mなどによる半導体メモリを含めた固定的にプログラム
を担持する媒体であってもよい。
The above-mentioned program media includes tape systems such as magnetic tapes and cassette tapes, magnetic disk systems such as floppy disks and hard disks, CD-ROMs,
Optical disks such as MO, MD, and DVD, card systems such as IC cards (including memory cards), and optical cards are suitable. In addition, the above program media include mask ROM, EPROM, EEPROM, flash RO
It may be a medium that fixedly carries a program including a semiconductor memory such as M.

【0068】また、コンピュータ装置3は、インターネ
ットを含む通信ネットワークと接続可能であることか
ら、通信ネットワークからプログラムをダウンロードす
るように流動的にプログラムを担持する媒体であっても
よい。ただし、このように通信ネットワークからプログ
ラムをダウンロードする場合には、そのダウンロード用
プログラムは予めコンピュータ装置3に格納されるか、
あるいは別な記録媒体からインストールされるものであ
ってもよい。
Since the computer device 3 can be connected to a communication network including the Internet, the computer device 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 as described above, the download program is stored in the computer device 3 in advance, or
Alternatively, it may be installed from another recording medium.

【0069】データファイル33は、ラダーファイル3
3aおよび作画ファイル33bを含んでいる。
The data file 33 is a ladder file 3
3a and the drawing file 33b.

【0070】データファイル33においては、例えば、
図5に示すように、ユーザプログラムがラダーファイル
33aに格納され、図6に示すように、ユーザ画面が画
面ファイル33bに格納される。
In the data file 33, for example,
As shown in FIG. 5, the user program is stored in the ladder file 33a, and as shown in FIG. 6, the user screen is stored in the screen file 33b.

【0071】ラダーファイル33aは、コマンドファイ
ル部33a1 および変数データファイル部33a2 から
構成されている。コマンドファイル部33a1 は、入力
されたラダー記号に対応するラダー命令およびオペラン
ドを格納し、変数データファイル部33a2 は、コマン
ドファイル部33a1 に対応するように、上記のラダー
命令について、デバイスの変数およびアドレスを格納し
ている。
[0071] Ladder file 33a is composed of a command file section 33a 1 and the variable data file section 33a 2. Command file section 33a 1 stores ladder instructions and operands corresponding to the ladder symbol is entered, the variable data file section 33a 2 so as to correspond to the command file section 33a 1, the ladder instructions above, the device Stores variables and addresses.

【0072】画面ファイル33bは、図形データファイ
ル部33b1 および変数データファイル部33b2 から
構成されている。図形データファイル部33b1 は、部
品、各種の図形(円、ライン、四角形)、テキスト(文
字列)などについてのデータを格納している。変数デー
タファイル部33b2 は、図形データファイル部33b
1 に対応するように、入力された部品について、デバイ
スの変数およびアドレスを格納している。
[0072] screen file 33b is configured from the graphic data file section 33b 1 and the variable data file section 33b 2. Graphic data file section 33b 1 is, parts, various shapes (circle, line, rectangle), and stores the data for such as text (string). The variable data file part 33b 2
The device variables and addresses of the input components are stored so as to correspond to 1 .

【0073】ラダーファイル33aおよび画面ファイル
33bが、変数データファイル部33a2 ・33b2
よって互いに関連付けられているので、第1ないし第3
の表示/制御システムにおける表示動作および制御動作
は互いに関連する。
Since the ladder file 33a and the screen file 33b are associated with each other by the variable data file sections 33a 2 and 33b 2 , the first to third
The display operation and the control operation in the display / control system of the present invention are related to each other.

【0074】ラダーファイル33aは、特に、画面ファ
イル33bに格納されている複合部品についてのデータ
に個々に対応するラダー回路についてのデータを格納す
る(例えば“.wll”という拡張子を持った)サブファイ
ルを複合部品毎に有している。具体的には、図7(a)
に示すように、複合部品がカウンタである場合は、カウ
ンタについてのユーザ画面のデータD1 に対して例えば
“TEST1.wll ”というファイル名を有するサブファイル
1 がラダー回路生成部32cによってラダーファイル
33aに生成される。また、図7(b)に示すように、
複合部品が複合スイッチである場合は、複合スイッチに
ついてのユーザ画面のデータD2 に対して例えば“TEST
2.wll ”というファイル名を有するサブファイルF2
ラダー回路生成部32cによってラダーファイル33a
に生成される。
The ladder file 33a stores, in particular, data on a ladder circuit individually corresponding to the data on the composite parts stored in the screen file 33b (for example, a sub-file having an extension of “.wll”). A file is provided for each composite part. Specifically, FIG.
As shown, when the composite part is a counter, rudder file subfile F 1 is the ladder circuit generating section 32c having a file name of, for example, "TEST1.wll" to the data D 1 of the user screen of counter 33a. Also, as shown in FIG.
If the composite part is a composite switch, the data D, for example with respect to the 2 "TEST user screen for composite switch
Ladder file 33a subfile F 2 is the ladder circuit generating section 32c having a file name 2.Wll "
Is generated.

【0075】ディスプレイ35は、CRT、LCDなど
によって構成されるが、パネルコンピュータであるコン
ピュータ装置3においては、液晶パネルやELパネルの
ような平板型表示素子によって構成される。入力装置3
6は、キーボード、マウスなどの入力操作を行うための
装置であり、特に、GUI(Graphical User Interface)
環境上で動作するエディタ部32での入力作業にはマウ
スなどの装置が適している。外部記憶装置37は、ハー
ドディスク装置などの磁気ディスクドライブ、CD−R
OMドライブなどの光ディスクドライブといった装置で
あり、少なくとも、前記の記録媒体5に記録されたプロ
グラムなどの情報を読み出すことができる装置を含んで
いる。インターフェース部38は、プログラマブル表示
器1との間でデータ通信を行う入出力部である。ラダー
エディタ32aで作成されたユーザプログラムおよび作
画エディタ32bで作成されたユーザ画面は、このイン
ターフェース部38を介してプログラマブル表示器1に
転送される。
The display 35 is constituted by a CRT, an LCD or the like. In the computer device 3 which is a panel computer, the display 35 is constituted by a flat display element such as a liquid crystal panel or an EL panel. Input device 3
Reference numeral 6 denotes a device for performing input operations such as a keyboard and a mouse, and in particular, a GUI (Graphical User Interface).
A device such as a mouse is suitable for input work in the editor unit 32 operating on the environment. The external storage device 37 is a magnetic disk drive such as a hard disk device, a CD-R
It is a device such as an optical disk drive such as an OM drive, and includes at least a device capable of reading information such as a program recorded on the recording medium 5. The interface unit 38 is an input / output unit that performs data communication with the programmable display 1. The user program created by the ladder editor 32a and the user screen created by the drawing editor 32b are transferred to the programmable display 1 via the interface unit 38.

【0076】続いて、第2の表示/制御システムについ
て説明する。
Next, the second display / control system will be described.

【0077】図8に示す第2の表示/制御システムは、
前述の第1の表示/制御システムと同様、プログラマブ
ル表示器1およびPLC2を含んでいるが、ここでのプ
ログラマブル表示器1は、さらにPLC機能を備えてお
り、入出力機器4…を直接制御するように構成されてい
る。このため、プログラマブル表示器1は、メモリ部1
2にSRAM12cを備えるとともに、前述の通信コン
トローラ19に加えて入出力ユニット(図中、I/Oユ
ニット)20およびI/O制御インターフェース21を
備えている。
The second display / control system shown in FIG.
Like the first display / control system described above, it includes a programmable display 1 and a PLC 2, but the programmable display 1 further has a PLC function and directly controls the input / output devices 4. It is configured as follows. For this reason, the programmable display 1 includes the memory 1
2 has an SRAM 12c 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.

【0078】SRAM12cは、ラダーエディタ32a
によって入力された変数を格納するエリアを有してい
る。また、FEPROM12bは、PLC機能を備える
ために、図9に示すように、表示制御システムプログラ
ムと、通信プロトコルと、ユーザ画面とをそれぞれ格納
するエリアに加えて、制御機能プログラムとユーザプロ
グラムとをそれぞれ格納するエリアを有している。制御
機能プログラムは、シーケンス制御の基本機能を実現す
るためのプログラムである。
The SRAM 12c has a ladder editor 32a.
Has an area for storing variables input by the user. The FEPROM 12b includes a display control system program, a communication protocol, and an area for storing a user screen, as well as a control function program and a user program. It has an area to store. The control function program is a program for realizing basic functions of sequence control.

【0079】入出力ユニット20は、入出力機器4…が
接続可能となるように、多数の入出力端子、入出力回路
などを備えている。I/O制御インターフェース21
は、CPU11と入出力ユニット20との間の信号の授
受を仲介するインターフェース回路であって、入出力メ
モリ、D/A変換器、A/D変換器などを備えている。
The input / output unit 20 has a large number of input / output terminals and input / output circuits so that the input / output devices 4 can be connected. I / O control interface 21
Is an interface circuit that mediates transmission and 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.

【0080】引き続き、第3の表示/制御システムにつ
いて説明する。
Next, the third display / control system will be described.

【0081】図10に示す第3表示/制御システムは、
ソフトウェアで動作するいわゆるオープンコントローラ
(ソフトウェアPLC)を中心として構成されている。
The third display / control system shown in FIG.
The configuration is centered on a so-called open controller (software PLC) that operates with software.

【0082】オープンコントローラは、コンピュータ装
置3によって構成されており、入出力機器4…を接続す
るために、前述の第1の表示/制御システムにおけるコ
ンピュータ装置3のインターフェース部38の代わりに
入出力ユニット(図中、I/Oユニット)39およびI
/O制御インターフェース40を備えている。
The open controller is constituted by the computer device 3 and connects the input / output devices 4... Instead of the interface unit 38 of the computer device 3 in the first display / control system described above. (I / O unit in the figure) 39 and I
An I / O control interface 40 is provided.

【0083】入出力ユニット39は、入出力機器4…が
接続可能となるように、多数の入出力端子、入出力回路
などを備えている。このような入出力ユニット39は、
I/Oボードとしてコンピュータ装置3内に実装される
が、リモートI/Oとしてコンピュータ装置3の外部に
独立して設けられてもよい。
The input / output unit 39 has 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
The I / O board is mounted in the computer device 3, but may be independently provided outside the computer device 3 as a remote I / O.

【0084】I/O制御インターフェース40は、CP
U31と入出力ユニット39との間の信号の授受を仲介
するインターフェース回路であって、入出力メモリ、D
/A変換器、A/D変換器などを備えている。このI/
O制御インターフェース40は、入出力機器4…との間
で入出力されるデジタル信号またはアナログ信号をCP
U31とやり取りするようになっている。
The I / O control interface 40 is connected to the CP
An interface circuit that mediates the transmission and reception of signals between the U31 and the input / output unit 39;
/ A converter, A / D converter, and the like. This I /
The O control interface 40 converts digital signals or analog signals input / output to / from the input / output
It is designed to interact with U31.

【0085】また、コンピュータ装置3は、オープンコ
ントローラとして機能するように、インターフェースユ
ニット(図中、I/Fユニット)41を備えている。イ
ンターフェースユニット41は、イーサネット(登録商
標)などの汎用の通信プロトコルを用いるオープンネッ
トワーク8に対応した入出力部であり、オープンネット
ワーク8に接続されている。これによって、コンピュー
タ装置3は、オープンネットワーク8を介して他のコン
ピュータ装置、プログラマブル表示器、PLCなどと接
続される。
The computer device 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. Thereby, the computer device 3 is connected to another computer device, a programmable display, a PLC, and the like via the open network 8.

【0086】メモリ部34は、前述のSRAM12cと
同様、図9に示すように、表示制御システムプログラム
と、通信プロトコルと、画面データと、制御機能プログ
ラムと、ユーザプログラムとをそれぞれ格納するエリア
を有している。
As shown in FIG. 9, the memory section 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 in the above-described SRAM 12c. are doing.

【0087】このように構成されるコンピュータ装置3
は、入出力機器4…が配備されたシステムの運転時(オ
ンライン状態)では、作成された画面や現場の様子をデ
ィスプレイ35に表示させることによってターゲットシ
ステムの運転状況を監視するモニタとして機能するとと
もに、ターゲットシステムにおける入出力機器4…の制
御を行う。このとき、コンピュータ装置3は、ラダーエ
ディタ32aで作成され、データファイル33に格納さ
れているユーザプログラムを、制御機能プログラムにし
たがって実行する。一方、コンピュータ装置3は、ター
ゲットシステムの非運転時(オフライン状態)におい
て、ラダーエディタ32aまたは作画エディタ32bを
起動することによってユーザプログラムまたはユーザ画
面を作成するためのエディタ装置として機能する。
The computer device 3 configured as described above
When the system in which the input / output devices 4 are arranged is operated (online state), the created screen and the scene of the site are displayed on the display 35 to function as a monitor for monitoring the operation state of the target system. , In the target system. At this time, the computer device 3 executes the user program created by the ladder editor 32a and stored in the data file 33 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 operating (off-line state).

【0088】第1および第2の表示/制御システムで
は、ユーザプログラムおよびユーザ画面が、一旦データ
ファイル33に格納された後、それぞれPLC2および
プログラマブル表示器1にダウンロードされ、メモリに
格納される。第2の表示/制御システムでは、あるい
は、ユーザプログラムおよびユーザ画面が、一旦データ
ファイル33に格納された後、プログラマブル表示器1
にダウンロードされ、メモリ部12に格納される。第3
の表示/制御システムでは、ユーザプログラムおよびユ
ーザ画面がデータファイル33に格納される。
In the first and second display / control systems, the user program and the user screen are temporarily stored in the data file 33, then downloaded to the PLC 2 and the programmable display 1, respectively, and stored in the memory. In the second display / control system, or after the user program and the user screen are once stored in the data file 33, the programmable display 1
And stored in the memory unit 12. Third
In the display / control system, the user program and the user screen are stored in the data file 33.

【0089】ここで、第1ないし第3の表示/制御シス
テムにおけるユーザ画面およびユーザプログラムを作成
する際の複合部品に対応するラダー回路の自動生成につ
いての処理手順について、図11のフローチャートを参
照して説明する。
Here, a processing procedure for automatically generating a ladder circuit corresponding to a composite component when creating a user screen and a user program in the first to third display / control systems will be described with reference to the flowchart in FIG. Will be explained.

【0090】ユーザ画面を作成しながらユーザプログラ
ムを作成する場合は、コンピュータ装置3において、ラ
ダーエディタ32aおよび作画エディタ32bが起動さ
れており、ディスプレイ35の表示部35a(図12
(a)参照)には、ユーザ画面作成用のエディタ画面
(第1エディタ画面)を表示するウインドウ(以降、作
画ウインドウと称する)32b1 およびユーザプログラ
ム作成用のエディタ画面(第2エディタ画面)を表示す
るウインドウ(以降、ラダーウインドウと称する)32
1 が同時に開いているものとする。
When creating a user program while creating a user screen, the ladder editor 32a and the drawing editor 32b are activated in the computer device 3, and the display unit 35a of the display 35 (FIG. 12)
The (a) refer), the window (hereinafter displaying an editor screen for creating user screen (first editor screen), drawing the window is referred to as a) 32 b 1 and the user program editor screen for creating a (second editor screen) Window to be displayed (hereinafter referred to as ladder window) 32
it is assumed that a 1 is open at the same time.

【0091】まず、作画ウインドウ32b1 上にて、ユ
ーザの操作によって複合部品のリストを表示し(S1
1)、そのリストの中からユーザによって選択された複
合部品が作画ウインドウ32b1 における画面作成領域
に配置されたか否かを判断する(S12)。複合部品が
配置されている場合、複合部品の個々の機能について、
変数を介してアドレスを割り付けるといった設定が終了
しているか否かを判断する(S13)。設定が終了して
いると、変数をラダーリストに登録する(S14)。
[0091] First of all, in the drawing window 32b 1 above, to display a list of composite parts by the operation of the user (S1
1), it is determined whether the composite component selected by the user from the list is arranged in the screen creating region in drawing the window 32 b 1 (S12). When a composite part is placed, for each function of the composite part,
It is determined whether the setting of assigning an address via a variable has been completed (S13). When the setting is completed, the variable is registered in the ladder list (S14).

【0092】次いで、登録された変数に関連付けられた
ラダー命令群をラダーリストに生成することによって、
そのラダー命令群に対応するラダー回路をラダーウイン
ドウ32a1 に配置する位置を決定する(S15)。そ
の後、そのラダー回路について対応付けるサブルーチン
が入力されたか否かを判断する(S16)。サブルーチ
ンが入力されている場合、ラダーウインドウ32a1
おいて上記のラダー命令群を変数とともにラダー回路に
展開する(S17)。そして、処理を終了するか否かを
判断し(S18)、ここで、終了しない場合はS11に
処理を戻す一方、終了する場合は生成されたラダー回路
をラダーファイル33aにサブファイルとして保存する
(S19)。
Next, by generating a ladder instruction group associated with the registered variables in a ladder list,
Determining where to place a ladder circuit corresponding to the ladder instructions in the ladder window 32a 1 (S15). Thereafter, it is determined whether a subroutine for associating the ladder circuit has been input (S16). If the subroutine has been entered, the ladder window 32a 1 deployed to ladder with variable ladder instructions above (S17). Then, it is determined whether or not the processing is to be ended (S18). If the processing is not to be ended, the processing is returned to S11. S19).

【0093】ここで、図11のフローチャートの手順で
行われるラダー回路生成の具体例について説明する。
Here, a specific example of the ladder circuit generation performed according to the procedure of the flowchart of FIG. 11 will be described.

【0094】まず、図12(a)に示すように、ラダー
ウインドウ32a1 および作画ウインドウ32b1 が表
示部35aに開かれている。この状態で、図12(b)
に示すように、作画エディタ32bによって作画ウイン
ドウ32b1 に複合部品のライブラリLBを表示させ
る。そして、図12(c)に示すように、このライブラ
リLBから、例えば、複合スイッチの複合部品P1 を選
択して作画ウインドウ32b1 上に配置し、前記のS1
5の処理が終了すると、前記のS14ないしS17の一
連の処理によって、ラダーウインドウ32a1 に、複合
スイッチに対応するラダー回路が生成される。
[0094] First, as shown in FIG. 12 (a), the ladder window 32a 1 and drawing window 32 b 1 is opened on the display unit 35a. In this state, FIG.
As shown in ( 1) , the composite editor library LB is displayed in the drawing window 32b1 by the drawing editor 32b. Then, as shown in FIG. 12 (c), arranged from the library LB, for example, on the drawing window 32 b 1 Select composite part P 1 of composite switch, said S1
When the process of 5 ending, by a series of processes of the in S14 through S17, the ladder window 32a 1, ladder circuit corresponding to the composite switch is generated.

【0095】複合部品P1 は、入出力機器4…が配置さ
れるターゲットシステムの自動操作を指示するためのス
イッチS1 、ターゲットシステムの手動運転を指示する
ためのスイッチS2 、自動運転または手動運転を停止さ
せるためのスイッチS3 および自動運転または手動運転
が行われている間に点灯するランプL1 から構成されて
いる。スイッチS1 ・S2 ・S3 上には、それぞれ変数
としての“自動”、“手動”、“停止”が表示される。
この複合スイッチは、スイッチS1 またはS2のみがO
NするとランプL1 が点灯し、スイッチS3 のみがON
するとランプL1 が消灯するように構成されており、こ
のような機能属性も予め複合部品P1 のデータとして図
形データファイル33b1 に格納されている。
The composite part P 1 includes a switch S 1 for instructing automatic operation of a target system in which the input / output devices 4 are arranged, a switch S 2 for instructing manual operation of the target system, automatic operation or manual operation. switch S 3 and automatic operation or manual operation for stopping the operation is constituted by the lamp L 1 to be turned while being conducted. The variables “automatic”, “manual”, and “stop” are displayed on the switches S 1 , S 2, and S 3 , respectively.
The composite switch, only the switch S 1 or S 2 is O
N The Lamp L 1 is turned on, only the switch S 3 is ON
Then is configured to lamp L 1 is turned off, it is stored in the graphic data file 33b 1 as such function attributes also advance the composite part P 1 data.

【0096】このような複合部品P1 からラダー回路が
生成される際には、上記の変数ならびにランプL1 を点
灯させる際の変数“自動ランプ出力”および“手動ラン
プ出力”が、ラダー回路生成部32cによって図13に
示すラダーリストLL1 に登録される。変数“自動”、
“手動”および“停止”は予めスイッチに関係付けられ
ており、変数“自動ランプ出力”および“手動ランプ出
力”は予めランプに関係付けられている。これらの変数
は、複合部品P1 の機能を実現するように、ラダーリス
トLL1 に順次登録されていく。また、併せて、各変数
に割り付けられたアドレス(X0010、X0011な
ど)もラダーリストLL1 に登録される。さらに、各変
数に関係付けられた機能(スイッチ、ランプなど)およ
び複合部品P1 全体の機能に基づいて、各変数に対応す
るラダー命令(LD、ANDNなど)がラダーリストL
1 に自動的に登録される。この結果、ラダー命令とア
ドレスとの組み合わせによる命令が得られる。
[0096] When the ladder circuit is generated from such composite part P 1 is, the variable "automatic lamp output" and "Manual lamp output" at the time of lighting the above variables as well as the lamp L 1, ladder generated the part 32c is registered in the ladder list LL 1 shown in FIG. 13. Variable "auto",
"Manual" and "Stop" are pre-associated with switches, and the variables "Automatic Lamp Output" and "Manual Lamp Output" are pre-associated with lamps. These variables, so as to realize the functions of the composite part P 1, is sequentially registered in the ladder list LL 1. Also, addition, (such as X0010, X0011) address assigned to each variable is also registered in the ladder list LL 1. Furthermore, the functions associated with each variable (switches, lamps, etc.) on the basis of and the composite part P 1 overall function, ladder instructions corresponding to each variable (LD, etc. ANDN) Ladder list L
It is automatically registered to L 1. As a result, an instruction based on a combination of a ladder instruction and an address is obtained.

【0097】ラダーエディタ32aは、このラダーリス
トLL1 に基づいてラダーウインドウ32a1 に複合部
品P1 に対応するラダー回路を描画する。このラダー回
路は、サブルーチンとして形成され、サブルーチン開始
側(SUBSTART複合スイッチ)に自動運転部と、サブルー
チン終了側(SUBEND複合スイッチ)の手動運転部とから
なっている。いずれのラダー回路でもLDおよびAND
Nのセット条件が成立するとランプをONさせ、LDの
スイッチがOFFしてもランプのON状態が維持される
ように、ORによる自己保持回路が形成されている。ま
た、停止(ANDN)がONしてリセット条件が成立す
ると、ランプがOFFする。
[0097] Ladder Editor 32a draws a ladder circuit corresponding to the composite part P 1 in the ladder window 32a 1 on the basis of the ladder list LL 1. This ladder circuit is formed as a subroutine, and includes an automatic operation section on the subroutine start side (SUBSTART composite switch) and a manual operation section on the subroutine end side (SUBEND composite switch). LD and AND in any ladder circuit
A self-holding circuit by OR is formed so that the lamp is turned on when the set condition of N is satisfied and the lamp is kept on even if the LD switch is turned off. When the stop (ANDN) is turned on and the reset condition is satisfied, the lamp is turned off.

【0098】図14(a)に示すように、カウンタの複
合部品P2 が作画ウインドウ32bに配置される場合
は、図14(b)に示すラダー回路が生成される。上記
の複合部品P2 は、設定値表示用の数値表示器N1 、カ
ウント値表示用の数値表示器N2 、カウントアップ時に
点灯するランプL2 およびカウントリセット用のランプ
付スイッチS4 から構成されている。このカウンタは、
数値表示器N2 に逐次表示されるカウント値(CNT.
CV)が数値表示器N1 に設定された設定値(CNT.
PV)に達すると、カウントアップして、ランプL2
点灯させる。また、このカウンタは、ランプ付スイッチ
4 がONされることによってカウント値をリセットし
てランプ付スイッチS4 を点灯させる。さらに、この複
合部品P2には、カウンタとして機能するための設定値
を設定するための変数“SET”、リセット入力のため
の変数“RESET”およびカウントアップ出力のため
の変数“CNT.UP”が表示される。
[0098] As shown in FIG. 14 (a), when the composite part P 2 of the counter is disposed in the drawing window 32b are ladder circuit shown in Figure 14 (b) is generated. Composite part P 2 above, consists numeric indicator N 1, numeric indicator N 2, the lamp L 2 and with lamp switches S 4 for counting the reset turns on after counting up the count value display for setting value display Have been. This counter is
Sequentially displayed are counted value to the numeric display device N 2 (CNT.
CV) set to numeric display device N 1 is set value (CNT.
Upon reaching the PV), and counts up, to light the lamp L 2. Further, the counter resets the count value to turn on the switch S 4 with lamp by the lamp with switch S 4 is ON. Further, this composite part P 2, the variable "SET" for setting the set value to function as a counter, a variable for the reset input "RESET" and variables for the count-up output "CNT.UP" Is displayed.

【0099】このような複合部品P2 からラダー回路が
生成される際には、上記の変数ならびにリセット出力の
ための変数“CNT.R”およびカウントアップ検知
(設定値とカウント値との一致検出)のための変数“C
NT.EQ”が、ラダー回路生成部32cによって図1
5に示すラダーリストLL2 に登録される。変数“SE
T”は予めカウンタに関係付けられ、変数“RESE
T”は予めスイッチに関係付けられ、“CNT.R”お
よび“CNT.UP”は予めランプに関係付けられてい
る。これらの変数は、複合部品P2 の機能を実現するよ
うに、ラダーリストLL2 に順次登録されていく。ま
た、併せて、各変数に割り付けられたアドレス(X01
00、X0101など)もラダーリストLL2 に登録さ
れる。さらに、各変数に関係付けられた機能(スイッ
チ、ランプなど)および複合部品P2 全体の機能に基づ
いて、各変数に対応するラダー命令(CTU、LDな
ど)がラダーリストLL2 に自動的に登録される。この
結果、ラダー命令とアドレスとの組み合わせによる命令
が得られる。
When a ladder circuit is generated from such a composite part P 2 , the above variables, the variable “CNT.R” for reset output, and count-up detection (coincidence detection between set value and count value) ) For the variable "C
NT. EQ ″ is converted by the ladder circuit generation unit 32c to
5 is registered in the ladder list LL 2 shown. The variable "SE
T ”is previously associated with a counter, and the variable“ RESE
T ”is previously associated with the switch, and“ CNT. R "and" CNT. UP "are related in advance lamp. These variables, so as to realize the functions of the composite part P 2, are sequentially registered in the ladder list LL 2. Further, in addition, assigned to each variable Address (X01
00, and X0101) are also registered in the ladder list LL 2. Furthermore, the functions associated with each variable (switches, lamps, etc.) on the basis of and the composite part P 2 overall function, ladder instructions corresponding to each variable (CTU, LD, etc.) automatically within ladder list LL 2 be registered. As a result, an instruction based on a combination of a ladder instruction and an address is obtained.

【0100】ラダーエディタ32aは、このラダーリス
トLL2 に基づいてラダーウインドウ32a1 に複合部
品P2 に対応するラダー回路を描画する。このラダー回
路は、サブルーチンとして形成され、サブルーチン開始
側(SUBSTARTカウンタ)のカウンタ部と、中段のリセッ
ト部と、サブルーチン終了側(SUBENDカウンタ)のカウ
ントアップ部とからなっている。SUBENDカウンタは、比
較命令によって、設定値とカウント値が一致するとQ出
力をONして、カウントアップ出力をONさせる。
[0100] Ladder Editor 32a draws a ladder circuit corresponding to the composite part P 2 in the ladder window 32a 1 on the basis of the ladder list LL 2. This ladder circuit is formed as a subroutine, and includes a counter section on the subroutine start side (SUBSTART counter), a reset section in the middle stage, and a count-up section on the subroutine end side (SUBEND counter). The SUBEND counter turns on the Q output and turns on the count-up output when the set value matches the count value by the comparison command.

【0101】なお、上記のカウンタ部のカウント入力C
Eには、通常、カウントクロック供給用のa接点(図示
せず)が配置される。
The count input C of the counter section
E is usually provided with an a contact (not shown) for supplying a count clock.

【0102】上記のような複合スイッチおよびカウンタ
に対応するラダー回路は、図7(a)および(b)に示
すように、複合部品毎にサブファイルに格納されるの
で、サブルーチンまたはメインルーチンと独立したブロ
ックとして形成される。ラダー回路がサブルーチンとし
て形成される際には、図13および図15に示すよう
に、必ず最後にリターン命令(RET)が記述される。
また、このようなラダー回路にジャンプするには、図1
6(a)および(b)に示すような、サブルーチン名の
“複合スイッチ”および“カウンタ”の回路に無条件に
サブルーチンにジャンプする命令(CALL命令)がメ
インルーチンに組み込まれる。また、上記のラダー回路
がサブルーチンとして形成されない場合は、図示はしな
いが、指定されたステップへ無条件にジャンプする命令
(JMP命令)がメインルーチンに組み込まれる。
As shown in FIGS. 7A and 7B, the ladder circuit corresponding to the above-described composite switch and counter is stored in a sub-file for each composite part, so that it is independent of a subroutine or a main routine. It is formed as a block. When the ladder circuit is formed as a subroutine, a return instruction (RET) is always described at the end as shown in FIGS.
To jump to such a ladder circuit, refer to FIG.
An instruction (CALL instruction) for unconditionally jumping to the subroutine is incorporated in the circuit of "composite switch" and "counter" of the subroutine name as shown in FIGS. 6 (a) and 6 (b). When the ladder circuit is not formed as a subroutine, an instruction (JMP instruction) for unconditionally jumping to a specified step is incorporated in the main routine, though not shown.

【0103】以上に述べたように、本実施の形態に係る
第1ないし第3の表示/制御システムでは、ラダー回路
生成部32cを備えることによって、図12(c)に示
すように、作画ウインドウ32b1 に複合部品を配置す
るだけで、ラダーウインドウ32a1 に複合部品に対応
するラダー回路が自動的に生成される。それゆえ、複合
部品に対応して複数のラダー命令が組み合わせてなるラ
ダー回路の作成のために従来要していたユーザの入力操
作が実質的に不要になる。したがって、そのようなラダ
ー回路を含むユーザプログラムの作成効率を大幅に向上
させることができる。また、複合部品の配置によってラ
ダー回路を生成するので、視覚的に分かりやすい操作環
境が提供され、操作性も向上させることができる。
As described above, in the first to third display / control systems according to the present embodiment, the ladder circuit generation unit 32c is provided so that the drawing window as shown in FIG. simply placing the composite component 32 b 1, ladder circuit corresponding to the composite part in the ladder window 32a 1 is automatically generated. Therefore, the user's input operation conventionally required for creating a ladder circuit formed by combining a plurality of ladder instructions corresponding to the composite component is substantially unnecessary. Therefore, the efficiency of creating a user program including such a ladder circuit can be greatly improved. Further, since the ladder circuit is generated by arranging the composite parts, a visually easy-to-understand operation environment is provided, and the operability can be improved.

【0104】また、複合部品に対応するラダー回路が前
述のように個別のサブファイルに格納されるファイル構
造を採用しているので、ランタイム制御(実行制御)用
のユーザプログラムを1つのファイルで管理していた従
来のエディタ装置と異なり、分散処理を可能にするとと
もに、制御区分におけるファイル管理を容易にする。し
かも、このようなファイル構造を採用することによっ
て、複合部品とラダー回路とが容易に関連付けられるの
で、ラダーエディタ32aと作画エディタ32bとの親
和性を高めることができる。
Further, since the ladder circuit corresponding to the composite part employs the file structure stored in the individual subfile as described above, the user program for the runtime control (execution control) is managed by one file. Unlike the conventional editor device, which enables the distributed processing, the file management in the control section is facilitated. Moreover, by adopting such a file structure, the composite component and the ladder circuit can be easily associated with each other, so that the affinity between the ladder editor 32a and the drawing editor 32b can be improved.

【0105】さらに、ラダー回路をサブルーチンとして
生成することによって、メインルーチンのラダー回路の
作成と独立して複合部品のラダー回路を作成することが
できる。それゆえ、プログラム設計の自由度を向上させ
るとともに、複合部品に対応するラダー回路の詳細な設
計工数を大幅に削減することができる。
Further, by generating a ladder circuit as a subroutine, a ladder circuit of a composite component can be created independently of the creation of the ladder circuit of the main routine. Therefore, the degree of freedom in program design can be improved, and the number of detailed design steps for the ladder circuit corresponding to the composite component can be significantly reduced.

【0106】なお、本実施の形態では、主に複合部品を
作画ウインドウ32b1 に配置することによってラダー
回路を自動的に生成する例について説明したが、単一の
部品を作画ウインドウ32b1 に配置することによって
も、その部品に対応するラダー記号を生成することがで
きる。この場合、生成されたラダー記号は、上記のラダ
ー回路とは異なり、サブファイルには保存されず、メイ
ンルーチンが登録されるファイルに保存される。
[0106] In this embodiment, mainly an example has been described for automatically generating ladder circuit by placing the composite part in drawing window 32 b 1, placing a single part in drawing window 32 b 1 By doing so, a ladder symbol corresponding to the part can be generated. In this case, unlike the ladder circuit described above, the generated ladder symbol is not stored in a sub file, but is stored in a file in which a main routine is registered.

【0107】また、本発明は、ラダー図だけではなく、
前述のIEC 6 1131-3 で規定された5言語を含む他の
言語によるプログラミングにおいても適用されるのは勿
論である。
Further, the present invention is not limited to the ladder diagram,
Of course, the present invention is also applicable to programming in other languages including the five languages specified in IEC 61131-3.

【0108】[0108]

【発明の効果】以上のように、本発明のエディタ装置
は、第1エディタ手段が複数の機能を有する画像ブロッ
クの個々の機能について、制御対象機器のアドレスと当
該制御対象機器の名称とを対応付ける変数を介してアド
レスを割り付けると共に、複数の機能を有する画像ブロ
ックが第1エディタ手段によって第1エディタ画面に配
置されると、当該画像ブロックの各機能に関連付けられ
た変数を、上記制御手順プログラムを構成する命令を実
行順に格納するプログラムリストに登録することによっ
て、上記画像ブロックに対応する部分プログラムを生成
するプログラム生成手段を備えている構成である。
As described above, according to the editor apparatus of the present invention, the first editor means has an image block having a plurality of functions.
For each function of the
Add via a variable that associates the name of the controlled device
With allocating less, an image block having a plurality of functions are arranged in the first editor screen by the first editor means, the variables associated with each function of the image block, the instructions constituting the control procedure program The configuration includes a program generation unit that generates a partial program corresponding to the image block by registering the program in the program list stored in the execution order.

【0109】これによって、操作上では、画像ブロック
を第1エディタ画面に配置するだけで、部分プログラム
が生成されるので、ユーザによる部分プログラムの設計
工数を大幅に削減することができる。したがって、制御
手順プログラムの作成効率を向上させることができると
いう効果を奏する。
As a result, in operation, a partial program is generated simply by arranging an image block on the first editor screen, so that the number of design steps of the partial program by the user can be greatly reduced. Therefore, there is an effect that the efficiency of creating the control procedure program can be improved.

【0110】上記のエディタ装置においては、上記プロ
グラム生成手段が、上記第2エディタ手段の第2エディ
タ画面へ、上記部分プログラムを構成する命令群を視
化させるので、画像ブロックが第1エディタ画面に配置
されるだけで、第2エディタ画面に部分プログラムが視
覚化(例えば表示)される。このように、視覚的に分か
りやすい操作環境が提供されるので、制御手順プログラ
ムの作成効率をより一層向上させることができるという
効果を奏する。
In the above-described editor device, the program generating means may be a second editor of the second editor means .
To another screen, since thereby visualizes the command group constituting the partial program, only the image blocks are arranged in the first editor screen, the partial program to a second editor screen is visualized (e.g. display). In this way, an operation environment that is visually easy to understand is provided, so that there is an effect that the creation efficiency of the control procedure program can be further improved.

【0111】上記のエディタ装置においては、上記プロ
グラム生成手段が、生成された上記部分プログラムを個
別のファイルに保存するので、分散処理を可能にすると
ともに、制御区分におけるファイル管理を容易にする。
しかも、このようなファイル構成を採用することによっ
て、複合部品と部分プログラムとが容易に関連付けられ
る。したがって、実行制御までをも含めた制御手順プロ
グラムの管理を効率的に行うことができるとともに、第
1および第2エディタ手段の親和性が高まることで表示
内容プログラムおよび制御手順プログラムの開発を効率
的に行うことができるという効果を奏する。
In the above-described editor device, the program generating means stores the generated partial program in a separate file, thereby enabling distributed processing and facilitating file management in the control section.
Moreover, by adopting such a file configuration, the composite part and the partial program can be easily associated with each other. Therefore, the management of the control procedure program including the execution control can be efficiently performed, and the development of the display content program and the control procedure program can be efficiently performed by increasing the affinity of the first and second editor means. The effect that it can be performed is produced.

【0112】また、このエディタ装置においては、上記
プログラム生成手段が、上記部分プログラムを生成する
際、上記画像ブロックの機能を実現するように、上記プ
ログラムリストに、上記変数に対応するラダー命令と、
当該変数に割り付けられたアドレスとを登録するので、
ラダー命令とアドレスとの組み合わせによる命令が得ら
れるという効果を奏する。
[0112] In addition, in this editor device, the above-mentioned
Program generating means for generating the partial program
In order to realize the function of the image block,
A ladder instruction corresponding to the above variable is added to the program list,
Register the address assigned to the variable,
Instructions obtained by combining ladder instructions and addresses are obtained.
It has the effect of being done.

【0113】本発明のエディタプログラムが記録された
記録媒体は、第1エディタ処理は、複数の機能を有する
画像ブロックの個々の機能について、上記制御対象機器
のアドレスと当該制御対象機器の名称とを対応付ける変
数を介してアドレスを割り付けると共に、エディタプロ
グラムが、複数の機能を有する画像ブロックが第1エデ
ィタ処理によって上記第1エディタ画面に配置される
、当該画像ブロックの各機能に関連付けられた変数
を、上記制御手順プログラムを構成する命令を実行順に
格納するプログラムリストに登録することによって、上
記画像ブロックに対応する部分プログラムを生成するプ
ログラム生成処理を含んでいる構成である。
In the recording medium on which the editor program of the present invention is recorded, the first editor processing has a plurality of functions.
For each function of the image block,
That associates the address of the
With assigned address via the number, the editor program, the image block having a plurality of functions are arranged in the first editor screen by the first editor process, the variables associated with each function of the image block, The configuration includes a program generation process of generating a partial program corresponding to the image block by registering instructions constituting the control procedure program in a program list storing the execution order.

【0114】これによって、本発明のエディタ装置と同
様、操作上では、画像ブロックを第1エディタ画面に配
置するだけで、部分プログラムが生成されるので、ユー
ザによる部分プログラムの設計工数を大幅に削減するこ
とができる。したがって、制御手順プログラムの作成効
率を向上させることができるという効果を奏する。
Thus, in the same way as the editor apparatus of the present invention, in operation, a partial program is generated only by arranging an image block on the first editor screen, so that the man-hour for designing the partial program by the user is greatly reduced. can do. Therefore, there is an effect that the efficiency of creating the control procedure program can be improved.

【0115】本発明のエディタプログラムが記録された
他の記録媒体は、エディタプログラムが、表示内容プロ
グラムを作成する第1エディタ処理または制御手順プロ
グラムを作成するための第2エディタ処理のいずれか一
方と、上記プログラム生成処理とを含んでいる構成であ
る。
[0115] Another recording medium which editor program is recorded of the present invention, the editor program, either the second editor processing for creating a first editor processing or control procedure program to create a display content program The configuration includes one and the program generation processing.

【0116】これによって、前記の記録媒体と同様、プ
ログラム生成処理によって、画像ブロックを第1エディ
タ画面に配置するだけで、部分プログラムが生成される
ので、ユーザによる部分プログラムの設計工数を大幅に
削減することができる。したがって、制御手順プログラ
ムの作成効率を向上させることができる。さらに、この
記録媒体によれば、エディタプログラムが第1または第
2エディタ処理のいずれか一方と、プログラム生成処理
とを含んでいるので、第1エディタ処理と第2エディタ
処理とが独立したエディタプログラムに含まれているよ
うな形態であっても本発明を適用することができる。
In this way, as in the case of the above-described recording medium, the partial program is generated only by arranging the image blocks on the first editor screen by the program generating process, so that the man-hour for designing the partial program by the user is greatly reduced. can do. Therefore, the efficiency of creating the control procedure program can be improved. Further, according to this recording medium, since the editor program includes either the first or second editor processing and the program generation processing, the first editor processing and the second editor processing are independent. However, the present invention can be applied to a form included in the above.

【0117】上記の両記録媒体は、上記プログラム生成
処理が、上記第2エディタ処理の第2エディタ画面へ
上記部分プログラムを構成する命令群を視覚化させるの
で、前述のエディタ装置と同様、画像ブロックが第1エ
ディタ画面に配置されるだけで、第2エディタ画面に部
分プログラムが視覚化される。このように、視覚的に分
かりやすい操作環境が提供される結果、制御手順プログ
ラムの作成効率をより一層向上させることができるとい
う効果を奏する。
[0117] In the above two recording media, the above-mentioned program generation processing is carried out on the second editor screen of the above-mentioned second editor processing.
Since thereby visualizes the command group constituting the partial program, similar to the above editor apparatus, only the image blocks are arranged in the first editor screen, a partial program is visualized in the second editor screen. As described above, an operation environment that is easy to understand visually is provided, and as a result, there is an effect that the creation efficiency of the control procedure program can be further improved.

【0118】また、上記の両記録媒体は、上記プログラ
ム生成処理が、生成された上記部分プログラムを個別の
ファイルに保存するので、前述のエディタ装置と同様、
分散処理を可能にするとともに、制御区分におけるファ
イル管理を容易にする。しかも、このようなファイル構
成を採用することによって、複合部品と部分プログラム
とが容易に関連付けられる。したがって、実行制御まで
をも含めた制御手順プログラムの管理を効率的に行うこ
とができるとともに、第1および第2エディタ処理の親
和性が高まることで表示内容プログラムおよび制御手順
プログラムの開発を効率的に行うことができるという効
果を奏する。
In the above two recording media, the program generation process saves the generated partial program in a separate file.
It enables distributed processing and facilitates file management in the control section. Moreover, by adopting such a file configuration, the composite part and the partial program can be easily associated with each other. Therefore, the control procedure program including execution control can be efficiently managed, and the development of the display content program and the control procedure program can be efficiently performed by increasing the affinity of the first and second editor processes. The effect that it can be performed is produced.

【0119】また、この記録媒体においては、上記プロ
グラム生成処理が、上記部分プログラムを生成する際、
上記画像ブロックの機能を実現するように、上記プログ
ラムリストに、上記変数に対応するラダー命令と、当該
変数に割り付けられたアドレスとを登録するので、ラダ
ー命令とアドレスとの組み合わせによる命令が得られる
という効果を奏する。
Further, in this recording medium, the above-mentioned professional
When the gram generation process generates the partial program,
In order to realize the function of the image block,
The ladder instruction corresponding to the above variable
Register the address assigned to the variable.
-It is possible to obtain an instruction by a combination of the instruction and the address .

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施の一形態に係る第1の表示/制御
システムの構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a first display / control system according to an embodiment of the present invention.

【図2】上記第1の表示/制御システムにおけるプログ
ラマブル表示器のFEPROMに格納されるプログラム
を示す説明図である。
FIG. 2 is an explanatory diagram showing a program stored in a FEPROM of a programmable display in the first display / control system.

【図3】上記プログラマブル表示器などで表示されるユ
ーザ画面に含まれる処理指示語の基本的フォーマットを
示す説明図である。
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.

【図4】上記プログラマブル表示器の表示動作の処理手
順を示すフローチャートである。
FIG. 4 is a flowchart showing a processing procedure of a display operation of the programmable display device.

【図5】本発明の各表示/制御システムにおけるコンピ
ュータ装置に設けられるラダーファイルの構成を示す説
明図である。
FIG. 5 is an explanatory diagram showing a configuration of a ladder file provided in a computer device in each display / control system of the present invention.

【図6】本発明の各表示/制御システムにおけるコンピ
ュータ装置に設けられる画面ファイルの構成を示す説明
図である。
FIG. 6 is an explanatory diagram showing a configuration of a screen file provided in a computer device in each display / control system of the present invention.

【図7】(a)および(b)は本発明の各表示/制御シ
ステムにおけるコンピュータ装置に設けられる作画エデ
ィタで入力された複合部品のデータと、このデータに基
づいてラダーエディタで生成されたラダー回路を格納す
るサブファイルとの関連付けを示す説明図である。
7A and 7B are data of a composite part input by a drawing editor provided in a computer device in each display / control system of the present invention, and a ladder generated by a ladder editor based on the data. FIG. 9 is an explanatory diagram showing association with a subfile storing a circuit.

【図8】本発明の実施の一形態に係る第2の表示/制御
システムの構成を示すブロック図である。
FIG. 8 is a block diagram showing a configuration of a second display / control system according to one embodiment of the present invention.

【図9】第2および第3の表示/制御システムにおける
プログラマブル表示器のFEPROMに格納されるプロ
グラムを示す説明図である。
FIG. 9 is an explanatory diagram showing a program stored in a FEPROM of a programmable display in the second and third display / control systems.

【図10】本発明の実施の一形態に係る第3の表示/制
御システムの構成を示すブロック図である。
FIG. 10 is a block diagram showing a configuration of a third display / control system according to one embodiment of the present invention.

【図11】上記の各表示/制御システムで実行される、
ユーザ画面において複合部品の配置に伴ってラダー回路
を生成する処理手順を示すフローチャートである。
FIG. 11 is executed by each of the display / control systems described above;
9 is a flowchart illustrating a processing procedure for generating a ladder circuit in accordance with the arrangement of a composite component on a user screen.

【図12】(a)ないし(c)は複合スイッチの複合部
品を配置する場合の図11の処理手順の具体例を示す説
明図である。
FIGS. 12A to 12C are explanatory diagrams showing a specific example of the processing procedure of FIG. 11 when arranging composite parts of the composite switch.

【図13】上記複合スイッチの複合部品からラダー回路
を生成する際に利用されるラダーリストを示す説明図で
ある。
FIG. 13 is an explanatory diagram showing a ladder list used when generating a ladder circuit from the composite parts of the composite switch.

【図14】(a)は作画ウインドウに配置されるカウン
タの複合部品を示す説明図であり、(b)はカウンタの
複合部品が配置されることによってラダーウインドウに
生成されるラダー回路を示す回路図である。
14A is an explanatory diagram illustrating a composite component of a counter arranged in a drawing window, and FIG. 14B is a circuit illustrating a ladder circuit generated in a ladder window by arranging the composite component of the counter. FIG.

【図15】上記カウンタの複合部品からラダー回路を生
成する際に利用されるラダーリストを示す説明図であ
る。
FIG. 15 is an explanatory diagram showing a ladder list used when generating a ladder circuit from the composite component of the counter.

【図16】(a)は上記複合スイッチに対応するラダー
回路をサブルーチンとして、メインルーチンからそのサ
ブルーチンにジャンプするラダー回路を示す回路図であ
り、(b)は上記カウンタに対応するラダー回路をサブ
ルーチンとして、メインルーチンからそのサブルーチン
にジャンプするラダー回路を示す回路図である。
FIG. 16A is a circuit diagram showing a ladder circuit corresponding to the composite switch as a subroutine and jumping from the main routine to the subroutine, and FIG. FIG. 4 is a circuit diagram showing a ladder circuit for jumping from a main routine to the subroutine.

【符号の説明】[Explanation of symbols]

1 プログラマブル表示器(表示機能部、
制御機能部) 2 PLC(制御機能部) 3 コンピュータ装置(表示機能部、制御
機能部) 4 入出力機器(制御対象機器) 5 記録媒体 32a ラダーエディタ(第2エディタ手
段) 32a1 ラダーウインドウ(第2エディタ画
面) 32b 作画エディタ(第1エディタ手段) 32b1 作画ウインドウ(第1エディタ画
面) 32c ラダー回路生成部(プログラム生成
手段) 33a ラダーファイル 33b 画面ファイル F1 ・F2 サブファイル LL1 ・LL2 ラダーリスト(プログラムリスト) P1 ・P2 複合部品(画像ブロック)
1 Programmable display (display function unit,
Control function unit) 2 PLC (Control function unit) 3 Computer device (Display function unit, Control function unit) 4 Input / output device (Control target device) 5 Recording medium 32a Ladder editor (second editor means) 32a 1 Ladder window (No. 2 editor screen) 32 b screen editor (first editor means) 32 b 1 drawing window (first editor screen) 32c ladder circuit generating unit (program generation means) 33a ladder file 33b screen file F 1 · F 2 subfile LL 1 · LL 2 ladder list (program list) P 1 · P 2 composite parts (image block)

Claims (9)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】制御対象機器の状態を表示する表示機能
実行する表示の内容を定めるための表示内容プログラ
を作成する第1エディタ手段と、上記制御対象機器の
動作を制御する制御機能部が実行する制御の手順を定め
るための制御手順プログラムを作成するための第2エデ
ィタ手段とを備えるエディタ装置において、 上記第1エディタ手段は、複数の機能を有する画像ブロ
ックの個々の機能について、上記制御対象機器のアドレ
スと当該制御対象機器の名称とを対応付ける変数を介し
てアドレスを割り付けると共に、 複数の機能を有する画像ブロックが上記第1エディタ手
段によって第1エディタ画面に配置されると、当該画像
ブロックの各機能に関連付けられた変数を、上記制御手
順プログラムを構成する命令を実行順に格納するプログ
ラムリストに登録することによって、上記画像ブロック
に対応する部分プログラムを生成するプログラム生成手
段を備えていることを特徴とするエディタ装置。
1. A display function unit for displaying a state of a device to be controlled.
There the first editor means for creating the display content program for determining the contents of the display to be executed, the control target device
In the editor apparatus and a second editor means for creating the control procedure program for determining the control procedure by the control function unit executes for controlling the operation, the first editor means an image having a plurality of functions Bro
For each function of the
Via a variable that associates the
With allocating addresses Te, an image block having a plurality of functions are arranged in the first editor screen depending on the first editor means, the variables associated with each function of the image block, the control procedure program An editor apparatus comprising: a program generation unit that generates a partial program corresponding to the image block by registering constituent instructions in a program list that stores the instructions in an execution order.
【請求項2】上記プログラム生成手段が、上記第2エデ
ィタ手段の第2エディタ画面へ、上記部分プログラムを
構成する命令群を視覚化させることを特徴とする請求項
1に記載のエディタ装置。
Wherein said program generating means, said the second editor screen of the second editor means, the editor apparatus according to claim 1, characterized in that to visualizes the command group constituting the partial program.
【請求項3】上記プログラム生成手段が、生成された上
記部分プログラムを個別のファイルに保存することを特
徴とする請求項1に記載のエディタ装置。
3. The editor device according to claim 1, wherein said program generation means stores the generated partial program in a separate file.
【請求項4】上記プログラム生成手段は、上記部分プロ
グラムを生成する際、上記画像ブロックの機能を実現す
るように、上記プログラムリストに、上記変数に対応す
るラダー命令と、当該変数に割り付けられたアドレスと
を登録することを特徴とする請求項1、2または3記載
のエディタ装置。
4. The program generation means according to claim 1, wherein
When generating a gram, the functions of the above image blocks are realized.
As shown in the above program list,
Ladder instruction and the address assigned to the variable
4. The method according to claim 1, wherein the information is registered.
Editor device.
【請求項5】制御対象機器の状態を表示する表示機能
実行する表示の内容を定めるための表示内容プログラ
を作成する第1エディタ処理と、上記制御対象機器の
動作を制御する制御機能部が実行する制御の手順を定め
るための制御手順プログラムを作成するための第2エデ
ィタ処理とを含むエディタプログラムを記録したコンピ
ュータ読み取り可能な記録媒体であって、上記第1エディタ処理は、複数の機能を有する画像ブロ
ックの個々の機能について、上記制御対象機器のアドレ
スと当該制御対象機器の名称とを対応付ける変数を介し
てアドレスを割り付けると共に、 複数の機能を有する画像ブロックが上記第1エディタ処
理によって第1エディタ画面に配置されると、当該画像
ブロックの各機能に関連付けられた変数を、上記制御手
順プログラムを構成する命令を実行順に格納するプログ
ラムリストに登録することによって、上記画像ブロック
に対応する部分プログラムを生成するプログラム生成処
理を含んでいることを特徴とするエディタプログラムを
記録した記録媒体。
5. A display function unit for displaying a state of a device to be controlled.
There a first editor processing to create a display content program for determining the contents of the display to be executed, the control target device
A computer-readable recording medium recording an editor program and a second editor processing for creating the control procedure program for determining the control procedure by the control function unit executes for controlling the operation, said first One editor process is an image block with multiple functions.
For each function of the
Via a variable that associates the
With allocating addresses Te, an image block having a plurality of functions are arranged in the first editor screen depending on the first editor process, the variables associated with each function of the image block, the control procedure program A recording medium on which an editor program is recorded, including a program generation process for generating a partial program corresponding to the image block by registering constituent instructions in a program list that stores the instructions in an execution order.
【請求項6】制御対象機器の状態を表示する表示機能
実行する表示の内容を定めるための表示内容プログラ
を作成する第1エディタ処理または上記制御対象機器
の動作を制御する制御機能部が実行する制御の手順を定
めるための制御手順プログラムを作成するための第2エ
ディタ処理のいずれか一方を含むエディタプログラムを
記録したコンピュータ読み取り可能な記録媒体であっ
て、上記第1エディタ処理は、複数の機能を有する画像ブロ
ックの個々の機能について、上記制御対象機器のアドレ
スと当該制御対象機器の名称とを対応付ける変数を介し
てアドレスを割り付けると共に、 複数の機能を有する画像ブロックが上記第1エディタ処
理によって第1エディタ画面に配置されると、当該画像
ブロックの各機能に関連付けられた変数を、上記制御手
順プログラムを構成する命令を実行順に格納するプログ
ラムリストに登録することによって、上記画像ブロック
に対応する部分プログラムを生成するプログラム生成処
理を含んでいることを特徴とするエディタプログラムを
記録した記録媒体。
6. A display function unit for displaying a state of a device to be controlled.
The first editor processing or the control target device but to create a display content program for determining the contents of the display to be executed
There a computer readable recording medium recording an editor program including one of the second editor processing for creating the control procedure program for determining the control procedure by the control function unit executes for controlling the operation Thus, the first editor process is an image block having a plurality of functions.
For each function of the
Via a variable that associates the
With allocating addresses Te, an image block having a plurality of functions are arranged in the first editor screen depending on the first editor process, the variables associated with each function of the image block, the control procedure program A recording medium on which an editor program is recorded, including a program generation process for generating a partial program corresponding to the image block by registering constituent instructions in a program list that stores the instructions in an execution order.
【請求項7】上記プログラム生成処理が、上記第2エデ
ィタ処理の第2エディタ画面へ、上記部分プログラムを
構成する命令群を視覚化させることを特徴とする請求項
5または6に記載の記録媒体。
7. The program generation process, the the second editor screen of the second editor processing, recording according to claim 5 or 6, characterized in that to visualizes the command group constituting the partial program Medium.
【請求項8】上記プログラム生成処理が、生成された上
記部分プログラムを個別のファイルに保存することを特
徴とする請求項5または6に記載の記録媒体。
8. The recording medium according to claim 5, wherein the program generation processing stores the generated partial program in a separate file.
【請求項9】上記プログラム生成処理は、上記部分プロ
グラムを生成する際、上記画像ブロックの機能を実現す
るように、上記プログラムリストに、上記変数に対応す
るラダー命令と、当該変数に割り付けられたアドレスと
を登録することを特徴とする請求項5または6記載の記
録媒体。
9. The program generating process according to claim 1, wherein
When generating a gram, the functions of the above image blocks are realized.
As shown in the above program list,
Ladder instruction and the address assigned to the variable
7. The method according to claim 5, wherein
Recording medium.
JP24922199A 1999-08-31 1999-09-02 Editor device and recording medium recording editor program Expired - Fee Related JP3195322B2 (en)

Priority Applications (15)

Application Number Priority Date Filing Date Title
JP24922199A JP3195322B2 (en) 1999-09-02 1999-09-02 Editor device and recording medium recording editor program
EP00955074A EP1213633B9 (en) 1999-08-31 2000-08-28 Editor device and recorded medium on which editor program is recorded
EP07009511A EP1816532A3 (en) 1999-08-31 2000-08-28 Editing apparatus and recording medium in which editing program is recorded
CNB2004100004348A CN100368986C (en) 1999-08-31 2000-08-28 Editing device and storage medium for storage editor program
DE60045196T DE60045196D1 (en) 1999-08-31 2000-08-28 Editing device and recording medium with editing program recorded thereon
DE60035202T DE60035202T2 (en) 1999-08-31 2000-08-28 EDITING DEVICE AND RECORDING DEVICE RECORDING AN EDITING PROGRAM
AU67329/00A AU6732900A (en) 1999-08-31 2000-08-28 Editor device and recorded medium on which editor program is recorded
EP07009509A EP1816531A3 (en) 1999-08-31 2000-08-28 Editing apparatus and recording medium in which editing program is recorded
PCT/JP2000/005803 WO2001016657A1 (en) 1999-08-31 2000-08-28 Editor device and recorded medium on which editor program is recorded
US10/069,542 US7603183B1 (en) 1999-08-31 2000-08-28 Editor device and recorded medium on which editor program is recorded
CNB2004100004371A CN100368988C (en) 1999-08-31 2000-08-28 Editing device and storage medium for storage editor program
CNB2004100004386A CN1302375C (en) 1999-08-31 2000-08-28 Editor device and recording medium for storing an editor program
CNB008122660A CN1160601C (en) 1999-08-31 2000-08-28 Editor device and recorded medium on which editor program is recorded
EP07009510A EP1821166B1 (en) 1999-08-31 2000-08-28 Editing apparatus and recording medium in which editing program is recorded
CNB2004100004367A CN100368987C (en) 1999-08-31 2000-08-28 Editing device and storage medium for storage editor program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24922199A JP3195322B2 (en) 1999-09-02 1999-09-02 Editor device and recording medium recording editor program

Publications (2)

Publication Number Publication Date
JP2001075618A JP2001075618A (en) 2001-03-23
JP3195322B2 true JP3195322B2 (en) 2001-08-06

Family

ID=17189730

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24922199A Expired - Fee Related JP3195322B2 (en) 1999-08-31 1999-09-02 Editor device and recording medium recording editor program

Country Status (1)

Country Link
JP (1) JP3195322B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5485751B2 (en) * 2010-03-12 2014-05-07 光洋電子工業株式会社 Ladder diagram contact comment information input method and computer having the method

Also Published As

Publication number Publication date
JP2001075618A (en) 2001-03-23

Similar Documents

Publication Publication Date Title
US7603183B1 (en) Editor device and recorded medium on which editor program is recorded
US8843885B2 (en) Program creation support device
JP3847585B2 (en) Editor registration device, registration program, and recording medium recording the same
JP3847601B2 (en) Control display device, control program, and recording medium recording the same
JP4462426B2 (en) PLC tool device
JP3913414B2 (en) Editor device and recording medium recording editor program
JP3195322B2 (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
JP2002062910A (en) Editor device and storage medium recording editor program
JP2001075791A (en) Editor device and recording medium recording editor program
JP3795357B2 (en) Editor device, editor program, and recording medium recording the same
JP4322780B2 (en) Screen creation device, screen creation program and recording medium
JP3795473B2 (en) Editor device and recording medium recording editor program
JP3710731B2 (en) Editor device and recording medium recording editor program
JP2001075614A (en) Editor device and recording medium recording editor program
JP2001075616A (en) Editor device and recording medium recording editor program
JP3712640B2 (en) Editor device and recording medium recording editor program
JP4515434B2 (en) Unit information setting device, unit information setting program, and recording medium recording the same
JP3712641B2 (en) Editor device and recording medium recording editor program
JP3195321B2 (en) Editor device and recording medium recording editor program
JP4970105B2 (en) Editor device and editor program
JP2002244705A (en) Data transfer system and data transfer program for editor device
JP2005251014A (en) Control system, control monitor program, recording medium recorded with program therefor, editor device, editor program, and recording medium recorded with program therefor
JP2001075615A (en) Editor device and recording medium recording editor program
JP2001184198A (en) Retrieval system and computer readable recording medium storing retrieval program

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20090601

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100601

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100601

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110601

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110601

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120601

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20120601

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20130601

Year of fee payment: 12

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350