JPH0348902A - Macroinstruction for sequence control - Google Patents

Macroinstruction for sequence control

Info

Publication number
JPH0348902A
JPH0348902A JP18494189A JP18494189A JPH0348902A JP H0348902 A JPH0348902 A JP H0348902A JP 18494189 A JP18494189 A JP 18494189A JP 18494189 A JP18494189 A JP 18494189A JP H0348902 A JPH0348902 A JP H0348902A
Authority
JP
Japan
Prior art keywords
program
macro
programmable controller
sequence
basic program
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
JP18494189A
Other languages
Japanese (ja)
Inventor
Shinichi Ikemi
慎一 池見
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP18494189A priority Critical patent/JPH0348902A/en
Publication of JPH0348902A publication Critical patent/JPH0348902A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

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

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明はラダー図を作成するときに、ソフト91フ作
成時のミスの軽減、ン7トウエア製作時間の短縮及びプ
ログラム容量の短縮を計ることに関するものである。
[Detailed Description of the Invention] [Industrial Application Field] This invention aims to reduce errors when creating software 91 files, shorten software production time, and shorten program capacity when creating ladder diagrams. It is related to.

〔従来の技術〕[Conventional technology]

gg5図は従来の回路流用の方法を示すシステム構成図
であシ9図において、(1)はシーケンスプログラム作
成装置、(2)は70ツピーデイスク装置。
Figure 5 is a system configuration diagram showing a conventional circuit diversion method. In Figure 9, (1) is a sequence program creation device, and (2) is a 70-tip disk device.

13) ij 70ツビー、(4)はプログラマブルコ
ントローラ、 +51i(1)と(4)を接続するケー
ブルである。
13) ij70tubi, (4) is a programmable controller, +51i is a cable that connects (1) and (4).

次に動作について説明する。Next, the operation will be explained.

プログラム(ラダー図〕の流用方法は、シーケンスプロ
グラム作成装置(1)にて基本となるプログラムを作成
し、70ツピーデイスク装置(2)Kて作成されたプロ
グラムを70ツビー(3)に登録する。
The method of reusing the program (ladder diagram) is to create a basic program using the sequence program creation device (1), and register the program created using the 70T disk device (2)K to the 70T (3).

フロッピー(3)K登録されたシーケンスプログラムを
再度70ツピーデイスク装置(2)から読出して。
Read the registered sequence program from the floppy disk (3) again from the 70 disk drive (2).

シーケンスプログラム作成装置(1)に登録する。7a
ツピー(3)から読出された基本のシーケンスプログラ
ム作成装置する場合、基本のシーケンス命令。
Register in the sequence program creation device (1). 7a
If the basic sequence program creation device is read from TSP (3), the basic sequence commands.

データ命令等の入力、出力番号及びデータ番号等をシー
ケンスプログラム作成装置より入力して流用回路を作成
する。
A diverted circuit is created by inputting data commands, output numbers, data numbers, etc. from a sequence program creation device.

c発BAが解決しようとする課題〕 従来のシーケンスプログラム作成装置は1以上のように
構成されているので、ソ7トクエ7表作時同一回路を数
置打込まなければならないため。
Problems that the c-based BA is trying to solve] Conventional sequence program creation devices are configured in more than one manner, so when creating a 7-to-que 7 table, the same circuit must be entered in several places.

ソフ鼾り千アの製作時間、が大幅にかかり、打込みオス
及びy−1yンスプログラムの容量が増大する尋の問題
があった。
There was a problem in that the production time of the software was significantly increased and the capacity of the drive male and Y-1 Yence programs increased.

この発明は上記のような問題を解消するためになされた
もので、プログラマブルコントローラのエーザソ7トク
エアの容量が少なくできるとともに、ソフトウェア製作
時間の短縮及びソフトフェア製作ミスの軽減をすること
ができるシーケンス制御におけるマクロ命令を得ること
を目的とする。
This invention was made to solve the above-mentioned problems, and it is a sequence control that can reduce the capacity of the programmable controller's 7-channel controller, shorten software production time, and reduce software production errors. The purpose is to obtain macro instructions in .

〔課、題鷺鵡決するための手段〕[Tasks, means to decide the problem]

この発F!J4に係るシーケンス制御はマクロ命令に1
11 おいては、マクロ命令用の基本プログラムを作成し、こ
の基本プログラムではシーケyス命令、データ命令等の
記号のみで作成する。またマクロ命令においては各記号
の名称のみを設定するものである。
This departure F! Sequence control related to J4 is 1 macro instruction
11, a basic program for macro instructions is created, and this basic program is created using only symbols such as sequence instructions and data instructions. Further, in the macro instruction, only the name of each symbol is set.

〔作用〕[Effect]

シーケンス制御におけるマクロ命令で各記号の名称をマ
クロ命令にて定義し、マクロ命令にて定義された各信号
の名称に基づいて、プログラマツルコントローラがマク
ロ命令を実行する毎にプログラマブルコントローラは基
本プログラムにマクロ命令で定義された各信号の名称に
基づいてマクロ命令を実行させるものである。
In sequence control, the name of each symbol is defined in the macro instruction, and each time the programmable controller executes the macro instruction, the programmable controller executes the basic program based on the name of each signal defined in the macro instruction. The macro command is executed based on the name of each signal defined by the macro command.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図、第2図において、 (1)、(4)、(5)は
上記従来装置と全く同一である。(6)はマクロ命令の
方法管示し、基本プログラムの各記号の名称のみを設定
する。(7)は基本プログラムの一例であ、9.(8)
はプログラマブル、コント四−ラがマクロ命令が実行さ
□れたときに動作するプログラムである。
In FIGS. 1 and 2, (1), (4), and (5) are completely the same as the conventional device described above. (6) shows the method of controlling macro instructions, and only sets the names of each symbol of the basic program. (7) is an example of a basic program, and 9. (8)
is a program that runs when a programmable controller executes a macro instruction.

次に作用について説明する。Next, the effect will be explained.

シーケンス制御におけるマクロ命令においては基本プロ
グラムで定義された各記号の名称管入力する。またマク
ロ命令用の基本プログラムは記号のみでシーケンスプロ
グラムを作成する。
For macro commands in sequence control, the names of each symbol defined in the basic program are input. In addition, the basic program for macro instructions is a sequence program created using only symbols.

プログラマブルコントローラにおいて、このマクロ命令
を実行するとき、プログラマブルコントローラはマクロ
命令で定義され元□各記号の名称”を基本プログラムの
台足4に当てはめる。このとき実行プログラムは第2図
の())゛が□ら’(8)゛のうメ′−図に変換され、
マクロ命令が実行売子とな為退元め回路すなわち())
の回路となる。□ 次にこの発明を70−チャートをもって説明する。
When executing this macro instruction in the programmable controller, the programmable controller applies the name of each symbol defined by the macro instruction to the base 4 of the basic program.At this time, the execution program is as shown in ()) in Fig. 2. is converted to □ra' (8)
Since the macro instruction is not executed, the decommissioning circuit ())
becomes the circuit. □ Next, this invention will be explained using a 70-chart.

第3図において、シーケンスプログラム作成装置品で(
9)の部分でラダー図を作成し、 61の部分−マクロ
命苓及び基本プログラムt−fli’成する□。そして
aDの部′与でiクロ裾令をプログラマツルコントロー
ラ用の言語に変換□し、変換された言語を(4)の7 
’0 /ラマブルコンドローラK(1:のシーケンスフ
ログラム作成装置に書き込んで、(4)のプログラマツ
ルコントローラを作動させる。
In Figure 3, the sequence program creation device (
Create a ladder diagram in part 9), and create part 61 - macro program and basic program t-fli'. Then, use the part aD to convert the i-chrome command into a language for the programmer controller, and use the converted language in step 7 of (4).
'0/Ramable controller K (1:) is written to the sequence program creation device to operate the programmable controller (4).

asで基本プログラムを正常なラダー1に変換しないで
、(1)のシーケンスフログラム作成装置にて書込む、
(4)のプログラマブルコントローラでハa番の部分で
マクロ命令を実行するときにマクロ命令を基本プログラ
ムに展開する。■の部分ではマクロ命令上基本プログラ
ムのプログラマツルコントローラ用め制御コードに展開
す’b4aeの部分では鰺でプログラマブルコントロー
ラ用の□制御コードに展開された命令コードで実行す為
。(17+の一分では舖の部分で実行終□了された制御
用コードを光にもどす。
Do not convert the basic program to normal ladder 1 using as, write it using the sequence program creation device in (1),
(4) When the programmable controller executes the macro instruction in the part number a, the macro instruction is expanded into a basic program. In the part □, the basic program is expanded into a control code for the programmable controller on the macro instruction.The part ``b4ae'' is executed using the instruction code expanded into the control code □ for the programmable controller. (In the 17+ minute, the control code that has been executed at a certain point is returned to the light.

このようにプログラマブルコントローラのプログラム作
成時に同一1四グラムがあった場合、□マクロ命令□を
多用することKよシッフトウエア製作時の一間短縮が計
られ′、そのときの入力ミスがさけられる。またシーケ
ンス10グラムの容量削減になることもある。
In this way, when creating a program for a programmable controller, if there are identical 14 grams, frequent use of the □ macro command □ will save time during shiftware production and avoid input errors at that time. In addition, the capacity of the sequence may be reduced by 10 grams.

ところで上記説明ではマクロ命令でシーケンス10グラ
ムの削減を考え九が、0ALL又は他の命令コードに?
実現しでもよいことはらうまでもない、       
       − 〔発明の効果〕 以上のようにこの発明によれば以上のように構成されて
いるので 以下に記載されるような効果を奏する。
By the way, in the above explanation, when considering the reduction of sequence 10 grams using macro instructions, is 9 changed to 0ALL or another instruction code?
There is no need to ask for something that can be achieved.
- [Effects of the Invention] As described above, according to the present invention, since it is configured as described above, the following effects are achieved.

大規模システムにおいては同一機能で構成される場合が
多い、このより′&場合KF!同一回路が数多くあるの
で、マクロ命令を使用するこ七によりン7トクエア製作
時間の短縮、システム立上げ時の時間短縮、シーケンス
プログラム容量の削減ができる効果がある。
Large-scale systems are often configured with the same functions, and in this case KF! Since there are a large number of identical circuits, the use of macro instructions has the effect of shortening the time required to produce the circuit, shortening the time required to start up the system, and reducing the capacity of the sequence program.

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

第1図はこの発明の一実施例を示すシステムの構成図、
第2図はこの発明の一実施例によるシーケンスプログラ
ムでの実施例を示す図、第3図はこの発明の一実施例を
示すフローチャート、第4図は従来のプログラム作成方
法を示すシステムの構成図、第5図は回路流用の方法を
示すシステム構成図である。 図において、(1)はシーケノスプログラム作成装置、
(2)はフロッピーディスク装置、(3)はフロッピー
、(41a70グラマプルコントローラ、(5)は(4
)。 (5)全接続するケーブル、(6)はマクロ命令、(7
)はマクロ命令を実行する基本プログラム、(8)はマ
クロ命令を実行しているときの基本プログラムを示す。 なお、各図中、同一符号は、同−又は相当部分を示す。
FIG. 1 is a configuration diagram of a system showing an embodiment of the present invention.
Fig. 2 is a diagram showing an example of a sequence program according to an embodiment of the present invention, Fig. 3 is a flowchart showing an embodiment of the invention, and Fig. 4 is a system configuration diagram showing a conventional program creation method. , FIG. 5 is a system configuration diagram showing a method of circuit diversion. In the figure, (1) is a Sequenos program creation device;
(2) is a floppy disk device, (3) is a floppy disk, (41a70 grammar controller, (5) is a (4
). (5) All connected cables, (6) macro instructions, (7
) shows the basic program that executes the macro instruction, and (8) shows the basic program when the macro instruction is executed. In each figure, the same reference numerals indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims]  機械等を制御するプログラマブルコントローラにおい
て、入力、出力条件等のパラメータとして基本プログラ
ムに受け渡し、受け渡されたパラメータに基づいて、プ
ログラマブルコントローラは基本プログラムを作動させ
、同一条件で多数のパラメータだけが違つているプログ
ラムを作動させることを特徴としたシーケンス制御にお
けるマクロ命令。
In a programmable controller that controls machines, etc., parameters such as input and output conditions are passed to the basic program, and based on the passed parameters, the programmable controller operates the basic program, and when many parameters are different under the same conditions, the programmable controller operates the basic program. A macro instruction in sequence control characterized by running a program.
JP18494189A 1989-07-18 1989-07-18 Macroinstruction for sequence control Pending JPH0348902A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18494189A JPH0348902A (en) 1989-07-18 1989-07-18 Macroinstruction for sequence control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18494189A JPH0348902A (en) 1989-07-18 1989-07-18 Macroinstruction for sequence control

Publications (1)

Publication Number Publication Date
JPH0348902A true JPH0348902A (en) 1991-03-01

Family

ID=16162035

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18494189A Pending JPH0348902A (en) 1989-07-18 1989-07-18 Macroinstruction for sequence control

Country Status (1)

Country Link
JP (1) JPH0348902A (en)

Similar Documents

Publication Publication Date Title
JPH0348902A (en) Macroinstruction for sequence control
JP3341064B2 (en) Control program creation device
JPS6339928B2 (en)
JPH0210429A (en) Program structure processing system
JPH0769847B2 (en) Job control method during rerun
JPS62221729A (en) Microprogram control system
JPS6398704A (en) Programmable controller
JPS62196739A (en) Control system for microprogram execution locus stack in communication control equipment
JP3260788B2 (en) Robot control device and method
JPS5837586B2 (en) Data file control method
JP2507676B2 (en) Index input/output statement execution processing method
JPS6029061A (en) Input/output controller
JPH01185733A (en) Input/output emulation system
JPS62200426A (en) Macro expansion method for high level language
JPS63129426A (en) Timer module for data flow type computer
JPS63167933A (en) Subprogram calling system in interpreter
JPS61195436A (en) Trace control system for control logic
JPH01152506A (en) Editing system for ladder program
JPH0580940A (en) Dual system for auxiliary storage device
JPS62107355A (en) Data processor
JPS60120437A (en) Executing device of robot language
JPS62185291A (en) Magnetic tape positioning control system
JPH04328605A (en) Method and device for programming sequence program
JPS60218107A (en) Sequence controller
JPH04305755A (en) Batch processing method for computer system