JPH08166807A - Control program generating device - Google Patents

Control program generating device

Info

Publication number
JPH08166807A
JPH08166807A JP31146794A JP31146794A JPH08166807A JP H08166807 A JPH08166807 A JP H08166807A JP 31146794 A JP31146794 A JP 31146794A JP 31146794 A JP31146794 A JP 31146794A JP H08166807 A JPH08166807 A JP H08166807A
Authority
JP
Japan
Prior art keywords
program
control
ladder program
control program
ladder
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
JP31146794A
Other languages
Japanese (ja)
Other versions
JP3341064B2 (en
Inventor
Tsunetaka Muranaka
常高 村中
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP31146794A priority Critical patent/JP3341064B2/en
Publication of JPH08166807A publication Critical patent/JPH08166807A/en
Application granted granted Critical
Publication of JP3341064B2 publication Critical patent/JP3341064B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE: To decrease the debugging and maintenance manhour of ladder programs. CONSTITUTION: A high-order ladder program A includes a low-order ladder program entry instruction L1 and when the low-order ladder program entry instruction L1 is specified and a low-order ladder program generation request is inputted, the generation of the ladder program A which is currently generated is interrupted and a ladder program lower in order the ladder program A is generated; when the generation of the low-order ladder program A is finished, the generation of the high-order ladder program A which is interrupted is restarted. Similarly, a ladder program D lower in order than a low-order ladder program C and the low-order ladder program B is generated.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複数の制御命令からな
る制御プログラムを作成する制御プログラム作成装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control program creating device for creating a control program consisting of 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) consisting of control instructions such as a ladder language has become large in capacity, and the program itself is also highly functional. ing.

【0003】このため、制御プログラムの設計、デバッ
グ、メンテナンスを容易にする手段として、制御プログ
ラムをサブルーチンによりモジュール化して管理した
り、制御プログラムの段落分けやコメント文の挿入によ
って制御プログラムを分割化して理解し易くする方法が
取られている。
Therefore, as a means for facilitating the design, debugging, and maintenance of the control program, the control program is modularized and managed by a subroutine, or the control program is divided by dividing the control program into paragraphs or inserting comment sentences. Ways have been taken to make it easier to understand.

【0004】[0004]

【発明が解決しようとする課題】しかし、上記のように
して制御プログラムのモジュール化や段落分け等による
分割化の手段を採用したとしても、制御プログラムの設
計者や保全者は、制御プログラムを全体を管理する必要
があるため、特に作成した制御プログラムのデバッグ/
メンテナンス時に多大な工数が発生する、という問題が
あった。
However, even if the means for modularizing the control program or dividing the control program into paragraphs is adopted as described above, the designer or maintainer of the control program must manage the entire control program. 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 apparatus capable of reducing the number of man-hours for debugging and maintenance of a control program.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、請求項1記載の発明では、複数の制御命令からなる
制御プログラムを作成する制御プログラム作成装置にお
いて、通常の制御命令を入力する通常制御命令入力手段
と、現在作成中の制御プログラムより下位の制御プログ
ラムのエントリを示す下位制御プログラムエントリ命令
を入力する下位制御プログラムエントリ命令入力手段
と、上記下位制御プログラムエントリ命令を指定して、
現在作成中の制御プログラムより下位の制御プログラム
の作成を要求する下位制御プログラム作成要求を入力す
る下位制御プログラム作成要求入力手段と、上記通常制
御命令入力手段および下位制御プログラムエントリ命令
入力手段によって入力した各命令によりプログラムを作
成するプログラム作成手段と、上記プログラム作成手段
によって作成された制御プログラム中に上記下位制御プ
ログラムエントリ命令が有り、かつ、上記下位制御プロ
グラム作成要求入力手段によって上記下位制御プログラ
ムエントリ命令を指定して下位制御プログラム作成要求
が入力した場合には、上記プログラム作成手段に現在作
成中の制御プログラムの作成を中断させて、当該制御プ
ログラムより下位の制御プログラムを作成させると共
に、当該下位の制御プログラムの作成が終了した場合に
は、中断した上位の制御プログラムの作成を再開させる
プログラム作成制御手段と、を具備することを特徴とす
る。
To achieve the above object, in the invention according to claim 1, in a control program creating apparatus for creating a control program consisting of a plurality of control commands, a normal control for inputting a normal control command is performed. An instruction input means, a 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 the lower control program entry instruction,
Input is made by means of a lower-order control program creation request input means for inputting a lower-order control program creation request for requesting creation of a lower-order control program than the control program currently being created, and the above-mentioned normal control command input means and lower-order control program entry command input means. Program creating means for creating a program by each command, and the control program created by the program creating means includes the lower control program entry command, and the lower control program creation request inputting means creates the lower control program entry command. When a lower-order control program creation request is input by specifying, the creation of the control program currently being created is interrupted by the program creating means to create a control program lower than the control program, and 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】また、請求項2記載の発明では、請求項1
記載の制御プログラム作成装置において、プログラム作
成手段によって作成された上位および下位の制御プログ
ラムを記憶するプログラム記憶手段と、上記プログラム
作成手段によって上位および下位の制御プログラムの作
成が終了した場合、上記プログラム記憶手段に記憶され
た上位および下位の制御プログラムを制御装置へ転送す
るプログラム転送手段と、をさらに具備することを特徴
とする。
According to the second aspect of the invention, the first aspect is
In the control program creation device described above, a program storage means for storing the upper and lower control programs created by the program creation means, and the program storage when the creation of the upper and lower control programs by the program creation means is completed. Program transfer means for transferring the upper and lower control programs stored in the means to the control device.

【0008】また、請求項3記載の発明では、請求項1
または請求項2記載の制御プログラム作成装置におい
て、制御プログラムは、複数のラダー命令からなるラダ
ープログラムであることを特徴とする。
According to the invention of claim 3, the invention according to claim 1
Alternatively, in the control program creating apparatus according to the present invention, the control program is a ladder program including a plurality of ladder instructions.

【0009】[0009]

【作用】請求項1記載の発明では、通常は、入力した通
常の制御命令や下位制御プログラムエントリ命令によっ
てプログラムを作成する。そして、その作成された制御
プログラム中に下位制御プログラムエントリ命令が有
り、かつ、下位制御プログラム作成要求が入力した場合
には、現在作成中の制御プログラムの作成を中断して、
当該制御プログラムより下位の制御プログラムを作成す
ると共に、当該下位の制御プログラムの作成が終了した
場合には、中断した上位の制御プログラムの作成を再開
するようにする。
According to the first aspect of the present invention, the program is normally created by the input normal control command or lower control program entry command. When there is a lower control program entry command in the created control program and a lower control program creation request is input, the creation of the control program currently being created is interrupted,
The control program lower than the control program is created, and when the creation of the lower control program is completed, the creation of the interrupted upper control program is restarted.

【0010】また、請求項2記載の発明では、さらに、
そのようにして作成された上位および下位の制御プログ
ラムを記憶し、上位および下位の制御プログラムの作成
が終了した場合には、その記憶された上位および下位の
制御プログラムを制御装置へ転送するようにする。
In the invention according to claim 2, further,
The upper and lower control programs thus created are stored, and when the creation of the upper and lower control programs is completed, the stored upper and lower control programs are transferred to the control device. To do.

【0011】[0011]

【実施例】以下、本発明に係る制御プログラム作成装置
の実施例を図面に基づいて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a control program creating device according to the present invention will be described below with reference to the drawings.

【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") which is a control apparatus.

【0013】この制御プログラム作成装置1は、複数の
制御命令からなる制御プログラムとして複数のラダー命
令からなるラダープログラムを作成し、接続ケーブル3
を介しPLC2へ転送するもので、CPU11と、シス
テムプログラムメモリ12と、キーボード等の入力装置
13と、ディスプレイ等の出力装置14と、外部記憶装
置15と、内部メモリ16と、インタフェース17とを
有しており、外部的にはインタフェース17に接続され
た接続ケーブル3を介してPLC2と接続されている。
The control program creating apparatus 1 creates a ladder program including a plurality of ladder instructions as a control program including a plurality of control instructions, and the connecting cable 3
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. Externally, it is 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 a program creating means, a program creating control means,
5 and functioning as program transfer means, which will be described later.
The processing shown in is performed.

【0015】入力装置13は、通常制御命令入力手段、
下位制御プログラムエントリ命令入力手段、および下位
制御プログラム作成要求入力手段として機能するもの
で、図示はしないが通常のラダー命令を入力するための
各種ラダー命令入力キーや、後述の図2で説明する現在
作成中のラダープログラムより下位のラダープログラム
のエントリを示す下位ラダープログラムエントリ命令を
入力するための下位ラダープログラムエントリ命令入力
キー、および下位ラダープログラムの作成要求を指示す
る下位ラダープログラム作成要求入力キーの押下によ
り、各命令を本装置内へ入力するものである。
The input device 13 is a normal control command input means,
The low-order control program entry command input means and the low-order control program creation request input means function as various low-order control command input keys for inputting normal ladder commands, which are not shown, and the present-day description described with reference to FIG. Of the lower ladder program entry command input key for inputting the lower ladder program entry command that indicates the entry of the lower ladder program than the ladder program being created, and the lower ladder program creation request input key for instructing the creation request of the lower ladder program. When pressed, each command is input into this device.

【0016】外部記憶装置15は、プログラム記憶手段
としてCPU11によって作成された上位および下位の
ラダープログラムをラダープログラムエリアに記憶する
ものである。なお、内部メモリ16にこのプログラム記
憶手段としての機能を持たせるようにしてもよい。
The external storage device 15 serves as a program storage means for storing the upper and lower ladder programs created by the CPU 11 in the ladder program area. The internal memory 16 may have a function as the 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, and
System program memory 23 and work memory 24
, User program memory 25, interface 2
6 and 6 are connected by a bus 27.

【0018】図2は、入力装置13によって本装置内に
入力する下位ラダープログラムエントリ命令を示してい
る。
FIG. 2 shows a low-order ladder program entry command which is input into this apparatus by the input device 13.

【0019】この下位ラダープログラムエントリ命令L
は、下位ラダープログラムのエントリを示す“LOWE
R”の命令語L1と、当該下位のラダープログラムのプ
ログラム番号である“000”を示すオペランドL2と
から構成されている。
This lower ladder program entry instruction L
Indicates "LOWE", which indicates the entry of the lower ladder program.
It is composed of an instruction word L1 of R "and an operand L2 indicating" 000 "which is the program number of the lower ladder program.

【0020】図3は、図2に示す下位ラダープログラム
エントリ命令を使用して作成した上位および下位のラダ
ープログラムの具体例を示している。
FIG. 3 shows a specific example of the upper and lower ladder programs created by 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, the ladder program A is the highest ladder program, and the ladder programs B and C are ladder programs A. It is shown that the lower-order ladder program D and the ladder program D whose call source is the lower-order ladder program D whose call source is the ladder program B, respectively.

【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 means that the a contact instruction S1
And the program number "00" of the lower ladder program B
The existence of a lower ladder program entry circuit A1 consisting of a lower ladder program entry instruction L1 "LOWER 000" with 0 "as an operand is substituted, and the existence of the lower ladder program C depends on the a contact instruction S2 and the lower ladder program. C program number "0
It is substituted by the existence of a lower ladder program entry circuit C2 composed 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の存在によって代用され
ている。
The existence of the lower-order ladder program D in the lower-order ladder program B means that the a contact instruction S3 and the program number "0" of the lower-order ladder program D are present.
This is substituted by the existence of the lower ladder program entry circuit C3 including the lower ladder program entry instruction L3 "LOWER002" with "02" as an operand.

【0024】なお、この図3は、ラダープログラム作成
処理におけるディスプレイ等の出力装置14上における
表示画面も示しており、上記上位および下位の各ラダー
プログラムA〜Dは、原則としてこの図3に示すように
別々の画面でに出力装置14上に表示される。つまり、
上記上位および下位の各ラダープログラムA〜Dは、プ
ログラムとしては別々になるので、ディスプレイ等の出
力装置14上の同一画面上にはプログラムの呼び出し処
理等をした場合を除き原則として、他の上位および下位
の各ラダープログラムA〜Dと同時に表示されないよう
に制御されている。
Note that FIG. 3 also shows a display screen on the output device 14 such as a display in the ladder program creating process, and the upper and lower ladder programs A to D are shown in principle in FIG. Are displayed on the output device 14 in separate screens. That is,
Since the upper and lower ladder programs A to D are separate as programs, as a general rule, except for the case where a program calling process or the like is performed on the same screen on the output device 14 such as a display, the other upper programs. It is controlled so as not to be displayed at the same time as the lower ladder programs A to D.

【0025】図4は、図3に示された上位および下位の
ラダープログラムA〜Dからなるラダープログラムの外
部記憶装置15における格納状態を示している。
FIG. 4 shows a storage state in the external storage device 15 of the ladder program including the upper and lower ladder programs A to D shown in FIG.

【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 not stored as separate files but are stored as one file. One ladder program area 15a is divided to store the upper ladder program area 15a. 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 relationships are associated and the upper and lower ladder programs A to D are stored in the respective divided areas. I am trying to do it.

【0027】このように格納すれば、このユーザプログ
ラムがPLC2に転送されるときには1つのラダープロ
グラムエリア15aの全てのラダープログラムA〜Dが
転送されることになる。
If stored in this way, when this user program is transferred to the PLC 2, all the ladder programs A to D in one ladder program area 15a will be transferred.

【0028】次に、このように構成された本発明に係る
制御プログラム作成装置のCPU11によるラダープロ
グラムの作成および転送処理について、図面を参照して
説明する。
Next, the ladder program creation and transfer processing by the CPU 11 of the control program creation apparatus according to the present invention thus configured will be described with reference to the drawings.

【0029】図5は、CPU11によるラダープログラ
ムの作成および転送処理を示している。
FIG. 5 shows the ladder program creation and transfer processing by the CPU 11.

【0030】本装置では、まず電源の入力によってCP
U11が起動して(ステップ100)、ラダープログラ
ムの作成完了か否かを判断し(ステップ110)、ラダ
ープログラムの作成が完了してなければ(ステップ11
0“N”)、入力装置13の通常ラダー命令入力キー
や、下位ラダープログラムエントリ命令入力キーによっ
て通常ラダー命令や下位ラダープログラムエントリ命令
を入力してラダープログラムを作成し、その作成したラ
ダープログラムを図4に示すように外部記憶装置15の
ラダープログラムエリア15aの対応するエリアに格納
する(ステップ120)。
In this device, first, the CP is turned on by inputting the power source.
When U11 is started (step 100), it is judged whether or not the ladder program has been created (step 110). If the ladder program has not been created (step 11).
0 “N”), input a normal ladder command or a lower ladder program entry command with the normal ladder command input key of the input device 13 or the lower ladder program entry command input key to create a ladder program, and create the created ladder program. As shown in FIG. 4, it is stored in the corresponding area of the ladder program area 15a of the external storage device 15 (step 120).

【0031】そして、このステップ120におけるラダ
ープログラム作成処理の際、CPU11は、まだ下位ラ
ダープログラム作成要求の入力していない未要求の下位
ラダープログラムエントリ命令の有無を判断すると共に
(ステップ130)、入力装置13によって下位ラダー
プログラム作成要求が入力するか否かを判断する(ステ
ップ140)。
During the ladder program creating process in step 120, the CPU 11 determines whether there is an unrequested lower ladder program entry command for which a lower ladder program creating request has not been input yet (step 130) and inputs it. The device 13 determines whether or not a lower ladder program creation request is input (step 140).

【0032】ここで、作成中のラダープログラム中に未
要求の下位ラダープログラムエントリ命令が無いと判断
された場合は(ステップ130“無”)、通常のラダー
プログラムのプログラミングと変わらずにラダープログ
ラムの作成が完了するまで(ステップ110“N”)、
ラダープログラムの作成を継続する(ステップ12
0)。
Here, if it is determined that there is no unrequested lower ladder program entry instruction in the ladder program being created (step 130 "none"), the ladder program remains unchanged from the normal programming of the ladder program. Until 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 command in the ladder program currently being created (step 130 "Yes"), if it is determined that the lower ladder program creation request has not been input (step 130). 1
40 “N”), similarly continue to create 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 command in the ladder program currently being created, the lower ladder program creation request has not been input, so the lower order in the ladder program currently being created. The lower ladder program is not created with the ladder program entry command still being input, but the normal ladder command or the lower ladder program entry command is input following the lower ladder program entry command to create the ladder program. This is the case to continue.

【0035】図3でこの場合を説明すると、例えば、上
位ラダープログラムAの作成において、下位ラダープロ
グラムエントリ命令L1,L2を入力したが、続いてそ
れらの下位ラダープログラムエントリ命令L1、L2を
指定して下位ラダープログラム作成要求を入力せずに、
そのまま上位ラダープログラムAの作成を続行した場合
である。
Explaining this case with reference to FIG. 3, for example, when the upper ladder program A is created, the lower ladder program entry instructions L1 and L2 are input, and then the lower ladder program entry instructions L1 and L2 are designated. Without inputting a lower ladder program creation request,
This is the case where the creation of the upper ladder program A is continued as it is.

【0036】これに対し、現在作成中のラダープログラ
ム中に下位ラダープログラムエントリ命令が有り(ステ
ップ130“Y”)、かつ、その下位ラダープログラム
エントリ命令を指定して下位ラダープログラム作成要求
が入力した場合は(ステップ140)、CPU11は、
続いて通常ラダー命令や下位ラダープログラムエントリ
命令が入力しても、それらの各命令を現在作成中の当該
上位ラダープログラムには入力させず、それより下位の
ラダープログラムに入力させることによって、当該下位
ラダープログラムエントリ命令についての下位ラダープ
ログラムを作成し、その作成した下位ラダープログラム
を図4に示すように外部記憶装置15のラダープログラ
ムエリア15aの対応するエリアにその上位ラダープロ
グラムと関連付けて格納する(ステップ150)。
On the other hand, the lower ladder program entry command is present in the ladder program currently being created (step 130 "Y"), and the lower ladder program entry request is input by designating the lower ladder program entry command. In the case (step 140), the CPU 11
Then, even if a normal ladder instruction or a lower ladder program entry instruction is input, the respective lower instructions are not input to the upper ladder program currently being created, but are input to the lower ladder program, thereby A low-order ladder program for the ladder program entry instruction is created, and the created low-order ladder program is stored in the corresponding area of the ladder program area 15a of the external storage device 15 in association with the high-order ladder program (see FIG. 4). Step 150).

【0037】つまり、この場合には、上位ラダープログ
ラムの作成中に下位ラダープログラムエントリ命令を入
力して、すぐに続いて当該下位ラダープログラムエント
リ命令を指定して下位ラダープログラム作成要求を入力
する上位プログラムおよびその下位プログラムの作成を
平行に作成していく場合と、下位ラダープログラムエン
トリ命令を入力しても、続いて下位ラダープログラム作
成要求を入力せずに上位のラダープログラムの作成を続
行して、その上位ラダープログラムの作成が終了した後
に、当該上位ラダープログラム中の当該下位ラダープロ
グラムエントリ命令を指定して下位ラダープログラム作
成要求を入力する上位プログラムの作成後にその下位プ
ログラムを順次作成していく場合とがある。
That is, in this case, the lower ladder program entry command is input during the preparation of the upper ladder program, and immediately thereafter, the lower ladder program entry command is designated to input the lower ladder program creation request. When creating a program and its subordinate programs in parallel, or even when a subordinate ladder program entry command is input, continue creating the superordinate ladder program without inputting a subordinate ladder program creation request. After creating the upper ladder program, specify the lower ladder program entry command in the upper ladder program and input the lower ladder program creation request, and then create the lower program sequentially after creating the upper program. There are cases.

【0038】図3でこの場合を説明すると、前者の場合
は、例えば、上位ラダープログラムAの作成において、
下位ラダープログラムエントリ命令L1,L2を入力し
た際、続いてそれらの下位ラダープログラムエントリ命
令L1、L2を指定して下位ラダープログラム作成要求
を入力して、下位ラダープログラムB,Cの作成を続行
し、下位ラダープログラムB,Cの作成終了後、その上
位ラダープログラムAの作成を再開する場合である。
This case will be described with reference to FIG. 3. In the former case, for example, in creating the upper ladder program A,
When the lower ladder program entry commands L1 and L2 are input, subsequently, the lower ladder program entry commands L1 and L2 are designated to input the lower ladder program creation request, and the creation of the lower ladder programs B and C is continued. After the creation of the lower ladder programs B and C, 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, when the upper ladder program A is created, the lower ladder program entry commands L1 and L2 are input, but then these commands L1 and L2 are designated to request the creation of the lower ladder program. Continue to create the upper ladder program A without inputting, and after the completion of the upper ladder program A, specify the lower ladder program entry instructions L1 and L2 in the upper ladder program A and request to create the lower ladder program. Is input to create the lower ladder programs B and C.

【0040】なお、下位ラダープログラムの作成は、下
位ラダープログラムエントリ命令Lのオペランドとして
設定された当該下位ラダープログラムのプログラム番号
とリンクした状態で行う。
The lower ladder program is created in a state of 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 upper ladder program of the lower ladder program which is the ladder program that called the lower ladder program (step 170), Creation of the ladder program is continued (step 130).

【0042】そして最後に、最上位のラダープログラム
中に未要求の下位ラダープログラムエントリ命令がなく
なり(ステップ130“無”)、かつ、ラダープログラ
ムの作成が完了したと判断された場合は(ステップ11
0“Y”)、上位および下位の全ラダープログラムの作
成が終了したことを示しているため、CPU11は、図
2に示すように外部記憶装置15のラダープログラムエ
リア15aの対応するエリアに格納された上位および下
位からなるラダープログラムを一括してオブジェクト変
換してPLC2へ転送する(ステップ180)。
Finally, if there is no unrequested lower ladder program entry instruction in the highest ladder program (step 130 "none") and it is judged that the ladder program has been created (step 11).
0 "Y"), which indicates that the creation of all the upper and lower ladder programs has been completed, so the CPU 11 stores the ladder programs in the corresponding area of the ladder program area 15a of the external storage device 15 as shown in FIG. The upper and lower ladder programs are collectively converted into objects and transferred to the PLC 2 (step 180).

【0043】なお、上記ステップ150における下位ラ
ダープログラムの作成処理において、その下位ラダープ
ログラム中に下位ラダープログラムエントリ命令が有
り、かつ、その下位ラダープログラムエントリ命令を指
定して下位ラダープログラム作成要求が入力した場合
は、上記ステップ130および上記ステップ140の判
断によって、ステップ150の処理へ移行して、その下
位ラダープログラムよりさらに下位のラダープログラム
の作成を行って、外部記憶装置15に格納するようにす
る。
In the creation process of the lower ladder program in the above step 150, there is a lower ladder program entry command in the lower ladder program, and the lower ladder program creation request is input by designating the lower ladder program entry command. In such a case, depending on the judgments of the above step 130 and the above step 140, the processing shifts to step 150, 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が作成される
場合である。
To explain this case with reference to FIG. 3, the lower ladder program entry command L3 is inputted during the preparation of the lower ladder program B, and the lower ladder program entry request is inputted by designating the lower ladder program entry instruction L3. This is the case, and in this case, the lower ladder program D is created in the lower ladder program B.

【0045】従って、本実施例によれば、現在作成中の
ラダープログラム中に未要求の下位ラダープログラムエ
ントリ命令が有り、かつ、その未要求の下位ラダープロ
グラムエントリ命令を指定して下位ラダープログラム作
成要求が入力した場合には、現在作成中のそのラダープ
ログラムの作成を中断して、当該ラダープログラムより
下位のラダープログラムを作成すると共に、当該下位の
ラダープログラムの作成が終了した場合には、中断した
上位のラダープログラムの作成を再開するようにしたた
ため、ラダープログラムを上位および下位のラダープロ
グラムに任意に分けて階層的に構成できる。
Therefore, according to this embodiment, there is an unrequested lower ladder program entry command in the ladder program currently being created, and the unrequested lower ladder program entry command is designated to create the lower ladder program. When a request is input, the creation of the ladder program that is 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, it is interrupted. Since the creation of the upper ladder program is restarted, the ladder program can be arbitrarily divided into the upper ladder program and the lower ladder program, and can be hierarchically configured.

【0046】このため、例えばメインシーケンスを上位
ラダープログラム、詳細シーケンスを下位ラダープログ
ラムというように分けることにより、ラダープログラム
のデバッグやメンテナンス箇所を絞り込むことができ、
それに費やす工数を削減することができる。
Therefore, 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 points of the ladder program can be narrowed down.
It is possible to reduce the man-hours spent for that.

【0047】また、上位および下位の各ラダープログラ
ムは、プログラム量が減少するため、設計担当者ばかり
でなく第三者にとっても理解し易く、かつ、管理等し易
いプログラムとなる。
Further, since the upper and lower ladder programs have a reduced program amount, not only the person in charge of designing but also a third person can easily understand and manage the programs.

【0048】さらに、ラダープログラムが上位および下
位のラダープログラムにブロック分けされてプログラミ
ングされるため、下位のラダープログラムの変更に対し
ても、上位のラダープログラムに影響することなく変更
することができる。
Further, since the ladder program is divided into upper and lower ladder programs and programmed, it is possible to change the lower ladder program without affecting the upper ladder program.

【0049】[0049]

【発明の効果】以上説明したように本発明では、新たに
下位ラダープログラムエントリ命令という命令を設け、
現在作成中のラダープログラム中に下位ラダープログラ
ムエントリ命令が有り、かつ、その下位ラダープログラ
ムエントリ命令を指定して下位ラダープログラム作成要
求が入力した場合には、現在作成中のそのラダープログ
ラムの作成を中断して、当該ラダープログラムより下位
のラダープログラムを作成すると共に、当該下位のラダ
ープログラムの作成が終了した場合には、中断した上位
のラダープログラムの作成を再開するようにしたため、
ラダープログラムを上位および下位のラダープログラム
に任意に分けて階層的に構成できる。
As described above, according to the present invention, an instruction called a lower ladder program entry instruction is newly provided,
If there is a lower ladder program entry command in the ladder program currently being created, and if a lower ladder program creation request is input by specifying the lower ladder program entry command, create the ladder program currently being created. Since the program was interrupted, a ladder program lower than the ladder program was created, and when the creation of the lower ladder program was completed, the creation of the interrupted upper ladder program was restarted.
Ladder programs can be arbitrarily divided into upper and lower ladder programs and can be configured hierarchically.

【0050】このため、例えばメインシーケンスを上位
ラダープログラム、詳細シーケンスを下位ラダープログ
ラムというように分けることにより、ラダープログラム
のデバッグやメンテナンス箇所を絞り込むことができ、
それに費やす工数を削減することができる。
Therefore, for example, by dividing the main sequence into the upper ladder program and the detailed sequence into the lower ladder program, the debugging and maintenance points of the ladder program can be narrowed down.
It is possible to reduce the man-hours spent for that.

【0051】また、上位および下位の各ラダープログラ
ムは、プログラム量が減少するため、設計担当者ばかり
でなく第三者にとっても、理解し易く、かつ、管理等し
易いプログラムとなる。
Further, since the upper and lower ladder programs have a reduced program amount, not only the person in charge of designing but also a third person can easily understand and manage the programs.

【0052】さらに、ラダープログラムが上位および下
位のラダープログラムにブロック分けされてプログラミ
ングされるため、下位のラダープログラムの変更に対し
ても、上位のラダープログラムに影響することなく変更
することができる。
Further, since the ladder program is divided into upper and lower ladder programs and programmed, it is possible to change the lower ladder program without affecting the upper ladder program.

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

【図1】本発明に係る制御プログラム作成装置の実施例
の構成を示すブロック図。
FIG. 1 is a block diagram showing the configuration of an embodiment of a control program creating 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 by using the lower ladder program entry instruction shown in FIG.

【図4】図3に示されたラダープログラムの外部記憶装
置15における格納状態を示す説明図。
4 is an explanatory diagram showing a storage state of the ladder program shown in FIG. 3 in an external storage device 15. FIG.

【図5】CPUによるラダープログラム作成処理を示す
フローチャート。
FIG. 5 is a flowchart showing a ladder program creation process by the CPU.

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

1 制御プログラム作成装置 11 CPU(プログラム作成手段、プログラム作成制
御手段、プログラム転送手段) 13 入力装置装置(通常制御命令入力手段、下位制御
プログラムエントリ命令入力手段、下位制御プログラム
作成要求入力手段) 15 外部記憶装置(プログラム記憶手段)
1 Control Program Creation Device 11 CPU (Program Creation Means, Program Creation Control Means, Program Transfer Means) 13 Input Device (Normal Control Command Input Means, Lower Control Program Entry Command Input Means, Lower Control Program Creation Request Input Means) 15 External Storage device (program storage means)

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数の制御命令からなる制御プログラム
を作成する制御プログラム作成装置において、 通常の制御命令を入力する通常制御命令入力手段と、 現在作成中の制御プログラムより下位の制御プログラム
のエントリを示す下位制御プログラムエントリ命令を入
力する下位制御プログラムエントリ命令入力手段と、 上記下位制御プログラムエントリ命令を指定して、現在
作成中の制御プログラムより下位の制御プログラムの作
成を要求する下位制御プログラム作成要求を入力する下
位制御プログラム作成要求入力手段と、 上記通常制御命令入力手段および下位制御プログラムエ
ントリ命令入力手段によって入力した各命令によりプロ
グラムを作成するプログラム作成手段と、 上記プログラム作成手段によって作成された制御プログ
ラム中に上記下位制御プログラムエントリ命令が有り、
かつ、上記下位制御プログラム作成要求入力手段によっ
て上記下位制御プログラムエントリ命令を指定して下位
制御プログラム作成要求が入力した場合には、上記プロ
グラム作成手段に現在作成中の制御プログラムの作成を
中断させて、当該制御プログラムより下位の制御プログ
ラムを作成させると共に、当該下位の制御プログラムの
作成が終了した場合には、中断した上位の制御プログラ
ムの作成を再開させるプログラム作成制御手段と、 を具備することを特徴とする制御プログラム作成装置。
1. A control program creating device for creating a control program comprising a plurality of control commands, comprising: a normal control command input means for inputting a normal control command; and a control program entry lower than the control program currently being created. Lower control program entry command input means for inputting the lower control program entry command shown and lower control program creation request for designating the lower control program entry command by designating the lower control program entry command Lower-order control program creation request input means for inputting, a program creation means for creating a program by each command input by the normal control command input means and the lower-level 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,
Further, when the lower-order control program entry is specified and the lower-order control program entry request is input by the lower-order control program creation request input means, the creation of the control program currently being created is interrupted by the program creation means. And a program creation control means for creating a control program lower than the control program and restarting the creation of the interrupted higher control program when the creation of the lower control program is completed. Characteristic control program creation device.
【請求項2】 プログラム作成手段によって作成された
上位および下位の制御プログラムを記憶するプログラム
記憶手段と、 上記プログラム作成手段によって上位および下位の制御
プログラムの作成が終了した場合、上記プログラム記憶
手段に記憶された上位および下位の制御プログラムを制
御装置へ転送するプログラム転送手段と、 をさらに具備することを特徴とする請求項1記載の制御
プログラム作成装置。
2. A program storage means for storing the upper and lower control programs created by the program creating means, and a program storage means for storing the upper and lower control programs when the program creating means completes the creation of the upper and lower control programs. 2. The control program creating device according to claim 1, further comprising: a program transfer unit that transfers the upper and lower control programs that have been created to the control device.
【請求項3】 制御プログラムは、複数のラダー命令か
らなるラダープログラムであることを特徴とする請求項
1または請求項2記載の制御プログラム作成装置。
3. The control program creating device according to claim 1, wherein the control program is a ladder program including a plurality of ladder instructions.
JP31146794A 1994-12-15 1994-12-15 Control program creation device Expired - Lifetime JP3341064B2 (en)

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 true JPH08166807A (en) 1996-06-25
JP3341064B2 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020017225A (en) * 2018-07-27 2020-01-30 オムロン株式会社 Information processor and display program
WO2020246097A1 (en) * 2019-06-07 2020-12-10 オムロン株式会社 Support device and support program
WO2020246096A1 (en) * 2019-06-07 2020-12-10 オムロン株式会社 Support device and support program

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020017225A (en) * 2018-07-27 2020-01-30 オムロン株式会社 Information processor and display program
WO2020021993A1 (en) * 2018-07-27 2020-01-30 オムロン株式会社 Information processing device and display program
WO2020246097A1 (en) * 2019-06-07 2020-12-10 オムロン株式会社 Support device and support program
WO2020246096A1 (en) * 2019-06-07 2020-12-10 オムロン株式会社 Support device and support program
JP2020201636A (en) * 2019-06-07 2020-12-17 オムロン株式会社 Support device and support program
JP2020201635A (en) * 2019-06-07 2020-12-17 オムロン株式会社 Support device and support program
EP3982213A4 (en) * 2019-06-07 2023-03-29 OMRON Corporation Support device and support program

Also Published As

Publication number Publication date
JP3341064B2 (en) 2002-11-05

Similar Documents

Publication Publication Date Title
US5912819A (en) Method for designing an architectural system
EP0388155B1 (en) Process status supervisory system
JPH08166807A (en) Control program generating device
JPS63172303A (en) Programming display method for programmable controller
JPH0410081B2 (en)
JP2000163109A (en) Ladder programming device and its method
WO2022269793A1 (en) Control device and address management method
JP2852402B2 (en) Program development equipment
JPS63211033A (en) Job control system for rerun
JP3503531B2 (en) Online real-time processing system and sub load module replacement method in the system
JPS63157234A (en) Program correcting system
JP3260788B2 (en) Robot control device and method
JPH0721013A (en) System generating system
JPS63180129A (en) Program connection system
JP2000259685A (en) Cad device for designing semiconductor integrated circuit
JPS61168010A (en) Numerical control device
JP2002073691A (en) Cad system for building
JPH05298078A (en) Software parts management and retrieval device
JPS63228341A (en) Program syntax checking system
JPH0654472B2 (en) Micro computer
JPH0348902A (en) Macroinstruction for sequence control
JPH07230397A (en) Method and device for data base control
JPS63254566A (en) Development system for hierarchical circuit descriptive language
JPH0263481A (en) Radiation treatment planning device
JPS60108902A (en) Process input/output method

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