JPH03216703A - Collation method for sequence program - Google Patents

Collation method for sequence program

Info

Publication number
JPH03216703A
JPH03216703A JP1224790A JP1224790A JPH03216703A JP H03216703 A JPH03216703 A JP H03216703A JP 1224790 A JP1224790 A JP 1224790A JP 1224790 A JP1224790 A JP 1224790A JP H03216703 A JPH03216703 A JP H03216703A
Authority
JP
Japan
Prior art keywords
sequence program
sequence
memory device
programmable controller
program stored
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
JP1224790A
Other languages
Japanese (ja)
Other versions
JP2629394B2 (en
Inventor
Kazuyoshi Ono
小野 一良
Masaru Baba
馬場 賢
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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor Co 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 Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP2012247A priority Critical patent/JP2629394B2/en
Publication of JPH03216703A publication Critical patent/JPH03216703A/en
Application granted granted Critical
Publication of JP2629394B2 publication Critical patent/JP2629394B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Programmable Controllers (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、シーケンスプロクラムの相違部分のみを正確
に照合できるようにしたシーケンスプログラムの照合方
法に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a method for collating sequence programs that allows only different parts of sequence programs to be collated accurately.

(従来の技術及び発明が解決しようとする課題)プログ
ラミング時,調整時,装置の仕様変更時には、シーケン
スプログラムの任意の場所を検索する必要が生じるが、
その際にはメモリ装置に記憶されているシーケンスプロ
グラムとプログラマブルコントローラに記憶されている
シーケンスプログラムとの照合を行なう。この照合は、
双方のシーケンスプログラムの先頭から1シーケンスブ
ロックづつ順次行なうようになっている。
(Problem to be solved by the prior art and the invention) When programming, adjusting, or changing device specifications, it is necessary to search any location in the sequence program.
At that time, the sequence program stored in the memory device is compared with the sequence program stored in the programmable controller. This matching is
One sequence block at a time is sequentially executed from the beginning of both sequence programs.

ところか、このような方法による照合では、その照合し
たブロックの一部でも不一致の部分が存在すれば、その
ブロックは全て変更されたものと見なされてしまう。し
たがって、本当に変更された部分のみを照合によって捜
し出すことが容易にはできない。例えば、シーケンスプ
ログラムの順番を単に入れ替えただけで実質的には同一
の処理が行われるシーケンスプログラムであっても、こ
のブロックのその入れ替えた部分以降が変更されたもの
と見なされてしまうことになる。このように変更したと
みなされる範囲が広いと、真に変更した部分をさらに手
作業で捜す必要があり、シーケンスプログラムの迅速な
変更作業を阻害することになる。
However, in verification using such a method, if there is a mismatch in even some of the verified blocks, the entire block is considered to have been changed. Therefore, it is not easy to find only the truly changed parts by checking. For example, even if a sequence program performs essentially the same process simply by changing the order of the sequence program, the parts of this block after that part will be considered to have been changed. . If the range that is considered to have been changed is wide, it becomes necessary to manually search for the truly changed part, which impedes rapid modification of the sequence program.

本発明は、このような従来の問題点を解決するために成
されたものであり、シーケンスプログラムの相違部分の
みを正確に検索できるようにしたシーケンスプログラム
の照合方法の提供を目的とする。
The present invention was made to solve these conventional problems, and an object of the present invention is to provide a method for collating sequence programs that allows only the different portions of sequence programs to be accurately searched.

(課題を解決するための手段) 上記目的を達成するための本発明は、プログラマブルコ
ントローラ内に記憶されているシーケンスプログラムと
メモリ装置内に記憶されているシーケンスプログラムと
を照合する方法において、前記プログラマブルコントロ
ーラ及び前記メモリ装置の双方に記憶されているシーケ
ンスプログラムに基づいて、各出力コイル毎にその使用
の有無に関するデータテーブルを作成し、当該データテ
−ブルに基づいて夫々の出力コイル毎にその使用有無を
比較することでプログラマブルコントローラ内に記憶さ
れているシーケンスプログラムとメモリ装置内に記憶さ
れているシーケンスプログラムとを照合することを特徴
とする。
(Means for Solving the Problems) To achieve the above object, the present invention provides a method for comparing a sequence program stored in a programmable controller with a sequence program stored in a memory device. Based on the sequence program stored in both the controller and the memory device, a data table regarding whether or not each output coil is used is created, and based on the data table, whether or not each output coil is used is determined. The present invention is characterized in that the sequence program stored in the programmable controller and the sequence program stored in the memory device are verified by comparing the sequence programs stored in the programmable controller and the sequence program stored in the memory device.

(作用) このような照合方法によれば、シーケンスプログラムの
照合がプログラマブルコントローラ及びメモリ装置の双
方に記憶されている出力コイルに基づいて行なわれるの
で、シーケンスプログラムの変更部分のみを確実に検索
することができる。
(Function) According to such a matching method, matching of the sequence program is performed based on the output coils stored in both the programmable controller and the memory device, so that only changed portions of the sequence program can be reliably searched. I can do it.

(実施例) 以下、本発明の実施例を図面に基づいて詳細に説明する
(Example) Hereinafter, an example of the present invention will be described in detail based on the drawings.

第1図は、本発明の照合方法を実施するプログラマブル
コントローラの概略構成図、第2図は、本発明の照合方
法を示すフローチャート、第3図及び第4図は、第2図
に示したフローチャートの動作の概念図である。
FIG. 1 is a schematic configuration diagram of a programmable controller that implements the verification method of the present invention, FIG. 2 is a flowchart showing the verification method of the present invention, and FIGS. 3 and 4 are flowcharts shown in FIG. 2. FIG. 2 is a conceptual diagram of the operation of FIG.

第1図は、プログラマブルコントローラの概略構成図で
ある。CPUIには、RAM2,ROM3,CRT4,
人出力装置5が接続される。,RAM2には、人出力装
置5から入力した接点情報や各種の検出値など及びCP
UIの演算値などが一時記憶される。また、ROM3に
は、このプログラマブルコントローラが実行するシーケ
ンスプログラムが記憶されている。CRT4には、CP
U1による演算結果や入出力装置5から人力した上記の
ような各種の情報が表示される。また、シーケンスプロ
グラムの変更等の際にはシーケンスプログラムを表示す
る。入出力装置5は、被駆動体に取り付けられた各種の
センサやリミットスイッチなどからの情報を人力したり
、CPUIによって演算された命令などを被駆動体に向
けて出力する。
FIG. 1 is a schematic configuration diagram of a programmable controller. The CPU has RAM2, ROM3, CRT4,
A human output device 5 is connected. , RAM 2 stores contact information and various detected values input from the human output device 5, as well as CP
Calculated values of the UI, etc. are temporarily stored. Further, the ROM 3 stores a sequence program executed by this programmable controller. CRT4 has CP
The calculation results by U1 and the above-mentioned various information input manually from the input/output device 5 are displayed. Furthermore, when changing the sequence program, the sequence program is displayed. The input/output device 5 inputs information from various sensors and limit switches attached to the driven body, and outputs instructions calculated by the CPU to the driven body.

シーケンスプログラムの照合は以上のように構成された
プログラマブルコントローラによって第2図に示すフロ
ーチャートのように行なわれる。
Verification of sequence programs is performed by the programmable controller configured as described above as shown in the flowchart shown in FIG.

まず、シーケンスプログラムの照合を行なう際には、入
出力装置5を介して外部のメモリ装置からシーケンスプ
ログラムを入力し、このシーケンスプログラムをRAM
2内に一時格納する。次にROMB内に記憶されている
シーケンスプログラムとRAM2内に記憶したシーケン
スプログラムとの中から、出力コイルに関する情報のみ
を集めて出力コイルに関するデータテーブルを作成し、
そのデータテーブルをRAM2に記憶させる。この概念
は第3図に示す通りである。すなわち、プログラマブル
コントローラに記憶されているシーケンスプログラムの
中から出力コイルに関する情報のみを集めて1つのデー
タテーブルAを作成する。同様に、メモリ装置について
1つのデータテーブルBを作成する(ステップ10)。
First, when checking a sequence program, the sequence program is input from an external memory device via the input/output device 5, and this sequence program is stored in the RAM.
Temporarily stored in 2. Next, from the sequence program stored in the ROMB and the sequence program stored in the RAM2, only information regarding the output coil is collected and a data table regarding the output coil is created.
The data table is stored in RAM2. This concept is shown in FIG. That is, one data table A is created by collecting only information regarding the output coil from the sequence programs stored in the programmable controller. Similarly, one data table B is created for the memory device (step 10).

次に、この両データテーブルA,  Bが比較される。Next, both data tables A and B are compared.

この比較は、出力コイル毎に行われ、その概念は第4図
に示す通りである(ステップ11)。この比較において
、ある出力コイルについてのデータがデータテーブルA
とデータテーブルBの両方について1となっているとき
(A=1.8=1).すなわち、両データテーブルに存
在しているときには(ステップ12)、この出力コイル
を作動させるブロックの先頭からシーケンスプログラム
を1命令つつ比較する(ステップ13)。この比較はそ
の出力コイルに関しての全命令が終了するまで行われる
(ステップ14.15)。この比較の最中にマッチング
しない命令が検索されたときには、その出力コイルのシ
ーケンスプログラムが変更されたものであるので、その
変更部分をCRT4に表示する(ステップ16)。一方
、ステップ12における比較において、A=1,B=0
であれば、プログラマブルコントローラ内に存在してい
た出力コイルがメモリ装置内には存在していないのであ
るから、削除されたシーケンスプログラムであると判断
する。また、A=O,B=1であれば、ブロク′ラマブ
ルコントローラ内には存在していなかった出力コイルが
メモリ装置内に存在しているのであるから、追加された
シーケンスプログラムであると判断する。さらに、両デ
ータテーブル共に0 (A=0,B=0)であるときに
は、変更がないと判断する(ステップ17)。
This comparison is performed for each output coil, and its concept is as shown in FIG. 4 (step 11). In this comparison, the data for a certain output coil is shown in data table A.
and data table B are both 1 (A=1.8=1). That is, when it exists in both data tables (step 12), the sequence program is compared one instruction at a time from the beginning of the block that activates this output coil (step 13). This comparison continues until all instructions for that output coil have been completed (step 14.15). If an instruction that does not match is found during this comparison, it means that the sequence program for that output coil has been changed, so the changed portion is displayed on the CRT 4 (step 16). On the other hand, in the comparison in step 12, A=1, B=0
If so, since the output coil that existed in the programmable controller does not exist in the memory device, it is determined that the sequence program has been deleted. Also, if A = O, B = 1, the output coil that did not exist in the block'rammable controller exists in the memory device, so it is determined that it is an added sequence program. do. Further, when both data tables are 0 (A=0, B=0), it is determined that there is no change (step 17).

このように、本発明の照合方法によれは、シーケンスブ
ロクラムの変更部分のみを容易に検索できることになる
In this way, according to the matching method of the present invention, only changed portions of sequence blocks can be easily searched.

(発明の効果) 以上の説明により明らかなように、本発明によるシーケ
ンスプログラムの照合方法によれば、シーケンスプログ
ラムの出力コイルの情報に基づいて変更部分を検索する
ようになっているので、シーケンスプログラムの変更部
分のみを確実に検索することかできる。
(Effects of the Invention) As is clear from the above explanation, according to the sequence program matching method according to the present invention, a changed part is searched based on the information of the output coil of the sequence program. It is possible to reliably search only the changed parts.

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

第1図は、本発明の照合方法を実施するプログラマブル
コントローラの概略構成図、 第2図は、本発明の照合方法を示すフローチャート、 第3図及び第4図は、第2図に示したフローチャートの
動作の概念図である。
FIG. 1 is a schematic configuration diagram of a programmable controller that implements the verification method of the present invention, FIG. 2 is a flowchart showing the verification method of the present invention, and FIGS. 3 and 4 are flowcharts shown in FIG. 2. FIG. 2 is a conceptual diagram of the operation of FIG.

Claims (1)

【特許請求の範囲】 プログラマブルコントローラ内に記憶されているシーケ
ンスプログラムとメモリ装置内に記憶されているシーケ
ンスプログラムとを照合する方法において、 前記プログラマブルコントローラ及び前記メモリ装置の
双方に記憶されているシーケンスプログラムに基づいて
、各出力コイル毎にその使用の有無に関するデータテー
ブルを作成し、 当該データテーブルに基づいて夫々の出力コイル毎にそ
の使用有無を比較することでプログラマブルコントロー
ラ内に記憶されているシーケンスプログラムとメモリ装
置内に記憶されているシーケンスプログラムとを照合す
ることを特徴とするシーケンスプログラムの照合方法。
[Claims] A method of collating a sequence program stored in a programmable controller and a sequence program stored in a memory device, comprising: a sequence program stored in both the programmable controller and the memory device. Based on this, a data table is created for each output coil regarding whether or not it is used, and the sequence program stored in the programmable controller is created by comparing whether or not each output coil is used based on the data table. 1. A method for comparing a sequence program, the method comprising: comparing a sequence program stored in a memory device with a sequence program stored in a memory device.
JP2012247A 1990-01-22 1990-01-22 Sequence program collation method Expired - Lifetime JP2629394B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012247A JP2629394B2 (en) 1990-01-22 1990-01-22 Sequence program collation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012247A JP2629394B2 (en) 1990-01-22 1990-01-22 Sequence program collation method

Publications (2)

Publication Number Publication Date
JPH03216703A true JPH03216703A (en) 1991-09-24
JP2629394B2 JP2629394B2 (en) 1997-07-09

Family

ID=11800038

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012247A Expired - Lifetime JP2629394B2 (en) 1990-01-22 1990-01-22 Sequence program collation method

Country Status (1)

Country Link
JP (1) JP2629394B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05210401A (en) * 1991-12-05 1993-08-20 Toyota Motor Corp Sequence program matching method
JPH0863208A (en) * 1994-08-24 1996-03-08 Mazda Motor Corp Method and apparatus for creating simulation program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58112106A (en) * 1981-12-25 1983-07-04 Toyoda Mach Works Ltd Method and device for collating sequence program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58112106A (en) * 1981-12-25 1983-07-04 Toyoda Mach Works Ltd Method and device for collating sequence program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05210401A (en) * 1991-12-05 1993-08-20 Toyota Motor Corp Sequence program matching method
JPH0863208A (en) * 1994-08-24 1996-03-08 Mazda Motor Corp Method and apparatus for creating simulation program

Also Published As

Publication number Publication date
JP2629394B2 (en) 1997-07-09

Similar Documents

Publication Publication Date Title
JPH03216703A (en) Collation method for sequence program
JPH0685178B2 (en) Conversational image processing device
JP2539147B2 (en) Principal stress indicator
JPH0214730B2 (en)
JP2595815B2 (en) Program correction amount judgment processing device
JP2550665B2 (en) Online batch test method
JPH02278426A (en) Automatic program generating device
JPS603202B2 (en) How to transition to program control
JPS63247844A (en) Partial collation system for data
JPS61279906A (en) Programmable controller
JP2845694B2 (en) Data processing device
JPH04273527A (en) Program source comparing system
JPH02231604A (en) Program producing device
JPS61183747A (en) Program debug device
JPH04175963A (en) Processing method of on-line system
JPH06149636A (en) Database utilization program conversion system
JPH11110403A (en) Data entry device
JPH03189832A (en) Testing system for device
JPH05108371A (en) Language processing programming device
JPH04102922A (en) Operand prefetch control system
JPH0198082A (en) Pattern collating device
JPS63296172A (en) Fragment code extracting system
JPH04220787A (en) Character reader
JPH03111944A (en) Program control device
JPH06208484A (en) Automatic testing system for exchange software

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090418

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20090418

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20100418

Year of fee payment: 13

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100418

Year of fee payment: 13