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
JP4465176B2 - Editor device, program for causing computer to function as editor device, and recording medium - Google Patents
[go: Go Back, main page]

JP4465176B2 - 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
JP4465176B2
JP4465176B2 JP2003378669A JP2003378669A JP4465176B2 JP 4465176 B2 JP4465176 B2 JP 4465176B2 JP 2003378669 A JP2003378669 A JP 2003378669A JP 2003378669 A JP2003378669 A JP 2003378669A JP 4465176 B2 JP4465176 B2 JP 4465176B2
Authority
JP
Japan
Prior art keywords
variable
data
display
association
control
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
JP2003378669A
Other languages
Japanese (ja)
Other versions
JP2005141564A (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 JP2003378669A priority Critical patent/JP4465176B2/en
Publication of JP2005141564A publication Critical patent/JP2005141564A/en
Application granted granted Critical
Publication of JP4465176B2 publication Critical patent/JP4465176B2/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 creating a control program executed by a display that performs processing for displaying a state of a control target device and processing for instructing control of operation of the control target device, and is particularly referred to in the control program. An editor device capable of creating a control program while preventing an inappropriate variable from being associated when associating a variable with each process, a program for causing a computer to function as an editor device, and the program recorded The present invention relates to a recording medium.

プログラマブルロジックコントローラと称される産業用制御装置は、自動組付け機その他の制御対象機器に接続され、シーケンス制御その他の制御を実行したり、その機器の状態を表わすデータを受信したりする。この制御対象機器の制御あるいは状態の表示は、たとえば、その機器の状態を制御対象機器の状態を表示する機能およびその機器の動作を制御する機能を有する表示器を介して行なわれる。また、近年、上記の産業用制御装置が有する制御機能を備えた表示器も導入されている。   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 of the control target device or the display of the state is performed, for example, via a display device having a function of displaying the state of the device to be controlled 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.

このような表示器は、接続されている制御対象機器の状態を表示したり、作業者が指示を入力するための画面を表示する。このとき表示される画面は、画面のエディタ装置において予め準備されたプログラミング言語によって作成される。   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 in a programming language prepared in advance in the screen editor device.

また、この表示器による制御対象機器の動作を制御するための命令は、その命令を編集するプログラムエディタによって作成される。IEC(International Electrotechnical Commission)は、このようなエディタとして実行可能なプログラミング言語を制定している。この言語には、SFC(Sequential Function Chart)、LD(Ladder Diagram)、IL(Instruction List)、FBD(Function Block Diagram)、およびST(Structured Text)が含まれる。   Also, a command for controlling the operation of the control target device by the display is created by a program editor that edits the command. The International Electrotechnical Commission (IEC) has established a programming language that can be executed as such an editor. This language includes SFC (Sequential Function Chart), LD (Ladder Diagram), IL (Instruction List), FBD (Function Block Diagram), and ST (Structured Text).

この画面は、たとえば予め上記の言語によって作成されたラダー図その他の機能チャートに、命令と称される特定の処理(たとえば、スイッチの開閉操作、論理演算、データ転送等)に対応する変数を割り付けることにより、作成される。この場合、処理に対応する変数が参照するデータの属性には、「0」か「1」のビット属性、整数属性、整数配列など多様な属性が含まれる。そのため、処理ごとに、適切な属性を参照する変数を個別に割り当てる必要がある。   In this screen, for example, variables corresponding to specific processing (for example, opening / closing operation of a switch, logical operation, data transfer, etc.) are assigned to a ladder diagram or other function chart created in advance in the above language. Is created. In this case, various attributes such as a bit attribute of “0” or “1”, an integer attribute, and an integer array are included in the attribute of data referred to by the variable corresponding to the process. Therefore, it is necessary to individually assign variables that refer to appropriate attributes for each process.

この変数の割り当てその他のデータの入力は、これまで、利用者がキーボードを介してデータの入力を行なうことが通常であった。そのため、キー操作のミス等によって、誤ったデータが入力されたり、あるいは、データの入力のために手間を要するという問題があった。   In the past, the assignment of variables and other data input were usually performed by the user through the keyboard. For this reason, there has been a problem that erroneous data is input due to a key operation error or the like, or it takes time to input data.

そこで、たとえば特開平11−53156(特許文献1)は、データの入力時における操作性を向上させることができるデータ入力装置を開示する。このデータ入力装置は、入力の対象となる1つ以上のデータを示す1つ以上のデータ画像を表示画面内に表示するデータ画像表示手段と、データの入力を指示するデータ入力指示画像を表示するデータ入力指示画像表示手段と、外部からの操作に応じて表示画面内における位置を指示するポインティング手段と、外部からの操作に応じて指示された位置を選択するデータ入力選択手段と、選択された1つ以上のデータをその位置に対応付けて表示する選択データ表示手段と、データ入力指示画像の位置が指示された場合に、選択されたデータを入力データとして受け入れるデータ入力手段とを含む。   Thus, for example, Japanese Patent Laid-Open No. 11-53156 (Patent Document 1) discloses a data input device that can improve the operability during data input. The data input device displays data image display means for displaying one or more data images indicating one or more data to be input on a display screen, and a data input instruction image for instructing data input. Data input instruction image display means, pointing means for instructing a position in the display screen in response to an external operation, data input selection means for selecting an instructed position in response to an external operation, and the selected Selection data display means for displaying one or more data in association with the position, and data input means for receiving the selected data as input data when the position of the data input instruction image is instructed.

特許文献1に開示されたデータ入力装置によると、利用者は、表示画面に表示されたデータ入力指示画像を介して、データ画像の表示されたデータを選択して入力することができる。このようにすると、ポインティングデバイスの移動量を少なくすることができるため、データの入力時における操作性を向上させることができる。
特開平11−53156号公報
According to the data input device disclosed in Patent Document 1, the user can select and input data displayed on the data image via the data input instruction image displayed on the display screen. In this way, since the amount of movement of the pointing device can be reduced, the operability at the time of data input can be improved.
JP-A-11-53156

しかしながら、特許文献1に開示されたデータ入力装置によると、数字、文字その他のデータの入力の操作性は向上しても、たとえば、ビット列その他の複数のデータを続けて入力するとき誤入力が発生する場合があった。   However, according to the data input device disclosed in Patent Document 1, even if the operability of inputting numbers, characters, and other data is improved, for example, when a bit string or other data is continuously input, an erroneous input occurs. There was a case.

また、上記の表示器が実行する制御プログラムは、ビット属性、整数、整数配列その他の異なる属性を有するデータを参照する変数を多く使用し、各変数は、制御プログラムの対象となる処理に、それぞれ割り当てられる。この場合、プログラムの作成者が、各変数のデータ属性と処理に割り当て可能なデータの属性との対応関係を誤ると、変数が処理に正しく割り当てられなくなる。その結果、制御プログラムが予め定められた仕様どおりに処理を実行しないという問題もあった。   In addition, the control program executed by the above display device uses many variables that refer to data having bit attributes, integers, integer arrays, and other different attributes, and each variable is used for processing targeted by the control program. Assigned. In this case, if the creator of the program mistakes the correspondence between the data attribute of each variable and the data attribute that can be assigned to the process, the variable cannot be correctly assigned to the process. As a result, there is also a problem that the control program does not execute processing according to a predetermined specification.

本発明は、上述の問題点を解決するためになされたものであって、その目的は、利用者によるデータの誤入力を削減しつつ、効率よく表示器が使用する制御プログラムを作成することができるエディタ装置を提供することである。   The present invention has been made to solve the above-described problems, and an object of the present invention is to efficiently create a control program used by a display device while reducing erroneous data input by a user. It is to provide an editor device that can be used.

本発明の他の目的は、利用者によるデータの誤入力を削減しつつ、効率よく表示器が使用する制御プログラムを作成することができるエディタ装置として、コンピュータを機能させることができるプログラムを提供することである。   Another object of the present invention is to provide a program that can cause a computer to function as an editor device that can efficiently create a control program used by a display while reducing erroneous data input by a user. That is.

本発明のさらに他の目的は、利用者によるデータの誤入力を削減しつつ、効率よく表示器が使用する制御プログラムを作成することができるエディタ装置として、コンピュータを機能させることができるプログラムを記録した記録媒体を提供することである。   Still another object of the present invention is to record a program that allows a computer to function as an editor device that can efficiently create a control program used by a display device while reducing erroneous data input by a user. Is to provide a recording medium.

上記の課題を解決するために、この発明のある局面に従うと、エディタ装置は、制御対象機器の状態を表示する処理と動作の制御を指示する処理とを行なう表示器が実行する制御プログラムに対応する処理データを、表示器に転送可能な形式で作成する。このエディタ装置は、利用者が指示を入力するための入力手段と、指示に基づいて、各処理を編集するためのプログラム編集手段と、編集された各処理の名称と、各処理の画像を表わす画像データと、各処理をそれぞれ制御する制御データの属性とを、関連付けて記憶するための処理データ記憶手段と、指示に基づいて、少なくともいずれかが複数の要素を有する変数であって、制御プログラムが参照する複数の変数の各々の変数名と、複数の変数の各々の型属性とを定義するための定義手段と、指示に基づいて、定義された各々の変数名を、対応する各々の型属性に対応付けて記憶するための変数データ記憶手段と、指示が入力されると、画像データと、各々の変数名とに基づいて、編集された各処理の画像と、各々の変数名が有するデータの一覧表とを表示するための表示手段と、利用者による入力手段の操作に基づいて、データの一覧表から利用者により選択された変数を検出するための検出手段と、入力手段の操作に基づいて、選択された変数と各処理のいずれかの処理との関連付けが行なわれようとしていることを検知するための検知手段と、関連付けが行なわれようとしていることが検知されると、選択された変数の型属性と制御データの属性とに基づいて、関連付けが可能であるか否かを判断するための判断手段と、関連付けが可能であると判断されると、選択された変数を処理に関連付けるための関連付け手段と、関連付けが不可能であると判断されると、いずれかの処理に対して、選択された変数が有する複数の要素を、データの一覧表として表示手段に表示させるための制御手段と、各処理と、各処理にそれぞれ対応付けられた変数とに基づいて、処理データを作成するための作成手段とを含む。   In order to solve the above-described problem, according to one aspect of the present invention, the editor device corresponds to a control program executed by a display that performs processing for displaying a state of a control target device and processing for instructing control of operation. Process data to be created in a format that can be transferred to the display unit. This editor device represents an input means for a user to input an instruction, a program editing means for editing each process based on the instruction, the name of each edited process, and an image of each process A processing data storage means for storing image data and attributes of control data for controlling each process in association with each other, and a variable having at least one of a plurality of elements based on an instruction; Defining means for defining each variable name of each of the plurality of variables to be referred to and type attributes of each of the plurality of variables, and each variable name defined based on the instruction is assigned to each corresponding type. Variable data storage means for storing in association with attributes, and when an instruction is input, the image of each process edited based on the image data and each variable name, and each variable name has Day A display means for displaying a list of data, a detection means for detecting a variable selected by the user from the data list based on an operation of the input means by the user, and an operation of the input means On the basis of the detection means for detecting that the association between the selected variable and one of the processes is about to be performed, and when the association is detected to be performed, the selected variable is selected. Based on the type attribute of the variable and the attribute of the control data, a determination means for determining whether or not the association is possible, and if it is determined that the association is possible, the selected variable is processed. When it is determined that the association means for associating and the association is impossible, a plurality of elements of the selected variable are displayed on the display means as a data list for any of the processes. Includes because of the control means, and the processing, based on the variables associated to each process, and a creation means for creating a processing data.

上記のエディタ装置によると、利用者が編集した各処理に対して、利用者が予め定義した変数を関連付けを行なうことができる。すなわち、表示手段は、処理の画像と、変数データの一覧とを表示する。利用者は、入力手段(たとえば、マウス、トラックボールその他のポインティングデバイス等)を操作して、特定の変数名を選択して、処理の画像の表示に関連付けようとすることができる。検知手段が、その操作に基づいて、選択された変数と各処理のいずれかの処理との関連付けが行なわれようとしていることを検知すると、判断手段は、利用者によって選択された変数の型属性(たとえば、ビット型、整数型、整数配列型等)と制御データの属性(たとえば、ビット型、整数型、整数配列型等)とに基づいて、関連付けが可能であるか否かを判断する。関連付けが可能であると判断されると、選択された変数は、その処理に関連付けられる。関連付けが不可能であると判断されると、表示手段は、いずれかの処理に対して、選択された変数が有する複数の要素を、データの一覧表として表示する。この場合、利用者は、再びその一覧表から特定の要素を選択することができる。その結果、その要素と処理との関連付けが可能であると判断されると、その要素がその処理に関連付けられる。各処理に対する関連付けが行なわれると、作成手段は、各処理と、各処理にそれぞれ対応付けられた変数とに基づいて、処理データを作成することができる。このようにすると、利用者は、表示された一覧表から特定の表示を選択することにより、各処理に対する変数を関連付けることができる。これにより、データを入力して関連付けを行なう場合に比べて、誤設定を防止することができるエディタ装置を提供することができる。   According to the above-described editor apparatus, it is possible to associate a variable defined in advance by the user with each process edited by the user. That is, the display means displays a processing image and a list of variable data. The user can operate an input means (for example, a mouse, a trackball or other pointing device) to select a specific variable name and try to associate it with the display of the processing image. When the detection means detects that the selected variable is to be associated with one of the processes based on the operation, the determination means determines whether the type attribute of the variable selected by the user It is determined whether or not association is possible based on (for example, bit type, integer type, integer array type, etc.) and control data attributes (for example, bit type, integer type, integer array type, etc.). If it is determined that the association is possible, the selected variable is associated with the process. When it is determined that the association is impossible, the display unit displays a plurality of elements of the selected variable as a data list for any of the processes. In this case, the user can select a specific element from the list again. As a result, when it is determined that the element can be associated with the process, the element is associated with the process. When the association with each process is performed, the creating means can create process data based on each process and a variable associated with each process. In this way, the user can associate variables for each process by selecting a specific display from the displayed list. Thereby, an editor device capable of preventing erroneous setting can be provided as compared with a case where association is performed by inputting data.

好ましくは、エディタ装置はさらに、表示手段に表示された処理の画像の位置を表わす画像位置データを取得するための手段と、表示手段における選択された変数の位置を表わす変数位置データを取得するための手段とを含む。検知手段は、変数表示データが画像位置データに含まれる場合には、関連付けが行なわれようとしていることを検知する。   Preferably, the editor device further acquires means for acquiring image position data representing the position of the image of the process displayed on the display means, and variable position data representing the position of the selected variable on the display means. Means. When the variable display data is included in the image position data, the detection unit detects that the association is about to be performed.

上記のエディタ装置によると、変数の関連付けの対象となる処理を表わす表示(たとえば図形)の位置データと、利用者が選択した変数を表わす表示の位置データに基づいて、関連付けが検知される。したがって、利用者は、各表示が重なり合うような操作(たとえば、マウス、トラックボール等のポインティングデバイスの指示の移動)を行なうだけで、変数と処理との関連付けを行なうことができる。   According to the above-described editor device, association is detected based on position data of a display (for example, a graphic) representing a process to be associated with a variable and display position data representing a variable selected by the user. Therefore, the user can associate the variable with the process only by performing an operation (for example, moving an instruction of a pointing device such as a mouse or a trackball) such that the displays overlap each other.

好ましくは、判断手段は、選択された変数の型属性と、制御データの属性とが一致するか否かを判断する。関連付け手段は、選択された変数の型属性と、制御データの属性とが一致する場合には、選択された変数を処理に関連付けて記憶手段に記憶する。   Preferably, the determination unit determines whether the type attribute of the selected variable matches the attribute of the control data. When the type attribute of the selected variable matches the attribute of the control data, the associating unit stores the selected variable in the storage unit in association with the process.

上記のエディタ装置によると、利用者が選択した変数の型属性と、関連付けの対象とされた処理の制御データの属性とが一致する場合には、その変数はその処理に関連付けされて、記憶される。そのため、利用者は、変数の名称あるいは処理の名称を入力することなく、一覧表の中から特定の変数を選択することにより、変数と処理との関連付けを行なうことができる。   According to the editor device described above, when the type attribute of the variable selected by the user matches the attribute of the control data of the process to be associated, the variable is associated with the process and stored. The Therefore, the user can associate a variable with a process by selecting a specific variable from the list without inputting the name of the variable or the name of the process.

好ましくは、判断手段は、選択された変数の型属性と、制御データの属性とが一致するか否かを判断する。制御手段は、選択された変数の型属性と、制御データの属性とが不一致である場合には、いずれかの処理に対して、選択された変数が有する複数の要素を、データの一覧表として、表示手段に表示させるための表示制御手段を含む。   Preferably, the determination unit determines whether the type attribute of the selected variable matches the attribute of the control data. When the type attribute of the selected variable and the attribute of the control data do not match, the control means uses a plurality of elements of the selected variable as a data list for any process. Display control means for displaying on the display means.

上記のエディタ装置によると、利用者が選択した変数の型属性と、関連付けの対象とされた処理の制御データの属性とが一致しない場合には、その変数の要素の一覧表が表示される。したがって、利用者は、その一覧表からその処理に関連付ける要素を選択することができるため、名称を入力することなく、その関連付けを行なうことができる。   According to the above editor device, when the type attribute of the variable selected by the user does not match the attribute of the control data of the process to be associated, a list of elements of the variable is displayed. Therefore, since the user can select an element to be associated with the process from the list, the association can be performed without inputting a name.

好ましくは、表示制御手段は、関連付けが検知された処理の画像データが出力された後に、複数の要素のデータを表示手段に出力する。   Preferably, the display control unit outputs the data of the plurality of elements to the display unit after the image data of the process whose association has been detected is output.

上記のエディタ装置によると、複数の要素の一覧は、処理の表示の前面に表示されるため、選択の対象となる処理を確実に認識しつつ、特定の要素を選択することができる。   According to the above-described editor device, a list of a plurality of elements is displayed in front of the process display, so that a specific element can be selected while reliably recognizing the process to be selected.

好ましくは、処理データ記憶手段は、いずれかの処理に対して、1ビットのデータを制御データとして記憶する。変数データ記憶手段は、配列要素として複数のビットを有する配列構造である変数の変数名を記憶する。表示制御手段は、複数のビットの各々をデータの一覧表として表示手段に表示させる。   Preferably, the process data storage means stores 1-bit data as control data for any process. The variable data storage means stores variable names of variables having an array structure having a plurality of bits as array elements. The display control means displays each of the plurality of bits on the display means as a list of data.

上記のエディタ装置によると、処理の制御データが1ビットである場合に、利用者が複数のビットを有する変数を選択した場合に、各ビットの一覧表が表示される。したがって、利用者は、変数の名称を入力することなく、その一覧表から特定のビットを有数する変数を選択することができるため、処理に対する変数の関連付けを確実に行なうことができる。   According to the above-described editor apparatus, when the process control data is 1 bit and the user selects a variable having a plurality of bits, a list of each bit is displayed. Therefore, the user can select a variable having a specific bit from the list without inputting the name of the variable, so that the variable can be reliably associated with the process.

好ましくは、処理データ記憶手段は、いずれかの処理に対して、整数を制御データとして記憶する。変数データ記憶手段は、配列要素として複数の整数を有する配列構造である変数の変数名を記憶する。表示制御手段は、複数の整数の各々をデータの一覧表として表示手段に表示させる。   Preferably, the process data storage means stores an integer as control data for any process. The variable data storage means stores variable names of variables having an array structure having a plurality of integers as array elements. The display control means causes the display means to display each of the plurality of integers as a list of data.

上記のエディタ装置によると、処理の制御データの属性が整数型である場合に、利用者が整数の配列構造を有する変数を選択すると、配列要素である各整数の一覧表が表示される。したがって、利用者は、変数の名称を入力することなく、その一覧表から特定の整数型の変数を選択することができるため、処理に対する変数の関連付けを確実に行なうことができる。   According to the above-described editor apparatus, when the attribute of the process control data is an integer type, when the user selects a variable having an integer array structure, a list of each integer that is an array element is displayed. Therefore, the user can select a specific integer type variable from the list without inputting the name of the variable, so that the variable can be reliably associated with the process.

好ましくは、入力手段は、ポインティングデバイスを含む。   Preferably, the input means includes a pointing device.

上記のエディタ装置によると、利用者はポインティングデバイス(たとえば、マウス、トラックボール、ライトペン等)によって対象を選択することにより、変数と処理との関連付けを行なうことができる。したがって、対象の名称を入力する必要がないため、利用者によるデータの誤入力が防止される。これにより、処理に対する変数の関連付けを確実に行なうことができる。   According to the above-described editor apparatus, the user can associate the variable with the process by selecting a target with a pointing device (for example, a mouse, a trackball, a light pen, etc.). Therefore, since it is not necessary to input the name of the object, erroneous input of data by the user is prevented. Thereby, the variable can be reliably associated with the process.

この発明の他の局面に従うと、プログラムは、制御対象機器の状態を表示する処理と動作の制御を指示する処理とを行なう表示器が実行する制御プログラムに対応する処理データを、表示器に転送可能な形式で作成するためのエディタ装置として、コンピュータを機能させる。このプログラムはコンピュータに、利用者が指示を入力するステップと、指示に基づいて、各処理を編集するステップと、編集された各処理の名称と、各処理の画像を表わす画像データと、各処理をそれぞれ制御する制御データの属性とを、関連付けて準備するステップと、指示に基づいて、少なくともいずれかが複数の要素を有する変数であって、制御プログラムが参照する複数の変数の各々の変数名と、複数の変数の各々の型属性とを定義するステップと、指示に基づいて、定義された各々の変数名を、対応する各々の型属性に対応付けて準備するステップと、指示が入力されると、画像データと、各々の変数名と基づいて、編集された各処理の画像と、各々の変数名が有するデータの一覧表とを表示するステップと、利用者による入力ステップの操作に基づいて、データの一覧表から利用者により選択された変数を検出するステップと、入力ステップの操作に基づいて、選択された変数と各処理のいずれかの処理との関連付けが行なわれようとしていることを検知するステップと、関連付けが行なわれようとしていることが検知されると、選択された変数の型属性と制御データの属性とに基づいて、関連付けが可能であるか否かを判断するステップと、関連付けが可能であると判断されると、選択された変数を処理に関連付けるステップと、関連付けが不可能であると判断されると、いずれかの処理に対して、選択された変数が有する複数の要素を、データの一覧表として表示ステップに表示させるステップと、各処理と、各処理にそれぞれ対応付けられた変数とに基づいて、処理データを作成するステップとを実行させる。   According to another aspect of the present invention, the program transfers processing data corresponding to a control program executed by a display that performs processing for displaying a state of a control target device and processing for instructing operation control to the display. The computer functions as an editor device for creating in a possible format. The program includes a step of inputting instructions to a computer, a step of editing each process based on the instructions, a name of each edited process, image data representing an image of each process, and each process A step of associating and preparing attributes of control data for controlling each of the variables, and at least one of the variables having a plurality of elements based on the instructions, and variable names of the plurality of variables referred to by the control program A step of defining each type attribute of the plurality of variables, a step of preparing each defined variable name in association with each corresponding type attribute based on the instruction, and an instruction Then, a step of displaying the image data, the image of each edited process based on each variable name, and a list of data of each variable name, and input by the user A step of detecting a variable selected by the user from the data list based on the operation of the step and an association between the selected variable and one of the processes are performed based on the operation of the input step. Whether the association is possible based on the type attribute of the selected variable and the attribute of the control data. If it is determined that the association is possible, the step of associating the selected variable with the process and the determination that the association is impossible are selected for one of the processes. Based on a step of displaying a plurality of elements included in a variable as a list of data on a display step, each process, and a variable respectively associated with each process And a step of creating a processing data.

上記のプログラムによると、コンピュータは、利用者が編集した各処理に対して、利用者が予め定義した変数を関連付けを行なうことができる。すなわち、コンピュータは、表示装置に、処理の画像と、変数データの一覧とを表示させる。利用者は、入力手段(たとえば、マウス、トラックボールその他のポインティングデバイス等)を操作して、特定の変数名を選択して、処理の画像の表示に関連付けようとすることができる。コンピュータが、その操作に基づいて、選択された変数と各処理のいずれかの処理との関連付けが行なわれようとしていることを検知する。コンピュータは、利用者によって選択された変数の型属性(たとえば、ビット型、整数型、整数配列型等)と制御データの属性(たとえば、ビット型、整数型、整数配列型等)とに基づいて、関連付けが可能であるか否かを判断する。関連付けが可能であると判断されると、選択された変数は、その処理に関連付けられる。関連付けが不可能であると判断されると、表示装置は、いずれかの処理に対して、選択された変数が有する複数の要素を、データの一覧表として表示する。この場合、利用者は、再びその一覧表から特定の要素を選択することができる。その結果、その要素と処理との関連付けが可能であると判断されると、その要素がその処理に関連付けられる。各処理に対する関連付けが行なわれると、コンピュータは、各処理と、各処理にそれぞれ対応付けられた変数とに基づいて、処理データを作成することができる。このようにすると、利用者は、表示された一覧表から特定の表示を選択することにより、各処理に対する変数を関連付けることができる。これにより、データを入力して関連付けを行なう場合に比べて、誤設定を抑制することができるエディタ装置として、コンピュータを機能させることができるプログラムを提供することができる。   According to the above program, the computer can associate variables defined in advance by the user with each process edited by the user. That is, the computer causes the display device to display a processing image and a list of variable data. The user can operate an input means (for example, a mouse, a trackball or other pointing device) to select a specific variable name and try to associate it with the display of the processing image. Based on the operation, the computer detects that the selected variable is about to be associated with one of the processes. Based on the variable type attribute (eg, bit type, integer type, integer array type, etc.) selected by the user and the control data attribute (eg, bit type, integer type, integer array type, etc.) It is determined whether or not the association is possible. If it is determined that the association is possible, the selected variable is associated with the process. If it is determined that the association is impossible, the display device displays a plurality of elements of the selected variable as a data list for any process. In this case, the user can select a specific element from the list again. As a result, when it is determined that the element can be associated with the process, the element is associated with the process. When the association with each process is performed, the computer can create process data based on each process and a variable associated with each process. In this way, the user can associate variables for each process by selecting a specific display from the displayed list. As a result, it is possible to provide a program that can cause a computer to function as an editor device that can suppress erroneous settings as compared with the case where data is input and associated.

この発明のさらに他の局面に従うと、記録媒体は、上記のプログラムを格納した媒体である。   According to still another aspect of the present invention, the recording medium is a medium storing the above program.

上記の記録媒体によると、上記のプログラムに基づく処理をコンピュータに実行させることができる。したがって、利用者は、データを入力することなく、表示された一覧表から選択することにより、処理と変数とを関連付けることができる。これにより、不適切な変数の関連付けを防止することができるため、誤作動しない制御プログラムのための処理データを作成しやすくなる。   According to the recording medium, it is possible to cause a computer to execute processing based on the program. Therefore, the user can associate the process with the variable by selecting from the displayed list without inputting data. As a result, it is possible to prevent the association of inappropriate variables, and it becomes easy to create processing data for a control program that does not malfunction.

本発明に係るエディタ装置によると、利用者は、たとえばキーボードその他の入力装置を介して、特定の変数を入力する必要がないため、変数の誤入力を防止することができる。また、関連付けの候補となる変数あるいは変数の要素が予め表示されることにより、利用者は、その表示の中から選択するだけで、各処理に変数を関連付けることができる。したがって、処理と変数との関連付けを効率よく行なうことができ、また、誤作動しない処理を作成しやすくなる。   According to the editor device of the present invention, since the user does not need to input a specific variable via, for example, a keyboard or other input device, erroneous input of the variable can be prevented. In addition, since variables or variable elements that are candidates for association are displayed in advance, the user can associate variables with each process simply by selecting from the display. Therefore, it is possible to efficiently associate a process with a variable, and it is easy to create a process that does not malfunction.

本発明に係るプログラムによると、コンピュータは、たとえばキーボードその他の入力装置からのデータの入力が不要となるため、利用者による変数の誤入力を防止することができるエディタ装置として機能することができる。また、コンピュータは、関連付けの候補となる変数あるいは変数の要素を予め表示するため、利用者は、その表示の中から選択するだけで、各処理に変数を関連付けることができる。   According to the program according to the present invention, the computer does not need to input data from, for example, a keyboard or other input device, and thus can function as an editor device that can prevent erroneous input of variables by the user. In addition, since the computer displays variables or variable elements that are candidates for association in advance, the user can associate variables with each process simply by selecting from the display.

本発明に係る記録媒体によると、たとえばキーボードその他の入力装置からのデータの入力が不要となるため、利用者による変数の誤入力を防止することができるエディタ装置として、コンピュータを機能させることができる。この記録媒体はさらに、関連付けの候補となる変数あるいは変数の要素を予め表示して、その表示の中から利用者に特定の候補を選択させることにより、各処理に変数を関連付けることができるエディタ装置として、コンピュータを機能させることができる。   The recording medium according to the present invention eliminates the need to input data from, for example, a keyboard or other input device, and thus allows the computer to function as an editor device that can prevent erroneous input of variables by the user. . This recording medium further displays in advance variables or variable elements that are candidates for association, and allows the user to select a specific candidate from the display, thereby associating variables with each process. As a result, the computer can function.

以下、図面を参照しつつ、本発明の実施の形態について説明する。以下の説明では、同一の部品には同一の符号を付してある。それらの名称および機能も同じである。したがって、それらについての詳細な説明は繰り返さない。   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, the structure of the editor apparatus 100 which concerns on embodiment of this invention is demonstrated. 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 150 are not always connected. For example, the image data generated by the editor device 100 is temporarily connected to the programmable display 150 when it is loaded. .

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

制御部110は、たとえばCPU(Central Processing Unit)、あるいはMPU(Micro Processing Unit)その他の演算回路である。制御部110は、所定の指示を検出すると、予めデータ記憶部140に格納されていたプログラムをメモリ部112に読み出して、所定のデータをメモリ部112に読み出したり書き込んだりすることにより、プログラムを実行する。   The control unit 110 is, for example, a CPU (Central Processing Unit), an MPU (Micro Processing Unit), or other arithmetic circuit. When the control unit 110 detects a predetermined instruction, the control unit 110 reads the program stored in the data storage unit 140 in advance into the memory unit 112 and reads or writes the predetermined data into the memory unit 112 to execute the program. To do.

メモリ部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 reader, 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 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 uploaded to the 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.

機能属性の付与は、変数に予約語を含ませることにより行なわれる。この場合、たとえばランプの場合、“L”を予約語として、この予約語は、変数の先頭に含められる。たとえば、“LOOO”(Oは、任意の文字あるいは数字を表わす。)は、識別番号がOOOであるランプの変数を表わす。スイッチ、カウンタ、タイマ等についても、変数を同様に設定することができる。なお、機能属性の付与は、上記の方法に限られない。   The function attribute is given by including a reserved word in the variable. 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 controlled devices, or causes these controlled 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, and can store a large amount of data. 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.

上記の構成のように、プログラマブル表示器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 a control program stored in advance as a control function unit. The control target devices 192 and 194 are, for example, an automatic assembly machine and a belt conveyor, but are not limited to specific devices. Further, the number of control target devices connected to the PLC 180 is not limited to a specific number.

図2を参照して、本実施の形態に係るエディタ装置を実現するコンピュータシステム200について説明する。図2は、コンピュータシステム200の構成を表わすブロック図である。   With reference to FIG. 2, a computer system 200 that realizes the editor device 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と、通信IF(Interface)290とを含む。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 (Interface) 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その他の記録媒体に記録されたソフトウェアであるとも言える。   In this way, the processing in the computer system 200 that implements the editor device 100 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, or may be stored and distributed in the FD 272, the CD-ROM 282, or other recording medium, and the FD driving device 270 or the CD-ROM driving device 280. May be read from the recording medium 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を参照して、本実施の形態に係るエディタ装置100を実現するコンピュータシステム200に格納されるデータについて説明する。図3は、コンピュータシステム200の固定ディスク260に格納されるデータ構造を表わす。   With reference to FIG. 3, data stored in computer system 200 that implements editor apparatus 100 according to the present embodiment will be described. FIG. 3 shows a data structure stored in the fixed disk 260 of the computer system 200.

図3に示すように、プログラマブル表示器が実行する命令は予めコンピュータシステム200の固定ディスク260に格納されている。この命令には、ビット操作命令、論理演算命令、転送命令、演算命令、タイマ/カウンタ命令、変換命令、プログラム制御命令などが含まれる。   As shown in FIG. 3, instructions executed by the programmable display device are stored in advance on a fixed disk 260 of the computer system 200. This instruction includes a bit operation instruction, a logical operation instruction, a transfer instruction, an operation instruction, a timer / counter instruction, a conversion instruction, a program control instruction, and the like.

各命令に対応する機能は、フィールドF310に格納される。各機能に対応する命令コードは、フィールドF320に格納される。この命令コードは、プログラマブル表示器150が実行する命令に対応するコードである。   The function corresponding to each instruction is stored in the field F310. The instruction code corresponding to each function is stored in field F320. This instruction code is a code corresponding to an instruction executed by the programmable display device 150.

各命令コードに対応するデータ属性は、フィールドF330に格納される。この属性には、たとえばビット属性、整数属性などが含まれるが、これらに限られない。たとえば、命令「a接点」に対して、命令コードは「NO」であり、そのデータ属性はビット属性である。   The data attribute corresponding to each instruction code is stored in field F330. Examples of this attribute include, but are not limited to, a bit attribute and an integer attribute. For example, for the instruction “a contact”, the instruction code is “NO” and its data attribute is a bit attribute.

なお、固定ディスク260におけるラダー命令の格納の態様は、図3に示した態様に限られない。   Note that the manner of storing ladder instructions in the fixed disk 260 is not limited to the manner shown in FIG.

図4を参照して、本実施の形態に係るエディタ装置100を実現するコンピュータシステム200に格納されるデータについてさらに説明する。   With reference to FIG. 4, the data stored in computer system 200 that implements editor apparatus 100 according to the present embodiment will be further described.

図4に示すように、変数の名称は、フィールドF410に格納される。この名称は、たとえばユーザが任意に設定したものであり、またエディタ装置100において予め定められた規則に基づいて設定された変数である。   As shown in FIG. 4, the name of the variable is stored in a field F410. This name is a variable that is arbitrarily set by the user, for example, and that is set based on a predetermined rule in the editor apparatus 100.

変数の属性は、フィールドF420に格納される。この属性には、たとえば整数、整数配列、タイマなどが含まれるが、これらに限られない。   The attribute of the variable is stored in the field F420. Examples of this attribute include, but are not limited to, an integer, an integer array, and a timer.

変数を分類するための属性は、フィールドF430に格納される。この属性には、たとえば内部変数があるがこれらに限られない。   The attribute for classifying the variable is stored in the field F430. Examples of this attribute include, but are not limited to, internal variables.

図4において、たとえば変数「C_0000」は、データ属性が整数であり、その分類は内部変数である。また、たとえば変数「P_0000」は、7つの配列要素を有する整数配列の属性であり、内部変数の分類である。   In FIG. 4, for example, a variable “C_0000” has an integer data attribute, and its classification is an internal variable. For example, the variable “P — 0000” is an attribute of an integer array having seven array elements, and is a classification of an internal variable.

を参照して、本実施の形態に係るエディタ装置100を実現するコンピュータシステム200の制御構造について説明する。図5は、コンピュータシステム200のCPU210が実行する処理の手順を表わすフローチャートである。たとえば、利用者がコンピュータシステム200に対して、制御プログラムを作成するためのプログラムを実行した場合に、以下に示す処理が行なわれる。 With reference to FIG. 5 , a control structure of computer system 200 that implements editor apparatus 100 according to the present embodiment will be described. FIG. 5 is a flowchart showing a procedure of processing executed by CPU 210 of computer system 200. For example, when the user executes a program for creating a control program on the computer system 200, the following processing is performed.

ステップS502にて、CPU210は、利用者が入力した指令に基づいて、エディタプログラムを起動する。このプログラムは、たとえばプログラマブル表示器150が実行する制御プログラムを作成するためのプログラムであるが、他のプログラムであってもよい。   In step S502, CPU 210 activates the editor program based on the command input by the user. This program is, for example, a program for creating a control program executed by the programmable display 150, but may be another program.

ステップS504にて、CPU210は、利用者の入力に応じて、あるいは予め定められた基準に基づいて変数を作成する。作成された変数には、その名称、属性その他の変数に固有な情報が対応付けられている。ここで属性は、変数が参照するデータの属性をいう。この属性には、たとえば、ビット、整数、整数配列、実数等が含まれる。   In step S504, CPU 210 creates a variable in accordance with a user input or based on a predetermined criterion. The created variable is associated with its name, attribute, and other information unique to the variable. Here, the attribute is an attribute of data referred to by the variable. This attribute includes, for example, a bit, an integer, an integer array, a real number, and the like.

ステップS506にて、CPU210は、作成した変数に基づいてラダー線図を作成する。この作成は、利用者が入力する制御ロジックに基づいて行なわれる。なお、この処理において作成されるのは、ラダー線図に限られない。モニタ220において制御ロジックが表示可能なプログラムであればよい。   In step S506, CPU 210 creates a ladder diagram based on the created variables. This creation is performed based on the control logic input by the user. Note that what is created in this process is not limited to a ladder diagram. Any program that can display control logic on the monitor 220 may be used.

ステップS508にて、CPU210は、作成した変数の一覧を表示する。この表示は、たとえば利用者による表示の指示を検知したとき、あるいは実行中のエディタプログラムから他のサブルーチンプログラム、あるいはプログラムモジュール等が実行されたときに行なわれる。これにより、利用者はモニタ220において、制御プログラムの作成に使用可能な変数を参照することができる。   In step S508, CPU 210 displays a list of created variables. This display is performed, for example, when a display instruction from the user is detected or when another subroutine program or program module is executed from the editor program being executed. As a result, the user can refer to variables that can be used to create the control program on the monitor 220.

ステップS510にて、CPU210は、利用者による変数の選択を検知する。この検知は、たとえば変数の一覧表において、利用者がマウス230のポインタ(矢印)を変数の位置(たとえば、変数の表示を含む領域)に移動し、選択を確定する動作(たとえばマウス230の所定のボタンの押下)を実行した場合に行なわれる。   In step S510, CPU 210 detects selection of a variable by the user. In this detection, for example, in a variable list, the user moves the pointer (arrow) of the mouse 230 to the position of the variable (for example, an area including the display of the variable) to confirm the selection (for example, a predetermined value of the mouse 230). This is done when the button is pressed.

ステップS512にて、CPU210は、ラダー線図上において割付先の命令の指定を検知する。この検知は、たとえばモニタ220に表示されたラダー線図上において、利用者がマウス230により、特定の命令の表示を指示した場合に行なわれる。なお、ここで、命令とは、プログラマブル表示器150が実行する処理をいう。この処理には、プログラマブル表示器150による制御対象機器の動作の制御、制御対象機器の状態の表示等を含む。制御対象機器の動作には、スイッチの開閉、データの転送、データの演算、論理演算、タイマによる計測、カウンタによる計数その他の処理が含まれる。   In step S512, CPU 210 detects the designation of the instruction to be assigned on the ladder diagram. This detection is performed, for example, when a user instructs display of a specific command with the mouse 230 on a ladder diagram displayed on the monitor 220. Here, the command refers to a process executed by the programmable display device 150. This processing includes control of the operation of the control target device by the programmable display 150, display of the state of the control target device, and the like. The operation of the control target device includes opening / closing of a switch, data transfer, data calculation, logical calculation, measurement by a timer, counting by a counter, and other processing.

ステップS514にて、CPU210は、ステップS512にて指定された命令に許可される属性と、ステップS510にて選択された変数の属性とが一致するか否かを判断する。この判断は、たとえば固定ディスク260に予め記憶されているデータに基づいて、命令に対応付けられるデータの属性と、変数が参照するデータの属性とを比較することにより行なわれる。命令に許可される属性と選択された変数の属性とが一致すると判断した場合には(ステップS514にてYES)、処理はステップS530に移される。そうでない場合には(ステップS514にてNO)、処理はステップS516に移される。   In step S514, CPU 210 determines whether the attribute permitted for the instruction specified in step S512 matches the attribute of the variable selected in step S510. This determination is made, for example, by comparing the attribute of the data associated with the command with the attribute of the data referred to by the variable based on the data stored in advance in fixed disk 260. If it is determined that the attribute permitted for the instruction matches the attribute of the selected variable (YES in step S514), the process proceeds to step S530. If not (NO in step S514), the process proceeds to step S516.

ステップS516にて、CPU210は、命令に許可される属性を有する変数のリストを作成する。なお、このリストの作成に代えて、たとえば固定ディスク260に格納されている変数のデータを所定の基準に基づいて抽出する処理、あるいは予め該当する変数のリストを作成しておき、そのデータをメモリ250に読み出す処理を行なってもよい。   In step S516, CPU 210 creates a list of variables having attributes permitted for the command. Instead of creating this list, for example, a process of extracting variable data stored in the fixed disk 260 based on a predetermined standard, or a corresponding variable list is created in advance, and the data is stored in the memory. The process of reading to 250 may be performed.

ステップS518にて、CPU210は、作成した変数のリストをモニタ220に表示させる。これにより、利用者は、選択可能な変数を参照することができる。   In step S518, CPU 210 causes monitor 220 to display the created variable list. Thereby, the user can refer to selectable variables.

ステップS520にて、CPU210は、表示中の変数のリストにおいて選択された変数を検出する。この検出は、たとえば利用者のマウス230のポインタが特定の変数上に指示され、利用者が所定の操作(たとえばマウス230における確定ボタンの押下)を行なった場合に行なわれる。   In step S520, CPU 210 detects a variable selected in the list of variables being displayed. This detection is performed, for example, when the pointer of the user's mouse 230 is pointed on a specific variable and the user performs a predetermined operation (for example, pressing of the confirm button on the mouse 230).

ステップS530にて、CPU210は、選択された変数を指定された命令に対応づける。この対応付けにより、ラダー線図上において指定された命令に対して所定の属性を有する変数が割り当てられる。したがって、エディタ装置100が作成した制御プログラムの実行時に、その命令は、その変数が参照するデータに基づいて実行される。   In step S530, CPU 210 associates the selected variable with the designated instruction. By this association, a variable having a predetermined attribute is assigned to the instruction specified on the ladder diagram. Therefore, when the control program created by the editor device 100 is executed, the command is executed based on the data referred to by the variable.

以上のような構造およびフローチャートに基づく、本実施の形態に係るエディタ装置100を実現するコンピュータシステム200の動作について説明する。以下では、整数配列と、タイマ変数と、整数変数とをドラッグ&ドロップする場合についてそれぞれ説明する。   The operation of computer system 200 that implements editor apparatus 100 according to the present embodiment based on the above-described structure and flowchart will be described. Hereinafter, a case where an integer array, a timer variable, and an integer variable are dragged and dropped will be described.

なお、以下の説明において参照される、図7、図9、図11、図13〜図15、および図17は、モニタ220に表示される画面を表わす図である。また、図6、図8、図10、図12、および図16は、メモリ250におけるデータ構造を表わす図である。これらの図については、コンピュータシステム200の動作の説明に合わせて、適宜説明する。   7, 9, 11, 13 to 15, and 17 that are referred to in the following description are diagrams showing screens displayed on the monitor 220. FIGS. 6, 8, 10, 12, and 16 represent data structures in the memory 250. These drawings will be described as appropriate in accordance with the description of the operation of the computer system 200.

[整数配列のドラッグ&ドロップ操作]
利用者がエディタプログラムを実行すると(ステップS502)、変数は、予め定められた処理に基づいて作成される(ステップS504)。作成された変数と各変数の属性とが、固定ディスク260に格納される。
[Drag and drop operation of integer array]
When the user executes the editor program (step S502), the variable is created based on a predetermined process (step S504). The created variable and the attribute of each variable are stored in the fixed disk 260.

ここで図6を参照して、作成された変数について説明する。図6は、固定ディスク260からメモリ250に読み出された変数のデータ構造を概念的に表わす図である。作成された変数は、フィールドF610に格納される。各変数の属性は、フィールドF620に格納される。各変数の分類コードは、フィールド630に格納される。たとえば変数「P_0000」は、配列要素を7つ有する整数配列である。なお、データが格納される態様は、図6に示したものに限られない。   Here, the created variable will be described with reference to FIG. FIG. 6 is a diagram conceptually showing the data structure of variables read from fixed disk 260 to memory 250. The created variable is stored in field F610. The attribute of each variable is stored in field F620. The classification code for each variable is stored in field 630. For example, the variable “P — 0000” is an integer array having seven array elements. The manner in which data is stored is not limited to that shown in FIG.

利用者が、モニタ220に表示された一覧表において、マウス230により変数「P_0000」を選択すると、その変数の表示部分は、たとえば表示色の変化などにより、その変数が選択されたことを示す表示に切り換わる(図7)。   When the user selects a variable “P — 0000” with the mouse 230 in the list displayed on the monitor 220, the display portion of the variable indicates that the variable has been selected, for example, due to a change in display color or the like. (Fig. 7).

利用者が、その変数「P_0000」を選択した態様のまま、マウス230によりラダー線図上にドラッグ&ドロップすると、コンピュータシステム200は、割付先の命令の指定を検知する(ステップS512)。この場合、選択された変数「P_0000」は複数ビットからなる整数配列の属性を有し、割付先の命令は、ビット属性を有する。したがって、命令に許可される属性と選択された変数の属性とが一致しないと判断され(ステップS514にてNO)、コンピュータシステム200は、その命令(たとえば「a接点」)に許可される属性を有する変数のリストを作成する(ステップS516)。   When the user drags and drops the ladder “P_0000” on the ladder diagram with the mouse 230 while selecting the variable “P_0000”, the computer system 200 detects the designation of the instruction of the assignment destination (step S512). In this case, the selected variable “P_0000” has an attribute of an integer array composed of a plurality of bits, and the instruction to which the assignment is made has a bit attribute. Therefore, it is determined that the attribute permitted for the instruction does not match the attribute of the selected variable (NO in step S514), and computer system 200 determines the attribute permitted for the instruction (eg, “a contact”). A list of variables is created (step S516).

ここで図8を参照して、変数のリストとして作成され、メモリ250に格納されるデータについて説明する。図8は、エディタプログラムの実行中にメモリ250に一時的に格納されるデータを表わす図である。   Here, data created as a variable list and stored in the memory 250 will be described with reference to FIG. FIG. 8 is a diagram representing data temporarily stored in memory 250 during execution of the editor program.

フィールドF810には、利用者のマウス操作により選択された変数(すなわちP_0000)が格納される。その変数に対応する配列要素は、フィールドF820に格納される。たとえば、変数「P_0000」は、7つの配列要素を有する変数であるため、7つのビットデータがメモリ250に格納される。なお、データが格納される態様は、図8に示すものに限られない。   A field F810 stores a variable (that is, P_0000) selected by the user's mouse operation. The array element corresponding to the variable is stored in field F820. For example, since the variable “P_0000” is a variable having seven array elements, seven bit data is stored in the memory 250. The manner in which data is stored is not limited to that shown in FIG.

このようにして、利用者が選択した変数「P_0000」に対応する配列要素が、モニタ220に表示され(ステップS518、図9)、利用者がその一覧に対して特定の変数(たとえば、P_0000[3])上にマウス230のポインタを配置すると、その変数(P_0000[3])の選択が検出される(ステップS520)。   In this way, the array element corresponding to the variable “P_0000” selected by the user is displayed on the monitor 220 (step S518, FIG. 9), and the user selects a specific variable (for example, P_0000 [ 3]) When the pointer of the mouse 230 is placed on top, selection of the variable (P_0000 [3]) is detected (step S520).

この場合、選択された変数(P_0000[3])が、たとえば32ビットの整数である場合、その変数の属性(整数)と、命令の属性(ビット属性)とが一致しない(ステップS514にてNO)。そのため、コンピュータシステム200は、その命令(たとえば「a接点」)に許可される属性を有する変数のリストを再び作成する(ステップS516)。   In this case, if the selected variable (P_0000 [3]) is, for example, a 32-bit integer, the variable attribute (integer) does not match the instruction attribute (bit attribute) (NO in step S514). ). Therefore, the computer system 200 again creates a list of variables having attributes permitted for the instruction (for example, “a contact”) (step S516).

ここで図10を参照して、変数(P_0000[3])のリストとして作成され、メモリ250に格納されるデータについて説明する。図10は、エディタプログラムの実行中にメモリ250に一時的に格納されるデータを表わす図である。   Here, with reference to FIG. 10, data created as a list of variables (P_0000 [3]) and stored in the memory 250 will be described. FIG. 10 is a diagram representing data temporarily stored in memory 250 during execution of the editor program.

フィールドF1010には、利用者のマウス操作により選択された変数(すなわちP_0000[3])が格納される。その変数を構成するビット属性を有する各変数は、フィールドF1020に格納される。たとえば、変数(P_0000[3])が32ビットである場合、図10に示すように、32の変数「P_0000[3]×[0]」〜「P_0000[3]×[31]」が、それぞれのデータ領域に格納される。なお、データが格納される態様は、図10に示すものに限られない。   A field F1010 stores a variable selected by the user's mouse operation (that is, P_0000 [3]). Each variable having the bit attribute constituting the variable is stored in field F1020. For example, if the variable (P_0000 [3]) is 32 bits, as shown in FIG. 10, 32 variables “P_0000 [3] × [0]” to “P_0000 [3] × [31]” Stored in the data area. The manner in which data is stored is not limited to that shown in FIG.

このようにして、利用者が選択した変数「P_0000[3]」を構成する変数(P_0000[3]×[0]〜P_0000[3]×[31])の一覧表が、モニタ220に表示される(ステップS518、図11)。   In this way, a list of variables (P_0000 [3] × [0] to P_0000 [3] × [31]) constituting the variable “P_0000 [3]” selected by the user is displayed on the monitor 220. (Step S518, FIG. 11).

この一覧表は、それまで表示されていた変数の一覧表(図9)の前面に表示される。したがって、利用者は、選択すべき変数を容易に確認することができるため、変数の選択を確実に行なうことができる。図11における一覧表の表示を実現するためには、たとえば、その一覧表の始点(同左上部)が、既に表示されている一覧表(図9)の始点(たとえば、画面における左上部)に重なるように、表示のための位置データを出力してもよい。すなわち、表示中の一覧表のいずれかの角部に対応する座標データと同じデータを、新たな一覧表についての座標データとすることにより、変数の表示を重ねて表示することができる。   This list is displayed in front of the list of variables (FIG. 9) that has been displayed. Therefore, since the user can easily confirm the variable to be selected, the variable can be surely selected. In order to realize the display of the list in FIG. 11, for example, the start point (upper left corner) of the list overlaps the start point (for example, upper left corner of the screen) of the already displayed list (FIG. 9). As described above, position data for display may be output. That is, the same data as the coordinate data corresponding to any corner of the displayed list is used as the coordinate data for the new list, so that the variable can be displayed in an overlapping manner.

利用者がその一覧に対して特定の変数(たとえば、P_0000[3]×[0])上にマウス230のポインタを配置して、決定機能を有するボタン(図示しない)を押下すると、その変数(P_0000[3]×[0])の選択が検出される(ステップS520)。   When the user places the pointer of the mouse 230 on a specific variable (for example, P_0000 [3] × [0]) and presses a button (not shown) having a determination function with respect to the list, the variable ( Selection of P_0000 [3] × [0]) is detected (step S520).

その結果、選択された変数(P_0000[3]×[0])の属性(ビット属性)と、割付先の命令の属性(ビット属性)とは、一致する(ステップS514にてYES)。したがって、その変数(P_0000[3]×[0])は、割付が指定された命令(すなわち「a接点」)に対応づけられる(ステップS530)。   As a result, the attribute (bit attribute) of the selected variable (P_0000 [3] × [0]) matches the attribute (bit attribute) of the instruction at the allocation destination (YES in step S514). Therefore, the variable (P_0000 [3] × [0]) is associated with the instruction for which the assignment is designated (that is, “a contact”) (step S530).

以上により、利用者が、整数配列として定義されている変数をビット属性を有する命令に割付けようとすると、利用者によって選択された変数に対して、割付の候補となる配列要素を一覧表として表示する。利用者は、その一覧表から特定の配列要素を選択することができるため、たとえば利用者がキーボード240の操作により配列要素を入力する場合に比べて、誤入力あるいは誤操作を少なくすることができる。   As described above, when a user tries to assign a variable defined as an integer array to an instruction having a bit attribute, array elements that are candidates for assignment are displayed as a list for the variable selected by the user. To do. Since the user can select a specific array element from the list, erroneous input or erroneous operation can be reduced as compared with the case where the user inputs the array element by operating the keyboard 240, for example.

[タイマ変数のドラッグ&ドロップ操作]
以下、利用者がタイマ変数を命令に割り付ける場合について説明する。ここでタイマ変数とは、たとえばビット変数とワード変数とを含み、制御対象機器を作動させたり、停止させたりする命令を設定する変数をいう。
[Timer variable drag and drop operation]
Hereinafter, a case where the user assigns a timer variable to an instruction will be described. Here, the timer variable refers to a variable that includes, for example, a bit variable and a word variable, and sets a command for operating or stopping the control target device.

ここで、図12を参照して、メモリ250に格納されるデータについて説明する。   Here, the data stored in the memory 250 will be described with reference to FIG.

図12(A)は、利用者がエディタプログラムを起動したときに生成されるデータ構造を表わす図である。すなわち、変数名は、フィールドF1210に格納される。各変数に対応するデータ属性は、フィールドF1220に格納される。各変数の分類は、フィールドF1230に格納される。   FIG. 12A shows a data structure generated when the user starts the editor program. That is, the variable name is stored in the field F1210. The data attribute corresponding to each variable is stored in field F1220. The classification of each variable is stored in field F1230.

図12(B)は、エディタプログラムの実行中に一時的に作成されるデータ構造を表わす。すなわち、選択された変数は、フィールドF1250に格納される。その変数が構成要素として含む要素変数は、フィールドF1260に格納される。この変数は、たとえば変数の内部に異なる属性の変数を含む場合におけるその変数を表わす。   FIG. 12B shows a data structure temporarily created during execution of the editor program. That is, the selected variable is stored in field F1250. The element variable that the variable includes as a constituent element is stored in field F1260. This variable represents, for example, a variable when a variable having a different attribute is included in the variable.

利用者がエディタプログラムを起動して所定の変数の作成処理を実行すると(ステップS504)、その変数は固定ディスク260に保存される。利用者がコンピュータシステム200において操作を継続して、変数の一覧表示を指示すると(ステップS508)、モニタ220は、ラダー線図上にその変数の一覧表を表示する(ステップS508、図13)。   When the user activates the editor program and executes a process for creating a predetermined variable (step S504), the variable is stored in the fixed disk 260. When the user continues the operation in the computer system 200 and instructs to display a list of variables (step S508), the monitor 220 displays a list of the variables on the ladder diagram (step S508, FIG. 13).

利用者が、その一覧表においてマウス230により変数「T_0005」を選択すると、その変数の表示部分は、選択されたことを示す表示の態様に切換わる(たとえば、白黒反転する)。この状態において、利用者がマウス230によりその変数「T_0005」をラダー線図上の命令(たとえば、「a接点」)にドラッグしてさらにドロップすると、モニタ220は、その命令上に、変数「T_0005」に対応する構造体の要素の一覧表を表示する(ステップS518、図14)。   When the user selects a variable “T_0005” with the mouse 230 in the list, the display portion of the variable is switched to a display mode indicating that the variable has been selected (for example, black and white inversion). In this state, when the user drags the variable “T_0005” to an instruction (eg, “a contact”) on the ladder diagram with the mouse 230 and further drops it, the monitor 220 displays the variable “T_0005” on the instruction. ”Is displayed (step S518, FIG. 14).

ここで、図14を参照して、一覧表が表示される場所について説明する。この一覧表は、割付の対象となる命令(たとえば、図13におけるプログラムコメント「2」の表示部)の前面に表示される。したがって、利用者は、選択すべき変数を容易に確認することができるため、変数の選択を確実に行なうことができる。図14における一覧表の表示を実現するためには、たとえば、その一覧表の始点(同左上部)が、既に表示されている命令(図13)の表示領域の始点(たとえば、画面における左上部)に重なるように、表示のための位置データを出力してもよい。すなわち、割り付け対象となる命令の表示領域のいずれかの角部に対応する座標データと同じデータを、新たな一覧表についての座標データとすることにより、変数の表示を重ねて表示することができる。   Here, with reference to FIG. 14, the place where the list is displayed will be described. This list is displayed in front of the instruction to be assigned (for example, the display section of the program comment “2” in FIG. 13). Therefore, since the user can easily confirm the variable to be selected, the variable can be surely selected. In order to realize the display of the list in FIG. 14, for example, the start point of the list (the upper left part) is the start point of the display area of the instruction (FIG. 13) already displayed (for example, the upper left part on the screen). Position data for display may be output so as to overlap. That is, the same data as the coordinate data corresponding to any corner of the display area of the instruction to be assigned is used as the coordinate data for the new list, so that the variable can be displayed in an overlapping manner. .

利用者が、その一覧からビット変数「T_0005.Q」を選択すると、コンピュータシステム200は、その変数を命令(a接点)に割付ける(ステップS530)。   When the user selects the bit variable “T_0005.Q” from the list, the computer system 200 assigns the variable to an instruction (a contact) (step S530).

以上により、利用者がラダー線図上におけるビットデータを要する命令にタイマ構造体の変数を割付けようとした場合には、選択されたタイマ構造体の変数の要素(たとえばビット属性、あるいはワード属性)に応じた変数をさらに表示する。したがって、利用者はその一覧表からビット属性を有する変数(たとえばT_0005.Q)を選択することができるため、キーボード240を使用して変数名を入力する場合に比べて、誤入力を少なくすることができる。   Thus, when a user tries to assign a timer structure variable to an instruction that requires bit data on a ladder diagram, the variable element of the selected timer structure (for example, bit attribute or word attribute) The variable corresponding to is further displayed. Therefore, since the user can select a variable having a bit attribute (for example, T_0005.Q) from the list, it is possible to reduce erroneous input as compared with the case where the variable name is input using the keyboard 240. Can do.

[整数変数のドラッグ&ドロップ操作]
以下、ビット属性を有する命令に対して、16ビットの整数変数を割付けようとする場合について説明する。
[Integer variable drag and drop operation]
Hereinafter, a case where a 16-bit integer variable is to be assigned to an instruction having a bit attribute will be described.

利用者がエディタプログラムを起動して変数を作成すると(ステップS504)、作成された変数は固定ディスク250に格納される(たとえば図6)。コンピュータシステム200のモニタ220が変数の一覧表を表示すると(ステップS508、図15)、利用者のマウス230による選択操作が可能になる。たとえば、利用者が変数「D_0004」を選択して、ドラッグ&ドロップ操作によりその変数を命令(a接点)に割り付けようとすると、変数「D_0004」の属性と命令(a接点)の属性とが一致しないため(ステップS514にてNO)、変数「D_0004」に対応する属性を有する変数のリストがメモリ250において作成される(ステップS516、図16)。   When the user activates the editor program and creates a variable (step S504), the created variable is stored in the fixed disk 250 (for example, FIG. 6). When the monitor 220 of the computer system 200 displays a list of variables (step S508, FIG. 15), the user can perform a selection operation using the mouse 230. For example, when a user selects a variable “D_0004” and tries to assign the variable to an instruction (a contact) by a drag and drop operation, the attribute of the variable “D_0004” matches the attribute of the instruction (a contact). If not (NO in step S514), a list of variables having an attribute corresponding to the variable “D_0004” is created in the memory 250 (step S516, FIG. 16).

ここで、図16を参照して、メモリ250に作成されるデータについて説明する。図16は、固定ディスク250からメモリ250に読み出されたデータが格納される態様を概念的に表わす図である。   Here, data created in the memory 250 will be described with reference to FIG. FIG. 16 is a diagram conceptually showing a mode in which data read from fixed disk 250 to memory 250 is stored.

図16に示すように、特定の命令に割り付けられようとしている変数(たとえば「D_0004」)は、フィールドF1610に格納される。その変数に含まれるビット要素は、フィールドF1620に示すように、各データ領域に格納される。なお、データが格納される態様は、図16に示した態様に限られない。   As shown in FIG. 16, a variable (eg, “D_0004”) that is about to be assigned to a specific instruction is stored in field F1610. The bit element included in the variable is stored in each data area as shown in a field F1620. The manner in which data is stored is not limited to the manner shown in FIG.

コンピュータシステム200は、メモリ250に読み出したデータに基づいて、変数「D_0004」に応じたリストを表示する(ステップS518)。   The computer system 200 displays a list corresponding to the variable “D_0004” based on the data read to the memory 250 (step S518).

ここで、図17を参照して、モニタ220が表示する画面について説明する。図17は、モニタ220に表示された一覧表から選択された変数に対して、その変数が有するビット要素の一覧表が表示された画面を表わす。   Here, a screen displayed on the monitor 220 will be described with reference to FIG. FIG. 17 shows a screen on which a list of bit elements included in a variable selected from the list displayed on the monitor 220 is displayed.

利用者が、その表示されたリストから、マウス230により命令(a接点)に割り付けようとする変数(たとえばD_0004×[0])を選択して確定ボタン(図示しない)を押下すると(ステップS520)、その変数「D_0004×[0]」は、命令(a接点)に対応づけられて、メモリ250に格納される(ステップS530)。   When the user selects a variable (for example, D_0004 × [0]) to be assigned to the command (contact “a”) from the displayed list and presses a confirm button (not shown) (step S520). The variable “D_0004 × [0]” is stored in the memory 250 in association with the instruction (a contact) (step S530).

このようにして、利用者がビット属性を有する命令に整数属性を有する変数を割付けようとする場合には、その変数から命令の属性に対応する属性を有する変数のリストが作成される。利用者は、そのリストから、マウス230により特定の変数を選択し、その命令に割り付けることができる。このようにすると、利用者は、キーボード240を介して特定の変数を入力する場合に比べて、命令に対して不適切な変数の入力その他の誤操作を防止することができる。   In this way, when a user tries to assign a variable having an integer attribute to an instruction having a bit attribute, a list of variables having an attribute corresponding to the attribute of the instruction is created from the variable. The user can select a specific variable from the list with the mouse 230 and assign it to the command. In this way, compared to the case where the user inputs a specific variable via the keyboard 240, the user can prevent an input of a variable inappropriate for the command and other erroneous operations.

以上のようにして、詳述した本実施の形態に係るエディタ装100を実現するコンピュータシステム200は、変数をラダー線図に割付ける処理を実行中に、その命令に許可されるデータの属性と変数が参照するデータの属性とが一致するか否かを判断する。命令に許可されるデータの属性と変数が参照するデータの属性とが一致しない場合には、コンピュータシステム200は、その命令に許可される属性を有する変数のリストを、割り付け可能な候補として作成して、モニタ220に表示させる。このようにすると、利用者はマウス230その他のポインティングデバイスの操作により、表示されたリストから、特定の変数を選択して、命令にその変数を割り付けることができる。このようにすると、利用者は命令に割付けるための変数を、たとえばキーボード240その他の入力手段を介して入力する場合に比べて、誤って選択することがなくなる。したがって、ラダー線図に対して適切な変数を割付けることができる。   As described above, the computer system 200 that implements the editor device 100 according to the present embodiment described in detail, while executing the process of assigning a variable to a ladder diagram, It is determined whether or not the attribute of the data referred to by the variable matches. If the attribute of the data permitted for the instruction does not match the attribute of the data referred to by the variable, the computer system 200 creates a list of variables having the attribute permitted for the instruction as assignable candidates. Display on the monitor 220. In this way, the user can select a specific variable from the displayed list and assign the variable to the command by operating the mouse 230 or other pointing device. In this way, the user does not mistakenly select a variable to be assigned to the command, as compared with the case where the variable is input via the keyboard 240 or other input means, for example. Therefore, an appropriate variable can be assigned to the ladder diagram.

なお、本発明の実施の形態においては、利用者が選択した変数に対して、その変数が含む要素が処理に関連付けられる場合について説明した。すなわち、最初の選択において変数と処理との関連付けができない場合、その後の要素の選択によって関連付けができる場合を説明した。   In the embodiment of the present invention, a case has been described in which an element included in a variable is associated with a process for a variable selected by the user. That is, the case has been described where the association between the variable and the process cannot be made in the first selection, and the association can be made by the selection of the subsequent element.

このような場合に加えて、その要素から、特定の要素をさらに選択する場合も、同様の処理を実行することができる。この場合は、たとえば、処理におけるデータ属性がビット要素である場合において、利用者が、複数のビット要素からなる整数の配列の属性を有する変数を選択した場合を含む。このとき、選択された変数から特定の配列要素を選択する処理と、選択された配列要素(すなわち整数)から、特定のビット要素を選択する処理が必要になる。   In addition to such a case, a similar process can be executed when a specific element is further selected from the elements. In this case, for example, when the data attribute in the process is a bit element, the user selects a variable having an attribute of an integer array composed of a plurality of bit elements. At this time, processing for selecting a specific array element from the selected variable and processing for selecting a specific bit element from the selected array element (that is, an integer) are required.

このような場合も、図5に示したフローチャートにおいて、ステップS520の後に、ステップS514における判断処理を実行し、一致しない場合には、ステップS516と同様の処理を実行することにより、関連付けの対象となる処理の属性に合致した変数を対応付けることができる。   In such a case as well, in the flowchart shown in FIG. 5, the determination process in step S514 is executed after step S520. If they do not match, the process similar to that in step S516 is executed. It is possible to associate variables that match the processing attributes.

また、上記の実施の形態においては、変数の選択のためにマウス230を用いて説明したが、変数の選択にはこれに限られるものではない。その他のポインティングデバイス(たとえばライトペン、トラックボール等)であってもよい。   In the above embodiment, the mouse 230 is used to select a variable. However, the selection of a variable is not limited to this. Other pointing devices (for example, a light pen, a trackball, etc.) may be used.

今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   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 control program executed by a display device having a function of displaying a state of a device to be controlled 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 data stored in the computer system shown in FIG. 2; 図2に示したコンピュータシステムに格納されるデータを説明するための図(その2)である。FIG. 3 is a (second) diagram for explaining data stored in the computer system shown in FIG. 2; 本発明の実施の形態に係るエディタ装置を実現するコンピュータシステムが実行する処理の手順を表わすフローチャートである。It is a flowchart showing the procedure of the process which the computer system which implement | achieves the editor apparatus which concerns on embodiment of this invention performs. 図2に示したコンピュータシステムに格納されるデータを説明するための図(その3)である。FIG. 3 is a third diagram for explaining data stored in the computer system illustrated in FIG. 2; 図2に示したコンピュータシステムが表示する画面を説明するための図(その1)である。FIG. 3 is a first diagram for explaining a screen displayed by the computer system shown in FIG. 2; 図2に示したコンピュータシステムに格納されるデータを説明するための図(その4)である。FIG. 4 is a diagram (part 4) for explaining data stored in 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に示したコンピュータシステムに格納されるデータを説明するための図(その5)である。FIG. 6 is a fifth diagram for explaining data stored in 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に示したコンピュータシステムに格納されるデータを説明するための図(その6)である。FIG. 6 is a view (No. 6) for explaining data stored in the computer system shown in FIG. 2; 図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; 図2に示したコンピュータシステムが表示する画面を説明するための図(その6)である。FIG. 6 is a view (No. 6) for explaining a screen displayed by the computer system shown in FIG. 2; 図2に示したコンピュータシステムに格納されるデータを説明するための図(その7)である。FIG. 7 is a view (No. 7) for explaining data stored in the computer system shown in FIG. 2; 図2に示したコンピュータシステムが表示する画面を説明するための図(その7)である。FIG. 9 is a view (No. 7) 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,196,198 制御対象機器、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 196,198 control target device, 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)

制御対象機器の状態を表示する処理と動作の制御を指示する処理とを行なう表示器が実行する制御プログラムに対応する処理データを、前記表示器に転送可能な形式で作成するためのエディタ装置であって、
利用者が指示を入力するための入力手段と、
前記指示に基づいて、各前記処理を編集するためのプログラム編集手段と、
編集された各前記処理の名称と、各前記処理の内容を示す画像を表示するための画像データと、各前記処理をそれぞれ制御する制御データの属性とを、関連付けて記憶するための処理データ記憶手段と、
前記指示に基づいて、前記制御プログラムが参照する複数の変数の各々の変数名と、前記複数の変数の各々の型属性とを定義するための定義手段とを備え、前記複数の変数のうちの少なくともいずれかは、複数の構成要素を含み、各前記構成要素は、前記制御プログラムによって参照可能であり
前記指示に基づいて、定義された前記各々の変数名を、対応する前記各々の型属性に対応付けて記憶するための変数データ記憶手段と、
前記指示が入力されると、前記画像データと、前記各々の変数名とに基づいて、編集された各前記画像と、変数の一覧表とを表示するための表示手段と、
前記利用者による前記入力手段の操作に基づいて、前記変数の一覧表から前記利用者により選択された変数を検出するための検出手段と、
前記入力手段の操作に基づいて、前記選択された変数と各前記処理のうちのいずれかの処理との関連付けが行なわれようとしていることを検知するための検知手段と、
前記関連付けが行なわれようとしていることが検知されると、前記選択された変数の型属性と前記制御データの属性とに基づいて、前記関連付けが可能であるか否かを判断するための判断手段と、
前記関連付けが可能であると判断されると、前記選択された変数を前記処理に関連付けるための関連付け手段と、
前記関連付けが不可能であると判断されると、前記いずれかの処理に対して、前記選択された変数が有する各前記構成要素を一覧表として前記表示手段に表示させるための制御手段と、
各前記処理と、各前記処理にそれぞれ対応付けられた変数または構成要素とに基づいて、前記処理データを作成するための作成手段とを含む、エディタ装置。
An editor device for creating processing data corresponding to a control program executed by a display that performs processing for displaying a state of a control target device and processing for instructing operation control in a format that can be transferred to the display There,
An input means for the user to input instructions;
Program editing means for editing each of the processes based on the instructions;
Process data storage for storing the edited name of each process, image data for displaying an image indicating the contents of each process, and attribute of control data for controlling each process in association with each other Means,
Based on the instruction, and each of the variable name of a plurality of variables before Symbol control program references, and a defining means for defining a type attribute of each of the plurality of variables, the plurality of variables Includes at least one of the components, and each of the components can be referred to by the control program .
Variable data storage means for storing each defined variable name in association with each corresponding type attribute based on the instruction;
When the instruction is input, and the image data, on the basis on the respective variable name, and each front Kiga image that has been edited, and a display means for displaying a list of variables,
Detection means for detecting a variable selected by the user from the list of variables based on an operation of the input means by the user;
Based on the operation of the input means, and detecting means for detecting that the association is about to be performed with any of the processing of the selected variable and each said processing,
When it is detected that the association is about to be performed, determination means for determining whether or not the association is possible based on a type attribute of the selected variable and an attribute of the control data When,
An association means for associating the selected variable with the process if it is determined that the association is possible;
If it is determined that the association is not possible, the control means for the for either the process to be displayed on said display means as a list table for each of said components said selected variables have,
An editor device, comprising: each of the processes; and a creation means for creating the process data based on a variable or a component associated with each of the processes.
前記エディタ装置はさらに、
前記表示手段に表示された前記画像の位置を表わす画像位置データを取得するための手段と、
前記表示手段における前記選択された変数の位置を表わす変数位置データを取得するための手段とを含み、
前記検知手段は、前記変数位置データが前記画像位置データに含まれる場合には、前記関連付けが行なわれようとしていることを検知する、請求項1に記載のエディタ装置。
The editor device further includes:
It means for obtaining the image position data representing the position of the front Kiga image displayed on the display means,
Means for obtaining variable position data representing the position of the selected variable on the display means;
The editor device according to claim 1, wherein the detection unit detects that the association is about to be performed when the variable position data is included in the image position data.
前記判断手段は、前記選択された変数の型属性と、前記制御データの属性とが一致するか否かを判断し、
前記関連付け手段は、前記選択された変数の型属性と、前記制御データの属性とが一致する場合には、前記選択された変数を前記処理に関連付けて前記記憶手段に記憶する、請求項1または2に記載のエディタ装置。
The determining means determines whether or not the type attribute of the selected variable matches the attribute of the control data;
The association means stores the selected variable in the storage means in association with the process when the type attribute of the selected variable matches the attribute of the control data. The editor device according to 2.
前記判断手段は、前記選択された変数の型属性と、前記制御データの属性とが一致するか否かを判断し、
前記制御手段は、前記選択された変数の型属性と、前記制御データの属性とが不一致である場合には、前記いずれかの処理に対して、前記選択された変数が有する各前記構成要素を一覧表として、前記表示手段に表示させるための表示制御手段を含む、請求項1または2に記載のエディタ装置。
The determining means determines whether or not the type attribute of the selected variable matches the attribute of the control data;
When the type attribute of the selected variable and the attribute of the control data do not match, the control means, for each of the processes, for each of the components included in the selected variable. The editor apparatus according to claim 1, further comprising display control means for displaying on the display means as a list.
前記表示制御手段は、前記関連付けが検知された処理の前記画像データが出力された後に、前記構成要素のデータを前記表示手段に出力する、請求項4に記載のエディタ装置。 The editor device according to claim 4, wherein the display control unit outputs the data of each component to the display unit after the image data of the process in which the association is detected is output. 前記処理データ記憶手段は、前記いずれかの処理に対して、1ビットのデータを前記制御データとして記憶し、
各前記構成要素は、複数のビットからなる配列構造を含み、
前記表示制御手段は、前記複数のビットの各々を一覧表として前記表示手段に表示させる、請求項4に記載のエディタ装置。
The processing data storage means stores 1-bit data as the control data for any of the processes,
Each of the components includes an array structure composed of a plurality of bits,
The editor apparatus according to claim 4, wherein the display control unit displays each of the plurality of bits as a list on the display unit.
前記処理データ記憶手段は、前記いずれかの処理に対して、整数を前記制御データとして記憶し、
各前記構成要素は、複数のビットからなる配列構造を含み、
前記表示制御手段は、前記複数の整数の各々を一覧表として前記表示手段に表示させる、請求項4に記載のエディタ装置。
The process data storage means stores an integer as the control data for any of the processes,
Each of the components includes an array structure composed of a plurality of bits,
The display control means displays on the display means each of the plurality of integers as a list table editor apparatus according to claim 4.
前記入力手段は、ポインティングデバイスを含む、請求項1〜7のいずれかに記載のエディタ装置。   The editor apparatus according to claim 1, wherein the input unit includes a pointing device. 制御対象機器の状態を表示する処理と動作の制御を指示する処理とを行なう表示器が実行する制御プログラムに対応する処理データを、前記表示器に転送可能な形式で作成するためのエディタ装置として、コンピュータを機能させるためのプログラムであって、前記プログラムは前記コンピュータに、
利用者が指示を入力するステップと、
前記指示に基づいて、各前記処理を編集するステップと、
編集された各前記処理の名称と、各前記処理の内容を示す画像を表示するための画像データと、各前記処理をそれぞれ制御する制御データの属性とを、関連付けて準備するステップと、
前記指示に基づいて前記制御プログラムが参照する複数の変数の各々の変数名と、前記複数の変数の各々の型属性とを定義するステップとを実行させ、前記複数の変数のうちの少なくともいずれかは、複数の構成要素を含み、各前記構成要素は、前記制御プログラムによって参照可能であり
前記指示に基づいて、定義された前記各々の変数名を、対応する前記各々の型属性に対応付けて準備するステップと、
前記指示が入力されると、前記画像データと、前記各々の変数名と基づいて、編集された各前記画像と、変数の一覧表とを表示するステップと、
前記利用者による入力に基づいて、前記変数の一覧表から前記利用者により選択された変数を検出するステップと、
前記入力ステップの操作に基づいて、前記選択された変数と各前記処理のうちのいずれかの処理との関連付けが行なわれようとしていることを検知するステップと、
前記関連付けが行なわれようとしていることが検知されると、前記選択された変数の型属性と前記制御データの属性とに基づいて、前記関連付けが可能であるか否かを判断するステップと、
前記関連付けが可能であると判断されると、前記選択された変数を前記処理に関連付けるステップと、
前記関連付けが不可能であると判断されると、前記いずれかの処理に対して、前記選択された変数が有する各前記構成要素を一覧表として前記コンピュータに表示させるステップと、
各前記処理と、各前記処理にそれぞれ対応付けられた変数または構成要素とに基づいて、前記処理データを作成するステップとを実行させる、プログラム。
As an editor device for creating processing data corresponding to a control program executed by a display that performs processing for displaying a state of a control target device and processing for instructing operation control in a format that can be transferred to the display , A program for causing a computer to function, the program being stored in the computer,
A user entering instructions,
Editing each of the processes based on the instructions;
A step of associating and preparing the name of each edited process, image data for displaying an image indicating the content of each process, and an attribute of control data for controlling each of the processes;
Based on the instruction, and variable names of each of the plurality of variables that the control program refers, to execute the steps of defining a type attribute of each of the plurality of variables, at least one of the plurality of variables Or includes a plurality of components, and each of the components can be referred to by the control program ,
Preparing each defined variable name based on the instructions in association with the corresponding type attribute;
When the instruction is input, and displaying said image data, on the basis with each of the variable name, and each front Kiga image that has been edited, a list of variables,
Detecting a variable selected by the user from the list of variables based on an input by the user;
A step of detecting that said on the basis of the operation of the input step, the association between any of the processing of the selected variable and each said process is about to be performed,
When it is detected that the association is about to be performed, determining whether the association is possible based on a type attribute of the selected variable and an attribute of the control data;
If it is determined that the association is possible, associating the selected variable with the process;
If it is determined that the association is not possible, the step of displaying said for any processing, to the computer as a list table for each of said components said selected variables have,
A program that executes each of the processes and a step of creating the process data based on a variable or a component associated with each of the processes.
前記プログラムは前記コンピュータに、The program is stored in the computer.
表示された前記画像の位置を表わす画像位置データを取得するステップと、Obtaining image position data representing the position of the displayed image;
選択された変数の位置を表わす変数位置データを取得するステップとをさらに実行させ、Obtaining variable position data representing the position of the selected variable, and
前記検知するステップは、前記変数表示データが前記画像位置データに含まれる場合には、前記関連付けが行なわれようとしていることを検知するステップを含む、請求項9に記載のプログラム。The program according to claim 9, wherein the detecting step includes a step of detecting that the association is about to be performed when the variable display data is included in the image position data.
請求項9または10に記載のプログラムを記録した、記録媒体。 Recording a program according to claim 9 or 10, a recording medium.
JP2003378669A 2003-11-07 2003-11-07 Editor device, program for causing computer to function as editor device, and recording medium Expired - Lifetime JP4465176B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003378669A JP4465176B2 (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
JP2003378669A JP4465176B2 (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
JP2005141564A JP2005141564A (en) 2005-06-02
JP4465176B2 true JP4465176B2 (en) 2010-05-19

Family

ID=34688977

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003378669A Expired - Lifetime JP4465176B2 (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) JP4465176B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE112007000543T5 (en) * 2006-03-07 2009-03-26 Kabushiki Kaisha Yaskawa Denki, Kitakyushu-Shi Programming device and automatic data structure identification method
JP2009181399A (en) * 2008-01-31 2009-08-13 Koyo Electronics Ind Co Ltd Tag data import method and recording medium for predefined file
JP5794568B2 (en) * 2011-09-01 2015-10-14 国立大学法人東京工業大学 Data editing apparatus and data editing method
KR102095224B1 (en) * 2018-02-09 2020-03-31 엘에스산전 주식회사 Apparatus for providing program and cpu module processing execution of the program of the same
JP2024011850A (en) * 2022-07-15 2024-01-25 オムロン株式会社 Control program editing device, editing method, and program

Also Published As

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

Similar Documents

Publication Publication Date Title
JP7466319B2 (en) Programmable display and programmable logic controller system equipped with the same
US11656596B2 (en) Programmable logic controller and program creation supporting apparatus
KR920001696B1 (en) Data processing unit equipped with multi window display control unit
JP5810563B2 (en) Control program development support apparatus, control program development support program, and recording medium
JP6206202B2 (en) Information processing apparatus and information processing program
JPH0782368B2 (en) Programming terminal device for creating program for programmable controller
CN107728562A (en) Programable display, renewal processing device and its method and recording medium
KR101864565B1 (en) Debug device, debug method, and debug program
JP4465176B2 (en) Editor device, program for causing computer to function as editor device, and recording medium
JP4554570B2 (en) Programmable display, control program and recording medium recording the same, and control system, client program and recording medium recording the same
JP2006244078A (en) Display control apparatus and control method thereof
EP1736869A2 (en) Program creation apparatus, program creation method and program
JP2010009497A (en) Display, control method for display, and control program for display
US8683364B2 (en) Graphical interconnection of hardware signals
JP4301919B2 (en) Editor device, program for causing computer to function as editor device, and recording medium
JP2002268711A (en) Programmable display unit and plotting program for the same and recording medium with its plotting program recorded
JP4462426B2 (en) PLC tool device
JP2006331278A (en) Programmable display, control program, storage medium recording the program, screen forming device, screen forming program, and storage medium recording the program
JP4278466B2 (en) Editor device, program for causing computer to function as editor device, and recording medium
CN113841093B (en) Programmable logic controller, computer, method, and computer-readable recording medium
US20200310377A1 (en) Ladder Display Device
JP2008293392A (en) Ladder programming editor
JP2001005517A (en) Control program monitoring method and device
JP4562141B2 (en) Programmable logic controller, information processing apparatus, control program, and table creation program
JPH0580814A (en) Programming device for programmable controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061017

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090210

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090217

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090413

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090825

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

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

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

Free format text: PAYMENT UNTIL: 20130226

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4465176

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140226

Year of fee payment: 4

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