JP7380376B2 - Program for displaying information processing equipment and ladder programs - Google Patents

Program for displaying information processing equipment and ladder programs Download PDF

Info

Publication number
JP7380376B2
JP7380376B2 JP2020055649A JP2020055649A JP7380376B2 JP 7380376 B2 JP7380376 B2 JP 7380376B2 JP 2020055649 A JP2020055649 A JP 2020055649A JP 2020055649 A JP2020055649 A JP 2020055649A JP 7380376 B2 JP7380376 B2 JP 7380376B2
Authority
JP
Japan
Prior art keywords
ladder
circuit
screen
information
ladder circuit
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.)
Active
Application number
JP2020055649A
Other languages
Japanese (ja)
Other versions
JP2021157382A (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.)
Omron Corp
Original Assignee
Omron 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 Omron Corp filed Critical Omron Corp
Priority to JP2020055649A priority Critical patent/JP7380376B2/en
Priority to PCT/JP2020/047226 priority patent/WO2021192456A1/en
Publication of JP2021157382A publication Critical patent/JP2021157382A/en
Application granted granted Critical
Publication of JP7380376B2 publication Critical patent/JP7380376B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts

Description

本開示は、ラダープログラムを表示する情報処理装置およびラダープログラムを表示するためのプログラムに関する。 The present disclosure relates to an information processing device that displays a ladder program and a program for displaying the ladder program.

様々な製造現場において、PLC(Programmable Logic Controller)などの制御装置が導入されている。このような制御装置は、一種のコンピュータであり、製造装置や製造設備などに応じて設計されたユーザプログラムを実行する。このようなユーザプログラムは、制御装置とは別に用意された開発環境にて作成される。 Control devices such as PLCs (Programmable Logic Controllers) have been introduced at various manufacturing sites. Such a control device is a type of computer, and executes a user program designed according to a manufacturing device, manufacturing equipment, or the like. Such a user program is created in a development environment prepared separately from the control device.

ユーザプログラムを記述するためのプログラミング言語には、複数の命令要素を互いに繋いだ回路態様で表示可能なラダーダイアグラム(LD:Ladder Diagram)を含む。複数の命令要素を互いに繋いだ回路態様で記述されたプログラムは、「ラダープログラム」とも言われる。 A programming language for writing a user program includes a ladder diagram (LD) that can be displayed in a circuit form in which a plurality of instruction elements are interconnected. A program written in a circuit format in which a plurality of instruction elements are interconnected is also called a "ladder program."

ユーザプログラムを開発するための環境を提供する開発支援装置として、ラダープログラムを作成する際に、各ラダープログラムの内容を理解しやすくするために、ラダープログラム内に適宜コメント行を設けるものが知られている(たとえば、特許文献1参照)。 As a development support device that provides an environment for developing user programs, it is known that when creating a ladder program, comment lines are provided as appropriate in the ladder program to make it easier to understand the contents of each ladder program. (For example, see Patent Document 1).

特開2017-059046号公報JP2017-059046A

ラダープログラムは、接点およびコイル等の組み合わせで表現される論理回路が梯子状に描かれた構成を有している。コイルは、接点を組み合わせた論理演算の結果の出力先を示す。また、一の論理回路が他の論理回路の結果を受け、さらに、他の論理回路が、別の他の論理回路の結果を受けるような階層的な表現でラダープログラムは記述されることもある。 A ladder program has a configuration in which a logic circuit expressed by combinations of contacts, coils, etc. is drawn in a ladder shape. The coil indicates the output destination of the result of a logical operation using a combination of contacts. Additionally, a ladder program may be written in a hierarchical manner such that one logic circuit receives the results of another logic circuit, and the other logic circuit receives the results of another logic circuit. .

従来の開発支援装置によるラダープログラムの表示方法では、逐次実行される論理回路の内容を理解しやすくすることはできたものの、階層のない表現であったため、ラダープログラムの全体構造がわかりにくかった。 Although the display method of ladder programs by conventional development support equipment made it easier to understand the contents of the logic circuits that are executed sequentially, the representation without hierarchy made it difficult to understand the overall structure of the ladder program.

本発明は、上記課題を解決することを目的とするものであって、ラダープログラムの階層構造を分かりやすく表示することを目的とする。 The present invention aims to solve the above-mentioned problems, and aims to display the hierarchical structure of a ladder program in an easy-to-understand manner.

本開示の一例によれば、ラダープログラムを表示する情報処理装置が提供される。情報処理装置は、ラダー画面生成部と、受付部と、定義部と、階層画面生成部とを含む。ラダー画面生成部は、ラダープログラムを複数のラダー回路を含む回路態様で表示するためのラダー画面を生成する。ラダー画面には、複数のラダー回路が表示されるとともに、ラダー回路ごとに登録されたテキスト情報が対応するラダー回路に対応して表示される。受付部は、ラダー画面に対する操作に応じて、一のラダー回路と他のラダー回路との親子関係を示す親子情報の入力を受け付ける。定義部は、受付部が受け付けた親子情報に基づいて、ラダープログラムに含まれる複数のラダー回路の階層構造を定義する。階層画面生成部は、定義部が定義した階層構造をテキスト情報で表示するための階層画面を生成する。 According to an example of the present disclosure, an information processing device that displays a ladder program is provided. The information processing device includes a ladder screen generation section, a reception section, a definition section, and a hierarchical screen generation section. The ladder screen generation unit generates a ladder screen for displaying the ladder program in a circuit format including a plurality of ladder circuits. A plurality of ladder circuits are displayed on the ladder screen, and text information registered for each ladder circuit is displayed in correspondence with the corresponding ladder circuit. The reception unit receives input of parent-child information indicating a parent-child relationship between one ladder circuit and another ladder circuit in response to an operation on the ladder screen. The definition unit defines a hierarchical structure of the plurality of ladder circuits included in the ladder program based on the parent-child information received by the reception unit. The hierarchical screen generation section generates a hierarchical screen for displaying the hierarchical structure defined by the definition section as text information.

この開示によれば、テキスト情報であれば、インデントを設けたり、あるいは、罫線でテキスト情報同士をつなげたりする方法によって容易に階層構造を表現できる。その結果、情報処理装置は、ラダープログラムの全体構造を分かり易く表示できる。 According to this disclosure, in the case of text information, a hierarchical structure can be easily expressed by providing indentation or connecting text information with ruled lines. As a result, the information processing device can display the entire structure of the ladder program in an easy-to-understand manner.

上述の開示において、階層画面に含まれるテキスト情報の各々は、対応するラダー回路のラダー画面上における位置を示す位置情報に関連付けられていてもよい。この場合に、階層画面を介してテキスト情報が選択されたことに応じて、ラダー画面を表示する領域内に、選択されたテキスト情報に対応するラダー回路が表示されるようにしてもよい。 In the above disclosure, each piece of text information included in the hierarchical screen may be associated with position information indicating the position of the corresponding ladder circuit on the ladder screen. In this case, in response to text information being selected via the hierarchical screen, a ladder circuit corresponding to the selected text information may be displayed within the area where the ladder screen is displayed.

この開示によれば、階層構造を表示した階層画面を介した操作によりラダー画面の表示範囲を変更できるため、目的のラダー回路を容易に表示できる。 According to this disclosure, since the display range of the ladder screen can be changed by operation via the hierarchical screen displaying the hierarchical structure, the desired ladder circuit can be easily displayed.

上述の開示において、定義部は、ラダー回路のラダー画面上における位置を示す位置情報と親子情報とに基づいて階層構造を定義し、位置情報の変更が受け付けられたことに応じて階層構造を定義し直してもよい。 In the above disclosure, the definition unit defines the hierarchical structure based on position information indicating the position of the ladder circuit on the ladder screen and parent-child information, and defines the hierarchical structure in response to a change in the position information being accepted. You may try again.

この開示によれば、ラダー画面上におけるラダー回路間の位置関係に応じて任意に階層構造を定義できるため、ユーザは、親子関係とする各ラダー回路の内容を確認しながら親子情報を入力できる。 According to this disclosure, since a hierarchical structure can be arbitrarily defined according to the positional relationship between ladder circuits on the ladder screen, the user can input parent-child information while confirming the contents of each ladder circuit that is in a parent-child relationship.

上述の開示において、受付部は、階層画面に対する操作に応じて位置情報の変更を受け付けてもよい。 In the above disclosure, the reception unit may accept a change in location information in response to an operation on a hierarchical screen.

この開示によれば、階層構造を表示した階層画面を介した操作によりラダー回路間の位置関係を変更でき、位置関係の変更に応じて階層構造も変更できる。そのため、階層構造の変更を容易に行うことができる。 According to this disclosure, the positional relationship between ladder circuits can be changed by operation via the hierarchical screen displaying the hierarchical structure, and the hierarchical structure can also be changed in accordance with the change in the positional relationship. Therefore, the hierarchical structure can be easily changed.

上述の開示において、定義部は、一のラダー回路が選択された状態でラダー回路の追加操作がされた場合に、予め定められた追加ルールと選択されたラダー回路の階層とに基づいて階層構造を定義し直してもよい。 In the above disclosure, when a ladder circuit addition operation is performed with one ladder circuit selected, the definition unit creates a hierarchical structure based on a predetermined addition rule and the hierarchy of the selected ladder circuit. may be redefined.

この開示によれば、ラダー回路を追加してラダープログラムを開発していく際に、容易に階層構造を定義できる。 According to this disclosure, when a ladder program is developed by adding a ladder circuit, a hierarchical structure can be easily defined.

上述の開示において、情報処理装置は、テキスト情報の編集または作成を行う作成部をさらに含み得る。この場合に、作成部は、ラダー回路が追加されたことに応じて位置情報の変更が受け付けられた場合に、定義し直された階層構造と、追加されたラダー回路が属する階層のラダー回路に対応するテキスト情報とに基づいて、追加されたラダー回路に対応するテキスト情報を作成してもよい。 In the above disclosure, the information processing device may further include a creation unit that edits or creates text information. In this case, when a change in position information is accepted in response to the addition of a ladder circuit, the creation unit updates the redefined hierarchical structure and the ladder circuit of the hierarchy to which the added ladder circuit belongs. Text information corresponding to the added ladder circuit may be created based on the corresponding text information.

この開示によれば、新たに追加されたラダー回路の階層を示したテキスト情報を生成できる。 According to this disclosure, text information indicating the hierarchy of a newly added ladder circuit can be generated.

上述の開示において、一のラダー回路が選択された状態でラダー回路の削除操作がされた場合、選択されたラダー回路と、選択されたラダー回路の子階層に含まれるラダー回路とが削除されてもよい。 In the above disclosure, when a ladder circuit deletion operation is performed with one ladder circuit selected, the selected ladder circuit and the ladder circuits included in the child hierarchy of the selected ladder circuit are deleted. Good too.

この開示によれば、ラダープログラムの開発をする際の利便性が向上する。
上述の開示において、受付部は、一のラダー回路の選択を受け付けるとともに、選択されたラダー回路および、選択されたラダー回路の子階層に含まれるラダー回路を一の管理単位の部品として受け付けてもよい。
According to this disclosure, convenience in developing a ladder program is improved.
In the above disclosure, the reception unit may accept the selection of one ladder circuit, and may also accept the selected ladder circuit and the ladder circuits included in the child hierarchy of the selected ladder circuit as components of one management unit. good.

この開示によれば、親子情報の入力により任意の階層構造を定義できるとともに、再利用できる部品の作成も同時にできる。 According to this disclosure, an arbitrary hierarchical structure can be defined by inputting parent-child information, and reusable parts can be created at the same time.

上述の開示において、ラダー画面生成部は、ラダー回路が選択された場合に、選択されたラダー回路の子階層に含まれるラダー回路を省略したラダー画面を生成してもよい。 In the above disclosure, when a ladder circuit is selected, the ladder screen generation unit may generate a ladder screen in which ladder circuits included in child layers of the selected ladder circuit are omitted.

この開示によれば、ラダープログラムの全体構造をより分かり易く表示できる。
上述の開示において、階層画面生成部は、ラダー回路が選択された場合に、選択されたラダー回路の子階層に含まれるラダー回路に対応するテキスト情報を省略した階層画面を生成してもよい。
According to this disclosure, the entire structure of a ladder program can be displayed more clearly.
In the above disclosure, when a ladder circuit is selected, the hierarchical screen generation unit may generate a hierarchical screen in which text information corresponding to a ladder circuit included in a child hierarchy of the selected ladder circuit is omitted.

この開示によれば、ラダープログラムの全体構造をより分かり易く表示できる。
上述の開示において、ラダー画面生成部は、定義部が定義した階層構造に基づいて、同じ階層に含まれるラダー回路と異なる階層に含まれるラダー回路とを互いに異なる表示態様で表示したラダー画面を生成してもよい。
According to this disclosure, the entire structure of a ladder program can be displayed more clearly.
In the above disclosure, the ladder screen generation unit generates a ladder screen in which ladder circuits included in the same hierarchy and ladder circuits included in different hierarchies are displayed in different display modes based on the hierarchical structure defined by the definition unit. You may.

この開示によれば、ラダー画面を確認するだけで、階層の区切りをユーザに容易に把握させることができる。 According to this disclosure, it is possible for the user to easily understand the divisions between layers simply by checking the ladder screen.

上述の開示において、ラダープログラムは、プログラム要素のまとまりから構成されたブロックを呼び出す1または複数の呼出命令を含み得る。階層画面生成部は、呼出命令を含むラダー回路の子階層に呼出命令によって呼び出されるブロックが含まれるように階層画面を生成してもよい。 In the above disclosure, a ladder program may include one or more call instructions that call blocks made up of groups of program elements. The hierarchical screen generation unit may generate a hierarchical screen such that a block called by the calling command is included in a child hierarchy of the ladder circuit including the calling command.

この開示によれば、各ラダー回路でどのようなブロックが呼び出されるかを階層画面上に表示できる。 According to this disclosure, what kind of block is called in each ladder circuit can be displayed on the hierarchical screen.

本開示の別の一例によれば、ラダープログラムを表示するためのサポートプログラムが提供される。サポートプログラムは、ラダープログラムを複数のラダー回路を含む回路態様で表示するとともに、ラダー回路ごとに登録されたテキスト情報を対応するラダー回路に対応させて表示するためのラダー画面を生成するステップと、ラダー画面に対する操作に応じて、一のラダー回路と他のラダー回路との親子関係を示す親子情報の入力を受け付けるステップと、受け付けられた親子情報に基づいて、ラダープログラムに含まれる複数のラダー回路の階層構造を定義するステップと、定義された階層構造をテキスト情報で表示するための階層画面を生成するステップとを含む。 According to another example of the present disclosure, a support program for displaying a ladder program is provided. The support program displays the ladder program in a circuit format including a plurality of ladder circuits, and generates a ladder screen for displaying text information registered for each ladder circuit in correspondence with the corresponding ladder circuit; a step of receiving input of parent-child information indicating a parent-child relationship between one ladder circuit and another ladder circuit in response to an operation on the ladder screen; and a step of receiving input of parent-child information indicating a parent-child relationship between one ladder circuit and another ladder circuit, and inputting multiple ladder circuits included in the ladder program based on the received parent-child information; and a step of generating a hierarchical screen for displaying the defined hierarchical structure as text information.

この開示によれば、テキスト情報であれば、インデントを設けたり、あるいは、罫線でテキスト情報同士をつなげたりする方法によって容易に階層構造を表現できる。その結果、情報処理装置は、ラダープログラムの全体構造を分かり易く表示できる。 According to this disclosure, in the case of text information, a hierarchical structure can be easily expressed by providing indentation or connecting text information with ruled lines. As a result, the information processing device can display the entire structure of the ladder program in an easy-to-understand manner.

本開示の一例によれば、ラダープログラムの全体構造を分かりやすく表示できる。 According to an example of the present disclosure, the entire structure of a ladder program can be displayed in an easy-to-understand manner.

本実施の形態に係るサポート装置10の機能構成を示すブロック図である。1 is a block diagram showing a functional configuration of a support device 10 according to the present embodiment. FIG. サポート装置10を適用可能な制御システム1の構成例を示す模式図である。1 is a schematic diagram showing a configuration example of a control system 1 to which a support device 10 can be applied. サポート装置10のハードウェア構成例を示す模式図である。1 is a schematic diagram showing an example of a hardware configuration of a support device 10. FIG. サポート装置10のソフトウェア構成例を示す模式図である。1 is a schematic diagram showing an example of a software configuration of a support device 10. FIG. ユーザインターフェイス画面140の一例である。This is an example of a user interface screen 140. ディスプレイ114上にラダープログラム42を表示する際に実行される表示処理を示すフローチャートである。5 is a flowchart showing display processing executed when displaying the ladder program 42 on the display 114. FIG. ラダー回路420を追加するときに実行される追加処理を示すフローチャートである。7 is a flowchart showing additional processing executed when adding a ladder circuit 420. FIG. 挿入ルールの一例を示す図である。It is a figure which shows an example of an insertion rule. 挿入ルールの他の例を示す図である。FIG. 7 is a diagram showing another example of insertion rules. 挿入ルールの他の例を示す図である。FIG. 7 is a diagram showing another example of insertion rules. 挿入ルールの他の例を示す図である。FIG. 7 is a diagram showing another example of insertion rules. 階層を考慮しない挿入ルールの一例を示す図である。FIG. 7 is a diagram illustrating an example of an insertion rule that does not take hierarchy into account. テキスト情報460の作成ルールの一例について説明するための図である。FIG. 4 is a diagram for explaining an example of a rule for creating text information 460. FIG. コピー・アンド・ペーストをした場合の画面遷移の一例である。This is an example of screen transition when copying and pasting. ラダー回路420を削除するときに実行される削除処理を示すフローチャートである。7 is a flowchart showing a deletion process executed when a ladder circuit 420 is deleted. 削除ルールの一例を示す図である。It is a figure which shows an example of a deletion rule. 削除ルールの他の例を示す図である。FIG. 7 is a diagram showing another example of deletion rules. 親子情報480の更新ルールの一例を示す図である。FIG. 4 is a diagram illustrating an example of an update rule for parent-child information 480. ラダー回路420を移動するときに実行される移動処理を示すフローチャートである。7 is a flowchart showing a movement process executed when moving the ladder circuit 420. FIG. 移動操作による画面遷移の一例を示す図である。It is a figure showing an example of screen transition by movement operation. 階層構造160を定義するための階層化処理を示すフローチャートである。3 is a flowchart showing a layering process for defining a hierarchical structure 160. FIG. 省略表示と展開表示の一例を示す図である。It is a figure which shows an example of abbreviated display and expanded display. 省略表示と展開表示の他の例を示す図である。FIG. 7 is a diagram showing another example of abbreviated display and expanded display. 階層構造160を表したラダー画面120の一例を示す図である。3 is a diagram showing an example of a ladder screen 120 showing a hierarchical structure 160. FIG. 第1領域142に表示されるラダー画面120の範囲が変更される様子を示す図である。6 is a diagram showing how the range of the ladder screen 120 displayed in the first area 142 is changed. FIG. 1または複数のラダー回路420を一の部品として登録する様子を示す図である。7 is a diagram showing how one or more ladder circuits 420 are registered as one component. FIG. POUを呼出元のラダー回路の子階層として表示した画面の一例を示す図である。FIG. 7 is a diagram showing an example of a screen in which a POU is displayed as a child layer of a calling ladder circuit. 変形例にかかる階層化処理を示すフローチャートである。It is a flow chart which shows hierarchization processing concerning a modification. 変形例にかかる階層化処理に従って定義された階層構造160の一例を示す図である。It is a figure which shows an example of the hierarchical structure 160 defined according to the hierarchical processing according to a modification.

本発明の実施の形態について、図面を参照しながら詳細に説明する。なお、図中の同一または相当部分については、同一符号を付してその説明は繰返さない。 Embodiments of the present invention will be described in detail with reference to the drawings. Note that the same or corresponding parts in the figures are given the same reference numerals and the description thereof will not be repeated.

<A.適用例>
図1を参照して、本発明が適用される場面の一例について説明する。図1は、本実施の形態に係るサポート装置10の機能構成を示すブロック図である。
<A. Application example>
An example of a scene to which the present invention is applied will be described with reference to FIG. FIG. 1 is a block diagram showing the functional configuration of a support device 10 according to the present embodiment.

サポート装置10は、ラダープログラム42を表示するための情報処理装置の一例である。サポート装置10は、典型的には、汎用のコンピュータで構成される。サポート装置10は、ラダープログラム42を作成する場面、ラダープログラム42の動作を確認する場面、またはラダープログラム42のバグを修正する場面などで利用される。 The support device 10 is an example of an information processing device for displaying the ladder program 42. Support device 10 is typically configured with a general-purpose computer. The support device 10 is used in situations such as creating a ladder program 42, checking the operation of the ladder program 42, or correcting bugs in the ladder program 42.

ラダープログラム42は、FA分野で使用される各種装置を制御するPLCのような制御装置が実行する制御プログラムの一種である。「制御プログラム」は、FA分野で使用される各種装置を制御する制御装置の基本的な機能を提供するためのプログラムと、制御対象に応じて任意に設計されるプログラム(「ユーザプログラム」ともいう)とを包含する概念である。 The ladder program 42 is a type of control program executed by a control device such as a PLC that controls various devices used in the FA field. "Control programs" include programs that provide the basic functions of control devices that control various devices used in the FA field, and programs that are arbitrarily designed depending on the control target (also called "user programs"). ).

ラダープログラム42は、複数の命令要素を互いに繋いだ回路態様で表示可能なプログラミング言語で記述されているプログラムである。典型的には、ラダープログラム42は、国際規格IEC61131-3において既定されているPLCアプリケーションのプログラミング言語のうち、ラダーダイアグラム(LD:Ladder Diagram)で記述されたプログラムである。なお、プログラム全体を複数の言語で記述する方式を採用する場合に、ファンクションブロックダイアグラム(FBD:Function Block Diagram)、シーケンシャルファンクションチャート(SFC:Sequential Function Chart)、インストラクションリスト(IL:Instruction List)、ストラクチャードテキスト(ST:Structured Text)、各メーカ独自の言語、またはC言語等の手続き型プログラミング言語などで記述されたプログラムがラダープログラム42に含まれていてもよい。 The ladder program 42 is a program written in a programming language that can be displayed in a circuit form in which a plurality of instruction elements are interconnected. Typically, the ladder program 42 is a program written in ladder diagram (LD), which is one of the PLC application programming languages defined in the international standard IEC61131-3. In addition, when adopting a method of writing the entire program in multiple languages, function block diagrams (FBDs), sequential function charts (SFCs), instruction lists (ILs), structured The ladder program 42 may include a program written in structured text (ST), a language unique to each manufacturer, or a procedural programming language such as C language.

図1を参照して、サポート装置10は、ラダー画面生成部12と、受付部14と、定義部16と、階層画面生成部18とを備える。 Referring to FIG. 1, the support device 10 includes a ladder screen generation section 12, a reception section 14, a definition section 16, and a hierarchical screen generation section 18.

ラダー画面生成部12は、ラダープログラム42を1または複数のラダー回路420を含む回路態様で表示するためのラダー画面120を生成する。ラダー画面生成部12は、ラダー回路420を並べて表示するとともに、ラダー回路420ごとに登録されたテキスト情報460を対応するラダー回路420に対応付けて表示するようにラダー画面120を生成する。 The ladder screen generation unit 12 generates a ladder screen 120 for displaying the ladder program 42 in a circuit format including one or more ladder circuits 420. The ladder screen generation unit 12 generates the ladder screen 120 so as to display the ladder circuits 420 side by side and to display the text information 460 registered for each ladder circuit 420 in association with the corresponding ladder circuit 420.

各ラダー回路420は、入力側母線421および出力側母線422、ならびに入力側母線421と出力側母線422との間に接続線と回路要素とを用いて描かれた論理回路(以下、単に「回路」とも称する)から構成される。回路要素は、たとえば、入力信号に基づいてオン/オフする接点423と、回路内の演算結果を出力するコイル424とを含む。なお、図1において、一部符号を省略している。 Each ladder circuit 420 is a logic circuit (hereinafter simply referred to as “circuit ). The circuit elements include, for example, a contact 423 that turns on/off based on an input signal, and a coil 424 that outputs a calculation result within the circuit. Note that in FIG. 1, some symbols are omitted.

テキスト情報460は、文字からなる情報である。なお、文字は、記号および数字も含み得る。テキスト情報460は、典型的には、ラダー回路420の名称である。図1に示す例では、テキスト情報460として、ラダー回路420の名称(たとえば、図1中の「回路1」という文字)と、ラダー回路420の順番(たとえば、図1中の「0」という文字)とがラダー画面120上に表示されている。なお、テキスト情報460として、ラダー回路420の内容を示すコメントが登録されていてもよい。また、テキスト情報460は、自動で生成されてもよく、また、ユーザによって入力されることで生成されてもよい。 Text information 460 is information consisting of characters. Note that the characters may also include symbols and numbers. Text information 460 is typically the name of ladder circuit 420. In the example shown in FIG. 1, the text information 460 includes the name of the ladder circuit 420 (for example, the characters "Circuit 1" in FIG. 1) and the order of the ladder circuit 420 (for example, the characters "0" in FIG. ) is displayed on the ladder screen 120. Note that a comment indicating the content of the ladder circuit 420 may be registered as the text information 460. Further, the text information 460 may be automatically generated or may be generated by input by the user.

受付部14は、ラダー画面120に対する操作に応じて、一のラダー回路420と他のラダー回路420との親子関係を示す親子情報480の入力をラダー回路420ごとに受け付ける。親子関係とは、従属関係を意味する。上位の階層のラダー回路420が親であり、その階層の下位層に含まれるラダー回路420が子である。たとえば、ユーザは、一のラダー回路420が他のラダー回路420の出力結果を受けるようにラダープログラムを記述する場合に、他のラダー回路420(子)を一のラダー回路420(親)に従属させるように親子情報480を入力できる。 The reception unit 14 receives input of parent-child information 480 indicating a parent-child relationship between one ladder circuit 420 and another ladder circuit 420 for each ladder circuit 420 in response to an operation on the ladder screen 120. A parent-child relationship means a dependent relationship. The ladder circuit 420 in the upper layer is the parent, and the ladder circuit 420 included in the lower layer in that layer is the child. For example, when writing a ladder program so that one ladder circuit 420 receives the output results of another ladder circuit 420, the user must subordinate the other ladder circuit 420 (child) to the one ladder circuit 420 (parent). The parent and child information 480 can be input as shown in FIG.

図1に示す例では、ラダー画面120上のテキスト情報460が表示された領域に特殊記号「#」が入力されることで、テキスト情報460に対応するラダー回路420に関連付けて親子情報480の入力が受け付けられる。また、ユーザは、特殊記号「#」を入力することで階層を区切ることができ、特殊記号「#」の数により階層の深さを表すことができる。 In the example shown in FIG. 1, by inputting the special symbol "#" in the area where text information 460 is displayed on the ladder screen 120, parent-child information 480 is input in association with the ladder circuit 420 corresponding to the text information 460. is accepted. Furthermore, the user can delimit the hierarchy by inputting the special symbol "#", and the depth of the hierarchy can be expressed by the number of special symbols "#".

たとえば、図1に示す例では、「回路1」が示すラダー回路420は、「回路1-1」が示すラダー回路420の出力結果である「a」という変数と、「回路1-2」が示すラダー回路420の出力結果である「b」という変数とによって出力結果が変わる。この場合に、ユーザは、「回路1」が示すラダー回路420を親、「回路1-1」が示すラダー回路420と、「回路1-2」が示すラダー回路420とを「回路1」が示すラダー回路420の子とするように親子情報480を入力できる。 For example, in the example shown in FIG. 1, the ladder circuit 420 indicated by "Circuit 1" has a variable "a" which is the output result of the ladder circuit 420 indicated by "Circuit 1-1", and a variable "a" which is the output result of the ladder circuit 420 indicated by "Circuit 1-2". The output result changes depending on the variable "b" which is the output result of the ladder circuit 420 shown. In this case, the user assigns the ladder circuit 420 indicated by "Circuit 1" as a parent, and the ladder circuit 420 indicated by "Circuit 1-1" and the ladder circuit 420 indicated by "Circuit 1-2" as "Circuit 1". Parent-child information 480 can be input so that the ladder circuit 420 shown in FIG.

定義部16は、受付部14が受け付けた親子情報480に基づいて、ラダープログラム42に含まれる複数のラダー回路420の階層構造160を定義する。たとえば、定義部16は、入力された親子情報480と、予め定められた親子情報480を入力するルールに基づいて階層構造160を定義する。 The definition unit 16 defines a hierarchical structure 160 of the plurality of ladder circuits 420 included in the ladder program 42 based on the parent-child information 480 received by the reception unit 14. For example, the definition unit 16 defines the hierarchical structure 160 based on the input parent-child information 480 and a predetermined rule for inputting the parent-child information 480.

図1に示す例では、定義部16は、たとえば、0番目のラダー回路420に対して受け付けられた親子情報480(「#」)に基づいて、0番目のラダー回路420と1番目のラダー回路420とで階層の区切りが生じ、「#」の数により0番目のラダー回路420が1番上の階層であることを特定する。そして、定義部16は、1番目のラダー回路420が0番目のラダー回路420の子階層であることを定義する。また、2番目のラダー回路420に対して親子情報480の入力がされていないため、定義部16は、2番目のラダー回路420が1番目のラダー回路420と同じ階層であることを定義する。 In the example shown in FIG. 1, the definition unit 16 defines the relationship between the 0th ladder circuit 420 and the 1st ladder circuit based on the parent-child information 480 (“#”) received for the 0th ladder circuit 420, for example. 420, the hierarchy is divided, and the number of "#" specifies that the 0th ladder circuit 420 is the top hierarchy. Then, the definition unit 16 defines that the first ladder circuit 420 is a child hierarchy of the 0th ladder circuit 420. Furthermore, since parent-child information 480 has not been input to the second ladder circuit 420, the definition unit 16 defines that the second ladder circuit 420 is in the same hierarchy as the first ladder circuit 420.

階層画面生成部18は、定義部16が定義した階層構造160をテキスト情報460で表示した階層画面180を生成する。図1に示す例では、階層画面生成部18は、テキスト情報460の冒頭にインデントをいくつ設けるかによって、このテキスト情報460に対応するラダー回路420の階層を表現する。たとえば、「0.回路1」に対応する0番目のラダー回路420は、「0.回路1」にインデントが設けられていないため、1番上の階層のラダー回路420である。 The hierarchical screen generation unit 18 generates a hierarchical screen 180 that displays the hierarchical structure 160 defined by the definition unit 16 using text information 460. In the example shown in FIG. 1, the hierarchical screen generation unit 18 expresses the hierarchy of the ladder circuit 420 corresponding to the text information 460 by determining how many indentations are provided at the beginning of the text information 460. For example, the 0th ladder circuit 420 corresponding to "0. Circuit 1" is the topmost ladder circuit 420 because "0. Circuit 1" is not indented.

ラダープログラム42は、一のラダー回路420内のコイル424が出力する結果を他のラダー回路420に含まれる接点423が受けるような階層的な表現で記述されることがある。 The ladder program 42 may be written in a hierarchical manner such that the result output by the coil 424 in one ladder circuit 420 is received by the contact 423 included in another ladder circuit 420.

階層的な表現で記述されたラダープログラム42は、複数のラダー回路420から構成されている。ラダー画面120を表示可能な範囲には制限があるため、ラダープログラム42全体をディスプレイ内に収めることは難しく、ラダープログラム42の全体構造を表現することが難しかった。 The ladder program 42 written in a hierarchical manner is composed of a plurality of ladder circuits 420. Since there is a limit to the range in which the ladder screen 120 can be displayed, it is difficult to fit the entire ladder program 42 within the display, and it is difficult to express the entire structure of the ladder program 42.

また、一般的に、ラダー回路420を並べて表示する場合、入力側母線421の位置が固定された態様で表示される。入力側母線421の位置を変更することで階層関係を表現することも可能だが、入力側母線421の位置を変更するとラダー回路420の表示位置がラダー回路420ごとに変わってしまい、見難いという課題がある。 Further, generally, when the ladder circuits 420 are displayed side by side, the position of the input side bus bar 421 is displayed in a fixed manner. It is also possible to express the hierarchical relationship by changing the position of the input side bus 421, but when the position of the input side bus 421 is changed, the display position of the ladder circuit 420 changes for each ladder circuit 420, making it difficult to see. There is.

本実施の形態にかかるサポート装置10は、ラダー回路420に対する操作に応じて親子情報480の入力を受け付ける。そのため、ユーザは、ラダー回路420間の親子関係を、ラダー回路420を確認しながら任意に定義することができる。 Support device 10 according to the present embodiment receives input of parent-child information 480 in response to an operation on ladder circuit 420 . Therefore, the user can arbitrarily define the parent-child relationship between the ladder circuits 420 while checking the ladder circuits 420.

また、サポート装置10は、親子情報480に基づいて定義される階層構造160をテキスト情報460で表示するための階層画面180を生成するための階層画面生成部18を備える。ラダー回路420と異なり、テキスト情報460であればインデントを設けたり、あるいは、罫線でテキスト情報460同士をつなげたりする方法によって容易に階層構造160を表現できる。そのため、サポート装置10は、ラダープログラム42の全体構造を分かりやすく表示できる。 The support device 10 also includes a hierarchical screen generation unit 18 for generating a hierarchical screen 180 for displaying the hierarchical structure 160 defined based on the parent-child information 480 as text information 460. Unlike the ladder circuit 420, when it comes to text information 460, the hierarchical structure 160 can be easily expressed by providing indentation or connecting the text information 460 with ruled lines. Therefore, the support device 10 can display the entire structure of the ladder program 42 in an easy-to-understand manner.

また、ラダー回路420とテキスト情報460とを比較すると、テキスト情報460を表示するために必要な領域は、ラダー回路420を表示するために必要な領域よりも狭い。そのため、テキスト情報460で階層構造160を表すことで階層構造160を一の画面内に収めることが容易になる。その結果、ラダープログラム42の全体構造を分かりやすく表示できる。 Furthermore, when comparing the ladder circuit 420 and the text information 460, the area required to display the text information 460 is narrower than the area required to display the ladder circuit 420. Therefore, by representing the hierarchical structure 160 with text information 460, it becomes easy to fit the hierarchical structure 160 into one screen. As a result, the entire structure of the ladder program 42 can be displayed in an easy-to-understand manner.

以下、本発明の具体例として、本実施の形態に係るサポート装置10のより詳細な構成および処理について説明する。 Hereinafter, as a specific example of the present invention, a more detailed configuration and processing of the support device 10 according to the present embodiment will be described.

<B.サポート装置を適用可能な制御システム>
図2は、サポート装置10を適用可能な制御システム1の構成例を示す模式図である。図2を参照して、制御システム1は、複数のPLC200-1,200-2,200-3,200-4,…(以下、「PLC200」とも総称する。)を含んでいる。PLC100の各々は、リレー,センサー等のフィールド機器である制御対象を制御する制御装置の一例である。サポート装置10は、PLC200に接続可能であり、PLC200の制御プログラムの開発を支援する環境を提供する。制御システム1は、1台のPLC200を含む構成であってもよい。以下では、説明を簡単にするために、1台のPLC200を対象にした開発環境を説明する。
<B. Control systems to which support devices can be applied>
FIG. 2 is a schematic diagram showing a configuration example of a control system 1 to which the support device 10 can be applied. Referring to FIG. 2, the control system 1 includes a plurality of PLCs 200-1, 200-2, 200-3, 200-4, ... (hereinafter also collectively referred to as "PLC 200"). Each of the PLCs 100 is an example of a control device that controls a control target that is a field device such as a relay or a sensor. The support device 10 is connectable to the PLC 200 and provides an environment that supports the development of a control program for the PLC 200. The control system 1 may include one PLC 200. Below, in order to simplify the explanation, a development environment targeting one PLC 200 will be explained.

PLC200は、典型的には、制御プログラムを含む各種プログラムを実行する主体であるCPU(Central Processing Unit)ユニット20と、CPUユニット20などへ電力を供給する電源ユニット22と、フィールドからの信号を遣り取りするI/O(Input/Output)ユニット24とを含む。I/Oユニット24は、CPUユニット20とシステムバス21を介して接続されている。 The PLC 200 typically exchanges signals from the field with a CPU (Central Processing Unit) unit 20 that executes various programs including control programs, and a power supply unit 22 that supplies power to the CPU unit 20 and the like. and an I/O (Input/Output) unit 24. The I/O unit 24 is connected to the CPU unit 20 via a system bus 21.

サポート装置10が提供する開発支援環境は、制御プログラムのエディタ(編集)、デバッカ、シミュレータおよびこれらの出力情報をディスプレイ等のモニタに出力するためのモニタ機能等を有し得る。サポート装置10は、さらに、運転中のPLC200の状態値を取得し、ディスプレイ等のモニタに出力する機能なども備える。 The development support environment provided by the support device 10 may include a control program editor, debugger, simulator, and a monitor function for outputting their output information to a monitor such as a display. The support device 10 also has a function of acquiring the status value of the PLC 200 during operation and outputting it to a monitor such as a display.

光学記録媒体8に格納されたアプリケーションプログラムであるサポートプログラムがサポート装置10にインストールされることで、上述したような開発支援環境のための各種機能が実現される。光学記録媒体8に代えて、外部のサーバ装置などからネットワークを介して、サポートプログラムをダウンロードするようにしてもよい。サポート装置10は、一例として、接続ケーブルを介してPLC200のCPUユニット20と接続される。 By installing the support program, which is an application program stored in the optical recording medium 8, into the support device 10, various functions for the development support environment as described above are realized. Instead of the optical recording medium 8, the support program may be downloaded from an external server device or the like via a network. The support device 10 is connected to the CPU unit 20 of the PLC 200 via a connection cable, for example.

<C.サポート装置10のハードウェア構成例>
図3は、サポート装置10のハードウェア構成例を示す模式図である。図3を参照して、サポート装置10は、典型的には、汎用のコンピュータで構成される。なお、PLC200が配置される製造現場における保守性の観点からは、可搬性に優れたノート型のパーソナルコンピュータが好ましい。
<C. Hardware configuration example of support device 10>
FIG. 3 is a schematic diagram showing an example of the hardware configuration of the support device 10. As shown in FIG. Referring to FIG. 3, support device 10 is typically configured with a general-purpose computer. Note that from the viewpoint of maintainability at the manufacturing site where the PLC 200 is placed, a notebook personal computer with excellent portability is preferable.

サポート装置10は、記憶部101と、オペレーティングシステム(OS)を含む各種プログラムを実行するCPU102とを備える。記憶部101は、BIOSや各種データを格納するROM(Read Only Memory)104と、CPU102でのプログラムの実行に必要なデータを格納するための作業領域を提供するRAM(Random Access Memory)106と、CPU102で実行されるプログラムなどを不揮発的に格納するハードディスク(HDD)108とを含む。ROM104と、HDD108とは、非一時的なコンピュータ可読媒体の具体化例である。 The support device 10 includes a storage unit 101 and a CPU 102 that executes various programs including an operating system (OS). The storage unit 101 includes a ROM (Read Only Memory) 104 that stores BIOS and various data, and a RAM (Random Access Memory) 106 that provides a work area for storing data necessary for the execution of programs by the CPU 102. It includes a hard disk (HDD) 108 that non-volatilely stores programs and the like executed by the CPU 102. ROM 104 and HDD 108 are examples of non-transitory computer-readable media.

サポート装置10は、さらに、サポート装置10に指示を入力するためにユーザが操作するキーボード110およびマウス112を含む操作部103、および情報をユーザに提示するためのディスプレイ114を含む。サポート装置10は、PLC200(CPUユニット20)などと通信するための通信インターフェイス118を含む。通信インターフェイス118は、PLC200が備えるUSB(Universal Serial Bus)インターフェイス(図示略)と通信するためにUSB通信モジュールを含み得る。 The support device 10 further includes an operation unit 103 including a keyboard 110 and a mouse 112 that are operated by the user to input instructions to the support device 10, and a display 114 for presenting information to the user. Support device 10 includes a communication interface 118 for communicating with PLC 200 (CPU unit 20) and the like. Communication interface 118 may include a USB communication module for communicating with a USB (Universal Serial Bus) interface (not shown) included in PLC 200.

サポート装置10は、光学記録媒体8からそれに格納されている開発支援環境を提供するためのサポートプログラムを読み取るための光学記録媒体読取装置116を含む。光学記録媒体8は、非一時的なコンピュータ可読媒体の具体化例である。 The support device 10 includes an optical recording medium reading device 116 for reading a support program for providing a development support environment stored therein from the optical recording medium 8. Optical recording medium 8 is an embodiment of a non-transitory computer-readable medium.

図3には、CPU102等のプロセッサがプログラムを実行することで必要な機能が提供される構成例を示したが、これらの提供される機能の一部または全部を、専用のハードウェア回路(例えば、ASIC(Application Specific Integrated Circuit)またはFPGA(Field-Programmable Gate Array)など)を用いて実装してもよい。この場合には、仮想化技術を用いて、用途の異なる複数のOSを並列的に実行させるとともに、各OS上で必要なアプリケーションを実行させるようにしてもよい。 FIG. 3 shows an example of a configuration in which necessary functions are provided by a processor such as the CPU 102 executing a program. , ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array), etc.). In this case, virtualization technology may be used to run multiple OSs for different purposes in parallel, and to run necessary applications on each OS.

<D.サポート装置10のソフトウェア構成>
図4は、サポート装置10のソフトウェア構成例を示す模式図である。図4では、サポート装置10のソフトウェア構成に関連付けて、記憶部101に格納される情報の一例が示される。
<D. Software configuration of support device 10>
FIG. 4 is a schematic diagram showing an example of the software configuration of the support device 10. As shown in FIG. FIG. 4 shows an example of information stored in the storage unit 101 in association with the software configuration of the support device 10.

(d1.サポート装置10に格納される情報)
記憶部101に格納される情報は、ラダープログラム42と、テキスト情報460と、親子情報480と、位置情報440と、階層構造160と、部品情報430と、設定情報450と、オブジェクト情報52と、サポートプログラム54とを含む。
(d1. Information stored in the support device 10)
The information stored in the storage unit 101 includes the ladder program 42, text information 460, parent-child information 480, position information 440, hierarchical structure 160, parts information 430, setting information 450, object information 52, and a support program 54.

本実施の形態において、ラダープログラム42は、ラダーダイアグラムで記述されたコンパイルがされる前の状態で記憶部101に格納されているものとして説明する。ラダープログラム42は、複数のラダー回路420を含む。また、ラダープログラム42に含まれる各ラダー回路420は、後述するエディタ15によって編集され、作成される。 In this embodiment, the ladder program 42 will be described as being stored in the storage unit 101 in an uncompiled state described in a ladder diagram. Ladder program 42 includes a plurality of ladder circuits 420. Further, each ladder circuit 420 included in the ladder program 42 is edited and created by an editor 15, which will be described later.

テキスト情報460は、ラダー回路420ごとに格納されている。各テキスト情報460は、いずれのラダー回路420と対応関係にあるかを特定可能な情報を含む。テキスト情報460は、図示しないものの、ラダー回路420の名称を示すテキスト情報および、ラダー回路420の順番を示すテキスト情報のうちの少なくとも一方の情報を含む。 Text information 460 is stored for each ladder circuit 420. Each text information 460 includes information that can specify which ladder circuit 420 it corresponds to. Although not shown, the text information 460 includes at least one of text information indicating the name of the ladder circuit 420 and text information indicating the order of the ladder circuit 420.

親子情報480は、ラダー画面120を介して入力される情報であって、一のラダー回路420と他のラダー回路420との階層関係を示す情報である。親子情報480は、いずれのラダー回路420に対して入力された情報であるかを特定可能な情報を含む。本実施の形態においては、親子情報480は、階層の区切りを示す情報と階層の深さを示す情報とを含む。 The parent-child information 480 is information input via the ladder screen 120, and is information indicating the hierarchical relationship between one ladder circuit 420 and another ladder circuit 420. Parent-child information 480 includes information that can specify which ladder circuit 420 the information is input to. In this embodiment, the parent-child information 480 includes information indicating a layer break and information indicating the depth of the layer.

なお、親子情報480は、設定情報450に含まれる入力ルールに従って入力される情報である。入力ルールは、予め定められていてもよく、また、ユーザによって変更可能な構成であってもよい。 Note that the parent-child information 480 is information that is input according to the input rules included in the setting information 450. The input rules may be predetermined or may be configured to be changeable by the user.

位置情報440は、ラダー画面120上における各ラダー回路420の位置を示す情報である。なお、位置情報440は、各ラダー回路420の位置を示すものであればよく、たとえば、ラダー回路420の順序を示すものであってもよい。 The position information 440 is information indicating the position of each ladder circuit 420 on the ladder screen 120. Note that the position information 440 only needs to indicate the position of each ladder circuit 420, and may indicate the order of the ladder circuits 420, for example.

階層構造160は、親子情報480に基づいて定義部16が定義するラダープログラム42に含まれるラダー回路420の全体構造を示す情報である。本実施の形態においては、階層構造160は、設定情報450に含まれる入力ルールと、親子情報480と、位置情報440とに基づいて定義される。 The hierarchical structure 160 is information indicating the overall structure of the ladder circuit 420 included in the ladder program 42 defined by the definition unit 16 based on the parent-child information 480. In this embodiment, hierarchical structure 160 is defined based on input rules included in setting information 450, parent-child information 480, and position information 440.

部品情報430は、ラダープログラム42に含まれる呼出命令によって呼び出されるファンクションブロックを含む。また、部品情報430は、任意に選択した1または複数のラダー回路420から構成された部品を含む。 The component information 430 includes function blocks called by a call instruction included in the ladder program 42. Furthermore, the component information 430 includes components made up of one or more arbitrarily selected ladder circuits 420.

設定情報450は、親子情報480の入力ルール、ディスプレイ114にラダー画面120および階層画面180を表示する際の表示ルール、階層構造160を定義し直す際のルール、新たなラダー回路420を追加または削除するときのルールなどを含む。 The setting information 450 includes input rules for parent-child information 480, display rules for displaying the ladder screen 120 and hierarchy screen 180 on the display 114, rules for redefining the hierarchical structure 160, and adding or deleting a new ladder circuit 420. This includes rules for when doing so.

オブジェクト情報52は、ラダープログラム42を視覚的にディスプレイ114に表示するために用いられる。オブジェクト情報52は、ラダープログラム42の内容を視覚的に示すための各部品を含む。たとえば、オブジェクト情報52は、入力側母線421、出力側母線422、接点423、およびコイル424などを含む。 Object information 52 is used to visually display ladder program 42 on display 114. The object information 52 includes parts for visually indicating the contents of the ladder program 42. For example, the object information 52 includes an input bus 421, an output bus 422, a contact 423, a coil 424, and the like.

サポートプログラム54は、ラダープログラム42を表示するためのプログラムを含む。また、サポートプログラム54は、制御プログラムを開発するための各種機能を実現するためのプログラムである。 Support program 54 includes a program for displaying ladder program 42. Further, the support program 54 is a program for realizing various functions for developing a control program.

(d2.ラダープログラムを表示するためのモジュール)
図4に示された各種機能は、CPU102がサポートプログラム54を実行することで実現される。具体的には、サポートプログラム54は、受付部14、エディタ15、ラダー画面生成部12、定義部16、作成部17、階層画面生成部18、部品化部19、および表示部11の機能を提供する。
(d2. Module for displaying ladder program)
The various functions shown in FIG. 4 are realized by the CPU 102 executing the support program 54. Specifically, the support program 54 provides the functions of the reception section 14, editor 15, ladder screen generation section 12, definition section 16, creation section 17, hierarchical screen generation section 18, componentization section 19, and display section 11. do.

受付部14は、操作部103からの操作の入力を受け付ける。受付部14は、典型的には、入力インターフェイスである。たとえば、受付部14は、親子情報480の入力、位置情報440の変更、部品情報430の登録、テキスト情報460の入力などを受け付ける。なお、位置情報440の変更は、ラダー回路420の追加またはラダー回路420の削除に基づくものを含む。 The reception unit 14 receives operation input from the operation unit 103. The reception unit 14 is typically an input interface. For example, the reception unit 14 receives input of parent-child information 480, change of position information 440, registration of parts information 430, input of text information 460, and the like. Note that changes in the position information 440 include changes based on addition of the ladder circuit 420 or deletion of the ladder circuit 420.

エディタ15は、ユーザ操作に従いラダープログラム42の編集および作成を実施する。エディタ15は、PLC200の運転中に実行される制御プログラムの一部を書き換える(編集する)オンラインエディット機能をさらに提供し得る。 The editor 15 edits and creates the ladder program 42 according to user operations. The editor 15 may further provide an online editing function for rewriting (editing) a part of the control program executed while the PLC 200 is in operation.

ラダー画面生成部12は、ラダー画面120を生成する。ラダー画面120上には、上述したように、複数のラダー回路420が並べて表示され、ラダー回路420ごとに登録されたテキスト情報460が対応するラダー回路420の上部に表示される。 The ladder screen generation unit 12 generates a ladder screen 120. As described above, a plurality of ladder circuits 420 are displayed side by side on the ladder screen 120, and the text information 460 registered for each ladder circuit 420 is displayed above the corresponding ladder circuit 420.

ラダー画面生成部12は、受付部14が情報の入力を受け付けた場合、受け付けた内容に応じてラダー画面120の表示内容を更新する。たとえば、ラダー画面生成部12は、受付部14が親子情報480の入力を受け付けた場合に、入力された親子情報480をラダー画面120上に表示する。 When the reception unit 14 receives input of information, the ladder screen generation unit 12 updates the display content of the ladder screen 120 according to the received content. For example, the ladder screen generation unit 12 displays the input parent-child information 480 on the ladder screen 120 when the reception unit 14 receives the input of the parent-child information 480.

定義部16は、親子情報480に基づいて階層構造160を定義する。本実施の形態において、定義部16は、設定情報450に含まれる入力ルールと、親子情報480と、位置情報440とに基づいて階層構造160を定義する。 The definition unit 16 defines the hierarchical structure 160 based on the parent-child information 480. In the present embodiment, the definition unit 16 defines the hierarchical structure 160 based on input rules included in the setting information 450, parent-child information 480, and position information 440.

また、定義部16は、受付部14が情報の入力を受け付けた場合、受け付けた内容に応じて階層構造160を定義しなおす。たとえば、定義部16は、親子情報480が入力されたこと、または位置情報440が変更されたことに応じて、階層構造160を定義しなおす。 Further, when the reception unit 14 receives input of information, the definition unit 16 redefines the hierarchical structure 160 according to the received content. For example, the definition unit 16 redefines the hierarchical structure 160 in response to parent-child information 480 being input or location information 440 being changed.

作成部17は、テキスト情報460の編集または作成を行う。たとえば、作成部17は、受付部14がテキスト情報460の入力を受け付けた場合にテキスト情報460の編集または作成を行う。また、作成部17は、ラダー回路420が追加されたり、あるいは削除されたりしたことに応じて、テキスト情報460を更新または作成する。詳細については、後述する。 The creation unit 17 edits or creates text information 460. For example, the creation unit 17 edits or creates the text information 460 when the reception unit 14 receives the input of the text information 460. The creation unit 17 also updates or creates the text information 460 in response to the addition or deletion of the ladder circuit 420. Details will be described later.

階層画面生成部18は、定義部16が定義した階層構造160をテキスト情報460で表示した階層画面180を生成する。階層構造160の表現方法は、図1に示したテキスト情報460の冒頭にインデントを設ける方法に限られず、たとえば、罫線を用いてテキスト情報460同士を繋いだ表現方法、テキスト情報460の間に階層区切りを示すスラッシュを入れる表現方法などであってもよい。 The hierarchical screen generation unit 18 generates a hierarchical screen 180 that displays the hierarchical structure 160 defined by the definition unit 16 using text information 460. The method of expressing the hierarchical structure 160 is not limited to the method of providing an indent at the beginning of the text information 460 shown in FIG. An expression method such as inserting a slash to indicate a break may also be used.

階層画面生成部18は、受付部14が情報の入力を受け付けた場合、受け付けた内容に応じて階層画面180の表示内容を更新する。たとえば、階層画面生成部18は、受付部14が受け付けた内容に応じて階層構造160が定義しなおされたり、テキスト情報460の内容が更新されたりした場合に、階層画面180の表示内容を更新する。 When the reception unit 14 receives input of information, the hierarchical screen generation unit 18 updates the display content of the hierarchical screen 180 according to the received content. For example, when the hierarchical structure 160 is redefined according to the content received by the reception unit 14 or the content of the text information 460 is updated, the hierarchical screen generation unit 18 updates the display content of the hierarchical screen 180. do.

部品化部19は、複数のラダー回路420を一の部品として部品情報430に登録する。たとえば、部品化部19は、受付部14が、一のラダー回路420の選択を受け付けた場合に、選択されたラダー回路420および選択されたラダー回路420の子階層に含まれるすべてのラダー回路420を一の部品として部品情報430に登録する。 The componentization unit 19 registers the plurality of ladder circuits 420 as one component in the component information 430. For example, when the reception unit 14 receives the selection of one ladder circuit 420, the componentization unit 19 selects the selected ladder circuit 420 and all the ladder circuits 420 included in the child hierarchy of the selected ladder circuit 420. is registered in the parts information 430 as one part.

表示部11は、ラダー画面生成部12が生成したラダー画面120と、階層画面生成部18が生成した階層画面180とをディスプレイ114に表示する。また、表示部11は、受付部14が表示範囲の変更を受け付けた場合に、ディスプレイ114に表示するラダー画面120および階層画面180の表示範囲を変更する。たとえば、表示部11は、階層画面生成部18を介して一のテキスト情報460が選択された場合に、テキスト情報460に対応するラダー回路420がディスプレイ114内に表示されるようにラダー画面120の表示範囲を変更する。 The display unit 11 displays the ladder screen 120 generated by the ladder screen generation unit 12 and the hierarchical screen 180 generated by the hierarchical screen generation unit 18 on the display 114. Further, the display unit 11 changes the display ranges of the ladder screen 120 and the hierarchy screen 180 displayed on the display 114 when the reception unit 14 receives a change in the display range. For example, the display unit 11 displays the ladder screen 120 so that when one piece of text information 460 is selected via the hierarchical screen generation unit 18, the ladder circuit 420 corresponding to the text information 460 is displayed within the display 114. Change the display range.

<E.ユーザインターフェイス画面>
図5は、ユーザインターフェイス画面140の一例である。ユーザインターフェイス画面140は、表示部11によって生成されて、ディスプレイ114に表示される。
<E. User interface screen>
FIG. 5 is an example of the user interface screen 140. User interface screen 140 is generated by display unit 11 and displayed on display 114.

図5を参照して、ユーザインターフェイス画面140は、ラダー画面120を表示する第1領域142と階層画面180を表示するための第2領域144とを含む。また、ラダー画面120には、階層画面180の表示を省略して、ラダー画面120を表示するための第1領域142を広げるための切替ボタン146が設けられている。また、ユーザインターフェイス画面140は、第1領域142上に表示するラダー画面120の表示範囲を変更するためのスクロールバー148が設けられている。 Referring to FIG. 5, user interface screen 140 includes a first area 142 for displaying ladder screen 120 and a second area 144 for displaying hierarchy screen 180. Further, the ladder screen 120 is provided with a switching button 146 for omitting the display of the hierarchy screen 180 and widening the first area 142 for displaying the ladder screen 120. Further, the user interface screen 140 is provided with a scroll bar 148 for changing the display range of the ladder screen 120 displayed on the first area 142.

本実施の形態において、ラダー画面120と階層画面180とは、一のユーザインターフェイス画面140内に表示される。なお、ラダー画面120と階層画面180とを表示する方法は、これに限られない。たとえば、ラダー画面120と階層画面180とは、それぞれ別のウィンドウに表示されてもよい。 In this embodiment, the ladder screen 120 and the hierarchy screen 180 are displayed within one user interface screen 140. Note that the method of displaying the ladder screen 120 and the hierarchy screen 180 is not limited to this. For example, the ladder screen 120 and the hierarchy screen 180 may be displayed in separate windows.

<F.表示処理>
図6は、ディスプレイ114上にラダープログラム42を表示する際に実行される表示処理を示すフローチャートである。図6に示す表示処理は、ユーザインターフェイス画面140をディスプレイ114に表示するための処理である。表示処理は、たとえば、ユーザインターフェイス画面140の表示が求められているときに、所定の処理周期毎にメインルーチン(図示せず)から呼び出されて実行される。
<F. Display processing>
FIG. 6 is a flowchart showing display processing executed when displaying the ladder program 42 on the display 114. The display process shown in FIG. 6 is a process for displaying the user interface screen 140 on the display 114. The display process is called and executed from a main routine (not shown) at every predetermined process cycle when the user interface screen 140 is requested to be displayed, for example.

S101において、CPU102は、ラダー画面120を生成する。より具体的には、CPU102は、ラダープログラム42を複数のラダー回路420を含む回路態様で表示するとともに、ラダー回路420ごとに登録されているテキスト情報460を、対応するラダー回路420に対応させて表示するためのラダー画面120を生成する。テキスト情報460は、ラダー回路420を表示する順番に従って生成されてもよい。また、CPU102は、S101において、ラダー画面120を生成したときにラダー画面120上における各ラダー回路420の位置を示す位置情報440を生成する。 In S101, the CPU 102 generates a ladder screen 120. More specifically, the CPU 102 displays the ladder program 42 in a circuit format including a plurality of ladder circuits 420, and also associates the text information 460 registered for each ladder circuit 420 with the corresponding ladder circuit 420. A ladder screen 120 for display is generated. The text information 460 may be generated according to the order in which the ladder circuit 420 is displayed. Further, in S101, the CPU 102 generates position information 440 indicating the position of each ladder circuit 420 on the ladder screen 120 when the ladder screen 120 is generated.

S102において、CPU102は、親子情報480の入力を受け付ける。より具体的には、CPU102は、ラダー画面120上に特殊記号「#」の入力がされた場合に、その入力を受け付ける。 In S102, the CPU 102 receives input of parent-child information 480. More specifically, when the special symbol "#" is input on the ladder screen 120, the CPU 102 accepts the input.

S104において、階層化処理を実行する。階層化処理は、ラダープログラム42に含まれる複数のラダー回路420の階層構造160を定義する処理である。階層化処理は、S102で生成された位置情報440とS102で受け付けられた親子情報480とに基づいて実行される。階層化処理については、図21を参照して後述する。 In S104, hierarchization processing is executed. The layering process is a process that defines the hierarchical structure 160 of the plurality of ladder circuits 420 included in the ladder program 42. The hierarchization process is executed based on the position information 440 generated in S102 and the parent-child information 480 accepted in S102. The hierarchization process will be described later with reference to FIG. 21.

S105において、CPU102は、階層画面180を生成する。より具体的には、CPU102は、テキスト情報460と、階層構造160とに基づいて、階層構造160をテキスト情報460で表した階層画面180を生成する。 In S105, the CPU 102 generates a hierarchical screen 180. More specifically, CPU 102 generates hierarchical screen 180 in which hierarchical structure 160 is represented by text information 460, based on text information 460 and hierarchical structure 160.

S106において、CPU102は、S101で生成したラダー画面120と、S105で生成した階層画面180とを含むユーザインターフェイス画面140を生成してディスプレイ114上に表示して、表示処理を終了する。 In S106, the CPU 102 generates a user interface screen 140 including the ladder screen 120 generated in S101 and the hierarchical screen 180 generated in S105 and displays it on the display 114, and ends the display process.

<G.位置情報440の変更操作>
上述のように、受付部14は、位置情報440の変更を受け付ける。本実施の形態において、受付部14は、ラダー画面120を介して入力された操作に限らず、階層画面180を介して入力された操作に基づいて行われる操作によっても、位置情報440の変更を受け付ける。
<G. Operation to change location information 440>
As described above, the reception unit 14 accepts changes to the location information 440. In the present embodiment, the reception unit 14 is configured to change the position information 440 not only by an operation input via the ladder screen 120 but also by an operation performed based on an operation input via the hierarchy screen 180. accept.

ラダー画面120上におけるラダー回路420間の位置関係に応じて任意に階層構造160を定義できるため、ユーザは、親子関係とする各ラダー回路420の内容を確認しながら親子情報480を入力できる。 Since the hierarchical structure 160 can be arbitrarily defined according to the positional relationship between the ladder circuits 420 on the ladder screen 120, the user can input the parent-child information 480 while confirming the contents of each ladder circuit 420 that has a parent-child relationship.

また、階層画面生成部18を介した操作によりラダー回路420間の位置関係を変更でき、位置関係の変更に応じて階層構造160も変更できる。そのため、階層構造160の変更を容易に行うことができる。 Further, the positional relationship between the ladder circuits 420 can be changed by operation via the hierarchical screen generation unit 18, and the hierarchical structure 160 can also be changed in accordance with the change in the positional relationship. Therefore, the hierarchical structure 160 can be easily changed.

位置情報440は、ラダー回路420の順序を変更したときに限らず、ラダー回路420を追加した場合、またはラダー回路420を削除した場合に変更される。位置情報440の変更は、ラダー回路420の順序を変更する操作に限らず、ラダー回路420を追加する操作、およびラダー回路420を削除する操作によっても行われる。以下、各操作が受け付けられたときの処理について詳細に説明する。 The position information 440 is changed not only when the order of the ladder circuits 420 is changed, but also when a ladder circuit 420 is added or deleted. The position information 440 can be changed not only by changing the order of the ladder circuits 420 but also by adding a ladder circuit 420 or deleting a ladder circuit 420. The processing performed when each operation is accepted will be described in detail below.

(g1.追加操作)
図7は、ラダー回路420を追加するときに実行される追加処理を示すフローチャートである。追加処理は、ラダー回路420を追加するための操作が受け付けられたときにCPU102によって行われる処理である。
(g1. Additional operation)
FIG. 7 is a flowchart showing the addition process executed when adding the ladder circuit 420. The addition process is a process performed by the CPU 102 when an operation for adding the ladder circuit 420 is accepted.

S111において、CPU102は、挿入ルールに従ってラダー回路420を挿入する位置を決定する。挿入ルールは、設定情報450として予め記憶部101に格納されている。挿入ルールは、サポートプログラム54を提供するベンダによって予め定められていてもよく、また、ユーザによって変更可能であってもよい。 In S111, the CPU 102 determines the position where the ladder circuit 420 is inserted according to the insertion rule. The insertion rules are stored in advance in the storage unit 101 as setting information 450. The insertion rules may be predetermined by the vendor providing the support program 54, or may be changeable by the user.

S112において、CPU102は、位置情報440を更新する。具体的には、新たに追加されたラダー回路420の位置情報440が追加され、新たに追加されたラダー回路420よりも順番が後のラダー回路420の位置情報440が更新される。 In S112, the CPU 102 updates the position information 440. Specifically, the position information 440 of the newly added ladder circuit 420 is added, and the position information 440 of the ladder circuit 420 that is after the newly added ladder circuit 420 is updated.

S113において、CPU102は、新たに追加されたラダー回路420および、新たに追加されたラダー回路420と隣り合うラダー回路420の親子情報480を更新する。たとえば、CPU102は、追加する際に選択したラダー回路420およびラダー回路420を追加する位置の少なくとも一方に応じて親子情報480を更新する。親子情報480の更新の一例については、図10および図11を参照して後述する。 In S113, the CPU 102 updates the newly added ladder circuit 420 and the parent-child information 480 of the ladder circuit 420 adjacent to the newly added ladder circuit 420. For example, the CPU 102 updates the parent-child information 480 according to at least one of the ladder circuit 420 selected at the time of addition and the position at which the ladder circuit 420 is added. An example of updating the parent-child information 480 will be described later with reference to FIGS. 10 and 11.

S114において、CPU102は、階層化処理を実行する。階層化処理は、ラダープログラム42に含まれる複数のラダー回路420の階層構造160を定義する処理である。階層化処理は、S112で更新された位置情報440とS113で更新された親子情報480とに基づいて実行される。階層化処理については、図21を参照して後述する。 In S114, the CPU 102 executes hierarchization processing. The layering process is a process that defines the hierarchical structure 160 of the plurality of ladder circuits 420 included in the ladder program 42. The hierarchization process is executed based on the position information 440 updated in S112 and the parent-child information 480 updated in S113. The hierarchization process will be described later with reference to FIG. 21.

S115において、CPU102は、テキスト情報460を更新する。本実施の形態において、テキスト情報460は、ラダー回路420の名称を示す情報と、ラダー回路420の順番を示す情報とを含む。CPU102は、ラダー回路420の順番を示す情報を、S112において更新された後の位置情報440に基づいて更新する。また、CPU102は、新たに追加するラダー回路420の名称を作成する。 In S115, CPU 102 updates text information 460. In this embodiment, text information 460 includes information indicating the name of ladder circuit 420 and information indicating the order of ladder circuit 420. The CPU 102 updates information indicating the order of the ladder circuits 420 based on the position information 440 updated in S112. Further, the CPU 102 creates a name for the newly added ladder circuit 420.

すなわち、作成部17は、ラダー回路420が追加されたときに、更新された後の位置情報440に基づいて、テキスト情報460に含まれるラダー回路420の順番を示す情報を更新するとともに、新たに追加されたラダー回路420の名称を作成する。 That is, when the ladder circuit 420 is added, the creation unit 17 updates the information indicating the order of the ladder circuit 420 included in the text information 460 based on the updated position information 440, and also updates the information indicating the order of the ladder circuit 420 included in the text information 460. Create a name for the added ladder circuit 420.

なお、作成する名称は、予め定められた定型テキスト(たとえば、「回路コメント」)であってもよく、また、所定のルールに従って作成されたテキストであってもよい。たとえば、作成部17は、新たに追加されたラダー回路420が属する階層を指すテキストを名称として作成してもよい。 Note that the name to be created may be a predetermined standard text (for example, "circuit comment"), or may be a text created according to a predetermined rule. For example, the creation unit 17 may create a name using text that indicates the hierarchy to which the newly added ladder circuit 420 belongs.

S116において、CPU102は、S111~S115の処理を実行することで更新した各種情報に基づいてラダー画面120の表示を更新する。 In S116, the CPU 102 updates the display on the ladder screen 120 based on the various information updated by executing the processes in S111 to S115.

S117において、CPU102は、S111~S115の処理を実行することで更新した各種情報に基づいて階層画面180の表示を更新して追加処理を終了する。 In S117, the CPU 102 updates the display on the hierarchical screen 180 based on the various information updated by executing the processes in S111 to S115, and ends the additional process.

(g2.追加操作による画面遷移)
図8を参照して、追加操作による具体的な画面遷移を説明する。図8は、挿入ルールの一例を示す図である。たとえば、ユーザは、操作部103を操作することで、カーソルPを動かし、階層画面180上の一のテキスト情報460を選択できる。階層画面180上で一のテキスト情報460を選択することで、選択したテキスト情報460に対応するラダー回路420が選択されたこととなる。
(g2. Screen transition due to additional operations)
With reference to FIG. 8, specific screen transitions due to additional operations will be described. FIG. 8 is a diagram showing an example of an insertion rule. For example, by operating the operation unit 103, the user can move the cursor P and select one piece of text information 460 on the hierarchical screen 180. By selecting one piece of text information 460 on the hierarchical screen 180, the ladder circuit 420 corresponding to the selected text information 460 is selected.

ラダー回路420が選択された状態で追加操作がされると、図7に示した追加処理が実行され、図8の左側に示した画面が右側に示した画面に遷移する。図8に示す例では、CPU102は、選択したラダー回路420の子階層の一番下に新たなラダー回路420を挿入するというルールに従って新たなラダー回路420を追加する。その結果、図8に示すように、ラダー画面120上の2行目に新たなラダー回路420と、「2 回路コメント」というテキスト情報460とが追加されるとともに、階層画面180上に「2 回路コメント」というテキスト情報460が追加される。そして、2行目以降のラダー回路420の位置が一つずつずれるとともに、テキスト情報460も更新される。また、追加された新たなラダー回路420が、「回路1」が示すラダー回路420の子階層に含まれることが定義される。 When an addition operation is performed with the ladder circuit 420 selected, the addition process shown in FIG. 7 is executed, and the screen shown on the left side of FIG. 8 changes to the screen shown on the right side. In the example shown in FIG. 8, the CPU 102 adds a new ladder circuit 420 according to the rule that the new ladder circuit 420 is inserted at the bottom of the child hierarchy of the selected ladder circuit 420. As a result, as shown in FIG. 8, a new ladder circuit 420 and text information 460 "2 circuit comment" are added to the second line on the ladder screen 120, and "2 circuit comment" is added on the hierarchy screen 180. Text information 460 "Comment" is added. Then, the positions of the ladder circuits 420 in the second and subsequent rows are shifted one by one, and the text information 460 is also updated. Furthermore, it is defined that the added new ladder circuit 420 is included in the child hierarchy of the ladder circuit 420 indicated by "Circuit 1".

なお、挿入ルールは、図8に示したルールに限られない。図9~図11は、挿入ルールの他の例を示す図である。図9を参照して、CPU102は、選択したラダー回路420の子階層の一番上に新たなラダー回路420を挿入するというルールに従って新たなラダー回路420を追加してもよい。このルールに従うと、図9に示すように、ラダー画面120上の1行目に新たなラダー回路420とテキスト情報460とが追加されるとともに、階層画面180上に「1.回路コメント」というテキスト情報460が追加される。そして、1行目以降のラダー回路420の位置が一つずつずれるとともに、テキスト情報460も更新される。また、追加された新たなラダー回路420が、「回路1」が示すラダー回路420の子階層に含まれることが定義される。 Note that the insertion rule is not limited to the rule shown in FIG. 8. 9 to 11 are diagrams showing other examples of insertion rules. Referring to FIG. 9, CPU 102 may add a new ladder circuit 420 according to the rule of inserting a new ladder circuit 420 at the top of the child hierarchy of the selected ladder circuit 420. According to this rule, as shown in FIG. 9, a new ladder circuit 420 and text information 460 are added to the first line on the ladder screen 120, and a text "1. Circuit comment" is added on the hierarchy screen 180. Information 460 is added. Then, the positions of the ladder circuits 420 from the first row onward are shifted one by one, and the text information 460 is also updated. Furthermore, it is defined that the added new ladder circuit 420 is included in the child hierarchy of the ladder circuit 420 indicated by "Circuit 1".

図10を参照して、CPU102は、選択したラダー回路420と同じ階層であって、選択したラダー回路420の一つ下に位置するようにラダー回路420を挿入するというルールに従って新たなラダー回路420を追加してもよい。このルールに従うと、図10に示すように、「回路1」が示すラダー回路420の子階層の下である、ラダー画面120上の2行目に新たなラダー回路420とテキスト情報460とが追加されるとともに、階層画面180上に「2.回路コメント」というテキスト情報460が追加される。そして、2行目以降のラダー回路420が一つずつずれるとともに、テキスト情報460も更新される。また、追加された新たなラダー回路420が、「0.回路1」が示すラダー回路420と同じ階層であることが定義される。 Referring to FIG. 10, CPU 102 inserts a new ladder circuit 420 according to the rule that the ladder circuit 420 is inserted in the same hierarchy as the selected ladder circuit 420 and located one level below the selected ladder circuit 420. may be added. According to this rule, as shown in FIG. 10, a new ladder circuit 420 and text information 460 are added to the second line on the ladder screen 120, which is below the child hierarchy of the ladder circuit 420 indicated by "Circuit 1". At the same time, text information 460 "2. Circuit comment" is added on the hierarchy screen 180. Then, as the ladder circuits 420 in the second and subsequent rows are shifted one by one, the text information 460 is also updated. Furthermore, it is defined that the added new ladder circuit 420 is at the same level as the ladder circuit 420 indicated by "0.Circuit 1".

図11を参照して、CPU102は、選択したラダー回路420と同じ階層であって、選択したラダー回路420の階層の一番下にラダー回路420を挿入するというルールに従って新たなラダー回路420を追加してもよい。このルールに従うと、図11に示すように、ラダー画面120上の10行目に新たなラダー回路420とテキスト情報460とが追加されるとともに、階層画面180上に「10.回路コメント」というテキスト情報460が追加される。また、追加された新たなラダー回路420が、「0.回路1」が示すラダー回路420と同じ階層であることが定義される。 Referring to FIG. 11, the CPU 102 adds a new ladder circuit 420 according to the rule that the ladder circuit 420 is inserted at the same level as the selected ladder circuit 420 and at the bottom of the level of the selected ladder circuit 420. You may. According to this rule, as shown in FIG. 11, a new ladder circuit 420 and text information 460 are added to the 10th line on the ladder screen 120, and a text "10. Circuit comment" is added on the hierarchy screen 180. Information 460 is added. Furthermore, it is defined that the added new ladder circuit 420 is at the same level as the ladder circuit 420 indicated by "0.Circuit 1".

なお、階層を考慮してラダー回路420が挿入される場合、必要に応じて親子情報480が更新される。具体的には、選択したラダー回路420に対して親子情報480が入力されているか否か、および挿入位置のうちの少なくとも一方の情報に基づいて、親子情報480が更新される。たとえば、図10および図11に示すように、親子情報480が入力されたラダー回路420が選択された状態で、選択されたラダー回路420と同じ階層にラダー回路420を追加する場合、追加したラダー回路420に親子情報480が追加される。 Note that when the ladder circuit 420 is inserted in consideration of the hierarchy, the parent-child information 480 is updated as necessary. Specifically, the parent-child information 480 is updated based on whether the parent-child information 480 has been input to the selected ladder circuit 420 and information on at least one of the insertion positions. For example, as shown in FIGS. 10 and 11, when adding a ladder circuit 420 to the same level as the selected ladder circuit 420 with the ladder circuit 420 input with parent-child information 480 being selected, the added ladder circuit 420 Parent-child information 480 is added to the circuit 420.

なお、挿入ルールは、図8~図11に示したものに限られない。たとえば、CPU102は、選択したラダー回路420と同じ階層であって、選択したラダー回路420の階層の一番上にラダー回路420を挿入するというルールに従って新たなラダー回路420を追加してもよい。 Note that the insertion rules are not limited to those shown in FIGS. 8 to 11. For example, the CPU 102 may add a new ladder circuit 420 according to the rule that the ladder circuit 420 is inserted at the top of the hierarchy of the selected ladder circuit 420 and in the same hierarchy as the selected ladder circuit 420.

テキスト情報460を追加してラダープログラム42を開発していく際に、上述のように、ラダー回路420を追加する度に階層構造160が定義し直されるため、容易に階層構造160を定義できる。 When developing the ladder program 42 by adding text information 460, the hierarchical structure 160 can be easily defined because the hierarchical structure 160 is redefined each time a ladder circuit 420 is added, as described above.

また、CPU102は、階層を考慮することなくラダー回路420を追加してもよい。図12は、階層を考慮しない挿入ルールの一例を示す図である。たとえば、CPU102は、選択したラダー回路420の階層を考慮することなく、選択したラダー回路420の一つ上に新たなラダー回路420を追加してもよい。CPU102は、階層を考慮しないため、親子情報480を追加する処理を実行しない。なお、CPU102は、上述したいずれかの挿入ルールに従ってラダー回路420を挿入する場合であっても、親子情報480を追加、または変更する処理を実行しなくともよい。 Further, the CPU 102 may add the ladder circuit 420 without considering the hierarchy. FIG. 12 is a diagram illustrating an example of an insertion rule that does not take hierarchy into account. For example, the CPU 102 may add a new ladder circuit 420 one level above the selected ladder circuit 420 without considering the hierarchy of the selected ladder circuit 420. Since the CPU 102 does not consider the hierarchy, it does not execute the process of adding parent-child information 480. Note that even when the ladder circuit 420 is inserted according to any of the insertion rules described above, the CPU 102 does not need to perform the process of adding or changing the parent-child information 480.

図13を参照して、テキスト情報460の作成ルールについて説明する。図13は、テキスト情報460の作成ルールの一例について説明するための図である。上述したように、作成部17は、所定のルールに従って新たなテキスト情報460を作成してもよい。たとえば、作成部17は、定義し直された階層構造160と、追加されたラダー回路420が属する階層のラダー回路420に対応するテキスト情報460とに基づいて、追加されたラダー回路420に対応するテキスト情報460を作成してもよい。 With reference to FIG. 13, rules for creating text information 460 will be described. FIG. 13 is a diagram for explaining an example of rules for creating text information 460. As described above, the creation unit 17 may create new text information 460 according to predetermined rules. For example, the creation unit 17 creates a map corresponding to the added ladder circuit 420 based on the redefined hierarchical structure 160 and the text information 460 corresponding to the ladder circuit 420 of the hierarchy to which the added ladder circuit 420 belongs. Text information 460 may also be created.

図13に示す例では、定義し直された階層構造160において、新たに追加されたラダー回路420は、回路1の子階層であって、子階層に含まれるラダー回路420の上から2番目に位置する。また、新たに追加されたラダー回路420が属する階層のラダー回路420(親のラダー回路420)に対応するテキスト情報460は、「回路1」である。この場合に、作成部17は、作成部17は、「回路1-2」というテキスト情報460を作成する。 In the example shown in FIG. 13, in the redefined hierarchical structure 160, the newly added ladder circuit 420 is a child hierarchy of circuit 1, and is the second ladder circuit from the top of the ladder circuits 420 included in the child hierarchy. To position. Furthermore, the text information 460 corresponding to the ladder circuit 420 (parent ladder circuit 420) in the hierarchy to which the newly added ladder circuit 420 belongs is "Circuit 1." In this case, the creation unit 17 creates text information 460 called "circuit 1-2."

定義し直された階層構造160と、追加されたラダー回路420が属する階層のラダー回路420に対応するテキスト情報460とに基づいて、追加されたラダー回路420に対応するテキスト情報460が作成されるため、新たに追加されたラダー回路420に対して、そのラダー回路420の階層を示したテキスト情報460を生成できる。 Text information 460 corresponding to the added ladder circuit 420 is created based on the redefined hierarchical structure 160 and the text information 460 corresponding to the ladder circuit 420 of the hierarchy to which the added ladder circuit 420 belongs. Therefore, for the newly added ladder circuit 420, text information 460 indicating the hierarchy of the ladder circuit 420 can be generated.

上記追加処理は、選択したラダー回路420をコピーして、貼り付ける(ペースト)場合に実行されてもよい。図14は、コピー・アンド・ペーストをした場合の画面遷移の一例である。貼り付け操作が受け付けられた場合、図7で示した追加処理が行われる。なお、貼り付け操作が受け付けられた場合には、新たに追加されたラダー回路420に対応するテキスト情報460は、元のテキスト情報460をコピーしたものであってもよく、また、作成部17によって新たに作成されてもよい。 The above additional processing may be executed when copying and pasting the selected ladder circuit 420. FIG. 14 is an example of screen transition when copying and pasting is performed. If the pasting operation is accepted, the additional processing shown in FIG. 7 is performed. Note that if the pasting operation is accepted, the text information 460 corresponding to the newly added ladder circuit 420 may be a copy of the original text information 460, or the text information 460 corresponding to the newly added ladder circuit 420 may be copied by the creation unit 17. It may be newly created.

なお、追加処理が行われた場合に、CPU102は、ラダー画面120および階層画面180上に追加した箇所を明示する目印を設けてもよい。 Note that when additional processing is performed, the CPU 102 may provide a mark on the ladder screen 120 and the hierarchy screen 180 to clearly indicate the added location.

(g3.削除操作)
図15は、ラダー回路420を削除するときに実行される削除処理を示すフローチャートである。削除処理は、ラダー回路420を削除するための操作が受け付けられたときにCPU102によって行われる処理である。
(g3. Delete operation)
FIG. 15 is a flowchart showing the deletion process executed when the ladder circuit 420 is deleted. The deletion process is a process performed by the CPU 102 when an operation for deleting the ladder circuit 420 is received.

S121において、CPU102は、削除ルールに従って削除対象を決定する。削除ルールは、設定情報450として予め記憶部101に格納されている。削除ルールは、サポートプログラム54を提供するベンダによって予め定められていてもよく、また、ユーザによって変更可能であってもよい。 In S121, the CPU 102 determines deletion targets according to deletion rules. The deletion rule is stored in advance in the storage unit 101 as setting information 450. The deletion rules may be predetermined by the vendor providing the support program 54, or may be changeable by the user.

S122において、CPU102は、位置情報440を更新する。より具体的には、削除対象のラダー回路420よりも順番が後のラダー回路420の位置情報440が更新される。 In S122, the CPU 102 updates the position information 440. More specifically, the position information 440 of the ladder circuit 420 that is later in order than the ladder circuit 420 to be deleted is updated.

S123において、CPU102は、親子情報480を更新する。たとえば、CPU102は、削除対象のラダー回路420に応じて親子情報480を更新する。親子情報480の更新の一例については、図18を参照して後述する。 In S123, the CPU 102 updates the parent-child information 480. For example, the CPU 102 updates the parent-child information 480 according to the ladder circuit 420 to be deleted. An example of updating the parent-child information 480 will be described later with reference to FIG. 18.

S124において、CPU102は、階層化処理を実行する。階層化処理は、ラダープログラム42に含まれる複数のラダー回路420の階層構造160を定義する処理である。階層化処理は、S122で更新された位置情報440とS123で更新された親子情報480とに基づいて実行される。階層化処理については、図21を参照して後述する。なお、削除処理において実行される階層化処理と、図7の追加処理において実行される階層化処理とは、共通の処理である。 In S124, the CPU 102 executes hierarchization processing. The layering process is a process that defines the hierarchical structure 160 of the plurality of ladder circuits 420 included in the ladder program 42. The hierarchization process is executed based on the position information 440 updated in S122 and the parent-child information 480 updated in S123. The layering process will be described later with reference to FIG. 21. Note that the hierarchization process executed in the deletion process and the hierarchization process executed in the addition process in FIG. 7 are common processes.

S125において、CPU102は、テキスト情報460を更新する。本実施の形態において、テキスト情報460は、ラダー回路420の名称と、ラダー回路420の順番を示す情報とを含む。CPU102は、ラダー回路420の順番を示す情報を、S122において更新された後の位置情報440に基づいて更新する。 In S125, CPU 102 updates text information 460. In this embodiment, text information 460 includes the name of ladder circuit 420 and information indicating the order of ladder circuit 420. The CPU 102 updates information indicating the order of the ladder circuits 420 based on the position information 440 updated in S122.

換言すると、上述した作成部17は、ラダー回路420が削除されたときに、更新された後の位置情報440に基づいて、テキスト情報460に含まれるラダー回路420の順番を示す情報を更新する。 In other words, when the ladder circuit 420 is deleted, the creation unit 17 described above updates the information indicating the order of the ladder circuit 420 included in the text information 460 based on the updated position information 440.

S126において、CPU102は、S121~S125の処理を実行することで更新した各種情報に基づいてラダー画面120の表示を更新する。 In S126, the CPU 102 updates the display on the ladder screen 120 based on the various information updated by executing the processes in S121 to S125.

S127において、CPU102は、S121~S125の処理を実行することで更新した各種情報に基づいて階層画面180の表示を更新して削除処理を終了する。 In S127, the CPU 102 updates the display on the hierarchical screen 180 based on the various information updated by executing the processes in S121 to S125, and ends the deletion process.

(g4.削除操作による画面遷移)
図16を参照して、削除操作による具体的な画面遷移を説明する。図16は、削除ルールの一例を示す図である。たとえば、ユーザは、操作部103を操作することで、カーソルPを動かし、階層画面180上の一または複数のテキスト情報460を選択できる。階層画面180上で一または複数のテキスト情報460を選択することで、選択したテキスト情報460に対応するラダー回路420が選択されたこととなる。図16に示す例では、一つのテキスト情報460が選択されている例を示すが、複数のテキスト情報460を選択できるようにしてもよい。
(g4. Screen transition due to deletion operation)
With reference to FIG. 16, specific screen transitions due to deletion operations will be described. FIG. 16 is a diagram illustrating an example of a deletion rule. For example, by operating the operation unit 103, the user can move the cursor P and select one or more pieces of text information 460 on the hierarchical screen 180. By selecting one or more pieces of text information 460 on the hierarchical screen 180, the ladder circuit 420 corresponding to the selected text information 460 is selected. In the example shown in FIG. 16, one piece of text information 460 is selected, but a plurality of pieces of text information 460 may be selected.

ラダー回路420が選択された状態で削除操作がされると、図15に示した削除処理が実行され、図16の左側に示した画面が右側に示した画面に遷移する。図16に示す例では、CPU102は、選択したラダー回路420を削除するという削除ルールに従ってラダー回路420を削除し、また、親子情報480の更新を行わないというルールに従ってS123の処理を実行する。その結果、ラダー画面120上の7行目以降のラダー回路420が繰り上がるとともに、テキスト情報460も更新される。また、親子情報480が更新されないため、削除対象である「回路2-1-2」が示すラダー回路420の子階層に含まれる「回路2-1-2-1」が示すラダー回路420が「回路2-1-1」が示すラダー回路420の子階層に含まれることになる。 When a deletion operation is performed with the ladder circuit 420 selected, the deletion process shown in FIG. 15 is executed, and the screen shown on the left side of FIG. 16 changes to the screen shown on the right side. In the example shown in FIG. 16, the CPU 102 deletes the ladder circuit 420 according to the deletion rule that the selected ladder circuit 420 is deleted, and executes the process of S123 according to the rule that the parent-child information 480 is not updated. As a result, the ladder circuits 420 from the seventh line onward on the ladder screen 120 are moved up, and the text information 460 is also updated. Furthermore, since the parent-child information 480 is not updated, the ladder circuit 420 indicated by "Circuit 2-1-2-1" included in the child hierarchy of the ladder circuit 420 indicated by "Circuit 2-1-2" to be deleted is " It is included in the child hierarchy of the ladder circuit 420 indicated by "Circuit 2-1-1".

なお、削除ルールは、図16に示したルールに限られない。図17は、削除ルールの他の例を示す図である。図17を参照して、CPU102は、選択したラダー回路420と、選択したラダー回路420の子階層に含まれるラダー回路420を削除対象に決定してもよい。より具体的には、図17を参照して、「回路2-1-2」が示すラダー回路420が選択された場合に、CPU102は、削除対象を、「回路2-1-2」が示すラダー回路420と、「回路2-1-2」が示すラダー回路420の子階層に定義されている「回路2-1-2-1」が示すラダー回路420とに決定してもよい。 Note that the deletion rule is not limited to the rule shown in FIG. 16. FIG. 17 is a diagram showing another example of deletion rules. Referring to FIG. 17, CPU 102 may determine the selected ladder circuit 420 and the ladder circuits 420 included in the child hierarchy of the selected ladder circuit 420 to be deleted. More specifically, with reference to FIG. 17, when ladder circuit 420 indicated by "circuit 2-1-2" is selected, CPU 102 selects the deletion target as indicated by "circuit 2-1-2". The ladder circuit 420 and the ladder circuit 420 indicated by "Circuit 2-1-2-1" defined in the child hierarchy of the ladder circuit 420 indicated by "Circuit 2-1-2" may be determined.

このように、選択したラダー回路420と、選択したラダー回路420の子階層に含まれるラダー回路420が削除対象とされることで、一のラダー回路420を選択して複数のラダー回路420を削除できる。その結果、ラダープログラム42の編集が容易になり、開発する際の利便性が向上する。 In this way, the selected ladder circuit 420 and the ladder circuits 420 included in the child hierarchy of the selected ladder circuit 420 are targeted for deletion, so that one ladder circuit 420 can be selected and multiple ladder circuits 420 can be deleted. can. As a result, editing of the ladder program 42 becomes easier, and convenience during development is improved.

また、図16に示した例では、親子情報480の更新を行わないものとした。なお、親子情報480を更新するようにしてもよい。図18は、親子情報480の更新ルールの一例を示す図である。たとえば、選択したラダー回路420の子階層にラダー回路420が含まれる場合に、CPU102は、子階層のラダー回路420の階層を一つ繰り上げるようにしてもよい。具体的には、CPU102は、図18に示すように、削除対象である「回路2-1-2」が示すラダー回路420の子階層に含まれる「回路2-1-2-1」が示すラダー回路420を、「回路2-1-2」が示すラダー回路420の親である「回路2-1」が示すラダー回路420の子階層に含めるように「回路2-1-2-1」が示すラダー回路420に入力された親子情報480を削除するようにしてもよい。 Furthermore, in the example shown in FIG. 16, the parent-child information 480 is not updated. Note that the parent and child information 480 may be updated. FIG. 18 is a diagram illustrating an example of an update rule for parent-child information 480. For example, when the ladder circuit 420 is included in the child hierarchy of the selected ladder circuit 420, the CPU 102 may move up the child hierarchy of the ladder circuit 420 by one level. Specifically, as shown in FIG. 18, the CPU 102 executes the process indicated by "circuit 2-1-2-1" included in the child hierarchy of the ladder circuit 420 indicated by "circuit 2-1-2" to be deleted. "Circuit 2-1-2-1" so that the ladder circuit 420 is included in the child hierarchy of the ladder circuit 420 indicated by "Circuit 2-1" which is the parent of the ladder circuit 420 indicated by "Circuit 2-1-2". The parent-child information 480 input to the ladder circuit 420 indicated by may be deleted.

(g5.移動操作)
図19は、ラダー回路420を移動するときに実行される移動処理を示すフローチャートである。移動処理は、ラダー回路420を移動するための操作が受け付けられたときにCPU102によって行われる処理である。
(g5. Movement operation)
FIG. 19 is a flowchart showing the movement process executed when moving the ladder circuit 420. The movement process is a process performed by the CPU 102 when an operation for moving the ladder circuit 420 is accepted.

S132において、CPU102は、位置情報440を更新する。より具体的には、CPU102は、移動対象のラダー回路420よりも順番が後であって、移動先よりも順番が前のラダー回路420の位置情報440を更新する。 In S132, the CPU 102 updates the position information 440. More specifically, the CPU 102 updates the position information 440 of the ladder circuit 420 that is after the moving target ladder circuit 420 and before the movement destination.

S133において、CPU102は、親子情報480を更新する。たとえば、CPU102は、選択対象のラダー回路420を移動する前後で、選択対象以外のラダー回路420の親子関係が変化しないように親子情報480を更新する。CPU102は、選択対象のラダー回路420と、挿入先の前後に位置するラダー回路420との親子関係が予め定められたルールを満たすように親子情報480を更新する。たとえば、CPU102は、選択対象のラダー回路420が挿入先の前に位置するラダー回路420の子となるように親子情報480を更新する。なお、CPU102は、選択対象のラダー回路420が、挿入先の前または後ろに位置するラダー回路420と同じ階層となるように親子情報480を更新してもよい。 In S133, the CPU 102 updates the parent-child information 480. For example, before and after moving the ladder circuit 420 to be selected, the CPU 102 updates the parent-child information 480 so that the parent-child relationships of the ladder circuits 420 other than the selected ladder circuits do not change. The CPU 102 updates the parent-child information 480 so that the parent-child relationship between the ladder circuit 420 to be selected and the ladder circuits 420 located before and after the insertion destination satisfies a predetermined rule. For example, the CPU 102 updates the parent-child information 480 so that the ladder circuit 420 to be selected becomes a child of the ladder circuit 420 located before the insertion destination. Note that the CPU 102 may update the parent-child information 480 so that the ladder circuit 420 to be selected is in the same hierarchy as the ladder circuit 420 located before or after the insertion destination.

S134において、CPU102は、階層化処理を実行する。階層化処理は、ラダープログラム42に含まれる複数のラダー回路420の階層構造160を定義する処理である。階層化処理は、S132で更新された位置情報440とS133で更新された親子情報480とに基づいて実行される。階層化処理については、図21を参照して後述する。なお、移動処理において実行される階層化処理と、図7の追加処理において実行される階層化処理と、図15の削除処理において実行される階層化処理とは、互いに共通の処理である。 In S134, the CPU 102 executes hierarchization processing. The layering process is a process that defines the hierarchical structure 160 of the plurality of ladder circuits 420 included in the ladder program 42. The hierarchization process is executed based on the position information 440 updated in S132 and the parent-child information 480 updated in S133. The hierarchization process will be described later with reference to FIG. 21. Note that the hierarchization process executed in the move process, the hierarchization process executed in the addition process of FIG. 7, and the hierarchization process executed in the deletion process of FIG. 15 are common processes.

S135において、CPU102は、テキスト情報460を更新する。本実施の形態において、テキスト情報460は、ラダー回路420の名称と、ラダー回路420の順番を示す情報とを含む。CPU102は、ラダー回路420の順番を示す情報を、S132において更新された後の位置情報440に基づいて更新する。 In S135, CPU 102 updates text information 460. In this embodiment, text information 460 includes the name of ladder circuit 420 and information indicating the order of ladder circuit 420. The CPU 102 updates information indicating the order of the ladder circuits 420 based on the position information 440 updated in S132.

換言すると、上述した作成部17は、ラダー回路420が移動されたときに、更新された後の位置情報440に基づいて、テキスト情報460に含まれるラダー回路420の順番を示す情報を更新する。 In other words, when the ladder circuit 420 is moved, the creation unit 17 described above updates the information indicating the order of the ladder circuit 420 included in the text information 460 based on the updated position information 440.

S136において、CPU102は、S132~S135の処理を実行することで更新した各種情報に基づいてラダー画面120の表示を更新する。 In S136, the CPU 102 updates the display on the ladder screen 120 based on the various information updated by executing the processes in S132 to S135.

S137において、CPU102は、S132~S135の処理を実行することで更新した各種情報に基づいて階層画面180の表示を更新して削除処理を終了する。 In S137, the CPU 102 updates the display of the hierarchical screen 180 based on the various information updated by executing the processes in S132 to S135, and ends the deletion process.

(g6.移動操作による画面遷移)
図20を参照して、移動操作による具体的な画面遷移を説明する。図20は、移動操作による画面遷移の一例を示す図である。たとえば、ユーザは、操作部103を操作することで、カーソルPを動かし、階層画面180上の一または複数のテキスト情報460を選択できる。階層画面180上で一または複数のテキスト情報460を選択することで、選択したテキスト情報460に対応するラダー回路420が選択されたこととなる。図16に示す例では、一つのテキスト情報460が選択されている例を示すが、複数のテキスト情報460を選択できるようにしてもよい。
(g6. Screen transition by movement operation)
With reference to FIG. 20, specific screen transitions due to movement operations will be described. FIG. 20 is a diagram illustrating an example of screen transitions due to movement operations. For example, by operating the operation unit 103, the user can move the cursor P and select one or more pieces of text information 460 on the hierarchical screen 180. By selecting one or more pieces of text information 460 on the hierarchical screen 180, the ladder circuit 420 corresponding to the selected text information 460 is selected. In the example shown in FIG. 16, one piece of text information 460 is selected, but a plurality of pieces of text information 460 may be selected.

ラダー回路420が選択された状態で移動操作(ドラッグアンドドロップ)がされると、図19に示した移動処理が実行され、図20の左側に示した画面が右側に示した画面に遷移する。図20に示す例では、CPU102は、1行目の「回路1-1」が示すラダー回路420を7行目と8行目との間に挿入する。 When a moving operation (drag and drop) is performed with the ladder circuit 420 selected, the moving process shown in FIG. 19 is executed, and the screen shown on the left side of FIG. 20 changes to the screen shown on the right side. In the example shown in FIG. 20, the CPU 102 inserts the ladder circuit 420 indicated by "Circuit 1-1" in the first row between the seventh and eighth rows.

CPU102は、1行目の「回路1-1」が示すラダー回路420を7行目と8行目との間に挿入することに伴って、2行目から7行目までのラダー回路420に対応するテキスト情報460を更新する。また、図19に示す例では、CPU102は、挿入先の前に位置するラダー回路420の子階層となるように、選択したラダー回路420に親子情報480を入力する。より具体的には、CPU102は、7行目のラダー回路420に「#####」という親子情報480を入力する。なお、移動対象のラダー回路420がわかるように、CPU102は、ラダー画面120上に目印124を設けてもよい。 By inserting the ladder circuit 420 indicated by "Circuit 1-1" in the first row between the seventh and eighth rows, the CPU 102 inserts the ladder circuit 420 in the second to seventh rows. The corresponding text information 460 is updated. Further, in the example shown in FIG. 19, the CPU 102 inputs parent-child information 480 to the selected ladder circuit 420 so that it becomes a child hierarchy of the ladder circuit 420 located before the insertion destination. More specifically, the CPU 102 inputs parent-child information 480 "#####" to the ladder circuit 420 on the seventh line. Note that the CPU 102 may provide a mark 124 on the ladder screen 120 so that the ladder circuit 420 to be moved can be identified.

<H.階層化処理>
図21は、階層構造160を定義するための階層化処理を示すフローチャートである。なお、図21に示す階層化処理は、一例であって、他の処理手順で階層構造160が定義されてもよい。また、図21に示す階層化処理は、上述した表示処理、追加処理、削除処理、および移動処理において実行される。なお、表示処理、追加処理、削除処理、および移動処理の各々で実行される階層化処理は共通の処理であってもよく、また、処理ごとに固有の階層化処理であってもよい。本実施の形態においては、表示処理、追加処理、削除処理、および移動処理の各々で実行される階層化処理は共通の処理であるとして説明する。
<H. Layering process>
FIG. 21 is a flowchart showing the layering process for defining the layered structure 160. Note that the layering process shown in FIG. 21 is an example, and the hierarchical structure 160 may be defined using other processing procedures. Further, the hierarchization process shown in FIG. 21 is executed in the display process, addition process, deletion process, and movement process described above. Note that the hierarchization process executed in each of the display process, addition process, deletion process, and movement process may be a common process, or may be a hierarchization process specific to each process. In this embodiment, the explanation will be given assuming that the hierarchization processing executed in each of the display processing, addition processing, deletion processing, and movement processing is a common processing.

図21を参照して、S141において、CPU102は、1行目のラダー回路420を対象のラダー回路とする。 Referring to FIG. 21, in S141, CPU 102 sets ladder circuit 420 in the first row as the target ladder circuit.

S142において、CPU102は、対象のラダー回路420に親子情報480が入力されているか否かを判定する。対象のラダー回路420に親子情報480が入力されていないと判定した場合(S142においてNO)、S144において、CPU102は、対象のラダー回路420を前のラダー回路420と同じ階層に設定する。 In S142, the CPU 102 determines whether parent-child information 480 has been input to the target ladder circuit 420. If it is determined that parent-child information 480 has not been input to the target ladder circuit 420 (NO in S142), the CPU 102 sets the target ladder circuit 420 to the same hierarchy as the previous ladder circuit 420 in S144.

対象のラダー回路420に親子情報480が入力されていると判定した場合(S142においてYES)、S146において、対象のラダー回路420の階層の深さと、対象のラダー回路420の親となるラダー回路420を設定する。 If it is determined that the parent-child information 480 has been input to the target ladder circuit 420 (YES in S142), the hierarchical depth of the target ladder circuit 420 and the ladder circuit 420 that is the parent of the target ladder circuit 420 are determined in S146. Set.

たとえば、CPU102は、入力されている親子情報480が一番上の階層(第1階層目)を示している場合、対象のラダー回路420の階層を一番上の階層に設定する。一方、入力されている親子情報480が一番上の階層ではない場合(第2階層以下)、入力されている親子情報480に基づいて階層の深さを設定する。そして、CPU102は、位置情報440に基づいて、対象のラダー回路420よりも前のラダー回路420であって設定した深さの階層よりも一つ上の階層に設定されているラダー回路420のうち対象のラダー回路420と最も近いラダー回路420を親とする。 For example, if the input parent-child information 480 indicates the top layer (first layer), the CPU 102 sets the layer of the target ladder circuit 420 to the top layer. On the other hand, if the parent-child information 480 that has been input is not at the top level (second level or lower), the depth of the hierarchy is set based on the parent-child information 480 that has been input. Then, based on the position information 440, the CPU 102 selects among the ladder circuits 420 that are previous to the target ladder circuit 420 and are set to one level higher than the level of the set depth. The ladder circuit 420 closest to the target ladder circuit 420 is set as the parent.

CPU102は、S144またはS146の処理を実行した後、S148において、位置情報440に基づいて、後ろにラダー回路420があるか否かを判定する。 After executing the process of S144 or S146, the CPU 102 determines in S148 whether or not there is a ladder circuit 420 behind based on the position information 440.

CPU102は、後ろにラダー回路420があると判定した場合(S148においてYES)、S150において、対象のラダー回路420を一つ後ろのラダー回路420に変更して、S142~S148の処理を実行する。 When the CPU 102 determines that there is a ladder circuit 420 behind it (YES in S148), in S150, the CPU 102 changes the target ladder circuit 420 to the ladder circuit 420 immediately behind, and executes the processes of S142 to S148.

CPU102は、後ろにラダー回路420がないと判定するまで、S150を実行するとともにS142~S148の処理を繰り返す。CPU102は、後ろにラダー回路420がないと判定した場合(S148においてNO)、階層化処理を終了する。 The CPU 102 executes S150 and repeats the processes of S142 to S148 until it determines that there is no ladder circuit 420 behind it. If the CPU 102 determines that there is no ladder circuit 420 behind it (NO in S148), it ends the hierarchization process.

<I.子階層に含まれるラダー回路420の表示態様>
階層画面生成部18は、階層画面180を介して選択された一のラダー回路420の子階層に含まれるラダー回路420に対応するテキスト情報460を階層画面180上に表示したり、あるいは、省略したりすることができる。
<I. Display mode of ladder circuit 420 included in child hierarchy>
The hierarchical screen generation unit 18 displays, on the hierarchical screen 180, text information 460 corresponding to the ladder circuit 420 included in the child hierarchy of one ladder circuit 420 selected via the hierarchical screen 180, or omit it. You can

図22は、省略表示と展開表示の一例を示す図である。階層画面生成部18は、たとえば、階層画面180上に省略表示と展開表示とを切り替えるためのタブ182を設ける。カーソルPでタブ182が選択されると、階層画面生成部18は、階層画面180上に子階層のラダー回路420に対応するテキスト情報460を表示したり(展開表示)、あるいは省略したり(省略表示)する。図22中の左側に示した画面は、展開表示中の画面の一例である。図22中の右側に示した画面は、省略表示中の画面の一例である。 FIG. 22 is a diagram showing an example of an abbreviated display and an expanded display. The hierarchical screen generation unit 18 provides, for example, a tab 182 on the hierarchical screen 180 for switching between abbreviated display and expanded display. When the tab 182 is selected with the cursor P, the hierarchical screen generation unit 18 displays (expanded display) the text information 460 corresponding to the ladder circuit 420 of the child hierarchy on the hierarchical screen 180, or omits it (omitted). indicate. The screen shown on the left side of FIG. 22 is an example of a screen during expanded display. The screen shown on the right side of FIG. 22 is an example of a screen in abbreviated display.

図22においては、「回路2」の横に位置するタブ182が選択されると、「回路2」に対応するラダー回路420の子階層に位置するラダー回路420に対応するテキスト情報460である「4.回路2-1」、「5.回路2-1-2」、「6.回路2-1-2」、「7.回路2-1-2-1」が表示されたり、あるいは省略されたりする。なお、階層画面生成部18は、省略表示されていることを示すために、タブ182の形状を展開表示中の形状と省略表示中の形状とで異なるようにしてもよい。 In FIG. 22, when the tab 182 located next to "Circuit 2" is selected, text information 460 corresponding to the ladder circuit 420 located in the child hierarchy of the ladder circuit 420 corresponding to "Circuit 2" is displayed. 4. Circuit 2-1,” “5. Circuit 2-1-2,” “6. Circuit 2-1-2,” and “7. Circuit 2-1-2-1” are displayed or omitted. or Note that the hierarchical screen generation unit 18 may make the shapes of the tabs 182 different between the expanded display and the collapsed display in order to indicate that the tabs 182 are displayed in abbreviated form.

なお、ラダー画面生成部12は、階層画面生成部18の省略表示と展開表示との切り替えに応じて、ラダー画面120上の表示を切り替えてもよい。図23は、省略表示と展開表示の他の例を示す図である。図23中の左側に示した画面は、展開表示中の画面の一例である。図22中の右側に示した画面は、省略表示中の画面の一例である。 Note that the ladder screen generation section 12 may switch the display on the ladder screen 120 in accordance with the switching of the hierarchy screen generation section 18 between abbreviated display and expanded display. FIG. 23 is a diagram showing another example of abbreviated display and expanded display. The screen shown on the left side of FIG. 23 is an example of a screen during expanded display. The screen shown on the right side of FIG. 22 is an example of a screen in abbreviated display.

ラダー画面生成部12は、図23中の右側に示すように、省略表示中に、階層画面180上で表示が省略されているテキスト情報460に対応するラダー回路420の表示をラダー画面120上で省略してもよい。このとき、ラダー画面生成部12は、縮小していること、および縮小している箇所を示す目印122をラダー画面120上に設けてもよい。 As shown on the right side of FIG. 23, the ladder screen generation unit 12 displays the ladder circuit 420 corresponding to the text information 460 whose display is omitted on the hierarchy screen 180 during the abbreviated display. May be omitted. At this time, the ladder screen generation unit 12 may provide a mark 122 on the ladder screen 120 indicating that the screen is being reduced and the location where the screen is being reduced.

このような縮小表示と展開表示とを切り替える機能は、図22および図23に示すように、ラダー回路420の数が多いときに特に有効である。たとえば、ユーザは、縮小表示によりラダープログラム42の全体像を把握するとともに、展開表示に切り替えることでラダープログラム42を詳細に検討できる。 The function of switching between reduced display and expanded display is particularly effective when there are a large number of ladder circuits 420, as shown in FIGS. 22 and 23. For example, the user can grasp the overall image of the ladder program 42 by using the reduced display, and can examine the ladder program 42 in detail by switching to the expanded display.

なお、ラダー画面生成部12は、ラダー画面120上にタブ182に相当するタブを設け、当該タブに対する操作に応じて省略表示と展開表示とを切り替えるようにしてもよい。この場合、階層画面生成部18は、ラダー画面120の省略表示と展開表示との切り替えに応じて、階層画面180の省略表示と展開表示とを切り替えてもよく、また、切り替えなくともよい。 Note that the ladder screen generation unit 12 may provide a tab corresponding to the tab 182 on the ladder screen 120, and switch between abbreviated display and expanded display according to an operation on the tab. In this case, the hierarchical screen generation unit 18 may or may not switch between the abbreviated display and the expanded display of the hierarchical screen 180 in accordance with the switch between the abbreviated display and the expanded display of the ladder screen 120.

<J.ラダー画面120上での階層構造160の表示>
ラダー画面生成部12は、各ラダー回路420の表示態様を変えることで定義部16が定義した階層構造160を表現したラダー画面120を生成してもよい。たとえば、ラダー画面生成部12は、一のラダー回路420と、一のラダー回路420の子階層に含まれるラダー回路420とで、各ラダー回路420を表示する領域の背景を異ならせたラダー画面120を生成してもよい。
<J. Display of hierarchical structure 160 on ladder screen 120>
The ladder screen generation unit 12 may generate the ladder screen 120 expressing the hierarchical structure 160 defined by the definition unit 16 by changing the display mode of each ladder circuit 420. For example, the ladder screen generation unit 12 generates a ladder screen 120 in which one ladder circuit 420 and a ladder circuit 420 included in a child hierarchy of one ladder circuit 420 have different backgrounds in areas where each ladder circuit 420 is displayed. may be generated.

図24は、階層構造160を表したラダー画面120の一例を示す図である。たとえば、ラダー画面生成部12は、一番上の階層(一階層目)のラダー回路420を表示する範囲の背景を背景Aとし、二階層目のラダー回路420を表示する範囲の背景を背景Bとし、3階層目のラダー回路420を表示する範囲の背景を背景Cとしてラダー画面120を生成してもよい。 FIG. 24 is a diagram showing an example of the ladder screen 120 showing the hierarchical structure 160. For example, the ladder screen generation unit 12 sets the background of the range in which the ladder circuit 420 at the top level (first level) is displayed as background A, and the background in the range in which the ladder circuit 420 in the second level is displayed is set as background B. Then, the ladder screen 120 may be generated by using the background C as the background of the range in which the third layer ladder circuit 420 is displayed.

ラダー回路420の表示態様を階層ごとに変更することで、階層画面180を確認しなくとも、ラダー画面120を確認するだけで、階層の区切りをユーザが容易に把握できる。 By changing the display mode of the ladder circuit 420 for each layer, the user can easily understand the divisions between layers by simply checking the ladder screen 120 without checking the layer screen 180.

<K.第1領域142に表示されるラダー画面120の範囲の変更>
図25は、第1領域142に表示されるラダー画面120の範囲が変更される様子を示す図である。上述したように、表示部11は、階層画面180を介して一のテキスト情報460が選択された場合に、テキスト情報460に対応するラダー回路420がディスプレイ114の第1領域142内に表示されるようにラダー画面120の表示範囲を変更してもよい。
<K. Changing the range of the ladder screen 120 displayed in the first area 142>
FIG. 25 is a diagram showing how the range of the ladder screen 120 displayed in the first area 142 is changed. As described above, the display unit 11 displays the ladder circuit 420 corresponding to the text information 460 in the first area 142 of the display 114 when one piece of text information 460 is selected via the hierarchical screen 180. The display range of the ladder screen 120 may be changed as shown in FIG.

たとえば、図25を参照して、階層画面180上の一のテキスト情報460にカーソルPを合わせた状態で、特定の操作(たとえば、ダブルクリック)が受け付けられると、図25の右側に示すように、第1領域142に表示されるラダー画面120の表示範囲が変更される。図25に示す例では、表示部11は、階層画面180上の一のテキスト情報460が選択されて特定の操作が受け付けられると、選択されたテキスト情報460に対応するラダー回路420が第1領域142の最上部に位置するようにラダー画面120の表示範囲を変更する。 For example, referring to FIG. 25, if a specific operation (for example, double-click) is accepted while the cursor P is placed on a piece of text information 460 on the hierarchical screen 180, as shown on the right side of FIG. , the display range of the ladder screen 120 displayed in the first area 142 is changed. In the example shown in FIG. 25, when one piece of text information 460 on the hierarchical screen 180 is selected and a specific operation is accepted, the display unit 11 displays the ladder circuit 420 corresponding to the selected text information 460 in the first area. The display range of the ladder screen 120 is changed so that it is located at the top of the ladder screen 142.

図25に示す例では、表示部11は、選択されたラダー回路420が第1領域142の最上部に位置するようにラダー画面120の表示範囲を変更するとした。なお、選択されたラダー回路420を表示する位置は、ラダー画面120の最上部に限らず、たとえば、第1領域142の真ん中、第1領域142の最下部など、第1領域142上のいずれの位置であってもよい。 In the example shown in FIG. 25, the display unit 11 changes the display range of the ladder screen 120 so that the selected ladder circuit 420 is located at the top of the first area 142. Note that the selected ladder circuit 420 is displayed not only at the top of the ladder screen 120 but also at any position on the first area 142, such as the middle of the first area 142 or the bottom of the first area 142. It may also be a position.

たとえば、ラダープログラム42の開発が進み、多くのラダー回路420がラダープログラム42内に含まれる場合、ラダー画面120上から目的のラダー回路420を探し出すことは困難である。このような場合、ユーザは、ラダー回路420を作成しながらラダープログラム42の全体構造を任意に定義し、階層画面180上に定義した全体構造(階層構造160)を表示させておくことができる。階層画面180を介した操作によりラダー画面120の表示範囲を変更できるため、ユーザは、ラダー回路420が多くなった場合でも目的のラダー回路420を容易に探せる。 For example, if the development of the ladder program 42 progresses and many ladder circuits 420 are included in the ladder program 42, it is difficult to find the desired ladder circuit 420 on the ladder screen 120. In such a case, the user can arbitrarily define the overall structure of the ladder program 42 while creating the ladder circuit 420, and display the defined overall structure (hierarchical structure 160) on the hierarchical screen 180. Since the display range of the ladder screen 120 can be changed by operation via the hierarchy screen 180, the user can easily search for the desired ladder circuit 420 even when there are a large number of ladder circuits 420.

<L.部品化>
上述したように、部品化部19は、複数のラダー回路420を一の部品として部品情報430に登録する。より具体的には、部品化部19は、受付部14が、一のラダー回路420の選択を受け付けた場合に、選択されたラダー回路420および選択されたラダー回路420の子階層に含まれるすべてのラダー回路420を一の部品として部品情報430に登録する。
<L. Componentization>
As described above, the componentization unit 19 registers the plurality of ladder circuits 420 as one component in the component information 430. More specifically, when the reception unit 14 receives the selection of one ladder circuit 420, the componentization unit 19 converts all components included in the selected ladder circuit 420 and the child hierarchy of the selected ladder circuit 420. The ladder circuit 420 is registered as one component in the component information 430.

図26は、1または複数のラダー回路420を一の部品として登録する様子を示す図である。図26を参照して、「回路1」というテキスト情報460に対応するラダー回路420が選択された状態で部品化にかかる操作が受け付けられた場合、部品化部19は、「回路1」が示すラダー回路420および、「回路1」が示すラダー回路420の子階層に含まれる「回路1-1」と「回路1-2」とのラダー回路420をからなるプログラムを一の部品として部品情報430に登録する。 FIG. 26 is a diagram showing how one or more ladder circuits 420 are registered as one component. Referring to FIG. 26, when an operation related to componentization is received with ladder circuit 420 corresponding to text information 460 "Circuit 1" selected, componentization section 19 Component information 430 assumes that a program consisting of the ladder circuit 420 and the ladder circuit 420 of "Circuit 1-1" and "Circuit 1-2" included in the child hierarchy of the ladder circuit 420 indicated by "Circuit 1" is one component. Register.

部品化にかかる操作が受け付けられると、図26の下に示すように、部品情報430として登録された1または複数のラダー回路420から構成されたプログラムが別ウィンドウで表示されてもよい。 When an operation related to componentization is accepted, a program configured from one or more ladder circuits 420 registered as component information 430 may be displayed in a separate window, as shown at the bottom of FIG. 26.

国際規格IEC61131-3においては、プログラムやプロジェクトを構成するブロックは、POU(Program Organization Units)と称される。POUは、プログラム要素のまとまりの単位に相当する。すなわち、換言すると、部品化部19は、選択されたラダー回路420および選択されたラダー回路420の子階層に含まれるすべてのラダー回路420を一のPOUとして部品情報430に登録する。 In the international standard IEC61131-3, blocks that constitute a program or project are called POU (Program Organization Units). A POU corresponds to a unit of a group of program elements. In other words, the componentization unit 19 registers the selected ladder circuit 420 and all the ladder circuits 420 included in the child hierarchy of the selected ladder circuit 420 as one POU in the component information 430.

こユーザは、ラダー画面120上でラダー回路420を追加したり、削除したりしながら、ラダープログラム42の開発を進める。本実施の形態においては、ラダー画面120を介して親子情報480の入力が受け付けられることから、ユーザは、任意の階層構造160をラダープログラム42の開発を進めながら定義できる。そして、ユーザが任意に定義した階層構造160のうち、一の階層に含まれるすべてのラダー回路420を一の部品として登録できる。すなわち、ユーザは、階層構造160を任意に定義しながら、再利用できる部品の作成も同時にできることとなる。 This user advances the development of the ladder program 42 while adding and deleting ladder circuits 420 on the ladder screen 120. In this embodiment, since input of parent-child information 480 is accepted via ladder screen 120, the user can define any hierarchical structure 160 while proceeding with the development of ladder program 42. All the ladder circuits 420 included in one hierarchy of the hierarchical structure 160 arbitrarily defined by the user can be registered as one component. In other words, the user can arbitrarily define the hierarchical structure 160 and create reusable parts at the same time.

<M.呼出命令の階層化表示>
ラダープログラム42は、別のPOUを呼び出す1または複数の呼出命令を含む。階層画面生成部18は、呼出命令を含むラダー回路420の子階層に呼出命令によって呼び出されるPOUが含まれるように階層画面180を生成する。
<M. Hierarchical display of calling instructions>
Ladder program 42 includes one or more call instructions that call another POU. The hierarchical screen generation unit 18 generates the hierarchical screen 180 so that the POU called by the calling command is included in the child hierarchy of the ladder circuit 420 including the calling command.

図27は、POUを呼出元のラダー回路の子階層として表示した画面の一例を示す図である。図27に示す「回路1」が示すラダー回路420は、「Function0」という名称のPOUの一例であるファンクションを呼び出す呼出命令425を含む。図27に示す「回路1-1」が示すラダー回路420は、「FunctionBlock0」という名称のPOUの一例であるファンクションブロックを呼び出す呼出命令425を含む。 FIG. 27 is a diagram showing an example of a screen in which a POU is displayed as a child layer of a calling ladder circuit. A ladder circuit 420 indicated by "Circuit 1" shown in FIG. 27 includes a call instruction 425 that calls a function which is an example of a POU named "Function0". A ladder circuit 420 indicated by "Circuit 1-1" shown in FIG. 27 includes a call instruction 425 that calls a function block that is an example of a POU named "FunctionBlock0."

この場合に、図27を参照して、階層画面生成部18は、「回路1」の子階層に「Function0」のPOUが含まれており、「回路1-1」の子階層に「FunctionBlock0」のPOUが含まれているように階層画面180を生成する。 In this case, with reference to FIG. 27, the hierarchical screen generation unit 18 determines that the child hierarchy of "Circuit 1" includes a POU of "Function0" and the child hierarchy of "Circuit 1-1" contains a POU of "FunctionBlock0". A hierarchical screen 180 is generated so as to include POUs.

このように、階層画面180上にラダー回路420に含まれる呼出命令425が、当該ラダー回路420の子階層として表示されることで、各ラダー回路420でどのようなPOUが呼び出されるかを階層画面180上に表示できる。 In this way, by displaying the call command 425 included in a ladder circuit 420 on the hierarchy screen 180 as a child hierarchy of the ladder circuit 420, it is possible to see what kind of POU is called in each ladder circuit 420 on the hierarchy screen. It can be displayed on 180.

<N.階層化ルールの変形例>
上記実施の形態においては、対象のラダー回路420に親子情報480が入力されているか否かに応じて、対象のラダー回路420の前のラダー回路420と、対象のラダー回路420との間で階層が変わる例を示した。なお、上記実施の形態に示した階層化のルールは、一例であって、上記実施の形態に示したルールに限られない。
<N. Variations of layering rules>
In the embodiment described above, depending on whether or not parent-child information 480 is input to the target ladder circuit 420, the hierarchy between the ladder circuit 420 before the target ladder circuit 420 and the target ladder circuit 420 is determined. Here is an example of how it changes. Note that the hierarchization rules shown in the above embodiments are merely examples, and are not limited to the rules shown in the above embodiments.

図28および図29を参照して、ラダー回路420の階層化ルールの変形例について説明する。図28は、変形例にかかる階層化処理を示すフローチャートである。図29は、変形例にかかる階層化処理に従って定義された階層構造160の一例を示す図である。 A modified example of the hierarchization rule for the ladder circuit 420 will be described with reference to FIGS. 28 and 29. FIG. 28 is a flowchart showing the hierarchization process according to the modification. FIG. 29 is a diagram showing an example of a hierarchical structure 160 defined according to the hierarchical processing according to the modification.

変形例にかかる階層化処理は、図21に示した階層化処理と比較して、S144に代えて、S143,S145,S147を実行する点で上記実施の形態に示した階層化処理と異なる。以下、上記実施の形態と異なる点を中心に説明する。 The hierarchization process according to the modified example differs from the hierarchization process shown in the above embodiment in that S143, S145, and S147 are executed instead of S144, compared to the hierarchization process shown in FIG. Hereinafter, differences from the above embodiment will be mainly explained.

CPU102は、対象のラダー回路420に親子情報480が入力されていないと判定した場合(S142においてNO)、S143,S145,およびS147の処理を実行する。 If the CPU 102 determines that the parent-child information 480 has not been input to the target ladder circuit 420 (NO in S142), it executes the processes of S143, S145, and S147.

S143において、CPU102は、一つ前のラダー回路420に親子情報480が入力されているか否かを判定する。なお、一つ前のラダー回路420は、位置情報440に基づいて特定される。 In S143, the CPU 102 determines whether parent-child information 480 has been input to the previous ladder circuit 420. Note that the previous ladder circuit 420 is specified based on the position information 440.

CPU102は、一つ前のラダー回路420に親子情報480が入力されていないと判定した場合(S143においてNO)、S145において、対象のラダー回路420を前のラダー回路420と同じ階層に設定する。 If the CPU 102 determines that the parent-child information 480 has not been input to the previous ladder circuit 420 (NO in S143), the CPU 102 sets the target ladder circuit 420 to the same hierarchy as the previous ladder circuit 420 in S145.

CPU102は、一つ前のラダー回路420に親子情報480が入力されていると判定した場合(S143においてYES)、S147において、対象のラダー回路420を前のラダー回路420の子階層に設定する。 If the CPU 102 determines that the parent-child information 480 has been input to the previous ladder circuit 420 (YES in S143), the CPU 102 sets the target ladder circuit 420 to the child hierarchy of the previous ladder circuit 420 in S147.

すなわち、変形例にかかる階層化ルールに従うと、親子情報480の入力に基づいて階層の深さと親のラダー回路420が設定される(S146)。たとえば、図29に示すように、「#」の数により階層の深さが設定されることになり、「#」が1つ入力された「回路1」、「回路2」、および「回路3」は、一番上の階層(第1階層目)に設定される。また、「#」が2つ入力された「回路2-1」、および「回路3-1」は、第2階層目に設定される。 That is, according to the hierarchical rule according to the modified example, the depth of the hierarchy and the parent ladder circuit 420 are set based on the input of the parent-child information 480 (S146). For example, as shown in FIG. 29, the depth of the hierarchy is set depending on the number of "#", and "Circuit 1", "Circuit 2", and "Circuit 3" for which one "#" is input. " is set at the top layer (first layer). Furthermore, "circuit 2-1" and "circuit 3-1" for which two "#" characters have been input are set to the second layer.

変形例にかかる階層化ルールに従うと、親子情報480が入力されたラダー回路420の次に記載されたラダー回路420が、親子情報480が入力されたラダー回路420の子階層に設定される(S147)。たとえば、図29に示すように、「#」が1つ入力された「回路1」の次の「回路1-1」は、「回路1」の子階層に設定される。 According to the hierarchical rule according to the modified example, the ladder circuit 420 described next to the ladder circuit 420 into which the parent-child information 480 has been input is set as a child hierarchy of the ladder circuit 420 into which the parent-child information 480 has been input (S147 ). For example, as shown in FIG. 29, "Circuit 1-1" next to "Circuit 1" in which one "#" is input is set as a child layer of "Circuit 1".

また、変形例にかかる階層化ルールに従うと、上下に位置するラダー回路420のいずれにも親子情報480が入力されていなければ、上下に位置するラダー回路420は、いずれも同じ階層に設定される(S145)。たとえば、図29に示すように、「#」が入力されていない「回路1-1」と「回路1-2」とは、いずれも同じ階層に設定される。 Furthermore, according to the hierarchical rule according to the modified example, if the parent-child information 480 is not input to any of the ladder circuits 420 located above and below, the ladder circuits 420 located above and below are both set to the same hierarchy. (S145). For example, as shown in FIG. 29, "Circuit 1-1" and "Circuit 1-2" for which "#" is not input are both set to the same hierarchy.

なお、階層化ルールは、一例であって、上記実施の形態に示したルール、および変形例に示したルールに限らず、任意のルールを設定することができる。 Note that the hierarchization rule is an example, and any rule can be set, not limited to the rules shown in the above embodiment and the rules shown in the modification.

<O.付記>
以上のように、上記の実施の形態および変形例は以下のような技術思想を含む。
<O. Additional notes>
As described above, the above embodiments and modifications include the following technical ideas.

(構成1)
ラダープログラム(42)を表示する情報処理装置(10)であって、
前記ラダープログラム(42)を複数のラダー回路(420)を含む回路態様で表示するためのラダー画面(120)を生成するラダー画面生成部(12)を備え、
ラダー画面には、複数の前記ラダー回路(420)が表示されるとともに、前記ラダー回路(420)ごとに登録されたテキスト情報(460)が対応する前記ラダー回路(420)に対応して表示され、
前記ラダー画面(120)に対する操作に応じて、一の前記ラダー回路(420)と他の前記ラダー回路(420)との親子関係を示す親子情報(480)の入力を受け付ける受付部(14)と、
前記受付部(14)が受け付けた前記親子情報(480)に基づいて、前記ラダープログラム(42)に含まれる複数の前記ラダー回路(420)の階層構造(160)を定義する定義部(16)と、
前記定義部(16)が定義した前記階層構造(160)を前記テキスト情報(460)で表示するための階層画面(180)を生成する階層画面生成部(18)とをさらに備える、情報処理装置。
(Configuration 1)
An information processing device (10) that displays a ladder program (42),
comprising a ladder screen generation unit (12) that generates a ladder screen (120) for displaying the ladder program (42) in a circuit format including a plurality of ladder circuits (420);
On the ladder screen, a plurality of the ladder circuits (420) are displayed, and text information (460) registered for each ladder circuit (420) is displayed corresponding to the corresponding ladder circuit (420). ,
a reception unit (14) that receives input of parent-child information (480) indicating a parent-child relationship between one of the ladder circuits (420) and another of the ladder circuits (420) in response to an operation on the ladder screen (120); ,
a definition unit (16) that defines a hierarchical structure (160) of the plurality of ladder circuits (420) included in the ladder program (42) based on the parent-child information (480) received by the reception unit (14); and,
An information processing device further comprising: a hierarchical screen generation unit (18) that generates a hierarchical screen (180) for displaying the hierarchical structure (160) defined by the definition unit (16) using the text information (460). .

(構成2)
前記階層画面(180)に含まれる前記テキスト情報(460)の各々は、対応する前記ラダー回路(420)の前記ラダー画面(120)上における位置を示す位置情報(440)に関連付けられており、
前記階層画面(180)を介して前記テキスト情報(460)が選択されたことに応じて、前記ラダー画面(120)を表示する領域(142、114)内に、選択された前記テキスト情報(460)に対応する前記ラダー回路(420)が表示される、構成1に記載の情報処理装置。
(Configuration 2)
Each of the text information (460) included in the hierarchical screen (180) is associated with position information (440) indicating the position of the corresponding ladder circuit (420) on the ladder screen (120),
In response to the text information (460) being selected via the hierarchy screen (180), the selected text information (460) is displayed in the area (142, 114) for displaying the ladder screen (120). ) The information processing device according to configuration 1, wherein the ladder circuit (420) corresponding to the ladder circuit (420) is displayed.

(構成3)
前記定義部(18)は、
前記ラダー回路(420)の前記ラダー画面(120)上における位置を示す位置情報(440)と前記親子情報(480)とに基づいて前記階層構造(160)を定義し、
前記位置情報(440)の変更が受け付けられたことに応じて前記階層構造(160)を定義し直す(S114,S124,S134)、構成1に記載の情報処理装置。
(Configuration 3)
The definition section (18) is
defining the hierarchical structure (160) based on position information (440) indicating the position of the ladder circuit (420) on the ladder screen (120) and the parent-child information (480);
The information processing device according to configuration 1, wherein the hierarchical structure (160) is redefined (S114, S124, S134) in response to acceptance of a change in the location information (440).

(構成4)
前記受付部(14)は、前記階層画面(180)に対する操作に応じて前記位置情報(440)の変更を受け付ける、構成3に記載の情報処理装置。
(Configuration 4)
The information processing device according to configuration 3, wherein the reception unit (14) receives a change in the position information (440) in response to an operation on the hierarchical screen (180).

(構成5)
前記定義部(16)は、一の前記ラダー回路(420)が選択された状態で前記ラダー回路(420)の追加操作がされた場合に、予め定められた追加ルールと選択された前記ラダー回路(420)の階層とに基づいて前記階層構造(160)を定義し直す(S111~S114)、構成3または構成4に記載の情報処理装置。
(Configuration 5)
The definition unit (16) defines a predetermined addition rule and the selected ladder circuit when an operation for adding the ladder circuit (420) is performed while one of the ladder circuits (420) is selected. The information processing device according to configuration 3 or configuration 4, wherein the hierarchical structure (160) is redefined based on the hierarchy (420) (S111 to S114).

(構成6)
前記テキスト情報(460)の編集または作成を行う作成部(17)をさらに備え、
前記作成部(17)は、前記ラダー回路(420)が追加されたことに応じて前記位置情報(440)の変更が受け付けられた場合に(S112)、定義し直された前記階層構造(160)と、追加された前記ラダー回路(420)が属する階層の前記ラダー回路(420)に対応する前記テキスト情報(460)とに基づいて、追加された前記ラダー回路(420)に対応する前記テキスト情報(460)を作成する(S115)、構成3または構成4に記載の情報処理装置。
(Configuration 6)
Further comprising a creation unit (17) that edits or creates the text information (460),
When a change in the position information (440) is accepted in response to the addition of the ladder circuit (420) (S112), the creation unit (17) creates the redefined hierarchical structure (160). ) and the text information (460) corresponding to the ladder circuit (420) of the layer to which the added ladder circuit (420) belongs, the text corresponding to the added ladder circuit (420). The information processing device according to configuration 3 or configuration 4, which creates information (460) (S115).

(構成7)
一の前記ラダー回路(420)が選択された状態で前記ラダー回路(420)の削除操作がされた場合、選択された前記ラダー回路(420)と、選択された前記ラダー回路(420)の子階層に含まれる前記ラダー回路(420)とが削除される(S121)、構成3または構成4に記載の情報処理装置。
(Configuration 7)
If the ladder circuit (420) is deleted while one of the ladder circuits (420) is selected, the selected ladder circuit (420) and the children of the selected ladder circuit (420) The information processing device according to configuration 3 or configuration 4, wherein the ladder circuit (420) included in the hierarchy is deleted (S121).

(構成8)
前記受付部(14)は、一の前記ラダー回路(420)の選択を受け付けるとともに、選択された前記ラダー回路(420)および、選択された前記ラダー回路(420)の子階層に含まれる前記ラダー回路(420)を一の管理単位の部品(430)として受け付ける、構成1に記載の情報処理装置。
(Configuration 8)
The receiving unit (14) receives the selection of one of the ladder circuits (420), and selects the selected ladder circuit (420) and the ladders included in the child hierarchy of the selected ladder circuit (420). The information processing device according to configuration 1, which accepts the circuit (420) as a component (430) of one management unit.

(構成9)
前記ラダー画面生成部(12)は、前記ラダー回路(420)が選択された場合に、選択された前記ラダー回路(420)の子階層に含まれる前記ラダー回路(420)を省略した前記ラダー画面(120)を生成する、構成1に記載の情報処理装置。
(Configuration 9)
When the ladder circuit (420) is selected, the ladder screen generation unit (12) generates the ladder screen in which the ladder circuit (420) included in the child hierarchy of the selected ladder circuit (420) is omitted. The information processing device according to Configuration 1, which generates (120).

(構成10)
前記階層画面生成部(18)は、前記ラダー回路(420)が選択された場合に、選択された前記ラダー回路(420)の子階層に含まれる前記ラダー回路(420)に対応する前記テキスト情報(460)を省略した前記階層画面(180)を生成する、構成1に記載の情報処理装置。
(Configuration 10)
When the ladder circuit (420) is selected, the hierarchical screen generation unit (18) generates the text information corresponding to the ladder circuit (420) included in the child hierarchy of the selected ladder circuit (420). The information processing device according to configuration 1, which generates the hierarchical screen (180) with (460) omitted.

(構成11)
前記ラダー画面生成部(12)は、前記定義部(16)が定義した前記階層構造(160)に基づいて、同じ階層に含まれる前記ラダー回路と異なる階層に含まれる前記ラダー回路とを互いに異なる表示態様(A,B,C)で表示した前記ラダー画面(120)を生成する、構成1に記載の情報処理装置。
(Configuration 11)
The ladder screen generation unit (12) differentiates the ladder circuits included in the same hierarchy from the ladder circuits included in different hierarchies based on the hierarchical structure (160) defined by the definition unit (16). The information processing device according to configuration 1, which generates the ladder screen (120) displayed in a display mode (A, B, C).

(構成12)
前記ラダープログラム(42)は、プログラム要素のまとまりから構成されたブロックを呼び出す1または複数の呼出命令(425)を含み、
前記階層画面生成部(18)は、前記呼出命令(425)を含む前記ラダー回路(420)の子階層に前記呼出命令(425)によって呼び出される前記ブロックが含まれるように前記階層画面(180)を生成する、構成1に記載の情報処理装置。
(Configuration 12)
The ladder program (42) includes one or more call instructions (425) that call a block composed of a group of program elements,
The hierarchical screen generation unit (18) generates the hierarchical screen (180) so that the block called by the calling instruction (425) is included in the child hierarchy of the ladder circuit (420) including the calling instruction (425). The information processing device according to configuration 1, which generates.

(構成13)
ラダープログラム(42)を表示するためのプログラム(54)であって、
前記ラダープログラム(42)を複数のラダー回路(420)を含む回路態様で表示するためのラダー画面(120)を生成するステップ(S101)を含み、
前記ラダー画面(120)には、複数の前記ラダー回路(420)が表示されるとともに、前記ラダー回路(420)ごとに登録されたテキスト情報(460)が対応する前記ラダー回路(420)に対応して表示され、
前記ラダー画面(120)に対する操作に応じて、一の前記ラダー回路(420)と他の前記ラダー回路(420)との親子関係を示す親子情報(480)の入力を受け付けるステップ(S102)と、
受け付けられた前記親子情報(480)に基づいて、前記ラダープログラム(42)に含まれる複数の前記ラダー回路(420)の階層構造(160)を定義するステップ(S104)と、
定義された前記階層構造(160)を前記テキスト情報(460)で表示するための階層画面(180)を生成するステップ(S105)とをさらに含む、サポートプログラム。
(Configuration 13)
A program (54) for displaying a ladder program (42),
a step (S101) of generating a ladder screen (120) for displaying the ladder program (42) in a circuit format including a plurality of ladder circuits (420);
The ladder screen (120) displays a plurality of the ladder circuits (420), and the text information (460) registered for each ladder circuit (420) corresponds to the corresponding ladder circuit (420). is displayed,
a step (S102) of receiving input of parent-child information (480) indicating a parent-child relationship between one of the ladder circuits (420) and another of the ladder circuits (420) in response to an operation on the ladder screen (120);
a step (S104) of defining a hierarchical structure (160) of the plurality of ladder circuits (420) included in the ladder program (42) based on the received parent-child information (480);
The support program further includes a step (S105) of generating a hierarchical screen (180) for displaying the defined hierarchical structure (160) using the text information (460).

(構成14)
構成13に記載のサポートプログラム(54)を格納した非一時的なコンピュータ可読媒体(8,104,108)。
(Configuration 14)
A non-transitory computer readable medium (8, 104, 108) storing the support program (54) according to configuration 13.

(構成15)
ラダープログラム(42)を複数のラダー回路(420)を含む回路態様で表示するためのラダー画面(120)を生成するステップ(S101)を含み、
前記ラダー画面(120)には、複数の前記ラダー回路(420)が表示されるとともに、前記ラダー回路(420)ごとに登録されたテキスト情報(460)が対応する前記ラダー回路(420)に対応して表示され、
前記ラダー画面(120)に対する操作に応じて、一の前記ラダー回路(420)と他の前記ラダー回路(420)との親子関係を示す親子情報(480)の入力を受け付けるステップ(S102)と、
受け付けられた前記親子情報(480)に基づいて、前記ラダープログラム(42)に含まれる複数の前記ラダー回路(420)の階層構造(160)を定義するステップ(S104)と、
定義された前記階層構造(160)を前記テキスト情報(460)で表示するための階層画面(180)を生成するステップ(S105)とをさらに含む、ラダープログラムを表示するための方法。
(Configuration 15)
a step (S101) of generating a ladder screen (120) for displaying the ladder program (42) in a circuit format including a plurality of ladder circuits (420);
The ladder screen (120) displays a plurality of the ladder circuits (420), and the text information (460) registered for each ladder circuit (420) corresponds to the corresponding ladder circuit (420). is displayed,
a step (S102) of receiving input of parent-child information (480) indicating a parent-child relationship between one of the ladder circuits (420) and another of the ladder circuits (420) in response to an operation on the ladder screen (120);
a step (S104) of defining a hierarchical structure (160) of the plurality of ladder circuits (420) included in the ladder program (42) based on the received parent-child information (480);
A method for displaying a ladder program, further comprising a step (S105) of generating a hierarchical screen (180) for displaying the defined hierarchical structure (160) with the text information (460).

今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は、上記した説明ではなく、特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。また、実施の形態および各変形例において説明された発明は、可能な限り、単独でも、組合せても、実施することが意図される。 The embodiments disclosed this time should be considered to be illustrative in all respects and not restrictive. The scope of the present invention is indicated by the claims rather than the above description, and it is intended that all changes within the meaning and range equivalent to the claims are included. Furthermore, the inventions described in the embodiments and each modification are intended to be implemented alone or in combination to the extent possible.

1 制御システム、8 光学記録媒体、10 サポート装置、11 表示部、12 ラダー画面生成部、14 受付部、15 エディタ、16 定義部、17 作成部、18 階層画面生成部、19 部品化部、20 CPUユニット、21 システムバス、22 電源ユニット、24 I/Oユニット、42 ラダープログラム、52 オブジェクト情報、54 サポートプログラム、101 記憶部、102 CPU、103 操作部、104 ROM、106 RAM、108 HDD、110 キーボード、112 マウス、114 ディスプレイ、116 光学記録媒体読取装置、118 通信インターフェイス、120 ラダー画面、122 目印、140 ユーザインターフェイス画面、142 第1領域、144 第2領域、146 切替ボタン、148 スクロールバー、160 階層構造、180 階層画面、182 タブ、420 ラダー回路、421 入力側母線、422 出力側母線、423 接点、424 コイル、425 呼出命令、430 部品情報、440 位置情報、450 設定情報、460 テキスト情報、480 親子情報、P カーソル。 1 Control system, 8 Optical recording medium, 10 Support device, 11 Display unit, 12 Ladder screen generation unit, 14 Reception unit, 15 Editor, 16 Definition unit, 17 Creation unit, 18 Hierarchical screen generation unit, 19 Componentization unit, 20 CPU unit, 21 System bus, 22 Power supply unit, 24 I/O unit, 42 Ladder program, 52 Object information, 54 Support program, 101 Storage section, 102 CPU, 103 Operation section, 104 ROM, 106 RAM, 108 HDD, 110 Keyboard, 112 Mouse, 114 Display, 116 Optical recording medium reading device, 118 Communication interface, 120 Ladder screen, 122 Mark, 140 User interface screen, 142 First area, 144 Second area, 146 Switch button, 148 Scroll bar, 160 Hierarchical structure, 180 hierarchical screen, 182 tab, 420 ladder circuit, 421 input bus, 422 output bus, 423 contact, 424 coil, 425 call command, 430 parts information, 440 position information, 450 setting information, 460 text information, 480 Parent and child information, P cursor.

Claims (13)

ラダープログラムを表示する情報処理装置であって、
前記ラダープログラムを複数のラダー回路を含む回路態様で表示するためのラダー画面を生成するラダー画面生成部を備え、
前記ラダー画面には、複数の前記ラダー回路が表示されるとともに、前記ラダー回路ごとに登録されたテキスト情報が対応する前記ラダー回路に対応して表示され、
前記ラダー画面に対する操作に応じて、一の前記ラダー回路と他の前記ラダー回路との親子関係を示す親子情報の入力を受け付ける受付部と、
前記受付部が受け付けた前記親子情報に基づいて、前記ラダープログラムに含まれる複数の前記ラダー回路の階層構造を定義する定義部と、
前記定義部が定義した前記階層構造を前記テキスト情報で表示するための階層画面を生成する階層画面生成部とをさらに備える、情報処理装置。
An information processing device that displays a ladder program,
comprising a ladder screen generation unit that generates a ladder screen for displaying the ladder program in a circuit format including a plurality of ladder circuits;
On the ladder screen, a plurality of the ladder circuits are displayed, and text information registered for each ladder circuit is displayed in correspondence with the corresponding ladder circuit,
a reception unit that receives input of parent-child information indicating a parent-child relationship between one of the ladder circuits and another of the ladder circuits in response to an operation on the ladder screen;
a definition unit that defines a hierarchical structure of the plurality of ladder circuits included in the ladder program based on the parent-child information received by the reception unit;
An information processing device further comprising: a hierarchical screen generation unit that generates a hierarchical screen for displaying the hierarchical structure defined by the definition unit using the text information.
前記階層画面に含まれる前記テキスト情報の各々は、対応する前記ラダー回路の前記ラダー画面上における位置を示す位置情報に関連付けられており、
前記階層画面を介して前記テキスト情報が選択されたことに応じて、前記ラダー画面を表示する領域内に、選択された前記テキスト情報に対応する前記ラダー回路が表示される、請求項1に記載の情報処理装置。
Each of the text information included in the hierarchical screen is associated with position information indicating the position of the corresponding ladder circuit on the ladder screen,
2. The ladder circuit corresponding to the selected text information is displayed in an area for displaying the ladder screen in response to the text information being selected via the hierarchical screen. information processing equipment.
前記定義部は、
前記ラダー回路の前記ラダー画面上における位置を示す位置情報と前記親子情報とに基づいて前記階層構造を定義し、
前記位置情報の変更が受け付けられたことに応じて前記階層構造を定義し直す、請求項1に記載の情報処理装置。
The definition part is
defining the hierarchical structure based on position information indicating the position of the ladder circuit on the ladder screen and the parent-child information;
The information processing device according to claim 1, wherein the hierarchical structure is redefined in response to acceptance of a change in the location information.
前記受付部は、前記階層画面に対する操作に応じて前記位置情報の変更を受け付ける、請求項3に記載の情報処理装置。 The information processing apparatus according to claim 3, wherein the reception unit accepts a change in the position information in response to an operation on the hierarchical screen. 前記定義部は、一の前記ラダー回路が選択された状態で前記ラダー回路の追加操作がされた場合に、予め定められた追加ルールと選択された前記ラダー回路の階層とに基づいて前記階層構造を定義し直す、請求項3または請求項4に記載の情報処理装置。 The definition unit is configured to define the hierarchical structure based on a predetermined addition rule and a hierarchy of the selected ladder circuit when an operation for adding the ladder circuit is performed while one of the ladder circuits is selected. The information processing apparatus according to claim 3 or 4, wherein the information processing apparatus redefines. 前記テキスト情報の編集または作成を行う作成部をさらに備え、
前記作成部は、前記ラダー回路が追加されたことに応じて前記位置情報の変更が受け付けられた場合に、定義し直された前記階層構造と、追加された前記ラダー回路が属する階層の前記ラダー回路に対応する前記テキスト情報とに基づいて、追加された前記ラダー回路に対応する前記テキスト情報を作成する、請求項3または請求項4に記載の情報処理装置。
further comprising a creation unit that edits or creates the text information,
When a change in the position information is accepted in response to the addition of the ladder circuit, the creation unit generates the redefined hierarchical structure and the ladder of the layer to which the added ladder circuit belongs. The information processing apparatus according to claim 3 or 4, wherein the text information corresponding to the added ladder circuit is created based on the text information corresponding to the circuit.
一の前記ラダー回路が選択された状態で前記ラダー回路の削除操作がされた場合、選択された前記ラダー回路と、選択された前記ラダー回路の子階層に含まれる前記ラダー回路とが削除される、請求項3または請求項4に記載の情報処理装置。 If the ladder circuit deletion operation is performed with one of the ladder circuits selected, the selected ladder circuit and the ladder circuits included in the child hierarchy of the selected ladder circuit are deleted. , the information processing device according to claim 3 or claim 4. 前記受付部は、一の前記ラダー回路の選択を受け付けるとともに、選択された前記ラダー回路および、選択された前記ラダー回路の子階層に含まれる前記ラダー回路を一の管理単位の部品として受け付ける、請求項1に記載の情報処理装置。 The receiving unit receives the selection of one of the ladder circuits, and receives the selected ladder circuit and the ladder circuits included in a child hierarchy of the selected ladder circuit as components of one management unit. The information processing device according to item 1. 前記ラダー画面生成部は、前記ラダー回路が選択された場合に、選択された前記ラダー回路の子階層に含まれる前記ラダー回路を省略した前記ラダー画面を生成する、請求項1に記載の情報処理装置。 The information processing according to claim 1, wherein, when the ladder circuit is selected, the ladder screen generation unit generates the ladder screen in which the ladder circuit included in a child hierarchy of the selected ladder circuit is omitted. Device. 前記階層画面生成部は、前記ラダー回路が選択された場合に、選択された前記ラダー回路の子階層に含まれる前記ラダー回路に対応する前記テキスト情報を省略した前記階層画面を生成する、請求項1に記載の情報処理装置。 The hierarchical screen generation unit generates the hierarchical screen in which, when the ladder circuit is selected, the text information corresponding to the ladder circuit included in a child hierarchy of the selected ladder circuit is omitted. 1. The information processing device according to 1. 前記ラダー画面生成部は、前記定義部が定義した前記階層構造に基づいて、同じ階層に含まれる前記ラダー回路と異なる階層に含まれる前記ラダー回路とを互いに異なる表示態様で表示した前記ラダー画面を生成する、請求項1に記載の情報処理装置。 The ladder screen generation unit generates the ladder screen in which the ladder circuit included in the same hierarchy and the ladder circuit included in a different hierarchy are displayed in mutually different display modes based on the hierarchical structure defined by the definition unit. The information processing device according to claim 1, which generates the information. 前記ラダープログラムは、プログラム要素のまとまりから構成されたブロックを呼び出す1または複数の呼出命令を含み、
前記階層画面生成部は、前記呼出命令を含む前記ラダー回路の子階層に前記呼出命令によって呼び出される前記ブロックが含まれるように前記階層画面を生成する、請求項1に記載の情報処理装置。
The ladder program includes one or more call instructions that call a block composed of a group of program elements,
The information processing apparatus according to claim 1, wherein the hierarchical screen generation unit generates the hierarchical screen so that the block called by the calling instruction is included in a child hierarchy of the ladder circuit that includes the calling instruction.
ラダープログラムを表示するためのプログラムであって、
前記ラダープログラムを複数のラダー回路を含む回路態様で表示するためのラダー画面を生成するステップを含み、
前記ラダー画面には、複数の前記ラダー回路が表示されるとともに、前記ラダー回路ごとに登録されたテキスト情報が対応する前記ラダー回路に対応して表示され、
前記ラダー画面に対する操作に応じて、一の前記ラダー回路と他の前記ラダー回路との親子関係を示す親子情報の入力を受け付けるステップと、
受け付けられた前記親子情報に基づいて、前記ラダープログラムに含まれる複数の前記ラダー回路の階層構造を定義するステップと、
定義された前記階層構造を前記テキスト情報で表示するための階層画面を生成するステップとをさらに含む、ラダープログラムを表示するためのプログラム。
A program for displaying a ladder program,
a step of generating a ladder screen for displaying the ladder program in a circuit format including a plurality of ladder circuits;
On the ladder screen, a plurality of the ladder circuits are displayed, and text information registered for each ladder circuit is displayed in correspondence with the corresponding ladder circuit,
a step of receiving input of parent-child information indicating a parent-child relationship between one of the ladder circuits and another of the ladder circuits in response to an operation on the ladder screen;
defining a hierarchical structure of the plurality of ladder circuits included in the ladder program based on the received parent-child information;
A program for displaying a ladder program, further comprising the step of generating a hierarchical screen for displaying the defined hierarchical structure using the text information.
JP2020055649A 2020-03-26 2020-03-26 Program for displaying information processing equipment and ladder programs Active JP7380376B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2020055649A JP7380376B2 (en) 2020-03-26 2020-03-26 Program for displaying information processing equipment and ladder programs
PCT/JP2020/047226 WO2021192456A1 (en) 2020-03-26 2020-12-17 Information processing device and program for displaying ladder program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020055649A JP7380376B2 (en) 2020-03-26 2020-03-26 Program for displaying information processing equipment and ladder programs

Publications (2)

Publication Number Publication Date
JP2021157382A JP2021157382A (en) 2021-10-07
JP7380376B2 true JP7380376B2 (en) 2023-11-15

Family

ID=77891203

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020055649A Active JP7380376B2 (en) 2020-03-26 2020-03-26 Program for displaying information processing equipment and ladder programs

Country Status (2)

Country Link
JP (1) JP7380376B2 (en)
WO (1) WO2021192456A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014136240A1 (en) 2013-03-07 2014-09-12 三菱電機株式会社 Ladder program display program and ladder program display device
JP2016206910A (en) 2015-04-21 2016-12-08 株式会社安川電機 Ladder program creation device, computer program, and ladder program creation method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011086118A (en) * 2009-10-15 2011-04-28 Yokogawa Electric Corp Program input device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014136240A1 (en) 2013-03-07 2014-09-12 三菱電機株式会社 Ladder program display program and ladder program display device
JP2016206910A (en) 2015-04-21 2016-12-08 株式会社安川電機 Ladder program creation device, computer program, and ladder program creation method

Also Published As

Publication number Publication date
JP2021157382A (en) 2021-10-07
WO2021192456A1 (en) 2021-09-30

Similar Documents

Publication Publication Date Title
CN108021363B (en) Visual game logic editing method and system
JP5039428B2 (en) Programmable controller and PLC system
US20210096526A1 (en) Task based configuration presentation context
WO2006055720A1 (en) Dynamic generation of formatted user interfaces in software environments
EP1930822A2 (en) Circuit-design supporting apparatus, circuit-design supporting method, computer product, and printed-circuit-board manufacturing method
JP4962841B2 (en) Operation screen generator, electronic device, program
CN112364496B (en) Avionics simulation panel generation system based on HTML5 and VUE technologies
CN110765028B (en) Visual construction method and device of verification environment and storage medium
JP2008276690A (en) Development system, server for development system, and development method
US11775142B2 (en) Preferential automation view curation
CN105074587A (en) System development device, method, and program
JP5921765B2 (en) Program graph display device, program graph display method, and program graph display program
JP5785130B2 (en) Program generator
US6407758B1 (en) Screen forming editor
JP2009048485A (en) Information processor, information processing method, information processing program and storage medium recording the information processing program
US20220197238A1 (en) Development support device, method for controlling development support device, and recording medium
JP7380376B2 (en) Program for displaying information processing equipment and ladder programs
JP5077011B2 (en) Display control apparatus, display control method, and display control program
JP4476223B2 (en) Screen data creation device, screen data editing method, and screen data editing program
US20090237405A1 (en) Data processing apparatus and data processing method
JP2012168900A (en) Programming device and program
JP2017102872A (en) Development device, development system, and program
JP5483011B2 (en) PLC program development support apparatus and computer program for causing a computer to function as the apparatus
JPH08329004A (en) Method for improving terminal operability of application program use
JP2021082031A (en) Program creation assistance device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230111

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231016

R150 Certificate of patent or registration of utility model

Ref document number: 7380376

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150