JPH0640282B2 - Program verification method for programmable controller - Google Patents
Program verification method for programmable controllerInfo
- Publication number
- JPH0640282B2 JPH0640282B2 JP58147211A JP14721183A JPH0640282B2 JP H0640282 B2 JPH0640282 B2 JP H0640282B2 JP 58147211 A JP58147211 A JP 58147211A JP 14721183 A JP14721183 A JP 14721183A JP H0640282 B2 JPH0640282 B2 JP H0640282B2
- Authority
- JP
- Japan
- Prior art keywords
- state
- program
- relay
- unit
- state change
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Program-control systems
- G05B19/02—Program-control systems electric
- G05B19/04—Program control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/058—Safety, monitoring
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Programmable Controllers (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、プログラマブルコントローラにおけるプログ
ラムの検証方法に関するものである。TECHNICAL FIELD The present invention relates to a program verification method in a programmable controller.
プログラマブルコントローラのプログラムは、継電器の
導を模した形(以下、この模擬継電器のことを「リレ
ー」という。)で行なわれる。The program of the programmable controller is performed in a form imitating the conduction of a relay (hereinafter, this simulated relay is referred to as "relay").
リレーは、付勢及び消勢の2状態を持っており、プログ
ラマブルコントローラのプログラムは、これらのリレー
を多数組み合わせたものとして作成される。従って、そ
のプログラムに誤りがないことの検証としては、それら
の全てのリレーが付勢及び消勢双方の状態をとった場合
について正しいことが少なくともあらわにされていなけ
ればならない。The relay has two states of energizing and deactivating, and the program of the programmable controller is created as a combination of many of these relays. Therefore, as a verification that the program is error-free, it must be at least revealed to be correct when all those relays are both activated and de-energized.
第1図は、一般のプログラマブルコントローラの構成を
示すものであり、システムの状態等を表す外部の信号
は、入力部1を通してデータメモリー部2の対応する部
分に置かれる。データメモリー部2には、プログラマブ
ルコントローラの内部変数、すなわちリレーも置かれて
いる。FIG. 1 shows the configuration of a general programmable controller. An external signal indicating the system state or the like is placed in the corresponding portion of the data memory unit 2 through the input unit 1. The data memory unit 2 also has internal variables of the programmable controller, that is, relays.
利用者は、プログラミングパネル6を通してプログラム
を作成する。そのプログラムは、プログラムメモリー部
5に記憶される。演算部4は、プログラムメモリー部5
よりプログラムを読み出し、その指示するところに従っ
てデータメモリー部2の内のデータを読み、それに対し
て演算を施し、その結果をデータメモリー部2に書き込
む。データメモリー部2の内、出力に関連づけられた部
分のデータが出力部3を通して外部へ出力される。The user creates a program through the programming panel 6. The program is stored in the program memory unit 5. The calculation unit 4 includes a program memory unit 5
The program is read out, the data in the data memory unit 2 is read according to the instruction, the calculation is performed on the data, and the result is written in the data memory unit 2. The data of the portion of the data memory unit 2 associated with the output is output to the outside through the output unit 3.
このようなプログラマブルコントローラの動作は、第2
図のフローチャートに示すような手順で実行される。The operation of such a programmable controller is
The procedure is as shown in the flowchart of the figure.
電源が投入され、装置が始動されると、まず、ステップ
200に示す動作が行なわれ、ハードウエア・ソフトウエ
アについての各種の初期設定を行なう。When the power is turned on and the device is started, first step
The operation shown in 200 is performed, and various initial settings for the hardware and software are performed.
始動時の初期設定が終わると、ステップ201より作動が
開始し、ステップ205まで処理が完了すると再びステッ
プ201へ戻り、動作を繰り返す。このような方式を一般
にスキャン方式と呼んでいる。When the initial setting at the time of starting is completed, the operation starts from step 201, and when the processing up to step 205 is completed, the procedure returns to step 201 again and the operation is repeated. Such a method is generally called a scan method.
ステップ201では、外部からの入力データを、入力部1
を通して取り込み、データメモリー部2に記憶させる。
それが完了したら、ステップ202へ進む。ここでは、プ
ログラムメモリー部5よりプログラムを読み出し、それ
に従い、更にデータメモリー部2上のデータを用いて演
算を行ない、その結果をデータメモリー部2に書き込
む。上記プログラムは、予めプログラミングパネル6を
用いてプログラムメモリー部5に書き込んでおいたもの
である。In step 201, input data from the outside is input to the input unit 1.
And is stored in the data memory unit 2.
When that is complete, proceed to step 202. Here, the program is read from the program memory unit 5, and in accordance therewith, an operation is further performed using the data in the data memory unit 2, and the result is written in the data memory unit 2. The above program has been written in the program memory unit 5 in advance using the programming panel 6.
以上の事情を、第3図のプログラム例を用いて更に詳し
く説明する。まず、第3図のプログラム例自身について
説明する。プログラマブルコントローラのプログラム
は、この図のようにリレー回路を模した形で作成される
ことが多い。リレー回路の代わりに、MILの論理記号
あるいはブール代数式などが用いられることもあるが、
ここでは第3図のリレー回路により説明する。301〜304
は接点を表し、305,306はコイルを表している。これら
に傍記した4桁の番号はリレー番号である。例えば接点
301に付記した0101はリレー番号である。コイル305(リ
レー番号0001)には、リレー0101のA接点とリレー0102
のA接点が直列に接続されており、リレー番号0002のコ
イル306には、リレー0105のA接点303とリレー0106のB
接点を並列に接続したものが接続されている。このよう
な回路がどのように動作するかについては明白であるの
で説明を省く。The above situation will be described in more detail with reference to the program example of FIG. First, the program example itself shown in FIG. 3 will be described. The program of the programmable controller is often created in a form imitating a relay circuit as shown in this figure. A MIL logic symbol or a Boolean algebra may be used instead of the relay circuit.
Here, the relay circuit of FIG. 3 will be described. 301 ~ 304
Represents contacts, and 305 and 306 represent coils. The four-digit number added to them is the relay number. Contact
0101 added to 301 is a relay number. In coil 305 (relay number 0001), contact A of relay 0101 and relay 0102
Are connected in series, and the coil 306 of relay number 0002 has an A contact 303 of relay 0105 and a B of relay 0106.
Those with the contacts connected in parallel are connected. It is clear how such a circuit works, so it will not be described.
さて、上記のプログラムを実行する手続きは、プログラ
ムメモリー部5よりプログラムを順次読み出しながら、
次のように行なわれる。Now, the procedure for executing the above-mentioned program is as follows while sequentially reading the program from the program memory unit 5.
It is performed as follows.
上記第3図のプログラム例がどのように処理されるか
を、第2図及び第4図のフローチャートに従って説明す
る。How the example program of FIG. 3 is processed will be described with reference to the flowcharts of FIGS. 2 and 4.
まず、リレー0001の新状態を求める動作が第2図のステ
ップ202で行なわれる。その部分の動作を抜き出して描
いたフローチャートが第4図である。First, the operation for determining the new state of the relay 0001 is performed in step 202 of FIG. FIG. 4 is a flowchart extracting and drawing the operation of that portion.
リレー0101及びリレー0102の状態、即ち付勢であるか消
勢であるかを、データメモリー部5より読み出し、その
論理積(直列接続に当たる)を求め(ステップ401)、
それをデータメモリー部5の中のリレー0001に相当する
部分に書き込み記憶させる(ステップ402)。このと
き、リレー0001の旧状態は失われる。The states of the relays 0101 and 0102, that is, whether they are energized or deenergized, are read from the data memory unit 5, and the logical product (corresponding to serial connection) is obtained (step 401),
The data is written and stored in a portion of the data memory unit 5 corresponding to the relay 0001 (step 402). At this time, the old state of relay 0001 is lost.
リレー0001について、第2図のステップ202の処理が済
むと、ステップ203へ進み、次のリレー0002についての
処理の準備が行なわれる。更に、判断ステップ204で、
全リレーについて終了したかどうかを調べる。終了して
いなければステップ202へ戻り、新しいリレー、即ちリ
レー0002についての処理を実行する。When the process of step 202 of FIG. 2 is completed for the relay 0001, the process proceeds to step 203, and preparation for the process of the next relay 0002 is performed. Further, in decision step 204,
Check if all relays are finished. If not completed, the process returns to step 202 and the process for the new relay, that is, relay 0002 is executed.
このようにして、全プログラムについての1回の演算が
終わると、ステップ205へ進む。ステップ205では、デー
タメモリー部5に置かれたリレーの内で、外部に出力す
べきものを出力部3を通して外部に出力する。In this way, when one calculation is completed for all programs, the routine proceeds to step 205. In step 205, out of the relays placed in the data memory unit 5, those which should be output to the outside are output to the outside through the output unit 3.
以上の動作を1スキャンと呼び、1スキャン分の動作が
終了したら、ステップ201へ戻り、新たなスキャンが始
められる。The above operation is called one scan, and when the operation for one scan is completed, the process returns to step 201 and a new scan is started.
一方、実開昭55-107603号公報には、シーケンスコント
ローラにおけるシミュレート装置において、入力信号を
演算制御部に与えたことによってどの出力の状態が変化
したかということを、入力信号を与えた後でも識別でき
るように、テスト用の出力表示装置中に、変化を検出す
る手段を備えたものが記載されている。On the other hand, in Japanese Utility Model Laid-Open No. 55-107603, in a simulation device in a sequence controller, it is described which output state is changed by giving an input signal to an arithmetic control unit after giving an input signal. However, for the sake of identification, a test output display device having a means for detecting a change is described.
しかしながら、前述した従来のプログラマブルコントロ
ーラにおいては、上記した全てのリレーが付勢及び消勢
双方の状態をとったかどうかを明らかに記憶表示する機
能をもっていなかったため、検証が終了したかどうかの
確認は検証作業者の記憶等に頼らざるを得ず、従って検
証もれがあったり、検証の値度が不明確であった。However, the above-mentioned conventional programmable controller does not have a function of clearly storing and displaying whether or not all the above-mentioned relays are in both the energized and deenergized states, so it is not possible to confirm whether or not the verification is completed. There was no choice but to rely on the verification operator's memory, etc. Therefore, there were omissions of verification and the degree of verification was unclear.
また、実開昭55-107603号公報に記載された装置におい
ては、変化の検出はシミュレート装置に限定されてお
り、いま操作した模擬入力スイッチの操作に応じた変化
した出力表示しかできないという問題があり、プログラ
ムのデバグ処理を行うには不都合である。Further, in the device disclosed in Japanese Utility Model Laid-Open No. 55-107603, the change detection is limited to the simulation device, and only the changed output display according to the operation of the simulated input switch operated now can be performed. Therefore, it is inconvenient to debug the program.
本発明は、このような従来の問題点を解消して、プログ
ラマブルコントローラの検証作業を確実に行うことを目
的とする。SUMMARY OF THE INVENTION It is an object of the present invention to solve such a conventional problem and surely perform a verification operation of a programmable controller.
この目的を達成するため、本発明は、少なくとも、外部
の信号を取り込む入力部と、外部へ信号を出力する出力
部と、プログラムを記憶させておくプログラムメモリー
部と、リレーの状態等を保持するデータメモリー部と、
前記プログラムメモリー部に記憶されているプログラム
を実行するとともに前記データメモリー部内のデータを
読み出して演算を行なう演算部とを有するプログラマブ
ルコントローラにおけるプログラムの検証方法におい
て、 前記プログラマブルコントローラ内のリレーのそれぞれ
に対し1ビットの状態変化記憶フラグを対応させ、該当
するリレーの状態が変化したかどうかを記憶する状態記
憶部を設け、プログラムの検証に先立って前記状態記憶
部の状態変化記憶フラグを全て0にリセットし、プログ
ラムメモリー部よりプログラムを読み出し、各リレーに
ついて新状態が付勢であるか消勢であるかを計算し、新
状態が旧状態と同じかどうかを判断し、同じでなければ
状態変化記憶部の該当部のフラグを1に書き換え、これ
を全リレーについて行い、前記状態変化記憶フラグの状
態を出力部を通して外部に表示することを特徴とする。In order to achieve this object, the present invention holds at least an input section for receiving an external signal, an output section for outputting a signal to the outside, a program memory section for storing a program, a state of a relay, and the like. Data memory part,
In a method of verifying a program in a programmable controller having a calculation unit that executes a program stored in the program memory unit and reads data in the data memory unit to perform calculation, for each of the relays in the programmable controller A 1-bit state change storage flag is associated with a state storage unit that stores whether or not the state of the corresponding relay has changed, and all state change storage flags in the state storage unit are reset to 0 before program verification. Then, read the program from the program memory section, calculate whether the new state is energized or deenergized for each relay, judge whether the new state is the same as the old state, and if not, store the state change memory Change the flag of the relevant part of the part to 1 and connect it to all relays. The state of the state change storage flag is displayed to the outside through an output unit.
前記状態変化記憶フラグの状態表示は、プログラミング
パネルに全リレーあるいは任意に指定したリレーの状態
変化記憶フラグを表示することにより行なうことができ
る。The state display of the state change storage flag can be performed by displaying the state change storage flag of all relays or an arbitrarily designated relay on the programming panel.
以下、本発明を第5図及び第6図に示す実施例に基づい
て説明する。The present invention will be described below based on the embodiments shown in FIGS. 5 and 6.
第5図は従来の第1図に、第6図は第4図に対応するも
のであり、従来と同一の構成要素には同一の符号を付し
た。FIG. 5 corresponds to FIG. 1 of the prior art and FIG. 6 corresponds to FIG. 4, and the same components as those of the prior art are designated by the same reference numerals.
第5図の構成は、状態変化記憶部507を持つ点で第1図
に示す従来装置と異なっている。状態変化記憶部507
は、プログラムメモリー部5,データメモリー部2から
独立したハードウエア装置であってもよいし、同一のハ
ードウエア装置の異なった部分であってもよい。第5図
では、独立した記憶装置とし、更に停電時にも記憶が失
われないようにバックアップ電池508を設けている。The configuration of FIG. 5 is different from the conventional device shown in FIG. 1 in that it has a state change storage unit 507. State change storage unit 507
May be a hardware device independent of the program memory unit 5 and the data memory unit 2, or may be a different part of the same hardware device. In FIG. 5, an independent storage device is provided, and a backup battery 508 is provided so that the storage is not lost even when a power failure occurs.
状態記憶部507内には、プログラマブルコントローラ内
のリレーそれぞれに対して1ビットを対応させ、そこに
そのリレーが変化したかどうかを記憶させる。これを状
態変化記憶フラグを呼ぶことにする。In the state storage unit 507, one bit is associated with each relay in the programmable controller, and whether or not the relay has changed is stored therein. This is called a state change storage flag.
次に、この装置の動作について説明する。Next, the operation of this device will be described.
まず、プログラムのデバグを始める前に、プログラミン
グパネル6に設けたリセットキー(図示せず)を押すこ
とにより、状態変化記憶部507の中の全てのフラグを
“0”(初期状態)にする。これは、全てのリレーが付
勢あるいは消勢のいずれか一方の状態にあり、状態の変
化を経験していないことを意味している。すなわち、そ
のリレーに関する論理のデバグが未了であることにな
る。First, before starting the debugging of the program, a reset key (not shown) provided on the programming panel 6 is pressed to set all the flags in the state change storage unit 507 to "0" (initial state). This means that all relays are either energized or deenergized and have not experienced a change of state. In other words, the logic of the relay has not been debugged.
プログラムのデバグが進むに従い、いくつかのリレーは
その状態が変化し、残りのリレーは変化しない。状態が
変化すると、そのリレーの状態変化記憶フラグが“1”
に書き替えられる。それは、第6図のフローチャートに
従って行なわれる。As the program progresses, some relays change their state, while others do not. When the status changes, the status change memory flag of that relay is set to "1".
Can be rewritten as It is performed according to the flowchart of FIG.
第6図のフローチャートは、各リレーの新状態に関する
演算を計算し、データメモリー部2の該当ビットに新状
態を書き込む第4図のフローチャートに、状態変化検出
用のステップ603,状態変化記憶用のステップ604を追加
したものである。これらの追加部分について説明する。The flowchart of FIG. 6 calculates the operation regarding the new state of each relay, and writes the new state in the corresponding bit of the data memory unit 2. In the flowchart of FIG. 4, step 603 for state change detection, state change storage The step 604 is added. These additional parts will be described.
判断ステップ603で、該当リレーがその状態を変化させ
ようとしているか、そうでないかを判別する。状態が変
化しない場合には、ステップ402へ制御が移され、第4
図の場合と同一の動作となる。状態が変化する場合に
は、ステップ604で、そのリレーの状態変化フラグに
“1”が書き込まれる。At decision step 603, it is determined whether the relay is changing its state or not. If the state has not changed, control is transferred to step 402 and the fourth
The operation is the same as in the case of the figure. If the state changes, in step 604, "1" is written in the state change flag of the relay.
このようにして、あるリレーの新状態の計算が行なわれ
るとき、常にその変化、不変化が検出され、変化が生じ
れば、ただちにそのリレーに対応する状態変化フラグに
“1”が書き込まれる。In this way, when a new state of a relay is calculated, its change or non-change is always detected, and if a change occurs, "1" is immediately written to the state change flag corresponding to the relay.
このことにより、そのリレーがデバグ開始時点より変化
していなければ“0”が、変化していれば“1”が、そ
のリレーに対応する状態変化記憶フラグに残されること
になる。As a result, "0" is left in the state change storage flag corresponding to the relay if the relay has not changed since the start of debugging, and "1" if it has changed.
従って、デバグを終了させようとするときに、状態変化
記憶部の内容をプログラミングパネル6に設けられたC
RT(図示せず)に表示させると、どのリレーが試され
ていないかを知ることができる。即ち、そのデバグ未了
のリレーについてのデバグを重点的に実行すればよいこ
とがわかる。Therefore, when the debugging is to be ended, the contents of the state change storage section are stored in the C provided on the programming panel 6.
A display on the RT (not shown) can tell which relays are not tried. That is, it can be understood that the debugging of the relay whose debugging has not been completed should be focused on.
第7図はその表示の1例であり、リレー0000〜0099の10
0個についてその状態変化記憶フラグが表示されてい
る。最左端の列及び最上段の行はリレー番号を表す見出
しである。最左端は10位以上の桁を、最上段は1の位を
表している。行と列の交点に、各リレーの状態変化記憶
フラグが表示される。例えば0010と4列の交点にリレー
0014の状態変化記憶フラグが表示されている。第7図で
は“0”になっている。FIG. 7 shows an example of the display, which is 10 of relays 0000 to 0099.
The state change storage flag is displayed for 0. The leftmost column and the uppermost row are headings representing the relay numbers. The leftmost column indicates the tenth digit or higher, and the uppermost column indicates the ones digit. The state change memory flag of each relay is displayed at the intersection of the row and the column. For example, relay at the intersection of 0010 and 4th row
The state change storage flag of 0014 is displayed. It is "0" in FIG.
デバグを進めていくと、プログラムに含まれている誤り
が発見される。プログラムの変更によりその誤りは修正
されるが、プログラムの改正された部分については検証
が必要であり、何等の変更も加えなかった部分について
の再検証は必要でない。このような場面で状態変化フラ
グの部分リセットが有効である。プログラミングパネル
に作業者がリレー番号を打ち込み、その状態変化フラグ
を選択的にリセットする(即ち“0”を書き込む)こと
ができる。また、プログラミングパネルからプログラム
のある部分を書き込むときに、それに含まれているリレ
ーの状態変化フラグのみをリセットし、他はそのまま保
持することも可能である。As you proceed with the debugging, you will discover the errors contained in the program. Although the error is corrected by the change of the program, the revised part of the program needs to be verified, and the re-verified part without any change is not required. In such a situation, partial resetting of the state change flag is effective. An operator can enter a relay number on the programming panel and selectively reset the state change flag (that is, write "0"). Further, when writing a part of the program from the programming panel, it is possible to reset only the state change flag of the relay included in the part and keep the rest.
上述したように本発明によれば、未検証の部位、すなわ
ち、過去に“1”と“0”の双方の状態を経験しなかっ
たコイルがどれであるかを、検証作業者の記憶に頼るこ
となく確実に知ることができ、これにより、未検証のコ
イルが皆無となるようなテストを追加することにより、
より完全なプログラムのデバグ処理を行うことができ
る。As described above, according to the present invention, an unverified portion, that is, a coil that has not experienced both states of “1” and “0” in the past is relied on the memory of the verification operator. Without knowing, and by adding a test that eliminates all unverified coils,
More complete program debug processing can be performed.
第1図は一般のプログラマブルコントローラの構成を示
すブロック図、第2図はプログラマブルコントローラの
内部動作を示すフローチャート、第3図はプログラムの
例を示す説明図、第4図は第3図のプログラムの処理を
示すフローチャート、第5図は本発明を実施するための
プログラマブルコントローラの構成例を示すブロック
図、第6図は本発明における検証の手順を示すフローチ
ャート、第7図はリレー状態変化フラグの表示の例を示
す説明図である。 1:入力部、2:データメモリー部 3:出力部、4:演算部 5:プログラムメモリー部 507:状態変化記憶部 508:電池 6:プログラミングパネルFIG. 1 is a block diagram showing the configuration of a general programmable controller, FIG. 2 is a flow chart showing the internal operation of the programmable controller, FIG. 3 is an explanatory diagram showing an example of a program, and FIG. 4 is a program showing in FIG. FIG. 5 is a block diagram showing a configuration example of a programmable controller for carrying out the present invention, FIG. 6 is a flow chart showing a verification procedure in the present invention, and FIG. 7 is a display of a relay state change flag. It is an explanatory view showing an example of. 1: Input part, 2: Data memory part 3: Output part, 4: Computing part 5: Program memory part 507: State change storage part 508: Battery 6: Programming panel
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭57−168307(JP,A) 特開 昭56−168129(JP,A) 特開 昭56−2008(JP,A) 特開 昭52−40286(JP,A) 特開 昭52−40287(JP,A) 特開 昭56−168214(JP,A) 特開 昭56−168219(JP,A) 特開 昭58−39307(JP,A) 実開 昭55−107603(JP,U) 実公 昭59−33041(JP,Y2) ─────────────────────────────────────────────────── ─── Continuation of the front page (56) Reference JP-A-57-168307 (JP, A) JP-A-56-168129 (JP, A) JP-A-56-2008 (JP, A) JP-A 52- 40286 (JP, A) JP 52-40287 (JP, A) JP 56-168214 (JP, A) JP 56-168219 (JP, A) JP 58-39307 (JP, A) Actual development Sho 55-107603 (JP, U) Actual public Sho 59-33041 (JP, Y2)
Claims (2)
(1)と、外部へ信号を出力する出力部(3)と、プログラム
を記憶させておくプログラムメモリー部(5)と、リレー
の状態等を保持するデータメモリー部(2)と、前記プロ
グラムメモリー部(5)に記憶されているプログラムを実
行するとともに前記データメモリー部内のデータを読み
出して演算を行なう演算部(4)とを有するプログラマブ
ルコントローラにおけるプログラムの検証方法におい
て、 前記プログラマブルコントローラ内のリレーのそれぞれ
に対し1ビットの状態変化記憶フラグを対応させ、該当
するリレーの状態が変化したかどうかを記憶する状態記
憶部(507)を設け、 プログラムの検証に先立って前記状態記憶部(507)の状
態変化記憶フラグを全て0にリセットし、 プログラムメモリー部(5)よりプログラムを読み出し、
各リレーについて新状態が付勢であるか消勢であるかを
計算し、新状態が旧状態と同じかどうかを判断し、同じ
でなければ状態変化記憶部の該当部のフラグを1に書き
換え、 これを全リレーについて行い、前記状態変化記憶フラグ
の状態を出力部(3)を通して外部に表示する ことを特徴とするプログラマブルコントローラにおける
プログラムの検証方法。1. An input unit for receiving at least an external signal.
(1), an output unit (3) for outputting a signal to the outside, a program memory unit (5) for storing a program, a data memory unit (2) for holding the state of a relay, and the program memory In a method of verifying a program in a programmable controller having a calculation unit (4) that executes a program stored in a unit (5) and reads data in the data memory unit to perform a calculation, a relay in the programmable controller A 1-bit state change storage flag is associated with each of them, and a state storage unit (507) for storing whether or not the state of the corresponding relay has changed is provided. Prior to program verification, the state storage unit (507) Reset all state change memory flags to 0, read the program from the program memory (5),
Calculates whether the new state is energized or deenergized for each relay, judges whether the new state is the same as the old state, and if they are not the same, rewrites the flag of the relevant part of the state change storage unit to 1. This is performed for all relays, and the state of the state change storage flag is displayed to the outside through the output unit (3).
プログラミングパネルに全リレーあるいは任意に指定し
たリレーの状態変化記憶フラグを表示するものである特
許請求の範囲第1項記載のプログラマブルコントローラ
におけるプログラムの検証方法。2. The display of the state of the state change storage flag is
The program verification method in the programmable controller according to claim 1, wherein the state change storage flags of all relays or arbitrarily designated relays are displayed on the programming panel.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58147211A JPH0640282B2 (en) | 1983-08-10 | 1983-08-10 | Program verification method for programmable controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58147211A JPH0640282B2 (en) | 1983-08-10 | 1983-08-10 | Program verification method for programmable controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6039202A JPS6039202A (en) | 1985-03-01 |
| JPH0640282B2 true JPH0640282B2 (en) | 1994-05-25 |
Family
ID=15425076
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58147211A Expired - Lifetime JPH0640282B2 (en) | 1983-08-10 | 1983-08-10 | Program verification method for programmable controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0640282B2 (en) |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5933041Y2 (en) * | 1979-01-23 | 1984-09-14 | 豊田工機株式会社 | Simulation device in sequence controller |
| JPS5933041U (en) * | 1982-08-24 | 1984-02-29 | 株式会社きもと | Photosensitive material for plate making having a mask layer |
-
1983
- 1983-08-10 JP JP58147211A patent/JPH0640282B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6039202A (en) | 1985-03-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0640282B2 (en) | Program verification method for programmable controller | |
| CA2193466C (en) | Game apparatus and method for debugging game program | |
| US5504862A (en) | Logic verification method | |
| JPS6146864B2 (en) | ||
| JPS63240602A (en) | Sequence controller abnormality diagnosis device | |
| JPS5946002B2 (en) | Processing method during power outage and power restoration in sequence control equipment | |
| JPS58195257A (en) | Computer failure recovery method | |
| JP2001236247A (en) | Software simulator and simulation processing method | |
| JPS6261974B2 (en) | ||
| JPH0547842B2 (en) | ||
| JPH07253913A (en) | Log analysis program verification device | |
| JPH0413728B2 (en) | ||
| JPS6017544A (en) | Pseudo fault generation system | |
| JPH10124339A (en) | Digital control device | |
| JPH0887426A (en) | Self-diagnosis status display method | |
| JP2000222243A (en) | Device and method for debugging | |
| JPS58158747A (en) | Programable controller | |
| JPH051481B2 (en) | ||
| JPH0571107B2 (en) | ||
| JPH081607B2 (en) | Pseudo-fault occurrence method in information processing system | |
| JPH0561935A (en) | Logical simulation system | |
| JPS61235955A (en) | Program debugging system | |
| JPH02307135A (en) | Monitoring method for instruction executing action | |
| JPS62103701A (en) | Restart control method for sequence controller | |
| JPS60251438A (en) | Self-diagnosis method of control memory |