JP2011198237A - Programming support device, method, and program - Google Patents

Programming support device, method, and program Download PDF

Info

Publication number
JP2011198237A
JP2011198237A JP2010066262A JP2010066262A JP2011198237A JP 2011198237 A JP2011198237 A JP 2011198237A JP 2010066262 A JP2010066262 A JP 2010066262A JP 2010066262 A JP2010066262 A JP 2010066262A JP 2011198237 A JP2011198237 A JP 2011198237A
Authority
JP
Japan
Prior art keywords
input
file
output
control target
unit
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.)
Granted
Application number
JP2010066262A
Other languages
Japanese (ja)
Other versions
JP5508078B2 (en
Inventor
Tomio Noami
都夫 野網
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.)
Metawater Co Ltd
Original Assignee
Metawater Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Metawater Co Ltd filed Critical Metawater Co Ltd
Priority to JP2010066262A priority Critical patent/JP5508078B2/en
Publication of JP2011198237A publication Critical patent/JP2011198237A/en
Application granted granted Critical
Publication of JP5508078B2 publication Critical patent/JP5508078B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

PROBLEM TO BE SOLVED: To shorten a design time by improvement of working efficiency without requiring professional skill for programming.SOLUTION: A control part 40 generates input/out addresses defining the presence and position of control object equipment and given to the respective input/output terminals of a PLC 1 by the sticking operation of the control object equipment (various devices 3) symbolized on the template, and also generates respective definition files for defining information on allocation to the stuck control object equipment and further defining the sequence flow of the control object equipment stuck onto the template and the content of automatic control according to operation transition conditions. The control part 40 then converts the respective generated files into a file format decodable by a POD 2 and the PLC 1 based on file output instructions and outputs them to the POD 2 and PLC 1.

Description

本発明は、プログラマブルコントローラ(PLC)と、プログラマブル表示器(POD)とを含むプラント制御システムに接続され、PLCとPODのプログラム作成を支援する、プログラム作成支援装置および方法ならびにプログラムに関する。   The present invention relates to a program creation support apparatus and method, and a program, which are connected to a plant control system including a programmable controller (PLC) and a programmable display (POD) and support the creation of PLC and POD programs.

各種プラントの制御システムを構築する場合、通常は、システム仕様を紙で作成した後、ラダー図等のプログラムツール(ラダーエディタ)を用いてPC(Personal Computer)によりプログラミングを行う。ここで、プラントの制御対象機器(以下、デバイスという)の入出力割り付けや自動制御の設計を行い、作成された制御プログラムをPLC(Programmable Controller)にローディングしていた。PLCにローディングされた制御プログラムは、デバッグ及び現地テスト等が行なわれる。   When constructing control systems for various plants, the system specifications are usually created on paper, and then programmed using a PC (Personal Computer) using a program tool (ladder editor) such as a ladder diagram. Here, input / output assignment and automatic control design of a device to be controlled (hereinafter referred to as a device) of the plant are performed, and the created control program is loaded into a PLC (Programmable Controller). The control program loaded in the PLC is debugged and field tested.

一方、HMI(Human Machine Interface)機器として上記したPLCに接続されるPOD(登録商標)は、操作盤、スイッチ、表示灯等の役割を果たし、デバイスの動作状況や操作のためのモニタや設定値入力等の端末としての機能を備えている。PODに表示される画面は、作画エディタを用いてユーザが独自に作成できるようになっている。この画面作成にあたり、ユーザは、PLCと同じくPCを用い、作画ソフトによって提供される、スイッチ、表示灯、メータ等の部品描画機能により所望の画面を作成していた。   On the other hand, a POD (registered trademark) connected to the above-described PLC as an HMI (Human Machine Interface) device plays a role of an operation panel, a switch, an indicator light, etc., and the operation status of the device and a monitor or setting value for operation. It has functions as a terminal for input and the like. The screen displayed on the POD can be created independently by the user using a drawing editor. In creating this screen, the user has created a desired screen using a component drawing function such as a switch, an indicator lamp, and a meter provided by the drawing software using a PC as in the PLC.

ところで、ラダーエディタを用いた制御プログラムの作成と、作画エディタを用いた画面プログラムの作成は、通常は独立して行われる。例えば、作成された制御プログラムに基づき画面プログラムを作成する場合は、制御プログラム作成時、各デバイスについて入力された名称、及びアドレスをテーブル形式で書き留めた設計資料を用意し、その設計資料を参考にしながら入出力アドレス等の定義を含む画面プログラムの作成を行う。又、作成された画面プログラムに基づいて制御プログラムを作成する場合も同様、予め用意された設計資料に基づきその作業が行われる。専用機械語変換装置等(ローダ)により設計負担を軽減する例もあるが、回路がラダー以外の専門言語で記述される為、ラダーに比べ、試験の効率性が劣ることがある。   Incidentally, the creation of a control program using a ladder editor and the creation of a screen program using a drawing editor are usually performed independently. For example, when creating a screen program based on the created control program, prepare a design document in which the names and addresses entered for each device are written down in a table format when creating the control program. Create a screen program that includes definitions such as input / output addresses. Similarly, when a control program is created based on the created screen program, the work is performed based on design materials prepared in advance. Although there is an example in which the design burden is reduced by a dedicated machine language conversion device (loader) or the like, since the circuit is described in a specialized language other than the ladder, the efficiency of the test may be inferior compared to the ladder.

上記したプログラミング作業の効率改善のため、従来、ネットワーク構成情報とプロファイルデータ中のプログラム部品情報とを利用し、プログラミング対象機器において利用可能なプログラム部品を特定できるようにする技術が提案されている(例えば、特許文献1参照)。特許文献1に開示された技術によれば、利用可能なプログラム部品を識別する手間が省け、制御システムにおけるネットワークの設定とPLCやプログラマブル表示器等のプログラミング作業とを連携させてプログラミング作業の効率を向上させることが出来る。   In order to improve the efficiency of the programming work described above, there has been conventionally proposed a technique that uses network configuration information and program part information in profile data to identify program parts that can be used in a programming target device ( For example, see Patent Document 1). According to the technique disclosed in Patent Document 1, it is possible to save time and effort for identifying available program components, and to improve the efficiency of programming work by linking network settings in the control system with programming work such as PLC and programmable display. Can be improved.

特開2008−152799号公報JP 2008-152799 A

しかしながら、特許文献1に開示されたプログラムの作成方法によれば、プログラム作成者は、ラダー図(Ladder Diagram)やST(Structured Text)等の言語でプログラミングする必要があるため、専門技術を要し、初心者には馴染めないものになっていた。又、制御プログラム、画面プログラムともに、両プログラムに共通するデバイスに対応付けてそれぞれ作成するにも拘わらず、それぞれを独立して作成するため、デバイスのアドレスと命令及び部品との割り付けのための入出力操作が別途必要である。又、いずれも設計資料を作成する必要があるうえに、プログラム作成が全てユーザの入出力操作によるため、依然として作業効率が低く、プログラム作成に多大な時間を要していた。   However, according to the program creation method disclosed in Patent Document 1, the program creator needs to program in a language such as a ladder diagram (ST) (Structured Text) or the like. , It was unfamiliar to beginners. In addition, although both the control program and the screen program are created in association with the devices common to both programs, they are created independently, so that the addresses for the device, the instructions, and the parts are assigned. A separate output operation is required. In both cases, it is necessary to create design materials, and all the program creation is performed by user input / output operations. Therefore, the work efficiency is still low, and it takes a lot of time to create the program.

そこで、本発明は上記問題点に鑑みなされたものであって、プログラム作成に専門技術を要することなく、作業効率の改善によるプログラム設計時間の短縮を図った、プログラム作成支援装置および方法ならびにプログラムを提供することを目的とする。   Therefore, the present invention has been made in view of the above-described problems, and provides a program creation support apparatus, method, and program for reducing program design time by improving work efficiency without requiring specialized techniques for program creation. The purpose is to provide.

上記課題を解決するために、本発明のプログラム作成支援装置は、1以上の制御対象機器と、入出力端子に接続される前記制御対象機器の制御を行うプログラマブルコントローラと、前記制御対象機器の状態表示を行うと共に、前記プログラマブルコントローラへの操作入力を行うプログラマブル表示器とから成るプラント制御システムに接続され、前記プログラマブルコントローラと前記プログラマブル表示器とが実行するそれぞれのプログラムの作成を支援する、少なくとも、表示部と、操作部と、記憶部と、制御部とを含むプログラム作成支援装置であって、前記制御部は、前記表示部に表示されるテンプレート上に、前記操作部により、シンボル化された制御対象機器が貼り付け操作されることにより、前記制御対象機器の存在と位置を定義する第1の定義ファイルを生成して前記記憶部に格納し、前記操作部の設定入力に基づき、前記プログラマブルコントローラの入出力端子のそれぞれに付与される入出力アドレスと、前記貼り付けられた制御対象機器との割り付けに関する情報を定義する第2の定義ファイルを生成して前記記憶部に格納し、前記操作部の設定入力に基づき、前記テンプレート上に貼り付けられた制御対象機器のシーケンスフロー、並びに運転遷移の条件に従い自動制御の内容を定義する第3の定義ファイルを生成して前記記憶部に格納し、前記操作部によるファイル出力指示に基づき、前記記憶部から前記第1、第2、第3の定義ファイルを読み出し、前記第1の定義ファイルを前記プログラマブル表示器が解読可能なファイル形式に変換し、前記第2、第3の定義ファイルを、前記プログラマブルコントローラが解読可能なファイル形式に変換して、前記プログラマブル表示器と前記プログラマブルコントローラのそれぞれに出力する。   In order to solve the above problems, a program creation support apparatus according to the present invention includes one or more control target devices, a programmable controller that controls the control target devices connected to input / output terminals, and the state of the control target devices. It is connected to a plant control system comprising a programmable display that performs display and operation input to the programmable controller, and supports creation of each program executed by the programmable controller and the programmable display, at least, A program creation support apparatus including a display unit, an operation unit, a storage unit, and a control unit, wherein the control unit is symbolized by the operation unit on a template displayed on the display unit When the control target device is pasted, the presence of the control target device is determined. A first definition file that defines the input / output address is generated and stored in the storage unit, and the input / output address given to each of the input / output terminals of the programmable controller is pasted based on the setting input of the operation unit A second definition file that defines information related to allocation with the control target device is generated, stored in the storage unit, and a sequence of the control target device pasted on the template based on the setting input of the operation unit A third definition file that defines the contents of automatic control in accordance with the flow and operation transition conditions is generated and stored in the storage unit. Based on a file output instruction from the operation unit, the first and second 2, reading the third definition file, converting the first definition file into a file format readable by the programmable display, 2, a third definition file, the programmable controller is converted into a file format readable, and outputs to each of the programmable controller and the programmable display device.

本発明によれば、制御部は、テンプレート上にシンボル化された制御対象機器が貼り付け操作されることにより、制御対象機器の存在と位置を定義し、プログラマブルコントローラの入出力端子のそれぞれに付与される入出力アドレスと、貼り付けられた制御対象機器との割り付けに関する情報を定義し、更に、テンプレート上に貼り付けられた制御対象機器のシーケンスフロー、並びに運転遷移の条件に従い自動制御の内容を定義するための、それぞれの定義ファイルを生成する。そして、ファイル出力指示に基づき、生成された各定義ファイルを、プログラマブル表示器とプログラマブルコントローラが解読可能なファイル形式に変換してそれぞれに出力する。このため、プログラム作成に、テンプレートとシンボルを使用することにより、専門知識を要さず、初心者にも馴染み易く、又、プログラマブルコントローラとプログラマブル表示器による制御対象機器の割り付けのための入出力操作が統合されるため、プログラム設計工数の削減が図れる。   According to the present invention, the control unit defines the presence and position of the control target device by pasting the control target device symbolized on the template, and assigns it to each of the input / output terminals of the programmable controller. Defines information related to assignment of input / output addresses and pasted control target devices, and further defines the contents of automatic control according to the sequence flow of control target devices pasted on the template and the conditions of operation transition. Generate each definition file to define. Then, based on the file output instruction, each generated definition file is converted into a file format that can be read by the programmable display device and the programmable controller and output to each file format. For this reason, by using templates and symbols for program creation, specialized knowledge is not required and it is easy to become familiar with beginners, and input / output operations for allocation of control target devices by programmable controllers and programmable displays are possible. Since it is integrated, the program design man-hours can be reduced.

上記発明において、前記制御部は、前記プログラマブル表示器に前記第1の定義ファイルを、前記プログラマブルコントローラに前記第2、第3の定義ファイルをそれぞれ出力するにあたり、XML、CSV、バイナリ形式のいずれか一つに変換して出力する。本発明によれば、定義ファイルが、XML、CSV、バイナリ形式のいずれかで出力されるため、汎用のローダで読み込むことが出来、このため、専用の機械語変換装置を不要とし、且つ定義ファイルの受け渡しが容易になる。また、汎用の機械語変換装置を使用する為、回路はラダーで表現される。ラダー表現は、テスト確認において比較的分かりやすい為、作業者の負担が軽減される。   In the above invention, when the control unit outputs the first definition file to the programmable display and the second and third definition files to the programmable controller, any one of XML, CSV, and binary formats is output. Convert to one and output. According to the present invention, since the definition file is output in any of XML, CSV, and binary format, the definition file can be read by a general-purpose loader. Is easier to deliver. In addition, since a general-purpose machine language conversion device is used, the circuit is represented by a ladder. Ladder expressions are relatively easy to understand in test confirmation, reducing the burden on the operator.

上記発明において、前記制御部は、テストモード時、前記第2の定義ファイルから入出力アドレスを読み出し、前記読み出した入出力アドレスにテストデータを書き込んで入出力割り付けの正誤判定を行う。本発明によれば、プログラマブルコントローラとプログラマブル表示器とを接続してデバッグ等を行うテストモード時に、作成済みの定義ファイルを読み込むだけで入出力割り付け正誤の確認が容易に出来るため、デバッグに要する作業者の負担が軽減される。   In the above invention, in the test mode, the control unit reads an input / output address from the second definition file, writes test data to the read input / output address, and makes an input / output allocation correct / incorrect determination. According to the present invention, in a test mode in which a programmable controller and a programmable display are connected to perform debugging or the like, it is possible to easily check whether the input / output assignments are correct or not by simply reading the created definition file. The burden on the person is reduced.

本発明のプログラム作成支援方法は、1以上の制御対象機器と、入出力端子に接続される前記制御対象機器の制御を行うプログラマブルコントローラと、前記制御対象機器の状態表示を行うと共に、前記プログラマブルコントローラへの操作入力を行うプログラマブル表示器とから成るプラント制御システムに接続され、前記プログラマブルコントローラと前記プログラマブル表示器とが実行するそれぞれのプログラムの作成を支援するコンピュータに用いられるプログラム作成支援方法であって、表示部に表示されるテンプレート上に、操作部により、シンボル化された制御対象機器が貼り付け操作されることにより、前記制御対象機器の存在と位置を定義する第1の定義ファイルを生成して記憶部に格納する第1のステップと、前記操作部の設定入力に基づき、前記プログラマブルコントローラの入出力端子のそれぞれに付与される入出力アドレスと、前記貼り付けられた制御対象機器との割り付けに関する情報を定義する第2の定義ファイルを生成して前記記憶部に格納する第2のステップと、前記操作部の設定入力に基づき、前記テンプレート上に貼り付けられた制御対象機器のシーケンスフロー、並びに運転遷移の条件に従い自動制御の内容を定義する第3の定義ファイルを生成して前記記憶部に格納する第3のステップと、前記操作部によるファイル出力指示に基づき、前記記憶部から前記第1、第2、第3の定義ファイルを読み出し、前記第1の定義ファイルを前記プログラマブル表示器が解読可能なファイル形式に変換し、前記第2、第3の定義ファイルを、前記プログラマブルコントローラが解読可能なファイル形式に変換して、前記プログラマブル表示器と前記プログラマブルコントローラのそれぞれに出力する第4のステップと、を有する。   The program creation support method of the present invention includes one or more control target devices, a programmable controller that controls the control target device connected to an input / output terminal, a status display of the control target device, and the programmable controller A program creation support method used in a computer that is connected to a plant control system including a programmable display that performs operation input to the computer and supports the creation of each program executed by the programmable controller and the programmable display. The symbolized control target device is pasted on the template displayed on the display unit by the operation unit to generate a first definition file that defines the presence and position of the control target device. A first step of storing in the storage unit and the operation Based on the setting input, a second definition file that defines input / output addresses assigned to each of the input / output terminals of the programmable controller and information on allocation of the pasted control target devices is generated, and Based on the second step of storing in the storage unit and the setting input of the operation unit, the third step of defining the contents of automatic control according to the sequence flow of the control target device pasted on the template and the condition of operation transition A first step of generating the definition file and storing the definition file in the storage unit; and reading out the first, second, and third definition files from the storage unit based on a file output instruction from the operation unit; 1 definition file is converted into a file format readable by the programmable display, and the second and third definition files are converted into the file format Log Lama Bull controller is converted into a file format readable, having a fourth step of outputting to each of the programmable controller and the programmable display device.

上記発明において、前記第4のステップは、前記プログラマブル表示器に前記第1の定義ファイルを、前記プログラマブルコントローラに前記第2、第3の定義ファイルをそれぞれ出力するにあたり、XML、CSV、バイナリ形式のいずれか一つに変換して出力するサブステップを有する。   In the above invention, in the fourth step, the first definition file is output to the programmable display, and the second and third definition files are output to the programmable controller. It has a sub-step for converting to any one and outputting.

上記発明において、テストモード時、前記第2の定義ファイルから入出力アドレスを読み出し、前記読み出した入出力アドレスにテストデータを書き込んで入出力割り付けの正誤判定を行う第5のステップを更に有する。   In the above invention, in the test mode, the method further includes a fifth step of reading an input / output address from the second definition file, writing test data to the read input / output address, and determining whether the input / output assignment is correct or incorrect.

本発明のプログラム作成支援プログラムは、1以上の制御対象機器と、入出力端子に接続される前記制御対象機器の制御を行うプログラマブルコントローラと、前記制御対象機器の状態表示を行うと共に、前記プログラマブルコントローラへの操作入力を行うプログラマブル表示器とから成るプラント制御システムを対象とし、前記プログラマブルコントローラと前記プログラマブル表示器とが実行するそれぞれのプログラムの作成を支援するプログラム作成支援装置のコンピュータ上で実行されるプログラム作成支援プログラムであって、コンピュータに、表示部に表示されるテンプレート上に、操作部により、シンボル化された制御対象機器が貼り付け操作されることにより、前記制御対象機器の存在と位置を定義する第1の定義ファイルを生成して記憶部に格納する処理と、前記操作部の設定入力に基づき、前記プログラマブルコントローラの入出力端子のそれぞれに付与される入出力アドレスと、前記貼り付けられた制御対象機器との割り付けに関する情報を定義する第2の定義ファイルを生成して前記記憶部に格納する処理と、前記操作部の設定入力に基づき、前記テンプレート上に貼り付けられた制御対象機器のシーケンスフロー、並びに運転遷移の条件に従い自動制御の内容を定義する第3の定義ファイルを生成して前記記憶部に格納する処理と、前記操作部によるファイル出力指示に基づき、前記記憶部から前記第1、第2、第3の定義ファイルを読み出し、前記第1の定義ファイルを前記プログラマブル表示器が解読可能なファイル形式に変換し、前記第2、第3の定義ファイルを、前記プログラマブルコントローラが解読可能なファイル形式に変換して、前記プログラマブル表示器と前記プログラマブルコントローラのそれぞれに出力する処理と、を実行させる。   The program creation support program of the present invention includes one or more control target devices, a programmable controller that controls the control target device connected to an input / output terminal, a status display of the control target device, and the programmable controller Targeted for a plant control system comprising a programmable display that performs operation input to the program, the program is executed on a computer of a program creation support apparatus that supports creation of each program executed by the programmable controller and the programmable display. A program creation support program, in which the control target device symbolized by the operation unit is pasted and operated on a template displayed on the display unit on a computer, thereby determining the presence and position of the control target device. First definition file to be defined Is generated and stored in the storage unit, and the input / output address assigned to each of the input / output terminals of the programmable controller based on the setting input of the operation unit and allocation of the pasted control target device A process for generating a second definition file for defining information on the storage unit and storing the second definition file in the storage unit, a sequence flow of a control target device pasted on the template based on a setting input of the operation unit, and an operation transition Based on the process of generating a third definition file for defining the contents of automatic control according to the condition of the above and storing the third definition file in the storage unit, and the file output instruction by the operation unit, the first, second, second from the storage unit 3 definition files are read, the first definition file is converted into a file format readable by the programmable display, and the second and second The definition file, the programmable controller is converted into a file format readable to execute a process of outputting to each of the programmable display device and the programmable controller.

本発明において、前記コンピュータに、前記プログラマブル表示器に前記第1の定義ファイルを、前記プログラマブルコントローラに前記第2、第3の定義ファイルをそれぞれ出力するにあたり、XML、CSV、バイナリ形式のいずれか一つに変換して出力する処理を実行させる。   In the present invention, when the first definition file is output to the computer, the second definition file is output to the programmable controller, and the second definition file is output to the programmable controller. Execute the process of converting to a file and outputting.

本発明において、前記コンピュータに、テストモード時、前記第2の定義ファイルから入出力アドレスを読み出し、前記読み出した入出力アドレスにテストデータを書き込んで入出力割り付け及び制御の正誤判定を行う処理を更に実行させる。   In the present invention, in the test mode, the computer further reads the input / output address from the second definition file, writes the test data to the read input / output address, and performs input / output allocation and control correctness determination. Let it run.

本発明によれば、プログラム作成に専門技術を要することなく、作業効率の改善によるプログラム設計時間の短縮を図った、プログラム作成支援装置および方法ならびにプログラムを提供することができる。   According to the present invention, it is possible to provide a program creation support apparatus and method, and a program that can shorten the program design time by improving work efficiency without requiring a special technique for program creation.

本発明の実施形態に係るプログラム作成支援装置の接続構成を示す図である。It is a figure which shows the connection structure of the program creation assistance apparatus which concerns on embodiment of this invention. 本発明の実施形態に係るプログラム作成支援装置の構成を示すブロック図である。It is a block diagram which shows the structure of the program creation assistance apparatus which concerns on embodiment of this invention. 本発明の実施形態に係るプログラム作成装置が有する基本DBのデータ構造の一例を示す図である。It is a figure which shows an example of the data structure of basic DB which the program creation apparatus concerning embodiment of this invention has. 本発明の実施形態に係るプログラム作成装置が有する操作回路用DBのデータ構造の一例を示す図である。It is a figure which shows an example of the data structure of DB for operation circuits which the program creation apparatus concerning embodiment of this invention has. 本発明の実施形態に係るプログラム作成装置が有する工程用DBのデータ構造の一例を示す図である。It is a figure which shows an example of the data structure of process DB which the program preparation apparatus concerning embodiment of this invention has. 本発明の実施形態に係るプログラム作成装置が有する表示用DBのデータ構造の一例を示す図である。It is a figure which shows an example of the data structure of DB for display which the program creation apparatus concerning embodiment of this invention has. 本発明の実施形態に係るプログラム作成装置が有するPID用DBのデータ構造の一例を示す図である。It is a figure which shows an example of the data structure of DB for PID which the program creation apparatus which concerns on embodiment of this invention has. 本発明の実施形態に係るプログラム作成装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the program creation apparatus which concerns on embodiment of this invention. 本発明の実施形態に係るプログラム作成装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the program creation apparatus which concerns on embodiment of this invention. 本発明の実施形態に係るプログラム作成装置により生成されるプログラム作成支援画面の構成及びその遷移図である。It is a structure of the program creation assistance screen produced | generated by the program creation apparatus which concerns on embodiment of this invention, and its transition diagram.

以下、添付図面を参照して、本発明を実施するための形態(以下、実施形態)について詳細に説明する。なお、実施形態の説明の全体を通して同じ要素には同じ番号を付している。   DESCRIPTION OF EMBODIMENTS Hereinafter, embodiments for carrying out the present invention (hereinafter referred to as embodiments) will be described in detail with reference to the accompanying drawings. Note that the same number is assigned to the same element throughout the description of the embodiment.

(実施形態の構成)
図1は、本発明の実施形態に係るプログラム作成支援装置の接続構成を示す図である。図1に示されるように、プログラム作成支援装置4は、制御対象としての電動機や弁等の各種デバイス3と、これらデバイス3が接続されるPLC1と、入力・表示機能を有するPOD2とを含むプラント制御システムに接続される。
(Configuration of the embodiment)
FIG. 1 is a diagram showing a connection configuration of a program creation support apparatus according to an embodiment of the present invention. As shown in FIG. 1, the program creation support apparatus 4 includes a plant including various devices 3 such as an electric motor and a valve to be controlled, a PLC 1 to which these devices 3 are connected, and a POD 2 having an input / display function. Connected to the control system.

PLC1は、制御ユニット11と、入出力ユニット(入出力端子12)から構成される。制御ユニット11は、PLC1全体を制御するシーケンサであり、POD2と、プログラム作成支援装置4を接続する入出力ポートを有する。入出力ユニット12は、上記した各種デバイス3が接続され、これらデバイス3から信号を取り込み、又、各種デバイス3に対して制御ユニット11により生成される制御信号等を出力する機能を有する。尚、PLC1は、不図示の電源ユニットも有しており、又、入出力ユニット12を介して不図示の他のPLCとも接続可能である。   The PLC 1 includes a control unit 11 and an input / output unit (input / output terminal 12). The control unit 11 is a sequencer that controls the entire PLC 1, and has an input / output port that connects the POD 2 and the program creation support device 4. The input / output unit 12 is connected to the various devices 3 described above, and has a function of taking in signals from these devices 3 and outputting control signals generated by the control unit 11 to the various devices 3. The PLC 1 also has a power supply unit (not shown), and can be connected to another PLC (not shown) via the input / output unit 12.

POD2は、PLC1に接続され、PLC1に接続されている各種デバイス3の稼動状況を表示する機能を有すると共に、制御指令を与えるための入力操作画面等を表示して入力を受け付ける機能を有する。尚、POD2は、表示画面をタッチパネル等により入出力機能を兼ねるように構成しても良い。   The POD 2 is connected to the PLC 1 and has a function of displaying operation statuses of various devices 3 connected to the PLC 1 and also has a function of displaying an input operation screen for giving a control command and receiving an input. The POD 2 may be configured such that the display screen also serves as an input / output function using a touch panel or the like.

プログラム作成支援装置4は、例えば、PCで構成され、PLC1が実行する制御プログラムと、POD2が実行する画面プログラムの作成を支援する機能を有する。プログラム作成支援装置4は、図2に示されるように、制御部40と、操作部41と、表示部42と、記憶部43とから構成される。   The program creation support apparatus 4 is composed of, for example, a PC and has a function of supporting creation of a control program executed by the PLC 1 and a screen program executed by the POD 2. As shown in FIG. 2, the program creation support apparatus 4 includes a control unit 40, an operation unit 41, a display unit 42, and a storage unit 43.

制御部40は、記憶部43に格納されたプログラムに基づいて処理を実行するコンピュータ(マイクロプロセッサ)を備えており、これらプログラムにおいて指示された手順に従って後述する処理を実行する。すなわち、制御部40は、記憶部43に格納されるOS(オペレーティングシステム)や、本発明のプログラム作成支援プログラムを含むアプリケーションプログラム等のプログラムから命令コードを順次読み込んで処理を実行する。   The control unit 40 includes a computer (microprocessor) that executes processing based on a program stored in the storage unit 43, and executes processing to be described later according to a procedure instructed in these programs. That is, the control unit 40 sequentially reads instruction codes from an OS (operating system) stored in the storage unit 43 and a program such as an application program including the program creation support program of the present invention and executes processing.

操作部41は、例えば、電源キー、通話キー、数字キー、文字キー、方向キー、決定キー、発信キー、ファンクションキーなど、各種の機能が割り当てられたキー、あるいはマウス等のポインティングデバイスを有しており、これらキー、あるいはマウスがユーザによって操作された場合に、その操作内容に対応する信号を発生し、これをユーザの指示として制御部40に出力する。   The operation unit 41 includes, for example, a key to which various functions are assigned, such as a power key, a call key, a numeric key, a character key, a direction key, a determination key, a call key, and a function key, or a pointing device such as a mouse. When these keys or the mouse are operated by the user, a signal corresponding to the operation content is generated and output to the control unit 40 as a user instruction.

表示部42は、多数の画素(複数色の発光素子の組み合わせ)を縦横に配して構成される、例えばLCD(Liquid Crystal Display Device)や有機EL(Electro-Luminescence)を用いて構成される。表示部42は、制御部40により生成され、記憶部43の所定の領域(VRAM領域)に描画された表示対象データに応じた画像を表示する。   The display unit 42 is configured using, for example, an LCD (Liquid Crystal Display Device) or an organic EL (Electro-Luminescence), which is configured by arranging a large number of pixels (a combination of light emitting elements of a plurality of colors) vertically and horizontally. The display unit 42 displays an image corresponding to the display target data generated by the control unit 40 and drawn in a predetermined area (VRAM area) of the storage unit 43.

記憶部43は、プログラム作成支援装置4によるプログラム作成支援処理に利用される各種データを記憶する。例えば、制御部40が実行する2プログラム作成支援プログラム、各種設定データ、プログラムの処理過程で生成される、後述する基本DB(Data Base)431、操作回路用DB432、工程用DB433、PID(Proportional/Integral/Differential)用DB434、表示用DB435、そして、成果物である、POD画面ファイル436、PODシンボル用定義ファイル437、POD割り付けファイル438、PLCラダーファイル439、PLCシーケンス割り付けファイル440等のデータが格納される。記憶部43は、例えば、不揮発性の記憶デバイス(不揮発性半導体メモリ、ハードディスク装置、光ディスク装置など)やランダムアクセス可能な記憶デバイス(例えばSRAM、DRAM)などによって構成される。   The storage unit 43 stores various data used for program creation support processing by the program creation support device 4. For example, two program creation support programs executed by the control unit 40, various setting data, a basic DB (Data Base) 431, an operation circuit DB 432, a process DB 433, a PID (Proportional / Integral / Differential) DB 434, display DB 435, and data such as POD screen file 436, POD symbol definition file 437, POD allocation file 438, PLC ladder file 439, and PLC sequence allocation file 440 are stored. Is done. The storage unit 43 includes, for example, a nonvolatile storage device (nonvolatile semiconductor memory, hard disk device, optical disk device, etc.), a randomly accessible storage device (eg, SRAM, DRAM), or the like.

制御部40は、(1)表示部42に表示されるテンプレート上に、操作部41により、シンボル化された制御対象機器が貼り付け操作されることにより、各種デバイス3の存在と位置を定義する第1の定義ファイル(基本DB431の一部領域)を生成して記憶部43に格納し、(2)操作部41の設定入力に基づき、PLC1の入出力端子(入出力ユニット12)のそれぞれに付与される入出力アドレスと、貼り付けられた各種デバイス3との割り付けに関する情報を定義する第2の定義ファイル(基本DB431の一部領域)を生成して記憶部42に格納し、(3)操作部41の設定入力に基づき、テンプレート上に貼り付けられた各種デバイス3のシーケンスフロー、並びに運転遷移の条件に従い自動制御の内容を定義する第3の定義ファイル(工程DB433等)を生成して記憶部43に格納し、(4)操作部41によるファイル出力指示に基づき、記憶部43から、第1、第2、第3の定義ファイルを読み出し、第1の定義ファイルをPOD2が解読可能なファイル形式に変換し、前記第2、第3の定義ファイルを、PLC1が解読可能なファイル形式に変換して、POD2とPLC1のそれぞれに出力する機能を有する。   The control unit 40 defines (1) the presence and position of various devices 3 by pasting the control target device symbolized by the operation unit 41 on the template displayed on the display unit 42. The first definition file (partial area of the basic DB 431) is generated and stored in the storage unit 43. (2) Based on the setting input of the operation unit 41, each of the input / output terminals (input / output unit 12) of the PLC 1 A second definition file (partial area of the basic DB 431) that defines information related to the assigned input / output addresses and the pasted various devices 3 is generated and stored in the storage unit 42. (3) Based on the setting input of the operation unit 41, the third definition that defines the contents of automatic control according to the sequence flow of various devices 3 pasted on the template and the conditions of operation transition A file (process DB 433 and the like) is generated and stored in the storage unit 43. (4) Based on the file output instruction from the operation unit 41, the first, second, and third definition files are read from the storage unit 43, and the first A function of converting one definition file into a file format decipherable by POD2, converting the second and third definition files into a file format decodable by PLC1 and outputting them to each of POD2 and PLC1 .

このため、制御部40は、主制御部400と、テンプレート生成部401と、描画・表示制御部402と、定義ファイル生成部403と、操作入力取得部404と、ファイル変換部405と、ファイル出力部406とを含み、構成される。   Therefore, the control unit 40 includes a main control unit 400, a template generation unit 401, a drawing / display control unit 402, a definition file generation unit 403, an operation input acquisition unit 404, a file conversion unit 405, and a file output. Part 406.

テンプレート生成部401は、例えば、図10(a)にその一例が示されるように、シンボル化された各種デバイス3を空白状態として示す典型的な系統制御システムをグラフィカルな図として示されるテンプレート情報を生成出力する機能を有する。描画・表示制御部402は、テンプレート生成部401により生成されたテンプレートと、操作部41を操作(例えば、ドラッグ&ドロップ)することによって貼り付けられる各種デバイス3のシンボルとを合成した表示情報を不図示のVRAMに描画し、VRAMに描画された表示情報を、表示部42の表示タイミングに同期して読み出し、表示部42に表示するための描画・表示制御を行う。   For example, as shown in FIG. 10A, the template generation unit 401 generates template information indicating a typical system control system showing various symbolized devices 3 in a blank state as a graphical diagram. It has a function to generate and output. The drawing / display control unit 402 does not display display information obtained by combining the template generated by the template generation unit 401 and the symbols of various devices 3 pasted by operating the operation unit 41 (for example, drag and drop). Drawing is performed in the illustrated VRAM, and display information drawn in the VRAM is read out in synchronization with the display timing of the display unit 42, and drawing / display control for displaying on the display unit 42 is performed.

定義ファイル生成部403は、主制御部400による制御の下で、表示部42に表示されるテンプレート上に、操作部41により、シンボル化された制御対象機器が貼り付け操作されることにより、各種デバイス3の存在と位置を定義する第1の定義ファイルを生成して記憶部43の一部領域に基本DB431として格納する機能を有する。定義ファイル生成部403は又、操作部41の設定入力に基づき、PLC1の入出力端子(入出力ユニット12)のそれぞれに付与される入出力アドレスと、貼り付けられた各種デバイス3との割り付けに関する情報を定義する第2の定義ファイルを生成して記憶部43の一部領域に基本DB431として割り付け格納する機能を有する。   The definition file generation unit 403 performs various operations by pasting the control target device symbolized by the operation unit 41 on the template displayed on the display unit 42 under the control of the main control unit 400. It has a function of generating a first definition file that defines the presence and position of the device 3 and storing it as a basic DB 431 in a partial area of the storage unit 43. The definition file generation unit 403 also relates to the allocation of the input / output addresses given to the input / output terminals (input / output unit 12) of the PLC 1 and the pasted various devices 3 based on the setting input of the operation unit 41. It has a function of generating a second definition file for defining information and allocating and storing it as a basic DB 431 in a partial area of the storage unit 43.

定義ファイル生成部403は、更に、操作部41の設定入力に基づき、テンプレート上に貼り付けられた各種デバイス3のシーケンスフロー、並びに運転遷移の条件に従い自動制御の内容を定義する第3の定義ファイルを生成して記憶部43の一部領域に工程DB433として割り付け格納する機能を有する。尚、定義ファイル生成部403により生成される他の定義ファイルは、PID用DB434、表示用DB435として記憶部43の一部領域に割り当てられ格納される。これらDBのデータ構造の詳細は、図3〜図7を参照して後述する。   The definition file generation unit 403 further includes a third definition file that defines the contents of automatic control according to the sequence flow of various devices 3 pasted on the template and the operation transition conditions based on the setting input of the operation unit 41. Is generated and assigned and stored as a process DB 433 in a partial area of the storage unit 43. Other definition files generated by the definition file generation unit 403 are allocated and stored in a partial area of the storage unit 43 as a PID DB 434 and a display DB 435. Details of the data structure of these DBs will be described later with reference to FIGS.

操作入力取得部404は、ユーザが操作部41を操作することにより得られる入力情報を取り込んで、主制御部400及び描画・表示制御部402に転送する機能を有する。   The operation input acquisition unit 404 has a function of taking input information obtained by the user operating the operation unit 41 and transferring the input information to the main control unit 400 and the drawing / display control unit 402.

ファイル変換部405は、主制御部400による制御の下、操作部41によるファイル出力指示に基づき、記憶部43から、基本DB431、操作回路用DB432、工程用DB433、PID用DB434、表示用DB435の内容を読み出し、それぞれの定義ファイルを、POD2が解読可能なファイル形式に変換して、POD画面ファイル436、PODシンボル用定義ファイル437、POD割り付けファイル438とし、又、PLC1が解読可能なファイル形式に変換して、PLCラダーファイル439、PLCシーケンス割り付けファイル440とし、それぞれのファイルをファイル出力部406に引き渡す機能を有する。   Under the control of the main control unit 400, the file conversion unit 405 stores the basic DB 431, operation circuit DB 432, process DB 433, PID DB 434, and display DB 435 from the storage unit 43 based on a file output instruction from the operation unit 41. The contents are read, and each definition file is converted into a file format that can be decoded by POD2, resulting in a POD screen file 436, a POD symbol definition file 437, a POD allocation file 438, and a file format that PLC1 can decode. These are converted into a PLC ladder file 439 and a PLC sequence allocation file 440, and each file is delivered to the file output unit 406.

ファイル出力部406は、主制御部400による制御の下、ファイル変換部405により引き渡される、POD画面ファイル436、PODシンボル用定義ファイル437、POD割り付けファイル438をPOD2に転送し、PLCラダーファイル439、PLCシーケンス割り付けファイル440を、PLC1に転送する機能を有する。   The file output unit 406 transfers the POD screen file 436, the POD symbol definition file 437, and the POD allocation file 438 delivered by the file conversion unit 405 to the POD 2 under the control of the main control unit 400, and the PLC ladder file 439. It has a function of transferring the PLC sequence allocation file 440 to the PLC 1.

尚、主制御部400は、制御部40が、(1)表示部42に表示されるテンプレート上に、操作部41により、シンボル化された制御対象機器が貼り付け操作されることにより、各種デバイス3の存在と位置を定義する第1の定義ファイル(後述する基本DBの一部領域)を生成して記憶部43に格納し、(2)操作部41の設定入力に基づき、PLC1の入出力端子(入出力ユニット12)のそれぞれに付与される入出力アドレスと、貼り付けられた各種デバイス3との割り付けに関する情報を定義する第2の定義ファイル(後述する基本DBの一部領域)を生成して記憶部42に格納し、(3)操作部41の設定入力に基づき、テンプレート上に貼り付けられた各種デバイス3のシーケンスフロー、並びに運転遷移の条件に従い自動制御の内容を定義する第3の定義ファイル(後述する工程DB等)を生成して記憶部43に格納し、(4)操作部41によるファイル出力指示に基づき、記憶部43から第1、第2、第3の定義ファイルを読み出し、第1の定義ファイルをPOD2が解読可能なファイル形式に変換し、前記第2、第3の定義ファイルを、PLC1が解読可能なファイル形式に変換して、POD2とPLC1のそれぞれに出力する機能を実現するために、上記した、テンプレート生成部401、描画・表示制御部402と、定義ファイル生成部403、操作入力取得部404、ファイル変換部405、ファイル出力部406のシーケンス制御を行う。   The main control unit 400 is configured so that the control unit 40 (1) pastes the control target device symbolized on the template displayed on the display unit 42 by the operation unit 41, thereby various devices. 3 is generated and stored in the storage unit 43, and (2) the input / output of the PLC 1 based on the setting input of the operation unit 41 Generates a second definition file (a partial area of a basic DB described later) that defines input / output addresses assigned to each terminal (input / output unit 12) and information related to the allocation of the various devices 3 attached. (3) Based on the setting input of the operation unit 41, automatic control is performed according to the sequence flow of various devices 3 pasted on the template and the conditions of operation transition. A third definition file (process DB or the like to be described later) for defining the contents is generated and stored in the storage unit 43. (4) Based on the file output instruction from the operation unit 41, the first, second, The third definition file is read, the first definition file is converted into a file format readable by POD2, the second and third definition files are converted into a file format readable by PLC1, and POD2 In order to realize the function of outputting to each of the PLC 1, the template generation unit 401, the drawing / display control unit 402, the definition file generation unit 403, the operation input acquisition unit 404, the file conversion unit 405, and the file output unit 406 described above. Perform sequence control.

尚、上記した制御部40において、各ブロック間の接続は、実際のハードウエア構成における各構成要素間の物理的な接続関係を示すものではなく、各ブロック間の主な信号の流れを示すものである。   In the control unit 40 described above, the connection between the blocks does not indicate a physical connection relationship between the components in the actual hardware configuration, but indicates a main signal flow between the blocks. It is.

図3に基本DB431、図4に操作回路用DB432、図5に工程用DB433、図6に表示用DB、図7にPID用DB434の、それぞれのデータ構造の一例が示されている。   FIG. 3 shows an example of the data structure of the basic DB 431, FIG. 4 shows the operation circuit DB 432, FIG. 5 shows the process DB 433, FIG. 6 shows the display DB, and FIG. 7 shows the PID DB 434.

図3において、基本DB431は、PLC1に接続される、ポンプ#1〜#6、弁#1〜#6等、各種デバイス3毎に、「定義の有無」、「PODの表示位置」、「回路パターン」、「割り付け定義」、「内部メモリの割り付け」等の各データフィールドで各エントリが構成される。このうち、「定義の有無」、「POD2の表示位置」、「回路パターン」については、テンプレート上に各種デバイス3が貼り付け操作されることにより定義され、後述するように、POD画面ファイル436として変換出力される。又、「割り付け定義」のデータフィールドに設定されたデータについては、各種デバイス3の入出力割り付け操作により定義され、後述するように、PLCシーケンス割り付けファイル440として変換され出力される。   In FIG. 3, the basic DB 431 is connected to the PLC 1 for each device 3 such as pumps # 1 to # 6, valves # 1 to # 6, etc., “presence / absence of definition”, “POD display position”, “circuit” Each entry is composed of data fields such as “pattern”, “allocation definition”, and “allocation of internal memory”. Among these, “presence / absence of definition”, “display position of POD 2”, and “circuit pattern” are defined by pasting various devices 3 on the template, and as described later, as a POD screen file 436. Converted output. The data set in the “assignment definition” data field is defined by the input / output assignment operation of the various devices 3, and is converted and output as a PLC sequence assignment file 440 as will be described later.

尚、「内部メモリの割り付け」のデータフィールドは、ここで定義された、POD画面ファイルとシーケンス割り付けファイルの一覧を示す。ここで、内部メモリとは、記憶部43の一部領域に割り付けられる作業領域のことをいう。   The data field “internal memory allocation” shows a list of POD screen files and sequence allocation files defined here. Here, the internal memory refers to a work area allocated to a partial area of the storage unit 43.

図4において、操作回路用DB432は、操作部41による操作フローの設定によって定義されるデータテーブルであり、PLC1に接続される、例えば、ポンプ#1〜#6、弁#1〜#6等、テンプレートに貼り付けられた各種デバイス3毎に、「手動運転用」、「自動運転用」、「運転用」、「手動停止用」、「自動停止用」、「停止用」のそれぞれにおける起動条件及び停止条件が定義される。ここで定義された内容は、後述するように、PLCラダーファイル439として変換出力される。   In FIG. 4, the operation circuit DB 432 is a data table defined by the operation flow setting by the operation unit 41, and is connected to the PLC 1, for example, pumps # 1 to # 6, valves # 1 to # 6, etc. For each of the devices 3 pasted on the template, start conditions for “manual operation”, “automatic operation”, “operation”, “manual stop”, “automatic stop”, and “stop” And stop conditions are defined. The contents defined here are converted and output as a PLC ladder file 439 as described later.

図5において、工程用DB433は、操作部41によるシーケンスフロー、及び遷移条件の設定操作により定義されるデータターブルであり、工程#1〜#5毎に、「操作指令」、「スタート条件」、「終了条件」がそれぞれ定義される。このうち、「操作指令」はケンスフローの設定により、「スタート条件」は予め内部メモリに割り付けられ、「終了条件」は、遷移条件設定により定義されるものであり、いずれもPLCラダーファイル439として変換出力される。   In FIG. 5, the process DB 433 is a data table defined by a sequence flow by the operation unit 41 and a transition condition setting operation. For each process # 1 to # 5, an “operation command”, “start condition”, Each “end condition” is defined. Of these, the “operation command” is set by the Kens flow setting, the “start condition” is pre-allocated to the internal memory, and the “end condition” is defined by the transition condition setting, and both are converted as the PLC ladder file 439. Is output.

図6において、表示用DB435は、操作部41によるアラーム(信号種別)の設定操作により定義されるデータテーブルである。ここでは、ポンプ等の各種デバイス3毎に、「信号種別」、「履歴の有無」、「故障」等の情報が定義される。これら定義情報は、POD画面ファイル436として変換出力される。   In FIG. 6, the display DB 435 is a data table defined by an alarm (signal type) setting operation by the operation unit 41. Here, information such as “signal type”, “presence / absence of history”, and “failure” are defined for each of various devices 3 such as a pump. The definition information is converted and output as a POD screen file 436.

図7において、PID用DB434は、操作部41によるPID設定操作によって定義されるデータテーブルであり、PID(PID#1〜#6)毎に、PV(制御入力)、SV(設定入力)、MV(設定出力)等のパラメータが定義される。これら定義情報は、PLCシーケンス割り付けファイル440として変換出力される。   In FIG. 7, a PID DB 434 is a data table defined by a PID setting operation by the operation unit 41. For each PID (PID # 1 to # 6), PV (control input), SV (setting input), MV Parameters such as (setting output) are defined. The definition information is converted and output as a PLC sequence allocation file 440.

(実施形態の動作)
以下、図8、図9のフローチャート、及び図10のプログラム作成支援画面の遷移図を参照しながら、図1〜図7に示した本発明の実施形態に係るプログラム作成支援装置4の動作について詳細に説明する。
(Operation of the embodiment)
Hereinafter, the operation of the program creation support apparatus 4 according to the embodiment of the present invention shown in FIGS. 1 to 7 will be described in detail with reference to the flowcharts of FIGS. 8 and 9 and the transition diagram of the program creation support screen of FIG. Explained.

尚、図10(a)は設計支援画面(テンプレート)、図10(b)は各種デバイス3の入出力割り付け及び運転条件設定画面、図10(c)は操作回路の設定画面、図10(d)は工程フローの設定画面、図10(e)は工程遷移条件の設定画面、図10(f)はPID条件の設定画面、図10(g)はアラーム(信号種別)の設定画面の、それぞれを示す。   10A is a design support screen (template), FIG. 10B is an input / output assignment and operation condition setting screen of various devices 3, FIG. 10C is an operation circuit setting screen, and FIG. ) Is a process flow setting screen, FIG. 10E is a process transition condition setting screen, FIG. 10F is a PID condition setting screen, and FIG. 10G is an alarm (signal type) setting screen. Indicates.

プログラム作成を開始するにあたり、制御部40(主制御部400)は、まず、描画・表示制御部402を起動して、表示部42に、テンプレート生成部401により生成されるプログラム作成支援画面を表示する(図8のステップS101)。このプログラム作成支援画面の画面構成の一例は、例えば、図10(a)に示されている。図10(a)に示されるように、表示部42の有効画面中には、例えば、プラントを構成する各種デバイス3としての「弁」を配置する領域が空白になっている典型的なプラント系統図がテンプレートとて示されている。ユーザは、このプログラム作成支援画面を確認しながら、操作部41を操作することにより、不図示の領域にリスト表示されている、例えば、「弁」のシンボルをその空白領域にドラッグして系統図を完成させていく。   In starting the program creation, the control unit 40 (main control unit 400) first activates the drawing / display control unit 402 and displays the program creation support screen generated by the template generation unit 401 on the display unit 42. (Step S101 in FIG. 8). An example of the screen configuration of this program creation support screen is shown in FIG. 10 (a), for example. As shown in FIG. 10 (a), in the effective screen of the display unit 42, for example, a typical plant system in which a region where “valves” as various devices 3 constituting the plant are arranged is blank. The figure is shown as a template. While confirming this program creation support screen, the user operates the operation unit 41 to drag, for example, a “valve” symbol displayed in a list in an unillustrated area to the blank area. Will be completed.

これを受けて操作入力取得部404は、ドラッグされた各種デバイス3の表示位置(XY座標)に関する情報を取り込んで主制御部400に転送する。主制御部400は、操作入力取得部404から転送された情報に基づき、シンボル選択操作の有無と、シンボル選択操作があった場合のドラッグ位置に関する情報とを取り込むと(ステップS102“YES”)、再度、描画・表示制御部402を起動してテンプレートにシンボルを貼り付けるべく、テンプレートとシンボルとを合成して表示部42に表示する(ステップS103)。   In response to this, the operation input acquisition unit 404 takes in information related to the display position (XY coordinates) of the dragged various devices 3 and transfers the information to the main control unit 400. Based on the information transferred from the operation input acquisition unit 404, the main control unit 400 takes in the presence / absence of a symbol selection operation and information on the drag position when the symbol selection operation is performed ("YES" in step S102). The drawing / display control unit 402 is activated again, and the template and the symbol are combined and displayed on the display unit 42 in order to paste the symbol on the template (step S103).

続いて、主制御部400は、定義ファイル生成部403を起動する。これを受けた定義ファイル生成部403は、主制御部400を介して取得された各シンボルの位置情報から、貼り付けら各種デバイス毎の表示位置情報を生成して記憶部43の一部領域に割り当てられた基本DB431の該当データフィールドにそのXY座標を格納する(ステップS104)。   Subsequently, the main control unit 400 activates the definition file generation unit 403. Receiving this, the definition file generation unit 403 generates display position information for each of various devices pasted from the position information of each symbol acquired via the main control unit 400, and stores it in a partial area of the storage unit 43. The XY coordinates are stored in the corresponding data field of the assigned basic DB 431 (step S104).

次に、主制御部400は、操作部41による入出力割り付け操作、及び運転条件設定操作の有無を判定する(ステップS105)。入出力割り付け及び運転条件の設定は、図10(b)に示すプログラム作成支援画面を使用することにより行われる。主制御部400は、ユーザがその画面を参照しながら操作部41を操作することによって行われる、入出力割り付け、及び運転条件設に冠する操作入力を検知すると(ステップS105“YES”)、操作入力取得部404を介して取得される、信号名、アドレス、運転操作に関する情報を、定義ファイル生成部03により、記憶部43の一部領域に割り当てられた基本DB431の所定のデータフィールドに書き込む(ステップS106)。   Next, the main control unit 400 determines whether or not there is an input / output assignment operation and an operation condition setting operation by the operation unit 41 (step S105). Input / output allocation and setting of operating conditions are performed by using a program creation support screen shown in FIG. When the main control unit 400 detects an operation input related to input / output assignment and operation condition setting performed by the user operating the operation unit 41 while referring to the screen (step S105 “YES”), the operation is performed. Information related to the signal name, address, and driving operation acquired via the input acquisition unit 404 is written into a predetermined data field of the basic DB 431 assigned to a partial area of the storage unit 43 by the definition file generation unit 03 ( Step S106).

上記のように基本DB431の所定のデータフィールドへ、割り付け定義及び運転条件に関する情報を書き込んだ後(ステップS104)、又は、既に入出力割り付け操作及び運転条件設定が済んでいれば(ステップS105“NO”)、主制御部400は、操作回路の設定入力の有無を判定する(ステップS107)。このとき使用されるプログラム作成支援画面は図10(c)に示されている。ここで、ユーザが操作部41を操作することによる操作回路の設定入力があれば(ステップS107“YES”)、主制御部400は、操作入力取得部404を介して取得されるデバイス毎の運転時における起動条件と終了条件、停止時におけるAND/OR条件等に関する情報を、定義ファイル生成部403により、記憶部43の一部領域に割り当てられた操作回路用DB432の所定のデータフィールドに書き込む(ステップS108)。   As described above, after the information regarding the allocation definition and the operating condition is written in the predetermined data field of the basic DB 431 (step S104), or if the input / output allocation operation and the operating condition have already been set (step S105 “NO”). "), The main control unit 400 determines whether or not there is a setting input of the operation circuit (step S107). The program creation support screen used at this time is shown in FIG. Here, if there is a setting input of the operation circuit by the user operating the operation unit 41 (step S107 “YES”), the main control unit 400 operates for each device acquired via the operation input acquisition unit 404. The definition file generation unit 403 writes information related to the start and end conditions at the time, the AND / OR condition at the time of stop, and the like in a predetermined data field of the operation circuit DB 432 assigned to a partial area of the storage unit 43 ( Step S108).

上記のように操作回路用DB432へ、操作回路の設定入力情報を書き込んだ後(ステップS106)、又は、既に操作回路の設定入力が済んでいれば(ステップS107“NO”)、主制御部400は、工程フロー(シーケンスフロー)並びに条件設定入力の有無を判定する(ステップS109)。このとき使用されるプログラム作成支援画面は図10(d)(e)に示されている。ここで、ユーザが操作部41を操作することによる、操作指令、開始、終了条件等の、シーケンスフロー及び工程遷移条件設定入力があれば(ステップS109“YES”)、主制御部400は、操作入力取得部404を介して取得される、シーケンスフロー及び工程遷移条件に関する情報を、定義ファイル生成部403により、記憶部43の一部領域に割り当てられた工程用DB433の所定のデータフィールドに書き込む(ステップS110)。   After writing the setting input information of the operation circuit to the operation circuit DB 432 as described above (step S106), or if the setting input of the operation circuit has already been completed (step S107 “NO”), the main control unit 400 Determines whether or not there is a process flow (sequence flow) and condition setting input (step S109). The program creation support screen used at this time is shown in FIGS. Here, if there is a sequence flow and process transition condition setting input such as an operation command, start, end condition, etc. by the operation of the operation unit 41 by the user (step S109 “YES”), the main control unit 400 Information related to the sequence flow and process transition conditions acquired via the input acquisition unit 404 is written into a predetermined data field of the process DB 433 assigned to a partial area of the storage unit 43 by the definition file generation unit 403 ( Step S110).

上記のように工程用DB433へ、シーケンスフロー及び工程遷移条件設定入力情報を書き込んだ後(ステップS110)、又は、既に工程フローの設定入力が済んでいれば(ステップS109“NO”)、主制御部400は、PID条件設定入力の有無を判定する(図9のステップS111)。このとき使用されるプログラム作成支援画面は図10(f)に示されている。ここで、ユーザが操作部41を操作することによる、貼り付けたデバイス毎のPV、SV、MV等のパラメータの設定入力があれば(ステップS109“YES”)、主制御部400は、操作入力取得部404を介して取得される、設定入力された情報を、定義ファイル生成部403により、記憶部43の一部領域に割り当てられたPID用DB434の所定のデータフィールドに書き込む(ステップS112)。   After writing the sequence flow and process transition condition setting input information to the process DB 433 as described above (step S110), or if the process flow setting input has already been completed (step S109 "NO"), the main control The unit 400 determines whether or not there is a PID condition setting input (step S111 in FIG. 9). The program creation support screen used at this time is shown in FIG. Here, if there is a parameter setting input such as PV, SV, MV or the like for each pasted device by the user operating the operation unit 41 (step S109 “YES”), the main control unit 400 performs the operation input. The setting input information acquired through the acquisition unit 404 is written by the definition file generation unit 403 into a predetermined data field of the PID DB 434 assigned to a partial area of the storage unit 43 (step S112).

上記のようにPID用DB434へ、PID条件設定入力情報を書き込んだ後(ステップS112)、又は、既にPID条件の設定入力が済んでいれば(ステップS111“NO”)、主制御部400は、信号種別の設定入力の有無を判定する(ステップS113)。このとき使用されるプログラム作成支援画面は図10(g)に示されている。ここで、ユーザが操作部41を操作することによる、貼り付けたデバイス毎の、信号、履歴の有無、故障の程度に関する情報の設定入力があれば(ステップS103“YES”)、主制御部400は、操作入力取得部404を介して取得される、設定入力された情報を、定義ファイル生成部403により、記憶部43の一部領域に割り当てられた表示用DB435の所定のデータフィールドに書き込む(ステップS114)。   After writing the PID condition setting input information to the PID DB 434 as described above (step S112), or if the setting input of the PID condition has already been completed (step S111 “NO”), the main control unit 400 The presence / absence of a signal type setting input is determined (step S113). The program creation support screen used at this time is shown in FIG. Here, if there is a setting input of information regarding the signal, the history presence / absence, and the degree of failure for each pasted device by the user operating the operation unit 41 (step S103 “YES”), the main control unit 400 The setting file input information acquired via the operation input acquisition unit 404 is written in a predetermined data field of the display DB 435 assigned to a partial area of the storage unit 43 by the definition file generation unit 403 ( Step S114).

上記のようにPID用DB434へ、PID条件設定入力情報を書き込んだ後(ステップS112)、又は、既にPID条件の設定入力が済んで一連のファイル定義操作が終了していれば(ステップS113“NO”)、主制御部400は、ファイル変換出力指示の有無を判定する(ステップS115)。ファイル変換出力指示は、例えば、図10(g)に示したプログラム作成支援画面の、例えば、右下等の一部領域に割り当てられる「コンパイル釦」(不図示)をユーザがクリックすることにより有効になる。   After writing the PID condition setting input information to the PID DB 434 as described above (step S112), or if the PID condition setting input has already been completed and a series of file definition operations have been completed (step S113 “NO” The main control unit 400 determines whether or not there is a file conversion output instruction (step S115). The file conversion output instruction is effective, for example, when the user clicks a “compile button” (not shown) assigned to a partial area such as the lower right of the program creation support screen shown in FIG. become.

主制御部400は、ファイル変換出力指示があったことを検知すると(ステップS115“YES”)、ファイル変換部405を起動する。ファイル変換部405は、記憶部43の一部領域に割り当てられ格納された、基本DB431、操作回路用DB432、工程用DB433、PID用DB434、表示用DB435の各データフィールドに書き込まれてデータを読み出しPOD画面ファイル436、PODシンボル用定義ファイル437、POD割り付けファイル438、PLCラダーファイル439、PLCシーケンス割り付けファイル440に変換してファイル出力部406へ転送する(ステップS116)。   When the main control unit 400 detects that there is a file conversion output instruction (step S115 “YES”), the main control unit 400 activates the file conversion unit 405. The file conversion unit 405 reads the data written in the data fields of the basic DB 431, the operation circuit DB 432, the process DB 433, the PID DB 434, and the display DB 435 allocated and stored in a partial area of the storage unit 43. The POD screen file 436, POD symbol definition file 437, POD allocation file 438, PLC ladder file 439, and PLC sequence allocation file 440 are converted and transferred to the file output unit 406 (step S116).

ここでは、PODシンボル用定義ファイル438、POD割り付けファイル438、PLCシーケンス割り付けファイル440はCSV(Comma Separated Values)形式で出力されるものとする。尚、CSVに限らず、XML形式、バイナリ形式の何れでも選択は自由である。又、POD画面ファイル437はビットマップ(bmm)形式で出力されるものとする。そして、主制御部400による制御の下、ファイル出力部406は、POD画面ファイル436、PODシンボル用定義ファイル437、POD割り付けファイル438をPOD2へ、PLCラダーファイル438、PLCシーケンス割り付けファイル440をPLC1へそれぞれ転送して上記した一連の定義ファイル生成処理を終了する(ステップS117)。   Here, the POD symbol definition file 438, the POD allocation file 438, and the PLC sequence allocation file 440 are output in CSV (Comma Separated Values) format. The selection is not limited to the CSV format, but can be any of the XML format and the binary format. The POD screen file 437 is output in the bitmap (bmm) format. Under the control of the main control unit 400, the file output unit 406 converts the POD screen file 436, the POD symbol definition file 437, and the POD allocation file 438 to POD2, the PLC ladder file 438, and the PLC sequence allocation file 440 to PLC1. Each of them is transferred and the above-described series of definition file generation processing ends (step S117).

(実施形態の効果)
以上説明のように本発明の実施形態に係るプログラム作成支援装置4によれば、プログラム作成支援画面(テンプレート)上にシンボル化された各種デバイス3が貼り付け操作されることにより、デバイスの存在と位置が定義され、又、PLC1の入出力端子(入出力ユニット12)のそれぞれに付与される入出力アドレスと、貼り付けられたデバイスとの割り付けに関する情報が定義される。更に、テンプレート上に貼り付けられたデバイスのシーケンスフロー、並びに運転遷移の条件設定に従い自動制御の内容が定義される。そして、ファイル出力指示に基づき、生成された各定義ファイルを、PLC1とPOD2が解読可能なファイル形式に変換してそれぞれに出力する。このため、プログラム作成にテンプレートとシンボルを使用することにより専門知識を要さず、初心者にも馴染み易く、又、PLC1とPOD2によるデバイス割り付けのための入出力操作が統合されるため、設計工数の削減が図れる。
(Effect of embodiment)
As described above, according to the program creation support apparatus 4 according to the embodiment of the present invention, the presence of a device can be determined by pasting various devices 3 symbolized on a program creation support screen (template). The position is defined, and the input / output address assigned to each of the input / output terminals (input / output unit 12) of the PLC 1 and information related to the allocation of the pasted device are defined. Furthermore, the content of automatic control is defined according to the sequence flow of the device pasted on the template and the condition setting for operation transition. Based on the file output instruction, each generated definition file is converted into a file format readable by PLC1 and POD2 and output to each file format. For this reason, the use of templates and symbols for program creation does not require specialized knowledge and is easy for beginners to familiarize with. Also, the input / output operations for device allocation by PLC1 and POD2 are integrated, so design man-hours are reduced. Reduction can be achieved.

又、本発明の実施形態に係るプログラム作成支援装置4によれば、PLC1に第1の定義ファイルを、POD2に第1、第2、第3の定義ファイルをそれぞれ出力するにあたり、XML、CSV、バイナリ形式のいずれか一つに変換して出力する。このように、定義ファイルが、XML、CSV、バイナリ形式のいずれかで出力されるため、汎用のローダで読み込むことが出来、このため、専用のローダを不要とし、且つ定義ファイルの受け渡しが容易になる。   Further, according to the program creation support apparatus 4 according to the embodiment of the present invention, when outputting the first definition file to the PLC 1 and the first, second, and third definition files to the POD 2, respectively, XML, CSV, Convert to binary format and output. In this way, the definition file is output in either XML, CSV, or binary format, so it can be read by a general-purpose loader. This eliminates the need for a dedicated loader and facilitates delivery of definition files. Become.

尚、デバッグ時、第2の定義ファイル(PLCシーケンス割り付けファイル440)から入出力アドレスを読み出し、読み出した入出力アドレスにデストデータを書き込んで入出力割り付けの正誤判定を行うテスト支援画面を作成すれば、デバッグ時に作成済みの定義ファイルを読み込むだけで入出力割り付け正誤の確認が容易に出来るため、デバッグに要する作業者の負担も軽減される。   When debugging, create a test support screen that reads the input / output address from the second definition file (PLC sequence allocation file 440), writes the destination data to the read input / output address, and determines whether the input / output allocation is correct or incorrect. Since it is easy to check the correctness of input / output assignments by simply reading a definition file that has been created during debugging, the burden on the operator required for debugging is reduced.

又、本発明のプログラム作成支援方法は、例えば、図1において、1以上の制御対象機器(各種デバイス3)と、入出力端子に接続される前記制御対象機器の制御を行うプログラマブルコントローラ(PLC1)と、前記制御対象機器の状態表示を行うと共に、前記プログラマブルコントローラへの操作入力を行うプログラマブル表示器(POD2)とから成るプラント制御システムに接続され、前記プログラマブルコントローラと前記プログラマブル表示器とが実行するそれぞれのプログラムの作成を支援するコンピュータに用いられるプログラム作成支援方法であって、例えば、図8、図9のフローチャートに示されるように、表示部42に表示されるテンプレート上に、操作部41により、シンボル化された制御対象機器が貼り付け操作されることにより、前記制御対象機器の存在と位置を定義する第1の定義ファイルを生成して記憶部43に格納する第1のステップ(S101〜S104)と、前記操作部41の設定入力に基づき、前記プログラマブルコントローラの入出力端子のそれぞれに付与される入出力アドレスと、前記貼り付けられた制御対象機器との割り付けに関する情報を定義する第2の定義ファイルを生成して前記記憶部43に格納する第2のステップ(S105、S106)と、前記操作部41の設定入力に基づき、前記テンプレート上に貼り付けられた制御対象機器のシーケンスフロー、並びに運転遷移の条件に従い自動制御の内容を定義する第3の定義ファイルを生成して前記記憶部43に格納する第3のステップ(S107〜S113)と、前記操作部41によるファイル出力指示に基づき、前記記憶部43から前記第1、第2、第3の定義ファイルを読み出し、前記第1の定義ファイルを前記プログラマブル表示器が解読可能なファイル形式に変換し、前記第2、第3の定義ファイルを、前記プログラマブルコントローラが解読可能なファイル形式に変換して、前記プログラマブル表示器と前記プログラマブルコントローラのそれぞれに出力する第4のステップ(S115〜S117)と、を有するものである。   The program creation support method according to the present invention includes, for example, one or more control target devices (various devices 3) in FIG. 1 and a programmable controller (PLC1) that controls the control target devices connected to input / output terminals. Are connected to a plant control system including a programmable display (POD2) that performs operation input to the programmable controller and displays the status of the control target device, and the programmable controller and the programmable display execute A program creation support method used in a computer that supports the creation of each program. For example, as shown in the flowcharts of FIGS. 8 and 9, an operation unit 41 displays a template displayed on the display unit 42. The symbolized control target device is pasted. As a result, a first definition file for defining the presence and position of the control target device is generated and stored in the storage unit 43 (S101 to S104). Based on the input / output address assigned to each of the input / output terminals of the programmable controller and the second definition file that defines the information on the assignment of the pasted control target device. Based on the second step (S105, S106) to be stored and the setting input of the operation unit 41, the contents of automatic control are defined according to the sequence flow of the control target device pasted on the template and the condition of operation transition A third definition file to be generated and stored in the storage unit 43 (S107 to S113); Based on the file output instruction by the unit 41, the first, second, and third definition files are read from the storage unit 43, the first definition file is converted into a file format that can be read by the programmable display, A fourth step (S115 to S117) of converting the second and third definition files into a file format decodable by the programmable controller and outputting them to the programmable display and the programmable controller, respectively. It is what you have.

本発明のプログラム作成支援方法によれば、プログラム設計支援装置4が、プログラム作成支援画面(テンプレート)上にシンボル化された各種デバイス3が貼り付け操作されることにより、デバイスの存在と位置を定義し、又、PLC1の入出力端子(入出力ユニット12)のそれぞれに付与される入出力アドレスと、貼り付けられたデバイスとの割り付けに関する情報を定義する。そして、テンプレート上に貼り付けられたデバイスのシーケンスフロー、並びに運転遷移の条件設定に従い自動制御の内容を定義する。そして、ファイル出力指示に基づき、生成された各定義ファイルを、PLC1とPOD2が解読可能なファイル形式に変換してそれぞれに出力するため、プログラム作成に専門技術を要することなく、作業効率の改善による設計時間の短縮を図ることができる。   According to the program creation support method of the present invention, the program design support apparatus 4 defines the presence and position of devices by pasting various devices 3 symbolized on a program creation support screen (template). In addition, information on allocation of input / output addresses assigned to the input / output terminals (input / output units 12) of the PLC 1 and pasted devices is defined. Then, the contents of the automatic control are defined according to the sequence flow of the device pasted on the template and the condition setting for the operation transition. Based on the file output instruction, each definition file generated is converted into a file format that can be decoded by PLC1 and POD2, and output to the respective file formats. Design time can be shortened.

又、本発明のプログラム作成支援プログラムは、例えば、図1において、1以上の制御対象機器(各種デバイス3)と、入出力端子に接続される前記制御対象機器の制御を行うプログラマブルコントローラ(PLC1)と、前記制御対象機器の状態表示を行うと共に、前記プログラマブルコントローラへの操作入力を行うプログラマブル表示器(POD2)とから成るプラント制御システムに接続され、前記プログラマブルコントローラと前記プログラマブル表示器とが実行するそれぞれのプログラムの作成を支援するプログラム作成支援装置4のコンピュータ(制御部40)上で実行されるプログラム作成支援プログラムであって、例えば、図8、図9のフローチャートに示されるように、コンピュータに、表示部42に表示されるテンプレート上に、操作部41により、シンボル化された制御対象機器が貼り付け操作されることにより、前記制御対象機器の存在と位置を定義する第1の定義ファイルを生成して記憶部43に格納する処理(S101〜A104)と、前記操作部41の設定入力に基づき、前記プログラマブルコントローラの入出力端子のそれぞれに付与される入出力アドレスと、前記貼り付けられた制御対象機器との割り付けに関する情報を定義する第2の定義ファイルを生成して前記記憶部に格納する処理(S105、S106)と、前記操作部41の設定入力に基づき、前記テンプレート上に貼り付けられた制御対象機器のシーケンスフロー、並びに運転遷移の条件に従い自動制御の内容を定義する第3の定義ファイルを生成して前記記憶部に格納する処理(S107〜S114)と、前記操作部41によるファイル出力指示に基づき、前記記憶部43から前記第1、第2、第3の定義ファイルを読み出し、前記第1の定義ファイルを前記プログラマブル表示器が解読可能なファイル形式に変換し、前記第2、第3の定義ファイルを、前記プログラマブルコントローラが解読可能なファイル形式に変換して、前記プログラマブル表示器と前記プログラマブルコントローラのそれぞれに出力する処理(S115〜S117)と、を実行させるものである。   Further, the program creation support program of the present invention includes, for example, a programmable controller (PLC1) that controls one or more control target devices (various devices 3) and the control target devices connected to input / output terminals in FIG. Are connected to a plant control system including a programmable display (POD2) that performs operation input to the programmable controller and displays the status of the control target device, and the programmable controller and the programmable display execute A program creation support program that is executed on the computer (control unit 40) of the program creation support apparatus 4 that supports creation of each program. For example, as shown in the flowcharts of FIGS. , Displayed on display unit 42 A symbolized control target device is affixed on the screen by the operation unit 41 to generate a first definition file that defines the presence and position of the control target device and stores it in the storage unit 43. Based on the storing process (S101 to A104) and the setting input of the operation unit 41, the input / output address assigned to each of the input / output terminals of the programmable controller and the assignment of the pasted control target device A process of generating a second definition file for defining information and storing it in the storage unit (S105, S106), and a sequence of control target devices pasted on the template based on the setting input of the operation unit 41 Processing to generate a third definition file that defines the contents of automatic control in accordance with the flow and operation transition conditions, and store the third definition file in the storage unit S107 to S114) and based on the file output instruction from the operation unit 41, the first, second, and third definition files are read from the storage unit 43, and the first display is decoded by the programmable display device. A process of converting the second and third definition files into a file format readable by the programmable controller and outputting the file to the programmable display and the programmable controller (S115). S117).

本発明のプログラム作成支援プログラムによれば、プログラム作成支援画面(テンプレート)上にシンボル化された各種デバイス3が貼り付け操作されることにより、デバイスの存在と位置を定義し、又、PLC1の入出力端子(入出力ユニット12)のそれぞれに付与される入出力アドレスと、貼り付けられたデバイスとの割り付けに関する情報を定義する。そして、テンプレート上に貼り付けられたデバイスのシーケンスフロー、並びに運転遷移の条件設定に従い自動制御の内容を定義する。そして、ファイル出力指示に基づき、生成された各定義ファイルを、PLC1とPOD2が解読可能なファイル形式に変換してそれぞれに出力するため、プログラム作成に専門技術を要することなく、作業効率の改善による設計時間の短縮を図ることができる。   According to the program creation support program of the present invention, various devices 3 symbolized on the program creation support screen (template) are pasted to define the presence and position of the device, and to enter the PLC 1 Information relating to assignment of input / output addresses assigned to the output terminals (input / output units 12) and pasted devices is defined. Then, the contents of the automatic control are defined according to the sequence flow of the device pasted on the template and the condition setting for the operation transition. Based on the file output instruction, each definition file generated is converted into a file format that can be decoded by PLC1 and POD2, and output to the respective file formats. Design time can be shortened.

以上、実施形態を用いて本発明を説明したが、本発明の技術的範囲は上記実施形態に記載の範囲には限定されないことは言うまでもない。上記実施形態に、多様な変更または改良を加えることが可能であることが当業者に明らかである。またその様な変更または改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。   As mentioned above, although this invention was demonstrated using embodiment, it cannot be overemphasized that the technical scope of this invention is not limited to the range as described in the said embodiment. It will be apparent to those skilled in the art that various modifications or improvements can be added to the above-described embodiments. Further, it is apparent from the scope of the claims that the embodiments added with such changes or improvements can be included in the technical scope of the present invention.

1 プログラマブルコントローラ(PLC)
2 プログラマブル表示器(POD)
3 制御対象機器(各種デバイス)
4 プログラム作成支援装置
11 制御ユニット
12 入出力ユニット(入出力端子)
40 制御部
41 操作部
42 表示部
43 記憶部
400 主制御部
401 テンプレート生成部
402 描画・表示制御部
403 定義ファイル生成部
404 操作入力取得部
405 ファイル変換部
406 ファイル出力部
1 Programmable controller (PLC)
2 Programmable display (POD)
3 Controlled devices (various devices)
4 Program creation support device 11 Control unit 12 Input / output unit (input / output terminal)
40 control unit 41 operation unit 42 display unit 43 storage unit 400 main control unit 401 template generation unit 402 drawing / display control unit 403 definition file generation unit 404 operation input acquisition unit 405 file conversion unit 406 file output unit

Claims (9)

1以上の制御対象機器と、入出力端子に接続される前記制御対象機器の制御を行うプログラマブルコントローラと、前記制御対象機器の状態表示を行うと共に、前記プログラマブルコントローラへの操作入力を行うプログラマブル表示器とから成るプラント制御システムを対象とし、前記プログラマブルコントローラと前記プログラマブル表示器とが実行するそれぞれのプログラムの作成を支援する、少なくとも、表示部と、操作部と、記憶部と、制御部とを含むプログラム作成支援装置であって、
前記制御部は、
前記表示部に表示されるテンプレート上に、前記操作部により、シンボル化された制御対象機器が貼り付け操作されることにより、前記制御対象機器の存在と位置を定義する第1の定義ファイルを生成して前記記憶部に格納し、
前記操作部の設定入力に基づき、前記プログラマブルコントローラの入出力端子のそれぞれに付与される入出力アドレスと、前記貼り付けられた制御対象機器との割り付けに関する情報を定義する第2の定義ファイルを生成して前記記憶部に格納し、
前記操作部の設定入力に基づき、前記テンプレート上に貼り付けられた制御対象機器のシーケンスフロー、並びに運転遷移の条件に従い自動制御の内容を定義する第3の定義ファイルを生成して前記記憶部に格納し、
前記操作部によるファイル出力指示に基づき、前記記憶部から前記第1、第2、第3の定義ファイルを読み出し、前記第1の定義ファイルを前記プログラマブル表示器が解読可能なファイル形式に変換し、前記第2、第3の定義ファイルを、前記プログラマブルコントローラが解読可能なファイル形式に変換して、前記プログラマブル表示器と前記プログラマブルコントローラのそれぞれに出力する、
ことを特徴とするプログラム作成支援装置。
One or more control target devices, a programmable controller that controls the control target device connected to an input / output terminal, and a programmable display that displays the status of the control target device and inputs an operation to the programmable controller Including at least a display unit, an operation unit, a storage unit, and a control unit that support the creation of each program executed by the programmable controller and the programmable display device. A program creation support device,
The controller is
A first definition file that defines the presence and position of the control target device is generated by pasting the symbolized control target device onto the template displayed on the display unit. Stored in the storage unit,
Based on the setting input of the operation unit, a second definition file is generated that defines information relating to the input / output addresses assigned to the input / output terminals of the programmable controller and the pasted control target devices. Stored in the storage unit,
Based on the setting input of the operation unit, a third definition file that defines the contents of automatic control according to the sequence flow of the control target device pasted on the template and the condition of operation transition is generated and stored in the storage unit Store and
Based on the file output instruction by the operation unit, the first, second, and third definition files are read from the storage unit, the first definition file is converted into a file format that can be read by the programmable display, The second and third definition files are converted into a file format readable by the programmable controller and output to the programmable display and the programmable controller, respectively.
A program creation support apparatus characterized by that.
前記制御部は、
前記プログラマブル表示器に前記第1の定義ファイルを、前記プログラマブルコントローラに前記第2、第3の定義ファイルをそれぞれ出力するにあたり、XML、CSV、バイナリ形式のいずれか一つに変換して出力することを特徴とする請求項1記載のプログラム作成支援装置。
The controller is
When outputting the first definition file to the programmable display and the second and third definition files to the programmable controller, respectively, the data is converted into one of XML, CSV, and binary format and output. The program creation support apparatus according to claim 1.
前記制御部は、
テストモード時、前記第2の定義ファイルから入出力アドレスを読み出し、前記読み出した入出力アドレスにテストデータを書き込んで入出力割り付けの正誤判定を行うことを特徴とする請求項1又は2記載のプログラム作成支援装置。
The controller is
3. The program according to claim 1, wherein in a test mode, an input / output address is read from the second definition file, test data is written to the read input / output address, and correctness of input / output allocation is determined. Creation support device.
1以上の制御対象機器と、入出力端子に接続される前記制御対象機器の制御を行うプログラマブルコントローラと、前記制御対象機器の状態表示を行うと共に、前記プログラマブルコントローラへの操作入力を行うプログラマブル表示器とから成るプラント制御システムに接続され、前記プログラマブルコントローラと前記プログラマブル表示器とが実行するそれぞれのプログラムの作成を支援するコンピュータに用いられるプログラム作成支援方法であって、
表示部に表示されるテンプレート上に、操作部により、シンボル化された制御対象機器が貼り付け操作されることにより、前記制御対象機器の存在と位置を定義する第1の定義ファイルを生成して記憶部に格納する第1のステップと、
前記操作部の設定入力に基づき、前記プログラマブルコントローラの入出力端子のそれぞれに付与される入出力アドレスと、前記貼り付けられた制御対象機器との割り付けに関する情報を定義する第2の定義ファイルを生成して前記記憶部に格納する第2のステップと、
前記操作部の設定入力に基づき、前記テンプレート上に貼り付けられた制御対象機器のシーケンスフロー、並びに運転遷移の条件に従い自動制御の内容を定義する第3の定義ファイルを生成して前記記憶部に格納する第3のステップと、
前記操作部によるファイル出力指示に基づき、前記記憶部から前記第1、第2、第3の定義ファイルを読み出し、前記第1の定義ファイルを前記プログラマブル表示器が解読可能なファイル形式に変換し、前記第2、第3の定義ファイルを、前記プログラマブルコントローラが解読可能なファイル形式に変換して、前記プログラマブル表示器と前記プログラマブルコントローラのそれぞれに出力する第4のステップと、
を有することを特徴とするプログラム作成支援方法。
One or more control target devices, a programmable controller that controls the control target device connected to an input / output terminal, and a programmable display that displays the status of the control target device and inputs an operation to the programmable controller A program creation support method used in a computer that is connected to a plant control system, and that supports creation of each program executed by the programmable controller and the programmable display,
A first definition file for defining the presence and position of the control target device is generated by pasting the symbolized control target device on the template displayed on the display unit by the operation unit. A first step of storing in the storage unit;
Based on the setting input of the operation unit, a second definition file is generated that defines information relating to the input / output addresses assigned to the input / output terminals of the programmable controller and the pasted control target devices. A second step of storing in the storage unit;
Based on the setting input of the operation unit, a third definition file that defines the contents of automatic control according to the sequence flow of the control target device pasted on the template and the condition of operation transition is generated and stored in the storage unit A third step of storing;
Based on the file output instruction by the operation unit, the first, second, and third definition files are read from the storage unit, the first definition file is converted into a file format that can be read by the programmable display, A fourth step of converting the second and third definition files into a file format readable by the programmable controller and outputting the converted file to each of the programmable display and the programmable controller;
A program creation support method characterized by comprising:
前記第4のステップは、
前記プログラマブル表示器に前記第1の定義ファイルを、前記プログラマブルコントローラに前記第2、第3の定義ファイルをそれぞれ出力するにあたり、XML、CSV、バイナリ形式のいずれか一つに変換して出力するサブステップを有することを特徴とする請求項4記載のプログラム作成支援方法。
The fourth step includes
When outputting the first definition file to the programmable display and the second and third definition files to the programmable controller, the sub-file is converted into one of XML, CSV, and binary format and output. 5. The program creation support method according to claim 4, further comprising steps.
テストモード時、前記第2の定義ファイルから入出力アドレスを読み出し、前記読み出した入出力アドレスにテストデータを書き込んで入出力割り付けの正誤判定を行う第5のステップを更に有することを特徴とする請求項4記載のプログラム作成支援方法。   5. The method according to claim 5, further comprising: a fifth step of reading an input / output address from the second definition file in a test mode, writing test data to the read input / output address, and determining whether the input / output assignment is correct or incorrect. Item 5. The program creation support method according to Item 4. 1以上の制御対象機器と、入出力端子に接続される前記制御対象機器の制御を行うプログラマブルコントローラと、前記制御対象機器の状態表示を行うと共に、前記プログラマブルコントローラへの操作入力を行うプログラマブル表示器とから成るプラント制御システムに接続され、前記プログラマブルコントローラと前記プログラマブル表示器とが実行するそれぞれのプログラムの作成を支援するプログラム作成支援装置のコンピュータ上で実行されるプログラム作成支援プログラムであって、
コンピュータに、
表示部に表示されるテンプレート上に、操作部により、シンボル化された制御対象機器が貼り付け操作されることにより、前記制御対象機器の存在と位置を定義する第1の定義ファイルを生成して記憶部に格納する処理と、
前記操作部の設定入力に基づき、前記プログラマブルコントローラの入出力端子のそれぞれに付与される入出力アドレスと、前記貼り付けられた制御対象機器との割り付けに関する情報を定義する第2の定義ファイルを生成して前記記憶部に格納する処理と、
前記操作部の設定入力に基づき、前記テンプレート上に貼り付けられた制御対象機器のシーケンスフロー、並びに運転遷移の条件に従い自動制御の内容を定義する第3の定義ファイルを生成して前記記憶部に格納する処理と、
前記操作部によるファイル出力指示に基づき、前記記憶部から前記第1、第2、第3の定義ファイルを読み出し、前記第1の定義ファイルを前記プログラマブル表示器が解読可能なファイル形式に変換し、前記第2、第3の定義ファイルを、前記プログラマブルコントローラが解読可能なファイル形式に変換して、前記プログラマブル表示器と前記プログラマブルコントローラのそれぞれに出力する処理と、
を実行させることを特徴とするプログラム作成支援プログラム。
One or more control target devices, a programmable controller that controls the control target device connected to an input / output terminal, and a programmable display that displays the status of the control target device and inputs an operation to the programmable controller A program creation support program that is executed on a computer of a program creation support device that is connected to a plant control system and that supports creation of each program executed by the programmable controller and the programmable display,
On the computer,
A first definition file for defining the presence and position of the control target device is generated by pasting the symbolized control target device on the template displayed on the display unit by the operation unit. Processing to be stored in the storage unit;
Based on the setting input of the operation unit, a second definition file is generated that defines information relating to the input / output addresses assigned to the input / output terminals of the programmable controller and the pasted control target devices. And storing in the storage unit,
Based on the setting input of the operation unit, a third definition file that defines the contents of automatic control according to the sequence flow of the control target device pasted on the template and the condition of operation transition is generated and stored in the storage unit Processing to store,
Based on the file output instruction by the operation unit, the first, second, and third definition files are read from the storage unit, the first definition file is converted into a file format that can be read by the programmable display, The second and third definition files are converted into a file format readable by the programmable controller and output to each of the programmable display and the programmable controller.
A program creation support program characterized in that
前記コンピュータに、
前記プログラマブル表示器に前記第1の定義ファイルを、前記プログラマブルコントローラに前記第2、第3の定義ファイルをそれぞれ出力するにあたり、XML、CSV、バイナリ形式のいずれか一つに変換して出力する処理を実行させることを特徴とする請求項7記載のプログラム作成支援プログラム。
In the computer,
When outputting the first definition file to the programmable display and the second and third definition files to the programmable controller, converting them into one of XML, CSV, and binary format and outputting them The program creation support program according to claim 7, wherein:
前記コンピュータに、
テストモード時、前記第2の定義ファイルから入出力アドレスを読み出し、前記読み出した入出力アドレスにテストデータを書き込んで入出力割り付けの正誤判定を行う処理を更に実行させることを特徴とする請求項7記載のプログラム作成支援プログラム。
In the computer,
8. A process for reading out an input / output address from the second definition file in the test mode, writing test data to the read-out input / output address, and determining whether the input / output assignment is correct or incorrect is further executed. Program creation support program described.
JP2010066262A 2010-03-23 2010-03-23 Program creation support apparatus and method, and program Expired - Fee Related JP5508078B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010066262A JP5508078B2 (en) 2010-03-23 2010-03-23 Program creation support apparatus and method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010066262A JP5508078B2 (en) 2010-03-23 2010-03-23 Program creation support apparatus and method, and program

Publications (2)

Publication Number Publication Date
JP2011198237A true JP2011198237A (en) 2011-10-06
JP5508078B2 JP5508078B2 (en) 2014-05-28

Family

ID=44876309

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010066262A Expired - Fee Related JP5508078B2 (en) 2010-03-23 2010-03-23 Program creation support apparatus and method, and program

Country Status (1)

Country Link
JP (1) JP5508078B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2016189689A1 (en) * 2015-05-27 2017-07-27 三菱電機株式会社 Program generating apparatus, program generating method, and program generating program
JPWO2017046834A1 (en) * 2015-09-14 2018-03-01 三菱電機株式会社 Control program automatic generation system
US10054926B2 (en) 2013-09-24 2018-08-21 Mitsubishi Electric Corporation Programmable controller and control method of programmable controller
JP2020086638A (en) * 2018-11-19 2020-06-04 日鉄テックスエンジ株式会社 Control program creation assisting tool and control program creating method
KR20210024067A (en) * 2018-08-10 2021-03-04 베이징 나우라 마이크로일렉트로닉스 이큅먼트 씨오., 엘티디. Upper computer, machine control system and method
JP2021077189A (en) * 2019-11-12 2021-05-20 三菱電機株式会社 Plc program development support system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05324052A (en) * 1992-05-18 1993-12-07 Toshiba Corp Interface check method for control system
JP2008097424A (en) * 2006-10-13 2008-04-24 Mitsubishi Electric Corp Engineering tool

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05324052A (en) * 1992-05-18 1993-12-07 Toshiba Corp Interface check method for control system
JP2008097424A (en) * 2006-10-13 2008-04-24 Mitsubishi Electric Corp Engineering tool

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10054926B2 (en) 2013-09-24 2018-08-21 Mitsubishi Electric Corporation Programmable controller and control method of programmable controller
JPWO2016189689A1 (en) * 2015-05-27 2017-07-27 三菱電機株式会社 Program generating apparatus, program generating method, and program generating program
JPWO2017046834A1 (en) * 2015-09-14 2018-03-01 三菱電機株式会社 Control program automatic generation system
KR20210024067A (en) * 2018-08-10 2021-03-04 베이징 나우라 마이크로일렉트로닉스 이큅먼트 씨오., 엘티디. Upper computer, machine control system and method
JP2021533492A (en) * 2018-08-10 2021-12-02 北京北方華創微電子装備有限公司Beijing Naura Microelectronics Equipment Co., Ltd. Machine control system and method as well as host computer
JP7179960B2 (en) 2018-08-10 2022-11-29 北京北方華創微電子装備有限公司 MACHINE CONTROL SYSTEM AND METHOD AND HOST COMPUTER
KR102484610B1 (en) * 2018-08-10 2023-01-04 베이징 나우라 마이크로일렉트로닉스 이큅먼트 씨오., 엘티디. Upper computer, machine control system and method
US11776830B2 (en) 2018-08-10 2023-10-03 Beijing Naura Microelectronics Equipment Co., Ltd. Control system and method of machine and host computer
JP2020086638A (en) * 2018-11-19 2020-06-04 日鉄テックスエンジ株式会社 Control program creation assisting tool and control program creating method
JP2021077189A (en) * 2019-11-12 2021-05-20 三菱電機株式会社 Plc program development support system
JP7186689B2 (en) 2019-11-12 2022-12-09 三菱電機株式会社 PLC program development support device

Also Published As

Publication number Publication date
JP5508078B2 (en) 2014-05-28

Similar Documents

Publication Publication Date Title
JP5508078B2 (en) Program creation support apparatus and method, and program
US20020046397A1 (en) Method for debugging flowchart programs for industrial controllers
JP2010257464A (en) Configuring animation and event for operator interface display in process control system
JP2008204237A (en) Program creation support device and program execution device
US10203681B2 (en) Sequence-program-creation supporting apparatus
US20170277170A1 (en) Hmi system
US11880625B2 (en) Display device, screen generation method, and screen generation program
US20140344428A1 (en) System architecture support tool
US20150277413A1 (en) System construction support apparatus
US20060101346A1 (en) Device and method for designing and planning an operating interface
JP2021096637A (en) Engineering unit and development support method
US20180365789A1 (en) Device management apparatus, device management method, and non-transitory computer readable storage medium
CN106297614A (en) A kind of method of testing of LCD product
JP3805776B2 (en) Graphical programming device and programmable display
JP2015526812A (en) System and method for configuring an analog process alarm with a control device
EP3767411A1 (en) Control system, development assistance device, and development assistance program
JP2012168900A (en) Programming device and program
WO2012017992A1 (en) Program-producing device and image control system
JP5027820B2 (en) Method for controlling a modular production machine composed of apparatus and components
US20140298225A1 (en) Screen definition device for operating panel
US20210018888A1 (en) Automated programming of a programmable-logic controller (plc) of a microcontroller using an expert system
JP2020086638A (en) Control program creation assisting tool and control program creating method
JP2019159937A (en) Programming support device, programming support method and program
EP3937024A1 (en) Control system, information processing device, and information processing program
US10902181B2 (en) Program creation apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121025

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131018

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131022

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140304

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140320

R150 Certificate of patent or registration of utility model

Ref document number: 5508078

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees