JPH083730B2 - Ladder program converter - Google Patents

Ladder program converter

Info

Publication number
JPH083730B2
JPH083730B2 JP63224188A JP22418888A JPH083730B2 JP H083730 B2 JPH083730 B2 JP H083730B2 JP 63224188 A JP63224188 A JP 63224188A JP 22418888 A JP22418888 A JP 22418888A JP H083730 B2 JPH083730 B2 JP H083730B2
Authority
JP
Japan
Prior art keywords
file
ladder
signal name
ladder program
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.)
Expired - Fee Related
Application number
JP63224188A
Other languages
Japanese (ja)
Other versions
JPH0272407A (en
Inventor
隆 門脇
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP63224188A priority Critical patent/JPH083730B2/en
Publication of JPH0272407A publication Critical patent/JPH0272407A/en
Publication of JPH083730B2 publication Critical patent/JPH083730B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は、工業プロセス等のシーケンス制御に用いら
れるラダー・プログラム変換装置に関し、特にラダー・
プログラムのコンパイル時間を短縮しようとするもので
ある。
TECHNICAL FIELD The present invention relates to a ladder program conversion device used for sequence control of an industrial process or the like, and particularly to a ladder program conversion device.
It aims to reduce the program compilation time.

〈従来の技術〉 シーケンス制御に用いられるプログラマブル・コント
ローラ用言語として、一般的にラダーが使用されてい
る。
<Prior Art> A ladder is generally used as a programmable controller language used for sequence control.

最近ではパーソナル・コンピュータ上で動作する多く
のラダーCADが市販されており、第4図(a),(b)
に示すように、接点、内部レジスタ、出力部等に任意に
信号名が付加できる。
Recently, many ladder CADs that operate on a personal computer are commercially available, and are shown in FIGS. 4 (a) and 4 (b).
As shown in, signal names can be arbitrarily added to contacts, internal registers, output units, and the like.

即ち、図素シンボルをパーソナル・コンピュータに入
力してラダー・プログラムを編集する際、このパーソナ
ル・コンピュータ上で定められているアドレス“DI110
1",“DI1102",“DO1201"(第4図(a))を付加するこ
となく、これらのアドレスに対応する信号名をユーザが
シーケンス制御の仕様に応じて“LS1",“LS2",OL1"(第
4図(b))のように任意に定義して信号名ファイルを
予め作成しておくことにより、各図素シンボルに任意に
信号名を付加するすることができる。
That is, when the graphic symbol is input to the personal computer to edit the ladder program, the address "DI110" specified on the personal computer is specified.
Without adding 1 "," DI1102 "," DO1201 "(Fig. 4 (a)), the user can change the signal names corresponding to these addresses to" LS1 "," LS2 ", according to the sequence control specifications. It is possible to arbitrarily add a signal name to each pixel symbol by creating a signal name file in advance by arbitrarily defining it as in OL1 "(FIG. 4 (b)).

これにより、ラダー・プログラムの編集、保守は便利
となる。
This makes it convenient to edit and maintain ladder programs.

〈発明が解決しようとする課題〉 しかしながら、このように任意に信号名を設定したラ
ダー・プログラムは、実際のオブジェクト・ファイルに
変換するコンパイルに時間がかかるという欠点があっ
た。
<Problems to be Solved by the Invention> However, such a ladder program having signal names arbitrarily set has a drawback that it takes a long time to compile for converting into an actual object file.

コンパイルは第5図のフローチャートに示すように、
編集終了したラダー・プログラムの図素ファイル中の信
号名をアドレスに変換する、図素ファイル中のシンボル
の接続情報をもとに論理解析を行う、論理解析と並行し
てオブジェクト・ファイルを作成するという手順を経る
が、この処理中、信号名ファイルを参照して各図素の信
号名とその実際のアドレスを対応させる処理にコンパイ
ル時間全体の50〜60%を費している。
Compile, as shown in the flow chart of Figure 5,
Convert the signal name in the graphics file of the edited ladder program to an address, perform logical analysis based on the connection information of the symbols in the graphics file, and create an object file in parallel with the logical analysis. However, during this process, it takes 50-60% of the whole compilation time to refer to the signal name file and associate the signal name of each pixel with its actual address.

本発明は、この点に注目してなされたものであり、ラ
ダー・プログラムのコンパイル時間を短縮し、全体のパ
フォーマンス向上を図ることを目的とする。
The present invention has been made paying attention to this point, and an object of the present invention is to shorten the compilation time of a ladder program and improve the overall performance.

〈課題を解決するための手段〉 以上の問題を解決するため、本発明はラダー・プログ
ラム編集時に各図素シンボルの信号名とアドレスを対応
させるものであり、その概要は次の通りである。
<Means for Solving the Problem> In order to solve the above problems, the present invention associates the signal name and address of each pixel symbol when editing the ladder program, and the outline thereof is as follows.

即ち、編集されたラダー・プログラム中の各種信号名
を予め定められたアドレスに変換してこのラダー・プロ
グラムのオブジェクト・ファイルを生成するラダー・プ
ログラム変換装置において、前記各種信号名と前記アド
レスとを予め対応させる信号名ファイルを作成してお
き、ラダー・プログラム編集中にユーザが入力した図素
シンボル、接続情報を格納するとともに入力された前記
各種信号名とこれに対応する前記アドレスとを前記信号
名ファイルから直ちに読み出して格納して1レコードと
する図素ファイルを作成し、コンパイル時は前記図素フ
ァイルのみから前記オブジェクト・ファイルを作成する
ことを特徴とするラダー・プログラム変換装置である。
That is, in a ladder program conversion device that converts various signal names in an edited ladder program into predetermined addresses to generate an object file of this ladder program, the various signal names and the addresses are A signal name file to be associated is created in advance, and the pixel symbols and connection information input by the user while the ladder program is being edited are stored and the various signal names input and the addresses corresponding thereto are stored in the signal. The ladder program conversion device is characterized in that a grapheme file which is immediately read from a name file and stored to form one record is created, and the object file is created only from the grapheme file at the time of compilation.

〈作用〉 本発明のラダー・プログラム変換装置は、編集時に予
め作成した信号名ファイルを参照して信号名とアドレス
とを対応させて図素ファイル(ソース・ファイル)を作
成し、コンパイル時はこの図素ファイルのみからオブジ
ェクト・ファイルを作成する。即ち、信号名とアドレス
との対応処理はプログラム編集時に行い、コンパイル時
には行わない。
<Operation> The ladder program conversion device of the present invention refers to a signal name file created in advance at the time of editing to associate a signal name with an address to create a graphics file (source file), and at the time of compilation, Create an object file from only the grapheme file. That is, the process of associating the signal name with the address is performed at the time of editing the program and not performed at the time of compiling.

〈実施例〉 第1図は本発明のラダー・プログラム変換装置の概念
図である。
<Embodiment> FIG. 1 is a conceptual diagram of a ladder program conversion device of the present invention.

この図では、各構成要素を機能ブロックで表わしてお
り、エディタであるラダー編集プログラムLP、ソース・
ファイルであるラダー図素ファイルLF、信号名編集プロ
グラムSP、信号名ファイルSF、更にコンパイラC、最終
的に生成されるオブジェクト・ファイルOFを表わす。
In this figure, each component is represented by a functional block.
The ladder diagram file LF, the signal name editing program SP, the signal name file SF, the compiler C, and the finally generated object file OF that are files are shown.

ユーザは予め、プログラマブル・コントローラの接
点、内部レジスタ、出力部等のアドレスに任意に信号名
を定義し、信号名/アドレス対応情報を信号名編集プロ
グラムSPのもとで生成し、信号名ファイルSFを作成して
おく。
The user defines in advance the signal names at the addresses of the programmable controller contacts, internal registers, output section, etc., and generates the signal name / address correspondence information under the signal name editing program SP. Is created.

信号名ファイルSFは、第3図に示すように、信号名
(例えば“LS1")とアドレス(例えばDI1101")が1レ
コードで構成され、信号名/アドレス対応表の構成とな
っている。
As shown in FIG. 3, the signal name file SF is composed of a signal name (for example, “LS1”) and an address (for example, DI1101 ”) in one record, and has a structure of a signal name / address correspondence table.

さて、ユーザがラダー編集プログラムLPを用いて図素
シンボルを入力し、これらを結合させてラダー・プログ
ラムの編集を開始すると、ラダー編集プログラムLPは、
信号名ファイルSFを参照して直ちに信号名に対応するア
ドレスを読み出す。
Now, when the user inputs the picture element symbols using the ladder editing program LP and combines them to start editing the ladder program, the ladder editing program LP
The address corresponding to the signal name is immediately read by referring to the signal name file SF.

このような編集作業が終了すると、第2図に示すよう
なラダー図素ファイルLFが作成される。
When such editing work is completed, a ladder graphic file LF as shown in FIG. 2 is created.

ラダー図素ファイルLFは、図素シンボル、接続情報、
信号名、アドレスにより1レコードが構成される。
The ladder graphic file LF consists of graphic symbol, connection information,
One record is composed of a signal name and an address.

このラダー図素ファイルLFが作成された時点で既に信
号名(例えば“LS1")に対応するアドレス(例えば“DI
1101")が信号名ファイルSFを参照して付加されるの
で、コンパイラCでコンパイルが開始すると、信号名/
アドレス対応処理を行うことなくコンパイルが実行され
る。
At the time when this ladder diagram file LF is created, the address (for example, “DI” that corresponds to the signal name (for example, “LS1”) has already been generated.
1101 ") is added by referring to the signal name file SF, so when the compiler C starts to compile, signal name /
Compilation is executed without performing address corresponding processing.

即ち、従来はラダー図素ファイルLFの1レコードは図
素シンボル、接続情報、アドレスにより構成され、コン
パイルの時点で信号名ファイルSFを読み出して信号名/
アドレス対応処理を行なっていたが(第1図で点線経路
で示す処理)、この対応処理をラダー編集プログラムLP
編集の際に行ってラダー図素ファイルを作成するため、
コンパイルの際はこの対応処理を省略できる。
That is, conventionally, one record of the ladder graphic file LF is composed of graphic symbol, connection information, and address. At the time of compilation, the signal name file SF is read and the signal name /
Address correspondence processing was performed (processing indicated by the dotted line route in Fig. 1), but this correspondence processing is performed by the ladder editing program LP.
In order to create a ladder picture element file when editing,
This process can be omitted when compiling.

尚、ユーザが入力した信号名を信号名ファイルを参照
してその時点でアドレス変換処理を行うことによってラ
ダー編集部分のパフォーマンス自体は若干悪くなるが、
この部分はマン・マシン部であり、人間の編集作業にほ
とんど影響を与えることのない時間である。
Although the signal name input by the user is referred to the signal name file and the address conversion process is performed at that point, the performance itself of the ladder edit part is slightly deteriorated.
This part is the man-machine section, and it is the time that hardly affects human editing work.

また、信号名を変更するような場合も考えられ、信号
名ファイルの内容が変更された際に、この信号名ファイ
ルの内容をラダー図素ファイルLFに反映されるプログラ
ムを別に用意してこのプログラムを先に実行してからコ
ンパイルを行うようにしても良い。
It is also possible to change the signal name, and when the contents of the signal name file are changed, a separate program that reflects the contents of this signal name file in the ladder graph file LF is prepared. May be executed first and then compiled.

〈発明の効果〉 本発明のラダー・プログラム変換装置によれば次の効
果が得られる。
<Effects of the Invention> According to the ladder program conversion device of the present invention, the following effects can be obtained.

信号名とアドレスとの対応処理をプログラム編集時に
行い、コンパイル時には行わないので、ラダー・プログ
ラムのコンパイル時間を短縮でき、全体のパフォーマン
ス向上を図ることができる。
Since the correspondence processing between the signal name and the address is performed at the time of editing the program and not at the time of compiling, the compilation time of the ladder program can be shortened and the overall performance can be improved.

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

第1図は本発明のラダー・プログラム変換装置の概念
図、第2図は信号名ファイルSFの構成図、第3図は本発
明装置におけるラダー図素ファイルLFの構成図、第4図
(a),(b)はラダー・プログラムの例、第5図はコ
ンパイル動作のフローチャートである。 LP……ラダー編集プログラム、LF……ラダー図素ファイ
ル、SP……信号名編集プログラム、SF……信号名ファイ
ル、C……コンパイラ、OF……オブジェクト・ファイ
ル。
1 is a conceptual diagram of a ladder program conversion device of the present invention, FIG. 2 is a configuration diagram of a signal name file SF, FIG. 3 is a configuration diagram of a ladder diagram file LF in the device of the present invention, FIG. 4 (a) ) And (b) are examples of ladder programs, and FIG. 5 is a flowchart of the compiling operation. LP ... Ladder editing program, LF ... Ladder diagram file, SP ... Signal name editing program, SF ... Signal name file, C ... Compiler, OF ... Object file.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】編集されたラダー・プログラム中の各種信
号名を予め定められたアドレスに変換してこのラダー・
プログラムのオブジェクト・ファイルを生成するラダー
・プログラム変換装置において、前記各種信号名と前記
アドレスとを予め対応させる信号名ファイルを作成して
おき、ラダー・プログラム編集中にユーザが入力した図
素シンボル、接続情報を格納するとともに入力された前
記各種信号名とこれに対応する前記アドレスとを前記信
号名ファイルから直ちに読み出して格納して1レコード
とする図素ファイルを作成し、コンパイル時は前記図素
ファイルのみから前記オブジェクト・ファイルを作成す
ることを特徴とするラダー・プログラム変換装置。
1. A ladder program is provided by converting various signal names in an edited ladder program into predetermined addresses.
In a ladder program conversion device that generates an object file of a program, a signal name file that previously associates the various signal names with the addresses is created, and a pixel symbol input by the user during editing the ladder program, At the same time as storing the connection information, the various signal names inputted and the addresses corresponding thereto are immediately read out from the signal name file and stored to create a pixel file for making one record, and at the time of compilation, the pixel file is compiled. A ladder program conversion device, characterized in that the object file is created only from files.
JP63224188A 1988-09-07 1988-09-07 Ladder program converter Expired - Fee Related JPH083730B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63224188A JPH083730B2 (en) 1988-09-07 1988-09-07 Ladder program converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63224188A JPH083730B2 (en) 1988-09-07 1988-09-07 Ladder program converter

Publications (2)

Publication Number Publication Date
JPH0272407A JPH0272407A (en) 1990-03-12
JPH083730B2 true JPH083730B2 (en) 1996-01-17

Family

ID=16809901

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63224188A Expired - Fee Related JPH083730B2 (en) 1988-09-07 1988-09-07 Ladder program converter

Country Status (1)

Country Link
JP (1) JPH083730B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2661316B2 (en) * 1990-03-24 1997-10-08 トヨタ自動車株式会社 Control device by parallel operation between multiple programmable controllers
JP2760158B2 (en) * 1991-01-28 1998-05-28 トヨタ自動車株式会社 I / O signal code converter
JP4207105B2 (en) * 2001-03-15 2009-01-14 オムロン株式会社 system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63300302A (en) * 1987-05-30 1988-12-07 Yaskawa Electric Mfg Co Ltd Program input display device for programmable controller

Also Published As

Publication number Publication date
JPH0272407A (en) 1990-03-12

Similar Documents

Publication Publication Date Title
JPH083730B2 (en) Ladder program converter
JP2753555B2 (en) Programmable controller
JPH02101550A (en) File-form conversion system without format
JPH05250210A (en) Program trace system
JPS62171036A (en) Module sharing system for compiler
JPH11327887A (en) Compiler system with automatic parts converting function and recording medium
JP3041919B2 (en) Program combination processor
JPS63104153A (en) Symbol compiling system for abort damp data
JP2000276344A (en) Program generation system using object and its program generating method
JPH0390931A (en) Generation of rom transformation program
JPS63201740A (en) Data editing system for service processor
JPS6126693B2 (en)
JPH06119155A (en) Program generator
JPH0580992A (en) Output system for procedure-function relation chart
JPH03282841A (en) Direct input/output processing system for variable length record
JPH04263318A (en) General-purpose software generator
JPH04178836A (en) Format editing processing system
JPH02114328A (en) Patch source conversion system
JP2001100814A (en) Program-converting method
JPH04336326A (en) Display system for data area assignment state
JPH06295241A (en) Program performance evaluation system
JPH03180960A (en) Batch file forming system
JPH03271833A (en) Test vector editing tool
JPH0546434A (en) Program debugging system
JPH04273328A (en) Generation system for cross-reference list

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees