JPS61143809A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPS61143809A
JPS61143809A JP26461584A JP26461584A JPS61143809A JP S61143809 A JPS61143809 A JP S61143809A JP 26461584 A JP26461584 A JP 26461584A JP 26461584 A JP26461584 A JP 26461584A JP S61143809 A JPS61143809 A JP S61143809A
Authority
JP
Japan
Prior art keywords
pattern
converting
ladder diagram
conversion
basic
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
JP26461584A
Other languages
Japanese (ja)
Other versions
JPH0457002B2 (en
Inventor
Hiroshi Kikuchi
洋 菊地
Yoshinobu Machida
町田 善信
Toyohiro Nakanouchi
中野内 豊広
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom 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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP26461584A priority Critical patent/JPS61143809A/en
Publication of JPS61143809A publication Critical patent/JPS61143809A/en
Publication of JPH0457002B2 publication Critical patent/JPH0457002B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/056Programming the PLC

Abstract

PURPOSE:To enhance an operation performing speed by storing previously correspondingly a basic pattern increasing an opening and a converting pattern decreasing the opening and comparing the existence of the basic pattern in a ladder figure and converting into the converting pattern. CONSTITUTION:A programmable controller converts a ladder figure described in a ladder figure memory means (b) by a graphic programming loader into a mechanical word of a performing type corresponding to a component in a ratio of 1:1 by a mechanical word converting means (e) and a mechanical converting memory means (f). In this conversion, a pattern converting memory means d in which more than a pair of a basic pattern in a line and a column directions of an object to be converted and a converting pattern in a line and a column directions moving symbols therein upwards and leftwards are previously stored is compared with the basic pattern in the line and the column directions stored therein and the component in the ladder figure successively to dispose a converting means c for converting a pattern. Thereby, after the basic pattern is converted into the converting pattern, the mechanical word of the performing type is obtained, so that the number of the performing steps is decreased.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、A接点、B接点、ブランク、コイル等のラ
ダー図の構成要素と実行形成の機械語とが1=1に対応
する命令体系を有するプログラマブルコントローラにお
いて、特にラダー図の制御内容を変更することなく、ラ
ダー図を変換してシーケンス制御プログラムの実行ステ
ップを削減するようにしたプログラマブルコントローラ
に関する。
[Detailed Description of the Invention] [Field of Industrial Application] This invention provides an instruction system in which the constituent elements of a ladder diagram, such as A contacts, B contacts, blanks, and coils, and machine language for execution formation correspond to 1=1. In particular, the present invention relates to a programmable controller that converts a ladder diagram to reduce the number of execution steps of a sequence control program without changing the control contents of the ladder diagram.

ここで、ラダー図とは、展開接続図とも称せられ(JI
S規格C0401)、設備、装置並びに機器の動作と各
構成要素の物理的寸法、形状及び配置に関係なく、機能
を中心として電気的に接続を展開して図記号によって表
現する図であり、一般にシーケンス制御用として用いら
れている。
Here, the ladder diagram is also called an expanded connection diagram (JI
S standard C0401), it is a diagram that develops electrical connections centering on functions and expresses them with graphic symbols, regardless of the operation of facilities, equipment, and equipment and the physical dimensions, shapes, and arrangement of each component, and is generally It is used for sequence control.

〔発明の概要〕[Summary of the invention]

この発明は、A接点、B接点、出力コイル、分岐等のラ
ダー図の構成要素と実行形式の機械語とがl:1に対応
する命令体系を持つプログラマブルコントローラにおい
て、変換を必要とする基本パターンとそれに対応する変
換パターンとをあらかじめ用意して、ラダー図上の基本
パターンを変換パターンに変換することにより、ラダー
図の制御内容を変更することなくシーケンス制御プログ
ラムの実行ステップを削減するラダー図の変換手段(ラ
ダー図最適化手段)を提供するものである。
This invention provides basic patterns that require conversion in a programmable controller that has an instruction system in which components of a ladder diagram such as A contacts, B contacts, output coils, branches, etc. and executable machine language correspond on a l:1 basis. A ladder diagram that reduces the execution steps of a sequence control program without changing the control contents of the ladder diagram by preparing the basic pattern on the ladder diagram and the corresponding conversion pattern in advance and converting the basic pattern on the ladder diagram into a conversion pattern. It provides a conversion means (ladder diagram optimization means).

〔従来の技術〕[Conventional technology]

A接点、B接点、ブランク、コイル等のラダー図の構成
要素と実行形式の機械語とがl:lに対応している命令
体系を有するプログラマブルコントローラ(以下、PC
と称する)において、そのラダー図の構成要素は一般に
第2図に示す様に、シンボルl、接続情報゛2およびア
ドレス3とからなる。そのシンボル1には第3図に示す
様に、A接点21.B接点22.開放23.短絡24お
よびコイル25があり、接続情報2には接続有31.接
続無32および行終了33がある。また、上述のアドレ
ス3は入出力領域や補助領域を示す。
A programmable controller (hereinafter referred to as a PC
2), the components of the ladder diagram generally consist of a symbol 1, connection information 2, and address 3, as shown in FIG. As shown in FIG. 3, symbol 1 has A contacts 21. B contact 22. Open 23. There is a short circuit 24 and a coil 25, and the connection information 2 indicates that there is a connection 31. There is no connection 32 and end of line 33. Further, the above-mentioned address 3 indicates the input/output area and the auxiliary area.

これらのラダー図の構成要素1〜3が第5図に示した様
に1ワード長の実行形式の機械語40と1=1に対応し
、例えば第6図のラダー図を実行形式の機械語に変換す
る場合には、まず■)図の左上方間から■〜Oの番号を
記した行方同順に逐次構成要素をシンボル1、接続情報
2、アドレス3のニューモニック表現(ラダー表現)を
用いて表わし、さらにその際に■)■、[相]、[相]
、[相]、[相]の番号を記した各列の終了のものに対
しては接続情報2に1列毎の行終了33のニューモニツ
ク表現(二−モニック表現でEとする)を用い、また、 ■)0の番号で記した1回路の終了のものにはコイル2
5と行終了33のニューモニツク表現を用いて、第7図
のステップ順で示す二−モニツク形式にて表現し、第5
図に示す内容のコード変換テーブルから各二−モニック
形式に対応するコードを割当てて実行形式の機械語への
変換を終了する。
As shown in FIG. 5, the components 1 to 3 of these ladder diagrams correspond to the 1-word executable machine language 40 and 1=1. For example, the ladder diagram in FIG. When converting to ■), first use the mnemonic expression (ladder expression) of symbol 1, connection information 2, and address 3 to sequentially convert the constituent elements in the same order as shown from ■ to O from the upper left of the diagram. In addition, at that time, ■)■, [phase], [phase]
, [Phase], and [Phase] numbers are written at the end of each column, use the mnemonic expression (E in mnemonic expression) of the row end 33 for each column in the connection information 2, Also, ■) For those with the end of 1 circuit marked with the number 0, coil 2
Using the new monic expressions 5 and 33 at the end of the line, it is expressed in the two-monic form shown in the step order of Fig. 7, and the 5th
A code corresponding to each monic format is assigned from the code conversion table having the contents shown in the figure, and the conversion of the executable format into machine language is completed.

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

しかしながら、上述のようなラダー図からの実行形式の
機械語への変換を行う従来のPCでは、いわゆるCRT
ローダのような図示式プログラミングローダによりCR
T  (陰極線管)ディスプレイからライトペン等を用
いて、または他の図形読取装置から読み取られて所定の
記憶装置内に記述されたラダー図を実行形式の機械語に
変換後、その機械語から再度図示式プログラミングロー
ダによってディスプレイ画面上に表示、あるいはプリン
タにより記録用紙上への記録(ハードコピー)の際に、
構成要素の位置を含めてディスプレイ画面上に記述した
時のラダー図が100%復元可能であって、ドキュメン
テーション性が良いという利点を有する反面、例えば第
8図および第9図に示す様に、単純なラダー図において
も記述の方法により実行ステップ数が大幅に異なり、実
行形式の機械語を格納するメモリを余計に使用し、更に
はシーケンス演算実行速度が低下する場合があるという
欠点があった。
However, in conventional PCs that convert ladder diagrams into executable machine language as described above, so-called CRT
CR by graphical programming loader like loader
T (Cathode ray tube) After converting a ladder diagram read from a display using a light pen or other graphic reading device and written in a designated storage device into executable machine language, it can be read again from that machine language. When displayed on a display screen by a graphical programming loader or recorded on recording paper (hard copy) by a printer,
The ladder diagram when written on the display screen, including the positions of the components, has the advantage of being 100% recoverable and has good documentation. Even in a ladder diagram, the number of steps to be executed varies greatly depending on the method of description, which requires additional memory to store the executable machine language, and furthermore, the execution speed of sequence operations may decrease.

そこで、この発明は、シーケンス制御プログラムの実行
ステップ数が少なくなる様にラダー図の   1制御内
容を変更することなく、1回路率位でラダー図の回路の
変換をおこなうプログラマブルコ   。
Therefore, the present invention provides a programmable computer that converts the circuit of a ladder diagram at a rate of one circuit without changing the content of one control in the ladder diagram so that the number of execution steps of a sequence control program is reduced.

ントローラを提供することを目的とする。The purpose is to provide a controller.

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

第1図はこの発明の基本的構成例を示す。 FIG. 1 shows an example of the basic configuration of the present invention.

すなわち、この発明は図示式プログラミングローダによ
りラダー図記憶手段内に記述されたラ   □ダー図を
該ラダー図の構成要素とl対lに対応す   する実行
形式の機械語に変換するプログラマブルコントローラに
おいて、変換対象の所定の行方向の   “基本パター
ンと当該パターン中のシンボルを上方側に移動させた所
定の行方向の変換パターン、および変換対象の所定の列
方向の基本パターンと当該パターン中のシンボルを左側
に移動させた所定の列方向の変換パターンとをそれぞれ
1対以上あらかじめ記憶させたパターン変換用記憶手段
と、パターン変換用記憶手段に記憶された行方向の基本
パターンおよび列方向の基本パターンと、ラダー図中の
構成要素とを順次比較し、当該ラダー図中に基本パター
ンが検出されたときには対応する行方向の変換パターン
または列方向の変換ノくターンに順次変換するパターン
変換手段とを具備したことを特徴とする。
That is, the present invention provides a programmable controller that converts a ladder diagram written in a ladder diagram storage means into an executable machine language corresponding to the constituent elements of the ladder diagram on a l-to-l basis using a graphical programming loader. A predetermined basic pattern in the row direction to be converted, a predetermined conversion pattern in the row direction in which the symbols in the pattern are moved upward, and a predetermined basic pattern in the column direction to be converted and the symbols in the pattern. A pattern conversion storage means in which one or more pairs of predetermined column direction conversion patterns each moved to the left are stored in advance, and a row direction basic pattern and a column direction basic pattern stored in the pattern conversion storage means. , a pattern conversion means that sequentially compares the constituent elements in the ladder diagram and, when a basic pattern is detected in the ladder diagram, sequentially converts it to a corresponding conversion pattern in the row direction or conversion pattern in the column direction. It is characterized by what it did.

〔作  用〕[For production]

このように、この発明では実行ステップ数の増大の原因
となる開放を少なくする位置に構成要素等が移動するラ
ダー図の最適化の方向へ、ラダー図上の所定の基本パタ
ーンを所定の変換パターンに変換してから実行形式の機
械語化をするので、実行ステップ数が減少し、機械語を
格納するメモリ容量が少なくなり、ひいてはシーケンス
演算実行速度が向上する。
In this way, in the present invention, a predetermined basic pattern on a ladder diagram is converted into a predetermined conversion pattern in the direction of optimizing a ladder diagram in which components are moved to positions that reduce the number of openings that cause an increase in the number of execution steps. Since the executable format is converted into machine language after being converted to , the number of execution steps is reduced, the memory capacity for storing the machine language is reduced, and the execution speed of sequence operations is improved.

〔実 施 例〕〔Example〕

以下、図面を参照してこの発明の詳細な説明する。 Hereinafter, the present invention will be described in detail with reference to the drawings.

まず、第10図の左側に示した81〜83は被変換対象
の行方向の基本パターンであり、後述のように本図の矢
印方向(右側)の変換パターン84〜96にそれぞれ変
換される。これらの基本パターン91〜93はそれぞれ
上方が開方の、つまり左右の接続点に対して構成要素の
シンボル21,22,24.25  (本図では、−例
としてA接点21を図示している)が下方に配置された
パターンである。
First, 81 to 83 shown on the left side of FIG. 10 are basic patterns in the row direction of objects to be converted, which are converted to conversion patterns 84 to 96 in the arrow direction (right side) of the figure, respectively, as described later. These basic patterns 91 to 93 are open at the top, that is, component symbols 21, 22, 24, and 25 for the left and right connection points (in this figure, the A contact 21 is shown as an example). ) is placed at the bottom.

これらの基本パターン91〜93を左右の接続点の位置
を変えないで、構成要素のシンボル21,22゜24.
25のみ上方の開放位置に変位させた、つまり少なくと
も上方が開放でない変換パターン94〜9Bに変換させ
るために、両パターン81〜83および94〜9Bを第
1図に示すようなパターン変換用記憶手段(以下、パタ
ーンテーブルと称する)dにあらかじめ記憶させている
。このように、基本パターン91〜83をその接続点の
位置を変えないで、最終的に開放23が少なくなる方向
に構成要素のシンボル21,22,24.25の位置を
変えるように変換パターン84〜85に変換してラダー
図を変えるので、ラダー図上の他の接点等には影響を与
えず、ラダー図の制御内容も変更しないで開放の数を減
少させることができる。
These basic patterns 91 to 93 are connected to component symbols 21, 22°, 24.
In order to convert both patterns 81 to 83 and 94 to 9B into conversion patterns 94 to 9B in which only 25 is displaced to the upper open position, that is, at least the upper part is not open, pattern conversion storage means as shown in FIG. (hereinafter referred to as a pattern table) d is stored in advance. In this way, the conversion pattern 84 is changed so that the positions of the constituent symbols 21, 22, 24, and 25 are changed in a direction that ultimately reduces the number of openings 23, without changing the positions of the connection points of the basic patterns 91 to 83. Since the ladder diagram is changed by converting to .

次に第11図の左側に示した101,102は上述と同
様の目的の被変換対象の列方向の基本パターンであり、
後述のように本図の矢印方向(右側)の変換パターン1
03,104にそれぞれ変換される。前者の基本パター
ン101は左側が開放なコの字形の接続情報からなるパ
ターンであり、これに対応する変換パターン103は接
続情報を左側に寄せて左側の開放を無くしたパターンで
ある。また、後者の基本パータン102は構成要素のシ
ンボル21 、22 。
Next, 101 and 102 shown on the left side of FIG. 11 are basic patterns in the column direction of the objects to be converted, which have the same purpose as described above.
As described later, conversion pattern 1 in the arrow direction (right side) of this figure
03 and 104, respectively. The former basic pattern 101 is a pattern consisting of U-shaped connection information with an open left side, and the corresponding conversion pattern 103 is a pattern in which the connection information is shifted to the left side and the left side is not open. The latter basic pattern 102 has constituent symbols 21 and 22.

25(本図では、−例としてA接点21を図示している
)が右側に片寄ったパターンであり、対応する変換パタ
ーン1G4は、この構成要素のシンボルが左側に偏位し
たパターンである。
25 (in this figure, the A contact 21 is shown as an example) is a pattern that is biased to the right, and the corresponding conversion pattern 1G4 is a pattern in which the symbol of this component is biased to the left.

これらの基本パターン101,102と変換パターン1
03 、104をそれぞれ対応させて、上述のパターン
テーブルdにあらかじめ記憶させている。
These basic patterns 101, 102 and conversion pattern 1
03 and 104 are stored in advance in the above-mentioned pattern table d in correspondence with each other.

また、基本パターン101,102と変換パターン10
3 、104とは第11図に示すように両端の接続点の
位置が変わらず、最終的に開放23が少なくなる方向に
構成要素のシンボル21,22,24.25の位置のみ
を変えているので、後述のようにラダー図を書き変えて
も、ラダー図上の他の接点等には影響を与えず、ラダー
図の制御内容も変更しないで開放の数を減少させること
ができる。
In addition, basic patterns 101 and 102 and conversion pattern 10
3 and 104, as shown in FIG. 11, the positions of the connection points at both ends remain the same, and only the positions of the component symbols 21, 22, 24, and 25 are changed in a direction that ultimately reduces the number of openings 23. Therefore, even if the ladder diagram is rewritten as described later, it does not affect other contacts on the ladder diagram, and the number of openings can be reduced without changing the control details of the ladder diagram.

第12図はこの発明の実施例の制御手順を示すフローチ
ャートであり、この制御手順は第1図のパターン変換手
段Cに係るプログラムメモリ(不図示)にあらかじめ格
納され、cpu  (不図示)により読み出されて実行
される0次に、第12図のフローチャートを参照してこ
の発明の詳細な説明するとまず、第1図の画像入力手段
aから入力して図示式プログラミングローダによりラダ
ー図記憶手段すにラダー図が書込まれた後、この記憶手
段すのラダー図中に第10図に示した行方向の基本パー
タン81〜83が存在するか否かをパータンテーブルd
を用いて順次比較しくステップSl)基本バタン81〜
93が存在すればこのパターンをパターンテーブルdか
ら読み出した対応するそれぞれの変換パターン94〜9
8に変換してラダー図記憶手段す中のラダー図を書き変
える(ステップs2)、その後、再びステップS1に戻
り、この変換処理作業をラダー図中に基本パターン91
〜83が無くなるまで繰り返し、行方向の最適化を実行
する・記憶手段すに格納されたラダー図中に上述の基本
パターン91〜83が存在しないと判断すれば、ステッ
プSlからステップS3に進んで、ラダー図記憶手段す
のラダー図中に第11図に示した列方向の基本パターン
101,102が存在するか否かをパターンテーブルd
を用いて順次比較する。これらの基本パターンtoi 
、 102が存在すれば、このパターンをパターンテー
ブルdから読み出した対応するそれぞれの変換パターン
103 、104に変換してラダー図記憶手段す中のラ
ダー図を書き変える(ステップS4)、その後、再びス
テップS3に戻り、この変換処理作業をラダー図中に基
本パターン101,102が無くなるまで繰り返し、列
方向の最適化を終了する。
FIG. 12 is a flowchart showing the control procedure of the embodiment of the present invention, and this control procedure is stored in advance in a program memory (not shown) related to the pattern conversion means C of FIG. Next, the present invention will be explained in detail with reference to the flowchart of FIG. 12. First, input from the image input means a of FIG. After the ladder diagram is written in the storage means, the pattern table d is used to check whether the basic patterns 81 to 83 in the row direction shown in FIG. 10 exist in the ladder diagram of this storage means.
Step SL) Basic button 81~
If 93 exists, this pattern is read from the pattern table d and the corresponding conversion patterns 94 to 9 are read out from the pattern table d.
8 and rewrites the ladder diagram in the ladder diagram storage means (step s2). After that, return to step S1 again and convert this conversion process to the basic pattern 91 in the ladder diagram.
-83 is repeated until there are no more patterns, and the optimization in the row direction is executed. If it is determined that the basic patterns 91 to 83 described above do not exist in the ladder diagram stored in the storage means, the process proceeds from step Sl to step S3. , the pattern table d determines whether the basic patterns 101 and 102 in the column direction shown in FIG. 11 exist in the ladder diagram of the ladder diagram storage means.
Compare sequentially using These basic patterns toi
, 102 exists, this pattern is converted into the corresponding conversion patterns 103 and 104 read from the pattern table d, and the ladder diagram in the ladder diagram storage means is rewritten (step S4), and then step is performed again. Returning to S3, this conversion process is repeated until there are no more basic patterns 101, 102 in the ladder diagram, and the optimization in the column direction is completed.

その後、記憶手段す中のラダー図は従来と同様に第1図
に示すような機械語変換手段eにより機械語変換用記憶
手段(マシーンワードテーブル)5に記憶された機械語
を参照して実行形式の機械語に変換され、機械語記憶手
段gに記憶され、画像出力手段りに出力される。
Thereafter, the ladder diagram in the storage means is executed by referring to the machine language stored in the machine word conversion storage means (machine word table) 5 by the machine language conversion means e as shown in FIG. The image data is converted into machine language in the format, stored in the machine language storage means g, and outputted to the image output means.

次に第6図に示したラダー図を第12図の制御手順によ
り最適化を実行した一例を第13図(A)〜(Y)に時
系列的に示す、尚、第13図のラダー図において、この
発明の最適化処理を実行する部分を破線の丸印で囲み、
その適用パターン(91,92,93゜101.102
0いずれか)を図の右側の空白部分に記載した。第6図
のラダー図をそのまま実行形式の機械語に変換した場合
では第7図に示した様に実行ステップに28ステツプ要
するが、この発明の最適化実行後では開放の数が少なく
なるので第14図に示した様にその実行ステップは18
ステツプとなって11ステツプの大幅な削減が行なわれ
る。
Next, an example of optimizing the ladder diagram shown in FIG. 6 using the control procedure shown in FIG. 12 is shown in chronological order in FIGS. 13 (A) to (Y). , the part where the optimization process of this invention is executed is surrounded by a dashed circle,
Its application pattern (91,92,93°101.102
0) is written in the blank space on the right side of the figure. If the ladder diagram in Figure 6 is directly converted into executable machine language, 28 execution steps are required as shown in Figure 7, but after the optimization of this invention, the number of openings is reduced, so As shown in Figure 14, the execution steps are 18.
This results in a significant reduction of 11 steps.

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

以上説明したように、この発明によれば開放が多くなる
所定の基本パターンと開放が少なくなる変換パターンと
をあらかじめ対応させて記憶し、ラダー図中に基本パタ
ーンが存在するか否かを比較して存在すればそれぞれ対
応の変換パターンに変換するようにしているので、開放
が少なくなって実行形式の機械語のステップ数が大幅に
削減され、ひいては機械語を格納するメモリ容量の削減
またシーケンス演算の実行速度の向上が図れる効果が得
られる。
As explained above, according to the present invention, a predetermined basic pattern that increases the number of openings and a conversion pattern that decreases the number of openings are stored in correspondence in advance, and a comparison is made to see whether or not the basic pattern exists in the ladder diagram. If a file exists, it is converted to the corresponding conversion pattern, so there are fewer free spaces and the number of steps for executable machine language is significantly reduced, which in turn reduces the memory capacity for storing machine language and reduces sequence calculations. This has the effect of improving the execution speed.

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

第1図はこの発明の基本的構成例を示すブロック図、 第2図はこの発明のラダー図の構成要素を示す図、 第3図は第2図のシンボルlの種類を示す図、 第4図は第2図の接続情報2の種類を示す図、 第5図はラダー図の構成要素と実行形式の機械語との対
応を示す図である。 第6図はラダー図の一例を示す図であり。 第7図はそのラダー図に1対1に対応する実行形式の機
械語を二−モニツク形式で表現した一例を示す図である
。 第8図および第9図はそれぞれ同一制御シーケンスがラ
ダー図の記述形式の違いにより、実行形式の機械語に変
換した場合に必要ステップ数が大幅に異なることを示す
図である。 第10図はこの発明に係る行方向最適化時の基本パター
ン(適用パターン)と変換パターン(変更パターン)を
示す図、 第11図はこの発明に係る列方向最適化時の基本パター
ンと変換パターンを示す図、 第12図はこの発明の制御動作の一例を示すフローチャ
ート、 第13図(A)〜(Y)は第6図のラダー図を第12図
の制御手順により最適化を実行した時の一例を時系列的
に示した図であり、 第14図はその最適化後のラダー図の実行形式の機械語
を二−モニツク形式で表現した図である。 a・・・画像入力手段、 b・・・ラダー図記憶手段、 C・・・パターン変換手段、 d・・・パターン変換用記憶手段(パターンテーブル)
、 e・・・機械語変換手段、 f・・・機械語変換用記憶手段(マシーンワードテーブ
ル)、 g・・・機械語記憶手段、 h・・・画像出力手段、 l・・・シンボル、 2・・・接続情輻、 3・・・アドレス、 21・・・A接点、 22・・・B接点、 23・・・開放、 24・・・短絡、 25・・・コイル、 31・・・接続布、 32・・・接続無、 33・・・行終了、 40・・・機械語、 91〜93・・・行方向基本パターン、84〜88・・
・行方向変換パターン、101.102・・・列方向基
本パターン、103.104・・・列方向変換パターン
。 第1図 第2図 第3図 第4図 第5図 第7図 第9図 (喫行ステツア数 7) 第12図 第13図 (A) 第13図 第13図 第13図 第13図 第13図 ÷ (L、I) ↓ (V) 第13図 番 (X) (Y)。 第14ド
FIG. 1 is a block diagram showing an example of the basic configuration of this invention. FIG. 2 is a diagram showing the constituent elements of a ladder diagram of this invention. FIG. 3 is a diagram showing the types of symbol l in FIG. 2. The figure shows the types of connection information 2 in Fig. 2, and Fig. 5 shows the correspondence between the constituent elements of the ladder diagram and the executable machine language. FIG. 6 is a diagram showing an example of a ladder diagram. FIG. 7 is a diagram showing an example of an executable machine language that corresponds one-to-one to the ladder diagram expressed in a binary format. FIGS. 8 and 9 are diagrams showing that the number of steps required when the same control sequence is converted into executable machine language differs significantly due to differences in the description format of the ladder diagram. FIG. 10 is a diagram showing the basic pattern (applied pattern) and conversion pattern (change pattern) during row direction optimization according to the present invention, and FIG. 11 is a diagram showing the basic pattern and conversion pattern during column direction optimization according to the present invention. FIG. 12 is a flowchart showing an example of the control operation of the present invention, and FIGS. 13 (A) to (Y) show the results when the ladder diagram of FIG. 6 is optimized using the control procedure of FIG. 12. FIG. 14 is a diagram showing an example of chronologically, and FIG. 14 is a diagram expressing the machine language of the execution form of the ladder diagram after optimization in binary form. a... Image input means, b... Ladder diagram storage means, C... Pattern conversion means, d... Storage means for pattern conversion (pattern table)
, e... Machine language conversion means, f... Machine language conversion storage means (machine word table), g... Machine language storage means, h... Image output means, l... Symbol, 2 ...Connection information, 3...Address, 21...A contact, 22...B contact, 23...Open, 24...Short circuit, 25...Coil, 31...Connection Cloth, 32...No connection, 33...Line end, 40...Machine language, 91-93...Row direction basic pattern, 84-88...
- Row direction conversion pattern, 101.102... Column direction basic pattern, 103.104... Column direction conversion pattern. Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 7 Figure 9 (Number of running steps 7) Figure 12 Figure 13 (A) Figure 13 Figure 13 Figure 13 Figure 13 Figure 13 ÷ (L, I) ↓ (V) Figure 13 number (X) (Y). 14th do

Claims (1)

【特許請求の範囲】 図示式プログラミングローダによりラダー図記憶手段内
に記述されたラダー図を該ラダー図の構成要素と1対1
に対応する実行形式の機械語に変換するプログラマブル
コントローラにおいて、変換対象の所定の行方向の基本
パターンと当該パターン中のシンボルを上方側に移動さ
せた所定の行方向の変換パターン、および変換対象の所
定の列方向の基本パターンと当該パターン中のシンボル
を左側に移動させた所定の列方向の変換パターンとをそ
れぞれ1対以上あらかじめ記憶させたパターン変換用記
憶手段と、 該パターン変換用記憶手段に記憶された前記行方向の基
本パターンおよび前記列方向の基本パターンと、前記ラ
ダー図中の構成要素とを順次比較し、当該ラダー図中に
前記基本パターンが検出されたときには対応する前記行
方向の変換パターンまたは前記列方向の変換パターンに
順次変換するパターン変換手段とを具備したことを特徴
とするプログラマブルコントローラ。
[Claims] The ladder diagram described in the ladder diagram storage means by the illustrated programming loader is one-to-one with the constituent elements of the ladder diagram.
In a programmable controller that converts a machine language in an executable format corresponding to A pattern conversion storage means in which one or more pairs of each of a predetermined column-direction basic pattern and a predetermined column-direction conversion pattern in which symbols in the pattern are moved to the left are stored in advance, and the pattern conversion storage means The stored basic pattern in the row direction and the basic pattern in the column direction are sequentially compared with the constituent elements in the ladder diagram, and when the basic pattern is detected in the ladder diagram, the corresponding basic pattern in the row direction is compared. A programmable controller comprising: a pattern conversion means for sequentially converting the conversion pattern or the conversion pattern in the column direction.
JP26461584A 1984-12-17 1984-12-17 Programmable controller Granted JPS61143809A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26461584A JPS61143809A (en) 1984-12-17 1984-12-17 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26461584A JPS61143809A (en) 1984-12-17 1984-12-17 Programmable controller

Publications (2)

Publication Number Publication Date
JPS61143809A true JPS61143809A (en) 1986-07-01
JPH0457002B2 JPH0457002B2 (en) 1992-09-10

Family

ID=17405785

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26461584A Granted JPS61143809A (en) 1984-12-17 1984-12-17 Programmable controller

Country Status (1)

Country Link
JP (1) JPS61143809A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01282605A (en) * 1988-05-10 1989-11-14 Toshiba Corp Program automatic preparing device
JP2017207962A (en) * 2016-05-19 2017-11-24 ファナック株式会社 Ladder program analysis device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01282605A (en) * 1988-05-10 1989-11-14 Toshiba Corp Program automatic preparing device
JP2017207962A (en) * 2016-05-19 2017-11-24 ファナック株式会社 Ladder program analysis device
CN107402563A (en) * 2016-05-19 2017-11-28 发那科株式会社 Trapezoid program analytical equipment
CN107402563B (en) * 2016-05-19 2019-08-13 发那科株式会社 Trapezoid program analytical equipment
US10565010B2 (en) 2016-05-19 2020-02-18 Fanuc Corporation Ladder program analyzing device
US10838764B2 (en) 2016-05-19 2020-11-17 Fanuc Corporation Ladder program analyzing device

Also Published As

Publication number Publication date
JPH0457002B2 (en) 1992-09-10

Similar Documents

Publication Publication Date Title
US4455619A (en) Interactive equipment for computer programming by linkage of labeled block representations of arithmetic/logical subprograms
JP2765423B2 (en) Programmable controller and control method thereof
JPS61143809A (en) Programmable controller
JPH08329004A (en) Method for improving terminal operability of application program use
JP2875135B2 (en) Program device for programmable controller
JPS62282301A (en) Program generating device
JP2014071862A (en) Peripheral device for programmable controller
JP2902888B2 (en) Programmable controller
JPH042961B2 (en)
JPH08185452A (en) Document preparation device
JP2671365B2 (en) Character / graphic editing device
JP2734187B2 (en) Display screen creation method for multiple PC control device, sequence program creation device, and control status display device
JP2713924B2 (en) Document editing device
JPS63233465A (en) Input display system for numerical format code
JPS6223031A (en) Variable magnification copying machine
JP3528249B2 (en) Document processing device
JP3129889B2 (en) Numerical control unit
JPH0119167B2 (en)
JPH0117165B2 (en)
JPH01282609A (en) Method for setting nc data output form
JP3124055B2 (en) Character input control device
JPH0496869A (en) Drawing data storing system
JPH11149522A (en) Handwritten character input device and computer readable recording medium recorded with handwritten character input program
JPH0421164A (en) Document processor
JPH05289712A (en) Language converting device