JP2009069905A - Method for editing programmer logic controller (plc) program - Google Patents

Method for editing programmer logic controller (plc) program Download PDF

Info

Publication number
JP2009069905A
JP2009069905A JP2007234585A JP2007234585A JP2009069905A JP 2009069905 A JP2009069905 A JP 2009069905A JP 2007234585 A JP2007234585 A JP 2007234585A JP 2007234585 A JP2007234585 A JP 2007234585A JP 2009069905 A JP2009069905 A JP 2009069905A
Authority
JP
Japan
Prior art keywords
program
pou
iec61131
dragged
syntax
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.)
Pending
Application number
JP2007234585A
Other languages
Japanese (ja)
Inventor
Hsueh-Fu Shih
施▲学▼甫
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.)
Delta Electronics Inc
Original Assignee
Delta Electronics Inc
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 Delta Electronics Inc filed Critical Delta Electronics Inc
Priority to JP2007234585A priority Critical patent/JP2009069905A/en
Publication of JP2009069905A publication Critical patent/JP2009069905A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To simplify a PLC programming operation in a computer with a pointing device. <P>SOLUTION: Disclosed is a method for editing a PLC program in a computer with a pointing device such as a mouse. When a drag-and-drop operation is detected, a dragged source is identified. When the dragged source is from libraries, the dragged source is optionally converted into an IEC61131-syntax program portion according to the type of the libraries, namely, a function or a function block. When the dragged source is a POU (Programming Organization Unit), the dragged source is optionally converted into an IEC61131-syntax program portion according to the source POU type, the currently-edited POU type and criterion of forbidding recursion call. When execution of the drag-and-drop operation is not feasible, the shape of mouse cursor is changed to remind a user. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明はポインティングデバイス付きのコンピュータにおけるPLCプログラムの編集方法、特に、ドラッグアンドドロップ操作でドラッグ済ソースが特定されると同時にドラッグ済ソースがIEC61131とコンパチブルなプログラム部分に選択して変換される場合のインティングデバイス付きのコンピュータにおけるPLCプログラムの編集方法に関する。 The present invention relates to a method for editing a PLC program in a computer with a pointing device, particularly when a dragged source is specified by a drag and drop operation and at the same time the dragged source is selected and converted into a program part compatible with IEC61131. The present invention relates to a method for editing a PLC program in a computer with an inting device.

プログラマーロジックコントローラ(PLC)コントロールプログラム用に開発されるソフトウェアは主としてラダーダイアグラム(LD)に集中する。LD言語は単純シンタックスを有すると同時に、PLCコントロールプログラム用に広範に利用される。しかしながら、変動データ構造、算術計算、オブジェクト指向設計、およびプログラムコントロールといったLD言語は高級言語特性に欠ける。さらに、LD言語のシンタックスはまたPLCハードウェアプラットフォームにも依存する。従って、国際電気技術委員会(IEC)は高級言語特性をPLCコントロールプログラムの開発ツールを開発するプログラムに組込むためのIEC61131-3標準言語を定義した。 Software developed for a programmer logic controller (PLC) control program mainly concentrates on a ladder diagram (LD). The LD language has a simple syntax and is widely used for PLC control programs. However, LD languages such as variable data structures, arithmetic calculations, object-oriented design, and program control lack high-level language characteristics. Furthermore, the LD language syntax also depends on the PLC hardware platform. Therefore, the International Electrotechnical Commission (IEC) has defined the IEC61131-3 standard language for incorporating high-level language characteristics into programs that develop PLC control program development tools.

IEC61131-3は以下の5つの標準言語を定義する。
1.LD
LD言語のプログラミングは機械的操作シーケンス情報を必要とすると同時に、コントロールループが最初に描かれる。その後、リレーコントロールの接触aと接触b、連続および平行な接続とコイルがシンボル化される。
2.関数ブロックプログラム、FBD
FBDは適切な接続を伴う事前決定関数ブロックから構成される。従って、FBDは特にコントロールコンポーネントのデータフローに特に相応しい。
3.インストラクションリスト(IL)あるいはステートメントリスト(SL)
ILはブール代数と基本論理操作からなる低級言語である。ILは主としてAND,OR,およびNOTといった記憶法を含む。
4.構造テキスト(ST)
STは算術操作、サブルーチン、ループおよび条件判断といった高級言語能力を使うPLC向けである。従って、高級言語能力を使うPLCは通信ネットワークによってPCと連結可能である。
5.シーケンシャル関数チャート(SFC)
SFCは機械的操作をシーケンシャルな関数フローに分解した後、全体の機械的操作を実行するシーケンシャル関数を連結する。
IEC61131-3 defines the following five standard languages.
1. LD
While programming in the LD language requires mechanical operation sequence information, a control loop is first drawn. Thereafter, contacts a and b of the relay control, continuous and parallel connections and coils are symbolized.
2. Function block program, FBD
An FBD is composed of pre-determined function blocks with appropriate connections. Therefore, FBD is particularly suitable for control component data flow.
3. Instruction list (IL) or statement list (SL)
IL is a lower language consisting of Boolean algebra and basic logic operations. IL mainly includes storage methods such as AND, OR, and NOT.
4). Structure text (ST)
ST is for PLCs that use high-level language capabilities such as arithmetic operations, subroutines, loops, and conditional judgments. Therefore, the PLC using the high-level language ability can be connected to the PC through the communication network.
5). Sequential function chart (SFC)
The SFC breaks mechanical operations into sequential function flows and then concatenates sequential functions that perform the entire mechanical operation.

IEC61131-3プログラムはPLCに連結されたコンピュータ内のPLC用プログラムエントリーデバイスによってあるいはコンピュータソフトウェアによって入力可能である。前者はコマンドコードの入力に合っているが、後者ではあらゆる種類のPLC言語が入力可能である。CoDeesysあるいはInfoTeamのような従来型のコンピュータ編集言語を使用する場合、プログラムの設計者はプログラムのシンタックスを記憶しなくてはならない。プログラムに関数呼び出しが含まれる場合、プログラム設計者は呼出関数の引数も知らなくてはならない。これは利用者に極めて不便である。 The IEC61131-3 program can be input by a program entry device for PLC in a computer connected to the PLC or by computer software. The former suits the input of command codes, but the latter can input all kinds of PLC languages. When using a traditional computer editing language such as CoDeesys or InfoTeam, the program designer must remember the program syntax. If the program contains function calls, the program designer must also know the arguments of the calling function. This is extremely inconvenient for the user.

IEC61131-3はSTおよびIL言語向けの詳細な規則を有する。PLCプログラムを編集するドラッグアンドドロップ関数が提供されることによって利用者が呼出関数のシンタックスを記憶する必要がなくなる点が望ましい。 IEC61131-3 has detailed rules for ST and IL languages. It is desirable that a drag-and-drop function for editing the PLC program is provided, thereby eliminating the need for the user to memorize the calling function syntax.

本発明の目的はポインティングデバイスの付いたコンピュータでPLC言語を編集することによってドラッグ済ソースに対応するEC61131シンタックスプログラム部分がドラッグアンドドロップ操作によって自動的に編集領域に貼付可能となる方法を提供することである。 An object of the present invention is to provide a method in which an EC61131 syntax program part corresponding to a dragged source can be automatically pasted to an editing area by a drag-and-drop operation by editing a PLC language with a computer with a pointing device. That is.

従って、本発明はマウスのようなポインターデバイス付きコンピュータにおけるPLCプログラムの編集方法を提供する。ドラッグアンドドロップ操作が検知される場合に、ドラッグ済ソースが特定される。ドラッグ済ソースがライブラリーからである場合に、該ドロップ済ソースはライブラリーのタイプ、つまり、関数あるいは関数ブロックに応じてIEC61131-3シンタックスプログラム部分に変換される選択余地がある。ドラッグ済ソースはPOU(プログラミングオーガニゼーションユニット)である場合、ドラッグ済ソースはソースPOUタイプ、編集されたばかりのPOUタイプおよび繰り返し呼出の禁止基準に応じてIEC61131-3シンタックスプログラム部分に変換される選択余地がある。ドラッグアンドドロップ操作が実行不可能である場合、マウスカーソルの形状は利用者の注意喚起のため変更される。本発明の方法はライブラリーおよびPOU内の項目のPLCプログラミング作業を容易にするIEC61131-3シンタックスプログラム部分への便利な変換を可能にする Therefore, the present invention provides a method for editing a PLC program in a computer with a pointer device such as a mouse. When a drag and drop operation is detected, the dragged source is identified. If the dragged source is from a library, the dropped source has a choice to be converted into an IEC61131-3 syntax program part depending on the type of library, ie, function or function block. If the dragged source is a POU (Programming Organization Unit), then the dragged source is a choice to be converted into an IEC61131-3 syntax program part depending on the source POU type, the POU type just edited, and the prohibition criteria for repeated calls There is. When the drag-and-drop operation cannot be performed, the shape of the mouse cursor is changed to alert the user. The method of the present invention allows convenient conversion of items in libraries and POUs into IEC61131-3 syntax program parts that facilitate PLC programming tasks.

図1はウィンドー操作システムを伴うコンピュータで実行される本発明のPLCプログラム編集方法を示す模式図である。ウィンドーの上部部分に示される関数メニュー、すなわち、右下部のプログラムファイルマネージャーおよび右下部分の編集領域がある。しかしながら、レイアウトは表示用にすぎなく、本発明の制約が与えられるものではない。 FIG. 1 is a schematic diagram showing a PLC program editing method of the present invention which is executed by a computer with a window operation system. There is a function menu shown in the upper part of the window, namely the program file manager in the lower right part and the editing area in the lower right part. However, the layout is only for display and is not intended to limit the present invention.

プログラムファイルマネージャーには2つのファイルフォルダ、すなわち、ライブラリーフォルダおよびプログラミングオーガニゼーションユニット(POU)フォルダを伴うプロジェクトツリーがある。ライブラリーフォルダのファイルには、関数(FC)および関数ブロック(FB)の2つのタイプがある。プロジェクトのPOUには3つのタイプ、1.プログラム(PG)、2.関数(FC)および3.関数ブロック(FB)がある。ライブラリー関数およびPOUは利用者によって呼び出され得る。しかしながら、関数はすでに組込まれておりこれ以上編集は不可能である。編集されたばかりのプログラムは利用者によるテキスト入力を用いて編集領域で設計される。 The program file manager has a project tree with two file folders: a library folder and a programming organization unit (POU) folder. There are two types of files in the library folder: function (FC) and function block (FB). There are three types of project POUs: Program (PG), 2. 2. Function (FC) and There is a function block (FB). Library functions and POUs can be called by the user. However, the function is already built in and cannot be edited any further. The just edited program is designed in the editing area using text input by the user.

この図に示される通り、このウィンドー内で編集されたばかりのプログラム(編集領域に示される)のPOUタイプはプログラムであると同時にPOUの表題はSTである。IEC61131には次の呼出規則がある。
1.プログラム(PG)には呼出関数(FC)および関数ブロック(FB)があり得る。
2.関数ブロック(FB)は呼出関数(FC)および関数ブロック(FB)であり得るがプログラム(PG)の呼出は不可能である。
3.関数(FC)は関数(FC)の呼出可能であるが、関数ブロック(FB)は呼出不可能である。
4.繰り返し呼出は許容されないと同時にPOUの自己呼出は不可能である。
As shown in this figure, the POU type of the program that has just been edited in this window (shown in the editing area) is a program and the title of the POU is ST. IEC61131 has the following calling rules.
1. The program (PG) can have a calling function (FC) and a function block (FB).
2. The function block (FB) can be a calling function (FC) and a function block (FB), but a program (PG) cannot be called.
3. The function (FC) can call the function (FC), but the function block (FB) cannot be called.
4). Repeated calls are not allowed and POU self-calls are not possible.

従って、上述の呼出の優先性はプログラム(PG)→関数ブロック(FB)→関数(FC)であるとともに繰り返し呼出は全く許容されない。 Therefore, the priority of the above-mentioned call is program (PG) → function block (FB) → function (FC) and repetitive calls are not allowed at all.

図2は本発明の好ましい第1実施例によるPLCプログラム編集方法のフローチャートを示す。PLCプログラム編集方法はIEC61131テキストエディターが作動する場合(段階10)に操作される。マウスのようなカーソルツールがドラッグアンドドロップ操作(段階12)を検知する場合、本発明の方法はドラッグ内容がテキストエディターにドロップ可能であるかどうかを判定する(段階14)。不可であれば、処理は段階10に戻る。可であれば、ドラッグ済内容はFBあるいはFCであると判定される(段階16)。ドラッグ済内容がFCフォーマットの場合には、ドラッグ済内容はIEC61131シンタックスとコンパチブルなFCプログラム部分に変換される(段階16A)とともに、該IEC61131-3シンタックスとコンパチブルなFCプログラム部分はIEC61131-テキストエディターに貼付けられる(段階18)。ドラッグされる内容はFBフォーマットである場合、ドラッグ済内容はIEC61131シンタックスとコンパチブルなFBプログラム部分に変換される(段階16B)と同時に、該IEC61131-3シンタックスとコンパチブルなFBプログラム部分はIEC61131-テキストエディターに貼付けられる(段階18)。従って、本発明のPLCプログラム編集方法によって、PLCプログラマーは直接ライブラリー内のFCプログラムあるいはFBプログラムをテキストエディターにドラッグできる。FCプログラムあるいはFBプログラムに対応するIEC61131フォーマットのプログラムテキストがプログラマーのプログラム編集を容易にするためテキストエディターに貼付けられる。図3および図3Aは本発明の好ましい第2実施例によるPLCプログラム編集方法のフローチャートを示す。好ましい第2実施例はドロップ操作がドラッグ済内容を基本に実行可能かどいうかを示す。 FIG. 2 shows a flowchart of the PLC program editing method according to the first preferred embodiment of the present invention. The PLC program editing method is operated when the IEC61131 text editor is activated (step 10). If a cursor tool such as a mouse detects a drag and drop operation (step 12), the method of the present invention determines whether the drag content can be dropped into the text editor (step 14). If not, processing returns to step 10. If yes, it is determined that the dragged content is FB or FC (step 16). If the dragged content is in FC format, the dragged content is converted to an FC program part compatible with IEC61131 syntax (step 16A), and the FC program part compatible with the IEC61131-3 syntax is converted to IEC61131-text. Affixed to the editor (step 18). When the dragged content is in the FB format, the dragged content is converted into an FB program part compatible with the IEC61131 syntax (step 16B), and at the same time, the FB program part compatible with the IEC61131-3 syntax is converted to the IEC61131- It is pasted in a text editor (step 18). Therefore, according to the PLC program editing method of the present invention, the PLC programmer can directly drag the FC program or FB program in the library to the text editor. Program text in IEC61131 format corresponding to the FC program or FB program is pasted into a text editor to facilitate programmer program editing. 3 and 3A show a flowchart of a PLC program editing method according to a second preferred embodiment of the present invention. The second preferred embodiment shows whether the drop operation can be performed based on the dragged content.

マウスのようなポインティングツールが、利用者に編集されたばかりのPLCプログラムを編集するテキストの入力を可能にするIEC61131テキスト編集領域においてドラッグアンドドロップ操作を検知する場合(段階20)に、本発明の方法がドラッグ済内容のソースを判定して(段階22)、ドラッグ済内容がライブラリーからである場合(段階30)、ドラッグされた内容がプロジェクトのPOUである場合(段階50)ならびに、ドラッグ済内容がその他のソースからである場合(段階70)に、フォローアップ処理が行われる。ドラッグ済内容がライブラリーからである場合(段階30)に、ドラッグ済内容の関数タイプが判定される(段階300)。ドラッグ済内容の関数タイプがFCである場合には、ドラッグ済内容はIEC61131シンタックスとコンパチブルなFCプログラム部分に変換され(段階302)、マウスカーソル形状が「ドロップ行為」が許容されることを知らせるアイコンに変更され(段階314)、カーソルに対応する位置が見つけられてから(段階318)、IEC61131シンタックスとコンパチブルなFCプログラム部分がIEC61131テキスト編集領域に貼付けられる(段階320)。 The method of the present invention when a pointing tool such as a mouse detects a drag and drop operation in the IEC61131 text editing area that allows the user to enter text to edit the PLC program that has just been edited (step 20). Determines the source of the dragged content (step 22), the dragged content is from the library (step 30), the dragged content is the project POU (step 50), and the dragged content If is from another source (step 70), a follow-up process is performed. If the dragged content is from a library (step 30), the function type of the dragged content is determined (step 300). If the function type of the dragged content is FC, the dragged content is converted into an FC program part compatible with the IEC61131 syntax (step 302), and the mouse cursor shape informs that “drop action” is allowed. After changing to an icon (step 314) and finding a position corresponding to the cursor (step 318), an FC program portion compatible with the IEC61131 syntax is pasted into the IEC61131 text editing area (step 320).

ドラッグされる内容の関数タイプがFBである場合には、現在編集されたばかりのプログラムのPOUタイプが判定される(段階310)。現在編集されたばかりのプログラムのPOUタイプがFCである場合には、マウスカーソル形状は、FCがFBを呼び出すことは不可能であるので、「ドロップ」行為が許容されないことを示すアイコンに変更される(段階312)。現在編集されたばかりのプログラムのPOUタイプがFBあるいはPGである場合には、マウスカーソル形状は「ドロップ」行為が可能であることを示すアイコンに変更され(段階314)、ドラッグ済内容がIEC61131シンタックスとコンパチブルなFBプログラム部分に変換され(段階316)、カーソルに対応する位置が見つけられる(段階318)とともに、IEC61131シンタックスとコンパチブルなFBプログラム部分がIEC61131テキスト編集領域に貼付けられる(段階320)。 If the function type of the content being dragged is FB, the POU type of the program that has just been edited is determined (step 310). If the POU type of the program that has just been edited is FC, the mouse cursor shape is changed to an icon indicating that the “drop” action is not allowed because the FC cannot call the FB. (Step 312). If the POU type of the program that has just been edited is FB or PG, the mouse cursor shape is changed to an icon indicating that a “drop” action is possible (step 314), and the dragged content is IEC61131 syntax. The FB program part compatible with the IEC 61131 syntax is found (step 316), the position corresponding to the cursor is found (step 318), and the FB program part compatible with the IEC 61131 syntax is pasted into the IEC 61131 text editing area (step 320).

ドラッグされる内容がプロジェクトのPOUからである場合(段階50)には、ドラッグ済内容につぃてのPOUタイプが判定され(段階52)、この場合にはドラッグ済内容につぃてのPOUタイプがFC(段階54)、FB(段階56)およびPG(段階58)に分類される。 If the dragged content is from the project POU (step 50), the POU type for the dragged content is determined (step 52), in this case the POU for the dragged content. Types are classified into FC (stage 54), FB (stage 56) and PG (stage 58).

ドラッグ済内容につぃてのPOUタイプがFCである場合には、ドラッグ済内容が現在編集されたばかりのプログラムのPOU(以降、現在編集されたばかりのPOUという)と同一の名称を有するかどうか判定される(段階54)。ドラッグ済内容が現在編集されたばかりのプログラムのPOUと同一の名称を有する場合には、マウスカーソルの形状は、繰り返し呼出が許容されないため「ドロップ」行為が許容されない(段階540)ことを示すアイコンに変更される。ドラッグ済内容が現在編集されたばかりのプログラムのPOUと同一の名称を有しない場合には、段階542から548までが「ドロップ」行為が許容されることを知らせるとともにドラッグ済POUをIEC61131シンタックスとコンパチビリティがあり、FCを呼び出すIECをマニフェストするプログラム部分に変換すると同時に、カーソル位置を見つけると同時にIEC61131とコンパチブルなプログラム部分をIEC61131テキスト編集領域に貼付けるように実行される。 If the POU type for the dragged content is FC, it is determined whether the dragged content has the same name as the POU of the program that has just been edited (hereinafter referred to as the POU that has just been edited). (Step 54). If the dragged content has the same name as the POU of the program that has just been edited, the shape of the mouse cursor is an icon indicating that “drop” action is not allowed (step 540) because repeated calls are not allowed. Be changed. If the dragged content does not have the same name as the POU of the program that has just been edited, steps 542 through 548 inform that the “drop” action is allowed and make the dragged POU compatible with the IEC61131 syntax. The IEC that calls the FC is converted into a program part that manifests, and at the same time, the cursor position is found and a program part compatible with IEC61131 is pasted into the IEC61131 text editing area.

ドラッグ済内容に関するPOUタイプがFBである場合には、現在編集されたばかりのPOUのPOUタイプが判定され(段階54)、段階560(現在編集されたばかりのPOUのPOUタイプがFCである)、段階562(現在編集されたばかりのPOUのPOUタイプがFBである)および段階566(現在編集されたばかりのPOUのPOUタイプがPGである)がそれぞれ実行される。 If the POU type for the dragged content is FB, the POU type of the POU that has just been edited is determined (step 54), step 560 (the POU type of the POU that has just been edited is FC), and step 562 (the POU type of the POU that has just been edited is FB) and step 566 (the POU type of the POU that has just been edited is PG) are each executed.

現在編集されたばかりのPOUのPOUタイプがFCである場合には、マウスカーソル形状はFCがFBを呼び出すことが不可能であるので、「ドロップ」行為が許容されないことを知らせるアイコンに変更される(段階560)。現在編集されたばかりのPOUのPOUタイプがFBである場合には、ドラッグ済内容はこれが現在編集されたばかりのPOUと同一名称を持つかどうか判定される(段階562)。ドラッグ済内容が現在編集されたばかりのPOUと同一の名称を有する場合には、マウスカーソル形状は、繰り返し呼出は許容されないので、「ドロップ」行為が許容されないことを知らせるアイコンに変更される(段階564)。ドラッグ済内容が現在編集されたばかりのPOUと同一名称でない場合には、段階566から段階572までが「ドロップ」行為が許容されることを知らせるとともに、ドラッグ済POUを、IEC61131シンタックスとコンパチブルであると同時にFBを呼び出すIECをマニフェストするプログラム部分に変換するとともに、カーソル位置を見いだし、IEC61131テキスト編集領域に貼付けるためのIEC61131とコンパチブルなプログラム部分をIEC61131テキスト編集領域に貼付けるように実行される。 If the POU type of the POU that has just been edited is FC, the mouse cursor shape is changed to an icon that indicates that the “drop” action is not allowed because the FC cannot call the FB. Step 560). If the POU type of the POU that has just been edited is FB, it is determined whether the dragged content has the same name as the POU that has just been edited (step 562). If the dragged content has the same name as the POU that has just been edited, the mouse cursor shape is changed to an icon indicating that a “drop” action is not allowed, since repeated calls are not allowed (step 564). ). If the dragged content is not the same name as the POU that has just been edited, steps 566 through 572 indicate that a “drop” action is allowed, and the dragged POU is compatible with the IEC61131 syntax. At the same time, the IEC that calls the FB is converted to a manifest program part, and the cursor position is found, and a program part compatible with IEC61131 for pasting to the IEC61131 text edit area is pasted to the IEC61131 text edit area.

現在編集中のPOUのPOUタイプがPGである場合、段階566から段階572までが「ドロップ」行為が許容されないことを知らせると同時にソースPOUをIEC61131とコンパチブルなプログラム部分に変換するように実行される。 If the POU type of the POU currently being edited is PG, steps 566 to 572 are executed to inform that the “drop” action is not allowed and to convert the source POU into a program part compatible with IEC61131. .

段階52では、ドラッグ済内容のPOUタイプがPGである場合には、PGが呼出不可であるためにマウスカーソル形状が「ドロップ」行為が許容されないことを知らせるアイコンに変更される(段階58)。 In step 52, when the POU type of the dragged content is PG, since the PG cannot be called, the mouse cursor shape is changed to an icon notifying that “drop” action is not allowed (step 58).

段階24では、ドラッグ済内容のPOUタイプがその他のものである場合には、マウスカーソル形状が、プログラマーにエラー操作を警告するよう「ドロップ」行為が許容されないことを知らせるアイコンに変更される In step 24, if the dragged content POU type is anything else, the mouse cursor shape is changed to an icon that informs the programmer that a "drop" action is not allowed to alert the error operation.

図4、図5A、および図5Bを参照して、上述の方法による通常の操作が示されており、この場合、PGタイプのPOUがライブラリーのFB内容を伴うドラッグアンドドロップ操作を受入れる。操作フローが図4の破線によって示される。 Referring to FIGS. 4, 5A, and 5B, a normal operation according to the method described above is shown, where a PG type POU accepts a drag and drop operation with FB content of the library. The operation flow is indicated by a broken line in FIG.

PGタイプのPOUを編集するテキストエディターがドラッグアンドドロップ操作を感知する場合に、テキストエディターは現在編集されたばかりのPOUがPGであると同時に、ドラッグ済ソースがFBであることを知る。従って、該処理は、図4に示されるように、段階20→段階22→段階24→段階30→段階310→段階314→段階316→段階318→320である。本発明の処理によると、ドラッグ済ソースはFBであると同時に、現在編集されたばかりのPOUはPGである。従って、カーソルは「ドロップ」行為が許容されることを知らせる形状に変更される。ソースPOUはFB IEC61131シンタックスとコンパチブルなプログラム部分に変換されると同時に、該FBIEC61131シンタックスとコンパチブルなプログラム部分はカーソルによって指定されるIEC61131テキスト編集領域に貼付けられる。 When a text editor that edits a PG type POU detects a drag-and-drop operation, the text editor knows that the currently edited POU is a PG and that the dragged source is an FB. Therefore, as shown in FIG. 4, the process is as follows: step 20 → step 22 → step 24 → step 30 → step 310 → step 314 → step 316 → step 318 → 320. According to the process of the present invention, the dragged source is FB, while the POU that has just been edited is PG. Therefore, the cursor is changed to a shape that indicates that the “drop” action is allowed. The source POU is converted into a program part compatible with the FB IEC61131 syntax, and at the same time, the program part compatible with the FBIEC61131 syntax is pasted in the IEC61131 text editing area specified by the cursor.

IEC61131には、その他の高級プログラムとは全く違う、関数呼出(FC)ならびに関数ブロック(FB)用の極めて特殊なシンタックスがある。本発明の方法は、ドラッグ済ソースがドロップの実行が可能である場合にドラッグ済ソースを該ドラッグ済ソースに対応するIEC61131シンタックスプログラム部分に変換する。該IEC61131シンタックスプログラム部分にはプログラマーのプログラミングの設計と作成を容易にするIEC61131テキストプログラムおよびテキスト引数が含まれる。 IEC61131 has a very special syntax for function calls (FC) and function blocks (FB), which is completely different from other high-level programs. The method of the present invention converts a dragged source into an IEC61131 syntax program portion corresponding to the dragged source when the dragged source can be dropped. The IEC61131 syntax program portion includes an IEC61131 text program and text arguments that facilitate programmer programming design and creation.

さらに、該プログラマーはIEC61131シンタックスを覚える必要がない上に、プログラミング効率が高められ得る。 Furthermore, the programmer does not need to learn the IEC61131 syntax and programming efficiency can be increased.

本発明は、好ましい実施例を参照して説明されてきたが、本発明はその詳細に限定されることはない点が理解されなくてはならない。様々な置き換えと変更がこれまでの説明で示唆されたがその他のものも専門技術者には思い浮かぼう。従って、これらすべての置き換えと変更は付録の請求項に定められる本発明の範囲内に包含されるべきものと意図される。 Although the present invention has been described with reference to preferred embodiments, it should be understood that the invention is not limited to the details thereof. Various substitutions and changes have been suggested in the previous explanations, but others will also come to mind for professional engineers. Accordingly, all such substitutions and modifications are intended to be included within the scope of the present invention as defined in the appended claims.

新規性があると思われる本発明の特徴は付録の請求項で詳細に規定される。しかしながら、本発明自体は、添付図面と関連して行われるある本発明の代表的実施例を記述した本発明に関する以下の詳細説明への参照によって最も良く理解され得る。すなわち、 The features of the invention believed to be novel are set forth with particularity in the appended claims. However, the invention itself may best be understood by reference to the following detailed description of the invention, which describes certain exemplary embodiments of the invention, taken in conjunction with the accompanying drawings. That is,

本発明のPLCプログラム編集方法を示す模式図Schematic diagram showing the PLC program editing method of the present invention 本発明の好ましい第1実施例によるPLCプログラム編集方法を示すフローチャートFlowchart showing a PLC program editing method according to a first preferred embodiment of the present invention. 本発明の好ましい第2実施例によるPLCプログラム編集方法を示すフローチャートA flowchart showing a PLC program editing method according to a second preferred embodiment of the present invention. 本発明の好ましい第2実施例によるPLCプログラム編集方法を示すフローチャートA flowchart showing a PLC program editing method according to a second preferred embodiment of the present invention. 本発明の方法による通常操作を示す図Diagram showing normal operation according to the method of the invention 図4の通常操作の結果を示す図The figure which shows the result of the normal operation of FIG. 図4の通常操作の結果を示す図The figure which shows the result of the normal operation of FIG.

Claims (15)

ドラッグアンドドロップ操作の検知、ドラッグ済ソースの特定ならびに、該ドラッグ済ソースに対応するドラッグ済ソースのIEC61131シンタックスプログラム部分への変換、ならびに
ドラッグ済ソースがドラッグアンドドロップ操作について実行可能である場合の該IEC61131シンタックスプログラム部分のテキスト編集領域への貼付けが含まれるポインティングデバイス付きコンピュータ内のPLCプログラム編集方法。
Detection of drag-and-drop operation, identification of dragged source, conversion of dragged source corresponding to the dragged source to IEC61131 syntax program part, and when dragged source is executable for drag-and-drop operation A method of editing a PLC program in a computer with a pointing device, which includes pasting the IEC61131 syntax program part to a text editing area.
さらに、ドラッグ済ソースがライブラリーからである場合にドラッグ済ソースに関する関数タイプの判定が含まれる請求項1の方法。 The method of claim 1, further comprising determining a function type for the dragged source if the dragged source is from a library. さらに関数タイプが関数である場合に、ドラッグ済ソースに対応する該関数のIEC61131シンタックスプログラム部分への変換ならびに該IEC61131シンタックスプログラム部分のテキスト編集領域への貼付けが含まれる請求項2の方法。 The method of claim 2, further comprising: converting the function corresponding to the dragged source into an IEC61131 syntax program part and pasting the IEC61131 syntax program part into a text editing area when the function type is a function. さらに関数タイプが関数ブロックである場合に編集されたばかりのプログラム中のPOUタイプの判定が含まれる請求項2の方法。 The method of claim 2, further comprising determining a POU type in the program that has just been edited if the function type is a function block. さらに編集されたばかりのプログラム中のPOUタイプが関数ブロックである場合に、ドラッグ済ソースに対応する関数ブロックのIEC61131シンタックスプログラム部分への変換ならびに該IEC61131シンタックスプログラム部分のテキスト編集領域への貼付けが含まれる請求項4の方法。 If the POU type in the program that has just been edited is a function block, conversion of the function block corresponding to the dragged source to the IEC61131 syntax program part and pasting of the IEC61131 syntax program part to the text editing area may be performed. The method of claim 4 included. さらに、編集されたばかりのプログラム中のPOUタイプがプログラムである場合に、該プログラムのドラッグ済ソースに対応するIEC61131シンタックスプログラム部分への変換ならびにIEC61131シンタックスプログラム部分のテキスト編集領域への貼付けが含まれる請求項4の方法。 In addition, when the POU type in the program just edited is a program, conversion to the IEC61131 syntax program part corresponding to the dragged source of the program and pasting of the IEC61131 syntax program part to the text editing area are included. The method of claim 4 wherein: さらに、ドラッグ済ソースがプロジェクトのPOUからである場合にドラッグ済ソースに関するPOUタイプの判定が含まれる請求項1の方法。 The method of claim 1, further comprising determining a POU type for the dragged source if the dragged source is from a project POU. さらに、ドラッグ済ソースのPOUタイプが関数である場合に、ドラッグ済ソースが編集されたばかりのプログラム中のPOUと同一名称を有するかどうかの判定が含まれ、名称が異なる場合には、該関数がIEC61131シンタックスプログラム部分へ変換されると同時に、該IEC61131シンタックスプログラム部分がテキスト編集領域に貼付けられる請求項4の方法。 Further, when the POU type of the dragged source is a function, the determination includes whether or not the dragged source has the same name as the POU in the program that has just been edited. The method according to claim 4, wherein the IEC61131 syntax program part is pasted in the text editing area at the same time as being converted into the IEC61131 syntax program part. さらに、ドラッグ済ソースのPOUタイプが関数ブロックである場合に編集されたばかりのプログラム中のPOUタイプの判定が含まれる請求項7の方法。 8. The method of claim 7, further comprising determining a POU type in the program that has just been edited if the dragged source POU type is a function block. さらに、POUタイプが編集されたばかりのプログラムの関数である場合に、「ドロップ」行為が許容されないことを知らせるカーソル形状の変更が含まれる請求項9の方法。 10. The method of claim 9, further comprising a change in cursor shape notifying that a "drop" action is not allowed if the POU type is a function of the program just edited. さらに、編集されたばかりのプログラムのPOUタイプが関数ブロックである場合に、ドラッグ済ソースが編集されたばかりのプログラム中のPOUであるかどうかの判定が含まれる請求項9の方法。 10. The method of claim 9, further comprising determining if the dragged source is a POU in the program that has just been edited if the POU type of the program that has just been edited is a function block. さらに、ドラッグ済ソースが編集されたばかりのPOUである場合に、「ドロップ」行為が許容されないことを知らせるカーソル形状の変更が含まれる請求項11の方法。 12. The method of claim 11, further comprising changing the cursor shape to signal that a “drop” action is not allowed if the dragged source is a POU that has just been edited. さらに、ドラッグ済ソースが編集されたばかりのPOUではない場合に、ドラッグ済ソースのIEC61131シンタックスプログラム部分への変換ならびに該IEC61131シンタックスプログラム部分のテキスト編集領域への貼付けが含まれる請求項11の方法。 The method of claim 11 further comprising converting the dragged source into an IEC61131 syntax program portion and pasting the IEC61131 syntax program portion into a text editing area if the dragged source is not a just edited POU. . さらに、編集されたばかりのPOUタイプがプログラムである場合に、ドラッグ済ソースのIEC61131シンタックスプログラム部分への変換ならびに該IEC61131シンタックスプログラム部分のテキスト編集領域への貼付けが含まれる請求項9の方法。 10. The method of claim 9, further comprising converting the dragged source into an IEC61131 syntax program portion and pasting the IEC61131 syntax program portion into a text editing area if the POU type just edited is a program. さらに、編集されたばかりのPOUタイプがプログラムである場合に、「ドロップ」行為が許容されないことを知らせるカーソル形状の変更が含まれる請求項7の方法。 8. The method of claim 7, further comprising changing the cursor shape to signal that a “drop” action is not allowed if the POU type just edited is a program.
JP2007234585A 2007-09-10 2007-09-10 Method for editing programmer logic controller (plc) program Pending JP2009069905A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007234585A JP2009069905A (en) 2007-09-10 2007-09-10 Method for editing programmer logic controller (plc) program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007234585A JP2009069905A (en) 2007-09-10 2007-09-10 Method for editing programmer logic controller (plc) program

Publications (1)

Publication Number Publication Date
JP2009069905A true JP2009069905A (en) 2009-04-02

Family

ID=40606129

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007234585A Pending JP2009069905A (en) 2007-09-10 2007-09-10 Method for editing programmer logic controller (plc) program

Country Status (1)

Country Link
JP (1) JP2009069905A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113515084A (en) * 2021-07-26 2021-10-19 山东省计算中心(国家超级计算济南中心) Graphical programming interaction system and interaction method of compiled PLC

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0519817A (en) * 1991-07-17 1993-01-29 Fanuc Ltd System for editing sequence program
JPH07262044A (en) * 1994-03-25 1995-10-13 Hitachi Ltd Event trace analyzing method
JPH11327996A (en) * 1998-05-15 1999-11-30 Nec Corp Editing device of data base package object
JP2002351509A (en) * 2001-05-25 2002-12-06 Mitsubishi Electric Corp Programming tool and programming method
JP2003223204A (en) * 2002-01-29 2003-08-08 Mitsubishi Electric Corp Programming method of programmable controller, system thereof and recording medium thereof
JP2003296113A (en) * 2002-03-29 2003-10-17 Toshiba Corp Device and method for supporting program development, program and recording medium
JP2003303162A (en) * 1998-06-30 2003-10-24 Seiko Epson Corp Device controller, device control system, device controlling method, and recording medium with computer program recorded therein for performing device control
JP2005301520A (en) * 2004-04-08 2005-10-27 Mitsubishi Electric Corp Programming system
WO2006046666A1 (en) * 2004-10-27 2006-05-04 Justsystems Corporation Document processing device and document processing method
JP2007058750A (en) * 2005-08-26 2007-03-08 Kyosan Electric Mfg Co Ltd Data specification description document and verification data generation device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0519817A (en) * 1991-07-17 1993-01-29 Fanuc Ltd System for editing sequence program
JPH07262044A (en) * 1994-03-25 1995-10-13 Hitachi Ltd Event trace analyzing method
JPH11327996A (en) * 1998-05-15 1999-11-30 Nec Corp Editing device of data base package object
JP2003303162A (en) * 1998-06-30 2003-10-24 Seiko Epson Corp Device controller, device control system, device controlling method, and recording medium with computer program recorded therein for performing device control
JP2002351509A (en) * 2001-05-25 2002-12-06 Mitsubishi Electric Corp Programming tool and programming method
JP2003223204A (en) * 2002-01-29 2003-08-08 Mitsubishi Electric Corp Programming method of programmable controller, system thereof and recording medium thereof
JP2003296113A (en) * 2002-03-29 2003-10-17 Toshiba Corp Device and method for supporting program development, program and recording medium
JP2005301520A (en) * 2004-04-08 2005-10-27 Mitsubishi Electric Corp Programming system
WO2006046666A1 (en) * 2004-10-27 2006-05-04 Justsystems Corporation Document processing device and document processing method
JP2007058750A (en) * 2005-08-26 2007-03-08 Kyosan Electric Mfg Co Ltd Data specification description document and verification data generation device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113515084A (en) * 2021-07-26 2021-10-19 山东省计算中心(国家超级计算济南中心) Graphical programming interaction system and interaction method of compiled PLC

Similar Documents

Publication Publication Date Title
US20090064103A1 (en) Method for editing programmer logic controller (plc) program
US6477435B1 (en) Automated programming system for industrial control using area-model
US6854111B1 (en) Library manager for automated programming of industrial controls
US8843885B2 (en) Program creation support device
US9342278B2 (en) Method and program editor for creating and processing a program for an industrial automation arrangement
EP3798757B1 (en) System and method for developing industrial applications
CN108351764B (en) Data processing method and system
US7913228B2 (en) Translation viewer for project documentation and editing
JP5089213B2 (en) Partially automated method and system for converting a graphical interface to a voice-enabled interface
EP2329364A1 (en) Method and system for creating hmi applications for an automation process
US20100313128A1 (en) System and method for free form comments for a programmable logic controller
US8930880B2 (en) Development of functional modules using a module bus
JP2000094490A (en) Process control system for processor base having intuitively programming capability
KR101538907B1 (en) Logical structure design surface
US20070038947A1 (en) Method and device for generation of a parametric model associated with a 3D geometry
US6360357B1 (en) Adding code in an application during runtime to enrich object behavior
KR101408280B1 (en) Apparatus and method for logic creation of development tools, and storage medium recording program for implementing method thereof
CN110471659B (en) Multilingual implementation method and system, man-machine interface configuration software end and equipment end
JP2009069905A (en) Method for editing programmer logic controller (plc) program
TWI336852B (en) Method for editing plc program
KR102300005B1 (en) Method and system for assisting software development using connection of graphic objects, each representing a software component
JP4964036B2 (en) Editor device and editor program
KR100423742B1 (en) Exclusive control system by sequential function chart
TWI787728B (en) Method for generating a human-machine interface, computer program product and human-machine interface device
DE102007043214A1 (en) Programmer logic controller program editing method for use by programmer, involves pasting international electrotechnical commision-6 1131-syntax program portion to text edit area when dragged source is feasible for drag-and-drop operation

Legal Events

Date Code Title Description
A977 Report on retrieval

Effective date: 20110622

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110628

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20111206