JP3341064B2 - Control program creation device - Google Patents
Control program creation deviceInfo
- Publication number
- JP3341064B2 JP3341064B2 JP31146794A JP31146794A JP3341064B2 JP 3341064 B2 JP3341064 B2 JP 3341064B2 JP 31146794 A JP31146794 A JP 31146794A JP 31146794 A JP31146794 A JP 31146794A JP 3341064 B2 JP3341064 B2 JP 3341064B2
- Authority
- JP
- Japan
- Prior art keywords
- program
- control program
- ladder program
- ladder
- creation
- 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
Landscapes
- Programmable Controllers (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、複数の制御命令からな
る制御プログラムを作成する制御プログラム作成装置に
関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control program creating apparatus for creating a control program including a plurality of control commands.
【0002】[0002]
【従来の技術】近年、プログラマブルコントローラ等の
制御装置においては、ラダー言語等の制御命令からなる
ユーザプログラム(以下、制御プログラムという。)が
大容量化しており、そのプログラム自体も高機能化して
している。2. Description of the Related Art In recent years, in a control device such as a programmable controller, a user program (hereinafter, referred to as a control program) including control instructions in a ladder language or the like has been increased in capacity, and the program itself has also become more sophisticated. ing.
【0003】このため、制御プログラムの設計、デバッ
グ、メンテナンスを容易にする手段として、制御プログ
ラムをサブルーチンによりモジュール化して管理した
り、制御プログラムの段落分けやコメント文の挿入によ
って制御プログラムを分割化して理解し易くする方法が
取られている。For this reason, as a means for facilitating the design, debugging, and maintenance of a control program, the control program is managed by being modularized by subroutines, and the control program is divided by paragraphs of the control program and insertion of comments. Measures have been taken to make it easier to understand.
【0004】[0004]
【発明が解決しようとする課題】しかし、上記のように
して制御プログラムのモジュール化や段落分け等による
分割化の手段を採用したとしても、制御プログラムの設
計者や保全者は、制御プログラムを全体を管理する必要
があるため、特に作成した制御プログラムのデバッグ/
メンテナンス時に多大な工数が発生する、という問題が
あった。However, even if the control program is divided as described above by modularization or paragraph division, the control program designer or maintainer can control the control program as a whole. Since it is necessary to manage the
There is a problem that a large number of man-hours are required during maintenance.
【0005】本発明はこのような問題に着目してなされ
もので、制御プログラムのデバッグやメンテナンス工数
を削減することができる制御プログラム作成装置を提供
することを目的とする。The present invention has been made in view of such a problem, and an object of the present invention is to provide a control program creating device capable of reducing the number of man-hours required for debugging a control program.
【0006】[0006]
【課題を解決するための手段】上記目的を達成するた
め、請求項1記載の発明では、複数の制御命令からなる
制御プログラムを作成する制御プログラム作成装置にお
いて、通常の制御命令を入力する通常制御命令入力手段
と、現在作成中の制御プログラムより下位の制御プログ
ラムのエントリを示す下位制御プログラムエントリ命令
を入力する下位制御プログラムエントリ命令入力手段
と、上記下位制御プログラムエントリ命令を指定して、
現在作成中の制御プログラムより下位の制御プログラム
の作成を要求する下位制御プログラム作成要求を入力す
る下位制御プログラム作成要求入力手段と、上記通常制
御命令入力手段および下位制御プログラムエントリ命令
入力手段によって入力した各命令によりプログラムを作
成するプログラム作成手段と、上記プログラム作成手段
によって作成された制御プログラム中に上記下位制御プ
ログラムエントリ命令が有り、かつ、上記下位制御プロ
グラム作成要求入力手段によって上記下位制御プログラ
ムエントリ命令を指定して下位制御プログラム作成要求
が入力した場合には、上記プログラム作成手段に現在作
成中の制御プログラムの作成を中断させて、当該制御プ
ログラムより下位の制御プログラムを作成させると共
に、当該下位の制御プログラムの作成が終了した場合に
は、中断した上位の制御プログラムの作成を再開させる
プログラム作成制御手段と、を具備することを特徴とす
る。According to the first aspect of the present invention, there is provided a control program creating apparatus for creating a control program comprising a plurality of control instructions, wherein a normal control instruction for inputting a normal control instruction is provided. Instruction input means, lower control program entry instruction input means for inputting a lower control program entry instruction indicating an entry of a control program lower than the control program currently being created, and specifying the lower control program entry instruction,
The lower control program creation request input means for inputting a lower control program creation request for requesting creation of a control program lower than the control program currently being created, and the normal control instruction input means and the lower control program entry instruction input means A program creating means for creating a program by each instruction, the lower control program entry instruction included in the control program created by the program creating means, and the lower control program entry instruction issued by the lower control program creation request input means; Is specified and a lower-level control program creation request is input, the program creation means is interrupted to create the control program currently being created, and a lower-level control program is created from the control program. control When the program creation is completed, characterized by comprising a programming control means for resuming the creation of higher control program of the interrupted, the.
【0007】[0007]
【0008】[0008]
【0009】[0009]
【作用】請求項1記載の発明では、通常は、入力した通
常の制御命令や下位制御プログラムエントリ命令によっ
てプログラムを作成する。そして、その作成された制御
プログラム中に下位制御プログラムエントリ命令が有
り、かつ、下位制御プログラム作成要求が入力した場合
には、現在作成中の制御プログラムの作成を中断して、
当該制御プログラムより下位の制御プログラムを作成す
ると共に、当該下位の制御プログラムの作成が終了した
場合には、中断した上位の制御プログラムの作成を再開
するようにする。According to the first aspect of the present invention, a program is normally created by a normal control instruction or a lower control program entry instruction input. If there is a lower-level control program entry instruction in the created control program and a lower-level control program creation request is input, the creation of the currently created control program is interrupted,
A lower-level control program is created from the control program, and when the lower-level control program is created, the interrupted upper-level control program is resumed.
【0010】[0010]
【0011】[0011]
【実施例】以下、本発明に係る制御プログラム作成装置
の実施例を図面に基づいて説明する。BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of a control program creating apparatus according to the present invention.
【0012】図1は、本発明に係る制御プログラム作成
装置の実施例の構成を、制御装置であるプログラマブル
コントローラ(以下、「PLC」という。)と共に示し
ている。FIG. 1 shows a configuration of an embodiment of a control program creating apparatus according to the present invention, together with a programmable controller (hereinafter, referred to as "PLC") as a control apparatus.
【0013】この制御プログラム作成装置1は、複数の
制御命令からなる制御プログラムとして複数のラダー命
令からなるラダープログラムを作成し、接続ケーブル3
を介しPLC2へ転送するもので、CPU11と、シス
テムプログラムメモリ12と、キーボード等の入力装置
13と、ディスプレイ等の出力装置14と、外部記憶装
置15と、内部メモリ16と、インタフェース17とを
有しており、外部的にはインタフェース17に接続され
た接続ケーブル3を介してPLC2と接続されている。The control program creation device 1 creates a ladder program consisting of a plurality of ladder instructions as a control program consisting of a plurality of control instructions.
And a CPU 11, a system program memory 12, an input device 13 such as a keyboard, an output device 14 such as a display, an external storage device 15, an internal memory 16, and an interface 17. It is externally connected to the PLC 2 via the connection cable 3 connected to the interface 17.
【0014】CPU11は、システムプログラムメモリ
12に格納されたシステムプログラムを実行することに
よってプログラム作成手段、プログラム作成制御手段、
およびプログラム転送手段として機能して、後述の図5
に示す処理を行うものである。The CPU 11 executes a system program stored in the system program memory 12 to execute program creation means, program creation control means,
5 which functions as a program transfer means and which will be described later with reference to FIG.
Is performed.
【0015】入力装置13は、通常制御命令入力手段、
下位制御プログラムエントリ命令入力手段、および下位
制御プログラム作成要求入力手段として機能するもの
で、図示はしないが通常のラダー命令を入力するための
各種ラダー命令入力キーや、後述の図2で説明する現在
作成中のラダープログラムより下位のラダープログラム
のエントリを示す下位ラダープログラムエントリ命令を
入力するための下位ラダープログラムエントリ命令入力
キー、および下位ラダープログラムの作成要求を指示す
る下位ラダープログラム作成要求入力キーの押下によ
り、各命令を本装置内へ入力するものである。The input device 13 includes a normal control command input means,
It functions as a lower control program entry command input means and a lower control program creation request input means. Although not shown, various ladder command input keys for inputting a normal ladder command, and a current ladder command input key described later with reference to FIG. A lower ladder program entry instruction input key for inputting a lower ladder program entry instruction indicating an entry of a ladder program lower than the ladder program being created, and a lower ladder program creation request input key for instructing a lower ladder program creation request By pressing, each command is input into the apparatus.
【0016】外部記憶装置15は、プログラム記憶手段
としてCPU11によって作成された上位および下位の
ラダープログラムをラダープログラムエリアに記憶する
ものである。なお、内部メモリ16にこのプログラム記
憶手段としての機能を持たせるようにしてもよい。The external storage device 15 stores upper and lower ladder programs created by the CPU 11 as program storage means in a ladder program area. The internal memory 16 may have a function as this program storage means.
【0017】また、PLC2は、一般的に構成されてお
り、マイクロプロセッサ21と、I/Oメモリ22と、
システムプログラムメモリ23と、ワークメモリ24
と、ユーザプログラムメモリ25と、インタフェース2
6とをバス27で接続して構成されている。The PLC 2 is generally constructed, and includes a microprocessor 21, an I / O memory 22,
A system program memory 23 and a work memory 24
, User program memory 25, and interface 2
6 are connected by a bus 27.
【0018】図2は、入力装置13によって本装置内に
入力する下位ラダープログラムエントリ命令を示してい
る。FIG. 2 shows a lower ladder program entry instruction input into the apparatus by the input device 13.
【0019】この下位ラダープログラムエントリ命令L
は、下位ラダープログラムのエントリを示す“LOWE
R”の命令語L1と、当該下位のラダープログラムのプ
ログラム番号である“000”を示すオペランドL2と
から構成されている。This lower ladder program entry instruction L
Indicates “LOW” indicating an entry of a lower ladder program.
An instruction word L1 of "R" and an operand L2 indicating "000" which is a program number of the lower ladder program.
【0020】図3は、図2に示す下位ラダープログラム
エントリ命令を使用して作成した上位および下位のラダ
ープログラムの具体例を示している。FIG. 3 shows a specific example of the upper and lower ladder programs created using the lower ladder program entry instruction shown in FIG.
【0021】この図3では、ある1つのラダープログラ
ムが上位および下位のラダープログラムA〜Dから構成
されており、ラダープログラムAが最上位のラダープロ
グラムであり、ラダープログラムB,Cがラダープログ
ラムAを呼び出し元とする下位のラダープログラム、ラ
ダープログラムDがラダープログラムBを呼び出し元と
するさらに下位のラダープログラムDであることを示し
ている。In FIG. 3, one ladder program is composed of upper and lower ladder programs A to D. Ladder program A is the uppermost ladder program, and ladder programs B and C are ladder programs A and D. Indicates that the ladder program D is a lower ladder program D having the ladder program B as a calling source.
【0022】そして、上位ラダープログラムA中におけ
る下位ラダープログラムBの存在は、a接点命令S1
と、下位ラダープログラムBのプログラム番号“00
0”をオペランドとした下位ラダープログラムエントリ
ー命令L1“LOWER 000”とからなる下位ラダ
ープログラムエントリ回路A1 の存在によって代用され
ており、下位ラダープログラムCの存在は、a接点命令
S2と、下位ラダープログラムCのプログラム番号“0
10”をオペランドとした下位ラダープログラムエント
リー命令L2“LOWER 010”とからなる下位ラ
ダープログラムエントリ回路C2の存在によって代用さ
れている。The existence of the lower ladder program B in the upper ladder program A is determined by the contact a
And the program number “00” of the lower ladder program B
The lower ladder program entry circuit A1 composed of a lower ladder program entry instruction L1 "LOWER 000" having "0" as an operand is substituted for the lower ladder program entry C2. C program number "0"
This is substituted by the presence of a lower ladder program entry circuit C2 consisting of a lower ladder program entry instruction L2 "LOWER 010" with "10" as an operand.
【0023】また、下位ラダープログラムB中における
さらに下位のラダープログラムDの存在は、a接点命令
S3と、下位ラダープログラムDのプログラム番号“0
02”をオペランドとした下位ラダープログラムエント
リー命令L3“LOWER002”とからなる下位ラダ
ープログラムエントリ回路C3の存在によって代用され
ている。Further, the existence of the lower order ladder program D in the lower order ladder program B is based on the a contact instruction S3 and the program number “0” of the lower order ladder program D.
02 "is substituted by the presence of a lower ladder program entry circuit C3 comprising a lower ladder program entry instruction L3" LOWER002 "having an operand of" 02 ".
【0024】なお、この図3は、ラダープログラム作成
処理におけるディスプレイ等の出力装置14上における
表示画面も示しており、上記上位および下位の各ラダー
プログラムA〜Dは、原則としてこの図3に示すように
別々の画面でに出力装置14上に表示される。つまり、
上記上位および下位の各ラダープログラムA〜Dは、プ
ログラムとしては別々になるので、ディスプレイ等の出
力装置14上の同一画面上にはプログラムの呼び出し処
理等をした場合を除き原則として、他の上位および下位
の各ラダープログラムA〜Dと同時に表示されないよう
に制御されている。FIG. 3 also shows a display screen on the output device 14 such as a display in the ladder program creation process. The upper and lower ladder programs A to D are shown in FIG. 3 in principle. As shown on the output device 14 on separate screens. That is,
Since the upper and lower ladder programs A to D are separately provided as programs, the upper and lower ladder programs A to D are in principle stored on the same screen on the output device 14 such as a display, except for the case where the program is called. And the lower ladder programs A to D are not displayed simultaneously.
【0025】図4は、図3に示された上位および下位の
ラダープログラムA〜Dからなるラダープログラムの外
部記憶装置15における格納状態を示している。FIG. 4 shows a storage state of the ladder program including the upper and lower ladder programs A to D shown in FIG. 3 in the external storage device 15.
【0026】この外部記憶装置15では、上位および下
位のラダープログラムA〜Dを別々のファイルとして記
憶するのではなく1つのファイルとして記憶するもの
で、1つのラダープログラムエリア15aを分割し、上
位ラダープログラム中の下位ラダープログラムエントリ
命令Lのオペランドと下位ラダープログラムのプログラ
ム番号とをリンク等させることにより上位および下位の
関係を関連付けて、各々の分割エリアに上位および下位
のラダープログラムA〜Dを格納するようにしている。In the external storage device 15, the upper and lower ladder programs A to D are stored not as separate files but as one file. One ladder program area 15a is divided into By linking the operand of the lower ladder program entry instruction L in the program and the program number of the lower ladder program, the upper and lower ladder programs A to D are stored in the respective divided areas by associating the upper and lower ladder programs. I am trying to do it.
【0027】このように格納すれば、このユーザプログ
ラムがPLC2に転送されるときには1つのラダープロ
グラムエリア15aの全てのラダープログラムA〜Dが
転送されることになる。With this storage, when this user program is transferred to the PLC 2, all the ladder programs A to D in one ladder program area 15a are transferred.
【0028】次に、このように構成された本発明に係る
制御プログラム作成装置のCPU11によるラダープロ
グラムの作成および転送処理について、図面を参照して
説明する。Next, the process of creating and transferring a ladder program by the CPU 11 of the control program creating apparatus according to the present invention thus configured will be described with reference to the drawings.
【0029】図5は、CPU11によるラダープログラ
ムの作成および転送処理を示している。FIG. 5 shows a process of creating and transferring a ladder program by the CPU 11.
【0030】本装置では、まず電源の入力によってCP
U11が起動して(ステップ100)、ラダープログラ
ムの作成完了か否かを判断し(ステップ110)、ラダ
ープログラムの作成が完了してなければ(ステップ11
0“N”)、入力装置13の通常ラダー命令入力キー
や、下位ラダープログラムエントリ命令入力キーによっ
て通常ラダー命令や下位ラダープログラムエントリ命令
を入力してラダープログラムを作成し、その作成したラ
ダープログラムを図4に示すように外部記憶装置15の
ラダープログラムエリア15aの対応するエリアに格納
する(ステップ120)。In the present apparatus, first, the CP
U11 is activated (step 100), and it is determined whether the creation of the ladder program is completed (step 110). If the creation of the ladder program is not completed (step 11)
0 “N”), a normal ladder command or a lower ladder program entry command is input using the normal ladder command input key of the input device 13 or the lower ladder program entry command input key, and a ladder program is created. As shown in FIG. 4, the program is stored in a corresponding area of the ladder program area 15a of the external storage device 15 (step 120).
【0031】そして、このステップ120におけるラダ
ープログラム作成処理の際、CPU11は、まだ下位ラ
ダープログラム作成要求の入力していない未要求の下位
ラダープログラムエントリ命令の有無を判断すると共に
(ステップ130)、入力装置13によって下位ラダー
プログラム作成要求が入力するか否かを判断する(ステ
ップ140)。At the time of the ladder program creation processing in step 120, the CPU 11 determines whether or not there is an unrequested lower ladder program entry instruction for which a lower ladder program creation request has not yet been input (step 130). It is determined whether or not a lower ladder program creation request is input by the device 13 (step 140).
【0032】ここで、作成中のラダープログラム中に未
要求の下位ラダープログラムエントリ命令が無いと判断
された場合は(ステップ130“無”)、通常のラダー
プログラムのプログラミングと変わらずにラダープログ
ラムの作成が完了するまで(ステップ110“N”)、
ラダープログラムの作成を継続する(ステップ12
0)。Here, when it is determined that there is no unrequested lower ladder program entry instruction in the ladder program being created (step 130 "No"), the ladder program is not changed from the normal ladder program programming. Until the creation is completed (Step 110 “N”)
Continue creating the ladder program (step 12
0).
【0033】また、現在作成中のラダープログラム中に
下位ラダープログラムエントリ命令が有ったとしても
(ステップ130“有”)、下位ラダープログラム作成
要求が入力していないと判断された場合は(ステップ1
40“N”)、同様にそのラダープログラムの作成を続
行して外部記憶装置15に格納する(ステップ12
0)。Even if there is a lower ladder program entry instruction in the ladder program currently being created ("YES" in step 130), if it is determined that a lower ladder program creation request has not been input (step 130). 1
40 "N"), similarly, continue creating the ladder program and store it in the external storage device 15 (step 12).
0).
【0034】つまり、この場合は、現在作成中のラダー
プログラム中に下位ラダープログラムエントリ命令が有
ったとしても、下位ラダープログラム作成要求が入力し
ていないため、現在作成中のラダープログラム中に下位
ラダープログラムエントリ命令が入力したままで、その
下位ラダープログラムは作成されずに、当該下位ラダー
プログラムエントリ命令の後に続いて通常ラダー命令や
下位ラダープログラムエントリ命令の入力が続いてその
ラダープログラムの作成を続行する場合である。In other words, in this case, even if there is a lower ladder program entry instruction in the ladder program currently being created, no lower ladder program creation request has been input, so that the lower ladder program is now being created. The ladder program entry instruction is still input, the lower ladder program is not created, the lower ladder program entry instruction is followed by the input of the normal ladder instruction or lower ladder program entry instruction, and the ladder program is created. If you want to continue.
【0035】図3でこの場合を説明すると、例えば、上
位ラダープログラムAの作成において、下位ラダープロ
グラムエントリ命令L1,L2を入力したが、続いてそ
れらの下位ラダープログラムエントリ命令L1、L2を
指定して下位ラダープログラム作成要求を入力せずに、
そのまま上位ラダープログラムAの作成を続行した場合
である。FIG. 3 illustrates this case. For example, in creating the upper ladder program A, lower ladder program entry instructions L1 and L2 are input, and subsequently, those lower ladder program entry instructions L1 and L2 are designated. Without inputting a request to create a lower ladder program
This is a case where the creation of the upper ladder program A is continued.
【0036】これに対し、現在作成中のラダープログラ
ム中に下位ラダープログラムエントリ命令が有り(ステ
ップ130“Y”)、かつ、その下位ラダープログラム
エントリ命令を指定して下位ラダープログラム作成要求
が入力した場合は(ステップ140)、CPU11は、
続いて通常ラダー命令や下位ラダープログラムエントリ
命令が入力しても、それらの各命令を現在作成中の当該
上位ラダープログラムには入力させず、それより下位の
ラダープログラムに入力させることによって、当該下位
ラダープログラムエントリ命令についての下位ラダープ
ログラムを作成し、その作成した下位ラダープログラム
を図4に示すように外部記憶装置15のラダープログラ
ムエリア15aの対応するエリアにその上位ラダープロ
グラムと関連付けて格納する(ステップ150)。On the other hand, there is a lower ladder program entry instruction in the ladder program currently being created (step 130 "Y"), and a lower ladder program creation request is input by designating the lower ladder program entry instruction. In this case (step 140), the CPU 11
Then, even if a normal ladder instruction or a lower ladder program entry instruction is input, the respective ladder programs are not input to the upper ladder program currently being created, but are input to a lower ladder program, whereby the lower ladder program is input. A lower ladder program for the ladder program entry instruction is created, and the created lower ladder program is stored in a corresponding area of the ladder program area 15a of the external storage device 15 as shown in FIG. 4 in association with the upper ladder program ( Step 150).
【0037】つまり、この場合には、上位ラダープログ
ラムの作成中に下位ラダープログラムエントリ命令を入
力して、すぐに続いて当該下位ラダープログラムエント
リ命令を指定して下位ラダープログラム作成要求を入力
する上位プログラムおよびその下位プログラムの作成を
平行に作成していく場合と、下位ラダープログラムエン
トリ命令を入力しても、続いて下位ラダープログラム作
成要求を入力せずに上位のラダープログラムの作成を続
行して、その上位ラダープログラムの作成が終了した後
に、当該上位ラダープログラム中の当該下位ラダープロ
グラムエントリ命令を指定して下位ラダープログラム作
成要求を入力する上位プログラムの作成後にその下位プ
ログラムを順次作成していく場合とがある。That is, in this case, a lower ladder program entry instruction is input during the creation of the upper ladder program, and immediately thereafter, the lower ladder program entry instruction is designated and a lower ladder program creation request is input. When creating a program and its lower-level programs in parallel, and when entering a lower-level ladder program entry instruction, continue creating a higher-level ladder program without entering a lower-level ladder program creation request. After the creation of the upper ladder program is completed, the lower ladder program is sequentially created after the creation of the upper ladder program which specifies the lower ladder program entry instruction in the upper ladder program and inputs a lower ladder program creation request. There are cases.
【0038】図3でこの場合を説明すると、前者の場合
は、例えば、上位ラダープログラムAの作成において、
下位ラダープログラムエントリ命令L1,L2を入力し
た際、続いてそれらの下位ラダープログラムエントリ命
令L1、L2を指定して下位ラダープログラム作成要求
を入力して、下位ラダープログラムB,Cの作成を続行
し、下位ラダープログラムB,Cの作成終了後、その上
位ラダープログラムAの作成を再開する場合である。FIG. 3 illustrates this case. In the former case, for example, in creating the upper ladder program A,
When the lower ladder program entry instructions L1 and L2 are input, a lower ladder program creation request is input by designating the lower ladder program entry instructions L1 and L2, and the creation of the lower ladder programs B and C is continued. After the creation of the lower ladder programs B and C is completed, the creation of the upper ladder program A is restarted.
【0039】また、後者の場合は、例えば、上位ラダー
プログラムAの作成において、下位ラダープログラムエ
ントリ命令L1,L2を入力したが、続いてそれらの命
令L1、L2を指定して下位ラダープログラム作成要求
を入力せずに、そのまま上位ラダープログラムAの作成
を続行し、上位ラダープログラムAの作成終了後に、当
該上位ラダープログラムA中の下位ラダープログラムエ
ントリ命令L1,L2を指定して下位ラダープログラム
作成要求を入力して、下位ラダープログラムB,Cを作
成していく場合である。In the latter case, for example, in the creation of the upper ladder program A, the lower ladder program entry instructions L1 and L2 are input, and subsequently the lower ladder program creation request is designated by designating those instructions L1 and L2. , The creation of the upper ladder program A is continued, and after the creation of the upper ladder program A is completed, the lower ladder program entry request L1, L2 in the upper ladder program A is designated and the lower ladder program creation request is issued. Is input to create lower-order ladder programs B and C.
【0040】なお、下位ラダープログラムの作成は、下
位ラダープログラムエントリ命令Lのオペランドとして
設定された当該下位ラダープログラムのプログラム番号
とリンクした状態で行う。The lower ladder program is created while being linked with the program number of the lower ladder program set as the operand of the lower ladder program entry instruction L.
【0041】そして、当該下位ラダープログラムの作成
が終了した場合(ステップ160“Y”)、当該下位ラ
ダープログラムを呼び出したラダープログラムである当
該下位ラダープログラムの上位のラダープログラムに戻
り(ステップ170)、当該ラダープログラムの作成を
続行する(ステップ130)。When the creation of the lower ladder program is completed (step 160 "Y"), the process returns to the ladder program which is the ladder program which called the lower ladder program and which is higher than the lower ladder program (step 170). The creation of the ladder program is continued (step 130).
【0042】そして最後に、最上位のラダープログラム
中に未要求の下位ラダープログラムエントリ命令がなく
なり(ステップ130“無”)、かつ、ラダープログラ
ムの作成が完了したと判断された場合は(ステップ11
0“Y”)、上位および下位の全ラダープログラムの作
成が終了したことを示しているため、CPU11は、図
2に示すように外部記憶装置15のラダープログラムエ
リア15aの対応するエリアに格納された上位および下
位からなるラダープログラムを一括してオブジェクト変
換してPLC2へ転送する(ステップ180)。Finally, when it is determined that there is no unrequested lower ladder program entry instruction in the uppermost ladder program ("NO" in step 130) and that the creation of the ladder program has been completed (step 11).
0 “Y”), indicating that the creation of all the upper and lower ladder programs has been completed, so that the CPU 11 stores the ladder program in the corresponding area of the ladder program area 15 a of the external storage device 15 as shown in FIG. The ladder program including the upper and lower ladder programs is collectively converted into an object and transferred to the PLC 2 (step 180).
【0043】なお、上記ステップ150における下位ラ
ダープログラムの作成処理において、その下位ラダープ
ログラム中に下位ラダープログラムエントリ命令が有
り、かつ、その下位ラダープログラムエントリ命令を指
定して下位ラダープログラム作成要求が入力した場合
は、上記ステップ130および上記ステップ140の判
断によって、ステップ150の処理へ移行して、その下
位ラダープログラムよりさらに下位のラダープログラム
の作成を行って、外部記憶装置15に格納するようにす
る。In the lower ladder program creation processing in step 150, there is a lower ladder program entry instruction in the lower ladder program, and a lower ladder program creation request is input by designating the lower ladder program entry instruction. In this case, the process proceeds to step 150 according to the determinations in steps 130 and 140, a ladder program lower than the lower ladder program is created, and stored in the external storage device 15. .
【0044】図3でこの場合を説明すると、下位ラダー
プログラムBの作成中に下位ラダープログラムエントリ
命令L3を入力して、その下位ラダープログラムエント
リ命令L3を指定して下位ラダープログラム作成要求を
入力した場合であり、この場合には、下位ラダープログ
ラムBにさらに下位のラダープログラムDが作成される
場合である。Referring to FIG. 3, the lower ladder program entry instruction L3 is input during the creation of the lower ladder program B, and the lower ladder program entry instruction L3 is designated and a lower ladder program creation request is input. In this case, a lower ladder program D is created in the lower ladder program B.
【0045】従って、本実施例によれば、現在作成中の
ラダープログラム中に未要求の下位ラダープログラムエ
ントリ命令が有り、かつ、その未要求の下位ラダープロ
グラムエントリ命令を指定して下位ラダープログラム作
成要求が入力した場合には、現在作成中のそのラダープ
ログラムの作成を中断して、当該ラダープログラムより
下位のラダープログラムを作成すると共に、当該下位の
ラダープログラムの作成が終了した場合には、中断した
上位のラダープログラムの作成を再開するようにしたた
ため、ラダープログラムを上位および下位のラダープロ
グラムに任意に分けて階層的に構成できる。Therefore, according to the present embodiment, there is an unrequested lower-order ladder program entry instruction in the ladder program currently being created, and the lower-order ladder program creation instruction is specified by specifying the unrequested lower-order ladder program entry instruction. If a request is input, the creation of the ladder program currently being created is interrupted, a ladder program lower than the ladder program is created, and if the creation of the lower ladder program is completed, the ladder program is interrupted. Since the creation of the higher-order ladder program is restarted, the ladder program can be arbitrarily divided into upper-order and lower-order ladder programs and configured hierarchically.
【0046】このため、例えばメインシーケンスを上位
ラダープログラム、詳細シーケンスを下位ラダープログ
ラムというように分けることにより、ラダープログラム
のデバッグやメンテナンス箇所を絞り込むことができ、
それに費やす工数を削減することができる。For this reason, for example, by dividing the main sequence into a high-order ladder program and the detailed sequence into a low-order ladder program, debugging and maintenance of the ladder program can be narrowed down.
The man-hours spent on it can be reduced.
【0047】また、上位および下位の各ラダープログラ
ムは、プログラム量が減少するため、設計担当者ばかり
でなく第三者にとっても理解し易く、かつ、管理等し易
いプログラムとなる。The upper and lower ladder programs are programs that are easy to understand and easy to manage not only by the designer but also by a third party because the program amount is reduced.
【0048】さらに、ラダープログラムが上位および下
位のラダープログラムにブロック分けされてプログラミ
ングされるため、下位のラダープログラムの変更に対し
ても、上位のラダープログラムに影響することなく変更
することができる。Further, since the ladder program is divided into blocks and programmed into upper and lower ladder programs, the lower ladder program can be changed without affecting the upper ladder program.
【0049】[0049]
【発明の効果】以上説明したように本発明では、新たに
下位ラダープログラムエントリ命令という命令を設け、
現在作成中のラダープログラム中に下位ラダープログラ
ムエントリ命令が有り、かつ、その下位ラダープログラ
ムエントリ命令を指定して下位ラダープログラム作成要
求が入力した場合には、現在作成中のそのラダープログ
ラムの作成を中断して、当該ラダープログラムより下位
のラダープログラムを作成すると共に、当該下位のラダ
ープログラムの作成が終了した場合には、中断した上位
のラダープログラムの作成を再開するようにしたため、
ラダープログラムを上位および下位のラダープログラム
に任意に分けて階層的に構成できる。As described above, in the present invention, an instruction called a lower ladder program entry instruction is newly provided,
If there is a lower ladder program entry instruction in the ladder program currently being created, and a lower ladder program creation request is input by specifying the lower ladder program entry instruction, the ladder program currently being created is created. Interruption, creating a ladder program lower than the ladder program, and when the creation of the lower ladder program is completed, to resume the creation of the interrupted upper ladder program,
The ladder program can be divided into upper and lower ladder programs arbitrarily and configured hierarchically.
【0050】このため、例えばメインシーケンスを上位
ラダープログラム、詳細シーケンスを下位ラダープログ
ラムというように分けることにより、ラダープログラム
のデバッグやメンテナンス箇所を絞り込むことができ、
それに費やす工数を削減することができる。For this reason, for example, by dividing the main sequence into a high-order ladder program and the detailed sequence into a low-order ladder program, debugging and maintenance of the ladder program can be narrowed down.
The man-hours spent on it can be reduced.
【0051】また、上位および下位の各ラダープログラ
ムは、プログラム量が減少するため、設計担当者ばかり
でなく第三者にとっても、理解し易く、かつ、管理等し
易いプログラムとなる。Further, the upper and lower ladder programs are programs that are easy to understand and manage not only by the designer but also by a third party because the program amount is reduced.
【0052】さらに、ラダープログラムが上位および下
位のラダープログラムにブロック分けされてプログラミ
ングされるため、下位のラダープログラムの変更に対し
ても、上位のラダープログラムに影響することなく変更
することができる。Further, since the ladder program is divided into blocks and programmed into upper and lower ladder programs, the lower ladder program can be changed without affecting the upper ladder program.
【図1】本発明に係る制御プログラム作成装置の実施例
の構成を示すブロック図。FIG. 1 is a block diagram showing the configuration of an embodiment of a control program creation device according to the present invention.
【図2】ラダープログラムエントリ命令を示す説明図。FIG. 2 is an explanatory diagram showing a ladder program entry instruction.
【図3】図2に示す下位ラダープログラムエントリ命令
を使用して作成した上位および下位のラダープログラム
の具体例を示す説明図。FIG. 3 is an explanatory diagram showing a specific example of upper and lower ladder programs created using the lower ladder program entry instruction shown in FIG. 2;
【図4】図3に示されたラダープログラムの外部記憶装
置15における格納状態を示す説明図。FIG. 4 is an explanatory diagram showing a storage state of the ladder program shown in FIG. 3 in an external storage device 15;
【図5】CPUによるラダープログラム作成処理を示す
フローチャート。FIG. 5 is a flowchart showing a ladder program creation process by the CPU.
1 制御プログラム作成装置 11 CPU(プログラム作成手段、プログラム作成制
御手段、プログラム転送手段) 13 入力装置装置(通常制御命令入力手段、下位制御
プログラムエントリ命令入力手段、下位制御プログラム
作成要求入力手段) 15 外部記憶装置(プログラム記憶手段)Reference Signs List 1 control program creation device 11 CPU (program creation means, program creation control means, program transfer means) 13 input device device (normal control instruction input means, lower control program entry instruction input means, lower control program creation request input means) 15 external Storage device (program storage means)
フロントページの続き (56)参考文献 特開 昭62−55730(JP,A) 特開 平3−240803(JP,A) 特開 平5−341815(JP,A) 特開 平6−67712(JP,A) 特開 平6−75608(JP,A) 特表 平5−507376(JP,A) (58)調査した分野(Int.Cl.7,DB名) G05B 19/05 Continuation of the front page (56) References JP-A-62-255730 (JP, A) JP-A-3-240803 (JP, A) JP-A-5-341815 (JP, A) JP-A-6-67712 (JP) , A) JP-A-6-75608 (JP, A) JP-A-5-507376 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G05B 19/05
Claims (1)
を作成する制御プログラム作成装置において、 通常の制御命令を入力する通常制御命令入力手段と、 現在作成中の制御プログラムより下位の制御プログラム
のエントリを示す下位制御プログラムエントリ命令を入
力する下位制御プログラムエントリ命令入力手段と、 上記下位制御プログラムエントリ命令を指定して、現在
作成中の制御プログラムより下位の制御プログラムの作
成を要求する下位制御プログラム作成要求を入力する下
位制御プログラム作成要求入力手段と、 上記通常制御命令入力手段および下位制御プログラムエ
ントリ命令入力手段によって入力した各命令によりプロ
グラムを作成するプログラム作成手段と、 上記プログラム作成手段によって作成された制御プログ
ラム中に上記下位制御プログラムエントリ命令が有り、
かつ、上記下位制御プログラム作成要求入力手段によっ
て上記下位制御プログラムエントリ命令を指定して下位
制御プログラム作成要求が入力した場合には、上記プロ
グラム作成手段に現在作成中の制御プログラムの作成を
中断させて、当該制御プログラムより下位の制御プログ
ラムを作成させると共に、当該下位の制御プログラムの
作成が終了した場合には、中断した上位の制御プログラ
ムの作成を再開させるプログラム作成制御手段と、 を具備することを特徴とする制御プログラム作成装置。1. A control program creating apparatus for creating a control program including a plurality of control instructions, comprising: a normal control instruction input means for inputting a normal control instruction; and an entry of a control program lower than the control program currently being created. A lower control program entry instruction input means for inputting a lower control program entry instruction to be indicated, and a lower control program creation request for designating the lower control program entry instruction and requesting creation of a control program lower than the control program currently being created Control program creation request input means for inputting a command, a program creation means for creating a program in accordance with each command input by the normal control command input means and the lower control program entry command input means, and a control created by the program creation means Program The low order control program entry instructions are there in the,
When the lower control program creation request is input by designating the lower control program entry instruction by the lower control program creation request input means, the program creation means interrupts the creation of the control program currently being created. Program creation control means for creating a lower-level control program from the control program and, when the creation of the lower-level control program is completed, restarting the interrupted creation of the upper-level control program. Characteristic control program creation device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP31146794A JP3341064B2 (en) | 1994-12-15 | 1994-12-15 | Control program creation device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP31146794A JP3341064B2 (en) | 1994-12-15 | 1994-12-15 | Control program creation device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH08166807A JPH08166807A (en) | 1996-06-25 |
| JP3341064B2 true JP3341064B2 (en) | 2002-11-05 |
Family
ID=18017582
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP31146794A Expired - Lifetime JP3341064B2 (en) | 1994-12-15 | 1994-12-15 | Control program creation device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3341064B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP7119714B2 (en) * | 2018-07-27 | 2022-08-17 | オムロン株式会社 | Information processing device, display program, and method |
| JP7172864B2 (en) | 2019-06-07 | 2022-11-16 | オムロン株式会社 | Support equipment and support programs |
| JP7234810B2 (en) | 2019-06-07 | 2023-03-08 | オムロン株式会社 | Support equipment and support programs |
-
1994
- 1994-12-15 JP JP31146794A patent/JP3341064B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH08166807A (en) | 1996-06-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3002242B2 (en) | CAD system | |
| JP3341064B2 (en) | Control program creation device | |
| JPH03223901A (en) | Semiconductor manufacturing equipment | |
| JP2000163109A (en) | Ladder programming device and ladder programming method | |
| JP2875135B2 (en) | Program device for programmable controller | |
| JPS61210415A (en) | Crt key input operating device | |
| JP3992767B2 (en) | Computer processing system | |
| JPH0769847B2 (en) | Job control method during rerun | |
| JP2762665B2 (en) | Blog programming device for programmable controller | |
| JP3145090B2 (en) | Information reflection device | |
| JP3260788B2 (en) | Robot control device and method | |
| JPS63157238A (en) | Computer | |
| JP2663600B2 (en) | Control table relocation processing method | |
| JP3277715B2 (en) | Display unit data creation method | |
| JPH023827A (en) | Computer device | |
| KR100224857B1 (en) | Apparatus for editing a design | |
| JPH07244507A (en) | Programming device for programmable controller | |
| JP2002073004A (en) | Screen layout system and screen layout method | |
| JPH0212303A (en) | Peripheral equipment for programmable controller | |
| JPH01277904A (en) | Program display system for pc | |
| JPH03265004A (en) | Processing executing system based on set parameter | |
| JPS6210740A (en) | Interruption processing control system | |
| JPH0290301A (en) | Changing system for module constitution of programmable controller | |
| JPS6349839A (en) | Leading system for electronic computer system | |
| JPH06110670A (en) | Graphic user interface function customizing system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20020710 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080823 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080823 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090823 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100823 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100823 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110823 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110823 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120823 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130823 Year of fee payment: 11 |
|
| EXPY | Cancellation because of completion of term |