【0001】
【発明の属する技術分野】
本発明はラダーダイアグラムのプログラム装置に関する。
【0002】
【従来の技術】
従来、カット/コピーしたラダーダイアグラムのテンプレートを貼り付けて再利用は可能であった。テンプレートの各回路のアドレスに関連性はない。また、貼り付けしたあとはそれらのテンプレートは、通常のラダーダイアグラムとなる。テンプレートしての情報は貼り付けたときに消えてしまいあとは、通常のラダーダイアグラムとして動作している。テンプレート単位にアドレスの管理やコメントを付属する機能はなかった。
また、テンプレートではないがほぼ同等の機能を実現する方法として、関数が存在する。これは、入出力のアドレスだけ定義し、その入出力に割り付けられたラダーダイアグラムを関数として実行する方法である。これは関数を呼び出すラダーダイアグラムからはテンプレートと異なり、ただの入出力をもつボックスとして表現される(例えば、特許文献1参照)。
【0003】
【特許文献1】
特開平7−195443号公報
【0004】
【発明が解決しようとする課題】
ところが従来のラダーダイアグラムのプログラム装置では、テンプレートが貼り付けされたあとそれらは、通常のラダーダイアグラムとして振舞うため、テンプレートとして意味のあった各回路のアドレスの関連性などは存在しないために実際のシステムにあわせて手作業ですべてのアドレスの割付を各回路ごとに行わなければならなかった。またテンプレートは通常シーケンス制御の単位として意味のある塊として使用されることが多いので、実際のシステムに変更が生じた場合などにも、テンプレートが貼り付けされたあとそれらは通常のラダーダイアグラムとして振舞うため、変更にあわせて手作業ですべてのアドレスの割付を各回路ごとに行わなければならなかった。また、そのテンプレートを一度貼り付けてしまうと、そのシーケンス制御部分が必要になくなった場合に、そのラダーダイアグラム部分を削除したい場合にも、各回路に関連性が保持されていないためすべて手作業で削除する必要があった。このように通常のラダーダイアグラムとして振舞うために、テンプレートして貼り付けられたにもかかわらず、プログラムを編集する場面で、かなりの手作業が生じていた。また、関数は、ラダーダイアグラムの中に関数として存在するために、テンプレートと異なり、アドレスの割付なども関数の入出力でシステムに合わせて容易に変更可能であるし、関数として存在しているので、関数単位で削除や切り取り/コピー/貼り付けが可能であるが、テンプレートと異なりボックスで表現されるために、ラダーダイアグラムの特徴であるリレーやコイルの動作がラダーダイアグラムとしてみることができないようになっているため、シーケンス制御の流れがわかりにくいなどの欠点がある。この欠点はラダーダイアグラムとしては致命的で、この欠点があるがゆえにラダーダイアグラムの中で関数を一切使用しないユーザも多い。
【0005】
【課題を解決するための手段】
上記問題を解決するため、ラダーダイアグラムを編集する機能を有するエンジニアリング装置において、ラダーダイアグラムのダイアグラムの一部を部品として格納し、その格納した部品ラダーダイアグラム(以下テンプレートとよぶ)を一覧表示し、その表示されたテンプレートを1つ選択し、他のラダーダイアグラムの部品として貼り付ける機能を有し、その貼り付けられたテンプレートは1つの部品として他のラダーダイアグラムの中で編集可能であり、貼り付けられたテンプレートの切り取り/コピー/貼り付け/削除/アドレスの割り付け編集/テンプレート属性の解除/テンプレートの登録などの機能を有することを特徴としている。
【0006】
【発明の実施の形態】
以下、本発明の実施例を図に基づいて説明する。図1は、本発明を示すブロック図である。図1において、1はコントローラ、2はエンジニアリング装置、3は通信機能、4はラダーダイアグラム転送機能、5はテンプレート記憶装置、6はラダーダイアグラム編集装置である。
図2は、本発明の実施の形態に係るテンプレートの一覧表示画面である。図2において、ラダーダイアグラム編集装置6に対して、ユーザがテンプレートの貼り付けを実行すると、テンプレート記憶装置5よりテンプレートを読み出しテンプレートの一覧表示画面が表示される。この一覧のテンプレートを選択することによりラダーダイアグラム中にテンプレートが選択した挿入される。
図3は、本発明の実施の形態に係るラダーダイアグラム中に貼り付けたテンプレートの例である。
図3において、ラダーダイアグラム編集装置6に対して、図2において選択したテンプレートがラダーダイアグラム中にテンプレートが選択した挿入された結果である。通常のラダーダイアグラムの回路と異なり、テンプレートであることが表示されている。また、テンプレートの中身は直接回路を変更することができなくなっている。
図4は、本発明の実施の形態に係るテンプレートのアドレス変更画面である。図4において、ラダーダイアグラム編集装置6に対して、テンプレート上で、ユーザがアドレス変更を実行すると、テンプレートのアドレス変更画面が表示される。図5は、本発明の実施の形態に係るテンプレートのアドレス変更画面によりアドレスを変更した後の画面である。図5において、ラダーダイアグラム編集装置6に対して、図4においてアドレスを“IB0001”から“IB2001”へ変更した場合の変更結果の画面である。このときテンプレート内の関係するすべての回路のアドレスが自動的に変更される。テンプレート外のおなじアドレスには影響しないので、変更されない。
図6は、本発明の実施の形態に係るテンプレートの削除後の画面である。図6において、ラダーダイアグラム編集装置6に対して、ユーザがテンプレート上で削除を実行した後の画面である。削除実行すると1つの回路ではなく、テンプレート全体が削除される。テンプレートが1つの回路のように編集上動作する。
図7は、本発明の実施の形態に係るテンプレートの属性を解除後の画面である。図7において、ラダーダイアグラム編集装置6に対して、ユーザがテンプレート属性の解除を実行した後の画面である。テンプレート属性の解除を行うと、テンプレートのすべての回路が通常のラダーダイアグラムの回路になる。この後、テンプレートは通常のラダーダイアグラムとして振舞う。テンプレート内の回路の変更も可能となる。図8は、本発明の実施の形態に係るテンプレートの属性を解除後にリレーを追加した画面である。
図8において、図7においてテンプレート属性を解除した後にリレー回路を追加した画面である。図9は、本発明の実施の形態に係るテンプレートの登録画面である。図9において、図8の回路をテンプレートして新たに登録する場合に表示されるテンプレートの登録画面である。ここで登録したテンプレートは、テンプレート記憶装置6にコメントおよび名前つきで格納される。図10は、本発明の実施の形態に係るテンプレート追加後のテンプレートの一覧表示画面である。図10において、図9において登録されたテンプレートがあらたにテンプレートとして一覧画面に表示されている。これは、登録されたテンプレートがラダーダイアグラムの中で使用となっていることをあらわす。
【0007】
【発明の効果】
以上のように、本発明によれば、テンプレートが貼り付けられた後もテンプレートしてラダーダイアグラムの中に存在するため、1つのアドレスを1回編集するだけですべての関連する回路のアドレスを自動的に更新することが可能となり、また貼り付けたテンプレートが必要なくなった場合にも、テンプレートして削除することが可能となり、すべての編集の単位がテンプレート単位で行うことが可能となる。また、上記の特徴とほぼ同等の機能を有する関数の欠点であるラダーダイアグラムのリレーやコイルの動作がみえないという点も克服しており、ラダーダイアグラムの編集の効率が非常に上がるという効果がある。
【図面の簡単な説明】
【図1】本発明の装置全体のブロック図である。
【図2】本発明の実施の形態に係るテンプレートの一覧表示画面である。
【図3】本発明の実施の形態に係るラダーダイアグラム中に貼り付けたテンプレートの例である。
【図4】本発明の実施の形態に係るテンプレートのアドレス変更画面である。
【図5】本発明の実施の形態に係るテンプレートのアドレス変更画面によりアドレスを変更した後の画面である。
【図6】本発明の実施の形態に係るテンプレートの削除後の画面である。
【図7】本発明の実施の形態に係るテンプレートの属性を解除後の画面である。
【図8】本発明の実施の形態に係るテンプレートの属性を解除後にリレーを追加した画面である。
【図9】本発明の実施の形態に係るテンプレートの登録画面である。
【図10】本発明の実施の形態に係るテンプレート追加後のテンプレートの一覧表示画面である。
【符号の説明】
1 コントローラ
2 エンジニアリング装置
3 通信機能
4 ラダーダイアグラム転送機能
5 テンプレート記憶装置
6 ラダーダイアグラム編集装置[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a ladder diagram program device.
[0002]
[Prior art]
Heretofore, it has been possible to reuse a cut / copied ladder diagram template by pasting it. The address of each circuit in the template is not relevant. After pasting, those templates become normal ladder diagrams. The information as a template disappears when pasted, and after that it operates as a normal ladder diagram. There was no function to manage addresses and add comments for each template.
In addition, a function exists as a method for realizing almost the same function, not a template. In this method, only the input / output addresses are defined, and the ladder diagram assigned to the input / output is executed as a function. This is different from a template from a ladder diagram that calls a function, and is represented as a box having only input / output (for example, see Patent Document 1).
[0003]
[Patent Document 1]
Japanese Patent Application Laid-Open No. 7-195443
[Problems to be solved by the invention]
However, in the conventional ladder diagram program device, after the templates are pasted, they behave as normal ladder diagrams, and there is no relationship between the addresses of each circuit that was meaningful as a template. Therefore, all addresses had to be manually assigned for each circuit. In addition, since templates are usually used as meaningful blocks as units of sequence control, they will behave as normal ladder diagrams after templates are pasted, even when changes are made to the actual system. Therefore, all addresses must be manually assigned to each circuit in accordance with the change. Also, once the template is pasted, if the sequence control part is no longer needed, and if you want to delete the ladder diagram part, all the circuits are manually maintained because the relationships are not maintained. Had to be removed. In order to behave like a normal ladder diagram, a considerable amount of manual work has occurred in editing the program, despite being pasted as a template. Also, since the functions exist as functions in the ladder diagram, unlike the templates, the assignment of addresses can be easily changed according to the system by input / output of the functions. Although it is possible to delete or cut / copy / paste functions in units of functions, since they are represented by boxes unlike templates, the operation of relays and coils, which are the characteristics of ladder diagrams, cannot be viewed as ladder diagrams. Therefore, there is a disadvantage that the flow of the sequence control is difficult to understand. This drawback is fatal for ladder diagrams, and many users do not use any functions in ladder diagrams because of this drawback.
[0005]
[Means for Solving the Problems]
To solve the above problem, in an engineering device that has the function of editing a ladder diagram, a part of the ladder diagram diagram is stored as a part, and the stored part ladder diagram (hereinafter referred to as a template) is displayed in a list. It has a function to select one of the displayed templates and paste it as a part of another ladder diagram, and the pasted template can be edited as one part in another ladder diagram and pasted. It is characterized by having functions such as cut / copy / paste / deletion of templates, assignment / editing of addresses / release of template attributes / registration of templates.
[0006]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the present invention. In FIG. 1, 1 is a controller, 2 is an engineering device, 3 is a communication function, 4 is a ladder diagram transfer function, 5 is a template storage device, and 6 is a ladder diagram editing device.
FIG. 2 shows a template list display screen according to the embodiment of the present invention. In FIG. 2, when a user pastes a template to the ladder diagram editing device 6, the template is read from the template storage device 5 and a template list display screen is displayed. By selecting a template from this list, the selected template is inserted into the ladder diagram.
FIG. 3 is an example of a template pasted in a ladder diagram according to the embodiment of the present invention.
In FIG. 3, the template selected in FIG. 2 is the result of inserting the selected template in the ladder diagram editing apparatus 6. Unlike a normal ladder diagram circuit, it is displayed as a template. In addition, the contents of the template cannot directly change the circuit.
FIG. 4 shows a template address change screen according to the embodiment of the present invention. In FIG. 4, when the user executes an address change on the ladder diagram editing apparatus 6 on the template, a template address change screen is displayed. FIG. 5 shows a screen after the address is changed on the template address change screen according to the embodiment of the present invention. FIG. 5 is a screen showing a change result when the address is changed from “IB0001” to “IB2001” in FIG. 4 with respect to the ladder diagram editing device 6. At this time, the addresses of all related circuits in the template are automatically changed. It does not affect the same address outside the template, so it is not changed.
FIG. 6 shows a screen after deleting the template according to the embodiment of the present invention. FIG. 6 is a screen after the user has executed deletion of the ladder diagram editing apparatus 6 on the template. When the deletion is executed, the entire template is deleted instead of one circuit. The template operates on editing like a single circuit.
FIG. 7 shows a screen after releasing the attribute of the template according to the embodiment of the present invention. FIG. 7 is a screen after the user has executed the cancellation of the template attribute on the ladder diagram editing apparatus 6. When the template attribute is released, all the circuits in the template become ordinary ladder diagram circuits. After this, the template behaves as a normal ladder diagram. It is also possible to change the circuit in the template. FIG. 8 is a screen in which a relay is added after the attribute of the template according to the embodiment of the present invention is released.
8 is a screen in which a relay circuit is added after the template attribute is canceled in FIG. FIG. 9 shows a template registration screen according to the embodiment of the present invention. 9 is a template registration screen displayed when the circuit of FIG. 8 is newly registered as a template in FIG. 9. The template registered here is stored in the template storage device 6 with a comment and a name. FIG. 10 shows a template list display screen after adding a template according to the embodiment of the present invention. In FIG. 10, the template registered in FIG. 9 is newly displayed as a template on the list screen. This means that the registered template is used in the ladder diagram.
[0007]
【The invention's effect】
As described above, according to the present invention, even after the template is pasted, the template is present in the ladder diagram, so that the address of all the related circuits can be automatically edited only by editing one address once. It becomes possible to update the template in a timely manner, and even when the pasted template becomes unnecessary, the template can be deleted as a template, and all editing units can be performed in template units. In addition, it overcomes the drawback of the function that has almost the same function as the above feature, namely, the fact that the operation of the relay and coil of the ladder diagram can not be seen, which has the effect of greatly increasing the efficiency of editing the ladder diagram. .
[Brief description of the drawings]
FIG. 1 is a block diagram of the entire apparatus of the present invention.
FIG. 2 is a template list display screen according to the embodiment of the present invention.
FIG. 3 is an example of a template pasted in a ladder diagram according to the embodiment of the present invention.
FIG. 4 shows a template address change screen according to the embodiment of the present invention.
FIG. 5 is a screen after changing an address on the template address change screen according to the embodiment of the present invention.
FIG. 6 is a screen after deleting a template according to the embodiment of the present invention.
FIG. 7 is a screen after releasing the attribute of the template according to the embodiment of the present invention.
FIG. 8 is a screen in which a relay is added after releasing the attribute of the template according to the embodiment of the present invention.
FIG. 9 is a template registration screen according to the embodiment of the present invention.
FIG. 10 shows a template list display screen after adding a template according to the embodiment of the present invention.
[Explanation of symbols]
1 controller 2 engineering device 3 communication function 4 ladder diagram transfer function 5 template storage device 6 ladder diagram editing device