JP5303391B2 - Program creation support apparatus, program creation support method, and computer program - Google Patents

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

Info

Publication number
JP5303391B2
JP5303391B2 JP2009174467A JP2009174467A JP5303391B2 JP 5303391 B2 JP5303391 B2 JP 5303391B2 JP 2009174467 A JP2009174467 A JP 2009174467A JP 2009174467 A JP2009174467 A JP 2009174467A JP 5303391 B2 JP5303391 B2 JP 5303391B2
Authority
JP
Japan
Prior art keywords
unit
search
related information
storage unit
creation support
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2009174467A
Other languages
Japanese (ja)
Other versions
JP2011028562A (en
JP2011028562A5 (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.)
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 JP2009174467A priority Critical patent/JP5303391B2/en
Publication of JP2011028562A publication Critical patent/JP2011028562A/en
Publication of JP2011028562A5 publication Critical patent/JP2011028562A5/ja
Application granted granted Critical
Publication of JP5303391B2 publication Critical patent/JP5303391B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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 have, etc. have become more advanced, and the programming work depends on the control program creator. It is inefficient by itself, and the burden on the creator of the control program becomes 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 the search processing load increases.

本発明は斯かる事情に鑑みてなされたものであり、被制御機器の接続状況に応じて検索対象を特定することにより、検索処理負荷を軽減するとともに、検索結果を効果的に絞り込むことが可能なプログラム作成支援装置、プログラム作成支援方法及びコンピュータプログラムを提供することを目的とする。   The present invention has been made in view of such circumstances, and by specifying the search target according to the connection status of the controlled device, it is possible to reduce the search processing load and effectively narrow down the search results. An object of the present invention is to provide a program creation support apparatus, a program creation support method, and a computer 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 Storage means having a storage unit separately for each type of extension unit, configuration information acquisition means for acquiring configuration information including one or a plurality of types of extension units constituting the programmable controller, and acquired The command word storage unit and the related information storage unit corresponding to the configuration information are searched for Search target specifying means, input receiving means for receiving input of a character string, and search for searching the specified instruction word storage unit or the related information storage unit according to the order of the character string received. Means and a selection receiving means for receiving selection of the command word or the related information from a search result of the search means.

また、第2発明に係るプログラム作成支援装置は、第1発明において、前記記憶手段は、前記プログラマブルコントローラを構成する一又は複数の前記拡張ユニットに対応する前記命令語記憶部及び前記関連情報記憶部を全て有するようにしてあり、前記検索対象特定手段は、前記構成情報取得手段で取得した構成情報に対応する前記命令語記憶部及び前記関連情報記憶部を検索対象として抽出するようにしてあることを特徴とする。   The program creation support apparatus according to a second aspect of the present invention is the program creation support apparatus according to the first aspect, wherein the storage means includes the instruction word storage unit and the related information storage unit corresponding to one or a plurality of the extension units constituting the programmable controller. And the search target specifying unit extracts the command word storage unit and the related information storage unit corresponding to the configuration information acquired by the configuration information acquisition unit as a search target. It is characterized by.

また、第3発明に係るプログラム作成支援装置は、第1発明において、前記構成情報取得手段は、前記検索手段が検索を開始する都度、前記構成情報を取得するようにしてあることを特徴とする。   According to a third aspect of the present invention, there is provided the program creation support apparatus according to the first aspect, wherein the configuration information acquisition unit acquires the configuration information every time the search unit starts a search. .

また、第4発明に係るプログラム作成支援装置は、第1乃至第3発明のいずれか1つにおいて、前記検索手段は、前記命令語記憶部を検索対象とした場合に検索した命令語をキー情報として、前記関連情報記憶部を検索するようにしてあることを特徴とする。   According to a fourth aspect of the present invention, there is provided the program creation support device according to any one of the first to third aspects, wherein the search means uses the command word searched when the command word storage unit is a search target as key information. As described above, the related information storage unit is searched.

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

また、第6発明に係るプログラム作成支援装置は、第1乃至第5発明のいずれか1つにおいて、前記制御プログラムにおいて用いられる命令語の使用率を算出する使用率算出手段と、算出した使用率に基づいて検索結果を分類する分類手段とを備えることを特徴とする。   According to a sixth aspect of the present invention, there is provided a program creation support apparatus according to any one of the first to fifth 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.

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

また、第8発明に係るプログラム作成支援装置は、第1乃至第7発明のいずれか1つにおいて、文字列の入力を受け付けるインターバルを検出する入力インターバル検出手段と、検出したインターバルが一定時間を超えたか否かを判断する入力インターバル判断手段とを備え、該入力インターバル判断手段で一定時間を超えたと判断した場合、前記検索手段に検索を開始させるようにしてあることを特徴とする。   According to an eighth aspect of the present invention, there is provided the program creation support device according to any one of the first to seventh aspects, wherein the input interval detection 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.

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

次に、上記目的を達成するために第10発明に係るプログラム作成支援方法は、被制御機器に接続してある拡張ユニット及びCPUユニットで構成してあり、前記被制御機器の動作をシーケンシャル制御するプログラマブルコントローラにおいて実行される制御プログラムの作成を支援するプログラム作成支援装置で実行することが可能なプログラム作成支援方法において、前記プログラム作成支援装置は、制御プログラムで用いる命令語と、該命令語に対応付けた命令語に関連する関連情報とを、前記拡張ユニットの種類ごとにそれぞれ別個に記憶し、前記プログラマブルコントローラを構成する一又は複数の前記拡張ユニットの種類を含む構成情報を取得し、取得した構成情報に対応する前記命令語記憶部及び前記関連情報記憶部を検索対象として特定し、文字列の入力を受け付け、入力を受け付けた文字列の順序に応じて、特定された前記命令語又は前記関連情報を検索し、検索結果から前記命令語又は前記関連情報の選択を受け付けることを特徴とする。   Next, in order to achieve the above object, a program creation support method according to the tenth 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 for each type of the extension unit, and the configuration information including one or more types of the extension units constituting the programmable controller is acquired and acquired. Search the instruction word storage unit and the related information storage unit corresponding to the configuration information Identify the command word, accept the input of the character string, search the specified command word or the related information according to the order of the character string received the input, and select the command word or the related information from the search result It is characterized by accepting.

次に、上記目的を達成するために第11発明に係るコンピュータプログラムは、被制御機器に接続してある拡張ユニット及びCPUユニットで構成してあり、前記被制御機器の動作をシーケンシャル制御するプログラマブルコントローラにおいて実行される制御プログラムの作成を支援するプログラム作成支援装置で実行することが可能なコンピュータプログラムにおいて、前記プログラム作成支援装置は、制御プログラムで用いる命令語を記憶する命令語記憶部と、命令語に関連する関連情報を該命令語に対応付けて記憶する関連情報記憶部とを、前記拡張ユニットの種類ごとにそれぞれ別個に有しており、前記プログラム作成支援装置を、前記プログラマブルコントローラを構成する一又は複数の前記拡張ユニットの種類を含む構成情報を取得する構成情報取得手段と、取得した構成情報に対応する前記命令語記憶部及び前記関連情報記憶部を検索対象として特定する検索対象特定手段、文字列の入力を受け付ける入力受付手段、入力を受け付けた文字列の順序に応じて、特定された前記命令語記憶部又は前記関連情報記憶部を検索する検索手段、及び該検索手段での検索結果から前記命令語又は前記関連情報の選択を受け付ける選択受付手段として機能させることを特徴とする。   Next, in order to achieve the above object, a computer program according to an eleventh 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 for storing the related information related to the instruction word separately for each type of the extension unit, and the program creation support device constitutes the programmable controller Configuration information including one or more types of the extension units Configuration information acquisition means to be acquired, search target specifying means for specifying the command word storage unit and the related information storage unit corresponding to the acquired configuration information as search targets, input receiving means for receiving input of a character string, receiving input Search means for searching for the specified command word storage unit or the related information storage unit according to the order of the character string, and selection for accepting selection of the command word or the related information from the search result of the search means It is characterized by functioning as a receiving means.

また、第12発明に係るコンピュータプログラムは、第11発明において、前記記憶手段は、前記プログラマブルコントローラを構成する一又は複数の前記拡張ユニットに対応する前記命令語記憶部及び前記関連情報記憶部を全て有するようにしてあり、前記検索対象特定手段を、前記構成情報取得手段で取得した構成情報に対応する前記命令語記憶部及び前記関連情報記憶部を検索対象として抽出する手段として機能させることを特徴とする。   In the computer program according to a twelfth aspect of the present invention, in the eleventh aspect of the invention, the storage unit includes all the instruction word storage unit and the related information storage unit corresponding to one or a plurality of the extension units constituting the programmable controller. The search target specifying means functions as means for extracting, as search targets, the command word storage unit and the related information storage unit corresponding to the configuration information acquired by the configuration information acquisition unit. And

また、第13発明に係るコンピュータプログラムは、第11発明において、前記構成情報取得手段を、前記検索手段が検索を開始する都度、前記構成情報を取得する手段として機能させることを特徴とする。   A computer program according to a thirteenth aspect is characterized in that, in the eleventh aspect, the configuration information acquisition means functions as means for acquiring the configuration information every time the search means starts a search.

また、第14発明に係るコンピュータプログラムは、第11乃至第13発明のいずれか1つにおいて、前記検索手段を、前記命令語記憶部を検索対象とした場合に検索した命令語をキー情報として、前記関連情報記憶部を検索する手段として機能させることを特徴とする。   A computer program according to a fourteenth invention is the computer program according to any one of the eleventh to thirteenth inventions, wherein the search means uses the command word searched when the command word storage unit is a search target as key information. It is made to function as a means to search the said related information storage part.

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

また、第16発明に係るコンピュータプログラムは、第11乃至第15発明のいずれか1つにおいて、前記プログラム作成支援装置を、前記制御プログラムにおいて用いられる命令語の使用率を算出する使用率算出手段、及び算出した使用率に基づいて検索結果を分類する分類手段として機能させることを特徴とする。   According to a sixteenth aspect of the present invention, there is provided a computer program according to any one of the eleventh to fifteenth 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.

また、第17発明に係るコンピュータプログラムは、第11乃至第16発明のいずれか1つにおいて、前記プログラム作成支援装置を、文字列の入力を受け付けるインターバルを検出する入力インターバル検出手段、検出したインターバルが一定時間を超えたか否かを判断する入力インターバル判断手段、及び該入力インターバル判断手段で一定時間を超えたと判断した場合、前記検索手段に検索を開始させる手段として機能させることを特徴とする。   A computer program according to a seventeenth aspect of the present invention is the computer program according to any one of the eleventh to sixteenth aspects, wherein the program creation support device has an input interval detecting means for detecting an interval for accepting input of a character string, and the detected interval is 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発明、第10発明及び第11発明では、制御プログラムで用いる命令語と、該命令語に対応付けた命令語に関連する関連情報とを、前記拡張ユニットの種類ごとにそれぞれ別個に記憶しておく。プログラマブルコントローラを構成する一又は複数の拡張ユニットの種類を含む構成情報を取得し、取得した構成情報に対応する命令語及び関連情報を検索対象として特定する。文字列の入力を受け付け、入力を受け付けた文字列の順序に応じて、特定された命令語又は関連情報を検索し、検索結果から命令語又は関連情報の選択を受け付ける。これにより、取得した構成情報に基づいて、検索対象となる命令語及び関連情報を特定することができ、入力を受け付けた文字列の順序に応じて特定した命令語又は関連情報のみを検索することができるので、検索処理負荷を軽減することができ、拡張ユニットの接続状況に応じて検索結果を効果的に絞り込むことが可能となる。   In the first invention, the tenth invention, and the eleventh 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 for each type of the extension unit. Keep it. Configuration information including the type of one or more extension units constituting the programmable controller is acquired, and an instruction word and related information corresponding to the acquired configuration information are specified as a search target. The input of a character string is accepted, the specified instruction word or related information is searched according to the order of the character string received, and the selection of the instruction word or related information is received from the search result. Thereby, based on the acquired configuration information, it is possible to specify the instruction word and the related information to be searched, and to search only the specified instruction word or related information according to the order of the character string received input Therefore, the search processing load can be reduced, and the search results can be narrowed down effectively according to the connection status of the expansion units.

第2発明及び第12発明では、プログラマブルコントローラを構成する一又は複数の拡張ユニットに対応する命令語及び関連情報を事前に全て記憶しておく。取得した構成情報に対応する命令語及び関連情報を検索対象として抽出することにより、取得した構成情報に基づいて、検索対象となる命令語及び関連情報を特定することができ、入力を受け付けた文字列の順序に応じて特定した命令語及び関連情報のみを抽出することができるので、検索処理負荷を最小限にすることができ、CPUユニットに接続してある拡張ユニットに応じて検索結果を効果的に絞り込むことが可能となる。   In the second invention and the twelfth invention, all instruction words and related information corresponding to one or a plurality of extension units constituting the programmable controller are stored in advance. By extracting the command word and related information corresponding to the acquired configuration information as a search target, it is possible to specify the command word and the related information to be searched based on the acquired configuration information, and the character that has received the input Since only the specified instruction word and related information can be extracted according to the sequence of the columns, the search processing load can be minimized, and the search results can be effectively used according to the expansion unit connected to the CPU unit. Can be narrowed down.

第3発明及び第13発明では、検索を開始する都度、構成情報を取得することにより、プログラマブルコントローラに接続してある複数の被制御機器に対応する命令語及び関連情報を事前に記憶しておく必要がなく、検索を開始する都度、構成情報を取得することにより不要な命令語及び関連情報を記憶することがないので、検索対象を絞り込む必要がない。したがって、検索処理負荷をより軽減することが可能となる。   In the third and thirteenth inventions, each time a search is started, the configuration information is acquired to store in advance command words and related information corresponding to a plurality of controlled devices connected to the programmable controller. There is no need, and every time the search is started, unnecessary command words and related information are not stored by acquiring the configuration information, so there is no need to narrow down the search target. Therefore, the search processing load can be further reduced.

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

第5発明及び第15発明では、拡張ユニットに記憶してある、拡張ユニットに固有の命令語及び関連情報を、CPUユニットに複写して記憶しておく。入力を受け付けた文字列に応じて、拡張ユニットに記憶してある命令語及び関連情報か、CPUユニットに複写して記憶してある命令語及び関連情報か、いずれかを検索対象として選択する。これにより、命令語の機能に応じて、拡張ユニットに記憶してある命令語及び関連情報を検索対象として選択するか、CPUユニットに複写して記憶してある命令語及び関連情報を検索対象として選択するかを特定することができ、検索処理をより高速に実行することが可能となる。   In the fifth and fifteenth inventions, the instruction word and related information specific to the expansion unit stored in the expansion unit 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. Thus, depending on the function of the instruction word, the instruction word and related information stored in the expansion unit are selected as search targets, or the instruction word and related information stored in a copy by the CPU unit are searched as search targets. It is possible to specify whether to select, and the search process can be executed at higher speed.

第6発明及び第16発明では、制御プログラムにおいて用いられる命令語の使用率を算出し、算出した使用率に基づいて検索結果を分類する。これにより、制御プログラム中で頻繁に用いられている命令語から順に検索結果を表示することができ、制御プログラムの作成者の使用頻度に即した制御プログラムの作成支援をすることが可能となる。   In the sixth invention and the sixteenth invention, the usage rate of the instruction word used in the control program is calculated, and the search result is 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 becomes possible to support the creation of the control program in accordance with the usage frequency of the creator of the control program.

第7発明では、入力を受け付けた文字列の履歴を履歴情報として記憶しておき、記憶してある履歴情報を優先して分類することにより、検索結果として、過去に使用した命令語及び関連情報を優先して表示することができ、制御プログラムの作成者の使用状況に即した制御プログラムの作成支援をすることが可能となる。   In the seventh aspect of the invention, the history of the received character string 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 as a search result. Can be preferentially displayed, and it becomes possible to support the creation of a control program in accordance with the usage status of the creator of the control program.

第8発明及び第17発明では、入力を受け付けるインターバルを検出し、検出したインターバルが一定時間を超えた場合に検索を開始させる。これにより、命令語等の入力を受け付けた後、一定時間以上経過した時点で検索することができ、制御プログラムの作成者が次に入力するべき文字列に迷った場合等に適切なタイミングで検索結果を表示することで、制御プログラムの作成者の入力状況に即した制御プログラムの作成支援をすることが可能となる。   In the eighth invention and the seventeenth invention, an interval for receiving an input 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 the control program in accordance with the input status of the control program creator.

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

上記構成によれば、取得した構成情報に基づいて、検索対象となる命令語及び関連情報を特定することができ、入力を受け付けた文字列の順序に応じて特定した命令語又は関連情報のみを検索することができるので、検索処理負荷を軽減することができ、被制御機器の接続状況に応じて検索結果を効果的に絞り込むことが可能となる。   According to the above configuration, based on the acquired configuration information, it is possible to specify the command word and the related information to be searched, and only the command word or related information specified according to the order of the character string received input. Since the search can be performed, the search processing load can be reduced, and the search result can be effectively narrowed down according to the connection status of the controlled device.

本発明の実施の形態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. 本発明の実施の形態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. 入力を受け付ける文字列の例示図である。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 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 by using the searched command word as key information in the control program of a 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 was displayed by making the searched relevant information into key information in the control program of a 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及びシステム構成情報記憶部433を備えている。命令語記憶部431は、拡張ユニット3a、3b、・・・に接続してある被制御機器5、5、・・・の操作を指示する命令語(コマンド)を、被制御機器5、5、・・・が接続してある拡張ユニット3a、3b、・・・に対応付けて記憶してある。したがって、制御プログラムの作成時に入力を受け付けた文字列をキー情報として命令語記憶部431を検索することにより、選択候補となる命令語を抽出することが可能となる。   The storage device 43 includes an instruction word storage unit 431, a related information storage unit 432, and a system configuration information storage unit 433. 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は、命令語に対応付けて、命令語に関連する関連情報を記憶する。記憶する関連情報とは、例えば命令語に対応した、命令語の文法に関する情報、構文に関する情報、引数に関する情報等、命令語を機能させるために必要な関連情報全般である。履歴情報記憶部434は、後述する入力受付部にて入力を受け付けた文字列の履歴を、履歴情報として記憶する。   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 434 stores, as history information, the history of the character string received by the input receiving unit described later.

システム構成情報記憶部433は、プログラマブルコントローラを構成するシステム構成情報を記憶する。ここで、「システム構成情報」とは、接続されている拡張ユニット3の種類に関する情報、接続されている拡張ユニット3を識別するユニットID、シリアル番号、拡張ユニット3が接続されているポート番号等の拡張ユニット3に関する情報だけではなく、システム構成の制約条件に関する情報等も含む。システム構成の制約条件とは、例えば1システムにCPUユニット2は1つであること、CPUユニット2は両端、又は電源ユニット若しくはエラー出力ユニットの隣にしか配置することができない、等のシステム構成上の制約条件全般を意味する。   The system configuration information storage unit 433 stores system configuration information constituting the programmable controller. Here, “system configuration information” refers to information related to the type of connected expansion unit 3, unit ID for identifying the connected expansion unit 3, serial number, port number to which the expansion unit 3 is connected, and the like. This includes not only information related to the expansion unit 3 but also information related to constraints on the system configuration. The system configuration constraints include, for example, that there is one CPU unit 2 in one system, and that the CPU unit 2 can be placed only at both ends or next to the power supply unit or error output unit. It means the general constraint conditions.

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は、CPUユニット2に接続されている拡張ユニット3のシステム構成情報を取得する。   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, the configuration information acquisition unit 301 acquires system configuration information of the expansion unit 3 connected to the CPU unit 2.

検索対象特定部302は、例えば取得したシステム構成情報に含まれる拡張ユニット3の種類に関する情報に基づいて、拡張ユニット3に接続してある被制御機器5の操作を指示する命令語及び該命令語に関連する関連情報を記憶してある命令語記憶部431及び関連情報記憶部432を検索対象として特定する。   The search target specifying unit 302, for example, a command word for instructing an operation of the controlled device 5 connected to the expansion unit 3 based on information on the type of the expansion unit 3 included in the acquired system configuration information, and the command word The instruction word storage unit 431 and the related information storage unit 432 storing the related information related to the are specified as search targets.

なお、関連情報とは、例えば命令語に対応した、命令語の意味、文法等を記述した説明文、制御プログラムの作成者がデバイス、変数等に付与したコメント、拡張ユニット3のメモリ空間情報、拡張ユニット3に固有の命令語及びその説明文、制御プログラム上で特定の意味を有する定数に関する情報(マジックナンバー)等である。   The related information includes, for example, the meaning of the instruction word corresponding to the instruction word, an explanatory sentence describing the grammar, the comment given to the device, the variable, etc. by the creator of the control program, the 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.

図4は、本発明の実施の形態1に係るプログラム作成支援装置4の拡張ユニット3の種類と命令語記憶部431に相当する検索対象ファイルとの関係を示す例示図である。図4に示すように、プログラマブルコントローラの構成と拡張ユニットIDとを対応付けて記憶してあり、拡張ユニットIDごとに検索対象となる検索対象ファイルが対応付けて記憶してある。このようなデータ構成としておくことにより、拡張ユニット3の種類に関する情報を含むシステム構成情報を取得した時点で、検索対象ファイルを特定することができる。関連情報記憶部432に相当する検索対象ファイルについても、同様の方法で特定することができる。なお、図4の例では、拡張ユニットID‘0’をCPUユニット2として一括管理している。また、プログラマブルコントローラの構成の番号は、それぞれ拡張ユニット3、3、・・・の実際の接続状態に対応した接続順序を示しており、CPUユニット2は‘0’と、エンドユニットは空白としている。   FIG. 4 is an exemplary diagram showing a relationship between the type of the extension unit 3 of the program creation support apparatus 4 according to the first embodiment of the present invention and the search target file corresponding to the command word storage unit 431. As shown in FIG. 4, the configuration of the programmable controller 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 setting it as such a data structure, a search object file can be specified at the time of acquiring the system configuration information including the information regarding the type of the expansion unit 3. The search target file corresponding to the related information storage unit 432 can also be specified by the same method. In the example of FIG. 4, the expansion unit ID “0” is collectively managed as the CPU unit 2. The numbers of the configuration of the programmable controller indicate the connection order corresponding to the actual connection state of the extension units 3, 3,..., The CPU unit 2 is “0”, and the end unit is blank. .

なお、システム構成情報を取得するタイミングは、拡張ユニット3をCPUユニット2へ接続した時点に限定されるものではなく、プログラム作成支援装置4の制御部41が検索処理を開始する都度、接続してある拡張ユニット3のシステム構成情報を取得するようにしても良い。これにより、常に最新の拡張ユニット3の接続状況に応じたシステム構成情報を取得することができ、確実に制御プログラムの作成を支援することが可能となる。また、システム構成情報をプログラム作成支援装置4から設定することができるようにしても良い。   Note that the timing for acquiring the system configuration information is not limited to the point in time when the expansion unit 3 is connected to the CPU unit 2, but is connected every time the control unit 41 of the program creation support device 4 starts the search process. The system configuration information of a certain extension unit 3 may be acquired. As a result, the system configuration information corresponding to the connection status of the latest extension unit 3 can always be acquired, and the creation of the control program can be reliably supported. Further, the system configuration information may be set from the program creation support device 4.

図3に戻って、入力受付部303は、キーボード441、マウス442等の入力装置を用いて、命令語を含む制御プログラムのソースコードの入力を受け付ける。図5は、入力を受け付ける文字列の例示図である。   Returning to FIG. 3, the input receiving unit 303 receives an input of a source code of a control program including an instruction word by using an input device such as a keyboard 441 and a mouse 442. FIG. 5 is an illustration of a character string that accepts input.

本実施の形態1では、表示装置451の文字列入力領域501に文字列の入力を受け付ける。本実施の形態1では、制御プログラムはいわゆるラダー形式のプログラムであり、最初の文字列は命令語である。例えば図5(a)に示すように、文字列入力領域501に一の文字列「COMMAND」の入力を受け付けた場合、プログラム作成支援装置4の制御部41は、文字列「COMMAND」が命令語に関する文字列であると判断する。   In the first embodiment, input of a character string is accepted in the character string input area 501 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. 5A, when the input of one character string “COMMAND” is received in the character string input area 501, 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.

また、図5(b)に示すように、文字列入力領域501に複数の文字列「COMMAND A1 A2・・・」の入力を受け付けた場合、プログラム作成支援装置4の制御部41は、空白(スペース)の存在を検出し、最初の空白までの文字列「COMMAND」が命令語に関する文字列であると判断する。また、空白により二番目の文字列「A1」、三番目の文字列「A2」、・・・というように順次文字列を特定することにより、それぞれの文字列が命令語の関連情報に関する文字列であることを順次判断することができる。   As shown in FIG. 5B, when a plurality of character strings “COMMAND A1 A2...” Are received in the character string input area 501, the control unit 41 of the program creation support apparatus 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.

もちろん、空白の存在を検出することにより、文字列の位置を判定する方法に限定されるものではなく、命令語の文法に応じて変更することができる。例えば図5(c)に示すように、文字列入力領域501に文字列「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. 5C, when the input of the character string “COMMAND (A1, A2,...)” Is received in the character string input area 501, 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.

また、文字列の入力の受付が終了したか否かを、入力を受け付けるインターバルで判断しても良い。図6は、本発明の実施の形態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. 6 is a flowchart showing the procedure of input interval determination processing of the program creation support apparatus 4 according to Embodiment 1 of the present invention.

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

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

制御部41が、新たなキーイン操作を検知していないと判断した場合(ステップS605:NO)、制御部41は、処理をステップS604へ戻す。制御部41が、一定時間経過したと判断した場合(ステップS604:YES)、制御部41は、キーイン操作の終了を検知する(ステップS607)。すなわち、図3の機能ブロック図において、キーイン操作の開始から終了までのインターバルを検出する入力インターバル検出部313、及び検出したインターバルが一定時間を超えているか否かを判断する入力インターバル判断部314として機能する。   When the control unit 41 determines that a new key-in operation has not been detected (step S605: NO), the control unit 41 returns the process to step S604. When the control unit 41 determines that a certain time has elapsed (step S604: YES), the control unit 41 detects the end of the key-in operation (step S607). 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に戻って、検索部304は、入力を受け付けた文字列について、まず命令語をキー情報として命令語記憶部431を検索し、選択候補となる命令語を抽出して表示装置451に表示する。本実施の形態1では、最初の文字列が命令語であることから、最初の文字列をキー情報として命令語記憶部431を検索する。命令語記憶部431の検索は、完全一致検索であっても良いが、特にこれに限定されるものではなく、あいまい検索、部分一致検索であっても良いことは言うまでもない。   Returning to FIG. 3, the search unit 304 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.

また、命令語記憶部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.

選択受付部305は、検索した結果である候補文字列から命令語又は関連情報の選択を受け付ける。これにより、あいまいな記憶に依存して制御プログラムの作成作業を開始した場合であっても、本来コーディングするべき候補文字列を確実に表示及び選択することができる。   The selection receiving unit 305 receives selection of a command word or related information from a candidate character string that is a result of the search. 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は、CPUユニット2に接続してある拡張ユニット3のシステム構成情報を取得する(ステップS701)。   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 device 4 acquires system configuration information of the expansion unit 3 connected to the CPU unit 2 (step S701).

制御部41は、取得したシステム構成情報に含まれる拡張ユニット3の種類に関する情報に基づいて、拡張ユニット3に固有の関連情報を記憶してある命令語記憶部431及び関連情報記憶部432を検索対象として特定する(ステップS702)。すなわち、CPUユニット2に接続してある拡張ユニット3、3、・・・の命令語を記憶している命令語記憶部431、及びCPUユニット2に接続してある拡張ユニット3、3、・・・の命令語の関連情報を記憶している関連情報記憶部432を、検索対象として特定する。事前に検索対象となる拡張ユニット3、3、・・・の命令語及び関連情報を全て記憶しておき、その中から検索対象とするべき命令語及び関連情報を抽出するようにしても良いし、特定された命令語記憶部431及び関連情報記憶部432を検索対象としても良い。   The control unit 41 searches the instruction word storage unit 431 and the related information storage unit 432 in which related information unique to the expansion unit 3 is stored based on information on the type of the expansion unit 3 included in the acquired system configuration information. The target is specified (step S702). That is, the instruction word storage unit 431 that stores the instruction words of the extension units 3, 3,... Connected to the CPU unit 2, and the extension units 3, 3,. The related information storage unit 432 storing the related information of the command word is specified as a search target. It is also possible to store in advance all the instruction words and related information of the expansion units 3, 3,... To be searched, and extract the instruction words and related information to be searched from among them. The specified instruction word storage unit 431 and the related information storage unit 432 may be searched.

制御部41は、文字列の入力を受け付け(ステップS703)、入力を受け付けた文字列を命令語と、その他の関連情報とに類別する(ステップS704)。両者を類別する方法は、図5に例示した方法と同様である。   The control unit 41 receives an input of a character string (step S703), and classifies the input character string into an instruction word and other related information (step S704). The method for classifying both is the same as the method illustrated in FIG.

制御部41は、命令語をキー情報として命令語記憶部431を検索対象として検索し、候補文字列を抽出する(ステップS705)。図8は、ラダー形式の制御プログラムにおいて、命令語をキー情報として検索された候補文字列が表示された画面の例示図である。図8の例では、文字列入力領域81にて入力を受け付けた文字列「バッファ」に対して、制御プログラムにおいて用いるべき命令語の候補文字列をプルダウンメニュー82にて表示している。制御プログラムの作成者は、自分の求める作業に応じた命令語を容易に選択することができる。   The control unit 41 searches the command word storage unit 431 using the command word as key information as a search target, and extracts a candidate character string (step S705). 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は、抽出した候補文字列を所定のルールで分類(ソート)し(ステップS706)、候補文字列の選択を受け付ける(ステップS707)。候補文字列の分類のルールは特に限定されるものではないが、特定の命令語との関連度、半角/全角の区別、大文字/小文字の区別等に基づいてランク付けを実行し、ランクの降順に表示すれば良い。   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 S706), and accepts selection of candidate character strings (step S707). 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の使用率算出部306が、制御プログラムにおいて用いられる命令語、あるいは関連情報の使用率を算出し、分類部307にて、算出した使用率に基づいて検索結果である候補文字列を使用率の降順に分類して表示する。   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 306 in FIG. 3 calculates the usage rate of a command word or related information used in the control program, and the classification unit 307 searches for candidate character strings that are search results based on the calculated usage rate. 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に示す入力受付部303にて、入力を受け付けた文字列を履歴情報として履歴情報記憶部434に記憶しておき、分類部307が、記憶してある履歴情報を優先して分類すれば良い。   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, the input reception unit 303 shown in FIG. 3 stores the input character string as history information in the history information storage unit 434, and the classification unit 307 gives priority to the stored history information. Can be classified.

図7に戻って、プログラム作成支援装置4の制御部41は、文字列が確定したか否かを判断する(ステップS708)。すなわち、全ての文字列について、候補文字列の選択を受け付けたか否かを判断する。制御部41が、文字列が確定していないと判断した場合(ステップS708:NO)、制御部41は、関連情報をキー情報として関連情報記憶部432を検索対象として検索し、候補文字列を抽出する(ステップS709)。   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 S <b> 708). 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 finalized (step S708: NO), the control unit 41 searches the related information storage unit 432 using the related information as key information and searches for the candidate character string. Extract (step S709).

図10は、ラダー形式の制御プログラムにおいて、検索された関連情報をキー情報として検索された候補文字列が表示された画面の例示図である。図10の例では、文字列入力領域101にて入力を受け付けた文字列「位置決め」に対して、デバイスとして用いるべき候補文字列をプルダウンメニュー102にて表示している。制御プログラムの作成者は、自分の求める作業に応じたデバイスを容易に選択することができる。   FIG. 10 is a view showing an example of a screen on which a candidate character string searched using the searched related information as key information in the 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 according to his / her work.

図7に戻って、プログラム作成支援装置4の制御部41は、抽出された候補文字列を所定のルールで分類(ソート)し(ステップS710)、候補文字列の選択を受け付け(ステップS711)、処理をステップS708へ戻す。候補文字列の分類のルールは特に限定されるものではないが、特定の命令語との関連度、半角/全角の区別、大文字/小文字の区別等に基づいてランク付けを実行し、ランクの降順に表示すれば良い。また、作成している制御プログラム中での使用回数、使用頻度等に基づいてランク付けを実行しても良い。   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 S710), accepts selection of the candidate character strings (step S711), The process returns to step S708. 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が、文字列が確定したと判断した場合(ステップS708:YES)、すなわち、制御プログラムのプログラムコードが確定したと判断した場合、確定した文字列をプログラムコードとして記憶手段43に記憶し(ステップS712)、次のコマンドのコーディング作業を続行する。   When the control unit 41 determines that the character string is confirmed (step S708: 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 S712), the coding operation of the next command is continued.

以上のように本実施の形態1によれば、取得したシステム構成情報に基づいて、検索対象となる命令語及び関連情報を特定することができ、入力を受け付けた文字列の順序に応じて特定した命令語又は関連情報のみを検索することができるので、検索処理負荷を軽減することができ、拡張ユニットの接続状況に応じて検索結果を効果的に絞り込むことが可能となる。   As described above, according to the first embodiment, based on the acquired system configuration information, it is possible to specify a command word and related information to be searched, and specify according to the order of the character strings received. Therefore, it is possible to reduce the search processing load and effectively narrow down the search results according to the connection status of the expansion units.

なお、上述した実施の形態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 unit 41 of the program creation support apparatus 4 can perform a search via a network or the like, the program creation support apparatus 4 may be stored anywhere. For example, the created control program may be stored in the memory 21 built in the CPU unit 2, or may be stored in the memories 31a, 31b,... Built in the expansion units 3a, 3b,. .

また、システム構成情報の設定は、図3に示すシステム構成情報設定部315を介して設定しても良い。システム構成情報設定部315では、表示装置451に拡張ユニット3の選択を受け付ける選択画面を表示し、マウス442等の操作により選択を受け付けることで、選択を受け付けた拡張ユニット3に関する情報を、システム構成情報に追加、又はシステム構成情報から削除することができ、更新されたシステム構成情報は、システム構成情報記憶部433に記憶される。このようにすることで、拡張ユニット3の着脱に伴って、若しくは実際に拡張ユニット3を着脱することなくシステム構成情報を変更することができ、拡張ユニット3の種類と命令語記憶部431に相当する検索対象ファイルを容易に拡張、変更等することが可能となる。   The system configuration information may be set via a system configuration information setting unit 315 shown in FIG. The system configuration information setting unit 315 displays a selection screen for accepting the selection of the expansion unit 3 on the display device 451 and accepts the selection by operating the mouse 442 or the like, so that information regarding the expansion unit 3 that has accepted the selection is displayed in the system configuration. The updated system configuration information can be added to the information or deleted from the system configuration information, and the updated system configuration information is stored in the system configuration information storage unit 433. By doing so, the system configuration information can be changed with or without the extension unit 3 being attached or detached, and it corresponds to the type of the extension unit 3 and the instruction word storage unit 431. It is possible to easily expand or change the search target file.

(実施の形態2)
本発明の実施の形態2に係るプログラム作成支援装置4により制御プログラムの作成支援対象となるプログラマブルコントローラ1の構成、プログラム作成支援装置4の構成は、実施の形態1と同様であることから、同一の符号を付することにより詳細な説明は省略する。本実施の形態2では、被制御機器5の動作を制御する拡張ユニット3及びCPUユニット2に、それぞれ命令語及び関連情報を記憶しておき、どちらに記憶してある命令語及び関連情報を検索対象とするか選択する点で実施の形態1とは相違する。
(Embodiment 2)
The configuration of the programmable controller 1 that is a target for supporting the creation of a control program by the program creation support device 4 according to the second embodiment of the present invention and the configuration of the program creation support device 4 are the same as those in the first embodiment. Detailed description is omitted by attaching the reference numeral. 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 apparatus 4 according to Embodiment 2 of the present invention does not include the instruction 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.

入力受付部303の検索対象選択部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 reception unit 303 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 31a (31b) of the expansion 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 システム構成情報記憶部
434 履歴情報記憶部
DESCRIPTION OF SYMBOLS 1 Programmable controller 2 CPU unit 3, 3a, 3b Expansion unit 4 Program creation assistance apparatus 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 System configuration information storage unit 434 History information storage unit

Claims (11)

被制御機器に接続してある拡張ユニット及び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 unit that separately stores related information related to a command word in association with the command word, for each type of the extension unit;
Configuration information acquisition means for acquiring configuration information including one or a plurality of types of the extension units constituting the programmable controller;
Search target specifying means for specifying the command word storage unit and the related information storage unit corresponding to the acquired configuration information as a search target;
An input receiving means for receiving input of a character string;
Search means for searching the specified instruction word storage unit or the related information storage unit according to the order of the character string 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 has all the instruction word storage unit and the related information storage unit corresponding to one or a plurality of the extension units constituting the programmable controller,
2. The search target specifying unit is configured to extract the command word storage unit and the related information storage unit corresponding to the configuration information acquired by the configuration information acquisition unit as search targets. Program creation support device.
前記構成情報取得手段は、前記検索手段が検索を開始する都度、前記構成情報を取得するようにしてあることを特徴とする請求項1記載のプログラム作成支援装置。   2. The program creation support apparatus according to claim 1, wherein the configuration information acquisition unit acquires the configuration information every time the search unit starts a search. 前記検索手段は、前記命令語記憶部を検索対象とした場合に検索した命令語をキー情報として、前記関連情報記憶部を検索するようにしてあることを特徴とする請求項1乃至3のいずれか一項に記載のプログラム作成支援装置。   4. The search unit according to claim 1, wherein the search means searches the related information storage unit using the command word searched when the command word storage unit is a search target as key information. The program creation support device according to claim 1. 前記拡張ユニットに記憶してある、前記拡張ユニットに固有の命令語及び関連情報を、前記CPUユニットに複写して記憶する情報複写手段と、
入力を受け付けた文字列に応じて、前記拡張ユニットに記憶してある命令語及び関連情報か、前記CPUユニットに複写して記憶してある命令語及び関連情報か、いずれかを検索対象として選択する選択手段を備えることを特徴とする請求項1乃至4のいずれか一項に記載のプログラム作成支援装置。
Information copying means for storing a command word and related information unique to the expansion unit, stored in the expansion unit, 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 claim 1, further comprising a selection unit that performs the selection.
前記制御プログラムにおいて用いられる命令語の使用率を算出する使用率算出手段と、
算出した使用率に基づいて検索結果を分類する分類手段と
を備えることを特徴とする請求項1乃至5のいずれか一項に記載のプログラム作成支援装置。
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.
入力を受け付けた文字列を履歴情報として記憶する履歴情報記憶手段を備え、
前記分類手段は、記憶してある前記履歴情報を優先して分類するようにしてあることを特徴とする請求項6記載のプログラム作成支援装置。
A history information storage means for storing the input character string as history information;
7. The program creation support apparatus according to claim 6, wherein the classification means classifies the stored history information with priority.
文字列の入力を受け付けるインターバルを検出する入力インターバル検出手段と、
検出したインターバルが一定時間を超えたか否かを判断する入力インターバル判断手段と
を備え、
該入力インターバル判断手段で一定時間を超えたと判断した場合、前記検索手段に検索を開始させるようにしてあることを特徴とする請求項1乃至7のいずれか一項に記載のプログラム作成支援装置。
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
8. The program creation support apparatus according to claim 1, wherein when the input interval determination unit determines that a certain time has passed, the search unit starts a search.
前記検索手段は、部分一致検索又はあいまい検索を行うようにしてあることを特徴とする請求項1乃至8のいずれか一項に記載のプログラム作成支援装置。   9. 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:
A command word used in the control program and related information related to the command word associated with the command word are stored separately for each type of the extension unit,
Obtaining configuration information including one or a plurality of types of the extension units constituting the programmable controller;
Identify the command word storage unit and the related information storage unit corresponding to the acquired configuration information as a search target,
Accepts input of strings,
In accordance with the order of the character string that accepted the input, the specified instruction word or the related information is searched,
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 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 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 instruction word in association with the instruction word, and for each type of the extension unit,
The program creation support device,
Configuration information acquisition means for acquiring configuration information including one or a plurality of types of the extension units constituting the programmable controller;
Search target specifying means for specifying the command word storage unit and the related information storage unit corresponding to the acquired configuration information as a search target,
Input accepting means for accepting input of a character string;
Search means for searching the specified command word storage unit or the related information storage unit according to the order of the character string received the input, and selection of the command word or the related information from the search result in the search means A computer program that functions as a selection receiving means for receiving a message.
JP2009174467A 2009-07-27 2009-07-27 Program creation support apparatus, program creation support method, and computer program Expired - Fee Related JP5303391B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009174467A JP5303391B2 (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
JP2009174467A JP5303391B2 (en) 2009-07-27 2009-07-27 Program creation support apparatus, program creation support method, and computer program

Publications (3)

Publication Number Publication Date
JP2011028562A JP2011028562A (en) 2011-02-10
JP2011028562A5 JP2011028562A5 (en) 2012-05-10
JP5303391B2 true JP5303391B2 (en) 2013-10-02

Family

ID=43637226

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009174467A Expired - Fee Related JP5303391B2 (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) JP5303391B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101398718B1 (en) 2012-06-29 2014-05-27 엘에스산전 주식회사 Apparatus and method for processing data
US10203681B2 (en) 2013-11-20 2019-02-12 Mistubishi Electric Corporation Sequence-program-creation supporting apparatus
JP6224575B2 (en) 2014-12-19 2017-11-01 ファナック株式会社 Ladder program search device that can search ladder circuits based on specified signal operation conditions
JP6837608B1 (en) * 2020-02-04 2021-03-03 三菱電機株式会社 Program creation support device, program creation support method and program creation support program

Family Cites Families (5)

* 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
JP3391257B2 (en) * 1998-03-31 2003-03-31 日本電気株式会社 Kana-kanji automatic conversion method and kana-kanji automatic conversion device
JP2004259084A (en) * 2003-02-27 2004-09-16 Yokogawa Electric Corp Method and device for input support of program
JP2007310571A (en) * 2006-05-17 2007-11-29 Keyence Corp Control program creating device, editing program and program creating method

Also Published As

Publication number Publication date
JP2011028562A (en) 2011-02-10

Similar Documents

Publication Publication Date Title
JP5500896B2 (en) Program creation support apparatus, program creation support method, and computer program
JPH1027089A (en) Computer operation assisting device
JP5303391B2 (en) Program creation support apparatus, program creation support method, and computer program
JP2008257444A (en) Similar file management device, method therefor and program therefor
JP6210398B2 (en) Translation support device, translation support system, and program thereof
JP2011191862A (en) File management apparatus, file management system, and file management program
JP2010282241A (en) File management device, file management system, file management method, and program
JP2009271659A (en) Information processing apparatus, information processing method, information processing program and recording medium
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
JP2008084028A (en) Database retrieval system and database retrieving method
JP5927719B2 (en) Screen conversion system
JP5640700B2 (en) Information search device, search input method, and search input program
KR101582155B1 (en) Method, system and recording medium for character input having easy correction function and file distribution system
JP5790820B2 (en) Inconsistency detection apparatus, program and method, correction support apparatus, program and method
US10402785B2 (en) Terminal apparatus
JP2005115457A (en) Method of retrieving document file
JP2010218228A (en) Document preparation support device, method therefor, and program therefor
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
JP2005327023A (en) Retrieval system of full-text search using hit number expectancy
JP5742454B2 (en) Input support program, input support apparatus, and input support method
JP5971069B2 (en) Information processing apparatus, title extraction method, and program
JPH10133866A (en) Method for shift conversion processing
JPWO2014115231A1 (en) Input support system, input support method, and input support program

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

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130624

R150 Certificate of patent or registration of utility model

Ref document number: 5303391

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

LAPS Cancellation because of no payment of annual fees