JPH0944215A - Module generating method for sequential program - Google Patents

Module generating method for sequential program

Info

Publication number
JPH0944215A
JPH0944215A JP7195443A JP19544395A JPH0944215A JP H0944215 A JPH0944215 A JP H0944215A JP 7195443 A JP7195443 A JP 7195443A JP 19544395 A JP19544395 A JP 19544395A JP H0944215 A JPH0944215 A JP H0944215A
Authority
JP
Japan
Prior art keywords
module
program
sequence program
cad device
programmable controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7195443A
Other languages
Japanese (ja)
Inventor
Kouichi Eguro
晃一 江黒
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 JP7195443A priority Critical patent/JPH0944215A/en
Publication of JPH0944215A publication Critical patent/JPH0944215A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To standardize a new module on a CAD device by taking the program of a specific area out of the sequential program stored in a programmable controller, and adding an attribute to the taken out program and generating the new module for the CAD. SOLUTION: The CAD device 10 projects the sequential data on a CRT 12 and an operator loads the sequential program stored in the programmable controller 15, to the CAD device 10 while looking at the image. Then the program of the specific area is taken out of the sequential program and the attribute is given to the taken out program to generate the new module for the CAD device 10. Consequently, the module of the sequential program modified by the programmable controller 15 can be standardized on the CAD device.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、たとえばプログラ
マブルコントローラ側で変更が加えられたシーケンスプ
ログラムのモジュールをCAD装置で標準化できるよう
にしたシーケンスプログラムのモジュール生成方法に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sequence program module generation method capable of standardizing a sequence program module modified on the programmable controller side by a CAD device.

【0002】[0002]

【従来の技術】従来、図11に示すように、プログラマ
ブルコントローラに記憶させるプログラムはCAD装置
を用いてモジュール(モジュールA,B,C)ごとに作
成している。この作成した各モジュールには、その内部
の接点によって内部コイルを作動させるコイルには「イ
ンターナル」の属性が付され、このモジュール外の接点
によってこのモジュールの内部コイルを作動させるコイ
ルには「エクスターナル」の属性が付されている。
2. Description of the Related Art Conventionally, as shown in FIG. 11, a program stored in a programmable controller is created for each module (module A, B, C) using a CAD device. In each created module, the attribute of "internal" is given to the coil that activates the internal coil by its internal contact, and "external" is assigned to the coil that activates the internal coil of this module by the external contact of this module. Attribute is attached.

【0003】このように属性が付された状態のモジュー
ルを複数組み合わせてプログラム(D)を作成し、この
プログラムをプログラマブルコントローラに記憶させ
る。記憶させたプログラムでは、全てのレジスタが内部
で閉じるようになることから、モジュールの「インター
ナル」,「エクスターナル」の属性は消えている。
A program (D) is created by combining a plurality of modules having the attributes as described above, and the program is stored in the programmable controller. In the stored program, all the registers are closed internally, so the attributes of "internal" and "external" of the module are deleted.

【0004】この記憶させたプログラムをプログラマブ
ルコントローラ側で変更し、この変更分を含むプログラ
ム(D′)を逆にCAD装置に読み込ませて管理しよう
とした場合には、全ての属性はプログラマブルコントロ
ーラにロードされた時点で消えていることから、変更さ
れたモジュール(B′)のみを属性が付された状態で取
出すことはできない。
When the stored program is changed on the programmable controller side and the program (D ') containing the changed portion is read by the CAD device to be managed in reverse, all the attributes are stored in the programmable controller. Since it disappears when it is loaded, it is not possible to extract only the changed module (B ') with the attribute attached.

【0005】そこで、このように変更が加えられたモジ
ュール(B′)を取出したいときには、変更前のモジュ
ール(B)を取出し、これをエディター等によって同様
に変更して変更後のモジュール(B′)を作成してい
る。
Therefore, when it is desired to take out the module (B ') thus modified, the module (B) before the modification is taken out, and the module (B') after the modification is similarly modified by an editor or the like. ) Is created.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、このよ
うにシーケンサー側で変更が加えられた場合には、この
変更の内容をCAD側で手作業で再現してから変更後の
モジュール(B′)を作成する必要があることから、こ
の作業には多くの時間を要し、またミスの発生を内在し
ていることから、再現の信頼性が問題となる。
However, when a change is made on the sequencer side in this way, the contents of this change are manually reproduced on the CAD side and then the changed module (B ') is set. This work requires a lot of time because it needs to be created, and since the occurrence of mistakes is inherent, the reliability of reproduction becomes a problem.

【0007】本発明は、このような従来の問題点に鑑み
て成されたものであり、プログラマブルコントローラに
おいて変更が加えられたシーケンスプログラムのモジュ
ールをCAD装置で標準化できるようにしたシーケンス
プログラムのモジュール生成方法の提供を目的とするも
のである。
The present invention has been made in view of such conventional problems, and a sequence program module is generated so that a sequence program module modified in a programmable controller can be standardized by a CAD device. It is intended to provide a method.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するため
の本発明にかかるシーケンスプログラムのモジュール生
成方法は、次のような手順から構成される。
A method for generating a module of a sequence program according to the present invention for achieving the above object comprises the following steps.

【0009】請求項1記載の発明にあっては、複数のシ
ーケンスプログラムのモジュールを連ね、プログラマブ
ルコントローラのシーケンスプログラムを作成するCA
D装置で用いるシーケンスプログラムのモジュール生成
方法であって、当該プログラマブルコントローラに記憶
されているシーケンスプログラムを前記CAD装置にロ
ードし、当該シーケンスプログラムから所定の領域のプ
ログラムを取出し、当該取出したプログラムに属性を付
して前記CAD装置用の新たなモジュールを生成するこ
とを特徴とする。
According to the first aspect of the present invention, a CA for connecting a plurality of sequence program modules to create a sequence program for a programmable controller.
A method for generating a module of a sequence program used in a D device, wherein a sequence program stored in the programmable controller is loaded into the CAD device, a program in a predetermined area is extracted from the sequence program, and the extracted program has an attribute. Is added to generate a new module for the CAD device.

【0010】請求項2記載の発明にあっては、複数のシ
ーケンスプログラムのモジュールを連ね、プログラマブ
ルコントローラのシーケンスプログラムを作成するCA
D装置で用いるシーケンスプログラムのモジュール生成
方法であって、当該プログラマブルコントローラに記憶
されているシーケンスプログラムを前記CAD装置にロ
ードし、当該シーケンスプログラムから取出すブロック
範囲を指定し、当該指定された範囲のブロックに存在す
るシーケンスプログラムの構成部材を出力要素単位に整
理してクロスリファレンンスデータを作成し、当該クロ
スリファレンスデータに基づいて、当該シーケンスプロ
グラムの構成部材の属性を、その構成部材が前記指定さ
れた範囲のブロック内でのみ使用されていれば「インタ
ーナル」とし、その構成部材が前記指定された範囲のブ
ロック外でも使用されていれば「エクスターナル」と付
し、前記指定された範囲のブロックに当該属性を付して
前記CAD装置用の新たなモジュールを生成することを
特徴とする。
According to the second aspect of the invention, a CA for connecting a plurality of sequence program modules to create a sequence program for a programmable controller.
A module generation method for a sequence program used in a D device, wherein a sequence program stored in the programmable controller is loaded into the CAD device, a block range to be extracted from the sequence program is specified, and a block in the specified range is specified. In order to create the cross reference data by organizing the constituent members of the sequence program in the output element unit, and based on the cross reference data, the attributes of the constituent members of the sequence program are specified as the constituent members. If it is used only within the block of the range, it will be marked as "internal", and if the component is also used outside the block of the specified range, it will be marked as "external" and the block of the specified range will be marked. For the CAD device with the attribute And generates a new module.

【0011】請求項3記載の発明にあっては、前記クロ
スリファレンスデータは、シーケンスプログラムの構成
部材である接点,コイル,レジスタの使用箇所、使用回
数、使用状況から成り、作成後は、前記CAD装置用の
新たなモジュールが生成されるまで記憶させておくこと
を特徴とする。
According to a third aspect of the present invention, the cross-reference data is composed of contact points, coils, and registers, which are constituent members of the sequence program, the use locations, the number of uses, and the use status. It is characterized in that it is stored until a new module for the device is generated.

【0012】[0012]

【作用】このように構成した本発明は次のように作用す
る。
The present invention thus constructed operates as follows.

【0013】請求項1及び請求項2の発明では、プログ
ラマブルコントローラから取出した所定の領域のプログ
ラムをCAD装置の新たなモジュールとする場合、取出
したプログラムは自動的に属性が付されて新たなモジュ
ールとされるので、従来のように属性を付け直す操作が
不要であり、作業性の向上と、モジュールの作成の信頼
性を向上することができる。
According to the first and second aspects of the present invention, when the program in the predetermined area taken out from the programmable controller is set as a new module of the CAD device, the taken-out program is automatically added with an attribute and a new module is added. Therefore, it is not necessary to re-assign attributes as in the prior art, and it is possible to improve workability and module creation reliability.

【0014】請求項3の発明では、クロスリファレンス
データが新たなモジュールが作成されるまで記憶されて
いるので、属性を付すための検索時間を短縮することが
でき、作業効率を向上させることができる。
According to the third aspect of the present invention, since the cross-reference data is stored until a new module is created, the search time for assigning attributes can be shortened and the work efficiency can be improved. .

【0015】[0015]

【発明の実施の形態】以下、本発明の一実施形態を図面
に基づいて説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to the drawings.

【0016】図1は、本発明にかかるシーケンスデータ
のモジュール生成方法を実行する装置の概略構成を示す
ブロック図である。
FIG. 1 is a block diagram showing the schematic arrangement of an apparatus for executing the sequence data module generation method according to the present invention.

【0017】このシーケンスデータのモジュール生成方
法は図1のCAD装置10で実行される。CAD装置1
0はCRT12上にシーケンスデータを写し出し、オペ
レータはこの画面を見ながらシーケンスデータを作成し
たり、後述のプログラマブルコントローラにこのプログ
ラムをロードさせたりする。
This sequence data module generation method is executed by the CAD device 10 of FIG. CAD device 1
0 displays the sequence data on the CRT 12, and the operator creates the sequence data while looking at this screen or causes the programmable controller described later to load this program.

【0018】プログラマブルコントローラ15は、生産
機械の動作を制御する装置であり、CAD装置10から
送られたプログラムにしたがって生産機械の動作を制御
する。なお、図示されていないが、このプログラマブル
コントローラにはプログラムの変更をすることができる
ペンダントを接続することができるようになっており、
このペンダントを用いて、ロードしたプログラムを変更
したり新たなプログラムを追加したりすることができる
ようになっている。
The programmable controller 15 is a device for controlling the operation of the production machine, and controls the operation of the production machine according to the program sent from the CAD device 10. Although not shown, a pendant that can change the program can be connected to this programmable controller.
With this pendant, you can change the loaded program or add a new program.

【0019】CAD装置10には、たとえば図2、図
3、図4に示してあるようなシーケンスプログラムが作
成され、それぞれモジュールA,モジュールB,モジュ
ールCと名付けられている。
A sequence program as shown in FIGS. 2, 3, and 4, for example, is created in the CAD device 10 and named as module A, module B, and module C, respectively.

【0020】モジュールAの第1ブロックでは、入力X
000とX001が共にオンになっているときにレジス
タR000とランプなどの外部出力Y000がオンにな
る。また、第2ブロックでは、入力X002と第1ブロ
ックの結果であるR000が共にオンになっているとき
にレジスタR0F0と外部出力Y001がオンになる。
In the first block of module A, the input X
000 and X001 are both turned on, the register R000 and the external output Y000 such as a lamp are turned on. Further, in the second block, the register R0F0 and the external output Y001 are turned on when both the input X002 and the result R000 of the first block are turned on.

【0021】したがって、このモジュールAの属性は、
[「インターナル」 R000][「エクスターナル」
R0F0]となる。
Therefore, the attribute of this module A is
["Internal" R000] ["External"
R0F0].

【0022】同様に、モジュールBの第1ブッロクで
は、入力X010とX011が共にオンになっていると
きにレジスタR010と外部出力Y011がオンにな
り、さらにこのモジュールB以外でR0F0がオンされ
ているときには外部出力Y010がオフされる。また、
第2ブロックでは、入力X012と第1ブロックの結果
であるR010が共にオンされたときにレジスタR0F
1がオンされる。
Similarly, in the first block of module B, register R010 and external output Y011 are turned on when inputs X010 and X011 are both turned on, and R0F0 is turned on other than this module B. Sometimes the external output Y010 is turned off. Also,
In the second block, when the input X012 and the result of the first block, R010, are both turned on, the register R0F
1 is turned on.

【0023】したがって、モジュールBの属性は、
[「インターナル」 R010][「エクスターナル」
R0F0,R0F1]となる。
Therefore, the attribute of module B is
["Internal" R010] ["External"
R0F0, R0F1].

【0024】さらに、モジュールCの第1ブロックで
は、入力X031とX033が共にオンになっていると
きに、このモジュールB以外でR0F0がオンしていれ
ば、出力Y020がオンし、さらに、入力X031とX
032が共にオンになっているときに、このモジュール
B以外でR0F0がオンしていれば、出力Y022がオ
ンする。他のモジュールのレジスタR0F0,R0F1
が共にオンであれば、出力Y021がオンする。
Further, in the first block of the module C, when the inputs X031 and X033 are both turned on and the R0F0 is turned on in a module other than this module B, the output Y020 is turned on, and further the input X031 is turned on. And X
When both 032 are turned on, if R0F0 is turned on in a module other than this module B, the output Y022 is turned on. Registers R0F0 and R0F1 of other modules
If both are on, the output Y021 is turned on.

【0025】したがって、モジュールCの属性は、
[「インターナル」 なし][「エクスターナル」 R
0F0,R0F1]となる。
Therefore, the attribute of module C is
[No "Internal"] [External] R
0F0, R0F1].

【0026】CAD装置10では、このようなモジュー
ルAからCを組み合わせて一連のプログラムDを作成
し、これをプログラマブルコントローラ15にロードす
る。
In the CAD device 10, such a module A to C is combined to create a series of programs D, which are loaded into the programmable controller 15.

【0027】このプログラムDが作成される際には、図
5に示すようにCADデータの「分岐」がコントローラ
用データの「分岐」に、CADデータの「シンボル」が
コントローラ用データの「リレー」に、CADデータの
「機能」がコントローラ用データの「機能」に、CAD
データの「PI/Oアドレス」がコントローラ用データ
の「PI/Oアドレス」にそれぞれ変換される。
When this program D is created, as shown in FIG. 5, the "branch" of the CAD data is the "branch" of the controller data, and the "symbol" of the CAD data is the "relay" of the controller data. The CAD data “function” becomes the controller data “function”
The "PI / O address" of the data is converted into the "PI / O address" of the controller data.

【0028】プログラムコントローラ15は、このロー
ドされたプログラムに基づいて生産機械の動作を制御す
る。なお、ロードされるプログラムDを図6に示す。図
示の通り、このプログラムDは、単にモジュールA,
B,Cを順番に繋ぎ合わせたものとなっており、このプ
ログラムDにおいては、全てのレジスタが内部で閉じる
ようになることから、モジュールの「インターナル」,
「エクスターナル」の区別が全くなくなってしまう。
The program controller 15 controls the operation of the production machine based on the loaded program. The loaded program D is shown in FIG. As shown, this program D is simply a module A,
B and C are connected in order, and in this program D, all the registers are closed internally, so the "internal" of the module,
The distinction of "external" is completely lost.

【0029】プログラマブルコントローラ15にロード
されたこのプログラムDを、生産機械の動作を変更する
などの理由で図7のようにブロック4′を追加した場
合、CAD装置10から見ればモジュールB′を変更し
たことに相当する。これを標準的なモジュールB′とし
てCAD装置10に記憶させる場合には、このままで
は、上記のようにモジュールの「インターナル」,「エ
クスターナル」の区別が全くなくなってしまっているた
め、モジュールB′を取出すことができない。
When a block 4'is added to the program D loaded in the programmable controller 15 as shown in FIG. 7 to change the operation of the production machine, the module B'is changed from the viewpoint of the CAD device 10. Equivalent to what you did. When this is stored in the CAD device 10 as a standard module B ′, as it is, the distinction between “internal” and “external” of the module is completely eliminated as described above. I can't get it out.

【0030】そこで、本発明のシーケンスデータのモジ
ュール生成方法は、次のような手順でこのモジュール
B′を作成している。この手順は、図9及び図10のフ
ローチャートに示してある。ここで、図9のフローチャ
ートは、モジュールB′を作成するためのメインフロー
チャートであり、図10は、クロスリファレンスデータ
を作成するためのフローチャートである。
Therefore, in the sequence data module generation method of the present invention, this module B'is created by the following procedure. This procedure is shown in the flow charts of FIGS. Here, the flowchart of FIG. 9 is a main flowchart for creating the module B ′, and FIG. 10 is a flowchart for creating cross reference data.

【0031】まず、CAD装置10は、プログラマブル
コントローラ15に記憶されているプログラムD′を展
開して(S1),モジュールとして切り出す範囲を取り
込む。モジュールB′を取出す場合には、プログラム
D′においては第3、4′4ブロックがモジュールB′
に相当するので、この第3、4′4ブロックが切り出す
範囲となる(S2)。次に、この切り出した範囲で使用
されているレジスタの接点とコイルのクロスリファレン
スデータを作成する処理を行なう(S3)。
First, the CAD device 10 develops the program D'stored in the programmable controller 15 (S1) and takes in a range to be cut out as a module. When the module B'is taken out, the third and fourth 4'th blocks in the program D'are the module B '.
Since this corresponds to, the third and fourth 4'4 blocks are the range to be cut out (S2). Next, a process of creating cross-reference data of the contact point of the register and the coil used in this cut-out range is performed (S3).

【0032】このクロスリファレンスデータは、図10
に示されているフローチャートの手順にしたがって作成
される。まず、シーケンスプログラムがオープンされ
(S11)、ブロックのスタート位置を内部コードレベ
ルで検索する(S12,S13)。ブロックのスタート
位置がみつかれば、接点とコイルとをそのブロックのエ
ンドにるまで検索し、レジスタ単位に、これらの接点と
コイルとがどのブロックで何回使用されているのかが整
理される(S14〜S17)。このような処理を取出し
たモジュールB′及びプログラムD′に対して行ない、
モジュールB′とプログラムD′についてのクロスリフ
ァレンスデータを作成する(S18)。
This cross reference data is shown in FIG.
It is created according to the procedure of the flowchart shown in. First, the sequence program is opened (S11), and the start position of the block is searched at the internal code level (S12, S13). When the start position of the block is found, the contacts and coils are searched until the end of the block, and the number of times these contacts and coils are used in which block is organized in register units ( S14-S17). Such processing is performed for the module B'and the program D'which are extracted,
Cross reference data for the module B'and the program D'is created (S18).

【0033】このようにして作成されたクロスリファレ
ンスデータは、たとえば、図8(a)〜(d)のように
整理される(ただし、この一例は、モジュールB′とは
無関係である)。
The cross-reference data created in this way is organized as shown in, for example, FIGS. 8A to 8D (however, this example is irrelevant to the module B ').

【0034】(a)のコイル使用箇所データは、コイル
R000,R001,R004,R005はいずれのブ
ロックでも使用されていないことを示し、R002は第
5ブロックで、R003は第7ブロックで使用されてい
ることを示している。
The coil use point data of (a) shows that the coils R000, R001, R004, and R005 are not used in any block, R002 is used in the fifth block, and R003 is used in the seventh block. It indicates that

【0035】(b)のコイル使用回数データでは、R0
02とR003がそれぞれ1回づつ使用されていること
を示している。
In the coil use frequency data in (b), R0
02 and R003 are used once each.

【0036】(c)の接点使用回数データでは、接点R
000,R001,R004,R005はいずれのブロ
ックでも使用されていないことを示し、R002は第5
ブロックで、R003は第7ブロックで使用されている
ことを示している。
In the contact use frequency data in (c), the contact R
000, R001, R004, and R005 indicate that they are not used in any block, and R002 is the fifth.
In the block, R003 indicates that it is used in the seventh block.

【0037】(d)のレジスタ使用状況は、8バイトの
フラグデータで表され、1バイト目はA接点の使用不使
用を、2バイト目はB接点の使用不使用を、3バイト目
はコイルの使用不使用をそれぞれ表している。したがっ
て、R002のレジスタ使用状況のデータが00000
111と表されている場合には、R002がA接点とB
接点とコイルにそれぞれ使用されていることを示してい
る。
The register use status of (d) is represented by 8 bytes of flag data. The first byte is the A contact not used, the second byte the B contact not used, and the third byte the coil. Represents use and non-use of, respectively. Therefore, the register usage data of R002 is 00000.
When it is expressed as 111, R002 is the A contact and the B
It shows that they are used for contacts and coils respectively.

【0038】このようにして作成されたモジュールB′
のクロスリファレンスデータをプログラムD′のクロス
リファレンスデータと比較し、モジュールB′のみで使
用されているレジスタには、「インターナル」の属性を
付し、モジュールB′以外でも使用されているレジスタ
には「エクスターナル」の属性を付する。これをモジュ
ールB′の全てのブロックについて行ない、切り出した
ブロックB′を属性が付された状態にしてCAD装置1
0内に格納する(S4〜S8)。
Module B'created in this way
The cross reference data of the program D'is compared with the cross reference data of the program D ', and the register used only in the module B'is given the attribute of "internal", and the register used other than the module B'is added. Has the attribute of "external". This is performed for all the blocks of the module B ', and the cut-out block B'is made to have the attribute attached to the CAD device 1
It is stored in 0 (S4 to S8).

【0039】このようにすれば、プログラマブルコント
ローラ側で変更されたプログラムをCAD装置で新たに
作成することなくモジュール化することができるように
なる。
By doing so, it becomes possible to modularize the program changed on the programmable controller side without newly creating it on the CAD device.

【0040】[0040]

【発明の効果】以上述べたように本発明によれば、各請
求項ごとに次のような効果を奏する。請求項1に記載の
発明にあっては、新たに作成しようとするモジュールの
領域を指定するのみで自動的にCAD装置用の新たなモ
ジュールを属性が付された状態で生成することができる
ので、作業性の向上と、モジュールの作成の信頼性を向
上することができる。
As described above, according to the present invention, the following effects are obtained for each claim. According to the first aspect of the present invention, a new module for a CAD device can be automatically generated in a state in which attributes are added only by designating an area of a module to be newly created. It is possible to improve workability and reliability of module creation.

【0041】請求項2に記載の発明にあっては、指定さ
れた範囲のブロックに存在するシーケンスプログラムの
構成部材を出力要素単位に整理してクロスリファレンン
スデータを作成し、当該クロスリファレンスデータに基
づいて、当該シーケンスプログラムの構成部材の属性
を、その構成部材が前記指定された範囲のブロック内で
のみ使用されていれば「インターナル」とし、その構成
部材が前記指定された範囲のブロック外でも使用されて
いれば「エクスターナル」と付し、前記指定された範囲
のブロックに当該属性を付して前記CAD装置用の新た
なモジュールを生成するようにしたので、属性をオペレ
ータが手作業で付す必要がなく、作業性の向上と、モジ
ュールの作成の信頼性を向上することができる。
According to the second aspect of the invention, the constituent members of the sequence program existing in the blocks in the designated range are arranged in output element units to create cross reference data, and the cross reference data is converted into the cross reference data. Based on this, the attribute of the constituent member of the sequence program is set to "internal" if the constituent member is used only in the block of the specified range, and the constituent member is outside the block of the specified range. However, if it is used, it is marked as "external", and the attribute is manually added to the block in the specified range to generate a new module for the CAD device. Since it is not necessary to attach it, it is possible to improve workability and reliability of module creation.

【0042】請求項3に記載の発明にあっては、クロス
リファレンスデータの作成後は、CAD装置用の新たな
モジュールが生成されるまで、このクロスリファレンス
データを記憶させておくようにしたので、属性を付すた
めの検索時間を短縮することができ、作業効率を向上さ
せることができる。
According to the third aspect of the present invention, after the cross reference data is created, the cross reference data is stored until a new module for the CAD device is created. The search time for assigning attributes can be shortened and work efficiency can be improved.

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

【図1】 本発明にかかるシーケンスデータのモジュー
ル生成方法を実行する装置の概略構成図である。
FIG. 1 is a schematic configuration diagram of an apparatus that executes a sequence data module generation method according to the present invention.

【図2】 CAD装置に記憶されているモジュールAの
具体的な回路図である。
FIG. 2 is a specific circuit diagram of module A stored in a CAD device.

【図3】 CAD装置に記憶されているモジュールBの
具体的な回路図である。
FIG. 3 is a specific circuit diagram of a module B stored in a CAD device.

【図4】 CAD装置に記憶されているモジュールCの
具体的な回路図である。
FIG. 4 is a specific circuit diagram of a module C stored in a CAD device.

【図5】 データ変換の対応図である。FIG. 5 is a correspondence diagram of data conversion.

【図6】 プログラムDの具体的な回路図である。FIG. 6 is a specific circuit diagram of program D.

【図7】 プログラマブルコントローラ側で変更された
プログラムD′の具体的な回路図である。
FIG. 7 is a specific circuit diagram of a program D ′ modified on the programmable controller side.

【図8】 クロスリファレンスデータの作成の説明図で
ある。
FIG. 8 is an explanatory diagram of creating cross-reference data.

【図9】 モジュールB′を作成するためのメインフロ
ーチャートである。
FIG. 9 is a main flowchart for creating a module B ′.

【図10】 クロスリファレンスデータを作成するため
のフローチャートである。
FIG. 10 is a flowchart for creating cross reference data.

【図11】 モジュールB′を作成するための従来の処
理を示す図である。
FIG. 11 is a diagram showing a conventional process for creating a module B ′.

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

10…CAD装置、 15…プログラマブルコントローラ。 10 ... CAD device, 15 ... Programmable controller.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】複数のシーケンスプログラムのモジュール
(A,B,C,…)を連ね、プログラマブルコントロー
ラ(15)のシーケンスプログラム(D)を作成するC
AD装置(10)で用いるシーケンスプログラムのモジ
ュール生成方法であって、 当該プログラマブルコントローラ(15)に記憶されて
いるシーケンスプログラム(D′)を前記CAD装置
(10)にロードし、 当該シーケンスプログラム(D′)から所定の領域のプ
ログラムを取出し、 当該取出したプログラムに属性を付して前記CAD装置
(10)用の新たなモジュール(B′)を生成すること
を特徴とするシーケンスプログラムのモジュール生成方
法。
1. A C for connecting a plurality of sequence program modules (A, B, C, ...) And creating a sequence program (D) of a programmable controller (15).
A method for generating a module of a sequence program used in an AD device (10), comprising loading a sequence program (D ') stored in the programmable controller (15) into the CAD device (10), ')), A program in a predetermined area is taken out, an attribute is added to the taken-out program, and a new module (B') for the CAD device (10) is created, and a module creating method for a sequence program. .
【請求項2】複数のシーケンスプログラムのモジュール
(A,B,C,…)を連ね、プログラマブルコントロー
ラ(15)のシーケンスプログラム(D)を作成するC
AD装置(10)で用いるシーケンスプログラムのモジ
ュール生成方法であって、 当該プログラマブルコントローラ(15)に記憶されて
いるシーケンスプログラム(D′)を前記CAD装置
(10)にロードし、 当該シーケンスプログラム(D′)から取出すブロック
範囲(3,4′,4)を指定し、 当該指定された範囲のブロック(3,4′,4)に存在
するシーケンスプログラムの構成部材を出力要素単位に
整理してクロスリファレンンスデータを作成し、 当該クロスリファレンスデータに基づいて、当該シーケ
ンスプログラムの構成部材の属性を、その構成部材が前
記指定された範囲のブロック(3,4′,4)内でのみ
使用されていれば「インターナル」とし、その構成部材
が前記指定された範囲のブロック(3,4′,4)外で
も使用されていれば「エクスターナル」と付し、 前記指定された範囲のブロック(3,4′,4)に当該
属性を付して前記CAD装置(10)用の新たなモジュ
ール(B′)を生成することを特徴とするシーケンスプ
ログラムのモジュール生成方法。
2. A C for connecting a plurality of sequence program modules (A, B, C, ...) And creating a sequence program (D) of a programmable controller (15).
A method for generating a module of a sequence program used in an AD device (10), comprising loading a sequence program (D ') stored in the programmable controller (15) into the CAD device (10), Specify the block range (3,4 ', 4) to be extracted from the block') and arrange the constituent members of the sequence program existing in the block (3,4 ', 4) in the specified range into output element units and cross them. The reference data is created, and the attribute of the constituent member of the sequence program is used only in the block (3, 4 ', 4) of the specified range based on the cross reference data. If it is "internal", its constituent members are outside the blocks (3, 4 ', 4) in the specified range. However, if it is used, it is marked as "external", and the attribute is added to the blocks (3, 4 ', 4) in the specified range, and a new module (B') for the CAD device (10) is added. A method for generating a module of a sequence program, which is characterized in that:
【請求項3】前記クロスリファレンスデータは、シーケ
ンスプログラムの構成部材である接点,コイル,レジス
タの使用箇所、使用回数、使用状況から成り、作成後
は、前記CAD装置(10)用の新たなモジュール
(B′)が生成されるまで記憶させておくことを特徴と
する請求項2記載のシーケンスプログラムのモジュール
生成方法。
3. The cross reference data is composed of a contact point, a coil, a use location of a register, which is a constituent member of a sequence program, the number of times of use, and a use status, and a new module for the CAD device (10) after being created. The module generation method for a sequence program according to claim 2, wherein (B ') is stored until it is generated.
JP7195443A 1995-07-31 1995-07-31 Module generating method for sequential program Pending JPH0944215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7195443A JPH0944215A (en) 1995-07-31 1995-07-31 Module generating method for sequential program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7195443A JPH0944215A (en) 1995-07-31 1995-07-31 Module generating method for sequential program

Publications (1)

Publication Number Publication Date
JPH0944215A true JPH0944215A (en) 1997-02-14

Family

ID=16341158

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7195443A Pending JPH0944215A (en) 1995-07-31 1995-07-31 Module generating method for sequential program

Country Status (1)

Country Link
JP (1) JPH0944215A (en)

Similar Documents

Publication Publication Date Title
JP3488019B2 (en) How to reuse parts of configuration tool for control design
US7721255B2 (en) Sequence program editing apparatus
JP4513806B2 (en) Peripheral device of programmable logic controller and method for creating program
JPH06149554A (en) Device and method for automatically synthesizing program ooeration specification
JPH03257624A (en) Screen language system
JPH0944215A (en) Module generating method for sequential program
JP6794668B2 (en) Programming device
JPH0528088A (en) Method for automatically generating hardware constitution information
JPS63288357A (en) Data editing system
JPH05113818A (en) Numerical controller with multi-program function
JPS61279906A (en) Programmable controller
JPS60247706A (en) Tracking system for system state of facility group controller
JPH07253876A (en) Program generating device
JPS6177913A (en) Automatic system generation system
JPH07160536A (en) Program test supporting device for interactive system
JPS6345603A (en) Program storing system for programmable controller
JP2000131388A (en) Device for setting system configuration of ic testing device
JPS63238627A (en) Editing and outputting system for assemble list
JP2004213148A (en) Plant monitor control system
JPH09128284A (en) File editing device
KR20060085640A (en) Programmable logic controller peripheral device and program creation method thereof
JPH0756717A (en) Automatic jcl preparing device
JPH1195810A (en) Programming device for programmable controller
JPH0210430A (en) Online program generating system
JPH0713752A (en) Control method/device for program revision