[go: up one dir, main page]

JPS635430A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPS635430A
JPS635430A JP14810186A JP14810186A JPS635430A JP S635430 A JPS635430 A JP S635430A JP 14810186 A JP14810186 A JP 14810186A JP 14810186 A JP14810186 A JP 14810186A JP S635430 A JPS635430 A JP S635430A
Authority
JP
Japan
Prior art keywords
symbols
program
module
execution
symbol
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
JP14810186A
Other languages
Japanese (ja)
Inventor
Kimio Yamanaka
山中 喜美雄
Satoru Nagao
哲 長尾
Masanori Sugita
杉田 正憲
Naohisa Kawahara
直久 川原
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 JP14810186A priority Critical patent/JPS635430A/en
Publication of JPS635430A publication Critical patent/JPS635430A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To express entire program schematically by displaying modules divided in the unit of function of the program by means of a maintenance tool, with module symbols. CONSTITUTION:The order of execution and the flow of processing information among the symbols 31-35 representing the function units of the program are expressed by means of connection symbols 36-38. Upon completion of the execution of the symbol 31, an arithmetic control part 1 actuates symbols 32 and 35. Upon completion of the execution of the symbols 33 and 35, the content of the symbol 34 is actuated upon whose execution-completion, the execution of symbol group is ended. On necessities, a group of the symbols 21-23 is expressed with higher-order symbols 40 of hierarchy, and a level 3, a type C, and execution cycle 50 are displayed. And thus the representation of the program is realized on the maintenance tool 10. Execution instructions are stored in memories 2a, 2b,... in the unit of symbol, and the connection information of the symbols are stored in a management part 7. Responding to a structure display request from the tool 10, the program is displayed in accordance with these bits of stored information with an outlook easy to see.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、プログラムによって制御内容を変えられる
ストアードプログラム方式のプログラマブル制御装置に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to a stored program programmable control device in which control contents can be changed by a program.

〔従来の技術〕[Conventional technology]

第5図は、例えば三菱電機技報(1982−7vo15
6A7P57)に示された従来のプログラマブル制御装
置におけるプログラムの機能分割の一例を示すプログラ
ム構造図である。図において、(4)、[F])はそれ
ぞれプログラム機能であり、プログラムはPOL言語に
よシ示されている。ここで、アンダーラインを引いたN
OP (すなわち、ノー・オペレーション)SNXXX
命令は、別にドキュメントとして提示するプログラムリ
ストとの対応が付くように付加された特殊命令である。
Figure 5 shows, for example, the Mitsubishi Electric Technical Report (1982-7vo15).
6A7P57) is a program structure diagram showing an example of functional division of a program in the conventional programmable control device shown in No. 6A7P57). In the figure, (4) and [F]) are program functions, and the programs are expressed in POL language. Here, the underlined N
OP (i.e. no operation) SNXXX
The command is a special command added so as to correspond to a program list presented separately as a document.

そして、−般的には、この特殊命令をプログラム機能(
ト)、(B)の分割のための区分記号として用い、プロ
グラムの機能単位を表現する。
-Generally, this special instruction is used as a program function (
(G) and (B) to express the functional unit of the program.

次にプログラムの作成及び読解について説明する。Next, the creation and reading of the program will be explained.

プログラマブル制御装置のプログラムを作成する場合、
要求仕様をで基づき機能を、構造化9階層化して徐々に
小さな機能単位に分割し、その機能単位毎にプログラム
の仕様を明確にし、設計の試験を行なう、という方式が
プログラムの生産性および信頼性を向上させるという面
から一般的に採用されている。
When creating a program for a programmable control device,
Based on the required specifications, functions are divided into nine structured layers into gradually smaller functional units, the program specifications are clarified for each functional unit, and the design is tested. This method improves program productivity and reliability. It is commonly used because it improves sexual performance.

また、プログラムを読解する場合は、上記の構造が書か
れたドキュメントをもとに個々の機能単位の位置づけ、
および外部仕様を理解したうえで、詳細なプログラムの
理解を行なうわけであるが、従来のプログラマブル制御
装置においては、そのドキュメントおよびメンテナンス
ツールに表示されるプログラムに含まれるNOP命令に
よシ、そのプログラムの分割を理解させていた。
In addition, when reading a program, positioning of each functional unit based on the document with the above structure,
After understanding the internal specifications and external specifications, a detailed program is understood.However, in conventional programmable control devices, the program is read by the NOP instruction contained in the program displayed in the document and maintenance tool. I was making them understand the division of.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来のプログラマブル制御装置におけるプログラムの構
造は、以上で示したようにメンテナンスツール上では区
切シ記号に相当する特殊命令の形で表示するだけである
ので、区分が明確でないとか、各機能単位間での相互の
関連性が明確でないという問題点かあシ、メンテナンス
ツールのみでのプログラム理解は困難で、ドキュメント
によるプログラムの構造の理解が必要となる問題点があ
った。
As shown above, the structure of a program in a conventional programmable control device is only displayed on maintenance tools in the form of special commands that correspond to delimiters. However, it is difficult to understand the program using maintenance tools alone, and it is necessary to understand the structure of the program using documentation.

この発明は上記の問題点を解消するためになされたもの
で、メンテナンスツール上でプログラムの機能分割が容
易に理解できるようなプログラマブル制御装置を得るこ
とを目的としている。
This invention was made to solve the above problems, and aims to provide a programmable control device in which the functional division of a program can be easily understood on a maintenance tool.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係るプログラマブル制御装置は、メンテナン
スツールにおいてプログラムをその機能単位を聚すモジ
ュールシンボルとそのモジュールシンボルの相互の接続
を表わす接続シンボルを用いて表現することによシ、プ
ログラム構造を明示させるようにしたものである。
The programmable control device according to the present invention allows the program structure to be made clear by expressing a program in a maintenance tool using module symbols representing its functional units and connection symbols representing mutual connections between the module symbols. This is what I did.

〔作 用〕[For production]

この発明におけるメンテナンスツールは、プログラムの
機能単位で分割されたモジュールをモジュールシンボル
で表示し、その実行順序を接続シンボルで表示すること
によシ、プログラム全体が図式的に表現される。
The maintenance tool of the present invention graphically represents the entire program by displaying modules divided into functional units of the program using module symbols and displaying the order of execution using connection symbols.

〔実施例〕〔Example〕

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

第2図はこの実施例のプログラマブル制御装置の構成を
示したブロック図であシ、図において、lは該プログラ
マブル制御装置の演算制御部、2はそこに実装されるプ
ログラムメモリ、2a * 2b s 2 c・・・は
該プログラムメモリ2内を機能分割したメモリ部分、3
はプログラムの制御のもとに処理を行なう演算部、4は
演算の対象となるデータを収納するデータメモリであシ
、これらは外部バス5を経由してプロセス入出力装置を
はじめとする外部機器6と接続されている。7はプログ
ラムメモリ2の構造を記憶・管理する晋理部、8は後述
するメンテナンスツール10との会話をつかさどるイン
ターフェイス制御部である。10はモジュール単位のメ
ンテナンス、モジュール内部の命令単位のメンテナンス
を行なうメンテナンスツールであフ、制御部11と表示
部12と設定部13とインターフェイス部14とで構成
されている。9は演算制御部1とメンテナンスツール1
0とを接続するインターフェイス線である。
FIG. 2 is a block diagram showing the configuration of the programmable control device of this embodiment. In the figure, l is an arithmetic control unit of the programmable control device, 2 is a program memory mounted therein, and 2a * 2b s 2 c... is a memory portion in which the program memory 2 is functionally divided; 3
is an arithmetic unit that performs processing under the control of a program, 4 is a data memory that stores data to be processed, and these are connected to external devices such as process input/output devices via an external bus 5. 6 is connected. Reference numeral 7 designates a processing unit that stores and manages the structure of the program memory 2, and reference numeral 8 designates an interface control unit that controls communication with a maintenance tool 10, which will be described later. Reference numeral 10 denotes a maintenance tool that performs maintenance on a module-by-module basis and maintenance on a command-by-instruction basis inside the module, and is composed of a control section 11, a display section 12, a setting section 13, and an interface section 14. 9 is the calculation control unit 1 and the maintenance tool 1
This is an interface line that connects to 0.

第1図囚、[F])は前述したメンテナンスツール10
によるプログラム構造の表現例を示すブロック図であシ
、図において、21〜23および31〜35はそれぞれ
プログラムの機能単位を示すモジュールシンボルである
。25.26.36〜38は前記各モジュールシンボル
を相互に接続する接続シンボルであシ、各モジュールシ
ンボルの相互の実行順序や処理データの流れを示す。
Figure 1, [F]) is the maintenance tool 10 mentioned above.
1 is a block diagram showing an example of representation of a program structure according to the present invention. In the figure, 21 to 23 and 31 to 35 are module symbols each indicating a functional unit of the program. Reference numerals 25, 26, and 36 to 38 are connection symbols that interconnect the respective module symbols, and indicate the mutual execution order of each module symbol and the flow of processing data.

ここで、接続シンボルで結合された七ジュールシンボル
群をグループと呼ぶ。すなわち、モジュールシンボル2
1〜23が1つのグループを形成し、モジュールシンボ
ル31〜35が他の1つのグルーブを形成する。実際に
は、さらに多くのグループが存在するが省略する。
Here, a group of seven joule symbols connected by connecting symbols is called a group. That is, module symbol 2
1 to 23 form one group, and module symbols 31 to 35 form another group. In reality, there are many more groups, but they are omitted here.

次に各モジュールシンボルの実行の概要を示す。Next is an overview of the execution of each module symbol.

例えば、モジュールシンボル31〜35のグループであ
れば、まずモジュールシンボル31の内容が起動され、
その実行完了によってモジュールシンボル32.35の
内容が起動される。
For example, in the case of a group of module symbols 31 to 35, the contents of module symbol 31 are activated first,
Upon completion of its execution, the contents of module symbol 32.35 are activated.

このとき、演算制御部1が並列実行機能を持っていれば
同時に実行できるし、並列実行機能が無ければモジュー
ルシンボル32あるいはモジュールシンボル35の内容
が先に起動され、そのあとで残シが起動されるが、この
差異はプログラムの構造とは関係なく、表現方式とも関
係ない。
At this time, if the arithmetic control unit 1 has a parallel execution function, they can be executed at the same time; if the arithmetic control unit 1 does not have a parallel execution function, the contents of the module symbol 32 or module symbol 35 are activated first, and then the remaining modules are activated. However, this difference has nothing to do with the structure of the program or the method of expression.

サラニ、モジュールシンボル32の内容の実行完了によ
シ、次のモジュールシンボル33の内容カ起動され、モ
ジュールシンボル33.35の内容の完了によってモジ
ュールシンボル34の内容が起動され、これが実行完了
されると、モジュールシンボル31〜35のグループの
実行が終了したことになる。
When the contents of the module symbol 32 are completed, the contents of the next module symbol 33 are activated, and when the contents of the module symbol 33 and 35 are completed, the contents of the module symbol 34 are activated, and when the contents of the module symbol 34 are completed, the contents of the next module symbol 33 are activated. , the execution of the group of module symbols 31 to 35 has ended.

他のグループについても同様の実行形式がとられる。Similar execution formats are used for other groups.

また、通常プログラムは優先度を持っておシ、機能単位
に割込またはタスクスイッチのように、プログラムの実
行中に上位の優先度を持ったプログラムを先行して処理
する必要性が生じるが、プログラムの構造表現には優先
度を明示することも重要であシ、例えば第3図に示す様
に、グループを一括して管理するシンボルを設は優先度
を表示する。
In addition, programs usually have priorities, and when a program is being executed, it is necessary to process a program with a higher priority first, such as when interrupting a function or task switching. It is also important to clearly indicate the priority level in the structural representation of a program. For example, as shown in FIG. 3, a symbol for collectively managing groups is set up to display the priority level.

さらに、プログラムには周期的に実行されるもの、また
ある外部信号(イベントと呼ぶ)によシ起動するものな
ど様々であυ、これらのタイプをグループに合せて表現
する。
Furthermore, there are various types of programs, such as those that are executed periodically and those that are activated by an external signal (called an event), and these types are expressed in groups.

第3図の例では、モジュールシンボル21〜23がなす
モジュール群で構成される1つのグループをモジュール
上位階層シンボル40によシ表現し、そのモジュール上
位階層シンボルの中には実行レベルCLEVEL= 3
 ) 、実行タイプ(笛E=C)(該実行タイプCは、
サイクリックすなわち周期的に実行するものである。)
、実行周期(CYCLE工50)が表示されることを示
している。
In the example of FIG. 3, one group consisting of a module group made up of module symbols 21 to 23 is represented by a module upper layer symbol 40, and some of the module upper layer symbols include an execution level CLEVEL=3.
), execution type (whistle E=C) (the execution type C is
It is cyclic, that is, it is executed periodically. )
, indicates that the execution cycle (CYCLE 50) is displayed.

こうし、て、プログラム構造化の階層が2レベルにわた
ってメンテナンスツール10上の表現として実現される
In this way, a hierarchy of program structuring is realized as an expression on the maintenance tool 10 over two levels.

さらに、モジュール内部については、従来のプログラマ
ブル制御装置と同様に命令レベルで表現されるのは言う
までもない。
Furthermore, it goes without saying that the inside of the module is expressed at the command level, similar to conventional programmable control devices.

プログラム自体の実行管理についてさらに説明する。Execution management of the program itself will be further explained.

プログラム作成時において、第1に第1図の様な構造を
定義した上でプログラム作成がなされる訳であるが、こ
のときプログラムの本体(実行命令)についてはプログ
ラムメモリ2の各メモリ部2a *2b e2c・・・
に各モジュールシンボル毎に格納される0 また、管理部7には各モジュールシンボルの接続情報等
が格納される。その情報記憶の例を第4図(4)に示す
When creating a program, the structure shown in Figure 1 is first defined before the program is created.At this time, the main body of the program (execution instructions) is stored in each memory section 2a of the program memory 2 2b e2c...
0 is stored for each module symbol in the management unit 7. Connection information and the like of each module symbol are also stored in the management unit 7. An example of information storage is shown in FIG. 4 (4).

プログラムすなわち各モジュールシンボルの内容の実行
は、第4図(4)の記憶情報に基づいてなされるが、メ
ンテナンスツール10からの構造表示要求にあたっては
、これらの記憶情報に従って第4図G3)の様な表示を
行ない、プログラムの見やすさを実現する。
The program, that is, the content of each module symbol, is executed based on the stored information shown in FIG. 4 (4), but when a structure display request is made from the maintenance tool 10, the program is executed as shown in FIG. 4 G3) according to this stored information. This makes the program easier to read.

ここで、ブロック内に示した50.100.20 、・
・・はモジュールシンボル毎に付加されたモジュール番
号(MNO)を示す。
Here, 50.100.20 shown in the block,
... indicates a module number (MNO) added to each module symbol.

なお、上記実施例では、単にグループは同一レベルのモ
ジュールシンボルのみで構成されるように書いたが、い
わゆるマクロ表現に相当する機能により、1つのグルー
プの中に複数レベルのモジュール表現を行なうことも考
えられる。
In addition, in the above embodiment, a group is simply composed of module symbols at the same level, but with a function equivalent to a so-called macro expression, it is also possible to express modules at multiple levels within one group. Conceivable.

また、モジュールシンボルの表現および接続シンボルの
表現については、上記実施例では矩形およびゲートを付
加した実線によっているが、他の表現方法をとっても全
く問題ない。
In addition, although the module symbols and connection symbols are expressed using solid lines with rectangles and gates added in the above embodiments, there is no problem in using other expression methods.

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明によればプログラマブル制御装
置のプログラム表現を、メンテナンスツ−ルによ)プロ
グラムの機能単位を表すモジュールシンボルおよびその
相互の接続を表す接続シンボルにより行なうので、プロ
グラムの構造が図式的にわかり易く表現できる効果があ
る。
As described above, according to the present invention, a program for a programmable control device is expressed by a maintenance tool using module symbols representing the functional units of the program and connection symbols representing their mutual connections, so that the structure of the program is reduced. It has the effect of being easy to understand graphically.

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

第1図はこの発明の一実施例によるプログラマブル制御
装置によるプログラム構造を示すブロック図、第2図は
この発明の一実施例によるプログラマブル制御装置の構
成を示すブロック図、第3図はこの発明の実施例による
プログラム構造の他の例のブロック図、第4図(4)は
各モジュールシンボルの管理情報記憶形式側図、第4図
(B)はモジュールシンボル群のあるグループを示すブ
ロック図、第5図は従来のプログラム構造表現形式側図
である。 lは演算制御部、7は管理部、10はメンテナンスツー
ル、21〜23.31〜35はモジュールシンボル、2
5.26.36〜38は接続シンボル、40はモジュー
ル上位階層シンボル。 なお、図中、同一符号は同一、又は相当部分を示す0
FIG. 1 is a block diagram showing the program structure of a programmable control device according to an embodiment of the present invention, FIG. 2 is a block diagram showing the configuration of a programmable control device according to an embodiment of the present invention, and FIG. A block diagram of another example of the program structure according to the embodiment, FIG. 4(4) is a side view of the management information storage format of each module symbol, FIG. 4(B) is a block diagram showing a certain group of module symbols, and FIG. FIG. 5 is a side view of a conventional program structure representation format. l is an arithmetic control unit, 7 is a management unit, 10 is a maintenance tool, 21 to 23. 31 to 35 are module symbols, 2
5.26.36 to 38 are connection symbols, and 40 is a module upper layer symbol. In addition, in the figures, the same reference numerals indicate the same or corresponding parts.

Claims (4)

【特許請求の範囲】[Claims] (1)制御プログラムを機能単位に作成・構成し、その
プログラムを機能単位毎に独立して実行するプログラマ
ブル制御装置において、前記機能単位を表すモジュール
シンボルと、該モジュールシンボルの相互の接続を表す
接続シンボルを用いて前記モジュールシンボルの関連性
および実行順序などのプログラム構造を表現するメンテ
ナンスツールを備えたことを特徴とするプログラマブル
制御装置。
(1) In a programmable control device that creates and configures a control program in functional units and executes the program independently for each functional unit, a module symbol representing the functional unit and a connection representing the mutual connection of the module symbols A programmable control device comprising: a maintenance tool that expresses program structure such as the relationship and execution order of the module symbols using symbols.
(2)前記メンテナンスツールは複数の前記モジュール
シンボルにより構成される機能をまとめたモジュール上
位階層をモジュール上位階層シンボルで表現を行う特許
請求の範囲第1項記載のプログラマブル制御装置。
(2) The programmable control device according to claim 1, wherein the maintenance tool expresses a module upper hierarchy, which is a collection of functions constituted by a plurality of the module symbols, using module upper hierarchy symbols.
(3)前記モジュール上位階層シンボルはその実行レベ
ルの表示機能を備えている特許請求の範囲第2項記載の
プログラマブル制御装置。
(3) The programmable control device according to claim 2, wherein the module upper layer symbol has a function of displaying its execution level.
(4)前記モジュール上位階層シンボルは、その実行周
期の表示機能を備えている特許請求の範囲第2項記載の
プログラマブル制御装置。
(4) The programmable control device according to claim 2, wherein the module upper layer symbol has a function of displaying its execution cycle.
JP14810186A 1986-06-26 1986-06-26 Programmable controller Pending JPS635430A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14810186A JPS635430A (en) 1986-06-26 1986-06-26 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14810186A JPS635430A (en) 1986-06-26 1986-06-26 Programmable controller

Publications (1)

Publication Number Publication Date
JPS635430A true JPS635430A (en) 1988-01-11

Family

ID=15445265

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14810186A Pending JPS635430A (en) 1986-06-26 1986-06-26 Programmable controller

Country Status (1)

Country Link
JP (1) JPS635430A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5267232A (en) * 1975-12-01 1977-06-03 Yaskawa Denki Seisakusho Kk Programming device
JPS56168263A (en) * 1980-05-30 1981-12-24 Hitachi Ltd Program making device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5267232A (en) * 1975-12-01 1977-06-03 Yaskawa Denki Seisakusho Kk Programming device
JPS56168263A (en) * 1980-05-30 1981-12-24 Hitachi Ltd Program making device

Similar Documents

Publication Publication Date Title
CN107861716B (en) Software-defined control system and control method
JP3446256B2 (en) Control method and apparatus for FA system
JP2018097663A (en) Control system, control program, and control method
CA2061599A1 (en) Storage-programmable control system
CN103558473A (en) Transducer field debugging system based on human-computer interaction interface and transducer field debugging method
CN106125664A (en) A kind of Embedded PLC control system
JPS6224802B2 (en)
CN103576603A (en) Numerical controller with multicore processor
CN115495069B (en) Model-driven coal industry software process implementation method, device and equipment
CN104603700A (en) A method for engineering a distributed control system and an engineering tool thereof
JP4780308B2 (en) Control program development support apparatus and computer program
JPS635430A (en) Programmable controller
JP7067520B2 (en) Development support equipment, control methods for development support equipment, information processing programs, and recording media
US20050166190A1 (en) Method for generating an automation program
JP4282961B2 (en) System that defines data input / output in the controller
CN112068534B (en) Graphical display system and method for industrial control logic
US11704113B2 (en) Program development device, project creation method, and storage medium
JPH0410081B2 (en)
JP2003122410A (en) Method for causing controller to perform computation
JPH09230913A (en) Programming tool for programmable controller
CN111352381B (en) Programmable logic controller programming method, programmable logic controller and system
JPH09101884A (en) Reverse engineering supporting system
JP2015011476A (en) Software development support device, software development support method and software development support program
US20220318007A1 (en) Programming support apparatus
JPH11167409A (en) Program controller operating by parallel language