Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4301919B2 - Editor device, program for causing computer to function as editor device, and recording medium - Google Patents
[go: Go Back, main page]

JP4301919B2 - Editor device, program for causing computer to function as editor device, and recording medium - Google Patents

Editor device, program for causing computer to function as editor device, and recording medium Download PDF

Info

Publication number
JP4301919B2
JP4301919B2 JP2003378668A JP2003378668A JP4301919B2 JP 4301919 B2 JP4301919 B2 JP 4301919B2 JP 2003378668 A JP2003378668 A JP 2003378668A JP 2003378668 A JP2003378668 A JP 2003378668A JP 4301919 B2 JP4301919 B2 JP 4301919B2
Authority
JP
Japan
Prior art keywords
variable
program
data
code
display
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 - Lifetime
Application number
JP2003378668A
Other languages
Japanese (ja)
Other versions
JP2005141563A (en
Inventor
昌平 西田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Schneider Electric Japan Holdings Ltd
Original Assignee
Digital Electronics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Digital Electronics Corp filed Critical Digital Electronics Corp
Priority to JP2003378668A priority Critical patent/JP4301919B2/en
Publication of JP2005141563A publication Critical patent/JP2005141563A/en
Application granted granted Critical
Publication of JP4301919B2 publication Critical patent/JP4301919B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Description

本発明は、制御対象機器の状態を表示する機能および制御対象機器の動作の制御を指示する機能を有する表示器が実行するプログラムを編集する技術に関し、特に、そのプログラムにて参照される変数の定義に関して利用者に柔軟性をもたらしつつ、プログラムのメンテナンス性を向上させることができるエディタ装置、コンピュータをエディタ装置として機能させるためのプログラム、およびそのプログラムを記録した記録媒体に関する。   The present invention relates to a technique for editing a program executed by a display device having a function of displaying a state of a control target device and a function of instructing control of an operation of the control target device. The present invention relates to an editor device capable of improving the maintainability of a program while providing flexibility to the user regarding definition, a program for causing a computer to function as an editor device, and a recording medium on which the program is recorded.

プログラマブルロジックコントローラと称される産業用制御装置は、自動組付け機その他の制御対象機器に接続され、シーケンス制御その他の制御を実行したり、その機器の状態を表わすデータを受信したりする。この制御対象機器の制御あるいは状態の表示は、たとえば、その機器の状態を制御対象機器の状態を表示する機能およびその機器の動作を制御する機能を有する表示器を介して行なわれる。また、近年、上記の産業用制御装置が有する制御機能を備えた表示器も導入されている。   An industrial control device called a programmable logic controller is connected to an automatic assembly machine or other control target device, and executes sequence control or other control, or receives data representing the state of the device. The control or display of the state of the control target device is performed, for example, via a display unit having a function of displaying the state of the device and a function of controlling the operation of the device. In recent years, a display device having a control function of the industrial control device has been introduced.

このような表示器は、接続されている制御対象機器の状態を表示したり、作業者が指示を入力するための画面を表示する。このとき表示される画面は、画面のエディタ装置において予め準備されたプログラミングによって作成される。IEC(International Electrotechnical Commission)は、このプログラミングに使用される標準のプログラミング言語を制定している。この言語には、SFC(Sequential Function Chart)、LD(Ladder Diagram)、IL(Instruction List)、FBD(Function Block Diagram)、およびST(Structured Text)が含まれる。   Such a display device displays a state of a connected control target device or displays a screen for an operator to input an instruction. The screen displayed at this time is created by programming prepared in advance in the editor device for the screen. The International Electrotechnical Commission (IEC) has established a standard programming language used for this programming. This language includes SFC (Sequential Function Chart), LD (Ladder Diagram), IL (Instruction List), FBD (Function Block Diagram), and ST (Structured Text).

このようにして作成される画面は、変数に対応付けられた複数の画像を有する場合が多い。各変数は、制御対象機器の状態あるいは制御対象となる動作のそれぞれに応じて設定される。そのため、画面の作成時あるいは編集時には、複数の変数を効率よく設定してプログラムを作成したいという要請があった。   The screen created in this way often has a plurality of images associated with variables. Each variable is set according to the state of the control target device or the operation to be controlled. Therefore, when creating or editing a screen, there has been a demand for creating a program by efficiently setting a plurality of variables.

そこで、たとえば、特開2001−75616号公報(特許文献1)は、付帯情報の入力を簡素化して表示内容プログラムあるいは制御手順プログラムを効率よく作成することができるエディタ装置を開示する。このエディタ装置は、制御対象機器の状態を表示する表示内容を定めるための表示内容プログラムを作成するための第1のエディタ手段と、上記制御対象機器を制御する制御手順を定める制御手順プログラムを作成するための第2のエディタ手段と、表示内容プログラムと制御手順プログラムとの間で、各制御対象機器のアドレスに対応して共通に設定された変数を、各制御対象機器およびそれらの状態を表わす表示シンボル又は上記制御対象機器に対応する制御動作を表わす複数の制御シンボルについての付帯情報として一方のエディタ手段から他方のエディタ手段に供給する付帯情報供給手段とを含む。   Therefore, for example, Japanese Patent Laid-Open No. 2001-75616 (Patent Document 1) discloses an editor device that can simplify the input of incidental information and efficiently create a display content program or a control procedure program. This editor device creates a first editor means for creating a display content program for defining display contents for displaying the status of a control target device, and a control procedure program for determining a control procedure for controlling the control target device. A variable set in common corresponding to the address of each control target device between the second editor means, the display content program, and the control procedure program to represent each control target device and their state And supplementary information supply means for supplying information from one editor means to the other editor means as supplementary information about a display symbol or a plurality of control symbols representing a control operation corresponding to the control target device.

上記のエディタ装置によると、いずれか一方のエディタ手段で既に入力されている付帯情報は、他方のエディタ手段に供給されるため、その情報の重複入力が避けられる。これにより、複数の変数を効率よく設定してプログラムを作成することができる。
特開2001−75616号公報(特許文献1)
According to the above-described editor device, the incidental information already input by any one of the editor means is supplied to the other editor means, so that it is possible to avoid redundant input of the information. Thereby, a program can be created by efficiently setting a plurality of variables.
JP 2001-75616 A (Patent Document 1)

また、上記のような効率のよい変数の設定時における効率化という要請に加えて、機器の追加その他の制御対象機器の構成の変更等による設定の変更に応じた画面の編集も効率よく行ないたいという要請もある。   In addition to the above-mentioned request for efficiency when setting efficient variables, we would like to efficiently edit the screen according to the setting change due to the addition of equipment and other changes in the configuration of the control target equipment. There is also a request.

しかしながら、たとえば、既に設定された変数に対して、新たに変数を追加するために、さらに変数を設定する場合には、その変数の属性(たとえば、ビット変数、整数変数等)によっては、所定の領域がメモリ領域に確保されない場合があるため、プログラムの変更が容易ではない場合があった。すなわち、従来は、制御対象機器に対して当初設定された変数のアドレスは、固定データ領域として確保されており、利用者は、その領域以外のメモリ領域に対して割り当てられる変数を追加することができた。そのため、制御対象機器の変更その他の目的のために、利用者が変数の領域を一度設定した後に変数を作成する場合には、使用可能な領域が制約を受けるという点で柔軟性に欠ける場合もあった。   However, for example, in order to add a new variable to a variable that has already been set, depending on the attribute of the variable (for example, a bit variable, an integer variable, etc.) Since the area may not be secured in the memory area, the program may not be easily changed. That is, conventionally, the address of the variable initially set for the control target device is secured as a fixed data area, and the user can add a variable assigned to a memory area other than that area. did it. Therefore, when a variable is created after the user has set the variable area once for the purpose of changing the control target device or other purposes, it may not be flexible in that the usable area is restricted. there were.

本発明は、上述の問題点を解決するためになされたものであって、その目的は、制御対象機器の状態を表示する機能および制御対象機器の動作の制御を指示する機能を有する表示器において実行されるプログラムが使用する変数の作成において、柔軟な作成を可能とし、このプログラムを使用するコンピュータの記憶装置におけるデータ領域の利用効率を向上させ、さらに、プログラムのメンテナンス性を向上させることができるエディタ装置を提供することである。   The present invention has been made to solve the above-described problems, and an object of the present invention is to provide a display device having a function of displaying a state of a control target device and a function of instructing control of an operation of the control target device. The creation of variables used by the program to be executed enables flexible creation, improves the use efficiency of the data area in the storage device of the computer that uses this program, and further improves the maintainability of the program. An editor device is provided.

本発明の他の目的は、制御対象機器の状態を表示する機能および制御対象機器の動作の制御を指示する機能を有する表示器において実行されるプログラムが使用する変数の作成において、柔軟な作成を可能とし、また、プログラムのメンテナンス性を向上させることができるエディタ装置としてコンピュータを機能させることができるプログラムを提供することである。   Another object of the present invention is to provide flexible creation of variables used by a program executed in a display device having a function of displaying the state of a control target device and a function of instructing control of operation of the control target device. Another object of the present invention is to provide a program that allows a computer to function as an editor device capable of improving the maintainability of the program.

本発明のさらに他の目的は、制御対象機器の状態を表示する機能および制御対象機器の動作の制御を指示する機能を有する表示器において実行されるプログラムが使用する変数の作成において、柔軟な作成を可能とし、また、プログラムのメンテナンス性を向上させることができるエディタ装置としてコンピュータを機能させることができるプログラムを記録した記録媒体を提供することである。   Still another object of the present invention is to provide flexible creation of variables used by a program executed in a display device having a function of displaying a state of a control target device and a function of instructing control of operation of the control target device. It is another object of the present invention to provide a recording medium that records a program that can cause a computer to function as an editor device that can improve the maintainability of the program.

上記の課題を解決するために、この発明のある局面に従うと、エディタ装置は、表示器がその記憶装置に格納した複数のデータに基づいて制御対象機器の状態の表示と動作の制御の指示とを実行する制御プログラムに対応するデータを、表示器に転送可能な形式で作成するための装置である。このエディタ装置は、複数のデータがそれぞれ対応付けられる変数の制御プログラムにおける属性を、各変数が属するグループの名称に対応付けて記憶するための記憶手段と、利用者がデータを入力するための入力手段と、データから検出される表示の指示に基づいて、名称をそれぞれ表示するための表示手段と、データから、名称のそれぞれに対する各グループに対応付けられる識別データの入力と、グループに属する変数の数を規定する設定値の入力とを検知するための検知手段と、識別データと設定値と属性とに基づいて、属性が対応付けられた変数を宣言するコードを生成するための生成手段と、生成されたコードと、予め定められた作成プログラムに基づいて作成されるコードであって、表示の実行と指示の実行とを表わす処理コードとに基づいて、制御プログラムを作成するための作成手段とを含む。   In order to solve the above-described problem, according to one aspect of the present invention, the editor device displays the status of the control target device based on a plurality of data stored in the storage device by the display device and instructions for controlling the operation. Is a device for creating data corresponding to a control program for executing the above in a format that can be transferred to a display. This editor device includes a storage means for storing attributes in a control program for variables to which a plurality of data are respectively associated in association with names of groups to which the variables belong, and an input for a user to input data Means, display means for displaying each name based on a display instruction detected from the data, input of identification data associated with each group for each name from the data, and variables belonging to the group Detecting means for detecting an input of a setting value that defines a number; generating means for generating a code for declaring a variable associated with an attribute based on identification data, a setting value, and an attribute; A generated code and a code created based on a predetermined creation program, which is a processing code that represents display execution and instruction execution. Based on the de, and a creation means for creating a control program.

上記のエディタ装置によると、利用者が入力手段を介して表示の指示を入力すると、表示手段は、各変数が属するグループの名称をそれぞれ表示する。これらの名称は、制御対象機器の状態の表示と動作の制御の指示とを実行する制御プログラムにおける複数のデータがそれぞれ対応付けられる変数の属性に対応付けられている。利用者が、各名称のそれぞれに対する各グループに対応付けられる識別データと、そのグループに属する変数の数を規定する設定値とを入力すると、生成手段は、その識別データと設定値と属性とに基づいて(たとえば、0から設定値までの数値に対して識別データを付与することにより)、属性が対応付けられた変数を宣言するコード(たとえば、プログラム言語における変数の宣言文)を生成する。作成手段は、そのコードと、予め定められた作成プログラムに基づいて作成されるコードであって、表示の実行と指示の実行とを表わす処理コードとに基づいて、たとえば、そのコードを処理コードの先頭に追加することにより、制御プログラムに対応するデータを作成する。このようにすると、利用者が識別データと設定値とを入力することにより、エディタ装置は、属性が対応付けられた変数を有する制御プログラムに対応するデータを作成することができる。このデータが表示器に転送されると、その表示器は、そのデータから制御プログラムを実行可能な形式にて取り込むことができる。その結果、表示器がこの制御プログラムを実行する場合には、そのプログラム中にて宣言される変数が参照するデータの領域は、そのデータの属性に応じて記憶装置に確保される。これにより、このプログラムを使用するコンピュータの記憶装置において、データ領域の利用効率を向上させることができる。   According to the editor apparatus, when the user inputs a display instruction via the input unit, the display unit displays the name of the group to which each variable belongs. These names are associated with variable attributes to which a plurality of data in the control program for executing the display of the state of the control target device and the operation control instruction are associated. When the user inputs identification data associated with each group for each name and a setting value that defines the number of variables belonging to that group, the generating means converts the identification data, setting value, and attribute into the identification data, the setting value, and the attribute. Based on (for example, by assigning identification data to a numerical value from 0 to a set value), a code for declaring a variable associated with an attribute (for example, a variable declaration statement in a programming language) is generated. The creation means is a code created based on the code and a predetermined creation program, and based on the processing code representing execution of display and execution of instructions, for example, the code is By adding to the head, data corresponding to the control program is created. In this way, when the user inputs the identification data and the set value, the editor device can create data corresponding to the control program having a variable with which the attribute is associated. When this data is transferred to the display device, the display device can capture the control program from the data in an executable form. As a result, when the display device executes this control program, a data area referred to by a variable declared in the program is secured in the storage device in accordance with the attribute of the data. Thereby, the use efficiency of the data area can be improved in the storage device of the computer using this program.

好ましくは、コードは、制御プログラムにおいて変数の宣言を表わすコードである。作成手段は、コードに含まれる変数が処理コードにおいて参照される位置よりも前の位置にコードを挿入することにより、制御プログラムを作成する。   Preferably, the code is a code representing a variable declaration in the control program. The creating means creates the control program by inserting the code at a position before the position where the variable included in the code is referenced in the processing code.

上記のエディタ装置によると、属性に応じて作成された変数が制御プログラムの処理の前に宣言されるため、表示器は、その変数を含む制御プログラムを確実に実行することができる。   According to the editor device described above, since the variable created according to the attribute is declared before the processing of the control program, the display device can reliably execute the control program including the variable.

好ましくは、生成手段は、識別データと設定値とに基づいて、複数の変数の各々を生成するための変数生成手段と、属性を、複数の変数の各々に関連付けるための手段と、属性に基づいて、複数の変数を並べ替えるためのソート手段と、並べ替えられた複数の変数の配列の順序に対応させて、コードを生成するための手段とを含む。   Preferably, the generation means is based on the identification data and the set value, the variable generation means for generating each of the plurality of variables, the means for associating the attribute with each of the plurality of variables, and the attribute And sorting means for rearranging the plurality of variables, and means for generating a code corresponding to the order of the arrangement of the plurality of rearranged variables.

上記のエディタ装置によると、属性に基づいて並べ替えられた順序に基づいて各変数を宣言するコードを含む制御プログラムが生成される。したがって、表示器がその制御プログラムを実行した場合には、各変数に対応するデータを格納するための領域は、属性に応じて、DRAM(Dynamic Random Access Memory)その他の記憶装置に確保される。このようにすると、記憶装置における空き領域の生成を抑制することができるため、記憶装置を効率よく利用することができる。   According to the editor device, a control program including a code for declaring each variable based on the order rearranged based on the attribute is generated. Therefore, when the display device executes the control program, an area for storing data corresponding to each variable is secured in a DRAM (Dynamic Random Access Memory) or other storage device according to the attribute. In this way, it is possible to suppress the generation of free space in the storage device, so that the storage device can be used efficiently.

好ましくは、設定値は、グループに属する変数のアドレスの上限値である。変数生成手段は、上限値までのアドレスに対して、アドレスを表わす文字列の先頭に識別データを追加することにより、複数の変数の各々を生成する。   Preferably, the set value is an upper limit value of an address of a variable belonging to the group. The variable generation means generates each of the plurality of variables by adding identification data to the head of the character string representing the address with respect to the address up to the upper limit value.

上記のエディタ装置によると、その変数が属するグループごとに、各変数は、そのアドレスの上限値まで生成される。このようにすると、利用者は、データの記録領域における変数の配列をイメージしながら、エディタ装置においてプログラムの作成を行なうことができる。これにより、制御プログラムの作成に関し、効率を向上させることができる。   According to the editor device described above, each variable is generated up to the upper limit value of the address for each group to which the variable belongs. In this way, the user can create a program in the editor device while imagining the arrangement of variables in the data recording area. Thereby, the efficiency can be improved with respect to the creation of the control program.

好ましくは、識別データは、アルファベットにより表わされる文字である。文字列の桁数は、予め定められた桁数である。   Preferably, the identification data is a character represented by an alphabet. The number of digits of the character string is a predetermined number of digits.

上記のエディタ装置によると、予め長さが固定された変数が生成される。この変数は、アルファベットにより表わされる文字を先頭に含むため、ソート処理を容易に実行することができる。このようにすると、変数の属性を識別データに反映させることにより、利用者はその変数の属性を認識しつつ、データ領域の利用効率が向上する変数を設定することができる。   According to the editor device, a variable whose length is fixed in advance is generated. Since this variable includes characters represented by alphabets at the beginning, the sorting process can be easily executed. In this way, by reflecting the attribute of the variable in the identification data, the user can set a variable that improves the utilization efficiency of the data area while recognizing the attribute of the variable.

好ましくは、制御プログラムにおける属性は、変数の型を含む。   Preferably, the attribute in the control program includes a variable type.

上記のエディタ装置によると、制御プログラムにおいて参照される各変数を宣言するコードは、その変数の型に応じて生成される。したがって、変数の型が対応付けられた識別データを設定することにより、データ領域の利用効率が向上する変数を設定することができる。   According to the above editor device, the code for declaring each variable referred to in the control program is generated according to the type of the variable. Therefore, by setting the identification data associated with the variable type, it is possible to set a variable that improves the use efficiency of the data area.

好ましくは、変数の型は、ビット、整数および整数配列のいずれかを含む。   Preferably, the variable type includes any of bits, integers and integer arrays.

上記のエディタ装置によると、ビット、整数および整数配列のいずれかが対応付けられた識別データを設定することにより、データ領域の利用効率が向上する変数を設定することができる。   According to the editor device described above, by setting identification data associated with any one of bits, integers, and integer arrays, it is possible to set variables that improve the utilization efficiency of the data area.

好ましくは、エディタ装置はさらに、データから、追加の変数の名称および追加の変数の属性の入力を検知するための手段と、追加の変数の属性が対応付けられた追加の変数を宣言するコードを生成するための手段とを含む。ソート手段は、複数の変数の配列に続けて、追加の変数の属性に基づいて、追加の変数を並べ替える。   Preferably, the editor device further includes means for detecting an input of an additional variable name and an additional variable attribute from the data, and a code for declaring the additional variable associated with the additional variable attribute. Means for generating. The sorting means rearranges the additional variables based on the attributes of the additional variables following the array of the plurality of variables.

上記のエディタ装置によると、利用者は、任意に変数を追加することができる。変数を宣言するコードは、当初生成された複数の変数の後に、追加された変数を宣言するように、生成される。したがって、利用者が変数を追加しても、制御プログラムは、追加される前の動作を確実に実行することができる。   According to the editor device described above, the user can arbitrarily add a variable. The code that declares the variable is generated so as to declare the added variable after the plurality of originally generated variables. Therefore, even if the user adds a variable, the control program can reliably execute the operation before the addition.

好ましくは、エディタ装置はさらに、表示器における制御プログラムの動作条件を記憶するための手段と、制御プログラムのコードを、動作条件に応じたコードに変換するための変換手段とを含む。   Preferably, the editor device further includes means for storing the operating condition of the control program in the display, and conversion means for converting the code of the control program into a code corresponding to the operating condition.

上記のエディタ装置によると、制御プログラムは、表示器が実行可能なように変換される。したがって、表示器が制御プログラムをその動作条件に応じたコードに変換する機能を有する必要がなくなるため、表示器の処理機能(たとえば、CPU(Central Processing Unit))に対する負荷を低減することができる。   According to the editor device described above, the control program is converted so that the display device can be executed. Therefore, it is not necessary for the display device to have a function of converting the control program into a code corresponding to the operating condition, so that the load on the processing function of the display device (for example, a CPU (Central Processing Unit)) can be reduced.

この発明の他の局面に従うと、プログラムは、表示器が記憶装置に格納した複数のデータに基づいて制御対象機器の状態の表示と動作の制御の指示とを実行する制御プログラムに対応するデータを、表示器に転送可能な形式で作成するエディタ装置として、コンピュータを機能させる。このプログラムはコンピュータに、そのコンピュータの記憶手段に格納されているデータを読み出して、複数のデータがそれぞれ対応付けられる変数の制御プログラムにおける属性を、各変数が属するグループの名称に対応付けて準備するステップと、利用者がデータを入力するステップと、データから検出される表示の指示に基づいて、名称をそれぞれ表示するステップと、データから、名称のそれぞれに対する各グループに対応付けられる識別データの入力と、グループに属する変数の数を規定する設定値の入力とを検知するステップと、識別データと設定値と属性とに基づいて、属性が対応付けられた変数を宣言するコードを生成するステップと、生成されたコードと、予め定められた作成プログラムに基づいて作成されるコードであって、表示の実行と指示の実行とを表わす処理コードとに基づいて、制御プログラムを作成するステップとを実行させる。   According to another aspect of the present invention, the program stores data corresponding to a control program that executes a display of the state of the controlled device and an instruction to control the operation based on a plurality of data stored in the storage device by the display. The computer is caused to function as an editor device created in a format that can be transferred to the display. This program reads out the data stored in the storage means of the computer, and prepares the attribute in the control program of the variable to which each of the plurality of data is associated with the name of the group to which each variable belongs. A step of inputting data, a step of inputting data by the user, a step of displaying each name based on a display instruction detected from the data, and an input of identification data associated with each group for each name from the data Detecting a setting value that defines the number of variables belonging to the group; generating a code that declares a variable associated with the attribute based on the identification data, the setting value, and the attribute; A generated code and a code created based on a predetermined creation program. Te, based on the processing code representing the execution of the display and the execution of the instruction, and a step of creating a control program.

上記のプログラムによると、利用者が入力手段を介して表示の指示を入力すると、コンピュータは、各変数が属するグループの名称をそれぞれ表示する。これらの名称は、制御対象機器の状態の表示と動作の制御の指示とを実行する制御プログラムにおける複数のデータがそれぞれ対応付けられる変数の属性に対応付けられている。利用者が、各名称のそれぞれに対する各グループに対応付けられる識別データと、そのグループに属する変数の数を規定する設定値とを入力すると、コンピュータは、その識別データと設定値と属性とに基づいて(たとえば、0から設定値までの数値に対して識別データを付与することにより)、属性が対応付けられた変数を宣言するコード(たとえば、プログラム言語における変数の宣言文)を生成する。コンピュータは、そのコードと、予め定められた作成プログラムに基づいて作成されるコードであって、表示の実行と指示の実行とを表わす処理コードとに基づいて、たとえば、そのコードを処理コードの先頭に追加することにより、制御プログラムに対応するデータを作成する。このように、利用者が識別データと設定値とを入力することにより、コンピュータは、属性が対応付けられた変数を有する制御プログラムに対応するデータを転送可能な形式で作成することができる。その結果、表示器がこの制御プログラムを実行する場合には、そのプログラム中にて宣言される変数が参照するデータの領域は、そのデータの属性に応じて表示器の記憶装置に確保される。これにより、このプログラムを使用する表示器の記憶装置において、データ領域の利用効率を向上させることができる。   According to the above program, when the user inputs a display instruction via the input means, the computer displays the name of the group to which each variable belongs. These names are associated with variable attributes to which a plurality of data in the control program for executing the display of the state of the control target device and the operation control instruction are associated. When the user inputs identification data associated with each group for each name and a setting value that defines the number of variables belonging to that group, the computer is based on the identification data, the setting value, and the attribute. (For example, by assigning identification data to a numerical value from 0 to a set value), a code for declaring a variable associated with an attribute (for example, a variable declaration statement in a programming language) is generated. The computer is a code created based on the code and a predetermined creation program, and the processing code representing execution of display and execution of the instruction, for example, the code is added to the head of the processing code. By adding to, data corresponding to the control program is created. In this way, when the user inputs the identification data and the set value, the computer can create data corresponding to the control program having the variable with which the attribute is associated in a transferable format. As a result, when the display device executes the control program, the data area referred to by the variable declared in the program is secured in the storage device of the display device in accordance with the attribute of the data. Thereby, the utilization efficiency of the data area can be improved in the storage device of the display using this program.

この発明のさらに他の局面に従うと、記録媒体は、表示器が記憶装置に格納した複数のデータに基づいて制御対象機器の状態の表示と動作の制御の指示とを実行する制御プログラムを作成するエディタ装置として、コンピュータを機能させるプログラムを格納する。このプログラムは、コンピュータに、そのコンピュータの記憶装置に格納されているデータを読み出して、複数のデータがそれぞれ対応付けられる変数の制御プログラムにおける属性を、各変数が属するグループの名称に対応付けて準備するステップと、利用者がデータを入力するステップと、データから検出される表示の指示に基づいて、名称をそれぞれ表示するステップと、データから、名称のそれぞれに対する各グループに対応付けられる識別データの入力と、グループに属する変数の数を規定する設定値の入力とを検知するステップと、識別データと設定値と属性とに基づいて、属性が対応付けられた変数を宣言するコードを生成するステップと、生成されたコードと、予め定められた作成プログラムに基づいて作成されるコードであって、表示の実行と指示の実行とを表わす処理コードとに基づいて、制御プログラムを作成するステップとを実行させる。   According to still another aspect of the present invention, the recording medium creates a control program for executing the display of the state of the controlled device and the operation control instruction based on a plurality of data stored in the storage device by the display device. As an editor device, a program that causes a computer to function is stored. This program reads out the data stored in the storage device of the computer and prepares the attribute in the control program of the variable to which each of the plurality of data is associated with the name of the group to which each variable belongs. A step of inputting data, a step of displaying data based on a display instruction detected from the data, and a step of displaying identification data associated with each group for each name from the data A step of detecting an input and an input of a set value that defines the number of variables belonging to the group; and a step of generating a code for declaring a variable associated with the attribute based on the identification data, the set value, and the attribute And the generated code and the code created based on a predetermined creation program Therefore, pursuant to the processing code representing the execution of the display and the execution of the instruction, and a step of creating a control program.

上記の記録媒体によると、コンピュータは、その記録媒体に格納されたプログラムを実行することにより、制御対象機器の状態を表示する機能および制御対象機器の動作の制御を指示する機能を有する表示器において実行されるプログラムが使用する変数の作成において、柔軟な作成を可能とし、このプログラムを使用する表示器の記憶装置におけるデータ領域の利用効率を向上させることができるエディタ装置として機能することができる。   According to the above recording medium, the computer has a function of displaying the state of the control target device and a function of instructing control of the operation of the control target device by executing a program stored in the recording medium. The variable used by the program to be executed can be created flexibly, and it can function as an editor device that can improve the utilization efficiency of the data area in the storage device of the display using this program.

本発明に係るエディタ装置によると、制御対象機器の状態を表示する機能および制御対象機器の動作の制御を指示する機能を有する表示器において実行されるプログラムが使用する変数の作成において、アドレスが作成されるイメージを利用者に想起させることができる。また、このエディタ装置によると、作成された制御プログラムを使用するコンピュータの記憶装置におけるデータ領域の利用効率を向上させることができる。さらに、エディタ装置は、利用者が任意に入力するデータに基づいて変数の宣言コードを生成する。そのコードは、既に作成されている変数の宣言コードに続くように配置される。したがって、既に動作が確認されているプログラムに新たなプログラムを容易に追加することができるため、メンテナンス性を向上させることができる。   According to the editor device of the present invention, an address is created in creating a variable used by a program executed in a display device having a function of displaying a state of a control target device and a function of instructing control of an operation of the control target device. The image can be reminded to the user. Moreover, according to this editor apparatus, the utilization efficiency of the data area in the storage device of the computer that uses the generated control program can be improved. Further, the editor device generates a variable declaration code based on data arbitrarily input by the user. The code is placed so that it follows the variable declaration code that has already been created. Therefore, since a new program can be easily added to a program whose operation has already been confirmed, maintainability can be improved.

本発明に係るプログラムによると、このプログラムを実行するコンピュータに、表示器の記憶装置におけるデータ領域の利用効率を向上させる制御プログラムを生成させることができる。   According to the program according to the present invention, a computer that executes this program can generate a control program that improves the utilization efficiency of the data area in the storage device of the display.

本発明に係る記録媒体によると、この記録媒体に格納されたプログラムを実行するコンピュータに、表示器の記憶装置におけるデータ領域の利用効率を向上させる制御プログラムを生成させることができる。   According to the recording medium of the present invention, a computer that executes a program stored in the recording medium can generate a control program that improves the utilization efficiency of the data area in the storage device of the display.

以下、図面を参照しつつ、本発明の実施の形態について説明する。以下の説明では、同一の部品には同一の符号を付してある。それらの名称および機能も同じである。したがって、それらについての詳細な説明は繰り返さない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following description, the same parts are denoted by the same reference numerals. Their names and functions are also the same. Therefore, detailed description thereof will not be repeated.

図1を参照して、本発明の実施の形態に係るエディタ装置100の構成の一態様について説明する。図1は、本実施の形態に係るエディタ装置100と、その装置により生成される画像データを使用するプログラマブル表示器150と、PLC(Programmable Logic Controller)180とを説明するための図である。なお、エディタ装置100とプログラマブル表示器150とは、一般には常に接続されているわけではなく、たとえばエディタ装置100により生成された画像データをプログラマブル表示器150にロードするときに一時的に接続される。   With reference to FIG. 1, an aspect of the configuration of editor device 100 according to the embodiment of the present invention will be described. FIG. 1 is a diagram for explaining an editor device 100 according to the present embodiment, a programmable display 150 that uses image data generated by the device, and a PLC (Programmable Logic Controller) 180. In general, the editor device 100 and the programmable display device 150 are not always connected. For example, the image data generated by the editor device 100 is temporarily connected to the programmable display device 150 when it is loaded. .

エディタ装置100は、相互にデータバスで接続された、制御部110と、データを一時的に記憶するためのメモリ部112と、作成される画像などを表示するための表示部114と、利用者がデータを入力するための入力部116と、記録媒体120が装着される駆動部118と、外部とデータの入出力をするための通信部122と、大容量のデータを記憶するためのデータ記憶部140と、画面その他の図形を編集するためのエディタ部130とを含む。エディタ部130は、作画エディタ132と、変数管理部134と、プログラムエディタ136とを含む。   The editor device 100 includes a control unit 110, a memory unit 112 for temporarily storing data, a display unit 114 for displaying a created image, and the like, which are connected to each other via a data bus, and a user Input unit 116 for inputting data, drive unit 118 to which recording medium 120 is mounted, communication unit 122 for inputting / outputting data to / from the outside, and data storage for storing a large amount of data Part 140 and an editor part 130 for editing a screen and other graphics. The editor unit 130 includes a drawing editor 132, a variable management unit 134, and a program editor 136.

制御部110は、たとえばCPU、あるいはMPU(Micro Processing Unit)その他の演算回路である。制御部110は、所定の指示を検出すると、予めデータ記憶部140に格納されていた初期データと処理プログラムとをメモリ部112に読み出し、メモリ部112において逐次演算することにより、そのプログラムに基づく処理を実行する。   The controller 110 is, for example, a CPU, an MPU (Micro Processing Unit), or other arithmetic circuit. When the control unit 110 detects a predetermined instruction, the control unit 110 reads the initial data and the processing program stored in the data storage unit 140 in advance into the memory unit 112, and sequentially calculates in the memory unit 112, thereby processing based on the program. Execute.

メモリ部112は、たとえばRAM(Random Access Memory)、ROM(Read Only Memory)その他のメモリである。このメモリ部112には、初期データなどの固定データ、あるいは制御部110による一時的な処理結果その他のデータが格納される。このデータの格納については後述する。   The memory unit 112 is, for example, a RAM (Random Access Memory), a ROM (Read Only Memory), or other memory. The memory unit 112 stores fixed data such as initial data, or temporary processing results by the control unit 110 and other data. The storage of this data will be described later.

表示部114は、たとえばディスプレイ装置である。表示部114は、制御部110から受信した信号に基づいて、画面を表示する。   The display unit 114 is, for example, a display device. The display unit 114 displays a screen based on the signal received from the control unit 110.

入力部116は、キーボード、マウスその他の入力装置である。利用者は、この入力部116を介して、画面の編集のためのデータ、画面に含まれる画像に関連付けられる設定データ等を入力することができる。   The input unit 116 is a keyboard, mouse, or other input device. The user can input data for editing the screen, setting data associated with an image included in the screen, and the like via the input unit 116.

駆動部118は、装着された記録媒体120からデータを読み出したり、あるいは記録媒体120にデータを書き込んだりすることができる。この駆動部118には、CD(Compact Disk)ドライブ装置、メモリカードドライブ装置等が含まれる。   The drive unit 118 can read data from the attached recording medium 120 or write data to the recording medium 120. The drive unit 118 includes a CD (Compact Disk) drive device, a memory card drive device, and the like.

通信部122は、通信回線を介して外部の装置と通信するためのインタフェースである。通信部122は、たとえばUSB(Universal Serial Bus)規格、RS(Recommendation Standard)−232C規格、RS−422規格等のインターフェースであるが、これらに限られず、通信回線を介して接続される機器とデータを通信することができるものであればよい。   The communication unit 122 is an interface for communicating with an external device via a communication line. The communication unit 122 is, for example, an interface such as USB (Universal Serial Bus) standard, RS (Recommendation Standard) -232C standard, RS-422 standard, etc., but is not limited thereto, and devices and data connected via a communication line. As long as it can communicate.

エディタ部130は、予め記憶されたプログラムおよびデータに基づいて、利用者がプログラマブル表示器150に表示させる画面などを編集するための機能を実現するものである。作画エディタ132は、作画に必要なデータ(たとえば、スイッチ、ランプ、テンキー、各種表示器などの部品、描画機能、テキスト入力機能)などを有する。   The editor unit 130 realizes a function for editing a screen or the like displayed on the programmable display 150 by the user based on a program and data stored in advance. The drawing editor 132 includes data necessary for drawing (for example, parts such as switches, lamps, numeric keys, and various displays, a drawing function, and a text input function).

作画エディタ132は、予め準備されたこれらのデータおよびプログラムに基づいて、利用者が希望する画面を生成する。また、作画エディタ132は、作成された画面に配置されたマークの各制御対象機器に対する入出力番号(アドレス)を割り付けることができる。作画エディタ132によって作成されたユーザ画面は、データ記憶部140に格納される。このユーザ画面は、利用者の指示に基づいて通信部122を介して接続されたプログラマブル表示器150に転送される。この転送された画面データは、通信部122との間で一時的に接続されるプログラマブル表示器150のメンテナンスポート154を介して、FEPROM(Flash Erasable Programmable ROM)164に転送される。   The drawing editor 132 generates a screen desired by the user based on these data and programs prepared in advance. Further, the drawing editor 132 can assign an input / output number (address) to each control target device of the mark arranged on the created screen. The user screen created by the drawing editor 132 is stored in the data storage unit 140. This user screen is transferred to the programmable display 150 connected via the communication unit 122 based on a user instruction. The transferred screen data is transferred to a FEPROM (Flash Erasable Programmable ROM) 164 via the maintenance port 154 of the programmable display 150 that is temporarily connected to the communication unit 122.

変数管理部134は、作画エディタ132から入力された変数に、シンボルが表わす機能(ランプ、スイッチ、カウンタ、タイマ等)を機能属性として付与し、その変数をデータ記憶部140に記憶させる。   The variable management unit 134 assigns the function (lamp, switch, counter, timer, etc.) represented by the symbol to the variable input from the drawing editor 132 as a function attribute, and causes the data storage unit 140 to store the variable.

この変数は、利用者が任意に入力可能な変数(いわゆる自由変数)であってもよいし、予め定められたネーミングルールに基づいて、所定の基準によって作成される変数(いわゆる固定変数)であってもよい。   This variable may be a variable (so-called free variable) that can be arbitrarily input by the user, or a variable (so-called fixed variable) created based on a predetermined standard based on a predetermined naming rule. May be.

機能属性の付与は、上記の各変数に予約語を含ませることにより行なわれる。この場合、たとえばランプの場合、“L”を予約語として、この予約語は、変数の先頭に含められる。たとえば、“LOOO”(Oは、任意の文字あるいは数字を表わす。)は、識別番号がOOOであるランプの変数を表わす。スイッチ、カウンタ、タイマ等についても、変数を同様に設定することができる。なお、機能属性の付与は、上記の方法に限られない。   The function attribute is given by including a reserved word in each of the above variables. In this case, for example, in the case of a lamp, “L” is a reserved word, and this reserved word is included at the beginning of the variable. For example, “LOOO” (O represents any letter or number) represents a lamp variable whose identification number is OOO. Variables can be set similarly for switches, counters, timers, and the like. The assignment of the function attribute is not limited to the above method.

プログラムエディタ136は、作画エディタ132によって作成された画面とデータ記憶部140に記憶されている変数とに基づいて、プログラマブル表示器150が実行する制御プログラムを作成する。この制御プログラムは、たとえばプログラマブル表示器150に接続されるPLC180、組立て機(図示しない)その他の制御対象機器の状態を表示したり、あるいは、これらの制御対象機器に予め定められた動作を行なわせる指示を出力するためのプログラムである。   The program editor 136 creates a control program executed by the programmable display device 150 based on the screen created by the drawing editor 132 and the variables stored in the data storage unit 140. This control program displays, for example, the status of the PLC 180 connected to the programmable display 150, an assembly machine (not shown), or other control target devices, or causes these control target devices to perform predetermined operations. This is a program for outputting instructions.

データ記憶部140は、たとえばハードディスク装置であるが、その他の記憶装置であってもよい。このデータ記憶部140は、制御部110により、データの書込みあるいは読み出しが制御される。   The data storage unit 140 is, for example, a hard disk device, but may be another storage device. The data storage unit 140 is controlled by the control unit 110 to write or read data.

図1を再び参照して、プログラマブル表示器150は、相互にデータバスで接続された、CPU152と、メンテナンスポート154と、メモリ160と、通信コントローラ166と、VRAM(Video RAM)168と、グラフィックコントローラ170と、ディスプレイ172と、タッチパネル174と、タッチパネルコントローラ176と、I/O(Input/Output)制御IF(Interface)178と、I/Oユニット179とを含む。   Referring to FIG. 1 again, the programmable display 150 includes a CPU 152, a maintenance port 154, a memory 160, a communication controller 166, a VRAM (Video RAM) 168, and a graphic controller, which are connected to each other via a data bus. 170, a display 172, a touch panel 174, a touch panel controller 176, an I / O (Input / Output) control IF (Interface) 178, and an I / O unit 179.

メモリ160は、DRAM(Dynamic RAM)162と、FEPROM(Flash Erasable and Programmable ROM)164とを含む。I/Oユニット179は、制御対象機器196,198その他の機器を接続するための入出力端子、入出力回路等を含む。複数の入出力端子が、備えられてもよい。I/O制御IF178は、CPU152とI/Oユニット179との間の信号の授受を仲介するインターフェース回路である。I/O制御IF178は、入出力メモリ、D/A(Digital to Analog)変換器、A/D(Analog to Digital)変換器等を含む。   The memory 160 includes a DRAM (Dynamic RAM) 162 and a FEPROM (Flash Erasable and Programmable ROM) 164. The I / O unit 179 includes input / output terminals, input / output circuits, and the like for connecting control target devices 196, 198 and other devices. A plurality of input / output terminals may be provided. The I / O control IF 178 is an interface circuit that mediates transmission / reception of signals between the CPU 152 and the I / O unit 179. The I / O control IF 178 includes an input / output memory, a D / A (Digital to Analog) converter, an A / D (Analog to Digital) converter, and the like.

CPU152は、FEPROM164に格納されたプログラムに基づいて、PLC180との通信処理、ディスプレイ172の表示処理等を実行する。CPU152はまた、タッチパネル174における入力に基づいて、その入力に対応する処理を実行する。   The CPU 152 executes communication processing with the PLC 180, display processing of the display 172, and the like based on a program stored in the FEPROM 164. The CPU 152 also executes processing corresponding to the input based on the input on the touch panel 174.

メンテナンスポート154は、プログラマブル表示器150の保守時等において一時的に使用されるポートである。プログラマブル表示器150に表示させる画面を変更する場合、あるいは画面の表示制御の設定を変更する場合等において、新しいデータがメンテナンスポート154から入力される。これにより、プログラマブル表示器150とPLC180との通信が妨げられることなく、画面のデータを更新することができる。   The maintenance port 154 is a port temporarily used when the programmable display device 150 is maintained. New data is input from the maintenance port 154 when the screen to be displayed on the programmable display 150 is changed or when the display control setting of the screen is changed. Thereby, the screen data can be updated without interfering with communication between the programmable display 150 and the PLC 180.

DRAM162は、主にディスプレイ172における表示制御その他の処理に用いられるデータを一時的に記憶する。FEPROM164は、書換可能なフラッシュメモリである。フラッシュメモリは、稼動部を持たず、また衝撃に強いため、PLC180に接続される環境が劣悪であっても、安定して作動することができる。   The DRAM 162 temporarily stores data mainly used for display control and other processing in the display 172. The FEPROM 164 is a rewritable flash memory. Since the flash memory does not have an operating part and is resistant to impact, it can operate stably even if the environment connected to the PLC 180 is poor.

通信コントローラ166は、CPU152の制御により、PLC180との間でデータ通信を行なう。通信されるデータには、PLC180から報告される、実績その他の稼動状況を表わすデータ、あるいは、プログラマブル表示器150からPLC180に送信される設定データ等が含まれる。   The communication controller 166 performs data communication with the PLC 180 under the control of the CPU 152. The data to be communicated includes data representing actual results and other operating conditions reported from the PLC 180, or setting data transmitted from the programmable display 150 to the PLC 180.

VRAM168は、CPU152の制御により画面表示用のデータを一時的に保存する。このデータは、グラフィックコントローラ170に読み出され、ディスプレイ172に出力される。これにより、ディスプレイ172は、所定の画面を表示することができる。   The VRAM 168 temporarily stores screen display data under the control of the CPU 152. This data is read by the graphic controller 170 and output to the display 172. Thereby, the display 172 can display a predetermined screen.

タッチパネルコントローラ176は、タッチパネル174とデータバスとの間に配置され、タッチパネル174の押下を検出する。タッチパネルコントローラ176がその押下を検出すると、その位置あるいは入力されたデータは、メモリ部160に出力される。   The touch panel controller 176 is disposed between the touch panel 174 and the data bus, and detects pressing of the touch panel 174. When the touch panel controller 176 detects the pressing, the position or input data is output to the memory unit 160.

上記の構成のように、プログラマブル表示器150は、I/O制御IF178およびI/Oユニット179を有するため、PLC180を介することなく、制御対象機器に接続することができる。したがって、プログラマブル表示器150は、たとえば制御対象機器196,198の状態の表示あるいは動作の制御の指示を直接実行することができる。   Since the programmable display 150 has the I / O control IF 178 and the I / O unit 179 as in the above configuration, it can be connected to the control target device without going through the PLC 180. Therefore, the programmable display 150 can directly execute, for example, a display of the state of the control target devices 196 and 198 or an operation control instruction.

なお、プログラマブル表示器150の構成は、上記のものに限られない。たとえば、プログラマブル表示器は、グラフィック表示を行なうため、操作盤、スイッチ、表示灯などの機能を有する他、デバイスその他の制御対象機器の稼動状況や作業指示のような管理のための各種のモニタ、機器に対する設定値を入力する端末としての機能を備えていればよい。   The configuration of the programmable display 150 is not limited to the above. For example, the programmable display has a function such as an operation panel, a switch, an indicator light, etc. for performing graphic display, as well as various monitors for management such as operation status and work instructions of devices and other controlled devices, It suffices to have a function as a terminal for inputting a setting value for a device.

このような表示器で表示される制御画面は、画面作成プログラムによって利用者が作成することができる。このようなプログラムがコンピュータで起動されると、編集のための画面が表示される。利用者は、その画面において、制御画面を構成する画像ブロックを任意に使用したり、操作の可否を設定することができる。ここで、画像ブロックとは、たとえば、制御画面そのもの、制御画面に表示されるランプ、スイッチ、カウンタ、メータ表示器、グラフ表示器などの部品画像(シンボル)、あるいは、制御画面や部品画像に付加的に表示される補助画像(たとえばポップアップウィンドウ画面)などの画像をいうが、これらに限られない。これらの画像は、利用者が全てデザインしてもよいし、予めテンプレートとして準備された画像であってもよい。   A control screen displayed on such a display can be created by a user by a screen creation program. When such a program is started on the computer, a screen for editing is displayed. The user can arbitrarily use the image blocks constituting the control screen on the screen, and set whether or not the operation can be performed. Here, the image block is, for example, a control screen itself, a component image (symbol) such as a lamp, switch, counter, meter display, or graph display displayed on the control screen, or added to the control screen or component image. An auxiliary image (for example, a pop-up window screen) or the like that is displayed automatically, but is not limited thereto. These images may all be designed by the user, or may be images prepared in advance as templates.

図1を再び参照して、PLC180は、ネットワーク190を介してプログラマブル表示器150と接続される。PLC180はさらに、制御対象機器192,194に接続される。PLC180は、制御機能部として、予め設定された制御プログラムを実行することにより、制御対象機器192,194の動作を制御する。制御対象機器192,194は、たとえば自動組立て機、ベルトコンベアなどであるが、これらの機器に限られない。また、PLC180に接続される制御対象機器の数は、特定の数に限られない。   Referring back to FIG. 1, the PLC 180 is connected to the programmable display 150 via the network 190. The PLC 180 is further connected to the control target devices 192 and 194. The PLC 180 controls the operations of the control target devices 192 and 194 by executing a preset control program as a control function unit. The control target devices 192 and 194 are, for example, automatic assembly machines and belt conveyors, but are not limited to these devices. Further, the number of control target devices connected to the PLC 180 is not limited to a specific number.

図2を参照して、本実施の形態に係るエディタ装置100を実現するコンピュータシステム200について説明する。図2は、コンピュータシステム200の構成を表わすブロック図である。   With reference to FIG. 2, a computer system 200 that realizes the editor device 100 according to the present embodiment will be described. FIG. 2 is a block diagram showing the configuration of the computer system 200.

図2に示すように、このコンピュータシステム200は、相互にバスで接続されたCPU210と、モニタ220と、マウス230と、キーボード240と、メモリ250と、固定ディスク260と、FD(Flexible Disk)駆動装置270と、CD−ROM駆動装置280と、通信IF290とを含む。FD駆動装置270には、FD272が装着される。CD−ROM駆動装置280には、CD−ROM282が装着される。   As shown in FIG. 2, the computer system 200 includes a CPU 210, a monitor 220, a mouse 230, a keyboard 240, a memory 250, a fixed disk 260, and an FD (Flexible Disk) drive connected to each other via a bus. A device 270, a CD-ROM drive 280, and a communication IF 290 are included. An FD 272 is attached to the FD driving device 270. A CD-ROM 282 is attached to the CD-ROM drive 280.

CPU210は、図1に示したエディタ装置100における制御部110およびエディタ部130として機能する。マウス230あるいはキーボード240は、エディタ装置100における入力部116として機能する。モニタ220は、エディタ装置100における表示部114として機能する。メモリ250は、エディタ装置100におけるメモリ部112として機能する。固定ディスク260は、エディタ装置100におけるデータ記憶部140として機能する。FD駆動装置270あるいはCD−ROM駆動装置280は、エディタ装置100における駆動部118として機能する。FD272あるいはCD−ROM282は、エディタ装置100の駆動部118に装着される記録媒体である。通信IF290は、エディタ装置100における通信部122として機能する。   The CPU 210 functions as the control unit 110 and the editor unit 130 in the editor device 100 shown in FIG. The mouse 230 or the keyboard 240 functions as the input unit 116 in the editor device 100. The monitor 220 functions as the display unit 114 in the editor device 100. The memory 250 functions as the memory unit 112 in the editor device 100. Fixed disk 260 functions as data storage unit 140 in editor device 100. The FD driving device 270 or the CD-ROM driving device 280 functions as the driving unit 118 in the editor device 100. The FD 272 or the CD-ROM 282 is a recording medium that is attached to the drive unit 118 of the editor device 100. Communication IF 290 functions as communication unit 122 in editor device 100.

このようにしてエディタ装置100を実現するコンピュータシステム200における処理は、各ハードウェアおよびCPU210により実行されるソフトウェアによって実現される。このようなソフトウェアは、メモリ250あるいは固定ディスク260に予め記憶されている場合がある。あるいは、FD272あるいはCD−ROM282その他の記録媒体に格納されて流通し、FD駆動装置270あるいはCD−ROM駆動装置280によりその記録媒体から読み取られて、固定ディスク260に一旦格納される場合もある。そのソフトウェアは、メモリ250あるいは固定ディスク260から読み出されて、CPU210によって実行される。図2に示したコンピュータシステム200のハードウェア自体は、一般的なものである。したがって、本発明の最も本質的な部分は、メモリ250、固定ディスク260、FD272、CD−ROM282その他の記録媒体に記録されたソフトウェアであるとも言える。   The processing in the computer system 200 that implements the editor device 100 in this way is realized by each hardware and software executed by the CPU 210. Such software may be stored in advance in the memory 250 or the fixed disk 260. Alternatively, the FD 272 or the CD-ROM 282 may be stored and distributed in another recording medium, read from the recording medium by the FD driving device 270 or the CD-ROM driving device 280, and temporarily stored in the fixed disk 260. The software is read from the memory 250 or the fixed disk 260 and executed by the CPU 210. The hardware itself of the computer system 200 shown in FIG. 2 is general. Therefore, it can be said that the most essential part of the present invention is software recorded in the memory 250, the fixed disk 260, the FD 272, the CD-ROM 282, and other recording media.

なお、このコンピュータシステム200の各ハードウェアの動作は周知であるので、ここではその説明は繰り返さない。   Since the operation of each hardware of computer system 200 is well known, description thereof will not be repeated here.

図3〜図5を参照して、本実施の形態に係るエディタ装置100として機能するコンピュータシステム200のモニタ220に表示される画面について説明する。図3〜図5は、コンピュータシステム200がラダー線図を作成するプログラムを実行する場合に表示する画面を表わす。   With reference to FIG. 3 to FIG. 5, screens displayed on the monitor 220 of the computer system 200 that functions as the editor device 100 according to the present embodiment will be described. 3 to 5 show screens displayed when the computer system 200 executes a program for creating a ladder diagram.

利用者が、後述する所定のプログラムを始動して、ラダー線図の表示の指令を入力すると、コンピュータシステム200のモニタ220は、そのラダー線図を表示する(図3)。   When the user starts a predetermined program to be described later and inputs a ladder diagram display command, the monitor 220 of the computer system 200 displays the ladder diagram (FIG. 3).

この線図が表示された画面において、利用者が「編集」のメニューの一覧310を表示させ、さらに、「変数作成」メニューを選択すると、「自由変数モード」と「固定変数モード」とを選択するための画面320が表示される(図4)。   On the screen on which this diagram is displayed, when the user displays the “edit” menu list 310 and then selects the “variable creation” menu, “free variable mode” and “fixed variable mode” are selected. A screen 320 is displayed (FIG. 4).

利用者が「固定変数モード」を選択すると、後述するように、固定変数モードによる変数作成処理が開始する。利用者が、「固定変数モード」による変数の作成処理に着手すると、モニタ220は、変数の作成に必要な項目を入力する画面を表示する(図5)。   When the user selects “fixed variable mode”, variable creation processing in the fixed variable mode starts as will be described later. When the user starts variable creation processing in the “fixed variable mode”, the monitor 220 displays a screen for inputting items necessary for variable creation (FIG. 5).

図5を参照して、デバイス名の入力領域410は、利用者が希望するデバイスの名称を入力するための領域である。点数の入力領域420の領域は、利用者がメモリ領域に確保を希望する領域数を入力するための画面である。   Referring to FIG. 5, device name input area 410 is an area for inputting the name of the device desired by the user. The area of the score input area 420 is a screen for the user to input the number of areas desired to be secured in the memory area.

利用者がデバイス名の入力領域410と点数の入力領域420とに対してそれぞれ所定の値を入力すると、後述するように所定の名称を有する変数が作成される。すなわち、プログラマブル表示器150が実行するプログラムにおいて参照される変数を宣言するためのソースコードが作成される。したがって、このソースコードを含むプログラムがコンピュータによる処理の実行が可能な形式になる場合には、その変数に応じたデータ領域がDRAM162等の記憶装置に確保される。   When the user inputs predetermined values to the device name input area 410 and the score input area 420, a variable having a predetermined name is created as will be described later. That is, a source code for declaring a variable referred to in a program executed by the programmable display device 150 is created. Therefore, when the program including the source code is in a format that can be executed by a computer, a data area corresponding to the variable is secured in a storage device such as the DRAM 162.

図6を参照して、本実施の形態に係るコンピュータシステム200のメモリ250に格納されるデータについて説明する。図6(A)は、利用者が所定の値を入力する前にメモリ250に一時的に確保されるデータ構造を表わす図である。図6(B)は、利用者が所定の値を入力した後にメモリ250に確保されるデータ構造を表わす図である。   With reference to FIG. 6, data stored in memory 250 of computer system 200 according to the present embodiment will be described. FIG. 6A shows a data structure temporarily reserved in memory 250 before the user inputs a predetermined value. FIG. 6B shows a data structure secured in memory 250 after the user inputs a predetermined value.

図6(A)を参照して、利用者が、後述する編集プログラムを実行すると、メモリ250に各変数名とそれに関連付けられる属性とが予め準備される。すなわち、フィールドF502には、その変数名が格納される。各変数に対応する属性は、フィールドF504に格納される。   Referring to FIG. 6A, when the user executes an editing program to be described later, each variable name and an attribute associated therewith are prepared in memory 250 in advance. That is, the variable name is stored in the field F502. The attribute corresponding to each variable is stored in field F504.

利用者が入力する予定であるデバイスの名称は、フィールドF506に格納される。なお、利用者がその名称を入力するまでは、そのフィールドがブランクであることを表わすデータ、たとえば「NULL」がフィールドF506に格納される。   The name of the device scheduled to be input by the user is stored in the field F506. Until the user inputs the name, data indicating that the field is blank, for example, “NULL” is stored in field F506.

利用者が入力する予定の点数は、フィールドF508に格納される。フィールドF506と同様に、このフィールドF508にも、利用者が所定の値を入力するまでは「NULL」が格納される。   The number of points scheduled to be input by the user is stored in field F508. Similar to the field F506, “NULL” is stored in the field F508 until the user inputs a predetermined value.

図6(B)を参照して、利用者が所定のデバイス名称を入力すると(図5におけるデバイス名の入力領域410)、その入力されたデバイスの名称は、フィールドF506に格納される。同様に、利用者が点数を設定すると(図5における点数の入力領域420)、入力された値は、フィールドF508に格納される。   Referring to FIG. 6B, when the user inputs a predetermined device name (device name input area 410 in FIG. 5), the input device name is stored in field F506. Similarly, when the user sets a score (score input area 420 in FIG. 5), the input value is stored in field F508.

なお、図6(A)および図6(B)に示したデータ構造の態様は、あくまで例示的なものである。したがって、メモリ250に格納されるデータの構造は、その他の態様であってもよい。   Note that the data structure shown in FIGS. 6A and 6B is merely exemplary. Therefore, the data stored in the memory 250 may have other forms.

図7を参照して、本実施の形態に係るエディタ装置を実現するコンピュータシステム200の制御構造について説明する。図7は、コンピュータシステム200のCPU210が実行する処理の手順を表わすフローチャートである。   With reference to FIG. 7, a control structure of computer system 200 that implements the editor device according to the present embodiment will be described. FIG. 7 is a flowchart showing a procedure of processing executed by CPU 210 of computer system 200.

ステップS602にて、CPU210は、利用者のプログラムの実行の指示を検出すると、エディタプログラムを起動する。   In step S602, CPU 210 activates the editor program upon detecting the user's instruction to execute the program.

ステップS604にて、CPU210は、利用者により入力された指示が、固定変数モードの実行の指示であるか否かを判断する。この判断は、たとえば図4に示した画面において、利用者が固定変数モードのメニュー1100の押下に応じて出力される信号が検出されたか否かに基づいて行なわれる。CPU210が、利用者の指示は固定変数モードの実行の指示であると判断した場合には(ステップS604てYES)、処理はステップS606に移される。そうでない場合には(ステップS604でNO)、処理はステップS608に移される。   In step S604, CPU 210 determines whether or not the instruction input by the user is an instruction to execute the fixed variable mode. This determination is made based on, for example, whether or not a signal output in response to the user pressing the menu 1100 in the fixed variable mode is detected on the screen shown in FIG. If CPU 210 determines that the user instruction is an instruction to execute the fixed variable mode (YES in step S604), the process proceeds to step S606. If not (NO in step S604), the process proceeds to step S608.

ステップS606にて、CPU210は、変数の設定画面の一覧をモニタ220に表示させる。   In step S606, CPU 210 causes monitor 220 to display a list of variable setting screens.

ステップS608にて、CPU210は、「自由変数モード」の処理を実行する。この処理が実行されると、利用者は、任意に入力した変数名に基づいて、ビット、整数その他の属性を有する変数を任意に作成することができる。   In step S608, CPU 210 executes the processing of “free variable mode”. When this process is executed, the user can arbitrarily create a variable having bits, integers, and other attributes based on the arbitrarily input variable name.

ステップS610にて、CPU210は、デバイス名および点数の入力を検知する。   In step S610, CPU 210 detects input of a device name and a score.

ステップS612にて、CPU210は、デバイス名および点数の入力が確定であるか否かを判断する。この判断は、たとえば図5の画面に示される「OKボタン」の押下が検知されたか否かに基づいて行なわれる。CPU210が、デバイス名および点数の入力は確定であると判断した場合には(ステップS612にてYES)、処理はステップS614に移される。そうでない場合には(ステップS612にてNO)、処理はステップS610に戻される。   In step S612, CPU 210 determines whether or not the input of the device name and the score is confirmed. This determination is made based on, for example, whether or not pressing of the “OK button” shown on the screen of FIG. 5 is detected. If CPU 210 determines that the input of the device name and the score is confirmed (YES in step S612), the process proceeds to step S614. If not (NO in step S612), the process returns to step S610.

ステップS614にて、CPU210は、入力されたデバイス名および点数と、予め記憶しておいた各属性とに基づいて、変数を作成する。この場合、最初に、所定の桁数を有するアドレス番号が、入力された点数を上限値として作成される。次に、デバイス名が各アドレス番号の前に付与される。これにより、各デバイス名について複数の変数が作成される。なお、変数の作成手順はこれに限られない。また、変数の作成には、上記の各ステップにより入力された固定変数モードにおいて作成される変数に加えて、利用者が任意に入力する変数名に基づいて作成される変数も含まれる。   In step S614, CPU 210 creates a variable based on the input device name and score and each attribute stored in advance. In this case, first, an address number having a predetermined number of digits is created with the input score as an upper limit value. Next, a device name is given before each address number. Thereby, a plurality of variables are created for each device name. Note that the variable creation procedure is not limited to this. Further, the creation of variables includes variables created based on variable names arbitrarily input by the user, in addition to variables created in the fixed variable mode entered in the above steps.

ステップS616にて、CPU210は、予め記憶されている作成プログラムを実行することにより、ラダー線図を作成する。なお、作成されるのは、ラダー線図以外のものであってもよい。したがって、この作成プログラムは、特にラダー線図を作成するためのプログラムに限られない。たとえば、制御対象機器の制御の指示機能あるいは状態の表示機能に関して、変数を使用するプログラムであればよい。   In step S616, CPU 210 creates a ladder diagram by executing a creation program stored in advance. Note that what is created may be other than the ladder diagram. Therefore, this creation program is not particularly limited to a program for creating a ladder diagram. For example, the program may be a program that uses variables for the control instruction function or the state display function of the control target device.

ステップS618にて、CPU210は、変数を保存するか否かを判断する。この判断は、エディタプログラムの所定の画面において、変数の保存ボタンが押下されたか否かを検知することにより行なわれる。CPU210が、変数を保存すると判断した場合には(ステップS618にてYES)、処理はステップS620に移される。そうでない場合には(ステップS618にてNO)、処理はステップS616に戻される。   In step S618, CPU 210 determines whether or not to save the variable. This determination is made by detecting whether or not the save variable button is pressed on a predetermined screen of the editor program. If CPU 210 determines to save the variable (YES in step S618), the process proceeds to step S620. If not (NO in step S618), the process returns to step S616.

ステップS620にて、CPU210は、メモリ250において、利用者が入力したデバイス名に基づいて各変数のソート処理を実行する。このソート処理は、たとえばアルファベット順に基づいて行なわれる。なお、このときのソート処理の基準は、昇順または降順のいずれであってもよい。   In step S620, CPU 210 executes sort processing for each variable in memory 250 based on the device name input by the user. This sort processing is performed based on, for example, alphabetical order. Note that the sorting process at this time may be in ascending order or descending order.

ステップS622にて、CPU210は、並べ替えられた変数を用いて、変数テーブルを作成する。   In step S622, CPU 210 creates a variable table using the rearranged variables.

ステップS624にて、CPU210は、このプログラムにより作成された画面の表示器において利用可能とするために、バイナリデータを作成する。この表示器は、たとえば図1に示したプログラマブル表示器150である。   In step S624, CPU 210 creates binary data so that it can be used on the display of the screen created by this program. This display is, for example, the programmable display 150 shown in FIG.

以上のような構造およびフローチャートに基づく、本実施の形態に係るエディタ装置を実現するコンピュータシステム200の動作について説明する。   An operation of computer system 200 that realizes the editor device according to the present embodiment based on the above-described structure and flowchart will be described.

利用者がコンピュータシステム200を起動して、エディタプログラムを実行すると(ステップS602)、初期画面が表示される(図4)。その利用者が、その初期画面において固定変数モードを選択すると(ステップS604にてYES)、デバイス名その他の設定値を入力するための一覧画面が表示される(ステップS606、図5)。   When the user starts the computer system 200 and executes the editor program (step S602), an initial screen is displayed (FIG. 4). When the user selects the fixed variable mode on the initial screen (YES in step S604), a list screen for inputting a device name and other setting values is displayed (step S606, FIG. 5).

利用者がデバイス名と点数とを入力して所定の設定値の入力を完了すると、コンピュータシステム200はその設定値に基づいて変数を作成する(ステップS604)。コンピュータシステム200はさらに、それらの変数に基づいてラダー線図を作成し(ステップS616)、利用者が変数の保存を指示すると(ステップS618にてYES)、コンピュータシステム200はその変数のソート処理を実行する(ステップS620)。   When the user inputs the device name and the score and completes the input of the predetermined setting value, the computer system 200 creates a variable based on the setting value (step S604). The computer system 200 further creates a ladder diagram based on these variables (step S616), and when the user instructs to save the variables (YES in step S618), the computer system 200 performs the sorting process for the variables. Execute (step S620).

その後、コンピュータシステム200はソートした変数に対して変数テーブルを作成し(ステップS622)、さらに出力用のデータを作成する(ステップS624)。作成された変数テーブルあるいは出力用のデータは、メモリ250に格納される。   Thereafter, the computer system 200 creates a variable table for the sorted variables (step S622), and further creates output data (step S624). The created variable table or output data is stored in the memory 250.

図8を参照して、本実施の形態に係るコンピュータシステム200が作成した制御プログラムが実行された場合に生成される変数の配列について説明する。図8は、この制御プログラムを実行するプログラマブル表示器150のDRAM162に確保されるデータ領域を表わす図である。   With reference to FIG. 8, an array of variables generated when a control program created by computer system 200 according to the present embodiment is executed will be described. FIG. 8 is a diagram showing a data area secured in DRAM 162 of programmable display 150 that executes this control program.

利用者が、データレジスタ、ワードレジスタ、補助リレー、タイマ、カウンタ、PIDについて入力した各デバイス名を有する変数の各々は、ソート処理によって順序が並べ替えられる。たとえば、図8に示すように、これらの変数は、アルファベット順に並べ替えられている。すなわち、利用者が、コンピュータシステム200において固定配列をイメージしながら変数を設定して、制御プログラムを作成しても、そのプログラムを実行するプログラマブル表示器150は、記憶装置(たとえばDRAM162)において、データの型属性に基づいて、その変数のデータ領域を確保する。   Each of the variables having the device names input by the user for the data register, word register, auxiliary relay, timer, counter, and PID is rearranged in order by the sort process. For example, as shown in FIG. 8, these variables are sorted alphabetically. That is, even if a user sets a variable while creating an image of a fixed arrangement in the computer system 200 and creates a control program, the programmable display 150 that executes the program does not store data in the storage device (for example, the DRAM 162). The data area of the variable is secured based on the type attribute.

これにより、プログラマブル表示器150は、DRAM162その他の記憶装置における空き領域を少なくしつつ、データ領域を効率よく使用することができる。   Thereby, the programmable display 150 can efficiently use the data area while reducing the free area in the DRAM 162 and other storage devices.

このようにすると、利用者は、その記憶装置の容量と変数の型属性とに注意を払って空き領域を考慮することにより、変数を追加することができる。したがって、たとえばプログラマブル表示器150に接続される生産設備その他の制御対象機器が追加された場合、表示する項目が追加された場合等において、制御プログラムの修正を容易にすることができる。この場合、追加の変数は、既に設定された変数の後にデータ領域が確保されるように、新たな変数が制御対象プログラムに追加される。修正された制御プログラムがプログラマブル表示器150によって実行される場合、既に定義されている変数のアドレスは変わらないため、DRAM162におけるデータ領域も変更されない。そのため、既に動作が保証されている制御プログラムに、新たな処理を追加しても、制御プログラムは、所定の動作を実行することができる。したがって、制御プログラムの信頼性の低下を防止することができる。   In this way, the user can add a variable by paying attention to the capacity of the storage device and the type attribute of the variable and taking into account the free space. Therefore, for example, when a production facility or other control target device connected to the programmable display 150 is added, or when an item to be displayed is added, the control program can be easily corrected. In this case, a new variable is added to the control target program so that the data area is secured after the already set variable. When the modified control program is executed by the programmable display 150, the address of the variable already defined does not change, so the data area in the DRAM 162 is not changed. Therefore, even if a new process is added to a control program whose operation is already guaranteed, the control program can execute a predetermined operation. Therefore, it is possible to prevent a decrease in the reliability of the control program.

ここで、図9および図10を参照して、本実施の形態に係るエディタ装置100を実現するコンピュータシステム200が有する機能について説明する。図9および図10は、利用者が固定変数モードにて設定された変数の名称、属性その他の各変数に固有な情報を変更する場合に、コンピュータシステム200のモニタ220が表示する画面である。   Here, with reference to FIG. 9 and FIG. 10, the function which the computer system 200 which implement | achieves the editor apparatus 100 which concerns on this Embodiment has is demonstrated. FIG. 9 and FIG. 10 are screens displayed on the monitor 220 of the computer system 200 when the user changes the variable name, attribute, and other information unique to each variable set in the fixed variable mode.

利用者がモニタ220に表示されているプログラムの編集画面(たとえば、図4)において、「変数一覧」のメニューを選択すると、変数の一覧表が表示される(図9)。この一覧表では、固定変数モードおよび自由変数モードによって作成された変数が、変数名の順序に基づいて整列した状態で示される。   When the user selects the “variable list” menu on the program editing screen (for example, FIG. 4) displayed on the monitor 220, a list of variables is displayed (FIG. 9). In this list, the variables created in the fixed variable mode and the free variable mode are shown in an aligned state based on the order of the variable names.

図9を参照して、利用者が属性を変更しようとする変数をマウス230によって選択して(たとえば、「D_0000」)、その変数の表示をダブルクリックすると、変数設定画面が表示される(図10)。   Referring to FIG. 9, when a user selects a variable whose attribute is to be changed by mouse 230 (for example, “D — 0000”) and double-clicks the display of the variable, a variable setting screen is displayed (FIG. 9). 10).

図10を参照して、モニタ220に表示される変数設定画面は、選択された変数(たとえば、D_0000)の固有情報を更新するための画面である。利用者は、この画面において変更しようとする情報を再入力することにより、既に作成された各変数の属性その他の固有情報を変更することができる。このようにすると、利用者は、プログラマブル表示器150が実行する制御プログラムにおいて参照される変数を一括して作成した後に、特定の変数の属性等を変更することができる。これにより、制御プログラムの作成に柔軟性をもたせることができる。   Referring to FIG. 10, the variable setting screen displayed on monitor 220 is a screen for updating specific information of a selected variable (for example, D_0000). The user can change the attribute and other unique information of each variable already created by re-entering the information to be changed on this screen. In this way, the user can change the attributes and the like of specific variables after collectively creating variables that are referenced in the control program executed by the programmable display device 150. Thereby, it is possible to provide flexibility in creating the control program.

以上のようにして、本実施の形態に係るエディタ装置100を実現するコンピュータシステム200は、利用者の指示に基づいて各変数に対する設定値を入力するための画面を予め表示する。この表示は、利用者に変数の配列を容易に想起させることができるものである。一方、コンピュータシステム200はその利用者が入力した値に基づいて生成した複数の変数を並べ替える。このようにすると、利用者が変数を作成する場合には作成される変数の配列を想像し易くなるとともに、コンピュータシステム200は、プログラムの実行時に割り当てる変数の領域を変数名に基づいて適切に確保することができる。その結果、メモリ250において生じる断片的な空き領域を小さくすることができるため、メモリ領域の使用効率を低下することなく各変数に必要な領域を確保することができる。   As described above, computer system 200 that implements editor apparatus 100 according to the present embodiment displays in advance a screen for inputting setting values for each variable based on a user instruction. This display allows the user to easily recall the arrangement of variables. On the other hand, the computer system 200 rearranges a plurality of variables generated based on values input by the user. In this way, when a user creates a variable, it becomes easy to imagine the array of variables to be created, and the computer system 200 appropriately secures a variable area to be allocated at the time of program execution based on the variable name. can do. As a result, the fractional free space generated in the memory 250 can be reduced, so that a necessary area can be secured for each variable without reducing the use efficiency of the memory area.

また、このようにしてメモリ領域に対する変数の割当を行なうことにより、その後の変数の追加時においても、利用者は、空き容量のみを考慮して新たな変数を作成することができる。したがって、制御対象機器の状態を表示する機能および制御対象機器の動作の制御を指示する機能を有する表示器に表示される画面に、新たな画面を追加したり、新たな図形等を容易に追加することができるため、利用者に対して、変更の自由度を提供することができる。   In addition, by assigning variables to the memory area in this way, the user can create a new variable considering only the free space even when adding a variable thereafter. Therefore, a new screen or a new figure can be easily added to the screen displayed on the display unit that has the function of displaying the status of the control target device and the function of instructing the control of the operation of the control target device. Therefore, it is possible to provide the user with a degree of freedom of change.

なお、本実施の形態においては、コンピュータシステム200は、バイナリデータの作成までを行なった。この場合、作成後のデータは、プログラマブル表示器150に転送され、プログラマブル表示器150がそのデータを実行可能な形式に変換するという前提に基づいている。   In the present embodiment, the computer system 200 has created binary data. In this case, the created data is transferred to the programmable display 150 and is based on the premise that the programmable display 150 converts the data into an executable format.

このような方法に代えて、コンピュータシステム200は、さらに、作成したバイナリデータを、プログラマブル表示器150が実行可能な形式に変換して、変換後のデータをプログラマブル表示器150に転送するようにしてもよい。この場合、コンピュータシステム200は、プログラマブル表示器150の作動条件その他制御プログラムの実行に必要な条件を、予め固定ディスク260に記憶している。これにより、コンピュータシステム200は、制御プログラムを使用する表示器に応じて、生成したデータを実行可能な形式に変換することができる。   Instead of such a method, the computer system 200 further converts the created binary data into a format that can be executed by the programmable display 150, and transfers the converted data to the programmable display 150. Also good. In this case, the computer system 200 stores in advance the operating conditions of the programmable display 150 and other conditions necessary for execution of the control program in the fixed disk 260. As a result, the computer system 200 can convert the generated data into an executable format in accordance with a display that uses the control program.

このようにすると、プログラマブル表示器150は、実行可能な形式に変換する機能を予め備える必要がないため、プログラマブル表示器150の演算処理機能に関する負荷を低減することができる。   If it does in this way, since the programmable display 150 does not need to be provided with the function to convert into the executable format previously, it can reduce the load regarding the arithmetic processing function of the programmable display 150.

今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

本発明は、制御対象機器の状態を表示する機能あるいはその機器の動作の指示を制御する機能を有する表示器が実行するプログラムを編集する機能を有するコンピュータにおいて利用可能である。   The present invention can be used in a computer having a function of editing a program executed by a display device having a function of displaying a state of a control target device or a function of controlling an operation instruction of the device.

本発明の実施の形態に係るエディタ装置、プログラマブル表示器およびPLCを説明するための図である。It is a figure for demonstrating the editor apparatus, programmable display, and PLC which concern on embodiment of this invention. 本発明の実施の形態に係るエディタ装置を実現するコンピュータシステムを表わすブロック図である。It is a block diagram showing the computer system which implement | achieves the editor apparatus which concerns on embodiment of this invention. 図2に示したコンピュータシステムが表示する画面を説明するための図(その1)である。FIG. 3 is a first diagram for explaining a screen displayed by the computer system shown in FIG. 2; 図2に示したコンピュータシステムが表示する画面を説明するための図(その2)である。FIG. 3 is a second diagram for explaining a screen displayed by the computer system illustrated in FIG. 2; 図2に示したコンピュータシステムが表示する画面を説明するための図(その3)である。FIG. 4 is a third diagram illustrating a screen displayed by the computer system illustrated in FIG. 2. 図2に示したコンピュータシステムに格納されるデータを説明するための図である。It is a figure for demonstrating the data stored in the computer system shown in FIG. 本発明の実施の形態に係るエディタ装置を実現するコンピュータシステムが実行する処理の手順を表わすフローチャート(その1)である。It is a flowchart (the 1) showing the procedure of the process which the computer system which implement | achieves the editor apparatus which concerns on embodiment of this invention performs. 本発明の実施の形態に係るエディタ装置により作成されたプログラムを実行するプログラマブル表示器のDRAMに生成されるデータ領域を説明するための図である。It is a figure for demonstrating the data area produced | generated by DRAM of the programmable display which performs the program produced by the editor apparatus which concerns on embodiment of this invention. 図2に示したコンピュータシステムが表示する画面を説明するための図(その4)である。FIG. 6 is a view (No. 4) for explaining a screen displayed by the computer system shown in FIG. 2; 図2に示したコンピュータシステムが表示する画面を説明するための図(その5)である。FIG. 6 is a view (No. 5) for explaining a screen displayed by the computer system shown in FIG. 2;

符号の説明Explanation of symbols

100 エディタ装置、110 制御部、112 メモリ部、114 表示部、116 入力部、118 駆動部、120 記録媒体、122 通信部、130 エディタ部、132 作画エディタ、134 変数管理部、136 プログラムエディタ、140 データ記憶部、150 プログラマブル表示器、152,182,210 CPU、154 メンテナンスポート、160,184,250 メモリ、162 DRAM、164 FRPROM、166 通信コントローラ、168 VRAM、170 グラフィックコントローラ、172 ディスプレイ、174 タッチパネル、176 タッチパネルコントローラ、178 I/O制御IF、179 I/Oユニット、180 PLC、186 通信IF、190 ネットワーク、192,194 制御対象機器、200 コンピュータシステム、220 モニタ、230 マウス、240 キーボード、260 固定ディスク、270 FD駆動装置、272 FD、280 CD−ROM駆動装置、282 CD−ROM。   DESCRIPTION OF SYMBOLS 100 Editor apparatus, 110 Control part, 112 Memory part, 114 Display part, 116 Input part, 118 Drive part, 120 Recording medium, 122 Communication part, 130 Editor part, 132 Drawing editor, 134 Variable management part, 136 Program editor, 140 Data storage unit, 150 programmable display, 152, 182, 210 CPU, 154 maintenance port, 160, 184, 250 memory, 162 DRAM, 164 FRPROM, 166 communication controller, 168 VRAM, 170 graphic controller, 172 display, 174 touch panel, 176 touch panel controller, 178 I / O control IF, 179 I / O unit, 180 PLC, 186 communication IF, 190 network, 192, 194 Control target equipment, 200 computer system, 220 monitor, 230 mouse, 240 keyboard, 260 fixed disk, 270 FD drive, 272 FD, 280 CD-ROM drive, 282 CD-ROM.

Claims (11)

表示器が記憶装置に格納した複数のデータに基づいて制御対象機器の状態の表示と動作の制御の指示とを実行する制御プログラムに対応するデータを、前記表示器に転送可能な形式で作成するためのエディタ装置であって、
前記複数のデータがそれぞれ対応付けられる変数の前記制御プログラムにおける属性を、各前記変数が属するグループの名称に対応付けて記憶するための記憶手段と、
前記エディタ装置に対する入力を受け付けるための入力手段と、
記名称をそれぞれ表示するための表示手段と
入力手段を介して入力される、前記名称のそれぞれに対する各前記グループに対応付けられる識別データ、および、前記グループに属する変数の数を規定する設定値と、前記属性とに基づいて、前記属性が対応付けられた前記変数を宣言するコードを生成するための生成手段と、
生成された前記コードと、予め定められた作成プログラムに基づいて作成されるコードであって、前記表示の実行と前記指示の実行とを表わす処理コードとに基づいて、前記制御プログラムを作成するための作成手段とを含む、エディタ装置。
Based on a plurality of data stored in the storage device by the display device, data corresponding to a control program for executing the display of the status of the controlled device and the instruction for controlling the operation is created in a format that can be transferred to the display device. An editor device for
Storage means for storing the attributes in the control program of the variables to which the plurality of data are respectively associated in association with the names of the groups to which the variables belong;
Input means for accepting input to the editor device ;
And display means for displaying a previous Symbol name, respectively,
Is input via the front Symbol input means, the name of the identification data associated with the respective said group for each, and a setting value that defines the number of variables that belong to the group, based on said attribute, Generating means for generating a code for declaring the variable associated with the attribute;
In order to create the control program based on the generated code and a processing code representing execution of the display and execution of the instruction, the code being generated based on a predetermined creation program An editor device, comprising:
前記コードは、前記制御プログラムにおいて前記変数の宣言を表わすコードであり、
前記作成手段は、前記コードに含まれる変数が前記処理コードにおいて参照される位置よりも前の位置に前記コードを挿入することにより、前記制御プログラムを作成する、請求項1に記載のエディタ装置。
The code is a code representing a declaration of the variable in the control program,
The editor device according to claim 1, wherein the creating unit creates the control program by inserting the code at a position before a position where a variable included in the code is referenced in the processing code.
前記生成手段は、
前記識別データと前記設定値とに基づいて、前記複数の変数の各々を生成するための変数生成手段と、
前記属性を、前記複数の変数の各々に関連付けるための手段と、
前記識別データに基づいて、前記複数の変数を並べ替えるためのソート手段と、
並べ替えられた前記複数の変数の配列の順序に対応させて、前記コードを生成するための手段とを含む、請求項1または2に記載のエディタ装置。
The generating means includes
Variable generating means for generating each of the plurality of variables based on the identification data and the set value;
Means for associating the attribute with each of the plurality of variables;
Sort means for rearranging the plurality of variables based on the identification data ;
The editor device according to claim 1, further comprising: means for generating the code in correspondence with an order of the rearranged plurality of variables.
前記設定値は、前記グループに属する変数のアドレスの上限値であり、
前記変数生成手段は、前記上限値までのアドレスに対して、前記アドレスを表わす文字列の先頭に前記識別データを追加することにより、前記複数の変数の各々を生成する、請求項3に記載のエディタ装置。
The set value is an upper limit value of an address of a variable belonging to the group,
4. The variable generation unit according to claim 3, wherein the variable generation unit generates each of the plurality of variables by adding the identification data to a head of a character string representing the address with respect to an address up to the upper limit value. 5. Editor device.
前記識別データは、アルファベットにより表わされる文字であり、
前記文字列の桁数は、予め定められた桁数である、請求項4に記載のエディタ装置。
The identification data is a character represented by an alphabet,
The editor device according to claim 4, wherein the number of digits of the character string is a predetermined number of digits.
前記制御プログラムにおける属性は、変数の型を含む、請求項1〜5のいずれかに記載のエディタ装置。   The editor device according to claim 1, wherein the attribute in the control program includes a variable type. 前記変数の型は、ビット、整数および整数配列のいずれかを含む、請求項6に記載のエディタ装置。   The editor apparatus according to claim 6, wherein the type of the variable includes one of a bit, an integer, and an integer array. 前記変数生成手段は、前記設定値から導出される各数値の前に前記識別データを結合することにより、各前記変数を生成し、各前記数値の桁数は固定されている、請求項3に記載のエディタ装置。The variable generation unit generates each variable by combining the identification data before each numerical value derived from the setting value, and the number of digits of each numerical value is fixed. The editor device described. 前記エディタ装置はさらに、
前記表示器における前記制御プログラムの作動条件を記憶するための手段と、
前記制御プログラムのコードを、前記作動条件に応じたコードに変換するための変換手段とを含む、請求項1〜8のいずれかに記載のエディタ装置。
The editor device further includes:
Means for storing operating conditions of the control program in the display;
The editor device according to claim 1, further comprising conversion means for converting the code of the control program into a code corresponding to the operating condition.
表示器が記憶装置に格納した複数のデータに基づいて制御対象機器の状態の表示と動作の制御の指示とを実行する制御プログラムに対応するデータを前記表示器に転送可能な形式で作成するためのエディタ装置として、コンピュータを機能させるためのプログラムであって、前記プログラムは前記コンピュータに、
前記コンピュータの記憶手段に格納されているデータを読み出して、前記複数のデータがそれぞれ対応付けられる変数の前記制御プログラムにおける属性を、各前記変数が属するグループの名称に対応付けて準備するステップと、
前記コンピュータに対する入力を受け付けるステップと、
入力された指示に基づいて、前記名称をそれぞれ表示するステップと、
前記コンピュータに入力された、前記名称のそれぞれに対する各前記グループに対応付けられる識別データ、および、前記グループに属する変数の数を規定する設定値と、前記属性とに基づいて、前記属性が対応付けられた前記変数を宣言するコードを生成するステップと、
生成された前記コードと、予め定められた作成プログラムに基づいて作成されるコードであって、前記表示の実行と前記指示の実行とを表わす処理コードとに基づいて、前記制御プログラムを作成するステップとを実行させる、プログラム。
To create data corresponding to a control program for displaying the status of a control target device and instructing operation control based on a plurality of data stored in a storage device in a format that can be transferred to the display As an editor device, a program for causing a computer to function, the program being stored in the computer,
Reading the data stored in the storage means of the computer, and preparing the attributes in the control program of the variables to which the plurality of data are respectively associated with the names of the groups to which the variables belong;
Receiving input to the computer ;
Displaying each of the names based on the input instructions;
The input to the computer, the identification data associated with each said group for each of said names, and a set value that defines the number of variables that belong to the group, based on said attribute, associating said attribute Generating code for declaring said given variable;
Creating the control program based on the generated code and a processing code representing execution of the display and execution of the instruction, the code being generated based on a predetermined creation program And a program to execute.
請求項10に記載のプログラムを格納した、記録媒体。   A recording medium storing the program according to claim 10.
JP2003378668A 2003-11-07 2003-11-07 Editor device, program for causing computer to function as editor device, and recording medium Expired - Lifetime JP4301919B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003378668A JP4301919B2 (en) 2003-11-07 2003-11-07 Editor device, program for causing computer to function as editor device, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003378668A JP4301919B2 (en) 2003-11-07 2003-11-07 Editor device, program for causing computer to function as editor device, and recording medium

Publications (2)

Publication Number Publication Date
JP2005141563A JP2005141563A (en) 2005-06-02
JP4301919B2 true JP4301919B2 (en) 2009-07-22

Family

ID=34688976

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003378668A Expired - Lifetime JP4301919B2 (en) 2003-11-07 2003-11-07 Editor device, program for causing computer to function as editor device, and recording medium

Country Status (1)

Country Link
JP (1) JP4301919B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4778312B2 (en) * 2005-12-26 2011-09-21 株式会社デジタル Data processing device, program, editor device, and recording medium
JP5205988B2 (en) * 2008-01-28 2013-06-05 株式会社明電舎 PLC global variable definition method
JP5952929B1 (en) * 2015-02-19 2016-07-13 日東精工株式会社 Work robot controller
JP7003842B2 (en) * 2018-05-31 2022-01-21 オムロン株式会社 Support equipment and support programs
JP7147807B2 (en) * 2020-06-26 2022-10-05 株式会社安川電機 Engineering device, host control device, engineering method, processing execution method, and program

Also Published As

Publication number Publication date
JP2005141563A (en) 2005-06-02

Similar Documents

Publication Publication Date Title
KR100224379B1 (en) Process line control alogorithm automatic generation method
EP0259827A2 (en) Display apparatus
CN111142475B (en) Information processing device
JP2012194678A (en) Control program development support device, program for supporting control program development, and recording medium
JP4301919B2 (en) Editor device, program for causing computer to function as editor device, and recording medium
JP2010009497A (en) Display, control method for display, and control program for display
JP4995009B2 (en) POD screen generation device and program thereof
JP4465176B2 (en) Editor device, program for causing computer to function as editor device, and recording medium
JPH07248809A (en) Programming device
JP4330510B2 (en) Editor device, program for causing computer to function as editor device, and recording medium
JPS6393066A (en) Document compiling device
JP3562202B2 (en) Inverter device
JP2003259688A (en) Parameter-setting apparatus
JP7204054B1 (en) Program, setting device and display method
JP4278466B2 (en) Editor device, program for causing computer to function as editor device, and recording medium
JP7779939B2 (en) A robot control device that communicates with a programmable logic controller
JP2006243841A (en) PLC tool device
JPH09258808A (en) Motion controller programming system
JP2734187B2 (en) Display screen creation method for multiple PC control device, sequence program creation device, and control status display device
JPH10283168A (en) Method and apparatus for collectively generating motif widgets
JP4388874B2 (en) Screen editor device, program for causing computer to function as screen editor device, and recording medium
JP2006309538A (en) Program collating device and program applied thereto
JP2972916B2 (en) Document editing device with ruled line output function
JP2700013B2 (en) Compiler for user program for programmable controller
JP2944338B2 (en) User-defined character display

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061017

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090127

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090127

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090317

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090421

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

Free format text: PAYMENT UNTIL: 20120501

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4301919

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130501

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20140501

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

EXPY Cancellation because of completion of term