JP2010122824A - Diagram debugging system of programmable controller, programming apparatus for the system and program for the system - Google Patents

Diagram debugging system of programmable controller, programming apparatus for the system and program for the system Download PDF

Info

Publication number
JP2010122824A
JP2010122824A JP2008294783A JP2008294783A JP2010122824A JP 2010122824 A JP2010122824 A JP 2010122824A JP 2008294783 A JP2008294783 A JP 2008294783A JP 2008294783 A JP2008294783 A JP 2008294783A JP 2010122824 A JP2010122824 A JP 2010122824A
Authority
JP
Japan
Prior art keywords
instruction
internal variable
program
diagram
control program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2008294783A
Other languages
Japanese (ja)
Other versions
JP5155829B2 (en
Inventor
Shigeru Kajiwara
繁 梶原
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2008294783A priority Critical patent/JP5155829B2/en
Publication of JP2010122824A publication Critical patent/JP2010122824A/en
Application granted granted Critical
Publication of JP5155829B2 publication Critical patent/JP5155829B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a diagram debugging system of a programmable controller, which easily debugs a diagram having nodes including branch points of a control program in operation. <P>SOLUTION: A programming apparatus includes: a control program edit processing part 11a for preparing a control program for generating first instruction/first inner variable for specifying connection or non-connection/connection destination of one input side of a node, for the node connecting between symbols and second instruction/second inner variable for specifying connection or non-connection/connection destination of the other output side of the node; and a wire force processing part 11b for commanding to rewrite the first instruction/first inner variable into third instruction/third inner variable respectively, rewrite either the third instruction/third inner variable, and the second instruction/second inner variable into fourth instruction/fourth inner variable respectively, and rewrite either the fourth instruction/fourth inner variable. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、鉄鋼プラント、製紙プラント、化学プラント等のプラント制御装置に係り、特に、ラダーダイアグラム(LD)言語、ファンクションブロックダイアグラム(FBD)言語を使用したプログラマブルコントローラのダイアグラムのデバッグシステム、そのプログラミング装置及びそのプログラムに関する。   The present invention relates to a plant control device for a steel plant, a papermaking plant, a chemical plant, and the like, and more particularly, a programmable controller diagram debugging system using a ladder diagram (LD) language and a function block diagram (FBD) language, and a programming device therefor And the program.

一般に、鉄鋼、製紙プラントや自動車産業などの組立作業を含むFA(Factory Automation)分野、化学プラントなどのPA(Process Automation)分野、上下水道システム等の公共システムなど、産業用システムの監視、制御分野では、図式言語で記述された制御プログラムを使用するプログラマブルコントローラ(以後、PLCと称す)が広く用いられている。   In general, FA (Factory Automation) field including assembly work such as steel, paper plant and automobile industry, PA (Process Automation) field such as chemical plant, and public system such as water and sewage system, monitoring and control field of industrial system Therefore, a programmable controller (hereinafter referred to as PLC) that uses a control program written in a graphical language is widely used.

このPLCの図式言語は、国際電気標準会議による国際規格IEC61131−3で規定されているグローバル言語が採用されている。   As the PLC diagram language, the global language defined in the international standard IEC61131-3 by the International Electrotechnical Commission is adopted.

そして、このような言語を使用したプログラミングツールとしては、プログラミングソフトウェア(ラダーエディタなど)が普及し、パソコンにおいてダイアグラムがシンボルを含む形態で作成できるので、ダイアグラムに基づくプログラムの作成及び編集が容易に行えるようになっている。   As programming tools using such languages, programming software (such as ladder editors) has become widespread, and diagrams can be created in a form that includes symbols on a personal computer, making it easy to create and edit programs based on diagrams. It is like that.

通常、作成されたプログラムは、当初の設計通りに正しく動作させるために、デバッグでプログラムの修正や変更が施されて完成される。このデバッグにおいては、PLCに機器が接続された状態でプログラムを実行させて、設計通りに機器が動作しているかどうかを確認する。   Usually, the created program is completed by correcting or changing the program by debugging in order to operate correctly as originally designed. In this debugging, the program is executed with the device connected to the PLC to check whether the device is operating as designed.

パソコンの表示画面上でダイアグラムを作成するラダーエディタにおいては、デバッグにおいて、接点を強制的にON・OFFさせるシミュレーションによってダイアグラムの動作を確認することができるモードを備えている。   The ladder editor for creating a diagram on a display screen of a personal computer has a mode in which the operation of the diagram can be confirmed by a simulation for forcibly turning on / off the contact in debugging.

例えば、ラダーエディタがWindows(R)システム上で動作するアプリケーションとしてパソコンにインストールされている場合、テストモード(デバッグモード)を設定し、この状態で、接点のON・OFFを指示するダイアログボックスを表示させ、この操作画面を使用して接点のON・OFFを設定する。   For example, if the ladder editor is installed on a personal computer as an application that runs on a Windows (R) system, a test mode (debug mode) is set, and a dialog box for instructing contact ON / OFF is displayed in this state. And use this operation screen to set the contact ON / OFF.

しかしながら、このような操作によるデバッグでは、ONさせる接点数が多くなるほど手間が多くなり、デバッグの作業効率が著しく低下する不都合を解消するため、デバッグの間だけ幾つかの接点をまとめてダミーの回路に置き換えて、ONさせる接点を必要最小限に限定させることによって上記のような手間を省く方法もある。   However, in debugging by such an operation, as the number of contacts to be turned on increases, the time is increased, and in order to solve the disadvantage that the work efficiency of debugging is remarkably lowered, a dummy circuit is formed by collecting several contacts only during debugging. There is also a method in which the above-described trouble is eliminated by limiting the contacts to be turned on to the minimum necessary.

ところが、このような方法では、デバッグが終了した後には、ダミー回路を元の回路に戻す必要があり、これを忘れると、プログラムが正常に動作しないといったトラブルを発生させる可能性がある。   However, in such a method, it is necessary to return the dummy circuit to the original circuit after the debugging is completed, and if this is forgotten, there is a possibility of causing a trouble that the program does not operate normally.

そこで、接点を強制的にONさせるシミュレーションに要する操作を簡素化することによって、プログラムのデバッグ作業の効率化を図るために、ダイアグラムにおける入出力側母線間の接続線上に配置された接点のうちON・OFFさせる接点を入力側母線からの規定の経路で指定する指定処理と、指定された接点を一括してON・OFFするON・OFF処理とを行う方法が開示されている。(例えば、特許文献1参照。)。
特開2000−276212号公報(第1頁、図1)
Therefore, in order to improve the efficiency of the debugging work of the program by simplifying the operation required for the simulation of forcibly turning on the contacts, ON of the contacts arranged on the connection line between the input and output buses in the diagram. A method of performing a designation process for designating a contact to be turned off by a specified route from the input bus and an ON / OFF process for turning on / off the designated contacts collectively is disclosed. (For example, refer to Patent Document 1).
Japanese Unexamined Patent Publication No. 2000-276212 (first page, FIG. 1)

しかしながら、ダイアグラムのデバッグ中において、接点等の命令語に対して、その変数の値を強制的に設定して、デバッグをする方法(接点フォースとも言う)は知られているものの、分岐点を含む接続点には変数を設定することができないので、該接続点以降のデバッグが容易に行えない問題がある。   However, while debugging a diagram, a method of forcibly setting the value of a variable for an instruction word such as a contact to perform debugging (also called a contact force) is known, but includes a branch point. Since a variable cannot be set at a connection point, there is a problem that debugging after the connection point cannot be performed easily.

また、デバッグ等のためにダミー回路を製作する方法では、プログラムを復旧するための作業が必要になることや、その作業が正しく行なわれない可能性もあるので、新たな問題が発生する可能性がある。   Also, in the method of manufacturing a dummy circuit for debugging etc., there is a possibility that new work may occur because work for restoring the program is necessary and the work may not be performed correctly. There is.

さらに、稼動中の制御プログラムの場合には、その動作を一端停止し、ダイアグラム(回路図)を変更してデバッグに入る必要があるなど、手間が掛かる問題がある。   Furthermore, in the case of a running control program, there is a problem that it takes time and effort to stop the operation, change the diagram (circuit diagram), and start debugging.

以上のように、ダイアグラムのデバッグには、デバッグしたい回路を他の回路と切り離し、接続点を含む回路のバイパス回路を形成したり、予め設定された内部変数を切替えて切断した接続点から印加したり、複数の接続点を有するダイアグラムの領域を予め設定し領域内の内部接続線を切断したりすることなど、種々のデバッグ目的に応じたダイアグラムの接続先を変更する場合が発生する。   As described above, when debugging a diagram, the circuit to be debugged is separated from other circuits to form a bypass circuit of the circuit including the connection point, or the preset internal variable is switched and applied from the disconnected connection point. In some cases, the connection destination of the diagram is changed in accordance with various debugging purposes, such as presetting a region of a diagram having a plurality of connection points and cutting internal connection lines in the region.

このようなダイアグラムの接続先を変更してデバッグする場合、元の制御プログラムの接続点の命令を置換して、その接続点に複数の命令数(ステップ数)で構成するデバッグプログラムを挿入する場合には、ステップ数が変更されたプログラムを実行するために、コントローラ側のメモリ領域を変更する必要が生じるので、デバッグプログラムを挿入したり元のプログラムに復元したりすることが簡単に行なえない問題がある。   When debugging by changing the connection destination of such a diagram, replacing the instruction at the connection point of the original control program and inserting a debug program consisting of multiple instructions (number of steps) at that connection point In order to execute a program with the number of steps changed, it is necessary to change the memory area on the controller side, so it is not easy to insert a debug program or restore to the original program There is.

本発明は上記問題点を解決するためになされたもので、ラダーダイアグラム言語、ファンクションブロックダイアグラム言語で作成されるダイアグラムを表示画面上に表示して作成し、該ダイアグラムに基づくオブジェクト制御プログラムを作成するプログラマブルコントローラのダイアグラムのデバッグシステムにおいて、その接続点に複数の命令数(ステップ数)で構成するデバッグプログラムを挿入する場合に、簡単にデバッグプログラムを挿入したり元のプログラムに復元したりすることができるプログラマブルコントローラのダイアグラムのデバッグシステム、及びそのプログラミング装置及びそのプログラムを提供することを目的とする。   The present invention has been made to solve the above-described problems. A diagram created in a ladder diagram language or a function block diagram language is displayed on a display screen to create an object control program based on the diagram. In a programmable controller diagram debugging system, when a debugging program consisting of multiple instructions (number of steps) is inserted at the connection point, the debugging program can be easily inserted or restored to the original program. An object of the present invention is to provide a programmable controller diagram debugging system, a programming device thereof, and a program thereof.

上記目的を達成するために、本発明の請求項1に係るプログラマブルコントローラのダイアグラムのデバッグシステムは、ラダーダイアグラム言語、ファンクションブロックダイアグラム言語で作成されるダイアグラムを表示画面上で作成し、該ダイアグラムに基づくオブジェクト制御プログラムを作成するプログラマブルコントローラのプログラミング装置と、前記オブジェクト制御プログラムをローディングして実行する前記プログラマブルコントローラとから成るダイアグラムのデバックシステムであって、前記ダイアグラムを生成し、前記表示画面上に表示された前記ダイアグラムのシンボル間を結ぶ接続点に対して、前記接続点の一方の入力側の接続・非接続/接続先を指定する第1の命令・第1の内部変数と、該接続点の他方の出力側の接続・非接続/その接続先を指定する第2の命令/第2の内部変数とを生成する前記オブジェクト制御プログラムを作成する制御プログラム編集処理部と、前記第1の命令/第1の内部変数を夫々第3の命令/第3の内部変数に、該第3の命令/第3の内部変数のいずれかを、また、前記第2の命令/第2の内部変数を夫々第4の命令/第4の内部変数に、該第4の命令/第4の内部変数のいずれかを書き換えることを指令するワイヤフォース設定処理部とを備えるプログラミング装置において、前記第1の命令は、「STORE」命令、前記第2の命令は「LOAD」命令から成る接続点対して、前記コントローラの前記オブジェクト制御プログラムが記憶されるメモリエリアと異なるメモリエリアに記憶させるデバッグプログラムの先頭アドレスを第3の内部変数とする前記第3の「JUMP」命令ステップと、さらに、前記前記先頭アドレスを開始ステップとする複数の命令群からなるプログラムステップと、前記プログラムの演算結果を前記第1の内部変数として記憶する「SRORE」命令ステップと、前記オブジェクト制御プログラムの第2の命令のステップ先を内部変数とする「JUMP」命令ステップと、さらに、前記演算結果を第2の内部変数として書き込む前記第2「LOAD」命令ステップとから成るデバッグプログラムを生成し、前記デバッグプログラムを前記コントローラに送信して前記オブジェクト制御プログラムを書き換え、前記オブジェクト制御プログラムの実行中に、前記接続点に前記デバッグプログラムを挿入して、ダイアグラムのデバッグが行なえるようにしたことを特徴とする。   In order to achieve the above object, a programmable controller diagram debugging system according to claim 1 of the present invention creates a diagram created in a ladder diagram language and a function block diagram language on a display screen, and based on the diagram. A diagram debugging system comprising a programmable controller programming device for creating an object control program and the programmable controller for loading and executing the object control program, wherein the diagram is generated and displayed on the display screen. In addition, with respect to the connection point connecting the symbols of the diagram, a first command / first internal variable for designating connection / disconnection / connection destination on one input side of the connection point, and the other of the connection points of A control program editing processing unit for creating the object control program for generating a second command / second internal variable for designating a connection / non-connection on the power side / a connection destination thereof, and the first command / first Of the third instruction / third internal variable, the third instruction / third internal variable, and the second instruction / second internal variable, respectively. And a wire force setting processing unit for instructing to rewrite any of the fourth instruction / fourth internal variable in the instruction / fourth internal variable, the first instruction includes: STORE "instruction, the second instruction is a debugging program stored in a memory area different from the memory area in which the object control program of the controller is stored for a connection point consisting of a" LOAD "instruction. The third “JUMP” instruction step having a first internal address as a third internal variable, a program step comprising a plurality of instruction groups having the start address as a start step, and an operation result of the program A “SORE” instruction step that is stored as a first internal variable, a “JUMP” instruction step in which the step destination of the second instruction of the object control program is an internal variable, and the calculation result as a second internal variable Generating a debug program comprising the second “LOAD” instruction step written as: rewriting the object control program by transmitting the debug program to the controller, and executing the object control program at the connection point Insert a debug program to save the diagram The feature is that the bag can be used.

上記目的を達成するために、本発明の請求項2に係るプログラマブルコントローラのダイアグラムのデバッグシステムは、ラダーダイアグラム言語、ファンクションブロックダイアグラム言語で作成されるダイアグラムを表示画面上で作成し、該ダイアグラムに基づくオブジェクト制御プログラムを作成するプログラマブルコントローラのプログラミング装置と、前記オブジェクト制御プログラムをローディングして実行する前記プログラマブルコントローラとから成るダイアグラムのデバックシステムであって、前記ダイアグラムを生成し、前記表示画面上に表示された前記ダイアグラムのシンボル間を結ぶ接続点に対して、前記接続点の一方の入力側の接続・非接続/接続先を指定する第1の命令/第1の内部変数と、該接続点の他方の出力側の接続・非接続/その接続先を指定する第2の命令/第2の内部変数とを生成する前記オブジェクト制御プログラムを作成する制御プログラム編集処理部と、前記第1の命令/第1の内部変数を夫々第3の命令/第3の内部変数に、該第3の命令/第3の内部変数のいずれかを、また、前記第2の命令/第2の内部変数を夫々第4の命令/第4の内部変数に、該第4の命令/第4の内部変数のいずれかを書き換えることを指令するワイヤフォース設定処理部とを備えるプログラミング装置において、前記第1の命令は、「STORE」命令、前記第2の命令は「LOAD」命令から成る接続点対して、前記第4の命令とその内部変数は、その前記オブジェクト制御プログラムが記憶されるメリエリアと異なるメモリエリアに記憶させるデバッグプログラムの先頭アドレスを内部変数とする「JUMP」命令と、前記先頭アドレスのステップでは、前記第1の内部変数を「LOAD」する命令ステップと、前記前記先頭アドレスを開始ステップとする複数の命令群からなるプログラムと、前記プログラムの演算結果を前記第1の内部変数として記憶する「SRORE」命令と、前記第1の内部変数として書き込む「LOAD」命令ステップと、さらに、前記第2の命令の次の命令のステップ先を内部変数とする、前記オブジェクト制御プログラムに復帰させる「JUMP」命令ステップとから成るデバッグプログラムを生成し、前記デバッグプログラムを前記コントローラに送信して前記オブジェクト制御プログラムを書き換え、前記オブジェクト制御プログラムの実行中に、前記接続点に前記デバッグプログラムを挿入して、ダイアグラムのデバッグが行なえるようにしたことを特徴とする。   To achieve the above object, a programmable controller diagram debugging system according to claim 2 of the present invention creates a diagram created in a ladder diagram language and a function block diagram language on a display screen, and based on the diagram. A diagram debugging system comprising a programmable controller programming device for creating an object control program and the programmable controller for loading and executing the object control program, wherein the diagram is generated and displayed on the display screen. A first instruction / first internal variable for designating connection / non-connection / connection destination on one input side of the connection point with respect to the connection point connecting the symbols of the diagram, and the other of the connection points of A control program editing processing unit for creating the object control program for generating a second command / second internal variable for designating a connection / non-connection on the power side / a connection destination thereof, and the first command / first Of the third instruction / third internal variable, the third instruction / third internal variable, and the second instruction / second internal variable, respectively. And a wire force setting processing unit for instructing to rewrite any of the fourth instruction / fourth internal variable in the instruction / fourth internal variable, the first instruction includes: For the connection point consisting of the “STORE” instruction and the second instruction “LOAD” instruction, the fourth instruction and its internal variables are stored in a memory area different from the memory area in which the object control program is stored. A “JUMP” instruction that uses the top address of the bag program as an internal variable, and a plurality of instructions that start the “LOAD” of the first internal variable at the start address step and the start step as the start address A program consisting of a group, a “STORE” instruction for storing the operation result of the program as the first internal variable, a “LOAD” instruction step for writing as the first internal variable, and a second instruction Generate a debug program consisting of a “JUMP” instruction step to return to the object control program with the step destination of the next instruction as an internal variable, rewrite the object control program by sending the debug program to the controller, During execution of the object control program, The debug program is inserted into the connection point so that the diagram can be debugged.

上記目的を達成するために、本発明の請求項3に係るプログラマブルコントローラのダイアグラムのデバッグシステムのプログラミング装置は、ラダーダイアグラム言語、ファンクションブロックダイアグラム言語で作成されるダイアグラムを表示画面上で作成し、該ダイアグラムに基づくオブジェクト制御プログラムを作成するプログラマブルコントローラのプログラミング装置と、前記オブジェクト制御プログラムをローディングして実行する前記プログラマブルコントローラとから成るダイアグラムのデバックシステムのプログラミング装置であって、前記プログラミング装置は、前記ダイアグラムを生成し、前記表示画面上に表示された前記ダイアグラムのシンボル間を結ぶ接続点に対して、前記接続点の一方の入力側の接続・非接続/接続先を指定する第1の命令/第1の内部変数と、該接続点の他方の出力側の接続・非接続/その接続先を指定する第2の命令/第2の内部変数とを生成する前記オブジェクト制御プログラムを作成する制御プログラム編集処理部と、前記第1の命令/第1の内部変数を夫々第3の命令/第3の内部変数に、該第3の命令/第3の内部変数のいずれかを、また、前記第2の命令/第2の内部変数を夫々第4の命令/第4の内部変数に、該第4の命令/第4の内部変数のいずれかを書き換えることを指令するワイヤフォース設定処理部とを備え、前記第1の命令は、「STORE」命令、前記第2の命令は「LOAD」命令から成る接続点対して、前記コントローラの前記オブジェクト制御プログラムが記憶されるメモリエリアと異なるメモリエリアに記憶させるデバッグプログラムの先頭アドレスを第3の内部変数とする前記第3の「JUMP」命令ステップと、さらに、前記前記先頭アドレスを開始ステップとする複数の命令群からなるプログラムステップと、前記プログラムの演算結果を前記第1の内部変数として記憶する「SRORE」命令ステップと、前記オブジェクト制御プログラムの第2の命令のステップ先を内部変数とする「JUMP」命令ステップと、さらに、前記演算結果を第2の内部変数として書き込む前記第2「LOAD」命令ステップとから成るデバッグプログラムを生成し、前記デバッグプログラムを前記コントローラに送信して前記オブジェクト制御プログラムを書き換え、前記オブジェクト制御プログラムの実行中に、前記接続点に前記デバッグプログラムを挿入するようにしたことを特徴とする。   In order to achieve the above object, a programmable controller of a programmable controller diagram debugging system according to claim 3 of the present invention creates a diagram created in a ladder diagram language or a function block diagram language on a display screen. A programming device of a diagram debugging system comprising a programming device of a programmable controller for creating an object control program based on a diagram and the programmable controller for loading and executing the object control program, wherein the programming device is the diagram To the connection point connecting the symbols of the diagram displayed on the display screen, the connection / disconnection on one input side of the connection point. / First instruction / first internal variable for specifying a connection destination / connection / non-connection on the other output side of the connection point / second instruction / second internal variable for specifying the connection destination A control program edit processing unit for creating the object control program to be generated; and the third instruction / third internal variable for the first instruction / first internal variable, respectively, and the third instruction / third internal variable. Any one of the internal variables, the second instruction / second internal variable is replaced with a fourth instruction / fourth internal variable, and any of the fourth instruction / fourth internal variable is rewritten. A wire force setting processing unit for instructing that the object control program of the controller has a connection point consisting of a “STORE” instruction and a “LOAD” instruction as the second instruction. Memories that differ from the memory area to be stored The third “JUMP” instruction step having a third internal variable as the start address of the debug program to be stored in the rearea; and a program step comprising a plurality of instruction groups having the start address as a start step; A “SORE” instruction step for storing the calculation result of the program as the first internal variable, a “JUMP” instruction step having the step destination of the second instruction of the object control program as an internal variable, and the calculation result Is generated as a second internal variable, and a debug program comprising the second “LOAD” instruction step is generated, the debug program is transmitted to the controller, the object control program is rewritten, and the object control program is being executed. , Debug to the connection point It is characterized by inserting a program.

上記目的を達成するために、本発明の請求項4に係るプログラマブルコントローラのダイアグラムのデバッグシステムのプログラミング装置は、ラダーダイアグラム言語、ファンクションブロックダイアグラム言語で作成されるダイアグラムを表示画面上で作成し、該ダイアグラムに基づくオブジェクト制御プログラムを作成するプログラマブルコントローラのプログラミング装置と、前記オブジェクト制御プログラムをローディングして実行する前記プログラマブルコントローラとから成るダイアグラムのデバックシステムのプログラミング装置であって、前記プログラミング装置は、前記ダイアグラムを生成し、前記表示画面上に表示された前記ダイアグラムのシンボル間を結ぶ接続点に対して、前記接続点の一方の入力側の接続・非接続/接続先を指定する第1の命令/第1の内部変数と、該接続点の他方の出力側の接続・非接続/その接続先を指定する第2の命令/第2の内部変数とを生成する前記オブジェクト制御プログラムを作成する制御プログラム編集処理部と、前記第1の命令/第1の内部変数を夫々第3の命令/第3の内部変数に、該第3の命令/第3の内部変数のいずれかを、また、前記第2の命令/第2の内部変数を夫々第4の命令/第4の内部変数に、該第4の命令/第4の内部変数のいずれかを書き換えることを指令するワイヤフォース設定処理部とを備え、前記第1の命令は、「STORE」命令、前記第2の命令は「LOAD」命令から成る接続点対して、前記第4の命令とその内部変数は、その前記オブジェクト制御プログラムが記憶されるメリエリアと異なるメモリエリアに記憶させるデバッグプログラムの先頭アドレスを内部変数とする「JUMP」命令と、前記先頭アドレスのステップでは、前記第1の内部変数を「LOAD」する命令ステップと、前記前記先頭アドレスを開始ステップとする複数の命令群からなるプログラムと、前記プログラムの演算結果を前記第1の内部変数として記憶する「SRORE」命令と、前記第1の内部変数として書き込む「LOAD」命令ステップと、
さらに、前記第2の命令の次の命令のステップ先を内部変数とする、前記オブジェクト制御プログラムに復帰させる「JUMP」命令ステップとから成るデバッグプログラムを生成し、前記デバッグプログラムを前記コントローラに送信して前記オブジェクト制御プログラムを書き換え、前記オブジェクト制御プログラムの実行中に、前記接続点に前記デバッグプログラムを挿入るようにしたことを特徴とする。
To achieve the above object, a programming device for a programmable controller diagram debugging system according to claim 4 of the present invention creates a diagram created in a ladder diagram language or a function block diagram language on a display screen. A programming device of a diagram debugging system comprising a programming device of a programmable controller for creating an object control program based on a diagram and the programmable controller for loading and executing the object control program, wherein the programming device is the diagram To the connection point connecting the symbols of the diagram displayed on the display screen, the connection / disconnection on one input side of the connection point. / First instruction / first internal variable for specifying a connection destination / connection / non-connection on the other output side of the connection point / second instruction / second internal variable for specifying the connection destination A control program edit processing unit for creating the object control program to be generated; and the third instruction / third internal variable for the first instruction / first internal variable, respectively, and the third instruction / third internal variable. Any one of the internal variables, the second instruction / second internal variable is replaced with a fourth instruction / fourth internal variable, and any of the fourth instruction / fourth internal variable is rewritten. A wire force setting processing unit for instructing the connection, and the first instruction is a “STORE” instruction, and the second instruction is a “LOAD” instruction. A variable is a memory that stores the object control program. A “JUMP” instruction that uses a start address of a debug program stored in a memory area different from the rear as an internal variable, an instruction step that “LOADs” the first internal variable in the step of the start address, and the start address A program composed of a plurality of instruction groups starting from the above, a “STORE” instruction for storing the operation result of the program as the first internal variable, and a “LOAD” instruction step for writing as the first internal variable;
Further, a debug program including a “JUMP” instruction step for returning to the object control program, in which the step destination of the instruction next to the second instruction is an internal variable, is generated, and the debug program is transmitted to the controller. The object control program is rewritten, and the debug program is inserted into the connection point during execution of the object control program.

本発明の請求項5の係るプログラマブルコントローラのダイアグラムのプログラミング装置のプログラムは、ラダーダイアグラム言語、ファンクションブロックダイアグラム言語で作成されるダイアグラムを表示画面上で作成し、該ダイアグラムに基づくオブジェクト制御プログラムを作成するプログラマブルコントローラのプログラミング装置と、前記オブジェクト制御プログラムをローディングして実行する前記プログラマブルコントローラとから成るダイアグラムのデバックシステムのプログラムであって、前記プログラミング装置は、前記ダイアグラムを生成し、前記表示画面上に表示された前記ダイアグラムのシンボル間を結ぶ接続点に対して、前記接続点の一方の入力側の接続・非接続/接続先を指定する第1の命令/第1の内部変数と、該接続点の他方の出力側の接続・非接続/接続先を指定する第2の命令/第2の内部変数とを生成する前記制御プログラムを作成する制御プログラム編集機能と、前記第1の命令/第1の内部変数を夫々第3の命令/第3の内部変数に、該第3の命令/第3の内部変数のいずれかを、また、前記第2の命令/第2の内部変数を夫々第4の命令/第4の内部変数に、該第4の命令/第4の内部変数のいずれかを書き換えることを指令するワイヤフォース設定処理機能とを備え、前記第1の命令は、「STORE」命令、前記第2の命令は「LOAD」命令から成る接続点対して、前記コントローラの前記オブジェクト制御プログラムが記憶されるメモリエリアと異なるメモリエリアに記憶させるデバッグプログラムの先頭アドレスを第3の内部変数とする前記第3の「JUMP」命令ステップと、
さらに、前記前記先頭アドレスを開始ステップとする複数の命令群からなるプログラムステップと、前記プログラムの演算結果を前記第1の内部変数として記憶する「SRORE」命令ステップと、前記オブジェクト制御プログラムの第2の命令のステップ先を内部変数とする「JUMP」命令ステップと、さらに、前記演算結果を第2の内部変数として書き込む前記第2「LOAD」命令ステップとから成るデバッグプログラムであることを特徴とする。
A program of a programmable controller diagram programming apparatus according to claim 5 of the present invention creates a diagram created in a ladder diagram language or a function block diagram language on a display screen, and creates an object control program based on the diagram. A program of a diagram debugging system comprising a programming device of a programmable controller and the programmable controller for loading and executing the object control program, wherein the programming device generates the diagram and displays it on the display screen A first instruction / first internal for designating connection / disconnection / connection destination of one input side of the connection point with respect to the connection point connecting the symbols in the diagram A control program editing function for creating the control program for generating a variable and a second instruction / second internal variable for designating a connection / disconnection / connection destination on the other output side of the connection point; 1 instruction / first internal variable as a third instruction / third internal variable, respectively, any of the third instruction / third internal variable, and the second instruction / second internal variable. A wire force setting processing function for instructing to rewrite any of the fourth instruction / fourth internal variable to a fourth instruction / fourth internal variable, respectively, and the first instruction Is the start address of the debug program to be stored in a memory area different from the memory area in which the object control program of the controller is stored, for the connection point consisting of the “STORE” instruction and the second instruction being the “LOAD” instruction. Said third "JUMP" instruction step of the internal variable of 3,
Furthermore, a program step comprising a plurality of instruction groups starting from the head address, a “SORE” instruction step for storing the calculation result of the program as the first internal variable, and a second step of the object control program A debug program comprising a “JUMP” instruction step having an internal variable as a step destination of the instruction and a second “LOAD” instruction step for writing the operation result as a second internal variable. .

本発明の請求項6の係るプログラマブルコントローラのダイアグラムのプログラミング装置のプログラムは、ラダーダイアグラム言語、ファンクションブロックダイアグラム言語で作成されるダイアグラムを表示画面上で作成し、該ダイアグラムに基づくオブジェクト制御プログラムを作成するプログラマブルコントローラのプログラミング装置と、前記オブジェクト制御プログラムをローディングして実行する前記プログラマブルコントローラとから成るダイアグラムのデバックシステムのプログラムであって、前記プログラミング装置は、前記ダイアグラムを生成し、前記表示画面上に表示された前記ダイアグラムのシンボル間を結ぶ接続点に対して、前記接続点の一方の入力側の接続・非接続/接続先を指定する第1の命令/第1の内部変数と、該接続点の他方の出力側の接続・非接続/接続先を指定する第2の命令/第2の内部変数とを生成する前記制御プログラムを作成する制御プログラム編集機能と、前記第1の命令/第1の内部変数を夫々第3の命令/第3の内部変数に、該第3の命令/第3の内部変数のいずれかを、また、前記第2の命令/第2の内部変数を夫々第4の命令/第4の内部変数に、該第4の命令/第4の内部変数のいずれかを書き換えることを指令するワイヤフォース設定処理機能とを備え、前記第1の命令は、「STORE」命令、前記第2の命令は「LOAD」命令から成る接続点対して、前記第4の命令とその内部変数は、その前記オブジェクト制御プログラムが記憶されるメリエリアと異なるメモリエリアに記憶させるデバッグプログラムの先頭アドレスを内部変数とする「JUMP」命令と、前記先頭アドレスのステップでは、前記第1の内部変数を「LOAD」する命令ステップと、前記前記先頭アドレスを開始ステップとする複数の命令群からなるプログラムと、前記プログラムの演算結果を前記第1の内部変数として記憶する「SRORE」命令と、前記第1の内部変数として書き込む「LOAD」命令ステップと、さらに、前記第2の命令の次の命令のステップ先を内部変数とする、前記オブジェクト制御プログラムに復帰させる「JUMP」命令ステップとから成るデバッグプログラムであることを特徴とする。   A program of a programmable controller diagram programming apparatus according to claim 6 of the present invention creates a diagram created in a ladder diagram language or a function block diagram language on a display screen, and creates an object control program based on the diagram. A program of a diagram debugging system comprising a programming device of a programmable controller and the programmable controller for loading and executing the object control program, wherein the programming device generates the diagram and displays it on the display screen A first instruction / first internal for designating connection / disconnection / connection destination of one input side of the connection point with respect to the connection point connecting the symbols in the diagram A control program editing function for creating the control program for generating a variable and a second instruction / second internal variable for designating a connection / disconnection / connection destination on the other output side of the connection point; 1 instruction / first internal variable as a third instruction / third internal variable, respectively, any of the third instruction / third internal variable, and the second instruction / second internal variable. A wire force setting processing function for instructing to rewrite any of the fourth instruction / fourth internal variable to a fourth instruction / fourth internal variable, respectively, and the first instruction Is connected to a connection point consisting of a "STORE" instruction and the second instruction is a "LOAD" instruction. The fourth instruction and its internal variables are stored in a memory area different from the memory area in which the object control program is stored. Debug program to be memorized The “JUMP” instruction having a start address as an internal variable, and the step of the start address include an instruction step of “LOAD” the first internal variable, and a plurality of instruction groups having the start address as a start step. A program, a “STRORE” instruction for storing the operation result of the program as the first internal variable, a “LOAD” instruction step for writing as the first internal variable, and an instruction next to the second instruction It is a debug program comprising a “JUMP” instruction step for returning to the object control program, wherein the step destination is an internal variable.

本発明によれば、ラダーダイアグラム言語、ファンクションブロックダイアグラム言語で作成されるダイアグラムを表示画面上に表示して作成し、該ダイアグラムに基づくオブジェクト制御プログラムを作成するプログラマブルコントローラのダイアグラムのデバッグシステムにおいて、その接続点に複数の命令数(ステップ数)で構成するデバッグプログラムを挿入する場合に、簡単にデバッグプログラムを挿入したり元のプログラムに復元したりすることができるプログラマブルコントローラのダイアグラムのデバッグシステム、及びそのプログラミング装置及びそのプログラムを提供することが出来る。   According to the present invention, a programmable controller diagram debugging system for creating an object control program based on a diagram created on a display screen by creating a diagram created in a ladder diagram language or a function block diagram language. A debug system for a programmable controller diagram that can easily insert a debug program or restore the original program when a debug program composed of a plurality of instructions (number of steps) is inserted at a connection point; and The programming device and the program can be provided.

以下図を参照して説明する。   This will be described below with reference to the drawings.

以下、本発明による実施例1について図1乃至図9を参照して説明する。図1は、PLCのダイアグラムのデバッグシステムの構成を示すブロック図である。   A first embodiment according to the present invention will be described below with reference to FIGS. FIG. 1 is a block diagram showing a configuration of a PLC diagram debugging system.

プログラミング装置1は、このプログラミング装置1で作成したダイアグラムに基づくオブジェクト制御プログラムを、制御対象を制御するプログラマブルコントローラ(以後、PLCと言う)2にダウンロードして使用される。   The programming device 1 is used by downloading an object control program based on a diagram created by the programming device 1 to a programmable controller (hereinafter referred to as PLC) 2 that controls a control target.

ここで、ダイアグラムとは、国際電気標準会議による国際規格IEC61131−3で規定されているラダーダイアグラム言語(LD)、及びファンクションダイアグラム言語(FBD)を使用して作成された回路図をダイアグラムと称す。   Here, the diagram refers to a circuit diagram created using a ladder diagram language (LD) and a function diagram language (FBD) defined in the international standard IEC61131-3 by the International Electrotechnical Commission.

プログラミング装置1の構成は、ダイアグラムを作成し、さらに、ダイアグラムのシンボル間を結ぶ接続点に対して、この接続点の一方の入力側と他方の出力側の、夫々の接続・非接続/その接続先を指定する命令/内部変数を生成し、ダイアグラムに基づくオブジェクト制御プログラムを作成するとともに、作成したオブジェクト制御プログラムをコントローラ2にダウンロードする演算処理部11と、ダイアグラムを作成するソース制御プログラム12a1、デバッグプログラム12a2を記憶するソースファイル部12a及びこのソースファイルのオブジェクト制御プログラムファイル部12bを記憶する記憶部12と、ダイアグラムとダイアログボックスなどの操作画面とを表示させる表示部13と、ダイアグラム及びオブジェクト制御プログラムを作成するための各種の入力操作をするための入力部14、及びオブジェクト制御プログラムをPLC2へ送信するための通信インタフェース15とから成る。   The configuration of the programming device 1 is to create a diagram and connect / disconnect / connect each of the connection points connecting the symbols of the diagram to one input side and the other output side of the connection point. An instruction / internal variable for designating a destination is generated, an object control program based on a diagram is created, an arithmetic processing unit 11 for downloading the created object control program to the controller 2, a source control program 12a1 for creating a diagram, and debugging A source file unit 12a for storing the program 12a2, a storage unit 12 for storing the object control program file unit 12b of the source file, a display unit 13 for displaying a diagram and an operation screen such as a dialog box, a diagram and an object Input unit 14 for various input operations to create a control program, and a communication interface 15. for sending an object control program to PLC2.

PLC2は、プログラミング装置1から送信されたオブジェクト制御プログラムを受信する通信インタフェース25と、受信したオブジェクト制御プログラムを記憶させるメモリ部22と、このオブジェクト制御プログラムを実行する演算処理部21と、演算処理部21の指令で制御対象との間の入出力信号を処理する入出力部23とから成る。   The PLC 2 includes a communication interface 25 that receives the object control program transmitted from the programming device 1, a memory unit 22 that stores the received object control program, an arithmetic processing unit 21 that executes the object control program, and an arithmetic processing unit. And an input / output unit 23 that processes input / output signals to / from the controlled object in accordance with 21 commands.

さらに、メモリ部22は、オブジェクト制御プログラムをデータメモリとコードメモリとに記憶する。そして、オブジェクト制御プログラムのメモリエリアと、予め想定されるデバッグプログラムのメモリエリアとを記憶可能な容量としておく。   Further, the memory unit 22 stores the object control program in a data memory and a code memory. Then, the memory area of the object control program and the memory area of the debug program assumed in advance are set as a capacity that can be stored.

演算処理部21は、通信インタフェース15を介して送信されたオブジェクト制御プログラムをデータメモリとコードメモリとに分けて記憶させるためのプログラムロードサーバ部と、このオブジェクト制御プログラムを実行するプログラム実行処理部とを備える。   The arithmetic processing unit 21 includes a program load server unit for storing the object control program transmitted via the communication interface 15 separately in a data memory and a code memory, a program execution processing unit for executing the object control program, Is provided.

次に、プログラミング装置1の各部の構成を説明する。プログラミング装置1は、例えば、パーソナルコンピュータで構成可能なものであって、演算処理部11は、図示しないCPU及び主メモリを含むCPU部から成り、ダイアグラムを作成するためのソース制御プログラム及びダイアグラムに基づくオブジェクト制御プログラムを生成するためのプログラムコンパイラと、作成したオブジェクト制御プログラムをコントローラ2にダウンロードするプログラムロードクライアント部とを備える制御プログラム編集処理部11aと、本発明による接続点の設定処理をするワイヤフォース設定処理部11bとから成る。   Next, the configuration of each part of the programming device 1 will be described. The programming device 1 can be configured by, for example, a personal computer, and the arithmetic processing unit 11 includes a CPU unit including a CPU and a main memory (not shown), and is based on a source control program and a diagram for creating a diagram. A control program editing processing unit 11a including a program compiler for generating an object control program, and a program load client unit for downloading the created object control program to the controller 2, and a wire force for performing connection point setting processing according to the present invention And a setting processing unit 11b.

また、記憶部12は、ハードディスクドライブ装置などから成り、作成されたソース制御プログラム12a1、ダイアグラムのシンボル12a2、デバッグ用のソースデバッグプログラム12a3から成るソースファイル部12aと、オブジェクト制御プログラムを記憶したオブジェクトファイル部12bとを記憶しておく。   The storage unit 12 includes a hard disk drive device and the like. The source file unit 12a including the created source control program 12a1, the diagram symbol 12a2, and the debugging source debug program 12a3, and an object file storing the object control program The unit 12b is stored.

詳細には、制御プログラム編集処理部11aのプログラムコンパイラ11a1は、作成されたソースファイル部からプログラムを抽出して、ダイアグラムを生成し、さらに、表示画面上に表示されるダイアグラムのシンボル間を結ぶ接続点に対して、該接続点の一方の入力側の接続・非接続/接続先を指定する第1の命令/第1の内部変数と、該接続点の他方の出力側の接続・非接続/その接続先を指定する第2の命令/第2の内部変数とを生成するオブジェクト制御プログラムを作成する。   Specifically, the program compiler 11a1 of the control program editing processing unit 11a extracts a program from the generated source file unit, generates a diagram, and further connects the symbols of the diagram displayed on the display screen. A first command / first internal variable for designating a connection / non-connection / connection destination on one input side of the connection point, and a connection / non-connection / on / off / on the other output side of the connection point An object control program for generating a second instruction / second internal variable for designating the connection destination is created.

そして、制御プログラム編集処理部11aのプログラムロードクライアント部11a2は、生成されたオブジェクト制御プログラムを、通信インタフェース15を介してコントローラ2にダウンロードする。   Then, the program load client unit 11a2 of the control program editing processing unit 11a downloads the generated object control program to the controller 2 via the communication interface 15.

そして、ワイヤフォース設定処理部11bは、該第1の命令/第1の内部変数を夫々第3の命令/第3の内部変数に、第3の命令/第3の内部変数のいずれかを、また、該第2の命令/第2の内部変数を夫々第4の命令/第4の内部変数に、第4の命令/第4の内部変数のいずれかを書き換えることを指令する。   Then, the wire force setting processing unit 11b converts the first instruction / first internal variable into the third instruction / third internal variable, and any of the third instruction / third internal variable, In addition, the second instruction / second internal variable is instructed to be replaced with a fourth instruction / fourth internal variable, respectively, and any of the fourth instruction / fourth internal variable is rewritten.

即ち、演算処理部11は、作成したダイアグラム及び変更したダイアグラム対して、そのダイアグラムの分岐点を含む接続点の入力側及び出力側の接続・非接続を指令する命令と、その該接続先の内部変数の値を設定する機能とを備え、任意の接続点間を切断する機能と該接続点からパワーフロー下流側に対して、その内部変数の値を設定する機能を備える。   That is, the arithmetic processing unit 11 instructs the created diagram and the modified diagram to connect / disconnect the connection point including the branch point of the diagram on the input side and the output side, and the connection destination. A function for setting the value of the variable, a function for cutting between any connection points, and a function for setting the value of the internal variable from the connection point to the downstream side of the power flow.

ここで、内部変数とは、表示部13の画面に表示されない変数を言い、表示される変数は単に変数と称す。   Here, the internal variable means a variable that is not displayed on the screen of the display unit 13, and the displayed variable is simply called a variable.

また、ワイヤフォース設定処理部11bは、稼動中のコントローラ2の指令に対して、第3の命令/第3の内部変数、第4の命令/第4の内部変数のみを書き換えることで、変更したダイアグラムでのデバッグの実行をPLC2に対して指令する。   Further, the wire force setting processing unit 11b is changed by rewriting only the third command / third internal variable and the fourth command / fourth internal variable in response to the command of the controller 2 in operation. Commands the PLC 2 to execute debugging on the diagram.

次に、このように構成されたプログラミング装置1の接続点の処理動作を図2乃至図7で説明する。   Next, the processing operation of the connection point of the programming device 1 configured as described above will be described with reference to FIGS.

図2は、プログラミング装置1で作成されたダイアグラムの1例で、例えば、Aは、接点の変数Aで、そのシンボルを「||」で示す。同様に、変数Bは、コイルの変数でそのシンボルを「( )」で示す。夫々のシンボルの下部に示す数値は、後述するオブジェクト制御プログラムでのステップ番号を示す。   FIG. 2 is an example of a diagram created by the programming device 1. For example, A is a variable A of a contact and its symbol is indicated by “||”. Similarly, the variable B is a variable of the coil and its symbol is indicated by “()”. The numerical value shown at the bottom of each symbol indicates a step number in an object control program described later.

また、変数Aの接点と変数Bのコイルとのシンボル間の接続点は、操作画面に表示されない内部変数を(t1)で示す。この接続点の内部変数(t1)は、変数Aの接点と変数Bのコイルとの接続点であると同時に、ダイアグラム下方向の接続点の内部変数(t2)との間の結線にも接続される分岐点と成っている。   Further, the connection point between the symbol of the contact of the variable A and the coil of the variable B indicates an internal variable not displayed on the operation screen by (t1). The internal variable (t1) at this connection point is a connection point between the contact point of the variable A and the coil of the variable B, and is also connected to the connection between the internal variable (t2) at the connection point in the downward direction of the diagram. This is a branching point.

次に、図3は図2に示すダイアグラムのソース制御プログラムで、左欄は、ステップ番号を示し、各ステップに対応する命令語を次欄に、またその変数名を右覧に示す。図3に示すように、ダイアグラムの接続点に対応する変数(t0)乃至(t9)は、何れも、命令語はアセンブラ言語では、「LOAD」及び「STORE」で定義され、夫々の内部変数が2ステップの命令後で与えられる。   Next, FIG. 3 shows the source control program of the diagram shown in FIG. 2. The left column shows the step number, the instruction word corresponding to each step is shown in the next column, and the variable name is shown in the right view. As shown in FIG. 3, each of the variables (t0) to (t9) corresponding to the connection points of the diagram is defined by “LOAD” and “STORE” in the assembler language. Given after a two-step instruction.

この接続点の変数設定は、ダイアグラムを作成する過程で生成することも可能であるし、ダイアグラムを作成後、接続点をカーソルで指定し、このカーソル位置をクリックして設定しても良いし、接続点を指定して一括して「LOAD」及び「STORE」で定義するようにしても良い。   The variable setting of this connection point can be generated in the process of creating the diagram, or after creating the diagram, you can specify the connection point with the cursor and click this cursor position to set it. A connection point may be specified and defined as “LOAD” and “STORE” collectively.

接続点は、通常、シンボルのように入出力端を接続する箇所を接続点とするが、本発明によれば、例えば、内部変数(t4)と内部変数(t5)との間や内部変数(t5)と内部変数(t6)との間の接続線のように、接続点間にシンボルを持たない単なる結線の両端もシンボルと見なして接続点を設定することが可能である。   Usually, the connection point is a connection point where the input / output terminals are connected as in the case of a symbol. According to the present invention, for example, the connection between the internal variable (t4) and the internal variable (t5) Like the connection line between t5) and the internal variable (t6), it is possible to set the connection point by regarding both ends of a simple connection having no symbol between the connection points as symbols.

図3には、これらの接続点の内部変数(t0)乃至(t9)を、ダイアグラム上では、いずれも表示されない接続点として設定した場合を図示している。   FIG. 3 illustrates a case where the internal variables (t0) to (t9) of these connection points are set as connection points that are not displayed on the diagram.

次に、このようにして接続点を設定したダイアグラムの接続点間を切断する場合のワイヤフォース設定処理の動作について、図4及び図5を参照して説明する。   Next, the operation of the wire force setting process in the case where the connection points of the diagram in which the connection points are set as described above is cut will be described with reference to FIGS.

図4に示すように、例えば、結線に×印で示した箇所を切断し、内部変数(t5)と内部変数(t6)との間を切り離して、ファンクションブロック「Fun」とコイルFとから成る下流方向の回路のデバッグを行なおうとする場合について説明する。   As shown in FIG. 4, for example, a portion indicated by a cross mark in the connection is cut, and the internal variable (t5) and the internal variable (t6) are separated, and the function block “Fun” and the coil F are included. A case where the downstream circuit is to be debugged will be described.

この切断は、図5に示すように、プログラムではステップ19に示す「STORE」命令を「NOP」命令(無処理)とすることで、パワーフロー入力側の切り離しが行なわれる。   As shown in FIG. 5, in the program, the “STORE” instruction shown in step 19 is changed to a “NOP” instruction (no processing) in the program so that the power flow input side is disconnected.

次に、図6及び図7を参照して、接続点間の切断、及び切断点下流の接続点の内部線数の値を設定する動作について説明する。図6は、その動作フロー図で、図7は表示部13に表示されるワイヤフォース設定を操作するダイアログボックスD13の例を示す。   Next, with reference to FIG.6 and FIG.7, the operation | movement which sets the value of the internal line number of the cutting | disconnection between connection points and the connection point downstream of a cut point is demonstrated. FIG. 6 is an operation flow diagram thereof, and FIG. 7 shows an example of a dialog box D13 for operating the wire force setting displayed on the display unit 13.

先ず、予め作成されたダイアグラムを表示させ、その結線の切断箇所、例えば、内部変数(t5)内部変数(t6)の間の結線上にカーソルを移動する(s1)。そして、その位置で画面をクリックしてダイアログボックスD13を表示させる(s2)。   First, a diagram created in advance is displayed, and the cursor is moved to the connection cut point, for example, the connection between the internal variable (t5) and the internal variable (t6) (s1). Then, the screen is clicked at that position to display the dialog box D13 (s2).

次に、ダイアログボックスD13aのアイコン「×」をクリックする。すると、演算処理部11の主メモリ上のソース制御プログラムに「NOP」が書き込まれ、表示画面に、図4に示すような×印が表示される(s3)。   Next, the icon “x” in the dialog box D13a is clicked. Then, “NOP” is written in the source control program on the main memory of the arithmetic processing unit 11, and an x mark as shown in FIG. 4 is displayed on the display screen (s3).

さらに、ここで「ON」または「OFF」アイコンD13aをクリックする。すると、ステップ20で書き換えた内部変数、例えば、(tX)の値が、切断箇所の下流方向の接続点の値として演算処理部11の主メモリに書き込まれる。   Further, an “ON” or “OFF” icon D13a is clicked here. Then, the internal variable rewritten in step 20, for example, the value of (tX) is written to the main memory of the arithmetic processing unit 11 as the value of the connection point in the downstream direction of the cut portion.

次に、「書き込み(W)」アイコンD13dをクリックすると、PLC2のオブジェクト制御プログラムの書き換えが指令される。(s5)。   Next, when the “write (W)” icon D13d is clicked, rewriting of the object control program of the PLC 2 is instructed. (S5).

このようにして変更されたダイアグラムの結線の切断と、及び切断された下流のパワーフローの基点となる接続点の内部変数を設定し、ダイアグラムの下流方向の回路のデバックを、稼動中のオブジェクト制御プログラムを変更して実施することが出来る。   In this way, the connection of the diagram that has been changed and the internal variable of the connection point that becomes the base point of the downstream power flow that has been disconnected are set, and the debugging of the circuit in the downstream direction of the diagram can be controlled. The program can be changed and implemented.

そして、切断箇所とその内部変数の値は、「解除(R)」アイコンD13bをクリックして解除し、再設定することも出来る。   The cutting location and the value of the internal variable can be canceled and reset by clicking the “Release (R)” icon D13b.

さらに、ダイアグラムに複数の切断箇所と設定した内部変数の値は、「全て解除(A)」アイコンD13cをクリックし、さらに「書き込み(w)」アイコンD12dクリックすることで、変更した接続点のステップのみの情報を書き換えることで、デバッグ前の状態に確実に復帰させることが可能となる。   Further, the values of the internal variables set in the diagram as a plurality of cut points can be changed by clicking the “Release All (A)” icon D13c and then clicking the “Write (w)” icon D12d. By rewriting only the information, it is possible to reliably return to the state before debugging.

変更した部分のオブジェクト制御プログラムをダウンロードしない場合には、「ファイルフ保存(s)」アイコンD13eをクリックして、記憶部12に書き込みすることも出来る。   When the object control program of the changed part is not downloaded, the “Save File (s)” icon D13e can be clicked and written to the storage unit 12.

このようにすることで、変更したいダイアグラムの接続点について、その接続・非接続の指令と接続の場合の接続先(内部変数)とを、稼動中のコントローラのオブジェクト制御プログラムに対して書き換えることで、分岐点があるダイアグラムにおいても、デバッグしたい回路を他の回路と切り離して容易にデバッグすることが可能となる。   By doing this, for the connection point of the diagram to be changed, the connection / disconnection command and the connection destination (internal variable) in the case of connection can be rewritten to the object control program of the running controller. Even in a diagram having a branching point, it is possible to easily debug a circuit to be debugged by separating it from other circuits.

また、変更前のプログラムの状態に容易に、一括して復元することも可能となる。   Further, it is possible to easily restore the program state before the change in a batch.

次に、図8、及び図9を参照して、接続点(t7)に複数の命令数(ステップ数)で構成するデバッグプログラムを挿入する場合について説明する。   Next, with reference to FIG. 8 and FIG. 9, a case will be described in which a debug program composed of a plurality of instructions (number of steps) is inserted at the connection point (t7).

上述したワイヤフォース設定処理部11は、結線の切断とその接続点の内部変数設定機能を備えていたが、本実施例では、さらに、接続点(t7)からパターン信号などを発生させ、接続点以降の回路をシミュレートする機能を備えたデバッグプログラムを挿入する場合について説明する。   The wire force setting processing unit 11 described above has the function of cutting the connection and setting the internal variable of the connection point. However, in the present embodiment, a pattern signal or the like is further generated from the connection point (t7) to connect the connection point. A case where a debug program having a function of simulating the subsequent circuits is inserted will be described.

図8は、変数C1乃至変数C5からなる接点、変数C6及び変数C7からなるコイル、ファンクションブロックダイアグラム(以後、FBDと言う)「AND(論理和)」、FBD「+(加算器)」、FBD「−(減算器)」、及びFBD「>(比較器)」から構成されるダイアグラムを示す。   FIG. 8 shows a contact made up of variables C1 to C5, a coil made up of variables C6 and C7, a function block diagram (hereinafter referred to as FBD) “AND (logical sum)”, FBD “+ (adder)”, FBD. A diagram composed of "-(subtractor)" and FBD "> (comparator)" is shown.

さらに、接続点t7の一方のFBD「+(加算器)」の出力を切断して、他方の接続点t7の後方のFBD「>(比較器)」の入力端に、SG「(信号発生回路)」で生成される信号を印加するデバッグのためのダイアグラムを示す。   Further, the output of one FBD “+ (adder)” at the connection point t7 is disconnected, and the SG “(signal generation circuit) is connected to the input terminal of the FBD“> (comparator) ”behind the other connection point t7. ) "Shows a diagram for debugging to apply the signal generated.

図9(a)は、このダイアグラムに基づき作成した変更前のソース制御プログラム、また、図9(b)は、変更後のソース制御プログラムを示す。   FIG. 9A shows a source control program before change created based on this diagram, and FIG. 9B shows a source control program after change.

変更されたソース制御プログラムは、接続点の一方のステップ31の「SRORE」命令を「JUMP」命令、その内部変数(50)として移動先のステップNo.とする。   The changed source control program uses the “SUMP” command in one step 31 of the connection point as the “JUMP” command and its internal variable (50) as the destination step number. And

そして、オブジェクト制御プログラムと異なるエリアに記憶されるステップ50〜ステップ50+i−2の複数の命令からなるデバッグプログラムを挿入し、その結果をステップ50+i−1で内部変数(t7)として記憶する「STORE」命令とする。 Then, a debug program composed of a plurality of instructions of Step 50 to Step 50 + i−2 stored in a different area from the object control program is inserted, and the result is stored as an internal variable (t7) in Step 50 + i−1. STORE "instruction.

そして、ステップ50+iで、変更前のソース制御プログラムの他方の接続点となるステップ32の「LOAD」命令に替えて、その内部変数を32とする「JUMP」命令とし、デバッグプログラムを変更前のソース制御プログラムのステップ32に復帰させる。 In step 50 + i , instead of the “LOAD” instruction in step 32 which is the other connection point of the source control program before the change, a “JUMP” instruction with its internal variable set to 32 is used, and the debug program is changed to the original program before the change. Return to step 32 of the source control program.

したがって、従来のオン/オフ信号によるデバッグだけでなく、自由度のある信号を印加することが出来るので、精度の良いデバッグが可能となる。   Therefore, not only the conventional on / off signal debugging, but also a signal having a degree of freedom can be applied, so that accurate debugging is possible.

このように、接続点の一方に「JUMP」命令を挿入し、変更前の制御プログラムと異なるメモリエリアに記憶されたデバッグプログラムを実行し、また、「JUMP」命令を挿入して他方の変更前の制御プログラムの接続点に復帰させることで、変更前の制御プログラムの1ステップのみの変更で、簡単にデバッグプログラムを挿入したり元のプログラムに復元したりすることができるプログラマブルコントローラのダイアグラムのデバッグシステム、及びそのプログラミング装置及びそのプログラムを提供することが出来る。   In this way, the “JUMP” instruction is inserted into one of the connection points, the debug program stored in a different memory area from the control program before the change is executed, and the “JUMP” instruction is inserted into the other before the change. Debugging of programmable controller diagrams that can be easily inserted and restored to the original program by changing only one step of the control program before the change by returning to the connection point of the control program A system, a programming device thereof, and a program thereof can be provided.

次に、図10及び図11を参照して、本発明の実施例2のPLCのダイアグラムのデバッグシステムについて説明する。この実施例2の各部について、図1の実施例1のPLCのデバッグシステムの各部と同一部分は、同一符号で示しその説明を省略する。   Next, with reference to FIG.10 and FIG.11, the debugging system of the PLC diagram of Example 2 of this invention is demonstrated. The same parts of the second embodiment as those of the PLC debugging system of the first embodiment shown in FIG.

この実施例2が、実施例1と異なる点は、実施例1のワイヤフォース設定処理部11は、接続点の一方の接続先を切断して新たなデバッグプログラムを挿入し、そのデバッグプログラムの出力を他方の接続点に接続するようにしたが、本実施例3では、接続点の一方の接続先を新たなデバッグプログラムの入力端に接続して他方の接続先への接続を切断し、挿入したデバッグプログラムその出力を他方の接続点に接続するようにした点が異なる。   The difference between the second embodiment and the first embodiment is that the wire force setting processing unit 11 of the first embodiment disconnects one connection destination of the connection points, inserts a new debug program, and outputs the debug program. Is connected to the other connection point, but in the third embodiment, one connection destination of the connection point is connected to the input end of a new debug program, and the connection to the other connection destination is disconnected and inserted. The difference is that the output of the debug program is connected to the other connection point.

図10のダイアグラムを参照して説明する。図10は、変数C1乃至変数C5からなる接点、変数C6及び変数C7からなるコイル、ファンクションブロックダイアグラム(以後、FBDと言う)「AND(論理和)」、FBD「+(加算器)」、FBD「−(減算器)」、及びFBD「>(比較器)」から構成されるダイアグラムの接続点t7の一方のFBD「+(加算器)」の出力をCFun(補正関数発生回路)の入力端に接続して、他方の接続点t7の後方のFBD「>(比較器)」の入力端への接続線を切断し、CFun(補正関数発生回路)の出力端をこのFBD「>(比較器)」の入力端に接続した変更されたダイアグラムを示す。   This will be described with reference to the diagram of FIG. FIG. 10 shows a contact made up of variables C1 to C5, a coil made up of variables C6 and C7, a function block diagram (hereinafter referred to as FBD) “AND (logical sum)”, FBD “+ (adder)”, FBD. The output of one FBD “+ (adder)” at the connection point t7 of the diagram composed of “− (subtractor)” and FBD “> (comparator)” is input to the CFun (correction function generator). Is connected to the input terminal of the FBD “> (comparator)” behind the other connection point t7, and the output terminal of the CFun (correction function generating circuit) is connected to the FBD “> (comparator). ) "Shows the modified diagram connected to the input.

図11(a)は、このダイアグラムに基づき作成した変更前のソース制御プログラムで、図11(b)は変更後のソース制御プログラムを示す。   FIG. 11A shows a source control program before change created based on this diagram, and FIG. 11B shows a source control program after change.

変更されたソース制御プログラムの接続点の一方のステップ32の「LOAD」命令を、「JUMP」命令、その内部変数(50)とする。   The “LOAD” instruction at one of the connection points of the changed source control program is set as the “JUMP” instruction and its internal variable (50).

そして、変更前のソース制御プログラムと異なるメモリエリアに記憶されたステップ50〜ステップ50+j−3の複数の命令からなるデバッグプログラムを挿入し、その結果をステップ50+j−2で内部変数(t7)として記憶する「STORE」命令とする。 Then, a debug program composed of a plurality of instructions of Step 50 to Step 50 + j-3 stored in a memory area different from that of the source control program before the change is inserted, and the result is an internal variable (t7) in Step 50 + j-2. As a “STORE” instruction.

そして、ステップ50+j−1で、変更前のソース制御プログラムの内部変数(t7)を読み込む「LOAD」命令とし、さらに、ステップ50+jで変更前のオブジェクト制御プログラムのステップ32に復帰させる「JUMP」命令として変更後のオブジェクト制御プログラムを書き込み、実行する。 Then, in step 50 + j−1 , the “LOAD” instruction is read to read the internal variable (t7) of the source control program before the change, and “JUMP” is returned to step 32 in the object control program before the change in step 50 + j. Write and execute the changed object control program as an instruction.

したがって、ダイアグラム間の信号を精度良く補正したデバッグが可能となる。   Therefore, debugging can be performed by accurately correcting signals between diagrams.

このように、接続点の一方に「JUMP」命令を挿入し、異なるメモリエリアのデバッグプログラムを実行し、「JUMP」命令を挿入して他方の接続点に復帰させることで、変更前の制御プログラムの1ステップのみの変更でダイアグラムの接続点に簡単にデバッグプログラムを挿入したり変更前のプログラムに復元したりすることができるプログラマブルコントローラのダイアグラムのデバッグシステム、及びそのプログラミング装置及びそのプログラムを提供することが出来る。   Thus, the control program before the change is inserted by inserting the “JUMP” instruction at one of the connection points, executing the debug program in a different memory area, and inserting the “JUMP” instruction to return to the other connection point. A debugging system for a programmable controller diagram that can easily insert a debugging program at a connection point of the diagram or restore the program before the change by changing only one step of the program, and a programming apparatus and program thereof I can do it.

本発明は、上述した実施例に何ら限定されるものではなく、ダイアグラムの回路の切断や変更を、変更前の接続点の1ステップのみを変更する、「JUMP」命令を挿入し、一方の接続点に複数以上の命令で構成されるプログラムの入力端を接続し、挿入したプログラムの出力端を変更前の他方の接続点に復帰させるようにするものであれば良く、本発明の主旨を逸脱しない範囲で種々のプログラムを変形して挿入することができる。   The present invention is not limited to the above-described embodiment, and the “JUMP” instruction for changing only one step of the connection point before the change is inserted and the circuit of the diagram is changed or changed. Any point may be used as long as it connects the input end of the program composed of a plurality of instructions to the point and returns the output end of the inserted program to the other connection point before the change. Various programs can be modified and inserted as long as they are not.

本発明のプログラマブルコントローラのデバッグシステムの構成図。The block diagram of the debug system of the programmable controller of this invention. 本発明のダイアグラムの例。2 is an example diagram of the present invention. 本発明の接続点の内部変数の設定例。The example of a setting of the internal variable of the connection point of this invention. 本発明の接続点間の切断の設定例。The example of a setting of the cutting | disconnection between the connection points of this invention. 本発明の接続点間の切断時の内部変数の設定例。The example of a setting of the internal variable at the time of the cutting | disconnection between the connection points of this invention. 本発明の接続点間の切断時の内部変数の設定操作のフロー図。The flowchart of the setting operation of the internal variable at the time of the cutting | disconnection between the connection points of this invention. 本発明の接続点間のワイヤフォース設定のダイアログボックスの例。The example of the dialog box of the wire force setting between the connection points of this invention. 本発明の実施例1のダイアグラムの例。The example of the diagram of Example 1 of this invention. 本発明の実施例1のダイアグラムのデバッグプログラムの例。The example of the debug program of the diagram of Example 1 of this invention. 本発明の実施例2のダイアグラムの例。The example of the diagram of Example 2 of this invention. 本発明の実施例2のダイアグラムのデバッグプログラムの例。The example of the debug program of the diagram of Example 2 of this invention.

符号の説明Explanation of symbols

1 プログラミング装置
2 プログラマブルコントローラ(PLC)
11 演算処理部
11a 制御プログラム編集処理部
11a1 プログラムコンパイラ
11a2 プログラムロードクライアント部
11b ワイヤフォース設定処理部
12 記憶部
12a ソースファイル部
12a1 ソース制御プログラム
12a2 ソースデバッグプログラム
12b オブジェクト制御プログラムファイル部
13 表示部
14 入力部
14a キーボード
14b マウス
15 通信インタフェース
21 演算処理部
22 メモリ部
23 入出力部
25 通信インタフェース
1 Programming device 2 Programmable controller (PLC)
11 arithmetic processing unit 11a control program editing processing unit 11a1 program compiler 11a2 program load client unit 11b wire force setting processing unit 12 storage unit 12a source file unit 12a1 source control program 12a2 source debug program 12b object control program file unit 13 display unit 14 input Unit 14a keyboard 14b mouse 15 communication interface 21 arithmetic processing unit 22 memory unit 23 input / output unit 25 communication interface

Claims (6)

ラダーダイアグラム言語、ファンクションブロックダイアグラム言語で作成されるダイアグラムを表示画面上で作成し、該ダイアグラムに基づくオブジェクト制御プログラムを作成するプログラマブルコントローラのプログラミング装置と、前記オブジェクト制御プログラムをローディングして実行する前記プログラマブルコントローラとから成るダイアグラムのデバックシステムであって、
前記ダイアグラムを生成し、前記表示画面上に表示された前記ダイアグラムのシンボル間を結ぶ接続点に対して、前記接続点の一方の入力側の接続・非接続/接続先を指定する第1の命令・第1の内部変数と、該接続点の他方の出力側の接続・非接続/その接続先を指定する第2の命令/第2の内部変数とを生成する前記オブジェクト制御プログラムを作成する制御プログラム編集処理部と、
前記第1の命令/第1の内部変数を夫々第3の命令/第3の内部変数に、該第3の命令/第3の内部変数のいずれかを、また、前記第2の命令/第2の内部変数を夫々第4の命令/第4の内部変数に、該第4の命令/第4の内部変数のいずれかを書き換えることを指令するワイヤフォース設定処理部と
を備えるプログラミング装置において、
前記第1の命令は、「STORE」命令、前記第2の命令は「LOAD」命令から成る接続点対して、前記コントローラの前記オブジェクト制御プログラムが記憶されるメモリエリアと異なるメモリエリアに記憶させるデバッグプログラムの先頭アドレスを第3の内部変数とする前記第3の「JUMP」命令ステップと、
さらに、前記前記先頭アドレスを開始ステップとする複数の命令群からなるプログラムステップと、
前記プログラムの演算結果を前記第1の内部変数として記憶する「SRORE」命令ステップと、
前記オブジェクト制御プログラムの第2の命令のステップ先を内部変数とする「JUMP」命令ステップと、
さらに、前記演算結果を第2の内部変数として書き込む前記第2「LOAD」命令ステップと
から成るデバッグプログラムを生成し、
前記デバッグプログラムを前記コントローラに送信して前記オブジェクト制御プログラムを書き換え、前記オブジェクト制御プログラムの実行中に、前記接続点に前記デバッグプログラムを挿入して、ダイアグラムのデバッグが行なえるようにしたことを特徴とするプログラマブルコントローラのダイアグラムのデバッグシステム。
A programming device of a programmable controller that creates a diagram created in a ladder diagram language or a function block diagram language on a display screen and creates an object control program based on the diagram, and the programmable that loads and executes the object control program A diagram debugging system consisting of a controller,
A first instruction for generating the diagram and designating connection / disconnection / connection destination on one input side of the connection point with respect to the connection point connecting the symbols of the diagram displayed on the display screen Control for creating the object control program for generating the first internal variable and the second instruction / second internal variable for specifying the connection / disconnection / the connection destination on the other output side of the connection point A program editing processing unit;
The first instruction / first internal variable is changed to a third instruction / third internal variable, the third instruction / third internal variable is changed to the second instruction / second internal variable, respectively. In a programming device comprising: a wire force setting processing unit that instructs to rewrite any one of the fourth instruction / fourth internal variable to a fourth instruction / fourth internal variable, respectively, of the two internal variables;
The debugging in which the first instruction is stored in a memory area different from the memory area in which the object control program of the controller is stored for the connection point including the “STORE” instruction and the second instruction including the “LOAD” instruction. The third “JUMP” instruction step with the top address of the program as a third internal variable;
Furthermore, a program step comprising a plurality of instruction groups starting from the head address,
A “SORE” instruction step for storing the calculation result of the program as the first internal variable;
A “JUMP” instruction step in which the step destination of the second instruction of the object control program is an internal variable;
And generating a debug program comprising the second “LOAD” instruction step for writing the operation result as a second internal variable.
The debug program is transmitted to the controller to rewrite the object control program, and the debug program is inserted into the connection point during execution of the object control program so that the diagram can be debugged. And a programmable controller diagram debug system.
ラダーダイアグラム言語、ファンクションブロックダイアグラム言語で作成されるダイアグラムを表示画面上で作成し、該ダイアグラムに基づくオブジェクト制御プログラムを作成するプログラマブルコントローラのプログラミング装置と、前記オブジェクト制御プログラムをローディングして実行する前記プログラマブルコントローラとから成るダイアグラムのデバックシステムであって、
前記ダイアグラムを生成し、前記表示画面上に表示された前記ダイアグラムのシンボル間を結ぶ接続点に対して、前記接続点の一方の入力側の接続・非接続/接続先を指定する第1の命令/第1の内部変数と、該接続点の他方の出力側の接続・非接続/その接続先を指定する第2の命令/第2の内部変数とを生成する前記オブジェクト制御プログラムを作成する制御プログラム編集処理部と、
前記第1の命令/第1の内部変数を夫々第3の命令/第3の内部変数に、該第3の命令/第3の内部変数のいずれかを、また、前記第2の命令/第2の内部変数を夫々第4の命令/第4の内部変数に、該第4の命令/第4の内部変数のいずれかを書き換えることを指令するワイヤフォース設定処理部と
を備えるプログラミング装置において、
前記第1の命令は、「STORE」命令、前記第2の命令は「LOAD」命令から成る接続点対して、前記第4の命令とその内部変数は、その前記オブジェクト制御プログラムが記憶されるメリエリアと異なるメモリエリアに記憶させるデバッグプログラムの先頭アドレスを内部変数とする「JUMP」命令と、
前記先頭アドレスのステップでは、前記第1の内部変数を「LOAD」する命令ステップと、
前記前記先頭アドレスを開始ステップとする複数の命令群からなるプログラムと、
前記プログラムの演算結果を前記第1の内部変数として記憶する「SRORE」命令と、前記第1の内部変数として書き込む「LOAD」命令ステップと、
さらに、前記第2の命令の次の命令のステップ先を内部変数とする、前記オブジェクト制御プログラムに復帰させる「JUMP」命令ステップと
から成るデバッグプログラムを生成し、
前記デバッグプログラムを前記コントローラに送信して前記オブジェクト制御プログラムを書き換え、前記オブジェクト制御プログラムの実行中に、前記接続点に前記デバッグプログラムを挿入して、ダイアグラムのデバッグが行なえるようにしたことを特徴とするプログラマブルコントローラのダイアグラムのデバッグシステム。
A programming device of a programmable controller that creates a diagram created in a ladder diagram language or a function block diagram language on a display screen and creates an object control program based on the diagram, and the programmable that loads and executes the object control program A diagram debugging system consisting of a controller,
A first instruction for generating the diagram and designating connection / disconnection / connection destination on one input side of the connection point with respect to the connection point connecting the symbols of the diagram displayed on the display screen Control for creating the object control program for generating the first internal variable and the second instruction / second internal variable for specifying the connection destination / non-connection on the other output side of the connection point / the connection destination A program editing processing unit;
The first instruction / first internal variable is changed to a third instruction / third internal variable, the third instruction / third internal variable is changed to the second instruction / second internal variable, respectively. In a programming device comprising: a wire force setting processing unit that instructs to rewrite any one of the fourth instruction / fourth internal variable to a fourth instruction / fourth internal variable, respectively, of the two internal variables;
The first instruction is a “STORE” instruction, the second instruction is a connection point consisting of a “LOAD” instruction, and the fourth instruction and its internal variable are a memory area in which the object control program is stored. A "JUMP" instruction having an internal variable as the start address of the debug program stored in a different memory area,
In the step of the head address, an instruction step of “LOAD” the first internal variable;
A program consisting of a plurality of instruction groups starting from the head address;
A “SORE” instruction for storing the operation result of the program as the first internal variable; and a “LOAD” instruction step for writing as the first internal variable;
Further, a debug program comprising a “JUMP” instruction step for returning to the object control program, wherein the step destination of the instruction next to the second instruction is an internal variable is generated,
The debug program is transmitted to the controller to rewrite the object control program, and the debug program is inserted into the connection point during execution of the object control program so that the diagram can be debugged. And a programmable controller diagram debug system.
ラダーダイアグラム言語、ファンクションブロックダイアグラム言語で作成されるダイアグラムを表示画面上で作成し、該ダイアグラムに基づくオブジェクト制御プログラムを作成するプログラマブルコントローラのプログラミング装置と、前記オブジェクト制御プログラムをローディングして実行する前記プログラマブルコントローラとから成るダイアグラムのデバックシステムのプログラミング装置であって、
前記プログラミング装置は、前記ダイアグラムを生成し、前記表示画面上に表示された前記ダイアグラムのシンボル間を結ぶ接続点に対して、前記接続点の一方の入力側の接続・非接続/接続先を指定する第1の命令/第1の内部変数と、該接続点の他方の出力側の接続・非接続/その接続先を指定する第2の命令/第2の内部変数とを生成する前記オブジェクト制御プログラムを作成する制御プログラム編集処理部と、
前記第1の命令/第1の内部変数を夫々第3の命令/第3の内部変数に、該第3の命令/第3の内部変数のいずれかを、また、前記第2の命令/第2の内部変数を夫々第4の命令/第4の内部変数に、該第4の命令/第4の内部変数のいずれかを書き換えることを指令するワイヤフォース設定処理部と
を備え、
前記第1の命令は、「STORE」命令、前記第2の命令は「LOAD」命令から成る接続点対して、前記コントローラの前記オブジェクト制御プログラムが記憶されるメモリエリアと異なるメモリエリアに記憶させるデバッグプログラムの先頭アドレスを第3の内部変数とする前記第3の「JUMP」命令ステップと、
さらに、前記前記先頭アドレスを開始ステップとする複数の命令群からなるプログラムステップと、
前記プログラムの演算結果を前記第1の内部変数として記憶する「SRORE」命令ステップと、
前記オブジェクト制御プログラムの第2の命令のステップ先を内部変数とする「JUMP」命令ステップと、
さらに、前記演算結果を第2の内部変数として書き込む前記第2「LOAD」命令ステップと
から成るデバッグプログラムを生成し、
前記デバッグプログラムを前記コントローラに送信して前記オブジェクト制御プログラムを書き換え、前記オブジェクト制御プログラムの実行中に、前記接続点に前記デバッグプログラムを挿入するようにしたことを特徴とするプログラマブルコントローラのダイアグラムのデバッグシステムのプログラミング装置。
A programming device of a programmable controller that creates a diagram created in a ladder diagram language or a function block diagram language on a display screen and creates an object control program based on the diagram, and the programmable that loads and executes the object control program A diagram debugging system programming device comprising a controller,
The programming device generates the diagram and designates connection / disconnection / connection destination on one input side of the connection point with respect to a connection point connecting the symbols of the diagram displayed on the display screen. The object control for generating a first command / first internal variable to be generated and a second command / second internal variable for designating a connection / disconnection / connection destination on the other output side of the connection point A control program editing processing unit for creating a program;
The first instruction / first internal variable is changed to a third instruction / third internal variable, the third instruction / third internal variable is changed to the second instruction / second internal variable, respectively. A wire force setting processing unit for instructing to rewrite any one of the fourth instruction / fourth internal variable into a fourth instruction / fourth internal variable, respectively, of the two internal variables,
The debugging in which the first instruction is stored in a memory area different from the memory area in which the object control program of the controller is stored for the connection point including the “STORE” instruction and the second instruction including the “LOAD” instruction. The third “JUMP” instruction step with the top address of the program as a third internal variable;
Furthermore, a program step comprising a plurality of instruction groups starting from the head address,
A “SORE” instruction step for storing the calculation result of the program as the first internal variable;
A “JUMP” instruction step in which the step destination of the second instruction of the object control program is an internal variable;
And generating a debug program comprising the second “LOAD” instruction step for writing the operation result as a second internal variable.
Debugging a diagram of a programmable controller, wherein the debug program is transmitted to the controller to rewrite the object control program, and the debug program is inserted at the connection point during execution of the object control program System programming device.
ラダーダイアグラム言語、ファンクションブロックダイアグラム言語で作成されるダイアグラムを表示画面上で作成し、該ダイアグラムに基づくオブジェクト制御プログラムを作成するプログラマブルコントローラのプログラミング装置と、前記オブジェクト制御プログラムをローディングして実行する前記プログラマブルコントローラとから成るダイアグラムのデバックシステムのプログラミング装置であって、
前記プログラミング装置は、前記ダイアグラムを生成し、前記表示画面上に表示された前記ダイアグラムのシンボル間を結ぶ接続点に対して、前記接続点の一方の入力側の接続・非接続/接続先を指定する第1の命令/第1の内部変数と、該接続点の他方の出力側の接続・非接続/その接続先を指定する第2の命令/第2の内部変数とを生成する前記オブジェクト制御プログラムを作成する制御プログラム編集処理部と、
前記第1の命令/第1の内部変数を夫々第3の命令/第3の内部変数に、該第3の命令/第3の内部変数のいずれかを、また、前記第2の命令/第2の内部変数を夫々第4の命令/第4の内部変数に、該第4の命令/第4の内部変数のいずれかを書き換えることを指令するワイヤフォース設定処理部と
を備え、
前記第1の命令は、「STORE」命令、前記第2の命令は「LOAD」命令から成る接続点対して、前記第4の命令とその内部変数は、その前記オブジェクト制御プログラムが記憶されるメリエリアと異なるメモリエリアに記憶させるデバッグプログラムの先頭アドレスを内部変数とする「JUMP」命令と、
前記先頭アドレスのステップでは、前記第1の内部変数を「LOAD」する命令ステップと、
前記前記先頭アドレスを開始ステップとする複数の命令群からなるプログラムと、
前記プログラムの演算結果を前記第1の内部変数として記憶する「SRORE」命令と、前記第1の内部変数として書き込む「LOAD」命令ステップと、
さらに、前記第2の命令の次の命令のステップ先を内部変数とする、前記オブジェクト制御プログラムに復帰させる「JUMP」命令ステップと
から成るデバッグプログラムを生成し、
前記デバッグプログラムを前記コントローラに送信して前記オブジェクト制御プログラムを書き換え、前記オブジェクト制御プログラムの実行中に、前記接続点に前記デバッグプログラムを挿入るようにしたことを特徴とするプログラマブルコントローラのダイアグラムのデバッグシステムのプログラミング装置。
A programming device of a programmable controller that creates a diagram created in a ladder diagram language or a function block diagram language on a display screen and creates an object control program based on the diagram, and the programmable that loads and executes the object control program A diagram debugging system programming device comprising a controller,
The programming device generates the diagram and designates connection / disconnection / connection destination on one input side of the connection point with respect to a connection point connecting the symbols of the diagram displayed on the display screen. The object control for generating a first command / first internal variable to be generated and a second command / second internal variable for designating a connection / disconnection / connection destination on the other output side of the connection point A control program editing processing unit for creating a program;
The first instruction / first internal variable is changed to a third instruction / third internal variable, the third instruction / third internal variable is changed to the second instruction / second internal variable, respectively. A wire force setting processing unit for instructing to rewrite any one of the fourth instruction / fourth internal variable into a fourth instruction / fourth internal variable, respectively, of the two internal variables,
The first instruction is a “STORE” instruction, the second instruction is a connection point consisting of a “LOAD” instruction, and the fourth instruction and its internal variable are a memory area in which the object control program is stored. A "JUMP" instruction having an internal variable as the start address of the debug program stored in a different memory area,
In the step of the head address, an instruction step of “LOAD” the first internal variable;
A program consisting of a plurality of instruction groups starting from the head address;
A “SORE” instruction for storing the operation result of the program as the first internal variable; and a “LOAD” instruction step for writing as the first internal variable;
Further, a debug program comprising a “JUMP” instruction step for returning to the object control program, wherein the step destination of the instruction next to the second instruction is an internal variable is generated,
Debugging a diagram of a programmable controller, wherein the debug program is transmitted to the controller to rewrite the object control program, and the debug program is inserted at the connection point during execution of the object control program System programming device.
ラダーダイアグラム言語、ファンクションブロックダイアグラム言語で作成されるダイアグラムを表示画面上で作成し、該ダイアグラムに基づくオブジェクト制御プログラムを作成するプログラマブルコントローラのプログラミング装置と、前記オブジェクト制御プログラムをローディングして実行する前記プログラマブルコントローラとから成るダイアグラムのデバックシステムのプログラムであって、
前記プログラミング装置は、前記ダイアグラムを生成し、前記表示画面上に表示された前記ダイアグラムのシンボル間を結ぶ接続点に対して、前記接続点の一方の入力側の接続・非接続/接続先を指定する第1の命令/第1の内部変数と、該接続点の他方の出力側の接続・非接続/接続先を指定する第2の命令/第2の内部変数とを生成する前記制御プログラムを作成する制御プログラム編集機能と、
前記第1の命令/第1の内部変数を夫々第3の命令/第3の内部変数に、該第3の命令/第3の内部変数のいずれかを、また、前記第2の命令/第2の内部変数を夫々第4の命令/第4の内部変数に、該第4の命令/第4の内部変数のいずれかを書き換えることを指令するワイヤフォース設定処理機能と
を備え、
前記第1の命令は、「STORE」命令、前記第2の命令は「LOAD」命令から成る接続点対して、前記コントローラの前記オブジェクト制御プログラムが記憶されるメモリエリアと異なるメモリエリアに記憶させるデバッグプログラムの先頭アドレスを第3の内部変数とする前記第3の「JUMP」命令ステップと、
さらに、前記前記先頭アドレスを開始ステップとする複数の命令群からなるプログラムステップと、
前記プログラムの演算結果を前記第1の内部変数として記憶する「SRORE」命令ステップと、
前記オブジェクト制御プログラムの第2の命令のステップ先を内部変数とする「JUMP」命令ステップと、
さらに、前記演算結果を第2の内部変数として書き込む前記第2「LOAD」命令ステップと
から成るデバッグプログラムであることを特徴とするプログラマブルコントローラのダイアグラムのデバッグシステムのプログラム。
A programming device of a programmable controller that creates a diagram created in a ladder diagram language or a function block diagram language on a display screen and creates an object control program based on the diagram, and the programmable that loads and executes the object control program A diagram debugging system program comprising a controller,
The programming device generates the diagram and designates connection / disconnection / connection destination on one input side of the connection point with respect to a connection point connecting the symbols of the diagram displayed on the display screen. The control program for generating a first command / first internal variable to be executed and a second command / second internal variable for designating a connection / disconnection / connection destination on the other output side of the connection point A control program editing function to be created;
The first instruction / first internal variable is changed to a third instruction / third internal variable, the third instruction / third internal variable is changed to the second instruction / second internal variable, respectively. A wire force setting processing function for instructing to rewrite any one of the fourth instruction / fourth internal variable to a fourth instruction / fourth internal variable, respectively,
The debugging in which the first instruction is stored in a memory area different from the memory area in which the object control program of the controller is stored for the connection point including the “STORE” instruction and the second instruction including the “LOAD” instruction. The third “JUMP” instruction step with the top address of the program as a third internal variable;
Furthermore, a program step comprising a plurality of instruction groups starting from the head address,
A “SORE” instruction step for storing the calculation result of the program as the first internal variable;
A “JUMP” instruction step in which the step destination of the second instruction of the object control program is an internal variable;
A program for a debug system of a diagram of a programmable controller, further comprising a debug program comprising the second “LOAD” instruction step for writing the operation result as a second internal variable.
ラダーダイアグラム言語、ファンクションブロックダイアグラム言語で作成されるダイアグラムを表示画面上で作成し、該ダイアグラムに基づくオブジェクト制御プログラムを作成するプログラマブルコントローラのプログラミング装置と、前記オブジェクト制御プログラムをローディングして実行する前記プログラマブルコントローラとから成るダイアグラムのデバックシステムのプログラムであって、
前記プログラミング装置は、前記ダイアグラムを生成し、前記表示画面上に表示された前記ダイアグラムのシンボル間を結ぶ接続点に対して、前記接続点の一方の入力側の接続・非接続/接続先を指定する第1の命令/第1の内部変数と、該接続点の他方の出力側の接続・非接続/接続先を指定する第2の命令/第2の内部変数とを生成する前記制御プログラムを作成する制御プログラム編集機能と、
前記第1の命令/第1の内部変数を夫々第3の命令/第3の内部変数に、該第3の命令/第3の内部変数のいずれかを、また、前記第2の命令/第2の内部変数を夫々第4の命令/第4の内部変数に、該第4の命令/第4の内部変数のいずれかを書き換えることを指令するワイヤフォース設定処理機能と
を備え、
前記第1の命令は、「STORE」命令、前記第2の命令は「LOAD」命令から成る接続点対して、前記第4の命令とその内部変数は、その前記オブジェクト制御プログラムが記憶されるメリエリアと異なるメモリエリアに記憶させるデバッグプログラムの先頭アドレスを内部変数とする「JUMP」命令と、
前記先頭アドレスのステップでは、前記第1の内部変数を「LOAD」する命令ステップと、
前記前記先頭アドレスを開始ステップとする複数の命令群からなるプログラムと、
前記プログラムの演算結果を前記第1の内部変数として記憶する「SRORE」命令と、前記第1の内部変数として書き込む「LOAD」命令ステップと、
さらに、前記第2の命令の次の命令のステップ先を内部変数とする、前記オブジェクト制御プログラムに復帰させる「JUMP」命令ステップと
から成るデバッグプログラムであることを特徴とするプログラマブルコントローラのダイアグラムのデバッグシステムのプログラム。
A programming device of a programmable controller that creates a diagram created in a ladder diagram language or a function block diagram language on a display screen and creates an object control program based on the diagram, and the programmable that loads and executes the object control program A diagram debugging system program comprising a controller,
The programming device generates the diagram and designates connection / disconnection / connection destination on one input side of the connection point with respect to a connection point connecting the symbols of the diagram displayed on the display screen. The control program for generating a first command / first internal variable to be executed and a second command / second internal variable for designating a connection / disconnection / connection destination on the other output side of the connection point Control program editing function to be created,
The first instruction / first internal variable is changed to a third instruction / third internal variable, the third instruction / third internal variable is changed to the second instruction / second internal variable, respectively. A wire force setting processing function for instructing to rewrite any one of the fourth instruction / fourth internal variable to a fourth instruction / fourth internal variable, respectively,
The first instruction is a “STORE” instruction, the second instruction is a connection point consisting of a “LOAD” instruction, and the fourth instruction and its internal variable are a memory area in which the object control program is stored. A "JUMP" instruction having an internal variable as the start address of the debug program stored in a different memory area,
In the step of the head address, an instruction step of “LOAD” the first internal variable;
A program consisting of a plurality of instruction groups starting from the head address;
A “SORE” instruction for storing the operation result of the program as the first internal variable; and a “LOAD” instruction step for writing as the first internal variable;
Debugging a diagram of a programmable controller, further comprising a “JUMP” instruction step for returning to the object control program, wherein the step destination of the instruction next to the second instruction is an internal variable System program.
JP2008294783A 2008-11-18 2008-11-18 Programmable controller diagram debugging system, programming device and program thereof Expired - Fee Related JP5155829B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008294783A JP5155829B2 (en) 2008-11-18 2008-11-18 Programmable controller diagram debugging system, programming device and program thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008294783A JP5155829B2 (en) 2008-11-18 2008-11-18 Programmable controller diagram debugging system, programming device and program thereof

Publications (2)

Publication Number Publication Date
JP2010122824A true JP2010122824A (en) 2010-06-03
JP5155829B2 JP5155829B2 (en) 2013-03-06

Family

ID=42324123

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008294783A Expired - Fee Related JP5155829B2 (en) 2008-11-18 2008-11-18 Programmable controller diagram debugging system, programming device and program thereof

Country Status (1)

Country Link
JP (1) JP5155829B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013038541A1 (en) * 2011-09-15 2013-03-21 三菱電機株式会社 Ladder program creation device
JP2014229025A (en) * 2013-05-21 2014-12-08 株式会社東芝 Method of creating application program for plant control system
CN104238493A (en) * 2013-06-24 2014-12-24 横河电机株式会社 Process control apparatus and system and updating method therefor
JP2016200872A (en) * 2015-04-07 2016-12-01 株式会社東芝 Control program creation device, control program debug method
CN107357243A (en) * 2017-06-26 2017-11-17 苏州健雄职业技术学院 Sewage disposal system based on high in the clouds data monitoring
JP2018180786A (en) * 2017-04-07 2018-11-15 株式会社Ihi Logic generator
CN112506129A (en) * 2020-12-15 2021-03-16 北京东土科技股份有限公司 Method, device and equipment for converting ladder diagram and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007249828A (en) * 2006-03-17 2007-09-27 Fuji Electric Fa Components & Systems Co Ltd Programmable controller system, debut method of programmable controller, programming supporting program, and debut control program of programmable controller
JP2008276381A (en) * 2007-04-26 2008-11-13 Toshiba Corp Debug system for diagram of programmable controller, programming device therefor and program therefor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007249828A (en) * 2006-03-17 2007-09-27 Fuji Electric Fa Components & Systems Co Ltd Programmable controller system, debut method of programmable controller, programming supporting program, and debut control program of programmable controller
JP2008276381A (en) * 2007-04-26 2008-11-13 Toshiba Corp Debug system for diagram of programmable controller, programming device therefor and program therefor

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013038541A1 (en) * 2011-09-15 2013-03-21 三菱電機株式会社 Ladder program creation device
CN103797454A (en) * 2011-09-15 2014-05-14 三菱电机株式会社 Ladder program creation device
US9098289B2 (en) 2011-09-15 2015-08-04 Mitsubishi Electric Corporation Ladder program creation device
JP2014229025A (en) * 2013-05-21 2014-12-08 株式会社東芝 Method of creating application program for plant control system
CN104238493A (en) * 2013-06-24 2014-12-24 横河电机株式会社 Process control apparatus and system and updating method therefor
JP2015005258A (en) * 2013-06-24 2015-01-08 横河電機株式会社 Process control device and system; and update method therefor
CN104238493B (en) * 2013-06-24 2017-04-12 横河电机株式会社 Process control apparatus and system and updating method therefor
JP2016200872A (en) * 2015-04-07 2016-12-01 株式会社東芝 Control program creation device, control program debug method
JP2018180786A (en) * 2017-04-07 2018-11-15 株式会社Ihi Logic generator
CN107357243A (en) * 2017-06-26 2017-11-17 苏州健雄职业技术学院 Sewage disposal system based on high in the clouds data monitoring
CN112506129A (en) * 2020-12-15 2021-03-16 北京东土科技股份有限公司 Method, device and equipment for converting ladder diagram and storage medium

Also Published As

Publication number Publication date
JP5155829B2 (en) 2013-03-06

Similar Documents

Publication Publication Date Title
JP5155829B2 (en) Programmable controller diagram debugging system, programming device and program thereof
CN101669077B (en) Debug system for diagram of orogrammable controller, its programming device and its debugging method
JP5039428B2 (en) Programmable controller and PLC system
US6931288B1 (en) User interface and system for creating function block diagrams
JP6096414B2 (en) Method, apparatus and program for testing batch configurations
TWI564685B (en) Enginnering tool, program editing device and program editing system
JP6375666B2 (en) Programming tools for PLC and PLC
JP2008276381A (en) Debug system for diagram of programmable controller, programming device therefor and program therefor
JP6891838B2 (en) Development support equipment, development support methods, and development support programs
JP5777837B2 (en) Program development support apparatus and method
JP2008059421A (en) Sequence program editing support device
JP2006330866A (en) Programmable logic controller
JP5086296B2 (en) Programmable controller control program creation method and programmable controller control program creation system
JP2008282343A (en) Debugging system for diagram of programmable controller, programming device therefor, and program therefor
JP2008165324A (en) Program creation support device
JP5253324B2 (en) Sequence control device, program creation device, and interpreter execution engine
WO2022190417A1 (en) Development support device, development support method, and development support program
JP2007079651A (en) Programming device for programmable controller
JP4919091B2 (en) PLC system
JP4529312B2 (en) Program specification creation device, creation method, and sequence control system
JP2006163657A (en) Playback simulator
JP5832368B2 (en) Engineering equipment
KR100423742B1 (en) Exclusive control system by sequential function chart
JP7208441B1 (en) FA control test support program, FA control test support device, FA control test support method and FA control test support system
JP2005326909A (en) Plant engineering system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110218

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20111125

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20111205

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120530

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120605

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120806

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121207

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151214

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 5155829

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151214

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees