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 PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000004590 computer program Methods 0.000 title claims abstract description 27
- 230000006870 function Effects 0.000 claims description 27
- 238000004364 calculation method Methods 0.000 claims description 4
- 238000001514 detection method Methods 0.000 claims 1
- 230000015654 memory Effects 0.000 description 32
- 238000010586 diagram Methods 0.000 description 13
- 238000004891 communication Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 7
- 239000000284 extract Substances 0.000 description 4
- 238000005259 measurement Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Landscapes
- Programmable Controllers (AREA)
Abstract
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
そこで、制御プログラムのコーディング作業を補助する方法として、マニュアルの提供だけでなく、例えば入力するプログラムコードに対する説明文を、コーディングした内容に応じて画面に表示する方法がよく用いられている。また、例えば特許文献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
しかし、上述した特許文献1のように単純に検索対象を拡大しただけでは、検索処理の柔軟度は高まるものの、検索対象が拡大することにより検索時間が増大し、検索結果を絞り込むことが困難になるという問題が生じ、制御プログラムの作成者にとっては円滑なコーディング作業の阻害要因となるおそれがあるという問題点があった。
However, simply expanding the search target as in
本発明は斯かる事情に鑑みてなされたものであり、制御プログラムの作成者の負担を軽減し、効率よく制御プログラムの作成を支援することが可能なプログラム作成支援装置、プログラム作成支援方法及びコンピュータプログラムを提供することを目的とする。 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.
以下、本発明の実施の形態に係るプログラム作成支援装置について、図面に基づいて具体的に説明する。 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
CPUユニット2は、内蔵するメモリ21に記憶してある制御プログラムに従って、接続してある拡張ユニット3a、3b、・・・に対して指令を送出するCPUを備えている。また、拡張ユニット3a、3b、・・・は、CPUユニット2からの指令に従って、接続してある被制御機器5、5、・・・の動作を制御する。なお、被制御機器5、5、・・・の動作を制御するためのパラメータ情報等は、拡張ユニット3a、3b、・・・が内蔵するメモリ31a、31b、・・・に記憶してある。
The
プログラム作成支援装置4は、CPUユニット2とデータ通信することが可能に接続してあり、作成した制御プログラムをCPUユニット2へ送信する。図2は、本発明の実施の形態1に係るプログラム作成支援装置4を、CPU等の制御部を用いて構成した場合の構成を示すブロック図である。
The program
図2に示すように本実施の形態1に係るプログラム作成支援装置4は、少なくとも制御部(CPU)41、メモリ42、ハードディスク等の記憶装置43、I/Oインタフェース44、ビデオインタフェース45、通信インタフェース46、可搬型ディスクドライブ47及び上述したハードウェアを接続する内部バス48で構成されている。
As shown in FIG. 2, the program
制御部41は、内部バス48を介してプログラム作成支援装置4の上述したようなハードウェア各部と接続されており、上述したハードウェア各部の動作を制御するとともに、記憶装置43に記憶しているコンピュータプログラム100に従って、種々のソフトウェア的機能を実行する。メモリ42は、SRAM、SDRAM等の揮発性メモリで構成され、コンピュータプログラム100の実行時にロードモジュールが展開され、コンピュータプログラム100の実行時に発生する一時的なデータ等を記憶する。
The
記憶装置43は、内蔵される固定型記憶装置(ハードディスク)、ROM等で構成されている。記憶装置43に記憶しているコンピュータプログラム100は、プログラム及びデータ等の情報を記録したDVD、CD−ROM等の可搬型記録媒体90から、可搬型ディスクドライブ47によりダウンロードされ、実行時には記憶装置43からメモリ42へ展開して実行される。もちろん、通信インタフェース46を介してネットワークに接続されている外部のコンピュータからダウンロードされたコンピュータプログラムであっても良い。
The
また記憶装置43は、命令語記憶部431及び関連情報記憶部432を備えている。命令語記憶部431は、拡張ユニット3a、3b、・・・に接続してある被制御機器5、5、・・・の操作を指示する命令語(コマンド)を、被制御機器5、5、・・・が接続してある拡張ユニット3a、3b、・・・に対応付けて記憶してある。したがって、制御プログラムの作成時に入力を受け付けた文字列をキー情報として命令語記憶部431を検索することにより、選択候補となる命令語を抽出することが可能となる。
The
関連情報記憶部432は、命令語に対応付けて、命令語に関連する関連情報を記憶する。記憶する関連情報とは、例えば命令語に対応した、命令語の文法に関する情報、構文に関する情報、引数に関する情報等、命令語を機能させるために必要な関連情報全般である。履歴情報記憶部433は、後述する入力受付部にて入力を受け付けた文字列の履歴を、履歴情報として記憶する。
The related
I/Oインタフェース44は、キーボード441、マウス442等の入力装置と接続され、データの入力を受け付ける。また、ビデオインタフェース45は、CRTモニタ、LCD等の表示装置451と接続され、所定の画像を表示する。
The I /
通信インタフェース46は内部バス48に接続されており、インターネット、LAN、WAN等の外部のネットワークに接続されることにより、外部のコンピュータ等とデータ送受信することが可能となっている。また、通信線を介してCPUユニット2へデータ送受信することが可能となっている。
The
図3は、本発明の実施の形態1に係るプログラム作成支援装置4の機能を示す機能ブロック図である。図3において、入力受付部301は、キーボード441、マウス442等の入力装置を用いて、命令語を含む制御プログラムのソースコードの入力を受け付ける。図4は、入力を受け付ける文字列の例示図である。
FIG. 3 is a functional block diagram showing functions of the program
本実施の形態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
また、図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
例えば図3に示すように入力位置判定部311は、入力を受け付けた文字列中の空白の存在を検出し、それぞれ何文字目から何文字目までが何番目の文字列であるのか位置を判定する。そして、文字列判定部312は、それぞれの位置における文字列がどの命令語、どの関連情報であるかを判定することにより、判定された命令語に関する文字列、関連情報に関する文字列を、それぞれ命令語記憶部431、関連情報記憶部432と照会するためのキー情報とすることができる。
For example, as shown in FIG. 3, the input
もちろん、空白の存在を検出することにより、文字列の位置を判定する方法に限定されるものではなく、命令語の文法に応じて変更することができる。例えば図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
また、文字列の入力の受付が終了したか否かを、入力を受け付けるインターバルで判断しても良い。図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
図5に示すように、プログラム作成支援装置4の制御部41は、キーボード441のキーイン操作の監視を開始する(ステップS501)。制御部41は、キーイン操作の開始を検知し(ステップS502)、同時に内蔵しているタイマ等を用いて計時を開始する(ステップS503)。
As shown in FIG. 5, the
制御部41は、一定時間経過したか否かを判断し(ステップS504)、制御部41が、一定時間経過していないと判断した場合(ステップS504:NO)、制御部41は、新たなキーイン操作を検知したか否かを判断する(ステップS505)。制御部41が、新たなキーイン操作を検知したと判断した場合(ステップS505:YES)、制御部41は、キーイン操作が継続していると判断し、計時をリセット(タイマをゼロリセット)し(ステップS506)、処理をステップS504へ戻す。
The
制御部41が、新たなキーイン操作を検知していないと判断した場合(ステップS505:NO)、制御部41は、処理をステップS504へ戻す。制御部41が、一定時間経過したと判断した場合(ステップS504:YES)、制御部41は、キーイン操作の終了を検知する(ステップS507)。すなわち、図3の機能ブロック図において、キーイン操作の開始から終了までのインターバルを検出する入力インターバル検出部313、及び検出したインターバルが一定時間を超えているか否かを判断する入力インターバル判断部314として機能する。
When the
図3に戻って、検索部302は、入力を受け付けた文字列について、まず命令語をキー情報として命令語記憶部431を検索し、選択候補となる命令語を抽出して表示装置451に表示する。本実施の形態1では、最初の文字列が命令語であることから、最初の文字列をキー情報として命令語記憶部431を検索する。命令語記憶部431の検索は、完全一致検索であっても良いが、特にこれに限定されるものではなく、あいまい検索、部分一致検索であっても良いことは言うまでもない。
Returning to FIG. 3, the
次に、命令語の次の文字列をキー情報として、関連情報記憶部432を検索し、選択候補となる関連情報を抽出して表示装置451に表示する。本実施の形態1では、最初の文字列が命令語であることから、二番目以降の文字列をキー情報とした場合には関連情報記憶部432を検索する。関連情報記憶部432の検索は、完全一致検索であっても良いが、特にこれに限定されるものではなく、あいまい検索、部分一致検索であっても良いことは言うまでもない。
Next, the related
なお、命令語の種類は、被制御機器5の種類ごと、すなわちCPUユニット2に接続してある拡張ユニット3の種類ごとに特定される。したがって、被制御機器5の種類、すなわち被制御機器5の動作を制御する拡張ユニット3の種類に対応付けてそれぞれ別個に複数の命令語記憶部431、431、・・・及び関連情報記憶部432、432、・・・に記憶しておくことで、検索対象を事前に絞り込むことができ、検索処理負荷を軽減することができる。
The type of instruction word is specified for each type of controlled
例えば指定受付部306を別個に備えておき、制御プログラムで動作を制御する対象となる拡張ユニット3の種類の指定を受け付ける。もちろん、拡張ユニット3が動作を直接制御する被制御機器5の種類の指定を受け付けても良い。検索部302は、指定を受け付けた拡張ユニット3の種類に応じて、検索対象となる命令語記憶部431又は関連情報記憶部432を抽出する。検索部302は、抽出した命令語記憶部431又は関連情報記憶部432を検索対象として検索する。
For example, a
図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
また、命令語記憶部431を検索対象とした場合に検索した命令語をキー情報として、関連情報記憶部432を検索することが好ましい。選択候補として抽出した命令語に対応する関連情報のみを検索することができるからである。
In addition, when the instruction
選択受付部303は、検索結果である候補文字列から命令語又は関連情報の選択を受け付ける。これにより、あいまいな記憶に依存して制御プログラムの作成作業を開始した場合であっても、本来コーディングするべき候補文字列を確実に表示及び選択することができる。
The
図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
また、関連情報とは、例えば命令語に対応した、命令語の意味、文法等を記述した説明文、制御プログラムの作成者がデバイス、変数等に付与したコメント、拡張ユニット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
制御部41は、命令語をキー情報として命令語記憶部431を検索対象として検索し、候補文字列を抽出する(ステップS703)。図8は、ラダー形式の制御プログラムにおいて、命令語をキー情報として検索された候補文字列が表示された画面の例示図である。図8の例では、文字列入力領域81にて入力を受け付けた文字列「バッファ」に対して、制御プログラムにおいて用いるべき命令語の候補文字列をプルダウンメニュー82にて表示している。制御プログラムの作成者は、自分の求める作業に応じた命令語を容易に選択することができる。
The
図7に戻って、プログラム作成支援装置4の制御部41は、抽出した候補文字列を所定のルールで分類(ソート)し(ステップS704)、候補文字列の選択を受け付ける(ステップS705)。候補文字列の分類のルールは特に限定されるものではないが、特定の命令語との関連度、半角/全角の区別、大文字/小文字の区別等に基づいてランク付けを実行し、ランクの降順に表示すれば良い。
Returning to FIG. 7, the
また、作成している制御プログラム中での使用回数、使用頻度等に基づいてランク付けを実行しても良い。すなわち、図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
図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
制御部41は、算出した使用率の降順に候補文字列を分類して(ステップS902)、表示装置451に表示する。
The
また、候補文字列の分類に、過去に入力を受け付けた文字列に関する履歴情報を考慮しても良い。同じ制御プログラムの作成者であれば、同様の命令語を使用する可能性が高いからである。この場合、例えば図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
図7に戻って、プログラム作成支援装置4の制御部41は、文字列が確定したか否かを判断する(ステップS706)。すなわち、全ての文字列について、候補文字列の選択を受け付けたか否かを判断する。制御部41が、文字列が確定していないと判断した場合(ステップS706:NO)、制御部41は、関連情報をキー情報として関連情報記憶部432を検索対象として検索し、候補文字列を抽出する(ステップS707)。
Returning to FIG. 7, the
図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-
図7に戻って、プログラム作成支援装置4の制御部41は、抽出された候補文字列を所定のルールで分類(ソート)し(ステップS708)、候補文字列の選択を受け付け(ステップS709)、処理をステップS706へ戻す。候補文字列の分類のルールは特に限定されるものではないが、特定の命令語との関連度、半角/全角の区別、大文字/小文字の区別等に基づいてランク付けを実行し、ランクの降順に表示すれば良い。また、作成している制御プログラム中での使用回数、使用頻度等に基づいてランク付けを実行しても良い。
Returning to FIG. 7, the
制御部41が、文字列が確定したと判断した場合(ステップS706:YES)、すなわち、制御プログラムのプログラムコードが確定したと判断した場合、確定した文字列をプログラムコードとして記憶手段43に記憶し(ステップS710)、次のコマンドのコーディング作業を続行する。
When the
以上のように本実施の形態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
(実施の形態2)
本発明の実施の形態2に係るプログラム作成支援装置4により制御プログラムの作成支援の対象となるプログラマブルコントローラ1の構成、プログラム作成支援装置4の構成は、実施の形態1と同様であることから、同一の符号を付することにより詳細な説明は省略する。本実施の形態2では、被制御機器5の動作を制御する拡張ユニット3及びCPUユニット2に、それぞれ命令語及び関連情報を記憶しておき、どちらに記憶してある命令語及び関連情報を検索対象とするか選択する点で実施の形態1とは相違する。
(Embodiment 2)
Since the configuration of the
図11は、本発明の実施の形態2に係るプログラム作成支援装置4の機能を示す機能ブロック図である。図11において、実施の形態1と同様の機能を有する機能ブロックについては、同一の符号を付することにより詳細な説明は省略する。
FIG. 11 is a functional block diagram showing functions of the program
図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
情報複写部1101は、CPUユニット2に拡張ユニット3、3、・・・が新たに接続された時点で、拡張ユニット3に固有の命令語及び関連情報をCPUユニット2へ複写する。具体的には、CPUユニット2に接続してある拡張ユニット3a、3b、・・・のメモリ31a、31b、・・・に備えている命令語記憶部32a、32b、・・・、及び関連情報記憶部33a、33b、・・・にそれぞれ記憶してある命令語及び関連情報を、CPUユニット2のメモリ21の命令語記憶部22及び関連情報記憶部23に複写する。
The
入力受付部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
図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
例えば入力を受け付けた文字列が命令語「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
以上のように本実施の形態2によれば、入力を受け付けた文字列に応じて、被制御機器5の動作を制御する拡張ユニット3に記憶してある命令語及び関連情報を検索対象とするか、CPUユニット2に複写して記憶してある拡張ユニット3に固有の命令語及び関連情報を検索対象とするかを選択することができ、検索処理負荷を軽減してより高速に検索することが可能となる。
As described above, according to the second embodiment, the instruction word and related information stored in the
なお、本発明は上記実施の形態1及び2に限定されるものではなく、本発明の趣旨の範囲内であれば多種の変形、置換等が可能であることは言うまでもない。例えば、命令語及び関連情報を、プログラム作成支援装置4の記憶装置43に集約して記憶しておくことに限定されず、CPUユニット2、拡張ユニット3、3、・・・に記憶してある命令語及び関連情報をネットワーク上の仮想ディスクに記憶しておいても良い。
The present invention is not limited to
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
Claims (15)
制御プログラムで用いる命令語を記憶する命令語記憶部と、
命令語に関連する関連情報を該命令語に対応付けて記憶する関連情報記憶部と
を別個に有する記憶手段と、
文字列の入力を受け付ける入力受付手段と、
入力を受け付けた文字列の順序に応じて、前記命令語記憶部又は前記関連情報記憶部を検索対象として検索する検索手段と、
該検索手段での検索結果から前記命令語又は前記関連情報の選択を受け付ける選択受付手段と
を備えることを特徴とするプログラム作成支援装置。 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.
入力を受け付けた文字列に応じて、前記拡張ユニットに記憶してある命令語及び関連情報か、前記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.
前記プログラム作成支援装置は、
制御プログラムで用いる命令語と、該命令語に対応付けた命令語に関連する関連情報とを別個に記憶し、
文字列の入力を受け付け、
入力を受け付けた文字列の順序に応じて、前記命令語又は前記関連情報を検索対象として検索し、
検索結果から前記命令語又は前記関連情報の選択を受け付けることを特徴とするプログラム作成支援方法。 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.
前記プログラム作成支援装置は、
制御プログラムで用いる命令語を記憶する命令語記憶部と、
命令語に関連する関連情報を該命令語に対応付けて記憶する関連情報記憶部と
を別個に有しており、
前記プログラム作成支援装置を、
文字列の入力を受け付ける入力受付手段、
入力を受け付けた文字列の順序に応じて、前記命令語記憶部又は前記関連情報記憶部を検索対象として検索する検索手段、及び
該検索手段での検索結果から前記命令語又は前記関連情報の選択を受け付ける選択受付手段
として機能させることを特徴とするコンピュータプログラム。 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. .
前記被制御機器に接続した前記拡張ユニットに記憶してある、前記拡張ユニットに固有の命令語及び関連情報を、前記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.
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)
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)
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 |
-
2009
- 2009-07-27 JP JP2009174363A patent/JP5500896B2/en active Active
Patent Citations (4)
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)
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 |