JP2011028552A - Program creation support device, program creation support method and computer program - Google Patents

Program creation support device, program creation support method and computer program Download PDF

Info

Publication number
JP2011028552A
JP2011028552A JP2009174363A JP2009174363A JP2011028552A JP 2011028552 A JP2011028552 A JP 2011028552A JP 2009174363 A JP2009174363 A JP 2009174363A JP 2009174363 A JP2009174363 A JP 2009174363A JP 2011028552 A JP2011028552 A JP 2011028552A
Authority
JP
Japan
Prior art keywords
unit
search
related information
creation support
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2009174363A
Other languages
Japanese (ja)
Other versions
JP5500896B2 (en
JP2011028552A5 (en
Inventor
Yusuke Soneta
祐介 曽根田
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.)
Keyence Corp
Original Assignee
Keyence 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 Keyence Corp filed Critical Keyence Corp
Priority to JP2009174363A priority Critical patent/JP5500896B2/en
Publication of JP2011028552A publication Critical patent/JP2011028552A/en
Publication of JP2011028552A5 publication Critical patent/JP2011028552A5/ja
Application granted granted Critical
Publication of JP5500896B2 publication Critical patent/JP5500896B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a program creation support device, a program creation support method and a computer program capable of reducing the labor of the creator of a control program, and for efficiently supporting the creator to create the control program. <P>SOLUTION: The program creation support device is configured of an extended unit and CPU unit, connected to controlled equipment and supports the creation of a control program to be executed by a programmable controller for sequentially controlling the operation of the controlled equipment. The program creation support device is provided with an instruction word storage section for storing an instruction word to be used by a control program; and a relevant information storage section for storing the relevant information related with the instruction word in association with the instruction word which is separately installed, and the program creation support device is configured to accept the input of a character string and to retrieve the instruction word storage section or the relevant information storage section as the object of retrieval, according to the sequence of the character string whose input has been accepted, and to accept the selection of the instruction word or relevant information from the result of the retrieval. <P>COPYRIGHT: (C)2011,JPO&amp;INPIT

Description

本発明は、複数の被制御機器を連結して多様な機能を実現するプログラマブルコントローラで動作する制御プログラムの作成を支援するプログラム作成支援装置、プログラム作成支援方法及びコンピュータプログラムに関する。   The present invention relates to a program creation support apparatus, a program creation support method, and a computer program that support creation of a control program that operates with a programmable controller that realizes various functions by connecting a plurality of controlled devices.

従来、入出力機器を拡張する入出力ユニット、通信機能を付加する通信ユニット、制御対象となる機器の位置決めを制御する位置決めユニット、温度を調整する温調ユニット等の拡張ユニットを連結して、それぞれの拡張ユニットの動作を制御プログラムにより制御するプログラマブルコントローラが広く使用されている。機能が多様化するのに伴い、各拡張ユニットの動作を制御する制御プログラムは年々大規模化、複雑化してきており、制御プログラムの作成者が取扱う情報量も年々増大している。したがって、制御プログラムのコーディング作業を行う場合、制御プログラムの作成者が有しておくべき知識、有するべき能力等もより高度になってきており、制御プログラムの作成者に依存してコーディング作業を行うだけでは非効率であり、制御プログラムの作成者の負担が過大となる。   Conventionally, I / O units that extend I / O devices, communication units that add communication functions, positioning units that control the positioning of devices to be controlled, and expansion units such as temperature control units that adjust temperature 2. Description of the Related Art A programmable controller that controls the operation of an expansion unit using a control program is widely used. As functions diversify, control programs for controlling the operation of each expansion unit have become larger and more complex year by year, and the amount of information handled by creators of control programs has also increased year by year. Therefore, when the control program coding work is performed, the knowledge that the control program creator should have, the ability to possess, etc. have become more advanced, and the coding work depends on the control program creator. This alone is inefficient, and the burden on the creator of the control program is excessive.

そこで、制御プログラムのコーディング作業を補助する方法として、マニュアルの提供だけでなく、例えば入力するプログラムコードに対する説明文を、コーディングした内容に応じて画面に表示する方法がよく用いられている。また、例えば特許文献1に開示されているように、ラベル、デバイス等を指定し、過去のプログラムコードの入力履歴、所定のデータベース等を検索することにより、コーディングするべき文字列(命令語等)を検索する方法も考えられている。   Therefore, as a method for assisting the coding work of the control program, not only the provision of a manual but also a method of displaying an explanatory text for the input program code on the screen according to the coded content is often used. For example, as disclosed in Patent Document 1, a character string to be coded (command word, etc.) is specified by designating a label, a device, etc., and searching a past program code input history, a predetermined database, etc. A way to search is also considered.

特開平10−083206号公報Japanese Patent Laid-Open No. 10-083206

しかし、上述した特許文献1のように単純に検索対象を拡大しただけでは、検索処理の柔軟度は高まるものの、検索対象が拡大することにより検索時間が増大し、検索結果を絞り込むことが困難になるという問題が生じ、制御プログラムの作成者にとっては円滑なコーディング作業の阻害要因となるおそれがあるという問題点があった。   However, simply expanding the search target as in Patent Document 1 described above increases the flexibility of search processing, but the search time increases due to the expansion of the search target, making it difficult to narrow down the search results. There is a problem that it may become an obstacle to smooth coding work for the creator of the control program.

本発明は斯かる事情に鑑みてなされたものであり、制御プログラムの作成者の負担を軽減し、効率よく制御プログラムの作成を支援することが可能なプログラム作成支援装置、プログラム作成支援方法及びコンピュータプログラムを提供することを目的とする。   The present invention has been made in view of such circumstances. A program creation support apparatus, a program creation support method, and a computer capable of reducing the burden on the creator of the control program and efficiently supporting the creation of the control program. The purpose is to provide a program.

上記目的を達成するために第1発明に係るプログラム作成支援装置は、被制御機器に接続してある拡張ユニット及びCPUユニットで構成してあり、前記被制御機器の動作をシーケンシャル制御するプログラマブルコントローラにおいて実行される制御プログラムの作成を支援するプログラム作成支援装置において、制御プログラムで用いる命令語を記憶する命令語記憶部と、命令語に関連する関連情報を該命令語に対応付けて記憶する関連情報記憶部とを別個に有する記憶手段と、文字列の入力を受け付ける入力受付手段と、入力を受け付けた文字列の順序に応じて、前記命令語記憶部又は前記関連情報記憶部を検索対象として検索する検索手段と、該検索手段での検索結果から前記命令語又は前記関連情報の選択を受け付ける選択受付手段とを備えることを特徴とする。   In order to achieve the above object, a program creation support apparatus according to a first aspect of the present invention comprises an expansion unit and a CPU unit connected to a controlled device, and a programmable controller that sequentially controls the operation of the controlled device. In a program creation support apparatus that supports creation of a control program to be executed, a command word storage unit that stores a command word used in the control program, and related information that stores related information related to the command word in association with the command word Search for the command word storage unit or the related information storage unit as a search target according to the order of the character string that received the input, the input reception unit that receives the input of the character string, and the storage unit that has the storage unit separately And a selection acceptor that accepts selection of the command word or the related information from a search result of the search means. Characterized in that it comprises and.

また、第2発明に係るプログラム作成支援装置は、第1発明において、前記記憶手段は、前記拡張ユニットの種類ごとに前記命令語記憶部又は前記関連情報記憶部を有しており、前記拡張ユニットの種類の指定を受け付ける指定受付手段を備え、前記検索手段は、指定を受け付けた前記拡張ユニットの種類に対応した前記命令語記憶部又は前記関連情報記憶部を検索対象として検索するようにしてあることを特徴とする。   Further, in the program creation support apparatus according to the second invention, in the first invention, the storage means includes the command word storage unit or the related information storage unit for each type of the extension unit, and the extension unit Designation receiving means for accepting designation of the type of the command, and the search means retrieves the command word storage unit or the related information storage unit corresponding to the type of the extension unit that has received the designation as a search target. It is characterized by that.

また、第3発明に係るプログラム作成支援装置は、第1又は第2発明において、前記検索手段は、前記命令語記憶部を検索対象とした場合に検索した命令語をキー情報として、前記関連情報記憶部を検索するようにしてあることを特徴とする。   The program creation support apparatus according to a third aspect of the present invention is the program creation support apparatus according to the first or second aspect, wherein the search means uses the command word searched when the command word storage unit is a search target as the key information, and the related information The storage unit is searched.

また、第4発明に係るプログラム作成支援装置は、第1乃至第3発明のいずれか1つにおいて、前記被制御機器に接続した前記拡張ユニットに記憶してある、前記拡張ユニットに固有の命令語及び関連情報を、前記CPUユニットに複写して記憶する情報複写手段と、入力を受け付けた文字列に応じて、前記拡張ユニットに記憶してある命令語及び関連情報か、前記CPUユニットに複写して記憶してある命令語及び関連情報か、いずれかを検索対象として選択する検索対象選択手段を備えることを特徴とする。   According to a fourth aspect of the present invention, there is provided a program creation support device according to any one of the first to third aspects, wherein the instruction word is stored in the extension unit connected to the controlled device and is specific to the extension unit. And information copying means for copying and storing the related information in the CPU unit, and copying the instruction word and related information stored in the expansion unit to the CPU unit according to the character string received. Search target selection means for selecting either the stored instruction word or related information as a search target is provided.

また、第5発明に係るプログラム作成支援装置は、第1乃至第4発明のいずれか1つにおいて、前記制御プログラムにおいて用いられる命令語の使用率を算出する使用率算出手段と、算出した使用率に基づいて検索結果を分類する分類手段とを備えることを特徴とする。   According to a fifth aspect of the present invention, there is provided a program creation support apparatus according to any one of the first to fourth aspects of the present invention, a usage rate calculating means for calculating a usage rate of an instruction word used in the control program, and a calculated usage rate. And classifying means for classifying search results based on the search results.

また、第6発明に係るプログラム作成支援装置は、第5発明において、入力を受け付けた文字列を履歴情報として記憶する履歴情報記憶手段を備え、前記分類手段は、記憶してある前記履歴情報を優先して分類するようにしてあることを特徴とする。   According to a sixth aspect of the present invention, there is provided a program creation support apparatus according to the fifth aspect of the invention, further comprising history information storage means for storing the input character string as history information, wherein the classification means stores the stored history information. It is characterized by prioritizing classification.

また、第7発明に係るプログラム作成支援装置は、第1乃至第6発明のいずれか1つにおいて、文字列の入力を受け付けるインターバルを検出する入力インターバル検出手段と、検出したインターバルが一定時間を超えたか否かを判断する入力インターバル判断手段とを備え、該入力インターバル判断手段で一定時間を超えたと判断した場合、前記検索手段に検索を開始させるようにしてあることを特徴とする。   According to a seventh aspect of the present invention, there is provided the program creation support device according to any one of the first to sixth aspects, wherein the input interval detecting means detects an interval for accepting input of a character string, and the detected interval exceeds a predetermined time. Input interval determining means for determining whether or not the input interval determining means determines that a predetermined time has been exceeded, and the search means starts searching.

また、第8発明に係るプログラム作成支援装置は、第1乃至第7発明のいずれか1つにおいて、前記検索手段は、部分一致検索又はあいまい検索を行うようにしてあることを特徴とする。   According to an eighth aspect of the present invention, there is provided the program creation support apparatus according to any one of the first to seventh aspects, wherein the search means performs partial match search or fuzzy search.

次に、上記目的を達成するために第9発明に係るプログラム作成支援方法は、被制御機器に接続してある拡張ユニット及びCPUユニットで構成してあり、前記被制御機器の動作をシーケンシャル制御するプログラマブルコントローラにおいて実行される制御プログラムの作成を支援するプログラム作成支援装置で実行することが可能なプログラム作成支援方法において、前記プログラム作成支援装置は、制御プログラムで用いる命令語と、該命令語に対応付けた命令語に関連する関連情報とを別個に記憶し、文字列の入力を受け付け、入力を受け付けた文字列の順序に応じて、前記命令語又は前記関連情報を検索対象として検索し、検索結果から前記命令語又は前記関連情報の選択を受け付けることを特徴とする。   Next, in order to achieve the above object, a program creation support method according to the ninth aspect of the present invention comprises an extension unit and a CPU unit connected to a controlled device, and sequentially controls the operation of the controlled device. In a program creation support method that can be executed by a program creation support apparatus that supports creation of a control program executed in a programmable controller, the program creation support apparatus corresponds to an instruction word used in a control program, and the instruction word The related information related to the attached instruction word is stored separately, the input of the character string is accepted, and the instruction word or the related information is searched as a search target according to the order of the character string received the input, and the search The selection of the command word or the related information is received from the result.

次に、上記目的を達成するために第10発明に係るコンピュータプログラムは、被制御機器に接続してある拡張ユニット及びCPUユニットで構成してあり、前記被制御機器の動作をシーケンシャル制御するプログラマブルコントローラにおいて実行される制御プログラムの作成を支援するプログラム作成支援装置で実行することが可能なコンピュータプログラムにおいて、前記プログラム作成支援装置は、制御プログラムで用いる命令語を記憶する命令語記憶部と、命令語に関連する関連情報を該命令語に対応付けて記憶する関連情報記憶部とを別個に有しており、前記プログラム作成支援装置を、文字列の入力を受け付ける入力受付手段、入力を受け付けた文字列の順序に応じて、前記命令語記憶部又は前記関連情報記憶部を検索対象として検索する検索手段、及び該検索手段での検索結果から前記命令語又は前記関連情報の選択を受け付ける選択受付手段として機能させることを特徴とする。   Next, in order to achieve the above object, a computer program according to a tenth aspect of the present invention comprises an expansion unit and a CPU unit connected to a controlled device, and a programmable controller that sequentially controls the operation of the controlled device. In a computer program that can be executed by a program creation support apparatus that supports creation of a control program executed in the program, the program creation support apparatus includes an instruction word storage unit that stores an instruction word used in the control program, and an instruction word And a related information storage unit that stores the related information related to the instruction word in association with the command word, and the program creation support device includes an input receiving unit that receives an input of a character string, and a character that has received the input Depending on the order of the columns, the instruction word storage unit or the related information storage unit is a search target. Retrieval means for retrieving Te, and characterized in that to function as selection receiving means from the search results for the search unit receives a selection of the command or the related information.

また、第11発明に係るコンピュータプログラムは、第10発明において、前記記憶手段は、前記拡張ユニットの種類ごとに前記命令語記憶部又は前記関連情報記憶部を有しており、前記プログラム作成支援装置を、前記拡張ユニットの種類の指定を受け付ける指定受付手段として機能させ、前記検索手段を、指定を受け付けた前記拡張ユニットの種類に対応した前記命令語記憶部又は前記関連情報記憶部を検索対象として検索する手段として機能させることを特徴とする。   According to an eleventh aspect of the present invention, in the computer program according to the tenth aspect, the storage means includes the instruction word storage unit or the related information storage unit for each type of the extension unit, and the program creation support device Functioning as a designation accepting unit that accepts designation of the type of the extension unit, and the search unit uses the command word storage unit or the related information storage unit corresponding to the type of the extension unit that has accepted the designation as a search target. It functions as a means for searching.

また、第12発明に係るコンピュータプログラムは、第10又は第11発明において、前記検索手段を、前記命令語記憶部を検索対象とした場合に検索した命令語をキー情報として、前記関連情報記憶部を検索する手段として機能させることを特徴とする。   The computer program according to a twelfth aspect of the present invention is the computer program according to the tenth or eleventh aspect, wherein the search means uses the instruction word searched when the instruction word storage unit is a search target as key information, and the related information storage unit It is made to function as a means to search.

また、第13発明に係るコンピュータプログラムは、第10乃至第12発明のいずれか1つにおいて、前記プログラム作成支援装置を、前記被制御機器に接続した前記拡張ユニットに記憶してある、前記拡張ユニットに固有の命令語及び関連情報を、前記CPUユニットに複写して記憶する情報複写手段、及び入力を受け付けた文字列に応じて、前記拡張ユニットに記憶してある命令語及び関連情報か、前記CPUユニットに複写して記憶してある命令語及び関連情報か、いずれかを検索対象として選択する検索対象選択手段として機能させることを特徴とする。   A computer program according to a thirteenth invention is the extension unit according to any one of the tenth to twelfth inventions, wherein the program creation support device is stored in the extension unit connected to the controlled device. The instruction word and the related information unique to the information unit for copying and storing the CPU unit in the CPU unit, and the instruction word and the related information stored in the expansion unit according to the character string received the input, It is made to function as a search object selection means for selecting either a command word and related information copied and stored in the CPU unit as a search object.

また、第14発明に係るコンピュータプログラムは、第10乃至第13発明のいずれか1つにおいて、前記プログラム作成支援装置を、前記制御プログラムにおいて用いられる命令語の使用率を算出する使用率算出手段、及び算出した使用率に基づいて検索結果を分類する分類手段として機能させることを特徴とする。   A computer program according to a fourteenth aspect of the present invention is the computer program product according to any one of the tenth to thirteenth aspects, wherein the program creation support device calculates a usage rate calculation means for calculating a usage rate of an instruction word used in the control program, And a function of classifying search results based on the calculated usage rate.

また、第15発明に係るコンピュータプログラムは、第10乃至第14発明のいずれか1つにおいて、前記プログラム作成支援装置を、文字列の入力を受け付けるインターバルを検出する入力インターバル検出手段、検出したインターバルが一定時間を超えたか否かを判断する入力インターバル判断手段、及び該入力インターバル判断手段で一定時間を超えたと判断した場合、前記検索手段に検索を開始させる手段として機能させることを特徴とする。   A computer program according to a fifteenth aspect of the present invention is the computer program according to any one of the tenth to fourteenth aspects, wherein the program creation support apparatus is configured to detect an input interval detecting unit that detects an interval for receiving an input of a character string. An input interval judging means for judging whether or not a predetermined time has been exceeded, and when the input interval judging means judges that the predetermined time has been exceeded, the search means functions as a means for starting a search.

第1発明、第9発明及び第10発明では、制御プログラムで用いる命令語と、該命令語に対応付けた命令語に関連する関連情報とを別個に記憶しておく。制御プログラムのコーディング作業時に文字列の入力を受け付け、入力を受け付けた文字列の順序に応じて、命令語又は関連情報を検索対象として検索し、検索結果から命令語又は関連情報の選択を受け付ける。これにより、入力を受け付けた文字列のうち、例えば一番目の文字列については命令語を検索対象として候補となる文字列を検索し、二番目以降の文字列については命令語の引数、文法情報等の関連情報を検索対象として候補となる文字列を検索し、検索結果から命令語又は関連情報それぞれの選択を受け付けることができ、制御プログラムの作成者が、正確に命令語に関する知識を有していない場合であっても、正しい命令語及び関連情報を正しい文法に従って記載することを支援することが可能となる。   In the first invention, the ninth invention, and the tenth invention, the instruction word used in the control program and the related information related to the instruction word associated with the instruction word are stored separately. A character string input is received during coding of the control program, a command word or related information is searched as a search target according to the order of the character string received, and a command word or related information is selected from the search result. As a result, among the character strings accepted, for example, the first character string is searched for a candidate character string with the command word as a search target, and the command string argument and grammar information are searched for the second and subsequent character strings. Search for candidate character strings using the related information as search targets, and accept the selection of each command word or related information from the search result. The creator of the control program has the knowledge about the command word accurately. Even if not, it is possible to support the description of correct command words and related information according to correct grammar.

第2発明及び第11発明では、拡張ユニットの種類ごとに命令語又は命令語の関連情報を記憶しておき、拡張ユニットの種類の指定を受け付けることにより、指定を受け付けた拡張ユニットの種類に対応した命令語又は関連情報を検索対象として検索する。これにより、プログラマブルコントローラに接続した被制御機器の動作を制御する拡張ユニットの種類ごとに、対応する命令語又は関連情報を検索することができ、制御プログラムの作成者が、動作を制御する拡張ユニットごとに正確に命令語に関する知識を有していない場合であっても、正しい命令語及び関連情報を正しい文法に従って記載することを支援することが可能となる。   In the second and eleventh inventions, the instruction word or the related information of the instruction word is stored for each type of the extension unit, and the specification of the type of the extension unit is accepted by accepting the specification of the type of the extension unit. The searched instruction word or related information is searched as a search target. As a result, for each type of extension unit that controls the operation of the controlled device connected to the programmable controller, the corresponding command word or related information can be searched, and the control program creator controls the extension unit. Even when the user does not have accurate knowledge about the command word, it is possible to support the description of the correct command word and related information according to the correct grammar.

第3発明及び第12発明では、検索した命令語をキー情報として関連情報を検索することにより、検索時間を短縮することができるとともに、検索処理負荷を軽減することが可能となる。   In the third and twelfth inventions, by searching related information using the searched instruction word as key information, the search time can be shortened and the search processing load can be reduced.

第4発明及び第13発明では、被制御機器に接続した拡張ユニットに記憶してある、拡張ユニットに固有の命令語及び関連情報を、CPUユニットに複写して記憶しておく。入力を受け付けた文字列に応じて、拡張ユニットに記憶してある命令語及び関連情報か、CPUユニットに複写して記憶してある命令語及び関連情報か、いずれかを検索対象として選択する。これにより、命令語の機能に応じて、被制御機器の動作を制御する拡張ユニットに記憶してある命令語及び関連情報を検索対象とするか、CPUユニットに複写して記憶してある命令語及び関連情報を検索対象とするかを選択することができ、検索処理をより高速に実行することが可能となる。   In the fourth and thirteenth inventions, the instruction word and related information specific to the extension unit, which are stored in the extension unit connected to the controlled device, are copied and stored in the CPU unit. Either a command word and related information stored in the extension unit or a command word and related information copied and stored in the CPU unit is selected as a search target according to the character string received. As a result, depending on the function of the instruction word, the instruction word and related information stored in the expansion unit that controls the operation of the controlled device can be searched, or the instruction word copied and stored in the CPU unit. In addition, it is possible to select whether or not to search for related information, and the search process can be executed at higher speed.

第5発明及び第14発明では、制御プログラムにおいて用いられる命令語の使用率を算出し、算出した使用率に基づいて検索結果を分類する。これにより、制御プログラム中で頻繁に用いられている命令語から順に検索結果を表示することができ、制御プログラムの作成者の命令語の使用頻度に即した制御プログラムの作成支援をすることが可能となる。   In the fifth invention and the fourteenth invention, the usage rate of the instruction word used in the control program is calculated, and the search results are classified based on the calculated usage rate. As a result, the search results can be displayed in order from the command words that are frequently used in the control program, and it is possible to support the creation of the control program according to the frequency of use of the command words of the control program creator. It becomes.

第6発明では、入力を受け付けた文字列を履歴情報として記憶しておき、記憶してある履歴情報を優先して分類することにより、検索結果として、過去に用いられた命令語及び関連情報を優先して表示することができ、制御プログラムの作成者の命令語及び関連情報の使用状況に即した制御プログラムの作成支援をすることが可能となる。   In the sixth aspect of the invention, the character string that has received the input is stored as history information, and the stored history information is preferentially classified, so that the command word and related information used in the past can be obtained as a search result. It is possible to display with priority, and it is possible to support the creation of a control program in accordance with the usage status of the command word and related information of the creator of the control program.

第7発明及び第15発明では、文字列の入力を受け付けるインターバルを検出し、検出したインターバルが一定時間を超えた場合に検索を開始させる。これにより、命令語等の入力を受け付けた後、一定時間以上経過した時点で検索することができ、制御プログラムの作成者が次に入力するべき文字列に迷った場合等に適切なタイミングで検索結果を表示することで、作成者の入力処理に即した制御プログラムの作成支援をすることが可能となる。   In the seventh and fifteenth inventions, an interval for accepting input of a character string is detected, and a search is started when the detected interval exceeds a certain time. As a result, it is possible to search when a certain time or more has elapsed after accepting the input of an instruction word, etc., and search at an appropriate timing when the creator of the control program is at a loss for the next character string to be input. By displaying the result, it becomes possible to support the creation of a control program in accordance with the creator's input process.

第8発明では、部分一致検索又はあいまい検索を行うことにより、入力を受け付けた文字列が誤った文字列である場合、一部しか文字列が明確ではない場合等であっても、確実な命令語及び関連情報を表示することが可能となる。   In the eighth invention, by performing a partial match search or a fuzzy search, a reliable command can be obtained even if the input character string is an incorrect character string, or only a part of the character string is unclear. Words and related information can be displayed.

上記構成によれば、入力を受け付けた文字列のうち、例えば一番目の文字列については命令語を検索対象として候補となる文字列を検索し、二番目以降の文字列については命令語の引数、文法情報等の関連情報を検索対象として候補となる文字列を検索し、検索結果から命令語又は関連情報それぞれの選択を受け付けることができ、制御プログラムの作成者が、正確に命令語に関する知識を有していない場合であっても、正しい命令語及び関連情報を正しい文法に従って記載することを支援することが可能となる。   According to the above configuration, for example, for the first character string, the candidate character string is searched for the command word as a search target, and the command string argument is used for the second and subsequent character strings. Search for candidate character strings using related information such as grammatical information as a search target, and accept selection of each command word or related information from the search results. Even if it does not have, it is possible to support writing the correct command word and related information according to the correct grammar.

本発明の実施の形態1に係るプログラム作成支援装置により制御プログラムの作成支援対象となるプログラマブルコントローラの構成を示す模式図である。It is a schematic diagram which shows the structure of the programmable controller used as the creation assistance object of a control program by the program creation assistance apparatus which concerns on Embodiment 1 of this invention. 本発明の実施の形態1に係るプログラム作成支援装置を、CPU等の制御部を用いて構成した場合の構成を示すブロック図である。It is a block diagram which shows the structure at the time of comprising the program creation assistance apparatus which concerns on Embodiment 1 of this invention using control parts, such as CPU. 本発明の実施の形態1に係るプログラム作成支援装置の機能を示す機能ブロック図である。It is a functional block diagram which shows the function of the program creation assistance apparatus which concerns on Embodiment 1 of this invention. 入力を受け付ける文字列の例示図である。It is an illustration figure of the character string which receives an input. 本発明の実施の形態1に係るプログラム作成支援装置の入力インターバル判断処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the input interval judgment process of the program creation assistance apparatus which concerns on Embodiment 1 of this invention. 本発明の実施の形態1に係るプログラム作成支援装置の拡張ユニットの種類と命令語記憶部に相当する検索対象ファイルとの関係を示す例示図である。It is an illustration figure which shows the relationship between the kind of extension unit of the program creation assistance apparatus which concerns on Embodiment 1 of this invention, and the search object file corresponded to an instruction word memory | storage part. 本発明の実施の形態1に係るプログラム作成支援装置の候補文字列選択処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the candidate character string selection process of the program creation assistance apparatus which concerns on Embodiment 1 of this invention. ラダー形式の制御プログラムにおいて、命令語をキー情報として検索された候補文字列が表示された画面の例示図である。It is an illustration figure of the screen on which the candidate character string searched using the instruction word as key information in the control program of the ladder format was displayed. 本発明の実施の形態1に係るプログラム作成支援装置の制御部の候補文字列の使用率に基づく分類処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the classification process based on the utilization rate of the candidate character string of the control part of the program creation assistance apparatus which concerns on Embodiment 1 of this invention. ラダー形式の制御プログラムにおいて、関連情報をキー情報として検索された候補文字列が表示された画面の例示図である。It is an illustration figure of the screen on which the candidate character string searched using related information as key information was displayed in the control program of the ladder format. 本発明の実施の形態2に係るプログラム作成支援装置の機能を示す機能ブロック図である。It is a functional block diagram which shows the function of the program creation assistance apparatus which concerns on Embodiment 2 of this invention. 本発明の実施の形態2に係る命令語記憶部及び関連情報記憶部の複写処理を示す模式図である。It is a schematic diagram which shows the copy process of the command word memory | storage part and related information memory | storage part which concern on Embodiment 2 of this invention.

以下、本発明の実施の形態に係るプログラム作成支援装置について、図面に基づいて具体的に説明する。   Hereinafter, a program creation support apparatus according to an embodiment of the present invention will be specifically described with reference to the drawings.

(実施の形態1)
図1は、本発明の実施の形態1に係るプログラム作成支援装置により制御プログラムの作成支援対象となるプログラマブルコントローラの構成を示す模式図である。図1に示すように、プログラマブルコントローラ1は、CPUユニット2と、機能ごとに独立した複数の拡張ユニット3、3、・・・とで構成されている。拡張ユニット3a、3b、・・・には、機能ごとに動作を制御する対象となる被制御機器5、5、・・・が接続してあり、CPUユニット2からの指令に従って各被制御機器5の動作を制御する。
(Embodiment 1)
FIG. 1 is a schematic diagram showing a configuration of a programmable controller that is a support for creating a control program by the program creation support apparatus according to Embodiment 1 of the present invention. As shown in FIG. 1, the programmable controller 1 includes a CPU unit 2 and a plurality of expansion units 3, 3,. Are connected to controlled devices 5, 5,... To be controlled for each function, and each controlled device 5 is controlled according to a command from the CPU unit 2. To control the operation.

CPUユニット2は、内蔵するメモリ21に記憶してある制御プログラムに従って、接続してある拡張ユニット3a、3b、・・・に対して指令を送出するCPUを備えている。また、拡張ユニット3a、3b、・・・は、CPUユニット2からの指令に従って、接続してある被制御機器5、5、・・・の動作を制御する。なお、被制御機器5、5、・・・の動作を制御するためのパラメータ情報等は、拡張ユニット3a、3b、・・・が内蔵するメモリ31a、31b、・・・に記憶してある。   The CPU unit 2 includes a CPU that sends commands to the connected expansion units 3a, 3b,... According to a control program stored in the built-in memory 21. Further, the expansion units 3a, 3b,... Control the operation of the connected controlled devices 5, 5,. The parameter information for controlling the operation of the controlled devices 5, 5,... Is stored in the memories 31a, 31b,.

プログラム作成支援装置4は、CPUユニット2とデータ通信することが可能に接続してあり、作成した制御プログラムをCPUユニット2へ送信する。図2は、本発明の実施の形態1に係るプログラム作成支援装置4を、CPU等の制御部を用いて構成した場合の構成を示すブロック図である。   The program creation support apparatus 4 is connected so as to be able to perform data communication with the CPU unit 2, and transmits the created control program to the CPU unit 2. FIG. 2 is a block diagram showing a configuration when the program creation support apparatus 4 according to Embodiment 1 of the present invention is configured using a control unit such as a CPU.

図2に示すように本実施の形態1に係るプログラム作成支援装置4は、少なくとも制御部(CPU)41、メモリ42、ハードディスク等の記憶装置43、I/Oインタフェース44、ビデオインタフェース45、通信インタフェース46、可搬型ディスクドライブ47及び上述したハードウェアを接続する内部バス48で構成されている。   As shown in FIG. 2, the program creation support apparatus 4 according to the first embodiment includes at least a control unit (CPU) 41, a memory 42, a storage device 43 such as a hard disk, an I / O interface 44, a video interface 45, and a communication interface. 46, a portable disk drive 47, and an internal bus 48 for connecting the hardware described above.

制御部41は、内部バス48を介してプログラム作成支援装置4の上述したようなハードウェア各部と接続されており、上述したハードウェア各部の動作を制御するとともに、記憶装置43に記憶しているコンピュータプログラム100に従って、種々のソフトウェア的機能を実行する。メモリ42は、SRAM、SDRAM等の揮発性メモリで構成され、コンピュータプログラム100の実行時にロードモジュールが展開され、コンピュータプログラム100の実行時に発生する一時的なデータ等を記憶する。   The control unit 41 is connected to each hardware unit as described above of the program creation support apparatus 4 via the internal bus 48, and controls the operation of each hardware unit described above and stores it in the storage device 43. Various software functions are executed according to the computer program 100. The memory 42 is composed of a volatile memory such as SRAM or SDRAM, and a load module is expanded when the computer program 100 is executed, and stores temporary data generated when the computer program 100 is executed.

記憶装置43は、内蔵される固定型記憶装置(ハードディスク)、ROM等で構成されている。記憶装置43に記憶しているコンピュータプログラム100は、プログラム及びデータ等の情報を記録したDVD、CD−ROM等の可搬型記録媒体90から、可搬型ディスクドライブ47によりダウンロードされ、実行時には記憶装置43からメモリ42へ展開して実行される。もちろん、通信インタフェース46を介してネットワークに接続されている外部のコンピュータからダウンロードされたコンピュータプログラムであっても良い。   The storage device 43 includes a built-in fixed storage device (hard disk), a ROM, and the like. The computer program 100 stored in the storage device 43 is downloaded by a portable disk drive 47 from a portable recording medium 90 such as a DVD or CD-ROM in which information such as programs and data is recorded. To the memory 42 and executed. Of course, a computer program downloaded from an external computer connected to the network via the communication interface 46 may be used.

また記憶装置43は、命令語記憶部431及び関連情報記憶部432を備えている。命令語記憶部431は、拡張ユニット3a、3b、・・・に接続してある被制御機器5、5、・・・の操作を指示する命令語(コマンド)を、被制御機器5、5、・・・が接続してある拡張ユニット3a、3b、・・・に対応付けて記憶してある。したがって、制御プログラムの作成時に入力を受け付けた文字列をキー情報として命令語記憶部431を検索することにより、選択候補となる命令語を抽出することが可能となる。   The storage device 43 includes an instruction word storage unit 431 and a related information storage unit 432. The command word storage unit 431 displays command words (commands) for instructing operations of the controlled devices 5, 5,... Connected to the expansion units 3 a, 3 b,. Are associated with the expansion units 3a, 3b,. Therefore, it is possible to extract a command word as a selection candidate by searching the command word storage unit 431 using the character string received as input when creating the control program as key information.

関連情報記憶部432は、命令語に対応付けて、命令語に関連する関連情報を記憶する。記憶する関連情報とは、例えば命令語に対応した、命令語の文法に関する情報、構文に関する情報、引数に関する情報等、命令語を機能させるために必要な関連情報全般である。履歴情報記憶部433は、後述する入力受付部にて入力を受け付けた文字列の履歴を、履歴情報として記憶する。   The related information storage unit 432 stores related information related to the command word in association with the command word. The related information to be stored is, for example, all the related information necessary to make the instruction word function, such as information on the grammar of the instruction word, information on the syntax, information on the argument, etc. corresponding to the instruction word. The history information storage unit 433 stores the history of the character string received by the input receiving unit described later as history information.

I/Oインタフェース44は、キーボード441、マウス442等の入力装置と接続され、データの入力を受け付ける。また、ビデオインタフェース45は、CRTモニタ、LCD等の表示装置451と接続され、所定の画像を表示する。   The I / O interface 44 is connected to input devices such as a keyboard 441 and a mouse 442 and receives data input. The video interface 45 is connected to a display device 451 such as a CRT monitor or LCD, and displays a predetermined image.

通信インタフェース46は内部バス48に接続されており、インターネット、LAN、WAN等の外部のネットワークに接続されることにより、外部のコンピュータ等とデータ送受信することが可能となっている。また、通信線を介してCPUユニット2へデータ送受信することが可能となっている。   The communication interface 46 is connected to an internal bus 48, and is connected to an external network such as the Internet, a LAN, or a WAN, so that data can be transmitted / received to / from an external computer or the like. In addition, data can be transmitted / received to / from the CPU unit 2 via a communication line.

図3は、本発明の実施の形態1に係るプログラム作成支援装置4の機能を示す機能ブロック図である。図3において、入力受付部301は、キーボード441、マウス442等の入力装置を用いて、命令語を含む制御プログラムのソースコードの入力を受け付ける。図4は、入力を受け付ける文字列の例示図である。   FIG. 3 is a functional block diagram showing functions of the program creation support apparatus 4 according to Embodiment 1 of the present invention. In FIG. 3, an input receiving unit 301 receives input of a source code of a control program including an instruction word using an input device such as a keyboard 441 and a mouse 442. FIG. 4 is an exemplary diagram of a character string that accepts input.

本実施の形態1では、表示装置451の文字列入力領域401に文字列の入力を受け付ける。本実施の形態1では、制御プログラムはいわゆるラダー形式のプログラムであり、最初の文字列は命令語である。例えば図4(a)に示すように、文字列入力領域401に一の文字列「COMMAND」の入力を受け付けた場合、プログラム作成支援装置4の制御部41は、文字列「COMMAND」が命令語に関する文字列であると判断する。   In the first embodiment, input of a character string is accepted in the character string input area 401 of the display device 451. In the first embodiment, the control program is a so-called ladder format program, and the first character string is an instruction word. For example, as shown in FIG. 4A, when the input of one character string “COMMAND” is received in the character string input area 401, the control unit 41 of the program creation support device 4 determines that the character string “COMMAND” is an instruction word. It is determined that it is a character string.

また、図4(b)に示すように、文字列入力領域401に複数の文字列「COMMAND A1 A2・・・」の入力を受け付けた場合、プログラム作成支援装置4の制御部41は、空白(スペース)の存在を検出し、最初の空白までの文字列「COMMAND」が命令語に関する文字列であると判断する。また、空白により二番目の文字列「A1」、三番目の文字列「A2」、・・・というように順次文字列を特定することにより、それぞれの文字列が命令語の関連情報に関する文字列であることを順次判断することができる。   As shown in FIG. 4B, when a plurality of character strings “COMMAND A1 A2...” Are received in the character string input area 401, the control unit 41 of the program creation support device 4 is blank ( The presence of a space) is detected, and it is determined that the character string “COMMAND” up to the first blank is a character string related to the instruction word. Further, by sequentially specifying character strings such as a second character string “A1”, a third character string “A2”,... By a blank, each character string is a character string related to instruction word related information. It can be judged sequentially.

例えば図3に示すように入力位置判定部311は、入力を受け付けた文字列中の空白の存在を検出し、それぞれ何文字目から何文字目までが何番目の文字列であるのか位置を判定する。そして、文字列判定部312は、それぞれの位置における文字列がどの命令語、どの関連情報であるかを判定することにより、判定された命令語に関する文字列、関連情報に関する文字列を、それぞれ命令語記憶部431、関連情報記憶部432と照会するためのキー情報とすることができる。   For example, as shown in FIG. 3, the input position determination unit 311 detects the presence of a blank in the character string that has been input, and determines the position from what character to what character each character string is. To do. Then, the character string determination unit 312 determines which command word and which related information the character string at each position is, so that the character string related to the determined command word and the character string related to the related information are respectively sent to the command string. It can be used as key information for referring to the word storage unit 431 and the related information storage unit 432.

もちろん、空白の存在を検出することにより、文字列の位置を判定する方法に限定されるものではなく、命令語の文法に応じて変更することができる。例えば図4(c)に示すように、文字列入力領域401に文字列「COMMAND(A1、A2、・・・)」の入力を受け付けた場合、プログラム作成支援装置4の制御部41は、括弧を検出してから括弧で囲まれている範囲内でカンマを検出して文字列の位置を判定することになる。   Of course, it is not limited to the method of determining the position of the character string by detecting the presence of a blank, but can be changed according to the grammar of the instruction word. For example, as shown in FIG. 4C, when the input of the character string “COMMAND (A1, A2,...)” Is received in the character string input area 401, the control unit 41 of the program creation support device 4 The position of the character string is determined by detecting a comma within the range enclosed in parentheses after detecting.

また、文字列の入力の受付が終了したか否かを、入力を受け付けるインターバルで判断しても良い。図5は、本発明の実施の形態1に係るプログラム作成支援装置4の入力インターバル判断処理の手順を示すフローチャートである。   Further, whether or not acceptance of input of a character string has ended may be determined at an interval of accepting input. FIG. 5 is a flowchart showing a procedure of input interval determination processing of the program creation support apparatus 4 according to Embodiment 1 of the present invention.

図5に示すように、プログラム作成支援装置4の制御部41は、キーボード441のキーイン操作の監視を開始する(ステップS501)。制御部41は、キーイン操作の開始を検知し(ステップS502)、同時に内蔵しているタイマ等を用いて計時を開始する(ステップS503)。   As shown in FIG. 5, the control unit 41 of the program creation support apparatus 4 starts monitoring the key-in operation of the keyboard 441 (step S501). The control unit 41 detects the start of the key-in operation (step S502), and simultaneously starts time measurement using a built-in timer or the like (step S503).

制御部41は、一定時間経過したか否かを判断し(ステップS504)、制御部41が、一定時間経過していないと判断した場合(ステップS504:NO)、制御部41は、新たなキーイン操作を検知したか否かを判断する(ステップS505)。制御部41が、新たなキーイン操作を検知したと判断した場合(ステップS505:YES)、制御部41は、キーイン操作が継続していると判断し、計時をリセット(タイマをゼロリセット)し(ステップS506)、処理をステップS504へ戻す。   The control unit 41 determines whether or not a certain time has elapsed (step S504). If the control unit 41 determines that the certain time has not elapsed (step S504: NO), the control unit 41 performs a new key-in. It is determined whether an operation has been detected (step S505). When the control unit 41 determines that a new key-in operation has been detected (step S505: YES), the control unit 41 determines that the key-in operation continues and resets the time measurement (timer resets to zero) ( In step S506), the process returns to step S504.

制御部41が、新たなキーイン操作を検知していないと判断した場合(ステップS505:NO)、制御部41は、処理をステップS504へ戻す。制御部41が、一定時間経過したと判断した場合(ステップS504:YES)、制御部41は、キーイン操作の終了を検知する(ステップS507)。すなわち、図3の機能ブロック図において、キーイン操作の開始から終了までのインターバルを検出する入力インターバル検出部313、及び検出したインターバルが一定時間を超えているか否かを判断する入力インターバル判断部314として機能する。   When the control unit 41 determines that a new key-in operation has not been detected (step S505: NO), the control unit 41 returns the process to step S504. When the control unit 41 determines that a certain time has elapsed (step S504: YES), the control unit 41 detects the end of the key-in operation (step S507). That is, in the functional block diagram of FIG. 3, as an input interval detector 313 that detects an interval from the start to the end of a key-in operation, and an input interval determiner 314 that determines whether or not the detected interval exceeds a certain time. Function.

図3に戻って、検索部302は、入力を受け付けた文字列について、まず命令語をキー情報として命令語記憶部431を検索し、選択候補となる命令語を抽出して表示装置451に表示する。本実施の形態1では、最初の文字列が命令語であることから、最初の文字列をキー情報として命令語記憶部431を検索する。命令語記憶部431の検索は、完全一致検索であっても良いが、特にこれに限定されるものではなく、あいまい検索、部分一致検索であっても良いことは言うまでもない。   Returning to FIG. 3, the search unit 302 first searches the command word storage unit 431 using the command word as key information for the input character string, extracts a command word as a selection candidate, and displays the command word on the display device 451. To do. In the first embodiment, since the first character string is an instruction word, the instruction word storage unit 431 is searched using the first character string as key information. The search in the instruction word storage unit 431 may be a complete match search, but is not particularly limited to this, and needless to say, it may be a fuzzy search or a partial match search.

次に、命令語の次の文字列をキー情報として、関連情報記憶部432を検索し、選択候補となる関連情報を抽出して表示装置451に表示する。本実施の形態1では、最初の文字列が命令語であることから、二番目以降の文字列をキー情報とした場合には関連情報記憶部432を検索する。関連情報記憶部432の検索は、完全一致検索であっても良いが、特にこれに限定されるものではなく、あいまい検索、部分一致検索であっても良いことは言うまでもない。   Next, the related information storage unit 432 is searched using the next character string of the command word as key information, and related information that is a selection candidate is extracted and displayed on the display device 451. In the first embodiment, since the first character string is an instruction word, the related information storage unit 432 is searched when the second and subsequent character strings are used as key information. The search in the related information storage unit 432 may be a complete match search, but is not particularly limited to this, and needless to say, it may be a fuzzy search or a partial match search.

なお、命令語の種類は、被制御機器5の種類ごと、すなわちCPUユニット2に接続してある拡張ユニット3の種類ごとに特定される。したがって、被制御機器5の種類、すなわち被制御機器5の動作を制御する拡張ユニット3の種類に対応付けてそれぞれ別個に複数の命令語記憶部431、431、・・・及び関連情報記憶部432、432、・・・に記憶しておくことで、検索対象を事前に絞り込むことができ、検索処理負荷を軽減することができる。   The type of instruction word is specified for each type of controlled device 5, that is, for each type of extension unit 3 connected to the CPU unit 2. Therefore, a plurality of command word storage units 431, 431,... And a related information storage unit 432 are separately associated with the type of the controlled device 5, that is, the type of the expansion unit 3 that controls the operation of the controlled device 5. 432,... Can be narrowed down in advance and the search processing load can be reduced.

例えば指定受付部306を別個に備えておき、制御プログラムで動作を制御する対象となる拡張ユニット3の種類の指定を受け付ける。もちろん、拡張ユニット3が動作を直接制御する被制御機器5の種類の指定を受け付けても良い。検索部302は、指定を受け付けた拡張ユニット3の種類に応じて、検索対象となる命令語記憶部431又は関連情報記憶部432を抽出する。検索部302は、抽出した命令語記憶部431又は関連情報記憶部432を検索対象として検索する。   For example, a designation accepting unit 306 is provided separately, and designation of the type of the extension unit 3 whose operation is controlled by the control program is accepted. Of course, the designation of the type of the controlled device 5 for which the expansion unit 3 directly controls the operation may be accepted. The search unit 302 extracts the command word storage unit 431 or the related information storage unit 432 to be searched according to the type of the extension unit 3 that has received the designation. The search unit 302 searches the extracted instruction word storage unit 431 or the related information storage unit 432 as a search target.

図6は、本発明の実施の形態1に係るプログラム作成支援装置4の拡張ユニット3の種類と命令語記憶部431に相当する検索対象ファイルとの関係を示す例示図である。図6に示すように拡張ユニット3の種類と拡張ユニットIDとを対応付けて記憶してあり、拡張ユニットIDごとに検索対象となる検索対象ファイルが対応付けて記憶してある。このようなデータ構成としておくことにより、拡張ユニット3の種類の指定を受け付けた時点で、検索対象ファイルを特定することができる。もちろん、拡張ユニット3をCPUユニット2に新たに接続した時点で、CPUユニット2が自動的にシステム構成を確認し、拡張ユニット3の種類に関する情報を自動的に取得しても良いことは言うまでもない。この場合、拡張ユニット3の種類の指定を受け付けることなく、検索対象ファイルを特定することが可能となる。   FIG. 6 is an exemplary diagram showing the relationship between the type of the extension unit 3 of the program creation support apparatus 4 according to Embodiment 1 of the present invention and the search target file corresponding to the command word storage unit 431. As shown in FIG. 6, the type of extension unit 3 and the extension unit ID are stored in association with each other, and a search target file to be searched for is stored in association with each extension unit ID. By adopting such a data structure, the search target file can be specified when the designation of the type of the expansion unit 3 is received. Of course, when the expansion unit 3 is newly connected to the CPU unit 2, it is needless to say that the CPU unit 2 may automatically confirm the system configuration and automatically acquire information on the type of the expansion unit 3. . In this case, it is possible to specify the search target file without accepting designation of the type of the expansion unit 3.

また、命令語記憶部431を検索対象とした場合に検索した命令語をキー情報として、関連情報記憶部432を検索することが好ましい。選択候補として抽出した命令語に対応する関連情報のみを検索することができるからである。   In addition, when the instruction word storage unit 431 is a search target, it is preferable to search the related information storage unit 432 using the searched instruction word as key information. This is because only relevant information corresponding to the command word extracted as a selection candidate can be searched.

選択受付部303は、検索結果である候補文字列から命令語又は関連情報の選択を受け付ける。これにより、あいまいな記憶に依存して制御プログラムの作成作業を開始した場合であっても、本来コーディングするべき候補文字列を確実に表示及び選択することができる。   The selection receiving unit 303 receives selection of a command word or related information from a candidate character string that is a search result. Thereby, even when the creation of the control program is started depending on ambiguous memory, the candidate character string to be originally coded can be reliably displayed and selected.

図7は、本発明の実施の形態1に係るプログラム作成支援装置4の候補文字列選択処理の手順を示すフローチャートである。図7に示すように、プログラム作成支援装置4の制御部41は、文字列の入力を受け付け(ステップS701)、入力を受け付けた文字列を命令語と、その他の関連情報とに類別する(ステップS702)。両者を類別する方法は、図4に例示した方法と同様である。   FIG. 7 is a flowchart showing a procedure of candidate character string selection processing of the program creation support apparatus 4 according to Embodiment 1 of the present invention. As shown in FIG. 7, the control unit 41 of the program creation support apparatus 4 accepts input of a character string (step S701), and categorizes the accepted character string into an instruction word and other related information (step S701). S702). The method for classifying both is the same as the method illustrated in FIG.

また、関連情報とは、例えば命令語に対応した、命令語の意味、文法等を記述した説明文、制御プログラムの作成者がデバイス、変数等に付与したコメント、拡張ユニット3のメモリ空間情報、拡張ユニット3に固有の命令語及びその説明文、制御プログラム上で特定の意味を有する定数に関する情報(マジックナンバー)等である。したがって、制御プログラムの作成者が、ラダープログラムの文法に精通していない場合であっても、確実な候補文字列を表示することで、正しい候補文字列の選択を受け付けることができる。   The related information includes, for example, an instruction word corresponding to the instruction word, an explanatory statement describing the grammar and the like, a comment given to a device, a variable, etc. by the creator of the control program, memory space information of the expansion unit 3, These are instruction words unique to the expansion unit 3 and their explanations, information on constants having a specific meaning on the control program (magic numbers), and the like. Therefore, even if the creator of the control program is not familiar with the grammar of the ladder program, the correct candidate character string can be selected by displaying the reliable candidate character string.

制御部41は、命令語をキー情報として命令語記憶部431を検索対象として検索し、候補文字列を抽出する(ステップS703)。図8は、ラダー形式の制御プログラムにおいて、命令語をキー情報として検索された候補文字列が表示された画面の例示図である。図8の例では、文字列入力領域81にて入力を受け付けた文字列「バッファ」に対して、制御プログラムにおいて用いるべき命令語の候補文字列をプルダウンメニュー82にて表示している。制御プログラムの作成者は、自分の求める作業に応じた命令語を容易に選択することができる。   The control unit 41 searches the command word storage unit 431 using the command word as key information and searches for a search target, and extracts a candidate character string (step S703). FIG. 8 is a view showing an example of a screen on which a candidate character string searched using a command word as key information in a ladder-type control program is displayed. In the example of FIG. 8, a candidate character string of an instruction word to be used in the control program is displayed by a pull-down menu 82 with respect to the character string “buffer” received in the character string input area 81. The creator of the control program can easily select a command word according to the work he / she desires.

図7に戻って、プログラム作成支援装置4の制御部41は、抽出した候補文字列を所定のルールで分類(ソート)し(ステップS704)、候補文字列の選択を受け付ける(ステップS705)。候補文字列の分類のルールは特に限定されるものではないが、特定の命令語との関連度、半角/全角の区別、大文字/小文字の区別等に基づいてランク付けを実行し、ランクの降順に表示すれば良い。   Returning to FIG. 7, the control unit 41 of the program creation support apparatus 4 classifies (sorts) the extracted candidate character strings according to a predetermined rule (step S704), and accepts selection of candidate character strings (step S705). The rules for classifying candidate strings are not particularly limited, but ranking is performed based on the degree of relevance to a specific command word, half-width / full-width, uppercase / lowercase, etc. It is sufficient to display it.

また、作成している制御プログラム中での使用回数、使用頻度等に基づいてランク付けを実行しても良い。すなわち、図3の使用率算出部304が、制御プログラムにおいて用いられる命令語、あるいは関連情報の使用率を算出し、分類部305にて、算出した使用率に基づいて検索結果である候補文字列を使用率の降順に分類して表示する。   Further, ranking may be executed based on the number of times of use, the frequency of use, etc. in the control program being created. That is, the usage rate calculation unit 304 of FIG. 3 calculates the usage rate of a command word or related information used in the control program, and the classification unit 305 uses the calculated usage rate as a search result candidate character string. Are classified and displayed in descending order of usage rate.

図9は、本発明の実施の形態1に係るプログラム作成支援装置4の制御部41の候補文字列の使用率に基づく分類処理の手順を示すフローチャートである。図9において、プログラム作成支援装置4の制御部41は、候補文字列ごとに制御プログラムにおける使用率を算出する(ステップS901)。使用率の算出方法は、特に限定されるものではないが、例えば候補文字列ごとに、候補文字列の使用回数に候補文字列のワード数を乗算した値を求め、制御プログラムのワード数で除算することにより使用率を算出する。   FIG. 9 is a flowchart showing the procedure of the classification process based on the usage rate of the candidate character string of the control unit 41 of the program creation support apparatus 4 according to Embodiment 1 of the present invention. In FIG. 9, the control unit 41 of the program creation support apparatus 4 calculates the usage rate in the control program for each candidate character string (step S901). The usage rate calculation method is not particularly limited. For example, for each candidate character string, a value obtained by multiplying the number of times of use of the candidate character string by the number of words of the candidate character string is obtained and divided by the number of words of the control program. To calculate the usage rate.

制御部41は、算出した使用率の降順に候補文字列を分類して(ステップS902)、表示装置451に表示する。   The control unit 41 classifies the candidate character strings in descending order of the calculated usage rate (step S902) and displays them on the display device 451.

また、候補文字列の分類に、過去に入力を受け付けた文字列に関する履歴情報を考慮しても良い。同じ制御プログラムの作成者であれば、同様の命令語を使用する可能性が高いからである。この場合、例えば図3に示す入力受付部301にて、入力を受け付けた文字列の履歴を履歴情報として履歴情報記憶部433に記憶しておき、分類部305が、記憶してある履歴情報を優先して分類すれば良い。   Further, history information regarding character strings that have been accepted in the past may be taken into consideration for classification of candidate character strings. This is because the same control program is likely to be used by the same control program creator. In this case, for example, in the input receiving unit 301 shown in FIG. 3, the history of the character string received as input is stored as history information in the history information storage unit 433, and the classification unit 305 stores the stored history information. You should classify with priority.

図7に戻って、プログラム作成支援装置4の制御部41は、文字列が確定したか否かを判断する(ステップS706)。すなわち、全ての文字列について、候補文字列の選択を受け付けたか否かを判断する。制御部41が、文字列が確定していないと判断した場合(ステップS706:NO)、制御部41は、関連情報をキー情報として関連情報記憶部432を検索対象として検索し、候補文字列を抽出する(ステップS707)。   Returning to FIG. 7, the control unit 41 of the program creation support device 4 determines whether or not the character string is confirmed (step S706). That is, it is determined whether selection of candidate character strings has been accepted for all character strings. When the control unit 41 determines that the character string is not fixed (step S706: NO), the control unit 41 searches the related information storage unit 432 as the search target using the related information as key information, and selects a candidate character string. Extract (step S707).

図10は、ラダー形式の制御プログラムにおいて、関連情報をキー情報として検索された候補文字列が表示された画面の例示図である。図10の例では、文字列入力領域101にて入力を受け付けた文字列「位置決め」に対して、デバイスとして用いるべき候補文字列をプルダウンメニュー102にて表示している。制御プログラムの作成者は、コーディング作業に対応したデバイスを容易に選択することができる。   FIG. 10 is a view showing an example of a screen on which a candidate character string searched using related information as key information in a ladder-type control program is displayed. In the example of FIG. 10, a candidate character string to be used as a device is displayed in the pull-down menu 102 for the character string “positioning” accepted in the character string input area 101. The creator of the control program can easily select a device corresponding to the coding work.

図7に戻って、プログラム作成支援装置4の制御部41は、抽出された候補文字列を所定のルールで分類(ソート)し(ステップS708)、候補文字列の選択を受け付け(ステップS709)、処理をステップS706へ戻す。候補文字列の分類のルールは特に限定されるものではないが、特定の命令語との関連度、半角/全角の区別、大文字/小文字の区別等に基づいてランク付けを実行し、ランクの降順に表示すれば良い。また、作成している制御プログラム中での使用回数、使用頻度等に基づいてランク付けを実行しても良い。   Returning to FIG. 7, the control unit 41 of the program creation support apparatus 4 classifies (sorts) the extracted candidate character strings according to a predetermined rule (step S708), and accepts selection of candidate character strings (step S709). The process returns to step S706. The rules for classifying candidate strings are not particularly limited, but ranking is performed based on the degree of relevance to a specific command word, half-width / full-width, uppercase / lowercase, etc. It is sufficient to display it. Further, ranking may be executed based on the number of times of use, the frequency of use, etc. in the control program being created.

制御部41が、文字列が確定したと判断した場合(ステップS706:YES)、すなわち、制御プログラムのプログラムコードが確定したと判断した場合、確定した文字列をプログラムコードとして記憶手段43に記憶し(ステップS710)、次のコマンドのコーディング作業を続行する。   When the control unit 41 determines that the character string is confirmed (step S706: YES), that is, when it is determined that the program code of the control program is confirmed, the confirmed character string is stored in the storage unit 43 as the program code. (Step S710), coding of the next command is continued.

以上のように本実施の形態1によれば、入力を受け付けた文字列のうち、例えば一番目の文字列については命令語を検索対象として候補文字列を検索し、二番目以降の文字列については命令語の引数、文法情報等の関連情報を検索対象として候補文字列を検索し、それぞれ選択を受け付けることができ、制御プログラムの作成者が、正確に命令語に関する知識を有していない場合であっても、正しい命令語及び関連情報を正しい文法に従って記載することを支援することが可能となる。   As described above, according to the first embodiment, among the character strings that have been accepted, for example, for the first character string, the candidate character string is searched for the command word as a search target, and the second and subsequent character strings are searched. Can search for candidate character strings by searching for related information such as command word arguments and grammar information, and accept selections respectively, and the creator of the control program does not have accurate knowledge of the command word Even so, it is possible to support writing the correct command word and related information according to the correct grammar.

なお、上述した実施の形態1では、プログラム作成支援装置4の記憶装置43に命令語記憶部431及び関連情報記憶部432を備えているが、命令語記憶部431及び関連情報記憶部432は、プログラム作成支援装置4の制御部41がネットワーク等を介して検索することが可能であればどこに備えていても良い。例えば作成した制御プログラムを記憶するCPUユニット2の内蔵するメモリ21内に備えても良いし、拡張ユニット3a、3b、・・・の内蔵するメモリ31a、31b、・・・内に備えても良い。   In Embodiment 1 described above, the storage device 43 of the program creation support apparatus 4 includes the command word storage unit 431 and the related information storage unit 432. However, the command word storage unit 431 and the related information storage unit 432 include As long as the control part 41 of the program creation assistance apparatus 4 can search via a network etc., it may be provided anywhere. For example, it may be provided in the memory 21 built in the CPU unit 2 for storing the created control program, or may be provided in the memories 31a, 31b,... Built in the expansion units 3a, 3b,. .

(実施の形態2)
本発明の実施の形態2に係るプログラム作成支援装置4により制御プログラムの作成支援の対象となるプログラマブルコントローラ1の構成、プログラム作成支援装置4の構成は、実施の形態1と同様であることから、同一の符号を付することにより詳細な説明は省略する。本実施の形態2では、被制御機器5の動作を制御する拡張ユニット3及びCPUユニット2に、それぞれ命令語及び関連情報を記憶しておき、どちらに記憶してある命令語及び関連情報を検索対象とするか選択する点で実施の形態1とは相違する。
(Embodiment 2)
Since the configuration of the programmable controller 1 and the configuration of the program creation support device 4 that are targets of the creation support of the control program by the program creation support device 4 according to the second embodiment of the present invention are the same as those in the first embodiment. Detailed description will be omitted by attaching the same reference numerals. In the second embodiment, the instruction word and the related information are stored in the extension unit 3 and the CPU unit 2 that control the operation of the controlled device 5, respectively, and the stored instruction word and the related information are searched. It differs from the first embodiment in that it is selected as a target.

図11は、本発明の実施の形態2に係るプログラム作成支援装置4の機能を示す機能ブロック図である。図11において、実施の形態1と同様の機能を有する機能ブロックについては、同一の符号を付することにより詳細な説明は省略する。   FIG. 11 is a functional block diagram showing functions of the program creation support apparatus 4 according to Embodiment 2 of the present invention. In FIG. 11, functional blocks having the same functions as those in the first embodiment are denoted by the same reference numerals, and detailed description thereof is omitted.

図11に示すように、本発明の実施の形態2に係るプログラム作成支援装置4は、記憶装置43に命令語記憶部431及び関連情報記憶部432を備えるのではなく、プログラマブルコントローラ1を構成するCPUユニット2のメモリ21及びCPUユニット2に接続してある拡張ユニット3a、3b、・・・のメモリ31a、31b、・・・に命令語及び関連情報を記憶している。すなわちCPUユニット2のメモリ21は、拡張ユニット3a、3b、・・・に接続してある被制御機器5、5、・・・の操作を指示する命令語(コマンド)を記憶してある命令語記憶部22、及び命令語に関連する関連情報を記憶してある関連情報記憶部23を備えている。同様に、拡張ユニット3a、3b、・・・のメモリ31a、31b、・・・は、各拡張ユニット3a、3b、・・・に接続してある被制御機器5、5、・・・の操作を指示する命令語(コマンド)を記憶してある命令語記憶部32a、32b、・・・、及び命令語に関連する関連情報を記憶してある関連情報記憶部33a、33b、・・・を備えている。   As shown in FIG. 11, the program creation support device 4 according to the second embodiment of the present invention does not include the command word storage unit 431 and the related information storage unit 432 in the storage device 43 but configures the programmable controller 1. Instruction words and related information are stored in the memory 21 of the CPU unit 2 and the memories 31a, 31b,... Of the expansion units 3a, 3b,. That is, the memory 21 of the CPU unit 2 stores instruction words (commands) for instructing operations of the controlled devices 5, 5,... Connected to the expansion units 3a, 3b,. A storage unit 22 and a related information storage unit 23 storing related information related to the instruction word are provided. Similarly, the memories 31a, 31b, ... of the extension units 3a, 3b, ... operate the controlled devices 5, 5, ... connected to the extension units 3a, 3b, ..., respectively. Instruction word storage units 32a, 32b,... That store instruction words (commands) that indicate the command and related information storage units 33a, 33b,. I have.

情報複写部1101は、CPUユニット2に拡張ユニット3、3、・・・が新たに接続された時点で、拡張ユニット3に固有の命令語及び関連情報をCPUユニット2へ複写する。具体的には、CPUユニット2に接続してある拡張ユニット3a、3b、・・・のメモリ31a、31b、・・・に備えている命令語記憶部32a、32b、・・・、及び関連情報記憶部33a、33b、・・・にそれぞれ記憶してある命令語及び関連情報を、CPUユニット2のメモリ21の命令語記憶部22及び関連情報記憶部23に複写する。   The information copying unit 1101 copies a command word and related information specific to the expansion unit 3 to the CPU unit 2 when the expansion units 3, 3,... Are newly connected to the CPU unit 2. Specifically, the instruction word storage units 32a, 32b,... Provided in the memories 31a, 31b,... Of the expansion units 3a, 3b,. The instruction words and related information stored in the storage units 33a, 33b,... Are copied to the instruction word storage unit 22 and the related information storage unit 23 of the memory 21 of the CPU unit 2, respectively.

入力受付部301の検索対象選択部1102は、入力を受け付けた命令語に応じて、拡張ユニット3a、3b、・・・のメモリ31a、31b、・・・に備えている命令語記憶部32a、32b、・・・、及び関連情報記憶部33a、33b、・・・を検索対象とするか、CPUユニット2のメモリ21の命令語記憶部22及び関連情報記憶部23を検索対象とするかを選択する。すなわち、命令語によっては拡張ユニット3に固有の命令語及び関連情報のみを検索対象とすれば足り、CPUユニット2のメモリ21の命令語記憶部22及び関連情報記憶部23を検索対象とすることなく、直接対応する拡張ユニット3a、3b、・・・のメモリ31a、31b、・・・に備えている命令語記憶部32a、32b、・・・、及び関連情報記憶部33a、33b、・・・にそれぞれ記憶してある命令語及び関連情報を検索対象とすることにより、より検索処理負荷を軽減することができ、検索レスポンスの向上を図ることが可能となる。   The search target selection unit 1102 of the input receiving unit 301 includes a command word storage unit 32a included in the memories 31a, 31b,... Of the expansion units 3a, 3b,. 32b,..., And related information storage units 33a, 33b,..., Or whether the instruction word storage unit 22 and the related information storage unit 23 of the memory 21 of the CPU unit 2 are to be searched. select. That is, depending on the instruction word, it is sufficient to search only the instruction word unique to the extension unit 3 and the related information, and the instruction word storage unit 22 and the related information storage unit 23 of the memory 21 of the CPU unit 2 are to be searched. , And the instruction word storage units 32a, 32b,... And the related information storage units 33a, 33b provided in the memories 31a, 31b,... Of the directly corresponding expansion units 3a, 3b,. By using the command word and related information stored in the item as a search target, the search processing load can be further reduced and the search response can be improved.

図12は、本発明の実施の形態2に係る命令語記憶部22及び関連情報記憶部23の複写処理を示す模式図である。図12に示すように、CPUユニット2に複数の拡張ユニット3a、3b、・・・が接続してある場合、拡張ユニット3aのメモリ31aに記憶してある命令語及び関連情報、拡張ユニット3bのメモリ31bに記憶してある命令語及び関連情報等を、CPUユニット2のメモリ21へ複写する。このようにすることで、プログラム作成支援装置4の制御部41は、入力を受け付けた文字列をキー情報として、拡張ユニット3a、3b、・・・のメモリ31a、31b、・・・を直接検索することも、CPUユニット2のメモリ21を検索することもできる。   FIG. 12 is a schematic diagram showing a copy process of the instruction word storage unit 22 and the related information storage unit 23 according to Embodiment 2 of the present invention. As shown in FIG. 12, when a plurality of extension units 3a, 3b,... Are connected to the CPU unit 2, the instruction word and related information stored in the memory 31a of the extension unit 3a, the extension unit 3b The instruction word and related information stored in the memory 31b are copied to the memory 21 of the CPU unit 2. Thus, the control unit 41 of the program creation support device 4 directly searches the memories 31a, 31b,... Of the expansion units 3a, 3b,. It is also possible to search the memory 21 of the CPU unit 2.

例えば入力を受け付けた文字列が命令語「LD」であった場合、命令語「LD」は拡張ユニット3に固有の命令語ではないことから、制御部41は、CPUユニット2のメモリ21を検索対象として選択する。一方、入力を受け付けた文字列が命令語「U_WRMD」であった場合、命令語「U_WRMD」は拡張ユニット3に固有の命令語であるので、制御部41は、命令語「U_WRMD」及び命令語「U_WRMD」の関連情報が記憶してある拡張ユニット3a(3b)のメモリユニット31a(31b)を検索対象として選択する。   For example, if the input character string is the instruction word “LD”, the control unit 41 searches the memory 21 of the CPU unit 2 because the instruction word “LD” is not an instruction word unique to the extension unit 3. Select as target. On the other hand, when the input character string is the instruction word “U_WRMD”, the instruction word “U_WRMD” is an instruction word unique to the extension unit 3, and thus the control unit 41 determines that the instruction word “U_WRMD” and the instruction word The memory unit 31a (31b) of the extension unit 3a (3b) in which the related information “U_WRMD” is stored is selected as a search target.

以上のように本実施の形態2によれば、入力を受け付けた文字列に応じて、被制御機器5の動作を制御する拡張ユニット3に記憶してある命令語及び関連情報を検索対象とするか、CPUユニット2に複写して記憶してある拡張ユニット3に固有の命令語及び関連情報を検索対象とするかを選択することができ、検索処理負荷を軽減してより高速に検索することが可能となる。   As described above, according to the second embodiment, the instruction word and related information stored in the extension unit 3 that controls the operation of the controlled device 5 are searched for according to the input character string. It is possible to select whether to search for instruction words and related information unique to the expansion unit 3 copied and stored in the CPU unit 2, and to search faster by reducing the search processing load. Is possible.

なお、本発明は上記実施の形態1及び2に限定されるものではなく、本発明の趣旨の範囲内であれば多種の変形、置換等が可能であることは言うまでもない。例えば、命令語及び関連情報を、プログラム作成支援装置4の記憶装置43に集約して記憶しておくことに限定されず、CPUユニット2、拡張ユニット3、3、・・・に記憶してある命令語及び関連情報をネットワーク上の仮想ディスクに記憶しておいても良い。   The present invention is not limited to Embodiments 1 and 2 described above, and it goes without saying that various modifications and replacements are possible within the scope of the present invention. For example, the instruction word and the related information are not limited to being stored in the storage device 43 of the program creation support device 4 and stored in the CPU unit 2, the expansion units 3, 3,. The instruction word and related information may be stored in a virtual disk on the network.

1 プログラマブルコントローラ
2 CPUユニット
3、3a、3b 拡張ユニット
4 プログラム作成支援装置
5 被制御機器
21、31a、31b メモリ
41 制御部
42 メモリ
43 記憶装置
44 I/Oインタフェース
45 ビデオインタフェース
46 通信インタフェース
47 可搬型ディスクドライブ
431 命令語記憶部
432 関連情報記憶部
433 履歴情報記憶部
DESCRIPTION OF SYMBOLS 1 Programmable controller 2 CPU unit 3, 3a, 3b Expansion unit 4 Program creation assistance device 5 Controlled device 21, 31a, 31b Memory 41 Control part 42 Memory 43 Storage device 44 I / O interface 45 Video interface 46 Communication interface 47 Portable type Disk drive 431 Command word storage unit 432 Related information storage unit 433 History information storage unit

Claims (15)

被制御機器に接続してある拡張ユニット及びCPUユニットで構成してあり、前記被制御機器の動作をシーケンシャル制御するプログラマブルコントローラにおいて実行される制御プログラムの作成を支援するプログラム作成支援装置において、
制御プログラムで用いる命令語を記憶する命令語記憶部と、
命令語に関連する関連情報を該命令語に対応付けて記憶する関連情報記憶部と
を別個に有する記憶手段と、
文字列の入力を受け付ける入力受付手段と、
入力を受け付けた文字列の順序に応じて、前記命令語記憶部又は前記関連情報記憶部を検索対象として検索する検索手段と、
該検索手段での検索結果から前記命令語又は前記関連情報の選択を受け付ける選択受付手段と
を備えることを特徴とするプログラム作成支援装置。
In a program creation support device configured to include an expansion unit and a CPU unit connected to a controlled device, and supporting creation of a control program executed in a programmable controller that sequentially controls the operation of the controlled device.
An instruction word storage unit for storing instruction words used in the control program;
A storage means separately having a related information storage unit for storing related information related to the command word in association with the command word;
An input receiving means for receiving input of a character string;
Search means for searching the command word storage unit or the related information storage unit as a search target according to the order of the character strings received input,
And a selection receiving means for receiving a selection of the command word or the related information from a search result of the search means.
前記記憶手段は、前記拡張ユニットの種類ごとに前記命令語記憶部又は前記関連情報記憶部を有しており、
前記拡張ユニットの種類の指定を受け付ける指定受付手段を備え、
前記検索手段は、指定を受け付けた前記拡張ユニットの種類に対応した前記命令語記憶部又は前記関連情報記憶部を検索対象として検索するようにしてあることを特徴とする請求項1記載のプログラム作成支援装置。
The storage means includes the command word storage unit or the related information storage unit for each type of the extension unit,
Comprising designation accepting means for accepting designation of the type of the expansion unit;
2. The program creation according to claim 1, wherein the search means searches for the command word storage unit or the related information storage unit corresponding to the type of the extension unit that has received the designation as a search target. Support device.
前記検索手段は、前記命令語記憶部を検索対象とした場合に検索した命令語をキー情報として、前記関連情報記憶部を検索するようにしてあることを特徴とする請求項1又は2記載のプログラム作成支援装置。   3. The search unit according to claim 1, wherein the search unit searches the related information storage unit by using a command word searched when the command word storage unit is a search target as key information. 4. Program creation support device. 前記被制御機器に接続した前記拡張ユニットに記憶してある、前記拡張ユニットに固有の命令語及び関連情報を、前記CPUユニットに複写して記憶する情報複写手段と、
入力を受け付けた文字列に応じて、前記拡張ユニットに記憶してある命令語及び関連情報か、前記CPUユニットに複写して記憶してある命令語及び関連情報か、いずれかを検索対象として選択する検索対象選択手段を備えることを特徴とする請求項1乃至3のいずれか一項に記載のプログラム作成支援装置。
Information copying means for storing a command word and related information specific to the expansion unit, stored in the expansion unit connected to the controlled device, and copied and stored in the CPU unit;
Depending on the input character string, either the instruction word and related information stored in the extension unit or the instruction word and related information copied and stored in the CPU unit is selected as a search target. The program creation support apparatus according to any one of claims 1 to 3, further comprising search target selection means for performing search.
前記制御プログラムにおいて用いられる命令語の使用率を算出する使用率算出手段と、
算出した使用率に基づいて検索結果を分類する分類手段と
を備えることを特徴とする請求項1乃至4のいずれか一項に記載のプログラム作成支援装置。
Usage rate calculating means for calculating a usage rate of an instruction word used in the control program;
The program creation support apparatus according to claim 1, further comprising: a classifying unit that classifies search results based on the calculated usage rate.
入力を受け付けた文字列を履歴情報として記憶する履歴情報記憶手段を備え、
前記分類手段は、記憶してある前記履歴情報を優先して分類するようにしてあることを特徴とする請求項5記載のプログラム作成支援装置。
A history information storage means for storing the input character string as history information;
6. The program creation support apparatus according to claim 5, wherein the classification means classifies the stored history information with priority.
文字列の入力を受け付けるインターバルを検出する入力インターバル検出手段と、
検出したインターバルが一定時間を超えたか否かを判断する入力インターバル判断手段と
を備え、
該入力インターバル判断手段で一定時間を超えたと判断した場合、前記検索手段に検索を開始させるようにしてあることを特徴とする請求項1乃至6のいずれか一項に記載のプログラム作成支援装置。
An input interval detecting means for detecting an interval for accepting input of a character string;
Input interval determination means for determining whether or not the detected interval exceeds a certain time, and
7. The program creation support apparatus according to claim 1, wherein when the input interval determination unit determines that a predetermined time has been exceeded, the search unit starts a search.
前記検索手段は、部分一致検索又はあいまい検索を行うようにしてあることを特徴とする請求項1乃至7のいずれか一項に記載のプログラム作成支援装置。   The program creation support apparatus according to claim 1, wherein the search unit performs a partial match search or a fuzzy search. 被制御機器に接続してある拡張ユニット及びCPUユニットで構成してあり、前記被制御機器の動作をシーケンシャル制御するプログラマブルコントローラにおいて実行される制御プログラムの作成を支援するプログラム作成支援装置で実行することが可能なプログラム作成支援方法において、
前記プログラム作成支援装置は、
制御プログラムで用いる命令語と、該命令語に対応付けた命令語に関連する関連情報とを別個に記憶し、
文字列の入力を受け付け、
入力を受け付けた文字列の順序に応じて、前記命令語又は前記関連情報を検索対象として検索し、
検索結果から前記命令語又は前記関連情報の選択を受け付けることを特徴とするプログラム作成支援方法。
It is composed of an extension unit and a CPU unit connected to a controlled device, and is executed by a program creation support device that supports creation of a control program executed in a programmable controller that sequentially controls the operation of the controlled device. In a program creation support method capable of
The program creation support device includes:
Separately storing an instruction word used in the control program and related information related to the instruction word associated with the instruction word;
Accepts input of strings,
According to the order of the character string received input, search the instruction word or the related information as a search target,
A program creation support method, wherein selection of the command word or the related information is received from a search result.
被制御機器に接続してある拡張ユニット及びCPUユニットで構成してあり、前記被制御機器の動作をシーケンシャル制御するプログラマブルコントローラにおいて実行される制御プログラムの作成を支援するプログラム作成支援装置で実行することが可能なコンピュータプログラムにおいて、
前記プログラム作成支援装置は、
制御プログラムで用いる命令語を記憶する命令語記憶部と、
命令語に関連する関連情報を該命令語に対応付けて記憶する関連情報記憶部と
を別個に有しており、
前記プログラム作成支援装置を、
文字列の入力を受け付ける入力受付手段、
入力を受け付けた文字列の順序に応じて、前記命令語記憶部又は前記関連情報記憶部を検索対象として検索する検索手段、及び
該検索手段での検索結果から前記命令語又は前記関連情報の選択を受け付ける選択受付手段
として機能させることを特徴とするコンピュータプログラム。
It is composed of an expansion unit and a CPU unit connected to a controlled device, and is executed by a program creation support device that supports creation of a control program executed in a programmable controller that sequentially controls the operation of the controlled device. In computer programs that can
The program creation support device includes:
An instruction word storage unit for storing instruction words used in the control program;
A related information storage unit for storing related information related to the command word in association with the command word;
The program creation support device,
Input accepting means for accepting input of a character string;
Search means for searching the command word storage unit or the related information storage unit as a search target according to the order of the character strings received, and selection of the command word or the related information from the search result of the search means A computer program that functions as a selection receiving means for receiving a message.
前記記憶手段は、前記拡張ユニットの種類ごとに前記命令語記憶部又は前記関連情報記憶部を有しており、
前記プログラム作成支援装置を、
前記拡張ユニットの種類の指定を受け付ける指定受付手段として機能させ、
前記検索手段を、指定を受け付けた前記拡張ユニットの種類に対応した前記命令語記憶部又は前記関連情報記憶部を検索対象として検索する手段として機能させることを特徴とする請求項10記載のコンピュータプログラム。
The storage means includes the command word storage unit or the related information storage unit for each type of the extension unit,
The program creation support device,
Function as a designation accepting means for accepting designation of the type of the expansion unit;
11. The computer program according to claim 10, wherein the computer program causes the search unit to function as a search unit for searching the command word storage unit or the related information storage unit corresponding to the type of the extension unit that has received the designation. .
前記検索手段を、前記命令語記憶部を検索対象とした場合に検索した命令語をキー情報として、前記関連情報記憶部を検索する手段として機能させることを特徴とする請求項10又は11記載のコンピュータプログラム。   12. The search means according to claim 10 or 11, wherein the search means functions as means for searching the related information storage section using the searched instruction word as key information when the instruction word storage section is a search target. Computer program. 前記プログラム作成支援装置を、
前記被制御機器に接続した前記拡張ユニットに記憶してある、前記拡張ユニットに固有の命令語及び関連情報を、前記CPUユニットに複写して記憶する情報複写手段、及び
入力を受け付けた文字列に応じて、前記拡張ユニットに記憶してある命令語及び関連情報か、前記CPUユニットに複写して記憶してある命令語及び関連情報か、いずれかを検索対象として選択する検索対象選択手段
として機能させることを特徴とする請求項10乃至12のいずれか一項に記載のコンピュータプログラム。
The program creation support device,
Information copying means for copying the instruction word and related information unique to the extension unit stored in the extension unit connected to the controlled device to the CPU unit and storing them in the character string that has received the input Correspondingly, it functions as a search target selection means for selecting either a command word and related information stored in the extension unit or a command word and related information copied and stored in the CPU unit as a search target. The computer program according to any one of claims 10 to 12, wherein the computer program is executed.
前記プログラム作成支援装置を、
前記制御プログラムにおいて用いられる命令語の使用率を算出する使用率算出手段、及び
算出した使用率に基づいて検索結果を分類する分類手段
として機能させることを特徴とする請求項10乃至13のいずれか一項に記載のコンピュータプログラム。
The program creation support device,
The function according to any one of claims 10 to 13, which functions as a usage rate calculation unit that calculates a usage rate of an instruction word used in the control program, and a classification unit that classifies a search result based on the calculated usage rate. The computer program according to one item.
前記プログラム作成支援装置を、
文字列の入力を受け付けるインターバルを検出する入力インターバル検出手段、
検出したインターバルが一定時間を超えたか否かを判断する入力インターバル判断手段、及び
該入力インターバル判断手段で一定時間を超えたと判断した場合、前記検索手段に検索を開始させる手段
として機能させることを特徴とする請求項10乃至14のいずれか一項に記載のコンピュータプログラム。
The program creation support device,
Input interval detection means for detecting an interval for accepting input of a character string;
An input interval judging means for judging whether or not the detected interval exceeds a certain time, and when the input interval judging means judges that the certain time has passed, the searching means functions as a means for starting a search. The computer program according to any one of claims 10 to 14.
JP2009174363A 2009-07-27 2009-07-27 Program creation support apparatus, program creation support method, and computer program Active JP5500896B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009174363A JP5500896B2 (en) 2009-07-27 2009-07-27 Program creation support apparatus, program creation support method, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009174363A JP5500896B2 (en) 2009-07-27 2009-07-27 Program creation support apparatus, program creation support method, and computer program

Publications (3)

Publication Number Publication Date
JP2011028552A true JP2011028552A (en) 2011-02-10
JP2011028552A5 JP2011028552A5 (en) 2012-05-10
JP5500896B2 JP5500896B2 (en) 2014-05-21

Family

ID=43637219

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009174363A Active JP5500896B2 (en) 2009-07-27 2009-07-27 Program creation support apparatus, program creation support method, and computer program

Country Status (1)

Country Link
JP (1) JP5500896B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013182582A (en) * 2012-03-05 2013-09-12 Azbil Corp Control loop design device and control loop design method
JP5484636B1 (en) * 2012-11-22 2014-05-07 三菱電機株式会社 Program creation support apparatus, method, and recording medium
WO2016166876A1 (en) * 2015-04-16 2016-10-20 三菱電機株式会社 Program diagnosis device, program diagnosis method and program diagnosis program
JP2018069378A (en) * 2016-10-28 2018-05-10 ファナック株式会社 Information processing device
JP6837608B1 (en) * 2020-02-04 2021-03-03 三菱電機株式会社 Program creation support device, program creation support method and program creation support program
WO2024014355A1 (en) * 2022-07-15 2024-01-18 オムロン株式会社 Control program editing device, editing method, and program
WO2024014354A1 (en) * 2022-07-15 2024-01-18 オムロン株式会社 Control program editing device, editing method, and program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02220102A (en) * 1989-02-22 1990-09-03 Fanuc Ltd Sequence program editing system
JPH0580830A (en) * 1991-09-18 1993-04-02 Mitsubishi Electric Corp Device for editing robot language
JPH11282833A (en) * 1998-03-31 1999-10-15 Nec Corp Automatic kana/kanji converting method and automatic kana/kanji converting device
JP2004259084A (en) * 2003-02-27 2004-09-16 Yokogawa Electric Corp Method and device for input support of program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02220102A (en) * 1989-02-22 1990-09-03 Fanuc Ltd Sequence program editing system
JPH0580830A (en) * 1991-09-18 1993-04-02 Mitsubishi Electric Corp Device for editing robot language
JPH11282833A (en) * 1998-03-31 1999-10-15 Nec Corp Automatic kana/kanji converting method and automatic kana/kanji converting device
JP2004259084A (en) * 2003-02-27 2004-09-16 Yokogawa Electric Corp Method and device for input support of program

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013182582A (en) * 2012-03-05 2013-09-12 Azbil Corp Control loop design device and control loop design method
KR101713462B1 (en) * 2012-11-22 2017-03-07 미쓰비시덴키 가부시키가이샤 Program creation assistance device, method and recording medium
JP5484636B1 (en) * 2012-11-22 2014-05-07 三菱電機株式会社 Program creation support apparatus, method, and recording medium
CN104813246B (en) * 2012-11-22 2017-06-30 三菱电机株式会社 Program Generating servicing unit and method
CN104813246A (en) * 2012-11-22 2015-07-29 三菱电机株式会社 Program creation assistance device, method and recording medium
TWI512416B (en) * 2012-11-22 2015-12-11 Mitsubishi Electric Corp Apparatus for supporting the preparation of a program, method thereof, and a recording medium
WO2014080490A1 (en) * 2012-11-22 2014-05-30 三菱電機株式会社 Program creation assistance device, method and recording medium
KR20150077475A (en) * 2012-11-22 2015-07-07 미쓰비시덴키 가부시키가이샤 Program creation assistance device, method and recording medium
WO2016166876A1 (en) * 2015-04-16 2016-10-20 三菱電機株式会社 Program diagnosis device, program diagnosis method and program diagnosis program
JP6076565B1 (en) * 2015-04-16 2017-02-08 三菱電機株式会社 Program diagnostic apparatus, program diagnostic method, and program diagnostic program
KR101846140B1 (en) 2015-04-16 2018-04-05 미쓰비시덴키 가부시키가이샤 Program diagnostic device, program diagnostic method, and program diagnostic program
CN107533322B (en) * 2015-04-16 2019-04-19 三菱电机株式会社 Diagnosis of program device and diagnosis of program method
CN107533322A (en) * 2015-04-16 2018-01-02 三菱电机株式会社 Diagnosis of program device, diagnosis of program method and diagnosis of program program
JP2018069378A (en) * 2016-10-28 2018-05-10 ファナック株式会社 Information processing device
US10853390B2 (en) 2016-10-28 2020-12-01 Fanuc Corporation Information processing device
JP6837608B1 (en) * 2020-02-04 2021-03-03 三菱電機株式会社 Program creation support device, program creation support method and program creation support program
WO2021156940A1 (en) * 2020-02-04 2021-08-12 三菱電機株式会社 Program creation assistance device, program creation assistance method, and program creation assistance program
WO2024014354A1 (en) * 2022-07-15 2024-01-18 オムロン株式会社 Control program editing device, editing method, and program
WO2024014355A1 (en) * 2022-07-15 2024-01-18 オムロン株式会社 Control program editing device, editing method, and program

Also Published As

Publication number Publication date
JP5500896B2 (en) 2014-05-21

Similar Documents

Publication Publication Date Title
JP5500896B2 (en) Program creation support apparatus, program creation support method, and computer program
US10733360B2 (en) Simulated hyperlinks on a mobile device
US7769771B2 (en) Searching a document using relevance feedback
JP2008157974A (en) Display controller and control method of display controller
JP2008257444A (en) Similar file management device, method therefor and program therefor
JP5303391B2 (en) Program creation support apparatus, program creation support method, and computer program
JP2011028552A5 (en)
JP5687312B2 (en) Digital information analysis system, digital information analysis method, and digital information analysis program
KR20140049910A (en) Screen data generating apparatus for programmable display device
JP2009271659A (en) Information processing apparatus, information processing method, information processing program and recording medium
JP2006285656A (en) Document search system, recording medium, program and document search method
JP2009069973A (en) Retrieval method, retrieval program, storage medium and information processor
JP2003131776A (en) Information-processing device, character string-inputting device and confirmed history-controlling method
JP2003178075A5 (en)
JP5640700B2 (en) Information search device, search input method, and search input program
JP2005115457A (en) Method of retrieving document file
JP5870776B2 (en) Link granting device, link granting method, and program
US10402785B2 (en) Terminal apparatus
JP2010122799A (en) Information processing device
JP6083819B2 (en) Input support system, input support method, and input support program
JP6281294B2 (en) Display device, display method and display program, and information display system
TWI233572B (en) Character string input device and method
JP2008192009A (en) Control point data generation system and control point data generation method
JP6213305B2 (en) Information processing program, information processing apparatus, and information processing method
JP2008217085A (en) Information retrieval system

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120316

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120316

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130515

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130521

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130718

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131022

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131212

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140304

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140311

R150 Certificate of patent or registration of utility model

Ref document number: 5500896

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250