JP2978260B2 - Programming method and apparatus for programmable controller - Google Patents

Programming method and apparatus for programmable controller

Info

Publication number
JP2978260B2
JP2978260B2 JP3050891A JP5089191A JP2978260B2 JP 2978260 B2 JP2978260 B2 JP 2978260B2 JP 3050891 A JP3050891 A JP 3050891A JP 5089191 A JP5089191 A JP 5089191A JP 2978260 B2 JP2978260 B2 JP 2978260B2
Authority
JP
Japan
Prior art keywords
circuit
contact
coil
target
pointer
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.)
Expired - Lifetime
Application number
JP3050891A
Other languages
Japanese (ja)
Other versions
JPH04286001A (en
Inventor
英男 安保
克弘 藤原
厚 伊東
裕之 木村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP3050891A priority Critical patent/JP2978260B2/en
Publication of JPH04286001A publication Critical patent/JPH04286001A/en
Application granted granted Critical
Publication of JP2978260B2 publication Critical patent/JP2978260B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、プログラマブルコント
ローラのプログラミング方法及びその装置に係り、特に
作成されたラダー回路の修正やデバッグを行うの際に好
適とされたプログラミング方法及びその装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for programming a programmable controller and, more particularly, to a method and an apparatus suitable for correcting and debugging a ladder circuit created.

【0002】[0002]

【従来の技術】従前のラダー回路図を修正して新たなラ
ダー回路図をプログラミングするときや、プログラミン
グ中のラダー回路図にバグが発生したとき、動作するは
ずのコイルが動作しなかったり、動作しないはずのコイ
ルが動作したりする事態が生じる。斯かる場合、そのコ
イルに影響を及ぼす接点をしらみつぶしに調べる必要が
ある。このデバッグ作業は、従来は、紙にプリントアウ
トしたラダー回路をオペレータが調べることで行ってい
た。しかし、近年のプログラマブルコントローラのプロ
グラミングは、プログラミング装置の表示画面上で行う
ようになってきており、上述したデバッグ作業も画面上
で容易且つ迅速に行いたいという要望が強くなってい
る。そこで、オペレータがモニタしたいコイルの番号を
入力したとき、この入力番号を使用しているユーザ命令
を検索した上、これをアドレスの若い順にモニタ表示す
るようになってきている。
2. Description of the Related Art When a new ladder circuit diagram is programmed by modifying a previous ladder circuit diagram, or when a bug occurs in a ladder circuit diagram during programming, a coil that should operate does not operate or operates. A situation in which the coil that should not be operated may occur. In such a case, it is necessary to grind the contacts affecting the coil. Conventionally, this debugging work has been performed by an operator examining a ladder circuit printed out on paper. However, in recent years, programming of a programmable controller has been performed on a display screen of a programming device, and there has been a strong demand that the above-described debugging work be performed easily and quickly on the screen. Therefore, when an operator inputs the number of a coil to be monitored, a user command using the input number is searched, and the user commands are displayed on the monitor in ascending order of address.

【0003】尚、従来技術に関連するものとしては、例
えば特開昭58−19910号が挙げられる。
[0003] Japanese Patent Application Laid-Open No. 58-19910, for example, relates to the prior art.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上述し
た従来技術では、ユーザ命令だけがアドレス順に表示さ
れるだけなので、1つの異常信号の条件を遡って検索す
る際に、モニタしたいラダー回路を予め調べておく必要
があり、迅速に、且つ容易にデバッグ作業を行えるもの
ではない。本発明の目的は、プログラマブルコントロー
ラのラダー回路のシステムデバッグ等を容易に、且つ迅
速に行い得るプログラミング方法及びその装置を供する
にある。
However, in the above-mentioned prior art, only user commands are displayed in the order of addresses. Therefore, when searching for the condition of one abnormal signal retroactively, the ladder circuit to be monitored is checked in advance. It is not possible to perform debugging work quickly and easily. SUMMARY OF THE INVENTION It is an object of the present invention to provide a programming method and a programming device capable of easily and quickly performing system debugging of a ladder circuit of a programmable controller and the like.

【0005】[0005]

【課題を解決するための手段】上記目的は、プログラマ
ブルコントローラのラダー回路図を修正するに際して、
ユーザプログラムメモリからラダー回路データがワーク
メモリ上に転送記憶されている状態で、検索対象コイル
が指定されたとき、ワークメモリ上で検索対象コイルに
関連する回路が検索される際での検索開始位置を示す検
索開始ポインタ、現在検索の対象となっている接点の含
まれる回路が結果格納メモリ上の如何なる位置にあるか
を示す対象回路ポインタ、検索対象となっている接点が
対象回路ポインタの指している回路の如何なる位置にあ
るかを示す対象接点ポインタ、および結果格納メモリ上
に記憶された回路の数をカウントする結果回路数カウン
タ各々のカウント値が処理の進行に伴い所定に更新され
つつ、当該指定コイルが属する回路中の接点をコイルと
する回路のデータと、該コイルの動作に影響を与える接
点をコイルとする全ての回路のデータとをワークメモリ
上のラダー回路データから検索して結果格納メモリ上に
記憶の上、対象回路ポインタ≧結果回路数カウンタとな
った時点で、結果格納メモリ上に記憶されている回路の
データを可視出力することで達成される。また、装置構
成としては、ユーザプログラムとしてのラダー回路デー
タが格納されるユーザプログラムメモリと、該ユーザプ
ログラムメモリから上記ラダー回路データが転送記憶さ
れるワークメモリと、該ワークメモリ上でラダー回路中
の検証対象コイルが指定されたとき、ワークメモリ上で
検索対象コイルに関連する回路が検索される際での検索
開始位置を示す検索開始ポインタ、現在検索の対象とな
っている接点の含まれる回路が結果格納メモリ上の如何
なる位置にあるかを示す対象回路ポインタ、検索対象と
なっている接点が対象回路ポインタの指している回路の
如何なる位置にあるかを示す対象接点ポインタ、および
結果格納メモリ上に記憶された回路の数をカウントする
結果回路数カウンタ各々のカウント値が処理の進行に伴
い所定に更新されつつ、当該指定コイルが属する回路中
の接点をコイルとする回路のデータと、該コイルの動作
に影響を与える接点をコイルとする全ての回路のデータ
とをワークメモリ上のラダー回路データから検索する処
理部と、該処理部により検索された回路のデータが記憶
される結果格納メモリと、対象回路ポインタ≧結果回路
数カウンタとなった時点で、結果格納メモリ上に記憶さ
れた回路のデータが可視出力される出力部とを少なくと
も備えることで達成される。
SUMMARY OF THE INVENTION An object of the present invention is to modify a ladder circuit diagram of a programmable controller.
A search start position when a circuit related to a search target coil is searched in the work memory when a search target coil is specified in a state where ladder circuit data is transferred and stored in the work memory from the user program memory. The search start pointer indicates the position of the circuit containing the contact currently being searched, the target circuit pointer indicates the location of the circuit in the result storage memory, and the contact being searched indicates the target circuit pointer. The target contact pointer indicating what position the circuit is in, and the count value of each result circuit number counter that counts the number of circuits stored on the result storage memory, while the count value of each of the result circuit number counters is updated in a predetermined manner with the progress of the process. The data of the circuit in which the contact in the circuit to which the specified coil belongs is the coil, and the contact that affects the operation of the coil is the coil The data of all the circuits are retrieved from the ladder circuit data on the work memory and stored on the result storage memory, and are stored on the result storage memory when the target circuit pointer ≧ result circuit number counter. This is achieved by visually outputting circuit data. Further, the device configuration includes a user program memory in which ladder circuit data as a user program is stored, a work memory in which the ladder circuit data is transferred and stored from the user program memory, and a ladder circuit in the ladder circuit on the work memory. When the verification target coil is specified, the search start pointer indicating the search start position when the circuit related to the search target coil is searched in the work memory, and the circuit including the contact currently being searched are A target circuit pointer indicating the position on the result storage memory, a target contact pointer indicating the position of the search target contact in the circuit indicated by the target circuit pointer, and As a result of counting the number of stored circuits, the count value of each circuit number counter is determined as the process proceeds. The ladder circuit data on the work memory includes data of a circuit having a coil as a contact in the circuit to which the designated coil belongs and data of all circuits having a coil as a contact affecting the operation of the coil. , A result storage memory in which data of the circuit searched by the processing unit is stored, and a circuit stored in the result storage memory when the target circuit pointer ≧ the result circuit number counter. This is achieved by including at least an output unit that outputs data visually.

【0006】[0006]

【作用】動作のおかしい検証対象コイルがオペレータに
より指定されたとき、このコイルの動作に影響を及ぼす
回路部分が全て検索された上、検索された回路部分が画
面上に表示されたり、紙上にプリントアウトされるよう
にしたものである。従来は、この検索を手作業で行った
り、検索自体は装置側が行っても該当回路部分がどのよ
うな構成かは手作業で探していたので、時間が多く要さ
れていたものである。しかしながら、本発明では、斯か
る作業を装置側が自動的に行う構成としたので、オペレ
ータはデバッグ作業に必要な回路部分を直に見ることが
でき、したがって、デバッグ作業が容易に行えることと
なる。
When a coil to be verified having an incorrect operation is designated by an operator, all the circuit portions that affect the operation of the coil are searched, and the searched circuit portion is displayed on a screen or printed on paper. It is intended to be out. Conventionally, this search has been performed manually, and even if the search itself has been performed by the apparatus side, the configuration of the corresponding circuit portion has been manually searched for, so that much time has been required. However, in the present invention, such a work is configured to be automatically performed by the apparatus side, so that the operator can directly see a circuit portion necessary for the debug work, and therefore, the debug work can be easily performed.

【0007】[0007]

【実施例】以下、本発明の一実施例を図面を参照して説
明する。図4は、本発明の一実施例に係るプログラミン
グ装置を備えるプログラマブルコントローラの構成図で
ある。このプログラマブルコントローラは、図示ないし
画面表示を制御する表示装置1と、各種演算を行う処理
装置2と、制御対象との間に設ける入力回路3及び出力
回路4と、オペレータがこのプログラマブルコントロー
ラに入力指示するキーボード5と、プログラマブルコン
トローラのシステムプログラムを格納したメモリ6と、
ユーザプログラムを格納したメモリ7と、処理装置2の
ワーク用のメモリ8と、処理装置2の処理結果を格納す
るメモリ9と、これらを相互に接続するバス10とで構
成されている。斯かるプログラマブルコントローラにお
いて、ユーザプログラム中にバグがありこれを修正する
場合について以下説明する。
An embodiment of the present invention will be described below with reference to the drawings. FIG. 4 is a configuration diagram of a programmable controller including a programming device according to an embodiment of the present invention. The programmable controller includes a display device 1 for controlling a display or a screen display, a processing device 2 for performing various operations, an input circuit 3 and an output circuit 4 provided between the programmable controller and an object to be controlled. A keyboard 5, a memory 6 storing a system program of the programmable controller,
It comprises a memory 7 storing a user program, a work memory 8 of the processing device 2, a memory 9 storing processing results of the processing device 2, and a bus 10 interconnecting these. A case where such a programmable controller has a bug in a user program and corrects it will be described below.

【0008】図7は、本来設計したいシーケンス図の一
部であり、コイルYは、外部入力接点X1がオンで、且
つ内部回路接点Rがオンのとき、動作するように設計さ
れている。ここで、内部回路接点Rは、コイルRが動作
したときオンとなる接点であり、そのコイルRはまた、
外部入力接点X2,X4のうち、少なくとも何れか1つ
がオンで、且つ外部入力接点X3がオンのときに動作す
るものとする。
FIG. 7 is a part of a sequence diagram to be originally designed. The coil Y is designed to operate when the external input contact X1 is on and the internal circuit contact R is on. Here, the internal circuit contact R is a contact that is turned on when the coil R operates, and the coil R
It is assumed that the operation is performed when at least one of the external input contacts X2 and X4 is on and the external input contact X3 is on.

【0009】ここで、コイルRを含む回路部分を書き誤
って、図8に示す回路図としてしまい、外部入力接点X
4の出力の接続位置を間違ったとする。この間違った回
路では、コイルRは、外部入力接点X2及びX3が共に
オンのとき、あるいは外部入力接点X4がオンのとき動
作する。従って、コイルYの動作は設計通りとはならな
くなってくる。もし、図8に示す回路のみが一画面上に
表示されるのであれば、回路設計者はこれを見てすぐに
間違いを発見することができる。しかし、通常は、コイ
ルYに関係するコイルRがラダー回路中のどこにあるか
を調べるのは大変であり、更に、このコイルRの動作を
決める接点が別の内部回路に依存する場合には、それを
探すのがまた大変となる。ラダー回路の修正を行う場
合、回路の修正よりは、関係する部分を検索するのに時
間がかかる。本実施例は、この修正に係る回路部分を自
動的に全て検索し出力するものであり、例えば検索結果
が図8に示す回路だけの場合、この部分のみを画面に表
示するようにする。
[0009] Here, the circuit portion including the coil R is erroneously written as shown in the circuit diagram of FIG.
Assume that the connection position of the output of No. 4 is wrong. In this incorrect circuit, the coil R operates when both the external input contacts X2 and X3 are on or when the external input contact X4 is on. Therefore, the operation of the coil Y does not become as designed. If only the circuit shown in FIG. 8 is displayed on one screen, the circuit designer can find an error immediately by looking at the circuit. However, it is usually difficult to find out where the coil R related to the coil Y is located in the ladder circuit, and furthermore, when the contact that determines the operation of the coil R depends on another internal circuit, It will be hard to find it again. When correcting a ladder circuit, it takes more time to search for a related part than to correct the circuit. In the present embodiment, all the circuit portions related to the correction are automatically searched and output. For example, when the search result is only the circuit shown in FIG. 8, only this portion is displayed on the screen.

【0010】図1〜図3は、ラダー回路の修正手順を示
すフローチャートであり、先ず処理装置は、ステップ1
で、修正対象のプログラム(ラダー回路)が格納されて
いるユーザプログラムメモリの内容をワークメモリにコ
ピーし、ステップ2で、対象回路ポインタ,対象接点ポ
インタ,結果回路数カウンタをクリアし初期化する。オ
ペレータは、次のステップ3で、検証しようとする対象
コイルと、この対象コイルの動作に関連する回路の検索
条件を制限する場合には、その指定条件をキーボードか
ら入力する。そして、次にステップ4で、処理装置は検
索開始ポインタをクリアして初期化し、ステップ5で対
象コイルを含む回路の検索を始める。
FIGS. 1 to 3 are flowcharts showing a procedure for correcting a ladder circuit.
Then, the contents of the user program memory storing the program (ladder circuit) to be corrected are copied to the work memory, and in step 2, the target circuit pointer, the target contact pointer, and the result circuit number counter are cleared and initialized. In the next step 3, if the search condition of the target coil to be verified and the circuit related to the operation of the target coil is to be limited, the operator inputs the specified condition from the keyboard. Then, in step 4, the processing device clears and initializes the search start pointer, and starts searching for a circuit including the target coil in step 5.

【0011】図5は、上述した各ポインタ,カウンタの
説明図である。検索開始ポインタは、ワークメモリ上で
対象コイルに関連する回路を検索するときの検索開始位
置を示すものである。検索途中で検索を中断した場合に
は、次の検索時における開始位置つまり中断時の回路位
置を記憶しておく。対象回路ポインタは、現在検索の対
象となっている接点の含まれる回路が、結果格納メモリ
上のどこの位置にあるかを示すものであり、当該回路中
の全ての接点に対して処理が終了すると、次の回路を指
定する。対象接点ポインタは、検索対象となっている接
点が対象回路ポインタの指している回路のどこの位置に
あるかを指すものであり、その位置にある接点に対する
処理が終了すると、次の接点位置を示す。このポインタ
が、コイル位置を指定すると、処理を行わず、次の接点
位置を示すので、対象接点ポインタは常に接点位置を指
し示すことになる。
FIG. 5 is an explanatory diagram of each of the above-mentioned pointers and counters. The search start pointer indicates a search start position when searching for a circuit related to the target coil in the work memory. If the search is interrupted during the search, the start position at the time of the next search, that is, the circuit position at the time of the interruption is stored. The target circuit pointer indicates the position in the result storage memory of the circuit including the contact currently being searched, and the processing is completed for all the contacts in the circuit. Then, the next circuit is specified. The target contact pointer indicates the position of the search target contact in the circuit pointed to by the target circuit pointer, and when the processing for the contact at that position ends, the next contact position is determined. Show. When the pointer specifies the coil position, no processing is performed, and the pointer indicates the next contact position. Therefore, the target contact pointer always indicates the contact position.

【0012】結果回路数カウンタは、結果格納メモリ中
に納められた回路の数をカウントするものであり、この
カウンタの示す値と、対象回路ポインタの示す値とを比
較することで、全ての検索が終了したか否かを知ること
ができる。尚、対象回路ポインタ及び対象接点ポインタ
は、オペレータが直接指定したコイルについて処理を行
っている時には特に意味を持たないものである。
The result circuit number counter counts the number of circuits stored in the result storage memory. By comparing the value indicated by the counter with the value indicated by the target circuit pointer, all search circuits are searched. Can be determined whether or not has been completed. The target circuit pointer and the target contact pointer have no particular meaning when processing is performed on the coil directly specified by the operator.

【0013】図1に示すステップ5の検索処理の結果、
ステップ6での判定で回路有りとされた場合には、ステ
ップ7に進み、検索された回路のデータを結果格納メモ
リに格納し、結果回路数カウンタをインクリメントす
る。ステップ8では、同じ回路が再度検索されることが
ないように、結果格納メモリに格納された回路に該当す
るワークメモリ上の回路のデータを“NOP”に置き換
え、ステップ9では、検索開始ポインタの値を検索され
結果格納メモリに格納された回路の次の位置に移し、ス
テップ5に戻る。つまり、上記のステップ5,6,7,
8,9を繰り返すことにより、ユーザプログラムの最後
まで検索が行われ、同一のコイル番号がシーケンス回路
上複数の箇所に使用されていても、全ての箇所の回路が
検索される。
As a result of the search processing in step 5 shown in FIG.
If it is determined in step 6 that there is a circuit, the process proceeds to step 7 where the data of the searched circuit is stored in the result storage memory, and the result circuit number counter is incremented. In step 8, the data of the circuit on the work memory corresponding to the circuit stored in the result storage memory is replaced with "NOP" so that the same circuit is not searched again. The value is retrieved and moved to the next position of the circuit stored in the result storage memory, and the process returns to step 5. That is, steps 5, 6, 7,
By repeating steps 8 and 9, the search is performed up to the end of the user program, and even if the same coil number is used in a plurality of locations on the sequence circuit, the circuits in all locations are searched.

【0014】ユーザプログラムの最後まで検索し検索す
る回路がなくなった場合には、ステップ6での判定結果
が「回路無し」となり、図2のステップ10に進む。こ
のステップ10では、結果格納メモリ上の対象回路ポイ
ンタが示す回路中の、対象接点ポインタが示す接点のデ
ータを読み出す。ステップ11では接点の有無、つまり
対象ポインタが示す回路中の全ての処理が終わったか否
かを判定し、接点「有」の場合には、図3のステップ1
2に進む。ステップ12では、接点をコイルとする回路
の検索の必要性を判定する。この判定は、内部出力か、
ユーザの指定した検索範囲内か等の判断基準により行
う。ユーザが検索範囲を指定していない場合には、内部
回路による接点であるか、外部入力接点であるかを識別
する。外部入力接点の場合は、ステップ13に進んで、
対象接点ポインタの値をインクリメントし、図2のステ
ップ10に戻る。つまり、その接点はスキップして次の
接点の読み出しを行う。
If there is no circuit to be searched until the end of the user program, the result of the determination in step 6 is "no circuit", and the process proceeds to step 10 in FIG. In this step 10, the data of the contact point indicated by the target contact pointer in the circuit indicated by the target circuit pointer on the result storage memory is read. In step 11, it is determined whether or not there is a contact, that is, whether or not all the processes in the circuit indicated by the target pointer have been completed.
Proceed to 2. In step 12, the necessity of searching for a circuit whose contact is a coil is determined. This judgment is based on internal output or
This is performed based on a criterion such as whether the search range is within the search range specified by the user. If the user has not specified a search range, it is determined whether the contact is an internal circuit contact or an external input contact. If it is an external input contact, go to step 13
The value of the target contact pointer is incremented, and the process returns to step 10 in FIG. That is, the contact is skipped and the next contact is read.

【0015】内部回路による接点の場合には、その接点
に対応するコイルを含む回路部分の接点の状態も知らな
ければ、対象コイルの正確な検証ができない。そこで、
ステップ14に進み、この接点と同一番号が付されたコ
イルを新たに対象コイルとし、接点対象ポインタをイン
クリメントし(ステップ15)、図1のステップ4に戻
る。このステップ12以下の処理を設けているため、検
索処理結果を図6に示す様に、対象コイルをY0010
1としコイルR001が検索されたとき、該コイルに影
響を与える内部回路R011も検索することが可能とな
る。
In the case of a contact formed by an internal circuit, accurate verification of the target coil cannot be performed unless the state of the contact of the circuit portion including the coil corresponding to the contact is known. Therefore,
Proceeding to step 14, the coil assigned the same number as the contact is newly set as the target coil, the contact target pointer is incremented (step 15), and the process returns to step 4 in FIG. Since the processing after step 12 is provided, the target coil is set to Y0010 as shown in FIG.
When the value of the coil R001 is set to 1 and the coil R001 is searched, the internal circuit R011 affecting the coil can also be searched.

【0016】図1のステップ4に戻る前に、つまり、ス
テップ5に入る前にステップ15にて対象接点ポインタ
15をインクリメントしているので、対象コイルを含む
回路の検索終了後に行われる接点読み出しにおいて、自
動的に次の接点から読み出すことが可能となる。以上の
処理は、ステップ11において接点「無」と判定される
まで繰り返される。つまり、対象回路ポインタが示す回
路中の接点全ての処理が終了するまで行われる。
Before returning to step 4 in FIG. 1, that is, before step 5, the target contact pointer 15 is incremented in step 15, so that the contact reading performed after the search for the circuit including the target coil is completed. , Can be automatically read from the next contact. The above processing is repeated until it is determined in step 11 that the contact point is “absent”. In other words, the process is performed until the processing of all the contacts in the circuit indicated by the target circuit pointer is completed.

【0017】ステップ11で接点「無」と判定された場
合には、ステップ16に進み、「対象回路ポインタ≧結
果回路数カウンタ」が成立するか否かを判定する。成立
しない場合には、全ての検索は終了していないため、ス
テップ17に進み、対象回路ポインタをインクリメント
し、ステップ18で対象接点ポインタをクリアしてステ
ップ10に進む。全ての検索が終了した場合には、ステ
ップ16での判定が成立してステップ19に進み、結果
格納メモリの内容を表示し本処理を終了する。以上によ
り、検証対象コイルに関連する回路のみを検索し画面に
表示することが可能となる。尚、上記実施例では、内部
回路(コイル)に関連する接点は全て検索対象とする構
成としたが、オン状態にある接点のみを検索したり、あ
るいはオフ状態にある接点のみを検索する等、オペレー
タが検索対象接点の状態を指定して検索対象接点数を減
らし、検索処理速度の向上を図る構成とすることも可能
である。
If it is determined in step 11 that the contact point is "absent", the flow advances to step 16 to determine whether or not "target circuit pointer ≧ result circuit number counter" is satisfied. If not, all the searches have not been completed, so the process proceeds to step 17, the target circuit pointer is incremented, the target contact pointer is cleared in step 18, and the process proceeds to step 10. If all the searches have been completed, the determination at step 16 is satisfied, and the routine proceeds to step 19, where the contents of the result storage memory are displayed, and this processing ends. As described above, it is possible to retrieve only the circuit related to the coil to be verified and display it on the screen. In the above-described embodiment, all the contacts related to the internal circuit (coil) are searched. However, only the contacts in the ON state are searched, or only the contacts in the OFF state are searched. It is also possible to adopt a configuration in which the operator designates the state of the search target contacts to reduce the number of search target contacts and improve the search processing speed.

【0018】[0018]

【発明の効果】以上、説明したように、請求項1〜4に
よれば、シーケンス制御回路のラダー回路中で検証対象
を指定することで、関連する回路部分を自動的に検索し
関連する回路部分のみを可視出力するので、その可視出
力内容より直ちに回路の現象把握が可能となる。
As described above, according to the first to fourth aspects, by specifying a verification target in the ladder circuit of the sequence control circuit, a related circuit portion is automatically searched for and a related circuit part is automatically searched. Since only the portion is visually output, the phenomenon of the circuit can be immediately grasped from the content of the visible output.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施例に係るプログラミング方法の
検索手順を示すフローチャート
FIG. 1 is a flowchart showing a search procedure of a programming method according to an embodiment of the present invention.

【図2】図1に続くフローチャートFIG. 2 is a flowchart following FIG. 1;

【図3】図2に続くフローチャートFIG. 3 is a flowchart following FIG. 2;

【図4】プログラマブルコントローラの構成図FIG. 4 is a configuration diagram of a programmable controller.

【図5】ワークメモリ,結果格納メモリ上のポインタ,
カウンタの説明図
FIG. 5 shows a work memory, a pointer on a result storage memory,
Illustration of counter

【図6】検索された回路部分中に別の内部回路による接
点が含まれている場合の検索結果の表示例を示す図
FIG. 6 is a diagram showing a display example of a search result when a contact point of another internal circuit is included in the searched circuit portion;

【図7】意図した回路例を示す図FIG. 7 is a diagram showing an example of an intended circuit;

【図8】図7の回路を設計するときに結線を間違った例
を示す図である。
FIG. 8 is a diagram showing an example of incorrect connection when designing the circuit of FIG. 7;

【符号の説明】[Explanation of symbols]

1…表示装置、2…処理装置、7…ユーザプログラムメ
モリ、8…ワークメモリ、9…結果格納メモリ。
1 display device, 2 processing device, 7 user program memory, 8 work memory, 9 result storage memory.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 木村 裕之 千葉県習志野市東習志野七丁目1番1号 株式会社 日立製作所 習志野工場内 (56)参考文献 特開 昭57−60411(JP,A) (58)調査した分野(Int.Cl.6,DB名) G05D 19/04 - 19/05 ──────────────────────────────────────────────────続 き Continued from the front page (72) Inventor Hiroyuki Kimura 7-1-1, Higashi Narashino, Narashino City, Chiba Prefecture Inside the Narashino Plant of Hitachi, Ltd. (56) References ) Surveyed field (Int.Cl. 6 , DB name) G05D 19/04-19/05

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 プログラマブルコントローラのラダー回
路図を修正するプログラミング方法において、ユーザプ
ログラムメモリからラダー回路データがワークメモリ上
に転送記憶されている状態で、検索対象コイルが指定さ
れたとき、ワークメモリ上で検索対象コイルに関連する
回路が検索される際での検索開始位置を示す検索開始ポ
インタ、現在検索の対象となっている接点の含まれる回
路が結果格納メモリ上の如何なる位置にあるかを示す対
象回路ポインタ、検索対象となっている接点が対象回路
ポインタの指している回路の如何なる位置にあるかを示
す対象接点ポインタ、および結果格納メモリ上に記憶さ
れた回路の数をカウントする結果回路数カウンタ各々の
カウント値が処理の進行に伴い所定に更新されつつ、当
該指定コイルが属する回路中の接点をコイルとする回路
のデータと、該コイルの動作に影響を与える接点をコイ
ルとする全ての回路のデータとをワークメモリ上のラダ
ー回路データから検索して結果格納メモリ上に記憶の
上、対象回路ポインタ≧結果回路数カウンタとなった時
点で、結果格納メモリ上に記憶されている回路のデータ
を可視出力することを特徴とする、プログラマブルコン
トローラのプログラミング方法。
1. A programming method for modifying a ladder circuit diagram of a programmable controller, comprising:
Ladder circuit data from program memory on work memory
The search target coil is specified while the
Related to the target coil in the work memory
Search start port indicating the search start position when the circuit is searched
Inter, the times that include the point of contact currently being searched
Pair indicating the location of the path in the result storage memory.
The elephant circuit pointer, the contact to be searched is the target circuit
Indicates the position of the circuit pointed to by the pointer.
Target contact pointer and the result stored in the result storage memory.
The result of counting the number of circuits
While the count value is updated as predetermined as the process progresses,
A circuit in which a contact in the circuit to which the designated coil belongs is a coil.
And the contacts that affect the operation of the coil.
Ladder on the work memory
-Search from circuit data and store in result storage memory
Above, when target circuit pointer ≧ result circuit number counter
In terms of the circuit data stored on the result storage memory
A method for programming a programmable controller, comprising:
【請求項2】 請求項1において、前記接点は、on状
態のみの接点、あるいはoff状態のみの接点、または
検索対象コイルのon/off状態に影響を与えている
接点とすることを特徴とする、プログラマブルコントロ
ーラのプログラミング方法。
2. The contact according to claim 1, wherein the contact is an on-state.
State only contact, or off state only contact, or
Affects the on / off state of the search target coil
A programming method for a programmable controller, comprising a contact .
【請求項3】 プログラマブルコントローラのラダー回
路図を修正するプログラミング装置において、ユーザプ
ログラムとしてのラダー回路データが格納されるユーザ
プログラムメモリと、該ユーザプログラムメモリから上
記ラダー回路データが転送記憶されるワークメモリと、
該ワークメモリ上でラダー回路中の検証対象コイルが指
定されたとき、ワークメモリ上で検索対象コイルに関連
する回路が検索される際での検索開始位置を示す検索開
始ポインタ、現在検索の対象と なっている接点の含まれ
る回路が結果格納メモリ上の如何なる位置にあるかを示
す対象回路ポインタ、検索対象となっている接点が対象
回路ポインタの指している回路の如何なる位置にあるか
を示す対象接点ポインタ、および結果格納メモリ上に記
憶された回路の数をカウントする結果回路数カウンタ各
々のカウント値が処理の進行に伴い所定に更新されつ
つ、当該指定コイルが属する回路中の接点をコイルとす
る回路のデータと、該コイルの動作に影響を与える接点
をコイルとする全ての回路のデータとをワークメモリ上
のラダー回路データから検索する処理部と、該処理部に
より検索された回路のデータが記憶される結果格納メモ
リと、対象回路ポインタ≧結果回路数カウンタとなった
時点で、結果格納メモリ上に記憶された回路のデータが
可視出力される出力部とを少なくとも備えることを特徴
とする、プログラマブルコントローラのプログラミング
装置
3. A ladder circuit of a programmable controller.
In a programming device for modifying a road map, a user
User who stores ladder circuit data as a program
From the program memory and from the user program memory
A work memory in which the ladder circuit data is transferred and stored;
The verification target coil in the ladder circuit is
When set, it is related to the coil to be searched in the work memory.
Search start position indicating the search start position when the circuit to be searched is searched.
Start pointer, including the contact currently being searched
Indicates where the circuit is located in the result storage memory.
Target circuit pointer, search target contacts
The position of the circuit pointed to by the circuit pointer
Target contact pointer indicating the
Count the number of remembered circuits
Each count value is updated as required as the process proceeds.
The contact in the circuit to which the specified coil belongs
Circuit data and contacts that affect the operation of the coil
On the work memory with the data of all circuits with
Processing unit for searching from the ladder circuit data of
Result storage memo that stores the circuit data searched
And target circuit pointer ≥ result circuit number counter
At this point, the circuit data stored in the result storage memory
And at least an output unit that outputs visible light.
The programming of the programmable controller
Equipment .
【請求項4】 請求項3において、前記接点は、on状
態のみの接点、あるいはoff状態のみの接点、または
検索対象コイルのon/off状態に影響を与えている
接点とすることを特徴とする、プログラマブルコントロ
ーラのプログラミング装置。
4. The contact according to claim 3, wherein the contact is an on-state.
State only contact, or off state only contact, or
Affects the on / off state of the search target coil
A programming device for a programmable controller, wherein the programming device is a contact.
JP3050891A 1991-03-15 1991-03-15 Programming method and apparatus for programmable controller Expired - Lifetime JP2978260B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3050891A JP2978260B2 (en) 1991-03-15 1991-03-15 Programming method and apparatus for programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3050891A JP2978260B2 (en) 1991-03-15 1991-03-15 Programming method and apparatus for programmable controller

Publications (2)

Publication Number Publication Date
JPH04286001A JPH04286001A (en) 1992-10-12
JP2978260B2 true JP2978260B2 (en) 1999-11-15

Family

ID=12871359

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3050891A Expired - Lifetime JP2978260B2 (en) 1991-03-15 1991-03-15 Programming method and apparatus for programmable controller

Country Status (1)

Country Link
JP (1) JP2978260B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3441833A4 (en) * 2016-04-04 2019-07-17 Omron Corporation Programming support device, control method of programming support device, and control program of programming support device

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07160312A (en) * 1993-12-08 1995-06-23 Hitachi Ltd Programming device of programmable controller
AU2006336827B2 (en) * 2006-01-24 2010-01-21 Toshiba Mitsubishi-Electric Industrial Systems Corporation Plant control system control program creation/display device
CN101361031B (en) 2006-01-24 2013-07-31 株式会社东芝 Factory control system and interlock reason confirming method
CN102449563B (en) * 2009-05-27 2014-06-18 三菱电机株式会社 Sequence program debugging device and debugging method
JP5762601B1 (en) * 2014-06-17 2015-08-12 三菱電機株式会社 Program editing apparatus, method, and program
JP6122054B2 (en) * 2015-03-13 2017-04-26 ファナック株式会社 Monitor device having branch circuit extraction display function of ladder program
WO2017175767A1 (en) * 2016-04-04 2017-10-12 オムロン株式会社 Programming support device, control method of programming support device, and control program of programming support device
JP7412076B2 (en) * 2018-10-23 2024-01-12 株式会社キーエンス Engineering tools for programmable logic controllers

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3441833A4 (en) * 2016-04-04 2019-07-17 Omron Corporation Programming support device, control method of programming support device, and control program of programming support device
US10838390B2 (en) 2016-04-04 2020-11-17 Omron Corporation Program creation support apparatus, control method for program creation support apparatus, and control program for program creation support apparatus

Also Published As

Publication number Publication date
JPH04286001A (en) 1992-10-12

Similar Documents

Publication Publication Date Title
US4497029A (en) Numerical control device
JP2978260B2 (en) Programming method and apparatus for programmable controller
JPH05204630A (en) Electronic device and its fixed information correcting method thereof
EP0436035A1 (en) Machine operation history display method
JP2010102454A (en) Information processing apparatus and information processing program
EP0577393A1 (en) Method for executing a program
JPH0577143A (en) Failure diagnosis device for automated line
US5886910A (en) Computer with a check function
JP2977951B2 (en) Arithmetic unit
JPS59201150A (en) Debug device
JPH0667925A (en) Programming device for programmable controller
JPH0547842B2 (en)
JPH03179508A (en) Automatic nc programming system
JP2669143B2 (en) Programmable controller programming device
JP2581019B2 (en) How to debug sequence programs
JP2806976B2 (en) Program content inspection device
JPH04215106A (en) Programmable controller
JPH0682284B2 (en) Sequence controller
JPH04326133A (en) Debugger processing system
JPH07168738A (en) Program inspecting device
JPH0528000A (en) Controller for construction machinery
JPH0193812A (en) System for displaying help screen
JPH04162152A (en) Double write checking device for program instruction
JPH0228711A (en) Device for correcting error or automatic input operation
JPS6227421B2 (en)

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees